1111 */
1212
1313/**
14- * @todo The S1 types can be removed once we are no longer maintaining 1st-gen.
1514 * @todo Rename STATUSLIGHT_ prefix to STATUS_LIGHT_ to align with type prefix
16- * naming convention (use underscore separators for multi-word names). This
17- * requires updating all imports in 1st-gen and 2nd-gen that reference these
18- * constants.
15+ * naming convention (use underscore separators for multi-word names).
1916 */
2017import type { ElementSize } from '@spectrum-web-components/core/mixins/index.js' ;
2118
@@ -34,16 +31,7 @@ export const STATUSLIGHT_VARIANTS_SEMANTIC = [
3431 'notice' ,
3532] as const ;
3633
37- export const STATUSLIGHT_VARIANTS_SEMANTIC_S1 = [
38- ...STATUSLIGHT_VARIANTS_SEMANTIC ,
39- 'accent' ,
40- ] as const ;
41-
42- export const STATUSLIGHT_VARIANTS_SEMANTIC_S2 = [
43- ...STATUSLIGHT_VARIANTS_SEMANTIC ,
44- ] as const ;
45-
46- export const STATUSLIGHT_VARIANTS_COLOR_S1 = [
34+ export const STATUSLIGHT_VARIANTS_COLOR = [
4735 'fuchsia' ,
4836 'indigo' ,
4937 'magenta' ,
@@ -53,43 +41,22 @@ export const STATUSLIGHT_VARIANTS_COLOR_S1 = [
5341 'chartreuse' ,
5442 'celery' ,
5543 'cyan' ,
56- ] as const ;
57-
58- export const STATUSLIGHT_VARIANTS_COLOR_S2 = [
59- ...STATUSLIGHT_VARIANTS_COLOR_S1 ,
6044 'pink' ,
6145 'turquoise' ,
6246 'brown' ,
6347 'cinnamon' ,
6448 'silver' ,
6549] as const ;
6650
67- export const STATUSLIGHT_VARIANTS_S1 = [
68- ...STATUSLIGHT_VARIANTS_SEMANTIC_S1 ,
69- ...STATUSLIGHT_VARIANTS_COLOR_S1 ,
70- ] as const ;
71-
72- export const STATUSLIGHT_VARIANTS_S2 = [
73- ...STATUSLIGHT_VARIANTS_SEMANTIC_S2 ,
74- ...STATUSLIGHT_VARIANTS_COLOR_S2 ,
51+ export const STATUSLIGHT_VARIANTS = [
52+ ...STATUSLIGHT_VARIANTS_SEMANTIC ,
53+ ...STATUSLIGHT_VARIANTS_COLOR ,
7554] as const ;
7655
77- export type StatusLightSemanticVariantS1 =
78- ( typeof STATUSLIGHT_VARIANTS_SEMANTIC_S1 ) [ number ] ;
79- export type StatusLightSemanticVariantS2 =
80- ( typeof STATUSLIGHT_VARIANTS_SEMANTIC_S2 ) [ number ] ;
8156export type StatusLightSemanticVariant =
82- | StatusLightSemanticVariantS1
83- | StatusLightSemanticVariantS2 ;
57+ ( typeof STATUSLIGHT_VARIANTS_SEMANTIC ) [ number ] ;
8458
85- export type StatusLightColorVariantS1 =
86- ( typeof STATUSLIGHT_VARIANTS_COLOR_S1 ) [ number ] ;
87- export type StatusLightColorVariantS2 =
88- ( typeof STATUSLIGHT_VARIANTS_COLOR_S2 ) [ number ] ;
8959export type StatusLightColorVariant =
90- | StatusLightColorVariantS1
91- | StatusLightColorVariantS2 ;
60+ ( typeof STATUSLIGHT_VARIANTS_COLOR ) [ number ] ;
9261
93- export type StatusLightVariantS1 = ( typeof STATUSLIGHT_VARIANTS_S1 ) [ number ] ;
94- export type StatusLightVariantS2 = ( typeof STATUSLIGHT_VARIANTS_S2 ) [ number ] ;
95- export type StatusLightVariant = StatusLightVariantS1 | StatusLightVariantS2 ;
62+ export type StatusLightVariant = ( typeof STATUSLIGHT_VARIANTS ) [ number ] ;
0 commit comments