tamagui 1.90.9 → 1.90.11
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 +77 -94
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +77 -94
- package/dist/test.native.js.map +3 -3
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -6379,58 +6379,6 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
6379
6379
|
}
|
|
6380
6380
|
});
|
|
6381
6381
|
|
|
6382
|
-
// ../web/dist/cjs/helpers/isObj.native.js
|
|
6383
|
-
var require_isObj_native = __commonJS({
|
|
6384
|
-
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
6385
|
-
"use strict";
|
|
6386
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6387
|
-
for (var name in all)
|
|
6388
|
-
__defProp2(target, name, {
|
|
6389
|
-
get: all[name],
|
|
6390
|
-
enumerable: !0
|
|
6391
|
-
});
|
|
6392
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
6393
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6394
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
6395
|
-
try {
|
|
6396
|
-
for (var _loop = function() {
|
|
6397
|
-
var key = _step.value;
|
|
6398
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6399
|
-
get: function() {
|
|
6400
|
-
return from[key];
|
|
6401
|
-
},
|
|
6402
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6403
|
-
});
|
|
6404
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
6405
|
-
_loop();
|
|
6406
|
-
} catch (err) {
|
|
6407
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
6408
|
-
} finally {
|
|
6409
|
-
try {
|
|
6410
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6411
|
-
} finally {
|
|
6412
|
-
if (_didIteratorError)
|
|
6413
|
-
throw _iteratorError;
|
|
6414
|
-
}
|
|
6415
|
-
}
|
|
6416
|
-
return to;
|
|
6417
|
-
}, __toCommonJS2 = function(mod) {
|
|
6418
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6419
|
-
value: !0
|
|
6420
|
-
}), mod);
|
|
6421
|
-
}, isObj_exports = {};
|
|
6422
|
-
__export2(isObj_exports, {
|
|
6423
|
-
isObj: function() {
|
|
6424
|
-
return isObj;
|
|
6425
|
-
}
|
|
6426
|
-
});
|
|
6427
|
-
module2.exports = __toCommonJS2(isObj_exports);
|
|
6428
|
-
var isObj = function(x) {
|
|
6429
|
-
return x && !Array.isArray(x) && typeof x == "object";
|
|
6430
|
-
};
|
|
6431
|
-
}
|
|
6432
|
-
});
|
|
6433
|
-
|
|
6434
6382
|
// ../web/dist/cjs/helpers/log.native.js
|
|
6435
6383
|
var require_log_native = __commonJS({
|
|
6436
6384
|
"../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
|
|
@@ -6791,6 +6739,58 @@ var require_expandStyle_native = __commonJS({
|
|
|
6791
6739
|
}
|
|
6792
6740
|
});
|
|
6793
6741
|
|
|
6742
|
+
// ../web/dist/cjs/helpers/isObj.native.js
|
|
6743
|
+
var require_isObj_native = __commonJS({
|
|
6744
|
+
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
6745
|
+
"use strict";
|
|
6746
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6747
|
+
for (var name in all)
|
|
6748
|
+
__defProp2(target, name, {
|
|
6749
|
+
get: all[name],
|
|
6750
|
+
enumerable: !0
|
|
6751
|
+
});
|
|
6752
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
6753
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6754
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
6755
|
+
try {
|
|
6756
|
+
for (var _loop = function() {
|
|
6757
|
+
var key = _step.value;
|
|
6758
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6759
|
+
get: function() {
|
|
6760
|
+
return from[key];
|
|
6761
|
+
},
|
|
6762
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6763
|
+
});
|
|
6764
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
6765
|
+
_loop();
|
|
6766
|
+
} catch (err) {
|
|
6767
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
6768
|
+
} finally {
|
|
6769
|
+
try {
|
|
6770
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6771
|
+
} finally {
|
|
6772
|
+
if (_didIteratorError)
|
|
6773
|
+
throw _iteratorError;
|
|
6774
|
+
}
|
|
6775
|
+
}
|
|
6776
|
+
return to;
|
|
6777
|
+
}, __toCommonJS2 = function(mod) {
|
|
6778
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6779
|
+
value: !0
|
|
6780
|
+
}), mod);
|
|
6781
|
+
}, isObj_exports = {};
|
|
6782
|
+
__export2(isObj_exports, {
|
|
6783
|
+
isObj: function() {
|
|
6784
|
+
return isObj;
|
|
6785
|
+
}
|
|
6786
|
+
});
|
|
6787
|
+
module2.exports = __toCommonJS2(isObj_exports);
|
|
6788
|
+
var isObj = function(x) {
|
|
6789
|
+
return x && !Array.isArray(x) && typeof x == "object";
|
|
6790
|
+
};
|
|
6791
|
+
}
|
|
6792
|
+
});
|
|
6793
|
+
|
|
6794
6794
|
// ../web/dist/cjs/helpers/normalizeStyle.native.js
|
|
6795
6795
|
var require_normalizeStyle_native = __commonJS({
|
|
6796
6796
|
"../web/dist/cjs/helpers/normalizeStyle.native.js"(exports2, module2) {
|
|
@@ -7611,7 +7611,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7611
7611
|
}
|
|
7612
7612
|
});
|
|
7613
7613
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
7614
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(),
|
|
7614
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_transformsToString = require_transformsToString_native();
|
|
7615
7615
|
function _array_like_to_array2(arr, len) {
|
|
7616
7616
|
(len == null || len > arr.length) && (len = arr.length);
|
|
7617
7617
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -7772,11 +7772,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7772
7772
|
viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
|
|
7773
7773
|
continue;
|
|
7774
7774
|
}
|
|
7775
|
-
if (!isValidStyleKeyInit && keyInit.startsWith("_style") && (0, import_isObj.isObj)(valInit)) {
|
|
7776
|
-
var _styleState1;
|
|
7777
|
-
(_styleState1 = styleState).style || (_styleState1.style = {}), Object.assign(styleState.style, valInit);
|
|
7778
|
-
continue;
|
|
7779
|
-
}
|
|
7780
7775
|
if (0) {
|
|
7781
7776
|
var didUseKeyInit;
|
|
7782
7777
|
if (!isReactNative)
|
|
@@ -8022,12 +8017,12 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8022
8017
|
}
|
|
8023
8018
|
}
|
|
8024
8019
|
for (var subKey in mediaStyle1) {
|
|
8025
|
-
var
|
|
8020
|
+
var _styleState1;
|
|
8026
8021
|
if (subKey === "space") {
|
|
8027
8022
|
space = valInit.space;
|
|
8028
8023
|
continue;
|
|
8029
8024
|
}
|
|
8030
|
-
(
|
|
8025
|
+
(_styleState1 = styleState).style || (_styleState1.style = {}), mergeMediaByImportance(styleState, mediaKeyShort, subKey, mediaStyle1[subKey], usedKeys, mediaState3[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
8031
8026
|
}
|
|
8032
8027
|
}
|
|
8033
8028
|
continue;
|
|
@@ -8057,38 +8052,11 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8057
8052
|
}
|
|
8058
8053
|
}
|
|
8059
8054
|
}
|
|
8060
|
-
if (props.style)
|
|
8061
|
-
if (isHOC)
|
|
8062
|
-
viewProps.style = props.style;
|
|
8063
|
-
else {
|
|
8064
|
-
var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
8065
|
-
try {
|
|
8066
|
-
for (var _iterator2 = [].concat(props.style)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
8067
|
-
var style1 = _step2.value;
|
|
8068
|
-
if (style1)
|
|
8069
|
-
if (style1.$$css)
|
|
8070
|
-
Object.assign(styleState.classNames, style1);
|
|
8071
|
-
else {
|
|
8072
|
-
var _styleState3;
|
|
8073
|
-
(_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, style1);
|
|
8074
|
-
}
|
|
8075
|
-
}
|
|
8076
|
-
} catch (err) {
|
|
8077
|
-
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
8078
|
-
} finally {
|
|
8079
|
-
try {
|
|
8080
|
-
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
|
8081
|
-
} finally {
|
|
8082
|
-
if (_didIteratorError2)
|
|
8083
|
-
throw _iteratorError2;
|
|
8084
|
-
}
|
|
8085
|
-
}
|
|
8086
|
-
}
|
|
8087
8055
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
8088
8056
|
if (!avoidNormalize) {
|
|
8089
8057
|
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
8090
|
-
var
|
|
8091
|
-
(
|
|
8058
|
+
var _styleState2;
|
|
8059
|
+
(_styleState2 = styleState).style || (_styleState2.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
8092
8060
|
var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
|
|
8093
8061
|
return a.localeCompare(b);
|
|
8094
8062
|
}).forEach(function(param) {
|
|
@@ -8102,8 +8070,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8102
8070
|
var val2;
|
|
8103
8071
|
if (!shouldDoClasses)
|
|
8104
8072
|
for (var key3 in parentSplitStyles.style) {
|
|
8105
|
-
var
|
|
8106
|
-
key3 in classNames || styleState.style && key3 in styleState.style || ((
|
|
8073
|
+
var _styleState3;
|
|
8074
|
+
key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState3 = styleState).style || (_styleState3.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
|
|
8107
8075
|
}
|
|
8108
8076
|
}
|
|
8109
8077
|
}
|
|
@@ -8113,9 +8081,9 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8113
8081
|
if (styleState.style && shouldDoClasses) {
|
|
8114
8082
|
var retainedStyles, shouldRetain;
|
|
8115
8083
|
if (!styleState.style.$$css) {
|
|
8116
|
-
var atomic,
|
|
8084
|
+
var atomic, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2;
|
|
8117
8085
|
try {
|
|
8118
|
-
for (var
|
|
8086
|
+
for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
|
|
8119
8087
|
var atomicStyle, _props_animateOnly, key4, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
8120
8088
|
} catch (err) {
|
|
8121
8089
|
} finally {
|
|
@@ -8131,6 +8099,21 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8131
8099
|
var rule;
|
|
8132
8100
|
}
|
|
8133
8101
|
}
|
|
8102
|
+
if (props.style && !isHOC) {
|
|
8103
|
+
var _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
|
|
8104
|
+
try {
|
|
8105
|
+
for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
|
|
8106
|
+
var style1;
|
|
8107
|
+
if (style1 && !style1.$$css)
|
|
8108
|
+
var _styleState4;
|
|
8109
|
+
}
|
|
8110
|
+
} catch (err) {
|
|
8111
|
+
} finally {
|
|
8112
|
+
try {
|
|
8113
|
+
} finally {
|
|
8114
|
+
}
|
|
8115
|
+
}
|
|
8116
|
+
}
|
|
8134
8117
|
if (import_constants4.isWeb && !isReactNative && viewProps.tabIndex == null)
|
|
8135
8118
|
var _viewProps_focusable, isFocusable, role;
|
|
8136
8119
|
}
|
|
@@ -11393,7 +11376,7 @@ var require_styled_native = __commonJS({
|
|
|
11393
11376
|
}
|
|
11394
11377
|
}(), component = (0, import_createComponent.createComponent)(staticConfigProps || {});
|
|
11395
11378
|
for (var key in ComponentIn)
|
|
11396
|
-
key in component || (component[key] = ComponentIn[key]);
|
|
11379
|
+
key !== "propTypes" && (key in component || (component[key] = ComponentIn[key]));
|
|
11397
11380
|
return component;
|
|
11398
11381
|
}
|
|
11399
11382
|
}
|