tamagui 1.125.1 → 1.125.2
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 +282 -212
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +281 -211
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -2545,6 +2545,75 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2545
2545
|
}
|
|
2546
2546
|
});
|
|
2547
2547
|
|
|
2548
|
+
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
2549
|
+
var require_index_native11 = __commonJS({
|
|
2550
|
+
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
2551
|
+
"use strict";
|
|
2552
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2553
|
+
for (var name in all) __defProp2(target, name, {
|
|
2554
|
+
get: all[name],
|
|
2555
|
+
enumerable: !0
|
|
2556
|
+
});
|
|
2557
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2558
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2559
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2560
|
+
for (var _loop = function() {
|
|
2561
|
+
var key = _step.value;
|
|
2562
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2563
|
+
get: function() {
|
|
2564
|
+
return from[key];
|
|
2565
|
+
},
|
|
2566
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2567
|
+
});
|
|
2568
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2569
|
+
} catch (err) {
|
|
2570
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2571
|
+
} finally {
|
|
2572
|
+
try {
|
|
2573
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2574
|
+
} finally {
|
|
2575
|
+
if (_didIteratorError)
|
|
2576
|
+
throw _iteratorError;
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
return to;
|
|
2580
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
2581
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
2582
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
2583
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
2584
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2585
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2586
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
2587
|
+
value: mod,
|
|
2588
|
+
enumerable: !0
|
|
2589
|
+
}) : target,
|
|
2590
|
+
mod
|
|
2591
|
+
);
|
|
2592
|
+
}, __toCommonJS2 = function(mod) {
|
|
2593
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2594
|
+
value: !0
|
|
2595
|
+
}), mod);
|
|
2596
|
+
}, index_exports2 = {};
|
|
2597
|
+
__export2(index_exports2, {
|
|
2598
|
+
useClientValue: function() {
|
|
2599
|
+
return useClientValue;
|
|
2600
|
+
},
|
|
2601
|
+
useDidFinishSSR: function() {
|
|
2602
|
+
return useDidFinishSSR2;
|
|
2603
|
+
}
|
|
2604
|
+
});
|
|
2605
|
+
module2.exports = __toCommonJS2(index_exports2);
|
|
2606
|
+
var React4 = __toESM2(require("react"));
|
|
2607
|
+
function useDidFinishSSR2(value) {
|
|
2608
|
+
return value ?? !0;
|
|
2609
|
+
}
|
|
2610
|
+
function useClientValue(value) {
|
|
2611
|
+
var done = useDidFinishSSR2();
|
|
2612
|
+
return done ? typeof value == "function" ? value() : value : void 0;
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
});
|
|
2616
|
+
|
|
2548
2617
|
// ../../core/web/dist/cjs/helpers/matchMedia.native.js
|
|
2549
2618
|
var require_matchMedia_native = __commonJS({
|
|
2550
2619
|
"../../core/web/dist/cjs/helpers/matchMedia.native.js"(exports2, module2) {
|
|
@@ -2714,11 +2783,62 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
2714
2783
|
}
|
|
2715
2784
|
});
|
|
2716
2785
|
|
|
2786
|
+
// ../../core/web/dist/cjs/hooks/useDisableSSR.native.js
|
|
2787
|
+
var require_useDisableSSR_native = __commonJS({
|
|
2788
|
+
"../../core/web/dist/cjs/hooks/useDisableSSR.native.js"(exports2, module2) {
|
|
2789
|
+
"use strict";
|
|
2790
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2791
|
+
for (var name in all) __defProp2(target, name, {
|
|
2792
|
+
get: all[name],
|
|
2793
|
+
enumerable: !0
|
|
2794
|
+
});
|
|
2795
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2796
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2797
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2798
|
+
for (var _loop = function() {
|
|
2799
|
+
var key = _step.value;
|
|
2800
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2801
|
+
get: function() {
|
|
2802
|
+
return from[key];
|
|
2803
|
+
},
|
|
2804
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2805
|
+
});
|
|
2806
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2807
|
+
} catch (err) {
|
|
2808
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2809
|
+
} finally {
|
|
2810
|
+
try {
|
|
2811
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2812
|
+
} finally {
|
|
2813
|
+
if (_didIteratorError)
|
|
2814
|
+
throw _iteratorError;
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
return to;
|
|
2818
|
+
}, __toCommonJS2 = function(mod) {
|
|
2819
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2820
|
+
value: !0
|
|
2821
|
+
}), mod);
|
|
2822
|
+
}, useDisableSSR_exports = {};
|
|
2823
|
+
__export2(useDisableSSR_exports, {
|
|
2824
|
+
getDisableSSR: function() {
|
|
2825
|
+
return getDisableSSR;
|
|
2826
|
+
}
|
|
2827
|
+
});
|
|
2828
|
+
module2.exports = __toCommonJS2(useDisableSSR_exports);
|
|
2829
|
+
var import_config = require_config_native();
|
|
2830
|
+
function getDisableSSR(componentContext) {
|
|
2831
|
+
var _componentContext_disableSSR;
|
|
2832
|
+
return (_componentContext_disableSSR = componentContext == null ? void 0 : componentContext.disableSSR) !== null && _componentContext_disableSSR !== void 0 ? _componentContext_disableSSR : (0, import_config.getSetting)("disableSSR");
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
});
|
|
2836
|
+
|
|
2717
2837
|
// ../../core/web/dist/cjs/hooks/useMedia.native.js
|
|
2718
2838
|
var require_useMedia_native = __commonJS({
|
|
2719
2839
|
"../../core/web/dist/cjs/hooks/useMedia.native.js"(exports2, module2) {
|
|
2720
2840
|
"use strict";
|
|
2721
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2841
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2722
2842
|
for (var name in all) __defProp2(target, name, {
|
|
2723
2843
|
get: all[name],
|
|
2724
2844
|
enumerable: !0
|
|
@@ -2746,6 +2866,18 @@ var require_useMedia_native = __commonJS({
|
|
|
2746
2866
|
}
|
|
2747
2867
|
}
|
|
2748
2868
|
return to;
|
|
2869
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
2870
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
2871
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
2872
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
2873
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2874
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2875
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
2876
|
+
value: mod,
|
|
2877
|
+
enumerable: !0
|
|
2878
|
+
}) : target,
|
|
2879
|
+
mod
|
|
2880
|
+
);
|
|
2749
2881
|
}, __toCommonJS2 = function(mod) {
|
|
2750
2882
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2751
2883
|
value: !0
|
|
@@ -2797,15 +2929,12 @@ var require_useMedia_native = __commonJS({
|
|
|
2797
2929
|
setupMediaListeners: function() {
|
|
2798
2930
|
return setupMediaListeners;
|
|
2799
2931
|
},
|
|
2800
|
-
updateMediaListeners: function() {
|
|
2801
|
-
return updateMediaListeners;
|
|
2802
|
-
},
|
|
2803
2932
|
useMedia: function() {
|
|
2804
2933
|
return useMedia3;
|
|
2805
2934
|
}
|
|
2806
2935
|
});
|
|
2807
2936
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
2808
|
-
var import_constants4 = require_index_native6(), import_react3 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mediaState3 = {}, mediaQueryConfig3 = {}, getMedia3 = function() {
|
|
2937
|
+
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native11(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_useDisableSSR = require_useDisableSSR_native(), mediaState3 = {}, mediaQueryConfig3 = {}, getMedia3 = function() {
|
|
2809
2938
|
return mediaState3;
|
|
2810
2939
|
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
2811
2940
|
if (mediaKeys.has(key)) return !0;
|
|
@@ -2841,26 +2970,27 @@ var require_useMedia_native = __commonJS({
|
|
|
2841
2970
|
if (!match) throw new Error("\u26A0\uFE0F No match");
|
|
2842
2971
|
match.addListener(update), dispose.add(function() {
|
|
2843
2972
|
match.removeListener(update);
|
|
2844
|
-
});
|
|
2973
|
+
}), update();
|
|
2845
2974
|
function update() {
|
|
2846
2975
|
var next = !!getMatch().matches;
|
|
2847
2976
|
next !== mediaState3[key2] && (mediaState3 = {
|
|
2848
2977
|
...mediaState3,
|
|
2849
2978
|
[key2]: next
|
|
2850
|
-
},
|
|
2979
|
+
}, updateCurrentState());
|
|
2851
2980
|
}
|
|
2852
|
-
update();
|
|
2853
2981
|
};
|
|
2854
2982
|
if (!(import_constants4.isWeb && import_constants4.isServer) && !process.env.IS_STATIC && setupVersion !== mediaVersion) {
|
|
2855
2983
|
setupVersion = mediaVersion, unlisten();
|
|
2856
2984
|
for (var key in mediaQueryConfig3) _loop(key);
|
|
2857
2985
|
}
|
|
2858
2986
|
}
|
|
2859
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
2860
|
-
function
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2987
|
+
var listeners = /* @__PURE__ */ new Set(), flushing = !1, flushVersion = -1;
|
|
2988
|
+
function updateCurrentState() {
|
|
2989
|
+
flushing && flushVersion === mediaVersion || (flushVersion = mediaVersion, flushing = !0, Promise.resolve().then(function() {
|
|
2990
|
+
flushing = !1, listeners.forEach(function(cb) {
|
|
2991
|
+
return cb(mediaState3);
|
|
2992
|
+
});
|
|
2993
|
+
}));
|
|
2864
2994
|
}
|
|
2865
2995
|
var States = /* @__PURE__ */ new WeakMap();
|
|
2866
2996
|
function setMediaShouldUpdate(ref, enabled, keys) {
|
|
@@ -2876,22 +3006,18 @@ var require_useMedia_native = __commonJS({
|
|
|
2876
3006
|
listeners.delete(subscriber);
|
|
2877
3007
|
};
|
|
2878
3008
|
}
|
|
3009
|
+
var CurrentKeysMap = /* @__PURE__ */ new WeakMap();
|
|
2879
3010
|
function useMedia3(cc, debug) {
|
|
2880
|
-
var
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
keys.size && keys.clear();
|
|
2886
|
-
var state = (0, import_react3.useSyncExternalStore)(subscribe, function() {
|
|
2887
|
-
if (componentState != null && componentState.enabled) return internalRef.current.lastState = mediaState3, mediaState3;
|
|
2888
|
-
var curKeys = (componentState == null ? void 0 : componentState.keys) || keys;
|
|
2889
|
-
if (!curKeys.size) return lastState;
|
|
3011
|
+
var disableSSR = (0, import_config.getSetting)("disableSSR") || (0, import_useDisableSSR.getDisableSSR)(cc), isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), initialState = isHydrated || disableSSR || !import_constants4.isWeb ? mediaState3 : initState, [state, setState] = import_react3.default.useState(initialState);
|
|
3012
|
+
CurrentKeysMap.get(setState) || CurrentKeysMap.set(setState, /* @__PURE__ */ new Set());
|
|
3013
|
+
var currentKeys = CurrentKeysMap.get(setState);
|
|
3014
|
+
function getSnapshot(cur) {
|
|
3015
|
+
if (!currentKeys) return cur;
|
|
2890
3016
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2891
3017
|
try {
|
|
2892
|
-
for (var _iterator =
|
|
3018
|
+
for (var _iterator = currentKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
2893
3019
|
var key = _step.value;
|
|
2894
|
-
if (mediaState3[key] !==
|
|
3020
|
+
if (mediaState3[key] !== cur[key]) return mediaState3;
|
|
2895
3021
|
}
|
|
2896
3022
|
} catch (err) {
|
|
2897
3023
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -2902,17 +3028,42 @@ var require_useMedia_native = __commonJS({
|
|
|
2902
3028
|
if (_didIteratorError) throw _iteratorError;
|
|
2903
3029
|
}
|
|
2904
3030
|
}
|
|
2905
|
-
return
|
|
2906
|
-
}
|
|
2907
|
-
|
|
3031
|
+
return cur;
|
|
3032
|
+
}
|
|
3033
|
+
var isRendering = !0, isInitialState = state === initialState;
|
|
3034
|
+
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
3035
|
+
isRendering = !1;
|
|
3036
|
+
}), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
3037
|
+
var update = function() {
|
|
3038
|
+
return setState(function(prev) {
|
|
3039
|
+
var next = getSnapshot(prev);
|
|
3040
|
+
return next;
|
|
3041
|
+
});
|
|
3042
|
+
};
|
|
3043
|
+
update();
|
|
3044
|
+
var tm = setTimeout(function() {
|
|
3045
|
+
currentKeys.size && update();
|
|
3046
|
+
}), dispose2 = subscribe(update);
|
|
3047
|
+
return function() {
|
|
3048
|
+
dispose2(), tm && clearTimeout(tm);
|
|
3049
|
+
};
|
|
3050
|
+
}, [
|
|
3051
|
+
setState
|
|
3052
|
+
]), new Proxy(state, {
|
|
2908
3053
|
get(_, key) {
|
|
2909
|
-
|
|
3054
|
+
if (isRendering && !disableMediaTouch && typeof key == "string") {
|
|
3055
|
+
currentKeys.add(key);
|
|
3056
|
+
var shouldUpdate = state[key] !== mediaState3[key];
|
|
3057
|
+
if (shouldUpdate && !isInitialState) {
|
|
3058
|
+
var next = getSnapshot(state);
|
|
3059
|
+
next !== state && setState(next);
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
return Reflect.get(state, key);
|
|
2910
3063
|
}
|
|
2911
3064
|
});
|
|
2912
3065
|
}
|
|
2913
|
-
var
|
|
2914
|
-
return initState;
|
|
2915
|
-
}, disableMediaTouch = !1;
|
|
3066
|
+
var disableMediaTouch = !1;
|
|
2916
3067
|
function _disableMediaTouch2(val) {
|
|
2917
3068
|
disableMediaTouch = val;
|
|
2918
3069
|
}
|
|
@@ -3118,7 +3269,7 @@ var require_compose_refs_native = __commonJS({
|
|
|
3118
3269
|
});
|
|
3119
3270
|
|
|
3120
3271
|
// ../../core/compose-refs/dist/cjs/index.native.js
|
|
3121
|
-
var
|
|
3272
|
+
var require_index_native12 = __commonJS({
|
|
3122
3273
|
"../../core/compose-refs/dist/cjs/index.native.js"(exports2, module2) {
|
|
3123
3274
|
"use strict";
|
|
3124
3275
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -4316,7 +4467,7 @@ var require_normalize_color = __commonJS({
|
|
|
4316
4467
|
});
|
|
4317
4468
|
|
|
4318
4469
|
// ../../core/normalize-css-color/dist/cjs/index.native.js
|
|
4319
|
-
var
|
|
4470
|
+
var require_index_native13 = __commonJS({
|
|
4320
4471
|
"../../core/normalize-css-color/dist/cjs/index.native.js"(exports2, module2) {
|
|
4321
4472
|
"use strict";
|
|
4322
4473
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -4439,7 +4590,7 @@ var require_normalizeColor_native = __commonJS({
|
|
|
4439
4590
|
}
|
|
4440
4591
|
});
|
|
4441
4592
|
module2.exports = __toCommonJS2(normalizeColor_exports);
|
|
4442
|
-
var import_normalize_css_color =
|
|
4593
|
+
var import_normalize_css_color = require_index_native13(), import_normalize_css_color2 = require_index_native13(), normalizeColor = function(color, opacity) {
|
|
4443
4594
|
if (color) {
|
|
4444
4595
|
if (color[0] === "$") return color;
|
|
4445
4596
|
if (color.startsWith("var(")) {
|
|
@@ -6141,7 +6292,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6141
6292
|
if (isMedia) {
|
|
6142
6293
|
if (!val2) return;
|
|
6143
6294
|
var hasSpace = val2.space, mediaKeyShort = key4.slice(isMedia == "theme" ? 7 : 1);
|
|
6144
|
-
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (
|
|
6295
|
+
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (typeof hasMedia != "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform" && !(0, import_isActivePlatform.isActivePlatform)(key4)) return;
|
|
6145
6296
|
if (shouldDoClasses) {
|
|
6146
6297
|
var mediaStyle = getSubStyle(styleState, key4, val2, !1);
|
|
6147
6298
|
if (hasSpace && (delete mediaStyle.space, mediaState3[mediaKeyShort])) {
|
|
@@ -6619,7 +6770,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6619
6770
|
var import_react3 = require("react"), callImmediate = function(cb) {
|
|
6620
6771
|
return cb();
|
|
6621
6772
|
};
|
|
6622
|
-
function createShallowSetState(setter, onlyAllow, transition,
|
|
6773
|
+
function createShallowSetState(setter, onlyAllow, transition, debugIn, callback) {
|
|
6774
|
+
var debug = !0;
|
|
6623
6775
|
return (0, import_react3.useCallback)(function(next) {
|
|
6624
6776
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
6625
6777
|
wrap(function() {
|
|
@@ -6632,7 +6784,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6632
6784
|
setter,
|
|
6633
6785
|
onlyAllow ? onlyAllow.join("") : "",
|
|
6634
6786
|
transition,
|
|
6635
|
-
debug
|
|
6787
|
+
debug,
|
|
6788
|
+
callback
|
|
6636
6789
|
]);
|
|
6637
6790
|
}
|
|
6638
6791
|
function mergeIfNotShallowEqual(prev, next, onlyAllow, debug) {
|
|
@@ -6697,7 +6850,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6697
6850
|
});
|
|
6698
6851
|
module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
|
|
6699
6852
|
var import_createShallowSetState = require_createShallowSetState_native(), import_useMedia = require_useMedia_native(), subscribeToContextGroup = function(param) {
|
|
6700
|
-
var {
|
|
6853
|
+
var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
|
|
6701
6854
|
if (pseudoGroups || mediaGroups) {
|
|
6702
6855
|
var _componentContext_groups_subscribe, _componentContext_groups, current = {
|
|
6703
6856
|
pseudo: {},
|
|
@@ -7504,75 +7657,6 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
7504
7657
|
}
|
|
7505
7658
|
});
|
|
7506
7659
|
|
|
7507
|
-
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
7508
|
-
var require_index_native13 = __commonJS({
|
|
7509
|
-
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
7510
|
-
"use strict";
|
|
7511
|
-
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7512
|
-
for (var name in all) __defProp2(target, name, {
|
|
7513
|
-
get: all[name],
|
|
7514
|
-
enumerable: !0
|
|
7515
|
-
});
|
|
7516
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
7517
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7518
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7519
|
-
for (var _loop = function() {
|
|
7520
|
-
var key = _step.value;
|
|
7521
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7522
|
-
get: function() {
|
|
7523
|
-
return from[key];
|
|
7524
|
-
},
|
|
7525
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7526
|
-
});
|
|
7527
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7528
|
-
} catch (err) {
|
|
7529
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
7530
|
-
} finally {
|
|
7531
|
-
try {
|
|
7532
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7533
|
-
} finally {
|
|
7534
|
-
if (_didIteratorError)
|
|
7535
|
-
throw _iteratorError;
|
|
7536
|
-
}
|
|
7537
|
-
}
|
|
7538
|
-
return to;
|
|
7539
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
7540
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
7541
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
7542
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
7543
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
7544
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
7545
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
7546
|
-
value: mod,
|
|
7547
|
-
enumerable: !0
|
|
7548
|
-
}) : target,
|
|
7549
|
-
mod
|
|
7550
|
-
);
|
|
7551
|
-
}, __toCommonJS2 = function(mod) {
|
|
7552
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7553
|
-
value: !0
|
|
7554
|
-
}), mod);
|
|
7555
|
-
}, index_exports2 = {};
|
|
7556
|
-
__export2(index_exports2, {
|
|
7557
|
-
useClientValue: function() {
|
|
7558
|
-
return useClientValue;
|
|
7559
|
-
},
|
|
7560
|
-
useDidFinishSSR: function() {
|
|
7561
|
-
return useDidFinishSSR2;
|
|
7562
|
-
}
|
|
7563
|
-
});
|
|
7564
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
7565
|
-
var React4 = __toESM2(require("react"));
|
|
7566
|
-
function useDidFinishSSR2(value) {
|
|
7567
|
-
return value ?? !0;
|
|
7568
|
-
}
|
|
7569
|
-
function useClientValue(value) {
|
|
7570
|
-
var done = useDidFinishSSR2();
|
|
7571
|
-
return done ? typeof value == "function" ? value() : value : void 0;
|
|
7572
|
-
}
|
|
7573
|
-
}
|
|
7574
|
-
});
|
|
7575
|
-
|
|
7576
7660
|
// ../../core/web/dist/cjs/hooks/useComponentState.native.js
|
|
7577
7661
|
var require_useComponentState_native = __commonJS({
|
|
7578
7662
|
"../../core/web/dist/cjs/hooks/useComponentState.native.js"(exports2, module2) {
|
|
@@ -7616,7 +7700,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
7616
7700
|
}
|
|
7617
7701
|
});
|
|
7618
7702
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
7619
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr =
|
|
7703
|
+
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native11(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, param, staticConfig, config) {
|
|
7620
7704
|
var { animationDriver, groups } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
|
|
7621
7705
|
stateRef.current || (stateRef.current = {});
|
|
7622
7706
|
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
|
|
@@ -7642,10 +7726,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
7642
7726
|
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (state.disabled = disabled, disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), setState({
|
|
7643
7727
|
...state
|
|
7644
7728
|
}));
|
|
7645
|
-
var groupName = props.group, setStateWrapper
|
|
7646
|
-
|
|
7647
|
-
var groupContextState = groups.state;
|
|
7648
|
-
setStateWrapper = function(state2) {
|
|
7729
|
+
var groupName = props.group, groupContextState = groups == null ? void 0 : groups.state, setStateWrapper = (0, import_react3.useMemo)(function() {
|
|
7730
|
+
if (groupContextState && groupName) return function(state2) {
|
|
7649
7731
|
curStateRef.group.emit(groupName, {
|
|
7650
7732
|
pseudo: state2
|
|
7651
7733
|
});
|
|
@@ -7655,8 +7737,11 @@ var require_useComponentState_native = __commonJS({
|
|
|
7655
7737
|
};
|
|
7656
7738
|
groupContextState[groupName] = next;
|
|
7657
7739
|
};
|
|
7658
|
-
}
|
|
7659
|
-
|
|
7740
|
+
}, [
|
|
7741
|
+
groupContextState,
|
|
7742
|
+
curStateRef,
|
|
7743
|
+
groupName
|
|
7744
|
+
]), setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
7660
7745
|
"disabled"
|
|
7661
7746
|
] : void 0, !1, props.debug, setStateWrapper);
|
|
7662
7747
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
@@ -7819,7 +7904,7 @@ var require_Slot_native = __commonJS({
|
|
|
7819
7904
|
}
|
|
7820
7905
|
});
|
|
7821
7906
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
7822
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
7907
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = require("react"), is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.memo)(/* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
7823
7908
|
var { children, ...slotProps } = props;
|
|
7824
7909
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
7825
7910
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
@@ -7934,7 +8019,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7934
8019
|
}
|
|
7935
8020
|
});
|
|
7936
8021
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
7937
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
8022
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), 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();
|
|
7938
8023
|
typeof document < "u" && (cancelTouches = function() {
|
|
7939
8024
|
componentSetStates.forEach(function(setState) {
|
|
7940
8025
|
return setState(function(prev) {
|
|
@@ -8036,7 +8121,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8036
8121
|
}
|
|
8037
8122
|
curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
|
|
8038
8123
|
var hasRuntimeMediaKeys = splitStyles.hasMedia && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && splitStyles.hasMedia === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
|
|
8039
|
-
(0, import_useMedia.setMediaShouldUpdate)(
|
|
8124
|
+
(0, import_useMedia.setMediaShouldUpdate)(stateRef, shouldListenForMedia, mediaListeningKeys);
|
|
8040
8125
|
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space } = splitStyles, propsWithAnimation = props, {
|
|
8041
8126
|
asChild,
|
|
8042
8127
|
children,
|
|
@@ -8113,18 +8198,17 @@ var require_createComponent_native = __commonJS({
|
|
|
8113
8198
|
unmounted: !1
|
|
8114
8199
|
});
|
|
8115
8200
|
}), function() {
|
|
8116
|
-
|
|
8201
|
+
tm && clearTimeout(tm);
|
|
8117
8202
|
};
|
|
8118
|
-
var dispose = (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8119
|
-
disabled,
|
|
8203
|
+
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8120
8204
|
componentContext,
|
|
8121
8205
|
setStateShallow,
|
|
8122
8206
|
state,
|
|
8123
8207
|
mediaGroups,
|
|
8124
8208
|
pseudoGroups
|
|
8125
|
-
});
|
|
8209
|
+
}) : null;
|
|
8126
8210
|
return function() {
|
|
8127
|
-
clearTimeout(tm), dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8211
|
+
tm && clearTimeout(tm), dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8128
8212
|
};
|
|
8129
8213
|
}
|
|
8130
8214
|
}, [
|
|
@@ -9110,6 +9194,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9110
9194
|
var import_constants4 = require_index_native6(), import_config = require_config_native(), import_createVariables = require_createVariables_native(), import_getThemeCSSRules = require_getThemeCSSRules_native(), import_insertStyleRule = require_insertStyleRule_native(), import_proxyThemeToParents = require_proxyThemeToParents_native(), import_registerCSSVariable = require_registerCSSVariable_native(), import_themes = require_themes_native(), import_useMedia = require_useMedia_native(), import_insertFont = require_insertFont_native(), import_Tamagui = require_Tamagui_native(), createdConfigs = /* @__PURE__ */ new WeakMap();
|
|
9111
9195
|
function createTamagui2(configIn) {
|
|
9112
9196
|
var _configIn_settings;
|
|
9197
|
+
if (globalThis.__tamaguiConfig) return console.warn("Warning: You somehow have duplicate Tamagui dependencies, this can cause issues. Tamagui is working around this by loading a previously loaded config in test mode. "), globalThis.__tamaguiConfig;
|
|
9113
9198
|
if (createdConfigs.has(configIn)) return configIn;
|
|
9114
9199
|
var tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
9115
9200
|
if (configIn.tokens) {
|
|
@@ -9255,7 +9340,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9255
9340
|
specificTokens,
|
|
9256
9341
|
defaultFontToken
|
|
9257
9342
|
};
|
|
9258
|
-
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0), import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
|
|
9343
|
+
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0), globalThis.__tamaguiConfig = config, import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
|
|
9259
9344
|
return cb(config);
|
|
9260
9345
|
}), import_config.configListeners.clear()), !1)
|
|
9261
9346
|
var _process_env_DEBUG;
|
|
@@ -10068,7 +10153,7 @@ var require_useIsTouchDevice_native = __commonJS({
|
|
|
10068
10153
|
}
|
|
10069
10154
|
});
|
|
10070
10155
|
module2.exports = __toCommonJS2(useIsTouchDevice_exports);
|
|
10071
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr =
|
|
10156
|
+
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native11(), useIsTouchDevice2 = function() {
|
|
10072
10157
|
return import_constants4.isWeb ? (0, import_use_did_finish_ssr.useDidFinishSSR)() ? import_constants4.isTouchable : !1 : !0;
|
|
10073
10158
|
};
|
|
10074
10159
|
}
|
|
@@ -10232,7 +10317,6 @@ var require_useProps_native = __commonJS({
|
|
|
10232
10317
|
return;
|
|
10233
10318
|
}
|
|
10234
10319
|
return (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
10235
|
-
disabled,
|
|
10236
10320
|
componentContext,
|
|
10237
10321
|
setStateShallow,
|
|
10238
10322
|
state,
|
|
@@ -10579,7 +10663,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10579
10663
|
}
|
|
10580
10664
|
});
|
|
10581
10665
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10582
|
-
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(), import_ThemeProvider = require_ThemeProvider_native()
|
|
10666
|
+
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(), import_ThemeProvider = require_ThemeProvider_native();
|
|
10583
10667
|
function TamaguiProvider2(param) {
|
|
10584
10668
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
10585
10669
|
return process.env.TAMAGUI_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -10592,9 +10676,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10592
10676
|
}, [
|
|
10593
10677
|
config,
|
|
10594
10678
|
disableInjectCSS
|
|
10595
|
-
]), (0,
|
|
10596
|
-
(0, import_useMedia.updateMediaListeners)();
|
|
10597
|
-
}, []), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
10679
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
10598
10680
|
children: [
|
|
10599
10681
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
10600
10682
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
@@ -10854,9 +10936,9 @@ var require_index_native14 = __commonJS({
|
|
|
10854
10936
|
__reExport2(index_exports2, require_FontLanguage_native(), module2.exports);
|
|
10855
10937
|
__reExport2(index_exports2, require_TamaguiProvider_native(), module2.exports);
|
|
10856
10938
|
__reExport2(index_exports2, require_Configuration_native(), module2.exports);
|
|
10857
|
-
__reExport2(index_exports2, require_index_native13(), module2.exports);
|
|
10858
|
-
__reExport2(index_exports2, require_index_native8(), module2.exports);
|
|
10859
10939
|
__reExport2(index_exports2, require_index_native11(), module2.exports);
|
|
10940
|
+
__reExport2(index_exports2, require_index_native8(), module2.exports);
|
|
10941
|
+
__reExport2(index_exports2, require_index_native12(), module2.exports);
|
|
10860
10942
|
__reExport2(index_exports2, require_index_native7(), module2.exports);
|
|
10861
10943
|
__reExport2(index_exports2, require_index_native6(), module2.exports);
|
|
10862
10944
|
__reExport2(index_exports2, require_setupHooks_native(), module2.exports);
|
|
@@ -13387,7 +13469,7 @@ var require_Collection_native = __commonJS({
|
|
|
13387
13469
|
}
|
|
13388
13470
|
});
|
|
13389
13471
|
module2.exports = __toCommonJS2(Collection_exports);
|
|
13390
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
13472
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_react3 = __toESM2(require("react"));
|
|
13391
13473
|
function createCollection(name) {
|
|
13392
13474
|
var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core12.createStyledContext)({
|
|
13393
13475
|
collectionRef: {
|
|
@@ -14915,7 +14997,7 @@ var require_Accordion_native = __commonJS({
|
|
|
14915
14997
|
}
|
|
14916
14998
|
});
|
|
14917
14999
|
module2.exports = __toCommonJS2(Accordion_exports);
|
|
14918
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native15(), import_collection = require_index_native19(), import_compose_refs =
|
|
15000
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native15(), import_collection = require_index_native19(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_stacks3 = require_index_native22(), import_text2 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native25(), import_web = require_index_native14(), React4 = __toESM2(require("react")), ACCORDION_NAME = "Accordion", ACCORDION_KEYS = [
|
|
14919
15001
|
"Home",
|
|
14920
15002
|
"End",
|
|
14921
15003
|
"ArrowDown",
|
|
@@ -17516,7 +17598,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17516
17598
|
}
|
|
17517
17599
|
});
|
|
17518
17600
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
17519
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs =
|
|
17601
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_portal2 = require_index_native28(), import_react3 = __toESM2(require("react")), import_react_native4 = require("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) {
|
|
17520
17602
|
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, {
|
|
17521
17603
|
onOverlayComponent: setOverlayComponent
|
|
17522
17604
|
}), { frameSize, setFrameSize, snapPoints, snapPointsMode, hasFit, position, setPosition, scrollBridge, screenSize, setMaxContentSize, maxSnapPoint } = providerProps, { open, controller, isHidden } = state, sheetRef = import_react3.default.useRef(null), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef, providerProps.contentRef), { animationDriver } = (0, import_core12.useConfiguration)(), animationConfig = function() {
|
|
@@ -17965,7 +18047,7 @@ var require_SheetScrollView_native = __commonJS({
|
|
|
17965
18047
|
}
|
|
17966
18048
|
});
|
|
17967
18049
|
module2.exports = __toCommonJS2(SheetScrollView_exports);
|
|
17968
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_compose_refs =
|
|
18050
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_compose_refs = require_index_native12(), import_scroll_view = require_index_native35(), import_SheetContext = require_SheetContext_native(), SHEET_SCROLL_VIEW_NAME = "SheetScrollView", SheetScrollView = /* @__PURE__ */ import_react3.default.forwardRef(function(param, ref) {
|
|
17969
18051
|
var { __scopeSheet, children, onScroll, ...props } = param, context = (0, import_SheetContext.useSheetContext)(SHEET_SCROLL_VIEW_NAME, __scopeSheet), { scrollBridge } = context, scrollRef = import_react3.default.useRef(null), state = import_react3.default.useRef({
|
|
17970
18052
|
lastPageY: 0,
|
|
17971
18053
|
dragAt: 0,
|
|
@@ -18154,7 +18236,7 @@ var require_createSheet_native = __commonJS({
|
|
|
18154
18236
|
}
|
|
18155
18237
|
});
|
|
18156
18238
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
18157
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
18239
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_helpers = require_index_native7(), import_remove_scroll = require_index_native34(), import_use_did_finish_ssr = require_index_native11(), import_react3 = require("react"), import_react_native4 = require("react-native"), import_constants22 = require_constants_native4(), import_nativeSheet = require_nativeSheet_native(), import_SheetContext = require_SheetContext_native(), import_SheetImplementationCustom = require_SheetImplementationCustom_native(), import_SheetScrollView = require_SheetScrollView_native(), import_useSheetController = require_useSheetController_native(), import_useSheetOffscreenSize = require_useSheetOffscreenSize_native();
|
|
18158
18240
|
function createSheet(param) {
|
|
18159
18241
|
var { Handle, Frame, Overlay } = param, SheetHandle = Handle.styleable(function(param2, forwardedRef) {
|
|
18160
18242
|
var { __scopeSheet, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef);
|
|
@@ -18194,27 +18276,24 @@ var require_createSheet_native = __commonJS({
|
|
|
18194
18276
|
]), context.onlyShowFrame, null;
|
|
18195
18277
|
})), SheetFrame = Frame.extractable(/* @__PURE__ */ (0, import_react3.forwardRef)(function(param2, forwardedRef) {
|
|
18196
18278
|
var { __scopeSheet, adjustPaddingForOffscreenContent, disableHideBottomOverflow, children, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_NAME, __scopeSheet), { hasFit, removeScrollEnabled, frameSize, contentRef, open } = context, composedContentRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), offscreenSize = (0, import_useSheetOffscreenSize.useSheetOffscreenSize)(context), sheetContents = (0, import_react3.useMemo)(function() {
|
|
18197
|
-
return
|
|
18198
|
-
|
|
18199
|
-
|
|
18200
|
-
|
|
18201
|
-
|
|
18202
|
-
|
|
18203
|
-
|
|
18204
|
-
|
|
18205
|
-
|
|
18206
|
-
|
|
18207
|
-
|
|
18208
|
-
|
|
18209
|
-
|
|
18210
|
-
|
|
18211
|
-
|
|
18212
|
-
|
|
18213
|
-
|
|
18214
|
-
|
|
18215
|
-
})
|
|
18216
|
-
)
|
|
18217
|
-
});
|
|
18279
|
+
return (
|
|
18280
|
+
// @ts-ignore
|
|
18281
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Frame, {
|
|
18282
|
+
ref: composedContentRef,
|
|
18283
|
+
flex: hasFit ? 0 : 1,
|
|
18284
|
+
height: hasFit ? void 0 : frameSize,
|
|
18285
|
+
pointerEvents: open ? "auto" : "none",
|
|
18286
|
+
...props,
|
|
18287
|
+
children: [
|
|
18288
|
+
children,
|
|
18289
|
+
adjustPaddingForOffscreenContent && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
18290
|
+
"data-sheet-offscreen-pad": !0,
|
|
18291
|
+
height: offscreenSize,
|
|
18292
|
+
width: "100%"
|
|
18293
|
+
})
|
|
18294
|
+
]
|
|
18295
|
+
})
|
|
18296
|
+
);
|
|
18218
18297
|
}, [
|
|
18219
18298
|
open,
|
|
18220
18299
|
props,
|
|
@@ -18724,7 +18803,7 @@ var require_Dialog_native = __commonJS({
|
|
|
18724
18803
|
}
|
|
18725
18804
|
});
|
|
18726
18805
|
module2.exports = __toCommonJS2(Dialog_exports);
|
|
18727
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs =
|
|
18806
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_create_context = require_index_native30(), import_dismissable = require_index_native32(), import_focus_scope = require_index_native33(), import_helpers = require_index_native7(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_text2 = require_index_native24(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), DIALOG_NAME = "Dialog", [createDialogContext, createDialogScope] = (0, import_create_context.createContextScope)(DIALOG_NAME), [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME), TRIGGER_NAME = "DialogTrigger", DialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
18728
18807
|
name: TRIGGER_NAME
|
|
18729
18808
|
}), DialogTrigger = DialogTriggerFrame.styleable(function(props, forwardedRef) {
|
|
18730
18809
|
var { __scopeDialog, ...triggerProps } = props, isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext), context = useDialogContext(TRIGGER_NAME, __scopeDialog), composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
@@ -18751,6 +18830,7 @@ var require_Dialog_native = __commonJS({
|
|
|
18751
18830
|
alignItems: "center",
|
|
18752
18831
|
justifyContent: "center",
|
|
18753
18832
|
fullscreen: !0,
|
|
18833
|
+
zIndex: 1e5,
|
|
18754
18834
|
...import_constants4.isWeb && {
|
|
18755
18835
|
maxHeight: "100vh",
|
|
18756
18836
|
position: "fixed"
|
|
@@ -18785,12 +18865,9 @@ var require_Dialog_native = __commonJS({
|
|
|
18785
18865
|
setIsFullyHidden(!0);
|
|
18786
18866
|
}, []);
|
|
18787
18867
|
if (context.modal) {
|
|
18788
|
-
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
18789
|
-
|
|
18790
|
-
children:
|
|
18791
|
-
onExitComplete: handleExitComplete,
|
|
18792
|
-
children: isShowing || isAdapted ? children : null
|
|
18793
|
-
})
|
|
18868
|
+
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
|
|
18869
|
+
onExitComplete: handleExitComplete,
|
|
18870
|
+
children: isShowing || isAdapted ? children : null
|
|
18794
18871
|
});
|
|
18795
18872
|
if (isFullyHidden && !isAdapted) return null;
|
|
18796
18873
|
var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalProvider2, {
|
|
@@ -18802,15 +18879,16 @@ var require_Dialog_native = __commonJS({
|
|
|
18802
18879
|
children: contents
|
|
18803
18880
|
})
|
|
18804
18881
|
});
|
|
18805
|
-
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
|
|
18811
|
-
|
|
18812
|
-
})
|
|
18813
|
-
}
|
|
18882
|
+
if (import_constants4.isWeb) {
|
|
18883
|
+
var _props_zIndex;
|
|
18884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
18885
|
+
zIndex: (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 1e5,
|
|
18886
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PassthroughTheme, {
|
|
18887
|
+
children: framedContents
|
|
18888
|
+
})
|
|
18889
|
+
});
|
|
18890
|
+
}
|
|
18891
|
+
return framedContents;
|
|
18814
18892
|
}
|
|
18815
18893
|
return children;
|
|
18816
18894
|
}, PassthroughTheme = function(param) {
|
|
@@ -18856,16 +18934,14 @@ var require_Dialog_native = __commonJS({
|
|
|
18856
18934
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
18857
18935
|
}
|
|
18858
18936
|
}), DialogContent = DialogContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
|
|
18859
|
-
var { __scopeDialog, ...props } = param, portalContext = usePortalContext(CONTENT_NAME, __scopeDialog), { forceMount = portalContext.forceMount, ...contentProps } = props, context = useDialogContext(CONTENT_NAME, __scopeDialog), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
18860
|
-
|
|
18861
|
-
|
|
18862
|
-
|
|
18863
|
-
|
|
18864
|
-
|
|
18865
|
-
|
|
18866
|
-
|
|
18867
|
-
ref: forwardedRef
|
|
18868
|
-
})
|
|
18937
|
+
var { __scopeDialog, ...props } = param, portalContext = usePortalContext(CONTENT_NAME, __scopeDialog), { forceMount = portalContext.forceMount, ...contentProps } = props, context = useDialogContext(CONTENT_NAME, __scopeDialog), contents = context.modal ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentModal, {
|
|
18938
|
+
context,
|
|
18939
|
+
...contentProps,
|
|
18940
|
+
ref: forwardedRef
|
|
18941
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentNonModal, {
|
|
18942
|
+
context,
|
|
18943
|
+
...contentProps,
|
|
18944
|
+
ref: forwardedRef
|
|
18869
18945
|
});
|
|
18870
18946
|
return !import_constants4.isWeb || context.disableRemoveScroll ? contents : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_remove_scroll.RemoveScroll, {
|
|
18871
18947
|
forwardProps: !0,
|
|
@@ -19227,7 +19303,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
19227
19303
|
}
|
|
19228
19304
|
});
|
|
19229
19305
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
19230
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
19306
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_create_context = require_index_native30(), import_dialog = require_index_native37(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require("react-native"), ROOT_NAME = "AlertDialog", [createAlertDialogContext, createAlertDialogScope] = (0, import_create_context.createContextScope)(ROOT_NAME, [
|
|
19231
19307
|
import_dialog.createDialogScope
|
|
19232
19308
|
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
19233
19309
|
name: TRIGGER_NAME
|
|
@@ -21082,7 +21158,7 @@ var require_focusableInputHOC_native = __commonJS({
|
|
|
21082
21158
|
}
|
|
21083
21159
|
});
|
|
21084
21160
|
module2.exports = __toCommonJS2(focusableInputHOC_exports);
|
|
21085
|
-
var import_compose_refs =
|
|
21161
|
+
var import_compose_refs = require_index_native12(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_registerFocusable = require_registerFocusable_native();
|
|
21086
21162
|
function useFocusable2(param) {
|
|
21087
21163
|
var { isInput, props, ref } = param, { id, onChangeText, value, defaultValue } = props, inputValue = import_react3.default.useRef(value || defaultValue || ""), unregisterFocusable = import_react3.default.useRef(), inputRef = import_react3.default.useCallback(function(input) {
|
|
21088
21164
|
var _unregisterFocusable_current;
|
|
@@ -21252,7 +21328,7 @@ var require_Label_native = __commonJS({
|
|
|
21252
21328
|
}
|
|
21253
21329
|
});
|
|
21254
21330
|
module2.exports = __toCommonJS2(Label_exports);
|
|
21255
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
21331
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_create_context = require_index_native30(), import_focusable2 = require_index_native46(), import_get_button_sized2 = require_index_native21(), import_get_font_sized2 = require_index_native23(), import_text2 = require_index_native24(), import_web = require_index_native14(), React4 = __toESM2(require("react")), NAME = "Label", [LabelProvider, useLabelContextImpl] = (0, import_create_context.createContext)(NAME, {
|
|
21256
21332
|
id: void 0,
|
|
21257
21333
|
controlRef: {
|
|
21258
21334
|
current: null
|
|
@@ -21664,7 +21740,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
21664
21740
|
}
|
|
21665
21741
|
});
|
|
21666
21742
|
module2.exports = __toCommonJS2(useCheckbox_exports);
|
|
21667
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
21743
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_react3 = __toESM2(require("react")), import_BubbleInput = require_BubbleInput_native(), import_utils3 = require_utils_native2();
|
|
21668
21744
|
function useCheckbox(props, param, ref) {
|
|
21669
21745
|
var [checked, setChecked] = param, { labelledBy: ariaLabelledby, name, required, disabled, value = "on", onCheckedChange, ...checkboxProps } = props, [button, setButton] = import_react3.default.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(ref, setButton), hasConsumerStoppedPropagationRef = import_react3.default.useRef(!1), isFormControl = import_constants4.isWeb ? button ? !!button.closest("form") : !0 : !1, labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId, parentKeyDown = props.onKeyDown, handleKeyDown = (0, import_react3.useMemo)(function() {
|
|
21670
21746
|
return (0, import_helpers.composeEventHandlers)(parentKeyDown, function(event) {
|
|
@@ -24382,7 +24458,7 @@ var require_Popper_native = __commonJS({
|
|
|
24382
24458
|
}
|
|
24383
24459
|
});
|
|
24384
24460
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
24385
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
24461
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_floating = require_index_native56(), import_get_token2 = require_index_native20(), import_stacks3 = require_index_native22(), import_start_transition = require_index_native9(), React4 = __toESM2(require("react")), import_react_native4 = require("react-native"), PopperContext = (0, import_core12.createStyledContext)({}), { useStyledContext: usePopperContext, Provider: PopperProvider } = PopperContext, checkFloating = {
|
|
24386
24462
|
name: "checkFloating",
|
|
24387
24463
|
fn(data) {
|
|
24388
24464
|
return {
|
|
@@ -24794,7 +24870,7 @@ var require_Popover_native = __commonJS({
|
|
|
24794
24870
|
}
|
|
24795
24871
|
});
|
|
24796
24872
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
24797
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native29(), import_animate = require_index_native55(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs =
|
|
24873
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native29(), import_animate = require_index_native55(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_floating = require_index_native56(), import_focus_scope = require_index_native33(), import_helpers = require_index_native7(), import_popper = require_index_native57(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core12.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24798
24874
|
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
24799
24875
|
return React4.useEffect(function() {
|
|
24800
24876
|
return onCustomAnchorAdd(), function() {
|
|
@@ -24850,20 +24926,18 @@ var require_Popover_native = __commonJS({
|
|
|
24850
24926
|
});
|
|
24851
24927
|
}), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24852
24928
|
var { allowPinchZoom, trapFocus, disableRemoveScroll = !0, zIndex, __scopePopover, ...contentImplProps } = props, context = usePopoverContext(__scopePopover), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isRightClickOutsideRef = React4.useRef(!1), [isFullyHidden, setIsFullyHidden] = React4.useState(!context.open);
|
|
24853
|
-
|
|
24929
|
+
return context.open && isFullyHidden && setIsFullyHidden(!1), React4.useEffect(function() {
|
|
24854
24930
|
if (context.open) {
|
|
24855
24931
|
var content = contentRef.current;
|
|
24856
24932
|
if (content) return (0, import_aria_hidden.hideOthers)(content);
|
|
24857
24933
|
}
|
|
24858
24934
|
}, [
|
|
24859
24935
|
context.open
|
|
24860
|
-
]), !context.keepChildrenMounted && isFullyHidden
|
|
24861
|
-
var _contentImplProps_pointerEvents;
|
|
24862
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
24936
|
+
]), !context.keepChildrenMounted && isFullyHidden ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
24863
24937
|
__scopePopover,
|
|
24864
|
-
zIndex,
|
|
24938
|
+
zIndex: props.zIndex,
|
|
24865
24939
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
24866
|
-
pointerEvents: context.open ?
|
|
24940
|
+
pointerEvents: context.open ? "auto" : "none",
|
|
24867
24941
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentImpl, {
|
|
24868
24942
|
...contentImplProps,
|
|
24869
24943
|
disableRemoveScroll,
|
|
@@ -24909,7 +24983,7 @@ var require_Popover_native = __commonJS({
|
|
|
24909
24983
|
});
|
|
24910
24984
|
}
|
|
24911
24985
|
function PopoverContentPortal(props) {
|
|
24912
|
-
var { __scopePopover } = props, zIndex = props.zIndex, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core12.useThemeName)(), adaptContext = (0, import_adapt.useAdaptContext)(), contents = props.children;
|
|
24986
|
+
var { __scopePopover } = props, _props_zIndex, zIndex = (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core12.useThemeName)(), adaptContext = (0, import_adapt.useAdaptContext)(), contents = props.children;
|
|
24913
24987
|
return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverRepropagateContext, {
|
|
24914
24988
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
24915
24989
|
popperContext,
|
|
@@ -24917,7 +24991,6 @@ var require_Popover_native = __commonJS({
|
|
|
24917
24991
|
adaptContext,
|
|
24918
24992
|
children: props.children
|
|
24919
24993
|
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
24920
|
-
stackZIndex: !0,
|
|
24921
24994
|
zIndex,
|
|
24922
24995
|
children: (
|
|
24923
24996
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
@@ -24930,10 +25003,7 @@ var require_Popover_native = __commonJS({
|
|
|
24930
25003
|
fullscreen: !0,
|
|
24931
25004
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
|
|
24932
25005
|
}),
|
|
24933
|
-
|
|
24934
|
-
zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
|
|
24935
|
-
children: contents
|
|
24936
|
-
})
|
|
25006
|
+
contents
|
|
24937
25007
|
]
|
|
24938
25008
|
})
|
|
24939
25009
|
)
|
|
@@ -25706,7 +25776,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
25706
25776
|
}
|
|
25707
25777
|
});
|
|
25708
25778
|
module2.exports = __toCommonJS2(useRadioGroup_exports);
|
|
25709
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
25779
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_focusable2 = require_index_native46(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_use_controllable_state = require_index_native10(), import_react3 = require("react"), import_BubbleInput = require_BubbleInput_native2(), import_utils3 = require_utils_native3();
|
|
25710
25780
|
function useRadioGroup(params) {
|
|
25711
25781
|
var { value: valueProp, onValueChange, defaultValue, required, disabled, name, native, accentColor, orientation, ref } = params, [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
25712
25782
|
prop: valueProp,
|
|
@@ -26788,7 +26858,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
26788
26858
|
}
|
|
26789
26859
|
});
|
|
26790
26860
|
module2.exports = __toCommonJS2(SelectItem_exports);
|
|
26791
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
26861
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_list_item = require_index_native54(), React4 = __toESM2(require("react")), import_context = require_context_native2(), ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext] = (0, import_context.createSelectContext)(ITEM_NAME), SelectItem = import_list_item.ListItemFrame.styleable(function(props, forwardedRef) {
|
|
26792
26862
|
var { __scopeSelect, value, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
|
|
26793
26863
|
...!props.unstyled && {
|
|
26794
26864
|
ellipse: !0
|
|
@@ -26953,7 +27023,7 @@ var require_SelectItemText_native = __commonJS({
|
|
|
26953
27023
|
}
|
|
26954
27024
|
});
|
|
26955
27025
|
module2.exports = __toCommonJS2(SelectItemText_exports);
|
|
26956
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27026
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_core12 = require_index_native18(), import_text2 = require_index_native24(), React4 = __toESM2(require("react")), import_context = require_context_native2(), import_SelectItem = require_SelectItem_native(), ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = (0, import_core12.styled)(import_text2.SizableText, {
|
|
26957
27027
|
name: ITEM_TEXT_NAME,
|
|
26958
27028
|
variants: {
|
|
26959
27029
|
unstyled: {
|
|
@@ -27101,7 +27171,7 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
27101
27171
|
}
|
|
27102
27172
|
});
|
|
27103
27173
|
module2.exports = __toCommonJS2(SelectTrigger_exports);
|
|
27104
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27174
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_core12 = require_index_native18(), import_list_item = require_index_native54(), React4 = __toESM2(require("react")), import_context = require_context_native2(), TRIGGER_NAME = "SelectTrigger", isPointerCoarse = import_core12.isWeb && import_core12.isClient ? window.matchMedia("(pointer:coarse)").matches : !0, SelectTrigger = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
27105
27175
|
var _context_floatingContext, { __scopeSelect, disabled = !1, unstyled = !1, ...triggerProps } = props, context = (0, import_context.useSelectContext)(TRIGGER_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(TRIGGER_NAME, __scopeSelect), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (_context_floatingContext = context.floatingContext) === null || _context_floatingContext === void 0 ? void 0 : _context_floatingContext.refs.setReference);
|
|
27106
27176
|
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItem, {
|
|
27107
27177
|
componentName: TRIGGER_NAME,
|
|
@@ -27317,7 +27387,7 @@ var require_Select_native = __commonJS({
|
|
|
27317
27387
|
}
|
|
27318
27388
|
});
|
|
27319
27389
|
module2.exports = __toCommonJS2(Select_exports);
|
|
27320
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_compose_refs =
|
|
27390
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_focusable2 = require_index_native46(), import_get_token2 = require_index_native20(), import_helpers = require_index_native7(), import_list_item = require_index_native54(), import_separator = require_index_native63(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_text2 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_use_debounce = require_index_native64(), React4 = __toESM2(require("react")), import_context = require_context_native2(), import_SelectContent = require_SelectContent_native(), import_SelectImpl = require_SelectImpl_native(), import_SelectItem = require_SelectItem_native(), import_SelectItemText = require_SelectItemText_native(), import_SelectScrollButton = require_SelectScrollButton_native(), import_SelectTrigger = require_SelectTrigger_native(), import_SelectViewport = require_SelectViewport_native(), import_useSelectBreakpointActive = require_useSelectBreakpointActive_native(), VALUE_NAME = "SelectValue", SelectValueFrame = (0, import_core12.styled)(import_text2.SizableText, {
|
|
27321
27391
|
name: VALUE_NAME,
|
|
27322
27392
|
userSelect: "none"
|
|
27323
27393
|
}), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
|
|
@@ -28092,7 +28162,7 @@ var require_Slider_native = __commonJS({
|
|
|
28092
28162
|
}
|
|
28093
28163
|
});
|
|
28094
28164
|
module2.exports = __toCommonJS2(Slider_exports);
|
|
28095
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
28165
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_get_token2 = require_index_native20(), import_helpers = require_index_native7(), import_helpers2 = require_index_native7(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native25(), React4 = __toESM2(require("react")), import_constants22 = require_constants_native6(), import_helpers3 = require_helpers_native3(), import_SliderImpl = require_SliderImpl_native(), activeSliderMeasureListeners = /* @__PURE__ */ new Set();
|
|
28096
28166
|
import_constants4.isWeb && import_constants4.isClient && !process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL && ((_setInterval = setInterval) === null || _setInterval === void 0 || _setInterval(
|
|
28097
28167
|
function() {
|
|
28098
28168
|
activeSliderMeasureListeners.forEach(function(cb) {
|
|
@@ -28633,7 +28703,7 @@ var require_useSwitch_native = __commonJS({
|
|
|
28633
28703
|
}
|
|
28634
28704
|
});
|
|
28635
28705
|
module2.exports = __toCommonJS2(useSwitch_exports);
|
|
28636
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
28706
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_use_previous = require_index_native48(), React4 = __toESM2(require("react"));
|
|
28637
28707
|
function useSwitch(props, param, ref) {
|
|
28638
28708
|
var [checked, setChecked] = param;
|
|
28639
28709
|
return {
|
|
@@ -29156,7 +29226,7 @@ var require_Tabs_native = __commonJS({
|
|
|
29156
29226
|
}
|
|
29157
29227
|
});
|
|
29158
29228
|
module2.exports = __toCommonJS2(Tabs_exports);
|
|
29159
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
29229
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_get_button_sized2 = require_index_native21(), import_group = require_index_native52(), import_helpers = require_index_native7(), import_roving_focus = require_index_native61(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native25(), import_web = require_index_native14(), React4 = __toESM2(require("react")), TABS_CONTEXT = "TabsContext", TAB_LIST_NAME = "TabsList", TabsList = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
29160
29230
|
var { __scopeTabs, loop = !0, children, ...listProps } = props, context = useTabsContext(__scopeTabs);
|
|
29161
29231
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
29162
29232
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
@@ -30687,7 +30757,7 @@ __reExport(index_exports, __toESM(require_index_native41()), module.exports);
|
|
|
30687
30757
|
__reExport(index_exports, __toESM(require_index_native44()), module.exports);
|
|
30688
30758
|
__reExport(index_exports, __toESM(require_index_native45()), module.exports);
|
|
30689
30759
|
__reExport(index_exports, __toESM(require_index_native50()), module.exports);
|
|
30690
|
-
__reExport(index_exports, __toESM(
|
|
30760
|
+
__reExport(index_exports, __toESM(require_index_native12()), module.exports);
|
|
30691
30761
|
__reExport(index_exports, __toESM(require_index_native30()), module.exports);
|
|
30692
30762
|
__reExport(index_exports, __toESM(require_index_native37()), module.exports);
|
|
30693
30763
|
__reExport(index_exports, __toESM(require_index_native42()), module.exports);
|