@spectrum-web-components/button 1.3.0-beta.2 → 1.3.0-testing.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/package.json +10 -11
- package/LICENSE +0 -201
- package/stories/button-accent-fill-pending.stories.js +0 -34
- package/stories/button-accent-fill-pending.stories.js.map +0 -7
- package/stories/button-accent-fill-sizes.stories.js +0 -32
- package/stories/button-accent-fill-sizes.stories.js.map +0 -7
- package/stories/button-accent-fill.stories.js +0 -33
- package/stories/button-accent-fill.stories.js.map +0 -7
- package/stories/button-accent-outline-pending.stories.js +0 -34
- package/stories/button-accent-outline-pending.stories.js.map +0 -7
- package/stories/button-accent-outline-sizes.stories.js +0 -32
- package/stories/button-accent-outline-sizes.stories.js.map +0 -7
- package/stories/button-accent-outline.stories.js +0 -33
- package/stories/button-accent-outline.stories.js.map +0 -7
- package/stories/button-black-fill-pending.stories.js +0 -34
- package/stories/button-black-fill-pending.stories.js.map +0 -7
- package/stories/button-black-fill-sizes.stories.js +0 -33
- package/stories/button-black-fill-sizes.stories.js.map +0 -7
- package/stories/button-black-fill.stories.js +0 -35
- package/stories/button-black-fill.stories.js.map +0 -7
- package/stories/button-black-outline-pending.stories.js +0 -34
- package/stories/button-black-outline-pending.stories.js.map +0 -7
- package/stories/button-black-outline-sizes.stories.js +0 -33
- package/stories/button-black-outline-sizes.stories.js.map +0 -7
- package/stories/button-black-outline.stories.js +0 -35
- package/stories/button-black-outline.stories.js.map +0 -7
- package/stories/button-negative-fill-pending.stories.js +0 -34
- package/stories/button-negative-fill-pending.stories.js.map +0 -7
- package/stories/button-negative-fill-sizes.stories.js +0 -32
- package/stories/button-negative-fill-sizes.stories.js.map +0 -7
- package/stories/button-negative-fill.stories.js +0 -33
- package/stories/button-negative-fill.stories.js.map +0 -7
- package/stories/button-negative-outline-pending.stories.js +0 -34
- package/stories/button-negative-outline-pending.stories.js.map +0 -7
- package/stories/button-negative-outline-sizes.stories.js +0 -32
- package/stories/button-negative-outline-sizes.stories.js.map +0 -7
- package/stories/button-negative-outline.stories.js +0 -33
- package/stories/button-negative-outline.stories.js.map +0 -7
- package/stories/button-primary-fill-pending.stories.js +0 -34
- package/stories/button-primary-fill-pending.stories.js.map +0 -7
- package/stories/button-primary-fill-sizes.stories.js +0 -32
- package/stories/button-primary-fill-sizes.stories.js.map +0 -7
- package/stories/button-primary-fill.stories.js +0 -46
- package/stories/button-primary-fill.stories.js.map +0 -7
- package/stories/button-primary-outline-pending.stories.js +0 -34
- package/stories/button-primary-outline-pending.stories.js.map +0 -7
- package/stories/button-primary-outline-sizes.stories.js +0 -32
- package/stories/button-primary-outline-sizes.stories.js.map +0 -7
- package/stories/button-primary-outline.stories.js +0 -33
- package/stories/button-primary-outline.stories.js.map +0 -7
- package/stories/button-secondary-fill-pending.stories.js +0 -34
- package/stories/button-secondary-fill-pending.stories.js.map +0 -7
- package/stories/button-secondary-fill-sizes.stories.js +0 -32
- package/stories/button-secondary-fill-sizes.stories.js.map +0 -7
- package/stories/button-secondary-fill.stories.js +0 -33
- package/stories/button-secondary-fill.stories.js.map +0 -7
- package/stories/button-secondary-outline-pending.stories.js +0 -34
- package/stories/button-secondary-outline-pending.stories.js.map +0 -7
- package/stories/button-secondary-outline-sizes.stories.js +0 -32
- package/stories/button-secondary-outline-sizes.stories.js.map +0 -7
- package/stories/button-secondary-outline.stories.js +0 -33
- package/stories/button-secondary-outline.stories.js.map +0 -7
- package/stories/button-white-fill-pending.stories.js +0 -34
- package/stories/button-white-fill-pending.stories.js.map +0 -7
- package/stories/button-white-fill-sizes.stories.js +0 -33
- package/stories/button-white-fill-sizes.stories.js.map +0 -7
- package/stories/button-white-fill.stories.js +0 -35
- package/stories/button-white-fill.stories.js.map +0 -7
- package/stories/button-white-outline-pending.stories.js +0 -34
- package/stories/button-white-outline-pending.stories.js.map +0 -7
- package/stories/button-white-outline-sizes.stories.js +0 -33
- package/stories/button-white-outline-sizes.stories.js.map +0 -7
- package/stories/button-white-outline.stories.js +0 -35
- package/stories/button-white-outline.stories.js.map +0 -7
- package/stories/index.js +0 -196
- package/stories/index.js.map +0 -7
- package/stories/template.js +0 -21
- package/stories/template.js.map +0 -7
- package/test/benchmark/test-basic.js +0 -14
- package/test/benchmark/test-basic.js.map +0 -7
- package/test/button-accent-fill-pending.test-vrt.js +0 -5
- package/test/button-accent-fill-pending.test-vrt.js.map +0 -7
- package/test/button-accent-fill-sizes.test-vrt.js +0 -5
- package/test/button-accent-fill-sizes.test-vrt.js.map +0 -7
- package/test/button-accent-fill.test-vrt.js +0 -5
- package/test/button-accent-fill.test-vrt.js.map +0 -7
- package/test/button-accent-outline-pending.test-vrt.js +0 -5
- package/test/button-accent-outline-pending.test-vrt.js.map +0 -7
- package/test/button-accent-outline-sizes.test-vrt.js +0 -5
- package/test/button-accent-outline-sizes.test-vrt.js.map +0 -7
- package/test/button-accent-outline.test-vrt.js +0 -5
- package/test/button-accent-outline.test-vrt.js.map +0 -7
- package/test/button-black-fill-pending.test-vrt.js +0 -5
- package/test/button-black-fill-pending.test-vrt.js.map +0 -7
- package/test/button-black-fill-sizes.test-vrt.js +0 -5
- package/test/button-black-fill-sizes.test-vrt.js.map +0 -7
- package/test/button-black-fill.test-vrt.js +0 -5
- package/test/button-black-fill.test-vrt.js.map +0 -7
- package/test/button-black-outline-pending.test-vrt.js +0 -5
- package/test/button-black-outline-pending.test-vrt.js.map +0 -7
- package/test/button-black-outline-sizes.test-vrt.js +0 -5
- package/test/button-black-outline-sizes.test-vrt.js.map +0 -7
- package/test/button-black-outline.test-vrt.js +0 -5
- package/test/button-black-outline.test-vrt.js.map +0 -7
- package/test/button-memory.test.js +0 -5
- package/test/button-memory.test.js.map +0 -7
- package/test/button-negative-fill-pending.test-vrt.js +0 -5
- package/test/button-negative-fill-pending.test-vrt.js.map +0 -7
- package/test/button-negative-fill-sizes.test-vrt.js +0 -5
- package/test/button-negative-fill-sizes.test-vrt.js.map +0 -7
- package/test/button-negative-fill.test-vrt.js +0 -5
- package/test/button-negative-fill.test-vrt.js.map +0 -7
- package/test/button-negative-outline-pending.test-vrt.js +0 -5
- package/test/button-negative-outline-pending.test-vrt.js.map +0 -7
- package/test/button-negative-outline-sizes.test-vrt.js +0 -5
- package/test/button-negative-outline-sizes.test-vrt.js.map +0 -7
- package/test/button-negative-outline.test-vrt.js +0 -5
- package/test/button-negative-outline.test-vrt.js.map +0 -7
- package/test/button-primary-fill-pending.test-vrt.js +0 -5
- package/test/button-primary-fill-pending.test-vrt.js.map +0 -7
- package/test/button-primary-fill-sizes.test-vrt.js +0 -5
- package/test/button-primary-fill-sizes.test-vrt.js.map +0 -7
- package/test/button-primary-fill.test-vrt.js +0 -5
- package/test/button-primary-fill.test-vrt.js.map +0 -7
- package/test/button-primary-outline-pending.test-vrt.js +0 -5
- package/test/button-primary-outline-pending.test-vrt.js.map +0 -7
- package/test/button-primary-outline-sizes.test-vrt.js +0 -5
- package/test/button-primary-outline-sizes.test-vrt.js.map +0 -7
- package/test/button-primary-outline.test-vrt.js +0 -5
- package/test/button-primary-outline.test-vrt.js.map +0 -7
- package/test/button-secondary-fill-pending.test-vrt.js +0 -5
- package/test/button-secondary-fill-pending.test-vrt.js.map +0 -7
- package/test/button-secondary-fill-sizes.test-vrt.js +0 -5
- package/test/button-secondary-fill-sizes.test-vrt.js.map +0 -7
- package/test/button-secondary-fill.test-vrt.js +0 -5
- package/test/button-secondary-fill.test-vrt.js.map +0 -7
- package/test/button-secondary-outline-pending.test-vrt.js +0 -5
- package/test/button-secondary-outline-pending.test-vrt.js.map +0 -7
- package/test/button-secondary-outline-sizes.test-vrt.js +0 -5
- package/test/button-secondary-outline-sizes.test-vrt.js.map +0 -7
- package/test/button-secondary-outline.test-vrt.js +0 -5
- package/test/button-secondary-outline.test-vrt.js.map +0 -7
- package/test/button-white-fill-pending.test-vrt.js +0 -5
- package/test/button-white-fill-pending.test-vrt.js.map +0 -7
- package/test/button-white-fill-sizes.test-vrt.js +0 -5
- package/test/button-white-fill-sizes.test-vrt.js.map +0 -7
- package/test/button-white-fill.test-vrt.js +0 -5
- package/test/button-white-fill.test-vrt.js.map +0 -7
- package/test/button-white-outline-pending.test-vrt.js +0 -5
- package/test/button-white-outline-pending.test-vrt.js.map +0 -7
- package/test/button-white-outline-sizes.test-vrt.js +0 -5
- package/test/button-white-outline-sizes.test-vrt.js.map +0 -7
- package/test/button-white-outline.test-vrt.js +0 -5
- package/test/button-white-outline.test-vrt.js.map +0 -7
- package/test/button.test.js +0 -659
- package/test/button.test.js.map +0 -7
- package/test/clear-button.test.js +0 -27
- package/test/clear-button.test.js.map +0 -7
- package/test/close-button.test.js +0 -27
- package/test/close-button.test.js.map +0 -7
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { renderButtonSet } from "./index.js";
|
|
3
|
-
import { args, argTypes } from "./index.js";
|
|
4
|
-
const variant = "primary";
|
|
5
|
-
const treatment = "outline";
|
|
6
|
-
export default {
|
|
7
|
-
component: "sp-button",
|
|
8
|
-
title: "Button/Primary/Outline/Sizes",
|
|
9
|
-
args: {
|
|
10
|
-
...args,
|
|
11
|
-
variant,
|
|
12
|
-
treatment
|
|
13
|
-
},
|
|
14
|
-
argTypes
|
|
15
|
-
};
|
|
16
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
17
|
-
s.args = {
|
|
18
|
-
size: "s"
|
|
19
|
-
};
|
|
20
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
21
|
-
m.args = {
|
|
22
|
-
size: "m"
|
|
23
|
-
};
|
|
24
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
25
|
-
l.args = {
|
|
26
|
-
size: "l"
|
|
27
|
-
};
|
|
28
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
29
|
-
XL.args = {
|
|
30
|
-
size: "xl"
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=button-primary-outline-sizes.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-primary-outline-sizes.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'primary';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Primary/Outline/Sizes',\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"],
|
|
5
|
-
"mappings": ";AAYA,SAAqB,uBAAuB;AAC5C,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import {
|
|
3
|
-
renderButtonSet,
|
|
4
|
-
renderLink,
|
|
5
|
-
renderLinkWithTarget,
|
|
6
|
-
renderMinWidthButton,
|
|
7
|
-
renderWithIcon,
|
|
8
|
-
renderWithIconOnly
|
|
9
|
-
} from "./index.js";
|
|
10
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
11
|
-
import { args, argTypes } from "./index.js";
|
|
12
|
-
const variant = "primary";
|
|
13
|
-
const treatment = "outline";
|
|
14
|
-
export default {
|
|
15
|
-
component: "sp-button",
|
|
16
|
-
title: "Button/Primary/Outline",
|
|
17
|
-
args: {
|
|
18
|
-
...args,
|
|
19
|
-
variant,
|
|
20
|
-
treatment
|
|
21
|
-
},
|
|
22
|
-
argTypes
|
|
23
|
-
};
|
|
24
|
-
export const Default = (props) => renderButtonSet(props);
|
|
25
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
26
|
-
export const withIconOnly = (props) => renderWithIconOnly(props);
|
|
27
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
28
|
-
minWidthButton.storyName = "min-width";
|
|
29
|
-
export const link = (props) => renderLink(props);
|
|
30
|
-
link.storyName = "href";
|
|
31
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
32
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
33
|
-
//# sourceMappingURL=button-primary-outline.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-primary-outline.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n renderWithIconOnly,\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 = 'primary';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Primary/Outline',\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 withIconOnly = (props: Properties): TemplateResult =>\n renderWithIconOnly(props);\n\nexport const minWidthButton = (props: Properties): TemplateResult =>\n renderMinWidthButton(props);\n\nminWidthButton.storyName = 'min-width';\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.storyName = 'href';\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.storyName = 'href with target=\"_blank\"';\n"],
|
|
5
|
-
"mappings": ";AAYA;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,OAAO;AAEP,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,UAAU,CAAC,UACpB,gBAAgB,KAAK;AAElB,aAAM,WAAW,CAAC,UACrB,eAAe,KAAK;AAEjB,aAAM,eAAe,CAAC,UACzB,mBAAmB,KAAK;AAErB,aAAM,iBAAiB,CAAC,UAC3B,qBAAqB,KAAK;AAE9B,eAAe,YAAY;AAEpB,aAAM,OAAO,CAAC,UAAsC,WAAW,KAAK;AAE3E,KAAK,YAAY;AAEV,aAAM,iBAAiB,CAAC,UAC3B,qBAAqB,KAAK;AAE9B,eAAe,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { renderButtonSet } from "./index.js";
|
|
3
|
-
import { args, argTypes } from "./index.js";
|
|
4
|
-
const variant = "secondary";
|
|
5
|
-
const treatment = "fill";
|
|
6
|
-
const pending = true;
|
|
7
|
-
export default {
|
|
8
|
-
component: "sp-button",
|
|
9
|
-
title: "Button/Secondary/Fill/Pending",
|
|
10
|
-
args: {
|
|
11
|
-
...args,
|
|
12
|
-
variant,
|
|
13
|
-
treatment,
|
|
14
|
-
pending
|
|
15
|
-
},
|
|
16
|
-
argTypes
|
|
17
|
-
};
|
|
18
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
19
|
-
s.args = {
|
|
20
|
-
size: "s"
|
|
21
|
-
};
|
|
22
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
23
|
-
m.args = {
|
|
24
|
-
size: "m"
|
|
25
|
-
};
|
|
26
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
27
|
-
l.args = {
|
|
28
|
-
size: "l"
|
|
29
|
-
};
|
|
30
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
31
|
-
XL.args = {
|
|
32
|
-
size: "xl"
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=button-secondary-fill-pending.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-secondary-fill-pending.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'secondary';\nconst treatment = 'fill';\nconst pending = true;\n\nexport default {\n component: 'sp-button',\n title: 'Button/Secondary/Fill/Pending',\n args: {\n ...args,\n variant,\n treatment,\n pending,\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"],
|
|
5
|
-
"mappings": ";AAYA,SAAqB,uBAAuB;AAC5C,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAClB,MAAM,UAAU;AAEhB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { renderButtonSet } from "./index.js";
|
|
3
|
-
import { args, argTypes } from "./index.js";
|
|
4
|
-
const variant = "secondary";
|
|
5
|
-
const treatment = "fill";
|
|
6
|
-
export default {
|
|
7
|
-
component: "sp-button",
|
|
8
|
-
title: "Button/Secondary/Fill/Sizes",
|
|
9
|
-
args: {
|
|
10
|
-
...args,
|
|
11
|
-
variant,
|
|
12
|
-
treatment
|
|
13
|
-
},
|
|
14
|
-
argTypes
|
|
15
|
-
};
|
|
16
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
17
|
-
s.args = {
|
|
18
|
-
size: "s"
|
|
19
|
-
};
|
|
20
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
21
|
-
m.args = {
|
|
22
|
-
size: "m"
|
|
23
|
-
};
|
|
24
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
25
|
-
l.args = {
|
|
26
|
-
size: "l"
|
|
27
|
-
};
|
|
28
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
29
|
-
XL.args = {
|
|
30
|
-
size: "xl"
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=button-secondary-fill-sizes.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-secondary-fill-sizes.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'secondary';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Secondary/Fill/Sizes',\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"],
|
|
5
|
-
"mappings": ";AAYA,SAAqB,uBAAuB;AAC5C,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import {
|
|
3
|
-
renderButtonSet,
|
|
4
|
-
renderLink,
|
|
5
|
-
renderLinkWithTarget,
|
|
6
|
-
renderMinWidthButton,
|
|
7
|
-
renderWithIcon,
|
|
8
|
-
renderWithIconOnly
|
|
9
|
-
} from "./index.js";
|
|
10
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
11
|
-
import { args, argTypes } from "./index.js";
|
|
12
|
-
const variant = "secondary";
|
|
13
|
-
const treatment = "fill";
|
|
14
|
-
export default {
|
|
15
|
-
component: "sp-button",
|
|
16
|
-
title: "Button/Secondary/Fill",
|
|
17
|
-
args: {
|
|
18
|
-
...args,
|
|
19
|
-
variant,
|
|
20
|
-
treatment
|
|
21
|
-
},
|
|
22
|
-
argTypes
|
|
23
|
-
};
|
|
24
|
-
export const Default = (props) => renderButtonSet(props);
|
|
25
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
26
|
-
export const withIconOnly = (props) => renderWithIconOnly(props);
|
|
27
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
28
|
-
minWidthButton.storyName = "min-width";
|
|
29
|
-
export const link = (props) => renderLink(props);
|
|
30
|
-
link.storyName = "href";
|
|
31
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
32
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
33
|
-
//# sourceMappingURL=button-secondary-fill.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-secondary-fill.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n renderWithIconOnly,\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 = 'secondary';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Secondary/Fill',\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 withIconOnly = (props: Properties): TemplateResult =>\n renderWithIconOnly(props);\n\nexport const minWidthButton = (props: Properties): TemplateResult =>\n renderMinWidthButton(props);\n\nminWidthButton.storyName = 'min-width';\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.storyName = 'href';\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.storyName = 'href with target=\"_blank\"';\n"],
|
|
5
|
-
"mappings": ";AAYA;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,OAAO;AAEP,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,UAAU,CAAC,UACpB,gBAAgB,KAAK;AAElB,aAAM,WAAW,CAAC,UACrB,eAAe,KAAK;AAEjB,aAAM,eAAe,CAAC,UACzB,mBAAmB,KAAK;AAErB,aAAM,iBAAiB,CAAC,UAC3B,qBAAqB,KAAK;AAE9B,eAAe,YAAY;AAEpB,aAAM,OAAO,CAAC,UAAsC,WAAW,KAAK;AAE3E,KAAK,YAAY;AAEV,aAAM,iBAAiB,CAAC,UAC3B,qBAAqB,KAAK;AAE9B,eAAe,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { renderButtonSet } from "./index.js";
|
|
3
|
-
import { args, argTypes } from "./index.js";
|
|
4
|
-
const variant = "secondary";
|
|
5
|
-
const treatment = "outline";
|
|
6
|
-
const pending = true;
|
|
7
|
-
export default {
|
|
8
|
-
component: "sp-button",
|
|
9
|
-
title: "Button/Secondary/Outline/Pending",
|
|
10
|
-
args: {
|
|
11
|
-
...args,
|
|
12
|
-
variant,
|
|
13
|
-
treatment,
|
|
14
|
-
pending
|
|
15
|
-
},
|
|
16
|
-
argTypes
|
|
17
|
-
};
|
|
18
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
19
|
-
s.args = {
|
|
20
|
-
size: "s"
|
|
21
|
-
};
|
|
22
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
23
|
-
m.args = {
|
|
24
|
-
size: "m"
|
|
25
|
-
};
|
|
26
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
27
|
-
l.args = {
|
|
28
|
-
size: "l"
|
|
29
|
-
};
|
|
30
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
31
|
-
XL.args = {
|
|
32
|
-
size: "xl"
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=button-secondary-outline-pending.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-secondary-outline-pending.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'secondary';\nconst treatment = 'outline';\nconst pending = true;\n\nexport default {\n component: 'sp-button',\n title: 'Button/Secondary/Outline/Pending',\n args: {\n ...args,\n variant,\n treatment,\n pending,\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"],
|
|
5
|
-
"mappings": ";AAYA,SAAqB,uBAAuB;AAC5C,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAClB,MAAM,UAAU;AAEhB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { renderButtonSet } from "./index.js";
|
|
3
|
-
import { args, argTypes } from "./index.js";
|
|
4
|
-
const variant = "secondary";
|
|
5
|
-
const treatment = "outline";
|
|
6
|
-
export default {
|
|
7
|
-
component: "sp-button",
|
|
8
|
-
title: "Button/Secondary/Outline/Sizes",
|
|
9
|
-
args: {
|
|
10
|
-
...args,
|
|
11
|
-
variant,
|
|
12
|
-
treatment
|
|
13
|
-
},
|
|
14
|
-
argTypes
|
|
15
|
-
};
|
|
16
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
17
|
-
s.args = {
|
|
18
|
-
size: "s"
|
|
19
|
-
};
|
|
20
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
21
|
-
m.args = {
|
|
22
|
-
size: "m"
|
|
23
|
-
};
|
|
24
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
25
|
-
l.args = {
|
|
26
|
-
size: "l"
|
|
27
|
-
};
|
|
28
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
29
|
-
XL.args = {
|
|
30
|
-
size: "xl"
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=button-secondary-outline-sizes.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-secondary-outline-sizes.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'secondary';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Secondary/Outline/Sizes',\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"],
|
|
5
|
-
"mappings": ";AAYA,SAAqB,uBAAuB;AAC5C,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import {
|
|
3
|
-
renderButtonSet,
|
|
4
|
-
renderLink,
|
|
5
|
-
renderLinkWithTarget,
|
|
6
|
-
renderMinWidthButton,
|
|
7
|
-
renderWithIcon,
|
|
8
|
-
renderWithIconOnly
|
|
9
|
-
} from "./index.js";
|
|
10
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
11
|
-
import { args, argTypes } from "./index.js";
|
|
12
|
-
const variant = "secondary";
|
|
13
|
-
const treatment = "outline";
|
|
14
|
-
export default {
|
|
15
|
-
component: "sp-button",
|
|
16
|
-
title: "Button/Secondary/Outline",
|
|
17
|
-
args: {
|
|
18
|
-
...args,
|
|
19
|
-
variant,
|
|
20
|
-
treatment
|
|
21
|
-
},
|
|
22
|
-
argTypes
|
|
23
|
-
};
|
|
24
|
-
export const Default = (props) => renderButtonSet(props);
|
|
25
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
26
|
-
export const withIconOnly = (props) => renderWithIconOnly(props);
|
|
27
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
28
|
-
minWidthButton.storyName = "min-width";
|
|
29
|
-
export const link = (props) => renderLink(props);
|
|
30
|
-
link.storyName = "href";
|
|
31
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
32
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
33
|
-
//# sourceMappingURL=button-secondary-outline.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-secondary-outline.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n renderWithIconOnly,\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 = 'secondary';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Secondary/Outline',\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 withIconOnly = (props: Properties): TemplateResult =>\n renderWithIconOnly(props);\n\nexport const minWidthButton = (props: Properties): TemplateResult =>\n renderMinWidthButton(props);\n\nminWidthButton.storyName = 'min-width';\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.storyName = 'href';\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.storyName = 'href with target=\"_blank\"';\n"],
|
|
5
|
-
"mappings": ";AAYA;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,OAAO;AAEP,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,UAAU,CAAC,UACpB,gBAAgB,KAAK;AAElB,aAAM,WAAW,CAAC,UACrB,eAAe,KAAK;AAEjB,aAAM,eAAe,CAAC,UACzB,mBAAmB,KAAK;AAErB,aAAM,iBAAiB,CAAC,UAC3B,qBAAqB,KAAK;AAE9B,eAAe,YAAY;AAEpB,aAAM,OAAO,CAAC,UAAsC,WAAW,KAAK;AAE3E,KAAK,YAAY;AAEV,aAAM,iBAAiB,CAAC,UAC3B,qBAAqB,KAAK;AAE9B,eAAe,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { renderButtonSet } from "./index.js";
|
|
3
|
-
import { args, argTypes } from "./index.js";
|
|
4
|
-
const variant = "white";
|
|
5
|
-
const treatment = "fill";
|
|
6
|
-
const pending = true;
|
|
7
|
-
export default {
|
|
8
|
-
component: "sp-button",
|
|
9
|
-
title: "Button/White/Fill/Pending",
|
|
10
|
-
args: {
|
|
11
|
-
...args,
|
|
12
|
-
variant,
|
|
13
|
-
treatment,
|
|
14
|
-
pending
|
|
15
|
-
},
|
|
16
|
-
argTypes
|
|
17
|
-
};
|
|
18
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
19
|
-
s.args = {
|
|
20
|
-
size: "s"
|
|
21
|
-
};
|
|
22
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
23
|
-
m.args = {
|
|
24
|
-
size: "m"
|
|
25
|
-
};
|
|
26
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
27
|
-
l.args = {
|
|
28
|
-
size: "l"
|
|
29
|
-
};
|
|
30
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
31
|
-
XL.args = {
|
|
32
|
-
size: "xl"
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=button-white-fill-pending.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-white-fill-pending.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'white';\nconst treatment = 'fill';\nconst pending = true;\n\nexport default {\n component: 'sp-button',\n title: 'Button/White/Fill/Pending',\n args: {\n ...args,\n variant,\n treatment,\n pending,\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"],
|
|
5
|
-
"mappings": ";AAYA,SAAqB,uBAAuB;AAC5C,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAClB,MAAM,UAAU;AAEhB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { makeOverBackground, renderButtonSet } from "./index.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/Sizes",
|
|
9
|
-
decorators: [makeOverBackground()],
|
|
10
|
-
args: {
|
|
11
|
-
...args,
|
|
12
|
-
variant,
|
|
13
|
-
treatment
|
|
14
|
-
},
|
|
15
|
-
argTypes
|
|
16
|
-
};
|
|
17
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
18
|
-
s.args = {
|
|
19
|
-
size: "s"
|
|
20
|
-
};
|
|
21
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
22
|
-
m.args = {
|
|
23
|
-
size: "m"
|
|
24
|
-
};
|
|
25
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
26
|
-
l.args = {
|
|
27
|
-
size: "l"
|
|
28
|
-
};
|
|
29
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
30
|
-
XL.args = {
|
|
31
|
-
size: "xl"
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=button-white-fill-sizes.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-white-fill-sizes.stories.ts"],
|
|
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 { 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"],
|
|
5
|
-
"mappings": ";AAYA,SAAS,oBAAgC,uBAAuB;AAChE,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY,CAAC,mBAAmB,CAAC;AAAA,EACjC,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import {
|
|
3
|
-
makeOverBackground,
|
|
4
|
-
renderButtonSet,
|
|
5
|
-
renderLink,
|
|
6
|
-
renderLinkWithTarget,
|
|
7
|
-
renderMinWidthButton,
|
|
8
|
-
renderWithIcon,
|
|
9
|
-
renderWithIconOnly
|
|
10
|
-
} from "./index.js";
|
|
11
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
12
|
-
import { args, argTypes } from "./index.js";
|
|
13
|
-
const variant = "white";
|
|
14
|
-
const treatment = "fill";
|
|
15
|
-
export default {
|
|
16
|
-
component: "sp-button",
|
|
17
|
-
title: "Button/White/Fill",
|
|
18
|
-
decorators: [makeOverBackground()],
|
|
19
|
-
args: {
|
|
20
|
-
...args,
|
|
21
|
-
variant,
|
|
22
|
-
treatment
|
|
23
|
-
},
|
|
24
|
-
argTypes
|
|
25
|
-
};
|
|
26
|
-
export const Default = (props) => renderButtonSet(props);
|
|
27
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
28
|
-
export const withIconOnly = (props) => renderWithIconOnly(props);
|
|
29
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
30
|
-
minWidthButton.storyName = "min-width";
|
|
31
|
-
export const link = (props) => renderLink(props);
|
|
32
|
-
link.storyName = "href";
|
|
33
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
34
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
35
|
-
//# sourceMappingURL=button-white-fill.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-white-fill.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n makeOverBackground,\n renderButtonSet,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n renderWithIconOnly,\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 withIconOnly = (props: Properties): TemplateResult =>\n renderWithIconOnly(props);\n\nexport const minWidthButton = (props: Properties): TemplateResult =>\n renderMinWidthButton(props);\n\nminWidthButton.storyName = 'min-width';\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.storyName = 'href';\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.storyName = 'href with target=\"_blank\"';\n"],
|
|
5
|
-
"mappings": ";AAYA;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,OAAO;AAEP,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY,CAAC,mBAAmB,CAAC;AAAA,EACjC,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,UAAU,CAAC,UACpB,gBAAgB,KAAK;AAElB,aAAM,WAAW,CAAC,UACrB,eAAe,KAAK;AAEjB,aAAM,eAAe,CAAC,UACzB,mBAAmB,KAAK;AAErB,aAAM,iBAAiB,CAAC,UAC3B,qBAAqB,KAAK;AAE9B,eAAe,YAAY;AAEpB,aAAM,OAAO,CAAC,UAAsC,WAAW,KAAK;AAE3E,KAAK,YAAY;AAEV,aAAM,iBAAiB,CAAC,UAC3B,qBAAqB,KAAK;AAE9B,eAAe,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { renderButtonSet } from "./index.js";
|
|
3
|
-
import { args, argTypes } from "./index.js";
|
|
4
|
-
const variant = "white";
|
|
5
|
-
const treatment = "outline";
|
|
6
|
-
const pending = true;
|
|
7
|
-
export default {
|
|
8
|
-
component: "sp-button",
|
|
9
|
-
title: "Button/White/Outline/Pending",
|
|
10
|
-
args: {
|
|
11
|
-
...args,
|
|
12
|
-
variant,
|
|
13
|
-
treatment,
|
|
14
|
-
pending
|
|
15
|
-
},
|
|
16
|
-
argTypes
|
|
17
|
-
};
|
|
18
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
19
|
-
s.args = {
|
|
20
|
-
size: "s"
|
|
21
|
-
};
|
|
22
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
23
|
-
m.args = {
|
|
24
|
-
size: "m"
|
|
25
|
-
};
|
|
26
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
27
|
-
l.args = {
|
|
28
|
-
size: "l"
|
|
29
|
-
};
|
|
30
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
31
|
-
XL.args = {
|
|
32
|
-
size: "xl"
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=button-white-outline-pending.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-white-outline-pending.stories.ts"],
|
|
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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'white';\nconst treatment = 'outline';\nconst pending = true;\n\nexport default {\n component: 'sp-button',\n title: 'Button/White/Outline/Pending',\n args: {\n ...args,\n variant,\n treatment,\n pending,\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"],
|
|
5
|
-
"mappings": ";AAYA,SAAqB,uBAAuB;AAC5C,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAClB,MAAM,UAAU;AAEhB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { makeOverBackground, renderButtonSet } from "./index.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/Sizes",
|
|
9
|
-
decorators: [makeOverBackground()],
|
|
10
|
-
args: {
|
|
11
|
-
...args,
|
|
12
|
-
variant,
|
|
13
|
-
treatment
|
|
14
|
-
},
|
|
15
|
-
argTypes
|
|
16
|
-
};
|
|
17
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
18
|
-
s.args = {
|
|
19
|
-
size: "s"
|
|
20
|
-
};
|
|
21
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
22
|
-
m.args = {
|
|
23
|
-
size: "m"
|
|
24
|
-
};
|
|
25
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
26
|
-
l.args = {
|
|
27
|
-
size: "l"
|
|
28
|
-
};
|
|
29
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
30
|
-
XL.args = {
|
|
31
|
-
size: "xl"
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=button-white-outline-sizes.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["button-white-outline-sizes.stories.ts"],
|
|
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 { 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"],
|
|
5
|
-
"mappings": ";AAYA,SAAS,oBAAgC,uBAAuB;AAChE,SAAS,MAAM,gBAAgB;AAE/B,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY,CAAC,mBAAmB,CAAC;AAAA,EACjC,MAAM;AAAA,IACF,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAACA,UAAqC,gBAAgBA,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAACA,UAAqC,gBAAgBA,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
|
|
6
|
-
"names": ["args"]
|
|
7
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import {
|
|
3
|
-
makeOverBackground,
|
|
4
|
-
renderButtonSet,
|
|
5
|
-
renderLink,
|
|
6
|
-
renderLinkWithTarget,
|
|
7
|
-
renderMinWidthButton,
|
|
8
|
-
renderWithIcon,
|
|
9
|
-
renderWithIconOnly
|
|
10
|
-
} from "./index.js";
|
|
11
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
12
|
-
import { args, argTypes } from "./index.js";
|
|
13
|
-
const variant = "white";
|
|
14
|
-
const treatment = "outline";
|
|
15
|
-
export default {
|
|
16
|
-
component: "sp-button",
|
|
17
|
-
title: "Button/White/Outline",
|
|
18
|
-
decorators: [makeOverBackground()],
|
|
19
|
-
args: {
|
|
20
|
-
...args,
|
|
21
|
-
variant,
|
|
22
|
-
treatment
|
|
23
|
-
},
|
|
24
|
-
argTypes
|
|
25
|
-
};
|
|
26
|
-
export const Default = (props) => renderButtonSet(props);
|
|
27
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
28
|
-
export const withIconOnly = (props) => renderWithIconOnly(props);
|
|
29
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
30
|
-
minWidthButton.storyName = "min-width";
|
|
31
|
-
export const link = (props) => renderLink(props);
|
|
32
|
-
link.storyName = "href";
|
|
33
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
34
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
35
|
-
//# sourceMappingURL=button-white-outline.stories.js.map
|