@gnome-ui/react-native 1.2.0 → 1.3.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 +49 -1
- package/dist/components/Slider/Slider.d.ts +56 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +567 -408
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Children as e, Fragment as t, cloneElement as n, createContext as r, forwardRef as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
2
|
-
import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Linking as y, Modal as b,
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { Check as
|
|
5
|
-
import { Circle as
|
|
2
|
+
import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Linking as y, Modal as b, PanResponder as x, Platform as S, Pressable as C, ScrollView as w, StyleSheet as T, Text as E, TextInput as D, View as O, useColorScheme as k } from "react-native";
|
|
3
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
4
|
+
import { Check as N, Connecting as ee, Downloading as P, PanDown as te, Recording as ne, Syncing as F } from "@gnome-ui/icons";
|
|
5
|
+
import { Circle as re, G as ie, Path as I, Svg as ae, SvgXml as oe } from "react-native-svg";
|
|
6
6
|
//#region src/theme/tokens.generated.ts
|
|
7
|
-
var
|
|
7
|
+
var se = {
|
|
8
8
|
accentBgColor: "#3584e4",
|
|
9
9
|
accentColor: "#3584e4",
|
|
10
10
|
accentFgColor: "#fff",
|
|
@@ -145,7 +145,7 @@ var z = {
|
|
|
145
145
|
yellow3: "#f6d32d",
|
|
146
146
|
yellow4: "#f5c211",
|
|
147
147
|
yellow5: "#e5a50a"
|
|
148
|
-
},
|
|
148
|
+
}, ce = {
|
|
149
149
|
accentBgColor: "#3584e4",
|
|
150
150
|
accentColor: "#62a0ea",
|
|
151
151
|
accentFgColor: "#fff",
|
|
@@ -286,7 +286,7 @@ var z = {
|
|
|
286
286
|
yellow3: "#f6d32d",
|
|
287
287
|
yellow4: "#f5c211",
|
|
288
288
|
yellow5: "#e5a50a"
|
|
289
|
-
},
|
|
289
|
+
}, le = {
|
|
290
290
|
accentBgColor: "#1a5fb4",
|
|
291
291
|
accentColor: "#1a5fb4",
|
|
292
292
|
accentFgColor: "#fff",
|
|
@@ -427,7 +427,7 @@ var z = {
|
|
|
427
427
|
yellow3: "#f6d32d",
|
|
428
428
|
yellow4: "#f5c211",
|
|
429
429
|
yellow5: "#e5a50a"
|
|
430
|
-
},
|
|
430
|
+
}, ue = {
|
|
431
431
|
accentBgColor: "#62a0ea",
|
|
432
432
|
accentColor: "#99c1f1",
|
|
433
433
|
accentFgColor: "#fff",
|
|
@@ -568,7 +568,7 @@ var z = {
|
|
|
568
568
|
yellow3: "#f6d32d",
|
|
569
569
|
yellow4: "#f5c211",
|
|
570
570
|
yellow5: "#e5a50a"
|
|
571
|
-
},
|
|
571
|
+
}, de = {
|
|
572
572
|
"--gnome-accent-bg-color": "#3584e4",
|
|
573
573
|
"--gnome-accent-color": "#3584e4",
|
|
574
574
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -709,7 +709,7 @@ var z = {
|
|
|
709
709
|
"--gnome-yellow-3": "#f6d32d",
|
|
710
710
|
"--gnome-yellow-4": "#f5c211",
|
|
711
711
|
"--gnome-yellow-5": "#e5a50a"
|
|
712
|
-
},
|
|
712
|
+
}, fe = {
|
|
713
713
|
"--gnome-accent-bg-color": "#3584e4",
|
|
714
714
|
"--gnome-accent-color": "#62a0ea",
|
|
715
715
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -850,7 +850,7 @@ var z = {
|
|
|
850
850
|
"--gnome-yellow-3": "#f6d32d",
|
|
851
851
|
"--gnome-yellow-4": "#f5c211",
|
|
852
852
|
"--gnome-yellow-5": "#e5a50a"
|
|
853
|
-
},
|
|
853
|
+
}, pe = {
|
|
854
854
|
"--gnome-accent-bg-color": "#1a5fb4",
|
|
855
855
|
"--gnome-accent-color": "#1a5fb4",
|
|
856
856
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -991,7 +991,7 @@ var z = {
|
|
|
991
991
|
"--gnome-yellow-3": "#f6d32d",
|
|
992
992
|
"--gnome-yellow-4": "#f5c211",
|
|
993
993
|
"--gnome-yellow-5": "#e5a50a"
|
|
994
|
-
},
|
|
994
|
+
}, me = {
|
|
995
995
|
"--gnome-accent-bg-color": "#62a0ea",
|
|
996
996
|
"--gnome-accent-color": "#99c1f1",
|
|
997
997
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -1132,7 +1132,7 @@ var z = {
|
|
|
1132
1132
|
"--gnome-yellow-3": "#f6d32d",
|
|
1133
1133
|
"--gnome-yellow-4": "#f5c211",
|
|
1134
1134
|
"--gnome-yellow-5": "#e5a50a"
|
|
1135
|
-
},
|
|
1135
|
+
}, L = r({
|
|
1136
1136
|
locale: void 0,
|
|
1137
1137
|
dir: "ltr",
|
|
1138
1138
|
numberFormat: void 0,
|
|
@@ -1142,16 +1142,16 @@ var z = {
|
|
|
1142
1142
|
contrast: "system",
|
|
1143
1143
|
resolvedContrast: "normal",
|
|
1144
1144
|
accentColor: "blue",
|
|
1145
|
-
theme:
|
|
1145
|
+
theme: se
|
|
1146
1146
|
});
|
|
1147
|
-
function
|
|
1148
|
-
return s(
|
|
1147
|
+
function he() {
|
|
1148
|
+
return s(L).locale;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return s(
|
|
1150
|
+
function ge() {
|
|
1151
|
+
return s(L).dir;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
let { locale: t, numberFormat: n } = s(
|
|
1153
|
+
function _e(e) {
|
|
1154
|
+
let { locale: t, numberFormat: n } = s(L);
|
|
1155
1155
|
return u(() => new Intl.NumberFormat(t, {
|
|
1156
1156
|
...n,
|
|
1157
1157
|
...e
|
|
@@ -1161,8 +1161,8 @@ function pe(e) {
|
|
|
1161
1161
|
e
|
|
1162
1162
|
]);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1165
|
-
let { locale: t, dateTimeFormat: n } = s(
|
|
1164
|
+
function ve(e) {
|
|
1165
|
+
let { locale: t, dateTimeFormat: n } = s(L);
|
|
1166
1166
|
return u(() => new Intl.DateTimeFormat(t, {
|
|
1167
1167
|
...n,
|
|
1168
1168
|
...e
|
|
@@ -1172,32 +1172,32 @@ function me(e) {
|
|
|
1172
1172
|
e
|
|
1173
1173
|
]);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return s(
|
|
1175
|
+
function ye() {
|
|
1176
|
+
return s(L).colorScheme;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return s(
|
|
1178
|
+
function R() {
|
|
1179
|
+
return s(L).resolvedColorScheme;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return s(
|
|
1181
|
+
function be() {
|
|
1182
|
+
return s(L).contrast;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return s(
|
|
1184
|
+
function z() {
|
|
1185
|
+
return s(L).resolvedContrast;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return s(
|
|
1187
|
+
function xe() {
|
|
1188
|
+
return s(L).accentColor;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return s(
|
|
1190
|
+
function B() {
|
|
1191
|
+
return s(L).theme;
|
|
1192
1192
|
}
|
|
1193
1193
|
//#endregion
|
|
1194
1194
|
//#region src/theme/resolveTheme.ts
|
|
1195
|
-
function
|
|
1196
|
-
return t === "more" ? e === "dark" ?
|
|
1195
|
+
function Se({ colorScheme: e, contrast: t = "normal" }) {
|
|
1196
|
+
return t === "more" ? e === "dark" ? ue : le : e === "dark" ? ce : se;
|
|
1197
1197
|
}
|
|
1198
1198
|
//#endregion
|
|
1199
1199
|
//#region src/GnomeProvider/resolveContext.ts
|
|
1200
|
-
var
|
|
1200
|
+
var Ce = new Set([
|
|
1201
1201
|
"blue",
|
|
1202
1202
|
"green",
|
|
1203
1203
|
"yellow",
|
|
@@ -1206,15 +1206,15 @@ var ye = new Set([
|
|
|
1206
1206
|
"purple",
|
|
1207
1207
|
"brown"
|
|
1208
1208
|
]);
|
|
1209
|
-
function
|
|
1209
|
+
function we(e, t) {
|
|
1210
1210
|
return e === "system" ? t === "dark" ? "dark" : "light" : e;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Te(e, t) {
|
|
1213
1213
|
return e === "system" ? t ? "more" : "normal" : e;
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Ee(e, t, n, r) {
|
|
1216
1216
|
if (t === "blue") return e;
|
|
1217
|
-
let i =
|
|
1217
|
+
let i = Ce.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
|
|
1218
1218
|
return {
|
|
1219
1219
|
...e,
|
|
1220
1220
|
accentColor: a,
|
|
@@ -1224,23 +1224,23 @@ function Se(e, t, n, r) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
//#endregion
|
|
1226
1226
|
//#region src/GnomeProvider/GnomeProvider.tsx
|
|
1227
|
-
function
|
|
1227
|
+
function De() {
|
|
1228
1228
|
let [e, t] = f(!1);
|
|
1229
1229
|
return c(() => {
|
|
1230
|
-
let e =
|
|
1230
|
+
let e = S.OS === "android" ? p.isHighTextContrastEnabled : S.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
|
|
1231
1231
|
if (!e) return;
|
|
1232
1232
|
let n = !0;
|
|
1233
1233
|
(async () => {
|
|
1234
1234
|
let r = await e();
|
|
1235
1235
|
n && t(r);
|
|
1236
1236
|
})();
|
|
1237
|
-
let r =
|
|
1237
|
+
let r = S.OS === "android" ? "highTextContrastChanged" : "darkerSystemColorsChanged", i = p.addEventListener(r, t);
|
|
1238
1238
|
return () => {
|
|
1239
1239
|
n = !1, i.remove();
|
|
1240
1240
|
};
|
|
1241
1241
|
}, []), e;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function V() {
|
|
1244
1244
|
let [e, t] = f(!1);
|
|
1245
1245
|
return c(() => {
|
|
1246
1246
|
let e = !0;
|
|
@@ -1254,8 +1254,8 @@ function W() {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
}, []), e;
|
|
1256
1256
|
}
|
|
1257
|
-
var
|
|
1258
|
-
let c =
|
|
1257
|
+
var Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
|
|
1258
|
+
let c = k(), l = De(), d = we(i, c), f = Te(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 we = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1265
1265
|
contrast: a,
|
|
1266
1266
|
resolvedContrast: f,
|
|
1267
1267
|
accentColor: o,
|
|
1268
|
-
theme: Se(
|
|
1268
|
+
theme: Ee(Se({
|
|
1269
1269
|
colorScheme: d,
|
|
1270
1270
|
contrast: f
|
|
1271
1271
|
}), o, d, f)
|
|
@@ -1280,11 +1280,11 @@ var we = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1280
1280
|
f,
|
|
1281
1281
|
o
|
|
1282
1282
|
]);
|
|
1283
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ j(L.Provider, {
|
|
1284
1284
|
value: m,
|
|
1285
1285
|
children: s
|
|
1286
1286
|
});
|
|
1287
|
-
},
|
|
1287
|
+
}, ke = new Set([
|
|
1288
1288
|
"large-title",
|
|
1289
1289
|
"title-1",
|
|
1290
1290
|
"title-2",
|
|
@@ -1292,7 +1292,7 @@ var we = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1292
1292
|
"title-4",
|
|
1293
1293
|
"heading"
|
|
1294
1294
|
]);
|
|
1295
|
-
function
|
|
1295
|
+
function Ae(e, t) {
|
|
1296
1296
|
let n = (e) => String(e);
|
|
1297
1297
|
switch (t) {
|
|
1298
1298
|
case "large-title": return {
|
|
@@ -1361,7 +1361,7 @@ function Ee(e, t) {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function je(e, t) {
|
|
1365
1365
|
switch (t) {
|
|
1366
1366
|
case "dim": return {
|
|
1367
1367
|
color: e.windowFgColor,
|
|
@@ -1375,22 +1375,22 @@ function De(e, t) {
|
|
|
1375
1375
|
default: return { color: e.windowFgColor };
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
var
|
|
1379
|
-
let s =
|
|
1380
|
-
return /* @__PURE__ */
|
|
1378
|
+
var H = i(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
|
|
1379
|
+
let s = B();
|
|
1380
|
+
return /* @__PURE__ */ j(E, {
|
|
1381
1381
|
ref: o,
|
|
1382
|
-
accessibilityRole: i ?? (
|
|
1382
|
+
accessibilityRole: i ?? (ke.has(e) ? "header" : void 0),
|
|
1383
1383
|
style: [
|
|
1384
1384
|
{ fontFamily: s.fontFamily },
|
|
1385
|
-
|
|
1386
|
-
|
|
1385
|
+
Ae(s, e),
|
|
1386
|
+
je(s, t),
|
|
1387
1387
|
n
|
|
1388
1388
|
],
|
|
1389
1389
|
...a,
|
|
1390
1390
|
children: r
|
|
1391
1391
|
});
|
|
1392
|
-
}),
|
|
1393
|
-
let u =
|
|
1392
|
+
}), Me = 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 = B(), d = a === "property", f = {
|
|
1394
1394
|
flexDirection: "row",
|
|
1395
1395
|
alignItems: "center",
|
|
1396
1396
|
gap: u.space2,
|
|
@@ -1398,23 +1398,23 @@ var G = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1398
1398
|
paddingHorizontal: u.space4,
|
|
1399
1399
|
minHeight: 52,
|
|
1400
1400
|
width: "100%"
|
|
1401
|
-
}, p = /* @__PURE__ */
|
|
1402
|
-
n && /* @__PURE__ */
|
|
1401
|
+
}, p = /* @__PURE__ */ M(A, { children: [
|
|
1402
|
+
n && /* @__PURE__ */ j(O, {
|
|
1403
1403
|
style: { flexShrink: 0 },
|
|
1404
1404
|
children: n
|
|
1405
1405
|
}),
|
|
1406
|
-
/* @__PURE__ */
|
|
1406
|
+
/* @__PURE__ */ M(O, {
|
|
1407
1407
|
style: {
|
|
1408
1408
|
flex: 1,
|
|
1409
1409
|
gap: 2
|
|
1410
1410
|
},
|
|
1411
|
-
children: [/* @__PURE__ */
|
|
1411
|
+
children: [/* @__PURE__ */ j(H, {
|
|
1412
1412
|
variant: d ? "caption" : "body",
|
|
1413
1413
|
color: d ? "dim" : "default",
|
|
1414
1414
|
numberOfLines: 1,
|
|
1415
1415
|
ellipsizeMode: "tail",
|
|
1416
1416
|
children: e
|
|
1417
|
-
}), t && /* @__PURE__ */
|
|
1417
|
+
}), t && /* @__PURE__ */ j(H, {
|
|
1418
1418
|
variant: d ? "body" : "caption",
|
|
1419
1419
|
color: d ? "default" : "dim",
|
|
1420
1420
|
numberOfLines: 1,
|
|
@@ -1422,7 +1422,7 @@ var G = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1422
1422
|
children: t
|
|
1423
1423
|
})]
|
|
1424
1424
|
}),
|
|
1425
|
-
r && /* @__PURE__ */
|
|
1425
|
+
r && /* @__PURE__ */ j(O, {
|
|
1426
1426
|
style: {
|
|
1427
1427
|
flexShrink: 0,
|
|
1428
1428
|
flexDirection: "row",
|
|
@@ -1432,7 +1432,7 @@ var G = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1432
1432
|
children: r
|
|
1433
1433
|
})
|
|
1434
1434
|
] });
|
|
1435
|
-
return i ? /* @__PURE__ */
|
|
1435
|
+
return i ? /* @__PURE__ */ j(C, {
|
|
1436
1436
|
ref: l,
|
|
1437
1437
|
disabled: s,
|
|
1438
1438
|
accessibilityRole: "button",
|
|
@@ -1446,22 +1446,22 @@ var G = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1446
1446
|
o
|
|
1447
1447
|
],
|
|
1448
1448
|
...c,
|
|
1449
|
-
children: ({ pressed: e }) => /* @__PURE__ */
|
|
1449
|
+
children: ({ pressed: e }) => /* @__PURE__ */ M(A, { children: [p, e && !s ? /* @__PURE__ */ j(O, {
|
|
1450
1450
|
pointerEvents: "none",
|
|
1451
|
-
style: [
|
|
1451
|
+
style: [T.absoluteFill, { backgroundColor: u.activeOverlay }]
|
|
1452
1452
|
}) : null] })
|
|
1453
|
-
}) : /* @__PURE__ */
|
|
1453
|
+
}) : /* @__PURE__ */ j(O, {
|
|
1454
1454
|
ref: l,
|
|
1455
1455
|
style: [f, o],
|
|
1456
1456
|
...c,
|
|
1457
1457
|
children: p
|
|
1458
1458
|
});
|
|
1459
|
-
}),
|
|
1459
|
+
}), Ne = {
|
|
1460
1460
|
sm: 12,
|
|
1461
1461
|
md: 16,
|
|
1462
1462
|
lg: 20
|
|
1463
1463
|
};
|
|
1464
|
-
function
|
|
1464
|
+
function Pe(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 Ae(e, t) {
|
|
|
1473
1473
|
default: return e.windowFgColor;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Fe(e) {
|
|
1477
1477
|
return e ? {
|
|
1478
1478
|
accessible: !0,
|
|
1479
1479
|
accessibilityLabel: e,
|
|
@@ -1485,27 +1485,27 @@ function je(e) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
//#endregion
|
|
1487
1487
|
//#region src/components/Icon/Icon.tsx
|
|
1488
|
-
function
|
|
1488
|
+
function U(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 Ie(e) {
|
|
1492
1492
|
return e === "nonzero" || e === "evenodd" ? e : void 0;
|
|
1493
1493
|
}
|
|
1494
|
-
var
|
|
1495
|
-
let s =
|
|
1494
|
+
var W = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
|
|
1495
|
+
let s = B(), c = Ne[t], l = Pe(s, a), u = U(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = U(e) ? e.svg : void 0, f = U(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ j(I, {
|
|
1496
1496
|
d: e.d,
|
|
1497
|
-
fillRule:
|
|
1498
|
-
clipRule:
|
|
1497
|
+
fillRule: Ie(e.fillRule),
|
|
1498
|
+
clipRule: Ie(e.clipRule),
|
|
1499
1499
|
transform: e.transform
|
|
1500
|
-
}, t)) : [/* @__PURE__ */
|
|
1501
|
-
return d ? /* @__PURE__ */
|
|
1500
|
+
}, t)) : [/* @__PURE__ */ j(I, { d: e.path }, 0)], p = Fe(i);
|
|
1501
|
+
return d ? /* @__PURE__ */ j(oe, {
|
|
1502
1502
|
xml: `<svg viewBox="${u}">${d}</svg>`,
|
|
1503
1503
|
width: n ?? c,
|
|
1504
1504
|
height: r ?? c,
|
|
1505
1505
|
fill: l,
|
|
1506
1506
|
style: o,
|
|
1507
1507
|
...p
|
|
1508
|
-
}) : /* @__PURE__ */
|
|
1508
|
+
}) : /* @__PURE__ */ j(ae, {
|
|
1509
1509
|
viewBox: u,
|
|
1510
1510
|
width: n ?? c,
|
|
1511
1511
|
height: r ?? 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
|
+
}, Le = m.createAnimatedComponent(ie), Re = m.createAnimatedComponent(I), ze = m.createAnimatedComponent(re);
|
|
1518
|
+
function Be(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 Ie(e) {
|
|
|
1527
1527
|
return n.start(), () => n.stop();
|
|
1528
1528
|
}, [t, e]), t;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function Ve(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 Le(e, t) {
|
|
|
1543
1543
|
t
|
|
1544
1544
|
]), n;
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1547
|
-
transform:
|
|
1546
|
+
var He = ({ fill: e }) => /* @__PURE__ */ j(Le, {
|
|
1547
|
+
transform: Be(1500).interpolate({
|
|
1548
1548
|
inputRange: [0, 1],
|
|
1549
1549
|
outputRange: ["rotate(0, 8, 8)", "rotate(360, 8, 8)"]
|
|
1550
1550
|
}),
|
|
1551
|
-
children: /* @__PURE__ */
|
|
1551
|
+
children: /* @__PURE__ */ j(I, {
|
|
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
|
+
}), Ue = ({ 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 Re = ({ fill: e }) => /* @__PURE__ */ A(Ne, {
|
|
|
1568
1568
|
useNativeDriver: !1
|
|
1569
1569
|
})]));
|
|
1570
1570
|
return n.start(), () => n.stop();
|
|
1571
|
-
}, [t]), /* @__PURE__ */
|
|
1571
|
+
}, [t]), /* @__PURE__ */ j(Re, {
|
|
1572
1572
|
fill: e,
|
|
1573
1573
|
opacity: t,
|
|
1574
1574
|
d: "m 15 8 c 0 3.867188 -3.132812 7 -7 7 s -7 -3.132812 -7 -7 s 3.132812 -7 7 -7 s 7 3.132812 7 7 z m 0 0"
|
|
1575
1575
|
});
|
|
1576
|
-
},
|
|
1577
|
-
let t =
|
|
1576
|
+
}, We = ({ fill: e }) => {
|
|
1577
|
+
let t = Be(1400), n = [
|
|
1578
1578
|
0,
|
|
1579
1579
|
.2,
|
|
1580
1580
|
.5,
|
|
@@ -1602,30 +1602,30 @@ var Re = ({ fill: e }) => /* @__PURE__ */ A(Ne, {
|
|
|
1602
1602
|
1
|
|
1603
1603
|
]
|
|
1604
1604
|
});
|
|
1605
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(I, {
|
|
1606
1606
|
fill: e,
|
|
1607
1607
|
d: "M2 13h12v2H2z"
|
|
1608
|
-
}), /* @__PURE__ */
|
|
1608
|
+
}), /* @__PURE__ */ j(Le, {
|
|
1609
1609
|
transform: r,
|
|
1610
1610
|
opacity: i,
|
|
1611
|
-
children: /* @__PURE__ */
|
|
1611
|
+
children: /* @__PURE__ */ j(I, {
|
|
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 G(e, t, n) {
|
|
1619
1619
|
return `translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`;
|
|
1620
1620
|
}
|
|
1621
|
-
var
|
|
1622
|
-
let i =
|
|
1621
|
+
var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
1622
|
+
let i = Ve(1200, r), a = [
|
|
1623
1623
|
0,
|
|
1624
1624
|
.2,
|
|
1625
1625
|
.4,
|
|
1626
1626
|
1
|
|
1627
1627
|
];
|
|
1628
|
-
return /* @__PURE__ */
|
|
1628
|
+
return /* @__PURE__ */ j(ze, {
|
|
1629
1629
|
cx: e,
|
|
1630
1630
|
cy: t,
|
|
1631
1631
|
r: 2,
|
|
@@ -1642,44 +1642,44 @@ var Y = ({ 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
|
+
G(e, t, 1),
|
|
1646
|
+
G(e, t, .7),
|
|
1647
|
+
G(e, t, 1),
|
|
1648
|
+
G(e, t, 1)
|
|
1649
1649
|
]
|
|
1650
1650
|
})
|
|
1651
1651
|
});
|
|
1652
|
-
},
|
|
1653
|
-
[
|
|
1654
|
-
[
|
|
1655
|
-
[P,
|
|
1656
|
-
[
|
|
1657
|
-
/* @__PURE__ */
|
|
1652
|
+
}, Ke = new Map([
|
|
1653
|
+
[F, He],
|
|
1654
|
+
[ne, Ue],
|
|
1655
|
+
[P, We],
|
|
1656
|
+
[ee, ({ fill: e }) => /* @__PURE__ */ M(A, { children: [
|
|
1657
|
+
/* @__PURE__ */ j(I, {
|
|
1658
1658
|
fill: e,
|
|
1659
1659
|
d: "m 8 1.992188 c -2.617188 0 -5.238281 0.933593 -7.195312 2.808593 l -0.496094 0.480469 c -0.3984378 0.378906 -0.410156 1.011719 -0.03125 1.410156 c 0.003906 0.007813 0.011718 0.011719 0.019531 0.015625 c 0.480469 -1.011719 1.503906 -1.707031 2.703125 -1.707031 h 0.9375 c 2.480469 -1.292969 5.644531 -1.292969 8.125 0 h 0.9375 c 1.199219 0 2.222656 0.695312 2.707031 1.707031 c 0.003907 -0.007812 0.011719 -0.011719 0.015625 -0.015625 c 0.378906 -0.398437 0.367188 -1.03125 -0.03125 -1.410156 l -0.496094 -0.480469 c -1.957031 -1.875 -4.578124 -2.808593 -7.195312 -2.808593 z m -1.730469 9.007812 c -0.441406 0.765625 -0.339843 1.757812 0.316407 2.414062 c 0.78125 0.78125 2.046874 0.78125 2.828124 0 c 0.65625 -0.65625 0.757813 -1.648437 0.316407 -2.414062 z m 0 0"
|
|
1660
1660
|
}),
|
|
1661
|
-
/* @__PURE__ */
|
|
1661
|
+
/* @__PURE__ */ j(Ge, {
|
|
1662
1662
|
cx: 3,
|
|
1663
1663
|
cy: 8,
|
|
1664
1664
|
fill: e,
|
|
1665
1665
|
delay: 0
|
|
1666
1666
|
}),
|
|
1667
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ j(Ge, {
|
|
1668
1668
|
cx: 8,
|
|
1669
1669
|
cy: 8,
|
|
1670
1670
|
fill: e,
|
|
1671
1671
|
delay: 150
|
|
1672
1672
|
}),
|
|
1673
|
-
/* @__PURE__ */
|
|
1673
|
+
/* @__PURE__ */ j(Ge, {
|
|
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__ */
|
|
1680
|
+
]), qe = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
|
|
1681
|
+
let s = B(), c = V(), l = t && !c ? Ke.get(e) : void 0;
|
|
1682
|
+
if (!l) return /* @__PURE__ */ j(W, {
|
|
1683
1683
|
icon: e,
|
|
1684
1684
|
size: n,
|
|
1685
1685
|
width: r,
|
|
@@ -1687,16 +1687,16 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1687
1687
|
label: a,
|
|
1688
1688
|
color: o
|
|
1689
1689
|
});
|
|
1690
|
-
let u =
|
|
1691
|
-
return /* @__PURE__ */
|
|
1690
|
+
let u = Ne[n], d = Pe(s, o), f = Fe(a);
|
|
1691
|
+
return /* @__PURE__ */ j(ae, {
|
|
1692
1692
|
viewBox: e.viewBox,
|
|
1693
1693
|
width: r ?? u,
|
|
1694
1694
|
height: i ?? u,
|
|
1695
1695
|
...f,
|
|
1696
|
-
children: /* @__PURE__ */
|
|
1696
|
+
children: /* @__PURE__ */ j(l, { fill: d })
|
|
1697
1697
|
});
|
|
1698
|
-
},
|
|
1699
|
-
let c =
|
|
1698
|
+
}, Je = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
|
|
1699
|
+
let c = B(), l = {
|
|
1700
1700
|
info: {
|
|
1701
1701
|
bg: c.accentBgColor,
|
|
1702
1702
|
fg: c.accentFgColor
|
|
@@ -1714,7 +1714,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1714
1714
|
fg: c.successFgColor
|
|
1715
1715
|
}
|
|
1716
1716
|
}[e], u = e === "warning" ? "rgba(0, 0, 0, 0.14)" : "rgba(255, 255, 255, 0.25)";
|
|
1717
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ M(O, {
|
|
1718
1718
|
accessible: !0,
|
|
1719
1719
|
accessibilityRole: "alert",
|
|
1720
1720
|
accessibilityLiveRegion: "polite",
|
|
@@ -1729,7 +1729,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1729
1729
|
backgroundColor: l.bg
|
|
1730
1730
|
}, o],
|
|
1731
1731
|
...s,
|
|
1732
|
-
children: [/* @__PURE__ */
|
|
1732
|
+
children: [/* @__PURE__ */ j(H, {
|
|
1733
1733
|
variant: "body",
|
|
1734
1734
|
style: {
|
|
1735
1735
|
flex: 1,
|
|
@@ -1737,14 +1737,14 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1737
1737
|
color: l.fg
|
|
1738
1738
|
},
|
|
1739
1739
|
children: t
|
|
1740
|
-
}), (n || i) && /* @__PURE__ */
|
|
1740
|
+
}), (n || i) && /* @__PURE__ */ M(O, {
|
|
1741
1741
|
style: {
|
|
1742
1742
|
flexDirection: "row",
|
|
1743
1743
|
alignItems: "center",
|
|
1744
1744
|
gap: c.space1,
|
|
1745
1745
|
flexShrink: 0
|
|
1746
1746
|
},
|
|
1747
|
-
children: [n && /* @__PURE__ */
|
|
1747
|
+
children: [n && /* @__PURE__ */ j(C, {
|
|
1748
1748
|
accessibilityRole: "button",
|
|
1749
1749
|
accessibilityLabel: n,
|
|
1750
1750
|
onPress: r,
|
|
@@ -1754,7 +1754,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1754
1754
|
borderRadius: c.radiusMd,
|
|
1755
1755
|
backgroundColor: e ? u : "transparent"
|
|
1756
1756
|
}),
|
|
1757
|
-
children: /* @__PURE__ */
|
|
1757
|
+
children: /* @__PURE__ */ j(E, {
|
|
1758
1758
|
style: {
|
|
1759
1759
|
fontFamily: c.fontFamily,
|
|
1760
1760
|
fontSize: c.fontSizeBody,
|
|
@@ -1763,7 +1763,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1763
1763
|
},
|
|
1764
1764
|
children: n
|
|
1765
1765
|
})
|
|
1766
|
-
}), i && /* @__PURE__ */
|
|
1766
|
+
}), i && /* @__PURE__ */ j(C, {
|
|
1767
1767
|
accessibilityRole: "button",
|
|
1768
1768
|
accessibilityLabel: "Dismiss",
|
|
1769
1769
|
hitSlop: 4,
|
|
@@ -1777,7 +1777,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1777
1777
|
opacity: e ? 1 : .6,
|
|
1778
1778
|
backgroundColor: e ? u : "transparent"
|
|
1779
1779
|
}),
|
|
1780
|
-
children: /* @__PURE__ */
|
|
1780
|
+
children: /* @__PURE__ */ j(E, {
|
|
1781
1781
|
style: {
|
|
1782
1782
|
fontSize: c.fontSizeBody,
|
|
1783
1783
|
color: l.fg
|
|
@@ -1787,13 +1787,13 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1787
1787
|
})]
|
|
1788
1788
|
})]
|
|
1789
1789
|
});
|
|
1790
|
-
},
|
|
1791
|
-
return /* @__PURE__ */
|
|
1790
|
+
}, Ye = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
|
|
1791
|
+
return /* @__PURE__ */ j(O, {
|
|
1792
1792
|
ref: r,
|
|
1793
1793
|
accessible: !1,
|
|
1794
1794
|
style: [
|
|
1795
1795
|
{
|
|
1796
|
-
backgroundColor:
|
|
1796
|
+
backgroundColor: B().cardShadeColor,
|
|
1797
1797
|
flexShrink: 0
|
|
1798
1798
|
},
|
|
1799
1799
|
e === "vertical" ? {
|
|
@@ -1808,15 +1808,15 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1808
1808
|
],
|
|
1809
1809
|
...n
|
|
1810
1810
|
});
|
|
1811
|
-
}),
|
|
1812
|
-
let o =
|
|
1813
|
-
return n === "separate" ? /* @__PURE__ */
|
|
1811
|
+
}), Xe = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
|
|
1812
|
+
let o = B(), s = e.toArray(t).filter(Boolean);
|
|
1813
|
+
return n === "separate" ? /* @__PURE__ */ j(O, {
|
|
1814
1814
|
ref: a,
|
|
1815
1815
|
accessible: !0,
|
|
1816
1816
|
accessibilityRole: "list",
|
|
1817
1817
|
style: [{ gap: o.space2 }, r],
|
|
1818
1818
|
...i,
|
|
1819
|
-
children: s.map((e, t) => /* @__PURE__ */
|
|
1819
|
+
children: s.map((e, t) => /* @__PURE__ */ j(O, {
|
|
1820
1820
|
style: {
|
|
1821
1821
|
backgroundColor: o.cardBgColor,
|
|
1822
1822
|
borderWidth: 1,
|
|
@@ -1826,7 +1826,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1826
1826
|
},
|
|
1827
1827
|
children: e
|
|
1828
1828
|
}, t))
|
|
1829
|
-
}) : /* @__PURE__ */
|
|
1829
|
+
}) : /* @__PURE__ */ j(O, {
|
|
1830
1830
|
ref: a,
|
|
1831
1831
|
accessible: !0,
|
|
1832
1832
|
accessibilityRole: "list",
|
|
@@ -1838,12 +1838,12 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1838
1838
|
overflow: "hidden"
|
|
1839
1839
|
}, r],
|
|
1840
1840
|
...i,
|
|
1841
|
-
children: s.map((e, t) => /* @__PURE__ */
|
|
1841
|
+
children: s.map((e, t) => /* @__PURE__ */ M(O, { children: [t > 0 && /* @__PURE__ */ j(Ye, { testID: "boxed-list-separator" }), e] }, t))
|
|
1842
1842
|
});
|
|
1843
1843
|
});
|
|
1844
1844
|
//#endregion
|
|
1845
1845
|
//#region src/components/Button/Button.tsx
|
|
1846
|
-
function
|
|
1846
|
+
function Ze(e, t) {
|
|
1847
1847
|
switch (t) {
|
|
1848
1848
|
case "sm": return {
|
|
1849
1849
|
minHeight: 28,
|
|
@@ -1868,14 +1868,14 @@ function Ge(e, t) {
|
|
|
1868
1868
|
};
|
|
1869
1869
|
}
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function Qe(e) {
|
|
1872
1872
|
switch (e) {
|
|
1873
1873
|
case "sm": return 28;
|
|
1874
1874
|
case "lg": return 42;
|
|
1875
1875
|
default: return 34;
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1878
|
+
function $e(e, t, n, r) {
|
|
1879
1879
|
if (r) return {
|
|
1880
1880
|
backgroundColor: n ? "rgba(0, 0, 0, 0.85)" : "rgba(0, 0, 0, 0.65)",
|
|
1881
1881
|
borderColor: "rgba(255, 255, 255, 0.12)",
|
|
@@ -1904,15 +1904,15 @@ function qe(e, t, n, r) {
|
|
|
1904
1904
|
};
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
|
-
var
|
|
1908
|
-
let f =
|
|
1909
|
-
return /* @__PURE__ */
|
|
1907
|
+
var et = 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) {
|
|
1908
|
+
let f = B(), p = z();
|
|
1909
|
+
return /* @__PURE__ */ j(C, {
|
|
1910
1910
|
ref: d,
|
|
1911
1911
|
disabled: l,
|
|
1912
1912
|
accessibilityRole: "button",
|
|
1913
1913
|
accessibilityState: { disabled: !!l },
|
|
1914
1914
|
style: ({ pressed: i }) => {
|
|
1915
|
-
let { backgroundColor: a, borderColor: o } =
|
|
1915
|
+
let { backgroundColor: a, borderColor: o } = $e(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? Qe(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = Ze(f, t);
|
|
1916
1916
|
return [{
|
|
1917
1917
|
flexDirection: "row",
|
|
1918
1918
|
alignItems: "center",
|
|
@@ -1933,10 +1933,10 @@ var Je = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
1933
1933
|
},
|
|
1934
1934
|
...u,
|
|
1935
1935
|
children: ({ pressed: n }) => {
|
|
1936
|
-
let { fontSize: s } =
|
|
1937
|
-
return /* @__PURE__ */
|
|
1936
|
+
let { fontSize: s } = Ze(f, t), { color: l } = $e(f, e, n, r);
|
|
1937
|
+
return /* @__PURE__ */ M(A, { children: [
|
|
1938
1938
|
i,
|
|
1939
|
-
typeof o == "string" ? /* @__PURE__ */
|
|
1939
|
+
typeof o == "string" ? /* @__PURE__ */ j(E, {
|
|
1940
1940
|
style: [{
|
|
1941
1941
|
fontFamily: f.fontFamily,
|
|
1942
1942
|
fontWeight: String(f.fontWeightSemibold),
|
|
@@ -1952,7 +1952,7 @@ var Je = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
1952
1952
|
});
|
|
1953
1953
|
//#endregion
|
|
1954
1954
|
//#region src/components/Card/Card.tsx
|
|
1955
|
-
function
|
|
1955
|
+
function tt(e, t) {
|
|
1956
1956
|
switch (t) {
|
|
1957
1957
|
case "none": return 0;
|
|
1958
1958
|
case "sm": return e.space2;
|
|
@@ -1960,16 +1960,16 @@ function Ye(e, t) {
|
|
|
1960
1960
|
default: return e.space4;
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
|
-
var
|
|
1964
|
-
let s =
|
|
1963
|
+
var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
|
|
1964
|
+
let s = B(), c = {
|
|
1965
1965
|
backgroundColor: s.cardBgColor,
|
|
1966
1966
|
borderWidth: 1,
|
|
1967
1967
|
borderColor: s.cardShadeColor,
|
|
1968
1968
|
borderRadius: s.radiusLg,
|
|
1969
1969
|
overflow: "hidden",
|
|
1970
|
-
padding:
|
|
1970
|
+
padding: tt(s, t)
|
|
1971
1971
|
};
|
|
1972
|
-
return e ? /* @__PURE__ */
|
|
1972
|
+
return e ? /* @__PURE__ */ j(C, {
|
|
1973
1973
|
ref: o,
|
|
1974
1974
|
disabled: i,
|
|
1975
1975
|
accessibilityRole: "button",
|
|
@@ -1983,21 +1983,21 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
1983
1983
|
n
|
|
1984
1984
|
],
|
|
1985
1985
|
...a,
|
|
1986
|
-
children: ({ pressed: e }) => /* @__PURE__ */
|
|
1986
|
+
children: ({ pressed: e }) => /* @__PURE__ */ M(A, { children: [r, e && !i ? /* @__PURE__ */ j(O, {
|
|
1987
1987
|
pointerEvents: "none",
|
|
1988
|
-
style: [
|
|
1988
|
+
style: [T.absoluteFill, {
|
|
1989
1989
|
backgroundColor: s.activeOverlay,
|
|
1990
1990
|
borderRadius: s.radiusLg
|
|
1991
1991
|
}]
|
|
1992
1992
|
}) : null] })
|
|
1993
|
-
}) : /* @__PURE__ */
|
|
1993
|
+
}) : /* @__PURE__ */ j(O, {
|
|
1994
1994
|
ref: o,
|
|
1995
1995
|
style: [c, n],
|
|
1996
1996
|
...a,
|
|
1997
1997
|
children: r
|
|
1998
1998
|
});
|
|
1999
|
-
}),
|
|
2000
|
-
let s =
|
|
1999
|
+
}), rt = 18, it = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
|
|
2000
|
+
let s = B(), l = R(), u = z(), f = e || t, p = d(new m.Value(+!!f)).current, h = d(!0);
|
|
2001
2001
|
c(() => {
|
|
2002
2002
|
if (h.current) {
|
|
2003
2003
|
h.current = !1;
|
|
@@ -2023,7 +2023,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2023
2023
|
inputRange: [0, 1],
|
|
2024
2024
|
outputRange: [s.cardBgColor, s.accentBgColor]
|
|
2025
2025
|
});
|
|
2026
|
-
return /* @__PURE__ */
|
|
2026
|
+
return /* @__PURE__ */ j(C, {
|
|
2027
2027
|
ref: o,
|
|
2028
2028
|
disabled: r,
|
|
2029
2029
|
accessibilityRole: "checkbox",
|
|
@@ -2034,10 +2034,10 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2034
2034
|
onPress: () => n?.(!e),
|
|
2035
2035
|
style: [{ opacity: r ? s.opacityDisabled : 1 }, i],
|
|
2036
2036
|
...a,
|
|
2037
|
-
children: /* @__PURE__ */
|
|
2037
|
+
children: /* @__PURE__ */ j(m.View, {
|
|
2038
2038
|
style: {
|
|
2039
|
-
width:
|
|
2040
|
-
height:
|
|
2039
|
+
width: rt,
|
|
2040
|
+
height: rt,
|
|
2041
2041
|
alignItems: "center",
|
|
2042
2042
|
justifyContent: "center",
|
|
2043
2043
|
borderRadius: s.radiusSm,
|
|
@@ -2045,13 +2045,13 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2045
2045
|
borderColor: v,
|
|
2046
2046
|
backgroundColor: y
|
|
2047
2047
|
},
|
|
2048
|
-
children: t ? /* @__PURE__ */
|
|
2048
|
+
children: t ? /* @__PURE__ */ j(m.View, { style: {
|
|
2049
2049
|
width: 10,
|
|
2050
2050
|
height: 2,
|
|
2051
2051
|
borderRadius: 1,
|
|
2052
2052
|
backgroundColor: "#fff",
|
|
2053
2053
|
opacity: p
|
|
2054
|
-
} }) : /* @__PURE__ */
|
|
2054
|
+
} }) : /* @__PURE__ */ j(m.Text, {
|
|
2055
2055
|
style: {
|
|
2056
2056
|
opacity: p,
|
|
2057
2057
|
color: "#fff",
|
|
@@ -2063,13 +2063,13 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2063
2063
|
})
|
|
2064
2064
|
})
|
|
2065
2065
|
});
|
|
2066
|
-
}),
|
|
2067
|
-
let p =
|
|
2066
|
+
}), at = m.createAnimatedComponent(C), ot = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
|
|
2067
|
+
let p = B(), g = R(), v = V(), y = d(new m.Value(+!!v)).current, x = !!s, S = () => {
|
|
2068
2068
|
let e = s?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
2069
2069
|
e && l?.(e.id);
|
|
2070
2070
|
}, w = () => {
|
|
2071
|
-
x ?
|
|
2072
|
-
}, T = x ?
|
|
2071
|
+
x ? S() : i?.();
|
|
2072
|
+
}, T = x ? S : a ? i : void 0;
|
|
2073
2073
|
c(() => {
|
|
2074
2074
|
if (!e) return;
|
|
2075
2075
|
if (v) {
|
|
@@ -2103,14 +2103,14 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2103
2103
|
]);
|
|
2104
2104
|
let E = () => {
|
|
2105
2105
|
let e = x && s ? s : r;
|
|
2106
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
2106
|
+
return e.length === 0 ? null : /* @__PURE__ */ j(O, {
|
|
2107
2107
|
style: {
|
|
2108
2108
|
borderTopWidth: 1,
|
|
2109
2109
|
borderTopColor: p.cardShadeColor
|
|
2110
2110
|
},
|
|
2111
2111
|
children: e.map((t, n) => {
|
|
2112
2112
|
let r = t.variant ?? "default", i = r === "destructive" ? p.destructiveColor : p.accentColor, a = x ? () => l?.(t.id) : t.onPress;
|
|
2113
|
-
return /* @__PURE__ */
|
|
2113
|
+
return /* @__PURE__ */ j(C, {
|
|
2114
2114
|
accessibilityRole: "button",
|
|
2115
2115
|
accessibilityState: { disabled: t.disabled },
|
|
2116
2116
|
disabled: t.disabled,
|
|
@@ -2123,7 +2123,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2123
2123
|
backgroundColor: r ? p.activeOverlay : "transparent",
|
|
2124
2124
|
opacity: t.disabled ? p.opacityDisabled : 1
|
|
2125
2125
|
}),
|
|
2126
|
-
children: /* @__PURE__ */
|
|
2126
|
+
children: /* @__PURE__ */ j(H, {
|
|
2127
2127
|
variant: "body",
|
|
2128
2128
|
style: {
|
|
2129
2129
|
textAlign: "center",
|
|
@@ -2135,7 +2135,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2135
2135
|
}, x ? t.id : t.label);
|
|
2136
2136
|
})
|
|
2137
2137
|
});
|
|
2138
|
-
},
|
|
2138
|
+
}, D = g === "dark" ? {
|
|
2139
2139
|
shadowOpacity: .5,
|
|
2140
2140
|
shadowRadius: 32,
|
|
2141
2141
|
elevation: 12
|
|
@@ -2144,13 +2144,13 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2144
2144
|
shadowRadius: 32,
|
|
2145
2145
|
elevation: 8
|
|
2146
2146
|
};
|
|
2147
|
-
return /* @__PURE__ */
|
|
2147
|
+
return /* @__PURE__ */ j(b, {
|
|
2148
2148
|
visible: e,
|
|
2149
2149
|
transparent: !0,
|
|
2150
2150
|
animationType: "none",
|
|
2151
2151
|
statusBarTranslucent: !0,
|
|
2152
2152
|
onRequestClose: w,
|
|
2153
|
-
children: /* @__PURE__ */
|
|
2153
|
+
children: /* @__PURE__ */ j(at, {
|
|
2154
2154
|
testID: f,
|
|
2155
2155
|
onPress: T,
|
|
2156
2156
|
style: {
|
|
@@ -2161,14 +2161,14 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2161
2161
|
backgroundColor: p.dialogBackdropColor,
|
|
2162
2162
|
opacity: y
|
|
2163
2163
|
},
|
|
2164
|
-
children: /* @__PURE__ */
|
|
2164
|
+
children: /* @__PURE__ */ j(C, {
|
|
2165
2165
|
onPress: () => {},
|
|
2166
2166
|
accessible: !1,
|
|
2167
2167
|
style: {
|
|
2168
2168
|
width: "100%",
|
|
2169
2169
|
maxWidth: 480
|
|
2170
2170
|
},
|
|
2171
|
-
children: /* @__PURE__ */
|
|
2171
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
2172
2172
|
accessible: !0,
|
|
2173
2173
|
role: o,
|
|
2174
2174
|
accessibilityViewIsModal: !0,
|
|
@@ -2181,7 +2181,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2181
2181
|
width: 0,
|
|
2182
2182
|
height: 8
|
|
2183
2183
|
},
|
|
2184
|
-
...
|
|
2184
|
+
...D,
|
|
2185
2185
|
opacity: y,
|
|
2186
2186
|
transform: [{ translateY: y.interpolate({
|
|
2187
2187
|
inputRange: [0, 1],
|
|
@@ -2192,7 +2192,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2192
2192
|
}) }]
|
|
2193
2193
|
}, u],
|
|
2194
2194
|
children: [
|
|
2195
|
-
t && /* @__PURE__ */
|
|
2195
|
+
t && /* @__PURE__ */ j(H, {
|
|
2196
2196
|
variant: "title-4",
|
|
2197
2197
|
style: {
|
|
2198
2198
|
padding: p.space4,
|
|
@@ -2202,12 +2202,12 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2202
2202
|
},
|
|
2203
2203
|
children: t
|
|
2204
2204
|
}),
|
|
2205
|
-
n && /* @__PURE__ */
|
|
2205
|
+
n && /* @__PURE__ */ j(O, {
|
|
2206
2206
|
style: {
|
|
2207
2207
|
paddingVertical: p.space2,
|
|
2208
2208
|
paddingHorizontal: p.space4
|
|
2209
2209
|
},
|
|
2210
|
-
children: typeof n == "string" ? /* @__PURE__ */
|
|
2210
|
+
children: typeof n == "string" ? /* @__PURE__ */ j(H, {
|
|
2211
2211
|
variant: "body",
|
|
2212
2212
|
style: {
|
|
2213
2213
|
textAlign: "center",
|
|
@@ -2222,25 +2222,25 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2222
2222
|
})
|
|
2223
2223
|
})
|
|
2224
2224
|
});
|
|
2225
|
-
},
|
|
2226
|
-
function
|
|
2227
|
-
let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t -
|
|
2225
|
+
}, st = 4, ct = 8, lt = 280;
|
|
2226
|
+
function ut(e, t) {
|
|
2227
|
+
let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - st : e.y + e.height + st;
|
|
2228
2228
|
return {
|
|
2229
|
-
top: Math.max(
|
|
2229
|
+
top: Math.max(ct, Math.min(i, n - t - ct)),
|
|
2230
2230
|
left: e.x,
|
|
2231
2231
|
width: e.width,
|
|
2232
2232
|
flipUp: r
|
|
2233
2233
|
};
|
|
2234
2234
|
}
|
|
2235
|
-
var
|
|
2236
|
-
let l =
|
|
2235
|
+
var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
|
|
2236
|
+
let l = B(), u = V(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [x, S] = f(null), T = d(null), E = d(new m.Value(0)).current, D = e.find((e) => e.value === t), k = () => {
|
|
2237
2237
|
a || h(!0);
|
|
2238
|
-
},
|
|
2239
|
-
e.disabled || (n?.(e.value),
|
|
2238
|
+
}, A = () => h(!1), ee = (e) => {
|
|
2239
|
+
e.disabled || (n?.(e.value), A());
|
|
2240
2240
|
};
|
|
2241
2241
|
return c(() => {
|
|
2242
2242
|
if (!p) {
|
|
2243
|
-
_(null), y(null),
|
|
2243
|
+
_(null), y(null), S(null);
|
|
2244
2244
|
return;
|
|
2245
2245
|
}
|
|
2246
2246
|
T.current?.measureInWindow((e, t, n, r) => {
|
|
@@ -2252,7 +2252,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2252
2252
|
});
|
|
2253
2253
|
});
|
|
2254
2254
|
}, [p]), c(() => {
|
|
2255
|
-
g === null || v === null ||
|
|
2255
|
+
g === null || v === null || S(ut(g, v));
|
|
2256
2256
|
}, [g, v]), c(() => {
|
|
2257
2257
|
if (x) {
|
|
2258
2258
|
if (u) {
|
|
@@ -2270,9 +2270,9 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2270
2270
|
u,
|
|
2271
2271
|
E,
|
|
2272
2272
|
l.durationFast
|
|
2273
|
-
]), /* @__PURE__ */
|
|
2273
|
+
]), /* @__PURE__ */ M(O, {
|
|
2274
2274
|
style: o,
|
|
2275
|
-
children: [/* @__PURE__ */
|
|
2275
|
+
children: [/* @__PURE__ */ M(C, {
|
|
2276
2276
|
ref: T,
|
|
2277
2277
|
testID: s,
|
|
2278
2278
|
role: "combobox",
|
|
@@ -2282,7 +2282,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2282
2282
|
disabled: !!a
|
|
2283
2283
|
},
|
|
2284
2284
|
disabled: a,
|
|
2285
|
-
onPress: () => p ?
|
|
2285
|
+
onPress: () => p ? A() : k(),
|
|
2286
2286
|
style: ({ pressed: e }) => ({
|
|
2287
2287
|
flexDirection: "row",
|
|
2288
2288
|
alignItems: "center",
|
|
@@ -2298,40 +2298,40 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2298
2298
|
borderRadius: l.radiusMd,
|
|
2299
2299
|
opacity: a ? l.opacityDisabled : 1
|
|
2300
2300
|
}),
|
|
2301
|
-
children: [/* @__PURE__ */
|
|
2301
|
+
children: [/* @__PURE__ */ j(H, {
|
|
2302
2302
|
numberOfLines: 1,
|
|
2303
2303
|
style: {
|
|
2304
2304
|
flex: 1,
|
|
2305
2305
|
fontSize: l.fontSizeBody,
|
|
2306
2306
|
color: l.windowFgColor,
|
|
2307
|
-
opacity:
|
|
2307
|
+
opacity: D ? 1 : l.opacityDim
|
|
2308
2308
|
},
|
|
2309
|
-
children:
|
|
2310
|
-
}), /* @__PURE__ */
|
|
2311
|
-
icon:
|
|
2309
|
+
children: D?.label ?? r
|
|
2310
|
+
}), /* @__PURE__ */ j(W, {
|
|
2311
|
+
icon: te,
|
|
2312
2312
|
size: "md",
|
|
2313
2313
|
color: "default",
|
|
2314
2314
|
style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
|
|
2315
2315
|
})]
|
|
2316
|
-
}), /* @__PURE__ */
|
|
2316
|
+
}), /* @__PURE__ */ j(b, {
|
|
2317
2317
|
visible: p,
|
|
2318
2318
|
transparent: !0,
|
|
2319
2319
|
animationType: "none",
|
|
2320
2320
|
statusBarTranslucent: !0,
|
|
2321
|
-
children: /* @__PURE__ */
|
|
2322
|
-
onPress:
|
|
2321
|
+
children: /* @__PURE__ */ j(C, {
|
|
2322
|
+
onPress: A,
|
|
2323
2323
|
accessible: !1,
|
|
2324
2324
|
style: { flex: 1 },
|
|
2325
2325
|
testID: s ? `${s}-backdrop` : void 0,
|
|
2326
|
-
children: /* @__PURE__ */
|
|
2326
|
+
children: /* @__PURE__ */ j(m.View, {
|
|
2327
2327
|
onLayout: (e) => {
|
|
2328
|
-
y(Math.min(e.nativeEvent.layout.height,
|
|
2328
|
+
y(Math.min(e.nativeEvent.layout.height, lt));
|
|
2329
2329
|
},
|
|
2330
2330
|
role: "list",
|
|
2331
2331
|
accessible: !0,
|
|
2332
2332
|
style: [{
|
|
2333
2333
|
position: "absolute",
|
|
2334
|
-
maxHeight:
|
|
2334
|
+
maxHeight: lt,
|
|
2335
2335
|
backgroundColor: l.popoverBgColor,
|
|
2336
2336
|
borderWidth: 1,
|
|
2337
2337
|
borderColor: l.cardShadeColor,
|
|
@@ -2356,18 +2356,18 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2356
2356
|
width: 200,
|
|
2357
2357
|
opacity: 0
|
|
2358
2358
|
}],
|
|
2359
|
-
children: /* @__PURE__ */
|
|
2359
|
+
children: /* @__PURE__ */ j(w, {
|
|
2360
2360
|
bounces: !1,
|
|
2361
2361
|
children: e.map((e) => {
|
|
2362
2362
|
let n = e.value === t;
|
|
2363
|
-
return /* @__PURE__ */
|
|
2363
|
+
return /* @__PURE__ */ M(C, {
|
|
2364
2364
|
role: "option",
|
|
2365
2365
|
accessibilityState: {
|
|
2366
2366
|
selected: n,
|
|
2367
2367
|
disabled: !!e.disabled
|
|
2368
2368
|
},
|
|
2369
2369
|
disabled: e.disabled,
|
|
2370
|
-
onPress: () =>
|
|
2370
|
+
onPress: () => ee(e),
|
|
2371
2371
|
style: ({ pressed: t }) => ({
|
|
2372
2372
|
flexDirection: "row",
|
|
2373
2373
|
alignItems: "center",
|
|
@@ -2378,12 +2378,12 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2378
2378
|
backgroundColor: t ? l.activeOverlay : "transparent",
|
|
2379
2379
|
opacity: e.disabled ? l.opacityDisabled : 1
|
|
2380
2380
|
}),
|
|
2381
|
-
children: [/* @__PURE__ */
|
|
2381
|
+
children: [/* @__PURE__ */ M(O, {
|
|
2382
2382
|
style: {
|
|
2383
2383
|
flex: 1,
|
|
2384
2384
|
gap: 1
|
|
2385
2385
|
},
|
|
2386
|
-
children: [/* @__PURE__ */
|
|
2386
|
+
children: [/* @__PURE__ */ j(H, {
|
|
2387
2387
|
numberOfLines: 1,
|
|
2388
2388
|
style: {
|
|
2389
2389
|
fontSize: l.fontSizeBody,
|
|
@@ -2391,7 +2391,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2391
2391
|
fontWeight: n ? String(l.fontWeightSemibold) : void 0
|
|
2392
2392
|
},
|
|
2393
2393
|
children: e.label
|
|
2394
|
-
}), e.description && /* @__PURE__ */
|
|
2394
|
+
}), e.description && /* @__PURE__ */ j(H, {
|
|
2395
2395
|
numberOfLines: 1,
|
|
2396
2396
|
style: {
|
|
2397
2397
|
fontSize: l.fontSizeCaption,
|
|
@@ -2400,8 +2400,8 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2400
2400
|
},
|
|
2401
2401
|
children: e.description
|
|
2402
2402
|
})]
|
|
2403
|
-
}), n && /* @__PURE__ */
|
|
2404
|
-
icon:
|
|
2403
|
+
}), n && /* @__PURE__ */ j(W, {
|
|
2404
|
+
icon: N,
|
|
2405
2405
|
size: "md",
|
|
2406
2406
|
color: "blue"
|
|
2407
2407
|
})]
|
|
@@ -2412,9 +2412,9 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2412
2412
|
})
|
|
2413
2413
|
})]
|
|
2414
2414
|
});
|
|
2415
|
-
},
|
|
2416
|
-
let s =
|
|
2417
|
-
return /* @__PURE__ */
|
|
2415
|
+
}, ft = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
|
|
2416
|
+
let s = B();
|
|
2417
|
+
return /* @__PURE__ */ M(O, {
|
|
2418
2418
|
ref: o,
|
|
2419
2419
|
style: [{
|
|
2420
2420
|
flexDirection: "row",
|
|
@@ -2428,7 +2428,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2428
2428
|
}, i],
|
|
2429
2429
|
...a,
|
|
2430
2430
|
children: [
|
|
2431
|
-
/* @__PURE__ */
|
|
2431
|
+
/* @__PURE__ */ j(O, {
|
|
2432
2432
|
style: {
|
|
2433
2433
|
flex: 1,
|
|
2434
2434
|
flexDirection: "row",
|
|
@@ -2437,14 +2437,14 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2437
2437
|
},
|
|
2438
2438
|
children: t
|
|
2439
2439
|
}),
|
|
2440
|
-
/* @__PURE__ */
|
|
2440
|
+
/* @__PURE__ */ j(O, {
|
|
2441
2441
|
accessibilityLiveRegion: "polite",
|
|
2442
2442
|
style: {
|
|
2443
2443
|
alignItems: "center",
|
|
2444
2444
|
justifyContent: "center",
|
|
2445
2445
|
paddingHorizontal: s.space1
|
|
2446
2446
|
},
|
|
2447
|
-
children: typeof e == "string" ? /* @__PURE__ */
|
|
2447
|
+
children: typeof e == "string" ? /* @__PURE__ */ j(E, {
|
|
2448
2448
|
numberOfLines: 1,
|
|
2449
2449
|
ellipsizeMode: "tail",
|
|
2450
2450
|
style: {
|
|
@@ -2457,7 +2457,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2457
2457
|
children: e
|
|
2458
2458
|
}) : e
|
|
2459
2459
|
}),
|
|
2460
|
-
/* @__PURE__ */
|
|
2460
|
+
/* @__PURE__ */ j(O, {
|
|
2461
2461
|
style: {
|
|
2462
2462
|
flex: 1,
|
|
2463
2463
|
flexDirection: "row",
|
|
@@ -2469,22 +2469,22 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2469
2469
|
})
|
|
2470
2470
|
]
|
|
2471
2471
|
});
|
|
2472
|
-
}),
|
|
2473
|
-
let c =
|
|
2474
|
-
return /* @__PURE__ */
|
|
2472
|
+
}), pt = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
|
|
2473
|
+
let c = B();
|
|
2474
|
+
return /* @__PURE__ */ j(C, {
|
|
2475
2475
|
ref: s,
|
|
2476
2476
|
accessibilityRole: "link",
|
|
2477
2477
|
accessibilityHint: t ? "Opens in browser" : void 0,
|
|
2478
2478
|
onPress: a ?? (() => y.openURL(e)),
|
|
2479
2479
|
style: r,
|
|
2480
2480
|
...o,
|
|
2481
|
-
children: ({ pressed: e }) => /* @__PURE__ */
|
|
2481
|
+
children: ({ pressed: e }) => /* @__PURE__ */ M(H, {
|
|
2482
2482
|
style: [{
|
|
2483
2483
|
color: c.accentColor,
|
|
2484
2484
|
textDecorationLine: e ? "underline" : "none",
|
|
2485
2485
|
opacity: e ? .7 : 1
|
|
2486
2486
|
}, i],
|
|
2487
|
-
children: [n, t && /* @__PURE__ */
|
|
2487
|
+
children: [n, t && /* @__PURE__ */ j(E, {
|
|
2488
2488
|
accessibilityElementsHidden: !0,
|
|
2489
2489
|
importantForAccessibility: "no",
|
|
2490
2490
|
style: { fontSize: 12 },
|
|
@@ -2492,9 +2492,9 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2492
2492
|
})]
|
|
2493
2493
|
})
|
|
2494
2494
|
});
|
|
2495
|
-
}),
|
|
2496
|
-
let a =
|
|
2497
|
-
return /* @__PURE__ */
|
|
2495
|
+
}), mt = ({ segments: e, onNavigate: n, style: r, ...i }) => {
|
|
2496
|
+
let a = B();
|
|
2497
|
+
return /* @__PURE__ */ j(O, {
|
|
2498
2498
|
style: [{
|
|
2499
2499
|
flexDirection: "row",
|
|
2500
2500
|
flexWrap: "wrap",
|
|
@@ -2503,7 +2503,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2503
2503
|
...i,
|
|
2504
2504
|
children: e.map((r, i) => {
|
|
2505
2505
|
let o = i === e.length - 1;
|
|
2506
|
-
return /* @__PURE__ */
|
|
2506
|
+
return /* @__PURE__ */ M(t, { children: [i > 0 && /* @__PURE__ */ j(E, {
|
|
2507
2507
|
accessibilityElementsHidden: !0,
|
|
2508
2508
|
importantForAccessibility: "no",
|
|
2509
2509
|
style: {
|
|
@@ -2513,7 +2513,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2513
2513
|
fontSize: a.fontSizeBody
|
|
2514
2514
|
},
|
|
2515
2515
|
children: "›"
|
|
2516
|
-
}), o ? /* @__PURE__ */
|
|
2516
|
+
}), o ? /* @__PURE__ */ M(O, {
|
|
2517
2517
|
style: {
|
|
2518
2518
|
flexDirection: "row",
|
|
2519
2519
|
alignItems: "center",
|
|
@@ -2522,10 +2522,10 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2522
2522
|
paddingHorizontal: a.space1,
|
|
2523
2523
|
maxWidth: 200
|
|
2524
2524
|
},
|
|
2525
|
-
children: [r.icon && /* @__PURE__ */
|
|
2525
|
+
children: [r.icon && /* @__PURE__ */ j(O, {
|
|
2526
2526
|
style: { flexShrink: 0 },
|
|
2527
2527
|
children: r.icon
|
|
2528
|
-
}), /* @__PURE__ */
|
|
2528
|
+
}), /* @__PURE__ */ j(E, {
|
|
2529
2529
|
numberOfLines: 1,
|
|
2530
2530
|
ellipsizeMode: "tail",
|
|
2531
2531
|
style: {
|
|
@@ -2536,7 +2536,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2536
2536
|
},
|
|
2537
2537
|
children: r.label
|
|
2538
2538
|
})]
|
|
2539
|
-
}) : /* @__PURE__ */
|
|
2539
|
+
}) : /* @__PURE__ */ M(C, {
|
|
2540
2540
|
accessibilityRole: "button",
|
|
2541
2541
|
accessibilityLabel: r.label,
|
|
2542
2542
|
onPress: () => n?.(r.path, i),
|
|
@@ -2550,10 +2550,10 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2550
2550
|
borderRadius: a.radiusSm,
|
|
2551
2551
|
backgroundColor: e ? a.activeOverlay : "transparent"
|
|
2552
2552
|
}),
|
|
2553
|
-
children: [r.icon && /* @__PURE__ */
|
|
2553
|
+
children: [r.icon && /* @__PURE__ */ j(O, {
|
|
2554
2554
|
style: { flexShrink: 0 },
|
|
2555
2555
|
children: r.icon
|
|
2556
|
-
}), /* @__PURE__ */
|
|
2556
|
+
}), /* @__PURE__ */ j(E, {
|
|
2557
2557
|
numberOfLines: 1,
|
|
2558
2558
|
ellipsizeMode: "tail",
|
|
2559
2559
|
style: {
|
|
@@ -2566,8 +2566,8 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2566
2566
|
})] }, r.path);
|
|
2567
2567
|
})
|
|
2568
2568
|
});
|
|
2569
|
-
},
|
|
2570
|
-
let o =
|
|
2569
|
+
}, ht = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
|
|
2570
|
+
let o = B(), s = R(), l = V(), u = e == null, p = u ? void 0 : Math.min(1, Math.max(0, e)), h = p === void 0 ? void 0 : p * 100, g = d(new m.Value(p ?? 0)).current, v = d(new m.Value(0)).current, [y, b] = f(0), x = (e) => {
|
|
2571
2571
|
b(e.nativeEvent.layout.width), i?.(e);
|
|
2572
2572
|
};
|
|
2573
2573
|
c(() => {
|
|
@@ -2623,7 +2623,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2623
2623
|
transformOrigin: "left",
|
|
2624
2624
|
transform: [{ scaleX: g }]
|
|
2625
2625
|
};
|
|
2626
|
-
return /* @__PURE__ */
|
|
2626
|
+
return /* @__PURE__ */ j(m.View, {
|
|
2627
2627
|
accessible: !0,
|
|
2628
2628
|
accessibilityRole: "progressbar",
|
|
2629
2629
|
accessibilityLabel: n,
|
|
@@ -2641,7 +2641,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2641
2641
|
overflow: "hidden"
|
|
2642
2642
|
}, r],
|
|
2643
2643
|
...a,
|
|
2644
|
-
children: /* @__PURE__ */
|
|
2644
|
+
children: /* @__PURE__ */ j(m.View, { style: [{
|
|
2645
2645
|
position: u ? "absolute" : "relative",
|
|
2646
2646
|
top: 0,
|
|
2647
2647
|
height: "100%",
|
|
@@ -2649,8 +2649,8 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2649
2649
|
backgroundColor: C[t]
|
|
2650
2650
|
}, w] })
|
|
2651
2651
|
});
|
|
2652
|
-
},
|
|
2653
|
-
let o =
|
|
2652
|
+
}, gt = 18, _t = 6, vt = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
|
|
2653
|
+
let o = B(), s = R(), l = z(), u = d(new m.Value(+!!e)).current, f = d(!0);
|
|
2654
2654
|
c(() => {
|
|
2655
2655
|
if (f.current) {
|
|
2656
2656
|
f.current = !1;
|
|
@@ -2676,7 +2676,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2676
2676
|
inputRange: [0, 1],
|
|
2677
2677
|
outputRange: [o.cardBgColor, o.accentBgColor]
|
|
2678
2678
|
});
|
|
2679
|
-
return /* @__PURE__ */
|
|
2679
|
+
return /* @__PURE__ */ j(C, {
|
|
2680
2680
|
ref: a,
|
|
2681
2681
|
disabled: n,
|
|
2682
2682
|
accessibilityRole: "radio",
|
|
@@ -2689,10 +2689,10 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2689
2689
|
},
|
|
2690
2690
|
style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
|
|
2691
2691
|
...i,
|
|
2692
|
-
children: /* @__PURE__ */
|
|
2692
|
+
children: /* @__PURE__ */ j(m.View, {
|
|
2693
2693
|
style: {
|
|
2694
|
-
width:
|
|
2695
|
-
height:
|
|
2694
|
+
width: gt,
|
|
2695
|
+
height: gt,
|
|
2696
2696
|
alignItems: "center",
|
|
2697
2697
|
justifyContent: "center",
|
|
2698
2698
|
borderRadius: o.radiusPill,
|
|
@@ -2700,9 +2700,9 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2700
2700
|
borderColor: h,
|
|
2701
2701
|
backgroundColor: g
|
|
2702
2702
|
},
|
|
2703
|
-
children: /* @__PURE__ */
|
|
2704
|
-
width:
|
|
2705
|
-
height:
|
|
2703
|
+
children: /* @__PURE__ */ j(m.View, { style: {
|
|
2704
|
+
width: _t,
|
|
2705
|
+
height: _t,
|
|
2706
2706
|
borderRadius: o.radiusPill,
|
|
2707
2707
|
backgroundColor: "#fff",
|
|
2708
2708
|
opacity: u
|
|
@@ -2712,29 +2712,29 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
2712
2712
|
});
|
|
2713
2713
|
//#endregion
|
|
2714
2714
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
2715
|
-
function
|
|
2715
|
+
function yt(e, t) {
|
|
2716
2716
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
2717
2717
|
if (!n) return e;
|
|
2718
2718
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
2719
2719
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
2720
2720
|
}
|
|
2721
|
-
var
|
|
2722
|
-
let g =
|
|
2721
|
+
var bt = 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) {
|
|
2722
|
+
let g = B(), _ = d(null);
|
|
2723
2723
|
if (l(h, () => _.current, []), c(() => {
|
|
2724
2724
|
if (!e) return;
|
|
2725
2725
|
let t = requestAnimationFrame(() => _.current?.focus());
|
|
2726
2726
|
return () => cancelAnimationFrame(t);
|
|
2727
2727
|
}, [e]), !e) return null;
|
|
2728
2728
|
let v = !o, y = typeof i == "string" && i.length > 0, b = s ? "transparent" : g.headerbarBgColor, x = s ? "transparent" : g.headerbarShadeColor;
|
|
2729
|
-
return /* @__PURE__ */
|
|
2729
|
+
return /* @__PURE__ */ M(O, {
|
|
2730
2730
|
style: f,
|
|
2731
|
-
children: [/* @__PURE__ */
|
|
2731
|
+
children: [/* @__PURE__ */ M(O, {
|
|
2732
2732
|
style: {
|
|
2733
2733
|
flexDirection: "row",
|
|
2734
2734
|
alignItems: "center",
|
|
2735
2735
|
gap: g.space1
|
|
2736
2736
|
},
|
|
2737
|
-
children: [/* @__PURE__ */
|
|
2737
|
+
children: [/* @__PURE__ */ M(O, {
|
|
2738
2738
|
style: {
|
|
2739
2739
|
flex: 1,
|
|
2740
2740
|
flexDirection: "row",
|
|
@@ -2748,7 +2748,7 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2748
2748
|
opacity: v ? g.opacityDisabled : 1
|
|
2749
2749
|
},
|
|
2750
2750
|
children: [
|
|
2751
|
-
/* @__PURE__ */
|
|
2751
|
+
/* @__PURE__ */ j(E, {
|
|
2752
2752
|
accessibilityElementsHidden: !0,
|
|
2753
2753
|
importantForAccessibility: "no",
|
|
2754
2754
|
style: {
|
|
@@ -2757,12 +2757,12 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2757
2757
|
},
|
|
2758
2758
|
children: "🔍"
|
|
2759
2759
|
}),
|
|
2760
|
-
/* @__PURE__ */
|
|
2760
|
+
/* @__PURE__ */ j(D, {
|
|
2761
2761
|
ref: _,
|
|
2762
2762
|
editable: o,
|
|
2763
2763
|
value: i,
|
|
2764
2764
|
placeholder: a,
|
|
2765
|
-
placeholderTextColor:
|
|
2765
|
+
placeholderTextColor: yt(g.windowFgColor, g.opacityDim),
|
|
2766
2766
|
style: [{
|
|
2767
2767
|
flex: 1,
|
|
2768
2768
|
padding: 0,
|
|
@@ -2773,7 +2773,7 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2773
2773
|
}, p],
|
|
2774
2774
|
...m
|
|
2775
2775
|
}),
|
|
2776
|
-
y && /* @__PURE__ */
|
|
2776
|
+
y && /* @__PURE__ */ j(C, {
|
|
2777
2777
|
accessibilityRole: "button",
|
|
2778
2778
|
accessibilityLabel: "Clear search",
|
|
2779
2779
|
disabled: v,
|
|
@@ -2790,7 +2790,7 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2790
2790
|
opacity: v ? g.opacityDisabled : 1,
|
|
2791
2791
|
backgroundColor: e ? g.activeOverlay : "transparent"
|
|
2792
2792
|
}),
|
|
2793
|
-
children: /* @__PURE__ */
|
|
2793
|
+
children: /* @__PURE__ */ j(E, {
|
|
2794
2794
|
style: {
|
|
2795
2795
|
fontSize: g.fontSizeBody,
|
|
2796
2796
|
color: g.windowFgColor
|
|
@@ -2799,12 +2799,12 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2799
2799
|
})
|
|
2800
2800
|
})
|
|
2801
2801
|
]
|
|
2802
|
-
}), t && /* @__PURE__ */
|
|
2802
|
+
}), t && /* @__PURE__ */ j(C, {
|
|
2803
2803
|
accessibilityRole: "button",
|
|
2804
2804
|
accessibilityLabel: u,
|
|
2805
2805
|
onPress: t,
|
|
2806
2806
|
hitSlop: 8,
|
|
2807
|
-
children: /* @__PURE__ */
|
|
2807
|
+
children: /* @__PURE__ */ j(E, {
|
|
2808
2808
|
style: {
|
|
2809
2809
|
fontFamily: g.fontFamily,
|
|
2810
2810
|
fontSize: g.fontSizeBody,
|
|
@@ -2813,7 +2813,7 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2813
2813
|
children: u
|
|
2814
2814
|
})
|
|
2815
2815
|
})]
|
|
2816
|
-
}), r && /* @__PURE__ */
|
|
2816
|
+
}), r && /* @__PURE__ */ j(O, {
|
|
2817
2817
|
style: {
|
|
2818
2818
|
flexDirection: "row",
|
|
2819
2819
|
flexWrap: "wrap",
|
|
@@ -2830,32 +2830,32 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
2830
2830
|
});
|
|
2831
2831
|
//#endregion
|
|
2832
2832
|
//#region src/components/Sidebar/filterUtils.ts
|
|
2833
|
-
function
|
|
2833
|
+
function xt(t, n) {
|
|
2834
2834
|
let r = 0;
|
|
2835
2835
|
return e.forEach(t, (e) => {
|
|
2836
2836
|
if (!a(e)) return;
|
|
2837
2837
|
let t = e.props;
|
|
2838
|
-
typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r +=
|
|
2838
|
+
typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += xt(t.children, n));
|
|
2839
2839
|
}), r;
|
|
2840
2840
|
}
|
|
2841
|
-
function
|
|
2841
|
+
function St(e, t) {
|
|
2842
2842
|
if (!t || !a(e)) return !0;
|
|
2843
2843
|
let n = e.props;
|
|
2844
|
-
return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ?
|
|
2844
|
+
return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? xt(n.children, t) > 0 : !0;
|
|
2845
2845
|
}
|
|
2846
2846
|
//#endregion
|
|
2847
2847
|
//#region src/components/Sidebar/Sidebar.tsx
|
|
2848
|
-
var
|
|
2849
|
-
function
|
|
2850
|
-
return s(
|
|
2848
|
+
var K = r(!1);
|
|
2849
|
+
function Ct() {
|
|
2850
|
+
return s(K);
|
|
2851
2851
|
}
|
|
2852
|
-
var
|
|
2853
|
-
let c =
|
|
2854
|
-
return /* @__PURE__ */
|
|
2852
|
+
var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
|
|
2853
|
+
let c = B(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => St(e, i)), d = !l || u.length > 0;
|
|
2854
|
+
return /* @__PURE__ */ j(K.Provider, {
|
|
2855
2855
|
value: r,
|
|
2856
|
-
children: /* @__PURE__ */
|
|
2856
|
+
children: /* @__PURE__ */ j(q.Provider, {
|
|
2857
2857
|
value: i,
|
|
2858
|
-
children: /* @__PURE__ */
|
|
2858
|
+
children: /* @__PURE__ */ j(O, {
|
|
2859
2859
|
ref: s,
|
|
2860
2860
|
style: [{
|
|
2861
2861
|
flexShrink: 0,
|
|
@@ -2865,9 +2865,9 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2865
2865
|
borderRightColor: c.headerbarBorderColor
|
|
2866
2866
|
}, a],
|
|
2867
2867
|
...o,
|
|
2868
|
-
children: /* @__PURE__ */
|
|
2868
|
+
children: /* @__PURE__ */ j(w, {
|
|
2869
2869
|
contentContainerStyle: { padding: c.space1 },
|
|
2870
|
-
children: l && !d ? /* @__PURE__ */
|
|
2870
|
+
children: l && !d ? /* @__PURE__ */ j(H, {
|
|
2871
2871
|
variant: "caption",
|
|
2872
2872
|
color: "dim",
|
|
2873
2873
|
style: {
|
|
@@ -2875,7 +2875,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2875
2875
|
padding: c.space4
|
|
2876
2876
|
},
|
|
2877
2877
|
children: "No items match your search."
|
|
2878
|
-
}) : u.map((e, n) => /* @__PURE__ */
|
|
2878
|
+
}) : u.map((e, n) => /* @__PURE__ */ M(t, { children: [n > 0 && /* @__PURE__ */ j(Ye, {
|
|
2879
2879
|
testID: "sidebar-separator",
|
|
2880
2880
|
style: { marginVertical: c.space1 }
|
|
2881
2881
|
}), e] }, n))
|
|
@@ -2883,9 +2883,9 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2883
2883
|
})
|
|
2884
2884
|
})
|
|
2885
2885
|
});
|
|
2886
|
-
}),
|
|
2887
|
-
let l =
|
|
2888
|
-
return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */
|
|
2886
|
+
}), Tt = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
|
|
2887
|
+
let l = B(), u = Ct(), d = s(q);
|
|
2888
|
+
return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ M(C, {
|
|
2889
2889
|
ref: c,
|
|
2890
2890
|
disabled: i,
|
|
2891
2891
|
accessibilityRole: "button",
|
|
@@ -2913,14 +2913,14 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2913
2913
|
],
|
|
2914
2914
|
...o,
|
|
2915
2915
|
children: [
|
|
2916
|
-
t && /* @__PURE__ */
|
|
2916
|
+
t && /* @__PURE__ */ j(O, {
|
|
2917
2917
|
style: {
|
|
2918
2918
|
flexShrink: 0,
|
|
2919
2919
|
opacity: n ? 1 : .85
|
|
2920
2920
|
},
|
|
2921
2921
|
children: t
|
|
2922
2922
|
}),
|
|
2923
|
-
!u && /* @__PURE__ */
|
|
2923
|
+
!u && /* @__PURE__ */ j(H, {
|
|
2924
2924
|
numberOfLines: 1,
|
|
2925
2925
|
ellipsizeMode: "tail",
|
|
2926
2926
|
style: {
|
|
@@ -2931,22 +2931,22 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2931
2931
|
},
|
|
2932
2932
|
children: e
|
|
2933
2933
|
}),
|
|
2934
|
-
!u && r && /* @__PURE__ */
|
|
2934
|
+
!u && r && /* @__PURE__ */ j(O, {
|
|
2935
2935
|
style: { flexShrink: 0 },
|
|
2936
2936
|
children: r
|
|
2937
2937
|
})
|
|
2938
2938
|
]
|
|
2939
2939
|
});
|
|
2940
|
-
}),
|
|
2941
|
-
let p =
|
|
2940
|
+
}), Et = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
|
|
2941
|
+
let p = B(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = Ct(), y = s(q), b = (e) => {
|
|
2942
2942
|
g || h(e), a?.(e);
|
|
2943
2943
|
};
|
|
2944
2944
|
if (l(d, () => ({
|
|
2945
2945
|
expand: () => b(!0),
|
|
2946
2946
|
collapse: () => b(!1),
|
|
2947
2947
|
toggle: () => b(!_)
|
|
2948
|
-
})), !(y.length === 0 ||
|
|
2949
|
-
let x = v ? !0 : _,
|
|
2948
|
+
})), !(y.length === 0 || xt(o, y) > 0)) return null;
|
|
2949
|
+
let x = v ? !0 : _, S = !v && !!(e || t), w = (e || t) && /* @__PURE__ */ M(O, {
|
|
2950
2950
|
style: {
|
|
2951
2951
|
flexDirection: "row",
|
|
2952
2952
|
alignItems: "center",
|
|
@@ -2957,21 +2957,21 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2957
2957
|
marginBottom: 2
|
|
2958
2958
|
},
|
|
2959
2959
|
children: [
|
|
2960
|
-
t && /* @__PURE__ */
|
|
2960
|
+
t && /* @__PURE__ */ j(O, {
|
|
2961
2961
|
style: {
|
|
2962
2962
|
flexShrink: 0,
|
|
2963
2963
|
opacity: .7
|
|
2964
2964
|
},
|
|
2965
2965
|
children: t
|
|
2966
2966
|
}),
|
|
2967
|
-
e && /* @__PURE__ */
|
|
2967
|
+
e && /* @__PURE__ */ j(H, {
|
|
2968
2968
|
variant: "caption-heading",
|
|
2969
2969
|
color: "dim",
|
|
2970
2970
|
style: { flex: 1 },
|
|
2971
2971
|
numberOfLines: 1,
|
|
2972
2972
|
children: e
|
|
2973
2973
|
}),
|
|
2974
|
-
n && /* @__PURE__ */
|
|
2974
|
+
n && /* @__PURE__ */ j(H, {
|
|
2975
2975
|
variant: "caption",
|
|
2976
2976
|
color: "dim",
|
|
2977
2977
|
style: { flexShrink: 0 },
|
|
@@ -2979,16 +2979,16 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2979
2979
|
})
|
|
2980
2980
|
]
|
|
2981
2981
|
});
|
|
2982
|
-
return /* @__PURE__ */
|
|
2982
|
+
return /* @__PURE__ */ M(O, {
|
|
2983
2983
|
style: c,
|
|
2984
2984
|
...u,
|
|
2985
|
-
children: [
|
|
2985
|
+
children: [S && (n ? /* @__PURE__ */ j(C, {
|
|
2986
2986
|
accessibilityRole: "button",
|
|
2987
2987
|
accessibilityState: { expanded: _ },
|
|
2988
2988
|
accessibilityLabel: e,
|
|
2989
2989
|
onPress: () => b(!_),
|
|
2990
2990
|
children: w
|
|
2991
|
-
}) : w), /* @__PURE__ */
|
|
2991
|
+
}) : w), /* @__PURE__ */ j(O, {
|
|
2992
2992
|
accessible: !0,
|
|
2993
2993
|
accessibilityRole: "list",
|
|
2994
2994
|
style: {
|
|
@@ -2998,8 +2998,8 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
2998
2998
|
children: o
|
|
2999
2999
|
})]
|
|
3000
3000
|
});
|
|
3001
|
-
}),
|
|
3002
|
-
let l =
|
|
3001
|
+
}), Dt = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
|
|
3002
|
+
let l = B(), u = V(), f = d(new m.Value(1)).current, p = a && !u;
|
|
3003
3003
|
if (c(() => {
|
|
3004
3004
|
if (!p) {
|
|
3005
3005
|
f.setValue(1);
|
|
@@ -3023,11 +3023,11 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3023
3023
|
l.easingDefault
|
|
3024
3024
|
]), e === "text") {
|
|
3025
3025
|
let e = Math.max(1, Math.floor(i));
|
|
3026
|
-
return /* @__PURE__ */
|
|
3026
|
+
return /* @__PURE__ */ j(O, {
|
|
3027
3027
|
accessible: !1,
|
|
3028
3028
|
style: [{ gap: 8 }, o],
|
|
3029
3029
|
...s,
|
|
3030
|
-
children: Array.from({ length: e }, (t, n) => /* @__PURE__ */
|
|
3030
|
+
children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ j(m.View, { style: {
|
|
3031
3031
|
width: n === e - 1 ? "60%" : "100%",
|
|
3032
3032
|
height: 12,
|
|
3033
3033
|
borderRadius: l.radiusPill,
|
|
@@ -3045,7 +3045,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3045
3045
|
height: n,
|
|
3046
3046
|
borderRadius: l.radiusMd
|
|
3047
3047
|
};
|
|
3048
|
-
return /* @__PURE__ */
|
|
3048
|
+
return /* @__PURE__ */ j(m.View, {
|
|
3049
3049
|
accessible: !1,
|
|
3050
3050
|
style: [
|
|
3051
3051
|
h,
|
|
@@ -3057,7 +3057,166 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3057
3057
|
],
|
|
3058
3058
|
...s
|
|
3059
3059
|
});
|
|
3060
|
-
},
|
|
3060
|
+
}, Ot = 6, J = 22, Y = 4;
|
|
3061
|
+
function X(e, t, n) {
|
|
3062
|
+
return Math.min(n, Math.max(t, e));
|
|
3063
|
+
}
|
|
3064
|
+
function Z(e, t, n, r) {
|
|
3065
|
+
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
3066
|
+
}
|
|
3067
|
+
function kt(e) {
|
|
3068
|
+
let t = e.toString(), n = t.indexOf(".");
|
|
3069
|
+
return n === -1 ? 0 : t.length - n - 1;
|
|
3070
|
+
}
|
|
3071
|
+
var At = ({ 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 }) => {
|
|
3072
|
+
let m = B(), [h, g] = f(0), [_, v] = f({}), y = kt(i), b = X(e, n, r), S = (b - n) / (r - n) * 100, C = o((e) => {
|
|
3073
|
+
g(e.nativeEvent.layout.width), d?.(e);
|
|
3074
|
+
}, [d]), w = o((e) => {
|
|
3075
|
+
a || h <= 0 || t(X(Z(e / h * (r - n) + n, n, i, y), n, r));
|
|
3076
|
+
}, [
|
|
3077
|
+
a,
|
|
3078
|
+
h,
|
|
3079
|
+
n,
|
|
3080
|
+
r,
|
|
3081
|
+
i,
|
|
3082
|
+
y,
|
|
3083
|
+
t
|
|
3084
|
+
]), T = u(() => x.create({
|
|
3085
|
+
onStartShouldSetPanResponder: () => !a,
|
|
3086
|
+
onMoveShouldSetPanResponder: () => !a,
|
|
3087
|
+
onPanResponderGrant: (e) => w(e.nativeEvent.locationX),
|
|
3088
|
+
onPanResponderMove: (e) => w(e.nativeEvent.locationX)
|
|
3089
|
+
}), [a, w]), D = o((o) => {
|
|
3090
|
+
if (!a) switch (o.nativeEvent.actionName) {
|
|
3091
|
+
case "increment":
|
|
3092
|
+
t(X(Z(e + i, n, i, y), n, r));
|
|
3093
|
+
break;
|
|
3094
|
+
case "decrement":
|
|
3095
|
+
t(X(Z(e - i, n, i, y), n, r));
|
|
3096
|
+
break;
|
|
3097
|
+
}
|
|
3098
|
+
}, [
|
|
3099
|
+
a,
|
|
3100
|
+
e,
|
|
3101
|
+
i,
|
|
3102
|
+
n,
|
|
3103
|
+
r,
|
|
3104
|
+
y,
|
|
3105
|
+
t
|
|
3106
|
+
]), k = s && s.length > 0, A = k && s.some((e) => e.label), N = S / 100 * h - J / 2;
|
|
3107
|
+
return /* @__PURE__ */ M(O, {
|
|
3108
|
+
style: [{
|
|
3109
|
+
width: "100%",
|
|
3110
|
+
paddingTop: 10,
|
|
3111
|
+
paddingBottom: A ? 0 : 10
|
|
3112
|
+
}, l],
|
|
3113
|
+
...p,
|
|
3114
|
+
children: [/* @__PURE__ */ M(O, {
|
|
3115
|
+
onLayout: C,
|
|
3116
|
+
accessible: !0,
|
|
3117
|
+
accessibilityRole: "adjustable",
|
|
3118
|
+
accessibilityLabel: c,
|
|
3119
|
+
accessibilityValue: {
|
|
3120
|
+
min: n,
|
|
3121
|
+
max: r,
|
|
3122
|
+
now: b
|
|
3123
|
+
},
|
|
3124
|
+
accessibilityState: { disabled: a },
|
|
3125
|
+
accessibilityActions: [{
|
|
3126
|
+
name: "increment",
|
|
3127
|
+
label: "increment"
|
|
3128
|
+
}, {
|
|
3129
|
+
name: "decrement",
|
|
3130
|
+
label: "decrement"
|
|
3131
|
+
}],
|
|
3132
|
+
onAccessibilityAction: D,
|
|
3133
|
+
style: {
|
|
3134
|
+
justifyContent: "center",
|
|
3135
|
+
height: J,
|
|
3136
|
+
opacity: a ? m.opacityDisabled : 1
|
|
3137
|
+
},
|
|
3138
|
+
...T.panHandlers,
|
|
3139
|
+
children: [
|
|
3140
|
+
/* @__PURE__ */ j(O, {
|
|
3141
|
+
pointerEvents: "none",
|
|
3142
|
+
style: {
|
|
3143
|
+
width: "100%",
|
|
3144
|
+
height: Ot,
|
|
3145
|
+
borderRadius: m.radiusPill,
|
|
3146
|
+
backgroundColor: m.cardShadeColor,
|
|
3147
|
+
overflow: "hidden"
|
|
3148
|
+
},
|
|
3149
|
+
children: /* @__PURE__ */ j(O, { style: {
|
|
3150
|
+
height: "100%",
|
|
3151
|
+
width: `${S}%`,
|
|
3152
|
+
borderRadius: m.radiusPill,
|
|
3153
|
+
backgroundColor: m.accentBgColor
|
|
3154
|
+
} })
|
|
3155
|
+
}),
|
|
3156
|
+
/* @__PURE__ */ j(O, {
|
|
3157
|
+
pointerEvents: "none",
|
|
3158
|
+
style: {
|
|
3159
|
+
position: "absolute",
|
|
3160
|
+
left: N,
|
|
3161
|
+
width: J,
|
|
3162
|
+
height: J,
|
|
3163
|
+
borderRadius: m.radiusPill,
|
|
3164
|
+
backgroundColor: m.accentBgColor,
|
|
3165
|
+
borderWidth: 2,
|
|
3166
|
+
borderColor: m.windowBgColor,
|
|
3167
|
+
shadowColor: "#000",
|
|
3168
|
+
shadowOffset: {
|
|
3169
|
+
width: 0,
|
|
3170
|
+
height: 1
|
|
3171
|
+
},
|
|
3172
|
+
shadowOpacity: .25,
|
|
3173
|
+
shadowRadius: 3,
|
|
3174
|
+
elevation: 3
|
|
3175
|
+
}
|
|
3176
|
+
}),
|
|
3177
|
+
k && s.map((e) => /* @__PURE__ */ j(O, {
|
|
3178
|
+
pointerEvents: "none",
|
|
3179
|
+
importantForAccessibility: "no",
|
|
3180
|
+
style: {
|
|
3181
|
+
position: "absolute",
|
|
3182
|
+
left: (X(e.value, n, r) - n) / (r - n) * 100 / 100 * h - Y / 2,
|
|
3183
|
+
width: Y,
|
|
3184
|
+
height: Y,
|
|
3185
|
+
borderRadius: Y / 2,
|
|
3186
|
+
backgroundColor: m.windowBgColor
|
|
3187
|
+
}
|
|
3188
|
+
}, e.value))
|
|
3189
|
+
]
|
|
3190
|
+
}), A && /* @__PURE__ */ j(O, {
|
|
3191
|
+
importantForAccessibility: "no",
|
|
3192
|
+
style: {
|
|
3193
|
+
position: "relative",
|
|
3194
|
+
width: "100%",
|
|
3195
|
+
height: 20,
|
|
3196
|
+
marginTop: 6
|
|
3197
|
+
},
|
|
3198
|
+
children: s.map((e) => /* @__PURE__ */ j(E, {
|
|
3199
|
+
numberOfLines: 1,
|
|
3200
|
+
onLayout: (t) => {
|
|
3201
|
+
let { layout: { width: n } } = t.nativeEvent;
|
|
3202
|
+
v((t) => t[e.value] === n ? t : {
|
|
3203
|
+
...t,
|
|
3204
|
+
[e.value]: n
|
|
3205
|
+
});
|
|
3206
|
+
},
|
|
3207
|
+
style: {
|
|
3208
|
+
position: "absolute",
|
|
3209
|
+
left: (X(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
|
|
3210
|
+
fontFamily: m.fontFamily,
|
|
3211
|
+
fontSize: m.fontSizeCaption,
|
|
3212
|
+
color: m.windowFgColor,
|
|
3213
|
+
opacity: m.opacityDim
|
|
3214
|
+
},
|
|
3215
|
+
children: e.label
|
|
3216
|
+
}, e.value))
|
|
3217
|
+
})]
|
|
3218
|
+
});
|
|
3219
|
+
}, jt = {
|
|
3061
3220
|
sm: {
|
|
3062
3221
|
dimension: 16,
|
|
3063
3222
|
borderWidth: 2
|
|
@@ -3070,8 +3229,8 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3070
3229
|
dimension: 36,
|
|
3071
3230
|
borderWidth: 3
|
|
3072
3231
|
}
|
|
3073
|
-
},
|
|
3074
|
-
let i =
|
|
3232
|
+
}, Mt = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
|
|
3233
|
+
let i = B(), a = R(), o = V(), s = d(new m.Value(0)).current;
|
|
3075
3234
|
c(() => {
|
|
3076
3235
|
s.setValue(0);
|
|
3077
3236
|
let e = m.loop(m.timing(s, {
|
|
@@ -3085,8 +3244,8 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3085
3244
|
let l = s.interpolate({
|
|
3086
3245
|
inputRange: [0, 1],
|
|
3087
3246
|
outputRange: ["0deg", "360deg"]
|
|
3088
|
-
}), { dimension: u, borderWidth: f } =
|
|
3089
|
-
return /* @__PURE__ */
|
|
3247
|
+
}), { dimension: u, borderWidth: f } = jt[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
|
|
3248
|
+
return /* @__PURE__ */ j(m.View, {
|
|
3090
3249
|
accessible: !0,
|
|
3091
3250
|
accessibilityRole: "progressbar",
|
|
3092
3251
|
accessibilityLabel: t || void 0,
|
|
@@ -3103,8 +3262,8 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3103
3262
|
}, n],
|
|
3104
3263
|
...r
|
|
3105
3264
|
});
|
|
3106
|
-
},
|
|
3107
|
-
let o =
|
|
3265
|
+
}, Nt = 56, Pt = 28, Ft = 20, It = 3, Lt = 28, Rt = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
|
|
3266
|
+
let o = B(), s = R(), l = z(), u = d(new m.Value(+!!e)).current, f = d(!0);
|
|
3108
3267
|
c(() => {
|
|
3109
3268
|
if (f.current) {
|
|
3110
3269
|
f.current = !1;
|
|
@@ -3130,7 +3289,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3130
3289
|
inputRange: [0, 1],
|
|
3131
3290
|
outputRange: [o.borderSubtle, o.accentBgColor]
|
|
3132
3291
|
});
|
|
3133
|
-
return /* @__PURE__ */
|
|
3292
|
+
return /* @__PURE__ */ j(C, {
|
|
3134
3293
|
ref: a,
|
|
3135
3294
|
disabled: n,
|
|
3136
3295
|
accessibilityRole: "switch",
|
|
@@ -3141,26 +3300,26 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3141
3300
|
onPress: () => t?.(!e),
|
|
3142
3301
|
style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
|
|
3143
3302
|
...i,
|
|
3144
|
-
children: /* @__PURE__ */
|
|
3303
|
+
children: /* @__PURE__ */ j(m.View, {
|
|
3145
3304
|
style: {
|
|
3146
|
-
width:
|
|
3147
|
-
height:
|
|
3305
|
+
width: Nt,
|
|
3306
|
+
height: Pt,
|
|
3148
3307
|
borderRadius: o.radiusPill,
|
|
3149
3308
|
borderWidth: l === "more" ? 2 : 1,
|
|
3150
3309
|
borderColor: v,
|
|
3151
3310
|
backgroundColor: g
|
|
3152
3311
|
},
|
|
3153
|
-
children: /* @__PURE__ */
|
|
3312
|
+
children: /* @__PURE__ */ j(m.View, { style: [{
|
|
3154
3313
|
position: "absolute",
|
|
3155
|
-
top:
|
|
3156
|
-
left:
|
|
3157
|
-
width:
|
|
3158
|
-
height:
|
|
3314
|
+
top: It,
|
|
3315
|
+
left: It,
|
|
3316
|
+
width: Ft,
|
|
3317
|
+
height: Ft,
|
|
3159
3318
|
borderRadius: o.radiusPill,
|
|
3160
3319
|
backgroundColor: e ? "#fff" : h,
|
|
3161
3320
|
transform: [{ translateX: u.interpolate({
|
|
3162
3321
|
inputRange: [0, 1],
|
|
3163
|
-
outputRange: [0,
|
|
3322
|
+
outputRange: [0, Lt]
|
|
3164
3323
|
}) }]
|
|
3165
3324
|
}, l !== "more" && {
|
|
3166
3325
|
shadowColor: "#000",
|
|
@@ -3174,9 +3333,9 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3174
3333
|
}] })
|
|
3175
3334
|
})
|
|
3176
3335
|
});
|
|
3177
|
-
}),
|
|
3178
|
-
let o =
|
|
3179
|
-
return /* @__PURE__ */
|
|
3336
|
+
}), zt = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
|
|
3337
|
+
let o = B();
|
|
3338
|
+
return /* @__PURE__ */ j(w, {
|
|
3180
3339
|
ref: a,
|
|
3181
3340
|
horizontal: !0,
|
|
3182
3341
|
showsHorizontalScrollIndicator: !1,
|
|
@@ -3200,9 +3359,9 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3200
3359
|
...i,
|
|
3201
3360
|
children: e
|
|
3202
3361
|
});
|
|
3203
|
-
}),
|
|
3204
|
-
let l =
|
|
3205
|
-
return /* @__PURE__ */
|
|
3362
|
+
}), Bt = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
|
|
3363
|
+
let l = B();
|
|
3364
|
+
return /* @__PURE__ */ M(C, {
|
|
3206
3365
|
ref: c,
|
|
3207
3366
|
disabled: o,
|
|
3208
3367
|
accessibilityRole: "tab",
|
|
@@ -3226,11 +3385,11 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3226
3385
|
}),
|
|
3227
3386
|
...s,
|
|
3228
3387
|
children: [
|
|
3229
|
-
t && /* @__PURE__ */
|
|
3388
|
+
t && /* @__PURE__ */ j(O, {
|
|
3230
3389
|
style: { flexShrink: 0 },
|
|
3231
3390
|
children: t
|
|
3232
3391
|
}),
|
|
3233
|
-
/* @__PURE__ */
|
|
3392
|
+
/* @__PURE__ */ j(E, {
|
|
3234
3393
|
numberOfLines: 1,
|
|
3235
3394
|
ellipsizeMode: "tail",
|
|
3236
3395
|
style: {
|
|
@@ -3241,7 +3400,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3241
3400
|
},
|
|
3242
3401
|
children: e
|
|
3243
3402
|
}),
|
|
3244
|
-
a !== void 0 && /* @__PURE__ */
|
|
3403
|
+
a !== void 0 && /* @__PURE__ */ j(O, {
|
|
3245
3404
|
style: {
|
|
3246
3405
|
flexShrink: 0,
|
|
3247
3406
|
minWidth: 18,
|
|
@@ -3252,7 +3411,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3252
3411
|
justifyContent: "center",
|
|
3253
3412
|
backgroundColor: l.accentBgColor
|
|
3254
3413
|
},
|
|
3255
|
-
children: /* @__PURE__ */
|
|
3414
|
+
children: /* @__PURE__ */ j(E, {
|
|
3256
3415
|
style: {
|
|
3257
3416
|
fontFamily: l.fontFamily,
|
|
3258
3417
|
fontSize: 11,
|
|
@@ -3262,7 +3421,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3262
3421
|
children: a > 99 ? "99+" : a
|
|
3263
3422
|
})
|
|
3264
3423
|
}),
|
|
3265
|
-
r && /* @__PURE__ */
|
|
3424
|
+
r && /* @__PURE__ */ j(C, {
|
|
3266
3425
|
accessibilityRole: "button",
|
|
3267
3426
|
accessibilityLabel: i,
|
|
3268
3427
|
hitSlop: 8,
|
|
@@ -3276,7 +3435,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3276
3435
|
borderRadius: l.radiusSm,
|
|
3277
3436
|
backgroundColor: e ? l.activeOverlay : "transparent"
|
|
3278
3437
|
}),
|
|
3279
|
-
children: /* @__PURE__ */
|
|
3438
|
+
children: /* @__PURE__ */ j(E, {
|
|
3280
3439
|
style: {
|
|
3281
3440
|
fontFamily: l.fontFamily,
|
|
3282
3441
|
fontSize: 15,
|
|
@@ -3286,7 +3445,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3286
3445
|
children: "×"
|
|
3287
3446
|
})
|
|
3288
3447
|
}),
|
|
3289
|
-
n && /* @__PURE__ */
|
|
3448
|
+
n && /* @__PURE__ */ j(O, {
|
|
3290
3449
|
pointerEvents: "none",
|
|
3291
3450
|
style: {
|
|
3292
3451
|
position: "absolute",
|
|
@@ -3300,8 +3459,8 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3300
3459
|
})
|
|
3301
3460
|
]
|
|
3302
3461
|
});
|
|
3303
|
-
}),
|
|
3304
|
-
return /* @__PURE__ */
|
|
3462
|
+
}), Vt = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
|
|
3463
|
+
return /* @__PURE__ */ j(O, {
|
|
3305
3464
|
ref: i,
|
|
3306
3465
|
style: [{ display: e ? "flex" : "none" }, t],
|
|
3307
3466
|
...r,
|
|
@@ -3310,31 +3469,31 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
|
|
|
3310
3469
|
});
|
|
3311
3470
|
//#endregion
|
|
3312
3471
|
//#region src/components/TextField/TextField.tsx
|
|
3313
|
-
function
|
|
3472
|
+
function Ht(e, t) {
|
|
3314
3473
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
3315
3474
|
if (!n) return e;
|
|
3316
3475
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
3317
3476
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
3318
3477
|
}
|
|
3319
|
-
var
|
|
3320
|
-
let p =
|
|
3321
|
-
return /* @__PURE__ */
|
|
3478
|
+
var Ut = 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) {
|
|
3479
|
+
let p = B(), m = z(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
|
|
3480
|
+
return /* @__PURE__ */ M(O, {
|
|
3322
3481
|
style: [{
|
|
3323
3482
|
gap: p.space1,
|
|
3324
3483
|
opacity: _ ? p.opacityDisabled : 1
|
|
3325
3484
|
}, r],
|
|
3326
3485
|
children: [
|
|
3327
|
-
e && /* @__PURE__ */
|
|
3486
|
+
e && /* @__PURE__ */ j(H, {
|
|
3328
3487
|
variant: "body",
|
|
3329
3488
|
style: { fontWeight: String(p.fontWeightSemibold) },
|
|
3330
3489
|
children: e
|
|
3331
3490
|
}),
|
|
3332
|
-
/* @__PURE__ */
|
|
3491
|
+
/* @__PURE__ */ j(D, {
|
|
3333
3492
|
ref: d,
|
|
3334
3493
|
editable: a,
|
|
3335
3494
|
accessibilityLabel: c ?? e,
|
|
3336
3495
|
accessibilityHint: l ?? v,
|
|
3337
|
-
placeholderTextColor:
|
|
3496
|
+
placeholderTextColor: Ht(p.windowFgColor, p.opacityDim),
|
|
3338
3497
|
onFocus: (e) => {
|
|
3339
3498
|
g(!0), o?.(e);
|
|
3340
3499
|
},
|
|
@@ -3356,7 +3515,7 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3356
3515
|
}, i],
|
|
3357
3516
|
...u
|
|
3358
3517
|
}),
|
|
3359
|
-
v && /* @__PURE__ */
|
|
3518
|
+
v && /* @__PURE__ */ j(H, {
|
|
3360
3519
|
variant: "caption",
|
|
3361
3520
|
style: {
|
|
3362
3521
|
color: n ? p.errorColor : p.windowFgColor,
|
|
@@ -3366,8 +3525,8 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3366
3525
|
})
|
|
3367
3526
|
]
|
|
3368
3527
|
});
|
|
3369
|
-
}),
|
|
3370
|
-
let u =
|
|
3528
|
+
}), Wt = m.createAnimatedComponent(C), Gt = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
|
|
3529
|
+
let u = B(), f = R(), p = V(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
|
|
3371
3530
|
h.current &&= (clearTimeout(h.current), null);
|
|
3372
3531
|
}, []), x = o((e) => {
|
|
3373
3532
|
e <= 0 || !n || (b(), v.current = Date.now(), h.current = setTimeout(() => n(), e));
|
|
@@ -3394,14 +3553,14 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3394
3553
|
u.durationNormal,
|
|
3395
3554
|
u.easingDefault
|
|
3396
3555
|
]);
|
|
3397
|
-
let
|
|
3556
|
+
let S = () => {
|
|
3398
3557
|
if (h.current) {
|
|
3399
3558
|
let e = Date.now() - v.current;
|
|
3400
3559
|
g.current = Math.max(0, g.current - e), b();
|
|
3401
3560
|
}
|
|
3402
3561
|
}, w = () => {
|
|
3403
3562
|
x(g.current);
|
|
3404
|
-
},
|
|
3563
|
+
}, T = () => {
|
|
3405
3564
|
b(), i?.(), n?.();
|
|
3406
3565
|
}, D = f === "dark" ? {
|
|
3407
3566
|
shadowOpacity: .4,
|
|
@@ -3412,11 +3571,11 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3412
3571
|
shadowRadius: 8,
|
|
3413
3572
|
elevation: 4
|
|
3414
3573
|
};
|
|
3415
|
-
return /* @__PURE__ */
|
|
3574
|
+
return /* @__PURE__ */ M(Wt, {
|
|
3416
3575
|
accessible: !0,
|
|
3417
3576
|
accessibilityRole: "alert",
|
|
3418
3577
|
accessibilityLiveRegion: "polite",
|
|
3419
|
-
onPressIn:
|
|
3578
|
+
onPressIn: S,
|
|
3420
3579
|
onPressOut: w,
|
|
3421
3580
|
style: [{
|
|
3422
3581
|
flexDirection: "row",
|
|
@@ -3446,7 +3605,7 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3446
3605
|
...D
|
|
3447
3606
|
}, s],
|
|
3448
3607
|
...l,
|
|
3449
|
-
children: [/* @__PURE__ */
|
|
3608
|
+
children: [/* @__PURE__ */ j(H, {
|
|
3450
3609
|
variant: "body",
|
|
3451
3610
|
style: {
|
|
3452
3611
|
flex: 1,
|
|
@@ -3454,17 +3613,17 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3454
3613
|
},
|
|
3455
3614
|
numberOfLines: typeof e == "string" ? 2 : void 0,
|
|
3456
3615
|
children: e
|
|
3457
|
-
}), (r || a) && /* @__PURE__ */
|
|
3616
|
+
}), (r || a) && /* @__PURE__ */ M(A, { children: [r && /* @__PURE__ */ j(C, {
|
|
3458
3617
|
accessibilityRole: "button",
|
|
3459
3618
|
accessibilityLabel: r,
|
|
3460
|
-
onPress:
|
|
3619
|
+
onPress: T,
|
|
3461
3620
|
style: ({ pressed: e }) => ({
|
|
3462
3621
|
paddingVertical: 4,
|
|
3463
3622
|
paddingHorizontal: u.space1,
|
|
3464
3623
|
borderRadius: u.radiusSm,
|
|
3465
3624
|
backgroundColor: e ? u.activeOverlay : "transparent"
|
|
3466
3625
|
}),
|
|
3467
|
-
children: /* @__PURE__ */
|
|
3626
|
+
children: /* @__PURE__ */ j(E, {
|
|
3468
3627
|
style: {
|
|
3469
3628
|
fontFamily: u.fontFamily,
|
|
3470
3629
|
fontSize: u.fontSizeBody,
|
|
@@ -3473,7 +3632,7 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3473
3632
|
},
|
|
3474
3633
|
children: r
|
|
3475
3634
|
})
|
|
3476
|
-
}), a && /* @__PURE__ */
|
|
3635
|
+
}), a && /* @__PURE__ */ j(C, {
|
|
3477
3636
|
accessibilityRole: "button",
|
|
3478
3637
|
accessibilityLabel: "Dismiss",
|
|
3479
3638
|
hitSlop: 4,
|
|
@@ -3489,7 +3648,7 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3489
3648
|
opacity: e ? 1 : .55,
|
|
3490
3649
|
backgroundColor: e ? u.activeOverlay : "transparent"
|
|
3491
3650
|
}),
|
|
3492
|
-
children: /* @__PURE__ */
|
|
3651
|
+
children: /* @__PURE__ */ j(E, {
|
|
3493
3652
|
style: {
|
|
3494
3653
|
fontSize: u.fontSizeBody,
|
|
3495
3654
|
color: u.windowFgColor
|
|
@@ -3498,9 +3657,9 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3498
3657
|
})
|
|
3499
3658
|
})] })]
|
|
3500
3659
|
});
|
|
3501
|
-
},
|
|
3502
|
-
let i =
|
|
3503
|
-
return /* @__PURE__ */
|
|
3660
|
+
}, Kt = ({ position: e = "bottom", children: t, style: n, ...r }) => {
|
|
3661
|
+
let i = B();
|
|
3662
|
+
return /* @__PURE__ */ j(O, {
|
|
3504
3663
|
pointerEvents: "box-none",
|
|
3505
3664
|
accessibilityLabel: "Notifications",
|
|
3506
3665
|
style: [
|
|
@@ -3518,8 +3677,8 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
3518
3677
|
...r,
|
|
3519
3678
|
children: t
|
|
3520
3679
|
});
|
|
3521
|
-
}, Q = 6, $ = 8,
|
|
3522
|
-
function
|
|
3680
|
+
}, Q = 6, $ = 8, qt = 5;
|
|
3681
|
+
function Jt(e, t) {
|
|
3523
3682
|
if (e) {
|
|
3524
3683
|
if (typeof e == "function") {
|
|
3525
3684
|
e(t);
|
|
@@ -3528,7 +3687,7 @@ function Bt(e, t) {
|
|
|
3528
3687
|
e.current = t;
|
|
3529
3688
|
}
|
|
3530
3689
|
}
|
|
3531
|
-
function
|
|
3690
|
+
function Yt(e, t, n) {
|
|
3532
3691
|
switch (n) {
|
|
3533
3692
|
case "top": return {
|
|
3534
3693
|
top: e.y - t.height - Q,
|
|
@@ -3548,7 +3707,7 @@ function Vt(e, t, n) {
|
|
|
3548
3707
|
};
|
|
3549
3708
|
}
|
|
3550
3709
|
}
|
|
3551
|
-
function
|
|
3710
|
+
function Xt(e, t, n) {
|
|
3552
3711
|
let { width: r, height: i } = g.get("window"), a = [
|
|
3553
3712
|
n,
|
|
3554
3713
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -3558,30 +3717,30 @@ function Ht(e, t, n) {
|
|
|
3558
3717
|
"right"
|
|
3559
3718
|
];
|
|
3560
3719
|
for (let n of a) {
|
|
3561
|
-
let { top: a, left: o } =
|
|
3720
|
+
let { top: a, left: o } = Yt(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
|
|
3562
3721
|
if (s && c) return {
|
|
3563
3722
|
top: Math.max($, Math.min(a, i - t.height - $)),
|
|
3564
3723
|
left: Math.max($, Math.min(o, r - t.width - $)),
|
|
3565
3724
|
placement: n
|
|
3566
3725
|
};
|
|
3567
3726
|
}
|
|
3568
|
-
let { top: o, left: s } =
|
|
3727
|
+
let { top: o, left: s } = Yt(e, t, n);
|
|
3569
3728
|
return {
|
|
3570
3729
|
top: Math.max($, Math.min(o, i - t.height - $)),
|
|
3571
3730
|
left: Math.max($, Math.min(s, r - t.width - $)),
|
|
3572
3731
|
placement: n
|
|
3573
3732
|
};
|
|
3574
3733
|
}
|
|
3575
|
-
var
|
|
3576
|
-
let a =
|
|
3734
|
+
var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
3735
|
+
let a = B(), s = R(), l = V(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, x] = f(null), S = d(null), C = d(null), w = d(new m.Value(0)).current, E = o(() => {
|
|
3577
3736
|
C.current &&= (clearTimeout(C.current), null);
|
|
3578
|
-
}, []),
|
|
3737
|
+
}, []), D = o(() => {
|
|
3579
3738
|
E(), p(!0);
|
|
3580
|
-
}, [E]),
|
|
3581
|
-
E(), C.current = setTimeout(
|
|
3739
|
+
}, [E]), k = o(() => {
|
|
3740
|
+
E(), C.current = setTimeout(D, r);
|
|
3582
3741
|
}, [
|
|
3583
3742
|
E,
|
|
3584
|
-
|
|
3743
|
+
D,
|
|
3585
3744
|
r
|
|
3586
3745
|
]), N = o(() => {
|
|
3587
3746
|
E(), p(!1);
|
|
@@ -3600,7 +3759,7 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3600
3759
|
});
|
|
3601
3760
|
});
|
|
3602
3761
|
}, [u]), c(() => {
|
|
3603
|
-
!h || !_ || x(
|
|
3762
|
+
!h || !_ || x(Xt(h, _, t));
|
|
3604
3763
|
}, [
|
|
3605
3764
|
h,
|
|
3606
3765
|
_,
|
|
@@ -3608,10 +3767,10 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3608
3767
|
]), c(() => {
|
|
3609
3768
|
if (y) {
|
|
3610
3769
|
if (l) {
|
|
3611
|
-
|
|
3770
|
+
w.setValue(1);
|
|
3612
3771
|
return;
|
|
3613
3772
|
}
|
|
3614
|
-
|
|
3773
|
+
w.setValue(0), m.timing(w, {
|
|
3615
3774
|
toValue: 1,
|
|
3616
3775
|
duration: a.durationFast,
|
|
3617
3776
|
useNativeDriver: !0
|
|
@@ -3620,16 +3779,16 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3620
3779
|
}, [
|
|
3621
3780
|
y,
|
|
3622
3781
|
l,
|
|
3623
|
-
|
|
3782
|
+
w,
|
|
3624
3783
|
a.durationFast
|
|
3625
3784
|
]), c(() => E, [E]);
|
|
3626
|
-
let
|
|
3785
|
+
let ee = (e) => {
|
|
3627
3786
|
let { width: t, height: n } = e.nativeEvent.layout;
|
|
3628
3787
|
v({
|
|
3629
3788
|
width: t,
|
|
3630
3789
|
height: n
|
|
3631
3790
|
});
|
|
3632
|
-
},
|
|
3791
|
+
}, P = s === "dark" ? "#c0bfbc" : "#3d3d3d", te = s === "dark" ? "rgba(0, 0, 0, 0.8)" : "#fff", ne = s === "dark" ? {
|
|
3633
3792
|
shadowOpacity: .4,
|
|
3634
3793
|
shadowRadius: 8,
|
|
3635
3794
|
elevation: 6
|
|
@@ -3637,79 +3796,79 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3637
3796
|
shadowOpacity: .2,
|
|
3638
3797
|
shadowRadius: 8,
|
|
3639
3798
|
elevation: 4
|
|
3640
|
-
},
|
|
3799
|
+
}, F = {
|
|
3641
3800
|
position: "absolute",
|
|
3642
3801
|
width: 0,
|
|
3643
3802
|
height: 0,
|
|
3644
|
-
borderWidth:
|
|
3803
|
+
borderWidth: qt,
|
|
3645
3804
|
borderColor: "transparent"
|
|
3646
|
-
},
|
|
3805
|
+
}, re = (() => {
|
|
3647
3806
|
switch (y?.placement) {
|
|
3648
3807
|
case "top": return {
|
|
3649
|
-
...
|
|
3808
|
+
...F,
|
|
3650
3809
|
top: "100%",
|
|
3651
3810
|
left: "50%",
|
|
3652
3811
|
marginLeft: -5,
|
|
3653
|
-
borderTopColor:
|
|
3812
|
+
borderTopColor: P
|
|
3654
3813
|
};
|
|
3655
3814
|
case "bottom": return {
|
|
3656
|
-
...
|
|
3815
|
+
...F,
|
|
3657
3816
|
bottom: "100%",
|
|
3658
3817
|
left: "50%",
|
|
3659
3818
|
marginLeft: -5,
|
|
3660
|
-
borderBottomColor:
|
|
3819
|
+
borderBottomColor: P
|
|
3661
3820
|
};
|
|
3662
3821
|
case "left": return {
|
|
3663
|
-
...
|
|
3822
|
+
...F,
|
|
3664
3823
|
left: "100%",
|
|
3665
3824
|
top: "50%",
|
|
3666
3825
|
marginTop: -5,
|
|
3667
|
-
borderLeftColor:
|
|
3826
|
+
borderLeftColor: P
|
|
3668
3827
|
};
|
|
3669
3828
|
case "right": return {
|
|
3670
|
-
...
|
|
3829
|
+
...F,
|
|
3671
3830
|
right: "100%",
|
|
3672
3831
|
top: "50%",
|
|
3673
3832
|
marginTop: -5,
|
|
3674
|
-
borderRightColor:
|
|
3833
|
+
borderRightColor: P
|
|
3675
3834
|
};
|
|
3676
3835
|
default: return null;
|
|
3677
3836
|
}
|
|
3678
|
-
})(),
|
|
3679
|
-
return /* @__PURE__ */
|
|
3837
|
+
})(), ie = i.props.ref;
|
|
3838
|
+
return /* @__PURE__ */ M(A, { children: [n(i, {
|
|
3680
3839
|
ref: (e) => {
|
|
3681
|
-
S.current = e,
|
|
3840
|
+
S.current = e, Jt(ie, e);
|
|
3682
3841
|
},
|
|
3683
3842
|
delayLongPress: r,
|
|
3684
3843
|
accessibilityHint: i.props.accessibilityHint ?? e,
|
|
3685
3844
|
onLongPress: (e) => {
|
|
3686
|
-
|
|
3845
|
+
D(), i.props.onLongPress?.(e);
|
|
3687
3846
|
},
|
|
3688
3847
|
onPressOut: (e) => {
|
|
3689
3848
|
N(), i.props.onPressOut?.(e);
|
|
3690
3849
|
},
|
|
3691
3850
|
onHoverIn: (e) => {
|
|
3692
|
-
|
|
3851
|
+
k(), i.props.onHoverIn?.(e);
|
|
3693
3852
|
},
|
|
3694
3853
|
onHoverOut: (e) => {
|
|
3695
3854
|
N(), i.props.onHoverOut?.(e);
|
|
3696
3855
|
},
|
|
3697
3856
|
onFocus: (e) => {
|
|
3698
|
-
|
|
3857
|
+
k(), i.props.onFocus?.(e);
|
|
3699
3858
|
},
|
|
3700
3859
|
onBlur: (e) => {
|
|
3701
3860
|
N(), i.props.onBlur?.(e);
|
|
3702
3861
|
}
|
|
3703
|
-
}), /* @__PURE__ */
|
|
3862
|
+
}), /* @__PURE__ */ j(b, {
|
|
3704
3863
|
visible: u,
|
|
3705
3864
|
transparent: !0,
|
|
3706
3865
|
animationType: "none",
|
|
3707
3866
|
statusBarTranslucent: !0,
|
|
3708
|
-
children: /* @__PURE__ */
|
|
3867
|
+
children: /* @__PURE__ */ j(O, {
|
|
3709
3868
|
pointerEvents: "box-none",
|
|
3710
|
-
style:
|
|
3711
|
-
children: /* @__PURE__ */
|
|
3712
|
-
onLayout:
|
|
3869
|
+
style: T.absoluteFill,
|
|
3870
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
3871
|
+
onLayout: ee,
|
|
3713
3872
|
accessible: !0,
|
|
3714
3873
|
role: "tooltip",
|
|
3715
3874
|
style: [{
|
|
@@ -3717,39 +3876,39 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3717
3876
|
maxWidth: 240,
|
|
3718
3877
|
paddingVertical: 4,
|
|
3719
3878
|
paddingHorizontal: a.space2,
|
|
3720
|
-
backgroundColor:
|
|
3879
|
+
backgroundColor: P,
|
|
3721
3880
|
borderRadius: a.radiusSm,
|
|
3722
3881
|
shadowColor: "#000",
|
|
3723
3882
|
shadowOffset: {
|
|
3724
3883
|
width: 0,
|
|
3725
3884
|
height: 2
|
|
3726
3885
|
},
|
|
3727
|
-
...
|
|
3886
|
+
...ne
|
|
3728
3887
|
}, y ? {
|
|
3729
3888
|
top: y.top,
|
|
3730
3889
|
left: y.left,
|
|
3731
|
-
opacity:
|
|
3890
|
+
opacity: w
|
|
3732
3891
|
} : {
|
|
3733
3892
|
top: -9999,
|
|
3734
3893
|
left: -9999,
|
|
3735
3894
|
opacity: 0
|
|
3736
3895
|
}],
|
|
3737
|
-
children: [/* @__PURE__ */
|
|
3896
|
+
children: [/* @__PURE__ */ j(H, {
|
|
3738
3897
|
style: {
|
|
3739
|
-
color:
|
|
3898
|
+
color: te,
|
|
3740
3899
|
fontSize: a.fontSizeCaption,
|
|
3741
3900
|
fontWeight: String(a.fontWeightNormal),
|
|
3742
3901
|
lineHeight: a.fontSizeCaption * a.lineHeightBody,
|
|
3743
3902
|
textAlign: "center"
|
|
3744
3903
|
},
|
|
3745
3904
|
children: e
|
|
3746
|
-
}),
|
|
3905
|
+
}), re && /* @__PURE__ */ j(O, { style: re })]
|
|
3747
3906
|
})
|
|
3748
3907
|
})
|
|
3749
3908
|
})] });
|
|
3750
|
-
},
|
|
3751
|
-
let a =
|
|
3752
|
-
return /* @__PURE__ */
|
|
3909
|
+
}, Qt = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
|
|
3910
|
+
let a = B(), o = R();
|
|
3911
|
+
return /* @__PURE__ */ M(O, {
|
|
3753
3912
|
ref: i,
|
|
3754
3913
|
accessible: !0,
|
|
3755
3914
|
accessibilityRole: "radiogroup",
|
|
@@ -3761,10 +3920,10 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3761
3920
|
backgroundColor: a.headerbarBgColor
|
|
3762
3921
|
}, n],
|
|
3763
3922
|
...r,
|
|
3764
|
-
children: [/* @__PURE__ */
|
|
3923
|
+
children: [/* @__PURE__ */ j(O, {
|
|
3765
3924
|
pointerEvents: "none",
|
|
3766
|
-
style: [
|
|
3767
|
-
}), /* @__PURE__ */
|
|
3925
|
+
style: [T.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
|
|
3926
|
+
}), /* @__PURE__ */ j(O, {
|
|
3768
3927
|
style: {
|
|
3769
3928
|
flexDirection: "row",
|
|
3770
3929
|
alignItems: "center",
|
|
@@ -3774,9 +3933,9 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3774
3933
|
children: e
|
|
3775
3934
|
})]
|
|
3776
3935
|
});
|
|
3777
|
-
}),
|
|
3778
|
-
let o =
|
|
3779
|
-
return /* @__PURE__ */
|
|
3936
|
+
}), $t = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
|
|
3937
|
+
let o = B();
|
|
3938
|
+
return /* @__PURE__ */ M(C, {
|
|
3780
3939
|
ref: a,
|
|
3781
3940
|
disabled: r,
|
|
3782
3941
|
accessibilityRole: "radio",
|
|
@@ -3797,10 +3956,10 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3797
3956
|
backgroundColor: n ? o.headerbarBgColor : e ? o.activeOverlay : "transparent"
|
|
3798
3957
|
}),
|
|
3799
3958
|
...i,
|
|
3800
|
-
children: [t && /* @__PURE__ */
|
|
3959
|
+
children: [t && /* @__PURE__ */ j(O, {
|
|
3801
3960
|
style: { flexShrink: 0 },
|
|
3802
3961
|
children: t
|
|
3803
|
-
}), /* @__PURE__ */
|
|
3962
|
+
}), /* @__PURE__ */ j(E, {
|
|
3804
3963
|
style: {
|
|
3805
3964
|
fontFamily: o.fontFamily,
|
|
3806
3965
|
fontSize: o.fontSizeBody,
|
|
@@ -3812,6 +3971,6 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3812
3971
|
});
|
|
3813
3972
|
});
|
|
3814
3973
|
//#endregion
|
|
3815
|
-
export {
|
|
3974
|
+
export { Me as ActionRow, qe as AnimatedIcon, Je as Banner, Xe as BoxedList, et as Button, nt as Card, it as Checkbox, ot as Dialog, dt as Dropdown, L as GnomeContext, Oe as GnomeProvider, ft as HeaderBar, W as Icon, pt as Link, Ce as NAMED_ACCENT_COLORS, mt as PathBar, ht as ProgressBar, vt as RadioButton, bt as SearchBar, Ye as Separator, wt as Sidebar, K as SidebarCollapsedContext, q as SidebarFilterContext, Tt as SidebarItem, Et as SidebarSection, Dt as Skeleton, At as Slider, Mt as Spinner, Rt as Switch, zt as TabBar, Bt as TabItem, Vt as TabPanel, H as Text, Ut as TextField, Gt as Toast, Kt as Toaster, Zt as Tooltip, Qt as ViewSwitcher, $t as ViewSwitcherItem, Ee as applyAccentColor, fe as darkRawTokens, ce as darkTheme, me as highContrastDarkRawTokens, ue as highContrastDarkTheme, pe as highContrastRawTokens, le as highContrastTheme, de as lightRawTokens, se as lightTheme, we as resolveColorScheme, Te as resolveContrast, Se as resolveGnomeTheme, xe as useAccentColor, ye as useColorScheme, be as useContrast, ve as useDateTimeFormatter, ge as useDir, B as useGnomeTheme, he as useLocale, _e as useNumberFormatter, V as useReducedMotion, R as useResolvedColorScheme, z as useResolvedContrast, Ct as useSidebarCollapsed };
|
|
3816
3975
|
|
|
3817
3976
|
//# sourceMappingURL=index.js.map
|