zss-engine 0.2.45 → 0.2.47

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zss-engine",
3
- "version": "0.2.45",
3
+ "version": "0.2.47",
4
4
  "description": "Zero-runtime StyleSheet Engine",
5
5
  "keywords": [
6
6
  "zero-runtime",
@@ -0,0 +1,5 @@
1
+ type PropertyValue = string | number | Property;
2
+ export type Property = {
3
+ [key: string]: PropertyValue;
4
+ };
5
+ export {};
@@ -5,6 +5,12 @@ export type CreateStyleType<T> = {
5
5
  export type CreateStyle = {
6
6
  [key: string]: CSSProperties;
7
7
  };
8
+ type Selector<Properties> = {
9
+ readonly properties: Properties;
10
+ };
8
11
  export type ReturnType<T> = {
9
- [K in keyof T]: Readonly<T[K]>;
12
+ [K in keyof T]: Readonly<{
13
+ [P in keyof T[K]]: P extends `@media ${string}` | `@container ${string}` | `:${string}` | `&${string}` ? Selector<keyof T[K][P]> : Readonly<T[K][P]>;
14
+ }>;
10
15
  };
16
+ export {};
@@ -1,5 +0,0 @@
1
- type PropertyValue = string | number | Properties;
2
- export type Properties = {
3
- [key: string]: PropertyValue;
4
- };
5
- export {};