@spectrum-web-components/button 0.19.0 → 0.19.1

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.
Files changed (159) hide show
  1. package/package.json +3 -3
  2. package/sp-button.dev.js +1 -0
  3. package/sp-button.dev.js.map +1 -1
  4. package/sp-button.js +1 -1
  5. package/sp-button.js.map +2 -2
  6. package/sp-clear-button.dev.js +1 -0
  7. package/sp-clear-button.dev.js.map +1 -1
  8. package/sp-clear-button.js +1 -1
  9. package/sp-clear-button.js.map +2 -2
  10. package/sp-close-button.dev.js +1 -0
  11. package/sp-close-button.dev.js.map +1 -1
  12. package/sp-close-button.js +1 -1
  13. package/sp-close-button.js.map +2 -2
  14. package/src/Button.dev.js +1 -0
  15. package/src/Button.dev.js.map +1 -1
  16. package/src/Button.js +1 -1
  17. package/src/Button.js.map +2 -2
  18. package/src/ButtonBase.dev.js +8 -2
  19. package/src/ButtonBase.dev.js.map +1 -1
  20. package/src/ButtonBase.js +1 -1
  21. package/src/ButtonBase.js.map +2 -2
  22. package/src/ClearButton.dev.js +1 -0
  23. package/src/ClearButton.dev.js.map +1 -1
  24. package/src/ClearButton.js +5 -5
  25. package/src/ClearButton.js.map +2 -2
  26. package/src/CloseButton.dev.js +1 -0
  27. package/src/CloseButton.dev.js.map +1 -1
  28. package/src/CloseButton.js +1 -1
  29. package/src/CloseButton.js.map +2 -2
  30. package/src/StyledButton.dev.js +1 -0
  31. package/src/StyledButton.dev.js.map +1 -1
  32. package/src/StyledButton.js +1 -1
  33. package/src/StyledButton.js.map +2 -2
  34. package/src/button-base.css.dev.js +1 -0
  35. package/src/button-base.css.dev.js.map +1 -1
  36. package/src/button-base.css.js +1 -1
  37. package/src/button-base.css.js.map +2 -2
  38. package/src/button.css.dev.js +1 -0
  39. package/src/button.css.dev.js.map +1 -1
  40. package/src/button.css.js +1 -1
  41. package/src/button.css.js.map +2 -2
  42. package/src/index.dev.js +1 -0
  43. package/src/index.dev.js.map +1 -1
  44. package/src/index.js +1 -1
  45. package/src/index.js.map +1 -1
  46. package/src/spectrum-button-base.css.dev.js +1 -0
  47. package/src/spectrum-button-base.css.dev.js.map +1 -1
  48. package/src/spectrum-button-base.css.js +1 -1
  49. package/src/spectrum-button-base.css.js.map +2 -2
  50. package/src/spectrum-button.css.dev.js +1 -0
  51. package/src/spectrum-button.css.dev.js.map +1 -1
  52. package/src/spectrum-button.css.js +1 -1
  53. package/src/spectrum-button.css.js.map +2 -2
  54. package/stories/button-accent-fill-sizes.stories.js +31 -1
  55. package/stories/button-accent-fill-sizes.stories.js.map +2 -2
  56. package/stories/button-accent-fill.stories.js +32 -1
  57. package/stories/button-accent-fill.stories.js.map +1 -1
  58. package/stories/button-accent-outline-sizes.stories.js +31 -1
  59. package/stories/button-accent-outline-sizes.stories.js.map +2 -2
  60. package/stories/button-accent-outline.stories.js +32 -1
  61. package/stories/button-accent-outline.stories.js.map +1 -1
  62. package/stories/button-black-fill-sizes.stories.js +32 -1
  63. package/stories/button-black-fill-sizes.stories.js.map +2 -2
  64. package/stories/button-black-fill.stories.js +34 -1
  65. package/stories/button-black-fill.stories.js.map +1 -1
  66. package/stories/button-black-outline-sizes.stories.js +32 -1
  67. package/stories/button-black-outline-sizes.stories.js.map +2 -2
  68. package/stories/button-black-outline.stories.js +34 -1
  69. package/stories/button-black-outline.stories.js.map +1 -1
  70. package/stories/button-negative-fill-sizes.stories.js +31 -1
  71. package/stories/button-negative-fill-sizes.stories.js.map +2 -2
  72. package/stories/button-negative-fill.stories.js +32 -1
  73. package/stories/button-negative-fill.stories.js.map +1 -1
  74. package/stories/button-negative-outline-sizes.stories.js +31 -1
  75. package/stories/button-negative-outline-sizes.stories.js.map +2 -2
  76. package/stories/button-negative-outline.stories.js +32 -1
  77. package/stories/button-negative-outline.stories.js.map +1 -1
  78. package/stories/button-primary-fill-sizes.stories.js +31 -1
  79. package/stories/button-primary-fill-sizes.stories.js.map +2 -2
  80. package/stories/button-primary-fill.stories.js +32 -1
  81. package/stories/button-primary-fill.stories.js.map +1 -1
  82. package/stories/button-primary-outline-sizes.stories.js +31 -1
  83. package/stories/button-primary-outline-sizes.stories.js.map +2 -2
  84. package/stories/button-primary-outline.stories.js +32 -1
  85. package/stories/button-primary-outline.stories.js.map +1 -1
  86. package/stories/button-secondary-fill-sizes.stories.js +31 -1
  87. package/stories/button-secondary-fill-sizes.stories.js.map +2 -2
  88. package/stories/button-secondary-fill.stories.js +32 -1
  89. package/stories/button-secondary-fill.stories.js.map +1 -1
  90. package/stories/button-secondary-outline-sizes.stories.js +31 -1
  91. package/stories/button-secondary-outline-sizes.stories.js.map +2 -2
  92. package/stories/button-secondary-outline.stories.js +32 -1
  93. package/stories/button-secondary-outline.stories.js.map +1 -1
  94. package/stories/button-white-fill-sizes.stories.js +32 -1
  95. package/stories/button-white-fill-sizes.stories.js.map +2 -2
  96. package/stories/button-white-fill.stories.js +34 -1
  97. package/stories/button-white-fill.stories.js.map +1 -1
  98. package/stories/button-white-outline-sizes.stories.js +32 -1
  99. package/stories/button-white-outline-sizes.stories.js.map +2 -2
  100. package/stories/button-white-outline.stories.js +34 -1
  101. package/stories/button-white-outline.stories.js.map +1 -1
  102. package/stories/index.js +138 -36
  103. package/stories/index.js.map +1 -1
  104. package/test/benchmark/test-basic.js +5 -1
  105. package/test/benchmark/test-basic.js.map +1 -1
  106. package/test/button-accent-fill-sizes.test-vrt.js +4 -1
  107. package/test/button-accent-fill-sizes.test-vrt.js.map +1 -1
  108. package/test/button-accent-fill.test-vrt.js +4 -1
  109. package/test/button-accent-fill.test-vrt.js.map +1 -1
  110. package/test/button-accent-outline-sizes.test-vrt.js +4 -1
  111. package/test/button-accent-outline-sizes.test-vrt.js.map +1 -1
  112. package/test/button-accent-outline.test-vrt.js +4 -1
  113. package/test/button-accent-outline.test-vrt.js.map +1 -1
  114. package/test/button-black-fill-sizes.test-vrt.js +4 -1
  115. package/test/button-black-fill-sizes.test-vrt.js.map +1 -1
  116. package/test/button-black-fill.test-vrt.js +4 -1
  117. package/test/button-black-fill.test-vrt.js.map +1 -1
  118. package/test/button-black-outline-sizes.test-vrt.js +4 -1
  119. package/test/button-black-outline-sizes.test-vrt.js.map +1 -1
  120. package/test/button-black-outline.test-vrt.js +4 -1
  121. package/test/button-black-outline.test-vrt.js.map +1 -1
  122. package/test/button-negative-fill-sizes.test-vrt.js +4 -1
  123. package/test/button-negative-fill-sizes.test-vrt.js.map +1 -1
  124. package/test/button-negative-fill.test-vrt.js +4 -1
  125. package/test/button-negative-fill.test-vrt.js.map +1 -1
  126. package/test/button-negative-outline-sizes.test-vrt.js +4 -1
  127. package/test/button-negative-outline-sizes.test-vrt.js.map +1 -1
  128. package/test/button-negative-outline.test-vrt.js +4 -1
  129. package/test/button-negative-outline.test-vrt.js.map +1 -1
  130. package/test/button-primary-fill-sizes.test-vrt.js +4 -1
  131. package/test/button-primary-fill-sizes.test-vrt.js.map +1 -1
  132. package/test/button-primary-fill.test-vrt.js +4 -1
  133. package/test/button-primary-fill.test-vrt.js.map +1 -1
  134. package/test/button-primary-outline-sizes.test-vrt.js +4 -1
  135. package/test/button-primary-outline-sizes.test-vrt.js.map +1 -1
  136. package/test/button-primary-outline.test-vrt.js +4 -1
  137. package/test/button-primary-outline.test-vrt.js.map +1 -1
  138. package/test/button-secondary-fill-sizes.test-vrt.js +4 -1
  139. package/test/button-secondary-fill-sizes.test-vrt.js.map +1 -1
  140. package/test/button-secondary-fill.test-vrt.js +4 -1
  141. package/test/button-secondary-fill.test-vrt.js.map +1 -1
  142. package/test/button-secondary-outline-sizes.test-vrt.js +4 -1
  143. package/test/button-secondary-outline-sizes.test-vrt.js.map +1 -1
  144. package/test/button-secondary-outline.test-vrt.js +4 -1
  145. package/test/button-secondary-outline.test-vrt.js.map +1 -1
  146. package/test/button-white-fill-sizes.test-vrt.js +4 -1
  147. package/test/button-white-fill-sizes.test-vrt.js.map +1 -1
  148. package/test/button-white-fill.test-vrt.js +4 -1
  149. package/test/button-white-fill.test-vrt.js.map +1 -1
  150. package/test/button-white-outline-sizes.test-vrt.js +4 -1
  151. package/test/button-white-outline-sizes.test-vrt.js.map +1 -1
  152. package/test/button-white-outline.test-vrt.js +4 -1
  153. package/test/button-white-outline.test-vrt.js.map +1 -1
  154. package/test/button.test.js +416 -29
  155. package/test/button.test.js.map +1 -1
  156. package/test/clear-button.test.js +22 -4
  157. package/test/clear-button.test.js.map +1 -1
  158. package/test/close-button.test.js +22 -4
  159. package/test/close-button.test.js.map +1 -1
@@ -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,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
- "names": []
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,OAAO,CAAC;AAAA,EACxC,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
7
  }
@@ -1,2 +1,35 @@
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"';
1
+ "use strict";
2
+ import {
3
+ makeOverBackground,
4
+ renderButtonSet,
5
+ renderIconSizeOverridden,
6
+ renderLink,
7
+ renderLinkWithTarget,
8
+ renderMinWidthButton,
9
+ renderWithIcon
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 = "black";
14
+ const treatment = "fill";
15
+ export default {
16
+ component: "sp-button",
17
+ title: "Button/Black/Fill",
18
+ decorators: [makeOverBackground(variant)],
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 iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
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"';
2
35
  //# 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,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",
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,OAAO,CAAC;AAAA,EACxC,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,qBAAqB,MAC9B,yBAAyB,SAAS,SAAS;AAExC,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
6
  "names": []
7
7
  }
@@ -1,2 +1,33 @@
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"};
1
+ "use strict";
2
+ import { makeOverBackground, renderButtonSet } from "./index.js";
3
+ import { args, argTypes } from "./index.js";
4
+ const variant = "black";
5
+ const treatment = "outline";
6
+ export default {
7
+ component: "sp-button",
8
+ title: "Button/Black/Outline/Sizes",
9
+ decorators: [makeOverBackground(variant)],
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
+ };
2
33
  //# 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,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
- "names": []
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,OAAO,CAAC;AAAA,EACxC,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
7
  }
@@ -1,2 +1,35 @@
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"';
1
+ "use strict";
2
+ import {
3
+ makeOverBackground,
4
+ renderButtonSet,
5
+ renderIconSizeOverridden,
6
+ renderLink,
7
+ renderLinkWithTarget,
8
+ renderMinWidthButton,
9
+ renderWithIcon
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 = "black";
14
+ const treatment = "outline";
15
+ export default {
16
+ component: "sp-button",
17
+ title: "Button/Black/Outline",
18
+ decorators: [makeOverBackground(variant)],
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 iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
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"';
2
35
  //# 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,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",
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,OAAO,CAAC;AAAA,EACxC,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,qBAAqB,MAC9B,yBAAyB,SAAS,SAAS;AAExC,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
6
  "names": []
7
7
  }
@@ -1,2 +1,32 @@
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"};
1
+ "use strict";
2
+ import { renderButtonSet } from "./index.js";
3
+ import { args, argTypes } from "./index.js";
4
+ const variant = "negative";
5
+ const treatment = "fill";
6
+ export default {
7
+ component: "sp-button",
8
+ title: "Button/Negative/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
+ };
2
32
  //# 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,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
- "names": []
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
7
  }
@@ -1,2 +1,33 @@
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"';
1
+ "use strict";
2
+ import {
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 = "negative";
13
+ const treatment = "fill";
14
+ export default {
15
+ component: "sp-button",
16
+ title: "Button/Negative/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 iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
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"';
2
33
  //# 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,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",
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,qBAAqB,MAC9B,yBAAyB,SAAS,SAAS;AAExC,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
6
  "names": []
7
7
  }
@@ -1,2 +1,32 @@
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"};
1
+ "use strict";
2
+ import { renderButtonSet } from "./index.js";
3
+ import { args, argTypes } from "./index.js";
4
+ const variant = "negative";
5
+ const treatment = "outline";
6
+ export default {
7
+ component: "sp-button",
8
+ title: "Button/Negative/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
+ };
2
32
  //# 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,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
- "names": []
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
7
  }
@@ -1,2 +1,33 @@
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"';
1
+ "use strict";
2
+ import {
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 = "negative";
13
+ const treatment = "outline";
14
+ export default {
15
+ component: "sp-button",
16
+ title: "Button/Negative/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 iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
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"';
2
33
  //# 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,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",
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,qBAAqB,MAC9B,yBAAyB,SAAS,SAAS;AAExC,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
6
  "names": []
7
7
  }
@@ -1,2 +1,32 @@
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"};
1
+ "use strict";
2
+ import { renderButtonSet } from "./index.js";
3
+ import { args, argTypes } from "./index.js";
4
+ const variant = "primary";
5
+ const treatment = "fill";
6
+ export default {
7
+ component: "sp-button",
8
+ title: "Button/Primary/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
+ };
2
32
  //# 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,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
- "names": []
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
7
  }
@@ -1,2 +1,33 @@
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"';
1
+ "use strict";
2
+ import {
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 = "primary";
13
+ const treatment = "fill";
14
+ export default {
15
+ component: "sp-button",
16
+ title: "Button/Primary/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 iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
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"';
2
33
  //# 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,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",
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,qBAAqB,MAC9B,yBAAyB,SAAS,SAAS;AAExC,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
6
  "names": []
7
7
  }
@@ -1,2 +1,32 @@
1
- import{renderButtonSet as t}from"./index.js";import{args as r,argTypes as o}from"./index.js";const p="primary",i="outline";export default{component:"sp-button",title:"Button/Primary/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"};
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
+ };
2
32
  //# sourceMappingURL=button-primary-outline-sizes.stories.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["button-primary-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 = '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,6CACA,gDAEA,KAAM,GAAU,UACV,EAAY,UAElB,cAAe,CACX,UAAW,YACX,MAAO,+BACP,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
- "names": []
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
7
  }
@@ -1,2 +1,33 @@
1
- import{renderButtonSet as o,renderIconSizeOverridden as n,renderLink as i,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="outline";export default{component:"sp-button",title:"Button/Primary/Outline",args:{...a,variant:t,treatment:r},argTypes:l};export const Default=e=>o(e),withIcon=e=>m(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"';
1
+ "use strict";
2
+ import {
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 = "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 iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
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"';
2
33
  //# sourceMappingURL=button-primary-outline.stories.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["button-primary-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 = '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 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,mKAQA,sEAEA,gDAEA,KAAM,GAAU,UACV,EAAY,UAElB,cAAe,CACX,UAAW,YACX,MAAO,yBACP,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",
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,qBAAqB,MAC9B,yBAAyB,SAAS,SAAS;AAExC,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
6
  "names": []
7
7
  }