tamagui 1.125.2 → 1.125.3
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 +334 -380
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +315 -347
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -2424,7 +2424,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2424
2424
|
return insertStyleRules;
|
|
2425
2425
|
},
|
|
2426
2426
|
insertedTransforms: function() {
|
|
2427
|
-
return
|
|
2427
|
+
return insertedTransforms;
|
|
2428
2428
|
},
|
|
2429
2429
|
listenForSheetChanges: function() {
|
|
2430
2430
|
return listenForSheetChanges;
|
|
@@ -2443,12 +2443,12 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2443
2443
|
}
|
|
2444
2444
|
});
|
|
2445
2445
|
module2.exports = __toCommonJS2(insertStyleRule_exports);
|
|
2446
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {},
|
|
2446
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), scannedCache = /* @__PURE__ */ new WeakMap(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
|
|
2447
2447
|
return allSelectors;
|
|
2448
2448
|
}, getAllRules = function() {
|
|
2449
2449
|
return Object.values(allRules);
|
|
2450
2450
|
}, getAllTransforms = function() {
|
|
2451
|
-
return
|
|
2451
|
+
return insertedTransforms;
|
|
2452
2452
|
};
|
|
2453
2453
|
function addTransform(identifier, css, rule) {
|
|
2454
2454
|
var s = css.indexOf("transform:");
|
|
@@ -2457,7 +2457,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2457
2457
|
return;
|
|
2458
2458
|
}
|
|
2459
2459
|
var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
|
|
2460
|
-
if (!
|
|
2460
|
+
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
|
|
2461
2461
|
}
|
|
2462
2462
|
function listenForSheetChanges() {
|
|
2463
2463
|
if (import_constants4.isClient) {
|
|
@@ -2729,75 +2729,6 @@ 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
|
-
|
|
2801
2732
|
// ../../core/web/dist/cjs/helpers/matchMedia.native.js
|
|
2802
2733
|
var require_matchMedia_native = __commonJS({
|
|
2803
2734
|
"../../core/web/dist/cjs/helpers/matchMedia.native.js"(exports2, module2) {
|
|
@@ -2967,62 +2898,11 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
2967
2898
|
}
|
|
2968
2899
|
});
|
|
2969
2900
|
|
|
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
|
-
|
|
3021
2901
|
// ../../core/web/dist/cjs/hooks/useMedia.native.js
|
|
3022
2902
|
var require_useMedia_native = __commonJS({
|
|
3023
2903
|
"../../core/web/dist/cjs/hooks/useMedia.native.js"(exports2, module2) {
|
|
3024
2904
|
"use strict";
|
|
3025
|
-
var
|
|
2905
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3026
2906
|
for (var name in all) __defProp2(target, name, {
|
|
3027
2907
|
get: all[name],
|
|
3028
2908
|
enumerable: !0
|
|
@@ -3050,18 +2930,6 @@ var require_useMedia_native = __commonJS({
|
|
|
3050
2930
|
}
|
|
3051
2931
|
}
|
|
3052
2932
|
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
|
-
);
|
|
3065
2933
|
}, __toCommonJS2 = function(mod) {
|
|
3066
2934
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3067
2935
|
value: !0
|
|
@@ -3113,12 +2981,15 @@ var require_useMedia_native = __commonJS({
|
|
|
3113
2981
|
setupMediaListeners: function() {
|
|
3114
2982
|
return setupMediaListeners;
|
|
3115
2983
|
},
|
|
2984
|
+
updateMediaListeners: function() {
|
|
2985
|
+
return updateMediaListeners;
|
|
2986
|
+
},
|
|
3116
2987
|
useMedia: function() {
|
|
3117
2988
|
return useMedia3;
|
|
3118
2989
|
}
|
|
3119
2990
|
});
|
|
3120
2991
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
3121
|
-
var import_constants4 = require_index_native6(),
|
|
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 = (
|
|
3122
2993
|
// development only safeguard
|
|
3123
2994
|
process.env.NODE_ENV === "development" ? new Proxy({}, {
|
|
3124
2995
|
get(target, key) {
|
|
@@ -3164,27 +3035,26 @@ var require_useMedia_native = __commonJS({
|
|
|
3164
3035
|
if (!match) throw new Error("\u26A0\uFE0F No match");
|
|
3165
3036
|
match.addListener(update), dispose.add(function() {
|
|
3166
3037
|
match.removeListener(update);
|
|
3167
|
-
})
|
|
3038
|
+
});
|
|
3168
3039
|
function update() {
|
|
3169
3040
|
var next = !!getMatch().matches;
|
|
3170
3041
|
next !== mediaState3[key2] && (mediaState3 = {
|
|
3171
3042
|
...mediaState3,
|
|
3172
3043
|
[key2]: next
|
|
3173
|
-
},
|
|
3044
|
+
}, updateMediaListeners());
|
|
3174
3045
|
}
|
|
3046
|
+
update();
|
|
3175
3047
|
};
|
|
3176
3048
|
if (!(import_constants4.isWeb && import_constants4.isServer) && !process.env.IS_STATIC && setupVersion !== mediaVersion) {
|
|
3177
3049
|
setupVersion = mediaVersion, unlisten();
|
|
3178
3050
|
for (var key in mediaQueryConfig3) _loop(key);
|
|
3179
3051
|
}
|
|
3180
3052
|
}
|
|
3181
|
-
var listeners = /* @__PURE__ */ new Set()
|
|
3182
|
-
function
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
});
|
|
3187
|
-
}));
|
|
3053
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
3054
|
+
function updateMediaListeners() {
|
|
3055
|
+
listeners.forEach(function(cb) {
|
|
3056
|
+
return cb(mediaState3);
|
|
3057
|
+
});
|
|
3188
3058
|
}
|
|
3189
3059
|
var States = /* @__PURE__ */ new WeakMap();
|
|
3190
3060
|
function setMediaShouldUpdate(ref, enabled, keys) {
|
|
@@ -3200,18 +3070,22 @@ var require_useMedia_native = __commonJS({
|
|
|
3200
3070
|
listeners.delete(subscriber);
|
|
3201
3071
|
};
|
|
3202
3072
|
}
|
|
3203
|
-
var CurrentKeysMap = /* @__PURE__ */ new WeakMap();
|
|
3204
3073
|
function useMedia3(cc, debug) {
|
|
3205
|
-
var
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3074
|
+
var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)();
|
|
3075
|
+
internalRef.current || (internalRef.current = {
|
|
3076
|
+
keys: /* @__PURE__ */ new Set()
|
|
3077
|
+
});
|
|
3078
|
+
var { keys, lastState = (0, import_config.getSetting)("disableSSR") ? mediaState3 : initState } = internalRef.current;
|
|
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;
|
|
3210
3084
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3211
3085
|
try {
|
|
3212
|
-
for (var _iterator =
|
|
3086
|
+
for (var _iterator = curKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
3213
3087
|
var key = _step.value;
|
|
3214
|
-
if (mediaState3[key] !==
|
|
3088
|
+
if (mediaState3[key] !== lastState[key]) return process.env.NODE_ENV === "development" && debug && console.warn("useMedia() \u270D\uFE0F", key, lastState[key], "=>", mediaState3[key]), internalRef.current.lastState = mediaState3, mediaState3;
|
|
3215
3089
|
}
|
|
3216
3090
|
} catch (err) {
|
|
3217
3091
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -3222,42 +3096,17 @@ var require_useMedia_native = __commonJS({
|
|
|
3222
3096
|
if (_didIteratorError) throw _iteratorError;
|
|
3223
3097
|
}
|
|
3224
3098
|
}
|
|
3225
|
-
return
|
|
3226
|
-
}
|
|
3227
|
-
|
|
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, {
|
|
3099
|
+
return lastState;
|
|
3100
|
+
}, getServerSnapshot);
|
|
3101
|
+
return new Proxy(state, {
|
|
3247
3102
|
get(_, key) {
|
|
3248
|
-
|
|
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);
|
|
3103
|
+
return !disableMediaTouch && typeof key == "string" && keys.add(key), Reflect.get(state, key);
|
|
3257
3104
|
}
|
|
3258
3105
|
});
|
|
3259
3106
|
}
|
|
3260
|
-
var
|
|
3107
|
+
var getServerSnapshot = function() {
|
|
3108
|
+
return initState;
|
|
3109
|
+
}, disableMediaTouch = !1;
|
|
3261
3110
|
function _disableMediaTouch2(val) {
|
|
3262
3111
|
disableMediaTouch = val;
|
|
3263
3112
|
}
|
|
@@ -3531,7 +3380,7 @@ var require_compose_refs_native = __commonJS({
|
|
|
3531
3380
|
});
|
|
3532
3381
|
|
|
3533
3382
|
// ../../core/compose-refs/dist/cjs/index.native.js
|
|
3534
|
-
var
|
|
3383
|
+
var require_index_native11 = __commonJS({
|
|
3535
3384
|
"../../core/compose-refs/dist/cjs/index.native.js"(exports2, module2) {
|
|
3536
3385
|
"use strict";
|
|
3537
3386
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -3963,6 +3812,59 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
3963
3812
|
}
|
|
3964
3813
|
});
|
|
3965
3814
|
|
|
3815
|
+
// ../../core/web/dist/cjs/helpers/consoleLog.native.js
|
|
3816
|
+
var require_consoleLog_native = __commonJS({
|
|
3817
|
+
"../../core/web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
|
|
3818
|
+
"use strict";
|
|
3819
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3820
|
+
for (var name in all) __defProp2(target, name, {
|
|
3821
|
+
get: all[name],
|
|
3822
|
+
enumerable: !0
|
|
3823
|
+
});
|
|
3824
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
3825
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3826
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3827
|
+
for (var _loop = function() {
|
|
3828
|
+
var key = _step.value;
|
|
3829
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3830
|
+
get: function() {
|
|
3831
|
+
return from[key];
|
|
3832
|
+
},
|
|
3833
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3834
|
+
});
|
|
3835
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3836
|
+
} catch (err) {
|
|
3837
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
3838
|
+
} finally {
|
|
3839
|
+
try {
|
|
3840
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3841
|
+
} finally {
|
|
3842
|
+
if (_didIteratorError)
|
|
3843
|
+
throw _iteratorError;
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
3846
|
+
return to;
|
|
3847
|
+
}, __toCommonJS2 = function(mod) {
|
|
3848
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3849
|
+
value: !0
|
|
3850
|
+
}), mod);
|
|
3851
|
+
}, consoleLog_exports = {};
|
|
3852
|
+
__export2(consoleLog_exports, {
|
|
3853
|
+
gc: function() {
|
|
3854
|
+
return gc;
|
|
3855
|
+
},
|
|
3856
|
+
groupCollapsed: function() {
|
|
3857
|
+
return groupCollapsed;
|
|
3858
|
+
},
|
|
3859
|
+
groupEnd: function() {
|
|
3860
|
+
return groupEnd;
|
|
3861
|
+
}
|
|
3862
|
+
});
|
|
3863
|
+
module2.exports = __toCommonJS2(consoleLog_exports);
|
|
3864
|
+
var import_constants4 = require_index_native6(), groupEnd = console.groupEnd.bind(console), gc = console.groupCollapsed.bind(console), groupCollapsed = import_constants4.isWeb ? gc : console.info;
|
|
3865
|
+
}
|
|
3866
|
+
});
|
|
3867
|
+
|
|
3966
3868
|
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
3967
3869
|
var require_getShorthandValue_native = __commonJS({
|
|
3968
3870
|
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
@@ -4733,7 +4635,7 @@ var require_normalize_color = __commonJS({
|
|
|
4733
4635
|
});
|
|
4734
4636
|
|
|
4735
4637
|
// ../../core/normalize-css-color/dist/cjs/index.native.js
|
|
4736
|
-
var
|
|
4638
|
+
var require_index_native12 = __commonJS({
|
|
4737
4639
|
"../../core/normalize-css-color/dist/cjs/index.native.js"(exports2, module2) {
|
|
4738
4640
|
"use strict";
|
|
4739
4641
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -4856,7 +4758,7 @@ var require_normalizeColor_native = __commonJS({
|
|
|
4856
4758
|
}
|
|
4857
4759
|
});
|
|
4858
4760
|
module2.exports = __toCommonJS2(normalizeColor_exports);
|
|
4859
|
-
var import_normalize_css_color =
|
|
4761
|
+
var import_normalize_css_color = require_index_native12(), import_normalize_css_color2 = require_index_native12(), normalizeColor = function(color, opacity) {
|
|
4860
4762
|
if (color) {
|
|
4861
4763
|
if (color[0] === "$") return color;
|
|
4862
4764
|
if (color.startsWith("var(")) {
|
|
@@ -5207,6 +5109,8 @@ var require_log_native = __commonJS({
|
|
|
5207
5109
|
(0, import_useMedia._disableMediaTouch)(!0);
|
|
5208
5110
|
try {
|
|
5209
5111
|
return console.log(...args);
|
|
5112
|
+
} catch (err) {
|
|
5113
|
+
console.error(err);
|
|
5210
5114
|
} finally {
|
|
5211
5115
|
(0, import_useMedia._disableMediaTouch)(!1);
|
|
5212
5116
|
}
|
|
@@ -5255,13 +5159,10 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
5255
5159
|
__export2(normalizeValueWithProperty_exports, {
|
|
5256
5160
|
normalizeValueWithProperty: function() {
|
|
5257
5161
|
return normalizeValueWithProperty;
|
|
5258
|
-
},
|
|
5259
|
-
reverseMapClassNameToValue: function() {
|
|
5260
|
-
return reverseMapClassNameToValue;
|
|
5261
5162
|
}
|
|
5262
5163
|
});
|
|
5263
5164
|
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
5264
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(),
|
|
5165
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), stylePropsAllPlusTransforms = {
|
|
5265
5166
|
...import_helpers.stylePropsAll,
|
|
5266
5167
|
translateX: !0,
|
|
5267
5168
|
translateY: !0
|
|
@@ -5272,23 +5173,6 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
5272
5173
|
var res = value;
|
|
5273
5174
|
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
5274
5175
|
}
|
|
5275
|
-
var rcache = {};
|
|
5276
|
-
function reverseMapClassNameToValue(key, className) {
|
|
5277
|
-
var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
|
|
5278
|
-
if (rcache[cssRule]) return rcache[cssRule];
|
|
5279
|
-
if (!cssRule) {
|
|
5280
|
-
process.env.NODE_ENV === "development" && console.warn(`No CSS rule found for ${key} looking for selector ".${className}", you may not be injecting extracted CSS`);
|
|
5281
|
-
return;
|
|
5282
|
-
}
|
|
5283
|
-
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
5284
|
-
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && Number.isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
|
|
5285
|
-
res,
|
|
5286
|
-
cssVal,
|
|
5287
|
-
cssRule,
|
|
5288
|
-
key,
|
|
5289
|
-
className
|
|
5290
|
-
}), res;
|
|
5291
|
-
}
|
|
5292
5176
|
}
|
|
5293
5177
|
});
|
|
5294
5178
|
|
|
@@ -6446,7 +6330,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6446
6330
|
}
|
|
6447
6331
|
});
|
|
6448
6332
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6449
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(),
|
|
6333
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_consoleLog = require_consoleLog_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
|
|
6450
6334
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6451
6335
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6452
6336
|
}
|
|
@@ -6459,19 +6343,13 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6459
6343
|
var accepted = accept[keyInit];
|
|
6460
6344
|
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass), "continue";
|
|
6461
6345
|
}
|
|
6462
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" &&
|
|
6346
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_consoleLog.groupEnd)(), disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys) return "continue";
|
|
6463
6347
|
if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
|
|
6464
6348
|
if (keyInit === "group" && !1) var identifier2, containerType, containerCSS;
|
|
6465
6349
|
return "continue";
|
|
6466
6350
|
}
|
|
6467
6351
|
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles, accept);
|
|
6468
|
-
if (0)
|
|
6469
|
-
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps2, _dataSet;
|
|
6470
|
-
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
6471
|
-
var isValidClassName, isMediaOrPseudo;
|
|
6472
|
-
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState3;
|
|
6473
|
-
}
|
|
6474
|
-
}
|
|
6352
|
+
if (0) var _viewProps2, _dataSet;
|
|
6475
6353
|
if (!isValidStyleKeyInit) {
|
|
6476
6354
|
if (!import_constants4.isAndroid && keyInit === "elevationAndroid") return "continue";
|
|
6477
6355
|
if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
|
|
@@ -6482,8 +6360,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6482
6360
|
return "continue";
|
|
6483
6361
|
}
|
|
6484
6362
|
if (0) var didUseKeyInit;
|
|
6485
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit),
|
|
6486
|
-
if (
|
|
6363
|
+
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo = !!(isMedia || isPseudo);
|
|
6364
|
+
if (isMediaOrPseudo && keyInit.startsWith("$group-")) {
|
|
6487
6365
|
var parts = keyInit.split("-");
|
|
6488
6366
|
if (
|
|
6489
6367
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -6493,11 +6371,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6493
6371
|
context != null && context.groups.subscribe && !(context != null && context.groups.state[name2]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
6494
6372
|
}
|
|
6495
6373
|
}
|
|
6496
|
-
var isStyleProp = isValidStyleKeyInit ||
|
|
6374
|
+
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo || isVariant && !noExpand;
|
|
6497
6375
|
if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
|
|
6498
6376
|
var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
|
|
6499
|
-
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit ||
|
|
6500
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
6377
|
+
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
6378
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupEnd)(), (0, import_consoleLog.groupEnd)(), (0, import_consoleLog.groupCollapsed)(` \u{1F511} ${keyOg2}${keyInit !== keyOg2 ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`), (0, import_log.log)({
|
|
6501
6379
|
isVariant,
|
|
6502
6380
|
valInit,
|
|
6503
6381
|
shouldPassProp
|
|
@@ -6507,16 +6385,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6507
6385
|
isVariant,
|
|
6508
6386
|
isHOCShouldPassThrough,
|
|
6509
6387
|
parentStaticConfig
|
|
6510
|
-
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit,
|
|
6388
|
+
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !noSkip && keyInit in import_skipProps.skipProps) return "continue";
|
|
6511
6389
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
6512
|
-
var disablePropMap =
|
|
6390
|
+
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
6513
6391
|
if ((0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
6514
6392
|
var _parentStaticConfig_variants;
|
|
6515
|
-
if (!isHOC && disablePropMap && !
|
|
6393
|
+
if (!isHOC && disablePropMap && !isMediaOrPseudo) {
|
|
6516
6394
|
viewProps[key4] = val2;
|
|
6517
6395
|
return;
|
|
6518
6396
|
}
|
|
6519
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
6397
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(" \u{1F4A0} expanded", keyInit, "=>", key4), (0, import_log.log)(val2), (0, import_consoleLog.groupEnd)()), val2 != null && !(key4 in usedKeys)) {
|
|
6520
6398
|
if (key4 === "pointerEvents") {
|
|
6521
6399
|
viewProps[key4] = val2;
|
|
6522
6400
|
return;
|
|
@@ -6525,23 +6403,23 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6525
6403
|
mergeStyle(styleState, key4, val2);
|
|
6526
6404
|
return;
|
|
6527
6405
|
}
|
|
6528
|
-
if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia = !isPseudo && (0, import_useMedia.isMediaKey)(key4),
|
|
6406
|
+
if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia = !isPseudo && (0, import_useMedia.isMediaKey)(key4), isMediaOrPseudo = !!(isMedia || isPseudo), isVariant = variants && key4 in variants, inlineProps != null && inlineProps.has(key4) || process.env.IS_STATIC === "is_static" && inlineWhenUnflattened != null && inlineWhenUnflattened.has(key4)) {
|
|
6529
6407
|
var _props_key;
|
|
6530
6408
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
6531
6409
|
}
|
|
6532
|
-
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (
|
|
6410
|
+
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
6533
6411
|
if (shouldPassThrough2) {
|
|
6534
|
-
passDownProp(viewProps, key4, val2,
|
|
6412
|
+
passDownProp(viewProps, key4, val2, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)(` - passing down prop ${key4}`), (0, import_log.log)({
|
|
6535
6413
|
val: val2,
|
|
6536
6414
|
after: {
|
|
6537
6415
|
...viewProps[key4]
|
|
6538
6416
|
}
|
|
6539
|
-
}),
|
|
6417
|
+
}), (0, import_consoleLog.groupEnd)());
|
|
6540
6418
|
return;
|
|
6541
6419
|
}
|
|
6542
6420
|
if (isPseudo) {
|
|
6543
6421
|
if (!val2) return;
|
|
6544
|
-
var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClass);
|
|
6422
|
+
var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClass && process.env.IS_STATIC !== "is_static");
|
|
6545
6423
|
if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
|
|
6546
6424
|
var _pseudos, _key;
|
|
6547
6425
|
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key4] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
|
|
@@ -6553,15 +6431,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6553
6431
|
if (!descriptor) return;
|
|
6554
6432
|
if (shouldDoClasses && !isExit) {
|
|
6555
6433
|
var pseudoStyles = (0, import_getCSSStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor);
|
|
6556
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
6557
|
-
pseudoStyleObject,
|
|
6558
|
-
pseudoStyles
|
|
6559
|
-
}), console.groupEnd());
|
|
6434
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && console.info("pseudo:", key4, pseudoStyleObject, pseudoStyles);
|
|
6560
6435
|
var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
6561
6436
|
try {
|
|
6562
6437
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
6563
6438
|
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
6564
|
-
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle),
|
|
6439
|
+
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), classNames[fullKey] = psuedoStyle[import_helpers.StyleObjectIdentifier]);
|
|
6565
6440
|
}
|
|
6566
6441
|
} catch (err) {
|
|
6567
6442
|
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
@@ -6575,14 +6450,14 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6575
6450
|
}
|
|
6576
6451
|
if (!shouldDoClasses || isExit || isEnter) {
|
|
6577
6452
|
var descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = componentState[descriptorKey] === !1;
|
|
6578
|
-
isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && (
|
|
6453
|
+
isExit && (isDisabled = !styleProps.isExiting), isEnter && componentState.unmounted === !1 && (isDisabled = !0), process.env.NODE_ENV === "development" && debug === "verbose" && ((0, import_consoleLog.groupCollapsed)("pseudo", key4, {
|
|
6579
6454
|
isDisabled
|
|
6580
6455
|
}), (0, import_log.log)({
|
|
6581
6456
|
pseudoStyleObject,
|
|
6582
6457
|
isDisabled,
|
|
6583
6458
|
descriptor,
|
|
6584
6459
|
componentState
|
|
6585
|
-
}),
|
|
6460
|
+
}), (0, import_consoleLog.groupEnd)());
|
|
6586
6461
|
var importance = descriptor.priority;
|
|
6587
6462
|
for (var pkey in pseudoStyleObject) {
|
|
6588
6463
|
var _$val = pseudoStyleObject[pkey];
|
|
@@ -6614,7 +6489,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6614
6489
|
if (isMedia) {
|
|
6615
6490
|
if (!val2) return;
|
|
6616
6491
|
var hasSpace = val2.space, mediaKeyShort = key4.slice(isMedia == "theme" ? 7 : 1);
|
|
6617
|
-
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (typeof hasMedia
|
|
6492
|
+
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((!hasMedia || typeof hasMedia == "boolean") && (hasMedia = /* @__PURE__ */ new Set()), hasMedia.add(mediaKeyShort)), isMedia === "platform" && !(0, import_isActivePlatform.isActivePlatform)(key4)) return;
|
|
6618
6493
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(` \u{1F4FA} ${key4}`, {
|
|
6619
6494
|
key: key4,
|
|
6620
6495
|
val: val2,
|
|
@@ -6639,7 +6514,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6639
6514
|
var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority);
|
|
6640
6515
|
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("\u{1F4FA} media style:", out);
|
|
6641
6516
|
var subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers.StyleObjectPseudo] || ""}`;
|
|
6642
|
-
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out),
|
|
6517
|
+
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), classNames[fullKey1] = out[import_helpers.StyleObjectIdentifier]);
|
|
6643
6518
|
}
|
|
6644
6519
|
}
|
|
6645
6520
|
} catch (err) {
|
|
@@ -6653,8 +6528,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6653
6528
|
}
|
|
6654
6529
|
} else {
|
|
6655
6530
|
var mergeMediaStyle2 = function(key5, val3) {
|
|
6656
|
-
var
|
|
6657
|
-
(
|
|
6531
|
+
var _styleState3;
|
|
6532
|
+
(_styleState3 = styleState).style || (_styleState3.style = {});
|
|
6658
6533
|
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key5, val3, usedKeys, mediaState3[mediaKeyShort], importanceBump, debug);
|
|
6659
6534
|
didMerge && key5 === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
6660
6535
|
}, mergeMediaStyle = mergeMediaStyle2, isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
@@ -6717,18 +6592,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6717
6592
|
try {
|
|
6718
6593
|
(0, import_log.log)(" \u2714\uFE0F expand complete", keyInit), (0, import_log.log)("style", {
|
|
6719
6594
|
...styleState.style
|
|
6720
|
-
}), (0, import_log.log)("transforms", {
|
|
6721
|
-
...transforms
|
|
6722
6595
|
}), (0, import_log.log)("viewProps", {
|
|
6723
6596
|
...viewProps
|
|
6724
6597
|
});
|
|
6725
6598
|
} catch {
|
|
6726
6599
|
}
|
|
6727
|
-
|
|
6600
|
+
(0, import_consoleLog.groupEnd)();
|
|
6728
6601
|
}
|
|
6729
6602
|
};
|
|
6730
6603
|
conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
6731
|
-
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {},
|
|
6604
|
+
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
|
|
6732
6605
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-setup`;
|
|
6733
6606
|
var styleState = {
|
|
6734
6607
|
classNames,
|
|
@@ -6752,7 +6625,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6752
6625
|
}
|
|
6753
6626
|
}));
|
|
6754
6627
|
}
|
|
6755
|
-
process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants4.isClient && (
|
|
6628
|
+
process.env.NODE_ENV === "development" && debug === "profile" && time`style-state`, process.env.NODE_ENV === "development" && debug && debug !== "profile" && import_constants4.isClient && ((0, import_consoleLog.groupCollapsed)("getSplitStyles (collapsed)"), (0, import_log.log)({
|
|
6756
6629
|
props,
|
|
6757
6630
|
staticConfig,
|
|
6758
6631
|
shouldDoClasses,
|
|
@@ -6763,7 +6636,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6763
6636
|
theme: {
|
|
6764
6637
|
...theme
|
|
6765
6638
|
}
|
|
6766
|
-
}),
|
|
6639
|
+
}), (0, import_consoleLog.groupEnd)());
|
|
6767
6640
|
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
6768
6641
|
for (var keyOg in props) _loop(keyOg);
|
|
6769
6642
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
@@ -6771,13 +6644,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6771
6644
|
if (!avoidNormalize) {
|
|
6772
6645
|
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), !styleProps.noExpand && !styleProps.noMergeStyle && import_constants4.isWeb && !isReactNative && (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
6773
6646
|
var _styleState;
|
|
6774
|
-
(_styleState = styleState).style || (_styleState.style = {}),
|
|
6775
|
-
var [a] = param, [b] = param1;
|
|
6776
|
-
return (0, import_sortString.sortString)(a, b);
|
|
6777
|
-
}).forEach(function(param) {
|
|
6778
|
-
var [key4, val2] = param;
|
|
6779
|
-
mergeTransform(styleState.style, key4, val2, !0);
|
|
6780
|
-
});
|
|
6647
|
+
(_styleState = styleState).style || (_styleState.style = {}), mergeFlatTransforms(styleState.style, styleState.flatTransforms);
|
|
6781
6648
|
}
|
|
6782
6649
|
if (parentSplitStyles) {
|
|
6783
6650
|
if (0) for (var key in parentSplitStyles.classNames) var val;
|
|
@@ -6799,10 +6666,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6799
6666
|
} finally {
|
|
6800
6667
|
}
|
|
6801
6668
|
}
|
|
6802
|
-
if (transforms) for (var namespace in transforms) {
|
|
6803
|
-
var hash, val1, identifier1;
|
|
6804
|
-
if (import_constants4.isClient && !insertedTransforms[identifier1]) var rule;
|
|
6805
|
-
}
|
|
6806
6669
|
}
|
|
6807
6670
|
if (isReactNative) {
|
|
6808
6671
|
if (viewProps.tabIndex === 0) var _viewProps, _accessible;
|
|
@@ -6856,13 +6719,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6856
6719
|
} else style2 && (viewProps.style = style2);
|
|
6857
6720
|
}
|
|
6858
6721
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && import_isDevTools.isDevTools) {
|
|
6859
|
-
|
|
6722
|
+
(0, import_consoleLog.groupCollapsed)("\u{1F539} getSplitStyles ===>");
|
|
6860
6723
|
try {
|
|
6861
6724
|
var logs = {
|
|
6862
6725
|
...result,
|
|
6863
6726
|
className,
|
|
6864
6727
|
componentState,
|
|
6865
|
-
transforms,
|
|
6866
6728
|
viewProps,
|
|
6867
6729
|
rulesToInsert,
|
|
6868
6730
|
parentSplitStyles
|
|
@@ -6870,20 +6732,22 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6870
6732
|
for (var key3 in logs) (0, import_log.log)(key3, logs[key3]);
|
|
6871
6733
|
} catch {
|
|
6872
6734
|
}
|
|
6873
|
-
|
|
6735
|
+
(0, import_consoleLog.groupEnd)();
|
|
6874
6736
|
}
|
|
6875
6737
|
return process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-done`, result;
|
|
6876
6738
|
};
|
|
6877
|
-
function
|
|
6878
|
-
|
|
6879
|
-
|
|
6739
|
+
function mergeFlatTransforms(target, flatTransforms) {
|
|
6740
|
+
Object.entries(flatTransforms).sort(function(param, param1) {
|
|
6741
|
+
var [a] = param, [b] = param1;
|
|
6742
|
+
return (0, import_sortString.sortString)(a, b);
|
|
6743
|
+
}).forEach(function(param) {
|
|
6744
|
+
var [key, val] = param;
|
|
6745
|
+
mergeTransform(target, key, val, !0);
|
|
6746
|
+
});
|
|
6880
6747
|
}
|
|
6881
6748
|
function mergeStyle(styleState, key, val) {
|
|
6882
|
-
var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, {
|
|
6883
|
-
if (
|
|
6884
|
-
var _usedKeys, _key;
|
|
6885
|
-
classNames[key] = val, (_usedKeys = usedKeys)[_key = key] || (_usedKeys[_key] = 1);
|
|
6886
|
-
} else if (key in import_helpers.stylePropsTransform) {
|
|
6749
|
+
var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, { viewProps, styleProps, staticConfig } = styleState;
|
|
6750
|
+
if (key in import_helpers.stylePropsTransform) {
|
|
6887
6751
|
var _styleState;
|
|
6888
6752
|
(_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), styleState.flatTransforms[key] = val;
|
|
6889
6753
|
} else {
|
|
@@ -6894,7 +6758,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6894
6758
|
) viewProps[key] = out;
|
|
6895
6759
|
else {
|
|
6896
6760
|
var _styleState1;
|
|
6897
|
-
(_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key] =
|
|
6761
|
+
(_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key] = // if you dont do this you'll be passing props.transform arrays directly here and then mutating them
|
|
6762
|
+
// if theres any flatTransforms later, causing issues (mutating props is bad, in strict mode styles get borked)
|
|
6763
|
+
key === "transform" && Array.isArray(out) ? [
|
|
6764
|
+
...out
|
|
6765
|
+
] : out;
|
|
6898
6766
|
}
|
|
6899
6767
|
}
|
|
6900
6768
|
}
|
|
@@ -6909,6 +6777,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6909
6777
|
}), key = key1;
|
|
6910
6778
|
}, { staticConfig, conf: conf2, styleProps } = styleState, styleOut = {};
|
|
6911
6779
|
for (var key in styleIn) _loop(key);
|
|
6780
|
+
if (!avoidMergeTransform) {
|
|
6781
|
+
if (Array.isArray(styleOut.transform)) {
|
|
6782
|
+
var _styleState_style, parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;
|
|
6783
|
+
parentTransform && (styleOut.transform = [
|
|
6784
|
+
...parentTransform,
|
|
6785
|
+
...styleOut.transform
|
|
6786
|
+
]);
|
|
6787
|
+
}
|
|
6788
|
+
styleState.flatTransforms && mergeFlatTransforms(styleOut, styleState.flatTransforms);
|
|
6789
|
+
}
|
|
6912
6790
|
return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
|
|
6913
6791
|
}, useInsertEffectCompat = import_constants4.isWeb ? import_react3.default.useInsertionEffect || import_constants4.useIsomorphicLayoutEffect : function() {
|
|
6914
6792
|
}, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j) {
|
|
@@ -7149,8 +7027,7 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
7149
7027
|
var import_react3 = require("react"), callImmediate = function(cb) {
|
|
7150
7028
|
return cb();
|
|
7151
7029
|
};
|
|
7152
|
-
function createShallowSetState(setter, onlyAllow, transition,
|
|
7153
|
-
var debug = !0;
|
|
7030
|
+
function createShallowSetState(setter, onlyAllow, transition, debug, callback) {
|
|
7154
7031
|
return (0, import_react3.useCallback)(function(next) {
|
|
7155
7032
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
7156
7033
|
wrap(function() {
|
|
@@ -7163,8 +7040,7 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
7163
7040
|
setter,
|
|
7164
7041
|
onlyAllow ? onlyAllow.join("") : "",
|
|
7165
7042
|
transition,
|
|
7166
|
-
debug
|
|
7167
|
-
callback
|
|
7043
|
+
debug
|
|
7168
7044
|
]);
|
|
7169
7045
|
}
|
|
7170
7046
|
function mergeIfNotShallowEqual(prev, next, onlyAllow, debug) {
|
|
@@ -7895,7 +7771,7 @@ var require_Theme_native = __commonJS({
|
|
|
7895
7771
|
Theme2.avoidForwardRef = !0;
|
|
7896
7772
|
function getThemedChildren(themeState, children, props) {
|
|
7897
7773
|
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, stateRef = arguments.length > 4 ? arguments[4] : void 0, { shallow, forceClassName } = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || (0, import_useThemeState.hasThemeUpdatingProps)(props);
|
|
7898
|
-
if (process.env.NODE_ENV === "development" && props.debug && (children = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
7774
|
+
if (process.env.NODE_ENV === "development" && props.debug === "visualize" && (children = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
7899
7775
|
themeState,
|
|
7900
7776
|
themeProps: props,
|
|
7901
7777
|
children
|
|
@@ -8101,6 +7977,75 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
8101
7977
|
}
|
|
8102
7978
|
});
|
|
8103
7979
|
|
|
7980
|
+
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
7981
|
+
var require_index_native13 = __commonJS({
|
|
7982
|
+
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
7983
|
+
"use strict";
|
|
7984
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7985
|
+
for (var name in all) __defProp2(target, name, {
|
|
7986
|
+
get: all[name],
|
|
7987
|
+
enumerable: !0
|
|
7988
|
+
});
|
|
7989
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
7990
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7991
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7992
|
+
for (var _loop = function() {
|
|
7993
|
+
var key = _step.value;
|
|
7994
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7995
|
+
get: function() {
|
|
7996
|
+
return from[key];
|
|
7997
|
+
},
|
|
7998
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7999
|
+
});
|
|
8000
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
8001
|
+
} catch (err) {
|
|
8002
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
8003
|
+
} finally {
|
|
8004
|
+
try {
|
|
8005
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
8006
|
+
} finally {
|
|
8007
|
+
if (_didIteratorError)
|
|
8008
|
+
throw _iteratorError;
|
|
8009
|
+
}
|
|
8010
|
+
}
|
|
8011
|
+
return to;
|
|
8012
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
8013
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
8014
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
8015
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
8016
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
8017
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
8018
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
8019
|
+
value: mod,
|
|
8020
|
+
enumerable: !0
|
|
8021
|
+
}) : target,
|
|
8022
|
+
mod
|
|
8023
|
+
);
|
|
8024
|
+
}, __toCommonJS2 = function(mod) {
|
|
8025
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
8026
|
+
value: !0
|
|
8027
|
+
}), mod);
|
|
8028
|
+
}, index_exports2 = {};
|
|
8029
|
+
__export2(index_exports2, {
|
|
8030
|
+
useClientValue: function() {
|
|
8031
|
+
return useClientValue;
|
|
8032
|
+
},
|
|
8033
|
+
useDidFinishSSR: function() {
|
|
8034
|
+
return useDidFinishSSR2;
|
|
8035
|
+
}
|
|
8036
|
+
});
|
|
8037
|
+
module2.exports = __toCommonJS2(index_exports2);
|
|
8038
|
+
var React4 = __toESM2(require("react"));
|
|
8039
|
+
function useDidFinishSSR2(value) {
|
|
8040
|
+
return value ?? !0;
|
|
8041
|
+
}
|
|
8042
|
+
function useClientValue(value) {
|
|
8043
|
+
var done = useDidFinishSSR2();
|
|
8044
|
+
return done ? typeof value == "function" ? value() : value : void 0;
|
|
8045
|
+
}
|
|
8046
|
+
}
|
|
8047
|
+
});
|
|
8048
|
+
|
|
8104
8049
|
// ../../core/web/dist/cjs/hooks/useComponentState.native.js
|
|
8105
8050
|
var require_useComponentState_native = __commonJS({
|
|
8106
8051
|
"../../core/web/dist/cjs/hooks/useComponentState.native.js"(exports2, module2) {
|
|
@@ -8144,7 +8089,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
8144
8089
|
}
|
|
8145
8090
|
});
|
|
8146
8091
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
8147
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr =
|
|
8092
|
+
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), 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) {
|
|
8148
8093
|
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);
|
|
8149
8094
|
stateRef.current || (stateRef.current = {});
|
|
8150
8095
|
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
|
|
@@ -8170,8 +8115,10 @@ var require_useComponentState_native = __commonJS({
|
|
|
8170
8115
|
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({
|
|
8171
8116
|
...state
|
|
8172
8117
|
}));
|
|
8173
|
-
var groupName = props.group,
|
|
8174
|
-
|
|
8118
|
+
var groupName = props.group, setStateWrapper;
|
|
8119
|
+
if (groupName) {
|
|
8120
|
+
var groupContextState = groups.state;
|
|
8121
|
+
setStateWrapper = function(state2) {
|
|
8175
8122
|
curStateRef.group.emit(groupName, {
|
|
8176
8123
|
pseudo: state2
|
|
8177
8124
|
});
|
|
@@ -8181,11 +8128,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
8181
8128
|
};
|
|
8182
8129
|
groupContextState[groupName] = next;
|
|
8183
8130
|
};
|
|
8184
|
-
}
|
|
8185
|
-
|
|
8186
|
-
curStateRef,
|
|
8187
|
-
groupName
|
|
8188
|
-
]), setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
8131
|
+
}
|
|
8132
|
+
var setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
8189
8133
|
"disabled"
|
|
8190
8134
|
] : void 0, !1, props.debug, setStateWrapper);
|
|
8191
8135
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
@@ -8353,7 +8297,7 @@ var require_Slot_native = __commonJS({
|
|
|
8353
8297
|
}
|
|
8354
8298
|
});
|
|
8355
8299
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
8356
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
8300
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = require("react"), is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.memo)(/* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
8357
8301
|
var { children, ...slotProps } = props;
|
|
8358
8302
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
8359
8303
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
@@ -8468,7 +8412,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8468
8412
|
}
|
|
8469
8413
|
});
|
|
8470
8414
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8471
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
8415
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_consoleLog = require_consoleLog_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();
|
|
8472
8416
|
typeof document < "u" && (cancelTouches = function() {
|
|
8473
8417
|
componentSetStates.forEach(function(setState) {
|
|
8474
8418
|
return setState(function(prev) {
|
|
@@ -8605,9 +8549,9 @@ var require_createComponent_native = __commonJS({
|
|
|
8605
8549
|
supportsCSSVars
|
|
8606
8550
|
});
|
|
8607
8551
|
else {
|
|
8608
|
-
|
|
8552
|
+
(0, import_consoleLog.groupEnd)();
|
|
8609
8553
|
var ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
|
|
8610
|
-
childLog.length && (childLog = `(children: ${childLog})`),
|
|
8554
|
+
childLog.length && (childLog = `(children: ${childLog})`), (0, import_consoleLog.groupCollapsed)(`${childLog} Props:`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({
|
|
8611
8555
|
state,
|
|
8612
8556
|
staticConfig,
|
|
8613
8557
|
elementType,
|
|
@@ -8621,7 +8565,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8621
8565
|
isHOC,
|
|
8622
8566
|
hasAnimationProp,
|
|
8623
8567
|
useAnimations
|
|
8624
|
-
}),
|
|
8568
|
+
}), (0, import_consoleLog.groupEnd)();
|
|
8625
8569
|
}
|
|
8626
8570
|
}
|
|
8627
8571
|
process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
|
|
@@ -8649,7 +8593,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8649
8593
|
}
|
|
8650
8594
|
curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
|
|
8651
8595
|
var hasRuntimeMediaKeys = splitStyles.hasMedia && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && splitStyles.hasMedia === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
|
|
8652
|
-
process.env.NODE_ENV === "development" && debugProp === "verbose" && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(
|
|
8596
|
+
process.env.NODE_ENV === "development" && debugProp === "verbose" && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(componentContext, shouldListenForMedia, mediaListeningKeys);
|
|
8653
8597
|
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space } = splitStyles, propsWithAnimation = props, {
|
|
8654
8598
|
asChild,
|
|
8655
8599
|
children,
|
|
@@ -8726,24 +8670,22 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8726
8670
|
}
|
|
8727
8671
|
return styleObject;
|
|
8728
8672
|
}, cssStyleDeclarationToObject = cssStyleDeclarationToObject2, computed = cssStyleDeclarationToObject2(getComputedStyle(stateRef.current.host));
|
|
8729
|
-
|
|
8673
|
+
(0, import_consoleLog.groupCollapsed)(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), (0, import_consoleLog.groupEnd)();
|
|
8730
8674
|
}
|
|
8731
|
-
}),
|
|
8675
|
+
}), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
8732
8676
|
if (!disabled) {
|
|
8733
|
-
var tm;
|
|
8734
8677
|
if (state.unmounted === !0 && hasEnterStyle) {
|
|
8735
8678
|
setStateShallow({
|
|
8736
8679
|
unmounted: "should-enter"
|
|
8737
8680
|
});
|
|
8738
8681
|
return;
|
|
8739
8682
|
}
|
|
8740
|
-
if (state.unmounted)
|
|
8683
|
+
if (state.unmounted) {
|
|
8741
8684
|
setStateShallow({
|
|
8742
8685
|
unmounted: !1
|
|
8743
8686
|
});
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
};
|
|
8687
|
+
return;
|
|
8688
|
+
}
|
|
8747
8689
|
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8748
8690
|
componentContext,
|
|
8749
8691
|
setStateShallow,
|
|
@@ -8752,7 +8694,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8752
8694
|
pseudoGroups
|
|
8753
8695
|
}) : null;
|
|
8754
8696
|
return function() {
|
|
8755
|
-
|
|
8697
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8756
8698
|
};
|
|
8757
8699
|
}
|
|
8758
8700
|
}, [
|
|
@@ -8919,7 +8861,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8919
8861
|
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
8920
8862
|
var element1 = typeof elementType == "string" ? elementType : "Component", title = `render <${element1} /> (${internalID}) with props`;
|
|
8921
8863
|
if (import_constants4.isWeb) {
|
|
8922
|
-
|
|
8864
|
+
(0, import_consoleLog.groupCollapsed)(title);
|
|
8923
8865
|
try {
|
|
8924
8866
|
(0, import_log.log)("viewProps", viewProps), (0, import_log.log)("children", content), typeof window < "u" && (0, import_log.log)({
|
|
8925
8867
|
propsIn,
|
|
@@ -8950,7 +8892,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8950
8892
|
});
|
|
8951
8893
|
} catch {
|
|
8952
8894
|
} finally {
|
|
8953
|
-
|
|
8895
|
+
(0, import_consoleLog.groupEnd)();
|
|
8954
8896
|
}
|
|
8955
8897
|
} else {
|
|
8956
8898
|
(0, import_log.log)(title), (0, import_log.log)("state: ", state), import_isDevTools.isDevTools && (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("final styles:");
|
|
@@ -9797,7 +9739,6 @@ var require_createTamagui_native = __commonJS({
|
|
|
9797
9739
|
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();
|
|
9798
9740
|
function createTamagui2(configIn) {
|
|
9799
9741
|
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;
|
|
9801
9742
|
if (createdConfigs.has(configIn)) return configIn;
|
|
9802
9743
|
var tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
9803
9744
|
if (configIn.tokens) {
|
|
@@ -9945,7 +9886,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9945
9886
|
specificTokens,
|
|
9946
9887
|
defaultFontToken
|
|
9947
9888
|
};
|
|
9948
|
-
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0),
|
|
9889
|
+
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) {
|
|
9949
9890
|
return cb(config);
|
|
9950
9891
|
}), import_config.configListeners.clear()), process.env.NODE_ENV === "development") {
|
|
9951
9892
|
var _process_env_DEBUG;
|
|
@@ -10760,7 +10701,7 @@ var require_useIsTouchDevice_native = __commonJS({
|
|
|
10760
10701
|
}
|
|
10761
10702
|
});
|
|
10762
10703
|
module2.exports = __toCommonJS2(useIsTouchDevice_exports);
|
|
10763
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr =
|
|
10704
|
+
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), useIsTouchDevice2 = function() {
|
|
10764
10705
|
return import_constants4.isWeb ? (0, import_use_did_finish_ssr.useDidFinishSSR)() ? import_constants4.isTouchable : !1 : !0;
|
|
10765
10706
|
};
|
|
10766
10707
|
}
|
|
@@ -11270,7 +11211,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11270
11211
|
}
|
|
11271
11212
|
});
|
|
11272
11213
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
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();
|
|
11214
|
+
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(), import_useMedia = require_useMedia_native();
|
|
11274
11215
|
function TamaguiProvider2(param) {
|
|
11275
11216
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11276
11217
|
return process.env.TAMAGUI_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -11283,7 +11224,9 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11283
11224
|
}, [
|
|
11284
11225
|
config,
|
|
11285
11226
|
disableInjectCSS
|
|
11286
|
-
]),
|
|
11227
|
+
]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
11228
|
+
(0, import_useMedia.updateMediaListeners)();
|
|
11229
|
+
}, []), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
11287
11230
|
children: [
|
|
11288
11231
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
11289
11232
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
@@ -11543,9 +11486,9 @@ var require_index_native14 = __commonJS({
|
|
|
11543
11486
|
__reExport2(index_exports2, require_FontLanguage_native(), module2.exports);
|
|
11544
11487
|
__reExport2(index_exports2, require_TamaguiProvider_native(), module2.exports);
|
|
11545
11488
|
__reExport2(index_exports2, require_Configuration_native(), module2.exports);
|
|
11546
|
-
__reExport2(index_exports2,
|
|
11489
|
+
__reExport2(index_exports2, require_index_native13(), module2.exports);
|
|
11547
11490
|
__reExport2(index_exports2, require_index_native8(), module2.exports);
|
|
11548
|
-
__reExport2(index_exports2,
|
|
11491
|
+
__reExport2(index_exports2, require_index_native11(), module2.exports);
|
|
11549
11492
|
__reExport2(index_exports2, require_index_native7(), module2.exports);
|
|
11550
11493
|
__reExport2(index_exports2, require_index_native6(), module2.exports);
|
|
11551
11494
|
__reExport2(index_exports2, require_setupHooks_native(), module2.exports);
|
|
@@ -14084,7 +14027,7 @@ var require_Collection_native = __commonJS({
|
|
|
14084
14027
|
}
|
|
14085
14028
|
});
|
|
14086
14029
|
module2.exports = __toCommonJS2(Collection_exports);
|
|
14087
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
14030
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_react3 = __toESM2(require("react"));
|
|
14088
14031
|
function createCollection(name) {
|
|
14089
14032
|
var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core12.createStyledContext)({
|
|
14090
14033
|
collectionRef: {
|
|
@@ -15619,7 +15562,7 @@ var require_Accordion_native = __commonJS({
|
|
|
15619
15562
|
}
|
|
15620
15563
|
});
|
|
15621
15564
|
module2.exports = __toCommonJS2(Accordion_exports);
|
|
15622
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native15(), import_collection = require_index_native19(), import_compose_refs =
|
|
15565
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native15(), import_collection = require_index_native19(), import_compose_refs = require_index_native11(), 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 = [
|
|
15623
15566
|
"Home",
|
|
15624
15567
|
"End",
|
|
15625
15568
|
"ArrowDown",
|
|
@@ -18234,7 +18177,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18234
18177
|
}
|
|
18235
18178
|
});
|
|
18236
18179
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
18237
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs =
|
|
18180
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_portal2 = require_index_native28(), import_react3 = __toESM2(require("react")), import_react_native4 = require("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) {
|
|
18238
18181
|
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, {
|
|
18239
18182
|
onOverlayComponent: setOverlayComponent
|
|
18240
18183
|
}), { 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() {
|
|
@@ -18683,7 +18626,7 @@ var require_SheetScrollView_native = __commonJS({
|
|
|
18683
18626
|
}
|
|
18684
18627
|
});
|
|
18685
18628
|
module2.exports = __toCommonJS2(SheetScrollView_exports);
|
|
18686
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_compose_refs =
|
|
18629
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_compose_refs = require_index_native11(), 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) {
|
|
18687
18630
|
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({
|
|
18688
18631
|
lastPageY: 0,
|
|
18689
18632
|
dragAt: 0,
|
|
@@ -18872,7 +18815,7 @@ var require_createSheet_native = __commonJS({
|
|
|
18872
18815
|
}
|
|
18873
18816
|
});
|
|
18874
18817
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
18875
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
18818
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_helpers = require_index_native7(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_use_did_finish_ssr = require_index_native13(), import_z_index_stack2 = require_index_native27(), 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();
|
|
18876
18819
|
function createSheet(param) {
|
|
18877
18820
|
var { Handle, Frame, Overlay } = param, SheetHandle = Handle.styleable(function(param2, forwardedRef) {
|
|
18878
18821
|
var { __scopeSheet, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef);
|
|
@@ -18912,24 +18855,27 @@ var require_createSheet_native = __commonJS({
|
|
|
18912
18855
|
]), context.onlyShowFrame, null;
|
|
18913
18856
|
})), SheetFrame = Frame.extractable(/* @__PURE__ */ (0, import_react3.forwardRef)(function(param2, forwardedRef) {
|
|
18914
18857
|
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() {
|
|
18915
|
-
return (
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
|
|
18922
|
-
|
|
18923
|
-
|
|
18924
|
-
|
|
18925
|
-
|
|
18926
|
-
|
|
18927
|
-
|
|
18928
|
-
|
|
18929
|
-
|
|
18930
|
-
|
|
18931
|
-
|
|
18932
|
-
|
|
18858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
18859
|
+
zIndex: (0, import_portal2.resolveViewZIndex)(props.zIndex),
|
|
18860
|
+
children: (
|
|
18861
|
+
/* @ts-expect-error */
|
|
18862
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Frame, {
|
|
18863
|
+
ref: composedContentRef,
|
|
18864
|
+
flex: hasFit ? 0 : 1,
|
|
18865
|
+
height: hasFit ? void 0 : frameSize,
|
|
18866
|
+
pointerEvents: open ? "auto" : "none",
|
|
18867
|
+
...props,
|
|
18868
|
+
children: [
|
|
18869
|
+
children,
|
|
18870
|
+
adjustPaddingForOffscreenContent && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
18871
|
+
"data-sheet-offscreen-pad": !0,
|
|
18872
|
+
height: offscreenSize,
|
|
18873
|
+
width: "100%"
|
|
18874
|
+
})
|
|
18875
|
+
]
|
|
18876
|
+
})
|
|
18877
|
+
)
|
|
18878
|
+
});
|
|
18933
18879
|
}, [
|
|
18934
18880
|
open,
|
|
18935
18881
|
props,
|
|
@@ -19439,7 +19385,7 @@ var require_Dialog_native = __commonJS({
|
|
|
19439
19385
|
}
|
|
19440
19386
|
});
|
|
19441
19387
|
module2.exports = __toCommonJS2(Dialog_exports);
|
|
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 =
|
|
19388
|
+
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_native11(), 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(), import_z_index_stack2 = require_index_native27(), 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, {
|
|
19443
19389
|
name: TRIGGER_NAME
|
|
19444
19390
|
}), DialogTrigger = DialogTriggerFrame.styleable(function(props, forwardedRef) {
|
|
19445
19391
|
var { __scopeDialog, ...triggerProps } = props, isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext), context = useDialogContext(TRIGGER_NAME, __scopeDialog), composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
@@ -19466,7 +19412,6 @@ var require_Dialog_native = __commonJS({
|
|
|
19466
19412
|
alignItems: "center",
|
|
19467
19413
|
justifyContent: "center",
|
|
19468
19414
|
fullscreen: !0,
|
|
19469
|
-
zIndex: 1e5,
|
|
19470
19415
|
...import_constants4.isWeb && {
|
|
19471
19416
|
maxHeight: "100vh",
|
|
19472
19417
|
position: "fixed"
|
|
@@ -19501,9 +19446,12 @@ var require_Dialog_native = __commonJS({
|
|
|
19501
19446
|
setIsFullyHidden(!0);
|
|
19502
19447
|
}, []);
|
|
19503
19448
|
if (context.modal) {
|
|
19504
|
-
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
19505
|
-
|
|
19506
|
-
children:
|
|
19449
|
+
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
19450
|
+
zIndex: (0, import_portal2.resolveViewZIndex)(props.zIndex),
|
|
19451
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
|
|
19452
|
+
onExitComplete: handleExitComplete,
|
|
19453
|
+
children: isShowing || isAdapted ? children : null
|
|
19454
|
+
})
|
|
19507
19455
|
});
|
|
19508
19456
|
if (isFullyHidden && !isAdapted) return null;
|
|
19509
19457
|
var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalProvider2, {
|
|
@@ -19515,16 +19463,15 @@ var require_Dialog_native = __commonJS({
|
|
|
19515
19463
|
children: contents
|
|
19516
19464
|
})
|
|
19517
19465
|
});
|
|
19518
|
-
|
|
19519
|
-
|
|
19520
|
-
|
|
19521
|
-
|
|
19522
|
-
|
|
19523
|
-
|
|
19524
|
-
|
|
19525
|
-
})
|
|
19526
|
-
}
|
|
19527
|
-
return framedContents;
|
|
19466
|
+
return import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
19467
|
+
zIndex: props.zIndex,
|
|
19468
|
+
// set to 1000 which "boosts" it 1000 above baseline for current context
|
|
19469
|
+
// this makes sure its above (this first 1k) popovers on the same layer
|
|
19470
|
+
stackZIndex: 1e3,
|
|
19471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PassthroughTheme, {
|
|
19472
|
+
children: framedContents
|
|
19473
|
+
})
|
|
19474
|
+
}) : framedContents;
|
|
19528
19475
|
}
|
|
19529
19476
|
return children;
|
|
19530
19477
|
}, PassthroughTheme = function(param) {
|
|
@@ -19570,14 +19517,16 @@ var require_Dialog_native = __commonJS({
|
|
|
19570
19517
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
19571
19518
|
}
|
|
19572
19519
|
}), DialogContent = DialogContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
|
|
19573
|
-
var { __scopeDialog, ...props } = param, portalContext = usePortalContext(CONTENT_NAME, __scopeDialog), { forceMount = portalContext.forceMount, ...contentProps } = props, context = useDialogContext(CONTENT_NAME, __scopeDialog), contents =
|
|
19574
|
-
context,
|
|
19575
|
-
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19520
|
+
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)(import_jsx_runtime6.Fragment, {
|
|
19521
|
+
children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentModal, {
|
|
19522
|
+
context,
|
|
19523
|
+
...contentProps,
|
|
19524
|
+
ref: forwardedRef
|
|
19525
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentNonModal, {
|
|
19526
|
+
context,
|
|
19527
|
+
...contentProps,
|
|
19528
|
+
ref: forwardedRef
|
|
19529
|
+
})
|
|
19581
19530
|
});
|
|
19582
19531
|
return !import_constants4.isWeb || context.disableRemoveScroll ? contents : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_remove_scroll.RemoveScroll, {
|
|
19583
19532
|
forwardProps: !0,
|
|
@@ -19988,7 +19937,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
19988
19937
|
}
|
|
19989
19938
|
});
|
|
19990
19939
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
19991
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
19940
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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, [
|
|
19992
19941
|
import_dialog.createDialogScope
|
|
19993
19942
|
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
19994
19943
|
name: TRIGGER_NAME
|
|
@@ -21883,7 +21832,7 @@ var require_focusableInputHOC_native = __commonJS({
|
|
|
21883
21832
|
}
|
|
21884
21833
|
});
|
|
21885
21834
|
module2.exports = __toCommonJS2(focusableInputHOC_exports);
|
|
21886
|
-
var import_compose_refs =
|
|
21835
|
+
var import_compose_refs = require_index_native11(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_registerFocusable = require_registerFocusable_native();
|
|
21887
21836
|
function useFocusable2(param) {
|
|
21888
21837
|
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) {
|
|
21889
21838
|
var _unregisterFocusable_current;
|
|
@@ -22053,7 +22002,7 @@ var require_Label_native = __commonJS({
|
|
|
22053
22002
|
}
|
|
22054
22003
|
});
|
|
22055
22004
|
module2.exports = __toCommonJS2(Label_exports);
|
|
22056
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
22005
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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, {
|
|
22057
22006
|
id: void 0,
|
|
22058
22007
|
controlRef: {
|
|
22059
22008
|
current: null
|
|
@@ -22465,7 +22414,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
22465
22414
|
}
|
|
22466
22415
|
});
|
|
22467
22416
|
module2.exports = __toCommonJS2(useCheckbox_exports);
|
|
22468
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
22417
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_react3 = __toESM2(require("react")), import_BubbleInput = require_BubbleInput_native(), import_utils3 = require_utils_native2();
|
|
22469
22418
|
function useCheckbox(props, param, ref) {
|
|
22470
22419
|
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() {
|
|
22471
22420
|
return (0, import_helpers.composeEventHandlers)(parentKeyDown, function(event) {
|
|
@@ -25183,7 +25132,7 @@ var require_Popper_native = __commonJS({
|
|
|
25183
25132
|
}
|
|
25184
25133
|
});
|
|
25185
25134
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
25186
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
25135
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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 = {
|
|
25187
25136
|
name: "checkFloating",
|
|
25188
25137
|
fn(data) {
|
|
25189
25138
|
return {
|
|
@@ -25595,7 +25544,7 @@ var require_Popover_native = __commonJS({
|
|
|
25595
25544
|
}
|
|
25596
25545
|
});
|
|
25597
25546
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
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 =
|
|
25547
|
+
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_native11(), 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(), import_z_index_stack2 = require_index_native27(), 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) {
|
|
25599
25548
|
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
25600
25549
|
return React4.useEffect(function() {
|
|
25601
25550
|
return onCustomAnchorAdd(), function() {
|
|
@@ -25651,18 +25600,20 @@ var require_Popover_native = __commonJS({
|
|
|
25651
25600
|
});
|
|
25652
25601
|
}), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25653
25602
|
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);
|
|
25654
|
-
|
|
25603
|
+
if (context.open && isFullyHidden && setIsFullyHidden(!1), React4.useEffect(function() {
|
|
25655
25604
|
if (context.open) {
|
|
25656
25605
|
var content = contentRef.current;
|
|
25657
25606
|
if (content) return (0, import_aria_hidden.hideOthers)(content);
|
|
25658
25607
|
}
|
|
25659
25608
|
}, [
|
|
25660
25609
|
context.open
|
|
25661
|
-
]), !context.keepChildrenMounted && isFullyHidden
|
|
25610
|
+
]), !context.keepChildrenMounted && isFullyHidden) return null;
|
|
25611
|
+
var _contentImplProps_pointerEvents;
|
|
25612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
25662
25613
|
__scopePopover,
|
|
25663
|
-
zIndex
|
|
25614
|
+
zIndex,
|
|
25664
25615
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
25665
|
-
pointerEvents: context.open ? "auto" : "none",
|
|
25616
|
+
pointerEvents: context.open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : "auto" : "none",
|
|
25666
25617
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentImpl, {
|
|
25667
25618
|
...contentImplProps,
|
|
25668
25619
|
disableRemoveScroll,
|
|
@@ -25708,7 +25659,7 @@ var require_Popover_native = __commonJS({
|
|
|
25708
25659
|
});
|
|
25709
25660
|
}
|
|
25710
25661
|
function PopoverContentPortal(props) {
|
|
25711
|
-
var { __scopePopover } = props,
|
|
25662
|
+
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;
|
|
25712
25663
|
return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverRepropagateContext, {
|
|
25713
25664
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
25714
25665
|
popperContext,
|
|
@@ -25716,6 +25667,7 @@ var require_Popover_native = __commonJS({
|
|
|
25716
25667
|
adaptContext,
|
|
25717
25668
|
children: props.children
|
|
25718
25669
|
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
25670
|
+
stackZIndex: !0,
|
|
25719
25671
|
zIndex,
|
|
25720
25672
|
children: (
|
|
25721
25673
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
@@ -25728,7 +25680,10 @@ var require_Popover_native = __commonJS({
|
|
|
25728
25680
|
fullscreen: !0,
|
|
25729
25681
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
|
|
25730
25682
|
}),
|
|
25731
|
-
|
|
25683
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
25684
|
+
zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
|
|
25685
|
+
children: contents
|
|
25686
|
+
})
|
|
25732
25687
|
]
|
|
25733
25688
|
})
|
|
25734
25689
|
)
|
|
@@ -26501,7 +26456,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
26501
26456
|
}
|
|
26502
26457
|
});
|
|
26503
26458
|
module2.exports = __toCommonJS2(useRadioGroup_exports);
|
|
26504
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
26459
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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();
|
|
26505
26460
|
function useRadioGroup(params) {
|
|
26506
26461
|
var { value: valueProp, onValueChange, defaultValue, required, disabled, name, native, accentColor, orientation, ref } = params, [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
26507
26462
|
prop: valueProp,
|
|
@@ -27583,7 +27538,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
27583
27538
|
}
|
|
27584
27539
|
});
|
|
27585
27540
|
module2.exports = __toCommonJS2(SelectItem_exports);
|
|
27586
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27541
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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) {
|
|
27587
27542
|
var { __scopeSelect, value, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
|
|
27588
27543
|
...!props.unstyled && {
|
|
27589
27544
|
ellipse: !0
|
|
@@ -27748,7 +27703,7 @@ var require_SelectItemText_native = __commonJS({
|
|
|
27748
27703
|
}
|
|
27749
27704
|
});
|
|
27750
27705
|
module2.exports = __toCommonJS2(SelectItemText_exports);
|
|
27751
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27706
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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, {
|
|
27752
27707
|
name: ITEM_TEXT_NAME,
|
|
27753
27708
|
variants: {
|
|
27754
27709
|
unstyled: {
|
|
@@ -27896,7 +27851,7 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
27896
27851
|
}
|
|
27897
27852
|
});
|
|
27898
27853
|
module2.exports = __toCommonJS2(SelectTrigger_exports);
|
|
27899
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27854
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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) {
|
|
27900
27855
|
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);
|
|
27901
27856
|
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItem, {
|
|
27902
27857
|
componentName: TRIGGER_NAME,
|
|
@@ -28112,7 +28067,7 @@ var require_Select_native = __commonJS({
|
|
|
28112
28067
|
}
|
|
28113
28068
|
});
|
|
28114
28069
|
module2.exports = __toCommonJS2(Select_exports);
|
|
28115
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_compose_refs =
|
|
28070
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_compose_refs = require_index_native11(), 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, {
|
|
28116
28071
|
name: VALUE_NAME,
|
|
28117
28072
|
userSelect: "none"
|
|
28118
28073
|
}), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
|
|
@@ -28887,7 +28842,7 @@ var require_Slider_native = __commonJS({
|
|
|
28887
28842
|
}
|
|
28888
28843
|
});
|
|
28889
28844
|
module2.exports = __toCommonJS2(Slider_exports);
|
|
28890
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
28845
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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();
|
|
28891
28846
|
import_constants4.isWeb && import_constants4.isClient && !process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL && ((_setInterval = setInterval) === null || _setInterval === void 0 || _setInterval(
|
|
28892
28847
|
function() {
|
|
28893
28848
|
activeSliderMeasureListeners.forEach(function(cb) {
|
|
@@ -29428,7 +29383,7 @@ var require_useSwitch_native = __commonJS({
|
|
|
29428
29383
|
}
|
|
29429
29384
|
});
|
|
29430
29385
|
module2.exports = __toCommonJS2(useSwitch_exports);
|
|
29431
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
29386
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_label = require_index_native47(), import_use_previous = require_index_native48(), React4 = __toESM2(require("react"));
|
|
29432
29387
|
function useSwitch(props, param, ref) {
|
|
29433
29388
|
var [checked, setChecked] = param;
|
|
29434
29389
|
return {
|
|
@@ -29944,14 +29899,14 @@ var require_Tabs_native = __commonJS({
|
|
|
29944
29899
|
}, Tabs_exports = {};
|
|
29945
29900
|
__export2(Tabs_exports, {
|
|
29946
29901
|
Tabs: function() {
|
|
29947
|
-
return
|
|
29902
|
+
return Tabs2;
|
|
29948
29903
|
},
|
|
29949
29904
|
useTabsContext: function() {
|
|
29950
29905
|
return useTabsContext;
|
|
29951
29906
|
}
|
|
29952
29907
|
});
|
|
29953
29908
|
module2.exports = __toCommonJS2(Tabs_exports);
|
|
29954
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
29909
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), 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) {
|
|
29955
29910
|
var { __scopeTabs, loop = !0, children, ...listProps } = props, context = useTabsContext(__scopeTabs);
|
|
29956
29911
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
29957
29912
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
@@ -30163,7 +30118,7 @@ var require_Tabs_native = __commonJS({
|
|
|
30163
30118
|
ref: forwardedRef
|
|
30164
30119
|
})
|
|
30165
30120
|
});
|
|
30166
|
-
}),
|
|
30121
|
+
}), Tabs2 = (0, import_helpers.withStaticProperties)(TabsComponent, {
|
|
30167
30122
|
List: TabsList,
|
|
30168
30123
|
/**
|
|
30169
30124
|
* @deprecated Use Tabs.Tab instead
|
|
@@ -30172,7 +30127,6 @@ var require_Tabs_native = __commonJS({
|
|
|
30172
30127
|
Tab: TabsTrigger,
|
|
30173
30128
|
Content: TabsContent
|
|
30174
30129
|
});
|
|
30175
|
-
Tabs.displayName = TABS_NAME;
|
|
30176
30130
|
function makeTriggerId(baseId, value) {
|
|
30177
30131
|
return `${baseId}-trigger-${value}`;
|
|
30178
30132
|
}
|
|
@@ -31487,7 +31441,7 @@ __reExport(index_exports, __toESM(require_index_native41()), module.exports);
|
|
|
31487
31441
|
__reExport(index_exports, __toESM(require_index_native44()), module.exports);
|
|
31488
31442
|
__reExport(index_exports, __toESM(require_index_native45()), module.exports);
|
|
31489
31443
|
__reExport(index_exports, __toESM(require_index_native50()), module.exports);
|
|
31490
|
-
__reExport(index_exports, __toESM(
|
|
31444
|
+
__reExport(index_exports, __toESM(require_index_native11()), module.exports);
|
|
31491
31445
|
__reExport(index_exports, __toESM(require_index_native30()), module.exports);
|
|
31492
31446
|
__reExport(index_exports, __toESM(require_index_native37()), module.exports);
|
|
31493
31447
|
__reExport(index_exports, __toESM(require_index_native42()), module.exports);
|