zss-engine 0.2.92 → 0.2.94
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isHashInStyleSheets = exports.injectClientGlobalCSS = exports.injectClientQuery = exports.injectClientCSS = exports.applyCssValue = exports.camelToKebabCase = exports.build = exports.SHORTHAND_PROPERTIES = exports.processAtomicProps = exports.splitAtomicAndNested = exports.transpileAtomic = exports.transpile = exports.genBase36Hash = exports.isTestingDevelopment = exports.isDevelopment = exports.isServer = void 0;
|
|
3
|
+
exports.isHashInStyleSheets = exports.injectClientGlobalCSS = exports.injectClientQuery = exports.injectClientCSS = exports.applyCssValue = exports.camelToKebabCase = exports.build = exports.LONG_TO_SHORT = exports.SHORTHAND_PROPERTIES = 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; } });
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "splitAtomicAndNested", { enumerable: true, get:
|
|
|
16
16
|
Object.defineProperty(exports, "processAtomicProps", { enumerable: true, get: function () { return processor_atomic_js_1.processAtomicProps; } });
|
|
17
17
|
var shorthand_js_1 = require("./utils/shorthand.js");
|
|
18
18
|
Object.defineProperty(exports, "SHORTHAND_PROPERTIES", { enumerable: true, get: function () { return shorthand_js_1.SHORTHAND_PROPERTIES; } });
|
|
19
|
+
Object.defineProperty(exports, "LONG_TO_SHORT", { enumerable: true, get: function () { return shorthand_js_1.LONG_TO_SHORT; } });
|
|
19
20
|
var build_js_1 = require("./utils/build.js");
|
|
20
21
|
Object.defineProperty(exports, "build", { enumerable: true, get: function () { return build_js_1.build; } });
|
|
21
22
|
var helper_js_2 = require("./utils/helper.js");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SHORTHAND_PROPERTIES = void 0;
|
|
3
|
+
exports.LONG_TO_SHORT = exports.SHORTHAND_PROPERTIES = void 0;
|
|
4
4
|
exports.SHORTHAND_PROPERTIES = {
|
|
5
5
|
margin: ['margin-top', 'margin-bottom', 'margin-left', 'margin-right'],
|
|
6
6
|
padding: ['padding-top', 'padding-bottom', 'padding-left', 'padding-right'],
|
|
@@ -78,3 +78,12 @@ exports.SHORTHAND_PROPERTIES = {
|
|
|
78
78
|
'text-emphasis': ['text-emphasis-style', 'text-emphasis-color'],
|
|
79
79
|
mask: ['mask-image', 'mask-mode', 'mask-position', 'mask-size', 'mask-repeat', 'mask-origin', 'mask-clip', 'mask-composite'],
|
|
80
80
|
};
|
|
81
|
+
exports.LONG_TO_SHORT = {};
|
|
82
|
+
Object.entries(exports.SHORTHAND_PROPERTIES).forEach(([shorthand, longhands]) => {
|
|
83
|
+
longhands.forEach(longhand => {
|
|
84
|
+
if (!exports.LONG_TO_SHORT[longhand]) {
|
|
85
|
+
exports.LONG_TO_SHORT[longhand] = [];
|
|
86
|
+
}
|
|
87
|
+
exports.LONG_TO_SHORT[longhand].push(shorthand);
|
|
88
|
+
});
|
|
89
|
+
});
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { genBase36Hash } from './utils/hash.js';
|
|
|
3
3
|
export { transpile } from './utils/transpile.js';
|
|
4
4
|
export { transpileAtomic } from './utils/transpile-atomic.js';
|
|
5
5
|
export { splitAtomicAndNested, processAtomicProps } from './utils/processor-atomic.js';
|
|
6
|
-
export { SHORTHAND_PROPERTIES } from './utils/shorthand.js';
|
|
6
|
+
export { SHORTHAND_PROPERTIES, LONG_TO_SHORT } from './utils/shorthand.js';
|
|
7
7
|
export { build } from './utils/build.js';
|
|
8
8
|
export { camelToKebabCase, applyCssValue } from './utils/helper.js';
|
|
9
9
|
export { injectClientCSS, injectClientQuery } from './utils/inject-client-css.js';
|
|
@@ -75,3 +75,12 @@ export const SHORTHAND_PROPERTIES = {
|
|
|
75
75
|
'text-emphasis': ['text-emphasis-style', 'text-emphasis-color'],
|
|
76
76
|
mask: ['mask-image', 'mask-mode', 'mask-position', 'mask-size', 'mask-repeat', 'mask-origin', 'mask-clip', 'mask-composite'],
|
|
77
77
|
};
|
|
78
|
+
export const LONG_TO_SHORT = {};
|
|
79
|
+
Object.entries(SHORTHAND_PROPERTIES).forEach(([shorthand, longhands]) => {
|
|
80
|
+
longhands.forEach(longhand => {
|
|
81
|
+
if (!LONG_TO_SHORT[longhand]) {
|
|
82
|
+
LONG_TO_SHORT[longhand] = [];
|
|
83
|
+
}
|
|
84
|
+
LONG_TO_SHORT[longhand].push(shorthand);
|
|
85
|
+
});
|
|
86
|
+
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { genBase36Hash } from './utils/hash.js';
|
|
|
8
8
|
export { transpile } from './utils/transpile.js';
|
|
9
9
|
export { transpileAtomic } from './utils/transpile-atomic.js';
|
|
10
10
|
export { splitAtomicAndNested, processAtomicProps } from './utils/processor-atomic.js';
|
|
11
|
-
export { SHORTHAND_PROPERTIES } from './utils/shorthand.js';
|
|
11
|
+
export { SHORTHAND_PROPERTIES, LONG_TO_SHORT } from './utils/shorthand.js';
|
|
12
12
|
export { build } from './utils/build.js';
|
|
13
13
|
export { camelToKebabCase, applyCssValue } from './utils/helper.js';
|
|
14
14
|
export { injectClientCSS, injectClientQuery } from './utils/inject-client-css.js';
|