@spectrum-web-components/badge 0.3.0-devmode.0 → 0.3.1
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 +4 -4
- package/sp-badge.dev.js +1 -0
- package/sp-badge.dev.js.map +1 -1
- package/sp-badge.js +1 -2
- package/sp-badge.js.map +2 -2
- package/src/Badge.dev.js +9 -3
- package/src/Badge.dev.js.map +1 -1
- package/src/Badge.js +2 -54
- package/src/Badge.js.map +2 -2
- package/src/badge.css.dev.js +1 -0
- package/src/badge.css.dev.js.map +1 -1
- package/src/badge.css.js +2 -4
- package/src/badge.css.js.map +2 -2
- package/src/index.dev.js +1 -0
- package/src/index.dev.js.map +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/spectrum-badge.css.dev.js +1 -0
- package/src/spectrum-badge.css.dev.js.map +1 -1
- package/src/spectrum-badge.css.js +2 -4
- package/src/spectrum-badge.css.js.map +2 -2
- package/stories/badge.stories.js +1 -0
- package/stories/badge.stories.js.map +1 -1
- package/test/badge.test-vrt.js +1 -0
- package/test/badge.test-vrt.js.map +2 -2
- package/test/badge.test.js +19 -7
- package/test/badge.test.js.map +1 -1
- package/test/benchmark/basic-test.js +1 -0
- package/test/benchmark/basic-test.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/badge",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"lit-html"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@spectrum-web-components/base": "^0.
|
|
61
|
-
"@spectrum-web-components/shared": "^0.15.
|
|
60
|
+
"@spectrum-web-components/base": "^0.7.0",
|
|
61
|
+
"@spectrum-web-components/shared": "^0.15.1",
|
|
62
62
|
"tslib": "^2.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"./sp-*.js",
|
|
71
71
|
"./**/*.dev.js"
|
|
72
72
|
],
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "96da2eef637c5d50dd04a75d40a46353116787b4"
|
|
74
74
|
}
|
package/sp-badge.dev.js
CHANGED
package/sp-badge.dev.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-badge.ts"],
|
|
4
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 { Badge } from './src/Badge.dev.js'\n\ncustomElements.define('sp-badge', Badge);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-badge': Badge;\n }\n}\n"],
|
|
5
|
-
"mappings": "AAYA;
|
|
5
|
+
"mappings": ";AAYA,SAAS,aAAa;AAEtB,eAAe,OAAO,YAAY,KAAK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/sp-badge.js
CHANGED
package/sp-badge.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-badge.ts"],
|
|
4
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 { Badge } from './src/Badge.js';\n\ncustomElements.define('sp-badge', Badge);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-badge': Badge;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "aAYA,OAAS,SAAAA,MAAa,iBAEtB,eAAe,OAAO,WAAYA,CAAK",
|
|
6
|
+
"names": ["Badge"]
|
|
7
7
|
}
|
package/src/Badge.dev.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -40,9 +41,14 @@ export class Badge extends SizedMixin(ObserveSlotText(SpectrumElement, "")) {
|
|
|
40
41
|
render() {
|
|
41
42
|
if (true) {
|
|
42
43
|
if (!BADGE_VARIANTS.includes(this.variant)) {
|
|
43
|
-
window.__swc.warn(
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
window.__swc.warn(
|
|
45
|
+
this,
|
|
46
|
+
`<${this.localName}> element expect the "variant" attribute to be one of the following:`,
|
|
47
|
+
"https://opensource.adobe.com/spectrum-web-components/components/badge/#variants",
|
|
48
|
+
{
|
|
49
|
+
issues: [...BADGE_VARIANTS]
|
|
50
|
+
}
|
|
51
|
+
);
|
|
46
52
|
}
|
|
47
53
|
}
|
|
48
54
|
return html`
|
package/src/Badge.dev.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["Badge.ts"],
|
|
4
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 {\n CSSResultArray,\n html,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport { ObserveSlotText } from '@spectrum-web-components/shared/src/observe-slot-text.js';\nimport styles from './badge.css.js';\n\nexport const BADGE_VARIANTS = [\n 'neutral',\n 'informative',\n 'positive',\n 'negative',\n 'fuchsia',\n 'indigo',\n 'magenta',\n 'purple',\n 'seafoam',\n 'yellow',\n] as const;\nexport type BadgeVariant = typeof BADGE_VARIANTS[number];\n\n/**\n * @element sp-badge\n *\n * @slot - Text label of the badge\n * @slot icon - Optional icon that appears to the left of the label\n */\nexport class Badge extends SizedMixin(ObserveSlotText(SpectrumElement, '')) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, reflect: true })\n public variant: BadgeVariant = 'informative';\n\n protected override render(): TemplateResult {\n if (window.__swc.DEBUG) {\n if (!BADGE_VARIANTS.includes(this.variant)) {\n window.__swc.warn(\n this,\n `<${this.localName}> element expect the \"variant\" attribute to be one of the following:`,\n 'https://opensource.adobe.com/spectrum-web-components/components/badge/#variants',\n {\n issues: [...BADGE_VARIANTS]\n },\n );\n }\n }\n return html`\n <slot name=\"icon\" ?icon-only=${!this.slotHasContent}></slot>\n <div id=\"label\">\n <slot></slot>\n </div>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,SAAS,uBAAuB;AAChC,OAAO,YAAY;AAEZ,aAAM,iBAAiB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AASO,aAAM,cAAc,WAAW,gBAAgB,iBAAiB,EAAE,CAAC,EAAE;AAAA,EAArE;AAAA;AAMH,SAAO,UAAwB;AAAA;AAAA,EAL/B,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAKmB,SAAyB;AACxC,QAAI,MAAoB;AACpB,UAAI,CAAC,eAAe,SAAS,KAAK,OAAO,GAAG;AACxC,eAAO,MAAM;AAAA,UACT;AAAA,UACA,IAAI,KAAK;AAAA,UACT;AAAA,UACA;AAAA,YACI,QAAQ,CAAC,GAAG,cAAc;AAAA,UAC9B;AAAA,QACJ;AAAA,MACJ;AAAA,IACJ;AACA,WAAO;AAAA,2CAC4B,CAAC,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7C;AACJ;AAtBW;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GALhC,MAMF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/Badge.js
CHANGED
|
@@ -1,59 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
-
if (decorator = decorators[i])
|
|
7
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
-
if (kind && result)
|
|
9
|
-
__defProp(target, key, result);
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
import {
|
|
13
|
-
html,
|
|
14
|
-
SizedMixin,
|
|
15
|
-
SpectrumElement
|
|
16
|
-
} from "@spectrum-web-components/base";
|
|
17
|
-
import { property } from "@spectrum-web-components/base/src/decorators.js";
|
|
18
|
-
import { ObserveSlotText } from "@spectrum-web-components/shared/src/observe-slot-text.js";
|
|
19
|
-
import styles from "./badge.css.js";
|
|
20
|
-
export const BADGE_VARIANTS = [
|
|
21
|
-
"neutral",
|
|
22
|
-
"informative",
|
|
23
|
-
"positive",
|
|
24
|
-
"negative",
|
|
25
|
-
"fuchsia",
|
|
26
|
-
"indigo",
|
|
27
|
-
"magenta",
|
|
28
|
-
"purple",
|
|
29
|
-
"seafoam",
|
|
30
|
-
"yellow"
|
|
31
|
-
];
|
|
32
|
-
export class Badge extends SizedMixin(ObserveSlotText(SpectrumElement, "")) {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments);
|
|
35
|
-
this.variant = "informative";
|
|
36
|
-
}
|
|
37
|
-
static get styles() {
|
|
38
|
-
return [styles];
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
if (false) {
|
|
42
|
-
if (!BADGE_VARIANTS.includes(this.variant)) {
|
|
43
|
-
window.__swc.warn(this, `<${this.localName}> element expect the "variant" attribute to be one of the following:`, "https://opensource.adobe.com/spectrum-web-components/components/badge/#variants", {
|
|
44
|
-
issues: [...BADGE_VARIANTS]
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return html`
|
|
1
|
+
"use strict";var l=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=(r,t,i,o)=>{for(var e=o>1?void 0:o?p(t,i):t,s=r.length-1,n;s>=0;s--)(n=r[s])&&(e=(o?n(t,i,e):n(e))||e);return o&&e&&l(t,i,e),e};import{html as m,SizedMixin as c,SpectrumElement as u}from"@spectrum-web-components/base";import{property as d}from"@spectrum-web-components/base/src/decorators.js";import{ObserveSlotText as f}from"@spectrum-web-components/shared/src/observe-slot-text.js";import A from"./badge.css.js";export const BADGE_VARIANTS=["neutral","informative","positive","negative","fuchsia","indigo","magenta","purple","seafoam","yellow"];export class Badge extends c(f(u,"")){constructor(){super(...arguments);this.variant="informative"}static get styles(){return[A]}render(){return m`
|
|
49
2
|
<slot name="icon" ?icon-only=${!this.slotHasContent}></slot>
|
|
50
3
|
<div id="label">
|
|
51
4
|
<slot></slot>
|
|
52
5
|
</div>
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
__decorateClass([
|
|
57
|
-
property({ type: String, reflect: true })
|
|
58
|
-
], Badge.prototype, "variant", 2);
|
|
6
|
+
`}}a([d({type:String,reflect:!0})],Badge.prototype,"variant",2);
|
|
59
7
|
//# sourceMappingURL=Badge.js.map
|
package/src/Badge.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["Badge.ts"],
|
|
4
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 {\n CSSResultArray,\n html,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport { ObserveSlotText } from '@spectrum-web-components/shared/src/observe-slot-text.js';\nimport styles from './badge.css.js';\n\nexport const BADGE_VARIANTS = [\n 'neutral',\n 'informative',\n 'positive',\n 'negative',\n 'fuchsia',\n 'indigo',\n 'magenta',\n 'purple',\n 'seafoam',\n 'yellow',\n] as const;\nexport type BadgeVariant = typeof BADGE_VARIANTS[number];\n\n/**\n * @element sp-badge\n *\n * @slot - Text label of the badge\n * @slot icon - Optional icon that appears to the left of the label\n */\nexport class Badge extends SizedMixin(ObserveSlotText(SpectrumElement, '')) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, reflect: true })\n public variant: BadgeVariant = 'informative';\n\n protected override render(): TemplateResult {\n if (window.__swc.DEBUG) {\n if (!BADGE_VARIANTS.includes(this.variant)) {\n window.__swc.warn(\n this,\n `<${this.localName}> element expect the \"variant\" attribute to be one of the following:`,\n 'https://opensource.adobe.com/spectrum-web-components/components/badge/#variants',\n {\n issues: [...BADGE_VARIANTS]\n },\n );\n }\n }\n return html`\n <slot name=\"icon\" ?icon-only=${!this.slotHasContent}></slot>\n <div id=\"label\">\n <slot></slot>\n </div>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "qNAYA,OAEI,QAAAA,EACA,cAAAC,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAS,mBAAAC,MAAuB,2DAChC,OAAOC,MAAY,iBAEZ,aAAM,eAAiB,CAC1B,UACA,cACA,WACA,WACA,UACA,SACA,UACA,SACA,UACA,QACJ,EASO,aAAM,cAAcJ,EAAWG,EAAgBF,EAAiB,EAAE,CAAC,CAAE,CAArE,kCAMH,KAAO,QAAwB,cAL/B,WAA2B,QAAyB,CAChD,MAAO,CAACG,CAAM,CAClB,CAKmB,QAAyB,CAaxC,OAAOL;AAAA,2CAC4B,CAAC,KAAK;AAAA;AAAA;AAAA;AAAA,SAK7C,CACJ,CAtBWM,EAAA,CADNH,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GALhC,MAMF",
|
|
6
|
+
"names": ["html", "SizedMixin", "SpectrumElement", "property", "ObserveSlotText", "styles", "__decorateClass"]
|
|
7
7
|
}
|
package/src/badge.css.dev.js
CHANGED
package/src/badge.css.dev.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["badge.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-s-neutral-textonly-text-padding-bottom\n);--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-s-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-75)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-s-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-static-size-50)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-s-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-s-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-s-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-s-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-s-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-s-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-115)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-s-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-115)\n)}:host([size=m]){--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-m-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-100)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-m-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-75)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-m-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-115)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-m-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-m-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-m-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-m-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-m-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-m-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-150)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-m-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-l-neutral-textonly-text-padding-top\n);--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-l-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-200)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-l-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-130)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-l-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-l-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-l-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-l-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-l-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-l-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-185)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-l-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-185)\n)}:host([size=xl]){--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-xl-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-300)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-xl-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-150)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-xl-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-175)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-xl-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-xl-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-225)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-xl-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-225)\n)}:host([dir=ltr]){padding-left:var(\n--spectrum-badge-neutral-textonly-padding-right\n);padding-right:var(--spectrum-badge-neutral-textonly-padding-left)}:host([dir=rtl]){padding-left:var(--spectrum-badge-neutral-textonly-padding-left);padding-right:var(\n--spectrum-badge-neutral-textonly-padding-right\n)}:host{-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased;border-radius:var(--spectrum-badge-neutral-textonly-border-top-left-radius) var(--spectrum-badge-neutral-textonly-border-top-right-radius) var(--spectrum-badge-neutral-textonly-border-bottom-right-radius) var(--spectrum-badge-neutral-textonly-border-bottom-left-radius);cursor:default;display:inline-block;font-size:var(--spectrum-badge-neutral-textonly-text-size);line-height:var(--spectrum-badge-neutral-textonly-text-line-height);padding-bottom:var(--spectrum-badge-neutral-textonly-text-padding-bottom);padding-top:var(--spectrum-badge-neutral-textonly-text-padding-top);position:relative;width:auto}:host([variant=neutral]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-neutral-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-neutral-textonly-background-color,var(--spectrum-semantic-neutral-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-neutral-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-neutral-textonly-background-color-hover,var(--spectrum-semantic-neutral-background-color-hover)\n)}:host([variant=informative]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-informative-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-informative-textonly-background-color,var(--spectrum-semantic-informative-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-informative-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-informative-textonly-background-color-hover,var(--spectrum-semantic-informative-background-color-hover)\n)}:host([variant=positive]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-positive-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-positive-textonly-background-color,var(--spectrum-semantic-positive-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-positive-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-positive-textonly-background-color-hover,var(--spectrum-semantic-positive-background-color-hover)\n)}:host([variant=negative]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-negative-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-negative-textonly-background-color,var(--spectrum-semantic-negative-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-negative-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-negative-textonly-background-color-hover,var(--spectrum-semantic-negative-background-color-hover)\n)}:host([variant=fuchsia]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-fuchsia-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-fuchsia-textonly-background-color,var(--spectrum-global-color-static-fuchsia-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-fuchsia-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-fuchsia-textonly-background-color-hover,var(--spectrum-global-color-static-fuchsia-700)\n)}:host([variant=indigo]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-indigo-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-indigo-textonly-background-color,var(--spectrum-global-color-static-indigo-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-indigo-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-indigo-textonly-background-color-hover,var(--spectrum-global-color-static-indigo-700)\n)}:host([variant=magenta]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-magenta-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-magenta-textonly-background-color,var(--spectrum-global-color-static-magenta-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-magenta-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-magenta-textonly-background-color-hover,var(--spectrum-global-color-static-magenta-700)\n)}:host([variant=purple]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-purple-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-purple-textonly-background-color,var(--spectrum-global-color-static-purple-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-purple-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-purple-textonly-background-color-hover,var(--spectrum-global-color-static-purple-700)\n)}:host([variant=seafoam]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-seafoam-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-seafoam-textonly-background-color,var(--spectrum-global-color-static-seafoam-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-seafoam-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-seafoam-textonly-background-color-hover,var(--spectrum-global-color-static-seafoam-700)\n)}:host([variant=yellow]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-yellow-texticon-text-color,var(--spectrum-global-color-static-black)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-yellow-textonly-background-color,var(--spectrum-alias-background-color-yellow-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-yellow-textonly-text-color-hover,var(--spectrum-global-color-static-black)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-yellow-textonly-background-color-hover,var(--spectrum-alias-background-color-yellow-hover)\n)}:host{background-color:var(--spectrum-badge-m-textonly-background-color);color:var(--spectrum-badge-m-texticon-text-color)}:host{align-items:center;display:inline-flex}:host([fixed=top]){--spectrum-badge-neutral-textonly-border-top-left-radius:0;--spectrum-badge-neutral-textonly-border-top-right-radius:0}:host([fixed=right]){--spectrum-badge-neutral-textonly-border-top-right-radius:0;--spectrum-badge-neutral-textonly-border-bottom-right-radius:0}:host([fixed=bottom]){--spectrum-badge-neutral-textonly-border-bottom-left-radius:0;--spectrum-badge-neutral-textonly-border-bottom-right-radius:0}:host([fixed=left]){--spectrum-badge-neutral-textonly-border-top-left-radius:0;--spectrum-badge-neutral-textonly-border-bottom-left-radius:0}:host([size=s]){--spectrum-icon-tshirt-size-height:var(\n--spectrum-alias-workflow-icon-size-s\n);--spectrum-icon-tshirt-size-width:var(\n--spectrum-alias-workflow-icon-size-s\n);--spectrum-ui-icon-tshirt-size-height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75\n);--spectrum-ui-icon-tshirt-size-width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75\n)}:host([size=m]){--spectrum-icon-tshirt-size-height:var(\n--spectrum-alias-workflow-icon-size-m\n);--spectrum-icon-tshirt-size-width:var(\n--spectrum-alias-workflow-icon-size-m\n);--spectrum-ui-icon-tshirt-size-height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-100\n);--spectrum-ui-icon-tshirt-size-width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-100\n)}:host([size=l]){--spectrum-icon-tshirt-size-height:var(\n--spectrum-alias-workflow-icon-size-l\n);--spectrum-icon-tshirt-size-width:var(\n--spectrum-alias-workflow-icon-size-l\n);--spectrum-ui-icon-tshirt-size-height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200\n);--spectrum-ui-icon-tshirt-size-width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200\n)}:host([size=xl]){--spectrum-icon-tshirt-size-height:var(\n--spectrum-alias-workflow-icon-size-xl\n);--spectrum-icon-tshirt-size-width:var(\n--spectrum-alias-workflow-icon-size-xl\n);--spectrum-ui-icon-tshirt-size-height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-300\n);--spectrum-ui-icon-tshirt-size-width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-300\n)}::slotted([slot=icon]){flex-shrink:0;margin-right:calc(var(--spectrum-badge-neutral-textonly-padding-left)/2)}slot[icon-only]::slotted([slot=icon]){margin-left:calc(var(--spectrum-badge-neutral-textonly-text-padding-bottom) - var(--spectrum-badge-neutral-textonly-padding-left));margin-right:calc(var(--spectrum-badge-neutral-textonly-text-padding-bottom) - var(--spectrum-badge-neutral-textonly-padding-left))}#label{max-height:calc(var(--spectrum-badge-neutral-textonly-text-line-height)*var(--spectrum-badge-neutral-textonly-text-size)*2);overflow:hidden}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "AAWA;
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuMf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/badge.css.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const styles = css`
|
|
1
|
+
"use strict";import{css as t}from"@spectrum-web-components/base";const e=t`
|
|
3
2
|
:host([size=s]){--spectrum-badge-neutral-textonly-text-padding-bottom:var(
|
|
4
3
|
--spectrum-badge-s-neutral-textonly-text-padding-bottom
|
|
5
4
|
);--spectrum-badge-neutral-textonly-text-size:var(
|
|
@@ -197,6 +196,5 @@ const styles = css`
|
|
|
197
196
|
);--spectrum-ui-icon-tshirt-size-width:var(
|
|
198
197
|
--spectrum-alias-ui-icon-cornertriangle-size-300
|
|
199
198
|
)}::slotted([slot=icon]){flex-shrink:0;margin-right:calc(var(--spectrum-badge-neutral-textonly-padding-left)/2)}slot[icon-only]::slotted([slot=icon]){margin-left:calc(var(--spectrum-badge-neutral-textonly-text-padding-bottom) - var(--spectrum-badge-neutral-textonly-padding-left));margin-right:calc(var(--spectrum-badge-neutral-textonly-text-padding-bottom) - var(--spectrum-badge-neutral-textonly-padding-left))}#label{max-height:calc(var(--spectrum-badge-neutral-textonly-text-line-height)*var(--spectrum-badge-neutral-textonly-text-size)*2);overflow:hidden}
|
|
200
|
-
`;
|
|
201
|
-
export default styles;
|
|
199
|
+
`;export default e;
|
|
202
200
|
//# sourceMappingURL=badge.css.js.map
|
package/src/badge.css.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["badge.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-s-neutral-textonly-text-padding-bottom\n);--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-s-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-75)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-s-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-static-size-50)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-s-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-s-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-s-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-s-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-s-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-s-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-115)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-s-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-115)\n)}:host([size=m]){--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-m-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-100)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-m-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-75)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-m-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-115)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-m-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-m-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-m-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-m-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-m-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-m-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-150)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-m-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-l-neutral-textonly-text-padding-top\n);--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-l-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-200)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-l-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-130)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-l-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-l-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-l-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-l-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-l-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-l-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-185)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-l-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-185)\n)}:host([size=xl]){--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-xl-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-300)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-xl-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-150)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-xl-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-175)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-xl-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-xl-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-225)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-xl-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-225)\n)}:host([dir=ltr]){padding-left:var(\n--spectrum-badge-neutral-textonly-padding-right\n);padding-right:var(--spectrum-badge-neutral-textonly-padding-left)}:host([dir=rtl]){padding-left:var(--spectrum-badge-neutral-textonly-padding-left);padding-right:var(\n--spectrum-badge-neutral-textonly-padding-right\n)}:host{-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased;border-radius:var(--spectrum-badge-neutral-textonly-border-top-left-radius) var(--spectrum-badge-neutral-textonly-border-top-right-radius) var(--spectrum-badge-neutral-textonly-border-bottom-right-radius) var(--spectrum-badge-neutral-textonly-border-bottom-left-radius);cursor:default;display:inline-block;font-size:var(--spectrum-badge-neutral-textonly-text-size);line-height:var(--spectrum-badge-neutral-textonly-text-line-height);padding-bottom:var(--spectrum-badge-neutral-textonly-text-padding-bottom);padding-top:var(--spectrum-badge-neutral-textonly-text-padding-top);position:relative;width:auto}:host([variant=neutral]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-neutral-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-neutral-textonly-background-color,var(--spectrum-semantic-neutral-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-neutral-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-neutral-textonly-background-color-hover,var(--spectrum-semantic-neutral-background-color-hover)\n)}:host([variant=informative]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-informative-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-informative-textonly-background-color,var(--spectrum-semantic-informative-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-informative-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-informative-textonly-background-color-hover,var(--spectrum-semantic-informative-background-color-hover)\n)}:host([variant=positive]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-positive-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-positive-textonly-background-color,var(--spectrum-semantic-positive-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-positive-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-positive-textonly-background-color-hover,var(--spectrum-semantic-positive-background-color-hover)\n)}:host([variant=negative]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-negative-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-negative-textonly-background-color,var(--spectrum-semantic-negative-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-negative-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-negative-textonly-background-color-hover,var(--spectrum-semantic-negative-background-color-hover)\n)}:host([variant=fuchsia]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-fuchsia-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-fuchsia-textonly-background-color,var(--spectrum-global-color-static-fuchsia-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-fuchsia-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-fuchsia-textonly-background-color-hover,var(--spectrum-global-color-static-fuchsia-700)\n)}:host([variant=indigo]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-indigo-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-indigo-textonly-background-color,var(--spectrum-global-color-static-indigo-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-indigo-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-indigo-textonly-background-color-hover,var(--spectrum-global-color-static-indigo-700)\n)}:host([variant=magenta]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-magenta-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-magenta-textonly-background-color,var(--spectrum-global-color-static-magenta-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-magenta-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-magenta-textonly-background-color-hover,var(--spectrum-global-color-static-magenta-700)\n)}:host([variant=purple]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-purple-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-purple-textonly-background-color,var(--spectrum-global-color-static-purple-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-purple-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-purple-textonly-background-color-hover,var(--spectrum-global-color-static-purple-700)\n)}:host([variant=seafoam]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-seafoam-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-seafoam-textonly-background-color,var(--spectrum-global-color-static-seafoam-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-seafoam-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-seafoam-textonly-background-color-hover,var(--spectrum-global-color-static-seafoam-700)\n)}:host([variant=yellow]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-yellow-texticon-text-color,var(--spectrum-global-color-static-black)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-yellow-textonly-background-color,var(--spectrum-alias-background-color-yellow-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-yellow-textonly-text-color-hover,var(--spectrum-global-color-static-black)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-yellow-textonly-background-color-hover,var(--spectrum-alias-background-color-yellow-hover)\n)}:host{background-color:var(--spectrum-badge-m-textonly-background-color);color:var(--spectrum-badge-m-texticon-text-color)}:host{align-items:center;display:inline-flex}:host([fixed=top]){--spectrum-badge-neutral-textonly-border-top-left-radius:0;--spectrum-badge-neutral-textonly-border-top-right-radius:0}:host([fixed=right]){--spectrum-badge-neutral-textonly-border-top-right-radius:0;--spectrum-badge-neutral-textonly-border-bottom-right-radius:0}:host([fixed=bottom]){--spectrum-badge-neutral-textonly-border-bottom-left-radius:0;--spectrum-badge-neutral-textonly-border-bottom-right-radius:0}:host([fixed=left]){--spectrum-badge-neutral-textonly-border-top-left-radius:0;--spectrum-badge-neutral-textonly-border-bottom-left-radius:0}:host([size=s]){--spectrum-icon-tshirt-size-height:var(\n--spectrum-alias-workflow-icon-size-s\n);--spectrum-icon-tshirt-size-width:var(\n--spectrum-alias-workflow-icon-size-s\n);--spectrum-ui-icon-tshirt-size-height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75\n);--spectrum-ui-icon-tshirt-size-width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75\n)}:host([size=m]){--spectrum-icon-tshirt-size-height:var(\n--spectrum-alias-workflow-icon-size-m\n);--spectrum-icon-tshirt-size-width:var(\n--spectrum-alias-workflow-icon-size-m\n);--spectrum-ui-icon-tshirt-size-height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-100\n);--spectrum-ui-icon-tshirt-size-width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-100\n)}:host([size=l]){--spectrum-icon-tshirt-size-height:var(\n--spectrum-alias-workflow-icon-size-l\n);--spectrum-icon-tshirt-size-width:var(\n--spectrum-alias-workflow-icon-size-l\n);--spectrum-ui-icon-tshirt-size-height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200\n);--spectrum-ui-icon-tshirt-size-width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200\n)}:host([size=xl]){--spectrum-icon-tshirt-size-height:var(\n--spectrum-alias-workflow-icon-size-xl\n);--spectrum-icon-tshirt-size-width:var(\n--spectrum-alias-workflow-icon-size-xl\n);--spectrum-ui-icon-tshirt-size-height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-300\n);--spectrum-ui-icon-tshirt-size-width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-300\n)}::slotted([slot=icon]){flex-shrink:0;margin-right:calc(var(--spectrum-badge-neutral-textonly-padding-left)/2)}slot[icon-only]::slotted([slot=icon]){margin-left:calc(var(--spectrum-badge-neutral-textonly-text-padding-bottom) - var(--spectrum-badge-neutral-textonly-padding-left));margin-right:calc(var(--spectrum-badge-neutral-textonly-text-padding-bottom) - var(--spectrum-badge-neutral-textonly-padding-left))}#label{max-height:calc(var(--spectrum-badge-neutral-textonly-text-line-height)*var(--spectrum-badge-neutral-textonly-text-size)*2);overflow:hidden}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuMf,eAAeC",
|
|
6
|
+
"names": ["css", "styles"]
|
|
7
7
|
}
|
package/src/index.dev.js
CHANGED
package/src/index.dev.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
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\nexport * from './Badge.dev.js'\n"],
|
|
5
|
-
"mappings": "AAYA;",
|
|
5
|
+
"mappings": ";AAYA,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
"use strict";export*from"./Badge.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
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\nexport * from './Badge.js';\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": "aAYA,WAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-badge.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-s-neutral-textonly-text-padding-bottom\n);--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-s-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-75)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-s-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-static-size-50)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-s-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-s-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-s-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-s-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-s-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-s-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-115)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-s-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-115)\n)}:host([size=m]){--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-m-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-100)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-m-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-75)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-m-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-115)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-m-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-m-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-m-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-m-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-m-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-m-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-150)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-m-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-l-neutral-textonly-text-padding-top\n);--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-l-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-200)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-l-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-130)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-l-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-l-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-l-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-l-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-l-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-l-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-185)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-l-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-185)\n)}:host([size=xl]){--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-xl-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-300)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-xl-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-150)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-xl-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-175)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-xl-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-xl-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-225)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-xl-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-225)\n)}:host([dir=ltr]){padding-left:var(\n--spectrum-badge-neutral-textonly-padding-right\n);padding-right:var(--spectrum-badge-neutral-textonly-padding-left)}:host([dir=rtl]){padding-left:var(--spectrum-badge-neutral-textonly-padding-left);padding-right:var(\n--spectrum-badge-neutral-textonly-padding-right\n)}:host{-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased;border-radius:var(--spectrum-badge-neutral-textonly-border-top-left-radius) var(--spectrum-badge-neutral-textonly-border-top-right-radius) var(--spectrum-badge-neutral-textonly-border-bottom-right-radius) var(--spectrum-badge-neutral-textonly-border-bottom-left-radius);cursor:default;display:inline-block;font-size:var(--spectrum-badge-neutral-textonly-text-size);line-height:var(--spectrum-badge-neutral-textonly-text-line-height);padding-bottom:var(--spectrum-badge-neutral-textonly-text-padding-bottom);padding-top:var(--spectrum-badge-neutral-textonly-text-padding-top);position:relative;width:auto}:host([variant=neutral]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-neutral-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-neutral-textonly-background-color,var(--spectrum-semantic-neutral-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-neutral-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-neutral-textonly-background-color-hover,var(--spectrum-semantic-neutral-background-color-hover)\n)}:host([variant=informative]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-informative-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-informative-textonly-background-color,var(--spectrum-semantic-informative-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-informative-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-informative-textonly-background-color-hover,var(--spectrum-semantic-informative-background-color-hover)\n)}:host([variant=positive]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-positive-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-positive-textonly-background-color,var(--spectrum-semantic-positive-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-positive-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-positive-textonly-background-color-hover,var(--spectrum-semantic-positive-background-color-hover)\n)}:host([variant=negative]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-negative-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-negative-textonly-background-color,var(--spectrum-semantic-negative-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-negative-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-negative-textonly-background-color-hover,var(--spectrum-semantic-negative-background-color-hover)\n)}:host([variant=fuchsia]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-fuchsia-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-fuchsia-textonly-background-color,var(--spectrum-global-color-static-fuchsia-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-fuchsia-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-fuchsia-textonly-background-color-hover,var(--spectrum-global-color-static-fuchsia-700)\n)}:host([variant=indigo]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-indigo-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-indigo-textonly-background-color,var(--spectrum-global-color-static-indigo-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-indigo-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-indigo-textonly-background-color-hover,var(--spectrum-global-color-static-indigo-700)\n)}:host([variant=magenta]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-magenta-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-magenta-textonly-background-color,var(--spectrum-global-color-static-magenta-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-magenta-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-magenta-textonly-background-color-hover,var(--spectrum-global-color-static-magenta-700)\n)}:host([variant=purple]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-purple-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-purple-textonly-background-color,var(--spectrum-global-color-static-purple-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-purple-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-purple-textonly-background-color-hover,var(--spectrum-global-color-static-purple-700)\n)}:host([variant=seafoam]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-seafoam-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-seafoam-textonly-background-color,var(--spectrum-global-color-static-seafoam-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-seafoam-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-seafoam-textonly-background-color-hover,var(--spectrum-global-color-static-seafoam-700)\n)}:host([variant=yellow]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-yellow-texticon-text-color,var(--spectrum-global-color-static-black)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-yellow-textonly-background-color,var(--spectrum-alias-background-color-yellow-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-yellow-textonly-text-color-hover,var(--spectrum-global-color-static-black)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-yellow-textonly-background-color-hover,var(--spectrum-alias-background-color-yellow-hover)\n)}:host{background-color:var(--spectrum-badge-m-textonly-background-color);color:var(--spectrum-badge-m-texticon-text-color)}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "AAWA;
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuKf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const styles = css`
|
|
1
|
+
"use strict";import{css as t}from"@spectrum-web-components/base";const e=t`
|
|
3
2
|
:host([size=s]){--spectrum-badge-neutral-textonly-text-padding-bottom:var(
|
|
4
3
|
--spectrum-badge-s-neutral-textonly-text-padding-bottom
|
|
5
4
|
);--spectrum-badge-neutral-textonly-text-size:var(
|
|
@@ -165,6 +164,5 @@ const styles = css`
|
|
|
165
164
|
);--spectrum-badge-m-textonly-background-color-hover:var(
|
|
166
165
|
--spectrum-badge-m-yellow-textonly-background-color-hover,var(--spectrum-alias-background-color-yellow-hover)
|
|
167
166
|
)}:host{background-color:var(--spectrum-badge-m-textonly-background-color);color:var(--spectrum-badge-m-texticon-text-color)}
|
|
168
|
-
`;
|
|
169
|
-
export default styles;
|
|
167
|
+
`;export default e;
|
|
170
168
|
//# sourceMappingURL=spectrum-badge.css.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-badge.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-s-neutral-textonly-text-padding-bottom\n);--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-s-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-75)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-s-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-static-size-50)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-s-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-s-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-s-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-s-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-s-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-s-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-115)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-s-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-115)\n)}:host([size=m]){--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-m-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-100)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-m-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-75)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-m-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-115)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-m-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-m-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-m-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-m-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-m-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-m-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-150)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-m-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-l-neutral-textonly-text-padding-top\n);--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-l-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-200)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-l-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-130)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-l-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-l-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-l-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-l-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-l-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-l-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-185)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-l-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-185)\n)}:host([size=xl]){--spectrum-badge-neutral-textonly-text-size:var(\n--spectrum-badge-xl-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-300)\n);--spectrum-badge-neutral-textonly-text-padding-top:var(\n--spectrum-badge-xl-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-150)\n);--spectrum-badge-neutral-textonly-text-padding-bottom:var(\n--spectrum-badge-xl-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-175)\n);--spectrum-badge-neutral-textonly-text-line-height:var(\n--spectrum-badge-xl-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-badge-neutral-textonly-border-top-left-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-top-right-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(\n--spectrum-badge-xl-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)\n);--spectrum-badge-neutral-textonly-padding-right:var(\n--spectrum-badge-xl-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-225)\n);--spectrum-badge-neutral-textonly-padding-left:var(\n--spectrum-badge-xl-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-225)\n)}:host([dir=ltr]){padding-left:var(\n--spectrum-badge-neutral-textonly-padding-right\n);padding-right:var(--spectrum-badge-neutral-textonly-padding-left)}:host([dir=rtl]){padding-left:var(--spectrum-badge-neutral-textonly-padding-left);padding-right:var(\n--spectrum-badge-neutral-textonly-padding-right\n)}:host{-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased;border-radius:var(--spectrum-badge-neutral-textonly-border-top-left-radius) var(--spectrum-badge-neutral-textonly-border-top-right-radius) var(--spectrum-badge-neutral-textonly-border-bottom-right-radius) var(--spectrum-badge-neutral-textonly-border-bottom-left-radius);cursor:default;display:inline-block;font-size:var(--spectrum-badge-neutral-textonly-text-size);line-height:var(--spectrum-badge-neutral-textonly-text-line-height);padding-bottom:var(--spectrum-badge-neutral-textonly-text-padding-bottom);padding-top:var(--spectrum-badge-neutral-textonly-text-padding-top);position:relative;width:auto}:host([variant=neutral]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-neutral-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-neutral-textonly-background-color,var(--spectrum-semantic-neutral-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-neutral-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-neutral-textonly-background-color-hover,var(--spectrum-semantic-neutral-background-color-hover)\n)}:host([variant=informative]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-informative-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-informative-textonly-background-color,var(--spectrum-semantic-informative-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-informative-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-informative-textonly-background-color-hover,var(--spectrum-semantic-informative-background-color-hover)\n)}:host([variant=positive]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-positive-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-positive-textonly-background-color,var(--spectrum-semantic-positive-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-positive-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-positive-textonly-background-color-hover,var(--spectrum-semantic-positive-background-color-hover)\n)}:host([variant=negative]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-negative-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-negative-textonly-background-color,var(--spectrum-semantic-negative-background-color-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-negative-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-negative-textonly-background-color-hover,var(--spectrum-semantic-negative-background-color-hover)\n)}:host([variant=fuchsia]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-fuchsia-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-fuchsia-textonly-background-color,var(--spectrum-global-color-static-fuchsia-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-fuchsia-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-fuchsia-textonly-background-color-hover,var(--spectrum-global-color-static-fuchsia-700)\n)}:host([variant=indigo]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-indigo-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-indigo-textonly-background-color,var(--spectrum-global-color-static-indigo-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-indigo-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-indigo-textonly-background-color-hover,var(--spectrum-global-color-static-indigo-700)\n)}:host([variant=magenta]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-magenta-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-magenta-textonly-background-color,var(--spectrum-global-color-static-magenta-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-magenta-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-magenta-textonly-background-color-hover,var(--spectrum-global-color-static-magenta-700)\n)}:host([variant=purple]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-purple-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-purple-textonly-background-color,var(--spectrum-global-color-static-purple-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-purple-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-purple-textonly-background-color-hover,var(--spectrum-global-color-static-purple-700)\n)}:host([variant=seafoam]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-seafoam-texticon-text-color,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-seafoam-textonly-background-color,var(--spectrum-global-color-static-seafoam-600)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-seafoam-textonly-text-color-hover,var(--spectrum-global-color-static-white)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-seafoam-textonly-background-color-hover,var(--spectrum-global-color-static-seafoam-700)\n)}:host([variant=yellow]){--spectrum-badge-m-texticon-text-color:var(\n--spectrum-badge-m-yellow-texticon-text-color,var(--spectrum-global-color-static-black)\n);--spectrum-badge-m-textonly-background-color:var(\n--spectrum-badge-m-yellow-textonly-background-color,var(--spectrum-alias-background-color-yellow-default)\n);--spectrum-badge-m-textonly-text-color-hover:var(\n--spectrum-badge-m-yellow-textonly-text-color-hover,var(--spectrum-global-color-static-black)\n);--spectrum-badge-m-textonly-background-color-hover:var(\n--spectrum-badge-m-yellow-textonly-background-color-hover,var(--spectrum-alias-background-color-yellow-hover)\n)}:host{background-color:var(--spectrum-badge-m-textonly-background-color);color:var(--spectrum-badge-m-texticon-text-color)}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuKf,eAAeC",
|
|
6
|
+
"names": ["css", "styles"]
|
|
7
7
|
}
|
package/stories/badge.stories.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["badge.stories.ts"],
|
|
4
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark-circle.js';\n\nexport default {\n title: 'Badge',\n component: 'sp-badge',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-badge>Badge</sp-badge>\n `;\n};\n\nexport const Icons = (): TemplateResult => {\n return html`\n <sp-badge>No icon</sp-badge>\n\n <sp-badge>\n <sp-icon-checkmark-circle slot=\"icon\"></sp-icon-checkmark-circle>\n Icon and label\n </sp-badge>\n\n <sp-badge>\n <sp-icon-checkmark-circle slot=\"icon\"></sp-icon-checkmark-circle>\n </sp-badge>\n `;\n};\n\nexport const Sizes = (): TemplateResult => {\n return html`\n <div style=\"display: flex; align-items: center; gap: 8px;\">\n <sp-badge size=\"s\">\n <sp-icon-checkmark-circle\n slot=\"icon\"\n ></sp-icon-checkmark-circle>\n Small\n </sp-badge>\n <sp-badge size=\"m\">\n <sp-icon-checkmark-circle\n slot=\"icon\"\n ></sp-icon-checkmark-circle>\n Medium\n </sp-badge>\n <sp-badge size=\"l\">\n <sp-icon-checkmark-circle\n slot=\"icon\"\n ></sp-icon-checkmark-circle>\n Large\n </sp-badge>\n <sp-badge size=\"xl\">\n <sp-icon-checkmark-circle\n slot=\"icon\"\n ></sp-icon-checkmark-circle>\n Extra-large\n </sp-badge>\n <sp-badge style=\"max-width: 180px\">\n <sp-icon-checkmark-circle\n slot=\"icon\"\n ></sp-icon-checkmark-circle>\n This long content automatically wraps, but shows no more than\n two lines\n </sp-badge>\n </div>\n `;\n};\n\nexport const Semantic = (): TemplateResult => {\n return html`\n <sp-badge variant=\"positive\">Positive</sp-badge>\n <sp-badge variant=\"informative\">Informative</sp-badge>\n <sp-badge variant=\"negative\">Negative</sp-badge>\n <sp-badge variant=\"neutral\">Neutral</sp-badge>\n `;\n};\n\nexport const NonSemantic = (): TemplateResult => {\n return html`\n <sp-badge variant=\"seafoam\">Seafoam</sp-badge>\n <sp-badge variant=\"indigo\">Indigo</sp-badge>\n <sp-badge variant=\"purple\">Purple</sp-badge>\n <sp-badge variant=\"fuchsia\">Fuchsia</sp-badge>\n <sp-badge variant=\"magenta\">Magenta</sp-badge>\n <sp-badge variant=\"yellow\">Yellow</sp-badge>\n `;\n};\n\nexport const Inline = (): TemplateResult => {\n return html`\n Badge is a simple\n <sp-badge variant=\"positive\" size=\"s\">inline</sp-badge>\n element that should\n <sp-badge variant=\"magenta\" size=\"s\">flow</sp-badge>\n with the rest of the page:\n <sp-badge variant=\"negative\">Missing</sp-badge>\n <sp-badge variant=\"positive\">Successful</sp-badge>\n <sp-badge variant=\"purple\">Purple</sp-badge>\n `;\n};\n\nexport const Fixed = (): TemplateResult => {\n return html`\n <div\n style=\"position: relative; width: 400px; height: 200px; background: #eee\"\n >\n <sp-badge>None</sp-badge>\n <sp-badge\n fixed=\"top\"\n style=\"position: absolute; top: 0; left: 200px;\"\n >\n Top\n </sp-badge>\n <sp-badge\n fixed=\"right\"\n style=\"position: absolute; right: 0; top: 100px;\"\n >\n Right\n </sp-badge>\n <sp-badge\n fixed=\"bottom\"\n style=\"position: absolute; bottom: 0; left: 200px;\"\n >\n Bottom\n </sp-badge>\n <sp-badge\n fixed=\"left\"\n style=\"position: absolute; left: 0; top: 100px;\"\n >\n Left\n </sp-badge>\n </div>\n `;\n};\n"],
|
|
5
|
-
"mappings": "AAYA;
|
|
5
|
+
"mappings": ";AAYA,OAAO;AACP,SAAS,YAA4B;AACrC,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYX;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmCX;AAEO,aAAM,WAAW,MAAsB;AAC1C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAMX;AAEO,aAAM,cAAc,MAAsB;AAC7C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQX;AAEO,aAAM,SAAS,MAAsB;AACxC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUX;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/test/badge.test-vrt.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["badge.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/badge.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('BadgeStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA;
|
|
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/badge.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('BadgeStories', stories as unknown as TestsType);\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,gBAAgB,OAA+B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/test/badge.test.js
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
|
|
2
3
|
import "@spectrum-web-components/badge/sp-badge.js";
|
|
3
4
|
import "@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark-circle.js";
|
|
4
5
|
import { stub } from "sinon";
|
|
5
6
|
import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
|
|
6
7
|
describe("Badge", () => {
|
|
7
|
-
testForLitDevWarnings(
|
|
8
|
+
testForLitDevWarnings(
|
|
9
|
+
async () => await fixture(
|
|
10
|
+
html`
|
|
8
11
|
<sp-badge>
|
|
9
12
|
<sp-icon-checkmark-circle
|
|
10
13
|
slot="icon"
|
|
11
14
|
></sp-icon-checkmark-circle>
|
|
12
15
|
Icon and label
|
|
13
16
|
</sp-badge>
|
|
14
|
-
`
|
|
17
|
+
`
|
|
18
|
+
)
|
|
19
|
+
);
|
|
15
20
|
it("loads default badge accessibly", async () => {
|
|
16
21
|
const consoleWarnStub = stub(console, "warn");
|
|
17
|
-
const el = await fixture(
|
|
22
|
+
const el = await fixture(
|
|
23
|
+
html`
|
|
18
24
|
<sp-badge>
|
|
19
25
|
<sp-icon-checkmark-circle
|
|
20
26
|
slot="icon"
|
|
21
27
|
></sp-icon-checkmark-circle>
|
|
22
28
|
Icon and label
|
|
23
29
|
</sp-badge>
|
|
24
|
-
`
|
|
30
|
+
`
|
|
31
|
+
);
|
|
25
32
|
await elementUpdated(el);
|
|
26
33
|
await expect(el).to.be.accessible();
|
|
27
34
|
expect(consoleWarnStub.called).to.be.false;
|
|
@@ -29,18 +36,23 @@ describe("Badge", () => {
|
|
|
29
36
|
});
|
|
30
37
|
it("warns in Dev Mode when sent an incorrect `variant`", async () => {
|
|
31
38
|
const consoleWarnStub = stub(console, "warn");
|
|
32
|
-
const el = await fixture(
|
|
39
|
+
const el = await fixture(
|
|
40
|
+
html`
|
|
33
41
|
<sp-badge variant="other">
|
|
34
42
|
<sp-icon-checkmark-circle
|
|
35
43
|
slot="icon"
|
|
36
44
|
></sp-icon-checkmark-circle>
|
|
37
45
|
Icon and label
|
|
38
46
|
</sp-badge>
|
|
39
|
-
`
|
|
47
|
+
`
|
|
48
|
+
);
|
|
40
49
|
await elementUpdated(el);
|
|
41
50
|
expect(consoleWarnStub.called).to.be.true;
|
|
42
51
|
const spyCall = consoleWarnStub.getCall(0);
|
|
43
|
-
expect(
|
|
52
|
+
expect(
|
|
53
|
+
spyCall.args.at(0).includes('"variant"'),
|
|
54
|
+
"confirm variant-centric message"
|
|
55
|
+
).to.be.true;
|
|
44
56
|
expect(spyCall.args.at(-1), "confirm `data` shape").to.deep.equal({
|
|
45
57
|
data: {
|
|
46
58
|
localName: "sp-badge",
|
package/test/badge.test.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["badge.test.ts"],
|
|
4
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 { stub } from 'sinon';\nimport { Badge } from '../src/Badge.js';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Badge', () => {\n testForLitDevWarnings(\n async () =>\n 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 it('loads default badge accessibly', async () => {\n const consoleWarnStub = stub(console, 'warn');\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 expect(consoleWarnStub.called).to.be.false;\n consoleWarnStub.restore();\n });\n it('warns in Dev Mode when sent an incorrect `variant`', async () => {\n const consoleWarnStub = stub(console, 'warn');\n const el = await fixture<Badge>(\n html`\n <sp-badge variant=\"other\">\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 expect(consoleWarnStub.called).to.be.true;\n const spyCall = consoleWarnStub.getCall(0);\n expect(\n spyCall.args.at(0).includes('\"variant\"'),\n 'confirm variant-centric message'\n ).to.be.true;\n expect(spyCall.args.at(-1), 'confirm `data` shape').to.deep.equal({\n data: {\n localName: 'sp-badge',\n type: 'api',\n level: 'default',\n },\n });\n consoleWarnStub.restore();\n });\n});\n"],
|
|
5
|
-
"mappings": "AAYA;
|
|
5
|
+
"mappings": ";AAYA,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AAEtD,OAAO;AACP,OAAO;AACP,SAAS,YAAY;AAErB,SAAS,6BAA6B;AAEtC,SAAS,SAAS,MAAM;AACpB;AAAA,IACI,YACI,MAAM;AAAA,MACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQJ;AAAA,EACR;AACA,KAAG,kCAAkC,YAAY;AAC7C,UAAM,kBAAkB,KAAK,SAAS,MAAM;AAC5C,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAClC,WAAO,gBAAgB,MAAM,EAAE,GAAG,GAAG;AACrC,oBAAgB,QAAQ;AAAA,EAC5B,CAAC;AACD,KAAG,sDAAsD,YAAY;AACjE,UAAM,kBAAkB,KAAK,SAAS,MAAM;AAC5C,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQJ;AAEA,UAAM,eAAe,EAAE;AAEvB,WAAO,gBAAgB,MAAM,EAAE,GAAG,GAAG;AACrC,UAAM,UAAU,gBAAgB,QAAQ,CAAC;AACzC;AAAA,MACI,QAAQ,KAAK,GAAG,CAAC,EAAE,SAAS,WAAW;AAAA,MACvC;AAAA,IACJ,EAAE,GAAG,GAAG;AACR,WAAO,QAAQ,KAAK,GAAG,EAAE,GAAG,sBAAsB,EAAE,GAAG,KAAK,MAAM;AAAA,MAC9D,MAAM;AAAA,QACF,WAAW;AAAA,QACX,MAAM;AAAA,QACN,OAAO;AAAA,MACX;AAAA,IACJ,CAAC;AACD,oBAAgB,QAAQ;AAAA,EAC5B,CAAC;AACL,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["basic-test.ts"],
|
|
4
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;
|
|
5
|
+
"mappings": ";AAYA,OAAO;AACP,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA,CAKtB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|