@spectrum-web-components/status-light 0.11.0-devmode.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,126 +1,188 @@
1
- import { css } from "@spectrum-web-components/base";
2
- const styles = css`
3
- :host([size=s]){--spectrum-statuslight-info-text-padding-bottom:var(
4
- --spectrum-statuslight-s-info-text-padding-bottom
5
- );--spectrum-statuslight-info-dot-border-radius:var(
6
- --spectrum-statuslight-s-info-dot-border-radius,var(--spectrum-global-dimension-static-percent-50)
7
- );--spectrum-statuslight-info-dot-margin-top:var(
8
- --spectrum-statuslight-s-info-dot-margin-top,var(--spectrum-global-dimension-size-100)
9
- );--spectrum-statuslight-info-dot-size:var(
10
- --spectrum-statuslight-s-info-dot-size,var(--spectrum-global-dimension-static-size-100)
11
- );--spectrum-statuslight-info-text-gap:var(
12
- --spectrum-statuslight-s-info-text-gap,var(--spectrum-global-dimension-size-115)
13
- );--spectrum-statuslight-info-text-size:var(
14
- --spectrum-statuslight-s-info-text-size,var(--spectrum-global-dimension-font-size-75)
15
- );--spectrum-statuslight-info-text-padding-top:var(
16
- --spectrum-statuslight-s-info-text-padding-top,var(--spectrum-global-dimension-static-size-50)
17
- );--spectrum-statuslight-info-text-font-weight:var(
18
- --spectrum-statuslight-s-info-text-font-weight,var(--spectrum-alias-body-text-font-weight)
19
- );--spectrum-statuslight-info-text-line-height:var(
20
- --spectrum-statuslight-s-info-text-line-height,var(--spectrum-alias-component-text-line-height)
21
- );--spectrum-statuslight-info-height:var(
22
- --spectrum-statuslight-s-info-height,var(--spectrum-global-dimension-size-300)
23
- )}:host([size=m]){--spectrum-statuslight-info-dot-border-radius:var(
24
- --spectrum-statuslight-m-info-dot-border-radius,var(--spectrum-global-dimension-static-percent-50)
25
- );--spectrum-statuslight-info-dot-margin-top:var(
26
- --spectrum-statuslight-m-info-dot-margin-top,var(--spectrum-global-dimension-size-130)
27
- );--spectrum-statuslight-info-dot-size:var(
28
- --spectrum-statuslight-m-info-dot-size,var(--spectrum-global-dimension-size-100)
29
- );--spectrum-statuslight-info-text-gap:var(
30
- --spectrum-statuslight-m-info-text-gap,var(--spectrum-global-dimension-size-125)
31
- );--spectrum-statuslight-info-text-size:var(
32
- --spectrum-statuslight-m-info-text-size,var(--spectrum-global-dimension-font-size-100)
33
- );--spectrum-statuslight-info-text-padding-top:var(
34
- --spectrum-statuslight-m-info-text-padding-top,var(--spectrum-global-dimension-size-75)
35
- );--spectrum-statuslight-info-text-padding-bottom:var(
36
- --spectrum-statuslight-m-info-text-padding-bottom,var(--spectrum-global-dimension-size-115)
37
- );--spectrum-statuslight-info-text-font-weight:var(
38
- --spectrum-statuslight-m-info-text-font-weight,var(--spectrum-alias-body-text-font-weight)
39
- );--spectrum-statuslight-info-text-line-height:var(
40
- --spectrum-statuslight-m-info-text-line-height,var(--spectrum-alias-component-text-line-height)
41
- );--spectrum-statuslight-info-height:var(
42
- --spectrum-statuslight-m-info-height,var(--spectrum-global-dimension-size-400)
43
- )}:host([size=l]){--spectrum-statuslight-info-dot-size:var(
44
- --spectrum-statuslight-l-info-dot-size
45
- );--spectrum-statuslight-info-text-padding-top:var(
46
- --spectrum-statuslight-l-info-text-padding-top
47
- );--spectrum-statuslight-info-dot-border-radius:var(
48
- --spectrum-statuslight-l-info-dot-border-radius,var(--spectrum-global-dimension-static-percent-50)
49
- );--spectrum-statuslight-info-dot-margin-top:var(
50
- --spectrum-statuslight-l-info-dot-margin-top,var(--spectrum-global-dimension-size-185)
51
- );--spectrum-statuslight-info-text-gap:var(
52
- --spectrum-statuslight-l-info-text-gap,var(--spectrum-global-dimension-size-130)
53
- );--spectrum-statuslight-info-text-size:var(
54
- --spectrum-statuslight-l-info-text-size,var(--spectrum-global-dimension-font-size-200)
55
- );--spectrum-statuslight-info-text-padding-bottom:var(
56
- --spectrum-statuslight-l-info-text-padding-bottom,var(--spectrum-global-dimension-size-130)
57
- );--spectrum-statuslight-info-text-font-weight:var(
58
- --spectrum-statuslight-l-info-text-font-weight,var(--spectrum-alias-body-text-font-weight)
59
- );--spectrum-statuslight-info-text-line-height:var(
60
- --spectrum-statuslight-l-info-text-line-height,var(--spectrum-alias-component-text-line-height)
61
- );--spectrum-statuslight-info-height:var(
62
- --spectrum-statuslight-l-info-height,var(--spectrum-global-dimension-size-500)
63
- )}:host([size=xl]){--spectrum-statuslight-info-dot-size:var(
64
- --spectrum-statuslight-xl-info-dot-size
65
- );--spectrum-statuslight-info-dot-border-radius:var(
66
- --spectrum-statuslight-xl-info-dot-border-radius,var(--spectrum-global-dimension-static-percent-50)
67
- );--spectrum-statuslight-info-dot-margin-top:var(
68
- --spectrum-statuslight-xl-info-dot-margin-top,var(--spectrum-global-dimension-size-250)
69
- );--spectrum-statuslight-info-text-gap:var(
70
- --spectrum-statuslight-xl-info-text-gap,var(--spectrum-global-dimension-size-160)
71
- );--spectrum-statuslight-info-text-size:var(
72
- --spectrum-statuslight-xl-info-text-size,var(--spectrum-global-dimension-font-size-300)
73
- );--spectrum-statuslight-info-text-padding-top:var(
74
- --spectrum-statuslight-xl-info-text-padding-top,var(--spectrum-global-dimension-size-150)
75
- );--spectrum-statuslight-info-text-padding-bottom:var(
76
- --spectrum-statuslight-xl-info-text-padding-bottom,var(--spectrum-global-dimension-size-175)
77
- );--spectrum-statuslight-info-text-font-weight:var(
78
- --spectrum-statuslight-xl-info-text-font-weight,var(--spectrum-alias-body-text-font-weight)
79
- );--spectrum-statuslight-info-text-line-height:var(
80
- --spectrum-statuslight-xl-info-text-line-height,var(--spectrum-alias-component-text-line-height)
81
- );--spectrum-statuslight-info-height:var(
82
- --spectrum-statuslight-xl-info-height,var(--spectrum-global-dimension-size-600)
83
- )}:host([dir]){--spectrum-statuslight-info-dot-resolved-margin-top:calc(var(--spectrum-statuslight-info-dot-margin-top) - var(--spectrum-statuslight-info-text-padding-top));align-items:flex-start;box-sizing:border-box;display:flex;flex-direction:row;font-size:var(--spectrum-statuslight-info-text-size);font-weight:var(--spectrum-statuslight-info-text-font-weight);line-height:var(--spectrum-statuslight-info-text-line-height);min-height:var(--spectrum-statuslight-info-height);padding-bottom:var(--spectrum-statuslight-info-text-padding-bottom);padding-left:0;padding-right:0;padding-top:var(--spectrum-statuslight-info-text-padding-top)}:host([dir=ltr]):before{margin-left:var(
84
- --spectrum-global-dimension-size-0
85
- );margin-right:var(--spectrum-statuslight-info-text-gap)}:host([dir=rtl]):before{margin-left:var(--spectrum-statuslight-info-text-gap);margin-right:var(
86
- --spectrum-global-dimension-size-0
87
- )}:host:before{-ms-high-contrast-adjust:none;border-radius:var(--spectrum-statuslight-info-dot-border-radius);content:"";display:inline-block;flex-grow:0;flex-shrink:0;forced-color-adjust:none;height:var(--spectrum-statuslight-info-dot-size);margin-bottom:var(--spectrum-global-dimension-size-0);margin-top:var(--spectrum-statuslight-info-dot-resolved-margin-top);width:var(--spectrum-statuslight-info-dot-size)}:host([variant=neutral]){font-style:italic}:host([dir]){color:var(
88
- --spectrum-statuslight-m-info-text-color,var(--spectrum-alias-text-color)
89
- )}:host([disabled]),:host([disabled]){color:var(
90
- --spectrum-statuslight-m-info-text-color-disabled,var(--spectrum-alias-text-color-disabled)
91
- )}:host([disabled]):before,:host([disabled]):before{background-color:var(
92
- --spectrum-statuslight-m-info-dot-color-disabled,var(--spectrum-global-color-gray-400)
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const s=t`
2
+ :host([dir]){--spectrum-statuslight-corner-radius:50%;--spectrum-statuslight-font-weight:400;--spectrum-statuslight-border-width:var(--spectrum-border-width-100);--spectrum-statuslight-height:var(--spectrum-component-height-100);--spectrum-statuslight-dot-size:var(
3
+ --spectrum-status-light-dot-size-medium
4
+ );--spectrum-statuslight-line-height:var(--spectrum-line-height-100);--spectrum-statuslight-line-height-cjk:var(--spectrum-cjk-line-height-100);--spectrum-statuslight-font-size:var(--spectrum-font-size-100);--spectrum-statuslight-spacing-dot-to-label:var(
5
+ --spectrum-text-to-visual-100
6
+ );--spectrum-statuslight-spacing-top-to-dot:var(
7
+ --spectrum-status-light-top-to-dot-medium
8
+ );--spectrum-statuslight-spacing-top-to-label:var(
9
+ --spectrum-component-top-to-text-100
10
+ );--spectrum-statuslight-spacing-bottom-to-label:var(
11
+ --spectrum-component-bottom-to-text-100
12
+ );--spectrum-statuslight-content-color-default:var(
13
+ --spectrum-neutral-content-color-default
14
+ );--spectrum-statuslight-subdued-content-color-default:var(
15
+ --spectrum-neutral-subdued-content-color-default
16
+ );--spectrum-statuslight-semantic-neutral-color:var(
17
+ --spectrum-neutral-visual-color
18
+ );--spectrum-statuslight-semantic-accent-color:var(
19
+ --spectrum-accent-visual-color
20
+ );--spectrum-statuslight-semantic-negative-color:var(
21
+ --spectrum-negative-visual-color
22
+ );--spectrum-statuslight-semantic-info-color:var(
23
+ --spectrum-informative-visual-color
24
+ );--spectrum-statuslight-semantic-notice-color:var(
25
+ --spectrum-notice-visual-color
26
+ );--spectrum-statuslight-semantic-positive-color:var(
27
+ --spectrum-positive-visual-color
28
+ );--spectrum-statuslight-nonsemantic-gray-color:var(
29
+ --spectrum-gray-visual-color
30
+ );--spectrum-statuslight-nonsemantic-red-color:var(
31
+ --spectrum-red-visual-color
32
+ );--spectrum-statuslight-nonsemantic-orange-color:var(
33
+ --spectrum-orange-visual-color
34
+ );--spectrum-statuslight-nonsemantic-yellow-color:var(
35
+ --spectrum-yellow-visual-color
36
+ );--spectrum-statuslight-nonsemantic-chartreuse-color:var(
37
+ --spectrum-chartreuse-visual-color
38
+ );--spectrum-statuslight-nonsemantic-celery-color:var(
39
+ --spectrum-celery-visual-color
40
+ );--spectrum-statuslight-nonsemantic-green-color:var(
41
+ --spectrum-green-visual-color
42
+ );--spectrum-statuslight-nonsemantic-seafoam-color:var(
43
+ --spectrum-seafoam-visual-color
44
+ );--spectrum-statuslight-nonsemantic-cyan-color:var(
45
+ --spectrum-cyan-visual-color
46
+ );--spectrum-statuslight-nonsemantic-blue-color:var(
47
+ --spectrum-blue-visual-color
48
+ );--spectrum-statuslight-nonsemantic-indigo-color:var(
49
+ --spectrum-indigo-visual-color
50
+ );--spectrum-statuslight-nonsemantic-purple-color:var(
51
+ --spectrum-purple-visual-color
52
+ );--spectrum-statuslight-nonsemantic-fuchsia-color:var(
53
+ --spectrum-fuchsia-visual-color
54
+ );--spectrum-statuslight-nonsemantic-magenta-color:var(
55
+ --spectrum-magenta-visual-color
56
+ )}:host([size=s]){--spectrum-statuslight-height:var(
57
+ --spectrum-component-height-75
58
+ );--spectrum-statuslight-dot-size:var(
59
+ --spectrum-status-light-dot-size-small
60
+ );--spectrum-statuslight-font-size:var(--spectrum-font-size-75);--spectrum-statuslight-spacing-dot-to-label:var(
61
+ --spectrum-text-to-visual-75
62
+ );--spectrum-statuslight-spacing-top-to-dot:var(
63
+ --spectrum-status-light-top-to-dot-small
64
+ );--spectrum-statuslight-spacing-top-to-label:var(
65
+ --spectrum-component-top-to-text-75
66
+ );--spectrum-statuslight-spacing-bottom-to-label:var(
67
+ --spectrum-component-bottom-to-text-75
68
+ )}:host([size=m]){--spectrum-statuslight-height:var(
69
+ --spectrum-component-height-100
70
+ );--spectrum-statuslight-dot-size:var(
71
+ --spectrum-status-light-dot-size-medium
72
+ );--spectrum-statuslight-font-size:var(--spectrum-font-size-100);--spectrum-statuslight-spacing-dot-to-label:var(
73
+ --spectrum-text-to-visual-100
74
+ );--spectrum-statuslight-spacing-top-to-dot:var(
75
+ --spectrum-status-light-top-to-dot-medium
76
+ );--spectrum-statuslight-spacing-top-to-label:var(
77
+ --spectrum-component-top-to-text-100
78
+ );--spectrum-statuslight-spacing-bottom-to-label:var(
79
+ --spectrum-component-bottom-to-text-100
80
+ )}:host([size=l]){--spectrum-statuslight-height:var(
81
+ --spectrum-component-height-200
82
+ );--spectrum-statuslight-dot-size:var(
83
+ --spectrum-status-light-dot-size-large
84
+ );--spectrum-statuslight-font-size:var(--spectrum-font-size-200);--spectrum-statuslight-spacing-dot-to-label:var(
85
+ --spectrum-text-to-visual-200
86
+ );--spectrum-statuslight-spacing-top-to-dot:var(
87
+ --spectrum-status-light-top-to-dot-large
88
+ );--spectrum-statuslight-spacing-top-to-label:var(
89
+ --spectrum-component-top-to-text-200
90
+ );--spectrum-statuslight-spacing-bottom-to-label:var(
91
+ --spectrum-component-bottom-to-text-200
92
+ )}:host([size=xl]){--spectrum-statuslight-height:var(
93
+ --spectrum-component-height-300
94
+ );--spectrum-statuslight-dot-size:var(
95
+ --spectrum-status-light-dot-size-extra-large
96
+ );--spectrum-statuslight-font-size:var(--spectrum-font-size-300);--spectrum-statuslight-spacing-dot-to-label:var(
97
+ --spectrum-text-to-visual-300
98
+ );--spectrum-statuslight-spacing-top-to-dot:var(
99
+ --spectrum-status-light-top-to-dot-extra-large
100
+ );--spectrum-statuslight-spacing-top-to-label:var(
101
+ --spectrum-component-top-to-text-300
102
+ );--spectrum-statuslight-spacing-bottom-to-label:var(
103
+ --spectrum-component-bottom-to-text-300
104
+ )}@media (forced-colors:active){:host([dir]){--highcontrast-statuslight-content-color-default:CanvasText;--highcontrast-statuslight-subdued-content-color-default:CanvasText;forced-color-adjust:none}:host:before{border:var(
105
+ --mod-statuslight-border-width,var(--spectrum-statuslight-border-width)
106
+ ) solid ButtonText}}:host([dir]){align-items:flex-start;box-sizing:border-box;color:var(
107
+ --highcontrast-statuslight-content-color-default,var(
108
+ --mod-statuslight-content-color-default,var(--spectrum-statuslight-content-color-default)
109
+ )
110
+ );display:flex;flex-direction:row;font-size:var(
111
+ --mod-statuslight-font-size,var(--spectrum-statuslight-font-size)
112
+ );font-weight:var(
113
+ --mod-statuslight-font-weight,var(--spectrum-statuslight-font-weight)
114
+ );line-height:var(
115
+ --mod-statuslight-line-height,--spectrum-statuslight-line-height
116
+ );min-height:var(
117
+ --mod-statuslight-height,var(--spectrum-statuslight-height)
118
+ );padding-block-end:var(
119
+ --mod-statuslight-spacing-bottom-to-label,var(--spectrum-statuslight-spacing-bottom-to-label)
120
+ );padding-block-start:var(
121
+ --mod-statuslight-spacing-top-to-label,var(--spectrum-statuslight-spacing-top-to-label)
122
+ );padding-inline:0}:host(:lang(ja)),:host(:lang(ko)),:host(:lang(zh)){line-height:var(
123
+ --spectrum-statuslight-line-height-cjk,var(
124
+ --mod-statuslight-line-height,var(--spectrum-statuslight-line-height)
125
+ )
126
+ )}:host:before{--spectrum-statuslight-spacing-computed-top-to-dot:calc(var(
127
+ --mod-statuslight-spacing-top-to-dot,
128
+ var(--spectrum-statuslight-spacing-top-to-dot)
129
+ ) - var(
130
+ --mod-statuslight-spacing-top-to-label,
131
+ var(--spectrum-statuslight-spacing-top-to-label)
132
+ ));-ms-high-contrast-adjust:none;block-size:var(
133
+ --mod-statuslight-dot-size,var(--spectrum-statuslight-dot-size)
134
+ );border-radius:var(
135
+ --mod-statuslight-corner-radius,var(--spectrum-statuslight-corner-radius)
136
+ );content:"";display:inline-block;flex-grow:0;flex-shrink:0;forced-color-adjust:none;inline-size:var(
137
+ --mod-statuslight-dot-size,var(--spectrum-statuslight-dot-size)
138
+ );margin-block-start:var(--spectrum-statuslight-spacing-computed-top-to-dot);margin-inline-end:var(
139
+ --mod-statuslight-spacing-dot-to-label,var(--spectrum-statuslight-spacing-dot-to-label)
140
+ )}:host([variant=neutral]){font-style:italic}:host([variant=neutral]){color:var(
141
+ --highcontrast-statuslight-subdued-content-color-default,var(
142
+ --mod-statuslight-subdued-content-color-default,var(--spectrum-statuslight-subdued-content-color-default)
143
+ )
144
+ )}:host([variant=neutral]):before{background-color:var(
145
+ --mod-statuslight-semantic-neutral-color,var(--spectrum-statuslight-semantic-neutral-color)
146
+ )}.spectrum-StatusLight--accent:before{background-color:var(
147
+ --mod-statuslight-semantic-accent-color,var(--spectrum-statuslight-semantic-accent-color)
148
+ )}:host([variant=info]):before{background-color:var(
149
+ --mod-statuslight-semantic-info-color,var(--spectrum-statuslight-semantic-info-color)
93
150
  )}:host([variant=negative]):before{background-color:var(
94
- --spectrum-statuslight-m-negative-dot-color,var(--spectrum-semantic-negative-status-color)
151
+ --mod-statuslight-semantic-negative-color,var(--spectrum-statuslight-semantic-negative-color)
95
152
  )}:host([variant=notice]):before{background-color:var(
96
- --spectrum-statuslight-m-notice-dot-color,var(--spectrum-semantic-notice-status-color)
153
+ --mod-statuslight-semantic-notice-color,var(--spectrum-statuslight-semantic-notice-color)
97
154
  )}:host([variant=positive]):before{background-color:var(
98
- --spectrum-statuslight-m-positive-dot-color,var(--spectrum-semantic-positive-status-color)
99
- )}:host([active]):before,:host([variant=info]):before{background-color:var(
100
- --spectrum-statuslight-m-info-dot-color,var(--spectrum-semantic-informative-status-color)
101
- )}:host([variant=neutral]){color:var(
102
- --spectrum-statuslight-m-neutral-text-color,var(--spectrum-alias-label-text-color)
103
- )}:host([variant=neutral]):before{background-color:var(
104
- --spectrum-statuslight-m-neutral-dot-color,var(--spectrum-global-color-gray-500)
105
- )}:host([variant=celery]):before{background-color:var(
106
- --spectrum-statuslight-m-celery-dot-color,var(--spectrum-global-color-celery-400)
155
+ --mod-statuslight-semantic-positive-color,var(--spectrum-statuslight-semantic-positive-color)
156
+ )}.spectrum-StatusLight--gray:before{background-color:var(
157
+ --mod-statuslight-nonsemantic-gray-color,var(--spectrum-statuslight-nonsemantic-gray-color)
158
+ )}.spectrum-StatusLight--red:before{background-color:var(
159
+ --mod-statuslight-nonsemantic-red-color,var(--spectrum-statuslight-nonsemantic-red-color)
160
+ )}.spectrum-StatusLight--orange:before{background-color:var(
161
+ --mod-statuslight-nonsemantic-orange-color,var(--spectrum-statuslight-nonsemantic-orange-color)
107
162
  )}:host([variant=yellow]):before{background-color:var(
108
- --spectrum-statuslight-m-yellow-dot-color,var(--spectrum-global-color-yellow-400)
109
- )}:host([variant=fuchsia]):before{background-color:var(
110
- --spectrum-statuslight-m-fuchsia-dot-color,var(--spectrum-global-color-fuchsia-400)
111
- )}:host([variant=indigo]):before{background-color:var(
112
- --spectrum-statuslight-m-indigo-dot-color,var(--spectrum-global-color-indigo-400)
113
- )}:host([variant=seafoam]):before{background-color:var(
114
- --spectrum-statuslight-m-seafoam-dot-color,var(--spectrum-global-color-seafoam-400)
163
+ --mod-statuslight-nonsemantic-yellow-color,var(--spectrum-statuslight-nonsemantic-yellow-color)
115
164
  )}:host([variant=chartreuse]):before{background-color:var(
116
- --spectrum-statuslight-m-chartreuse-dot-color,var(--spectrum-global-color-chartreuse-400)
117
- )}:host([variant=magenta]):before{background-color:var(
118
- --spectrum-statuslight-m-magenta-dot-color,var(--spectrum-global-color-magenta-400)
165
+ --mod-statuslight-nonsemantic-chartreuse-color,var(--spectrum-statuslight-nonsemantic-chartreuse-color)
166
+ )}:host([variant=celery]):before{background-color:var(
167
+ --mod-statuslight-nonsemantic-celery-color,var(--spectrum-statuslight-nonsemantic-celery-color)
168
+ )}.spectrum-StatusLight--green:before{background-color:var(
169
+ --mod-statuslight-nonsemantic-green-color,var(--spectrum-statuslight-nonsemantic-green-color)
170
+ )}:host([variant=seafoam]):before{background-color:var(
171
+ --mod-statuslight-nonsemantic-seafoam-color,var(--spectrum-statuslight-nonsemantic-seafoam-color)
172
+ )}.spectrum-StatusLight--cyan:before{background-color:var(
173
+ --mod-statuslight-nonsemantic-cyan-color,var(--spectrum-statuslight-nonsemantic-cyan-color)
174
+ )}.spectrum-StatusLight--blue:before{background-color:var(
175
+ --mod-statuslight-nonsemantic-blue-color,var(--spectrum-statuslight-nonsemantic-blue-color)
176
+ )}:host([variant=indigo]):before{background-color:var(
177
+ --mod-statuslight-nonsemantic-indigo-color,var(--spectrum-statuslight-nonsemantic-indigo-color)
119
178
  )}:host([variant=purple]):before{background-color:var(
120
- --spectrum-statuslight-m-purple-dot-color,var(--spectrum-global-color-purple-400)
121
- )}@media (forced-colors:active){:host([dir]){--spectrum-statuslight-m-info-text-color:CanvasText;--spectrum-statuslight-m-neutral-text-color:CanvasText;--spectrum-statuslight-m-info-text-color-disabled:GrayText;--spectrum-statuslight-m-info-dot-color-disabled:GrayText;forced-color-adjust:none}:host:before{border:1px solid ButtonText}}:host([disabled]):before{background-color:var(
179
+ --mod-statuslight-nonsemantic-purple-color,var(--spectrum-statuslight-nonsemantic-purple-color)
180
+ )}:host([variant=fuchsia]):before{background-color:var(
181
+ --mod-statuslight-nonsemantic-fuchsia-color,var(--spectrum-statuslight-nonsemantic-fuchsia-color)
182
+ )}:host([variant=magenta]):before{background-color:var(
183
+ --mod-statuslight-nonsemantic-magenta-color,var(--spectrum-statuslight-nonsemantic-magenta-color)
184
+ )}:host([disabled]):before{background-color:var(
122
185
  --spectrum-statuslight-dot-color-disabled,var(--spectrum-global-color-gray-400)
123
186
  )}
124
- `;
125
- export default styles;
187
+ `;export default s;
126
188
  //# sourceMappingURL=status-light.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["status-light.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-statuslight-info-text-padding-bottom:var(\n--spectrum-statuslight-s-info-text-padding-bottom\n);--spectrum-statuslight-info-dot-border-radius:var(\n--spectrum-statuslight-s-info-dot-border-radius,var(--spectrum-global-dimension-static-percent-50)\n);--spectrum-statuslight-info-dot-margin-top:var(\n--spectrum-statuslight-s-info-dot-margin-top,var(--spectrum-global-dimension-size-100)\n);--spectrum-statuslight-info-dot-size:var(\n--spectrum-statuslight-s-info-dot-size,var(--spectrum-global-dimension-static-size-100)\n);--spectrum-statuslight-info-text-gap:var(\n--spectrum-statuslight-s-info-text-gap,var(--spectrum-global-dimension-size-115)\n);--spectrum-statuslight-info-text-size:var(\n--spectrum-statuslight-s-info-text-size,var(--spectrum-global-dimension-font-size-75)\n);--spectrum-statuslight-info-text-padding-top:var(\n--spectrum-statuslight-s-info-text-padding-top,var(--spectrum-global-dimension-static-size-50)\n);--spectrum-statuslight-info-text-font-weight:var(\n--spectrum-statuslight-s-info-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-statuslight-info-text-line-height:var(\n--spectrum-statuslight-s-info-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-statuslight-info-height:var(\n--spectrum-statuslight-s-info-height,var(--spectrum-global-dimension-size-300)\n)}:host([size=m]){--spectrum-statuslight-info-dot-border-radius:var(\n--spectrum-statuslight-m-info-dot-border-radius,var(--spectrum-global-dimension-static-percent-50)\n);--spectrum-statuslight-info-dot-margin-top:var(\n--spectrum-statuslight-m-info-dot-margin-top,var(--spectrum-global-dimension-size-130)\n);--spectrum-statuslight-info-dot-size:var(\n--spectrum-statuslight-m-info-dot-size,var(--spectrum-global-dimension-size-100)\n);--spectrum-statuslight-info-text-gap:var(\n--spectrum-statuslight-m-info-text-gap,var(--spectrum-global-dimension-size-125)\n);--spectrum-statuslight-info-text-size:var(\n--spectrum-statuslight-m-info-text-size,var(--spectrum-global-dimension-font-size-100)\n);--spectrum-statuslight-info-text-padding-top:var(\n--spectrum-statuslight-m-info-text-padding-top,var(--spectrum-global-dimension-size-75)\n);--spectrum-statuslight-info-text-padding-bottom:var(\n--spectrum-statuslight-m-info-text-padding-bottom,var(--spectrum-global-dimension-size-115)\n);--spectrum-statuslight-info-text-font-weight:var(\n--spectrum-statuslight-m-info-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-statuslight-info-text-line-height:var(\n--spectrum-statuslight-m-info-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-statuslight-info-height:var(\n--spectrum-statuslight-m-info-height,var(--spectrum-global-dimension-size-400)\n)}:host([size=l]){--spectrum-statuslight-info-dot-size:var(\n--spectrum-statuslight-l-info-dot-size\n);--spectrum-statuslight-info-text-padding-top:var(\n--spectrum-statuslight-l-info-text-padding-top\n);--spectrum-statuslight-info-dot-border-radius:var(\n--spectrum-statuslight-l-info-dot-border-radius,var(--spectrum-global-dimension-static-percent-50)\n);--spectrum-statuslight-info-dot-margin-top:var(\n--spectrum-statuslight-l-info-dot-margin-top,var(--spectrum-global-dimension-size-185)\n);--spectrum-statuslight-info-text-gap:var(\n--spectrum-statuslight-l-info-text-gap,var(--spectrum-global-dimension-size-130)\n);--spectrum-statuslight-info-text-size:var(\n--spectrum-statuslight-l-info-text-size,var(--spectrum-global-dimension-font-size-200)\n);--spectrum-statuslight-info-text-padding-bottom:var(\n--spectrum-statuslight-l-info-text-padding-bottom,var(--spectrum-global-dimension-size-130)\n);--spectrum-statuslight-info-text-font-weight:var(\n--spectrum-statuslight-l-info-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-statuslight-info-text-line-height:var(\n--spectrum-statuslight-l-info-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-statuslight-info-height:var(\n--spectrum-statuslight-l-info-height,var(--spectrum-global-dimension-size-500)\n)}:host([size=xl]){--spectrum-statuslight-info-dot-size:var(\n--spectrum-statuslight-xl-info-dot-size\n);--spectrum-statuslight-info-dot-border-radius:var(\n--spectrum-statuslight-xl-info-dot-border-radius,var(--spectrum-global-dimension-static-percent-50)\n);--spectrum-statuslight-info-dot-margin-top:var(\n--spectrum-statuslight-xl-info-dot-margin-top,var(--spectrum-global-dimension-size-250)\n);--spectrum-statuslight-info-text-gap:var(\n--spectrum-statuslight-xl-info-text-gap,var(--spectrum-global-dimension-size-160)\n);--spectrum-statuslight-info-text-size:var(\n--spectrum-statuslight-xl-info-text-size,var(--spectrum-global-dimension-font-size-300)\n);--spectrum-statuslight-info-text-padding-top:var(\n--spectrum-statuslight-xl-info-text-padding-top,var(--spectrum-global-dimension-size-150)\n);--spectrum-statuslight-info-text-padding-bottom:var(\n--spectrum-statuslight-xl-info-text-padding-bottom,var(--spectrum-global-dimension-size-175)\n);--spectrum-statuslight-info-text-font-weight:var(\n--spectrum-statuslight-xl-info-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-statuslight-info-text-line-height:var(\n--spectrum-statuslight-xl-info-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-statuslight-info-height:var(\n--spectrum-statuslight-xl-info-height,var(--spectrum-global-dimension-size-600)\n)}:host([dir]){--spectrum-statuslight-info-dot-resolved-margin-top:calc(var(--spectrum-statuslight-info-dot-margin-top) - var(--spectrum-statuslight-info-text-padding-top));align-items:flex-start;box-sizing:border-box;display:flex;flex-direction:row;font-size:var(--spectrum-statuslight-info-text-size);font-weight:var(--spectrum-statuslight-info-text-font-weight);line-height:var(--spectrum-statuslight-info-text-line-height);min-height:var(--spectrum-statuslight-info-height);padding-bottom:var(--spectrum-statuslight-info-text-padding-bottom);padding-left:0;padding-right:0;padding-top:var(--spectrum-statuslight-info-text-padding-top)}:host([dir=ltr]):before{margin-left:var(\n--spectrum-global-dimension-size-0\n);margin-right:var(--spectrum-statuslight-info-text-gap)}:host([dir=rtl]):before{margin-left:var(--spectrum-statuslight-info-text-gap);margin-right:var(\n--spectrum-global-dimension-size-0\n)}:host:before{-ms-high-contrast-adjust:none;border-radius:var(--spectrum-statuslight-info-dot-border-radius);content:\"\";display:inline-block;flex-grow:0;flex-shrink:0;forced-color-adjust:none;height:var(--spectrum-statuslight-info-dot-size);margin-bottom:var(--spectrum-global-dimension-size-0);margin-top:var(--spectrum-statuslight-info-dot-resolved-margin-top);width:var(--spectrum-statuslight-info-dot-size)}:host([variant=neutral]){font-style:italic}:host([dir]){color:var(\n--spectrum-statuslight-m-info-text-color,var(--spectrum-alias-text-color)\n)}:host([disabled]),:host([disabled]){color:var(\n--spectrum-statuslight-m-info-text-color-disabled,var(--spectrum-alias-text-color-disabled)\n)}:host([disabled]):before,:host([disabled]):before{background-color:var(\n--spectrum-statuslight-m-info-dot-color-disabled,var(--spectrum-global-color-gray-400)\n)}:host([variant=negative]):before{background-color:var(\n--spectrum-statuslight-m-negative-dot-color,var(--spectrum-semantic-negative-status-color)\n)}:host([variant=notice]):before{background-color:var(\n--spectrum-statuslight-m-notice-dot-color,var(--spectrum-semantic-notice-status-color)\n)}:host([variant=positive]):before{background-color:var(\n--spectrum-statuslight-m-positive-dot-color,var(--spectrum-semantic-positive-status-color)\n)}:host([active]):before,:host([variant=info]):before{background-color:var(\n--spectrum-statuslight-m-info-dot-color,var(--spectrum-semantic-informative-status-color)\n)}:host([variant=neutral]){color:var(\n--spectrum-statuslight-m-neutral-text-color,var(--spectrum-alias-label-text-color)\n)}:host([variant=neutral]):before{background-color:var(\n--spectrum-statuslight-m-neutral-dot-color,var(--spectrum-global-color-gray-500)\n)}:host([variant=celery]):before{background-color:var(\n--spectrum-statuslight-m-celery-dot-color,var(--spectrum-global-color-celery-400)\n)}:host([variant=yellow]):before{background-color:var(\n--spectrum-statuslight-m-yellow-dot-color,var(--spectrum-global-color-yellow-400)\n)}:host([variant=fuchsia]):before{background-color:var(\n--spectrum-statuslight-m-fuchsia-dot-color,var(--spectrum-global-color-fuchsia-400)\n)}:host([variant=indigo]):before{background-color:var(\n--spectrum-statuslight-m-indigo-dot-color,var(--spectrum-global-color-indigo-400)\n)}:host([variant=seafoam]):before{background-color:var(\n--spectrum-statuslight-m-seafoam-dot-color,var(--spectrum-global-color-seafoam-400)\n)}:host([variant=chartreuse]):before{background-color:var(\n--spectrum-statuslight-m-chartreuse-dot-color,var(--spectrum-global-color-chartreuse-400)\n)}:host([variant=magenta]):before{background-color:var(\n--spectrum-statuslight-m-magenta-dot-color,var(--spectrum-global-color-magenta-400)\n)}:host([variant=purple]):before{background-color:var(\n--spectrum-statuslight-m-purple-dot-color,var(--spectrum-global-color-purple-400)\n)}@media (forced-colors:active){:host([dir]){--spectrum-statuslight-m-info-text-color:CanvasText;--spectrum-statuslight-m-neutral-text-color:CanvasText;--spectrum-statuslight-m-info-text-color-disabled:GrayText;--spectrum-statuslight-m-info-dot-color-disabled:GrayText;forced-color-adjust:none}:host:before{border:1px solid ButtonText}}:host([disabled]):before{background-color:var(\n--spectrum-statuslight-dot-color-disabled,var(--spectrum-global-color-gray-400)\n)}\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;AA2Hf,eAAe;",
6
- "names": []
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([dir]){--spectrum-statuslight-corner-radius:50%;--spectrum-statuslight-font-weight:400;--spectrum-statuslight-border-width:var(--spectrum-border-width-100);--spectrum-statuslight-height:var(--spectrum-component-height-100);--spectrum-statuslight-dot-size:var(\n--spectrum-status-light-dot-size-medium\n);--spectrum-statuslight-line-height:var(--spectrum-line-height-100);--spectrum-statuslight-line-height-cjk:var(--spectrum-cjk-line-height-100);--spectrum-statuslight-font-size:var(--spectrum-font-size-100);--spectrum-statuslight-spacing-dot-to-label:var(\n--spectrum-text-to-visual-100\n);--spectrum-statuslight-spacing-top-to-dot:var(\n--spectrum-status-light-top-to-dot-medium\n);--spectrum-statuslight-spacing-top-to-label:var(\n--spectrum-component-top-to-text-100\n);--spectrum-statuslight-spacing-bottom-to-label:var(\n--spectrum-component-bottom-to-text-100\n);--spectrum-statuslight-content-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-statuslight-subdued-content-color-default:var(\n--spectrum-neutral-subdued-content-color-default\n);--spectrum-statuslight-semantic-neutral-color:var(\n--spectrum-neutral-visual-color\n);--spectrum-statuslight-semantic-accent-color:var(\n--spectrum-accent-visual-color\n);--spectrum-statuslight-semantic-negative-color:var(\n--spectrum-negative-visual-color\n);--spectrum-statuslight-semantic-info-color:var(\n--spectrum-informative-visual-color\n);--spectrum-statuslight-semantic-notice-color:var(\n--spectrum-notice-visual-color\n);--spectrum-statuslight-semantic-positive-color:var(\n--spectrum-positive-visual-color\n);--spectrum-statuslight-nonsemantic-gray-color:var(\n--spectrum-gray-visual-color\n);--spectrum-statuslight-nonsemantic-red-color:var(\n--spectrum-red-visual-color\n);--spectrum-statuslight-nonsemantic-orange-color:var(\n--spectrum-orange-visual-color\n);--spectrum-statuslight-nonsemantic-yellow-color:var(\n--spectrum-yellow-visual-color\n);--spectrum-statuslight-nonsemantic-chartreuse-color:var(\n--spectrum-chartreuse-visual-color\n);--spectrum-statuslight-nonsemantic-celery-color:var(\n--spectrum-celery-visual-color\n);--spectrum-statuslight-nonsemantic-green-color:var(\n--spectrum-green-visual-color\n);--spectrum-statuslight-nonsemantic-seafoam-color:var(\n--spectrum-seafoam-visual-color\n);--spectrum-statuslight-nonsemantic-cyan-color:var(\n--spectrum-cyan-visual-color\n);--spectrum-statuslight-nonsemantic-blue-color:var(\n--spectrum-blue-visual-color\n);--spectrum-statuslight-nonsemantic-indigo-color:var(\n--spectrum-indigo-visual-color\n);--spectrum-statuslight-nonsemantic-purple-color:var(\n--spectrum-purple-visual-color\n);--spectrum-statuslight-nonsemantic-fuchsia-color:var(\n--spectrum-fuchsia-visual-color\n);--spectrum-statuslight-nonsemantic-magenta-color:var(\n--spectrum-magenta-visual-color\n)}:host([size=s]){--spectrum-statuslight-height:var(\n--spectrum-component-height-75\n);--spectrum-statuslight-dot-size:var(\n--spectrum-status-light-dot-size-small\n);--spectrum-statuslight-font-size:var(--spectrum-font-size-75);--spectrum-statuslight-spacing-dot-to-label:var(\n--spectrum-text-to-visual-75\n);--spectrum-statuslight-spacing-top-to-dot:var(\n--spectrum-status-light-top-to-dot-small\n);--spectrum-statuslight-spacing-top-to-label:var(\n--spectrum-component-top-to-text-75\n);--spectrum-statuslight-spacing-bottom-to-label:var(\n--spectrum-component-bottom-to-text-75\n)}:host([size=m]){--spectrum-statuslight-height:var(\n--spectrum-component-height-100\n);--spectrum-statuslight-dot-size:var(\n--spectrum-status-light-dot-size-medium\n);--spectrum-statuslight-font-size:var(--spectrum-font-size-100);--spectrum-statuslight-spacing-dot-to-label:var(\n--spectrum-text-to-visual-100\n);--spectrum-statuslight-spacing-top-to-dot:var(\n--spectrum-status-light-top-to-dot-medium\n);--spectrum-statuslight-spacing-top-to-label:var(\n--spectrum-component-top-to-text-100\n);--spectrum-statuslight-spacing-bottom-to-label:var(\n--spectrum-component-bottom-to-text-100\n)}:host([size=l]){--spectrum-statuslight-height:var(\n--spectrum-component-height-200\n);--spectrum-statuslight-dot-size:var(\n--spectrum-status-light-dot-size-large\n);--spectrum-statuslight-font-size:var(--spectrum-font-size-200);--spectrum-statuslight-spacing-dot-to-label:var(\n--spectrum-text-to-visual-200\n);--spectrum-statuslight-spacing-top-to-dot:var(\n--spectrum-status-light-top-to-dot-large\n);--spectrum-statuslight-spacing-top-to-label:var(\n--spectrum-component-top-to-text-200\n);--spectrum-statuslight-spacing-bottom-to-label:var(\n--spectrum-component-bottom-to-text-200\n)}:host([size=xl]){--spectrum-statuslight-height:var(\n--spectrum-component-height-300\n);--spectrum-statuslight-dot-size:var(\n--spectrum-status-light-dot-size-extra-large\n);--spectrum-statuslight-font-size:var(--spectrum-font-size-300);--spectrum-statuslight-spacing-dot-to-label:var(\n--spectrum-text-to-visual-300\n);--spectrum-statuslight-spacing-top-to-dot:var(\n--spectrum-status-light-top-to-dot-extra-large\n);--spectrum-statuslight-spacing-top-to-label:var(\n--spectrum-component-top-to-text-300\n);--spectrum-statuslight-spacing-bottom-to-label:var(\n--spectrum-component-bottom-to-text-300\n)}@media (forced-colors:active){:host([dir]){--highcontrast-statuslight-content-color-default:CanvasText;--highcontrast-statuslight-subdued-content-color-default:CanvasText;forced-color-adjust:none}:host:before{border:var(\n--mod-statuslight-border-width,var(--spectrum-statuslight-border-width)\n) solid ButtonText}}:host([dir]){align-items:flex-start;box-sizing:border-box;color:var(\n--highcontrast-statuslight-content-color-default,var(\n--mod-statuslight-content-color-default,var(--spectrum-statuslight-content-color-default)\n)\n);display:flex;flex-direction:row;font-size:var(\n--mod-statuslight-font-size,var(--spectrum-statuslight-font-size)\n);font-weight:var(\n--mod-statuslight-font-weight,var(--spectrum-statuslight-font-weight)\n);line-height:var(\n--mod-statuslight-line-height,--spectrum-statuslight-line-height\n);min-height:var(\n--mod-statuslight-height,var(--spectrum-statuslight-height)\n);padding-block-end:var(\n--mod-statuslight-spacing-bottom-to-label,var(--spectrum-statuslight-spacing-bottom-to-label)\n);padding-block-start:var(\n--mod-statuslight-spacing-top-to-label,var(--spectrum-statuslight-spacing-top-to-label)\n);padding-inline:0}:host(:lang(ja)),:host(:lang(ko)),:host(:lang(zh)){line-height:var(\n--spectrum-statuslight-line-height-cjk,var(\n--mod-statuslight-line-height,var(--spectrum-statuslight-line-height)\n)\n)}:host:before{--spectrum-statuslight-spacing-computed-top-to-dot:calc(var(\n--mod-statuslight-spacing-top-to-dot,\nvar(--spectrum-statuslight-spacing-top-to-dot)\n) - var(\n--mod-statuslight-spacing-top-to-label,\nvar(--spectrum-statuslight-spacing-top-to-label)\n));-ms-high-contrast-adjust:none;block-size:var(\n--mod-statuslight-dot-size,var(--spectrum-statuslight-dot-size)\n);border-radius:var(\n--mod-statuslight-corner-radius,var(--spectrum-statuslight-corner-radius)\n);content:\"\";display:inline-block;flex-grow:0;flex-shrink:0;forced-color-adjust:none;inline-size:var(\n--mod-statuslight-dot-size,var(--spectrum-statuslight-dot-size)\n);margin-block-start:var(--spectrum-statuslight-spacing-computed-top-to-dot);margin-inline-end:var(\n--mod-statuslight-spacing-dot-to-label,var(--spectrum-statuslight-spacing-dot-to-label)\n)}:host([variant=neutral]){font-style:italic}:host([variant=neutral]){color:var(\n--highcontrast-statuslight-subdued-content-color-default,var(\n--mod-statuslight-subdued-content-color-default,var(--spectrum-statuslight-subdued-content-color-default)\n)\n)}:host([variant=neutral]):before{background-color:var(\n--mod-statuslight-semantic-neutral-color,var(--spectrum-statuslight-semantic-neutral-color)\n)}.spectrum-StatusLight--accent:before{background-color:var(\n--mod-statuslight-semantic-accent-color,var(--spectrum-statuslight-semantic-accent-color)\n)}:host([variant=info]):before{background-color:var(\n--mod-statuslight-semantic-info-color,var(--spectrum-statuslight-semantic-info-color)\n)}:host([variant=negative]):before{background-color:var(\n--mod-statuslight-semantic-negative-color,var(--spectrum-statuslight-semantic-negative-color)\n)}:host([variant=notice]):before{background-color:var(\n--mod-statuslight-semantic-notice-color,var(--spectrum-statuslight-semantic-notice-color)\n)}:host([variant=positive]):before{background-color:var(\n--mod-statuslight-semantic-positive-color,var(--spectrum-statuslight-semantic-positive-color)\n)}.spectrum-StatusLight--gray:before{background-color:var(\n--mod-statuslight-nonsemantic-gray-color,var(--spectrum-statuslight-nonsemantic-gray-color)\n)}.spectrum-StatusLight--red:before{background-color:var(\n--mod-statuslight-nonsemantic-red-color,var(--spectrum-statuslight-nonsemantic-red-color)\n)}.spectrum-StatusLight--orange:before{background-color:var(\n--mod-statuslight-nonsemantic-orange-color,var(--spectrum-statuslight-nonsemantic-orange-color)\n)}:host([variant=yellow]):before{background-color:var(\n--mod-statuslight-nonsemantic-yellow-color,var(--spectrum-statuslight-nonsemantic-yellow-color)\n)}:host([variant=chartreuse]):before{background-color:var(\n--mod-statuslight-nonsemantic-chartreuse-color,var(--spectrum-statuslight-nonsemantic-chartreuse-color)\n)}:host([variant=celery]):before{background-color:var(\n--mod-statuslight-nonsemantic-celery-color,var(--spectrum-statuslight-nonsemantic-celery-color)\n)}.spectrum-StatusLight--green:before{background-color:var(\n--mod-statuslight-nonsemantic-green-color,var(--spectrum-statuslight-nonsemantic-green-color)\n)}:host([variant=seafoam]):before{background-color:var(\n--mod-statuslight-nonsemantic-seafoam-color,var(--spectrum-statuslight-nonsemantic-seafoam-color)\n)}.spectrum-StatusLight--cyan:before{background-color:var(\n--mod-statuslight-nonsemantic-cyan-color,var(--spectrum-statuslight-nonsemantic-cyan-color)\n)}.spectrum-StatusLight--blue:before{background-color:var(\n--mod-statuslight-nonsemantic-blue-color,var(--spectrum-statuslight-nonsemantic-blue-color)\n)}:host([variant=indigo]):before{background-color:var(\n--mod-statuslight-nonsemantic-indigo-color,var(--spectrum-statuslight-nonsemantic-indigo-color)\n)}:host([variant=purple]):before{background-color:var(\n--mod-statuslight-nonsemantic-purple-color,var(--spectrum-statuslight-nonsemantic-purple-color)\n)}:host([variant=fuchsia]):before{background-color:var(\n--mod-statuslight-nonsemantic-fuchsia-color,var(--spectrum-statuslight-nonsemantic-fuchsia-color)\n)}:host([variant=magenta]):before{background-color:var(\n--mod-statuslight-nonsemantic-magenta-color,var(--spectrum-statuslight-nonsemantic-magenta-color)\n)}:host([disabled]):before{background-color:var(\n--spectrum-statuslight-dot-color-disabled,var(--spectrum-global-color-gray-400)\n)}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2Lf,eAAeC",
6
+ "names": ["css", "styles"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { html } from "@spectrum-web-components/base";
2
3
  import "@spectrum-web-components/status-light/sp-status-light.js";
3
4
  export default {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["status-light.stories.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/status-light/sp-status-light.js';\n\nexport default {\n component: 'sp-status-light',\n title: 'StatusLight',\n};\n\nexport const s = (): TemplateResult => html`\n <sp-status-light size=\"s\" variant=\"positive\">positive</sp-status-light>\n <sp-status-light size=\"s\" variant=\"negative\">negative</sp-status-light>\n <sp-status-light size=\"s\" variant=\"notice\">notice</sp-status-light>\n <sp-status-light size=\"s\" variant=\"info\">info</sp-status-light>\n <sp-status-light size=\"s\" variant=\"neutral\">neutral</sp-status-light>\n <sp-status-light size=\"s\" variant=\"yellow\">yellow</sp-status-light>\n <sp-status-light size=\"s\" variant=\"fuchsia\">fuchsia</sp-status-light>\n <sp-status-light size=\"s\" variant=\"indigo\">indigo</sp-status-light>\n <sp-status-light size=\"s\" variant=\"seafoam\">seafoam</sp-status-light>\n <sp-status-light size=\"s\" variant=\"chartreuse\">chartreuse</sp-status-light>\n <sp-status-light size=\"s\" variant=\"magenta\">magenta</sp-status-light>\n <sp-status-light size=\"s\" variant=\"celery\">celery</sp-status-light>\n <sp-status-light size=\"s\" variant=\"purple\">purple</sp-status-light>\n`;\n\nexport const m = (): TemplateResult => html`\n <sp-status-light size=\"m\" variant=\"positive\">positive</sp-status-light>\n <sp-status-light size=\"m\" variant=\"negative\">negative</sp-status-light>\n <sp-status-light size=\"m\" variant=\"notice\">notice</sp-status-light>\n <sp-status-light size=\"m\" variant=\"info\">info</sp-status-light>\n <sp-status-light size=\"m\" variant=\"neutral\">neutral</sp-status-light>\n <sp-status-light size=\"m\" variant=\"yellow\">yellow</sp-status-light>\n <sp-status-light size=\"m\" variant=\"fuchsia\">fuchsia</sp-status-light>\n <sp-status-light size=\"m\" variant=\"indigo\">indigo</sp-status-light>\n <sp-status-light size=\"m\" variant=\"seafoam\">seafoam</sp-status-light>\n <sp-status-light size=\"m\" variant=\"chartreuse\">chartreuse</sp-status-light>\n <sp-status-light size=\"m\" variant=\"magenta\">magenta</sp-status-light>\n <sp-status-light size=\"m\" variant=\"celery\">celery</sp-status-light>\n <sp-status-light size=\"m\" variant=\"purple\">purple</sp-status-light>\n`;\n\nexport const l = (): TemplateResult => html`\n <sp-status-light size=\"l\" variant=\"positive\">positive</sp-status-light>\n <sp-status-light size=\"l\" variant=\"negative\">negative</sp-status-light>\n <sp-status-light size=\"l\" variant=\"notice\">notice</sp-status-light>\n <sp-status-light size=\"l\" variant=\"info\">info</sp-status-light>\n <sp-status-light size=\"l\" variant=\"neutral\">neutral</sp-status-light>\n <sp-status-light size=\"l\" variant=\"yellow\">yellow</sp-status-light>\n <sp-status-light size=\"l\" variant=\"fuchsia\">fuchsia</sp-status-light>\n <sp-status-light size=\"l\" variant=\"indigo\">indigo</sp-status-light>\n <sp-status-light size=\"l\" variant=\"seafoam\">seafoam</sp-status-light>\n <sp-status-light size=\"l\" variant=\"chartreuse\">chartreuse</sp-status-light>\n <sp-status-light size=\"l\" variant=\"magenta\">magenta</sp-status-light>\n <sp-status-light size=\"l\" variant=\"celery\">celery</sp-status-light>\n <sp-status-light size=\"l\" variant=\"purple\">purple</sp-status-light>\n`;\n\nexport const XL = (): TemplateResult => html`\n <sp-status-light size=\"xl\" variant=\"positive\">positive</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"negative\">negative</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"notice\">notice</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"info\">info</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"neutral\">neutral</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"yellow\">yellow</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"fuchsia\">fuchsia</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"indigo\">indigo</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"seafoam\">seafoam</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"chartreuse\">chartreuse</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"magenta\">magenta</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"celery\">celery</sp-status-light>\n <sp-status-light size=\"xl\" variant=\"purple\">purple</sp-status-light>\n`;\n\nexport const disabledTrue = (): TemplateResult => html`\n <sp-status-light variant=\"positive\" disabled>positive</sp-status-light>\n`;\n\ndisabledTrue.storyName = 'disabled: true';\n"],
5
- "mappings": "AAWA;AAEA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,IAAI,MAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBhC,aAAM,IAAI,MAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBhC,aAAM,IAAI,MAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBhC,aAAM,KAAK,MAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBjC,aAAM,eAAe,MAAsB;AAAA;AAAA;AAIlD,aAAa,YAAY;",
5
+ "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AAEP,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,IAAI,MAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBhC,aAAM,IAAI,MAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBhC,aAAM,IAAI,MAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBhC,aAAM,KAAK,MAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBjC,aAAM,eAAe,MAAsB;AAAA;AAAA;AAIlD,aAAa,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import * as stories from "../stories/status-light.stories.js";
2
3
  import { regressVisuals } from "../../../test/visual/test.js";
3
4
  regressVisuals("StatusLightStories", stories);
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["status-light.test-vrt.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/status-light.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('StatusLightStories', stories);\n"],
5
- "mappings": "AAYA;AACA;AAEA,eAAe,sBAAsB,OAAO;",
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,sBAAsB,OAAO;",
6
6
  "names": []
7
7
  }
@@ -1,19 +1,24 @@
1
+ "use strict";
1
2
  import "@spectrum-web-components/status-light/sp-status-light.js";
2
3
  import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
3
4
  describe("Status Light", () => {
4
5
  it("loads correctly", async () => {
5
- const el = await fixture(html`
6
+ const el = await fixture(
7
+ html`
6
8
  <sp-status-light variant="positive"></sp-status-light>
7
- `);
9
+ `
10
+ );
8
11
  await elementUpdated(el);
9
12
  expect(el).to.not.be.undefined;
10
13
  const rootEl = el.shadowRoot ? el.shadowRoot.querySelector("#root") : el.querySelector("#root");
11
14
  expect(rootEl).to.not.be.undefined;
12
15
  });
13
16
  it("[disabled] manages [aria-disabled]", async () => {
14
- const el = await fixture(html`
17
+ const el = await fixture(
18
+ html`
15
19
  <sp-status-light variant="positive"></sp-status-light>
16
- `);
20
+ `
21
+ );
17
22
  await elementUpdated(el);
18
23
  expect(el.hasAttribute("aria-disabled")).to.be.false;
19
24
  el.disabled = true;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["status-light.test.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\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 '@spectrum-web-components/status-light/sp-status-light.js';\nimport { StatusLight } from '@spectrum-web-components/status-light';\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\ndescribe('Status Light', () => {\n it('loads correctly', async () => {\n const el = await fixture<StatusLight>(\n html`\n <sp-status-light variant=\"positive\"></sp-status-light>\n `\n );\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n const rootEl = el.shadowRoot\n ? (el.shadowRoot.querySelector('#root') as HTMLImageElement)\n : (el.querySelector('#root') as HTMLImageElement);\n expect(rootEl).to.not.be.undefined;\n });\n it('[disabled] manages [aria-disabled]', async () => {\n const el = await fixture<StatusLight>(\n html`\n <sp-status-light variant=\"positive\"></sp-status-light>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-disabled')).to.be.false;\n\n el.disabled = true;\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-disabled')).to.be.true;\n expect(el.getAttribute('aria-disabled')).to.equal('true');\n });\n});\n"],
5
- "mappings": "AAUA;AAEA;AAEA,SAAS,gBAAgB,MAAM;AAC3B,KAAG,mBAAmB,YAAY;AAC9B,UAAM,KAAK,MAAM,QACb;AAAA;AAAA,aAGJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,UAAM,SAAS,GAAG,aACX,GAAG,WAAW,cAAc,OAAO,IACnC,GAAG,cAAc,OAAO;AAC/B,WAAO,MAAM,EAAE,GAAG,IAAI,GAAG;AAAA,EAC7B,CAAC;AACD,KAAG,sCAAsC,YAAY;AACjD,UAAM,KAAK,MAAM,QACb;AAAA;AAAA,aAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,aAAa,eAAe,CAAC,EAAE,GAAG,GAAG;AAE/C,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,aAAa,eAAe,CAAC,EAAE,GAAG,GAAG;AAC/C,WAAO,GAAG,aAAa,eAAe,CAAC,EAAE,GAAG,MAAM,MAAM;AAAA,EAC5D,CAAC;AACL,CAAC;",
5
+ "mappings": ";AAUA,OAAO;AAEP,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AAEtD,SAAS,gBAAgB,MAAM;AAC3B,KAAG,mBAAmB,YAAY;AAC9B,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,UAAM,SAAS,GAAG,aACX,GAAG,WAAW,cAAc,OAAO,IACnC,GAAG,cAAc,OAAO;AAC/B,WAAO,MAAM,EAAE,GAAG,IAAI,GAAG;AAAA,EAC7B,CAAC;AACD,KAAG,sCAAsC,YAAY;AACjD,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,aAAa,eAAe,CAAC,EAAE,GAAG,GAAG;AAE/C,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,aAAa,eAAe,CAAC,EAAE,GAAG,GAAG;AAC/C,WAAO,GAAG,aAAa,eAAe,CAAC,EAAE,GAAG,MAAM,MAAM;AAAA,EAC5D,CAAC;AACL,CAAC;",
6
6
  "names": []
7
7
  }