@spectrum-web-components/button 0.18.0 → 0.18.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 (161) hide show
  1. package/README.md +193 -34
  2. package/custom-elements.json +90 -90
  3. package/package.json +50 -16
  4. package/sp-button.dev.js +3 -0
  5. package/sp-button.dev.js.map +7 -0
  6. package/sp-button.js +3 -14
  7. package/sp-button.js.map +7 -1
  8. package/sp-clear-button.dev.js +3 -0
  9. package/sp-clear-button.dev.js.map +7 -0
  10. package/sp-clear-button.js +3 -14
  11. package/sp-clear-button.js.map +7 -1
  12. package/sp-close-button.dev.js +3 -0
  13. package/sp-close-button.dev.js.map +7 -0
  14. package/sp-close-button.js +3 -14
  15. package/sp-close-button.js.map +7 -1
  16. package/src/Button.dev.js +79 -0
  17. package/src/Button.dev.js.map +7 -0
  18. package/src/Button.js +72 -87
  19. package/src/Button.js.map +7 -1
  20. package/src/ButtonBase.dev.js +215 -0
  21. package/src/ButtonBase.dev.js.map +7 -0
  22. package/src/ButtonBase.js +198 -201
  23. package/src/ButtonBase.js.map +7 -1
  24. package/src/ClearButton.dev.js +70 -0
  25. package/src/ClearButton.dev.js.map +7 -0
  26. package/src/ClearButton.js +45 -52
  27. package/src/ClearButton.js.map +7 -1
  28. package/src/CloseButton.dev.js +65 -0
  29. package/src/CloseButton.dev.js.map +7 -0
  30. package/src/CloseButton.js +42 -49
  31. package/src/CloseButton.js.map +7 -1
  32. package/src/StyledButton.dev.js +8 -0
  33. package/src/StyledButton.dev.js.map +7 -0
  34. package/src/StyledButton.js +6 -17
  35. package/src/StyledButton.js.map +7 -1
  36. package/src/button-base.css.dev.js +10 -0
  37. package/src/button-base.css.dev.js.map +7 -0
  38. package/src/button-base.css.js +4 -15
  39. package/src/button-base.css.js.map +7 -1
  40. package/src/button.css.dev.js +619 -0
  41. package/src/button.css.dev.js.map +7 -0
  42. package/src/button.css.js +4 -15
  43. package/src/button.css.js.map +7 -1
  44. package/src/index.dev.js +6 -0
  45. package/src/index.dev.js.map +7 -0
  46. package/src/index.js +6 -17
  47. package/src/index.js.map +7 -1
  48. package/src/spectrum-button-base.css.dev.js +6 -0
  49. package/src/spectrum-button-base.css.dev.js.map +7 -0
  50. package/src/spectrum-button-base.css.js +3 -14
  51. package/src/spectrum-button-base.css.js.map +7 -1
  52. package/src/spectrum-button.css.dev.js +587 -0
  53. package/src/spectrum-button.css.dev.js.map +7 -0
  54. package/src/spectrum-button.css.js +4 -15
  55. package/src/spectrum-button.css.js.map +7 -1
  56. package/stories/button-accent-fill-sizes.stories.js +21 -18
  57. package/stories/button-accent-fill-sizes.stories.js.map +7 -1
  58. package/stories/button-accent-fill.stories.js +24 -20
  59. package/stories/button-accent-fill.stories.js.map +7 -1
  60. package/stories/button-accent-outline-sizes.stories.js +21 -18
  61. package/stories/button-accent-outline-sizes.stories.js.map +7 -1
  62. package/stories/button-accent-outline.stories.js +24 -20
  63. package/stories/button-accent-outline.stories.js.map +7 -1
  64. package/stories/button-black-fill-sizes.stories.js +22 -19
  65. package/stories/button-black-fill-sizes.stories.js.map +7 -1
  66. package/stories/button-black-fill.stories.js +26 -21
  67. package/stories/button-black-fill.stories.js.map +7 -1
  68. package/stories/button-black-outline-sizes.stories.js +22 -19
  69. package/stories/button-black-outline-sizes.stories.js.map +7 -1
  70. package/stories/button-black-outline.stories.js +26 -21
  71. package/stories/button-black-outline.stories.js.map +7 -1
  72. package/stories/button-negative-fill-sizes.stories.js +21 -18
  73. package/stories/button-negative-fill-sizes.stories.js.map +7 -1
  74. package/stories/button-negative-fill.stories.js +24 -20
  75. package/stories/button-negative-fill.stories.js.map +7 -1
  76. package/stories/button-negative-outline-sizes.stories.js +21 -18
  77. package/stories/button-negative-outline-sizes.stories.js.map +7 -1
  78. package/stories/button-negative-outline.stories.js +24 -20
  79. package/stories/button-negative-outline.stories.js.map +7 -1
  80. package/stories/button-primary-fill-sizes.stories.js +21 -18
  81. package/stories/button-primary-fill-sizes.stories.js.map +7 -1
  82. package/stories/button-primary-fill.stories.js +24 -20
  83. package/stories/button-primary-fill.stories.js.map +7 -1
  84. package/stories/button-primary-outline-sizes.stories.js +21 -18
  85. package/stories/button-primary-outline-sizes.stories.js.map +7 -1
  86. package/stories/button-primary-outline.stories.js +24 -20
  87. package/stories/button-primary-outline.stories.js.map +7 -1
  88. package/stories/button-secondary-fill-sizes.stories.js +21 -18
  89. package/stories/button-secondary-fill-sizes.stories.js.map +7 -1
  90. package/stories/button-secondary-fill.stories.js +24 -20
  91. package/stories/button-secondary-fill.stories.js.map +7 -1
  92. package/stories/button-secondary-outline-sizes.stories.js +21 -18
  93. package/stories/button-secondary-outline-sizes.stories.js.map +7 -1
  94. package/stories/button-secondary-outline.stories.js +24 -20
  95. package/stories/button-secondary-outline.stories.js.map +7 -1
  96. package/stories/button-white-fill-sizes.stories.js +22 -19
  97. package/stories/button-white-fill-sizes.stories.js.map +7 -1
  98. package/stories/button-white-fill.stories.js +26 -21
  99. package/stories/button-white-fill.stories.js.map +7 -1
  100. package/stories/button-white-outline-sizes.stories.js +22 -19
  101. package/stories/button-white-outline-sizes.stories.js.map +7 -1
  102. package/stories/button-white-outline.stories.js +26 -21
  103. package/stories/button-white-outline.stories.js.map +7 -1
  104. package/stories/index.js +92 -93
  105. package/stories/index.js.map +7 -1
  106. package/test/benchmark/test-basic.js +5 -16
  107. package/test/benchmark/test-basic.js.map +7 -1
  108. package/test/button-accent-fill-sizes.test-vrt.js +4 -15
  109. package/test/button-accent-fill-sizes.test-vrt.js.map +7 -1
  110. package/test/button-accent-fill.test-vrt.js +4 -15
  111. package/test/button-accent-fill.test-vrt.js.map +7 -1
  112. package/test/button-accent-outline-sizes.test-vrt.js +4 -15
  113. package/test/button-accent-outline-sizes.test-vrt.js.map +7 -1
  114. package/test/button-accent-outline.test-vrt.js +4 -15
  115. package/test/button-accent-outline.test-vrt.js.map +7 -1
  116. package/test/button-black-fill-sizes.test-vrt.js +4 -15
  117. package/test/button-black-fill-sizes.test-vrt.js.map +7 -1
  118. package/test/button-black-fill.test-vrt.js +4 -15
  119. package/test/button-black-fill.test-vrt.js.map +7 -1
  120. package/test/button-black-outline-sizes.test-vrt.js +4 -15
  121. package/test/button-black-outline-sizes.test-vrt.js.map +7 -1
  122. package/test/button-black-outline.test-vrt.js +4 -15
  123. package/test/button-black-outline.test-vrt.js.map +7 -1
  124. package/test/button-negative-fill-sizes.test-vrt.js +4 -15
  125. package/test/button-negative-fill-sizes.test-vrt.js.map +7 -1
  126. package/test/button-negative-fill.test-vrt.js +4 -15
  127. package/test/button-negative-fill.test-vrt.js.map +7 -1
  128. package/test/button-negative-outline-sizes.test-vrt.js +4 -15
  129. package/test/button-negative-outline-sizes.test-vrt.js.map +7 -1
  130. package/test/button-negative-outline.test-vrt.js +4 -15
  131. package/test/button-negative-outline.test-vrt.js.map +7 -1
  132. package/test/button-primary-fill-sizes.test-vrt.js +4 -15
  133. package/test/button-primary-fill-sizes.test-vrt.js.map +7 -1
  134. package/test/button-primary-fill.test-vrt.js +4 -15
  135. package/test/button-primary-fill.test-vrt.js.map +7 -1
  136. package/test/button-primary-outline-sizes.test-vrt.js +4 -15
  137. package/test/button-primary-outline-sizes.test-vrt.js.map +7 -1
  138. package/test/button-primary-outline.test-vrt.js +4 -15
  139. package/test/button-primary-outline.test-vrt.js.map +7 -1
  140. package/test/button-secondary-fill-sizes.test-vrt.js +4 -15
  141. package/test/button-secondary-fill-sizes.test-vrt.js.map +7 -1
  142. package/test/button-secondary-fill.test-vrt.js +4 -15
  143. package/test/button-secondary-fill.test-vrt.js.map +7 -1
  144. package/test/button-secondary-outline-sizes.test-vrt.js +4 -15
  145. package/test/button-secondary-outline-sizes.test-vrt.js.map +7 -1
  146. package/test/button-secondary-outline.test-vrt.js +4 -15
  147. package/test/button-secondary-outline.test-vrt.js.map +7 -1
  148. package/test/button-white-fill-sizes.test-vrt.js +4 -15
  149. package/test/button-white-fill-sizes.test-vrt.js.map +7 -1
  150. package/test/button-white-fill.test-vrt.js +4 -15
  151. package/test/button-white-fill.test-vrt.js.map +7 -1
  152. package/test/button-white-outline-sizes.test-vrt.js +4 -15
  153. package/test/button-white-outline-sizes.test-vrt.js.map +7 -1
  154. package/test/button-white-outline.test-vrt.js +4 -15
  155. package/test/button-white-outline.test-vrt.js.map +7 -1
  156. package/test/button.test.js +321 -320
  157. package/test/button.test.js.map +7 -1
  158. package/test/clear-button.test.js +13 -20
  159. package/test/clear-button.test.js.map +7 -1
  160. package/test/close-button.test.js +13 -20
  161. package/test/close-button.test.js.map +7 -1
@@ -1,28 +1,32 @@
1
- import { renderButtonSet, renderIconSizeOverridden, renderLink, renderLinkWithTarget, renderMinWidthButton, renderWithIcon, } from './index.js';
2
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';
3
- import { args, argTypes } from './index.js';
4
- const variant = 'negative';
5
- const treatment = 'fill';
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";
6
13
  export default {
7
- component: 'sp-button',
8
- title: 'Button/Negative/Fill',
9
- args: Object.assign(Object.assign({}, args), { variant,
10
- treatment }),
11
- argTypes,
14
+ component: "sp-button",
15
+ title: "Button/Negative/Fill",
16
+ args: {
17
+ ...args,
18
+ variant,
19
+ treatment
20
+ },
21
+ argTypes
12
22
  };
13
23
  export const Default = (props) => renderButtonSet(props);
14
24
  export const withIcon = (props) => renderWithIcon(props);
15
25
  export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
16
26
  export const minWidthButton = (props) => renderMinWidthButton(props);
17
- minWidthButton.story = {
18
- name: 'min-width',
19
- };
27
+ minWidthButton.storyName = "min-width";
20
28
  export const link = (props) => renderLink(props);
21
- link.story = {
22
- name: 'href',
23
- };
29
+ link.storyName = "href";
24
30
  export const linkWithTarget = (props) => renderLinkWithTarget(props);
25
- linkWithTarget.story = {
26
- name: 'href with target="_blank"',
27
- };
28
- //# sourceMappingURL=button-negative-fill.stories.js.map
31
+ linkWithTarget.storyName = 'href with target="_blank"';
32
+ //# sourceMappingURL=button-negative-fill.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"button-negative-fill.stories.js","sourceRoot":"","sources":["button-negative-fill.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,+DAA+D,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,UAAU,CAAC;AAC3B,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,sBAAsB;IAC7B,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAiB,EAAkB,EAAE,CACzD,eAAe,CAAC,KAAK,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAC1D,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAmB,EAAE,CACnD,wBAAwB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAE7E,IAAI,CAAC,KAAK,GAAG;IACT,IAAI,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,2BAA2B;CACpC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n 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.story = {\n name: 'min-width',\n};\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.story = {\n name: 'href',\n};\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.story = {\n name: 'href with target=\"_blank\"',\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-negative-fill.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;AAEA;AAEA,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,OACC;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
+ "names": []
7
+ }
@@ -1,28 +1,31 @@
1
- import { renderButtonSet } from './index.js';
2
- import { args, argTypes } from './index.js';
3
- const variant = 'negative';
4
- const treatment = 'outline';
1
+ import { renderButtonSet } from "./index.js";
2
+ import { args, argTypes } from "./index.js";
3
+ const variant = "negative";
4
+ const treatment = "outline";
5
5
  export default {
6
- component: 'sp-button',
7
- title: 'Button/Negative/Outline/Sizes',
8
- args: Object.assign(Object.assign({}, args), { variant,
9
- treatment }),
10
- argTypes,
6
+ component: "sp-button",
7
+ title: "Button/Negative/Outline/Sizes",
8
+ args: {
9
+ ...args,
10
+ variant,
11
+ treatment
12
+ },
13
+ argTypes
11
14
  };
12
- export const s = (args) => renderButtonSet(args);
15
+ export const s = (args2) => renderButtonSet(args2);
13
16
  s.args = {
14
- size: 's',
17
+ size: "s"
15
18
  };
16
- export const m = (args) => renderButtonSet(args);
19
+ export const m = (args2) => renderButtonSet(args2);
17
20
  m.args = {
18
- size: 'm',
21
+ size: "m"
19
22
  };
20
- export const l = (args) => renderButtonSet(args);
23
+ export const l = (args2) => renderButtonSet(args2);
21
24
  l.args = {
22
- size: 'l',
25
+ size: "l"
23
26
  };
24
- export const XL = (args) => renderButtonSet(args);
27
+ export const XL = (args2) => renderButtonSet(args2);
25
28
  XL.args = {
26
- size: 'xl',
29
+ size: "xl"
27
30
  };
28
- //# sourceMappingURL=button-negative-outline-sizes.stories.js.map
31
+ //# sourceMappingURL=button-negative-outline-sizes.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"button-negative-outline-sizes.stories.js","sourceRoot":"","sources":["button-negative-outline-sizes.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAc,eAAe,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,UAAU,CAAC;AAC3B,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,+BAA+B;IACtC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC9E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;CACb,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { 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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-negative-outline-sizes.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = '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;AACA;AAEA,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,OACC;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAAC,UAAqC,gBAAgB,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
6
+ "names": []
7
+ }
@@ -1,28 +1,32 @@
1
- import { renderButtonSet, renderIconSizeOverridden, renderLink, renderLinkWithTarget, renderMinWidthButton, renderWithIcon, } from './index.js';
2
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';
3
- import { args, argTypes } from './index.js';
4
- const variant = 'negative';
5
- const treatment = 'outline';
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";
6
13
  export default {
7
- component: 'sp-button',
8
- title: 'Button/Negative/Outline',
9
- args: Object.assign(Object.assign({}, args), { variant,
10
- treatment }),
11
- argTypes,
14
+ component: "sp-button",
15
+ title: "Button/Negative/Outline",
16
+ args: {
17
+ ...args,
18
+ variant,
19
+ treatment
20
+ },
21
+ argTypes
12
22
  };
13
23
  export const Default = (props) => renderButtonSet(props);
14
24
  export const withIcon = (props) => renderWithIcon(props);
15
25
  export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
16
26
  export const minWidthButton = (props) => renderMinWidthButton(props);
17
- minWidthButton.story = {
18
- name: 'min-width',
19
- };
27
+ minWidthButton.storyName = "min-width";
20
28
  export const link = (props) => renderLink(props);
21
- link.story = {
22
- name: 'href',
23
- };
29
+ link.storyName = "href";
24
30
  export const linkWithTarget = (props) => renderLinkWithTarget(props);
25
- linkWithTarget.story = {
26
- name: 'href with target="_blank"',
27
- };
28
- //# sourceMappingURL=button-negative-outline.stories.js.map
31
+ linkWithTarget.storyName = 'href with target="_blank"';
32
+ //# sourceMappingURL=button-negative-outline.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"button-negative-outline.stories.js","sourceRoot":"","sources":["button-negative-outline.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,+DAA+D,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,UAAU,CAAC;AAC3B,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,yBAAyB;IAChC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAiB,EAAkB,EAAE,CACzD,eAAe,CAAC,KAAK,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAC1D,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAmB,EAAE,CACnD,wBAAwB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAE7E,IAAI,CAAC,KAAK,GAAG;IACT,IAAI,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,2BAA2B;CACpC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n 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.story = {\n name: 'min-width',\n};\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.story = {\n name: 'href',\n};\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.story = {\n name: 'href with target=\"_blank\"',\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-negative-outline.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;AAEA;AAEA,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,OACC;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
+ "names": []
7
+ }
@@ -1,28 +1,31 @@
1
- import { renderButtonSet } from './index.js';
2
- import { args, argTypes } from './index.js';
3
- const variant = 'primary';
4
- const treatment = 'fill';
1
+ import { renderButtonSet } from "./index.js";
2
+ import { args, argTypes } from "./index.js";
3
+ const variant = "primary";
4
+ const treatment = "fill";
5
5
  export default {
6
- component: 'sp-button',
7
- title: 'Button/Primary/Fill/Sizes',
8
- args: Object.assign(Object.assign({}, args), { variant,
9
- treatment }),
10
- argTypes,
6
+ component: "sp-button",
7
+ title: "Button/Primary/Fill/Sizes",
8
+ args: {
9
+ ...args,
10
+ variant,
11
+ treatment
12
+ },
13
+ argTypes
11
14
  };
12
- export const s = (args) => renderButtonSet(args);
15
+ export const s = (args2) => renderButtonSet(args2);
13
16
  s.args = {
14
- size: 's',
17
+ size: "s"
15
18
  };
16
- export const m = (args) => renderButtonSet(args);
19
+ export const m = (args2) => renderButtonSet(args2);
17
20
  m.args = {
18
- size: 'm',
21
+ size: "m"
19
22
  };
20
- export const l = (args) => renderButtonSet(args);
23
+ export const l = (args2) => renderButtonSet(args2);
21
24
  l.args = {
22
- size: 'l',
25
+ size: "l"
23
26
  };
24
- export const XL = (args) => renderButtonSet(args);
27
+ export const XL = (args2) => renderButtonSet(args2);
25
28
  XL.args = {
26
- size: 'xl',
29
+ size: "xl"
27
30
  };
28
- //# sourceMappingURL=button-primary-fill-sizes.stories.js.map
31
+ //# sourceMappingURL=button-primary-fill-sizes.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"button-primary-fill-sizes.stories.js","sourceRoot":"","sources":["button-primary-fill-sizes.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAc,eAAe,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,2BAA2B;IAClC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC9E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;CACb,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { 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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-primary-fill-sizes.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = '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;AACA;AAEA,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,OACC;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAAC,UAAqC,gBAAgB,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
6
+ "names": []
7
+ }
@@ -1,28 +1,32 @@
1
- import { renderButtonSet, renderIconSizeOverridden, renderLink, renderLinkWithTarget, renderMinWidthButton, renderWithIcon, } from './index.js';
2
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';
3
- import { args, argTypes } from './index.js';
4
- const variant = 'primary';
5
- const treatment = 'fill';
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";
6
13
  export default {
7
- component: 'sp-button',
8
- title: 'Button/Primary/Fill',
9
- args: Object.assign(Object.assign({}, args), { variant,
10
- treatment }),
11
- argTypes,
14
+ component: "sp-button",
15
+ title: "Button/Primary/Fill",
16
+ args: {
17
+ ...args,
18
+ variant,
19
+ treatment
20
+ },
21
+ argTypes
12
22
  };
13
23
  export const Default = (props) => renderButtonSet(props);
14
24
  export const withIcon = (props) => renderWithIcon(props);
15
25
  export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
16
26
  export const minWidthButton = (props) => renderMinWidthButton(props);
17
- minWidthButton.story = {
18
- name: 'min-width',
19
- };
27
+ minWidthButton.storyName = "min-width";
20
28
  export const link = (props) => renderLink(props);
21
- link.story = {
22
- name: 'href',
23
- };
29
+ link.storyName = "href";
24
30
  export const linkWithTarget = (props) => renderLinkWithTarget(props);
25
- linkWithTarget.story = {
26
- name: 'href with target="_blank"',
27
- };
28
- //# sourceMappingURL=button-primary-fill.stories.js.map
31
+ linkWithTarget.storyName = 'href with target="_blank"';
32
+ //# sourceMappingURL=button-primary-fill.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"button-primary-fill.stories.js","sourceRoot":"","sources":["button-primary-fill.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,+DAA+D,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,qBAAqB;IAC5B,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAiB,EAAkB,EAAE,CACzD,eAAe,CAAC,KAAK,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAC1D,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAmB,EAAE,CACnD,wBAAwB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAE7E,IAAI,CAAC,KAAK,GAAG;IACT,IAAI,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,2BAA2B;CACpC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n 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.story = {\n name: 'min-width',\n};\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.story = {\n name: 'href',\n};\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.story = {\n name: 'href with target=\"_blank\"',\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-primary-fill.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;AAEA;AAEA,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,OACC;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
+ "names": []
7
+ }
@@ -1,28 +1,31 @@
1
- import { renderButtonSet } from './index.js';
2
- import { args, argTypes } from './index.js';
3
- const variant = 'primary';
4
- const treatment = 'outline';
1
+ import { renderButtonSet } from "./index.js";
2
+ import { args, argTypes } from "./index.js";
3
+ const variant = "primary";
4
+ const treatment = "outline";
5
5
  export default {
6
- component: 'sp-button',
7
- title: 'Button/Primary/Outline/Sizes',
8
- args: Object.assign(Object.assign({}, args), { variant,
9
- treatment }),
10
- argTypes,
6
+ component: "sp-button",
7
+ title: "Button/Primary/Outline/Sizes",
8
+ args: {
9
+ ...args,
10
+ variant,
11
+ treatment
12
+ },
13
+ argTypes
11
14
  };
12
- export const s = (args) => renderButtonSet(args);
15
+ export const s = (args2) => renderButtonSet(args2);
13
16
  s.args = {
14
- size: 's',
17
+ size: "s"
15
18
  };
16
- export const m = (args) => renderButtonSet(args);
19
+ export const m = (args2) => renderButtonSet(args2);
17
20
  m.args = {
18
- size: 'm',
21
+ size: "m"
19
22
  };
20
- export const l = (args) => renderButtonSet(args);
23
+ export const l = (args2) => renderButtonSet(args2);
21
24
  l.args = {
22
- size: 'l',
25
+ size: "l"
23
26
  };
24
- export const XL = (args) => renderButtonSet(args);
27
+ export const XL = (args2) => renderButtonSet(args2);
25
28
  XL.args = {
26
- size: 'xl',
29
+ size: "xl"
27
30
  };
28
- //# sourceMappingURL=button-primary-outline-sizes.stories.js.map
31
+ //# sourceMappingURL=button-primary-outline-sizes.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"button-primary-outline-sizes.stories.js","sourceRoot":"","sources":["button-primary-outline-sizes.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAc,eAAe,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,8BAA8B;IACrC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC9E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;CACb,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { 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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-primary-outline-sizes.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'primary';\nconst treatment = 'outline';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Primary/Outline/Sizes',\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtonSet(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtonSet(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtonSet(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtonSet(args);\nXL.args = {\n size: 'xl',\n};\n"],
5
+ "mappings": "AAYA;AACA;AAEA,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,OACC;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAAC,UAAqC,gBAAgB,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
6
+ "names": []
7
+ }
@@ -1,28 +1,32 @@
1
- import { renderButtonSet, renderIconSizeOverridden, renderLink, renderLinkWithTarget, renderMinWidthButton, renderWithIcon, } from './index.js';
2
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-help.js';
3
- import { args, argTypes } from './index.js';
4
- const variant = 'primary';
5
- const treatment = 'outline';
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 = "outline";
6
13
  export default {
7
- component: 'sp-button',
8
- title: 'Button/Primary/Outline',
9
- args: Object.assign(Object.assign({}, args), { variant,
10
- treatment }),
11
- argTypes,
14
+ component: "sp-button",
15
+ title: "Button/Primary/Outline",
16
+ args: {
17
+ ...args,
18
+ variant,
19
+ treatment
20
+ },
21
+ argTypes
12
22
  };
13
23
  export const Default = (props) => renderButtonSet(props);
14
24
  export const withIcon = (props) => renderWithIcon(props);
15
25
  export const iconSizeOverridden = () => renderIconSizeOverridden(variant, treatment);
16
26
  export const minWidthButton = (props) => renderMinWidthButton(props);
17
- minWidthButton.story = {
18
- name: 'min-width',
19
- };
27
+ minWidthButton.storyName = "min-width";
20
28
  export const link = (props) => renderLink(props);
21
- link.story = {
22
- name: 'href',
23
- };
29
+ link.storyName = "href";
24
30
  export const linkWithTarget = (props) => renderLinkWithTarget(props);
25
- linkWithTarget.story = {
26
- name: 'href with target="_blank"',
27
- };
28
- //# sourceMappingURL=button-primary-outline.stories.js.map
31
+ linkWithTarget.storyName = 'href with target="_blank"';
32
+ //# sourceMappingURL=button-primary-outline.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"button-primary-outline.stories.js","sourceRoot":"","sources":["button-primary-outline.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,+DAA+D,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,wBAAwB;IAC/B,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAiB,EAAkB,EAAE,CACzD,eAAe,CAAC,KAAK,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAC1D,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAmB,EAAE,CACnD,wBAAwB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAE7E,IAAI,CAAC,KAAK,GAAG;IACT,IAAI,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAiB,EAAkB,EAAE,CAChE,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,2BAA2B;CACpC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n 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.story = {\n name: 'min-width',\n};\n\nexport const link = (props: Properties): TemplateResult => renderLink(props);\n\nlink.story = {\n name: 'href',\n};\n\nexport const linkWithTarget = (props: Properties): TemplateResult =>\n renderLinkWithTarget(props);\n\nlinkWithTarget.story = {\n name: 'href with target=\"_blank\"',\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-primary-outline.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport {\n renderButtonSet,\n 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;AAEA;AAEA,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,OACC;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
+ "names": []
7
+ }
@@ -1,28 +1,31 @@
1
- import { renderButtonSet } from './index.js';
2
- import { args, argTypes } from './index.js';
3
- const variant = 'secondary';
4
- const treatment = 'fill';
1
+ import { renderButtonSet } from "./index.js";
2
+ import { args, argTypes } from "./index.js";
3
+ const variant = "secondary";
4
+ const treatment = "fill";
5
5
  export default {
6
- component: 'sp-button',
7
- title: 'Button/Secondary/Fill/Sizes',
8
- args: Object.assign(Object.assign({}, args), { variant,
9
- treatment }),
10
- argTypes,
6
+ component: "sp-button",
7
+ title: "Button/Secondary/Fill/Sizes",
8
+ args: {
9
+ ...args,
10
+ variant,
11
+ treatment
12
+ },
13
+ argTypes
11
14
  };
12
- export const s = (args) => renderButtonSet(args);
15
+ export const s = (args2) => renderButtonSet(args2);
13
16
  s.args = {
14
- size: 's',
17
+ size: "s"
15
18
  };
16
- export const m = (args) => renderButtonSet(args);
19
+ export const m = (args2) => renderButtonSet(args2);
17
20
  m.args = {
18
- size: 'm',
21
+ size: "m"
19
22
  };
20
- export const l = (args) => renderButtonSet(args);
23
+ export const l = (args2) => renderButtonSet(args2);
21
24
  l.args = {
22
- size: 'l',
25
+ size: "l"
23
26
  };
24
- export const XL = (args) => renderButtonSet(args);
27
+ export const XL = (args2) => renderButtonSet(args2);
25
28
  XL.args = {
26
- size: 'xl',
29
+ size: "xl"
27
30
  };
28
- //# sourceMappingURL=button-secondary-fill-sizes.stories.js.map
31
+ //# sourceMappingURL=button-secondary-fill-sizes.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"button-secondary-fill-sizes.stories.js","sourceRoot":"","sources":["button-secondary-fill-sizes.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAc,eAAe,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,GAAG,WAAW,CAAC;AAC5B,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,6BAA6B;IACpC,IAAI,kCACG,IAAI,KACP,OAAO;QACP,SAAS,GACZ;IACD,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC9E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;CACb,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'secondary';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Secondary/Fill/Sizes',\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtonSet(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtonSet(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtonSet(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtonSet(args);\nXL.args = {\n size: 'xl',\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["button-secondary-fill-sizes.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { Properties, renderButtonSet } from './index.js';\nimport { args, argTypes } from './index.js';\n\nconst variant = 'secondary';\nconst treatment = 'fill';\n\nexport default {\n component: 'sp-button',\n title: 'Button/Secondary/Fill/Sizes',\n args: {\n ...args,\n variant,\n treatment,\n },\n argTypes,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtonSet(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtonSet(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtonSet(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtonSet(args);\nXL.args = {\n size: 'xl',\n};\n"],
5
+ "mappings": "AAYA;AACA;AAEA,MAAM,UAAU;AAChB,MAAM,YAAY;AAElB,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,OACC;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,UAAqC,gBAAgB,KAAI;AAC3E,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAAC,UAAqC,gBAAgB,KAAI;AAC5E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
6
+ "names": []
7
+ }