@plumeria/core 7.5.2 → 7.5.4

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/lib/css.d.ts CHANGED
@@ -49,4 +49,4 @@ declare module '@plumeria/core' {
49
49
  export const variants: variants;
50
50
  export const marker: marker;
51
51
  export const extended: extended;
52
- }
52
+ }
package/lib/css.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/lib/types.d.ts CHANGED
@@ -35,21 +35,27 @@ type SystemColorKeyword =
35
35
  | 'ThreeDShadow'
36
36
  | 'Window'
37
37
  | 'WindowFrame'
38
- | 'WindowText';
38
+ | 'WindowText'
39
+ | 'AccentColor'
40
+ | 'AccentColorText'
41
+ | 'ActiveText'
42
+ | 'ButtonBorder'
43
+ | 'Canvas'
44
+ | 'CanvasText'
45
+ | 'Field'
46
+ | 'FieldText'
47
+ | 'LinkText'
48
+ | 'Mark'
49
+ | 'MarkText'
50
+ | 'SelectedItem'
51
+ | 'SelectedItemText'
52
+ | 'VisitedText';
39
53
 
40
54
  type ExcludeMozInitial<T> = Exclude<T, '-moz-initial'>;
41
55
 
42
56
  type CSSTypeProperties = Properties<number | (string & {})>;
43
57
 
44
- type CustomProperties = {
45
- [K in keyof CSSTypeProperties]: ExcludeMozInitial<CSSTypeProperties[K]>;
46
- };
47
-
48
- type BaseCSSProperties = {
49
- [K in keyof CustomProperties]: CustomProperties[K] | CSSVariableValue;
50
- };
51
-
52
- interface CommonProperties extends BaseCSSProperties {
58
+ type ColorProperties = {
53
59
  accentColor?: CSSColorProperty;
54
60
  color?: CSSColorProperty;
55
61
  borderLeftColor?: CSSColorProperty;
@@ -67,7 +73,13 @@ interface CommonProperties extends BaseCSSProperties {
67
73
  textDecorationColor?: CSSColorProperty;
68
74
  caretColor?: CSSColorProperty;
69
75
  columnRuleColor?: CSSColorProperty;
70
- }
76
+ };
77
+
78
+ type CommonProperties = {
79
+ [K in keyof CSSTypeProperties]: K extends keyof ColorProperties
80
+ ? ColorProperties[K]
81
+ : ExcludeMozInitial<CSSTypeProperties[K]> | CSSVariableValue;
82
+ };
71
83
 
72
84
  type ArrayString = `[${string}`;
73
85
  type ArraySelector = {
@@ -149,4 +161,4 @@ export type {
149
161
  Variants,
150
162
  Marker,
151
163
  Extended,
152
- };
164
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "7.5.2",
3
+ "version": "7.5.4",
4
4
  "description": "A type-only CSS extract.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",