@spectrum-web-components/button 0.19.0 → 0.19.2
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/package.json +3 -3
- package/sp-button.dev.js +1 -0
- package/sp-button.dev.js.map +1 -1
- package/sp-button.js +1 -1
- package/sp-button.js.map +2 -2
- package/sp-clear-button.dev.js +1 -0
- package/sp-clear-button.dev.js.map +1 -1
- package/sp-clear-button.js +1 -1
- package/sp-clear-button.js.map +2 -2
- package/sp-close-button.dev.js +1 -0
- package/sp-close-button.dev.js.map +1 -1
- package/sp-close-button.js +1 -1
- package/sp-close-button.js.map +2 -2
- package/src/Button.dev.js +1 -0
- package/src/Button.dev.js.map +1 -1
- package/src/Button.js +1 -1
- package/src/Button.js.map +2 -2
- package/src/ButtonBase.dev.js +8 -2
- package/src/ButtonBase.dev.js.map +1 -1
- package/src/ButtonBase.js +1 -1
- package/src/ButtonBase.js.map +2 -2
- package/src/ClearButton.dev.js +1 -0
- package/src/ClearButton.dev.js.map +1 -1
- package/src/ClearButton.js +5 -5
- package/src/ClearButton.js.map +2 -2
- package/src/CloseButton.dev.js +1 -0
- package/src/CloseButton.dev.js.map +1 -1
- package/src/CloseButton.js +1 -1
- package/src/CloseButton.js.map +2 -2
- package/src/StyledButton.dev.js +1 -0
- package/src/StyledButton.dev.js.map +1 -1
- package/src/StyledButton.js +1 -1
- package/src/StyledButton.js.map +2 -2
- package/src/button-base.css.dev.js +1 -0
- package/src/button-base.css.dev.js.map +1 -1
- package/src/button-base.css.js +1 -1
- package/src/button-base.css.js.map +2 -2
- package/src/button.css.dev.js +1 -0
- package/src/button.css.dev.js.map +1 -1
- package/src/button.css.js +1 -1
- package/src/button.css.js.map +2 -2
- package/src/index.dev.js +1 -0
- package/src/index.dev.js.map +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/spectrum-button-base.css.dev.js +1 -0
- package/src/spectrum-button-base.css.dev.js.map +1 -1
- package/src/spectrum-button-base.css.js +1 -1
- package/src/spectrum-button-base.css.js.map +2 -2
- package/src/spectrum-button.css.dev.js +1 -0
- package/src/spectrum-button.css.dev.js.map +1 -1
- package/src/spectrum-button.css.js +1 -1
- package/src/spectrum-button.css.js.map +2 -2
- package/stories/button-accent-fill-sizes.stories.js +31 -1
- package/stories/button-accent-fill-sizes.stories.js.map +2 -2
- package/stories/button-accent-fill.stories.js +32 -1
- package/stories/button-accent-fill.stories.js.map +1 -1
- package/stories/button-accent-outline-sizes.stories.js +31 -1
- package/stories/button-accent-outline-sizes.stories.js.map +2 -2
- package/stories/button-accent-outline.stories.js +32 -1
- package/stories/button-accent-outline.stories.js.map +1 -1
- package/stories/button-black-fill-sizes.stories.js +32 -1
- package/stories/button-black-fill-sizes.stories.js.map +2 -2
- package/stories/button-black-fill.stories.js +34 -1
- package/stories/button-black-fill.stories.js.map +1 -1
- package/stories/button-black-outline-sizes.stories.js +32 -1
- package/stories/button-black-outline-sizes.stories.js.map +2 -2
- package/stories/button-black-outline.stories.js +34 -1
- package/stories/button-black-outline.stories.js.map +1 -1
- package/stories/button-negative-fill-sizes.stories.js +31 -1
- package/stories/button-negative-fill-sizes.stories.js.map +2 -2
- package/stories/button-negative-fill.stories.js +32 -1
- package/stories/button-negative-fill.stories.js.map +1 -1
- package/stories/button-negative-outline-sizes.stories.js +31 -1
- package/stories/button-negative-outline-sizes.stories.js.map +2 -2
- package/stories/button-negative-outline.stories.js +32 -1
- package/stories/button-negative-outline.stories.js.map +1 -1
- package/stories/button-primary-fill-sizes.stories.js +31 -1
- package/stories/button-primary-fill-sizes.stories.js.map +2 -2
- package/stories/button-primary-fill.stories.js +32 -1
- package/stories/button-primary-fill.stories.js.map +1 -1
- package/stories/button-primary-outline-sizes.stories.js +31 -1
- package/stories/button-primary-outline-sizes.stories.js.map +2 -2
- package/stories/button-primary-outline.stories.js +32 -1
- package/stories/button-primary-outline.stories.js.map +1 -1
- package/stories/button-secondary-fill-sizes.stories.js +31 -1
- package/stories/button-secondary-fill-sizes.stories.js.map +2 -2
- package/stories/button-secondary-fill.stories.js +32 -1
- package/stories/button-secondary-fill.stories.js.map +1 -1
- package/stories/button-secondary-outline-sizes.stories.js +31 -1
- package/stories/button-secondary-outline-sizes.stories.js.map +2 -2
- package/stories/button-secondary-outline.stories.js +32 -1
- package/stories/button-secondary-outline.stories.js.map +1 -1
- package/stories/button-white-fill-sizes.stories.js +32 -1
- package/stories/button-white-fill-sizes.stories.js.map +2 -2
- package/stories/button-white-fill.stories.js +34 -1
- package/stories/button-white-fill.stories.js.map +1 -1
- package/stories/button-white-outline-sizes.stories.js +32 -1
- package/stories/button-white-outline-sizes.stories.js.map +2 -2
- package/stories/button-white-outline.stories.js +34 -1
- package/stories/button-white-outline.stories.js.map +1 -1
- package/stories/index.js +138 -36
- package/stories/index.js.map +1 -1
- package/test/benchmark/test-basic.js +5 -1
- package/test/benchmark/test-basic.js.map +1 -1
- package/test/button-accent-fill-sizes.test-vrt.js +4 -1
- package/test/button-accent-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-accent-fill.test-vrt.js +4 -1
- package/test/button-accent-fill.test-vrt.js.map +1 -1
- package/test/button-accent-outline-sizes.test-vrt.js +4 -1
- package/test/button-accent-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-accent-outline.test-vrt.js +4 -1
- package/test/button-accent-outline.test-vrt.js.map +1 -1
- package/test/button-black-fill-sizes.test-vrt.js +4 -1
- package/test/button-black-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-black-fill.test-vrt.js +4 -1
- package/test/button-black-fill.test-vrt.js.map +1 -1
- package/test/button-black-outline-sizes.test-vrt.js +4 -1
- package/test/button-black-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-black-outline.test-vrt.js +4 -1
- package/test/button-black-outline.test-vrt.js.map +1 -1
- package/test/button-negative-fill-sizes.test-vrt.js +4 -1
- package/test/button-negative-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-negative-fill.test-vrt.js +4 -1
- package/test/button-negative-fill.test-vrt.js.map +1 -1
- package/test/button-negative-outline-sizes.test-vrt.js +4 -1
- package/test/button-negative-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-negative-outline.test-vrt.js +4 -1
- package/test/button-negative-outline.test-vrt.js.map +1 -1
- package/test/button-primary-fill-sizes.test-vrt.js +4 -1
- package/test/button-primary-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-primary-fill.test-vrt.js +4 -1
- package/test/button-primary-fill.test-vrt.js.map +1 -1
- package/test/button-primary-outline-sizes.test-vrt.js +4 -1
- package/test/button-primary-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-primary-outline.test-vrt.js +4 -1
- package/test/button-primary-outline.test-vrt.js.map +1 -1
- package/test/button-secondary-fill-sizes.test-vrt.js +4 -1
- package/test/button-secondary-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-secondary-fill.test-vrt.js +4 -1
- package/test/button-secondary-fill.test-vrt.js.map +1 -1
- package/test/button-secondary-outline-sizes.test-vrt.js +4 -1
- package/test/button-secondary-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-secondary-outline.test-vrt.js +4 -1
- package/test/button-secondary-outline.test-vrt.js.map +1 -1
- package/test/button-white-fill-sizes.test-vrt.js +4 -1
- package/test/button-white-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-white-fill.test-vrt.js +4 -1
- package/test/button-white-fill.test-vrt.js.map +1 -1
- package/test/button-white-outline-sizes.test-vrt.js +4 -1
- package/test/button-white-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-white-outline.test-vrt.js +4 -1
- package/test/button-white-outline.test-vrt.js.map +1 -1
- package/test/button.test.js +416 -29
- package/test/button.test.js.map +1 -1
- package/test/clear-button.test.js +22 -4
- package/test/clear-button.test.js.map +1 -1
- package/test/close-button.test.js +22 -4
- package/test/close-button.test.js.map +1 -1
package/stories/index.js
CHANGED
|
@@ -1,71 +1,159 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import { html } from "@spectrum-web-components/base";
|
|
3
|
+
import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
|
|
4
|
+
import "@spectrum-web-components/button/sp-button.js";
|
|
5
|
+
import "@spectrum-web-components/icon/sp-icon.js";
|
|
6
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
7
|
+
export const args = {
|
|
8
|
+
disabled: false,
|
|
9
|
+
variant: "cta"
|
|
10
|
+
};
|
|
11
|
+
export const argTypes = {
|
|
12
|
+
disabled: {
|
|
13
|
+
name: "disabled",
|
|
14
|
+
type: { name: "boolean", required: false },
|
|
15
|
+
description: "Disable this control. It will not receive focus or events.",
|
|
16
|
+
table: {
|
|
17
|
+
type: { summary: "boolean" },
|
|
18
|
+
defaultValue: { summary: false }
|
|
19
|
+
},
|
|
20
|
+
control: {
|
|
21
|
+
type: "boolean"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
variant: {
|
|
25
|
+
name: "variant",
|
|
26
|
+
type: { name: "string", required: false },
|
|
27
|
+
description: "The visual variant to apply to the button.",
|
|
28
|
+
table: {
|
|
29
|
+
type: { summary: "string" },
|
|
30
|
+
defaultValue: { summary: "cta" }
|
|
31
|
+
},
|
|
32
|
+
control: {
|
|
33
|
+
type: "inline-radio",
|
|
34
|
+
options: [
|
|
35
|
+
"cta",
|
|
36
|
+
"accent",
|
|
37
|
+
"primary",
|
|
38
|
+
"secondary",
|
|
39
|
+
"negative",
|
|
40
|
+
"overBackground",
|
|
41
|
+
"black",
|
|
42
|
+
"white"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
treatment: {
|
|
47
|
+
name: "treatment",
|
|
48
|
+
type: { name: "string", required: false },
|
|
49
|
+
description: "The visual treatment to apply to the button.",
|
|
50
|
+
table: {
|
|
51
|
+
type: { summary: "string" },
|
|
52
|
+
defaultValue: { summary: "fill" }
|
|
53
|
+
},
|
|
54
|
+
control: {
|
|
55
|
+
type: "inline-radio",
|
|
56
|
+
options: ["fill", "outline"]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export const makeOverBackground = (variant) => (story) => {
|
|
61
|
+
const color = variant === "black" ? "rgb(181, 209, 211)" : "var(--spectrum-global-color-seafoam-600)";
|
|
62
|
+
return html`
|
|
2
63
|
<div
|
|
3
64
|
style="
|
|
4
|
-
--mod-actionbutton-static-content-color: ${
|
|
5
|
-
background-color: ${
|
|
6
|
-
color: ${
|
|
65
|
+
--mod-actionbutton-static-content-color: ${color};
|
|
66
|
+
background-color: ${color};
|
|
67
|
+
color: ${color};
|
|
7
68
|
padding: var(--spectrum-global-dimension-size-175) var(--spectrum-global-dimension-size-250);
|
|
8
69
|
display: inline-block;
|
|
9
70
|
"
|
|
10
71
|
>
|
|
11
|
-
${
|
|
72
|
+
${story()}
|
|
12
73
|
</div>
|
|
13
|
-
|
|
74
|
+
`;
|
|
75
|
+
};
|
|
76
|
+
export function renderButton(properties) {
|
|
77
|
+
if (properties.variant) {
|
|
78
|
+
return html`
|
|
14
79
|
<sp-button
|
|
15
|
-
variant="${
|
|
16
|
-
treatment="${
|
|
17
|
-
?quiet="${!!
|
|
18
|
-
?disabled=${!!
|
|
19
|
-
size=${
|
|
20
|
-
href=${
|
|
21
|
-
target=${
|
|
22
|
-
?warning=${
|
|
80
|
+
variant="${properties.variant}"
|
|
81
|
+
treatment="${properties.treatment}"
|
|
82
|
+
?quiet="${!!properties.quiet}"
|
|
83
|
+
?disabled=${!!properties.disabled}
|
|
84
|
+
size=${properties.size || "m"}
|
|
85
|
+
href=${ifDefined(properties.href)}
|
|
86
|
+
target=${ifDefined(properties.target)}
|
|
87
|
+
?warning=${properties.warning}
|
|
23
88
|
>
|
|
24
|
-
${
|
|
89
|
+
${properties.content || "Click Me"}
|
|
25
90
|
</sp-button>
|
|
26
|
-
|
|
91
|
+
`;
|
|
92
|
+
} else {
|
|
93
|
+
return html`
|
|
27
94
|
<sp-button
|
|
28
|
-
?quiet="${!!
|
|
29
|
-
?disabled=${!!
|
|
30
|
-
size=${
|
|
95
|
+
?quiet="${!!properties.quiet}"
|
|
96
|
+
?disabled=${!!properties.disabled}
|
|
97
|
+
size=${properties.size}
|
|
31
98
|
>
|
|
32
|
-
${
|
|
99
|
+
${properties.content || "Click Me"}
|
|
33
100
|
</sp-button>
|
|
34
|
-
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
export function renderButtonSet(properties) {
|
|
105
|
+
const disabled = Object.assign({}, properties, { disabled: true });
|
|
106
|
+
const icon = Object.assign({}, properties, {
|
|
107
|
+
content: html`
|
|
35
108
|
<sp-icon-help slot="icon"></sp-icon-help>
|
|
36
109
|
Click Me
|
|
37
|
-
`
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
110
|
+
`
|
|
111
|
+
});
|
|
112
|
+
return html`
|
|
113
|
+
${renderButton(properties)} ${renderButton(disabled)}
|
|
114
|
+
${renderButton(icon)}
|
|
115
|
+
`;
|
|
116
|
+
}
|
|
117
|
+
export const bellIcon = html`
|
|
41
118
|
<svg slot="icon" viewBox="0 0 36 36" focusable="false" aria-hidden="true">
|
|
42
119
|
<path
|
|
43
120
|
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"
|
|
44
121
|
></path>
|
|
45
122
|
</svg>
|
|
46
|
-
|
|
123
|
+
`;
|
|
124
|
+
export const renderWithIcon = (props) => {
|
|
125
|
+
return html`
|
|
47
126
|
<style>
|
|
48
127
|
.row {
|
|
49
128
|
padding: 10px;
|
|
50
129
|
}
|
|
51
130
|
</style>
|
|
52
131
|
<div class="row">
|
|
53
|
-
${renderButtonSet({
|
|
132
|
+
${renderButtonSet({
|
|
133
|
+
...props,
|
|
134
|
+
content: html`
|
|
54
135
|
<sp-icon-help slot="icon"></sp-icon-help>
|
|
55
136
|
Help
|
|
56
|
-
`
|
|
137
|
+
`
|
|
138
|
+
})}
|
|
57
139
|
</div>
|
|
58
140
|
<div class="row">
|
|
59
|
-
${renderButtonSet({
|
|
141
|
+
${renderButtonSet({
|
|
142
|
+
...props,
|
|
143
|
+
content: html`
|
|
60
144
|
${bellIcon} Custom SVG
|
|
61
|
-
`
|
|
145
|
+
`
|
|
146
|
+
})}
|
|
62
147
|
</div>
|
|
63
|
-
|
|
148
|
+
`;
|
|
149
|
+
};
|
|
150
|
+
export const renderIconSizeOverridden = (variant, treatment) => {
|
|
151
|
+
return html`
|
|
64
152
|
<sp-button
|
|
65
153
|
label="Edit"
|
|
66
154
|
size="xl"
|
|
67
|
-
variant=${
|
|
68
|
-
treatment=${
|
|
155
|
+
variant=${variant}
|
|
156
|
+
treatment=${treatment}
|
|
69
157
|
>
|
|
70
158
|
<sp-icon-help slot="icon" size="s">Testing</sp-icon-help>
|
|
71
159
|
</sp-button>
|
|
@@ -75,12 +163,26 @@ import{html as e}from"@spectrum-web-components/base";import{ifDefined as o}from"
|
|
|
75
163
|
it's in the scope of a parent element. You shouldn't normally do
|
|
76
164
|
this as it deviates from the Spectrum design specification.
|
|
77
165
|
</p>
|
|
78
|
-
|
|
166
|
+
`;
|
|
167
|
+
};
|
|
168
|
+
export const renderMinWidthButton = (props) => {
|
|
169
|
+
return html`
|
|
79
170
|
<style>
|
|
80
171
|
sp-button {
|
|
81
172
|
min-width: 300px;
|
|
82
173
|
}
|
|
83
174
|
</style>
|
|
84
|
-
${renderButtonSet(
|
|
85
|
-
`;
|
|
175
|
+
${renderButtonSet(props)}
|
|
176
|
+
`;
|
|
177
|
+
};
|
|
178
|
+
const href = "https://github.com/adobe/spectrum-web-components";
|
|
179
|
+
export const renderLink = (props) => renderButtonSet({
|
|
180
|
+
...props,
|
|
181
|
+
href
|
|
182
|
+
});
|
|
183
|
+
export const renderLinkWithTarget = (props) => renderButtonSet({
|
|
184
|
+
...props,
|
|
185
|
+
href,
|
|
186
|
+
target: "_blank"
|
|
187
|
+
});
|
|
86
188
|
//# sourceMappingURL=index.js.map
|
package/stories/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
4
|
"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 '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport {\n ButtonTreatments,\n ButtonVariants,\n} from '@spectrum-web-components/button/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: 'treatment',\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=\"\n --mod-actionbutton-static-content-color: ${color};\n background-color: ${color};\n color: ${color};\n padding: var(--spectrum-global-dimension-size-175) var(--spectrum-global-dimension-size-250);\n display: inline-block;\n \"\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 treatment: ButtonTreatments\n): TemplateResult => {\n return html`\n <sp-button\n label=\"Edit\"\n size=\"xl\"\n variant=${variant}\n treatment=${treatment}\n >\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"],
|
|
5
|
-
"mappings": "AAWA,
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import "@spectrum-web-components/button/sp-button.js";
|
|
3
|
+
import { html } from "lit";
|
|
4
|
+
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
|
5
|
+
measureFixtureCreation(html`
|
|
2
6
|
<sp-button>Click me</sp-button>
|
|
3
7
|
`);
|
|
4
8
|
//# sourceMappingURL=test-basic.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["test-basic.ts"],
|
|
4
4
|
"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 '@spectrum-web-components/button/sp-button.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-button>Click me</sp-button>\n`);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA,CAEtB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-accent-fill-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonAccentFillSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-accent-fill-sizes.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-accent-fill-sizes.test-vrt.ts"],
|
|
4
4
|
"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"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,gCAAgC,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-accent-fill.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonAccentFillStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-accent-fill.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-accent-fill.test-vrt.ts"],
|
|
4
4
|
"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"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,2BAA2B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-accent-outline-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonAccentOutlineSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-accent-outline-sizes.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-accent-outline-sizes.test-vrt.ts"],
|
|
4
4
|
"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"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,mCAAmC,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-accent-outline.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonAccentOutlineStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-accent-outline.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-accent-outline.test-vrt.ts"],
|
|
4
4
|
"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"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,8BAA8B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-black-fill-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonBlackFillSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-black-fill-sizes.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-black-fill-sizes.test-vrt.ts"],
|
|
4
4
|
"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"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,+BAA+B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-black-fill.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonBlackFillStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-black-fill.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-black-fill.test-vrt.ts"],
|
|
4
4
|
"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.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonBlackFillStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,0BAA0B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-black-outline-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonBlackOutlineSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-black-outline-sizes.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-black-outline-sizes.test-vrt.ts"],
|
|
4
4
|
"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-outline-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonBlackOutlineSizesStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,kCAAkC,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-black-outline.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonBlackOutlineStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-black-outline.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-black-outline.test-vrt.ts"],
|
|
4
4
|
"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-outline.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonBlackOutlineStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,6BAA6B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-negative-fill-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonNegativeFillSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-negative-fill-sizes.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-negative-fill-sizes.test-vrt.ts"],
|
|
4
4
|
"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-negative-fill-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonNegativeFillSizesStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,kCAAkC,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-negative-fill.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonNegativeFillStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-negative-fill.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-negative-fill.test-vrt.ts"],
|
|
4
4
|
"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-negative-fill.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonNegativeFillStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,6BAA6B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-negative-outline-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonNegativeOutlineSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-negative-outline-sizes.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-negative-outline-sizes.test-vrt.ts"],
|
|
4
4
|
"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-negative-outline-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonNegativeOutlineSizesStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,qCAAqC,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-negative-outline.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonNegativeOutlineStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-negative-outline.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-negative-outline.test-vrt.ts"],
|
|
4
4
|
"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-negative-outline.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonNegativeOutlineStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,gCAAgC,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-primary-fill-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonPrimaryFillSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-primary-fill-sizes.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-primary-fill-sizes.test-vrt.ts"],
|
|
4
4
|
"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-primary-fill-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonPrimaryFillSizesStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,iCAAiC,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-primary-fill.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonPrimaryFillStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-primary-fill.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-primary-fill.test-vrt.ts"],
|
|
4
4
|
"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-primary-fill.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonPrimaryFillStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,4BAA4B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-primary-outline-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonPrimaryOutlineSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-primary-outline-sizes.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-primary-outline-sizes.test-vrt.ts"],
|
|
4
4
|
"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-primary-outline-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonPrimaryOutlineSizesStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,oCAAoC,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-primary-outline.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonPrimaryOutlineStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-primary-outline.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-primary-outline.test-vrt.ts"],
|
|
4
4
|
"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-primary-outline.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonPrimaryOutlineStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,+BAA+B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/button-secondary-fill-sizes.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ButtonSecondaryFillSizesStories", stories);
|
|
2
5
|
//# sourceMappingURL=button-secondary-fill-sizes.test-vrt.js.map
|