@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/native.js
CHANGED
|
@@ -1888,6 +1888,9 @@ var require_useMedia_native = __commonJS({
|
|
|
1888
1888
|
getMediaImportanceIfMoreImportant: function() {
|
|
1889
1889
|
return getMediaImportanceIfMoreImportant;
|
|
1890
1890
|
},
|
|
1891
|
+
getMediaKey: function() {
|
|
1892
|
+
return getMediaKey;
|
|
1893
|
+
},
|
|
1891
1894
|
getMediaKeyImportance: function() {
|
|
1892
1895
|
return getMediaKeyImportance;
|
|
1893
1896
|
},
|
|
@@ -1941,12 +1944,12 @@ var require_useMedia_native = __commonJS({
|
|
|
1941
1944
|
), mediaQueryConfig2 = {}, getMedia2 = function() {
|
|
1942
1945
|
return mediaState2;
|
|
1943
1946
|
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
1947
|
+
return key[0] !== "$" ? !1 : !!(mediaKeys.has(key) || mediaKeyRegex.test(key));
|
|
1948
|
+
}, getMediaKey = function(key) {
|
|
1949
|
+
if (key[0] !== "$") return !1;
|
|
1944
1950
|
if (mediaKeys.has(key)) return !0;
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
if (match) return match[1];
|
|
1948
|
-
}
|
|
1949
|
-
return !1;
|
|
1951
|
+
var match = key.match(mediaKeyRegex);
|
|
1952
|
+
return match ? match[1] : !1;
|
|
1950
1953
|
}, initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = function(key) {
|
|
1951
1954
|
if (process.env.NODE_ENV === "development" && key[0] === "$") throw new Error("use short key");
|
|
1952
1955
|
var conf = (0, import_config.getConfig)();
|
|
@@ -2480,6 +2483,87 @@ var require_isDevTools_native = __commonJS({
|
|
|
2480
2483
|
}
|
|
2481
2484
|
});
|
|
2482
2485
|
|
|
2486
|
+
// ../web/dist/cjs/helpers/mergeProps.native.js
|
|
2487
|
+
var require_mergeProps_native = __commonJS({
|
|
2488
|
+
"../web/dist/cjs/helpers/mergeProps.native.js"(exports2, module2) {
|
|
2489
|
+
"use strict";
|
|
2490
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2491
|
+
for (var name in all) __defProp2(target, name, {
|
|
2492
|
+
get: all[name],
|
|
2493
|
+
enumerable: !0
|
|
2494
|
+
});
|
|
2495
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2496
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2497
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2498
|
+
for (var _loop = function() {
|
|
2499
|
+
var key = _step.value;
|
|
2500
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2501
|
+
get: function() {
|
|
2502
|
+
return from[key];
|
|
2503
|
+
},
|
|
2504
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2505
|
+
});
|
|
2506
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2507
|
+
} catch (err) {
|
|
2508
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2509
|
+
} finally {
|
|
2510
|
+
try {
|
|
2511
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2512
|
+
} finally {
|
|
2513
|
+
if (_didIteratorError)
|
|
2514
|
+
throw _iteratorError;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
return to;
|
|
2518
|
+
}, __toCommonJS2 = function(mod) {
|
|
2519
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2520
|
+
value: !0
|
|
2521
|
+
}), mod);
|
|
2522
|
+
}, mergeProps_exports = {};
|
|
2523
|
+
__export2(mergeProps_exports, {
|
|
2524
|
+
mergeComponentProps: function() {
|
|
2525
|
+
return mergeComponentProps;
|
|
2526
|
+
},
|
|
2527
|
+
mergeProps: function() {
|
|
2528
|
+
return mergeProps;
|
|
2529
|
+
}
|
|
2530
|
+
});
|
|
2531
|
+
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
2532
|
+
var import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = function(defaultProps, props) {
|
|
2533
|
+
var out = {};
|
|
2534
|
+
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
2535
|
+
for (var key1 in props) mergeProp(out, defaultProps, props, key1);
|
|
2536
|
+
return out;
|
|
2537
|
+
}, mergeComponentProps = function(defaultProps, contextProps, props) {
|
|
2538
|
+
var overriddenContext = null;
|
|
2539
|
+
if (!defaultProps && !contextProps) return [
|
|
2540
|
+
props,
|
|
2541
|
+
overriddenContext
|
|
2542
|
+
];
|
|
2543
|
+
if (defaultProps && !contextProps) return [
|
|
2544
|
+
mergeProps(defaultProps, props),
|
|
2545
|
+
overriddenContext
|
|
2546
|
+
];
|
|
2547
|
+
var out = {};
|
|
2548
|
+
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
2549
|
+
for (var key1 in contextProps) key1 in props || (out[key1] = contextProps[key1]);
|
|
2550
|
+
for (var key2 in props) mergeProp(out, defaultProps, props, key2), contextProps && key2 in contextProps && (overriddenContext || (overriddenContext = {}), overriddenContext[key2] = props[key2]);
|
|
2551
|
+
return [
|
|
2552
|
+
out,
|
|
2553
|
+
overriddenContext
|
|
2554
|
+
];
|
|
2555
|
+
};
|
|
2556
|
+
function mergeProp(out, defaultProps, props, key) {
|
|
2557
|
+
var val = props[key];
|
|
2558
|
+
if (defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && val && typeof val == "object") {
|
|
2559
|
+
var defaultVal = defaultProps[key];
|
|
2560
|
+
defaultVal && typeof defaultVal == "object" && (val = mergeProps(defaultVal, val));
|
|
2561
|
+
}
|
|
2562
|
+
out[key] = val;
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
});
|
|
2566
|
+
|
|
2483
2567
|
// ../web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
2484
2568
|
var require_objectIdentityKey_native = __commonJS({
|
|
2485
2569
|
"../web/dist/cjs/helpers/objectIdentityKey.native.js"(exports2, module2) {
|
|
@@ -2596,7 +2680,7 @@ var require_createStyledContext_native = __commonJS({
|
|
|
2596
2680
|
}
|
|
2597
2681
|
});
|
|
2598
2682
|
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
2599
|
-
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"];
|
|
2683
|
+
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"];
|
|
2600
2684
|
function createStyledContext(defaultValues) {
|
|
2601
2685
|
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);
|
|
2602
2686
|
function getOrCreateScopedContext(scope) {
|
|
@@ -2606,18 +2690,20 @@ var require_createStyledContext_native = __commonJS({
|
|
|
2606
2690
|
var getNamespacedScope = function(scope) {
|
|
2607
2691
|
return namespace ? `${namespace}--${scope}` : scope;
|
|
2608
2692
|
}, Provider = function(param) {
|
|
2609
|
-
var {
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2693
|
+
var {
|
|
2694
|
+
children,
|
|
2695
|
+
scope: scopeIn,
|
|
2696
|
+
// performance: avoid creating objects
|
|
2697
|
+
__disableMergeDefaultValues,
|
|
2698
|
+
...values
|
|
2699
|
+
} = param, scope = getNamespacedScope(scopeIn), next = import_react3.default.useMemo(function() {
|
|
2700
|
+
return __disableMergeDefaultValues ? values : (0, import_mergeProps.mergeProps)(defaultValues, values);
|
|
2615
2701
|
}, [
|
|
2616
2702
|
(0, import_objectIdentityKey.objectIdentityKey)(values)
|
|
2617
|
-
]),
|
|
2618
|
-
return scope && (
|
|
2703
|
+
]), ScopedProvider = OGProvider;
|
|
2704
|
+
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LastScopeInNamespace.Provider, {
|
|
2619
2705
|
value: scope,
|
|
2620
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
2706
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ScopedProvider, {
|
|
2621
2707
|
value: next,
|
|
2622
2708
|
children
|
|
2623
2709
|
})
|
|
@@ -2799,57 +2885,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
2799
2885
|
}
|
|
2800
2886
|
});
|
|
2801
2887
|
|
|
2802
|
-
// ../web/dist/cjs/helpers/getShorthandValue.native.js
|
|
2803
|
-
var require_getShorthandValue_native = __commonJS({
|
|
2804
|
-
"../web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
2805
|
-
"use strict";
|
|
2806
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2807
|
-
for (var name in all) __defProp2(target, name, {
|
|
2808
|
-
get: all[name],
|
|
2809
|
-
enumerable: !0
|
|
2810
|
-
});
|
|
2811
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
2812
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2813
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2814
|
-
for (var _loop = function() {
|
|
2815
|
-
var key = _step.value;
|
|
2816
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2817
|
-
get: function() {
|
|
2818
|
-
return from[key];
|
|
2819
|
-
},
|
|
2820
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2821
|
-
});
|
|
2822
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2823
|
-
} catch (err) {
|
|
2824
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
2825
|
-
} finally {
|
|
2826
|
-
try {
|
|
2827
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2828
|
-
} finally {
|
|
2829
|
-
if (_didIteratorError)
|
|
2830
|
-
throw _iteratorError;
|
|
2831
|
-
}
|
|
2832
|
-
}
|
|
2833
|
-
return to;
|
|
2834
|
-
}, __toCommonJS2 = function(mod) {
|
|
2835
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2836
|
-
value: !0
|
|
2837
|
-
}), mod);
|
|
2838
|
-
}, getShorthandValue_exports = {};
|
|
2839
|
-
__export2(getShorthandValue_exports, {
|
|
2840
|
-
getShorthandValue: function() {
|
|
2841
|
-
return getShorthandValue;
|
|
2842
|
-
}
|
|
2843
|
-
});
|
|
2844
|
-
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
2845
|
-
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
2846
|
-
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
2847
|
-
var _props_key;
|
|
2848
|
-
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
2849
|
-
};
|
|
2850
|
-
}
|
|
2851
|
-
});
|
|
2852
|
-
|
|
2853
2888
|
// ../web/dist/cjs/helpers/getDynamicVal.native.js
|
|
2854
2889
|
var require_getDynamicVal_native = __commonJS({
|
|
2855
2890
|
"../web/dist/cjs/helpers/getDynamicVal.native.js"(exports2, module2) {
|
|
@@ -5128,8 +5163,8 @@ var require_propMapper_native = __commonJS({
|
|
|
5128
5163
|
}
|
|
5129
5164
|
}
|
|
5130
5165
|
for (var cat in import_helpers2.tokenCategories) if (key in import_helpers2.tokenCategories[cat]) {
|
|
5131
|
-
var res = tokensParsed[cat][value];
|
|
5132
|
-
res != null
|
|
5166
|
+
var _tokensParsed_cat, res = (_tokensParsed_cat = tokensParsed[cat]) === null || _tokensParsed_cat === void 0 ? void 0 : _tokensParsed_cat[value];
|
|
5167
|
+
res != null ? (valOrVar = res, hasSet = !0) : process.env.NODE_ENV === "development" && console.warn(`[tamagui] \u26A0\uFE0F missing token ${key} in category ${cat} - ${value}`);
|
|
5133
5168
|
}
|
|
5134
5169
|
}
|
|
5135
5170
|
if (!hasSet) {
|
|
@@ -5361,8 +5396,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5361
5396
|
return "continue";
|
|
5362
5397
|
}
|
|
5363
5398
|
if (0) var didUseKeyInit;
|
|
5364
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers2.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo
|
|
5365
|
-
if (isMediaOrPseudo &&
|
|
5399
|
+
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);
|
|
5400
|
+
if (isMediaOrPseudo && isMedia === "group") {
|
|
5366
5401
|
var parts = keyInit.split("-"), plen = parts.length;
|
|
5367
5402
|
if (
|
|
5368
5403
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -5394,7 +5429,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5394
5429
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
5395
5430
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
5396
5431
|
if ((0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
5397
|
-
var _parentStaticConfig_variants, isStyledContextProp =
|
|
5432
|
+
var _parentStaticConfig_variants, isStyledContextProp = styledContext && key4 in styledContext;
|
|
5398
5433
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
5399
5434
|
viewProps[key4] = val2;
|
|
5400
5435
|
return;
|
|
@@ -5408,7 +5443,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5408
5443
|
mergeStyle(styleState, key4, val2, 1);
|
|
5409
5444
|
return;
|
|
5410
5445
|
}
|
|
5411
|
-
if (isPseudo = key4 in import_helpers2.validPseudoKeys, isMedia =
|
|
5446
|
+
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)) {
|
|
5412
5447
|
var _props_key;
|
|
5413
5448
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
5414
5449
|
}
|
|
@@ -5672,7 +5707,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5672
5707
|
...theme
|
|
5673
5708
|
}
|
|
5674
5709
|
}));
|
|
5675
|
-
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
5710
|
+
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
5676
5711
|
for (var keyOg in props) _loop(keyOg);
|
|
5677
5712
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
5678
5713
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
@@ -5895,80 +5930,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5895
5930
|
}
|
|
5896
5931
|
});
|
|
5897
5932
|
|
|
5898
|
-
// ../web/dist/cjs/helpers/mergeProps.native.js
|
|
5899
|
-
var require_mergeProps_native = __commonJS({
|
|
5900
|
-
"../web/dist/cjs/helpers/mergeProps.native.js"(exports2, module2) {
|
|
5901
|
-
"use strict";
|
|
5902
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
5903
|
-
for (var name in all) __defProp2(target, name, {
|
|
5904
|
-
get: all[name],
|
|
5905
|
-
enumerable: !0
|
|
5906
|
-
});
|
|
5907
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
5908
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
5909
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
5910
|
-
for (var _loop = function() {
|
|
5911
|
-
var key = _step.value;
|
|
5912
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
5913
|
-
get: function() {
|
|
5914
|
-
return from[key];
|
|
5915
|
-
},
|
|
5916
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
5917
|
-
});
|
|
5918
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
5919
|
-
} catch (err) {
|
|
5920
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
5921
|
-
} finally {
|
|
5922
|
-
try {
|
|
5923
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
5924
|
-
} finally {
|
|
5925
|
-
if (_didIteratorError)
|
|
5926
|
-
throw _iteratorError;
|
|
5927
|
-
}
|
|
5928
|
-
}
|
|
5929
|
-
return to;
|
|
5930
|
-
}, __toCommonJS2 = function(mod) {
|
|
5931
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
5932
|
-
value: !0
|
|
5933
|
-
}), mod);
|
|
5934
|
-
}, mergeProps_exports = {};
|
|
5935
|
-
__export2(mergeProps_exports, {
|
|
5936
|
-
mergeProps: function() {
|
|
5937
|
-
return mergeProps;
|
|
5938
|
-
}
|
|
5939
|
-
});
|
|
5940
|
-
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
5941
|
-
var import_useMedia = require_useMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = function(a, b, inverseShorthands) {
|
|
5942
|
-
var out = {};
|
|
5943
|
-
for (var key in a) mergeProp(out, a, b, key, inverseShorthands);
|
|
5944
|
-
if (b) for (var key1 in b) mergeProp(out, b, void 0, key1, inverseShorthands);
|
|
5945
|
-
if (b && Object.keys(b).length > 0) {
|
|
5946
|
-
var hasPropsNeedingReorder = Object.keys(b).some(function(key4) {
|
|
5947
|
-
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && a && key4 in a && key4 in out;
|
|
5948
|
-
});
|
|
5949
|
-
if (hasPropsNeedingReorder) {
|
|
5950
|
-
var reordered = {};
|
|
5951
|
-
for (var key2 in b) (key2 in import_pseudoDescriptors.pseudoDescriptors || key2 === "variant") && key2 in out && (reordered[key2] = out[key2]);
|
|
5952
|
-
for (var key3 in out) key3 in reordered || (reordered[key3] = out[key3]);
|
|
5953
|
-
return reordered;
|
|
5954
|
-
}
|
|
5955
|
-
}
|
|
5956
|
-
return out;
|
|
5957
|
-
};
|
|
5958
|
-
function mergeProp(out, a, b, key, inverseShorthands) {
|
|
5959
|
-
var longhand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null, val = a[key];
|
|
5960
|
-
if (key in import_pseudoDescriptors.pseudoDescriptors || import_useMedia.mediaKeys.has(key)) {
|
|
5961
|
-
out[key] = {
|
|
5962
|
-
...out[key],
|
|
5963
|
-
...val
|
|
5964
|
-
};
|
|
5965
|
-
return;
|
|
5966
|
-
}
|
|
5967
|
-
b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
|
|
5968
|
-
}
|
|
5969
|
-
}
|
|
5970
|
-
});
|
|
5971
|
-
|
|
5972
5933
|
// ../web/dist/cjs/helpers/setElementProps.native.js
|
|
5973
5934
|
var require_setElementProps_native = __commonJS({
|
|
5974
5935
|
"../web/dist/cjs/helpers/setElementProps.native.js"(exports2, module2) {
|
|
@@ -7430,7 +7391,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7430
7391
|
}
|
|
7431
7392
|
});
|
|
7432
7393
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7433
|
-
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(),
|
|
7394
|
+
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(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set([
|
|
7434
7395
|
"hover",
|
|
7435
7396
|
"press",
|
|
7436
7397
|
"pressIn",
|
|
@@ -7480,28 +7441,15 @@ var require_createComponent_native = __commonJS({
|
|
|
7480
7441
|
var _propsIn_datatestrenders, _current, _;
|
|
7481
7442
|
(_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
|
|
7482
7443
|
}
|
|
7483
|
-
var
|
|
7484
|
-
if (context && (contextValue = import_react3.default.useContext(context), contextValue)) {
|
|
7485
|
-
process.env.NODE_ENV === "development" && (propsIn == null ? void 0 : propsIn.debug) === "verbose" && (0, import_log.log)(" \u{1F447} contextValue", contextValue);
|
|
7486
|
-
for (var key in context.props) {
|
|
7487
|
-
var propVal = (0, import_getShorthandValue.getShorthandValue)(propsIn, key);
|
|
7488
|
-
if (propVal === void 0) {
|
|
7489
|
-
var val = contextValue == null ? void 0 : contextValue[key];
|
|
7490
|
-
val !== void 0 && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = val);
|
|
7491
|
-
}
|
|
7492
|
-
var finalVal = propVal ?? (defaultProps == null ? void 0 : defaultProps[key]);
|
|
7493
|
-
finalVal !== void 0 && (overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = finalVal);
|
|
7494
|
-
}
|
|
7495
|
-
}
|
|
7496
|
-
var debugProp = propsIn.debug;
|
|
7444
|
+
var { context, isReactNative } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null;
|
|
7497
7445
|
if (0)
|
|
7498
7446
|
var timer;
|
|
7499
7447
|
process.env.NODE_ENV === "development" && time2 && time2`non-tamagui time (ignore)`;
|
|
7500
|
-
var
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7448
|
+
var props = propsIn;
|
|
7449
|
+
if (styledContextValue || defaultProps) {
|
|
7450
|
+
var [nextProps, overrides] = (0, import_mergeProps.mergeComponentProps)(defaultProps, styledContextValue, propsIn);
|
|
7451
|
+
nextProps && (props = nextProps), overriddenContextProps = overrides;
|
|
7452
|
+
}
|
|
7505
7453
|
var componentName2 = props.componentName || staticConfig.componentName;
|
|
7506
7454
|
process.env.NODE_ENV === "development" && import_constants.isClient && import_react3.default.useEffect(function() {
|
|
7507
7455
|
var node, overlay = null, remove = function() {
|
|
@@ -7596,13 +7544,13 @@ var require_createComponent_native = __commonJS({
|
|
|
7596
7544
|
else {
|
|
7597
7545
|
console.groupEnd();
|
|
7598
7546
|
var ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
|
|
7599
|
-
childLog.length && (childLog = `(children: ${childLog})`), console.groupCollapsed(`${childLog} [inspect props, state, context \u{1F447}]`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({
|
|
7547
|
+
childLog.length && (childLog = `(children: ${childLog})`), console.groupCollapsed(`${childLog} [inspect props, state, context \u{1F447}]`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props, Object.keys(props)), (0, import_log.log)({
|
|
7600
7548
|
state,
|
|
7601
7549
|
staticConfig,
|
|
7602
7550
|
elementType,
|
|
7603
7551
|
themeStateProps
|
|
7604
7552
|
}), (0, import_log.log)({
|
|
7605
|
-
|
|
7553
|
+
context,
|
|
7606
7554
|
overriddenContextProps,
|
|
7607
7555
|
componentContext
|
|
7608
7556
|
}), (0, import_log.log)({
|
|
@@ -7629,7 +7577,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7629
7577
|
isExiting,
|
|
7630
7578
|
isAnimated,
|
|
7631
7579
|
willBeAnimated,
|
|
7632
|
-
|
|
7580
|
+
styledContext: styledContextValue
|
|
7633
7581
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
7634
7582
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
7635
7583
|
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), isPassthrough = !splitStyles, groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
@@ -7944,17 +7892,18 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7944
7892
|
children: content
|
|
7945
7893
|
})), process.env.NODE_ENV === "development" && time2 && time2`group-context`, content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time2 && time2`themed-children`, staticConfig.context) {
|
|
7946
7894
|
var contextProps = staticConfig.context.props;
|
|
7947
|
-
for (var
|
|
7895
|
+
for (var key in contextProps) if (viewProps.style && key in viewProps.style || key in viewProps) {
|
|
7948
7896
|
var _viewProps_style;
|
|
7949
7897
|
overriddenContextProps || (overriddenContextProps = {});
|
|
7950
7898
|
var _viewProps_style_key;
|
|
7951
|
-
overriddenContextProps[
|
|
7899
|
+
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];
|
|
7952
7900
|
}
|
|
7953
7901
|
}
|
|
7954
7902
|
if (overriddenContextProps) {
|
|
7955
7903
|
var Provider = staticConfig.context.Provider;
|
|
7904
|
+
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
7956
7905
|
content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Provider, {
|
|
7957
|
-
|
|
7906
|
+
__disableMergeDefaultValues: !0,
|
|
7958
7907
|
...overriddenContextProps,
|
|
7959
7908
|
children: content
|
|
7960
7909
|
});
|
|
@@ -9443,6 +9392,57 @@ var require_withStableStyle_native = __commonJS({
|
|
|
9443
9392
|
}
|
|
9444
9393
|
});
|
|
9445
9394
|
|
|
9395
|
+
// ../web/dist/cjs/helpers/getShorthandValue.native.js
|
|
9396
|
+
var require_getShorthandValue_native = __commonJS({
|
|
9397
|
+
"../web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
9398
|
+
"use strict";
|
|
9399
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
9400
|
+
for (var name in all) __defProp2(target, name, {
|
|
9401
|
+
get: all[name],
|
|
9402
|
+
enumerable: !0
|
|
9403
|
+
});
|
|
9404
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
9405
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
9406
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
9407
|
+
for (var _loop = function() {
|
|
9408
|
+
var key = _step.value;
|
|
9409
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
9410
|
+
get: function() {
|
|
9411
|
+
return from[key];
|
|
9412
|
+
},
|
|
9413
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
9414
|
+
});
|
|
9415
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
9416
|
+
} catch (err) {
|
|
9417
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
9418
|
+
} finally {
|
|
9419
|
+
try {
|
|
9420
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
9421
|
+
} finally {
|
|
9422
|
+
if (_didIteratorError)
|
|
9423
|
+
throw _iteratorError;
|
|
9424
|
+
}
|
|
9425
|
+
}
|
|
9426
|
+
return to;
|
|
9427
|
+
}, __toCommonJS2 = function(mod) {
|
|
9428
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
9429
|
+
value: !0
|
|
9430
|
+
}), mod);
|
|
9431
|
+
}, getShorthandValue_exports = {};
|
|
9432
|
+
__export2(getShorthandValue_exports, {
|
|
9433
|
+
getShorthandValue: function() {
|
|
9434
|
+
return getShorthandValue;
|
|
9435
|
+
}
|
|
9436
|
+
});
|
|
9437
|
+
module2.exports = __toCommonJS2(getShorthandValue_exports);
|
|
9438
|
+
var import_config = require_config_native(), inverseShorthands = null, getShorthandValue = function(props, key) {
|
|
9439
|
+
inverseShorthands || (inverseShorthands = (0, import_config.getConfig)().inverseShorthands);
|
|
9440
|
+
var _props_key;
|
|
9441
|
+
return (_props_key = props[key]) !== null && _props_key !== void 0 ? _props_key : inverseShorthands ? props[inverseShorthands[key]] : void 0;
|
|
9442
|
+
};
|
|
9443
|
+
}
|
|
9444
|
+
});
|
|
9445
|
+
|
|
9446
9446
|
// ../web/dist/cjs/helpers/getExpandedShorthands.native.js
|
|
9447
9447
|
var require_getExpandedShorthands_native = __commonJS({
|
|
9448
9448
|
"../web/dist/cjs/helpers/getExpandedShorthands.native.js"(exports2, module2) {
|