@gnome-ui/react-native 1.3.0 → 1.4.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/README.md +324 -4
- package/dist/components/Avatar/Avatar.d.ts +53 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Badge/Badge.d.ts +48 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/BottomSheet/BottomSheet.d.ts +82 -0
- package/dist/components/BottomSheet/index.d.ts +2 -0
- package/dist/components/Divider/Divider.d.ts +36 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Expander/Expander.d.ts +64 -0
- package/dist/components/Expander/index.d.ts +2 -0
- package/dist/components/Highlight/Highlight.d.ts +42 -0
- package/dist/components/Highlight/index.d.ts +2 -0
- package/dist/components/LevelBar/LevelBar.d.ts +72 -0
- package/dist/components/LevelBar/index.d.ts +2 -0
- package/dist/components/Overlay/Overlay.d.ts +41 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts +91 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/SpinButton/SpinButton.d.ts +57 -0
- package/dist/components/SpinButton/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1395 -444
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Children as e, Fragment as t, cloneElement as n, createContext as r, forwardRef as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
2
|
-
import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v,
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { Check as
|
|
5
|
-
import { Circle as
|
|
2
|
+
import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Image as y, Linking as b, Modal as x, PanResponder as S, Platform as C, Pressable as w, ScrollView as T, StyleSheet as E, Text as D, TextInput as O, View as k, useColorScheme as A } from "react-native";
|
|
3
|
+
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
4
|
+
import { Check as P, Connecting as F, Downloading as ee, PanDown as I, PanEnd as L, Recording as R, Syncing as te } from "@gnome-ui/icons";
|
|
5
|
+
import { Circle as ne, G as re, Path as z, Svg as ie, SvgXml as ae } from "react-native-svg";
|
|
6
6
|
//#region src/theme/tokens.generated.ts
|
|
7
|
-
var
|
|
7
|
+
var oe = {
|
|
8
8
|
accentBgColor: "#3584e4",
|
|
9
9
|
accentColor: "#3584e4",
|
|
10
10
|
accentFgColor: "#fff",
|
|
@@ -145,7 +145,7 @@ var se = {
|
|
|
145
145
|
yellow3: "#f6d32d",
|
|
146
146
|
yellow4: "#f5c211",
|
|
147
147
|
yellow5: "#e5a50a"
|
|
148
|
-
},
|
|
148
|
+
}, se = {
|
|
149
149
|
accentBgColor: "#3584e4",
|
|
150
150
|
accentColor: "#62a0ea",
|
|
151
151
|
accentFgColor: "#fff",
|
|
@@ -286,7 +286,7 @@ var se = {
|
|
|
286
286
|
yellow3: "#f6d32d",
|
|
287
287
|
yellow4: "#f5c211",
|
|
288
288
|
yellow5: "#e5a50a"
|
|
289
|
-
},
|
|
289
|
+
}, ce = {
|
|
290
290
|
accentBgColor: "#1a5fb4",
|
|
291
291
|
accentColor: "#1a5fb4",
|
|
292
292
|
accentFgColor: "#fff",
|
|
@@ -427,7 +427,7 @@ var se = {
|
|
|
427
427
|
yellow3: "#f6d32d",
|
|
428
428
|
yellow4: "#f5c211",
|
|
429
429
|
yellow5: "#e5a50a"
|
|
430
|
-
},
|
|
430
|
+
}, le = {
|
|
431
431
|
accentBgColor: "#62a0ea",
|
|
432
432
|
accentColor: "#99c1f1",
|
|
433
433
|
accentFgColor: "#fff",
|
|
@@ -568,7 +568,7 @@ var se = {
|
|
|
568
568
|
yellow3: "#f6d32d",
|
|
569
569
|
yellow4: "#f5c211",
|
|
570
570
|
yellow5: "#e5a50a"
|
|
571
|
-
},
|
|
571
|
+
}, ue = {
|
|
572
572
|
"--gnome-accent-bg-color": "#3584e4",
|
|
573
573
|
"--gnome-accent-color": "#3584e4",
|
|
574
574
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -709,7 +709,7 @@ var se = {
|
|
|
709
709
|
"--gnome-yellow-3": "#f6d32d",
|
|
710
710
|
"--gnome-yellow-4": "#f5c211",
|
|
711
711
|
"--gnome-yellow-5": "#e5a50a"
|
|
712
|
-
},
|
|
712
|
+
}, de = {
|
|
713
713
|
"--gnome-accent-bg-color": "#3584e4",
|
|
714
714
|
"--gnome-accent-color": "#62a0ea",
|
|
715
715
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -850,7 +850,7 @@ var se = {
|
|
|
850
850
|
"--gnome-yellow-3": "#f6d32d",
|
|
851
851
|
"--gnome-yellow-4": "#f5c211",
|
|
852
852
|
"--gnome-yellow-5": "#e5a50a"
|
|
853
|
-
},
|
|
853
|
+
}, fe = {
|
|
854
854
|
"--gnome-accent-bg-color": "#1a5fb4",
|
|
855
855
|
"--gnome-accent-color": "#1a5fb4",
|
|
856
856
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -991,7 +991,7 @@ var se = {
|
|
|
991
991
|
"--gnome-yellow-3": "#f6d32d",
|
|
992
992
|
"--gnome-yellow-4": "#f5c211",
|
|
993
993
|
"--gnome-yellow-5": "#e5a50a"
|
|
994
|
-
},
|
|
994
|
+
}, pe = {
|
|
995
995
|
"--gnome-accent-bg-color": "#62a0ea",
|
|
996
996
|
"--gnome-accent-color": "#99c1f1",
|
|
997
997
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -1132,7 +1132,7 @@ var se = {
|
|
|
1132
1132
|
"--gnome-yellow-3": "#f6d32d",
|
|
1133
1133
|
"--gnome-yellow-4": "#f5c211",
|
|
1134
1134
|
"--gnome-yellow-5": "#e5a50a"
|
|
1135
|
-
},
|
|
1135
|
+
}, B = r({
|
|
1136
1136
|
locale: void 0,
|
|
1137
1137
|
dir: "ltr",
|
|
1138
1138
|
numberFormat: void 0,
|
|
@@ -1142,16 +1142,16 @@ var se = {
|
|
|
1142
1142
|
contrast: "system",
|
|
1143
1143
|
resolvedContrast: "normal",
|
|
1144
1144
|
accentColor: "blue",
|
|
1145
|
-
theme:
|
|
1145
|
+
theme: oe
|
|
1146
1146
|
});
|
|
1147
|
-
function
|
|
1148
|
-
return s(
|
|
1147
|
+
function me() {
|
|
1148
|
+
return s(B).locale;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return s(
|
|
1150
|
+
function he() {
|
|
1151
|
+
return s(B).dir;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
let { locale: t, numberFormat: n } = s(
|
|
1153
|
+
function ge(e) {
|
|
1154
|
+
let { locale: t, numberFormat: n } = s(B);
|
|
1155
1155
|
return u(() => new Intl.NumberFormat(t, {
|
|
1156
1156
|
...n,
|
|
1157
1157
|
...e
|
|
@@ -1161,8 +1161,8 @@ function _e(e) {
|
|
|
1161
1161
|
e
|
|
1162
1162
|
]);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1165
|
-
let { locale: t, dateTimeFormat: n } = s(
|
|
1164
|
+
function _e(e) {
|
|
1165
|
+
let { locale: t, dateTimeFormat: n } = s(B);
|
|
1166
1166
|
return u(() => new Intl.DateTimeFormat(t, {
|
|
1167
1167
|
...n,
|
|
1168
1168
|
...e
|
|
@@ -1172,32 +1172,32 @@ function ve(e) {
|
|
|
1172
1172
|
e
|
|
1173
1173
|
]);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return s(
|
|
1175
|
+
function ve() {
|
|
1176
|
+
return s(B).colorScheme;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return s(
|
|
1178
|
+
function V() {
|
|
1179
|
+
return s(B).resolvedColorScheme;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return s(
|
|
1181
|
+
function ye() {
|
|
1182
|
+
return s(B).contrast;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return s(
|
|
1184
|
+
function H() {
|
|
1185
|
+
return s(B).resolvedContrast;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return s(
|
|
1187
|
+
function be() {
|
|
1188
|
+
return s(B).accentColor;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return s(
|
|
1190
|
+
function U() {
|
|
1191
|
+
return s(B).theme;
|
|
1192
1192
|
}
|
|
1193
1193
|
//#endregion
|
|
1194
1194
|
//#region src/theme/resolveTheme.ts
|
|
1195
|
-
function
|
|
1196
|
-
return t === "more" ? e === "dark" ?
|
|
1195
|
+
function xe({ colorScheme: e, contrast: t = "normal" }) {
|
|
1196
|
+
return t === "more" ? e === "dark" ? le : ce : e === "dark" ? se : oe;
|
|
1197
1197
|
}
|
|
1198
1198
|
//#endregion
|
|
1199
1199
|
//#region src/GnomeProvider/resolveContext.ts
|
|
1200
|
-
var
|
|
1200
|
+
var Se = new Set([
|
|
1201
1201
|
"blue",
|
|
1202
1202
|
"green",
|
|
1203
1203
|
"yellow",
|
|
@@ -1206,15 +1206,15 @@ var Ce = new Set([
|
|
|
1206
1206
|
"purple",
|
|
1207
1207
|
"brown"
|
|
1208
1208
|
]);
|
|
1209
|
-
function
|
|
1209
|
+
function Ce(e, t) {
|
|
1210
1210
|
return e === "system" ? t === "dark" ? "dark" : "light" : e;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function we(e, t) {
|
|
1213
1213
|
return e === "system" ? t ? "more" : "normal" : e;
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Te(e, t, n, r) {
|
|
1216
1216
|
if (t === "blue") return e;
|
|
1217
|
-
let i =
|
|
1217
|
+
let i = Se.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
|
|
1218
1218
|
return {
|
|
1219
1219
|
...e,
|
|
1220
1220
|
accentColor: a,
|
|
@@ -1224,23 +1224,23 @@ function Ee(e, t, n, r) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
//#endregion
|
|
1226
1226
|
//#region src/GnomeProvider/GnomeProvider.tsx
|
|
1227
|
-
function
|
|
1227
|
+
function Ee() {
|
|
1228
1228
|
let [e, t] = f(!1);
|
|
1229
1229
|
return c(() => {
|
|
1230
|
-
let e =
|
|
1230
|
+
let e = C.OS === "android" ? p.isHighTextContrastEnabled : C.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
|
|
1231
1231
|
if (!e) return;
|
|
1232
1232
|
let n = !0;
|
|
1233
1233
|
(async () => {
|
|
1234
1234
|
let r = await e();
|
|
1235
1235
|
n && t(r);
|
|
1236
1236
|
})();
|
|
1237
|
-
let r =
|
|
1237
|
+
let r = C.OS === "android" ? "highTextContrastChanged" : "darkerSystemColorsChanged", i = p.addEventListener(r, t);
|
|
1238
1238
|
return () => {
|
|
1239
1239
|
n = !1, i.remove();
|
|
1240
1240
|
};
|
|
1241
1241
|
}, []), e;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function W() {
|
|
1244
1244
|
let [e, t] = f(!1);
|
|
1245
1245
|
return c(() => {
|
|
1246
1246
|
let e = !0;
|
|
@@ -1254,8 +1254,8 @@ function V() {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
}, []), e;
|
|
1256
1256
|
}
|
|
1257
|
-
var
|
|
1258
|
-
let c =
|
|
1257
|
+
var De = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
|
|
1258
|
+
let c = A(), l = Ee(), d = Ce(i, c), f = we(a, l), p = t ?? (v.isRTL ? "rtl" : "ltr"), m = u(() => ({
|
|
1259
1259
|
locale: e,
|
|
1260
1260
|
dir: p,
|
|
1261
1261
|
numberFormat: n,
|
|
@@ -1265,7 +1265,7 @@ var Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1265
1265
|
contrast: a,
|
|
1266
1266
|
resolvedContrast: f,
|
|
1267
1267
|
accentColor: o,
|
|
1268
|
-
theme:
|
|
1268
|
+
theme: Te(xe({
|
|
1269
1269
|
colorScheme: d,
|
|
1270
1270
|
contrast: f
|
|
1271
1271
|
}), o, d, f)
|
|
@@ -1280,11 +1280,11 @@ var Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1280
1280
|
f,
|
|
1281
1281
|
o
|
|
1282
1282
|
]);
|
|
1283
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ M(B.Provider, {
|
|
1284
1284
|
value: m,
|
|
1285
1285
|
children: s
|
|
1286
1286
|
});
|
|
1287
|
-
},
|
|
1287
|
+
}, Oe = new Set([
|
|
1288
1288
|
"large-title",
|
|
1289
1289
|
"title-1",
|
|
1290
1290
|
"title-2",
|
|
@@ -1292,7 +1292,7 @@ var Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1292
1292
|
"title-4",
|
|
1293
1293
|
"heading"
|
|
1294
1294
|
]);
|
|
1295
|
-
function
|
|
1295
|
+
function ke(e, t) {
|
|
1296
1296
|
let n = (e) => String(e);
|
|
1297
1297
|
switch (t) {
|
|
1298
1298
|
case "large-title": return {
|
|
@@ -1361,7 +1361,7 @@ function Ae(e, t) {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Ae(e, t) {
|
|
1365
1365
|
switch (t) {
|
|
1366
1366
|
case "dim": return {
|
|
1367
1367
|
color: e.windowFgColor,
|
|
@@ -1375,22 +1375,22 @@ function je(e, t) {
|
|
|
1375
1375
|
default: return { color: e.windowFgColor };
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
var
|
|
1379
|
-
let s =
|
|
1380
|
-
return /* @__PURE__ */
|
|
1378
|
+
var G = i(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
|
|
1379
|
+
let s = U();
|
|
1380
|
+
return /* @__PURE__ */ M(D, {
|
|
1381
1381
|
ref: o,
|
|
1382
|
-
accessibilityRole: i ?? (
|
|
1382
|
+
accessibilityRole: i ?? (Oe.has(e) ? "header" : void 0),
|
|
1383
1383
|
style: [
|
|
1384
1384
|
{ fontFamily: s.fontFamily },
|
|
1385
|
-
|
|
1386
|
-
|
|
1385
|
+
ke(s, e),
|
|
1386
|
+
Ae(s, t),
|
|
1387
1387
|
n
|
|
1388
1388
|
],
|
|
1389
1389
|
...a,
|
|
1390
1390
|
children: r
|
|
1391
1391
|
});
|
|
1392
|
-
}),
|
|
1393
|
-
let u =
|
|
1392
|
+
}), je = i(function({ title: e, subtitle: t, leading: n, trailing: r, interactive: i = !1, variant: a = "default", style: o, disabled: s, ...c }, l) {
|
|
1393
|
+
let u = U(), d = a === "property", f = {
|
|
1394
1394
|
flexDirection: "row",
|
|
1395
1395
|
alignItems: "center",
|
|
1396
1396
|
gap: u.space2,
|
|
@@ -1398,23 +1398,23 @@ var H = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1398
1398
|
paddingHorizontal: u.space4,
|
|
1399
1399
|
minHeight: 52,
|
|
1400
1400
|
width: "100%"
|
|
1401
|
-
}, p = /* @__PURE__ */
|
|
1402
|
-
n && /* @__PURE__ */
|
|
1401
|
+
}, p = /* @__PURE__ */ N(j, { children: [
|
|
1402
|
+
n && /* @__PURE__ */ M(k, {
|
|
1403
1403
|
style: { flexShrink: 0 },
|
|
1404
1404
|
children: n
|
|
1405
1405
|
}),
|
|
1406
|
-
/* @__PURE__ */
|
|
1406
|
+
/* @__PURE__ */ N(k, {
|
|
1407
1407
|
style: {
|
|
1408
1408
|
flex: 1,
|
|
1409
1409
|
gap: 2
|
|
1410
1410
|
},
|
|
1411
|
-
children: [/* @__PURE__ */
|
|
1411
|
+
children: [/* @__PURE__ */ M(G, {
|
|
1412
1412
|
variant: d ? "caption" : "body",
|
|
1413
1413
|
color: d ? "dim" : "default",
|
|
1414
1414
|
numberOfLines: 1,
|
|
1415
1415
|
ellipsizeMode: "tail",
|
|
1416
1416
|
children: e
|
|
1417
|
-
}), t && /* @__PURE__ */
|
|
1417
|
+
}), t && /* @__PURE__ */ M(G, {
|
|
1418
1418
|
variant: d ? "body" : "caption",
|
|
1419
1419
|
color: d ? "default" : "dim",
|
|
1420
1420
|
numberOfLines: 1,
|
|
@@ -1422,7 +1422,7 @@ var H = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1422
1422
|
children: t
|
|
1423
1423
|
})]
|
|
1424
1424
|
}),
|
|
1425
|
-
r && /* @__PURE__ */
|
|
1425
|
+
r && /* @__PURE__ */ M(k, {
|
|
1426
1426
|
style: {
|
|
1427
1427
|
flexShrink: 0,
|
|
1428
1428
|
flexDirection: "row",
|
|
@@ -1432,7 +1432,7 @@ var H = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1432
1432
|
children: r
|
|
1433
1433
|
})
|
|
1434
1434
|
] });
|
|
1435
|
-
return i ? /* @__PURE__ */
|
|
1435
|
+
return i ? /* @__PURE__ */ M(w, {
|
|
1436
1436
|
ref: l,
|
|
1437
1437
|
disabled: s,
|
|
1438
1438
|
accessibilityRole: "button",
|
|
@@ -1446,22 +1446,22 @@ var H = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1446
1446
|
o
|
|
1447
1447
|
],
|
|
1448
1448
|
...c,
|
|
1449
|
-
children: ({ pressed: e }) => /* @__PURE__ */
|
|
1449
|
+
children: ({ pressed: e }) => /* @__PURE__ */ N(j, { children: [p, e && !s ? /* @__PURE__ */ M(k, {
|
|
1450
1450
|
pointerEvents: "none",
|
|
1451
|
-
style: [
|
|
1451
|
+
style: [E.absoluteFill, { backgroundColor: u.activeOverlay }]
|
|
1452
1452
|
}) : null] })
|
|
1453
|
-
}) : /* @__PURE__ */
|
|
1453
|
+
}) : /* @__PURE__ */ M(k, {
|
|
1454
1454
|
ref: l,
|
|
1455
1455
|
style: [f, o],
|
|
1456
1456
|
...c,
|
|
1457
1457
|
children: p
|
|
1458
1458
|
});
|
|
1459
|
-
}),
|
|
1459
|
+
}), Me = {
|
|
1460
1460
|
sm: 12,
|
|
1461
1461
|
md: 16,
|
|
1462
1462
|
lg: 20
|
|
1463
1463
|
};
|
|
1464
|
-
function
|
|
1464
|
+
function Ne(e, t) {
|
|
1465
1465
|
switch (t) {
|
|
1466
1466
|
case "blue": return e.blue3;
|
|
1467
1467
|
case "green": return e.green4;
|
|
@@ -1473,7 +1473,7 @@ function Pe(e, t) {
|
|
|
1473
1473
|
default: return e.windowFgColor;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Pe(e) {
|
|
1477
1477
|
return e ? {
|
|
1478
1478
|
accessible: !0,
|
|
1479
1479
|
accessibilityLabel: e,
|
|
@@ -1485,27 +1485,27 @@ function Fe(e) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
//#endregion
|
|
1487
1487
|
//#region src/components/Icon/Icon.tsx
|
|
1488
|
-
function
|
|
1488
|
+
function Fe(e) {
|
|
1489
1489
|
return "paths" in e && Array.isArray(e.paths) ? !0 : typeof e.svg == "string" && !("path" in e);
|
|
1490
1490
|
}
|
|
1491
1491
|
function Ie(e) {
|
|
1492
1492
|
return e === "nonzero" || e === "evenodd" ? e : void 0;
|
|
1493
1493
|
}
|
|
1494
|
-
var
|
|
1495
|
-
let s =
|
|
1494
|
+
var K = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
|
|
1495
|
+
let s = U(), c = Me[t], l = Ne(s, a), u = Fe(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = Fe(e) ? e.svg : void 0, f = Fe(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ M(z, {
|
|
1496
1496
|
d: e.d,
|
|
1497
1497
|
fillRule: Ie(e.fillRule),
|
|
1498
1498
|
clipRule: Ie(e.clipRule),
|
|
1499
1499
|
transform: e.transform
|
|
1500
|
-
}, t)) : [/* @__PURE__ */
|
|
1501
|
-
return d ? /* @__PURE__ */
|
|
1500
|
+
}, t)) : [/* @__PURE__ */ M(z, { d: e.path }, 0)], p = Pe(i);
|
|
1501
|
+
return d ? /* @__PURE__ */ M(ae, {
|
|
1502
1502
|
xml: `<svg viewBox="${u}">${d}</svg>`,
|
|
1503
1503
|
width: n ?? c,
|
|
1504
1504
|
height: r ?? c,
|
|
1505
1505
|
fill: l,
|
|
1506
1506
|
style: o,
|
|
1507
1507
|
...p
|
|
1508
|
-
}) : /* @__PURE__ */
|
|
1508
|
+
}) : /* @__PURE__ */ M(ie, {
|
|
1509
1509
|
viewBox: u,
|
|
1510
1510
|
width: n ?? c,
|
|
1511
1511
|
height: r ?? c,
|
|
@@ -1514,7 +1514,7 @@ var W = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, sty
|
|
|
1514
1514
|
...p,
|
|
1515
1515
|
children: f
|
|
1516
1516
|
});
|
|
1517
|
-
}, Le = m.createAnimatedComponent(
|
|
1517
|
+
}, Le = m.createAnimatedComponent(re), Re = m.createAnimatedComponent(z), ze = m.createAnimatedComponent(ne);
|
|
1518
1518
|
function Be(e) {
|
|
1519
1519
|
let t = d(new m.Value(0)).current;
|
|
1520
1520
|
return c(() => {
|
|
@@ -1543,12 +1543,12 @@ function Ve(e, t) {
|
|
|
1543
1543
|
t
|
|
1544
1544
|
]), n;
|
|
1545
1545
|
}
|
|
1546
|
-
var He = ({ fill: e }) => /* @__PURE__ */
|
|
1546
|
+
var He = ({ fill: e }) => /* @__PURE__ */ M(Le, {
|
|
1547
1547
|
transform: Be(1500).interpolate({
|
|
1548
1548
|
inputRange: [0, 1],
|
|
1549
1549
|
outputRange: ["rotate(0, 8, 8)", "rotate(360, 8, 8)"]
|
|
1550
1550
|
}),
|
|
1551
|
-
children: /* @__PURE__ */
|
|
1551
|
+
children: /* @__PURE__ */ M(z, {
|
|
1552
1552
|
fill: e,
|
|
1553
1553
|
fillRule: "evenodd",
|
|
1554
1554
|
d: "M8 2a6 6 0 0 0-6 6h2a4 4 0 0 1 4-4 4 4 0 0 1 4 4 4 4 0 0 1-4 4v-2L5 13l3 3v-2a6 6 0 0 0 6-6 6 6 0 0 0-6-6z"
|
|
@@ -1568,7 +1568,7 @@ var He = ({ fill: e }) => /* @__PURE__ */ j(Le, {
|
|
|
1568
1568
|
useNativeDriver: !1
|
|
1569
1569
|
})]));
|
|
1570
1570
|
return n.start(), () => n.stop();
|
|
1571
|
-
}, [t]), /* @__PURE__ */
|
|
1571
|
+
}, [t]), /* @__PURE__ */ M(Re, {
|
|
1572
1572
|
fill: e,
|
|
1573
1573
|
opacity: t,
|
|
1574
1574
|
d: "m 15 8 c 0 3.867188 -3.132812 7 -7 7 s -7 -3.132812 -7 -7 s 3.132812 -7 7 -7 s 7 3.132812 7 7 z m 0 0"
|
|
@@ -1602,20 +1602,20 @@ var He = ({ fill: e }) => /* @__PURE__ */ j(Le, {
|
|
|
1602
1602
|
1
|
|
1603
1603
|
]
|
|
1604
1604
|
});
|
|
1605
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(z, {
|
|
1606
1606
|
fill: e,
|
|
1607
1607
|
d: "M2 13h12v2H2z"
|
|
1608
|
-
}), /* @__PURE__ */
|
|
1608
|
+
}), /* @__PURE__ */ M(Le, {
|
|
1609
1609
|
transform: r,
|
|
1610
1610
|
opacity: i,
|
|
1611
|
-
children: /* @__PURE__ */
|
|
1611
|
+
children: /* @__PURE__ */ M(z, {
|
|
1612
1612
|
fill: e,
|
|
1613
1613
|
fillRule: "evenodd",
|
|
1614
1614
|
d: "m2.5 5 5.5 6 5.5-6z"
|
|
1615
1615
|
})
|
|
1616
1616
|
})] });
|
|
1617
1617
|
};
|
|
1618
|
-
function
|
|
1618
|
+
function q(e, t, n) {
|
|
1619
1619
|
return `translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`;
|
|
1620
1620
|
}
|
|
1621
1621
|
var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
@@ -1625,7 +1625,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1625
1625
|
.4,
|
|
1626
1626
|
1
|
|
1627
1627
|
];
|
|
1628
|
-
return /* @__PURE__ */
|
|
1628
|
+
return /* @__PURE__ */ M(ze, {
|
|
1629
1629
|
cx: e,
|
|
1630
1630
|
cy: t,
|
|
1631
1631
|
r: 2,
|
|
@@ -1642,35 +1642,35 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1642
1642
|
transform: i.interpolate({
|
|
1643
1643
|
inputRange: a,
|
|
1644
1644
|
outputRange: [
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1645
|
+
q(e, t, 1),
|
|
1646
|
+
q(e, t, .7),
|
|
1647
|
+
q(e, t, 1),
|
|
1648
|
+
q(e, t, 1)
|
|
1649
1649
|
]
|
|
1650
1650
|
})
|
|
1651
1651
|
});
|
|
1652
1652
|
}, Ke = new Map([
|
|
1653
|
-
[
|
|
1654
|
-
[
|
|
1655
|
-
[
|
|
1656
|
-
[
|
|
1657
|
-
/* @__PURE__ */
|
|
1653
|
+
[te, He],
|
|
1654
|
+
[R, Ue],
|
|
1655
|
+
[ee, We],
|
|
1656
|
+
[F, ({ fill: e }) => /* @__PURE__ */ N(j, { children: [
|
|
1657
|
+
/* @__PURE__ */ M(z, {
|
|
1658
1658
|
fill: e,
|
|
1659
1659
|
d: "m 8 1.992188 c -2.617188 0 -5.238281 0.933593 -7.195312 2.808593 l -0.496094 0.480469 c -0.3984378 0.378906 -0.410156 1.011719 -0.03125 1.410156 c 0.003906 0.007813 0.011718 0.011719 0.019531 0.015625 c 0.480469 -1.011719 1.503906 -1.707031 2.703125 -1.707031 h 0.9375 c 2.480469 -1.292969 5.644531 -1.292969 8.125 0 h 0.9375 c 1.199219 0 2.222656 0.695312 2.707031 1.707031 c 0.003907 -0.007812 0.011719 -0.011719 0.015625 -0.015625 c 0.378906 -0.398437 0.367188 -1.03125 -0.03125 -1.410156 l -0.496094 -0.480469 c -1.957031 -1.875 -4.578124 -2.808593 -7.195312 -2.808593 z m -1.730469 9.007812 c -0.441406 0.765625 -0.339843 1.757812 0.316407 2.414062 c 0.78125 0.78125 2.046874 0.78125 2.828124 0 c 0.65625 -0.65625 0.757813 -1.648437 0.316407 -2.414062 z m 0 0"
|
|
1660
1660
|
}),
|
|
1661
|
-
/* @__PURE__ */
|
|
1661
|
+
/* @__PURE__ */ M(Ge, {
|
|
1662
1662
|
cx: 3,
|
|
1663
1663
|
cy: 8,
|
|
1664
1664
|
fill: e,
|
|
1665
1665
|
delay: 0
|
|
1666
1666
|
}),
|
|
1667
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ M(Ge, {
|
|
1668
1668
|
cx: 8,
|
|
1669
1669
|
cy: 8,
|
|
1670
1670
|
fill: e,
|
|
1671
1671
|
delay: 150
|
|
1672
1672
|
}),
|
|
1673
|
-
/* @__PURE__ */
|
|
1673
|
+
/* @__PURE__ */ M(Ge, {
|
|
1674
1674
|
cx: 13,
|
|
1675
1675
|
cy: 8,
|
|
1676
1676
|
fill: e,
|
|
@@ -1678,8 +1678,8 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1678
1678
|
})
|
|
1679
1679
|
] })]
|
|
1680
1680
|
]), qe = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
|
|
1681
|
-
let s =
|
|
1682
|
-
if (!l) return /* @__PURE__ */
|
|
1681
|
+
let s = U(), c = W(), l = t && !c ? Ke.get(e) : void 0;
|
|
1682
|
+
if (!l) return /* @__PURE__ */ M(K, {
|
|
1683
1683
|
icon: e,
|
|
1684
1684
|
size: n,
|
|
1685
1685
|
width: r,
|
|
@@ -1687,16 +1687,193 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1687
1687
|
label: a,
|
|
1688
1688
|
color: o
|
|
1689
1689
|
});
|
|
1690
|
-
let u =
|
|
1691
|
-
return /* @__PURE__ */
|
|
1690
|
+
let u = Me[n], d = Ne(s, o), f = Pe(a);
|
|
1691
|
+
return /* @__PURE__ */ M(ie, {
|
|
1692
1692
|
viewBox: e.viewBox,
|
|
1693
1693
|
width: r ?? u,
|
|
1694
1694
|
height: i ?? u,
|
|
1695
1695
|
...f,
|
|
1696
|
-
children: /* @__PURE__ */
|
|
1696
|
+
children: /* @__PURE__ */ M(l, { fill: d })
|
|
1697
1697
|
});
|
|
1698
|
-
}, Je =
|
|
1699
|
-
|
|
1698
|
+
}, Je = [
|
|
1699
|
+
"blue",
|
|
1700
|
+
"green",
|
|
1701
|
+
"yellow",
|
|
1702
|
+
"orange",
|
|
1703
|
+
"red",
|
|
1704
|
+
"purple",
|
|
1705
|
+
"brown",
|
|
1706
|
+
"teal",
|
|
1707
|
+
"slate"
|
|
1708
|
+
], Ye = {
|
|
1709
|
+
sm: 24,
|
|
1710
|
+
md: 32,
|
|
1711
|
+
lg: 48,
|
|
1712
|
+
xl: 64
|
|
1713
|
+
}, Xe = {
|
|
1714
|
+
sm: .5,
|
|
1715
|
+
md: .6,
|
|
1716
|
+
lg: 1,
|
|
1717
|
+
xl: 1.4
|
|
1718
|
+
};
|
|
1719
|
+
function Ze(e) {
|
|
1720
|
+
let t = 0;
|
|
1721
|
+
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
1722
|
+
return Je[t % Je.length];
|
|
1723
|
+
}
|
|
1724
|
+
function Qe(e) {
|
|
1725
|
+
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
1726
|
+
return t.length === 0 ? "" : t.length === 1 ? t[0].charAt(0).toUpperCase() : t[0].charAt(0).toUpperCase() + t[t.length - 1].charAt(0).toUpperCase();
|
|
1727
|
+
}
|
|
1728
|
+
function $e(e, t) {
|
|
1729
|
+
switch (t) {
|
|
1730
|
+
case "blue": return {
|
|
1731
|
+
backgroundColor: e.blue3,
|
|
1732
|
+
initialsColor: "#fff"
|
|
1733
|
+
};
|
|
1734
|
+
case "green": return {
|
|
1735
|
+
backgroundColor: e.green4,
|
|
1736
|
+
initialsColor: "#fff"
|
|
1737
|
+
};
|
|
1738
|
+
case "yellow": return {
|
|
1739
|
+
backgroundColor: e.yellow4,
|
|
1740
|
+
initialsColor: "rgba(0, 0, 0, 0.8)"
|
|
1741
|
+
};
|
|
1742
|
+
case "orange": return {
|
|
1743
|
+
backgroundColor: e.orange4,
|
|
1744
|
+
initialsColor: "#fff"
|
|
1745
|
+
};
|
|
1746
|
+
case "red": return {
|
|
1747
|
+
backgroundColor: e.red3,
|
|
1748
|
+
initialsColor: "#fff"
|
|
1749
|
+
};
|
|
1750
|
+
case "purple": return {
|
|
1751
|
+
backgroundColor: e.purple3,
|
|
1752
|
+
initialsColor: "#fff"
|
|
1753
|
+
};
|
|
1754
|
+
case "brown": return {
|
|
1755
|
+
backgroundColor: e.brown3,
|
|
1756
|
+
initialsColor: "#fff"
|
|
1757
|
+
};
|
|
1758
|
+
case "teal": return {
|
|
1759
|
+
backgroundColor: "#2190a4",
|
|
1760
|
+
initialsColor: "#fff"
|
|
1761
|
+
};
|
|
1762
|
+
case "slate": return {
|
|
1763
|
+
backgroundColor: e.dark2,
|
|
1764
|
+
initialsColor: "#fff"
|
|
1765
|
+
};
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
var et = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a }) => {
|
|
1769
|
+
let o = U(), s = V(), c = i ?? (e ? Ze(e) : "blue"), l = Qe(e), u = Ye[r], { backgroundColor: d, initialsColor: f } = $e(o, c), p = s === "dark" ? "rgba(255, 255, 255, 0.08)" : "rgba(0, 0, 0, 0.08)";
|
|
1770
|
+
return /* @__PURE__ */ M(k, {
|
|
1771
|
+
accessible: !0,
|
|
1772
|
+
role: "img",
|
|
1773
|
+
accessibilityLabel: n ?? (e || void 0) ?? "Avatar",
|
|
1774
|
+
style: [{
|
|
1775
|
+
width: u,
|
|
1776
|
+
height: u,
|
|
1777
|
+
borderRadius: o.radiusPill,
|
|
1778
|
+
overflow: "hidden",
|
|
1779
|
+
alignItems: "center",
|
|
1780
|
+
justifyContent: "center",
|
|
1781
|
+
backgroundColor: t ? void 0 : d,
|
|
1782
|
+
borderWidth: 1,
|
|
1783
|
+
borderColor: p
|
|
1784
|
+
}, a],
|
|
1785
|
+
children: t ? /* @__PURE__ */ M(y, {
|
|
1786
|
+
testID: "avatar-image",
|
|
1787
|
+
source: { uri: t },
|
|
1788
|
+
accessibilityElementsHidden: !0,
|
|
1789
|
+
importantForAccessibility: "no",
|
|
1790
|
+
resizeMode: "cover",
|
|
1791
|
+
style: {
|
|
1792
|
+
width: "100%",
|
|
1793
|
+
height: "100%"
|
|
1794
|
+
}
|
|
1795
|
+
}) : /* @__PURE__ */ M(D, {
|
|
1796
|
+
accessibilityElementsHidden: !0,
|
|
1797
|
+
importantForAccessibility: "no",
|
|
1798
|
+
style: {
|
|
1799
|
+
fontFamily: o.fontFamily,
|
|
1800
|
+
fontWeight: String(o.fontWeightSemibold),
|
|
1801
|
+
fontSize: o.fontSizeBody * Xe[r],
|
|
1802
|
+
lineHeight: o.fontSizeBody * Xe[r],
|
|
1803
|
+
color: f
|
|
1804
|
+
},
|
|
1805
|
+
children: l
|
|
1806
|
+
})
|
|
1807
|
+
});
|
|
1808
|
+
};
|
|
1809
|
+
//#endregion
|
|
1810
|
+
//#region src/components/Badge/Badge.tsx
|
|
1811
|
+
function tt(e, t, n) {
|
|
1812
|
+
switch (n) {
|
|
1813
|
+
case "accent": return {
|
|
1814
|
+
backgroundColor: e.accentBgColor,
|
|
1815
|
+
color: e.accentFgColor
|
|
1816
|
+
};
|
|
1817
|
+
case "success": return {
|
|
1818
|
+
backgroundColor: e.successBgColor,
|
|
1819
|
+
color: e.successFgColor
|
|
1820
|
+
};
|
|
1821
|
+
case "warning": return {
|
|
1822
|
+
backgroundColor: e.warningBgColor,
|
|
1823
|
+
color: e.warningFgColor
|
|
1824
|
+
};
|
|
1825
|
+
case "error": return {
|
|
1826
|
+
backgroundColor: e.errorBgColor,
|
|
1827
|
+
color: e.errorFgColor
|
|
1828
|
+
};
|
|
1829
|
+
case "neutral": return {
|
|
1830
|
+
backgroundColor: t === "dark" ? e.dark2 : e.light4,
|
|
1831
|
+
color: e.windowFgColor
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
var nt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i }) => {
|
|
1836
|
+
let a = U(), { backgroundColor: o, color: s } = tt(a, V(), e), c = /* @__PURE__ */ M(k, {
|
|
1837
|
+
testID: "badge-ring",
|
|
1838
|
+
style: [{
|
|
1839
|
+
padding: 2,
|
|
1840
|
+
borderRadius: a.radiusPill,
|
|
1841
|
+
backgroundColor: a.windowBgColor
|
|
1842
|
+
}, r ? {
|
|
1843
|
+
position: "absolute",
|
|
1844
|
+
top: t ? -2 : -4,
|
|
1845
|
+
right: t ? -2 : -4,
|
|
1846
|
+
zIndex: 1
|
|
1847
|
+
} : null],
|
|
1848
|
+
children: /* @__PURE__ */ M(k, {
|
|
1849
|
+
testID: "badge",
|
|
1850
|
+
style: [{
|
|
1851
|
+
minWidth: t ? 10 : 18,
|
|
1852
|
+
height: t ? 10 : 18,
|
|
1853
|
+
paddingHorizontal: t ? 0 : 5,
|
|
1854
|
+
borderRadius: a.radiusPill,
|
|
1855
|
+
backgroundColor: o,
|
|
1856
|
+
alignItems: "center",
|
|
1857
|
+
justifyContent: "center"
|
|
1858
|
+
}, i],
|
|
1859
|
+
children: !t && (typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ M(D, {
|
|
1860
|
+
style: {
|
|
1861
|
+
fontFamily: a.fontFamily,
|
|
1862
|
+
fontWeight: String(a.fontWeightSemibold),
|
|
1863
|
+
fontSize: 11,
|
|
1864
|
+
lineHeight: 13,
|
|
1865
|
+
color: s
|
|
1866
|
+
},
|
|
1867
|
+
children: n
|
|
1868
|
+
}) : n)
|
|
1869
|
+
})
|
|
1870
|
+
});
|
|
1871
|
+
return r ? /* @__PURE__ */ N(k, {
|
|
1872
|
+
style: { alignSelf: "flex-start" },
|
|
1873
|
+
children: [r, c]
|
|
1874
|
+
}) : c;
|
|
1875
|
+
}, rt = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
|
|
1876
|
+
let c = U(), l = {
|
|
1700
1877
|
info: {
|
|
1701
1878
|
bg: c.accentBgColor,
|
|
1702
1879
|
fg: c.accentFgColor
|
|
@@ -1714,7 +1891,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1714
1891
|
fg: c.successFgColor
|
|
1715
1892
|
}
|
|
1716
1893
|
}[e], u = e === "warning" ? "rgba(0, 0, 0, 0.14)" : "rgba(255, 255, 255, 0.25)";
|
|
1717
|
-
return /* @__PURE__ */
|
|
1894
|
+
return /* @__PURE__ */ N(k, {
|
|
1718
1895
|
accessible: !0,
|
|
1719
1896
|
accessibilityRole: "alert",
|
|
1720
1897
|
accessibilityLiveRegion: "polite",
|
|
@@ -1729,7 +1906,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1729
1906
|
backgroundColor: l.bg
|
|
1730
1907
|
}, o],
|
|
1731
1908
|
...s,
|
|
1732
|
-
children: [/* @__PURE__ */
|
|
1909
|
+
children: [/* @__PURE__ */ M(G, {
|
|
1733
1910
|
variant: "body",
|
|
1734
1911
|
style: {
|
|
1735
1912
|
flex: 1,
|
|
@@ -1737,14 +1914,14 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1737
1914
|
color: l.fg
|
|
1738
1915
|
},
|
|
1739
1916
|
children: t
|
|
1740
|
-
}), (n || i) && /* @__PURE__ */
|
|
1917
|
+
}), (n || i) && /* @__PURE__ */ N(k, {
|
|
1741
1918
|
style: {
|
|
1742
1919
|
flexDirection: "row",
|
|
1743
1920
|
alignItems: "center",
|
|
1744
1921
|
gap: c.space1,
|
|
1745
1922
|
flexShrink: 0
|
|
1746
1923
|
},
|
|
1747
|
-
children: [n && /* @__PURE__ */
|
|
1924
|
+
children: [n && /* @__PURE__ */ M(w, {
|
|
1748
1925
|
accessibilityRole: "button",
|
|
1749
1926
|
accessibilityLabel: n,
|
|
1750
1927
|
onPress: r,
|
|
@@ -1754,7 +1931,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1754
1931
|
borderRadius: c.radiusMd,
|
|
1755
1932
|
backgroundColor: e ? u : "transparent"
|
|
1756
1933
|
}),
|
|
1757
|
-
children: /* @__PURE__ */
|
|
1934
|
+
children: /* @__PURE__ */ M(D, {
|
|
1758
1935
|
style: {
|
|
1759
1936
|
fontFamily: c.fontFamily,
|
|
1760
1937
|
fontSize: c.fontSizeBody,
|
|
@@ -1763,7 +1940,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1763
1940
|
},
|
|
1764
1941
|
children: n
|
|
1765
1942
|
})
|
|
1766
|
-
}), i && /* @__PURE__ */
|
|
1943
|
+
}), i && /* @__PURE__ */ M(w, {
|
|
1767
1944
|
accessibilityRole: "button",
|
|
1768
1945
|
accessibilityLabel: "Dismiss",
|
|
1769
1946
|
hitSlop: 4,
|
|
@@ -1777,7 +1954,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1777
1954
|
opacity: e ? 1 : .6,
|
|
1778
1955
|
backgroundColor: e ? u : "transparent"
|
|
1779
1956
|
}),
|
|
1780
|
-
children: /* @__PURE__ */
|
|
1957
|
+
children: /* @__PURE__ */ M(D, {
|
|
1781
1958
|
style: {
|
|
1782
1959
|
fontSize: c.fontSizeBody,
|
|
1783
1960
|
color: l.fg
|
|
@@ -1787,13 +1964,169 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1787
1964
|
})]
|
|
1788
1965
|
})]
|
|
1789
1966
|
});
|
|
1790
|
-
},
|
|
1791
|
-
|
|
1967
|
+
}, it = m.createAnimatedComponent(w), at = 150, ot = ({ open: e, title: t, children: n, onClose: r, closeOnBackdrop: i = !0, style: a, testID: o }) => {
|
|
1968
|
+
let s = U(), l = W(), [p, _] = f(e), [v, y] = f(0), b = d(new m.Value(g.get("window").height)).current, C = d(new m.Value(0)).current, T = d(!1);
|
|
1969
|
+
c(() => {
|
|
1970
|
+
e && _(!0);
|
|
1971
|
+
}, [e]), c(() => {
|
|
1972
|
+
if (!(!p || T.current)) if (e) {
|
|
1973
|
+
if (l) {
|
|
1974
|
+
b.setValue(0), C.setValue(1);
|
|
1975
|
+
return;
|
|
1976
|
+
}
|
|
1977
|
+
v > 0 && (b.setValue(v), m.timing(b, {
|
|
1978
|
+
toValue: 0,
|
|
1979
|
+
duration: s.durationNormal,
|
|
1980
|
+
useNativeDriver: !0
|
|
1981
|
+
}).start()), m.timing(C, {
|
|
1982
|
+
toValue: 1,
|
|
1983
|
+
duration: s.durationNormal,
|
|
1984
|
+
useNativeDriver: !0
|
|
1985
|
+
}).start();
|
|
1986
|
+
} else {
|
|
1987
|
+
if (l) {
|
|
1988
|
+
_(!1);
|
|
1989
|
+
return;
|
|
1990
|
+
}
|
|
1991
|
+
m.timing(b, {
|
|
1992
|
+
toValue: v || g.get("window").height,
|
|
1993
|
+
duration: s.durationNormal,
|
|
1994
|
+
useNativeDriver: !0
|
|
1995
|
+
}).start(({ finished: e }) => {
|
|
1996
|
+
e && _(!1);
|
|
1997
|
+
}), m.timing(C, {
|
|
1998
|
+
toValue: 0,
|
|
1999
|
+
duration: s.durationNormal,
|
|
2000
|
+
useNativeDriver: !0
|
|
2001
|
+
}).start();
|
|
2002
|
+
}
|
|
2003
|
+
}, [
|
|
2004
|
+
e,
|
|
2005
|
+
p,
|
|
2006
|
+
v,
|
|
2007
|
+
l,
|
|
2008
|
+
b,
|
|
2009
|
+
C,
|
|
2010
|
+
s.durationNormal
|
|
2011
|
+
]), c(() => {
|
|
2012
|
+
if (!e) return;
|
|
2013
|
+
let t = h.addEventListener("hardwareBackPress", () => (r?.(), !0));
|
|
2014
|
+
return () => t.remove();
|
|
2015
|
+
}, [e, r]);
|
|
2016
|
+
let E = u(() => S.create({
|
|
2017
|
+
onStartShouldSetPanResponder: () => !0,
|
|
2018
|
+
onPanResponderGrant: () => {
|
|
2019
|
+
T.current = !0;
|
|
2020
|
+
},
|
|
2021
|
+
onPanResponderMove: (e, t) => {
|
|
2022
|
+
b.setValue(Math.max(0, t.dy));
|
|
2023
|
+
},
|
|
2024
|
+
onPanResponderRelease: (e, t) => {
|
|
2025
|
+
T.current = !1, Math.max(0, t.dy) >= at ? r?.() : m.timing(b, {
|
|
2026
|
+
toValue: 0,
|
|
2027
|
+
duration: s.durationNormal,
|
|
2028
|
+
useNativeDriver: !0
|
|
2029
|
+
}).start();
|
|
2030
|
+
}
|
|
2031
|
+
}), [
|
|
2032
|
+
b,
|
|
2033
|
+
s.durationNormal,
|
|
2034
|
+
r
|
|
2035
|
+
]);
|
|
2036
|
+
return p ? /* @__PURE__ */ M(x, {
|
|
2037
|
+
visible: p,
|
|
2038
|
+
transparent: !0,
|
|
2039
|
+
animationType: "none",
|
|
2040
|
+
statusBarTranslucent: !0,
|
|
2041
|
+
onRequestClose: r,
|
|
2042
|
+
children: /* @__PURE__ */ M(it, {
|
|
2043
|
+
testID: o,
|
|
2044
|
+
onPress: i ? r : void 0,
|
|
2045
|
+
accessible: !1,
|
|
2046
|
+
style: {
|
|
2047
|
+
flex: 1,
|
|
2048
|
+
justifyContent: "flex-end",
|
|
2049
|
+
backgroundColor: s.dialogBackdropColor,
|
|
2050
|
+
opacity: C
|
|
2051
|
+
},
|
|
2052
|
+
children: /* @__PURE__ */ M(w, {
|
|
2053
|
+
onPress: () => {},
|
|
2054
|
+
accessible: !1,
|
|
2055
|
+
children: /* @__PURE__ */ N(m.View, {
|
|
2056
|
+
onLayout: (e) => {
|
|
2057
|
+
y(e.nativeEvent.layout.height);
|
|
2058
|
+
},
|
|
2059
|
+
accessible: !0,
|
|
2060
|
+
role: "dialog",
|
|
2061
|
+
accessibilityViewIsModal: !0,
|
|
2062
|
+
style: [{
|
|
2063
|
+
alignSelf: "center",
|
|
2064
|
+
width: "100%",
|
|
2065
|
+
maxWidth: 560,
|
|
2066
|
+
backgroundColor: s.dialogBgColor,
|
|
2067
|
+
borderTopLeftRadius: s.radiusXl,
|
|
2068
|
+
borderTopRightRadius: s.radiusXl,
|
|
2069
|
+
shadowColor: "#000",
|
|
2070
|
+
shadowOffset: {
|
|
2071
|
+
width: 0,
|
|
2072
|
+
height: -4
|
|
2073
|
+
},
|
|
2074
|
+
shadowOpacity: .18,
|
|
2075
|
+
shadowRadius: 24,
|
|
2076
|
+
elevation: 12,
|
|
2077
|
+
transform: [{ translateY: b }]
|
|
2078
|
+
}, a],
|
|
2079
|
+
children: [
|
|
2080
|
+
/* @__PURE__ */ M(k, {
|
|
2081
|
+
testID: "bottom-sheet-handle",
|
|
2082
|
+
accessibilityElementsHidden: !0,
|
|
2083
|
+
importantForAccessibility: "no",
|
|
2084
|
+
style: {
|
|
2085
|
+
alignItems: "center",
|
|
2086
|
+
paddingTop: s.space2,
|
|
2087
|
+
paddingBottom: s.space1
|
|
2088
|
+
},
|
|
2089
|
+
...E.panHandlers,
|
|
2090
|
+
children: /* @__PURE__ */ M(k, { style: {
|
|
2091
|
+
width: 36,
|
|
2092
|
+
height: 4,
|
|
2093
|
+
borderRadius: 2,
|
|
2094
|
+
backgroundColor: s.windowFgColor,
|
|
2095
|
+
opacity: .2
|
|
2096
|
+
} })
|
|
2097
|
+
}),
|
|
2098
|
+
t && /* @__PURE__ */ M(G, {
|
|
2099
|
+
variant: "title-4",
|
|
2100
|
+
style: {
|
|
2101
|
+
paddingHorizontal: s.space4,
|
|
2102
|
+
paddingBottom: s.space2,
|
|
2103
|
+
textAlign: "center",
|
|
2104
|
+
fontWeight: String(s.fontWeightBold)
|
|
2105
|
+
},
|
|
2106
|
+
children: t
|
|
2107
|
+
}),
|
|
2108
|
+
n && /* @__PURE__ */ M(k, {
|
|
2109
|
+
style: {
|
|
2110
|
+
paddingHorizontal: s.space4,
|
|
2111
|
+
paddingBottom: s.space4
|
|
2112
|
+
},
|
|
2113
|
+
children: typeof n == "string" ? /* @__PURE__ */ M(G, {
|
|
2114
|
+
variant: "body",
|
|
2115
|
+
children: n
|
|
2116
|
+
}) : n
|
|
2117
|
+
})
|
|
2118
|
+
]
|
|
2119
|
+
})
|
|
2120
|
+
})
|
|
2121
|
+
})
|
|
2122
|
+
}) : null;
|
|
2123
|
+
}, st = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
|
|
2124
|
+
return /* @__PURE__ */ M(k, {
|
|
1792
2125
|
ref: r,
|
|
1793
2126
|
accessible: !1,
|
|
1794
2127
|
style: [
|
|
1795
2128
|
{
|
|
1796
|
-
backgroundColor:
|
|
2129
|
+
backgroundColor: U().cardShadeColor,
|
|
1797
2130
|
flexShrink: 0
|
|
1798
2131
|
},
|
|
1799
2132
|
e === "vertical" ? {
|
|
@@ -1808,15 +2141,15 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1808
2141
|
],
|
|
1809
2142
|
...n
|
|
1810
2143
|
});
|
|
1811
|
-
}),
|
|
1812
|
-
let o =
|
|
1813
|
-
return n === "separate" ? /* @__PURE__ */
|
|
2144
|
+
}), ct = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
|
|
2145
|
+
let o = U(), s = e.toArray(t).filter(Boolean);
|
|
2146
|
+
return n === "separate" ? /* @__PURE__ */ M(k, {
|
|
1814
2147
|
ref: a,
|
|
1815
2148
|
accessible: !0,
|
|
1816
2149
|
accessibilityRole: "list",
|
|
1817
2150
|
style: [{ gap: o.space2 }, r],
|
|
1818
2151
|
...i,
|
|
1819
|
-
children: s.map((e, t) => /* @__PURE__ */
|
|
2152
|
+
children: s.map((e, t) => /* @__PURE__ */ M(k, {
|
|
1820
2153
|
style: {
|
|
1821
2154
|
backgroundColor: o.cardBgColor,
|
|
1822
2155
|
borderWidth: 1,
|
|
@@ -1826,7 +2159,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1826
2159
|
},
|
|
1827
2160
|
children: e
|
|
1828
2161
|
}, t))
|
|
1829
|
-
}) : /* @__PURE__ */
|
|
2162
|
+
}) : /* @__PURE__ */ M(k, {
|
|
1830
2163
|
ref: a,
|
|
1831
2164
|
accessible: !0,
|
|
1832
2165
|
accessibilityRole: "list",
|
|
@@ -1838,12 +2171,12 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1838
2171
|
overflow: "hidden"
|
|
1839
2172
|
}, r],
|
|
1840
2173
|
...i,
|
|
1841
|
-
children: s.map((e, t) => /* @__PURE__ */
|
|
2174
|
+
children: s.map((e, t) => /* @__PURE__ */ N(k, { children: [t > 0 && /* @__PURE__ */ M(st, { testID: "boxed-list-separator" }), e] }, t))
|
|
1842
2175
|
});
|
|
1843
2176
|
});
|
|
1844
2177
|
//#endregion
|
|
1845
2178
|
//#region src/components/Button/Button.tsx
|
|
1846
|
-
function
|
|
2179
|
+
function lt(e, t) {
|
|
1847
2180
|
switch (t) {
|
|
1848
2181
|
case "sm": return {
|
|
1849
2182
|
minHeight: 28,
|
|
@@ -1868,14 +2201,14 @@ function Ze(e, t) {
|
|
|
1868
2201
|
};
|
|
1869
2202
|
}
|
|
1870
2203
|
}
|
|
1871
|
-
function
|
|
2204
|
+
function ut(e) {
|
|
1872
2205
|
switch (e) {
|
|
1873
2206
|
case "sm": return 28;
|
|
1874
2207
|
case "lg": return 42;
|
|
1875
2208
|
default: return 34;
|
|
1876
2209
|
}
|
|
1877
2210
|
}
|
|
1878
|
-
function
|
|
2211
|
+
function dt(e, t, n, r) {
|
|
1879
2212
|
if (r) return {
|
|
1880
2213
|
backgroundColor: n ? "rgba(0, 0, 0, 0.85)" : "rgba(0, 0, 0, 0.65)",
|
|
1881
2214
|
borderColor: "rgba(255, 255, 255, 0.12)",
|
|
@@ -1904,15 +2237,15 @@ function $e(e, t, n, r) {
|
|
|
1904
2237
|
};
|
|
1905
2238
|
}
|
|
1906
2239
|
}
|
|
1907
|
-
var
|
|
1908
|
-
let f =
|
|
1909
|
-
return /* @__PURE__ */
|
|
2240
|
+
var ft = i(function({ variant: e = "default", size: t = "md", shape: n = "default", osd: r = !1, leadingIcon: i, trailingIcon: a, children: o, style: s, textStyle: c, disabled: l, ...u }, d) {
|
|
2241
|
+
let f = U(), p = H();
|
|
2242
|
+
return /* @__PURE__ */ M(w, {
|
|
1910
2243
|
ref: d,
|
|
1911
2244
|
disabled: l,
|
|
1912
2245
|
accessibilityRole: "button",
|
|
1913
2246
|
accessibilityState: { disabled: !!l },
|
|
1914
2247
|
style: ({ pressed: i }) => {
|
|
1915
|
-
let { backgroundColor: a, borderColor: o } =
|
|
2248
|
+
let { backgroundColor: a, borderColor: o } = dt(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? ut(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = lt(f, t);
|
|
1916
2249
|
return [{
|
|
1917
2250
|
flexDirection: "row",
|
|
1918
2251
|
alignItems: "center",
|
|
@@ -1933,10 +2266,10 @@ var et = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
1933
2266
|
},
|
|
1934
2267
|
...u,
|
|
1935
2268
|
children: ({ pressed: n }) => {
|
|
1936
|
-
let { fontSize: s } =
|
|
1937
|
-
return /* @__PURE__ */
|
|
2269
|
+
let { fontSize: s } = lt(f, t), { color: l } = dt(f, e, n, r);
|
|
2270
|
+
return /* @__PURE__ */ N(j, { children: [
|
|
1938
2271
|
i,
|
|
1939
|
-
typeof o == "string" ? /* @__PURE__ */
|
|
2272
|
+
typeof o == "string" ? /* @__PURE__ */ M(D, {
|
|
1940
2273
|
style: [{
|
|
1941
2274
|
fontFamily: f.fontFamily,
|
|
1942
2275
|
fontWeight: String(f.fontWeightSemibold),
|
|
@@ -1952,7 +2285,7 @@ var et = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
1952
2285
|
});
|
|
1953
2286
|
//#endregion
|
|
1954
2287
|
//#region src/components/Card/Card.tsx
|
|
1955
|
-
function
|
|
2288
|
+
function pt(e, t) {
|
|
1956
2289
|
switch (t) {
|
|
1957
2290
|
case "none": return 0;
|
|
1958
2291
|
case "sm": return e.space2;
|
|
@@ -1960,16 +2293,16 @@ function tt(e, t) {
|
|
|
1960
2293
|
default: return e.space4;
|
|
1961
2294
|
}
|
|
1962
2295
|
}
|
|
1963
|
-
var
|
|
1964
|
-
let s =
|
|
2296
|
+
var mt = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
|
|
2297
|
+
let s = U(), c = {
|
|
1965
2298
|
backgroundColor: s.cardBgColor,
|
|
1966
2299
|
borderWidth: 1,
|
|
1967
2300
|
borderColor: s.cardShadeColor,
|
|
1968
2301
|
borderRadius: s.radiusLg,
|
|
1969
2302
|
overflow: "hidden",
|
|
1970
|
-
padding:
|
|
2303
|
+
padding: pt(s, t)
|
|
1971
2304
|
};
|
|
1972
|
-
return e ? /* @__PURE__ */
|
|
2305
|
+
return e ? /* @__PURE__ */ M(w, {
|
|
1973
2306
|
ref: o,
|
|
1974
2307
|
disabled: i,
|
|
1975
2308
|
accessibilityRole: "button",
|
|
@@ -1983,21 +2316,21 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
1983
2316
|
n
|
|
1984
2317
|
],
|
|
1985
2318
|
...a,
|
|
1986
|
-
children: ({ pressed: e }) => /* @__PURE__ */
|
|
2319
|
+
children: ({ pressed: e }) => /* @__PURE__ */ N(j, { children: [r, e && !i ? /* @__PURE__ */ M(k, {
|
|
1987
2320
|
pointerEvents: "none",
|
|
1988
|
-
style: [
|
|
2321
|
+
style: [E.absoluteFill, {
|
|
1989
2322
|
backgroundColor: s.activeOverlay,
|
|
1990
2323
|
borderRadius: s.radiusLg
|
|
1991
2324
|
}]
|
|
1992
2325
|
}) : null] })
|
|
1993
|
-
}) : /* @__PURE__ */
|
|
2326
|
+
}) : /* @__PURE__ */ M(k, {
|
|
1994
2327
|
ref: o,
|
|
1995
2328
|
style: [c, n],
|
|
1996
2329
|
...a,
|
|
1997
2330
|
children: r
|
|
1998
2331
|
});
|
|
1999
|
-
}),
|
|
2000
|
-
let s =
|
|
2332
|
+
}), ht = 18, gt = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
|
|
2333
|
+
let s = U(), l = V(), u = H(), f = e || t, p = d(new m.Value(+!!f)).current, h = d(!0);
|
|
2001
2334
|
c(() => {
|
|
2002
2335
|
if (h.current) {
|
|
2003
2336
|
h.current = !1;
|
|
@@ -2023,7 +2356,7 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2023
2356
|
inputRange: [0, 1],
|
|
2024
2357
|
outputRange: [s.cardBgColor, s.accentBgColor]
|
|
2025
2358
|
});
|
|
2026
|
-
return /* @__PURE__ */
|
|
2359
|
+
return /* @__PURE__ */ M(w, {
|
|
2027
2360
|
ref: o,
|
|
2028
2361
|
disabled: r,
|
|
2029
2362
|
accessibilityRole: "checkbox",
|
|
@@ -2034,10 +2367,10 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2034
2367
|
onPress: () => n?.(!e),
|
|
2035
2368
|
style: [{ opacity: r ? s.opacityDisabled : 1 }, i],
|
|
2036
2369
|
...a,
|
|
2037
|
-
children: /* @__PURE__ */
|
|
2370
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
2038
2371
|
style: {
|
|
2039
|
-
width:
|
|
2040
|
-
height:
|
|
2372
|
+
width: ht,
|
|
2373
|
+
height: ht,
|
|
2041
2374
|
alignItems: "center",
|
|
2042
2375
|
justifyContent: "center",
|
|
2043
2376
|
borderRadius: s.radiusSm,
|
|
@@ -2045,13 +2378,13 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2045
2378
|
borderColor: v,
|
|
2046
2379
|
backgroundColor: y
|
|
2047
2380
|
},
|
|
2048
|
-
children: t ? /* @__PURE__ */
|
|
2381
|
+
children: t ? /* @__PURE__ */ M(m.View, { style: {
|
|
2049
2382
|
width: 10,
|
|
2050
2383
|
height: 2,
|
|
2051
2384
|
borderRadius: 1,
|
|
2052
2385
|
backgroundColor: "#fff",
|
|
2053
2386
|
opacity: p
|
|
2054
|
-
} }) : /* @__PURE__ */
|
|
2387
|
+
} }) : /* @__PURE__ */ M(m.Text, {
|
|
2055
2388
|
style: {
|
|
2056
2389
|
opacity: p,
|
|
2057
2390
|
color: "#fff",
|
|
@@ -2063,13 +2396,13 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2063
2396
|
})
|
|
2064
2397
|
})
|
|
2065
2398
|
});
|
|
2066
|
-
}),
|
|
2067
|
-
let p =
|
|
2399
|
+
}), _t = m.createAnimatedComponent(w), vt = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
|
|
2400
|
+
let p = U(), g = V(), v = W(), y = d(new m.Value(+!!v)).current, b = !!s, S = () => {
|
|
2068
2401
|
let e = s?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
2069
2402
|
e && l?.(e.id);
|
|
2070
|
-
},
|
|
2071
|
-
|
|
2072
|
-
}, T =
|
|
2403
|
+
}, C = () => {
|
|
2404
|
+
b ? S() : i?.();
|
|
2405
|
+
}, T = b ? S : a ? i : void 0;
|
|
2073
2406
|
c(() => {
|
|
2074
2407
|
if (!e) return;
|
|
2075
2408
|
if (v) {
|
|
@@ -2092,25 +2425,25 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2092
2425
|
p.easingDefault
|
|
2093
2426
|
]), c(() => {
|
|
2094
2427
|
if (!e) return;
|
|
2095
|
-
let t = h.addEventListener("hardwareBackPress", () => (
|
|
2428
|
+
let t = h.addEventListener("hardwareBackPress", () => (C(), !0));
|
|
2096
2429
|
return () => t.remove();
|
|
2097
2430
|
}, [
|
|
2098
2431
|
e,
|
|
2099
|
-
|
|
2432
|
+
b,
|
|
2100
2433
|
s,
|
|
2101
2434
|
l,
|
|
2102
2435
|
i
|
|
2103
2436
|
]);
|
|
2104
2437
|
let E = () => {
|
|
2105
|
-
let e =
|
|
2106
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
2438
|
+
let e = b && s ? s : r;
|
|
2439
|
+
return e.length === 0 ? null : /* @__PURE__ */ M(k, {
|
|
2107
2440
|
style: {
|
|
2108
2441
|
borderTopWidth: 1,
|
|
2109
2442
|
borderTopColor: p.cardShadeColor
|
|
2110
2443
|
},
|
|
2111
2444
|
children: e.map((t, n) => {
|
|
2112
|
-
let r = t.variant ?? "default", i = r === "destructive" ? p.destructiveColor : p.accentColor, a =
|
|
2113
|
-
return /* @__PURE__ */
|
|
2445
|
+
let r = t.variant ?? "default", i = r === "destructive" ? p.destructiveColor : p.accentColor, a = b ? () => l?.(t.id) : t.onPress;
|
|
2446
|
+
return /* @__PURE__ */ M(w, {
|
|
2114
2447
|
accessibilityRole: "button",
|
|
2115
2448
|
accessibilityState: { disabled: t.disabled },
|
|
2116
2449
|
disabled: t.disabled,
|
|
@@ -2123,7 +2456,7 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2123
2456
|
backgroundColor: r ? p.activeOverlay : "transparent",
|
|
2124
2457
|
opacity: t.disabled ? p.opacityDisabled : 1
|
|
2125
2458
|
}),
|
|
2126
|
-
children: /* @__PURE__ */
|
|
2459
|
+
children: /* @__PURE__ */ M(G, {
|
|
2127
2460
|
variant: "body",
|
|
2128
2461
|
style: {
|
|
2129
2462
|
textAlign: "center",
|
|
@@ -2132,7 +2465,7 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2132
2465
|
},
|
|
2133
2466
|
children: t.label
|
|
2134
2467
|
})
|
|
2135
|
-
},
|
|
2468
|
+
}, b ? t.id : t.label);
|
|
2136
2469
|
})
|
|
2137
2470
|
});
|
|
2138
2471
|
}, D = g === "dark" ? {
|
|
@@ -2144,13 +2477,13 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2144
2477
|
shadowRadius: 32,
|
|
2145
2478
|
elevation: 8
|
|
2146
2479
|
};
|
|
2147
|
-
return /* @__PURE__ */
|
|
2480
|
+
return /* @__PURE__ */ M(x, {
|
|
2148
2481
|
visible: e,
|
|
2149
2482
|
transparent: !0,
|
|
2150
2483
|
animationType: "none",
|
|
2151
2484
|
statusBarTranslucent: !0,
|
|
2152
|
-
onRequestClose:
|
|
2153
|
-
children: /* @__PURE__ */
|
|
2485
|
+
onRequestClose: C,
|
|
2486
|
+
children: /* @__PURE__ */ M(_t, {
|
|
2154
2487
|
testID: f,
|
|
2155
2488
|
onPress: T,
|
|
2156
2489
|
style: {
|
|
@@ -2161,14 +2494,14 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2161
2494
|
backgroundColor: p.dialogBackdropColor,
|
|
2162
2495
|
opacity: y
|
|
2163
2496
|
},
|
|
2164
|
-
children: /* @__PURE__ */
|
|
2497
|
+
children: /* @__PURE__ */ M(w, {
|
|
2165
2498
|
onPress: () => {},
|
|
2166
2499
|
accessible: !1,
|
|
2167
2500
|
style: {
|
|
2168
2501
|
width: "100%",
|
|
2169
2502
|
maxWidth: 480
|
|
2170
2503
|
},
|
|
2171
|
-
children: /* @__PURE__ */
|
|
2504
|
+
children: /* @__PURE__ */ N(m.View, {
|
|
2172
2505
|
accessible: !0,
|
|
2173
2506
|
role: o,
|
|
2174
2507
|
accessibilityViewIsModal: !0,
|
|
@@ -2192,7 +2525,7 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2192
2525
|
}) }]
|
|
2193
2526
|
}, u],
|
|
2194
2527
|
children: [
|
|
2195
|
-
t && /* @__PURE__ */
|
|
2528
|
+
t && /* @__PURE__ */ M(G, {
|
|
2196
2529
|
variant: "title-4",
|
|
2197
2530
|
style: {
|
|
2198
2531
|
padding: p.space4,
|
|
@@ -2202,12 +2535,12 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2202
2535
|
},
|
|
2203
2536
|
children: t
|
|
2204
2537
|
}),
|
|
2205
|
-
n && /* @__PURE__ */
|
|
2538
|
+
n && /* @__PURE__ */ M(k, {
|
|
2206
2539
|
style: {
|
|
2207
2540
|
paddingVertical: p.space2,
|
|
2208
2541
|
paddingHorizontal: p.space4
|
|
2209
2542
|
},
|
|
2210
|
-
children: typeof n == "string" ? /* @__PURE__ */
|
|
2543
|
+
children: typeof n == "string" ? /* @__PURE__ */ M(G, {
|
|
2211
2544
|
variant: "body",
|
|
2212
2545
|
style: {
|
|
2213
2546
|
textAlign: "center",
|
|
@@ -2222,20 +2555,47 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2222
2555
|
})
|
|
2223
2556
|
})
|
|
2224
2557
|
});
|
|
2225
|
-
},
|
|
2226
|
-
|
|
2227
|
-
|
|
2558
|
+
}, yt = ({ children: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
2559
|
+
let i = U(), a = !!e;
|
|
2560
|
+
return /* @__PURE__ */ N(k, {
|
|
2561
|
+
testID: r,
|
|
2562
|
+
accessible: !0,
|
|
2563
|
+
role: "separator",
|
|
2564
|
+
accessibilityLabel: t ?? (typeof e == "string" ? e : void 0),
|
|
2565
|
+
style: [{
|
|
2566
|
+
flexDirection: "row",
|
|
2567
|
+
alignItems: "center",
|
|
2568
|
+
width: "100%",
|
|
2569
|
+
gap: i.space2
|
|
2570
|
+
}, n],
|
|
2571
|
+
children: [/* @__PURE__ */ M(k, { style: {
|
|
2572
|
+
flex: 1,
|
|
2573
|
+
height: 1,
|
|
2574
|
+
backgroundColor: i.cardShadeColor
|
|
2575
|
+
} }), a && /* @__PURE__ */ N(j, { children: [typeof e == "string" ? /* @__PURE__ */ M(G, {
|
|
2576
|
+
variant: "caption",
|
|
2577
|
+
color: "dim",
|
|
2578
|
+
children: e
|
|
2579
|
+
}) : e, /* @__PURE__ */ M(k, { style: {
|
|
2580
|
+
flex: 1,
|
|
2581
|
+
height: 1,
|
|
2582
|
+
backgroundColor: i.cardShadeColor
|
|
2583
|
+
} })] })]
|
|
2584
|
+
});
|
|
2585
|
+
}, bt = 4, xt = 8, St = 280;
|
|
2586
|
+
function Ct(e, t) {
|
|
2587
|
+
let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - bt : e.y + e.height + bt;
|
|
2228
2588
|
return {
|
|
2229
|
-
top: Math.max(
|
|
2589
|
+
top: Math.max(xt, Math.min(i, n - t - xt)),
|
|
2230
2590
|
left: e.x,
|
|
2231
2591
|
width: e.width,
|
|
2232
2592
|
flipUp: r
|
|
2233
2593
|
};
|
|
2234
2594
|
}
|
|
2235
|
-
var
|
|
2236
|
-
let l =
|
|
2595
|
+
var wt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
|
|
2596
|
+
let l = U(), u = W(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [b, S] = f(null), C = d(null), E = d(new m.Value(0)).current, D = e.find((e) => e.value === t), O = () => {
|
|
2237
2597
|
a || h(!0);
|
|
2238
|
-
}, A = () => h(!1),
|
|
2598
|
+
}, A = () => h(!1), j = (e) => {
|
|
2239
2599
|
e.disabled || (n?.(e.value), A());
|
|
2240
2600
|
};
|
|
2241
2601
|
return c(() => {
|
|
@@ -2243,7 +2603,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2243
2603
|
_(null), y(null), S(null);
|
|
2244
2604
|
return;
|
|
2245
2605
|
}
|
|
2246
|
-
|
|
2606
|
+
C.current?.measureInWindow((e, t, n, r) => {
|
|
2247
2607
|
_({
|
|
2248
2608
|
x: e,
|
|
2249
2609
|
y: t,
|
|
@@ -2252,9 +2612,9 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2252
2612
|
});
|
|
2253
2613
|
});
|
|
2254
2614
|
}, [p]), c(() => {
|
|
2255
|
-
g === null || v === null || S(
|
|
2615
|
+
g === null || v === null || S(Ct(g, v));
|
|
2256
2616
|
}, [g, v]), c(() => {
|
|
2257
|
-
if (
|
|
2617
|
+
if (b) {
|
|
2258
2618
|
if (u) {
|
|
2259
2619
|
E.setValue(1);
|
|
2260
2620
|
return;
|
|
@@ -2266,14 +2626,14 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2266
2626
|
}).start();
|
|
2267
2627
|
}
|
|
2268
2628
|
}, [
|
|
2269
|
-
|
|
2629
|
+
b,
|
|
2270
2630
|
u,
|
|
2271
2631
|
E,
|
|
2272
2632
|
l.durationFast
|
|
2273
|
-
]), /* @__PURE__ */
|
|
2633
|
+
]), /* @__PURE__ */ N(k, {
|
|
2274
2634
|
style: o,
|
|
2275
|
-
children: [/* @__PURE__ */
|
|
2276
|
-
ref:
|
|
2635
|
+
children: [/* @__PURE__ */ N(w, {
|
|
2636
|
+
ref: C,
|
|
2277
2637
|
testID: s,
|
|
2278
2638
|
role: "combobox",
|
|
2279
2639
|
accessibilityLabel: i,
|
|
@@ -2282,7 +2642,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2282
2642
|
disabled: !!a
|
|
2283
2643
|
},
|
|
2284
2644
|
disabled: a,
|
|
2285
|
-
onPress: () => p ? A() :
|
|
2645
|
+
onPress: () => p ? A() : O(),
|
|
2286
2646
|
style: ({ pressed: e }) => ({
|
|
2287
2647
|
flexDirection: "row",
|
|
2288
2648
|
alignItems: "center",
|
|
@@ -2298,7 +2658,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2298
2658
|
borderRadius: l.radiusMd,
|
|
2299
2659
|
opacity: a ? l.opacityDisabled : 1
|
|
2300
2660
|
}),
|
|
2301
|
-
children: [/* @__PURE__ */
|
|
2661
|
+
children: [/* @__PURE__ */ M(G, {
|
|
2302
2662
|
numberOfLines: 1,
|
|
2303
2663
|
style: {
|
|
2304
2664
|
flex: 1,
|
|
@@ -2307,31 +2667,31 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2307
2667
|
opacity: D ? 1 : l.opacityDim
|
|
2308
2668
|
},
|
|
2309
2669
|
children: D?.label ?? r
|
|
2310
|
-
}), /* @__PURE__ */
|
|
2311
|
-
icon:
|
|
2670
|
+
}), /* @__PURE__ */ M(K, {
|
|
2671
|
+
icon: I,
|
|
2312
2672
|
size: "md",
|
|
2313
2673
|
color: "default",
|
|
2314
2674
|
style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
|
|
2315
2675
|
})]
|
|
2316
|
-
}), /* @__PURE__ */
|
|
2676
|
+
}), /* @__PURE__ */ M(x, {
|
|
2317
2677
|
visible: p,
|
|
2318
2678
|
transparent: !0,
|
|
2319
2679
|
animationType: "none",
|
|
2320
2680
|
statusBarTranslucent: !0,
|
|
2321
|
-
children: /* @__PURE__ */
|
|
2681
|
+
children: /* @__PURE__ */ M(w, {
|
|
2322
2682
|
onPress: A,
|
|
2323
2683
|
accessible: !1,
|
|
2324
2684
|
style: { flex: 1 },
|
|
2325
2685
|
testID: s ? `${s}-backdrop` : void 0,
|
|
2326
|
-
children: /* @__PURE__ */
|
|
2686
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
2327
2687
|
onLayout: (e) => {
|
|
2328
|
-
y(Math.min(e.nativeEvent.layout.height,
|
|
2688
|
+
y(Math.min(e.nativeEvent.layout.height, St));
|
|
2329
2689
|
},
|
|
2330
2690
|
role: "list",
|
|
2331
2691
|
accessible: !0,
|
|
2332
2692
|
style: [{
|
|
2333
2693
|
position: "absolute",
|
|
2334
|
-
maxHeight:
|
|
2694
|
+
maxHeight: St,
|
|
2335
2695
|
backgroundColor: l.popoverBgColor,
|
|
2336
2696
|
borderWidth: 1,
|
|
2337
2697
|
borderColor: l.cardShadeColor,
|
|
@@ -2345,10 +2705,10 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2345
2705
|
shadowOpacity: .15,
|
|
2346
2706
|
shadowRadius: 12,
|
|
2347
2707
|
elevation: 6
|
|
2348
|
-
},
|
|
2349
|
-
top:
|
|
2350
|
-
left:
|
|
2351
|
-
width:
|
|
2708
|
+
}, b ? {
|
|
2709
|
+
top: b.top,
|
|
2710
|
+
left: b.left,
|
|
2711
|
+
width: b.width,
|
|
2352
2712
|
opacity: E
|
|
2353
2713
|
} : {
|
|
2354
2714
|
top: -9999,
|
|
@@ -2356,18 +2716,18 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2356
2716
|
width: 200,
|
|
2357
2717
|
opacity: 0
|
|
2358
2718
|
}],
|
|
2359
|
-
children: /* @__PURE__ */
|
|
2719
|
+
children: /* @__PURE__ */ M(T, {
|
|
2360
2720
|
bounces: !1,
|
|
2361
2721
|
children: e.map((e) => {
|
|
2362
2722
|
let n = e.value === t;
|
|
2363
|
-
return /* @__PURE__ */
|
|
2723
|
+
return /* @__PURE__ */ N(w, {
|
|
2364
2724
|
role: "option",
|
|
2365
2725
|
accessibilityState: {
|
|
2366
2726
|
selected: n,
|
|
2367
2727
|
disabled: !!e.disabled
|
|
2368
2728
|
},
|
|
2369
2729
|
disabled: e.disabled,
|
|
2370
|
-
onPress: () =>
|
|
2730
|
+
onPress: () => j(e),
|
|
2371
2731
|
style: ({ pressed: t }) => ({
|
|
2372
2732
|
flexDirection: "row",
|
|
2373
2733
|
alignItems: "center",
|
|
@@ -2378,12 +2738,12 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2378
2738
|
backgroundColor: t ? l.activeOverlay : "transparent",
|
|
2379
2739
|
opacity: e.disabled ? l.opacityDisabled : 1
|
|
2380
2740
|
}),
|
|
2381
|
-
children: [/* @__PURE__ */
|
|
2741
|
+
children: [/* @__PURE__ */ N(k, {
|
|
2382
2742
|
style: {
|
|
2383
2743
|
flex: 1,
|
|
2384
2744
|
gap: 1
|
|
2385
2745
|
},
|
|
2386
|
-
children: [/* @__PURE__ */
|
|
2746
|
+
children: [/* @__PURE__ */ M(G, {
|
|
2387
2747
|
numberOfLines: 1,
|
|
2388
2748
|
style: {
|
|
2389
2749
|
fontSize: l.fontSizeBody,
|
|
@@ -2391,7 +2751,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2391
2751
|
fontWeight: n ? String(l.fontWeightSemibold) : void 0
|
|
2392
2752
|
},
|
|
2393
2753
|
children: e.label
|
|
2394
|
-
}), e.description && /* @__PURE__ */
|
|
2754
|
+
}), e.description && /* @__PURE__ */ M(G, {
|
|
2395
2755
|
numberOfLines: 1,
|
|
2396
2756
|
style: {
|
|
2397
2757
|
fontSize: l.fontSizeCaption,
|
|
@@ -2400,8 +2760,8 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2400
2760
|
},
|
|
2401
2761
|
children: e.description
|
|
2402
2762
|
})]
|
|
2403
|
-
}), n && /* @__PURE__ */
|
|
2404
|
-
icon:
|
|
2763
|
+
}), n && /* @__PURE__ */ M(K, {
|
|
2764
|
+
icon: P,
|
|
2405
2765
|
size: "md",
|
|
2406
2766
|
color: "blue"
|
|
2407
2767
|
})]
|
|
@@ -2412,9 +2772,104 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2412
2772
|
})
|
|
2413
2773
|
})]
|
|
2414
2774
|
});
|
|
2415
|
-
},
|
|
2416
|
-
let
|
|
2417
|
-
|
|
2775
|
+
}, Tt = ({ label: e, children: t, expanded: n, defaultExpanded: r = !1, onExpandedChange: i, disabled: a = !1, style: o, testID: s }) => {
|
|
2776
|
+
let l = U(), u = W(), p = n !== void 0, [h, g] = f(r), v = p ? n : h, [y, b] = f(0), x = d(!1), S = d(new m.Value(0)).current, C = d(new m.Value(+!!r)).current, T = () => {
|
|
2777
|
+
if (a) return;
|
|
2778
|
+
let e = !v;
|
|
2779
|
+
p || g(e), i?.(e);
|
|
2780
|
+
}, E = (e) => {
|
|
2781
|
+
let t = e.nativeEvent.layout.height;
|
|
2782
|
+
if (t === y) {
|
|
2783
|
+
x.current = !0;
|
|
2784
|
+
return;
|
|
2785
|
+
}
|
|
2786
|
+
v && !x.current && S.setValue(t), x.current = !0, b(t);
|
|
2787
|
+
};
|
|
2788
|
+
c(() => {
|
|
2789
|
+
let [e, t, n, r] = l.easingDefault, i = _.bezier(e, t, n, r), a = v ? y : 0;
|
|
2790
|
+
if (u) {
|
|
2791
|
+
S.setValue(a), C.setValue(+!!v);
|
|
2792
|
+
return;
|
|
2793
|
+
}
|
|
2794
|
+
m.parallel([m.timing(S, {
|
|
2795
|
+
toValue: a,
|
|
2796
|
+
duration: l.durationNormal,
|
|
2797
|
+
easing: i,
|
|
2798
|
+
useNativeDriver: !1
|
|
2799
|
+
}), m.timing(C, {
|
|
2800
|
+
toValue: +!!v,
|
|
2801
|
+
duration: l.durationFast,
|
|
2802
|
+
easing: i,
|
|
2803
|
+
useNativeDriver: !0
|
|
2804
|
+
})]).start();
|
|
2805
|
+
}, [
|
|
2806
|
+
v,
|
|
2807
|
+
y,
|
|
2808
|
+
u,
|
|
2809
|
+
S,
|
|
2810
|
+
C,
|
|
2811
|
+
l.durationNormal,
|
|
2812
|
+
l.durationFast,
|
|
2813
|
+
l.easingDefault
|
|
2814
|
+
]);
|
|
2815
|
+
let D = v && !x.current, O = C.interpolate({
|
|
2816
|
+
inputRange: [0, 1],
|
|
2817
|
+
outputRange: ["0deg", "90deg"]
|
|
2818
|
+
});
|
|
2819
|
+
return /* @__PURE__ */ N(k, {
|
|
2820
|
+
testID: s,
|
|
2821
|
+
style: [{ width: "100%" }, o],
|
|
2822
|
+
children: [/* @__PURE__ */ N(w, {
|
|
2823
|
+
role: "button",
|
|
2824
|
+
disabled: a,
|
|
2825
|
+
accessibilityState: {
|
|
2826
|
+
expanded: v,
|
|
2827
|
+
disabled: a
|
|
2828
|
+
},
|
|
2829
|
+
onPress: T,
|
|
2830
|
+
style: ({ pressed: e }) => ({
|
|
2831
|
+
flexDirection: "row",
|
|
2832
|
+
alignItems: "center",
|
|
2833
|
+
alignSelf: "flex-start",
|
|
2834
|
+
gap: l.space2,
|
|
2835
|
+
padding: l.space1,
|
|
2836
|
+
margin: -l.space1,
|
|
2837
|
+
borderRadius: l.radiusSm,
|
|
2838
|
+
backgroundColor: e ? l.activeOverlay : "transparent",
|
|
2839
|
+
opacity: a ? l.opacityDisabled : 1
|
|
2840
|
+
}),
|
|
2841
|
+
children: [/* @__PURE__ */ M(m.View, {
|
|
2842
|
+
style: {
|
|
2843
|
+
opacity: .55,
|
|
2844
|
+
transform: [{ rotate: O }]
|
|
2845
|
+
},
|
|
2846
|
+
children: /* @__PURE__ */ M(K, {
|
|
2847
|
+
icon: L,
|
|
2848
|
+
size: "md"
|
|
2849
|
+
})
|
|
2850
|
+
}), typeof e == "string" ? /* @__PURE__ */ M(G, {
|
|
2851
|
+
style: { color: l.windowFgColor },
|
|
2852
|
+
children: e
|
|
2853
|
+
}) : e]
|
|
2854
|
+
}), /* @__PURE__ */ M(m.View, {
|
|
2855
|
+
style: {
|
|
2856
|
+
height: D ? void 0 : S,
|
|
2857
|
+
overflow: "hidden"
|
|
2858
|
+
},
|
|
2859
|
+
accessibilityElementsHidden: !v,
|
|
2860
|
+
importantForAccessibility: v ? "yes" : "no",
|
|
2861
|
+
children: /* @__PURE__ */ M(k, {
|
|
2862
|
+
accessible: !0,
|
|
2863
|
+
role: "region",
|
|
2864
|
+
onLayout: E,
|
|
2865
|
+
style: { paddingTop: l.space2 },
|
|
2866
|
+
children: t
|
|
2867
|
+
})
|
|
2868
|
+
})]
|
|
2869
|
+
});
|
|
2870
|
+
}, Et = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
|
|
2871
|
+
let s = U();
|
|
2872
|
+
return /* @__PURE__ */ N(k, {
|
|
2418
2873
|
ref: o,
|
|
2419
2874
|
style: [{
|
|
2420
2875
|
flexDirection: "row",
|
|
@@ -2428,7 +2883,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2428
2883
|
}, i],
|
|
2429
2884
|
...a,
|
|
2430
2885
|
children: [
|
|
2431
|
-
/* @__PURE__ */
|
|
2886
|
+
/* @__PURE__ */ M(k, {
|
|
2432
2887
|
style: {
|
|
2433
2888
|
flex: 1,
|
|
2434
2889
|
flexDirection: "row",
|
|
@@ -2437,14 +2892,14 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2437
2892
|
},
|
|
2438
2893
|
children: t
|
|
2439
2894
|
}),
|
|
2440
|
-
/* @__PURE__ */
|
|
2895
|
+
/* @__PURE__ */ M(k, {
|
|
2441
2896
|
accessibilityLiveRegion: "polite",
|
|
2442
2897
|
style: {
|
|
2443
2898
|
alignItems: "center",
|
|
2444
2899
|
justifyContent: "center",
|
|
2445
2900
|
paddingHorizontal: s.space1
|
|
2446
2901
|
},
|
|
2447
|
-
children: typeof e == "string" ? /* @__PURE__ */
|
|
2902
|
+
children: typeof e == "string" ? /* @__PURE__ */ M(D, {
|
|
2448
2903
|
numberOfLines: 1,
|
|
2449
2904
|
ellipsizeMode: "tail",
|
|
2450
2905
|
style: {
|
|
@@ -2457,7 +2912,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2457
2912
|
children: e
|
|
2458
2913
|
}) : e
|
|
2459
2914
|
}),
|
|
2460
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ M(k, {
|
|
2461
2916
|
style: {
|
|
2462
2917
|
flex: 1,
|
|
2463
2918
|
flexDirection: "row",
|
|
@@ -2469,22 +2924,124 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2469
2924
|
})
|
|
2470
2925
|
]
|
|
2471
2926
|
});
|
|
2472
|
-
})
|
|
2473
|
-
|
|
2474
|
-
|
|
2927
|
+
});
|
|
2928
|
+
//#endregion
|
|
2929
|
+
//#region src/components/Highlight/Highlight.tsx
|
|
2930
|
+
function Dt(e) {
|
|
2931
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2932
|
+
}
|
|
2933
|
+
var Ot = ({ text: e, query: t, caseSensitive: n = !1, ...r }) => {
|
|
2934
|
+
let i = U(), a = H(), o = (Array.isArray(t) ? t : [t]).map((e) => e.trim()).filter(Boolean);
|
|
2935
|
+
if (o.length === 0) return /* @__PURE__ */ M(G, {
|
|
2936
|
+
...r,
|
|
2937
|
+
children: e
|
|
2938
|
+
});
|
|
2939
|
+
let s = RegExp(`(${o.map(Dt).join("|")})`, n ? "g" : "gi"), c = e.split(s), l = {
|
|
2940
|
+
fontWeight: String(i.fontWeightSemibold),
|
|
2941
|
+
...a === "more" ? {
|
|
2942
|
+
backgroundColor: i.accentBgColor,
|
|
2943
|
+
color: "#fff"
|
|
2944
|
+
} : { backgroundColor: `${i.accentBgColor}4D` }
|
|
2945
|
+
};
|
|
2946
|
+
return /* @__PURE__ */ M(G, {
|
|
2947
|
+
...r,
|
|
2948
|
+
children: c.map((e, t) => t % 2 == 1 ? /* @__PURE__ */ M(D, {
|
|
2949
|
+
style: l,
|
|
2950
|
+
children: e
|
|
2951
|
+
}, t) : e)
|
|
2952
|
+
});
|
|
2953
|
+
};
|
|
2954
|
+
//#endregion
|
|
2955
|
+
//#region src/components/LevelBar/LevelBar.tsx
|
|
2956
|
+
function kt(e, t, n, r, i, a) {
|
|
2957
|
+
return t !== void 0 && e <= t ? n : r !== void 0 && e >= r ? i : a;
|
|
2958
|
+
}
|
|
2959
|
+
function At(e, t) {
|
|
2960
|
+
switch (t) {
|
|
2961
|
+
case "accent": return e.accentBgColor;
|
|
2962
|
+
case "success": return e.successBgColor;
|
|
2963
|
+
case "warning": return e.warningBgColor;
|
|
2964
|
+
case "error": return e.errorBgColor;
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
var jt = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning", high: a, highVariant: o = "error", variant: s = "accent", discrete: l = !1, numBlocks: u = 10, accessibilityLabel: f, style: p, testID: h }) => {
|
|
2968
|
+
let g = U(), v = V(), y = W(), b = n - t, x = Math.min(n, Math.max(t, e)), S = b > 0 ? (x - t) / b : 0, C = kt(x, r, i, a, o, s), w = d(new m.Value(S)).current;
|
|
2969
|
+
c(() => {
|
|
2970
|
+
if (l) return;
|
|
2971
|
+
let [e, t, n, r] = g.easingDefault;
|
|
2972
|
+
m.timing(w, {
|
|
2973
|
+
toValue: S,
|
|
2974
|
+
duration: y ? 0 : g.durationNormal,
|
|
2975
|
+
easing: _.bezier(e, t, n, r),
|
|
2976
|
+
useNativeDriver: !0
|
|
2977
|
+
}).start();
|
|
2978
|
+
}, [
|
|
2979
|
+
S,
|
|
2980
|
+
l,
|
|
2981
|
+
y,
|
|
2982
|
+
w,
|
|
2983
|
+
g.durationNormal,
|
|
2984
|
+
g.easingDefault
|
|
2985
|
+
]);
|
|
2986
|
+
let T = v === "dark" ? g.dark2 : g.light3;
|
|
2987
|
+
return /* @__PURE__ */ M(k, {
|
|
2988
|
+
testID: h,
|
|
2989
|
+
accessible: !0,
|
|
2990
|
+
role: "meter",
|
|
2991
|
+
accessibilityLabel: f,
|
|
2992
|
+
accessibilityValue: {
|
|
2993
|
+
min: t,
|
|
2994
|
+
max: n,
|
|
2995
|
+
now: x
|
|
2996
|
+
},
|
|
2997
|
+
style: [{
|
|
2998
|
+
flexDirection: "row",
|
|
2999
|
+
width: "100%",
|
|
3000
|
+
height: 6,
|
|
3001
|
+
borderRadius: l ? 0 : g.radiusPill,
|
|
3002
|
+
backgroundColor: l ? "transparent" : T,
|
|
3003
|
+
overflow: l ? "visible" : "hidden",
|
|
3004
|
+
gap: l ? 2 : 0
|
|
3005
|
+
}, p],
|
|
3006
|
+
children: l ? Array.from({ length: u }, (e, t) => /* @__PURE__ */ M(k, {
|
|
3007
|
+
testID: "level-bar-block",
|
|
3008
|
+
accessibilityElementsHidden: !0,
|
|
3009
|
+
importantForAccessibility: "no",
|
|
3010
|
+
style: {
|
|
3011
|
+
flex: 1,
|
|
3012
|
+
height: "100%",
|
|
3013
|
+
minWidth: 2,
|
|
3014
|
+
borderRadius: 1,
|
|
3015
|
+
backgroundColor: (t + 1) / u <= S ? At(g, C) : T
|
|
3016
|
+
}
|
|
3017
|
+
}, t)) : /* @__PURE__ */ M(m.View, {
|
|
3018
|
+
testID: h ? `${h}-fill` : void 0,
|
|
3019
|
+
style: {
|
|
3020
|
+
width: "100%",
|
|
3021
|
+
height: "100%",
|
|
3022
|
+
borderRadius: g.radiusPill,
|
|
3023
|
+
backgroundColor: At(g, C),
|
|
3024
|
+
transformOrigin: "left",
|
|
3025
|
+
transform: [{ scaleX: w }]
|
|
3026
|
+
}
|
|
3027
|
+
})
|
|
3028
|
+
});
|
|
3029
|
+
}, Mt = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
|
|
3030
|
+
let c = U();
|
|
3031
|
+
return /* @__PURE__ */ M(w, {
|
|
2475
3032
|
ref: s,
|
|
2476
3033
|
accessibilityRole: "link",
|
|
2477
3034
|
accessibilityHint: t ? "Opens in browser" : void 0,
|
|
2478
|
-
onPress: a ?? (() =>
|
|
3035
|
+
onPress: a ?? (() => b.openURL(e)),
|
|
2479
3036
|
style: r,
|
|
2480
3037
|
...o,
|
|
2481
|
-
children: ({ pressed: e }) => /* @__PURE__ */
|
|
3038
|
+
children: ({ pressed: e }) => /* @__PURE__ */ N(G, {
|
|
2482
3039
|
style: [{
|
|
2483
3040
|
color: c.accentColor,
|
|
2484
3041
|
textDecorationLine: e ? "underline" : "none",
|
|
2485
3042
|
opacity: e ? .7 : 1
|
|
2486
3043
|
}, i],
|
|
2487
|
-
children: [n, t && /* @__PURE__ */
|
|
3044
|
+
children: [n, t && /* @__PURE__ */ M(D, {
|
|
2488
3045
|
accessibilityElementsHidden: !0,
|
|
2489
3046
|
importantForAccessibility: "no",
|
|
2490
3047
|
style: { fontSize: 12 },
|
|
@@ -2492,9 +3049,66 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2492
3049
|
})]
|
|
2493
3050
|
})
|
|
2494
3051
|
});
|
|
2495
|
-
}),
|
|
2496
|
-
let a =
|
|
2497
|
-
return
|
|
3052
|
+
}), Nt = m.createAnimatedComponent(w), Pt = ({ open: e, onDismiss: t, children: n, style: r, testID: i }) => {
|
|
3053
|
+
let a = U(), o = W(), [s, l] = f(e), u = d(new m.Value(+!!e)).current;
|
|
3054
|
+
return c(() => {
|
|
3055
|
+
e && l(!0);
|
|
3056
|
+
}, [e]), c(() => {
|
|
3057
|
+
if (s) if (e) {
|
|
3058
|
+
if (o) {
|
|
3059
|
+
u.setValue(1);
|
|
3060
|
+
return;
|
|
3061
|
+
}
|
|
3062
|
+
u.setValue(0), m.timing(u, {
|
|
3063
|
+
toValue: 1,
|
|
3064
|
+
duration: a.durationNormal,
|
|
3065
|
+
useNativeDriver: !0
|
|
3066
|
+
}).start();
|
|
3067
|
+
} else {
|
|
3068
|
+
if (o) {
|
|
3069
|
+
l(!1);
|
|
3070
|
+
return;
|
|
3071
|
+
}
|
|
3072
|
+
m.timing(u, {
|
|
3073
|
+
toValue: 0,
|
|
3074
|
+
duration: a.durationNormal,
|
|
3075
|
+
useNativeDriver: !0
|
|
3076
|
+
}).start(({ finished: e }) => {
|
|
3077
|
+
e && l(!1);
|
|
3078
|
+
});
|
|
3079
|
+
}
|
|
3080
|
+
}, [
|
|
3081
|
+
e,
|
|
3082
|
+
s,
|
|
3083
|
+
o,
|
|
3084
|
+
u,
|
|
3085
|
+
a.durationNormal
|
|
3086
|
+
]), s ? /* @__PURE__ */ M(x, {
|
|
3087
|
+
visible: s,
|
|
3088
|
+
transparent: !0,
|
|
3089
|
+
animationType: "none",
|
|
3090
|
+
statusBarTranslucent: !0,
|
|
3091
|
+
children: /* @__PURE__ */ M(Nt, {
|
|
3092
|
+
testID: i,
|
|
3093
|
+
onPress: t,
|
|
3094
|
+
accessible: !1,
|
|
3095
|
+
style: [{
|
|
3096
|
+
flex: 1,
|
|
3097
|
+
alignItems: "center",
|
|
3098
|
+
justifyContent: "center",
|
|
3099
|
+
backgroundColor: a.dialogBackdropColor,
|
|
3100
|
+
opacity: u
|
|
3101
|
+
}, r],
|
|
3102
|
+
children: /* @__PURE__ */ M(w, {
|
|
3103
|
+
onPress: () => {},
|
|
3104
|
+
accessible: !1,
|
|
3105
|
+
children: n
|
|
3106
|
+
})
|
|
3107
|
+
})
|
|
3108
|
+
}) : null;
|
|
3109
|
+
}, Ft = ({ segments: e, onNavigate: n, style: r, ...i }) => {
|
|
3110
|
+
let a = U();
|
|
3111
|
+
return /* @__PURE__ */ M(k, {
|
|
2498
3112
|
style: [{
|
|
2499
3113
|
flexDirection: "row",
|
|
2500
3114
|
flexWrap: "wrap",
|
|
@@ -2503,7 +3117,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2503
3117
|
...i,
|
|
2504
3118
|
children: e.map((r, i) => {
|
|
2505
3119
|
let o = i === e.length - 1;
|
|
2506
|
-
return /* @__PURE__ */
|
|
3120
|
+
return /* @__PURE__ */ N(t, { children: [i > 0 && /* @__PURE__ */ M(D, {
|
|
2507
3121
|
accessibilityElementsHidden: !0,
|
|
2508
3122
|
importantForAccessibility: "no",
|
|
2509
3123
|
style: {
|
|
@@ -2513,7 +3127,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2513
3127
|
fontSize: a.fontSizeBody
|
|
2514
3128
|
},
|
|
2515
3129
|
children: "›"
|
|
2516
|
-
}), o ? /* @__PURE__ */
|
|
3130
|
+
}), o ? /* @__PURE__ */ N(k, {
|
|
2517
3131
|
style: {
|
|
2518
3132
|
flexDirection: "row",
|
|
2519
3133
|
alignItems: "center",
|
|
@@ -2522,10 +3136,10 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2522
3136
|
paddingHorizontal: a.space1,
|
|
2523
3137
|
maxWidth: 200
|
|
2524
3138
|
},
|
|
2525
|
-
children: [r.icon && /* @__PURE__ */
|
|
3139
|
+
children: [r.icon && /* @__PURE__ */ M(k, {
|
|
2526
3140
|
style: { flexShrink: 0 },
|
|
2527
3141
|
children: r.icon
|
|
2528
|
-
}), /* @__PURE__ */
|
|
3142
|
+
}), /* @__PURE__ */ M(D, {
|
|
2529
3143
|
numberOfLines: 1,
|
|
2530
3144
|
ellipsizeMode: "tail",
|
|
2531
3145
|
style: {
|
|
@@ -2536,7 +3150,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2536
3150
|
},
|
|
2537
3151
|
children: r.label
|
|
2538
3152
|
})]
|
|
2539
|
-
}) : /* @__PURE__ */
|
|
3153
|
+
}) : /* @__PURE__ */ N(w, {
|
|
2540
3154
|
accessibilityRole: "button",
|
|
2541
3155
|
accessibilityLabel: r.label,
|
|
2542
3156
|
onPress: () => n?.(r.path, i),
|
|
@@ -2550,10 +3164,10 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2550
3164
|
borderRadius: a.radiusSm,
|
|
2551
3165
|
backgroundColor: e ? a.activeOverlay : "transparent"
|
|
2552
3166
|
}),
|
|
2553
|
-
children: [r.icon && /* @__PURE__ */
|
|
3167
|
+
children: [r.icon && /* @__PURE__ */ M(k, {
|
|
2554
3168
|
style: { flexShrink: 0 },
|
|
2555
3169
|
children: r.icon
|
|
2556
|
-
}), /* @__PURE__ */
|
|
3170
|
+
}), /* @__PURE__ */ M(D, {
|
|
2557
3171
|
numberOfLines: 1,
|
|
2558
3172
|
ellipsizeMode: "tail",
|
|
2559
3173
|
style: {
|
|
@@ -2566,8 +3180,212 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2566
3180
|
})] }, r.path);
|
|
2567
3181
|
})
|
|
2568
3182
|
});
|
|
2569
|
-
},
|
|
2570
|
-
|
|
3183
|
+
}, J = 8, Y = 10, It = 6;
|
|
3184
|
+
function Lt(e, t) {
|
|
3185
|
+
if (e) {
|
|
3186
|
+
if (typeof e == "function") {
|
|
3187
|
+
e(t);
|
|
3188
|
+
return;
|
|
3189
|
+
}
|
|
3190
|
+
e.current = t;
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
function Rt(e, t, n) {
|
|
3194
|
+
switch (n) {
|
|
3195
|
+
case "top": return {
|
|
3196
|
+
top: e.y - t.height - J,
|
|
3197
|
+
left: e.x + e.width / 2 - t.width / 2
|
|
3198
|
+
};
|
|
3199
|
+
case "bottom": return {
|
|
3200
|
+
top: e.y + e.height + J,
|
|
3201
|
+
left: e.x + e.width / 2 - t.width / 2
|
|
3202
|
+
};
|
|
3203
|
+
case "left": return {
|
|
3204
|
+
top: e.y + e.height / 2 - t.height / 2,
|
|
3205
|
+
left: e.x - t.width - J
|
|
3206
|
+
};
|
|
3207
|
+
case "right": return {
|
|
3208
|
+
top: e.y + e.height / 2 - t.height / 2,
|
|
3209
|
+
left: e.x + e.width + J
|
|
3210
|
+
};
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
function zt(e, t, n) {
|
|
3214
|
+
let { width: r, height: i } = g.get("window"), a = [
|
|
3215
|
+
n,
|
|
3216
|
+
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
3217
|
+
"bottom",
|
|
3218
|
+
"top",
|
|
3219
|
+
"left",
|
|
3220
|
+
"right"
|
|
3221
|
+
];
|
|
3222
|
+
for (let n of a) {
|
|
3223
|
+
let { top: a, left: o } = Rt(e, t, n), s = o >= Y && o + t.width <= r - Y, c = a >= Y && a + t.height <= i - Y;
|
|
3224
|
+
if (s && c) return {
|
|
3225
|
+
top: Math.max(Y, Math.min(a, i - t.height - Y)),
|
|
3226
|
+
left: Math.max(Y, Math.min(o, r - t.width - Y)),
|
|
3227
|
+
placement: n
|
|
3228
|
+
};
|
|
3229
|
+
}
|
|
3230
|
+
let { top: o, left: s } = Rt(e, t, n);
|
|
3231
|
+
return {
|
|
3232
|
+
top: Math.max(Y, Math.min(o, i - t.height - Y)),
|
|
3233
|
+
left: Math.max(Y, Math.min(s, r - t.width - Y)),
|
|
3234
|
+
placement: n
|
|
3235
|
+
};
|
|
3236
|
+
}
|
|
3237
|
+
var Bt = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panelStyle: a, children: s }) => {
|
|
3238
|
+
let l = U(), u = W(), p = r !== void 0, [g, _] = f(!1), v = p ? r : g, [y, b] = f(null), [S, C] = f(null), [T, E] = f(null), D = d(null), O = d(new m.Value(0)).current, A = o((e) => {
|
|
3239
|
+
p || _(e), i?.(e);
|
|
3240
|
+
}, [p, i]), P = o(() => A(!1), [A]), F = o(() => A(!v), [v, A]);
|
|
3241
|
+
c(() => {
|
|
3242
|
+
if (!v) {
|
|
3243
|
+
b(null), C(null), E(null);
|
|
3244
|
+
return;
|
|
3245
|
+
}
|
|
3246
|
+
D.current?.measureInWindow((e, t, n, r) => {
|
|
3247
|
+
b({
|
|
3248
|
+
x: e,
|
|
3249
|
+
y: t,
|
|
3250
|
+
width: n,
|
|
3251
|
+
height: r
|
|
3252
|
+
});
|
|
3253
|
+
});
|
|
3254
|
+
}, [v]), c(() => {
|
|
3255
|
+
!y || !S || E(zt(y, S, t));
|
|
3256
|
+
}, [
|
|
3257
|
+
y,
|
|
3258
|
+
S,
|
|
3259
|
+
t
|
|
3260
|
+
]), c(() => {
|
|
3261
|
+
if (T) {
|
|
3262
|
+
if (u) {
|
|
3263
|
+
O.setValue(1);
|
|
3264
|
+
return;
|
|
3265
|
+
}
|
|
3266
|
+
O.setValue(0), m.timing(O, {
|
|
3267
|
+
toValue: 1,
|
|
3268
|
+
duration: l.durationFast,
|
|
3269
|
+
useNativeDriver: !0
|
|
3270
|
+
}).start();
|
|
3271
|
+
}
|
|
3272
|
+
}, [
|
|
3273
|
+
T,
|
|
3274
|
+
u,
|
|
3275
|
+
O,
|
|
3276
|
+
l.durationFast
|
|
3277
|
+
]), c(() => {
|
|
3278
|
+
if (!v) return;
|
|
3279
|
+
let e = h.addEventListener("hardwareBackPress", () => (P(), !0));
|
|
3280
|
+
return () => e.remove();
|
|
3281
|
+
}, [v, P]);
|
|
3282
|
+
let ee = (e) => {
|
|
3283
|
+
let { width: t, height: n } = e.nativeEvent.layout;
|
|
3284
|
+
C({
|
|
3285
|
+
width: t,
|
|
3286
|
+
height: n
|
|
3287
|
+
});
|
|
3288
|
+
}, I = {
|
|
3289
|
+
position: "absolute",
|
|
3290
|
+
width: 0,
|
|
3291
|
+
height: 0,
|
|
3292
|
+
borderWidth: It,
|
|
3293
|
+
borderColor: "transparent"
|
|
3294
|
+
}, L = (() => {
|
|
3295
|
+
switch (T?.placement) {
|
|
3296
|
+
case "top": return {
|
|
3297
|
+
...I,
|
|
3298
|
+
top: "100%",
|
|
3299
|
+
left: "50%",
|
|
3300
|
+
marginLeft: -6,
|
|
3301
|
+
borderTopColor: l.popoverBgColor
|
|
3302
|
+
};
|
|
3303
|
+
case "bottom": return {
|
|
3304
|
+
...I,
|
|
3305
|
+
bottom: "100%",
|
|
3306
|
+
left: "50%",
|
|
3307
|
+
marginLeft: -6,
|
|
3308
|
+
borderBottomColor: l.popoverBgColor
|
|
3309
|
+
};
|
|
3310
|
+
case "left": return {
|
|
3311
|
+
...I,
|
|
3312
|
+
left: "100%",
|
|
3313
|
+
top: "50%",
|
|
3314
|
+
marginTop: -6,
|
|
3315
|
+
borderLeftColor: l.popoverBgColor
|
|
3316
|
+
};
|
|
3317
|
+
case "right": return {
|
|
3318
|
+
...I,
|
|
3319
|
+
right: "100%",
|
|
3320
|
+
top: "50%",
|
|
3321
|
+
marginTop: -6,
|
|
3322
|
+
borderRightColor: l.popoverBgColor
|
|
3323
|
+
};
|
|
3324
|
+
default: return null;
|
|
3325
|
+
}
|
|
3326
|
+
})(), R = s.props.ref;
|
|
3327
|
+
return /* @__PURE__ */ N(j, { children: [n(s, {
|
|
3328
|
+
ref: (e) => {
|
|
3329
|
+
D.current = e, Lt(R, e);
|
|
3330
|
+
},
|
|
3331
|
+
accessibilityState: {
|
|
3332
|
+
expanded: v,
|
|
3333
|
+
...s.props.accessibilityState
|
|
3334
|
+
},
|
|
3335
|
+
onPress: (e) => {
|
|
3336
|
+
F(), s.props.onPress?.(e);
|
|
3337
|
+
}
|
|
3338
|
+
}), /* @__PURE__ */ M(x, {
|
|
3339
|
+
visible: v,
|
|
3340
|
+
transparent: !0,
|
|
3341
|
+
animationType: "none",
|
|
3342
|
+
statusBarTranslucent: !0,
|
|
3343
|
+
onRequestClose: P,
|
|
3344
|
+
children: /* @__PURE__ */ M(w, {
|
|
3345
|
+
onPress: P,
|
|
3346
|
+
accessible: !1,
|
|
3347
|
+
style: { flex: 1 },
|
|
3348
|
+
children: /* @__PURE__ */ N(m.View, {
|
|
3349
|
+
onLayout: ee,
|
|
3350
|
+
role: "dialog",
|
|
3351
|
+
accessible: !0,
|
|
3352
|
+
onStartShouldSetResponder: () => !0,
|
|
3353
|
+
style: [
|
|
3354
|
+
{
|
|
3355
|
+
position: "absolute",
|
|
3356
|
+
minWidth: 180,
|
|
3357
|
+
maxWidth: 320,
|
|
3358
|
+
backgroundColor: l.popoverBgColor,
|
|
3359
|
+
borderWidth: 1,
|
|
3360
|
+
borderColor: l.cardShadeColor,
|
|
3361
|
+
borderRadius: l.radiusLg,
|
|
3362
|
+
padding: l.space2,
|
|
3363
|
+
shadowColor: "#000",
|
|
3364
|
+
shadowOffset: {
|
|
3365
|
+
width: 0,
|
|
3366
|
+
height: 4
|
|
3367
|
+
},
|
|
3368
|
+
shadowOpacity: .15,
|
|
3369
|
+
shadowRadius: 12,
|
|
3370
|
+
elevation: 6
|
|
3371
|
+
},
|
|
3372
|
+
T ? {
|
|
3373
|
+
top: T.top,
|
|
3374
|
+
left: T.left,
|
|
3375
|
+
opacity: O
|
|
3376
|
+
} : {
|
|
3377
|
+
top: -9999,
|
|
3378
|
+
left: -9999,
|
|
3379
|
+
opacity: 0
|
|
3380
|
+
},
|
|
3381
|
+
a
|
|
3382
|
+
],
|
|
3383
|
+
children: [e, L && /* @__PURE__ */ M(k, { style: L })]
|
|
3384
|
+
})
|
|
3385
|
+
})
|
|
3386
|
+
})] });
|
|
3387
|
+
}, Vt = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
|
|
3388
|
+
let o = U(), s = V(), l = W(), u = e == null, p = u ? void 0 : Math.min(1, Math.max(0, e)), h = p === void 0 ? void 0 : p * 100, g = d(new m.Value(p ?? 0)).current, v = d(new m.Value(0)).current, [y, b] = f(0), x = (e) => {
|
|
2571
3389
|
b(e.nativeEvent.layout.width), i?.(e);
|
|
2572
3390
|
};
|
|
2573
3391
|
c(() => {
|
|
@@ -2623,7 +3441,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2623
3441
|
transformOrigin: "left",
|
|
2624
3442
|
transform: [{ scaleX: g }]
|
|
2625
3443
|
};
|
|
2626
|
-
return /* @__PURE__ */
|
|
3444
|
+
return /* @__PURE__ */ M(m.View, {
|
|
2627
3445
|
accessible: !0,
|
|
2628
3446
|
accessibilityRole: "progressbar",
|
|
2629
3447
|
accessibilityLabel: n,
|
|
@@ -2641,7 +3459,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2641
3459
|
overflow: "hidden"
|
|
2642
3460
|
}, r],
|
|
2643
3461
|
...a,
|
|
2644
|
-
children: /* @__PURE__ */
|
|
3462
|
+
children: /* @__PURE__ */ M(m.View, { style: [{
|
|
2645
3463
|
position: u ? "absolute" : "relative",
|
|
2646
3464
|
top: 0,
|
|
2647
3465
|
height: "100%",
|
|
@@ -2649,8 +3467,8 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2649
3467
|
backgroundColor: C[t]
|
|
2650
3468
|
}, w] })
|
|
2651
3469
|
});
|
|
2652
|
-
},
|
|
2653
|
-
let o =
|
|
3470
|
+
}, Ht = 18, Ut = 6, Wt = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
|
|
3471
|
+
let o = U(), s = V(), l = H(), u = d(new m.Value(+!!e)).current, f = d(!0);
|
|
2654
3472
|
c(() => {
|
|
2655
3473
|
if (f.current) {
|
|
2656
3474
|
f.current = !1;
|
|
@@ -2676,7 +3494,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2676
3494
|
inputRange: [0, 1],
|
|
2677
3495
|
outputRange: [o.cardBgColor, o.accentBgColor]
|
|
2678
3496
|
});
|
|
2679
|
-
return /* @__PURE__ */
|
|
3497
|
+
return /* @__PURE__ */ M(w, {
|
|
2680
3498
|
ref: a,
|
|
2681
3499
|
disabled: n,
|
|
2682
3500
|
accessibilityRole: "radio",
|
|
@@ -2689,10 +3507,10 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2689
3507
|
},
|
|
2690
3508
|
style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
|
|
2691
3509
|
...i,
|
|
2692
|
-
children: /* @__PURE__ */
|
|
3510
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
2693
3511
|
style: {
|
|
2694
|
-
width:
|
|
2695
|
-
height:
|
|
3512
|
+
width: Ht,
|
|
3513
|
+
height: Ht,
|
|
2696
3514
|
alignItems: "center",
|
|
2697
3515
|
justifyContent: "center",
|
|
2698
3516
|
borderRadius: o.radiusPill,
|
|
@@ -2700,9 +3518,9 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2700
3518
|
borderColor: h,
|
|
2701
3519
|
backgroundColor: g
|
|
2702
3520
|
},
|
|
2703
|
-
children: /* @__PURE__ */
|
|
2704
|
-
width:
|
|
2705
|
-
height:
|
|
3521
|
+
children: /* @__PURE__ */ M(m.View, { style: {
|
|
3522
|
+
width: Ut,
|
|
3523
|
+
height: Ut,
|
|
2706
3524
|
borderRadius: o.radiusPill,
|
|
2707
3525
|
backgroundColor: "#fff",
|
|
2708
3526
|
opacity: u
|
|
@@ -2712,29 +3530,29 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2712
3530
|
});
|
|
2713
3531
|
//#endregion
|
|
2714
3532
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
2715
|
-
function
|
|
3533
|
+
function Gt(e, t) {
|
|
2716
3534
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
2717
3535
|
if (!n) return e;
|
|
2718
3536
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
2719
3537
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
2720
3538
|
}
|
|
2721
|
-
var
|
|
2722
|
-
let g =
|
|
3539
|
+
var Kt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, placeholder: a = "Search…", editable: o = !0, inline: s = !1, closeLabel: u = "Cancel", style: f, inputStyle: p, ...m }, h) {
|
|
3540
|
+
let g = U(), _ = d(null);
|
|
2723
3541
|
if (l(h, () => _.current, []), c(() => {
|
|
2724
3542
|
if (!e) return;
|
|
2725
3543
|
let t = requestAnimationFrame(() => _.current?.focus());
|
|
2726
3544
|
return () => cancelAnimationFrame(t);
|
|
2727
3545
|
}, [e]), !e) return null;
|
|
2728
3546
|
let v = !o, y = typeof i == "string" && i.length > 0, b = s ? "transparent" : g.headerbarBgColor, x = s ? "transparent" : g.headerbarShadeColor;
|
|
2729
|
-
return /* @__PURE__ */
|
|
3547
|
+
return /* @__PURE__ */ N(k, {
|
|
2730
3548
|
style: f,
|
|
2731
|
-
children: [/* @__PURE__ */
|
|
3549
|
+
children: [/* @__PURE__ */ N(k, {
|
|
2732
3550
|
style: {
|
|
2733
3551
|
flexDirection: "row",
|
|
2734
3552
|
alignItems: "center",
|
|
2735
3553
|
gap: g.space1
|
|
2736
3554
|
},
|
|
2737
|
-
children: [/* @__PURE__ */
|
|
3555
|
+
children: [/* @__PURE__ */ N(k, {
|
|
2738
3556
|
style: {
|
|
2739
3557
|
flex: 1,
|
|
2740
3558
|
flexDirection: "row",
|
|
@@ -2748,7 +3566,7 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2748
3566
|
opacity: v ? g.opacityDisabled : 1
|
|
2749
3567
|
},
|
|
2750
3568
|
children: [
|
|
2751
|
-
/* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ M(D, {
|
|
2752
3570
|
accessibilityElementsHidden: !0,
|
|
2753
3571
|
importantForAccessibility: "no",
|
|
2754
3572
|
style: {
|
|
@@ -2757,12 +3575,12 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2757
3575
|
},
|
|
2758
3576
|
children: "🔍"
|
|
2759
3577
|
}),
|
|
2760
|
-
/* @__PURE__ */
|
|
3578
|
+
/* @__PURE__ */ M(O, {
|
|
2761
3579
|
ref: _,
|
|
2762
3580
|
editable: o,
|
|
2763
3581
|
value: i,
|
|
2764
3582
|
placeholder: a,
|
|
2765
|
-
placeholderTextColor:
|
|
3583
|
+
placeholderTextColor: Gt(g.windowFgColor, g.opacityDim),
|
|
2766
3584
|
style: [{
|
|
2767
3585
|
flex: 1,
|
|
2768
3586
|
padding: 0,
|
|
@@ -2773,7 +3591,7 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2773
3591
|
}, p],
|
|
2774
3592
|
...m
|
|
2775
3593
|
}),
|
|
2776
|
-
y && /* @__PURE__ */
|
|
3594
|
+
y && /* @__PURE__ */ M(w, {
|
|
2777
3595
|
accessibilityRole: "button",
|
|
2778
3596
|
accessibilityLabel: "Clear search",
|
|
2779
3597
|
disabled: v,
|
|
@@ -2790,7 +3608,7 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2790
3608
|
opacity: v ? g.opacityDisabled : 1,
|
|
2791
3609
|
backgroundColor: e ? g.activeOverlay : "transparent"
|
|
2792
3610
|
}),
|
|
2793
|
-
children: /* @__PURE__ */
|
|
3611
|
+
children: /* @__PURE__ */ M(D, {
|
|
2794
3612
|
style: {
|
|
2795
3613
|
fontSize: g.fontSizeBody,
|
|
2796
3614
|
color: g.windowFgColor
|
|
@@ -2799,12 +3617,12 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2799
3617
|
})
|
|
2800
3618
|
})
|
|
2801
3619
|
]
|
|
2802
|
-
}), t && /* @__PURE__ */
|
|
3620
|
+
}), t && /* @__PURE__ */ M(w, {
|
|
2803
3621
|
accessibilityRole: "button",
|
|
2804
3622
|
accessibilityLabel: u,
|
|
2805
3623
|
onPress: t,
|
|
2806
3624
|
hitSlop: 8,
|
|
2807
|
-
children: /* @__PURE__ */
|
|
3625
|
+
children: /* @__PURE__ */ M(D, {
|
|
2808
3626
|
style: {
|
|
2809
3627
|
fontFamily: g.fontFamily,
|
|
2810
3628
|
fontSize: g.fontSizeBody,
|
|
@@ -2813,7 +3631,7 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2813
3631
|
children: u
|
|
2814
3632
|
})
|
|
2815
3633
|
})]
|
|
2816
|
-
}), r && /* @__PURE__ */
|
|
3634
|
+
}), r && /* @__PURE__ */ M(k, {
|
|
2817
3635
|
style: {
|
|
2818
3636
|
flexDirection: "row",
|
|
2819
3637
|
flexWrap: "wrap",
|
|
@@ -2830,32 +3648,32 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2830
3648
|
});
|
|
2831
3649
|
//#endregion
|
|
2832
3650
|
//#region src/components/Sidebar/filterUtils.ts
|
|
2833
|
-
function
|
|
3651
|
+
function qt(t, n) {
|
|
2834
3652
|
let r = 0;
|
|
2835
3653
|
return e.forEach(t, (e) => {
|
|
2836
3654
|
if (!a(e)) return;
|
|
2837
3655
|
let t = e.props;
|
|
2838
|
-
typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r +=
|
|
3656
|
+
typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += qt(t.children, n));
|
|
2839
3657
|
}), r;
|
|
2840
3658
|
}
|
|
2841
|
-
function
|
|
3659
|
+
function Jt(e, t) {
|
|
2842
3660
|
if (!t || !a(e)) return !0;
|
|
2843
3661
|
let n = e.props;
|
|
2844
|
-
return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ?
|
|
3662
|
+
return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? qt(n.children, t) > 0 : !0;
|
|
2845
3663
|
}
|
|
2846
3664
|
//#endregion
|
|
2847
3665
|
//#region src/components/Sidebar/Sidebar.tsx
|
|
2848
|
-
var
|
|
2849
|
-
function
|
|
2850
|
-
return s(
|
|
3666
|
+
var Yt = r(!1);
|
|
3667
|
+
function Xt() {
|
|
3668
|
+
return s(Yt);
|
|
2851
3669
|
}
|
|
2852
|
-
var
|
|
2853
|
-
let c =
|
|
2854
|
-
return /* @__PURE__ */
|
|
3670
|
+
var X = r(""), Zt = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
|
|
3671
|
+
let c = U(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => Jt(e, i)), d = !l || u.length > 0;
|
|
3672
|
+
return /* @__PURE__ */ M(Yt.Provider, {
|
|
2855
3673
|
value: r,
|
|
2856
|
-
children: /* @__PURE__ */
|
|
3674
|
+
children: /* @__PURE__ */ M(X.Provider, {
|
|
2857
3675
|
value: i,
|
|
2858
|
-
children: /* @__PURE__ */
|
|
3676
|
+
children: /* @__PURE__ */ M(k, {
|
|
2859
3677
|
ref: s,
|
|
2860
3678
|
style: [{
|
|
2861
3679
|
flexShrink: 0,
|
|
@@ -2865,9 +3683,9 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2865
3683
|
borderRightColor: c.headerbarBorderColor
|
|
2866
3684
|
}, a],
|
|
2867
3685
|
...o,
|
|
2868
|
-
children: /* @__PURE__ */
|
|
3686
|
+
children: /* @__PURE__ */ M(T, {
|
|
2869
3687
|
contentContainerStyle: { padding: c.space1 },
|
|
2870
|
-
children: l && !d ? /* @__PURE__ */
|
|
3688
|
+
children: l && !d ? /* @__PURE__ */ M(G, {
|
|
2871
3689
|
variant: "caption",
|
|
2872
3690
|
color: "dim",
|
|
2873
3691
|
style: {
|
|
@@ -2875,7 +3693,7 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2875
3693
|
padding: c.space4
|
|
2876
3694
|
},
|
|
2877
3695
|
children: "No items match your search."
|
|
2878
|
-
}) : u.map((e, n) => /* @__PURE__ */
|
|
3696
|
+
}) : u.map((e, n) => /* @__PURE__ */ N(t, { children: [n > 0 && /* @__PURE__ */ M(st, {
|
|
2879
3697
|
testID: "sidebar-separator",
|
|
2880
3698
|
style: { marginVertical: c.space1 }
|
|
2881
3699
|
}), e] }, n))
|
|
@@ -2883,9 +3701,9 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2883
3701
|
})
|
|
2884
3702
|
})
|
|
2885
3703
|
});
|
|
2886
|
-
}),
|
|
2887
|
-
let l =
|
|
2888
|
-
return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */
|
|
3704
|
+
}), Qt = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
|
|
3705
|
+
let l = U(), u = Xt(), d = s(X);
|
|
3706
|
+
return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ N(w, {
|
|
2889
3707
|
ref: c,
|
|
2890
3708
|
disabled: i,
|
|
2891
3709
|
accessibilityRole: "button",
|
|
@@ -2913,14 +3731,14 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2913
3731
|
],
|
|
2914
3732
|
...o,
|
|
2915
3733
|
children: [
|
|
2916
|
-
t && /* @__PURE__ */
|
|
3734
|
+
t && /* @__PURE__ */ M(k, {
|
|
2917
3735
|
style: {
|
|
2918
3736
|
flexShrink: 0,
|
|
2919
3737
|
opacity: n ? 1 : .85
|
|
2920
3738
|
},
|
|
2921
3739
|
children: t
|
|
2922
3740
|
}),
|
|
2923
|
-
!u && /* @__PURE__ */
|
|
3741
|
+
!u && /* @__PURE__ */ M(G, {
|
|
2924
3742
|
numberOfLines: 1,
|
|
2925
3743
|
ellipsizeMode: "tail",
|
|
2926
3744
|
style: {
|
|
@@ -2931,22 +3749,22 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2931
3749
|
},
|
|
2932
3750
|
children: e
|
|
2933
3751
|
}),
|
|
2934
|
-
!u && r && /* @__PURE__ */
|
|
3752
|
+
!u && r && /* @__PURE__ */ M(k, {
|
|
2935
3753
|
style: { flexShrink: 0 },
|
|
2936
3754
|
children: r
|
|
2937
3755
|
})
|
|
2938
3756
|
]
|
|
2939
3757
|
});
|
|
2940
|
-
}),
|
|
2941
|
-
let p =
|
|
3758
|
+
}), $t = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
|
|
3759
|
+
let p = U(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = Xt(), y = s(X), b = (e) => {
|
|
2942
3760
|
g || h(e), a?.(e);
|
|
2943
3761
|
};
|
|
2944
3762
|
if (l(d, () => ({
|
|
2945
3763
|
expand: () => b(!0),
|
|
2946
3764
|
collapse: () => b(!1),
|
|
2947
3765
|
toggle: () => b(!_)
|
|
2948
|
-
})), !(y.length === 0 ||
|
|
2949
|
-
let x = v ? !0 : _, S = !v && !!(e || t),
|
|
3766
|
+
})), !(y.length === 0 || qt(o, y) > 0)) return null;
|
|
3767
|
+
let x = v ? !0 : _, S = !v && !!(e || t), C = (e || t) && /* @__PURE__ */ N(k, {
|
|
2950
3768
|
style: {
|
|
2951
3769
|
flexDirection: "row",
|
|
2952
3770
|
alignItems: "center",
|
|
@@ -2957,21 +3775,21 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2957
3775
|
marginBottom: 2
|
|
2958
3776
|
},
|
|
2959
3777
|
children: [
|
|
2960
|
-
t && /* @__PURE__ */
|
|
3778
|
+
t && /* @__PURE__ */ M(k, {
|
|
2961
3779
|
style: {
|
|
2962
3780
|
flexShrink: 0,
|
|
2963
3781
|
opacity: .7
|
|
2964
3782
|
},
|
|
2965
3783
|
children: t
|
|
2966
3784
|
}),
|
|
2967
|
-
e && /* @__PURE__ */
|
|
3785
|
+
e && /* @__PURE__ */ M(G, {
|
|
2968
3786
|
variant: "caption-heading",
|
|
2969
3787
|
color: "dim",
|
|
2970
3788
|
style: { flex: 1 },
|
|
2971
3789
|
numberOfLines: 1,
|
|
2972
3790
|
children: e
|
|
2973
3791
|
}),
|
|
2974
|
-
n && /* @__PURE__ */
|
|
3792
|
+
n && /* @__PURE__ */ M(G, {
|
|
2975
3793
|
variant: "caption",
|
|
2976
3794
|
color: "dim",
|
|
2977
3795
|
style: { flexShrink: 0 },
|
|
@@ -2979,16 +3797,16 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2979
3797
|
})
|
|
2980
3798
|
]
|
|
2981
3799
|
});
|
|
2982
|
-
return /* @__PURE__ */
|
|
3800
|
+
return /* @__PURE__ */ N(k, {
|
|
2983
3801
|
style: c,
|
|
2984
3802
|
...u,
|
|
2985
|
-
children: [S && (n ? /* @__PURE__ */
|
|
3803
|
+
children: [S && (n ? /* @__PURE__ */ M(w, {
|
|
2986
3804
|
accessibilityRole: "button",
|
|
2987
3805
|
accessibilityState: { expanded: _ },
|
|
2988
3806
|
accessibilityLabel: e,
|
|
2989
3807
|
onPress: () => b(!_),
|
|
2990
|
-
children:
|
|
2991
|
-
}) :
|
|
3808
|
+
children: C
|
|
3809
|
+
}) : C), /* @__PURE__ */ M(k, {
|
|
2992
3810
|
accessible: !0,
|
|
2993
3811
|
accessibilityRole: "list",
|
|
2994
3812
|
style: {
|
|
@@ -2998,8 +3816,8 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2998
3816
|
children: o
|
|
2999
3817
|
})]
|
|
3000
3818
|
});
|
|
3001
|
-
}),
|
|
3002
|
-
let l =
|
|
3819
|
+
}), en = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
|
|
3820
|
+
let l = U(), u = W(), f = d(new m.Value(1)).current, p = a && !u;
|
|
3003
3821
|
if (c(() => {
|
|
3004
3822
|
if (!p) {
|
|
3005
3823
|
f.setValue(1);
|
|
@@ -3023,11 +3841,11 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3023
3841
|
l.easingDefault
|
|
3024
3842
|
]), e === "text") {
|
|
3025
3843
|
let e = Math.max(1, Math.floor(i));
|
|
3026
|
-
return /* @__PURE__ */
|
|
3844
|
+
return /* @__PURE__ */ M(k, {
|
|
3027
3845
|
accessible: !1,
|
|
3028
3846
|
style: [{ gap: 8 }, o],
|
|
3029
3847
|
...s,
|
|
3030
|
-
children: Array.from({ length: e }, (t, n) => /* @__PURE__ */
|
|
3848
|
+
children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ M(m.View, { style: {
|
|
3031
3849
|
width: n === e - 1 ? "60%" : "100%",
|
|
3032
3850
|
height: 12,
|
|
3033
3851
|
borderRadius: l.radiusPill,
|
|
@@ -3045,7 +3863,7 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3045
3863
|
height: n,
|
|
3046
3864
|
borderRadius: l.radiusMd
|
|
3047
3865
|
};
|
|
3048
|
-
return /* @__PURE__ */
|
|
3866
|
+
return /* @__PURE__ */ M(m.View, {
|
|
3049
3867
|
accessible: !1,
|
|
3050
3868
|
style: [
|
|
3051
3869
|
h,
|
|
@@ -3057,22 +3875,22 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3057
3875
|
],
|
|
3058
3876
|
...s
|
|
3059
3877
|
});
|
|
3060
|
-
},
|
|
3061
|
-
function
|
|
3878
|
+
}, tn = 6, Z = 22, nn = 4;
|
|
3879
|
+
function Q(e, t, n) {
|
|
3062
3880
|
return Math.min(n, Math.max(t, e));
|
|
3063
3881
|
}
|
|
3064
|
-
function
|
|
3882
|
+
function rn(e, t, n, r) {
|
|
3065
3883
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
3066
3884
|
}
|
|
3067
|
-
function
|
|
3885
|
+
function an(e) {
|
|
3068
3886
|
let t = e.toString(), n = t.indexOf(".");
|
|
3069
3887
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3070
3888
|
}
|
|
3071
|
-
var
|
|
3072
|
-
let m =
|
|
3889
|
+
var on = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabled: a = !1, marks: s, accessibilityLabel: c, style: l, onLayout: d, ...p }) => {
|
|
3890
|
+
let m = U(), [h, g] = f(0), [_, v] = f({}), y = an(i), b = Q(e, n, r), x = (b - n) / (r - n) * 100, C = o((e) => {
|
|
3073
3891
|
g(e.nativeEvent.layout.width), d?.(e);
|
|
3074
3892
|
}, [d]), w = o((e) => {
|
|
3075
|
-
a || h <= 0 || t(
|
|
3893
|
+
a || h <= 0 || t(Q(rn(e / h * (r - n) + n, n, i, y), n, r));
|
|
3076
3894
|
}, [
|
|
3077
3895
|
a,
|
|
3078
3896
|
h,
|
|
@@ -3081,18 +3899,18 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3081
3899
|
i,
|
|
3082
3900
|
y,
|
|
3083
3901
|
t
|
|
3084
|
-
]), T = u(() =>
|
|
3902
|
+
]), T = u(() => S.create({
|
|
3085
3903
|
onStartShouldSetPanResponder: () => !a,
|
|
3086
3904
|
onMoveShouldSetPanResponder: () => !a,
|
|
3087
3905
|
onPanResponderGrant: (e) => w(e.nativeEvent.locationX),
|
|
3088
3906
|
onPanResponderMove: (e) => w(e.nativeEvent.locationX)
|
|
3089
|
-
}), [a, w]),
|
|
3907
|
+
}), [a, w]), E = o((o) => {
|
|
3090
3908
|
if (!a) switch (o.nativeEvent.actionName) {
|
|
3091
3909
|
case "increment":
|
|
3092
|
-
t(
|
|
3910
|
+
t(Q(rn(e + i, n, i, y), n, r));
|
|
3093
3911
|
break;
|
|
3094
3912
|
case "decrement":
|
|
3095
|
-
t(
|
|
3913
|
+
t(Q(rn(e - i, n, i, y), n, r));
|
|
3096
3914
|
break;
|
|
3097
3915
|
}
|
|
3098
3916
|
}, [
|
|
@@ -3103,15 +3921,15 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3103
3921
|
r,
|
|
3104
3922
|
y,
|
|
3105
3923
|
t
|
|
3106
|
-
]),
|
|
3107
|
-
return /* @__PURE__ */
|
|
3924
|
+
]), O = s && s.length > 0, A = O && s.some((e) => e.label), j = x / 100 * h - Z / 2;
|
|
3925
|
+
return /* @__PURE__ */ N(k, {
|
|
3108
3926
|
style: [{
|
|
3109
3927
|
width: "100%",
|
|
3110
3928
|
paddingTop: 10,
|
|
3111
3929
|
paddingBottom: A ? 0 : 10
|
|
3112
3930
|
}, l],
|
|
3113
3931
|
...p,
|
|
3114
|
-
children: [/* @__PURE__ */
|
|
3932
|
+
children: [/* @__PURE__ */ N(k, {
|
|
3115
3933
|
onLayout: C,
|
|
3116
3934
|
accessible: !0,
|
|
3117
3935
|
accessibilityRole: "adjustable",
|
|
@@ -3129,37 +3947,37 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3129
3947
|
name: "decrement",
|
|
3130
3948
|
label: "decrement"
|
|
3131
3949
|
}],
|
|
3132
|
-
onAccessibilityAction:
|
|
3950
|
+
onAccessibilityAction: E,
|
|
3133
3951
|
style: {
|
|
3134
3952
|
justifyContent: "center",
|
|
3135
|
-
height:
|
|
3953
|
+
height: Z,
|
|
3136
3954
|
opacity: a ? m.opacityDisabled : 1
|
|
3137
3955
|
},
|
|
3138
3956
|
...T.panHandlers,
|
|
3139
3957
|
children: [
|
|
3140
|
-
/* @__PURE__ */
|
|
3958
|
+
/* @__PURE__ */ M(k, {
|
|
3141
3959
|
pointerEvents: "none",
|
|
3142
3960
|
style: {
|
|
3143
3961
|
width: "100%",
|
|
3144
|
-
height:
|
|
3962
|
+
height: tn,
|
|
3145
3963
|
borderRadius: m.radiusPill,
|
|
3146
3964
|
backgroundColor: m.cardShadeColor,
|
|
3147
3965
|
overflow: "hidden"
|
|
3148
3966
|
},
|
|
3149
|
-
children: /* @__PURE__ */
|
|
3967
|
+
children: /* @__PURE__ */ M(k, { style: {
|
|
3150
3968
|
height: "100%",
|
|
3151
|
-
width: `${
|
|
3969
|
+
width: `${x}%`,
|
|
3152
3970
|
borderRadius: m.radiusPill,
|
|
3153
3971
|
backgroundColor: m.accentBgColor
|
|
3154
3972
|
} })
|
|
3155
3973
|
}),
|
|
3156
|
-
/* @__PURE__ */
|
|
3974
|
+
/* @__PURE__ */ M(k, {
|
|
3157
3975
|
pointerEvents: "none",
|
|
3158
3976
|
style: {
|
|
3159
3977
|
position: "absolute",
|
|
3160
|
-
left:
|
|
3161
|
-
width:
|
|
3162
|
-
height:
|
|
3978
|
+
left: j,
|
|
3979
|
+
width: Z,
|
|
3980
|
+
height: Z,
|
|
3163
3981
|
borderRadius: m.radiusPill,
|
|
3164
3982
|
backgroundColor: m.accentBgColor,
|
|
3165
3983
|
borderWidth: 2,
|
|
@@ -3174,20 +3992,20 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3174
3992
|
elevation: 3
|
|
3175
3993
|
}
|
|
3176
3994
|
}),
|
|
3177
|
-
|
|
3995
|
+
O && s.map((e) => /* @__PURE__ */ M(k, {
|
|
3178
3996
|
pointerEvents: "none",
|
|
3179
3997
|
importantForAccessibility: "no",
|
|
3180
3998
|
style: {
|
|
3181
3999
|
position: "absolute",
|
|
3182
|
-
left: (
|
|
3183
|
-
width:
|
|
3184
|
-
height:
|
|
3185
|
-
borderRadius:
|
|
4000
|
+
left: (Q(e.value, n, r) - n) / (r - n) * 100 / 100 * h - nn / 2,
|
|
4001
|
+
width: nn,
|
|
4002
|
+
height: nn,
|
|
4003
|
+
borderRadius: nn / 2,
|
|
3186
4004
|
backgroundColor: m.windowBgColor
|
|
3187
4005
|
}
|
|
3188
4006
|
}, e.value))
|
|
3189
4007
|
]
|
|
3190
|
-
}), A && /* @__PURE__ */
|
|
4008
|
+
}), A && /* @__PURE__ */ M(k, {
|
|
3191
4009
|
importantForAccessibility: "no",
|
|
3192
4010
|
style: {
|
|
3193
4011
|
position: "relative",
|
|
@@ -3195,7 +4013,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3195
4013
|
height: 20,
|
|
3196
4014
|
marginTop: 6
|
|
3197
4015
|
},
|
|
3198
|
-
children: s.map((e) => /* @__PURE__ */
|
|
4016
|
+
children: s.map((e) => /* @__PURE__ */ M(D, {
|
|
3199
4017
|
numberOfLines: 1,
|
|
3200
4018
|
onLayout: (t) => {
|
|
3201
4019
|
let { layout: { width: n } } = t.nativeEvent;
|
|
@@ -3206,7 +4024,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3206
4024
|
},
|
|
3207
4025
|
style: {
|
|
3208
4026
|
position: "absolute",
|
|
3209
|
-
left: (
|
|
4027
|
+
left: (Q(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
|
|
3210
4028
|
fontFamily: m.fontFamily,
|
|
3211
4029
|
fontSize: m.fontSizeCaption,
|
|
3212
4030
|
color: m.windowFgColor,
|
|
@@ -3216,7 +4034,140 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3216
4034
|
}, e.value))
|
|
3217
4035
|
})]
|
|
3218
4036
|
});
|
|
3219
|
-
},
|
|
4037
|
+
}, sn = 36;
|
|
4038
|
+
function cn(e) {
|
|
4039
|
+
let t = e.toString(), n = t.indexOf(".");
|
|
4040
|
+
return n === -1 ? 0 : t.length - n - 1;
|
|
4041
|
+
}
|
|
4042
|
+
function ln(e, t, n) {
|
|
4043
|
+
return Math.min(n, Math.max(t, e));
|
|
4044
|
+
}
|
|
4045
|
+
function un(e, t, n, r) {
|
|
4046
|
+
let i = n - t + r;
|
|
4047
|
+
return ((e - t) % i + i) % i + t;
|
|
4048
|
+
}
|
|
4049
|
+
var dn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decimals: a, wrap: s = !1, format: c, disabled: l = !1, accessibilityLabel: u, style: d }) => {
|
|
4050
|
+
let f = U(), p = a ?? cn(i), m = o((e) => {
|
|
4051
|
+
let a = s ? un(e, n, r, i) : ln(e, n, r);
|
|
4052
|
+
t(parseFloat(a.toFixed(p)));
|
|
4053
|
+
}, [
|
|
4054
|
+
t,
|
|
4055
|
+
n,
|
|
4056
|
+
r,
|
|
4057
|
+
i,
|
|
4058
|
+
p,
|
|
4059
|
+
s
|
|
4060
|
+
]), h = c ? c(e) : e.toFixed(p), g = o((t) => {
|
|
4061
|
+
if (!l) switch (t.nativeEvent.actionName) {
|
|
4062
|
+
case "increment":
|
|
4063
|
+
m(e + i);
|
|
4064
|
+
break;
|
|
4065
|
+
case "decrement":
|
|
4066
|
+
m(e - i);
|
|
4067
|
+
break;
|
|
4068
|
+
}
|
|
4069
|
+
}, [
|
|
4070
|
+
l,
|
|
4071
|
+
e,
|
|
4072
|
+
i,
|
|
4073
|
+
m
|
|
4074
|
+
]), _ = l || !s && e <= n, v = l || !s && e >= r;
|
|
4075
|
+
return /* @__PURE__ */ N(k, {
|
|
4076
|
+
accessible: !0,
|
|
4077
|
+
accessibilityRole: "adjustable",
|
|
4078
|
+
accessibilityLabel: u,
|
|
4079
|
+
accessibilityValue: {
|
|
4080
|
+
min: n,
|
|
4081
|
+
max: r,
|
|
4082
|
+
now: e,
|
|
4083
|
+
text: c ? h : void 0
|
|
4084
|
+
},
|
|
4085
|
+
accessibilityState: { disabled: l },
|
|
4086
|
+
accessibilityActions: [{
|
|
4087
|
+
name: "increment",
|
|
4088
|
+
label: "increment"
|
|
4089
|
+
}, {
|
|
4090
|
+
name: "decrement",
|
|
4091
|
+
label: "decrement"
|
|
4092
|
+
}],
|
|
4093
|
+
onAccessibilityAction: g,
|
|
4094
|
+
style: [{
|
|
4095
|
+
flexDirection: "row",
|
|
4096
|
+
alignSelf: "flex-start",
|
|
4097
|
+
alignItems: "center",
|
|
4098
|
+
borderWidth: 1,
|
|
4099
|
+
borderColor: f.cardShadeColor,
|
|
4100
|
+
borderRadius: f.radiusMd,
|
|
4101
|
+
backgroundColor: f.viewBgColor,
|
|
4102
|
+
overflow: "hidden",
|
|
4103
|
+
opacity: l ? f.opacityDisabled : 1
|
|
4104
|
+
}, d],
|
|
4105
|
+
children: [
|
|
4106
|
+
/* @__PURE__ */ M(w, {
|
|
4107
|
+
accessibilityElementsHidden: !0,
|
|
4108
|
+
importantForAccessibility: "no",
|
|
4109
|
+
disabled: _,
|
|
4110
|
+
onPress: () => m(e - i),
|
|
4111
|
+
style: ({ pressed: e }) => ({
|
|
4112
|
+
width: sn,
|
|
4113
|
+
height: sn,
|
|
4114
|
+
alignItems: "center",
|
|
4115
|
+
justifyContent: "center",
|
|
4116
|
+
borderRightWidth: 1,
|
|
4117
|
+
borderRightColor: f.cardShadeColor,
|
|
4118
|
+
backgroundColor: e && !_ ? f.activeOverlay : "transparent",
|
|
4119
|
+
opacity: _ ? f.opacityDisabled : 1
|
|
4120
|
+
}),
|
|
4121
|
+
children: /* @__PURE__ */ M(D, {
|
|
4122
|
+
style: {
|
|
4123
|
+
fontSize: 17,
|
|
4124
|
+
lineHeight: 20,
|
|
4125
|
+
color: f.viewFgColor
|
|
4126
|
+
},
|
|
4127
|
+
children: "−"
|
|
4128
|
+
})
|
|
4129
|
+
}),
|
|
4130
|
+
/* @__PURE__ */ M(D, {
|
|
4131
|
+
accessibilityElementsHidden: !0,
|
|
4132
|
+
importantForAccessibility: "no",
|
|
4133
|
+
style: {
|
|
4134
|
+
minWidth: 56,
|
|
4135
|
+
textAlign: "center",
|
|
4136
|
+
paddingHorizontal: f.space2,
|
|
4137
|
+
fontFamily: f.fontFamily,
|
|
4138
|
+
fontSize: f.fontSizeBody,
|
|
4139
|
+
fontVariant: ["tabular-nums"],
|
|
4140
|
+
color: f.viewFgColor
|
|
4141
|
+
},
|
|
4142
|
+
children: h
|
|
4143
|
+
}),
|
|
4144
|
+
/* @__PURE__ */ M(w, {
|
|
4145
|
+
accessibilityElementsHidden: !0,
|
|
4146
|
+
importantForAccessibility: "no",
|
|
4147
|
+
disabled: v,
|
|
4148
|
+
onPress: () => m(e + i),
|
|
4149
|
+
style: ({ pressed: e }) => ({
|
|
4150
|
+
width: sn,
|
|
4151
|
+
height: sn,
|
|
4152
|
+
alignItems: "center",
|
|
4153
|
+
justifyContent: "center",
|
|
4154
|
+
borderLeftWidth: 1,
|
|
4155
|
+
borderLeftColor: f.cardShadeColor,
|
|
4156
|
+
backgroundColor: e && !v ? f.activeOverlay : "transparent",
|
|
4157
|
+
opacity: v ? f.opacityDisabled : 1
|
|
4158
|
+
}),
|
|
4159
|
+
children: /* @__PURE__ */ M(D, {
|
|
4160
|
+
style: {
|
|
4161
|
+
fontSize: 17,
|
|
4162
|
+
lineHeight: 20,
|
|
4163
|
+
color: f.viewFgColor
|
|
4164
|
+
},
|
|
4165
|
+
children: "+"
|
|
4166
|
+
})
|
|
4167
|
+
})
|
|
4168
|
+
]
|
|
4169
|
+
});
|
|
4170
|
+
}, fn = {
|
|
3220
4171
|
sm: {
|
|
3221
4172
|
dimension: 16,
|
|
3222
4173
|
borderWidth: 2
|
|
@@ -3229,8 +4180,8 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3229
4180
|
dimension: 36,
|
|
3230
4181
|
borderWidth: 3
|
|
3231
4182
|
}
|
|
3232
|
-
},
|
|
3233
|
-
let i =
|
|
4183
|
+
}, pn = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
|
|
4184
|
+
let i = U(), a = V(), o = W(), s = d(new m.Value(0)).current;
|
|
3234
4185
|
c(() => {
|
|
3235
4186
|
s.setValue(0);
|
|
3236
4187
|
let e = m.loop(m.timing(s, {
|
|
@@ -3244,8 +4195,8 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3244
4195
|
let l = s.interpolate({
|
|
3245
4196
|
inputRange: [0, 1],
|
|
3246
4197
|
outputRange: ["0deg", "360deg"]
|
|
3247
|
-
}), { dimension: u, borderWidth: f } =
|
|
3248
|
-
return /* @__PURE__ */
|
|
4198
|
+
}), { dimension: u, borderWidth: f } = fn[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
|
|
4199
|
+
return /* @__PURE__ */ M(m.View, {
|
|
3249
4200
|
accessible: !0,
|
|
3250
4201
|
accessibilityRole: "progressbar",
|
|
3251
4202
|
accessibilityLabel: t || void 0,
|
|
@@ -3262,8 +4213,8 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3262
4213
|
}, n],
|
|
3263
4214
|
...r
|
|
3264
4215
|
});
|
|
3265
|
-
},
|
|
3266
|
-
let o =
|
|
4216
|
+
}, mn = 56, hn = 28, gn = 20, _n = 3, vn = 28, yn = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
|
|
4217
|
+
let o = U(), s = V(), l = H(), u = d(new m.Value(+!!e)).current, f = d(!0);
|
|
3267
4218
|
c(() => {
|
|
3268
4219
|
if (f.current) {
|
|
3269
4220
|
f.current = !1;
|
|
@@ -3289,7 +4240,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3289
4240
|
inputRange: [0, 1],
|
|
3290
4241
|
outputRange: [o.borderSubtle, o.accentBgColor]
|
|
3291
4242
|
});
|
|
3292
|
-
return /* @__PURE__ */
|
|
4243
|
+
return /* @__PURE__ */ M(w, {
|
|
3293
4244
|
ref: a,
|
|
3294
4245
|
disabled: n,
|
|
3295
4246
|
accessibilityRole: "switch",
|
|
@@ -3300,26 +4251,26 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3300
4251
|
onPress: () => t?.(!e),
|
|
3301
4252
|
style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
|
|
3302
4253
|
...i,
|
|
3303
|
-
children: /* @__PURE__ */
|
|
4254
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
3304
4255
|
style: {
|
|
3305
|
-
width:
|
|
3306
|
-
height:
|
|
4256
|
+
width: mn,
|
|
4257
|
+
height: hn,
|
|
3307
4258
|
borderRadius: o.radiusPill,
|
|
3308
4259
|
borderWidth: l === "more" ? 2 : 1,
|
|
3309
4260
|
borderColor: v,
|
|
3310
4261
|
backgroundColor: g
|
|
3311
4262
|
},
|
|
3312
|
-
children: /* @__PURE__ */
|
|
4263
|
+
children: /* @__PURE__ */ M(m.View, { style: [{
|
|
3313
4264
|
position: "absolute",
|
|
3314
|
-
top:
|
|
3315
|
-
left:
|
|
3316
|
-
width:
|
|
3317
|
-
height:
|
|
4265
|
+
top: _n,
|
|
4266
|
+
left: _n,
|
|
4267
|
+
width: gn,
|
|
4268
|
+
height: gn,
|
|
3318
4269
|
borderRadius: o.radiusPill,
|
|
3319
4270
|
backgroundColor: e ? "#fff" : h,
|
|
3320
4271
|
transform: [{ translateX: u.interpolate({
|
|
3321
4272
|
inputRange: [0, 1],
|
|
3322
|
-
outputRange: [0,
|
|
4273
|
+
outputRange: [0, vn]
|
|
3323
4274
|
}) }]
|
|
3324
4275
|
}, l !== "more" && {
|
|
3325
4276
|
shadowColor: "#000",
|
|
@@ -3333,9 +4284,9 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3333
4284
|
}] })
|
|
3334
4285
|
})
|
|
3335
4286
|
});
|
|
3336
|
-
}),
|
|
3337
|
-
let o =
|
|
3338
|
-
return /* @__PURE__ */
|
|
4287
|
+
}), bn = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
|
|
4288
|
+
let o = U();
|
|
4289
|
+
return /* @__PURE__ */ M(T, {
|
|
3339
4290
|
ref: a,
|
|
3340
4291
|
horizontal: !0,
|
|
3341
4292
|
showsHorizontalScrollIndicator: !1,
|
|
@@ -3359,9 +4310,9 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3359
4310
|
...i,
|
|
3360
4311
|
children: e
|
|
3361
4312
|
});
|
|
3362
|
-
}),
|
|
3363
|
-
let l =
|
|
3364
|
-
return /* @__PURE__ */
|
|
4313
|
+
}), xn = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
|
|
4314
|
+
let l = U();
|
|
4315
|
+
return /* @__PURE__ */ N(w, {
|
|
3365
4316
|
ref: c,
|
|
3366
4317
|
disabled: o,
|
|
3367
4318
|
accessibilityRole: "tab",
|
|
@@ -3385,11 +4336,11 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3385
4336
|
}),
|
|
3386
4337
|
...s,
|
|
3387
4338
|
children: [
|
|
3388
|
-
t && /* @__PURE__ */
|
|
4339
|
+
t && /* @__PURE__ */ M(k, {
|
|
3389
4340
|
style: { flexShrink: 0 },
|
|
3390
4341
|
children: t
|
|
3391
4342
|
}),
|
|
3392
|
-
/* @__PURE__ */
|
|
4343
|
+
/* @__PURE__ */ M(D, {
|
|
3393
4344
|
numberOfLines: 1,
|
|
3394
4345
|
ellipsizeMode: "tail",
|
|
3395
4346
|
style: {
|
|
@@ -3400,7 +4351,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3400
4351
|
},
|
|
3401
4352
|
children: e
|
|
3402
4353
|
}),
|
|
3403
|
-
a !== void 0 && /* @__PURE__ */
|
|
4354
|
+
a !== void 0 && /* @__PURE__ */ M(k, {
|
|
3404
4355
|
style: {
|
|
3405
4356
|
flexShrink: 0,
|
|
3406
4357
|
minWidth: 18,
|
|
@@ -3411,7 +4362,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3411
4362
|
justifyContent: "center",
|
|
3412
4363
|
backgroundColor: l.accentBgColor
|
|
3413
4364
|
},
|
|
3414
|
-
children: /* @__PURE__ */
|
|
4365
|
+
children: /* @__PURE__ */ M(D, {
|
|
3415
4366
|
style: {
|
|
3416
4367
|
fontFamily: l.fontFamily,
|
|
3417
4368
|
fontSize: 11,
|
|
@@ -3421,7 +4372,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3421
4372
|
children: a > 99 ? "99+" : a
|
|
3422
4373
|
})
|
|
3423
4374
|
}),
|
|
3424
|
-
r && /* @__PURE__ */
|
|
4375
|
+
r && /* @__PURE__ */ M(w, {
|
|
3425
4376
|
accessibilityRole: "button",
|
|
3426
4377
|
accessibilityLabel: i,
|
|
3427
4378
|
hitSlop: 8,
|
|
@@ -3435,7 +4386,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3435
4386
|
borderRadius: l.radiusSm,
|
|
3436
4387
|
backgroundColor: e ? l.activeOverlay : "transparent"
|
|
3437
4388
|
}),
|
|
3438
|
-
children: /* @__PURE__ */
|
|
4389
|
+
children: /* @__PURE__ */ M(D, {
|
|
3439
4390
|
style: {
|
|
3440
4391
|
fontFamily: l.fontFamily,
|
|
3441
4392
|
fontSize: 15,
|
|
@@ -3445,7 +4396,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3445
4396
|
children: "×"
|
|
3446
4397
|
})
|
|
3447
4398
|
}),
|
|
3448
|
-
n && /* @__PURE__ */
|
|
4399
|
+
n && /* @__PURE__ */ M(k, {
|
|
3449
4400
|
pointerEvents: "none",
|
|
3450
4401
|
style: {
|
|
3451
4402
|
position: "absolute",
|
|
@@ -3459,8 +4410,8 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3459
4410
|
})
|
|
3460
4411
|
]
|
|
3461
4412
|
});
|
|
3462
|
-
}),
|
|
3463
|
-
return /* @__PURE__ */
|
|
4413
|
+
}), Sn = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
|
|
4414
|
+
return /* @__PURE__ */ M(k, {
|
|
3464
4415
|
ref: i,
|
|
3465
4416
|
style: [{ display: e ? "flex" : "none" }, t],
|
|
3466
4417
|
...r,
|
|
@@ -3469,31 +4420,31 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
3469
4420
|
});
|
|
3470
4421
|
//#endregion
|
|
3471
4422
|
//#region src/components/TextField/TextField.tsx
|
|
3472
|
-
function
|
|
4423
|
+
function Cn(e, t) {
|
|
3473
4424
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
3474
4425
|
if (!n) return e;
|
|
3475
4426
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
3476
4427
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
3477
4428
|
}
|
|
3478
|
-
var
|
|
3479
|
-
let p =
|
|
3480
|
-
return /* @__PURE__ */
|
|
4429
|
+
var wn = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i, editable: a = !0, onFocus: o, onBlur: s, accessibilityLabel: c, accessibilityHint: l, ...u }, d) {
|
|
4430
|
+
let p = U(), m = H(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
|
|
4431
|
+
return /* @__PURE__ */ N(k, {
|
|
3481
4432
|
style: [{
|
|
3482
4433
|
gap: p.space1,
|
|
3483
4434
|
opacity: _ ? p.opacityDisabled : 1
|
|
3484
4435
|
}, r],
|
|
3485
4436
|
children: [
|
|
3486
|
-
e && /* @__PURE__ */
|
|
4437
|
+
e && /* @__PURE__ */ M(G, {
|
|
3487
4438
|
variant: "body",
|
|
3488
4439
|
style: { fontWeight: String(p.fontWeightSemibold) },
|
|
3489
4440
|
children: e
|
|
3490
4441
|
}),
|
|
3491
|
-
/* @__PURE__ */
|
|
4442
|
+
/* @__PURE__ */ M(O, {
|
|
3492
4443
|
ref: d,
|
|
3493
4444
|
editable: a,
|
|
3494
4445
|
accessibilityLabel: c ?? e,
|
|
3495
4446
|
accessibilityHint: l ?? v,
|
|
3496
|
-
placeholderTextColor:
|
|
4447
|
+
placeholderTextColor: Cn(p.windowFgColor, p.opacityDim),
|
|
3497
4448
|
onFocus: (e) => {
|
|
3498
4449
|
g(!0), o?.(e);
|
|
3499
4450
|
},
|
|
@@ -3515,7 +4466,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3515
4466
|
}, i],
|
|
3516
4467
|
...u
|
|
3517
4468
|
}),
|
|
3518
|
-
v && /* @__PURE__ */
|
|
4469
|
+
v && /* @__PURE__ */ M(G, {
|
|
3519
4470
|
variant: "caption",
|
|
3520
4471
|
style: {
|
|
3521
4472
|
color: n ? p.errorColor : p.windowFgColor,
|
|
@@ -3525,8 +4476,8 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3525
4476
|
})
|
|
3526
4477
|
]
|
|
3527
4478
|
});
|
|
3528
|
-
}),
|
|
3529
|
-
let u =
|
|
4479
|
+
}), Tn = m.createAnimatedComponent(w), En = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
|
|
4480
|
+
let u = U(), f = V(), p = W(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
|
|
3530
4481
|
h.current &&= (clearTimeout(h.current), null);
|
|
3531
4482
|
}, []), x = o((e) => {
|
|
3532
4483
|
e <= 0 || !n || (b(), v.current = Date.now(), h.current = setTimeout(() => n(), e));
|
|
@@ -3558,11 +4509,11 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3558
4509
|
let e = Date.now() - v.current;
|
|
3559
4510
|
g.current = Math.max(0, g.current - e), b();
|
|
3560
4511
|
}
|
|
3561
|
-
},
|
|
4512
|
+
}, C = () => {
|
|
3562
4513
|
x(g.current);
|
|
3563
4514
|
}, T = () => {
|
|
3564
4515
|
b(), i?.(), n?.();
|
|
3565
|
-
},
|
|
4516
|
+
}, E = f === "dark" ? {
|
|
3566
4517
|
shadowOpacity: .4,
|
|
3567
4518
|
shadowRadius: 12,
|
|
3568
4519
|
elevation: 6
|
|
@@ -3571,12 +4522,12 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3571
4522
|
shadowRadius: 8,
|
|
3572
4523
|
elevation: 4
|
|
3573
4524
|
};
|
|
3574
|
-
return /* @__PURE__ */
|
|
4525
|
+
return /* @__PURE__ */ N(Tn, {
|
|
3575
4526
|
accessible: !0,
|
|
3576
4527
|
accessibilityRole: "alert",
|
|
3577
4528
|
accessibilityLiveRegion: "polite",
|
|
3578
4529
|
onPressIn: S,
|
|
3579
|
-
onPressOut:
|
|
4530
|
+
onPressOut: C,
|
|
3580
4531
|
style: [{
|
|
3581
4532
|
flexDirection: "row",
|
|
3582
4533
|
alignItems: "center",
|
|
@@ -3602,10 +4553,10 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3602
4553
|
inputRange: [0, 1],
|
|
3603
4554
|
outputRange: [.96, 1]
|
|
3604
4555
|
}) }],
|
|
3605
|
-
...
|
|
4556
|
+
...E
|
|
3606
4557
|
}, s],
|
|
3607
4558
|
...l,
|
|
3608
|
-
children: [/* @__PURE__ */
|
|
4559
|
+
children: [/* @__PURE__ */ M(G, {
|
|
3609
4560
|
variant: "body",
|
|
3610
4561
|
style: {
|
|
3611
4562
|
flex: 1,
|
|
@@ -3613,7 +4564,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3613
4564
|
},
|
|
3614
4565
|
numberOfLines: typeof e == "string" ? 2 : void 0,
|
|
3615
4566
|
children: e
|
|
3616
|
-
}), (r || a) && /* @__PURE__ */
|
|
4567
|
+
}), (r || a) && /* @__PURE__ */ N(j, { children: [r && /* @__PURE__ */ M(w, {
|
|
3617
4568
|
accessibilityRole: "button",
|
|
3618
4569
|
accessibilityLabel: r,
|
|
3619
4570
|
onPress: T,
|
|
@@ -3623,7 +4574,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3623
4574
|
borderRadius: u.radiusSm,
|
|
3624
4575
|
backgroundColor: e ? u.activeOverlay : "transparent"
|
|
3625
4576
|
}),
|
|
3626
|
-
children: /* @__PURE__ */
|
|
4577
|
+
children: /* @__PURE__ */ M(D, {
|
|
3627
4578
|
style: {
|
|
3628
4579
|
fontFamily: u.fontFamily,
|
|
3629
4580
|
fontSize: u.fontSizeBody,
|
|
@@ -3632,7 +4583,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3632
4583
|
},
|
|
3633
4584
|
children: r
|
|
3634
4585
|
})
|
|
3635
|
-
}), a && /* @__PURE__ */
|
|
4586
|
+
}), a && /* @__PURE__ */ M(w, {
|
|
3636
4587
|
accessibilityRole: "button",
|
|
3637
4588
|
accessibilityLabel: "Dismiss",
|
|
3638
4589
|
hitSlop: 4,
|
|
@@ -3648,7 +4599,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3648
4599
|
opacity: e ? 1 : .55,
|
|
3649
4600
|
backgroundColor: e ? u.activeOverlay : "transparent"
|
|
3650
4601
|
}),
|
|
3651
|
-
children: /* @__PURE__ */
|
|
4602
|
+
children: /* @__PURE__ */ M(D, {
|
|
3652
4603
|
style: {
|
|
3653
4604
|
fontSize: u.fontSizeBody,
|
|
3654
4605
|
color: u.windowFgColor
|
|
@@ -3657,9 +4608,9 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3657
4608
|
})
|
|
3658
4609
|
})] })]
|
|
3659
4610
|
});
|
|
3660
|
-
},
|
|
3661
|
-
let i =
|
|
3662
|
-
return /* @__PURE__ */
|
|
4611
|
+
}, Dn = ({ position: e = "bottom", children: t, style: n, ...r }) => {
|
|
4612
|
+
let i = U();
|
|
4613
|
+
return /* @__PURE__ */ M(k, {
|
|
3663
4614
|
pointerEvents: "box-none",
|
|
3664
4615
|
accessibilityLabel: "Notifications",
|
|
3665
4616
|
style: [
|
|
@@ -3677,8 +4628,8 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3677
4628
|
...r,
|
|
3678
4629
|
children: t
|
|
3679
4630
|
});
|
|
3680
|
-
},
|
|
3681
|
-
function
|
|
4631
|
+
}, On = 6, $ = 8, kn = 5;
|
|
4632
|
+
function An(e, t) {
|
|
3682
4633
|
if (e) {
|
|
3683
4634
|
if (typeof e == "function") {
|
|
3684
4635
|
e(t);
|
|
@@ -3687,27 +4638,27 @@ function Jt(e, t) {
|
|
|
3687
4638
|
e.current = t;
|
|
3688
4639
|
}
|
|
3689
4640
|
}
|
|
3690
|
-
function
|
|
4641
|
+
function jn(e, t, n) {
|
|
3691
4642
|
switch (n) {
|
|
3692
4643
|
case "top": return {
|
|
3693
|
-
top: e.y - t.height -
|
|
4644
|
+
top: e.y - t.height - On,
|
|
3694
4645
|
left: e.x + e.width / 2 - t.width / 2
|
|
3695
4646
|
};
|
|
3696
4647
|
case "bottom": return {
|
|
3697
|
-
top: e.y + e.height +
|
|
4648
|
+
top: e.y + e.height + On,
|
|
3698
4649
|
left: e.x + e.width / 2 - t.width / 2
|
|
3699
4650
|
};
|
|
3700
4651
|
case "left": return {
|
|
3701
4652
|
top: e.y + e.height / 2 - t.height / 2,
|
|
3702
|
-
left: e.x - t.width -
|
|
4653
|
+
left: e.x - t.width - On
|
|
3703
4654
|
};
|
|
3704
4655
|
case "right": return {
|
|
3705
4656
|
top: e.y + e.height / 2 - t.height / 2,
|
|
3706
|
-
left: e.x + e.width +
|
|
4657
|
+
left: e.x + e.width + On
|
|
3707
4658
|
};
|
|
3708
4659
|
}
|
|
3709
4660
|
}
|
|
3710
|
-
function
|
|
4661
|
+
function Mn(e, t, n) {
|
|
3711
4662
|
let { width: r, height: i } = g.get("window"), a = [
|
|
3712
4663
|
n,
|
|
3713
4664
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -3717,37 +4668,37 @@ function Xt(e, t, n) {
|
|
|
3717
4668
|
"right"
|
|
3718
4669
|
];
|
|
3719
4670
|
for (let n of a) {
|
|
3720
|
-
let { top: a, left: o } =
|
|
4671
|
+
let { top: a, left: o } = jn(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
|
|
3721
4672
|
if (s && c) return {
|
|
3722
4673
|
top: Math.max($, Math.min(a, i - t.height - $)),
|
|
3723
4674
|
left: Math.max($, Math.min(o, r - t.width - $)),
|
|
3724
4675
|
placement: n
|
|
3725
4676
|
};
|
|
3726
4677
|
}
|
|
3727
|
-
let { top: o, left: s } =
|
|
4678
|
+
let { top: o, left: s } = jn(e, t, n);
|
|
3728
4679
|
return {
|
|
3729
4680
|
top: Math.max($, Math.min(o, i - t.height - $)),
|
|
3730
4681
|
left: Math.max($, Math.min(s, r - t.width - $)),
|
|
3731
4682
|
placement: n
|
|
3732
4683
|
};
|
|
3733
4684
|
}
|
|
3734
|
-
var
|
|
3735
|
-
let a =
|
|
4685
|
+
var Nn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
4686
|
+
let a = U(), s = V(), l = W(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, b] = f(null), S = d(null), C = d(null), w = d(new m.Value(0)).current, T = o(() => {
|
|
3736
4687
|
C.current &&= (clearTimeout(C.current), null);
|
|
3737
4688
|
}, []), D = o(() => {
|
|
3738
|
-
|
|
3739
|
-
}, [
|
|
3740
|
-
|
|
4689
|
+
T(), p(!0);
|
|
4690
|
+
}, [T]), O = o(() => {
|
|
4691
|
+
T(), C.current = setTimeout(D, r);
|
|
3741
4692
|
}, [
|
|
3742
|
-
|
|
4693
|
+
T,
|
|
3743
4694
|
D,
|
|
3744
4695
|
r
|
|
3745
|
-
]),
|
|
3746
|
-
|
|
3747
|
-
}, [
|
|
4696
|
+
]), A = o(() => {
|
|
4697
|
+
T(), p(!1);
|
|
4698
|
+
}, [T]);
|
|
3748
4699
|
c(() => {
|
|
3749
4700
|
if (!u) {
|
|
3750
|
-
g(null), v(null),
|
|
4701
|
+
g(null), v(null), b(null);
|
|
3751
4702
|
return;
|
|
3752
4703
|
}
|
|
3753
4704
|
S.current?.measureInWindow((e, t, n, r) => {
|
|
@@ -3759,7 +4710,7 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3759
4710
|
});
|
|
3760
4711
|
});
|
|
3761
4712
|
}, [u]), c(() => {
|
|
3762
|
-
!h || !_ ||
|
|
4713
|
+
!h || !_ || b(Mn(h, _, t));
|
|
3763
4714
|
}, [
|
|
3764
4715
|
h,
|
|
3765
4716
|
_,
|
|
@@ -3781,14 +4732,14 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3781
4732
|
l,
|
|
3782
4733
|
w,
|
|
3783
4734
|
a.durationFast
|
|
3784
|
-
]), c(() =>
|
|
3785
|
-
let
|
|
4735
|
+
]), c(() => T, [T]);
|
|
4736
|
+
let P = (e) => {
|
|
3786
4737
|
let { width: t, height: n } = e.nativeEvent.layout;
|
|
3787
4738
|
v({
|
|
3788
4739
|
width: t,
|
|
3789
4740
|
height: n
|
|
3790
4741
|
});
|
|
3791
|
-
},
|
|
4742
|
+
}, F = s === "dark" ? "#c0bfbc" : "#3d3d3d", ee = s === "dark" ? "rgba(0, 0, 0, 0.8)" : "#fff", I = s === "dark" ? {
|
|
3792
4743
|
shadowOpacity: .4,
|
|
3793
4744
|
shadowRadius: 8,
|
|
3794
4745
|
elevation: 6
|
|
@@ -3796,48 +4747,48 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3796
4747
|
shadowOpacity: .2,
|
|
3797
4748
|
shadowRadius: 8,
|
|
3798
4749
|
elevation: 4
|
|
3799
|
-
},
|
|
4750
|
+
}, L = {
|
|
3800
4751
|
position: "absolute",
|
|
3801
4752
|
width: 0,
|
|
3802
4753
|
height: 0,
|
|
3803
|
-
borderWidth:
|
|
4754
|
+
borderWidth: kn,
|
|
3804
4755
|
borderColor: "transparent"
|
|
3805
|
-
},
|
|
4756
|
+
}, R = (() => {
|
|
3806
4757
|
switch (y?.placement) {
|
|
3807
4758
|
case "top": return {
|
|
3808
|
-
...
|
|
4759
|
+
...L,
|
|
3809
4760
|
top: "100%",
|
|
3810
4761
|
left: "50%",
|
|
3811
4762
|
marginLeft: -5,
|
|
3812
|
-
borderTopColor:
|
|
4763
|
+
borderTopColor: F
|
|
3813
4764
|
};
|
|
3814
4765
|
case "bottom": return {
|
|
3815
|
-
...
|
|
4766
|
+
...L,
|
|
3816
4767
|
bottom: "100%",
|
|
3817
4768
|
left: "50%",
|
|
3818
4769
|
marginLeft: -5,
|
|
3819
|
-
borderBottomColor:
|
|
4770
|
+
borderBottomColor: F
|
|
3820
4771
|
};
|
|
3821
4772
|
case "left": return {
|
|
3822
|
-
...
|
|
4773
|
+
...L,
|
|
3823
4774
|
left: "100%",
|
|
3824
4775
|
top: "50%",
|
|
3825
4776
|
marginTop: -5,
|
|
3826
|
-
borderLeftColor:
|
|
4777
|
+
borderLeftColor: F
|
|
3827
4778
|
};
|
|
3828
4779
|
case "right": return {
|
|
3829
|
-
...
|
|
4780
|
+
...L,
|
|
3830
4781
|
right: "100%",
|
|
3831
4782
|
top: "50%",
|
|
3832
4783
|
marginTop: -5,
|
|
3833
|
-
borderRightColor:
|
|
4784
|
+
borderRightColor: F
|
|
3834
4785
|
};
|
|
3835
4786
|
default: return null;
|
|
3836
4787
|
}
|
|
3837
|
-
})(),
|
|
3838
|
-
return /* @__PURE__ */
|
|
4788
|
+
})(), te = i.props.ref;
|
|
4789
|
+
return /* @__PURE__ */ N(j, { children: [n(i, {
|
|
3839
4790
|
ref: (e) => {
|
|
3840
|
-
S.current = e,
|
|
4791
|
+
S.current = e, An(te, e);
|
|
3841
4792
|
},
|
|
3842
4793
|
delayLongPress: r,
|
|
3843
4794
|
accessibilityHint: i.props.accessibilityHint ?? e,
|
|
@@ -3845,30 +4796,30 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3845
4796
|
D(), i.props.onLongPress?.(e);
|
|
3846
4797
|
},
|
|
3847
4798
|
onPressOut: (e) => {
|
|
3848
|
-
|
|
4799
|
+
A(), i.props.onPressOut?.(e);
|
|
3849
4800
|
},
|
|
3850
4801
|
onHoverIn: (e) => {
|
|
3851
|
-
|
|
4802
|
+
O(), i.props.onHoverIn?.(e);
|
|
3852
4803
|
},
|
|
3853
4804
|
onHoverOut: (e) => {
|
|
3854
|
-
|
|
4805
|
+
A(), i.props.onHoverOut?.(e);
|
|
3855
4806
|
},
|
|
3856
4807
|
onFocus: (e) => {
|
|
3857
|
-
|
|
4808
|
+
O(), i.props.onFocus?.(e);
|
|
3858
4809
|
},
|
|
3859
4810
|
onBlur: (e) => {
|
|
3860
|
-
|
|
4811
|
+
A(), i.props.onBlur?.(e);
|
|
3861
4812
|
}
|
|
3862
|
-
}), /* @__PURE__ */
|
|
4813
|
+
}), /* @__PURE__ */ M(x, {
|
|
3863
4814
|
visible: u,
|
|
3864
4815
|
transparent: !0,
|
|
3865
4816
|
animationType: "none",
|
|
3866
4817
|
statusBarTranslucent: !0,
|
|
3867
|
-
children: /* @__PURE__ */
|
|
4818
|
+
children: /* @__PURE__ */ M(k, {
|
|
3868
4819
|
pointerEvents: "box-none",
|
|
3869
|
-
style:
|
|
3870
|
-
children: /* @__PURE__ */
|
|
3871
|
-
onLayout:
|
|
4820
|
+
style: E.absoluteFill,
|
|
4821
|
+
children: /* @__PURE__ */ N(m.View, {
|
|
4822
|
+
onLayout: P,
|
|
3872
4823
|
accessible: !0,
|
|
3873
4824
|
role: "tooltip",
|
|
3874
4825
|
style: [{
|
|
@@ -3876,14 +4827,14 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3876
4827
|
maxWidth: 240,
|
|
3877
4828
|
paddingVertical: 4,
|
|
3878
4829
|
paddingHorizontal: a.space2,
|
|
3879
|
-
backgroundColor:
|
|
4830
|
+
backgroundColor: F,
|
|
3880
4831
|
borderRadius: a.radiusSm,
|
|
3881
4832
|
shadowColor: "#000",
|
|
3882
4833
|
shadowOffset: {
|
|
3883
4834
|
width: 0,
|
|
3884
4835
|
height: 2
|
|
3885
4836
|
},
|
|
3886
|
-
...
|
|
4837
|
+
...I
|
|
3887
4838
|
}, y ? {
|
|
3888
4839
|
top: y.top,
|
|
3889
4840
|
left: y.left,
|
|
@@ -3893,22 +4844,22 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3893
4844
|
left: -9999,
|
|
3894
4845
|
opacity: 0
|
|
3895
4846
|
}],
|
|
3896
|
-
children: [/* @__PURE__ */
|
|
4847
|
+
children: [/* @__PURE__ */ M(G, {
|
|
3897
4848
|
style: {
|
|
3898
|
-
color:
|
|
4849
|
+
color: ee,
|
|
3899
4850
|
fontSize: a.fontSizeCaption,
|
|
3900
4851
|
fontWeight: String(a.fontWeightNormal),
|
|
3901
4852
|
lineHeight: a.fontSizeCaption * a.lineHeightBody,
|
|
3902
4853
|
textAlign: "center"
|
|
3903
4854
|
},
|
|
3904
4855
|
children: e
|
|
3905
|
-
}),
|
|
4856
|
+
}), R && /* @__PURE__ */ M(k, { style: R })]
|
|
3906
4857
|
})
|
|
3907
4858
|
})
|
|
3908
4859
|
})] });
|
|
3909
|
-
},
|
|
3910
|
-
let a =
|
|
3911
|
-
return /* @__PURE__ */
|
|
4860
|
+
}, Pn = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
|
|
4861
|
+
let a = U(), o = V();
|
|
4862
|
+
return /* @__PURE__ */ N(k, {
|
|
3912
4863
|
ref: i,
|
|
3913
4864
|
accessible: !0,
|
|
3914
4865
|
accessibilityRole: "radiogroup",
|
|
@@ -3920,10 +4871,10 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3920
4871
|
backgroundColor: a.headerbarBgColor
|
|
3921
4872
|
}, n],
|
|
3922
4873
|
...r,
|
|
3923
|
-
children: [/* @__PURE__ */
|
|
4874
|
+
children: [/* @__PURE__ */ M(k, {
|
|
3924
4875
|
pointerEvents: "none",
|
|
3925
|
-
style: [
|
|
3926
|
-
}), /* @__PURE__ */
|
|
4876
|
+
style: [E.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
|
|
4877
|
+
}), /* @__PURE__ */ M(k, {
|
|
3927
4878
|
style: {
|
|
3928
4879
|
flexDirection: "row",
|
|
3929
4880
|
alignItems: "center",
|
|
@@ -3933,9 +4884,9 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3933
4884
|
children: e
|
|
3934
4885
|
})]
|
|
3935
4886
|
});
|
|
3936
|
-
}),
|
|
3937
|
-
let o =
|
|
3938
|
-
return /* @__PURE__ */
|
|
4887
|
+
}), Fn = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
|
|
4888
|
+
let o = U();
|
|
4889
|
+
return /* @__PURE__ */ N(w, {
|
|
3939
4890
|
ref: a,
|
|
3940
4891
|
disabled: r,
|
|
3941
4892
|
accessibilityRole: "radio",
|
|
@@ -3956,10 +4907,10 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3956
4907
|
backgroundColor: n ? o.headerbarBgColor : e ? o.activeOverlay : "transparent"
|
|
3957
4908
|
}),
|
|
3958
4909
|
...i,
|
|
3959
|
-
children: [t && /* @__PURE__ */
|
|
4910
|
+
children: [t && /* @__PURE__ */ M(k, {
|
|
3960
4911
|
style: { flexShrink: 0 },
|
|
3961
4912
|
children: t
|
|
3962
|
-
}), /* @__PURE__ */
|
|
4913
|
+
}), /* @__PURE__ */ M(D, {
|
|
3963
4914
|
style: {
|
|
3964
4915
|
fontFamily: o.fontFamily,
|
|
3965
4916
|
fontSize: o.fontSizeBody,
|
|
@@ -3971,6 +4922,6 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3971
4922
|
});
|
|
3972
4923
|
});
|
|
3973
4924
|
//#endregion
|
|
3974
|
-
export {
|
|
4925
|
+
export { je as ActionRow, qe as AnimatedIcon, et as Avatar, nt as Badge, rt as Banner, ot as BottomSheet, ct as BoxedList, ft as Button, mt as Card, gt as Checkbox, vt as Dialog, yt as Divider, wt as Dropdown, Tt as Expander, B as GnomeContext, De as GnomeProvider, Et as HeaderBar, Ot as Highlight, K as Icon, jt as LevelBar, Mt as Link, Se as NAMED_ACCENT_COLORS, Pt as Overlay, Ft as PathBar, Bt as Popover, Vt as ProgressBar, Wt as RadioButton, Kt as SearchBar, st as Separator, Zt as Sidebar, Yt as SidebarCollapsedContext, X as SidebarFilterContext, Qt as SidebarItem, $t as SidebarSection, en as Skeleton, on as Slider, dn as SpinButton, pn as Spinner, yn as Switch, bn as TabBar, xn as TabItem, Sn as TabPanel, G as Text, wn as TextField, En as Toast, Dn as Toaster, Nn as Tooltip, Pn as ViewSwitcher, Fn as ViewSwitcherItem, Te as applyAccentColor, de as darkRawTokens, se as darkTheme, pe as highContrastDarkRawTokens, le as highContrastDarkTheme, fe as highContrastRawTokens, ce as highContrastTheme, ue as lightRawTokens, oe as lightTheme, Ce as resolveColorScheme, we as resolveContrast, xe as resolveGnomeTheme, be as useAccentColor, ve as useColorScheme, ye as useContrast, _e as useDateTimeFormatter, he as useDir, U as useGnomeTheme, me as useLocale, ge as useNumberFormatter, W as useReducedMotion, V as useResolvedColorScheme, H as useResolvedContrast, Xt as useSidebarCollapsed };
|
|
3975
4926
|
|
|
3976
4927
|
//# sourceMappingURL=index.js.map
|