@tamagui/core 1.72.2 → 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/test.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))
|
|
@@ -427,8 +427,8 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
427
427
|
"../react-native-use-responder-events/dist/cjs/ResponderSystem.native.js"(exports, module2) {
|
|
428
428
|
"use strict";
|
|
429
429
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
430
|
-
for (var
|
|
431
|
-
__defProp2(target,
|
|
430
|
+
for (var name2 in all)
|
|
431
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
432
432
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
433
433
|
if (from && typeof from == "object" || typeof from == "function")
|
|
434
434
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -634,8 +634,8 @@ var require_useResponderEvents_native = __commonJS({
|
|
|
634
634
|
"../react-native-use-responder-events/dist/cjs/useResponderEvents.native.js"(exports, module2) {
|
|
635
635
|
"use strict";
|
|
636
636
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
637
|
-
for (var
|
|
638
|
-
__defProp2(target,
|
|
637
|
+
for (var name2 in all)
|
|
638
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
639
639
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
640
640
|
if (from && typeof from == "object" || typeof from == "function")
|
|
641
641
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -697,8 +697,8 @@ var require_clamp_native = __commonJS({
|
|
|
697
697
|
"../helpers/dist/cjs/clamp.native.js"(exports, module2) {
|
|
698
698
|
"use strict";
|
|
699
699
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
700
|
-
for (var
|
|
701
|
-
__defProp2(target,
|
|
700
|
+
for (var name2 in all)
|
|
701
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
702
702
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
703
703
|
if (from && typeof from == "object" || typeof from == "function")
|
|
704
704
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -720,8 +720,8 @@ var require_composeEventHandlers_native = __commonJS({
|
|
|
720
720
|
"../helpers/dist/cjs/composeEventHandlers.native.js"(exports, module2) {
|
|
721
721
|
"use strict";
|
|
722
722
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
723
|
-
for (var
|
|
724
|
-
__defProp2(target,
|
|
723
|
+
for (var name2 in all)
|
|
724
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
725
725
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
726
726
|
if (from && typeof from == "object" || typeof from == "function")
|
|
727
727
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -747,8 +747,8 @@ var require_concatClassName_native = __commonJS({
|
|
|
747
747
|
"../helpers/dist/cjs/concatClassName.native.js"(exports, module2) {
|
|
748
748
|
"use strict";
|
|
749
749
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
750
|
-
for (var
|
|
751
|
-
__defProp2(target,
|
|
750
|
+
for (var name2 in all)
|
|
751
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
752
752
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
753
753
|
if (from && typeof from == "object" || typeof from == "function")
|
|
754
754
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -771,19 +771,19 @@ var require_concatClassName_native = __commonJS({
|
|
|
771
771
|
}
|
|
772
772
|
let names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length;
|
|
773
773
|
for (let i = numNames - 1; i >= 0; i--) {
|
|
774
|
-
let
|
|
775
|
-
if (!
|
|
774
|
+
let name2 = names[i];
|
|
775
|
+
if (!name2 || name2 === " ")
|
|
776
776
|
continue;
|
|
777
|
-
if (
|
|
778
|
-
final =
|
|
777
|
+
if (name2[0] !== "_") {
|
|
778
|
+
final = name2 + " " + final;
|
|
779
779
|
continue;
|
|
780
780
|
}
|
|
781
|
-
let splitIndex =
|
|
781
|
+
let splitIndex = name2.indexOf("-");
|
|
782
782
|
if (splitIndex < 1) {
|
|
783
|
-
final =
|
|
783
|
+
final = name2 + " " + final;
|
|
784
784
|
continue;
|
|
785
785
|
}
|
|
786
|
-
let isMediaQuery =
|
|
786
|
+
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;
|
|
787
787
|
if (usedPrefixes.indexOf(uid) > -1)
|
|
788
788
|
continue;
|
|
789
789
|
usedPrefixes.push(uid);
|
|
@@ -794,7 +794,7 @@ var require_concatClassName_native = __commonJS({
|
|
|
794
794
|
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
795
795
|
}
|
|
796
796
|
return po && propName in po && po[propName] !== null;
|
|
797
|
-
}) || (final =
|
|
797
|
+
}) || (final = name2 + " " + final);
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
return final;
|
|
@@ -812,8 +812,8 @@ var require_index_native2 = __commonJS({
|
|
|
812
812
|
"../constants/dist/cjs/index.native.js"(exports, module2) {
|
|
813
813
|
"use strict";
|
|
814
814
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
815
|
-
for (var
|
|
816
|
-
__defProp2(target,
|
|
815
|
+
for (var name2 in all)
|
|
816
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
817
817
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
818
818
|
if (from && typeof from == "object" || typeof from == "function")
|
|
819
819
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -843,8 +843,8 @@ var require_validStyleProps_native = __commonJS({
|
|
|
843
843
|
"../helpers/dist/cjs/validStyleProps.native.js"(exports, module2) {
|
|
844
844
|
"use strict";
|
|
845
845
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
846
|
-
for (var
|
|
847
|
-
__defProp2(target,
|
|
846
|
+
for (var name2 in all)
|
|
847
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
848
848
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
849
849
|
if (from && typeof from == "object" || typeof from == "function")
|
|
850
850
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1069,8 +1069,8 @@ var require_index_native3 = __commonJS({
|
|
|
1069
1069
|
"../simple-hash/dist/cjs/index.native.js"(exports, module2) {
|
|
1070
1070
|
"use strict";
|
|
1071
1071
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1072
|
-
for (var
|
|
1073
|
-
__defProp2(target,
|
|
1072
|
+
for (var name2 in all)
|
|
1073
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1074
1074
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1075
1075
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1076
1076
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1134,8 +1134,8 @@ var require_config_native = __commonJS({
|
|
|
1134
1134
|
"../web/dist/cjs/config.native.js"(exports, module2) {
|
|
1135
1135
|
"use strict";
|
|
1136
1136
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1137
|
-
for (var
|
|
1138
|
-
__defProp2(target,
|
|
1137
|
+
for (var name2 in all)
|
|
1138
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1139
1139
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1140
1140
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1141
1141
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1163,8 +1163,8 @@ var require_config_native = __commonJS({
|
|
|
1163
1163
|
module2.exports = __toCommonJS2(config_exports);
|
|
1164
1164
|
var import_constants2 = require_index_native2(), conf, setConfig = (next) => {
|
|
1165
1165
|
conf = next, configListeners.forEach((cb) => cb(next));
|
|
1166
|
-
}, setConfigFont = (
|
|
1167
|
-
conf.fonts[
|
|
1166
|
+
}, setConfigFont = (name2, font, fontParsed) => {
|
|
1167
|
+
conf.fonts[name2] = font, conf.fontsParsed[`$${name2}`] = fontParsed;
|
|
1168
1168
|
}, getConfig2 = () => {
|
|
1169
1169
|
if (!conf)
|
|
1170
1170
|
throw new Error(
|
|
@@ -1190,13 +1190,13 @@ var require_config_native = __commonJS({
|
|
|
1190
1190
|
conf ? cb(conf) : configListeners.add(cb);
|
|
1191
1191
|
}, updateConfig2 = (key, value) => {
|
|
1192
1192
|
Object.assign(conf[key], value);
|
|
1193
|
-
}, getFont = (
|
|
1193
|
+
}, getFont = (name2) => {
|
|
1194
1194
|
var _a;
|
|
1195
1195
|
let conf2 = getConfig2();
|
|
1196
|
-
return conf2.fontsParsed[
|
|
1196
|
+
return conf2.fontsParsed[name2] ?? ((_a = Object.entries(conf2.fontsParsed).find(
|
|
1197
1197
|
([k]) => {
|
|
1198
1198
|
var _a2, _b;
|
|
1199
|
-
return ((_b = (_a2 = conf2.fontsParsed[k]) == null ? void 0 : _a2.family) == null ? void 0 : _b.val) ===
|
|
1199
|
+
return ((_b = (_a2 = conf2.fontsParsed[k]) == null ? void 0 : _a2.family) == null ? void 0 : _b.val) === name2;
|
|
1200
1200
|
}
|
|
1201
1201
|
)) == null ? void 0 : _a[1]);
|
|
1202
1202
|
}, devConfig;
|
|
@@ -1210,8 +1210,8 @@ var require_createVariable_native = __commonJS({
|
|
|
1210
1210
|
"../web/dist/cjs/createVariable.native.js"(exports, module2) {
|
|
1211
1211
|
"use strict";
|
|
1212
1212
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1213
|
-
for (var
|
|
1214
|
-
__defProp2(target,
|
|
1213
|
+
for (var name2 in all)
|
|
1214
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1215
1215
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1216
1216
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1217
1217
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1234,13 +1234,13 @@ var require_createVariable_native = __commonJS({
|
|
|
1234
1234
|
var import_constants2 = require_index_native2(), import_helpers = require_index_native4(), import_config = require_config_native(), IS_VAR = "isVar", createVariable = (props, skipHash = !1) => {
|
|
1235
1235
|
if (!skipHash && isVariable(props))
|
|
1236
1236
|
return props;
|
|
1237
|
-
let { key, name, val } = props;
|
|
1237
|
+
let { key, name: name2, val } = props;
|
|
1238
1238
|
return {
|
|
1239
1239
|
[IS_VAR]: !0,
|
|
1240
1240
|
key,
|
|
1241
|
-
name: skipHash ? "" : (0, import_helpers.simpleHash)(
|
|
1241
|
+
name: skipHash ? "" : (0, import_helpers.simpleHash)(name2, 40),
|
|
1242
1242
|
val,
|
|
1243
|
-
variable: import_constants2.isWeb ? skipHash ? `var(--${
|
|
1243
|
+
variable: import_constants2.isWeb ? skipHash ? `var(--${name2})` : createCSSVariable(name2) : ""
|
|
1244
1244
|
};
|
|
1245
1245
|
};
|
|
1246
1246
|
function variableToString(vrble, getValue = !1) {
|
|
@@ -1266,8 +1266,8 @@ var require_createVariable_native = __commonJS({
|
|
|
1266
1266
|
return isVariable(v) ? v.variable : v;
|
|
1267
1267
|
}
|
|
1268
1268
|
var createCSSVariable = (nameProp, includeVar = !0) => {
|
|
1269
|
-
let
|
|
1270
|
-
return includeVar ? `var(--${
|
|
1269
|
+
let name2 = (0, import_helpers.simpleHash)(nameProp, 60);
|
|
1270
|
+
return includeVar ? `var(--${name2})` : name2;
|
|
1271
1271
|
};
|
|
1272
1272
|
}
|
|
1273
1273
|
});
|
|
@@ -1277,8 +1277,8 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1277
1277
|
"../web/dist/cjs/helpers/insertStyleRule.native.js"(exports, module2) {
|
|
1278
1278
|
"use strict";
|
|
1279
1279
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1280
|
-
for (var
|
|
1281
|
-
__defProp2(target,
|
|
1280
|
+
for (var name2 in all)
|
|
1281
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1282
1282
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1283
1283
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1284
1284
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1397,9 +1397,9 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1397
1397
|
theme: values
|
|
1398
1398
|
};
|
|
1399
1399
|
for (let selector of selectors) {
|
|
1400
|
-
let scheme = selector.includes("t_dark") ? "dark" : selector.includes("t_light") ? "light" : "",
|
|
1401
|
-
|
|
1402
|
-
let themeName = `${scheme}${scheme &&
|
|
1400
|
+
let scheme = selector.includes("t_dark") ? "dark" : selector.includes("t_light") ? "light" : "", name2 = selector.slice(selector.lastIndexOf(".t_") + 3);
|
|
1401
|
+
name2.startsWith(scheme) && (name2 = name2.slice(scheme.length + 1)), scheme === name2 && (scheme = "");
|
|
1402
|
+
let themeName = `${scheme}${scheme && name2 ? "_" : ""}${name2}`;
|
|
1403
1403
|
dedupedEntry.names.includes(themeName) || dedupedEntry.names.push(themeName);
|
|
1404
1404
|
}
|
|
1405
1405
|
return dedupedEntry;
|
|
@@ -1459,8 +1459,8 @@ var require_createProxy_native = __commonJS({
|
|
|
1459
1459
|
"../web/dist/cjs/helpers/createProxy.native.js"(exports, module2) {
|
|
1460
1460
|
"use strict";
|
|
1461
1461
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1462
|
-
for (var
|
|
1463
|
-
__defProp2(target,
|
|
1462
|
+
for (var name2 in all)
|
|
1463
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1464
1464
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1465
1465
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1466
1466
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1482,8 +1482,8 @@ var require_matchMedia_native = __commonJS({
|
|
|
1482
1482
|
"../web/dist/cjs/helpers/matchMedia.native.js"(exports, module2) {
|
|
1483
1483
|
"use strict";
|
|
1484
1484
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1485
|
-
for (var
|
|
1486
|
-
__defProp2(target,
|
|
1485
|
+
for (var name2 in all)
|
|
1486
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1487
1487
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1488
1488
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1489
1489
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1517,8 +1517,8 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
1517
1517
|
"../web/dist/cjs/helpers/pseudoDescriptors.native.js"(exports, module2) {
|
|
1518
1518
|
"use strict";
|
|
1519
1519
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1520
|
-
for (var
|
|
1521
|
-
__defProp2(target,
|
|
1520
|
+
for (var name2 in all)
|
|
1521
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1522
1522
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1523
1523
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1524
1524
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1565,13 +1565,159 @@ var require_pseudoDescriptors_native = __commonJS({
|
|
|
1565
1565
|
}
|
|
1566
1566
|
});
|
|
1567
1567
|
|
|
1568
|
+
// ../web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
1569
|
+
var require_objectIdentityKey_native = __commonJS({
|
|
1570
|
+
"../web/dist/cjs/helpers/objectIdentityKey.native.js"(exports, module2) {
|
|
1571
|
+
"use strict";
|
|
1572
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1573
|
+
for (var name2 in all)
|
|
1574
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1575
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
1576
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
1577
|
+
for (let key of __getOwnPropNames2(from))
|
|
1578
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1579
|
+
return to;
|
|
1580
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), objectIdentityKey_exports = {};
|
|
1581
|
+
__export2(objectIdentityKey_exports, {
|
|
1582
|
+
objectIdentityKey: () => objectIdentityKey
|
|
1583
|
+
});
|
|
1584
|
+
module2.exports = __toCommonJS2(objectIdentityKey_exports);
|
|
1585
|
+
function objectIdentityKey(obj) {
|
|
1586
|
+
let k = "";
|
|
1587
|
+
for (let key in obj) {
|
|
1588
|
+
k += key;
|
|
1589
|
+
let arg = obj[key], type = typeof arg;
|
|
1590
|
+
if (!arg || type !== "object")
|
|
1591
|
+
k += type + arg;
|
|
1592
|
+
else if (cache.has(arg))
|
|
1593
|
+
k += cache.get(arg);
|
|
1594
|
+
else {
|
|
1595
|
+
let v = Math.random();
|
|
1596
|
+
cache.set(arg, v), k += v;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
return k;
|
|
1600
|
+
}
|
|
1601
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
1602
|
+
}
|
|
1603
|
+
});
|
|
1604
|
+
|
|
1605
|
+
// ../web/dist/cjs/helpers/createStyledContext.native.js
|
|
1606
|
+
var require_createStyledContext_native = __commonJS({
|
|
1607
|
+
"../web/dist/cjs/helpers/createStyledContext.native.js"(exports, module2) {
|
|
1608
|
+
"use strict";
|
|
1609
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1610
|
+
for (var name2 in all)
|
|
1611
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1612
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
1613
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
1614
|
+
for (let key of __getOwnPropNames2(from))
|
|
1615
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1616
|
+
return to;
|
|
1617
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createStyledContext_exports = {};
|
|
1618
|
+
__export2(createStyledContext_exports, {
|
|
1619
|
+
createStyledContext: () => createStyledContext
|
|
1620
|
+
});
|
|
1621
|
+
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
1622
|
+
var import_react = require("react"), import_objectIdentityKey = require_objectIdentityKey_native(), import_jsx_runtime = require("react/jsx-runtime");
|
|
1623
|
+
function createStyledContext(defaultValues) {
|
|
1624
|
+
let OGContext = (0, import_react.createContext)(defaultValues), OGProvider = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map(), Provider = ({
|
|
1625
|
+
children,
|
|
1626
|
+
scope,
|
|
1627
|
+
...values
|
|
1628
|
+
}) => {
|
|
1629
|
+
let value = (0, import_react.useMemo)(() => ({
|
|
1630
|
+
// this ! is a workaround for ts error
|
|
1631
|
+
...defaultValues,
|
|
1632
|
+
...values
|
|
1633
|
+
}), [(0, import_objectIdentityKey.objectIdentityKey)(values)]), Provider2 = OGProvider;
|
|
1634
|
+
if (scope) {
|
|
1635
|
+
let ScopedContext = scopedContexts.get(scope);
|
|
1636
|
+
ScopedContext || (ScopedContext = (0, import_react.createContext)(defaultValues), scopedContexts.set(scope, ScopedContext)), Provider2 = ScopedContext.Provider;
|
|
1637
|
+
}
|
|
1638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider2, { value, children });
|
|
1639
|
+
}, useStyledContext = (scope) => {
|
|
1640
|
+
let context = scope ? scopedContexts.get(scope) : OGContext;
|
|
1641
|
+
return (0, import_react.useContext)(context);
|
|
1642
|
+
};
|
|
1643
|
+
return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
});
|
|
1647
|
+
|
|
1648
|
+
// ../web/dist/cjs/contexts/ComponentContext.native.js
|
|
1649
|
+
var require_ComponentContext_native = __commonJS({
|
|
1650
|
+
"../web/dist/cjs/contexts/ComponentContext.native.js"(exports, module2) {
|
|
1651
|
+
"use strict";
|
|
1652
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1653
|
+
for (var name2 in all)
|
|
1654
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1655
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
1656
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
1657
|
+
for (let key of __getOwnPropNames2(from))
|
|
1658
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1659
|
+
return to;
|
|
1660
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), ComponentContext_exports = {};
|
|
1661
|
+
__export2(ComponentContext_exports, {
|
|
1662
|
+
ComponentContext: () => ComponentContext
|
|
1663
|
+
});
|
|
1664
|
+
module2.exports = __toCommonJS2(ComponentContext_exports);
|
|
1665
|
+
var import_createStyledContext = require_createStyledContext_native(), listeners = /* @__PURE__ */ new Set(), ComponentContext = (0, import_createStyledContext.createStyledContext)({
|
|
1666
|
+
disableSSR: void 0,
|
|
1667
|
+
inText: !1,
|
|
1668
|
+
language: null,
|
|
1669
|
+
animationDriver: null,
|
|
1670
|
+
groups: {
|
|
1671
|
+
emit: (name2, state) => {
|
|
1672
|
+
listeners.forEach((l) => l(name2, state));
|
|
1673
|
+
},
|
|
1674
|
+
subscribe(cb) {
|
|
1675
|
+
return listeners.add(cb), () => {
|
|
1676
|
+
listeners.delete(cb);
|
|
1677
|
+
};
|
|
1678
|
+
},
|
|
1679
|
+
state: {}
|
|
1680
|
+
}
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
});
|
|
1684
|
+
|
|
1685
|
+
// ../web/dist/cjs/hooks/useDisableSSR.native.js
|
|
1686
|
+
var require_useDisableSSR_native = __commonJS({
|
|
1687
|
+
"../web/dist/cjs/hooks/useDisableSSR.native.js"(exports, module2) {
|
|
1688
|
+
"use strict";
|
|
1689
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1690
|
+
for (var name2 in all)
|
|
1691
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1692
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
1693
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
1694
|
+
for (let key of __getOwnPropNames2(from))
|
|
1695
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1696
|
+
return to;
|
|
1697
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), useDisableSSR_exports = {};
|
|
1698
|
+
__export2(useDisableSSR_exports, {
|
|
1699
|
+
getDisableSSR: () => getDisableSSR,
|
|
1700
|
+
useDisableSSR: () => useDisableSSR
|
|
1701
|
+
});
|
|
1702
|
+
module2.exports = __toCommonJS2(useDisableSSR_exports);
|
|
1703
|
+
var import_react = require("react"), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native();
|
|
1704
|
+
function useDisableSSR() {
|
|
1705
|
+
let componentContext = (0, import_react.useContext)(import_ComponentContext.ComponentContext);
|
|
1706
|
+
return getDisableSSR(componentContext);
|
|
1707
|
+
}
|
|
1708
|
+
function getDisableSSR(componentContext) {
|
|
1709
|
+
return componentContext.disableSSR ?? (0, import_config.getConfig)().disableSSR;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
|
|
1568
1714
|
// ../web/dist/cjs/hooks/useMedia.native.js
|
|
1569
1715
|
var require_useMedia_native = __commonJS({
|
|
1570
1716
|
"../web/dist/cjs/hooks/useMedia.native.js"(exports, module2) {
|
|
1571
1717
|
"use strict";
|
|
1572
1718
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1573
|
-
for (var
|
|
1574
|
-
__defProp2(target,
|
|
1719
|
+
for (var name2 in all)
|
|
1720
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1575
1721
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1576
1722
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1577
1723
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1580,7 +1726,6 @@ var require_useMedia_native = __commonJS({
|
|
|
1580
1726
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), useMedia_exports = {};
|
|
1581
1727
|
__export2(useMedia_exports, {
|
|
1582
1728
|
configureMedia: () => configureMedia2,
|
|
1583
|
-
getInitialMediaState: () => getInitialMediaState,
|
|
1584
1729
|
getMedia: () => getMedia2,
|
|
1585
1730
|
getMediaImportanceIfMoreImportant: () => getMediaImportanceIfMoreImportant,
|
|
1586
1731
|
getMediaKeyImportance: () => getMediaKeyImportance,
|
|
@@ -1598,7 +1743,7 @@ var require_useMedia_native = __commonJS({
|
|
|
1598
1743
|
useMediaListeners: () => useMediaListeners
|
|
1599
1744
|
});
|
|
1600
1745
|
module2.exports = __toCommonJS2(useMedia_exports);
|
|
1601
|
-
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 = {}, mediaQueryConfig2 = {}, getMedia2 = () => mediaState2, mediaKeys = /* @__PURE__ */ new Set(), isMediaKey = (key) => mediaKeys.has(key) || key[0] === "$" && (key.startsWith("$platform-") || key.startsWith("$theme-") || key.startsWith("$group-")), initState,
|
|
1746
|
+
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 = {}, 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) => (0, import_config.getConfig)().settings.mediaPropOrder ? defaultMediaImportance : mediaKeysOrdered.indexOf(key) + 100, dispose = /* @__PURE__ */ new Set(), mediaVersion = 0, configureMedia2 = (config) => {
|
|
1602
1747
|
let { media, mediaQueryDefaultActive } = config;
|
|
1603
1748
|
if (media) {
|
|
1604
1749
|
mediaVersion++;
|
|
@@ -1647,23 +1792,23 @@ var require_useMedia_native = __commonJS({
|
|
|
1647
1792
|
function subscribe(subscriber) {
|
|
1648
1793
|
return listeners.add(subscriber), () => listeners.delete(subscriber);
|
|
1649
1794
|
}
|
|
1650
|
-
function useMedia2(uid) {
|
|
1651
|
-
let internal = (0, import_react.useRef)(), state = (0, import_react.useSyncExternalStore)(
|
|
1795
|
+
function useMedia2(uid, componentContext) {
|
|
1796
|
+
let internal = (0, import_react.useRef)(), initialState = ((componentContext ? (0, import_useDisableSSR.getDisableSSR)(componentContext) : (0, import_useDisableSSR.useDisableSSR)()) ? mediaState2 : initState) || {}, state = (0, import_react.useSyncExternalStore)(
|
|
1652
1797
|
subscribe,
|
|
1653
1798
|
() => {
|
|
1654
1799
|
if (!internal.current)
|
|
1655
|
-
return
|
|
1800
|
+
return initialState;
|
|
1656
1801
|
let { touched, prev } = internal.current, componentState = uid ? shouldUpdate.get(uid) : void 0;
|
|
1657
1802
|
if (componentState && componentState.enabled === !1)
|
|
1658
1803
|
return prev;
|
|
1659
1804
|
let testKeys = (componentState == null ? void 0 : componentState.keys) ?? ((!componentState || componentState.enabled) && touched ? [...touched] : null);
|
|
1660
1805
|
return !testKeys || testKeys != null && testKeys.every((key) => mediaState2[key] === prev[key]) ? prev : (internal.current.prev = mediaState2, mediaState2);
|
|
1661
1806
|
},
|
|
1662
|
-
() =>
|
|
1807
|
+
() => initialState
|
|
1663
1808
|
);
|
|
1664
1809
|
return new Proxy(state, {
|
|
1665
1810
|
get(_, key) {
|
|
1666
|
-
return typeof key == "string" && (internal.current ||= { prev:
|
|
1811
|
+
return typeof key == "string" && (internal.current ||= { prev: initialState }, internal.current.touched ||= /* @__PURE__ */ new Set(), internal.current.touched.add(key)), Reflect.get(state, key);
|
|
1667
1812
|
}
|
|
1668
1813
|
});
|
|
1669
1814
|
}
|
|
@@ -1710,8 +1855,8 @@ var require_Tamagui_native = __commonJS({
|
|
|
1710
1855
|
"../web/dist/cjs/Tamagui.native.js"(exports, module2) {
|
|
1711
1856
|
"use strict";
|
|
1712
1857
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1713
|
-
for (var
|
|
1714
|
-
__defProp2(target,
|
|
1858
|
+
for (var name2 in all)
|
|
1859
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1715
1860
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1716
1861
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1717
1862
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1764,8 +1909,8 @@ var require_compose_refs_native = __commonJS({
|
|
|
1764
1909
|
"../compose-refs/dist/cjs/compose-refs.native.js"(exports, module2) {
|
|
1765
1910
|
"use strict";
|
|
1766
1911
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1767
|
-
for (var
|
|
1768
|
-
__defProp2(target,
|
|
1912
|
+
for (var name2 in all)
|
|
1913
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1769
1914
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1770
1915
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1771
1916
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1817,8 +1962,8 @@ var require_index_native6 = __commonJS({
|
|
|
1817
1962
|
"../use-did-finish-ssr/dist/cjs/index.native.js"(exports, module2) {
|
|
1818
1963
|
"use strict";
|
|
1819
1964
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1820
|
-
for (var
|
|
1821
|
-
__defProp2(target,
|
|
1965
|
+
for (var name2 in all)
|
|
1966
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1822
1967
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1823
1968
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1824
1969
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1845,8 +1990,8 @@ var require_constants_native = __commonJS({
|
|
|
1845
1990
|
"../web/dist/cjs/constants/constants.native.js"(exports, module2) {
|
|
1846
1991
|
"use strict";
|
|
1847
1992
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1848
|
-
for (var
|
|
1849
|
-
__defProp2(target,
|
|
1993
|
+
for (var name2 in all)
|
|
1994
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1850
1995
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1851
1996
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1852
1997
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -1865,129 +2010,13 @@ var require_constants_native = __commonJS({
|
|
|
1865
2010
|
}
|
|
1866
2011
|
});
|
|
1867
2012
|
|
|
1868
|
-
// ../web/dist/cjs/helpers/objectIdentityKey.native.js
|
|
1869
|
-
var require_objectIdentityKey_native = __commonJS({
|
|
1870
|
-
"../web/dist/cjs/helpers/objectIdentityKey.native.js"(exports, module2) {
|
|
1871
|
-
"use strict";
|
|
1872
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1873
|
-
for (var name in all)
|
|
1874
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
1875
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
1876
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
1877
|
-
for (let key of __getOwnPropNames2(from))
|
|
1878
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1879
|
-
return to;
|
|
1880
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), objectIdentityKey_exports = {};
|
|
1881
|
-
__export2(objectIdentityKey_exports, {
|
|
1882
|
-
objectIdentityKey: () => objectIdentityKey
|
|
1883
|
-
});
|
|
1884
|
-
module2.exports = __toCommonJS2(objectIdentityKey_exports);
|
|
1885
|
-
function objectIdentityKey(obj) {
|
|
1886
|
-
let k = "";
|
|
1887
|
-
for (let key in obj) {
|
|
1888
|
-
k += key;
|
|
1889
|
-
let arg = obj[key], type = typeof arg;
|
|
1890
|
-
if (!arg || type !== "object")
|
|
1891
|
-
k += type + arg;
|
|
1892
|
-
else if (cache.has(arg))
|
|
1893
|
-
k += cache.get(arg);
|
|
1894
|
-
else {
|
|
1895
|
-
let v = Math.random();
|
|
1896
|
-
cache.set(arg, v), k += v;
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
return k;
|
|
1900
|
-
}
|
|
1901
|
-
var cache = /* @__PURE__ */ new WeakMap();
|
|
1902
|
-
}
|
|
1903
|
-
});
|
|
1904
|
-
|
|
1905
|
-
// ../web/dist/cjs/helpers/createStyledContext.native.js
|
|
1906
|
-
var require_createStyledContext_native = __commonJS({
|
|
1907
|
-
"../web/dist/cjs/helpers/createStyledContext.native.js"(exports, module2) {
|
|
1908
|
-
"use strict";
|
|
1909
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1910
|
-
for (var name in all)
|
|
1911
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
1912
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
1913
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
1914
|
-
for (let key of __getOwnPropNames2(from))
|
|
1915
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1916
|
-
return to;
|
|
1917
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createStyledContext_exports = {};
|
|
1918
|
-
__export2(createStyledContext_exports, {
|
|
1919
|
-
createStyledContext: () => createStyledContext
|
|
1920
|
-
});
|
|
1921
|
-
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
1922
|
-
var import_react = require("react"), import_objectIdentityKey = require_objectIdentityKey_native(), import_jsx_runtime = require("react/jsx-runtime");
|
|
1923
|
-
function createStyledContext(defaultValues) {
|
|
1924
|
-
let OGContext = (0, import_react.createContext)(defaultValues), OGProvider = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map(), Provider = ({
|
|
1925
|
-
children,
|
|
1926
|
-
scope,
|
|
1927
|
-
...values
|
|
1928
|
-
}) => {
|
|
1929
|
-
let value = (0, import_react.useMemo)(() => ({
|
|
1930
|
-
// this ! is a workaround for ts error
|
|
1931
|
-
...defaultValues,
|
|
1932
|
-
...values
|
|
1933
|
-
}), [(0, import_objectIdentityKey.objectIdentityKey)(values)]), Provider2 = OGProvider;
|
|
1934
|
-
if (scope) {
|
|
1935
|
-
let ScopedContext = scopedContexts.get(scope);
|
|
1936
|
-
ScopedContext || (ScopedContext = (0, import_react.createContext)(defaultValues), scopedContexts.set(scope, ScopedContext)), Provider2 = ScopedContext.Provider;
|
|
1937
|
-
}
|
|
1938
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider2, { value, children });
|
|
1939
|
-
}, useStyledContext = (scope) => {
|
|
1940
|
-
let context = scope ? scopedContexts.get(scope) : OGContext;
|
|
1941
|
-
return (0, import_react.useContext)(context);
|
|
1942
|
-
};
|
|
1943
|
-
return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
});
|
|
1947
|
-
|
|
1948
|
-
// ../web/dist/cjs/contexts/ComponentContext.native.js
|
|
1949
|
-
var require_ComponentContext_native = __commonJS({
|
|
1950
|
-
"../web/dist/cjs/contexts/ComponentContext.native.js"(exports, module2) {
|
|
1951
|
-
"use strict";
|
|
1952
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1953
|
-
for (var name in all)
|
|
1954
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
1955
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
1956
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
1957
|
-
for (let key of __getOwnPropNames2(from))
|
|
1958
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
1959
|
-
return to;
|
|
1960
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), ComponentContext_exports = {};
|
|
1961
|
-
__export2(ComponentContext_exports, {
|
|
1962
|
-
ComponentContext: () => ComponentContext
|
|
1963
|
-
});
|
|
1964
|
-
module2.exports = __toCommonJS2(ComponentContext_exports);
|
|
1965
|
-
var import_createStyledContext = require_createStyledContext_native(), listeners = /* @__PURE__ */ new Set(), ComponentContext = (0, import_createStyledContext.createStyledContext)({
|
|
1966
|
-
inText: !1,
|
|
1967
|
-
language: null,
|
|
1968
|
-
animationDriver: null,
|
|
1969
|
-
groups: {
|
|
1970
|
-
emit: (name, state) => {
|
|
1971
|
-
listeners.forEach((l) => l(name, state));
|
|
1972
|
-
},
|
|
1973
|
-
subscribe(cb) {
|
|
1974
|
-
return listeners.add(cb), () => {
|
|
1975
|
-
listeners.delete(cb);
|
|
1976
|
-
};
|
|
1977
|
-
},
|
|
1978
|
-
state: {}
|
|
1979
|
-
}
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
});
|
|
1983
|
-
|
|
1984
2013
|
// ../web/dist/cjs/defaultComponentState.native.js
|
|
1985
2014
|
var require_defaultComponentState_native = __commonJS({
|
|
1986
2015
|
"../web/dist/cjs/defaultComponentState.native.js"(exports, module2) {
|
|
1987
2016
|
"use strict";
|
|
1988
2017
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
1989
|
-
for (var
|
|
1990
|
-
__defProp2(target,
|
|
2018
|
+
for (var name2 in all)
|
|
2019
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
1991
2020
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
1992
2021
|
if (from && typeof from == "object" || typeof from == "function")
|
|
1993
2022
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2021,8 +2050,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
2021
2050
|
"../web/dist/cjs/helpers/createShallowSetState.native.js"(exports, module2) {
|
|
2022
2051
|
"use strict";
|
|
2023
2052
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2024
|
-
for (var
|
|
2025
|
-
__defProp2(target,
|
|
2053
|
+
for (var name2 in all)
|
|
2054
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2026
2055
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2027
2056
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2028
2057
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2051,8 +2080,8 @@ var require_accessibilityDirectMap_native = __commonJS({
|
|
|
2051
2080
|
"../web/dist/cjs/constants/accessibilityDirectMap.native.js"(exports, module2) {
|
|
2052
2081
|
"use strict";
|
|
2053
2082
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2054
|
-
for (var
|
|
2055
|
-
__defProp2(target,
|
|
2083
|
+
for (var name2 in all)
|
|
2084
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2056
2085
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2057
2086
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2058
2087
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2126,8 +2155,8 @@ var require_isDevTools_native = __commonJS({
|
|
|
2126
2155
|
"../web/dist/cjs/constants/isDevTools.native.js"(exports, module2) {
|
|
2127
2156
|
"use strict";
|
|
2128
2157
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2129
|
-
for (var
|
|
2130
|
-
__defProp2(target,
|
|
2158
|
+
for (var name2 in all)
|
|
2159
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2131
2160
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2132
2161
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2133
2162
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2153,8 +2182,8 @@ var require_getGroupPropParts_native = __commonJS({
|
|
|
2153
2182
|
"../web/dist/cjs/helpers/getGroupPropParts.native.js"(exports, module2) {
|
|
2154
2183
|
"use strict";
|
|
2155
2184
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2156
|
-
for (var
|
|
2157
|
-
__defProp2(target,
|
|
2185
|
+
for (var name2 in all)
|
|
2186
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2158
2187
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2159
2188
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2160
2189
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2167,8 +2196,8 @@ var require_getGroupPropParts_native = __commonJS({
|
|
|
2167
2196
|
module2.exports = __toCommonJS2(getGroupPropParts_exports);
|
|
2168
2197
|
var import_useMedia = require_useMedia_native();
|
|
2169
2198
|
function getGroupPropParts(groupProp) {
|
|
2170
|
-
let mediaQueries = (0, import_useMedia.getMedia)(), [_,
|
|
2171
|
-
return media ? pseudo = part4 : pseudo = part3, { name, pseudo, media };
|
|
2199
|
+
let mediaQueries = (0, import_useMedia.getMedia)(), [_, name2, part3, part4] = groupProp.split("-"), pseudo, media = part3 in mediaQueries ? part3 : void 0;
|
|
2200
|
+
return media ? pseudo = part4 : pseudo = part3, { name: name2, pseudo, media };
|
|
2172
2201
|
}
|
|
2173
2202
|
}
|
|
2174
2203
|
});
|
|
@@ -2178,8 +2207,8 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
2178
2207
|
"../web/dist/cjs/helpers/createMediaStyle.native.js"(exports, module2) {
|
|
2179
2208
|
"use strict";
|
|
2180
2209
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2181
|
-
for (var
|
|
2182
|
-
__defProp2(target,
|
|
2210
|
+
for (var name2 in all)
|
|
2211
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2183
2212
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2184
2213
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2185
2214
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2200,7 +2229,7 @@ var require_createMediaStyle_native = __commonJS({
|
|
|
2200
2229
|
if (isThemeMedia || isGroup) {
|
|
2201
2230
|
let groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyIn), mediaName = groupInfo == null ? void 0 : groupInfo.name;
|
|
2202
2231
|
groupMediaKey = groupInfo == null ? void 0 : groupInfo.media, isGroup && (containerName = mediaName);
|
|
2203
|
-
let
|
|
2232
|
+
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(
|
|
2204
2233
|
":root",
|
|
2205
2234
|
""
|
|
2206
2235
|
)}`;
|
|
@@ -2240,8 +2269,8 @@ var require_expandStyle_native = __commonJS({
|
|
|
2240
2269
|
"../web/dist/cjs/helpers/expandStyle.native.js"(exports, module2) {
|
|
2241
2270
|
"use strict";
|
|
2242
2271
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all2) => {
|
|
2243
|
-
for (var
|
|
2244
|
-
__defProp2(target,
|
|
2272
|
+
for (var name2 in all2)
|
|
2273
|
+
__defProp2(target, name2, { get: all2[name2], enumerable: !0 });
|
|
2245
2274
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2246
2275
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2247
2276
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2425,8 +2454,8 @@ var require_normalize_color = __commonJS({
|
|
|
2425
2454
|
let int = parseFloat(str);
|
|
2426
2455
|
return int < 0 ? 0 : int > 100 ? 1 : int / 100;
|
|
2427
2456
|
}
|
|
2428
|
-
function normalizeKeyword(
|
|
2429
|
-
switch (
|
|
2457
|
+
function normalizeKeyword(name2) {
|
|
2458
|
+
switch (name2) {
|
|
2430
2459
|
case "transparent":
|
|
2431
2460
|
return 0;
|
|
2432
2461
|
case "aliceblue":
|
|
@@ -2739,8 +2768,8 @@ var require_index_native7 = __commonJS({
|
|
|
2739
2768
|
"../normalize-css-color/dist/cjs/index.native.js"(exports, module2) {
|
|
2740
2769
|
"use strict";
|
|
2741
2770
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2742
|
-
for (var
|
|
2743
|
-
__defProp2(target,
|
|
2771
|
+
for (var name2 in all)
|
|
2772
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2744
2773
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2745
2774
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2746
2775
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2779,8 +2808,8 @@ var require_defaultOffset_native = __commonJS({
|
|
|
2779
2808
|
"../web/dist/cjs/helpers/defaultOffset.native.js"(exports, module2) {
|
|
2780
2809
|
"use strict";
|
|
2781
2810
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2782
|
-
for (var
|
|
2783
|
-
__defProp2(target,
|
|
2811
|
+
for (var name2 in all)
|
|
2812
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2784
2813
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2785
2814
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2786
2815
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2800,8 +2829,8 @@ var require_normalizeColor_native = __commonJS({
|
|
|
2800
2829
|
"../web/dist/cjs/helpers/normalizeColor.native.js"(exports, module2) {
|
|
2801
2830
|
"use strict";
|
|
2802
2831
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2803
|
-
for (var
|
|
2804
|
-
__defProp2(target,
|
|
2832
|
+
for (var name2 in all)
|
|
2833
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2805
2834
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2806
2835
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2807
2836
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2832,8 +2861,8 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
2832
2861
|
"../web/dist/cjs/helpers/normalizeValueWithProperty.native.js"(exports, module2) {
|
|
2833
2862
|
"use strict";
|
|
2834
2863
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2835
|
-
for (var
|
|
2836
|
-
__defProp2(target,
|
|
2864
|
+
for (var name2 in all)
|
|
2865
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2837
2866
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2838
2867
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2839
2868
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2874,8 +2903,8 @@ var require_normalizeShadow_native = __commonJS({
|
|
|
2874
2903
|
"../web/dist/cjs/helpers/normalizeShadow.native.js"(exports, module2) {
|
|
2875
2904
|
"use strict";
|
|
2876
2905
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2877
|
-
for (var
|
|
2878
|
-
__defProp2(target,
|
|
2906
|
+
for (var name2 in all)
|
|
2907
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2879
2908
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2880
2909
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2881
2910
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2915,8 +2944,8 @@ var require_expandStyles_native = __commonJS({
|
|
|
2915
2944
|
"../web/dist/cjs/helpers/expandStyles.native.js"(exports, module2) {
|
|
2916
2945
|
"use strict";
|
|
2917
2946
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2918
|
-
for (var
|
|
2919
|
-
__defProp2(target,
|
|
2947
|
+
for (var name2 in all)
|
|
2948
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2920
2949
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2921
2950
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2922
2951
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2964,8 +2993,8 @@ var require_getStylesAtomic_native = __commonJS({
|
|
|
2964
2993
|
"../web/dist/cjs/helpers/getStylesAtomic.native.js"(exports, module2) {
|
|
2965
2994
|
"use strict";
|
|
2966
2995
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2967
|
-
for (var
|
|
2968
|
-
__defProp2(target,
|
|
2996
|
+
for (var name2 in all)
|
|
2997
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2969
2998
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2970
2999
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2971
3000
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -2990,8 +3019,8 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
2990
3019
|
"../web/dist/cjs/helpers/getVariantExtras.native.js"(exports, module2) {
|
|
2991
3020
|
"use strict";
|
|
2992
3021
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2993
|
-
for (var
|
|
2994
|
-
__defProp2(target,
|
|
3022
|
+
for (var name2 in all)
|
|
3023
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
2995
3024
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
2996
3025
|
if (from && typeof from == "object" || typeof from == "function")
|
|
2997
3026
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3037,11 +3066,11 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
3037
3066
|
let next = {
|
|
3038
3067
|
...fonts,
|
|
3039
3068
|
...Object.fromEntries(
|
|
3040
|
-
Object.entries(language).map(([
|
|
3069
|
+
Object.entries(language).map(([name2, lang]) => {
|
|
3041
3070
|
if (lang === "default")
|
|
3042
3071
|
return [];
|
|
3043
|
-
let langKey = `$${
|
|
3044
|
-
return [`$${
|
|
3072
|
+
let langKey = `$${name2}_${lang}`;
|
|
3073
|
+
return [`$${name2}`, fonts[langKey]];
|
|
3045
3074
|
})
|
|
3046
3075
|
)
|
|
3047
3076
|
};
|
|
@@ -3055,8 +3084,8 @@ var require_isObj_native = __commonJS({
|
|
|
3055
3084
|
"../web/dist/cjs/helpers/isObj.native.js"(exports, module2) {
|
|
3056
3085
|
"use strict";
|
|
3057
3086
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3058
|
-
for (var
|
|
3059
|
-
__defProp2(target,
|
|
3087
|
+
for (var name2 in all)
|
|
3088
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3060
3089
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3061
3090
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3062
3091
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3076,8 +3105,8 @@ var require_propMapper_native = __commonJS({
|
|
|
3076
3105
|
"../web/dist/cjs/helpers/propMapper.native.js"(exports, module2) {
|
|
3077
3106
|
"use strict";
|
|
3078
3107
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3079
|
-
for (var
|
|
3080
|
-
__defProp2(target,
|
|
3108
|
+
for (var name2 in all)
|
|
3109
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3081
3110
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3082
3111
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3083
3112
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3112,12 +3141,12 @@ var require_propMapper_native = __commonJS({
|
|
|
3112
3141
|
let { staticConfig, conf, debug } = styleState, { variants } = staticConfig;
|
|
3113
3142
|
if (!variants)
|
|
3114
3143
|
return;
|
|
3115
|
-
let variantValue = getVariantDefinition(variants[key],
|
|
3144
|
+
let variantValue = getVariantDefinition(variants[key], value, conf);
|
|
3116
3145
|
if (!variantValue) {
|
|
3117
3146
|
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1" && typeof value != "boolean") {
|
|
3118
|
-
let
|
|
3147
|
+
let name2 = staticConfig.componentName || "[UnnamedComponent]";
|
|
3119
3148
|
console.warn(
|
|
3120
|
-
`No variant found: ${
|
|
3149
|
+
`No variant found: ${name2} has variant "${key}", but no matching value "${value}"`
|
|
3121
3150
|
);
|
|
3122
3151
|
}
|
|
3123
3152
|
return;
|
|
@@ -3193,21 +3222,26 @@ var require_propMapper_native = __commonJS({
|
|
|
3193
3222
|
res[fKey] = val;
|
|
3194
3223
|
}
|
|
3195
3224
|
return res;
|
|
3196
|
-
}, tokenCats = ["size", "color", "radius", "space", "zIndex"].map((
|
|
3197
|
-
name,
|
|
3198
|
-
spreadName: `...${
|
|
3225
|
+
}, tokenCats = ["size", "color", "radius", "space", "zIndex"].map((name2) => ({
|
|
3226
|
+
name: name2,
|
|
3227
|
+
spreadName: `...${name2}`
|
|
3199
3228
|
}));
|
|
3200
|
-
function getVariantDefinition(variant,
|
|
3229
|
+
function getVariantDefinition(variant, value, conf) {
|
|
3201
3230
|
if (typeof variant == "function")
|
|
3202
3231
|
return variant;
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3232
|
+
let exact = variant[value];
|
|
3233
|
+
if (exact)
|
|
3234
|
+
return exact;
|
|
3235
|
+
if (value != null) {
|
|
3236
|
+
let { tokensParsed } = conf;
|
|
3237
|
+
for (let { name: name2, spreadName } of tokenCats)
|
|
3238
|
+
if (spreadName in variant && value in tokensParsed[name2])
|
|
3239
|
+
return variant[spreadName];
|
|
3240
|
+
let fontSizeVariant = variant["...fontSize"];
|
|
3241
|
+
if (fontSizeVariant && conf.fontSizeTokens.has(value))
|
|
3242
|
+
return fontSizeVariant;
|
|
3243
|
+
}
|
|
3244
|
+
return variant[`:${typeof value}`] || variant["..."];
|
|
3211
3245
|
}
|
|
3212
3246
|
var fontShorthand = {
|
|
3213
3247
|
fontSize: "size",
|
|
@@ -3262,8 +3296,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3262
3296
|
"../web/dist/cjs/helpers/getSplitStyles.native.js"(exports, module2) {
|
|
3263
3297
|
"use strict";
|
|
3264
3298
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3265
|
-
for (var
|
|
3266
|
-
__defProp2(target,
|
|
3299
|
+
for (var name2 in all)
|
|
3300
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3267
3301
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3268
3302
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3269
3303
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3669,8 +3703,8 @@ var require_mergeProps_native = __commonJS({
|
|
|
3669
3703
|
"../web/dist/cjs/helpers/mergeProps.native.js"(exports, module2) {
|
|
3670
3704
|
"use strict";
|
|
3671
3705
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3672
|
-
for (var
|
|
3673
|
-
__defProp2(target,
|
|
3706
|
+
for (var name2 in all)
|
|
3707
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3674
3708
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3675
3709
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3676
3710
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3712,8 +3746,8 @@ var require_proxyThemeVariables_native = __commonJS({
|
|
|
3712
3746
|
"../web/dist/cjs/helpers/proxyThemeVariables.native.js"(exports, module2) {
|
|
3713
3747
|
"use strict";
|
|
3714
3748
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3715
|
-
for (var
|
|
3716
|
-
__defProp2(target,
|
|
3749
|
+
for (var name2 in all)
|
|
3750
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3717
3751
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3718
3752
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3719
3753
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3744,8 +3778,8 @@ var require_ThemeManagerContext_native = __commonJS({
|
|
|
3744
3778
|
"../web/dist/cjs/helpers/ThemeManagerContext.native.js"(exports, module2) {
|
|
3745
3779
|
"use strict";
|
|
3746
3780
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3747
|
-
for (var
|
|
3748
|
-
__defProp2(target,
|
|
3781
|
+
for (var name2 in all)
|
|
3782
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3749
3783
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3750
3784
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3751
3785
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3765,8 +3799,8 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3765
3799
|
"../web/dist/cjs/helpers/ThemeManager.native.js"(exports, module2) {
|
|
3766
3800
|
"use strict";
|
|
3767
3801
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3768
|
-
for (var
|
|
3769
|
-
__defProp2(target,
|
|
3802
|
+
for (var name2 in all)
|
|
3803
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3770
3804
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3771
3805
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3772
3806
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3839,8 +3873,8 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3839
3873
|
};
|
|
3840
3874
|
}
|
|
3841
3875
|
};
|
|
3842
|
-
function getNextThemeClassName(
|
|
3843
|
-
return `t_sub_theme ${import_constants22.THEME_CLASSNAME_PREFIX}${
|
|
3876
|
+
function getNextThemeClassName(name2) {
|
|
3877
|
+
return `t_sub_theme ${import_constants22.THEME_CLASSNAME_PREFIX}${name2}`.replace("light_", "").replace("dark_", "");
|
|
3844
3878
|
}
|
|
3845
3879
|
function getState(props, parentManager) {
|
|
3846
3880
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -3915,8 +3949,8 @@ var require_getThemeUnwrapped_native = __commonJS({
|
|
|
3915
3949
|
"../web/dist/cjs/hooks/getThemeUnwrapped.native.js"(exports, module2) {
|
|
3916
3950
|
"use strict";
|
|
3917
3951
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
3918
|
-
for (var
|
|
3919
|
-
__defProp2(target,
|
|
3952
|
+
for (var name2 in all)
|
|
3953
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
3920
3954
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
3921
3955
|
if (from && typeof from == "object" || typeof from == "function")
|
|
3922
3956
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -3937,8 +3971,8 @@ var require_useTheme_native = __commonJS({
|
|
|
3937
3971
|
"../web/dist/cjs/hooks/useTheme.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))
|
|
@@ -3972,10 +4006,9 @@ var require_useTheme_native = __commonJS({
|
|
|
3972
4006
|
var _a, _b;
|
|
3973
4007
|
return ((_a = props.shouldUpdate) == null ? void 0 : _a.call(props)) ?? (keys.current.length > 0 ? !0 : void 0);
|
|
3974
4008
|
}
|
|
3975
|
-
), { themeManager, state } = changedThemeState
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
let themeProxied = (0, import_react.useMemo)(() => getThemeProxied(theme, themeManager, keys.current, props.debug), [theme, name, className, themeManager]);
|
|
4009
|
+
), { themeManager, state } = changedThemeState;
|
|
4010
|
+
state != null && state.theme;
|
|
4011
|
+
let themeProxied = (0, import_react.useMemo)(() => !themeManager || !(state != null && state.theme) ? {} : getThemeProxied(state.theme, themeManager, keys.current, props.debug), [state, themeManager]);
|
|
3979
4012
|
return [changedThemeState, themeProxied];
|
|
3980
4013
|
};
|
|
3981
4014
|
function getThemeProxied(theme, themeManager, keys, debug) {
|
|
@@ -4008,30 +4041,29 @@ var require_useTheme_native = __commonJS({
|
|
|
4008
4041
|
}
|
|
4009
4042
|
});
|
|
4010
4043
|
}
|
|
4011
|
-
var activeThemeManagers = /* @__PURE__ */ new Set(), useChangeThemeEffect = (props,
|
|
4044
|
+
var activeThemeManagers = /* @__PURE__ */ new Set(), useChangeThemeEffect = (props, isRoot = !1, keys, shouldUpdate) => {
|
|
4012
4045
|
let {
|
|
4013
4046
|
// @ts-expect-error internal use only
|
|
4014
4047
|
disable
|
|
4015
4048
|
} = props, parentManager = (0, import_react.useContext)(import_ThemeManagerContext.ThemeManagerContext);
|
|
4016
|
-
if (disable)
|
|
4017
|
-
if (!parentManager)
|
|
4018
|
-
throw "\u274C 2";
|
|
4049
|
+
if (!isRoot && !parentManager || disable)
|
|
4019
4050
|
return {
|
|
4020
4051
|
isNewTheme: !1,
|
|
4021
|
-
state: parentManager.state,
|
|
4052
|
+
state: parentManager == null ? void 0 : parentManager.state,
|
|
4022
4053
|
themeManager: parentManager
|
|
4023
4054
|
};
|
|
4024
|
-
}
|
|
4025
4055
|
let [themeState, setThemeState] = (0, import_react.useState)(createState), { state, mounted, isNewTheme, themeManager } = themeState, isInversingOnMount = !!(!themeState.mounted && props.inverse);
|
|
4026
4056
|
function getShouldUpdateTheme(manager = themeManager, nextState, prevState = state, forceShouldChange = !1) {
|
|
4027
4057
|
let forceUpdate = shouldUpdate == null ? void 0 : shouldUpdate();
|
|
4028
|
-
if (!forceShouldChange && forceUpdate === !1)
|
|
4058
|
+
if (!manager || !forceShouldChange && forceUpdate === !1)
|
|
4029
4059
|
return;
|
|
4030
4060
|
let next = nextState || manager.getState(props, parentManager);
|
|
4031
4061
|
if (forceShouldChange || next && !(forceUpdate !== !0 && !manager.getStateShouldChange(next, prevState)))
|
|
4032
4062
|
return next;
|
|
4033
4063
|
}
|
|
4034
4064
|
if (import_constants2.isServer || (0, import_react.useLayoutEffect)(() => {
|
|
4065
|
+
if (!themeManager)
|
|
4066
|
+
return;
|
|
4035
4067
|
if (props.inverse && !mounted) {
|
|
4036
4068
|
setThemeState({ ...themeState, mounted: !0 });
|
|
4037
4069
|
return;
|
|
@@ -4039,7 +4071,7 @@ var require_useTheme_native = __commonJS({
|
|
|
4039
4071
|
isNewTheme && themeManager && activeThemeManagers.add(themeManager), (isNewTheme || getShouldUpdateTheme(themeManager)) && setThemeState(createState);
|
|
4040
4072
|
let selfListenerDispose = themeManager.onChangeTheme((_a, _b, forced) => {
|
|
4041
4073
|
forced && setThemeState((prev) => createState(prev, !0));
|
|
4042
|
-
}), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme((
|
|
4074
|
+
}), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme((name2, manager) => {
|
|
4043
4075
|
((shouldUpdate == null ? void 0 : shouldUpdate()) ?? !!(keys != null && keys.length || isNewTheme)) && setThemeState(createState);
|
|
4044
4076
|
}, themeManager.id);
|
|
4045
4077
|
return () => {
|
|
@@ -4054,29 +4086,28 @@ var require_useTheme_native = __commonJS({
|
|
|
4054
4086
|
props.name,
|
|
4055
4087
|
props.reset,
|
|
4056
4088
|
mounted
|
|
4057
|
-
]), isInversingOnMount)
|
|
4058
|
-
if (!parentManager)
|
|
4059
|
-
throw "\u274C 3";
|
|
4089
|
+
]), isInversingOnMount)
|
|
4060
4090
|
return {
|
|
4061
4091
|
isNewTheme: !1,
|
|
4062
4092
|
themeManager: parentManager,
|
|
4063
4093
|
state: {
|
|
4064
|
-
|
|
4094
|
+
name: "",
|
|
4095
|
+
...parentManager == null ? void 0 : parentManager.state,
|
|
4065
4096
|
className: ""
|
|
4066
4097
|
}
|
|
4067
4098
|
};
|
|
4068
|
-
}
|
|
4069
4099
|
return {
|
|
4070
4100
|
state,
|
|
4071
4101
|
isNewTheme,
|
|
4072
4102
|
themeManager
|
|
4073
4103
|
};
|
|
4074
4104
|
function createState(prev, force = !1) {
|
|
4105
|
+
var _a;
|
|
4075
4106
|
if (prev && (shouldUpdate == null ? void 0 : shouldUpdate()) === !1)
|
|
4076
4107
|
return prev;
|
|
4077
4108
|
let themeManager2 = parentManager, state2;
|
|
4078
4109
|
if ((0, import_ThemeManager.getHasThemeUpdatingProps)(props)) {
|
|
4079
|
-
let getNewThemeManager = () => new import_ThemeManager.ThemeManager(props,
|
|
4110
|
+
let getNewThemeManager = () => new import_ThemeManager.ThemeManager(props, isRoot ? "root" : parentManager);
|
|
4080
4111
|
if (prev != null && prev.themeManager) {
|
|
4081
4112
|
themeManager2 = prev.themeManager;
|
|
4082
4113
|
let forceChange = !!(keys != null && keys.length), next = themeManager2.getState(props, parentManager), nextState = getShouldUpdateTheme(
|
|
@@ -4089,8 +4120,8 @@ var require_useTheme_native = __commonJS({
|
|
|
4089
4120
|
} else
|
|
4090
4121
|
themeManager2 = getNewThemeManager(), state2 = { ...themeManager2.state };
|
|
4091
4122
|
}
|
|
4092
|
-
let isNewTheme2 = !!(themeManager2 !== parentManager || props.inverse), mounted2 = props.inverse ?
|
|
4093
|
-
return state2 || (isNewTheme2 ? state2 = themeManager2.state : (state2 = parentManager.state, themeManager2 = parentManager)), !force && state2.name === (prev == null ? void 0 : prev.state.name) ? prev : {
|
|
4123
|
+
let isNewTheme2 = !!(themeManager2 !== parentManager || props.inverse), mounted2 = props.inverse ? isRoot || (prev == null ? void 0 : prev.mounted) : !0;
|
|
4124
|
+
return 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) ? prev : {
|
|
4094
4125
|
state: state2,
|
|
4095
4126
|
themeManager: themeManager2,
|
|
4096
4127
|
isNewTheme: isNewTheme2,
|
|
@@ -4106,8 +4137,8 @@ var require_ThemeDebug_native = __commonJS({
|
|
|
4106
4137
|
"../web/dist/cjs/views/ThemeDebug.native.js"(exports, module2) {
|
|
4107
4138
|
"use strict";
|
|
4108
4139
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4109
|
-
for (var
|
|
4110
|
-
__defProp2(target,
|
|
4140
|
+
for (var name2 in all)
|
|
4141
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4111
4142
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4112
4143
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4113
4144
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4133,8 +4164,8 @@ var require_Theme_native = __commonJS({
|
|
|
4133
4164
|
"../web/dist/cjs/views/Theme.native.js"(exports, module2) {
|
|
4134
4165
|
"use strict";
|
|
4135
4166
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4136
|
-
for (var
|
|
4137
|
-
__defProp2(target,
|
|
4167
|
+
for (var name2 in all)
|
|
4168
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4138
4169
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4139
4170
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4140
4171
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4182,7 +4213,7 @@ var require_Theme_native = __commonJS({
|
|
|
4182
4213
|
void 0,
|
|
4183
4214
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Theme, { name: themeManager.state.parentName, children: child.props.children })
|
|
4184
4215
|
) : child));
|
|
4185
|
-
let elementsWithContext = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeManagerContext.ThemeManagerContext.Provider, { value: themeManager, children: next });
|
|
4216
|
+
let elementsWithContext = themeManager ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeManagerContext.ThemeManagerContext.Provider, { value: themeManager, children: next }) : next;
|
|
4186
4217
|
return forceClassName === !1 ? elementsWithContext : import_constants2.isWeb ? wrapThemeElements({
|
|
4187
4218
|
children: elementsWithContext,
|
|
4188
4219
|
themeState,
|
|
@@ -4196,23 +4227,28 @@ var require_Theme_native = __commonJS({
|
|
|
4196
4227
|
forceClassName,
|
|
4197
4228
|
isRoot
|
|
4198
4229
|
}) {
|
|
4230
|
+
var _a, _b, _c, _d;
|
|
4199
4231
|
if (isRoot && forceClassName === !1)
|
|
4200
4232
|
return children;
|
|
4201
|
-
let inverse = themeState.state.inverse;
|
|
4233
|
+
let inverse = (_a = themeState.state) == null ? void 0 : _a.inverse;
|
|
4202
4234
|
if (!themeState.isNewTheme && !inverse && !forceClassName)
|
|
4203
4235
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "_dsp_contents is_Theme", children });
|
|
4204
|
-
let themeColor = themeState.state.theme && themeState.isNewTheme ? (0, import_createVariable.variableToString)(themeState.state.theme.color) : "", colorStyle = themeColor ? {
|
|
4236
|
+
let themeColor = (_b = themeState.state) != null && _b.theme && themeState.isNewTheme ? (0, import_createVariable.variableToString)(themeState.state.theme.color) : "", colorStyle = themeColor ? {
|
|
4205
4237
|
color: themeColor
|
|
4206
|
-
} : void 0, className = themeState.state.className || "";
|
|
4238
|
+
} : void 0, className = ((_c = themeState.state) == null ? void 0 : _c.className) || "";
|
|
4207
4239
|
isRoot && (className = className.replace("t_sub_theme", ""));
|
|
4208
4240
|
let themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${className} _dsp_contents is_Theme`, style: colorStyle, children });
|
|
4209
|
-
|
|
4210
|
-
"
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4241
|
+
if (inverse != null || forceClassName) {
|
|
4242
|
+
let name2 = ((_d = themeState.state) == null ? void 0 : _d.name) || "";
|
|
4243
|
+
themedChildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
4244
|
+
"span",
|
|
4245
|
+
{
|
|
4246
|
+
className: `${name2.startsWith("light") ? "t_light" : name2.startsWith("dark") ? "t_dark" : ""} _dsp_contents ${inverse ? "is_inversed" : ""}`,
|
|
4247
|
+
children: themedChildren
|
|
4248
|
+
}
|
|
4249
|
+
);
|
|
4250
|
+
}
|
|
4251
|
+
return themedChildren;
|
|
4216
4252
|
}
|
|
4217
4253
|
}
|
|
4218
4254
|
});
|
|
@@ -4222,8 +4258,8 @@ var require_themeable_native = __commonJS({
|
|
|
4222
4258
|
"../web/dist/cjs/helpers/themeable.native.js"(exports, module2) {
|
|
4223
4259
|
"use strict";
|
|
4224
4260
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4225
|
-
for (var
|
|
4226
|
-
__defProp2(target,
|
|
4261
|
+
for (var name2 in all)
|
|
4262
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4227
4263
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4228
4264
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4229
4265
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4272,8 +4308,8 @@ var require_setupHooks_native = __commonJS({
|
|
|
4272
4308
|
"../web/dist/cjs/setupHooks.native.js"(exports, module2) {
|
|
4273
4309
|
"use strict";
|
|
4274
4310
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4275
|
-
for (var
|
|
4276
|
-
__defProp2(target,
|
|
4311
|
+
for (var name2 in all)
|
|
4312
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4277
4313
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4278
4314
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4279
4315
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4297,8 +4333,8 @@ var require_Slot_native = __commonJS({
|
|
|
4297
4333
|
"../web/dist/cjs/views/Slot.native.js"(exports, module2) {
|
|
4298
4334
|
"use strict";
|
|
4299
4335
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4300
|
-
for (var
|
|
4301
|
-
__defProp2(target,
|
|
4336
|
+
for (var name2 in all)
|
|
4337
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4302
4338
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4303
4339
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4304
4340
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4348,8 +4384,8 @@ var require_createComponent_native = __commonJS({
|
|
|
4348
4384
|
"../web/dist/cjs/createComponent.native.js"(exports, module2) {
|
|
4349
4385
|
"use strict";
|
|
4350
4386
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4351
|
-
for (var
|
|
4352
|
-
__defProp2(target,
|
|
4387
|
+
for (var name2 in all)
|
|
4388
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4353
4389
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4354
4390
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4355
4391
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4396,7 +4432,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4396
4432
|
validStyles: validStyles2 = {},
|
|
4397
4433
|
variants = {}
|
|
4398
4434
|
} = staticConfig, defaultComponentClassName = `is_${staticConfig.componentName}`, defaultProps = staticConfig.defaultProps, component = (0, import_react.forwardRef)((propsIn, forwardedRef) => {
|
|
4399
|
-
var _a2, _b, _c, _d,
|
|
4435
|
+
var _a2, _b, _c, _d, _e, _f, _i, _j, _k, _l, _m;
|
|
4400
4436
|
if (!hasSetupBaseViews) {
|
|
4401
4437
|
hasSetupBaseViews = !0;
|
|
4402
4438
|
let baseViews = (_b = (_a2 = import_setupHooks.hooks).getBaseViews) == null ? void 0 : _b.call(_a2);
|
|
@@ -4464,11 +4500,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4464
4500
|
debug: debugProp
|
|
4465
4501
|
}, isExiting = !state.unmounted && (presence == null ? void 0 : presence[0]) === !1, [themeState, theme] = (0, import_useTheme.useThemeWithState)(themeStateProps);
|
|
4466
4502
|
elementType = Component || elementType;
|
|
4467
|
-
let isStringElement = typeof elementType == "string", mediaState2 = (0, import_useMedia.useMedia)(
|
|
4468
|
-
// @ts-ignore, we just pass a stable object so we can get it later with
|
|
4469
|
-
// should match to the one used in `setMediaShouldUpdate` below
|
|
4470
|
-
stateRef
|
|
4471
|
-
);
|
|
4503
|
+
let isStringElement = typeof elementType == "string", mediaState2 = (0, import_useMedia.useMedia)(stateRef, componentContext);
|
|
4472
4504
|
(0, import_createVariable.setDidGetVariableValue)(!1);
|
|
4473
4505
|
let resolveValues = (
|
|
4474
4506
|
// if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
|
|
@@ -4484,7 +4516,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4484
4516
|
props,
|
|
4485
4517
|
staticConfig,
|
|
4486
4518
|
theme,
|
|
4487
|
-
themeState.state.name,
|
|
4519
|
+
((_d = themeState == null ? void 0 : themeState.state) == null ? void 0 : _d.name) || "",
|
|
4488
4520
|
state,
|
|
4489
4521
|
styleProps,
|
|
4490
4522
|
null,
|
|
@@ -4514,7 +4546,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4514
4546
|
presence,
|
|
4515
4547
|
componentState: state,
|
|
4516
4548
|
styleProps,
|
|
4517
|
-
theme: themeState.state.theme,
|
|
4549
|
+
theme: (_e = themeState.state) == null ? void 0 : _e.theme,
|
|
4518
4550
|
pseudos: pseudos || null,
|
|
4519
4551
|
hostRef,
|
|
4520
4552
|
staticConfig
|
|
@@ -4546,7 +4578,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4546
4578
|
// @ts-ignore
|
|
4547
4579
|
defaultVariants,
|
|
4548
4580
|
...nonTamaguiProps
|
|
4549
|
-
} = viewPropsIn, disabled = ((
|
|
4581
|
+
} = viewPropsIn, disabled = ((_f = props.accessibilityState) == null ? void 0 : _f.disabled) || // @ts-expect-error (comes from core)
|
|
4550
4582
|
props.accessibilityDisabled, viewProps = nonTamaguiProps;
|
|
4551
4583
|
isHOC && _themeProp && (viewProps.theme = _themeProp), groupName && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(
|
|
4552
4584
|
nonTamaguiProps.onLayout,
|
|
@@ -4577,8 +4609,8 @@ var require_createComponent_native = __commonJS({
|
|
|
4577
4609
|
media: {}
|
|
4578
4610
|
};
|
|
4579
4611
|
disposeGroupsListener = componentContext.groups.subscribe(
|
|
4580
|
-
(
|
|
4581
|
-
if (pseudo && pseudoGroups != null && pseudoGroups.has(
|
|
4612
|
+
(name2, { layout, pseudo }) => {
|
|
4613
|
+
if (pseudo && pseudoGroups != null && pseudoGroups.has(name2))
|
|
4582
4614
|
Object.assign(current.pseudo, pseudo), persist();
|
|
4583
4615
|
else if (layout && mediaGroups) {
|
|
4584
4616
|
let mediaState22 = getMediaState(mediaGroups, layout), next = (0, import_createShallowSetState.mergeIfNotShallowEqual)(current.media, mediaState22);
|
|
@@ -4589,7 +4621,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4589
4621
|
// force it to be referentially different so it always updates
|
|
4590
4622
|
group: {
|
|
4591
4623
|
...state.group,
|
|
4592
|
-
[
|
|
4624
|
+
[name2]: current
|
|
4593
4625
|
}
|
|
4594
4626
|
});
|
|
4595
4627
|
}
|
|
@@ -4605,7 +4637,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4605
4637
|
pseudoGroups ? Object.keys([...pseudoGroups]).join("") : 0,
|
|
4606
4638
|
mediaGroups ? Object.keys([...mediaGroups]).join("") : 0
|
|
4607
4639
|
]);
|
|
4608
|
-
let avoidAnimationStyle = keepStyleSSR && state.unmounted === !0, fontFamily = isText ? splitStyles.fontFamily || ((
|
|
4640
|
+
let avoidAnimationStyle = keepStyleSSR && state.unmounted === !0, fontFamily = isText ? splitStyles.fontFamily || ((_i = staticConfig.defaultProps) == null ? void 0 : _i.fontFamily) : null;
|
|
4609
4641
|
fontFamily && fontFamily[0] === "$" && (fontFamily = fontFamily.slice(1));
|
|
4610
4642
|
let fontFamilyClassName = fontFamily ? `font_${fontFamily}` : "", style = avoidAnimationStyle ? splitStyles.style : animationStyles || splitStyles.style, className;
|
|
4611
4643
|
viewProps.style = style;
|
|
@@ -4645,7 +4677,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4645
4677
|
delayPressOut: viewProps.delayPressOut,
|
|
4646
4678
|
focusable: viewProps.focusable ?? !0,
|
|
4647
4679
|
minPressDuration: 0
|
|
4648
|
-
}), (
|
|
4680
|
+
}), (_k = (_j = import_setupHooks.hooks).useEvents) == null || _k.call(_j, viewProps, events, splitStyles, setStateShallow);
|
|
4649
4681
|
let direction = props.spaceDirection || "both", content = !children || asChild ? children : spacedChildren({
|
|
4650
4682
|
separator,
|
|
4651
4683
|
children,
|
|
@@ -4713,7 +4745,16 @@ var require_createComponent_native = __commonJS({
|
|
|
4713
4745
|
return props.children;
|
|
4714
4746
|
}
|
|
4715
4747
|
Unspaced.isUnspaced = !0;
|
|
4716
|
-
var
|
|
4748
|
+
var getSpacerSize = (size, { tokens }) => {
|
|
4749
|
+
size = size === !0 ? "$true" : size;
|
|
4750
|
+
let sizePx = tokens.space[size] ?? size;
|
|
4751
|
+
return {
|
|
4752
|
+
width: sizePx,
|
|
4753
|
+
height: sizePx,
|
|
4754
|
+
minWidth: sizePx,
|
|
4755
|
+
minHeight: sizePx
|
|
4756
|
+
};
|
|
4757
|
+
}, Spacer = createComponent({
|
|
4717
4758
|
acceptsClassName: !0,
|
|
4718
4759
|
memo: !0,
|
|
4719
4760
|
componentName: "Spacer",
|
|
@@ -4727,16 +4768,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4727
4768
|
},
|
|
4728
4769
|
variants: {
|
|
4729
4770
|
size: {
|
|
4730
|
-
"...
|
|
4731
|
-
size = size === !0 ? "$true" : size;
|
|
4732
|
-
let sizePx = tokens.space[size] ?? size;
|
|
4733
|
-
return {
|
|
4734
|
-
width: sizePx,
|
|
4735
|
-
height: sizePx,
|
|
4736
|
-
minWidth: sizePx,
|
|
4737
|
-
minHeight: sizePx
|
|
4738
|
-
};
|
|
4739
|
-
}
|
|
4771
|
+
"...": getSpacerSize
|
|
4740
4772
|
},
|
|
4741
4773
|
flex: {
|
|
4742
4774
|
true: {
|
|
@@ -4853,8 +4885,8 @@ var require_createShorthands_native = __commonJS({
|
|
|
4853
4885
|
"../web/dist/cjs/createShorthands.native.js"(exports, module2) {
|
|
4854
4886
|
"use strict";
|
|
4855
4887
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4856
|
-
for (var
|
|
4857
|
-
__defProp2(target,
|
|
4888
|
+
for (var name2 in all)
|
|
4889
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4858
4890
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4859
4891
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4860
4892
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4876,8 +4908,8 @@ var require_createTheme_native = __commonJS({
|
|
|
4876
4908
|
"../web/dist/cjs/createTheme.native.js"(exports, module2) {
|
|
4877
4909
|
"use strict";
|
|
4878
4910
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4879
|
-
for (var
|
|
4880
|
-
__defProp2(target,
|
|
4911
|
+
for (var name2 in all)
|
|
4912
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4881
4913
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4882
4914
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4883
4915
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4897,8 +4929,8 @@ var require_createVariables_native = __commonJS({
|
|
|
4897
4929
|
"../web/dist/cjs/createVariables.native.js"(exports, module2) {
|
|
4898
4930
|
"use strict";
|
|
4899
4931
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4900
|
-
for (var
|
|
4901
|
-
__defProp2(target,
|
|
4932
|
+
for (var name2 in all)
|
|
4933
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4902
4934
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4903
4935
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4904
4936
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4920,17 +4952,17 @@ var require_createVariables_native = __commonJS({
|
|
|
4920
4952
|
res[key] = val;
|
|
4921
4953
|
continue;
|
|
4922
4954
|
}
|
|
4923
|
-
let niceKey = (0, import_helpers.simpleHash)(key),
|
|
4924
|
-
if (
|
|
4955
|
+
let niceKey = (0, import_helpers.simpleHash)(key), name2 = isFont ? niceKey.slice(0, 2) : i;
|
|
4956
|
+
if (name2 = parentPath ? `${parentPath}-${name2}` : niceKey, val && typeof val == "object") {
|
|
4925
4957
|
res[key] = createVariables(
|
|
4926
4958
|
tokens[key],
|
|
4927
|
-
|
|
4959
|
+
name2,
|
|
4928
4960
|
!1
|
|
4929
4961
|
/* note: don't pass isFont down, we want to avoid it past the first level */
|
|
4930
4962
|
);
|
|
4931
4963
|
continue;
|
|
4932
4964
|
}
|
|
4933
|
-
let finalValue = (0, import_createVariable.isVariable)(val) ? val : (0, import_createVariable.createVariable)({ val, name, key: keyWithPrefix });
|
|
4965
|
+
let finalValue = (0, import_createVariable.isVariable)(val) ? val : (0, import_createVariable.createVariable)({ val, name: name2, key: keyWithPrefix });
|
|
4934
4966
|
res[key] = finalValue;
|
|
4935
4967
|
}
|
|
4936
4968
|
return cache.set(res, !0), res;
|
|
@@ -4943,8 +4975,8 @@ var require_getThemeCSSRules_native = __commonJS({
|
|
|
4943
4975
|
"../web/dist/cjs/helpers/getThemeCSSRules.native.js"(exports, module2) {
|
|
4944
4976
|
"use strict";
|
|
4945
4977
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4946
|
-
for (var
|
|
4947
|
-
__defProp2(target,
|
|
4978
|
+
for (var name2 in all)
|
|
4979
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4948
4980
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4949
4981
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4950
4982
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4966,8 +4998,8 @@ var require_proxyThemeToParents_native = __commonJS({
|
|
|
4966
4998
|
"../web/dist/cjs/helpers/proxyThemeToParents.native.js"(exports, module2) {
|
|
4967
4999
|
"use strict";
|
|
4968
5000
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
4969
|
-
for (var
|
|
4970
|
-
__defProp2(target,
|
|
5001
|
+
for (var name2 in all)
|
|
5002
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
4971
5003
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
4972
5004
|
if (from && typeof from == "object" || typeof from == "function")
|
|
4973
5005
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -4983,8 +5015,8 @@ var require_proxyThemeToParents_native = __commonJS({
|
|
|
4983
5015
|
var import_config = require_config_native(), import_getThemeUnwrapped = require_getThemeUnwrapped_native(), themesRaw = {};
|
|
4984
5016
|
function proxyThemesToParents(dedupedThemes) {
|
|
4985
5017
|
for (let { names, theme } of dedupedThemes)
|
|
4986
|
-
for (let
|
|
4987
|
-
themesRaw[
|
|
5018
|
+
for (let name2 of names)
|
|
5019
|
+
themesRaw[name2] = theme;
|
|
4988
5020
|
let themes = {};
|
|
4989
5021
|
for (let { names, theme } of dedupedThemes)
|
|
4990
5022
|
for (let themeName of names) {
|
|
@@ -5020,8 +5052,8 @@ var require_registerCSSVariable_native = __commonJS({
|
|
|
5020
5052
|
"../web/dist/cjs/helpers/registerCSSVariable.native.js"(exports, module2) {
|
|
5021
5053
|
"use strict";
|
|
5022
5054
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5023
|
-
for (var
|
|
5024
|
-
__defProp2(target,
|
|
5055
|
+
for (var name2 in all)
|
|
5056
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5025
5057
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5026
5058
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5027
5059
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5045,8 +5077,8 @@ var require_themes_native = __commonJS({
|
|
|
5045
5077
|
"../web/dist/cjs/helpers/themes.native.js"(exports, module2) {
|
|
5046
5078
|
"use strict";
|
|
5047
5079
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5048
|
-
for (var
|
|
5049
|
-
__defProp2(target,
|
|
5080
|
+
for (var name2 in all)
|
|
5081
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5050
5082
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5051
5083
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5052
5084
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5078,8 +5110,8 @@ var require_createFont_native = __commonJS({
|
|
|
5078
5110
|
"../web/dist/cjs/createFont.native.js"(exports, module2) {
|
|
5079
5111
|
"use strict";
|
|
5080
5112
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5081
|
-
for (var
|
|
5082
|
-
__defProp2(target,
|
|
5113
|
+
for (var name2 in all)
|
|
5114
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5083
5115
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5084
5116
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5085
5117
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5131,8 +5163,8 @@ var require_insertFont_native = __commonJS({
|
|
|
5131
5163
|
"../web/dist/cjs/insertFont.native.js"(exports, module2) {
|
|
5132
5164
|
"use strict";
|
|
5133
5165
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5134
|
-
for (var
|
|
5135
|
-
__defProp2(target,
|
|
5166
|
+
for (var name2 in all)
|
|
5167
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5136
5168
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5137
5169
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5138
5170
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5147,9 +5179,9 @@ var require_insertFont_native = __commonJS({
|
|
|
5147
5179
|
});
|
|
5148
5180
|
module2.exports = __toCommonJS2(insertFont_exports);
|
|
5149
5181
|
var import_config = require_config_native(), import_createFont = require_createFont_native(), import_createVariables = require_createVariables_native(), import_registerCSSVariable = require_registerCSSVariable_native();
|
|
5150
|
-
function insertFont(
|
|
5151
|
-
let font = (0, import_createFont.createFont)(fontIn), tokened = (0, import_createVariables.createVariables)(font,
|
|
5152
|
-
return (0, import_config.setConfigFont)(
|
|
5182
|
+
function insertFont(name2, fontIn) {
|
|
5183
|
+
let font = (0, import_createFont.createFont)(fontIn), tokened = (0, import_createVariables.createVariables)(font, name2), parsed = parseFont(tokened);
|
|
5184
|
+
return (0, import_config.setConfigFont)(name2, tokened, parsed), parsed;
|
|
5153
5185
|
}
|
|
5154
5186
|
var updateFont = insertFont;
|
|
5155
5187
|
function parseFont(definition) {
|
|
@@ -5193,8 +5225,8 @@ var require_createTamagui_native = __commonJS({
|
|
|
5193
5225
|
"../web/dist/cjs/createTamagui.native.js"(exports, module2) {
|
|
5194
5226
|
"use strict";
|
|
5195
5227
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5196
|
-
for (var
|
|
5197
|
-
__defProp2(target,
|
|
5228
|
+
for (var name2 in all)
|
|
5229
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5198
5230
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5199
5231
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5200
5232
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5210,28 +5242,40 @@ var require_createTamagui_native = __commonJS({
|
|
|
5210
5242
|
var _a;
|
|
5211
5243
|
if (createdConfigs.has(configIn))
|
|
5212
5244
|
return configIn;
|
|
5213
|
-
let tokens = (0, import_createVariables.createVariables)(configIn.tokens
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
let
|
|
5217
|
-
|
|
5218
|
-
let
|
|
5219
|
-
|
|
5245
|
+
let tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
5246
|
+
if (configIn.tokens) {
|
|
5247
|
+
let tokensMerged = {};
|
|
5248
|
+
for (let cat in tokens) {
|
|
5249
|
+
tokensParsed[cat] = {}, tokensMerged[cat] = {};
|
|
5250
|
+
let tokenCat = tokens[cat];
|
|
5251
|
+
for (let key in tokenCat) {
|
|
5252
|
+
let val = tokenCat[key], prefixedKey = `$${key}`;
|
|
5253
|
+
tokensParsed[cat][prefixedKey] = val, tokensMerged[cat][prefixedKey] = val, tokensMerged[cat][key] = val;
|
|
5254
|
+
}
|
|
5220
5255
|
}
|
|
5256
|
+
(0, import_config.setTokens)(tokensMerged);
|
|
5257
|
+
}
|
|
5258
|
+
let foundThemes;
|
|
5259
|
+
if (configIn.themes) {
|
|
5260
|
+
let noThemes = Object.keys(configIn.themes).length === 0;
|
|
5261
|
+
foundThemes = (0, import_insertStyleRule.scanAllSheets)(noThemes, tokensParsed);
|
|
5221
5262
|
}
|
|
5222
|
-
(0, import_config.setTokens)(tokensMerged);
|
|
5223
|
-
let noThemes = Object.keys(configIn.themes).length === 0, foundThemes = (0, import_insertStyleRule.scanAllSheets)(noThemes, tokensParsed);
|
|
5224
5263
|
(0, import_insertStyleRule.listenForSheetChanges)();
|
|
5225
|
-
let
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
res
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5264
|
+
let fontSizeTokens = null, fontsParsed;
|
|
5265
|
+
if (configIn.fonts) {
|
|
5266
|
+
let fontTokens = Object.fromEntries(
|
|
5267
|
+
Object.entries(configIn.fonts).map(([k, v]) => [k, (0, import_createVariables.createVariables)(v, "f", !0)])
|
|
5268
|
+
);
|
|
5269
|
+
fontsParsed = (() => {
|
|
5270
|
+
let res = {};
|
|
5271
|
+
for (let familyName in fontTokens) {
|
|
5272
|
+
let font = fontTokens[familyName], fontParsed = (0, import_insertFont.parseFont)(font);
|
|
5273
|
+
res[`$${familyName}`] = fontParsed, !fontSizeTokens && fontParsed.size && (fontSizeTokens = new Set(Object.keys(fontParsed.size)));
|
|
5274
|
+
}
|
|
5275
|
+
return res;
|
|
5276
|
+
})();
|
|
5277
|
+
}
|
|
5278
|
+
let specificTokens = {}, themeConfig = (() => {
|
|
5235
5279
|
let cssRuleSets = [];
|
|
5236
5280
|
if (process.env.TAMAGUI_DOES_SSR_CSS !== "true" && // we can leave this out if mutating, only need the js for getThemeCSSRules
|
|
5237
5281
|
process.env.TAMAGUI_DOES_SSR_CSS !== "mutates-themes") {
|
|
@@ -5247,9 +5291,9 @@ var require_createTamagui_native = __commonJS({
|
|
|
5247
5291
|
};
|
|
5248
5292
|
var declarationsToRuleSet = declarationsToRuleSet2;
|
|
5249
5293
|
for (let key in fontsParsed) {
|
|
5250
|
-
let fontParsed = fontsParsed[key], [
|
|
5294
|
+
let fontParsed = fontsParsed[key], [name2, language] = key.includes("_") ? key.split("_") : [key], fontVars = (0, import_insertFont.registerFontVariables)(fontParsed);
|
|
5251
5295
|
fontDeclarations[key] = {
|
|
5252
|
-
name:
|
|
5296
|
+
name: name2.slice(1),
|
|
5253
5297
|
declarations: fontVars,
|
|
5254
5298
|
language
|
|
5255
5299
|
};
|
|
@@ -5257,7 +5301,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
5257
5301
|
let sep = "";
|
|
5258
5302
|
if (cssRuleSets.push(declarationsToRuleSet2(declarations)), fontDeclarations)
|
|
5259
5303
|
for (let key in fontDeclarations) {
|
|
5260
|
-
let { name, declarations: declarations2, language = "default" } = fontDeclarations[key], fontSelector = `.font_${
|
|
5304
|
+
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);
|
|
5261
5305
|
cssRuleSets.push(specificRuleSet);
|
|
5262
5306
|
}
|
|
5263
5307
|
}
|
|
@@ -5296,9 +5340,10 @@ ${themeConfig.cssRuleSets.join(separator)}`}
|
|
|
5296
5340
|
${exclude ? "" : themeConfig.getThemeRulesSets().join(separator)}
|
|
5297
5341
|
${runtimeStyles}`;
|
|
5298
5342
|
}, getNewCSS = (opts) => getCSS({ ...opts, sinceLastCall: !0 }), defaultFontName = configIn.defaultFont || // uses font named "body" if present for compat
|
|
5299
|
-
("body" in configIn.fonts ? "body" : "");
|
|
5300
|
-
!defaultFontName && configIn.fonts && (defaultFontName = Object.keys(configIn.fonts)[0]), defaultFontName[0] === "$" && (defaultFontName = defaultFontName.slice(1));
|
|
5343
|
+
configIn.fonts && ("body" in configIn.fonts ? "body" : "");
|
|
5344
|
+
!defaultFontName && configIn.fonts && (defaultFontName = Object.keys(configIn.fonts)[0]), (defaultFontName == null ? void 0 : defaultFontName[0]) === "$" && (defaultFontName = defaultFontName.slice(1));
|
|
5301
5345
|
let defaultFont = `$${defaultFontName}`, config = {
|
|
5346
|
+
fonts: {},
|
|
5302
5347
|
groupNames: [],
|
|
5303
5348
|
settings: {},
|
|
5304
5349
|
onlyAllowShorthands: !1,
|
|
@@ -5311,7 +5356,7 @@ ${runtimeStyles}`;
|
|
|
5311
5356
|
shorthands,
|
|
5312
5357
|
inverseShorthands: shorthands ? Object.fromEntries(Object.entries(shorthands).map(([k, v]) => [v, k])) : {},
|
|
5313
5358
|
themes: themeConfig.themes,
|
|
5314
|
-
fontsParsed,
|
|
5359
|
+
fontsParsed: fontsParsed || {},
|
|
5315
5360
|
themeConfig,
|
|
5316
5361
|
tokensParsed,
|
|
5317
5362
|
parsed: !0,
|
|
@@ -5352,8 +5397,8 @@ var require_createTokens_native = __commonJS({
|
|
|
5352
5397
|
"../web/dist/cjs/createTokens.native.js"(exports, module2) {
|
|
5353
5398
|
"use strict";
|
|
5354
5399
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5355
|
-
for (var
|
|
5356
|
-
__defProp2(target,
|
|
5400
|
+
for (var name2 in all)
|
|
5401
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5357
5402
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5358
5403
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5359
5404
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5376,8 +5421,8 @@ var require_mergeVariants_native = __commonJS({
|
|
|
5376
5421
|
"../web/dist/cjs/helpers/mergeVariants.native.js"(exports, module2) {
|
|
5377
5422
|
"use strict";
|
|
5378
5423
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5379
|
-
for (var
|
|
5380
|
-
__defProp2(target,
|
|
5424
|
+
for (var name2 in all)
|
|
5425
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5381
5426
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5382
5427
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5383
5428
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5427,8 +5472,8 @@ var require_setupReactNative_native = __commonJS({
|
|
|
5427
5472
|
"../web/dist/cjs/setupReactNative.native.js"(exports, module2) {
|
|
5428
5473
|
"use strict";
|
|
5429
5474
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5430
|
-
for (var
|
|
5431
|
-
__defProp2(target,
|
|
5475
|
+
for (var name2 in all)
|
|
5476
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5432
5477
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5433
5478
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5434
5479
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5465,8 +5510,8 @@ var require_styled_native = __commonJS({
|
|
|
5465
5510
|
"../web/dist/cjs/styled.native.js"(exports, module2) {
|
|
5466
5511
|
"use strict";
|
|
5467
5512
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5468
|
-
for (var
|
|
5469
|
-
__defProp2(target,
|
|
5513
|
+
for (var name2 in all)
|
|
5514
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5470
5515
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5471
5516
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5472
5517
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5485,7 +5530,7 @@ var require_styled_native = __commonJS({
|
|
|
5485
5530
|
if (options) {
|
|
5486
5531
|
let {
|
|
5487
5532
|
variants,
|
|
5488
|
-
name,
|
|
5533
|
+
name: name2,
|
|
5489
5534
|
defaultVariants,
|
|
5490
5535
|
acceptsClassName: acceptsClassNameProp,
|
|
5491
5536
|
context,
|
|
@@ -5497,7 +5542,7 @@ var require_styled_native = __commonJS({
|
|
|
5497
5542
|
}), parentStaticConfig && (parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC || (defaultProps = {
|
|
5498
5543
|
...parentStaticConfig.defaultProps,
|
|
5499
5544
|
...defaultProps
|
|
5500
|
-
}, parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants)))), parentStaticConfig != null && parentStaticConfig.isHOC &&
|
|
5545
|
+
}, parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants)))), parentStaticConfig != null && parentStaticConfig.isHOC && name2 && (defaultProps.componentName = name2);
|
|
5501
5546
|
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 = {
|
|
5502
5547
|
...parentStaticConfig,
|
|
5503
5548
|
...staticExtractionOptions,
|
|
@@ -5509,7 +5554,7 @@ var require_styled_native = __commonJS({
|
|
|
5509
5554
|
variants,
|
|
5510
5555
|
defaultProps,
|
|
5511
5556
|
defaultVariants,
|
|
5512
|
-
componentName:
|
|
5557
|
+
componentName: name2 || (parentStaticConfig == null ? void 0 : parentStaticConfig.componentName),
|
|
5513
5558
|
isReactNative,
|
|
5514
5559
|
isText,
|
|
5515
5560
|
acceptsClassName,
|
|
@@ -5556,37 +5601,13 @@ var require_GetRef_native = __commonJS({
|
|
|
5556
5601
|
}
|
|
5557
5602
|
});
|
|
5558
5603
|
|
|
5559
|
-
// ../web/dist/cjs/helpers/getAnimationDriver.native.js
|
|
5560
|
-
var require_getAnimationDriver_native = __commonJS({
|
|
5561
|
-
"../web/dist/cjs/helpers/getAnimationDriver.native.js"(exports, module2) {
|
|
5562
|
-
"use strict";
|
|
5563
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5564
|
-
for (var name in all)
|
|
5565
|
-
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
5566
|
-
}, __copyProps2 = (to, from, except, desc) => {
|
|
5567
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
5568
|
-
for (let key of __getOwnPropNames2(from))
|
|
5569
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
5570
|
-
return to;
|
|
5571
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), getAnimationDriver_exports = {};
|
|
5572
|
-
__export2(getAnimationDriver_exports, {
|
|
5573
|
-
getAnimationDriver: () => getAnimationDriver
|
|
5574
|
-
});
|
|
5575
|
-
module2.exports = __toCommonJS2(getAnimationDriver_exports);
|
|
5576
|
-
var import_config = require_config_native();
|
|
5577
|
-
function getAnimationDriver() {
|
|
5578
|
-
return (0, import_config.getConfig)().animations;
|
|
5579
|
-
}
|
|
5580
|
-
}
|
|
5581
|
-
});
|
|
5582
|
-
|
|
5583
5604
|
// ../web/dist/cjs/helpers/getExpandedShorthands.native.js
|
|
5584
5605
|
var require_getExpandedShorthands_native = __commonJS({
|
|
5585
5606
|
"../web/dist/cjs/helpers/getExpandedShorthands.native.js"(exports, module2) {
|
|
5586
5607
|
"use strict";
|
|
5587
5608
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5588
|
-
for (var
|
|
5589
|
-
__defProp2(target,
|
|
5609
|
+
for (var name2 in all)
|
|
5610
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5590
5611
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5591
5612
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5592
5613
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5615,8 +5636,8 @@ var require_isTamaguiComponent_native = __commonJS({
|
|
|
5615
5636
|
"../web/dist/cjs/helpers/isTamaguiComponent.native.js"(exports, module2) {
|
|
5616
5637
|
"use strict";
|
|
5617
5638
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5618
|
-
for (var
|
|
5619
|
-
__defProp2(target,
|
|
5639
|
+
for (var name2 in all)
|
|
5640
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5620
5641
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5621
5642
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5622
5643
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5627,9 +5648,9 @@ var require_isTamaguiComponent_native = __commonJS({
|
|
|
5627
5648
|
isTamaguiComponent: () => isTamaguiComponent
|
|
5628
5649
|
});
|
|
5629
5650
|
module2.exports = __toCommonJS2(isTamaguiComponent_exports);
|
|
5630
|
-
function isTamaguiComponent(comp,
|
|
5651
|
+
function isTamaguiComponent(comp, name2) {
|
|
5631
5652
|
let config = comp == null ? void 0 : comp.staticConfig;
|
|
5632
|
-
return !!(config && (!
|
|
5653
|
+
return !!(config && (!name2 || name2 === config.componentName));
|
|
5633
5654
|
}
|
|
5634
5655
|
}
|
|
5635
5656
|
});
|
|
@@ -5639,8 +5660,8 @@ var require_isTamaguiElement_native = __commonJS({
|
|
|
5639
5660
|
"../web/dist/cjs/helpers/isTamaguiElement.native.js"(exports, module2) {
|
|
5640
5661
|
"use strict";
|
|
5641
5662
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5642
|
-
for (var
|
|
5643
|
-
__defProp2(target,
|
|
5663
|
+
for (var name2 in all)
|
|
5664
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5644
5665
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5645
5666
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5646
5667
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5651,7 +5672,7 @@ var require_isTamaguiElement_native = __commonJS({
|
|
|
5651
5672
|
isTamaguiElement: () => isTamaguiElement
|
|
5652
5673
|
});
|
|
5653
5674
|
module2.exports = __toCommonJS2(isTamaguiElement_exports);
|
|
5654
|
-
var import_react = require("react"), import_isTamaguiComponent = require_isTamaguiComponent_native(), isTamaguiElement = (child,
|
|
5675
|
+
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);
|
|
5655
5676
|
}
|
|
5656
5677
|
});
|
|
5657
5678
|
|
|
@@ -5660,8 +5681,8 @@ var require_withStaticProperties_native = __commonJS({
|
|
|
5660
5681
|
"../web/dist/cjs/helpers/withStaticProperties.native.js"(exports, module2) {
|
|
5661
5682
|
"use strict";
|
|
5662
5683
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5663
|
-
for (var
|
|
5664
|
-
__defProp2(target,
|
|
5684
|
+
for (var name2 in all)
|
|
5685
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5665
5686
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5666
5687
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5667
5688
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5695,8 +5716,8 @@ var require_useThemeName_native = __commonJS({
|
|
|
5695
5716
|
"../web/dist/cjs/hooks/useThemeName.native.js"(exports, module2) {
|
|
5696
5717
|
"use strict";
|
|
5697
5718
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5698
|
-
for (var
|
|
5699
|
-
__defProp2(target,
|
|
5719
|
+
for (var name2 in all)
|
|
5720
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5700
5721
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5701
5722
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5702
5723
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5709,36 +5730,43 @@ var require_useThemeName_native = __commonJS({
|
|
|
5709
5730
|
module2.exports = __toCommonJS2(useThemeName_exports);
|
|
5710
5731
|
var import_constants2 = require_index_native2(), import_react = require("react"), import_ThemeManagerContext = require_ThemeManagerContext_native();
|
|
5711
5732
|
function useThemeName(opts) {
|
|
5712
|
-
let manager = (0, import_react.useContext)(import_ThemeManagerContext.ThemeManagerContext), [
|
|
5733
|
+
let manager = (0, import_react.useContext)(import_ThemeManagerContext.ThemeManagerContext), [name2, setName] = (0, import_react.useState)((manager == null ? void 0 : manager.state.name) || "");
|
|
5713
5734
|
return (0, import_constants2.useIsomorphicLayoutEffect)(() => {
|
|
5714
5735
|
if (manager)
|
|
5715
5736
|
return setName(manager.state.name), manager.onChangeTheme((next, manager2) => {
|
|
5716
|
-
let
|
|
5717
|
-
|
|
5737
|
+
let name22 = opts != null && opts.parent && manager2.state.parentName || next;
|
|
5738
|
+
name22 && setName(name22);
|
|
5718
5739
|
});
|
|
5719
|
-
}, [manager == null ? void 0 : manager.state.name]),
|
|
5740
|
+
}, [manager == null ? void 0 : manager.state.name]), name2;
|
|
5720
5741
|
}
|
|
5721
5742
|
}
|
|
5722
5743
|
});
|
|
5723
5744
|
|
|
5724
|
-
// ../web/dist/cjs/hooks/
|
|
5725
|
-
var
|
|
5726
|
-
"../web/dist/cjs/hooks/
|
|
5745
|
+
// ../web/dist/cjs/hooks/useConfiguration.native.js
|
|
5746
|
+
var require_useConfiguration_native = __commonJS({
|
|
5747
|
+
"../web/dist/cjs/hooks/useConfiguration.native.js"(exports, module2) {
|
|
5727
5748
|
"use strict";
|
|
5728
5749
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5729
|
-
for (var
|
|
5730
|
-
__defProp2(target,
|
|
5750
|
+
for (var name2 in all)
|
|
5751
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5731
5752
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5732
5753
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5733
5754
|
for (let key of __getOwnPropNames2(from))
|
|
5734
5755
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
5735
5756
|
return to;
|
|
5736
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
5737
|
-
__export2(
|
|
5738
|
-
|
|
5757
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), useConfiguration_exports = {};
|
|
5758
|
+
__export2(useConfiguration_exports, {
|
|
5759
|
+
useConfiguration: () => useConfiguration
|
|
5739
5760
|
});
|
|
5740
|
-
module2.exports = __toCommonJS2(
|
|
5741
|
-
var import_react = require("react"),
|
|
5761
|
+
module2.exports = __toCommonJS2(useConfiguration_exports);
|
|
5762
|
+
var import_react = require("react"), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), useConfiguration = () => {
|
|
5763
|
+
let { groups, animationDriver, ...restComponentConfig } = (0, import_react.useContext)(import_ComponentContext.ComponentContext), { animations, ...restConfig } = (0, import_config.getConfig)();
|
|
5764
|
+
return {
|
|
5765
|
+
...restConfig,
|
|
5766
|
+
...restComponentConfig,
|
|
5767
|
+
animationDriver: animationDriver ?? (0, import_config.getConfig)().animations
|
|
5768
|
+
};
|
|
5769
|
+
};
|
|
5742
5770
|
}
|
|
5743
5771
|
});
|
|
5744
5772
|
|
|
@@ -5747,8 +5775,8 @@ var require_useIsTouchDevice_native = __commonJS({
|
|
|
5747
5775
|
"../web/dist/cjs/hooks/useIsTouchDevice.native.js"(exports, module2) {
|
|
5748
5776
|
"use strict";
|
|
5749
5777
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5750
|
-
for (var
|
|
5751
|
-
__defProp2(target,
|
|
5778
|
+
for (var name2 in all)
|
|
5779
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5752
5780
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5753
5781
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5754
5782
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5768,8 +5796,8 @@ var require_Stack_native = __commonJS({
|
|
|
5768
5796
|
"../web/dist/cjs/views/Stack.native.js"(exports, module2) {
|
|
5769
5797
|
"use strict";
|
|
5770
5798
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5771
|
-
for (var
|
|
5772
|
-
__defProp2(target,
|
|
5799
|
+
for (var name2 in all)
|
|
5800
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5773
5801
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5774
5802
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5775
5803
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5793,8 +5821,8 @@ var require_useProps_native = __commonJS({
|
|
|
5793
5821
|
"../web/dist/cjs/hooks/useProps.native.js"(exports, module2) {
|
|
5794
5822
|
"use strict";
|
|
5795
5823
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5796
|
-
for (var
|
|
5797
|
-
__defProp2(target,
|
|
5824
|
+
for (var name2 in all)
|
|
5825
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5798
5826
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5799
5827
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5800
5828
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5824,14 +5852,14 @@ var require_useProps_native = __commonJS({
|
|
|
5824
5852
|
return usePropsAndStyle(props, opts)[1];
|
|
5825
5853
|
}
|
|
5826
5854
|
function usePropsAndStyle(props, opts) {
|
|
5827
|
-
var _a;
|
|
5855
|
+
var _a, _b;
|
|
5828
5856
|
let staticConfig = ((_a = opts == null ? void 0 : opts.forComponent) == null ? void 0 : _a.staticConfig) ?? import_Stack.Stack.staticConfig, [themeState, theme] = (0, import_useTheme.useThemeWithState)({
|
|
5829
5857
|
componentName: staticConfig.componentName
|
|
5830
5858
|
}), componentContext = (0, import_react.useContext)(import_ComponentContext.ComponentContext), media = (0, import_useMedia.useMedia)(), splitStyles = (0, import_getSplitStyles.useSplitStyles)(
|
|
5831
5859
|
props,
|
|
5832
5860
|
staticConfig,
|
|
5833
5861
|
theme,
|
|
5834
|
-
themeState.state.name,
|
|
5862
|
+
((_b = themeState.state) == null ? void 0 : _b.name) || "",
|
|
5835
5863
|
import_defaultComponentState.defaultComponentStateMounted,
|
|
5836
5864
|
{
|
|
5837
5865
|
isAnimated: !1,
|
|
@@ -5853,8 +5881,8 @@ var require_View_native = __commonJS({
|
|
|
5853
5881
|
"../web/dist/cjs/views/View.native.js"(exports, module2) {
|
|
5854
5882
|
"use strict";
|
|
5855
5883
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5856
|
-
for (var
|
|
5857
|
-
__defProp2(target,
|
|
5884
|
+
for (var name2 in all)
|
|
5885
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5858
5886
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5859
5887
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5860
5888
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5880,8 +5908,8 @@ var require_Text_native = __commonJS({
|
|
|
5880
5908
|
"../web/dist/cjs/views/Text.native.js"(exports, module2) {
|
|
5881
5909
|
"use strict";
|
|
5882
5910
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5883
|
-
for (var
|
|
5884
|
-
__defProp2(target,
|
|
5911
|
+
for (var name2 in all)
|
|
5912
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5885
5913
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5886
5914
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5887
5915
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5927,8 +5955,8 @@ var require_ThemeProvider_native = __commonJS({
|
|
|
5927
5955
|
"../web/dist/cjs/views/ThemeProvider.native.js"(exports, module2) {
|
|
5928
5956
|
"use strict";
|
|
5929
5957
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5930
|
-
for (var
|
|
5931
|
-
__defProp2(target,
|
|
5958
|
+
for (var name2 in all)
|
|
5959
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5932
5960
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5933
5961
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5934
5962
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5964,8 +5992,8 @@ var require_FontLanguage_native = __commonJS({
|
|
|
5964
5992
|
"../web/dist/cjs/views/FontLanguage.native.js"(exports, module2) {
|
|
5965
5993
|
"use strict";
|
|
5966
5994
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5967
|
-
for (var
|
|
5968
|
-
__defProp2(target,
|
|
5995
|
+
for (var name2 in all)
|
|
5996
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5969
5997
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5970
5998
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5971
5999
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -5988,8 +6016,8 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
5988
6016
|
"../web/dist/cjs/views/TamaguiProvider.native.js"(exports, module2) {
|
|
5989
6017
|
"use strict";
|
|
5990
6018
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
5991
|
-
for (var
|
|
5992
|
-
__defProp2(target,
|
|
6019
|
+
for (var name2 in all)
|
|
6020
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
5993
6021
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
5994
6022
|
if (from && typeof from == "object" || typeof from == "function")
|
|
5995
6023
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6035,24 +6063,24 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
6035
6063
|
}
|
|
6036
6064
|
});
|
|
6037
6065
|
|
|
6038
|
-
// ../web/dist/cjs/views/
|
|
6039
|
-
var
|
|
6040
|
-
"../web/dist/cjs/views/
|
|
6066
|
+
// ../web/dist/cjs/views/Configuration.native.js
|
|
6067
|
+
var require_Configuration_native = __commonJS({
|
|
6068
|
+
"../web/dist/cjs/views/Configuration.native.js"(exports, module2) {
|
|
6041
6069
|
"use strict";
|
|
6042
6070
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6043
|
-
for (var
|
|
6044
|
-
__defProp2(target,
|
|
6071
|
+
for (var name2 in all)
|
|
6072
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6045
6073
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6046
6074
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6047
6075
|
for (let key of __getOwnPropNames2(from))
|
|
6048
6076
|
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
6049
6077
|
return to;
|
|
6050
|
-
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod),
|
|
6051
|
-
__export2(
|
|
6052
|
-
|
|
6078
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), Configuration_exports = {};
|
|
6079
|
+
__export2(Configuration_exports, {
|
|
6080
|
+
Configuration: () => Configuration
|
|
6053
6081
|
});
|
|
6054
|
-
module2.exports = __toCommonJS2(
|
|
6055
|
-
var import_ComponentContext = require_ComponentContext_native(), import_jsx_runtime = require("react/jsx-runtime"),
|
|
6082
|
+
module2.exports = __toCommonJS2(Configuration_exports);
|
|
6083
|
+
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 });
|
|
6056
6084
|
}
|
|
6057
6085
|
});
|
|
6058
6086
|
|
|
@@ -6061,8 +6089,8 @@ var require_useGet_native = __commonJS({
|
|
|
6061
6089
|
"../use-event/dist/cjs/useGet.native.js"(exports, module2) {
|
|
6062
6090
|
"use strict";
|
|
6063
6091
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6064
|
-
for (var
|
|
6065
|
-
__defProp2(target,
|
|
6092
|
+
for (var name2 in all)
|
|
6093
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6066
6094
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6067
6095
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6068
6096
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6094,8 +6122,8 @@ var require_useEvent_native = __commonJS({
|
|
|
6094
6122
|
"../use-event/dist/cjs/useEvent.native.js"(exports, module2) {
|
|
6095
6123
|
"use strict";
|
|
6096
6124
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6097
|
-
for (var
|
|
6098
|
-
__defProp2(target,
|
|
6125
|
+
for (var name2 in all)
|
|
6126
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6099
6127
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6100
6128
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6101
6129
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6137,8 +6165,8 @@ var require_index_native9 = __commonJS({
|
|
|
6137
6165
|
"../web/dist/cjs/index.native.js"(exports, module2) {
|
|
6138
6166
|
"use strict";
|
|
6139
6167
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
6140
|
-
for (var
|
|
6141
|
-
__defProp2(target,
|
|
6168
|
+
for (var name2 in all)
|
|
6169
|
+
__defProp2(target, name2, { get: all[name2], enumerable: !0 });
|
|
6142
6170
|
}, __copyProps2 = (to, from, except, desc) => {
|
|
6143
6171
|
if (from && typeof from == "object" || typeof from == "function")
|
|
6144
6172
|
for (let key of __getOwnPropNames2(from))
|
|
@@ -6181,7 +6209,6 @@ var require_index_native9 = __commonJS({
|
|
|
6181
6209
|
__reExport2(src_exports2, require_createStyledContext_native(), module2.exports);
|
|
6182
6210
|
__reExport2(src_exports2, require_expandStyles_native(), module2.exports);
|
|
6183
6211
|
__reExport2(src_exports2, require_propMapper_native(), module2.exports);
|
|
6184
|
-
__reExport2(src_exports2, require_getAnimationDriver_native(), module2.exports);
|
|
6185
6212
|
__reExport2(src_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
6186
6213
|
__reExport2(src_exports2, require_getSplitStyles_native(), module2.exports);
|
|
6187
6214
|
__reExport2(src_exports2, require_getStylesAtomic_native(), module2.exports);
|
|
@@ -6202,9 +6229,10 @@ var require_index_native9 = __commonJS({
|
|
|
6202
6229
|
var import_useMedia = require_useMedia_native();
|
|
6203
6230
|
__reExport2(src_exports2, require_useTheme_native(), module2.exports);
|
|
6204
6231
|
__reExport2(src_exports2, require_useThemeName_native(), module2.exports);
|
|
6205
|
-
__reExport2(src_exports2,
|
|
6232
|
+
__reExport2(src_exports2, require_useConfiguration_native(), module2.exports);
|
|
6206
6233
|
__reExport2(src_exports2, require_useIsTouchDevice_native(), module2.exports);
|
|
6207
6234
|
__reExport2(src_exports2, require_useProps_native(), module2.exports);
|
|
6235
|
+
__reExport2(src_exports2, require_useConfiguration_native(), module2.exports);
|
|
6208
6236
|
__reExport2(src_exports2, require_Slot_native(), module2.exports);
|
|
6209
6237
|
__reExport2(src_exports2, require_Stack_native(), module2.exports);
|
|
6210
6238
|
__reExport2(src_exports2, require_View_native(), module2.exports);
|
|
@@ -6213,7 +6241,7 @@ var require_index_native9 = __commonJS({
|
|
|
6213
6241
|
__reExport2(src_exports2, require_ThemeProvider_native(), module2.exports);
|
|
6214
6242
|
__reExport2(src_exports2, require_FontLanguage_native(), module2.exports);
|
|
6215
6243
|
__reExport2(src_exports2, require_TamaguiProvider_native(), module2.exports);
|
|
6216
|
-
__reExport2(src_exports2,
|
|
6244
|
+
__reExport2(src_exports2, require_Configuration_native(), module2.exports);
|
|
6217
6245
|
__reExport2(src_exports2, require_index_native6(), module2.exports);
|
|
6218
6246
|
__reExport2(src_exports2, require_index_native8(), module2.exports);
|
|
6219
6247
|
__reExport2(src_exports2, require_index_native5(), module2.exports);
|