@gnome-ui/react-native 1.6.0 → 1.7.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 +208 -2
- package/dist/components/Bin/Bin.d.ts +18 -0
- package/dist/components/Bin/index.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +81 -0
- package/dist/components/ColorPicker/ColorSwatch.d.ts +50 -0
- package/dist/components/ColorPicker/index.d.ts +4 -0
- package/dist/components/ComboRow/ComboRow.d.ts +77 -0
- package/dist/components/ComboRow/index.d.ts +2 -0
- package/dist/components/EntryRow/EntryRow.d.ts +77 -0
- package/dist/components/EntryRow/index.d.ts +2 -0
- package/dist/components/PasswordEntryRow/PasswordEntryRow.d.ts +45 -0
- package/dist/components/PasswordEntryRow/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1102 -784
- 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
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
3
|
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { Circle as
|
|
4
|
+
import { Add as P, ApplicationXExecutable as F, AudioXGeneric as I, Check as L, Close as R, Connecting as z, Document as B, Downloading as V, Folder as H, FontXGeneric as ee, ImageXGeneric as te, PackageXGeneric as ne, PanDown as re, PanEnd as U, Recording as ie, Syncing as ae, TextXGeneric as oe, VideoXGeneric as se, ViewConceal as ce, ViewReveal as le, XOfficeDocument as ue, XOfficePresentation as de, XOfficeSpreadsheet as fe } from "@gnome-ui/icons";
|
|
5
|
+
import pe, { Circle as me, G as he, Path as W, Svg as ge, SvgXml as _e } from "react-native-svg";
|
|
6
6
|
//#region src/theme/tokens.generated.ts
|
|
7
|
-
var
|
|
7
|
+
var ve = {
|
|
8
8
|
accentBgColor: "#3584e4",
|
|
9
9
|
accentColor: "#3584e4",
|
|
10
10
|
accentFgColor: "#fff",
|
|
@@ -145,7 +145,7 @@ var me = {
|
|
|
145
145
|
yellow3: "#f6d32d",
|
|
146
146
|
yellow4: "#f5c211",
|
|
147
147
|
yellow5: "#e5a50a"
|
|
148
|
-
},
|
|
148
|
+
}, ye = {
|
|
149
149
|
accentBgColor: "#3584e4",
|
|
150
150
|
accentColor: "#62a0ea",
|
|
151
151
|
accentFgColor: "#fff",
|
|
@@ -286,7 +286,7 @@ var me = {
|
|
|
286
286
|
yellow3: "#f6d32d",
|
|
287
287
|
yellow4: "#f5c211",
|
|
288
288
|
yellow5: "#e5a50a"
|
|
289
|
-
},
|
|
289
|
+
}, be = {
|
|
290
290
|
accentBgColor: "#1a5fb4",
|
|
291
291
|
accentColor: "#1a5fb4",
|
|
292
292
|
accentFgColor: "#fff",
|
|
@@ -427,7 +427,7 @@ var me = {
|
|
|
427
427
|
yellow3: "#f6d32d",
|
|
428
428
|
yellow4: "#f5c211",
|
|
429
429
|
yellow5: "#e5a50a"
|
|
430
|
-
},
|
|
430
|
+
}, xe = {
|
|
431
431
|
accentBgColor: "#62a0ea",
|
|
432
432
|
accentColor: "#99c1f1",
|
|
433
433
|
accentFgColor: "#fff",
|
|
@@ -568,7 +568,7 @@ var me = {
|
|
|
568
568
|
yellow3: "#f6d32d",
|
|
569
569
|
yellow4: "#f5c211",
|
|
570
570
|
yellow5: "#e5a50a"
|
|
571
|
-
},
|
|
571
|
+
}, Se = {
|
|
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 me = {
|
|
|
709
709
|
"--gnome-yellow-3": "#f6d32d",
|
|
710
710
|
"--gnome-yellow-4": "#f5c211",
|
|
711
711
|
"--gnome-yellow-5": "#e5a50a"
|
|
712
|
-
},
|
|
712
|
+
}, Ce = {
|
|
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 me = {
|
|
|
850
850
|
"--gnome-yellow-3": "#f6d32d",
|
|
851
851
|
"--gnome-yellow-4": "#f5c211",
|
|
852
852
|
"--gnome-yellow-5": "#e5a50a"
|
|
853
|
-
},
|
|
853
|
+
}, we = {
|
|
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 me = {
|
|
|
991
991
|
"--gnome-yellow-3": "#f6d32d",
|
|
992
992
|
"--gnome-yellow-4": "#f5c211",
|
|
993
993
|
"--gnome-yellow-5": "#e5a50a"
|
|
994
|
-
},
|
|
994
|
+
}, Te = {
|
|
995
995
|
"--gnome-accent-bg-color": "#62a0ea",
|
|
996
996
|
"--gnome-accent-color": "#99c1f1",
|
|
997
997
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -1142,15 +1142,15 @@ var me = {
|
|
|
1142
1142
|
contrast: "system",
|
|
1143
1143
|
resolvedContrast: "normal",
|
|
1144
1144
|
accentColor: "blue",
|
|
1145
|
-
theme:
|
|
1145
|
+
theme: ve
|
|
1146
1146
|
});
|
|
1147
|
-
function
|
|
1147
|
+
function Ee() {
|
|
1148
1148
|
return s(G).locale;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function De() {
|
|
1151
1151
|
return s(G).dir;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function Oe(e) {
|
|
1154
1154
|
let { locale: t, numberFormat: n } = s(G);
|
|
1155
1155
|
return u(() => new Intl.NumberFormat(t, {
|
|
1156
1156
|
...n,
|
|
@@ -1161,7 +1161,7 @@ function we(e) {
|
|
|
1161
1161
|
e
|
|
1162
1162
|
]);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function ke(e) {
|
|
1165
1165
|
let { locale: t, dateTimeFormat: n } = s(G);
|
|
1166
1166
|
return u(() => new Intl.DateTimeFormat(t, {
|
|
1167
1167
|
...n,
|
|
@@ -1172,19 +1172,19 @@ function Te(e) {
|
|
|
1172
1172
|
e
|
|
1173
1173
|
]);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Ae() {
|
|
1176
1176
|
return s(G).colorScheme;
|
|
1177
1177
|
}
|
|
1178
1178
|
function K() {
|
|
1179
1179
|
return s(G).resolvedColorScheme;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function je() {
|
|
1182
1182
|
return s(G).contrast;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Me() {
|
|
1185
1185
|
return s(G).resolvedContrast;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function Ne() {
|
|
1188
1188
|
return s(G).accentColor;
|
|
1189
1189
|
}
|
|
1190
1190
|
function q() {
|
|
@@ -1192,12 +1192,12 @@ function q() {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
//#endregion
|
|
1194
1194
|
//#region src/theme/resolveTheme.ts
|
|
1195
|
-
function
|
|
1196
|
-
return t === "more" ? e === "dark" ?
|
|
1195
|
+
function Pe({ colorScheme: e, contrast: t = "normal" }) {
|
|
1196
|
+
return t === "more" ? e === "dark" ? xe : be : e === "dark" ? ye : ve;
|
|
1197
1197
|
}
|
|
1198
1198
|
//#endregion
|
|
1199
1199
|
//#region src/GnomeProvider/resolveContext.ts
|
|
1200
|
-
var
|
|
1200
|
+
var Fe = new Set([
|
|
1201
1201
|
"blue",
|
|
1202
1202
|
"green",
|
|
1203
1203
|
"yellow",
|
|
@@ -1206,15 +1206,15 @@ var je = new Set([
|
|
|
1206
1206
|
"purple",
|
|
1207
1207
|
"brown"
|
|
1208
1208
|
]);
|
|
1209
|
-
function
|
|
1209
|
+
function Ie(e, t) {
|
|
1210
1210
|
return e === "system" ? t === "dark" ? "dark" : "light" : e;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Le(e, t) {
|
|
1213
1213
|
return e === "system" ? t ? "more" : "normal" : e;
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Re(e, t, n, r) {
|
|
1216
1216
|
if (t === "blue") return e;
|
|
1217
|
-
let i =
|
|
1217
|
+
let i = Fe.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,7 +1224,7 @@ function Pe(e, t, n, r) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
//#endregion
|
|
1226
1226
|
//#region src/GnomeProvider/GnomeProvider.tsx
|
|
1227
|
-
function
|
|
1227
|
+
function ze() {
|
|
1228
1228
|
let [e, t] = f(!1);
|
|
1229
1229
|
return c(() => {
|
|
1230
1230
|
let e = C.OS === "android" ? p.isHighTextContrastEnabled : C.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
|
|
@@ -1254,8 +1254,8 @@ function J() {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
}, []), e;
|
|
1256
1256
|
}
|
|
1257
|
-
var
|
|
1258
|
-
let c = A(), l =
|
|
1257
|
+
var Be = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
|
|
1258
|
+
let c = A(), l = ze(), d = Ie(i, c), f = Le(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 Ie = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1265
1265
|
contrast: a,
|
|
1266
1266
|
resolvedContrast: f,
|
|
1267
1267
|
accentColor: o,
|
|
1268
|
-
theme: Pe(
|
|
1268
|
+
theme: Re(Pe({
|
|
1269
1269
|
colorScheme: d,
|
|
1270
1270
|
contrast: f
|
|
1271
1271
|
}), o, d, f)
|
|
@@ -1284,7 +1284,7 @@ var Ie = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1284
1284
|
value: m,
|
|
1285
1285
|
children: s
|
|
1286
1286
|
});
|
|
1287
|
-
},
|
|
1287
|
+
}, Ve = new Set([
|
|
1288
1288
|
"large-title",
|
|
1289
1289
|
"title-1",
|
|
1290
1290
|
"title-2",
|
|
@@ -1292,7 +1292,7 @@ var Ie = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1292
1292
|
"title-4",
|
|
1293
1293
|
"heading"
|
|
1294
1294
|
]);
|
|
1295
|
-
function
|
|
1295
|
+
function He(e, t) {
|
|
1296
1296
|
let n = (e) => String(e);
|
|
1297
1297
|
switch (t) {
|
|
1298
1298
|
case "large-title": return {
|
|
@@ -1361,7 +1361,7 @@ function Re(e, t) {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Ue(e, t) {
|
|
1365
1365
|
switch (t) {
|
|
1366
1366
|
case "dim": return {
|
|
1367
1367
|
color: e.windowFgColor,
|
|
@@ -1379,17 +1379,17 @@ var Y = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1379
1379
|
let s = q();
|
|
1380
1380
|
return /* @__PURE__ */ M(D, {
|
|
1381
1381
|
ref: o,
|
|
1382
|
-
accessibilityRole: i ?? (
|
|
1382
|
+
accessibilityRole: i ?? (Ve.has(e) ? "header" : void 0),
|
|
1383
1383
|
style: [
|
|
1384
1384
|
{ fontFamily: s.fontFamily },
|
|
1385
|
-
|
|
1386
|
-
|
|
1385
|
+
He(s, e),
|
|
1386
|
+
Ue(s, t),
|
|
1387
1387
|
n
|
|
1388
1388
|
],
|
|
1389
1389
|
...a,
|
|
1390
1390
|
children: r
|
|
1391
1391
|
});
|
|
1392
|
-
}),
|
|
1392
|
+
}), We = i(function({ title: e, subtitle: t, leading: n, trailing: r, interactive: i = !1, variant: a = "default", style: o, disabled: s, ...c }, l) {
|
|
1393
1393
|
let u = q(), d = a === "property", f = {
|
|
1394
1394
|
flexDirection: "row",
|
|
1395
1395
|
alignItems: "center",
|
|
@@ -1456,12 +1456,12 @@ var Y = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1456
1456
|
...c,
|
|
1457
1457
|
children: p
|
|
1458
1458
|
});
|
|
1459
|
-
}),
|
|
1459
|
+
}), Ge = {
|
|
1460
1460
|
sm: 12,
|
|
1461
1461
|
md: 16,
|
|
1462
1462
|
lg: 20
|
|
1463
1463
|
};
|
|
1464
|
-
function
|
|
1464
|
+
function Ke(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 He(e, t) {
|
|
|
1473
1473
|
default: return e.windowFgColor;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function qe(e) {
|
|
1477
1477
|
return e ? {
|
|
1478
1478
|
accessible: !0,
|
|
1479
1479
|
accessibilityLabel: e,
|
|
@@ -1485,27 +1485,27 @@ function Ue(e) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
//#endregion
|
|
1487
1487
|
//#region src/components/Icon/Icon.tsx
|
|
1488
|
-
function
|
|
1488
|
+
function Je(e) {
|
|
1489
1489
|
return "paths" in e && Array.isArray(e.paths) ? !0 : typeof e.svg == "string" && !("path" in e);
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Ye(e) {
|
|
1492
1492
|
return e === "nonzero" || e === "evenodd" ? e : void 0;
|
|
1493
1493
|
}
|
|
1494
1494
|
var X = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
|
|
1495
|
-
let s = q(), c =
|
|
1495
|
+
let s = q(), c = Ge[t], l = Ke(s, a), u = Je(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = Je(e) ? e.svg : void 0, f = Je(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ M(W, {
|
|
1496
1496
|
d: e.d,
|
|
1497
|
-
fillRule:
|
|
1498
|
-
clipRule:
|
|
1497
|
+
fillRule: Ye(e.fillRule),
|
|
1498
|
+
clipRule: Ye(e.clipRule),
|
|
1499
1499
|
transform: e.transform
|
|
1500
|
-
}, t)) : [/* @__PURE__ */ M(
|
|
1501
|
-
return d ? /* @__PURE__ */ M(
|
|
1500
|
+
}, t)) : [/* @__PURE__ */ M(W, { d: e.path }, 0)], p = qe(i);
|
|
1501
|
+
return d ? /* @__PURE__ */ M(_e, {
|
|
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__ */ M(
|
|
1508
|
+
}) : /* @__PURE__ */ M(ge, {
|
|
1509
1509
|
viewBox: u,
|
|
1510
1510
|
width: n ?? c,
|
|
1511
1511
|
height: r ?? c,
|
|
@@ -1514,8 +1514,8 @@ var X = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, sty
|
|
|
1514
1514
|
...p,
|
|
1515
1515
|
children: f
|
|
1516
1516
|
});
|
|
1517
|
-
},
|
|
1518
|
-
function
|
|
1517
|
+
}, Xe = m.createAnimatedComponent(he), Ze = m.createAnimatedComponent(W), Qe = m.createAnimatedComponent(me);
|
|
1518
|
+
function $e(e) {
|
|
1519
1519
|
let t = d(new m.Value(0)).current;
|
|
1520
1520
|
return c(() => {
|
|
1521
1521
|
let n = m.loop(m.timing(t, {
|
|
@@ -1527,7 +1527,7 @@ function Ye(e) {
|
|
|
1527
1527
|
return n.start(), () => n.stop();
|
|
1528
1528
|
}, [t, e]), t;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function et(e, t) {
|
|
1531
1531
|
let n = d(new m.Value(0)).current;
|
|
1532
1532
|
return c(() => {
|
|
1533
1533
|
let r = m.sequence([m.delay(t), m.loop(m.timing(n, {
|
|
@@ -1543,17 +1543,17 @@ function Xe(e, t) {
|
|
|
1543
1543
|
t
|
|
1544
1544
|
]), n;
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1547
|
-
transform:
|
|
1546
|
+
var tt = ({ fill: e }) => /* @__PURE__ */ M(Xe, {
|
|
1547
|
+
transform: $e(1500).interpolate({
|
|
1548
1548
|
inputRange: [0, 1],
|
|
1549
1549
|
outputRange: ["rotate(0, 8, 8)", "rotate(360, 8, 8)"]
|
|
1550
1550
|
}),
|
|
1551
|
-
children: /* @__PURE__ */ M(
|
|
1551
|
+
children: /* @__PURE__ */ M(W, {
|
|
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"
|
|
1555
1555
|
})
|
|
1556
|
-
}),
|
|
1556
|
+
}), nt = ({ fill: e }) => {
|
|
1557
1557
|
let t = d(new m.Value(1)).current;
|
|
1558
1558
|
return c(() => {
|
|
1559
1559
|
let e = _.inOut(_.ease), n = m.loop(m.sequence([m.timing(t, {
|
|
@@ -1568,13 +1568,13 @@ var Ze = ({ fill: e }) => /* @__PURE__ */ M(Ke, {
|
|
|
1568
1568
|
useNativeDriver: !1
|
|
1569
1569
|
})]));
|
|
1570
1570
|
return n.start(), () => n.stop();
|
|
1571
|
-
}, [t]), /* @__PURE__ */ M(
|
|
1571
|
+
}, [t]), /* @__PURE__ */ M(Ze, {
|
|
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"
|
|
1575
1575
|
});
|
|
1576
|
-
},
|
|
1577
|
-
let t =
|
|
1576
|
+
}, rt = ({ fill: e }) => {
|
|
1577
|
+
let t = $e(1400), n = [
|
|
1578
1578
|
0,
|
|
1579
1579
|
.2,
|
|
1580
1580
|
.5,
|
|
@@ -1602,30 +1602,30 @@ var Ze = ({ fill: e }) => /* @__PURE__ */ M(Ke, {
|
|
|
1602
1602
|
1
|
|
1603
1603
|
]
|
|
1604
1604
|
});
|
|
1605
|
-
return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(
|
|
1605
|
+
return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(W, {
|
|
1606
1606
|
fill: e,
|
|
1607
1607
|
d: "M2 13h12v2H2z"
|
|
1608
|
-
}), /* @__PURE__ */ M(
|
|
1608
|
+
}), /* @__PURE__ */ M(Xe, {
|
|
1609
1609
|
transform: r,
|
|
1610
1610
|
opacity: i,
|
|
1611
|
-
children: /* @__PURE__ */ M(
|
|
1611
|
+
children: /* @__PURE__ */ M(W, {
|
|
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 it(e, t, n) {
|
|
1619
1619
|
return `translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`;
|
|
1620
1620
|
}
|
|
1621
|
-
var
|
|
1622
|
-
let i =
|
|
1621
|
+
var at = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
1622
|
+
let i = et(1200, r), a = [
|
|
1623
1623
|
0,
|
|
1624
1624
|
.2,
|
|
1625
1625
|
.4,
|
|
1626
1626
|
1
|
|
1627
1627
|
];
|
|
1628
|
-
return /* @__PURE__ */ M(
|
|
1628
|
+
return /* @__PURE__ */ M(Qe, {
|
|
1629
1629
|
cx: e,
|
|
1630
1630
|
cy: t,
|
|
1631
1631
|
r: 2,
|
|
@@ -1642,43 +1642,43 @@ var tt = ({ 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
|
+
it(e, t, 1),
|
|
1646
|
+
it(e, t, .7),
|
|
1647
|
+
it(e, t, 1),
|
|
1648
|
+
it(e, t, 1)
|
|
1649
1649
|
]
|
|
1650
1650
|
})
|
|
1651
1651
|
});
|
|
1652
|
-
},
|
|
1653
|
-
[
|
|
1654
|
-
[
|
|
1655
|
-
[
|
|
1656
|
-
[
|
|
1657
|
-
/* @__PURE__ */ M(
|
|
1652
|
+
}, ot = new Map([
|
|
1653
|
+
[ae, tt],
|
|
1654
|
+
[ie, nt],
|
|
1655
|
+
[V, rt],
|
|
1656
|
+
[z, ({ fill: e }) => /* @__PURE__ */ N(j, { children: [
|
|
1657
|
+
/* @__PURE__ */ M(W, {
|
|
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__ */ M(
|
|
1661
|
+
/* @__PURE__ */ M(at, {
|
|
1662
1662
|
cx: 3,
|
|
1663
1663
|
cy: 8,
|
|
1664
1664
|
fill: e,
|
|
1665
1665
|
delay: 0
|
|
1666
1666
|
}),
|
|
1667
|
-
/* @__PURE__ */ M(
|
|
1667
|
+
/* @__PURE__ */ M(at, {
|
|
1668
1668
|
cx: 8,
|
|
1669
1669
|
cy: 8,
|
|
1670
1670
|
fill: e,
|
|
1671
1671
|
delay: 150
|
|
1672
1672
|
}),
|
|
1673
|
-
/* @__PURE__ */ M(
|
|
1673
|
+
/* @__PURE__ */ M(at, {
|
|
1674
1674
|
cx: 13,
|
|
1675
1675
|
cy: 8,
|
|
1676
1676
|
fill: e,
|
|
1677
1677
|
delay: 300
|
|
1678
1678
|
})
|
|
1679
1679
|
] })]
|
|
1680
|
-
]),
|
|
1681
|
-
let s = q(), c = J(), l = t && !c ?
|
|
1680
|
+
]), st = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
|
|
1681
|
+
let s = q(), c = J(), l = t && !c ? ot.get(e) : void 0;
|
|
1682
1682
|
if (!l) return /* @__PURE__ */ M(X, {
|
|
1683
1683
|
icon: e,
|
|
1684
1684
|
size: n,
|
|
@@ -1687,15 +1687,15 @@ var tt = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1687
1687
|
label: a,
|
|
1688
1688
|
color: o
|
|
1689
1689
|
});
|
|
1690
|
-
let u =
|
|
1691
|
-
return /* @__PURE__ */ M(
|
|
1690
|
+
let u = Ge[n], d = Ke(s, o), f = qe(a);
|
|
1691
|
+
return /* @__PURE__ */ M(ge, {
|
|
1692
1692
|
viewBox: e.viewBox,
|
|
1693
1693
|
width: r ?? u,
|
|
1694
1694
|
height: i ?? u,
|
|
1695
1695
|
...f,
|
|
1696
1696
|
children: /* @__PURE__ */ M(l, { fill: d })
|
|
1697
1697
|
});
|
|
1698
|
-
},
|
|
1698
|
+
}, ct = [
|
|
1699
1699
|
"blue",
|
|
1700
1700
|
"green",
|
|
1701
1701
|
"yellow",
|
|
@@ -1705,27 +1705,27 @@ var tt = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1705
1705
|
"brown",
|
|
1706
1706
|
"teal",
|
|
1707
1707
|
"slate"
|
|
1708
|
-
],
|
|
1708
|
+
], lt = {
|
|
1709
1709
|
sm: 24,
|
|
1710
1710
|
md: 32,
|
|
1711
1711
|
lg: 48,
|
|
1712
1712
|
xl: 64
|
|
1713
|
-
},
|
|
1713
|
+
}, ut = {
|
|
1714
1714
|
sm: .5,
|
|
1715
1715
|
md: .6,
|
|
1716
1716
|
lg: 1,
|
|
1717
1717
|
xl: 1.4
|
|
1718
1718
|
};
|
|
1719
|
-
function
|
|
1719
|
+
function dt(e) {
|
|
1720
1720
|
let t = 0;
|
|
1721
1721
|
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
1722
|
-
return
|
|
1722
|
+
return ct[t % ct.length];
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function ft(e) {
|
|
1725
1725
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
1726
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
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function pt(e, t) {
|
|
1729
1729
|
switch (t) {
|
|
1730
1730
|
case "blue": return {
|
|
1731
1731
|
backgroundColor: e.blue3,
|
|
@@ -1765,8 +1765,8 @@ function lt(e, t) {
|
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
var
|
|
1769
|
-
let o = q(), s = K(), c = i ?? (e ?
|
|
1768
|
+
var mt = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a }) => {
|
|
1769
|
+
let o = q(), s = K(), c = i ?? (e ? dt(e) : "blue"), l = ft(e), u = lt[r], { backgroundColor: d, initialsColor: f } = pt(o, c), p = s === "dark" ? "rgba(255, 255, 255, 0.08)" : "rgba(0, 0, 0, 0.08)";
|
|
1770
1770
|
return /* @__PURE__ */ M(k, {
|
|
1771
1771
|
accessible: !0,
|
|
1772
1772
|
role: "img",
|
|
@@ -1798,30 +1798,30 @@ var ut = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1798
1798
|
style: {
|
|
1799
1799
|
fontFamily: o.fontFamily,
|
|
1800
1800
|
fontWeight: String(o.fontWeightSemibold),
|
|
1801
|
-
fontSize: o.fontSizeBody *
|
|
1802
|
-
lineHeight: o.fontSizeBody *
|
|
1801
|
+
fontSize: o.fontSizeBody * ut[r],
|
|
1802
|
+
lineHeight: o.fontSizeBody * ut[r],
|
|
1803
1803
|
color: f
|
|
1804
1804
|
},
|
|
1805
1805
|
children: l
|
|
1806
1806
|
})
|
|
1807
1807
|
});
|
|
1808
|
-
},
|
|
1808
|
+
}, ht = {
|
|
1809
1809
|
sm: 6,
|
|
1810
1810
|
md: 8,
|
|
1811
1811
|
lg: 12,
|
|
1812
1812
|
xl: 16
|
|
1813
|
-
},
|
|
1813
|
+
}, gt = {
|
|
1814
1814
|
sm: 24,
|
|
1815
1815
|
md: 32,
|
|
1816
1816
|
lg: 48,
|
|
1817
1817
|
xl: 64
|
|
1818
|
-
},
|
|
1818
|
+
}, _t = {
|
|
1819
1819
|
sm: 8,
|
|
1820
1820
|
md: 9.6,
|
|
1821
1821
|
lg: 14,
|
|
1822
1822
|
xl: 17.6
|
|
1823
|
-
},
|
|
1824
|
-
let o = q(), s = e.length > t ? e.slice(0, t) : e, c = e.length > t ? e.length - t : 0, l = e.map((e) => e.name).filter(Boolean).join(", "), u = r ?? (l ? c > 0 ? `${l} and ${c} more` : l : "Avatar group"), d =
|
|
1823
|
+
}, vt = ({ avatars: e, max: t = 5, size: n = "md", accessibilityLabel: r, style: i, testID: a }) => {
|
|
1824
|
+
let o = q(), s = e.length > t ? e.slice(0, t) : e, c = e.length > t ? e.length - t : 0, l = e.map((e) => e.name).filter(Boolean).join(", "), u = r ?? (l ? c > 0 ? `${l} and ${c} more` : l : "Avatar group"), d = ht[n];
|
|
1825
1825
|
return /* @__PURE__ */ N(k, {
|
|
1826
1826
|
testID: a,
|
|
1827
1827
|
accessible: !0,
|
|
@@ -1831,7 +1831,7 @@ var ut = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1831
1831
|
flexDirection: "row",
|
|
1832
1832
|
alignItems: "center"
|
|
1833
1833
|
}, i],
|
|
1834
|
-
children: [s.map((e, t) => /* @__PURE__ */ M(
|
|
1834
|
+
children: [s.map((e, t) => /* @__PURE__ */ M(mt, {
|
|
1835
1835
|
name: e.name,
|
|
1836
1836
|
src: e.src,
|
|
1837
1837
|
alt: e.alt ?? e.name,
|
|
@@ -1846,8 +1846,8 @@ var ut = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1846
1846
|
accessible: !0,
|
|
1847
1847
|
accessibilityLabel: `+${c} more`,
|
|
1848
1848
|
style: {
|
|
1849
|
-
width:
|
|
1850
|
-
height:
|
|
1849
|
+
width: gt[n],
|
|
1850
|
+
height: gt[n],
|
|
1851
1851
|
marginStart: -d,
|
|
1852
1852
|
borderRadius: o.radiusPill,
|
|
1853
1853
|
borderWidth: 2,
|
|
@@ -1862,7 +1862,7 @@ var ut = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1862
1862
|
style: {
|
|
1863
1863
|
fontFamily: o.fontFamily,
|
|
1864
1864
|
fontWeight: String(o.fontWeightSemibold),
|
|
1865
|
-
fontSize:
|
|
1865
|
+
fontSize: _t[n],
|
|
1866
1866
|
color: "#fff"
|
|
1867
1867
|
},
|
|
1868
1868
|
children: `+${c}`
|
|
@@ -1872,15 +1872,15 @@ var ut = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1872
1872
|
};
|
|
1873
1873
|
//#endregion
|
|
1874
1874
|
//#region src/components/AvatarRotator/AvatarRotator.tsx
|
|
1875
|
-
function
|
|
1875
|
+
function yt(e, t) {
|
|
1876
1876
|
return t <= 0 ? 0 : (e % t + t) % t;
|
|
1877
1877
|
}
|
|
1878
|
-
var
|
|
1878
|
+
var bt = {
|
|
1879
1879
|
sm: 24,
|
|
1880
1880
|
md: 32,
|
|
1881
1881
|
lg: 48,
|
|
1882
1882
|
xl: 64
|
|
1883
|
-
},
|
|
1883
|
+
}, xt = ({ active: e, duration: t, reducedMotion: n, children: r }) => {
|
|
1884
1884
|
let i = d(new m.Value(+!!e)).current;
|
|
1885
1885
|
return c(() => {
|
|
1886
1886
|
if (n) {
|
|
@@ -1903,12 +1903,12 @@ var gt = {
|
|
|
1903
1903
|
style: [E.absoluteFill, { opacity: i }],
|
|
1904
1904
|
children: r
|
|
1905
1905
|
});
|
|
1906
|
-
},
|
|
1907
|
-
let h = J(), g = t.map((e) => e.trim()).filter(Boolean), _ = l !== void 0, [v, y] = f(u), [b, x] = f(!1), S =
|
|
1906
|
+
}, St = ({ name: e = "", avatars: t = [], alt: n, size: r = "md", color: i, interval: a = 3e3, transitionDuration: o = 240, pauseOnPress: s = !0, activeIndex: l, defaultActiveIndex: u = 0, onIndexChange: d, style: p, testID: m }) => {
|
|
1907
|
+
let h = J(), g = t.map((e) => e.trim()).filter(Boolean), _ = l !== void 0, [v, y] = f(u), [b, x] = f(!1), S = yt(_ ? l : v, g.length);
|
|
1908
1908
|
if (c(() => {
|
|
1909
1909
|
if (g.length <= 1 || a <= 0 || b || h) return;
|
|
1910
1910
|
let e = setInterval(() => {
|
|
1911
|
-
let e =
|
|
1911
|
+
let e = yt(S + 1, g.length);
|
|
1912
1912
|
_ || y(e), d?.(e);
|
|
1913
1913
|
}, a);
|
|
1914
1914
|
return () => clearInterval(e);
|
|
@@ -1920,14 +1920,14 @@ var gt = {
|
|
|
1920
1920
|
d,
|
|
1921
1921
|
h,
|
|
1922
1922
|
g.length
|
|
1923
|
-
]), g.length === 0) return /* @__PURE__ */ M(
|
|
1923
|
+
]), g.length === 0) return /* @__PURE__ */ M(mt, {
|
|
1924
1924
|
name: e,
|
|
1925
1925
|
alt: n,
|
|
1926
1926
|
size: r,
|
|
1927
1927
|
color: i,
|
|
1928
1928
|
style: p
|
|
1929
1929
|
});
|
|
1930
|
-
let C = n ?? (e || void 0) ?? "Avatar", T =
|
|
1930
|
+
let C = n ?? (e || void 0) ?? "Avatar", T = bt[r];
|
|
1931
1931
|
return /* @__PURE__ */ M(w, {
|
|
1932
1932
|
testID: m,
|
|
1933
1933
|
accessible: !0,
|
|
@@ -1941,11 +1941,11 @@ var gt = {
|
|
|
1941
1941
|
borderRadius: T / 2,
|
|
1942
1942
|
overflow: "hidden"
|
|
1943
1943
|
}, p],
|
|
1944
|
-
children: g.map((t, n) => /* @__PURE__ */ M(
|
|
1944
|
+
children: g.map((t, n) => /* @__PURE__ */ M(xt, {
|
|
1945
1945
|
active: n === S,
|
|
1946
1946
|
duration: Math.max(0, o),
|
|
1947
1947
|
reducedMotion: h,
|
|
1948
|
-
children: /* @__PURE__ */ M(
|
|
1948
|
+
children: /* @__PURE__ */ M(mt, {
|
|
1949
1949
|
name: e,
|
|
1950
1950
|
src: t,
|
|
1951
1951
|
size: r
|
|
@@ -1955,7 +1955,7 @@ var gt = {
|
|
|
1955
1955
|
};
|
|
1956
1956
|
//#endregion
|
|
1957
1957
|
//#region src/components/Badge/Badge.tsx
|
|
1958
|
-
function
|
|
1958
|
+
function Ct(e, t, n) {
|
|
1959
1959
|
switch (n) {
|
|
1960
1960
|
case "accent": return {
|
|
1961
1961
|
backgroundColor: e.accentBgColor,
|
|
@@ -1979,8 +1979,8 @@ function yt(e, t, n) {
|
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
|
-
var
|
|
1983
|
-
let a = q(), { backgroundColor: o, color: s } =
|
|
1982
|
+
var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i }) => {
|
|
1983
|
+
let a = q(), { backgroundColor: o, color: s } = Ct(a, K(), e), c = /* @__PURE__ */ M(k, {
|
|
1984
1984
|
testID: "badge-ring",
|
|
1985
1985
|
style: [{
|
|
1986
1986
|
padding: 2,
|
|
@@ -2019,7 +2019,7 @@ var bt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2019
2019
|
style: { alignSelf: "flex-start" },
|
|
2020
2020
|
children: [r, c]
|
|
2021
2021
|
}) : c;
|
|
2022
|
-
},
|
|
2022
|
+
}, Tt = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
|
|
2023
2023
|
let c = q(), l = {
|
|
2024
2024
|
info: {
|
|
2025
2025
|
bg: c.accentBgColor,
|
|
@@ -2111,7 +2111,12 @@ var bt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2111
2111
|
})]
|
|
2112
2112
|
})]
|
|
2113
2113
|
});
|
|
2114
|
-
},
|
|
2114
|
+
}, Et = i(function(e, t) {
|
|
2115
|
+
return /* @__PURE__ */ M(k, {
|
|
2116
|
+
ref: t,
|
|
2117
|
+
...e
|
|
2118
|
+
});
|
|
2119
|
+
}), Dt = m.createAnimatedComponent(w), Ot = 150, kt = ({ open: e, title: t, children: n, onClose: r, closeOnBackdrop: i = !0, style: a, testID: o }) => {
|
|
2115
2120
|
let s = q(), l = J(), [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);
|
|
2116
2121
|
c(() => {
|
|
2117
2122
|
e && _(!0);
|
|
@@ -2169,7 +2174,7 @@ var bt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2169
2174
|
b.setValue(Math.max(0, t.dy));
|
|
2170
2175
|
},
|
|
2171
2176
|
onPanResponderRelease: (e, t) => {
|
|
2172
|
-
T.current = !1, Math.max(0, t.dy) >=
|
|
2177
|
+
T.current = !1, Math.max(0, t.dy) >= Ot ? r?.() : m.timing(b, {
|
|
2173
2178
|
toValue: 0,
|
|
2174
2179
|
duration: s.durationNormal,
|
|
2175
2180
|
useNativeDriver: !0
|
|
@@ -2186,7 +2191,7 @@ var bt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2186
2191
|
animationType: "none",
|
|
2187
2192
|
statusBarTranslucent: !0,
|
|
2188
2193
|
onRequestClose: r,
|
|
2189
|
-
children: /* @__PURE__ */ M(
|
|
2194
|
+
children: /* @__PURE__ */ M(Dt, {
|
|
2190
2195
|
testID: o,
|
|
2191
2196
|
onPress: i ? r : void 0,
|
|
2192
2197
|
accessible: !1,
|
|
@@ -2267,28 +2272,28 @@ var bt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2267
2272
|
})
|
|
2268
2273
|
})
|
|
2269
2274
|
}) : null;
|
|
2270
|
-
},
|
|
2275
|
+
}, At = {
|
|
2271
2276
|
start: "flex-start",
|
|
2272
2277
|
center: "center",
|
|
2273
2278
|
end: "flex-end",
|
|
2274
2279
|
stretch: "stretch",
|
|
2275
2280
|
baseline: "baseline"
|
|
2276
|
-
},
|
|
2281
|
+
}, jt = {
|
|
2277
2282
|
start: "flex-start",
|
|
2278
2283
|
center: "center",
|
|
2279
2284
|
end: "flex-end",
|
|
2280
2285
|
"space-between": "space-between",
|
|
2281
2286
|
"space-around": "space-around",
|
|
2282
2287
|
"space-evenly": "space-evenly"
|
|
2283
|
-
},
|
|
2288
|
+
}, Mt = i(function({ orientation: e = "vertical", spacing: t = 6, align: n, justify: r = "start", padding: i, children: a, style: o, ...s }, c) {
|
|
2284
2289
|
return /* @__PURE__ */ M(k, {
|
|
2285
2290
|
ref: c,
|
|
2286
2291
|
style: [
|
|
2287
2292
|
{
|
|
2288
2293
|
flexDirection: e === "horizontal" ? "row" : "column",
|
|
2289
2294
|
gap: t,
|
|
2290
|
-
alignItems:
|
|
2291
|
-
justifyContent:
|
|
2295
|
+
alignItems: At[n ?? (e === "horizontal" ? "center" : "stretch")],
|
|
2296
|
+
justifyContent: jt[r]
|
|
2292
2297
|
},
|
|
2293
2298
|
i !== void 0 && { padding: i },
|
|
2294
2299
|
o
|
|
@@ -2296,7 +2301,7 @@ var bt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2296
2301
|
...s,
|
|
2297
2302
|
children: a
|
|
2298
2303
|
});
|
|
2299
|
-
}),
|
|
2304
|
+
}), Nt = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
|
|
2300
2305
|
return /* @__PURE__ */ M(k, {
|
|
2301
2306
|
ref: r,
|
|
2302
2307
|
accessible: !1,
|
|
@@ -2317,7 +2322,7 @@ var bt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2317
2322
|
],
|
|
2318
2323
|
...n
|
|
2319
2324
|
});
|
|
2320
|
-
}),
|
|
2325
|
+
}), Pt = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
|
|
2321
2326
|
let o = q(), s = e.toArray(t).filter(Boolean);
|
|
2322
2327
|
return n === "separate" ? /* @__PURE__ */ M(k, {
|
|
2323
2328
|
ref: a,
|
|
@@ -2347,12 +2352,12 @@ var bt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2347
2352
|
overflow: "hidden"
|
|
2348
2353
|
}, r],
|
|
2349
2354
|
...i,
|
|
2350
|
-
children: s.map((e, t) => /* @__PURE__ */ N(k, { children: [t > 0 && /* @__PURE__ */ M(
|
|
2355
|
+
children: s.map((e, t) => /* @__PURE__ */ N(k, { children: [t > 0 && /* @__PURE__ */ M(Nt, { testID: "boxed-list-separator" }), e] }, t))
|
|
2351
2356
|
});
|
|
2352
2357
|
});
|
|
2353
2358
|
//#endregion
|
|
2354
2359
|
//#region src/components/Button/Button.tsx
|
|
2355
|
-
function
|
|
2360
|
+
function Ft(e, t) {
|
|
2356
2361
|
switch (t) {
|
|
2357
2362
|
case "sm": return {
|
|
2358
2363
|
minHeight: 28,
|
|
@@ -2377,14 +2382,14 @@ function At(e, t) {
|
|
|
2377
2382
|
};
|
|
2378
2383
|
}
|
|
2379
2384
|
}
|
|
2380
|
-
function
|
|
2385
|
+
function It(e) {
|
|
2381
2386
|
switch (e) {
|
|
2382
2387
|
case "sm": return 28;
|
|
2383
2388
|
case "lg": return 42;
|
|
2384
2389
|
default: return 34;
|
|
2385
2390
|
}
|
|
2386
2391
|
}
|
|
2387
|
-
function
|
|
2392
|
+
function Lt(e, t, n, r) {
|
|
2388
2393
|
if (r) return {
|
|
2389
2394
|
backgroundColor: n ? "rgba(0, 0, 0, 0.85)" : "rgba(0, 0, 0, 0.65)",
|
|
2390
2395
|
borderColor: "rgba(255, 255, 255, 0.12)",
|
|
@@ -2413,15 +2418,15 @@ function Mt(e, t, n, r) {
|
|
|
2413
2418
|
};
|
|
2414
2419
|
}
|
|
2415
2420
|
}
|
|
2416
|
-
var
|
|
2417
|
-
let f = q(), p =
|
|
2421
|
+
var Rt = 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) {
|
|
2422
|
+
let f = q(), p = Me();
|
|
2418
2423
|
return /* @__PURE__ */ M(w, {
|
|
2419
2424
|
ref: d,
|
|
2420
2425
|
disabled: l,
|
|
2421
2426
|
accessibilityRole: "button",
|
|
2422
2427
|
accessibilityState: { disabled: !!l },
|
|
2423
2428
|
style: ({ pressed: i }) => {
|
|
2424
|
-
let { backgroundColor: a, borderColor: o } =
|
|
2429
|
+
let { backgroundColor: a, borderColor: o } = Lt(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? It(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = Ft(f, t);
|
|
2425
2430
|
return [{
|
|
2426
2431
|
flexDirection: "row",
|
|
2427
2432
|
alignItems: "center",
|
|
@@ -2442,7 +2447,7 @@ var Nt = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
2442
2447
|
},
|
|
2443
2448
|
...u,
|
|
2444
2449
|
children: ({ pressed: n }) => {
|
|
2445
|
-
let { fontSize: s } =
|
|
2450
|
+
let { fontSize: s } = Ft(f, t), { color: l } = Lt(f, e, n, r);
|
|
2446
2451
|
return /* @__PURE__ */ N(j, { children: [
|
|
2447
2452
|
i,
|
|
2448
2453
|
typeof o == "string" ? /* @__PURE__ */ M(D, {
|
|
@@ -2461,7 +2466,7 @@ var Nt = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
2461
2466
|
});
|
|
2462
2467
|
//#endregion
|
|
2463
2468
|
//#region src/components/Card/Card.tsx
|
|
2464
|
-
function
|
|
2469
|
+
function zt(e, t) {
|
|
2465
2470
|
switch (t) {
|
|
2466
2471
|
case "none": return 0;
|
|
2467
2472
|
case "sm": return e.space2;
|
|
@@ -2469,14 +2474,14 @@ function Pt(e, t) {
|
|
|
2469
2474
|
default: return e.space4;
|
|
2470
2475
|
}
|
|
2471
2476
|
}
|
|
2472
|
-
var
|
|
2477
|
+
var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
|
|
2473
2478
|
let s = q(), c = {
|
|
2474
2479
|
backgroundColor: s.cardBgColor,
|
|
2475
2480
|
borderWidth: 1,
|
|
2476
2481
|
borderColor: s.cardShadeColor,
|
|
2477
2482
|
borderRadius: s.radiusLg,
|
|
2478
2483
|
overflow: "hidden",
|
|
2479
|
-
padding:
|
|
2484
|
+
padding: zt(s, t)
|
|
2480
2485
|
};
|
|
2481
2486
|
return e ? /* @__PURE__ */ M(w, {
|
|
2482
2487
|
ref: o,
|
|
@@ -2505,8 +2510,8 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2505
2510
|
...a,
|
|
2506
2511
|
children: r
|
|
2507
2512
|
});
|
|
2508
|
-
}),
|
|
2509
|
-
let s = q(), l = K(), u =
|
|
2513
|
+
}), Vt = 18, Ht = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
|
|
2514
|
+
let s = q(), l = K(), u = Me(), f = e || t, p = d(new m.Value(+!!f)).current, h = d(!0);
|
|
2510
2515
|
c(() => {
|
|
2511
2516
|
if (h.current) {
|
|
2512
2517
|
h.current = !1;
|
|
@@ -2545,8 +2550,8 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2545
2550
|
...a,
|
|
2546
2551
|
children: /* @__PURE__ */ M(m.View, {
|
|
2547
2552
|
style: {
|
|
2548
|
-
width:
|
|
2549
|
-
height:
|
|
2553
|
+
width: Vt,
|
|
2554
|
+
height: Vt,
|
|
2550
2555
|
alignItems: "center",
|
|
2551
2556
|
justifyContent: "center",
|
|
2552
2557
|
borderRadius: s.radiusSm,
|
|
@@ -2572,7 +2577,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2572
2577
|
})
|
|
2573
2578
|
})
|
|
2574
2579
|
});
|
|
2575
|
-
}),
|
|
2580
|
+
}), Ut = ({ label: e, icon: t, onRemove: n, selectable: r = !1, selected: i = !1, onToggle: a, disabled: o = !1, style: s, testID: c }) => {
|
|
2576
2581
|
let l = q(), u = r && !n, d = {
|
|
2577
2582
|
flexDirection: "row",
|
|
2578
2583
|
alignItems: "center",
|
|
@@ -2611,7 +2616,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2611
2616
|
opacity: o ? l.opacityDisabled : 1
|
|
2612
2617
|
},
|
|
2613
2618
|
children: /* @__PURE__ */ M(X, {
|
|
2614
|
-
icon:
|
|
2619
|
+
icon: R,
|
|
2615
2620
|
size: "sm"
|
|
2616
2621
|
})
|
|
2617
2622
|
})
|
|
@@ -2644,23 +2649,23 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2644
2649
|
],
|
|
2645
2650
|
children: p
|
|
2646
2651
|
});
|
|
2647
|
-
},
|
|
2652
|
+
}, Wt = (e) => Math.min(Math.max(e, 0), 1), Gt = i(function({ maximumSize: e = 600, tighteningThreshold: t = 1, children: n, style: r, ...i }, a) {
|
|
2648
2653
|
return /* @__PURE__ */ M(k, {
|
|
2649
2654
|
ref: a,
|
|
2650
2655
|
style: [{
|
|
2651
|
-
width: `${
|
|
2656
|
+
width: `${Wt(t) * 100}%`,
|
|
2652
2657
|
maxWidth: e,
|
|
2653
2658
|
alignSelf: "center"
|
|
2654
2659
|
}, r],
|
|
2655
2660
|
...i,
|
|
2656
2661
|
children: n
|
|
2657
2662
|
});
|
|
2658
|
-
}),
|
|
2663
|
+
}), Kt = 12, Z = 12, qt = 7, Jt = (e, t) => ({
|
|
2659
2664
|
top: e.top - t,
|
|
2660
2665
|
left: e.left - t,
|
|
2661
2666
|
width: e.width + t * 2,
|
|
2662
2667
|
height: e.height + t * 2
|
|
2663
|
-
}),
|
|
2668
|
+
}), Yt = (e, t, n, r) => {
|
|
2664
2669
|
let i = e.left + e.width, a = e.top + e.height, o = e.left + e.width / 2, s = e.top + e.height / 2, c = [...new Set([
|
|
2665
2670
|
r,
|
|
2666
2671
|
{
|
|
@@ -2676,20 +2681,20 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2676
2681
|
])], l = (n) => {
|
|
2677
2682
|
switch (n) {
|
|
2678
2683
|
case "bottom": return {
|
|
2679
|
-
top: a +
|
|
2684
|
+
top: a + Kt,
|
|
2680
2685
|
left: o - t.width / 2
|
|
2681
2686
|
};
|
|
2682
2687
|
case "top": return {
|
|
2683
|
-
top: e.top - t.height -
|
|
2688
|
+
top: e.top - t.height - Kt,
|
|
2684
2689
|
left: o - t.width / 2
|
|
2685
2690
|
};
|
|
2686
2691
|
case "left": return {
|
|
2687
2692
|
top: s - t.height / 2,
|
|
2688
|
-
left: e.left - t.width -
|
|
2693
|
+
left: e.left - t.width - Kt
|
|
2689
2694
|
};
|
|
2690
2695
|
default: return {
|
|
2691
2696
|
top: s - t.height / 2,
|
|
2692
|
-
left: i +
|
|
2697
|
+
left: i + Kt
|
|
2693
2698
|
};
|
|
2694
2699
|
}
|
|
2695
2700
|
};
|
|
@@ -2711,7 +2716,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2711
2716
|
top: r,
|
|
2712
2717
|
left: a,
|
|
2713
2718
|
placement: e,
|
|
2714
|
-
arrowOffset: Math.max(11, Math.min(s, t.width -
|
|
2719
|
+
arrowOffset: Math.max(11, Math.min(s, t.width - qt - 4))
|
|
2715
2720
|
};
|
|
2716
2721
|
}
|
|
2717
2722
|
if (!(i >= Z && i + t.width <= n.width - Z)) continue;
|
|
@@ -2720,17 +2725,17 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2720
2725
|
top: a,
|
|
2721
2726
|
left: i,
|
|
2722
2727
|
placement: e,
|
|
2723
|
-
arrowOffset: Math.max(11, Math.min(c, t.height -
|
|
2728
|
+
arrowOffset: Math.max(11, Math.min(c, t.height - qt - 4))
|
|
2724
2729
|
};
|
|
2725
2730
|
}
|
|
2726
|
-
let u = a +
|
|
2731
|
+
let u = a + Kt, d = o - t.width / 2, f = Math.max(Z, Math.min(u, n.height - t.height - Z)), p = Math.max(Z, Math.min(d, n.width - t.width - Z)), m = o - p;
|
|
2727
2732
|
return {
|
|
2728
2733
|
top: f,
|
|
2729
2734
|
left: p,
|
|
2730
2735
|
placement: "bottom",
|
|
2731
|
-
arrowOffset: Math.max(11, Math.min(m, t.width -
|
|
2736
|
+
arrowOffset: Math.max(11, Math.min(m, t.width - qt - 4))
|
|
2732
2737
|
};
|
|
2733
|
-
},
|
|
2738
|
+
}, Xt = 7, Zt = "rgba(0, 0, 0, 0.55)", Qt = ({ open: e, targetRef: t, title: n, description: r, placement: i = "bottom", spotlight: a = !0, spotlightPadding: o = 8, dismissOnBackdrop: s = !1, step: l, stepCount: u, primaryAction: p, secondaryAction: _, onDismiss: v, style: y, testID: b }) => {
|
|
2734
2739
|
let S = q(), C = J(), [T, D] = f(null), [O, A] = f(null), [P, F] = f(null), I = d(new m.Value(0)).current;
|
|
2735
2740
|
c(() => {
|
|
2736
2741
|
if (!e) {
|
|
@@ -2755,7 +2760,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2755
2760
|
]), c(() => {
|
|
2756
2761
|
if (!T || !O) return;
|
|
2757
2762
|
let { width: e, height: t } = g.get("window");
|
|
2758
|
-
F(
|
|
2763
|
+
F(Yt(T, O, {
|
|
2759
2764
|
width: e,
|
|
2760
2765
|
height: t
|
|
2761
2766
|
}, i));
|
|
@@ -2793,11 +2798,11 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2793
2798
|
});
|
|
2794
2799
|
};
|
|
2795
2800
|
if (!e) return null;
|
|
2796
|
-
let R = T ?
|
|
2801
|
+
let R = T ? Jt(T, o) : null, { width: z } = g.get("window"), B = {
|
|
2797
2802
|
position: "absolute",
|
|
2798
2803
|
width: 0,
|
|
2799
2804
|
height: 0,
|
|
2800
|
-
borderWidth:
|
|
2805
|
+
borderWidth: Xt,
|
|
2801
2806
|
borderColor: "transparent"
|
|
2802
2807
|
}, V = (() => {
|
|
2803
2808
|
if (!P) return null;
|
|
@@ -2805,25 +2810,25 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2805
2810
|
case "top": return {
|
|
2806
2811
|
...B,
|
|
2807
2812
|
bottom: -14,
|
|
2808
|
-
left: P.arrowOffset -
|
|
2813
|
+
left: P.arrowOffset - Xt,
|
|
2809
2814
|
borderTopColor: S.cardBgColor
|
|
2810
2815
|
};
|
|
2811
2816
|
case "bottom": return {
|
|
2812
2817
|
...B,
|
|
2813
2818
|
top: -14,
|
|
2814
|
-
left: P.arrowOffset -
|
|
2819
|
+
left: P.arrowOffset - Xt,
|
|
2815
2820
|
borderBottomColor: S.cardBgColor
|
|
2816
2821
|
};
|
|
2817
2822
|
case "left": return {
|
|
2818
2823
|
...B,
|
|
2819
2824
|
right: -14,
|
|
2820
|
-
top: P.arrowOffset -
|
|
2825
|
+
top: P.arrowOffset - Xt,
|
|
2821
2826
|
borderLeftColor: S.cardBgColor
|
|
2822
2827
|
};
|
|
2823
2828
|
default: return {
|
|
2824
2829
|
...B,
|
|
2825
2830
|
left: -14,
|
|
2826
|
-
top: P.arrowOffset -
|
|
2831
|
+
top: P.arrowOffset - Xt,
|
|
2827
2832
|
borderRightColor: S.cardBgColor
|
|
2828
2833
|
};
|
|
2829
2834
|
}
|
|
@@ -2852,7 +2857,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2852
2857
|
left: 0,
|
|
2853
2858
|
right: 0,
|
|
2854
2859
|
height: Math.max(0, R.top),
|
|
2855
|
-
backgroundColor:
|
|
2860
|
+
backgroundColor: Zt
|
|
2856
2861
|
} }),
|
|
2857
2862
|
/* @__PURE__ */ M(k, { style: {
|
|
2858
2863
|
position: "absolute",
|
|
@@ -2860,7 +2865,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2860
2865
|
left: 0,
|
|
2861
2866
|
right: 0,
|
|
2862
2867
|
bottom: 0,
|
|
2863
|
-
backgroundColor:
|
|
2868
|
+
backgroundColor: Zt
|
|
2864
2869
|
} }),
|
|
2865
2870
|
/* @__PURE__ */ M(k, { style: {
|
|
2866
2871
|
position: "absolute",
|
|
@@ -2868,7 +2873,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2868
2873
|
left: 0,
|
|
2869
2874
|
width: Math.max(0, R.left),
|
|
2870
2875
|
height: R.height,
|
|
2871
|
-
backgroundColor:
|
|
2876
|
+
backgroundColor: Zt
|
|
2872
2877
|
} }),
|
|
2873
2878
|
/* @__PURE__ */ M(k, { style: {
|
|
2874
2879
|
position: "absolute",
|
|
@@ -2876,7 +2881,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2876
2881
|
left: Math.max(0, R.left + R.width),
|
|
2877
2882
|
right: 0,
|
|
2878
2883
|
height: R.height,
|
|
2879
|
-
backgroundColor:
|
|
2884
|
+
backgroundColor: Zt
|
|
2880
2885
|
} }),
|
|
2881
2886
|
/* @__PURE__ */ M(k, {
|
|
2882
2887
|
pointerEvents: "none",
|
|
@@ -2960,12 +2965,12 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2960
2965
|
gap: S.space2,
|
|
2961
2966
|
marginTop: S.space3
|
|
2962
2967
|
},
|
|
2963
|
-
children: [_ && /* @__PURE__ */ M(
|
|
2968
|
+
children: [_ && /* @__PURE__ */ M(Rt, {
|
|
2964
2969
|
variant: "flat",
|
|
2965
2970
|
size: "sm",
|
|
2966
2971
|
onPress: _.onPress,
|
|
2967
2972
|
children: _.label
|
|
2968
|
-
}), p && /* @__PURE__ */ M(
|
|
2973
|
+
}), p && /* @__PURE__ */ M(Rt, {
|
|
2969
2974
|
variant: "suggested",
|
|
2970
2975
|
size: "sm",
|
|
2971
2976
|
onPress: p.onPress,
|
|
@@ -2976,18 +2981,18 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2976
2981
|
})]
|
|
2977
2982
|
})
|
|
2978
2983
|
});
|
|
2979
|
-
},
|
|
2984
|
+
}, $t = {
|
|
2980
2985
|
next: "Next",
|
|
2981
2986
|
back: "Back",
|
|
2982
2987
|
skip: "Skip",
|
|
2983
2988
|
finish: "Done"
|
|
2984
|
-
},
|
|
2989
|
+
}, en = ({ steps: e, open: t, startIndex: n = 0, onFinish: r, onSkip: i, onStepChange: a, placement: o = "bottom", spotlight: s = !0, dismissOnBackdrop: l = !1, labels: u, testID: d }) => {
|
|
2985
2990
|
let [p, m] = f(n);
|
|
2986
2991
|
if (c(() => {
|
|
2987
2992
|
t && m(n);
|
|
2988
2993
|
}, [t, n]), !t || e.length === 0) return null;
|
|
2989
2994
|
let h = Math.min(p, e.length - 1), g = e[h], _ = h === 0, v = h === e.length - 1, y = {
|
|
2990
|
-
|
|
2995
|
+
...$t,
|
|
2991
2996
|
...u
|
|
2992
2997
|
}, b = (e) => {
|
|
2993
2998
|
m(e), a?.(e);
|
|
@@ -3001,7 +3006,7 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3001
3006
|
label: y.back,
|
|
3002
3007
|
onPress: () => b(h - 1)
|
|
3003
3008
|
};
|
|
3004
|
-
return /* @__PURE__ */ M(
|
|
3009
|
+
return /* @__PURE__ */ M(Qt, {
|
|
3005
3010
|
open: t,
|
|
3006
3011
|
targetRef: g.targetRef,
|
|
3007
3012
|
title: g.title,
|
|
@@ -3016,223 +3021,614 @@ var Ft = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3016
3021
|
onDismiss: () => i?.(),
|
|
3017
3022
|
testID: d
|
|
3018
3023
|
});
|
|
3019
|
-
},
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
style: {
|
|
3061
|
-
borderTopWidth: 1,
|
|
3062
|
-
borderTopColor: p.cardShadeColor
|
|
3024
|
+
}, tn = {
|
|
3025
|
+
start: "flex-start",
|
|
3026
|
+
center: "center",
|
|
3027
|
+
end: "flex-end",
|
|
3028
|
+
stretch: "stretch"
|
|
3029
|
+
}, nn = {
|
|
3030
|
+
start: "flex-start",
|
|
3031
|
+
center: "center",
|
|
3032
|
+
end: "flex-end",
|
|
3033
|
+
"space-between": "space-between",
|
|
3034
|
+
"space-around": "space-around",
|
|
3035
|
+
"space-evenly": "space-evenly"
|
|
3036
|
+
}, rn = i(function({ childSpacing: e = 6, lineSpacing: t, justify: n = "start", align: r = "center", wrapReverse: i = !1, children: a, style: o, ...s }, c) {
|
|
3037
|
+
return /* @__PURE__ */ M(k, {
|
|
3038
|
+
ref: c,
|
|
3039
|
+
style: [{
|
|
3040
|
+
flexDirection: "row",
|
|
3041
|
+
flexWrap: i ? "wrap-reverse" : "wrap",
|
|
3042
|
+
columnGap: e,
|
|
3043
|
+
rowGap: t ?? e,
|
|
3044
|
+
justifyContent: nn[n],
|
|
3045
|
+
alignItems: tn[r],
|
|
3046
|
+
alignContent: "stretch"
|
|
3047
|
+
}, o],
|
|
3048
|
+
...s,
|
|
3049
|
+
children: a
|
|
3050
|
+
});
|
|
3051
|
+
}), an = {
|
|
3052
|
+
sm: 22,
|
|
3053
|
+
md: 30,
|
|
3054
|
+
lg: 38
|
|
3055
|
+
}, on = i(function({ color: e, selected: t = !1, size: n = "md", onSelect: r, accessibilityLabel: i, disabled: a = !1, style: o, ...s }, c) {
|
|
3056
|
+
let l = q(), u = K() === "dark", d = an[n], f = u ? "rgba(255, 255, 255, 0.12)" : "rgba(0, 0, 0, 0.15)", p = Math.round(d * .55);
|
|
3057
|
+
return /* @__PURE__ */ M(k, {
|
|
3058
|
+
style: [
|
|
3059
|
+
{
|
|
3060
|
+
padding: 2,
|
|
3061
|
+
borderRadius: l.radiusPill,
|
|
3062
|
+
backgroundColor: t ? e : "transparent",
|
|
3063
|
+
alignSelf: "flex-start",
|
|
3064
|
+
opacity: a ? l.opacityDisabled : 1
|
|
3063
3065
|
},
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
opacity: t.disabled ? p.opacityDisabled : 1
|
|
3078
|
-
}),
|
|
3079
|
-
children: /* @__PURE__ */ M(Y, {
|
|
3080
|
-
variant: "body",
|
|
3081
|
-
style: {
|
|
3082
|
-
textAlign: "center",
|
|
3083
|
-
color: i,
|
|
3084
|
-
fontWeight: r === "suggested" ? String(p.fontWeightSemibold) : void 0
|
|
3085
|
-
},
|
|
3086
|
-
children: t.label
|
|
3087
|
-
})
|
|
3088
|
-
}, b ? t.id : t.label);
|
|
3089
|
-
})
|
|
3090
|
-
});
|
|
3091
|
-
}, D = g === "dark" ? {
|
|
3092
|
-
shadowOpacity: .5,
|
|
3093
|
-
shadowRadius: 32,
|
|
3094
|
-
elevation: 12
|
|
3095
|
-
} : {
|
|
3096
|
-
shadowOpacity: .25,
|
|
3097
|
-
shadowRadius: 32,
|
|
3098
|
-
elevation: 8
|
|
3099
|
-
};
|
|
3100
|
-
return /* @__PURE__ */ M(x, {
|
|
3101
|
-
visible: e,
|
|
3102
|
-
transparent: !0,
|
|
3103
|
-
animationType: "none",
|
|
3104
|
-
statusBarTranslucent: !0,
|
|
3105
|
-
onRequestClose: C,
|
|
3106
|
-
children: /* @__PURE__ */ M(Xt, {
|
|
3107
|
-
testID: f,
|
|
3108
|
-
onPress: T,
|
|
3066
|
+
t ? { transform: [{ scale: 1.05 }] } : null,
|
|
3067
|
+
o
|
|
3068
|
+
],
|
|
3069
|
+
children: /* @__PURE__ */ M(w, {
|
|
3070
|
+
ref: c,
|
|
3071
|
+
disabled: a,
|
|
3072
|
+
onPress: () => r?.(e),
|
|
3073
|
+
accessibilityRole: "radio",
|
|
3074
|
+
accessibilityState: {
|
|
3075
|
+
checked: t,
|
|
3076
|
+
disabled: a
|
|
3077
|
+
},
|
|
3078
|
+
accessibilityLabel: i ?? e,
|
|
3109
3079
|
style: {
|
|
3110
|
-
|
|
3080
|
+
width: d,
|
|
3081
|
+
height: d,
|
|
3082
|
+
borderRadius: l.radiusPill,
|
|
3111
3083
|
alignItems: "center",
|
|
3112
3084
|
justifyContent: "center",
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3085
|
+
backgroundColor: e,
|
|
3086
|
+
borderWidth: t ? 2 : 1,
|
|
3087
|
+
borderColor: t ? "rgba(255, 255, 255, 0.9)" : f
|
|
3088
|
+
},
|
|
3089
|
+
...s,
|
|
3090
|
+
children: t ? /* @__PURE__ */ N(pe, {
|
|
3091
|
+
width: p,
|
|
3092
|
+
height: p,
|
|
3093
|
+
viewBox: "0 0 16 16",
|
|
3094
|
+
children: [/* @__PURE__ */ M(W, {
|
|
3095
|
+
d: "M3 8l3.5 3.5L13 5",
|
|
3096
|
+
stroke: "rgba(0, 0, 0, 0.35)",
|
|
3097
|
+
strokeWidth: 2,
|
|
3098
|
+
strokeLinecap: "round",
|
|
3099
|
+
strokeLinejoin: "round",
|
|
3100
|
+
fill: "none",
|
|
3101
|
+
translateY: 1
|
|
3102
|
+
}), /* @__PURE__ */ M(W, {
|
|
3103
|
+
d: "M3 8l3.5 3.5L13 5",
|
|
3104
|
+
stroke: "white",
|
|
3105
|
+
strokeWidth: 2,
|
|
3106
|
+
strokeLinecap: "round",
|
|
3107
|
+
strokeLinejoin: "round",
|
|
3108
|
+
fill: "none"
|
|
3109
|
+
})]
|
|
3110
|
+
}) : null
|
|
3111
|
+
})
|
|
3112
|
+
});
|
|
3113
|
+
}), sn = [
|
|
3114
|
+
{
|
|
3115
|
+
value: "#3584e4",
|
|
3116
|
+
label: "Blue"
|
|
3117
|
+
},
|
|
3118
|
+
{
|
|
3119
|
+
value: "#2ec27e",
|
|
3120
|
+
label: "Green"
|
|
3121
|
+
},
|
|
3122
|
+
{
|
|
3123
|
+
value: "#f6d32d",
|
|
3124
|
+
label: "Yellow"
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
value: "#ff7800",
|
|
3128
|
+
label: "Orange"
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
value: "#e01b24",
|
|
3132
|
+
label: "Red"
|
|
3133
|
+
},
|
|
3134
|
+
{
|
|
3135
|
+
value: "#9141ac",
|
|
3136
|
+
label: "Purple"
|
|
3137
|
+
},
|
|
3138
|
+
{
|
|
3139
|
+
value: "#986a44",
|
|
3140
|
+
label: "Brown"
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
value: "#2190a4",
|
|
3144
|
+
label: "Teal"
|
|
3145
|
+
},
|
|
3146
|
+
{
|
|
3147
|
+
value: "#5e5c64",
|
|
3148
|
+
label: "Slate"
|
|
3149
|
+
}
|
|
3150
|
+
], cn = ({ value: e, onChange: t, colors: n = sn, allowCustom: r = !1, onRequestCustom: i, size: a = "md", accessibilityLabel: o = "Color", disabled: s = !1, style: c, testID: l }) => {
|
|
3151
|
+
let u = q(), d = K() === "dark", f = an[a], p = e !== void 0 && !n.some((t) => t.value === e);
|
|
3152
|
+
return /* @__PURE__ */ N(rn, {
|
|
3153
|
+
testID: l,
|
|
3154
|
+
accessibilityRole: "radiogroup",
|
|
3155
|
+
accessibilityLabel: o,
|
|
3156
|
+
childSpacing: 8,
|
|
3157
|
+
align: "center",
|
|
3158
|
+
style: c,
|
|
3159
|
+
children: [n.map((n) => /* @__PURE__ */ M(on, {
|
|
3160
|
+
color: n.value,
|
|
3161
|
+
size: a,
|
|
3162
|
+
selected: n.value === e,
|
|
3163
|
+
disabled: s,
|
|
3164
|
+
onSelect: t,
|
|
3165
|
+
accessibilityLabel: n.label ?? n.value
|
|
3166
|
+
}, n.value)), r ? /* @__PURE__ */ N(j, { children: [p && e ? /* @__PURE__ */ M(on, {
|
|
3167
|
+
color: e,
|
|
3168
|
+
size: a,
|
|
3169
|
+
selected: !0,
|
|
3170
|
+
disabled: s,
|
|
3171
|
+
onSelect: i,
|
|
3172
|
+
accessibilityLabel: "Custom color"
|
|
3173
|
+
}) : null, /* @__PURE__ */ M(k, {
|
|
3174
|
+
style: {
|
|
3175
|
+
padding: 2,
|
|
3176
|
+
alignSelf: "flex-start"
|
|
3116
3177
|
},
|
|
3117
3178
|
children: /* @__PURE__ */ M(w, {
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
}
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
transform: [{ translateY: y.interpolate({
|
|
3140
|
-
inputRange: [0, 1],
|
|
3141
|
-
outputRange: [-8, 0]
|
|
3142
|
-
}) }, { scale: y.interpolate({
|
|
3143
|
-
inputRange: [0, 1],
|
|
3144
|
-
outputRange: [.92, 1]
|
|
3145
|
-
}) }]
|
|
3146
|
-
}, u],
|
|
3147
|
-
children: [
|
|
3148
|
-
t && /* @__PURE__ */ M(Y, {
|
|
3149
|
-
variant: "title-4",
|
|
3150
|
-
style: {
|
|
3151
|
-
padding: p.space4,
|
|
3152
|
-
paddingBottom: n ? 0 : p.space4,
|
|
3153
|
-
textAlign: "center",
|
|
3154
|
-
fontWeight: String(p.fontWeightBold)
|
|
3155
|
-
},
|
|
3156
|
-
children: t
|
|
3157
|
-
}),
|
|
3158
|
-
n && /* @__PURE__ */ M(k, {
|
|
3159
|
-
style: {
|
|
3160
|
-
paddingVertical: p.space2,
|
|
3161
|
-
paddingHorizontal: p.space4
|
|
3162
|
-
},
|
|
3163
|
-
children: typeof n == "string" ? /* @__PURE__ */ M(Y, {
|
|
3164
|
-
variant: "body",
|
|
3165
|
-
style: {
|
|
3166
|
-
textAlign: "center",
|
|
3167
|
-
opacity: p.opacityDim
|
|
3168
|
-
},
|
|
3169
|
-
children: n
|
|
3170
|
-
}) : n
|
|
3171
|
-
}),
|
|
3172
|
-
E()
|
|
3173
|
-
]
|
|
3179
|
+
disabled: s,
|
|
3180
|
+
onPress: i,
|
|
3181
|
+
accessibilityRole: "button",
|
|
3182
|
+
accessibilityLabel: "Choose custom color",
|
|
3183
|
+
accessibilityState: { disabled: s },
|
|
3184
|
+
style: ({ pressed: e }) => ({
|
|
3185
|
+
width: f,
|
|
3186
|
+
height: f,
|
|
3187
|
+
borderRadius: u.radiusPill,
|
|
3188
|
+
alignItems: "center",
|
|
3189
|
+
justifyContent: "center",
|
|
3190
|
+
borderWidth: 1.5,
|
|
3191
|
+
borderStyle: "dashed",
|
|
3192
|
+
borderColor: d ? "rgba(255, 255, 255, 0.25)" : u.cardShadeColor,
|
|
3193
|
+
backgroundColor: e && !s ? u.activeOverlay : u.cardBgColor,
|
|
3194
|
+
opacity: s ? u.opacityDisabled : 1
|
|
3195
|
+
}),
|
|
3196
|
+
children: /* @__PURE__ */ M(X, {
|
|
3197
|
+
icon: P,
|
|
3198
|
+
width: Math.round(f * .5),
|
|
3199
|
+
height: Math.round(f * .5)
|
|
3174
3200
|
})
|
|
3175
3201
|
})
|
|
3176
|
-
})
|
|
3177
|
-
});
|
|
3178
|
-
}, Qt = ({ children: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
3179
|
-
let i = q(), a = !!e;
|
|
3180
|
-
return /* @__PURE__ */ N(k, {
|
|
3181
|
-
testID: r,
|
|
3182
|
-
accessible: !0,
|
|
3183
|
-
role: "separator",
|
|
3184
|
-
accessibilityLabel: t ?? (typeof e == "string" ? e : void 0),
|
|
3185
|
-
style: [{
|
|
3186
|
-
flexDirection: "row",
|
|
3187
|
-
alignItems: "center",
|
|
3188
|
-
width: "100%",
|
|
3189
|
-
gap: i.space2
|
|
3190
|
-
}, n],
|
|
3191
|
-
children: [/* @__PURE__ */ M(k, { style: {
|
|
3192
|
-
flex: 1,
|
|
3193
|
-
height: 1,
|
|
3194
|
-
backgroundColor: i.cardShadeColor
|
|
3195
|
-
} }), a && /* @__PURE__ */ N(j, { children: [typeof e == "string" ? /* @__PURE__ */ M(Y, {
|
|
3196
|
-
variant: "caption",
|
|
3197
|
-
color: "dim",
|
|
3198
|
-
children: e
|
|
3199
|
-
}) : e, /* @__PURE__ */ M(k, { style: {
|
|
3200
|
-
flex: 1,
|
|
3201
|
-
height: 1,
|
|
3202
|
-
backgroundColor: i.cardShadeColor
|
|
3203
|
-
} })] })]
|
|
3202
|
+
})] }) : null]
|
|
3204
3203
|
});
|
|
3205
|
-
},
|
|
3206
|
-
function
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3204
|
+
}, ln = 4, un = 8, dn = 280;
|
|
3205
|
+
function fn(e, t) {
|
|
3206
|
+
let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - ln : e.y + e.height + ln;
|
|
3207
|
+
return {
|
|
3208
|
+
top: Math.max(un, Math.min(i, n - t - un)),
|
|
3209
|
+
left: e.x,
|
|
3210
|
+
width: e.width,
|
|
3211
|
+
flipUp: r
|
|
3212
|
+
};
|
|
3213
|
+
}
|
|
3214
|
+
var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
|
|
3215
|
+
let l = q(), u = J(), [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 = () => {
|
|
3216
|
+
a || h(!0);
|
|
3217
|
+
}, A = () => h(!1), j = (e) => {
|
|
3218
|
+
e.disabled || (n?.(e.value), A());
|
|
3219
|
+
};
|
|
3220
|
+
return c(() => {
|
|
3221
|
+
if (!p) {
|
|
3222
|
+
_(null), y(null), S(null);
|
|
3223
|
+
return;
|
|
3224
|
+
}
|
|
3225
|
+
C.current?.measureInWindow((e, t, n, r) => {
|
|
3226
|
+
_({
|
|
3227
|
+
x: e,
|
|
3228
|
+
y: t,
|
|
3229
|
+
width: n,
|
|
3230
|
+
height: r
|
|
3231
|
+
});
|
|
3232
|
+
});
|
|
3233
|
+
}, [p]), c(() => {
|
|
3234
|
+
g === null || v === null || S(fn(g, v));
|
|
3235
|
+
}, [g, v]), c(() => {
|
|
3236
|
+
if (b) {
|
|
3237
|
+
if (u) {
|
|
3238
|
+
E.setValue(1);
|
|
3239
|
+
return;
|
|
3240
|
+
}
|
|
3241
|
+
E.setValue(0), m.timing(E, {
|
|
3242
|
+
toValue: 1,
|
|
3243
|
+
duration: l.durationFast,
|
|
3244
|
+
useNativeDriver: !0
|
|
3245
|
+
}).start();
|
|
3246
|
+
}
|
|
3247
|
+
}, [
|
|
3248
|
+
b,
|
|
3249
|
+
u,
|
|
3250
|
+
E,
|
|
3251
|
+
l.durationFast
|
|
3252
|
+
]), /* @__PURE__ */ N(k, {
|
|
3253
|
+
style: o,
|
|
3254
|
+
children: [/* @__PURE__ */ N(w, {
|
|
3255
|
+
ref: C,
|
|
3256
|
+
testID: s,
|
|
3257
|
+
role: "combobox",
|
|
3258
|
+
accessibilityLabel: i,
|
|
3259
|
+
accessibilityState: {
|
|
3260
|
+
expanded: p,
|
|
3261
|
+
disabled: !!a
|
|
3262
|
+
},
|
|
3263
|
+
disabled: a,
|
|
3264
|
+
onPress: () => p ? A() : O(),
|
|
3265
|
+
style: ({ pressed: e }) => ({
|
|
3266
|
+
flexDirection: "row",
|
|
3267
|
+
alignItems: "center",
|
|
3268
|
+
justifyContent: "space-between",
|
|
3269
|
+
gap: l.space1,
|
|
3270
|
+
minHeight: 36,
|
|
3271
|
+
minWidth: 160,
|
|
3272
|
+
paddingVertical: 7,
|
|
3273
|
+
paddingHorizontal: l.space2,
|
|
3274
|
+
backgroundColor: e ? l.activeOverlay : l.cardBgColor,
|
|
3275
|
+
borderWidth: 1,
|
|
3276
|
+
borderColor: p ? l.accentColor : l.cardShadeColor,
|
|
3277
|
+
borderRadius: l.radiusMd,
|
|
3278
|
+
opacity: a ? l.opacityDisabled : 1
|
|
3279
|
+
}),
|
|
3280
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
3281
|
+
numberOfLines: 1,
|
|
3282
|
+
style: {
|
|
3283
|
+
flex: 1,
|
|
3284
|
+
fontSize: l.fontSizeBody,
|
|
3285
|
+
color: l.windowFgColor,
|
|
3286
|
+
opacity: D ? 1 : l.opacityDim
|
|
3287
|
+
},
|
|
3288
|
+
children: D?.label ?? r
|
|
3289
|
+
}), /* @__PURE__ */ M(X, {
|
|
3290
|
+
icon: re,
|
|
3291
|
+
size: "md",
|
|
3292
|
+
color: "default",
|
|
3293
|
+
style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
|
|
3294
|
+
})]
|
|
3295
|
+
}), /* @__PURE__ */ M(x, {
|
|
3296
|
+
visible: p,
|
|
3297
|
+
transparent: !0,
|
|
3298
|
+
animationType: "none",
|
|
3299
|
+
statusBarTranslucent: !0,
|
|
3300
|
+
children: /* @__PURE__ */ M(w, {
|
|
3301
|
+
onPress: A,
|
|
3302
|
+
accessible: !1,
|
|
3303
|
+
style: { flex: 1 },
|
|
3304
|
+
testID: s ? `${s}-backdrop` : void 0,
|
|
3305
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
3306
|
+
onLayout: (e) => {
|
|
3307
|
+
y(Math.min(e.nativeEvent.layout.height, dn));
|
|
3308
|
+
},
|
|
3309
|
+
role: "list",
|
|
3310
|
+
accessible: !0,
|
|
3311
|
+
style: [{
|
|
3312
|
+
position: "absolute",
|
|
3313
|
+
maxHeight: dn,
|
|
3314
|
+
backgroundColor: l.popoverBgColor,
|
|
3315
|
+
borderWidth: 1,
|
|
3316
|
+
borderColor: l.cardShadeColor,
|
|
3317
|
+
borderRadius: l.radiusMd,
|
|
3318
|
+
paddingVertical: 4,
|
|
3319
|
+
shadowColor: "#000",
|
|
3320
|
+
shadowOffset: {
|
|
3321
|
+
width: 0,
|
|
3322
|
+
height: 4
|
|
3323
|
+
},
|
|
3324
|
+
shadowOpacity: .15,
|
|
3325
|
+
shadowRadius: 12,
|
|
3326
|
+
elevation: 6
|
|
3327
|
+
}, b ? {
|
|
3328
|
+
top: b.top,
|
|
3329
|
+
left: b.left,
|
|
3330
|
+
width: b.width,
|
|
3331
|
+
opacity: E
|
|
3332
|
+
} : {
|
|
3333
|
+
top: -9999,
|
|
3334
|
+
left: -9999,
|
|
3335
|
+
width: 200,
|
|
3336
|
+
opacity: 0
|
|
3337
|
+
}],
|
|
3338
|
+
children: /* @__PURE__ */ M(T, {
|
|
3339
|
+
bounces: !1,
|
|
3340
|
+
children: e.map((e) => {
|
|
3341
|
+
let n = e.value === t;
|
|
3342
|
+
return /* @__PURE__ */ N(w, {
|
|
3343
|
+
role: "option",
|
|
3344
|
+
accessibilityState: {
|
|
3345
|
+
selected: n,
|
|
3346
|
+
disabled: !!e.disabled
|
|
3347
|
+
},
|
|
3348
|
+
disabled: e.disabled,
|
|
3349
|
+
onPress: () => j(e),
|
|
3350
|
+
style: ({ pressed: t }) => ({
|
|
3351
|
+
flexDirection: "row",
|
|
3352
|
+
alignItems: "center",
|
|
3353
|
+
gap: l.space2,
|
|
3354
|
+
minHeight: 40,
|
|
3355
|
+
paddingVertical: 8,
|
|
3356
|
+
paddingHorizontal: l.space2,
|
|
3357
|
+
backgroundColor: t ? l.activeOverlay : "transparent",
|
|
3358
|
+
opacity: e.disabled ? l.opacityDisabled : 1
|
|
3359
|
+
}),
|
|
3360
|
+
children: [/* @__PURE__ */ N(k, {
|
|
3361
|
+
style: {
|
|
3362
|
+
flex: 1,
|
|
3363
|
+
gap: 1
|
|
3364
|
+
},
|
|
3365
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
3366
|
+
numberOfLines: 1,
|
|
3367
|
+
style: {
|
|
3368
|
+
fontSize: l.fontSizeBody,
|
|
3369
|
+
color: l.windowFgColor,
|
|
3370
|
+
fontWeight: n ? String(l.fontWeightSemibold) : void 0
|
|
3371
|
+
},
|
|
3372
|
+
children: e.label
|
|
3373
|
+
}), e.description && /* @__PURE__ */ M(Y, {
|
|
3374
|
+
numberOfLines: 1,
|
|
3375
|
+
style: {
|
|
3376
|
+
fontSize: l.fontSizeCaption,
|
|
3377
|
+
color: l.windowFgColor,
|
|
3378
|
+
opacity: l.opacityDim
|
|
3379
|
+
},
|
|
3380
|
+
children: e.description
|
|
3381
|
+
})]
|
|
3382
|
+
}), n && /* @__PURE__ */ M(X, {
|
|
3383
|
+
icon: L,
|
|
3384
|
+
size: "md",
|
|
3385
|
+
color: "blue"
|
|
3386
|
+
})]
|
|
3387
|
+
}, e.value);
|
|
3388
|
+
})
|
|
3389
|
+
})
|
|
3390
|
+
})
|
|
3391
|
+
})
|
|
3392
|
+
})]
|
|
3393
|
+
});
|
|
3394
|
+
}, mn = 120, hn = ({ title: e, subtitle: t, leading: n, options: r, value: i, defaultValue: a, onValueChange: o, placeholder: s = "—", accessibilityLabel: c, disabled: l = !1, style: u, testID: d }) => {
|
|
3395
|
+
let p = q(), m = i !== void 0, [h, g] = f(a), _ = m ? i : h;
|
|
3396
|
+
return /* @__PURE__ */ M(We, {
|
|
3397
|
+
testID: d,
|
|
3398
|
+
title: e,
|
|
3399
|
+
subtitle: t,
|
|
3400
|
+
leading: n,
|
|
3401
|
+
disabled: l,
|
|
3402
|
+
style: [l ? { opacity: p.opacityDisabled } : null, u],
|
|
3403
|
+
trailing: /* @__PURE__ */ M(pn, {
|
|
3404
|
+
options: r,
|
|
3405
|
+
value: _,
|
|
3406
|
+
placeholder: s,
|
|
3407
|
+
accessibilityLabel: c ?? e,
|
|
3408
|
+
disabled: l,
|
|
3409
|
+
onChange: (e) => {
|
|
3410
|
+
m || g(e), o?.(e);
|
|
3411
|
+
},
|
|
3412
|
+
style: { minWidth: mn }
|
|
3413
|
+
})
|
|
3414
|
+
});
|
|
3415
|
+
}, gn = m.createAnimatedComponent(w), _n = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
|
|
3416
|
+
let p = q(), g = K(), v = J(), y = d(new m.Value(+!!v)).current, b = !!s, S = () => {
|
|
3417
|
+
let e = s?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
3418
|
+
e && l?.(e.id);
|
|
3419
|
+
}, C = () => {
|
|
3420
|
+
b ? S() : i?.();
|
|
3421
|
+
}, T = b ? S : a ? i : void 0;
|
|
3422
|
+
c(() => {
|
|
3423
|
+
if (!e) return;
|
|
3424
|
+
if (v) {
|
|
3425
|
+
y.setValue(1);
|
|
3426
|
+
return;
|
|
3427
|
+
}
|
|
3428
|
+
y.setValue(0);
|
|
3429
|
+
let [t, n, r, i] = p.easingDefault;
|
|
3430
|
+
m.timing(y, {
|
|
3431
|
+
toValue: 1,
|
|
3432
|
+
duration: p.durationNormal,
|
|
3433
|
+
easing: _.bezier(t, n, r, i),
|
|
3434
|
+
useNativeDriver: !0
|
|
3435
|
+
}).start();
|
|
3436
|
+
}, [
|
|
3437
|
+
e,
|
|
3438
|
+
v,
|
|
3439
|
+
y,
|
|
3440
|
+
p.durationNormal,
|
|
3441
|
+
p.easingDefault
|
|
3442
|
+
]), c(() => {
|
|
3443
|
+
if (!e) return;
|
|
3444
|
+
let t = h.addEventListener("hardwareBackPress", () => (C(), !0));
|
|
3445
|
+
return () => t.remove();
|
|
3446
|
+
}, [
|
|
3447
|
+
e,
|
|
3448
|
+
b,
|
|
3449
|
+
s,
|
|
3450
|
+
l,
|
|
3451
|
+
i
|
|
3452
|
+
]);
|
|
3453
|
+
let E = () => {
|
|
3454
|
+
let e = b && s ? s : r;
|
|
3455
|
+
return e.length === 0 ? null : /* @__PURE__ */ M(k, {
|
|
3456
|
+
style: {
|
|
3457
|
+
borderTopWidth: 1,
|
|
3458
|
+
borderTopColor: p.cardShadeColor
|
|
3459
|
+
},
|
|
3460
|
+
children: e.map((t, n) => {
|
|
3461
|
+
let r = t.variant ?? "default", i = r === "destructive" ? p.destructiveColor : p.accentColor, a = b ? () => l?.(t.id) : t.onPress;
|
|
3462
|
+
return /* @__PURE__ */ M(w, {
|
|
3463
|
+
accessibilityRole: "button",
|
|
3464
|
+
accessibilityState: { disabled: t.disabled },
|
|
3465
|
+
disabled: t.disabled,
|
|
3466
|
+
onPress: a,
|
|
3467
|
+
style: ({ pressed: r }) => ({
|
|
3468
|
+
paddingVertical: 14,
|
|
3469
|
+
paddingHorizontal: p.space4,
|
|
3470
|
+
borderBottomWidth: +(n < e.length - 1),
|
|
3471
|
+
borderBottomColor: p.cardShadeColor,
|
|
3472
|
+
backgroundColor: r ? p.activeOverlay : "transparent",
|
|
3473
|
+
opacity: t.disabled ? p.opacityDisabled : 1
|
|
3474
|
+
}),
|
|
3475
|
+
children: /* @__PURE__ */ M(Y, {
|
|
3476
|
+
variant: "body",
|
|
3477
|
+
style: {
|
|
3478
|
+
textAlign: "center",
|
|
3479
|
+
color: i,
|
|
3480
|
+
fontWeight: r === "suggested" ? String(p.fontWeightSemibold) : void 0
|
|
3481
|
+
},
|
|
3482
|
+
children: t.label
|
|
3483
|
+
})
|
|
3484
|
+
}, b ? t.id : t.label);
|
|
3485
|
+
})
|
|
3486
|
+
});
|
|
3487
|
+
}, D = g === "dark" ? {
|
|
3488
|
+
shadowOpacity: .5,
|
|
3489
|
+
shadowRadius: 32,
|
|
3490
|
+
elevation: 12
|
|
3491
|
+
} : {
|
|
3492
|
+
shadowOpacity: .25,
|
|
3493
|
+
shadowRadius: 32,
|
|
3494
|
+
elevation: 8
|
|
3495
|
+
};
|
|
3496
|
+
return /* @__PURE__ */ M(x, {
|
|
3497
|
+
visible: e,
|
|
3498
|
+
transparent: !0,
|
|
3499
|
+
animationType: "none",
|
|
3500
|
+
statusBarTranslucent: !0,
|
|
3501
|
+
onRequestClose: C,
|
|
3502
|
+
children: /* @__PURE__ */ M(gn, {
|
|
3503
|
+
testID: f,
|
|
3504
|
+
onPress: T,
|
|
3505
|
+
style: {
|
|
3506
|
+
flex: 1,
|
|
3507
|
+
alignItems: "center",
|
|
3508
|
+
justifyContent: "center",
|
|
3509
|
+
paddingHorizontal: 24,
|
|
3510
|
+
backgroundColor: p.dialogBackdropColor,
|
|
3511
|
+
opacity: y
|
|
3512
|
+
},
|
|
3513
|
+
children: /* @__PURE__ */ M(w, {
|
|
3514
|
+
onPress: () => {},
|
|
3515
|
+
accessible: !1,
|
|
3516
|
+
style: {
|
|
3517
|
+
width: "100%",
|
|
3518
|
+
maxWidth: 480
|
|
3519
|
+
},
|
|
3520
|
+
children: /* @__PURE__ */ N(m.View, {
|
|
3521
|
+
accessible: !0,
|
|
3522
|
+
role: o,
|
|
3523
|
+
accessibilityViewIsModal: !0,
|
|
3524
|
+
style: [{
|
|
3525
|
+
backgroundColor: p.dialogBgColor,
|
|
3526
|
+
borderRadius: p.radiusXl,
|
|
3527
|
+
overflow: "hidden",
|
|
3528
|
+
shadowColor: "#000",
|
|
3529
|
+
shadowOffset: {
|
|
3530
|
+
width: 0,
|
|
3531
|
+
height: 8
|
|
3532
|
+
},
|
|
3533
|
+
...D,
|
|
3534
|
+
opacity: y,
|
|
3535
|
+
transform: [{ translateY: y.interpolate({
|
|
3536
|
+
inputRange: [0, 1],
|
|
3537
|
+
outputRange: [-8, 0]
|
|
3538
|
+
}) }, { scale: y.interpolate({
|
|
3539
|
+
inputRange: [0, 1],
|
|
3540
|
+
outputRange: [.92, 1]
|
|
3541
|
+
}) }]
|
|
3542
|
+
}, u],
|
|
3543
|
+
children: [
|
|
3544
|
+
t && /* @__PURE__ */ M(Y, {
|
|
3545
|
+
variant: "title-4",
|
|
3546
|
+
style: {
|
|
3547
|
+
padding: p.space4,
|
|
3548
|
+
paddingBottom: n ? 0 : p.space4,
|
|
3549
|
+
textAlign: "center",
|
|
3550
|
+
fontWeight: String(p.fontWeightBold)
|
|
3551
|
+
},
|
|
3552
|
+
children: t
|
|
3553
|
+
}),
|
|
3554
|
+
n && /* @__PURE__ */ M(k, {
|
|
3555
|
+
style: {
|
|
3556
|
+
paddingVertical: p.space2,
|
|
3557
|
+
paddingHorizontal: p.space4
|
|
3558
|
+
},
|
|
3559
|
+
children: typeof n == "string" ? /* @__PURE__ */ M(Y, {
|
|
3560
|
+
variant: "body",
|
|
3561
|
+
style: {
|
|
3562
|
+
textAlign: "center",
|
|
3563
|
+
opacity: p.opacityDim
|
|
3564
|
+
},
|
|
3565
|
+
children: n
|
|
3566
|
+
}) : n
|
|
3567
|
+
}),
|
|
3568
|
+
E()
|
|
3569
|
+
]
|
|
3570
|
+
})
|
|
3571
|
+
})
|
|
3572
|
+
})
|
|
3573
|
+
});
|
|
3574
|
+
}, vn = ({ children: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
3575
|
+
let i = q(), a = !!e;
|
|
3576
|
+
return /* @__PURE__ */ N(k, {
|
|
3577
|
+
testID: r,
|
|
3578
|
+
accessible: !0,
|
|
3579
|
+
role: "separator",
|
|
3580
|
+
accessibilityLabel: t ?? (typeof e == "string" ? e : void 0),
|
|
3581
|
+
style: [{
|
|
3582
|
+
flexDirection: "row",
|
|
3583
|
+
alignItems: "center",
|
|
3584
|
+
width: "100%",
|
|
3585
|
+
gap: i.space2
|
|
3586
|
+
}, n],
|
|
3587
|
+
children: [/* @__PURE__ */ M(k, { style: {
|
|
3588
|
+
flex: 1,
|
|
3589
|
+
height: 1,
|
|
3590
|
+
backgroundColor: i.cardShadeColor
|
|
3591
|
+
} }), a && /* @__PURE__ */ N(j, { children: [typeof e == "string" ? /* @__PURE__ */ M(Y, {
|
|
3592
|
+
variant: "caption",
|
|
3593
|
+
color: "dim",
|
|
3594
|
+
children: e
|
|
3595
|
+
}) : e, /* @__PURE__ */ M(k, { style: {
|
|
3596
|
+
flex: 1,
|
|
3597
|
+
height: 1,
|
|
3598
|
+
backgroundColor: i.cardShadeColor
|
|
3599
|
+
} })] })]
|
|
3600
|
+
});
|
|
3601
|
+
}, yn = 6, Q = 8, bn = 5;
|
|
3602
|
+
function xn(e, t) {
|
|
3603
|
+
if (e) {
|
|
3604
|
+
if (typeof e == "function") {
|
|
3605
|
+
e(t);
|
|
3210
3606
|
return;
|
|
3211
3607
|
}
|
|
3212
3608
|
e.current = t;
|
|
3213
3609
|
}
|
|
3214
3610
|
}
|
|
3215
|
-
function
|
|
3611
|
+
function Sn(e, t, n) {
|
|
3216
3612
|
switch (n) {
|
|
3217
3613
|
case "top": return {
|
|
3218
|
-
top: e.y - t.height -
|
|
3614
|
+
top: e.y - t.height - yn,
|
|
3219
3615
|
left: e.x + e.width / 2 - t.width / 2
|
|
3220
3616
|
};
|
|
3221
3617
|
case "bottom": return {
|
|
3222
|
-
top: e.y + e.height +
|
|
3618
|
+
top: e.y + e.height + yn,
|
|
3223
3619
|
left: e.x + e.width / 2 - t.width / 2
|
|
3224
3620
|
};
|
|
3225
3621
|
case "left": return {
|
|
3226
3622
|
top: e.y + e.height / 2 - t.height / 2,
|
|
3227
|
-
left: e.x - t.width -
|
|
3623
|
+
left: e.x - t.width - yn
|
|
3228
3624
|
};
|
|
3229
3625
|
case "right": return {
|
|
3230
3626
|
top: e.y + e.height / 2 - t.height / 2,
|
|
3231
|
-
left: e.x + e.width +
|
|
3627
|
+
left: e.x + e.width + yn
|
|
3232
3628
|
};
|
|
3233
3629
|
}
|
|
3234
3630
|
}
|
|
3235
|
-
function
|
|
3631
|
+
function Cn(e, t, n) {
|
|
3236
3632
|
let { width: r, height: i } = g.get("window"), a = [
|
|
3237
3633
|
n,
|
|
3238
3634
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -3242,21 +3638,21 @@ function rn(e, t, n) {
|
|
|
3242
3638
|
"right"
|
|
3243
3639
|
];
|
|
3244
3640
|
for (let n of a) {
|
|
3245
|
-
let { top: a, left: o } =
|
|
3641
|
+
let { top: a, left: o } = Sn(e, t, n), s = o >= Q && o + t.width <= r - Q, c = a >= Q && a + t.height <= i - Q;
|
|
3246
3642
|
if (s && c) return {
|
|
3247
3643
|
top: Math.max(Q, Math.min(a, i - t.height - Q)),
|
|
3248
3644
|
left: Math.max(Q, Math.min(o, r - t.width - Q)),
|
|
3249
3645
|
placement: n
|
|
3250
3646
|
};
|
|
3251
3647
|
}
|
|
3252
|
-
let { top: o, left: s } =
|
|
3648
|
+
let { top: o, left: s } = Sn(e, t, n);
|
|
3253
3649
|
return {
|
|
3254
3650
|
top: Math.max(Q, Math.min(o, i - t.height - Q)),
|
|
3255
3651
|
left: Math.max(Q, Math.min(s, r - t.width - Q)),
|
|
3256
3652
|
placement: n
|
|
3257
3653
|
};
|
|
3258
3654
|
}
|
|
3259
|
-
var
|
|
3655
|
+
var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
3260
3656
|
let a = q(), s = K(), l = J(), [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(() => {
|
|
3261
3657
|
C.current &&= (clearTimeout(C.current), null);
|
|
3262
3658
|
}, []), D = o(() => {
|
|
@@ -3284,7 +3680,7 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3284
3680
|
});
|
|
3285
3681
|
});
|
|
3286
3682
|
}, [u]), c(() => {
|
|
3287
|
-
!h || !_ || b(
|
|
3683
|
+
!h || !_ || b(Cn(h, _, t));
|
|
3288
3684
|
}, [
|
|
3289
3685
|
h,
|
|
3290
3686
|
_,
|
|
@@ -3325,7 +3721,7 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3325
3721
|
position: "absolute",
|
|
3326
3722
|
width: 0,
|
|
3327
3723
|
height: 0,
|
|
3328
|
-
borderWidth:
|
|
3724
|
+
borderWidth: bn,
|
|
3329
3725
|
borderColor: "transparent"
|
|
3330
3726
|
}, z = (() => {
|
|
3331
3727
|
switch (y?.placement) {
|
|
@@ -3362,7 +3758,7 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3362
3758
|
})(), B = i.props.ref;
|
|
3363
3759
|
return /* @__PURE__ */ N(j, { children: [n(i, {
|
|
3364
3760
|
ref: (e) => {
|
|
3365
|
-
S.current = e,
|
|
3761
|
+
S.current = e, xn(B, e);
|
|
3366
3762
|
},
|
|
3367
3763
|
delayLongPress: r,
|
|
3368
3764
|
accessibilityHint: i.props.accessibilityHint ?? e,
|
|
@@ -3431,12 +3827,12 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3431
3827
|
})
|
|
3432
3828
|
})
|
|
3433
3829
|
})] });
|
|
3434
|
-
},
|
|
3830
|
+
}, Tn = {
|
|
3435
3831
|
sm: "sm",
|
|
3436
3832
|
md: "md",
|
|
3437
3833
|
lg: "lg"
|
|
3438
|
-
},
|
|
3439
|
-
let u = /* @__PURE__ */ M(
|
|
3834
|
+
}, En = i(function({ icon: e, label: t, variant: n = "default", size: r = "md", iconSize: i, tooltip: a, tooltipPlacement: o, tooltipDelay: s, ...c }, l) {
|
|
3835
|
+
let u = /* @__PURE__ */ M(Rt, {
|
|
3440
3836
|
ref: l,
|
|
3441
3837
|
accessibilityLabel: t,
|
|
3442
3838
|
shape: "circular",
|
|
@@ -3446,20 +3842,20 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3446
3842
|
...c,
|
|
3447
3843
|
children: /* @__PURE__ */ M(X, {
|
|
3448
3844
|
icon: e,
|
|
3449
|
-
size: i ??
|
|
3845
|
+
size: i ?? Tn[r]
|
|
3450
3846
|
})
|
|
3451
3847
|
});
|
|
3452
|
-
return a ? /* @__PURE__ */ M(
|
|
3848
|
+
return a ? /* @__PURE__ */ M(wn, {
|
|
3453
3849
|
label: a,
|
|
3454
3850
|
placement: o,
|
|
3455
3851
|
delay: s,
|
|
3456
3852
|
children: u
|
|
3457
3853
|
}) : u;
|
|
3458
|
-
}),
|
|
3854
|
+
}), Dn = m.createAnimatedComponent(w), On = r(0), kn = {
|
|
3459
3855
|
classic: 420,
|
|
3460
3856
|
wide: 640
|
|
3461
|
-
},
|
|
3462
|
-
let v = q(), y = K(), b = J(), S = s(
|
|
3857
|
+
}, An = .85, jn = 240, Mn = ({ open: e, side: t = "right", size: n = "classic", title: r, content: i, children: a, onClose: o, closeOnBackdrop: l = !0, rail: u, style: f, testID: p }) => {
|
|
3858
|
+
let v = q(), y = K(), b = J(), S = s(On), C = i === void 0 ? a : i, T = kn[n], E = S > 0 ? Math.max(jn, Math.round(T * An ** S)) : T, D = g.get("window").width - v.space3 * 2, O = Math.min(E, D), A = d(new m.Value(+!!b)).current;
|
|
3463
3859
|
c(() => {
|
|
3464
3860
|
if (!e) return;
|
|
3465
3861
|
if (b) {
|
|
@@ -3506,7 +3902,7 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3506
3902
|
[t === "right" ? "borderRightWidth" : "borderLeftWidth"]: 1,
|
|
3507
3903
|
borderColor: v.cardShadeColor
|
|
3508
3904
|
},
|
|
3509
|
-
children: u.map((e) => /* @__PURE__ */ M(
|
|
3905
|
+
children: u.map((e) => /* @__PURE__ */ M(En, {
|
|
3510
3906
|
icon: e.icon,
|
|
3511
3907
|
label: e.label,
|
|
3512
3908
|
tooltip: e.label,
|
|
@@ -3527,7 +3923,7 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3527
3923
|
animationType: "none",
|
|
3528
3924
|
statusBarTranslucent: !0,
|
|
3529
3925
|
onRequestClose: o,
|
|
3530
|
-
children: /* @__PURE__ */ M(
|
|
3926
|
+
children: /* @__PURE__ */ M(Dn, {
|
|
3531
3927
|
testID: p,
|
|
3532
3928
|
onPress: l ? o : void 0,
|
|
3533
3929
|
accessible: !1,
|
|
@@ -3583,14 +3979,14 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3583
3979
|
fontWeight: String(v.fontWeightBold)
|
|
3584
3980
|
},
|
|
3585
3981
|
children: r
|
|
3586
|
-
}), o && /* @__PURE__ */ M(
|
|
3982
|
+
}), o && /* @__PURE__ */ M(Rt, {
|
|
3587
3983
|
variant: "flat",
|
|
3588
3984
|
shape: "circular",
|
|
3589
3985
|
size: "sm",
|
|
3590
3986
|
accessibilityLabel: "Close",
|
|
3591
3987
|
onPress: o,
|
|
3592
3988
|
children: /* @__PURE__ */ M(X, {
|
|
3593
|
-
icon:
|
|
3989
|
+
icon: R,
|
|
3594
3990
|
size: "sm"
|
|
3595
3991
|
})
|
|
3596
3992
|
})]
|
|
@@ -3600,7 +3996,7 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3600
3996
|
padding: v.space4,
|
|
3601
3997
|
paddingTop: r ? 0 : v.space4
|
|
3602
3998
|
},
|
|
3603
|
-
children: /* @__PURE__ */ M(
|
|
3999
|
+
children: /* @__PURE__ */ M(On.Provider, {
|
|
3604
4000
|
value: S + 1,
|
|
3605
4001
|
children: typeof C == "string" ? /* @__PURE__ */ M(Y, {
|
|
3606
4002
|
variant: "body",
|
|
@@ -3615,197 +4011,126 @@ var an = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3615
4011
|
})
|
|
3616
4012
|
})
|
|
3617
4013
|
});
|
|
3618
|
-
},
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
left: e.x,
|
|
3624
|
-
width: e.width,
|
|
3625
|
-
flipUp: r
|
|
3626
|
-
};
|
|
3627
|
-
}
|
|
3628
|
-
var vn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
|
|
3629
|
-
let l = q(), u = J(), [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 = () => {
|
|
3630
|
-
a || h(!0);
|
|
3631
|
-
}, A = () => h(!1), j = (e) => {
|
|
3632
|
-
e.disabled || (n?.(e.value), A());
|
|
3633
|
-
};
|
|
3634
|
-
return c(() => {
|
|
3635
|
-
if (!p) {
|
|
3636
|
-
_(null), y(null), S(null);
|
|
4014
|
+
}, Nn = 6, Pn = i(function({ title: e, value: t, defaultValue: n = "", onValueChange: r, onChangeText: i, leading: a, trailing: o, disabled: s = !1, onFocus: l, onBlur: u, accessibilityLabel: p, testID: h, style: g, ..._ }, v) {
|
|
4015
|
+
let y = q(), b = J(), x = t !== void 0, [S, C] = f(n), T = x ? t : S, [E, D] = f(!1), [A, j] = f(56), P = d(null), F = E || T.length > 0, I = d(new m.Value(+!!F)).current;
|
|
4016
|
+
c(() => {
|
|
4017
|
+
if (b) {
|
|
4018
|
+
I.setValue(+!!F);
|
|
3637
4019
|
return;
|
|
3638
4020
|
}
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
width: n,
|
|
3644
|
-
height: r
|
|
3645
|
-
});
|
|
4021
|
+
let e = m.timing(I, {
|
|
4022
|
+
toValue: +!!F,
|
|
4023
|
+
duration: y.durationFast,
|
|
4024
|
+
useNativeDriver: !1
|
|
3646
4025
|
});
|
|
3647
|
-
|
|
3648
|
-
g === null || v === null || S(_n(g, v));
|
|
3649
|
-
}, [g, v]), c(() => {
|
|
3650
|
-
if (b) {
|
|
3651
|
-
if (u) {
|
|
3652
|
-
E.setValue(1);
|
|
3653
|
-
return;
|
|
3654
|
-
}
|
|
3655
|
-
E.setValue(0), m.timing(E, {
|
|
3656
|
-
toValue: 1,
|
|
3657
|
-
duration: l.durationFast,
|
|
3658
|
-
useNativeDriver: !0
|
|
3659
|
-
}).start();
|
|
3660
|
-
}
|
|
4026
|
+
return e.start(), () => e.stop();
|
|
3661
4027
|
}, [
|
|
4028
|
+
F,
|
|
3662
4029
|
b,
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
backgroundColor: e ? l.activeOverlay : l.cardBgColor,
|
|
3689
|
-
borderWidth: 1,
|
|
3690
|
-
borderColor: p ? l.accentColor : l.cardShadeColor,
|
|
3691
|
-
borderRadius: l.radiusMd,
|
|
3692
|
-
opacity: a ? l.opacityDisabled : 1
|
|
3693
|
-
}),
|
|
3694
|
-
children: [/* @__PURE__ */ M(Y, {
|
|
3695
|
-
numberOfLines: 1,
|
|
4030
|
+
I,
|
|
4031
|
+
y.durationFast
|
|
4032
|
+
]);
|
|
4033
|
+
let L = Math.round(y.fontSizeBody * y.lineHeightBody), R = Math.round(y.fontSizeCaption * y.lineHeightBody), z = (A - L) / 2;
|
|
4034
|
+
return /* @__PURE__ */ N(w, {
|
|
4035
|
+
accessible: !1,
|
|
4036
|
+
testID: h,
|
|
4037
|
+
disabled: s,
|
|
4038
|
+
onPress: () => P.current?.focus(),
|
|
4039
|
+
style: [{
|
|
4040
|
+
flexDirection: "row",
|
|
4041
|
+
alignItems: "center",
|
|
4042
|
+
gap: y.space2,
|
|
4043
|
+
paddingHorizontal: y.space4,
|
|
4044
|
+
minHeight: 56,
|
|
4045
|
+
width: "100%",
|
|
4046
|
+
opacity: s ? y.opacityDisabled : 1
|
|
4047
|
+
}, g],
|
|
4048
|
+
children: [
|
|
4049
|
+
a ? /* @__PURE__ */ M(k, {
|
|
4050
|
+
style: { flexShrink: 0 },
|
|
4051
|
+
children: a
|
|
4052
|
+
}) : null,
|
|
4053
|
+
/* @__PURE__ */ N(k, {
|
|
4054
|
+
onLayout: (e) => j(e.nativeEvent.layout.height),
|
|
3696
4055
|
style: {
|
|
3697
4056
|
flex: 1,
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
opacity: D ? 1 : l.opacityDim
|
|
4057
|
+
justifyContent: "center",
|
|
4058
|
+
minHeight: 56
|
|
3701
4059
|
},
|
|
3702
|
-
children:
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
})]
|
|
3709
|
-
}), /* @__PURE__ */ M(x, {
|
|
3710
|
-
visible: p,
|
|
3711
|
-
transparent: !0,
|
|
3712
|
-
animationType: "none",
|
|
3713
|
-
statusBarTranslucent: !0,
|
|
3714
|
-
children: /* @__PURE__ */ M(w, {
|
|
3715
|
-
onPress: A,
|
|
3716
|
-
accessible: !1,
|
|
3717
|
-
style: { flex: 1 },
|
|
3718
|
-
testID: s ? `${s}-backdrop` : void 0,
|
|
3719
|
-
children: /* @__PURE__ */ M(m.View, {
|
|
3720
|
-
onLayout: (e) => {
|
|
3721
|
-
y(Math.min(e.nativeEvent.layout.height, gn));
|
|
3722
|
-
},
|
|
3723
|
-
role: "list",
|
|
3724
|
-
accessible: !0,
|
|
3725
|
-
style: [{
|
|
4060
|
+
children: [/* @__PURE__ */ M(m.Text, {
|
|
4061
|
+
pointerEvents: "none",
|
|
4062
|
+
accessibilityElementsHidden: !0,
|
|
4063
|
+
importantForAccessibility: "no",
|
|
4064
|
+
numberOfLines: 1,
|
|
4065
|
+
style: {
|
|
3726
4066
|
position: "absolute",
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
4067
|
+
left: 0,
|
|
4068
|
+
right: 0,
|
|
4069
|
+
top: z,
|
|
4070
|
+
fontFamily: y.fontFamily,
|
|
4071
|
+
color: y.windowFgColor,
|
|
4072
|
+
fontSize: I.interpolate({
|
|
4073
|
+
inputRange: [0, 1],
|
|
4074
|
+
outputRange: [y.fontSizeBody, y.fontSizeCaption]
|
|
4075
|
+
}),
|
|
4076
|
+
lineHeight: I.interpolate({
|
|
4077
|
+
inputRange: [0, 1],
|
|
4078
|
+
outputRange: [L, R]
|
|
4079
|
+
}),
|
|
4080
|
+
opacity: I.interpolate({
|
|
4081
|
+
inputRange: [0, 1],
|
|
4082
|
+
outputRange: [y.opacityDim, .7]
|
|
4083
|
+
}),
|
|
4084
|
+
transform: [{ translateY: I.interpolate({
|
|
4085
|
+
inputRange: [0, 1],
|
|
4086
|
+
outputRange: [0, Nn - z]
|
|
4087
|
+
}) }]
|
|
4088
|
+
},
|
|
4089
|
+
children: e
|
|
4090
|
+
}), /* @__PURE__ */ M(m.View, {
|
|
4091
|
+
style: { opacity: I },
|
|
4092
|
+
children: /* @__PURE__ */ M(O, {
|
|
4093
|
+
ref: (e) => {
|
|
4094
|
+
P.current = e, typeof v == "function" ? v(e) : v && (v.current = e);
|
|
3737
4095
|
},
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
disabled: e.disabled,
|
|
3763
|
-
onPress: () => j(e),
|
|
3764
|
-
style: ({ pressed: t }) => ({
|
|
3765
|
-
flexDirection: "row",
|
|
3766
|
-
alignItems: "center",
|
|
3767
|
-
gap: l.space2,
|
|
3768
|
-
minHeight: 40,
|
|
3769
|
-
paddingVertical: 8,
|
|
3770
|
-
paddingHorizontal: l.space2,
|
|
3771
|
-
backgroundColor: t ? l.activeOverlay : "transparent",
|
|
3772
|
-
opacity: e.disabled ? l.opacityDisabled : 1
|
|
3773
|
-
}),
|
|
3774
|
-
children: [/* @__PURE__ */ N(k, {
|
|
3775
|
-
style: {
|
|
3776
|
-
flex: 1,
|
|
3777
|
-
gap: 1
|
|
3778
|
-
},
|
|
3779
|
-
children: [/* @__PURE__ */ M(Y, {
|
|
3780
|
-
numberOfLines: 1,
|
|
3781
|
-
style: {
|
|
3782
|
-
fontSize: l.fontSizeBody,
|
|
3783
|
-
color: l.windowFgColor,
|
|
3784
|
-
fontWeight: n ? String(l.fontWeightSemibold) : void 0
|
|
3785
|
-
},
|
|
3786
|
-
children: e.label
|
|
3787
|
-
}), e.description && /* @__PURE__ */ M(Y, {
|
|
3788
|
-
numberOfLines: 1,
|
|
3789
|
-
style: {
|
|
3790
|
-
fontSize: l.fontSizeCaption,
|
|
3791
|
-
color: l.windowFgColor,
|
|
3792
|
-
opacity: l.opacityDim
|
|
3793
|
-
},
|
|
3794
|
-
children: e.description
|
|
3795
|
-
})]
|
|
3796
|
-
}), n && /* @__PURE__ */ M(X, {
|
|
3797
|
-
icon: I,
|
|
3798
|
-
size: "md",
|
|
3799
|
-
color: "blue"
|
|
3800
|
-
})]
|
|
3801
|
-
}, e.value);
|
|
3802
|
-
})
|
|
4096
|
+
value: T,
|
|
4097
|
+
editable: !s,
|
|
4098
|
+
accessibilityLabel: p ?? e,
|
|
4099
|
+
onFocus: (e) => {
|
|
4100
|
+
D(!0), l?.(e);
|
|
4101
|
+
},
|
|
4102
|
+
onBlur: (e) => {
|
|
4103
|
+
D(!1), u?.(e);
|
|
4104
|
+
},
|
|
4105
|
+
onChangeText: (e) => {
|
|
4106
|
+
x || C(e), r?.(e), i?.(e);
|
|
4107
|
+
},
|
|
4108
|
+
style: {
|
|
4109
|
+
padding: 0,
|
|
4110
|
+
margin: 0,
|
|
4111
|
+
width: "100%",
|
|
4112
|
+
fontFamily: y.fontFamily,
|
|
4113
|
+
fontSize: y.fontSizeBody,
|
|
4114
|
+
lineHeight: L,
|
|
4115
|
+
color: y.cardFgColor,
|
|
4116
|
+
paddingTop: y.space4,
|
|
4117
|
+
paddingBottom: 4
|
|
4118
|
+
},
|
|
4119
|
+
..._
|
|
3803
4120
|
})
|
|
3804
|
-
})
|
|
3805
|
-
})
|
|
3806
|
-
|
|
4121
|
+
})]
|
|
4122
|
+
}),
|
|
4123
|
+
o ? /* @__PURE__ */ M(k, {
|
|
4124
|
+
style: {
|
|
4125
|
+
flexDirection: "row",
|
|
4126
|
+
alignItems: "center",
|
|
4127
|
+
gap: y.space1
|
|
4128
|
+
},
|
|
4129
|
+
children: o
|
|
4130
|
+
}) : null
|
|
4131
|
+
]
|
|
3807
4132
|
});
|
|
3808
|
-
},
|
|
4133
|
+
}), Fn = ({ label: e, children: t, expanded: n, defaultExpanded: r = !1, onExpandedChange: i, disabled: a = !1, style: o, testID: s }) => {
|
|
3809
4134
|
let l = q(), u = J(), 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 = () => {
|
|
3810
4135
|
if (a) return;
|
|
3811
4136
|
let e = !v;
|
|
@@ -3877,7 +4202,7 @@ var vn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3877
4202
|
transform: [{ rotate: O }]
|
|
3878
4203
|
},
|
|
3879
4204
|
children: /* @__PURE__ */ M(X, {
|
|
3880
|
-
icon:
|
|
4205
|
+
icon: U,
|
|
3881
4206
|
size: "md"
|
|
3882
4207
|
})
|
|
3883
4208
|
}), typeof e == "string" ? /* @__PURE__ */ M(Y, {
|
|
@@ -3900,21 +4225,21 @@ var vn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3900
4225
|
})
|
|
3901
4226
|
})]
|
|
3902
4227
|
});
|
|
3903
|
-
},
|
|
3904
|
-
folder:
|
|
3905
|
-
image:
|
|
3906
|
-
audio:
|
|
3907
|
-
video:
|
|
3908
|
-
text:
|
|
3909
|
-
pdf:
|
|
3910
|
-
archive:
|
|
3911
|
-
document:
|
|
3912
|
-
spreadsheet:
|
|
3913
|
-
presentation:
|
|
3914
|
-
font:
|
|
3915
|
-
executable:
|
|
3916
|
-
unknown:
|
|
3917
|
-
},
|
|
4228
|
+
}, In = {
|
|
4229
|
+
folder: H,
|
|
4230
|
+
image: te,
|
|
4231
|
+
audio: I,
|
|
4232
|
+
video: se,
|
|
4233
|
+
text: oe,
|
|
4234
|
+
pdf: B,
|
|
4235
|
+
archive: ne,
|
|
4236
|
+
document: ue,
|
|
4237
|
+
spreadsheet: fe,
|
|
4238
|
+
presentation: de,
|
|
4239
|
+
font: ee,
|
|
4240
|
+
executable: F,
|
|
4241
|
+
unknown: oe
|
|
4242
|
+
}, Ln = {
|
|
3918
4243
|
folder: "Folder",
|
|
3919
4244
|
image: "Image file",
|
|
3920
4245
|
audio: "Audio file",
|
|
@@ -3928,7 +4253,7 @@ var vn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3928
4253
|
font: "Font file",
|
|
3929
4254
|
executable: "Executable",
|
|
3930
4255
|
unknown: "File"
|
|
3931
|
-
},
|
|
4256
|
+
}, Rn = {
|
|
3932
4257
|
png: "image",
|
|
3933
4258
|
jpg: "image",
|
|
3934
4259
|
jpeg: "image",
|
|
@@ -4000,13 +4325,13 @@ var vn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
4000
4325
|
h: "text",
|
|
4001
4326
|
java: "text",
|
|
4002
4327
|
sql: "text"
|
|
4003
|
-
},
|
|
4328
|
+
}, zn = {
|
|
4004
4329
|
image: "image",
|
|
4005
4330
|
audio: "audio",
|
|
4006
4331
|
video: "video",
|
|
4007
4332
|
text: "text",
|
|
4008
4333
|
font: "font"
|
|
4009
|
-
},
|
|
4334
|
+
}, Bn = {
|
|
4010
4335
|
pdf: "pdf",
|
|
4011
4336
|
zip: "archive",
|
|
4012
4337
|
gzip: "archive",
|
|
@@ -4026,31 +4351,31 @@ var vn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
4026
4351
|
"x-sh": "executable",
|
|
4027
4352
|
"x-executable": "executable"
|
|
4028
4353
|
};
|
|
4029
|
-
function
|
|
4354
|
+
function Vn(e) {
|
|
4030
4355
|
let t = e.trim().toLowerCase();
|
|
4031
4356
|
if (t === "inode/directory") return "folder";
|
|
4032
4357
|
let [n, r] = t.split("/");
|
|
4033
|
-
return r &&
|
|
4358
|
+
return r && Bn[r] ? Bn[r] : zn[n] ?? null;
|
|
4034
4359
|
}
|
|
4035
|
-
function
|
|
4360
|
+
function Hn(e) {
|
|
4036
4361
|
let t = e.trim().replace(/^\.+/, ""), n = t.lastIndexOf(".");
|
|
4037
|
-
return n <= 0 ? null :
|
|
4362
|
+
return n <= 0 ? null : Rn[t.slice(n + 1).toLowerCase()] ?? null;
|
|
4038
4363
|
}
|
|
4039
|
-
function
|
|
4040
|
-
return
|
|
4364
|
+
function Un(e) {
|
|
4365
|
+
return In[e];
|
|
4041
4366
|
}
|
|
4042
|
-
function
|
|
4043
|
-
return
|
|
4367
|
+
function Wn(e) {
|
|
4368
|
+
return Ln[e];
|
|
4044
4369
|
}
|
|
4045
4370
|
//#endregion
|
|
4046
4371
|
//#region src/components/FileTypeIcon/FileTypeIcon.tsx
|
|
4047
|
-
var
|
|
4048
|
-
let c = q(), l =
|
|
4372
|
+
var Gn = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size: a = "md", style: o, testID: s }) => {
|
|
4373
|
+
let c = q(), l = Ge[a], u = n ? "folder" : t && Vn(t) || e && Hn(e) || "unknown";
|
|
4049
4374
|
return /* @__PURE__ */ M(k, {
|
|
4050
4375
|
testID: s,
|
|
4051
4376
|
accessible: !0,
|
|
4052
4377
|
role: "img",
|
|
4053
|
-
accessibilityLabel: i ??
|
|
4378
|
+
accessibilityLabel: i ?? Wn(u),
|
|
4054
4379
|
style: [{
|
|
4055
4380
|
width: l,
|
|
4056
4381
|
height: l,
|
|
@@ -4067,11 +4392,11 @@ var kn = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size
|
|
|
4067
4392
|
borderRadius: c.radiusSm
|
|
4068
4393
|
}
|
|
4069
4394
|
}) : /* @__PURE__ */ M(X, {
|
|
4070
|
-
icon:
|
|
4395
|
+
icon: Un(u),
|
|
4071
4396
|
size: a
|
|
4072
4397
|
})
|
|
4073
4398
|
});
|
|
4074
|
-
},
|
|
4399
|
+
}, Kn = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
|
|
4075
4400
|
let s = q();
|
|
4076
4401
|
return /* @__PURE__ */ N(k, {
|
|
4077
4402
|
ref: o,
|
|
@@ -4131,16 +4456,16 @@ var kn = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size
|
|
|
4131
4456
|
});
|
|
4132
4457
|
//#endregion
|
|
4133
4458
|
//#region src/components/Highlight/Highlight.tsx
|
|
4134
|
-
function
|
|
4459
|
+
function qn(e) {
|
|
4135
4460
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4136
4461
|
}
|
|
4137
|
-
var
|
|
4138
|
-
let i = q(), a =
|
|
4462
|
+
var Jn = ({ text: e, query: t, caseSensitive: n = !1, ...r }) => {
|
|
4463
|
+
let i = q(), a = Me(), o = (Array.isArray(t) ? t : [t]).map((e) => e.trim()).filter(Boolean);
|
|
4139
4464
|
if (o.length === 0) return /* @__PURE__ */ M(Y, {
|
|
4140
4465
|
...r,
|
|
4141
4466
|
children: e
|
|
4142
4467
|
});
|
|
4143
|
-
let s = RegExp(`(${o.map(
|
|
4468
|
+
let s = RegExp(`(${o.map(qn).join("|")})`, n ? "g" : "gi"), c = e.split(s), l = {
|
|
4144
4469
|
fontWeight: String(i.fontWeightSemibold),
|
|
4145
4470
|
...a === "more" ? {
|
|
4146
4471
|
backgroundColor: i.accentBgColor,
|
|
@@ -4157,7 +4482,7 @@ var Mn = ({ text: e, query: t, caseSensitive: n = !1, ...r }) => {
|
|
|
4157
4482
|
};
|
|
4158
4483
|
//#endregion
|
|
4159
4484
|
//#region src/components/InlineViewSwitcher/variants.ts
|
|
4160
|
-
function
|
|
4485
|
+
function Yn(e, t, n) {
|
|
4161
4486
|
let r = n ? "rgba(255, 255, 255, 0.12)" : e.light3, i = `${e.accentBgColor}${n ? "40" : "26"}`, a = `${e.accentBgColor}${n ? "80" : "66"}`;
|
|
4162
4487
|
switch (t) {
|
|
4163
4488
|
case "flat": return {
|
|
@@ -4269,7 +4594,7 @@ function Nn(e, t, n) {
|
|
|
4269
4594
|
};
|
|
4270
4595
|
}
|
|
4271
4596
|
}
|
|
4272
|
-
function
|
|
4597
|
+
function Xn(e, t, n) {
|
|
4273
4598
|
return {
|
|
4274
4599
|
fontFamily: e.fontFamily,
|
|
4275
4600
|
fontSize: e.fontSizeBody,
|
|
@@ -4279,18 +4604,18 @@ function Pn(e, t, n) {
|
|
|
4279
4604
|
}
|
|
4280
4605
|
//#endregion
|
|
4281
4606
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcher.tsx
|
|
4282
|
-
var
|
|
4283
|
-
function
|
|
4284
|
-
let e = s(
|
|
4607
|
+
var Zn = r(null);
|
|
4608
|
+
function Qn() {
|
|
4609
|
+
let e = s(Zn);
|
|
4285
4610
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
4286
4611
|
return e;
|
|
4287
4612
|
}
|
|
4288
|
-
var
|
|
4289
|
-
let _ = q(), v = K() === "dark", y = J(), b = u(() =>
|
|
4613
|
+
var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r = "default", overflow: i = "wrap", accessibilityLabel: s = "View switcher", children: l, style: p, ...h }, g) {
|
|
4614
|
+
let _ = q(), v = K() === "dark", y = J(), b = u(() => Yn(_, r, v), [
|
|
4290
4615
|
_,
|
|
4291
4616
|
r,
|
|
4292
4617
|
v
|
|
4293
|
-
]), [x, S] = f({}), [C, E] = f(0), [O, A] = f(!1), [P, F] = f(!1),
|
|
4618
|
+
]), [x, S] = f({}), [C, E] = f(0), [O, A] = f(!1), [P, F] = f(!1), I = d(0), R = d(new m.Value(0)).current, z = d(new m.Value(0)).current, B = o((e, t) => {
|
|
4294
4619
|
S((n) => {
|
|
4295
4620
|
let r = n[e];
|
|
4296
4621
|
return r && r.x === t.x && r.width === t.width ? n : {
|
|
@@ -4314,37 +4639,37 @@ var Ln = 160, Rn = 30, zn = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4314
4639
|
V || A(!1);
|
|
4315
4640
|
return;
|
|
4316
4641
|
}
|
|
4317
|
-
A((e) => e ?
|
|
4642
|
+
A((e) => e ? I.current > C + er : ee > C ? (I.current = ee, !0) : !1);
|
|
4318
4643
|
}, [
|
|
4319
4644
|
V,
|
|
4320
4645
|
C,
|
|
4321
4646
|
ee
|
|
4322
4647
|
]);
|
|
4323
|
-
let te = i === "compact" && O,
|
|
4648
|
+
let te = i === "compact" && O, ne = i === "menu" && O, U = H.find((e) => e.name === t) ?? H[0], ie = x[t];
|
|
4324
4649
|
c(() => {
|
|
4325
|
-
if (
|
|
4650
|
+
if (ne || !ie) return;
|
|
4326
4651
|
if (y) {
|
|
4327
|
-
R.setValue(
|
|
4652
|
+
R.setValue(ie.x), z.setValue(ie.width);
|
|
4328
4653
|
return;
|
|
4329
4654
|
}
|
|
4330
4655
|
let e = m.parallel([m.timing(R, {
|
|
4331
|
-
toValue:
|
|
4332
|
-
duration:
|
|
4656
|
+
toValue: ie.x,
|
|
4657
|
+
duration: $n,
|
|
4333
4658
|
useNativeDriver: !1
|
|
4334
4659
|
}), m.timing(z, {
|
|
4335
|
-
toValue:
|
|
4336
|
-
duration:
|
|
4660
|
+
toValue: ie.width,
|
|
4661
|
+
duration: $n,
|
|
4337
4662
|
useNativeDriver: !1
|
|
4338
4663
|
})]);
|
|
4339
4664
|
return e.start(), () => e.stop();
|
|
4340
4665
|
}, [
|
|
4341
|
-
|
|
4342
|
-
|
|
4666
|
+
ie,
|
|
4667
|
+
ne,
|
|
4343
4668
|
y,
|
|
4344
4669
|
R,
|
|
4345
4670
|
z
|
|
4346
4671
|
]);
|
|
4347
|
-
let
|
|
4672
|
+
let ae = u(() => ({
|
|
4348
4673
|
value: t,
|
|
4349
4674
|
onValueChange: n,
|
|
4350
4675
|
compact: te,
|
|
@@ -4356,17 +4681,17 @@ var Ln = 160, Rn = 30, zn = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4356
4681
|
te,
|
|
4357
4682
|
b,
|
|
4358
4683
|
B
|
|
4359
|
-
]),
|
|
4684
|
+
]), oe = o((e) => {
|
|
4360
4685
|
V && E(e.nativeEvent.layout.width);
|
|
4361
|
-
}, [V]),
|
|
4686
|
+
}, [V]), se = u(() => i === "scroll" ? H.map((e) => x[e.name]?.x ?? 0).filter((e, t) => t === 0 || e > 0) : void 0, [
|
|
4362
4687
|
i,
|
|
4363
4688
|
H,
|
|
4364
4689
|
x
|
|
4365
|
-
]),
|
|
4690
|
+
]), ce = /* @__PURE__ */ M(k, {
|
|
4366
4691
|
ref: g,
|
|
4367
|
-
accessibilityRole:
|
|
4692
|
+
accessibilityRole: ne ? void 0 : "radiogroup",
|
|
4368
4693
|
accessibilityLabel: s,
|
|
4369
|
-
onLayout:
|
|
4694
|
+
onLayout: oe,
|
|
4370
4695
|
style: [
|
|
4371
4696
|
{
|
|
4372
4697
|
flexDirection: "row",
|
|
@@ -4377,7 +4702,7 @@ var Ln = 160, Rn = 30, zn = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4377
4702
|
p
|
|
4378
4703
|
],
|
|
4379
4704
|
...h,
|
|
4380
|
-
children:
|
|
4705
|
+
children: ne ? /* @__PURE__ */ N(w, {
|
|
4381
4706
|
accessibilityRole: "button",
|
|
4382
4707
|
accessibilityLabel: `${s}: ${U?.label ?? U?.name}`,
|
|
4383
4708
|
onPress: () => F(!0),
|
|
@@ -4395,11 +4720,11 @@ var Ln = 160, Rn = 30, zn = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4395
4720
|
size: "md"
|
|
4396
4721
|
}) : null,
|
|
4397
4722
|
U?.label ? /* @__PURE__ */ M(D, {
|
|
4398
|
-
style:
|
|
4723
|
+
style: Xn(_, !0, b.idleTextColor),
|
|
4399
4724
|
children: U.label
|
|
4400
4725
|
}) : null,
|
|
4401
4726
|
/* @__PURE__ */ M(X, {
|
|
4402
|
-
icon:
|
|
4727
|
+
icon: re,
|
|
4403
4728
|
size: "sm"
|
|
4404
4729
|
})
|
|
4405
4730
|
]
|
|
@@ -4415,17 +4740,17 @@ var Ln = 160, Rn = 30, zn = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4415
4740
|
}, b.indicator]
|
|
4416
4741
|
}), l] })
|
|
4417
4742
|
});
|
|
4418
|
-
return /* @__PURE__ */ N(
|
|
4419
|
-
value:
|
|
4743
|
+
return /* @__PURE__ */ N(Zn.Provider, {
|
|
4744
|
+
value: ae,
|
|
4420
4745
|
children: [i === "scroll" ? /* @__PURE__ */ M(T, {
|
|
4421
4746
|
horizontal: !0,
|
|
4422
4747
|
showsHorizontalScrollIndicator: !1,
|
|
4423
|
-
snapToOffsets:
|
|
4748
|
+
snapToOffsets: se,
|
|
4424
4749
|
decelerationRate: "fast",
|
|
4425
4750
|
contentContainerStyle: { flexGrow: 0 },
|
|
4426
4751
|
style: { flexGrow: 0 },
|
|
4427
|
-
children:
|
|
4428
|
-
}) :
|
|
4752
|
+
children: ce
|
|
4753
|
+
}) : ce, i === "menu" ? /* @__PURE__ */ M(kt, {
|
|
4429
4754
|
open: P,
|
|
4430
4755
|
title: s,
|
|
4431
4756
|
onClose: () => F(!1),
|
|
@@ -4456,11 +4781,11 @@ var Ln = 160, Rn = 30, zn = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4456
4781
|
size: "md"
|
|
4457
4782
|
}) : null,
|
|
4458
4783
|
/* @__PURE__ */ M(D, {
|
|
4459
|
-
style: [
|
|
4784
|
+
style: [Xn(_, r, r ? _.accentColor : _.windowFgColor), { flex: 1 }],
|
|
4460
4785
|
children: e.label ?? e.name
|
|
4461
4786
|
}),
|
|
4462
4787
|
r ? /* @__PURE__ */ M(X, {
|
|
4463
|
-
icon:
|
|
4788
|
+
icon: L,
|
|
4464
4789
|
size: "md"
|
|
4465
4790
|
}) : null
|
|
4466
4791
|
]
|
|
@@ -4469,8 +4794,8 @@ var Ln = 160, Rn = 30, zn = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4469
4794
|
})
|
|
4470
4795
|
}) : null]
|
|
4471
4796
|
});
|
|
4472
|
-
}),
|
|
4473
|
-
let c = q(), { value: l, onValueChange: u, compact: d, styles: f, onItemLayout: p } =
|
|
4797
|
+
}), nr = i(function({ name: e, label: t, icon: n, accessibilityLabel: r, disabled: i = !1, ...a }, s) {
|
|
4798
|
+
let c = q(), { value: l, onValueChange: u, compact: d, styles: f, onItemLayout: p } = Qn(), m = l === e, h = !!t && !(d && n), g = !!n && !h;
|
|
4474
4799
|
return /* @__PURE__ */ N(w, {
|
|
4475
4800
|
ref: s,
|
|
4476
4801
|
disabled: i,
|
|
@@ -4507,18 +4832,18 @@ var Ln = 160, Rn = 30, zn = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4507
4832
|
size: "md"
|
|
4508
4833
|
}) : null, h ? /* @__PURE__ */ M(D, {
|
|
4509
4834
|
numberOfLines: 1,
|
|
4510
|
-
style:
|
|
4835
|
+
style: Xn(c, m, m ? f.activeTextColor : f.idleTextColor),
|
|
4511
4836
|
children: t
|
|
4512
4837
|
}) : null]
|
|
4513
4838
|
});
|
|
4514
4839
|
});
|
|
4515
|
-
|
|
4840
|
+
nr.displayName = "InlineViewSwitcherItem";
|
|
4516
4841
|
//#endregion
|
|
4517
4842
|
//#region src/components/LevelBar/LevelBar.tsx
|
|
4518
|
-
function
|
|
4843
|
+
function rr(e, t, n, r, i, a) {
|
|
4519
4844
|
return t !== void 0 && e <= t ? n : r !== void 0 && e >= r ? i : a;
|
|
4520
4845
|
}
|
|
4521
|
-
function
|
|
4846
|
+
function ir(e, t) {
|
|
4522
4847
|
switch (t) {
|
|
4523
4848
|
case "accent": return e.accentBgColor;
|
|
4524
4849
|
case "success": return e.successBgColor;
|
|
@@ -4526,8 +4851,8 @@ function Hn(e, t) {
|
|
|
4526
4851
|
case "error": return e.errorBgColor;
|
|
4527
4852
|
}
|
|
4528
4853
|
}
|
|
4529
|
-
var
|
|
4530
|
-
let g = q(), v = K(), y = J(), b = n - t, x = Math.min(n, Math.max(t, e)), S = b > 0 ? (x - t) / b : 0, C =
|
|
4854
|
+
var ar = ({ 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 }) => {
|
|
4855
|
+
let g = q(), v = K(), y = J(), b = n - t, x = Math.min(n, Math.max(t, e)), S = b > 0 ? (x - t) / b : 0, C = rr(x, r, i, a, o, s), w = d(new m.Value(S)).current;
|
|
4531
4856
|
c(() => {
|
|
4532
4857
|
if (l) return;
|
|
4533
4858
|
let [e, t, n, r] = g.easingDefault;
|
|
@@ -4574,7 +4899,7 @@ var Un = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4574
4899
|
height: "100%",
|
|
4575
4900
|
minWidth: 2,
|
|
4576
4901
|
borderRadius: 1,
|
|
4577
|
-
backgroundColor: (t + 1) / u <= S ?
|
|
4902
|
+
backgroundColor: (t + 1) / u <= S ? ir(g, C) : T
|
|
4578
4903
|
}
|
|
4579
4904
|
}, t)) : /* @__PURE__ */ M(m.View, {
|
|
4580
4905
|
testID: h ? `${h}-fill` : void 0,
|
|
@@ -4582,13 +4907,13 @@ var Un = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4582
4907
|
width: "100%",
|
|
4583
4908
|
height: "100%",
|
|
4584
4909
|
borderRadius: g.radiusPill,
|
|
4585
|
-
backgroundColor:
|
|
4910
|
+
backgroundColor: ir(g, C),
|
|
4586
4911
|
transformOrigin: "left",
|
|
4587
4912
|
transform: [{ scaleX: w }]
|
|
4588
4913
|
}
|
|
4589
4914
|
})
|
|
4590
4915
|
});
|
|
4591
|
-
},
|
|
4916
|
+
}, or = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
|
|
4592
4917
|
let c = q();
|
|
4593
4918
|
return /* @__PURE__ */ M(w, {
|
|
4594
4919
|
ref: s,
|
|
@@ -4611,7 +4936,7 @@ var Un = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4611
4936
|
})]
|
|
4612
4937
|
})
|
|
4613
4938
|
});
|
|
4614
|
-
}),
|
|
4939
|
+
}), sr = m.createAnimatedComponent(w), cr = ({ open: e, onDismiss: t, children: n, style: r, testID: i }) => {
|
|
4615
4940
|
let a = q(), o = J(), [s, l] = f(e), u = d(new m.Value(+!!e)).current;
|
|
4616
4941
|
return c(() => {
|
|
4617
4942
|
e && l(!0);
|
|
@@ -4650,7 +4975,7 @@ var Un = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4650
4975
|
transparent: !0,
|
|
4651
4976
|
animationType: "none",
|
|
4652
4977
|
statusBarTranslucent: !0,
|
|
4653
|
-
children: /* @__PURE__ */ M(
|
|
4978
|
+
children: /* @__PURE__ */ M(sr, {
|
|
4654
4979
|
testID: i,
|
|
4655
4980
|
onPress: t,
|
|
4656
4981
|
accessible: !1,
|
|
@@ -4668,7 +4993,27 @@ var Un = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4668
4993
|
})
|
|
4669
4994
|
})
|
|
4670
4995
|
}) : null;
|
|
4671
|
-
},
|
|
4996
|
+
}, lr = i(function({ trailing: e, disabled: t = !1, autoComplete: n = "current-password", ...r }, i) {
|
|
4997
|
+
let [a, o] = f(!1);
|
|
4998
|
+
return /* @__PURE__ */ M(Pn, {
|
|
4999
|
+
ref: i,
|
|
5000
|
+
...r,
|
|
5001
|
+
autoComplete: n,
|
|
5002
|
+
secureTextEntry: !a,
|
|
5003
|
+
disabled: t,
|
|
5004
|
+
trailing: /* @__PURE__ */ N(j, { children: [e, /* @__PURE__ */ M(En, {
|
|
5005
|
+
icon: a ? ce : le,
|
|
5006
|
+
label: a ? "Conceal password" : "Reveal password",
|
|
5007
|
+
variant: "flat",
|
|
5008
|
+
disabled: t,
|
|
5009
|
+
accessibilityState: {
|
|
5010
|
+
selected: a,
|
|
5011
|
+
disabled: t
|
|
5012
|
+
},
|
|
5013
|
+
onPress: () => o((e) => !e)
|
|
5014
|
+
})] })
|
|
5015
|
+
});
|
|
5016
|
+
}), ur = ({ segments: e, onNavigate: n, style: r, ...i }) => {
|
|
4672
5017
|
let a = q();
|
|
4673
5018
|
return /* @__PURE__ */ M(k, {
|
|
4674
5019
|
style: [{
|
|
@@ -4742,8 +5087,8 @@ var Un = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4742
5087
|
})] }, r.path);
|
|
4743
5088
|
})
|
|
4744
5089
|
});
|
|
4745
|
-
},
|
|
4746
|
-
function
|
|
5090
|
+
}, dr = 8, $ = 10, fr = 6;
|
|
5091
|
+
function pr(e, t) {
|
|
4747
5092
|
if (e) {
|
|
4748
5093
|
if (typeof e == "function") {
|
|
4749
5094
|
e(t);
|
|
@@ -4752,27 +5097,27 @@ function Xn(e, t) {
|
|
|
4752
5097
|
e.current = t;
|
|
4753
5098
|
}
|
|
4754
5099
|
}
|
|
4755
|
-
function
|
|
5100
|
+
function mr(e, t, n) {
|
|
4756
5101
|
switch (n) {
|
|
4757
5102
|
case "top": return {
|
|
4758
|
-
top: e.y - t.height -
|
|
5103
|
+
top: e.y - t.height - dr,
|
|
4759
5104
|
left: e.x + e.width / 2 - t.width / 2
|
|
4760
5105
|
};
|
|
4761
5106
|
case "bottom": return {
|
|
4762
|
-
top: e.y + e.height +
|
|
5107
|
+
top: e.y + e.height + dr,
|
|
4763
5108
|
left: e.x + e.width / 2 - t.width / 2
|
|
4764
5109
|
};
|
|
4765
5110
|
case "left": return {
|
|
4766
5111
|
top: e.y + e.height / 2 - t.height / 2,
|
|
4767
|
-
left: e.x - t.width -
|
|
5112
|
+
left: e.x - t.width - dr
|
|
4768
5113
|
};
|
|
4769
5114
|
case "right": return {
|
|
4770
5115
|
top: e.y + e.height / 2 - t.height / 2,
|
|
4771
|
-
left: e.x + e.width +
|
|
5116
|
+
left: e.x + e.width + dr
|
|
4772
5117
|
};
|
|
4773
5118
|
}
|
|
4774
5119
|
}
|
|
4775
|
-
function
|
|
5120
|
+
function hr(e, t, n) {
|
|
4776
5121
|
let { width: r, height: i } = g.get("window"), a = [
|
|
4777
5122
|
n,
|
|
4778
5123
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -4782,21 +5127,21 @@ function Qn(e, t, n) {
|
|
|
4782
5127
|
"right"
|
|
4783
5128
|
];
|
|
4784
5129
|
for (let n of a) {
|
|
4785
|
-
let { top: a, left: o } =
|
|
5130
|
+
let { top: a, left: o } = mr(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
|
|
4786
5131
|
if (s && c) return {
|
|
4787
5132
|
top: Math.max($, Math.min(a, i - t.height - $)),
|
|
4788
5133
|
left: Math.max($, Math.min(o, r - t.width - $)),
|
|
4789
5134
|
placement: n
|
|
4790
5135
|
};
|
|
4791
5136
|
}
|
|
4792
|
-
let { top: o, left: s } =
|
|
5137
|
+
let { top: o, left: s } = mr(e, t, n);
|
|
4793
5138
|
return {
|
|
4794
5139
|
top: Math.max($, Math.min(o, i - t.height - $)),
|
|
4795
5140
|
left: Math.max($, Math.min(s, r - t.width - $)),
|
|
4796
5141
|
placement: n
|
|
4797
5142
|
};
|
|
4798
5143
|
}
|
|
4799
|
-
var
|
|
5144
|
+
var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panelStyle: a, children: s }) => {
|
|
4800
5145
|
let l = q(), u = J(), 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) => {
|
|
4801
5146
|
p || _(e), i?.(e);
|
|
4802
5147
|
}, [p, i]), P = o(() => A(!1), [A]), F = o(() => A(!v), [v, A]);
|
|
@@ -4814,7 +5159,7 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4814
5159
|
});
|
|
4815
5160
|
});
|
|
4816
5161
|
}, [v]), c(() => {
|
|
4817
|
-
!y || !S || E(
|
|
5162
|
+
!y || !S || E(hr(y, S, t));
|
|
4818
5163
|
}, [
|
|
4819
5164
|
y,
|
|
4820
5165
|
S,
|
|
@@ -4851,7 +5196,7 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4851
5196
|
position: "absolute",
|
|
4852
5197
|
width: 0,
|
|
4853
5198
|
height: 0,
|
|
4854
|
-
borderWidth:
|
|
5199
|
+
borderWidth: fr,
|
|
4855
5200
|
borderColor: "transparent"
|
|
4856
5201
|
}, R = (() => {
|
|
4857
5202
|
switch (T?.placement) {
|
|
@@ -4888,7 +5233,7 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4888
5233
|
})(), z = s.props.ref;
|
|
4889
5234
|
return /* @__PURE__ */ N(j, { children: [n(s, {
|
|
4890
5235
|
ref: (e) => {
|
|
4891
|
-
D.current = e,
|
|
5236
|
+
D.current = e, pr(z, e);
|
|
4892
5237
|
},
|
|
4893
5238
|
accessibilityState: {
|
|
4894
5239
|
expanded: v,
|
|
@@ -4946,7 +5291,7 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4946
5291
|
})
|
|
4947
5292
|
})
|
|
4948
5293
|
})] });
|
|
4949
|
-
},
|
|
5294
|
+
}, _r = i(function({ title: e, description: t, headerSuffix: n, children: r, style: i, ...a }, o) {
|
|
4950
5295
|
let s = q(), c = !!(e || t || n);
|
|
4951
5296
|
return /* @__PURE__ */ N(k, {
|
|
4952
5297
|
ref: o,
|
|
@@ -4979,7 +5324,7 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4979
5324
|
}) : null]
|
|
4980
5325
|
}) : null, /* @__PURE__ */ M(k, { children: r })]
|
|
4981
5326
|
});
|
|
4982
|
-
}),
|
|
5327
|
+
}), vr = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
|
|
4983
5328
|
let o = q(), s = K(), l = J(), 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) => {
|
|
4984
5329
|
b(e.nativeEvent.layout.width), i?.(e);
|
|
4985
5330
|
};
|
|
@@ -5062,8 +5407,8 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5062
5407
|
backgroundColor: C[t]
|
|
5063
5408
|
}, w] })
|
|
5064
5409
|
});
|
|
5065
|
-
},
|
|
5066
|
-
let o = q(), s = K(), l =
|
|
5410
|
+
}, yr = 18, br = 6, xr = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
|
|
5411
|
+
let o = q(), s = K(), l = Me(), u = d(new m.Value(+!!e)).current, f = d(!0);
|
|
5067
5412
|
c(() => {
|
|
5068
5413
|
if (f.current) {
|
|
5069
5414
|
f.current = !1;
|
|
@@ -5104,8 +5449,8 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5104
5449
|
...i,
|
|
5105
5450
|
children: /* @__PURE__ */ M(m.View, {
|
|
5106
5451
|
style: {
|
|
5107
|
-
width:
|
|
5108
|
-
height:
|
|
5452
|
+
width: yr,
|
|
5453
|
+
height: yr,
|
|
5109
5454
|
alignItems: "center",
|
|
5110
5455
|
justifyContent: "center",
|
|
5111
5456
|
borderRadius: o.radiusPill,
|
|
@@ -5114,8 +5459,8 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5114
5459
|
backgroundColor: g
|
|
5115
5460
|
},
|
|
5116
5461
|
children: /* @__PURE__ */ M(m.View, { style: {
|
|
5117
|
-
width:
|
|
5118
|
-
height:
|
|
5462
|
+
width: br,
|
|
5463
|
+
height: br,
|
|
5119
5464
|
borderRadius: o.radiusPill,
|
|
5120
5465
|
backgroundColor: "#fff",
|
|
5121
5466
|
opacity: u
|
|
@@ -5125,13 +5470,13 @@ var $n = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5125
5470
|
});
|
|
5126
5471
|
//#endregion
|
|
5127
5472
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
5128
|
-
function
|
|
5473
|
+
function Sr(e, t) {
|
|
5129
5474
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
5130
5475
|
if (!n) return e;
|
|
5131
5476
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
5132
5477
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
5133
5478
|
}
|
|
5134
|
-
var
|
|
5479
|
+
var Cr = 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) {
|
|
5135
5480
|
let g = q(), _ = d(null);
|
|
5136
5481
|
if (l(h, () => _.current, []), c(() => {
|
|
5137
5482
|
if (!e) return;
|
|
@@ -5175,7 +5520,7 @@ var or = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
5175
5520
|
editable: o,
|
|
5176
5521
|
value: i,
|
|
5177
5522
|
placeholder: a,
|
|
5178
|
-
placeholderTextColor:
|
|
5523
|
+
placeholderTextColor: Sr(g.windowFgColor, g.opacityDim),
|
|
5179
5524
|
style: [{
|
|
5180
5525
|
flex: 1,
|
|
5181
5526
|
padding: 0,
|
|
@@ -5240,9 +5585,9 @@ var or = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
5240
5585
|
children: r
|
|
5241
5586
|
})]
|
|
5242
5587
|
});
|
|
5243
|
-
}),
|
|
5244
|
-
function
|
|
5245
|
-
switch (t %
|
|
5588
|
+
}), wr = 8;
|
|
5589
|
+
function Tr(e, t) {
|
|
5590
|
+
switch (t % wr) {
|
|
5246
5591
|
case 0: return e.blue3;
|
|
5247
5592
|
case 1: return e.green3;
|
|
5248
5593
|
case 2: return e.purple3;
|
|
@@ -5253,7 +5598,7 @@ function cr(e, t) {
|
|
|
5253
5598
|
default: return e.green5;
|
|
5254
5599
|
}
|
|
5255
5600
|
}
|
|
5256
|
-
var
|
|
5601
|
+
var Er = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
5257
5602
|
let i = q(), a = K(), [o, s] = f(null), c = e.reduce((e, t) => e + t.value, 0) || 100, l = e.map((e) => `${e.label} ${e.value}%`).join(", "), u = a === "dark" ? i.dark2 : i.light3;
|
|
5258
5603
|
return /* @__PURE__ */ M(k, {
|
|
5259
5604
|
testID: r,
|
|
@@ -5271,7 +5616,7 @@ var lr = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
5271
5616
|
}, n],
|
|
5272
5617
|
children: e.map((e, t) => {
|
|
5273
5618
|
let n = `${e.value / c * 100}%`, r = e.value % 1 == 0 ? e.value : e.value.toFixed(1);
|
|
5274
|
-
return /* @__PURE__ */ M(
|
|
5619
|
+
return /* @__PURE__ */ M(wn, {
|
|
5275
5620
|
label: `${e.label}: ${r}%`,
|
|
5276
5621
|
placement: "top",
|
|
5277
5622
|
delay: 200,
|
|
@@ -5282,7 +5627,7 @@ var lr = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
5282
5627
|
style: {
|
|
5283
5628
|
width: n,
|
|
5284
5629
|
height: "100%",
|
|
5285
|
-
backgroundColor: e.color ??
|
|
5630
|
+
backgroundColor: e.color ?? Tr(i, t),
|
|
5286
5631
|
opacity: o !== null && o !== t ? .35 : 1
|
|
5287
5632
|
}
|
|
5288
5633
|
})
|
|
@@ -5292,30 +5637,30 @@ var lr = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
5292
5637
|
};
|
|
5293
5638
|
//#endregion
|
|
5294
5639
|
//#region src/components/Sidebar/filterUtils.ts
|
|
5295
|
-
function
|
|
5640
|
+
function Dr(t, n) {
|
|
5296
5641
|
let r = 0;
|
|
5297
5642
|
return e.forEach(t, (e) => {
|
|
5298
5643
|
if (!a(e)) return;
|
|
5299
5644
|
let t = e.props;
|
|
5300
|
-
typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r +=
|
|
5645
|
+
typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += Dr(t.children, n));
|
|
5301
5646
|
}), r;
|
|
5302
5647
|
}
|
|
5303
|
-
function
|
|
5648
|
+
function Or(e, t) {
|
|
5304
5649
|
if (!t || !a(e)) return !0;
|
|
5305
5650
|
let n = e.props;
|
|
5306
|
-
return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ?
|
|
5651
|
+
return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? Dr(n.children, t) > 0 : !0;
|
|
5307
5652
|
}
|
|
5308
5653
|
//#endregion
|
|
5309
5654
|
//#region src/components/Sidebar/Sidebar.tsx
|
|
5310
|
-
var
|
|
5311
|
-
function
|
|
5312
|
-
return s(
|
|
5655
|
+
var kr = r(!1);
|
|
5656
|
+
function Ar() {
|
|
5657
|
+
return s(kr);
|
|
5313
5658
|
}
|
|
5314
|
-
var
|
|
5315
|
-
let c = q(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) =>
|
|
5316
|
-
return /* @__PURE__ */ M(
|
|
5659
|
+
var jr = r(""), Mr = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
|
|
5660
|
+
let c = q(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => Or(e, i)), d = !l || u.length > 0;
|
|
5661
|
+
return /* @__PURE__ */ M(kr.Provider, {
|
|
5317
5662
|
value: r,
|
|
5318
|
-
children: /* @__PURE__ */ M(
|
|
5663
|
+
children: /* @__PURE__ */ M(jr.Provider, {
|
|
5319
5664
|
value: i,
|
|
5320
5665
|
children: /* @__PURE__ */ M(k, {
|
|
5321
5666
|
ref: s,
|
|
@@ -5337,7 +5682,7 @@ var mr = r(""), hr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5337
5682
|
padding: c.space4
|
|
5338
5683
|
},
|
|
5339
5684
|
children: "No items match your search."
|
|
5340
|
-
}) : u.map((e, n) => /* @__PURE__ */ N(t, { children: [n > 0 && /* @__PURE__ */ M(
|
|
5685
|
+
}) : u.map((e, n) => /* @__PURE__ */ N(t, { children: [n > 0 && /* @__PURE__ */ M(Nt, {
|
|
5341
5686
|
testID: "sidebar-separator",
|
|
5342
5687
|
style: { marginVertical: c.space1 }
|
|
5343
5688
|
}), e] }, n))
|
|
@@ -5345,8 +5690,8 @@ var mr = r(""), hr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5345
5690
|
})
|
|
5346
5691
|
})
|
|
5347
5692
|
});
|
|
5348
|
-
}),
|
|
5349
|
-
let l = q(), u =
|
|
5693
|
+
}), Nr = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
|
|
5694
|
+
let l = q(), u = Ar(), d = s(jr);
|
|
5350
5695
|
return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ N(w, {
|
|
5351
5696
|
ref: c,
|
|
5352
5697
|
disabled: i,
|
|
@@ -5399,15 +5744,15 @@ var mr = r(""), hr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5399
5744
|
})
|
|
5400
5745
|
]
|
|
5401
5746
|
});
|
|
5402
|
-
}),
|
|
5403
|
-
let p = q(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v =
|
|
5747
|
+
}), Pr = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
|
|
5748
|
+
let p = q(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = Ar(), y = s(jr), b = (e) => {
|
|
5404
5749
|
g || h(e), a?.(e);
|
|
5405
5750
|
};
|
|
5406
5751
|
if (l(d, () => ({
|
|
5407
5752
|
expand: () => b(!0),
|
|
5408
5753
|
collapse: () => b(!1),
|
|
5409
5754
|
toggle: () => b(!_)
|
|
5410
|
-
})), !(y.length === 0 ||
|
|
5755
|
+
})), !(y.length === 0 || Dr(o, y) > 0)) return null;
|
|
5411
5756
|
let x = v ? !0 : _, S = !v && !!(e || t), C = (e || t) && /* @__PURE__ */ N(k, {
|
|
5412
5757
|
style: {
|
|
5413
5758
|
flexDirection: "row",
|
|
@@ -5460,7 +5805,7 @@ var mr = r(""), hr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5460
5805
|
children: o
|
|
5461
5806
|
})]
|
|
5462
5807
|
});
|
|
5463
|
-
}),
|
|
5808
|
+
}), Fr = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
|
|
5464
5809
|
let l = q(), u = J(), f = d(new m.Value(1)).current, p = a && !u;
|
|
5465
5810
|
if (c(() => {
|
|
5466
5811
|
if (!p) {
|
|
@@ -5519,22 +5864,22 @@ var mr = r(""), hr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5519
5864
|
],
|
|
5520
5865
|
...s
|
|
5521
5866
|
});
|
|
5522
|
-
},
|
|
5523
|
-
function
|
|
5867
|
+
}, Ir = 6, Lr = 22, Rr = 4;
|
|
5868
|
+
function zr(e, t, n) {
|
|
5524
5869
|
return Math.min(n, Math.max(t, e));
|
|
5525
5870
|
}
|
|
5526
|
-
function
|
|
5871
|
+
function Br(e, t, n, r) {
|
|
5527
5872
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
5528
5873
|
}
|
|
5529
|
-
function
|
|
5874
|
+
function Vr(e) {
|
|
5530
5875
|
let t = e.toString(), n = t.indexOf(".");
|
|
5531
5876
|
return n === -1 ? 0 : t.length - n - 1;
|
|
5532
5877
|
}
|
|
5533
|
-
var
|
|
5534
|
-
let m = q(), [h, g] = f(0), [_, v] = f({}), y =
|
|
5878
|
+
var Hr = ({ 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 }) => {
|
|
5879
|
+
let m = q(), [h, g] = f(0), [_, v] = f({}), y = Vr(i), b = zr(e, n, r), x = (b - n) / (r - n) * 100, C = o((e) => {
|
|
5535
5880
|
g(e.nativeEvent.layout.width), d?.(e);
|
|
5536
5881
|
}, [d]), w = o((e) => {
|
|
5537
|
-
a || h <= 0 || t(
|
|
5882
|
+
a || h <= 0 || t(zr(Br(e / h * (r - n) + n, n, i, y), n, r));
|
|
5538
5883
|
}, [
|
|
5539
5884
|
a,
|
|
5540
5885
|
h,
|
|
@@ -5551,10 +5896,10 @@ var Tr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5551
5896
|
}), [a, w]), E = o((o) => {
|
|
5552
5897
|
if (!a) switch (o.nativeEvent.actionName) {
|
|
5553
5898
|
case "increment":
|
|
5554
|
-
t(
|
|
5899
|
+
t(zr(Br(e + i, n, i, y), n, r));
|
|
5555
5900
|
break;
|
|
5556
5901
|
case "decrement":
|
|
5557
|
-
t(
|
|
5902
|
+
t(zr(Br(e - i, n, i, y), n, r));
|
|
5558
5903
|
break;
|
|
5559
5904
|
}
|
|
5560
5905
|
}, [
|
|
@@ -5565,7 +5910,7 @@ var Tr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5565
5910
|
r,
|
|
5566
5911
|
y,
|
|
5567
5912
|
t
|
|
5568
|
-
]), O = s && s.length > 0, A = O && s.some((e) => e.label), j = x / 100 * h -
|
|
5913
|
+
]), O = s && s.length > 0, A = O && s.some((e) => e.label), j = x / 100 * h - Lr / 2;
|
|
5569
5914
|
return /* @__PURE__ */ N(k, {
|
|
5570
5915
|
style: [{
|
|
5571
5916
|
width: "100%",
|
|
@@ -5594,7 +5939,7 @@ var Tr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5594
5939
|
onAccessibilityAction: E,
|
|
5595
5940
|
style: {
|
|
5596
5941
|
justifyContent: "center",
|
|
5597
|
-
height:
|
|
5942
|
+
height: Lr,
|
|
5598
5943
|
opacity: a ? m.opacityDisabled : 1
|
|
5599
5944
|
},
|
|
5600
5945
|
...T.panHandlers,
|
|
@@ -5603,7 +5948,7 @@ var Tr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5603
5948
|
pointerEvents: "none",
|
|
5604
5949
|
style: {
|
|
5605
5950
|
width: "100%",
|
|
5606
|
-
height:
|
|
5951
|
+
height: Ir,
|
|
5607
5952
|
borderRadius: m.radiusPill,
|
|
5608
5953
|
backgroundColor: m.cardShadeColor,
|
|
5609
5954
|
overflow: "hidden"
|
|
@@ -5620,8 +5965,8 @@ var Tr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5620
5965
|
style: {
|
|
5621
5966
|
position: "absolute",
|
|
5622
5967
|
left: j,
|
|
5623
|
-
width:
|
|
5624
|
-
height:
|
|
5968
|
+
width: Lr,
|
|
5969
|
+
height: Lr,
|
|
5625
5970
|
borderRadius: m.radiusPill,
|
|
5626
5971
|
backgroundColor: m.accentBgColor,
|
|
5627
5972
|
borderWidth: 2,
|
|
@@ -5641,10 +5986,10 @@ var Tr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5641
5986
|
importantForAccessibility: "no",
|
|
5642
5987
|
style: {
|
|
5643
5988
|
position: "absolute",
|
|
5644
|
-
left: (
|
|
5645
|
-
width:
|
|
5646
|
-
height:
|
|
5647
|
-
borderRadius:
|
|
5989
|
+
left: (zr(e.value, n, r) - n) / (r - n) * 100 / 100 * h - Rr / 2,
|
|
5990
|
+
width: Rr,
|
|
5991
|
+
height: Rr,
|
|
5992
|
+
borderRadius: Rr / 2,
|
|
5648
5993
|
backgroundColor: m.windowBgColor
|
|
5649
5994
|
}
|
|
5650
5995
|
}, e.value))
|
|
@@ -5668,7 +6013,7 @@ var Tr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5668
6013
|
},
|
|
5669
6014
|
style: {
|
|
5670
6015
|
position: "absolute",
|
|
5671
|
-
left: (
|
|
6016
|
+
left: (zr(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
|
|
5672
6017
|
fontFamily: m.fontFamily,
|
|
5673
6018
|
fontSize: m.fontSizeCaption,
|
|
5674
6019
|
color: m.windowFgColor,
|
|
@@ -5678,21 +6023,21 @@ var Tr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5678
6023
|
}, e.value))
|
|
5679
6024
|
})]
|
|
5680
6025
|
});
|
|
5681
|
-
},
|
|
5682
|
-
function
|
|
6026
|
+
}, Ur = 36;
|
|
6027
|
+
function Wr(e) {
|
|
5683
6028
|
let t = e.toString(), n = t.indexOf(".");
|
|
5684
6029
|
return n === -1 ? 0 : t.length - n - 1;
|
|
5685
6030
|
}
|
|
5686
|
-
function
|
|
6031
|
+
function Gr(e, t, n) {
|
|
5687
6032
|
return Math.min(n, Math.max(t, e));
|
|
5688
6033
|
}
|
|
5689
|
-
function
|
|
6034
|
+
function Kr(e, t, n, r) {
|
|
5690
6035
|
let i = n - t + r;
|
|
5691
6036
|
return ((e - t) % i + i) % i + t;
|
|
5692
6037
|
}
|
|
5693
|
-
var
|
|
5694
|
-
let f = q(), p = a ??
|
|
5695
|
-
let a = s ?
|
|
6038
|
+
var qr = ({ 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 }) => {
|
|
6039
|
+
let f = q(), p = a ?? Wr(i), m = o((e) => {
|
|
6040
|
+
let a = s ? Kr(e, n, r, i) : Gr(e, n, r);
|
|
5696
6041
|
t(parseFloat(a.toFixed(p)));
|
|
5697
6042
|
}, [
|
|
5698
6043
|
t,
|
|
@@ -5753,8 +6098,8 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5753
6098
|
disabled: _,
|
|
5754
6099
|
onPress: () => m(e - i),
|
|
5755
6100
|
style: ({ pressed: e }) => ({
|
|
5756
|
-
width:
|
|
5757
|
-
height:
|
|
6101
|
+
width: Ur,
|
|
6102
|
+
height: Ur,
|
|
5758
6103
|
alignItems: "center",
|
|
5759
6104
|
justifyContent: "center",
|
|
5760
6105
|
borderRightWidth: 1,
|
|
@@ -5791,8 +6136,8 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5791
6136
|
disabled: v,
|
|
5792
6137
|
onPress: () => m(e + i),
|
|
5793
6138
|
style: ({ pressed: e }) => ({
|
|
5794
|
-
width:
|
|
5795
|
-
height:
|
|
6139
|
+
width: Ur,
|
|
6140
|
+
height: Ur,
|
|
5796
6141
|
alignItems: "center",
|
|
5797
6142
|
justifyContent: "center",
|
|
5798
6143
|
borderLeftWidth: 1,
|
|
@@ -5811,7 +6156,7 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5811
6156
|
})
|
|
5812
6157
|
]
|
|
5813
6158
|
});
|
|
5814
|
-
},
|
|
6159
|
+
}, Jr = {
|
|
5815
6160
|
sm: {
|
|
5816
6161
|
dimension: 16,
|
|
5817
6162
|
borderWidth: 2
|
|
@@ -5824,7 +6169,7 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5824
6169
|
dimension: 36,
|
|
5825
6170
|
borderWidth: 3
|
|
5826
6171
|
}
|
|
5827
|
-
},
|
|
6172
|
+
}, Yr = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
|
|
5828
6173
|
let i = q(), a = K(), o = J(), s = d(new m.Value(0)).current;
|
|
5829
6174
|
c(() => {
|
|
5830
6175
|
s.setValue(0);
|
|
@@ -5839,7 +6184,7 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5839
6184
|
let l = s.interpolate({
|
|
5840
6185
|
inputRange: [0, 1],
|
|
5841
6186
|
outputRange: ["0deg", "360deg"]
|
|
5842
|
-
}), { dimension: u, borderWidth: f } =
|
|
6187
|
+
}), { dimension: u, borderWidth: f } = Jr[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
|
|
5843
6188
|
return /* @__PURE__ */ M(m.View, {
|
|
5844
6189
|
accessible: !0,
|
|
5845
6190
|
accessibilityRole: "progressbar",
|
|
@@ -5857,34 +6202,7 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5857
6202
|
}, n],
|
|
5858
6203
|
...r
|
|
5859
6204
|
});
|
|
5860
|
-
},
|
|
5861
|
-
start: "flex-start",
|
|
5862
|
-
center: "center",
|
|
5863
|
-
end: "flex-end",
|
|
5864
|
-
stretch: "stretch"
|
|
5865
|
-
}, Pr = {
|
|
5866
|
-
start: "flex-start",
|
|
5867
|
-
center: "center",
|
|
5868
|
-
end: "flex-end",
|
|
5869
|
-
"space-between": "space-between",
|
|
5870
|
-
"space-around": "space-around",
|
|
5871
|
-
"space-evenly": "space-evenly"
|
|
5872
|
-
}, Fr = i(function({ childSpacing: e = 6, lineSpacing: t, justify: n = "start", align: r = "center", wrapReverse: i = !1, children: a, style: o, ...s }, c) {
|
|
5873
|
-
return /* @__PURE__ */ M(k, {
|
|
5874
|
-
ref: c,
|
|
5875
|
-
style: [{
|
|
5876
|
-
flexDirection: "row",
|
|
5877
|
-
flexWrap: i ? "wrap-reverse" : "wrap",
|
|
5878
|
-
columnGap: e,
|
|
5879
|
-
rowGap: t ?? e,
|
|
5880
|
-
justifyContent: Pr[n],
|
|
5881
|
-
alignItems: Nr[r],
|
|
5882
|
-
alignContent: "stretch"
|
|
5883
|
-
}, o],
|
|
5884
|
-
...s,
|
|
5885
|
-
children: a
|
|
5886
|
-
});
|
|
5887
|
-
}), Ir = (e) => Math.round(36 * .5 * e), Lr = i(function({ icon: e, iconNode: t, title: n, description: r, children: i, compact: a = !1, style: o, ...s }, c) {
|
|
6205
|
+
}, Xr = (e) => Math.round(36 * .5 * e), Zr = i(function({ icon: e, iconNode: t, title: n, description: r, children: i, compact: a = !1, style: o, ...s }, c) {
|
|
5888
6206
|
let l = q(), u = K(), d = a ? 64 : 128, f = e ? /* @__PURE__ */ M(X, {
|
|
5889
6207
|
icon: e,
|
|
5890
6208
|
width: d,
|
|
@@ -5922,12 +6240,12 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5922
6240
|
color: "dim",
|
|
5923
6241
|
style: {
|
|
5924
6242
|
textAlign: "center",
|
|
5925
|
-
maxWidth:
|
|
6243
|
+
maxWidth: Xr(p),
|
|
5926
6244
|
marginTop: a ? l.space1 : l.space2
|
|
5927
6245
|
},
|
|
5928
6246
|
children: r
|
|
5929
6247
|
}) : null,
|
|
5930
|
-
i ? /* @__PURE__ */ M(
|
|
6248
|
+
i ? /* @__PURE__ */ M(rn, {
|
|
5931
6249
|
justify: "center",
|
|
5932
6250
|
childSpacing: a ? l.space1 : l.space2,
|
|
5933
6251
|
style: { marginTop: a ? l.space2 : l.space4 },
|
|
@@ -5935,8 +6253,8 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5935
6253
|
}) : null
|
|
5936
6254
|
]
|
|
5937
6255
|
});
|
|
5938
|
-
}),
|
|
5939
|
-
let o = q(), s = K(), l =
|
|
6256
|
+
}), Qr = 56, $r = 28, ei = 20, ti = 3, ni = 28, ri = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
|
|
6257
|
+
let o = q(), s = K(), l = Me(), u = d(new m.Value(+!!e)).current, f = d(!0);
|
|
5940
6258
|
c(() => {
|
|
5941
6259
|
if (f.current) {
|
|
5942
6260
|
f.current = !1;
|
|
@@ -5975,8 +6293,8 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5975
6293
|
...i,
|
|
5976
6294
|
children: /* @__PURE__ */ M(m.View, {
|
|
5977
6295
|
style: {
|
|
5978
|
-
width:
|
|
5979
|
-
height:
|
|
6296
|
+
width: Qr,
|
|
6297
|
+
height: $r,
|
|
5980
6298
|
borderRadius: o.radiusPill,
|
|
5981
6299
|
borderWidth: l === "more" ? 2 : 1,
|
|
5982
6300
|
borderColor: v,
|
|
@@ -5984,15 +6302,15 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5984
6302
|
},
|
|
5985
6303
|
children: /* @__PURE__ */ M(m.View, { style: [{
|
|
5986
6304
|
position: "absolute",
|
|
5987
|
-
top:
|
|
5988
|
-
left:
|
|
5989
|
-
width:
|
|
5990
|
-
height:
|
|
6305
|
+
top: ti,
|
|
6306
|
+
left: ti,
|
|
6307
|
+
width: ei,
|
|
6308
|
+
height: ei,
|
|
5991
6309
|
borderRadius: o.radiusPill,
|
|
5992
6310
|
backgroundColor: e ? "#fff" : h,
|
|
5993
6311
|
transform: [{ translateX: u.interpolate({
|
|
5994
6312
|
inputRange: [0, 1],
|
|
5995
|
-
outputRange: [0,
|
|
6313
|
+
outputRange: [0, ni]
|
|
5996
6314
|
}) }]
|
|
5997
6315
|
}, l !== "more" && {
|
|
5998
6316
|
shadowColor: "#000",
|
|
@@ -6006,7 +6324,7 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6006
6324
|
}] })
|
|
6007
6325
|
})
|
|
6008
6326
|
});
|
|
6009
|
-
}),
|
|
6327
|
+
}), ii = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
|
|
6010
6328
|
let o = q();
|
|
6011
6329
|
return /* @__PURE__ */ M(T, {
|
|
6012
6330
|
ref: a,
|
|
@@ -6032,7 +6350,7 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6032
6350
|
...i,
|
|
6033
6351
|
children: e
|
|
6034
6352
|
});
|
|
6035
|
-
}),
|
|
6353
|
+
}), ai = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
|
|
6036
6354
|
let l = q();
|
|
6037
6355
|
return /* @__PURE__ */ N(w, {
|
|
6038
6356
|
ref: c,
|
|
@@ -6132,7 +6450,7 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6132
6450
|
})
|
|
6133
6451
|
]
|
|
6134
6452
|
});
|
|
6135
|
-
}),
|
|
6453
|
+
}), oi = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
|
|
6136
6454
|
return /* @__PURE__ */ M(k, {
|
|
6137
6455
|
ref: i,
|
|
6138
6456
|
style: [{ display: e ? "flex" : "none" }, t],
|
|
@@ -6142,14 +6460,14 @@ var Ar = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6142
6460
|
});
|
|
6143
6461
|
//#endregion
|
|
6144
6462
|
//#region src/components/TextField/TextField.tsx
|
|
6145
|
-
function
|
|
6463
|
+
function si(e, t) {
|
|
6146
6464
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
6147
6465
|
if (!n) return e;
|
|
6148
6466
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
6149
6467
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
6150
6468
|
}
|
|
6151
|
-
var
|
|
6152
|
-
let p = q(), m =
|
|
6469
|
+
var ci = 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) {
|
|
6470
|
+
let p = q(), m = Me(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
|
|
6153
6471
|
return /* @__PURE__ */ N(k, {
|
|
6154
6472
|
style: [{
|
|
6155
6473
|
gap: p.space1,
|
|
@@ -6166,7 +6484,7 @@ var Jr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6166
6484
|
editable: a,
|
|
6167
6485
|
accessibilityLabel: c ?? e,
|
|
6168
6486
|
accessibilityHint: l ?? v,
|
|
6169
|
-
placeholderTextColor:
|
|
6487
|
+
placeholderTextColor: si(p.windowFgColor, p.opacityDim),
|
|
6170
6488
|
onFocus: (e) => {
|
|
6171
6489
|
g(!0), o?.(e);
|
|
6172
6490
|
},
|
|
@@ -6198,7 +6516,7 @@ var Jr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6198
6516
|
})
|
|
6199
6517
|
]
|
|
6200
6518
|
});
|
|
6201
|
-
}),
|
|
6519
|
+
}), li = m.createAnimatedComponent(w), ui = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
|
|
6202
6520
|
let u = q(), f = K(), p = J(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
|
|
6203
6521
|
h.current &&= (clearTimeout(h.current), null);
|
|
6204
6522
|
}, []), x = o((e) => {
|
|
@@ -6244,7 +6562,7 @@ var Jr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6244
6562
|
shadowRadius: 8,
|
|
6245
6563
|
elevation: 4
|
|
6246
6564
|
};
|
|
6247
|
-
return /* @__PURE__ */ N(
|
|
6565
|
+
return /* @__PURE__ */ N(li, {
|
|
6248
6566
|
accessible: !0,
|
|
6249
6567
|
accessibilityRole: "alert",
|
|
6250
6568
|
accessibilityLiveRegion: "polite",
|
|
@@ -6330,7 +6648,7 @@ var Jr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6330
6648
|
})
|
|
6331
6649
|
})] })]
|
|
6332
6650
|
});
|
|
6333
|
-
},
|
|
6651
|
+
}, di = ({ position: e = "bottom", children: t, style: n, ...r }) => {
|
|
6334
6652
|
let i = q();
|
|
6335
6653
|
return /* @__PURE__ */ M(k, {
|
|
6336
6654
|
pointerEvents: "box-none",
|
|
@@ -6350,18 +6668,18 @@ var Jr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6350
6668
|
...r,
|
|
6351
6669
|
children: t
|
|
6352
6670
|
});
|
|
6353
|
-
},
|
|
6354
|
-
function
|
|
6355
|
-
let e = s(
|
|
6671
|
+
}, fi = r(null);
|
|
6672
|
+
function pi() {
|
|
6673
|
+
let e = s(fi);
|
|
6356
6674
|
if (!e) throw Error("ToggleGroupItem must be used inside ToggleGroup");
|
|
6357
6675
|
return e;
|
|
6358
6676
|
}
|
|
6359
|
-
var
|
|
6677
|
+
var mi = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Options", children: r, style: i, ...a }, o) {
|
|
6360
6678
|
let s = q(), c = K(), l = u(() => ({
|
|
6361
6679
|
value: e,
|
|
6362
6680
|
onValueChange: t
|
|
6363
6681
|
}), [e, t]);
|
|
6364
|
-
return /* @__PURE__ */ M(
|
|
6682
|
+
return /* @__PURE__ */ M(fi.Provider, {
|
|
6365
6683
|
value: l,
|
|
6366
6684
|
children: /* @__PURE__ */ M(k, {
|
|
6367
6685
|
ref: o,
|
|
@@ -6382,8 +6700,8 @@ var ei = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Optio
|
|
|
6382
6700
|
children: r
|
|
6383
6701
|
})
|
|
6384
6702
|
});
|
|
6385
|
-
}),
|
|
6386
|
-
let s = q(), c = K(), { value: l, onValueChange: u } =
|
|
6703
|
+
}), hi = i(function({ name: e, label: t, icon: n, accessibilityLabel: r, disabled: i = !1, ...a }, o) {
|
|
6704
|
+
let s = q(), c = K(), { value: l, onValueChange: u } = pi(), d = l === e, f = !!n && !t, p = c === "dark";
|
|
6387
6705
|
return /* @__PURE__ */ N(w, {
|
|
6388
6706
|
ref: o,
|
|
6389
6707
|
disabled: i,
|
|
@@ -6427,7 +6745,7 @@ var ei = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Optio
|
|
|
6427
6745
|
children: t
|
|
6428
6746
|
}) : null]
|
|
6429
6747
|
});
|
|
6430
|
-
}),
|
|
6748
|
+
}), gi = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
|
|
6431
6749
|
let a = q(), o = K();
|
|
6432
6750
|
return /* @__PURE__ */ N(k, {
|
|
6433
6751
|
ref: i,
|
|
@@ -6454,7 +6772,7 @@ var ei = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Optio
|
|
|
6454
6772
|
children: e
|
|
6455
6773
|
})]
|
|
6456
6774
|
});
|
|
6457
|
-
}),
|
|
6775
|
+
}), _i = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
|
|
6458
6776
|
let o = q();
|
|
6459
6777
|
return /* @__PURE__ */ N(w, {
|
|
6460
6778
|
ref: a,
|
|
@@ -6492,6 +6810,6 @@ var ei = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Optio
|
|
|
6492
6810
|
});
|
|
6493
6811
|
});
|
|
6494
6812
|
//#endregion
|
|
6495
|
-
export {
|
|
6813
|
+
export { We as ActionRow, st as AnimatedIcon, mt as Avatar, vt as AvatarGroup, St as AvatarRotator, wt as Badge, Tt as Banner, Et as Bin, kt as BottomSheet, Mt as Box, Pt as BoxedList, Rt as Button, Bt as Card, Ht as Checkbox, Ut as Chip, Gt as Clamp, Qt as CoachMark, en as CoachMarkTour, cn as ColorPicker, on as ColorSwatch, hn as ComboRow, _n as Dialog, vn as Divider, Mn as Drawer, pn as Dropdown, Pn as EntryRow, Fn as Expander, Gn as FileTypeIcon, sn as GNOME_PALETTE, G as GnomeContext, Be as GnomeProvider, Kn as HeaderBar, Jn as Highlight, X as Icon, En as IconButton, tr as InlineViewSwitcher, nr as InlineViewSwitcherItem, ar as LevelBar, or as Link, Fe as NAMED_ACCENT_COLORS, cr as Overlay, lr as PasswordEntryRow, ur as PathBar, gr as Popover, _r as PreferencesGroup, vr as ProgressBar, xr as RadioButton, Cr as SearchBar, Er as SegmentedBar, Nt as Separator, Mr as Sidebar, kr as SidebarCollapsedContext, jr as SidebarFilterContext, Nr as SidebarItem, Pr as SidebarSection, Fr as Skeleton, Hr as Slider, qr as SpinButton, Yr as Spinner, Zr as StatusPage, ri as Switch, ii as TabBar, ai as TabItem, oi as TabPanel, Y as Text, ci as TextField, ui as Toast, di as Toaster, mi as ToggleGroup, hi as ToggleGroupItem, wn as Tooltip, gi as ViewSwitcher, _i as ViewSwitcherItem, rn as WrapBox, Re as applyAccentColor, Ce as darkRawTokens, ye as darkTheme, Te as highContrastDarkRawTokens, xe as highContrastDarkTheme, we as highContrastRawTokens, be as highContrastTheme, Se as lightRawTokens, ve as lightTheme, Ie as resolveColorScheme, Le as resolveContrast, Pe as resolveGnomeTheme, Ne as useAccentColor, Ae as useColorScheme, je as useContrast, ke as useDateTimeFormatter, De as useDir, q as useGnomeTheme, Ee as useLocale, Oe as useNumberFormatter, J as useReducedMotion, K as useResolvedColorScheme, Me as useResolvedContrast, Ar as useSidebarCollapsed };
|
|
6496
6814
|
|
|
6497
6815
|
//# sourceMappingURL=index.js.map
|