@spectrum-web-components/checkbox 0.13.5 → 0.13.6

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 (38) hide show
  1. package/custom-elements.json +10 -10
  2. package/package.json +27 -10
  3. package/sp-checkbox.dev.js +3 -0
  4. package/sp-checkbox.dev.js.map +7 -0
  5. package/sp-checkbox.js +3 -14
  6. package/sp-checkbox.js.map +7 -1
  7. package/src/Checkbox.dev.js +128 -0
  8. package/src/Checkbox.dev.js.map +7 -0
  9. package/src/Checkbox.js +75 -79
  10. package/src/Checkbox.js.map +7 -1
  11. package/src/CheckboxBase.dev.js +65 -0
  12. package/src/CheckboxBase.dev.js.map +7 -0
  13. package/src/CheckboxBase.js +53 -51
  14. package/src/CheckboxBase.js.map +7 -1
  15. package/src/checkbox.css.dev.js +233 -0
  16. package/src/checkbox.css.dev.js.map +7 -0
  17. package/src/checkbox.css.js +3 -14
  18. package/src/checkbox.css.js.map +7 -1
  19. package/src/index.dev.js +2 -0
  20. package/src/index.dev.js.map +7 -0
  21. package/src/index.js +2 -13
  22. package/src/index.js.map +7 -1
  23. package/src/spectrum-checkbox.css.dev.js +233 -0
  24. package/src/spectrum-checkbox.css.dev.js.map +7 -0
  25. package/src/spectrum-checkbox.css.js +3 -14
  26. package/src/spectrum-checkbox.css.js.map +7 -1
  27. package/stories/checkbox-sizes.stories.js +29 -34
  28. package/stories/checkbox-sizes.stories.js.map +7 -1
  29. package/stories/checkbox.stories.js +28 -39
  30. package/stories/checkbox.stories.js.map +7 -1
  31. package/test/benchmark/test-basic.js +5 -16
  32. package/test/benchmark/test-basic.js.map +7 -1
  33. package/test/checkbox-sizes.test-vrt.js +4 -15
  34. package/test/checkbox-sizes.test-vrt.js.map +7 -1
  35. package/test/checkbox.test-vrt.js +4 -15
  36. package/test/checkbox.test-vrt.js.map +7 -1
  37. package/test/checkbox.test.js +102 -102
  38. package/test/checkbox.test.js.map +7 -1
@@ -1,26 +1,21 @@
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 '../sp-checkbox.js';
1
+ import { html } from "@spectrum-web-components/base";
2
+ import "@spectrum-web-components/checkbox/sp-checkbox.js";
14
3
  export default {
15
- component: 'sp-checkbox',
16
- title: 'Checkbox/Sizes',
17
- argTypes: {
18
- onClick: { action: 'click' },
19
- onChange: { action: 'change' },
20
- },
4
+ component: "sp-checkbox",
5
+ title: "Checkbox/Sizes",
6
+ argTypes: {
7
+ onClick: { action: "click" },
8
+ onChange: { action: "change" }
9
+ }
21
10
  };
22
- const checkbox = ({ size, checked, indeterminate, onClick, onChange, }) => {
23
- return html `
11
+ const checkbox = ({
12
+ size,
13
+ checked,
14
+ indeterminate,
15
+ onClick,
16
+ onChange
17
+ }) => {
18
+ return html`
24
19
  <sp-checkbox
25
20
  size=${size}
26
21
  ?checked=${checked}
@@ -32,16 +27,16 @@ const checkbox = ({ size, checked, indeterminate, onClick, onChange, }) => {
32
27
  </sp-checkbox>
33
28
  `;
34
29
  };
35
- export const s = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 's' }));
36
- export const sChecked = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 's', checked: true }));
37
- export const sIndeterminate = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 's', indeterminate: true }));
38
- export const m = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'm' }));
39
- export const mChecked = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'm', checked: true }));
40
- export const mIndeterminate = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'm', indeterminate: true }));
41
- export const l = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'l' }));
42
- export const lChecked = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'l', checked: true }));
43
- export const lIndeterminate = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'l', indeterminate: true }));
44
- export const XL = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'xl' }));
45
- export const XLChecked = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'xl', checked: true }));
46
- export const XLIndeterminate = (args) => checkbox(Object.assign(Object.assign({}, args), { size: 'xl', indeterminate: true }));
47
- //# sourceMappingURL=checkbox-sizes.stories.js.map
30
+ export const s = (args) => checkbox({ ...args, size: "s" });
31
+ export const sChecked = (args) => checkbox({ ...args, size: "s", checked: true });
32
+ export const sIndeterminate = (args) => checkbox({ ...args, size: "s", indeterminate: true });
33
+ export const m = (args) => checkbox({ ...args, size: "m" });
34
+ export const mChecked = (args) => checkbox({ ...args, size: "m", checked: true });
35
+ export const mIndeterminate = (args) => checkbox({ ...args, size: "m", indeterminate: true });
36
+ export const l = (args) => checkbox({ ...args, size: "l" });
37
+ export const lChecked = (args) => checkbox({ ...args, size: "l", checked: true });
38
+ export const lIndeterminate = (args) => checkbox({ ...args, size: "l", indeterminate: true });
39
+ export const XL = (args) => checkbox({ ...args, size: "xl" });
40
+ export const XLChecked = (args) => checkbox({ ...args, size: "xl", checked: true });
41
+ export const XLIndeterminate = (args) => checkbox({ ...args, size: "xl", indeterminate: true });
42
+ //# sourceMappingURL=checkbox-sizes.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"checkbox-sizes.stories.js","sourceRoot":"","sources":["checkbox-sizes.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AAErE,OAAO,mBAAmB,CAAC;AAE3B,eAAe;IACX,SAAS,EAAE,aAAa;IACxB,KAAK,EA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,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAe,EAAkB,EAAE,CACjD,QAAQ,iCAAM,IAAI,KAAE,IAAI,EAAE,GAAG,IAAG,CAAC;AAErC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAe,EAAkB,EAAE,CACxD,QAAQ,iCAAM,IAAI,KAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,IAAG,CAAC;AAEpD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAe,EAAkB,EAAE,CAC9D,QAAQ,iCAAM,IAAI,KAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,IAAG,CAAC;AAE1D,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAe,EAAkB,EAAE,CAClD,QAAQ,iCAAM,IAAI,KAAE,IAAI,EAAE,IAAI,IAAG,CAAC;AAEtC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAe,EAAkB,EAAE,CACzD,QAAQ,iCAAM,IAAI,KAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAG,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAe,EAAkB,EAAE,CAC/D,QAAQ,iCAAM,IAAI,KAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,IAAG,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';\n\nimport '../sp-checkbox.js';\n\nexport default {\n component: 'sp-checkbox',\n title: 'Checkbox/Sizes',\n argTypes: {\n onClick: { action: 'click' },\n onChange: { action: 'change' },\n },\n};\n\nconst checkbox = ({\n size,\n checked,\n indeterminate,\n onClick,\n onChange,\n}: {\n size: 's' | 'm' | 'l' | 'xl';\n checked?: boolean;\n indeterminate?: boolean;\n onClick: () => void;\n onChange: () => void;\n}): TemplateResult => {\n return html`\n <sp-checkbox\n size=${size}\n ?checked=${checked}\n ?indeterminate=${indeterminate}\n @click=\"${onClick}\"\n @change=\"${onChange}\"\n >\n Checkbox\n </sp-checkbox>\n `;\n};\n\ntype StoryArgs = {\n onClick: () => void;\n onChange: () => void;\n};\n\nexport const s = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 's' });\n\nexport const sChecked = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 's', checked: true });\n\nexport const sIndeterminate = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 's', indeterminate: true });\n\nexport const m = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'm' });\n\nexport const mChecked = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'm', checked: true });\n\nexport const mIndeterminate = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'm', indeterminate: true });\n\nexport const l = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'l' });\n\nexport const lChecked = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'l', checked: true });\n\nexport const lIndeterminate = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'l', indeterminate: true });\n\nexport const XL = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'xl' });\n\nexport const XLChecked = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'xl', checked: true });\n\nexport const XLIndeterminate = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'xl', indeterminate: true });\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["checkbox-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 { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/checkbox/sp-checkbox.js';\n\nexport default {\n component: 'sp-checkbox',\n title: 'Checkbox/Sizes',\n argTypes: {\n onClick: { action: 'click' },\n onChange: { action: 'change' },\n },\n};\n\nconst checkbox = ({\n size,\n checked,\n indeterminate,\n onClick,\n onChange,\n}: {\n size: 's' | 'm' | 'l' | 'xl';\n checked?: boolean;\n indeterminate?: boolean;\n onClick: () => void;\n onChange: () => void;\n}): TemplateResult => {\n return html`\n <sp-checkbox\n size=${size}\n ?checked=${checked}\n ?indeterminate=${indeterminate}\n @click=\"${onClick}\"\n @change=\"${onChange}\"\n >\n Checkbox\n </sp-checkbox>\n `;\n};\n\ntype StoryArgs = {\n onClick: () => void;\n onChange: () => void;\n};\n\nexport const s = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 's' });\n\nexport const sChecked = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 's', checked: true });\n\nexport const sIndeterminate = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 's', indeterminate: true });\n\nexport const m = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'm' });\n\nexport const mChecked = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'm', checked: true });\n\nexport const mIndeterminate = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'm', indeterminate: true });\n\nexport const l = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'l' });\n\nexport const lChecked = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'l', checked: true });\n\nexport const lIndeterminate = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'l', indeterminate: true });\n\nexport const XL = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'xl' });\n\nexport const XLChecked = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'xl', checked: true });\n\nexport const XLIndeterminate = (args: StoryArgs): TemplateResult =>\n checkbox({ ...args, size: 'xl', indeterminate: true });\n"],
5
+ "mappings": "AAWA;AAEA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,UAAU;AAAA,IACN,SAAS,EAAE,QAAQ,QAAQ;AAAA,IAC3B,UAAU,EAAE,QAAQ,SAAS;AAAA,EACjC;AACJ;AAEA,MAAM,WAAW,CAAC;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MAOkB;AAClB,SAAO;AAAA;AAAA,mBAEQ;AAAA,uBACI;AAAA,6BACM;AAAA,sBACP;AAAA,uBACC;AAAA;AAAA;AAAA;AAAA;AAKvB;AAOO,aAAM,IAAI,CAAC,SACd,SAAS,KAAK,MAAM,MAAM,IAAI,CAAC;AAE5B,aAAM,WAAW,CAAC,SACrB,SAAS,KAAK,MAAM,MAAM,KAAK,SAAS,KAAK,CAAC;AAE3C,aAAM,iBAAiB,CAAC,SAC3B,SAAS,KAAK,MAAM,MAAM,KAAK,eAAe,KAAK,CAAC;AAEjD,aAAM,IAAI,CAAC,SACd,SAAS,KAAK,MAAM,MAAM,IAAI,CAAC;AAE5B,aAAM,WAAW,CAAC,SACrB,SAAS,KAAK,MAAM,MAAM,KAAK,SAAS,KAAK,CAAC;AAE3C,aAAM,iBAAiB,CAAC,SAC3B,SAAS,KAAK,MAAM,MAAM,KAAK,eAAe,KAAK,CAAC;AAEjD,aAAM,IAAI,CAAC,SACd,SAAS,KAAK,MAAM,MAAM,IAAI,CAAC;AAE5B,aAAM,WAAW,CAAC,SACrB,SAAS,KAAK,MAAM,MAAM,KAAK,SAAS,KAAK,CAAC;AAE3C,aAAM,iBAAiB,CAAC,SAC3B,SAAS,KAAK,MAAM,MAAM,KAAK,eAAe,KAAK,CAAC;AAEjD,aAAM,KAAK,CAAC,SACf,SAAS,KAAK,MAAM,MAAM,KAAK,CAAC;AAE7B,aAAM,YAAY,CAAC,SACtB,SAAS,KAAK,MAAM,MAAM,MAAM,SAAS,KAAK,CAAC;AAE5C,aAAM,kBAAkB,CAAC,SAC5B,SAAS,KAAK,MAAM,MAAM,MAAM,eAAe,KAAK,CAAC;",
6
+ "names": []
7
+ }
@@ -1,123 +1,112 @@
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 '../sp-checkbox.js';
13
- import '@spectrum-web-components/field-group/sp-field-group.js';
14
- import { html } from '@spectrum-web-components/base';
1
+ import "@spectrum-web-components/checkbox/sp-checkbox.js";
2
+ import "@spectrum-web-components/field-group/sp-field-group.js";
3
+ import { html } from "@spectrum-web-components/base";
15
4
  export default {
16
- component: 'sp-checkbox',
17
- title: 'Checkbox',
5
+ component: "sp-checkbox",
6
+ title: "Checkbox"
18
7
  };
19
8
  export const Default = () => {
20
- return html `
9
+ return html`
21
10
  <sp-checkbox>Checkbox</sp-checkbox>
22
11
  `;
23
12
  };
24
13
  export const readonly = () => {
25
- return html `
14
+ return html`
26
15
  <sp-checkbox checked readonly>Checkbox</sp-checkbox>
27
16
  `;
28
17
  };
29
18
  export const Indeterminate = () => {
30
- return html `
19
+ return html`
31
20
  <sp-checkbox indeterminate>Checkbox</sp-checkbox>
32
21
  `;
33
22
  };
34
23
  export const Checked = () => {
35
- return html `
24
+ return html`
36
25
  <sp-checkbox checked>Checkbox</sp-checkbox>
37
26
  `;
38
27
  };
39
28
  export const emphasized = () => {
40
- return html `
29
+ return html`
41
30
  <sp-checkbox emphasized>Checkbox</sp-checkbox>
42
31
  `;
43
32
  };
44
33
  export const emphasizedIndeterminate = () => {
45
- return html `
34
+ return html`
46
35
  <sp-checkbox emphasized indeterminate>Checkbox</sp-checkbox>
47
36
  `;
48
37
  };
49
38
  export const emphasizedChecked = () => {
50
- return html `
39
+ return html`
51
40
  <sp-checkbox emphasized checked>Checkbox</sp-checkbox>
52
41
  `;
53
42
  };
54
43
  export const emphasizedInvalid = () => {
55
- return html `
44
+ return html`
56
45
  <sp-checkbox emphasized invalid>Checkbox</sp-checkbox>
57
46
  `;
58
47
  };
59
48
  export const emphasizedInvalidIndeterminate = () => {
60
- return html `
49
+ return html`
61
50
  <sp-checkbox emphasized invalid indeterminate>Checkbox</sp-checkbox>
62
51
  `;
63
52
  };
64
53
  export const emphasizedInvalidChecked = () => {
65
- return html `
54
+ return html`
66
55
  <sp-checkbox emphasized invalid checked>Checkbox</sp-checkbox>
67
56
  `;
68
57
  };
69
58
  export const Invalid = () => {
70
- return html `
59
+ return html`
71
60
  <sp-checkbox invalid>Checkbox</sp-checkbox>
72
61
  `;
73
62
  };
74
63
  export const invalidIndeterminate = () => {
75
- return html `
64
+ return html`
76
65
  <sp-checkbox invalid indeterminate>Checkbox</sp-checkbox>
77
66
  `;
78
67
  };
79
68
  export const invalidChecked = () => {
80
- return html `
69
+ return html`
81
70
  <sp-checkbox invalid checked>Checkbox</sp-checkbox>
82
71
  `;
83
72
  };
84
73
  export const Autofocus = () => {
85
- return html `
74
+ return html`
86
75
  <sp-checkbox autofocus>Checkbox</sp-checkbox>
87
76
  `;
88
77
  };
89
78
  export const Disabled = () => {
90
- return html `
79
+ return html`
91
80
  <sp-checkbox disabled>Checkbox</sp-checkbox>
92
81
  `;
93
82
  };
94
83
  export const disabledChecked = () => {
95
- return html `
84
+ return html`
96
85
  <sp-checkbox disabled checked>Checkbox</sp-checkbox>
97
86
  `;
98
87
  };
99
88
  export const disabledIndeterminate = () => {
100
- return html `
89
+ return html`
101
90
  <sp-checkbox disabled indeterminate>Checkbox</sp-checkbox>
102
91
  `;
103
92
  };
104
93
  export const emphasizedDisabled = () => {
105
- return html `
94
+ return html`
106
95
  <sp-checkbox emphasized disabled>Checkbox</sp-checkbox>
107
96
  `;
108
97
  };
109
98
  export const emphasizedDisabledIndeterminate = () => {
110
- return html `
99
+ return html`
111
100
  <sp-checkbox emphasized disabled indeterminate>Checkbox</sp-checkbox>
112
101
  `;
113
102
  };
114
103
  export const emphasizedDisabledChecked = () => {
115
- return html `
104
+ return html`
116
105
  <sp-checkbox emphasized checked>Checkbox</sp-checkbox>
117
106
  `;
118
107
  };
119
108
  export const tabIndexExample = () => {
120
- return html `
109
+ return html`
121
110
  <sp-field-group horizontal>
122
111
  <sp-checkbox tabindex="0">Checkbox 0</sp-checkbox>
123
112
  <sp-checkbox disabled tabindex="3">Checkbox 3</sp-checkbox>
@@ -128,7 +117,7 @@ export const tabIndexExample = () => {
128
117
  `;
129
118
  };
130
119
  export const verticalTabIndexExample = () => {
131
- return html `
120
+ return html`
132
121
  <sp-field-group vertical>
133
122
  <sp-checkbox tabindex="0">Checkbox 0</sp-checkbox>
134
123
  <sp-checkbox disabled tabindex="3">Checkbox 3</sp-checkbox>
@@ -138,4 +127,4 @@ export const verticalTabIndexExample = () => {
138
127
  </sp-field-group>
139
128
  `;
140
129
  };
141
- //# sourceMappingURL=checkbox.stories.js.map
130
+ //# sourceMappingURL=checkbox.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"checkbox.stories.js","sourceRoot":"","sources":["checkbox.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,mBAAmB,CAAC;AAC3B,OAAO,wDAAwD,CAAC;AAChE,OAAO,EAAE,IAAI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.\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 '../sp-checkbox.js';\nimport '@spectrum-web-components/field-group/sp-field-group.js';\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nexport default {\n component: 'sp-checkbox',\n title: 'Checkbox',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-checkbox>Checkbox</sp-checkbox>\n `;\n};\n\nexport const readonly = (): TemplateResult => {\n return html`\n <sp-checkbox checked readonly>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Indeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Checked = (): TemplateResult => {\n return html`\n <sp-checkbox checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasized = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalid = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalidIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalidChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Invalid = (): TemplateResult => {\n return html`\n <sp-checkbox invalid>Checkbox</sp-checkbox>\n `;\n};\n\nexport const invalidIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox invalid indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const invalidChecked = (): TemplateResult => {\n return html`\n <sp-checkbox invalid checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Autofocus = (): TemplateResult => {\n return html`\n <sp-checkbox autofocus>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Disabled = (): TemplateResult => {\n return html`\n <sp-checkbox disabled>Checkbox</sp-checkbox>\n `;\n};\n\nexport const disabledChecked = (): TemplateResult => {\n return html`\n <sp-checkbox disabled checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const disabledIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox disabled indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabled = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized disabled>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabledIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized disabled indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabledChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const tabIndexExample = (): TemplateResult => {\n return html`\n <sp-field-group horizontal>\n <sp-checkbox tabindex=\"0\">Checkbox 0</sp-checkbox>\n <sp-checkbox disabled tabindex=\"3\">Checkbox 3</sp-checkbox>\n <sp-checkbox tabindex=\"4\">Checkbox 4</sp-checkbox>\n <sp-checkbox tabindex=\"2\" autofocus>Checkbox 2</sp-checkbox>\n <sp-checkbox tabindex=\"1\">Checkbox 1</sp-checkbox>\n </sp-field-group>\n `;\n};\n\nexport const verticalTabIndexExample = (): TemplateResult => {\n return html`\n <sp-field-group vertical>\n <sp-checkbox tabindex=\"0\">Checkbox 0</sp-checkbox>\n <sp-checkbox disabled tabindex=\"3\">Checkbox 3</sp-checkbox>\n <sp-checkbox tabindex=\"4\">Checkbox 4</sp-checkbox>\n <sp-checkbox tabindex=\"2\" autofocus>Checkbox 2</sp-checkbox>\n <sp-checkbox tabindex=\"1\">Checkbox 1</sp-checkbox>\n </sp-field-group>\n `;\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["checkbox.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 '@spectrum-web-components/checkbox/sp-checkbox.js';\nimport '@spectrum-web-components/field-group/sp-field-group.js';\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nexport default {\n component: 'sp-checkbox',\n title: 'Checkbox',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-checkbox>Checkbox</sp-checkbox>\n `;\n};\n\nexport const readonly = (): TemplateResult => {\n return html`\n <sp-checkbox checked readonly>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Indeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Checked = (): TemplateResult => {\n return html`\n <sp-checkbox checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasized = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalid = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalidIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedInvalidChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized invalid checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Invalid = (): TemplateResult => {\n return html`\n <sp-checkbox invalid>Checkbox</sp-checkbox>\n `;\n};\n\nexport const invalidIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox invalid indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const invalidChecked = (): TemplateResult => {\n return html`\n <sp-checkbox invalid checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Autofocus = (): TemplateResult => {\n return html`\n <sp-checkbox autofocus>Checkbox</sp-checkbox>\n `;\n};\n\nexport const Disabled = (): TemplateResult => {\n return html`\n <sp-checkbox disabled>Checkbox</sp-checkbox>\n `;\n};\n\nexport const disabledChecked = (): TemplateResult => {\n return html`\n <sp-checkbox disabled checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const disabledIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox disabled indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabled = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized disabled>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabledIndeterminate = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized disabled indeterminate>Checkbox</sp-checkbox>\n `;\n};\n\nexport const emphasizedDisabledChecked = (): TemplateResult => {\n return html`\n <sp-checkbox emphasized checked>Checkbox</sp-checkbox>\n `;\n};\n\nexport const tabIndexExample = (): TemplateResult => {\n return html`\n <sp-field-group horizontal>\n <sp-checkbox tabindex=\"0\">Checkbox 0</sp-checkbox>\n <sp-checkbox disabled tabindex=\"3\">Checkbox 3</sp-checkbox>\n <sp-checkbox tabindex=\"4\">Checkbox 4</sp-checkbox>\n <sp-checkbox tabindex=\"2\" autofocus>Checkbox 2</sp-checkbox>\n <sp-checkbox tabindex=\"1\">Checkbox 1</sp-checkbox>\n </sp-field-group>\n `;\n};\n\nexport const verticalTabIndexExample = (): TemplateResult => {\n return html`\n <sp-field-group vertical>\n <sp-checkbox tabindex=\"0\">Checkbox 0</sp-checkbox>\n <sp-checkbox disabled tabindex=\"3\">Checkbox 3</sp-checkbox>\n <sp-checkbox tabindex=\"4\">Checkbox 4</sp-checkbox>\n <sp-checkbox tabindex=\"2\" autofocus>Checkbox 2</sp-checkbox>\n <sp-checkbox tabindex=\"1\">Checkbox 1</sp-checkbox>\n </sp-field-group>\n `;\n};\n"],
5
+ "mappings": "AAWA;AACA;AACA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,WAAW,MAAsB;AAC1C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,gBAAgB,MAAsB;AAC/C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,aAAa,MAAsB;AAC5C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,0BAA0B,MAAsB;AACzD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,oBAAoB,MAAsB;AACnD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,oBAAoB,MAAsB;AACnD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,iCAAiC,MAAsB;AAChE,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,2BAA2B,MAAsB;AAC1D,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,uBAAuB,MAAsB;AACtD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,iBAAiB,MAAsB;AAChD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,YAAY,MAAsB;AAC3C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,WAAW,MAAsB;AAC1C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,kBAAkB,MAAsB;AACjD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,wBAAwB,MAAsB;AACvD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,qBAAqB,MAAsB;AACpD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,kCAAkC,MAAsB;AACjE,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,4BAA4B,MAAsB;AAC3D,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,kBAAkB,MAAsB;AACjD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASX;AAEO,aAAM,0BAA0B,MAAsB;AACzD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASX;",
6
+ "names": []
7
+ }
@@ -1,18 +1,7 @@
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 '@spectrum-web-components/checkbox/sp-checkbox.js';
13
- import { html } from 'lit';
14
- import { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';
15
- measureFixtureCreation(html `
1
+ import "@spectrum-web-components/checkbox/sp-checkbox.js";
2
+ import { html } from "lit";
3
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
4
+ measureFixtureCreation(html`
16
5
  <sp-checkbox id="checkbox0" tabindex="5">Component</sp-checkbox>
17
6
  `);
18
- //# sourceMappingURL=test-basic.js.map
7
+ //# sourceMappingURL=test-basic.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"test-basic.js","sourceRoot":"","sources":["test-basic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,kDAAkD,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E,sBAAsB,CAAC,IAAI,CAAA;;CAE1B,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 '@spectrum-web-components/checkbox/sp-checkbox.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-checkbox id=\"checkbox0\" tabindex=\"5\">Component</sp-checkbox>\n`);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["test-basic.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 '@spectrum-web-components/checkbox/sp-checkbox.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-checkbox id=\"checkbox0\" tabindex=\"5\">Component</sp-checkbox>\n`);\n"],
5
+ "mappings": "AAYA;AACA;AACA;AAEA,uBAAuB;AAAA;AAAA,CAEtB;",
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/checkbox-sizes.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('CheckboxSizesStories', stories);
15
- //# sourceMappingURL=checkbox-sizes.test-vrt.js.map
1
+ import * as stories from "../stories/checkbox-sizes.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("CheckboxSizesStories", stories);
4
+ //# sourceMappingURL=checkbox-sizes.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"checkbox-sizes.test-vrt.js","sourceRoot":"","sources":["checkbox-sizes.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,sBAAsB,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/checkbox-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('CheckboxSizesStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["checkbox-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/checkbox-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('CheckboxSizesStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,wBAAwB,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/checkbox.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('CheckboxStories', stories);
15
- //# sourceMappingURL=checkbox.test-vrt.js.map
1
+ import * as stories from "../stories/checkbox.stories.js";
2
+ import { regressVisuals } from "../../../test/visual/test.js";
3
+ regressVisuals("CheckboxStories", stories);
4
+ //# sourceMappingURL=checkbox.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"checkbox.test-vrt.js","sourceRoot":"","sources":["checkbox.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,iBAAiB,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/checkbox.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('CheckboxStories', stories);\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["checkbox.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/checkbox.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('CheckboxStories', stories);\n"],
5
+ "mappings": "AAYA;AACA;AAEA,eAAe,mBAAmB,OAAO;",
6
+ "names": []
7
+ }