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/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,87 @@ 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
|
+
if (defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && val && typeof val == "object") {
|
|
3414
|
+
var defaultVal = defaultProps[key];
|
|
3415
|
+
defaultVal && typeof defaultVal == "object" && (val = mergeProps(defaultVal, val));
|
|
3416
|
+
}
|
|
3417
|
+
out[key] = val;
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
});
|
|
3421
|
+
|
|
3338
3422
|
// ../../core/web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
3339
3423
|
var require_objectIdentityKey_native = __commonJS({
|
|
3340
3424
|
"../../core/web/dist/cjs/helpers/objectIdentityKey.native.js"(exports2, module2) {
|
|
@@ -3451,7 +3535,7 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3451
3535
|
}
|
|
3452
3536
|
});
|
|
3453
3537
|
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"];
|
|
3538
|
+
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
3539
|
function createStyledContext2(defaultValues) {
|
|
3456
3540
|
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
3541
|
function getOrCreateScopedContext(scope) {
|
|
@@ -3461,18 +3545,20 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3461
3545
|
var getNamespacedScope = function(scope) {
|
|
3462
3546
|
return namespace ? `${namespace}--${scope}` : scope;
|
|
3463
3547
|
}, Provider = function(param) {
|
|
3464
|
-
var {
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3548
|
+
var {
|
|
3549
|
+
children,
|
|
3550
|
+
scope: scopeIn,
|
|
3551
|
+
// performance: avoid creating objects
|
|
3552
|
+
__disableMergeDefaultValues,
|
|
3553
|
+
...values
|
|
3554
|
+
} = param, scope = getNamespacedScope(scopeIn), next = import_react3.default.useMemo(function() {
|
|
3555
|
+
return __disableMergeDefaultValues ? values : (0, import_mergeProps.mergeProps)(defaultValues, values);
|
|
3470
3556
|
}, [
|
|
3471
3557
|
(0, import_objectIdentityKey.objectIdentityKey)(values)
|
|
3472
|
-
]),
|
|
3473
|
-
return scope && (
|
|
3558
|
+
]), ScopedProvider = OGProvider2;
|
|
3559
|
+
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastScopeInNamespace.Provider, {
|
|
3474
3560
|
value: scope,
|
|
3475
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
3561
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScopedProvider, {
|
|
3476
3562
|
value: next,
|
|
3477
3563
|
children
|
|
3478
3564
|
})
|
|
@@ -3654,57 +3740,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
3654
3740
|
}
|
|
3655
3741
|
});
|
|
3656
3742
|
|
|
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
3743
|
// ../../core/web/dist/cjs/helpers/getDynamicVal.native.js
|
|
3709
3744
|
var require_getDynamicVal_native = __commonJS({
|
|
3710
3745
|
"../../core/web/dist/cjs/helpers/getDynamicVal.native.js"(exports2, module2) {
|
|
@@ -5969,7 +6004,7 @@ var require_propMapper_native = __commonJS({
|
|
|
5969
6004
|
}
|
|
5970
6005
|
}
|
|
5971
6006
|
for (var cat in import_helpers.tokenCategories) if (key in import_helpers.tokenCategories[cat]) {
|
|
5972
|
-
var res = tokensParsed[cat][value];
|
|
6007
|
+
var _tokensParsed_cat, res = (_tokensParsed_cat = tokensParsed[cat]) === null || _tokensParsed_cat === void 0 ? void 0 : _tokensParsed_cat[value];
|
|
5973
6008
|
res != null && (valOrVar = res, hasSet = !0);
|
|
5974
6009
|
}
|
|
5975
6010
|
}
|
|
@@ -6201,8 +6236,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6201
6236
|
return "continue";
|
|
6202
6237
|
}
|
|
6203
6238
|
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 &&
|
|
6239
|
+
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);
|
|
6240
|
+
if (isMediaOrPseudo && isMedia === "group") {
|
|
6206
6241
|
var parts = keyInit.split("-"), plen = parts.length;
|
|
6207
6242
|
if (
|
|
6208
6243
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -6220,7 +6255,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6220
6255
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
6221
6256
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
6222
6257
|
(0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
6223
|
-
var _parentStaticConfig_variants, isStyledContextProp =
|
|
6258
|
+
var _parentStaticConfig_variants, isStyledContextProp = styledContext && key4 in styledContext;
|
|
6224
6259
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
6225
6260
|
viewProps[key4] = val2;
|
|
6226
6261
|
return;
|
|
@@ -6234,7 +6269,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6234
6269
|
mergeStyle(styleState, key4, val2, 1);
|
|
6235
6270
|
return;
|
|
6236
6271
|
}
|
|
6237
|
-
if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia =
|
|
6272
|
+
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
6273
|
var _props_key;
|
|
6239
6274
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
6240
6275
|
}
|
|
@@ -6424,7 +6459,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6424
6459
|
}
|
|
6425
6460
|
}));
|
|
6426
6461
|
}
|
|
6427
|
-
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
6462
|
+
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
6428
6463
|
for (var keyOg in props) _loop(keyOg);
|
|
6429
6464
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
6430
6465
|
if (!avoidNormalize) {
|
|
@@ -6634,80 +6669,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6634
6669
|
}
|
|
6635
6670
|
});
|
|
6636
6671
|
|
|
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
6672
|
// ../../core/web/dist/cjs/helpers/setElementProps.native.js
|
|
6712
6673
|
var require_setElementProps_native = __commonJS({
|
|
6713
6674
|
"../../core/web/dist/cjs/helpers/setElementProps.native.js"(exports2, module2) {
|
|
@@ -8125,7 +8086,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8125
8086
|
}
|
|
8126
8087
|
});
|
|
8127
8088
|
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(),
|
|
8089
|
+
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
8090
|
"hover",
|
|
8130
8091
|
"press",
|
|
8131
8092
|
"pressIn",
|
|
@@ -8169,25 +8130,14 @@ var require_createComponent_native = __commonJS({
|
|
|
8169
8130
|
var _propsIn_datatestrenders, _current, _;
|
|
8170
8131
|
(_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
|
|
8171
8132
|
}
|
|
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;
|
|
8133
|
+
var { context, isReactNative } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null;
|
|
8184
8134
|
if (0)
|
|
8185
8135
|
var timer;
|
|
8186
|
-
var
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8136
|
+
var props = propsIn;
|
|
8137
|
+
if (styledContextValue || defaultProps) {
|
|
8138
|
+
var [nextProps, overrides] = (0, import_mergeProps.mergeComponentProps)(defaultProps, styledContextValue, propsIn);
|
|
8139
|
+
nextProps && (props = nextProps), overriddenContextProps = overrides;
|
|
8140
|
+
}
|
|
8191
8141
|
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
8142
|
hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
8193
8143
|
var pendingState = stateRef.current.nextState;
|
|
@@ -8265,7 +8215,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8265
8215
|
isExiting,
|
|
8266
8216
|
isAnimated,
|
|
8267
8217
|
willBeAnimated,
|
|
8268
|
-
|
|
8218
|
+
styledContext: styledContextValue
|
|
8269
8219
|
}, 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
8220
|
if (!isPassthrough && groupContext && // avoids onLayout if we don't need it
|
|
8271
8221
|
props.containerType !== "normal") {
|
|
@@ -8537,17 +8487,18 @@ var require_createComponent_native = __commonJS({
|
|
|
8537
8487
|
children: content
|
|
8538
8488
|
})), content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), staticConfig.context) {
|
|
8539
8489
|
var contextProps = staticConfig.context.props;
|
|
8540
|
-
for (var
|
|
8490
|
+
for (var key in contextProps) if (viewProps.style && key in viewProps.style || key in viewProps) {
|
|
8541
8491
|
var _viewProps_style;
|
|
8542
8492
|
overriddenContextProps || (overriddenContextProps = {});
|
|
8543
8493
|
var _viewProps_style_key;
|
|
8544
|
-
overriddenContextProps[
|
|
8494
|
+
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
8495
|
}
|
|
8546
8496
|
}
|
|
8547
8497
|
if (overriddenContextProps) {
|
|
8548
8498
|
var Provider = staticConfig.context.Provider;
|
|
8499
|
+
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
8549
8500
|
content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider, {
|
|
8550
|
-
|
|
8501
|
+
__disableMergeDefaultValues: !0,
|
|
8551
8502
|
...overriddenContextProps,
|
|
8552
8503
|
children: content
|
|
8553
8504
|
});
|
|
@@ -9991,6 +9942,57 @@ var require_withStableStyle_native = __commonJS({
|
|
|
9991
9942
|
}
|
|
9992
9943
|
});
|
|
9993
9944
|
|
|
9945
|
+
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
9946
|
+
var require_getShorthandValue_native = __commonJS({
|
|
9947
|
+
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
9948
|
+
"use strict";
|
|
9949
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
9950
|
+
for (var name in all) __defProp2(target, name, {
|
|
9951
|
+
get: all[name],
|
|
9952
|
+
enumerable: !0
|
|
9953
|
+
});
|
|
9954
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
9955
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
9956
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
9957
|
+
for (var _loop = function() {
|
|
9958
|
+
var key = _step.value;
|
|
9959
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
9960
|
+
get: function() {
|
|
9961
|
+
return from[key];
|
|
9962
|
+
},
|
|
9963
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
9964
|
+
});
|
|
9965
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
9966
|
+
} catch (err) {
|
|
9967
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
9968
|
+
} finally {
|
|
9969
|
+
try {
|
|
9970
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
9971
|
+
} finally {
|
|
9972
|
+
if (_didIteratorError)
|
|
9973
|
+
throw _iteratorError;
|
|
9974
|
+
}
|
|
9975
|
+
}
|
|
9976
|
+
return to;
|
|
9977
|
+
}, __toCommonJS2 = function(mod) {
|
|
9978
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
9979
|
+
value: !0
|
|
9980
|
+
}), mod);
|
|
9981
|
+
}, getShorthandValue_exports = {};
|
|
9982
|
+
__export2(getShorthandValue_exports, {
|
|
9983
|
+
getShorthandValue: function() {
|
|
9984
|
+
return getShorthandValue;
|
|
9985
|
+
}
|
|
9986
|
+
});
|
|
9987
|
+
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
9988
|
+
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
9989
|
+
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
9990
|
+
var _props_key;
|
|
9991
|
+
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
9992
|
+
};
|
|
9993
|
+
}
|
|
9994
|
+
});
|
|
9995
|
+
|
|
9994
9996
|
// ../../core/web/dist/cjs/helpers/getExpandedShorthands.native.js
|
|
9995
9997
|
var require_getExpandedShorthands_native = __commonJS({
|
|
9996
9998
|
"../../core/web/dist/cjs/helpers/getExpandedShorthands.native.js"(exports2, module2) {
|