tamagui 1.132.25 → 1.133.1
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 +173 -173
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +170 -168
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -2993,6 +2993,9 @@ var require_useMedia_native = __commonJS({
|
|
|
2993
2993
|
getMediaImportanceIfMoreImportant: function() {
|
|
2994
2994
|
return getMediaImportanceIfMoreImportant;
|
|
2995
2995
|
},
|
|
2996
|
+
getMediaKey: function() {
|
|
2997
|
+
return getMediaKey;
|
|
2998
|
+
},
|
|
2996
2999
|
getMediaKeyImportance: function() {
|
|
2997
3000
|
return getMediaKeyImportance;
|
|
2998
3001
|
},
|
|
@@ -3046,12 +3049,12 @@ var require_useMedia_native = __commonJS({
|
|
|
3046
3049
|
), mediaQueryConfig3 = {}, getMedia3 = function() {
|
|
3047
3050
|
return mediaState3;
|
|
3048
3051
|
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
3052
|
+
return key[0] !== "$" ? !1 : !!(mediaKeys.has(key) || mediaKeyRegex.test(key));
|
|
3053
|
+
}, getMediaKey = function(key) {
|
|
3054
|
+
if (key[0] !== "$") return !1;
|
|
3049
3055
|
if (mediaKeys.has(key)) return !0;
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
if (match) return match[1];
|
|
3053
|
-
}
|
|
3054
|
-
return !1;
|
|
3056
|
+
var match = key.match(mediaKeyRegex);
|
|
3057
|
+
return match ? match[1] : !1;
|
|
3055
3058
|
}, initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = function(key) {
|
|
3056
3059
|
if (process.env.NODE_ENV === "development" && key[0] === "$") throw new Error("use short key");
|
|
3057
3060
|
var conf = (0, import_config.getConfig)();
|
|
@@ -3585,6 +3588,87 @@ var require_isDevTools_native = __commonJS({
|
|
|
3585
3588
|
}
|
|
3586
3589
|
});
|
|
3587
3590
|
|
|
3591
|
+
// ../../core/web/dist/cjs/helpers/mergeProps.native.js
|
|
3592
|
+
var require_mergeProps_native = __commonJS({
|
|
3593
|
+
"../../core/web/dist/cjs/helpers/mergeProps.native.js"(exports2, module2) {
|
|
3594
|
+
"use strict";
|
|
3595
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3596
|
+
for (var name in all) __defProp2(target, name, {
|
|
3597
|
+
get: all[name],
|
|
3598
|
+
enumerable: !0
|
|
3599
|
+
});
|
|
3600
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
3601
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3602
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3603
|
+
for (var _loop = function() {
|
|
3604
|
+
var key = _step.value;
|
|
3605
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3606
|
+
get: function() {
|
|
3607
|
+
return from[key];
|
|
3608
|
+
},
|
|
3609
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3610
|
+
});
|
|
3611
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3612
|
+
} catch (err) {
|
|
3613
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
3614
|
+
} finally {
|
|
3615
|
+
try {
|
|
3616
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3617
|
+
} finally {
|
|
3618
|
+
if (_didIteratorError)
|
|
3619
|
+
throw _iteratorError;
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
return to;
|
|
3623
|
+
}, __toCommonJS2 = function(mod) {
|
|
3624
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3625
|
+
value: !0
|
|
3626
|
+
}), mod);
|
|
3627
|
+
}, mergeProps_exports = {};
|
|
3628
|
+
__export2(mergeProps_exports, {
|
|
3629
|
+
mergeComponentProps: function() {
|
|
3630
|
+
return mergeComponentProps;
|
|
3631
|
+
},
|
|
3632
|
+
mergeProps: function() {
|
|
3633
|
+
return mergeProps;
|
|
3634
|
+
}
|
|
3635
|
+
});
|
|
3636
|
+
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
3637
|
+
var import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = function(defaultProps, props) {
|
|
3638
|
+
var out = {};
|
|
3639
|
+
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
3640
|
+
for (var key1 in props) mergeProp(out, defaultProps, props, key1);
|
|
3641
|
+
return out;
|
|
3642
|
+
}, mergeComponentProps = function(defaultProps, contextProps, props) {
|
|
3643
|
+
var overriddenContext = null;
|
|
3644
|
+
if (!defaultProps && !contextProps) return [
|
|
3645
|
+
props,
|
|
3646
|
+
overriddenContext
|
|
3647
|
+
];
|
|
3648
|
+
if (defaultProps && !contextProps) return [
|
|
3649
|
+
mergeProps(defaultProps, props),
|
|
3650
|
+
overriddenContext
|
|
3651
|
+
];
|
|
3652
|
+
var out = {};
|
|
3653
|
+
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
3654
|
+
for (var key1 in contextProps) key1 in props || (out[key1] = contextProps[key1]);
|
|
3655
|
+
for (var key2 in props) mergeProp(out, defaultProps, props, key2), contextProps && key2 in contextProps && (overriddenContext || (overriddenContext = {}), overriddenContext[key2] = props[key2]);
|
|
3656
|
+
return [
|
|
3657
|
+
out,
|
|
3658
|
+
overriddenContext
|
|
3659
|
+
];
|
|
3660
|
+
};
|
|
3661
|
+
function mergeProp(out, defaultProps, props, key) {
|
|
3662
|
+
var val = props[key];
|
|
3663
|
+
if (defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && val && typeof val == "object") {
|
|
3664
|
+
var defaultVal = defaultProps[key];
|
|
3665
|
+
defaultVal && typeof defaultVal == "object" && (val = mergeProps(defaultVal, val));
|
|
3666
|
+
}
|
|
3667
|
+
out[key] = val;
|
|
3668
|
+
}
|
|
3669
|
+
}
|
|
3670
|
+
});
|
|
3671
|
+
|
|
3588
3672
|
// ../../core/web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
3589
3673
|
var require_objectIdentityKey_native = __commonJS({
|
|
3590
3674
|
"../../core/web/dist/cjs/helpers/objectIdentityKey.native.js"(exports2, module2) {
|
|
@@ -3701,7 +3785,7 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3701
3785
|
}
|
|
3702
3786
|
});
|
|
3703
3787
|
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
3704
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_objectIdentityKey = require_objectIdentityKey_native(), createReactContext = import_react3.default[Math.random(), "createContext"];
|
|
3788
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_mergeProps = require_mergeProps_native(), import_objectIdentityKey = require_objectIdentityKey_native(), createReactContext = import_react3.default[Math.random(), "createContext"];
|
|
3705
3789
|
function createStyledContext2(defaultValues) {
|
|
3706
3790
|
var namespace = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", OGContext = createReactContext(defaultValues), OGProvider2 = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map(), LastScopeInNamespace = createReactContext(namespace);
|
|
3707
3791
|
function getOrCreateScopedContext(scope) {
|
|
@@ -3711,18 +3795,20 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3711
3795
|
var getNamespacedScope = function(scope) {
|
|
3712
3796
|
return namespace ? `${namespace}--${scope}` : scope;
|
|
3713
3797
|
}, Provider = function(param) {
|
|
3714
|
-
var {
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3798
|
+
var {
|
|
3799
|
+
children,
|
|
3800
|
+
scope: scopeIn,
|
|
3801
|
+
// performance: avoid creating objects
|
|
3802
|
+
__disableMergeDefaultValues,
|
|
3803
|
+
...values
|
|
3804
|
+
} = param, scope = getNamespacedScope(scopeIn), next = import_react3.default.useMemo(function() {
|
|
3805
|
+
return __disableMergeDefaultValues ? values : (0, import_mergeProps.mergeProps)(defaultValues, values);
|
|
3720
3806
|
}, [
|
|
3721
3807
|
(0, import_objectIdentityKey.objectIdentityKey)(values)
|
|
3722
|
-
]),
|
|
3723
|
-
return scope && (
|
|
3808
|
+
]), ScopedProvider = OGProvider2;
|
|
3809
|
+
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastScopeInNamespace.Provider, {
|
|
3724
3810
|
value: scope,
|
|
3725
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
3811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScopedProvider, {
|
|
3726
3812
|
value: next,
|
|
3727
3813
|
children
|
|
3728
3814
|
})
|
|
@@ -3904,57 +3990,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
3904
3990
|
}
|
|
3905
3991
|
});
|
|
3906
3992
|
|
|
3907
|
-
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
3908
|
-
var require_getShorthandValue_native = __commonJS({
|
|
3909
|
-
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
3910
|
-
"use strict";
|
|
3911
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3912
|
-
for (var name in all) __defProp2(target, name, {
|
|
3913
|
-
get: all[name],
|
|
3914
|
-
enumerable: !0
|
|
3915
|
-
});
|
|
3916
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
3917
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3918
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3919
|
-
for (var _loop = function() {
|
|
3920
|
-
var key = _step.value;
|
|
3921
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3922
|
-
get: function() {
|
|
3923
|
-
return from[key];
|
|
3924
|
-
},
|
|
3925
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3926
|
-
});
|
|
3927
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3928
|
-
} catch (err) {
|
|
3929
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
3930
|
-
} finally {
|
|
3931
|
-
try {
|
|
3932
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3933
|
-
} finally {
|
|
3934
|
-
if (_didIteratorError)
|
|
3935
|
-
throw _iteratorError;
|
|
3936
|
-
}
|
|
3937
|
-
}
|
|
3938
|
-
return to;
|
|
3939
|
-
}, __toCommonJS2 = function(mod) {
|
|
3940
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3941
|
-
value: !0
|
|
3942
|
-
}), mod);
|
|
3943
|
-
}, getShorthandValue_exports = {};
|
|
3944
|
-
__export2(getShorthandValue_exports, {
|
|
3945
|
-
getShorthandValue: function() {
|
|
3946
|
-
return getShorthandValue;
|
|
3947
|
-
}
|
|
3948
|
-
});
|
|
3949
|
-
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
3950
|
-
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
3951
|
-
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
3952
|
-
var _props_key;
|
|
3953
|
-
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
3954
|
-
};
|
|
3955
|
-
}
|
|
3956
|
-
});
|
|
3957
|
-
|
|
3958
3993
|
// ../../core/web/dist/cjs/helpers/getDynamicVal.native.js
|
|
3959
3994
|
var require_getDynamicVal_native = __commonJS({
|
|
3960
3995
|
"../../core/web/dist/cjs/helpers/getDynamicVal.native.js"(exports2, module2) {
|
|
@@ -6233,8 +6268,8 @@ var require_propMapper_native = __commonJS({
|
|
|
6233
6268
|
}
|
|
6234
6269
|
}
|
|
6235
6270
|
for (var cat in import_helpers.tokenCategories) if (key in import_helpers.tokenCategories[cat]) {
|
|
6236
|
-
var res = tokensParsed[cat][value];
|
|
6237
|
-
res != null
|
|
6271
|
+
var _tokensParsed_cat, res = (_tokensParsed_cat = tokensParsed[cat]) === null || _tokensParsed_cat === void 0 ? void 0 : _tokensParsed_cat[value];
|
|
6272
|
+
res != null ? (valOrVar = res, hasSet = !0) : process.env.NODE_ENV === "development" && console.warn(`[tamagui] \u26A0\uFE0F missing token ${key} in category ${cat} - ${value}`);
|
|
6238
6273
|
}
|
|
6239
6274
|
}
|
|
6240
6275
|
if (!hasSet) {
|
|
@@ -6466,8 +6501,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6466
6501
|
return "continue";
|
|
6467
6502
|
}
|
|
6468
6503
|
if (0) var didUseKeyInit;
|
|
6469
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo
|
|
6470
|
-
if (isMediaOrPseudo &&
|
|
6504
|
+
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo ? (0, import_useMedia.getMediaKey)(keyInit) : !1, isMediaOrPseudo = !!(isMedia || isPseudo);
|
|
6505
|
+
if (isMediaOrPseudo && isMedia === "group") {
|
|
6471
6506
|
var parts = keyInit.split("-"), plen = parts.length;
|
|
6472
6507
|
if (
|
|
6473
6508
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -6499,7 +6534,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6499
6534
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
6500
6535
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
6501
6536
|
if ((0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
6502
|
-
var _parentStaticConfig_variants, isStyledContextProp =
|
|
6537
|
+
var _parentStaticConfig_variants, isStyledContextProp = styledContext && key4 in styledContext;
|
|
6503
6538
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
6504
6539
|
viewProps[key4] = val2;
|
|
6505
6540
|
return;
|
|
@@ -6513,7 +6548,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6513
6548
|
mergeStyle(styleState, key4, val2, 1);
|
|
6514
6549
|
return;
|
|
6515
6550
|
}
|
|
6516
|
-
if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia =
|
|
6551
|
+
if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia = isPseudo ? !1 : (0, import_useMedia.getMediaKey)(key4), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key4 in variants, inlineProps != null && inlineProps.has(key4) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key4)) {
|
|
6517
6552
|
var _props_key;
|
|
6518
6553
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
6519
6554
|
}
|
|
@@ -6777,7 +6812,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6777
6812
|
...theme
|
|
6778
6813
|
}
|
|
6779
6814
|
}));
|
|
6780
|
-
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
6815
|
+
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
6781
6816
|
for (var keyOg in props) _loop(keyOg);
|
|
6782
6817
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
6783
6818
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
@@ -7000,80 +7035,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7000
7035
|
}
|
|
7001
7036
|
});
|
|
7002
7037
|
|
|
7003
|
-
// ../../core/web/dist/cjs/helpers/mergeProps.native.js
|
|
7004
|
-
var require_mergeProps_native = __commonJS({
|
|
7005
|
-
"../../core/web/dist/cjs/helpers/mergeProps.native.js"(exports2, module2) {
|
|
7006
|
-
"use strict";
|
|
7007
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7008
|
-
for (var name in all) __defProp2(target, name, {
|
|
7009
|
-
get: all[name],
|
|
7010
|
-
enumerable: !0
|
|
7011
|
-
});
|
|
7012
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
7013
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7014
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7015
|
-
for (var _loop = function() {
|
|
7016
|
-
var key = _step.value;
|
|
7017
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7018
|
-
get: function() {
|
|
7019
|
-
return from[key];
|
|
7020
|
-
},
|
|
7021
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7022
|
-
});
|
|
7023
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7024
|
-
} catch (err) {
|
|
7025
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
7026
|
-
} finally {
|
|
7027
|
-
try {
|
|
7028
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7029
|
-
} finally {
|
|
7030
|
-
if (_didIteratorError)
|
|
7031
|
-
throw _iteratorError;
|
|
7032
|
-
}
|
|
7033
|
-
}
|
|
7034
|
-
return to;
|
|
7035
|
-
}, __toCommonJS2 = function(mod) {
|
|
7036
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7037
|
-
value: !0
|
|
7038
|
-
}), mod);
|
|
7039
|
-
}, mergeProps_exports = {};
|
|
7040
|
-
__export2(mergeProps_exports, {
|
|
7041
|
-
mergeProps: function() {
|
|
7042
|
-
return mergeProps;
|
|
7043
|
-
}
|
|
7044
|
-
});
|
|
7045
|
-
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
7046
|
-
var import_useMedia = require_useMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = function(a, b, inverseShorthands) {
|
|
7047
|
-
var out = {};
|
|
7048
|
-
for (var key in a) mergeProp(out, a, b, key, inverseShorthands);
|
|
7049
|
-
if (b) for (var key1 in b) mergeProp(out, b, void 0, key1, inverseShorthands);
|
|
7050
|
-
if (b && Object.keys(b).length > 0) {
|
|
7051
|
-
var hasPropsNeedingReorder = Object.keys(b).some(function(key4) {
|
|
7052
|
-
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && a && key4 in a && key4 in out;
|
|
7053
|
-
});
|
|
7054
|
-
if (hasPropsNeedingReorder) {
|
|
7055
|
-
var reordered = {};
|
|
7056
|
-
for (var key2 in b) (key2 in import_pseudoDescriptors.pseudoDescriptors || key2 === "variant") && key2 in out && (reordered[key2] = out[key2]);
|
|
7057
|
-
for (var key3 in out) key3 in reordered || (reordered[key3] = out[key3]);
|
|
7058
|
-
return reordered;
|
|
7059
|
-
}
|
|
7060
|
-
}
|
|
7061
|
-
return out;
|
|
7062
|
-
};
|
|
7063
|
-
function mergeProp(out, a, b, key, inverseShorthands) {
|
|
7064
|
-
var longhand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null, val = a[key];
|
|
7065
|
-
if (key in import_pseudoDescriptors.pseudoDescriptors || import_useMedia.mediaKeys.has(key)) {
|
|
7066
|
-
out[key] = {
|
|
7067
|
-
...out[key],
|
|
7068
|
-
...val
|
|
7069
|
-
};
|
|
7070
|
-
return;
|
|
7071
|
-
}
|
|
7072
|
-
b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
|
|
7073
|
-
}
|
|
7074
|
-
}
|
|
7075
|
-
});
|
|
7076
|
-
|
|
7077
7038
|
// ../../core/web/dist/cjs/helpers/setElementProps.native.js
|
|
7078
7039
|
var require_setElementProps_native = __commonJS({
|
|
7079
7040
|
"../../core/web/dist/cjs/helpers/setElementProps.native.js"(exports2, module2) {
|
|
@@ -8535,7 +8496,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8535
8496
|
}
|
|
8536
8497
|
});
|
|
8537
8498
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8538
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_is_equal_shallow = require_index_native12(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_GroupContext = require_GroupContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(),
|
|
8499
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_is_equal_shallow = require_index_native12(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_GroupContext = require_GroupContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_objectIdentityKey = require_objectIdentityKey_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set([
|
|
8539
8500
|
"hover",
|
|
8540
8501
|
"press",
|
|
8541
8502
|
"pressIn",
|
|
@@ -8585,28 +8546,15 @@ var require_createComponent_native = __commonJS({
|
|
|
8585
8546
|
var _propsIn_datatestrenders, _current, _;
|
|
8586
8547
|
(_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
|
|
8587
8548
|
}
|
|
8588
|
-
var
|
|
8589
|
-
if (context && (contextValue = import_react3.default.useContext(context), contextValue)) {
|
|
8590
|
-
process.env.NODE_ENV === "development" && (propsIn == null ? void 0 : propsIn.debug) === "verbose" && (0, import_log.log)(" \u{1F447} contextValue", contextValue);
|
|
8591
|
-
for (var key in context.props) {
|
|
8592
|
-
var propVal = (0, import_getShorthandValue.getShorthandValue)(propsIn, key);
|
|
8593
|
-
if (propVal === void 0) {
|
|
8594
|
-
var val = contextValue == null ? void 0 : contextValue[key];
|
|
8595
|
-
val !== void 0 && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = val);
|
|
8596
|
-
}
|
|
8597
|
-
var finalVal = propVal ?? (defaultProps == null ? void 0 : defaultProps[key]);
|
|
8598
|
-
finalVal !== void 0 && (overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = finalVal);
|
|
8599
|
-
}
|
|
8600
|
-
}
|
|
8601
|
-
var debugProp = propsIn.debug;
|
|
8549
|
+
var { context, isReactNative } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null;
|
|
8602
8550
|
if (0)
|
|
8603
8551
|
var timer;
|
|
8604
8552
|
process.env.NODE_ENV === "development" && time2 && time2`non-tamagui time (ignore)`;
|
|
8605
|
-
var
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8553
|
+
var props = propsIn;
|
|
8554
|
+
if (styledContextValue || defaultProps) {
|
|
8555
|
+
var [nextProps, overrides] = (0, import_mergeProps.mergeComponentProps)(defaultProps, styledContextValue, propsIn);
|
|
8556
|
+
nextProps && (props = nextProps), overriddenContextProps = overrides;
|
|
8557
|
+
}
|
|
8610
8558
|
var componentName2 = props.componentName || staticConfig.componentName;
|
|
8611
8559
|
process.env.NODE_ENV === "development" && import_constants4.isClient && import_react3.default.useEffect(function() {
|
|
8612
8560
|
var node, overlay = null, remove = function() {
|
|
@@ -8701,13 +8649,13 @@ var require_createComponent_native = __commonJS({
|
|
|
8701
8649
|
else {
|
|
8702
8650
|
console.groupEnd();
|
|
8703
8651
|
var ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
|
|
8704
|
-
childLog.length && (childLog = `(children: ${childLog})`), console.groupCollapsed(`${childLog} [inspect props, state, context \u{1F447}]`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({
|
|
8652
|
+
childLog.length && (childLog = `(children: ${childLog})`), console.groupCollapsed(`${childLog} [inspect props, state, context \u{1F447}]`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props, Object.keys(props)), (0, import_log.log)({
|
|
8705
8653
|
state,
|
|
8706
8654
|
staticConfig,
|
|
8707
8655
|
elementType,
|
|
8708
8656
|
themeStateProps
|
|
8709
8657
|
}), (0, import_log.log)({
|
|
8710
|
-
|
|
8658
|
+
context,
|
|
8711
8659
|
overriddenContextProps,
|
|
8712
8660
|
componentContext
|
|
8713
8661
|
}), (0, import_log.log)({
|
|
@@ -8734,7 +8682,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8734
8682
|
isExiting,
|
|
8735
8683
|
isAnimated,
|
|
8736
8684
|
willBeAnimated,
|
|
8737
|
-
|
|
8685
|
+
styledContext: styledContextValue
|
|
8738
8686
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
8739
8687
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
8740
8688
|
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), isPassthrough = !splitStyles, groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
@@ -9049,17 +8997,18 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9049
8997
|
children: content
|
|
9050
8998
|
})), process.env.NODE_ENV === "development" && time2 && time2`group-context`, content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time2 && time2`themed-children`, staticConfig.context) {
|
|
9051
8999
|
var contextProps = staticConfig.context.props;
|
|
9052
|
-
for (var
|
|
9000
|
+
for (var key in contextProps) if (viewProps.style && key in viewProps.style || key in viewProps) {
|
|
9053
9001
|
var _viewProps_style;
|
|
9054
9002
|
overriddenContextProps || (overriddenContextProps = {});
|
|
9055
9003
|
var _viewProps_style_key;
|
|
9056
|
-
overriddenContextProps[
|
|
9004
|
+
overriddenContextProps[key] = (_viewProps_style_key = (_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style[key]) !== null && _viewProps_style_key !== void 0 ? _viewProps_style_key : viewProps[key];
|
|
9057
9005
|
}
|
|
9058
9006
|
}
|
|
9059
9007
|
if (overriddenContextProps) {
|
|
9060
9008
|
var Provider = staticConfig.context.Provider;
|
|
9009
|
+
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
9061
9010
|
content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider, {
|
|
9062
|
-
|
|
9011
|
+
__disableMergeDefaultValues: !0,
|
|
9063
9012
|
...overriddenContextProps,
|
|
9064
9013
|
children: content
|
|
9065
9014
|
});
|
|
@@ -10548,6 +10497,57 @@ var require_withStableStyle_native = __commonJS({
|
|
|
10548
10497
|
}
|
|
10549
10498
|
});
|
|
10550
10499
|
|
|
10500
|
+
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
10501
|
+
var require_getShorthandValue_native = __commonJS({
|
|
10502
|
+
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
10503
|
+
"use strict";
|
|
10504
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
10505
|
+
for (var name in all) __defProp2(target, name, {
|
|
10506
|
+
get: all[name],
|
|
10507
|
+
enumerable: !0
|
|
10508
|
+
});
|
|
10509
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
10510
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
10511
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
10512
|
+
for (var _loop = function() {
|
|
10513
|
+
var key = _step.value;
|
|
10514
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
10515
|
+
get: function() {
|
|
10516
|
+
return from[key];
|
|
10517
|
+
},
|
|
10518
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
10519
|
+
});
|
|
10520
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
10521
|
+
} catch (err) {
|
|
10522
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
10523
|
+
} finally {
|
|
10524
|
+
try {
|
|
10525
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
10526
|
+
} finally {
|
|
10527
|
+
if (_didIteratorError)
|
|
10528
|
+
throw _iteratorError;
|
|
10529
|
+
}
|
|
10530
|
+
}
|
|
10531
|
+
return to;
|
|
10532
|
+
}, __toCommonJS2 = function(mod) {
|
|
10533
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
10534
|
+
value: !0
|
|
10535
|
+
}), mod);
|
|
10536
|
+
}, getShorthandValue_exports = {};
|
|
10537
|
+
__export2(getShorthandValue_exports, {
|
|
10538
|
+
getShorthandValue: function() {
|
|
10539
|
+
return getShorthandValue;
|
|
10540
|
+
}
|
|
10541
|
+
});
|
|
10542
|
+
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
10543
|
+
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
10544
|
+
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
10545
|
+
var _props_key;
|
|
10546
|
+
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
10547
|
+
};
|
|
10548
|
+
}
|
|
10549
|
+
});
|
|
10550
|
+
|
|
10551
10551
|
// ../../core/web/dist/cjs/helpers/getExpandedShorthands.native.js
|
|
10552
10552
|
var require_getExpandedShorthands_native = __commonJS({
|
|
10553
10553
|
"../../core/web/dist/cjs/helpers/getExpandedShorthands.native.js"(exports2, module2) {
|