@tamagui/core 1.72.3 → 1.73.0
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 +525 -503
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +514 -486
- package/dist/test.native.js.map +3 -3
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -11,8 +11,8 @@ var __commonJS = (cb, mod) => function() {
|
|
|
11
11
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
12
|
};
|
|
13
13
|
var __export = (target, all) => {
|
|
14
|
-
for (var
|
|
15
|
-
__defProp(target,
|
|
14
|
+
for (var name2 in all)
|
|
15
|
+
__defProp(target, name2, { get: all[name2], enumerable: !0 });
|
|
16
16
|
}, __copyProps = (to, from, except, desc) => {
|
|
17
17
|
if (from && typeof from == "object" || typeof from == "function")
|
|
18
18
|
for (let key of __getOwnPropNames(from))
|
|
@@ -32,8 +32,8 @@ var require_utils_native = __commonJS({
|
|
|
32
32
|
"../react-native-use-responder-events/dist/cjs/utils.native.js"(exports, module2) {
|
|
33
33
|
"use strict";
|
|
34
34
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
35
|
-
for (var
|
|
36
|
-
__defProp2(target,
|
|
35
|
+
for (var name2 in all)
|
|
36
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
37
37
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
38
38
|
if (from && typeof from == "object" || typeof from == "function")
|
|
39
39
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -136,8 +136,8 @@ var require_createResponderEvent_native = __commonJS({
|
|
|
136
136
|
"../react-native-use-responder-events/dist/cjs/createResponderEvent.native.js"(exports, module2) {
|
|
137
137
|
"use strict";
|
|
138
138
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
139
|
-
for (var
|
|
140
|
-
__defProp2(target,
|
|
139
|
+
for (var name2 in all)
|
|
140
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
141
141
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
142
142
|
if (from && typeof from == "object" || typeof from == "function")
|
|
143
143
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -255,8 +255,8 @@ var require_types_native = __commonJS({
|
|
|
255
255
|
"../react-native-use-responder-events/dist/cjs/types.native.js"(exports, module2) {
|
|
256
256
|
"use strict";
|
|
257
257
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
258
|
-
for (var
|
|
259
|
-
__defProp2(target,
|
|
258
|
+
for (var name2 in all)
|
|
259
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
260
260
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
261
261
|
if (from && typeof from == "object" || typeof from == "function")
|
|
262
262
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -313,8 +313,8 @@ var require_ResponderTouchHistoryStore_native = __commonJS({
|
|
|
313
313
|
"../react-native-use-responder-events/dist/cjs/ResponderTouchHistoryStore.native.js"(exports, module2) {
|
|
314
314
|
"use strict";
|
|
315
315
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
316
|
-
for (var
|
|
317
|
-
__defProp2(target,
|
|
316
|
+
for (var name2 in all)
|
|
317
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
318
318
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
319
319
|
if (from && typeof from == "object" || typeof from == "function")
|
|
320
320
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -435,8 +435,8 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
435
435
|
"../react-native-use-responder-events/dist/cjs/ResponderSystem.native.js"(exports, module2) {
|
|
436
436
|
"use strict";
|
|
437
437
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
438
|
-
for (var
|
|
439
|
-
__defProp2(target,
|
|
438
|
+
for (var name2 in all)
|
|
439
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
440
440
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
441
441
|
if (from && typeof from == "object" || typeof from == "function")
|
|
442
442
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -642,8 +642,8 @@ var require_useResponderEvents_native = __commonJS({
|
|
|
642
642
|
"../react-native-use-responder-events/dist/cjs/useResponderEvents.native.js"(exports, module2) {
|
|
643
643
|
"use strict";
|
|
644
644
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
645
|
-
for (var
|
|
646
|
-
__defProp2(target,
|
|
645
|
+
for (var name2 in all)
|
|
646
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
647
647
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
648
648
|
if (from && typeof from == "object" || typeof from == "function")
|
|
649
649
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -707,8 +707,8 @@ var require_clamp_native = __commonJS({
|
|
|
707
707
|
"../helpers/dist/cjs/clamp.native.js"(exports, module2) {
|
|
708
708
|
"use strict";
|
|
709
709
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
710
|
-
for (var
|
|
711
|
-
__defProp2(target,
|
|
710
|
+
for (var name2 in all)
|
|
711
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
712
712
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
713
713
|
if (from && typeof from == "object" || typeof from == "function")
|
|
714
714
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -730,8 +730,8 @@ var require_composeEventHandlers_native = __commonJS({
|
|
|
730
730
|
"../helpers/dist/cjs/composeEventHandlers.native.js"(exports, module2) {
|
|
731
731
|
"use strict";
|
|
732
732
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
733
|
-
for (var
|
|
734
|
-
__defProp2(target,
|
|
733
|
+
for (var name2 in all)
|
|
734
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
735
735
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
736
736
|
if (from && typeof from == "object" || typeof from == "function")
|
|
737
737
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -757,8 +757,8 @@ var require_concatClassName_native = __commonJS({
|
|
|
757
757
|
"../helpers/dist/cjs/concatClassName.native.js"(exports, module2) {
|
|
758
758
|
"use strict";
|
|
759
759
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
760
|
-
for (var
|
|
761
|
-
__defProp2(target,
|
|
760
|
+
for (var name2 in all)
|
|
761
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
762
762
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
763
763
|
if (from && typeof from == "object" || typeof from == "function")
|
|
764
764
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -781,19 +781,19 @@ var require_concatClassName_native = __commonJS({
|
|
|
781
781
|
}
|
|
782
782
|
let names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length;
|
|
783
783
|
for (let i = numNames - 1; i >= 0; i--) {
|
|
784
|
-
let
|
|
785
|
-
if (!
|
|
784
|
+
let name2 = names[i];
|
|
785
|
+
if (!name2 || name2 === " ")
|
|
786
786
|
continue;
|
|
787
|
-
if (
|
|
788
|
-
final =
|
|
787
|
+
if (name2[0] !== "_") {
|
|
788
|
+
final = name2 + " " + final;
|
|
789
789
|
continue;
|
|
790
790
|
}
|
|
791
|
-
let splitIndex =
|
|
791
|
+
let splitIndex = name2.indexOf("-");
|
|
792
792
|
if (splitIndex < 1) {
|
|
793
|
-
final =
|
|
793
|
+
final = name2 + " " + final;
|
|
794
794
|
continue;
|
|
795
795
|
}
|
|
796
|
-
let isMediaQuery =
|
|
796
|
+
let isMediaQuery = name2[splitIndex + 1] === "_", styleKey = name2.slice(1, name2.lastIndexOf("-")), mediaKey = isMediaQuery ? name2.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
797
797
|
if (usedPrefixes.indexOf(uid) > -1)
|
|
798
798
|
continue;
|
|
799
799
|
usedPrefixes.push(uid);
|
|
@@ -804,7 +804,7 @@ var require_concatClassName_native = __commonJS({
|
|
|
804
804
|
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
805
805
|
}
|
|
806
806
|
return po && propName in po && po[propName] !== null;
|
|
807
|
-
}) || (final =
|
|
807
|
+
}) || (final = name2 + " " + final);
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
return final;
|
|
@@ -822,8 +822,8 @@ var require_index_native2 = __commonJS({
|
|
|
822
822
|
"../constants/dist/cjs/index.native.js"(exports, module2) {
|
|
823
823
|
"use strict";
|
|
824
824
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
825
|
-
for (var
|
|
826
|
-
__defProp2(target,
|
|
825
|
+
for (var name2 in all)
|
|
826
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
827
827
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
828
828
|
if (from && typeof from == "object" || typeof from == "function")
|
|
829
829
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -853,8 +853,8 @@ var require_validStyleProps_native = __commonJS({
|
|
|
853
853
|
"../helpers/dist/cjs/validStyleProps.native.js"(exports, module2) {
|
|
854
854
|
"use strict";
|
|
855
855
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
856
|
-
for (var
|
|
857
|
-
__defProp2(target,
|
|
856
|
+
for (var name2 in all)
|
|
857
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
858
858
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
859
859
|
if (from && typeof from == "object" || typeof from == "function")
|
|
860
860
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1079,8 +1079,8 @@ var require_index_native3 = __commonJS({
|
|
|
1079
1079
|
"../simple-hash/dist/cjs/index.native.js"(exports, module2) {
|
|
1080
1080
|
"use strict";
|
|
1081
1081
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1082
|
-
for (var
|
|
1083
|
-
__defProp2(target,
|
|
1082
|
+
for (var name2 in all)
|
|
1083
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1084
1084
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1085
1085
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1086
1086
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1144,8 +1144,8 @@ var require_config_native = __commonJS({
|
|
|
1144
1144
|
"../web/dist/cjs/config.native.js"(exports, module2) {
|
|
1145
1145
|
"use strict";
|
|
1146
1146
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1147
|
-
for (var
|
|
1148
|
-
__defProp2(target,
|
|
1147
|
+
for (var name2 in all)
|
|
1148
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1149
1149
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1150
1150
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1151
1151
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1173,10 +1173,10 @@ var require_config_native = __commonJS({
|
|
|
1173
1173
|
module2.exports = __toCommonJS2(config_exports);
|
|
1174
1174
|
var import_constants2 = require_index_native2(), conf, setConfig = (next) => {
|
|
1175
1175
|
conf = next, configListeners.forEach((cb) => cb(next));
|
|
1176
|
-
}, setConfigFont = (
|
|
1176
|
+
}, setConfigFont = (name2, font, fontParsed) => {
|
|
1177
1177
|
if (process.env.NODE_ENV === "development" && !conf)
|
|
1178
1178
|
throw new Error("Haven't called createTamagui yet");
|
|
1179
|
-
conf.fonts[
|
|
1179
|
+
conf.fonts[name2] = font, conf.fontsParsed[`$${name2}`] = fontParsed;
|
|
1180
1180
|
}, getConfig2 = () => {
|
|
1181
1181
|
if (!conf)
|
|
1182
1182
|
throw new Error(
|
|
@@ -1204,13 +1204,13 @@ var require_config_native = __commonJS({
|
|
|
1204
1204
|
conf ? cb(conf) : configListeners.add(cb);
|
|
1205
1205
|
}, updateConfig2 = (key, value) => {
|
|
1206
1206
|
Object.assign(conf[key], value);
|
|
1207
|
-
}, getFont = (
|
|
1207
|
+
}, getFont = (name2) => {
|
|
1208
1208
|
var _a;
|
|
1209
1209
|
let conf2 = getConfig2();
|
|
1210
|
-
return conf2.fontsParsed[
|
|
1210
|
+
return conf2.fontsParsed[name2] ?? ((_a = Object.entries(conf2.fontsParsed).find(
|
|
1211
1211
|
([k]) => {
|
|
1212
1212
|
var _a2, _b;
|
|
1213
|
-
return ((_b = (_a2 = conf2.fontsParsed[k]) == null ? void 0 : _a2.family) == null ? void 0 : _b.val) ===
|
|
1213
|
+
return ((_b = (_a2 = conf2.fontsParsed[k]) == null ? void 0 : _a2.family) == null ? void 0 : _b.val) === name2;
|
|
1214
1214
|
}
|
|
1215
1215
|
)) == null ? void 0 : _a[1]);
|
|
1216
1216
|
}, devConfig;
|
|
@@ -1225,8 +1225,8 @@ var require_createVariable_native = __commonJS({
|
|
|
1225
1225
|
"../web/dist/cjs/createVariable.native.js"(exports, module2) {
|
|
1226
1226
|
"use strict";
|
|
1227
1227
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1228
|
-
for (var
|
|
1229
|
-
__defProp2(target,
|
|
1228
|
+
for (var name2 in all)
|
|
1229
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1230
1230
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1231
1231
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1232
1232
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1249,13 +1249,13 @@ var require_createVariable_native = __commonJS({
|
|
|
1249
1249
|
var import_constants2 = require_index_native2(), import_helpers = require_index_native4(), import_config = require_config_native(), IS_VAR = "isVar", createVariable = (props, skipHash = !1) => {
|
|
1250
1250
|
if (!skipHash && isVariable(props))
|
|
1251
1251
|
return props;
|
|
1252
|
-
let { key, name, val } = props;
|
|
1252
|
+
let { key, name: name2, val } = props;
|
|
1253
1253
|
return {
|
|
1254
1254
|
[IS_VAR]: !0,
|
|
1255
1255
|
key,
|
|
1256
|
-
name: skipHash ? "" : (0, import_helpers.simpleHash)(
|
|
1256
|
+
name: skipHash ? "" : (0, import_helpers.simpleHash)(name2, 40),
|
|
1257
1257
|
val,
|
|
1258
|
-
variable: import_constants2.isWeb ? skipHash ? `var(--${
|
|
1258
|
+
variable: import_constants2.isWeb ? skipHash ? `var(--${name2})` : createCSSVariable(name2) : ""
|
|
1259
1259
|
};
|
|
1260
1260
|
};
|
|
1261
1261
|
function variableToString(vrble, getValue = !1) {
|
|
@@ -1283,8 +1283,8 @@ var require_createVariable_native = __commonJS({
|
|
|
1283
1283
|
var createCSSVariable = (nameProp, includeVar = !0) => {
|
|
1284
1284
|
if (process.env.NODE_ENV === "development" && (!nameProp || typeof nameProp != "string"))
|
|
1285
1285
|
throw new Error(`createCSSVariable expected string, got: ${nameProp}`);
|
|
1286
|
-
let
|
|
1287
|
-
return includeVar ? `var(--${
|
|
1286
|
+
let name2 = (0, import_helpers.simpleHash)(nameProp, 60);
|
|
1287
|
+
return includeVar ? `var(--${name2})` : name2;
|
|
1288
1288
|
};
|
|
1289
1289
|
}
|
|
1290
1290
|
});
|
|
@@ -1294,8 +1294,8 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1294
1294
|
"../web/dist/cjs/helpers/insertStyleRule.native.js"(exports, module2) {
|
|
1295
1295
|
"use strict";
|
|
1296
1296
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1297
|
-
for (var
|
|
1298
|
-
__defProp2(target,
|
|
1297
|
+
for (var name2 in all)
|
|
1298
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1299
1299
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1300
1300
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1301
1301
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1432,9 +1432,9 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1432
1432
|
theme: values
|
|
1433
1433
|
};
|
|
1434
1434
|
for (let selector of selectors) {
|
|
1435
|
-
let scheme = selector.includes("t_dark") ? "dark" : selector.includes("t_light") ? "light" : "",
|
|
1436
|
-
|
|
1437
|
-
let themeName = `${scheme}${scheme &&
|
|
1435
|
+
let scheme = selector.includes("t_dark") ? "dark" : selector.includes("t_light") ? "light" : "", name2 = selector.slice(selector.lastIndexOf(".t_") + 3);
|
|
1436
|
+
name2.startsWith(scheme) && (name2 = name2.slice(scheme.length + 1)), scheme === name2 && (scheme = "");
|
|
1437
|
+
let themeName = `${scheme}${scheme && name2 ? "_" : ""}${name2}`;
|
|
1438
1438
|
dedupedEntry.names.includes(themeName) || dedupedEntry.names.push(themeName);
|
|
1439
1439
|
}
|
|
1440
1440
|
return dedupedEntry;
|
|
@@ -1499,8 +1499,8 @@ var require_createProxy_native = __commonJS({
|
|
|
1499
1499
|
"../web/dist/cjs/helpers/createProxy.native.js"(exports, module2) {
|
|
1500
1500
|
"use strict";
|
|
1501
1501
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1502
|
-
for (var
|
|
1503
|
-
__defProp2(target,
|
|
1502
|
+
for (var name2 in all)
|
|
1503
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1504
1504
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1505
1505
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1506
1506
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1529,8 +1529,8 @@ var require_matchMedia_native = __commonJS({
|
|
|
1529
1529
|
"../web/dist/cjs/helpers/matchMedia.native.js"(exports, module2) {
|
|
1530
1530
|
"use strict";
|
|
1531
1531
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1532
|
-
for (var
|
|
1533
|
-
__defProp2(target,
|
|
1532
|
+
for (var name2 in all)
|
|
1533
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1534
1534
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1535
1535
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1536
1536
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1564,8 +1564,8 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
1564
1564
|
"../web/dist/cjs/helpers/pseudoDescriptors.native.js"(exports, module2) {
|
|
1565
1565
|
"use strict";
|
|
1566
1566
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1567
|
-
for (var
|
|
1568
|
-
__defProp2(target,
|
|
1567
|
+
for (var name2 in all)
|
|
1568
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1569
1569
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1570
1570
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1571
1571
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1612,13 +1612,159 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
1612
1612
|
}
|
|
1613
1613
|
});
|
|
1614
1614
|
|
|
1615
|
+
// ../web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
1616
|
+
var require_objectIdentityKey_native = __commonJS({
|
|
1617
|
+
"../web/dist/cjs/helpers/objectIdentityKey.native.js"(exports, module2) {
|
|
1618
|
+
"use strict";
|
|
1619
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1620
|
+
for (var name2 in all)
|
|
1621
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1622
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
1623
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
1624
|
+
for (let key of __getOwnPropNames2(from))
|
|
1625
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1626
|
+
return to;
|
|
1627
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), objectIdentityKey_exports = {};
|
|
1628
|
+
__export2(objectIdentityKey_exports, {
|
|
1629
|
+
objectIdentityKey: () => objectIdentityKey
|
|
1630
|
+
});
|
|
1631
|
+
module2.exports = __toCommonJS2(objectIdentityKey_exports);
|
|
1632
|
+
function objectIdentityKey(obj) {
|
|
1633
|
+
let k = "";
|
|
1634
|
+
for (let key in obj) {
|
|
1635
|
+
k += key;
|
|
1636
|
+
let arg = obj[key], type = typeof arg;
|
|
1637
|
+
if (!arg || type !== "object")
|
|
1638
|
+
k += type + arg;
|
|
1639
|
+
else if (cache.has(arg))
|
|
1640
|
+
k += cache.get(arg);
|
|
1641
|
+
else {
|
|
1642
|
+
let v = Math.random();
|
|
1643
|
+
cache.set(arg, v), k += v;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
return k;
|
|
1647
|
+
}
|
|
1648
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
|
|
1652
|
+
// ../web/dist/cjs/helpers/createStyledContext.native.js
|
|
1653
|
+
var require_createStyledContext_native = __commonJS({
|
|
1654
|
+
"../web/dist/cjs/helpers/createStyledContext.native.js"(exports, module2) {
|
|
1655
|
+
"use strict";
|
|
1656
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1657
|
+
for (var name2 in all)
|
|
1658
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1659
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
1660
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
1661
|
+
for (let key of __getOwnPropNames2(from))
|
|
1662
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1663
|
+
return to;
|
|
1664
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createStyledContext_exports = {};
|
|
1665
|
+
__export2(createStyledContext_exports, {
|
|
1666
|
+
createStyledContext: () => createStyledContext
|
|
1667
|
+
});
|
|
1668
|
+
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
1669
|
+
var import_react = require("react"), import_objectIdentityKey = require_objectIdentityKey_native(), import_jsx_runtime = require("react/jsx-runtime");
|
|
1670
|
+
function createStyledContext(defaultValues) {
|
|
1671
|
+
let OGContext = (0, import_react.createContext)(defaultValues), OGProvider = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map(), Provider = ({
|
|
1672
|
+
children,
|
|
1673
|
+
scope,
|
|
1674
|
+
...values
|
|
1675
|
+
}) => {
|
|
1676
|
+
let value = (0, import_react.useMemo)(() => ({
|
|
1677
|
+
// this ! is a workaround for ts error
|
|
1678
|
+
...defaultValues,
|
|
1679
|
+
...values
|
|
1680
|
+
}), [(0, import_objectIdentityKey.objectIdentityKey)(values)]), Provider2 = OGProvider;
|
|
1681
|
+
if (scope) {
|
|
1682
|
+
let ScopedContext = scopedContexts.get(scope);
|
|
1683
|
+
ScopedContext || (ScopedContext = (0, import_react.createContext)(defaultValues), scopedContexts.set(scope, ScopedContext)), Provider2 = ScopedContext.Provider;
|
|
1684
|
+
}
|
|
1685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider2, { value, children });
|
|
1686
|
+
}, useStyledContext = (scope) => {
|
|
1687
|
+
let context = scope ? scopedContexts.get(scope) : OGContext;
|
|
1688
|
+
return (0, import_react.useContext)(context);
|
|
1689
|
+
};
|
|
1690
|
+
return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
|
|
1695
|
+
// ../web/dist/cjs/contexts/ComponentContext.native.js
|
|
1696
|
+
var require_ComponentContext_native = __commonJS({
|
|
1697
|
+
"../web/dist/cjs/contexts/ComponentContext.native.js"(exports, module2) {
|
|
1698
|
+
"use strict";
|
|
1699
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1700
|
+
for (var name2 in all)
|
|
1701
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1702
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
1703
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
1704
|
+
for (let key of __getOwnPropNames2(from))
|
|
1705
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1706
|
+
return to;
|
|
1707
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), ComponentContext_exports = {};
|
|
1708
|
+
__export2(ComponentContext_exports, {
|
|
1709
|
+
ComponentContext: () => ComponentContext
|
|
1710
|
+
});
|
|
1711
|
+
module2.exports = __toCommonJS2(ComponentContext_exports);
|
|
1712
|
+
var import_createStyledContext = require_createStyledContext_native(), listeners = /* @__PURE__ */ new Set(), ComponentContext = (0, import_createStyledContext.createStyledContext)({
|
|
1713
|
+
disableSSR: void 0,
|
|
1714
|
+
inText: !1,
|
|
1715
|
+
language: null,
|
|
1716
|
+
animationDriver: null,
|
|
1717
|
+
groups: {
|
|
1718
|
+
emit: (name2, state) => {
|
|
1719
|
+
listeners.forEach((l) => l(name2, state));
|
|
1720
|
+
},
|
|
1721
|
+
subscribe(cb) {
|
|
1722
|
+
return listeners.add(cb), () => {
|
|
1723
|
+
listeners.delete(cb);
|
|
1724
|
+
};
|
|
1725
|
+
},
|
|
1726
|
+
state: {}
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
});
|
|
1731
|
+
|
|
1732
|
+
// ../web/dist/cjs/hooks/useDisableSSR.native.js
|
|
1733
|
+
var require_useDisableSSR_native = __commonJS({
|
|
1734
|
+
"../web/dist/cjs/hooks/useDisableSSR.native.js"(exports, module2) {
|
|
1735
|
+
"use strict";
|
|
1736
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1737
|
+
for (var name2 in all)
|
|
1738
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1739
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
1740
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
1741
|
+
for (let key of __getOwnPropNames2(from))
|
|
1742
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1743
|
+
return to;
|
|
1744
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), useDisableSSR_exports = {};
|
|
1745
|
+
__export2(useDisableSSR_exports, {
|
|
1746
|
+
getDisableSSR: () => getDisableSSR,
|
|
1747
|
+
useDisableSSR: () => useDisableSSR
|
|
1748
|
+
});
|
|
1749
|
+
module2.exports = __toCommonJS2(useDisableSSR_exports);
|
|
1750
|
+
var import_react = require("react"), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native();
|
|
1751
|
+
function useDisableSSR() {
|
|
1752
|
+
let componentContext = (0, import_react.useContext)(import_ComponentContext.ComponentContext);
|
|
1753
|
+
return getDisableSSR(componentContext);
|
|
1754
|
+
}
|
|
1755
|
+
function getDisableSSR(componentContext) {
|
|
1756
|
+
return componentContext.disableSSR ?? (0, import_config.getConfig)().disableSSR;
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
});
|
|
1760
|
+
|
|
1615
1761
|
// ../web/dist/cjs/hooks/useMedia.native.js
|
|
1616
1762
|
var require_useMedia_native = __commonJS({
|
|
1617
1763
|
"../web/dist/cjs/hooks/useMedia.native.js"(exports, module2) {
|
|
1618
1764
|
"use strict";
|
|
1619
1765
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1620
|
-
for (var
|
|
1621
|
-
__defProp2(target,
|
|
1766
|
+
for (var name2 in all)
|
|
1767
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1622
1768
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1623
1769
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1624
1770
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1627,7 +1773,6 @@ var require_useMedia_native = __commonJS({
|
|
|
1627
1773
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), useMedia_exports = {};
|
|
1628
1774
|
__export2(useMedia_exports, {
|
|
1629
1775
|
configureMedia: () => configureMedia2,
|
|
1630
|
-
getInitialMediaState: () => getInitialMediaState,
|
|
1631
1776
|
getMedia: () => getMedia2,
|
|
1632
1777
|
getMediaImportanceIfMoreImportant: () => getMediaImportanceIfMoreImportant,
|
|
1633
1778
|
getMediaKeyImportance: () => getMediaKeyImportance,
|
|
@@ -1645,7 +1790,7 @@ var require_useMedia_native = __commonJS({
|
|
|
1645
1790
|
useMediaListeners: () => useMediaListeners
|
|
1646
1791
|
});
|
|
1647
1792
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
1648
|
-
var import_constants2 = require_index_native2(), import_react = require("react"), import_config = require_config_native(), import_createProxy = require_createProxy_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mediaState2 = (
|
|
1793
|
+
var import_constants2 = require_index_native2(), import_react = require("react"), import_config = require_config_native(), import_createProxy = require_createProxy_native(), import_matchMedia = require_matchMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_useDisableSSR = require_useDisableSSR_native(), mediaState2 = (
|
|
1649
1794
|
// development only safeguard
|
|
1650
1795
|
process.env.NODE_ENV === "development" ? (0, import_createProxy.createProxy)(
|
|
1651
1796
|
{},
|
|
@@ -1658,7 +1803,7 @@ var require_useMedia_native = __commonJS({
|
|
|
1658
1803
|
}
|
|
1659
1804
|
}
|
|
1660
1805
|
) : {}
|
|
1661
|
-
), mediaQueryConfig2 = {}, getMedia2 = () => mediaState2, mediaKeys = /* @__PURE__ */ new Set(), isMediaKey = (key) => mediaKeys.has(key) || key[0] === "$" && (key.startsWith("$platform-") || key.startsWith("$theme-") || key.startsWith("$group-")), initState,
|
|
1806
|
+
), mediaQueryConfig2 = {}, getMedia2 = () => mediaState2, mediaKeys = /* @__PURE__ */ new Set(), isMediaKey = (key) => mediaKeys.has(key) || key[0] === "$" && (key.startsWith("$platform-") || key.startsWith("$theme-") || key.startsWith("$group-")), initState, defaultMediaImportance = Object.keys(import_pseudoDescriptors.pseudoDescriptors).length, mediaKeysOrdered, getMediaKeyImportance = (key) => {
|
|
1662
1807
|
if (process.env.NODE_ENV === "development" && key[0] === "$")
|
|
1663
1808
|
throw new Error("use short key");
|
|
1664
1809
|
return (0, import_config.getConfig)().settings.mediaPropOrder ? defaultMediaImportance : mediaKeysOrdered.indexOf(key) + 100;
|
|
@@ -1711,23 +1856,23 @@ var require_useMedia_native = __commonJS({
|
|
|
1711
1856
|
function subscribe(subscriber) {
|
|
1712
1857
|
return listeners.add(subscriber), () => listeners.delete(subscriber);
|
|
1713
1858
|
}
|
|
1714
|
-
function useMedia2(uid) {
|
|
1715
|
-
let internal = (0, import_react.useRef)(), state = (0, import_react.useSyncExternalStore)(
|
|
1859
|
+
function useMedia2(uid, componentContext) {
|
|
1860
|
+
let internal = (0, import_react.useRef)(), initialState = ((componentContext ? (0, import_useDisableSSR.getDisableSSR)(componentContext) : (0, import_useDisableSSR.useDisableSSR)()) ? mediaState2 : initState) || {}, state = (0, import_react.useSyncExternalStore)(
|
|
1716
1861
|
subscribe,
|
|
1717
1862
|
() => {
|
|
1718
1863
|
if (!internal.current)
|
|
1719
|
-
return
|
|
1864
|
+
return initialState;
|
|
1720
1865
|
let { touched, prev } = internal.current, componentState = uid ? shouldUpdate.get(uid) : void 0;
|
|
1721
1866
|
if (componentState && componentState.enabled === !1)
|
|
1722
1867
|
return prev;
|
|
1723
1868
|
let testKeys = (componentState == null ? void 0 : componentState.keys) ?? ((!componentState || componentState.enabled) && touched ? [...touched] : null);
|
|
1724
1869
|
return !testKeys || testKeys != null && testKeys.every((key) => mediaState2[key] === prev[key]) ? prev : (internal.current.prev = mediaState2, mediaState2);
|
|
1725
1870
|
},
|
|
1726
|
-
() =>
|
|
1871
|
+
() => initialState
|
|
1727
1872
|
);
|
|
1728
1873
|
return new Proxy(state, {
|
|
1729
1874
|
get(_, key) {
|
|
1730
|
-
return typeof key == "string" && (internal.current ||= { prev:
|
|
1875
|
+
return typeof key == "string" && (internal.current ||= { prev: initialState }, internal.current.touched ||= /* @__PURE__ */ new Set(), internal.current.touched.add(key)), Reflect.get(state, key);
|
|
1731
1876
|
}
|
|
1732
1877
|
});
|
|
1733
1878
|
}
|
|
@@ -1774,8 +1919,8 @@ var require_Tamagui_native = __commonJS({
|
|
|
1774
1919
|
"../web/dist/cjs/Tamagui.native.js"(exports, module2) {
|
|
1775
1920
|
"use strict";
|
|
1776
1921
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1777
|
-
for (var
|
|
1778
|
-
__defProp2(target,
|
|
1922
|
+
for (var name2 in all)
|
|
1923
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1779
1924
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1780
1925
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1781
1926
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1828,8 +1973,8 @@ var require_compose_refs_native = __commonJS({
|
|
|
1828
1973
|
"../compose-refs/dist/cjs/compose-refs.native.js"(exports, module2) {
|
|
1829
1974
|
"use strict";
|
|
1830
1975
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1831
|
-
for (var
|
|
1832
|
-
__defProp2(target,
|
|
1976
|
+
for (var name2 in all)
|
|
1977
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1833
1978
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1834
1979
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1835
1980
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1881,8 +2026,8 @@ var require_index_native6 = __commonJS({
|
|
|
1881
2026
|
"../use-did-finish-ssr/dist/cjs/index.native.js"(exports, module2) {
|
|
1882
2027
|
"use strict";
|
|
1883
2028
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1884
|
-
for (var
|
|
1885
|
-
__defProp2(target,
|
|
2029
|
+
for (var name2 in all)
|
|
2030
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1886
2031
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1887
2032
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1888
2033
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1909,8 +2054,8 @@ var require_constants_native = __commonJS({
|
|
|
1909
2054
|
"../web/dist/cjs/constants/constants.native.js"(exports, module2) {
|
|
1910
2055
|
"use strict";
|
|
1911
2056
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1912
|
-
for (var
|
|
1913
|
-
__defProp2(target,
|
|
2057
|
+
for (var name2 in all)
|
|
2058
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1914
2059
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1915
2060
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1916
2061
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1929,129 +2074,13 @@ var require_constants_native = __commonJS({
|
|
|
1929
2074
|
}
|
|
1930
2075
|
});
|
|
1931
2076
|
|
|
1932
|
-
// ../web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
1933
|
-
var require_objectIdentityKey_native = __commonJS({
|
|
1934
|
-
"../web/dist/cjs/helpers/objectIdentityKey.native.js"(exports, module2) {
|
|
1935
|
-
"use strict";
|
|
1936
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1937
|
-
for (var name in all)
|
|
1938
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
1939
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
1940
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
1941
|
-
for (let key of __getOwnPropNames2(from))
|
|
1942
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1943
|
-
return to;
|
|
1944
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), objectIdentityKey_exports = {};
|
|
1945
|
-
__export2(objectIdentityKey_exports, {
|
|
1946
|
-
objectIdentityKey: () => objectIdentityKey
|
|
1947
|
-
});
|
|
1948
|
-
module2.exports = __toCommonJS2(objectIdentityKey_exports);
|
|
1949
|
-
function objectIdentityKey(obj) {
|
|
1950
|
-
let k = "";
|
|
1951
|
-
for (let key in obj) {
|
|
1952
|
-
k += key;
|
|
1953
|
-
let arg = obj[key], type = typeof arg;
|
|
1954
|
-
if (!arg || type !== "object")
|
|
1955
|
-
k += type + arg;
|
|
1956
|
-
else if (cache.has(arg))
|
|
1957
|
-
k += cache.get(arg);
|
|
1958
|
-
else {
|
|
1959
|
-
let v = Math.random();
|
|
1960
|
-
cache.set(arg, v), k += v;
|
|
1961
|
-
}
|
|
1962
|
-
}
|
|
1963
|
-
return k;
|
|
1964
|
-
}
|
|
1965
|
-
var cache = /* @__PURE__ */ new WeakMap();
|
|
1966
|
-
}
|
|
1967
|
-
});
|
|
1968
|
-
|
|
1969
|
-
// ../web/dist/cjs/helpers/createStyledContext.native.js
|
|
1970
|
-
var require_createStyledContext_native = __commonJS({
|
|
1971
|
-
"../web/dist/cjs/helpers/createStyledContext.native.js"(exports, module2) {
|
|
1972
|
-
"use strict";
|
|
1973
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1974
|
-
for (var name in all)
|
|
1975
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
1976
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
1977
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
1978
|
-
for (let key of __getOwnPropNames2(from))
|
|
1979
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1980
|
-
return to;
|
|
1981
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createStyledContext_exports = {};
|
|
1982
|
-
__export2(createStyledContext_exports, {
|
|
1983
|
-
createStyledContext: () => createStyledContext
|
|
1984
|
-
});
|
|
1985
|
-
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
1986
|
-
var import_react = require("react"), import_objectIdentityKey = require_objectIdentityKey_native(), import_jsx_runtime = require("react/jsx-runtime");
|
|
1987
|
-
function createStyledContext(defaultValues) {
|
|
1988
|
-
let OGContext = (0, import_react.createContext)(defaultValues), OGProvider = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map(), Provider = ({
|
|
1989
|
-
children,
|
|
1990
|
-
scope,
|
|
1991
|
-
...values
|
|
1992
|
-
}) => {
|
|
1993
|
-
let value = (0, import_react.useMemo)(() => ({
|
|
1994
|
-
// this ! is a workaround for ts error
|
|
1995
|
-
...defaultValues,
|
|
1996
|
-
...values
|
|
1997
|
-
}), [(0, import_objectIdentityKey.objectIdentityKey)(values)]), Provider2 = OGProvider;
|
|
1998
|
-
if (scope) {
|
|
1999
|
-
let ScopedContext = scopedContexts.get(scope);
|
|
2000
|
-
ScopedContext || (ScopedContext = (0, import_react.createContext)(defaultValues), scopedContexts.set(scope, ScopedContext)), Provider2 = ScopedContext.Provider;
|
|
2001
|
-
}
|
|
2002
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider2, { value, children });
|
|
2003
|
-
}, useStyledContext = (scope) => {
|
|
2004
|
-
let context = scope ? scopedContexts.get(scope) : OGContext;
|
|
2005
|
-
return (0, import_react.useContext)(context);
|
|
2006
|
-
};
|
|
2007
|
-
return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
2010
|
-
});
|
|
2011
|
-
|
|
2012
|
-
// ../web/dist/cjs/contexts/ComponentContext.native.js
|
|
2013
|
-
var require_ComponentContext_native = __commonJS({
|
|
2014
|
-
"../web/dist/cjs/contexts/ComponentContext.native.js"(exports, module2) {
|
|
2015
|
-
"use strict";
|
|
2016
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2017
|
-
for (var name in all)
|
|
2018
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2019
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
2020
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
2021
|
-
for (let key of __getOwnPropNames2(from))
|
|
2022
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2023
|
-
return to;
|
|
2024
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), ComponentContext_exports = {};
|
|
2025
|
-
__export2(ComponentContext_exports, {
|
|
2026
|
-
ComponentContext: () => ComponentContext
|
|
2027
|
-
});
|
|
2028
|
-
module2.exports = __toCommonJS2(ComponentContext_exports);
|
|
2029
|
-
var import_createStyledContext = require_createStyledContext_native(), listeners = /* @__PURE__ */ new Set(), ComponentContext = (0, import_createStyledContext.createStyledContext)({
|
|
2030
|
-
inText: !1,
|
|
2031
|
-
language: null,
|
|
2032
|
-
animationDriver: null,
|
|
2033
|
-
groups: {
|
|
2034
|
-
emit: (name, state) => {
|
|
2035
|
-
listeners.forEach((l) => l(name, state));
|
|
2036
|
-
},
|
|
2037
|
-
subscribe(cb) {
|
|
2038
|
-
return listeners.add(cb), () => {
|
|
2039
|
-
listeners.delete(cb);
|
|
2040
|
-
};
|
|
2041
|
-
},
|
|
2042
|
-
state: {}
|
|
2043
|
-
}
|
|
2044
|
-
});
|
|
2045
|
-
}
|
|
2046
|
-
});
|
|
2047
|
-
|
|
2048
2077
|
// ../web/dist/cjs/defaultComponentState.native.js
|
|
2049
2078
|
var require_defaultComponentState_native = __commonJS({
|
|
2050
2079
|
"../web/dist/cjs/defaultComponentState.native.js"(exports, module2) {
|
|
2051
2080
|
"use strict";
|
|
2052
2081
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2053
|
-
for (var
|
|
2054
|
-
__defProp2(target,
|
|
2082
|
+
for (var name2 in all)
|
|
2083
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2055
2084
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2056
2085
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2057
2086
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2085,8 +2114,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
2085
2114
|
"../web/dist/cjs/helpers/createShallowSetState.native.js"(exports, module2) {
|
|
2086
2115
|
"use strict";
|
|
2087
2116
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2088
|
-
for (var
|
|
2089
|
-
__defProp2(target,
|
|
2117
|
+
for (var name2 in all)
|
|
2118
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2090
2119
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2091
2120
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2092
2121
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2115,8 +2144,8 @@ var require_accessibilityDirectMap_native = __commonJS({
|
|
|
2115
2144
|
"../web/dist/cjs/constants/accessibilityDirectMap.native.js"(exports, module2) {
|
|
2116
2145
|
"use strict";
|
|
2117
2146
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2118
|
-
for (var
|
|
2119
|
-
__defProp2(target,
|
|
2147
|
+
for (var name2 in all)
|
|
2148
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2120
2149
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2121
2150
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2122
2151
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2190,8 +2219,8 @@ var require_isDevTools_native = __commonJS({
|
|
|
2190
2219
|
"../web/dist/cjs/constants/isDevTools.native.js"(exports, module2) {
|
|
2191
2220
|
"use strict";
|
|
2192
2221
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2193
|
-
for (var
|
|
2194
|
-
__defProp2(target,
|
|
2222
|
+
for (var name2 in all)
|
|
2223
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2195
2224
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2196
2225
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2197
2226
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2218,8 +2247,8 @@ var require_getGroupPropParts_native = __commonJS({
|
|
|
2218
2247
|
"../web/dist/cjs/helpers/getGroupPropParts.native.js"(exports, module2) {
|
|
2219
2248
|
"use strict";
|
|
2220
2249
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2221
|
-
for (var
|
|
2222
|
-
__defProp2(target,
|
|
2250
|
+
for (var name2 in all)
|
|
2251
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2223
2252
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2224
2253
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2225
2254
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2232,8 +2261,8 @@ var require_getGroupPropParts_native = __commonJS({
|
|
|
2232
2261
|
module2.exports = __toCommonJS2(getGroupPropParts_exports);
|
|
2233
2262
|
var import_useMedia = require_useMedia_native();
|
|
2234
2263
|
function getGroupPropParts(groupProp) {
|
|
2235
|
-
let mediaQueries = (0, import_useMedia.getMedia)(), [_,
|
|
2236
|
-
return media ? pseudo = part4 : pseudo = part3, { name, pseudo, media };
|
|
2264
|
+
let mediaQueries = (0, import_useMedia.getMedia)(), [_, name2, part3, part4] = groupProp.split("-"), pseudo, media = part3 in mediaQueries ? part3 : void 0;
|
|
2265
|
+
return media ? pseudo = part4 : pseudo = part3, { name: name2, pseudo, media };
|
|
2237
2266
|
}
|
|
2238
2267
|
}
|
|
2239
2268
|
});
|
|
@@ -2243,8 +2272,8 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
2243
2272
|
"../web/dist/cjs/helpers/createMediaStyle.native.js"(exports, module2) {
|
|
2244
2273
|
"use strict";
|
|
2245
2274
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2246
|
-
for (var
|
|
2247
|
-
__defProp2(target,
|
|
2275
|
+
for (var name2 in all)
|
|
2276
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2248
2277
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2249
2278
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2250
2279
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2265,7 +2294,7 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
2265
2294
|
if (isThemeMedia || isGroup) {
|
|
2266
2295
|
let groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyIn), mediaName = groupInfo == null ? void 0 : groupInfo.name;
|
|
2267
2296
|
groupMediaKey = groupInfo == null ? void 0 : groupInfo.media, isGroup && (containerName = mediaName);
|
|
2268
|
-
let
|
|
2297
|
+
let name2 = (isGroup ? "group_" : "") + mediaName, selectorStart = styleInner.indexOf(":root"), selectorEnd = styleInner.lastIndexOf("{"), selector = styleInner.slice(selectorStart, selectorEnd), precedenceSpace = conf.themeClassNameOnRoot ? "" : " ", pseudoSelectorName = groupInfo.pseudo ? groupPseudoToPseudoCSSMap[groupInfo.pseudo] || groupInfo.pseudo : void 0, pseudoSelector = pseudoSelectorName ? `:${pseudoSelectorName}` : "", presedencePrefix = `:root${precedenceImportancePrefix}${precedenceSpace}`, mediaSelector = `.t_${name2}${pseudoSelector}`, nextSelector = `${presedencePrefix}${mediaSelector} ${selector.replace(
|
|
2269
2298
|
":root",
|
|
2270
2299
|
""
|
|
2271
2300
|
)}`;
|
|
@@ -2305,8 +2334,8 @@ var require_expandStyle_native = __commonJS({
|
|
|
2305
2334
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports, module2) {
|
|
2306
2335
|
"use strict";
|
|
2307
2336
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all2) => {
|
|
2308
|
-
for (var
|
|
2309
|
-
__defProp2(target,
|
|
2337
|
+
for (var name2 in all2)
|
|
2338
|
+
__defProp2(target, name2, { get: all2[name2], enumerable: !0 });
|
|
2310
2339
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2311
2340
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2312
2341
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2490,8 +2519,8 @@ var require_normalize_color = __commonJS({
|
|
|
2490
2519
|
let int = parseFloat(str);
|
|
2491
2520
|
return int < 0 ? 0 : int > 100 ? 1 : int / 100;
|
|
2492
2521
|
}
|
|
2493
|
-
function normalizeKeyword(
|
|
2494
|
-
switch (
|
|
2522
|
+
function normalizeKeyword(name2) {
|
|
2523
|
+
switch (name2) {
|
|
2495
2524
|
case "transparent":
|
|
2496
2525
|
return 0;
|
|
2497
2526
|
case "aliceblue":
|
|
@@ -2804,8 +2833,8 @@ var require_index_native7 = __commonJS({
|
|
|
2804
2833
|
"../normalize-css-color/dist/cjs/index.native.js"(exports, module2) {
|
|
2805
2834
|
"use strict";
|
|
2806
2835
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2807
|
-
for (var
|
|
2808
|
-
__defProp2(target,
|
|
2836
|
+
for (var name2 in all)
|
|
2837
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2809
2838
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2810
2839
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2811
2840
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2844,8 +2873,8 @@ var require_defaultOffset_native = __commonJS({
|
|
|
2844
2873
|
"../web/dist/cjs/helpers/defaultOffset.native.js"(exports, module2) {
|
|
2845
2874
|
"use strict";
|
|
2846
2875
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2847
|
-
for (var
|
|
2848
|
-
__defProp2(target,
|
|
2876
|
+
for (var name2 in all)
|
|
2877
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2849
2878
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2850
2879
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2851
2880
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2865,8 +2894,8 @@ var require_normalizeColor_native = __commonJS({
|
|
|
2865
2894
|
"../web/dist/cjs/helpers/normalizeColor.native.js"(exports, module2) {
|
|
2866
2895
|
"use strict";
|
|
2867
2896
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2868
|
-
for (var
|
|
2869
|
-
__defProp2(target,
|
|
2897
|
+
for (var name2 in all)
|
|
2898
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2870
2899
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2871
2900
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2872
2901
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2898,8 +2927,8 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
2898
2927
|
"../web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports, module2) {
|
|
2899
2928
|
"use strict";
|
|
2900
2929
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2901
|
-
for (var
|
|
2902
|
-
__defProp2(target,
|
|
2930
|
+
for (var name2 in all)
|
|
2931
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2903
2932
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2904
2933
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2905
2934
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2950,8 +2979,8 @@ var require_normalizeShadow_native = __commonJS({
|
|
|
2950
2979
|
"../web/dist/cjs/helpers/normalizeShadow.native.js"(exports, module2) {
|
|
2951
2980
|
"use strict";
|
|
2952
2981
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2953
|
-
for (var
|
|
2954
|
-
__defProp2(target,
|
|
2982
|
+
for (var name2 in all)
|
|
2983
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2955
2984
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2956
2985
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2957
2986
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2991,8 +3020,8 @@ var require_expandStyles_native = __commonJS({
|
|
|
2991
3020
|
"../web/dist/cjs/helpers/expandStyles.native.js"(exports, module2) {
|
|
2992
3021
|
"use strict";
|
|
2993
3022
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2994
|
-
for (var
|
|
2995
|
-
__defProp2(target,
|
|
3023
|
+
for (var name2 in all)
|
|
3024
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2996
3025
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2997
3026
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2998
3027
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3040,8 +3069,8 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
3040
3069
|
"../web/dist/cjs/helpers/getStylesAtomic.native.js"(exports, module2) {
|
|
3041
3070
|
"use strict";
|
|
3042
3071
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3043
|
-
for (var
|
|
3044
|
-
__defProp2(target,
|
|
3072
|
+
for (var name2 in all)
|
|
3073
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3045
3074
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3046
3075
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3047
3076
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3066,8 +3095,8 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
3066
3095
|
"../web/dist/cjs/helpers/getVariantExtras.native.js"(exports, module2) {
|
|
3067
3096
|
"use strict";
|
|
3068
3097
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3069
|
-
for (var
|
|
3070
|
-
__defProp2(target,
|
|
3098
|
+
for (var name2 in all)
|
|
3099
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3071
3100
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3072
3101
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3073
3102
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3113,11 +3142,11 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
3113
3142
|
let next = {
|
|
3114
3143
|
...fonts,
|
|
3115
3144
|
...Object.fromEntries(
|
|
3116
|
-
Object.entries(language).map(([
|
|
3145
|
+
Object.entries(language).map(([name2, lang]) => {
|
|
3117
3146
|
if (lang === "default")
|
|
3118
3147
|
return [];
|
|
3119
|
-
let langKey = `$${
|
|
3120
|
-
return [`$${
|
|
3148
|
+
let langKey = `$${name2}_${lang}`;
|
|
3149
|
+
return [`$${name2}`, fonts[langKey]];
|
|
3121
3150
|
})
|
|
3122
3151
|
)
|
|
3123
3152
|
};
|
|
@@ -3131,8 +3160,8 @@ var require_isObj_native = __commonJS({
|
|
|
3131
3160
|
"../web/dist/cjs/helpers/isObj.native.js"(exports, module2) {
|
|
3132
3161
|
"use strict";
|
|
3133
3162
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3134
|
-
for (var
|
|
3135
|
-
__defProp2(target,
|
|
3163
|
+
for (var name2 in all)
|
|
3164
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3136
3165
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3137
3166
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3138
3167
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3152,8 +3181,8 @@ var require_propMapper_native = __commonJS({
|
|
|
3152
3181
|
"../web/dist/cjs/helpers/propMapper.native.js"(exports, module2) {
|
|
3153
3182
|
"use strict";
|
|
3154
3183
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3155
|
-
for (var
|
|
3156
|
-
__defProp2(target,
|
|
3184
|
+
for (var name2 in all)
|
|
3185
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3157
3186
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3158
3187
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3159
3188
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3192,7 +3221,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3192
3221
|
let { staticConfig, conf, debug } = styleState, { variants } = staticConfig;
|
|
3193
3222
|
if (!variants)
|
|
3194
3223
|
return;
|
|
3195
|
-
let variantValue = getVariantDefinition(variants[key],
|
|
3224
|
+
let variantValue = getVariantDefinition(variants[key], value, conf);
|
|
3196
3225
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(`\u2666\uFE0F\u2666\uFE0F\u2666\uFE0F resolve variant ${key}`), console.log({
|
|
3197
3226
|
key,
|
|
3198
3227
|
value,
|
|
@@ -3201,9 +3230,9 @@ var require_propMapper_native = __commonJS({
|
|
|
3201
3230
|
curProps: { ...styleState.curProps }
|
|
3202
3231
|
}), console.groupEnd()), !variantValue) {
|
|
3203
3232
|
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof value != "boolean") {
|
|
3204
|
-
let
|
|
3233
|
+
let name2 = staticConfig.componentName || "[UnnamedComponent]";
|
|
3205
3234
|
console.warn(
|
|
3206
|
-
`No variant found: ${
|
|
3235
|
+
`No variant found: ${name2} has variant "${key}", but no matching value "${value}"`
|
|
3207
3236
|
);
|
|
3208
3237
|
}
|
|
3209
3238
|
return;
|
|
@@ -3281,21 +3310,26 @@ var require_propMapper_native = __commonJS({
|
|
|
3281
3310
|
process.env.NODE_ENV === "development" && debug && ((_a = res[fKey]) == null ? void 0 : _a[0]) === "$" && console.warn(`\u26A0\uFE0F Missing token in theme ${theme.name}:`, fKey, res[fKey], theme);
|
|
3282
3311
|
}
|
|
3283
3312
|
return res;
|
|
3284
|
-
}, tokenCats = ["size", "color", "radius", "space", "zIndex"].map((
|
|
3285
|
-
name,
|
|
3286
|
-
spreadName: `...${
|
|
3313
|
+
}, tokenCats = ["size", "color", "radius", "space", "zIndex"].map((name2) => ({
|
|
3314
|
+
name: name2,
|
|
3315
|
+
spreadName: `...${name2}`
|
|
3287
3316
|
}));
|
|
3288
|
-
function getVariantDefinition(variant,
|
|
3317
|
+
function getVariantDefinition(variant, value, conf) {
|
|
3289
3318
|
if (typeof variant == "function")
|
|
3290
3319
|
return variant;
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3320
|
+
let exact = variant[value];
|
|
3321
|
+
if (exact)
|
|
3322
|
+
return exact;
|
|
3323
|
+
if (value != null) {
|
|
3324
|
+
let { tokensParsed } = conf;
|
|
3325
|
+
for (let { name: name2, spreadName } of tokenCats)
|
|
3326
|
+
if (spreadName in variant && value in tokensParsed[name2])
|
|
3327
|
+
return variant[spreadName];
|
|
3328
|
+
let fontSizeVariant = variant["...fontSize"];
|
|
3329
|
+
if (fontSizeVariant && conf.fontSizeTokens.has(value))
|
|
3330
|
+
return fontSizeVariant;
|
|
3331
|
+
}
|
|
3332
|
+
return variant[`:${typeof value}`] || variant["..."];
|
|
3299
3333
|
}
|
|
3300
3334
|
var fontShorthand = {
|
|
3301
3335
|
fontSize: "size",
|
|
@@ -3350,8 +3384,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3350
3384
|
"../web/dist/cjs/helpers/getSplitStyles.native.js"(exports, module2) {
|
|
3351
3385
|
"use strict";
|
|
3352
3386
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3353
|
-
for (var
|
|
3354
|
-
__defProp2(target,
|
|
3387
|
+
for (var name2 in all)
|
|
3388
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3355
3389
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3356
3390
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3357
3391
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3841,8 +3875,8 @@ var require_mergeProps_native = __commonJS({
|
|
|
3841
3875
|
"../web/dist/cjs/helpers/mergeProps.native.js"(exports, module2) {
|
|
3842
3876
|
"use strict";
|
|
3843
3877
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3844
|
-
for (var
|
|
3845
|
-
__defProp2(target,
|
|
3878
|
+
for (var name2 in all)
|
|
3879
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3846
3880
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3847
3881
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3848
3882
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3884,8 +3918,8 @@ var require_proxyThemeVariables_native = __commonJS({
|
|
|
3884
3918
|
"../web/dist/cjs/helpers/proxyThemeVariables.native.js"(exports, module2) {
|
|
3885
3919
|
"use strict";
|
|
3886
3920
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3887
|
-
for (var
|
|
3888
|
-
__defProp2(target,
|
|
3921
|
+
for (var name2 in all)
|
|
3922
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3889
3923
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3890
3924
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3891
3925
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3916,8 +3950,8 @@ var require_ThemeManagerContext_native = __commonJS({
|
|
|
3916
3950
|
"../web/dist/cjs/helpers/ThemeManagerContext.native.js"(exports, module2) {
|
|
3917
3951
|
"use strict";
|
|
3918
3952
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3919
|
-
for (var
|
|
3920
|
-
__defProp2(target,
|
|
3953
|
+
for (var name2 in all)
|
|
3954
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3921
3955
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3922
3956
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3923
3957
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3937,8 +3971,8 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3937
3971
|
"../web/dist/cjs/helpers/ThemeManager.native.js"(exports, module2) {
|
|
3938
3972
|
"use strict";
|
|
3939
3973
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3940
|
-
for (var
|
|
3941
|
-
__defProp2(target,
|
|
3974
|
+
for (var name2 in all)
|
|
3975
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3942
3976
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3943
3977
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3944
3978
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4011,8 +4045,8 @@ var require_ThemeManager_native = __commonJS({
|
|
|
4011
4045
|
};
|
|
4012
4046
|
}
|
|
4013
4047
|
};
|
|
4014
|
-
function getNextThemeClassName(
|
|
4015
|
-
return `t_sub_theme ${import_constants22.THEME_CLASSNAME_PREFIX}${
|
|
4048
|
+
function getNextThemeClassName(name2) {
|
|
4049
|
+
return `t_sub_theme ${import_constants22.THEME_CLASSNAME_PREFIX}${name2}`.replace("light_", "").replace("dark_", "");
|
|
4016
4050
|
}
|
|
4017
4051
|
function getState(props, parentManager) {
|
|
4018
4052
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -4100,8 +4134,8 @@ var require_getThemeUnwrapped_native = __commonJS({
|
|
|
4100
4134
|
"../web/dist/cjs/hooks/getThemeUnwrapped.native.js"(exports, module2) {
|
|
4101
4135
|
"use strict";
|
|
4102
4136
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4103
|
-
for (var
|
|
4104
|
-
__defProp2(target,
|
|
4137
|
+
for (var name2 in all)
|
|
4138
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4105
4139
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4106
4140
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4107
4141
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4122,8 +4156,8 @@ var require_useTheme_native = __commonJS({
|
|
|
4122
4156
|
"../web/dist/cjs/hooks/useTheme.native.js"(exports, module2) {
|
|
4123
4157
|
"use strict";
|
|
4124
4158
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4125
|
-
for (var
|
|
4126
|
-
__defProp2(target,
|
|
4159
|
+
for (var name2 in all)
|
|
4160
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4127
4161
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4128
4162
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4129
4163
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4161,14 +4195,15 @@ var require_useTheme_native = __commonJS({
|
|
|
4161
4195
|
keys: [...keys.current]
|
|
4162
4196
|
}), next;
|
|
4163
4197
|
}
|
|
4164
|
-
), { themeManager, state } = changedThemeState
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4198
|
+
), { themeManager, state } = changedThemeState;
|
|
4199
|
+
state != null && state.theme || process.env.NODE_ENV === "development" && process.env.TAMAGUI_DISABLE_NO_THEME_WARNING !== "1" && console.warn(
|
|
4200
|
+
`[tamagui] No theme found, this could be due to an invalid theme name (given theme props ${JSON.stringify(
|
|
4201
|
+
props
|
|
4202
|
+
)}).
|
|
4203
|
+
|
|
4204
|
+
If this is intended and you are using Tamagui without any themes, you can disable this warning by setting the environment variable TAMAGUI_DISABLE_NO_THEME_WARNING=1`
|
|
4205
|
+
);
|
|
4206
|
+
let themeProxied = (0, import_react.useMemo)(() => !themeManager || !(state != null && state.theme) ? {} : getThemeProxied(state.theme, themeManager, keys.current, props.debug), [state, themeManager]);
|
|
4172
4207
|
return process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupCollapsed(" \u{1F539} useTheme =>", name), console.log("returning state", changedThemeState, "from props", props), console.groupEnd()), [changedThemeState, themeProxied];
|
|
4173
4208
|
};
|
|
4174
4209
|
function getThemeProxied(theme, themeManager, keys, debug) {
|
|
@@ -4201,30 +4236,29 @@ var require_useTheme_native = __commonJS({
|
|
|
4201
4236
|
}
|
|
4202
4237
|
});
|
|
4203
4238
|
}
|
|
4204
|
-
var activeThemeManagers = /* @__PURE__ */ new Set(), useChangeThemeEffect = (props,
|
|
4239
|
+
var activeThemeManagers = /* @__PURE__ */ new Set(), useChangeThemeEffect = (props, isRoot = !1, keys, shouldUpdate) => {
|
|
4205
4240
|
let {
|
|
4206
4241
|
// @ts-expect-error internal use only
|
|
4207
4242
|
disable
|
|
4208
4243
|
} = props, parentManager = (0, import_react.useContext)(import_ThemeManagerContext.ThemeManagerContext);
|
|
4209
|
-
if (disable)
|
|
4210
|
-
if (!parentManager)
|
|
4211
|
-
throw "\u274C 2";
|
|
4244
|
+
if (!isRoot && !parentManager || disable)
|
|
4212
4245
|
return {
|
|
4213
4246
|
isNewTheme: !1,
|
|
4214
|
-
state: parentManager.state,
|
|
4247
|
+
state: parentManager == null ? void 0 : parentManager.state,
|
|
4215
4248
|
themeManager: parentManager
|
|
4216
4249
|
};
|
|
4217
|
-
}
|
|
4218
4250
|
let [themeState, setThemeState] = (0, import_react.useState)(createState), { state, mounted, isNewTheme, themeManager } = themeState, isInversingOnMount = !!(!themeState.mounted && props.inverse);
|
|
4219
4251
|
function getShouldUpdateTheme(manager = themeManager, nextState, prevState = state, forceShouldChange = !1) {
|
|
4220
4252
|
let forceUpdate = shouldUpdate == null ? void 0 : shouldUpdate();
|
|
4221
|
-
if (!forceShouldChange && forceUpdate === !1)
|
|
4253
|
+
if (!manager || !forceShouldChange && forceUpdate === !1)
|
|
4222
4254
|
return;
|
|
4223
4255
|
let next = nextState || manager.getState(props, parentManager);
|
|
4224
4256
|
if (forceShouldChange || next && !(forceUpdate !== !0 && !manager.getStateShouldChange(next, prevState)))
|
|
4225
4257
|
return next;
|
|
4226
4258
|
}
|
|
4227
4259
|
if (import_constants2.isServer || ((0, import_react.useLayoutEffect)(() => {
|
|
4260
|
+
if (!themeManager)
|
|
4261
|
+
return;
|
|
4228
4262
|
if (props.inverse && !mounted) {
|
|
4229
4263
|
setThemeState({ ...themeState, mounted: !0 });
|
|
4230
4264
|
return;
|
|
@@ -4232,13 +4266,13 @@ var require_useTheme_native = __commonJS({
|
|
|
4232
4266
|
isNewTheme && themeManager && activeThemeManagers.add(themeManager), (isNewTheme || getShouldUpdateTheme(themeManager)) && setThemeState(createState);
|
|
4233
4267
|
let selfListenerDispose = themeManager.onChangeTheme((_a, _b, forced) => {
|
|
4234
4268
|
forced && setThemeState((prev) => createState(prev, !0));
|
|
4235
|
-
}), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme((
|
|
4269
|
+
}), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme((name2, manager) => {
|
|
4236
4270
|
let force = shouldUpdate == null ? void 0 : shouldUpdate(), doUpdate = force ?? !!(keys != null && keys.length || isNewTheme);
|
|
4237
4271
|
process.env.NODE_ENV === "development" && props.debug && console.log(" \u{1F538} onChange", themeManager.id, {
|
|
4238
4272
|
force,
|
|
4239
4273
|
doUpdate,
|
|
4240
4274
|
props,
|
|
4241
|
-
name,
|
|
4275
|
+
name: name2,
|
|
4242
4276
|
manager,
|
|
4243
4277
|
keys
|
|
4244
4278
|
}), doUpdate && setThemeState(createState);
|
|
@@ -4257,29 +4291,28 @@ var require_useTheme_native = __commonJS({
|
|
|
4257
4291
|
mounted
|
|
4258
4292
|
]), process.env.NODE_ENV === "development" && props.debug !== "profile" && (0, import_react.useEffect)(() => (globalThis.TamaguiThemeManagers ??= /* @__PURE__ */ new Set(), globalThis.TamaguiThemeManagers.add(themeManager), () => {
|
|
4259
4293
|
globalThis.TamaguiThemeManagers.delete(themeManager);
|
|
4260
|
-
}), [themeManager])), isInversingOnMount)
|
|
4261
|
-
if (!parentManager)
|
|
4262
|
-
throw "\u274C 3";
|
|
4294
|
+
}), [themeManager])), isInversingOnMount)
|
|
4263
4295
|
return {
|
|
4264
4296
|
isNewTheme: !1,
|
|
4265
4297
|
themeManager: parentManager,
|
|
4266
4298
|
state: {
|
|
4267
|
-
|
|
4299
|
+
name: "",
|
|
4300
|
+
...parentManager == null ? void 0 : parentManager.state,
|
|
4268
4301
|
className: ""
|
|
4269
4302
|
}
|
|
4270
4303
|
};
|
|
4271
|
-
}
|
|
4272
4304
|
return {
|
|
4273
4305
|
state,
|
|
4274
4306
|
isNewTheme,
|
|
4275
4307
|
themeManager
|
|
4276
4308
|
};
|
|
4277
4309
|
function createState(prev, force = !1) {
|
|
4310
|
+
var _a;
|
|
4278
4311
|
if (prev && (shouldUpdate == null ? void 0 : shouldUpdate()) === !1)
|
|
4279
4312
|
return prev;
|
|
4280
4313
|
let themeManager2 = parentManager, state2;
|
|
4281
4314
|
if ((0, import_ThemeManager.getHasThemeUpdatingProps)(props)) {
|
|
4282
|
-
let getNewThemeManager = () => new import_ThemeManager.ThemeManager(props,
|
|
4315
|
+
let getNewThemeManager = () => new import_ThemeManager.ThemeManager(props, isRoot ? "root" : parentManager);
|
|
4283
4316
|
if (prev != null && prev.themeManager) {
|
|
4284
4317
|
themeManager2 = prev.themeManager;
|
|
4285
4318
|
let forceChange = !!(keys != null && keys.length), next = themeManager2.getState(props, parentManager), nextState = getShouldUpdateTheme(
|
|
@@ -4292,8 +4325,8 @@ var require_useTheme_native = __commonJS({
|
|
|
4292
4325
|
} else
|
|
4293
4326
|
themeManager2 = getNewThemeManager(), state2 = { ...themeManager2.state };
|
|
4294
4327
|
}
|
|
4295
|
-
let isNewTheme2 = !!(themeManager2 !== parentManager || props.inverse), mounted2 = props.inverse ?
|
|
4296
|
-
if (state2 || (isNewTheme2 ? state2 = themeManager2.state : (state2 = parentManager.state, themeManager2 = parentManager)), !force && state2.name === (prev == null ? void 0 : prev.state.name))
|
|
4328
|
+
let isNewTheme2 = !!(themeManager2 !== parentManager || props.inverse), mounted2 = props.inverse ? isRoot || (prev == null ? void 0 : prev.mounted) : !0;
|
|
4329
|
+
if (state2 || (isNewTheme2 ? state2 = themeManager2.state : (state2 = parentManager.state, themeManager2 = parentManager)), !force && state2.name === ((_a = prev == null ? void 0 : prev.state) == null ? void 0 : _a.name))
|
|
4297
4330
|
return prev;
|
|
4298
4331
|
let response = {
|
|
4299
4332
|
state: state2,
|
|
@@ -4325,8 +4358,8 @@ var require_ThemeDebug_native = __commonJS({
|
|
|
4325
4358
|
"../web/dist/cjs/views/ThemeDebug.native.js"(exports, module2) {
|
|
4326
4359
|
"use strict";
|
|
4327
4360
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4328
|
-
for (var
|
|
4329
|
-
__defProp2(target,
|
|
4361
|
+
for (var name2 in all)
|
|
4362
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4330
4363
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4331
4364
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4332
4365
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4352,8 +4385,8 @@ var require_Theme_native = __commonJS({
|
|
|
4352
4385
|
"../web/dist/cjs/views/Theme.native.js"(exports, module2) {
|
|
4353
4386
|
"use strict";
|
|
4354
4387
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4355
|
-
for (var
|
|
4356
|
-
__defProp2(target,
|
|
4388
|
+
for (var name2 in all)
|
|
4389
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4357
4390
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4358
4391
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4359
4392
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4401,7 +4434,7 @@ var require_Theme_native = __commonJS({
|
|
|
4401
4434
|
void 0,
|
|
4402
4435
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Theme, { name: themeManager.state.parentName, children: child.props.children })
|
|
4403
4436
|
) : child));
|
|
4404
|
-
let elementsWithContext = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeManagerContext.ThemeManagerContext.Provider, { value: themeManager, children: next });
|
|
4437
|
+
let elementsWithContext = themeManager ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeManagerContext.ThemeManagerContext.Provider, { value: themeManager, children: next }) : next;
|
|
4405
4438
|
return forceClassName === !1 ? elementsWithContext : import_constants2.isWeb ? wrapThemeElements({
|
|
4406
4439
|
children: elementsWithContext,
|
|
4407
4440
|
themeState,
|
|
@@ -4415,23 +4448,28 @@ var require_Theme_native = __commonJS({
|
|
|
4415
4448
|
forceClassName,
|
|
4416
4449
|
isRoot
|
|
4417
4450
|
}) {
|
|
4451
|
+
var _a, _b, _c, _d;
|
|
4418
4452
|
if (isRoot && forceClassName === !1)
|
|
4419
4453
|
return children;
|
|
4420
|
-
let inverse = themeState.state.inverse;
|
|
4454
|
+
let inverse = (_a = themeState.state) == null ? void 0 : _a.inverse;
|
|
4421
4455
|
if (!themeState.isNewTheme && !inverse && !forceClassName)
|
|
4422
4456
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "_dsp_contents is_Theme", children });
|
|
4423
|
-
let themeColor = themeState.state.theme && themeState.isNewTheme ? (0, import_createVariable.variableToString)(themeState.state.theme.color) : "", colorStyle = themeColor ? {
|
|
4457
|
+
let themeColor = (_b = themeState.state) != null && _b.theme && themeState.isNewTheme ? (0, import_createVariable.variableToString)(themeState.state.theme.color) : "", colorStyle = themeColor ? {
|
|
4424
4458
|
color: themeColor
|
|
4425
|
-
} : void 0, className = themeState.state.className || "";
|
|
4459
|
+
} : void 0, className = ((_c = themeState.state) == null ? void 0 : _c.className) || "";
|
|
4426
4460
|
isRoot && (className = className.replace("t_sub_theme", ""));
|
|
4427
4461
|
let themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${className} _dsp_contents is_Theme`, style: colorStyle, children });
|
|
4428
|
-
|
|
4429
|
-
"
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4462
|
+
if (inverse != null || forceClassName) {
|
|
4463
|
+
let name2 = ((_d = themeState.state) == null ? void 0 : _d.name) || "";
|
|
4464
|
+
themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
4465
|
+
"span",
|
|
4466
|
+
{
|
|
4467
|
+
className: `${name2.startsWith("light") ? "t_light" : name2.startsWith("dark") ? "t_dark" : ""} _dsp_contents ${inverse ? "is_inversed" : ""}`,
|
|
4468
|
+
children: themedChildren
|
|
4469
|
+
}
|
|
4470
|
+
);
|
|
4471
|
+
}
|
|
4472
|
+
return themedChildren;
|
|
4435
4473
|
}
|
|
4436
4474
|
}
|
|
4437
4475
|
});
|
|
@@ -4441,8 +4479,8 @@ var require_themeable_native = __commonJS({
|
|
|
4441
4479
|
"../web/dist/cjs/helpers/themeable.native.js"(exports, module2) {
|
|
4442
4480
|
"use strict";
|
|
4443
4481
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4444
|
-
for (var
|
|
4445
|
-
__defProp2(target,
|
|
4482
|
+
for (var name2 in all)
|
|
4483
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4446
4484
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4447
4485
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4448
4486
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4491,8 +4529,8 @@ var require_setupHooks_native = __commonJS({
|
|
|
4491
4529
|
"../web/dist/cjs/setupHooks.native.js"(exports, module2) {
|
|
4492
4530
|
"use strict";
|
|
4493
4531
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4494
|
-
for (var
|
|
4495
|
-
__defProp2(target,
|
|
4532
|
+
for (var name2 in all)
|
|
4533
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4496
4534
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4497
4535
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4498
4536
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4516,8 +4554,8 @@ var require_Slot_native = __commonJS({
|
|
|
4516
4554
|
"../web/dist/cjs/views/Slot.native.js"(exports, module2) {
|
|
4517
4555
|
"use strict";
|
|
4518
4556
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4519
|
-
for (var
|
|
4520
|
-
__defProp2(target,
|
|
4557
|
+
for (var name2 in all)
|
|
4558
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4521
4559
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4522
4560
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4523
4561
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4567,8 +4605,8 @@ var require_createComponent_native = __commonJS({
|
|
|
4567
4605
|
"../web/dist/cjs/createComponent.native.js"(exports, module2) {
|
|
4568
4606
|
"use strict";
|
|
4569
4607
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4570
|
-
for (var
|
|
4571
|
-
__defProp2(target,
|
|
4608
|
+
for (var name2 in all)
|
|
4609
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4572
4610
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4573
4611
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4574
4612
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4641,7 +4679,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4641
4679
|
defaultPropsKeyOrder: defaultProps ? Object.keys(defaultProps) : []
|
|
4642
4680
|
});
|
|
4643
4681
|
let component = (0, import_react.forwardRef)((propsIn, forwardedRef) => {
|
|
4644
|
-
var _a2, _b, _c, _d,
|
|
4682
|
+
var _a2, _b, _c, _d, _e, _f, _i, _j, _k, _l, _m;
|
|
4645
4683
|
if (process.env.NODE_ENV === "development" && startVisualizer && (startVisualizer(), startVisualizer = void 0), !hasSetupBaseViews) {
|
|
4646
4684
|
hasSetupBaseViews = !0;
|
|
4647
4685
|
let baseViews = (_b = (_a2 = import_setupHooks.hooks).getBaseViews) == null ? void 0 : _b.call(_a2);
|
|
@@ -4734,7 +4772,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4734
4772
|
if (process.env.NODE_ENV === "development") {
|
|
4735
4773
|
let id = (0, import_react.useId)();
|
|
4736
4774
|
if (debugProp && debugProp !== "profile") {
|
|
4737
|
-
let
|
|
4775
|
+
let name2 = `${componentName || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = isAnimatedReactNative ? "(animated)" : isReactNative ? "(rnw)" : "", dataIs = propsIn["data-is"] || "", banner = `${name2}${dataIs ? ` ${dataIs}` : ""} ${type} id ${id}`;
|
|
4738
4776
|
console.group(
|
|
4739
4777
|
`%c ${banner} (unmounted: ${state.unmounted})${presence ? ` (presence: ${presence[0]})` : ""} ${isHydrated ? "\u{1F4A6}" : "\u{1F3DC}\uFE0F"}`,
|
|
4740
4778
|
"background: green; color: white;"
|
|
@@ -4763,11 +4801,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4763
4801
|
elementType = Component || elementType;
|
|
4764
4802
|
let isStringElement = typeof elementType == "string";
|
|
4765
4803
|
process.env.NODE_ENV === "development" && time && time`theme`;
|
|
4766
|
-
let mediaState2 = (0, import_useMedia.useMedia)(
|
|
4767
|
-
// @ts-ignore, we just pass a stable object so we can get it later with
|
|
4768
|
-
// should match to the one used in `setMediaShouldUpdate` below
|
|
4769
|
-
stateRef
|
|
4770
|
-
);
|
|
4804
|
+
let mediaState2 = (0, import_useMedia.useMedia)(stateRef, componentContext);
|
|
4771
4805
|
process.env.NODE_ENV === "development" && time && time`media`, (0, import_createVariable.setDidGetVariableValue)(!1);
|
|
4772
4806
|
let resolveValues = (
|
|
4773
4807
|
// if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
|
|
@@ -4783,7 +4817,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4783
4817
|
props,
|
|
4784
4818
|
staticConfig,
|
|
4785
4819
|
theme,
|
|
4786
|
-
themeState.state.name,
|
|
4820
|
+
((_d = themeState == null ? void 0 : themeState.state) == null ? void 0 : _d.name) || "",
|
|
4787
4821
|
state,
|
|
4788
4822
|
styleProps,
|
|
4789
4823
|
null,
|
|
@@ -4823,7 +4857,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4823
4857
|
presence,
|
|
4824
4858
|
componentState: state,
|
|
4825
4859
|
styleProps,
|
|
4826
|
-
theme: themeState.state.theme,
|
|
4860
|
+
theme: (_e = themeState.state) == null ? void 0 : _e.theme,
|
|
4827
4861
|
pseudos: pseudos || null,
|
|
4828
4862
|
hostRef,
|
|
4829
4863
|
staticConfig
|
|
@@ -4861,7 +4895,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4861
4895
|
|
|
4862
4896
|
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`
|
|
4863
4897
|
), process.env.NODE_ENV === "development" && time && time`destructure`;
|
|
4864
|
-
let disabled = ((
|
|
4898
|
+
let disabled = ((_f = props.accessibilityState) == null ? void 0 : _f.disabled) || // @ts-expect-error (comes from core)
|
|
4865
4899
|
props.accessibilityDisabled, viewProps = nonTamaguiProps;
|
|
4866
4900
|
isHOC && _themeProp && (viewProps.theme = _themeProp), groupName && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(
|
|
4867
4901
|
nonTamaguiProps.onLayout,
|
|
@@ -4897,8 +4931,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4897
4931
|
media: {}
|
|
4898
4932
|
};
|
|
4899
4933
|
disposeGroupsListener = componentContext.groups.subscribe(
|
|
4900
|
-
(
|
|
4901
|
-
if (pseudo && pseudoGroups != null && pseudoGroups.has(
|
|
4934
|
+
(name2, { layout, pseudo }) => {
|
|
4935
|
+
if (pseudo && pseudoGroups != null && pseudoGroups.has(name2))
|
|
4902
4936
|
Object.assign(current.pseudo, pseudo), persist();
|
|
4903
4937
|
else if (layout && mediaGroups) {
|
|
4904
4938
|
let mediaState22 = getMediaState(mediaGroups, layout), next = (0, import_createShallowSetState.mergeIfNotShallowEqual)(current.media, mediaState22);
|
|
@@ -4909,7 +4943,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4909
4943
|
// force it to be referentially different so it always updates
|
|
4910
4944
|
group: {
|
|
4911
4945
|
...state.group,
|
|
4912
|
-
[
|
|
4946
|
+
[name2]: current
|
|
4913
4947
|
}
|
|
4914
4948
|
});
|
|
4915
4949
|
}
|
|
@@ -4925,7 +4959,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4925
4959
|
pseudoGroups ? Object.keys([...pseudoGroups]).join("") : 0,
|
|
4926
4960
|
mediaGroups ? Object.keys([...mediaGroups]).join("") : 0
|
|
4927
4961
|
]);
|
|
4928
|
-
let avoidAnimationStyle = keepStyleSSR && state.unmounted === !0, fontFamily = isText ? splitStyles.fontFamily || ((
|
|
4962
|
+
let avoidAnimationStyle = keepStyleSSR && state.unmounted === !0, fontFamily = isText ? splitStyles.fontFamily || ((_i = staticConfig.defaultProps) == null ? void 0 : _i.fontFamily) : null;
|
|
4929
4963
|
fontFamily && fontFamily[0] === "$" && (fontFamily = fontFamily.slice(1));
|
|
4930
4964
|
let fontFamilyClassName = fontFamily ? `font_${fontFamily}` : "", style = avoidAnimationStyle ? splitStyles.style : animationStyles || splitStyles.style, className;
|
|
4931
4965
|
viewProps.style = style;
|
|
@@ -4967,7 +5001,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4967
5001
|
delayPressOut: viewProps.delayPressOut,
|
|
4968
5002
|
focusable: viewProps.focusable ?? !0,
|
|
4969
5003
|
minPressDuration: 0
|
|
4970
|
-
}), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" && console.log("events", { events, isHoverable, attachPress }), (
|
|
5004
|
+
}), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" && console.log("events", { events, isHoverable, attachPress }), (_k = (_j = import_setupHooks.hooks).useEvents) == null || _k.call(_j, viewProps, events, splitStyles, setStateShallow);
|
|
4971
5005
|
let direction = props.spaceDirection || "both";
|
|
4972
5006
|
process.env.NODE_ENV === "development" && time && time`hooks`;
|
|
4973
5007
|
let content = !children || asChild ? children : spacedChildren({
|
|
@@ -5025,8 +5059,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5025
5059
|
handlesPressEvents,
|
|
5026
5060
|
willBeAnimated,
|
|
5027
5061
|
isStringElement,
|
|
5028
|
-
classNamesIn: (
|
|
5029
|
-
classNamesOut: (
|
|
5062
|
+
classNamesIn: (_l = props.className) == null ? void 0 : _l.split(" "),
|
|
5063
|
+
classNamesOut: (_m = viewProps.className) == null ? void 0 : _m.split(" "),
|
|
5030
5064
|
events,
|
|
5031
5065
|
shouldAttach,
|
|
5032
5066
|
pseudos,
|
|
@@ -5078,7 +5112,16 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5078
5112
|
return props.children;
|
|
5079
5113
|
}
|
|
5080
5114
|
Unspaced.isUnspaced = !0;
|
|
5081
|
-
var
|
|
5115
|
+
var getSpacerSize = (size, { tokens }) => {
|
|
5116
|
+
size = size === !0 ? "$true" : size;
|
|
5117
|
+
let sizePx = tokens.space[size] ?? size;
|
|
5118
|
+
return {
|
|
5119
|
+
width: sizePx,
|
|
5120
|
+
height: sizePx,
|
|
5121
|
+
minWidth: sizePx,
|
|
5122
|
+
minHeight: sizePx
|
|
5123
|
+
};
|
|
5124
|
+
}, Spacer = createComponent({
|
|
5082
5125
|
acceptsClassName: !0,
|
|
5083
5126
|
memo: !0,
|
|
5084
5127
|
componentName: "Spacer",
|
|
@@ -5092,16 +5135,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5092
5135
|
},
|
|
5093
5136
|
variants: {
|
|
5094
5137
|
size: {
|
|
5095
|
-
"...
|
|
5096
|
-
size = size === !0 ? "$true" : size;
|
|
5097
|
-
let sizePx = tokens.space[size] ?? size;
|
|
5098
|
-
return {
|
|
5099
|
-
width: sizePx,
|
|
5100
|
-
height: sizePx,
|
|
5101
|
-
minWidth: sizePx,
|
|
5102
|
-
minHeight: sizePx
|
|
5103
|
-
};
|
|
5104
|
-
}
|
|
5138
|
+
"...": getSpacerSize
|
|
5105
5139
|
},
|
|
5106
5140
|
flex: {
|
|
5107
5141
|
true: {
|
|
@@ -5218,8 +5252,8 @@ var require_createShorthands_native = __commonJS({
|
|
|
5218
5252
|
"../web/dist/cjs/createShorthands.native.js"(exports, module2) {
|
|
5219
5253
|
"use strict";
|
|
5220
5254
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5221
|
-
for (var
|
|
5222
|
-
__defProp2(target,
|
|
5255
|
+
for (var name2 in all)
|
|
5256
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5223
5257
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5224
5258
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5225
5259
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5241,8 +5275,8 @@ var require_createTheme_native = __commonJS({
|
|
|
5241
5275
|
"../web/dist/cjs/createTheme.native.js"(exports, module2) {
|
|
5242
5276
|
"use strict";
|
|
5243
5277
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5244
|
-
for (var
|
|
5245
|
-
__defProp2(target,
|
|
5278
|
+
for (var name2 in all)
|
|
5279
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5246
5280
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5247
5281
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5248
5282
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5262,8 +5296,8 @@ var require_createVariables_native = __commonJS({
|
|
|
5262
5296
|
"../web/dist/cjs/createVariables.native.js"(exports, module2) {
|
|
5263
5297
|
"use strict";
|
|
5264
5298
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5265
|
-
for (var
|
|
5266
|
-
__defProp2(target,
|
|
5299
|
+
for (var name2 in all)
|
|
5300
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5267
5301
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5268
5302
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5269
5303
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5285,17 +5319,17 @@ var require_createVariables_native = __commonJS({
|
|
|
5285
5319
|
res[key] = val;
|
|
5286
5320
|
continue;
|
|
5287
5321
|
}
|
|
5288
|
-
let niceKey = (0, import_helpers.simpleHash)(key),
|
|
5289
|
-
if (
|
|
5322
|
+
let niceKey = (0, import_helpers.simpleHash)(key), name2 = isFont ? niceKey.slice(0, 2) : i;
|
|
5323
|
+
if (name2 = parentPath ? `${parentPath}-${name2}` : niceKey, val && typeof val == "object") {
|
|
5290
5324
|
res[key] = createVariables(
|
|
5291
5325
|
tokens[key],
|
|
5292
|
-
|
|
5326
|
+
name2,
|
|
5293
5327
|
!1
|
|
5294
5328
|
/* note: don't pass isFont down, we want to avoid it past the first level */
|
|
5295
5329
|
);
|
|
5296
5330
|
continue;
|
|
5297
5331
|
}
|
|
5298
|
-
let finalValue = (0, import_createVariable.isVariable)(val) ? val : (0, import_createVariable.createVariable)({ val, name, key: keyWithPrefix });
|
|
5332
|
+
let finalValue = (0, import_createVariable.isVariable)(val) ? val : (0, import_createVariable.createVariable)({ val, name: name2, key: keyWithPrefix });
|
|
5299
5333
|
res[key] = finalValue;
|
|
5300
5334
|
}
|
|
5301
5335
|
return cache.set(res, !0), res;
|
|
@@ -5308,8 +5342,8 @@ var require_getThemeCSSRules_native = __commonJS({
|
|
|
5308
5342
|
"../web/dist/cjs/helpers/getThemeCSSRules.native.js"(exports, module2) {
|
|
5309
5343
|
"use strict";
|
|
5310
5344
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5311
|
-
for (var
|
|
5312
|
-
__defProp2(target,
|
|
5345
|
+
for (var name2 in all)
|
|
5346
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5313
5347
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5314
5348
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5315
5349
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5331,8 +5365,8 @@ var require_proxyThemeToParents_native = __commonJS({
|
|
|
5331
5365
|
"../web/dist/cjs/helpers/proxyThemeToParents.native.js"(exports, module2) {
|
|
5332
5366
|
"use strict";
|
|
5333
5367
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5334
|
-
for (var
|
|
5335
|
-
__defProp2(target,
|
|
5368
|
+
for (var name2 in all)
|
|
5369
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5336
5370
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5337
5371
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5338
5372
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5348,8 +5382,8 @@ var require_proxyThemeToParents_native = __commonJS({
|
|
|
5348
5382
|
var import_config = require_config_native(), import_getThemeUnwrapped = require_getThemeUnwrapped_native(), themesRaw = {};
|
|
5349
5383
|
function proxyThemesToParents(dedupedThemes) {
|
|
5350
5384
|
for (let { names, theme } of dedupedThemes)
|
|
5351
|
-
for (let
|
|
5352
|
-
themesRaw[
|
|
5385
|
+
for (let name2 of names)
|
|
5386
|
+
themesRaw[name2] = theme;
|
|
5353
5387
|
let themes = {};
|
|
5354
5388
|
for (let { names, theme } of dedupedThemes)
|
|
5355
5389
|
for (let themeName of names) {
|
|
@@ -5385,8 +5419,8 @@ var require_registerCSSVariable_native = __commonJS({
|
|
|
5385
5419
|
"../web/dist/cjs/helpers/registerCSSVariable.native.js"(exports, module2) {
|
|
5386
5420
|
"use strict";
|
|
5387
5421
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5388
|
-
for (var
|
|
5389
|
-
__defProp2(target,
|
|
5422
|
+
for (var name2 in all)
|
|
5423
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5390
5424
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5391
5425
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5392
5426
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5410,8 +5444,8 @@ var require_themes_native = __commonJS({
|
|
|
5410
5444
|
"../web/dist/cjs/helpers/themes.native.js"(exports, module2) {
|
|
5411
5445
|
"use strict";
|
|
5412
5446
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5413
|
-
for (var
|
|
5414
|
-
__defProp2(target,
|
|
5447
|
+
for (var name2 in all)
|
|
5448
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5415
5449
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5416
5450
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5417
5451
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5443,8 +5477,8 @@ var require_createFont_native = __commonJS({
|
|
|
5443
5477
|
"../web/dist/cjs/createFont.native.js"(exports, module2) {
|
|
5444
5478
|
"use strict";
|
|
5445
5479
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5446
|
-
for (var
|
|
5447
|
-
__defProp2(target,
|
|
5480
|
+
for (var name2 in all)
|
|
5481
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5448
5482
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5449
5483
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5450
5484
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5496,8 +5530,8 @@ var require_insertFont_native = __commonJS({
|
|
|
5496
5530
|
"../web/dist/cjs/insertFont.native.js"(exports, module2) {
|
|
5497
5531
|
"use strict";
|
|
5498
5532
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5499
|
-
for (var
|
|
5500
|
-
__defProp2(target,
|
|
5533
|
+
for (var name2 in all)
|
|
5534
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5501
5535
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5502
5536
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5503
5537
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5512,9 +5546,9 @@ var require_insertFont_native = __commonJS({
|
|
|
5512
5546
|
});
|
|
5513
5547
|
module2.exports = __toCommonJS2(insertFont_exports);
|
|
5514
5548
|
var import_config = require_config_native(), import_createFont = require_createFont_native(), import_createVariables = require_createVariables_native(), import_registerCSSVariable = require_registerCSSVariable_native();
|
|
5515
|
-
function insertFont(
|
|
5516
|
-
let font = (0, import_createFont.createFont)(fontIn), tokened = (0, import_createVariables.createVariables)(font,
|
|
5517
|
-
return (0, import_config.setConfigFont)(
|
|
5549
|
+
function insertFont(name2, fontIn) {
|
|
5550
|
+
let font = (0, import_createFont.createFont)(fontIn), tokened = (0, import_createVariables.createVariables)(font, name2), parsed = parseFont(tokened);
|
|
5551
|
+
return (0, import_config.setConfigFont)(name2, tokened, parsed), parsed;
|
|
5518
5552
|
}
|
|
5519
5553
|
var updateFont = insertFont;
|
|
5520
5554
|
function parseFont(definition) {
|
|
@@ -5558,8 +5592,8 @@ var require_createTamagui_native = __commonJS({
|
|
|
5558
5592
|
"../web/dist/cjs/createTamagui.native.js"(exports, module2) {
|
|
5559
5593
|
"use strict";
|
|
5560
5594
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5561
|
-
for (var
|
|
5562
|
-
__defProp2(target,
|
|
5595
|
+
for (var name2 in all)
|
|
5596
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5563
5597
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5564
5598
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5565
5599
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5575,36 +5609,40 @@ var require_createTamagui_native = __commonJS({
|
|
|
5575
5609
|
var _a;
|
|
5576
5610
|
if (createdConfigs.has(configIn))
|
|
5577
5611
|
return configIn;
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
tokensParsed[cat] = {}, tokensMerged[cat] = {};
|
|
5589
|
-
let tokenCat = tokens[cat];
|
|
5590
|
-
for (let key in tokenCat) {
|
|
5591
|
-
let val = tokenCat[key], prefixedKey = `$${key}`;
|
|
5592
|
-
tokensParsed[cat][prefixedKey] = val, tokensMerged[cat][prefixedKey] = val, tokensMerged[cat][key] = val;
|
|
5612
|
+
let tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
5613
|
+
if (configIn.tokens) {
|
|
5614
|
+
let tokensMerged = {};
|
|
5615
|
+
for (let cat in tokens) {
|
|
5616
|
+
tokensParsed[cat] = {}, tokensMerged[cat] = {};
|
|
5617
|
+
let tokenCat = tokens[cat];
|
|
5618
|
+
for (let key in tokenCat) {
|
|
5619
|
+
let val = tokenCat[key], prefixedKey = `$${key}`;
|
|
5620
|
+
tokensParsed[cat][prefixedKey] = val, tokensMerged[cat][prefixedKey] = val, tokensMerged[cat][key] = val;
|
|
5621
|
+
}
|
|
5593
5622
|
}
|
|
5623
|
+
(0, import_config.setTokens)(tokensMerged);
|
|
5624
|
+
}
|
|
5625
|
+
let foundThemes;
|
|
5626
|
+
if (configIn.themes) {
|
|
5627
|
+
let noThemes = Object.keys(configIn.themes).length === 0;
|
|
5628
|
+
foundThemes = (0, import_insertStyleRule.scanAllSheets)(noThemes, tokensParsed);
|
|
5594
5629
|
}
|
|
5595
|
-
(0, import_config.setTokens)(tokensMerged);
|
|
5596
|
-
let noThemes = Object.keys(configIn.themes).length === 0, foundThemes = (0, import_insertStyleRule.scanAllSheets)(noThemes, tokensParsed);
|
|
5597
5630
|
(0, import_insertStyleRule.listenForSheetChanges)();
|
|
5598
|
-
let
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
res
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5631
|
+
let fontSizeTokens = null, fontsParsed;
|
|
5632
|
+
if (configIn.fonts) {
|
|
5633
|
+
let fontTokens = Object.fromEntries(
|
|
5634
|
+
Object.entries(configIn.fonts).map(([k, v]) => [k, (0, import_createVariables.createVariables)(v, "f", !0)])
|
|
5635
|
+
);
|
|
5636
|
+
fontsParsed = (() => {
|
|
5637
|
+
let res = {};
|
|
5638
|
+
for (let familyName in fontTokens) {
|
|
5639
|
+
let font = fontTokens[familyName], fontParsed = (0, import_insertFont.parseFont)(font);
|
|
5640
|
+
res[`$${familyName}`] = fontParsed, !fontSizeTokens && fontParsed.size && (fontSizeTokens = new Set(Object.keys(fontParsed.size)));
|
|
5641
|
+
}
|
|
5642
|
+
return res;
|
|
5643
|
+
})();
|
|
5644
|
+
}
|
|
5645
|
+
let specificTokens = {}, themeConfig = (() => {
|
|
5608
5646
|
let cssRuleSets = [];
|
|
5609
5647
|
if (process.env.TAMAGUI_DOES_SSR_CSS !== "true" && // we can leave this out if mutating, only need the js for getThemeCSSRules
|
|
5610
5648
|
process.env.TAMAGUI_DOES_SSR_CSS !== "mutates-themes") {
|
|
@@ -5629,9 +5667,9 @@ ${JSON.stringify(
|
|
|
5629
5667
|
};
|
|
5630
5668
|
var declarationsToRuleSet = declarationsToRuleSet2;
|
|
5631
5669
|
for (let key in fontsParsed) {
|
|
5632
|
-
let fontParsed = fontsParsed[key], [
|
|
5670
|
+
let fontParsed = fontsParsed[key], [name2, language] = key.includes("_") ? key.split("_") : [key], fontVars = (0, import_insertFont.registerFontVariables)(fontParsed);
|
|
5633
5671
|
fontDeclarations[key] = {
|
|
5634
|
-
name:
|
|
5672
|
+
name: name2.slice(1),
|
|
5635
5673
|
declarations: fontVars,
|
|
5636
5674
|
language
|
|
5637
5675
|
};
|
|
@@ -5639,7 +5677,7 @@ ${JSON.stringify(
|
|
|
5639
5677
|
let sep = process.env.NODE_ENV === "development" ? configIn.cssStyleSeparator || " " : "";
|
|
5640
5678
|
if (cssRuleSets.push(declarationsToRuleSet2(declarations)), fontDeclarations)
|
|
5641
5679
|
for (let key in fontDeclarations) {
|
|
5642
|
-
let { name, declarations: declarations2, language = "default" } = fontDeclarations[key], fontSelector = `.font_${
|
|
5680
|
+
let { name: name2, declarations: declarations2, language = "default" } = fontDeclarations[key], fontSelector = `.font_${name2}`, langSelector = `:root .t_lang-${name2}-${language} ${fontSelector}`, selectors = language === "default" ? ` ${fontSelector}, ${langSelector}` : langSelector, specificRuleSet = declarationsToRuleSet2(declarations2, selectors);
|
|
5643
5681
|
cssRuleSets.push(specificRuleSet);
|
|
5644
5682
|
}
|
|
5645
5683
|
}
|
|
@@ -5678,9 +5716,10 @@ ${themeConfig.cssRuleSets.join(separator)}`}
|
|
|
5678
5716
|
${exclude ? "" : themeConfig.getThemeRulesSets().join(separator)}
|
|
5679
5717
|
${runtimeStyles}`;
|
|
5680
5718
|
}, getNewCSS = (opts) => getCSS({ ...opts, sinceLastCall: !0 }), defaultFontName = configIn.defaultFont || // uses font named "body" if present for compat
|
|
5681
|
-
("body" in configIn.fonts ? "body" : "");
|
|
5682
|
-
!defaultFontName && configIn.fonts && (defaultFontName = Object.keys(configIn.fonts)[0]), defaultFontName[0] === "$" && (defaultFontName = defaultFontName.slice(1));
|
|
5719
|
+
configIn.fonts && ("body" in configIn.fonts ? "body" : "");
|
|
5720
|
+
!defaultFontName && configIn.fonts && (defaultFontName = Object.keys(configIn.fonts)[0]), (defaultFontName == null ? void 0 : defaultFontName[0]) === "$" && (defaultFontName = defaultFontName.slice(1));
|
|
5683
5721
|
let defaultFont = `$${defaultFontName}`, config = {
|
|
5722
|
+
fonts: {},
|
|
5684
5723
|
groupNames: [],
|
|
5685
5724
|
settings: {},
|
|
5686
5725
|
onlyAllowShorthands: !1,
|
|
@@ -5693,7 +5732,7 @@ ${runtimeStyles}`;
|
|
|
5693
5732
|
shorthands,
|
|
5694
5733
|
inverseShorthands: shorthands ? Object.fromEntries(Object.entries(shorthands).map(([k, v]) => [v, k])) : {},
|
|
5695
5734
|
themes: themeConfig.themes,
|
|
5696
|
-
fontsParsed,
|
|
5735
|
+
fontsParsed: fontsParsed || {},
|
|
5697
5736
|
themeConfig,
|
|
5698
5737
|
tokensParsed,
|
|
5699
5738
|
parsed: !0,
|
|
@@ -5734,8 +5773,8 @@ var require_createTokens_native = __commonJS({
|
|
|
5734
5773
|
"../web/dist/cjs/createTokens.native.js"(exports, module2) {
|
|
5735
5774
|
"use strict";
|
|
5736
5775
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5737
|
-
for (var
|
|
5738
|
-
__defProp2(target,
|
|
5776
|
+
for (var name2 in all)
|
|
5777
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5739
5778
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5740
5779
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5741
5780
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5758,8 +5797,8 @@ var require_mergeVariants_native = __commonJS({
|
|
|
5758
5797
|
"../web/dist/cjs/helpers/mergeVariants.native.js"(exports, module2) {
|
|
5759
5798
|
"use strict";
|
|
5760
5799
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5761
|
-
for (var
|
|
5762
|
-
__defProp2(target,
|
|
5800
|
+
for (var name2 in all)
|
|
5801
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5763
5802
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5764
5803
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5765
5804
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5809,8 +5848,8 @@ var require_setupReactNative_native = __commonJS({
|
|
|
5809
5848
|
"../web/dist/cjs/setupReactNative.native.js"(exports, module2) {
|
|
5810
5849
|
"use strict";
|
|
5811
5850
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5812
|
-
for (var
|
|
5813
|
-
__defProp2(target,
|
|
5851
|
+
for (var name2 in all)
|
|
5852
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5814
5853
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5815
5854
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5816
5855
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5847,8 +5886,8 @@ var require_styled_native = __commonJS({
|
|
|
5847
5886
|
"../web/dist/cjs/styled.native.js"(exports, module2) {
|
|
5848
5887
|
"use strict";
|
|
5849
5888
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5850
|
-
for (var
|
|
5851
|
-
__defProp2(target,
|
|
5889
|
+
for (var name2 in all)
|
|
5890
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5852
5891
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5853
5892
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5854
5893
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5867,7 +5906,7 @@ var require_styled_native = __commonJS({
|
|
|
5867
5906
|
if (options) {
|
|
5868
5907
|
let {
|
|
5869
5908
|
variants,
|
|
5870
|
-
name,
|
|
5909
|
+
name: name2,
|
|
5871
5910
|
defaultVariants,
|
|
5872
5911
|
acceptsClassName: acceptsClassNameProp,
|
|
5873
5912
|
context,
|
|
@@ -5879,7 +5918,7 @@ var require_styled_native = __commonJS({
|
|
|
5879
5918
|
}), parentStaticConfig && (parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC || (defaultProps = {
|
|
5880
5919
|
...parentStaticConfig.defaultProps,
|
|
5881
5920
|
...defaultProps
|
|
5882
|
-
}, parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants)))), parentStaticConfig != null && parentStaticConfig.isHOC &&
|
|
5921
|
+
}, parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants)))), parentStaticConfig != null && parentStaticConfig.isHOC && name2 && (defaultProps.componentName = name2);
|
|
5883
5922
|
let isText = !!(staticExtractionOptions != null && staticExtractionOptions.isText || parentStaticConfig != null && parentStaticConfig.isText), acceptsClassName = acceptsClassNameProp ?? (isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName)), conf = {
|
|
5884
5923
|
...parentStaticConfig,
|
|
5885
5924
|
...staticExtractionOptions,
|
|
@@ -5891,7 +5930,7 @@ var require_styled_native = __commonJS({
|
|
|
5891
5930
|
variants,
|
|
5892
5931
|
defaultProps,
|
|
5893
5932
|
defaultVariants,
|
|
5894
|
-
componentName:
|
|
5933
|
+
componentName: name2 || (parentStaticConfig == null ? void 0 : parentStaticConfig.componentName),
|
|
5895
5934
|
isReactNative,
|
|
5896
5935
|
isText,
|
|
5897
5936
|
acceptsClassName,
|
|
@@ -5938,37 +5977,13 @@ var require_GetRef_native = __commonJS({
|
|
|
5938
5977
|
}
|
|
5939
5978
|
});
|
|
5940
5979
|
|
|
5941
|
-
// ../web/dist/cjs/helpers/getAnimationDriver.native.js
|
|
5942
|
-
var require_getAnimationDriver_native = __commonJS({
|
|
5943
|
-
"../web/dist/cjs/helpers/getAnimationDriver.native.js"(exports, module2) {
|
|
5944
|
-
"use strict";
|
|
5945
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5946
|
-
for (var name in all)
|
|
5947
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
5948
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
5949
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
5950
|
-
for (let key of __getOwnPropNames2(from))
|
|
5951
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
5952
|
-
return to;
|
|
5953
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), getAnimationDriver_exports = {};
|
|
5954
|
-
__export2(getAnimationDriver_exports, {
|
|
5955
|
-
getAnimationDriver: () => getAnimationDriver
|
|
5956
|
-
});
|
|
5957
|
-
module2.exports = __toCommonJS2(getAnimationDriver_exports);
|
|
5958
|
-
var import_config = require_config_native();
|
|
5959
|
-
function getAnimationDriver() {
|
|
5960
|
-
return (0, import_config.getConfig)().animations;
|
|
5961
|
-
}
|
|
5962
|
-
}
|
|
5963
|
-
});
|
|
5964
|
-
|
|
5965
5980
|
// ../web/dist/cjs/helpers/getExpandedShorthands.native.js
|
|
5966
5981
|
var require_getExpandedShorthands_native = __commonJS({
|
|
5967
5982
|
"../web/dist/cjs/helpers/getExpandedShorthands.native.js"(exports, module2) {
|
|
5968
5983
|
"use strict";
|
|
5969
5984
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5970
|
-
for (var
|
|
5971
|
-
__defProp2(target,
|
|
5985
|
+
for (var name2 in all)
|
|
5986
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5972
5987
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5973
5988
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5974
5989
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5997,8 +6012,8 @@ var require_isTamaguiComponent_native = __commonJS({
|
|
|
5997
6012
|
"../web/dist/cjs/helpers/isTamaguiComponent.native.js"(exports, module2) {
|
|
5998
6013
|
"use strict";
|
|
5999
6014
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6000
|
-
for (var
|
|
6001
|
-
__defProp2(target,
|
|
6015
|
+
for (var name2 in all)
|
|
6016
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6002
6017
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6003
6018
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6004
6019
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6009,9 +6024,9 @@ var require_isTamaguiComponent_native = __commonJS({
|
|
|
6009
6024
|
isTamaguiComponent: () => isTamaguiComponent
|
|
6010
6025
|
});
|
|
6011
6026
|
module2.exports = __toCommonJS2(isTamaguiComponent_exports);
|
|
6012
|
-
function isTamaguiComponent(comp,
|
|
6027
|
+
function isTamaguiComponent(comp, name2) {
|
|
6013
6028
|
let config = comp == null ? void 0 : comp.staticConfig;
|
|
6014
|
-
return !!(config && (!
|
|
6029
|
+
return !!(config && (!name2 || name2 === config.componentName));
|
|
6015
6030
|
}
|
|
6016
6031
|
}
|
|
6017
6032
|
});
|
|
@@ -6021,8 +6036,8 @@ var require_isTamaguiElement_native = __commonJS({
|
|
|
6021
6036
|
"../web/dist/cjs/helpers/isTamaguiElement.native.js"(exports, module2) {
|
|
6022
6037
|
"use strict";
|
|
6023
6038
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6024
|
-
for (var
|
|
6025
|
-
__defProp2(target,
|
|
6039
|
+
for (var name2 in all)
|
|
6040
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6026
6041
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6027
6042
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6028
6043
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6033,7 +6048,7 @@ var require_isTamaguiElement_native = __commonJS({
|
|
|
6033
6048
|
isTamaguiElement: () => isTamaguiElement
|
|
6034
6049
|
});
|
|
6035
6050
|
module2.exports = __toCommonJS2(isTamaguiElement_exports);
|
|
6036
|
-
var import_react = require("react"), import_isTamaguiComponent = require_isTamaguiComponent_native(), isTamaguiElement = (child,
|
|
6051
|
+
var import_react = require("react"), import_isTamaguiComponent = require_isTamaguiComponent_native(), isTamaguiElement = (child, name2) => (0, import_react.isValidElement)(child) && (0, import_isTamaguiComponent.isTamaguiComponent)(child.type, name2);
|
|
6037
6052
|
}
|
|
6038
6053
|
});
|
|
6039
6054
|
|
|
@@ -6042,8 +6057,8 @@ var require_withStaticProperties_native = __commonJS({
|
|
|
6042
6057
|
"../web/dist/cjs/helpers/withStaticProperties.native.js"(exports, module2) {
|
|
6043
6058
|
"use strict";
|
|
6044
6059
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6045
|
-
for (var
|
|
6046
|
-
__defProp2(target,
|
|
6060
|
+
for (var name2 in all)
|
|
6061
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6047
6062
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6048
6063
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6049
6064
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6077,8 +6092,8 @@ var require_useThemeName_native = __commonJS({
|
|
|
6077
6092
|
"../web/dist/cjs/hooks/useThemeName.native.js"(exports, module2) {
|
|
6078
6093
|
"use strict";
|
|
6079
6094
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6080
|
-
for (var
|
|
6081
|
-
__defProp2(target,
|
|
6095
|
+
for (var name2 in all)
|
|
6096
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6082
6097
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6083
6098
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6084
6099
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6091,36 +6106,43 @@ var require_useThemeName_native = __commonJS({
|
|
|
6091
6106
|
module2.exports = __toCommonJS2(useThemeName_exports);
|
|
6092
6107
|
var import_constants2 = require_index_native2(), import_react = require("react"), import_ThemeManagerContext = require_ThemeManagerContext_native();
|
|
6093
6108
|
function useThemeName(opts) {
|
|
6094
|
-
let manager = (0, import_react.useContext)(import_ThemeManagerContext.ThemeManagerContext), [
|
|
6109
|
+
let manager = (0, import_react.useContext)(import_ThemeManagerContext.ThemeManagerContext), [name2, setName] = (0, import_react.useState)((manager == null ? void 0 : manager.state.name) || "");
|
|
6095
6110
|
return (0, import_constants2.useIsomorphicLayoutEffect)(() => {
|
|
6096
6111
|
if (manager)
|
|
6097
6112
|
return setName(manager.state.name), manager.onChangeTheme((next, manager2) => {
|
|
6098
|
-
let
|
|
6099
|
-
|
|
6113
|
+
let name22 = opts != null && opts.parent && manager2.state.parentName || next;
|
|
6114
|
+
name22 && setName(name22);
|
|
6100
6115
|
});
|
|
6101
|
-
}, [manager == null ? void 0 : manager.state.name]),
|
|
6116
|
+
}, [manager == null ? void 0 : manager.state.name]), name2;
|
|
6102
6117
|
}
|
|
6103
6118
|
}
|
|
6104
6119
|
});
|
|
6105
6120
|
|
|
6106
|
-
// ../web/dist/cjs/hooks/
|
|
6107
|
-
var
|
|
6108
|
-
"../web/dist/cjs/hooks/
|
|
6121
|
+
// ../web/dist/cjs/hooks/useConfiguration.native.js
|
|
6122
|
+
var require_useConfiguration_native = __commonJS({
|
|
6123
|
+
"../web/dist/cjs/hooks/useConfiguration.native.js"(exports, module2) {
|
|
6109
6124
|
"use strict";
|
|
6110
6125
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6111
|
-
for (var
|
|
6112
|
-
__defProp2(target,
|
|
6126
|
+
for (var name2 in all)
|
|
6127
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6113
6128
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6114
6129
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6115
6130
|
for (let key of __getOwnPropNames2(from))
|
|
6116
6131
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
6117
6132
|
return to;
|
|
6118
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
6119
|
-
__export2(
|
|
6120
|
-
|
|
6133
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), useConfiguration_exports = {};
|
|
6134
|
+
__export2(useConfiguration_exports, {
|
|
6135
|
+
useConfiguration: () => useConfiguration
|
|
6121
6136
|
});
|
|
6122
|
-
module2.exports = __toCommonJS2(
|
|
6123
|
-
var import_react = require("react"),
|
|
6137
|
+
module2.exports = __toCommonJS2(useConfiguration_exports);
|
|
6138
|
+
var import_react = require("react"), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), useConfiguration = () => {
|
|
6139
|
+
let { groups, animationDriver, ...restComponentConfig } = (0, import_react.useContext)(import_ComponentContext.ComponentContext), { animations, ...restConfig } = (0, import_config.getConfig)();
|
|
6140
|
+
return {
|
|
6141
|
+
...restConfig,
|
|
6142
|
+
...restComponentConfig,
|
|
6143
|
+
animationDriver: animationDriver ?? (0, import_config.getConfig)().animations
|
|
6144
|
+
};
|
|
6145
|
+
};
|
|
6124
6146
|
}
|
|
6125
6147
|
});
|
|
6126
6148
|
|
|
@@ -6129,8 +6151,8 @@ var require_useIsTouchDevice_native = __commonJS({
|
|
|
6129
6151
|
"../web/dist/cjs/hooks/useIsTouchDevice.native.js"(exports, module2) {
|
|
6130
6152
|
"use strict";
|
|
6131
6153
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6132
|
-
for (var
|
|
6133
|
-
__defProp2(target,
|
|
6154
|
+
for (var name2 in all)
|
|
6155
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6134
6156
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6135
6157
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6136
6158
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6150,8 +6172,8 @@ var require_Stack_native = __commonJS({
|
|
|
6150
6172
|
"../web/dist/cjs/views/Stack.native.js"(exports, module2) {
|
|
6151
6173
|
"use strict";
|
|
6152
6174
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6153
|
-
for (var
|
|
6154
|
-
__defProp2(target,
|
|
6175
|
+
for (var name2 in all)
|
|
6176
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6155
6177
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6156
6178
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6157
6179
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6175,8 +6197,8 @@ var require_useProps_native = __commonJS({
|
|
|
6175
6197
|
"../web/dist/cjs/hooks/useProps.native.js"(exports, module2) {
|
|
6176
6198
|
"use strict";
|
|
6177
6199
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6178
|
-
for (var
|
|
6179
|
-
__defProp2(target,
|
|
6200
|
+
for (var name2 in all)
|
|
6201
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6180
6202
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6181
6203
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6182
6204
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6206,14 +6228,14 @@ var require_useProps_native = __commonJS({
|
|
|
6206
6228
|
return usePropsAndStyle(props, opts)[1];
|
|
6207
6229
|
}
|
|
6208
6230
|
function usePropsAndStyle(props, opts) {
|
|
6209
|
-
var _a;
|
|
6231
|
+
var _a, _b;
|
|
6210
6232
|
let staticConfig = ((_a = opts == null ? void 0 : opts.forComponent) == null ? void 0 : _a.staticConfig) ?? import_Stack.Stack.staticConfig, [themeState, theme] = (0, import_useTheme.useThemeWithState)({
|
|
6211
6233
|
componentName: staticConfig.componentName
|
|
6212
6234
|
}), componentContext = (0, import_react.useContext)(import_ComponentContext.ComponentContext), media = (0, import_useMedia.useMedia)(), splitStyles = (0, import_getSplitStyles.useSplitStyles)(
|
|
6213
6235
|
props,
|
|
6214
6236
|
staticConfig,
|
|
6215
6237
|
theme,
|
|
6216
|
-
themeState.state.name,
|
|
6238
|
+
((_b = themeState.state) == null ? void 0 : _b.name) || "",
|
|
6217
6239
|
import_defaultComponentState.defaultComponentStateMounted,
|
|
6218
6240
|
{
|
|
6219
6241
|
isAnimated: !1,
|
|
@@ -6235,8 +6257,8 @@ var require_View_native = __commonJS({
|
|
|
6235
6257
|
"../web/dist/cjs/views/View.native.js"(exports, module2) {
|
|
6236
6258
|
"use strict";
|
|
6237
6259
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6238
|
-
for (var
|
|
6239
|
-
__defProp2(target,
|
|
6260
|
+
for (var name2 in all)
|
|
6261
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6240
6262
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6241
6263
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6242
6264
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6262,8 +6284,8 @@ var require_Text_native = __commonJS({
|
|
|
6262
6284
|
"../web/dist/cjs/views/Text.native.js"(exports, module2) {
|
|
6263
6285
|
"use strict";
|
|
6264
6286
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6265
|
-
for (var
|
|
6266
|
-
__defProp2(target,
|
|
6287
|
+
for (var name2 in all)
|
|
6288
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6267
6289
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6268
6290
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6269
6291
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6309,8 +6331,8 @@ var require_ThemeProvider_native = __commonJS({
|
|
|
6309
6331
|
"../web/dist/cjs/views/ThemeProvider.native.js"(exports, module2) {
|
|
6310
6332
|
"use strict";
|
|
6311
6333
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6312
|
-
for (var
|
|
6313
|
-
__defProp2(target,
|
|
6334
|
+
for (var name2 in all)
|
|
6335
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6314
6336
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6315
6337
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6316
6338
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6346,8 +6368,8 @@ var require_FontLanguage_native = __commonJS({
|
|
|
6346
6368
|
"../web/dist/cjs/views/FontLanguage.native.js"(exports, module2) {
|
|
6347
6369
|
"use strict";
|
|
6348
6370
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6349
|
-
for (var
|
|
6350
|
-
__defProp2(target,
|
|
6371
|
+
for (var name2 in all)
|
|
6372
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6351
6373
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6352
6374
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6353
6375
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6370,8 +6392,8 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
6370
6392
|
"../web/dist/cjs/views/TamaguiProvider.native.js"(exports, module2) {
|
|
6371
6393
|
"use strict";
|
|
6372
6394
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6373
|
-
for (var
|
|
6374
|
-
__defProp2(target,
|
|
6395
|
+
for (var name2 in all)
|
|
6396
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6375
6397
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6376
6398
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6377
6399
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6417,24 +6439,24 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
6417
6439
|
}
|
|
6418
6440
|
});
|
|
6419
6441
|
|
|
6420
|
-
// ../web/dist/cjs/views/
|
|
6421
|
-
var
|
|
6422
|
-
"../web/dist/cjs/views/
|
|
6442
|
+
// ../web/dist/cjs/views/Configuration.native.js
|
|
6443
|
+
var require_Configuration_native = __commonJS({
|
|
6444
|
+
"../web/dist/cjs/views/Configuration.native.js"(exports, module2) {
|
|
6423
6445
|
"use strict";
|
|
6424
6446
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6425
|
-
for (var
|
|
6426
|
-
__defProp2(target,
|
|
6447
|
+
for (var name2 in all)
|
|
6448
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6427
6449
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6428
6450
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6429
6451
|
for (let key of __getOwnPropNames2(from))
|
|
6430
6452
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
6431
6453
|
return to;
|
|
6432
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
6433
|
-
__export2(
|
|
6434
|
-
|
|
6454
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), Configuration_exports = {};
|
|
6455
|
+
__export2(Configuration_exports, {
|
|
6456
|
+
Configuration: () => Configuration
|
|
6435
6457
|
});
|
|
6436
|
-
module2.exports = __toCommonJS2(
|
|
6437
|
-
var import_ComponentContext = require_ComponentContext_native(), import_jsx_runtime = require("react/jsx-runtime"),
|
|
6458
|
+
module2.exports = __toCommonJS2(Configuration_exports);
|
|
6459
|
+
var import_ComponentContext = require_ComponentContext_native(), import_jsx_runtime = require("react/jsx-runtime"), Configuration = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...props });
|
|
6438
6460
|
}
|
|
6439
6461
|
});
|
|
6440
6462
|
|
|
@@ -6443,8 +6465,8 @@ var require_useGet_native = __commonJS({
|
|
|
6443
6465
|
"../use-event/dist/cjs/useGet.native.js"(exports, module2) {
|
|
6444
6466
|
"use strict";
|
|
6445
6467
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6446
|
-
for (var
|
|
6447
|
-
__defProp2(target,
|
|
6468
|
+
for (var name2 in all)
|
|
6469
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6448
6470
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6449
6471
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6450
6472
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6476,8 +6498,8 @@ var require_useEvent_native = __commonJS({
|
|
|
6476
6498
|
"../use-event/dist/cjs/useEvent.native.js"(exports, module2) {
|
|
6477
6499
|
"use strict";
|
|
6478
6500
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6479
|
-
for (var
|
|
6480
|
-
__defProp2(target,
|
|
6501
|
+
for (var name2 in all)
|
|
6502
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6481
6503
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6482
6504
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6483
6505
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6519,8 +6541,8 @@ var require_index_native9 = __commonJS({
|
|
|
6519
6541
|
"../web/dist/cjs/index.native.js"(exports, module2) {
|
|
6520
6542
|
"use strict";
|
|
6521
6543
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6522
|
-
for (var
|
|
6523
|
-
__defProp2(target,
|
|
6544
|
+
for (var name2 in all)
|
|
6545
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6524
6546
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6525
6547
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6526
6548
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6563,7 +6585,6 @@ var require_index_native9 = __commonJS({
|
|
|
6563
6585
|
__reExport2(src_exports2, require_createStyledContext_native(), module2.exports);
|
|
6564
6586
|
__reExport2(src_exports2, require_expandStyles_native(), module2.exports);
|
|
6565
6587
|
__reExport2(src_exports2, require_propMapper_native(), module2.exports);
|
|
6566
|
-
__reExport2(src_exports2, require_getAnimationDriver_native(), module2.exports);
|
|
6567
6588
|
__reExport2(src_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
6568
6589
|
__reExport2(src_exports2, require_getSplitStyles_native(), module2.exports);
|
|
6569
6590
|
__reExport2(src_exports2, require_getStylesAtomic_native(), module2.exports);
|
|
@@ -6584,9 +6605,10 @@ var require_index_native9 = __commonJS({
|
|
|
6584
6605
|
var import_useMedia = require_useMedia_native();
|
|
6585
6606
|
__reExport2(src_exports2, require_useTheme_native(), module2.exports);
|
|
6586
6607
|
__reExport2(src_exports2, require_useThemeName_native(), module2.exports);
|
|
6587
|
-
__reExport2(src_exports2,
|
|
6608
|
+
__reExport2(src_exports2, require_useConfiguration_native(), module2.exports);
|
|
6588
6609
|
__reExport2(src_exports2, require_useIsTouchDevice_native(), module2.exports);
|
|
6589
6610
|
__reExport2(src_exports2, require_useProps_native(), module2.exports);
|
|
6611
|
+
__reExport2(src_exports2, require_useConfiguration_native(), module2.exports);
|
|
6590
6612
|
__reExport2(src_exports2, require_Slot_native(), module2.exports);
|
|
6591
6613
|
__reExport2(src_exports2, require_Stack_native(), module2.exports);
|
|
6592
6614
|
__reExport2(src_exports2, require_View_native(), module2.exports);
|
|
@@ -6595,7 +6617,7 @@ var require_index_native9 = __commonJS({
|
|
|
6595
6617
|
__reExport2(src_exports2, require_ThemeProvider_native(), module2.exports);
|
|
6596
6618
|
__reExport2(src_exports2, require_FontLanguage_native(), module2.exports);
|
|
6597
6619
|
__reExport2(src_exports2, require_TamaguiProvider_native(), module2.exports);
|
|
6598
|
-
__reExport2(src_exports2,
|
|
6620
|
+
__reExport2(src_exports2, require_Configuration_native(), module2.exports);
|
|
6599
6621
|
__reExport2(src_exports2, require_index_native6(), module2.exports);
|
|
6600
6622
|
__reExport2(src_exports2, require_index_native8(), module2.exports);
|
|
6601
6623
|
__reExport2(src_exports2, require_index_native5(), module2.exports);
|