tamagui 1.94.2 → 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 +16 -7
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +16 -7
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
package/dist/test.native.js
CHANGED
|
@@ -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] === "$"
|
|
5803
|
+
if (color[0] === "$")
|
|
5804
5804
|
return color;
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
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;
|
|
@@ -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
|
|