@plumeria/core 7.6.1 → 8.0.0
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/types.d.ts +4 -2
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -51,7 +51,9 @@ type SystemColorKeyword =
|
|
|
51
51
|
| 'SelectedItemText'
|
|
52
52
|
| 'VisitedText';
|
|
53
53
|
|
|
54
|
-
type
|
|
54
|
+
type VendorPrefixedValue = `-${'webkit' | 'moz' | 'ms' | 'o'}-${string}`;
|
|
55
|
+
|
|
56
|
+
type CleanValue<T> = Exclude<T, VendorPrefixedValue>;
|
|
55
57
|
|
|
56
58
|
type CSSTypeProperties = Properties<number | (string & {})>;
|
|
57
59
|
|
|
@@ -78,7 +80,7 @@ type ColorProperties = {
|
|
|
78
80
|
type CommonProperties = {
|
|
79
81
|
[K in keyof CSSTypeProperties]: K extends keyof ColorProperties
|
|
80
82
|
? ColorProperties[K]
|
|
81
|
-
:
|
|
83
|
+
: CleanValue<CSSTypeProperties[K]> | CSSVariableValue;
|
|
82
84
|
};
|
|
83
85
|
|
|
84
86
|
type ArrayString = `[${string}`;
|