@stylexjs/shared 0.6.1 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ function styleXDefineVars(variables, options) {
|
|
21
21
|
const themeNameHash = classNamePrefix + (0, _hash.default)(themeName);
|
22
22
|
const typedVariables = {};
|
23
23
|
const variablesMap = (0, _objectUtils.objMap)(variables, (value, key) => {
|
24
|
-
const nameHash = classNamePrefix + (0, _hash.default)(`${themeName}.${key}`);
|
24
|
+
const nameHash = key.startsWith('--') ? key.slice(2) : classNamePrefix + (0, _hash.default)(`${themeName}.${key}`);
|
25
25
|
if ((0, _types.isCSSType)(value)) {
|
26
26
|
const v = value;
|
27
27
|
typedVariables[nameHash] = {
|
@@ -9,11 +9,12 @@ var _leadingZero = _interopRequireDefault(require("./normalizers/leading-zero"))
|
|
9
9
|
var _quotes = _interopRequireDefault(require("./normalizers/quotes"));
|
10
10
|
var _timings = _interopRequireDefault(require("./normalizers/timings"));
|
11
11
|
var _whitespace = _interopRequireDefault(require("./normalizers/whitespace"));
|
12
|
+
var _zeroDimensions = _interopRequireDefault(require("./normalizers/zero-dimensions"));
|
12
13
|
var _detectUnclosedFns = _interopRequireDefault(require("./normalizers/detect-unclosed-fns"));
|
13
14
|
var _postcssValueParser = _interopRequireDefault(require("postcss-value-parser"));
|
14
15
|
var _convertCamelCaseValues = _interopRequireDefault(require("./normalizers/convert-camel-case-values"));
|
15
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
16
|
-
const normalizers = [_detectUnclosedFns.default, _whitespace.default, _timings.default, _leadingZero.default, _quotes.default, _convertCamelCaseValues.default];
|
17
|
+
const normalizers = [_detectUnclosedFns.default, _whitespace.default, _timings.default, _zeroDimensions.default, _leadingZero.default, _quotes.default, _convertCamelCaseValues.default];
|
17
18
|
function normalizeValue(value, key, _ref) {
|
18
19
|
let {
|
19
20
|
useRemForFontSize
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@stylexjs/shared",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.7.3",
|
4
4
|
"main": "lib/index.js",
|
5
5
|
"repository": "https://www.github.com/facebook/stylex",
|
6
6
|
"license": "MIT",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"postcss-value-parser": "^4.1.0"
|
14
14
|
},
|
15
15
|
"devDependencies": {
|
16
|
-
"@stylexjs/scripts": "0.
|
16
|
+
"@stylexjs/scripts": "0.7.3"
|
17
17
|
},
|
18
18
|
"jest": {
|
19
19
|
"snapshotFormat": {
|