@spectrum-web-components/progress-circle 0.4.4-express.9 → 0.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/progress-circle",
3
- "version": "0.4.4-express.9+abfee7409",
3
+ "version": "0.4.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/progresscircle": "^1.0.13"
51
+ "@spectrum-css/progresscircle": "^1.0.14"
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,88 +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-progress-circle.js';
14
- export default {
15
- title: 'Progress Circle',
16
- component: 'sp-progress-circle',
17
- argTypes: {
18
- indeterminate: {
19
- name: 'indeterminate',
20
- type: { name: 'boolean', required: false },
21
- description: 'Whether the progress is indeterminate.',
22
- table: {
23
- type: { summary: 'boolean' },
24
- defaultValue: { summary: false },
25
- },
26
- control: {
27
- type: 'boolean',
28
- },
29
- },
30
- },
31
- };
32
- export const Default = ({ indeterminate } = {}) => {
33
- return html `
34
- <div
35
- style="width: 250px; height: 150px; display: flex; align-items: center; justify-content: space-around;"
36
- >
37
- <sp-progress-circle
38
- progress="27"
39
- size="s"
40
- ?indeterminate=${indeterminate}
41
- ></sp-progress-circle>
42
- <sp-progress-circle
43
- progress="27"
44
- ?indeterminate=${indeterminate}
45
- ></sp-progress-circle>
46
- <sp-progress-circle
47
- progress="27"
48
- size="l"
49
- ?indeterminate=${indeterminate}
50
- ></sp-progress-circle>
51
- </div>
52
- `;
53
- };
54
- Default.args = {
55
- indeterminate: false,
56
- };
57
- export const overBackground = ({ indeterminate, } = {}) => {
58
- return html `
59
- <div
60
- style="width: 250px; height: 150px; background-color: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: space-around;"
61
- >
62
- <sp-progress-circle
63
- progress="53"
64
- over-background
65
- size="s"
66
- ?indeterminate=${indeterminate}
67
- ></sp-progress-circle>
68
- <sp-progress-circle
69
- progress="53"
70
- over-background
71
- ?indeterminate=${indeterminate}
72
- ></sp-progress-circle>
73
- <sp-progress-circle
74
- progress="53"
75
- over-background
76
- size="l"
77
- ?indeterminate=${indeterminate}
78
- ></sp-progress-circle>
79
- </div>
80
- `;
81
- };
82
- overBackground.args = {
83
- indeterminate: false,
84
- };
85
- overBackground.story = {
86
- name: 'Over background',
87
- };
88
- //# sourceMappingURL=progress-circle.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"progress-circle.stories.js","sourceRoot":"","sources":["progress-circle.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AAErE,OAAO,0BAA0B,CAAC;AAElC,eAAe;IACX,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE;QACN,aAAa,EAAE;YACX,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC1C,WAAW,EAAE,wCAAwC;YACrD,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;gBAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACnC;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,SAAS;aAClB;SACJ;KACJ;CACJ,CAAC;AAMF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAE,aAAa,KAAgB,EAAE,EAAkB,EAAE;IACzE,OAAO,IAAI,CAAA;;;;;;;iCAOkB,aAAa;;;;iCAIb,aAAa;;;;;iCAKb,aAAa;;;KAGzC,CAAC;AACN,CAAC,CAAC;AACF,OAAO,CAAC,IAAI,GAAG;IACX,aAAa,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC3B,aAAa,MACF,EAAE,EAAkB,EAAE;IACjC,OAAO,IAAI,CAAA;;;;;;;;iCAQkB,aAAa;;;;;iCAKb,aAAa;;;;;;iCAMb,aAAa;;;KAGzC,CAAC;AACN,CAAC,CAAC;AACF,cAAc,CAAC,IAAI,GAAG;IAClB,aAAa,EAAE,KAAK;CACvB,CAAC;AAEF,cAAc,CAAC,KAAK,GAAG;IACnB,IAAI,EAAE,iBAAiB;CAC1B,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';\n\nimport '../sp-progress-circle.js';\n\nexport default {\n title: 'Progress Circle',\n component: 'sp-progress-circle',\n argTypes: {\n indeterminate: {\n name: 'indeterminate',\n type: { name: 'boolean', required: false },\n description: 'Whether the progress is indeterminate.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n },\n};\n\ninterface StoryArgs {\n indeterminate?: boolean;\n}\n\nexport const Default = ({ indeterminate }: StoryArgs = {}): TemplateResult => {\n return html`\n <div\n style=\"width: 250px; height: 150px; display: flex; align-items: center; justify-content: space-around;\"\n >\n <sp-progress-circle\n progress=\"27\"\n size=\"s\"\n ?indeterminate=${indeterminate}\n ></sp-progress-circle>\n <sp-progress-circle\n progress=\"27\"\n ?indeterminate=${indeterminate}\n ></sp-progress-circle>\n <sp-progress-circle\n progress=\"27\"\n size=\"l\"\n ?indeterminate=${indeterminate}\n ></sp-progress-circle>\n </div>\n `;\n};\nDefault.args = {\n indeterminate: false,\n};\n\nexport const overBackground = ({\n indeterminate,\n}: StoryArgs = {}): TemplateResult => {\n return html`\n <div\n style=\"width: 250px; height: 150px; background-color: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: space-around;\"\n >\n <sp-progress-circle\n progress=\"53\"\n over-background\n size=\"s\"\n ?indeterminate=${indeterminate}\n ></sp-progress-circle>\n <sp-progress-circle\n progress=\"53\"\n over-background\n ?indeterminate=${indeterminate}\n ></sp-progress-circle>\n <sp-progress-circle\n progress=\"53\"\n over-background\n size=\"l\"\n ?indeterminate=${indeterminate}\n ></sp-progress-circle>\n </div>\n `;\n};\noverBackground.args = {\n indeterminate: false,\n};\n\noverBackground.story = {\n name: 'Over background',\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/progress-circle.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('ProgressCircleStories', stories);
15
- //# sourceMappingURL=progress-circle.test-vrt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"progress-circle.test-vrt.js","sourceRoot":"","sources":["progress-circle.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,uBAAuB,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/progress-circle.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ProgressCircleStories', stories);\n"]}
@@ -1,53 +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 { elementUpdated, expect, fixture, html } from '@open-wc/testing';
13
- import '../sp-progress-circle.js';
14
- describe('ProgressCircle', () => {
15
- it('loads', async () => {
16
- const el = await fixture(html `
17
- <sp-progress-circle label="Loading"></sp-progress-circle>
18
- `);
19
- await elementUpdated(el);
20
- expect(el).to.not.be.undefined;
21
- await expect(el).to.be.accessible();
22
- });
23
- it('loads - [indeterminate]', async () => {
24
- const el = await fixture(html `
25
- <sp-progress-circle
26
- indeterminate
27
- label="Loading"
28
- ></sp-progress-circle>
29
- `);
30
- await elementUpdated(el);
31
- expect(el).to.not.be.undefined;
32
- await expect(el).to.be.accessible();
33
- });
34
- it('accepts user `role`', async () => {
35
- const el = await fixture(html `
36
- <sp-progress-circle role="progressbar"></sp-progress-circle>
37
- `);
38
- await elementUpdated(el);
39
- expect(el.getAttribute('role')).to.equal('progressbar');
40
- });
41
- it('returns to indeterminate', async () => {
42
- const el = await fixture(html `
43
- <sp-progress-circle progress="50"></sp-progress-circle>
44
- `);
45
- await elementUpdated(el);
46
- expect(el.hasAttribute('aria-valuenow')).to.be.true;
47
- expect(el.getAttribute('aria-valuenow')).to.equal('50');
48
- el.indeterminate = true;
49
- await elementUpdated(el);
50
- expect(el.hasAttribute('aria-valuenow')).to.be.false;
51
- });
52
- });
53
- //# sourceMappingURL=progress-circle.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"progress-circle.test.js","sourceRoot":"","sources":["progress-circle.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,0BAA0B,CAAC;AAGlC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE;QACnB,MAAM,EAAE,GAAG,MAAM,OAAO,CAAiB,IAAI,CAAA;;SAE5C,CAAC,CAA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AC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAExD,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;QAExB,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACzD,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\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 { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '../sp-progress-circle.js';\nimport { ProgressCircle } from '..';\n\ndescribe('ProgressCircle', () => {\n it('loads', async () => {\n const el = await fixture<ProgressCircle>(html`\n <sp-progress-circle label=\"Loading\"></sp-progress-circle>\n `);\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n\n await expect(el).to.be.accessible();\n });\n it('loads - [indeterminate]', async () => {\n const el = await fixture<ProgressCircle>(html`\n <sp-progress-circle\n indeterminate\n label=\"Loading\"\n ></sp-progress-circle>\n `);\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n\n await expect(el).to.be.accessible();\n });\n it('accepts user `role`', async () => {\n const el = await fixture<ProgressCircle>(html`\n <sp-progress-circle role=\"progressbar\"></sp-progress-circle>\n `);\n\n await elementUpdated(el);\n\n expect(el.getAttribute('role')).to.equal('progressbar');\n });\n it('returns to indeterminate', async () => {\n const el = await fixture<ProgressCircle>(html`\n <sp-progress-circle progress=\"50\"></sp-progress-circle>\n `);\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-valuenow')).to.be.true;\n expect(el.getAttribute('aria-valuenow')).to.equal('50');\n\n el.indeterminate = true;\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-valuenow')).to.be.false;\n });\n});\n"]}