@spectrum-web-components/button 0.19.0-devmode.0 → 0.19.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 +8 -8
- package/sp-button.js +1 -2
- package/sp-button.js.map +1 -1
- package/sp-clear-button.js +1 -2
- package/sp-clear-button.js.map +1 -1
- package/sp-close-button.js +1 -2
- package/sp-close-button.js.map +1 -1
- package/src/Button.js +1 -78
- package/src/Button.js.map +1 -1
- package/src/ButtonBase.js +6 -205
- package/src/ButtonBase.js.map +1 -1
- package/src/ClearButton.js +6 -52
- package/src/ClearButton.js.map +1 -1
- package/src/CloseButton.js +5 -48
- package/src/CloseButton.js.map +1 -1
- package/src/StyledButton.js +1 -7
- package/src/StyledButton.js.map +1 -1
- package/src/button-base.css.js +2 -4
- package/src/button-base.css.js.map +1 -1
- package/src/button.css.js +2 -4
- package/src/button.css.js.map +1 -1
- package/src/index.js +1 -5
- package/src/index.js.map +1 -1
- package/src/spectrum-button-base.css.js +2 -4
- package/src/spectrum-button-base.css.js.map +1 -1
- package/src/spectrum-button.css.js +2 -4
- package/src/spectrum-button.css.js.map +1 -1
- package/stories/button-accent-fill-sizes.stories.js +1 -30
- package/stories/button-accent-fill-sizes.stories.js.map +1 -1
- package/stories/button-accent-fill.stories.js +1 -31
- package/stories/button-accent-fill.stories.js.map +1 -1
- package/stories/button-accent-outline-sizes.stories.js +1 -30
- package/stories/button-accent-outline-sizes.stories.js.map +1 -1
- package/stories/button-accent-outline.stories.js +1 -31
- package/stories/button-accent-outline.stories.js.map +1 -1
- package/stories/button-black-fill-sizes.stories.js +1 -31
- package/stories/button-black-fill-sizes.stories.js.map +1 -1
- package/stories/button-black-fill.stories.js +1 -33
- package/stories/button-black-fill.stories.js.map +1 -1
- package/stories/button-black-outline-sizes.stories.js +1 -31
- package/stories/button-black-outline-sizes.stories.js.map +1 -1
- package/stories/button-black-outline.stories.js +1 -33
- package/stories/button-black-outline.stories.js.map +1 -1
- package/stories/button-negative-fill-sizes.stories.js +1 -30
- package/stories/button-negative-fill-sizes.stories.js.map +1 -1
- package/stories/button-negative-fill.stories.js +1 -31
- package/stories/button-negative-fill.stories.js.map +1 -1
- package/stories/button-negative-outline-sizes.stories.js +1 -30
- package/stories/button-negative-outline-sizes.stories.js.map +1 -1
- package/stories/button-negative-outline.stories.js +1 -31
- package/stories/button-negative-outline.stories.js.map +1 -1
- package/stories/button-primary-fill-sizes.stories.js +1 -30
- package/stories/button-primary-fill-sizes.stories.js.map +1 -1
- package/stories/button-primary-fill.stories.js +1 -31
- package/stories/button-primary-fill.stories.js.map +1 -1
- package/stories/button-primary-outline-sizes.stories.js +1 -30
- package/stories/button-primary-outline-sizes.stories.js.map +1 -1
- package/stories/button-primary-outline.stories.js +1 -31
- package/stories/button-primary-outline.stories.js.map +1 -1
- package/stories/button-secondary-fill-sizes.stories.js +1 -30
- package/stories/button-secondary-fill-sizes.stories.js.map +1 -1
- package/stories/button-secondary-fill.stories.js +1 -31
- package/stories/button-secondary-fill.stories.js.map +1 -1
- package/stories/button-secondary-outline-sizes.stories.js +1 -30
- package/stories/button-secondary-outline-sizes.stories.js.map +1 -1
- package/stories/button-secondary-outline.stories.js +1 -31
- package/stories/button-secondary-outline.stories.js.map +1 -1
- package/stories/button-white-fill-sizes.stories.js +1 -31
- package/stories/button-white-fill-sizes.stories.js.map +1 -1
- package/stories/button-white-fill.stories.js +1 -33
- package/stories/button-white-fill.stories.js.map +1 -1
- package/stories/button-white-outline-sizes.stories.js +1 -31
- package/stories/button-white-outline-sizes.stories.js.map +1 -1
- package/stories/button-white-outline.stories.js +1 -33
- package/stories/button-white-outline.stories.js.map +1 -1
- package/stories/index.js +36 -137
- package/stories/index.js.map +1 -1
- package/test/benchmark/test-basic.js +1 -4
- package/test/benchmark/test-basic.js.map +1 -1
- package/test/button-accent-fill-sizes.test-vrt.js +1 -3
- package/test/button-accent-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-accent-fill.test-vrt.js +1 -3
- package/test/button-accent-fill.test-vrt.js.map +1 -1
- package/test/button-accent-outline-sizes.test-vrt.js +1 -3
- package/test/button-accent-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-accent-outline.test-vrt.js +1 -3
- package/test/button-accent-outline.test-vrt.js.map +1 -1
- package/test/button-black-fill-sizes.test-vrt.js +1 -3
- package/test/button-black-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-black-fill.test-vrt.js +1 -3
- package/test/button-black-fill.test-vrt.js.map +1 -1
- package/test/button-black-outline-sizes.test-vrt.js +1 -3
- package/test/button-black-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-black-outline.test-vrt.js +1 -3
- package/test/button-black-outline.test-vrt.js.map +1 -1
- package/test/button-negative-fill-sizes.test-vrt.js +1 -3
- package/test/button-negative-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-negative-fill.test-vrt.js +1 -3
- package/test/button-negative-fill.test-vrt.js.map +1 -1
- package/test/button-negative-outline-sizes.test-vrt.js +1 -3
- package/test/button-negative-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-negative-outline.test-vrt.js +1 -3
- package/test/button-negative-outline.test-vrt.js.map +1 -1
- package/test/button-primary-fill-sizes.test-vrt.js +1 -3
- package/test/button-primary-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-primary-fill.test-vrt.js +1 -3
- package/test/button-primary-fill.test-vrt.js.map +1 -1
- package/test/button-primary-outline-sizes.test-vrt.js +1 -3
- package/test/button-primary-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-primary-outline.test-vrt.js +1 -3
- package/test/button-primary-outline.test-vrt.js.map +1 -1
- package/test/button-secondary-fill-sizes.test-vrt.js +1 -3
- package/test/button-secondary-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-secondary-fill.test-vrt.js +1 -3
- package/test/button-secondary-fill.test-vrt.js.map +1 -1
- package/test/button-secondary-outline-sizes.test-vrt.js +1 -3
- package/test/button-secondary-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-secondary-outline.test-vrt.js +1 -3
- package/test/button-secondary-outline.test-vrt.js.map +1 -1
- package/test/button-white-fill-sizes.test-vrt.js +1 -3
- package/test/button-white-fill-sizes.test-vrt.js.map +1 -1
- package/test/button-white-fill.test-vrt.js +1 -3
- package/test/button-white-fill.test-vrt.js.map +1 -1
- package/test/button-white-outline-sizes.test-vrt.js +1 -3
- package/test/button-white-outline-sizes.test-vrt.js.map +1 -1
- package/test/button-white-outline.test-vrt.js +1 -3
- package/test/button-white-outline.test-vrt.js.map +1 -1
- package/test/button.test.js +29 -349
- package/test/button.test.js.map +1 -1
- package/test/clear-button.test.js +4 -15
- package/test/clear-button.test.js.map +1 -1
- package/test/close-button.test.js +4 -15
- package/test/close-button.test.js.map +1 -1
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { args, argTypes } from "./index.js";
|
|
3
|
-
const variant = "accent";
|
|
4
|
-
const treatment = "outline";
|
|
5
|
-
export default {
|
|
6
|
-
component: "sp-button",
|
|
7
|
-
title: "Button/Accent/Outline/Sizes",
|
|
8
|
-
args: {
|
|
9
|
-
...args,
|
|
10
|
-
variant,
|
|
11
|
-
treatment
|
|
12
|
-
},
|
|
13
|
-
argTypes
|
|
14
|
-
};
|
|
15
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
16
|
-
s.args = {
|
|
17
|
-
size: "s"
|
|
18
|
-
};
|
|
19
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
20
|
-
m.args = {
|
|
21
|
-
size: "m"
|
|
22
|
-
};
|
|
23
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
24
|
-
l.args = {
|
|
25
|
-
size: "l"
|
|
26
|
-
};
|
|
27
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
28
|
-
XL.args = {
|
|
29
|
-
size: "xl"
|
|
30
|
-
};
|
|
1
|
+
import{renderButtonSet as t}from"./index.js";import{args as r,argTypes as o}from"./index.js";const p="accent",n="outline";export default{component:"sp-button",title:"Button/Accent/Outline/Sizes",args:{...r,variant:p,treatment:n},argTypes:o};export const s=e=>t(e);s.args={size:"s"};export const m=e=>t(e);m.args={size:"m"};export const l=e=>t(e);l.args={size:"l"};export const XL=e=>t(e);XL.args={size:"xl"};
|
|
31
2
|
//# sourceMappingURL=button-accent-outline-sizes.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-accent-outline-sizes.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'accent';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Accent/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
|
|
5
|
+
"mappings": "AAYA,6CACA,gDAEA,KAAM,GAAU,SACV,EAAY,UAElB,cAAe,CACX,UAAW,YACX,MAAO,8BACP,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,IAAK,AAAC,GAAqC,EAAgB,CAAI,EAC5E,GAAG,KAAO,CACN,KAAM,IACV",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderButtonSet,
|
|
3
|
-
renderIconSizeOverridden,
|
|
4
|
-
renderLink,
|
|
5
|
-
renderLinkWithTarget,
|
|
6
|
-
renderMinWidthButton,
|
|
7
|
-
renderWithIcon
|
|
8
|
-
} from "./index.js";
|
|
9
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
10
|
-
import { args, argTypes } from "./index.js";
|
|
11
|
-
const variant = "accent";
|
|
12
|
-
const treatment = "outline";
|
|
13
|
-
export default {
|
|
14
|
-
component: "sp-button",
|
|
15
|
-
title: "Button/Accent/Outline",
|
|
16
|
-
args: {
|
|
17
|
-
...args,
|
|
18
|
-
variant,
|
|
19
|
-
treatment
|
|
20
|
-
},
|
|
21
|
-
argTypes
|
|
22
|
-
};
|
|
23
|
-
export const Default = (props) => renderButtonSet(props);
|
|
24
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
25
|
-
export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
|
|
26
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
27
|
-
minWidthButton.storyName = "min-width";
|
|
28
|
-
export const link = (props) => renderLink(props);
|
|
29
|
-
link.storyName = "href";
|
|
30
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
31
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
1
|
+
import{renderButtonSet as o,renderIconSizeOverridden as n,renderLink as i,renderLinkWithTarget as p,renderMinWidthButton as s,renderWithIcon as a}from"./index.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";import{args as m,argTypes as l}from"./index.js";const t="accent",r="outline";export default{component:"sp-button",title:"Button/Accent/Outline",args:{...m,variant:t,treatment:r},argTypes:l};export const Default=e=>o(e),withIcon=e=>a(e),iconSizeOverridden=()=>n(t,r),minWidthButton=e=>s(e);minWidthButton.storyName="min-width";export const link=e=>i(e);link.storyName="href";export const linkWithTarget=e=>p(e);linkWithTarget.storyName='href with target="_blank"';
|
|
32
2
|
//# sourceMappingURL=button-accent-outline.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-accent-outline.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n renderIconSizeOverridden,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n} from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport type { Properties } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'accent';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Accent/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 iconSizeOverridden = (): TemplateResult =>\n renderIconSizeOverridden(variant, treatment);\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
|
|
5
|
+
"mappings": "AAYA,mKAQA,sEAEA,gDAEA,KAAM,GAAU,SACV,EAAY,UAElB,cAAe,CACX,UAAW,YACX,MAAO,wBACP,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,SAAU,AAAC,GACpB,EAAgB,CAAK,EAEZ,SAAW,AAAC,GACrB,EAAe,CAAK,EAEX,mBAAqB,IAC9B,EAAyB,EAAS,CAAS,EAElC,eAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY,YAEpB,YAAM,MAAO,AAAC,GAAsC,EAAW,CAAK,EAE3E,KAAK,UAAY,OAEV,YAAM,gBAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { args, argTypes } from "./index.js";
|
|
3
|
-
const variant = "black";
|
|
4
|
-
const treatment = "fill";
|
|
5
|
-
export default {
|
|
6
|
-
component: "sp-button",
|
|
7
|
-
title: "Button/Black/Fill/Sizes",
|
|
8
|
-
decorators: [makeOverBackground(variant)],
|
|
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
|
-
};
|
|
1
|
+
import{makeOverBackground as o,renderButtonSet as t}from"./index.js";import{args as a,argTypes as p}from"./index.js";const r="black",i="fill";export default{component:"sp-button",title:"Button/Black/Fill/Sizes",decorators:[o(r)],args:{...a,variant:r,treatment:i},argTypes:p};export const s=e=>t(e);s.args={size:"s"};export const m=e=>t(e);m.args={size:"m"};export const l=e=>t(e);l.args={size:"l"};export const XL=e=>t(e);XL.args={size:"xl"};
|
|
32
2
|
//# sourceMappingURL=button-black-fill-sizes.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-black-fill-sizes.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground, Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'black';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Black/Fill/Sizes',\n decorators: [makeOverBackground(variant)],\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
|
|
5
|
+
"mappings": "AAYA,qEACA,gDAEA,KAAM,GAAU,QACV,EAAY,OAElB,cAAe,CACX,UAAW,YACX,MAAO,0BACP,WAAY,CAAC,EAAmB,CAAO,CAAC,EACxC,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,IAAK,AAAC,GAAqC,EAAgB,CAAI,EAC5E,GAAG,KAAO,CACN,KAAM,IACV",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
makeOverBackground,
|
|
3
|
-
renderButtonSet,
|
|
4
|
-
renderIconSizeOverridden,
|
|
5
|
-
renderLink,
|
|
6
|
-
renderLinkWithTarget,
|
|
7
|
-
renderMinWidthButton,
|
|
8
|
-
renderWithIcon
|
|
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 = "black";
|
|
13
|
-
const treatment = "fill";
|
|
14
|
-
export default {
|
|
15
|
-
component: "sp-button",
|
|
16
|
-
title: "Button/Black/Fill",
|
|
17
|
-
decorators: [makeOverBackground(variant)],
|
|
18
|
-
args: {
|
|
19
|
-
...args,
|
|
20
|
-
variant,
|
|
21
|
-
treatment
|
|
22
|
-
},
|
|
23
|
-
argTypes
|
|
24
|
-
};
|
|
25
|
-
export const Default = (props) => renderButtonSet(props);
|
|
26
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
27
|
-
export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
|
|
28
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
29
|
-
minWidthButton.storyName = "min-width";
|
|
30
|
-
export const link = (props) => renderLink(props);
|
|
31
|
-
link.storyName = "href";
|
|
32
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
33
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
1
|
+
import{makeOverBackground as o,renderButtonSet as n,renderIconSizeOverridden as i,renderLink as s,renderLinkWithTarget as p,renderMinWidthButton as a,renderWithIcon as l}from"./index.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";import{args as m,argTypes as c}from"./index.js";const t="black",r="fill";export default{component:"sp-button",title:"Button/Black/Fill",decorators:[o(t)],args:{...m,variant:t,treatment:r},argTypes:c};export const Default=e=>n(e),withIcon=e=>l(e),iconSizeOverridden=()=>i(t,r),minWidthButton=e=>a(e);minWidthButton.storyName="min-width";export const link=e=>s(e);link.storyName="href";export const linkWithTarget=e=>p(e);linkWithTarget.storyName='href with target="_blank"';
|
|
34
2
|
//# sourceMappingURL=button-black-fill.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-black-fill.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n makeOverBackground,\n renderButtonSet,\n renderIconSizeOverridden,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n} from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport type { Properties } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'black';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Black/Fill',\n decorators: [makeOverBackground(variant)],\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const Default = (props: Properties): TemplateResult =>\n renderButtonSet(props);\n\nexport const withIcon = (props: Properties): TemplateResult =>\n renderWithIcon(props);\n\nexport const iconSizeOverridden = (): TemplateResult =>\n renderIconSizeOverridden(variant, treatment);\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
|
|
5
|
+
"mappings": "AAYA,2LASA,sEAEA,gDAEA,KAAM,GAAU,QACV,EAAY,OAElB,cAAe,CACX,UAAW,YACX,MAAO,oBACP,WAAY,CAAC,EAAmB,CAAO,CAAC,EACxC,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,SAAU,AAAC,GACpB,EAAgB,CAAK,EAEZ,SAAW,AAAC,GACrB,EAAe,CAAK,EAEX,mBAAqB,IAC9B,EAAyB,EAAS,CAAS,EAElC,eAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY,YAEpB,YAAM,MAAO,AAAC,GAAsC,EAAW,CAAK,EAE3E,KAAK,UAAY,OAEV,YAAM,gBAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { args, argTypes } from "./index.js";
|
|
3
|
-
const variant = "black";
|
|
4
|
-
const treatment = "outline";
|
|
5
|
-
export default {
|
|
6
|
-
component: "sp-button",
|
|
7
|
-
title: "Button/Black/Outline/Sizes",
|
|
8
|
-
decorators: [makeOverBackground(variant)],
|
|
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
|
-
};
|
|
1
|
+
import{makeOverBackground as o,renderButtonSet as t}from"./index.js";import{args as a,argTypes as p}from"./index.js";const r="black",i="outline";export default{component:"sp-button",title:"Button/Black/Outline/Sizes",decorators:[o(r)],args:{...a,variant:r,treatment:i},argTypes:p};export const s=e=>t(e);s.args={size:"s"};export const m=e=>t(e);m.args={size:"m"};export const l=e=>t(e);l.args={size:"l"};export const XL=e=>t(e);XL.args={size:"xl"};
|
|
32
2
|
//# sourceMappingURL=button-black-outline-sizes.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-black-outline-sizes.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground, Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'black';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Black/Outline/Sizes',\n decorators: [makeOverBackground(variant)],\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
|
|
5
|
+
"mappings": "AAYA,qEACA,gDAEA,KAAM,GAAU,QACV,EAAY,UAElB,cAAe,CACX,UAAW,YACX,MAAO,6BACP,WAAY,CAAC,EAAmB,CAAO,CAAC,EACxC,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,IAAK,AAAC,GAAqC,EAAgB,CAAI,EAC5E,GAAG,KAAO,CACN,KAAM,IACV",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
makeOverBackground,
|
|
3
|
-
renderButtonSet,
|
|
4
|
-
renderIconSizeOverridden,
|
|
5
|
-
renderLink,
|
|
6
|
-
renderLinkWithTarget,
|
|
7
|
-
renderMinWidthButton,
|
|
8
|
-
renderWithIcon
|
|
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 = "black";
|
|
13
|
-
const treatment = "outline";
|
|
14
|
-
export default {
|
|
15
|
-
component: "sp-button",
|
|
16
|
-
title: "Button/Black/Outline",
|
|
17
|
-
decorators: [makeOverBackground(variant)],
|
|
18
|
-
args: {
|
|
19
|
-
...args,
|
|
20
|
-
variant,
|
|
21
|
-
treatment
|
|
22
|
-
},
|
|
23
|
-
argTypes
|
|
24
|
-
};
|
|
25
|
-
export const Default = (props) => renderButtonSet(props);
|
|
26
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
27
|
-
export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
|
|
28
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
29
|
-
minWidthButton.storyName = "min-width";
|
|
30
|
-
export const link = (props) => renderLink(props);
|
|
31
|
-
link.storyName = "href";
|
|
32
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
33
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
1
|
+
import{makeOverBackground as o,renderButtonSet as n,renderIconSizeOverridden as i,renderLink as s,renderLinkWithTarget as p,renderMinWidthButton as a,renderWithIcon as l}from"./index.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";import{args as m,argTypes as c}from"./index.js";const t="black",r="outline";export default{component:"sp-button",title:"Button/Black/Outline",decorators:[o(t)],args:{...m,variant:t,treatment:r},argTypes:c};export const Default=e=>n(e),withIcon=e=>l(e),iconSizeOverridden=()=>i(t,r),minWidthButton=e=>a(e);minWidthButton.storyName="min-width";export const link=e=>s(e);link.storyName="href";export const linkWithTarget=e=>p(e);linkWithTarget.storyName='href with target="_blank"';
|
|
34
2
|
//# sourceMappingURL=button-black-outline.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-black-outline.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n makeOverBackground,\n renderButtonSet,\n renderIconSizeOverridden,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n} from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport type { Properties } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'black';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Black/Outline',\n decorators: [makeOverBackground(variant)],\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const Default = (props: Properties): TemplateResult =>\n renderButtonSet(props);\n\nexport const withIcon = (props: Properties): TemplateResult =>\n renderWithIcon(props);\n\nexport const iconSizeOverridden = (): TemplateResult =>\n renderIconSizeOverridden(variant, treatment);\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
|
|
5
|
+
"mappings": "AAYA,2LASA,sEAEA,gDAEA,KAAM,GAAU,QACV,EAAY,UAElB,cAAe,CACX,UAAW,YACX,MAAO,uBACP,WAAY,CAAC,EAAmB,CAAO,CAAC,EACxC,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,SAAU,AAAC,GACpB,EAAgB,CAAK,EAEZ,SAAW,AAAC,GACrB,EAAe,CAAK,EAEX,mBAAqB,IAC9B,EAAyB,EAAS,CAAS,EAElC,eAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY,YAEpB,YAAM,MAAO,AAAC,GAAsC,EAAW,CAAK,EAE3E,KAAK,UAAY,OAEV,YAAM,gBAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { args, argTypes } from "./index.js";
|
|
3
|
-
const variant = "negative";
|
|
4
|
-
const treatment = "fill";
|
|
5
|
-
export default {
|
|
6
|
-
component: "sp-button",
|
|
7
|
-
title: "Button/Negative/Fill/Sizes",
|
|
8
|
-
args: {
|
|
9
|
-
...args,
|
|
10
|
-
variant,
|
|
11
|
-
treatment
|
|
12
|
-
},
|
|
13
|
-
argTypes
|
|
14
|
-
};
|
|
15
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
16
|
-
s.args = {
|
|
17
|
-
size: "s"
|
|
18
|
-
};
|
|
19
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
20
|
-
m.args = {
|
|
21
|
-
size: "m"
|
|
22
|
-
};
|
|
23
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
24
|
-
l.args = {
|
|
25
|
-
size: "l"
|
|
26
|
-
};
|
|
27
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
28
|
-
XL.args = {
|
|
29
|
-
size: "xl"
|
|
30
|
-
};
|
|
1
|
+
import{renderButtonSet as t}from"./index.js";import{args as r,argTypes as o}from"./index.js";const p="negative",i="fill";export default{component:"sp-button",title:"Button/Negative/Fill/Sizes",args:{...r,variant:p,treatment:i},argTypes:o};export const s=e=>t(e);s.args={size:"s"};export const m=e=>t(e);m.args={size:"m"};export const l=e=>t(e);l.args={size:"l"};export const XL=e=>t(e);XL.args={size:"xl"};
|
|
31
2
|
//# sourceMappingURL=button-negative-fill-sizes.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-negative-fill-sizes.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'negative';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Negative/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
|
|
5
|
+
"mappings": "AAYA,6CACA,gDAEA,KAAM,GAAU,WACV,EAAY,OAElB,cAAe,CACX,UAAW,YACX,MAAO,6BACP,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,IAAK,AAAC,GAAqC,EAAgB,CAAI,EAC5E,GAAG,KAAO,CACN,KAAM,IACV",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderButtonSet,
|
|
3
|
-
renderIconSizeOverridden,
|
|
4
|
-
renderLink,
|
|
5
|
-
renderLinkWithTarget,
|
|
6
|
-
renderMinWidthButton,
|
|
7
|
-
renderWithIcon
|
|
8
|
-
} from "./index.js";
|
|
9
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
10
|
-
import { args, argTypes } from "./index.js";
|
|
11
|
-
const variant = "negative";
|
|
12
|
-
const treatment = "fill";
|
|
13
|
-
export default {
|
|
14
|
-
component: "sp-button",
|
|
15
|
-
title: "Button/Negative/Fill",
|
|
16
|
-
args: {
|
|
17
|
-
...args,
|
|
18
|
-
variant,
|
|
19
|
-
treatment
|
|
20
|
-
},
|
|
21
|
-
argTypes
|
|
22
|
-
};
|
|
23
|
-
export const Default = (props) => renderButtonSet(props);
|
|
24
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
25
|
-
export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
|
|
26
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
27
|
-
minWidthButton.storyName = "min-width";
|
|
28
|
-
export const link = (props) => renderLink(props);
|
|
29
|
-
link.storyName = "href";
|
|
30
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
31
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
1
|
+
import{renderButtonSet as o,renderIconSizeOverridden as n,renderLink as i,renderLinkWithTarget as p,renderMinWidthButton as s,renderWithIcon as a}from"./index.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";import{args as l,argTypes as m}from"./index.js";const t="negative",r="fill";export default{component:"sp-button",title:"Button/Negative/Fill",args:{...l,variant:t,treatment:r},argTypes:m};export const Default=e=>o(e),withIcon=e=>a(e),iconSizeOverridden=()=>n(t,r),minWidthButton=e=>s(e);minWidthButton.storyName="min-width";export const link=e=>i(e);link.storyName="href";export const linkWithTarget=e=>p(e);linkWithTarget.storyName='href with target="_blank"';
|
|
32
2
|
//# sourceMappingURL=button-negative-fill.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-negative-fill.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n renderIconSizeOverridden,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n} from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport type { Properties } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'negative';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Negative/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 iconSizeOverridden = (): TemplateResult =>\n renderIconSizeOverridden(variant, treatment);\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
|
|
5
|
+
"mappings": "AAYA,mKAQA,sEAEA,gDAEA,KAAM,GAAU,WACV,EAAY,OAElB,cAAe,CACX,UAAW,YACX,MAAO,uBACP,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,SAAU,AAAC,GACpB,EAAgB,CAAK,EAEZ,SAAW,AAAC,GACrB,EAAe,CAAK,EAEX,mBAAqB,IAC9B,EAAyB,EAAS,CAAS,EAElC,eAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY,YAEpB,YAAM,MAAO,AAAC,GAAsC,EAAW,CAAK,EAE3E,KAAK,UAAY,OAEV,YAAM,gBAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { args, argTypes } from "./index.js";
|
|
3
|
-
const variant = "negative";
|
|
4
|
-
const treatment = "outline";
|
|
5
|
-
export default {
|
|
6
|
-
component: "sp-button",
|
|
7
|
-
title: "Button/Negative/Outline/Sizes",
|
|
8
|
-
args: {
|
|
9
|
-
...args,
|
|
10
|
-
variant,
|
|
11
|
-
treatment
|
|
12
|
-
},
|
|
13
|
-
argTypes
|
|
14
|
-
};
|
|
15
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
16
|
-
s.args = {
|
|
17
|
-
size: "s"
|
|
18
|
-
};
|
|
19
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
20
|
-
m.args = {
|
|
21
|
-
size: "m"
|
|
22
|
-
};
|
|
23
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
24
|
-
l.args = {
|
|
25
|
-
size: "l"
|
|
26
|
-
};
|
|
27
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
28
|
-
XL.args = {
|
|
29
|
-
size: "xl"
|
|
30
|
-
};
|
|
1
|
+
import{renderButtonSet as t}from"./index.js";import{args as r,argTypes as o}from"./index.js";const p="negative",i="outline";export default{component:"sp-button",title:"Button/Negative/Outline/Sizes",args:{...r,variant:p,treatment:i},argTypes:o};export const s=e=>t(e);s.args={size:"s"};export const m=e=>t(e);m.args={size:"m"};export const l=e=>t(e);l.args={size:"l"};export const XL=e=>t(e);XL.args={size:"xl"};
|
|
31
2
|
//# sourceMappingURL=button-negative-outline-sizes.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-negative-outline-sizes.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'negative';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Negative/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
|
|
5
|
+
"mappings": "AAYA,6CACA,gDAEA,KAAM,GAAU,WACV,EAAY,UAElB,cAAe,CACX,UAAW,YACX,MAAO,gCACP,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,IAAK,AAAC,GAAqC,EAAgB,CAAI,EAC5E,GAAG,KAAO,CACN,KAAM,IACV",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderButtonSet,
|
|
3
|
-
renderIconSizeOverridden,
|
|
4
|
-
renderLink,
|
|
5
|
-
renderLinkWithTarget,
|
|
6
|
-
renderMinWidthButton,
|
|
7
|
-
renderWithIcon
|
|
8
|
-
} from "./index.js";
|
|
9
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
10
|
-
import { args, argTypes } from "./index.js";
|
|
11
|
-
const variant = "negative";
|
|
12
|
-
const treatment = "outline";
|
|
13
|
-
export default {
|
|
14
|
-
component: "sp-button",
|
|
15
|
-
title: "Button/Negative/Outline",
|
|
16
|
-
args: {
|
|
17
|
-
...args,
|
|
18
|
-
variant,
|
|
19
|
-
treatment
|
|
20
|
-
},
|
|
21
|
-
argTypes
|
|
22
|
-
};
|
|
23
|
-
export const Default = (props) => renderButtonSet(props);
|
|
24
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
25
|
-
export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
|
|
26
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
27
|
-
minWidthButton.storyName = "min-width";
|
|
28
|
-
export const link = (props) => renderLink(props);
|
|
29
|
-
link.storyName = "href";
|
|
30
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
31
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
1
|
+
import{renderButtonSet as o,renderIconSizeOverridden as n,renderLink as i,renderLinkWithTarget as p,renderMinWidthButton as s,renderWithIcon as a}from"./index.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";import{args as m,argTypes as l}from"./index.js";const t="negative",r="outline";export default{component:"sp-button",title:"Button/Negative/Outline",args:{...m,variant:t,treatment:r},argTypes:l};export const Default=e=>o(e),withIcon=e=>a(e),iconSizeOverridden=()=>n(t,r),minWidthButton=e=>s(e);minWidthButton.storyName="min-width";export const link=e=>i(e);link.storyName="href";export const linkWithTarget=e=>p(e);linkWithTarget.storyName='href with target="_blank"';
|
|
32
2
|
//# sourceMappingURL=button-negative-outline.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-negative-outline.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n renderIconSizeOverridden,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n} from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport type { Properties } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'negative';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Negative/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 iconSizeOverridden = (): TemplateResult =>\n renderIconSizeOverridden(variant, treatment);\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
|
|
5
|
+
"mappings": "AAYA,mKAQA,sEAEA,gDAEA,KAAM,GAAU,WACV,EAAY,UAElB,cAAe,CACX,UAAW,YACX,MAAO,0BACP,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,SAAU,AAAC,GACpB,EAAgB,CAAK,EAEZ,SAAW,AAAC,GACrB,EAAe,CAAK,EAEX,mBAAqB,IAC9B,EAAyB,EAAS,CAAS,EAElC,eAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY,YAEpB,YAAM,MAAO,AAAC,GAAsC,EAAW,CAAK,EAE3E,KAAK,UAAY,OAEV,YAAM,gBAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { args, argTypes } from "./index.js";
|
|
3
|
-
const variant = "primary";
|
|
4
|
-
const treatment = "fill";
|
|
5
|
-
export default {
|
|
6
|
-
component: "sp-button",
|
|
7
|
-
title: "Button/Primary/Fill/Sizes",
|
|
8
|
-
args: {
|
|
9
|
-
...args,
|
|
10
|
-
variant,
|
|
11
|
-
treatment
|
|
12
|
-
},
|
|
13
|
-
argTypes
|
|
14
|
-
};
|
|
15
|
-
export const s = (args2) => renderButtonSet(args2);
|
|
16
|
-
s.args = {
|
|
17
|
-
size: "s"
|
|
18
|
-
};
|
|
19
|
-
export const m = (args2) => renderButtonSet(args2);
|
|
20
|
-
m.args = {
|
|
21
|
-
size: "m"
|
|
22
|
-
};
|
|
23
|
-
export const l = (args2) => renderButtonSet(args2);
|
|
24
|
-
l.args = {
|
|
25
|
-
size: "l"
|
|
26
|
-
};
|
|
27
|
-
export const XL = (args2) => renderButtonSet(args2);
|
|
28
|
-
XL.args = {
|
|
29
|
-
size: "xl"
|
|
30
|
-
};
|
|
1
|
+
import{renderButtonSet as t}from"./index.js";import{args as r,argTypes as o}from"./index.js";const p="primary",i="fill";export default{component:"sp-button",title:"Button/Primary/Fill/Sizes",args:{...r,variant:p,treatment:i},argTypes:o};export const s=e=>t(e);s.args={size:"s"};export const m=e=>t(e);m.args={size:"m"};export const l=e=>t(e);l.args={size:"l"};export const XL=e=>t(e);XL.args={size:"xl"};
|
|
31
2
|
//# sourceMappingURL=button-primary-fill-sizes.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-primary-fill-sizes.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'primary';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Primary/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
|
|
5
|
+
"mappings": "AAYA,6CACA,gDAEA,KAAM,GAAU,UACV,EAAY,OAElB,cAAe,CACX,UAAW,YACX,MAAO,4BACP,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,GAAI,AAAC,GAAqC,EAAgB,CAAI,EAC3E,EAAE,KAAO,CACL,KAAM,GACV,EAEO,YAAM,IAAK,AAAC,GAAqC,EAAgB,CAAI,EAC5E,GAAG,KAAO,CACN,KAAM,IACV",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderButtonSet,
|
|
3
|
-
renderIconSizeOverridden,
|
|
4
|
-
renderLink,
|
|
5
|
-
renderLinkWithTarget,
|
|
6
|
-
renderMinWidthButton,
|
|
7
|
-
renderWithIcon
|
|
8
|
-
} from "./index.js";
|
|
9
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";
|
|
10
|
-
import { args, argTypes } from "./index.js";
|
|
11
|
-
const variant = "primary";
|
|
12
|
-
const treatment = "fill";
|
|
13
|
-
export default {
|
|
14
|
-
component: "sp-button",
|
|
15
|
-
title: "Button/Primary/Fill",
|
|
16
|
-
args: {
|
|
17
|
-
...args,
|
|
18
|
-
variant,
|
|
19
|
-
treatment
|
|
20
|
-
},
|
|
21
|
-
argTypes
|
|
22
|
-
};
|
|
23
|
-
export const Default = (props) => renderButtonSet(props);
|
|
24
|
-
export const withIcon = (props) => renderWithIcon(props);
|
|
25
|
-
export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
|
|
26
|
-
export const minWidthButton = (props) => renderMinWidthButton(props);
|
|
27
|
-
minWidthButton.storyName = "min-width";
|
|
28
|
-
export const link = (props) => renderLink(props);
|
|
29
|
-
link.storyName = "href";
|
|
30
|
-
export const linkWithTarget = (props) => renderLinkWithTarget(props);
|
|
31
|
-
linkWithTarget.storyName = 'href with target="_blank"';
|
|
1
|
+
import{renderButtonSet as o,renderIconSizeOverridden as i,renderLink as n,renderLinkWithTarget as p,renderMinWidthButton as s,renderWithIcon as m}from"./index.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-help.js";import{args as a,argTypes as l}from"./index.js";const t="primary",r="fill";export default{component:"sp-button",title:"Button/Primary/Fill",args:{...a,variant:t,treatment:r},argTypes:l};export const Default=e=>o(e),withIcon=e=>m(e),iconSizeOverridden=()=>i(t,r),minWidthButton=e=>s(e);minWidthButton.storyName="min-width";export const link=e=>n(e);link.storyName="href";export const linkWithTarget=e=>p(e);linkWithTarget.storyName='href with target="_blank"';
|
|
32
2
|
//# sourceMappingURL=button-primary-fill.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-primary-fill.stories.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 { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n renderIconSizeOverridden,\n renderLink,\n renderLinkWithTarget,\n renderMinWidthButton,\n renderWithIcon,\n} from './index.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';\nimport type { Properties } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'primary';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Primary/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 iconSizeOverridden = (): TemplateResult =>\n renderIconSizeOverridden(variant, treatment);\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
|
|
5
|
+
"mappings": "AAYA,mKAQA,sEAEA,gDAEA,KAAM,GAAU,UACV,EAAY,OAElB,cAAe,CACX,UAAW,YACX,MAAO,sBACP,KAAM,IACC,EACH,UACA,WACJ,EACA,UACJ,EAEO,YAAM,SAAU,AAAC,GACpB,EAAgB,CAAK,EAEZ,SAAW,AAAC,GACrB,EAAe,CAAK,EAEX,mBAAqB,IAC9B,EAAyB,EAAS,CAAS,EAElC,eAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY,YAEpB,YAAM,MAAO,AAAC,GAAsC,EAAW,CAAK,EAE3E,KAAK,UAAY,OAEV,YAAM,gBAAiB,AAAC,GAC3B,EAAqB,CAAK,EAE9B,eAAe,UAAY",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|