@spectrum-web-components/status-light 0.10.4-express.9 → 0.10.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/status-light",
3
- "version": "0.10.4-express.9+abfee7409",
3
+ "version": "0.10.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,16 +44,16 @@
44
44
  "lit-html"
45
45
  ],
46
46
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.5.2",
47
+ "@spectrum-web-components/base": "^0.5.3",
48
48
  "tslib": "^2.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@spectrum-css/statuslight": "^4.0.4"
51
+ "@spectrum-css/statuslight": "^4.0.5"
52
52
  },
53
53
  "types": "./src/index.d.ts",
54
54
  "customElements": "custom-elements.json",
55
55
  "sideEffects": [
56
56
  "./sp-*.js"
57
57
  ],
58
- "gitHead": "abfee740957976448a3e4cf90df17d6165f857d6"
58
+ "gitHead": "57aba8030b6af96af4015a0aa830e342a17dc219"
59
59
  }
@@ -1,86 +0,0 @@
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-status-light.js';
14
- export default {
15
- component: 'sp-status-light',
16
- title: 'StatusLight',
17
- };
18
- export const s = () => html `
19
- <sp-status-light size="s" variant="positive">positive</sp-status-light>
20
- <sp-status-light size="s" variant="negative">negative</sp-status-light>
21
- <sp-status-light size="s" variant="notice">notice</sp-status-light>
22
- <sp-status-light size="s" variant="info">info</sp-status-light>
23
- <sp-status-light size="s" variant="neutral">neutral</sp-status-light>
24
- <sp-status-light size="s" variant="yellow">yellow</sp-status-light>
25
- <sp-status-light size="s" variant="fuchsia">fuchsia</sp-status-light>
26
- <sp-status-light size="s" variant="indigo">indigo</sp-status-light>
27
- <sp-status-light size="s" variant="seafoam">seafoam</sp-status-light>
28
- <sp-status-light size="s" variant="chartreuse">chartreuse</sp-status-light>
29
- <sp-status-light size="s" variant="magenta">magenta</sp-status-light>
30
- <sp-status-light size="s" variant="celery">celery</sp-status-light>
31
- <sp-status-light size="s" variant="purple">purple</sp-status-light>
32
- `;
33
- export const m = () => html `
34
- <sp-status-light size="m" variant="positive">positive</sp-status-light>
35
- <sp-status-light size="m" variant="negative">negative</sp-status-light>
36
- <sp-status-light size="m" variant="notice">notice</sp-status-light>
37
- <sp-status-light size="m" variant="info">info</sp-status-light>
38
- <sp-status-light size="m" variant="neutral">neutral</sp-status-light>
39
- <sp-status-light size="m" variant="yellow">yellow</sp-status-light>
40
- <sp-status-light size="m" variant="fuchsia">fuchsia</sp-status-light>
41
- <sp-status-light size="m" variant="indigo">indigo</sp-status-light>
42
- <sp-status-light size="m" variant="seafoam">seafoam</sp-status-light>
43
- <sp-status-light size="m" variant="chartreuse">chartreuse</sp-status-light>
44
- <sp-status-light size="m" variant="magenta">magenta</sp-status-light>
45
- <sp-status-light size="m" variant="celery">celery</sp-status-light>
46
- <sp-status-light size="m" variant="purple">purple</sp-status-light>
47
- `;
48
- export const l = () => html `
49
- <sp-status-light size="l" variant="positive">positive</sp-status-light>
50
- <sp-status-light size="l" variant="negative">negative</sp-status-light>
51
- <sp-status-light size="l" variant="notice">notice</sp-status-light>
52
- <sp-status-light size="l" variant="info">info</sp-status-light>
53
- <sp-status-light size="l" variant="neutral">neutral</sp-status-light>
54
- <sp-status-light size="l" variant="yellow">yellow</sp-status-light>
55
- <sp-status-light size="l" variant="fuchsia">fuchsia</sp-status-light>
56
- <sp-status-light size="l" variant="indigo">indigo</sp-status-light>
57
- <sp-status-light size="l" variant="seafoam">seafoam</sp-status-light>
58
- <sp-status-light size="l" variant="chartreuse">chartreuse</sp-status-light>
59
- <sp-status-light size="l" variant="magenta">magenta</sp-status-light>
60
- <sp-status-light size="l" variant="celery">celery</sp-status-light>
61
- <sp-status-light size="l" variant="purple">purple</sp-status-light>
62
- `;
63
- export const XL = () => html `
64
- <sp-status-light size="xl" variant="positive">positive</sp-status-light>
65
- <sp-status-light size="xl" variant="negative">negative</sp-status-light>
66
- <sp-status-light size="xl" variant="notice">notice</sp-status-light>
67
- <sp-status-light size="xl" variant="info">info</sp-status-light>
68
- <sp-status-light size="xl" variant="neutral">neutral</sp-status-light>
69
- <sp-status-light size="xl" variant="yellow">yellow</sp-status-light>
70
- <sp-status-light size="xl" variant="fuchsia">fuchsia</sp-status-light>
71
- <sp-status-light size="xl" variant="indigo">indigo</sp-status-light>
72
- <sp-status-light size="xl" variant="seafoam">seafoam</sp-status-light>
73
- <sp-status-light size="xl" variant="chartreuse">chartreuse</sp-status-light>
74
- <sp-status-light size="xl" variant="magenta">magenta</sp-status-light>
75
- <sp-status-light size="xl" variant="celery">celery</sp-status-light>
76
- <sp-status-light size="xl" variant="purple">purple</sp-status-light>
77
- `;
78
- export const disabledTrue = () => html `
79
- <sp-status-light variant="positive" disabled>
80
- positive
81
- </sp-status-light>
82
- `;
83
- disabledTrue.story = {
84
- name: 'disabled: true',
85
- };
86
- //# sourceMappingURL=status-light.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status-light.stories.js","sourceRoot":"","sources":["status-light.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AAErE,OAAO,uBAAuB,CAAC;AAE/B,eAAe;IACX,SAAS,EAAE,iBAAiB;IAC5B,KAAK,EAAE,aAAa;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,GAAmB,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;CAc1C,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,GAAmB,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;CAc1C,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,GAAmB,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;CAc1C,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,GAAmB,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;CAc3C,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAmB,EAAE,CAAC,IAAI,CAAA;;;;CAIrD,CAAC;AAEF,YAAY,CAAC,KAAK,GAAG;IACjB,IAAI,EAAE,gBAAgB;CACzB,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-status-light.js';\n\nexport default {\n component: 'sp-status-light',\n title: 'StatusLight',\n};\n\nexport const s = (): TemplateResult => html`\n <sp-status-light size=\"s\" variant=\"positive\">positive</sp-status-light>\n <sp-status-light size=\"s\" variant=\"negative\">negative</sp-status-light>\n <sp-status-light size=\"s\" variant=\"notice\">notice</sp-status-light>\n <sp-status-light size=\"s\" variant=\"info\">info</sp-status-light>\n <sp-status-light size=\"s\" variant=\"neutral\">neutral</sp-status-light>\n <sp-status-light size=\"s\" variant=\"yellow\">yellow</sp-status-light>\n <sp-status-light size=\"s\" variant=\"fuchsia\">fuchsia</sp-status-light>\n <sp-status-light size=\"s\" variant=\"indigo\">indigo</sp-status-light>\n <sp-status-light size=\"s\" variant=\"seafoam\">seafoam</sp-status-light>\n <sp-status-light size=\"s\" variant=\"chartreuse\">chartreuse</sp-status-light>\n <sp-status-light size=\"s\" variant=\"magenta\">magenta</sp-status-light>\n <sp-status-light size=\"s\" variant=\"celery\">celery</sp-status-light>\n <sp-status-light size=\"s\" variant=\"purple\">purple</sp-status-light>\n`;\n\nexport const m = (): TemplateResult => html`\n <sp-status-light size=\"m\" variant=\"positive\">positive</sp-status-light>\n <sp-status-light size=\"m\" variant=\"negative\">negative</sp-status-light>\n <sp-status-light size=\"m\" variant=\"notice\">notice</sp-status-light>\n <sp-status-light size=\"m\" variant=\"info\">info</sp-status-light>\n <sp-status-light size=\"m\" variant=\"neutral\">neutral</sp-status-light>\n <sp-status-light size=\"m\" variant=\"yellow\">yellow</sp-status-light>\n <sp-status-light size=\"m\" variant=\"fuchsia\">fuchsia</sp-status-light>\n <sp-status-light size=\"m\" variant=\"indigo\">indigo</sp-status-light>\n <sp-status-light size=\"m\" variant=\"seafoam\">seafoam</sp-status-light>\n <sp-status-light size=\"m\" variant=\"chartreuse\">chartreuse</sp-status-light>\n <sp-status-light size=\"m\" variant=\"magenta\">magenta</sp-status-light>\n <sp-status-light size=\"m\" variant=\"celery\">celery</sp-status-light>\n <sp-status-light size=\"m\" variant=\"purple\">purple</sp-status-light>\n`;\n\nexport const l = (): TemplateResult => html`\n <sp-status-light size=\"l\" variant=\"positive\">positive</sp-status-light>\n <sp-status-light size=\"l\" variant=\"negative\">negative</sp-status-light>\n <sp-status-light size=\"l\" variant=\"notice\">notice</sp-status-light>\n <sp-status-light size=\"l\" variant=\"info\">info</sp-status-light>\n <sp-status-light size=\"l\" variant=\"neutral\">neutral</sp-status-light>\n <sp-status-light size=\"l\" variant=\"yellow\">yellow</sp-status-light>\n <sp-status-light size=\"l\" variant=\"fuchsia\">fuchsia</sp-status-light>\n <sp-status-light size=\"l\" variant=\"indigo\">indigo</sp-status-light>\n <sp-status-light size=\"l\" variant=\"seafoam\">seafoam</sp-status-light>\n <sp-status-light size=\"l\" variant=\"chartreuse\">chartreuse</sp-status-light>\n <sp-status-light size=\"l\" variant=\"magenta\">magenta</sp-status-light>\n <sp-status-light size=\"l\" variant=\"celery\">celery</sp-status-light>\n <sp-status-light size=\"l\" variant=\"purple\">purple</sp-status-light>\n`;\n\nexport const XL = (): TemplateResult => html`\n <sp-status-light size=\"xl\" variant=\"positive\">positive</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"negative\">negative</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"notice\">notice</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"info\">info</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"neutral\">neutral</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"yellow\">yellow</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"fuchsia\">fuchsia</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"indigo\">indigo</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"seafoam\">seafoam</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"chartreuse\">chartreuse</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"magenta\">magenta</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"celery\">celery</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"purple\">purple</sp-status-light>\n`;\n\nexport const disabledTrue = (): TemplateResult => html`\n <sp-status-light variant=\"positive\" disabled>\n positive\n </sp-status-light>\n`;\n\ndisabledTrue.story = {\n name: 'disabled: true',\n};\n"]}
@@ -1,15 +0,0 @@
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/status-light.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('StatusLightStories', stories);
15
- //# sourceMappingURL=status-light.test-vrt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status-light.test-vrt.js","sourceRoot":"","sources":["status-light.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,oBAAoB,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/status-light.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('StatusLightStories', stories);\n"]}
@@ -1,37 +0,0 @@
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
- Unless required by applicable law or agreed to in writing, software distributed under
7
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
8
- OF ANY KIND, either express or implied. See the License for the specific language
9
- governing permissions and limitations under the License.
10
- */
11
- import '../sp-status-light.js';
12
- import { elementUpdated, expect, fixture, html } from '@open-wc/testing';
13
- describe('Status Light', () => {
14
- it('loads correctly', async () => {
15
- const el = await fixture(html `
16
- <sp-status-light variant="positive"></sp-status-light>
17
- `);
18
- await elementUpdated(el);
19
- expect(el).to.not.be.undefined;
20
- const rootEl = el.shadowRoot
21
- ? el.shadowRoot.querySelector('#root')
22
- : el.querySelector('#root');
23
- expect(rootEl).to.not.be.undefined;
24
- });
25
- it('[disabled] manages [aria-disabled]', async () => {
26
- const el = await fixture(html `
27
- <sp-status-light variant="positive"></sp-status-light>
28
- `);
29
- await elementUpdated(el);
30
- expect(el.hasAttribute('aria-disabled')).to.be.false;
31
- el.disabled = true;
32
- await elementUpdated(el);
33
- expect(el.hasAttribute('aria-disabled')).to.be.true;
34
- expect(el.getAttribute('aria-disabled')).to.equal('true');
35
- });
36
- });
37
- //# sourceMappingURL=status-light.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status-light.test.js","sourceRoot":"","sources":["status-light.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;EASE;AACF,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEzE,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,iBAAiB,EAAE,KAAK,IAAI,EAAE;QAC7B,MAAM,EAAE,GAAG,MAAM,OAAO,CACpB,IAAI,CAAA;;aAEH,CACJ,CAAC;QAEF,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QACzB,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC;QAC/B,MAAM,MAAM,GAAG,EAAE,CAAC,UAAU;YACxB,CAAC,CAAE,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAsB;YAC5D,CAAC,CAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAsB,CAAC;QACtD,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC;IACvC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;QAChD,MAAM,EAAE,GAAG,MAAM,OAAO,CACpB,IAAI,CAAA;;aAEH,CACJ,CAAC;QAEF,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAErD,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC;QACnB,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACpD,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACP,CAAC,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\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-status-light.js';\nimport { StatusLight } from '../';\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\ndescribe('Status Light', () => {\n it('loads correctly', async () => {\n const el = await fixture<StatusLight>(\n html`\n <sp-status-light variant=\"positive\"></sp-status-light>\n `\n );\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n const rootEl = el.shadowRoot\n ? (el.shadowRoot.querySelector('#root') as HTMLImageElement)\n : (el.querySelector('#root') as HTMLImageElement);\n expect(rootEl).to.not.be.undefined;\n });\n it('[disabled] manages [aria-disabled]', async () => {\n const el = await fixture<StatusLight>(\n html`\n <sp-status-light variant=\"positive\"></sp-status-light>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-disabled')).to.be.false;\n\n el.disabled = true;\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-disabled')).to.be.true;\n expect(el.getAttribute('aria-disabled')).to.equal('true');\n });\n});\n"]}