@spectrum-web-components/button 0.16.5-express.9 → 0.17.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/README.md +3 -2
- package/custom-elements.json +1 -44
- package/package.json +9 -9
- package/sp-button.d.ts +0 -6
- package/sp-button.js +0 -14
- package/sp-button.js.map +0 -1
- package/sp-clear-button.d.ts +0 -6
- package/sp-clear-button.js +0 -14
- package/sp-clear-button.js.map +0 -1
- package/sp-close-button.d.ts +0 -6
- package/sp-close-button.js +0 -14
- package/sp-close-button.js.map +0 -1
- package/src/Button.d.ts +0 -36
- package/src/Button.js +0 -94
- package/src/Button.js.map +0 -1
- package/src/ButtonBase.d.ts +0 -42
- package/src/ButtonBase.js +0 -218
- package/src/ButtonBase.js.map +0 -1
- package/src/ClearButton.d.ts +0 -23
- package/src/ClearButton.js +0 -74
- package/src/ClearButton.js.map +0 -1
- package/src/CloseButton.d.ts +0 -26
- package/src/CloseButton.js +0 -72
- package/src/CloseButton.js.map +0 -1
- package/src/StyledButton.d.ts +0 -5
- package/src/StyledButton.js +0 -19
- package/src/StyledButton.js.map +0 -1
- package/src/button-base.css.d.ts +0 -2
- package/src/button-base.css.js +0 -21
- package/src/button-base.css.js.map +0 -1
- package/src/button.css.d.ts +0 -2
- package/src/button.css.js +0 -630
- package/src/button.css.js.map +0 -1
- package/src/clear-button.css.d.ts +0 -2
- package/src/clear-button.css.js +0 -229
- package/src/clear-button.css.js.map +0 -1
- package/src/index.d.ts +0 -5
- package/src/index.js +0 -17
- package/src/index.js.map +0 -1
- package/src/spectrum-button-base.css.d.ts +0 -2
- package/src/spectrum-button-base.css.js +0 -17
- package/src/spectrum-button-base.css.js.map +0 -1
- package/src/spectrum-button.css.d.ts +0 -2
- package/src/spectrum-button.css.js +0 -598
- package/src/spectrum-button.css.js.map +0 -1
- package/src/spectrum-clear-button.css.d.ts +0 -2
- package/src/spectrum-clear-button.css.js +0 -229
- package/src/spectrum-clear-button.css.js.map +0 -1
- package/stories/button-accent-fill-sizes.stories.js +0 -28
- package/stories/button-accent-fill-sizes.stories.js.map +0 -1
- package/stories/button-accent-fill.stories.js +0 -28
- package/stories/button-accent-fill.stories.js.map +0 -1
- package/stories/button-accent-outline-sizes.stories.js +0 -28
- package/stories/button-accent-outline-sizes.stories.js.map +0 -1
- package/stories/button-accent-outline.stories.js +0 -28
- package/stories/button-accent-outline.stories.js.map +0 -1
- package/stories/button-black-fill-sizes.stories.js +0 -29
- package/stories/button-black-fill-sizes.stories.js.map +0 -1
- package/stories/button-black-fill.stories.js +0 -29
- package/stories/button-black-fill.stories.js.map +0 -1
- package/stories/button-black-outline-sizes.stories.js +0 -29
- package/stories/button-black-outline-sizes.stories.js.map +0 -1
- package/stories/button-black-outline.stories.js +0 -29
- package/stories/button-black-outline.stories.js.map +0 -1
- package/stories/button-cta-sizes.stories.js +0 -11
- package/stories/button-cta-sizes.stories.js.map +0 -1
- package/stories/button-cta.stories.js +0 -115
- package/stories/button-cta.stories.js.map +0 -1
- package/stories/button-negative-fill-sizes.stories.js +0 -28
- package/stories/button-negative-fill-sizes.stories.js.map +0 -1
- package/stories/button-negative-fill.stories.js +0 -28
- package/stories/button-negative-fill.stories.js.map +0 -1
- package/stories/button-negative-outline-sizes.stories.js +0 -28
- package/stories/button-negative-outline-sizes.stories.js.map +0 -1
- package/stories/button-negative-outline.stories.js +0 -28
- package/stories/button-negative-outline.stories.js.map +0 -1
- package/stories/button-overBackground-sizes.stories.js +0 -12
- package/stories/button-overBackground-sizes.stories.js.map +0 -1
- package/stories/button-overBackground.stories.js +0 -132
- package/stories/button-overBackground.stories.js.map +0 -1
- package/stories/button-primary-fill-sizes.stories.js +0 -28
- package/stories/button-primary-fill-sizes.stories.js.map +0 -1
- package/stories/button-primary-fill.stories.js +0 -28
- package/stories/button-primary-fill.stories.js.map +0 -1
- package/stories/button-primary-outline-sizes.stories.js +0 -28
- package/stories/button-primary-outline-sizes.stories.js.map +0 -1
- package/stories/button-primary-outline.stories.js +0 -28
- package/stories/button-primary-outline.stories.js.map +0 -1
- package/stories/button-primary-sizes.stories.js +0 -11
- package/stories/button-primary-sizes.stories.js.map +0 -1
- package/stories/button-primary.stories.js +0 -129
- package/stories/button-primary.stories.js.map +0 -1
- package/stories/button-secondary-fill-sizes.stories.js +0 -28
- package/stories/button-secondary-fill-sizes.stories.js.map +0 -1
- package/stories/button-secondary-fill.stories.js +0 -28
- package/stories/button-secondary-fill.stories.js.map +0 -1
- package/stories/button-secondary-outline-sizes.stories.js +0 -28
- package/stories/button-secondary-outline-sizes.stories.js.map +0 -1
- package/stories/button-secondary-outline.stories.js +0 -28
- package/stories/button-secondary-outline.stories.js.map +0 -1
- package/stories/button-secondary-sizes.stories.js +0 -11
- package/stories/button-secondary-sizes.stories.js.map +0 -1
- package/stories/button-secondary.stories.js +0 -129
- package/stories/button-secondary.stories.js.map +0 -1
- package/stories/button-warning-sizes.stories.js +0 -11
- package/stories/button-warning-sizes.stories.js.map +0 -1
- package/stories/button-warning.stories.js +0 -129
- package/stories/button-warning.stories.js.map +0 -1
- package/stories/button-white-fill-sizes.stories.js +0 -29
- package/stories/button-white-fill-sizes.stories.js.map +0 -1
- package/stories/button-white-fill.stories.js +0 -29
- package/stories/button-white-fill.stories.js.map +0 -1
- package/stories/button-white-outline-sizes.stories.js +0 -29
- package/stories/button-white-outline-sizes.stories.js.map +0 -1
- package/stories/button-white-outline.stories.js +0 -29
- package/stories/button-white-outline.stories.js.map +0 -1
- package/stories/index.js +0 -177
- package/stories/index.js.map +0 -1
- package/test/button-accent-fill-sizes.test-vrt.js +0 -15
- package/test/button-accent-fill-sizes.test-vrt.js.map +0 -1
- package/test/button-accent-fill.test-vrt.js +0 -15
- package/test/button-accent-fill.test-vrt.js.map +0 -1
- package/test/button-accent-outline-sizes.test-vrt.js +0 -15
- package/test/button-accent-outline-sizes.test-vrt.js.map +0 -1
- package/test/button-accent-outline.test-vrt.js +0 -15
- package/test/button-accent-outline.test-vrt.js.map +0 -1
- package/test/button-black-fill-sizes.test-vrt.js +0 -15
- package/test/button-black-fill-sizes.test-vrt.js.map +0 -1
- package/test/button-black-fill.test-vrt.js +0 -15
- package/test/button-black-fill.test-vrt.js.map +0 -1
- package/test/button-black-outline-sizes.test-vrt.js +0 -15
- package/test/button-black-outline-sizes.test-vrt.js.map +0 -1
- package/test/button-black-outline.test-vrt.js +0 -15
- package/test/button-black-outline.test-vrt.js.map +0 -1
- package/test/button-negative-fill-sizes.test-vrt.js +0 -15
- package/test/button-negative-fill-sizes.test-vrt.js.map +0 -1
- package/test/button-negative-fill.test-vrt.js +0 -15
- package/test/button-negative-fill.test-vrt.js.map +0 -1
- package/test/button-negative-outline-sizes.test-vrt.js +0 -15
- package/test/button-negative-outline-sizes.test-vrt.js.map +0 -1
- package/test/button-negative-outline.test-vrt.js +0 -15
- package/test/button-negative-outline.test-vrt.js.map +0 -1
- package/test/button-primary-fill-sizes.test-vrt.js +0 -15
- package/test/button-primary-fill-sizes.test-vrt.js.map +0 -1
- package/test/button-primary-fill.test-vrt.js +0 -15
- package/test/button-primary-fill.test-vrt.js.map +0 -1
- package/test/button-primary-outline-sizes.test-vrt.js +0 -15
- package/test/button-primary-outline-sizes.test-vrt.js.map +0 -1
- package/test/button-primary-outline.test-vrt.js +0 -15
- package/test/button-primary-outline.test-vrt.js.map +0 -1
- package/test/button-secondary-fill-sizes.test-vrt.js +0 -15
- package/test/button-secondary-fill-sizes.test-vrt.js.map +0 -1
- package/test/button-secondary-fill.test-vrt.js +0 -15
- package/test/button-secondary-fill.test-vrt.js.map +0 -1
- package/test/button-secondary-outline-sizes.test-vrt.js +0 -15
- package/test/button-secondary-outline-sizes.test-vrt.js.map +0 -1
- package/test/button-secondary-outline.test-vrt.js +0 -15
- package/test/button-secondary-outline.test-vrt.js.map +0 -1
- package/test/button-white-fill-sizes.test-vrt.js +0 -15
- package/test/button-white-fill-sizes.test-vrt.js.map +0 -1
- package/test/button-white-fill.test-vrt.js +0 -15
- package/test/button-white-fill.test-vrt.js.map +0 -1
- package/test/button-white-outline-sizes.test-vrt.js +0 -15
- package/test/button-white-outline-sizes.test-vrt.js.map +0 -1
- package/test/button-white-outline.test-vrt.js +0 -15
- package/test/button-white-outline.test-vrt.js.map +0 -1
- package/test/button.test.js +0 -390
- package/test/button.test.js.map +0 -1
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import { html } from '@spectrum-web-components/base';
|
|
13
|
-
import { bellIcon, renderButtonSet } from './index.js';
|
|
14
|
-
import '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';
|
|
15
|
-
export default {
|
|
16
|
-
component: 'sp-button',
|
|
17
|
-
title: 'Button/Warning',
|
|
18
|
-
args: {
|
|
19
|
-
disabled: false,
|
|
20
|
-
quiet: false,
|
|
21
|
-
variant: 'negative',
|
|
22
|
-
},
|
|
23
|
-
argTypes: {
|
|
24
|
-
disabled: {
|
|
25
|
-
name: 'disabled',
|
|
26
|
-
type: { name: 'boolean', required: false },
|
|
27
|
-
description: 'Disable this control. It will not receive focus or events.',
|
|
28
|
-
table: {
|
|
29
|
-
type: { summary: 'boolean' },
|
|
30
|
-
defaultValue: { summary: false },
|
|
31
|
-
},
|
|
32
|
-
control: {
|
|
33
|
-
type: 'boolean',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
quiet: {
|
|
37
|
-
name: 'quiet',
|
|
38
|
-
type: { name: 'boolean', required: false },
|
|
39
|
-
table: {
|
|
40
|
-
type: { summary: 'boolean' },
|
|
41
|
-
defaultValue: { summary: false },
|
|
42
|
-
},
|
|
43
|
-
control: {
|
|
44
|
-
type: 'boolean',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
variant: {
|
|
48
|
-
name: 'variant',
|
|
49
|
-
type: { name: 'string', required: false },
|
|
50
|
-
description: 'The visual variant to apply to the button.',
|
|
51
|
-
table: {
|
|
52
|
-
type: { summary: 'string' },
|
|
53
|
-
defaultValue: { summary: 'cta' },
|
|
54
|
-
},
|
|
55
|
-
control: {
|
|
56
|
-
type: 'inline-radio',
|
|
57
|
-
options: [
|
|
58
|
-
'cta',
|
|
59
|
-
'primary',
|
|
60
|
-
'secondary',
|
|
61
|
-
'negative',
|
|
62
|
-
'overBackground',
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
const variant = 'negative';
|
|
69
|
-
export const Default = (props) => renderButtonSet(props);
|
|
70
|
-
export const quiet = (props) => renderButtonSet(props);
|
|
71
|
-
quiet.args = {
|
|
72
|
-
quiet: true,
|
|
73
|
-
};
|
|
74
|
-
export const withIcon = (props) => {
|
|
75
|
-
return html `
|
|
76
|
-
<style>
|
|
77
|
-
.row {
|
|
78
|
-
padding: 10px;
|
|
79
|
-
}
|
|
80
|
-
</style>
|
|
81
|
-
<div class="row">
|
|
82
|
-
${renderButtonSet(Object.assign(Object.assign({}, props), { content: html `
|
|
83
|
-
<sp-icon-help slot="icon"></sp-icon-help>
|
|
84
|
-
Help
|
|
85
|
-
` }))}
|
|
86
|
-
</div>
|
|
87
|
-
<div class="row">
|
|
88
|
-
${renderButtonSet(Object.assign(Object.assign({}, props), { content: html `
|
|
89
|
-
${bellIcon} Custom SVG
|
|
90
|
-
` }))}
|
|
91
|
-
</div>
|
|
92
|
-
`;
|
|
93
|
-
};
|
|
94
|
-
export const iconSizeOverridden = () => {
|
|
95
|
-
return html `
|
|
96
|
-
<sp-button label="Edit" size="xl" variant=${variant}>
|
|
97
|
-
<sp-icon-help slot="icon" size="s">Testing</sp-icon-help>
|
|
98
|
-
</sp-button>
|
|
99
|
-
<h1>For testing purposes only</h1>
|
|
100
|
-
<p>
|
|
101
|
-
This is a test to ensure that sizing the icon will still work when
|
|
102
|
-
it's in the scope of a parent element. You shouldn't normally do
|
|
103
|
-
this as it deviates from the Spectrum design specification.
|
|
104
|
-
</p>
|
|
105
|
-
`;
|
|
106
|
-
};
|
|
107
|
-
export const minWidthButton = (props) => {
|
|
108
|
-
return html `
|
|
109
|
-
<style>
|
|
110
|
-
sp-button {
|
|
111
|
-
min-width: 300px;
|
|
112
|
-
}
|
|
113
|
-
</style>
|
|
114
|
-
${renderButtonSet(props)}
|
|
115
|
-
`;
|
|
116
|
-
};
|
|
117
|
-
minWidthButton.story = {
|
|
118
|
-
name: 'min-width',
|
|
119
|
-
};
|
|
120
|
-
const href = 'https://github.com/adobe/spectrum-web-components';
|
|
121
|
-
export const link = (props) => renderButtonSet(Object.assign(Object.assign({}, props), { href }));
|
|
122
|
-
link.story = {
|
|
123
|
-
name: 'href',
|
|
124
|
-
};
|
|
125
|
-
export const linkWithTarget = (props) => renderButtonSet(Object.assign(Object.assign({}, props), { href, target: '_blank' }));
|
|
126
|
-
linkWithTarget.story = {
|
|
127
|
-
name: 'href with target="_blank"',
|
|
128
|
-
};
|
|
129
|
-
//# sourceMappingURL=button-warning.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-warning.stories.js","sourceRoot":"","sources":["button-warning.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,+DAA+D,CAAC;AAEvE,eAAe;IACX,SAAS,EA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GAAG;IACnB,IAAI,EAAE,2BAA2B;CACpC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { bellIcon, renderButtonSet } from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Warning',\n args: {\n disabled: false,\n quiet: false,\n variant: 'negative',\n },\n argTypes: {\n disabled: {\n name: 'disabled',\n type: { name: 'boolean', required: false },\n description:\n 'Disable this control. It will not receive focus or events.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n quiet: {\n name: 'quiet',\n type: { name: 'boolean', required: false },\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n variant: {\n name: 'variant',\n type: { name: 'string', required: false },\n description: 'The visual variant to apply to the button.',\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'cta' },\n },\n control: {\n type: 'inline-radio',\n options: [\n 'cta',\n 'primary',\n 'secondary',\n 'negative',\n 'overBackground',\n ],\n },\n },\n },\n};\n\nconst variant = 'negative';\n\ninterface Properties {\n content?: TemplateResult;\n disabled?: boolean;\n quiet?: boolean;\n variant?: 'cta' | 'overBackground' | 'primary' | 'secondary' | 'negative';\n}\n\nexport const Default = (props: Properties): TemplateResult =>\n renderButtonSet(props);\n\nexport const quiet = (props: Properties): TemplateResult =>\n renderButtonSet(props);\nquiet.args = {\n quiet: true,\n};\n\nexport const withIcon = (props: Properties): TemplateResult => {\n return html`\n <style>\n .row {\n padding: 10px;\n }\n </style>\n <div class=\"row\">\n ${renderButtonSet({\n ...props,\n content: html`\n <sp-icon-help slot=\"icon\"></sp-icon-help>\n Help\n `,\n })}\n </div>\n <div class=\"row\">\n ${renderButtonSet({\n ...props,\n content: html`\n ${bellIcon} Custom SVG\n `,\n })}\n </div>\n `;\n};\n\nexport const iconSizeOverridden = (): TemplateResult => {\n return html`\n <sp-button label=\"Edit\" size=\"xl\" variant=${variant}>\n <sp-icon-help slot=\"icon\" size=\"s\">Testing</sp-icon-help>\n </sp-button>\n <h1>For testing purposes only</h1>\n <p>\n This is a test to ensure that sizing the icon will still work when\n it's in the scope of a parent element. You shouldn't normally do\n this as it deviates from the Spectrum design specification.\n </p>\n `;\n};\n\nexport const minWidthButton = (props: Properties): TemplateResult => {\n return html`\n <style>\n sp-button {\n min-width: 300px;\n }\n </style>\n ${renderButtonSet(props)}\n `;\n};\nminWidthButton.story = {\n name: 'min-width',\n};\n\nconst href = 'https://github.com/adobe/spectrum-web-components';\n\nexport const link = (props: Properties): TemplateResult =>\n renderButtonSet({\n ...props,\n href,\n });\nlink.story = {\n name: 'href',\n};\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderButtonSet({\n ...props,\n href,\n target: '_blank',\n });\nlinkWithTarget.story = {\n name: 'href with target=\"_blank\"',\n};\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { makeOverBackground, renderButtonSet } from './index.js';
|
|
2
|
-
import { args, argTypes } from './index.js';
|
|
3
|
-
const variant = 'white';
|
|
4
|
-
const treatment = 'fill';
|
|
5
|
-
export default {
|
|
6
|
-
component: 'sp-button',
|
|
7
|
-
title: 'Button/White/Fill/Sizes',
|
|
8
|
-
decorators: [makeOverBackground()],
|
|
9
|
-
args: Object.assign(Object.assign({}, args), { variant,
|
|
10
|
-
treatment }),
|
|
11
|
-
argTypes,
|
|
12
|
-
};
|
|
13
|
-
export const s = (args) => renderButtonSet(args);
|
|
14
|
-
s.args = {
|
|
15
|
-
size: 's',
|
|
16
|
-
};
|
|
17
|
-
export const m = (args) => renderButtonSet(args);
|
|
18
|
-
m.args = {
|
|
19
|
-
size: 'm',
|
|
20
|
-
};
|
|
21
|
-
export const l = (args) => renderButtonSet(args);
|
|
22
|
-
l.args = {
|
|
23
|
-
size: 'l',
|
|
24
|
-
};
|
|
25
|
-
export const XL = (args) => renderButtonSet(args);
|
|
26
|
-
XL.args = {
|
|
27
|
-
size: 'xl',
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=button-white-fill-sizes.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-white-fill-sizes.stories.js","sourceRoot":"","sources":["button-white-fill-sizes.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAc,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,yBAAyB;IAChC,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC;IAClC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC9E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;CACb,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground, Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'white';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/White/Fill/Sizes',\n decorators: [makeOverBackground()],\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtonSet(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtonSet(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtonSet(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtonSet(args);\nXL.args = {\n size: 'xl',\n};\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { makeOverBackground, renderButtonSet, renderIconSizeOverridden, renderLink, renderLinkWithTarget, renderMinWidthButton, renderWithIcon, } from './index.js';
|
|
2
|
-
import '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';
|
|
3
|
-
import { args, argTypes } from './index.js';
|
|
4
|
-
const variant = 'white';
|
|
5
|
-
const treatment = 'fill';
|
|
6
|
-
export default {
|
|
7
|
-
component: 'sp-button',
|
|
8
|
-
title: 'Button/White/Fill',
|
|
9
|
-
decorators: [makeOverBackground()],
|
|
10
|
-
args: Object.assign(Object.assign({}, args), { variant,
|
|
11
|
-
treatment }),
|
|
12
|
-
argTypes,
|
|
13
|
-
};
|
|
14
|
-
export const Default = (props) => renderButtonSet(props);
|
|
15
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
16
|
-
export const iconSizeOverridden = () => renderIconSizeOverridden(variant);
|
|
17
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
18
|
-
minWidthButton.story = {
|
|
19
|
-
name: 'min-width',
|
|
20
|
-
};
|
|
21
|
-
export const link = (props) => renderLink(props);
|
|
22
|
-
link.story = {
|
|
23
|
-
name: 'href',
|
|
24
|
-
};
|
|
25
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
26
|
-
linkWithTarget.story = {
|
|
27
|
-
name: 'href with target="_blank"',
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=button-white-fill.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-white-fill.stories.js","sourceRoot":"","sources":["button-white-fill.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,+DAA+D,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,mBAAmB;IAC1B,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC;IAClC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAiB,EAAkB,EAAE,CACzD,eAAe,CAAC,KAAK,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAC1D,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAmB,EAAE,CACnD,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAE7E,IAAI,CAAC,KAAK,GAAG;IACT,IAAI,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,2BAA2B;CACpC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n makeOverBackground,\n renderButtonSet,\n renderIconSizeOverridden,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n} from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport type { Properties } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'white';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/White/Fill',\n decorators: [makeOverBackground()],\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const Default = (props: Properties): TemplateResult =>\n renderButtonSet(props);\n\nexport const withIcon = (props: Properties): TemplateResult =>\n renderWithIcon(props);\n\nexport const iconSizeOverridden = (): TemplateResult =>\n renderIconSizeOverridden(variant);\n\nexport const minWidthButton = (props: Properties): TemplateResult =>\n renderMinWidthButton(props);\n\nminWidthButton.story = {\n name: 'min-width',\n};\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.story = {\n name: 'href',\n};\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.story = {\n name: 'href with target=\"_blank\"',\n};\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { makeOverBackground, renderButtonSet } from './index.js';
|
|
2
|
-
import { args, argTypes } from './index.js';
|
|
3
|
-
const variant = 'white';
|
|
4
|
-
const treatment = 'outline';
|
|
5
|
-
export default {
|
|
6
|
-
component: 'sp-button',
|
|
7
|
-
title: 'Button/White/Outline/Sizes',
|
|
8
|
-
decorators: [makeOverBackground()],
|
|
9
|
-
args: Object.assign(Object.assign({}, args), { variant,
|
|
10
|
-
treatment }),
|
|
11
|
-
argTypes,
|
|
12
|
-
};
|
|
13
|
-
export const s = (args) => renderButtonSet(args);
|
|
14
|
-
s.args = {
|
|
15
|
-
size: 's',
|
|
16
|
-
};
|
|
17
|
-
export const m = (args) => renderButtonSet(args);
|
|
18
|
-
m.args = {
|
|
19
|
-
size: 'm',
|
|
20
|
-
};
|
|
21
|
-
export const l = (args) => renderButtonSet(args);
|
|
22
|
-
l.args = {
|
|
23
|
-
size: 'l',
|
|
24
|
-
};
|
|
25
|
-
export const XL = (args) => renderButtonSet(args);
|
|
26
|
-
XL.args = {
|
|
27
|
-
size: 'xl',
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=button-white-outline-sizes.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-white-outline-sizes.stories.js","sourceRoot":"","sources":["button-white-outline-sizes.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAc,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,4BAA4B;IACnC,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC;IAClC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC9E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;CACb,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground, Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'white';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/White/Outline/Sizes',\n decorators: [makeOverBackground()],\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtonSet(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtonSet(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtonSet(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtonSet(args);\nXL.args = {\n size: 'xl',\n};\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { makeOverBackground, renderButtonSet, renderIconSizeOverridden, renderLink, renderLinkWithTarget, renderMinWidthButton, renderWithIcon, } from './index.js';
|
|
2
|
-
import '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';
|
|
3
|
-
import { args, argTypes } from './index.js';
|
|
4
|
-
const variant = 'white';
|
|
5
|
-
const treatment = 'outline';
|
|
6
|
-
export default {
|
|
7
|
-
component: 'sp-button',
|
|
8
|
-
title: 'Button/White/Outline',
|
|
9
|
-
decorators: [makeOverBackground()],
|
|
10
|
-
args: Object.assign(Object.assign({}, args), { variant,
|
|
11
|
-
treatment }),
|
|
12
|
-
argTypes,
|
|
13
|
-
};
|
|
14
|
-
export const Default = (props) => renderButtonSet(props);
|
|
15
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
16
|
-
export const iconSizeOverridden = () => renderIconSizeOverridden(variant);
|
|
17
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
18
|
-
minWidthButton.story = {
|
|
19
|
-
name: 'min-width',
|
|
20
|
-
};
|
|
21
|
-
export const link = (props) => renderLink(props);
|
|
22
|
-
link.story = {
|
|
23
|
-
name: 'href',
|
|
24
|
-
};
|
|
25
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
26
|
-
linkWithTarget.story = {
|
|
27
|
-
name: 'href with target="_blank"',
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=button-white-outline.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-white-outline.stories.js","sourceRoot":"","sources":["button-white-outline.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,+DAA+D,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,sBAAsB;IAC7B,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC;IAClC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAiB,EAAkB,EAAE,CACzD,eAAe,CAAC,KAAK,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAC1D,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAmB,EAAE,CACnD,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAE7E,IAAI,CAAC,KAAK,GAAG;IACT,IAAI,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,2BAA2B;CACpC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n makeOverBackground,\n renderButtonSet,\n renderIconSizeOverridden,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n} from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport type { Properties } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'white';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/White/Outline',\n decorators: [makeOverBackground()],\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const Default = (props: Properties): TemplateResult =>\n renderButtonSet(props);\n\nexport const withIcon = (props: Properties): TemplateResult =>\n renderWithIcon(props);\n\nexport const iconSizeOverridden = (): TemplateResult =>\n renderIconSizeOverridden(variant);\n\nexport const minWidthButton = (props: Properties): TemplateResult =>\n renderMinWidthButton(props);\n\nminWidthButton.story = {\n name: 'min-width',\n};\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.story = {\n name: 'href',\n};\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.story = {\n name: 'href with target=\"_blank\"',\n};\n"]}
|
package/stories/index.js
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import { html } from '@spectrum-web-components/base';
|
|
13
|
-
import { ifDefined } from '@spectrum-web-components/base/src/directives.js';
|
|
14
|
-
import '../sp-button.js';
|
|
15
|
-
import '@spectrum-web-components/icon/sp-icon.js';
|
|
16
|
-
import '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';
|
|
17
|
-
export const args = {
|
|
18
|
-
disabled: false,
|
|
19
|
-
variant: 'cta',
|
|
20
|
-
};
|
|
21
|
-
export const argTypes = {
|
|
22
|
-
disabled: {
|
|
23
|
-
name: 'disabled',
|
|
24
|
-
type: { name: 'boolean', required: false },
|
|
25
|
-
description: 'Disable this control. It will not receive focus or events.',
|
|
26
|
-
table: {
|
|
27
|
-
type: { summary: 'boolean' },
|
|
28
|
-
defaultValue: { summary: false },
|
|
29
|
-
},
|
|
30
|
-
control: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
variant: {
|
|
35
|
-
name: 'variant',
|
|
36
|
-
type: { name: 'string', required: false },
|
|
37
|
-
description: 'The visual variant to apply to the button.',
|
|
38
|
-
table: {
|
|
39
|
-
type: { summary: 'string' },
|
|
40
|
-
defaultValue: { summary: 'cta' },
|
|
41
|
-
},
|
|
42
|
-
control: {
|
|
43
|
-
type: 'inline-radio',
|
|
44
|
-
options: [
|
|
45
|
-
'cta',
|
|
46
|
-
'accent',
|
|
47
|
-
'primary',
|
|
48
|
-
'secondary',
|
|
49
|
-
'negative',
|
|
50
|
-
'overBackground',
|
|
51
|
-
'black',
|
|
52
|
-
'white',
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
treatment: {
|
|
57
|
-
name: 'tratment',
|
|
58
|
-
type: { name: 'string', required: false },
|
|
59
|
-
description: 'The visual treatment to apply to the button.',
|
|
60
|
-
table: {
|
|
61
|
-
type: { summary: 'string' },
|
|
62
|
-
defaultValue: { summary: 'fill' },
|
|
63
|
-
},
|
|
64
|
-
control: {
|
|
65
|
-
type: 'inline-radio',
|
|
66
|
-
options: ['fill', 'outline'],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
export const makeOverBackground = (variant) => (story) => {
|
|
71
|
-
const color = variant === 'black'
|
|
72
|
-
? 'rgb(181, 209, 211)'
|
|
73
|
-
: 'var(--spectrum-global-color-seafoam-600)';
|
|
74
|
-
return html `
|
|
75
|
-
<div
|
|
76
|
-
style="background-color: ${color}; color: ${color}; padding: var(--spectrum-global-dimension-size-175) var(--spectrum-global-dimension-size-250); display: inline-block;"
|
|
77
|
-
>
|
|
78
|
-
${story()}
|
|
79
|
-
</div>
|
|
80
|
-
`;
|
|
81
|
-
};
|
|
82
|
-
export function renderButton(properties) {
|
|
83
|
-
if (properties.variant) {
|
|
84
|
-
return html `
|
|
85
|
-
<sp-button
|
|
86
|
-
variant="${properties.variant}"
|
|
87
|
-
treatment="${properties.treatment}"
|
|
88
|
-
?quiet="${!!properties.quiet}"
|
|
89
|
-
?disabled=${!!properties.disabled}
|
|
90
|
-
size=${properties.size || 'm'}
|
|
91
|
-
href=${ifDefined(properties.href)}
|
|
92
|
-
target=${ifDefined(properties.target)}
|
|
93
|
-
?warning=${properties.warning}
|
|
94
|
-
>
|
|
95
|
-
${properties.content || 'Click Me'}
|
|
96
|
-
</sp-button>
|
|
97
|
-
`;
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
return html `
|
|
101
|
-
<sp-button
|
|
102
|
-
?quiet="${!!properties.quiet}"
|
|
103
|
-
?disabled=${!!properties.disabled}
|
|
104
|
-
size=${properties.size}
|
|
105
|
-
>
|
|
106
|
-
${properties.content || 'Click Me'}
|
|
107
|
-
</sp-button>
|
|
108
|
-
`;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
export function renderButtonSet(properties) {
|
|
112
|
-
const disabled = Object.assign({}, properties, { disabled: true });
|
|
113
|
-
const icon = Object.assign({}, properties, {
|
|
114
|
-
content: html `
|
|
115
|
-
<sp-icon-help slot="icon"></sp-icon-help>
|
|
116
|
-
Click Me
|
|
117
|
-
`,
|
|
118
|
-
});
|
|
119
|
-
return html `
|
|
120
|
-
${renderButton(properties)} ${renderButton(disabled)}
|
|
121
|
-
${renderButton(icon)}
|
|
122
|
-
`;
|
|
123
|
-
}
|
|
124
|
-
export const bellIcon = html `
|
|
125
|
-
<svg slot="icon" viewBox="0 0 36 36" focusable="false" aria-hidden="true">
|
|
126
|
-
<path
|
|
127
|
-
d="M16 36a4.407 4.407 0 0 0 4-4h-8a4.407 4.407 0 0 0 4 4zm9.143-24.615c0-3.437-3.206-4.891-7.143-5.268V3a1.079 1.079 0 0 0-1.143-1h-1.714A1.079 1.079 0 0 0 14 3v3.117c-3.937.377-7.143 1.831-7.143 5.268C6.857 26.8 2 26.111 2 28.154V30h28v-1.846C30 26 25.143 26.8 25.143 11.385z"
|
|
128
|
-
></path>
|
|
129
|
-
</svg>
|
|
130
|
-
`;
|
|
131
|
-
export const renderWithIcon = (props) => {
|
|
132
|
-
return html `
|
|
133
|
-
<style>
|
|
134
|
-
.row {
|
|
135
|
-
padding: 10px;
|
|
136
|
-
}
|
|
137
|
-
</style>
|
|
138
|
-
<div class="row">
|
|
139
|
-
${renderButtonSet(Object.assign(Object.assign({}, props), { content: html `
|
|
140
|
-
<sp-icon-help slot="icon"></sp-icon-help>
|
|
141
|
-
Help
|
|
142
|
-
` }))}
|
|
143
|
-
</div>
|
|
144
|
-
<div class="row">
|
|
145
|
-
${renderButtonSet(Object.assign(Object.assign({}, props), { content: html `
|
|
146
|
-
${bellIcon} Custom SVG
|
|
147
|
-
` }))}
|
|
148
|
-
</div>
|
|
149
|
-
`;
|
|
150
|
-
};
|
|
151
|
-
export const renderIconSizeOverridden = (variant) => {
|
|
152
|
-
return html `
|
|
153
|
-
<sp-button label="Edit" size="xl" variant=${variant}>
|
|
154
|
-
<sp-icon-help slot="icon" size="s">Testing</sp-icon-help>
|
|
155
|
-
</sp-button>
|
|
156
|
-
<h1>For testing purposes only</h1>
|
|
157
|
-
<p>
|
|
158
|
-
This is a test to ensure that sizing the icon will still work when
|
|
159
|
-
it's in the scope of a parent element. You shouldn't normally do
|
|
160
|
-
this as it deviates from the Spectrum design specification.
|
|
161
|
-
</p>
|
|
162
|
-
`;
|
|
163
|
-
};
|
|
164
|
-
export const renderMinWidthButton = (props) => {
|
|
165
|
-
return html `
|
|
166
|
-
<style>
|
|
167
|
-
sp-button {
|
|
168
|
-
min-width: 300px;
|
|
169
|
-
}
|
|
170
|
-
</style>
|
|
171
|
-
${renderButtonSet(props)}
|
|
172
|
-
`;
|
|
173
|
-
};
|
|
174
|
-
const href = 'https://github.com/adobe/spectrum-web-components';
|
|
175
|
-
export const renderLink = (props) => renderButtonSet(Object.assign(Object.assign({}, props), { href }));
|
|
176
|
-
export const renderLinkWithTarget = (props) => renderButtonSet(Object.assign(Object.assign({}, props), { href, target: '_blank' }));
|
|
177
|
-
//# sourceMappingURL=index.js.map
|
package/stories/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE5E,OAAO,iBAAiB,CAAC;AACzB,OAAO,0CAA0C,CAAC;AAClD,OAAO,+DAA+D,CAAC;AAGvE,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;QAC1C,WAAW,EACP,4DAA4D;QAChE,KAAK,EAAE;YACH,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;YAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;SACnC;QACD,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK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AAE;IAChB,OAAO,IAAI,CAAA;oDACqC,OAAO;;;;;;;;;KAStD,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAiB,EAAkB,EAAE;IACtE,OAAO,IAAI,CAAA;;;;;;UAML,eAAe,CAAC,KAAK,CAAC;KAC3B,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,kDAAkD,CAAC;AAEhE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAC5D,eAAe,iCACR,KAAK,KACR,IAAI,IACN,CAAC;AAEP,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAiB,EAAkB,EAAE,CACtE,eAAe,iCACR,KAAK,KACR,IAAI,EACJ,MAAM,EAAE,QAAQ,IAClB,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport '../sp-button.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport { ButtonTreatments, ButtonVariants } from '../src/Button.js';\n\nexport const args = {\n disabled: false,\n variant: 'cta',\n};\n\nexport const argTypes = {\n disabled: {\n name: 'disabled',\n type: { name: 'boolean', required: false },\n description:\n 'Disable this control. It will not receive focus or events.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n variant: {\n name: 'variant',\n type: { name: 'string', required: false },\n description: 'The visual variant to apply to the button.',\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'cta' },\n },\n control: {\n type: 'inline-radio',\n options: [\n 'cta',\n 'accent',\n 'primary',\n 'secondary',\n 'negative',\n 'overBackground',\n 'black',\n 'white',\n ],\n },\n },\n treatment: {\n name: 'tratment',\n type: { name: 'string', required: false },\n description: 'The visual treatment to apply to the button.',\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'fill' },\n },\n control: {\n type: 'inline-radio',\n options: ['fill', 'outline'],\n },\n },\n};\n\nexport interface Properties {\n variant?: ButtonVariants;\n treatment?: ButtonTreatments;\n quiet?: boolean;\n content?: TemplateResult;\n disabled?: boolean;\n size?: 's' | 'm' | 'l' | 'xl';\n href?: string;\n target?: '_blank' | '_parent' | '_self' | '_top';\n warning?: boolean;\n}\n\nexport const makeOverBackground =\n (variant?: 'white' | 'black') =>\n (story: () => TemplateResult): TemplateResult => {\n const color =\n variant === 'black'\n ? 'rgb(181, 209, 211)'\n : 'var(--spectrum-global-color-seafoam-600)';\n return html`\n <div\n style=\"background-color: ${color}; color: ${color}; padding: var(--spectrum-global-dimension-size-175) var(--spectrum-global-dimension-size-250); display: inline-block;\"\n >\n ${story()}\n </div>\n `;\n };\n\nexport function renderButton(properties: Properties): TemplateResult {\n if (properties.variant) {\n return html`\n <sp-button\n variant=\"${properties.variant}\"\n treatment=\"${properties.treatment}\"\n ?quiet=\"${!!properties.quiet}\"\n ?disabled=${!!properties.disabled}\n size=${properties.size || 'm'}\n href=${ifDefined(properties.href)}\n target=${ifDefined(properties.target)}\n ?warning=${properties.warning}\n >\n ${properties.content || 'Click Me'}\n </sp-button>\n `;\n } else {\n return html`\n <sp-button\n ?quiet=\"${!!properties.quiet}\"\n ?disabled=${!!properties.disabled}\n size=${properties.size}\n >\n ${properties.content || 'Click Me'}\n </sp-button>\n `;\n }\n}\n\nexport function renderButtonSet(properties: Properties): TemplateResult {\n const disabled = Object.assign({}, properties, { disabled: true });\n const icon = Object.assign({}, properties, {\n content: html`\n <sp-icon-help slot=\"icon\"></sp-icon-help>\n Click Me\n `,\n });\n return html`\n ${renderButton(properties)} ${renderButton(disabled)}\n ${renderButton(icon)}\n `;\n}\n\nexport const bellIcon = html`\n <svg slot=\"icon\" viewBox=\"0 0 36 36\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M16 36a4.407 4.407 0 0 0 4-4h-8a4.407 4.407 0 0 0 4 4zm9.143-24.615c0-3.437-3.206-4.891-7.143-5.268V3a1.079 1.079 0 0 0-1.143-1h-1.714A1.079 1.079 0 0 0 14 3v3.117c-3.937.377-7.143 1.831-7.143 5.268C6.857 26.8 2 26.111 2 28.154V30h28v-1.846C30 26 25.143 26.8 25.143 11.385z\"\n ></path>\n </svg>\n`;\n\nexport const renderWithIcon = (props: Properties): TemplateResult => {\n return html`\n <style>\n .row {\n padding: 10px;\n }\n </style>\n <div class=\"row\">\n ${renderButtonSet({\n ...props,\n content: html`\n <sp-icon-help slot=\"icon\"></sp-icon-help>\n Help\n `,\n })}\n </div>\n <div class=\"row\">\n ${renderButtonSet({\n ...props,\n content: html`\n ${bellIcon} Custom SVG\n `,\n })}\n </div>\n `;\n};\n\nexport const renderIconSizeOverridden = (\n variant: ButtonVariants\n): TemplateResult => {\n return html`\n <sp-button label=\"Edit\" size=\"xl\" variant=${variant}>\n <sp-icon-help slot=\"icon\" size=\"s\">Testing</sp-icon-help>\n </sp-button>\n <h1>For testing purposes only</h1>\n <p>\n This is a test to ensure that sizing the icon will still work when\n it's in the scope of a parent element. You shouldn't normally do\n this as it deviates from the Spectrum design specification.\n </p>\n `;\n};\n\nexport const renderMinWidthButton = (props: Properties): TemplateResult => {\n return html`\n <style>\n sp-button {\n min-width: 300px;\n }\n </style>\n ${renderButtonSet(props)}\n `;\n};\n\nconst href = 'https://github.com/adobe/spectrum-web-components';\n\nexport const renderLink = (props: Properties): TemplateResult =>\n renderButtonSet({\n ...props,\n href,\n });\n\nexport const renderLinkWithTarget = (props: Properties): TemplateResult =>\n renderButtonSet({\n ...props,\n href,\n target: '_blank',\n });\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import * as stories from '../stories/button-accent-fill-sizes.stories.js';
|
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
|
14
|
-
regressVisuals('ButtonAccentFillSizesStories', stories);
|
|
15
|
-
//# sourceMappingURL=button-accent-fill-sizes.test-vrt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-accent-fill-sizes.test-vrt.js","sourceRoot":"","sources":["button-accent-fill-sizes.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/button-accent-fill-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonAccentFillSizesStories', stories);\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import * as stories from '../stories/button-accent-fill.stories.js';
|
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
|
14
|
-
regressVisuals('ButtonAccentFillStories', stories);
|
|
15
|
-
//# sourceMappingURL=button-accent-fill.test-vrt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-accent-fill.test-vrt.js","sourceRoot":"","sources":["button-accent-fill.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/button-accent-fill.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonAccentFillStories', stories);\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import * as stories from '../stories/button-accent-outline-sizes.stories.js';
|
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
|
14
|
-
regressVisuals('ButtonAccentOutlineSizesStories', stories);
|
|
15
|
-
//# sourceMappingURL=button-accent-outline-sizes.test-vrt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-accent-outline-sizes.test-vrt.js","sourceRoot":"","sources":["button-accent-outline-sizes.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/button-accent-outline-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonAccentOutlineSizesStories', stories);\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import * as stories from '../stories/button-accent-outline.stories.js';
|
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
|
14
|
-
regressVisuals('ButtonAccentOutlineStories', stories);
|
|
15
|
-
//# sourceMappingURL=button-accent-outline.test-vrt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-accent-outline.test-vrt.js","sourceRoot":"","sources":["button-accent-outline.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/button-accent-outline.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonAccentOutlineStories', stories);\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import * as stories from '../stories/button-black-fill-sizes.stories.js';
|
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
|
14
|
-
regressVisuals('ButtonBlackFillSizesStories', stories);
|
|
15
|
-
//# sourceMappingURL=button-black-fill-sizes.test-vrt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-black-fill-sizes.test-vrt.js","sourceRoot":"","sources":["button-black-fill-sizes.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/button-black-fill-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonBlackFillSizesStories', stories);\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import * as stories from '../stories/button-black-fill.stories.js';
|
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
|
14
|
-
regressVisuals('ButtonBlackFillStories', stories);
|
|
15
|
-
//# sourceMappingURL=button-black-fill.test-vrt.js.map
|