@gnome-ui/react-native 1.5.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 +647 -3
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +47 -0
- package/dist/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/AvatarRotator/AvatarRotator.d.ts +65 -0
- package/dist/components/AvatarRotator/index.d.ts +2 -0
- package/dist/components/Bin/Bin.d.ts +18 -0
- package/dist/components/Bin/index.d.ts +2 -0
- package/dist/components/Box/Box.d.ts +87 -0
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Clamp/Clamp.d.ts +61 -0
- package/dist/components/Clamp/index.d.ts +2 -0
- package/dist/components/CoachMark/CoachMark.d.ts +92 -0
- package/dist/components/CoachMark/CoachMarkTour.d.ts +54 -0
- package/dist/components/CoachMark/coachMarkUtils.d.ts +42 -0
- package/dist/components/CoachMark/index.d.ts +5 -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/InlineViewSwitcher/InlineViewSwitcher.d.ts +93 -0
- package/dist/components/InlineViewSwitcher/InlineViewSwitcherItem.d.ts +25 -0
- package/dist/components/InlineViewSwitcher/index.d.ts +4 -0
- package/dist/components/InlineViewSwitcher/variants.d.ts +30 -0
- package/dist/components/PasswordEntryRow/PasswordEntryRow.d.ts +45 -0
- package/dist/components/PasswordEntryRow/index.d.ts +2 -0
- package/dist/components/PreferencesGroup/PreferencesGroup.d.ts +52 -0
- package/dist/components/PreferencesGroup/index.d.ts +2 -0
- package/dist/components/StatusPage/StatusPage.d.ts +79 -0
- package/dist/components/StatusPage/index.d.ts +2 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +70 -0
- package/dist/components/ToggleGroup/ToggleGroupItem.d.ts +49 -0
- package/dist/components/ToggleGroup/index.d.ts +4 -0
- package/dist/components/WrapBox/WrapBox.d.ts +67 -0
- package/dist/components/WrapBox/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.js +2057 -645
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 me, G as he, Path 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
7
|
var ve = {
|
|
8
8
|
accentBgColor: "#3584e4",
|
|
@@ -1132,7 +1132,7 @@ var ve = {
|
|
|
1132
1132
|
"--gnome-yellow-3": "#f6d32d",
|
|
1133
1133
|
"--gnome-yellow-4": "#f5c211",
|
|
1134
1134
|
"--gnome-yellow-5": "#e5a50a"
|
|
1135
|
-
},
|
|
1135
|
+
}, G = r({
|
|
1136
1136
|
locale: void 0,
|
|
1137
1137
|
dir: "ltr",
|
|
1138
1138
|
numberFormat: void 0,
|
|
@@ -1145,13 +1145,13 @@ var ve = {
|
|
|
1145
1145
|
theme: ve
|
|
1146
1146
|
});
|
|
1147
1147
|
function Ee() {
|
|
1148
|
-
return s(
|
|
1148
|
+
return s(G).locale;
|
|
1149
1149
|
}
|
|
1150
1150
|
function De() {
|
|
1151
|
-
return s(
|
|
1151
|
+
return s(G).dir;
|
|
1152
1152
|
}
|
|
1153
1153
|
function Oe(e) {
|
|
1154
|
-
let { locale: t, numberFormat: n } = s(
|
|
1154
|
+
let { locale: t, numberFormat: n } = s(G);
|
|
1155
1155
|
return u(() => new Intl.NumberFormat(t, {
|
|
1156
1156
|
...n,
|
|
1157
1157
|
...e
|
|
@@ -1162,7 +1162,7 @@ function Oe(e) {
|
|
|
1162
1162
|
]);
|
|
1163
1163
|
}
|
|
1164
1164
|
function ke(e) {
|
|
1165
|
-
let { locale: t, dateTimeFormat: n } = s(
|
|
1165
|
+
let { locale: t, dateTimeFormat: n } = s(G);
|
|
1166
1166
|
return u(() => new Intl.DateTimeFormat(t, {
|
|
1167
1167
|
...n,
|
|
1168
1168
|
...e
|
|
@@ -1173,31 +1173,31 @@ function ke(e) {
|
|
|
1173
1173
|
]);
|
|
1174
1174
|
}
|
|
1175
1175
|
function Ae() {
|
|
1176
|
-
return s(
|
|
1176
|
+
return s(G).colorScheme;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return s(
|
|
1178
|
+
function K() {
|
|
1179
|
+
return s(G).resolvedColorScheme;
|
|
1180
1180
|
}
|
|
1181
1181
|
function je() {
|
|
1182
|
-
return s(
|
|
1183
|
-
}
|
|
1184
|
-
function U() {
|
|
1185
|
-
return s(V).resolvedContrast;
|
|
1182
|
+
return s(G).contrast;
|
|
1186
1183
|
}
|
|
1187
1184
|
function Me() {
|
|
1188
|
-
return s(
|
|
1185
|
+
return s(G).resolvedContrast;
|
|
1186
|
+
}
|
|
1187
|
+
function Ne() {
|
|
1188
|
+
return s(G).accentColor;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return s(
|
|
1190
|
+
function q() {
|
|
1191
|
+
return s(G).theme;
|
|
1192
1192
|
}
|
|
1193
1193
|
//#endregion
|
|
1194
1194
|
//#region src/theme/resolveTheme.ts
|
|
1195
|
-
function
|
|
1195
|
+
function Pe({ colorScheme: e, contrast: t = "normal" }) {
|
|
1196
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 Pe = 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 Le(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;
|
|
@@ -1240,7 +1240,7 @@ function Re() {
|
|
|
1240
1240
|
};
|
|
1241
1241
|
}, []), e;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function J() {
|
|
1244
1244
|
let [e, t] = f(!1);
|
|
1245
1245
|
return c(() => {
|
|
1246
1246
|
let e = !0;
|
|
@@ -1254,8 +1254,8 @@ function G() {
|
|
|
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 ze = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1265
1265
|
contrast: a,
|
|
1266
1266
|
resolvedContrast: f,
|
|
1267
1267
|
accentColor: o,
|
|
1268
|
-
theme:
|
|
1268
|
+
theme: Re(Pe({
|
|
1269
1269
|
colorScheme: d,
|
|
1270
1270
|
contrast: f
|
|
1271
1271
|
}), o, d, f)
|
|
@@ -1280,11 +1280,11 @@ var ze = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1280
1280
|
f,
|
|
1281
1281
|
o
|
|
1282
1282
|
]);
|
|
1283
|
-
return /* @__PURE__ */ M(
|
|
1283
|
+
return /* @__PURE__ */ M(G.Provider, {
|
|
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 ze = ({ 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 Ve(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,
|
|
@@ -1375,22 +1375,22 @@ function He(e, t) {
|
|
|
1375
1375
|
default: return { color: e.windowFgColor };
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
var
|
|
1379
|
-
let s =
|
|
1378
|
+
var Y = i(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
|
|
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
|
-
}),
|
|
1393
|
-
let u =
|
|
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
|
+
let u = q(), d = a === "property", f = {
|
|
1394
1394
|
flexDirection: "row",
|
|
1395
1395
|
alignItems: "center",
|
|
1396
1396
|
gap: u.space2,
|
|
@@ -1408,13 +1408,13 @@ var K = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1408
1408
|
flex: 1,
|
|
1409
1409
|
gap: 2
|
|
1410
1410
|
},
|
|
1411
|
-
children: [/* @__PURE__ */ M(
|
|
1411
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
1412
1412
|
variant: d ? "caption" : "body",
|
|
1413
1413
|
color: d ? "dim" : "default",
|
|
1414
1414
|
numberOfLines: 1,
|
|
1415
1415
|
ellipsizeMode: "tail",
|
|
1416
1416
|
children: e
|
|
1417
|
-
}), t && /* @__PURE__ */ M(
|
|
1417
|
+
}), t && /* @__PURE__ */ M(Y, {
|
|
1418
1418
|
variant: d ? "body" : "caption",
|
|
1419
1419
|
color: d ? "default" : "dim",
|
|
1420
1420
|
numberOfLines: 1,
|
|
@@ -1456,12 +1456,12 @@ var K = 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 Ge(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,19 +1485,19 @@ function Ke(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
|
-
var
|
|
1495
|
-
let s =
|
|
1494
|
+
var X = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
|
|
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(
|
|
1500
|
+
}, t)) : [/* @__PURE__ */ M(W, { d: e.path }, 0)], p = qe(i);
|
|
1501
1501
|
return d ? /* @__PURE__ */ M(_e, {
|
|
1502
1502
|
xml: `<svg viewBox="${u}">${d}</svg>`,
|
|
1503
1503
|
width: n ?? c,
|
|
@@ -1514,8 +1514,8 @@ var q = ({ 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 Qe(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 $e(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 et = ({ fill: e }) => /* @__PURE__ */ M(Ye, {
|
|
|
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 et = ({ fill: e }) => /* @__PURE__ */ M(Ye, {
|
|
|
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,44 +1642,44 @@ var rt = ({ 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 =
|
|
1682
|
-
if (!l) return /* @__PURE__ */ M(
|
|
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
|
+
if (!l) return /* @__PURE__ */ M(X, {
|
|
1683
1683
|
icon: e,
|
|
1684
1684
|
size: n,
|
|
1685
1685
|
width: r,
|
|
@@ -1687,7 +1687,7 @@ var rt = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1687
1687
|
label: a,
|
|
1688
1688
|
color: o
|
|
1689
1689
|
});
|
|
1690
|
-
let u =
|
|
1690
|
+
let u = Ge[n], d = Ke(s, o), f = qe(a);
|
|
1691
1691
|
return /* @__PURE__ */ M(ge, {
|
|
1692
1692
|
viewBox: e.viewBox,
|
|
1693
1693
|
width: r ?? u,
|
|
@@ -1695,7 +1695,7 @@ var rt = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
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 rt = ({ 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 dt(e, t) {
|
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
var
|
|
1769
|
-
let o =
|
|
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,17 +1798,164 @@ var ft = ({ 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
|
+
}, ht = {
|
|
1809
|
+
sm: 6,
|
|
1810
|
+
md: 8,
|
|
1811
|
+
lg: 12,
|
|
1812
|
+
xl: 16
|
|
1813
|
+
}, gt = {
|
|
1814
|
+
sm: 24,
|
|
1815
|
+
md: 32,
|
|
1816
|
+
lg: 48,
|
|
1817
|
+
xl: 64
|
|
1818
|
+
}, _t = {
|
|
1819
|
+
sm: 8,
|
|
1820
|
+
md: 9.6,
|
|
1821
|
+
lg: 14,
|
|
1822
|
+
xl: 17.6
|
|
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
|
+
return /* @__PURE__ */ N(k, {
|
|
1826
|
+
testID: a,
|
|
1827
|
+
accessible: !0,
|
|
1828
|
+
role: "group",
|
|
1829
|
+
accessibilityLabel: u,
|
|
1830
|
+
style: [{
|
|
1831
|
+
flexDirection: "row",
|
|
1832
|
+
alignItems: "center"
|
|
1833
|
+
}, i],
|
|
1834
|
+
children: [s.map((e, t) => /* @__PURE__ */ M(mt, {
|
|
1835
|
+
name: e.name,
|
|
1836
|
+
src: e.src,
|
|
1837
|
+
alt: e.alt ?? e.name,
|
|
1838
|
+
color: e.color,
|
|
1839
|
+
size: n,
|
|
1840
|
+
style: {
|
|
1841
|
+
marginStart: t === 0 ? 0 : -d,
|
|
1842
|
+
borderWidth: 2,
|
|
1843
|
+
borderColor: o.windowBgColor
|
|
1844
|
+
}
|
|
1845
|
+
}, `${e.name ?? ""}-${e.src ?? ""}-${t}`)), c > 0 && /* @__PURE__ */ M(k, {
|
|
1846
|
+
accessible: !0,
|
|
1847
|
+
accessibilityLabel: `+${c} more`,
|
|
1848
|
+
style: {
|
|
1849
|
+
width: gt[n],
|
|
1850
|
+
height: gt[n],
|
|
1851
|
+
marginStart: -d,
|
|
1852
|
+
borderRadius: o.radiusPill,
|
|
1853
|
+
borderWidth: 2,
|
|
1854
|
+
borderColor: o.windowBgColor,
|
|
1855
|
+
backgroundColor: o.dark2,
|
|
1856
|
+
alignItems: "center",
|
|
1857
|
+
justifyContent: "center"
|
|
1858
|
+
},
|
|
1859
|
+
children: /* @__PURE__ */ M(D, {
|
|
1860
|
+
accessibilityElementsHidden: !0,
|
|
1861
|
+
importantForAccessibility: "no",
|
|
1862
|
+
style: {
|
|
1863
|
+
fontFamily: o.fontFamily,
|
|
1864
|
+
fontWeight: String(o.fontWeightSemibold),
|
|
1865
|
+
fontSize: _t[n],
|
|
1866
|
+
color: "#fff"
|
|
1867
|
+
},
|
|
1868
|
+
children: `+${c}`
|
|
1869
|
+
})
|
|
1870
|
+
})]
|
|
1871
|
+
});
|
|
1872
|
+
};
|
|
1873
|
+
//#endregion
|
|
1874
|
+
//#region src/components/AvatarRotator/AvatarRotator.tsx
|
|
1875
|
+
function yt(e, t) {
|
|
1876
|
+
return t <= 0 ? 0 : (e % t + t) % t;
|
|
1877
|
+
}
|
|
1878
|
+
var bt = {
|
|
1879
|
+
sm: 24,
|
|
1880
|
+
md: 32,
|
|
1881
|
+
lg: 48,
|
|
1882
|
+
xl: 64
|
|
1883
|
+
}, xt = ({ active: e, duration: t, reducedMotion: n, children: r }) => {
|
|
1884
|
+
let i = d(new m.Value(+!!e)).current;
|
|
1885
|
+
return c(() => {
|
|
1886
|
+
if (n) {
|
|
1887
|
+
i.setValue(+!!e);
|
|
1888
|
+
return;
|
|
1889
|
+
}
|
|
1890
|
+
m.timing(i, {
|
|
1891
|
+
toValue: +!!e,
|
|
1892
|
+
duration: t,
|
|
1893
|
+
useNativeDriver: !0
|
|
1894
|
+
}).start();
|
|
1895
|
+
}, [
|
|
1896
|
+
e,
|
|
1897
|
+
t,
|
|
1898
|
+
n,
|
|
1899
|
+
i
|
|
1900
|
+
]), /* @__PURE__ */ M(m.View, {
|
|
1901
|
+
accessibilityElementsHidden: !0,
|
|
1902
|
+
importantForAccessibility: "no",
|
|
1903
|
+
style: [E.absoluteFill, { opacity: i }],
|
|
1904
|
+
children: r
|
|
1905
|
+
});
|
|
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
|
+
if (c(() => {
|
|
1909
|
+
if (g.length <= 1 || a <= 0 || b || h) return;
|
|
1910
|
+
let e = setInterval(() => {
|
|
1911
|
+
let e = yt(S + 1, g.length);
|
|
1912
|
+
_ || y(e), d?.(e);
|
|
1913
|
+
}, a);
|
|
1914
|
+
return () => clearInterval(e);
|
|
1915
|
+
}, [
|
|
1916
|
+
S,
|
|
1917
|
+
a,
|
|
1918
|
+
_,
|
|
1919
|
+
b,
|
|
1920
|
+
d,
|
|
1921
|
+
h,
|
|
1922
|
+
g.length
|
|
1923
|
+
]), g.length === 0) return /* @__PURE__ */ M(mt, {
|
|
1924
|
+
name: e,
|
|
1925
|
+
alt: n,
|
|
1926
|
+
size: r,
|
|
1927
|
+
color: i,
|
|
1928
|
+
style: p
|
|
1929
|
+
});
|
|
1930
|
+
let C = n ?? (e || void 0) ?? "Avatar", T = bt[r];
|
|
1931
|
+
return /* @__PURE__ */ M(w, {
|
|
1932
|
+
testID: m,
|
|
1933
|
+
accessible: !0,
|
|
1934
|
+
role: "img",
|
|
1935
|
+
accessibilityLabel: C,
|
|
1936
|
+
onPressIn: () => s && x(!0),
|
|
1937
|
+
onPressOut: () => s && x(!1),
|
|
1938
|
+
style: [{
|
|
1939
|
+
width: T,
|
|
1940
|
+
height: T,
|
|
1941
|
+
borderRadius: T / 2,
|
|
1942
|
+
overflow: "hidden"
|
|
1943
|
+
}, p],
|
|
1944
|
+
children: g.map((t, n) => /* @__PURE__ */ M(xt, {
|
|
1945
|
+
active: n === S,
|
|
1946
|
+
duration: Math.max(0, o),
|
|
1947
|
+
reducedMotion: h,
|
|
1948
|
+
children: /* @__PURE__ */ M(mt, {
|
|
1949
|
+
name: e,
|
|
1950
|
+
src: t,
|
|
1951
|
+
size: r
|
|
1952
|
+
})
|
|
1953
|
+
}, `${t}-${n}`))
|
|
1954
|
+
});
|
|
1808
1955
|
};
|
|
1809
1956
|
//#endregion
|
|
1810
1957
|
//#region src/components/Badge/Badge.tsx
|
|
1811
|
-
function
|
|
1958
|
+
function Ct(e, t, n) {
|
|
1812
1959
|
switch (n) {
|
|
1813
1960
|
case "accent": return {
|
|
1814
1961
|
backgroundColor: e.accentBgColor,
|
|
@@ -1832,8 +1979,8 @@ function pt(e, t, n) {
|
|
|
1832
1979
|
};
|
|
1833
1980
|
}
|
|
1834
1981
|
}
|
|
1835
|
-
var
|
|
1836
|
-
let a =
|
|
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, {
|
|
1837
1984
|
testID: "badge-ring",
|
|
1838
1985
|
style: [{
|
|
1839
1986
|
padding: 2,
|
|
@@ -1872,8 +2019,8 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
1872
2019
|
style: { alignSelf: "flex-start" },
|
|
1873
2020
|
children: [r, c]
|
|
1874
2021
|
}) : c;
|
|
1875
|
-
},
|
|
1876
|
-
let c =
|
|
2022
|
+
}, Tt = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
|
|
2023
|
+
let c = q(), l = {
|
|
1877
2024
|
info: {
|
|
1878
2025
|
bg: c.accentBgColor,
|
|
1879
2026
|
fg: c.accentFgColor
|
|
@@ -1906,7 +2053,7 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
1906
2053
|
backgroundColor: l.bg
|
|
1907
2054
|
}, o],
|
|
1908
2055
|
...s,
|
|
1909
|
-
children: [/* @__PURE__ */ M(
|
|
2056
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
1910
2057
|
variant: "body",
|
|
1911
2058
|
style: {
|
|
1912
2059
|
flex: 1,
|
|
@@ -1964,8 +2111,13 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
1964
2111
|
})]
|
|
1965
2112
|
})]
|
|
1966
2113
|
});
|
|
1967
|
-
},
|
|
1968
|
-
|
|
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 }) => {
|
|
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);
|
|
1969
2121
|
c(() => {
|
|
1970
2122
|
e && _(!0);
|
|
1971
2123
|
}, [e]), c(() => {
|
|
@@ -2022,7 +2174,7 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2022
2174
|
b.setValue(Math.max(0, t.dy));
|
|
2023
2175
|
},
|
|
2024
2176
|
onPanResponderRelease: (e, t) => {
|
|
2025
|
-
T.current = !1, Math.max(0, t.dy) >=
|
|
2177
|
+
T.current = !1, Math.max(0, t.dy) >= Ot ? r?.() : m.timing(b, {
|
|
2026
2178
|
toValue: 0,
|
|
2027
2179
|
duration: s.durationNormal,
|
|
2028
2180
|
useNativeDriver: !0
|
|
@@ -2039,7 +2191,7 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2039
2191
|
animationType: "none",
|
|
2040
2192
|
statusBarTranslucent: !0,
|
|
2041
2193
|
onRequestClose: r,
|
|
2042
|
-
children: /* @__PURE__ */ M(
|
|
2194
|
+
children: /* @__PURE__ */ M(Dt, {
|
|
2043
2195
|
testID: o,
|
|
2044
2196
|
onPress: i ? r : void 0,
|
|
2045
2197
|
accessible: !1,
|
|
@@ -2095,7 +2247,7 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2095
2247
|
opacity: .2
|
|
2096
2248
|
} })
|
|
2097
2249
|
}),
|
|
2098
|
-
t && /* @__PURE__ */ M(
|
|
2250
|
+
t && /* @__PURE__ */ M(Y, {
|
|
2099
2251
|
variant: "title-4",
|
|
2100
2252
|
style: {
|
|
2101
2253
|
paddingHorizontal: s.space4,
|
|
@@ -2110,7 +2262,7 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2110
2262
|
paddingHorizontal: s.space4,
|
|
2111
2263
|
paddingBottom: s.space4
|
|
2112
2264
|
},
|
|
2113
|
-
children: typeof n == "string" ? /* @__PURE__ */ M(
|
|
2265
|
+
children: typeof n == "string" ? /* @__PURE__ */ M(Y, {
|
|
2114
2266
|
variant: "body",
|
|
2115
2267
|
children: n
|
|
2116
2268
|
}) : n
|
|
@@ -2120,13 +2272,42 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2120
2272
|
})
|
|
2121
2273
|
})
|
|
2122
2274
|
}) : null;
|
|
2123
|
-
},
|
|
2275
|
+
}, At = {
|
|
2276
|
+
start: "flex-start",
|
|
2277
|
+
center: "center",
|
|
2278
|
+
end: "flex-end",
|
|
2279
|
+
stretch: "stretch",
|
|
2280
|
+
baseline: "baseline"
|
|
2281
|
+
}, jt = {
|
|
2282
|
+
start: "flex-start",
|
|
2283
|
+
center: "center",
|
|
2284
|
+
end: "flex-end",
|
|
2285
|
+
"space-between": "space-between",
|
|
2286
|
+
"space-around": "space-around",
|
|
2287
|
+
"space-evenly": "space-evenly"
|
|
2288
|
+
}, Mt = i(function({ orientation: e = "vertical", spacing: t = 6, align: n, justify: r = "start", padding: i, children: a, style: o, ...s }, c) {
|
|
2289
|
+
return /* @__PURE__ */ M(k, {
|
|
2290
|
+
ref: c,
|
|
2291
|
+
style: [
|
|
2292
|
+
{
|
|
2293
|
+
flexDirection: e === "horizontal" ? "row" : "column",
|
|
2294
|
+
gap: t,
|
|
2295
|
+
alignItems: At[n ?? (e === "horizontal" ? "center" : "stretch")],
|
|
2296
|
+
justifyContent: jt[r]
|
|
2297
|
+
},
|
|
2298
|
+
i !== void 0 && { padding: i },
|
|
2299
|
+
o
|
|
2300
|
+
],
|
|
2301
|
+
...s,
|
|
2302
|
+
children: a
|
|
2303
|
+
});
|
|
2304
|
+
}), Nt = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
|
|
2124
2305
|
return /* @__PURE__ */ M(k, {
|
|
2125
2306
|
ref: r,
|
|
2126
2307
|
accessible: !1,
|
|
2127
2308
|
style: [
|
|
2128
2309
|
{
|
|
2129
|
-
backgroundColor:
|
|
2310
|
+
backgroundColor: q().cardShadeColor,
|
|
2130
2311
|
flexShrink: 0
|
|
2131
2312
|
},
|
|
2132
2313
|
e === "vertical" ? {
|
|
@@ -2141,8 +2322,8 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2141
2322
|
],
|
|
2142
2323
|
...n
|
|
2143
2324
|
});
|
|
2144
|
-
}),
|
|
2145
|
-
let o =
|
|
2325
|
+
}), Pt = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
|
|
2326
|
+
let o = q(), s = e.toArray(t).filter(Boolean);
|
|
2146
2327
|
return n === "separate" ? /* @__PURE__ */ M(k, {
|
|
2147
2328
|
ref: a,
|
|
2148
2329
|
accessible: !0,
|
|
@@ -2171,12 +2352,12 @@ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2171
2352
|
overflow: "hidden"
|
|
2172
2353
|
}, r],
|
|
2173
2354
|
...i,
|
|
2174
|
-
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))
|
|
2175
2356
|
});
|
|
2176
2357
|
});
|
|
2177
2358
|
//#endregion
|
|
2178
2359
|
//#region src/components/Button/Button.tsx
|
|
2179
|
-
function
|
|
2360
|
+
function Ft(e, t) {
|
|
2180
2361
|
switch (t) {
|
|
2181
2362
|
case "sm": return {
|
|
2182
2363
|
minHeight: 28,
|
|
@@ -2201,14 +2382,14 @@ function xt(e, t) {
|
|
|
2201
2382
|
};
|
|
2202
2383
|
}
|
|
2203
2384
|
}
|
|
2204
|
-
function
|
|
2385
|
+
function It(e) {
|
|
2205
2386
|
switch (e) {
|
|
2206
2387
|
case "sm": return 28;
|
|
2207
2388
|
case "lg": return 42;
|
|
2208
2389
|
default: return 34;
|
|
2209
2390
|
}
|
|
2210
2391
|
}
|
|
2211
|
-
function
|
|
2392
|
+
function Lt(e, t, n, r) {
|
|
2212
2393
|
if (r) return {
|
|
2213
2394
|
backgroundColor: n ? "rgba(0, 0, 0, 0.85)" : "rgba(0, 0, 0, 0.65)",
|
|
2214
2395
|
borderColor: "rgba(255, 255, 255, 0.12)",
|
|
@@ -2237,15 +2418,15 @@ function Ct(e, t, n, r) {
|
|
|
2237
2418
|
};
|
|
2238
2419
|
}
|
|
2239
2420
|
}
|
|
2240
|
-
var
|
|
2241
|
-
let f =
|
|
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();
|
|
2242
2423
|
return /* @__PURE__ */ M(w, {
|
|
2243
2424
|
ref: d,
|
|
2244
2425
|
disabled: l,
|
|
2245
2426
|
accessibilityRole: "button",
|
|
2246
2427
|
accessibilityState: { disabled: !!l },
|
|
2247
2428
|
style: ({ pressed: i }) => {
|
|
2248
|
-
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);
|
|
2249
2430
|
return [{
|
|
2250
2431
|
flexDirection: "row",
|
|
2251
2432
|
alignItems: "center",
|
|
@@ -2266,7 +2447,7 @@ var wt = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
2266
2447
|
},
|
|
2267
2448
|
...u,
|
|
2268
2449
|
children: ({ pressed: n }) => {
|
|
2269
|
-
let { fontSize: s } =
|
|
2450
|
+
let { fontSize: s } = Ft(f, t), { color: l } = Lt(f, e, n, r);
|
|
2270
2451
|
return /* @__PURE__ */ N(j, { children: [
|
|
2271
2452
|
i,
|
|
2272
2453
|
typeof o == "string" ? /* @__PURE__ */ M(D, {
|
|
@@ -2285,7 +2466,7 @@ var wt = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
2285
2466
|
});
|
|
2286
2467
|
//#endregion
|
|
2287
2468
|
//#region src/components/Card/Card.tsx
|
|
2288
|
-
function
|
|
2469
|
+
function zt(e, t) {
|
|
2289
2470
|
switch (t) {
|
|
2290
2471
|
case "none": return 0;
|
|
2291
2472
|
case "sm": return e.space2;
|
|
@@ -2293,14 +2474,14 @@ function Tt(e, t) {
|
|
|
2293
2474
|
default: return e.space4;
|
|
2294
2475
|
}
|
|
2295
2476
|
}
|
|
2296
|
-
var
|
|
2297
|
-
let s =
|
|
2477
|
+
var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
|
|
2478
|
+
let s = q(), c = {
|
|
2298
2479
|
backgroundColor: s.cardBgColor,
|
|
2299
2480
|
borderWidth: 1,
|
|
2300
2481
|
borderColor: s.cardShadeColor,
|
|
2301
2482
|
borderRadius: s.radiusLg,
|
|
2302
2483
|
overflow: "hidden",
|
|
2303
|
-
padding:
|
|
2484
|
+
padding: zt(s, t)
|
|
2304
2485
|
};
|
|
2305
2486
|
return e ? /* @__PURE__ */ M(w, {
|
|
2306
2487
|
ref: o,
|
|
@@ -2329,8 +2510,8 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2329
2510
|
...a,
|
|
2330
2511
|
children: r
|
|
2331
2512
|
});
|
|
2332
|
-
}),
|
|
2333
|
-
let s =
|
|
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);
|
|
2334
2515
|
c(() => {
|
|
2335
2516
|
if (h.current) {
|
|
2336
2517
|
h.current = !1;
|
|
@@ -2369,8 +2550,8 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2369
2550
|
...a,
|
|
2370
2551
|
children: /* @__PURE__ */ M(m.View, {
|
|
2371
2552
|
style: {
|
|
2372
|
-
width:
|
|
2373
|
-
height:
|
|
2553
|
+
width: Vt,
|
|
2554
|
+
height: Vt,
|
|
2374
2555
|
alignItems: "center",
|
|
2375
2556
|
justifyContent: "center",
|
|
2376
2557
|
borderRadius: s.radiusSm,
|
|
@@ -2396,8 +2577,8 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2396
2577
|
})
|
|
2397
2578
|
})
|
|
2398
2579
|
});
|
|
2399
|
-
}),
|
|
2400
|
-
let l =
|
|
2580
|
+
}), Ut = ({ label: e, icon: t, onRemove: n, selectable: r = !1, selected: i = !1, onToggle: a, disabled: o = !1, style: s, testID: c }) => {
|
|
2581
|
+
let l = q(), u = r && !n, d = {
|
|
2401
2582
|
flexDirection: "row",
|
|
2402
2583
|
alignItems: "center",
|
|
2403
2584
|
gap: l.space1,
|
|
@@ -2414,12 +2595,12 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2414
2595
|
}, p = /* @__PURE__ */ N(j, { children: [
|
|
2415
2596
|
t && /* @__PURE__ */ M(k, {
|
|
2416
2597
|
style: { marginStart: -2 },
|
|
2417
|
-
children: /* @__PURE__ */ M(
|
|
2598
|
+
children: /* @__PURE__ */ M(X, {
|
|
2418
2599
|
icon: t,
|
|
2419
2600
|
size: "sm"
|
|
2420
2601
|
})
|
|
2421
2602
|
}),
|
|
2422
|
-
/* @__PURE__ */ M(
|
|
2603
|
+
/* @__PURE__ */ M(Y, {
|
|
2423
2604
|
variant: "caption",
|
|
2424
2605
|
style: f,
|
|
2425
2606
|
children: e
|
|
@@ -2434,8 +2615,8 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2434
2615
|
marginEnd: -4,
|
|
2435
2616
|
opacity: o ? l.opacityDisabled : 1
|
|
2436
2617
|
},
|
|
2437
|
-
children: /* @__PURE__ */ M(
|
|
2438
|
-
icon:
|
|
2618
|
+
children: /* @__PURE__ */ M(X, {
|
|
2619
|
+
icon: R,
|
|
2439
2620
|
size: "sm"
|
|
2440
2621
|
})
|
|
2441
2622
|
})
|
|
@@ -2468,127 +2649,890 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2468
2649
|
],
|
|
2469
2650
|
children: p
|
|
2470
2651
|
});
|
|
2471
|
-
},
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
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) {
|
|
2653
|
+
return /* @__PURE__ */ M(k, {
|
|
2654
|
+
ref: a,
|
|
2655
|
+
style: [{
|
|
2656
|
+
width: `${Wt(t) * 100}%`,
|
|
2657
|
+
maxWidth: e,
|
|
2658
|
+
alignSelf: "center"
|
|
2659
|
+
}, r],
|
|
2660
|
+
...i,
|
|
2661
|
+
children: n
|
|
2662
|
+
});
|
|
2663
|
+
}), Kt = 12, Z = 12, qt = 7, Jt = (e, t) => ({
|
|
2664
|
+
top: e.top - t,
|
|
2665
|
+
left: e.left - t,
|
|
2666
|
+
width: e.width + t * 2,
|
|
2667
|
+
height: e.height + t * 2
|
|
2668
|
+
}), Yt = (e, t, n, r) => {
|
|
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([
|
|
2670
|
+
r,
|
|
2671
|
+
{
|
|
2672
|
+
top: "bottom",
|
|
2673
|
+
bottom: "top",
|
|
2674
|
+
left: "right",
|
|
2675
|
+
right: "left"
|
|
2676
|
+
}[r],
|
|
2677
|
+
"bottom",
|
|
2678
|
+
"top",
|
|
2679
|
+
"right",
|
|
2680
|
+
"left"
|
|
2681
|
+
])], l = (n) => {
|
|
2682
|
+
switch (n) {
|
|
2683
|
+
case "bottom": return {
|
|
2684
|
+
top: a + Kt,
|
|
2685
|
+
left: o - t.width / 2
|
|
2686
|
+
};
|
|
2687
|
+
case "top": return {
|
|
2688
|
+
top: e.top - t.height - Kt,
|
|
2689
|
+
left: o - t.width / 2
|
|
2690
|
+
};
|
|
2691
|
+
case "left": return {
|
|
2692
|
+
top: s - t.height / 2,
|
|
2693
|
+
left: e.left - t.width - Kt
|
|
2694
|
+
};
|
|
2695
|
+
default: return {
|
|
2696
|
+
top: s - t.height / 2,
|
|
2697
|
+
left: i + Kt
|
|
2698
|
+
};
|
|
2699
|
+
}
|
|
2700
|
+
};
|
|
2701
|
+
for (let e of c) {
|
|
2702
|
+
let { top: r, left: i } = l(e), a = i >= Z && i + t.width <= n.width - Z, c = r >= Z && r + t.height <= n.height - Z;
|
|
2703
|
+
if (a && c) return {
|
|
2704
|
+
top: r,
|
|
2705
|
+
left: i,
|
|
2706
|
+
placement: e,
|
|
2707
|
+
arrowOffset: e === "top" || e === "bottom" ? o - i : s - r
|
|
2708
|
+
};
|
|
2709
|
+
}
|
|
2710
|
+
for (let e of c) {
|
|
2711
|
+
let { top: r, left: i } = l(e);
|
|
2712
|
+
if (e === "top" || e === "bottom") {
|
|
2713
|
+
if (!(r >= Z && r + t.height <= n.height - Z)) continue;
|
|
2714
|
+
let a = Math.max(Z, Math.min(i, n.width - t.width - Z)), s = o - a;
|
|
2715
|
+
return {
|
|
2716
|
+
top: r,
|
|
2717
|
+
left: a,
|
|
2718
|
+
placement: e,
|
|
2719
|
+
arrowOffset: Math.max(11, Math.min(s, t.width - qt - 4))
|
|
2720
|
+
};
|
|
2721
|
+
}
|
|
2722
|
+
if (!(i >= Z && i + t.width <= n.width - Z)) continue;
|
|
2723
|
+
let a = Math.max(Z, Math.min(r, n.height - t.height - Z)), c = s - a;
|
|
2724
|
+
return {
|
|
2725
|
+
top: a,
|
|
2726
|
+
left: i,
|
|
2727
|
+
placement: e,
|
|
2728
|
+
arrowOffset: Math.max(11, Math.min(c, t.height - qt - 4))
|
|
2729
|
+
};
|
|
2730
|
+
}
|
|
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;
|
|
2732
|
+
return {
|
|
2733
|
+
top: f,
|
|
2734
|
+
left: p,
|
|
2735
|
+
placement: "bottom",
|
|
2736
|
+
arrowOffset: Math.max(11, Math.min(m, t.width - qt - 4))
|
|
2737
|
+
};
|
|
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 }) => {
|
|
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;
|
|
2478
2740
|
c(() => {
|
|
2479
|
-
if (!e)
|
|
2480
|
-
|
|
2481
|
-
y.setValue(1);
|
|
2741
|
+
if (!e) {
|
|
2742
|
+
D(null), A(null), F(null), I.setValue(0);
|
|
2482
2743
|
return;
|
|
2483
2744
|
}
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2745
|
+
let n = setTimeout(() => {
|
|
2746
|
+
t.current?.measureInWindow((e, t, n, r) => {
|
|
2747
|
+
D({
|
|
2748
|
+
top: t,
|
|
2749
|
+
left: e,
|
|
2750
|
+
width: n,
|
|
2751
|
+
height: r
|
|
2752
|
+
});
|
|
2753
|
+
});
|
|
2754
|
+
}, 50);
|
|
2755
|
+
return () => clearTimeout(n);
|
|
2492
2756
|
}, [
|
|
2493
2757
|
e,
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
p.durationNormal,
|
|
2497
|
-
p.easingDefault
|
|
2758
|
+
t,
|
|
2759
|
+
I
|
|
2498
2760
|
]), c(() => {
|
|
2499
|
-
if (!
|
|
2500
|
-
let t =
|
|
2501
|
-
|
|
2761
|
+
if (!T || !O) return;
|
|
2762
|
+
let { width: e, height: t } = g.get("window");
|
|
2763
|
+
F(Yt(T, O, {
|
|
2764
|
+
width: e,
|
|
2765
|
+
height: t
|
|
2766
|
+
}, i));
|
|
2502
2767
|
}, [
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
s,
|
|
2506
|
-
l,
|
|
2768
|
+
T,
|
|
2769
|
+
O,
|
|
2507
2770
|
i
|
|
2508
|
-
])
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
color: i,
|
|
2536
|
-
fontWeight: r === "suggested" ? String(p.fontWeightSemibold) : void 0
|
|
2537
|
-
},
|
|
2538
|
-
children: t.label
|
|
2539
|
-
})
|
|
2540
|
-
}, b ? t.id : t.label);
|
|
2541
|
-
})
|
|
2771
|
+
]), c(() => {
|
|
2772
|
+
if (P) {
|
|
2773
|
+
if (C) {
|
|
2774
|
+
I.setValue(1);
|
|
2775
|
+
return;
|
|
2776
|
+
}
|
|
2777
|
+
m.timing(I, {
|
|
2778
|
+
toValue: 1,
|
|
2779
|
+
duration: S.durationFast,
|
|
2780
|
+
useNativeDriver: !0
|
|
2781
|
+
}).start();
|
|
2782
|
+
}
|
|
2783
|
+
}, [
|
|
2784
|
+
P,
|
|
2785
|
+
C,
|
|
2786
|
+
I,
|
|
2787
|
+
S.durationFast
|
|
2788
|
+
]), c(() => {
|
|
2789
|
+
if (!e) return;
|
|
2790
|
+
let t = h.addEventListener("hardwareBackPress", () => (v?.(), !0));
|
|
2791
|
+
return () => t.remove();
|
|
2792
|
+
}, [e, v]);
|
|
2793
|
+
let L = (e) => {
|
|
2794
|
+
let { width: t, height: n } = e.nativeEvent.layout;
|
|
2795
|
+
A({
|
|
2796
|
+
width: t,
|
|
2797
|
+
height: n
|
|
2542
2798
|
});
|
|
2543
|
-
}, D = g === "dark" ? {
|
|
2544
|
-
shadowOpacity: .5,
|
|
2545
|
-
shadowRadius: 32,
|
|
2546
|
-
elevation: 12
|
|
2547
|
-
} : {
|
|
2548
|
-
shadowOpacity: .25,
|
|
2549
|
-
shadowRadius: 32,
|
|
2550
|
-
elevation: 8
|
|
2551
2799
|
};
|
|
2800
|
+
if (!e) return null;
|
|
2801
|
+
let R = T ? Jt(T, o) : null, { width: z } = g.get("window"), B = {
|
|
2802
|
+
position: "absolute",
|
|
2803
|
+
width: 0,
|
|
2804
|
+
height: 0,
|
|
2805
|
+
borderWidth: Xt,
|
|
2806
|
+
borderColor: "transparent"
|
|
2807
|
+
}, V = (() => {
|
|
2808
|
+
if (!P) return null;
|
|
2809
|
+
switch (P.placement) {
|
|
2810
|
+
case "top": return {
|
|
2811
|
+
...B,
|
|
2812
|
+
bottom: -14,
|
|
2813
|
+
left: P.arrowOffset - Xt,
|
|
2814
|
+
borderTopColor: S.cardBgColor
|
|
2815
|
+
};
|
|
2816
|
+
case "bottom": return {
|
|
2817
|
+
...B,
|
|
2818
|
+
top: -14,
|
|
2819
|
+
left: P.arrowOffset - Xt,
|
|
2820
|
+
borderBottomColor: S.cardBgColor
|
|
2821
|
+
};
|
|
2822
|
+
case "left": return {
|
|
2823
|
+
...B,
|
|
2824
|
+
right: -14,
|
|
2825
|
+
top: P.arrowOffset - Xt,
|
|
2826
|
+
borderLeftColor: S.cardBgColor
|
|
2827
|
+
};
|
|
2828
|
+
default: return {
|
|
2829
|
+
...B,
|
|
2830
|
+
left: -14,
|
|
2831
|
+
top: P.arrowOffset - Xt,
|
|
2832
|
+
borderRightColor: S.cardBgColor
|
|
2833
|
+
};
|
|
2834
|
+
}
|
|
2835
|
+
})();
|
|
2552
2836
|
return /* @__PURE__ */ M(x, {
|
|
2553
2837
|
visible: e,
|
|
2554
2838
|
transparent: !0,
|
|
2555
2839
|
animationType: "none",
|
|
2556
2840
|
statusBarTranslucent: !0,
|
|
2557
|
-
onRequestClose:
|
|
2558
|
-
children: /* @__PURE__ */
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
justifyContent: "center",
|
|
2565
|
-
paddingHorizontal: 24,
|
|
2566
|
-
backgroundColor: p.dialogBackdropColor,
|
|
2567
|
-
opacity: y
|
|
2568
|
-
},
|
|
2569
|
-
children: /* @__PURE__ */ M(w, {
|
|
2570
|
-
onPress: () => {},
|
|
2841
|
+
onRequestClose: v,
|
|
2842
|
+
children: /* @__PURE__ */ N(m.View, {
|
|
2843
|
+
pointerEvents: "box-none",
|
|
2844
|
+
style: E.absoluteFill,
|
|
2845
|
+
children: [a && /* @__PURE__ */ M(w, {
|
|
2846
|
+
testID: b,
|
|
2847
|
+
onPress: s ? v : void 0,
|
|
2571
2848
|
accessible: !1,
|
|
2572
|
-
style:
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2849
|
+
style: E.absoluteFill,
|
|
2850
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
2851
|
+
pointerEvents: "none",
|
|
2852
|
+
style: [E.absoluteFill, { opacity: I }],
|
|
2853
|
+
children: R && /* @__PURE__ */ N(j, { children: [
|
|
2854
|
+
/* @__PURE__ */ M(k, { style: {
|
|
2855
|
+
position: "absolute",
|
|
2856
|
+
top: 0,
|
|
2857
|
+
left: 0,
|
|
2858
|
+
right: 0,
|
|
2859
|
+
height: Math.max(0, R.top),
|
|
2860
|
+
backgroundColor: Zt
|
|
2861
|
+
} }),
|
|
2862
|
+
/* @__PURE__ */ M(k, { style: {
|
|
2863
|
+
position: "absolute",
|
|
2864
|
+
top: Math.max(0, R.top + R.height),
|
|
2865
|
+
left: 0,
|
|
2866
|
+
right: 0,
|
|
2867
|
+
bottom: 0,
|
|
2868
|
+
backgroundColor: Zt
|
|
2869
|
+
} }),
|
|
2870
|
+
/* @__PURE__ */ M(k, { style: {
|
|
2871
|
+
position: "absolute",
|
|
2872
|
+
top: Math.max(0, R.top),
|
|
2873
|
+
left: 0,
|
|
2874
|
+
width: Math.max(0, R.left),
|
|
2875
|
+
height: R.height,
|
|
2876
|
+
backgroundColor: Zt
|
|
2877
|
+
} }),
|
|
2878
|
+
/* @__PURE__ */ M(k, { style: {
|
|
2879
|
+
position: "absolute",
|
|
2880
|
+
top: Math.max(0, R.top),
|
|
2881
|
+
left: Math.max(0, R.left + R.width),
|
|
2882
|
+
right: 0,
|
|
2883
|
+
height: R.height,
|
|
2884
|
+
backgroundColor: Zt
|
|
2885
|
+
} }),
|
|
2886
|
+
/* @__PURE__ */ M(k, {
|
|
2887
|
+
pointerEvents: "none",
|
|
2888
|
+
style: {
|
|
2889
|
+
position: "absolute",
|
|
2890
|
+
top: R.top,
|
|
2891
|
+
left: R.left,
|
|
2892
|
+
width: R.width,
|
|
2893
|
+
height: R.height,
|
|
2894
|
+
borderRadius: S.radiusMd,
|
|
2895
|
+
borderWidth: 2,
|
|
2896
|
+
borderColor: S.accentColor
|
|
2897
|
+
}
|
|
2898
|
+
})
|
|
2899
|
+
] })
|
|
2900
|
+
})
|
|
2901
|
+
}), /* @__PURE__ */ N(m.View, {
|
|
2902
|
+
onLayout: L,
|
|
2903
|
+
accessible: !0,
|
|
2904
|
+
role: "dialog",
|
|
2905
|
+
accessibilityViewIsModal: !0,
|
|
2906
|
+
style: [
|
|
2907
|
+
{
|
|
2908
|
+
position: "absolute",
|
|
2909
|
+
maxWidth: Math.min(320, z - 24),
|
|
2910
|
+
padding: S.space3,
|
|
2911
|
+
backgroundColor: S.cardBgColor,
|
|
2912
|
+
borderRadius: S.radiusLg,
|
|
2584
2913
|
shadowColor: "#000",
|
|
2585
2914
|
shadowOffset: {
|
|
2586
2915
|
width: 0,
|
|
2587
|
-
height:
|
|
2916
|
+
height: 4
|
|
2588
2917
|
},
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2918
|
+
shadowOpacity: .2,
|
|
2919
|
+
shadowRadius: 16,
|
|
2920
|
+
elevation: 8
|
|
2921
|
+
},
|
|
2922
|
+
P ? {
|
|
2923
|
+
top: P.top,
|
|
2924
|
+
left: P.left,
|
|
2925
|
+
opacity: I,
|
|
2926
|
+
transform: [{ scale: I.interpolate({
|
|
2927
|
+
inputRange: [0, 1],
|
|
2928
|
+
outputRange: [.96, 1]
|
|
2929
|
+
}) }]
|
|
2930
|
+
} : {
|
|
2931
|
+
top: -9999,
|
|
2932
|
+
left: -9999,
|
|
2933
|
+
opacity: 0
|
|
2934
|
+
},
|
|
2935
|
+
y
|
|
2936
|
+
],
|
|
2937
|
+
children: [
|
|
2938
|
+
V && /* @__PURE__ */ M(k, { style: V }),
|
|
2939
|
+
l !== void 0 && u !== void 0 && /* @__PURE__ */ M(Y, {
|
|
2940
|
+
variant: "caption",
|
|
2941
|
+
style: {
|
|
2942
|
+
marginBottom: S.space1,
|
|
2943
|
+
color: S.accentColor,
|
|
2944
|
+
fontWeight: String(S.fontWeightBold)
|
|
2945
|
+
},
|
|
2946
|
+
children: `${l} of ${u}`
|
|
2947
|
+
}),
|
|
2948
|
+
n && /* @__PURE__ */ M(Y, {
|
|
2949
|
+
variant: "title-4",
|
|
2950
|
+
style: {
|
|
2951
|
+
marginBottom: S.space1,
|
|
2952
|
+
fontWeight: String(S.fontWeightBold)
|
|
2953
|
+
},
|
|
2954
|
+
children: n
|
|
2955
|
+
}),
|
|
2956
|
+
r && /* @__PURE__ */ M(Y, {
|
|
2957
|
+
variant: "body",
|
|
2958
|
+
color: "dim",
|
|
2959
|
+
children: r
|
|
2960
|
+
}),
|
|
2961
|
+
(p || _) && /* @__PURE__ */ N(k, {
|
|
2962
|
+
style: {
|
|
2963
|
+
flexDirection: "row",
|
|
2964
|
+
justifyContent: "flex-end",
|
|
2965
|
+
gap: S.space2,
|
|
2966
|
+
marginTop: S.space3
|
|
2967
|
+
},
|
|
2968
|
+
children: [_ && /* @__PURE__ */ M(Rt, {
|
|
2969
|
+
variant: "flat",
|
|
2970
|
+
size: "sm",
|
|
2971
|
+
onPress: _.onPress,
|
|
2972
|
+
children: _.label
|
|
2973
|
+
}), p && /* @__PURE__ */ M(Rt, {
|
|
2974
|
+
variant: "suggested",
|
|
2975
|
+
size: "sm",
|
|
2976
|
+
onPress: p.onPress,
|
|
2977
|
+
children: p.label
|
|
2978
|
+
})]
|
|
2979
|
+
})
|
|
2980
|
+
]
|
|
2981
|
+
})]
|
|
2982
|
+
})
|
|
2983
|
+
});
|
|
2984
|
+
}, $t = {
|
|
2985
|
+
next: "Next",
|
|
2986
|
+
back: "Back",
|
|
2987
|
+
skip: "Skip",
|
|
2988
|
+
finish: "Done"
|
|
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 }) => {
|
|
2990
|
+
let [p, m] = f(n);
|
|
2991
|
+
if (c(() => {
|
|
2992
|
+
t && m(n);
|
|
2993
|
+
}, [t, n]), !t || e.length === 0) return null;
|
|
2994
|
+
let h = Math.min(p, e.length - 1), g = e[h], _ = h === 0, v = h === e.length - 1, y = {
|
|
2995
|
+
...$t,
|
|
2996
|
+
...u
|
|
2997
|
+
}, b = (e) => {
|
|
2998
|
+
m(e), a?.(e);
|
|
2999
|
+
}, x = {
|
|
3000
|
+
label: v ? y.finish : y.next,
|
|
3001
|
+
onPress: () => v ? r?.() : b(h + 1)
|
|
3002
|
+
}, S = _ ? {
|
|
3003
|
+
label: y.skip,
|
|
3004
|
+
onPress: () => i?.()
|
|
3005
|
+
} : {
|
|
3006
|
+
label: y.back,
|
|
3007
|
+
onPress: () => b(h - 1)
|
|
3008
|
+
};
|
|
3009
|
+
return /* @__PURE__ */ M(Qt, {
|
|
3010
|
+
open: t,
|
|
3011
|
+
targetRef: g.targetRef,
|
|
3012
|
+
title: g.title,
|
|
3013
|
+
description: g.description,
|
|
3014
|
+
placement: g.placement ?? o,
|
|
3015
|
+
spotlight: s,
|
|
3016
|
+
dismissOnBackdrop: l,
|
|
3017
|
+
step: h + 1,
|
|
3018
|
+
stepCount: e.length,
|
|
3019
|
+
primaryAction: x,
|
|
3020
|
+
secondaryAction: S,
|
|
3021
|
+
onDismiss: () => i?.(),
|
|
3022
|
+
testID: d
|
|
3023
|
+
});
|
|
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
|
|
3065
|
+
},
|
|
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,
|
|
3079
|
+
style: {
|
|
3080
|
+
width: d,
|
|
3081
|
+
height: d,
|
|
3082
|
+
borderRadius: l.radiusPill,
|
|
3083
|
+
alignItems: "center",
|
|
3084
|
+
justifyContent: "center",
|
|
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"
|
|
3177
|
+
},
|
|
3178
|
+
children: /* @__PURE__ */ M(w, {
|
|
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)
|
|
3200
|
+
})
|
|
3201
|
+
})
|
|
3202
|
+
})] }) : null]
|
|
3203
|
+
});
|
|
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({
|
|
2592
3536
|
inputRange: [0, 1],
|
|
2593
3537
|
outputRange: [-8, 0]
|
|
2594
3538
|
}) }, { scale: y.interpolate({
|
|
@@ -2597,7 +3541,7 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2597
3541
|
}) }]
|
|
2598
3542
|
}, u],
|
|
2599
3543
|
children: [
|
|
2600
|
-
t && /* @__PURE__ */ M(
|
|
3544
|
+
t && /* @__PURE__ */ M(Y, {
|
|
2601
3545
|
variant: "title-4",
|
|
2602
3546
|
style: {
|
|
2603
3547
|
padding: p.space4,
|
|
@@ -2612,7 +3556,7 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2612
3556
|
paddingVertical: p.space2,
|
|
2613
3557
|
paddingHorizontal: p.space4
|
|
2614
3558
|
},
|
|
2615
|
-
children: typeof n == "string" ? /* @__PURE__ */ M(
|
|
3559
|
+
children: typeof n == "string" ? /* @__PURE__ */ M(Y, {
|
|
2616
3560
|
variant: "body",
|
|
2617
3561
|
style: {
|
|
2618
3562
|
textAlign: "center",
|
|
@@ -2627,8 +3571,8 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2627
3571
|
})
|
|
2628
3572
|
})
|
|
2629
3573
|
});
|
|
2630
|
-
},
|
|
2631
|
-
let i =
|
|
3574
|
+
}, vn = ({ children: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
3575
|
+
let i = q(), a = !!e;
|
|
2632
3576
|
return /* @__PURE__ */ N(k, {
|
|
2633
3577
|
testID: r,
|
|
2634
3578
|
accessible: !0,
|
|
@@ -2644,7 +3588,7 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2644
3588
|
flex: 1,
|
|
2645
3589
|
height: 1,
|
|
2646
3590
|
backgroundColor: i.cardShadeColor
|
|
2647
|
-
} }), a && /* @__PURE__ */ N(j, { children: [typeof e == "string" ? /* @__PURE__ */ M(
|
|
3591
|
+
} }), a && /* @__PURE__ */ N(j, { children: [typeof e == "string" ? /* @__PURE__ */ M(Y, {
|
|
2648
3592
|
variant: "caption",
|
|
2649
3593
|
color: "dim",
|
|
2650
3594
|
children: e
|
|
@@ -2654,8 +3598,8 @@ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2654
3598
|
backgroundColor: i.cardShadeColor
|
|
2655
3599
|
} })] })]
|
|
2656
3600
|
});
|
|
2657
|
-
},
|
|
2658
|
-
function
|
|
3601
|
+
}, yn = 6, Q = 8, bn = 5;
|
|
3602
|
+
function xn(e, t) {
|
|
2659
3603
|
if (e) {
|
|
2660
3604
|
if (typeof e == "function") {
|
|
2661
3605
|
e(t);
|
|
@@ -2664,27 +3608,27 @@ function Pt(e, t) {
|
|
|
2664
3608
|
e.current = t;
|
|
2665
3609
|
}
|
|
2666
3610
|
}
|
|
2667
|
-
function
|
|
3611
|
+
function Sn(e, t, n) {
|
|
2668
3612
|
switch (n) {
|
|
2669
3613
|
case "top": return {
|
|
2670
|
-
top: e.y - t.height -
|
|
3614
|
+
top: e.y - t.height - yn,
|
|
2671
3615
|
left: e.x + e.width / 2 - t.width / 2
|
|
2672
3616
|
};
|
|
2673
3617
|
case "bottom": return {
|
|
2674
|
-
top: e.y + e.height +
|
|
3618
|
+
top: e.y + e.height + yn,
|
|
2675
3619
|
left: e.x + e.width / 2 - t.width / 2
|
|
2676
3620
|
};
|
|
2677
3621
|
case "left": return {
|
|
2678
3622
|
top: e.y + e.height / 2 - t.height / 2,
|
|
2679
|
-
left: e.x - t.width -
|
|
3623
|
+
left: e.x - t.width - yn
|
|
2680
3624
|
};
|
|
2681
3625
|
case "right": return {
|
|
2682
3626
|
top: e.y + e.height / 2 - t.height / 2,
|
|
2683
|
-
left: e.x + e.width +
|
|
3627
|
+
left: e.x + e.width + yn
|
|
2684
3628
|
};
|
|
2685
3629
|
}
|
|
2686
3630
|
}
|
|
2687
|
-
function
|
|
3631
|
+
function Cn(e, t, n) {
|
|
2688
3632
|
let { width: r, height: i } = g.get("window"), a = [
|
|
2689
3633
|
n,
|
|
2690
3634
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -2694,22 +3638,22 @@ function It(e, t, n) {
|
|
|
2694
3638
|
"right"
|
|
2695
3639
|
];
|
|
2696
3640
|
for (let n of a) {
|
|
2697
|
-
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;
|
|
2698
3642
|
if (s && c) return {
|
|
2699
|
-
top: Math.max(
|
|
2700
|
-
left: Math.max(
|
|
3643
|
+
top: Math.max(Q, Math.min(a, i - t.height - Q)),
|
|
3644
|
+
left: Math.max(Q, Math.min(o, r - t.width - Q)),
|
|
2701
3645
|
placement: n
|
|
2702
3646
|
};
|
|
2703
3647
|
}
|
|
2704
|
-
let { top: o, left: s } =
|
|
3648
|
+
let { top: o, left: s } = Sn(e, t, n);
|
|
2705
3649
|
return {
|
|
2706
|
-
top: Math.max(
|
|
2707
|
-
left: Math.max(
|
|
3650
|
+
top: Math.max(Q, Math.min(o, i - t.height - Q)),
|
|
3651
|
+
left: Math.max(Q, Math.min(s, r - t.width - Q)),
|
|
2708
3652
|
placement: n
|
|
2709
3653
|
};
|
|
2710
3654
|
}
|
|
2711
|
-
var
|
|
2712
|
-
let a =
|
|
3655
|
+
var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
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(() => {
|
|
2713
3657
|
C.current &&= (clearTimeout(C.current), null);
|
|
2714
3658
|
}, []), D = o(() => {
|
|
2715
3659
|
T(), p(!0);
|
|
@@ -2736,7 +3680,7 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
2736
3680
|
});
|
|
2737
3681
|
});
|
|
2738
3682
|
}, [u]), c(() => {
|
|
2739
|
-
!h || !_ || b(
|
|
3683
|
+
!h || !_ || b(Cn(h, _, t));
|
|
2740
3684
|
}, [
|
|
2741
3685
|
h,
|
|
2742
3686
|
_,
|
|
@@ -2777,7 +3721,7 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
2777
3721
|
position: "absolute",
|
|
2778
3722
|
width: 0,
|
|
2779
3723
|
height: 0,
|
|
2780
|
-
borderWidth:
|
|
3724
|
+
borderWidth: bn,
|
|
2781
3725
|
borderColor: "transparent"
|
|
2782
3726
|
}, z = (() => {
|
|
2783
3727
|
switch (y?.placement) {
|
|
@@ -2811,10 +3755,10 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
2811
3755
|
};
|
|
2812
3756
|
default: return null;
|
|
2813
3757
|
}
|
|
2814
|
-
})(),
|
|
3758
|
+
})(), B = i.props.ref;
|
|
2815
3759
|
return /* @__PURE__ */ N(j, { children: [n(i, {
|
|
2816
3760
|
ref: (e) => {
|
|
2817
|
-
S.current = e,
|
|
3761
|
+
S.current = e, xn(B, e);
|
|
2818
3762
|
},
|
|
2819
3763
|
delayLongPress: r,
|
|
2820
3764
|
accessibilityHint: i.props.accessibilityHint ?? e,
|
|
@@ -2870,7 +3814,7 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
2870
3814
|
left: -9999,
|
|
2871
3815
|
opacity: 0
|
|
2872
3816
|
}],
|
|
2873
|
-
children: [/* @__PURE__ */ M(
|
|
3817
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
2874
3818
|
style: {
|
|
2875
3819
|
color: I,
|
|
2876
3820
|
fontSize: a.fontSizeCaption,
|
|
@@ -2883,12 +3827,12 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
2883
3827
|
})
|
|
2884
3828
|
})
|
|
2885
3829
|
})] });
|
|
2886
|
-
},
|
|
3830
|
+
}, Tn = {
|
|
2887
3831
|
sm: "sm",
|
|
2888
3832
|
md: "md",
|
|
2889
3833
|
lg: "lg"
|
|
2890
|
-
},
|
|
2891
|
-
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, {
|
|
2892
3836
|
ref: l,
|
|
2893
3837
|
accessibilityLabel: t,
|
|
2894
3838
|
shape: "circular",
|
|
@@ -2896,22 +3840,22 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
2896
3840
|
variant: n === "osd" ? "flat" : n,
|
|
2897
3841
|
osd: n === "osd",
|
|
2898
3842
|
...c,
|
|
2899
|
-
children: /* @__PURE__ */ M(
|
|
3843
|
+
children: /* @__PURE__ */ M(X, {
|
|
2900
3844
|
icon: e,
|
|
2901
|
-
size: i ??
|
|
3845
|
+
size: i ?? Tn[r]
|
|
2902
3846
|
})
|
|
2903
3847
|
});
|
|
2904
|
-
return a ? /* @__PURE__ */ M(
|
|
3848
|
+
return a ? /* @__PURE__ */ M(wn, {
|
|
2905
3849
|
label: a,
|
|
2906
3850
|
placement: o,
|
|
2907
3851
|
delay: s,
|
|
2908
3852
|
children: u
|
|
2909
3853
|
}) : u;
|
|
2910
|
-
}),
|
|
3854
|
+
}), Dn = m.createAnimatedComponent(w), On = r(0), kn = {
|
|
2911
3855
|
classic: 420,
|
|
2912
3856
|
wide: 640
|
|
2913
|
-
},
|
|
2914
|
-
let v =
|
|
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;
|
|
2915
3859
|
c(() => {
|
|
2916
3860
|
if (!e) return;
|
|
2917
3861
|
if (b) {
|
|
@@ -2958,7 +3902,7 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
2958
3902
|
[t === "right" ? "borderRightWidth" : "borderLeftWidth"]: 1,
|
|
2959
3903
|
borderColor: v.cardShadeColor
|
|
2960
3904
|
},
|
|
2961
|
-
children: u.map((e) => /* @__PURE__ */ M(
|
|
3905
|
+
children: u.map((e) => /* @__PURE__ */ M(En, {
|
|
2962
3906
|
icon: e.icon,
|
|
2963
3907
|
label: e.label,
|
|
2964
3908
|
tooltip: e.label,
|
|
@@ -2979,7 +3923,7 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
2979
3923
|
animationType: "none",
|
|
2980
3924
|
statusBarTranslucent: !0,
|
|
2981
3925
|
onRequestClose: o,
|
|
2982
|
-
children: /* @__PURE__ */ M(
|
|
3926
|
+
children: /* @__PURE__ */ M(Dn, {
|
|
2983
3927
|
testID: p,
|
|
2984
3928
|
onPress: l ? o : void 0,
|
|
2985
3929
|
accessible: !1,
|
|
@@ -3028,21 +3972,21 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3028
3972
|
padding: v.space4,
|
|
3029
3973
|
paddingBottom: v.space2
|
|
3030
3974
|
},
|
|
3031
|
-
children: [/* @__PURE__ */ M(
|
|
3975
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
3032
3976
|
variant: "title-4",
|
|
3033
3977
|
style: {
|
|
3034
3978
|
flex: 1,
|
|
3035
3979
|
fontWeight: String(v.fontWeightBold)
|
|
3036
3980
|
},
|
|
3037
3981
|
children: r
|
|
3038
|
-
}), o && /* @__PURE__ */ M(
|
|
3982
|
+
}), o && /* @__PURE__ */ M(Rt, {
|
|
3039
3983
|
variant: "flat",
|
|
3040
3984
|
shape: "circular",
|
|
3041
3985
|
size: "sm",
|
|
3042
3986
|
accessibilityLabel: "Close",
|
|
3043
3987
|
onPress: o,
|
|
3044
|
-
children: /* @__PURE__ */ M(
|
|
3045
|
-
icon:
|
|
3988
|
+
children: /* @__PURE__ */ M(X, {
|
|
3989
|
+
icon: R,
|
|
3046
3990
|
size: "sm"
|
|
3047
3991
|
})
|
|
3048
3992
|
})]
|
|
@@ -3052,9 +3996,9 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3052
3996
|
padding: v.space4,
|
|
3053
3997
|
paddingTop: r ? 0 : v.space4
|
|
3054
3998
|
},
|
|
3055
|
-
children: /* @__PURE__ */ M(
|
|
3999
|
+
children: /* @__PURE__ */ M(On.Provider, {
|
|
3056
4000
|
value: S + 1,
|
|
3057
|
-
children: typeof C == "string" ? /* @__PURE__ */ M(
|
|
4001
|
+
children: typeof C == "string" ? /* @__PURE__ */ M(Y, {
|
|
3058
4002
|
variant: "body",
|
|
3059
4003
|
children: C
|
|
3060
4004
|
}) : C
|
|
@@ -3067,198 +4011,127 @@ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3067
4011
|
})
|
|
3068
4012
|
})
|
|
3069
4013
|
});
|
|
3070
|
-
},
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
left: e.x,
|
|
3076
|
-
width: e.width,
|
|
3077
|
-
flipUp: r
|
|
3078
|
-
};
|
|
3079
|
-
}
|
|
3080
|
-
var Xt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
|
|
3081
|
-
let l = W(), u = G(), [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 = () => {
|
|
3082
|
-
a || h(!0);
|
|
3083
|
-
}, A = () => h(!1), j = (e) => {
|
|
3084
|
-
e.disabled || (n?.(e.value), A());
|
|
3085
|
-
};
|
|
3086
|
-
return c(() => {
|
|
3087
|
-
if (!p) {
|
|
3088
|
-
_(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);
|
|
3089
4019
|
return;
|
|
3090
4020
|
}
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
width: n,
|
|
3096
|
-
height: r
|
|
3097
|
-
});
|
|
4021
|
+
let e = m.timing(I, {
|
|
4022
|
+
toValue: +!!F,
|
|
4023
|
+
duration: y.durationFast,
|
|
4024
|
+
useNativeDriver: !1
|
|
3098
4025
|
});
|
|
3099
|
-
|
|
3100
|
-
g === null || v === null || S(Yt(g, v));
|
|
3101
|
-
}, [g, v]), c(() => {
|
|
3102
|
-
if (b) {
|
|
3103
|
-
if (u) {
|
|
3104
|
-
E.setValue(1);
|
|
3105
|
-
return;
|
|
3106
|
-
}
|
|
3107
|
-
E.setValue(0), m.timing(E, {
|
|
3108
|
-
toValue: 1,
|
|
3109
|
-
duration: l.durationFast,
|
|
3110
|
-
useNativeDriver: !0
|
|
3111
|
-
}).start();
|
|
3112
|
-
}
|
|
4026
|
+
return e.start(), () => e.stop();
|
|
3113
4027
|
}, [
|
|
4028
|
+
F,
|
|
3114
4029
|
b,
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
},
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
bounces: !1,
|
|
3206
|
-
children: e.map((e) => {
|
|
3207
|
-
let n = e.value === t;
|
|
3208
|
-
return /* @__PURE__ */ N(w, {
|
|
3209
|
-
role: "option",
|
|
3210
|
-
accessibilityState: {
|
|
3211
|
-
selected: n,
|
|
3212
|
-
disabled: !!e.disabled
|
|
3213
|
-
},
|
|
3214
|
-
disabled: e.disabled,
|
|
3215
|
-
onPress: () => j(e),
|
|
3216
|
-
style: ({ pressed: t }) => ({
|
|
3217
|
-
flexDirection: "row",
|
|
3218
|
-
alignItems: "center",
|
|
3219
|
-
gap: l.space2,
|
|
3220
|
-
minHeight: 40,
|
|
3221
|
-
paddingVertical: 8,
|
|
3222
|
-
paddingHorizontal: l.space2,
|
|
3223
|
-
backgroundColor: t ? l.activeOverlay : "transparent",
|
|
3224
|
-
opacity: e.disabled ? l.opacityDisabled : 1
|
|
3225
|
-
}),
|
|
3226
|
-
children: [/* @__PURE__ */ N(k, {
|
|
3227
|
-
style: {
|
|
3228
|
-
flex: 1,
|
|
3229
|
-
gap: 1
|
|
3230
|
-
},
|
|
3231
|
-
children: [/* @__PURE__ */ M(K, {
|
|
3232
|
-
numberOfLines: 1,
|
|
3233
|
-
style: {
|
|
3234
|
-
fontSize: l.fontSizeBody,
|
|
3235
|
-
color: l.windowFgColor,
|
|
3236
|
-
fontWeight: n ? String(l.fontWeightSemibold) : void 0
|
|
3237
|
-
},
|
|
3238
|
-
children: e.label
|
|
3239
|
-
}), e.description && /* @__PURE__ */ M(K, {
|
|
3240
|
-
numberOfLines: 1,
|
|
3241
|
-
style: {
|
|
3242
|
-
fontSize: l.fontSizeCaption,
|
|
3243
|
-
color: l.windowFgColor,
|
|
3244
|
-
opacity: l.opacityDim
|
|
3245
|
-
},
|
|
3246
|
-
children: e.description
|
|
3247
|
-
})]
|
|
3248
|
-
}), n && /* @__PURE__ */ M(q, {
|
|
3249
|
-
icon: I,
|
|
3250
|
-
size: "md",
|
|
3251
|
-
color: "blue"
|
|
3252
|
-
})]
|
|
3253
|
-
}, e.value);
|
|
3254
|
-
})
|
|
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),
|
|
4055
|
+
style: {
|
|
4056
|
+
flex: 1,
|
|
4057
|
+
justifyContent: "center",
|
|
4058
|
+
minHeight: 56
|
|
4059
|
+
},
|
|
4060
|
+
children: [/* @__PURE__ */ M(m.Text, {
|
|
4061
|
+
pointerEvents: "none",
|
|
4062
|
+
accessibilityElementsHidden: !0,
|
|
4063
|
+
importantForAccessibility: "no",
|
|
4064
|
+
numberOfLines: 1,
|
|
4065
|
+
style: {
|
|
4066
|
+
position: "absolute",
|
|
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);
|
|
4095
|
+
},
|
|
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
|
+
..._
|
|
3255
4120
|
})
|
|
3256
|
-
})
|
|
3257
|
-
})
|
|
3258
|
-
|
|
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
|
+
]
|
|
3259
4132
|
});
|
|
3260
|
-
},
|
|
3261
|
-
let l =
|
|
4133
|
+
}), Fn = ({ label: e, children: t, expanded: n, defaultExpanded: r = !1, onExpandedChange: i, disabled: a = !1, style: o, testID: s }) => {
|
|
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 = () => {
|
|
3262
4135
|
if (a) return;
|
|
3263
4136
|
let e = !v;
|
|
3264
4137
|
p || g(e), i?.(e);
|
|
@@ -3328,11 +4201,11 @@ var Xt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3328
4201
|
opacity: .55,
|
|
3329
4202
|
transform: [{ rotate: O }]
|
|
3330
4203
|
},
|
|
3331
|
-
children: /* @__PURE__ */ M(
|
|
3332
|
-
icon:
|
|
4204
|
+
children: /* @__PURE__ */ M(X, {
|
|
4205
|
+
icon: U,
|
|
3333
4206
|
size: "md"
|
|
3334
4207
|
})
|
|
3335
|
-
}), typeof e == "string" ? /* @__PURE__ */ M(
|
|
4208
|
+
}), typeof e == "string" ? /* @__PURE__ */ M(Y, {
|
|
3336
4209
|
style: { color: l.windowFgColor },
|
|
3337
4210
|
children: e
|
|
3338
4211
|
}) : e]
|
|
@@ -3352,21 +4225,21 @@ var Xt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3352
4225
|
})
|
|
3353
4226
|
})]
|
|
3354
4227
|
});
|
|
3355
|
-
},
|
|
3356
|
-
folder:
|
|
3357
|
-
image:
|
|
3358
|
-
audio:
|
|
3359
|
-
video:
|
|
3360
|
-
text:
|
|
3361
|
-
pdf:
|
|
3362
|
-
archive:
|
|
3363
|
-
document:
|
|
3364
|
-
spreadsheet:
|
|
3365
|
-
presentation:
|
|
3366
|
-
font:
|
|
3367
|
-
executable:
|
|
3368
|
-
unknown:
|
|
3369
|
-
},
|
|
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 = {
|
|
3370
4243
|
folder: "Folder",
|
|
3371
4244
|
image: "Image file",
|
|
3372
4245
|
audio: "Audio file",
|
|
@@ -3380,7 +4253,7 @@ var Xt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3380
4253
|
font: "Font file",
|
|
3381
4254
|
executable: "Executable",
|
|
3382
4255
|
unknown: "File"
|
|
3383
|
-
},
|
|
4256
|
+
}, Rn = {
|
|
3384
4257
|
png: "image",
|
|
3385
4258
|
jpg: "image",
|
|
3386
4259
|
jpeg: "image",
|
|
@@ -3452,13 +4325,13 @@ var Xt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3452
4325
|
h: "text",
|
|
3453
4326
|
java: "text",
|
|
3454
4327
|
sql: "text"
|
|
3455
|
-
},
|
|
4328
|
+
}, zn = {
|
|
3456
4329
|
image: "image",
|
|
3457
4330
|
audio: "audio",
|
|
3458
4331
|
video: "video",
|
|
3459
4332
|
text: "text",
|
|
3460
4333
|
font: "font"
|
|
3461
|
-
},
|
|
4334
|
+
}, Bn = {
|
|
3462
4335
|
pdf: "pdf",
|
|
3463
4336
|
zip: "archive",
|
|
3464
4337
|
gzip: "archive",
|
|
@@ -3478,31 +4351,31 @@ var Xt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3478
4351
|
"x-sh": "executable",
|
|
3479
4352
|
"x-executable": "executable"
|
|
3480
4353
|
};
|
|
3481
|
-
function
|
|
4354
|
+
function Vn(e) {
|
|
3482
4355
|
let t = e.trim().toLowerCase();
|
|
3483
4356
|
if (t === "inode/directory") return "folder";
|
|
3484
4357
|
let [n, r] = t.split("/");
|
|
3485
|
-
return r &&
|
|
4358
|
+
return r && Bn[r] ? Bn[r] : zn[n] ?? null;
|
|
3486
4359
|
}
|
|
3487
|
-
function
|
|
4360
|
+
function Hn(e) {
|
|
3488
4361
|
let t = e.trim().replace(/^\.+/, ""), n = t.lastIndexOf(".");
|
|
3489
|
-
return n <= 0 ? null :
|
|
4362
|
+
return n <= 0 ? null : Rn[t.slice(n + 1).toLowerCase()] ?? null;
|
|
3490
4363
|
}
|
|
3491
|
-
function
|
|
3492
|
-
return
|
|
4364
|
+
function Un(e) {
|
|
4365
|
+
return In[e];
|
|
3493
4366
|
}
|
|
3494
|
-
function
|
|
3495
|
-
return
|
|
4367
|
+
function Wn(e) {
|
|
4368
|
+
return Ln[e];
|
|
3496
4369
|
}
|
|
3497
4370
|
//#endregion
|
|
3498
4371
|
//#region src/components/FileTypeIcon/FileTypeIcon.tsx
|
|
3499
|
-
var
|
|
3500
|
-
let c =
|
|
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";
|
|
3501
4374
|
return /* @__PURE__ */ M(k, {
|
|
3502
4375
|
testID: s,
|
|
3503
4376
|
accessible: !0,
|
|
3504
4377
|
role: "img",
|
|
3505
|
-
accessibilityLabel: i ??
|
|
4378
|
+
accessibilityLabel: i ?? Wn(u),
|
|
3506
4379
|
style: [{
|
|
3507
4380
|
width: l,
|
|
3508
4381
|
height: l,
|
|
@@ -3518,13 +4391,13 @@ var cn = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size
|
|
|
3518
4391
|
height: l,
|
|
3519
4392
|
borderRadius: c.radiusSm
|
|
3520
4393
|
}
|
|
3521
|
-
}) : /* @__PURE__ */ M(
|
|
3522
|
-
icon:
|
|
4394
|
+
}) : /* @__PURE__ */ M(X, {
|
|
4395
|
+
icon: Un(u),
|
|
3523
4396
|
size: a
|
|
3524
4397
|
})
|
|
3525
4398
|
});
|
|
3526
|
-
},
|
|
3527
|
-
let s =
|
|
4399
|
+
}, Kn = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
|
|
4400
|
+
let s = q();
|
|
3528
4401
|
return /* @__PURE__ */ N(k, {
|
|
3529
4402
|
ref: o,
|
|
3530
4403
|
style: [{
|
|
@@ -3583,23 +4456,23 @@ var cn = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size
|
|
|
3583
4456
|
});
|
|
3584
4457
|
//#endregion
|
|
3585
4458
|
//#region src/components/Highlight/Highlight.tsx
|
|
3586
|
-
function
|
|
4459
|
+
function qn(e) {
|
|
3587
4460
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3588
4461
|
}
|
|
3589
|
-
var
|
|
3590
|
-
let i =
|
|
3591
|
-
if (o.length === 0) return /* @__PURE__ */ M(
|
|
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);
|
|
4464
|
+
if (o.length === 0) return /* @__PURE__ */ M(Y, {
|
|
3592
4465
|
...r,
|
|
3593
4466
|
children: e
|
|
3594
4467
|
});
|
|
3595
|
-
let s = RegExp(`(${o.map(
|
|
4468
|
+
let s = RegExp(`(${o.map(qn).join("|")})`, n ? "g" : "gi"), c = e.split(s), l = {
|
|
3596
4469
|
fontWeight: String(i.fontWeightSemibold),
|
|
3597
4470
|
...a === "more" ? {
|
|
3598
4471
|
backgroundColor: i.accentBgColor,
|
|
3599
4472
|
color: "#fff"
|
|
3600
4473
|
} : { backgroundColor: `${i.accentBgColor}4D` }
|
|
3601
4474
|
};
|
|
3602
|
-
return /* @__PURE__ */ M(
|
|
4475
|
+
return /* @__PURE__ */ M(Y, {
|
|
3603
4476
|
...r,
|
|
3604
4477
|
children: c.map((e, t) => t % 2 == 1 ? /* @__PURE__ */ M(D, {
|
|
3605
4478
|
style: l,
|
|
@@ -3608,11 +4481,369 @@ var dn = ({ text: e, query: t, caseSensitive: n = !1, ...r }) => {
|
|
|
3608
4481
|
});
|
|
3609
4482
|
};
|
|
3610
4483
|
//#endregion
|
|
4484
|
+
//#region src/components/InlineViewSwitcher/variants.ts
|
|
4485
|
+
function Yn(e, t, n) {
|
|
4486
|
+
let r = n ? "rgba(255, 255, 255, 0.12)" : e.light3, i = `${e.accentBgColor}${n ? "40" : "26"}`, a = `${e.accentBgColor}${n ? "80" : "66"}`;
|
|
4487
|
+
switch (t) {
|
|
4488
|
+
case "flat": return {
|
|
4489
|
+
container: {
|
|
4490
|
+
backgroundColor: "transparent",
|
|
4491
|
+
borderRadius: e.radiusMd,
|
|
4492
|
+
padding: 2,
|
|
4493
|
+
gap: 2
|
|
4494
|
+
},
|
|
4495
|
+
gap: 2,
|
|
4496
|
+
padding: 2,
|
|
4497
|
+
item: {
|
|
4498
|
+
borderRadius: e.radiusMd - 2,
|
|
4499
|
+
paddingHorizontal: e.space2
|
|
4500
|
+
},
|
|
4501
|
+
iconOnlyItem: {
|
|
4502
|
+
paddingHorizontal: 4,
|
|
4503
|
+
minWidth: 28
|
|
4504
|
+
},
|
|
4505
|
+
indicator: {
|
|
4506
|
+
backgroundColor: i,
|
|
4507
|
+
borderRadius: e.radiusMd - 2
|
|
4508
|
+
},
|
|
4509
|
+
indicatorInset: 2,
|
|
4510
|
+
activeTextColor: e.accentColor,
|
|
4511
|
+
idleTextColor: e.windowFgColor
|
|
4512
|
+
};
|
|
4513
|
+
case "round": return {
|
|
4514
|
+
container: {
|
|
4515
|
+
backgroundColor: e.cardBgColor,
|
|
4516
|
+
borderWidth: 1,
|
|
4517
|
+
borderColor: r,
|
|
4518
|
+
borderRadius: e.radiusPill,
|
|
4519
|
+
padding: 2,
|
|
4520
|
+
gap: 2
|
|
4521
|
+
},
|
|
4522
|
+
gap: 2,
|
|
4523
|
+
padding: 2,
|
|
4524
|
+
item: {
|
|
4525
|
+
borderRadius: e.radiusPill,
|
|
4526
|
+
paddingHorizontal: e.space2
|
|
4527
|
+
},
|
|
4528
|
+
iconOnlyItem: {
|
|
4529
|
+
paddingHorizontal: 4,
|
|
4530
|
+
minWidth: 28
|
|
4531
|
+
},
|
|
4532
|
+
indicator: {
|
|
4533
|
+
backgroundColor: e.accentBgColor,
|
|
4534
|
+
borderRadius: e.radiusPill
|
|
4535
|
+
},
|
|
4536
|
+
indicatorInset: 2,
|
|
4537
|
+
activeTextColor: e.accentFgColor,
|
|
4538
|
+
idleTextColor: e.windowFgColor
|
|
4539
|
+
};
|
|
4540
|
+
case "pill": return {
|
|
4541
|
+
container: {
|
|
4542
|
+
backgroundColor: e.hoverOverlay,
|
|
4543
|
+
borderRadius: e.radiusPill,
|
|
4544
|
+
padding: 3,
|
|
4545
|
+
gap: 2
|
|
4546
|
+
},
|
|
4547
|
+
gap: 2,
|
|
4548
|
+
padding: 3,
|
|
4549
|
+
item: {
|
|
4550
|
+
borderRadius: e.radiusPill,
|
|
4551
|
+
paddingVertical: 5,
|
|
4552
|
+
paddingHorizontal: e.space2
|
|
4553
|
+
},
|
|
4554
|
+
iconOnlyItem: {
|
|
4555
|
+
paddingHorizontal: 5,
|
|
4556
|
+
minWidth: 28
|
|
4557
|
+
},
|
|
4558
|
+
indicator: {
|
|
4559
|
+
backgroundColor: e.cardBgColor,
|
|
4560
|
+
borderRadius: e.radiusPill
|
|
4561
|
+
},
|
|
4562
|
+
indicatorInset: 3,
|
|
4563
|
+
activeTextColor: e.windowFgColor,
|
|
4564
|
+
idleTextColor: e.windowFgColor
|
|
4565
|
+
};
|
|
4566
|
+
default: return {
|
|
4567
|
+
container: {
|
|
4568
|
+
backgroundColor: e.cardBgColor,
|
|
4569
|
+
borderWidth: 1,
|
|
4570
|
+
borderColor: r,
|
|
4571
|
+
borderRadius: e.radiusMd,
|
|
4572
|
+
padding: 2,
|
|
4573
|
+
gap: 2
|
|
4574
|
+
},
|
|
4575
|
+
gap: 2,
|
|
4576
|
+
padding: 2,
|
|
4577
|
+
item: {
|
|
4578
|
+
borderRadius: e.radiusMd - 2,
|
|
4579
|
+
paddingHorizontal: e.space2
|
|
4580
|
+
},
|
|
4581
|
+
iconOnlyItem: {
|
|
4582
|
+
paddingHorizontal: 4,
|
|
4583
|
+
minWidth: 28
|
|
4584
|
+
},
|
|
4585
|
+
indicator: {
|
|
4586
|
+
backgroundColor: i,
|
|
4587
|
+
borderRadius: e.radiusMd - 2,
|
|
4588
|
+
borderWidth: 1,
|
|
4589
|
+
borderColor: a
|
|
4590
|
+
},
|
|
4591
|
+
indicatorInset: 2,
|
|
4592
|
+
activeTextColor: e.accentColor,
|
|
4593
|
+
idleTextColor: e.windowFgColor
|
|
4594
|
+
};
|
|
4595
|
+
}
|
|
4596
|
+
}
|
|
4597
|
+
function Xn(e, t, n) {
|
|
4598
|
+
return {
|
|
4599
|
+
fontFamily: e.fontFamily,
|
|
4600
|
+
fontSize: e.fontSizeBody,
|
|
4601
|
+
fontWeight: String(t ? e.fontWeightSemibold : e.fontWeightNormal),
|
|
4602
|
+
color: n
|
|
4603
|
+
};
|
|
4604
|
+
}
|
|
4605
|
+
//#endregion
|
|
4606
|
+
//#region src/components/InlineViewSwitcher/InlineViewSwitcher.tsx
|
|
4607
|
+
var Zn = r(null);
|
|
4608
|
+
function Qn() {
|
|
4609
|
+
let e = s(Zn);
|
|
4610
|
+
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
4611
|
+
return e;
|
|
4612
|
+
}
|
|
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), [
|
|
4615
|
+
_,
|
|
4616
|
+
r,
|
|
4617
|
+
v
|
|
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) => {
|
|
4619
|
+
S((n) => {
|
|
4620
|
+
let r = n[e];
|
|
4621
|
+
return r && r.x === t.x && r.width === t.width ? n : {
|
|
4622
|
+
...n,
|
|
4623
|
+
[e]: t
|
|
4624
|
+
};
|
|
4625
|
+
});
|
|
4626
|
+
}, []), V = i === "compact" || i === "menu", H = u(() => e.toArray(l).filter(a).filter((e) => e.type.displayName === "InlineViewSwitcherItem").map((e) => e.props), [l]), ee = u(() => {
|
|
4627
|
+
let e = H.map((e) => x[e.name]?.width ?? 0);
|
|
4628
|
+
if (e.some((e) => e === 0)) return 0;
|
|
4629
|
+
let t = Math.max(H.length - 1, 0) * b.gap;
|
|
4630
|
+
return e.reduce((e, t) => e + t, 0) + t + 2 * b.padding;
|
|
4631
|
+
}, [
|
|
4632
|
+
H,
|
|
4633
|
+
x,
|
|
4634
|
+
b.gap,
|
|
4635
|
+
b.padding
|
|
4636
|
+
]);
|
|
4637
|
+
c(() => {
|
|
4638
|
+
if (!V || C === 0 || ee === 0) {
|
|
4639
|
+
V || A(!1);
|
|
4640
|
+
return;
|
|
4641
|
+
}
|
|
4642
|
+
A((e) => e ? I.current > C + er : ee > C ? (I.current = ee, !0) : !1);
|
|
4643
|
+
}, [
|
|
4644
|
+
V,
|
|
4645
|
+
C,
|
|
4646
|
+
ee
|
|
4647
|
+
]);
|
|
4648
|
+
let te = i === "compact" && O, ne = i === "menu" && O, U = H.find((e) => e.name === t) ?? H[0], ie = x[t];
|
|
4649
|
+
c(() => {
|
|
4650
|
+
if (ne || !ie) return;
|
|
4651
|
+
if (y) {
|
|
4652
|
+
R.setValue(ie.x), z.setValue(ie.width);
|
|
4653
|
+
return;
|
|
4654
|
+
}
|
|
4655
|
+
let e = m.parallel([m.timing(R, {
|
|
4656
|
+
toValue: ie.x,
|
|
4657
|
+
duration: $n,
|
|
4658
|
+
useNativeDriver: !1
|
|
4659
|
+
}), m.timing(z, {
|
|
4660
|
+
toValue: ie.width,
|
|
4661
|
+
duration: $n,
|
|
4662
|
+
useNativeDriver: !1
|
|
4663
|
+
})]);
|
|
4664
|
+
return e.start(), () => e.stop();
|
|
4665
|
+
}, [
|
|
4666
|
+
ie,
|
|
4667
|
+
ne,
|
|
4668
|
+
y,
|
|
4669
|
+
R,
|
|
4670
|
+
z
|
|
4671
|
+
]);
|
|
4672
|
+
let ae = u(() => ({
|
|
4673
|
+
value: t,
|
|
4674
|
+
onValueChange: n,
|
|
4675
|
+
compact: te,
|
|
4676
|
+
styles: b,
|
|
4677
|
+
onItemLayout: B
|
|
4678
|
+
}), [
|
|
4679
|
+
t,
|
|
4680
|
+
n,
|
|
4681
|
+
te,
|
|
4682
|
+
b,
|
|
4683
|
+
B
|
|
4684
|
+
]), oe = o((e) => {
|
|
4685
|
+
V && E(e.nativeEvent.layout.width);
|
|
4686
|
+
}, [V]), se = u(() => i === "scroll" ? H.map((e) => x[e.name]?.x ?? 0).filter((e, t) => t === 0 || e > 0) : void 0, [
|
|
4687
|
+
i,
|
|
4688
|
+
H,
|
|
4689
|
+
x
|
|
4690
|
+
]), ce = /* @__PURE__ */ M(k, {
|
|
4691
|
+
ref: g,
|
|
4692
|
+
accessibilityRole: ne ? void 0 : "radiogroup",
|
|
4693
|
+
accessibilityLabel: s,
|
|
4694
|
+
onLayout: oe,
|
|
4695
|
+
style: [
|
|
4696
|
+
{
|
|
4697
|
+
flexDirection: "row",
|
|
4698
|
+
alignItems: "stretch"
|
|
4699
|
+
},
|
|
4700
|
+
b.container,
|
|
4701
|
+
V ? { width: "100%" } : { alignSelf: "flex-start" },
|
|
4702
|
+
p
|
|
4703
|
+
],
|
|
4704
|
+
...h,
|
|
4705
|
+
children: ne ? /* @__PURE__ */ N(w, {
|
|
4706
|
+
accessibilityRole: "button",
|
|
4707
|
+
accessibilityLabel: `${s}: ${U?.label ?? U?.name}`,
|
|
4708
|
+
onPress: () => F(!0),
|
|
4709
|
+
style: [{
|
|
4710
|
+
flexDirection: "row",
|
|
4711
|
+
alignItems: "center",
|
|
4712
|
+
justifyContent: "center",
|
|
4713
|
+
gap: _.space1,
|
|
4714
|
+
minHeight: 28,
|
|
4715
|
+
paddingVertical: 4
|
|
4716
|
+
}, b.item],
|
|
4717
|
+
children: [
|
|
4718
|
+
U?.icon ? /* @__PURE__ */ M(X, {
|
|
4719
|
+
icon: U.icon,
|
|
4720
|
+
size: "md"
|
|
4721
|
+
}) : null,
|
|
4722
|
+
U?.label ? /* @__PURE__ */ M(D, {
|
|
4723
|
+
style: Xn(_, !0, b.idleTextColor),
|
|
4724
|
+
children: U.label
|
|
4725
|
+
}) : null,
|
|
4726
|
+
/* @__PURE__ */ M(X, {
|
|
4727
|
+
icon: re,
|
|
4728
|
+
size: "sm"
|
|
4729
|
+
})
|
|
4730
|
+
]
|
|
4731
|
+
}) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(m.View, {
|
|
4732
|
+
pointerEvents: "none",
|
|
4733
|
+
style: [{
|
|
4734
|
+
position: "absolute",
|
|
4735
|
+
left: 0,
|
|
4736
|
+
top: b.indicatorInset,
|
|
4737
|
+
bottom: b.indicatorInset,
|
|
4738
|
+
width: z,
|
|
4739
|
+
transform: [{ translateX: R }]
|
|
4740
|
+
}, b.indicator]
|
|
4741
|
+
}), l] })
|
|
4742
|
+
});
|
|
4743
|
+
return /* @__PURE__ */ N(Zn.Provider, {
|
|
4744
|
+
value: ae,
|
|
4745
|
+
children: [i === "scroll" ? /* @__PURE__ */ M(T, {
|
|
4746
|
+
horizontal: !0,
|
|
4747
|
+
showsHorizontalScrollIndicator: !1,
|
|
4748
|
+
snapToOffsets: se,
|
|
4749
|
+
decelerationRate: "fast",
|
|
4750
|
+
contentContainerStyle: { flexGrow: 0 },
|
|
4751
|
+
style: { flexGrow: 0 },
|
|
4752
|
+
children: ce
|
|
4753
|
+
}) : ce, i === "menu" ? /* @__PURE__ */ M(kt, {
|
|
4754
|
+
open: P,
|
|
4755
|
+
title: s,
|
|
4756
|
+
onClose: () => F(!1),
|
|
4757
|
+
children: /* @__PURE__ */ M(k, {
|
|
4758
|
+
accessibilityRole: "radiogroup",
|
|
4759
|
+
accessibilityLabel: s,
|
|
4760
|
+
children: H.map((e) => {
|
|
4761
|
+
let r = e.name === t;
|
|
4762
|
+
return /* @__PURE__ */ N(w, {
|
|
4763
|
+
accessibilityRole: "radio",
|
|
4764
|
+
accessibilityState: { checked: r },
|
|
4765
|
+
accessibilityLabel: e.label ?? e.name,
|
|
4766
|
+
onPress: () => {
|
|
4767
|
+
n(e.name), F(!1);
|
|
4768
|
+
},
|
|
4769
|
+
style: ({ pressed: e }) => ({
|
|
4770
|
+
flexDirection: "row",
|
|
4771
|
+
alignItems: "center",
|
|
4772
|
+
gap: _.space2,
|
|
4773
|
+
paddingVertical: _.space2,
|
|
4774
|
+
paddingHorizontal: _.space3,
|
|
4775
|
+
borderRadius: _.radiusMd,
|
|
4776
|
+
backgroundColor: e ? _.activeOverlay : "transparent"
|
|
4777
|
+
}),
|
|
4778
|
+
children: [
|
|
4779
|
+
e.icon ? /* @__PURE__ */ M(X, {
|
|
4780
|
+
icon: e.icon,
|
|
4781
|
+
size: "md"
|
|
4782
|
+
}) : null,
|
|
4783
|
+
/* @__PURE__ */ M(D, {
|
|
4784
|
+
style: [Xn(_, r, r ? _.accentColor : _.windowFgColor), { flex: 1 }],
|
|
4785
|
+
children: e.label ?? e.name
|
|
4786
|
+
}),
|
|
4787
|
+
r ? /* @__PURE__ */ M(X, {
|
|
4788
|
+
icon: L,
|
|
4789
|
+
size: "md"
|
|
4790
|
+
}) : null
|
|
4791
|
+
]
|
|
4792
|
+
}, e.name);
|
|
4793
|
+
})
|
|
4794
|
+
})
|
|
4795
|
+
}) : null]
|
|
4796
|
+
});
|
|
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;
|
|
4799
|
+
return /* @__PURE__ */ N(w, {
|
|
4800
|
+
ref: s,
|
|
4801
|
+
disabled: i,
|
|
4802
|
+
onPress: () => u(e),
|
|
4803
|
+
onLayout: o((t) => {
|
|
4804
|
+
let { x: n, width: r } = t.nativeEvent.layout;
|
|
4805
|
+
p(e, {
|
|
4806
|
+
x: n,
|
|
4807
|
+
width: r
|
|
4808
|
+
});
|
|
4809
|
+
}, [e, p]),
|
|
4810
|
+
accessibilityRole: "radio",
|
|
4811
|
+
accessibilityState: {
|
|
4812
|
+
checked: m,
|
|
4813
|
+
disabled: i
|
|
4814
|
+
},
|
|
4815
|
+
accessibilityLabel: r ?? t,
|
|
4816
|
+
style: [
|
|
4817
|
+
{
|
|
4818
|
+
flexDirection: "row",
|
|
4819
|
+
alignItems: "center",
|
|
4820
|
+
justifyContent: "center",
|
|
4821
|
+
gap: c.space1,
|
|
4822
|
+
minHeight: 28,
|
|
4823
|
+
paddingVertical: 4,
|
|
4824
|
+
opacity: i ? c.opacityDisabled : 1
|
|
4825
|
+
},
|
|
4826
|
+
f.item,
|
|
4827
|
+
g ? f.iconOnlyItem : null
|
|
4828
|
+
],
|
|
4829
|
+
...a,
|
|
4830
|
+
children: [n ? /* @__PURE__ */ M(X, {
|
|
4831
|
+
icon: n,
|
|
4832
|
+
size: "md"
|
|
4833
|
+
}) : null, h ? /* @__PURE__ */ M(D, {
|
|
4834
|
+
numberOfLines: 1,
|
|
4835
|
+
style: Xn(c, m, m ? f.activeTextColor : f.idleTextColor),
|
|
4836
|
+
children: t
|
|
4837
|
+
}) : null]
|
|
4838
|
+
});
|
|
4839
|
+
});
|
|
4840
|
+
nr.displayName = "InlineViewSwitcherItem";
|
|
4841
|
+
//#endregion
|
|
3611
4842
|
//#region src/components/LevelBar/LevelBar.tsx
|
|
3612
|
-
function
|
|
4843
|
+
function rr(e, t, n, r, i, a) {
|
|
3613
4844
|
return t !== void 0 && e <= t ? n : r !== void 0 && e >= r ? i : a;
|
|
3614
4845
|
}
|
|
3615
|
-
function
|
|
4846
|
+
function ir(e, t) {
|
|
3616
4847
|
switch (t) {
|
|
3617
4848
|
case "accent": return e.accentBgColor;
|
|
3618
4849
|
case "success": return e.successBgColor;
|
|
@@ -3620,8 +4851,8 @@ function pn(e, t) {
|
|
|
3620
4851
|
case "error": return e.errorBgColor;
|
|
3621
4852
|
}
|
|
3622
4853
|
}
|
|
3623
|
-
var
|
|
3624
|
-
let g =
|
|
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;
|
|
3625
4856
|
c(() => {
|
|
3626
4857
|
if (l) return;
|
|
3627
4858
|
let [e, t, n, r] = g.easingDefault;
|
|
@@ -3668,7 +4899,7 @@ var mn = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
3668
4899
|
height: "100%",
|
|
3669
4900
|
minWidth: 2,
|
|
3670
4901
|
borderRadius: 1,
|
|
3671
|
-
backgroundColor: (t + 1) / u <= S ?
|
|
4902
|
+
backgroundColor: (t + 1) / u <= S ? ir(g, C) : T
|
|
3672
4903
|
}
|
|
3673
4904
|
}, t)) : /* @__PURE__ */ M(m.View, {
|
|
3674
4905
|
testID: h ? `${h}-fill` : void 0,
|
|
@@ -3676,14 +4907,14 @@ var mn = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
3676
4907
|
width: "100%",
|
|
3677
4908
|
height: "100%",
|
|
3678
4909
|
borderRadius: g.radiusPill,
|
|
3679
|
-
backgroundColor:
|
|
4910
|
+
backgroundColor: ir(g, C),
|
|
3680
4911
|
transformOrigin: "left",
|
|
3681
4912
|
transform: [{ scaleX: w }]
|
|
3682
4913
|
}
|
|
3683
4914
|
})
|
|
3684
4915
|
});
|
|
3685
|
-
},
|
|
3686
|
-
let c =
|
|
4916
|
+
}, or = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
|
|
4917
|
+
let c = q();
|
|
3687
4918
|
return /* @__PURE__ */ M(w, {
|
|
3688
4919
|
ref: s,
|
|
3689
4920
|
accessibilityRole: "link",
|
|
@@ -3691,7 +4922,7 @@ var mn = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
3691
4922
|
onPress: a ?? (() => b.openURL(e)),
|
|
3692
4923
|
style: r,
|
|
3693
4924
|
...o,
|
|
3694
|
-
children: ({ pressed: e }) => /* @__PURE__ */ N(
|
|
4925
|
+
children: ({ pressed: e }) => /* @__PURE__ */ N(Y, {
|
|
3695
4926
|
style: [{
|
|
3696
4927
|
color: c.accentColor,
|
|
3697
4928
|
textDecorationLine: e ? "underline" : "none",
|
|
@@ -3705,8 +4936,8 @@ var mn = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
3705
4936
|
})]
|
|
3706
4937
|
})
|
|
3707
4938
|
});
|
|
3708
|
-
}),
|
|
3709
|
-
let a =
|
|
4939
|
+
}), sr = m.createAnimatedComponent(w), cr = ({ open: e, onDismiss: t, children: n, style: r, testID: i }) => {
|
|
4940
|
+
let a = q(), o = J(), [s, l] = f(e), u = d(new m.Value(+!!e)).current;
|
|
3710
4941
|
return c(() => {
|
|
3711
4942
|
e && l(!0);
|
|
3712
4943
|
}, [e]), c(() => {
|
|
@@ -3744,7 +4975,7 @@ var mn = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
3744
4975
|
transparent: !0,
|
|
3745
4976
|
animationType: "none",
|
|
3746
4977
|
statusBarTranslucent: !0,
|
|
3747
|
-
children: /* @__PURE__ */ M(
|
|
4978
|
+
children: /* @__PURE__ */ M(sr, {
|
|
3748
4979
|
testID: i,
|
|
3749
4980
|
onPress: t,
|
|
3750
4981
|
accessible: !1,
|
|
@@ -3762,8 +4993,28 @@ var mn = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
3762
4993
|
})
|
|
3763
4994
|
})
|
|
3764
4995
|
}) : null;
|
|
3765
|
-
},
|
|
3766
|
-
let a =
|
|
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 }) => {
|
|
5017
|
+
let a = q();
|
|
3767
5018
|
return /* @__PURE__ */ M(k, {
|
|
3768
5019
|
style: [{
|
|
3769
5020
|
flexDirection: "row",
|
|
@@ -3836,8 +5087,8 @@ var mn = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
3836
5087
|
})] }, r.path);
|
|
3837
5088
|
})
|
|
3838
5089
|
});
|
|
3839
|
-
},
|
|
3840
|
-
function
|
|
5090
|
+
}, dr = 8, $ = 10, fr = 6;
|
|
5091
|
+
function pr(e, t) {
|
|
3841
5092
|
if (e) {
|
|
3842
5093
|
if (typeof e == "function") {
|
|
3843
5094
|
e(t);
|
|
@@ -3846,27 +5097,27 @@ function bn(e, t) {
|
|
|
3846
5097
|
e.current = t;
|
|
3847
5098
|
}
|
|
3848
5099
|
}
|
|
3849
|
-
function
|
|
5100
|
+
function mr(e, t, n) {
|
|
3850
5101
|
switch (n) {
|
|
3851
5102
|
case "top": return {
|
|
3852
|
-
top: e.y - t.height -
|
|
5103
|
+
top: e.y - t.height - dr,
|
|
3853
5104
|
left: e.x + e.width / 2 - t.width / 2
|
|
3854
5105
|
};
|
|
3855
5106
|
case "bottom": return {
|
|
3856
|
-
top: e.y + e.height +
|
|
5107
|
+
top: e.y + e.height + dr,
|
|
3857
5108
|
left: e.x + e.width / 2 - t.width / 2
|
|
3858
5109
|
};
|
|
3859
5110
|
case "left": return {
|
|
3860
5111
|
top: e.y + e.height / 2 - t.height / 2,
|
|
3861
|
-
left: e.x - t.width -
|
|
5112
|
+
left: e.x - t.width - dr
|
|
3862
5113
|
};
|
|
3863
5114
|
case "right": return {
|
|
3864
5115
|
top: e.y + e.height / 2 - t.height / 2,
|
|
3865
|
-
left: e.x + e.width +
|
|
5116
|
+
left: e.x + e.width + dr
|
|
3866
5117
|
};
|
|
3867
5118
|
}
|
|
3868
5119
|
}
|
|
3869
|
-
function
|
|
5120
|
+
function hr(e, t, n) {
|
|
3870
5121
|
let { width: r, height: i } = g.get("window"), a = [
|
|
3871
5122
|
n,
|
|
3872
5123
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -3876,22 +5127,22 @@ function Sn(e, t, n) {
|
|
|
3876
5127
|
"right"
|
|
3877
5128
|
];
|
|
3878
5129
|
for (let n of a) {
|
|
3879
|
-
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 - $;
|
|
3880
5131
|
if (s && c) return {
|
|
3881
|
-
top: Math.max(
|
|
3882
|
-
left: Math.max(
|
|
5132
|
+
top: Math.max($, Math.min(a, i - t.height - $)),
|
|
5133
|
+
left: Math.max($, Math.min(o, r - t.width - $)),
|
|
3883
5134
|
placement: n
|
|
3884
5135
|
};
|
|
3885
5136
|
}
|
|
3886
|
-
let { top: o, left: s } =
|
|
5137
|
+
let { top: o, left: s } = mr(e, t, n);
|
|
3887
5138
|
return {
|
|
3888
|
-
top: Math.max(
|
|
3889
|
-
left: Math.max(
|
|
5139
|
+
top: Math.max($, Math.min(o, i - t.height - $)),
|
|
5140
|
+
left: Math.max($, Math.min(s, r - t.width - $)),
|
|
3890
5141
|
placement: n
|
|
3891
5142
|
};
|
|
3892
5143
|
}
|
|
3893
|
-
var
|
|
3894
|
-
let l =
|
|
5144
|
+
var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panelStyle: a, children: s }) => {
|
|
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) => {
|
|
3895
5146
|
p || _(e), i?.(e);
|
|
3896
5147
|
}, [p, i]), P = o(() => A(!1), [A]), F = o(() => A(!v), [v, A]);
|
|
3897
5148
|
c(() => {
|
|
@@ -3908,7 +5159,7 @@ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
3908
5159
|
});
|
|
3909
5160
|
});
|
|
3910
5161
|
}, [v]), c(() => {
|
|
3911
|
-
!y || !S || E(
|
|
5162
|
+
!y || !S || E(hr(y, S, t));
|
|
3912
5163
|
}, [
|
|
3913
5164
|
y,
|
|
3914
5165
|
S,
|
|
@@ -3945,7 +5196,7 @@ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
3945
5196
|
position: "absolute",
|
|
3946
5197
|
width: 0,
|
|
3947
5198
|
height: 0,
|
|
3948
|
-
borderWidth:
|
|
5199
|
+
borderWidth: fr,
|
|
3949
5200
|
borderColor: "transparent"
|
|
3950
5201
|
}, R = (() => {
|
|
3951
5202
|
switch (T?.placement) {
|
|
@@ -3982,7 +5233,7 @@ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
3982
5233
|
})(), z = s.props.ref;
|
|
3983
5234
|
return /* @__PURE__ */ N(j, { children: [n(s, {
|
|
3984
5235
|
ref: (e) => {
|
|
3985
|
-
D.current = e,
|
|
5236
|
+
D.current = e, pr(z, e);
|
|
3986
5237
|
},
|
|
3987
5238
|
accessibilityState: {
|
|
3988
5239
|
expanded: v,
|
|
@@ -4040,8 +5291,41 @@ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4040
5291
|
})
|
|
4041
5292
|
})
|
|
4042
5293
|
})] });
|
|
4043
|
-
},
|
|
4044
|
-
let
|
|
5294
|
+
}, _r = i(function({ title: e, description: t, headerSuffix: n, children: r, style: i, ...a }, o) {
|
|
5295
|
+
let s = q(), c = !!(e || t || n);
|
|
5296
|
+
return /* @__PURE__ */ N(k, {
|
|
5297
|
+
ref: o,
|
|
5298
|
+
style: [{ gap: s.space2 }, i],
|
|
5299
|
+
...a,
|
|
5300
|
+
children: [c ? /* @__PURE__ */ N(k, {
|
|
5301
|
+
style: {
|
|
5302
|
+
flexDirection: "row",
|
|
5303
|
+
alignItems: "baseline",
|
|
5304
|
+
gap: s.space2
|
|
5305
|
+
},
|
|
5306
|
+
children: [/* @__PURE__ */ N(k, {
|
|
5307
|
+
style: {
|
|
5308
|
+
flex: 1,
|
|
5309
|
+
gap: 2
|
|
5310
|
+
},
|
|
5311
|
+
children: [e ? /* @__PURE__ */ M(Y, {
|
|
5312
|
+
variant: "body",
|
|
5313
|
+
accessibilityRole: "header",
|
|
5314
|
+
style: { fontWeight: String(s.fontWeightSemibold) },
|
|
5315
|
+
children: e
|
|
5316
|
+
}) : null, t ? /* @__PURE__ */ M(Y, {
|
|
5317
|
+
variant: "caption",
|
|
5318
|
+
color: "dim",
|
|
5319
|
+
children: t
|
|
5320
|
+
}) : null]
|
|
5321
|
+
}), n ? /* @__PURE__ */ M(k, {
|
|
5322
|
+
style: { flexShrink: 0 },
|
|
5323
|
+
children: n
|
|
5324
|
+
}) : null]
|
|
5325
|
+
}) : null, /* @__PURE__ */ M(k, { children: r })]
|
|
5326
|
+
});
|
|
5327
|
+
}), vr = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
|
|
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) => {
|
|
4045
5329
|
b(e.nativeEvent.layout.width), i?.(e);
|
|
4046
5330
|
};
|
|
4047
5331
|
c(() => {
|
|
@@ -4123,8 +5407,8 @@ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4123
5407
|
backgroundColor: C[t]
|
|
4124
5408
|
}, w] })
|
|
4125
5409
|
});
|
|
4126
|
-
},
|
|
4127
|
-
let o =
|
|
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);
|
|
4128
5412
|
c(() => {
|
|
4129
5413
|
if (f.current) {
|
|
4130
5414
|
f.current = !1;
|
|
@@ -4165,8 +5449,8 @@ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4165
5449
|
...i,
|
|
4166
5450
|
children: /* @__PURE__ */ M(m.View, {
|
|
4167
5451
|
style: {
|
|
4168
|
-
width:
|
|
4169
|
-
height:
|
|
5452
|
+
width: yr,
|
|
5453
|
+
height: yr,
|
|
4170
5454
|
alignItems: "center",
|
|
4171
5455
|
justifyContent: "center",
|
|
4172
5456
|
borderRadius: o.radiusPill,
|
|
@@ -4175,8 +5459,8 @@ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4175
5459
|
backgroundColor: g
|
|
4176
5460
|
},
|
|
4177
5461
|
children: /* @__PURE__ */ M(m.View, { style: {
|
|
4178
|
-
width:
|
|
4179
|
-
height:
|
|
5462
|
+
width: br,
|
|
5463
|
+
height: br,
|
|
4180
5464
|
borderRadius: o.radiusPill,
|
|
4181
5465
|
backgroundColor: "#fff",
|
|
4182
5466
|
opacity: u
|
|
@@ -4186,14 +5470,14 @@ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
4186
5470
|
});
|
|
4187
5471
|
//#endregion
|
|
4188
5472
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
4189
|
-
function
|
|
5473
|
+
function Sr(e, t) {
|
|
4190
5474
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
4191
5475
|
if (!n) return e;
|
|
4192
5476
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
4193
5477
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
4194
5478
|
}
|
|
4195
|
-
var
|
|
4196
|
-
let g =
|
|
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) {
|
|
5480
|
+
let g = q(), _ = d(null);
|
|
4197
5481
|
if (l(h, () => _.current, []), c(() => {
|
|
4198
5482
|
if (!e) return;
|
|
4199
5483
|
let t = requestAnimationFrame(() => _.current?.focus());
|
|
@@ -4236,7 +5520,7 @@ var kn = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
4236
5520
|
editable: o,
|
|
4237
5521
|
value: i,
|
|
4238
5522
|
placeholder: a,
|
|
4239
|
-
placeholderTextColor:
|
|
5523
|
+
placeholderTextColor: Sr(g.windowFgColor, g.opacityDim),
|
|
4240
5524
|
style: [{
|
|
4241
5525
|
flex: 1,
|
|
4242
5526
|
padding: 0,
|
|
@@ -4301,9 +5585,9 @@ var kn = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
4301
5585
|
children: r
|
|
4302
5586
|
})]
|
|
4303
5587
|
});
|
|
4304
|
-
}),
|
|
4305
|
-
function
|
|
4306
|
-
switch (t %
|
|
5588
|
+
}), wr = 8;
|
|
5589
|
+
function Tr(e, t) {
|
|
5590
|
+
switch (t % wr) {
|
|
4307
5591
|
case 0: return e.blue3;
|
|
4308
5592
|
case 1: return e.green3;
|
|
4309
5593
|
case 2: return e.purple3;
|
|
@@ -4314,8 +5598,8 @@ function jn(e, t) {
|
|
|
4314
5598
|
default: return e.green5;
|
|
4315
5599
|
}
|
|
4316
5600
|
}
|
|
4317
|
-
var
|
|
4318
|
-
let i =
|
|
5601
|
+
var Er = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
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;
|
|
4319
5603
|
return /* @__PURE__ */ M(k, {
|
|
4320
5604
|
testID: r,
|
|
4321
5605
|
accessible: !0,
|
|
@@ -4332,7 +5616,7 @@ var Mn = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
4332
5616
|
}, n],
|
|
4333
5617
|
children: e.map((e, t) => {
|
|
4334
5618
|
let n = `${e.value / c * 100}%`, r = e.value % 1 == 0 ? e.value : e.value.toFixed(1);
|
|
4335
|
-
return /* @__PURE__ */ M(
|
|
5619
|
+
return /* @__PURE__ */ M(wn, {
|
|
4336
5620
|
label: `${e.label}: ${r}%`,
|
|
4337
5621
|
placement: "top",
|
|
4338
5622
|
delay: 200,
|
|
@@ -4343,7 +5627,7 @@ var Mn = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
4343
5627
|
style: {
|
|
4344
5628
|
width: n,
|
|
4345
5629
|
height: "100%",
|
|
4346
|
-
backgroundColor: e.color ??
|
|
5630
|
+
backgroundColor: e.color ?? Tr(i, t),
|
|
4347
5631
|
opacity: o !== null && o !== t ? .35 : 1
|
|
4348
5632
|
}
|
|
4349
5633
|
})
|
|
@@ -4353,30 +5637,30 @@ var Mn = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
4353
5637
|
};
|
|
4354
5638
|
//#endregion
|
|
4355
5639
|
//#region src/components/Sidebar/filterUtils.ts
|
|
4356
|
-
function
|
|
5640
|
+
function Dr(t, n) {
|
|
4357
5641
|
let r = 0;
|
|
4358
5642
|
return e.forEach(t, (e) => {
|
|
4359
5643
|
if (!a(e)) return;
|
|
4360
5644
|
let t = e.props;
|
|
4361
|
-
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));
|
|
4362
5646
|
}), r;
|
|
4363
5647
|
}
|
|
4364
|
-
function
|
|
5648
|
+
function Or(e, t) {
|
|
4365
5649
|
if (!t || !a(e)) return !0;
|
|
4366
5650
|
let n = e.props;
|
|
4367
|
-
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;
|
|
4368
5652
|
}
|
|
4369
5653
|
//#endregion
|
|
4370
5654
|
//#region src/components/Sidebar/Sidebar.tsx
|
|
4371
|
-
var
|
|
4372
|
-
function
|
|
4373
|
-
return s(
|
|
5655
|
+
var kr = r(!1);
|
|
5656
|
+
function Ar() {
|
|
5657
|
+
return s(kr);
|
|
4374
5658
|
}
|
|
4375
|
-
var
|
|
4376
|
-
let c =
|
|
4377
|
-
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, {
|
|
4378
5662
|
value: r,
|
|
4379
|
-
children: /* @__PURE__ */ M(
|
|
5663
|
+
children: /* @__PURE__ */ M(jr.Provider, {
|
|
4380
5664
|
value: i,
|
|
4381
5665
|
children: /* @__PURE__ */ M(k, {
|
|
4382
5666
|
ref: s,
|
|
@@ -4390,7 +5674,7 @@ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
4390
5674
|
...o,
|
|
4391
5675
|
children: /* @__PURE__ */ M(T, {
|
|
4392
5676
|
contentContainerStyle: { padding: c.space1 },
|
|
4393
|
-
children: l && !d ? /* @__PURE__ */ M(
|
|
5677
|
+
children: l && !d ? /* @__PURE__ */ M(Y, {
|
|
4394
5678
|
variant: "caption",
|
|
4395
5679
|
color: "dim",
|
|
4396
5680
|
style: {
|
|
@@ -4398,7 +5682,7 @@ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
4398
5682
|
padding: c.space4
|
|
4399
5683
|
},
|
|
4400
5684
|
children: "No items match your search."
|
|
4401
|
-
}) : 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, {
|
|
4402
5686
|
testID: "sidebar-separator",
|
|
4403
5687
|
style: { marginVertical: c.space1 }
|
|
4404
5688
|
}), e] }, n))
|
|
@@ -4406,8 +5690,8 @@ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
4406
5690
|
})
|
|
4407
5691
|
})
|
|
4408
5692
|
});
|
|
4409
|
-
}),
|
|
4410
|
-
let l =
|
|
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);
|
|
4411
5695
|
return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ N(w, {
|
|
4412
5696
|
ref: c,
|
|
4413
5697
|
disabled: i,
|
|
@@ -4443,7 +5727,7 @@ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
4443
5727
|
},
|
|
4444
5728
|
children: t
|
|
4445
5729
|
}),
|
|
4446
|
-
!u && /* @__PURE__ */ M(
|
|
5730
|
+
!u && /* @__PURE__ */ M(Y, {
|
|
4447
5731
|
numberOfLines: 1,
|
|
4448
5732
|
ellipsizeMode: "tail",
|
|
4449
5733
|
style: {
|
|
@@ -4460,15 +5744,15 @@ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
4460
5744
|
})
|
|
4461
5745
|
]
|
|
4462
5746
|
});
|
|
4463
|
-
}),
|
|
4464
|
-
let p =
|
|
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) => {
|
|
4465
5749
|
g || h(e), a?.(e);
|
|
4466
5750
|
};
|
|
4467
5751
|
if (l(d, () => ({
|
|
4468
5752
|
expand: () => b(!0),
|
|
4469
5753
|
collapse: () => b(!1),
|
|
4470
5754
|
toggle: () => b(!_)
|
|
4471
|
-
})), !(y.length === 0 ||
|
|
5755
|
+
})), !(y.length === 0 || Dr(o, y) > 0)) return null;
|
|
4472
5756
|
let x = v ? !0 : _, S = !v && !!(e || t), C = (e || t) && /* @__PURE__ */ N(k, {
|
|
4473
5757
|
style: {
|
|
4474
5758
|
flexDirection: "row",
|
|
@@ -4487,14 +5771,14 @@ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
4487
5771
|
},
|
|
4488
5772
|
children: t
|
|
4489
5773
|
}),
|
|
4490
|
-
e && /* @__PURE__ */ M(
|
|
5774
|
+
e && /* @__PURE__ */ M(Y, {
|
|
4491
5775
|
variant: "caption-heading",
|
|
4492
5776
|
color: "dim",
|
|
4493
5777
|
style: { flex: 1 },
|
|
4494
5778
|
numberOfLines: 1,
|
|
4495
5779
|
children: e
|
|
4496
5780
|
}),
|
|
4497
|
-
n && /* @__PURE__ */ M(
|
|
5781
|
+
n && /* @__PURE__ */ M(Y, {
|
|
4498
5782
|
variant: "caption",
|
|
4499
5783
|
color: "dim",
|
|
4500
5784
|
style: { flexShrink: 0 },
|
|
@@ -4521,8 +5805,8 @@ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
4521
5805
|
children: o
|
|
4522
5806
|
})]
|
|
4523
5807
|
});
|
|
4524
|
-
}),
|
|
4525
|
-
let l =
|
|
5808
|
+
}), Fr = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
|
|
5809
|
+
let l = q(), u = J(), f = d(new m.Value(1)).current, p = a && !u;
|
|
4526
5810
|
if (c(() => {
|
|
4527
5811
|
if (!p) {
|
|
4528
5812
|
f.setValue(1);
|
|
@@ -4580,22 +5864,22 @@ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
4580
5864
|
],
|
|
4581
5865
|
...s
|
|
4582
5866
|
});
|
|
4583
|
-
},
|
|
4584
|
-
function
|
|
5867
|
+
}, Ir = 6, Lr = 22, Rr = 4;
|
|
5868
|
+
function zr(e, t, n) {
|
|
4585
5869
|
return Math.min(n, Math.max(t, e));
|
|
4586
5870
|
}
|
|
4587
|
-
function
|
|
5871
|
+
function Br(e, t, n, r) {
|
|
4588
5872
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
4589
5873
|
}
|
|
4590
|
-
function
|
|
5874
|
+
function Vr(e) {
|
|
4591
5875
|
let t = e.toString(), n = t.indexOf(".");
|
|
4592
5876
|
return n === -1 ? 0 : t.length - n - 1;
|
|
4593
5877
|
}
|
|
4594
|
-
var
|
|
4595
|
-
let m =
|
|
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) => {
|
|
4596
5880
|
g(e.nativeEvent.layout.width), d?.(e);
|
|
4597
5881
|
}, [d]), w = o((e) => {
|
|
4598
|
-
a || h <= 0 || t(
|
|
5882
|
+
a || h <= 0 || t(zr(Br(e / h * (r - n) + n, n, i, y), n, r));
|
|
4599
5883
|
}, [
|
|
4600
5884
|
a,
|
|
4601
5885
|
h,
|
|
@@ -4612,10 +5896,10 @@ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
4612
5896
|
}), [a, w]), E = o((o) => {
|
|
4613
5897
|
if (!a) switch (o.nativeEvent.actionName) {
|
|
4614
5898
|
case "increment":
|
|
4615
|
-
t(
|
|
5899
|
+
t(zr(Br(e + i, n, i, y), n, r));
|
|
4616
5900
|
break;
|
|
4617
5901
|
case "decrement":
|
|
4618
|
-
t(
|
|
5902
|
+
t(zr(Br(e - i, n, i, y), n, r));
|
|
4619
5903
|
break;
|
|
4620
5904
|
}
|
|
4621
5905
|
}, [
|
|
@@ -4626,7 +5910,7 @@ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
4626
5910
|
r,
|
|
4627
5911
|
y,
|
|
4628
5912
|
t
|
|
4629
|
-
]), 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;
|
|
4630
5914
|
return /* @__PURE__ */ N(k, {
|
|
4631
5915
|
style: [{
|
|
4632
5916
|
width: "100%",
|
|
@@ -4655,7 +5939,7 @@ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
4655
5939
|
onAccessibilityAction: E,
|
|
4656
5940
|
style: {
|
|
4657
5941
|
justifyContent: "center",
|
|
4658
|
-
height:
|
|
5942
|
+
height: Lr,
|
|
4659
5943
|
opacity: a ? m.opacityDisabled : 1
|
|
4660
5944
|
},
|
|
4661
5945
|
...T.panHandlers,
|
|
@@ -4664,7 +5948,7 @@ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
4664
5948
|
pointerEvents: "none",
|
|
4665
5949
|
style: {
|
|
4666
5950
|
width: "100%",
|
|
4667
|
-
height:
|
|
5951
|
+
height: Ir,
|
|
4668
5952
|
borderRadius: m.radiusPill,
|
|
4669
5953
|
backgroundColor: m.cardShadeColor,
|
|
4670
5954
|
overflow: "hidden"
|
|
@@ -4681,8 +5965,8 @@ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
4681
5965
|
style: {
|
|
4682
5966
|
position: "absolute",
|
|
4683
5967
|
left: j,
|
|
4684
|
-
width:
|
|
4685
|
-
height:
|
|
5968
|
+
width: Lr,
|
|
5969
|
+
height: Lr,
|
|
4686
5970
|
borderRadius: m.radiusPill,
|
|
4687
5971
|
backgroundColor: m.accentBgColor,
|
|
4688
5972
|
borderWidth: 2,
|
|
@@ -4702,10 +5986,10 @@ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
4702
5986
|
importantForAccessibility: "no",
|
|
4703
5987
|
style: {
|
|
4704
5988
|
position: "absolute",
|
|
4705
|
-
left: (
|
|
4706
|
-
width:
|
|
4707
|
-
height:
|
|
4708
|
-
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,
|
|
4709
5993
|
backgroundColor: m.windowBgColor
|
|
4710
5994
|
}
|
|
4711
5995
|
}, e.value))
|
|
@@ -4729,7 +6013,7 @@ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
4729
6013
|
},
|
|
4730
6014
|
style: {
|
|
4731
6015
|
position: "absolute",
|
|
4732
|
-
left: (
|
|
6016
|
+
left: (zr(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
|
|
4733
6017
|
fontFamily: m.fontFamily,
|
|
4734
6018
|
fontSize: m.fontSizeCaption,
|
|
4735
6019
|
color: m.windowFgColor,
|
|
@@ -4739,21 +6023,21 @@ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
4739
6023
|
}, e.value))
|
|
4740
6024
|
})]
|
|
4741
6025
|
});
|
|
4742
|
-
},
|
|
4743
|
-
function
|
|
6026
|
+
}, Ur = 36;
|
|
6027
|
+
function Wr(e) {
|
|
4744
6028
|
let t = e.toString(), n = t.indexOf(".");
|
|
4745
6029
|
return n === -1 ? 0 : t.length - n - 1;
|
|
4746
6030
|
}
|
|
4747
|
-
function
|
|
6031
|
+
function Gr(e, t, n) {
|
|
4748
6032
|
return Math.min(n, Math.max(t, e));
|
|
4749
6033
|
}
|
|
4750
|
-
function
|
|
6034
|
+
function Kr(e, t, n, r) {
|
|
4751
6035
|
let i = n - t + r;
|
|
4752
6036
|
return ((e - t) % i + i) % i + t;
|
|
4753
6037
|
}
|
|
4754
|
-
var
|
|
4755
|
-
let f =
|
|
4756
|
-
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);
|
|
4757
6041
|
t(parseFloat(a.toFixed(p)));
|
|
4758
6042
|
}, [
|
|
4759
6043
|
t,
|
|
@@ -4814,8 +6098,8 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4814
6098
|
disabled: _,
|
|
4815
6099
|
onPress: () => m(e - i),
|
|
4816
6100
|
style: ({ pressed: e }) => ({
|
|
4817
|
-
width:
|
|
4818
|
-
height:
|
|
6101
|
+
width: Ur,
|
|
6102
|
+
height: Ur,
|
|
4819
6103
|
alignItems: "center",
|
|
4820
6104
|
justifyContent: "center",
|
|
4821
6105
|
borderRightWidth: 1,
|
|
@@ -4852,8 +6136,8 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4852
6136
|
disabled: v,
|
|
4853
6137
|
onPress: () => m(e + i),
|
|
4854
6138
|
style: ({ pressed: e }) => ({
|
|
4855
|
-
width:
|
|
4856
|
-
height:
|
|
6139
|
+
width: Ur,
|
|
6140
|
+
height: Ur,
|
|
4857
6141
|
alignItems: "center",
|
|
4858
6142
|
justifyContent: "center",
|
|
4859
6143
|
borderLeftWidth: 1,
|
|
@@ -4872,7 +6156,7 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4872
6156
|
})
|
|
4873
6157
|
]
|
|
4874
6158
|
});
|
|
4875
|
-
},
|
|
6159
|
+
}, Jr = {
|
|
4876
6160
|
sm: {
|
|
4877
6161
|
dimension: 16,
|
|
4878
6162
|
borderWidth: 2
|
|
@@ -4885,8 +6169,8 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4885
6169
|
dimension: 36,
|
|
4886
6170
|
borderWidth: 3
|
|
4887
6171
|
}
|
|
4888
|
-
},
|
|
4889
|
-
let i =
|
|
6172
|
+
}, Yr = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
|
|
6173
|
+
let i = q(), a = K(), o = J(), s = d(new m.Value(0)).current;
|
|
4890
6174
|
c(() => {
|
|
4891
6175
|
s.setValue(0);
|
|
4892
6176
|
let e = m.loop(m.timing(s, {
|
|
@@ -4900,7 +6184,7 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4900
6184
|
let l = s.interpolate({
|
|
4901
6185
|
inputRange: [0, 1],
|
|
4902
6186
|
outputRange: ["0deg", "360deg"]
|
|
4903
|
-
}), { 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)";
|
|
4904
6188
|
return /* @__PURE__ */ M(m.View, {
|
|
4905
6189
|
accessible: !0,
|
|
4906
6190
|
accessibilityRole: "progressbar",
|
|
@@ -4918,8 +6202,59 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4918
6202
|
}, n],
|
|
4919
6203
|
...r
|
|
4920
6204
|
});
|
|
4921
|
-
},
|
|
4922
|
-
let
|
|
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) {
|
|
6206
|
+
let l = q(), u = K(), d = a ? 64 : 128, f = e ? /* @__PURE__ */ M(X, {
|
|
6207
|
+
icon: e,
|
|
6208
|
+
width: d,
|
|
6209
|
+
height: d
|
|
6210
|
+
}) : t, p = a ? l.fontSizeCaption : l.fontSizeBody;
|
|
6211
|
+
return /* @__PURE__ */ N(k, {
|
|
6212
|
+
ref: c,
|
|
6213
|
+
style: [{
|
|
6214
|
+
width: "100%",
|
|
6215
|
+
alignItems: "center",
|
|
6216
|
+
justifyContent: "center",
|
|
6217
|
+
paddingVertical: a ? l.space3 : l.space6,
|
|
6218
|
+
paddingHorizontal: a ? l.space3 : l.space4
|
|
6219
|
+
}, o],
|
|
6220
|
+
...s,
|
|
6221
|
+
children: [
|
|
6222
|
+
f ? /* @__PURE__ */ M(k, {
|
|
6223
|
+
accessibilityElementsHidden: !0,
|
|
6224
|
+
importantForAccessibility: "no",
|
|
6225
|
+
style: {
|
|
6226
|
+
alignItems: "center",
|
|
6227
|
+
justifyContent: "center",
|
|
6228
|
+
marginBottom: a ? l.space2 : l.space4,
|
|
6229
|
+
opacity: u === "dark" ? .45 : .55
|
|
6230
|
+
},
|
|
6231
|
+
children: f
|
|
6232
|
+
}) : null,
|
|
6233
|
+
/* @__PURE__ */ M(Y, {
|
|
6234
|
+
variant: a ? "title-4" : "title-1",
|
|
6235
|
+
style: { textAlign: "center" },
|
|
6236
|
+
children: n
|
|
6237
|
+
}),
|
|
6238
|
+
r ? /* @__PURE__ */ M(Y, {
|
|
6239
|
+
variant: a ? "caption" : "body",
|
|
6240
|
+
color: "dim",
|
|
6241
|
+
style: {
|
|
6242
|
+
textAlign: "center",
|
|
6243
|
+
maxWidth: Xr(p),
|
|
6244
|
+
marginTop: a ? l.space1 : l.space2
|
|
6245
|
+
},
|
|
6246
|
+
children: r
|
|
6247
|
+
}) : null,
|
|
6248
|
+
i ? /* @__PURE__ */ M(rn, {
|
|
6249
|
+
justify: "center",
|
|
6250
|
+
childSpacing: a ? l.space1 : l.space2,
|
|
6251
|
+
style: { marginTop: a ? l.space2 : l.space4 },
|
|
6252
|
+
children: i
|
|
6253
|
+
}) : null
|
|
6254
|
+
]
|
|
6255
|
+
});
|
|
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);
|
|
4923
6258
|
c(() => {
|
|
4924
6259
|
if (f.current) {
|
|
4925
6260
|
f.current = !1;
|
|
@@ -4958,8 +6293,8 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4958
6293
|
...i,
|
|
4959
6294
|
children: /* @__PURE__ */ M(m.View, {
|
|
4960
6295
|
style: {
|
|
4961
|
-
width:
|
|
4962
|
-
height:
|
|
6296
|
+
width: Qr,
|
|
6297
|
+
height: $r,
|
|
4963
6298
|
borderRadius: o.radiusPill,
|
|
4964
6299
|
borderWidth: l === "more" ? 2 : 1,
|
|
4965
6300
|
borderColor: v,
|
|
@@ -4967,15 +6302,15 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4967
6302
|
},
|
|
4968
6303
|
children: /* @__PURE__ */ M(m.View, { style: [{
|
|
4969
6304
|
position: "absolute",
|
|
4970
|
-
top:
|
|
4971
|
-
left:
|
|
4972
|
-
width:
|
|
4973
|
-
height:
|
|
6305
|
+
top: ti,
|
|
6306
|
+
left: ti,
|
|
6307
|
+
width: ei,
|
|
6308
|
+
height: ei,
|
|
4974
6309
|
borderRadius: o.radiusPill,
|
|
4975
6310
|
backgroundColor: e ? "#fff" : h,
|
|
4976
6311
|
transform: [{ translateX: u.interpolate({
|
|
4977
6312
|
inputRange: [0, 1],
|
|
4978
|
-
outputRange: [0,
|
|
6313
|
+
outputRange: [0, ni]
|
|
4979
6314
|
}) }]
|
|
4980
6315
|
}, l !== "more" && {
|
|
4981
6316
|
shadowColor: "#000",
|
|
@@ -4989,8 +6324,8 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
4989
6324
|
}] })
|
|
4990
6325
|
})
|
|
4991
6326
|
});
|
|
4992
|
-
}),
|
|
4993
|
-
let o =
|
|
6327
|
+
}), ii = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
|
|
6328
|
+
let o = q();
|
|
4994
6329
|
return /* @__PURE__ */ M(T, {
|
|
4995
6330
|
ref: a,
|
|
4996
6331
|
horizontal: !0,
|
|
@@ -5015,8 +6350,8 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5015
6350
|
...i,
|
|
5016
6351
|
children: e
|
|
5017
6352
|
});
|
|
5018
|
-
}),
|
|
5019
|
-
let l =
|
|
6353
|
+
}), ai = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
|
|
6354
|
+
let l = q();
|
|
5020
6355
|
return /* @__PURE__ */ N(w, {
|
|
5021
6356
|
ref: c,
|
|
5022
6357
|
disabled: o,
|
|
@@ -5115,7 +6450,7 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5115
6450
|
})
|
|
5116
6451
|
]
|
|
5117
6452
|
});
|
|
5118
|
-
}),
|
|
6453
|
+
}), oi = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
|
|
5119
6454
|
return /* @__PURE__ */ M(k, {
|
|
5120
6455
|
ref: i,
|
|
5121
6456
|
style: [{ display: e ? "flex" : "none" }, t],
|
|
@@ -5125,21 +6460,21 @@ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
5125
6460
|
});
|
|
5126
6461
|
//#endregion
|
|
5127
6462
|
//#region src/components/TextField/TextField.tsx
|
|
5128
|
-
function
|
|
6463
|
+
function si(e, t) {
|
|
5129
6464
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
5130
6465
|
if (!n) return e;
|
|
5131
6466
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
5132
6467
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
5133
6468
|
}
|
|
5134
|
-
var
|
|
5135
|
-
let p =
|
|
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;
|
|
5136
6471
|
return /* @__PURE__ */ N(k, {
|
|
5137
6472
|
style: [{
|
|
5138
6473
|
gap: p.space1,
|
|
5139
6474
|
opacity: _ ? p.opacityDisabled : 1
|
|
5140
6475
|
}, r],
|
|
5141
6476
|
children: [
|
|
5142
|
-
e && /* @__PURE__ */ M(
|
|
6477
|
+
e && /* @__PURE__ */ M(Y, {
|
|
5143
6478
|
variant: "body",
|
|
5144
6479
|
style: { fontWeight: String(p.fontWeightSemibold) },
|
|
5145
6480
|
children: e
|
|
@@ -5149,7 +6484,7 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5149
6484
|
editable: a,
|
|
5150
6485
|
accessibilityLabel: c ?? e,
|
|
5151
6486
|
accessibilityHint: l ?? v,
|
|
5152
|
-
placeholderTextColor:
|
|
6487
|
+
placeholderTextColor: si(p.windowFgColor, p.opacityDim),
|
|
5153
6488
|
onFocus: (e) => {
|
|
5154
6489
|
g(!0), o?.(e);
|
|
5155
6490
|
},
|
|
@@ -5171,7 +6506,7 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5171
6506
|
}, i],
|
|
5172
6507
|
...u
|
|
5173
6508
|
}),
|
|
5174
|
-
v && /* @__PURE__ */ M(
|
|
6509
|
+
v && /* @__PURE__ */ M(Y, {
|
|
5175
6510
|
variant: "caption",
|
|
5176
6511
|
style: {
|
|
5177
6512
|
color: n ? p.errorColor : p.windowFgColor,
|
|
@@ -5181,8 +6516,8 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5181
6516
|
})
|
|
5182
6517
|
]
|
|
5183
6518
|
});
|
|
5184
|
-
}),
|
|
5185
|
-
let u =
|
|
6519
|
+
}), li = m.createAnimatedComponent(w), ui = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
|
|
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(() => {
|
|
5186
6521
|
h.current &&= (clearTimeout(h.current), null);
|
|
5187
6522
|
}, []), x = o((e) => {
|
|
5188
6523
|
e <= 0 || !n || (b(), v.current = Date.now(), h.current = setTimeout(() => n(), e));
|
|
@@ -5227,7 +6562,7 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5227
6562
|
shadowRadius: 8,
|
|
5228
6563
|
elevation: 4
|
|
5229
6564
|
};
|
|
5230
|
-
return /* @__PURE__ */ N(
|
|
6565
|
+
return /* @__PURE__ */ N(li, {
|
|
5231
6566
|
accessible: !0,
|
|
5232
6567
|
accessibilityRole: "alert",
|
|
5233
6568
|
accessibilityLiveRegion: "polite",
|
|
@@ -5261,7 +6596,7 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5261
6596
|
...E
|
|
5262
6597
|
}, s],
|
|
5263
6598
|
...l,
|
|
5264
|
-
children: [/* @__PURE__ */ M(
|
|
6599
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
5265
6600
|
variant: "body",
|
|
5266
6601
|
style: {
|
|
5267
6602
|
flex: 1,
|
|
@@ -5313,8 +6648,8 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5313
6648
|
})
|
|
5314
6649
|
})] })]
|
|
5315
6650
|
});
|
|
5316
|
-
},
|
|
5317
|
-
let i =
|
|
6651
|
+
}, di = ({ position: e = "bottom", children: t, style: n, ...r }) => {
|
|
6652
|
+
let i = q();
|
|
5318
6653
|
return /* @__PURE__ */ M(k, {
|
|
5319
6654
|
pointerEvents: "box-none",
|
|
5320
6655
|
accessibilityLabel: "Notifications",
|
|
@@ -5333,8 +6668,85 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5333
6668
|
...r,
|
|
5334
6669
|
children: t
|
|
5335
6670
|
});
|
|
5336
|
-
},
|
|
5337
|
-
|
|
6671
|
+
}, fi = r(null);
|
|
6672
|
+
function pi() {
|
|
6673
|
+
let e = s(fi);
|
|
6674
|
+
if (!e) throw Error("ToggleGroupItem must be used inside ToggleGroup");
|
|
6675
|
+
return e;
|
|
6676
|
+
}
|
|
6677
|
+
var mi = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Options", children: r, style: i, ...a }, o) {
|
|
6678
|
+
let s = q(), c = K(), l = u(() => ({
|
|
6679
|
+
value: e,
|
|
6680
|
+
onValueChange: t
|
|
6681
|
+
}), [e, t]);
|
|
6682
|
+
return /* @__PURE__ */ M(fi.Provider, {
|
|
6683
|
+
value: l,
|
|
6684
|
+
children: /* @__PURE__ */ M(k, {
|
|
6685
|
+
ref: o,
|
|
6686
|
+
accessibilityRole: "radiogroup",
|
|
6687
|
+
accessibilityLabel: n,
|
|
6688
|
+
style: [{
|
|
6689
|
+
alignSelf: "flex-start",
|
|
6690
|
+
flexDirection: "row",
|
|
6691
|
+
alignItems: "stretch",
|
|
6692
|
+
gap: 2,
|
|
6693
|
+
padding: 2,
|
|
6694
|
+
borderRadius: s.radiusMd,
|
|
6695
|
+
borderWidth: 1,
|
|
6696
|
+
borderColor: c === "dark" ? "rgba(255, 255, 255, 0.12)" : s.light3,
|
|
6697
|
+
backgroundColor: s.cardBgColor
|
|
6698
|
+
}, i],
|
|
6699
|
+
...a,
|
|
6700
|
+
children: r
|
|
6701
|
+
})
|
|
6702
|
+
});
|
|
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";
|
|
6705
|
+
return /* @__PURE__ */ N(w, {
|
|
6706
|
+
ref: o,
|
|
6707
|
+
disabled: i,
|
|
6708
|
+
onPress: () => u(e),
|
|
6709
|
+
accessibilityRole: "radio",
|
|
6710
|
+
accessibilityState: {
|
|
6711
|
+
checked: d,
|
|
6712
|
+
disabled: i
|
|
6713
|
+
},
|
|
6714
|
+
accessibilityLabel: r ?? t,
|
|
6715
|
+
style: ({ pressed: e }) => ({
|
|
6716
|
+
flexDirection: "row",
|
|
6717
|
+
alignItems: "center",
|
|
6718
|
+
justifyContent: "center",
|
|
6719
|
+
gap: s.space1,
|
|
6720
|
+
minHeight: 28,
|
|
6721
|
+
minWidth: f ? 28 : void 0,
|
|
6722
|
+
paddingVertical: 4,
|
|
6723
|
+
paddingHorizontal: f ? 4 : s.space2,
|
|
6724
|
+
borderRadius: s.radiusMd - 2,
|
|
6725
|
+
borderWidth: 1,
|
|
6726
|
+
borderColor: d ? `${s.accentBgColor}${p ? "80" : "66"}` : "transparent",
|
|
6727
|
+
backgroundColor: d ? `${s.accentBgColor}${p ? "40" : "26"}` : e && !i ? s.activeOverlay : "transparent",
|
|
6728
|
+
opacity: i ? s.opacityDisabled : 1
|
|
6729
|
+
}),
|
|
6730
|
+
...a,
|
|
6731
|
+
children: [n ? /* @__PURE__ */ M(k, {
|
|
6732
|
+
style: { flexShrink: 0 },
|
|
6733
|
+
children: /* @__PURE__ */ M(X, {
|
|
6734
|
+
icon: n,
|
|
6735
|
+
size: "md"
|
|
6736
|
+
})
|
|
6737
|
+
}) : null, t ? /* @__PURE__ */ M(D, {
|
|
6738
|
+
numberOfLines: 1,
|
|
6739
|
+
style: {
|
|
6740
|
+
fontFamily: s.fontFamily,
|
|
6741
|
+
fontSize: s.fontSizeBody,
|
|
6742
|
+
fontWeight: String(d ? s.fontWeightSemibold : s.fontWeightNormal),
|
|
6743
|
+
color: d ? s.accentColor : s.windowFgColor
|
|
6744
|
+
},
|
|
6745
|
+
children: t
|
|
6746
|
+
}) : null]
|
|
6747
|
+
});
|
|
6748
|
+
}), gi = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
|
|
6749
|
+
let a = q(), o = K();
|
|
5338
6750
|
return /* @__PURE__ */ N(k, {
|
|
5339
6751
|
ref: i,
|
|
5340
6752
|
accessible: !0,
|
|
@@ -5360,8 +6772,8 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5360
6772
|
children: e
|
|
5361
6773
|
})]
|
|
5362
6774
|
});
|
|
5363
|
-
}),
|
|
5364
|
-
let o =
|
|
6775
|
+
}), _i = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
|
|
6776
|
+
let o = q();
|
|
5365
6777
|
return /* @__PURE__ */ N(w, {
|
|
5366
6778
|
ref: a,
|
|
5367
6779
|
disabled: r,
|
|
@@ -5398,6 +6810,6 @@ var dr = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
5398
6810
|
});
|
|
5399
6811
|
});
|
|
5400
6812
|
//#endregion
|
|
5401
|
-
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 };
|
|
5402
6814
|
|
|
5403
6815
|
//# sourceMappingURL=index.js.map
|