@spectrum-web-components/status-light 1.6.1-beta.0 → 1.7.0-snapshot.20250519143559
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 +2 -5
- package/custom-elements.json +0 -106
- package/src/spectrum-config.js +0 -81
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spectrum-web-components/status-light",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.7.0-snapshot.20250519143559",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -64,10 +64,7 @@
|
|
64
64
|
"css"
|
65
65
|
],
|
66
66
|
"dependencies": {
|
67
|
-
"@spectrum-web-components/base": "1.
|
68
|
-
},
|
69
|
-
"devDependencies": {
|
70
|
-
"@spectrum-css/statuslight": "9.1.0"
|
67
|
+
"@spectrum-web-components/base": "1.7.0-snapshot.20250519143559"
|
71
68
|
},
|
72
69
|
"types": "./src/index.d.ts",
|
73
70
|
"customElements": "custom-elements.json",
|
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
|
-
}
|
package/src/spectrum-config.js
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
// @ts-check
|
2
|
-
/*
|
3
|
-
Copyright 2023 Adobe. All rights reserved.
|
4
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
5
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
6
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
|
8
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
9
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
10
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
11
|
-
governing permissions and limitations under the License.
|
12
|
-
*/
|
13
|
-
|
14
|
-
import {
|
15
|
-
builder,
|
16
|
-
converterFor,
|
17
|
-
} from '../../../tasks/process-spectrum-utils.js';
|
18
|
-
|
19
|
-
const converter = converterFor('spectrum-StatusLight');
|
20
|
-
|
21
|
-
/**
|
22
|
-
* @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
|
23
|
-
*/
|
24
|
-
export default {
|
25
|
-
conversions: [
|
26
|
-
{
|
27
|
-
inPackage: '@spectrum-css/statuslight',
|
28
|
-
outPackage: 'status-light',
|
29
|
-
fileName: 'status-light',
|
30
|
-
components: [
|
31
|
-
converter.classToHost(),
|
32
|
-
converter.classToAttribute('is-disabled', 'disabled'),
|
33
|
-
converter.classToAttribute('spectrum-StatusLight--active'),
|
34
|
-
...converter.enumerateAttributes(
|
35
|
-
[
|
36
|
-
['spectrum-StatusLight--negative', 'negative'],
|
37
|
-
['spectrum-StatusLight--notice', 'notice'],
|
38
|
-
['spectrum-StatusLight--positive', 'positive'],
|
39
|
-
['spectrum-StatusLight--info', 'info'],
|
40
|
-
['spectrum-StatusLight--neutral', 'neutral'],
|
41
|
-
['spectrum-StatusLight--yellow', 'yellow'],
|
42
|
-
['spectrum-StatusLight--fuchsia', 'fuchsia'],
|
43
|
-
['spectrum-StatusLight--indigo', 'indigo'],
|
44
|
-
['spectrum-StatusLight--seafoam', 'seafoam'],
|
45
|
-
['spectrum-StatusLight--chartreuse', 'chartreuse'],
|
46
|
-
['spectrum-StatusLight--magenta', 'magenta'],
|
47
|
-
['spectrum-StatusLight--purple', 'purple'],
|
48
|
-
['spectrum-StatusLight--celery', 'celery'],
|
49
|
-
],
|
50
|
-
'variant'
|
51
|
-
),
|
52
|
-
// Default to `size='m'` without needing the attribute
|
53
|
-
converter.classToHost('spectrum-StatusLight--sizeM'),
|
54
|
-
...converter.enumerateAttributes(
|
55
|
-
[
|
56
|
-
['spectrum-StatusLight--sizeS', 's'],
|
57
|
-
['spectrum-StatusLight--sizeL', 'l'],
|
58
|
-
['spectrum-StatusLight--sizeXL', 'xl'],
|
59
|
-
],
|
60
|
-
'size'
|
61
|
-
),
|
62
|
-
{
|
63
|
-
find: {
|
64
|
-
type: 'pseudo-class',
|
65
|
-
kind: 'lang',
|
66
|
-
},
|
67
|
-
hoist: true,
|
68
|
-
},
|
69
|
-
{
|
70
|
-
exactSelector: true,
|
71
|
-
find: [builder.class('spectrum-StatusLight')],
|
72
|
-
replace: [
|
73
|
-
{
|
74
|
-
replace: builder.attribute('dir'),
|
75
|
-
},
|
76
|
-
],
|
77
|
-
},
|
78
|
-
],
|
79
|
-
},
|
80
|
-
],
|
81
|
-
};
|