tamagui 1.108.4 → 1.109.1

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 CHANGED
@@ -878,11 +878,17 @@ var require_index_native5 = __commonJS({
878
878
  var cache = /* @__PURE__ */ new Map(), simpleHash = function(str) {
879
879
  var hashMin = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 10;
880
880
  if (cache.has(str)) return cache.get(str);
881
- for (var hash = 0, valids = "", len = str.length, i = 0; i < len; i++) {
882
- var char = str.charCodeAt(i);
883
- if (hashMin !== "strict" && (char === 46 && (valids += "d0t"), isValidCSSCharCode(char) && len <= hashMin)) {
884
- valids += str[i];
885
- continue;
881
+ for (var hash = 0, valids = "", added = 0, len = str.length, i = 0; i < len; i++) {
882
+ if (hashMin !== "strict" && added <= hashMin) {
883
+ var char = str.charCodeAt(i);
884
+ if (char === 46) {
885
+ valids += "--";
886
+ continue;
887
+ }
888
+ if (isValidCSSCharCode(char)) {
889
+ added++, valids += str[i];
890
+ continue;
891
+ }
886
892
  }
887
893
  hash = hashChar(hash, str[i]);
888
894
  }
@@ -10720,8 +10726,8 @@ var require_createVariables_native = __commonJS({
10720
10726
  res[key] = val;
10721
10727
  continue;
10722
10728
  }
10723
- var niceKey = (0, import_helpers.simpleHash)(key), name = isFont ? niceKey.slice(0, 2) : i;
10724
- if (name = parentPath ? "".concat(parentPath, "-").concat(name) : niceKey, val && ((typeof val > "u" ? "undefined" : _type_of3(val)) > "u" ? "undefined" : _type_of1(val)) === "object") {
10729
+ var niceKey = (0, import_helpers.simpleHash)(key, 1e3), name = parentPath && parentPath !== "color" ? "".concat(parentPath, "-").concat(niceKey) : niceKey;
10730
+ if (val && ((typeof val > "u" ? "undefined" : _type_of3(val)) > "u" ? "undefined" : _type_of1(val)) === "object") {
10725
10731
  res[key] = createVariables(tokens[key], name, !1);
10726
10732
  continue;
10727
10733
  }
@@ -20956,12 +20962,12 @@ var require_SheetImplementationCustom_native = __commonJS({
20956
20962
  positions,
20957
20963
  setPosition
20958
20964
  ]), handleAnimationViewLayout = import_react4.default.useCallback(function(e) {
20959
- var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native4.Dimensions.get("window").height);
20965
+ var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native4.Dimensions.get("screen").height);
20960
20966
  next && setFrameSize(next);
20961
20967
  }, [
20962
20968
  keyboardIsVisible
20963
20969
  ]), handleMaxContentViewLayout = import_react4.default.useCallback(function(e) {
20964
- var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native4.Dimensions.get("window").height);
20970
+ var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native4.Dimensions.get("screen").height);
20965
20971
  next && setMaxContentSize(next);
20966
20972
  }, [
20967
20973
  keyboardIsVisible