@spectrum-web-components/infield-button 0.39.4

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 (44) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +122 -0
  3. package/custom-elements.json +119 -0
  4. package/package.json +74 -0
  5. package/sp-infield-button.d.ts +6 -0
  6. package/sp-infield-button.dev.js +4 -0
  7. package/sp-infield-button.dev.js.map +7 -0
  8. package/sp-infield-button.js +2 -0
  9. package/sp-infield-button.js.map +7 -0
  10. package/src/InfieldButton.d.ts +25 -0
  11. package/src/InfieldButton.dev.js +49 -0
  12. package/src/InfieldButton.dev.js.map +7 -0
  13. package/src/InfieldButton.js +6 -0
  14. package/src/InfieldButton.js.map +7 -0
  15. package/src/index.d.ts +1 -0
  16. package/src/index.dev.js +3 -0
  17. package/src/index.dev.js.map +7 -0
  18. package/src/index.js +2 -0
  19. package/src/index.js.map +7 -0
  20. package/src/infield-button.css.d.ts +2 -0
  21. package/src/infield-button.css.dev.js +222 -0
  22. package/src/infield-button.css.dev.js.map +7 -0
  23. package/src/infield-button.css.js +219 -0
  24. package/src/infield-button.css.js.map +7 -0
  25. package/src/spectrum-config.js +60 -0
  26. package/src/spectrum-infield-button.css.d.ts +2 -0
  27. package/src/spectrum-infield-button.css.dev.js +222 -0
  28. package/src/spectrum-infield-button.css.dev.js.map +7 -0
  29. package/src/spectrum-infield-button.css.js +219 -0
  30. package/src/spectrum-infield-button.css.js.map +7 -0
  31. package/stories/index.js +113 -0
  32. package/stories/index.js.map +7 -0
  33. package/stories/infield-button-sizes.stories.js +88 -0
  34. package/stories/infield-button-sizes.stories.js.map +7 -0
  35. package/stories/infield-button.stories.js +45 -0
  36. package/stories/infield-button.stories.js.map +7 -0
  37. package/test/benchmark/basic-test.js +8 -0
  38. package/test/benchmark/basic-test.js.map +7 -0
  39. package/test/infield-button-sizes.test-vrt.js +5 -0
  40. package/test/infield-button-sizes.test-vrt.js.map +7 -0
  41. package/test/infield-button.test-vrt.js +5 -0
  42. package/test/infield-button.test-vrt.js.map +7 -0
  43. package/test/infield-button.test.js +22 -0
  44. package/test/infield-button.test.js.map +7 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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';\n\nimport '@spectrum-web-components/infield-button/sp-infield-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-add.js';\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-chevron75.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport chevronStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';\n\ndocument.adoptedStyleSheets = [\n ...document.adoptedStyleSheets,\n chevronStyles.styleSheet as CSSStyleSheet,\n];\n\nexport type StoryArgs = {\n block?: 'start' | 'end';\n content?: () => TemplateResult;\n disabled?: boolean;\n inline?: 'start' | 'end';\n label?: string;\n size?: 's' | 'm' | 'l' | 'xl';\n quiet?: boolean;\n};\n\nexport const args = {\n block: undefined,\n disabled: false,\n inline: undefined,\n label: 'Add',\n size: undefined,\n quiet: false,\n} as StoryArgs;\n\nexport const argTypes = {\n block: {\n name: 'block',\n type: { name: 'text', required: false },\n description: 'Where to place the button along the block axis.',\n table: {\n type: { summary: '\"start\" | \"end\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['none', 'start', 'end'],\n },\n disabled: {\n name: 'disabled',\n type: { name: 'boolean', required: false },\n description: 'Whether the button is disabled or not.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n inline: {\n name: 'inline',\n type: { name: 'text', required: false },\n description: 'Where to place the button along the inline axis.',\n table: {\n type: { summary: '\"start\" | \"end\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['none', 'start', 'end'],\n },\n size: {\n name: 'size',\n type: { name: 'text', required: false },\n description: 'The t-shit size of the button.',\n table: {\n type: { summary: '\"s\" | \"m\" | \"l\" | \"xl\"' },\n defaultValue: { summary: '' },\n },\n control: 'select',\n options: ['s', 'm', 'l', 'xl'],\n },\n quiet: {\n name: 'quiet',\n type: { name: 'boolean', required: false },\n description: 'Whether the button is quiet or not.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n};\n\nexport const Template = ({\n block,\n content,\n disabled,\n inline,\n label,\n size,\n quiet,\n}: StoryArgs): TemplateResult => {\n return html`\n <sp-infield-button\n block=${ifDefined(block)}\n ?disabled=${disabled}\n inline=${ifDefined(inline)}\n label=${ifDefined(label)}\n size=${ifDefined(size)}\n ?quiet=${quiet}\n >\n ${content\n ? content()\n : html`\n <sp-icon-add></sp-icon-add>\n `}\n </sp-infield-button>\n `;\n};\n\nexport const chevronUp = (): TemplateResult =>\n html`\n <sp-icon-chevron75\n class=\"spectrum-UIIcon-ChevronUp75\"\n ></sp-icon-chevron75>\n `;\nexport const chevronDown = (): TemplateResult =>\n html`\n <sp-icon-chevron75\n class=\"spectrum-UIIcon-ChevronDown75\"\n ></sp-icon-chevron75>\n `;\n"],
5
+ "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,iBAAiB;AAC1B,OAAO,mBAAmB;AAE1B,SAAS,qBAAqB;AAAA,EAC1B,GAAG,SAAS;AAAA,EACZ,cAAc;AAClB;AAYO,aAAM,OAAO;AAAA,EAChB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AACX;AAEO,aAAM,WAAW;AAAA,EACpB,OAAO;AAAA,IACH,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,QAAQ,UAAU,MAAM;AAAA,IACtC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,kBAAkB;AAAA,MACnC,cAAc,EAAE,SAAS,GAAG;AAAA,IAChC;AAAA,IACA,SAAS;AAAA,IACT,SAAS,CAAC,QAAQ,SAAS,KAAK;AAAA,EACpC;AAAA,EACA,UAAU;AAAA,IACN,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,IACzC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,UAAU;AAAA,MAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,IACnC;AAAA,IACA,SAAS;AAAA,MACL,MAAM;AAAA,IACV;AAAA,EACJ;AAAA,EACA,QAAQ;AAAA,IACJ,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,QAAQ,UAAU,MAAM;AAAA,IACtC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,kBAAkB;AAAA,MACnC,cAAc,EAAE,SAAS,GAAG;AAAA,IAChC;AAAA,IACA,SAAS;AAAA,IACT,SAAS,CAAC,QAAQ,SAAS,KAAK;AAAA,EACpC;AAAA,EACA,MAAM;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,QAAQ,UAAU,MAAM;AAAA,IACtC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,yBAAyB;AAAA,MAC1C,cAAc,EAAE,SAAS,GAAG;AAAA,IAChC;AAAA,IACA,SAAS;AAAA,IACT,SAAS,CAAC,KAAK,KAAK,KAAK,IAAI;AAAA,EACjC;AAAA,EACA,OAAO;AAAA,IACH,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,IACzC,aAAa;AAAA,IACb,OAAO;AAAA,MACH,MAAM,EAAE,SAAS,UAAU;AAAA,MAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,IACnC;AAAA,IACA,SAAS;AAAA,MACL,MAAM;AAAA,IACV;AAAA,EACJ;AACJ;AAEO,aAAM,WAAW,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,MAAiC;AAC7B,SAAO;AAAA;AAAA,oBAES,UAAU,KAAK,CAAC;AAAA,wBACZ,QAAQ;AAAA,qBACX,UAAU,MAAM,CAAC;AAAA,oBAClB,UAAU,KAAK,CAAC;AAAA,mBACjB,UAAU,IAAI,CAAC;AAAA,qBACb,KAAK;AAAA;AAAA,cAEZ,UACI,QAAQ,IACR;AAAA;AAAA,mBAEC;AAAA;AAAA;AAGnB;AAEO,aAAM,YAAY,MACrB;AAAA;AAAA;AAAA;AAAA;AAKG,aAAM,cAAc,MACvB;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import {
4
+ args,
5
+ argTypes,
6
+ chevronDown,
7
+ chevronUp,
8
+ Template
9
+ } from "./index.js";
10
+ export default {
11
+ title: "Infield Button/Sizes",
12
+ component: "sp-infield-button",
13
+ argTypes,
14
+ args
15
+ };
16
+ export const s = (args2) => Template(args2);
17
+ s.args = {
18
+ size: "s"
19
+ };
20
+ export const m = (args2) => Template(args2);
21
+ m.args = {
22
+ size: "m"
23
+ };
24
+ export const l = (args2) => Template(args2);
25
+ l.args = {
26
+ size: "l"
27
+ };
28
+ export const XL = (args2) => Template(args2);
29
+ XL.args = {
30
+ size: "xl"
31
+ };
32
+ export const stackedS = () => html`
33
+ ${Template({
34
+ block: "start",
35
+ content: chevronUp,
36
+ size: "s",
37
+ label: "Increase"
38
+ })}
39
+ ${Template({
40
+ block: "end",
41
+ content: chevronDown,
42
+ size: "s",
43
+ label: "Decrease"
44
+ })}
45
+ `;
46
+ export const stackedM = () => html`
47
+ ${Template({
48
+ block: "start",
49
+ content: chevronUp,
50
+ size: "m",
51
+ label: "Increase"
52
+ })}
53
+ ${Template({
54
+ block: "end",
55
+ content: chevronDown,
56
+ size: "m",
57
+ label: "Decrease"
58
+ })}
59
+ `;
60
+ export const stackedL = () => html`
61
+ ${Template({
62
+ block: "start",
63
+ content: chevronUp,
64
+ size: "l",
65
+ label: "Increase"
66
+ })}
67
+ ${Template({
68
+ block: "end",
69
+ content: chevronDown,
70
+ size: "l",
71
+ label: "Decrease"
72
+ })}
73
+ `;
74
+ export const stackedXL = () => html`
75
+ ${Template({
76
+ block: "start",
77
+ content: chevronUp,
78
+ size: "xl",
79
+ label: "Increase"
80
+ })}
81
+ ${Template({
82
+ block: "end",
83
+ content: chevronDown,
84
+ size: "xl",
85
+ label: "Decrease"
86
+ })}
87
+ `;
88
+ //# sourceMappingURL=infield-button-sizes.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["infield-button-sizes.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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';\n\nimport {\n args,\n argTypes,\n chevronDown,\n chevronUp,\n StoryArgs,\n Template,\n} from './index.js';\n\nexport default {\n title: 'Infield Button/Sizes',\n component: 'sp-infield-button',\n argTypes,\n args,\n};\n\nexport const s = (args: StoryArgs): TemplateResult => Template(args);\ns.args = {\n size: 's',\n};\nexport const m = (args: StoryArgs): TemplateResult => Template(args);\nm.args = {\n size: 'm',\n};\nexport const l = (args: StoryArgs): TemplateResult => Template(args);\nl.args = {\n size: 'l',\n};\nexport const XL = (args: StoryArgs): TemplateResult => Template(args);\nXL.args = {\n size: 'xl',\n};\n\nexport const stackedS = (): TemplateResult => html`\n ${Template({\n block: 'start',\n content: chevronUp,\n size: 's',\n label: 'Increase',\n })}\n ${Template({\n block: 'end',\n content: chevronDown,\n size: 's',\n label: 'Decrease',\n })}\n`;\nexport const stackedM = (): TemplateResult => html`\n ${Template({\n block: 'start',\n content: chevronUp,\n size: 'm',\n label: 'Increase',\n })}\n ${Template({\n block: 'end',\n content: chevronDown,\n size: 'm',\n label: 'Decrease',\n })}\n`;\nexport const stackedL = (): TemplateResult => html`\n ${Template({\n block: 'start',\n content: chevronUp,\n size: 'l',\n label: 'Increase',\n })}\n ${Template({\n block: 'end',\n content: chevronDown,\n size: 'l',\n label: 'Decrease',\n })}\n`;\nexport const stackedXL = (): TemplateResult => html`\n ${Template({\n block: 'start',\n content: chevronUp,\n size: 'xl',\n label: 'Increase',\n })}\n ${Template({\n block: 'end',\n content: chevronDown,\n size: 'xl',\n label: 'Decrease',\n })}\n`;\n"],
5
+ "mappings": ";AAWA,SAAS,YAA4B;AAErC;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,OACG;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAACA,UAAoC,SAASA,KAAI;AACnE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AACO,aAAM,IAAI,CAACA,UAAoC,SAASA,KAAI;AACnE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AACO,aAAM,IAAI,CAACA,UAAoC,SAASA,KAAI;AACnE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AACO,aAAM,KAAK,CAACA,UAAoC,SAASA,KAAI;AACpE,GAAG,OAAO;AAAA,EACN,MAAM;AACV;AAEO,aAAM,WAAW,MAAsB;AAAA,MACxC,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX,CAAC,CAAC;AAAA,MACA,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX,CAAC,CAAC;AAAA;AAEC,aAAM,WAAW,MAAsB;AAAA,MACxC,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX,CAAC,CAAC;AAAA,MACA,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX,CAAC,CAAC;AAAA;AAEC,aAAM,WAAW,MAAsB;AAAA,MACxC,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX,CAAC,CAAC;AAAA,MACA,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX,CAAC,CAAC;AAAA;AAEC,aAAM,YAAY,MAAsB;AAAA,MACzC,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX,CAAC,CAAC;AAAA,MACA,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX,CAAC,CAAC;AAAA;",
6
+ "names": ["args"]
7
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import {
4
+ args,
5
+ argTypes,
6
+ chevronDown,
7
+ chevronUp,
8
+ Template
9
+ } from "./index.js";
10
+ export default {
11
+ title: "Infield Button",
12
+ component: "sp-infield-button",
13
+ argTypes,
14
+ args
15
+ };
16
+ export const Default = (args2) => Template(args2);
17
+ export const disabled = (args2) => Template(args2);
18
+ disabled.args = {
19
+ disabled: true
20
+ };
21
+ export const inlineStart = (args2) => Template(args2);
22
+ inlineStart.args = {
23
+ inline: "start"
24
+ };
25
+ export const inlineEnd = (args2) => Template(args2);
26
+ inlineEnd.args = {
27
+ inline: "end"
28
+ };
29
+ export const stacked = () => html`
30
+ ${Template({
31
+ block: "start",
32
+ content: chevronUp,
33
+ label: "Increase"
34
+ })}
35
+ ${Template({
36
+ block: "end",
37
+ content: chevronDown,
38
+ label: "Decrease"
39
+ })}
40
+ `;
41
+ export const quiet = (args2) => Template(args2);
42
+ quiet.args = {
43
+ quiet: true
44
+ };
45
+ //# sourceMappingURL=infield-button.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["infield-button.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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';\n\nimport {\n args,\n argTypes,\n chevronDown,\n chevronUp,\n StoryArgs,\n Template,\n} from './index.js';\n\nexport default {\n title: 'Infield Button',\n component: 'sp-infield-button',\n argTypes,\n args,\n};\n\nexport const Default = (args: StoryArgs): TemplateResult => Template(args);\nexport const disabled = (args: StoryArgs): TemplateResult => Template(args);\ndisabled.args = {\n disabled: true,\n};\n\nexport const inlineStart = (args: StoryArgs): TemplateResult => Template(args);\ninlineStart.args = {\n inline: 'start',\n};\n\nexport const inlineEnd = (args: StoryArgs): TemplateResult => Template(args);\ninlineEnd.args = {\n inline: 'end',\n};\n\nexport const stacked = (): TemplateResult => html`\n ${Template({\n block: 'start',\n content: chevronUp,\n label: 'Increase',\n })}\n ${Template({\n block: 'end',\n content: chevronDown,\n label: 'Decrease',\n })}\n`;\n\nexport const quiet = (args: StoryArgs): TemplateResult => Template(args);\nquiet.args = {\n quiet: true,\n};\n"],
5
+ "mappings": ";AAWA,SAAS,YAA4B;AAErC;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,OACG;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX;AAAA,EACA;AACJ;AAEO,aAAM,UAAU,CAACA,UAAoC,SAASA,KAAI;AAClE,aAAM,WAAW,CAACA,UAAoC,SAASA,KAAI;AAC1E,SAAS,OAAO;AAAA,EACZ,UAAU;AACd;AAEO,aAAM,cAAc,CAACA,UAAoC,SAASA,KAAI;AAC7E,YAAY,OAAO;AAAA,EACf,QAAQ;AACZ;AAEO,aAAM,YAAY,CAACA,UAAoC,SAASA,KAAI;AAC3E,UAAU,OAAO;AAAA,EACb,QAAQ;AACZ;AAEO,aAAM,UAAU,MAAsB;AAAA,MACvC,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AACX,CAAC,CAAC;AAAA,MACA,SAAS;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AACX,CAAC,CAAC;AAAA;AAGC,aAAM,QAAQ,CAACA,UAAoC,SAASA,KAAI;AACvE,MAAM,OAAO;AAAA,EACT,OAAO;AACX;",
6
+ "names": ["args"]
7
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ import "@spectrum-web-components/infield-button/sp-infield-button.js";
3
+ import { html } from "@spectrum-web-components/base";
4
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
5
+ measureFixtureCreation(html`
6
+ <sp-infield-button></sp-infield-button>
7
+ `);
8
+ //# sourceMappingURL=basic-test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["basic-test.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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 '@spectrum-web-components/infield-button/sp-infield-button.js';\nimport { html } from '@spectrum-web-components/base';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-infield-button></sp-infield-button>\n`);\n"],
5
+ "mappings": ";AAWA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA,CAEtB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import * as stories from "../stories/infield-button-sizes.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("InfieldButtonSizesStories", stories);
5
+ //# sourceMappingURL=infield-button-sizes.test-vrt.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["infield-button-sizes.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/infield-button-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('InfieldButtonSizesStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,6BAA6B,OAA+B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import * as stories from "../stories/infield-button.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("InfieldButtonStories", stories);
5
+ //# sourceMappingURL=infield-button.test-vrt.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["infield-button.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/infield-button.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('InfieldButtonStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,wBAAwB,OAA+B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ import { elementUpdated, expect, fixture } from "@open-wc/testing";
3
+ import "@spectrum-web-components/infield-button/sp-infield-button.js";
4
+ import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
5
+ import { Default, stacked } from "../stories/infield-button.stories.js";
6
+ import { args } from "../stories/index.js";
7
+ describe("InfieldButton", () => {
8
+ testForLitDevWarnings(
9
+ async () => await fixture(Default(args))
10
+ );
11
+ it("loads default infield-button accessibly", async () => {
12
+ const el = await fixture(Default(args));
13
+ await elementUpdated(el);
14
+ await expect(el).to.be.accessible();
15
+ });
16
+ it("loads stacked infield-button accessibly", async () => {
17
+ const el = await fixture(stacked());
18
+ await elementUpdated(el);
19
+ await expect(el).to.be.accessible();
20
+ });
21
+ });
22
+ //# sourceMappingURL=infield-button.test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["infield-button.test.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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 { elementUpdated, expect, fixture } from '@open-wc/testing';\n\nimport '@spectrum-web-components/infield-button/sp-infield-button.js';\nimport { InfieldButton } from '@spectrum-web-components/infield-button';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\nimport { Default, stacked } from '../stories/infield-button.stories.js';\nimport { args } from '../stories/index.js';\n\ndescribe('InfieldButton', () => {\n testForLitDevWarnings(\n async () => await fixture<InfieldButton>(Default(args))\n );\n it('loads default infield-button accessibly', async () => {\n const el = await fixture<InfieldButton>(Default(args));\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads stacked infield-button accessibly', async () => {\n const el = await fixture<InfieldButton>(stacked());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"],
5
+ "mappings": ";AAWA,SAAS,gBAAgB,QAAQ,eAAe;AAEhD,OAAO;AAEP,SAAS,6BAA6B;AACtC,SAAS,SAAS,eAAe;AACjC,SAAS,YAAY;AAErB,SAAS,iBAAiB,MAAM;AAC5B;AAAA,IACI,YAAY,MAAM,QAAuB,QAAQ,IAAI,CAAC;AAAA,EAC1D;AACA,KAAG,2CAA2C,YAAY;AACtD,UAAM,KAAK,MAAM,QAAuB,QAAQ,IAAI,CAAC;AAErD,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,2CAA2C,YAAY;AACtD,UAAM,KAAK,MAAM,QAAuB,QAAQ,CAAC;AAEjD,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACL,CAAC;",
6
+ "names": []
7
+ }