@spectrum-web-components/status-light 1.8.0 → 1.9.0-nightly.20251013144515
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 +3 -3
- package/src/StatusLight.d.ts +3 -16
- package/src/StatusLight.dev.js +3 -38
- package/src/StatusLight.dev.js.map +2 -2
- package/src/StatusLight.js +2 -2
- package/src/StatusLight.js.map +3 -3
- package/custom-elements.json +0 -106
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spectrum-web-components/status-light",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.9.0-nightly.20251013144515",
|
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.
|
67
|
+
"@spectrum-web-components/base": "1.9.0-nightly.20251013144515"
|
68
68
|
},
|
69
69
|
"types": "./src/index.d.ts",
|
70
70
|
"customElements": "custom-elements.json",
|
package/src/StatusLight.d.ts
CHANGED
@@ -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,
|
13
|
-
|
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
|
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 {};
|
package/src/StatusLight.dev.js
CHANGED
@@ -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 {
|
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
|
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
|
5
|
-
"mappings": "
|
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
|
}
|
package/src/StatusLight.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";
|
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
|
-
`}
|
3
|
+
`}}
|
4
4
|
//# sourceMappingURL=StatusLight.js.map
|
package/src/StatusLight.js.map
CHANGED
@@ -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
|
5
|
-
"mappings": "
|
6
|
-
"names": ["html", "
|
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
|
}
|
package/custom-elements.json
DELETED
@@ -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
|
-
}
|