@spectrum-web-components/action-button 0.9.0 → 0.9.1-devmode.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/package.json +23 -10
  2. package/sp-action-button.dev.js +3 -0
  3. package/sp-action-button.dev.js.map +7 -0
  4. package/sp-action-button.js +3 -14
  5. package/sp-action-button.js.map +7 -1
  6. package/src/ActionButton.dev.js +172 -0
  7. package/src/ActionButton.dev.js.map +7 -0
  8. package/src/ActionButton.js +152 -182
  9. package/src/ActionButton.js.map +7 -1
  10. package/src/action-button.css.dev.js +426 -0
  11. package/src/action-button.css.dev.js.map +7 -0
  12. package/src/action-button.css.js +3 -14
  13. package/src/action-button.css.js.map +7 -1
  14. package/src/index.dev.js +2 -0
  15. package/src/index.dev.js.map +7 -0
  16. package/src/index.js +2 -13
  17. package/src/index.js.map +7 -1
  18. package/src/spectrum-action-button.css.dev.js +394 -0
  19. package/src/spectrum-action-button.css.dev.js.map +7 -0
  20. package/src/spectrum-action-button.css.js +3 -14
  21. package/src/spectrum-action-button.css.js.map +7 -1
  22. package/stories/action-button-black-quiet.stories.js +19 -19
  23. package/stories/action-button-black-quiet.stories.js.map +7 -1
  24. package/stories/action-button-black.stories.js +15 -15
  25. package/stories/action-button-black.stories.js.map +7 -1
  26. package/stories/action-button-emphasized-quiet.stories.js +16 -16
  27. package/stories/action-button-emphasized-quiet.stories.js.map +7 -1
  28. package/stories/action-button-emphasized.stories.js +12 -12
  29. package/stories/action-button-emphasized.stories.js.map +7 -1
  30. package/stories/action-button-quiet.stories.js +12 -12
  31. package/stories/action-button-quiet.stories.js.map +7 -1
  32. package/stories/action-button-standard.stories.js +8 -8
  33. package/stories/action-button-standard.stories.js.map +7 -1
  34. package/stories/action-button-white-quiet.stories.js +19 -19
  35. package/stories/action-button-white-quiet.stories.js.map +7 -1
  36. package/stories/action-button-white.stories.js +15 -15
  37. package/stories/action-button-white.stories.js.map +7 -1
  38. package/stories/action-button.stories.js +19 -31
  39. package/stories/action-button.stories.js.map +7 -1
  40. package/stories/index.js +50 -39
  41. package/stories/index.js.map +7 -1
  42. package/test/action-button-black-quiet.test-vrt.js +4 -15
  43. package/test/action-button-black-quiet.test-vrt.js.map +7 -1
  44. package/test/action-button-black.test-vrt.js +4 -15
  45. package/test/action-button-black.test-vrt.js.map +7 -1
  46. package/test/action-button-emphasized-quiet.test-vrt.js +4 -15
  47. package/test/action-button-emphasized-quiet.test-vrt.js.map +7 -1
  48. package/test/action-button-emphasized.test-vrt.js +4 -15
  49. package/test/action-button-emphasized.test-vrt.js.map +7 -1
  50. package/test/action-button-quiet.test-vrt.js +4 -15
  51. package/test/action-button-quiet.test-vrt.js.map +7 -1
  52. package/test/action-button-standard.test-vrt.js +4 -15
  53. package/test/action-button-standard.test-vrt.js.map +7 -1
  54. package/test/action-button-white-quiet.test-vrt.js +4 -15
  55. package/test/action-button-white-quiet.test-vrt.js.map +7 -1
  56. package/test/action-button-white.test-vrt.js +4 -15
  57. package/test/action-button-white.test-vrt.js.map +7 -1
  58. package/test/action-button.test-vrt.js +4 -15
  59. package/test/action-button.test-vrt.js.map +7 -1
  60. package/test/action-button.test.js +105 -110
  61. package/test/action-button.test.js.map +7 -1
  62. package/test/benchmark/basic-test.js +5 -16
  63. package/test/benchmark/basic-test.js.map +7 -1
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-standard.stories.js","sourceRoot":"","sources":["action-button-standard.stories.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,wBAAwB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,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 type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Standard',\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-standard.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 type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Standard',\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n};\n"],
5
+ "mappings": "AAaA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
6
+ "names": []
7
+ }
@@ -1,34 +1,34 @@
1
- import { makeOverBackground } from '../../button/stories/index.js';
2
- import { renderButtons } from './index.js';
1
+ import { makeOverBackground } from "../../button/stories/index.js";
2
+ import { renderButtons } from "./index.js";
3
3
  export default {
4
- component: 'sp-action-button',
5
- title: 'Action Button/Static White Quiet',
6
- decorators: [makeOverBackground()],
4
+ component: "sp-action-button",
5
+ title: "Action Button/Static White Quiet",
6
+ decorators: [makeOverBackground()]
7
7
  };
8
- const variant = 'white';
8
+ const variant = "white";
9
9
  const quiet = true;
10
10
  export const s = (args) => renderButtons(args);
11
11
  s.args = {
12
- size: 's',
13
- quiet,
14
- variant,
12
+ size: "s",
13
+ quiet,
14
+ variant
15
15
  };
16
16
  export const m = (args) => renderButtons(args);
17
17
  m.args = {
18
- size: 'm',
19
- quiet,
20
- variant,
18
+ size: "m",
19
+ quiet,
20
+ variant
21
21
  };
22
22
  export const l = (args) => renderButtons(args);
23
23
  l.args = {
24
- size: 'l',
25
- quiet,
26
- variant,
24
+ size: "l",
25
+ quiet,
26
+ variant
27
27
  };
28
28
  export const XL = (args) => renderButtons(args);
29
29
  XL.args = {
30
- size: 'xl',
31
- quiet,
32
- variant,
30
+ size: "xl",
31
+ quiet,
32
+ variant
33
33
  };
34
- //# sourceMappingURL=action-button-white-quiet.stories.js.map
34
+ //# sourceMappingURL=action-button-white-quiet.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-white-quiet.stories.js","sourceRoot":"","sources":["action-button-white-quiet.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,kCAAkC;IACzC,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;IACV,KAAK;IACL,OAAO;CACV,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 { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static White Quiet',\n decorators: [makeOverBackground()],\n};\n\nconst variant = 'white';\nconst quiet = true;\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n quiet,\n variant,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n quiet,\n variant,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n quiet,\n variant,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n quiet,\n variant,\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-white-quiet.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static White Quiet',\n decorators: [makeOverBackground()],\n};\n\nconst variant = 'white';\nconst quiet = true;\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n quiet,\n variant,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n quiet,\n variant,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n quiet,\n variant,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n quiet,\n variant,\n};\n"],
5
+ "mappings": "AAYA;AAEA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY,CAAC,mBAAmB,CAAC;AACrC;AAEA,MAAM,UAAU;AAChB,MAAM,QAAQ;AAEP,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AAAA,EACA;AACJ;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AAAA,EACA;AACJ;",
6
+ "names": []
7
+ }
@@ -1,29 +1,29 @@
1
- import { makeOverBackground } from '../../button/stories/index.js';
2
- import { renderButtons } from './index.js';
1
+ import { makeOverBackground } from "../../button/stories/index.js";
2
+ import { renderButtons } from "./index.js";
3
3
  export default {
4
- component: 'sp-action-button',
5
- title: 'Action Button/Static White',
6
- decorators: [makeOverBackground()],
4
+ component: "sp-action-button",
5
+ title: "Action Button/Static White",
6
+ decorators: [makeOverBackground()]
7
7
  };
8
- const variant = 'white';
8
+ const variant = "white";
9
9
  export const s = (args) => renderButtons(args);
10
10
  s.args = {
11
- size: 's',
12
- variant,
11
+ size: "s",
12
+ variant
13
13
  };
14
14
  export const m = (args) => renderButtons(args);
15
15
  m.args = {
16
- size: 'm',
17
- variant,
16
+ size: "m",
17
+ variant
18
18
  };
19
19
  export const l = (args) => renderButtons(args);
20
20
  l.args = {
21
- size: 'l',
22
- variant,
21
+ size: "l",
22
+ variant
23
23
  };
24
24
  export const XL = (args) => renderButtons(args);
25
25
  XL.args = {
26
- size: 'xl',
27
- variant,
26
+ size: "xl",
27
+ variant
28
28
  };
29
- //# sourceMappingURL=action-button-white.stories.js.map
29
+ //# sourceMappingURL=action-button-white.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-white.stories.js","sourceRoot":"","sources":["action-button-white.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,4BAA4B;IACnC,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;IACV,OAAO;CACV,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 { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static White',\n decorators: [makeOverBackground()],\n};\n\nconst variant = 'white';\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n variant,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n variant,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n variant,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n variant,\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-white.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static White',\n decorators: [makeOverBackground()],\n};\n\nconst variant = 'white';\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n variant,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n variant,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n variant,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n variant,\n};\n"],
5
+ "mappings": "AAYA;AAEA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY,CAAC,mBAAmB,CAAC;AACrC;AAEA,MAAM,UAAU;AAET,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AACJ;",
6
+ "names": []
7
+ }
@@ -1,28 +1,16 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { html } from '@spectrum-web-components/base';
13
- import '@spectrum-web-components/action-group/sp-action-group.js';
14
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';
15
- import { renderButton } from './index.js';
16
- import '../src';
17
- import '../sp-action-button.js';
1
+ import { html } from "@spectrum-web-components/base";
2
+ import "@spectrum-web-components/action-group/sp-action-group.js";
3
+ import "@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js";
4
+ import { renderButton } from "./index.js";
5
+ import "@spectrum-web-components/action-button/sp-action-button.js";
18
6
  export default {
19
- component: 'sp-action-button',
20
- title: 'Action Button',
7
+ component: "sp-action-button",
8
+ title: "Action Button"
21
9
  };
22
10
  function renderButtonsSelected(args) {
23
- const disabled = Object.assign({}, args, { disabled: true });
24
- const selected = Object.assign({}, args, { selected: true });
25
- return html `
11
+ const disabled = Object.assign({}, args, { disabled: true });
12
+ const selected = Object.assign({}, args, { selected: true });
13
+ return html`
26
14
  <sp-action-group
27
15
  ?emphasized="${!!args.emphasized}"
28
16
  ?quiet="${!!args.quiet}"
@@ -34,13 +22,13 @@ function renderButtonsSelected(args) {
34
22
  }
35
23
  export const toggles = (args) => renderButtonsSelected(args);
36
24
  toggles.args = {
37
- toggles: true,
38
- icon: html `
25
+ toggles: true,
26
+ icon: html`
39
27
  <sp-icon-edit hidden slot="icon"></sp-icon-edit>
40
- `,
28
+ `
41
29
  };
42
30
  export const iconSizeOverridden = (args) => {
43
- return html `
31
+ return html`
44
32
  ${renderButton(args)}
45
33
  <h1>For testing purposes only</h1>
46
34
  <p>
@@ -51,10 +39,10 @@ export const iconSizeOverridden = (args) => {
51
39
  `;
52
40
  };
53
41
  iconSizeOverridden.args = {
54
- label: '',
55
- size: 'xl',
56
- icon: html `
42
+ label: "",
43
+ size: "xl",
44
+ icon: html`
57
45
  <sp-icon-edit slot="icon" size="s"></sp-icon-edit>
58
- `,
46
+ `
59
47
  };
60
- //# sourceMappingURL=action-button.stories.js.map
48
+ //# sourceMappingURL=action-button.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button.stories.js","sourceRoot":"","sources":["action-button.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AACrE,OAAO,0DAA0D,CAAC;AAClE,OAAO,+DAA+D,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,QAAQ,CAAC;AAChB,OAAO,wBAAwB,CAAC;AAEhC,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,eAAe;CACzB,CAAC;AAEF,SAAS,qBAAqB,CAAC,IAAgB;IAC3C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7D,OAAO,IAAI,CAAA;;2BAEY,CAAC,CAAC,IAAI,CAAC,UAAU;sBACtB,CAAC,CAAC,IAAI,CAAC,KAAK;;cAEpB,YAAY,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC;cAC5C,YAAY,CAAC,QAAQ,CAAC;;KAE/B,CAAC;AACN,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAgB,EAAkB,EAAE,CACxD,qBAAqB,CAAC,IAAI,CAAC,CAAC;AAChC,OAAO,CAAC,IAAI,GAAG;IACX,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,IAAI,CAAA;;KAET;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAgB,EAAkB,EAAE;IACnE,OAAO,IAAI,CAAA;UACL,YAAY,CAAC,IAAI,CAAC;;;;;;;KAOvB,CAAC;AACN,CAAC,CAAC;AACF,kBAAkB,CAAC,IAAI,GAAG;IACtB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI,CAAA;;KAET;CACJ,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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\nimport type { Properties } from './index.js';\nimport { renderButton } from './index.js';\n\nimport '../src';\nimport '../sp-action-button.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button',\n};\n\nfunction renderButtonsSelected(args: Properties): TemplateResult {\n const disabled = Object.assign({}, args, { disabled: true });\n const selected = Object.assign({}, args, { selected: true });\n return html`\n <sp-action-group\n ?emphasized=\"${!!args.emphasized}\"\n ?quiet=\"${!!args.quiet}\"\n >\n ${renderButton(args)} ${renderButton(selected)}\n ${renderButton(disabled)}\n </sp-action-group>\n `;\n}\n\nexport const toggles = (args: Properties): TemplateResult =>\n renderButtonsSelected(args);\ntoggles.args = {\n toggles: true,\n icon: html`\n <sp-icon-edit hidden slot=\"icon\"></sp-icon-edit>\n `,\n};\n\nexport const iconSizeOverridden = (args: Properties): TemplateResult => {\n return html`\n ${renderButton(args)}\n <h1>For testing purposes only</h1>\n <p>\n This is a test to ensure that sizing the icon will still work when\n it's in the scope of a parent element. You shouldn't normally do\n this as it deviates from the Spectrum design specification.\n </p>\n `;\n};\niconSizeOverridden.args = {\n label: '',\n size: 'xl',\n icon: html`\n <sp-icon-edit slot=\"icon\" size=\"s\"></sp-icon-edit>\n `,\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button.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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\nimport type { Properties } from './index.js';\nimport { renderButton } from './index.js';\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button',\n};\n\nfunction renderButtonsSelected(args: Properties): TemplateResult {\n const disabled = Object.assign({}, args, { disabled: true });\n const selected = Object.assign({}, args, { selected: true });\n return html`\n <sp-action-group\n ?emphasized=\"${!!args.emphasized}\"\n ?quiet=\"${!!args.quiet}\"\n >\n ${renderButton(args)} ${renderButton(selected)}\n ${renderButton(disabled)}\n </sp-action-group>\n `;\n}\n\nexport const toggles = (args: Properties): TemplateResult =>\n renderButtonsSelected(args);\ntoggles.args = {\n toggles: true,\n icon: html`\n <sp-icon-edit hidden slot=\"icon\"></sp-icon-edit>\n `,\n};\n\nexport const iconSizeOverridden = (args: Properties): TemplateResult => {\n return html`\n ${renderButton(args)}\n <h1>For testing purposes only</h1>\n <p>\n This is a test to ensure that sizing the icon will still work when\n it's in the scope of a parent element. You shouldn't normally do\n this as it deviates from the Spectrum design specification.\n </p>\n `;\n};\niconSizeOverridden.args = {\n label: '',\n size: 'xl',\n icon: html`\n <sp-icon-edit slot=\"icon\" size=\"s\"></sp-icon-edit>\n `,\n};\n"],
5
+ "mappings": "AAWA;AACA;AACA;AAEA;AAEA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEA,+BAA+B,MAAkC;AAC7D,QAAM,WAAW,OAAO,OAAO,CAAC,GAAG,MAAM,EAAE,UAAU,KAAK,CAAC;AAC3D,QAAM,WAAW,OAAO,OAAO,CAAC,GAAG,MAAM,EAAE,UAAU,KAAK,CAAC;AAC3D,SAAO;AAAA;AAAA,2BAEgB,CAAC,CAAC,KAAK;AAAA,sBACZ,CAAC,CAAC,KAAK;AAAA;AAAA,cAEf,aAAa,IAAI,KAAK,aAAa,QAAQ;AAAA,cAC3C,aAAa,QAAQ;AAAA;AAAA;AAGnC;AAEO,aAAM,UAAU,CAAC,SACpB,sBAAsB,IAAI;AAC9B,QAAQ,OAAO;AAAA,EACX,SAAS;AAAA,EACT,MAAM;AAAA;AAAA;AAGV;AAEO,aAAM,qBAAqB,CAAC,SAAqC;AACpE,SAAO;AAAA,UACD,aAAa,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ3B;AACA,mBAAmB,OAAO;AAAA,EACtB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA;AAAA;AAGV;",
6
+ "names": []
7
+ }
package/stories/index.js CHANGED
@@ -1,23 +1,11 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { html } from '@spectrum-web-components/base';
13
- import { ifDefined } from '@spectrum-web-components/base/src/directives.js';
14
- import '@spectrum-web-components/action-group/sp-action-group.js';
15
- import '@spectrum-web-components/icon/sp-icon.js';
16
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';
17
- import '../src';
18
- import '../sp-action-button.js';
1
+ import { html } from "@spectrum-web-components/base";
2
+ import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
3
+ import "@spectrum-web-components/action-group/sp-action-group.js";
4
+ import "@spectrum-web-components/icon/sp-icon.js";
5
+ import "@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js";
6
+ import "@spectrum-web-components/action-button/sp-action-button.js";
19
7
  export function renderButton(properties) {
20
- return html `
8
+ return html`
21
9
  <sp-action-button
22
10
  ?quiet="${!!properties.quiet}"
23
11
  ?emphasized="${!!properties.emphasized}"
@@ -25,7 +13,7 @@ export function renderButton(properties) {
25
13
  ?disabled=${!!properties.disabled}
26
14
  ?selected=${!!properties.selected}
27
15
  ?toggles=${!!properties.toggles}
28
- size=${properties.size || 'm'}
16
+ size=${properties.size || "m"}
29
17
  ?hold-affordance=${!!properties.holdAffordance}
30
18
  ?active=${!!properties.active}
31
19
  >
@@ -34,38 +22,61 @@ export function renderButton(properties) {
34
22
  `;
35
23
  }
36
24
  function renderGroup(properties) {
37
- const label = 'Edit';
38
- const holdAffordance = true;
39
- const icon = html `
25
+ const label = "Edit";
26
+ const holdAffordance = true;
27
+ const icon = html`
40
28
  <sp-icon-edit slot="icon"></sp-icon-edit>
41
29
  `;
42
- return html `
30
+ return html`
43
31
  <sp-action-group
44
32
  ?quiet="${!!properties.quiet}"
45
33
  ?emphasized="${!!properties.emphasized}"
46
34
  >
47
- ${renderButton(Object.assign(Object.assign({}, properties), { label }))}
48
- ${renderButton(Object.assign(Object.assign({}, properties), { label,
49
- icon }))}
50
- ${renderButton(Object.assign(Object.assign({}, properties), { icon }))}
51
- ${renderButton(Object.assign(Object.assign({}, properties), { icon,
52
- holdAffordance }))}
35
+ ${renderButton({
36
+ ...properties,
37
+ label
38
+ })}
39
+ ${renderButton({
40
+ ...properties,
41
+ label,
42
+ icon
43
+ })}
44
+ ${renderButton({
45
+ ...properties,
46
+ icon
47
+ })}
48
+ ${renderButton({
49
+ ...properties,
50
+ icon,
51
+ holdAffordance
52
+ })}
53
53
  </sp-action-group>
54
54
  `;
55
55
  }
56
56
  export function renderButtons(properties) {
57
- const selected = true;
58
- const disabled = true;
59
- return html `
57
+ const selected = true;
58
+ const disabled = true;
59
+ return html`
60
60
  <div
61
61
  style="display: flex; flex-direction: column; gap: var(--spectrum-global-dimension-size-100);"
62
62
  >
63
- ${renderGroup(Object.assign({}, properties))}
64
- ${renderGroup(Object.assign(Object.assign({}, properties), { selected }))}
65
- ${renderGroup(Object.assign(Object.assign({}, properties), { disabled }))}
66
- ${renderGroup(Object.assign(Object.assign({}, properties), { disabled,
67
- selected }))}
63
+ ${renderGroup({
64
+ ...properties
65
+ })}
66
+ ${renderGroup({
67
+ ...properties,
68
+ selected
69
+ })}
70
+ ${renderGroup({
71
+ ...properties,
72
+ disabled
73
+ })}
74
+ ${renderGroup({
75
+ ...properties,
76
+ disabled,
77
+ selected
78
+ })}
68
79
  </div>
69
80
  `;
70
81
  }
71
- //# sourceMappingURL=index.js.map
82
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAC5E,OAAO,0DAA0D,CAAC;AAClE,OAAO,0CAA0C,CAAC;AAClD,OAAO,+DAA+D,CAAC;AAEvE,OAAO,QAAQ,CAAC;AAChB,OAAO,wBAAwB,CAAC;AAiBhC,MAAM,UAAU,YAAY,CAAC,UAAsB;IAC/C,OAAO,IAAI,CAAA;;sBAEO,CAAC,CAAC,UAAU,CAAC,KAAK;2BACb,CAAC,CAAC,UAAU,CAAC,UAAU;uBAC3B,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC;wBAC5B,CAAC,CAAC,UAAU,CAAC,QAAQ;wBACrB,CAAC,CAAC,UAAU,CAAC,QAAQ;uBACtB,CAAC,CAAC,UAAU,CAAC,OAAO;mBACxB,UAAU,CAAC,IAAI,IAAI,GAAG;+BACV,CAAC,CAAC,UAAU,CAAC,cAAc;sBACpC,CAAC,CAAC,UAAU,CAAC,MAAM;;cAE3B,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,KAAK;;KAE3C,CAAC;AACN,CAAC;AAED,SAAS,WAAW,CAAC,UAAsB;IACvC,MAAM,KAAK,GAAG,MAAM,CAAC;IACrB,MAAM,cAAc,GAAG,IAAI,CAAC;IAC5B,MAAM,IAAI,GAAG,IAAI,CAAA;;KAEhB,CAAC;IACF,OAAO,IAAI,CAAA;;sBAEO,CAAC,CAAC,UAAU,CAAC,KAAK;2BACb,CAAC,CAAC,UAAU,CAAC,UAAU;;cAEpC,YAAY,iCACP,UAAU,KACb,KAAK,IACP;cACA,YAAY,iCACP,UAAU,KACb,KAAK;QACL,IAAI,IACN;cACA,YAAY,iCACP,UAAU,KACb,IAAI,IACN;cACA,YAAY,iCACP,UAAU,KACb,IAAI;QACJ,cAAc,IAChB;;KAET,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAAsB;IAChD,MAAM,QAAQ,GAAG,IAAI,CAAC;IACtB,MAAM,QAAQ,GAAG,IAAI,CAAC;IACtB,OAAO,IAAI,CAAA;;;;cAID,WAAW,mBACN,UAAU,EACf;cACA,WAAW,iCACN,UAAU,KACb,QAAQ,IACV;cACA,WAAW,iCACN,UAAU,KACb,QAAQ,IACV;cACA,WAAW,iCACN,UAAU,KACb,QAAQ;QACR,QAAQ,IACV;;KAET,CAAC;AACN,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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\n\nimport '../src';\nimport '../sp-action-button.js';\n\nexport interface Properties {\n active?: boolean;\n quiet?: boolean;\n disabled?: boolean;\n selected?: boolean;\n toggles?: boolean;\n emphasized?: boolean;\n size?: 's' | 'm' | 'l' | 'xl';\n variant?: 'white' | 'black';\n holdAffordance?: boolean;\n icon?: TemplateResult;\n label?: string;\n [prop: string]: unknown;\n}\n\nexport function renderButton(properties: Properties): TemplateResult {\n return html`\n <sp-action-button\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n variant=\"${ifDefined(properties.variant)}\"\n ?disabled=${!!properties.disabled}\n ?selected=${!!properties.selected}\n ?toggles=${!!properties.toggles}\n size=${properties.size || 'm'}\n ?hold-affordance=${!!properties.holdAffordance}\n ?active=${!!properties.active}\n >\n ${properties.icon}${properties.label}\n </sp-action-button>\n `;\n}\n\nfunction renderGroup(properties: Properties): TemplateResult {\n const label = 'Edit';\n const holdAffordance = true;\n const icon = html`\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n `;\n return html`\n <sp-action-group\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n >\n ${renderButton({\n ...properties,\n label,\n })}\n ${renderButton({\n ...properties,\n label,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n holdAffordance,\n })}\n </sp-action-group>\n `;\n}\n\nexport function renderButtons(properties: Properties): TemplateResult {\n const selected = true;\n const disabled = true;\n return html`\n <div\n style=\"display: flex; flex-direction: column; gap: var(--spectrum-global-dimension-size-100);\"\n >\n ${renderGroup({\n ...properties,\n })}\n ${renderGroup({\n ...properties,\n selected,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n selected,\n })}\n </div>\n `;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\n\nexport interface Properties {\n active?: boolean;\n quiet?: boolean;\n disabled?: boolean;\n selected?: boolean;\n toggles?: boolean;\n emphasized?: boolean;\n size?: 's' | 'm' | 'l' | 'xl';\n variant?: 'white' | 'black';\n holdAffordance?: boolean;\n icon?: TemplateResult;\n label?: string;\n [prop: string]: unknown;\n}\n\nexport function renderButton(properties: Properties): TemplateResult {\n return html`\n <sp-action-button\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n variant=\"${ifDefined(properties.variant)}\"\n ?disabled=${!!properties.disabled}\n ?selected=${!!properties.selected}\n ?toggles=${!!properties.toggles}\n size=${properties.size || 'm'}\n ?hold-affordance=${!!properties.holdAffordance}\n ?active=${!!properties.active}\n >\n ${properties.icon}${properties.label}\n </sp-action-button>\n `;\n}\n\nfunction renderGroup(properties: Properties): TemplateResult {\n const label = 'Edit';\n const holdAffordance = true;\n const icon = html`\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n `;\n return html`\n <sp-action-group\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n >\n ${renderButton({\n ...properties,\n label,\n })}\n ${renderButton({\n ...properties,\n label,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n holdAffordance,\n })}\n </sp-action-group>\n `;\n}\n\nexport function renderButtons(properties: Properties): TemplateResult {\n const selected = true;\n const disabled = true;\n return html`\n <div\n style=\"display: flex; flex-direction: column; gap: var(--spectrum-global-dimension-size-100);\"\n >\n ${renderGroup({\n ...properties,\n })}\n ${renderGroup({\n ...properties,\n selected,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n selected,\n })}\n </div>\n `;\n}\n"],
5
+ "mappings": "AAYA;AACA;AACA;AACA;AACA;AAEA;AAiBO,6BAAsB,YAAwC;AACjE,SAAO;AAAA;AAAA,sBAEW,CAAC,CAAC,WAAW;AAAA,2BACR,CAAC,CAAC,WAAW;AAAA,uBACjB,UAAU,WAAW,OAAO;AAAA,wBAC3B,CAAC,CAAC,WAAW;AAAA,wBACb,CAAC,CAAC,WAAW;AAAA,uBACd,CAAC,CAAC,WAAW;AAAA,mBACjB,WAAW,QAAQ;AAAA,+BACP,CAAC,CAAC,WAAW;AAAA,sBACtB,CAAC,CAAC,WAAW;AAAA;AAAA,cAErB,WAAW,OAAO,WAAW;AAAA;AAAA;AAG3C;AAEA,qBAAqB,YAAwC;AACzD,QAAM,QAAQ;AACd,QAAM,iBAAiB;AACvB,QAAM,OAAO;AAAA;AAAA;AAGb,SAAO;AAAA;AAAA,sBAEW,CAAC,CAAC,WAAW;AAAA,2BACR,CAAC,CAAC,WAAW;AAAA;AAAA,cAE1B,aAAa;AAAA,OACR;AAAA,IACH;AAAA,EACJ,CAAC;AAAA,cACC,aAAa;AAAA,OACR;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC;AAAA,cACC,aAAa;AAAA,OACR;AAAA,IACH;AAAA,EACJ,CAAC;AAAA,cACC,aAAa;AAAA,OACR;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC;AAAA;AAAA;AAGb;AAEO,8BAAuB,YAAwC;AAClE,QAAM,WAAW;AACjB,QAAM,WAAW;AACjB,SAAO;AAAA;AAAA;AAAA;AAAA,cAIG,YAAY;AAAA,OACP;AAAA,EACP,CAAC;AAAA,cACC,YAAY;AAAA,OACP;AAAA,IACH;AAAA,EACJ,CAAC;AAAA,cACC,YAAY;AAAA,OACP;AAAA,IACH;AAAA,EACJ,CAAC;AAAA,cACC,YAAY;AAAA,OACP;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC;AAAA;AAAA;AAGb;",
6
+ "names": []
7
+ }
@@ -1,15 +1,4 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/action-button-black-quiet.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('ActionButtonBlackQuietStories', stories);
15
- //# sourceMappingURL=action-button-black-quiet.test-vrt.js.map
1
+ import * as stories from "../stories/action-button-black-quiet.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("ActionButtonBlackQuietStories", stories);
4
+ //# sourceMappingURL=action-button-black-quiet.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-black-quiet.test-vrt.js","sourceRoot":"","sources":["action-button-black-quiet.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,+BAA+B,EAAE,OAAO,CAAC,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*/\n\nimport * as stories from '../stories/action-button-black-quiet.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonBlackQuietStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-black-quiet.test-vrt.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*/\n\nimport * as stories from '../stories/action-button-black-quiet.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonBlackQuietStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,iCAAiC,OAAO;",
6
+ "names": []
7
+ }
@@ -1,15 +1,4 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/action-button-black.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('ActionButtonBlackStories', stories);
15
- //# sourceMappingURL=action-button-black.test-vrt.js.map
1
+ import * as stories from "../stories/action-button-black.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("ActionButtonBlackStories", stories);
4
+ //# sourceMappingURL=action-button-black.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-black.test-vrt.js","sourceRoot":"","sources":["action-button-black.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,0BAA0B,EAAE,OAAO,CAAC,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*/\n\nimport * as stories from '../stories/action-button-black.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonBlackStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-black.test-vrt.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*/\n\nimport * as stories from '../stories/action-button-black.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonBlackStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,4BAA4B,OAAO;",
6
+ "names": []
7
+ }
@@ -1,15 +1,4 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/action-button-emphasized-quiet.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('ActionButtonEmphasizedQuietStories', stories);
15
- //# sourceMappingURL=action-button-emphasized-quiet.test-vrt.js.map
1
+ import * as stories from "../stories/action-button-emphasized-quiet.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("ActionButtonEmphasizedQuietStories", stories);
4
+ //# sourceMappingURL=action-button-emphasized-quiet.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-emphasized-quiet.test-vrt.js","sourceRoot":"","sources":["action-button-emphasized-quiet.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,sDAAsD,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,oCAAoC,EAAE,OAAO,CAAC,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*/\n\nimport * as stories from '../stories/action-button-emphasized-quiet.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonEmphasizedQuietStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-emphasized-quiet.test-vrt.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*/\n\nimport * as stories from '../stories/action-button-emphasized-quiet.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonEmphasizedQuietStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,sCAAsC,OAAO;",
6
+ "names": []
7
+ }
@@ -1,15 +1,4 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/action-button-emphasized.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('ActionButtonEmphasizedStories', stories);
15
- //# sourceMappingURL=action-button-emphasized.test-vrt.js.map
1
+ import * as stories from "../stories/action-button-emphasized.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("ActionButtonEmphasizedStories", stories);
4
+ //# sourceMappingURL=action-button-emphasized.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-emphasized.test-vrt.js","sourceRoot":"","sources":["action-button-emphasized.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,+BAA+B,EAAE,OAAO,CAAC,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*/\n\nimport * as stories from '../stories/action-button-emphasized.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonEmphasizedStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-emphasized.test-vrt.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*/\n\nimport * as stories from '../stories/action-button-emphasized.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonEmphasizedStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,iCAAiC,OAAO;",
6
+ "names": []
7
+ }
@@ -1,15 +1,4 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/action-button-quiet.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('ActionButtonQuietStories', stories);
15
- //# sourceMappingURL=action-button-quiet.test-vrt.js.map
1
+ import * as stories from "../stories/action-button-quiet.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("ActionButtonQuietStories", stories);
4
+ //# sourceMappingURL=action-button-quiet.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-quiet.test-vrt.js","sourceRoot":"","sources":["action-button-quiet.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,0BAA0B,EAAE,OAAO,CAAC,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*/\n\nimport * as stories from '../stories/action-button-quiet.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonQuietStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-quiet.test-vrt.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*/\n\nimport * as stories from '../stories/action-button-quiet.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonQuietStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,4BAA4B,OAAO;",
6
+ "names": []
7
+ }
@@ -1,15 +1,4 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/action-button-standard.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('ActionButtonStandardStories', stories);
15
- //# sourceMappingURL=action-button-standard.test-vrt.js.map
1
+ import * as stories from "../stories/action-button-standard.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("ActionButtonStandardStories", stories);
4
+ //# sourceMappingURL=action-button-standard.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"action-button-standard.test-vrt.js","sourceRoot":"","sources":["action-button-standard.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,6BAA6B,EAAE,OAAO,CAAC,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*/\n\nimport * as stories from '../stories/action-button-standard.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonStandardStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["action-button-standard.test-vrt.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*/\n\nimport * as stories from '../stories/action-button-standard.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionButtonStandardStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,+BAA+B,OAAO;",
6
+ "names": []
7
+ }