@tamagui/core 1.108.4 → 1.109.0
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/native.js +13 -7
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +13 -7
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -1043,11 +1043,17 @@ var require_index_native2 = __commonJS({
|
|
|
1043
1043
|
var cache = /* @__PURE__ */ new Map(), simpleHash = function(str) {
|
|
1044
1044
|
var hashMin = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 10;
|
|
1045
1045
|
if (cache.has(str)) return cache.get(str);
|
|
1046
|
-
for (var hash = 0, valids = "", len = str.length, i = 0; i < len; i++) {
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1046
|
+
for (var hash = 0, valids = "", added = 0, len = str.length, i = 0; i < len; i++) {
|
|
1047
|
+
if (hashMin !== "strict" && added <= hashMin) {
|
|
1048
|
+
var char = str.charCodeAt(i);
|
|
1049
|
+
if (char === 46) {
|
|
1050
|
+
valids += "--";
|
|
1051
|
+
continue;
|
|
1052
|
+
}
|
|
1053
|
+
if (isValidCSSCharCode(char)) {
|
|
1054
|
+
added++, valids += str[i];
|
|
1055
|
+
continue;
|
|
1056
|
+
}
|
|
1051
1057
|
}
|
|
1052
1058
|
hash = hashChar(hash, str[i]);
|
|
1053
1059
|
}
|
|
@@ -10530,8 +10536,8 @@ var require_createVariables_native = __commonJS({
|
|
|
10530
10536
|
res[key] = val;
|
|
10531
10537
|
continue;
|
|
10532
10538
|
}
|
|
10533
|
-
var niceKey = (0, import_helpers.simpleHash)(key), name =
|
|
10534
|
-
if (
|
|
10539
|
+
var niceKey = (0, import_helpers.simpleHash)(key, 1e3), name = parentPath && parentPath !== "color" ? "".concat(parentPath, "-").concat(niceKey) : niceKey;
|
|
10540
|
+
if (val && ((typeof val > "u" ? "undefined" : _type_of(val)) > "u" ? "undefined" : _type_of1(val)) === "object") {
|
|
10535
10541
|
res[key] = createVariables(tokens[key], name, !1);
|
|
10536
10542
|
continue;
|
|
10537
10543
|
}
|