@spectrum-web-components/badge 0.1.2 → 0.1.4-devmode.7
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 +22 -9
- package/sp-badge.dev.js +3 -0
- package/sp-badge.dev.js.map +7 -0
- package/sp-badge.js +3 -14
- package/sp-badge.js.map +7 -1
- package/src/Badge.dev.js +57 -0
- package/src/Badge.dev.js.map +7 -0
- package/src/Badge.js +48 -46
- package/src/Badge.js.map +7 -1
- package/src/badge.css.dev.js +202 -0
- package/src/badge.css.dev.js.map +7 -0
- package/src/badge.css.js +3 -14
- package/src/badge.css.js.map +7 -1
- package/src/index.dev.js +2 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -13
- package/src/index.js.map +7 -1
- package/src/spectrum-badge.css.dev.js +170 -0
- package/src/spectrum-badge.css.dev.js.map +7 -0
- package/src/spectrum-badge.css.js +3 -14
- package/src/spectrum-badge.css.js.map +7 -1
- package/stories/badge.stories.js +13 -24
- package/stories/badge.stories.js.map +7 -1
- package/test/badge.test-vrt.js +4 -15
- package/test/badge.test-vrt.js.map +7 -1
- package/test/badge.test.js +10 -21
- package/test/badge.test.js.map +7 -1
- package/test/benchmark/basic-test.js +6 -17
- package/test/benchmark/basic-test.js.map +7 -1
package/test/badge.test.js
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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-badge.js';
|
|
14
|
-
import '../../icons-workflow/icons/sp-icon-checkmark-circle.js';
|
|
15
|
-
describe('Badge', () => {
|
|
16
|
-
it('loads default badge accessibly', async () => {
|
|
17
|
-
const el = await fixture(html `
|
|
1
|
+
import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
|
|
2
|
+
import "@spectrum-web-components/badge/sp-badge.js";
|
|
3
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark-circle.js";
|
|
4
|
+
describe("Badge", () => {
|
|
5
|
+
it("loads default badge accessibly", async () => {
|
|
6
|
+
const el = await fixture(html`
|
|
18
7
|
<sp-badge>
|
|
19
8
|
<sp-icon-checkmark-circle
|
|
20
9
|
slot="icon"
|
|
@@ -22,8 +11,8 @@ describe('Badge', () => {
|
|
|
22
11
|
Icon and label
|
|
23
12
|
</sp-badge>
|
|
24
13
|
`);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
await elementUpdated(el);
|
|
15
|
+
await expect(el).to.be.accessible();
|
|
16
|
+
});
|
|
28
17
|
});
|
|
29
|
-
//# sourceMappingURL=badge.test.js.map
|
|
18
|
+
//# sourceMappingURL=badge.test.js.map
|
package/test/badge.test.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["badge.test.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 { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '@spectrum-web-components/badge/sp-badge.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark-circle.js';\nimport { Badge } from '../src/Badge.js';\n\ndescribe('Badge', () => {\n it('loads default badge accessibly', async () => {\n const el = await fixture<Badge>(\n html`\n <sp-badge>\n <sp-icon-checkmark-circle\n slot=\"icon\"\n ></sp-icon-checkmark-circle>\n Icon and label\n </sp-badge>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"],
|
|
5
|
+
"mappings": "AAYA;AAEA;AACA;AAGA,SAAS,SAAS,MAAM;AACpB,KAAG,kCAAkC,YAAY;AAC7C,UAAM,KAAK,MAAM,QACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAQJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACL,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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/badge/sp-badge.js';
|
|
13
|
-
import '@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark-circle.js';
|
|
14
|
-
import { html } from '@spectrum-web-components/base';
|
|
15
|
-
import { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';
|
|
16
|
-
measureFixtureCreation(html `
|
|
1
|
+
import "@spectrum-web-components/badge/sp-badge.js";
|
|
2
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark-circle.js";
|
|
3
|
+
import { html } from "@spectrum-web-components/base";
|
|
4
|
+
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
|
5
|
+
measureFixtureCreation(html`
|
|
17
6
|
<sp-badge>
|
|
18
7
|
<sp-icon-checkmark-circle slot="icon"></sp-icon-checkmark-circle>
|
|
19
8
|
Icon and label
|
|
20
9
|
</sp-badge>
|
|
21
10
|
`);
|
|
22
|
-
//# sourceMappingURL=basic-test.js.map
|
|
11
|
+
//# sourceMappingURL=basic-test.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["basic-test.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/badge/sp-badge.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark-circle.js';\nimport { html } from '@spectrum-web-components/base';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-badge>\n <sp-icon-checkmark-circle slot=\"icon\"></sp-icon-checkmark-circle>\n Icon and label\n </sp-badge>\n`);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AACA;AAEA,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA,CAKtB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|