@tamagui/core 1.129.3 → 1.129.5-1751174117974
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 +204 -147
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +185 -128
- package/dist/test.native.js.map +3 -3
- package/package.json +14 -8
package/dist/native.js
CHANGED
|
@@ -2091,7 +2091,7 @@ var require_useMedia_native = __commonJS({
|
|
|
2091
2091
|
};
|
|
2092
2092
|
}
|
|
2093
2093
|
function useMedia2(cc, debug) {
|
|
2094
|
-
var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)();
|
|
2094
|
+
var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)(null);
|
|
2095
2095
|
internalRef.current || (internalRef.current = {
|
|
2096
2096
|
keys: /* @__PURE__ */ new Set()
|
|
2097
2097
|
});
|
|
@@ -2763,57 +2763,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
2763
2763
|
}
|
|
2764
2764
|
});
|
|
2765
2765
|
|
|
2766
|
-
// ../web/dist/cjs/helpers/consoleLog.native.js
|
|
2767
|
-
var require_consoleLog_native = __commonJS({
|
|
2768
|
-
"../web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
|
|
2769
|
-
"use strict";
|
|
2770
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2771
|
-
for (var name in all) __defProp2(target, name, {
|
|
2772
|
-
get: all[name],
|
|
2773
|
-
enumerable: !0
|
|
2774
|
-
});
|
|
2775
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
2776
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2777
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2778
|
-
for (var _loop = function() {
|
|
2779
|
-
var key = _step.value;
|
|
2780
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2781
|
-
get: function() {
|
|
2782
|
-
return from[key];
|
|
2783
|
-
},
|
|
2784
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2785
|
-
});
|
|
2786
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2787
|
-
} catch (err) {
|
|
2788
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
2789
|
-
} finally {
|
|
2790
|
-
try {
|
|
2791
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2792
|
-
} finally {
|
|
2793
|
-
if (_didIteratorError)
|
|
2794
|
-
throw _iteratorError;
|
|
2795
|
-
}
|
|
2796
|
-
}
|
|
2797
|
-
return to;
|
|
2798
|
-
}, __toCommonJS2 = function(mod) {
|
|
2799
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2800
|
-
value: !0
|
|
2801
|
-
}), mod);
|
|
2802
|
-
}, consoleLog_native_exports = {};
|
|
2803
|
-
__export2(consoleLog_native_exports, {
|
|
2804
|
-
groupCollapsed: function() {
|
|
2805
|
-
return groupCollapsed;
|
|
2806
|
-
},
|
|
2807
|
-
groupEnd: function() {
|
|
2808
|
-
return groupEnd;
|
|
2809
|
-
}
|
|
2810
|
-
});
|
|
2811
|
-
module2.exports = __toCommonJS2(consoleLog_native_exports);
|
|
2812
|
-
var groupEnd = function() {
|
|
2813
|
-
}, groupCollapsed = console.info;
|
|
2814
|
-
}
|
|
2815
|
-
});
|
|
2816
|
-
|
|
2817
2766
|
// ../web/dist/cjs/helpers/getShorthandValue.native.js
|
|
2818
2767
|
var require_getShorthandValue_native = __commonJS({
|
|
2819
2768
|
"../web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
@@ -5346,7 +5295,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5346
5295
|
}
|
|
5347
5296
|
});
|
|
5348
5297
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
5349
|
-
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(),
|
|
5298
|
+
var import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
|
|
5350
5299
|
function isValidStyleKey(key, validStyles2, accept) {
|
|
5351
5300
|
return key in validStyles2 ? !0 : accept && key in accept;
|
|
5352
5301
|
}
|
|
@@ -5359,7 +5308,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5359
5308
|
var accepted = accept[keyInit];
|
|
5360
5309
|
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass), "continue";
|
|
5361
5310
|
}
|
|
5362
|
-
if (process.env.NODE_ENV
|
|
5311
|
+
if (process.env.NODE_ENV, disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
|
|
5363
5312
|
if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
|
|
5364
5313
|
if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
|
|
5365
5314
|
return "continue";
|
|
@@ -5391,7 +5340,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5391
5340
|
if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
|
|
5392
5341
|
var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
|
|
5393
5342
|
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
5394
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
5343
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` \u{1F511} ${keyOg2}${keyInit !== keyOg2 ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
|
|
5395
5344
|
isVariant,
|
|
5396
5345
|
valInit,
|
|
5397
5346
|
shouldPassProp
|
|
@@ -5410,7 +5359,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5410
5359
|
viewProps[key4] = val2;
|
|
5411
5360
|
return;
|
|
5412
5361
|
}
|
|
5413
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
5362
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(" \u{1F4A0} expanded", keyInit, "=>", key4), (0, import_log.log)(val2), console.groupEnd()), val2 != null && !(key4 in usedKeys)) {
|
|
5414
5363
|
if (key4 === "pointerEvents") {
|
|
5415
5364
|
viewProps[key4] = val2;
|
|
5416
5365
|
return;
|
|
@@ -5425,12 +5374,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5425
5374
|
}
|
|
5426
5375
|
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
5427
5376
|
if (shouldPassThrough2) {
|
|
5428
|
-
passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
5377
|
+
passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(` - passing down prop ${key4}`), (0, import_log.log)({
|
|
5429
5378
|
val: val2,
|
|
5430
5379
|
after: {
|
|
5431
5380
|
...viewProps[key4]
|
|
5432
5381
|
}
|
|
5433
|
-
}),
|
|
5382
|
+
}), console.groupEnd());
|
|
5434
5383
|
return;
|
|
5435
5384
|
}
|
|
5436
5385
|
if (isPseudo) {
|
|
@@ -5466,14 +5415,14 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5466
5415
|
}
|
|
5467
5416
|
if (!shouldDoClasses || isExit || isEnter) {
|
|
5468
5417
|
var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
|
|
5469
|
-
isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
5418
|
+
isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed("pseudo", key4, {
|
|
5470
5419
|
isDisabled
|
|
5471
5420
|
}), (0, import_log.log)({
|
|
5472
5421
|
pseudoStyleObject,
|
|
5473
5422
|
isDisabled,
|
|
5474
5423
|
descriptor,
|
|
5475
5424
|
componentState
|
|
5476
|
-
}),
|
|
5425
|
+
}), console.groupEnd());
|
|
5477
5426
|
var importance = descriptor.priority;
|
|
5478
5427
|
for (var pkey in pseudoStyleObject) {
|
|
5479
5428
|
var _$val = pseudoStyleObject[pkey];
|
|
@@ -5625,13 +5574,13 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5625
5574
|
});
|
|
5626
5575
|
} catch {
|
|
5627
5576
|
}
|
|
5628
|
-
|
|
5577
|
+
console.groupEnd();
|
|
5629
5578
|
}
|
|
5630
5579
|
};
|
|
5631
5580
|
conf = conf || (0, import_config.getConfig)();
|
|
5632
5581
|
var animationDriver = (componentContext == null ? void 0 : componentContext.animationDriver) || conf.animations;
|
|
5633
5582
|
import_constants2.isWeb && styleProps.isAnimated && animationDriver.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
5634
|
-
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants2.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles2 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers2.stylePropsText : import_helpers2.validStyles);
|
|
5583
|
+
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants2.isWeb && !styleProps.noClass && !styleProps.isAnimated, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles2 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers2.stylePropsText : import_helpers2.validStyles);
|
|
5635
5584
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-setup`;
|
|
5636
5585
|
var styleState = {
|
|
5637
5586
|
classNames,
|
|
@@ -5655,7 +5604,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5655
5604
|
}
|
|
5656
5605
|
}));
|
|
5657
5606
|
}
|
|
5658
|
-
process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && (
|
|
5607
|
+
process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants2.isClient && (console.groupCollapsed("getSplitStyles (collapsed)"), (0, import_log.log)({
|
|
5659
5608
|
props,
|
|
5660
5609
|
staticConfig,
|
|
5661
5610
|
shouldDoClasses,
|
|
@@ -5666,7 +5615,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5666
5615
|
theme: {
|
|
5667
5616
|
...theme
|
|
5668
5617
|
}
|
|
5669
|
-
}),
|
|
5618
|
+
}), console.groupEnd());
|
|
5670
5619
|
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
5671
5620
|
for (var keyOg in props) _loop(keyOg);
|
|
5672
5621
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
@@ -5738,7 +5687,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5738
5687
|
var style2 = styleState.style;
|
|
5739
5688
|
if (0) {
|
|
5740
5689
|
var _staticConfig_defaultProps, fontFamily, fontFamilyClassName, groupClassName, componentNameFinal, componentClassName, classList, finalClassName;
|
|
5741
|
-
if (!
|
|
5690
|
+
if (!styleProps.isAnimated && isReactNative) {
|
|
5742
5691
|
var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
|
|
5743
5692
|
try {
|
|
5744
5693
|
for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name;
|
|
@@ -5749,7 +5698,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5749
5698
|
} else style2 && (viewProps.style = style2);
|
|
5750
5699
|
}
|
|
5751
5700
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
|
|
5752
|
-
|
|
5701
|
+
console.groupCollapsed("\u{1F539} getSplitStyles ===>");
|
|
5753
5702
|
try {
|
|
5754
5703
|
var logs = {
|
|
5755
5704
|
...result,
|
|
@@ -5762,7 +5711,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5762
5711
|
for (var key3 in logs) (0, import_log.log)(key3, logs[key3]);
|
|
5763
5712
|
} catch {
|
|
5764
5713
|
}
|
|
5765
|
-
|
|
5714
|
+
console.groupEnd();
|
|
5766
5715
|
}
|
|
5767
5716
|
return process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-done`, result;
|
|
5768
5717
|
};
|
|
@@ -5820,7 +5769,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5820
5769
|
return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
|
|
5821
5770
|
}, useInsertEffectCompat = import_constants2.isWeb ? import_react3.default.useInsertionEffect || import_constants2.useIsomorphicLayoutEffect : function() {
|
|
5822
5771
|
}, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k) {
|
|
5823
|
-
conf = conf || (0, import_config.getConfig)();
|
|
5824
5772
|
var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k);
|
|
5825
5773
|
return res;
|
|
5826
5774
|
};
|
|
@@ -6008,9 +5956,9 @@ var require_setElementProps_native = __commonJS({
|
|
|
6008
5956
|
}
|
|
6009
5957
|
});
|
|
6010
5958
|
|
|
6011
|
-
// ../web/dist/cjs/helpers/
|
|
6012
|
-
var
|
|
6013
|
-
"../web/dist/cjs/helpers/
|
|
5959
|
+
// ../web/dist/cjs/helpers/useCreateShallowSetState.native.js
|
|
5960
|
+
var require_useCreateShallowSetState_native = __commonJS({
|
|
5961
|
+
"../web/dist/cjs/helpers/useCreateShallowSetState.native.js"(exports2, module2) {
|
|
6014
5962
|
"use strict";
|
|
6015
5963
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6016
5964
|
for (var name in all) __defProp2(target, name, {
|
|
@@ -6044,43 +5992,31 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6044
5992
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6045
5993
|
value: !0
|
|
6046
5994
|
}), mod);
|
|
6047
|
-
},
|
|
6048
|
-
__export2(
|
|
6049
|
-
createShallowSetState: function() {
|
|
6050
|
-
return createShallowSetState;
|
|
6051
|
-
},
|
|
5995
|
+
}, useCreateShallowSetState_exports = {};
|
|
5996
|
+
__export2(useCreateShallowSetState_exports, {
|
|
6052
5997
|
isEqualShallow: function() {
|
|
6053
5998
|
return isEqualShallow2;
|
|
6054
5999
|
},
|
|
6055
6000
|
mergeIfNotShallowEqual: function() {
|
|
6056
6001
|
return mergeIfNotShallowEqual;
|
|
6002
|
+
},
|
|
6003
|
+
useCreateShallowSetState: function() {
|
|
6004
|
+
return useCreateShallowSetState;
|
|
6057
6005
|
}
|
|
6058
6006
|
});
|
|
6059
|
-
module2.exports = __toCommonJS2(
|
|
6060
|
-
var import_react3 = require("react")
|
|
6061
|
-
|
|
6062
|
-
};
|
|
6063
|
-
function createShallowSetState(setter, onlyAllow, transition, debugIn) {
|
|
6007
|
+
module2.exports = __toCommonJS2(useCreateShallowSetState_exports);
|
|
6008
|
+
var import_react3 = require("react");
|
|
6009
|
+
function useCreateShallowSetState(setter, debugIn) {
|
|
6064
6010
|
return (0, import_react3.useCallback)(function(next) {
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
setter(function(prev) {
|
|
6068
|
-
return mergeIfNotShallowEqual(prev, next, onlyAllow, debugIn);
|
|
6069
|
-
});
|
|
6011
|
+
setter(function(prev) {
|
|
6012
|
+
return mergeIfNotShallowEqual(prev, next, debugIn);
|
|
6070
6013
|
});
|
|
6071
6014
|
}, [
|
|
6072
6015
|
setter,
|
|
6073
|
-
onlyAllow ? onlyAllow.join("") : "",
|
|
6074
|
-
transition,
|
|
6075
6016
|
debugIn
|
|
6076
6017
|
]);
|
|
6077
6018
|
}
|
|
6078
|
-
function mergeIfNotShallowEqual(prev, next,
|
|
6079
|
-
if (onlyAllow) {
|
|
6080
|
-
var allowed = {};
|
|
6081
|
-
for (var key in next) onlyAllow.includes(key) && (allowed[key] = next[key]);
|
|
6082
|
-
next = allowed;
|
|
6083
|
-
}
|
|
6019
|
+
function mergeIfNotShallowEqual(prev, next, debug) {
|
|
6084
6020
|
if (!prev || !next || isEqualShallow2(prev, next)) return prev || next;
|
|
6085
6021
|
if (process.env.NODE_ENV === "development" && debug && (console.info("setStateShallow CHANGE", {
|
|
6086
6022
|
prev,
|
|
@@ -6141,7 +6077,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6141
6077
|
}
|
|
6142
6078
|
});
|
|
6143
6079
|
module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
|
|
6144
|
-
var import_useMedia = require_useMedia_native(),
|
|
6080
|
+
var import_useMedia = require_useMedia_native(), import_useCreateShallowSetState = require_useCreateShallowSetState_native(), subscribeToContextGroup = function(param) {
|
|
6145
6081
|
var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
|
|
6146
6082
|
if (pseudoGroups || mediaGroups) {
|
|
6147
6083
|
var _componentContext_groups_subscribe, _componentContext_groups;
|
|
@@ -6152,7 +6088,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6152
6088
|
};
|
|
6153
6089
|
if (pseudo && pseudoGroups != null && pseudoGroups.has(String(name))) Object.assign(current.pseudo, pseudo), persist();
|
|
6154
6090
|
else if (layout && mediaGroups) {
|
|
6155
|
-
var mediaState2 = (0, import_useMedia.getMediaState)(mediaGroups, layout), next = (0,
|
|
6091
|
+
var mediaState2 = (0, import_useMedia.getMediaState)(mediaGroups, layout), next = (0, import_useCreateShallowSetState.mergeIfNotShallowEqual)(current.media || {}, mediaState2);
|
|
6156
6092
|
next !== current.media && (Object.assign(current.media, next), persist());
|
|
6157
6093
|
}
|
|
6158
6094
|
function persist() {
|
|
@@ -6984,6 +6920,62 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
6984
6920
|
}
|
|
6985
6921
|
});
|
|
6986
6922
|
|
|
6923
|
+
// ../use-did-finish-ssr/dist/cjs/ClientOnly.native.js
|
|
6924
|
+
var require_ClientOnly_native = __commonJS({
|
|
6925
|
+
"../use-did-finish-ssr/dist/cjs/ClientOnly.native.js"(exports2, module2) {
|
|
6926
|
+
"use strict";
|
|
6927
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6928
|
+
for (var name in all) __defProp2(target, name, {
|
|
6929
|
+
get: all[name],
|
|
6930
|
+
enumerable: !0
|
|
6931
|
+
});
|
|
6932
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
6933
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6934
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
6935
|
+
for (var _loop = function() {
|
|
6936
|
+
var key = _step.value;
|
|
6937
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
6938
|
+
get: function() {
|
|
6939
|
+
return from[key];
|
|
6940
|
+
},
|
|
6941
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
6942
|
+
});
|
|
6943
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
6944
|
+
} catch (err) {
|
|
6945
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
6946
|
+
} finally {
|
|
6947
|
+
try {
|
|
6948
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
6949
|
+
} finally {
|
|
6950
|
+
if (_didIteratorError)
|
|
6951
|
+
throw _iteratorError;
|
|
6952
|
+
}
|
|
6953
|
+
}
|
|
6954
|
+
return to;
|
|
6955
|
+
}, __toCommonJS2 = function(mod) {
|
|
6956
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6957
|
+
value: !0
|
|
6958
|
+
}), mod);
|
|
6959
|
+
}, ClientOnly_exports = {};
|
|
6960
|
+
__export2(ClientOnly_exports, {
|
|
6961
|
+
ClientOnly: function() {
|
|
6962
|
+
return ClientOnly2;
|
|
6963
|
+
},
|
|
6964
|
+
ClientOnlyContext: function() {
|
|
6965
|
+
return ClientOnlyContext2;
|
|
6966
|
+
}
|
|
6967
|
+
});
|
|
6968
|
+
module2.exports = __toCommonJS2(ClientOnly_exports);
|
|
6969
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
|
|
6970
|
+
var { children } = param;
|
|
6971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClientOnlyContext2.Provider, {
|
|
6972
|
+
value: !0,
|
|
6973
|
+
children
|
|
6974
|
+
});
|
|
6975
|
+
};
|
|
6976
|
+
}
|
|
6977
|
+
});
|
|
6978
|
+
|
|
6987
6979
|
// ../use-did-finish-ssr/dist/cjs/index.native.js
|
|
6988
6980
|
var require_index_native6 = __commonJS({
|
|
6989
6981
|
"../use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -7034,16 +7026,28 @@ var require_index_native6 = __commonJS({
|
|
|
7034
7026
|
}), mod);
|
|
7035
7027
|
}, index_exports2 = {};
|
|
7036
7028
|
__export2(index_exports2, {
|
|
7029
|
+
ClientOnly: function() {
|
|
7030
|
+
return import_ClientOnly2.ClientOnly;
|
|
7031
|
+
},
|
|
7032
|
+
ClientOnlyContext: function() {
|
|
7033
|
+
return import_ClientOnly2.ClientOnlyContext;
|
|
7034
|
+
},
|
|
7037
7035
|
useClientValue: function() {
|
|
7038
7036
|
return useClientValue;
|
|
7039
7037
|
},
|
|
7040
7038
|
useDidFinishSSR: function() {
|
|
7041
7039
|
return useDidFinishSSR;
|
|
7040
|
+
},
|
|
7041
|
+
useIsClientOnly: function() {
|
|
7042
|
+
return useIsClientOnly;
|
|
7042
7043
|
}
|
|
7043
7044
|
});
|
|
7044
7045
|
module2.exports = __toCommonJS2(index_exports2);
|
|
7045
|
-
var React3 = __toESM2(require("react"))
|
|
7046
|
+
var React3 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native(), useIsClientOnly = function() {
|
|
7047
|
+
return React3.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7048
|
+
};
|
|
7046
7049
|
function useDidFinishSSR(value) {
|
|
7050
|
+
var clientOnly = React3.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7047
7051
|
return value ?? !0;
|
|
7048
7052
|
}
|
|
7049
7053
|
function useClientValue(value) {
|
|
@@ -7096,10 +7100,12 @@ var require_useComponentState_native = __commonJS({
|
|
|
7096
7100
|
}
|
|
7097
7101
|
});
|
|
7098
7102
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
7099
|
-
var import_constants2 = require_index_native2(), import_use_did_finish_ssr = require_index_native6(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(),
|
|
7100
|
-
var { animationDriver } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), [startedUnhydrated] = (0, import_react3.useState)(import_constants2.IS_REACT_19 ? !isHydrated : !1), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
|
|
7103
|
+
var import_constants2 = require_index_native2(), import_use_did_finish_ssr = require_index_native6(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_useCreateShallowSetState = require_useCreateShallowSetState_native(), useComponentState = function(props, param, staticConfig, config) {
|
|
7104
|
+
var { animationDriver } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(import_constants2.IS_REACT_19 ? !isHydrated : !1), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
|
|
7101
7105
|
stateRef.current || (stateRef.current = {});
|
|
7102
|
-
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current
|
|
7106
|
+
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current;
|
|
7107
|
+
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
|
|
7108
|
+
var willBeAnimatedClient = function() {
|
|
7103
7109
|
var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
|
|
7104
7110
|
return !!(next || curStateRef.hasAnimated);
|
|
7105
7111
|
}(), willBeAnimated = !import_constants2.isServer && willBeAnimatedClient;
|
|
@@ -7119,16 +7125,12 @@ var require_useComponentState_native = __commonJS({
|
|
|
7119
7125
|
...states[0],
|
|
7120
7126
|
[props.forceStyle]: !0
|
|
7121
7127
|
} : states[0], setState = states[1], isAnimated = willBeAnimated;
|
|
7122
|
-
import_constants2.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState({
|
|
7123
|
-
|
|
7128
|
+
import_constants2.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState(function(_) {
|
|
7129
|
+
return {
|
|
7130
|
+
...state
|
|
7131
|
+
};
|
|
7124
7132
|
}));
|
|
7125
|
-
var groupName = props.group, setStateShallow = (0,
|
|
7126
|
-
setState,
|
|
7127
|
-
void 0,
|
|
7128
|
-
// note: allows all state updates even when disabled for the enterStyle animation to work
|
|
7129
|
-
!1,
|
|
7130
|
-
props.debug
|
|
7131
|
-
);
|
|
7133
|
+
var groupName = props.group, setStateShallow = (0, import_useCreateShallowSetState.useCreateShallowSetState)(setState, props.debug);
|
|
7132
7134
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
7133
7135
|
process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn(`has presenceState ${JSON.stringify(presenceState)}`);
|
|
7134
7136
|
var { enterVariant, exitVariant, enterExitVariant, custom } = presenceState;
|
|
@@ -7136,7 +7138,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
7136
7138
|
var exv = exitVariant ?? enterExitVariant, env = enterVariant ?? enterExitVariant;
|
|
7137
7139
|
state.unmounted && env && staticConfig.variants[env] ? (process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn(`Animating presence ENTER "${env}"`), props[env] = !0) : isExiting && exv && (process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn(`Animating presence EXIT "${exv}"`), props[exv] = exitVariant !== enterExitVariant);
|
|
7138
7140
|
}
|
|
7139
|
-
var noClass = !import_constants2.isWeb || !!props.forceStyle;
|
|
7141
|
+
var noClass = !import_constants2.isWeb || !!props.forceStyle || isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles);
|
|
7140
7142
|
if (import_constants2.isWeb && (!import_constants2.isServer || isHydrated)) {
|
|
7141
7143
|
var isAnimatedAndHydrated = isAnimated && !supportsCSSVars, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || !state.unmounted), isDisabledManually = disableClassName && !state.unmounted;
|
|
7142
7144
|
(isAnimatedAndHydrated || isDisabledManually || isClassNameDisabled) && (noClass = !0, process.env.NODE_ENV === "development" && props.debug && (0, import_log.log)("avoiding className", {
|
|
@@ -7165,6 +7167,26 @@ var require_useComponentState_native = __commonJS({
|
|
|
7165
7167
|
}
|
|
7166
7168
|
};
|
|
7167
7169
|
}
|
|
7170
|
+
if (!curStateRef.stateEmitter && hasAnimationProp) {
|
|
7171
|
+
var listeners1 = /* @__PURE__ */ new Set();
|
|
7172
|
+
curStateRef.stateEmitter = {
|
|
7173
|
+
listeners: listeners1,
|
|
7174
|
+
emit(state2) {
|
|
7175
|
+
listeners1.forEach(function(l) {
|
|
7176
|
+
return l(state2);
|
|
7177
|
+
});
|
|
7178
|
+
},
|
|
7179
|
+
subscribe(cb) {
|
|
7180
|
+
return listeners1.add(cb), setStateShallow({
|
|
7181
|
+
hasDynGroupChildren: !0
|
|
7182
|
+
}), function() {
|
|
7183
|
+
listeners1.delete(cb), listeners1.size === 0 && setStateShallow({
|
|
7184
|
+
hasDynGroupChildren: !1
|
|
7185
|
+
});
|
|
7186
|
+
};
|
|
7187
|
+
}
|
|
7188
|
+
};
|
|
7189
|
+
}
|
|
7168
7190
|
return {
|
|
7169
7191
|
startedUnhydrated,
|
|
7170
7192
|
curStateRef,
|
|
@@ -7414,7 +7436,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7414
7436
|
}
|
|
7415
7437
|
});
|
|
7416
7438
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7417
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), 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_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(),
|
|
7439
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants2 = require_index_native2(), import_helpers2 = require_index_native3(), 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_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_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();
|
|
7418
7440
|
typeof document < "u" && (cancelTouches = function() {
|
|
7419
7441
|
componentSetStates.forEach(function(setState) {
|
|
7420
7442
|
return setState(function(prev) {
|
|
@@ -7528,10 +7550,14 @@ var require_createComponent_native = __commonJS({
|
|
|
7528
7550
|
}, [
|
|
7529
7551
|
componentName2
|
|
7530
7552
|
]);
|
|
7531
|
-
var animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, { curStateRef, disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState,
|
|
7553
|
+
var animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = (0, import_useComponentState.useComponentState)(props, componentContext, staticConfig, config), { curStateRef, disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, supportsCSSVars, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = componentState, setStateShallow = componentState.setStateShallow;
|
|
7532
7554
|
process.env.NODE_ENV === "development" && time2 && time2`use-state`;
|
|
7533
7555
|
var hasTextAncestor = !!(import_constants2.isWeb && isText && componentContext.inText), isTaggable = !Component || typeof Component == "string", tagProp = props.tag, element = import_constants2.isWeb && isTaggable && tagProp || Component, BaseTextComponent = BaseText || element || "span", BaseViewComponent = BaseView || element || (hasTextAncestor ? "span" : "div"), elementType = isText ? BaseTextComponent : BaseViewComponent;
|
|
7534
|
-
animationDriver && isAnimated &&
|
|
7556
|
+
animationDriver && isAnimated && // this should really be behind another prop as it's not really related to
|
|
7557
|
+
// "needsWebStyles" basically with motion we just animate a plain div, but
|
|
7558
|
+
// we still have animated.View/Text for Sheet which wants to control
|
|
7559
|
+
// things declaratively
|
|
7560
|
+
!animationDriver.needsWebStyles && (elementType = animationDriver[isText ? "Text" : "View"] || elementType);
|
|
7535
7561
|
var disableThemeProp = !1, disableTheme = disableThemeProp || isHOC;
|
|
7536
7562
|
process.env.NODE_ENV === "development" && time2 && time2`theme-props`, props.themeShallow && (curStateRef.themeShallow = !0);
|
|
7537
7563
|
var themeStateProps = {
|
|
@@ -7543,7 +7569,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7543
7569
|
if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
|
|
7544
7570
|
return !!stateRef.current.isListeningToTheme;
|
|
7545
7571
|
}), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
7546
|
-
var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner =
|
|
7572
|
+
var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `<${name} /> ${internalID} ${dataIs ? ` ${dataIs}` : ""} ${type.trim()}`;
|
|
7547
7573
|
if (console.info(`%c ${banner} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`, "background: green; color: white;"), import_constants2.isServer) (0, import_log.log)({
|
|
7548
7574
|
noClass,
|
|
7549
7575
|
isAnimated,
|
|
@@ -7551,9 +7577,9 @@ var require_createComponent_native = __commonJS({
|
|
|
7551
7577
|
supportsCSSVars
|
|
7552
7578
|
});
|
|
7553
7579
|
else {
|
|
7554
|
-
|
|
7580
|
+
console.groupEnd();
|
|
7555
7581
|
var ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
|
|
7556
|
-
childLog.length && (childLog = `(children: ${childLog})`),
|
|
7582
|
+
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)({
|
|
7557
7583
|
state,
|
|
7558
7584
|
staticConfig,
|
|
7559
7585
|
elementType,
|
|
@@ -7567,7 +7593,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7567
7593
|
isHOC,
|
|
7568
7594
|
hasAnimationProp,
|
|
7569
7595
|
useAnimations
|
|
7570
|
-
}),
|
|
7596
|
+
}), console.groupEnd();
|
|
7571
7597
|
}
|
|
7572
7598
|
}
|
|
7573
7599
|
process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
|
|
@@ -7585,10 +7611,30 @@ var require_createComponent_native = __commonJS({
|
|
|
7585
7611
|
isExiting,
|
|
7586
7612
|
isAnimated,
|
|
7587
7613
|
willBeAnimated,
|
|
7588
|
-
styledContextProps
|
|
7614
|
+
styledContextProps,
|
|
7615
|
+
noMergeStyle: isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles)
|
|
7589
7616
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
7590
7617
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
7591
7618
|
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
|
|
7619
|
+
if (hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders) {
|
|
7620
|
+
var styleListener = stateRef.current.useStyleListener, ogSetStateShallow = setStateShallow;
|
|
7621
|
+
setStateShallow = function(next) {
|
|
7622
|
+
var avoidReRenderKeys = /* @__PURE__ */ new Set([
|
|
7623
|
+
"hover",
|
|
7624
|
+
"press",
|
|
7625
|
+
"pressIn"
|
|
7626
|
+
]), canAvoidReRender = Object.keys(next).every(function(key3) {
|
|
7627
|
+
return avoidReRenderKeys.has(key3);
|
|
7628
|
+
});
|
|
7629
|
+
if (canAvoidReRender) {
|
|
7630
|
+
var updatedState = {
|
|
7631
|
+
...state,
|
|
7632
|
+
...next
|
|
7633
|
+
}, nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
|
|
7634
|
+
styleListener(nextStyles.style);
|
|
7635
|
+
} else ogSetStateShallow(next);
|
|
7636
|
+
};
|
|
7637
|
+
}
|
|
7592
7638
|
if (process.env.NODE_ENV === "development" && time2 && time2`split-styles`, props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
|
|
7593
7639
|
var _splitStyles;
|
|
7594
7640
|
(_splitStyles = splitStyles).style || (_splitStyles.style = {}), splitStyles.style.opacity = 0;
|
|
@@ -7627,10 +7673,15 @@ var require_createComponent_native = __commonJS({
|
|
|
7627
7673
|
(supportsCSSVars ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC
|
|
7628
7674
|
);
|
|
7629
7675
|
if (shouldUseAnimation) {
|
|
7630
|
-
var
|
|
7676
|
+
var useStyleEmitter = animationDriver != null && animationDriver.avoidReRenders ? function(listener) {
|
|
7677
|
+
stateRef.current.useStyleListener = listener;
|
|
7678
|
+
} : void 0, animations = useAnimations({
|
|
7631
7679
|
props: propsWithAnimation,
|
|
7632
7680
|
// if hydrating, send empty style
|
|
7633
7681
|
style: splitStylesStyle || {},
|
|
7682
|
+
// @ts-ignore
|
|
7683
|
+
styleState: splitStyles,
|
|
7684
|
+
useStyleEmitter,
|
|
7634
7685
|
presence,
|
|
7635
7686
|
componentState: state,
|
|
7636
7687
|
styleProps,
|
|
@@ -7639,7 +7690,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7639
7690
|
staticConfig,
|
|
7640
7691
|
stateRef
|
|
7641
7692
|
});
|
|
7642
|
-
|
|
7693
|
+
animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)), process.env.NODE_ENV === "development" && time2 && time2`animations`;
|
|
7643
7694
|
}
|
|
7644
7695
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
7645
7696
|
|
|
@@ -7673,7 +7724,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7673
7724
|
}
|
|
7674
7725
|
return styleObject;
|
|
7675
7726
|
}, cssStyleDeclarationToObject = cssStyleDeclarationToObject2, computed = cssStyleDeclarationToObject2(getComputedStyle(stateRef.current.host));
|
|
7676
|
-
|
|
7727
|
+
console.groupCollapsed(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), console.groupEnd();
|
|
7677
7728
|
}
|
|
7678
7729
|
}), (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
7679
7730
|
if (state.unmounted === !0 && hasEnterStyle) {
|
|
@@ -7889,7 +7940,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7889
7940
|
if (process.env.NODE_ENV === "development" && time2 && time2`context-override`, process.env.NODE_ENV === "development" && time2 && time2`style-tags`, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
7890
7941
|
var element1 = typeof elementType == "string" ? elementType : "Component", title = `render <${element1} /> (${internalID}) with props`;
|
|
7891
7942
|
if (import_constants2.isWeb) {
|
|
7892
|
-
|
|
7943
|
+
console.groupCollapsed(title);
|
|
7893
7944
|
try {
|
|
7894
7945
|
(0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && (0, import_log.log)({
|
|
7895
7946
|
propsIn,
|
|
@@ -7920,7 +7971,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7920
7971
|
});
|
|
7921
7972
|
} catch {
|
|
7922
7973
|
} finally {
|
|
7923
|
-
|
|
7974
|
+
console.groupEnd();
|
|
7924
7975
|
}
|
|
7925
7976
|
} else {
|
|
7926
7977
|
(0, import_log.log)(title), (0, import_log.log)("state: ", state), import_isDevTools.isDevTools && (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("final styles:");
|
|
@@ -9206,9 +9257,9 @@ var require_styled_native = __commonJS({
|
|
|
9206
9257
|
});
|
|
9207
9258
|
module2.exports = __toCommonJS2(styled_exports);
|
|
9208
9259
|
var import_createComponent = require_createComponent_native(), import_mergeVariants = require_mergeVariants_native(), import_setupReactNative = require_setupReactNative_native();
|
|
9209
|
-
function styled(ComponentIn, options,
|
|
9260
|
+
function styled(ComponentIn, options, config) {
|
|
9210
9261
|
if (process.env.NODE_ENV !== "production" && !ComponentIn) throw new Error("No component given to styled()");
|
|
9211
|
-
var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig ||
|
|
9262
|
+
var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig || config != null && config.isReactNative || parentStaticConfig != null && parentStaticConfig.isReactNative), staticConfigProps = function() {
|
|
9212
9263
|
var { variants, name, defaultVariants, acceptsClassName: acceptsClassNameProp, context, ...defaultProps } = options || {}, parentDefaultVariants, parentDefaultProps;
|
|
9213
9264
|
if (parentStaticConfig) {
|
|
9214
9265
|
var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
|
|
@@ -9227,9 +9278,9 @@ var require_styled_native = __commonJS({
|
|
|
9227
9278
|
...defaultProps,
|
|
9228
9279
|
...defaultVariants
|
|
9229
9280
|
}), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
9230
|
-
var isText = !!(
|
|
9281
|
+
var isText = !!(config != null && config.isText || parentStaticConfig != null && parentStaticConfig.isText), _config_acceptsClassName, _ref, acceptsClassName = (_ref = (_config_acceptsClassName = config == null ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : acceptsClassNameProp) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName), conf = {
|
|
9231
9282
|
...parentStaticConfig,
|
|
9232
|
-
...
|
|
9283
|
+
...config,
|
|
9233
9284
|
...!isPlainStyledComponent && {
|
|
9234
9285
|
Component
|
|
9235
9286
|
},
|
|
@@ -10272,13 +10323,13 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10272
10323
|
}
|
|
10273
10324
|
});
|
|
10274
10325
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10275
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_constants2 = require_index_native2(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(),
|
|
10326
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_constants2 = require_index_native2(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native(), listeners = /* @__PURE__ */ new Set(), didRender = !1;
|
|
10276
10327
|
function ___onDidFinishClientRender2(cb) {
|
|
10277
10328
|
didRender ? cb() : listeners.add(cb);
|
|
10278
10329
|
}
|
|
10279
10330
|
function TamaguiProvider(param) {
|
|
10280
10331
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
10281
|
-
|
|
10332
|
+
(0, import_react3.useEffect)(function() {
|
|
10282
10333
|
return listeners.forEach(function(cb) {
|
|
10283
10334
|
return cb();
|
|
10284
10335
|
}), didRender = !0, function() {
|
|
@@ -10296,21 +10347,25 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10296
10347
|
disableInjectCSS
|
|
10297
10348
|
]), (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
10298
10349
|
(0, import_useMedia.updateMediaListeners)();
|
|
10299
|
-
}, [])
|
|
10350
|
+
}, []);
|
|
10351
|
+
var contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnmountedClassName, {
|
|
10352
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10353
|
+
animationDriver: config == null ? void 0 : config.animations,
|
|
10354
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
10355
|
+
themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
|
|
10356
|
+
disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
|
|
10357
|
+
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
10358
|
+
reset,
|
|
10359
|
+
className,
|
|
10360
|
+
children
|
|
10361
|
+
})
|
|
10362
|
+
})
|
|
10363
|
+
});
|
|
10364
|
+
return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10365
|
+
children: contents
|
|
10366
|
+
})), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10300
10367
|
children: [
|
|
10301
|
-
|
|
10302
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10303
|
-
animationDriver: config == null ? void 0 : config.animations,
|
|
10304
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
10305
|
-
themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
|
|
10306
|
-
disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
|
|
10307
|
-
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
10308
|
-
reset,
|
|
10309
|
-
className,
|
|
10310
|
-
children
|
|
10311
|
-
})
|
|
10312
|
-
})
|
|
10313
|
-
}),
|
|
10368
|
+
contents,
|
|
10314
10369
|
!1
|
|
10315
10370
|
]
|
|
10316
10371
|
});
|
|
@@ -10386,12 +10441,14 @@ var require_Configuration_native = __commonJS({
|
|
|
10386
10441
|
}
|
|
10387
10442
|
});
|
|
10388
10443
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
10389
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration = function(props) {
|
|
10390
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext)
|
|
10391
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10444
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration = function(props) {
|
|
10445
|
+
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext), clientOnly = (0, import_react3.useContext)(import_use_did_finish_ssr.ClientOnlyContext), children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10392
10446
|
...current,
|
|
10393
10447
|
...props
|
|
10394
10448
|
});
|
|
10449
|
+
return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10450
|
+
children
|
|
10451
|
+
}) : children;
|
|
10395
10452
|
};
|
|
10396
10453
|
Configuration.displayName = "Configuration";
|
|
10397
10454
|
}
|
|
@@ -10679,7 +10736,7 @@ var require_index_native8 = __commonJS({
|
|
|
10679
10736
|
__reExport2(index_exports2, require_withStableStyle_native(), module2.exports);
|
|
10680
10737
|
__reExport2(index_exports2, require_createMediaStyle_native(), module2.exports);
|
|
10681
10738
|
__reExport2(index_exports2, require_getShorthandValue_native(), module2.exports);
|
|
10682
|
-
__reExport2(index_exports2,
|
|
10739
|
+
__reExport2(index_exports2, require_useCreateShallowSetState_native(), module2.exports);
|
|
10683
10740
|
__reExport2(index_exports2, require_createStyledContext_native(), module2.exports);
|
|
10684
10741
|
__reExport2(index_exports2, require_expandStyles_native(), module2.exports);
|
|
10685
10742
|
__reExport2(index_exports2, require_getExpandedShorthands_native(), module2.exports);
|