zss-engine 0.1.0 → 0.1.1
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { JSX } from 'react';
|
|
2
1
|
import type { CustomProperties, MediaQuery } from '../common/css-properties';
|
|
3
|
-
type JSXType = keyof
|
|
2
|
+
type JSXType = keyof HTMLElementTagNameMap | '*' | ':root';
|
|
4
3
|
type HTMLType = {
|
|
5
4
|
[K in JSXType]: CustomProperties;
|
|
6
5
|
};
|
package/dist/utils/transpiler.js
CHANGED
|
@@ -55,7 +55,7 @@ export function transpiler(object, base36Hash, core) {
|
|
|
55
55
|
const styles = stringConverter(className + kebabPseudoSelector, value, indentLevel);
|
|
56
56
|
Object.assign(classSelector, styles);
|
|
57
57
|
}
|
|
58
|
-
else if (property.startsWith('@media')) {
|
|
58
|
+
else if (property.startsWith('@media') || property.startsWith('@container')) {
|
|
59
59
|
const mediaRule = property;
|
|
60
60
|
let nestedRules = '';
|
|
61
61
|
let regularRules = '';
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zss-engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Zero-runtime Style Sheet Engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zero-runtime",
|
|
7
7
|
"style-sheet",
|
|
8
|
-
"
|
|
8
|
+
"runtime",
|
|
9
9
|
"css-in-js"
|
|
10
10
|
],
|
|
11
11
|
"author": "Refirst",
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"typings": "dist/index.d.ts",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"csstype": "^3.1.3"
|
|
18
|
+
},
|
|
16
19
|
"devDependencies": {
|
|
17
20
|
"@types/node": "^22.8.5",
|
|
18
|
-
"@types/react": "^19.0.4",
|
|
19
21
|
"typescript": "^5.6.3"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"csstype": "^3.1.3"
|
|
23
22
|
}
|
|
24
23
|
}
|