@spectrum-web-components/badge 0.1.1 → 0.1.4-devmode.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
 
7
7
  [![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/badge?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/badge)
8
8
  [![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/@spectrum-web-components/badge?style=for-the-badge)](https://bundlephobia.com/result?p=@spectrum-web-components/badge)
9
+ [![Try it on webcomponents.dev](https://img.shields.io/badge/Try%20it%20on-webcomponents.dev-green?style=for-the-badge)](https://studio.webcomponents.dev/edit/qxPsOTrGAPB92LzPfk4P/src/index.ts?p=stories)
9
10
 
10
11
  ```
11
12
  yarn add @spectrum-web-components/badge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/badge",
3
- "version": "0.1.1",
3
+ "version": "0.1.4-devmode.0+07474d44f",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,17 +44,17 @@
44
44
  "lit-html"
45
45
  ],
46
46
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.5.7",
48
- "@spectrum-web-components/shared": "^0.14.2",
47
+ "@spectrum-web-components/base": "^0.5.9-devmode.24+07474d44f",
48
+ "@spectrum-web-components/shared": "^0.14.5-devmode.0+07474d44f",
49
49
  "tslib": "^2.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@spectrum-css/badge": "^1.0.18"
52
+ "@spectrum-css/badge": "^1.0.20"
53
53
  },
54
54
  "types": "./src/index.d.ts",
55
55
  "customElements": "custom-elements.json",
56
56
  "sideEffects": [
57
57
  "./sp-*.js"
58
58
  ],
59
- "gitHead": "275ee61b152ac3eed0cd1603d8eab2aec90876a0"
59
+ "gitHead": "07474d44f6cee1db241b9ccf3dc812514ffbe7fa"
60
60
  }
@@ -0,0 +1,3 @@
1
+ import { Badge } from "./src/Badge.dev.js";
2
+ customElements.define("sp-badge", Badge);
3
+ //# sourceMappingURL=sp-badge.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-badge.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 { 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;AAEA,eAAe,OAAO,YAAY,KAAK;",
6
+ "names": []
7
+ }
package/sp-badge.js CHANGED
@@ -1,14 +1,3 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { Badge } from './src/Badge.js';
13
- customElements.define('sp-badge', Badge);
14
- //# sourceMappingURL=sp-badge.js.map
1
+ import { Badge } from "./src/Badge.js";
2
+ customElements.define("sp-badge", Badge);
3
+ //# sourceMappingURL=sp-badge.js.map
package/sp-badge.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"file":"sp-badge.js","sourceRoot":"","sources":["sp-badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { Badge } from './src/Badge.js';\n\ncustomElements.define('sp-badge', Badge);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-badge': Badge;\n }\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-badge.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 { 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": "AAYA;AAEA,eAAe,OAAO,YAAY,KAAK;",
6
+ "names": []
7
+ }
@@ -0,0 +1,57 @@
1
+ var __defProp = Object.defineProperty;
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 (true) {
42
+ if (!BADGE_VARIANTS.includes(this.variant)) {
43
+ window.__swc.issueWarning("badge:api:default", `<sp-badge> elements expect the "variant" attribute to be on of the following:`, "https://opensource.adobe.com/spectrum-web-components/components/badge/#variants", [...BADGE_VARIANTS]);
44
+ }
45
+ }
46
+ return html`
47
+ <slot name="icon" ?icon-only=${!this.slotHasContent}></slot>
48
+ <div id="label">
49
+ <slot></slot>
50
+ </div>
51
+ `;
52
+ }
53
+ }
54
+ __decorateClass([
55
+ property({ type: String, reflect: true })
56
+ ], Badge.prototype, "variant", 2);
57
+ //# sourceMappingURL=Badge.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Badge.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 {\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.issueWarning(\n 'badge:api:default',\n `<sp-badge> elements expect the \"variant\" attribute to be on of the following:`,\n 'https://opensource.adobe.com/spectrum-web-components/components/badge/#variants',\n [...BADGE_VARIANTS]\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": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAAA;AAOA;AAEA;AACA;AAEO,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;AAMI,mBAAwB;AAAA;AAAA,aALJ,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAKmB,SAAyB;AACxC,QAAI,MAAoB;AACpB,UAAI,CAAC,eAAe,SAAS,KAAK,OAAO,GAAG;AACxC,eAAO,MAAM,aACT,qBACA,iFACA,mFACA,CAAC,GAAG,cAAc,CACtB;AAAA,MACJ;AAAA,IACJ;AACA,WAAO;AAAA,2CAC4B,CAAC,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7C;AACJ;AApBW;AAAA,EADP,AAAC,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAClC,AANJ,MAMI;",
6
+ "names": []
7
+ }
package/src/Badge.js CHANGED
@@ -1,55 +1,57 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { __decorate } from "tslib";
13
- import { html, SizedMixin, SpectrumElement, } from '@spectrum-web-components/base';
14
- import { property } from '@spectrum-web-components/base/src/decorators.js';
15
- import { ObserveSlotText } from '@spectrum-web-components/shared/src/observe-slot-text.js';
16
- import styles from './badge.css.js';
1
+ var __defProp = Object.defineProperty;
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";
17
20
  export const BADGE_VARIANTS = [
18
- 'neutral',
19
- 'informative',
20
- 'positive',
21
- 'negative',
22
- 'fuchsia',
23
- 'indigo',
24
- 'magenta',
25
- 'purple',
26
- 'seafoam',
27
- 'yellow',
21
+ "neutral",
22
+ "informative",
23
+ "positive",
24
+ "negative",
25
+ "fuchsia",
26
+ "indigo",
27
+ "magenta",
28
+ "purple",
29
+ "seafoam",
30
+ "yellow"
28
31
  ];
29
- /**
30
- * @element sp-badge
31
- *
32
- * @slot - Text label of the badge
33
- * @slot icon - Optional icon that appears to the left of the label
34
- */
35
- export class Badge extends SizedMixin(ObserveSlotText(SpectrumElement, '')) {
36
- constructor() {
37
- super(...arguments);
38
- this.variant = 'informative';
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.issueWarning("badge:api:default", `<sp-badge> elements expect the "variant" attribute to be on of the following:`, "https://opensource.adobe.com/spectrum-web-components/components/badge/#variants", [...BADGE_VARIANTS]);
44
+ }
39
45
  }
40
- static get styles() {
41
- return [styles];
42
- }
43
- render() {
44
- return html `
46
+ return html`
45
47
  <slot name="icon" ?icon-only=${!this.slotHasContent}></slot>
46
48
  <div id="label">
47
49
  <slot></slot>
48
50
  </div>
49
51
  `;
50
- }
52
+ }
51
53
  }
52
- __decorate([
53
- property({ type: String, reflect: true })
54
- ], Badge.prototype, "variant", void 0);
55
- //# sourceMappingURL=Badge.js.map
54
+ __decorateClass([
55
+ property({ type: String, reflect: true })
56
+ ], Badge.prototype, "variant", 2);
57
+ //# sourceMappingURL=Badge.js.map
package/src/Badge.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"file":"Badge.js","sourceRoot":"","sources":["Badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,IAAI,EACJ,UAAU,EACV,eAAe,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAEpC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,SAAS;IACT,aAAa;IACb,UAAU;IACV,UAAU;IACV,SAAS;IACT,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,SAAS;IACT,QAAQ;CACF,CAAC;AAGX;;;;;GAKG;AACH,MAAM,OAAO,KAAM,SAAQ,UAAU,CAAC,eAAe,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAA3E;;QAMW,YAAO,GAAiB,aAAa,CAAC;IAUjD,CAAC;IAfU,MAAM,KAAc,MAAM;QAC7B,OAAO,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;IAKkB,MAAM;QACrB,OAAO,IAAI,CAAA;2CACwB,CAAC,IAAI,CAAC,cAAc;;;;SAItD,CAAC;IACN,CAAC;CACJ;AAVG;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCACG","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 return html`\n <slot name=\"icon\" ?icon-only=${!this.slotHasContent}></slot>\n <div id=\"label\">\n <slot></slot>\n </div>\n `;\n }\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["Badge.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 {\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.issueWarning(\n 'badge:api:default',\n `<sp-badge> elements expect the \"variant\" attribute to be on of the following:`,\n 'https://opensource.adobe.com/spectrum-web-components/components/badge/#variants',\n [...BADGE_VARIANTS]\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": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAAA;AAOA;AAEA;AACA;AAEO,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;AAMI,mBAAwB;AAAA;AAAA,aALJ,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAKmB,SAAyB;AACxC,QAAI,OAAoB;AACpB,UAAI,CAAC,eAAe,SAAS,KAAK,OAAO,GAAG;AACxC,eAAO,MAAM,aACT,qBACA,iFACA,mFACA,CAAC,GAAG,cAAc,CACtB;AAAA,MACJ;AAAA,IACJ;AACA,WAAO;AAAA,2CAC4B,CAAC,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7C;AACJ;AApBW;AAAA,EADP,AAAC,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAClC,AANJ,MAMI;",
6
+ "names": []
7
+ }
@@ -0,0 +1,202 @@
1
+ import { css } from "@spectrum-web-components/base";
2
+ const styles = css`
3
+ :host([size=s]){--spectrum-badge-neutral-textonly-text-padding-bottom:var(
4
+ --spectrum-badge-s-neutral-textonly-text-padding-bottom
5
+ );--spectrum-badge-neutral-textonly-text-size:var(
6
+ --spectrum-badge-s-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-75)
7
+ );--spectrum-badge-neutral-textonly-text-padding-top:var(
8
+ --spectrum-badge-s-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-static-size-50)
9
+ );--spectrum-badge-neutral-textonly-text-line-height:var(
10
+ --spectrum-badge-s-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)
11
+ );--spectrum-badge-neutral-textonly-border-top-left-radius:var(
12
+ --spectrum-badge-s-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)
13
+ );--spectrum-badge-neutral-textonly-border-top-right-radius:var(
14
+ --spectrum-badge-s-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)
15
+ );--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(
16
+ --spectrum-badge-s-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)
17
+ );--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(
18
+ --spectrum-badge-s-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)
19
+ );--spectrum-badge-neutral-textonly-padding-right:var(
20
+ --spectrum-badge-s-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-115)
21
+ );--spectrum-badge-neutral-textonly-padding-left:var(
22
+ --spectrum-badge-s-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-115)
23
+ )}:host([size=m]){--spectrum-badge-neutral-textonly-text-size:var(
24
+ --spectrum-badge-m-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-100)
25
+ );--spectrum-badge-neutral-textonly-text-padding-top:var(
26
+ --spectrum-badge-m-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-75)
27
+ );--spectrum-badge-neutral-textonly-text-padding-bottom:var(
28
+ --spectrum-badge-m-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-115)
29
+ );--spectrum-badge-neutral-textonly-text-line-height:var(
30
+ --spectrum-badge-m-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)
31
+ );--spectrum-badge-neutral-textonly-border-top-left-radius:var(
32
+ --spectrum-badge-m-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)
33
+ );--spectrum-badge-neutral-textonly-border-top-right-radius:var(
34
+ --spectrum-badge-m-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)
35
+ );--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(
36
+ --spectrum-badge-m-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)
37
+ );--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(
38
+ --spectrum-badge-m-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)
39
+ );--spectrum-badge-neutral-textonly-padding-right:var(
40
+ --spectrum-badge-m-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-150)
41
+ );--spectrum-badge-neutral-textonly-padding-left:var(
42
+ --spectrum-badge-m-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-150)
43
+ )}:host([size=l]){--spectrum-badge-neutral-textonly-text-padding-top:var(
44
+ --spectrum-badge-l-neutral-textonly-text-padding-top
45
+ );--spectrum-badge-neutral-textonly-text-size:var(
46
+ --spectrum-badge-l-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-200)
47
+ );--spectrum-badge-neutral-textonly-text-padding-bottom:var(
48
+ --spectrum-badge-l-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-130)
49
+ );--spectrum-badge-neutral-textonly-text-line-height:var(
50
+ --spectrum-badge-l-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)
51
+ );--spectrum-badge-neutral-textonly-border-top-left-radius:var(
52
+ --spectrum-badge-l-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)
53
+ );--spectrum-badge-neutral-textonly-border-top-right-radius:var(
54
+ --spectrum-badge-l-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)
55
+ );--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(
56
+ --spectrum-badge-l-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)
57
+ );--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(
58
+ --spectrum-badge-l-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)
59
+ );--spectrum-badge-neutral-textonly-padding-right:var(
60
+ --spectrum-badge-l-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-185)
61
+ );--spectrum-badge-neutral-textonly-padding-left:var(
62
+ --spectrum-badge-l-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-185)
63
+ )}:host([size=xl]){--spectrum-badge-neutral-textonly-text-size:var(
64
+ --spectrum-badge-xl-neutral-textonly-text-size,var(--spectrum-global-dimension-font-size-300)
65
+ );--spectrum-badge-neutral-textonly-text-padding-top:var(
66
+ --spectrum-badge-xl-neutral-textonly-text-padding-top,var(--spectrum-global-dimension-size-150)
67
+ );--spectrum-badge-neutral-textonly-text-padding-bottom:var(
68
+ --spectrum-badge-xl-neutral-textonly-text-padding-bottom,var(--spectrum-global-dimension-size-175)
69
+ );--spectrum-badge-neutral-textonly-text-line-height:var(
70
+ --spectrum-badge-xl-neutral-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)
71
+ );--spectrum-badge-neutral-textonly-border-top-left-radius:var(
72
+ --spectrum-badge-xl-neutral-textonly-border-top-left-radius,var(--spectrum-alias-border-radius-regular)
73
+ );--spectrum-badge-neutral-textonly-border-top-right-radius:var(
74
+ --spectrum-badge-xl-neutral-textonly-border-top-right-radius,var(--spectrum-alias-border-radius-regular)
75
+ );--spectrum-badge-neutral-textonly-border-bottom-right-radius:var(
76
+ --spectrum-badge-xl-neutral-textonly-border-bottom-right-radius,var(--spectrum-alias-border-radius-regular)
77
+ );--spectrum-badge-neutral-textonly-border-bottom-left-radius:var(
78
+ --spectrum-badge-xl-neutral-textonly-border-bottom-left-radius,var(--spectrum-alias-border-radius-regular)
79
+ );--spectrum-badge-neutral-textonly-padding-right:var(
80
+ --spectrum-badge-xl-neutral-textonly-padding-right,var(--spectrum-global-dimension-size-225)
81
+ );--spectrum-badge-neutral-textonly-padding-left:var(
82
+ --spectrum-badge-xl-neutral-textonly-padding-left,var(--spectrum-global-dimension-size-225)
83
+ )}:host([dir=ltr]){padding-left:var(
84
+ --spectrum-badge-neutral-textonly-padding-right
85
+ );padding-right:var(--spectrum-badge-neutral-textonly-padding-left)}:host([dir=rtl]){padding-left:var(--spectrum-badge-neutral-textonly-padding-left);padding-right:var(
86
+ --spectrum-badge-neutral-textonly-padding-right
87
+ )}: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(
88
+ --spectrum-badge-m-neutral-texticon-text-color,var(--spectrum-global-color-static-white)
89
+ );--spectrum-badge-m-textonly-background-color:var(
90
+ --spectrum-badge-m-neutral-textonly-background-color,var(--spectrum-semantic-neutral-background-color-default)
91
+ );--spectrum-badge-m-textonly-text-color-hover:var(
92
+ --spectrum-badge-m-neutral-textonly-text-color-hover,var(--spectrum-global-color-static-white)
93
+ );--spectrum-badge-m-textonly-background-color-hover:var(
94
+ --spectrum-badge-m-neutral-textonly-background-color-hover,var(--spectrum-semantic-neutral-background-color-hover)
95
+ )}:host([variant=informative]){--spectrum-badge-m-texticon-text-color:var(
96
+ --spectrum-badge-m-informative-texticon-text-color,var(--spectrum-global-color-static-white)
97
+ );--spectrum-badge-m-textonly-background-color:var(
98
+ --spectrum-badge-m-informative-textonly-background-color,var(--spectrum-semantic-informative-background-color-default)
99
+ );--spectrum-badge-m-textonly-text-color-hover:var(
100
+ --spectrum-badge-m-informative-textonly-text-color-hover,var(--spectrum-global-color-static-white)
101
+ );--spectrum-badge-m-textonly-background-color-hover:var(
102
+ --spectrum-badge-m-informative-textonly-background-color-hover,var(--spectrum-semantic-informative-background-color-hover)
103
+ )}:host([variant=positive]){--spectrum-badge-m-texticon-text-color:var(
104
+ --spectrum-badge-m-positive-texticon-text-color,var(--spectrum-global-color-static-white)
105
+ );--spectrum-badge-m-textonly-background-color:var(
106
+ --spectrum-badge-m-positive-textonly-background-color,var(--spectrum-semantic-positive-background-color-default)
107
+ );--spectrum-badge-m-textonly-text-color-hover:var(
108
+ --spectrum-badge-m-positive-textonly-text-color-hover,var(--spectrum-global-color-static-white)
109
+ );--spectrum-badge-m-textonly-background-color-hover:var(
110
+ --spectrum-badge-m-positive-textonly-background-color-hover,var(--spectrum-semantic-positive-background-color-hover)
111
+ )}:host([variant=negative]){--spectrum-badge-m-texticon-text-color:var(
112
+ --spectrum-badge-m-negative-texticon-text-color,var(--spectrum-global-color-static-white)
113
+ );--spectrum-badge-m-textonly-background-color:var(
114
+ --spectrum-badge-m-negative-textonly-background-color,var(--spectrum-semantic-negative-background-color-default)
115
+ );--spectrum-badge-m-textonly-text-color-hover:var(
116
+ --spectrum-badge-m-negative-textonly-text-color-hover,var(--spectrum-global-color-static-white)
117
+ );--spectrum-badge-m-textonly-background-color-hover:var(
118
+ --spectrum-badge-m-negative-textonly-background-color-hover,var(--spectrum-semantic-negative-background-color-hover)
119
+ )}:host([variant=fuchsia]){--spectrum-badge-m-texticon-text-color:var(
120
+ --spectrum-badge-m-fuchsia-texticon-text-color,var(--spectrum-global-color-static-white)
121
+ );--spectrum-badge-m-textonly-background-color:var(
122
+ --spectrum-badge-m-fuchsia-textonly-background-color,var(--spectrum-global-color-static-fuchsia-600)
123
+ );--spectrum-badge-m-textonly-text-color-hover:var(
124
+ --spectrum-badge-m-fuchsia-textonly-text-color-hover,var(--spectrum-global-color-static-white)
125
+ );--spectrum-badge-m-textonly-background-color-hover:var(
126
+ --spectrum-badge-m-fuchsia-textonly-background-color-hover,var(--spectrum-global-color-static-fuchsia-700)
127
+ )}:host([variant=indigo]){--spectrum-badge-m-texticon-text-color:var(
128
+ --spectrum-badge-m-indigo-texticon-text-color,var(--spectrum-global-color-static-white)
129
+ );--spectrum-badge-m-textonly-background-color:var(
130
+ --spectrum-badge-m-indigo-textonly-background-color,var(--spectrum-global-color-static-indigo-600)
131
+ );--spectrum-badge-m-textonly-text-color-hover:var(
132
+ --spectrum-badge-m-indigo-textonly-text-color-hover,var(--spectrum-global-color-static-white)
133
+ );--spectrum-badge-m-textonly-background-color-hover:var(
134
+ --spectrum-badge-m-indigo-textonly-background-color-hover,var(--spectrum-global-color-static-indigo-700)
135
+ )}:host([variant=magenta]){--spectrum-badge-m-texticon-text-color:var(
136
+ --spectrum-badge-m-magenta-texticon-text-color,var(--spectrum-global-color-static-white)
137
+ );--spectrum-badge-m-textonly-background-color:var(
138
+ --spectrum-badge-m-magenta-textonly-background-color,var(--spectrum-global-color-static-magenta-600)
139
+ );--spectrum-badge-m-textonly-text-color-hover:var(
140
+ --spectrum-badge-m-magenta-textonly-text-color-hover,var(--spectrum-global-color-static-white)
141
+ );--spectrum-badge-m-textonly-background-color-hover:var(
142
+ --spectrum-badge-m-magenta-textonly-background-color-hover,var(--spectrum-global-color-static-magenta-700)
143
+ )}:host([variant=purple]){--spectrum-badge-m-texticon-text-color:var(
144
+ --spectrum-badge-m-purple-texticon-text-color,var(--spectrum-global-color-static-white)
145
+ );--spectrum-badge-m-textonly-background-color:var(
146
+ --spectrum-badge-m-purple-textonly-background-color,var(--spectrum-global-color-static-purple-600)
147
+ );--spectrum-badge-m-textonly-text-color-hover:var(
148
+ --spectrum-badge-m-purple-textonly-text-color-hover,var(--spectrum-global-color-static-white)
149
+ );--spectrum-badge-m-textonly-background-color-hover:var(
150
+ --spectrum-badge-m-purple-textonly-background-color-hover,var(--spectrum-global-color-static-purple-700)
151
+ )}:host([variant=seafoam]){--spectrum-badge-m-texticon-text-color:var(
152
+ --spectrum-badge-m-seafoam-texticon-text-color,var(--spectrum-global-color-static-white)
153
+ );--spectrum-badge-m-textonly-background-color:var(
154
+ --spectrum-badge-m-seafoam-textonly-background-color,var(--spectrum-global-color-static-seafoam-600)
155
+ );--spectrum-badge-m-textonly-text-color-hover:var(
156
+ --spectrum-badge-m-seafoam-textonly-text-color-hover,var(--spectrum-global-color-static-white)
157
+ );--spectrum-badge-m-textonly-background-color-hover:var(
158
+ --spectrum-badge-m-seafoam-textonly-background-color-hover,var(--spectrum-global-color-static-seafoam-700)
159
+ )}:host([variant=yellow]){--spectrum-badge-m-texticon-text-color:var(
160
+ --spectrum-badge-m-yellow-texticon-text-color,var(--spectrum-global-color-static-black)
161
+ );--spectrum-badge-m-textonly-background-color:var(
162
+ --spectrum-badge-m-yellow-textonly-background-color,var(--spectrum-alias-background-color-yellow-default)
163
+ );--spectrum-badge-m-textonly-text-color-hover:var(
164
+ --spectrum-badge-m-yellow-textonly-text-color-hover,var(--spectrum-global-color-static-black)
165
+ );--spectrum-badge-m-textonly-background-color-hover:var(
166
+ --spectrum-badge-m-yellow-textonly-background-color-hover,var(--spectrum-alias-background-color-yellow-hover)
167
+ )}: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(
168
+ --spectrum-alias-workflow-icon-size-s
169
+ );--spectrum-icon-tshirt-size-width:var(
170
+ --spectrum-alias-workflow-icon-size-s
171
+ );--spectrum-ui-icon-tshirt-size-height:var(
172
+ --spectrum-alias-ui-icon-cornertriangle-size-75
173
+ );--spectrum-ui-icon-tshirt-size-width:var(
174
+ --spectrum-alias-ui-icon-cornertriangle-size-75
175
+ )}:host([size=m]){--spectrum-icon-tshirt-size-height:var(
176
+ --spectrum-alias-workflow-icon-size-m
177
+ );--spectrum-icon-tshirt-size-width:var(
178
+ --spectrum-alias-workflow-icon-size-m
179
+ );--spectrum-ui-icon-tshirt-size-height:var(
180
+ --spectrum-alias-ui-icon-cornertriangle-size-100
181
+ );--spectrum-ui-icon-tshirt-size-width:var(
182
+ --spectrum-alias-ui-icon-cornertriangle-size-100
183
+ )}:host([size=l]){--spectrum-icon-tshirt-size-height:var(
184
+ --spectrum-alias-workflow-icon-size-l
185
+ );--spectrum-icon-tshirt-size-width:var(
186
+ --spectrum-alias-workflow-icon-size-l
187
+ );--spectrum-ui-icon-tshirt-size-height:var(
188
+ --spectrum-alias-ui-icon-cornertriangle-size-200
189
+ );--spectrum-ui-icon-tshirt-size-width:var(
190
+ --spectrum-alias-ui-icon-cornertriangle-size-200
191
+ )}:host([size=xl]){--spectrum-icon-tshirt-size-height:var(
192
+ --spectrum-alias-workflow-icon-size-xl
193
+ );--spectrum-icon-tshirt-size-width:var(
194
+ --spectrum-alias-workflow-icon-size-xl
195
+ );--spectrum-ui-icon-tshirt-size-height:var(
196
+ --spectrum-alias-ui-icon-cornertriangle-size-300
197
+ );--spectrum-ui-icon-tshirt-size-width:var(
198
+ --spectrum-alias-ui-icon-cornertriangle-size-300
199
+ )}::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;
202
+ //# sourceMappingURL=badge.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["badge.css.ts"],
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;AACA,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
+ "names": []
7
+ }
package/src/badge.css.js CHANGED
@@ -1,16 +1,5 @@
1
- /*
2
- Copyright 2022 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { css } from '@spectrum-web-components/base';
13
- const styles = css `
1
+ import { css } from "@spectrum-web-components/base";
2
+ const styles = css`
14
3
  :host([size=s]){--spectrum-badge-neutral-textonly-text-padding-bottom:var(
15
4
  --spectrum-badge-s-neutral-textonly-text-padding-bottom
16
5
  );--spectrum-badge-neutral-textonly-text-size:var(
@@ -210,4 +199,4 @@ const styles = css `
210
199
  )}::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}
211
200
  `;
212
201
  export default styles;
213
- //# sourceMappingURL=badge.css.js.map
202
+ //# sourceMappingURL=badge.css.js.map