zss-engine 0.2.71 → 0.2.72
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/package.json
CHANGED
|
@@ -5,15 +5,12 @@ export type CreateStyleType<T> = {
|
|
|
5
5
|
export type CreateStyle = {
|
|
6
6
|
[key: string]: CSSProperties;
|
|
7
7
|
};
|
|
8
|
-
type
|
|
8
|
+
type Selector<Properties> = {
|
|
9
9
|
readonly properties: Properties;
|
|
10
10
|
};
|
|
11
|
-
type StyleAtomClassFor<P extends string, V> = {
|
|
12
|
-
readonly property: `${P}: ${V & (string | number)}`;
|
|
13
|
-
};
|
|
14
11
|
export type ReturnType<T> = {
|
|
15
12
|
[K in keyof T]: Readonly<{
|
|
16
|
-
[P in keyof T[K]]: P extends `@media ${string}` | `@container ${string}` | `:${string}` | `&${string}` ?
|
|
13
|
+
[P in keyof T[K]]: P extends `@media ${string}` | `@container ${string}` | `:${string}` | `&${string}` ? Selector<keyof T[K][P]> : T[K][P];
|
|
17
14
|
}>;
|
|
18
15
|
};
|
|
19
16
|
export {};
|