@plumeria/core 10.2.0 → 10.2.2
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 +6 -4
- package/lib/csstypes.d.ts +1776 -0
- package/lib/types.d.ts +6 -6
- package/package.json +1 -1
- package/lib/csstype.d.ts +0 -1695
package/lib/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CSSTypes } from './csstypes';
|
|
2
2
|
|
|
3
3
|
type CSSVariableKey = `--${string}`;
|
|
4
4
|
type CSSVariableValue = `var(${CSSVariableKey})`;
|
|
5
5
|
type CSSVariableProperty = { [key: CSSVariableKey]: string | number };
|
|
6
6
|
|
|
7
7
|
type CommonProperties = {
|
|
8
|
-
[K in keyof
|
|
8
|
+
[K in keyof CSSTypes]: CSSTypes[K] | CSSVariableValue;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
type ArrayString = `[${string}`;
|
|
@@ -34,14 +34,14 @@ type CSSProperties =
|
|
|
34
34
|
| QuerySelector
|
|
35
35
|
| CSSVariableProperty;
|
|
36
36
|
|
|
37
|
+
type CreateStyleValue = CSSProperties | ((...args: never) => CSSProperties);
|
|
38
|
+
|
|
37
39
|
type CreateReturnType<T> = {
|
|
38
40
|
[K in keyof T]: T[K] extends (...args: infer A) => infer R
|
|
39
|
-
? (...args: A) => Readonly<
|
|
40
|
-
: Readonly<
|
|
41
|
+
? (...args: A) => Readonly<R>
|
|
42
|
+
: Readonly<T[K]>;
|
|
41
43
|
};
|
|
42
44
|
|
|
43
|
-
type CreateStyleValue = CSSProperties | ((...args: never) => CSSProperties);
|
|
44
|
-
|
|
45
45
|
type StyleName = CSSProperties | (false | CSSProperties | null | undefined)[];
|
|
46
46
|
|
|
47
47
|
type CreateStatic = Record<string, string | number>;
|