1010 * governing permissions and limitations under the License.
1111 */
1212
13- /*
14- * @todo The S1 types can be removed once we are no longer maintaining 1st-gen.
13+ /**
14+ * @todo Rename STATUSLIGHT_ prefix to STATUS_LIGHT_ to align with type prefix
15+ * naming convention (use underscore separators for multi-word names).
1516 */
16-
1717import type { ElementSize } from '@spectrum-web-components/core/mixins/index.js' ;
1818
19- // ──────────────────
20- // SHARED
21- // ──────────────────
22-
23- export const STATUS_LIGHT_VALID_SIZES = [
19+ export const STATUSLIGHT_VALID_SIZES = [
2420 's' ,
2521 'm' ,
2622 'l' ,
2723 'xl' ,
2824] as const satisfies readonly ElementSize [ ] ;
2925
30- export const STATUS_LIGHT_VARIANTS_SEMANTIC = [
26+ export const STATUSLIGHT_VARIANTS_SEMANTIC = [
3127 'neutral' ,
3228 'info' ,
3329 'positive' ,
3430 'negative' ,
3531 'notice' ,
3632] as const ;
3733
38- export const STATUS_LIGHT_VARIANTS_SEMANTIC_S2 = [
39- ...STATUS_LIGHT_VARIANTS_SEMANTIC ,
40- ] as const ;
41-
42- // ──────────────────────────────────────────
43- // S1-ONLY (remove with 1st-gen)
44- // ──────────────────────────────────────────
45-
46- export const STATUS_LIGHT_VARIANTS_SEMANTIC_S1 = [
47- ...STATUS_LIGHT_VARIANTS_SEMANTIC ,
48- 'accent' ,
49- ] as const ;
50-
51- export const STATUS_LIGHT_VARIANTS_COLOR_S1 = [
34+ export const STATUSLIGHT_VARIANTS_COLOR = [
5235 'fuchsia' ,
5336 'indigo' ,
5437 'magenta' ,
@@ -58,56 +41,22 @@ export const STATUS_LIGHT_VARIANTS_COLOR_S1 = [
5841 'chartreuse' ,
5942 'celery' ,
6043 'cyan' ,
61- ] as const ;
62-
63- export const STATUS_LIGHT_VARIANTS_S1 = [
64- ...STATUS_LIGHT_VARIANTS_SEMANTIC_S1 ,
65- ...STATUS_LIGHT_VARIANTS_COLOR_S1 ,
66- ] as const ;
67-
68- // ──────────────────
69- // CANONICAL
70- // ──────────────────
71-
72- export const STATUS_LIGHT_VARIANTS_COLOR_S2 = [
73- ...STATUS_LIGHT_VARIANTS_COLOR_S1 ,
7444 'pink' ,
7545 'turquoise' ,
7646 'brown' ,
7747 'cinnamon' ,
7848 'silver' ,
7949] as const ;
8050
81- export const STATUS_LIGHT_VARIANTS_S2 = [
82- ...STATUS_LIGHT_VARIANTS_SEMANTIC_S2 ,
83- ...STATUS_LIGHT_VARIANTS_COLOR_S2 ,
51+ export const STATUSLIGHT_VARIANTS = [
52+ ...STATUSLIGHT_VARIANTS_SEMANTIC ,
53+ ...STATUSLIGHT_VARIANTS_COLOR ,
8454] as const ;
8555
86- // ──────────────────
87- // TYPES
88- // ──────────────────
89-
90- // S1-only (remove with 1st-gen)
91- export type StatusLightSemanticVariantS1 =
92- ( typeof STATUS_LIGHT_VARIANTS_SEMANTIC_S1 ) [ number ] ;
93- export type StatusLightColorVariantS1 =
94- ( typeof STATUS_LIGHT_VARIANTS_COLOR_S1 ) [ number ] ;
95- export type StatusLightVariantS1 = ( typeof STATUS_LIGHT_VARIANTS_S1 ) [ number ] ;
96-
97- // Canonical (S2)
98- export type StatusLightSemanticVariantS2 =
99- ( typeof STATUS_LIGHT_VARIANTS_SEMANTIC_S2 ) [ number ] ;
100- export type StatusLightColorVariantS2 =
101- ( typeof STATUS_LIGHT_VARIANTS_COLOR_S2 ) [ number ] ;
102- export type StatusLightVariantS2 = ( typeof STATUS_LIGHT_VARIANTS_S2 ) [ number ] ;
103-
104- // Base class (S1 | S2)
10556export type StatusLightSemanticVariant =
106- | StatusLightSemanticVariantS1
107- | StatusLightSemanticVariantS2 ;
57+ ( typeof STATUSLIGHT_VARIANTS_SEMANTIC ) [ number ] ;
58+
10859export type StatusLightColorVariant =
109- | StatusLightColorVariantS1
110- | StatusLightColorVariantS2 ;
111- export type StatusLightVariant = StatusLightVariantS1 | StatusLightVariantS2 ;
60+ ( typeof STATUSLIGHT_VARIANTS_COLOR ) [ number ] ;
11261
113- export type StatusLightSize = ( typeof STATUS_LIGHT_VALID_SIZES ) [ number ] ;
62+ export type StatusLightVariant = ( typeof STATUSLIGHT_VARIANTS ) [ number ] ;
0 commit comments