@tamagui/core 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 +10 -10
package/dist/test.native.js
CHANGED
|
@@ -1715,6 +1715,9 @@ var require_useMedia_native = __commonJS({
|
|
|
1715
1715
|
getMediaImportanceIfMoreImportant: function() {
|
|
1716
1716
|
return getMediaImportanceIfMoreImportant;
|
|
1717
1717
|
},
|
|
1718
|
+
getMediaKey: function() {
|
|
1719
|
+
return getMediaKey;
|
|
1720
|
+
},
|
|
1718
1721
|
getMediaKeyImportance: function() {
|
|
1719
1722
|
return getMediaKeyImportance;
|
|
1720
1723
|
},
|
|
@@ -1759,12 +1762,12 @@ var require_useMedia_native = __commonJS({
|
|
|
1759
1762
|
var import_constants = require_index_native2(), import_react3 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mediaState2 = {}, mediaQueryConfig2 = {}, getMedia2 = function() {
|
|
1760
1763
|
return mediaState2;
|
|
1761
1764
|
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
1765
|
+
return key[0] !== "$" ? !1 : !!(mediaKeys.has(key) || mediaKeyRegex.test(key));
|
|
1766
|
+
}, getMediaKey = function(key) {
|
|
1767
|
+
if (key[0] !== "$") return !1;
|
|
1762
1768
|
if (mediaKeys.has(key)) return !0;
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
if (match) return match[1];
|
|
1766
|
-
}
|
|
1767
|
-
return !1;
|
|
1769
|
+
var match = key.match(mediaKeyRegex);
|
|
1770
|
+
return match ? match[1] : !1;
|
|
1768
1771
|
}, initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = function(key) {
|
|
1769
1772
|
var conf = (0, import_config.getConfig)();
|
|
1770
1773
|
return conf.settings.mediaPropOrder ? defaultMediaImportance : mediaKeysOrdered.indexOf(key) + 100;
|
|
@@ -2230,6 +2233,87 @@ var require_isDevTools_native = __commonJS({
|
|
|
2230
2233
|
}
|
|
2231
2234
|
});
|
|
2232
2235
|
|
|
2236
|
+
// ../web/dist/cjs/helpers/mergeProps.native.js
|
|
2237
|
+
var require_mergeProps_native = __commonJS({
|
|
2238
|
+
"../web/dist/cjs/helpers/mergeProps.native.js"(exports2, module2) {
|
|
2239
|
+
"use strict";
|
|
2240
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2241
|
+
for (var name in all) __defProp2(target, name, {
|
|
2242
|
+
get: all[name],
|
|
2243
|
+
enumerable: !0
|
|
2244
|
+
});
|
|
2245
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2246
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2247
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2248
|
+
for (var _loop = function() {
|
|
2249
|
+
var key = _step.value;
|
|
2250
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2251
|
+
get: function() {
|
|
2252
|
+
return from[key];
|
|
2253
|
+
},
|
|
2254
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2255
|
+
});
|
|
2256
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2257
|
+
} catch (err) {
|
|
2258
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2259
|
+
} finally {
|
|
2260
|
+
try {
|
|
2261
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2262
|
+
} finally {
|
|
2263
|
+
if (_didIteratorError)
|
|
2264
|
+
throw _iteratorError;
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
return to;
|
|
2268
|
+
}, __toCommonJS2 = function(mod) {
|
|
2269
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2270
|
+
value: !0
|
|
2271
|
+
}), mod);
|
|
2272
|
+
}, mergeProps_exports = {};
|
|
2273
|
+
__export2(mergeProps_exports, {
|
|
2274
|
+
mergeComponentProps: function() {
|
|
2275
|
+
return mergeComponentProps;
|
|
2276
|
+
},
|
|
2277
|
+
mergeProps: function() {
|
|
2278
|
+
return mergeProps;
|
|
2279
|
+
}
|
|
2280
|
+
});
|
|
2281
|
+
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
2282
|
+
var import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = function(defaultProps, props) {
|
|
2283
|
+
var out = {};
|
|
2284
|
+
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
2285
|
+
for (var key1 in props) mergeProp(out, defaultProps, props, key1);
|
|
2286
|
+
return out;
|
|
2287
|
+
}, mergeComponentProps = function(defaultProps, contextProps, props) {
|
|
2288
|
+
var overriddenContext = null;
|
|
2289
|
+
if (!defaultProps && !contextProps) return [
|
|
2290
|
+
props,
|
|
2291
|
+
overriddenContext
|
|
2292
|
+
];
|
|
2293
|
+
if (defaultProps && !contextProps) return [
|
|
2294
|
+
mergeProps(defaultProps, props),
|
|
2295
|
+
overriddenContext
|
|
2296
|
+
];
|
|
2297
|
+
var out = {};
|
|
2298
|
+
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
2299
|
+
for (var key1 in contextProps) key1 in props || (out[key1] = contextProps[key1]);
|
|
2300
|
+
for (var key2 in props) mergeProp(out, defaultProps, props, key2), contextProps && key2 in contextProps && (overriddenContext || (overriddenContext = {}), overriddenContext[key2] = props[key2]);
|
|
2301
|
+
return [
|
|
2302
|
+
out,
|
|
2303
|
+
overriddenContext
|
|
2304
|
+
];
|
|
2305
|
+
};
|
|
2306
|
+
function mergeProp(out, defaultProps, props, key) {
|
|
2307
|
+
var val = props[key];
|
|
2308
|
+
if (defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && val && typeof val == "object") {
|
|
2309
|
+
var defaultVal = defaultProps[key];
|
|
2310
|
+
defaultVal && typeof defaultVal == "object" && (val = mergeProps(defaultVal, val));
|
|
2311
|
+
}
|
|
2312
|
+
out[key] = val;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
});
|
|
2316
|
+
|
|
2233
2317
|
// ../web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
2234
2318
|
var require_objectIdentityKey_native = __commonJS({
|
|
2235
2319
|
"../web/dist/cjs/helpers/objectIdentityKey.native.js"(exports2, module2) {
|
|
@@ -2346,7 +2430,7 @@ var require_createStyledContext_native = __commonJS({
|
|
|
2346
2430
|
}
|
|
2347
2431
|
});
|
|
2348
2432
|
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
2349
|
-
var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_objectIdentityKey = require_objectIdentityKey_native(), createReactContext = import_react3.default[Math.random(), "createContext"];
|
|
2433
|
+
var import_jsx_runtime2 = 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"];
|
|
2350
2434
|
function createStyledContext(defaultValues) {
|
|
2351
2435
|
var namespace = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", OGContext = createReactContext(defaultValues), OGProvider = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map(), LastScopeInNamespace = createReactContext(namespace);
|
|
2352
2436
|
function getOrCreateScopedContext(scope) {
|
|
@@ -2356,18 +2440,20 @@ var require_createStyledContext_native = __commonJS({
|
|
|
2356
2440
|
var getNamespacedScope = function(scope) {
|
|
2357
2441
|
return namespace ? `${namespace}--${scope}` : scope;
|
|
2358
2442
|
}, Provider = function(param) {
|
|
2359
|
-
var {
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2443
|
+
var {
|
|
2444
|
+
children,
|
|
2445
|
+
scope: scopeIn,
|
|
2446
|
+
// performance: avoid creating objects
|
|
2447
|
+
__disableMergeDefaultValues,
|
|
2448
|
+
...values
|
|
2449
|
+
} = param, scope = getNamespacedScope(scopeIn), next = import_react3.default.useMemo(function() {
|
|
2450
|
+
return __disableMergeDefaultValues ? values : (0, import_mergeProps.mergeProps)(defaultValues, values);
|
|
2365
2451
|
}, [
|
|
2366
2452
|
(0, import_objectIdentityKey.objectIdentityKey)(values)
|
|
2367
|
-
]),
|
|
2368
|
-
return scope && (
|
|
2453
|
+
]), ScopedProvider = OGProvider;
|
|
2454
|
+
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LastScopeInNamespace.Provider, {
|
|
2369
2455
|
value: scope,
|
|
2370
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
2456
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ScopedProvider, {
|
|
2371
2457
|
value: next,
|
|
2372
2458
|
children
|
|
2373
2459
|
})
|
|
@@ -2549,57 +2635,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
2549
2635
|
}
|
|
2550
2636
|
});
|
|
2551
2637
|
|
|
2552
|
-
// ../web/dist/cjs/helpers/getShorthandValue.native.js
|
|
2553
|
-
var require_getShorthandValue_native = __commonJS({
|
|
2554
|
-
"../web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
2555
|
-
"use strict";
|
|
2556
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2557
|
-
for (var name in all) __defProp2(target, name, {
|
|
2558
|
-
get: all[name],
|
|
2559
|
-
enumerable: !0
|
|
2560
|
-
});
|
|
2561
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
2562
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2563
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2564
|
-
for (var _loop = function() {
|
|
2565
|
-
var key = _step.value;
|
|
2566
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2567
|
-
get: function() {
|
|
2568
|
-
return from[key];
|
|
2569
|
-
},
|
|
2570
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2571
|
-
});
|
|
2572
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2573
|
-
} catch (err) {
|
|
2574
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
2575
|
-
} finally {
|
|
2576
|
-
try {
|
|
2577
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2578
|
-
} finally {
|
|
2579
|
-
if (_didIteratorError)
|
|
2580
|
-
throw _iteratorError;
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
return to;
|
|
2584
|
-
}, __toCommonJS2 = function(mod) {
|
|
2585
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2586
|
-
value: !0
|
|
2587
|
-
}), mod);
|
|
2588
|
-
}, getShorthandValue_exports = {};
|
|
2589
|
-
__export2(getShorthandValue_exports, {
|
|
2590
|
-
getShorthandValue: function() {
|
|
2591
|
-
return getShorthandValue;
|
|
2592
|
-
}
|
|
2593
|
-
});
|
|
2594
|
-
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
2595
|
-
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
2596
|
-
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
2597
|
-
var _props_key;
|
|
2598
|
-
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
2599
|
-
};
|
|
2600
|
-
}
|
|
2601
|
-
});
|
|
2602
|
-
|
|
2603
2638
|
// ../web/dist/cjs/helpers/getDynamicVal.native.js
|
|
2604
2639
|
var require_getDynamicVal_native = __commonJS({
|
|
2605
2640
|
"../web/dist/cjs/helpers/getDynamicVal.native.js"(exports2, module2) {
|
|
@@ -4864,7 +4899,7 @@ var require_propMapper_native = __commonJS({
|
|
|
4864
4899
|
}
|
|
4865
4900
|
}
|
|
4866
4901
|
for (var cat in import_helpers2.tokenCategories) if (key in import_helpers2.tokenCategories[cat]) {
|
|
4867
|
-
var res = tokensParsed[cat][value];
|
|
4902
|
+
var _tokensParsed_cat, res = (_tokensParsed_cat = tokensParsed[cat]) === null || _tokensParsed_cat === void 0 ? void 0 : _tokensParsed_cat[value];
|
|
4868
4903
|
res != null && (valOrVar = res, hasSet = !0);
|
|
4869
4904
|
}
|
|
4870
4905
|
}
|
|
@@ -5096,8 +5131,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5096
5131
|
return "continue";
|
|
5097
5132
|
}
|
|
5098
5133
|
if (0) var didUseKeyInit;
|
|
5099
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers2.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo
|
|
5100
|
-
if (isMediaOrPseudo &&
|
|
5134
|
+
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers2.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo ? (0, import_useMedia.getMediaKey)(keyInit) : !1, isMediaOrPseudo = !!(isMedia || isPseudo);
|
|
5135
|
+
if (isMediaOrPseudo && isMedia === "group") {
|
|
5101
5136
|
var parts = keyInit.split("-"), plen = parts.length;
|
|
5102
5137
|
if (
|
|
5103
5138
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -5115,7 +5150,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5115
5150
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
5116
5151
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
5117
5152
|
(0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
5118
|
-
var _parentStaticConfig_variants, isStyledContextProp =
|
|
5153
|
+
var _parentStaticConfig_variants, isStyledContextProp = styledContext && key4 in styledContext;
|
|
5119
5154
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
5120
5155
|
viewProps[key4] = val2;
|
|
5121
5156
|
return;
|
|
@@ -5129,7 +5164,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5129
5164
|
mergeStyle(styleState, key4, val2, 1);
|
|
5130
5165
|
return;
|
|
5131
5166
|
}
|
|
5132
|
-
if (isPseudo = key4 in import_helpers2.validPseudoKeys, isMedia =
|
|
5167
|
+
if (isPseudo = key4 in import_helpers2.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)) {
|
|
5133
5168
|
var _props_key;
|
|
5134
5169
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
5135
5170
|
}
|
|
@@ -5319,7 +5354,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5319
5354
|
}
|
|
5320
5355
|
}));
|
|
5321
5356
|
}
|
|
5322
|
-
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
5357
|
+
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
5323
5358
|
for (var keyOg in props) _loop(keyOg);
|
|
5324
5359
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
5325
5360
|
if (!avoidNormalize) {
|
|
@@ -5529,80 +5564,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5529
5564
|
}
|
|
5530
5565
|
});
|
|
5531
5566
|
|
|
5532
|
-
// ../web/dist/cjs/helpers/mergeProps.native.js
|
|
5533
|
-
var require_mergeProps_native = __commonJS({
|
|
5534
|
-
"../web/dist/cjs/helpers/mergeProps.native.js"(exports2, module2) {
|
|
5535
|
-
"use strict";
|
|
5536
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5537
|
-
for (var name in all) __defProp2(target, name, {
|
|
5538
|
-
get: all[name],
|
|
5539
|
-
enumerable: !0
|
|
5540
|
-
});
|
|
5541
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
5542
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
5543
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
5544
|
-
for (var _loop = function() {
|
|
5545
|
-
var key = _step.value;
|
|
5546
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
5547
|
-
get: function() {
|
|
5548
|
-
return from[key];
|
|
5549
|
-
},
|
|
5550
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
5551
|
-
});
|
|
5552
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
5553
|
-
} catch (err) {
|
|
5554
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
5555
|
-
} finally {
|
|
5556
|
-
try {
|
|
5557
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
5558
|
-
} finally {
|
|
5559
|
-
if (_didIteratorError)
|
|
5560
|
-
throw _iteratorError;
|
|
5561
|
-
}
|
|
5562
|
-
}
|
|
5563
|
-
return to;
|
|
5564
|
-
}, __toCommonJS2 = function(mod) {
|
|
5565
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5566
|
-
value: !0
|
|
5567
|
-
}), mod);
|
|
5568
|
-
}, mergeProps_exports = {};
|
|
5569
|
-
__export2(mergeProps_exports, {
|
|
5570
|
-
mergeProps: function() {
|
|
5571
|
-
return mergeProps;
|
|
5572
|
-
}
|
|
5573
|
-
});
|
|
5574
|
-
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
5575
|
-
var import_useMedia = require_useMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = function(a, b, inverseShorthands) {
|
|
5576
|
-
var out = {};
|
|
5577
|
-
for (var key in a) mergeProp(out, a, b, key, inverseShorthands);
|
|
5578
|
-
if (b) for (var key1 in b) mergeProp(out, b, void 0, key1, inverseShorthands);
|
|
5579
|
-
if (b && Object.keys(b).length > 0) {
|
|
5580
|
-
var hasPropsNeedingReorder = Object.keys(b).some(function(key4) {
|
|
5581
|
-
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && a && key4 in a && key4 in out;
|
|
5582
|
-
});
|
|
5583
|
-
if (hasPropsNeedingReorder) {
|
|
5584
|
-
var reordered = {};
|
|
5585
|
-
for (var key2 in b) (key2 in import_pseudoDescriptors.pseudoDescriptors || key2 === "variant") && key2 in out && (reordered[key2] = out[key2]);
|
|
5586
|
-
for (var key3 in out) key3 in reordered || (reordered[key3] = out[key3]);
|
|
5587
|
-
return reordered;
|
|
5588
|
-
}
|
|
5589
|
-
}
|
|
5590
|
-
return out;
|
|
5591
|
-
};
|
|
5592
|
-
function mergeProp(out, a, b, key, inverseShorthands) {
|
|
5593
|
-
var longhand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null, val = a[key];
|
|
5594
|
-
if (key in import_pseudoDescriptors.pseudoDescriptors || import_useMedia.mediaKeys.has(key)) {
|
|
5595
|
-
out[key] = {
|
|
5596
|
-
...out[key],
|
|
5597
|
-
...val
|
|
5598
|
-
};
|
|
5599
|
-
return;
|
|
5600
|
-
}
|
|
5601
|
-
b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
|
|
5602
|
-
}
|
|
5603
|
-
}
|
|
5604
|
-
});
|
|
5605
|
-
|
|
5606
5567
|
// ../web/dist/cjs/helpers/setElementProps.native.js
|
|
5607
5568
|
var require_setElementProps_native = __commonJS({
|
|
5608
5569
|
"../web/dist/cjs/helpers/setElementProps.native.js"(exports2, module2) {
|
|
@@ -7020,7 +6981,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7020
6981
|
}
|
|
7021
6982
|
});
|
|
7022
6983
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7023
|
-
var import_jsx_runtime2 = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_is_equal_shallow = require_index_native5(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = 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(),
|
|
6984
|
+
var import_jsx_runtime2 = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_is_equal_shallow = require_index_native5(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = 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([
|
|
7024
6985
|
"hover",
|
|
7025
6986
|
"press",
|
|
7026
6987
|
"pressIn",
|
|
@@ -7064,25 +7025,14 @@ var require_createComponent_native = __commonJS({
|
|
|
7064
7025
|
var _propsIn_datatestrenders, _current, _;
|
|
7065
7026
|
(_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
|
|
7066
7027
|
}
|
|
7067
|
-
var
|
|
7068
|
-
if (context && (contextValue = import_react3.default.useContext(context), contextValue))
|
|
7069
|
-
for (var key in context.props) {
|
|
7070
|
-
var propVal = (0, import_getShorthandValue.getShorthandValue)(propsIn, key);
|
|
7071
|
-
if (propVal === void 0) {
|
|
7072
|
-
var val = contextValue == null ? void 0 : contextValue[key];
|
|
7073
|
-
val !== void 0 && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = val);
|
|
7074
|
-
}
|
|
7075
|
-
var finalVal = propVal ?? (defaultProps == null ? void 0 : defaultProps[key]);
|
|
7076
|
-
finalVal !== void 0 && (overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = finalVal);
|
|
7077
|
-
}
|
|
7078
|
-
var debugProp = propsIn.debug;
|
|
7028
|
+
var { context, isReactNative } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null;
|
|
7079
7029
|
if (0)
|
|
7080
7030
|
var timer;
|
|
7081
|
-
var
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7031
|
+
var props = propsIn;
|
|
7032
|
+
if (styledContextValue || defaultProps) {
|
|
7033
|
+
var [nextProps, overrides] = (0, import_mergeProps.mergeComponentProps)(defaultProps, styledContextValue, propsIn);
|
|
7034
|
+
nextProps && (props = nextProps), overriddenContextProps = overrides;
|
|
7035
|
+
}
|
|
7086
7036
|
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;
|
|
7087
7037
|
hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders && (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
7088
7038
|
var pendingState = stateRef.current.nextState;
|
|
@@ -7160,7 +7110,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7160
7110
|
isExiting,
|
|
7161
7111
|
isAnimated,
|
|
7162
7112
|
willBeAnimated,
|
|
7163
|
-
|
|
7113
|
+
styledContext: styledContextValue
|
|
7164
7114
|
}, 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;
|
|
7165
7115
|
if (!isPassthrough && groupContext && // avoids onLayout if we don't need it
|
|
7166
7116
|
props.containerType !== "normal") {
|
|
@@ -7432,17 +7382,18 @@ var require_createComponent_native = __commonJS({
|
|
|
7432
7382
|
children: content
|
|
7433
7383
|
})), content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), staticConfig.context) {
|
|
7434
7384
|
var contextProps = staticConfig.context.props;
|
|
7435
|
-
for (var
|
|
7385
|
+
for (var key in contextProps) if (viewProps.style && key in viewProps.style || key in viewProps) {
|
|
7436
7386
|
var _viewProps_style;
|
|
7437
7387
|
overriddenContextProps || (overriddenContextProps = {});
|
|
7438
7388
|
var _viewProps_style_key;
|
|
7439
|
-
overriddenContextProps[
|
|
7389
|
+
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];
|
|
7440
7390
|
}
|
|
7441
7391
|
}
|
|
7442
7392
|
if (overriddenContextProps) {
|
|
7443
7393
|
var Provider = staticConfig.context.Provider;
|
|
7394
|
+
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
7444
7395
|
content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Provider, {
|
|
7445
|
-
|
|
7396
|
+
__disableMergeDefaultValues: !0,
|
|
7446
7397
|
...overriddenContextProps,
|
|
7447
7398
|
children: content
|
|
7448
7399
|
});
|
|
@@ -8886,6 +8837,57 @@ var require_withStableStyle_native = __commonJS({
|
|
|
8886
8837
|
}
|
|
8887
8838
|
});
|
|
8888
8839
|
|
|
8840
|
+
// ../web/dist/cjs/helpers/getShorthandValue.native.js
|
|
8841
|
+
var require_getShorthandValue_native = __commonJS({
|
|
8842
|
+
"../web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
8843
|
+
"use strict";
|
|
8844
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
8845
|
+
for (var name in all) __defProp2(target, name, {
|
|
8846
|
+
get: all[name],
|
|
8847
|
+
enumerable: !0
|
|
8848
|
+
});
|
|
8849
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
8850
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
8851
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
8852
|
+
for (var _loop = function() {
|
|
8853
|
+
var key = _step.value;
|
|
8854
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
8855
|
+
get: function() {
|
|
8856
|
+
return from[key];
|
|
8857
|
+
},
|
|
8858
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
8859
|
+
});
|
|
8860
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
8861
|
+
} catch (err) {
|
|
8862
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
8863
|
+
} finally {
|
|
8864
|
+
try {
|
|
8865
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
8866
|
+
} finally {
|
|
8867
|
+
if (_didIteratorError)
|
|
8868
|
+
throw _iteratorError;
|
|
8869
|
+
}
|
|
8870
|
+
}
|
|
8871
|
+
return to;
|
|
8872
|
+
}, __toCommonJS2 = function(mod) {
|
|
8873
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
8874
|
+
value: !0
|
|
8875
|
+
}), mod);
|
|
8876
|
+
}, getShorthandValue_exports = {};
|
|
8877
|
+
__export2(getShorthandValue_exports, {
|
|
8878
|
+
getShorthandValue: function() {
|
|
8879
|
+
return getShorthandValue;
|
|
8880
|
+
}
|
|
8881
|
+
});
|
|
8882
|
+
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
8883
|
+
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
8884
|
+
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
8885
|
+
var _props_key;
|
|
8886
|
+
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
8887
|
+
};
|
|
8888
|
+
}
|
|
8889
|
+
});
|
|
8890
|
+
|
|
8889
8891
|
// ../web/dist/cjs/helpers/getExpandedShorthands.native.js
|
|
8890
8892
|
var require_getExpandedShorthands_native = __commonJS({
|
|
8891
8893
|
"../web/dist/cjs/helpers/getExpandedShorthands.native.js"(exports2, module2) {
|