zss-engine 0.2.9 → 0.2.11

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.9",
3
+ "version": "0.2.11",
4
4
  "description": "Zero-runtime Style Sheet Engine",
5
5
  "keywords": [
6
6
  "zero-runtime",
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/jest": "^29.5.14",
41
- "@types/node": "^22.8.5",
41
+ "@types/node": "^22.13.10",
42
42
  "fast-glob": "^3.3.3",
43
43
  "jest": "^29.7.0",
44
44
  "jest-environment-jsdom": "^29.7.0",
45
45
  "rimraf": "^6.0.1",
46
46
  "ts-jest": "^29.2.6",
47
- "typescript": "^5.6.3"
47
+ "typescript": "^5.8.2"
48
48
  }
49
49
  }
@@ -1,45 +1,37 @@
1
1
  import type { CustomProperties, MediaQuery } from '../common/css-properties';
2
2
  type JSXType = keyof HTMLElementTagNameMap | '*' | ':root';
3
3
  type HTMLType = {
4
- [K in JSXType]: CustomProperties;
4
+ [K in JSXType]: CustomProperties;
5
5
  };
6
6
  type ClassName = `.${string}`;
7
7
  type ClassNameType = {
8
- [K in ClassName]: CustomProperties;
8
+ [K in ClassName]: CustomProperties;
9
9
  };
10
10
  type Attribute = `${string}[${string}]${string}`;
11
11
  type AttributeType = {
12
- [K in Attribute]: CustomProperties;
12
+ [K in Attribute]: CustomProperties;
13
13
  };
14
14
  type Consecutive = `${JSXType} ${string}`;
15
15
  type ConsecutiveType = {
16
- [K in Consecutive]: CustomProperties;
16
+ [K in Consecutive]: CustomProperties;
17
17
  };
18
18
  type PseudoClass = `${JSXType}:${string}`;
19
19
  type PseudoClassType = {
20
- [K in PseudoClass]: CustomProperties;
20
+ [K in PseudoClass]: CustomProperties;
21
21
  };
22
22
  type PseudoElement = `::${string}`;
23
23
  type PseudoElementType = {
24
- [K in PseudoElement]: CustomProperties;
24
+ [K in PseudoElement]: CustomProperties;
25
25
  };
26
26
  type KeyframeSelector = 'from' | 'to' | `${number}%`;
27
27
  export type KeyframesDefinition = {
28
- [K in KeyframeSelector]?: CustomProperties;
28
+ [K in KeyframeSelector]?: CustomProperties;
29
29
  };
30
30
  type KeyframesType = {
31
- [K in `@keyframes ${string}`]: KeyframesDefinition;
31
+ [K in `@keyframes ${string}`]: KeyframesDefinition;
32
32
  };
33
33
  type MediaQueryHTMLType = {
34
- [K in MediaQuery]: CustomHTMLType;
35
- };
36
- export type CustomHTMLType =
37
- | HTMLType
38
- | ClassNameType
39
- | AttributeType
40
- | ConsecutiveType
41
- | PseudoClassType
42
- | PseudoElementType
43
- | KeyframesType
44
- | MediaQueryHTMLType;
34
+ [K in MediaQuery]: CustomHTMLType;
35
+ };
36
+ export type CustomHTMLType = HTMLType | ClassNameType | AttributeType | ConsecutiveType | PseudoClassType | PseudoElementType | KeyframesType | MediaQueryHTMLType;
45
37
  export {};