tamagui 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 +236 -172
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +217 -153
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
- package/types/views/Input.d.ts +1 -1
package/dist/test.native.js
CHANGED
|
@@ -222,7 +222,7 @@ var require_index_native2 = __commonJS({
|
|
|
222
222
|
if (typeof document > "u") return React4.useMemo(function() {
|
|
223
223
|
return fn();
|
|
224
224
|
}, []);
|
|
225
|
-
var ref = React4.useRef();
|
|
225
|
+
var ref = React4.useRef(void 0);
|
|
226
226
|
return ref.current || (ref.current = {
|
|
227
227
|
v: fn()
|
|
228
228
|
}), ref.current.v;
|
|
@@ -2994,7 +2994,7 @@ var require_useMedia_native = __commonJS({
|
|
|
2994
2994
|
};
|
|
2995
2995
|
}
|
|
2996
2996
|
function useMedia3(cc, debug) {
|
|
2997
|
-
var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)();
|
|
2997
|
+
var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)(null);
|
|
2998
2998
|
internalRef.current || (internalRef.current = {
|
|
2999
2999
|
keys: /* @__PURE__ */ new Set()
|
|
3000
3000
|
});
|
|
@@ -3594,57 +3594,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
3594
3594
|
}
|
|
3595
3595
|
});
|
|
3596
3596
|
|
|
3597
|
-
// ../../core/web/dist/cjs/helpers/consoleLog.native.js
|
|
3598
|
-
var require_consoleLog_native = __commonJS({
|
|
3599
|
-
"../../core/web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
|
|
3600
|
-
"use strict";
|
|
3601
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3602
|
-
for (var name in all) __defProp2(target, name, {
|
|
3603
|
-
get: all[name],
|
|
3604
|
-
enumerable: !0
|
|
3605
|
-
});
|
|
3606
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
3607
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3608
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3609
|
-
for (var _loop = function() {
|
|
3610
|
-
var key = _step.value;
|
|
3611
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3612
|
-
get: function() {
|
|
3613
|
-
return from[key];
|
|
3614
|
-
},
|
|
3615
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3616
|
-
});
|
|
3617
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3618
|
-
} catch (err) {
|
|
3619
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
3620
|
-
} finally {
|
|
3621
|
-
try {
|
|
3622
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3623
|
-
} finally {
|
|
3624
|
-
if (_didIteratorError)
|
|
3625
|
-
throw _iteratorError;
|
|
3626
|
-
}
|
|
3627
|
-
}
|
|
3628
|
-
return to;
|
|
3629
|
-
}, __toCommonJS2 = function(mod) {
|
|
3630
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3631
|
-
value: !0
|
|
3632
|
-
}), mod);
|
|
3633
|
-
}, consoleLog_native_exports = {};
|
|
3634
|
-
__export2(consoleLog_native_exports, {
|
|
3635
|
-
groupCollapsed: function() {
|
|
3636
|
-
return groupCollapsed;
|
|
3637
|
-
},
|
|
3638
|
-
groupEnd: function() {
|
|
3639
|
-
return groupEnd;
|
|
3640
|
-
}
|
|
3641
|
-
});
|
|
3642
|
-
module2.exports = __toCommonJS2(consoleLog_native_exports);
|
|
3643
|
-
var groupEnd = function() {
|
|
3644
|
-
}, groupCollapsed = console.info;
|
|
3645
|
-
}
|
|
3646
|
-
});
|
|
3647
|
-
|
|
3648
3597
|
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
3649
3598
|
var require_getShorthandValue_native = __commonJS({
|
|
3650
3599
|
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
@@ -6162,7 +6111,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6162
6111
|
}
|
|
6163
6112
|
});
|
|
6164
6113
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6165
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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(),
|
|
6114
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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 = "-";
|
|
6166
6115
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6167
6116
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6168
6117
|
}
|
|
@@ -6390,7 +6339,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6390
6339
|
conf = conf || (0, import_config.getConfig)();
|
|
6391
6340
|
var animationDriver = (componentContext == null ? void 0 : componentContext.animationDriver) || conf.animations;
|
|
6392
6341
|
import_constants4.isWeb && styleProps.isAnimated && animationDriver.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
6393
|
-
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles), styleState = {
|
|
6342
|
+
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass && !styleProps.isAnimated, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles), styleState = {
|
|
6394
6343
|
classNames,
|
|
6395
6344
|
conf,
|
|
6396
6345
|
props,
|
|
@@ -6480,7 +6429,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6480
6429
|
var style2 = styleState.style;
|
|
6481
6430
|
if (0) {
|
|
6482
6431
|
var _staticConfig_defaultProps, fontFamily, fontFamilyClassName, groupClassName, componentNameFinal, componentClassName, classList, finalClassName;
|
|
6483
|
-
if (!
|
|
6432
|
+
if (!styleProps.isAnimated && isReactNative) {
|
|
6484
6433
|
var cnStyles, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1;
|
|
6485
6434
|
try {
|
|
6486
6435
|
for (var _iterator1, _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) var name;
|
|
@@ -6552,7 +6501,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6552
6501
|
return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
|
|
6553
6502
|
}, useInsertEffectCompat = import_constants4.isWeb ? import_react3.default.useInsertionEffect || import_constants4.useIsomorphicLayoutEffect : function() {
|
|
6554
6503
|
}, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k) {
|
|
6555
|
-
conf = conf || (0, import_config.getConfig)();
|
|
6556
6504
|
var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k);
|
|
6557
6505
|
return res;
|
|
6558
6506
|
};
|
|
@@ -6740,9 +6688,9 @@ var require_setElementProps_native = __commonJS({
|
|
|
6740
6688
|
}
|
|
6741
6689
|
});
|
|
6742
6690
|
|
|
6743
|
-
// ../../core/web/dist/cjs/helpers/
|
|
6744
|
-
var
|
|
6745
|
-
"../../core/web/dist/cjs/helpers/
|
|
6691
|
+
// ../../core/web/dist/cjs/helpers/useCreateShallowSetState.native.js
|
|
6692
|
+
var require_useCreateShallowSetState_native = __commonJS({
|
|
6693
|
+
"../../core/web/dist/cjs/helpers/useCreateShallowSetState.native.js"(exports2, module2) {
|
|
6746
6694
|
"use strict";
|
|
6747
6695
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
6748
6696
|
for (var name in all) __defProp2(target, name, {
|
|
@@ -6776,43 +6724,31 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6776
6724
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
6777
6725
|
value: !0
|
|
6778
6726
|
}), mod);
|
|
6779
|
-
},
|
|
6780
|
-
__export2(
|
|
6781
|
-
createShallowSetState: function() {
|
|
6782
|
-
return createShallowSetState;
|
|
6783
|
-
},
|
|
6727
|
+
}, useCreateShallowSetState_exports = {};
|
|
6728
|
+
__export2(useCreateShallowSetState_exports, {
|
|
6784
6729
|
isEqualShallow: function() {
|
|
6785
6730
|
return isEqualShallow;
|
|
6786
6731
|
},
|
|
6787
6732
|
mergeIfNotShallowEqual: function() {
|
|
6788
6733
|
return mergeIfNotShallowEqual;
|
|
6734
|
+
},
|
|
6735
|
+
useCreateShallowSetState: function() {
|
|
6736
|
+
return useCreateShallowSetState;
|
|
6789
6737
|
}
|
|
6790
6738
|
});
|
|
6791
|
-
module2.exports = __toCommonJS2(
|
|
6792
|
-
var import_react3 = require("react")
|
|
6793
|
-
|
|
6794
|
-
};
|
|
6795
|
-
function createShallowSetState(setter, onlyAllow, transition, debugIn) {
|
|
6739
|
+
module2.exports = __toCommonJS2(useCreateShallowSetState_exports);
|
|
6740
|
+
var import_react3 = require("react");
|
|
6741
|
+
function useCreateShallowSetState(setter, debugIn) {
|
|
6796
6742
|
return (0, import_react3.useCallback)(function(next) {
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
setter(function(prev) {
|
|
6800
|
-
return mergeIfNotShallowEqual(prev, next, onlyAllow, debugIn);
|
|
6801
|
-
});
|
|
6743
|
+
setter(function(prev) {
|
|
6744
|
+
return mergeIfNotShallowEqual(prev, next, debugIn);
|
|
6802
6745
|
});
|
|
6803
6746
|
}, [
|
|
6804
6747
|
setter,
|
|
6805
|
-
onlyAllow ? onlyAllow.join("") : "",
|
|
6806
|
-
transition,
|
|
6807
6748
|
debugIn
|
|
6808
6749
|
]);
|
|
6809
6750
|
}
|
|
6810
|
-
function mergeIfNotShallowEqual(prev, next,
|
|
6811
|
-
if (onlyAllow) {
|
|
6812
|
-
var allowed = {};
|
|
6813
|
-
for (var key in next) onlyAllow.includes(key) && (allowed[key] = next[key]);
|
|
6814
|
-
next = allowed;
|
|
6815
|
-
}
|
|
6751
|
+
function mergeIfNotShallowEqual(prev, next, debug) {
|
|
6816
6752
|
return !prev || !next || isEqualShallow(prev, next) ? prev || next : {
|
|
6817
6753
|
...prev,
|
|
6818
6754
|
...next
|
|
@@ -6868,7 +6804,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6868
6804
|
}
|
|
6869
6805
|
});
|
|
6870
6806
|
module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
|
|
6871
|
-
var import_useMedia = require_useMedia_native(),
|
|
6807
|
+
var import_useMedia = require_useMedia_native(), import_useCreateShallowSetState = require_useCreateShallowSetState_native(), subscribeToContextGroup = function(param) {
|
|
6872
6808
|
var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
|
|
6873
6809
|
if (pseudoGroups || mediaGroups) {
|
|
6874
6810
|
var _componentContext_groups_subscribe, _componentContext_groups;
|
|
@@ -6879,7 +6815,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6879
6815
|
};
|
|
6880
6816
|
if (pseudo && pseudoGroups != null && pseudoGroups.has(String(name))) Object.assign(current.pseudo, pseudo), persist();
|
|
6881
6817
|
else if (layout && mediaGroups) {
|
|
6882
|
-
var mediaState3 = (0, import_useMedia.getMediaState)(mediaGroups, layout), next = (0,
|
|
6818
|
+
var mediaState3 = (0, import_useMedia.getMediaState)(mediaGroups, layout), next = (0, import_useCreateShallowSetState.mergeIfNotShallowEqual)(current.media || {}, mediaState3);
|
|
6883
6819
|
next !== current.media && (Object.assign(current.media, next), persist());
|
|
6884
6820
|
}
|
|
6885
6821
|
function persist() {
|
|
@@ -7673,6 +7609,62 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
7673
7609
|
}
|
|
7674
7610
|
});
|
|
7675
7611
|
|
|
7612
|
+
// ../../core/use-did-finish-ssr/dist/cjs/ClientOnly.native.js
|
|
7613
|
+
var require_ClientOnly_native = __commonJS({
|
|
7614
|
+
"../../core/use-did-finish-ssr/dist/cjs/ClientOnly.native.js"(exports2, module2) {
|
|
7615
|
+
"use strict";
|
|
7616
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7617
|
+
for (var name in all) __defProp2(target, name, {
|
|
7618
|
+
get: all[name],
|
|
7619
|
+
enumerable: !0
|
|
7620
|
+
});
|
|
7621
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
7622
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7623
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7624
|
+
for (var _loop = function() {
|
|
7625
|
+
var key = _step.value;
|
|
7626
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7627
|
+
get: function() {
|
|
7628
|
+
return from[key];
|
|
7629
|
+
},
|
|
7630
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7631
|
+
});
|
|
7632
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7633
|
+
} catch (err) {
|
|
7634
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
7635
|
+
} finally {
|
|
7636
|
+
try {
|
|
7637
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7638
|
+
} finally {
|
|
7639
|
+
if (_didIteratorError)
|
|
7640
|
+
throw _iteratorError;
|
|
7641
|
+
}
|
|
7642
|
+
}
|
|
7643
|
+
return to;
|
|
7644
|
+
}, __toCommonJS2 = function(mod) {
|
|
7645
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7646
|
+
value: !0
|
|
7647
|
+
}), mod);
|
|
7648
|
+
}, ClientOnly_exports = {};
|
|
7649
|
+
__export2(ClientOnly_exports, {
|
|
7650
|
+
ClientOnly: function() {
|
|
7651
|
+
return ClientOnly2;
|
|
7652
|
+
},
|
|
7653
|
+
ClientOnlyContext: function() {
|
|
7654
|
+
return ClientOnlyContext2;
|
|
7655
|
+
}
|
|
7656
|
+
});
|
|
7657
|
+
module2.exports = __toCommonJS2(ClientOnly_exports);
|
|
7658
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
|
|
7659
|
+
var { children } = param;
|
|
7660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ClientOnlyContext2.Provider, {
|
|
7661
|
+
value: !0,
|
|
7662
|
+
children
|
|
7663
|
+
});
|
|
7664
|
+
};
|
|
7665
|
+
}
|
|
7666
|
+
});
|
|
7667
|
+
|
|
7676
7668
|
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
7677
7669
|
var require_index_native13 = __commonJS({
|
|
7678
7670
|
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -7723,16 +7715,28 @@ var require_index_native13 = __commonJS({
|
|
|
7723
7715
|
}), mod);
|
|
7724
7716
|
}, index_exports2 = {};
|
|
7725
7717
|
__export2(index_exports2, {
|
|
7718
|
+
ClientOnly: function() {
|
|
7719
|
+
return import_ClientOnly2.ClientOnly;
|
|
7720
|
+
},
|
|
7721
|
+
ClientOnlyContext: function() {
|
|
7722
|
+
return import_ClientOnly2.ClientOnlyContext;
|
|
7723
|
+
},
|
|
7726
7724
|
useClientValue: function() {
|
|
7727
7725
|
return useClientValue;
|
|
7728
7726
|
},
|
|
7729
7727
|
useDidFinishSSR: function() {
|
|
7730
7728
|
return useDidFinishSSR2;
|
|
7729
|
+
},
|
|
7730
|
+
useIsClientOnly: function() {
|
|
7731
|
+
return useIsClientOnly;
|
|
7731
7732
|
}
|
|
7732
7733
|
});
|
|
7733
7734
|
module2.exports = __toCommonJS2(index_exports2);
|
|
7734
|
-
var React4 = __toESM2(require("react"))
|
|
7735
|
+
var React4 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native(), useIsClientOnly = function() {
|
|
7736
|
+
return React4.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7737
|
+
};
|
|
7735
7738
|
function useDidFinishSSR2(value) {
|
|
7739
|
+
var clientOnly = React4.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7736
7740
|
return value ?? !0;
|
|
7737
7741
|
}
|
|
7738
7742
|
function useClientValue(value) {
|
|
@@ -7785,10 +7789,12 @@ var require_useComponentState_native = __commonJS({
|
|
|
7785
7789
|
}
|
|
7786
7790
|
});
|
|
7787
7791
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
7788
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(),
|
|
7789
|
-
var { animationDriver } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), [startedUnhydrated] = (0, import_react3.useState)(import_constants4.IS_REACT_19 ? !isHydrated : !1), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
|
|
7792
|
+
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), 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) {
|
|
7793
|
+
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_constants4.IS_REACT_19 ? !isHydrated : !1), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
|
|
7790
7794
|
stateRef.current || (stateRef.current = {});
|
|
7791
|
-
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current
|
|
7795
|
+
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current;
|
|
7796
|
+
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
|
|
7797
|
+
var willBeAnimatedClient = function() {
|
|
7792
7798
|
var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
|
|
7793
7799
|
return !!(next || curStateRef.hasAnimated);
|
|
7794
7800
|
}(), willBeAnimated = !import_constants4.isServer && willBeAnimatedClient;
|
|
@@ -7808,23 +7814,19 @@ var require_useComponentState_native = __commonJS({
|
|
|
7808
7814
|
...states[0],
|
|
7809
7815
|
[props.forceStyle]: !0
|
|
7810
7816
|
} : states[0], setState = states[1], isAnimated = willBeAnimated;
|
|
7811
|
-
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState({
|
|
7812
|
-
|
|
7817
|
+
import_constants4.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(_) {
|
|
7818
|
+
return {
|
|
7819
|
+
...state
|
|
7820
|
+
};
|
|
7813
7821
|
}));
|
|
7814
|
-
var groupName = props.group, setStateShallow = (0,
|
|
7815
|
-
setState,
|
|
7816
|
-
void 0,
|
|
7817
|
-
// note: allows all state updates even when disabled for the enterStyle animation to work
|
|
7818
|
-
!1,
|
|
7819
|
-
props.debug
|
|
7820
|
-
);
|
|
7822
|
+
var groupName = props.group, setStateShallow = (0, import_useCreateShallowSetState.useCreateShallowSetState)(setState, props.debug);
|
|
7821
7823
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
7822
7824
|
var { enterVariant, exitVariant, enterExitVariant, custom } = presenceState;
|
|
7823
7825
|
(0, import_isObj.isObj)(custom) && Object.assign(props, custom);
|
|
7824
7826
|
var exv = exitVariant ?? enterExitVariant, env = enterVariant ?? enterExitVariant;
|
|
7825
7827
|
state.unmounted && env && staticConfig.variants[env] ? props[env] = !0 : isExiting && exv && (props[exv] = exitVariant !== enterExitVariant);
|
|
7826
7828
|
}
|
|
7827
|
-
var noClass = !import_constants4.isWeb || !!props.forceStyle;
|
|
7829
|
+
var noClass = !import_constants4.isWeb || !!props.forceStyle || isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles);
|
|
7828
7830
|
if (import_constants4.isWeb && (!import_constants4.isServer || isHydrated)) {
|
|
7829
7831
|
var isAnimatedAndHydrated = isAnimated && !supportsCSSVars, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || !state.unmounted), isDisabledManually = disableClassName && !state.unmounted;
|
|
7830
7832
|
(isAnimatedAndHydrated || isDisabledManually || isClassNameDisabled) && (noClass = !0);
|
|
@@ -7849,6 +7851,26 @@ var require_useComponentState_native = __commonJS({
|
|
|
7849
7851
|
}
|
|
7850
7852
|
};
|
|
7851
7853
|
}
|
|
7854
|
+
if (!curStateRef.stateEmitter && hasAnimationProp) {
|
|
7855
|
+
var listeners1 = /* @__PURE__ */ new Set();
|
|
7856
|
+
curStateRef.stateEmitter = {
|
|
7857
|
+
listeners: listeners1,
|
|
7858
|
+
emit(state2) {
|
|
7859
|
+
listeners1.forEach(function(l) {
|
|
7860
|
+
return l(state2);
|
|
7861
|
+
});
|
|
7862
|
+
},
|
|
7863
|
+
subscribe(cb) {
|
|
7864
|
+
return listeners1.add(cb), setStateShallow({
|
|
7865
|
+
hasDynGroupChildren: !0
|
|
7866
|
+
}), function() {
|
|
7867
|
+
listeners1.delete(cb), listeners1.size === 0 && setStateShallow({
|
|
7868
|
+
hasDynGroupChildren: !1
|
|
7869
|
+
});
|
|
7870
|
+
};
|
|
7871
|
+
}
|
|
7872
|
+
};
|
|
7873
|
+
}
|
|
7852
7874
|
return {
|
|
7853
7875
|
startedUnhydrated,
|
|
7854
7876
|
curStateRef,
|
|
@@ -8098,7 +8120,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8098
8120
|
}
|
|
8099
8121
|
});
|
|
8100
8122
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8101
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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(),
|
|
8123
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), 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(), componentSetStates = /* @__PURE__ */ new Set();
|
|
8102
8124
|
typeof document < "u" && (cancelTouches = function() {
|
|
8103
8125
|
componentSetStates.forEach(function(setState) {
|
|
8104
8126
|
return setState(function(prev) {
|
|
@@ -8162,8 +8184,12 @@ var require_createComponent_native = __commonJS({
|
|
|
8162
8184
|
...styledContextProps
|
|
8163
8185
|
} : defaultProps, props = propsIn;
|
|
8164
8186
|
curDefaultProps && (props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn));
|
|
8165
|
-
var componentName2 = props.componentName || staticConfig.componentName, animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, { curStateRef, disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState,
|
|
8166
|
-
animationDriver && isAnimated &&
|
|
8187
|
+
var componentName2 = props.componentName || staticConfig.componentName, 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, hasTextAncestor = !!(import_constants4.isWeb && isText && componentContext.inText), isTaggable = !Component || typeof Component == "string", tagProp = props.tag, element = import_constants4.isWeb && isTaggable && tagProp || Component, BaseTextComponent = BaseText || element || "span", BaseViewComponent = BaseView || element || (hasTextAncestor ? "span" : "div"), elementType = isText ? BaseTextComponent : BaseViewComponent;
|
|
8188
|
+
animationDriver && isAnimated && // this should really be behind another prop as it's not really related to
|
|
8189
|
+
// "needsWebStyles" basically with motion we just animate a plain div, but
|
|
8190
|
+
// we still have animated.View/Text for Sheet which wants to control
|
|
8191
|
+
// things declaratively
|
|
8192
|
+
!animationDriver.needsWebStyles && (elementType = animationDriver[isText ? "Text" : "View"] || elementType);
|
|
8167
8193
|
var disableThemeProp = !1, disableTheme = disableThemeProp || isHOC;
|
|
8168
8194
|
props.themeShallow && (curStateRef.themeShallow = !0);
|
|
8169
8195
|
var themeStateProps = {
|
|
@@ -8192,8 +8218,28 @@ var require_createComponent_native = __commonJS({
|
|
|
8192
8218
|
isExiting,
|
|
8193
8219
|
isAnimated,
|
|
8194
8220
|
willBeAnimated,
|
|
8195
|
-
styledContextProps
|
|
8221
|
+
styledContextProps,
|
|
8222
|
+
noMergeStyle: isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles)
|
|
8196
8223
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
|
|
8224
|
+
if (hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders) {
|
|
8225
|
+
var styleListener = stateRef.current.useStyleListener, ogSetStateShallow = setStateShallow;
|
|
8226
|
+
setStateShallow = function(next) {
|
|
8227
|
+
var avoidReRenderKeys = /* @__PURE__ */ new Set([
|
|
8228
|
+
"hover",
|
|
8229
|
+
"press",
|
|
8230
|
+
"pressIn"
|
|
8231
|
+
]), canAvoidReRender = Object.keys(next).every(function(key3) {
|
|
8232
|
+
return avoidReRenderKeys.has(key3);
|
|
8233
|
+
});
|
|
8234
|
+
if (canAvoidReRender) {
|
|
8235
|
+
var updatedState = {
|
|
8236
|
+
...state,
|
|
8237
|
+
...next
|
|
8238
|
+
}, nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
|
|
8239
|
+
styleListener(nextStyles.style);
|
|
8240
|
+
} else ogSetStateShallow(next);
|
|
8241
|
+
};
|
|
8242
|
+
}
|
|
8197
8243
|
if (props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
|
|
8198
8244
|
var _splitStyles;
|
|
8199
8245
|
(_splitStyles = splitStyles).style || (_splitStyles.style = {}), splitStyles.style.opacity = 0;
|
|
@@ -8232,10 +8278,15 @@ var require_createComponent_native = __commonJS({
|
|
|
8232
8278
|
(supportsCSSVars ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC
|
|
8233
8279
|
);
|
|
8234
8280
|
if (shouldUseAnimation) {
|
|
8235
|
-
var
|
|
8281
|
+
var useStyleEmitter = animationDriver != null && animationDriver.avoidReRenders ? function(listener) {
|
|
8282
|
+
stateRef.current.useStyleListener = listener;
|
|
8283
|
+
} : void 0, animations = useAnimations({
|
|
8236
8284
|
props: propsWithAnimation,
|
|
8237
8285
|
// if hydrating, send empty style
|
|
8238
8286
|
style: splitStylesStyle || {},
|
|
8287
|
+
// @ts-ignore
|
|
8288
|
+
styleState: splitStyles,
|
|
8289
|
+
useStyleEmitter,
|
|
8239
8290
|
presence,
|
|
8240
8291
|
componentState: state,
|
|
8241
8292
|
styleProps,
|
|
@@ -8244,7 +8295,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8244
8295
|
staticConfig,
|
|
8245
8296
|
stateRef
|
|
8246
8297
|
});
|
|
8247
|
-
|
|
8298
|
+
animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`));
|
|
8248
8299
|
}
|
|
8249
8300
|
groupName && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8250
8301
|
var layout = e.nativeEvent.layout;
|
|
@@ -9732,9 +9783,9 @@ var require_styled_native = __commonJS({
|
|
|
9732
9783
|
});
|
|
9733
9784
|
module2.exports = __toCommonJS2(styled_exports);
|
|
9734
9785
|
var import_createComponent = require_createComponent_native(), import_mergeVariants = require_mergeVariants_native(), import_setupReactNative = require_setupReactNative_native();
|
|
9735
|
-
function styled8(ComponentIn, options,
|
|
9786
|
+
function styled8(ComponentIn, options, config) {
|
|
9736
9787
|
if (!ComponentIn) throw new Error("No component given to styled()");
|
|
9737
|
-
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 ||
|
|
9788
|
+
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() {
|
|
9738
9789
|
var { variants, name, defaultVariants, acceptsClassName: acceptsClassNameProp, context, ...defaultProps } = options || {}, parentDefaultVariants, parentDefaultProps;
|
|
9739
9790
|
if (parentStaticConfig) {
|
|
9740
9791
|
var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
|
|
@@ -9753,9 +9804,9 @@ var require_styled_native = __commonJS({
|
|
|
9753
9804
|
...defaultProps,
|
|
9754
9805
|
...defaultVariants
|
|
9755
9806
|
}), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
9756
|
-
var isText = !!(
|
|
9807
|
+
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 = {
|
|
9757
9808
|
...parentStaticConfig,
|
|
9758
|
-
...
|
|
9809
|
+
...config,
|
|
9759
9810
|
...!isPlainStyledComponent && {
|
|
9760
9811
|
Component
|
|
9761
9812
|
},
|
|
@@ -10798,13 +10849,13 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10798
10849
|
}
|
|
10799
10850
|
});
|
|
10800
10851
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10801
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(),
|
|
10852
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), 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;
|
|
10802
10853
|
function ___onDidFinishClientRender(cb) {
|
|
10803
10854
|
didRender ? cb() : listeners.add(cb);
|
|
10804
10855
|
}
|
|
10805
10856
|
function TamaguiProvider2(param) {
|
|
10806
10857
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
10807
|
-
|
|
10858
|
+
(0, import_react3.useEffect)(function() {
|
|
10808
10859
|
return listeners.forEach(function(cb) {
|
|
10809
10860
|
return cb();
|
|
10810
10861
|
}), didRender = !0, function() {
|
|
@@ -10822,21 +10873,25 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10822
10873
|
disableInjectCSS
|
|
10823
10874
|
]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
10824
10875
|
(0, import_useMedia.updateMediaListeners)();
|
|
10825
|
-
}, [])
|
|
10876
|
+
}, []);
|
|
10877
|
+
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
10878
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10879
|
+
animationDriver: config == null ? void 0 : config.animations,
|
|
10880
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
10881
|
+
themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
|
|
10882
|
+
disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
|
|
10883
|
+
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
10884
|
+
reset,
|
|
10885
|
+
className,
|
|
10886
|
+
children
|
|
10887
|
+
})
|
|
10888
|
+
})
|
|
10889
|
+
});
|
|
10890
|
+
return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10891
|
+
children: contents
|
|
10892
|
+
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
10826
10893
|
children: [
|
|
10827
|
-
|
|
10828
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10829
|
-
animationDriver: config == null ? void 0 : config.animations,
|
|
10830
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
10831
|
-
themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
|
|
10832
|
-
disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
|
|
10833
|
-
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
10834
|
-
reset,
|
|
10835
|
-
className,
|
|
10836
|
-
children
|
|
10837
|
-
})
|
|
10838
|
-
})
|
|
10839
|
-
}),
|
|
10894
|
+
contents,
|
|
10840
10895
|
!1
|
|
10841
10896
|
]
|
|
10842
10897
|
});
|
|
@@ -10912,12 +10967,14 @@ var require_Configuration_native = __commonJS({
|
|
|
10912
10967
|
}
|
|
10913
10968
|
});
|
|
10914
10969
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
10915
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
|
|
10916
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext)
|
|
10917
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10970
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native13(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
|
|
10971
|
+
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_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10918
10972
|
...current,
|
|
10919
10973
|
...props
|
|
10920
10974
|
});
|
|
10975
|
+
return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10976
|
+
children
|
|
10977
|
+
}) : children;
|
|
10921
10978
|
};
|
|
10922
10979
|
Configuration2.displayName = "Configuration";
|
|
10923
10980
|
}
|
|
@@ -11041,7 +11098,7 @@ var require_index_native14 = __commonJS({
|
|
|
11041
11098
|
__reExport2(index_exports2, require_withStableStyle_native(), module2.exports);
|
|
11042
11099
|
__reExport2(index_exports2, require_createMediaStyle_native(), module2.exports);
|
|
11043
11100
|
__reExport2(index_exports2, require_getShorthandValue_native(), module2.exports);
|
|
11044
|
-
__reExport2(index_exports2,
|
|
11101
|
+
__reExport2(index_exports2, require_useCreateShallowSetState_native(), module2.exports);
|
|
11045
11102
|
__reExport2(index_exports2, require_createStyledContext_native(), module2.exports);
|
|
11046
11103
|
__reExport2(index_exports2, require_expandStyles_native(), module2.exports);
|
|
11047
11104
|
__reExport2(index_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
@@ -13645,11 +13702,11 @@ var require_Collection_native = __commonJS({
|
|
|
13645
13702
|
function createCollection(name) {
|
|
13646
13703
|
var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core12.createStyledContext)({
|
|
13647
13704
|
collectionRef: {
|
|
13648
|
-
current:
|
|
13705
|
+
current: void 0
|
|
13649
13706
|
},
|
|
13650
13707
|
itemMap: /* @__PURE__ */ new Map()
|
|
13651
13708
|
}), CollectionProvider = function(props) {
|
|
13652
|
-
var { __scopeCollection, children } = props, ref = import_react3.default.useRef(
|
|
13709
|
+
var { __scopeCollection, children } = props, ref = import_react3.default.useRef(void 0), itemMap = import_react3.default.useRef(/* @__PURE__ */ new Map()).current;
|
|
13653
13710
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CollectionProviderImpl, {
|
|
13654
13711
|
scope: __scopeCollection,
|
|
13655
13712
|
itemMap,
|
|
@@ -13667,7 +13724,7 @@ var require_Collection_native = __commonJS({
|
|
|
13667
13724
|
});
|
|
13668
13725
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
13669
13726
|
var ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
13670
|
-
var { __scopeCollection, children, ...itemData } = props, ref = import_react3.default.useRef(
|
|
13727
|
+
var { __scopeCollection, children, ...itemData } = props, ref = import_react3.default.useRef(void 0), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(__scopeCollection);
|
|
13671
13728
|
return import_react3.default.useEffect(function() {
|
|
13672
13729
|
return context.itemMap.set(ref, {
|
|
13673
13730
|
ref,
|
|
@@ -15984,10 +16041,9 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
15984
16041
|
});
|
|
15985
16042
|
});
|
|
15986
16043
|
function PortalHostWeb(props) {
|
|
15987
|
-
var [mounted, setMounted] = (0, import_react3.useState)(!1);
|
|
15988
16044
|
return (0, import_react3.useEffect)(function() {
|
|
15989
|
-
return
|
|
15990
|
-
|
|
16045
|
+
return function() {
|
|
16046
|
+
import_constants22.allPortalHosts.delete(props.name);
|
|
15991
16047
|
};
|
|
15992
16048
|
}, [
|
|
15993
16049
|
props.name
|
|
@@ -15996,7 +16052,7 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
15996
16052
|
display: "contents"
|
|
15997
16053
|
},
|
|
15998
16054
|
ref: function(node) {
|
|
15999
|
-
if (node
|
|
16055
|
+
if (node) {
|
|
16000
16056
|
var _portalListeners_props_name;
|
|
16001
16057
|
import_constants22.allPortalHosts.set(props.name, node), (_portalListeners_props_name = import_constants22.portalListeners[props.name]) === null || _portalListeners_props_name === void 0 || _portalListeners_props_name.forEach(function(x) {
|
|
16002
16058
|
return x(node);
|
|
@@ -17679,7 +17735,7 @@ var require_nativeSheet_native = __commonJS({
|
|
|
17679
17735
|
function setupNativeSheet(platform2, RNIOSModal) {
|
|
17680
17736
|
var { ModalSheetView, ModalSheetViewMainContent } = RNIOSModal;
|
|
17681
17737
|
platform2 === "ios" && (nativeSheets[platform2] = function(props) {
|
|
17682
|
-
var state = (0, import_useSheetOpenState.useSheetOpenState)(props), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state), { open, setOpen } = state, ref = (0, import_react3.useRef)();
|
|
17738
|
+
var state = (0, import_useSheetOpenState.useSheetOpenState)(props), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state), { open, setOpen } = state, ref = (0, import_react3.useRef)(void 0);
|
|
17683
17739
|
(0, import_react3.useEffect)(function() {
|
|
17684
17740
|
if (open) {
|
|
17685
17741
|
var _ref_current;
|
|
@@ -17910,7 +17966,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17910
17966
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_portal2 = require_index_native28(), import_react3 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_contexts = require_contexts_native(), import_helpers = require_helpers_native2(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), hiddenSize = 10000.1, sheetHiddenStyleSheet = null, relativeDimensionTo = import_constants4.isWeb ? "window" : "screen", SheetImplementationCustom = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
17911
17967
|
var parentSheet = import_react3.default.useContext(import_contexts.ParentSheetContext), { animation, animationConfig: animationConfigProp, modal = !1, zIndex = parentSheet.zIndex + 1, moveOnKeyboardChange = !1, unmountChildrenWhenHidden = !1, portalProps, containerComponent: ContainerComponent = import_react3.default.Fragment } = props, state = (0, import_useSheetOpenState.useSheetOpenState)(props), [overlayComponent, setOverlayComponent] = import_react3.default.useState(null), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state, {
|
|
17912
17968
|
onOverlayComponent: setOverlayComponent
|
|
17913
|
-
}), { frameSize, setFrameSize, snapPoints, snapPointsMode, hasFit, position, setPosition, scrollBridge, screenSize, setMaxContentSize, maxSnapPoint } = providerProps, { open, controller, isHidden } = state, sheetRef = import_react3.default.useRef(
|
|
17969
|
+
}), { frameSize, setFrameSize, snapPoints, snapPointsMode, hasFit, position, setPosition, scrollBridge, screenSize, setMaxContentSize, maxSnapPoint } = providerProps, { open, controller, isHidden } = state, sheetRef = import_react3.default.useRef(void 0), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef, providerProps.contentRef), { animationDriver } = (0, import_core12.useConfiguration)(), animationConfig = function() {
|
|
17914
17970
|
if (animationDriver.supportsCSSVars) return {};
|
|
17915
17971
|
var [animationProp, animationPropConfig] = animation ? Array.isArray(animation) ? animation : [
|
|
17916
17972
|
animation
|
|
@@ -17968,7 +18024,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17968
18024
|
}
|
|
17969
18025
|
});
|
|
17970
18026
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
17971
|
-
if (hasntMeasured && screenSize) {
|
|
18027
|
+
if (hasntMeasured && screenSize && frameSize) {
|
|
17972
18028
|
at.current = screenSize, animatedNumber.setValue(screenSize, {
|
|
17973
18029
|
type: "timing",
|
|
17974
18030
|
duration: 0
|
|
@@ -18131,10 +18187,9 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18131
18187
|
ref,
|
|
18132
18188
|
...panResponder == null ? void 0 : panResponder.panHandlers,
|
|
18133
18189
|
onLayout: handleAnimationViewLayout,
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
},
|
|
18190
|
+
// @ts-ignore for CSS driver this is necessary to attach the transition
|
|
18191
|
+
// also motion driver at least though i suspect all drivers?
|
|
18192
|
+
animation: isDragging || disableAnimation ? null : animation,
|
|
18138
18193
|
// @ts-ignore
|
|
18139
18194
|
disableClassName: !0,
|
|
18140
18195
|
style: [
|
|
@@ -19362,7 +19417,10 @@ var require_Dialog_native = __commonJS({
|
|
|
19362
19417
|
}
|
|
19363
19418
|
});
|
|
19364
19419
|
}), DialogContentImpl = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
19365
|
-
var { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, context, ...contentProps } = props, contentRef = React4.useRef(
|
|
19420
|
+
var { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, context, ...contentProps } = props, contentRef = React4.useRef(
|
|
19421
|
+
// TODO react 19 type workaround
|
|
19422
|
+
void 0
|
|
19423
|
+
), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isAdapted = (0, import_adapt.useAdaptIsActive)();
|
|
19366
19424
|
if (isAdapted) return !import_constants4.isWeb && !context.open ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItem, {
|
|
19367
19425
|
children: contentProps.children
|
|
19368
19426
|
});
|
|
@@ -19824,7 +19882,10 @@ var require_AlertDialog_native = __commonJS({
|
|
|
19824
19882
|
try {
|
|
19825
19883
|
for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
19826
19884
|
var child = _step.value;
|
|
19827
|
-
/* @__PURE__ */ React4.isValidElement(child) && onChild(child)
|
|
19885
|
+
if (/* @__PURE__ */ React4.isValidElement(child) && onChild(child)) {
|
|
19886
|
+
var childProps = child.props;
|
|
19887
|
+
childProps.children && forEachChildDeep(React4.Children.toArray(childProps.children), onChild);
|
|
19888
|
+
}
|
|
19828
19889
|
}
|
|
19829
19890
|
} catch (err) {
|
|
19830
19891
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -20135,6 +20196,8 @@ var require_Square_native = __commonJS({
|
|
|
20135
20196
|
":number": import_getShapeSize.getShapeSize
|
|
20136
20197
|
}
|
|
20137
20198
|
}
|
|
20199
|
+
}, {
|
|
20200
|
+
memo: !0
|
|
20138
20201
|
});
|
|
20139
20202
|
}
|
|
20140
20203
|
});
|
|
@@ -21503,7 +21566,7 @@ var require_focusableInputHOC_native = __commonJS({
|
|
|
21503
21566
|
module2.exports = __toCommonJS2(focusableInputHOC_exports);
|
|
21504
21567
|
var import_compose_refs = require_index_native11(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_registerFocusable = require_registerFocusable_native();
|
|
21505
21568
|
function useFocusable2(param) {
|
|
21506
|
-
var { isInput, props, ref } = param, { id, onChangeText, value, defaultValue } = props, inputValue = import_react3.default.useRef(value || defaultValue || ""), unregisterFocusable = import_react3.default.useRef(), focusAndSelect = import_react3.default.useCallback(function(input) {
|
|
21569
|
+
var { isInput, props, ref } = param, { id, onChangeText, value, defaultValue } = props, inputValue = import_react3.default.useRef(value || defaultValue || ""), unregisterFocusable = import_react3.default.useRef(void 0), focusAndSelect = import_react3.default.useCallback(function(input) {
|
|
21507
21570
|
input.focus(), input.setSelection && typeof inputValue.current == "string" && input.setSelection(0, inputValue.current.length);
|
|
21508
21571
|
}, []), registerFocusableHandler = import_react3.default.useCallback(function(input) {
|
|
21509
21572
|
var _unregisterFocusable_current;
|
|
@@ -22800,7 +22863,7 @@ var require_Group_native = __commonJS({
|
|
|
22800
22863
|
}
|
|
22801
22864
|
var GroupItem = /* @__PURE__ */ import_react3.default.forwardRef(function(props, _ref) {
|
|
22802
22865
|
var { __scopeGroup, children, forcePlacement } = props, groupItemProps = useGroupItem({
|
|
22803
|
-
disabled: /* @__PURE__ */ import_react3.default.isValidElement(children) ? children.props.disabled :
|
|
22866
|
+
disabled: /* @__PURE__ */ import_react3.default.isValidElement(children) ? children.props.disabled : !1
|
|
22804
22867
|
}, forcePlacement, __scopeGroup);
|
|
22805
22868
|
return !/* @__PURE__ */ import_react3.default.isValidElement(children) || children.type === import_react3.default.Fragment ? children : /* @__PURE__ */ import_react3.default.cloneElement(children, groupItemProps);
|
|
22806
22869
|
}), useGroupItem = function(childrenProps, forcePlacement, __scopeGroup) {
|
|
@@ -24329,7 +24392,7 @@ var require_Popover_native = __commonJS({
|
|
|
24329
24392
|
Sheet: import_sheet.Sheet.Controlled,
|
|
24330
24393
|
FocusScope: import_focus_scope.FocusScopeController
|
|
24331
24394
|
}), PopoverInner = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24332
|
-
var { children, open: openProp, defaultOpen, onOpenChange, __scopePopover, keepChildrenMounted, hoverable, disableFocus, id, ...restProps } = props, triggerRef = React4.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React4.useState(!1), viaRef = React4.useRef(), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
24395
|
+
var { children, open: openProp, defaultOpen, onOpenChange, __scopePopover, keepChildrenMounted, hoverable, disableFocus, id, ...restProps } = props, triggerRef = React4.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React4.useState(!1), viaRef = React4.useRef(void 0), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
24333
24396
|
prop: openProp,
|
|
24334
24397
|
defaultProp: defaultOpen || !1,
|
|
24335
24398
|
onChange: function(val) {
|
|
@@ -24343,7 +24406,7 @@ var require_Popover_native = __commonJS({
|
|
|
24343
24406
|
disable: isAdapted,
|
|
24344
24407
|
hoverable,
|
|
24345
24408
|
disableFocus
|
|
24346
|
-
}), [anchorTo, setAnchorToRaw] = React4.useState(), setAnchorTo = (0, import_core12.
|
|
24409
|
+
}), [anchorTo, setAnchorToRaw] = React4.useState(), setAnchorTo = (0, import_core12.useCreateShallowSetState)(setAnchorToRaw);
|
|
24347
24410
|
React4.useImperativeHandle(forwardedRef, function() {
|
|
24348
24411
|
return {
|
|
24349
24412
|
anchorTo: setAnchorTo,
|
|
@@ -26285,7 +26348,7 @@ var require_SelectItemText_native = __commonJS({
|
|
|
26285
26348
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
26286
26349
|
}
|
|
26287
26350
|
}), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
|
|
26288
|
-
var { __scopeSelect, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(ITEM_TEXT_NAME, __scopeSelect), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_TEXT_NAME, __scopeSelect), contents = React4.useRef();
|
|
26351
|
+
var { __scopeSelect, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(ITEM_TEXT_NAME, __scopeSelect), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_TEXT_NAME, __scopeSelect), contents = React4.useRef(null);
|
|
26289
26352
|
return contents.current = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemTextFrame, {
|
|
26290
26353
|
className,
|
|
26291
26354
|
size: itemParentContext.size,
|
|
@@ -26809,7 +26872,7 @@ var require_Select_native = __commonJS({
|
|
|
26809
26872
|
FocusScope: import_focus_scope.FocusScopeController
|
|
26810
26873
|
});
|
|
26811
26874
|
function useEmitter() {
|
|
26812
|
-
var listeners = React4.useRef();
|
|
26875
|
+
var listeners = React4.useRef(null);
|
|
26813
26876
|
listeners.current || (listeners.current = /* @__PURE__ */ new Set());
|
|
26814
26877
|
var emit = function(value) {
|
|
26815
26878
|
listeners.current.forEach(function(l) {
|
|
@@ -27428,7 +27491,7 @@ var require_Slider_native = __commonJS({
|
|
|
27428
27491
|
size: 0,
|
|
27429
27492
|
offset: 0
|
|
27430
27493
|
};
|
|
27431
|
-
}), setState = (0, import_core12.
|
|
27494
|
+
}), setState = (0, import_core12.useCreateShallowSetState)(setState_);
|
|
27432
27495
|
function getValueFromPointer(pointerPosition) {
|
|
27433
27496
|
var input = [
|
|
27434
27497
|
0,
|
|
@@ -27526,7 +27589,7 @@ var require_Slider_native = __commonJS({
|
|
|
27526
27589
|
size: 0,
|
|
27527
27590
|
offset: 0
|
|
27528
27591
|
};
|
|
27529
|
-
}), setState = (0, import_core12.
|
|
27592
|
+
}), setState = (0, import_core12.useCreateShallowSetState)(setState_), sliderRef = React4.useRef(null);
|
|
27530
27593
|
function getValueFromPointer(pointerPosition) {
|
|
27531
27594
|
var input = [
|
|
27532
27595
|
0,
|
|
@@ -28291,6 +28354,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
28291
28354
|
checked,
|
|
28292
28355
|
setChecked
|
|
28293
28356
|
],
|
|
28357
|
+
// @ts-ignore TODO tamagui react 19 type error
|
|
28294
28358
|
forwardedRef
|
|
28295
28359
|
);
|
|
28296
28360
|
React4.useEffect(function() {
|