@tamagui/core 1.90.9 → 1.90.10
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 +78 -95
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +78 -95
- package/dist/test.native.js.map +3 -3
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -6282,58 +6282,6 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
6282
6282
|
}
|
|
6283
6283
|
});
|
|
6284
6284
|
|
|
6285
|
-
// ../web/dist/cjs/helpers/isObj.native.js
|
|
6286
|
-
var require_isObj_native = __commonJS({
|
|
6287
|
-
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
6288
|
-
"use strict";
|
|
6289
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6290
|
-
for (var name in all)
|
|
6291
|
-
__defProp2(target, name, {
|
|
6292
|
-
get: all[name],
|
|
6293
|
-
enumerable: !0
|
|
6294
|
-
});
|
|
6295
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
6296
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6297
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
6298
|
-
try {
|
|
6299
|
-
for (var _loop = function() {
|
|
6300
|
-
var key = _step.value;
|
|
6301
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6302
|
-
get: function() {
|
|
6303
|
-
return from[key];
|
|
6304
|
-
},
|
|
6305
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6306
|
-
});
|
|
6307
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
6308
|
-
_loop();
|
|
6309
|
-
} catch (err) {
|
|
6310
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
6311
|
-
} finally {
|
|
6312
|
-
try {
|
|
6313
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6314
|
-
} finally {
|
|
6315
|
-
if (_didIteratorError)
|
|
6316
|
-
throw _iteratorError;
|
|
6317
|
-
}
|
|
6318
|
-
}
|
|
6319
|
-
return to;
|
|
6320
|
-
}, __toCommonJS2 = function(mod) {
|
|
6321
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6322
|
-
value: !0
|
|
6323
|
-
}), mod);
|
|
6324
|
-
}, isObj_exports = {};
|
|
6325
|
-
__export2(isObj_exports, {
|
|
6326
|
-
isObj: function() {
|
|
6327
|
-
return isObj;
|
|
6328
|
-
}
|
|
6329
|
-
});
|
|
6330
|
-
module2.exports = __toCommonJS2(isObj_exports);
|
|
6331
|
-
var isObj = function(x) {
|
|
6332
|
-
return x && !Array.isArray(x) && typeof x == "object";
|
|
6333
|
-
};
|
|
6334
|
-
}
|
|
6335
|
-
});
|
|
6336
|
-
|
|
6337
6285
|
// ../web/dist/cjs/helpers/log.native.js
|
|
6338
6286
|
var require_log_native = __commonJS({
|
|
6339
6287
|
"../web/dist/cjs/helpers/log.native.js"(exports2, module2) {
|
|
@@ -6694,6 +6642,58 @@ var require_expandStyle_native = __commonJS({
|
|
|
6694
6642
|
}
|
|
6695
6643
|
});
|
|
6696
6644
|
|
|
6645
|
+
// ../web/dist/cjs/helpers/isObj.native.js
|
|
6646
|
+
var require_isObj_native = __commonJS({
|
|
6647
|
+
"../web/dist/cjs/helpers/isObj.native.js"(exports2, module2) {
|
|
6648
|
+
"use strict";
|
|
6649
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6650
|
+
for (var name in all)
|
|
6651
|
+
__defProp2(target, name, {
|
|
6652
|
+
get: all[name],
|
|
6653
|
+
enumerable: !0
|
|
6654
|
+
});
|
|
6655
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
6656
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6657
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
6658
|
+
try {
|
|
6659
|
+
for (var _loop = function() {
|
|
6660
|
+
var key = _step.value;
|
|
6661
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6662
|
+
get: function() {
|
|
6663
|
+
return from[key];
|
|
6664
|
+
},
|
|
6665
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6666
|
+
});
|
|
6667
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
6668
|
+
_loop();
|
|
6669
|
+
} catch (err) {
|
|
6670
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
6671
|
+
} finally {
|
|
6672
|
+
try {
|
|
6673
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6674
|
+
} finally {
|
|
6675
|
+
if (_didIteratorError)
|
|
6676
|
+
throw _iteratorError;
|
|
6677
|
+
}
|
|
6678
|
+
}
|
|
6679
|
+
return to;
|
|
6680
|
+
}, __toCommonJS2 = function(mod) {
|
|
6681
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6682
|
+
value: !0
|
|
6683
|
+
}), mod);
|
|
6684
|
+
}, isObj_exports = {};
|
|
6685
|
+
__export2(isObj_exports, {
|
|
6686
|
+
isObj: function() {
|
|
6687
|
+
return isObj;
|
|
6688
|
+
}
|
|
6689
|
+
});
|
|
6690
|
+
module2.exports = __toCommonJS2(isObj_exports);
|
|
6691
|
+
var isObj = function(x) {
|
|
6692
|
+
return x && !Array.isArray(x) && typeof x == "object";
|
|
6693
|
+
};
|
|
6694
|
+
}
|
|
6695
|
+
});
|
|
6696
|
+
|
|
6697
6697
|
// ../web/dist/cjs/helpers/normalizeStyle.native.js
|
|
6698
6698
|
var require_normalizeStyle_native = __commonJS({
|
|
6699
6699
|
"../web/dist/cjs/helpers/normalizeStyle.native.js"(exports2, module2) {
|
|
@@ -7514,7 +7514,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7514
7514
|
}
|
|
7515
7515
|
});
|
|
7516
7516
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
7517
|
-
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants2 = 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(),
|
|
7517
|
+
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants2 = 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();
|
|
7518
7518
|
function _array_like_to_array(arr, len) {
|
|
7519
7519
|
(len == null || len > arr.length) && (len = arr.length);
|
|
7520
7520
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -7675,11 +7675,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7675
7675
|
viewProps["data-".concat(hyphenate(keyInit1))] = valInit[keyInit1];
|
|
7676
7676
|
continue;
|
|
7677
7677
|
}
|
|
7678
|
-
if (!isValidStyleKeyInit && keyInit.startsWith("_style") && (0, import_isObj.isObj)(valInit)) {
|
|
7679
|
-
var _styleState1;
|
|
7680
|
-
(_styleState1 = styleState).style || (_styleState1.style = {}), Object.assign(styleState.style, valInit);
|
|
7681
|
-
continue;
|
|
7682
|
-
}
|
|
7683
7678
|
if (0) {
|
|
7684
7679
|
var didUseKeyInit;
|
|
7685
7680
|
if (!isReactNative)
|
|
@@ -7925,12 +7920,12 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
7925
7920
|
}
|
|
7926
7921
|
}
|
|
7927
7922
|
for (var subKey in mediaStyle1) {
|
|
7928
|
-
var
|
|
7923
|
+
var _styleState1;
|
|
7929
7924
|
if (subKey === "space") {
|
|
7930
7925
|
space = valInit.space;
|
|
7931
7926
|
continue;
|
|
7932
7927
|
}
|
|
7933
|
-
(
|
|
7928
|
+
(_styleState1 = styleState).style || (_styleState1.style = {}), mergeMediaByImportance(styleState, mediaKeyShort, subKey, mediaStyle1[subKey], usedKeys, mediaState2[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
7934
7929
|
}
|
|
7935
7930
|
}
|
|
7936
7931
|
continue;
|
|
@@ -7960,38 +7955,11 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
7960
7955
|
}
|
|
7961
7956
|
}
|
|
7962
7957
|
}
|
|
7963
|
-
if (props.style)
|
|
7964
|
-
if (isHOC)
|
|
7965
|
-
viewProps.style = props.style;
|
|
7966
|
-
else {
|
|
7967
|
-
var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
7968
|
-
try {
|
|
7969
|
-
for (var _iterator2 = [].concat(props.style)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
7970
|
-
var style1 = _step2.value;
|
|
7971
|
-
if (style1)
|
|
7972
|
-
if (style1.$$css)
|
|
7973
|
-
Object.assign(styleState.classNames, style1);
|
|
7974
|
-
else {
|
|
7975
|
-
var _styleState3;
|
|
7976
|
-
(_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, style1);
|
|
7977
|
-
}
|
|
7978
|
-
}
|
|
7979
|
-
} catch (err) {
|
|
7980
|
-
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
7981
|
-
} finally {
|
|
7982
|
-
try {
|
|
7983
|
-
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
|
7984
|
-
} finally {
|
|
7985
|
-
if (_didIteratorError2)
|
|
7986
|
-
throw _iteratorError2;
|
|
7987
|
-
}
|
|
7988
|
-
}
|
|
7989
|
-
}
|
|
7990
7958
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7991
7959
|
if (!avoidNormalize) {
|
|
7992
7960
|
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
7993
|
-
var
|
|
7994
|
-
(
|
|
7961
|
+
var _styleState2;
|
|
7962
|
+
(_styleState2 = styleState).style || (_styleState2.style = {}), Object.entries(styleState.flatTransforms).sort(function(param, param1) {
|
|
7995
7963
|
var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
|
|
7996
7964
|
return a.localeCompare(b);
|
|
7997
7965
|
}).forEach(function(param) {
|
|
@@ -8005,8 +7973,8 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
8005
7973
|
var val2;
|
|
8006
7974
|
if (!shouldDoClasses)
|
|
8007
7975
|
for (var key3 in parentSplitStyles.style) {
|
|
8008
|
-
var
|
|
8009
|
-
key3 in classNames || styleState.style && key3 in styleState.style || ((
|
|
7976
|
+
var _styleState3;
|
|
7977
|
+
key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState3 = styleState).style || (_styleState3.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
|
|
8010
7978
|
}
|
|
8011
7979
|
}
|
|
8012
7980
|
}
|
|
@@ -8016,9 +7984,9 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
8016
7984
|
if (styleState.style && shouldDoClasses) {
|
|
8017
7985
|
var retainedStyles, shouldRetain;
|
|
8018
7986
|
if (!styleState.style.$$css) {
|
|
8019
|
-
var atomic,
|
|
7987
|
+
var atomic, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2;
|
|
8020
7988
|
try {
|
|
8021
|
-
for (var
|
|
7989
|
+
for (var _iterator2, _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
|
|
8022
7990
|
var atomicStyle, _props_animateOnly, key4, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
8023
7991
|
} catch (err) {
|
|
8024
7992
|
} finally {
|
|
@@ -8034,6 +8002,21 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
8034
8002
|
var rule;
|
|
8035
8003
|
}
|
|
8036
8004
|
}
|
|
8005
|
+
if (props.style && !isHOC) {
|
|
8006
|
+
var _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3;
|
|
8007
|
+
try {
|
|
8008
|
+
for (var _iterator3, _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
|
|
8009
|
+
var style1;
|
|
8010
|
+
if (style1 && !style1.$$css)
|
|
8011
|
+
var _styleState4;
|
|
8012
|
+
}
|
|
8013
|
+
} catch (err) {
|
|
8014
|
+
} finally {
|
|
8015
|
+
try {
|
|
8016
|
+
} finally {
|
|
8017
|
+
}
|
|
8018
|
+
}
|
|
8019
|
+
}
|
|
8037
8020
|
if (import_constants.isWeb && !isReactNative && viewProps.tabIndex == null)
|
|
8038
8021
|
var _viewProps_focusable, isFocusable, role;
|
|
8039
8022
|
}
|
|
@@ -9656,7 +9639,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9656
9639
|
children: content
|
|
9657
9640
|
}));
|
|
9658
9641
|
}
|
|
9659
|
-
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
9642
|
+
if (viewProps.placeholderTextColor && console.warn("it is", internalID, viewProps.placeholderTextColor, viewProps), process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
9660
9643
|
var element1 = typeof elementType == "string" ? elementType : "Component", title = "render <".concat(element1, " /> (").concat(internalID, ") with props");
|
|
9661
9644
|
if (import_constants.isWeb) {
|
|
9662
9645
|
console.groupCollapsed(title);
|
|
@@ -11296,7 +11279,7 @@ var require_styled_native = __commonJS({
|
|
|
11296
11279
|
}
|
|
11297
11280
|
}(), component = (0, import_createComponent.createComponent)(staticConfigProps || {});
|
|
11298
11281
|
for (var key in ComponentIn)
|
|
11299
|
-
key in component || (component[key] = ComponentIn[key]);
|
|
11282
|
+
key !== "propTypes" && (key in component || (component[key] = ComponentIn[key]));
|
|
11300
11283
|
return component;
|
|
11301
11284
|
}
|
|
11302
11285
|
}
|