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/test.native.js
CHANGED
|
@@ -2408,7 +2408,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2408
2408
|
return insertStyleRules;
|
|
2409
2409
|
},
|
|
2410
2410
|
insertedTransforms: function() {
|
|
2411
|
-
return
|
|
2411
|
+
return insertedTransforms;
|
|
2412
2412
|
},
|
|
2413
2413
|
listenForSheetChanges: function() {
|
|
2414
2414
|
return listenForSheetChanges;
|
|
@@ -2427,18 +2427,18 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2427
2427
|
}
|
|
2428
2428
|
});
|
|
2429
2429
|
module2.exports = __toCommonJS2(insertStyleRule_exports);
|
|
2430
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {},
|
|
2430
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
|
|
2431
2431
|
return allSelectors;
|
|
2432
2432
|
}, getAllRules = function() {
|
|
2433
2433
|
return Object.values(allRules);
|
|
2434
2434
|
}, getAllTransforms = function() {
|
|
2435
|
-
return
|
|
2435
|
+
return insertedTransforms;
|
|
2436
2436
|
};
|
|
2437
2437
|
function addTransform(identifier, css, rule) {
|
|
2438
2438
|
var s = css.indexOf("transform:");
|
|
2439
2439
|
if (s !== -1) {
|
|
2440
2440
|
var startI = s + 10, endI = css.indexOf(";"), value = css.slice(startI, endI);
|
|
2441
|
-
if (!
|
|
2441
|
+
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value, !0;
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
2444
2444
|
function listenForSheetChanges() {
|
|
@@ -2545,75 +2545,6 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2545
2545
|
}
|
|
2546
2546
|
});
|
|
2547
2547
|
|
|
2548
|
-
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
2549
|
-
var require_index_native11 = __commonJS({
|
|
2550
|
-
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
2551
|
-
"use strict";
|
|
2552
|
-
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2553
|
-
for (var name in all) __defProp2(target, name, {
|
|
2554
|
-
get: all[name],
|
|
2555
|
-
enumerable: !0
|
|
2556
|
-
});
|
|
2557
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
2558
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2559
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2560
|
-
for (var _loop = function() {
|
|
2561
|
-
var key = _step.value;
|
|
2562
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2563
|
-
get: function() {
|
|
2564
|
-
return from[key];
|
|
2565
|
-
},
|
|
2566
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2567
|
-
});
|
|
2568
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2569
|
-
} catch (err) {
|
|
2570
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
2571
|
-
} finally {
|
|
2572
|
-
try {
|
|
2573
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2574
|
-
} finally {
|
|
2575
|
-
if (_didIteratorError)
|
|
2576
|
-
throw _iteratorError;
|
|
2577
|
-
}
|
|
2578
|
-
}
|
|
2579
|
-
return to;
|
|
2580
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
2581
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
2582
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
2583
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
2584
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2585
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2586
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
2587
|
-
value: mod,
|
|
2588
|
-
enumerable: !0
|
|
2589
|
-
}) : target,
|
|
2590
|
-
mod
|
|
2591
|
-
);
|
|
2592
|
-
}, __toCommonJS2 = function(mod) {
|
|
2593
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2594
|
-
value: !0
|
|
2595
|
-
}), mod);
|
|
2596
|
-
}, index_exports2 = {};
|
|
2597
|
-
__export2(index_exports2, {
|
|
2598
|
-
useClientValue: function() {
|
|
2599
|
-
return useClientValue;
|
|
2600
|
-
},
|
|
2601
|
-
useDidFinishSSR: function() {
|
|
2602
|
-
return useDidFinishSSR2;
|
|
2603
|
-
}
|
|
2604
|
-
});
|
|
2605
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
2606
|
-
var React4 = __toESM2(require("react"));
|
|
2607
|
-
function useDidFinishSSR2(value) {
|
|
2608
|
-
return value ?? !0;
|
|
2609
|
-
}
|
|
2610
|
-
function useClientValue(value) {
|
|
2611
|
-
var done = useDidFinishSSR2();
|
|
2612
|
-
return done ? typeof value == "function" ? value() : value : void 0;
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
});
|
|
2616
|
-
|
|
2617
2548
|
// ../../core/web/dist/cjs/helpers/matchMedia.native.js
|
|
2618
2549
|
var require_matchMedia_native = __commonJS({
|
|
2619
2550
|
"../../core/web/dist/cjs/helpers/matchMedia.native.js"(exports2, module2) {
|
|
@@ -2783,62 +2714,11 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
2783
2714
|
}
|
|
2784
2715
|
});
|
|
2785
2716
|
|
|
2786
|
-
// ../../core/web/dist/cjs/hooks/useDisableSSR.native.js
|
|
2787
|
-
var require_useDisableSSR_native = __commonJS({
|
|
2788
|
-
"../../core/web/dist/cjs/hooks/useDisableSSR.native.js"(exports2, module2) {
|
|
2789
|
-
"use strict";
|
|
2790
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2791
|
-
for (var name in all) __defProp2(target, name, {
|
|
2792
|
-
get: all[name],
|
|
2793
|
-
enumerable: !0
|
|
2794
|
-
});
|
|
2795
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
2796
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
2797
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
2798
|
-
for (var _loop = function() {
|
|
2799
|
-
var key = _step.value;
|
|
2800
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
2801
|
-
get: function() {
|
|
2802
|
-
return from[key];
|
|
2803
|
-
},
|
|
2804
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2805
|
-
});
|
|
2806
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
2807
|
-
} catch (err) {
|
|
2808
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
2809
|
-
} finally {
|
|
2810
|
-
try {
|
|
2811
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
2812
|
-
} finally {
|
|
2813
|
-
if (_didIteratorError)
|
|
2814
|
-
throw _iteratorError;
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
return to;
|
|
2818
|
-
}, __toCommonJS2 = function(mod) {
|
|
2819
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2820
|
-
value: !0
|
|
2821
|
-
}), mod);
|
|
2822
|
-
}, useDisableSSR_exports = {};
|
|
2823
|
-
__export2(useDisableSSR_exports, {
|
|
2824
|
-
getDisableSSR: function() {
|
|
2825
|
-
return getDisableSSR;
|
|
2826
|
-
}
|
|
2827
|
-
});
|
|
2828
|
-
module2.exports = __toCommonJS2(useDisableSSR_exports);
|
|
2829
|
-
var import_config = require_config_native();
|
|
2830
|
-
function getDisableSSR(componentContext) {
|
|
2831
|
-
var _componentContext_disableSSR;
|
|
2832
|
-
return (_componentContext_disableSSR = componentContext == null ? void 0 : componentContext.disableSSR) !== null && _componentContext_disableSSR !== void 0 ? _componentContext_disableSSR : (0, import_config.getSetting)("disableSSR");
|
|
2833
|
-
}
|
|
2834
|
-
}
|
|
2835
|
-
});
|
|
2836
|
-
|
|
2837
2717
|
// ../../core/web/dist/cjs/hooks/useMedia.native.js
|
|
2838
2718
|
var require_useMedia_native = __commonJS({
|
|
2839
2719
|
"../../core/web/dist/cjs/hooks/useMedia.native.js"(exports2, module2) {
|
|
2840
2720
|
"use strict";
|
|
2841
|
-
var
|
|
2721
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
2842
2722
|
for (var name in all) __defProp2(target, name, {
|
|
2843
2723
|
get: all[name],
|
|
2844
2724
|
enumerable: !0
|
|
@@ -2866,18 +2746,6 @@ var require_useMedia_native = __commonJS({
|
|
|
2866
2746
|
}
|
|
2867
2747
|
}
|
|
2868
2748
|
return to;
|
|
2869
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
2870
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
2871
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
2872
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
2873
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2874
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2875
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
2876
|
-
value: mod,
|
|
2877
|
-
enumerable: !0
|
|
2878
|
-
}) : target,
|
|
2879
|
-
mod
|
|
2880
|
-
);
|
|
2881
2749
|
}, __toCommonJS2 = function(mod) {
|
|
2882
2750
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
2883
2751
|
value: !0
|
|
@@ -2929,12 +2797,15 @@ var require_useMedia_native = __commonJS({
|
|
|
2929
2797
|
setupMediaListeners: function() {
|
|
2930
2798
|
return setupMediaListeners;
|
|
2931
2799
|
},
|
|
2800
|
+
updateMediaListeners: function() {
|
|
2801
|
+
return updateMediaListeners;
|
|
2802
|
+
},
|
|
2932
2803
|
useMedia: function() {
|
|
2933
2804
|
return useMedia3;
|
|
2934
2805
|
}
|
|
2935
2806
|
});
|
|
2936
2807
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
2937
|
-
var import_constants4 = require_index_native6(),
|
|
2808
|
+
var import_constants4 = require_index_native6(), import_react3 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mediaState3 = {}, mediaQueryConfig3 = {}, getMedia3 = function() {
|
|
2938
2809
|
return mediaState3;
|
|
2939
2810
|
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
2940
2811
|
if (mediaKeys.has(key)) return !0;
|
|
@@ -2970,27 +2841,26 @@ var require_useMedia_native = __commonJS({
|
|
|
2970
2841
|
if (!match) throw new Error("\u26A0\uFE0F No match");
|
|
2971
2842
|
match.addListener(update), dispose.add(function() {
|
|
2972
2843
|
match.removeListener(update);
|
|
2973
|
-
})
|
|
2844
|
+
});
|
|
2974
2845
|
function update() {
|
|
2975
2846
|
var next = !!getMatch().matches;
|
|
2976
2847
|
next !== mediaState3[key2] && (mediaState3 = {
|
|
2977
2848
|
...mediaState3,
|
|
2978
2849
|
[key2]: next
|
|
2979
|
-
},
|
|
2850
|
+
}, updateMediaListeners());
|
|
2980
2851
|
}
|
|
2852
|
+
update();
|
|
2981
2853
|
};
|
|
2982
2854
|
if (!(import_constants4.isWeb && import_constants4.isServer) && !process.env.IS_STATIC && setupVersion !== mediaVersion) {
|
|
2983
2855
|
setupVersion = mediaVersion, unlisten();
|
|
2984
2856
|
for (var key in mediaQueryConfig3) _loop(key);
|
|
2985
2857
|
}
|
|
2986
2858
|
}
|
|
2987
|
-
var listeners = /* @__PURE__ */ new Set()
|
|
2988
|
-
function
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
});
|
|
2993
|
-
}));
|
|
2859
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
2860
|
+
function updateMediaListeners() {
|
|
2861
|
+
listeners.forEach(function(cb) {
|
|
2862
|
+
return cb(mediaState3);
|
|
2863
|
+
});
|
|
2994
2864
|
}
|
|
2995
2865
|
var States = /* @__PURE__ */ new WeakMap();
|
|
2996
2866
|
function setMediaShouldUpdate(ref, enabled, keys) {
|
|
@@ -3006,18 +2876,22 @@ var require_useMedia_native = __commonJS({
|
|
|
3006
2876
|
listeners.delete(subscriber);
|
|
3007
2877
|
};
|
|
3008
2878
|
}
|
|
3009
|
-
var CurrentKeysMap = /* @__PURE__ */ new WeakMap();
|
|
3010
2879
|
function useMedia3(cc, debug) {
|
|
3011
|
-
var
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
2880
|
+
var componentState = cc ? States.get(cc) : null, internalRef = (0, import_react3.useRef)();
|
|
2881
|
+
internalRef.current || (internalRef.current = {
|
|
2882
|
+
keys: /* @__PURE__ */ new Set()
|
|
2883
|
+
});
|
|
2884
|
+
var { keys, lastState = (0, import_config.getSetting)("disableSSR") ? mediaState3 : initState } = internalRef.current;
|
|
2885
|
+
keys.size && keys.clear();
|
|
2886
|
+
var state = (0, import_react3.useSyncExternalStore)(subscribe, function() {
|
|
2887
|
+
if (componentState != null && componentState.enabled) return internalRef.current.lastState = mediaState3, mediaState3;
|
|
2888
|
+
var curKeys = (componentState == null ? void 0 : componentState.keys) || keys;
|
|
2889
|
+
if (!curKeys.size) return lastState;
|
|
3016
2890
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3017
2891
|
try {
|
|
3018
|
-
for (var _iterator =
|
|
2892
|
+
for (var _iterator = curKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
3019
2893
|
var key = _step.value;
|
|
3020
|
-
if (mediaState3[key] !==
|
|
2894
|
+
if (mediaState3[key] !== lastState[key]) return internalRef.current.lastState = mediaState3, mediaState3;
|
|
3021
2895
|
}
|
|
3022
2896
|
} catch (err) {
|
|
3023
2897
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -3028,42 +2902,17 @@ var require_useMedia_native = __commonJS({
|
|
|
3028
2902
|
if (_didIteratorError) throw _iteratorError;
|
|
3029
2903
|
}
|
|
3030
2904
|
}
|
|
3031
|
-
return
|
|
3032
|
-
}
|
|
3033
|
-
|
|
3034
|
-
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
3035
|
-
isRendering = !1;
|
|
3036
|
-
}), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
3037
|
-
var update = function() {
|
|
3038
|
-
return setState(function(prev) {
|
|
3039
|
-
var next = getSnapshot(prev);
|
|
3040
|
-
return next;
|
|
3041
|
-
});
|
|
3042
|
-
};
|
|
3043
|
-
update();
|
|
3044
|
-
var tm = setTimeout(function() {
|
|
3045
|
-
currentKeys.size && update();
|
|
3046
|
-
}), dispose2 = subscribe(update);
|
|
3047
|
-
return function() {
|
|
3048
|
-
dispose2(), tm && clearTimeout(tm);
|
|
3049
|
-
};
|
|
3050
|
-
}, [
|
|
3051
|
-
setState
|
|
3052
|
-
]), new Proxy(state, {
|
|
2905
|
+
return lastState;
|
|
2906
|
+
}, getServerSnapshot);
|
|
2907
|
+
return new Proxy(state, {
|
|
3053
2908
|
get(_, key) {
|
|
3054
|
-
|
|
3055
|
-
currentKeys.add(key);
|
|
3056
|
-
var shouldUpdate = state[key] !== mediaState3[key];
|
|
3057
|
-
if (shouldUpdate && !isInitialState) {
|
|
3058
|
-
var next = getSnapshot(state);
|
|
3059
|
-
next !== state && setState(next);
|
|
3060
|
-
}
|
|
3061
|
-
}
|
|
3062
|
-
return Reflect.get(state, key);
|
|
2909
|
+
return !disableMediaTouch && typeof key == "string" && keys.add(key), Reflect.get(state, key);
|
|
3063
2910
|
}
|
|
3064
2911
|
});
|
|
3065
2912
|
}
|
|
3066
|
-
var
|
|
2913
|
+
var getServerSnapshot = function() {
|
|
2914
|
+
return initState;
|
|
2915
|
+
}, disableMediaTouch = !1;
|
|
3067
2916
|
function _disableMediaTouch2(val) {
|
|
3068
2917
|
disableMediaTouch = val;
|
|
3069
2918
|
}
|
|
@@ -3269,7 +3118,7 @@ var require_compose_refs_native = __commonJS({
|
|
|
3269
3118
|
});
|
|
3270
3119
|
|
|
3271
3120
|
// ../../core/compose-refs/dist/cjs/index.native.js
|
|
3272
|
-
var
|
|
3121
|
+
var require_index_native11 = __commonJS({
|
|
3273
3122
|
"../../core/compose-refs/dist/cjs/index.native.js"(exports2, module2) {
|
|
3274
3123
|
"use strict";
|
|
3275
3124
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -3697,6 +3546,59 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
3697
3546
|
}
|
|
3698
3547
|
});
|
|
3699
3548
|
|
|
3549
|
+
// ../../core/web/dist/cjs/helpers/consoleLog.native.js
|
|
3550
|
+
var require_consoleLog_native = __commonJS({
|
|
3551
|
+
"../../core/web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
|
|
3552
|
+
"use strict";
|
|
3553
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3554
|
+
for (var name in all) __defProp2(target, name, {
|
|
3555
|
+
get: all[name],
|
|
3556
|
+
enumerable: !0
|
|
3557
|
+
});
|
|
3558
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
3559
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3560
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3561
|
+
for (var _loop = function() {
|
|
3562
|
+
var key = _step.value;
|
|
3563
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3564
|
+
get: function() {
|
|
3565
|
+
return from[key];
|
|
3566
|
+
},
|
|
3567
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3568
|
+
});
|
|
3569
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3570
|
+
} catch (err) {
|
|
3571
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
3572
|
+
} finally {
|
|
3573
|
+
try {
|
|
3574
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3575
|
+
} finally {
|
|
3576
|
+
if (_didIteratorError)
|
|
3577
|
+
throw _iteratorError;
|
|
3578
|
+
}
|
|
3579
|
+
}
|
|
3580
|
+
return to;
|
|
3581
|
+
}, __toCommonJS2 = function(mod) {
|
|
3582
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3583
|
+
value: !0
|
|
3584
|
+
}), mod);
|
|
3585
|
+
}, consoleLog_exports = {};
|
|
3586
|
+
__export2(consoleLog_exports, {
|
|
3587
|
+
gc: function() {
|
|
3588
|
+
return gc;
|
|
3589
|
+
},
|
|
3590
|
+
groupCollapsed: function() {
|
|
3591
|
+
return groupCollapsed;
|
|
3592
|
+
},
|
|
3593
|
+
groupEnd: function() {
|
|
3594
|
+
return groupEnd;
|
|
3595
|
+
}
|
|
3596
|
+
});
|
|
3597
|
+
module2.exports = __toCommonJS2(consoleLog_exports);
|
|
3598
|
+
var import_constants4 = require_index_native6(), groupEnd = console.groupEnd.bind(console), gc = console.groupCollapsed.bind(console), groupCollapsed = import_constants4.isWeb ? gc : console.info;
|
|
3599
|
+
}
|
|
3600
|
+
});
|
|
3601
|
+
|
|
3700
3602
|
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
3701
3603
|
var require_getShorthandValue_native = __commonJS({
|
|
3702
3604
|
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
@@ -4467,7 +4369,7 @@ var require_normalize_color = __commonJS({
|
|
|
4467
4369
|
});
|
|
4468
4370
|
|
|
4469
4371
|
// ../../core/normalize-css-color/dist/cjs/index.native.js
|
|
4470
|
-
var
|
|
4372
|
+
var require_index_native12 = __commonJS({
|
|
4471
4373
|
"../../core/normalize-css-color/dist/cjs/index.native.js"(exports2, module2) {
|
|
4472
4374
|
"use strict";
|
|
4473
4375
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -4590,7 +4492,7 @@ var require_normalizeColor_native = __commonJS({
|
|
|
4590
4492
|
}
|
|
4591
4493
|
});
|
|
4592
4494
|
module2.exports = __toCommonJS2(normalizeColor_exports);
|
|
4593
|
-
var import_normalize_css_color =
|
|
4495
|
+
var import_normalize_css_color = require_index_native12(), import_normalize_css_color2 = require_index_native12(), normalizeColor = function(color, opacity) {
|
|
4594
4496
|
if (color) {
|
|
4595
4497
|
if (color[0] === "$") return color;
|
|
4596
4498
|
if (color.startsWith("var(")) {
|
|
@@ -4940,6 +4842,8 @@ var require_log_native = __commonJS({
|
|
|
4940
4842
|
(0, import_useMedia._disableMediaTouch)(!0);
|
|
4941
4843
|
try {
|
|
4942
4844
|
return console.log(...args);
|
|
4845
|
+
} catch (err) {
|
|
4846
|
+
console.error(err);
|
|
4943
4847
|
} finally {
|
|
4944
4848
|
(0, import_useMedia._disableMediaTouch)(!1);
|
|
4945
4849
|
}
|
|
@@ -4987,13 +4891,10 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
4987
4891
|
__export2(normalizeValueWithProperty_exports, {
|
|
4988
4892
|
normalizeValueWithProperty: function() {
|
|
4989
4893
|
return normalizeValueWithProperty;
|
|
4990
|
-
},
|
|
4991
|
-
reverseMapClassNameToValue: function() {
|
|
4992
|
-
return reverseMapClassNameToValue;
|
|
4993
4894
|
}
|
|
4994
4895
|
});
|
|
4995
4896
|
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
4996
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(),
|
|
4897
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), stylePropsAllPlusTransforms = {
|
|
4997
4898
|
...import_helpers.stylePropsAll,
|
|
4998
4899
|
translateX: !0,
|
|
4999
4900
|
translateY: !0
|
|
@@ -5004,15 +4905,6 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
5004
4905
|
var res = value;
|
|
5005
4906
|
return value && typeof value == "object" ? value : (typeof value == "number" ? res = `${value}px` : property && (res = `${res}`), res);
|
|
5006
4907
|
}
|
|
5007
|
-
var rcache = {};
|
|
5008
|
-
function reverseMapClassNameToValue(key, className) {
|
|
5009
|
-
var selectors = (0, import_insertStyleRule.getAllSelectors)(), cssRule = selectors[className];
|
|
5010
|
-
if (rcache[cssRule]) return rcache[cssRule];
|
|
5011
|
-
if (cssRule) {
|
|
5012
|
-
var cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
5013
|
-
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, res;
|
|
5014
|
-
}
|
|
5015
|
-
}
|
|
5016
4908
|
}
|
|
5017
4909
|
});
|
|
5018
4910
|
|
|
@@ -6157,7 +6049,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6157
6049
|
}
|
|
6158
6050
|
});
|
|
6159
6051
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6160
|
-
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(),
|
|
6052
|
+
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 = "-";
|
|
6161
6053
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6162
6054
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6163
6055
|
}
|
|
@@ -6176,13 +6068,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6176
6068
|
return "continue";
|
|
6177
6069
|
}
|
|
6178
6070
|
var valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles, accept);
|
|
6179
|
-
if (0)
|
|
6180
|
-
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps2, _dataSet;
|
|
6181
|
-
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
6182
|
-
var isValidClassName, isMediaOrPseudo;
|
|
6183
|
-
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState3;
|
|
6184
|
-
}
|
|
6185
|
-
}
|
|
6071
|
+
if (0) var _viewProps2, _dataSet;
|
|
6186
6072
|
if (!isValidStyleKeyInit) {
|
|
6187
6073
|
if (!import_constants4.isAndroid && keyInit === "elevationAndroid") return "continue";
|
|
6188
6074
|
if (keyInit === "userSelect") keyInit = "selectable", valInit = valInit !== "none";
|
|
@@ -6193,8 +6079,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6193
6079
|
return "continue";
|
|
6194
6080
|
}
|
|
6195
6081
|
if (0) var didUseKeyInit;
|
|
6196
|
-
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit),
|
|
6197
|
-
if (
|
|
6082
|
+
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);
|
|
6083
|
+
if (isMediaOrPseudo && keyInit.startsWith("$group-")) {
|
|
6198
6084
|
var parts = keyInit.split("-");
|
|
6199
6085
|
if (
|
|
6200
6086
|
// check if its actually a simple group selector to avoid breaking selectors
|
|
@@ -6204,16 +6090,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6204
6090
|
context != null && context.groups.subscribe && !(context != null && context.groups.state[name2]) && (keyInit = keyInit.replace("$group-", "$group-true-"));
|
|
6205
6091
|
}
|
|
6206
6092
|
}
|
|
6207
|
-
var isStyleProp = isValidStyleKeyInit ||
|
|
6093
|
+
var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo || isVariant && !noExpand;
|
|
6208
6094
|
if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
|
|
6209
6095
|
var shouldPassProp = !isStyleProp && isHOC || // is in parent variants
|
|
6210
|
-
isHOC && parentVariants && keyInit in parentVariants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentVariants == null ? void 0 : parentVariants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isValidStyleKeyInit ||
|
|
6211
|
-
if (shouldPassThrough && (passDownProp(viewProps, keyInit, valInit,
|
|
6096
|
+
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;
|
|
6097
|
+
if (shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !noSkip && keyInit in import_skipProps.skipProps) return "continue";
|
|
6212
6098
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
6213
|
-
var disablePropMap =
|
|
6099
|
+
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
6214
6100
|
(0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
6215
6101
|
var _parentStaticConfig_variants;
|
|
6216
|
-
if (!isHOC && disablePropMap && !
|
|
6102
|
+
if (!isHOC && disablePropMap && !isMediaOrPseudo) {
|
|
6217
6103
|
viewProps[key4] = val2;
|
|
6218
6104
|
return;
|
|
6219
6105
|
}
|
|
@@ -6226,18 +6112,18 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6226
6112
|
mergeStyle(styleState, key4, val2);
|
|
6227
6113
|
return;
|
|
6228
6114
|
}
|
|
6229
|
-
if (isPseudo = key4 in import_helpers.validPseudoKeys, isMedia = !isPseudo && (0, import_useMedia.isMediaKey)(key4),
|
|
6115
|
+
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)) {
|
|
6230
6116
|
var _props_key;
|
|
6231
6117
|
viewProps[key4] = (_props_key = props[key4]) !== null && _props_key !== void 0 ? _props_key : val2;
|
|
6232
6118
|
}
|
|
6233
|
-
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (
|
|
6119
|
+
var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
|
|
6234
6120
|
if (shouldPassThrough2) {
|
|
6235
|
-
passDownProp(viewProps, key4, val2,
|
|
6121
|
+
passDownProp(viewProps, key4, val2, isMediaOrPseudo);
|
|
6236
6122
|
return;
|
|
6237
6123
|
}
|
|
6238
6124
|
if (isPseudo) {
|
|
6239
6125
|
if (!val2) return;
|
|
6240
|
-
var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClass);
|
|
6126
|
+
var pseudoStyleObject = getSubStyle(styleState, key4, val2, styleProps.noClass && process.env.IS_STATIC !== "is_static");
|
|
6241
6127
|
if (!shouldDoClasses || process.env.IS_STATIC === "is_static") {
|
|
6242
6128
|
var _pseudos, _key;
|
|
6243
6129
|
if (pseudos || (pseudos = {}), (_pseudos = pseudos)[_key = key4] || (_pseudos[_key] = {}), process.env.IS_STATIC === "is_static") {
|
|
@@ -6252,7 +6138,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6252
6138
|
try {
|
|
6253
6139
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
6254
6140
|
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
6255
|
-
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle),
|
|
6141
|
+
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), classNames[fullKey] = psuedoStyle[import_helpers.StyleObjectIdentifier]);
|
|
6256
6142
|
}
|
|
6257
6143
|
} catch (err) {
|
|
6258
6144
|
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
@@ -6292,7 +6178,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6292
6178
|
if (isMedia) {
|
|
6293
6179
|
if (!val2) return;
|
|
6294
6180
|
var hasSpace = val2.space, mediaKeyShort = key4.slice(isMedia == "theme" ? 7 : 1);
|
|
6295
|
-
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (typeof hasMedia
|
|
6181
|
+
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;
|
|
6296
6182
|
if (shouldDoClasses) {
|
|
6297
6183
|
var mediaStyle = getSubStyle(styleState, key4, val2, !1);
|
|
6298
6184
|
if (hasSpace && (delete mediaStyle.space, mediaState3[mediaKeyShort])) {
|
|
@@ -6307,7 +6193,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6307
6193
|
var style3 = _step12.value, property = style3[import_helpers.StyleObjectProperty], isSubStyle = property[0] === "$";
|
|
6308
6194
|
if (!(isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property))) {
|
|
6309
6195
|
var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority), subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers.StyleObjectPseudo] || ""}`;
|
|
6310
|
-
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out),
|
|
6196
|
+
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), classNames[fullKey1] = out[import_helpers.StyleObjectIdentifier]);
|
|
6311
6197
|
}
|
|
6312
6198
|
}
|
|
6313
6199
|
} catch (err) {
|
|
@@ -6321,8 +6207,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6321
6207
|
}
|
|
6322
6208
|
} else {
|
|
6323
6209
|
var mergeMediaStyle2 = function(key5, val3) {
|
|
6324
|
-
var
|
|
6325
|
-
(
|
|
6210
|
+
var _styleState3;
|
|
6211
|
+
(_styleState3 = styleState).style || (_styleState3.style = {});
|
|
6326
6212
|
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key5, val3, usedKeys, mediaState3[mediaKeyShort], importanceBump, debug);
|
|
6327
6213
|
didMerge && key5 === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
6328
6214
|
}, mergeMediaStyle = mergeMediaStyle2, isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
@@ -6377,7 +6263,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6377
6263
|
});
|
|
6378
6264
|
};
|
|
6379
6265
|
conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
6380
|
-
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 = {},
|
|
6266
|
+
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles), styleState = {
|
|
6381
6267
|
classNames,
|
|
6382
6268
|
conf,
|
|
6383
6269
|
props,
|
|
@@ -6405,13 +6291,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6405
6291
|
if (!avoidNormalize) {
|
|
6406
6292
|
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) {
|
|
6407
6293
|
var _styleState;
|
|
6408
|
-
(_styleState = styleState).style || (_styleState.style = {}),
|
|
6409
|
-
var [a] = param, [b] = param1;
|
|
6410
|
-
return (0, import_sortString.sortString)(a, b);
|
|
6411
|
-
}).forEach(function(param) {
|
|
6412
|
-
var [key4, val2] = param;
|
|
6413
|
-
mergeTransform(styleState.style, key4, val2, !0);
|
|
6414
|
-
});
|
|
6294
|
+
(_styleState = styleState).style || (_styleState.style = {}), mergeFlatTransforms(styleState.style, styleState.flatTransforms);
|
|
6415
6295
|
}
|
|
6416
6296
|
if (parentSplitStyles) {
|
|
6417
6297
|
if (0) for (var key in parentSplitStyles.classNames) var val;
|
|
@@ -6433,10 +6313,6 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6433
6313
|
} finally {
|
|
6434
6314
|
}
|
|
6435
6315
|
}
|
|
6436
|
-
if (transforms) for (var namespace in transforms) {
|
|
6437
|
-
var hash, val1, identifier1;
|
|
6438
|
-
if (import_constants4.isClient && !insertedTransforms[identifier1]) var rule;
|
|
6439
|
-
}
|
|
6440
6316
|
}
|
|
6441
6317
|
if (isReactNative) {
|
|
6442
6318
|
if (viewProps.tabIndex === 0) var _viewProps, _accessible;
|
|
@@ -6495,16 +6371,18 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6495
6371
|
}
|
|
6496
6372
|
return result;
|
|
6497
6373
|
};
|
|
6498
|
-
function
|
|
6499
|
-
|
|
6500
|
-
|
|
6374
|
+
function mergeFlatTransforms(target, flatTransforms) {
|
|
6375
|
+
Object.entries(flatTransforms).sort(function(param, param1) {
|
|
6376
|
+
var [a] = param, [b] = param1;
|
|
6377
|
+
return (0, import_sortString.sortString)(a, b);
|
|
6378
|
+
}).forEach(function(param) {
|
|
6379
|
+
var [key, val] = param;
|
|
6380
|
+
mergeTransform(target, key, val, !0);
|
|
6381
|
+
});
|
|
6501
6382
|
}
|
|
6502
6383
|
function mergeStyle(styleState, key, val) {
|
|
6503
|
-
var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, {
|
|
6504
|
-
if (
|
|
6505
|
-
var _usedKeys, _key;
|
|
6506
|
-
classNames[key] = val, (_usedKeys = usedKeys)[_key = key] || (_usedKeys[_key] = 1);
|
|
6507
|
-
} else if (key in import_helpers.stylePropsTransform) {
|
|
6384
|
+
var disableNormalize = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, { viewProps, styleProps, staticConfig } = styleState;
|
|
6385
|
+
if (key in import_helpers.stylePropsTransform) {
|
|
6508
6386
|
var _styleState;
|
|
6509
6387
|
(_styleState = styleState).flatTransforms || (_styleState.flatTransforms = {}), styleState.flatTransforms[key] = val;
|
|
6510
6388
|
} else {
|
|
@@ -6515,7 +6393,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6515
6393
|
) viewProps[key] = out;
|
|
6516
6394
|
else {
|
|
6517
6395
|
var _styleState1;
|
|
6518
|
-
(_styleState1 = styleState).style || (_styleState1.style = {}), styleState.style[key] =
|
|
6396
|
+
(_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
|
|
6397
|
+
// if theres any flatTransforms later, causing issues (mutating props is bad, in strict mode styles get borked)
|
|
6398
|
+
key === "transform" && Array.isArray(out) ? [
|
|
6399
|
+
...out
|
|
6400
|
+
] : out;
|
|
6519
6401
|
}
|
|
6520
6402
|
}
|
|
6521
6403
|
}
|
|
@@ -6530,6 +6412,16 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6530
6412
|
}), key = key1;
|
|
6531
6413
|
}, { staticConfig, conf: conf2, styleProps } = styleState, styleOut = {};
|
|
6532
6414
|
for (var key in styleIn) _loop(key);
|
|
6415
|
+
if (!avoidMergeTransform) {
|
|
6416
|
+
if (Array.isArray(styleOut.transform)) {
|
|
6417
|
+
var _styleState_style, parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;
|
|
6418
|
+
parentTransform && (styleOut.transform = [
|
|
6419
|
+
...parentTransform,
|
|
6420
|
+
...styleOut.transform
|
|
6421
|
+
]);
|
|
6422
|
+
}
|
|
6423
|
+
styleState.flatTransforms && mergeFlatTransforms(styleOut, styleState.flatTransforms);
|
|
6424
|
+
}
|
|
6533
6425
|
return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
|
|
6534
6426
|
}, useInsertEffectCompat = import_constants4.isWeb ? import_react3.default.useInsertionEffect || import_constants4.useIsomorphicLayoutEffect : function() {
|
|
6535
6427
|
}, useSplitStyles = function(a, b, c, d, e, f, g, h, i, j) {
|
|
@@ -6770,8 +6662,7 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6770
6662
|
var import_react3 = require("react"), callImmediate = function(cb) {
|
|
6771
6663
|
return cb();
|
|
6772
6664
|
};
|
|
6773
|
-
function createShallowSetState(setter, onlyAllow, transition,
|
|
6774
|
-
var debug = !0;
|
|
6665
|
+
function createShallowSetState(setter, onlyAllow, transition, debug, callback) {
|
|
6775
6666
|
return (0, import_react3.useCallback)(function(next) {
|
|
6776
6667
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
6777
6668
|
wrap(function() {
|
|
@@ -6784,8 +6675,7 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6784
6675
|
setter,
|
|
6785
6676
|
onlyAllow ? onlyAllow.join("") : "",
|
|
6786
6677
|
transition,
|
|
6787
|
-
debug
|
|
6788
|
-
callback
|
|
6678
|
+
debug
|
|
6789
6679
|
]);
|
|
6790
6680
|
}
|
|
6791
6681
|
function mergeIfNotShallowEqual(prev, next, onlyAllow, debug) {
|
|
@@ -7657,6 +7547,75 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
7657
7547
|
}
|
|
7658
7548
|
});
|
|
7659
7549
|
|
|
7550
|
+
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
7551
|
+
var require_index_native13 = __commonJS({
|
|
7552
|
+
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
7553
|
+
"use strict";
|
|
7554
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7555
|
+
for (var name in all) __defProp2(target, name, {
|
|
7556
|
+
get: all[name],
|
|
7557
|
+
enumerable: !0
|
|
7558
|
+
});
|
|
7559
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
7560
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7561
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7562
|
+
for (var _loop = function() {
|
|
7563
|
+
var key = _step.value;
|
|
7564
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7565
|
+
get: function() {
|
|
7566
|
+
return from[key];
|
|
7567
|
+
},
|
|
7568
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7569
|
+
});
|
|
7570
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7571
|
+
} catch (err) {
|
|
7572
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
7573
|
+
} finally {
|
|
7574
|
+
try {
|
|
7575
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7576
|
+
} finally {
|
|
7577
|
+
if (_didIteratorError)
|
|
7578
|
+
throw _iteratorError;
|
|
7579
|
+
}
|
|
7580
|
+
}
|
|
7581
|
+
return to;
|
|
7582
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
7583
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
7584
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
7585
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
7586
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
7587
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
7588
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
7589
|
+
value: mod,
|
|
7590
|
+
enumerable: !0
|
|
7591
|
+
}) : target,
|
|
7592
|
+
mod
|
|
7593
|
+
);
|
|
7594
|
+
}, __toCommonJS2 = function(mod) {
|
|
7595
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7596
|
+
value: !0
|
|
7597
|
+
}), mod);
|
|
7598
|
+
}, index_exports2 = {};
|
|
7599
|
+
__export2(index_exports2, {
|
|
7600
|
+
useClientValue: function() {
|
|
7601
|
+
return useClientValue;
|
|
7602
|
+
},
|
|
7603
|
+
useDidFinishSSR: function() {
|
|
7604
|
+
return useDidFinishSSR2;
|
|
7605
|
+
}
|
|
7606
|
+
});
|
|
7607
|
+
module2.exports = __toCommonJS2(index_exports2);
|
|
7608
|
+
var React4 = __toESM2(require("react"));
|
|
7609
|
+
function useDidFinishSSR2(value) {
|
|
7610
|
+
return value ?? !0;
|
|
7611
|
+
}
|
|
7612
|
+
function useClientValue(value) {
|
|
7613
|
+
var done = useDidFinishSSR2();
|
|
7614
|
+
return done ? typeof value == "function" ? value() : value : void 0;
|
|
7615
|
+
}
|
|
7616
|
+
}
|
|
7617
|
+
});
|
|
7618
|
+
|
|
7660
7619
|
// ../../core/web/dist/cjs/hooks/useComponentState.native.js
|
|
7661
7620
|
var require_useComponentState_native = __commonJS({
|
|
7662
7621
|
"../../core/web/dist/cjs/hooks/useComponentState.native.js"(exports2, module2) {
|
|
@@ -7700,7 +7659,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
7700
7659
|
}
|
|
7701
7660
|
});
|
|
7702
7661
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
7703
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr =
|
|
7662
|
+
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) {
|
|
7704
7663
|
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);
|
|
7705
7664
|
stateRef.current || (stateRef.current = {});
|
|
7706
7665
|
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current, willBeAnimatedClient = function() {
|
|
@@ -7726,8 +7685,10 @@ var require_useComponentState_native = __commonJS({
|
|
|
7726
7685
|
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({
|
|
7727
7686
|
...state
|
|
7728
7687
|
}));
|
|
7729
|
-
var groupName = props.group,
|
|
7730
|
-
|
|
7688
|
+
var groupName = props.group, setStateWrapper;
|
|
7689
|
+
if (groupName) {
|
|
7690
|
+
var groupContextState = groups.state;
|
|
7691
|
+
setStateWrapper = function(state2) {
|
|
7731
7692
|
curStateRef.group.emit(groupName, {
|
|
7732
7693
|
pseudo: state2
|
|
7733
7694
|
});
|
|
@@ -7737,11 +7698,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
7737
7698
|
};
|
|
7738
7699
|
groupContextState[groupName] = next;
|
|
7739
7700
|
};
|
|
7740
|
-
}
|
|
7741
|
-
|
|
7742
|
-
curStateRef,
|
|
7743
|
-
groupName
|
|
7744
|
-
]), setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
7701
|
+
}
|
|
7702
|
+
var setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
7745
7703
|
"disabled"
|
|
7746
7704
|
] : void 0, !1, props.debug, setStateWrapper);
|
|
7747
7705
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
@@ -7904,7 +7862,7 @@ var require_Slot_native = __commonJS({
|
|
|
7904
7862
|
}
|
|
7905
7863
|
});
|
|
7906
7864
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
7907
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
7865
|
+
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) {
|
|
7908
7866
|
var { children, ...slotProps } = props;
|
|
7909
7867
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
7910
7868
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
@@ -8019,7 +7977,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8019
7977
|
}
|
|
8020
7978
|
});
|
|
8021
7979
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8022
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
7980
|
+
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(), componentSetStates = /* @__PURE__ */ new Set();
|
|
8023
7981
|
typeof document < "u" && (cancelTouches = function() {
|
|
8024
7982
|
componentSetStates.forEach(function(setState) {
|
|
8025
7983
|
return setState(function(prev) {
|
|
@@ -8121,7 +8079,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8121
8079
|
}
|
|
8122
8080
|
curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
|
|
8123
8081
|
var hasRuntimeMediaKeys = splitStyles.hasMedia && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && splitStyles.hasMedia === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
|
|
8124
|
-
(0, import_useMedia.setMediaShouldUpdate)(
|
|
8082
|
+
(0, import_useMedia.setMediaShouldUpdate)(componentContext, shouldListenForMedia, mediaListeningKeys);
|
|
8125
8083
|
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space } = splitStyles, propsWithAnimation = props, {
|
|
8126
8084
|
asChild,
|
|
8127
8085
|
children,
|
|
@@ -8184,22 +8142,20 @@ var require_createComponent_native = __commonJS({
|
|
|
8184
8142
|
pressIn: !1
|
|
8185
8143
|
});
|
|
8186
8144
|
};
|
|
8187
|
-
|
|
8145
|
+
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
8188
8146
|
if (!disabled) {
|
|
8189
|
-
var tm;
|
|
8190
8147
|
if (state.unmounted === !0 && hasEnterStyle) {
|
|
8191
8148
|
setStateShallow({
|
|
8192
8149
|
unmounted: "should-enter"
|
|
8193
8150
|
});
|
|
8194
8151
|
return;
|
|
8195
8152
|
}
|
|
8196
|
-
if (state.unmounted)
|
|
8153
|
+
if (state.unmounted) {
|
|
8197
8154
|
setStateShallow({
|
|
8198
8155
|
unmounted: !1
|
|
8199
8156
|
});
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
};
|
|
8157
|
+
return;
|
|
8158
|
+
}
|
|
8203
8159
|
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8204
8160
|
componentContext,
|
|
8205
8161
|
setStateShallow,
|
|
@@ -8208,7 +8164,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8208
8164
|
pseudoGroups
|
|
8209
8165
|
}) : null;
|
|
8210
8166
|
return function() {
|
|
8211
|
-
|
|
8167
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8212
8168
|
};
|
|
8213
8169
|
}
|
|
8214
8170
|
}, [
|
|
@@ -9194,7 +9150,6 @@ var require_createTamagui_native = __commonJS({
|
|
|
9194
9150
|
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();
|
|
9195
9151
|
function createTamagui2(configIn) {
|
|
9196
9152
|
var _configIn_settings;
|
|
9197
|
-
if (globalThis.__tamaguiConfig) return console.warn("Warning: You somehow have duplicate Tamagui dependencies, this can cause issues. Tamagui is working around this by loading a previously loaded config in test mode. "), globalThis.__tamaguiConfig;
|
|
9198
9153
|
if (createdConfigs.has(configIn)) return configIn;
|
|
9199
9154
|
var tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
9200
9155
|
if (configIn.tokens) {
|
|
@@ -9340,7 +9295,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9340
9295
|
specificTokens,
|
|
9341
9296
|
defaultFontToken
|
|
9342
9297
|
};
|
|
9343
|
-
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0),
|
|
9298
|
+
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) {
|
|
9344
9299
|
return cb(config);
|
|
9345
9300
|
}), import_config.configListeners.clear()), !1)
|
|
9346
9301
|
var _process_env_DEBUG;
|
|
@@ -10153,7 +10108,7 @@ var require_useIsTouchDevice_native = __commonJS({
|
|
|
10153
10108
|
}
|
|
10154
10109
|
});
|
|
10155
10110
|
module2.exports = __toCommonJS2(useIsTouchDevice_exports);
|
|
10156
|
-
var import_constants4 = require_index_native6(), import_use_did_finish_ssr =
|
|
10111
|
+
var import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), useIsTouchDevice2 = function() {
|
|
10157
10112
|
return import_constants4.isWeb ? (0, import_use_did_finish_ssr.useDidFinishSSR)() ? import_constants4.isTouchable : !1 : !0;
|
|
10158
10113
|
};
|
|
10159
10114
|
}
|
|
@@ -10663,7 +10618,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10663
10618
|
}
|
|
10664
10619
|
});
|
|
10665
10620
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10666
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
10621
|
+
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();
|
|
10667
10622
|
function TamaguiProvider2(param) {
|
|
10668
10623
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
10669
10624
|
return process.env.TAMAGUI_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -10676,7 +10631,9 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10676
10631
|
}, [
|
|
10677
10632
|
config,
|
|
10678
10633
|
disableInjectCSS
|
|
10679
|
-
]),
|
|
10634
|
+
]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
10635
|
+
(0, import_useMedia.updateMediaListeners)();
|
|
10636
|
+
}, []), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
10680
10637
|
children: [
|
|
10681
10638
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
10682
10639
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
@@ -10936,9 +10893,9 @@ var require_index_native14 = __commonJS({
|
|
|
10936
10893
|
__reExport2(index_exports2, require_FontLanguage_native(), module2.exports);
|
|
10937
10894
|
__reExport2(index_exports2, require_TamaguiProvider_native(), module2.exports);
|
|
10938
10895
|
__reExport2(index_exports2, require_Configuration_native(), module2.exports);
|
|
10939
|
-
__reExport2(index_exports2,
|
|
10896
|
+
__reExport2(index_exports2, require_index_native13(), module2.exports);
|
|
10940
10897
|
__reExport2(index_exports2, require_index_native8(), module2.exports);
|
|
10941
|
-
__reExport2(index_exports2,
|
|
10898
|
+
__reExport2(index_exports2, require_index_native11(), module2.exports);
|
|
10942
10899
|
__reExport2(index_exports2, require_index_native7(), module2.exports);
|
|
10943
10900
|
__reExport2(index_exports2, require_index_native6(), module2.exports);
|
|
10944
10901
|
__reExport2(index_exports2, require_setupHooks_native(), module2.exports);
|
|
@@ -13469,7 +13426,7 @@ var require_Collection_native = __commonJS({
|
|
|
13469
13426
|
}
|
|
13470
13427
|
});
|
|
13471
13428
|
module2.exports = __toCommonJS2(Collection_exports);
|
|
13472
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
13429
|
+
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"));
|
|
13473
13430
|
function createCollection(name) {
|
|
13474
13431
|
var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core12.createStyledContext)({
|
|
13475
13432
|
collectionRef: {
|
|
@@ -14997,7 +14954,7 @@ var require_Accordion_native = __commonJS({
|
|
|
14997
14954
|
}
|
|
14998
14955
|
});
|
|
14999
14956
|
module2.exports = __toCommonJS2(Accordion_exports);
|
|
15000
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native15(), import_collection = require_index_native19(), import_compose_refs =
|
|
14957
|
+
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 = [
|
|
15001
14958
|
"Home",
|
|
15002
14959
|
"End",
|
|
15003
14960
|
"ArrowDown",
|
|
@@ -17598,7 +17555,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17598
17555
|
}
|
|
17599
17556
|
});
|
|
17600
17557
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
17601
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_compose_refs =
|
|
17558
|
+
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) {
|
|
17602
17559
|
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, {
|
|
17603
17560
|
onOverlayComponent: setOverlayComponent
|
|
17604
17561
|
}), { 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() {
|
|
@@ -18047,7 +18004,7 @@ var require_SheetScrollView_native = __commonJS({
|
|
|
18047
18004
|
}
|
|
18048
18005
|
});
|
|
18049
18006
|
module2.exports = __toCommonJS2(SheetScrollView_exports);
|
|
18050
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_compose_refs =
|
|
18007
|
+
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) {
|
|
18051
18008
|
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({
|
|
18052
18009
|
lastPageY: 0,
|
|
18053
18010
|
dragAt: 0,
|
|
@@ -18236,7 +18193,7 @@ var require_createSheet_native = __commonJS({
|
|
|
18236
18193
|
}
|
|
18237
18194
|
});
|
|
18238
18195
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
18239
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
18196
|
+
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();
|
|
18240
18197
|
function createSheet(param) {
|
|
18241
18198
|
var { Handle, Frame, Overlay } = param, SheetHandle = Handle.styleable(function(param2, forwardedRef) {
|
|
18242
18199
|
var { __scopeSheet, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef);
|
|
@@ -18276,24 +18233,27 @@ var require_createSheet_native = __commonJS({
|
|
|
18276
18233
|
]), context.onlyShowFrame, null;
|
|
18277
18234
|
})), SheetFrame = Frame.extractable(/* @__PURE__ */ (0, import_react3.forwardRef)(function(param2, forwardedRef) {
|
|
18278
18235
|
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() {
|
|
18279
|
-
return (
|
|
18280
|
-
|
|
18281
|
-
|
|
18282
|
-
|
|
18283
|
-
|
|
18284
|
-
|
|
18285
|
-
|
|
18286
|
-
|
|
18287
|
-
|
|
18288
|
-
|
|
18289
|
-
|
|
18290
|
-
|
|
18291
|
-
|
|
18292
|
-
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
|
|
18236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
18237
|
+
zIndex: (0, import_portal2.resolveViewZIndex)(props.zIndex),
|
|
18238
|
+
children: (
|
|
18239
|
+
/* @ts-expect-error */
|
|
18240
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Frame, {
|
|
18241
|
+
ref: composedContentRef,
|
|
18242
|
+
flex: hasFit ? 0 : 1,
|
|
18243
|
+
height: hasFit ? void 0 : frameSize,
|
|
18244
|
+
pointerEvents: open ? "auto" : "none",
|
|
18245
|
+
...props,
|
|
18246
|
+
children: [
|
|
18247
|
+
children,
|
|
18248
|
+
adjustPaddingForOffscreenContent && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
18249
|
+
"data-sheet-offscreen-pad": !0,
|
|
18250
|
+
height: offscreenSize,
|
|
18251
|
+
width: "100%"
|
|
18252
|
+
})
|
|
18253
|
+
]
|
|
18254
|
+
})
|
|
18255
|
+
)
|
|
18256
|
+
});
|
|
18297
18257
|
}, [
|
|
18298
18258
|
open,
|
|
18299
18259
|
props,
|
|
@@ -18803,7 +18763,7 @@ var require_Dialog_native = __commonJS({
|
|
|
18803
18763
|
}
|
|
18804
18764
|
});
|
|
18805
18765
|
module2.exports = __toCommonJS2(Dialog_exports);
|
|
18806
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs =
|
|
18766
|
+
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, {
|
|
18807
18767
|
name: TRIGGER_NAME
|
|
18808
18768
|
}), DialogTrigger = DialogTriggerFrame.styleable(function(props, forwardedRef) {
|
|
18809
18769
|
var { __scopeDialog, ...triggerProps } = props, isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext), context = useDialogContext(TRIGGER_NAME, __scopeDialog), composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
@@ -18830,7 +18790,6 @@ var require_Dialog_native = __commonJS({
|
|
|
18830
18790
|
alignItems: "center",
|
|
18831
18791
|
justifyContent: "center",
|
|
18832
18792
|
fullscreen: !0,
|
|
18833
|
-
zIndex: 1e5,
|
|
18834
18793
|
...import_constants4.isWeb && {
|
|
18835
18794
|
maxHeight: "100vh",
|
|
18836
18795
|
position: "fixed"
|
|
@@ -18865,9 +18824,12 @@ var require_Dialog_native = __commonJS({
|
|
|
18865
18824
|
setIsFullyHidden(!0);
|
|
18866
18825
|
}, []);
|
|
18867
18826
|
if (context.modal) {
|
|
18868
|
-
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
18869
|
-
|
|
18870
|
-
children:
|
|
18827
|
+
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
18828
|
+
zIndex: (0, import_portal2.resolveViewZIndex)(props.zIndex),
|
|
18829
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
|
|
18830
|
+
onExitComplete: handleExitComplete,
|
|
18831
|
+
children: isShowing || isAdapted ? children : null
|
|
18832
|
+
})
|
|
18871
18833
|
});
|
|
18872
18834
|
if (isFullyHidden && !isAdapted) return null;
|
|
18873
18835
|
var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalProvider2, {
|
|
@@ -18879,16 +18841,15 @@ var require_Dialog_native = __commonJS({
|
|
|
18879
18841
|
children: contents
|
|
18880
18842
|
})
|
|
18881
18843
|
});
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18889
|
-
})
|
|
18890
|
-
}
|
|
18891
|
-
return framedContents;
|
|
18844
|
+
return import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
18845
|
+
zIndex: props.zIndex,
|
|
18846
|
+
// set to 1000 which "boosts" it 1000 above baseline for current context
|
|
18847
|
+
// this makes sure its above (this first 1k) popovers on the same layer
|
|
18848
|
+
stackZIndex: 1e3,
|
|
18849
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PassthroughTheme, {
|
|
18850
|
+
children: framedContents
|
|
18851
|
+
})
|
|
18852
|
+
}) : framedContents;
|
|
18892
18853
|
}
|
|
18893
18854
|
return children;
|
|
18894
18855
|
}, PassthroughTheme = function(param) {
|
|
@@ -18934,14 +18895,16 @@ var require_Dialog_native = __commonJS({
|
|
|
18934
18895
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
18935
18896
|
}
|
|
18936
18897
|
}), DialogContent = DialogContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
|
|
18937
|
-
var { __scopeDialog, ...props } = param, portalContext = usePortalContext(CONTENT_NAME, __scopeDialog), { forceMount = portalContext.forceMount, ...contentProps } = props, context = useDialogContext(CONTENT_NAME, __scopeDialog), contents =
|
|
18938
|
-
context,
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18898
|
+
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, {
|
|
18899
|
+
children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentModal, {
|
|
18900
|
+
context,
|
|
18901
|
+
...contentProps,
|
|
18902
|
+
ref: forwardedRef
|
|
18903
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentNonModal, {
|
|
18904
|
+
context,
|
|
18905
|
+
...contentProps,
|
|
18906
|
+
ref: forwardedRef
|
|
18907
|
+
})
|
|
18945
18908
|
});
|
|
18946
18909
|
return !import_constants4.isWeb || context.disableRemoveScroll ? contents : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_remove_scroll.RemoveScroll, {
|
|
18947
18910
|
forwardProps: !0,
|
|
@@ -19303,7 +19266,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
19303
19266
|
}
|
|
19304
19267
|
});
|
|
19305
19268
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
19306
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
19269
|
+
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, [
|
|
19307
19270
|
import_dialog.createDialogScope
|
|
19308
19271
|
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
19309
19272
|
name: TRIGGER_NAME
|
|
@@ -21158,7 +21121,7 @@ var require_focusableInputHOC_native = __commonJS({
|
|
|
21158
21121
|
}
|
|
21159
21122
|
});
|
|
21160
21123
|
module2.exports = __toCommonJS2(focusableInputHOC_exports);
|
|
21161
|
-
var import_compose_refs =
|
|
21124
|
+
var import_compose_refs = require_index_native11(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_registerFocusable = require_registerFocusable_native();
|
|
21162
21125
|
function useFocusable2(param) {
|
|
21163
21126
|
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) {
|
|
21164
21127
|
var _unregisterFocusable_current;
|
|
@@ -21328,7 +21291,7 @@ var require_Label_native = __commonJS({
|
|
|
21328
21291
|
}
|
|
21329
21292
|
});
|
|
21330
21293
|
module2.exports = __toCommonJS2(Label_exports);
|
|
21331
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
21294
|
+
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, {
|
|
21332
21295
|
id: void 0,
|
|
21333
21296
|
controlRef: {
|
|
21334
21297
|
current: null
|
|
@@ -21740,7 +21703,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
21740
21703
|
}
|
|
21741
21704
|
});
|
|
21742
21705
|
module2.exports = __toCommonJS2(useCheckbox_exports);
|
|
21743
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
21706
|
+
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();
|
|
21744
21707
|
function useCheckbox(props, param, ref) {
|
|
21745
21708
|
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() {
|
|
21746
21709
|
return (0, import_helpers.composeEventHandlers)(parentKeyDown, function(event) {
|
|
@@ -24458,7 +24421,7 @@ var require_Popper_native = __commonJS({
|
|
|
24458
24421
|
}
|
|
24459
24422
|
});
|
|
24460
24423
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
24461
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
24424
|
+
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 = {
|
|
24462
24425
|
name: "checkFloating",
|
|
24463
24426
|
fn(data) {
|
|
24464
24427
|
return {
|
|
@@ -24870,7 +24833,7 @@ var require_Popover_native = __commonJS({
|
|
|
24870
24833
|
}
|
|
24871
24834
|
});
|
|
24872
24835
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
24873
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native29(), import_animate = require_index_native55(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs =
|
|
24836
|
+
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) {
|
|
24874
24837
|
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
24875
24838
|
return React4.useEffect(function() {
|
|
24876
24839
|
return onCustomAnchorAdd(), function() {
|
|
@@ -24926,18 +24889,20 @@ var require_Popover_native = __commonJS({
|
|
|
24926
24889
|
});
|
|
24927
24890
|
}), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24928
24891
|
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);
|
|
24929
|
-
|
|
24892
|
+
if (context.open && isFullyHidden && setIsFullyHidden(!1), React4.useEffect(function() {
|
|
24930
24893
|
if (context.open) {
|
|
24931
24894
|
var content = contentRef.current;
|
|
24932
24895
|
if (content) return (0, import_aria_hidden.hideOthers)(content);
|
|
24933
24896
|
}
|
|
24934
24897
|
}, [
|
|
24935
24898
|
context.open
|
|
24936
|
-
]), !context.keepChildrenMounted && isFullyHidden
|
|
24899
|
+
]), !context.keepChildrenMounted && isFullyHidden) return null;
|
|
24900
|
+
var _contentImplProps_pointerEvents;
|
|
24901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
24937
24902
|
__scopePopover,
|
|
24938
|
-
zIndex
|
|
24903
|
+
zIndex,
|
|
24939
24904
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
24940
|
-
pointerEvents: context.open ? "auto" : "none",
|
|
24905
|
+
pointerEvents: context.open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : "auto" : "none",
|
|
24941
24906
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentImpl, {
|
|
24942
24907
|
...contentImplProps,
|
|
24943
24908
|
disableRemoveScroll,
|
|
@@ -24983,7 +24948,7 @@ var require_Popover_native = __commonJS({
|
|
|
24983
24948
|
});
|
|
24984
24949
|
}
|
|
24985
24950
|
function PopoverContentPortal(props) {
|
|
24986
|
-
var { __scopePopover } = props,
|
|
24951
|
+
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;
|
|
24987
24952
|
return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverRepropagateContext, {
|
|
24988
24953
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
24989
24954
|
popperContext,
|
|
@@ -24991,6 +24956,7 @@ var require_Popover_native = __commonJS({
|
|
|
24991
24956
|
adaptContext,
|
|
24992
24957
|
children: props.children
|
|
24993
24958
|
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
24959
|
+
stackZIndex: !0,
|
|
24994
24960
|
zIndex,
|
|
24995
24961
|
children: (
|
|
24996
24962
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
@@ -25003,7 +24969,10 @@ var require_Popover_native = __commonJS({
|
|
|
25003
24969
|
fullscreen: !0,
|
|
25004
24970
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
|
|
25005
24971
|
}),
|
|
25006
|
-
|
|
24972
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
24973
|
+
zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
|
|
24974
|
+
children: contents
|
|
24975
|
+
})
|
|
25007
24976
|
]
|
|
25008
24977
|
})
|
|
25009
24978
|
)
|
|
@@ -25776,7 +25745,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
25776
25745
|
}
|
|
25777
25746
|
});
|
|
25778
25747
|
module2.exports = __toCommonJS2(useRadioGroup_exports);
|
|
25779
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
25748
|
+
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();
|
|
25780
25749
|
function useRadioGroup(params) {
|
|
25781
25750
|
var { value: valueProp, onValueChange, defaultValue, required, disabled, name, native, accentColor, orientation, ref } = params, [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
25782
25751
|
prop: valueProp,
|
|
@@ -26858,7 +26827,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
26858
26827
|
}
|
|
26859
26828
|
});
|
|
26860
26829
|
module2.exports = __toCommonJS2(SelectItem_exports);
|
|
26861
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
26830
|
+
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) {
|
|
26862
26831
|
var { __scopeSelect, value, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
|
|
26863
26832
|
...!props.unstyled && {
|
|
26864
26833
|
ellipse: !0
|
|
@@ -27023,7 +26992,7 @@ var require_SelectItemText_native = __commonJS({
|
|
|
27023
26992
|
}
|
|
27024
26993
|
});
|
|
27025
26994
|
module2.exports = __toCommonJS2(SelectItemText_exports);
|
|
27026
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
26995
|
+
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, {
|
|
27027
26996
|
name: ITEM_TEXT_NAME,
|
|
27028
26997
|
variants: {
|
|
27029
26998
|
unstyled: {
|
|
@@ -27171,7 +27140,7 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
27171
27140
|
}
|
|
27172
27141
|
});
|
|
27173
27142
|
module2.exports = __toCommonJS2(SelectTrigger_exports);
|
|
27174
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
27143
|
+
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) {
|
|
27175
27144
|
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);
|
|
27176
27145
|
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItem, {
|
|
27177
27146
|
componentName: TRIGGER_NAME,
|
|
@@ -27387,7 +27356,7 @@ var require_Select_native = __commonJS({
|
|
|
27387
27356
|
}
|
|
27388
27357
|
});
|
|
27389
27358
|
module2.exports = __toCommonJS2(Select_exports);
|
|
27390
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_compose_refs =
|
|
27359
|
+
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, {
|
|
27391
27360
|
name: VALUE_NAME,
|
|
27392
27361
|
userSelect: "none"
|
|
27393
27362
|
}), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
|
|
@@ -28162,7 +28131,7 @@ var require_Slider_native = __commonJS({
|
|
|
28162
28131
|
}
|
|
28163
28132
|
});
|
|
28164
28133
|
module2.exports = __toCommonJS2(Slider_exports);
|
|
28165
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
28134
|
+
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();
|
|
28166
28135
|
import_constants4.isWeb && import_constants4.isClient && !process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL && ((_setInterval = setInterval) === null || _setInterval === void 0 || _setInterval(
|
|
28167
28136
|
function() {
|
|
28168
28137
|
activeSliderMeasureListeners.forEach(function(cb) {
|
|
@@ -28703,7 +28672,7 @@ var require_useSwitch_native = __commonJS({
|
|
|
28703
28672
|
}
|
|
28704
28673
|
});
|
|
28705
28674
|
module2.exports = __toCommonJS2(useSwitch_exports);
|
|
28706
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
28675
|
+
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"));
|
|
28707
28676
|
function useSwitch(props, param, ref) {
|
|
28708
28677
|
var [checked, setChecked] = param;
|
|
28709
28678
|
return {
|
|
@@ -29219,14 +29188,14 @@ var require_Tabs_native = __commonJS({
|
|
|
29219
29188
|
}, Tabs_exports = {};
|
|
29220
29189
|
__export2(Tabs_exports, {
|
|
29221
29190
|
Tabs: function() {
|
|
29222
|
-
return
|
|
29191
|
+
return Tabs2;
|
|
29223
29192
|
},
|
|
29224
29193
|
useTabsContext: function() {
|
|
29225
29194
|
return useTabsContext;
|
|
29226
29195
|
}
|
|
29227
29196
|
});
|
|
29228
29197
|
module2.exports = __toCommonJS2(Tabs_exports);
|
|
29229
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs =
|
|
29198
|
+
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) {
|
|
29230
29199
|
var { __scopeTabs, loop = !0, children, ...listProps } = props, context = useTabsContext(__scopeTabs);
|
|
29231
29200
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
29232
29201
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
@@ -29438,7 +29407,7 @@ var require_Tabs_native = __commonJS({
|
|
|
29438
29407
|
ref: forwardedRef
|
|
29439
29408
|
})
|
|
29440
29409
|
});
|
|
29441
|
-
}),
|
|
29410
|
+
}), Tabs2 = (0, import_helpers.withStaticProperties)(TabsComponent, {
|
|
29442
29411
|
List: TabsList,
|
|
29443
29412
|
/**
|
|
29444
29413
|
* @deprecated Use Tabs.Tab instead
|
|
@@ -29447,7 +29416,6 @@ var require_Tabs_native = __commonJS({
|
|
|
29447
29416
|
Tab: TabsTrigger,
|
|
29448
29417
|
Content: TabsContent
|
|
29449
29418
|
});
|
|
29450
|
-
Tabs.displayName = TABS_NAME;
|
|
29451
29419
|
function makeTriggerId(baseId, value) {
|
|
29452
29420
|
return `${baseId}-trigger-${value}`;
|
|
29453
29421
|
}
|
|
@@ -30757,7 +30725,7 @@ __reExport(index_exports, __toESM(require_index_native41()), module.exports);
|
|
|
30757
30725
|
__reExport(index_exports, __toESM(require_index_native44()), module.exports);
|
|
30758
30726
|
__reExport(index_exports, __toESM(require_index_native45()), module.exports);
|
|
30759
30727
|
__reExport(index_exports, __toESM(require_index_native50()), module.exports);
|
|
30760
|
-
__reExport(index_exports, __toESM(
|
|
30728
|
+
__reExport(index_exports, __toESM(require_index_native11()), module.exports);
|
|
30761
30729
|
__reExport(index_exports, __toESM(require_index_native30()), module.exports);
|
|
30762
30730
|
__reExport(index_exports, __toESM(require_index_native37()), module.exports);
|
|
30763
30731
|
__reExport(index_exports, __toESM(require_index_native42()), module.exports);
|