tamagui 1.132.12 → 1.132.14
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 +572 -567
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +561 -555
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -35,8 +35,166 @@ var require_polyfill_dev = __commonJS({
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
// ../../
|
|
38
|
+
// ../../packages/fake-react-native/index.js
|
|
39
|
+
var require_fake_react_native = __commonJS({
|
|
40
|
+
"../../packages/fake-react-native/index.js"(exports2, module2) {
|
|
41
|
+
module2.exports = proxyWorm();
|
|
42
|
+
function proxyWorm() {
|
|
43
|
+
return new Proxy({
|
|
44
|
+
StyleSheet: {
|
|
45
|
+
create() {
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
Platform: {
|
|
49
|
+
OS: "web"
|
|
50
|
+
},
|
|
51
|
+
Image: "Image",
|
|
52
|
+
View: "View",
|
|
53
|
+
Text: "Text",
|
|
54
|
+
TextInput: "TextInput",
|
|
55
|
+
ScrollView: "ScrollView",
|
|
56
|
+
Dimensions: {
|
|
57
|
+
addEventListener(cb) {
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
addPoolingTo() {
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
get(target, key) {
|
|
64
|
+
return Reflect.get(target, key) || proxyWorm();
|
|
65
|
+
},
|
|
66
|
+
apply() {
|
|
67
|
+
return proxyWorm();
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// ../../core/constants/dist/cjs/constants.native.js
|
|
75
|
+
var require_constants_native = __commonJS({
|
|
76
|
+
"../../core/constants/dist/cjs/constants.native.js"(exports2, module2) {
|
|
77
|
+
"use strict";
|
|
78
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
79
|
+
for (var name in all) __defProp2(target, name, {
|
|
80
|
+
get: all[name],
|
|
81
|
+
enumerable: !0
|
|
82
|
+
});
|
|
83
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
84
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
85
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
86
|
+
for (var _loop = function() {
|
|
87
|
+
var key = _step.value;
|
|
88
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
89
|
+
get: function() {
|
|
90
|
+
return from[key];
|
|
91
|
+
},
|
|
92
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
93
|
+
});
|
|
94
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
95
|
+
} catch (err) {
|
|
96
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
97
|
+
} finally {
|
|
98
|
+
try {
|
|
99
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
100
|
+
} finally {
|
|
101
|
+
if (_didIteratorError)
|
|
102
|
+
throw _iteratorError;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return to;
|
|
106
|
+
}, __toCommonJS2 = function(mod) {
|
|
107
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
108
|
+
value: !0
|
|
109
|
+
}), mod);
|
|
110
|
+
}, constants_native_exports = {};
|
|
111
|
+
__export2(constants_native_exports, {
|
|
112
|
+
IS_REACT_19: function() {
|
|
113
|
+
return IS_REACT_19;
|
|
114
|
+
},
|
|
115
|
+
currentPlatform: function() {
|
|
116
|
+
return currentPlatform;
|
|
117
|
+
},
|
|
118
|
+
isAndroid: function() {
|
|
119
|
+
return isAndroid;
|
|
120
|
+
},
|
|
121
|
+
isChrome: function() {
|
|
122
|
+
return isChrome2;
|
|
123
|
+
},
|
|
124
|
+
isClient: function() {
|
|
125
|
+
return isClient2;
|
|
126
|
+
},
|
|
127
|
+
isIos: function() {
|
|
128
|
+
return isIos;
|
|
129
|
+
},
|
|
130
|
+
isServer: function() {
|
|
131
|
+
return isServer2;
|
|
132
|
+
},
|
|
133
|
+
isTouchable: function() {
|
|
134
|
+
return isTouchable2;
|
|
135
|
+
},
|
|
136
|
+
isWeb: function() {
|
|
137
|
+
return isWeb6;
|
|
138
|
+
},
|
|
139
|
+
isWebTouchable: function() {
|
|
140
|
+
return isWebTouchable2;
|
|
141
|
+
},
|
|
142
|
+
isWindowDefined: function() {
|
|
143
|
+
return isWindowDefined;
|
|
144
|
+
},
|
|
145
|
+
useIsomorphicLayoutEffect: function() {
|
|
146
|
+
return useIsomorphicLayoutEffect2;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
module2.exports = __toCommonJS2(constants_native_exports);
|
|
150
|
+
var import_react3 = require("react"), import_react22 = require("react"), import_react_native4 = require_fake_react_native(), IS_REACT_19 = !!import_react22.use, isWeb6 = !1, isWindowDefined = !1, isServer2 = !1, isClient2 = !1, useIsomorphicLayoutEffect2 = import_react3.useLayoutEffect, isChrome2 = !1, isWebTouchable2 = !1, isTouchable2 = !0, isAndroid = import_react_native4.Platform.OS === "android" || process.env.TEST_NATIVE_PLATFORM === "android", isIos = import_react_native4.Platform.OS === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios", platforms = {
|
|
151
|
+
ios: "ios",
|
|
152
|
+
android: "android"
|
|
153
|
+
}, currentPlatform = platforms[import_react_native4.Platform.OS] || "native";
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// ../../core/constants/dist/cjs/index.native.js
|
|
39
158
|
var require_index_native = __commonJS({
|
|
159
|
+
"../../core/constants/dist/cjs/index.native.js"(exports2, module2) {
|
|
160
|
+
"use strict";
|
|
161
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
162
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
163
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
164
|
+
for (var _loop = function() {
|
|
165
|
+
var key = _step.value;
|
|
166
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
167
|
+
get: function() {
|
|
168
|
+
return from[key];
|
|
169
|
+
},
|
|
170
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
171
|
+
});
|
|
172
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
173
|
+
} catch (err) {
|
|
174
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
175
|
+
} finally {
|
|
176
|
+
try {
|
|
177
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
178
|
+
} finally {
|
|
179
|
+
if (_didIteratorError)
|
|
180
|
+
throw _iteratorError;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return to;
|
|
184
|
+
}, __reExport2 = function(target, mod, secondTarget) {
|
|
185
|
+
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
186
|
+
}, __toCommonJS2 = function(mod) {
|
|
187
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
188
|
+
value: !0
|
|
189
|
+
}), mod);
|
|
190
|
+
}, index_exports2 = {};
|
|
191
|
+
module2.exports = __toCommonJS2(index_exports2);
|
|
192
|
+
__reExport2(index_exports2, require_constants_native(), module2.exports);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
// ../../core/use-force-update/dist/cjs/index.native.js
|
|
197
|
+
var require_index_native2 = __commonJS({
|
|
40
198
|
"../../core/use-force-update/dist/cjs/index.native.js"(exports2, module2) {
|
|
41
199
|
"use strict";
|
|
42
200
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -163,7 +321,7 @@ var require_LayoutGroupContext_native = __commonJS({
|
|
|
163
321
|
});
|
|
164
322
|
|
|
165
323
|
// ../../core/use-constant/dist/cjs/index.native.js
|
|
166
|
-
var
|
|
324
|
+
var require_index_native3 = __commonJS({
|
|
167
325
|
"../../core/use-constant/dist/cjs/index.native.js"(exports2, module2) {
|
|
168
326
|
"use strict";
|
|
169
327
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -394,7 +552,7 @@ var require_usePresence_native = __commonJS({
|
|
|
394
552
|
});
|
|
395
553
|
|
|
396
554
|
// ../../core/use-presence/dist/cjs/index.native.js
|
|
397
|
-
var
|
|
555
|
+
var require_index_native4 = __commonJS({
|
|
398
556
|
"../../core/use-presence/dist/cjs/index.native.js"(exports2, module2) {
|
|
399
557
|
"use strict";
|
|
400
558
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -507,7 +665,7 @@ var require_PresenceChild_native = __commonJS({
|
|
|
507
665
|
}
|
|
508
666
|
});
|
|
509
667
|
module2.exports = __toCommonJS2(PresenceChild_exports);
|
|
510
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_constant =
|
|
668
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_constant = require_index_native3(), import_use_presence = require_index_native4(), React4 = __toESM2(require("react")), import_react3 = require("react"), PresenceChild = /* @__PURE__ */ React4.memo(function(param) {
|
|
511
669
|
var { children, initial, isPresent: isPresent2, onExitComplete, exitVariant, enterVariant, enterExitVariant, presenceAffectsLayout, custom } = param, presenceChildren = (0, import_use_constant.useConstant)(newChildrenMap), id = (0, import_react3.useId)() || "", context = React4.useMemo(
|
|
512
670
|
function() {
|
|
513
671
|
return {
|
|
@@ -620,7 +778,7 @@ var require_AnimatePresence_native = __commonJS({
|
|
|
620
778
|
}
|
|
621
779
|
});
|
|
622
780
|
module2.exports = __toCommonJS2(AnimatePresence_exports);
|
|
623
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"),
|
|
781
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_use_force_update = require_index_native2(), import_react3 = require("react"), import_LayoutGroupContext = require_LayoutGroupContext_native(), import_PresenceChild = require_PresenceChild_native(), getChildKey = function(child) {
|
|
624
782
|
return child.key || "";
|
|
625
783
|
};
|
|
626
784
|
function updateChildLookup(children, allChildren) {
|
|
@@ -642,7 +800,9 @@ var require_AnimatePresence_native = __commonJS({
|
|
|
642
800
|
if (passThrough) return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
|
|
643
801
|
children
|
|
644
802
|
});
|
|
645
|
-
if (
|
|
803
|
+
if ((0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
804
|
+
isInitialRender.current = !1;
|
|
805
|
+
}, []), isInitialRender.current) return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
|
|
646
806
|
children: filteredChildren.map(function(child) {
|
|
647
807
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_PresenceChild.PresenceChild, {
|
|
648
808
|
isPresent: !0,
|
|
@@ -746,7 +906,7 @@ var require_types_native = __commonJS({
|
|
|
746
906
|
});
|
|
747
907
|
|
|
748
908
|
// ../animate-presence/dist/cjs/index.native.js
|
|
749
|
-
var
|
|
909
|
+
var require_index_native5 = __commonJS({
|
|
750
910
|
"../animate-presence/dist/cjs/index.native.js"(exports2, module2) {
|
|
751
911
|
"use strict";
|
|
752
912
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -781,14 +941,14 @@ var require_index_native4 = __commonJS({
|
|
|
781
941
|
}, index_exports2 = {};
|
|
782
942
|
module2.exports = __toCommonJS2(index_exports2);
|
|
783
943
|
__reExport2(index_exports2, require_AnimatePresence_native(), module2.exports);
|
|
784
|
-
__reExport2(index_exports2,
|
|
944
|
+
__reExport2(index_exports2, require_index_native4(), module2.exports);
|
|
785
945
|
__reExport2(index_exports2, require_types_native(), module2.exports);
|
|
786
946
|
__reExport2(index_exports2, require_PresenceChild_native(), module2.exports);
|
|
787
947
|
}
|
|
788
948
|
});
|
|
789
949
|
|
|
790
950
|
// ../../core/simple-hash/dist/cjs/index.native.js
|
|
791
|
-
var
|
|
951
|
+
var require_index_native6 = __commonJS({
|
|
792
952
|
"../../core/simple-hash/dist/cjs/index.native.js"(exports2, module2) {
|
|
793
953
|
"use strict";
|
|
794
954
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -910,9 +1070,9 @@ var require_clamp_native = __commonJS({
|
|
|
910
1070
|
}
|
|
911
1071
|
});
|
|
912
1072
|
module2.exports = __toCommonJS2(clamp_exports);
|
|
913
|
-
function clamp(
|
|
1073
|
+
function clamp(value2, param) {
|
|
914
1074
|
var [min, max] = param;
|
|
915
|
-
return Math.min(max, Math.max(min,
|
|
1075
|
+
return Math.min(max, Math.max(min, value2));
|
|
916
1076
|
}
|
|
917
1077
|
}
|
|
918
1078
|
});
|
|
@@ -1115,164 +1275,6 @@ var require_types_native2 = __commonJS({
|
|
|
1115
1275
|
}
|
|
1116
1276
|
});
|
|
1117
1277
|
|
|
1118
|
-
// ../../packages/fake-react-native/index.js
|
|
1119
|
-
var require_fake_react_native = __commonJS({
|
|
1120
|
-
"../../packages/fake-react-native/index.js"(exports2, module2) {
|
|
1121
|
-
module2.exports = proxyWorm();
|
|
1122
|
-
function proxyWorm() {
|
|
1123
|
-
return new Proxy({
|
|
1124
|
-
StyleSheet: {
|
|
1125
|
-
create() {
|
|
1126
|
-
}
|
|
1127
|
-
},
|
|
1128
|
-
Platform: {
|
|
1129
|
-
OS: "web"
|
|
1130
|
-
},
|
|
1131
|
-
Image: "Image",
|
|
1132
|
-
View: "View",
|
|
1133
|
-
Text: "Text",
|
|
1134
|
-
TextInput: "TextInput",
|
|
1135
|
-
ScrollView: "ScrollView",
|
|
1136
|
-
Dimensions: {
|
|
1137
|
-
addEventListener(cb) {
|
|
1138
|
-
}
|
|
1139
|
-
},
|
|
1140
|
-
addPoolingTo() {
|
|
1141
|
-
}
|
|
1142
|
-
}, {
|
|
1143
|
-
get(target, key) {
|
|
1144
|
-
return Reflect.get(target, key) || proxyWorm();
|
|
1145
|
-
},
|
|
1146
|
-
apply() {
|
|
1147
|
-
return proxyWorm();
|
|
1148
|
-
}
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
|
|
1154
|
-
// ../../core/constants/dist/cjs/constants.native.js
|
|
1155
|
-
var require_constants_native = __commonJS({
|
|
1156
|
-
"../../core/constants/dist/cjs/constants.native.js"(exports2, module2) {
|
|
1157
|
-
"use strict";
|
|
1158
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
1159
|
-
for (var name in all) __defProp2(target, name, {
|
|
1160
|
-
get: all[name],
|
|
1161
|
-
enumerable: !0
|
|
1162
|
-
});
|
|
1163
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
1164
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
1165
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
1166
|
-
for (var _loop = function() {
|
|
1167
|
-
var key = _step.value;
|
|
1168
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
1169
|
-
get: function() {
|
|
1170
|
-
return from[key];
|
|
1171
|
-
},
|
|
1172
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
1173
|
-
});
|
|
1174
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
1175
|
-
} catch (err) {
|
|
1176
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
1177
|
-
} finally {
|
|
1178
|
-
try {
|
|
1179
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
1180
|
-
} finally {
|
|
1181
|
-
if (_didIteratorError)
|
|
1182
|
-
throw _iteratorError;
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
return to;
|
|
1186
|
-
}, __toCommonJS2 = function(mod) {
|
|
1187
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
1188
|
-
value: !0
|
|
1189
|
-
}), mod);
|
|
1190
|
-
}, constants_native_exports = {};
|
|
1191
|
-
__export2(constants_native_exports, {
|
|
1192
|
-
IS_REACT_19: function() {
|
|
1193
|
-
return IS_REACT_19;
|
|
1194
|
-
},
|
|
1195
|
-
currentPlatform: function() {
|
|
1196
|
-
return currentPlatform;
|
|
1197
|
-
},
|
|
1198
|
-
isAndroid: function() {
|
|
1199
|
-
return isAndroid;
|
|
1200
|
-
},
|
|
1201
|
-
isChrome: function() {
|
|
1202
|
-
return isChrome2;
|
|
1203
|
-
},
|
|
1204
|
-
isClient: function() {
|
|
1205
|
-
return isClient2;
|
|
1206
|
-
},
|
|
1207
|
-
isIos: function() {
|
|
1208
|
-
return isIos;
|
|
1209
|
-
},
|
|
1210
|
-
isServer: function() {
|
|
1211
|
-
return isServer2;
|
|
1212
|
-
},
|
|
1213
|
-
isTouchable: function() {
|
|
1214
|
-
return isTouchable2;
|
|
1215
|
-
},
|
|
1216
|
-
isWeb: function() {
|
|
1217
|
-
return isWeb6;
|
|
1218
|
-
},
|
|
1219
|
-
isWebTouchable: function() {
|
|
1220
|
-
return isWebTouchable2;
|
|
1221
|
-
},
|
|
1222
|
-
isWindowDefined: function() {
|
|
1223
|
-
return isWindowDefined;
|
|
1224
|
-
},
|
|
1225
|
-
useIsomorphicLayoutEffect: function() {
|
|
1226
|
-
return useIsomorphicLayoutEffect2;
|
|
1227
|
-
}
|
|
1228
|
-
});
|
|
1229
|
-
module2.exports = __toCommonJS2(constants_native_exports);
|
|
1230
|
-
var import_react3 = require("react"), import_react22 = require("react"), import_react_native4 = require_fake_react_native(), IS_REACT_19 = !!import_react22.use, isWeb6 = !1, isWindowDefined = !1, isServer2 = !1, isClient2 = !1, useIsomorphicLayoutEffect2 = import_react3.useLayoutEffect, isChrome2 = !1, isWebTouchable2 = !1, isTouchable2 = !0, isAndroid = import_react_native4.Platform.OS === "android" || process.env.TEST_NATIVE_PLATFORM === "android", isIos = import_react_native4.Platform.OS === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios", platforms = {
|
|
1231
|
-
ios: "ios",
|
|
1232
|
-
android: "android"
|
|
1233
|
-
}, currentPlatform = platforms[import_react_native4.Platform.OS] || "native";
|
|
1234
|
-
}
|
|
1235
|
-
});
|
|
1236
|
-
|
|
1237
|
-
// ../../core/constants/dist/cjs/index.native.js
|
|
1238
|
-
var require_index_native6 = __commonJS({
|
|
1239
|
-
"../../core/constants/dist/cjs/index.native.js"(exports2, module2) {
|
|
1240
|
-
"use strict";
|
|
1241
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
1242
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
1243
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
1244
|
-
for (var _loop = function() {
|
|
1245
|
-
var key = _step.value;
|
|
1246
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
1247
|
-
get: function() {
|
|
1248
|
-
return from[key];
|
|
1249
|
-
},
|
|
1250
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
1251
|
-
});
|
|
1252
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
1253
|
-
} catch (err) {
|
|
1254
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
1255
|
-
} finally {
|
|
1256
|
-
try {
|
|
1257
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
1258
|
-
} finally {
|
|
1259
|
-
if (_didIteratorError)
|
|
1260
|
-
throw _iteratorError;
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
return to;
|
|
1264
|
-
}, __reExport2 = function(target, mod, secondTarget) {
|
|
1265
|
-
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
1266
|
-
}, __toCommonJS2 = function(mod) {
|
|
1267
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
1268
|
-
value: !0
|
|
1269
|
-
}), mod);
|
|
1270
|
-
}, index_exports2 = {};
|
|
1271
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
1272
|
-
__reExport2(index_exports2, require_constants_native(), module2.exports);
|
|
1273
|
-
}
|
|
1274
|
-
});
|
|
1275
|
-
|
|
1276
1278
|
// ../../core/helpers/dist/cjs/shouldRenderNativePlatform.native.js
|
|
1277
1279
|
var require_shouldRenderNativePlatform_native = __commonJS({
|
|
1278
1280
|
"../../core/helpers/dist/cjs/shouldRenderNativePlatform.native.js"(exports2, module2) {
|
|
@@ -1316,7 +1318,7 @@ var require_shouldRenderNativePlatform_native = __commonJS({
|
|
|
1316
1318
|
}
|
|
1317
1319
|
});
|
|
1318
1320
|
module2.exports = __toCommonJS2(shouldRenderNativePlatform_exports);
|
|
1319
|
-
var import_constants4 =
|
|
1321
|
+
var import_constants4 = require_index_native(), ALL_PLATFORMS = [
|
|
1320
1322
|
"web",
|
|
1321
1323
|
"android",
|
|
1322
1324
|
"ios"
|
|
@@ -1422,7 +1424,7 @@ var require_validStyleProps_native = __commonJS({
|
|
|
1422
1424
|
}
|
|
1423
1425
|
});
|
|
1424
1426
|
module2.exports = __toCommonJS2(validStyleProps_exports);
|
|
1425
|
-
var import_constants4 =
|
|
1427
|
+
var import_constants4 = require_index_native(), textColors = {
|
|
1426
1428
|
color: !0,
|
|
1427
1429
|
textDecorationColor: !0,
|
|
1428
1430
|
textShadowColor: !0
|
|
@@ -1771,7 +1773,7 @@ var require_index_native7 = __commonJS({
|
|
|
1771
1773
|
}), mod);
|
|
1772
1774
|
}, index_exports2 = {};
|
|
1773
1775
|
module2.exports = __toCommonJS2(index_exports2);
|
|
1774
|
-
__reExport2(index_exports2,
|
|
1776
|
+
__reExport2(index_exports2, require_index_native6(), module2.exports);
|
|
1775
1777
|
__reExport2(index_exports2, require_clamp_native(), module2.exports);
|
|
1776
1778
|
__reExport2(index_exports2, require_composeEventHandlers_native(), module2.exports);
|
|
1777
1779
|
__reExport2(index_exports2, require_concatClassName_native(), module2.exports);
|
|
@@ -1837,7 +1839,7 @@ var require_useGet_native = __commonJS({
|
|
|
1837
1839
|
}
|
|
1838
1840
|
});
|
|
1839
1841
|
module2.exports = __toCommonJS2(useGet_exports);
|
|
1840
|
-
var import_constants4 =
|
|
1842
|
+
var import_constants4 = require_index_native(), React4 = __toESM2(require("react"));
|
|
1841
1843
|
function useGet2(currentValue, initialValue, forwardToFunction) {
|
|
1842
1844
|
var curRef = React4.useRef(initialValue ?? currentValue);
|
|
1843
1845
|
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -2054,7 +2056,7 @@ var require_useControllableState_native = __commonJS({
|
|
|
2054
2056
|
return _();
|
|
2055
2057
|
};
|
|
2056
2058
|
function useControllableState(param) {
|
|
2057
|
-
var { prop, defaultProp, onChange, strategy = "prop-wins", preventUpdate, transition } = param, [state, setState] = React4.useState(prop ?? defaultProp), previous = React4.useRef(state), propWins = strategy === "prop-wins" && prop !== void 0,
|
|
2059
|
+
var { prop, defaultProp, onChange, strategy = "prop-wins", preventUpdate, transition } = param, [state, setState] = React4.useState(prop ?? defaultProp), previous = React4.useRef(state), propWins = strategy === "prop-wins" && prop !== void 0, value2 = propWins ? prop : state, onChangeCb = (0, import_use_event.useEvent)(onChange || idFn), transitionFn = transition ? import_start_transition.startTransition : emptyCallbackFn;
|
|
2058
2060
|
React4.useEffect(function() {
|
|
2059
2061
|
prop !== void 0 && (previous.current = prop, transitionFn(function() {
|
|
2060
2062
|
setState(prop);
|
|
@@ -2077,7 +2079,7 @@ var require_useControllableState_native = __commonJS({
|
|
|
2077
2079
|
});
|
|
2078
2080
|
});
|
|
2079
2081
|
return [
|
|
2080
|
-
|
|
2082
|
+
value2,
|
|
2081
2083
|
setter
|
|
2082
2084
|
];
|
|
2083
2085
|
}
|
|
@@ -2343,7 +2345,7 @@ var require_config_native = __commonJS({
|
|
|
2343
2345
|
}
|
|
2344
2346
|
});
|
|
2345
2347
|
module2.exports = __toCommonJS2(config_exports);
|
|
2346
|
-
var import_constants4 =
|
|
2348
|
+
var import_constants4 = require_index_native(), import_constants22 = require_constants_native2(), import_loadDuplicatedConfig = require_loadDuplicatedConfig_native(), conf, getSetting2 = function(key) {
|
|
2347
2349
|
var _conf_settings_key;
|
|
2348
2350
|
return (_conf_settings_key = conf.settings[key]) !== null && _conf_settings_key !== void 0 ? _conf_settings_key : (
|
|
2349
2351
|
// @ts-expect-error
|
|
@@ -2372,22 +2374,22 @@ var require_config_native = __commonJS({
|
|
|
2372
2374
|
{}
|
|
2373
2375
|
), { tokens, tokensParsed } = conf;
|
|
2374
2376
|
return prefixed === !1 ? tokens : prefixed === !0 ? tokensParsed : tokensMerged;
|
|
2375
|
-
}, getTokenObject = function(
|
|
2377
|
+
}, getTokenObject = function(value2, group) {
|
|
2376
2378
|
var _tokensMerged_group, _tokensMerged_, _conf_specificTokens_value;
|
|
2377
|
-
return (_conf_specificTokens_value = conf.specificTokens[
|
|
2378
|
-
return tokensMerged[cat][
|
|
2379
|
-
}) || ""]) === null || _tokensMerged_ === void 0 ? void 0 : _tokensMerged_[
|
|
2380
|
-
}, getToken3 = function(
|
|
2381
|
-
var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants4.isWeb, token = getTokenObject(
|
|
2379
|
+
return (_conf_specificTokens_value = conf.specificTokens[value2]) !== null && _conf_specificTokens_value !== void 0 ? _conf_specificTokens_value : group ? (_tokensMerged_group = tokensMerged[group]) === null || _tokensMerged_group === void 0 ? void 0 : _tokensMerged_group[value2] : (_tokensMerged_ = tokensMerged[Object.keys(tokensMerged).find(function(cat) {
|
|
2380
|
+
return tokensMerged[cat][value2];
|
|
2381
|
+
}) || ""]) === null || _tokensMerged_ === void 0 ? void 0 : _tokensMerged_[value2];
|
|
2382
|
+
}, getToken3 = function(value2, group) {
|
|
2383
|
+
var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : import_constants4.isWeb, token = getTokenObject(value2, group);
|
|
2382
2384
|
return useVariable ? token == null ? void 0 : token.variable : token == null ? void 0 : token.val;
|
|
2383
|
-
}, getTokenValue3 = function(
|
|
2384
|
-
if (!(
|
|
2385
|
+
}, getTokenValue3 = function(value2, group) {
|
|
2386
|
+
if (!(value2 === "unset" || value2 === "auto")) return getToken3(value2, group, !1);
|
|
2385
2387
|
}, useTokens = getTokens3, getThemes3 = function() {
|
|
2386
2388
|
return conf.themes;
|
|
2387
2389
|
}, configListeners = /* @__PURE__ */ new Set(), onConfiguredOnce = function(cb) {
|
|
2388
2390
|
conf ? cb(conf) : configListeners.add(cb);
|
|
2389
|
-
}, updateConfig2 = function(key,
|
|
2390
|
-
Object.assign(conf[key],
|
|
2391
|
+
}, updateConfig2 = function(key, value2) {
|
|
2392
|
+
Object.assign(conf[key], value2);
|
|
2391
2393
|
}, getFont = function(name) {
|
|
2392
2394
|
var _Object_entries_find, conf2 = getConfig3(), _conf_fontsParsed_name;
|
|
2393
2395
|
return (_conf_fontsParsed_name = conf2.fontsParsed[name]) !== null && _conf_fontsParsed_name !== void 0 ? _conf_fontsParsed_name : (_Object_entries_find = Object.entries(conf2.fontsParsed).find(function(param) {
|
|
@@ -2473,7 +2475,7 @@ var require_createVariable_native = __commonJS({
|
|
|
2473
2475
|
}
|
|
2474
2476
|
});
|
|
2475
2477
|
module2.exports = __toCommonJS2(createVariable_exports);
|
|
2476
|
-
var import_constants4 =
|
|
2478
|
+
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_config = require_config_native();
|
|
2477
2479
|
function constructCSSVariableName(name) {
|
|
2478
2480
|
return `var(--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${name})`;
|
|
2479
2481
|
}
|
|
@@ -2526,9 +2528,9 @@ var require_createVariable_native = __commonJS({
|
|
|
2526
2528
|
var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, name = (0, import_helpers.simpleHash)(nameProp, 60);
|
|
2527
2529
|
return includeVar ? constructCSSVariableName(name) : name;
|
|
2528
2530
|
};
|
|
2529
|
-
function px(
|
|
2531
|
+
function px(value2) {
|
|
2530
2532
|
return {
|
|
2531
|
-
val:
|
|
2533
|
+
val: value2,
|
|
2532
2534
|
needsPx: !0
|
|
2533
2535
|
};
|
|
2534
2536
|
}
|
|
@@ -2605,7 +2607,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2605
2607
|
}
|
|
2606
2608
|
});
|
|
2607
2609
|
module2.exports = __toCommonJS2(insertStyleRule_exports);
|
|
2608
|
-
var import_constants4 =
|
|
2610
|
+
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), totalSelectorsInserted = /* @__PURE__ */ new Map(), allSelectors = {}, allRules = {}, insertedTransforms = {}, getAllSelectors = function() {
|
|
2609
2611
|
return allSelectors;
|
|
2610
2612
|
}, getAllRules = function() {
|
|
2611
2613
|
return Object.values(allRules);
|
|
@@ -2615,8 +2617,8 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2615
2617
|
function addTransform(identifier, css, rule) {
|
|
2616
2618
|
var s = css.indexOf("transform:");
|
|
2617
2619
|
if (s !== -1) {
|
|
2618
|
-
var startI = s + 10, endI = css.indexOf(";"),
|
|
2619
|
-
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] =
|
|
2620
|
+
var startI = s + 10, endI = css.indexOf(";"), value2 = css.slice(startI, endI);
|
|
2621
|
+
if (!insertedTransforms[identifier]) return insertedTransforms[identifier] = value2, !0;
|
|
2620
2622
|
}
|
|
2621
2623
|
}
|
|
2622
2624
|
function scanAllSheets() {
|
|
@@ -2965,7 +2967,7 @@ var require_useMedia_native = __commonJS({
|
|
|
2965
2967
|
}
|
|
2966
2968
|
});
|
|
2967
2969
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
2968
|
-
var import_constants4 =
|
|
2970
|
+
var import_constants4 = require_index_native(), import_react3 = require("react"), import_config = require_config_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mediaState3 = {}, mediaQueryConfig3 = {}, getMedia3 = function() {
|
|
2969
2971
|
return mediaState3;
|
|
2970
2972
|
}, mediaKeys = /* @__PURE__ */ new Set(), mediaKeyRegex = /\$(platform|theme|group)-/, isMediaKey = function(key) {
|
|
2971
2973
|
if (mediaKeys.has(key)) return !0;
|
|
@@ -3107,8 +3109,8 @@ var require_useMedia_native = __commonJS({
|
|
|
3107
3109
|
if (typeof query == "string") return query;
|
|
3108
3110
|
if (cache.has(query)) return cache.get(query);
|
|
3109
3111
|
var res = Object.entries(query).map(function(param) {
|
|
3110
|
-
var [feature,
|
|
3111
|
-
return feature = camelToHyphen(feature), typeof
|
|
3112
|
+
var [feature, value2] = param;
|
|
3113
|
+
return feature = camelToHyphen(feature), typeof value2 == "string" ? `(${feature}: ${value2})` : (typeof value2 == "number" && /[height|width]$/.test(feature) && (value2 = `${value2}px`), `(${feature}: ${value2})`);
|
|
3112
3114
|
}).join(" and ");
|
|
3113
3115
|
return key && (cachedMediaKeyToQuery[key] = res), cache.set(query, res), res;
|
|
3114
3116
|
}
|
|
@@ -3191,8 +3193,8 @@ var require_Tamagui_native = __commonJS({
|
|
|
3191
3193
|
var TamaguiManager;
|
|
3192
3194
|
}(), identifierToValue = /* @__PURE__ */ new Map(), getValueFromIdentifier = function(identifier) {
|
|
3193
3195
|
return identifierToValue.get(identifier);
|
|
3194
|
-
}, setIdentifierValue = function(identifier,
|
|
3195
|
-
identifierToValue.set(identifier,
|
|
3196
|
+
}, setIdentifierValue = function(identifier, value2) {
|
|
3197
|
+
identifierToValue.set(identifier, value2);
|
|
3196
3198
|
};
|
|
3197
3199
|
}
|
|
3198
3200
|
});
|
|
@@ -3259,8 +3261,8 @@ var require_compose_refs_native = __commonJS({
|
|
|
3259
3261
|
});
|
|
3260
3262
|
module2.exports = __toCommonJS2(compose_refs_exports);
|
|
3261
3263
|
var React4 = __toESM2(require("react"));
|
|
3262
|
-
function setRef(ref,
|
|
3263
|
-
typeof ref == "function" ? ref(
|
|
3264
|
+
function setRef(ref, value2) {
|
|
3265
|
+
typeof ref == "function" ? ref(value2) : ref && (ref.current = value2);
|
|
3264
3266
|
}
|
|
3265
3267
|
function composeRefs() {
|
|
3266
3268
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
|
|
@@ -3582,8 +3584,8 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3582
3584
|
})
|
|
3583
3585
|
});
|
|
3584
3586
|
}, useStyledContext = function() {
|
|
3585
|
-
var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", lastScopeInNamespace = (0, import_react3.useContext)(LastScopeInNamespace), scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn, context = scope ? getOrCreateScopedContext(scope) : OGContext,
|
|
3586
|
-
return
|
|
3587
|
+
var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", lastScopeInNamespace = (0, import_react3.useContext)(LastScopeInNamespace), scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn, context = scope ? getOrCreateScopedContext(scope) : OGContext, value2 = import_react3.default.useContext(context);
|
|
3588
|
+
return value2;
|
|
3587
3589
|
};
|
|
3588
3590
|
return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
|
|
3589
3591
|
}
|
|
@@ -4841,7 +4843,7 @@ var require_expandStyles_native = __commonJS({
|
|
|
4841
4843
|
}
|
|
4842
4844
|
});
|
|
4843
4845
|
module2.exports = __toCommonJS2(expandStyles_exports);
|
|
4844
|
-
var import_constants4 =
|
|
4846
|
+
var import_constants4 = require_index_native(), import_normalizeShadow = require_normalizeShadow_native();
|
|
4845
4847
|
function fixStyles(style) {
|
|
4846
4848
|
"elevationAndroid" in style && (style.elevation = style.elevationAndroid, delete style.elevationAndroid), (style.shadowRadius != null || style.shadowColor || style.shadowOpacity != null || style.shadowOffset) && Object.assign(style, (0, import_normalizeShadow.normalizeShadow)(style));
|
|
4847
4849
|
for (var key in borderDefaults) if (key in style) {
|
|
@@ -4957,7 +4959,7 @@ var require_isActivePlatform_native = __commonJS({
|
|
|
4957
4959
|
}
|
|
4958
4960
|
});
|
|
4959
4961
|
module2.exports = __toCommonJS2(isActivePlatform_exports);
|
|
4960
|
-
var import_constants4 =
|
|
4962
|
+
var import_constants4 = require_index_native();
|
|
4961
4963
|
function isActivePlatform(key) {
|
|
4962
4964
|
if (!key.startsWith("$platform")) return !0;
|
|
4963
4965
|
var platform2 = key.slice(10);
|
|
@@ -5120,16 +5122,16 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
5120
5122
|
}
|
|
5121
5123
|
});
|
|
5122
5124
|
module2.exports = __toCommonJS2(normalizeValueWithProperty_exports);
|
|
5123
|
-
var import_constants4 =
|
|
5125
|
+
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), stylePropsAllPlusTransforms = {
|
|
5124
5126
|
...import_helpers.stylePropsAll,
|
|
5125
5127
|
translateX: !0,
|
|
5126
5128
|
translateY: !0
|
|
5127
5129
|
};
|
|
5128
|
-
function normalizeValueWithProperty(
|
|
5130
|
+
function normalizeValueWithProperty(value2) {
|
|
5129
5131
|
var property = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
5130
|
-
if (!import_constants4.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof
|
|
5131
|
-
var res =
|
|
5132
|
-
return
|
|
5132
|
+
if (!import_constants4.isWeb || import_helpers.stylePropsUnitless[property] || property && !stylePropsAllPlusTransforms[property] || typeof value2 == "boolean") return value2;
|
|
5133
|
+
var res = value2;
|
|
5134
|
+
return value2 && typeof value2 == "object" ? value2 : (typeof value2 == "number" ? res = `${value2}px` : property && (res = `${res}`), res);
|
|
5133
5135
|
}
|
|
5134
5136
|
}
|
|
5135
5137
|
});
|
|
@@ -5387,32 +5389,32 @@ var require_expandStyle_native = __commonJS({
|
|
|
5387
5389
|
}
|
|
5388
5390
|
});
|
|
5389
5391
|
module2.exports = __toCommonJS2(expandStyle_exports);
|
|
5390
|
-
var import_constants4 =
|
|
5392
|
+
var import_constants4 = require_index_native(), import_config = require_config_native(), import_webToNativeProps = require_webToNativeProps_native(), _loop = function(parent2) {
|
|
5391
5393
|
var _exec, _exec_index, prefix = parent2.slice(0, (_exec_index = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _exec_index !== void 0 ? _exec_index : parent2.length);
|
|
5392
5394
|
EXPANSIONS[parent2] = EXPANSIONS[parent2].map(function(k) {
|
|
5393
5395
|
return `${prefix}${k}`;
|
|
5394
5396
|
});
|
|
5395
5397
|
};
|
|
5396
|
-
function expandStyle(key,
|
|
5398
|
+
function expandStyle(key, value2) {
|
|
5397
5399
|
if (import_constants4.isAndroid && key === "elevationAndroid") return [
|
|
5398
5400
|
[
|
|
5399
5401
|
"elevation",
|
|
5400
|
-
|
|
5402
|
+
value2
|
|
5401
5403
|
]
|
|
5402
5404
|
];
|
|
5403
5405
|
if (key in EXPANSIONS) return EXPANSIONS[key].map(function(key2) {
|
|
5404
5406
|
return [
|
|
5405
5407
|
key2,
|
|
5406
|
-
|
|
5408
|
+
value2
|
|
5407
5409
|
];
|
|
5408
5410
|
});
|
|
5409
5411
|
if (key in import_webToNativeProps.webToNativeExpansion) return import_webToNativeProps.webToNativeExpansion[key].map(function(key2) {
|
|
5410
5412
|
return [
|
|
5411
5413
|
key2,
|
|
5412
|
-
|
|
5414
|
+
value2
|
|
5413
5415
|
];
|
|
5414
5416
|
});
|
|
5415
|
-
if (key in import_webToNativeProps.webToNativeDynamicExpansion) return import_webToNativeProps.webToNativeDynamicExpansion[key](
|
|
5417
|
+
if (key in import_webToNativeProps.webToNativeDynamicExpansion) return import_webToNativeProps.webToNativeDynamicExpansion[key](value2);
|
|
5416
5418
|
}
|
|
5417
5419
|
var all = [
|
|
5418
5420
|
"Top",
|
|
@@ -5657,8 +5659,8 @@ var require_normalizeStyle_native = __commonJS({
|
|
|
5657
5659
|
res[key] = normalizeStyle(prop, disableNormalize);
|
|
5658
5660
|
continue;
|
|
5659
5661
|
}
|
|
5660
|
-
var
|
|
5661
|
-
out ? Object.assign(res, Object.fromEntries(out)) : res[key] =
|
|
5662
|
+
var value2 = disableNormalize ? prop : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(prop, key), out = (0, import_expandStyle.expandStyle)(key, value2);
|
|
5663
|
+
out ? Object.assign(res, Object.fromEntries(out)) : res[key] = value2;
|
|
5662
5664
|
}
|
|
5663
5665
|
}
|
|
5664
5666
|
return (0, import_expandStyles.fixStyles)(res), res;
|
|
@@ -5877,18 +5879,18 @@ var require_propMapper_native = __commonJS({
|
|
|
5877
5879
|
}
|
|
5878
5880
|
});
|
|
5879
5881
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
5880
|
-
var import_constants4 =
|
|
5881
|
-
if (disabled) return map(key,
|
|
5882
|
+
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_normalizeStyle = require_normalizeStyle_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), propMapper = function(key, value2, styleState, disabled, map) {
|
|
5883
|
+
if (disabled) return map(key, value2);
|
|
5882
5884
|
if (lastFontFamilyToken = null, !(!import_constants4.isAndroid && key === "elevationAndroid")) {
|
|
5883
5885
|
var { conf, styleProps, staticConfig } = styleState;
|
|
5884
|
-
if (
|
|
5886
|
+
if (value2 === "unset") {
|
|
5885
5887
|
var _conf_unset, unsetVal = (_conf_unset = conf.unset) === null || _conf_unset === void 0 ? void 0 : _conf_unset[key];
|
|
5886
|
-
if (unsetVal != null)
|
|
5888
|
+
if (unsetVal != null) value2 = unsetVal;
|
|
5887
5889
|
else return;
|
|
5888
5890
|
}
|
|
5889
5891
|
var { variants } = staticConfig;
|
|
5890
5892
|
if (!styleProps.noExpand && variants && key in variants) {
|
|
5891
|
-
var variantValue = resolveVariants(key,
|
|
5893
|
+
var variantValue = resolveVariants(key, value2, styleProps, styleState, "");
|
|
5892
5894
|
if (variantValue) {
|
|
5893
5895
|
variantValue.forEach(function(param) {
|
|
5894
5896
|
var [_$key, _$value] = param;
|
|
@@ -5897,30 +5899,30 @@ var require_propMapper_native = __commonJS({
|
|
|
5897
5899
|
return;
|
|
5898
5900
|
}
|
|
5899
5901
|
}
|
|
5900
|
-
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]),
|
|
5902
|
+
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value2 != null && (value2[0] === "$" ? value2 = getTokenForKey(key, value2, styleProps, styleState) : (0, import_createVariable.isVariable)(value2) && (value2 = resolveVariableValue(key, value2, styleProps.resolveValues))), value2 != null) {
|
|
5901
5903
|
key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
|
|
5902
|
-
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key,
|
|
5904
|
+
var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value2);
|
|
5903
5905
|
if (expanded) for (var max = expanded.length, i = 0; i < max; i++) {
|
|
5904
5906
|
var [nkey, nvalue] = expanded[i];
|
|
5905
5907
|
map(nkey, nvalue);
|
|
5906
5908
|
}
|
|
5907
|
-
else map(key,
|
|
5909
|
+
else map(key, value2);
|
|
5908
5910
|
}
|
|
5909
5911
|
}
|
|
5910
|
-
}, resolveVariants = function(key,
|
|
5912
|
+
}, resolveVariants = function(key, value2, styleProps, styleState, parentVariantKey) {
|
|
5911
5913
|
var { staticConfig, conf, debug } = styleState, { variants } = staticConfig;
|
|
5912
5914
|
if (variants) {
|
|
5913
|
-
var variantValue = getVariantDefinition(variants[key],
|
|
5915
|
+
var variantValue = getVariantDefinition(variants[key], value2, conf);
|
|
5914
5916
|
if (!variantValue) {
|
|
5915
|
-
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof
|
|
5917
|
+
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof value2 != "boolean") {
|
|
5916
5918
|
var name = staticConfig.componentName || "[UnnamedComponent]";
|
|
5917
|
-
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${
|
|
5919
|
+
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${value2}"`);
|
|
5918
5920
|
}
|
|
5919
5921
|
return;
|
|
5920
5922
|
}
|
|
5921
5923
|
if (typeof variantValue == "function") {
|
|
5922
5924
|
var fn = variantValue, extras = (0, import_getVariantExtras.getVariantExtras)(styleState);
|
|
5923
|
-
variantValue = fn(
|
|
5925
|
+
variantValue = fn(value2, extras);
|
|
5924
5926
|
}
|
|
5925
5927
|
var fontFamilyResult;
|
|
5926
5928
|
if ((0, import_isObj.isObj)(variantValue)) {
|
|
@@ -5943,10 +5945,10 @@ var require_propMapper_native = __commonJS({
|
|
|
5943
5945
|
}
|
|
5944
5946
|
} else if (typeof input == "string" && input[0] === "$") return input;
|
|
5945
5947
|
}
|
|
5946
|
-
var variableToFontNameCache = /* @__PURE__ */ new WeakMap(), resolveTokensAndVariants = function(key,
|
|
5948
|
+
var variableToFontNameCache = /* @__PURE__ */ new WeakMap(), resolveTokensAndVariants = function(key, value2, styleProps, styleState, parentVariantKey) {
|
|
5947
5949
|
var { conf, staticConfig, debug, theme } = styleState, { variants } = staticConfig, res = {};
|
|
5948
|
-
for (var _key in
|
|
5949
|
-
var subKey = conf.shorthands[_key] || _key, val =
|
|
5950
|
+
for (var _key in value2) {
|
|
5951
|
+
var subKey = conf.shorthands[_key] || _key, val = value2[_key];
|
|
5950
5952
|
if (!(!styleProps.noSkip && subKey in import_skipProps.skipProps)) {
|
|
5951
5953
|
if (styleProps.noExpand) res[subKey] = val;
|
|
5952
5954
|
else if (variants && subKey in variants) {
|
|
@@ -6010,17 +6012,17 @@ var require_propMapper_native = __commonJS({
|
|
|
6010
6012
|
spreadName: `...${name}`
|
|
6011
6013
|
};
|
|
6012
6014
|
});
|
|
6013
|
-
function getVariantDefinition(variant,
|
|
6015
|
+
function getVariantDefinition(variant, value2, conf) {
|
|
6014
6016
|
if (variant) {
|
|
6015
6017
|
if (typeof variant == "function") return variant;
|
|
6016
|
-
var exact = variant[
|
|
6018
|
+
var exact = variant[value2];
|
|
6017
6019
|
if (exact) return exact;
|
|
6018
|
-
if (
|
|
6020
|
+
if (value2 != null) {
|
|
6019
6021
|
var { tokensParsed } = conf, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
6020
6022
|
try {
|
|
6021
6023
|
for (var _iterator = tokenCats[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
6022
6024
|
var { name, spreadName } = _step.value;
|
|
6023
|
-
if (spreadName in variant && name in tokensParsed &&
|
|
6025
|
+
if (spreadName in variant && name in tokensParsed && value2 in tokensParsed[name]) return variant[spreadName];
|
|
6024
6026
|
}
|
|
6025
6027
|
} catch (err) {
|
|
6026
6028
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -6032,32 +6034,32 @@ var require_propMapper_native = __commonJS({
|
|
|
6032
6034
|
}
|
|
6033
6035
|
}
|
|
6034
6036
|
var fontSizeVariant = variant["...fontSize"];
|
|
6035
|
-
if (fontSizeVariant && conf.fontSizeTokens.has(
|
|
6037
|
+
if (fontSizeVariant && conf.fontSizeTokens.has(value2)) return fontSizeVariant;
|
|
6036
6038
|
}
|
|
6037
|
-
return variant[`:${typeof
|
|
6039
|
+
return variant[`:${typeof value2}`] || variant["..."];
|
|
6038
6040
|
}
|
|
6039
6041
|
}
|
|
6040
6042
|
var fontShorthand = {
|
|
6041
6043
|
fontSize: "size",
|
|
6042
6044
|
fontWeight: "weight"
|
|
6043
|
-
}, lastFontFamilyToken = null, getTokenForKey = function(key,
|
|
6045
|
+
}, lastFontFamilyToken = null, getTokenForKey = function(key, value2, styleProps, styleState) {
|
|
6044
6046
|
var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
|
|
6045
|
-
if (resolveAs === "none") return
|
|
6046
|
-
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, themeValue = theme ? theme[
|
|
6047
|
+
if (resolveAs === "none") return value2;
|
|
6048
|
+
var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, themeValue = theme ? theme[value2] || theme[value2.slice(1)] : void 0, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key];
|
|
6047
6049
|
if (customTokenAccept) {
|
|
6048
|
-
var val = themeValue ?? tokensParsed[customTokenAccept][
|
|
6050
|
+
var val = themeValue ?? tokensParsed[customTokenAccept][value2];
|
|
6049
6051
|
val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
|
|
6050
6052
|
}
|
|
6051
6053
|
if (themeValue) {
|
|
6052
|
-
if (resolveAs === "except-theme") return
|
|
6054
|
+
if (resolveAs === "except-theme") return value2;
|
|
6053
6055
|
valOrVar = themeValue, hasSet = !0;
|
|
6054
6056
|
} else {
|
|
6055
|
-
if (
|
|
6057
|
+
if (value2 in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value2];
|
|
6056
6058
|
else {
|
|
6057
6059
|
switch (key) {
|
|
6058
6060
|
case "fontFamily": {
|
|
6059
6061
|
var _fontsParsed_value, fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed;
|
|
6060
|
-
valOrVar = ((_fontsParsed_value = fontsParsed[
|
|
6062
|
+
valOrVar = ((_fontsParsed_value = fontsParsed[value2]) === null || _fontsParsed_value === void 0 ? void 0 : _fontsParsed_value.family) || value2, lastFontFamilyToken = value2, hasSet = !0;
|
|
6061
6063
|
break;
|
|
6062
6064
|
}
|
|
6063
6065
|
case "fontSize":
|
|
@@ -6067,18 +6069,18 @@ var require_propMapper_native = __commonJS({
|
|
|
6067
6069
|
var fam = fontFamily || conf.defaultFontToken;
|
|
6068
6070
|
if (fam) {
|
|
6069
6071
|
var _font_, fontsParsed1 = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed1[fam] || fontsParsed1[conf.defaultFontToken];
|
|
6070
|
-
valOrVar = (font == null || (_font_ = font[fontShorthand[key] || key]) === null || _font_ === void 0 ? void 0 : _font_[
|
|
6072
|
+
valOrVar = (font == null || (_font_ = font[fontShorthand[key] || key]) === null || _font_ === void 0 ? void 0 : _font_[value2]) || value2, hasSet = !0;
|
|
6071
6073
|
}
|
|
6072
6074
|
break;
|
|
6073
6075
|
}
|
|
6074
6076
|
}
|
|
6075
6077
|
for (var cat in import_helpers.tokenCategories) if (key in import_helpers.tokenCategories[cat]) {
|
|
6076
|
-
var res = tokensParsed[cat][
|
|
6078
|
+
var res = tokensParsed[cat][value2];
|
|
6077
6079
|
res != null && (valOrVar = res, hasSet = !0);
|
|
6078
6080
|
}
|
|
6079
6081
|
}
|
|
6080
6082
|
if (!hasSet) {
|
|
6081
|
-
var spaceVar = tokensParsed.space[
|
|
6083
|
+
var spaceVar = tokensParsed.space[value2];
|
|
6082
6084
|
spaceVar != null && (valOrVar = spaceVar, hasSet = !0);
|
|
6083
6085
|
}
|
|
6084
6086
|
}
|
|
@@ -6203,8 +6205,8 @@ var require_transformsToString_native = __commonJS({
|
|
|
6203
6205
|
// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'
|
|
6204
6206
|
// { perspective: 1000 } => perspective(1000px)
|
|
6205
6207
|
function(transform) {
|
|
6206
|
-
var type = Object.keys(transform)[0],
|
|
6207
|
-
return type === "matrix" || type === "matrix3d" ? `${type}(${
|
|
6208
|
+
var type = Object.keys(transform)[0], value2 = transform[type];
|
|
6209
|
+
return type === "matrix" || type === "matrix3d" ? `${type}(${value2.join(",")})` : `${type}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value2, type)})`;
|
|
6208
6210
|
}
|
|
6209
6211
|
).join(" ");
|
|
6210
6212
|
}
|
|
@@ -6275,7 +6277,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6275
6277
|
}
|
|
6276
6278
|
});
|
|
6277
6279
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6278
|
-
var import_constants4 =
|
|
6280
|
+
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
|
|
6279
6281
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6280
6282
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6281
6283
|
}
|
|
@@ -6455,10 +6457,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6455
6457
|
}
|
|
6456
6458
|
} else if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return;
|
|
6457
6459
|
} else if (isGroupMedia) {
|
|
6458
|
-
var _groupContext_groupName, _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupState = groupContext == null || (_groupContext_groupName = groupContext[groupName]) === null || _groupContext_groupName === void 0 ? void 0 : _groupContext_groupName.state;
|
|
6459
|
-
if (!groupState)
|
|
6460
|
+
var _groupContext_groupName, _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupState = groupContext == null || (_groupContext_groupName = groupContext[groupName]) === null || _groupContext_groupName === void 0 ? void 0 : _groupContext_groupName.state, groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media;
|
|
6461
|
+
if (!groupState) {
|
|
6462
|
+
pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());
|
|
6460
6463
|
return;
|
|
6461
|
-
|
|
6464
|
+
}
|
|
6465
|
+
var componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
|
|
6462
6466
|
if (groupMediaKey) {
|
|
6463
6467
|
mediaGroups || (mediaGroups = /* @__PURE__ */ new Set()), mediaGroups.add(groupMediaKey);
|
|
6464
6468
|
var mediaState1 = componentGroupState == null ? void 0 : componentGroupState.media, isActive = mediaState1 == null ? void 0 : mediaState1[groupMediaKey];
|
|
@@ -6549,7 +6553,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6549
6553
|
if (!styleState.style.$$css) {
|
|
6550
6554
|
var atomic, _iteratorNormalCompletion, _didIteratorError, _iteratorError;
|
|
6551
6555
|
try {
|
|
6552
|
-
for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) var atomicStyle, _props_animateOnly, _props_animateOnly1, key2,
|
|
6556
|
+
for (var _iterator, _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) var atomicStyle, _props_animateOnly, _props_animateOnly1, key2, value2, identifier, isAnimatedAndAnimateOnly, nonAnimatedAnimateOnly;
|
|
6553
6557
|
} catch (err) {
|
|
6554
6558
|
} finally {
|
|
6555
6559
|
}
|
|
@@ -6711,14 +6715,14 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6711
6715
|
delete viewProps[key], viewProps[key] = next;
|
|
6712
6716
|
} else viewProps[key] = val;
|
|
6713
6717
|
}
|
|
6714
|
-
function mergeMediaByImportance(styleState, mediaKey, key,
|
|
6718
|
+
function mergeMediaByImportance(styleState, mediaKey, key, value2, isSizeMedia, importanceBump, debugProp) {
|
|
6715
6719
|
var usedKeys = styleState.usedKeys, importance = (0, import_useMedia.getMediaImportanceIfMoreImportant)(mediaKey, key, styleState, isSizeMedia);
|
|
6716
6720
|
if (importanceBump && (importance = (importance || 0) + importanceBump), importance === null) return !1;
|
|
6717
6721
|
if (key in import_pseudoDescriptors.pseudoDescriptors) {
|
|
6718
6722
|
var descriptor = import_pseudoDescriptors.pseudoDescriptors[key], descriptorKey = descriptor.stateKey || descriptor.name, isDisabled = styleState.componentState[descriptorKey] === !1;
|
|
6719
6723
|
if (isDisabled) return !1;
|
|
6720
|
-
for (var subKey in
|
|
6721
|
-
} else mergeStyle(styleState, key,
|
|
6724
|
+
for (var subKey in value2) mergeStyle(styleState, subKey, value2[subKey], importance);
|
|
6725
|
+
} else mergeStyle(styleState, key, value2, importance);
|
|
6722
6726
|
return !0;
|
|
6723
6727
|
}
|
|
6724
6728
|
function normalizeStyle(style) {
|
|
@@ -6928,7 +6932,9 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6928
6932
|
}
|
|
6929
6933
|
}, createGroupListener = function(name, param) {
|
|
6930
6934
|
var { setStateShallow, pseudoGroups, mediaGroups, groupContext } = param, parent = groupContext == null ? void 0 : groupContext[name];
|
|
6931
|
-
|
|
6935
|
+
if (!parent) return function() {
|
|
6936
|
+
};
|
|
6937
|
+
var dispose = parent.subscribe(function(param2) {
|
|
6932
6938
|
var { layout, pseudo } = param2;
|
|
6933
6939
|
setStateShallow(function(prev) {
|
|
6934
6940
|
var _prev_group, didChange = !1, group = ((_prev_group = prev.group) === null || _prev_group === void 0 ? void 0 : _prev_group[name]) || {
|
|
@@ -6953,7 +6959,11 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6953
6959
|
}
|
|
6954
6960
|
} : prev;
|
|
6955
6961
|
});
|
|
6956
|
-
})
|
|
6962
|
+
});
|
|
6963
|
+
return function() {
|
|
6964
|
+
dispose(), setStateShallow({
|
|
6965
|
+
group: {}
|
|
6966
|
+
});
|
|
6957
6967
|
};
|
|
6958
6968
|
};
|
|
6959
6969
|
}
|
|
@@ -7017,7 +7027,7 @@ var require_useThemeState_native = __commonJS({
|
|
|
7017
7027
|
}
|
|
7018
7028
|
});
|
|
7019
7029
|
module2.exports = __toCommonJS2(useThemeState_exports);
|
|
7020
|
-
var import_constants4 =
|
|
7030
|
+
var import_constants4 = require_index_native(), import_react3 = require("react"), import_config = require_config_native(), import_constants22 = require_constants_native2(), ThemeStateContext = (0, import_react3.createContext)(""), allListeners = /* @__PURE__ */ new Map(), listenersByParent = {}, HasRenderedOnce = /* @__PURE__ */ new WeakMap(), HadTheme = /* @__PURE__ */ new WeakMap(), PendingUpdate = /* @__PURE__ */ new Map(), states = /* @__PURE__ */ new Map(), localStates = /* @__PURE__ */ new Map(), shouldForce = !1, forceUpdateThemes2 = function() {
|
|
7021
7031
|
cacheVersion++, shouldForce = !0, allListeners.forEach(function(cb) {
|
|
7022
7032
|
return cb();
|
|
7023
7033
|
});
|
|
@@ -7310,7 +7320,7 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
7310
7320
|
}
|
|
7311
7321
|
});
|
|
7312
7322
|
module2.exports = __toCommonJS2(getThemeProxied_exports);
|
|
7313
|
-
var import_constants4 =
|
|
7323
|
+
var import_constants4 = require_index_native(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_doesRootSchemeMatchSystem = require_doesRootSchemeMatchSystem_native(), import_getDynamicVal = require_getDynamicVal_native(), cache = /* @__PURE__ */ new Map(), curKeys, curProps, curState, emptyObject = {};
|
|
7314
7324
|
function getThemeProxied(_props, _state, _keys) {
|
|
7315
7325
|
if (!(_state != null && _state.theme)) return emptyObject;
|
|
7316
7326
|
if (curKeys = _keys, curProps = _props, curState = _state, cache.has(curState.theme)) {
|
|
@@ -7322,14 +7332,14 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
7322
7332
|
curKeys && (curKeys.current || (curKeys.current = /* @__PURE__ */ new Set()), curKeys.current.add(key));
|
|
7323
7333
|
}
|
|
7324
7334
|
var proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {
|
|
7325
|
-
var [key,
|
|
7326
|
-
...
|
|
7335
|
+
var [key, value2] = param, proxied2 = {
|
|
7336
|
+
...value2,
|
|
7327
7337
|
get val() {
|
|
7328
|
-
return globalThis.tamaguiAvoidTracking || track(key),
|
|
7338
|
+
return globalThis.tamaguiAvoidTracking || track(key), value2.val;
|
|
7329
7339
|
},
|
|
7330
7340
|
get(platform2) {
|
|
7331
7341
|
if (curState) {
|
|
7332
|
-
var outVal = (0, import_createVariable.getVariable)(
|
|
7342
|
+
var outVal = (0, import_createVariable.getVariable)(value2), { name, scheme, inverses } = curState, shouldOptimize = scheme && platform2 !== "web" && import_constants4.isIos && !curProps.deopt && (0, import_config.getSetting)("fastSchemeChange") && inverses === 0 && (0, import_doesRootSchemeMatchSystem.doesRootSchemeMatchSystem)();
|
|
7333
7343
|
if (shouldOptimize) {
|
|
7334
7344
|
var _config_themes_name, _config_themes_oppositeName, oppositeScheme = scheme === "dark" ? "light" : "dark", oppositeName = name.replace(scheme, oppositeScheme), color = (0, import_createVariable.getVariable)((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]), oppositeColor = (0, import_createVariable.getVariable)((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]), dynamicVal = (0, import_getDynamicVal.getDynamicVal)({
|
|
7335
7345
|
scheme,
|
|
@@ -7526,7 +7536,7 @@ var require_Theme_native = __commonJS({
|
|
|
7526
7536
|
}
|
|
7527
7537
|
});
|
|
7528
7538
|
module2.exports = __toCommonJS2(Theme_exports);
|
|
7529
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 =
|
|
7539
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_useTheme = require_useTheme_native(), import_useThemeState = require_useThemeState_native(), import_ThemeDebug = require_ThemeDebug_native(), Theme2 = /* @__PURE__ */ (0, import_react3.forwardRef)(function(props, ref) {
|
|
7530
7540
|
if (props.disable) return props.children;
|
|
7531
7541
|
var { passThrough } = props, isRoot = !!props._isRoot, [_, themeState] = (0, import_useTheme.useThemeWithState)(props, isRoot), disableDirectChildTheme = props["disable-child-theme"], finalChildren = disableDirectChildTheme ? import_react3.Children.map(props.children, function(child) {
|
|
7532
7542
|
return passThrough ? child : /* @__PURE__ */ (0, import_react3.cloneElement)(child, {
|
|
@@ -7744,7 +7754,7 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
7744
7754
|
}
|
|
7745
7755
|
});
|
|
7746
7756
|
module2.exports = __toCommonJS2(wrapStyleTags_exports);
|
|
7747
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 =
|
|
7757
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_helpers = require_index_native7();
|
|
7748
7758
|
function getStyleTags(styles) {
|
|
7749
7759
|
import_constants4.IS_REACT_19;
|
|
7750
7760
|
}
|
|
@@ -7798,9 +7808,9 @@ var require_ClientOnly_native = __commonJS({
|
|
|
7798
7808
|
});
|
|
7799
7809
|
module2.exports = __toCommonJS2(ClientOnly_exports);
|
|
7800
7810
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
|
|
7801
|
-
var { children,
|
|
7811
|
+
var { children, enabled } = param, existingValue = (0, import_react3.useContext)(ClientOnlyContext2);
|
|
7802
7812
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ClientOnlyContext2.Provider, {
|
|
7803
|
-
value,
|
|
7813
|
+
value: enabled ?? existingValue,
|
|
7804
7814
|
children
|
|
7805
7815
|
});
|
|
7806
7816
|
};
|
|
@@ -7877,13 +7887,13 @@ var require_index_native14 = __commonJS({
|
|
|
7877
7887
|
var React4 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native(), useIsClientOnly = function() {
|
|
7878
7888
|
return React4.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7879
7889
|
};
|
|
7880
|
-
function useDidFinishSSR2(
|
|
7890
|
+
function useDidFinishSSR2() {
|
|
7881
7891
|
var clientOnly = React4.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7882
|
-
return value
|
|
7892
|
+
return value != null ? value : !0;
|
|
7883
7893
|
}
|
|
7884
|
-
function useClientValue(
|
|
7894
|
+
function useClientValue(value1) {
|
|
7885
7895
|
var done = useDidFinishSSR2();
|
|
7886
|
-
return done ? typeof
|
|
7896
|
+
return done ? typeof value1 == "function" ? value1() : value1 : void 0;
|
|
7887
7897
|
}
|
|
7888
7898
|
}
|
|
7889
7899
|
});
|
|
@@ -7931,25 +7941,23 @@ var require_useComponentState_native = __commonJS({
|
|
|
7931
7941
|
}
|
|
7932
7942
|
});
|
|
7933
7943
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
7934
|
-
var import_constants4 =
|
|
7935
|
-
var _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0
|
|
7936
|
-
stateRef.current || (stateRef.current = {});
|
|
7937
|
-
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
7944
|
+
var import_constants4 = require_index_native(), import_is_equal_shallow = require_index_native12(), import_use_did_finish_ssr = require_index_native14(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
7945
|
+
var _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, { isHOC } = staticConfig, stateRef = (0, import_react3.useRef)({}), hasAnimationProp = !!(!isHOC && "animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
7938
7946
|
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
|
|
7939
7947
|
var willBeAnimatedClient = function() {
|
|
7940
|
-
var next = !!(hasAnimationProp && !
|
|
7948
|
+
var next = !!(hasAnimationProp && !isHOC && useAnimations);
|
|
7941
7949
|
return !!(next || curStateRef.hasAnimated);
|
|
7942
7950
|
}(), willBeAnimated = !import_constants4.isServer && willBeAnimatedClient;
|
|
7943
7951
|
willBeAnimated && !curStateRef.hasAnimated && (curStateRef.hasAnimated = !0);
|
|
7944
|
-
var { disableClassName } = props, presence = willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver == null ? void 0 : animationDriver.isReactNative) || !supportsCSS),
|
|
7952
|
+
var { disableClassName } = props, presence = !isHOC && willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver == null ? void 0 : animationDriver.isReactNative) || !supportsCSS), canImmediatelyEnter = hasEnterStyle || isEntering, shouldEnter = !isHOC && (hasEnterStyle || isEntering || hasAnimationThatNeedsHydrate || // disableClassName doesnt work server side, only client, so needs hydrate
|
|
7945
7953
|
// this is just for a better ux, supports css variables for light/dark, media queries, etc
|
|
7946
|
-
disableClassName, initialState = shouldEnter ? (
|
|
7954
|
+
disableClassName), initialState = shouldEnter ? (
|
|
7947
7955
|
// on the very first render we switch all spring animation drivers to css rendering
|
|
7948
7956
|
// this is because we need to use css variables, which they don't support to do proper SSR
|
|
7949
7957
|
// without flickers of the wrong colors.
|
|
7950
7958
|
// but once we do that initial hydration and we are in client side rendering mode,
|
|
7951
7959
|
// we can avoid the extra re-render on mount
|
|
7952
|
-
|
|
7960
|
+
canImmediatelyEnter ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState
|
|
7953
7961
|
) : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
|
|
7954
7962
|
disabled != null && (initialState.disabled = disabled);
|
|
7955
7963
|
var states = (0, import_react3.useState)(initialState), state = props.forceStyle ? {
|
|
@@ -8108,7 +8116,7 @@ var require_Slot_native = __commonJS({
|
|
|
8108
8116
|
}
|
|
8109
8117
|
});
|
|
8110
8118
|
module2.exports = __toCommonJS2(Slot_exports);
|
|
8111
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
8119
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), 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) {
|
|
8112
8120
|
var { children, ...slotProps } = props;
|
|
8113
8121
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
8114
8122
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
@@ -8223,7 +8231,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8223
8231
|
}
|
|
8224
8232
|
});
|
|
8225
8233
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8226
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
8234
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_is_equal_shallow = require_index_native12(), 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_GroupContext = require_GroupContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_objectIdentityKey = require_objectIdentityKey_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(), avoidReRenderKeys = /* @__PURE__ */ new Set([
|
|
8227
8235
|
"hover",
|
|
8228
8236
|
"press",
|
|
8229
8237
|
"pressIn",
|
|
@@ -8287,16 +8295,15 @@ var require_createComponent_native = __commonJS({
|
|
|
8287
8295
|
} : defaultProps, props = propsIn;
|
|
8288
8296
|
curDefaultProps && (props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn));
|
|
8289
8297
|
var componentName2 = props.componentName || staticConfig.componentName, componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), groupContextParent = import_react3.default.useContext(import_GroupContext.GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = (0, import_useComponentState.useComponentState)(props, animationDriver, staticConfig, config), { disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, supportsCSS, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = componentState;
|
|
8290
|
-
|
|
8291
|
-
var pendingState =
|
|
8292
|
-
pendingState && (
|
|
8293
|
-
}
|
|
8298
|
+
hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
8299
|
+
var pendingState = stateRef.current.nextState;
|
|
8300
|
+
pendingState && (stateRef.current.nextState = void 0, componentState.setStateShallow(pendingState));
|
|
8301
|
+
});
|
|
8294
8302
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
8295
|
-
var _stateRef_current_group;
|
|
8303
|
+
var _stateRef_current_group_listeners, _stateRef_current_group;
|
|
8296
8304
|
if (!groupName || props.passThrough) return groupContextParent;
|
|
8297
|
-
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
8298
8305
|
var listeners = /* @__PURE__ */ new Set();
|
|
8299
|
-
return stateRef.current.group = {
|
|
8306
|
+
return (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || (_stateRef_current_group_listeners = _stateRef_current_group.listeners) === null || _stateRef_current_group_listeners === void 0 || _stateRef_current_group_listeners.clear(), stateRef.current.group = {
|
|
8300
8307
|
listeners,
|
|
8301
8308
|
emit(state2) {
|
|
8302
8309
|
listeners.forEach(function(l) {
|
|
@@ -8365,8 +8372,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8365
8372
|
isAnimated,
|
|
8366
8373
|
willBeAnimated,
|
|
8367
8374
|
styledContextProps
|
|
8368
|
-
}, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
8369
|
-
if (
|
|
8375
|
+
}, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), isPassthrough = !splitStyles, groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
8376
|
+
if (!isPassthrough && groupContext && // avoids onLayout if we don't need it
|
|
8370
8377
|
props.containerType !== "normal") {
|
|
8371
8378
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
8372
8379
|
if (groupState && groupState.layout === void 0) {
|
|
@@ -8377,31 +8384,35 @@ var require_createComponent_native = __commonJS({
|
|
|
8377
8384
|
});
|
|
8378
8385
|
}
|
|
8379
8386
|
}
|
|
8380
|
-
if (
|
|
8381
|
-
var
|
|
8387
|
+
if (!isPassthrough && (hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
|
|
8388
|
+
var updateGroupListeners2 = function() {
|
|
8389
|
+
var updatedState = stateRef.current.nextState;
|
|
8390
|
+
if (groupContext) {
|
|
8391
|
+
var { group, hasDynGroupChildren, unmounted, animation, ...childrenGroupState } = updatedState;
|
|
8392
|
+
notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
|
|
8393
|
+
}
|
|
8394
|
+
}, updateGroupListeners = updateGroupListeners2, _componentContext, ogSetStateShallow = setStateShallow;
|
|
8382
8395
|
stateRef.current.updateStyleListener = function() {
|
|
8383
|
-
var updatedState =
|
|
8384
|
-
groupContext && notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
|
|
8385
|
-
var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, mediaState22 ? {
|
|
8396
|
+
var updatedState = stateRef.current.nextState || state, mediaState22 = stateRef.current.nextMedia, nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, mediaState22 ? {
|
|
8386
8397
|
...styleProps,
|
|
8387
8398
|
mediaState: mediaState22
|
|
8388
8399
|
} : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), useStyleListener = stateRef.current.useStyleListener;
|
|
8389
8400
|
useStyleListener == null || useStyleListener((nextStyles == null ? void 0 : nextStyles.style) || {});
|
|
8390
8401
|
}, (_componentContext = componentContext).mediaEmit || (_componentContext.mediaEmit = function(next) {
|
|
8391
8402
|
var _stateRef_current_updateStyleListener, _stateRef_current;
|
|
8392
|
-
|
|
8403
|
+
stateRef.current.nextMedia = next, (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
|
|
8393
8404
|
}), stateRef.current.setStateShallow = function(nextOrGetNext) {
|
|
8394
|
-
var prev =
|
|
8405
|
+
var prev = stateRef.current.nextState || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
|
|
8395
8406
|
if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
|
|
8396
8407
|
var canAvoidReRender = Object.keys(next).every(function(key3) {
|
|
8397
8408
|
return avoidReRenderKeys.has(key3);
|
|
8398
|
-
})
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8409
|
+
}), updatedState = {
|
|
8410
|
+
...prev,
|
|
8411
|
+
...next
|
|
8412
|
+
};
|
|
8413
|
+
if (stateRef.current.nextState = updatedState, canAvoidReRender) {
|
|
8414
|
+
var _stateRef_current_updateStyleListener, _stateRef_current;
|
|
8415
|
+
updateGroupListeners2(), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
|
|
8405
8416
|
} else ogSetStateShallow(next);
|
|
8406
8417
|
}
|
|
8407
8418
|
}, setStateShallow = function(state2) {
|
|
@@ -8469,7 +8480,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8469
8480
|
});
|
|
8470
8481
|
animations && (animations.ref && (animatedRef = animations.ref), isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)));
|
|
8471
8482
|
}
|
|
8472
|
-
|
|
8483
|
+
!isPassthrough && groupContext && // avoids onLayout if we don't need it
|
|
8473
8484
|
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8474
8485
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
8475
8486
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
@@ -8525,12 +8536,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8525
8536
|
}, [
|
|
8526
8537
|
allGroupContexts,
|
|
8527
8538
|
disabled,
|
|
8528
|
-
pseudoGroups ?
|
|
8529
|
-
|
|
8530
|
-
]).join("") : 0,
|
|
8531
|
-
mediaGroups ? Object.keys([
|
|
8532
|
-
...mediaGroups
|
|
8533
|
-
]).join("") : 0
|
|
8539
|
+
pseudoGroups ? (0, import_objectIdentityKey.objectIdentityKey)(pseudoGroups) : 0,
|
|
8540
|
+
mediaGroups ? (0, import_objectIdentityKey.objectIdentityKey)(mediaGroups) : 0
|
|
8534
8541
|
]);
|
|
8535
8542
|
var groupEmitter = stateRef.current.group;
|
|
8536
8543
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -8611,7 +8618,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8611
8618
|
onPress,
|
|
8612
8619
|
onLongPress
|
|
8613
8620
|
});
|
|
8614
|
-
|
|
8621
|
+
isPassthrough && (content = propsIn.children, elementType = BaseViewComponent, viewProps = {
|
|
8615
8622
|
style: {
|
|
8616
8623
|
display: "contents"
|
|
8617
8624
|
}
|
|
@@ -8961,7 +8968,7 @@ var require_createVariables_native = __commonJS({
|
|
|
8961
8968
|
}
|
|
8962
8969
|
});
|
|
8963
8970
|
module2.exports = __toCommonJS2(createVariables_exports);
|
|
8964
|
-
var import_constants4 =
|
|
8971
|
+
var import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_createVariable = require_createVariable_native(), cache = /* @__PURE__ */ new WeakMap(), createVariables = function(tokens) {
|
|
8965
8972
|
var parentPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", isFont = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
8966
8973
|
if (cache.has(tokens)) return tokens;
|
|
8967
8974
|
var res = {}, i = 0;
|
|
@@ -9355,10 +9362,10 @@ var require_createFont_native = __commonJS({
|
|
|
9355
9362
|
...sectionKeys
|
|
9356
9363
|
])
|
|
9357
9364
|
].map(function(key) {
|
|
9358
|
-
var _section_key, _ref,
|
|
9359
|
-
return fillValue =
|
|
9365
|
+
var _section_key, _ref, value2 = (_ref = (_section_key = section[key]) !== null && _section_key !== void 0 ? _section_key : defaultValue) !== null && _ref !== void 0 ? _ref : fillValue;
|
|
9366
|
+
return fillValue = value2, defaultValue = value2, [
|
|
9360
9367
|
key,
|
|
9361
|
-
|
|
9368
|
+
value2
|
|
9362
9369
|
];
|
|
9363
9370
|
}));
|
|
9364
9371
|
}, createFont2 = function(font) {
|
|
@@ -9510,7 +9517,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9510
9517
|
}
|
|
9511
9518
|
});
|
|
9512
9519
|
module2.exports = __toCommonJS2(createTamagui_exports);
|
|
9513
|
-
var import_constants4 =
|
|
9520
|
+
var import_constants4 = require_index_native(), 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_loadDuplicatedConfig = require_loadDuplicatedConfig_native(), import_Tamagui = require_Tamagui_native();
|
|
9514
9521
|
function shouldTokenCategoryHaveUnits(category) {
|
|
9515
9522
|
var UNIT_CATEGORIES = /* @__PURE__ */ new Set([
|
|
9516
9523
|
"size",
|
|
@@ -10485,7 +10492,7 @@ var require_useIsTouchDevice_native = __commonJS({
|
|
|
10485
10492
|
}
|
|
10486
10493
|
});
|
|
10487
10494
|
module2.exports = __toCommonJS2(useIsTouchDevice_exports);
|
|
10488
|
-
var import_constants4 =
|
|
10495
|
+
var import_constants4 = require_index_native(), import_use_did_finish_ssr = require_index_native14(), useIsTouchDevice2 = function() {
|
|
10489
10496
|
return import_constants4.isWeb ? (0, import_use_did_finish_ssr.useDidFinishSSR)() ? import_constants4.isTouchable : !1 : !0;
|
|
10490
10497
|
};
|
|
10491
10498
|
}
|
|
@@ -10604,7 +10611,7 @@ var require_useProps_native = __commonJS({
|
|
|
10604
10611
|
}
|
|
10605
10612
|
});
|
|
10606
10613
|
module2.exports = __toCommonJS2(useProps_exports);
|
|
10607
|
-
var import_constants4 =
|
|
10614
|
+
var import_constants4 = require_index_native(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_GroupContext = require_GroupContext_native(), import_getSplitStyles = require_getSplitStyles_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_Stack = require_Stack_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native();
|
|
10608
10615
|
function useProps2(props, opts) {
|
|
10609
10616
|
var [propsOut, styleOut] = usePropsAndStyle2(props, {
|
|
10610
10617
|
...opts,
|
|
@@ -10844,7 +10851,7 @@ var require_ThemeProvider_native = __commonJS({
|
|
|
10844
10851
|
}
|
|
10845
10852
|
});
|
|
10846
10853
|
module2.exports = __toCommonJS2(ThemeProvider_exports);
|
|
10847
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 =
|
|
10854
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_react3 = require("react"), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_Theme = require_Theme_native(), ThemeProvider = function(props) {
|
|
10848
10855
|
var _props_disableRootThemeClass, disableRootThemeClass = (_props_disableRootThemeClass = props.disableRootThemeClass) !== null && _props_disableRootThemeClass !== void 0 ? _props_disableRootThemeClass : (0, import_config.getSetting)("disableRootThemeClass"), _props_themeClassNameOnRoot, themeClassNameOnRoot = (_props_themeClassNameOnRoot = props.themeClassNameOnRoot) !== null && _props_themeClassNameOnRoot !== void 0 ? _props_themeClassNameOnRoot : (0, import_config.getSetting)("themeClassNameOnRoot");
|
|
10849
10856
|
return import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
10850
10857
|
if (!disableRootThemeClass) {
|
|
@@ -10995,7 +11002,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10995
11002
|
}
|
|
10996
11003
|
});
|
|
10997
11004
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10998
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 =
|
|
11005
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_use_did_finish_ssr = require_index_native14(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_insertStyleRule = require_insertStyleRule_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
10999
11006
|
function TamaguiProvider2(param) {
|
|
11000
11007
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11001
11008
|
import_constants4.IS_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -11025,6 +11032,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11025
11032
|
})
|
|
11026
11033
|
});
|
|
11027
11034
|
return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
11035
|
+
enabled: !0,
|
|
11028
11036
|
children: contents
|
|
11029
11037
|
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
11030
11038
|
children: [
|
|
@@ -11105,16 +11113,15 @@ var require_Configuration_native = __commonJS({
|
|
|
11105
11113
|
});
|
|
11106
11114
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
11107
11115
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native14(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
|
|
11108
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
|
|
11116
|
+
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext), _props_disableSSR;
|
|
11109
11117
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
11110
|
-
|
|
11118
|
+
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
11111
11119
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
11112
11120
|
...current,
|
|
11113
11121
|
...props
|
|
11114
11122
|
})
|
|
11115
11123
|
});
|
|
11116
11124
|
};
|
|
11117
|
-
Configuration2.displayName = "Configuration";
|
|
11118
11125
|
}
|
|
11119
11126
|
});
|
|
11120
11127
|
|
|
@@ -11286,7 +11293,7 @@ var require_index_native15 = __commonJS({
|
|
|
11286
11293
|
__reExport2(index_exports2, require_index_native8(), module2.exports);
|
|
11287
11294
|
__reExport2(index_exports2, require_index_native11(), module2.exports);
|
|
11288
11295
|
__reExport2(index_exports2, require_index_native7(), module2.exports);
|
|
11289
|
-
__reExport2(index_exports2,
|
|
11296
|
+
__reExport2(index_exports2, require_index_native(), module2.exports);
|
|
11290
11297
|
__reExport2(index_exports2, require_setupHooks_native(), module2.exports);
|
|
11291
11298
|
}
|
|
11292
11299
|
});
|
|
@@ -11358,7 +11365,7 @@ var require_Collapsible_native = __commonJS({
|
|
|
11358
11365
|
}
|
|
11359
11366
|
});
|
|
11360
11367
|
module2.exports = __toCommonJS2(Collapsible_exports);
|
|
11361
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_animate_presence =
|
|
11368
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_animate_presence = require_index_native5(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native10(), import_web = require_index_native15(), React4 = __toESM2(require("react")), COLLAPSIBLE_NAME = "Collapsible", { Provider: CollapsibleProvider, useStyledContext: useCollapsibleContext } = (0, import_web.createStyledContext)(), _Collapsible = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
11362
11369
|
var { __scopeCollapsible, open: openProp, defaultOpen, disabled, onOpenChange, ...collapsibleProps } = props, [open = !1, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
11363
11370
|
prop: openProp,
|
|
11364
11371
|
defaultProp: defaultOpen,
|
|
@@ -11529,41 +11536,41 @@ var require_matchQuery_native = __commonJS({
|
|
|
11529
11536
|
var inverse = query.inverse, typeMatch = query.type === "all" || values.type === query.type;
|
|
11530
11537
|
if (typeMatch && inverse || !(typeMatch || inverse)) return !1;
|
|
11531
11538
|
var expressionsMatch = query.expressions.every(function(expression) {
|
|
11532
|
-
var feature = expression.feature, modifier = expression.modifier, expValue = expression.value,
|
|
11533
|
-
if (!
|
|
11539
|
+
var feature = expression.feature, modifier = expression.modifier, expValue = expression.value, value2 = values[feature];
|
|
11540
|
+
if (!value2) return !1;
|
|
11534
11541
|
switch (feature) {
|
|
11535
11542
|
case "orientation":
|
|
11536
11543
|
case "scan":
|
|
11537
|
-
return
|
|
11544
|
+
return value2.toLowerCase() === expValue.toLowerCase();
|
|
11538
11545
|
case "width":
|
|
11539
11546
|
case "height":
|
|
11540
11547
|
case "device-width":
|
|
11541
11548
|
case "device-height":
|
|
11542
|
-
expValue = toPx(expValue),
|
|
11549
|
+
expValue = toPx(expValue), value2 = toPx(value2);
|
|
11543
11550
|
break;
|
|
11544
11551
|
case "resolution":
|
|
11545
|
-
expValue = toDpi(expValue),
|
|
11552
|
+
expValue = toDpi(expValue), value2 = toDpi(value2);
|
|
11546
11553
|
break;
|
|
11547
11554
|
case "aspect-ratio":
|
|
11548
11555
|
case "device-aspect-ratio":
|
|
11549
11556
|
case /* Deprecated */
|
|
11550
11557
|
"device-pixel-ratio":
|
|
11551
|
-
expValue = toDecimal(expValue),
|
|
11558
|
+
expValue = toDecimal(expValue), value2 = toDecimal(value2);
|
|
11552
11559
|
break;
|
|
11553
11560
|
case "grid":
|
|
11554
11561
|
case "color":
|
|
11555
11562
|
case "color-index":
|
|
11556
11563
|
case "monochrome":
|
|
11557
|
-
expValue = Number.parseInt(expValue, 10) || 1,
|
|
11564
|
+
expValue = Number.parseInt(expValue, 10) || 1, value2 = Number.parseInt(value2, 10) || 0;
|
|
11558
11565
|
break;
|
|
11559
11566
|
}
|
|
11560
11567
|
switch (modifier) {
|
|
11561
11568
|
case "min":
|
|
11562
|
-
return
|
|
11569
|
+
return value2 >= expValue;
|
|
11563
11570
|
case "max":
|
|
11564
|
-
return
|
|
11571
|
+
return value2 <= expValue;
|
|
11565
11572
|
default:
|
|
11566
|
-
return
|
|
11573
|
+
return value2 === expValue;
|
|
11567
11574
|
}
|
|
11568
11575
|
});
|
|
11569
11576
|
return expressionsMatch && !inverse || !expressionsMatch && inverse;
|
|
@@ -11595,35 +11602,35 @@ var require_matchQuery_native = __commonJS({
|
|
|
11595
11602
|
return decimal || (numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/), decimal = numbers[1] / numbers[2]), decimal;
|
|
11596
11603
|
}
|
|
11597
11604
|
function toDpi(resolution) {
|
|
11598
|
-
var _String_match,
|
|
11605
|
+
var _String_match, value2 = Number.parseFloat(resolution), units = (_String_match = String(resolution).match(RE_RESOLUTION_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11599
11606
|
switch (units) {
|
|
11600
11607
|
case "dpcm":
|
|
11601
|
-
return
|
|
11608
|
+
return value2 / 2.54;
|
|
11602
11609
|
case "dppx":
|
|
11603
|
-
return
|
|
11610
|
+
return value2 * 96;
|
|
11604
11611
|
default:
|
|
11605
|
-
return
|
|
11612
|
+
return value2;
|
|
11606
11613
|
}
|
|
11607
11614
|
}
|
|
11608
11615
|
function toPx(length) {
|
|
11609
|
-
var _String_match,
|
|
11616
|
+
var _String_match, value2 = Number.parseFloat(length), units = (_String_match = String(length).match(RE_LENGTH_UNIT)) === null || _String_match === void 0 ? void 0 : _String_match[1];
|
|
11610
11617
|
switch (units) {
|
|
11611
11618
|
case "em":
|
|
11612
|
-
return
|
|
11619
|
+
return value2 * 16;
|
|
11613
11620
|
case "rem":
|
|
11614
|
-
return
|
|
11621
|
+
return value2 * 16;
|
|
11615
11622
|
case "cm":
|
|
11616
|
-
return
|
|
11623
|
+
return value2 * 96 / 2.54;
|
|
11617
11624
|
case "mm":
|
|
11618
|
-
return
|
|
11625
|
+
return value2 * 96 / 2.54 / 10;
|
|
11619
11626
|
case "in":
|
|
11620
|
-
return
|
|
11627
|
+
return value2 * 96;
|
|
11621
11628
|
case "pt":
|
|
11622
|
-
return
|
|
11629
|
+
return value2 * 72;
|
|
11623
11630
|
case "pc":
|
|
11624
|
-
return
|
|
11631
|
+
return value2 * 72 / 12;
|
|
11625
11632
|
default:
|
|
11626
|
-
return
|
|
11633
|
+
return value2;
|
|
11627
11634
|
}
|
|
11628
11635
|
}
|
|
11629
11636
|
}
|
|
@@ -11685,13 +11692,13 @@ var require_mediaQueryList_native = __commonJS({
|
|
|
11685
11692
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
11686
11693
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
11687
11694
|
}
|
|
11688
|
-
function _define_property(obj, key,
|
|
11695
|
+
function _define_property(obj, key, value2) {
|
|
11689
11696
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
11690
|
-
value,
|
|
11697
|
+
value: value2,
|
|
11691
11698
|
enumerable: !0,
|
|
11692
11699
|
configurable: !0,
|
|
11693
11700
|
writable: !0
|
|
11694
|
-
}) : obj[key] =
|
|
11701
|
+
}) : obj[key] = value2, obj;
|
|
11695
11702
|
}
|
|
11696
11703
|
var NativeMediaQueryList = /* @__PURE__ */ function() {
|
|
11697
11704
|
"use strict";
|
|
@@ -12361,13 +12368,13 @@ var require_ResponderTouchHistoryStore_native = __commonJS({
|
|
|
12361
12368
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
12362
12369
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
12363
12370
|
}
|
|
12364
|
-
function _define_property(obj, key,
|
|
12371
|
+
function _define_property(obj, key, value2) {
|
|
12365
12372
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
12366
|
-
value,
|
|
12373
|
+
value: value2,
|
|
12367
12374
|
enumerable: !0,
|
|
12368
12375
|
configurable: !0,
|
|
12369
12376
|
writable: !0
|
|
12370
|
-
}) : obj[key] =
|
|
12377
|
+
}) : obj[key] = value2, obj;
|
|
12371
12378
|
}
|
|
12372
12379
|
var ResponderTouchHistoryStore = /* @__PURE__ */ function() {
|
|
12373
12380
|
"use strict";
|
|
@@ -12929,7 +12936,7 @@ var require_index_native19 = __commonJS({
|
|
|
12929
12936
|
}
|
|
12930
12937
|
});
|
|
12931
12938
|
module2.exports = __toCommonJS2(index_exports2);
|
|
12932
|
-
var import_constants4 =
|
|
12939
|
+
var import_constants4 = require_index_native(), import_is_equal_shallow = require_index_native12(), LayoutHandlers = /* @__PURE__ */ new WeakMap(), Nodes = /* @__PURE__ */ new Set(), IntersectionState = /* @__PURE__ */ new WeakMap(), globalIntersectionObserver = null, strategy = "async";
|
|
12933
12940
|
function setOnLayoutStrategy3(state) {
|
|
12934
12941
|
strategy = state;
|
|
12935
12942
|
}
|
|
@@ -13769,7 +13776,7 @@ var require_Collection_native = __commonJS({
|
|
|
13769
13776
|
}
|
|
13770
13777
|
});
|
|
13771
13778
|
module2.exports = __toCommonJS2(Collection_exports);
|
|
13772
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
13779
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_react3 = __toESM2(require("react"));
|
|
13773
13780
|
function createCollection(name) {
|
|
13774
13781
|
var { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core12.createStyledContext)({
|
|
13775
13782
|
collectionRef: {
|
|
@@ -14683,7 +14690,7 @@ var require_index_native25 = __commonJS({
|
|
|
14683
14690
|
}
|
|
14684
14691
|
});
|
|
14685
14692
|
module2.exports = __toCommonJS2(index_exports2);
|
|
14686
|
-
var import_constants4 =
|
|
14693
|
+
var import_constants4 = require_index_native(), import_web = require_index_native15(), getFontSized2 = function() {
|
|
14687
14694
|
var sizeTokenIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "$true", { font, fontFamily, props } = arguments.length > 1 ? arguments[1] : void 0, _font_lineHeight, _font_weight, _font_letterSpacing, _font_transform, _font_style, _font_color;
|
|
14688
14695
|
if (!font) return {
|
|
14689
14696
|
fontSize: sizeTokenIn
|
|
@@ -15311,7 +15318,7 @@ var require_Accordion_native = __commonJS({
|
|
|
15311
15318
|
}
|
|
15312
15319
|
});
|
|
15313
15320
|
module2.exports = __toCommonJS2(Accordion_exports);
|
|
15314
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native16(), import_collection = require_index_native21(), import_compose_refs = require_index_native11(), import_constants4 =
|
|
15321
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native16(), import_collection = require_index_native21(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_helpers = require_index_native7(), import_stacks3 = require_index_native24(), import_text2 = require_index_native26(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native27(), React4 = __toESM2(require("react")), ACCORDION_NAME = "Accordion", ACCORDION_KEYS = [
|
|
15315
15322
|
"Home",
|
|
15316
15323
|
"End",
|
|
15317
15324
|
"ArrowDown",
|
|
@@ -15334,24 +15341,24 @@ var require_Accordion_native = __commonJS({
|
|
|
15334
15341
|
AccordionComponent.displayName = ACCORDION_NAME;
|
|
15335
15342
|
AccordionComponent.propTypes = {
|
|
15336
15343
|
type(props) {
|
|
15337
|
-
var
|
|
15344
|
+
var value2 = props.value || props.defaultValue;
|
|
15338
15345
|
return props.type && ![
|
|
15339
15346
|
"single",
|
|
15340
15347
|
"multiple"
|
|
15341
|
-
].includes(props.type) ? new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`.") : props.type === "multiple" && typeof
|
|
15348
|
+
].includes(props.type) ? new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`.") : props.type === "multiple" && typeof value2 == "string" ? new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`.") : props.type === "single" && Array.isArray(value2) ? new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`.") : null;
|
|
15342
15349
|
}
|
|
15343
15350
|
};
|
|
15344
15351
|
var { Provider: AccordionValueProvider, useStyledContext: useAccordionValueContext } = (0, import_core12.createStyledContext)(), { Provider: AccordionCollapsibleProvider, useStyledContext: useAccordionCollapsibleContext } = (0, import_core12.createStyledContext)(), AccordionImplSingle = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
15345
15352
|
var { value: valueProp, defaultValue, control, onValueChange = function() {
|
|
15346
|
-
}, collapsible = !1, ...accordionSingleProps } = props, [
|
|
15353
|
+
}, collapsible = !1, ...accordionSingleProps } = props, [value2, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
15347
15354
|
prop: valueProp,
|
|
15348
15355
|
defaultProp: defaultValue || "",
|
|
15349
15356
|
onChange: onValueChange
|
|
15350
15357
|
});
|
|
15351
15358
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionValueProvider, {
|
|
15352
15359
|
scope: props.__scopeAccordion,
|
|
15353
|
-
value:
|
|
15354
|
-
|
|
15360
|
+
value: value2 ? [
|
|
15361
|
+
value2
|
|
15355
15362
|
] : [],
|
|
15356
15363
|
onItemOpen: setValue,
|
|
15357
15364
|
onItemClose: React4.useCallback(function() {
|
|
@@ -15371,7 +15378,7 @@ var require_Accordion_native = __commonJS({
|
|
|
15371
15378
|
});
|
|
15372
15379
|
}), AccordionImplMultiple = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
15373
15380
|
var { value: valueProp, defaultValue, onValueChange = function() {
|
|
15374
|
-
}, ...accordionMultipleProps } = props, [
|
|
15381
|
+
}, ...accordionMultipleProps } = props, [value2, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
15375
15382
|
prop: valueProp,
|
|
15376
15383
|
defaultProp: defaultValue || [],
|
|
15377
15384
|
onChange: onValueChange
|
|
@@ -15388,8 +15395,8 @@ var require_Accordion_native = __commonJS({
|
|
|
15388
15395
|
]), handleItemClose = React4.useCallback(function(itemValue) {
|
|
15389
15396
|
return setValue(function() {
|
|
15390
15397
|
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
15391
|
-
return prevValue.filter(function(
|
|
15392
|
-
return
|
|
15398
|
+
return prevValue.filter(function(value22) {
|
|
15399
|
+
return value22 !== itemValue;
|
|
15393
15400
|
});
|
|
15394
15401
|
});
|
|
15395
15402
|
}, [
|
|
@@ -15397,7 +15404,7 @@ var require_Accordion_native = __commonJS({
|
|
|
15397
15404
|
]);
|
|
15398
15405
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionValueProvider, {
|
|
15399
15406
|
scope: props.__scopeAccordion,
|
|
15400
|
-
value:
|
|
15407
|
+
value: value2 || [],
|
|
15401
15408
|
onItemOpen: handleItemOpen,
|
|
15402
15409
|
onItemClose: handleItemClose,
|
|
15403
15410
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionCollapsibleProvider, {
|
|
@@ -15469,7 +15476,7 @@ var require_Accordion_native = __commonJS({
|
|
|
15469
15476
|
})
|
|
15470
15477
|
});
|
|
15471
15478
|
}), ITEM_NAME = "AccordionItem", { Provider: AccordionItemProvider, useStyledContext: useAccordionItemContext } = (0, import_core12.createStyledContext)(), AccordionItem = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
15472
|
-
var { __scopeAccordion, value, ...accordionItemProps } = props, accordionContext = useAccordionContext(__scopeAccordion), valueContext = useAccordionValueContext(__scopeAccordion), triggerId = React4.useId(), open =
|
|
15479
|
+
var { __scopeAccordion, value: value2, ...accordionItemProps } = props, accordionContext = useAccordionContext(__scopeAccordion), valueContext = useAccordionValueContext(__scopeAccordion), triggerId = React4.useId(), open = value2 && valueContext.value.includes(value2) || !1, disabled = accordionContext.disabled || props.disabled;
|
|
15473
15480
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionItemProvider, {
|
|
15474
15481
|
scope: __scopeAccordion,
|
|
15475
15482
|
open,
|
|
@@ -15484,7 +15491,7 @@ var require_Accordion_native = __commonJS({
|
|
|
15484
15491
|
disabled,
|
|
15485
15492
|
open,
|
|
15486
15493
|
onOpenChange: function(open2) {
|
|
15487
|
-
open2 ? valueContext.onItemOpen(
|
|
15494
|
+
open2 ? valueContext.onItemOpen(value2) : valueContext.onItemClose(value2);
|
|
15488
15495
|
}
|
|
15489
15496
|
})
|
|
15490
15497
|
});
|
|
@@ -15923,7 +15930,7 @@ var require_constants_native3 = __commonJS({
|
|
|
15923
15930
|
}
|
|
15924
15931
|
});
|
|
15925
15932
|
module2.exports = __toCommonJS2(constants_exports);
|
|
15926
|
-
var import_constants4 =
|
|
15933
|
+
var import_constants4 = require_index_native(), _global__IS_FABRIC, IS_FABRIC = typeof global < "u" && !!((_global__IS_FABRIC = global._IS_FABRIC) !== null && _global__IS_FABRIC !== void 0 ? _global__IS_FABRIC : global.nativeFabricUIManager), USE_NATIVE_PORTAL = process.env.TAMAGUI_USE_NATIVE_PORTAL && process.env.TAMAGUI_USE_NATIVE_PORTAL !== "false" ? !0 : !import_constants4.isAndroid && !IS_FABRIC, allPortalHosts = /* @__PURE__ */ new Map(), portalListeners = {};
|
|
15927
15934
|
}
|
|
15928
15935
|
});
|
|
15929
15936
|
|
|
@@ -15994,7 +16001,7 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
15994
16001
|
}
|
|
15995
16002
|
});
|
|
15996
16003
|
module2.exports = __toCommonJS2(GorhomPortal_exports);
|
|
15997
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 =
|
|
16004
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_start_transition = require_index_native9(), import_react3 = __toESM2(require("react")), import_constants22 = require_constants_native3(), ACTIONS = /* @__PURE__ */ function(ACTIONS2) {
|
|
15998
16005
|
return ACTIONS2[ACTIONS2.REGISTER_HOST = 0] = "REGISTER_HOST", ACTIONS2[ACTIONS2.DEREGISTER_HOST = 1] = "DEREGISTER_HOST", ACTIONS2[ACTIONS2.ADD_UPDATE_PORTAL = 2] = "ADD_UPDATE_PORTAL", ACTIONS2[ACTIONS2.REMOVE_PORTAL = 3] = "REMOVE_PORTAL", ACTIONS2;
|
|
15999
16006
|
}(ACTIONS || {}), INITIAL_STATE = {}, registerHost = function(state, hostName) {
|
|
16000
16007
|
return hostName in state || (state[hostName] = []), state;
|
|
@@ -16077,9 +16084,9 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
16077
16084
|
};
|
|
16078
16085
|
}, PortalProviderComponent = function(param) {
|
|
16079
16086
|
var { rootHostName = "root", shouldAddRootHost = !0, children } = param, [state, dispatch] = (0, import_react3.useReducer)(reducer, INITIAL_STATE), transitionDispatch = (0, import_react3.useMemo)(function() {
|
|
16080
|
-
var next = function(
|
|
16087
|
+
var next = function(value2) {
|
|
16081
16088
|
(0, import_start_transition.startTransition)(function() {
|
|
16082
|
-
dispatch(
|
|
16089
|
+
dispatch(value2);
|
|
16083
16090
|
});
|
|
16084
16091
|
};
|
|
16085
16092
|
return next;
|
|
@@ -16196,7 +16203,7 @@ var require_GorhomPortalItem_native = __commonJS({
|
|
|
16196
16203
|
}
|
|
16197
16204
|
});
|
|
16198
16205
|
module2.exports = __toCommonJS2(GorhomPortalItem_native_exports);
|
|
16199
|
-
var import_constants4 =
|
|
16206
|
+
var import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_react3 = require("react"), import_GorhomPortal = require_GorhomPortal_native(), GorhomPortalItem = function(props) {
|
|
16200
16207
|
var { name: _providedName, hostName, handleOnMount: _providedHandleOnMount, handleOnUnmount: _providedHandleOnUnmount, handleOnUpdate: _providedHandleOnUpdate, children, passThrough } = props, { addPortal: addUpdatePortal, removePortal } = (0, import_GorhomPortal.usePortal)(hostName), id = (0, import_react3.useId)(), name = _providedName || id, handleOnMount = (0, import_core12.useEvent)(function() {
|
|
16201
16208
|
_providedHandleOnMount ? _providedHandleOnMount(function() {
|
|
16202
16209
|
return addUpdatePortal(name, children);
|
|
@@ -16536,7 +16543,7 @@ var require_Adapt_native = __commonJS({
|
|
|
16536
16543
|
}
|
|
16537
16544
|
});
|
|
16538
16545
|
module2.exports = __toCommonJS2(Adapt_exports);
|
|
16539
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 =
|
|
16546
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_z_index_stack2 = require_index_native29(), import_react3 = __toESM2(require("react")), AdaptContext = (0, import_core12.createStyledContext)({
|
|
16540
16547
|
Contents: null,
|
|
16541
16548
|
scopeName: "",
|
|
16542
16549
|
portalName: "",
|
|
@@ -16759,11 +16766,11 @@ var require_create_context_native = __commonJS({
|
|
|
16759
16766
|
function createContext(rootComponentName, defaultContext) {
|
|
16760
16767
|
var Context = /* @__PURE__ */ React4.createContext(defaultContext);
|
|
16761
16768
|
function Provider(props) {
|
|
16762
|
-
var { children, ...context } = props,
|
|
16769
|
+
var { children, ...context } = props, value2 = React4.useMemo(function() {
|
|
16763
16770
|
return context;
|
|
16764
16771
|
}, Object.values(context));
|
|
16765
16772
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Context.Provider, {
|
|
16766
|
-
value,
|
|
16773
|
+
value: value2,
|
|
16767
16774
|
children
|
|
16768
16775
|
});
|
|
16769
16776
|
}
|
|
@@ -16787,11 +16794,11 @@ var require_create_context_native = __commonJS({
|
|
|
16787
16794
|
defaultContext
|
|
16788
16795
|
];
|
|
16789
16796
|
function Provider(props) {
|
|
16790
|
-
var _scope_scopeName, { scope, children, ...context } = props, Context = (scope == null || (_scope_scopeName = scope[scopeName]) === null || _scope_scopeName === void 0 ? void 0 : _scope_scopeName[index]) || BaseContext,
|
|
16797
|
+
var _scope_scopeName, { scope, children, ...context } = props, Context = (scope == null || (_scope_scopeName = scope[scopeName]) === null || _scope_scopeName === void 0 ? void 0 : _scope_scopeName[index]) || BaseContext, value2 = React4.useMemo(function() {
|
|
16791
16798
|
return context;
|
|
16792
16799
|
}, Object.values(context));
|
|
16793
16800
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Context.Provider, {
|
|
16794
|
-
value,
|
|
16801
|
+
value: value2,
|
|
16795
16802
|
children
|
|
16796
16803
|
});
|
|
16797
16804
|
}
|
|
@@ -17597,7 +17604,7 @@ var require_useSheetProviderProps_native = __commonJS({
|
|
|
17597
17604
|
}
|
|
17598
17605
|
});
|
|
17599
17606
|
module2.exports = __toCommonJS2(useSheetProviderProps_exports);
|
|
17600
|
-
var import_react3 = __toESM2(require("react")), import_core12 = require_index_native20(), import_use_constant =
|
|
17607
|
+
var import_react3 = __toESM2(require("react")), import_core12 = require_index_native20(), import_use_constant = require_index_native3(), import_use_controllable_state = require_index_native10();
|
|
17601
17608
|
function useSheetProviderProps(props, state) {
|
|
17602
17609
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, handleRef = import_react3.default.useRef(null), contentRef = import_react3.default.useRef(null), [frameSize, setFrameSize] = import_react3.default.useState(0), [maxContentSize, setMaxContentSize] = import_react3.default.useState(0), _props_snapPointsMode, snapPointsMode = (_props_snapPointsMode = props.snapPointsMode) !== null && _props_snapPointsMode !== void 0 ? _props_snapPointsMode : "percent", _props_snapPoints, snapPointsProp = (_props_snapPoints = props.snapPoints) !== null && _props_snapPoints !== void 0 ? _props_snapPoints : snapPointsMode === "percent" ? [
|
|
17603
17610
|
80
|
|
@@ -17975,7 +17982,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17975
17982
|
}
|
|
17976
17983
|
});
|
|
17977
17984
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
17978
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence =
|
|
17985
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence = require_index_native5(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_portal2 = require_index_native30(), import_react3 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_contexts = require_contexts_native(), import_helpers = require_helpers_native2(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), hiddenSize = 10000.1, sheetHiddenStyleSheet = null, relativeDimensionTo = import_constants4.isWeb ? "window" : "screen", SheetImplementationCustom = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
17979
17986
|
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, {
|
|
17980
17987
|
onOverlayComponent: setOverlayComponent
|
|
17981
17988
|
}), { frameSize, setFrameSize, snapPoints, snapPointsMode, hasFit, position, setPosition, scrollBridge, screenSize, setMaxContentSize, maxSnapPoint } = providerProps, { open, controller, isHidden } = state, sheetRef = import_react3.default.useRef(void 0), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef, providerProps.contentRef), { animationDriver } = (0, import_core12.useConfiguration)();
|
|
@@ -18020,8 +18027,8 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18020
18027
|
useAnimatedNumberReaction({
|
|
18021
18028
|
value: animatedNumber,
|
|
18022
18029
|
hostRef: sheetRef
|
|
18023
|
-
}, import_react3.default.useCallback(function(
|
|
18024
|
-
at.current =
|
|
18030
|
+
}, import_react3.default.useCallback(function(value2) {
|
|
18031
|
+
at.current = value2, scrollBridge.paneY = value2;
|
|
18025
18032
|
}, [
|
|
18026
18033
|
animationDriver
|
|
18027
18034
|
]));
|
|
@@ -18690,7 +18697,7 @@ var require_createSheet_native = __commonJS({
|
|
|
18690
18697
|
}
|
|
18691
18698
|
});
|
|
18692
18699
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
18693
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
18700
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native35(), import_use_did_finish_ssr = require_index_native14(), import_z_index_stack2 = require_index_native29(), import_react3 = require("react"), import_react_native4 = require_fake_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();
|
|
18694
18701
|
function createSheet(param) {
|
|
18695
18702
|
var { Handle, Frame, Overlay } = param, SheetHandle = Handle.styleable(function(param2, forwardedRef) {
|
|
18696
18703
|
var { __scopeSheet, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef);
|
|
@@ -19262,7 +19269,7 @@ var require_Dialog_native = __commonJS({
|
|
|
19262
19269
|
}
|
|
19263
19270
|
});
|
|
19264
19271
|
module2.exports = __toCommonJS2(Dialog_exports);
|
|
19265
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence =
|
|
19272
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence = require_index_native5(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_create_context = require_index_native32(), import_dismissable = require_index_native33(), import_focus_scope = require_index_native34(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native35(), import_sheet = require_index_native37(), import_stacks3 = require_index_native24(), import_text2 = require_index_native26(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native29(), React4 = __toESM2(require("react")), DialogContext = (0, import_core12.createStyledContext)(
|
|
19266
19273
|
// since we always provide this we can avoid setting here
|
|
19267
19274
|
{},
|
|
19268
19275
|
"Dialog__"
|
|
@@ -19506,6 +19513,7 @@ var require_Dialog_native = __commonJS({
|
|
|
19506
19513
|
children: contentProps.children
|
|
19507
19514
|
});
|
|
19508
19515
|
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentFrame, {
|
|
19516
|
+
ref: composedRefs,
|
|
19509
19517
|
id: context.contentId,
|
|
19510
19518
|
"aria-describedby": context.descriptionId,
|
|
19511
19519
|
"aria-labelledby": context.titleId,
|
|
@@ -19521,8 +19529,6 @@ var require_Dialog_native = __commonJS({
|
|
|
19521
19529
|
onPointerDownOutside,
|
|
19522
19530
|
onFocusOutside,
|
|
19523
19531
|
onInteractOutside,
|
|
19524
|
-
// @ts-ignore
|
|
19525
|
-
ref: composedRefs,
|
|
19526
19532
|
onDismiss: function() {
|
|
19527
19533
|
var _context_onOpenChange;
|
|
19528
19534
|
return context == null || (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, !1);
|
|
@@ -19772,7 +19778,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
19772
19778
|
}
|
|
19773
19779
|
});
|
|
19774
19780
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
19775
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
19781
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_dialog = require_index_native38(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), AlertScopePrefix = "Alert__", getAlertDialogScope = function(scope) {
|
|
19776
19782
|
return AlertScopePrefix + scope;
|
|
19777
19783
|
}, ROOT_NAME = "AlertDialog", TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
19778
19784
|
name: TRIGGER_NAME
|
|
@@ -20071,7 +20077,7 @@ var require_Image_native = __commonJS({
|
|
|
20071
20077
|
}
|
|
20072
20078
|
});
|
|
20073
20079
|
module2.exports = __toCommonJS2(Image_exports);
|
|
20074
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_constants4 =
|
|
20080
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_react_native4 = require_fake_react_native(), StyledImage = (0, import_core12.styled)(import_react_native4.Image, {
|
|
20075
20081
|
name: "Image"
|
|
20076
20082
|
}), Image = StyledImage.styleable(function(inProps, ref) {
|
|
20077
20083
|
var [props, style] = (0, import_core12.usePropsAndStyle)(inProps), { src, source, objectFit, ...rest } = props, finalSource = typeof src == "string" ? {
|
|
@@ -21626,7 +21632,7 @@ var require_focusableInputHOC_native = __commonJS({
|
|
|
21626
21632
|
module2.exports = __toCommonJS2(focusableInputHOC_exports);
|
|
21627
21633
|
var import_compose_refs = require_index_native11(), import_web = require_index_native15(), import_react3 = __toESM2(require("react")), import_registerFocusable = require_registerFocusable_native();
|
|
21628
21634
|
function useFocusable2(param) {
|
|
21629
|
-
var { isInput, props, ref } = param, { id, onChangeText, value, defaultValue } = props, inputValue = import_react3.default.useRef(
|
|
21635
|
+
var { isInput, props, ref } = param, { id, onChangeText, value: value2, defaultValue } = props, inputValue = import_react3.default.useRef(value2 || defaultValue || ""), unregisterFocusable = import_react3.default.useRef(void 0), focusAndSelect = import_react3.default.useCallback(function(input) {
|
|
21630
21636
|
input.focus(), input.setSelection && typeof inputValue.current == "string" && input.setSelection(0, inputValue.current.length);
|
|
21631
21637
|
}, []), registerFocusableHandler = import_react3.default.useCallback(function(input) {
|
|
21632
21638
|
var _unregisterFocusable_current;
|
|
@@ -21646,8 +21652,8 @@ var require_focusableInputHOC_native = __commonJS({
|
|
|
21646
21652
|
input && registerFocusableHandler(input);
|
|
21647
21653
|
}, [
|
|
21648
21654
|
registerFocusableHandler
|
|
21649
|
-
]), handleChangeText = (0, import_web.useEvent)(function(
|
|
21650
|
-
inputValue.current =
|
|
21655
|
+
]), handleChangeText = (0, import_web.useEvent)(function(value22) {
|
|
21656
|
+
inputValue.current = value22, onChangeText == null || onChangeText(value22);
|
|
21651
21657
|
});
|
|
21652
21658
|
return import_react3.default.useEffect(function() {
|
|
21653
21659
|
return function() {
|
|
@@ -21805,7 +21811,7 @@ var require_Label_native = __commonJS({
|
|
|
21805
21811
|
}
|
|
21806
21812
|
});
|
|
21807
21813
|
module2.exports = __toCommonJS2(Label_exports);
|
|
21808
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
21814
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_create_context = require_index_native32(), import_focusable2 = require_index_native47(), import_get_button_sized2 = require_index_native23(), import_get_font_sized2 = require_index_native25(), import_text2 = require_index_native26(), import_web = require_index_native15(), React4 = __toESM2(require("react")), NAME = "Label", [LabelProvider, useLabelContextImpl] = (0, import_create_context.createContext)(NAME, {
|
|
21809
21815
|
id: void 0,
|
|
21810
21816
|
controlRef: {
|
|
21811
21817
|
current: null
|
|
@@ -21999,15 +22005,15 @@ var require_index_native49 = __commonJS({
|
|
|
21999
22005
|
});
|
|
22000
22006
|
module2.exports = __toCommonJS2(index_exports2);
|
|
22001
22007
|
var React4 = __toESM2(require("react"));
|
|
22002
|
-
function usePrevious(
|
|
22008
|
+
function usePrevious(value2) {
|
|
22003
22009
|
var ref = React4.useRef({
|
|
22004
|
-
value,
|
|
22005
|
-
previous:
|
|
22010
|
+
value: value2,
|
|
22011
|
+
previous: value2
|
|
22006
22012
|
});
|
|
22007
22013
|
return React4.useMemo(function() {
|
|
22008
|
-
return ref.current.value !==
|
|
22014
|
+
return ref.current.value !== value2 && (ref.current.previous = ref.current.value, ref.current.value = value2), ref.current.previous;
|
|
22009
22015
|
}, [
|
|
22010
|
-
|
|
22016
|
+
value2
|
|
22011
22017
|
]);
|
|
22012
22018
|
}
|
|
22013
22019
|
}
|
|
@@ -22217,9 +22223,9 @@ var require_useCheckbox_native = __commonJS({
|
|
|
22217
22223
|
}
|
|
22218
22224
|
});
|
|
22219
22225
|
module2.exports = __toCommonJS2(useCheckbox_exports);
|
|
22220
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
22226
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_label = require_index_native48(), import_react3 = __toESM2(require("react")), import_BubbleInput = require_BubbleInput_native(), import_utils = require_utils_native2();
|
|
22221
22227
|
function useCheckbox(props, param, ref) {
|
|
22222
|
-
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() {
|
|
22228
|
+
var [checked, setChecked] = param, { labelledBy: ariaLabelledby, name, required, disabled, value: value2 = "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() {
|
|
22223
22229
|
return (0, import_helpers.composeEventHandlers)(parentKeyDown, function(event) {
|
|
22224
22230
|
event.key === "Enter" && event.preventDefault();
|
|
22225
22231
|
});
|
|
@@ -22240,7 +22246,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
22240
22246
|
control: button,
|
|
22241
22247
|
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
22242
22248
|
name,
|
|
22243
|
-
value,
|
|
22249
|
+
value: value2,
|
|
22244
22250
|
checked,
|
|
22245
22251
|
required,
|
|
22246
22252
|
disabled
|
|
@@ -22253,7 +22259,7 @@ var require_useCheckbox_native = __commonJS({
|
|
|
22253
22259
|
...checkboxProps,
|
|
22254
22260
|
...import_constants4.isWeb && {
|
|
22255
22261
|
type: "button",
|
|
22256
|
-
value,
|
|
22262
|
+
value: value2,
|
|
22257
22263
|
"data-state": (0, import_utils.getState)(checked),
|
|
22258
22264
|
"data-disabled": disabled ? "" : void 0,
|
|
22259
22265
|
disabled,
|
|
@@ -22397,8 +22403,8 @@ var require_createCheckbox_native = __commonJS({
|
|
|
22397
22403
|
import_react3.default.useEffect(function() {
|
|
22398
22404
|
if (props.id && !props.disabled) return (0, import_focusable2.registerFocusable)(props.id, {
|
|
22399
22405
|
focusAndSelect: function() {
|
|
22400
|
-
setChecked == null || setChecked(function(
|
|
22401
|
-
return !
|
|
22406
|
+
setChecked == null || setChecked(function(value2) {
|
|
22407
|
+
return !value2;
|
|
22402
22408
|
});
|
|
22403
22409
|
},
|
|
22404
22410
|
focus: function() {
|
|
@@ -23454,7 +23460,7 @@ var require_Animate_native = __commonJS({
|
|
|
23454
23460
|
}
|
|
23455
23461
|
});
|
|
23456
23462
|
module2.exports = __toCommonJS2(Animate_exports);
|
|
23457
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_animate_presence =
|
|
23463
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_animate_presence = require_index_native5(), import_react3 = require("react");
|
|
23458
23464
|
function Animate(param) {
|
|
23459
23465
|
var { children, lazyMount, type, present, passThrough, ...props } = param, [lazyMounted, setLazyMounted] = (0, import_react3.useState)(lazyMount ? !1 : present);
|
|
23460
23466
|
(0, import_react3.useEffect)(function() {
|
|
@@ -23849,7 +23855,7 @@ var require_Popper_native = __commonJS({
|
|
|
23849
23855
|
}
|
|
23850
23856
|
});
|
|
23851
23857
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
23852
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
23858
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_floating = require_index_native57(), import_get_token2 = require_index_native22(), import_stacks3 = require_index_native24(), import_start_transition = require_index_native9(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), PopperContextFast = (0, import_core12.createStyledContext)(
|
|
23853
23859
|
// since we always provide this we can avoid setting here
|
|
23854
23860
|
{},
|
|
23855
23861
|
"Popper__"
|
|
@@ -24336,7 +24342,7 @@ var require_Popover_native = __commonJS({
|
|
|
24336
24342
|
}
|
|
24337
24343
|
});
|
|
24338
24344
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
24339
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native31(), import_animate = require_index_native56(), import_animate_presence =
|
|
24345
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native31(), import_animate = require_index_native56(), import_animate_presence = require_index_native5(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_floating = require_index_native57(), import_focus_scope = require_index_native34(), import_helpers = require_index_native7(), import_popper = require_index_native58(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native35(), import_scroll_view = require_index_native36(), import_sheet = require_index_native37(), import_stacks3 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native29(), React4 = __toESM2(require("react")), import_useFloatingContext = require_useFloatingContext_native(), needsRepropagation = import_constants4.isAndroid || import_constants4.isIos && !import_portal2.USE_NATIVE_PORTAL, PopoverContext = (0, import_core12.createStyledContext)(
|
|
24340
24346
|
// since we always provide this we can avoid setting here
|
|
24341
24347
|
{},
|
|
24342
24348
|
"Popover__"
|
|
@@ -24843,20 +24849,20 @@ var require_Progress_native = __commonJS({
|
|
|
24843
24849
|
animation: context.width ? animation : null
|
|
24844
24850
|
});
|
|
24845
24851
|
});
|
|
24846
|
-
function defaultGetValueLabel(
|
|
24847
|
-
return `${Math.round(
|
|
24852
|
+
function defaultGetValueLabel(value2, max) {
|
|
24853
|
+
return `${Math.round(value2 / max * 100)}%`;
|
|
24848
24854
|
}
|
|
24849
|
-
function getProgressState(
|
|
24850
|
-
return
|
|
24855
|
+
function getProgressState(value2, maxValue) {
|
|
24856
|
+
return value2 == null ? "indeterminate" : value2 === maxValue ? "complete" : "loading";
|
|
24851
24857
|
}
|
|
24852
|
-
function isNumber(
|
|
24853
|
-
return typeof
|
|
24858
|
+
function isNumber(value2) {
|
|
24859
|
+
return typeof value2 == "number";
|
|
24854
24860
|
}
|
|
24855
24861
|
function isValidMaxNumber(max) {
|
|
24856
24862
|
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
24857
24863
|
}
|
|
24858
|
-
function isValidValueNumber(
|
|
24859
|
-
return isNumber(
|
|
24864
|
+
function isValidValueNumber(value2, max) {
|
|
24865
|
+
return isNumber(value2) && !Number.isNaN(value2) && value2 <= max && value2 >= 0;
|
|
24860
24866
|
}
|
|
24861
24867
|
var DEFAULT_MAX = 100, ProgressFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
24862
24868
|
name: "Progress",
|
|
@@ -24891,21 +24897,21 @@ var require_Progress_native = __commonJS({
|
|
|
24891
24897
|
getValueLabel = defaultGetValueLabel,
|
|
24892
24898
|
size: size2 = "$true",
|
|
24893
24899
|
...progressProps
|
|
24894
|
-
} = props, max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX,
|
|
24900
|
+
} = props, max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value2 = isValidValueNumber(valueProp, max) ? valueProp : null, valueLabel = isNumber(value2) ? getValueLabel(value2, max) : void 0, [width, setWidth] = React4.useState(0);
|
|
24895
24901
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressProvider, {
|
|
24896
24902
|
scope: __scopeProgress,
|
|
24897
|
-
value,
|
|
24903
|
+
value: value2,
|
|
24898
24904
|
max,
|
|
24899
24905
|
width,
|
|
24900
24906
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressFrame, {
|
|
24901
24907
|
"aria-valuemax": max,
|
|
24902
24908
|
"aria-valuemin": 0,
|
|
24903
|
-
"aria-valuenow": isNumber(
|
|
24909
|
+
"aria-valuenow": isNumber(value2) ? value2 : void 0,
|
|
24904
24910
|
"aria-valuetext": valueLabel,
|
|
24905
24911
|
// @ts-ignore
|
|
24906
24912
|
role: "progressbar",
|
|
24907
|
-
"data-state": getProgressState(
|
|
24908
|
-
"data-value":
|
|
24913
|
+
"data-state": getProgressState(value2, max),
|
|
24914
|
+
"data-value": value2 ?? void 0,
|
|
24909
24915
|
"data-max": max,
|
|
24910
24916
|
...progressProps.unstyled !== !0 && {
|
|
24911
24917
|
size: size2
|
|
@@ -25064,8 +25070,8 @@ var require_RadioGroup_native = __commonJS({
|
|
|
25064
25070
|
}
|
|
25065
25071
|
},
|
|
25066
25072
|
size: {
|
|
25067
|
-
"...size": function(
|
|
25068
|
-
var { props } = param, _props_scaleSize, size2 = Math.floor((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(
|
|
25073
|
+
"...size": function(value2, param) {
|
|
25074
|
+
var { props } = param, _props_scaleSize, size2 = Math.floor((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(value2)) * ((_props_scaleSize = props.scaleSize) !== null && _props_scaleSize !== void 0 ? _props_scaleSize : 0.5));
|
|
25069
25075
|
return {
|
|
25070
25076
|
width: size2,
|
|
25071
25077
|
height: size2
|
|
@@ -25302,16 +25308,16 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
25302
25308
|
}
|
|
25303
25309
|
});
|
|
25304
25310
|
module2.exports = __toCommonJS2(useRadioGroup_exports);
|
|
25305
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
25311
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_focusable2 = require_index_native47(), import_helpers = require_index_native7(), import_label = require_index_native48(), import_use_controllable_state = require_index_native10(), import_react3 = require("react"), import_BubbleInput = require_BubbleInput_native2(), import_utils = require_utils_native3();
|
|
25306
25312
|
function useRadioGroup(params) {
|
|
25307
|
-
var { value: valueProp, onValueChange, defaultValue, required, disabled, name, native, accentColor, orientation, ref } = params, [
|
|
25313
|
+
var { value: valueProp, onValueChange, defaultValue, required, disabled, name, native, accentColor, orientation, ref } = params, [value2, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
25308
25314
|
prop: valueProp,
|
|
25309
25315
|
defaultProp: defaultValue,
|
|
25310
25316
|
onChange: onValueChange
|
|
25311
25317
|
});
|
|
25312
25318
|
return {
|
|
25313
25319
|
providerValue: {
|
|
25314
|
-
value,
|
|
25320
|
+
value: value2,
|
|
25315
25321
|
onChange: setValue,
|
|
25316
25322
|
required,
|
|
25317
25323
|
disabled,
|
|
@@ -25336,9 +25342,9 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
25336
25342
|
"ArrowLeft",
|
|
25337
25343
|
"ArrowRight"
|
|
25338
25344
|
], useRadioGroupItem = function(params) {
|
|
25339
|
-
var { radioGroupContext, value, labelledBy: ariaLabelledby, disabled: itemDisabled, ref: refProp, id, onPress, onKeyDown, onFocus } = params, { value: groupValue, disabled, required, onChange, name, native, accentColor } = (0, import_react3.useContext)(radioGroupContext), [button, setButton] = (0, import_react3.useState)(null), hasConsumerStoppedPropagationRef = (0, import_react3.useRef)(!1), ref = (0, import_react3.useRef)(null), composedRefs = (0, import_compose_refs.useComposedRefs)(refProp, function(node) {
|
|
25345
|
+
var { radioGroupContext, value: value2, labelledBy: ariaLabelledby, disabled: itemDisabled, ref: refProp, id, onPress, onKeyDown, onFocus } = params, { value: groupValue, disabled, required, onChange, name, native, accentColor } = (0, import_react3.useContext)(radioGroupContext), [button, setButton] = (0, import_react3.useState)(null), hasConsumerStoppedPropagationRef = (0, import_react3.useRef)(!1), ref = (0, import_react3.useRef)(null), composedRefs = (0, import_compose_refs.useComposedRefs)(refProp, function(node) {
|
|
25340
25346
|
return setButton(node);
|
|
25341
|
-
}, ref), isArrowKeyPressedRef = (0, import_react3.useRef)(!1), isFormControl = import_constants4.isWeb ? button ? !!button.closest("form") : !0 : !1, checked = groupValue ===
|
|
25347
|
+
}, ref), isArrowKeyPressedRef = (0, import_react3.useRef)(!1), isFormControl = import_constants4.isWeb ? button ? !!button.closest("form") : !0 : !1, checked = groupValue === value2, labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId;
|
|
25342
25348
|
(0, import_react3.useEffect)(function() {
|
|
25343
25349
|
if (import_constants4.isWeb) {
|
|
25344
25350
|
var handleKeyDown = function(event) {
|
|
@@ -25353,14 +25359,14 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
25353
25359
|
}, []), (0, import_react3.useEffect)(function() {
|
|
25354
25360
|
if (id && !disabled) return (0, import_focusable2.registerFocusable)(id, {
|
|
25355
25361
|
focusAndSelect: function() {
|
|
25356
|
-
onChange == null || onChange(
|
|
25362
|
+
onChange == null || onChange(value2);
|
|
25357
25363
|
},
|
|
25358
25364
|
focus: function() {
|
|
25359
25365
|
}
|
|
25360
25366
|
});
|
|
25361
25367
|
}, [
|
|
25362
25368
|
id,
|
|
25363
|
-
|
|
25369
|
+
value2,
|
|
25364
25370
|
disabled
|
|
25365
25371
|
]);
|
|
25366
25372
|
var isDisabled = disabled || itemDisabled;
|
|
@@ -25375,7 +25381,7 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
25375
25381
|
control: button,
|
|
25376
25382
|
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
25377
25383
|
name,
|
|
25378
|
-
value,
|
|
25384
|
+
value: value2,
|
|
25379
25385
|
checked,
|
|
25380
25386
|
required,
|
|
25381
25387
|
disabled: isDisabled,
|
|
@@ -25396,11 +25402,11 @@ var require_useRadioGroup_native = __commonJS({
|
|
|
25396
25402
|
ref: composedRefs,
|
|
25397
25403
|
...import_constants4.isWeb && {
|
|
25398
25404
|
type: "button",
|
|
25399
|
-
value
|
|
25405
|
+
value: value2
|
|
25400
25406
|
},
|
|
25401
25407
|
id,
|
|
25402
25408
|
onPress: (0, import_helpers.composeEventHandlers)(onPress, function(event) {
|
|
25403
|
-
checked || onChange == null || onChange(
|
|
25409
|
+
checked || onChange == null || onChange(value2), isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
|
|
25404
25410
|
}),
|
|
25405
25411
|
...import_constants4.isWeb && {
|
|
25406
25412
|
onKeyDown: (0, import_helpers.composeEventHandlers)(onKeyDown, function(event) {
|
|
@@ -25661,11 +25667,11 @@ var require_createRadioGroup_native = __commonJS({
|
|
|
25661
25667
|
var { disableActiveTheme, Frame = import_RadioGroup.RadioGroupFrame, Indicator = import_RadioGroup.RadioGroupIndicatorFrame, Item = import_RadioGroup.RadioGroupItemFrame } = createProps;
|
|
25662
25668
|
ensureContext(Frame), ensureContext(Indicator), ensureContext(Item);
|
|
25663
25669
|
var RadioGroupImp = Frame.styleable(function(props, ref) {
|
|
25664
|
-
var { value, defaultValue, onValueChange, required = !1, disabled = !1, name, native, accentColor, orientation = "vertical", ...rest } = props, { providerValue, frameAttrs, rovingFocusGroupAttrs } = (0, import_radio_headless.useRadioGroup)({
|
|
25670
|
+
var { value: value2, defaultValue, onValueChange, required = !1, disabled = !1, name, native, accentColor, orientation = "vertical", ...rest } = props, { providerValue, frameAttrs, rovingFocusGroupAttrs } = (0, import_radio_headless.useRadioGroup)({
|
|
25665
25671
|
orientation,
|
|
25666
25672
|
name,
|
|
25667
25673
|
defaultValue,
|
|
25668
|
-
value,
|
|
25674
|
+
value: value2,
|
|
25669
25675
|
onValueChange,
|
|
25670
25676
|
required,
|
|
25671
25677
|
disabled,
|
|
@@ -25685,7 +25691,7 @@ var require_createRadioGroup_native = __commonJS({
|
|
|
25685
25691
|
});
|
|
25686
25692
|
}), RadioGroupItemImp = Item.styleable(function(props, ref) {
|
|
25687
25693
|
var {
|
|
25688
|
-
value,
|
|
25694
|
+
value: value2,
|
|
25689
25695
|
labelledBy,
|
|
25690
25696
|
onPress,
|
|
25691
25697
|
//@ts-expect-error
|
|
@@ -25695,7 +25701,7 @@ var require_createRadioGroup_native = __commonJS({
|
|
|
25695
25701
|
...rest
|
|
25696
25702
|
} = props, { providerValue, bubbleInput, rovingFocusGroupAttrs, frameAttrs, isFormControl, native } = (0, import_radio_headless.useRadioGroupItem)({
|
|
25697
25703
|
radioGroupContext: RadioGroupContext,
|
|
25698
|
-
value,
|
|
25704
|
+
value: value2,
|
|
25699
25705
|
id,
|
|
25700
25706
|
labelledBy,
|
|
25701
25707
|
disabled,
|
|
@@ -25891,7 +25897,7 @@ var require_Separator_native = __commonJS({
|
|
|
25891
25897
|
}
|
|
25892
25898
|
});
|
|
25893
25899
|
module2.exports = __toCommonJS2(Separator_exports);
|
|
25894
|
-
var import_constants4 =
|
|
25900
|
+
var import_constants4 = require_index_native(), import_core12 = require_index_native20(), Separator = (0, import_core12.styled)(import_core12.Stack, {
|
|
25895
25901
|
name: "Separator",
|
|
25896
25902
|
borderColor: "$borderColor",
|
|
25897
25903
|
flexShrink: 0,
|
|
@@ -26307,42 +26313,42 @@ var require_SelectItem_native = __commonJS({
|
|
|
26307
26313
|
}
|
|
26308
26314
|
});
|
|
26309
26315
|
module2.exports = __toCommonJS2(SelectItem_exports);
|
|
26310
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
26311
|
-
var { scope, value, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
|
|
26316
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_list_item = require_index_native55(), import_core12 = require_index_native20(), React4 = __toESM2(require("react")), import_context = require_context_native2(), ITEM_NAME = "SelectItem", { Provider: SelectItemContextProvider, useStyledContext: useSelectItemContext } = (0, import_core12.createStyledContext)(null, ITEM_NAME), SelectItem = import_list_item.ListItemFrame.styleable(function(props, forwardedRef) {
|
|
26317
|
+
var { scope, value: value2, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
|
|
26312
26318
|
...!props.unstyled && {
|
|
26313
26319
|
ellipse: !0
|
|
26314
26320
|
},
|
|
26315
26321
|
...restProps
|
|
26316
|
-
}), context = (0, import_context.useSelectItemParentContext)(scope), { setSelectedIndex, listRef, setOpen, onChange, activeIndexSubscribe, valueSubscribe, allowMouseUpRef, allowSelectRef, setValueAtIndex, selectTimeoutRef, dataRef, interactions, shouldRenderWebNative, size: size2, onActiveChange, initialValue } = context, [isSelected, setSelected] = React4.useState(initialValue ===
|
|
26322
|
+
}), context = (0, import_context.useSelectItemParentContext)(scope), { setSelectedIndex, listRef, setOpen, onChange, activeIndexSubscribe, valueSubscribe, allowMouseUpRef, allowSelectRef, setValueAtIndex, selectTimeoutRef, dataRef, interactions, shouldRenderWebNative, size: size2, onActiveChange, initialValue } = context, [isSelected, setSelected] = React4.useState(initialValue === value2);
|
|
26317
26323
|
React4.useEffect(function() {
|
|
26318
26324
|
return activeIndexSubscribe(function(i) {
|
|
26319
26325
|
var isActive = index === i;
|
|
26320
26326
|
if (isActive) {
|
|
26321
26327
|
var _listRef_current_index;
|
|
26322
|
-
onActiveChange(
|
|
26328
|
+
onActiveChange(value2, index), listRef == null || (_listRef_current_index = listRef.current[index]) === null || _listRef_current_index === void 0 || _listRef_current_index.focus();
|
|
26323
26329
|
}
|
|
26324
26330
|
});
|
|
26325
26331
|
}, [
|
|
26326
26332
|
index
|
|
26327
26333
|
]), React4.useEffect(function() {
|
|
26328
26334
|
return valueSubscribe(function(val) {
|
|
26329
|
-
setSelected(val ===
|
|
26335
|
+
setSelected(val === value2);
|
|
26330
26336
|
});
|
|
26331
26337
|
}, [
|
|
26332
|
-
|
|
26338
|
+
value2
|
|
26333
26339
|
]);
|
|
26334
26340
|
var textId = React4.useId(), refCallback = React4.useCallback(function(node) {
|
|
26335
26341
|
import_constants4.isWeb && node instanceof HTMLElement && listRef && (listRef.current[index] = node);
|
|
26336
26342
|
}, []), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, refCallback);
|
|
26337
26343
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
26338
|
-
setValueAtIndex(index,
|
|
26344
|
+
setValueAtIndex(index, value2);
|
|
26339
26345
|
}, [
|
|
26340
26346
|
index,
|
|
26341
26347
|
setValueAtIndex,
|
|
26342
|
-
|
|
26348
|
+
value2
|
|
26343
26349
|
]);
|
|
26344
26350
|
function handleSelect() {
|
|
26345
|
-
setSelectedIndex(index), onChange(
|
|
26351
|
+
setSelectedIndex(index), onChange(value2), setOpen(!1);
|
|
26346
26352
|
}
|
|
26347
26353
|
var selectItemProps = React4.useMemo(function() {
|
|
26348
26354
|
return interactions ? interactions.getItemProps({
|
|
@@ -26371,11 +26377,11 @@ var require_SelectItem_native = __commonJS({
|
|
|
26371
26377
|
]);
|
|
26372
26378
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemContextProvider, {
|
|
26373
26379
|
scope,
|
|
26374
|
-
value,
|
|
26380
|
+
value: value2,
|
|
26375
26381
|
textId: textId || "",
|
|
26376
26382
|
isSelected,
|
|
26377
26383
|
children: shouldRenderWebNative ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("option", {
|
|
26378
|
-
value,
|
|
26384
|
+
value: value2,
|
|
26379
26385
|
children: props.children
|
|
26380
26386
|
}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItemFrame, {
|
|
26381
26387
|
tag: "div",
|
|
@@ -26901,7 +26907,7 @@ var require_Select_native = __commonJS({
|
|
|
26901
26907
|
}
|
|
26902
26908
|
});
|
|
26903
26909
|
module2.exports = __toCommonJS2(Select_exports);
|
|
26904
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_compose_refs = require_index_native11(), import_constants4 =
|
|
26910
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_focus_scope = require_index_native34(), import_focusable2 = require_index_native47(), import_get_token2 = require_index_native22(), import_helpers = require_index_native7(), import_list_item = require_index_native55(), import_separator = require_index_native64(), import_sheet = require_index_native37(), import_stacks3 = require_index_native24(), import_text2 = require_index_native26(), import_use_controllable_state = require_index_native10(), import_use_debounce = require_index_native65(), 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, {
|
|
26905
26911
|
name: VALUE_NAME,
|
|
26906
26912
|
userSelect: "none"
|
|
26907
26913
|
}), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
|
|
@@ -27079,9 +27085,9 @@ var require_Select_native = __commonJS({
|
|
|
27079
27085
|
function useEmitter() {
|
|
27080
27086
|
var listeners = React4.useRef(null);
|
|
27081
27087
|
listeners.current || (listeners.current = /* @__PURE__ */ new Set());
|
|
27082
|
-
var emit = function(
|
|
27088
|
+
var emit = function(value2) {
|
|
27083
27089
|
listeners.current.forEach(function(l) {
|
|
27084
|
-
return l(
|
|
27090
|
+
return l(value2);
|
|
27085
27091
|
});
|
|
27086
27092
|
}, subscribe = React4.useCallback(function(listener) {
|
|
27087
27093
|
return listeners.current.add(listener), function() {
|
|
@@ -27100,25 +27106,25 @@ var require_Select_native = __commonJS({
|
|
|
27100
27106
|
prop: openProp,
|
|
27101
27107
|
defaultProp: defaultOpen || !1,
|
|
27102
27108
|
onChange: onOpenChange
|
|
27103
|
-
}), [
|
|
27109
|
+
}), [value2, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
27104
27110
|
prop: valueProp,
|
|
27105
27111
|
defaultProp: defaultValue || "",
|
|
27106
27112
|
onChange: onValueChange,
|
|
27107
27113
|
transition: !0
|
|
27108
27114
|
});
|
|
27109
27115
|
React4.useEffect(function() {
|
|
27110
|
-
open && emitValue(
|
|
27116
|
+
open && emitValue(value2);
|
|
27111
27117
|
}, [
|
|
27112
27118
|
open
|
|
27113
27119
|
]), React4.useEffect(function() {
|
|
27114
|
-
emitValue(
|
|
27120
|
+
emitValue(value2);
|
|
27115
27121
|
}, [
|
|
27116
|
-
|
|
27122
|
+
value2
|
|
27117
27123
|
]), React4.useEffect(function() {
|
|
27118
27124
|
if (props.id) return (0, import_focusable2.registerFocusable)(props.id, {
|
|
27119
27125
|
focusAndSelect: function() {
|
|
27120
|
-
setOpen == null || setOpen(function(
|
|
27121
|
-
return !
|
|
27126
|
+
setOpen == null || setOpen(function(value22) {
|
|
27127
|
+
return !value22;
|
|
27122
27128
|
});
|
|
27123
27129
|
},
|
|
27124
27130
|
focus: function() {
|
|
@@ -27141,7 +27147,7 @@ var require_Select_native = __commonJS({
|
|
|
27141
27147
|
scope,
|
|
27142
27148
|
adaptScope,
|
|
27143
27149
|
initialValue: React4.useMemo(function() {
|
|
27144
|
-
return
|
|
27150
|
+
return value2;
|
|
27145
27151
|
}, [
|
|
27146
27152
|
open
|
|
27147
27153
|
]),
|
|
@@ -27153,12 +27159,12 @@ var require_Select_native = __commonJS({
|
|
|
27153
27159
|
onChange: React4.useCallback(function(val) {
|
|
27154
27160
|
setValue(val), emitValue(val);
|
|
27155
27161
|
}, []),
|
|
27156
|
-
onActiveChange: (0, import_core12.useEvent)(function(
|
|
27157
|
-
onActiveChange == null || onActiveChange(
|
|
27162
|
+
onActiveChange: (0, import_core12.useEvent)(function(value22, index) {
|
|
27163
|
+
onActiveChange == null || onActiveChange(value22, index);
|
|
27158
27164
|
}),
|
|
27159
27165
|
setSelectedIndex,
|
|
27160
|
-
setValueAtIndex: React4.useCallback(function(index,
|
|
27161
|
-
listContentRef.current[index] =
|
|
27166
|
+
setValueAtIndex: React4.useCallback(function(index, value22) {
|
|
27167
|
+
listContentRef.current[index] = value22;
|
|
27162
27168
|
}, []),
|
|
27163
27169
|
shouldRenderWebNative,
|
|
27164
27170
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_context.SelectProvider, {
|
|
@@ -27177,7 +27183,7 @@ var require_Select_native = __commonJS({
|
|
|
27177
27183
|
activeIndex,
|
|
27178
27184
|
selectedIndex,
|
|
27179
27185
|
setActiveIndex: setActiveIndexDebounced,
|
|
27180
|
-
value,
|
|
27186
|
+
value: value2,
|
|
27181
27187
|
open,
|
|
27182
27188
|
native,
|
|
27183
27189
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectSheetController, {
|
|
@@ -27189,7 +27195,7 @@ var require_Select_native = __commonJS({
|
|
|
27189
27195
|
selectedIndexRef,
|
|
27190
27196
|
...props,
|
|
27191
27197
|
open,
|
|
27192
|
-
value,
|
|
27198
|
+
value: value2,
|
|
27193
27199
|
children
|
|
27194
27200
|
})
|
|
27195
27201
|
})
|
|
@@ -27417,9 +27423,9 @@ var require_helpers_native3 = __commonJS({
|
|
|
27417
27423
|
return a - b;
|
|
27418
27424
|
});
|
|
27419
27425
|
}
|
|
27420
|
-
function convertValueToPercentage(
|
|
27426
|
+
function convertValueToPercentage(value2, min, max) {
|
|
27421
27427
|
var maxSteps = max - min, percentPerStep = 100 / maxSteps;
|
|
27422
|
-
return percentPerStep * (
|
|
27428
|
+
return percentPerStep * (value2 - min);
|
|
27423
27429
|
}
|
|
27424
27430
|
function getLabel(index, totalValues) {
|
|
27425
27431
|
if (totalValues > 2) return `Value ${index + 1} of ${totalValues}`;
|
|
@@ -27430,8 +27436,8 @@ var require_helpers_native3 = __commonJS({
|
|
|
27430
27436
|
}
|
|
27431
27437
|
function getClosestValueIndex(values, nextValue) {
|
|
27432
27438
|
if (values.length === 1) return 0;
|
|
27433
|
-
var distances = values.map(function(
|
|
27434
|
-
return Math.abs(
|
|
27439
|
+
var distances = values.map(function(value2) {
|
|
27440
|
+
return Math.abs(value2 - nextValue);
|
|
27435
27441
|
}), closestDistance = Math.min(...distances);
|
|
27436
27442
|
return distances.indexOf(closestDistance);
|
|
27437
27443
|
}
|
|
@@ -27446,8 +27452,8 @@ var require_helpers_native3 = __commonJS({
|
|
|
27446
27452
|
return (quarterWidth - offset2(left) * direction) * direction;
|
|
27447
27453
|
}
|
|
27448
27454
|
function getStepsBetweenValues(values) {
|
|
27449
|
-
return values.slice(0, -1).map(function(
|
|
27450
|
-
return values[index + 1] -
|
|
27455
|
+
return values.slice(0, -1).map(function(value2, index) {
|
|
27456
|
+
return values[index + 1] - value2;
|
|
27451
27457
|
});
|
|
27452
27458
|
}
|
|
27453
27459
|
function hasMinStepsBetweenValues(values, minStepsBetweenValues) {
|
|
@@ -27458,18 +27464,18 @@ var require_helpers_native3 = __commonJS({
|
|
|
27458
27464
|
return !0;
|
|
27459
27465
|
}
|
|
27460
27466
|
function linearScale(input, output) {
|
|
27461
|
-
return function(
|
|
27467
|
+
return function(value2) {
|
|
27462
27468
|
if (input[0] === input[1] || output[0] === output[1]) return output[0];
|
|
27463
27469
|
var ratio = (output[1] - output[0]) / (input[1] - input[0]);
|
|
27464
|
-
return output[0] + ratio * (
|
|
27470
|
+
return output[0] + ratio * (value2 - input[0]);
|
|
27465
27471
|
};
|
|
27466
27472
|
}
|
|
27467
|
-
function getDecimalCount(
|
|
27468
|
-
return (String(
|
|
27473
|
+
function getDecimalCount(value2) {
|
|
27474
|
+
return (String(value2).split(".")[1] || "").length;
|
|
27469
27475
|
}
|
|
27470
|
-
function roundValue(
|
|
27476
|
+
function roundValue(value2, decimalCount) {
|
|
27471
27477
|
var rounder = Math.pow(10, decimalCount);
|
|
27472
|
-
return Math.round(
|
|
27478
|
+
return Math.round(value2 * rounder) / rounder;
|
|
27473
27479
|
}
|
|
27474
27480
|
}
|
|
27475
27481
|
});
|
|
@@ -27532,7 +27538,7 @@ var require_SliderImpl_native = __commonJS({
|
|
|
27532
27538
|
}
|
|
27533
27539
|
});
|
|
27534
27540
|
module2.exports = __toCommonJS2(SliderImpl_exports);
|
|
27535
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 =
|
|
27541
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_get_token2 = require_index_native22(), import_helpers = require_index_native7(), import_stacks3 = require_index_native24(), React4 = __toESM2(require("react")), import_constants22 = require_constants_native6(), SliderFrame2 = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
27536
27542
|
position: "relative",
|
|
27537
27543
|
variants: {
|
|
27538
27544
|
orientation: {
|
|
@@ -27682,7 +27688,7 @@ var require_Slider_native = __commonJS({
|
|
|
27682
27688
|
}
|
|
27683
27689
|
});
|
|
27684
27690
|
module2.exports = __toCommonJS2(Slider_exports);
|
|
27685
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
27691
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_core12 = require_index_native20(), import_get_token2 = require_index_native22(), import_helpers = require_index_native7(), import_helpers2 = require_index_native7(), import_stacks3 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native27(), React4 = __toESM2(require("react")), import_constants22 = require_constants_native6(), import_helpers3 = require_helpers_native3(), import_SliderImpl = require_SliderImpl_native(), activeSliderMeasureListeners = /* @__PURE__ */ new Set();
|
|
27686
27692
|
import_constants4.isWeb && import_constants4.isClient && !process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL && ((_setInterval = setInterval) === null || _setInterval === void 0 || _setInterval(
|
|
27687
27693
|
function() {
|
|
27688
27694
|
activeSliderMeasureListeners.forEach(function(cb) {
|
|
@@ -27709,8 +27715,8 @@ var require_Slider_native = __commonJS({
|
|
|
27709
27715
|
] : [
|
|
27710
27716
|
max,
|
|
27711
27717
|
min
|
|
27712
|
-
],
|
|
27713
|
-
return
|
|
27718
|
+
], value2 = (0, import_helpers3.linearScale)(input, output);
|
|
27719
|
+
return value2(pointerPosition);
|
|
27714
27720
|
}
|
|
27715
27721
|
var measure = function() {
|
|
27716
27722
|
var _sliderRef_current;
|
|
@@ -27758,16 +27764,16 @@ var require_Slider_native = __commonJS({
|
|
|
27758
27764
|
orientation: "horizontal",
|
|
27759
27765
|
onLayout: measure,
|
|
27760
27766
|
onSlideStart: function(event, target) {
|
|
27761
|
-
var
|
|
27762
|
-
|
|
27767
|
+
var value2 = getValueFromPointer(event.nativeEvent.locationX);
|
|
27768
|
+
value2 && (onSlideStart == null || onSlideStart(value2, target, event));
|
|
27763
27769
|
},
|
|
27764
27770
|
onSlideMove: function(event) {
|
|
27765
|
-
var
|
|
27766
|
-
|
|
27771
|
+
var value2 = getValueFromPointer(event.nativeEvent.pageX - state.offset);
|
|
27772
|
+
value2 && (onSlideMove == null || onSlideMove(value2, event));
|
|
27767
27773
|
},
|
|
27768
27774
|
onSlideEnd: function(event) {
|
|
27769
|
-
var
|
|
27770
|
-
|
|
27775
|
+
var value2 = getValueFromPointer(event.nativeEvent.pageX - state.offset);
|
|
27776
|
+
value2 && (onSlideEnd == null || onSlideEnd(event, value2));
|
|
27771
27777
|
},
|
|
27772
27778
|
onStepKeyDown: function(event) {
|
|
27773
27779
|
var isBackKey = import_constants22.BACK_KEYS[direction].includes(event.key);
|
|
@@ -27804,8 +27810,8 @@ var require_Slider_native = __commonJS({
|
|
|
27804
27810
|
], output = [
|
|
27805
27811
|
max,
|
|
27806
27812
|
min
|
|
27807
|
-
],
|
|
27808
|
-
return
|
|
27813
|
+
], value2 = (0, import_helpers3.linearScale)(input, output);
|
|
27814
|
+
return value2(pointerPosition);
|
|
27809
27815
|
}
|
|
27810
27816
|
var measure = function() {
|
|
27811
27817
|
var _sliderRef_current;
|
|
@@ -27829,16 +27835,16 @@ var require_Slider_native = __commonJS({
|
|
|
27829
27835
|
orientation: "vertical",
|
|
27830
27836
|
onLayout: measure,
|
|
27831
27837
|
onSlideStart: function(event, target) {
|
|
27832
|
-
var
|
|
27833
|
-
|
|
27838
|
+
var value2 = getValueFromPointer(event.nativeEvent.locationY);
|
|
27839
|
+
value2 && (onSlideStart == null || onSlideStart(value2, target, event));
|
|
27834
27840
|
},
|
|
27835
27841
|
onSlideMove: function(event) {
|
|
27836
|
-
var
|
|
27837
|
-
|
|
27842
|
+
var value2 = getValueFromPointer(event.nativeEvent.pageY - state.offset);
|
|
27843
|
+
value2 && (onSlideMove == null || onSlideMove(value2, event));
|
|
27838
27844
|
},
|
|
27839
27845
|
onSlideEnd: function(event) {
|
|
27840
|
-
var
|
|
27841
|
-
onSlideEnd == null || onSlideEnd(event,
|
|
27846
|
+
var value2 = getValueFromPointer(event.nativeEvent.pageY - state.offset);
|
|
27847
|
+
onSlideEnd == null || onSlideEnd(event, value2);
|
|
27842
27848
|
},
|
|
27843
27849
|
onStepKeyDown: function(event) {
|
|
27844
27850
|
var isBackKey = import_constants22.BACK_KEYS.ltr.includes(event.key);
|
|
@@ -27884,8 +27890,8 @@ var require_Slider_native = __commonJS({
|
|
|
27884
27890
|
position: "absolute",
|
|
27885
27891
|
pointerEvents: "box-none"
|
|
27886
27892
|
}), SliderTrackActive = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
27887
|
-
var { __scopeSlider, ...rangeProps } = props, context = (0, import_constants22.useSliderContext)(__scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(__scopeSlider), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), valuesCount = context.values.length, percentages = context.values.map(function(
|
|
27888
|
-
return (0, import_helpers3.convertValueToPercentage)(
|
|
27893
|
+
var { __scopeSlider, ...rangeProps } = props, context = (0, import_constants22.useSliderContext)(__scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(__scopeSlider), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), valuesCount = context.values.length, percentages = context.values.map(function(value2) {
|
|
27894
|
+
return (0, import_helpers3.convertValueToPercentage)(value2, context.min, context.max);
|
|
27889
27895
|
}), offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0, offsetEnd = 100 - Math.max(...percentages);
|
|
27890
27896
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SliderTrackActiveFrame, {
|
|
27891
27897
|
orientation: context.orientation,
|
|
@@ -27943,7 +27949,7 @@ var require_Slider_native = __commonJS({
|
|
|
27943
27949
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
27944
27950
|
}
|
|
27945
27951
|
}), SliderThumb = SliderThumbFrame.styleable(function(props, forwardedRef) {
|
|
27946
|
-
var { __scopeSlider, index, circular, size: sizeProp, ...thumbProps } = props, context = (0, import_constants22.useSliderContext)(__scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(__scopeSlider), [thumb, setThumb] = React4.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, setThumb),
|
|
27952
|
+
var { __scopeSlider, index, circular, size: sizeProp, ...thumbProps } = props, context = (0, import_constants22.useSliderContext)(__scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(__scopeSlider), [thumb, setThumb] = React4.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, setThumb), value2 = context.values[index], percent = value2 === void 0 ? 0 : (0, import_helpers3.convertValueToPercentage)(value2, context.min, context.max), label = (0, import_helpers3.getLabel)(index, context.values.length), _ref, sizeIn = (_ref = sizeProp ?? context.size) !== null && _ref !== void 0 ? _ref : "$true", [size2, setSize] = React4.useState(function() {
|
|
27947
27953
|
var estimatedSize = (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width);
|
|
27948
27954
|
return estimatedSize;
|
|
27949
27955
|
}), thumbInBoundsOffset = size2 ? (0, import_helpers3.getThumbInBoundsOffset)(size2, percent, orientation.direction) : 0;
|
|
@@ -27978,7 +27984,7 @@ var require_Slider_native = __commonJS({
|
|
|
27978
27984
|
role: "slider",
|
|
27979
27985
|
"aria-label": props["aria-label"] || label,
|
|
27980
27986
|
"aria-valuemin": context.min,
|
|
27981
|
-
"aria-valuenow":
|
|
27987
|
+
"aria-valuenow": value2,
|
|
27982
27988
|
"aria-valuemax": context.max,
|
|
27983
27989
|
"aria-orientation": context.orientation,
|
|
27984
27990
|
"data-orientation": context.orientation,
|
|
@@ -28017,13 +28023,13 @@ var require_Slider_native = __commonJS({
|
|
|
28017
28023
|
}), SliderComponent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
28018
28024
|
var { name, min = 0, max = 100, step = 1, orientation = "horizontal", disabled = !1, minStepsBetweenThumbs = 0, defaultValue = [
|
|
28019
28025
|
min
|
|
28020
|
-
], value, onValueChange = function() {
|
|
28026
|
+
], value: value2, onValueChange = function() {
|
|
28021
28027
|
}, size: sizeProp, onSlideEnd, onSlideMove, onSlideStart, ...sliderProps } = props, sliderRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(sliderRef, forwardedRef), thumbRefs = React4.useRef(/* @__PURE__ */ new Map()), valueIndexToChangeRef = React4.useRef(0), isHorizontal = orientation === "horizontal", [values = [], setValues] = (0, import_use_controllable_state.useControllableState)({
|
|
28022
|
-
prop:
|
|
28028
|
+
prop: value2,
|
|
28023
28029
|
defaultProp: defaultValue,
|
|
28024
28030
|
transition: !0,
|
|
28025
|
-
onChange: function(
|
|
28026
|
-
updateThumbFocus(valueIndexToChangeRef.current), onValueChange(
|
|
28031
|
+
onChange: function(value22) {
|
|
28032
|
+
updateThumbFocus(valueIndexToChangeRef.current), onValueChange(value22);
|
|
28027
28033
|
}
|
|
28028
28034
|
});
|
|
28029
28035
|
import_constants4.isWeb && React4.useEffect(function() {
|
|
@@ -28059,11 +28065,11 @@ var require_Slider_native = __commonJS({
|
|
|
28059
28065
|
}
|
|
28060
28066
|
}
|
|
28061
28067
|
}
|
|
28062
|
-
function handleSlideMove(
|
|
28063
|
-
updateValues(
|
|
28068
|
+
function handleSlideMove(value22, event) {
|
|
28069
|
+
updateValues(value22, valueIndexToChangeRef.current), onSlideMove == null || onSlideMove(event, value22);
|
|
28064
28070
|
}
|
|
28065
|
-
function updateValues(
|
|
28066
|
-
var decimalCount = (0, import_helpers3.getDecimalCount)(step), snapToStep = (0, import_helpers3.roundValue)(Math.round((
|
|
28071
|
+
function updateValues(value22, atIndex) {
|
|
28072
|
+
var decimalCount = (0, import_helpers3.getDecimalCount)(step), snapToStep = (0, import_helpers3.roundValue)(Math.round((value22 - min) / step) * step + min, decimalCount), nextValue = (0, import_helpers2.clamp)(snapToStep, [
|
|
28067
28073
|
min,
|
|
28068
28074
|
max
|
|
28069
28075
|
]);
|
|
@@ -28091,12 +28097,12 @@ var require_Slider_native = __commonJS({
|
|
|
28091
28097
|
min,
|
|
28092
28098
|
max,
|
|
28093
28099
|
onSlideEnd,
|
|
28094
|
-
onSlideStart: disabled ? void 0 : function(
|
|
28100
|
+
onSlideStart: disabled ? void 0 : function(value22, target, event) {
|
|
28095
28101
|
if (target !== "thumb") {
|
|
28096
|
-
var closestIndex = (0, import_helpers3.getClosestValueIndex)(values,
|
|
28097
|
-
updateValues(
|
|
28102
|
+
var closestIndex = (0, import_helpers3.getClosestValueIndex)(values, value22);
|
|
28103
|
+
updateValues(value22, closestIndex);
|
|
28098
28104
|
}
|
|
28099
|
-
onSlideStart == null || onSlideStart(event,
|
|
28105
|
+
onSlideStart == null || onSlideStart(event, value22, target);
|
|
28100
28106
|
},
|
|
28101
28107
|
onSlideMove: disabled ? void 0 : handleSlideMove,
|
|
28102
28108
|
onHomeKeyDown: function() {
|
|
@@ -28108,8 +28114,8 @@ var require_Slider_native = __commonJS({
|
|
|
28108
28114
|
onStepKeyDown: function(param) {
|
|
28109
28115
|
var { event, direction: stepDirection } = param;
|
|
28110
28116
|
if (!disabled) {
|
|
28111
|
-
var isPageKey = import_constants22.PAGE_KEYS.includes(event.key), isSkipKey = isPageKey || event.shiftKey && import_constants22.ARROW_KEYS.includes(event.key), multiplier = isSkipKey ? 10 : 1, atIndex = valueIndexToChangeRef.current,
|
|
28112
|
-
updateValues(
|
|
28117
|
+
var isPageKey = import_constants22.PAGE_KEYS.includes(event.key), isSkipKey = isPageKey || event.shiftKey && import_constants22.ARROW_KEYS.includes(event.key), multiplier = isSkipKey ? 10 : 1, atIndex = valueIndexToChangeRef.current, value22 = values[atIndex], stepInDirection = step * multiplier * stepDirection;
|
|
28118
|
+
updateValues(value22 + stepInDirection, atIndex);
|
|
28113
28119
|
}
|
|
28114
28120
|
}
|
|
28115
28121
|
})
|
|
@@ -28232,7 +28238,7 @@ var require_useSwitch_native = __commonJS({
|
|
|
28232
28238
|
}
|
|
28233
28239
|
});
|
|
28234
28240
|
module2.exports = __toCommonJS2(useSwitch_exports);
|
|
28235
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
28241
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_helpers = require_index_native7(), import_label = require_index_native48(), import_use_previous = require_index_native49(), React4 = __toESM2(require("react"));
|
|
28236
28242
|
function useSwitch(props, param, ref) {
|
|
28237
28243
|
var [checked, setChecked] = param;
|
|
28238
28244
|
return {
|
|
@@ -28246,7 +28252,7 @@ var require_useSwitch_native = __commonJS({
|
|
|
28246
28252
|
switchRef: ref,
|
|
28247
28253
|
bubbleInput: null
|
|
28248
28254
|
};
|
|
28249
|
-
var disabled, name,
|
|
28255
|
+
var disabled, name, value2, required, hasConsumerStoppedPropagationRef, button, setButton, composedRefs, isFormControl, labelId, ariaLabelledBy;
|
|
28250
28256
|
}
|
|
28251
28257
|
}
|
|
28252
28258
|
});
|
|
@@ -28567,8 +28573,8 @@ var require_createSwitch_native = __commonJS({
|
|
|
28567
28573
|
React4.useEffect(function() {
|
|
28568
28574
|
if (props.id && !props.disabled) return (0, import_focusable2.registerFocusable)(props.id, {
|
|
28569
28575
|
focusAndSelect: function() {
|
|
28570
|
-
setChecked == null || setChecked(function(
|
|
28571
|
-
return !
|
|
28576
|
+
setChecked == null || setChecked(function(value22) {
|
|
28577
|
+
return !value22;
|
|
28572
28578
|
});
|
|
28573
28579
|
},
|
|
28574
28580
|
focus: function() {
|
|
@@ -28584,7 +28590,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
28584
28590
|
onValueChange: setChecked,
|
|
28585
28591
|
...nativeProps
|
|
28586
28592
|
});
|
|
28587
|
-
var disabled = props.disabled,
|
|
28593
|
+
var disabled = props.disabled, value2 = React4.useMemo(function() {
|
|
28588
28594
|
return {
|
|
28589
28595
|
checked,
|
|
28590
28596
|
disabled,
|
|
@@ -28599,7 +28605,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
28599
28605
|
next !== frameWidth && setFrameInnerWidth(next);
|
|
28600
28606
|
}, _styledContext_unstyled, _ref3, unstyled = (_ref3 = (_styledContext_unstyled = styledContext.unstyled) !== null && _styledContext_unstyled !== void 0 ? _styledContext_unstyled : props.unstyled) !== null && _ref3 !== void 0 ? _ref3 : !1, _styledContext_size, _ref4;
|
|
28601
28607
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(SwitchContext.Provider, {
|
|
28602
|
-
value,
|
|
28608
|
+
value: value2,
|
|
28603
28609
|
children: [
|
|
28604
28610
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, {
|
|
28605
28611
|
ref: switchRef,
|
|
@@ -28907,7 +28913,7 @@ var require_createTabs_native = __commonJS({
|
|
|
28907
28913
|
}
|
|
28908
28914
|
});
|
|
28909
28915
|
module2.exports = __toCommonJS2(createTabs_exports);
|
|
28910
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 =
|
|
28916
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native(), import_group = require_index_native53(), import_helpers = require_index_native7(), import_roving_focus = require_index_native62(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native27(), import_web = require_index_native15(), React4 = __toESM2(require("react")), import_Tabs = require_Tabs_native(), import_StyledContext = require_StyledContext_native2();
|
|
28911
28917
|
function createTabs(createProps) {
|
|
28912
28918
|
var { ContentFrame = import_Tabs.DefaultTabsContentFrame, TabFrame = import_Tabs.DefaultTabsTabFrame, TabsFrame = import_Tabs.DefaultTabsFrame } = createProps, TABS_CONTEXT = "TabsContext", TAB_LIST_NAME = "TabsList", TabsList = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
28913
28919
|
var { __scopeTabs, loop = !0, children, ...listProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs);
|
|
@@ -28930,7 +28936,7 @@ var require_createTabs_native = __commonJS({
|
|
|
28930
28936
|
});
|
|
28931
28937
|
TabsList.displayName = TAB_LIST_NAME;
|
|
28932
28938
|
var TRIGGER_NAME = "TabsTrigger", TabsTrigger = TabFrame.styleable(function(props, forwardedRef) {
|
|
28933
|
-
var { __scopeTabs, value, disabled = !1, onInteraction, disableActiveTheme, ...triggerProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs), triggerId = makeTriggerId(context.baseId,
|
|
28939
|
+
var { __scopeTabs, value: value2, disabled = !1, onInteraction, disableActiveTheme, ...triggerProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs), triggerId = makeTriggerId(context.baseId, value2), contentId = makeContentId(context.baseId, value2), isSelected = value2 === context.value, [layout, setLayout] = React4.useState(null), triggerRef = React4.useRef(null), groupItemProps = (0, import_group.useGroupItem)({
|
|
28934
28940
|
disabled: !!disabled
|
|
28935
28941
|
});
|
|
28936
28942
|
React4.useEffect(function() {
|
|
@@ -28958,7 +28964,7 @@ var require_createTabs_native = __commonJS({
|
|
|
28958
28964
|
isSelected && layout && (onInteraction == null || onInteraction("select", layout));
|
|
28959
28965
|
}, [
|
|
28960
28966
|
isSelected,
|
|
28961
|
-
|
|
28967
|
+
value2,
|
|
28962
28968
|
layout
|
|
28963
28969
|
]);
|
|
28964
28970
|
var _props_onPress;
|
|
@@ -28997,7 +29003,7 @@ var require_createTabs_native = __commonJS({
|
|
|
28997
29003
|
ref: (0, import_compose_refs.composeRefs)(forwardedRef, triggerRef),
|
|
28998
29004
|
onPress: (0, import_helpers.composeEventHandlers)((_props_onPress = props.onPress) !== null && _props_onPress !== void 0 ? _props_onPress : void 0, function(event) {
|
|
28999
29005
|
var webChecks = !import_constants4.isWeb || event.button === 0 && event.ctrlKey === !1;
|
|
29000
|
-
!disabled && !isSelected && webChecks ? context.onChange(
|
|
29006
|
+
!disabled && !isSelected && webChecks ? context.onChange(value2) : event.preventDefault();
|
|
29001
29007
|
}),
|
|
29002
29008
|
...import_constants4.isWeb && {
|
|
29003
29009
|
type: "button",
|
|
@@ -29005,12 +29011,12 @@ var require_createTabs_native = __commonJS({
|
|
|
29005
29011
|
[
|
|
29006
29012
|
" ",
|
|
29007
29013
|
"Enter"
|
|
29008
|
-
].includes(event.key) && (context.onChange(
|
|
29014
|
+
].includes(event.key) && (context.onChange(value2), event.preventDefault());
|
|
29009
29015
|
}),
|
|
29010
29016
|
onFocus: (0, import_helpers.composeEventHandlers)(props.onFocus, function(event) {
|
|
29011
29017
|
layout && (onInteraction == null || onInteraction("focus", layout));
|
|
29012
29018
|
var isAutomaticActivation = context.activationMode !== "manual";
|
|
29013
|
-
!isSelected && !disabled && isAutomaticActivation && context.onChange(
|
|
29019
|
+
!isSelected && !disabled && isAutomaticActivation && context.onChange(value2);
|
|
29014
29020
|
}),
|
|
29015
29021
|
onBlur: (0, import_helpers.composeEventHandlers)(props.onFocus, function() {
|
|
29016
29022
|
onInteraction == null || onInteraction("focus", null);
|
|
@@ -29022,7 +29028,7 @@ var require_createTabs_native = __commonJS({
|
|
|
29022
29028
|
});
|
|
29023
29029
|
TabsTrigger.displayName = TRIGGER_NAME;
|
|
29024
29030
|
var TabsContent = ContentFrame.styleable(function(props, forwardedRef) {
|
|
29025
|
-
var { __scopeTabs, value, forceMount, children, ...contentProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs), isSelected =
|
|
29031
|
+
var { __scopeTabs, value: value2, forceMount, children, ...contentProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs), isSelected = value2 === context.value, show = forceMount || isSelected, triggerId = makeTriggerId(context.baseId, value2), contentId = makeContentId(context.baseId, value2);
|
|
29026
29032
|
return show ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ContentFrame, {
|
|
29027
29033
|
"data-state": isSelected ? "active" : "inactive",
|
|
29028
29034
|
"data-orientation": context.orientation,
|
|
@@ -29035,9 +29041,9 @@ var require_createTabs_native = __commonJS({
|
|
|
29035
29041
|
...contentProps,
|
|
29036
29042
|
ref: forwardedRef,
|
|
29037
29043
|
children
|
|
29038
|
-
},
|
|
29044
|
+
}, value2) : null;
|
|
29039
29045
|
}), TabsComponent = TabsFrame.styleable(function(props, forwardedRef) {
|
|
29040
|
-
var { __scopeTabs, value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic", size: size2 = "$true", ...tabsProps } = props, direction = (0, import_use_direction.useDirection)(dir), [
|
|
29046
|
+
var { __scopeTabs, value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic", size: size2 = "$true", ...tabsProps } = props, direction = (0, import_use_direction.useDirection)(dir), [value2, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
29041
29047
|
prop: valueProp,
|
|
29042
29048
|
onChange: onValueChange,
|
|
29043
29049
|
defaultProp: defaultValue ?? ""
|
|
@@ -29053,7 +29059,7 @@ var require_createTabs_native = __commonJS({
|
|
|
29053
29059
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_StyledContext.TabsProvider, {
|
|
29054
29060
|
scope: __scopeTabs,
|
|
29055
29061
|
baseId: React4.useId(),
|
|
29056
|
-
value,
|
|
29062
|
+
value: value2,
|
|
29057
29063
|
onChange: setValue,
|
|
29058
29064
|
orientation,
|
|
29059
29065
|
dir: direction,
|
|
@@ -29081,11 +29087,11 @@ var require_createTabs_native = __commonJS({
|
|
|
29081
29087
|
Content: TabsContent
|
|
29082
29088
|
});
|
|
29083
29089
|
}
|
|
29084
|
-
function makeTriggerId(baseId,
|
|
29085
|
-
return `${baseId}-trigger-${
|
|
29090
|
+
function makeTriggerId(baseId, value2) {
|
|
29091
|
+
return `${baseId}-trigger-${value2}`;
|
|
29086
29092
|
}
|
|
29087
|
-
function makeContentId(baseId,
|
|
29088
|
-
return `${baseId}-content-${
|
|
29093
|
+
function makeContentId(baseId, value2) {
|
|
29094
|
+
return `${baseId}-content-${value2}`;
|
|
29089
29095
|
}
|
|
29090
29096
|
}
|
|
29091
29097
|
});
|
|
@@ -29192,7 +29198,7 @@ var require_mutateTheme_native = __commonJS({
|
|
|
29192
29198
|
}
|
|
29193
29199
|
});
|
|
29194
29200
|
module2.exports = __toCommonJS2(mutateTheme_exports);
|
|
29195
|
-
var import_constants4 =
|
|
29201
|
+
var import_constants4 = require_index_native(), import_start_transition = require_index_native9(), import_web = require_index_native15();
|
|
29196
29202
|
function mutateThemes2(param) {
|
|
29197
29203
|
var { themes, batch, insertCSS = !0, ...props } = param, allThemesProxied = {}, allThemesRaw = {}, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
29198
29204
|
try {
|
|
@@ -29715,7 +29721,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
29715
29721
|
}
|
|
29716
29722
|
});
|
|
29717
29723
|
module2.exports = __toCommonJS2(ToggleGroup_exports);
|
|
29718
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 =
|
|
29724
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_focusable2 = require_index_native47(), import_font_size = require_index_native43(), import_get_token2 = require_index_native22(), import_group = require_index_native53(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native44(), import_roving_focus = require_index_native62(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native27(), import_web = require_index_native15(), import_react3 = __toESM2(require("react")), import_Toggle = require_Toggle_native(), TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem", TOGGLE_GROUP_CONTEXT = "ToggleGroup", { Provider: ToggleGroupItemProvider, useStyledContext: useToggleGroupItemContext } = (0, import_web.createStyledContext)(), { Provider: ToggleGroupContext, useStyledContext: useToggleGroupContext } = (0, import_web.createStyledContext)(), ToggleGroupItem = import_Toggle.ToggleFrame.extractable(/* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
29719
29725
|
var [_, { color }] = (0, import_web.usePropsAndStyle)(props), { disablePassStyles, ...rest } = props, valueContext = useToggleGroupValueContext(props.__scopeToggleGroup), context = useToggleGroupContext(props.__scopeToggleGroup), pressed = valueContext == null ? void 0 : valueContext.value.includes(props.value), disabled = context.disabled || props.disabled || !1, groupItemProps = (0, import_group.useGroupItem)({
|
|
29720
29726
|
disabled
|
|
29721
29727
|
}), _props_size, size2 = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : context.size, sizeProps = props.unstyled ? {} : {
|
|
@@ -29754,7 +29760,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
29754
29760
|
}));
|
|
29755
29761
|
ToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;
|
|
29756
29762
|
var ToggleGroupItemImpl = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
29757
|
-
var { __scopeToggleGroup, value, ...itemProps } = props, valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
29763
|
+
var { __scopeToggleGroup, value: value2, ...itemProps } = props, valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
29758
29764
|
"aria-pressed": void 0
|
|
29759
29765
|
}, typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
29760
29766
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_Toggle.Toggle, {
|
|
@@ -29762,7 +29768,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
29762
29768
|
...itemProps,
|
|
29763
29769
|
ref: forwardedRef,
|
|
29764
29770
|
onPressedChange: function(pressed) {
|
|
29765
|
-
pressed ? valueContext.onItemActivate(
|
|
29771
|
+
pressed ? valueContext.onItemActivate(value2) : valueContext.onItemDeactivate(value2);
|
|
29766
29772
|
}
|
|
29767
29773
|
});
|
|
29768
29774
|
}), ToggleGroup = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
@@ -29797,7 +29803,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
29797
29803
|
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
29798
29804
|
var { Provider: ToggleGroupValueProvider, useStyledContext: useToggleGroupValueContext } = (0, import_web.createStyledContext)(), ToggleGroupImplSingle = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
29799
29805
|
var { value: valueProp, defaultValue, onValueChange = function() {
|
|
29800
|
-
}, disableDeactivation = !1, ...toggleGroupSingleProps } = props, [
|
|
29806
|
+
}, disableDeactivation = !1, ...toggleGroupSingleProps } = props, [value2, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
29801
29807
|
prop: valueProp,
|
|
29802
29808
|
defaultProp: defaultValue,
|
|
29803
29809
|
onChange: onValueChange
|
|
@@ -29805,10 +29811,10 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
29805
29811
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupValueProvider, {
|
|
29806
29812
|
scope: props.__scopeToggleGroup,
|
|
29807
29813
|
type: "single",
|
|
29808
|
-
value:
|
|
29809
|
-
|
|
29814
|
+
value: value2 ? [
|
|
29815
|
+
value2
|
|
29810
29816
|
] : [],
|
|
29811
|
-
defaultValue:
|
|
29817
|
+
defaultValue: value2,
|
|
29812
29818
|
onItemActivate: setValue,
|
|
29813
29819
|
onItemDeactivate: import_react3.default.useCallback(function() {
|
|
29814
29820
|
return disableDeactivation ? null : setValue("");
|
|
@@ -29823,7 +29829,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
29823
29829
|
});
|
|
29824
29830
|
}), ToggleGroupImplMultiple = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
29825
29831
|
var { value: valueProp, defaultValue, onValueChange = function() {
|
|
29826
|
-
}, disableDeactivation, ...toggleGroupMultipleProps } = props, [
|
|
29832
|
+
}, disableDeactivation, ...toggleGroupMultipleProps } = props, [value2 = [], setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
29827
29833
|
prop: valueProp,
|
|
29828
29834
|
defaultProp: defaultValue,
|
|
29829
29835
|
onChange: onValueChange
|
|
@@ -29840,8 +29846,8 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
29840
29846
|
]), handleButtonDeactivate = import_react3.default.useCallback(function(itemValue) {
|
|
29841
29847
|
return setValue(function() {
|
|
29842
29848
|
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
29843
|
-
return prevValue.filter(function(
|
|
29844
|
-
return
|
|
29849
|
+
return prevValue.filter(function(value22) {
|
|
29850
|
+
return value22 !== itemValue;
|
|
29845
29851
|
});
|
|
29846
29852
|
});
|
|
29847
29853
|
}, [
|
|
@@ -29850,8 +29856,8 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
29850
29856
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupValueProvider, {
|
|
29851
29857
|
scope: props.__scopeToggleGroup,
|
|
29852
29858
|
type: "multiple",
|
|
29853
|
-
value,
|
|
29854
|
-
defaultValue:
|
|
29859
|
+
value: value2,
|
|
29860
|
+
defaultValue: value2,
|
|
29855
29861
|
onItemActivate: handleButtonActivate,
|
|
29856
29862
|
onItemDeactivate: handleButtonDeactivate,
|
|
29857
29863
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupImpl, {
|
|
@@ -30299,7 +30305,7 @@ var require_index_native74 = __commonJS({
|
|
|
30299
30305
|
}
|
|
30300
30306
|
});
|
|
30301
30307
|
module2.exports = __toCommonJS2(index_exports2);
|
|
30302
|
-
var import_react3 = __toESM2(require("react")), import_constants4 =
|
|
30308
|
+
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native(), import_helpers = require_helpers_native4(), import_initialValue = require_initialValue_native(), import_initialValue2 = require_initialValue_native();
|
|
30303
30309
|
function useWindowDimensions() {
|
|
30304
30310
|
var { serverValue = import_initialValue.initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30305
30311
|
return import_react3.default.useSyncExternalStore(import_helpers.subscribe, import_helpers.getWindowSize, function() {
|
|
@@ -30508,7 +30514,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
30508
30514
|
__reExport(index_exports, __toESM(require_index_native28()), module.exports);
|
|
30509
30515
|
__reExport(index_exports, __toESM(require_index_native31()), module.exports);
|
|
30510
30516
|
__reExport(index_exports, __toESM(require_index_native39()), module.exports);
|
|
30511
|
-
__reExport(index_exports, __toESM(
|
|
30517
|
+
__reExport(index_exports, __toESM(require_index_native5()), module.exports);
|
|
30512
30518
|
__reExport(index_exports, __toESM(require_index_native42()), module.exports);
|
|
30513
30519
|
__reExport(index_exports, __toESM(require_index_native45()), module.exports);
|
|
30514
30520
|
__reExport(index_exports, __toESM(require_index_native46()), module.exports);
|
|
@@ -30545,7 +30551,7 @@ __reExport(index_exports, __toESM(require_index_native72()), module.exports);
|
|
|
30545
30551
|
__reExport(index_exports, __toESM(require_index_native73()), module.exports);
|
|
30546
30552
|
__reExport(index_exports, __toESM(require_index_native10()), module.exports);
|
|
30547
30553
|
__reExport(index_exports, __toESM(require_index_native65()), module.exports);
|
|
30548
|
-
__reExport(index_exports, __toESM(
|
|
30554
|
+
__reExport(index_exports, __toESM(require_index_native2()), module.exports);
|
|
30549
30555
|
__reExport(index_exports, __toESM(require_index_native74()), module.exports);
|
|
30550
30556
|
__reExport(index_exports, __toESM(require_index_native75()), module.exports);
|
|
30551
30557
|
|
|
@@ -30568,7 +30574,7 @@ var import_jsx_runtime = require("react/jsx-runtime"), import_core2 = __toESM(re
|
|
|
30568
30574
|
};
|
|
30569
30575
|
|
|
30570
30576
|
// src/views/Anchor.tsx
|
|
30571
|
-
var import_jsx_runtime2 = require("react/jsx-runtime"), import_constants = __toESM(
|
|
30577
|
+
var import_jsx_runtime2 = require("react/jsx-runtime"), import_constants = __toESM(require_index_native()), import_core3 = __toESM(require_index_native20()), import_text = __toESM(require_index_native26()), import_react_native = __toESM(require_fake_react_native()), AnchorFrame = (0, import_core3.styled)(import_text.SizableText, {
|
|
30572
30578
|
name: "Anchor",
|
|
30573
30579
|
tag: "a",
|
|
30574
30580
|
accessibilityRole: "link"
|
|
@@ -30618,7 +30624,7 @@ var import_core5 = __toESM(require_index_native20()), import_stacks = __toESM(re
|
|
|
30618
30624
|
});
|
|
30619
30625
|
|
|
30620
30626
|
// src/views/Input.tsx
|
|
30621
|
-
var import_jsx_runtime3 = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_constants2 = __toESM(
|
|
30627
|
+
var import_jsx_runtime3 = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_constants2 = __toESM(require_index_native()), import_core7 = __toESM(require_index_native20()), import_focusable = __toESM(require_index_native47()), import_react_native2 = __toESM(require_fake_react_native());
|
|
30622
30628
|
|
|
30623
30629
|
// src/helpers/inputHelpers.tsx
|
|
30624
30630
|
var import_core6 = __toESM(require_index_native20()), import_get_button_sized = __toESM(require_index_native23()), import_get_font_sized = __toESM(require_index_native25()), import_get_token = __toESM(require_index_native22()), inputSizeVariant = function() {
|
|
@@ -30757,7 +30763,7 @@ var import_jsx_runtime4 = require("react/jsx-runtime"), import_core8 = __toESM(r
|
|
|
30757
30763
|
}));
|
|
30758
30764
|
|
|
30759
30765
|
// src/views/TextArea.tsx
|
|
30760
|
-
var import_jsx_runtime5 = require("react/jsx-runtime"), import_react2 = __toESM(require("react")), import_constants3 = __toESM(
|
|
30766
|
+
var import_jsx_runtime5 = require("react/jsx-runtime"), import_react2 = __toESM(require("react")), import_constants3 = __toESM(require_index_native()), import_core9 = __toESM(require_index_native20());
|
|
30761
30767
|
var TextAreaFrame = (0, import_core9.styled)(InputFrame, {
|
|
30762
30768
|
name: "TextArea",
|
|
30763
30769
|
multiline: !0,
|