tamagui 1.132.24 → 1.133.0
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 +171 -172
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +168 -167
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -2820,6 +2820,9 @@ var require_useMedia_native = __commonJS({
|
|
|
2820
2820
|
getMediaImportanceIfMoreImportant: function() {
|
|
2821
2821
|
return getMediaImportanceIfMoreImportant;
|
|
2822
2822
|
},
|
|
2823
|
+
getMediaKey: function() {
|
|
2824
|
+
return getMediaKey;
|
|
2825
|
+
},
|
|
2823
2826
|
getMediaKeyImportance: function() {
|
|
2824
2827
|
return getMediaKeyImportance;
|
|
2825
2828
|
},
|
|
@@ -2864,12 +2867,12 @@ var require_useMedia_native = __commonJS({
|
|
|
2864
2867
|
var import_constants4 = require_index_native(), import_react3 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mediaState3 = {}, mediaQueryConfig3 = {}, getMedia3 = function() {
|
|
2865
2868
|
return mediaState3;
|
|
2866
2869
|
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
2870
|
+
return key[0] !== "$" ? !1 : !!(mediaKeys.has(key) || mediaKeyRegex.test(key));
|
|
2871
|
+
}, getMediaKey = function(key) {
|
|
2872
|
+
if (key[0] !== "$") return !1;
|
|
2867
2873
|
if (mediaKeys.has(key)) return !0;
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
if (match) return match[1];
|
|
2871
|
-
}
|
|
2872
|
-
return !1;
|
|
2874
|
+
var match = key.match(mediaKeyRegex);
|
|
2875
|
+
return match ? match[1] : !1;
|
|
2873
2876
|
}, initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = function(key) {
|
|
2874
2877
|
var conf = (0, import_config.getConfig)();
|
|
2875
2878
|
return conf.settings.mediaPropOrder ? defaultMediaImportance : mediaKeysOrdered.indexOf(key) + 100;
|
|
@@ -3335,6 +3338,86 @@ var require_isDevTools_native = __commonJS({
|
|
|
3335
3338
|
}
|
|
3336
3339
|
});
|
|
3337
3340
|
|
|
3341
|
+
// ../../core/web/dist/cjs/helpers/mergeProps.native.js
|
|
3342
|
+
var require_mergeProps_native = __commonJS({
|
|
3343
|
+
"../../core/web/dist/cjs/helpers/mergeProps.native.js"(exports2, module2) {
|
|
3344
|
+
"use strict";
|
|
3345
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3346
|
+
for (var name in all) __defProp2(target, name, {
|
|
3347
|
+
get: all[name],
|
|
3348
|
+
enumerable: !0
|
|
3349
|
+
});
|
|
3350
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
3351
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3352
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3353
|
+
for (var _loop = function() {
|
|
3354
|
+
var key = _step.value;
|
|
3355
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3356
|
+
get: function() {
|
|
3357
|
+
return from[key];
|
|
3358
|
+
},
|
|
3359
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3360
|
+
});
|
|
3361
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3362
|
+
} catch (err) {
|
|
3363
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
3364
|
+
} finally {
|
|
3365
|
+
try {
|
|
3366
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3367
|
+
} finally {
|
|
3368
|
+
if (_didIteratorError)
|
|
3369
|
+
throw _iteratorError;
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
return to;
|
|
3373
|
+
}, __toCommonJS2 = function(mod) {
|
|
3374
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3375
|
+
value: !0
|
|
3376
|
+
}), mod);
|
|
3377
|
+
}, mergeProps_exports = {};
|
|
3378
|
+
__export2(mergeProps_exports, {
|
|
3379
|
+
mergeComponentProps: function() {
|
|
3380
|
+
return mergeComponentProps;
|
|
3381
|
+
},
|
|
3382
|
+
mergeProps: function() {
|
|
3383
|
+
return mergeProps;
|
|
3384
|
+
}
|
|
3385
|
+
});
|
|
3386
|
+
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
3387
|
+
var import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = function(defaultProps, props) {
|
|
3388
|
+
var out = {};
|
|
3389
|
+
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
3390
|
+
for (var key1 in props) mergeProp(out, defaultProps, props, key1);
|
|
3391
|
+
return out;
|
|
3392
|
+
}, mergeComponentProps = function(defaultProps, contextProps, props) {
|
|
3393
|
+
var overriddenContext = null;
|
|
3394
|
+
if (!defaultProps && !contextProps) return [
|
|
3395
|
+
props,
|
|
3396
|
+
overriddenContext
|
|
3397
|
+
];
|
|
3398
|
+
if (defaultProps && !contextProps) return [
|
|
3399
|
+
mergeProps(defaultProps, props),
|
|
3400
|
+
overriddenContext
|
|
3401
|
+
];
|
|
3402
|
+
var out = {};
|
|
3403
|
+
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
3404
|
+
for (var key1 in contextProps) key1 in props || (out[key1] = contextProps[key1]);
|
|
3405
|
+
for (var key2 in props) mergeProp(out, defaultProps, props, key2), contextProps && key2 in contextProps && (overriddenContext || (overriddenContext = {}), overriddenContext[key2] = props[key2]);
|
|
3406
|
+
return [
|
|
3407
|
+
out,
|
|
3408
|
+
overriddenContext
|
|
3409
|
+
];
|
|
3410
|
+
};
|
|
3411
|
+
function mergeProp(out, defaultProps, props, key) {
|
|
3412
|
+
var val = props[key];
|
|
3413
|
+
defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && (val = {
|
|
3414
|
+
...defaultProps[key],
|
|
3415
|
+
...val
|
|
3416
|
+
}), out[key] = val;
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
});
|
|
3420
|
+
|
|
3338
3421
|
// ../../core/web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
3339
3422
|
var require_objectIdentityKey_native = __commonJS({
|
|
3340
3423
|
"../../core/web/dist/cjs/helpers/objectIdentityKey.native.js"(exports2, module2) {
|
|
@@ -3451,7 +3534,7 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3451
3534
|
}
|
|
3452
3535
|
});
|
|
3453
3536
|
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
3454
|
-
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"];
|
|
3537
|
+
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"];
|
|
3455
3538
|
function createStyledContext2(defaultValues) {
|
|
3456
3539
|
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);
|
|
3457
3540
|
function getOrCreateScopedContext(scope) {
|
|
@@ -3461,18 +3544,20 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3461
3544
|
var getNamespacedScope = function(scope) {
|
|
3462
3545
|
return namespace ? `${namespace}--${scope}` : scope;
|
|
3463
3546
|
}, Provider = function(param) {
|
|
3464
|
-
var {
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3547
|
+
var {
|
|
3548
|
+
children,
|
|
3549
|
+
scope: scopeIn,
|
|
3550
|
+
// performance: avoid creating objects
|
|
3551
|
+
__disableMergeDefaultValues,
|
|
3552
|
+
...values
|
|
3553
|
+
} = param, scope = getNamespacedScope(scopeIn), next = import_react3.default.useMemo(function() {
|
|
3554
|
+
return __disableMergeDefaultValues ? values : (0, import_mergeProps.mergeProps)(defaultValues, values);
|
|
3470
3555
|
}, [
|
|
3471
3556
|
(0, import_objectIdentityKey.objectIdentityKey)(values)
|
|
3472
|
-
]),
|
|
3473
|
-
return scope && (
|
|
3557
|
+
]), ScopedProvider = OGProvider2;
|
|
3558
|
+
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastScopeInNamespace.Provider, {
|
|
3474
3559
|
value: scope,
|
|
3475
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
3560
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScopedProvider, {
|
|
3476
3561
|
value: next,
|
|
3477
3562
|
children
|
|
3478
3563
|
})
|
|
@@ -3654,57 +3739,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
3654
3739
|
}
|
|
3655
3740
|
});
|
|
3656
3741
|
|
|
3657
|
-
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
3658
|
-
var require_getShorthandValue_native = __commonJS({
|
|
3659
|
-
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
3660
|
-
"use strict";
|
|
3661
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3662
|
-
for (var name in all) __defProp2(target, name, {
|
|
3663
|
-
get: all[name],
|
|
3664
|
-
enumerable: !0
|
|
3665
|
-
});
|
|
3666
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
3667
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3668
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3669
|
-
for (var _loop = function() {
|
|
3670
|
-
var key = _step.value;
|
|
3671
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3672
|
-
get: function() {
|
|
3673
|
-
return from[key];
|
|
3674
|
-
},
|
|
3675
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3676
|
-
});
|
|
3677
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3678
|
-
} catch (err) {
|
|
3679
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
3680
|
-
} finally {
|
|
3681
|
-
try {
|
|
3682
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3683
|
-
} finally {
|
|
3684
|
-
if (_didIteratorError)
|
|
3685
|
-
throw _iteratorError;
|
|
3686
|
-
}
|
|
3687
|
-
}
|
|
3688
|
-
return to;
|
|
3689
|
-
}, __toCommonJS2 = function(mod) {
|
|
3690
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3691
|
-
value: !0
|
|
3692
|
-
}), mod);
|
|
3693
|
-
}, getShorthandValue_exports = {};
|
|
3694
|
-
__export2(getShorthandValue_exports, {
|
|
3695
|
-
getShorthandValue: function() {
|
|
3696
|
-
return getShorthandValue;
|
|
3697
|
-
}
|
|
3698
|
-
});
|
|
3699
|
-
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
3700
|
-
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
3701
|
-
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
3702
|
-
var _props_key;
|
|
3703
|
-
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
3704
|
-
};
|
|
3705
|
-
}
|
|
3706
|
-
});
|
|
3707
|
-
|
|
3708
3742
|
// ../../core/web/dist/cjs/helpers/getDynamicVal.native.js
|
|
3709
3743
|
var require_getDynamicVal_native = __commonJS({
|
|
3710
3744
|
"../../core/web/dist/cjs/helpers/getDynamicVal.native.js"(exports2, module2) {
|
|
@@ -5969,7 +6003,7 @@ var require_propMapper_native = __commonJS({
|
|
|
5969
6003
|
}
|
|
5970
6004
|
}
|
|
5971
6005
|
for (var cat in import_helpers.tokenCategories) if (key in import_helpers.tokenCategories[cat]) {
|
|
5972
|
-
var res = tokensParsed[cat][value];
|
|
6006
|
+
var _tokensParsed_cat, res = (_tokensParsed_cat = tokensParsed[cat]) === null || _tokensParsed_cat === void 0 ? void 0 : _tokensParsed_cat[value];
|
|
5973
6007
|
res != null && (valOrVar = res, hasSet = !0);
|
|
5974
6008
|
}
|
|
5975
6009
|
}
|
|
@@ -6201,8 +6235,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6201
6235
|
return "continue";
|
|
6202
6236
|
}
|
|
6203
6237
|
if (0) var didUseKeyInit;
|
|
6204
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo
|
|
6205
|
-
if (isMediaOrPseudo &&
|
|
6238
|
+
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);
|
|
6239
|
+
if (isMediaOrPseudo && isMedia === "group") {
|
|
6206
6240
|
var parts = keyInit.split("-"), plen = parts.length;
|
|
6207
6241
|
if (
|
|
6208
6242
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -6220,7 +6254,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6220
6254
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
6221
6255
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
6222
6256
|
(0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
6223
|
-
var _parentStaticConfig_variants, isStyledContextProp = styleProps.
|
|
6257
|
+
var _parentStaticConfig_variants, isStyledContextProp = styleProps.styledContext && key4 in styleProps.styledContext;
|
|
6224
6258
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
6225
6259
|
viewProps[key4] = val2;
|
|
6226
6260
|
return;
|
|
@@ -6234,7 +6268,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6234
6268
|
mergeStyle(styleState, key4, val2, 1);
|
|
6235
6269
|
return;
|
|
6236
6270
|
}
|
|
6237
|
-
if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia =
|
|
6271
|
+
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)) {
|
|
6238
6272
|
var _props_key;
|
|
6239
6273
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
6240
6274
|
}
|
|
@@ -6634,80 +6668,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6634
6668
|
}
|
|
6635
6669
|
});
|
|
6636
6670
|
|
|
6637
|
-
// ../../core/web/dist/cjs/helpers/mergeProps.native.js
|
|
6638
|
-
var require_mergeProps_native = __commonJS({
|
|
6639
|
-
"../../core/web/dist/cjs/helpers/mergeProps.native.js"(exports2, module2) {
|
|
6640
|
-
"use strict";
|
|
6641
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6642
|
-
for (var name in all) __defProp2(target, name, {
|
|
6643
|
-
get: all[name],
|
|
6644
|
-
enumerable: !0
|
|
6645
|
-
});
|
|
6646
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
6647
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6648
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
6649
|
-
for (var _loop = function() {
|
|
6650
|
-
var key = _step.value;
|
|
6651
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6652
|
-
get: function() {
|
|
6653
|
-
return from[key];
|
|
6654
|
-
},
|
|
6655
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6656
|
-
});
|
|
6657
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
6658
|
-
} catch (err) {
|
|
6659
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
6660
|
-
} finally {
|
|
6661
|
-
try {
|
|
6662
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6663
|
-
} finally {
|
|
6664
|
-
if (_didIteratorError)
|
|
6665
|
-
throw _iteratorError;
|
|
6666
|
-
}
|
|
6667
|
-
}
|
|
6668
|
-
return to;
|
|
6669
|
-
}, __toCommonJS2 = function(mod) {
|
|
6670
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6671
|
-
value: !0
|
|
6672
|
-
}), mod);
|
|
6673
|
-
}, mergeProps_exports = {};
|
|
6674
|
-
__export2(mergeProps_exports, {
|
|
6675
|
-
mergeProps: function() {
|
|
6676
|
-
return mergeProps;
|
|
6677
|
-
}
|
|
6678
|
-
});
|
|
6679
|
-
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
6680
|
-
var import_useMedia = require_useMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = function(a, b, inverseShorthands) {
|
|
6681
|
-
var out = {};
|
|
6682
|
-
for (var key in a) mergeProp(out, a, b, key, inverseShorthands);
|
|
6683
|
-
if (b) for (var key1 in b) mergeProp(out, b, void 0, key1, inverseShorthands);
|
|
6684
|
-
if (b && Object.keys(b).length > 0) {
|
|
6685
|
-
var hasPropsNeedingReorder = Object.keys(b).some(function(key4) {
|
|
6686
|
-
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && a && key4 in a && key4 in out;
|
|
6687
|
-
});
|
|
6688
|
-
if (hasPropsNeedingReorder) {
|
|
6689
|
-
var reordered = {};
|
|
6690
|
-
for (var key2 in b) (key2 in import_pseudoDescriptors.pseudoDescriptors || key2 === "variant") && key2 in out && (reordered[key2] = out[key2]);
|
|
6691
|
-
for (var key3 in out) key3 in reordered || (reordered[key3] = out[key3]);
|
|
6692
|
-
return reordered;
|
|
6693
|
-
}
|
|
6694
|
-
}
|
|
6695
|
-
return out;
|
|
6696
|
-
};
|
|
6697
|
-
function mergeProp(out, a, b, key, inverseShorthands) {
|
|
6698
|
-
var longhand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null, val = a[key];
|
|
6699
|
-
if (key in import_pseudoDescriptors.pseudoDescriptors || import_useMedia.mediaKeys.has(key)) {
|
|
6700
|
-
out[key] = {
|
|
6701
|
-
...out[key],
|
|
6702
|
-
...val
|
|
6703
|
-
};
|
|
6704
|
-
return;
|
|
6705
|
-
}
|
|
6706
|
-
b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
|
|
6707
|
-
}
|
|
6708
|
-
}
|
|
6709
|
-
});
|
|
6710
|
-
|
|
6711
6671
|
// ../../core/web/dist/cjs/helpers/setElementProps.native.js
|
|
6712
6672
|
var require_setElementProps_native = __commonJS({
|
|
6713
6673
|
"../../core/web/dist/cjs/helpers/setElementProps.native.js"(exports2, module2) {
|
|
@@ -8125,7 +8085,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8125
8085
|
}
|
|
8126
8086
|
});
|
|
8127
8087
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8128
|
-
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(),
|
|
8088
|
+
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(), componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set([
|
|
8129
8089
|
"hover",
|
|
8130
8090
|
"press",
|
|
8131
8091
|
"pressIn",
|
|
@@ -8169,25 +8129,14 @@ var require_createComponent_native = __commonJS({
|
|
|
8169
8129
|
var _propsIn_datatestrenders, _current, _;
|
|
8170
8130
|
(_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
|
|
8171
8131
|
}
|
|
8172
|
-
var
|
|
8173
|
-
if (context && (contextValue = import_react3.default.useContext(context), contextValue))
|
|
8174
|
-
for (var key in context.props) {
|
|
8175
|
-
var propVal = (0, import_getShorthandValue.getShorthandValue)(propsIn, key);
|
|
8176
|
-
if (propVal === void 0) {
|
|
8177
|
-
var val = contextValue == null ? void 0 : contextValue[key];
|
|
8178
|
-
val !== void 0 && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = val);
|
|
8179
|
-
}
|
|
8180
|
-
var finalVal = propVal ?? (defaultProps == null ? void 0 : defaultProps[key]);
|
|
8181
|
-
finalVal !== void 0 && (overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = finalVal);
|
|
8182
|
-
}
|
|
8183
|
-
var debugProp = propsIn.debug;
|
|
8132
|
+
var { context, isReactNative } = staticConfig, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null, debugProp = propsIn.debug;
|
|
8184
8133
|
if (0)
|
|
8185
8134
|
var timer;
|
|
8186
|
-
var
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8135
|
+
var props = propsIn;
|
|
8136
|
+
if (styledContextValue || defaultProps) {
|
|
8137
|
+
var [nextProps, overrides] = (0, import_mergeProps.mergeComponentProps)(defaultProps, styledContextValue, propsIn);
|
|
8138
|
+
nextProps && (props = nextProps), overriddenContextProps = overrides;
|
|
8139
|
+
}
|
|
8191
8140
|
var componentName2 = props.componentName || staticConfig.componentName, componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), groupContextParent = import_react3.default.useContext(import_GroupContext.GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = (0, import_useComponentState.useComponentState)(props, animationDriver, staticConfig, config), { disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, supportsCSS, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = componentState;
|
|
8192
8141
|
hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
8193
8142
|
var pendingState = stateRef.current.nextState;
|
|
@@ -8265,7 +8214,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8265
8214
|
isExiting,
|
|
8266
8215
|
isAnimated,
|
|
8267
8216
|
willBeAnimated,
|
|
8268
|
-
|
|
8217
|
+
styledContext: context
|
|
8269
8218
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "", 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;
|
|
8270
8219
|
if (!isPassthrough && groupContext && // avoids onLayout if we don't need it
|
|
8271
8220
|
props.containerType !== "normal") {
|
|
@@ -8537,17 +8486,18 @@ var require_createComponent_native = __commonJS({
|
|
|
8537
8486
|
children: content
|
|
8538
8487
|
})), content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), staticConfig.context) {
|
|
8539
8488
|
var contextProps = staticConfig.context.props;
|
|
8540
|
-
for (var
|
|
8489
|
+
for (var key in contextProps) if (viewProps.style && key in viewProps.style || key in viewProps) {
|
|
8541
8490
|
var _viewProps_style;
|
|
8542
8491
|
overriddenContextProps || (overriddenContextProps = {});
|
|
8543
8492
|
var _viewProps_style_key;
|
|
8544
|
-
overriddenContextProps[
|
|
8493
|
+
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];
|
|
8545
8494
|
}
|
|
8546
8495
|
}
|
|
8547
8496
|
if (overriddenContextProps) {
|
|
8548
8497
|
var Provider = staticConfig.context.Provider;
|
|
8498
|
+
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
8549
8499
|
content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider, {
|
|
8550
|
-
|
|
8500
|
+
__disableMergeDefaultValues: !0,
|
|
8551
8501
|
...overriddenContextProps,
|
|
8552
8502
|
children: content
|
|
8553
8503
|
});
|
|
@@ -9991,6 +9941,57 @@ var require_withStableStyle_native = __commonJS({
|
|
|
9991
9941
|
}
|
|
9992
9942
|
});
|
|
9993
9943
|
|
|
9944
|
+
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
9945
|
+
var require_getShorthandValue_native = __commonJS({
|
|
9946
|
+
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
9947
|
+
"use strict";
|
|
9948
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
9949
|
+
for (var name in all) __defProp2(target, name, {
|
|
9950
|
+
get: all[name],
|
|
9951
|
+
enumerable: !0
|
|
9952
|
+
});
|
|
9953
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
9954
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
9955
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
9956
|
+
for (var _loop = function() {
|
|
9957
|
+
var key = _step.value;
|
|
9958
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
9959
|
+
get: function() {
|
|
9960
|
+
return from[key];
|
|
9961
|
+
},
|
|
9962
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
9963
|
+
});
|
|
9964
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
9965
|
+
} catch (err) {
|
|
9966
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
9967
|
+
} finally {
|
|
9968
|
+
try {
|
|
9969
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
9970
|
+
} finally {
|
|
9971
|
+
if (_didIteratorError)
|
|
9972
|
+
throw _iteratorError;
|
|
9973
|
+
}
|
|
9974
|
+
}
|
|
9975
|
+
return to;
|
|
9976
|
+
}, __toCommonJS2 = function(mod) {
|
|
9977
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
9978
|
+
value: !0
|
|
9979
|
+
}), mod);
|
|
9980
|
+
}, getShorthandValue_exports = {};
|
|
9981
|
+
__export2(getShorthandValue_exports, {
|
|
9982
|
+
getShorthandValue: function() {
|
|
9983
|
+
return getShorthandValue;
|
|
9984
|
+
}
|
|
9985
|
+
});
|
|
9986
|
+
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
9987
|
+
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
9988
|
+
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
9989
|
+
var _props_key;
|
|
9990
|
+
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
9991
|
+
};
|
|
9992
|
+
}
|
|
9993
|
+
});
|
|
9994
|
+
|
|
9994
9995
|
// ../../core/web/dist/cjs/helpers/getExpandedShorthands.native.js
|
|
9995
9996
|
var require_getExpandedShorthands_native = __commonJS({
|
|
9996
9997
|
"../../core/web/dist/cjs/helpers/getExpandedShorthands.native.js"(exports2, module2) {
|