@tamagui/core 1.108.3 → 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 +23 -8
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +23 -8
- 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
|
}
|
|
@@ -9059,7 +9065,7 @@ var require_useDidHydrateOnce_native = __commonJS({
|
|
|
9059
9065
|
}
|
|
9060
9066
|
});
|
|
9061
9067
|
module2.exports = __toCommonJS2(useDidHydrateOnce_exports);
|
|
9062
|
-
var import_react3 = __toESM2(require("react"));
|
|
9068
|
+
var import_react3 = __toESM2(require("react")), import_config = require_config_native();
|
|
9063
9069
|
function useDidHydrateOnceRoot() {
|
|
9064
9070
|
return !0;
|
|
9065
9071
|
}
|
|
@@ -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
|
}
|
|
@@ -11354,6 +11360,15 @@ var require_createTamagui_native = __commonJS({
|
|
|
11354
11360
|
fontFamily: defaultFontName ? defaultFont : void 0
|
|
11355
11361
|
}, configIn.unset),
|
|
11356
11362
|
settings: _object_spread2({
|
|
11363
|
+
// move deprecated settings here so we can reference them all using `getSetting`
|
|
11364
|
+
// TODO remove this on v2
|
|
11365
|
+
disableSSR: configIn.disableSSR,
|
|
11366
|
+
defaultFont: configIn.defaultFont,
|
|
11367
|
+
disableRootThemeClass: configIn.disableRootThemeClass,
|
|
11368
|
+
onlyAllowShorthands: configIn.onlyAllowShorthands,
|
|
11369
|
+
mediaQueryDefaultActive: configIn.mediaQueryDefaultActive,
|
|
11370
|
+
themeClassNameOnRoot: configIn.themeClassNameOnRoot,
|
|
11371
|
+
cssStyleSeparator: configIn.cssStyleSeparator,
|
|
11357
11372
|
webContainerType: "inline-size"
|
|
11358
11373
|
}, configIn.settings),
|
|
11359
11374
|
tokens,
|