@spectrum-web-components/progress-circle 0.4.0 → 0.4.3-express.12

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/README.md CHANGED
@@ -37,7 +37,7 @@ An `<sp-progress-circle>` is used to visually show the progression of a system o
37
37
  <sp-progress-circle
38
38
  label="A small representation of a somewhat completed action"
39
39
  progress="71"
40
- size="small"
40
+ size="s"
41
41
  ></sp-progress-circle>
42
42
  <sp-progress-circle
43
43
  label="A medium representation of a recently started action"
@@ -46,7 +46,7 @@ An `<sp-progress-circle>` is used to visually show the progression of a system o
46
46
  <sp-progress-circle
47
47
  label="A large representation of an almost completed action"
48
48
  progress="86"
49
- size="large"
49
+ size="l"
50
50
  ></sp-progress-circle>
51
51
  </div>
52
52
  ```
@@ -63,7 +63,7 @@ When a loader needs to be placed on top of a colored background, use the over ba
63
63
  label="A small representation of a partially completed action"
64
64
  progress="42"
65
65
  over-background
66
- size="small"
66
+ size="s"
67
67
  ></sp-progress-circle>
68
68
  <sp-progress-circle
69
69
  label="A medium representation of a barely started action"
@@ -74,7 +74,7 @@ When a loader needs to be placed on top of a colored background, use the over ba
74
74
  label="A large representation of a somewhat completed action"
75
75
  progress="68"
76
76
  over-background
77
- size="large"
77
+ size="l"
78
78
  ></sp-progress-circle>
79
79
  </div>
80
80
  ```
@@ -90,7 +90,7 @@ A progress circle can be either determinate or indeterminate as signified by `[i
90
90
  <sp-progress-circle
91
91
  label="A small representation of an unclear amount of work"
92
92
  indeterminate
93
- size="small"
93
+ size="s"
94
94
  ></sp-progress-circle>
95
95
  <sp-progress-circle
96
96
  label="A medium representation of an unclear amount of work"
@@ -99,14 +99,14 @@ A progress circle can be either determinate or indeterminate as signified by `[i
99
99
  <sp-progress-circle
100
100
  label="A large representation of an unclear amount of work"
101
101
  indeterminate
102
- size="large"
102
+ size="l"
103
103
  ></sp-progress-circle>
104
104
  </div>
105
105
  ```
106
106
 
107
107
  ### Size
108
108
 
109
- Progress Circles come in 3 sizes: small (`[size="small"]`), medium (default), or large (`[size="large"]`). These are available to fit various contexts. For example, the small loader can be used in place of an icon or in tight spaces, while the large one can be used for full-page loading.
109
+ Progress Circles come in 3 sizes: small (`[size="s"]`), medium (`[size="m"]`, default), or large (`[size="l"]`). These are available to fit various contexts. For example, the small loader can be used in place of an icon or in tight spaces, while the large one can be used for full-page loading.
110
110
 
111
111
  ## Accessibility
112
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/progress-circle",
3
- "version": "0.4.0",
3
+ "version": "0.4.3-express.12+27420d682",
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.0",
47
+ "@spectrum-web-components/base": "^0.5.1",
48
48
  "tslib": "^2.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@spectrum-css/progresscircle": "^1.0.4"
51
+ "@spectrum-css/progresscircle": "^1.0.12"
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": "7ce77352f6894043bceac9ef92b21e5f85420969"
58
+ "gitHead": "27420d682bb3b3f679875e1f4148c10df0bd738c"
59
59
  }
@@ -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,CAAC;QAEH,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QACzB,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC;QAE/B,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAA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AE,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"]}