@gnome-ui/react-native 1.7.0 → 1.8.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 +326 -3
- package/dist/components/Blockquote/Blockquote.d.ts +40 -0
- package/dist/components/Blockquote/index.d.ts +2 -0
- package/dist/components/BottomTabBar/BottomTabBar.d.ts +106 -0
- package/dist/components/BottomTabBar/index.d.ts +2 -0
- package/dist/components/ButtonRow/ButtonRow.d.ts +41 -0
- package/dist/components/ButtonRow/index.d.ts +2 -0
- package/dist/components/Callout/Callout.d.ts +36 -0
- package/dist/components/Callout/index.d.ts +2 -0
- package/dist/components/CheckRow/CheckRow.d.ts +47 -0
- package/dist/components/CheckRow/index.d.ts +2 -0
- package/dist/components/ExpanderRow/ExpanderRow.d.ts +58 -0
- package/dist/components/ExpanderRow/index.d.ts +2 -0
- package/dist/components/FieldGroup/FieldGroup.d.ts +52 -0
- package/dist/components/FieldGroup/index.d.ts +2 -0
- package/dist/components/FilterableMultiSelectDropdown/FilterableMultiSelectDropdown.d.ts +46 -0
- package/dist/components/FilterableMultiSelectDropdown/index.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +11 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +55 -0
- package/dist/components/MultiSelectDropdown/index.d.ts +2 -0
- package/dist/components/PasswordField/PasswordField.d.ts +48 -0
- package/dist/components/PasswordField/index.d.ts +2 -0
- package/dist/components/RangeSlider/RangeSlider.d.ts +73 -0
- package/dist/components/RangeSlider/index.d.ts +2 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +47 -0
- package/dist/components/StatusBadge/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1884 -526
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Children as e, Fragment as t, cloneElement as n, createContext as r, forwardRef as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
2
2
|
import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Image as y, Linking as b, Modal as x, PanResponder as S, Platform as C, Pressable as w, ScrollView as T, StyleSheet as E, Text as D, TextInput as O, View as k, useColorScheme as A } from "react-native";
|
|
3
3
|
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
4
|
-
import { Add as P, ApplicationXExecutable as F, AudioXGeneric as I, Check as L, Close as R, Connecting as z,
|
|
5
|
-
import
|
|
4
|
+
import { Add as P, ApplicationXExecutable as F, AudioXGeneric as I, Check as L, Close as R, Connecting as z, DialogInformation as B, DialogWarning as V, Document as H, Downloading as ee, Folder as te, FontXGeneric as ne, ImageXGeneric as re, PackageXGeneric as ie, PanDown as ae, PanEnd as oe, Recording as se, Search as ce, Syncing as le, TextXGeneric as ue, VideoXGeneric as de, ViewConceal as fe, ViewReveal as pe, XOfficeDocument as me, XOfficePresentation as he, XOfficeSpreadsheet as ge } from "@gnome-ui/icons";
|
|
5
|
+
import _e, { Circle as ve, G as ye, Path as U, Svg as be, SvgXml as xe } 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 ve = {
|
|
|
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 ve = {
|
|
|
286
286
|
yellow3: "#f6d32d",
|
|
287
287
|
yellow4: "#f5c211",
|
|
288
288
|
yellow5: "#e5a50a"
|
|
289
|
-
},
|
|
289
|
+
}, we = {
|
|
290
290
|
accentBgColor: "#1a5fb4",
|
|
291
291
|
accentColor: "#1a5fb4",
|
|
292
292
|
accentFgColor: "#fff",
|
|
@@ -427,7 +427,7 @@ var ve = {
|
|
|
427
427
|
yellow3: "#f6d32d",
|
|
428
428
|
yellow4: "#f5c211",
|
|
429
429
|
yellow5: "#e5a50a"
|
|
430
|
-
},
|
|
430
|
+
}, Te = {
|
|
431
431
|
accentBgColor: "#62a0ea",
|
|
432
432
|
accentColor: "#99c1f1",
|
|
433
433
|
accentFgColor: "#fff",
|
|
@@ -568,7 +568,7 @@ var ve = {
|
|
|
568
568
|
yellow3: "#f6d32d",
|
|
569
569
|
yellow4: "#f5c211",
|
|
570
570
|
yellow5: "#e5a50a"
|
|
571
|
-
},
|
|
571
|
+
}, Ee = {
|
|
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 ve = {
|
|
|
709
709
|
"--gnome-yellow-3": "#f6d32d",
|
|
710
710
|
"--gnome-yellow-4": "#f5c211",
|
|
711
711
|
"--gnome-yellow-5": "#e5a50a"
|
|
712
|
-
},
|
|
712
|
+
}, De = {
|
|
713
713
|
"--gnome-accent-bg-color": "#3584e4",
|
|
714
714
|
"--gnome-accent-color": "#62a0ea",
|
|
715
715
|
"--gnome-accent-fg-color": "#fff",
|
|
@@ -850,7 +850,7 @@ var ve = {
|
|
|
850
850
|
"--gnome-yellow-3": "#f6d32d",
|
|
851
851
|
"--gnome-yellow-4": "#f5c211",
|
|
852
852
|
"--gnome-yellow-5": "#e5a50a"
|
|
853
|
-
},
|
|
853
|
+
}, Oe = {
|
|
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 ve = {
|
|
|
991
991
|
"--gnome-yellow-3": "#f6d32d",
|
|
992
992
|
"--gnome-yellow-4": "#f5c211",
|
|
993
993
|
"--gnome-yellow-5": "#e5a50a"
|
|
994
|
-
},
|
|
994
|
+
}, ke = {
|
|
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 ve = {
|
|
|
1132
1132
|
"--gnome-yellow-3": "#f6d32d",
|
|
1133
1133
|
"--gnome-yellow-4": "#f5c211",
|
|
1134
1134
|
"--gnome-yellow-5": "#e5a50a"
|
|
1135
|
-
},
|
|
1135
|
+
}, W = r({
|
|
1136
1136
|
locale: void 0,
|
|
1137
1137
|
dir: "ltr",
|
|
1138
1138
|
numberFormat: void 0,
|
|
@@ -1142,16 +1142,16 @@ var ve = {
|
|
|
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 Ae() {
|
|
1148
|
+
return s(W).locale;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return s(
|
|
1150
|
+
function je() {
|
|
1151
|
+
return s(W).dir;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
let { locale: t, numberFormat: n } = s(
|
|
1153
|
+
function Me(e) {
|
|
1154
|
+
let { locale: t, numberFormat: n } = s(W);
|
|
1155
1155
|
return u(() => new Intl.NumberFormat(t, {
|
|
1156
1156
|
...n,
|
|
1157
1157
|
...e
|
|
@@ -1161,8 +1161,8 @@ function Oe(e) {
|
|
|
1161
1161
|
e
|
|
1162
1162
|
]);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1165
|
-
let { locale: t, dateTimeFormat: n } = s(
|
|
1164
|
+
function Ne(e) {
|
|
1165
|
+
let { locale: t, dateTimeFormat: n } = s(W);
|
|
1166
1166
|
return u(() => new Intl.DateTimeFormat(t, {
|
|
1167
1167
|
...n,
|
|
1168
1168
|
...e
|
|
@@ -1172,32 +1172,32 @@ function ke(e) {
|
|
|
1172
1172
|
e
|
|
1173
1173
|
]);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return s(
|
|
1175
|
+
function Pe() {
|
|
1176
|
+
return s(W).colorScheme;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return s(
|
|
1178
|
+
function G() {
|
|
1179
|
+
return s(W).resolvedColorScheme;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return s(
|
|
1181
|
+
function Fe() {
|
|
1182
|
+
return s(W).contrast;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return s(
|
|
1184
|
+
function K() {
|
|
1185
|
+
return s(W).resolvedContrast;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return s(
|
|
1187
|
+
function Ie() {
|
|
1188
|
+
return s(W).accentColor;
|
|
1189
1189
|
}
|
|
1190
1190
|
function q() {
|
|
1191
|
-
return s(
|
|
1191
|
+
return s(W).theme;
|
|
1192
1192
|
}
|
|
1193
1193
|
//#endregion
|
|
1194
1194
|
//#region src/theme/resolveTheme.ts
|
|
1195
|
-
function
|
|
1196
|
-
return t === "more" ? e === "dark" ?
|
|
1195
|
+
function Le({ colorScheme: e, contrast: t = "normal" }) {
|
|
1196
|
+
return t === "more" ? e === "dark" ? Te : we : e === "dark" ? Ce : Se;
|
|
1197
1197
|
}
|
|
1198
1198
|
//#endregion
|
|
1199
1199
|
//#region src/GnomeProvider/resolveContext.ts
|
|
1200
|
-
var
|
|
1200
|
+
var Re = new Set([
|
|
1201
1201
|
"blue",
|
|
1202
1202
|
"green",
|
|
1203
1203
|
"yellow",
|
|
@@ -1206,15 +1206,15 @@ var Fe = new Set([
|
|
|
1206
1206
|
"purple",
|
|
1207
1207
|
"brown"
|
|
1208
1208
|
]);
|
|
1209
|
-
function
|
|
1209
|
+
function ze(e, t) {
|
|
1210
1210
|
return e === "system" ? t === "dark" ? "dark" : "light" : e;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Be(e, t) {
|
|
1213
1213
|
return e === "system" ? t ? "more" : "normal" : e;
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Ve(e, t, n, r) {
|
|
1216
1216
|
if (t === "blue") return e;
|
|
1217
|
-
let i =
|
|
1217
|
+
let i = Re.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
|
|
1218
1218
|
return {
|
|
1219
1219
|
...e,
|
|
1220
1220
|
accentColor: a,
|
|
@@ -1224,7 +1224,7 @@ function Re(e, t, n, r) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
//#endregion
|
|
1226
1226
|
//#region src/GnomeProvider/GnomeProvider.tsx
|
|
1227
|
-
function
|
|
1227
|
+
function He() {
|
|
1228
1228
|
let [e, t] = f(!1);
|
|
1229
1229
|
return c(() => {
|
|
1230
1230
|
let e = C.OS === "android" ? p.isHighTextContrastEnabled : C.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
|
|
@@ -1254,8 +1254,8 @@ function J() {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
}, []), e;
|
|
1256
1256
|
}
|
|
1257
|
-
var
|
|
1258
|
-
let c = A(), l =
|
|
1257
|
+
var Ue = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
|
|
1258
|
+
let c = A(), l = He(), d = ze(i, c), f = Be(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 Be = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1265
1265
|
contrast: a,
|
|
1266
1266
|
resolvedContrast: f,
|
|
1267
1267
|
accentColor: o,
|
|
1268
|
-
theme:
|
|
1268
|
+
theme: Ve(Le({
|
|
1269
1269
|
colorScheme: d,
|
|
1270
1270
|
contrast: f
|
|
1271
1271
|
}), o, d, f)
|
|
@@ -1280,11 +1280,11 @@ var Be = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1280
1280
|
f,
|
|
1281
1281
|
o
|
|
1282
1282
|
]);
|
|
1283
|
-
return /* @__PURE__ */ M(
|
|
1283
|
+
return /* @__PURE__ */ M(W.Provider, {
|
|
1284
1284
|
value: m,
|
|
1285
1285
|
children: s
|
|
1286
1286
|
});
|
|
1287
|
-
},
|
|
1287
|
+
}, We = new Set([
|
|
1288
1288
|
"large-title",
|
|
1289
1289
|
"title-1",
|
|
1290
1290
|
"title-2",
|
|
@@ -1292,7 +1292,7 @@ var Be = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
|
|
|
1292
1292
|
"title-4",
|
|
1293
1293
|
"heading"
|
|
1294
1294
|
]);
|
|
1295
|
-
function
|
|
1295
|
+
function Ge(e, t) {
|
|
1296
1296
|
let n = (e) => String(e);
|
|
1297
1297
|
switch (t) {
|
|
1298
1298
|
case "large-title": return {
|
|
@@ -1361,7 +1361,7 @@ function He(e, t) {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Ke(e, t) {
|
|
1365
1365
|
switch (t) {
|
|
1366
1366
|
case "dim": return {
|
|
1367
1367
|
color: e.windowFgColor,
|
|
@@ -1379,17 +1379,17 @@ var Y = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1379
1379
|
let s = q();
|
|
1380
1380
|
return /* @__PURE__ */ M(D, {
|
|
1381
1381
|
ref: o,
|
|
1382
|
-
accessibilityRole: i ?? (
|
|
1382
|
+
accessibilityRole: i ?? (We.has(e) ? "header" : void 0),
|
|
1383
1383
|
style: [
|
|
1384
1384
|
{ fontFamily: s.fontFamily },
|
|
1385
|
-
|
|
1386
|
-
|
|
1385
|
+
Ge(s, e),
|
|
1386
|
+
Ke(s, t),
|
|
1387
1387
|
n
|
|
1388
1388
|
],
|
|
1389
1389
|
...a,
|
|
1390
1390
|
children: r
|
|
1391
1391
|
});
|
|
1392
|
-
}),
|
|
1392
|
+
}), qe = i(function({ title: e, subtitle: t, leading: n, trailing: r, interactive: i = !1, variant: a = "default", style: o, disabled: s, ...c }, l) {
|
|
1393
1393
|
let u = q(), d = a === "property", f = {
|
|
1394
1394
|
flexDirection: "row",
|
|
1395
1395
|
alignItems: "center",
|
|
@@ -1456,12 +1456,12 @@ var Y = i(function({ variant: e = "body", color: t = "default", style: n, childr
|
|
|
1456
1456
|
...c,
|
|
1457
1457
|
children: p
|
|
1458
1458
|
});
|
|
1459
|
-
}),
|
|
1459
|
+
}), Je = {
|
|
1460
1460
|
sm: 12,
|
|
1461
1461
|
md: 16,
|
|
1462
1462
|
lg: 20
|
|
1463
1463
|
};
|
|
1464
|
-
function
|
|
1464
|
+
function Ye(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 Ke(e, t) {
|
|
|
1473
1473
|
default: return e.windowFgColor;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Xe(e) {
|
|
1477
1477
|
return e ? {
|
|
1478
1478
|
accessible: !0,
|
|
1479
1479
|
accessibilityLabel: e,
|
|
@@ -1485,37 +1485,37 @@ function qe(e) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
//#endregion
|
|
1487
1487
|
//#region src/components/Icon/Icon.tsx
|
|
1488
|
-
function
|
|
1488
|
+
function Ze(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 Qe(e) {
|
|
1492
1492
|
return e === "nonzero" || e === "evenodd" ? e : void 0;
|
|
1493
1493
|
}
|
|
1494
|
-
var X = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a,
|
|
1495
|
-
let
|
|
1494
|
+
var X = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, tintColor: o, style: s }) => {
|
|
1495
|
+
let c = q(), l = Je[t], u = o ?? Ye(c, a), d = Ze(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", f = Ze(e) ? e.svg : void 0, p = Ze(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ M(U, {
|
|
1496
1496
|
d: e.d,
|
|
1497
|
-
fillRule:
|
|
1498
|
-
clipRule:
|
|
1497
|
+
fillRule: Qe(e.fillRule),
|
|
1498
|
+
clipRule: Qe(e.clipRule),
|
|
1499
1499
|
transform: e.transform
|
|
1500
|
-
}, t)) : [/* @__PURE__ */ M(
|
|
1501
|
-
return
|
|
1502
|
-
xml: `<svg viewBox="${
|
|
1503
|
-
width: n ??
|
|
1504
|
-
height: r ??
|
|
1505
|
-
fill:
|
|
1506
|
-
style:
|
|
1507
|
-
...
|
|
1508
|
-
}) : /* @__PURE__ */ M(
|
|
1509
|
-
viewBox:
|
|
1510
|
-
width: n ??
|
|
1511
|
-
height: r ??
|
|
1512
|
-
fill:
|
|
1513
|
-
style:
|
|
1514
|
-
...
|
|
1515
|
-
children:
|
|
1500
|
+
}, t)) : [/* @__PURE__ */ M(U, { d: e.path }, 0)], m = Xe(i);
|
|
1501
|
+
return f ? /* @__PURE__ */ M(xe, {
|
|
1502
|
+
xml: `<svg viewBox="${d}">${f}</svg>`,
|
|
1503
|
+
width: n ?? l,
|
|
1504
|
+
height: r ?? l,
|
|
1505
|
+
fill: u,
|
|
1506
|
+
style: s,
|
|
1507
|
+
...m
|
|
1508
|
+
}) : /* @__PURE__ */ M(be, {
|
|
1509
|
+
viewBox: d,
|
|
1510
|
+
width: n ?? l,
|
|
1511
|
+
height: r ?? l,
|
|
1512
|
+
fill: u,
|
|
1513
|
+
style: s,
|
|
1514
|
+
...m,
|
|
1515
|
+
children: p
|
|
1516
1516
|
});
|
|
1517
|
-
},
|
|
1518
|
-
function
|
|
1517
|
+
}, $e = m.createAnimatedComponent(ye), et = m.createAnimatedComponent(U), tt = m.createAnimatedComponent(ve);
|
|
1518
|
+
function nt(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 $e(e) {
|
|
|
1527
1527
|
return n.start(), () => n.stop();
|
|
1528
1528
|
}, [t, e]), t;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function rt(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 et(e, t) {
|
|
|
1543
1543
|
t
|
|
1544
1544
|
]), n;
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1547
|
-
transform:
|
|
1546
|
+
var it = ({ fill: e }) => /* @__PURE__ */ M($e, {
|
|
1547
|
+
transform: nt(1500).interpolate({
|
|
1548
1548
|
inputRange: [0, 1],
|
|
1549
1549
|
outputRange: ["rotate(0, 8, 8)", "rotate(360, 8, 8)"]
|
|
1550
1550
|
}),
|
|
1551
|
-
children: /* @__PURE__ */ M(
|
|
1551
|
+
children: /* @__PURE__ */ M(U, {
|
|
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
|
+
}), at = ({ 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 tt = ({ fill: e }) => /* @__PURE__ */ M(Xe, {
|
|
|
1568
1568
|
useNativeDriver: !1
|
|
1569
1569
|
})]));
|
|
1570
1570
|
return n.start(), () => n.stop();
|
|
1571
|
-
}, [t]), /* @__PURE__ */ M(
|
|
1571
|
+
}, [t]), /* @__PURE__ */ M(et, {
|
|
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
|
+
}, ot = ({ fill: e }) => {
|
|
1577
|
+
let t = nt(1400), n = [
|
|
1578
1578
|
0,
|
|
1579
1579
|
.2,
|
|
1580
1580
|
.5,
|
|
@@ -1602,30 +1602,30 @@ var tt = ({ fill: e }) => /* @__PURE__ */ M(Xe, {
|
|
|
1602
1602
|
1
|
|
1603
1603
|
]
|
|
1604
1604
|
});
|
|
1605
|
-
return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(
|
|
1605
|
+
return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(U, {
|
|
1606
1606
|
fill: e,
|
|
1607
1607
|
d: "M2 13h12v2H2z"
|
|
1608
|
-
}), /* @__PURE__ */ M(
|
|
1608
|
+
}), /* @__PURE__ */ M($e, {
|
|
1609
1609
|
transform: r,
|
|
1610
1610
|
opacity: i,
|
|
1611
|
-
children: /* @__PURE__ */ M(
|
|
1611
|
+
children: /* @__PURE__ */ M(U, {
|
|
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 st(e, t, n) {
|
|
1619
1619
|
return `translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`;
|
|
1620
1620
|
}
|
|
1621
|
-
var
|
|
1622
|
-
let i =
|
|
1621
|
+
var ct = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
1622
|
+
let i = rt(1200, r), a = [
|
|
1623
1623
|
0,
|
|
1624
1624
|
.2,
|
|
1625
1625
|
.4,
|
|
1626
1626
|
1
|
|
1627
1627
|
];
|
|
1628
|
-
return /* @__PURE__ */ M(
|
|
1628
|
+
return /* @__PURE__ */ M(tt, {
|
|
1629
1629
|
cx: e,
|
|
1630
1630
|
cy: t,
|
|
1631
1631
|
r: 2,
|
|
@@ -1642,43 +1642,43 @@ var at = ({ 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
|
+
st(e, t, 1),
|
|
1646
|
+
st(e, t, .7),
|
|
1647
|
+
st(e, t, 1),
|
|
1648
|
+
st(e, t, 1)
|
|
1649
1649
|
]
|
|
1650
1650
|
})
|
|
1651
1651
|
});
|
|
1652
|
-
},
|
|
1653
|
-
[
|
|
1654
|
-
[
|
|
1655
|
-
[
|
|
1652
|
+
}, lt = new Map([
|
|
1653
|
+
[le, it],
|
|
1654
|
+
[se, at],
|
|
1655
|
+
[ee, ot],
|
|
1656
1656
|
[z, ({ fill: e }) => /* @__PURE__ */ N(j, { children: [
|
|
1657
|
-
/* @__PURE__ */ M(
|
|
1657
|
+
/* @__PURE__ */ M(U, {
|
|
1658
1658
|
fill: e,
|
|
1659
1659
|
d: "m 8 1.992188 c -2.617188 0 -5.238281 0.933593 -7.195312 2.808593 l -0.496094 0.480469 c -0.3984378 0.378906 -0.410156 1.011719 -0.03125 1.410156 c 0.003906 0.007813 0.011718 0.011719 0.019531 0.015625 c 0.480469 -1.011719 1.503906 -1.707031 2.703125 -1.707031 h 0.9375 c 2.480469 -1.292969 5.644531 -1.292969 8.125 0 h 0.9375 c 1.199219 0 2.222656 0.695312 2.707031 1.707031 c 0.003907 -0.007812 0.011719 -0.011719 0.015625 -0.015625 c 0.378906 -0.398437 0.367188 -1.03125 -0.03125 -1.410156 l -0.496094 -0.480469 c -1.957031 -1.875 -4.578124 -2.808593 -7.195312 -2.808593 z m -1.730469 9.007812 c -0.441406 0.765625 -0.339843 1.757812 0.316407 2.414062 c 0.78125 0.78125 2.046874 0.78125 2.828124 0 c 0.65625 -0.65625 0.757813 -1.648437 0.316407 -2.414062 z m 0 0"
|
|
1660
1660
|
}),
|
|
1661
|
-
/* @__PURE__ */ M(
|
|
1661
|
+
/* @__PURE__ */ M(ct, {
|
|
1662
1662
|
cx: 3,
|
|
1663
1663
|
cy: 8,
|
|
1664
1664
|
fill: e,
|
|
1665
1665
|
delay: 0
|
|
1666
1666
|
}),
|
|
1667
|
-
/* @__PURE__ */ M(
|
|
1667
|
+
/* @__PURE__ */ M(ct, {
|
|
1668
1668
|
cx: 8,
|
|
1669
1669
|
cy: 8,
|
|
1670
1670
|
fill: e,
|
|
1671
1671
|
delay: 150
|
|
1672
1672
|
}),
|
|
1673
|
-
/* @__PURE__ */ M(
|
|
1673
|
+
/* @__PURE__ */ M(ct, {
|
|
1674
1674
|
cx: 13,
|
|
1675
1675
|
cy: 8,
|
|
1676
1676
|
fill: e,
|
|
1677
1677
|
delay: 300
|
|
1678
1678
|
})
|
|
1679
1679
|
] })]
|
|
1680
|
-
]),
|
|
1681
|
-
let s = q(), c = J(), l = t && !c ?
|
|
1680
|
+
]), ut = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
|
|
1681
|
+
let s = q(), c = J(), l = t && !c ? lt.get(e) : void 0;
|
|
1682
1682
|
if (!l) return /* @__PURE__ */ M(X, {
|
|
1683
1683
|
icon: e,
|
|
1684
1684
|
size: n,
|
|
@@ -1687,15 +1687,15 @@ var at = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1687
1687
|
label: a,
|
|
1688
1688
|
color: o
|
|
1689
1689
|
});
|
|
1690
|
-
let u =
|
|
1691
|
-
return /* @__PURE__ */ M(
|
|
1690
|
+
let u = Je[n], d = Ye(s, o), f = Xe(a);
|
|
1691
|
+
return /* @__PURE__ */ M(be, {
|
|
1692
1692
|
viewBox: e.viewBox,
|
|
1693
1693
|
width: r ?? u,
|
|
1694
1694
|
height: i ?? u,
|
|
1695
1695
|
...f,
|
|
1696
1696
|
children: /* @__PURE__ */ M(l, { fill: d })
|
|
1697
1697
|
});
|
|
1698
|
-
},
|
|
1698
|
+
}, dt = [
|
|
1699
1699
|
"blue",
|
|
1700
1700
|
"green",
|
|
1701
1701
|
"yellow",
|
|
@@ -1705,27 +1705,27 @@ var at = ({ cx: e, cy: t, fill: n, delay: r }) => {
|
|
|
1705
1705
|
"brown",
|
|
1706
1706
|
"teal",
|
|
1707
1707
|
"slate"
|
|
1708
|
-
],
|
|
1708
|
+
], ft = {
|
|
1709
1709
|
sm: 24,
|
|
1710
1710
|
md: 32,
|
|
1711
1711
|
lg: 48,
|
|
1712
1712
|
xl: 64
|
|
1713
|
-
},
|
|
1713
|
+
}, pt = {
|
|
1714
1714
|
sm: .5,
|
|
1715
1715
|
md: .6,
|
|
1716
1716
|
lg: 1,
|
|
1717
1717
|
xl: 1.4
|
|
1718
1718
|
};
|
|
1719
|
-
function
|
|
1719
|
+
function mt(e) {
|
|
1720
1720
|
let t = 0;
|
|
1721
1721
|
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
1722
|
-
return
|
|
1722
|
+
return dt[t % dt.length];
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function ht(e) {
|
|
1725
1725
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
1726
1726
|
return t.length === 0 ? "" : t.length === 1 ? t[0].charAt(0).toUpperCase() : t[0].charAt(0).toUpperCase() + t[t.length - 1].charAt(0).toUpperCase();
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function gt(e, t) {
|
|
1729
1729
|
switch (t) {
|
|
1730
1730
|
case "blue": return {
|
|
1731
1731
|
backgroundColor: e.blue3,
|
|
@@ -1765,8 +1765,8 @@ function pt(e, t) {
|
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
var
|
|
1769
|
-
let o = q(), s =
|
|
1768
|
+
var _t = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a }) => {
|
|
1769
|
+
let o = q(), s = G(), c = i ?? (e ? mt(e) : "blue"), l = ht(e), u = ft[r], { backgroundColor: d, initialsColor: f } = gt(o, c), p = s === "dark" ? "rgba(255, 255, 255, 0.08)" : "rgba(0, 0, 0, 0.08)";
|
|
1770
1770
|
return /* @__PURE__ */ M(k, {
|
|
1771
1771
|
accessible: !0,
|
|
1772
1772
|
role: "img",
|
|
@@ -1798,30 +1798,30 @@ var mt = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1798
1798
|
style: {
|
|
1799
1799
|
fontFamily: o.fontFamily,
|
|
1800
1800
|
fontWeight: String(o.fontWeightSemibold),
|
|
1801
|
-
fontSize: o.fontSizeBody *
|
|
1802
|
-
lineHeight: o.fontSizeBody *
|
|
1801
|
+
fontSize: o.fontSizeBody * pt[r],
|
|
1802
|
+
lineHeight: o.fontSizeBody * pt[r],
|
|
1803
1803
|
color: f
|
|
1804
1804
|
},
|
|
1805
1805
|
children: l
|
|
1806
1806
|
})
|
|
1807
1807
|
});
|
|
1808
|
-
},
|
|
1808
|
+
}, vt = {
|
|
1809
1809
|
sm: 6,
|
|
1810
1810
|
md: 8,
|
|
1811
1811
|
lg: 12,
|
|
1812
1812
|
xl: 16
|
|
1813
|
-
},
|
|
1813
|
+
}, yt = {
|
|
1814
1814
|
sm: 24,
|
|
1815
1815
|
md: 32,
|
|
1816
1816
|
lg: 48,
|
|
1817
1817
|
xl: 64
|
|
1818
|
-
},
|
|
1818
|
+
}, bt = {
|
|
1819
1819
|
sm: 8,
|
|
1820
1820
|
md: 9.6,
|
|
1821
1821
|
lg: 14,
|
|
1822
1822
|
xl: 17.6
|
|
1823
|
-
},
|
|
1824
|
-
let o = q(), s = e.length > t ? e.slice(0, t) : e, c = e.length > t ? e.length - t : 0, l = e.map((e) => e.name).filter(Boolean).join(", "), u = r ?? (l ? c > 0 ? `${l} and ${c} more` : l : "Avatar group"), d =
|
|
1823
|
+
}, xt = ({ avatars: e, max: t = 5, size: n = "md", accessibilityLabel: r, style: i, testID: a }) => {
|
|
1824
|
+
let o = q(), s = e.length > t ? e.slice(0, t) : e, c = e.length > t ? e.length - t : 0, l = e.map((e) => e.name).filter(Boolean).join(", "), u = r ?? (l ? c > 0 ? `${l} and ${c} more` : l : "Avatar group"), d = vt[n];
|
|
1825
1825
|
return /* @__PURE__ */ N(k, {
|
|
1826
1826
|
testID: a,
|
|
1827
1827
|
accessible: !0,
|
|
@@ -1831,7 +1831,7 @@ var mt = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1831
1831
|
flexDirection: "row",
|
|
1832
1832
|
alignItems: "center"
|
|
1833
1833
|
}, i],
|
|
1834
|
-
children: [s.map((e, t) => /* @__PURE__ */ M(
|
|
1834
|
+
children: [s.map((e, t) => /* @__PURE__ */ M(_t, {
|
|
1835
1835
|
name: e.name,
|
|
1836
1836
|
src: e.src,
|
|
1837
1837
|
alt: e.alt ?? e.name,
|
|
@@ -1846,8 +1846,8 @@ var mt = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1846
1846
|
accessible: !0,
|
|
1847
1847
|
accessibilityLabel: `+${c} more`,
|
|
1848
1848
|
style: {
|
|
1849
|
-
width:
|
|
1850
|
-
height:
|
|
1849
|
+
width: yt[n],
|
|
1850
|
+
height: yt[n],
|
|
1851
1851
|
marginStart: -d,
|
|
1852
1852
|
borderRadius: o.radiusPill,
|
|
1853
1853
|
borderWidth: 2,
|
|
@@ -1862,7 +1862,7 @@ var mt = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1862
1862
|
style: {
|
|
1863
1863
|
fontFamily: o.fontFamily,
|
|
1864
1864
|
fontWeight: String(o.fontWeightSemibold),
|
|
1865
|
-
fontSize:
|
|
1865
|
+
fontSize: bt[n],
|
|
1866
1866
|
color: "#fff"
|
|
1867
1867
|
},
|
|
1868
1868
|
children: `+${c}`
|
|
@@ -1872,15 +1872,15 @@ var mt = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a })
|
|
|
1872
1872
|
};
|
|
1873
1873
|
//#endregion
|
|
1874
1874
|
//#region src/components/AvatarRotator/AvatarRotator.tsx
|
|
1875
|
-
function
|
|
1875
|
+
function St(e, t) {
|
|
1876
1876
|
return t <= 0 ? 0 : (e % t + t) % t;
|
|
1877
1877
|
}
|
|
1878
|
-
var
|
|
1878
|
+
var Ct = {
|
|
1879
1879
|
sm: 24,
|
|
1880
1880
|
md: 32,
|
|
1881
1881
|
lg: 48,
|
|
1882
1882
|
xl: 64
|
|
1883
|
-
},
|
|
1883
|
+
}, wt = ({ active: e, duration: t, reducedMotion: n, children: r }) => {
|
|
1884
1884
|
let i = d(new m.Value(+!!e)).current;
|
|
1885
1885
|
return c(() => {
|
|
1886
1886
|
if (n) {
|
|
@@ -1903,12 +1903,12 @@ var bt = {
|
|
|
1903
1903
|
style: [E.absoluteFill, { opacity: i }],
|
|
1904
1904
|
children: r
|
|
1905
1905
|
});
|
|
1906
|
-
},
|
|
1907
|
-
let h = J(), g = t.map((e) => e.trim()).filter(Boolean), _ = l !== void 0, [v, y] = f(u), [b, x] = f(!1), S =
|
|
1906
|
+
}, Tt = ({ name: e = "", avatars: t = [], alt: n, size: r = "md", color: i, interval: a = 3e3, transitionDuration: o = 240, pauseOnPress: s = !0, activeIndex: l, defaultActiveIndex: u = 0, onIndexChange: d, style: p, testID: m }) => {
|
|
1907
|
+
let h = J(), g = t.map((e) => e.trim()).filter(Boolean), _ = l !== void 0, [v, y] = f(u), [b, x] = f(!1), S = St(_ ? l : v, g.length);
|
|
1908
1908
|
if (c(() => {
|
|
1909
1909
|
if (g.length <= 1 || a <= 0 || b || h) return;
|
|
1910
1910
|
let e = setInterval(() => {
|
|
1911
|
-
let e =
|
|
1911
|
+
let e = St(S + 1, g.length);
|
|
1912
1912
|
_ || y(e), d?.(e);
|
|
1913
1913
|
}, a);
|
|
1914
1914
|
return () => clearInterval(e);
|
|
@@ -1920,14 +1920,14 @@ var bt = {
|
|
|
1920
1920
|
d,
|
|
1921
1921
|
h,
|
|
1922
1922
|
g.length
|
|
1923
|
-
]), g.length === 0) return /* @__PURE__ */ M(
|
|
1923
|
+
]), g.length === 0) return /* @__PURE__ */ M(_t, {
|
|
1924
1924
|
name: e,
|
|
1925
1925
|
alt: n,
|
|
1926
1926
|
size: r,
|
|
1927
1927
|
color: i,
|
|
1928
1928
|
style: p
|
|
1929
1929
|
});
|
|
1930
|
-
let C = n ?? (e || void 0) ?? "Avatar", T =
|
|
1930
|
+
let C = n ?? (e || void 0) ?? "Avatar", T = Ct[r];
|
|
1931
1931
|
return /* @__PURE__ */ M(w, {
|
|
1932
1932
|
testID: m,
|
|
1933
1933
|
accessible: !0,
|
|
@@ -1941,11 +1941,11 @@ var bt = {
|
|
|
1941
1941
|
borderRadius: T / 2,
|
|
1942
1942
|
overflow: "hidden"
|
|
1943
1943
|
}, p],
|
|
1944
|
-
children: g.map((t, n) => /* @__PURE__ */ M(
|
|
1944
|
+
children: g.map((t, n) => /* @__PURE__ */ M(wt, {
|
|
1945
1945
|
active: n === S,
|
|
1946
1946
|
duration: Math.max(0, o),
|
|
1947
1947
|
reducedMotion: h,
|
|
1948
|
-
children: /* @__PURE__ */ M(
|
|
1948
|
+
children: /* @__PURE__ */ M(_t, {
|
|
1949
1949
|
name: e,
|
|
1950
1950
|
src: t,
|
|
1951
1951
|
size: r
|
|
@@ -1955,7 +1955,7 @@ var bt = {
|
|
|
1955
1955
|
};
|
|
1956
1956
|
//#endregion
|
|
1957
1957
|
//#region src/components/Badge/Badge.tsx
|
|
1958
|
-
function
|
|
1958
|
+
function Et(e, t, n) {
|
|
1959
1959
|
switch (n) {
|
|
1960
1960
|
case "accent": return {
|
|
1961
1961
|
backgroundColor: e.accentBgColor,
|
|
@@ -1979,8 +1979,8 @@ function Ct(e, t, n) {
|
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
|
-
var
|
|
1983
|
-
let a = q(), { backgroundColor: o, color: s } =
|
|
1982
|
+
var Dt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i }) => {
|
|
1983
|
+
let a = q(), { backgroundColor: o, color: s } = Et(a, G(), e), c = /* @__PURE__ */ M(k, {
|
|
1984
1984
|
testID: "badge-ring",
|
|
1985
1985
|
style: [{
|
|
1986
1986
|
padding: 2,
|
|
@@ -2019,7 +2019,7 @@ var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2019
2019
|
style: { alignSelf: "flex-start" },
|
|
2020
2020
|
children: [r, c]
|
|
2021
2021
|
}) : c;
|
|
2022
|
-
},
|
|
2022
|
+
}, Ot = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
|
|
2023
2023
|
let c = q(), l = {
|
|
2024
2024
|
info: {
|
|
2025
2025
|
bg: c.accentBgColor,
|
|
@@ -2111,12 +2111,67 @@ var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2111
2111
|
})]
|
|
2112
2112
|
})]
|
|
2113
2113
|
});
|
|
2114
|
-
},
|
|
2114
|
+
}, kt = i(function(e, t) {
|
|
2115
2115
|
return /* @__PURE__ */ M(k, {
|
|
2116
2116
|
ref: t,
|
|
2117
2117
|
...e
|
|
2118
2118
|
});
|
|
2119
|
-
}),
|
|
2119
|
+
}), At = {
|
|
2120
|
+
info: "14",
|
|
2121
|
+
warning: "24",
|
|
2122
|
+
error: "14",
|
|
2123
|
+
success: "14"
|
|
2124
|
+
}, jt = ({ variant: e = "default", icon: t, cite: n, children: r, style: i, ...a }) => {
|
|
2125
|
+
let o = q(), s = o.borderSubtle, c = "transparent";
|
|
2126
|
+
if (e !== "default") {
|
|
2127
|
+
let t = {
|
|
2128
|
+
info: o.accentBgColor,
|
|
2129
|
+
warning: o.warningBgColor,
|
|
2130
|
+
error: o.errorBgColor,
|
|
2131
|
+
success: o.successBgColor
|
|
2132
|
+
}[e];
|
|
2133
|
+
s = t, c = `${t}${At[e]}`;
|
|
2134
|
+
}
|
|
2135
|
+
return /* @__PURE__ */ N(k, {
|
|
2136
|
+
style: [{
|
|
2137
|
+
paddingVertical: o.space2,
|
|
2138
|
+
paddingHorizontal: o.space3,
|
|
2139
|
+
borderLeftWidth: 3,
|
|
2140
|
+
borderLeftColor: s,
|
|
2141
|
+
borderTopRightRadius: o.radiusSm,
|
|
2142
|
+
borderBottomRightRadius: o.radiusSm,
|
|
2143
|
+
backgroundColor: c
|
|
2144
|
+
}, i],
|
|
2145
|
+
...a,
|
|
2146
|
+
children: [/* @__PURE__ */ N(k, {
|
|
2147
|
+
style: {
|
|
2148
|
+
flexDirection: "row",
|
|
2149
|
+
alignItems: "flex-start",
|
|
2150
|
+
gap: o.space2
|
|
2151
|
+
},
|
|
2152
|
+
children: [t && /* @__PURE__ */ M(k, {
|
|
2153
|
+
style: { marginTop: 2 },
|
|
2154
|
+
accessibilityElementsHidden: !0,
|
|
2155
|
+
importantForAccessibility: "no",
|
|
2156
|
+
children: t
|
|
2157
|
+
}), /* @__PURE__ */ M(Y, {
|
|
2158
|
+
variant: "body",
|
|
2159
|
+
style: {
|
|
2160
|
+
flex: 1,
|
|
2161
|
+
minWidth: 0
|
|
2162
|
+
},
|
|
2163
|
+
children: r
|
|
2164
|
+
})]
|
|
2165
|
+
}), n !== void 0 && /* @__PURE__ */ M(k, {
|
|
2166
|
+
style: { marginTop: o.space1 },
|
|
2167
|
+
children: /* @__PURE__ */ M(Y, {
|
|
2168
|
+
variant: "caption",
|
|
2169
|
+
color: "dim",
|
|
2170
|
+
children: n
|
|
2171
|
+
})
|
|
2172
|
+
})]
|
|
2173
|
+
});
|
|
2174
|
+
}, Mt = m.createAnimatedComponent(w), Nt = 150, Pt = ({ open: e, title: t, children: n, onClose: r, closeOnBackdrop: i = !0, style: a, testID: o }) => {
|
|
2120
2175
|
let s = q(), l = J(), [p, _] = f(e), [v, y] = f(0), b = d(new m.Value(g.get("window").height)).current, C = d(new m.Value(0)).current, T = d(!1);
|
|
2121
2176
|
c(() => {
|
|
2122
2177
|
e && _(!0);
|
|
@@ -2174,7 +2229,7 @@ var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2174
2229
|
b.setValue(Math.max(0, t.dy));
|
|
2175
2230
|
},
|
|
2176
2231
|
onPanResponderRelease: (e, t) => {
|
|
2177
|
-
T.current = !1, Math.max(0, t.dy) >=
|
|
2232
|
+
T.current = !1, Math.max(0, t.dy) >= Nt ? r?.() : m.timing(b, {
|
|
2178
2233
|
toValue: 0,
|
|
2179
2234
|
duration: s.durationNormal,
|
|
2180
2235
|
useNativeDriver: !0
|
|
@@ -2191,7 +2246,7 @@ var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2191
2246
|
animationType: "none",
|
|
2192
2247
|
statusBarTranslucent: !0,
|
|
2193
2248
|
onRequestClose: r,
|
|
2194
|
-
children: /* @__PURE__ */ M(
|
|
2249
|
+
children: /* @__PURE__ */ M(Mt, {
|
|
2195
2250
|
testID: o,
|
|
2196
2251
|
onPress: i ? r : void 0,
|
|
2197
2252
|
accessible: !1,
|
|
@@ -2272,28 +2327,102 @@ var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2272
2327
|
})
|
|
2273
2328
|
})
|
|
2274
2329
|
}) : null;
|
|
2275
|
-
},
|
|
2330
|
+
}, Ft = ({ items: e, value: t, onChange: n, bottomInset: r = 0, style: i, testID: a }) => {
|
|
2331
|
+
let o = q();
|
|
2332
|
+
return /* @__PURE__ */ M(k, {
|
|
2333
|
+
testID: a,
|
|
2334
|
+
accessible: !0,
|
|
2335
|
+
role: "tablist",
|
|
2336
|
+
style: [{
|
|
2337
|
+
flexDirection: "row",
|
|
2338
|
+
backgroundColor: o.headerbarBgColor,
|
|
2339
|
+
borderTopWidth: 1,
|
|
2340
|
+
borderTopColor: o.headerbarBorderColor,
|
|
2341
|
+
paddingTop: 8,
|
|
2342
|
+
paddingBottom: 4 + r
|
|
2343
|
+
}, i],
|
|
2344
|
+
children: e.map((e) => {
|
|
2345
|
+
let r = e.value === t, i = r ? e.activeIcon ?? e.icon : e.icon, s = r ? o.accentColor : o.windowFgColor, c = /* @__PURE__ */ M(X, {
|
|
2346
|
+
icon: i,
|
|
2347
|
+
size: "lg",
|
|
2348
|
+
tintColor: r ? o.accentColor : void 0,
|
|
2349
|
+
style: r ? void 0 : { opacity: o.opacityDim }
|
|
2350
|
+
});
|
|
2351
|
+
return /* @__PURE__ */ N(w, {
|
|
2352
|
+
testID: a ? `${a}-${e.value}` : void 0,
|
|
2353
|
+
disabled: e.disabled,
|
|
2354
|
+
role: "tab",
|
|
2355
|
+
accessibilityLabel: e.label,
|
|
2356
|
+
accessibilityState: {
|
|
2357
|
+
selected: r,
|
|
2358
|
+
disabled: !!e.disabled
|
|
2359
|
+
},
|
|
2360
|
+
onPress: () => n(e.value),
|
|
2361
|
+
style: ({ pressed: t }) => ({
|
|
2362
|
+
flex: 1,
|
|
2363
|
+
alignItems: "center",
|
|
2364
|
+
gap: 2,
|
|
2365
|
+
paddingVertical: 4,
|
|
2366
|
+
backgroundColor: t ? o.activeOverlay : "transparent",
|
|
2367
|
+
opacity: e.disabled ? o.opacityDisabled : 1
|
|
2368
|
+
}),
|
|
2369
|
+
children: [/* @__PURE__ */ N(k, {
|
|
2370
|
+
style: { position: "relative" },
|
|
2371
|
+
children: [c, e.badge !== void 0 && e.badge !== !1 && /* @__PURE__ */ M(k, {
|
|
2372
|
+
style: {
|
|
2373
|
+
position: "absolute",
|
|
2374
|
+
top: -4,
|
|
2375
|
+
end: -6
|
|
2376
|
+
},
|
|
2377
|
+
children: /* @__PURE__ */ M(Dt, {
|
|
2378
|
+
variant: "error",
|
|
2379
|
+
dot: e.badge === !0,
|
|
2380
|
+
style: e.badge === !0 ? {
|
|
2381
|
+
minWidth: 8,
|
|
2382
|
+
height: 8
|
|
2383
|
+
} : {
|
|
2384
|
+
minWidth: 14,
|
|
2385
|
+
height: 14,
|
|
2386
|
+
paddingHorizontal: 3
|
|
2387
|
+
},
|
|
2388
|
+
children: typeof e.badge == "number" ? e.badge > 99 ? "99+" : e.badge : void 0
|
|
2389
|
+
})
|
|
2390
|
+
})]
|
|
2391
|
+
}), /* @__PURE__ */ M(Y, {
|
|
2392
|
+
numberOfLines: 1,
|
|
2393
|
+
style: {
|
|
2394
|
+
fontSize: o.fontSizeCaption,
|
|
2395
|
+
fontWeight: String(r ? o.fontWeightSemibold : o.fontWeightNormal),
|
|
2396
|
+
color: s,
|
|
2397
|
+
opacity: r ? 1 : o.opacityDim
|
|
2398
|
+
},
|
|
2399
|
+
children: e.label
|
|
2400
|
+
})]
|
|
2401
|
+
}, e.value);
|
|
2402
|
+
})
|
|
2403
|
+
});
|
|
2404
|
+
}, It = {
|
|
2276
2405
|
start: "flex-start",
|
|
2277
2406
|
center: "center",
|
|
2278
2407
|
end: "flex-end",
|
|
2279
2408
|
stretch: "stretch",
|
|
2280
2409
|
baseline: "baseline"
|
|
2281
|
-
},
|
|
2410
|
+
}, Lt = {
|
|
2282
2411
|
start: "flex-start",
|
|
2283
2412
|
center: "center",
|
|
2284
2413
|
end: "flex-end",
|
|
2285
2414
|
"space-between": "space-between",
|
|
2286
2415
|
"space-around": "space-around",
|
|
2287
2416
|
"space-evenly": "space-evenly"
|
|
2288
|
-
},
|
|
2417
|
+
}, Rt = i(function({ orientation: e = "vertical", spacing: t = 6, align: n, justify: r = "start", padding: i, children: a, style: o, ...s }, c) {
|
|
2289
2418
|
return /* @__PURE__ */ M(k, {
|
|
2290
2419
|
ref: c,
|
|
2291
2420
|
style: [
|
|
2292
2421
|
{
|
|
2293
2422
|
flexDirection: e === "horizontal" ? "row" : "column",
|
|
2294
2423
|
gap: t,
|
|
2295
|
-
alignItems:
|
|
2296
|
-
justifyContent:
|
|
2424
|
+
alignItems: It[n ?? (e === "horizontal" ? "center" : "stretch")],
|
|
2425
|
+
justifyContent: Lt[r]
|
|
2297
2426
|
},
|
|
2298
2427
|
i !== void 0 && { padding: i },
|
|
2299
2428
|
o
|
|
@@ -2301,7 +2430,7 @@ var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2301
2430
|
...s,
|
|
2302
2431
|
children: a
|
|
2303
2432
|
});
|
|
2304
|
-
}),
|
|
2433
|
+
}), zt = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
|
|
2305
2434
|
return /* @__PURE__ */ M(k, {
|
|
2306
2435
|
ref: r,
|
|
2307
2436
|
accessible: !1,
|
|
@@ -2322,7 +2451,7 @@ var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2322
2451
|
],
|
|
2323
2452
|
...n
|
|
2324
2453
|
});
|
|
2325
|
-
}),
|
|
2454
|
+
}), Bt = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
|
|
2326
2455
|
let o = q(), s = e.toArray(t).filter(Boolean);
|
|
2327
2456
|
return n === "separate" ? /* @__PURE__ */ M(k, {
|
|
2328
2457
|
ref: a,
|
|
@@ -2352,12 +2481,12 @@ var wt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i
|
|
|
2352
2481
|
overflow: "hidden"
|
|
2353
2482
|
}, r],
|
|
2354
2483
|
...i,
|
|
2355
|
-
children: s.map((e, t) => /* @__PURE__ */ N(k, { children: [t > 0 && /* @__PURE__ */ M(
|
|
2484
|
+
children: s.map((e, t) => /* @__PURE__ */ N(k, { children: [t > 0 && /* @__PURE__ */ M(zt, { testID: "boxed-list-separator" }), e] }, t))
|
|
2356
2485
|
});
|
|
2357
2486
|
});
|
|
2358
2487
|
//#endregion
|
|
2359
2488
|
//#region src/components/Button/Button.tsx
|
|
2360
|
-
function
|
|
2489
|
+
function Vt(e, t) {
|
|
2361
2490
|
switch (t) {
|
|
2362
2491
|
case "sm": return {
|
|
2363
2492
|
minHeight: 28,
|
|
@@ -2382,14 +2511,14 @@ function Ft(e, t) {
|
|
|
2382
2511
|
};
|
|
2383
2512
|
}
|
|
2384
2513
|
}
|
|
2385
|
-
function
|
|
2514
|
+
function Ht(e) {
|
|
2386
2515
|
switch (e) {
|
|
2387
2516
|
case "sm": return 28;
|
|
2388
2517
|
case "lg": return 42;
|
|
2389
2518
|
default: return 34;
|
|
2390
2519
|
}
|
|
2391
2520
|
}
|
|
2392
|
-
function
|
|
2521
|
+
function Ut(e, t, n, r) {
|
|
2393
2522
|
if (r) return {
|
|
2394
2523
|
backgroundColor: n ? "rgba(0, 0, 0, 0.85)" : "rgba(0, 0, 0, 0.65)",
|
|
2395
2524
|
borderColor: "rgba(255, 255, 255, 0.12)",
|
|
@@ -2418,15 +2547,15 @@ function Lt(e, t, n, r) {
|
|
|
2418
2547
|
};
|
|
2419
2548
|
}
|
|
2420
2549
|
}
|
|
2421
|
-
var
|
|
2422
|
-
let f = q(), p =
|
|
2550
|
+
var Wt = 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) {
|
|
2551
|
+
let f = q(), p = K();
|
|
2423
2552
|
return /* @__PURE__ */ M(w, {
|
|
2424
2553
|
ref: d,
|
|
2425
2554
|
disabled: l,
|
|
2426
2555
|
accessibilityRole: "button",
|
|
2427
2556
|
accessibilityState: { disabled: !!l },
|
|
2428
2557
|
style: ({ pressed: i }) => {
|
|
2429
|
-
let { backgroundColor: a, borderColor: o } =
|
|
2558
|
+
let { backgroundColor: a, borderColor: o } = Ut(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? Ht(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = Vt(f, t);
|
|
2430
2559
|
return [{
|
|
2431
2560
|
flexDirection: "row",
|
|
2432
2561
|
alignItems: "center",
|
|
@@ -2447,7 +2576,7 @@ var Rt = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
2447
2576
|
},
|
|
2448
2577
|
...u,
|
|
2449
2578
|
children: ({ pressed: n }) => {
|
|
2450
|
-
let { fontSize: s } =
|
|
2579
|
+
let { fontSize: s } = Vt(f, t), { color: l } = Ut(f, e, n, r);
|
|
2451
2580
|
return /* @__PURE__ */ N(j, { children: [
|
|
2452
2581
|
i,
|
|
2453
2582
|
typeof o == "string" ? /* @__PURE__ */ M(D, {
|
|
@@ -2463,10 +2592,133 @@ var Rt = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
|
|
|
2463
2592
|
] });
|
|
2464
2593
|
}
|
|
2465
2594
|
});
|
|
2466
|
-
})
|
|
2595
|
+
}), Gt = {
|
|
2596
|
+
default: "default",
|
|
2597
|
+
suggested: "accent",
|
|
2598
|
+
destructive: "destructive"
|
|
2599
|
+
}, Kt = i(function({ title: e, variant: t = "default", leading: n, trailing: r, style: i, disabled: a, ...o }, s) {
|
|
2600
|
+
let c = q();
|
|
2601
|
+
return /* @__PURE__ */ M(w, {
|
|
2602
|
+
ref: s,
|
|
2603
|
+
disabled: a,
|
|
2604
|
+
accessibilityRole: "button",
|
|
2605
|
+
accessibilityState: { disabled: !!a },
|
|
2606
|
+
accessibilityLabel: e,
|
|
2607
|
+
style: [{
|
|
2608
|
+
flexDirection: "row",
|
|
2609
|
+
alignItems: "center",
|
|
2610
|
+
gap: c.space2,
|
|
2611
|
+
paddingVertical: c.space2,
|
|
2612
|
+
paddingHorizontal: c.space4,
|
|
2613
|
+
minHeight: 52,
|
|
2614
|
+
width: "100%",
|
|
2615
|
+
opacity: a ? c.opacityDisabled : 1
|
|
2616
|
+
}, i],
|
|
2617
|
+
...o,
|
|
2618
|
+
children: ({ pressed: i }) => /* @__PURE__ */ N(j, { children: [
|
|
2619
|
+
n && /* @__PURE__ */ M(k, {
|
|
2620
|
+
style: { flexShrink: 0 },
|
|
2621
|
+
children: n
|
|
2622
|
+
}),
|
|
2623
|
+
/* @__PURE__ */ M(Y, {
|
|
2624
|
+
variant: "body",
|
|
2625
|
+
color: Gt[t],
|
|
2626
|
+
style: {
|
|
2627
|
+
flex: 1,
|
|
2628
|
+
textAlign: "center",
|
|
2629
|
+
fontWeight: String(c.fontWeightSemibold)
|
|
2630
|
+
},
|
|
2631
|
+
children: e
|
|
2632
|
+
}),
|
|
2633
|
+
r && /* @__PURE__ */ M(k, {
|
|
2634
|
+
style: { flexShrink: 0 },
|
|
2635
|
+
children: r
|
|
2636
|
+
}),
|
|
2637
|
+
i && !a ? /* @__PURE__ */ M(k, {
|
|
2638
|
+
pointerEvents: "none",
|
|
2639
|
+
style: [E.absoluteFill, { backgroundColor: c.activeOverlay }]
|
|
2640
|
+
}) : null
|
|
2641
|
+
] })
|
|
2642
|
+
});
|
|
2643
|
+
}), qt = {
|
|
2644
|
+
info: B,
|
|
2645
|
+
warning: V,
|
|
2646
|
+
tip: B
|
|
2647
|
+
}, Jt = {
|
|
2648
|
+
info: "blue",
|
|
2649
|
+
warning: "yellow",
|
|
2650
|
+
tip: "green"
|
|
2651
|
+
}, Yt = {
|
|
2652
|
+
info: "1a",
|
|
2653
|
+
warning: "26",
|
|
2654
|
+
tip: "1a"
|
|
2655
|
+
}, Xt = ({ variant: e = "info", children: t, dismissible: n = !1, onDismiss: r, style: i, ...a }) => {
|
|
2656
|
+
let o = q(), s = {
|
|
2657
|
+
info: o.accentBgColor,
|
|
2658
|
+
warning: o.warningBgColor,
|
|
2659
|
+
tip: o.successBgColor
|
|
2660
|
+
}[e];
|
|
2661
|
+
return /* @__PURE__ */ N(k, {
|
|
2662
|
+
role: "note",
|
|
2663
|
+
accessible: !0,
|
|
2664
|
+
style: [{
|
|
2665
|
+
flexDirection: "row",
|
|
2666
|
+
alignItems: "flex-start",
|
|
2667
|
+
gap: o.space2,
|
|
2668
|
+
padding: o.space2,
|
|
2669
|
+
paddingHorizontal: o.space3,
|
|
2670
|
+
borderRadius: o.radiusMd,
|
|
2671
|
+
borderStartWidth: 3,
|
|
2672
|
+
borderStartColor: s,
|
|
2673
|
+
backgroundColor: `${s}${Yt[e]}`
|
|
2674
|
+
}, i],
|
|
2675
|
+
...a,
|
|
2676
|
+
children: [
|
|
2677
|
+
/* @__PURE__ */ M(k, {
|
|
2678
|
+
style: { marginTop: 2 },
|
|
2679
|
+
accessibilityElementsHidden: !0,
|
|
2680
|
+
importantForAccessibility: "no",
|
|
2681
|
+
children: /* @__PURE__ */ M(X, {
|
|
2682
|
+
icon: qt[e],
|
|
2683
|
+
size: "md",
|
|
2684
|
+
color: Jt[e]
|
|
2685
|
+
})
|
|
2686
|
+
}),
|
|
2687
|
+
/* @__PURE__ */ M(Y, {
|
|
2688
|
+
variant: "body",
|
|
2689
|
+
style: {
|
|
2690
|
+
flex: 1,
|
|
2691
|
+
minWidth: 0
|
|
2692
|
+
},
|
|
2693
|
+
children: t
|
|
2694
|
+
}),
|
|
2695
|
+
n && /* @__PURE__ */ M(w, {
|
|
2696
|
+
accessibilityRole: "button",
|
|
2697
|
+
accessibilityLabel: "Dismiss",
|
|
2698
|
+
hitSlop: 4,
|
|
2699
|
+
onPress: r,
|
|
2700
|
+
style: ({ pressed: e }) => [{
|
|
2701
|
+
flexShrink: 0,
|
|
2702
|
+
marginTop: -2,
|
|
2703
|
+
padding: 4,
|
|
2704
|
+
borderRadius: o.radiusMd,
|
|
2705
|
+
opacity: e ? 1 : .6,
|
|
2706
|
+
backgroundColor: e ? o.activeOverlay : "transparent"
|
|
2707
|
+
}],
|
|
2708
|
+
children: /* @__PURE__ */ M(k, {
|
|
2709
|
+
pointerEvents: "none",
|
|
2710
|
+
children: /* @__PURE__ */ M(X, {
|
|
2711
|
+
icon: R,
|
|
2712
|
+
size: "sm"
|
|
2713
|
+
})
|
|
2714
|
+
})
|
|
2715
|
+
})
|
|
2716
|
+
]
|
|
2717
|
+
});
|
|
2718
|
+
};
|
|
2467
2719
|
//#endregion
|
|
2468
2720
|
//#region src/components/Card/Card.tsx
|
|
2469
|
-
function
|
|
2721
|
+
function Zt(e, t) {
|
|
2470
2722
|
switch (t) {
|
|
2471
2723
|
case "none": return 0;
|
|
2472
2724
|
case "sm": return e.space2;
|
|
@@ -2474,14 +2726,14 @@ function zt(e, t) {
|
|
|
2474
2726
|
default: return e.space4;
|
|
2475
2727
|
}
|
|
2476
2728
|
}
|
|
2477
|
-
var
|
|
2729
|
+
var Qt = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
|
|
2478
2730
|
let s = q(), c = {
|
|
2479
2731
|
backgroundColor: s.cardBgColor,
|
|
2480
2732
|
borderWidth: 1,
|
|
2481
2733
|
borderColor: s.cardShadeColor,
|
|
2482
2734
|
borderRadius: s.radiusLg,
|
|
2483
2735
|
overflow: "hidden",
|
|
2484
|
-
padding:
|
|
2736
|
+
padding: Zt(s, t)
|
|
2485
2737
|
};
|
|
2486
2738
|
return e ? /* @__PURE__ */ M(w, {
|
|
2487
2739
|
ref: o,
|
|
@@ -2510,8 +2762,8 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2510
2762
|
...a,
|
|
2511
2763
|
children: r
|
|
2512
2764
|
});
|
|
2513
|
-
}),
|
|
2514
|
-
let s = q(), l =
|
|
2765
|
+
}), $t = 18, en = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
|
|
2766
|
+
let s = q(), l = G(), u = K(), f = e || t, p = d(new m.Value(+!!f)).current, h = d(!0);
|
|
2515
2767
|
c(() => {
|
|
2516
2768
|
if (h.current) {
|
|
2517
2769
|
h.current = !1;
|
|
@@ -2550,8 +2802,8 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2550
2802
|
...a,
|
|
2551
2803
|
children: /* @__PURE__ */ M(m.View, {
|
|
2552
2804
|
style: {
|
|
2553
|
-
width:
|
|
2554
|
-
height:
|
|
2805
|
+
width: $t,
|
|
2806
|
+
height: $t,
|
|
2555
2807
|
alignItems: "center",
|
|
2556
2808
|
justifyContent: "center",
|
|
2557
2809
|
borderRadius: s.radiusSm,
|
|
@@ -2577,7 +2829,114 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2577
2829
|
})
|
|
2578
2830
|
})
|
|
2579
2831
|
});
|
|
2580
|
-
}),
|
|
2832
|
+
}), tn = 20, nn = i(function({ title: e, subtitle: t, leading: n, checked: r, defaultChecked: i = !1, onCheckedChange: a, disabled: o, style: s, ...l }, u) {
|
|
2833
|
+
let p = q(), h = G(), g = K(), v = r !== void 0, [y, b] = f(i), x = v ? r : y, S = d(new m.Value(+!!x)).current, C = d(!0);
|
|
2834
|
+
c(() => {
|
|
2835
|
+
if (C.current) {
|
|
2836
|
+
C.current = !1;
|
|
2837
|
+
return;
|
|
2838
|
+
}
|
|
2839
|
+
let [e, t, n, r] = p.easingDefault;
|
|
2840
|
+
m.timing(S, {
|
|
2841
|
+
toValue: +!!x,
|
|
2842
|
+
duration: p.durationFast,
|
|
2843
|
+
easing: _.bezier(e, t, n, r),
|
|
2844
|
+
useNativeDriver: !1
|
|
2845
|
+
}).start();
|
|
2846
|
+
}, [
|
|
2847
|
+
x,
|
|
2848
|
+
S,
|
|
2849
|
+
p.durationFast,
|
|
2850
|
+
p.easingDefault
|
|
2851
|
+
]);
|
|
2852
|
+
let T = g === "more" ? p.windowFgColor : h === "dark" ? p.dark1 : p.light4, D = S.interpolate({
|
|
2853
|
+
inputRange: [0, 1],
|
|
2854
|
+
outputRange: [T, p.accentBgColor]
|
|
2855
|
+
}), O = S.interpolate({
|
|
2856
|
+
inputRange: [0, 1],
|
|
2857
|
+
outputRange: ["transparent", p.accentBgColor]
|
|
2858
|
+
});
|
|
2859
|
+
return /* @__PURE__ */ M(w, {
|
|
2860
|
+
ref: u,
|
|
2861
|
+
disabled: o,
|
|
2862
|
+
accessibilityRole: "checkbox",
|
|
2863
|
+
accessibilityState: {
|
|
2864
|
+
checked: x,
|
|
2865
|
+
disabled: !!o
|
|
2866
|
+
},
|
|
2867
|
+
accessibilityLabel: t ? `${e}, ${t}` : e,
|
|
2868
|
+
onPress: () => {
|
|
2869
|
+
let e = !x;
|
|
2870
|
+
v || b(e), a?.(e);
|
|
2871
|
+
},
|
|
2872
|
+
style: [{
|
|
2873
|
+
flexDirection: "row",
|
|
2874
|
+
alignItems: "center",
|
|
2875
|
+
gap: p.space2,
|
|
2876
|
+
paddingVertical: p.space2,
|
|
2877
|
+
paddingHorizontal: p.space4,
|
|
2878
|
+
minHeight: 52,
|
|
2879
|
+
width: "100%",
|
|
2880
|
+
opacity: o ? p.opacityDisabled : 1
|
|
2881
|
+
}, s],
|
|
2882
|
+
...l,
|
|
2883
|
+
children: ({ pressed: r }) => /* @__PURE__ */ N(j, { children: [
|
|
2884
|
+
/* @__PURE__ */ M(m.View, {
|
|
2885
|
+
style: {
|
|
2886
|
+
width: tn,
|
|
2887
|
+
height: tn,
|
|
2888
|
+
flexShrink: 0,
|
|
2889
|
+
alignItems: "center",
|
|
2890
|
+
justifyContent: "center",
|
|
2891
|
+
borderRadius: p.radiusSm,
|
|
2892
|
+
borderWidth: g === "more" ? 2 : 1.5,
|
|
2893
|
+
borderColor: D,
|
|
2894
|
+
backgroundColor: O
|
|
2895
|
+
},
|
|
2896
|
+
children: /* @__PURE__ */ M(m.Text, {
|
|
2897
|
+
style: {
|
|
2898
|
+
opacity: S,
|
|
2899
|
+
color: "#fff",
|
|
2900
|
+
fontSize: 13,
|
|
2901
|
+
fontWeight: "bold",
|
|
2902
|
+
lineHeight: 13
|
|
2903
|
+
},
|
|
2904
|
+
children: "✓"
|
|
2905
|
+
})
|
|
2906
|
+
}),
|
|
2907
|
+
n && /* @__PURE__ */ M(k, {
|
|
2908
|
+
style: { flexShrink: 0 },
|
|
2909
|
+
children: n
|
|
2910
|
+
}),
|
|
2911
|
+
/* @__PURE__ */ N(k, {
|
|
2912
|
+
style: {
|
|
2913
|
+
flex: 1,
|
|
2914
|
+
gap: 2
|
|
2915
|
+
},
|
|
2916
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
2917
|
+
variant: "body",
|
|
2918
|
+
numberOfLines: 1,
|
|
2919
|
+
ellipsizeMode: "tail",
|
|
2920
|
+
style: {
|
|
2921
|
+
color: p.cardFgColor,
|
|
2922
|
+
fontWeight: String(p.fontWeightNormal)
|
|
2923
|
+
},
|
|
2924
|
+
children: e
|
|
2925
|
+
}), t && /* @__PURE__ */ M(Y, {
|
|
2926
|
+
variant: "caption",
|
|
2927
|
+
color: "dim",
|
|
2928
|
+
numberOfLines: 1,
|
|
2929
|
+
ellipsizeMode: "tail",
|
|
2930
|
+
children: t
|
|
2931
|
+
})]
|
|
2932
|
+
}),
|
|
2933
|
+
r && !o ? /* @__PURE__ */ M(k, {
|
|
2934
|
+
pointerEvents: "none",
|
|
2935
|
+
style: [E.absoluteFill, { backgroundColor: p.activeOverlay }]
|
|
2936
|
+
}) : null
|
|
2937
|
+
] })
|
|
2938
|
+
});
|
|
2939
|
+
}), rn = ({ label: e, icon: t, onRemove: n, selectable: r = !1, selected: i = !1, onToggle: a, disabled: o = !1, style: s, testID: c }) => {
|
|
2581
2940
|
let l = q(), u = r && !n, d = {
|
|
2582
2941
|
flexDirection: "row",
|
|
2583
2942
|
alignItems: "center",
|
|
@@ -2649,23 +3008,23 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2649
3008
|
],
|
|
2650
3009
|
children: p
|
|
2651
3010
|
});
|
|
2652
|
-
},
|
|
3011
|
+
}, an = (e) => Math.min(Math.max(e, 0), 1), on = i(function({ maximumSize: e = 600, tighteningThreshold: t = 1, children: n, style: r, ...i }, a) {
|
|
2653
3012
|
return /* @__PURE__ */ M(k, {
|
|
2654
3013
|
ref: a,
|
|
2655
3014
|
style: [{
|
|
2656
|
-
width: `${
|
|
3015
|
+
width: `${an(t) * 100}%`,
|
|
2657
3016
|
maxWidth: e,
|
|
2658
3017
|
alignSelf: "center"
|
|
2659
3018
|
}, r],
|
|
2660
3019
|
...i,
|
|
2661
3020
|
children: n
|
|
2662
3021
|
});
|
|
2663
|
-
}),
|
|
3022
|
+
}), sn = 12, Z = 12, cn = 7, ln = (e, t) => ({
|
|
2664
3023
|
top: e.top - t,
|
|
2665
3024
|
left: e.left - t,
|
|
2666
3025
|
width: e.width + t * 2,
|
|
2667
3026
|
height: e.height + t * 2
|
|
2668
|
-
}),
|
|
3027
|
+
}), un = (e, t, n, r) => {
|
|
2669
3028
|
let i = e.left + e.width, a = e.top + e.height, o = e.left + e.width / 2, s = e.top + e.height / 2, c = [...new Set([
|
|
2670
3029
|
r,
|
|
2671
3030
|
{
|
|
@@ -2681,20 +3040,20 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2681
3040
|
])], l = (n) => {
|
|
2682
3041
|
switch (n) {
|
|
2683
3042
|
case "bottom": return {
|
|
2684
|
-
top: a +
|
|
3043
|
+
top: a + sn,
|
|
2685
3044
|
left: o - t.width / 2
|
|
2686
3045
|
};
|
|
2687
3046
|
case "top": return {
|
|
2688
|
-
top: e.top - t.height -
|
|
3047
|
+
top: e.top - t.height - sn,
|
|
2689
3048
|
left: o - t.width / 2
|
|
2690
3049
|
};
|
|
2691
3050
|
case "left": return {
|
|
2692
3051
|
top: s - t.height / 2,
|
|
2693
|
-
left: e.left - t.width -
|
|
3052
|
+
left: e.left - t.width - sn
|
|
2694
3053
|
};
|
|
2695
3054
|
default: return {
|
|
2696
3055
|
top: s - t.height / 2,
|
|
2697
|
-
left: i +
|
|
3056
|
+
left: i + sn
|
|
2698
3057
|
};
|
|
2699
3058
|
}
|
|
2700
3059
|
};
|
|
@@ -2716,7 +3075,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2716
3075
|
top: r,
|
|
2717
3076
|
left: a,
|
|
2718
3077
|
placement: e,
|
|
2719
|
-
arrowOffset: Math.max(11, Math.min(s, t.width -
|
|
3078
|
+
arrowOffset: Math.max(11, Math.min(s, t.width - cn - 4))
|
|
2720
3079
|
};
|
|
2721
3080
|
}
|
|
2722
3081
|
if (!(i >= Z && i + t.width <= n.width - Z)) continue;
|
|
@@ -2725,17 +3084,17 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2725
3084
|
top: a,
|
|
2726
3085
|
left: i,
|
|
2727
3086
|
placement: e,
|
|
2728
|
-
arrowOffset: Math.max(11, Math.min(c, t.height -
|
|
3087
|
+
arrowOffset: Math.max(11, Math.min(c, t.height - cn - 4))
|
|
2729
3088
|
};
|
|
2730
3089
|
}
|
|
2731
|
-
let u = a +
|
|
3090
|
+
let u = a + sn, d = o - t.width / 2, f = Math.max(Z, Math.min(u, n.height - t.height - Z)), p = Math.max(Z, Math.min(d, n.width - t.width - Z)), m = o - p;
|
|
2732
3091
|
return {
|
|
2733
3092
|
top: f,
|
|
2734
3093
|
left: p,
|
|
2735
3094
|
placement: "bottom",
|
|
2736
|
-
arrowOffset: Math.max(11, Math.min(m, t.width -
|
|
3095
|
+
arrowOffset: Math.max(11, Math.min(m, t.width - cn - 4))
|
|
2737
3096
|
};
|
|
2738
|
-
},
|
|
3097
|
+
}, dn = 7, fn = "rgba(0, 0, 0, 0.55)", pn = ({ open: e, targetRef: t, title: n, description: r, placement: i = "bottom", spotlight: a = !0, spotlightPadding: o = 8, dismissOnBackdrop: s = !1, step: l, stepCount: u, primaryAction: p, secondaryAction: _, onDismiss: v, style: y, testID: b }) => {
|
|
2739
3098
|
let S = q(), C = J(), [T, D] = f(null), [O, A] = f(null), [P, F] = f(null), I = d(new m.Value(0)).current;
|
|
2740
3099
|
c(() => {
|
|
2741
3100
|
if (!e) {
|
|
@@ -2760,7 +3119,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2760
3119
|
]), c(() => {
|
|
2761
3120
|
if (!T || !O) return;
|
|
2762
3121
|
let { width: e, height: t } = g.get("window");
|
|
2763
|
-
F(
|
|
3122
|
+
F(un(T, O, {
|
|
2764
3123
|
width: e,
|
|
2765
3124
|
height: t
|
|
2766
3125
|
}, i));
|
|
@@ -2798,11 +3157,11 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2798
3157
|
});
|
|
2799
3158
|
};
|
|
2800
3159
|
if (!e) return null;
|
|
2801
|
-
let R = T ?
|
|
3160
|
+
let R = T ? ln(T, o) : null, { width: z } = g.get("window"), B = {
|
|
2802
3161
|
position: "absolute",
|
|
2803
3162
|
width: 0,
|
|
2804
3163
|
height: 0,
|
|
2805
|
-
borderWidth:
|
|
3164
|
+
borderWidth: dn,
|
|
2806
3165
|
borderColor: "transparent"
|
|
2807
3166
|
}, V = (() => {
|
|
2808
3167
|
if (!P) return null;
|
|
@@ -2810,25 +3169,25 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2810
3169
|
case "top": return {
|
|
2811
3170
|
...B,
|
|
2812
3171
|
bottom: -14,
|
|
2813
|
-
left: P.arrowOffset -
|
|
3172
|
+
left: P.arrowOffset - dn,
|
|
2814
3173
|
borderTopColor: S.cardBgColor
|
|
2815
3174
|
};
|
|
2816
3175
|
case "bottom": return {
|
|
2817
3176
|
...B,
|
|
2818
3177
|
top: -14,
|
|
2819
|
-
left: P.arrowOffset -
|
|
3178
|
+
left: P.arrowOffset - dn,
|
|
2820
3179
|
borderBottomColor: S.cardBgColor
|
|
2821
3180
|
};
|
|
2822
3181
|
case "left": return {
|
|
2823
3182
|
...B,
|
|
2824
3183
|
right: -14,
|
|
2825
|
-
top: P.arrowOffset -
|
|
3184
|
+
top: P.arrowOffset - dn,
|
|
2826
3185
|
borderLeftColor: S.cardBgColor
|
|
2827
3186
|
};
|
|
2828
3187
|
default: return {
|
|
2829
3188
|
...B,
|
|
2830
3189
|
left: -14,
|
|
2831
|
-
top: P.arrowOffset -
|
|
3190
|
+
top: P.arrowOffset - dn,
|
|
2832
3191
|
borderRightColor: S.cardBgColor
|
|
2833
3192
|
};
|
|
2834
3193
|
}
|
|
@@ -2857,7 +3216,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2857
3216
|
left: 0,
|
|
2858
3217
|
right: 0,
|
|
2859
3218
|
height: Math.max(0, R.top),
|
|
2860
|
-
backgroundColor:
|
|
3219
|
+
backgroundColor: fn
|
|
2861
3220
|
} }),
|
|
2862
3221
|
/* @__PURE__ */ M(k, { style: {
|
|
2863
3222
|
position: "absolute",
|
|
@@ -2865,7 +3224,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2865
3224
|
left: 0,
|
|
2866
3225
|
right: 0,
|
|
2867
3226
|
bottom: 0,
|
|
2868
|
-
backgroundColor:
|
|
3227
|
+
backgroundColor: fn
|
|
2869
3228
|
} }),
|
|
2870
3229
|
/* @__PURE__ */ M(k, { style: {
|
|
2871
3230
|
position: "absolute",
|
|
@@ -2873,7 +3232,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2873
3232
|
left: 0,
|
|
2874
3233
|
width: Math.max(0, R.left),
|
|
2875
3234
|
height: R.height,
|
|
2876
|
-
backgroundColor:
|
|
3235
|
+
backgroundColor: fn
|
|
2877
3236
|
} }),
|
|
2878
3237
|
/* @__PURE__ */ M(k, { style: {
|
|
2879
3238
|
position: "absolute",
|
|
@@ -2881,7 +3240,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2881
3240
|
left: Math.max(0, R.left + R.width),
|
|
2882
3241
|
right: 0,
|
|
2883
3242
|
height: R.height,
|
|
2884
|
-
backgroundColor:
|
|
3243
|
+
backgroundColor: fn
|
|
2885
3244
|
} }),
|
|
2886
3245
|
/* @__PURE__ */ M(k, {
|
|
2887
3246
|
pointerEvents: "none",
|
|
@@ -2965,12 +3324,12 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2965
3324
|
gap: S.space2,
|
|
2966
3325
|
marginTop: S.space3
|
|
2967
3326
|
},
|
|
2968
|
-
children: [_ && /* @__PURE__ */ M(
|
|
3327
|
+
children: [_ && /* @__PURE__ */ M(Wt, {
|
|
2969
3328
|
variant: "flat",
|
|
2970
3329
|
size: "sm",
|
|
2971
3330
|
onPress: _.onPress,
|
|
2972
3331
|
children: _.label
|
|
2973
|
-
}), p && /* @__PURE__ */ M(
|
|
3332
|
+
}), p && /* @__PURE__ */ M(Wt, {
|
|
2974
3333
|
variant: "suggested",
|
|
2975
3334
|
size: "sm",
|
|
2976
3335
|
onPress: p.onPress,
|
|
@@ -2981,18 +3340,18 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
2981
3340
|
})]
|
|
2982
3341
|
})
|
|
2983
3342
|
});
|
|
2984
|
-
},
|
|
3343
|
+
}, mn = {
|
|
2985
3344
|
next: "Next",
|
|
2986
3345
|
back: "Back",
|
|
2987
3346
|
skip: "Skip",
|
|
2988
3347
|
finish: "Done"
|
|
2989
|
-
},
|
|
3348
|
+
}, hn = ({ steps: e, open: t, startIndex: n = 0, onFinish: r, onSkip: i, onStepChange: a, placement: o = "bottom", spotlight: s = !0, dismissOnBackdrop: l = !1, labels: u, testID: d }) => {
|
|
2990
3349
|
let [p, m] = f(n);
|
|
2991
3350
|
if (c(() => {
|
|
2992
3351
|
t && m(n);
|
|
2993
3352
|
}, [t, n]), !t || e.length === 0) return null;
|
|
2994
3353
|
let h = Math.min(p, e.length - 1), g = e[h], _ = h === 0, v = h === e.length - 1, y = {
|
|
2995
|
-
|
|
3354
|
+
...mn,
|
|
2996
3355
|
...u
|
|
2997
3356
|
}, b = (e) => {
|
|
2998
3357
|
m(e), a?.(e);
|
|
@@ -3006,7 +3365,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3006
3365
|
label: y.back,
|
|
3007
3366
|
onPress: () => b(h - 1)
|
|
3008
3367
|
};
|
|
3009
|
-
return /* @__PURE__ */ M(
|
|
3368
|
+
return /* @__PURE__ */ M(pn, {
|
|
3010
3369
|
open: t,
|
|
3011
3370
|
targetRef: g.targetRef,
|
|
3012
3371
|
title: g.title,
|
|
@@ -3021,19 +3380,19 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3021
3380
|
onDismiss: () => i?.(),
|
|
3022
3381
|
testID: d
|
|
3023
3382
|
});
|
|
3024
|
-
},
|
|
3383
|
+
}, gn = {
|
|
3025
3384
|
start: "flex-start",
|
|
3026
3385
|
center: "center",
|
|
3027
3386
|
end: "flex-end",
|
|
3028
3387
|
stretch: "stretch"
|
|
3029
|
-
},
|
|
3388
|
+
}, _n = {
|
|
3030
3389
|
start: "flex-start",
|
|
3031
3390
|
center: "center",
|
|
3032
3391
|
end: "flex-end",
|
|
3033
3392
|
"space-between": "space-between",
|
|
3034
3393
|
"space-around": "space-around",
|
|
3035
3394
|
"space-evenly": "space-evenly"
|
|
3036
|
-
},
|
|
3395
|
+
}, vn = i(function({ childSpacing: e = 6, lineSpacing: t, justify: n = "start", align: r = "center", wrapReverse: i = !1, children: a, style: o, ...s }, c) {
|
|
3037
3396
|
return /* @__PURE__ */ M(k, {
|
|
3038
3397
|
ref: c,
|
|
3039
3398
|
style: [{
|
|
@@ -3041,19 +3400,19 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3041
3400
|
flexWrap: i ? "wrap-reverse" : "wrap",
|
|
3042
3401
|
columnGap: e,
|
|
3043
3402
|
rowGap: t ?? e,
|
|
3044
|
-
justifyContent:
|
|
3045
|
-
alignItems:
|
|
3403
|
+
justifyContent: _n[n],
|
|
3404
|
+
alignItems: gn[r],
|
|
3046
3405
|
alignContent: "stretch"
|
|
3047
3406
|
}, o],
|
|
3048
3407
|
...s,
|
|
3049
3408
|
children: a
|
|
3050
3409
|
});
|
|
3051
|
-
}),
|
|
3410
|
+
}), yn = {
|
|
3052
3411
|
sm: 22,
|
|
3053
3412
|
md: 30,
|
|
3054
3413
|
lg: 38
|
|
3055
|
-
},
|
|
3056
|
-
let l = q(), u =
|
|
3414
|
+
}, bn = i(function({ color: e, selected: t = !1, size: n = "md", onSelect: r, accessibilityLabel: i, disabled: a = !1, style: o, ...s }, c) {
|
|
3415
|
+
let l = q(), u = G() === "dark", d = yn[n], f = u ? "rgba(255, 255, 255, 0.12)" : "rgba(0, 0, 0, 0.15)", p = Math.round(d * .55);
|
|
3057
3416
|
return /* @__PURE__ */ M(k, {
|
|
3058
3417
|
style: [
|
|
3059
3418
|
{
|
|
@@ -3087,11 +3446,11 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3087
3446
|
borderColor: t ? "rgba(255, 255, 255, 0.9)" : f
|
|
3088
3447
|
},
|
|
3089
3448
|
...s,
|
|
3090
|
-
children: t ? /* @__PURE__ */ N(
|
|
3449
|
+
children: t ? /* @__PURE__ */ N(_e, {
|
|
3091
3450
|
width: p,
|
|
3092
3451
|
height: p,
|
|
3093
3452
|
viewBox: "0 0 16 16",
|
|
3094
|
-
children: [/* @__PURE__ */ M(
|
|
3453
|
+
children: [/* @__PURE__ */ M(U, {
|
|
3095
3454
|
d: "M3 8l3.5 3.5L13 5",
|
|
3096
3455
|
stroke: "rgba(0, 0, 0, 0.35)",
|
|
3097
3456
|
strokeWidth: 2,
|
|
@@ -3099,7 +3458,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3099
3458
|
strokeLinejoin: "round",
|
|
3100
3459
|
fill: "none",
|
|
3101
3460
|
translateY: 1
|
|
3102
|
-
}), /* @__PURE__ */ M(
|
|
3461
|
+
}), /* @__PURE__ */ M(U, {
|
|
3103
3462
|
d: "M3 8l3.5 3.5L13 5",
|
|
3104
3463
|
stroke: "white",
|
|
3105
3464
|
strokeWidth: 2,
|
|
@@ -3110,7 +3469,7 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3110
3469
|
}) : null
|
|
3111
3470
|
})
|
|
3112
3471
|
});
|
|
3113
|
-
}),
|
|
3472
|
+
}), xn = [
|
|
3114
3473
|
{
|
|
3115
3474
|
value: "#3584e4",
|
|
3116
3475
|
label: "Blue"
|
|
@@ -3147,23 +3506,23 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3147
3506
|
value: "#5e5c64",
|
|
3148
3507
|
label: "Slate"
|
|
3149
3508
|
}
|
|
3150
|
-
],
|
|
3151
|
-
let u = q(), d =
|
|
3152
|
-
return /* @__PURE__ */ N(
|
|
3509
|
+
], Sn = ({ value: e, onChange: t, colors: n = xn, allowCustom: r = !1, onRequestCustom: i, size: a = "md", accessibilityLabel: o = "Color", disabled: s = !1, style: c, testID: l }) => {
|
|
3510
|
+
let u = q(), d = G() === "dark", f = yn[a], p = e !== void 0 && !n.some((t) => t.value === e);
|
|
3511
|
+
return /* @__PURE__ */ N(vn, {
|
|
3153
3512
|
testID: l,
|
|
3154
3513
|
accessibilityRole: "radiogroup",
|
|
3155
3514
|
accessibilityLabel: o,
|
|
3156
3515
|
childSpacing: 8,
|
|
3157
3516
|
align: "center",
|
|
3158
3517
|
style: c,
|
|
3159
|
-
children: [n.map((n) => /* @__PURE__ */ M(
|
|
3518
|
+
children: [n.map((n) => /* @__PURE__ */ M(bn, {
|
|
3160
3519
|
color: n.value,
|
|
3161
3520
|
size: a,
|
|
3162
3521
|
selected: n.value === e,
|
|
3163
3522
|
disabled: s,
|
|
3164
3523
|
onSelect: t,
|
|
3165
3524
|
accessibilityLabel: n.label ?? n.value
|
|
3166
|
-
}, n.value)), r ? /* @__PURE__ */ N(j, { children: [p && e ? /* @__PURE__ */ M(
|
|
3525
|
+
}, n.value)), r ? /* @__PURE__ */ N(j, { children: [p && e ? /* @__PURE__ */ M(bn, {
|
|
3167
3526
|
color: e,
|
|
3168
3527
|
size: a,
|
|
3169
3528
|
selected: !0,
|
|
@@ -3201,17 +3560,17 @@ var Bt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
|
|
|
3201
3560
|
})
|
|
3202
3561
|
})] }) : null]
|
|
3203
3562
|
});
|
|
3204
|
-
},
|
|
3205
|
-
function
|
|
3206
|
-
let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t -
|
|
3563
|
+
}, Cn = 4, wn = 8, Tn = 280;
|
|
3564
|
+
function En(e, t) {
|
|
3565
|
+
let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - Cn : e.y + e.height + Cn;
|
|
3207
3566
|
return {
|
|
3208
|
-
top: Math.max(
|
|
3567
|
+
top: Math.max(wn, Math.min(i, n - t - wn)),
|
|
3209
3568
|
left: e.x,
|
|
3210
3569
|
width: e.width,
|
|
3211
3570
|
flipUp: r
|
|
3212
3571
|
};
|
|
3213
3572
|
}
|
|
3214
|
-
var
|
|
3573
|
+
var Dn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
|
|
3215
3574
|
let l = q(), u = J(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [b, S] = f(null), C = d(null), E = d(new m.Value(0)).current, D = e.find((e) => e.value === t), O = () => {
|
|
3216
3575
|
a || h(!0);
|
|
3217
3576
|
}, A = () => h(!1), j = (e) => {
|
|
@@ -3231,7 +3590,7 @@ var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3231
3590
|
});
|
|
3232
3591
|
});
|
|
3233
3592
|
}, [p]), c(() => {
|
|
3234
|
-
g === null || v === null || S(
|
|
3593
|
+
g === null || v === null || S(En(g, v));
|
|
3235
3594
|
}, [g, v]), c(() => {
|
|
3236
3595
|
if (b) {
|
|
3237
3596
|
if (u) {
|
|
@@ -3287,7 +3646,7 @@ var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3287
3646
|
},
|
|
3288
3647
|
children: D?.label ?? r
|
|
3289
3648
|
}), /* @__PURE__ */ M(X, {
|
|
3290
|
-
icon:
|
|
3649
|
+
icon: ae,
|
|
3291
3650
|
size: "md",
|
|
3292
3651
|
color: "default",
|
|
3293
3652
|
style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
|
|
@@ -3304,13 +3663,13 @@ var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3304
3663
|
testID: s ? `${s}-backdrop` : void 0,
|
|
3305
3664
|
children: /* @__PURE__ */ M(m.View, {
|
|
3306
3665
|
onLayout: (e) => {
|
|
3307
|
-
y(Math.min(e.nativeEvent.layout.height,
|
|
3666
|
+
y(Math.min(e.nativeEvent.layout.height, Tn));
|
|
3308
3667
|
},
|
|
3309
3668
|
role: "list",
|
|
3310
3669
|
accessible: !0,
|
|
3311
3670
|
style: [{
|
|
3312
3671
|
position: "absolute",
|
|
3313
|
-
maxHeight:
|
|
3672
|
+
maxHeight: Tn,
|
|
3314
3673
|
backgroundColor: l.popoverBgColor,
|
|
3315
3674
|
borderWidth: 1,
|
|
3316
3675
|
borderColor: l.cardShadeColor,
|
|
@@ -3391,16 +3750,16 @@ var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3391
3750
|
})
|
|
3392
3751
|
})]
|
|
3393
3752
|
});
|
|
3394
|
-
},
|
|
3753
|
+
}, On = 120, kn = ({ title: e, subtitle: t, leading: n, options: r, value: i, defaultValue: a, onValueChange: o, placeholder: s = "—", accessibilityLabel: c, disabled: l = !1, style: u, testID: d }) => {
|
|
3395
3754
|
let p = q(), m = i !== void 0, [h, g] = f(a), _ = m ? i : h;
|
|
3396
|
-
return /* @__PURE__ */ M(
|
|
3755
|
+
return /* @__PURE__ */ M(qe, {
|
|
3397
3756
|
testID: d,
|
|
3398
3757
|
title: e,
|
|
3399
3758
|
subtitle: t,
|
|
3400
3759
|
leading: n,
|
|
3401
3760
|
disabled: l,
|
|
3402
3761
|
style: [l ? { opacity: p.opacityDisabled } : null, u],
|
|
3403
|
-
trailing: /* @__PURE__ */ M(
|
|
3762
|
+
trailing: /* @__PURE__ */ M(Dn, {
|
|
3404
3763
|
options: r,
|
|
3405
3764
|
value: _,
|
|
3406
3765
|
placeholder: s,
|
|
@@ -3409,11 +3768,11 @@ var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3409
3768
|
onChange: (e) => {
|
|
3410
3769
|
m || g(e), o?.(e);
|
|
3411
3770
|
},
|
|
3412
|
-
style: { minWidth:
|
|
3771
|
+
style: { minWidth: On }
|
|
3413
3772
|
})
|
|
3414
3773
|
});
|
|
3415
|
-
},
|
|
3416
|
-
let p = q(), g =
|
|
3774
|
+
}, An = m.createAnimatedComponent(w), jn = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
|
|
3775
|
+
let p = q(), g = G(), v = J(), y = d(new m.Value(+!!v)).current, b = !!s, S = () => {
|
|
3417
3776
|
let e = s?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
3418
3777
|
e && l?.(e.id);
|
|
3419
3778
|
}, C = () => {
|
|
@@ -3499,7 +3858,7 @@ var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3499
3858
|
animationType: "none",
|
|
3500
3859
|
statusBarTranslucent: !0,
|
|
3501
3860
|
onRequestClose: C,
|
|
3502
|
-
children: /* @__PURE__ */ M(
|
|
3861
|
+
children: /* @__PURE__ */ M(An, {
|
|
3503
3862
|
testID: f,
|
|
3504
3863
|
onPress: T,
|
|
3505
3864
|
style: {
|
|
@@ -3571,7 +3930,7 @@ var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3571
3930
|
})
|
|
3572
3931
|
})
|
|
3573
3932
|
});
|
|
3574
|
-
},
|
|
3933
|
+
}, Mn = ({ children: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
3575
3934
|
let i = q(), a = !!e;
|
|
3576
3935
|
return /* @__PURE__ */ N(k, {
|
|
3577
3936
|
testID: r,
|
|
@@ -3598,8 +3957,8 @@ var pn = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
|
|
|
3598
3957
|
backgroundColor: i.cardShadeColor
|
|
3599
3958
|
} })] })]
|
|
3600
3959
|
});
|
|
3601
|
-
},
|
|
3602
|
-
function
|
|
3960
|
+
}, Nn = 6, Q = 8, Pn = 5;
|
|
3961
|
+
function Fn(e, t) {
|
|
3603
3962
|
if (e) {
|
|
3604
3963
|
if (typeof e == "function") {
|
|
3605
3964
|
e(t);
|
|
@@ -3608,27 +3967,27 @@ function xn(e, t) {
|
|
|
3608
3967
|
e.current = t;
|
|
3609
3968
|
}
|
|
3610
3969
|
}
|
|
3611
|
-
function
|
|
3970
|
+
function In(e, t, n) {
|
|
3612
3971
|
switch (n) {
|
|
3613
3972
|
case "top": return {
|
|
3614
|
-
top: e.y - t.height -
|
|
3973
|
+
top: e.y - t.height - Nn,
|
|
3615
3974
|
left: e.x + e.width / 2 - t.width / 2
|
|
3616
3975
|
};
|
|
3617
3976
|
case "bottom": return {
|
|
3618
|
-
top: e.y + e.height +
|
|
3977
|
+
top: e.y + e.height + Nn,
|
|
3619
3978
|
left: e.x + e.width / 2 - t.width / 2
|
|
3620
3979
|
};
|
|
3621
3980
|
case "left": return {
|
|
3622
3981
|
top: e.y + e.height / 2 - t.height / 2,
|
|
3623
|
-
left: e.x - t.width -
|
|
3982
|
+
left: e.x - t.width - Nn
|
|
3624
3983
|
};
|
|
3625
3984
|
case "right": return {
|
|
3626
3985
|
top: e.y + e.height / 2 - t.height / 2,
|
|
3627
|
-
left: e.x + e.width +
|
|
3986
|
+
left: e.x + e.width + Nn
|
|
3628
3987
|
};
|
|
3629
3988
|
}
|
|
3630
3989
|
}
|
|
3631
|
-
function
|
|
3990
|
+
function Ln(e, t, n) {
|
|
3632
3991
|
let { width: r, height: i } = g.get("window"), a = [
|
|
3633
3992
|
n,
|
|
3634
3993
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -3638,22 +3997,22 @@ function Cn(e, t, n) {
|
|
|
3638
3997
|
"right"
|
|
3639
3998
|
];
|
|
3640
3999
|
for (let n of a) {
|
|
3641
|
-
let { top: a, left: o } =
|
|
4000
|
+
let { top: a, left: o } = In(e, t, n), s = o >= Q && o + t.width <= r - Q, c = a >= Q && a + t.height <= i - Q;
|
|
3642
4001
|
if (s && c) return {
|
|
3643
4002
|
top: Math.max(Q, Math.min(a, i - t.height - Q)),
|
|
3644
4003
|
left: Math.max(Q, Math.min(o, r - t.width - Q)),
|
|
3645
4004
|
placement: n
|
|
3646
4005
|
};
|
|
3647
4006
|
}
|
|
3648
|
-
let { top: o, left: s } =
|
|
4007
|
+
let { top: o, left: s } = In(e, t, n);
|
|
3649
4008
|
return {
|
|
3650
4009
|
top: Math.max(Q, Math.min(o, i - t.height - Q)),
|
|
3651
4010
|
left: Math.max(Q, Math.min(s, r - t.width - Q)),
|
|
3652
4011
|
placement: n
|
|
3653
4012
|
};
|
|
3654
4013
|
}
|
|
3655
|
-
var
|
|
3656
|
-
let a = q(), s =
|
|
4014
|
+
var Rn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
4015
|
+
let a = q(), s = G(), l = J(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, b] = f(null), S = d(null), C = d(null), w = d(new m.Value(0)).current, T = o(() => {
|
|
3657
4016
|
C.current &&= (clearTimeout(C.current), null);
|
|
3658
4017
|
}, []), D = o(() => {
|
|
3659
4018
|
T(), p(!0);
|
|
@@ -3680,7 +4039,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3680
4039
|
});
|
|
3681
4040
|
});
|
|
3682
4041
|
}, [u]), c(() => {
|
|
3683
|
-
!h || !_ || b(
|
|
4042
|
+
!h || !_ || b(Ln(h, _, t));
|
|
3684
4043
|
}, [
|
|
3685
4044
|
h,
|
|
3686
4045
|
_,
|
|
@@ -3721,7 +4080,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3721
4080
|
position: "absolute",
|
|
3722
4081
|
width: 0,
|
|
3723
4082
|
height: 0,
|
|
3724
|
-
borderWidth:
|
|
4083
|
+
borderWidth: Pn,
|
|
3725
4084
|
borderColor: "transparent"
|
|
3726
4085
|
}, z = (() => {
|
|
3727
4086
|
switch (y?.placement) {
|
|
@@ -3758,7 +4117,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3758
4117
|
})(), B = i.props.ref;
|
|
3759
4118
|
return /* @__PURE__ */ N(j, { children: [n(i, {
|
|
3760
4119
|
ref: (e) => {
|
|
3761
|
-
S.current = e,
|
|
4120
|
+
S.current = e, Fn(B, e);
|
|
3762
4121
|
},
|
|
3763
4122
|
delayLongPress: r,
|
|
3764
4123
|
accessibilityHint: i.props.accessibilityHint ?? e,
|
|
@@ -3827,12 +4186,12 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3827
4186
|
})
|
|
3828
4187
|
})
|
|
3829
4188
|
})] });
|
|
3830
|
-
},
|
|
4189
|
+
}, zn = {
|
|
3831
4190
|
sm: "sm",
|
|
3832
4191
|
md: "md",
|
|
3833
4192
|
lg: "lg"
|
|
3834
|
-
},
|
|
3835
|
-
let u = /* @__PURE__ */ M(
|
|
4193
|
+
}, Bn = i(function({ icon: e, label: t, variant: n = "default", size: r = "md", iconSize: i, tooltip: a, tooltipPlacement: o, tooltipDelay: s, ...c }, l) {
|
|
4194
|
+
let u = /* @__PURE__ */ M(Wt, {
|
|
3836
4195
|
ref: l,
|
|
3837
4196
|
accessibilityLabel: t,
|
|
3838
4197
|
shape: "circular",
|
|
@@ -3842,20 +4201,20 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3842
4201
|
...c,
|
|
3843
4202
|
children: /* @__PURE__ */ M(X, {
|
|
3844
4203
|
icon: e,
|
|
3845
|
-
size: i ??
|
|
4204
|
+
size: i ?? zn[r]
|
|
3846
4205
|
})
|
|
3847
4206
|
});
|
|
3848
|
-
return a ? /* @__PURE__ */ M(
|
|
4207
|
+
return a ? /* @__PURE__ */ M(Rn, {
|
|
3849
4208
|
label: a,
|
|
3850
4209
|
placement: o,
|
|
3851
4210
|
delay: s,
|
|
3852
4211
|
children: u
|
|
3853
4212
|
}) : u;
|
|
3854
|
-
}),
|
|
4213
|
+
}), Vn = m.createAnimatedComponent(w), Hn = r(0), Un = {
|
|
3855
4214
|
classic: 420,
|
|
3856
4215
|
wide: 640
|
|
3857
|
-
},
|
|
3858
|
-
let v = q(), y =
|
|
4216
|
+
}, Wn = .85, Gn = 240, Kn = ({ open: e, side: t = "right", size: n = "classic", title: r, content: i, children: a, onClose: o, closeOnBackdrop: l = !0, rail: u, style: f, testID: p }) => {
|
|
4217
|
+
let v = q(), y = G(), b = J(), S = s(Hn), C = i === void 0 ? a : i, T = Un[n], E = S > 0 ? Math.max(Gn, Math.round(T * Wn ** S)) : T, D = g.get("window").width - v.space3 * 2, O = Math.min(E, D), A = d(new m.Value(+!!b)).current;
|
|
3859
4218
|
c(() => {
|
|
3860
4219
|
if (!e) return;
|
|
3861
4220
|
if (b) {
|
|
@@ -3902,7 +4261,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3902
4261
|
[t === "right" ? "borderRightWidth" : "borderLeftWidth"]: 1,
|
|
3903
4262
|
borderColor: v.cardShadeColor
|
|
3904
4263
|
},
|
|
3905
|
-
children: u.map((e) => /* @__PURE__ */ M(
|
|
4264
|
+
children: u.map((e) => /* @__PURE__ */ M(Bn, {
|
|
3906
4265
|
icon: e.icon,
|
|
3907
4266
|
label: e.label,
|
|
3908
4267
|
tooltip: e.label,
|
|
@@ -3923,7 +4282,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3923
4282
|
animationType: "none",
|
|
3924
4283
|
statusBarTranslucent: !0,
|
|
3925
4284
|
onRequestClose: o,
|
|
3926
|
-
children: /* @__PURE__ */ M(
|
|
4285
|
+
children: /* @__PURE__ */ M(Vn, {
|
|
3927
4286
|
testID: p,
|
|
3928
4287
|
onPress: l ? o : void 0,
|
|
3929
4288
|
accessible: !1,
|
|
@@ -3979,7 +4338,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3979
4338
|
fontWeight: String(v.fontWeightBold)
|
|
3980
4339
|
},
|
|
3981
4340
|
children: r
|
|
3982
|
-
}), o && /* @__PURE__ */ M(
|
|
4341
|
+
}), o && /* @__PURE__ */ M(Wt, {
|
|
3983
4342
|
variant: "flat",
|
|
3984
4343
|
shape: "circular",
|
|
3985
4344
|
size: "sm",
|
|
@@ -3996,7 +4355,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
3996
4355
|
padding: v.space4,
|
|
3997
4356
|
paddingTop: r ? 0 : v.space4
|
|
3998
4357
|
},
|
|
3999
|
-
children: /* @__PURE__ */ M(
|
|
4358
|
+
children: /* @__PURE__ */ M(Hn.Provider, {
|
|
4000
4359
|
value: S + 1,
|
|
4001
4360
|
children: typeof C == "string" ? /* @__PURE__ */ M(Y, {
|
|
4002
4361
|
variant: "body",
|
|
@@ -4011,7 +4370,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
4011
4370
|
})
|
|
4012
4371
|
})
|
|
4013
4372
|
});
|
|
4014
|
-
},
|
|
4373
|
+
}, qn = 6, Jn = i(function({ title: e, value: t, defaultValue: n = "", onValueChange: r, onChangeText: i, leading: a, trailing: o, disabled: s = !1, onFocus: l, onBlur: u, accessibilityLabel: p, testID: h, style: g, ..._ }, v) {
|
|
4015
4374
|
let y = q(), b = J(), x = t !== void 0, [S, C] = f(n), T = x ? t : S, [E, D] = f(!1), [A, j] = f(56), P = d(null), F = E || T.length > 0, I = d(new m.Value(+!!F)).current;
|
|
4016
4375
|
c(() => {
|
|
4017
4376
|
if (b) {
|
|
@@ -4083,7 +4442,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
4083
4442
|
}),
|
|
4084
4443
|
transform: [{ translateY: I.interpolate({
|
|
4085
4444
|
inputRange: [0, 1],
|
|
4086
|
-
outputRange: [0,
|
|
4445
|
+
outputRange: [0, qn - z]
|
|
4087
4446
|
}) }]
|
|
4088
4447
|
},
|
|
4089
4448
|
children: e
|
|
@@ -4130,7 +4489,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
4130
4489
|
}) : null
|
|
4131
4490
|
]
|
|
4132
4491
|
});
|
|
4133
|
-
}),
|
|
4492
|
+
}), Yn = ({ label: e, children: t, expanded: n, defaultExpanded: r = !1, onExpandedChange: i, disabled: a = !1, style: o, testID: s }) => {
|
|
4134
4493
|
let l = q(), u = J(), p = n !== void 0, [h, g] = f(r), v = p ? n : h, [y, b] = f(0), x = d(!1), S = d(new m.Value(0)).current, C = d(new m.Value(+!!r)).current, T = () => {
|
|
4135
4494
|
if (a) return;
|
|
4136
4495
|
let e = !v;
|
|
@@ -4202,7 +4561,7 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
4202
4561
|
transform: [{ rotate: O }]
|
|
4203
4562
|
},
|
|
4204
4563
|
children: /* @__PURE__ */ M(X, {
|
|
4205
|
-
icon:
|
|
4564
|
+
icon: oe,
|
|
4206
4565
|
size: "md"
|
|
4207
4566
|
})
|
|
4208
4567
|
}), typeof e == "string" ? /* @__PURE__ */ M(Y, {
|
|
@@ -4225,79 +4584,235 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
4225
4584
|
})
|
|
4226
4585
|
})]
|
|
4227
4586
|
});
|
|
4228
|
-
},
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
}
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4587
|
+
}, Xn = i(function({ title: t, subtitle: n, leading: r, trailing: i, children: a, expanded: o, defaultExpanded: s = !1, onExpandedChange: l, style: u, testID: p }, h) {
|
|
4588
|
+
let g = q(), v = J(), y = o !== void 0, [b, x] = f(s), S = y ? o : b, [C, T] = f(0), E = d(!1), D = d(new m.Value(0)).current, O = d(new m.Value(+!!s)).current, A = () => {
|
|
4589
|
+
let e = !S;
|
|
4590
|
+
y || x(e), l?.(e);
|
|
4591
|
+
}, j = (e) => {
|
|
4592
|
+
let t = e.nativeEvent.layout.height;
|
|
4593
|
+
if (t === C) {
|
|
4594
|
+
E.current = !0;
|
|
4595
|
+
return;
|
|
4596
|
+
}
|
|
4597
|
+
S && !E.current && D.setValue(t), E.current = !0, T(t);
|
|
4598
|
+
};
|
|
4599
|
+
c(() => {
|
|
4600
|
+
let [e, t, n, r] = g.easingDefault, i = _.bezier(e, t, n, r), a = S ? C : 0;
|
|
4601
|
+
if (v) {
|
|
4602
|
+
D.setValue(a), O.setValue(+!!S);
|
|
4603
|
+
return;
|
|
4604
|
+
}
|
|
4605
|
+
m.parallel([m.timing(D, {
|
|
4606
|
+
toValue: a,
|
|
4607
|
+
duration: g.durationNormal,
|
|
4608
|
+
easing: i,
|
|
4609
|
+
useNativeDriver: !1
|
|
4610
|
+
}), m.timing(O, {
|
|
4611
|
+
toValue: +!!S,
|
|
4612
|
+
duration: g.durationFast,
|
|
4613
|
+
easing: i,
|
|
4614
|
+
useNativeDriver: !0
|
|
4615
|
+
})]).start();
|
|
4616
|
+
}, [
|
|
4617
|
+
S,
|
|
4618
|
+
C,
|
|
4619
|
+
v,
|
|
4620
|
+
D,
|
|
4621
|
+
O,
|
|
4622
|
+
g.durationNormal,
|
|
4623
|
+
g.durationFast,
|
|
4624
|
+
g.easingDefault
|
|
4625
|
+
]);
|
|
4626
|
+
let P = S && !E.current, F = O.interpolate({
|
|
4627
|
+
inputRange: [0, 1],
|
|
4628
|
+
outputRange: ["0deg", "180deg"]
|
|
4629
|
+
}), I = e.toArray(a).filter(Boolean);
|
|
4630
|
+
return /* @__PURE__ */ N(k, {
|
|
4631
|
+
ref: h,
|
|
4632
|
+
testID: p,
|
|
4633
|
+
style: [{ width: "100%" }, u],
|
|
4634
|
+
children: [/* @__PURE__ */ N(w, {
|
|
4635
|
+
role: "button",
|
|
4636
|
+
accessibilityState: { expanded: S },
|
|
4637
|
+
onPress: A,
|
|
4638
|
+
style: ({ pressed: e }) => ({
|
|
4639
|
+
flexDirection: "row",
|
|
4640
|
+
alignItems: "center",
|
|
4641
|
+
gap: g.space2,
|
|
4642
|
+
paddingVertical: g.space2,
|
|
4643
|
+
paddingHorizontal: g.space4,
|
|
4644
|
+
minHeight: 52,
|
|
4645
|
+
width: "100%",
|
|
4646
|
+
backgroundColor: e ? g.activeOverlay : "transparent"
|
|
4647
|
+
}),
|
|
4648
|
+
children: [
|
|
4649
|
+
r && /* @__PURE__ */ M(k, {
|
|
4650
|
+
style: { flexShrink: 0 },
|
|
4651
|
+
children: r
|
|
4652
|
+
}),
|
|
4653
|
+
/* @__PURE__ */ N(k, {
|
|
4654
|
+
style: {
|
|
4655
|
+
flex: 1,
|
|
4656
|
+
gap: 2
|
|
4657
|
+
},
|
|
4658
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
4659
|
+
variant: "body",
|
|
4660
|
+
numberOfLines: 1,
|
|
4661
|
+
ellipsizeMode: "tail",
|
|
4662
|
+
style: {
|
|
4663
|
+
color: g.cardFgColor,
|
|
4664
|
+
fontWeight: String(g.fontWeightNormal)
|
|
4665
|
+
},
|
|
4666
|
+
children: t
|
|
4667
|
+
}), n && /* @__PURE__ */ M(Y, {
|
|
4668
|
+
variant: "caption",
|
|
4669
|
+
color: "dim",
|
|
4670
|
+
numberOfLines: 1,
|
|
4671
|
+
ellipsizeMode: "tail",
|
|
4672
|
+
children: n
|
|
4673
|
+
})]
|
|
4674
|
+
}),
|
|
4675
|
+
i && /* @__PURE__ */ M(k, {
|
|
4676
|
+
style: {
|
|
4677
|
+
flexShrink: 0,
|
|
4678
|
+
flexDirection: "row",
|
|
4679
|
+
alignItems: "center",
|
|
4680
|
+
gap: g.space1
|
|
4681
|
+
},
|
|
4682
|
+
children: i
|
|
4683
|
+
}),
|
|
4684
|
+
/* @__PURE__ */ M(m.View, {
|
|
4685
|
+
style: {
|
|
4686
|
+
opacity: .55,
|
|
4687
|
+
transform: [{ rotate: F }]
|
|
4688
|
+
},
|
|
4689
|
+
children: /* @__PURE__ */ M(X, {
|
|
4690
|
+
icon: ae,
|
|
4691
|
+
size: "md"
|
|
4692
|
+
})
|
|
4693
|
+
})
|
|
4694
|
+
]
|
|
4695
|
+
}), /* @__PURE__ */ M(m.View, {
|
|
4696
|
+
style: {
|
|
4697
|
+
height: P ? void 0 : D,
|
|
4698
|
+
overflow: "hidden"
|
|
4699
|
+
},
|
|
4700
|
+
accessibilityElementsHidden: !S,
|
|
4701
|
+
importantForAccessibility: S ? "yes" : "no",
|
|
4702
|
+
children: /* @__PURE__ */ M(k, {
|
|
4703
|
+
accessible: !0,
|
|
4704
|
+
role: "region",
|
|
4705
|
+
onLayout: j,
|
|
4706
|
+
children: I.map((e, t) => /* @__PURE__ */ N(k, { children: [/* @__PURE__ */ M(zt, { testID: "expander-row-separator" }), e] }, t))
|
|
4707
|
+
})
|
|
4708
|
+
})]
|
|
4709
|
+
});
|
|
4710
|
+
}), Zn = ({ label: e, helperText: t, error: n, disabled: r = !1, children: i, style: a, ...o }) => {
|
|
4711
|
+
let s = q(), c = n ?? t;
|
|
4712
|
+
return /* @__PURE__ */ N(k, {
|
|
4713
|
+
role: "group",
|
|
4714
|
+
style: [{
|
|
4715
|
+
gap: s.space1,
|
|
4716
|
+
opacity: r ? s.opacityDisabled : 1
|
|
4717
|
+
}, a],
|
|
4718
|
+
...o,
|
|
4719
|
+
children: [
|
|
4720
|
+
/* @__PURE__ */ M(Y, {
|
|
4721
|
+
variant: "body",
|
|
4722
|
+
style: {
|
|
4723
|
+
color: s.windowFgColor,
|
|
4724
|
+
fontWeight: String(s.fontWeightSemibold)
|
|
4725
|
+
},
|
|
4726
|
+
children: e
|
|
4727
|
+
}),
|
|
4728
|
+
c && /* @__PURE__ */ M(Y, {
|
|
4729
|
+
role: n ? "alert" : void 0,
|
|
4730
|
+
variant: "caption",
|
|
4731
|
+
style: {
|
|
4732
|
+
color: n ? s.errorColor : s.windowFgColor,
|
|
4733
|
+
opacity: n ? 1 : s.opacityDim
|
|
4734
|
+
},
|
|
4735
|
+
children: c
|
|
4736
|
+
}),
|
|
4737
|
+
/* @__PURE__ */ M(k, {
|
|
4738
|
+
style: { gap: s.space2 },
|
|
4739
|
+
children: i
|
|
4740
|
+
})
|
|
4741
|
+
]
|
|
4742
|
+
});
|
|
4743
|
+
}, Qn = {
|
|
4744
|
+
folder: te,
|
|
4745
|
+
image: re,
|
|
4746
|
+
audio: I,
|
|
4747
|
+
video: de,
|
|
4748
|
+
text: ue,
|
|
4749
|
+
pdf: H,
|
|
4750
|
+
archive: ie,
|
|
4751
|
+
document: me,
|
|
4752
|
+
spreadsheet: ge,
|
|
4753
|
+
presentation: he,
|
|
4754
|
+
font: ne,
|
|
4755
|
+
executable: F,
|
|
4756
|
+
unknown: ue
|
|
4757
|
+
}, $n = {
|
|
4758
|
+
folder: "Folder",
|
|
4759
|
+
image: "Image file",
|
|
4760
|
+
audio: "Audio file",
|
|
4761
|
+
video: "Video file",
|
|
4762
|
+
text: "Text file",
|
|
4763
|
+
pdf: "PDF document",
|
|
4764
|
+
archive: "Archive",
|
|
4765
|
+
document: "Document",
|
|
4766
|
+
spreadsheet: "Spreadsheet",
|
|
4767
|
+
presentation: "Presentation",
|
|
4768
|
+
font: "Font file",
|
|
4769
|
+
executable: "Executable",
|
|
4770
|
+
unknown: "File"
|
|
4771
|
+
}, er = {
|
|
4772
|
+
png: "image",
|
|
4773
|
+
jpg: "image",
|
|
4774
|
+
jpeg: "image",
|
|
4775
|
+
gif: "image",
|
|
4776
|
+
webp: "image",
|
|
4777
|
+
svg: "image",
|
|
4778
|
+
bmp: "image",
|
|
4779
|
+
ico: "image",
|
|
4780
|
+
tiff: "image",
|
|
4781
|
+
heic: "image",
|
|
4782
|
+
mp3: "audio",
|
|
4783
|
+
wav: "audio",
|
|
4784
|
+
ogg: "audio",
|
|
4785
|
+
flac: "audio",
|
|
4786
|
+
m4a: "audio",
|
|
4787
|
+
aac: "audio",
|
|
4788
|
+
mp4: "video",
|
|
4789
|
+
mov: "video",
|
|
4790
|
+
avi: "video",
|
|
4791
|
+
mkv: "video",
|
|
4792
|
+
webm: "video",
|
|
4793
|
+
m4v: "video",
|
|
4794
|
+
pdf: "pdf",
|
|
4795
|
+
zip: "archive",
|
|
4796
|
+
tar: "archive",
|
|
4797
|
+
gz: "archive",
|
|
4798
|
+
rar: "archive",
|
|
4799
|
+
"7z": "archive",
|
|
4800
|
+
xz: "archive",
|
|
4801
|
+
doc: "document",
|
|
4802
|
+
docx: "document",
|
|
4803
|
+
odt: "document",
|
|
4804
|
+
rtf: "document",
|
|
4805
|
+
xls: "spreadsheet",
|
|
4806
|
+
xlsx: "spreadsheet",
|
|
4807
|
+
ods: "spreadsheet",
|
|
4808
|
+
csv: "spreadsheet",
|
|
4809
|
+
ppt: "presentation",
|
|
4810
|
+
pptx: "presentation",
|
|
4811
|
+
odp: "presentation",
|
|
4812
|
+
ttf: "font",
|
|
4813
|
+
otf: "font",
|
|
4814
|
+
woff: "font",
|
|
4815
|
+
woff2: "font",
|
|
4301
4816
|
exe: "executable",
|
|
4302
4817
|
app: "executable",
|
|
4303
4818
|
sh: "executable",
|
|
@@ -4325,13 +4840,13 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
4325
4840
|
h: "text",
|
|
4326
4841
|
java: "text",
|
|
4327
4842
|
sql: "text"
|
|
4328
|
-
},
|
|
4843
|
+
}, tr = {
|
|
4329
4844
|
image: "image",
|
|
4330
4845
|
audio: "audio",
|
|
4331
4846
|
video: "video",
|
|
4332
4847
|
text: "text",
|
|
4333
4848
|
font: "font"
|
|
4334
|
-
},
|
|
4849
|
+
}, nr = {
|
|
4335
4850
|
pdf: "pdf",
|
|
4336
4851
|
zip: "archive",
|
|
4337
4852
|
gzip: "archive",
|
|
@@ -4351,31 +4866,31 @@ var wn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
|
|
|
4351
4866
|
"x-sh": "executable",
|
|
4352
4867
|
"x-executable": "executable"
|
|
4353
4868
|
};
|
|
4354
|
-
function
|
|
4869
|
+
function rr(e) {
|
|
4355
4870
|
let t = e.trim().toLowerCase();
|
|
4356
4871
|
if (t === "inode/directory") return "folder";
|
|
4357
4872
|
let [n, r] = t.split("/");
|
|
4358
|
-
return r &&
|
|
4873
|
+
return r && nr[r] ? nr[r] : tr[n] ?? null;
|
|
4359
4874
|
}
|
|
4360
|
-
function
|
|
4875
|
+
function ir(e) {
|
|
4361
4876
|
let t = e.trim().replace(/^\.+/, ""), n = t.lastIndexOf(".");
|
|
4362
|
-
return n <= 0 ? null :
|
|
4877
|
+
return n <= 0 ? null : er[t.slice(n + 1).toLowerCase()] ?? null;
|
|
4363
4878
|
}
|
|
4364
|
-
function
|
|
4365
|
-
return
|
|
4879
|
+
function ar(e) {
|
|
4880
|
+
return Qn[e];
|
|
4366
4881
|
}
|
|
4367
|
-
function
|
|
4368
|
-
return
|
|
4882
|
+
function or(e) {
|
|
4883
|
+
return $n[e];
|
|
4369
4884
|
}
|
|
4370
4885
|
//#endregion
|
|
4371
4886
|
//#region src/components/FileTypeIcon/FileTypeIcon.tsx
|
|
4372
|
-
var
|
|
4373
|
-
let c = q(), l =
|
|
4887
|
+
var sr = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size: a = "md", style: o, testID: s }) => {
|
|
4888
|
+
let c = q(), l = Je[a], u = n ? "folder" : t && rr(t) || e && ir(e) || "unknown";
|
|
4374
4889
|
return /* @__PURE__ */ M(k, {
|
|
4375
4890
|
testID: s,
|
|
4376
4891
|
accessible: !0,
|
|
4377
4892
|
role: "img",
|
|
4378
|
-
accessibilityLabel: i ??
|
|
4893
|
+
accessibilityLabel: i ?? or(u),
|
|
4379
4894
|
style: [{
|
|
4380
4895
|
width: l,
|
|
4381
4896
|
height: l,
|
|
@@ -4392,11 +4907,274 @@ var Gn = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size
|
|
|
4392
4907
|
borderRadius: c.radiusSm
|
|
4393
4908
|
}
|
|
4394
4909
|
}) : /* @__PURE__ */ M(X, {
|
|
4395
|
-
icon:
|
|
4910
|
+
icon: ar(u),
|
|
4396
4911
|
size: a
|
|
4397
4912
|
})
|
|
4398
4913
|
});
|
|
4399
|
-
},
|
|
4914
|
+
}, cr = 4, lr = 8, ur = 320;
|
|
4915
|
+
function dr(e, t) {
|
|
4916
|
+
let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - cr : e.y + e.height + cr;
|
|
4917
|
+
return {
|
|
4918
|
+
top: Math.max(lr, Math.min(i, n - t - lr)),
|
|
4919
|
+
left: e.x,
|
|
4920
|
+
width: e.width,
|
|
4921
|
+
flipUp: r
|
|
4922
|
+
};
|
|
4923
|
+
}
|
|
4924
|
+
function fr(e, t) {
|
|
4925
|
+
return e === 1 ? t[0].label : `${e} selected`;
|
|
4926
|
+
}
|
|
4927
|
+
function pr(e, t) {
|
|
4928
|
+
let n = t.trim().toLowerCase();
|
|
4929
|
+
return n ? e.filter((e) => e.label.toLowerCase().includes(n) || e.description?.toLowerCase().includes(n)) : e;
|
|
4930
|
+
}
|
|
4931
|
+
var mr = ({ options: e, value: t, onChange: n, placeholder: r = "Select options", filterPlaceholder: i = "Filter options…", accessibilityLabel: a, disabled: o, style: s, testID: l }) => {
|
|
4932
|
+
let u = q(), p = J(), [h, g] = f(!1), [_, v] = f(""), [y, b] = f(null), [S, C] = f(null), [E, D] = f(null), A = d(null), j = d(new m.Value(0)).current, P = e.filter((e) => t.includes(e.value)), F = pr(e, _), I = () => {
|
|
4933
|
+
o || (v(""), g(!0));
|
|
4934
|
+
}, L = () => g(!1), R = (e) => {
|
|
4935
|
+
e.disabled || n(t.includes(e.value) ? t.filter((t) => t !== e.value) : [...t, e.value]);
|
|
4936
|
+
};
|
|
4937
|
+
return c(() => {
|
|
4938
|
+
if (!h) {
|
|
4939
|
+
b(null), C(null), D(null);
|
|
4940
|
+
return;
|
|
4941
|
+
}
|
|
4942
|
+
A.current?.measureInWindow((e, t, n, r) => {
|
|
4943
|
+
b({
|
|
4944
|
+
x: e,
|
|
4945
|
+
y: t,
|
|
4946
|
+
width: n,
|
|
4947
|
+
height: r
|
|
4948
|
+
});
|
|
4949
|
+
});
|
|
4950
|
+
}, [h]), c(() => {
|
|
4951
|
+
y === null || S === null || D(dr(y, S));
|
|
4952
|
+
}, [y, S]), c(() => {
|
|
4953
|
+
if (E) {
|
|
4954
|
+
if (p) {
|
|
4955
|
+
j.setValue(1);
|
|
4956
|
+
return;
|
|
4957
|
+
}
|
|
4958
|
+
j.setValue(0), m.timing(j, {
|
|
4959
|
+
toValue: 1,
|
|
4960
|
+
duration: u.durationFast,
|
|
4961
|
+
useNativeDriver: !0
|
|
4962
|
+
}).start();
|
|
4963
|
+
}
|
|
4964
|
+
}, [
|
|
4965
|
+
E,
|
|
4966
|
+
p,
|
|
4967
|
+
j,
|
|
4968
|
+
u.durationFast
|
|
4969
|
+
]), /* @__PURE__ */ N(k, {
|
|
4970
|
+
style: s,
|
|
4971
|
+
children: [/* @__PURE__ */ N(w, {
|
|
4972
|
+
ref: A,
|
|
4973
|
+
testID: l,
|
|
4974
|
+
role: "combobox",
|
|
4975
|
+
accessibilityLabel: a,
|
|
4976
|
+
accessibilityState: {
|
|
4977
|
+
expanded: h,
|
|
4978
|
+
disabled: !!o
|
|
4979
|
+
},
|
|
4980
|
+
disabled: o,
|
|
4981
|
+
onPress: () => h ? L() : I(),
|
|
4982
|
+
style: ({ pressed: e }) => ({
|
|
4983
|
+
flexDirection: "row",
|
|
4984
|
+
alignItems: "center",
|
|
4985
|
+
justifyContent: "space-between",
|
|
4986
|
+
gap: u.space1,
|
|
4987
|
+
minHeight: 36,
|
|
4988
|
+
minWidth: 160,
|
|
4989
|
+
paddingVertical: 7,
|
|
4990
|
+
paddingHorizontal: u.space2,
|
|
4991
|
+
backgroundColor: e ? u.activeOverlay : u.cardBgColor,
|
|
4992
|
+
borderWidth: 1,
|
|
4993
|
+
borderColor: h ? u.accentColor : u.cardShadeColor,
|
|
4994
|
+
borderRadius: u.radiusMd,
|
|
4995
|
+
opacity: o ? u.opacityDisabled : 1
|
|
4996
|
+
}),
|
|
4997
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
4998
|
+
numberOfLines: 1,
|
|
4999
|
+
style: {
|
|
5000
|
+
flex: 1,
|
|
5001
|
+
fontSize: u.fontSizeBody,
|
|
5002
|
+
color: u.windowFgColor,
|
|
5003
|
+
opacity: P.length === 0 ? u.opacityDim : 1
|
|
5004
|
+
},
|
|
5005
|
+
children: P.length === 0 ? r : fr(P.length, P)
|
|
5006
|
+
}), /* @__PURE__ */ M(X, {
|
|
5007
|
+
icon: ae,
|
|
5008
|
+
size: "md",
|
|
5009
|
+
color: "default",
|
|
5010
|
+
style: { transform: [{ rotate: h ? "180deg" : "0deg" }] }
|
|
5011
|
+
})]
|
|
5012
|
+
}), /* @__PURE__ */ M(x, {
|
|
5013
|
+
visible: h,
|
|
5014
|
+
transparent: !0,
|
|
5015
|
+
animationType: "none",
|
|
5016
|
+
statusBarTranslucent: !0,
|
|
5017
|
+
children: /* @__PURE__ */ M(w, {
|
|
5018
|
+
onPress: L,
|
|
5019
|
+
accessible: !1,
|
|
5020
|
+
style: { flex: 1 },
|
|
5021
|
+
testID: l ? `${l}-backdrop` : void 0,
|
|
5022
|
+
children: /* @__PURE__ */ N(m.View, {
|
|
5023
|
+
onLayout: (e) => {
|
|
5024
|
+
C(Math.min(e.nativeEvent.layout.height, ur));
|
|
5025
|
+
},
|
|
5026
|
+
style: [{
|
|
5027
|
+
position: "absolute",
|
|
5028
|
+
maxHeight: ur,
|
|
5029
|
+
backgroundColor: u.popoverBgColor,
|
|
5030
|
+
borderWidth: 1,
|
|
5031
|
+
borderColor: u.cardShadeColor,
|
|
5032
|
+
borderRadius: u.radiusMd,
|
|
5033
|
+
shadowColor: "#000",
|
|
5034
|
+
shadowOffset: {
|
|
5035
|
+
width: 0,
|
|
5036
|
+
height: 4
|
|
5037
|
+
},
|
|
5038
|
+
shadowOpacity: .15,
|
|
5039
|
+
shadowRadius: 12,
|
|
5040
|
+
elevation: 6
|
|
5041
|
+
}, E ? {
|
|
5042
|
+
top: E.top,
|
|
5043
|
+
left: E.left,
|
|
5044
|
+
width: E.width,
|
|
5045
|
+
opacity: j
|
|
5046
|
+
} : {
|
|
5047
|
+
top: -9999,
|
|
5048
|
+
left: -9999,
|
|
5049
|
+
width: 200,
|
|
5050
|
+
opacity: 0
|
|
5051
|
+
}],
|
|
5052
|
+
children: [/* @__PURE__ */ N(k, {
|
|
5053
|
+
style: {
|
|
5054
|
+
flexDirection: "row",
|
|
5055
|
+
alignItems: "center",
|
|
5056
|
+
padding: 8,
|
|
5057
|
+
borderBottomWidth: 1,
|
|
5058
|
+
borderBottomColor: u.cardShadeColor
|
|
5059
|
+
},
|
|
5060
|
+
children: [/* @__PURE__ */ M(k, {
|
|
5061
|
+
style: {
|
|
5062
|
+
position: "absolute",
|
|
5063
|
+
left: 16,
|
|
5064
|
+
zIndex: 1
|
|
5065
|
+
},
|
|
5066
|
+
children: /* @__PURE__ */ M(X, {
|
|
5067
|
+
icon: ce,
|
|
5068
|
+
size: "sm",
|
|
5069
|
+
color: "default",
|
|
5070
|
+
style: { opacity: u.opacityDim }
|
|
5071
|
+
})
|
|
5072
|
+
}), /* @__PURE__ */ M(O, {
|
|
5073
|
+
value: _,
|
|
5074
|
+
onChangeText: v,
|
|
5075
|
+
placeholder: i,
|
|
5076
|
+
placeholderTextColor: u.windowFgColor,
|
|
5077
|
+
accessibilityLabel: i,
|
|
5078
|
+
autoFocus: !0,
|
|
5079
|
+
style: {
|
|
5080
|
+
flex: 1,
|
|
5081
|
+
paddingVertical: 6,
|
|
5082
|
+
paddingHorizontal: 8,
|
|
5083
|
+
paddingLeft: 28,
|
|
5084
|
+
fontFamily: u.fontFamily,
|
|
5085
|
+
fontSize: u.fontSizeBody,
|
|
5086
|
+
color: u.viewFgColor,
|
|
5087
|
+
backgroundColor: u.viewBgColor,
|
|
5088
|
+
borderWidth: 1,
|
|
5089
|
+
borderColor: u.cardShadeColor,
|
|
5090
|
+
borderRadius: u.radiusMd
|
|
5091
|
+
}
|
|
5092
|
+
})]
|
|
5093
|
+
}), F.length === 0 ? /* @__PURE__ */ M(Y, {
|
|
5094
|
+
style: {
|
|
5095
|
+
marginVertical: 16,
|
|
5096
|
+
textAlign: "center",
|
|
5097
|
+
color: u.windowFgColor,
|
|
5098
|
+
opacity: u.opacityDim
|
|
5099
|
+
},
|
|
5100
|
+
children: "No results"
|
|
5101
|
+
}) : /* @__PURE__ */ M(T, {
|
|
5102
|
+
role: "list",
|
|
5103
|
+
accessible: !0,
|
|
5104
|
+
bounces: !1,
|
|
5105
|
+
style: { paddingVertical: 4 },
|
|
5106
|
+
children: F.map((e) => {
|
|
5107
|
+
let n = t.includes(e.value);
|
|
5108
|
+
return /* @__PURE__ */ N(w, {
|
|
5109
|
+
role: "option",
|
|
5110
|
+
accessibilityState: {
|
|
5111
|
+
selected: n,
|
|
5112
|
+
disabled: !!e.disabled
|
|
5113
|
+
},
|
|
5114
|
+
disabled: e.disabled,
|
|
5115
|
+
onPress: () => R(e),
|
|
5116
|
+
style: ({ pressed: t }) => ({
|
|
5117
|
+
flexDirection: "row",
|
|
5118
|
+
alignItems: "center",
|
|
5119
|
+
gap: u.space2,
|
|
5120
|
+
minHeight: 40,
|
|
5121
|
+
paddingVertical: 8,
|
|
5122
|
+
paddingHorizontal: u.space2,
|
|
5123
|
+
backgroundColor: t ? u.activeOverlay : "transparent",
|
|
5124
|
+
opacity: e.disabled ? u.opacityDisabled : 1
|
|
5125
|
+
}),
|
|
5126
|
+
children: [/* @__PURE__ */ M(k, {
|
|
5127
|
+
style: {
|
|
5128
|
+
width: 16,
|
|
5129
|
+
height: 16,
|
|
5130
|
+
flexShrink: 0,
|
|
5131
|
+
alignItems: "center",
|
|
5132
|
+
justifyContent: "center",
|
|
5133
|
+
borderRadius: u.radiusSm,
|
|
5134
|
+
borderWidth: 1.5,
|
|
5135
|
+
borderColor: n ? u.accentBgColor : u.cardShadeColor,
|
|
5136
|
+
backgroundColor: n ? u.accentBgColor : "transparent"
|
|
5137
|
+
},
|
|
5138
|
+
children: n && /* @__PURE__ */ M(Y, {
|
|
5139
|
+
style: {
|
|
5140
|
+
color: "#fff",
|
|
5141
|
+
fontSize: 11,
|
|
5142
|
+
fontWeight: "bold",
|
|
5143
|
+
lineHeight: 11
|
|
5144
|
+
},
|
|
5145
|
+
children: "✓"
|
|
5146
|
+
})
|
|
5147
|
+
}), /* @__PURE__ */ N(k, {
|
|
5148
|
+
style: {
|
|
5149
|
+
flex: 1,
|
|
5150
|
+
gap: 1
|
|
5151
|
+
},
|
|
5152
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
5153
|
+
numberOfLines: 1,
|
|
5154
|
+
style: {
|
|
5155
|
+
fontSize: u.fontSizeBody,
|
|
5156
|
+
color: u.windowFgColor,
|
|
5157
|
+
fontWeight: n ? String(u.fontWeightSemibold) : void 0
|
|
5158
|
+
},
|
|
5159
|
+
children: e.label
|
|
5160
|
+
}), e.description && /* @__PURE__ */ M(Y, {
|
|
5161
|
+
numberOfLines: 1,
|
|
5162
|
+
style: {
|
|
5163
|
+
fontSize: u.fontSizeCaption,
|
|
5164
|
+
color: u.windowFgColor,
|
|
5165
|
+
opacity: u.opacityDim
|
|
5166
|
+
},
|
|
5167
|
+
children: e.description
|
|
5168
|
+
})]
|
|
5169
|
+
})]
|
|
5170
|
+
}, e.value);
|
|
5171
|
+
})
|
|
5172
|
+
})]
|
|
5173
|
+
})
|
|
5174
|
+
})
|
|
5175
|
+
})]
|
|
5176
|
+
});
|
|
5177
|
+
}, hr = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
|
|
4400
5178
|
let s = q();
|
|
4401
5179
|
return /* @__PURE__ */ N(k, {
|
|
4402
5180
|
ref: o,
|
|
@@ -4456,16 +5234,16 @@ var Gn = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size
|
|
|
4456
5234
|
});
|
|
4457
5235
|
//#endregion
|
|
4458
5236
|
//#region src/components/Highlight/Highlight.tsx
|
|
4459
|
-
function
|
|
5237
|
+
function gr(e) {
|
|
4460
5238
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4461
5239
|
}
|
|
4462
|
-
var
|
|
4463
|
-
let i = q(), a =
|
|
5240
|
+
var _r = ({ text: e, query: t, caseSensitive: n = !1, ...r }) => {
|
|
5241
|
+
let i = q(), a = K(), o = (Array.isArray(t) ? t : [t]).map((e) => e.trim()).filter(Boolean);
|
|
4464
5242
|
if (o.length === 0) return /* @__PURE__ */ M(Y, {
|
|
4465
5243
|
...r,
|
|
4466
5244
|
children: e
|
|
4467
5245
|
});
|
|
4468
|
-
let s = RegExp(`(${o.map(
|
|
5246
|
+
let s = RegExp(`(${o.map(gr).join("|")})`, n ? "g" : "gi"), c = e.split(s), l = {
|
|
4469
5247
|
fontWeight: String(i.fontWeightSemibold),
|
|
4470
5248
|
...a === "more" ? {
|
|
4471
5249
|
backgroundColor: i.accentBgColor,
|
|
@@ -4482,7 +5260,7 @@ var Jn = ({ text: e, query: t, caseSensitive: n = !1, ...r }) => {
|
|
|
4482
5260
|
};
|
|
4483
5261
|
//#endregion
|
|
4484
5262
|
//#region src/components/InlineViewSwitcher/variants.ts
|
|
4485
|
-
function
|
|
5263
|
+
function vr(e, t, n) {
|
|
4486
5264
|
let r = n ? "rgba(255, 255, 255, 0.12)" : e.light3, i = `${e.accentBgColor}${n ? "40" : "26"}`, a = `${e.accentBgColor}${n ? "80" : "66"}`;
|
|
4487
5265
|
switch (t) {
|
|
4488
5266
|
case "flat": return {
|
|
@@ -4594,7 +5372,7 @@ function Yn(e, t, n) {
|
|
|
4594
5372
|
};
|
|
4595
5373
|
}
|
|
4596
5374
|
}
|
|
4597
|
-
function
|
|
5375
|
+
function yr(e, t, n) {
|
|
4598
5376
|
return {
|
|
4599
5377
|
fontFamily: e.fontFamily,
|
|
4600
5378
|
fontSize: e.fontSizeBody,
|
|
@@ -4604,14 +5382,14 @@ function Xn(e, t, n) {
|
|
|
4604
5382
|
}
|
|
4605
5383
|
//#endregion
|
|
4606
5384
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcher.tsx
|
|
4607
|
-
var
|
|
4608
|
-
function
|
|
4609
|
-
let e = s(
|
|
5385
|
+
var br = r(null);
|
|
5386
|
+
function xr() {
|
|
5387
|
+
let e = s(br);
|
|
4610
5388
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
4611
5389
|
return e;
|
|
4612
5390
|
}
|
|
4613
|
-
var
|
|
4614
|
-
let _ = q(), v =
|
|
5391
|
+
var Sr = 160, Cr = 30, wr = i(function({ value: t, onValueChange: n, variant: r = "default", overflow: i = "wrap", accessibilityLabel: s = "View switcher", children: l, style: p, ...h }, g) {
|
|
5392
|
+
let _ = q(), v = G() === "dark", y = J(), b = u(() => vr(_, r, v), [
|
|
4615
5393
|
_,
|
|
4616
5394
|
r,
|
|
4617
5395
|
v
|
|
@@ -4639,13 +5417,13 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4639
5417
|
V || A(!1);
|
|
4640
5418
|
return;
|
|
4641
5419
|
}
|
|
4642
|
-
A((e) => e ? I.current > C +
|
|
5420
|
+
A((e) => e ? I.current > C + Cr : ee > C ? (I.current = ee, !0) : !1);
|
|
4643
5421
|
}, [
|
|
4644
5422
|
V,
|
|
4645
5423
|
C,
|
|
4646
5424
|
ee
|
|
4647
5425
|
]);
|
|
4648
|
-
let te = i === "compact" && O, ne = i === "menu" && O,
|
|
5426
|
+
let te = i === "compact" && O, ne = i === "menu" && O, re = H.find((e) => e.name === t) ?? H[0], ie = x[t];
|
|
4649
5427
|
c(() => {
|
|
4650
5428
|
if (ne || !ie) return;
|
|
4651
5429
|
if (y) {
|
|
@@ -4654,11 +5432,11 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4654
5432
|
}
|
|
4655
5433
|
let e = m.parallel([m.timing(R, {
|
|
4656
5434
|
toValue: ie.x,
|
|
4657
|
-
duration:
|
|
5435
|
+
duration: Sr,
|
|
4658
5436
|
useNativeDriver: !1
|
|
4659
5437
|
}), m.timing(z, {
|
|
4660
5438
|
toValue: ie.width,
|
|
4661
|
-
duration:
|
|
5439
|
+
duration: Sr,
|
|
4662
5440
|
useNativeDriver: !1
|
|
4663
5441
|
})]);
|
|
4664
5442
|
return e.start(), () => e.stop();
|
|
@@ -4669,7 +5447,7 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4669
5447
|
R,
|
|
4670
5448
|
z
|
|
4671
5449
|
]);
|
|
4672
|
-
let
|
|
5450
|
+
let oe = u(() => ({
|
|
4673
5451
|
value: t,
|
|
4674
5452
|
onValueChange: n,
|
|
4675
5453
|
compact: te,
|
|
@@ -4681,17 +5459,17 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4681
5459
|
te,
|
|
4682
5460
|
b,
|
|
4683
5461
|
B
|
|
4684
|
-
]),
|
|
5462
|
+
]), se = o((e) => {
|
|
4685
5463
|
V && E(e.nativeEvent.layout.width);
|
|
4686
|
-
}, [V]),
|
|
5464
|
+
}, [V]), ce = u(() => i === "scroll" ? H.map((e) => x[e.name]?.x ?? 0).filter((e, t) => t === 0 || e > 0) : void 0, [
|
|
4687
5465
|
i,
|
|
4688
5466
|
H,
|
|
4689
5467
|
x
|
|
4690
|
-
]),
|
|
5468
|
+
]), le = /* @__PURE__ */ M(k, {
|
|
4691
5469
|
ref: g,
|
|
4692
5470
|
accessibilityRole: ne ? void 0 : "radiogroup",
|
|
4693
5471
|
accessibilityLabel: s,
|
|
4694
|
-
onLayout:
|
|
5472
|
+
onLayout: se,
|
|
4695
5473
|
style: [
|
|
4696
5474
|
{
|
|
4697
5475
|
flexDirection: "row",
|
|
@@ -4704,7 +5482,7 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4704
5482
|
...h,
|
|
4705
5483
|
children: ne ? /* @__PURE__ */ N(w, {
|
|
4706
5484
|
accessibilityRole: "button",
|
|
4707
|
-
accessibilityLabel: `${s}: ${
|
|
5485
|
+
accessibilityLabel: `${s}: ${re?.label ?? re?.name}`,
|
|
4708
5486
|
onPress: () => F(!0),
|
|
4709
5487
|
style: [{
|
|
4710
5488
|
flexDirection: "row",
|
|
@@ -4715,16 +5493,16 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4715
5493
|
paddingVertical: 4
|
|
4716
5494
|
}, b.item],
|
|
4717
5495
|
children: [
|
|
4718
|
-
|
|
4719
|
-
icon:
|
|
5496
|
+
re?.icon ? /* @__PURE__ */ M(X, {
|
|
5497
|
+
icon: re.icon,
|
|
4720
5498
|
size: "md"
|
|
4721
5499
|
}) : null,
|
|
4722
|
-
|
|
4723
|
-
style:
|
|
4724
|
-
children:
|
|
5500
|
+
re?.label ? /* @__PURE__ */ M(D, {
|
|
5501
|
+
style: yr(_, !0, b.idleTextColor),
|
|
5502
|
+
children: re.label
|
|
4725
5503
|
}) : null,
|
|
4726
5504
|
/* @__PURE__ */ M(X, {
|
|
4727
|
-
icon:
|
|
5505
|
+
icon: ae,
|
|
4728
5506
|
size: "sm"
|
|
4729
5507
|
})
|
|
4730
5508
|
]
|
|
@@ -4740,17 +5518,17 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4740
5518
|
}, b.indicator]
|
|
4741
5519
|
}), l] })
|
|
4742
5520
|
});
|
|
4743
|
-
return /* @__PURE__ */ N(
|
|
4744
|
-
value:
|
|
5521
|
+
return /* @__PURE__ */ N(br.Provider, {
|
|
5522
|
+
value: oe,
|
|
4745
5523
|
children: [i === "scroll" ? /* @__PURE__ */ M(T, {
|
|
4746
5524
|
horizontal: !0,
|
|
4747
5525
|
showsHorizontalScrollIndicator: !1,
|
|
4748
|
-
snapToOffsets:
|
|
5526
|
+
snapToOffsets: ce,
|
|
4749
5527
|
decelerationRate: "fast",
|
|
4750
5528
|
contentContainerStyle: { flexGrow: 0 },
|
|
4751
5529
|
style: { flexGrow: 0 },
|
|
4752
|
-
children:
|
|
4753
|
-
}) :
|
|
5530
|
+
children: le
|
|
5531
|
+
}) : le, i === "menu" ? /* @__PURE__ */ M(Pt, {
|
|
4754
5532
|
open: P,
|
|
4755
5533
|
title: s,
|
|
4756
5534
|
onClose: () => F(!1),
|
|
@@ -4781,7 +5559,7 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4781
5559
|
size: "md"
|
|
4782
5560
|
}) : null,
|
|
4783
5561
|
/* @__PURE__ */ M(D, {
|
|
4784
|
-
style: [
|
|
5562
|
+
style: [yr(_, r, r ? _.accentColor : _.windowFgColor), { flex: 1 }],
|
|
4785
5563
|
children: e.label ?? e.name
|
|
4786
5564
|
}),
|
|
4787
5565
|
r ? /* @__PURE__ */ M(X, {
|
|
@@ -4794,8 +5572,8 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4794
5572
|
})
|
|
4795
5573
|
}) : null]
|
|
4796
5574
|
});
|
|
4797
|
-
}),
|
|
4798
|
-
let c = q(), { value: l, onValueChange: u, compact: d, styles: f, onItemLayout: p } =
|
|
5575
|
+
}), Tr = i(function({ name: e, label: t, icon: n, accessibilityLabel: r, disabled: i = !1, ...a }, s) {
|
|
5576
|
+
let c = q(), { value: l, onValueChange: u, compact: d, styles: f, onItemLayout: p } = xr(), m = l === e, h = !!t && !(d && n), g = !!n && !h;
|
|
4799
5577
|
return /* @__PURE__ */ N(w, {
|
|
4800
5578
|
ref: s,
|
|
4801
5579
|
disabled: i,
|
|
@@ -4832,18 +5610,18 @@ var $n = 160, er = 30, tr = i(function({ value: t, onValueChange: n, variant: r
|
|
|
4832
5610
|
size: "md"
|
|
4833
5611
|
}) : null, h ? /* @__PURE__ */ M(D, {
|
|
4834
5612
|
numberOfLines: 1,
|
|
4835
|
-
style:
|
|
5613
|
+
style: yr(c, m, m ? f.activeTextColor : f.idleTextColor),
|
|
4836
5614
|
children: t
|
|
4837
5615
|
}) : null]
|
|
4838
5616
|
});
|
|
4839
5617
|
});
|
|
4840
|
-
|
|
5618
|
+
Tr.displayName = "InlineViewSwitcherItem";
|
|
4841
5619
|
//#endregion
|
|
4842
5620
|
//#region src/components/LevelBar/LevelBar.tsx
|
|
4843
|
-
function
|
|
5621
|
+
function Er(e, t, n, r, i, a) {
|
|
4844
5622
|
return t !== void 0 && e <= t ? n : r !== void 0 && e >= r ? i : a;
|
|
4845
5623
|
}
|
|
4846
|
-
function
|
|
5624
|
+
function Dr(e, t) {
|
|
4847
5625
|
switch (t) {
|
|
4848
5626
|
case "accent": return e.accentBgColor;
|
|
4849
5627
|
case "success": return e.successBgColor;
|
|
@@ -4851,8 +5629,8 @@ function ir(e, t) {
|
|
|
4851
5629
|
case "error": return e.errorBgColor;
|
|
4852
5630
|
}
|
|
4853
5631
|
}
|
|
4854
|
-
var
|
|
4855
|
-
let g = q(), v =
|
|
5632
|
+
var Or = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning", high: a, highVariant: o = "error", variant: s = "accent", discrete: l = !1, numBlocks: u = 10, accessibilityLabel: f, style: p, testID: h }) => {
|
|
5633
|
+
let g = q(), v = G(), y = J(), b = n - t, x = Math.min(n, Math.max(t, e)), S = b > 0 ? (x - t) / b : 0, C = Er(x, r, i, a, o, s), w = d(new m.Value(S)).current;
|
|
4856
5634
|
c(() => {
|
|
4857
5635
|
if (l) return;
|
|
4858
5636
|
let [e, t, n, r] = g.easingDefault;
|
|
@@ -4899,7 +5677,7 @@ var ar = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4899
5677
|
height: "100%",
|
|
4900
5678
|
minWidth: 2,
|
|
4901
5679
|
borderRadius: 1,
|
|
4902
|
-
backgroundColor: (t + 1) / u <= S ?
|
|
5680
|
+
backgroundColor: (t + 1) / u <= S ? Dr(g, C) : T
|
|
4903
5681
|
}
|
|
4904
5682
|
}, t)) : /* @__PURE__ */ M(m.View, {
|
|
4905
5683
|
testID: h ? `${h}-fill` : void 0,
|
|
@@ -4907,13 +5685,13 @@ var ar = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4907
5685
|
width: "100%",
|
|
4908
5686
|
height: "100%",
|
|
4909
5687
|
borderRadius: g.radiusPill,
|
|
4910
|
-
backgroundColor:
|
|
5688
|
+
backgroundColor: Dr(g, C),
|
|
4911
5689
|
transformOrigin: "left",
|
|
4912
5690
|
transform: [{ scaleX: w }]
|
|
4913
5691
|
}
|
|
4914
5692
|
})
|
|
4915
5693
|
});
|
|
4916
|
-
},
|
|
5694
|
+
}, kr = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
|
|
4917
5695
|
let c = q();
|
|
4918
5696
|
return /* @__PURE__ */ M(w, {
|
|
4919
5697
|
ref: s,
|
|
@@ -4936,7 +5714,217 @@ var ar = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4936
5714
|
})]
|
|
4937
5715
|
})
|
|
4938
5716
|
});
|
|
4939
|
-
}),
|
|
5717
|
+
}), Ar = 4, jr = 8, Mr = 280;
|
|
5718
|
+
function Nr(e, t) {
|
|
5719
|
+
let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - Ar : e.y + e.height + Ar;
|
|
5720
|
+
return {
|
|
5721
|
+
top: Math.max(jr, Math.min(i, n - t - jr)),
|
|
5722
|
+
left: e.x,
|
|
5723
|
+
width: e.width,
|
|
5724
|
+
flipUp: r
|
|
5725
|
+
};
|
|
5726
|
+
}
|
|
5727
|
+
function Pr(e, t) {
|
|
5728
|
+
return e === 1 ? t[0].label : `${e} selected`;
|
|
5729
|
+
}
|
|
5730
|
+
var Fr = ({ options: e, value: t, onChange: n, placeholder: r = "Select options", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
|
|
5731
|
+
let l = q(), u = J(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [b, S] = f(null), C = d(null), E = d(new m.Value(0)).current, D = e.filter((e) => t.includes(e.value)), O = () => {
|
|
5732
|
+
a || h(!0);
|
|
5733
|
+
}, A = () => h(!1), j = (e) => {
|
|
5734
|
+
e.disabled || n(t.includes(e.value) ? t.filter((t) => t !== e.value) : [...t, e.value]);
|
|
5735
|
+
};
|
|
5736
|
+
return c(() => {
|
|
5737
|
+
if (!p) {
|
|
5738
|
+
_(null), y(null), S(null);
|
|
5739
|
+
return;
|
|
5740
|
+
}
|
|
5741
|
+
C.current?.measureInWindow((e, t, n, r) => {
|
|
5742
|
+
_({
|
|
5743
|
+
x: e,
|
|
5744
|
+
y: t,
|
|
5745
|
+
width: n,
|
|
5746
|
+
height: r
|
|
5747
|
+
});
|
|
5748
|
+
});
|
|
5749
|
+
}, [p]), c(() => {
|
|
5750
|
+
g === null || v === null || S(Nr(g, v));
|
|
5751
|
+
}, [g, v]), c(() => {
|
|
5752
|
+
if (b) {
|
|
5753
|
+
if (u) {
|
|
5754
|
+
E.setValue(1);
|
|
5755
|
+
return;
|
|
5756
|
+
}
|
|
5757
|
+
E.setValue(0), m.timing(E, {
|
|
5758
|
+
toValue: 1,
|
|
5759
|
+
duration: l.durationFast,
|
|
5760
|
+
useNativeDriver: !0
|
|
5761
|
+
}).start();
|
|
5762
|
+
}
|
|
5763
|
+
}, [
|
|
5764
|
+
b,
|
|
5765
|
+
u,
|
|
5766
|
+
E,
|
|
5767
|
+
l.durationFast
|
|
5768
|
+
]), /* @__PURE__ */ N(k, {
|
|
5769
|
+
style: o,
|
|
5770
|
+
children: [/* @__PURE__ */ N(w, {
|
|
5771
|
+
ref: C,
|
|
5772
|
+
testID: s,
|
|
5773
|
+
role: "combobox",
|
|
5774
|
+
accessibilityLabel: i,
|
|
5775
|
+
accessibilityState: {
|
|
5776
|
+
expanded: p,
|
|
5777
|
+
disabled: !!a
|
|
5778
|
+
},
|
|
5779
|
+
disabled: a,
|
|
5780
|
+
onPress: () => p ? A() : O(),
|
|
5781
|
+
style: ({ pressed: e }) => ({
|
|
5782
|
+
flexDirection: "row",
|
|
5783
|
+
alignItems: "center",
|
|
5784
|
+
justifyContent: "space-between",
|
|
5785
|
+
gap: l.space1,
|
|
5786
|
+
minHeight: 36,
|
|
5787
|
+
minWidth: 160,
|
|
5788
|
+
paddingVertical: 7,
|
|
5789
|
+
paddingHorizontal: l.space2,
|
|
5790
|
+
backgroundColor: e ? l.activeOverlay : l.cardBgColor,
|
|
5791
|
+
borderWidth: 1,
|
|
5792
|
+
borderColor: p ? l.accentColor : l.cardShadeColor,
|
|
5793
|
+
borderRadius: l.radiusMd,
|
|
5794
|
+
opacity: a ? l.opacityDisabled : 1
|
|
5795
|
+
}),
|
|
5796
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
5797
|
+
numberOfLines: 1,
|
|
5798
|
+
style: {
|
|
5799
|
+
flex: 1,
|
|
5800
|
+
fontSize: l.fontSizeBody,
|
|
5801
|
+
color: l.windowFgColor,
|
|
5802
|
+
opacity: D.length === 0 ? l.opacityDim : 1
|
|
5803
|
+
},
|
|
5804
|
+
children: D.length === 0 ? r : Pr(D.length, D)
|
|
5805
|
+
}), /* @__PURE__ */ M(X, {
|
|
5806
|
+
icon: ae,
|
|
5807
|
+
size: "md",
|
|
5808
|
+
color: "default",
|
|
5809
|
+
style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
|
|
5810
|
+
})]
|
|
5811
|
+
}), /* @__PURE__ */ M(x, {
|
|
5812
|
+
visible: p,
|
|
5813
|
+
transparent: !0,
|
|
5814
|
+
animationType: "none",
|
|
5815
|
+
statusBarTranslucent: !0,
|
|
5816
|
+
children: /* @__PURE__ */ M(w, {
|
|
5817
|
+
onPress: A,
|
|
5818
|
+
accessible: !1,
|
|
5819
|
+
style: { flex: 1 },
|
|
5820
|
+
testID: s ? `${s}-backdrop` : void 0,
|
|
5821
|
+
children: /* @__PURE__ */ M(m.View, {
|
|
5822
|
+
onLayout: (e) => {
|
|
5823
|
+
y(Math.min(e.nativeEvent.layout.height, Mr));
|
|
5824
|
+
},
|
|
5825
|
+
role: "list",
|
|
5826
|
+
accessible: !0,
|
|
5827
|
+
style: [{
|
|
5828
|
+
position: "absolute",
|
|
5829
|
+
maxHeight: Mr,
|
|
5830
|
+
backgroundColor: l.popoverBgColor,
|
|
5831
|
+
borderWidth: 1,
|
|
5832
|
+
borderColor: l.cardShadeColor,
|
|
5833
|
+
borderRadius: l.radiusMd,
|
|
5834
|
+
paddingVertical: 4,
|
|
5835
|
+
shadowColor: "#000",
|
|
5836
|
+
shadowOffset: {
|
|
5837
|
+
width: 0,
|
|
5838
|
+
height: 4
|
|
5839
|
+
},
|
|
5840
|
+
shadowOpacity: .15,
|
|
5841
|
+
shadowRadius: 12,
|
|
5842
|
+
elevation: 6
|
|
5843
|
+
}, b ? {
|
|
5844
|
+
top: b.top,
|
|
5845
|
+
left: b.left,
|
|
5846
|
+
width: b.width,
|
|
5847
|
+
opacity: E
|
|
5848
|
+
} : {
|
|
5849
|
+
top: -9999,
|
|
5850
|
+
left: -9999,
|
|
5851
|
+
width: 200,
|
|
5852
|
+
opacity: 0
|
|
5853
|
+
}],
|
|
5854
|
+
children: /* @__PURE__ */ M(T, {
|
|
5855
|
+
bounces: !1,
|
|
5856
|
+
children: e.map((e) => {
|
|
5857
|
+
let n = t.includes(e.value);
|
|
5858
|
+
return /* @__PURE__ */ N(w, {
|
|
5859
|
+
role: "option",
|
|
5860
|
+
accessibilityState: {
|
|
5861
|
+
selected: n,
|
|
5862
|
+
disabled: !!e.disabled
|
|
5863
|
+
},
|
|
5864
|
+
disabled: e.disabled,
|
|
5865
|
+
onPress: () => j(e),
|
|
5866
|
+
style: ({ pressed: t }) => ({
|
|
5867
|
+
flexDirection: "row",
|
|
5868
|
+
alignItems: "center",
|
|
5869
|
+
gap: l.space2,
|
|
5870
|
+
minHeight: 40,
|
|
5871
|
+
paddingVertical: 8,
|
|
5872
|
+
paddingHorizontal: l.space2,
|
|
5873
|
+
backgroundColor: t ? l.activeOverlay : "transparent",
|
|
5874
|
+
opacity: e.disabled ? l.opacityDisabled : 1
|
|
5875
|
+
}),
|
|
5876
|
+
children: [/* @__PURE__ */ M(k, {
|
|
5877
|
+
style: {
|
|
5878
|
+
width: 16,
|
|
5879
|
+
height: 16,
|
|
5880
|
+
flexShrink: 0,
|
|
5881
|
+
alignItems: "center",
|
|
5882
|
+
justifyContent: "center",
|
|
5883
|
+
borderRadius: l.radiusSm,
|
|
5884
|
+
borderWidth: 1.5,
|
|
5885
|
+
borderColor: n ? l.accentBgColor : l.cardShadeColor,
|
|
5886
|
+
backgroundColor: n ? l.accentBgColor : "transparent"
|
|
5887
|
+
},
|
|
5888
|
+
children: n && /* @__PURE__ */ M(Y, {
|
|
5889
|
+
style: {
|
|
5890
|
+
color: "#fff",
|
|
5891
|
+
fontSize: 11,
|
|
5892
|
+
fontWeight: "bold",
|
|
5893
|
+
lineHeight: 11
|
|
5894
|
+
},
|
|
5895
|
+
children: "✓"
|
|
5896
|
+
})
|
|
5897
|
+
}), /* @__PURE__ */ N(k, {
|
|
5898
|
+
style: {
|
|
5899
|
+
flex: 1,
|
|
5900
|
+
gap: 1
|
|
5901
|
+
},
|
|
5902
|
+
children: [/* @__PURE__ */ M(Y, {
|
|
5903
|
+
numberOfLines: 1,
|
|
5904
|
+
style: {
|
|
5905
|
+
fontSize: l.fontSizeBody,
|
|
5906
|
+
color: l.windowFgColor,
|
|
5907
|
+
fontWeight: n ? String(l.fontWeightSemibold) : void 0
|
|
5908
|
+
},
|
|
5909
|
+
children: e.label
|
|
5910
|
+
}), e.description && /* @__PURE__ */ M(Y, {
|
|
5911
|
+
numberOfLines: 1,
|
|
5912
|
+
style: {
|
|
5913
|
+
fontSize: l.fontSizeCaption,
|
|
5914
|
+
color: l.windowFgColor,
|
|
5915
|
+
opacity: l.opacityDim
|
|
5916
|
+
},
|
|
5917
|
+
children: e.description
|
|
5918
|
+
})]
|
|
5919
|
+
})]
|
|
5920
|
+
}, e.value);
|
|
5921
|
+
})
|
|
5922
|
+
})
|
|
5923
|
+
})
|
|
5924
|
+
})
|
|
5925
|
+
})]
|
|
5926
|
+
});
|
|
5927
|
+
}, Ir = m.createAnimatedComponent(w), Lr = ({ open: e, onDismiss: t, children: n, style: r, testID: i }) => {
|
|
4940
5928
|
let a = q(), o = J(), [s, l] = f(e), u = d(new m.Value(+!!e)).current;
|
|
4941
5929
|
return c(() => {
|
|
4942
5930
|
e && l(!0);
|
|
@@ -4975,7 +5963,7 @@ var ar = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4975
5963
|
transparent: !0,
|
|
4976
5964
|
animationType: "none",
|
|
4977
5965
|
statusBarTranslucent: !0,
|
|
4978
|
-
children: /* @__PURE__ */ M(
|
|
5966
|
+
children: /* @__PURE__ */ M(Ir, {
|
|
4979
5967
|
testID: i,
|
|
4980
5968
|
onPress: t,
|
|
4981
5969
|
accessible: !1,
|
|
@@ -4993,16 +5981,16 @@ var ar = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
4993
5981
|
})
|
|
4994
5982
|
})
|
|
4995
5983
|
}) : null;
|
|
4996
|
-
},
|
|
5984
|
+
}, Rr = i(function({ trailing: e, disabled: t = !1, autoComplete: n = "current-password", ...r }, i) {
|
|
4997
5985
|
let [a, o] = f(!1);
|
|
4998
|
-
return /* @__PURE__ */ M(
|
|
5986
|
+
return /* @__PURE__ */ M(Jn, {
|
|
4999
5987
|
ref: i,
|
|
5000
5988
|
...r,
|
|
5001
5989
|
autoComplete: n,
|
|
5002
5990
|
secureTextEntry: !a,
|
|
5003
5991
|
disabled: t,
|
|
5004
|
-
trailing: /* @__PURE__ */ N(j, { children: [e, /* @__PURE__ */ M(
|
|
5005
|
-
icon: a ?
|
|
5992
|
+
trailing: /* @__PURE__ */ N(j, { children: [e, /* @__PURE__ */ M(Bn, {
|
|
5993
|
+
icon: a ? fe : pe,
|
|
5006
5994
|
label: a ? "Conceal password" : "Reveal password",
|
|
5007
5995
|
variant: "flat",
|
|
5008
5996
|
disabled: t,
|
|
@@ -5013,7 +6001,91 @@ var ar = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
5013
6001
|
onPress: () => o((e) => !e)
|
|
5014
6002
|
})] })
|
|
5015
6003
|
});
|
|
5016
|
-
})
|
|
6004
|
+
});
|
|
6005
|
+
//#endregion
|
|
6006
|
+
//#region src/components/PasswordField/PasswordField.tsx
|
|
6007
|
+
function zr(e, t) {
|
|
6008
|
+
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
6009
|
+
if (!n) return e;
|
|
6010
|
+
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
6011
|
+
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
6012
|
+
}
|
|
6013
|
+
var Br = 28, Vr = i(function({ label: e, helperText: t, error: n, revealable: r = !0, revealLabel: i = "Show password", concealLabel: a = "Hide password", style: o, inputStyle: s, editable: c = !0, onFocus: l, onBlur: u, accessibilityLabel: d, accessibilityHint: p, ...m }, h) {
|
|
6014
|
+
let g = q(), _ = K(), [v, y] = f(!1), [b, x] = f(!1), S = !c, C = n ?? t, w = r, T = n ? g.errorColor : v ? g.accentColor : g.borderSubtle;
|
|
6015
|
+
return /* @__PURE__ */ N(k, {
|
|
6016
|
+
style: [{
|
|
6017
|
+
gap: g.space1,
|
|
6018
|
+
opacity: S ? g.opacityDisabled : 1
|
|
6019
|
+
}, o],
|
|
6020
|
+
children: [
|
|
6021
|
+
e && /* @__PURE__ */ M(Y, {
|
|
6022
|
+
variant: "body",
|
|
6023
|
+
style: { fontWeight: String(g.fontWeightSemibold) },
|
|
6024
|
+
children: e
|
|
6025
|
+
}),
|
|
6026
|
+
/* @__PURE__ */ N(k, {
|
|
6027
|
+
style: {
|
|
6028
|
+
position: "relative",
|
|
6029
|
+
justifyContent: "center"
|
|
6030
|
+
},
|
|
6031
|
+
children: [/* @__PURE__ */ M(O, {
|
|
6032
|
+
ref: h,
|
|
6033
|
+
editable: c,
|
|
6034
|
+
secureTextEntry: !b,
|
|
6035
|
+
accessibilityLabel: d ?? e,
|
|
6036
|
+
accessibilityHint: p ?? C,
|
|
6037
|
+
placeholderTextColor: zr(g.windowFgColor, g.opacityDim),
|
|
6038
|
+
onFocus: (e) => {
|
|
6039
|
+
y(!0), l?.(e);
|
|
6040
|
+
},
|
|
6041
|
+
onBlur: (e) => {
|
|
6042
|
+
y(!1), u?.(e);
|
|
6043
|
+
},
|
|
6044
|
+
style: [{
|
|
6045
|
+
width: "100%",
|
|
6046
|
+
paddingVertical: 8,
|
|
6047
|
+
paddingHorizontal: g.space2,
|
|
6048
|
+
paddingEnd: w ? Br + g.space2 + 6 : g.space2,
|
|
6049
|
+
fontFamily: g.fontFamily,
|
|
6050
|
+
fontSize: g.fontSizeBody,
|
|
6051
|
+
lineHeight: Math.round(g.fontSizeBody * g.lineHeightBody),
|
|
6052
|
+
color: g.viewFgColor,
|
|
6053
|
+
backgroundColor: g.viewBgColor,
|
|
6054
|
+
borderRadius: g.radiusMd,
|
|
6055
|
+
borderWidth: _ === "more" ? 2 : 1,
|
|
6056
|
+
borderColor: T
|
|
6057
|
+
}, s],
|
|
6058
|
+
...m
|
|
6059
|
+
}), w && /* @__PURE__ */ M(k, {
|
|
6060
|
+
style: {
|
|
6061
|
+
position: "absolute",
|
|
6062
|
+
end: 6
|
|
6063
|
+
},
|
|
6064
|
+
children: /* @__PURE__ */ M(Bn, {
|
|
6065
|
+
icon: b ? fe : pe,
|
|
6066
|
+
label: b ? a : i,
|
|
6067
|
+
variant: "flat",
|
|
6068
|
+
size: "sm",
|
|
6069
|
+
disabled: S,
|
|
6070
|
+
accessibilityState: {
|
|
6071
|
+
selected: b,
|
|
6072
|
+
disabled: S
|
|
6073
|
+
},
|
|
6074
|
+
onPress: () => x((e) => !e)
|
|
6075
|
+
})
|
|
6076
|
+
})]
|
|
6077
|
+
}),
|
|
6078
|
+
C && /* @__PURE__ */ M(Y, {
|
|
6079
|
+
variant: "caption",
|
|
6080
|
+
style: {
|
|
6081
|
+
color: n ? g.errorColor : g.windowFgColor,
|
|
6082
|
+
opacity: n ? 1 : g.opacityDim
|
|
6083
|
+
},
|
|
6084
|
+
children: C
|
|
6085
|
+
})
|
|
6086
|
+
]
|
|
6087
|
+
});
|
|
6088
|
+
}), Hr = ({ segments: e, onNavigate: n, style: r, ...i }) => {
|
|
5017
6089
|
let a = q();
|
|
5018
6090
|
return /* @__PURE__ */ M(k, {
|
|
5019
6091
|
style: [{
|
|
@@ -5087,8 +6159,8 @@ var ar = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning",
|
|
|
5087
6159
|
})] }, r.path);
|
|
5088
6160
|
})
|
|
5089
6161
|
});
|
|
5090
|
-
},
|
|
5091
|
-
function
|
|
6162
|
+
}, Ur = 8, $ = 10, Wr = 6;
|
|
6163
|
+
function Gr(e, t) {
|
|
5092
6164
|
if (e) {
|
|
5093
6165
|
if (typeof e == "function") {
|
|
5094
6166
|
e(t);
|
|
@@ -5097,27 +6169,27 @@ function pr(e, t) {
|
|
|
5097
6169
|
e.current = t;
|
|
5098
6170
|
}
|
|
5099
6171
|
}
|
|
5100
|
-
function
|
|
6172
|
+
function Kr(e, t, n) {
|
|
5101
6173
|
switch (n) {
|
|
5102
6174
|
case "top": return {
|
|
5103
|
-
top: e.y - t.height -
|
|
6175
|
+
top: e.y - t.height - Ur,
|
|
5104
6176
|
left: e.x + e.width / 2 - t.width / 2
|
|
5105
6177
|
};
|
|
5106
6178
|
case "bottom": return {
|
|
5107
|
-
top: e.y + e.height +
|
|
6179
|
+
top: e.y + e.height + Ur,
|
|
5108
6180
|
left: e.x + e.width / 2 - t.width / 2
|
|
5109
6181
|
};
|
|
5110
6182
|
case "left": return {
|
|
5111
6183
|
top: e.y + e.height / 2 - t.height / 2,
|
|
5112
|
-
left: e.x - t.width -
|
|
6184
|
+
left: e.x - t.width - Ur
|
|
5113
6185
|
};
|
|
5114
6186
|
case "right": return {
|
|
5115
6187
|
top: e.y + e.height / 2 - t.height / 2,
|
|
5116
|
-
left: e.x + e.width +
|
|
6188
|
+
left: e.x + e.width + Ur
|
|
5117
6189
|
};
|
|
5118
6190
|
}
|
|
5119
6191
|
}
|
|
5120
|
-
function
|
|
6192
|
+
function qr(e, t, n) {
|
|
5121
6193
|
let { width: r, height: i } = g.get("window"), a = [
|
|
5122
6194
|
n,
|
|
5123
6195
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -5127,21 +6199,21 @@ function hr(e, t, n) {
|
|
|
5127
6199
|
"right"
|
|
5128
6200
|
];
|
|
5129
6201
|
for (let n of a) {
|
|
5130
|
-
let { top: a, left: o } =
|
|
6202
|
+
let { top: a, left: o } = Kr(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
|
|
5131
6203
|
if (s && c) return {
|
|
5132
6204
|
top: Math.max($, Math.min(a, i - t.height - $)),
|
|
5133
6205
|
left: Math.max($, Math.min(o, r - t.width - $)),
|
|
5134
6206
|
placement: n
|
|
5135
6207
|
};
|
|
5136
6208
|
}
|
|
5137
|
-
let { top: o, left: s } =
|
|
6209
|
+
let { top: o, left: s } = Kr(e, t, n);
|
|
5138
6210
|
return {
|
|
5139
6211
|
top: Math.max($, Math.min(o, i - t.height - $)),
|
|
5140
6212
|
left: Math.max($, Math.min(s, r - t.width - $)),
|
|
5141
6213
|
placement: n
|
|
5142
6214
|
};
|
|
5143
6215
|
}
|
|
5144
|
-
var
|
|
6216
|
+
var Jr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panelStyle: a, children: s }) => {
|
|
5145
6217
|
let l = q(), u = J(), p = r !== void 0, [g, _] = f(!1), v = p ? r : g, [y, b] = f(null), [S, C] = f(null), [T, E] = f(null), D = d(null), O = d(new m.Value(0)).current, A = o((e) => {
|
|
5146
6218
|
p || _(e), i?.(e);
|
|
5147
6219
|
}, [p, i]), P = o(() => A(!1), [A]), F = o(() => A(!v), [v, A]);
|
|
@@ -5159,7 +6231,7 @@ var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5159
6231
|
});
|
|
5160
6232
|
});
|
|
5161
6233
|
}, [v]), c(() => {
|
|
5162
|
-
!y || !S || E(
|
|
6234
|
+
!y || !S || E(qr(y, S, t));
|
|
5163
6235
|
}, [
|
|
5164
6236
|
y,
|
|
5165
6237
|
S,
|
|
@@ -5196,7 +6268,7 @@ var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5196
6268
|
position: "absolute",
|
|
5197
6269
|
width: 0,
|
|
5198
6270
|
height: 0,
|
|
5199
|
-
borderWidth:
|
|
6271
|
+
borderWidth: Wr,
|
|
5200
6272
|
borderColor: "transparent"
|
|
5201
6273
|
}, R = (() => {
|
|
5202
6274
|
switch (T?.placement) {
|
|
@@ -5233,7 +6305,7 @@ var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5233
6305
|
})(), z = s.props.ref;
|
|
5234
6306
|
return /* @__PURE__ */ N(j, { children: [n(s, {
|
|
5235
6307
|
ref: (e) => {
|
|
5236
|
-
D.current = e,
|
|
6308
|
+
D.current = e, Gr(z, e);
|
|
5237
6309
|
},
|
|
5238
6310
|
accessibilityState: {
|
|
5239
6311
|
expanded: v,
|
|
@@ -5291,7 +6363,7 @@ var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5291
6363
|
})
|
|
5292
6364
|
})
|
|
5293
6365
|
})] });
|
|
5294
|
-
},
|
|
6366
|
+
}, Yr = i(function({ title: e, description: t, headerSuffix: n, children: r, style: i, ...a }, o) {
|
|
5295
6367
|
let s = q(), c = !!(e || t || n);
|
|
5296
6368
|
return /* @__PURE__ */ N(k, {
|
|
5297
6369
|
ref: o,
|
|
@@ -5324,8 +6396,8 @@ var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5324
6396
|
}) : null]
|
|
5325
6397
|
}) : null, /* @__PURE__ */ M(k, { children: r })]
|
|
5326
6398
|
});
|
|
5327
|
-
}),
|
|
5328
|
-
let o = q(), s =
|
|
6399
|
+
}), Xr = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
|
|
6400
|
+
let o = q(), s = G(), l = J(), u = e == null, p = u ? void 0 : Math.min(1, Math.max(0, e)), h = p === void 0 ? void 0 : p * 100, g = d(new m.Value(p ?? 0)).current, v = d(new m.Value(0)).current, [y, b] = f(0), x = (e) => {
|
|
5329
6401
|
b(e.nativeEvent.layout.width), i?.(e);
|
|
5330
6402
|
};
|
|
5331
6403
|
c(() => {
|
|
@@ -5407,8 +6479,8 @@ var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5407
6479
|
backgroundColor: C[t]
|
|
5408
6480
|
}, w] })
|
|
5409
6481
|
});
|
|
5410
|
-
},
|
|
5411
|
-
let o = q(), s =
|
|
6482
|
+
}, Zr = 18, Qr = 6, $r = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
|
|
6483
|
+
let o = q(), s = G(), l = K(), u = d(new m.Value(+!!e)).current, f = d(!0);
|
|
5412
6484
|
c(() => {
|
|
5413
6485
|
if (f.current) {
|
|
5414
6486
|
f.current = !1;
|
|
@@ -5449,8 +6521,8 @@ var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5449
6521
|
...i,
|
|
5450
6522
|
children: /* @__PURE__ */ M(m.View, {
|
|
5451
6523
|
style: {
|
|
5452
|
-
width:
|
|
5453
|
-
height:
|
|
6524
|
+
width: Zr,
|
|
6525
|
+
height: Zr,
|
|
5454
6526
|
alignItems: "center",
|
|
5455
6527
|
justifyContent: "center",
|
|
5456
6528
|
borderRadius: o.radiusPill,
|
|
@@ -5459,24 +6531,256 @@ var gr = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panel
|
|
|
5459
6531
|
backgroundColor: g
|
|
5460
6532
|
},
|
|
5461
6533
|
children: /* @__PURE__ */ M(m.View, { style: {
|
|
5462
|
-
width:
|
|
5463
|
-
height:
|
|
6534
|
+
width: Qr,
|
|
6535
|
+
height: Qr,
|
|
5464
6536
|
borderRadius: o.radiusPill,
|
|
5465
6537
|
backgroundColor: "#fff",
|
|
5466
6538
|
opacity: u
|
|
5467
6539
|
} })
|
|
5468
6540
|
})
|
|
5469
6541
|
});
|
|
5470
|
-
});
|
|
6542
|
+
}), ei = 6, ti = 22, ni = 4;
|
|
6543
|
+
function ri(e, t, n) {
|
|
6544
|
+
return Math.min(n, Math.max(t, e));
|
|
6545
|
+
}
|
|
6546
|
+
function ii(e, t, n, r) {
|
|
6547
|
+
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
6548
|
+
}
|
|
6549
|
+
function ai(e) {
|
|
6550
|
+
let t = e.toString(), n = t.indexOf(".");
|
|
6551
|
+
return n === -1 ? 0 : t.length - n - 1;
|
|
6552
|
+
}
|
|
6553
|
+
var oi = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, minDistance: a = 0, disabled: s = !1, marks: c, minLabel: l = "Minimum value", maxLabel: p = "Maximum value", style: m, onLayout: h, testID: g, ..._ }) => {
|
|
6554
|
+
let v = q(), [y, b] = f(0), [x, C] = f({}), w = d(null), T = ai(i), [E, O] = e, A = ri(E, n, r), j = ri(O, n, r), P = (A - n) / (r - n) * 100, F = (j - n) / (r - n) * 100, I = o((e) => {
|
|
6555
|
+
b(e.nativeEvent.layout.width), h?.(e);
|
|
6556
|
+
}, [h]), L = o((e, o) => {
|
|
6557
|
+
let s = ii(o, n, i, T);
|
|
6558
|
+
t(e === 0 ? [ri(s, n, O - a), O] : [E, ri(s, E + a, r)]);
|
|
6559
|
+
}, [
|
|
6560
|
+
n,
|
|
6561
|
+
r,
|
|
6562
|
+
i,
|
|
6563
|
+
T,
|
|
6564
|
+
a,
|
|
6565
|
+
E,
|
|
6566
|
+
O,
|
|
6567
|
+
t
|
|
6568
|
+
]), R = o((e) => e / y * (r - n) + n, [
|
|
6569
|
+
y,
|
|
6570
|
+
n,
|
|
6571
|
+
r
|
|
6572
|
+
]), z = o((e) => {
|
|
6573
|
+
let t = R(e);
|
|
6574
|
+
return Math.abs(t - E) <= Math.abs(t - O) ? 0 : 1;
|
|
6575
|
+
}, [
|
|
6576
|
+
R,
|
|
6577
|
+
E,
|
|
6578
|
+
O
|
|
6579
|
+
]), B = u(() => S.create({
|
|
6580
|
+
onStartShouldSetPanResponder: () => !s,
|
|
6581
|
+
onMoveShouldSetPanResponder: () => !s,
|
|
6582
|
+
onPanResponderGrant: (e) => {
|
|
6583
|
+
if (y <= 0) return;
|
|
6584
|
+
let { locationX: t } = e.nativeEvent, n = z(t);
|
|
6585
|
+
w.current = n, L(n, R(t));
|
|
6586
|
+
},
|
|
6587
|
+
onPanResponderMove: (e) => {
|
|
6588
|
+
w.current === null || y <= 0 || L(w.current, R(e.nativeEvent.locationX));
|
|
6589
|
+
},
|
|
6590
|
+
onPanResponderRelease: () => {
|
|
6591
|
+
w.current = null;
|
|
6592
|
+
},
|
|
6593
|
+
onPanResponderTerminate: () => {
|
|
6594
|
+
w.current = null;
|
|
6595
|
+
}
|
|
6596
|
+
}), [
|
|
6597
|
+
s,
|
|
6598
|
+
y,
|
|
6599
|
+
z,
|
|
6600
|
+
L,
|
|
6601
|
+
R
|
|
6602
|
+
]), V = o((e) => (t) => {
|
|
6603
|
+
if (s) return;
|
|
6604
|
+
let n = e === 0 ? E : O;
|
|
6605
|
+
switch (t.nativeEvent.actionName) {
|
|
6606
|
+
case "increment":
|
|
6607
|
+
L(e, n + i);
|
|
6608
|
+
break;
|
|
6609
|
+
case "decrement":
|
|
6610
|
+
L(e, n - i);
|
|
6611
|
+
break;
|
|
6612
|
+
}
|
|
6613
|
+
}, [
|
|
6614
|
+
s,
|
|
6615
|
+
E,
|
|
6616
|
+
O,
|
|
6617
|
+
i,
|
|
6618
|
+
L
|
|
6619
|
+
]), H = c && c.length > 0, ee = H && c.some((e) => e.label), te = P / 100 * y - ti / 2, ne = F / 100 * y - ti / 2;
|
|
6620
|
+
return /* @__PURE__ */ N(k, {
|
|
6621
|
+
testID: g,
|
|
6622
|
+
style: [{
|
|
6623
|
+
width: "100%",
|
|
6624
|
+
paddingTop: 10,
|
|
6625
|
+
paddingBottom: ee ? 0 : 10
|
|
6626
|
+
}, m],
|
|
6627
|
+
..._,
|
|
6628
|
+
children: [/* @__PURE__ */ N(k, {
|
|
6629
|
+
testID: g ? `${g}-track` : void 0,
|
|
6630
|
+
onLayout: I,
|
|
6631
|
+
style: {
|
|
6632
|
+
justifyContent: "center",
|
|
6633
|
+
height: ti,
|
|
6634
|
+
opacity: s ? v.opacityDisabled : 1
|
|
6635
|
+
},
|
|
6636
|
+
...B.panHandlers,
|
|
6637
|
+
children: [
|
|
6638
|
+
/* @__PURE__ */ M(k, {
|
|
6639
|
+
pointerEvents: "none",
|
|
6640
|
+
style: {
|
|
6641
|
+
width: "100%",
|
|
6642
|
+
height: ei,
|
|
6643
|
+
borderRadius: v.radiusPill,
|
|
6644
|
+
backgroundColor: v.cardShadeColor,
|
|
6645
|
+
overflow: "hidden"
|
|
6646
|
+
},
|
|
6647
|
+
children: /* @__PURE__ */ M(k, { style: {
|
|
6648
|
+
position: "absolute",
|
|
6649
|
+
height: "100%",
|
|
6650
|
+
left: `${P}%`,
|
|
6651
|
+
width: `${F - P}%`,
|
|
6652
|
+
borderRadius: v.radiusPill,
|
|
6653
|
+
backgroundColor: v.accentBgColor
|
|
6654
|
+
} })
|
|
6655
|
+
}),
|
|
6656
|
+
/* @__PURE__ */ M(k, {
|
|
6657
|
+
pointerEvents: "none",
|
|
6658
|
+
accessible: !0,
|
|
6659
|
+
accessibilityRole: "adjustable",
|
|
6660
|
+
accessibilityLabel: l,
|
|
6661
|
+
accessibilityValue: {
|
|
6662
|
+
min: n,
|
|
6663
|
+
max: O,
|
|
6664
|
+
now: A
|
|
6665
|
+
},
|
|
6666
|
+
accessibilityState: { disabled: s },
|
|
6667
|
+
accessibilityActions: [{
|
|
6668
|
+
name: "increment",
|
|
6669
|
+
label: "increment"
|
|
6670
|
+
}, {
|
|
6671
|
+
name: "decrement",
|
|
6672
|
+
label: "decrement"
|
|
6673
|
+
}],
|
|
6674
|
+
onAccessibilityAction: V(0),
|
|
6675
|
+
style: {
|
|
6676
|
+
position: "absolute",
|
|
6677
|
+
left: te,
|
|
6678
|
+
width: ti,
|
|
6679
|
+
height: ti,
|
|
6680
|
+
borderRadius: v.radiusPill,
|
|
6681
|
+
backgroundColor: v.accentBgColor,
|
|
6682
|
+
borderWidth: 2,
|
|
6683
|
+
borderColor: v.windowBgColor,
|
|
6684
|
+
shadowColor: "#000",
|
|
6685
|
+
shadowOffset: {
|
|
6686
|
+
width: 0,
|
|
6687
|
+
height: 1
|
|
6688
|
+
},
|
|
6689
|
+
shadowOpacity: .25,
|
|
6690
|
+
shadowRadius: 3,
|
|
6691
|
+
elevation: 3
|
|
6692
|
+
}
|
|
6693
|
+
}),
|
|
6694
|
+
/* @__PURE__ */ M(k, {
|
|
6695
|
+
pointerEvents: "none",
|
|
6696
|
+
accessible: !0,
|
|
6697
|
+
accessibilityRole: "adjustable",
|
|
6698
|
+
accessibilityLabel: p,
|
|
6699
|
+
accessibilityValue: {
|
|
6700
|
+
min: E,
|
|
6701
|
+
max: r,
|
|
6702
|
+
now: j
|
|
6703
|
+
},
|
|
6704
|
+
accessibilityState: { disabled: s },
|
|
6705
|
+
accessibilityActions: [{
|
|
6706
|
+
name: "increment",
|
|
6707
|
+
label: "increment"
|
|
6708
|
+
}, {
|
|
6709
|
+
name: "decrement",
|
|
6710
|
+
label: "decrement"
|
|
6711
|
+
}],
|
|
6712
|
+
onAccessibilityAction: V(1),
|
|
6713
|
+
style: {
|
|
6714
|
+
position: "absolute",
|
|
6715
|
+
left: ne,
|
|
6716
|
+
width: ti,
|
|
6717
|
+
height: ti,
|
|
6718
|
+
borderRadius: v.radiusPill,
|
|
6719
|
+
backgroundColor: v.accentBgColor,
|
|
6720
|
+
borderWidth: 2,
|
|
6721
|
+
borderColor: v.windowBgColor,
|
|
6722
|
+
shadowColor: "#000",
|
|
6723
|
+
shadowOffset: {
|
|
6724
|
+
width: 0,
|
|
6725
|
+
height: 1
|
|
6726
|
+
},
|
|
6727
|
+
shadowOpacity: .25,
|
|
6728
|
+
shadowRadius: 3,
|
|
6729
|
+
elevation: 3
|
|
6730
|
+
}
|
|
6731
|
+
}),
|
|
6732
|
+
H && c.map((e) => /* @__PURE__ */ M(k, {
|
|
6733
|
+
pointerEvents: "none",
|
|
6734
|
+
importantForAccessibility: "no",
|
|
6735
|
+
style: {
|
|
6736
|
+
position: "absolute",
|
|
6737
|
+
left: (ri(e.value, n, r) - n) / (r - n) * 100 / 100 * y - ni / 2,
|
|
6738
|
+
width: ni,
|
|
6739
|
+
height: ni,
|
|
6740
|
+
borderRadius: ni / 2,
|
|
6741
|
+
backgroundColor: v.windowBgColor
|
|
6742
|
+
}
|
|
6743
|
+
}, e.value))
|
|
6744
|
+
]
|
|
6745
|
+
}), ee && /* @__PURE__ */ M(k, {
|
|
6746
|
+
importantForAccessibility: "no",
|
|
6747
|
+
style: {
|
|
6748
|
+
position: "relative",
|
|
6749
|
+
width: "100%",
|
|
6750
|
+
height: 20,
|
|
6751
|
+
marginTop: 6
|
|
6752
|
+
},
|
|
6753
|
+
children: c.map((e) => /* @__PURE__ */ M(D, {
|
|
6754
|
+
numberOfLines: 1,
|
|
6755
|
+
onLayout: (t) => {
|
|
6756
|
+
let { layout: { width: n } } = t.nativeEvent;
|
|
6757
|
+
C((t) => t[e.value] === n ? t : {
|
|
6758
|
+
...t,
|
|
6759
|
+
[e.value]: n
|
|
6760
|
+
});
|
|
6761
|
+
},
|
|
6762
|
+
style: {
|
|
6763
|
+
position: "absolute",
|
|
6764
|
+
left: (ri(e.value, n, r) - n) / (r - n) * 100 / 100 * y - (x[e.value] ?? 0) / 2,
|
|
6765
|
+
fontFamily: v.fontFamily,
|
|
6766
|
+
fontSize: v.fontSizeCaption,
|
|
6767
|
+
color: v.windowFgColor,
|
|
6768
|
+
opacity: v.opacityDim
|
|
6769
|
+
},
|
|
6770
|
+
children: e.label
|
|
6771
|
+
}, e.value))
|
|
6772
|
+
})]
|
|
6773
|
+
});
|
|
6774
|
+
};
|
|
5471
6775
|
//#endregion
|
|
5472
6776
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
5473
|
-
function
|
|
6777
|
+
function si(e, t) {
|
|
5474
6778
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
5475
6779
|
if (!n) return e;
|
|
5476
6780
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
5477
6781
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
5478
6782
|
}
|
|
5479
|
-
var
|
|
6783
|
+
var ci = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, placeholder: a = "Search…", editable: o = !0, inline: s = !1, closeLabel: u = "Cancel", style: f, inputStyle: p, ...m }, h) {
|
|
5480
6784
|
let g = q(), _ = d(null);
|
|
5481
6785
|
if (l(h, () => _.current, []), c(() => {
|
|
5482
6786
|
if (!e) return;
|
|
@@ -5520,7 +6824,7 @@ var Cr = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
5520
6824
|
editable: o,
|
|
5521
6825
|
value: i,
|
|
5522
6826
|
placeholder: a,
|
|
5523
|
-
placeholderTextColor:
|
|
6827
|
+
placeholderTextColor: si(g.windowFgColor, g.opacityDim),
|
|
5524
6828
|
style: [{
|
|
5525
6829
|
flex: 1,
|
|
5526
6830
|
padding: 0,
|
|
@@ -5585,9 +6889,9 @@ var Cr = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
|
|
|
5585
6889
|
children: r
|
|
5586
6890
|
})]
|
|
5587
6891
|
});
|
|
5588
|
-
}),
|
|
5589
|
-
function
|
|
5590
|
-
switch (t %
|
|
6892
|
+
}), li = 8;
|
|
6893
|
+
function ui(e, t) {
|
|
6894
|
+
switch (t % li) {
|
|
5591
6895
|
case 0: return e.blue3;
|
|
5592
6896
|
case 1: return e.green3;
|
|
5593
6897
|
case 2: return e.purple3;
|
|
@@ -5598,8 +6902,8 @@ function Tr(e, t) {
|
|
|
5598
6902
|
default: return e.green5;
|
|
5599
6903
|
}
|
|
5600
6904
|
}
|
|
5601
|
-
var
|
|
5602
|
-
let i = q(), a =
|
|
6905
|
+
var di = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
6906
|
+
let i = q(), a = G(), [o, s] = f(null), c = e.reduce((e, t) => e + t.value, 0) || 100, l = e.map((e) => `${e.label} ${e.value}%`).join(", "), u = a === "dark" ? i.dark2 : i.light3;
|
|
5603
6907
|
return /* @__PURE__ */ M(k, {
|
|
5604
6908
|
testID: r,
|
|
5605
6909
|
accessible: !0,
|
|
@@ -5616,7 +6920,7 @@ var Er = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
5616
6920
|
}, n],
|
|
5617
6921
|
children: e.map((e, t) => {
|
|
5618
6922
|
let n = `${e.value / c * 100}%`, r = e.value % 1 == 0 ? e.value : e.value.toFixed(1);
|
|
5619
|
-
return /* @__PURE__ */ M(
|
|
6923
|
+
return /* @__PURE__ */ M(Rn, {
|
|
5620
6924
|
label: `${e.label}: ${r}%`,
|
|
5621
6925
|
placement: "top",
|
|
5622
6926
|
delay: 200,
|
|
@@ -5627,7 +6931,7 @@ var Er = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
5627
6931
|
style: {
|
|
5628
6932
|
width: n,
|
|
5629
6933
|
height: "100%",
|
|
5630
|
-
backgroundColor: e.color ??
|
|
6934
|
+
backgroundColor: e.color ?? ui(i, t),
|
|
5631
6935
|
opacity: o !== null && o !== t ? .35 : 1
|
|
5632
6936
|
}
|
|
5633
6937
|
})
|
|
@@ -5637,30 +6941,30 @@ var Er = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
|
|
|
5637
6941
|
};
|
|
5638
6942
|
//#endregion
|
|
5639
6943
|
//#region src/components/Sidebar/filterUtils.ts
|
|
5640
|
-
function
|
|
6944
|
+
function fi(t, n) {
|
|
5641
6945
|
let r = 0;
|
|
5642
6946
|
return e.forEach(t, (e) => {
|
|
5643
6947
|
if (!a(e)) return;
|
|
5644
6948
|
let t = e.props;
|
|
5645
|
-
typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r +=
|
|
6949
|
+
typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += fi(t.children, n));
|
|
5646
6950
|
}), r;
|
|
5647
6951
|
}
|
|
5648
|
-
function
|
|
6952
|
+
function pi(e, t) {
|
|
5649
6953
|
if (!t || !a(e)) return !0;
|
|
5650
6954
|
let n = e.props;
|
|
5651
|
-
return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ?
|
|
6955
|
+
return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? fi(n.children, t) > 0 : !0;
|
|
5652
6956
|
}
|
|
5653
6957
|
//#endregion
|
|
5654
6958
|
//#region src/components/Sidebar/Sidebar.tsx
|
|
5655
|
-
var
|
|
5656
|
-
function
|
|
5657
|
-
return s(
|
|
6959
|
+
var mi = r(!1);
|
|
6960
|
+
function hi() {
|
|
6961
|
+
return s(mi);
|
|
5658
6962
|
}
|
|
5659
|
-
var
|
|
5660
|
-
let c = q(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) =>
|
|
5661
|
-
return /* @__PURE__ */ M(
|
|
6963
|
+
var gi = r(""), _i = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
|
|
6964
|
+
let c = q(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => pi(e, i)), d = !l || u.length > 0;
|
|
6965
|
+
return /* @__PURE__ */ M(mi.Provider, {
|
|
5662
6966
|
value: r,
|
|
5663
|
-
children: /* @__PURE__ */ M(
|
|
6967
|
+
children: /* @__PURE__ */ M(gi.Provider, {
|
|
5664
6968
|
value: i,
|
|
5665
6969
|
children: /* @__PURE__ */ M(k, {
|
|
5666
6970
|
ref: s,
|
|
@@ -5682,7 +6986,7 @@ var jr = r(""), Mr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5682
6986
|
padding: c.space4
|
|
5683
6987
|
},
|
|
5684
6988
|
children: "No items match your search."
|
|
5685
|
-
}) : u.map((e, n) => /* @__PURE__ */ N(t, { children: [n > 0 && /* @__PURE__ */ M(
|
|
6989
|
+
}) : u.map((e, n) => /* @__PURE__ */ N(t, { children: [n > 0 && /* @__PURE__ */ M(zt, {
|
|
5686
6990
|
testID: "sidebar-separator",
|
|
5687
6991
|
style: { marginVertical: c.space1 }
|
|
5688
6992
|
}), e] }, n))
|
|
@@ -5690,8 +6994,8 @@ var jr = r(""), Mr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5690
6994
|
})
|
|
5691
6995
|
})
|
|
5692
6996
|
});
|
|
5693
|
-
}),
|
|
5694
|
-
let l = q(), u =
|
|
6997
|
+
}), vi = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
|
|
6998
|
+
let l = q(), u = hi(), d = s(gi);
|
|
5695
6999
|
return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ N(w, {
|
|
5696
7000
|
ref: c,
|
|
5697
7001
|
disabled: i,
|
|
@@ -5744,15 +7048,15 @@ var jr = r(""), Mr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5744
7048
|
})
|
|
5745
7049
|
]
|
|
5746
7050
|
});
|
|
5747
|
-
}),
|
|
5748
|
-
let p = q(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v =
|
|
7051
|
+
}), yi = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
|
|
7052
|
+
let p = q(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = hi(), y = s(gi), b = (e) => {
|
|
5749
7053
|
g || h(e), a?.(e);
|
|
5750
7054
|
};
|
|
5751
7055
|
if (l(d, () => ({
|
|
5752
7056
|
expand: () => b(!0),
|
|
5753
7057
|
collapse: () => b(!1),
|
|
5754
7058
|
toggle: () => b(!_)
|
|
5755
|
-
})), !(y.length === 0 ||
|
|
7059
|
+
})), !(y.length === 0 || fi(o, y) > 0)) return null;
|
|
5756
7060
|
let x = v ? !0 : _, S = !v && !!(e || t), C = (e || t) && /* @__PURE__ */ N(k, {
|
|
5757
7061
|
style: {
|
|
5758
7062
|
flexDirection: "row",
|
|
@@ -5805,7 +7109,7 @@ var jr = r(""), Mr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5805
7109
|
children: o
|
|
5806
7110
|
})]
|
|
5807
7111
|
});
|
|
5808
|
-
}),
|
|
7112
|
+
}), bi = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
|
|
5809
7113
|
let l = q(), u = J(), f = d(new m.Value(1)).current, p = a && !u;
|
|
5810
7114
|
if (c(() => {
|
|
5811
7115
|
if (!p) {
|
|
@@ -5864,22 +7168,22 @@ var jr = r(""), Mr = i(function({ children: n, collapsed: r = !1, filter: i = ""
|
|
|
5864
7168
|
],
|
|
5865
7169
|
...s
|
|
5866
7170
|
});
|
|
5867
|
-
},
|
|
5868
|
-
function
|
|
7171
|
+
}, xi = 6, Si = 22, Ci = 4;
|
|
7172
|
+
function wi(e, t, n) {
|
|
5869
7173
|
return Math.min(n, Math.max(t, e));
|
|
5870
7174
|
}
|
|
5871
|
-
function
|
|
7175
|
+
function Ti(e, t, n, r) {
|
|
5872
7176
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
5873
7177
|
}
|
|
5874
|
-
function
|
|
7178
|
+
function Ei(e) {
|
|
5875
7179
|
let t = e.toString(), n = t.indexOf(".");
|
|
5876
7180
|
return n === -1 ? 0 : t.length - n - 1;
|
|
5877
7181
|
}
|
|
5878
|
-
var
|
|
5879
|
-
let m = q(), [h, g] = f(0), [_, v] = f({}), y =
|
|
7182
|
+
var Di = ({ 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 }) => {
|
|
7183
|
+
let m = q(), [h, g] = f(0), [_, v] = f({}), y = Ei(i), b = wi(e, n, r), x = (b - n) / (r - n) * 100, C = o((e) => {
|
|
5880
7184
|
g(e.nativeEvent.layout.width), d?.(e);
|
|
5881
7185
|
}, [d]), w = o((e) => {
|
|
5882
|
-
a || h <= 0 || t(
|
|
7186
|
+
a || h <= 0 || t(wi(Ti(e / h * (r - n) + n, n, i, y), n, r));
|
|
5883
7187
|
}, [
|
|
5884
7188
|
a,
|
|
5885
7189
|
h,
|
|
@@ -5896,10 +7200,10 @@ var Hr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5896
7200
|
}), [a, w]), E = o((o) => {
|
|
5897
7201
|
if (!a) switch (o.nativeEvent.actionName) {
|
|
5898
7202
|
case "increment":
|
|
5899
|
-
t(
|
|
7203
|
+
t(wi(Ti(e + i, n, i, y), n, r));
|
|
5900
7204
|
break;
|
|
5901
7205
|
case "decrement":
|
|
5902
|
-
t(
|
|
7206
|
+
t(wi(Ti(e - i, n, i, y), n, r));
|
|
5903
7207
|
break;
|
|
5904
7208
|
}
|
|
5905
7209
|
}, [
|
|
@@ -5910,7 +7214,7 @@ var Hr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5910
7214
|
r,
|
|
5911
7215
|
y,
|
|
5912
7216
|
t
|
|
5913
|
-
]), O = s && s.length > 0, A = O && s.some((e) => e.label), j = x / 100 * h -
|
|
7217
|
+
]), O = s && s.length > 0, A = O && s.some((e) => e.label), j = x / 100 * h - Si / 2;
|
|
5914
7218
|
return /* @__PURE__ */ N(k, {
|
|
5915
7219
|
style: [{
|
|
5916
7220
|
width: "100%",
|
|
@@ -5939,7 +7243,7 @@ var Hr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5939
7243
|
onAccessibilityAction: E,
|
|
5940
7244
|
style: {
|
|
5941
7245
|
justifyContent: "center",
|
|
5942
|
-
height:
|
|
7246
|
+
height: Si,
|
|
5943
7247
|
opacity: a ? m.opacityDisabled : 1
|
|
5944
7248
|
},
|
|
5945
7249
|
...T.panHandlers,
|
|
@@ -5948,7 +7252,7 @@ var Hr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5948
7252
|
pointerEvents: "none",
|
|
5949
7253
|
style: {
|
|
5950
7254
|
width: "100%",
|
|
5951
|
-
height:
|
|
7255
|
+
height: xi,
|
|
5952
7256
|
borderRadius: m.radiusPill,
|
|
5953
7257
|
backgroundColor: m.cardShadeColor,
|
|
5954
7258
|
overflow: "hidden"
|
|
@@ -5965,8 +7269,8 @@ var Hr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5965
7269
|
style: {
|
|
5966
7270
|
position: "absolute",
|
|
5967
7271
|
left: j,
|
|
5968
|
-
width:
|
|
5969
|
-
height:
|
|
7272
|
+
width: Si,
|
|
7273
|
+
height: Si,
|
|
5970
7274
|
borderRadius: m.radiusPill,
|
|
5971
7275
|
backgroundColor: m.accentBgColor,
|
|
5972
7276
|
borderWidth: 2,
|
|
@@ -5986,10 +7290,10 @@ var Hr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
5986
7290
|
importantForAccessibility: "no",
|
|
5987
7291
|
style: {
|
|
5988
7292
|
position: "absolute",
|
|
5989
|
-
left: (
|
|
5990
|
-
width:
|
|
5991
|
-
height:
|
|
5992
|
-
borderRadius:
|
|
7293
|
+
left: (wi(e.value, n, r) - n) / (r - n) * 100 / 100 * h - Ci / 2,
|
|
7294
|
+
width: Ci,
|
|
7295
|
+
height: Ci,
|
|
7296
|
+
borderRadius: Ci / 2,
|
|
5993
7297
|
backgroundColor: m.windowBgColor
|
|
5994
7298
|
}
|
|
5995
7299
|
}, e.value))
|
|
@@ -6013,7 +7317,7 @@ var Hr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
6013
7317
|
},
|
|
6014
7318
|
style: {
|
|
6015
7319
|
position: "absolute",
|
|
6016
|
-
left: (
|
|
7320
|
+
left: (wi(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
|
|
6017
7321
|
fontFamily: m.fontFamily,
|
|
6018
7322
|
fontSize: m.fontSizeCaption,
|
|
6019
7323
|
color: m.windowFgColor,
|
|
@@ -6023,21 +7327,21 @@ var Hr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
|
|
|
6023
7327
|
}, e.value))
|
|
6024
7328
|
})]
|
|
6025
7329
|
});
|
|
6026
|
-
},
|
|
6027
|
-
function
|
|
7330
|
+
}, Oi = 36;
|
|
7331
|
+
function ki(e) {
|
|
6028
7332
|
let t = e.toString(), n = t.indexOf(".");
|
|
6029
7333
|
return n === -1 ? 0 : t.length - n - 1;
|
|
6030
7334
|
}
|
|
6031
|
-
function
|
|
7335
|
+
function Ai(e, t, n) {
|
|
6032
7336
|
return Math.min(n, Math.max(t, e));
|
|
6033
7337
|
}
|
|
6034
|
-
function
|
|
7338
|
+
function ji(e, t, n, r) {
|
|
6035
7339
|
let i = n - t + r;
|
|
6036
7340
|
return ((e - t) % i + i) % i + t;
|
|
6037
7341
|
}
|
|
6038
|
-
var
|
|
6039
|
-
let f = q(), p = a ??
|
|
6040
|
-
let a = s ?
|
|
7342
|
+
var Mi = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decimals: a, wrap: s = !1, format: c, disabled: l = !1, accessibilityLabel: u, style: d }) => {
|
|
7343
|
+
let f = q(), p = a ?? ki(i), m = o((e) => {
|
|
7344
|
+
let a = s ? ji(e, n, r, i) : Ai(e, n, r);
|
|
6041
7345
|
t(parseFloat(a.toFixed(p)));
|
|
6042
7346
|
}, [
|
|
6043
7347
|
t,
|
|
@@ -6098,8 +7402,8 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6098
7402
|
disabled: _,
|
|
6099
7403
|
onPress: () => m(e - i),
|
|
6100
7404
|
style: ({ pressed: e }) => ({
|
|
6101
|
-
width:
|
|
6102
|
-
height:
|
|
7405
|
+
width: Oi,
|
|
7406
|
+
height: Oi,
|
|
6103
7407
|
alignItems: "center",
|
|
6104
7408
|
justifyContent: "center",
|
|
6105
7409
|
borderRightWidth: 1,
|
|
@@ -6136,8 +7440,8 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6136
7440
|
disabled: v,
|
|
6137
7441
|
onPress: () => m(e + i),
|
|
6138
7442
|
style: ({ pressed: e }) => ({
|
|
6139
|
-
width:
|
|
6140
|
-
height:
|
|
7443
|
+
width: Oi,
|
|
7444
|
+
height: Oi,
|
|
6141
7445
|
alignItems: "center",
|
|
6142
7446
|
justifyContent: "center",
|
|
6143
7447
|
borderLeftWidth: 1,
|
|
@@ -6156,7 +7460,7 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6156
7460
|
})
|
|
6157
7461
|
]
|
|
6158
7462
|
});
|
|
6159
|
-
},
|
|
7463
|
+
}, Ni = {
|
|
6160
7464
|
sm: {
|
|
6161
7465
|
dimension: 16,
|
|
6162
7466
|
borderWidth: 2
|
|
@@ -6169,8 +7473,8 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6169
7473
|
dimension: 36,
|
|
6170
7474
|
borderWidth: 3
|
|
6171
7475
|
}
|
|
6172
|
-
},
|
|
6173
|
-
let i = q(), a =
|
|
7476
|
+
}, Pi = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
|
|
7477
|
+
let i = q(), a = G(), o = J(), s = d(new m.Value(0)).current;
|
|
6174
7478
|
c(() => {
|
|
6175
7479
|
s.setValue(0);
|
|
6176
7480
|
let e = m.loop(m.timing(s, {
|
|
@@ -6184,7 +7488,7 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6184
7488
|
let l = s.interpolate({
|
|
6185
7489
|
inputRange: [0, 1],
|
|
6186
7490
|
outputRange: ["0deg", "360deg"]
|
|
6187
|
-
}), { dimension: u, borderWidth: f } =
|
|
7491
|
+
}), { dimension: u, borderWidth: f } = Ni[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
|
|
6188
7492
|
return /* @__PURE__ */ M(m.View, {
|
|
6189
7493
|
accessible: !0,
|
|
6190
7494
|
accessibilityRole: "progressbar",
|
|
@@ -6202,8 +7506,62 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6202
7506
|
}, n],
|
|
6203
7507
|
...r
|
|
6204
7508
|
});
|
|
6205
|
-
}
|
|
6206
|
-
|
|
7509
|
+
};
|
|
7510
|
+
//#endregion
|
|
7511
|
+
//#region src/components/StatusBadge/StatusBadge.tsx
|
|
7512
|
+
function Fi(e, t) {
|
|
7513
|
+
switch (t) {
|
|
7514
|
+
case "success": return {
|
|
7515
|
+
backgroundColor: e.successBgColor,
|
|
7516
|
+
color: e.successFgColor
|
|
7517
|
+
};
|
|
7518
|
+
case "warning": return {
|
|
7519
|
+
backgroundColor: e.warningBgColor,
|
|
7520
|
+
color: e.warningFgColor
|
|
7521
|
+
};
|
|
7522
|
+
case "error": return {
|
|
7523
|
+
backgroundColor: e.errorBgColor,
|
|
7524
|
+
color: e.errorFgColor
|
|
7525
|
+
};
|
|
7526
|
+
case "new": return {
|
|
7527
|
+
backgroundColor: e.newBgColor,
|
|
7528
|
+
color: e.newFgColor
|
|
7529
|
+
};
|
|
7530
|
+
case "accent": return {
|
|
7531
|
+
backgroundColor: e.accentBgColor,
|
|
7532
|
+
color: e.accentFgColor
|
|
7533
|
+
};
|
|
7534
|
+
case "neutral": return {
|
|
7535
|
+
backgroundColor: e.hoverOverlay,
|
|
7536
|
+
color: e.windowFgColor
|
|
7537
|
+
};
|
|
7538
|
+
}
|
|
7539
|
+
}
|
|
7540
|
+
var Ii = ({ variant: e = "neutral", children: t, style: n, ...r }) => {
|
|
7541
|
+
let i = q(), { backgroundColor: a, color: o } = Fi(i, e);
|
|
7542
|
+
return /* @__PURE__ */ M(k, {
|
|
7543
|
+
style: [{
|
|
7544
|
+
alignSelf: "flex-start",
|
|
7545
|
+
paddingVertical: 2,
|
|
7546
|
+
paddingHorizontal: 8,
|
|
7547
|
+
borderRadius: i.radiusPill,
|
|
7548
|
+
backgroundColor: a
|
|
7549
|
+
}, n],
|
|
7550
|
+
...r,
|
|
7551
|
+
children: typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ M(D, {
|
|
7552
|
+
style: {
|
|
7553
|
+
fontFamily: i.fontFamily,
|
|
7554
|
+
fontWeight: String(i.fontWeightSemibold),
|
|
7555
|
+
fontSize: 11,
|
|
7556
|
+
lineHeight: 15,
|
|
7557
|
+
letterSpacing: .22,
|
|
7558
|
+
color: o
|
|
7559
|
+
},
|
|
7560
|
+
children: t
|
|
7561
|
+
}) : t
|
|
7562
|
+
});
|
|
7563
|
+
}, Li = (e) => Math.round(36 * .5 * e), Ri = i(function({ icon: e, iconNode: t, title: n, description: r, children: i, compact: a = !1, style: o, ...s }, c) {
|
|
7564
|
+
let l = q(), u = G(), d = a ? 64 : 128, f = e ? /* @__PURE__ */ M(X, {
|
|
6207
7565
|
icon: e,
|
|
6208
7566
|
width: d,
|
|
6209
7567
|
height: d
|
|
@@ -6240,12 +7598,12 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6240
7598
|
color: "dim",
|
|
6241
7599
|
style: {
|
|
6242
7600
|
textAlign: "center",
|
|
6243
|
-
maxWidth:
|
|
7601
|
+
maxWidth: Li(p),
|
|
6244
7602
|
marginTop: a ? l.space1 : l.space2
|
|
6245
7603
|
},
|
|
6246
7604
|
children: r
|
|
6247
7605
|
}) : null,
|
|
6248
|
-
i ? /* @__PURE__ */ M(
|
|
7606
|
+
i ? /* @__PURE__ */ M(vn, {
|
|
6249
7607
|
justify: "center",
|
|
6250
7608
|
childSpacing: a ? l.space1 : l.space2,
|
|
6251
7609
|
style: { marginTop: a ? l.space2 : l.space4 },
|
|
@@ -6253,8 +7611,8 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6253
7611
|
}) : null
|
|
6254
7612
|
]
|
|
6255
7613
|
});
|
|
6256
|
-
}),
|
|
6257
|
-
let o = q(), s =
|
|
7614
|
+
}), zi = 56, Bi = 28, Vi = 20, Hi = 3, Ui = 28, Wi = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
|
|
7615
|
+
let o = q(), s = G(), l = K(), u = d(new m.Value(+!!e)).current, f = d(!0);
|
|
6258
7616
|
c(() => {
|
|
6259
7617
|
if (f.current) {
|
|
6260
7618
|
f.current = !1;
|
|
@@ -6293,8 +7651,8 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6293
7651
|
...i,
|
|
6294
7652
|
children: /* @__PURE__ */ M(m.View, {
|
|
6295
7653
|
style: {
|
|
6296
|
-
width:
|
|
6297
|
-
height:
|
|
7654
|
+
width: zi,
|
|
7655
|
+
height: Bi,
|
|
6298
7656
|
borderRadius: o.radiusPill,
|
|
6299
7657
|
borderWidth: l === "more" ? 2 : 1,
|
|
6300
7658
|
borderColor: v,
|
|
@@ -6302,15 +7660,15 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6302
7660
|
},
|
|
6303
7661
|
children: /* @__PURE__ */ M(m.View, { style: [{
|
|
6304
7662
|
position: "absolute",
|
|
6305
|
-
top:
|
|
6306
|
-
left:
|
|
6307
|
-
width:
|
|
6308
|
-
height:
|
|
7663
|
+
top: Hi,
|
|
7664
|
+
left: Hi,
|
|
7665
|
+
width: Vi,
|
|
7666
|
+
height: Vi,
|
|
6309
7667
|
borderRadius: o.radiusPill,
|
|
6310
7668
|
backgroundColor: e ? "#fff" : h,
|
|
6311
7669
|
transform: [{ translateX: u.interpolate({
|
|
6312
7670
|
inputRange: [0, 1],
|
|
6313
|
-
outputRange: [0,
|
|
7671
|
+
outputRange: [0, Ui]
|
|
6314
7672
|
}) }]
|
|
6315
7673
|
}, l !== "more" && {
|
|
6316
7674
|
shadowColor: "#000",
|
|
@@ -6324,7 +7682,7 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6324
7682
|
}] })
|
|
6325
7683
|
})
|
|
6326
7684
|
});
|
|
6327
|
-
}),
|
|
7685
|
+
}), Gi = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
|
|
6328
7686
|
let o = q();
|
|
6329
7687
|
return /* @__PURE__ */ M(T, {
|
|
6330
7688
|
ref: a,
|
|
@@ -6350,7 +7708,7 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6350
7708
|
...i,
|
|
6351
7709
|
children: e
|
|
6352
7710
|
});
|
|
6353
|
-
}),
|
|
7711
|
+
}), Ki = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
|
|
6354
7712
|
let l = q();
|
|
6355
7713
|
return /* @__PURE__ */ N(w, {
|
|
6356
7714
|
ref: c,
|
|
@@ -6450,7 +7808,7 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6450
7808
|
})
|
|
6451
7809
|
]
|
|
6452
7810
|
});
|
|
6453
|
-
}),
|
|
7811
|
+
}), qi = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
|
|
6454
7812
|
return /* @__PURE__ */ M(k, {
|
|
6455
7813
|
ref: i,
|
|
6456
7814
|
style: [{ display: e ? "flex" : "none" }, t],
|
|
@@ -6460,14 +7818,14 @@ var qr = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decima
|
|
|
6460
7818
|
});
|
|
6461
7819
|
//#endregion
|
|
6462
7820
|
//#region src/components/TextField/TextField.tsx
|
|
6463
|
-
function
|
|
7821
|
+
function Ji(e, t) {
|
|
6464
7822
|
let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
|
|
6465
7823
|
if (!n) return e;
|
|
6466
7824
|
let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
|
|
6467
7825
|
return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
|
|
6468
7826
|
}
|
|
6469
|
-
var
|
|
6470
|
-
let p = q(), m =
|
|
7827
|
+
var Yi = 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) {
|
|
7828
|
+
let p = q(), m = K(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
|
|
6471
7829
|
return /* @__PURE__ */ N(k, {
|
|
6472
7830
|
style: [{
|
|
6473
7831
|
gap: p.space1,
|
|
@@ -6484,7 +7842,7 @@ var ci = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6484
7842
|
editable: a,
|
|
6485
7843
|
accessibilityLabel: c ?? e,
|
|
6486
7844
|
accessibilityHint: l ?? v,
|
|
6487
|
-
placeholderTextColor:
|
|
7845
|
+
placeholderTextColor: Ji(p.windowFgColor, p.opacityDim),
|
|
6488
7846
|
onFocus: (e) => {
|
|
6489
7847
|
g(!0), o?.(e);
|
|
6490
7848
|
},
|
|
@@ -6516,8 +7874,8 @@ var ci = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6516
7874
|
})
|
|
6517
7875
|
]
|
|
6518
7876
|
});
|
|
6519
|
-
}),
|
|
6520
|
-
let u = q(), f =
|
|
7877
|
+
}), Xi = m.createAnimatedComponent(w), Zi = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
|
|
7878
|
+
let u = q(), f = G(), p = J(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
|
|
6521
7879
|
h.current &&= (clearTimeout(h.current), null);
|
|
6522
7880
|
}, []), x = o((e) => {
|
|
6523
7881
|
e <= 0 || !n || (b(), v.current = Date.now(), h.current = setTimeout(() => n(), e));
|
|
@@ -6562,7 +7920,7 @@ var ci = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6562
7920
|
shadowRadius: 8,
|
|
6563
7921
|
elevation: 4
|
|
6564
7922
|
};
|
|
6565
|
-
return /* @__PURE__ */ N(
|
|
7923
|
+
return /* @__PURE__ */ N(Xi, {
|
|
6566
7924
|
accessible: !0,
|
|
6567
7925
|
accessibilityRole: "alert",
|
|
6568
7926
|
accessibilityLiveRegion: "polite",
|
|
@@ -6648,7 +8006,7 @@ var ci = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6648
8006
|
})
|
|
6649
8007
|
})] })]
|
|
6650
8008
|
});
|
|
6651
|
-
},
|
|
8009
|
+
}, Qi = ({ position: e = "bottom", children: t, style: n, ...r }) => {
|
|
6652
8010
|
let i = q();
|
|
6653
8011
|
return /* @__PURE__ */ M(k, {
|
|
6654
8012
|
pointerEvents: "box-none",
|
|
@@ -6668,18 +8026,18 @@ var ci = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
|
|
|
6668
8026
|
...r,
|
|
6669
8027
|
children: t
|
|
6670
8028
|
});
|
|
6671
|
-
},
|
|
6672
|
-
function
|
|
6673
|
-
let e = s(
|
|
8029
|
+
}, $i = r(null);
|
|
8030
|
+
function ea() {
|
|
8031
|
+
let e = s($i);
|
|
6674
8032
|
if (!e) throw Error("ToggleGroupItem must be used inside ToggleGroup");
|
|
6675
8033
|
return e;
|
|
6676
8034
|
}
|
|
6677
|
-
var
|
|
6678
|
-
let s = q(), c =
|
|
8035
|
+
var ta = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Options", children: r, style: i, ...a }, o) {
|
|
8036
|
+
let s = q(), c = G(), l = u(() => ({
|
|
6679
8037
|
value: e,
|
|
6680
8038
|
onValueChange: t
|
|
6681
8039
|
}), [e, t]);
|
|
6682
|
-
return /* @__PURE__ */ M(
|
|
8040
|
+
return /* @__PURE__ */ M($i.Provider, {
|
|
6683
8041
|
value: l,
|
|
6684
8042
|
children: /* @__PURE__ */ M(k, {
|
|
6685
8043
|
ref: o,
|
|
@@ -6700,8 +8058,8 @@ var mi = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Optio
|
|
|
6700
8058
|
children: r
|
|
6701
8059
|
})
|
|
6702
8060
|
});
|
|
6703
|
-
}),
|
|
6704
|
-
let s = q(), c =
|
|
8061
|
+
}), na = i(function({ name: e, label: t, icon: n, accessibilityLabel: r, disabled: i = !1, ...a }, o) {
|
|
8062
|
+
let s = q(), c = G(), { value: l, onValueChange: u } = ea(), d = l === e, f = !!n && !t, p = c === "dark";
|
|
6705
8063
|
return /* @__PURE__ */ N(w, {
|
|
6706
8064
|
ref: o,
|
|
6707
8065
|
disabled: i,
|
|
@@ -6745,8 +8103,8 @@ var mi = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Optio
|
|
|
6745
8103
|
children: t
|
|
6746
8104
|
}) : null]
|
|
6747
8105
|
});
|
|
6748
|
-
}),
|
|
6749
|
-
let a = q(), o =
|
|
8106
|
+
}), ra = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
|
|
8107
|
+
let a = q(), o = G();
|
|
6750
8108
|
return /* @__PURE__ */ N(k, {
|
|
6751
8109
|
ref: i,
|
|
6752
8110
|
accessible: !0,
|
|
@@ -6772,7 +8130,7 @@ var mi = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Optio
|
|
|
6772
8130
|
children: e
|
|
6773
8131
|
})]
|
|
6774
8132
|
});
|
|
6775
|
-
}),
|
|
8133
|
+
}), ia = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
|
|
6776
8134
|
let o = q();
|
|
6777
8135
|
return /* @__PURE__ */ N(w, {
|
|
6778
8136
|
ref: a,
|
|
@@ -6810,6 +8168,6 @@ var mi = i(function({ value: e, onValueChange: t, accessibilityLabel: n = "Optio
|
|
|
6810
8168
|
});
|
|
6811
8169
|
});
|
|
6812
8170
|
//#endregion
|
|
6813
|
-
export {
|
|
8171
|
+
export { qe as ActionRow, ut as AnimatedIcon, _t as Avatar, xt as AvatarGroup, Tt as AvatarRotator, Dt as Badge, Ot as Banner, kt as Bin, jt as Blockquote, Pt as BottomSheet, Ft as BottomTabBar, Rt as Box, Bt as BoxedList, Wt as Button, Kt as ButtonRow, Xt as Callout, Qt as Card, nn as CheckRow, en as Checkbox, rn as Chip, on as Clamp, pn as CoachMark, hn as CoachMarkTour, Sn as ColorPicker, bn as ColorSwatch, kn as ComboRow, jn as Dialog, Mn as Divider, Kn as Drawer, Dn as Dropdown, Jn as EntryRow, Yn as Expander, Xn as ExpanderRow, Zn as FieldGroup, sr as FileTypeIcon, mr as FilterableMultiSelectDropdown, xn as GNOME_PALETTE, W as GnomeContext, Ue as GnomeProvider, hr as HeaderBar, _r as Highlight, X as Icon, Bn as IconButton, wr as InlineViewSwitcher, Tr as InlineViewSwitcherItem, Or as LevelBar, kr as Link, Fr as MultiSelectDropdown, Re as NAMED_ACCENT_COLORS, Lr as Overlay, Rr as PasswordEntryRow, Vr as PasswordField, Hr as PathBar, Jr as Popover, Yr as PreferencesGroup, Xr as ProgressBar, $r as RadioButton, oi as RangeSlider, ci as SearchBar, di as SegmentedBar, zt as Separator, _i as Sidebar, mi as SidebarCollapsedContext, gi as SidebarFilterContext, vi as SidebarItem, yi as SidebarSection, bi as Skeleton, Di as Slider, Mi as SpinButton, Pi as Spinner, Ii as StatusBadge, Ri as StatusPage, Wi as Switch, Gi as TabBar, Ki as TabItem, qi as TabPanel, Y as Text, Yi as TextField, Zi as Toast, Qi as Toaster, ta as ToggleGroup, na as ToggleGroupItem, Rn as Tooltip, ra as ViewSwitcher, ia as ViewSwitcherItem, vn as WrapBox, Ve as applyAccentColor, De as darkRawTokens, Ce as darkTheme, ke as highContrastDarkRawTokens, Te as highContrastDarkTheme, Oe as highContrastRawTokens, we as highContrastTheme, Ee as lightRawTokens, Se as lightTheme, ze as resolveColorScheme, Be as resolveContrast, Le as resolveGnomeTheme, Ie as useAccentColor, Pe as useColorScheme, Fe as useContrast, Ne as useDateTimeFormatter, je as useDir, q as useGnomeTheme, Ae as useLocale, Me as useNumberFormatter, J as useReducedMotion, G as useResolvedColorScheme, K as useResolvedContrast, hi as useSidebarCollapsed };
|
|
6814
8172
|
|
|
6815
8173
|
//# sourceMappingURL=index.js.map
|