zss-engine 0.2.71 → 0.2.73
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/dist/cjs/index.js +1 -4
- package/dist/esm/index.js +0 -1
- package/package.json +1 -1
- package/types/index.d.ts +0 -1
- package/types/types/main/create.d.ts +2 -5
- package/dist/cjs/utils/inject-server-css.js +0 -11
- package/dist/esm/utils/inject-server-css.js +0 -7
- package/types/utils/inject-server-css.d.ts +0 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.injectClientGlobalCSS = exports.injectClientCSS = exports.applyCssValue = exports.camelToKebabCase = exports.build = exports.processAtomicProps = exports.splitAtomicAndNested = exports.transpileAtomic = exports.transpile = exports.genBase36Hash = exports.isTestingDevelopment = exports.isDevelopment = exports.isServer = void 0;
|
|
4
4
|
var helper_js_1 = require("./utils/helper.js");
|
|
5
5
|
Object.defineProperty(exports, "isServer", { enumerable: true, get: function () { return helper_js_1.isServer; } });
|
|
6
6
|
Object.defineProperty(exports, "isDevelopment", { enumerable: true, get: function () { return helper_js_1.isDevelopment; } });
|
|
@@ -23,6 +23,3 @@ var inject_client_css_js_1 = require("./utils/inject-client-css.js");
|
|
|
23
23
|
Object.defineProperty(exports, "injectClientCSS", { enumerable: true, get: function () { return inject_client_css_js_1.injectClientCSS; } });
|
|
24
24
|
var inject_client_global_css_js_1 = require("./utils/inject-client-global-css.js");
|
|
25
25
|
Object.defineProperty(exports, "injectClientGlobalCSS", { enumerable: true, get: function () { return inject_client_global_css_js_1.injectClientGlobalCSS; } });
|
|
26
|
-
var inject_server_css_js_1 = require("./utils/inject-server-css.js");
|
|
27
|
-
Object.defineProperty(exports, "injectServerCSS", { enumerable: true, get: function () { return inject_server_css_js_1.injectServerCSS; } });
|
|
28
|
-
Object.defineProperty(exports, "getServerCSS", { enumerable: true, get: function () { return inject_server_css_js_1.getServerCSS; } });
|
package/dist/esm/index.js
CHANGED
|
@@ -7,4 +7,3 @@ export { build } from './utils/build.js';
|
|
|
7
7
|
export { camelToKebabCase, applyCssValue } from './utils/helper.js';
|
|
8
8
|
export { injectClientCSS } from './utils/inject-client-css.js';
|
|
9
9
|
export { injectClientGlobalCSS } from './utils/inject-client-global-css.js';
|
|
10
|
-
export { injectServerCSS, getServerCSS } from './utils/inject-server-css.js';
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -12,4 +12,3 @@ export { build } from './utils/build.js';
|
|
|
12
12
|
export { camelToKebabCase, applyCssValue } from './utils/helper.js';
|
|
13
13
|
export { injectClientCSS } from './utils/inject-client-css.js';
|
|
14
14
|
export { injectClientGlobalCSS } from './utils/inject-client-global-css.js';
|
|
15
|
-
export { injectServerCSS, getServerCSS } from './utils/inject-server-css.js';
|
|
@@ -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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.injectServerCSS = injectServerCSS;
|
|
4
|
-
exports.getServerCSS = getServerCSS;
|
|
5
|
-
const styleSheets = {};
|
|
6
|
-
function injectServerCSS(hash, sheet) {
|
|
7
|
-
styleSheets[hash] = sheet;
|
|
8
|
-
}
|
|
9
|
-
function getServerCSS() {
|
|
10
|
-
return Object.values(styleSheets).join('\n');
|
|
11
|
-
}
|