@spectrum-web-components/status-light 1.8.0 → 1.9.0-nightly.20251013134115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/status-light",
3
- "version": "1.8.0",
3
+ "version": "1.9.0-nightly.20251013134115",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/adobe/spectrum-web-components.git",
12
- "directory": "packages/status-light"
12
+ "directory": "first-gen/packages/status-light"
13
13
  },
14
14
  "author": "Adobe",
15
15
  "homepage": "https://opensource.adobe.com/spectrum-web-components/components/status-light",
@@ -64,7 +64,7 @@
64
64
  "css"
65
65
  ],
66
66
  "dependencies": {
67
- "@spectrum-web-components/base": "1.8.0"
67
+ "@spectrum-web-components/base": "1.9.0-nightly.20251013134115"
68
68
  },
69
69
  "types": "./src/index.d.ts",
70
70
  "customElements": "custom-elements.json",
@@ -9,27 +9,14 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
- import { CSSResultArray, PropertyValues, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
13
- declare const StatusLight_base: typeof SpectrumElement & {
14
- new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
15
- prototype: import("@spectrum-web-components/base").SizedElementInterface;
16
- };
12
+ import { CSSResultArray, TemplateResult } from '@spectrum-web-components/base';
13
+ import { StatusLightBase } from '@spectrum-web-components/core-next/components/status-light';
17
14
  /**
18
15
  * @element sp-status-light
19
16
  *
20
17
  * @slot - text label of the Status Light
21
18
  */
22
- export declare class StatusLight extends StatusLight_base {
19
+ export declare class StatusLight extends StatusLightBase {
23
20
  static get styles(): CSSResultArray;
24
- /**
25
- * A status light in a disabled state shows that a status exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a status may become available later.
26
- */
27
- disabled: boolean;
28
- /**
29
- * The visual variant to apply to this status light.
30
- */
31
- variant: 'negative' | 'notice' | 'positive' | 'info' | 'neutral' | 'yellow' | 'fuchsia' | 'indigo' | 'seafoam' | 'chartreuse' | 'magenta' | 'celery' | 'purple';
32
21
  protected render(): TemplateResult;
33
- protected updated(changes: PropertyValues): void;
34
22
  }
35
- export {};
@@ -1,29 +1,10 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __decorateClass = (decorators, target, key, kind) => {
5
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
- if (decorator = decorators[i])
8
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
- if (kind && result) __defProp(target, key, result);
10
- return result;
11
- };
12
2
  import {
13
- html,
14
- SizedMixin,
15
- SpectrumElement
3
+ html
16
4
  } from "@spectrum-web-components/base";
17
- import { property } from "@spectrum-web-components/base/src/decorators.js";
5
+ import { StatusLightBase } from "@spectrum-web-components/core-next/components/status-light";
18
6
  import statusLightStyles from "./status-light.css.js";
19
- export class StatusLight extends SizedMixin(SpectrumElement, {
20
- noDefaultSize: true
21
- }) {
22
- constructor() {
23
- super(...arguments);
24
- this.disabled = false;
25
- this.variant = "info";
26
- }
7
+ export class StatusLight extends StatusLightBase {
27
8
  static get styles() {
28
9
  return [statusLightStyles];
29
10
  }
@@ -32,21 +13,5 @@ export class StatusLight extends SizedMixin(SpectrumElement, {
32
13
  <slot></slot>
33
14
  `;
34
15
  }
35
- updated(changes) {
36
- super.updated(changes);
37
- if (changes.has("disabled")) {
38
- if (this.disabled) {
39
- this.setAttribute("aria-disabled", "true");
40
- } else {
41
- this.removeAttribute("aria-disabled");
42
- }
43
- }
44
- }
45
16
  }
46
- __decorateClass([
47
- property({ type: Boolean, reflect: true })
48
- ], StatusLight.prototype, "disabled", 2);
49
- __decorateClass([
50
- property({ reflect: true })
51
- ], StatusLight.prototype, "variant", 2);
52
17
  //# sourceMappingURL=StatusLight.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["StatusLight.ts"],
4
- "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport statusLightStyles from './status-light.css.js';\n\n/**\n * @element sp-status-light\n *\n * @slot - text label of the Status Light\n */\nexport class StatusLight extends SizedMixin(SpectrumElement, {\n noDefaultSize: true,\n}) {\n public static override get styles(): CSSResultArray {\n return [statusLightStyles];\n }\n\n /**\n * A status light in a disabled state shows that a status exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a status may become available later.\n */\n @property({ type: Boolean, reflect: true })\n public disabled = false;\n\n /**\n * The visual variant to apply to this status light.\n */\n @property({ reflect: true })\n public variant:\n | 'negative'\n | 'notice'\n | 'positive'\n | 'info'\n | 'neutral'\n | 'yellow'\n | 'fuchsia'\n | 'indigo'\n | 'seafoam'\n | 'chartreuse'\n | 'magenta'\n | 'celery'\n | 'purple' = 'info';\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (changes.has('disabled')) {\n if (this.disabled) {\n this.setAttribute('aria-disabled', 'true');\n } else {\n this.removeAttribute('aria-disabled');\n }\n }\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EAEA;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AACzB,OAAO,uBAAuB;AAOvB,aAAM,oBAAoB,WAAW,iBAAiB;AAAA,EACzD,eAAe;AACnB,CAAC,EAAE;AAAA,EAFI;AAAA;AAWH,SAAO,WAAW;AAMlB,SAAO,UAaU;AAAA;AAAA,EA3BjB,WAA2B,SAAyB;AAChD,WAAO,CAAC,iBAAiB;AAAA,EAC7B;AAAA,EA2BmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA,EAGX;AAAA,EAEmB,QAAQ,SAA+B;AACtD,UAAM,QAAQ,OAAO;AACrB,QAAI,QAAQ,IAAI,UAAU,GAAG;AACzB,UAAI,KAAK,UAAU;AACf,aAAK,aAAa,iBAAiB,MAAM;AAAA,MAC7C,OAAO;AACH,aAAK,gBAAgB,eAAe;AAAA,MACxC;AAAA,IACJ;AAAA,EACJ;AACJ;AArCW;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAVjC,YAWF;AAMA;AAAA,EADN,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAhBlB,YAiBF;",
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n CSSResultArray,\n html,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { StatusLightBase } from '@spectrum-web-components/core-next/components/status-light';\nimport statusLightStyles from './status-light.css.js';\n\n/**\n * @element sp-status-light\n *\n * @slot - text label of the Status Light\n */\nexport class StatusLight extends StatusLightBase {\n public static override get styles(): CSSResultArray {\n return [statusLightStyles];\n }\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
+ "mappings": ";AAYA;AAAA,EAEI;AAAA,OAEG;AACP,SAAS,uBAAuB;AAChC,OAAO,uBAAuB;AAOvB,aAAM,oBAAoB,gBAAgB;AAAA,EAC7C,WAA2B,SAAyB;AAChD,WAAO,CAAC,iBAAiB;AAAA,EAC7B;AAAA,EAEmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA,EAGX;AACJ;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- "use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var o=(l,r,t,i)=>{for(var e=i>1?void 0:i?p(r,t):r,a=l.length-1,s;a>=0;a--)(s=l[a])&&(e=(i?s(r,t,e):s(e))||e);return i&&e&&d(r,t,e),e};import{html as n,SizedMixin as m,SpectrumElement as c}from"@spectrum-web-components/base";import{property as u}from"@spectrum-web-components/base/src/decorators.js";import f from"./status-light.css.js";export class StatusLight extends m(c,{noDefaultSize:!0}){constructor(){super(...arguments);this.disabled=!1;this.variant="info"}static get styles(){return[f]}render(){return n`
1
+ "use strict";import{html as t}from"@spectrum-web-components/base";import{StatusLightBase as e}from"@spectrum-web-components/core-next/components/status-light";import r from"./status-light.css.js";export class StatusLight extends e{static get styles(){return[r]}render(){return t`
2
2
  <slot></slot>
3
- `}updated(t){super.updated(t),t.has("disabled")&&(this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}}o([u({type:Boolean,reflect:!0})],StatusLight.prototype,"disabled",2),o([u({reflect:!0})],StatusLight.prototype,"variant",2);
3
+ `}}
4
4
  //# sourceMappingURL=StatusLight.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["StatusLight.ts"],
4
- "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport statusLightStyles from './status-light.css.js';\n\n/**\n * @element sp-status-light\n *\n * @slot - text label of the Status Light\n */\nexport class StatusLight extends SizedMixin(SpectrumElement, {\n noDefaultSize: true,\n}) {\n public static override get styles(): CSSResultArray {\n return [statusLightStyles];\n }\n\n /**\n * A status light in a disabled state shows that a status exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a status may become available later.\n */\n @property({ type: Boolean, reflect: true })\n public disabled = false;\n\n /**\n * The visual variant to apply to this status light.\n */\n @property({ reflect: true })\n public variant:\n | 'negative'\n | 'notice'\n | 'positive'\n | 'info'\n | 'neutral'\n | 'yellow'\n | 'fuchsia'\n | 'indigo'\n | 'seafoam'\n | 'chartreuse'\n | 'magenta'\n | 'celery'\n | 'purple' = 'info';\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (changes.has('disabled')) {\n if (this.disabled) {\n this.setAttribute('aria-disabled', 'true');\n } else {\n this.removeAttribute('aria-disabled');\n }\n }\n }\n}\n"],
5
- "mappings": "qNAYA,OAEI,QAAAA,EAEA,cAAAC,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDACzB,OAAOC,MAAuB,wBAOvB,aAAM,oBAAoBH,EAAWC,EAAiB,CACzD,cAAe,EACnB,CAAC,CAAE,CAFI,kCAWH,KAAO,SAAW,GAMlB,KAAO,QAaU,OA3BjB,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAiB,CAC7B,CA2BmB,QAAyB,CACxC,OAAOJ;AAAA;AAAA,SAGX,CAEmB,QAAQK,EAA+B,CACtD,MAAM,QAAQA,CAAO,EACjBA,EAAQ,IAAI,UAAU,IAClB,KAAK,SACL,KAAK,aAAa,gBAAiB,MAAM,EAEzC,KAAK,gBAAgB,eAAe,EAGhD,CACJ,CArCWC,EAAA,CADNH,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GAVjC,YAWF,wBAMAG,EAAA,CADNH,EAAS,CAAE,QAAS,EAAK,CAAC,GAhBlB,YAiBF",
6
- "names": ["html", "SizedMixin", "SpectrumElement", "property", "statusLightStyles", "changes", "__decorateClass"]
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n CSSResultArray,\n html,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { StatusLightBase } from '@spectrum-web-components/core-next/components/status-light';\nimport statusLightStyles from './status-light.css.js';\n\n/**\n * @element sp-status-light\n *\n * @slot - text label of the Status Light\n */\nexport class StatusLight extends StatusLightBase {\n public static override get styles(): CSSResultArray {\n return [statusLightStyles];\n }\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
+ "mappings": "aAYA,OAEI,QAAAA,MAEG,gCACP,OAAS,mBAAAC,MAAuB,6DAChC,OAAOC,MAAuB,wBAOvB,aAAM,oBAAoBD,CAAgB,CAC7C,WAA2B,QAAyB,CAChD,MAAO,CAACC,CAAiB,CAC7B,CAEmB,QAAyB,CACxC,OAAOF;AAAA;AAAA,SAGX,CACJ",
6
+ "names": ["html", "StatusLightBase", "statusLightStyles"]
7
7
  }
@@ -1,106 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-status-light.js",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-status-light",
13
- "declaration": {
14
- "name": "StatusLight",
15
- "module": "/src/StatusLight.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/StatusLight.js",
23
- "declarations": [
24
- {
25
- "kind": "class",
26
- "description": "",
27
- "name": "StatusLight",
28
- "slots": [
29
- {
30
- "description": "text label of the Status Light",
31
- "name": ""
32
- }
33
- ],
34
- "members": [
35
- {
36
- "kind": "field",
37
- "name": "disabled",
38
- "type": {
39
- "text": "boolean"
40
- },
41
- "privacy": "public",
42
- "default": "false",
43
- "description": "A status light in a disabled state shows that a status exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a status may become available later.",
44
- "attribute": "disabled",
45
- "reflects": true
46
- },
47
- {
48
- "kind": "field",
49
- "name": "variant",
50
- "type": {
51
- "text": "| 'negative'\n | 'notice'\n | 'positive'\n | 'info'\n | 'neutral'\n | 'yellow'\n | 'fuchsia'\n | 'indigo'\n | 'seafoam'\n | 'chartreuse'\n | 'magenta'\n | 'celery'\n | 'purple'"
52
- },
53
- "privacy": "public",
54
- "default": "'info'",
55
- "description": "The visual variant to apply to this status light.",
56
- "attribute": "variant",
57
- "reflects": true
58
- }
59
- ],
60
- "attributes": [
61
- {
62
- "name": "disabled",
63
- "type": {
64
- "text": "boolean"
65
- },
66
- "default": "false",
67
- "description": "A status light in a disabled state shows that a status exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a status may become available later.",
68
- "fieldName": "disabled"
69
- },
70
- {
71
- "name": "variant",
72
- "type": {
73
- "text": "| 'negative'\n | 'notice'\n | 'positive'\n | 'info'\n | 'neutral'\n | 'yellow'\n | 'fuchsia'\n | 'indigo'\n | 'seafoam'\n | 'chartreuse'\n | 'magenta'\n | 'celery'\n | 'purple'"
74
- },
75
- "default": "'info'",
76
- "description": "The visual variant to apply to this status light.",
77
- "fieldName": "variant"
78
- }
79
- ],
80
- "mixins": [
81
- {
82
- "name": "SizedMixin",
83
- "package": "@spectrum-web-components/base"
84
- }
85
- ],
86
- "superclass": {
87
- "name": "SpectrumElement",
88
- "package": "@spectrum-web-components/base"
89
- },
90
- "tagName": "sp-status-light",
91
- "customElement": true
92
- }
93
- ],
94
- "exports": [
95
- {
96
- "kind": "js",
97
- "name": "StatusLight",
98
- "declaration": {
99
- "name": "StatusLight",
100
- "module": "src/StatusLight.js"
101
- }
102
- }
103
- ]
104
- }
105
- ]
106
- }