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/native.js
CHANGED
|
@@ -2729,6 +2729,75 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2729
2729
|
}
|
|
2730
2730
|
});
|
|
2731
2731
|
|
|
2732
|
+
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
2733
|
+
var require_index_native11 = __commonJS({
|
|
2734
|
+
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
2735
|
+
"use strict";
|
|
2736
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2737
|
+
for (var name in all) __defProp2(target, name, {
|
|
2738
|
+
get: all[name],
|
|
2739
|
+
enumerable: !0
|
|
2740
|
+
});
|
|
2741
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2742
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2743
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2744
|
+
for (var _loop = function() {
|
|
2745
|
+
var key = _step.value;
|
|
2746
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2747
|
+
get: function() {
|
|
2748
|
+
return from[key];
|
|
2749
|
+
},
|
|
2750
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2751
|
+
});
|
|
2752
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2753
|
+
} catch (err) {
|
|
2754
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2755
|
+
} finally {
|
|
2756
|
+
try {
|
|
2757
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2758
|
+
} finally {
|
|
2759
|
+
if (_didIteratorError)
|
|
2760
|
+
throw _iteratorError;
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
return to;
|
|
2764
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
2765
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
2766
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
2767
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
2768
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2769
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2770
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
2771
|
+
value: mod,
|
|
2772
|
+
enumerable: !0
|
|
2773
|
+
}) : target,
|
|
2774
|
+
mod
|
|
2775
|
+
);
|
|
2776
|
+
}, __toCommonJS2 = function(mod) {
|
|
2777
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2778
|
+
value: !0
|
|
2779
|
+
}), mod);
|
|
2780
|
+
}, index_exports2 = {};
|
|
2781
|
+
__export2(index_exports2, {
|
|
2782
|
+
useClientValue: function() {
|
|
2783
|
+
return useClientValue;
|
|
2784
|
+
},
|
|
2785
|
+
useDidFinishSSR: function() {
|
|
2786
|
+
return useDidFinishSSR2;
|
|
2787
|
+
}
|
|
2788
|
+
});
|
|
2789
|
+
module2.exports = __toCommonJS2(index_exports2);
|
|
2790
|
+
var React4 = __toESM2(require("react"));
|
|
2791
|
+
function useDidFinishSSR2(value) {
|
|
2792
|
+
return value ?? !0;
|
|
2793
|
+
}
|
|
2794
|
+
function useClientValue(value) {
|
|
2795
|
+
var done = useDidFinishSSR2();
|
|
2796
|
+
return done ? typeof value == "function" ? value() : value : void 0;
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
});
|
|
2800
|
+
|
|
2732
2801
|
// ../../core/web/dist/cjs/helpers/matchMedia.native.js
|
|
2733
2802
|
var require_matchMedia_native = __commonJS({
|
|
2734
2803
|
"../../core/web/dist/cjs/helpers/matchMedia.native.js"(exports2, module2) {
|
|
@@ -2898,11 +2967,62 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
2898
2967
|
}
|
|
2899
2968
|
});
|
|
2900
2969
|
|
|
2970
|
+
// ../../core/web/dist/cjs/hooks/useDisableSSR.native.js
|
|
2971
|
+
var require_useDisableSSR_native = __commonJS({
|
|
2972
|
+
"../../core/web/dist/cjs/hooks/useDisableSSR.native.js"(exports2, module2) {
|
|
2973
|
+
"use strict";
|
|
2974
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2975
|
+
for (var name in all) __defProp2(target, name, {
|
|
2976
|
+
get: all[name],
|
|
2977
|
+
enumerable: !0
|
|
2978
|
+
});
|
|
2979
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
2980
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2981
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2982
|
+
for (var _loop = function() {
|
|
2983
|
+
var key = _step.value;
|
|
2984
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2985
|
+
get: function() {
|
|
2986
|
+
return from[key];
|
|
2987
|
+
},
|
|
2988
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2989
|
+
});
|
|
2990
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2991
|
+
} catch (err) {
|
|
2992
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
2993
|
+
} finally {
|
|
2994
|
+
try {
|
|
2995
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2996
|
+
} finally {
|
|
2997
|
+
if (_didIteratorError)
|
|
2998
|
+
throw _iteratorError;
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
return to;
|
|
3002
|
+
}, __toCommonJS2 = function(mod) {
|
|
3003
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3004
|
+
value: !0
|
|
3005
|
+
}), mod);
|
|
3006
|
+
}, useDisableSSR_exports = {};
|
|
3007
|
+
__export2(useDisableSSR_exports, {
|
|
3008
|
+
getDisableSSR: function() {
|
|
3009
|
+
return getDisableSSR;
|
|
3010
|
+
}
|
|
3011
|
+
});
|
|
3012
|
+
module2.exports = __toCommonJS2(useDisableSSR_exports);
|
|
3013
|
+
var import_config = require_config_native();
|
|
3014
|
+
function getDisableSSR(componentContext) {
|
|
3015
|
+
var _componentContext_disableSSR;
|
|
3016
|
+
return (_componentContext_disableSSR = componentContext == null ? void 0 : componentContext.disableSSR) !== null && _componentContext_disableSSR !== void 0 ? _componentContext_disableSSR : (0, import_config.getSetting)("disableSSR");
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
});
|
|
3020
|
+
|
|
2901
3021
|
// ../../core/web/dist/cjs/hooks/useMedia.native.js
|
|
2902
3022
|
var require_useMedia_native = __commonJS({
|
|
2903
3023
|
"../../core/web/dist/cjs/hooks/useMedia.native.js"(exports2, module2) {
|
|
2904
3024
|
"use strict";
|
|
2905
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3025
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2906
3026
|
for (var name in all) __defProp2(target, name, {
|
|
2907
3027
|
get: all[name],
|
|
2908
3028
|
enumerable: !0
|
|
@@ -2930,6 +3050,18 @@ var require_useMedia_native = __commonJS({
|
|
|
2930
3050
|
}
|
|
2931
3051
|
}
|
|
2932
3052
|
return to;
|
|
3053
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
3054
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
3055
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
3056
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
3057
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
3058
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
3059
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
3060
|
+
value: mod,
|
|
3061
|
+
enumerable: !0
|
|
3062
|
+
}) : target,
|
|
3063
|
+
mod
|
|
3064
|
+
);
|
|
2933
3065
|
}, __toCommonJS2 = function(mod) {
|
|
2934
3066
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2935
3067
|
value: !0
|
|
@@ -2981,15 +3113,12 @@ var require_useMedia_native = __commonJS({
|
|
|
2981
3113
|
setupMediaListeners: function() {
|
|
2982
3114
|
return setupMediaListeners;
|
|
2983
3115
|
},
|
|
2984
|
-
updateMediaListeners: function() {
|
|
2985
|
-
return updateMediaListeners;
|
|
2986
|
-
},
|
|
2987
3116
|
useMedia: function() {
|
|
2988
3117
|
return useMedia3;
|
|
2989
3118
|
}
|
|
2990
3119
|
});
|
|
2991
3120
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
2992
|
-
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 = (
|
|
3121
|
+
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 = (
|
|
2993
3122
|
// development only safeguard
|
|
2994
3123
|
process.env.NODE_ENV === "development" ? new Proxy({}, {
|
|
2995
3124
|
get(target, key) {
|
|
@@ -3035,26 +3164,27 @@ var require_useMedia_native = __commonJS({
|
|
|
3035
3164
|
if (!match) throw new Error("\u26A0\uFE0F No match");
|
|
3036
3165
|
match.addListener(update), dispose.add(function() {
|
|
3037
3166
|
match.removeListener(update);
|
|
3038
|
-
});
|
|
3167
|
+
}), update();
|
|
3039
3168
|
function update() {
|
|
3040
3169
|
var next = !!getMatch().matches;
|
|
3041
3170
|
next !== mediaState3[key2] && (mediaState3 = {
|
|
3042
3171
|
...mediaState3,
|
|
3043
3172
|
[key2]: next
|
|
3044
|
-
},
|
|
3173
|
+
}, updateCurrentState());
|
|
3045
3174
|
}
|
|
3046
|
-
update();
|
|
3047
3175
|
};
|
|
3048
3176
|
if (!(import_constants4.isWeb && import_constants4.isServer) && !process.env.IS_STATIC && setupVersion !== mediaVersion) {
|
|
3049
3177
|
setupVersion = mediaVersion, unlisten();
|
|
3050
3178
|
for (var key in mediaQueryConfig3) _loop(key);
|
|
3051
3179
|
}
|
|
3052
3180
|
}
|
|
3053
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
3054
|
-
function
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3181
|
+
var listeners = /* @__PURE__ */ new Set(), flushing = !1, flushVersion = -1;
|
|
3182
|
+
function updateCurrentState() {
|
|
3183
|
+
flushing && flushVersion === mediaVersion || (flushVersion = mediaVersion, flushing = !0, Promise.resolve().then(function() {
|
|
3184
|
+
flushing = !1, listeners.forEach(function(cb) {
|
|
3185
|
+
return cb(mediaState3);
|
|
3186
|
+
});
|
|
3187
|
+
}));
|
|
3058
3188
|
}
|
|
3059
3189
|
var States = /* @__PURE__ */ new WeakMap();
|
|
3060
3190
|
function setMediaShouldUpdate(ref, enabled, keys) {
|
|
@@ -3070,22 +3200,18 @@ var require_useMedia_native = __commonJS({
|
|
|
3070
3200
|
listeners.delete(subscriber);
|
|
3071
3201
|
};
|
|
3072
3202
|
}
|
|
3203
|
+
var CurrentKeysMap = /* @__PURE__ */ new WeakMap();
|
|
3073
3204
|
function useMedia3(cc, debug) {
|
|
3074
|
-
var
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
keys.size && keys.clear();
|
|
3080
|
-
var state = (0, import_react3.useSyncExternalStore)(subscribe, function() {
|
|
3081
|
-
if (componentState != null && componentState.enabled) return internalRef.current.lastState = mediaState3, mediaState3;
|
|
3082
|
-
var curKeys = (componentState == null ? void 0 : componentState.keys) || keys;
|
|
3083
|
-
if (!curKeys.size) return lastState;
|
|
3205
|
+
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);
|
|
3206
|
+
CurrentKeysMap.get(setState) || CurrentKeysMap.set(setState, /* @__PURE__ */ new Set());
|
|
3207
|
+
var currentKeys = CurrentKeysMap.get(setState);
|
|
3208
|
+
function getSnapshot(cur) {
|
|
3209
|
+
if (!currentKeys) return cur;
|
|
3084
3210
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3085
3211
|
try {
|
|
3086
|
-
for (var _iterator =
|
|
3212
|
+
for (var _iterator = currentKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
3087
3213
|
var key = _step.value;
|
|
3088
|
-
if (mediaState3[key] !==
|
|
3214
|
+
if (mediaState3[key] !== cur[key]) return process.env.NODE_ENV === "development" && debug && console.warn("useMedia()\u270D\uFE0F", key, cur[key], ">", mediaState3[key]), mediaState3;
|
|
3089
3215
|
}
|
|
3090
3216
|
} catch (err) {
|
|
3091
3217
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -3096,17 +3222,42 @@ var require_useMedia_native = __commonJS({
|
|
|
3096
3222
|
if (_didIteratorError) throw _iteratorError;
|
|
3097
3223
|
}
|
|
3098
3224
|
}
|
|
3099
|
-
return
|
|
3100
|
-
}
|
|
3101
|
-
|
|
3225
|
+
return cur;
|
|
3226
|
+
}
|
|
3227
|
+
var isRendering = !0, isInitialState = state === initialState;
|
|
3228
|
+
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
3229
|
+
isRendering = !1;
|
|
3230
|
+
}), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
3231
|
+
var update = function() {
|
|
3232
|
+
return setState(function(prev) {
|
|
3233
|
+
var next = getSnapshot(prev);
|
|
3234
|
+
return next;
|
|
3235
|
+
});
|
|
3236
|
+
};
|
|
3237
|
+
update();
|
|
3238
|
+
var tm = setTimeout(function() {
|
|
3239
|
+
currentKeys.size && update();
|
|
3240
|
+
}), dispose2 = subscribe(update);
|
|
3241
|
+
return function() {
|
|
3242
|
+
dispose2(), tm && clearTimeout(tm);
|
|
3243
|
+
};
|
|
3244
|
+
}, [
|
|
3245
|
+
setState
|
|
3246
|
+
]), new Proxy(state, {
|
|
3102
3247
|
get(_, key) {
|
|
3103
|
-
|
|
3248
|
+
if (isRendering && !disableMediaTouch && typeof key == "string") {
|
|
3249
|
+
currentKeys.add(key);
|
|
3250
|
+
var shouldUpdate = state[key] !== mediaState3[key];
|
|
3251
|
+
if (shouldUpdate && (process.env.NODE_ENV === "development" && debug && console.info("useMedia() TOUCH", key), !isInitialState)) {
|
|
3252
|
+
var next = getSnapshot(state);
|
|
3253
|
+
next !== state && setState(next);
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
return Reflect.get(state, key);
|
|
3104
3257
|
}
|
|
3105
3258
|
});
|
|
3106
3259
|
}
|
|
3107
|
-
var
|
|
3108
|
-
return initState;
|
|
3109
|
-
}, disableMediaTouch = !1;
|
|
3260
|
+
var disableMediaTouch = !1;
|
|
3110
3261
|
function _disableMediaTouch2(val) {
|
|
3111
3262
|
disableMediaTouch = val;
|
|
3112
3263
|
}
|
|
@@ -3380,7 +3531,7 @@ var require_compose_refs_native = __commonJS({
|
|
|
3380
3531
|
});
|
|
3381
3532
|
|
|
3382
3533
|
// ../../core/compose-refs/dist/cjs/index.native.js
|
|
3383
|
-
var
|
|
3534
|
+
var require_index_native12 = __commonJS({
|
|
3384
3535
|
"../../core/compose-refs/dist/cjs/index.native.js"(exports2, module2) {
|
|
3385
3536
|
"use strict";
|
|
3386
3537
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -4582,7 +4733,7 @@ var require_normalize_color = __commonJS({
|
|
|
4582
4733
|
});
|
|
4583
4734
|
|
|
4584
4735
|
// ../../core/normalize-css-color/dist/cjs/index.native.js
|
|
4585
|
-
var
|
|
4736
|
+
var require_index_native13 = __commonJS({
|
|
4586
4737
|
"../../core/normalize-css-color/dist/cjs/index.native.js"(exports2, module2) {
|
|
4587
4738
|
"use strict";
|
|
4588
4739
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -4705,7 +4856,7 @@ var require_normalizeColor_native = __commonJS({
|
|
|
4705
4856
|
}
|
|
4706
4857
|
});
|
|
4707
4858
|
module2.exports = __toCommonJS2(normalizeColor_exports);
|
|
4708
|
-
var import_normalize_css_color =
|
|
4859
|
+
var import_normalize_css_color = require_index_native13(), import_normalize_css_color2 = require_index_native13(), normalizeColor = function(color, opacity) {
|
|
4709
4860
|
if (color) {
|
|
4710
4861
|
if (color[0] === "$") return color;
|
|
4711
4862
|
if (color.startsWith("var(")) {
|
|
@@ -6365,7 +6516,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6365
6516
|
viewProps[key4] = val2;
|
|
6366
6517
|
return;
|
|
6367
6518
|
}
|
|
6368
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed(" \u{1F4A0} expanded", keyInit, "=>", key4
|
|
6519
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (consoleGroupCollapsed(" \u{1F4A0} expanded", keyInit, "=>", key4, val2), console.groupEnd()), val2 != null && !(key4 in usedKeys)) {
|
|
6369
6520
|
if (key4 === "pointerEvents") {
|
|
6370
6521
|
viewProps[key4] = val2;
|
|
6371
6522
|
return;
|
|
@@ -6463,7 +6614,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6463
6614
|
if (isMedia) {
|
|
6464
6615
|
if (!val2) return;
|
|
6465
6616
|
var hasSpace = val2.space, mediaKeyShort = key4.slice(isMedia == "theme" ? 7 : 1);
|
|
6466
|
-
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (
|
|
6617
|
+
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (typeof hasMedia != "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform" && !(0, import_isActivePlatform.isActivePlatform)(key4)) return;
|
|
6467
6618
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(` \u{1F4FA} ${key4}`, {
|
|
6468
6619
|
key: key4,
|
|
6469
6620
|
val: val2,
|
|
@@ -6998,7 +7149,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6998
7149
|
var import_react3 = require("react"), callImmediate = function(cb) {
|
|
6999
7150
|
return cb();
|
|
7000
7151
|
};
|
|
7001
|
-
function createShallowSetState(setter, onlyAllow, transition,
|
|
7152
|
+
function createShallowSetState(setter, onlyAllow, transition, debugIn, callback) {
|
|
7153
|
+
var debug = !0;
|
|
7002
7154
|
return (0, import_react3.useCallback)(function(next) {
|
|
7003
7155
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
7004
7156
|
wrap(function() {
|
|
@@ -7011,7 +7163,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
7011
7163
|
setter,
|
|
7012
7164
|
onlyAllow ? onlyAllow.join("") : "",
|
|
7013
7165
|
transition,
|
|
7014
|
-
debug
|
|
7166
|
+
debug,
|
|
7167
|
+
callback
|
|
7015
7168
|
]);
|
|
7016
7169
|
}
|
|
7017
7170
|
function mergeIfNotShallowEqual(prev, next, onlyAllow, debug) {
|
|
@@ -7081,7 +7234,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
7081
7234
|
});
|
|
7082
7235
|
module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
|
|
7083
7236
|
var import_createShallowSetState = require_createShallowSetState_native(), import_useMedia = require_useMedia_native(), subscribeToContextGroup = function(param) {
|
|
7084
|
-
var {
|
|
7237
|
+
var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
|
|
7085
7238
|
if (pseudoGroups || mediaGroups) {
|
|
7086
7239
|
var _componentContext_groups_subscribe, _componentContext_groups, current = {
|
|
7087
7240
|
pseudo: {},
|
|
@@ -7948,75 +8101,6 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
7948
8101
|
}
|
|
7949
8102
|
});
|
|
7950
8103
|
|
|
7951
|
-
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
7952
|
-
var require_index_native13 = __commonJS({
|
|
7953
|
-
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
7954
|
-
"use strict";
|
|
7955
|
-
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7956
|
-
for (var name in all) __defProp2(target, name, {
|
|
7957
|
-
get: all[name],
|
|
7958
|
-
enumerable: !0
|
|
7959
|
-
});
|
|
7960
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
7961
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7962
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7963
|
-
for (var _loop = function() {
|
|
7964
|
-
var key = _step.value;
|
|
7965
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7966
|
-
get: function() {
|
|
7967
|
-
return from[key];
|
|
7968
|
-
},
|
|
7969
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7970
|
-
});
|
|
7971
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7972
|
-
} catch (err) {
|
|
7973
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
7974
|
-
} finally {
|
|
7975
|
-
try {
|
|
7976
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7977
|
-
} finally {
|
|
7978
|
-
if (_didIteratorError)
|
|
7979
|
-
throw _iteratorError;
|
|
7980
|
-
}
|
|
7981
|
-
}
|
|
7982
|
-
return to;
|
|
7983
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
7984
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
7985
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
7986
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
7987
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
7988
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
7989
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
7990
|
-
value: mod,
|
|
7991
|
-
enumerable: !0
|
|
7992
|
-
}) : target,
|
|
7993
|
-
mod
|
|
7994
|
-
);
|
|
7995
|
-
}, __toCommonJS2 = function(mod) {
|
|
7996
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7997
|
-
value: !0
|
|
7998
|
-
}), mod);
|
|
7999
|
-
}, index_exports2 = {};
|
|
8000
|
-
__export2(index_exports2, {
|
|
8001
|
-
useClientValue: function() {
|
|
8002
|
-
return useClientValue;
|
|
8003
|
-
},
|
|
8004
|
-
useDidFinishSSR: function() {
|
|
8005
|
-
return useDidFinishSSR2;
|
|
8006
|
-
}
|
|
8007
|
-
});
|
|
8008
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
8009
|
-
var React4 = __toESM2(require("react"));
|
|
8010
|
-
function useDidFinishSSR2(value) {
|
|
8011
|
-
return value ?? !0;
|
|
8012
|
-
}
|
|
8013
|
-
function useClientValue(value) {
|
|
8014
|
-
var done = useDidFinishSSR2();
|
|
8015
|
-
return done ? typeof value == "function" ? value() : value : void 0;
|
|
8016
|
-
}
|
|
8017
|
-
}
|
|
8018
|
-
});
|
|
8019
|
-
|
|
8020
8104
|
// ../../core/web/dist/cjs/hooks/useComponentState.native.js
|
|
8021
8105
|
var require_useComponentState_native = __commonJS({
|
|
8022
8106
|
"../../core/web/dist/cjs/hooks/useComponentState.native.js"(exports2, module2) {
|
|
@@ -8060,7 +8144,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
8060
8144
|
}
|
|
8061
8145
|
});
|
|
8062
8146
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
8063
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr =
|
|
8147
|
+
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) {
|
|
8064
8148
|
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);
|
|
8065
8149
|
stateRef.current || (stateRef.current = {});
|
|
8066
8150
|
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
|
|
@@ -8086,10 +8170,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
8086
8170
|
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({
|
|
8087
8171
|
...state
|
|
8088
8172
|
}));
|
|
8089
|
-
var groupName = props.group, setStateWrapper
|
|
8090
|
-
|
|
8091
|
-
var groupContextState = groups.state;
|
|
8092
|
-
setStateWrapper = function(state2) {
|
|
8173
|
+
var groupName = props.group, groupContextState = groups == null ? void 0 : groups.state, setStateWrapper = (0, import_react3.useMemo)(function() {
|
|
8174
|
+
if (groupContextState && groupName) return function(state2) {
|
|
8093
8175
|
curStateRef.group.emit(groupName, {
|
|
8094
8176
|
pseudo: state2
|
|
8095
8177
|
});
|
|
@@ -8099,8 +8181,11 @@ var require_useComponentState_native = __commonJS({
|
|
|
8099
8181
|
};
|
|
8100
8182
|
groupContextState[groupName] = next;
|
|
8101
8183
|
};
|
|
8102
|
-
}
|
|
8103
|
-
|
|
8184
|
+
}, [
|
|
8185
|
+
groupContextState,
|
|
8186
|
+
curStateRef,
|
|
8187
|
+
groupName
|
|
8188
|
+
]), setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
8104
8189
|
"disabled"
|
|
8105
8190
|
] : void 0, !1, props.debug, setStateWrapper);
|
|
8106
8191
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
@@ -8268,7 +8353,7 @@ var require_Slot_native = __commonJS({
|
|
|
8268
8353
|
}
|
|
8269
8354
|
});
|
|
8270
8355
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
8271
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
8356
|
+
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) {
|
|
8272
8357
|
var { children, ...slotProps } = props;
|
|
8273
8358
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
8274
8359
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
@@ -8383,7 +8468,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8383
8468
|
}
|
|
8384
8469
|
});
|
|
8385
8470
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8386
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
8471
|
+
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(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
8387
8472
|
typeof document < "u" && (cancelTouches = function() {
|
|
8388
8473
|
componentSetStates.forEach(function(setState) {
|
|
8389
8474
|
return setState(function(prev) {
|
|
@@ -8564,7 +8649,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8564
8649
|
}
|
|
8565
8650
|
curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
|
|
8566
8651
|
var hasRuntimeMediaKeys = splitStyles.hasMedia && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && splitStyles.hasMedia === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
|
|
8567
|
-
process.env.NODE_ENV === "development" && debugProp === "verbose" && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(
|
|
8652
|
+
process.env.NODE_ENV === "development" && debugProp === "verbose" && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(stateRef, shouldListenForMedia, mediaListeningKeys);
|
|
8568
8653
|
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space } = splitStyles, propsWithAnimation = props, {
|
|
8569
8654
|
asChild,
|
|
8570
8655
|
children,
|
|
@@ -8657,18 +8742,17 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8657
8742
|
unmounted: !1
|
|
8658
8743
|
});
|
|
8659
8744
|
}), function() {
|
|
8660
|
-
|
|
8745
|
+
tm && clearTimeout(tm);
|
|
8661
8746
|
};
|
|
8662
|
-
var dispose = (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8663
|
-
disabled,
|
|
8747
|
+
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8664
8748
|
componentContext,
|
|
8665
8749
|
setStateShallow,
|
|
8666
8750
|
state,
|
|
8667
8751
|
mediaGroups,
|
|
8668
8752
|
pseudoGroups
|
|
8669
|
-
});
|
|
8753
|
+
}) : null;
|
|
8670
8754
|
return function() {
|
|
8671
|
-
clearTimeout(tm), dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8755
|
+
tm && clearTimeout(tm), dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8672
8756
|
};
|
|
8673
8757
|
}
|
|
8674
8758
|
}, [
|
|
@@ -9713,6 +9797,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9713
9797
|
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();
|
|
9714
9798
|
function createTamagui2(configIn) {
|
|
9715
9799
|
var _configIn_settings;
|
|
9800
|
+
if (process.env.NODE_ENV === "test" && 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;
|
|
9716
9801
|
if (createdConfigs.has(configIn)) return configIn;
|
|
9717
9802
|
var tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
9718
9803
|
if (configIn.tokens) {
|
|
@@ -9860,7 +9945,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9860
9945
|
specificTokens,
|
|
9861
9946
|
defaultFontToken
|
|
9862
9947
|
};
|
|
9863
|
-
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) {
|
|
9948
|
+
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0), process.env.NODE_ENV === "test" && (globalThis.__tamaguiConfig = config), import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
|
|
9864
9949
|
return cb(config);
|
|
9865
9950
|
}), import_config.configListeners.clear()), process.env.NODE_ENV === "development") {
|
|
9866
9951
|
var _process_env_DEBUG;
|
|
@@ -10675,7 +10760,7 @@ var require_useIsTouchDevice_native = __commonJS({
|
|
|
10675
10760
|
}
|
|
10676
10761
|
});
|
|
10677
10762
|
module2.exports = __toCommonJS2(useIsTouchDevice_exports);
|
|
10678
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr =
|
|
10763
|
+
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native11(), useIsTouchDevice2 = function() {
|
|
10679
10764
|
return import_constants4.isWeb ? (0, import_use_did_finish_ssr.useDidFinishSSR)() ? import_constants4.isTouchable : !1 : !0;
|
|
10680
10765
|
};
|
|
10681
10766
|
}
|
|
@@ -10839,7 +10924,6 @@ var require_useProps_native = __commonJS({
|
|
|
10839
10924
|
return;
|
|
10840
10925
|
}
|
|
10841
10926
|
return (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
10842
|
-
disabled,
|
|
10843
10927
|
componentContext,
|
|
10844
10928
|
setStateShallow,
|
|
10845
10929
|
state,
|
|
@@ -11186,7 +11270,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11186
11270
|
}
|
|
11187
11271
|
});
|
|
11188
11272
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
11189
|
-
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()
|
|
11273
|
+
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();
|
|
11190
11274
|
function TamaguiProvider2(param) {
|
|
11191
11275
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11192
11276
|
return process.env.TAMAGUI_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -11199,9 +11283,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11199
11283
|
}, [
|
|
11200
11284
|
config,
|
|
11201
11285
|
disableInjectCSS
|
|
11202
|
-
]), (0,
|
|
11203
|
-
(0, import_useMedia.updateMediaListeners)();
|
|
11204
|
-
}, []), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
11286
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
11205
11287
|
children: [
|
|
11206
11288
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
11207
11289
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
@@ -11461,9 +11543,9 @@ var require_index_native14 = __commonJS({
|
|
|
11461
11543
|
__reExport2(index_exports2, require_FontLanguage_native(), module2.exports);
|
|
11462
11544
|
__reExport2(index_exports2, require_TamaguiProvider_native(), module2.exports);
|
|
11463
11545
|
__reExport2(index_exports2, require_Configuration_native(), module2.exports);
|
|
11464
|
-
__reExport2(index_exports2, require_index_native13(), module2.exports);
|
|
11465
|
-
__reExport2(index_exports2, require_index_native8(), module2.exports);
|
|
11466
11546
|
__reExport2(index_exports2, require_index_native11(), module2.exports);
|
|
11547
|
+
__reExport2(index_exports2, require_index_native8(), module2.exports);
|
|
11548
|
+
__reExport2(index_exports2, require_index_native12(), module2.exports);
|
|
11467
11549
|
__reExport2(index_exports2, require_index_native7(), module2.exports);
|
|
11468
11550
|
__reExport2(index_exports2, require_index_native6(), module2.exports);
|
|
11469
11551
|
__reExport2(index_exports2, require_setupHooks_native(), module2.exports);
|
|
@@ -14002,7 +14084,7 @@ var require_Collection_native = __commonJS({
|
|
|
14002
14084
|
}
|
|
14003
14085
|
});
|
|
14004
14086
|
module2.exports = __toCommonJS2(Collection_exports);
|
|
14005
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
14087
|
+
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"));
|
|
14006
14088
|
function createCollection(name) {
|
|
14007
14089
|
var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core12.createStyledContext)({
|
|
14008
14090
|
collectionRef: {
|
|
@@ -15537,7 +15619,7 @@ var require_Accordion_native = __commonJS({
|
|
|
15537
15619
|
}
|
|
15538
15620
|
});
|
|
15539
15621
|
module2.exports = __toCommonJS2(Accordion_exports);
|
|
15540
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native15(), import_collection = require_index_native19(), import_compose_refs =
|
|
15622
|
+
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 = [
|
|
15541
15623
|
"Home",
|
|
15542
15624
|
"End",
|
|
15543
15625
|
"ArrowDown",
|
|
@@ -18152,7 +18234,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18152
18234
|
}
|
|
18153
18235
|
});
|
|
18154
18236
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
18155
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs =
|
|
18237
|
+
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) {
|
|
18156
18238
|
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, {
|
|
18157
18239
|
onOverlayComponent: setOverlayComponent
|
|
18158
18240
|
}), { 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() {
|
|
@@ -18601,7 +18683,7 @@ var require_SheetScrollView_native = __commonJS({
|
|
|
18601
18683
|
}
|
|
18602
18684
|
});
|
|
18603
18685
|
module2.exports = __toCommonJS2(SheetScrollView_exports);
|
|
18604
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_compose_refs =
|
|
18686
|
+
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) {
|
|
18605
18687
|
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({
|
|
18606
18688
|
lastPageY: 0,
|
|
18607
18689
|
dragAt: 0,
|
|
@@ -18790,7 +18872,7 @@ var require_createSheet_native = __commonJS({
|
|
|
18790
18872
|
}
|
|
18791
18873
|
});
|
|
18792
18874
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
18793
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
18875
|
+
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();
|
|
18794
18876
|
function createSheet(param) {
|
|
18795
18877
|
var { Handle, Frame, Overlay } = param, SheetHandle = Handle.styleable(function(param2, forwardedRef) {
|
|
18796
18878
|
var { __scopeSheet, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef);
|
|
@@ -18830,27 +18912,24 @@ var require_createSheet_native = __commonJS({
|
|
|
18830
18912
|
]), context.onlyShowFrame, null;
|
|
18831
18913
|
})), SheetFrame = Frame.extractable(/* @__PURE__ */ (0, import_react3.forwardRef)(function(param2, forwardedRef) {
|
|
18832
18914
|
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() {
|
|
18833
|
-
return
|
|
18834
|
-
|
|
18835
|
-
|
|
18836
|
-
|
|
18837
|
-
|
|
18838
|
-
|
|
18839
|
-
|
|
18840
|
-
|
|
18841
|
-
|
|
18842
|
-
|
|
18843
|
-
|
|
18844
|
-
|
|
18845
|
-
|
|
18846
|
-
|
|
18847
|
-
|
|
18848
|
-
|
|
18849
|
-
|
|
18850
|
-
|
|
18851
|
-
})
|
|
18852
|
-
)
|
|
18853
|
-
});
|
|
18915
|
+
return (
|
|
18916
|
+
// @ts-ignore
|
|
18917
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Frame, {
|
|
18918
|
+
ref: composedContentRef,
|
|
18919
|
+
flex: hasFit ? 0 : 1,
|
|
18920
|
+
height: hasFit ? void 0 : frameSize,
|
|
18921
|
+
pointerEvents: open ? "auto" : "none",
|
|
18922
|
+
...props,
|
|
18923
|
+
children: [
|
|
18924
|
+
children,
|
|
18925
|
+
adjustPaddingForOffscreenContent && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
18926
|
+
"data-sheet-offscreen-pad": !0,
|
|
18927
|
+
height: offscreenSize,
|
|
18928
|
+
width: "100%"
|
|
18929
|
+
})
|
|
18930
|
+
]
|
|
18931
|
+
})
|
|
18932
|
+
);
|
|
18854
18933
|
}, [
|
|
18855
18934
|
open,
|
|
18856
18935
|
props,
|
|
@@ -19360,7 +19439,7 @@ var require_Dialog_native = __commonJS({
|
|
|
19360
19439
|
}
|
|
19361
19440
|
});
|
|
19362
19441
|
module2.exports = __toCommonJS2(Dialog_exports);
|
|
19363
|
-
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 =
|
|
19442
|
+
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, {
|
|
19364
19443
|
name: TRIGGER_NAME
|
|
19365
19444
|
}), DialogTrigger = DialogTriggerFrame.styleable(function(props, forwardedRef) {
|
|
19366
19445
|
var { __scopeDialog, ...triggerProps } = props, isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext), context = useDialogContext(TRIGGER_NAME, __scopeDialog), composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
@@ -19387,6 +19466,7 @@ var require_Dialog_native = __commonJS({
|
|
|
19387
19466
|
alignItems: "center",
|
|
19388
19467
|
justifyContent: "center",
|
|
19389
19468
|
fullscreen: !0,
|
|
19469
|
+
zIndex: 1e5,
|
|
19390
19470
|
...import_constants4.isWeb && {
|
|
19391
19471
|
maxHeight: "100vh",
|
|
19392
19472
|
position: "fixed"
|
|
@@ -19421,12 +19501,9 @@ var require_Dialog_native = __commonJS({
|
|
|
19421
19501
|
setIsFullyHidden(!0);
|
|
19422
19502
|
}, []);
|
|
19423
19503
|
if (context.modal) {
|
|
19424
|
-
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
19425
|
-
|
|
19426
|
-
children:
|
|
19427
|
-
onExitComplete: handleExitComplete,
|
|
19428
|
-
children: isShowing || isAdapted ? children : null
|
|
19429
|
-
})
|
|
19504
|
+
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
|
|
19505
|
+
onExitComplete: handleExitComplete,
|
|
19506
|
+
children: isShowing || isAdapted ? children : null
|
|
19430
19507
|
});
|
|
19431
19508
|
if (isFullyHidden && !isAdapted) return null;
|
|
19432
19509
|
var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalProvider2, {
|
|
@@ -19438,15 +19515,16 @@ var require_Dialog_native = __commonJS({
|
|
|
19438
19515
|
children: contents
|
|
19439
19516
|
})
|
|
19440
19517
|
});
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
})
|
|
19449
|
-
}
|
|
19518
|
+
if (import_constants4.isWeb) {
|
|
19519
|
+
var _props_zIndex;
|
|
19520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
19521
|
+
zIndex: (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 1e5,
|
|
19522
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PassthroughTheme, {
|
|
19523
|
+
children: framedContents
|
|
19524
|
+
})
|
|
19525
|
+
});
|
|
19526
|
+
}
|
|
19527
|
+
return framedContents;
|
|
19450
19528
|
}
|
|
19451
19529
|
return children;
|
|
19452
19530
|
}, PassthroughTheme = function(param) {
|
|
@@ -19492,16 +19570,14 @@ var require_Dialog_native = __commonJS({
|
|
|
19492
19570
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
19493
19571
|
}
|
|
19494
19572
|
}), DialogContent = DialogContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
|
|
19495
|
-
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)(
|
|
19496
|
-
|
|
19497
|
-
|
|
19498
|
-
|
|
19499
|
-
|
|
19500
|
-
|
|
19501
|
-
|
|
19502
|
-
|
|
19503
|
-
ref: forwardedRef
|
|
19504
|
-
})
|
|
19573
|
+
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, {
|
|
19574
|
+
context,
|
|
19575
|
+
...contentProps,
|
|
19576
|
+
ref: forwardedRef
|
|
19577
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentNonModal, {
|
|
19578
|
+
context,
|
|
19579
|
+
...contentProps,
|
|
19580
|
+
ref: forwardedRef
|
|
19505
19581
|
});
|
|
19506
19582
|
return !import_constants4.isWeb || context.disableRemoveScroll ? contents : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_remove_scroll.RemoveScroll, {
|
|
19507
19583
|
forwardProps: !0,
|
|
@@ -19912,7 +19988,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
19912
19988
|
}
|
|
19913
19989
|
});
|
|
19914
19990
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
19915
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
19991
|
+
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, [
|
|
19916
19992
|
import_dialog.createDialogScope
|
|
19917
19993
|
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
19918
19994
|
name: TRIGGER_NAME
|
|
@@ -21807,7 +21883,7 @@ var require_focusableInputHOC_native = __commonJS({
|
|
|
21807
21883
|
}
|
|
21808
21884
|
});
|
|
21809
21885
|
module2.exports = __toCommonJS2(focusableInputHOC_exports);
|
|
21810
|
-
var import_compose_refs =
|
|
21886
|
+
var import_compose_refs = require_index_native12(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_registerFocusable = require_registerFocusable_native();
|
|
21811
21887
|
function useFocusable2(param) {
|
|
21812
21888
|
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) {
|
|
21813
21889
|
var _unregisterFocusable_current;
|
|
@@ -21977,7 +22053,7 @@ var require_Label_native = __commonJS({
|
|
|
21977
22053
|
}
|
|
21978
22054
|
});
|
|
21979
22055
|
module2.exports = __toCommonJS2(Label_exports);
|
|
21980
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
22056
|
+
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, {
|
|
21981
22057
|
id: void 0,
|
|
21982
22058
|
controlRef: {
|
|
21983
22059
|
current: null
|
|
@@ -22389,7 +22465,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
22389
22465
|
}
|
|
22390
22466
|
});
|
|
22391
22467
|
module2.exports = __toCommonJS2(useCheckbox_exports);
|
|
22392
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
22468
|
+
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();
|
|
22393
22469
|
function useCheckbox(props, param, ref) {
|
|
22394
22470
|
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() {
|
|
22395
22471
|
return (0, import_helpers.composeEventHandlers)(parentKeyDown, function(event) {
|
|
@@ -25107,7 +25183,7 @@ var require_Popper_native = __commonJS({
|
|
|
25107
25183
|
}
|
|
25108
25184
|
});
|
|
25109
25185
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
25110
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
25186
|
+
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 = {
|
|
25111
25187
|
name: "checkFloating",
|
|
25112
25188
|
fn(data) {
|
|
25113
25189
|
return {
|
|
@@ -25519,7 +25595,7 @@ var require_Popover_native = __commonJS({
|
|
|
25519
25595
|
}
|
|
25520
25596
|
});
|
|
25521
25597
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
25522
|
-
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 =
|
|
25598
|
+
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) {
|
|
25523
25599
|
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
25524
25600
|
return React4.useEffect(function() {
|
|
25525
25601
|
return onCustomAnchorAdd(), function() {
|
|
@@ -25575,20 +25651,18 @@ var require_Popover_native = __commonJS({
|
|
|
25575
25651
|
});
|
|
25576
25652
|
}), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25577
25653
|
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);
|
|
25578
|
-
|
|
25654
|
+
return context.open && isFullyHidden && setIsFullyHidden(!1), React4.useEffect(function() {
|
|
25579
25655
|
if (context.open) {
|
|
25580
25656
|
var content = contentRef.current;
|
|
25581
25657
|
if (content) return (0, import_aria_hidden.hideOthers)(content);
|
|
25582
25658
|
}
|
|
25583
25659
|
}, [
|
|
25584
25660
|
context.open
|
|
25585
|
-
]), !context.keepChildrenMounted && isFullyHidden
|
|
25586
|
-
var _contentImplProps_pointerEvents;
|
|
25587
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
25661
|
+
]), !context.keepChildrenMounted && isFullyHidden ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
25588
25662
|
__scopePopover,
|
|
25589
|
-
zIndex,
|
|
25663
|
+
zIndex: props.zIndex,
|
|
25590
25664
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
25591
|
-
pointerEvents: context.open ?
|
|
25665
|
+
pointerEvents: context.open ? "auto" : "none",
|
|
25592
25666
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentImpl, {
|
|
25593
25667
|
...contentImplProps,
|
|
25594
25668
|
disableRemoveScroll,
|
|
@@ -25634,7 +25708,7 @@ var require_Popover_native = __commonJS({
|
|
|
25634
25708
|
});
|
|
25635
25709
|
}
|
|
25636
25710
|
function PopoverContentPortal(props) {
|
|
25637
|
-
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;
|
|
25711
|
+
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;
|
|
25638
25712
|
return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverRepropagateContext, {
|
|
25639
25713
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
25640
25714
|
popperContext,
|
|
@@ -25642,7 +25716,6 @@ var require_Popover_native = __commonJS({
|
|
|
25642
25716
|
adaptContext,
|
|
25643
25717
|
children: props.children
|
|
25644
25718
|
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
25645
|
-
stackZIndex: !0,
|
|
25646
25719
|
zIndex,
|
|
25647
25720
|
children: (
|
|
25648
25721
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
@@ -25655,10 +25728,7 @@ var require_Popover_native = __commonJS({
|
|
|
25655
25728
|
fullscreen: !0,
|
|
25656
25729
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
|
|
25657
25730
|
}),
|
|
25658
|
-
|
|
25659
|
-
zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
|
|
25660
|
-
children: contents
|
|
25661
|
-
})
|
|
25731
|
+
contents
|
|
25662
25732
|
]
|
|
25663
25733
|
})
|
|
25664
25734
|
)
|
|
@@ -26431,7 +26501,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
26431
26501
|
}
|
|
26432
26502
|
});
|
|
26433
26503
|
module2.exports = __toCommonJS2(useRadioGroup_exports);
|
|
26434
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
26504
|
+
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();
|
|
26435
26505
|
function useRadioGroup(params) {
|
|
26436
26506
|
var { value: valueProp, onValueChange, defaultValue, required, disabled, name, native, accentColor, orientation, ref } = params, [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
26437
26507
|
prop: valueProp,
|
|
@@ -27513,7 +27583,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
27513
27583
|
}
|
|
27514
27584
|
});
|
|
27515
27585
|
module2.exports = __toCommonJS2(SelectItem_exports);
|
|
27516
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27586
|
+
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) {
|
|
27517
27587
|
var { __scopeSelect, value, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
|
|
27518
27588
|
...!props.unstyled && {
|
|
27519
27589
|
ellipse: !0
|
|
@@ -27678,7 +27748,7 @@ var require_SelectItemText_native = __commonJS({
|
|
|
27678
27748
|
}
|
|
27679
27749
|
});
|
|
27680
27750
|
module2.exports = __toCommonJS2(SelectItemText_exports);
|
|
27681
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27751
|
+
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, {
|
|
27682
27752
|
name: ITEM_TEXT_NAME,
|
|
27683
27753
|
variants: {
|
|
27684
27754
|
unstyled: {
|
|
@@ -27826,7 +27896,7 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
27826
27896
|
}
|
|
27827
27897
|
});
|
|
27828
27898
|
module2.exports = __toCommonJS2(SelectTrigger_exports);
|
|
27829
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27899
|
+
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) {
|
|
27830
27900
|
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);
|
|
27831
27901
|
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItem, {
|
|
27832
27902
|
componentName: TRIGGER_NAME,
|
|
@@ -28042,7 +28112,7 @@ var require_Select_native = __commonJS({
|
|
|
28042
28112
|
}
|
|
28043
28113
|
});
|
|
28044
28114
|
module2.exports = __toCommonJS2(Select_exports);
|
|
28045
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_compose_refs =
|
|
28115
|
+
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, {
|
|
28046
28116
|
name: VALUE_NAME,
|
|
28047
28117
|
userSelect: "none"
|
|
28048
28118
|
}), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
|
|
@@ -28817,7 +28887,7 @@ var require_Slider_native = __commonJS({
|
|
|
28817
28887
|
}
|
|
28818
28888
|
});
|
|
28819
28889
|
module2.exports = __toCommonJS2(Slider_exports);
|
|
28820
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
28890
|
+
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();
|
|
28821
28891
|
import_constants4.isWeb && import_constants4.isClient && !process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL && ((_setInterval = setInterval) === null || _setInterval === void 0 || _setInterval(
|
|
28822
28892
|
function() {
|
|
28823
28893
|
activeSliderMeasureListeners.forEach(function(cb) {
|
|
@@ -29358,7 +29428,7 @@ var require_useSwitch_native = __commonJS({
|
|
|
29358
29428
|
}
|
|
29359
29429
|
});
|
|
29360
29430
|
module2.exports = __toCommonJS2(useSwitch_exports);
|
|
29361
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
29431
|
+
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"));
|
|
29362
29432
|
function useSwitch(props, param, ref) {
|
|
29363
29433
|
var [checked, setChecked] = param;
|
|
29364
29434
|
return {
|
|
@@ -29881,7 +29951,7 @@ var require_Tabs_native = __commonJS({
|
|
|
29881
29951
|
}
|
|
29882
29952
|
});
|
|
29883
29953
|
module2.exports = __toCommonJS2(Tabs_exports);
|
|
29884
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
29954
|
+
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) {
|
|
29885
29955
|
var { __scopeTabs, loop = !0, children, ...listProps } = props, context = useTabsContext(__scopeTabs);
|
|
29886
29956
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
29887
29957
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
@@ -31417,7 +31487,7 @@ __reExport(index_exports, __toESM(require_index_native41()), module.exports);
|
|
|
31417
31487
|
__reExport(index_exports, __toESM(require_index_native44()), module.exports);
|
|
31418
31488
|
__reExport(index_exports, __toESM(require_index_native45()), module.exports);
|
|
31419
31489
|
__reExport(index_exports, __toESM(require_index_native50()), module.exports);
|
|
31420
|
-
__reExport(index_exports, __toESM(
|
|
31490
|
+
__reExport(index_exports, __toESM(require_index_native12()), module.exports);
|
|
31421
31491
|
__reExport(index_exports, __toESM(require_index_native30()), module.exports);
|
|
31422
31492
|
__reExport(index_exports, __toESM(require_index_native37()), module.exports);
|
|
31423
31493
|
__reExport(index_exports, __toESM(require_index_native42()), module.exports);
|