tamagui 1.94.1 → 1.94.3

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
@@ -6162,12 +6162,17 @@ var require_normalizeColor_native = __commonJS({
6162
6162
  module2.exports = __toCommonJS2(normalizeColor_exports);
6163
6163
  var import_normalize_css_color = require_index_native12(), import_normalize_css_color2 = require_index_native12(), normalizeColor = function(color, opacity) {
6164
6164
  if (color) {
6165
- if (color[0] === "$" || color.startsWith("var("))
6165
+ if (color[0] === "$")
6166
6166
  return color;
6167
- var rgba3 = getRgba(color);
6168
- if (rgba3) {
6169
- var colors = "".concat(rgba3.r, ",").concat(rgba3.g, ",").concat(rgba3.b), _ref;
6170
- return opacity === 1 ? "rgb(".concat(colors, ")") : "rgba(".concat(colors, ",").concat((_ref = opacity ?? rgba3.a) !== null && _ref !== void 0 ? _ref : 1, ")");
6167
+ if (color.startsWith("var(")) {
6168
+ if (typeof opacity == "number" && opacity < 1)
6169
+ return "color-mix(in srgb, ".concat(color, " ").concat(opacity * 100, "%, transparent)");
6170
+ } else {
6171
+ var rgba3 = getRgba(color);
6172
+ if (rgba3) {
6173
+ var colors = "".concat(rgba3.r, ",").concat(rgba3.g, ",").concat(rgba3.b), _ref;
6174
+ return opacity === 1 ? "rgb(".concat(colors, ")") : "rgba(".concat(colors, ",").concat((_ref = opacity ?? rgba3.a) !== null && _ref !== void 0 ? _ref : 1, ")");
6175
+ }
6171
6176
  }
6172
6177
  return color;
6173
6178
  }
@@ -6289,7 +6294,7 @@ var require_expandStyles_native = __commonJS({
6289
6294
  module2.exports = __toCommonJS2(expandStyles_exports);
6290
6295
  var import_constants4 = require_index_native6(), import_normalizeShadow = require_normalizeShadow_native();
6291
6296
  function fixStyles(style) {
6292
- "elevationAndroid" in style && (style.elevation = style.elevationAndroid, delete style.elevationAndroid), (style.shadowRadius || style.shadowColor || style.shadowOpacity || style.shadowOffset) && Object.assign(style, (0, import_normalizeShadow.normalizeShadow)(style));
6297
+ "elevationAndroid" in style && (style.elevation = style.elevationAndroid, delete style.elevationAndroid), (style.shadowRadius != null || style.shadowColor || style.shadowOpacity != null || style.shadowOffset) && Object.assign(style, (0, import_normalizeShadow.normalizeShadow)(style));
6293
6298
  for (var key in borderDefaults)
6294
6299
  if (key in style) {
6295
6300
  var _style, _borderDefaults_key;
@@ -9629,7 +9634,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9629
9634
  }
9630
9635
  }), {
9631
9636
  onPressIn: attachPress ? function(e) {
9632
- runtimePressStyle && setStateShallow({
9637
+ (runtimePressStyle || groupName) && setStateShallow({
9633
9638
  press: !0,
9634
9639
  pressIn: !0
9635
9640
  }), onPressIn == null || onPressIn(e), onMouseDown == null || onMouseDown(e), import_constants4.isWeb && mouseUps.add(unPress);
@@ -18957,6 +18962,10 @@ var require_index_native31 = __commonJS({
18957
18962
  var require_constants_native3 = __commonJS({
18958
18963
  "../sheet/dist/cjs/constants.native.js"(exports2, module2) {
18959
18964
  "use strict";
18965
+ function _type_of(obj) {
18966
+ "@swc/helpers - typeof";
18967
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
18968
+ }
18960
18969
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
18961
18970
  for (var name in all)
18962
18971
  __defProp2(target, name, {
@@ -19012,7 +19021,7 @@ var require_constants_native3 = __commonJS({
19012
19021
  });
19013
19022
  module2.exports = __toCommonJS2(constants_exports);
19014
19023
  var import_core12 = require_index_native16(), constants = {}, SHEET_NAME = "Sheet", SHEET_HANDLE_NAME = "SheetHandle", SHEET_OVERLAY_NAME = "SheetOverlay", SHEET_HIDDEN_STYLESHEET = import_core12.isClient ? document.createElement("style") : null;
19015
- SHEET_HIDDEN_STYLESHEET && document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
19024
+ SHEET_HIDDEN_STYLESHEET && _type_of(document.head) < "u" && document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
19016
19025
  }
19017
19026
  });
19018
19027