tamagui 1.94.2 → 1.94.4

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.
@@ -5800,12 +5800,17 @@ var require_normalizeColor_native = __commonJS({
5800
5800
  module2.exports = __toCommonJS2(normalizeColor_exports);
5801
5801
  var import_normalize_css_color = require_index_native12(), import_normalize_css_color2 = require_index_native12(), normalizeColor = function(color, opacity) {
5802
5802
  if (color) {
5803
- if (color[0] === "$" || color.startsWith("var("))
5803
+ if (color[0] === "$")
5804
5804
  return color;
5805
- var rgba3 = getRgba(color);
5806
- if (rgba3) {
5807
- var colors = "".concat(rgba3.r, ",").concat(rgba3.g, ",").concat(rgba3.b), _ref;
5808
- return opacity === 1 ? "rgb(".concat(colors, ")") : "rgba(".concat(colors, ",").concat((_ref = opacity ?? rgba3.a) !== null && _ref !== void 0 ? _ref : 1, ")");
5805
+ if (color.startsWith("var(")) {
5806
+ if (typeof opacity == "number" && opacity < 1)
5807
+ return "color-mix(in srgb, ".concat(color, " ").concat(opacity * 100, "%, transparent)");
5808
+ } else {
5809
+ var rgba3 = getRgba(color);
5810
+ if (rgba3) {
5811
+ var colors = "".concat(rgba3.r, ",").concat(rgba3.g, ",").concat(rgba3.b), _ref;
5812
+ return opacity === 1 ? "rgb(".concat(colors, ")") : "rgba(".concat(colors, ",").concat((_ref = opacity ?? rgba3.a) !== null && _ref !== void 0 ? _ref : 1, ")");
5813
+ }
5809
5814
  }
5810
5815
  return color;
5811
5816
  }
@@ -5927,7 +5932,7 @@ var require_expandStyles_native = __commonJS({
5927
5932
  module2.exports = __toCommonJS2(expandStyles_exports);
5928
5933
  var import_constants4 = require_index_native6(), import_normalizeShadow = require_normalizeShadow_native();
5929
5934
  function fixStyles(style) {
5930
- "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));
5935
+ "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));
5931
5936
  for (var key in borderDefaults)
5932
5937
  if (key in style) {
5933
5938
  var _style, _borderDefaults_key;
@@ -8778,7 +8783,7 @@ var require_createComponent_native = __commonJS({
8778
8783
  "theme",
8779
8784
  "defaultVariants"
8780
8785
  ]), viewProps = nonTamaguiProps;
8781
- isHOC && _themeProp && (viewProps.theme = _themeProp), elementType.acceptTagProp && (viewProps.tag = tagProp);
8786
+ !isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && _themeProp && (viewProps.theme = _themeProp), elementType.acceptTagProp && (viewProps.tag = tagProp);
8782
8787
  var animationStyles;
8783
8788
  if (
8784
8789
  // if it supports css vars we run it on server too to get matching initial style
@@ -18093,6 +18098,10 @@ var require_index_native31 = __commonJS({
18093
18098
  var require_constants_native3 = __commonJS({
18094
18099
  "../sheet/dist/cjs/constants.native.js"(exports2, module2) {
18095
18100
  "use strict";
18101
+ function _type_of(obj) {
18102
+ "@swc/helpers - typeof";
18103
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
18104
+ }
18096
18105
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
18097
18106
  for (var name in all)
18098
18107
  __defProp2(target, name, {
@@ -18148,7 +18157,7 @@ var require_constants_native3 = __commonJS({
18148
18157
  });
18149
18158
  module2.exports = __toCommonJS2(constants_exports);
18150
18159
  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;
18151
- SHEET_HIDDEN_STYLESHEET && document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
18160
+ SHEET_HIDDEN_STYLESHEET && _type_of(document.head) < "u" && document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
18152
18161
  }
18153
18162
  });
18154
18163
 
@@ -23497,8 +23506,8 @@ var require_Checkbox_native = __commonJS({
23497
23506
  }
23498
23507
  },
23499
23508
  size: {
23500
- "...size": function(val, param) {
23501
- var tokens = param.tokens, radiusToken = (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 8;
23509
+ "...size": function(val) {
23510
+ var radiusToken = (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 8;
23502
23511
  return {
23503
23512
  borderRadius: radiusToken
23504
23513
  };
@@ -24872,7 +24881,8 @@ var require_createCheckbox_native = __commonJS({
24872
24881
  height: size3
24873
24882
  }), {
24874
24883
  tag: "button",
24875
- ref: checkboxRef
24884
+ ref: checkboxRef,
24885
+ unstyled
24876
24886
  }), unstyled === !1 && {
24877
24887
  size: size3,
24878
24888
  theme: checked ? "active" : null