@plumeria/core 7.5.1 → 7.5.3
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 +1 -1
- package/lib/css.js +1 -1
- package/lib/types.d.ts +24 -12
- package/package.json +1 -1
package/lib/css.d.ts
CHANGED
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
|
|
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
|
+
};
|