ksk-design-system 2.6.4 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +16 -0
- package/README.md +27 -1
- package/UPDATING.md +5 -0
- package/bin/lint.js +1 -1
- package/bin/product-theme-override.js +1 -1
- package/contracts/components.json +1 -1
- package/contracts/consumer-requests.json +20 -0
- package/contracts/token-hex-cache.json +1 -1
- package/dist/native/ui.js +530 -509
- package/dist/types/native/components/Alert.d.ts +4 -1
- package/dist/types/native/components/StatCard.d.ts +8 -1
- package/dist/types/native/components/index.d.ts +1 -1
- package/dist/types/native/sheet-snap-gesture.d.ts +2 -0
- package/package.json +10 -1
- package/src/preset-core.css +252 -0
- package/src/preset.css +7 -232
package/dist/native/ui.js
CHANGED
|
@@ -3,10 +3,10 @@ import { a as c, i as l, n as u, r as d, t as f } from "../native-BsJ3ntN3.js";
|
|
|
3
3
|
import * as p from "react";
|
|
4
4
|
import m, { createContext as h, useCallback as g, useContext as _, useEffect as v, useId as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
5
5
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
6
|
-
import { AccessibilityInfo as E, ActivityIndicator as D, Animated as O, Dimensions as k, Easing as A, FlatList as j, Image as M, ImageBackground as N, Keyboard as P, KeyboardAvoidingView as ee, Linking as F, Modal as te, PanResponder as ne, Platform as I, Pressable as L, ScrollView as R, Share as re, Text as z, TextInput as B, View as V } from "react-native";
|
|
6
|
+
import { AccessibilityInfo as E, ActivityIndicator as D, Animated as O, Dimensions as k, Easing as A, FlatList as j, Image as M, ImageBackground as N, Keyboard as P, KeyboardAvoidingView as ee, Linking as F, Modal as te, PanResponder as ne, Platform as I, Pressable as L, ScrollView as R, Share as re, Text as z, TextInput as B, View as V, useWindowDimensions as H } from "react-native";
|
|
7
7
|
//#region src/native/theme/ThemeProvider.tsx
|
|
8
|
-
var
|
|
9
|
-
function
|
|
8
|
+
var U = h(null);
|
|
9
|
+
function ie({ children: e, initialName: t = "default", initialMode: n = "light" }) {
|
|
10
10
|
let [r, i] = S(t), [a, o] = S(n), s = b(() => ({
|
|
11
11
|
name: r,
|
|
12
12
|
mode: a,
|
|
@@ -16,20 +16,20 @@ function U({ children: e, initialName: t = "default", initialMode: n = "light" }
|
|
|
16
16
|
setMode: o,
|
|
17
17
|
toggleMode: () => o((e) => e === "light" ? "dark" : "light")
|
|
18
18
|
}), [r, a]);
|
|
19
|
-
return /* @__PURE__ */ w(
|
|
19
|
+
return /* @__PURE__ */ w(U.Provider, {
|
|
20
20
|
value: s,
|
|
21
21
|
children: e
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function W() {
|
|
25
|
-
let e = _(
|
|
25
|
+
let e = _(U);
|
|
26
26
|
if (!e) throw Error("useTheme は ThemeProvider の内側で使ってください");
|
|
27
27
|
return e;
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/native/theme/SafeAreaInsetsProvider.tsx
|
|
31
|
-
var
|
|
32
|
-
function
|
|
31
|
+
var ae = h(null);
|
|
32
|
+
function oe({ children: e, insets: t }) {
|
|
33
33
|
let { top: n, bottom: r, left: i, right: a } = t ?? {}, o = t != null, s = b(() => o ? {
|
|
34
34
|
top: n,
|
|
35
35
|
bottom: r,
|
|
@@ -42,40 +42,40 @@ function ae({ children: e, insets: t }) {
|
|
|
42
42
|
i,
|
|
43
43
|
a
|
|
44
44
|
]);
|
|
45
|
-
return /* @__PURE__ */ w(
|
|
45
|
+
return /* @__PURE__ */ w(ae.Provider, {
|
|
46
46
|
value: s,
|
|
47
47
|
children: e
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return _(
|
|
50
|
+
function G() {
|
|
51
|
+
return _(ae);
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region src/native/safe-area.ts
|
|
55
|
-
var
|
|
55
|
+
var se = 48;
|
|
56
56
|
function K(e, t, n = !0) {
|
|
57
57
|
if (!n || !e) return 0;
|
|
58
58
|
let r = e[t];
|
|
59
59
|
return typeof r != "number" || !Number.isFinite(r) || r < 0 ? 0 : r;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function ce(e, t) {
|
|
62
62
|
if (!e) return !1;
|
|
63
63
|
let n = e[t];
|
|
64
64
|
return typeof n == "number" && Number.isFinite(n) && n >= 0;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return t ?
|
|
66
|
+
function le({ insets: e, safeArea: t, isIOS: n, fallbackSpacing: r }) {
|
|
67
|
+
return t ? ce(e, "top") ? Math.max(K(e, "top"), r) : n ? 48 : r : r;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ue(e, t, n) {
|
|
70
70
|
return e + K(t, "top", n);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function de(e, t, n, r) {
|
|
73
73
|
let i = K(e, "top", t);
|
|
74
74
|
if (i <= 0 || !Number.isFinite(n) || !Number.isFinite(r)) return 0;
|
|
75
75
|
let a = n - r;
|
|
76
76
|
return Math.max(0, i - Math.max(0, a));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function fe(e, t, n) {
|
|
79
79
|
return {
|
|
80
80
|
paddingTop: e + K(t, "top", n),
|
|
81
81
|
paddingBottom: e + K(t, "bottom", n),
|
|
@@ -94,7 +94,7 @@ function q(e) {
|
|
|
94
94
|
}
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/native/scrim-layout.ts
|
|
97
|
-
function
|
|
97
|
+
function pe(e = "center") {
|
|
98
98
|
switch (e) {
|
|
99
99
|
case "top": return {
|
|
100
100
|
alignItems: "center",
|
|
@@ -114,7 +114,7 @@ function fe(e = "center") {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function J(e = "center") {
|
|
118
118
|
return e === "stretch" ? {
|
|
119
119
|
flex: 1,
|
|
120
120
|
alignSelf: "stretch"
|
|
@@ -122,9 +122,9 @@ function pe(e = "center") {
|
|
|
122
122
|
}
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/native/components/Text.tsx
|
|
125
|
-
var
|
|
126
|
-
function
|
|
127
|
-
let { theme: a } = W(), o =
|
|
125
|
+
var me = /* @__PURE__ */ new Set(["caption", "caption-strong"]);
|
|
126
|
+
function Y({ variant: e = "body.md", color: t, style: n, children: r, ...i }) {
|
|
127
|
+
let { theme: a } = W(), o = me.has(e) ? a.text["low-emphasis"] : a.text["high-emphasis"];
|
|
128
128
|
return /* @__PURE__ */ w(z, {
|
|
129
129
|
style: [
|
|
130
130
|
q(e),
|
|
@@ -165,7 +165,7 @@ var ge = {
|
|
|
165
165
|
regular: "regular",
|
|
166
166
|
thick: "regular"
|
|
167
167
|
};
|
|
168
|
-
function
|
|
168
|
+
function X({ intensity: e = "regular", tint: t = "system", nativeGlass: n = !0, fallback: r = "blur", glassEffectStyle: i, interactive: a = !1, tintColor: o, backgroundFill: s, rimColor: c, highlightColor: l, showRim: u = !0, showHighlight: d = !0, borderRadius: f, absoluteFill: p = !1, style: m, children: h, ...g }) {
|
|
169
169
|
let { scales: _, mode: v } = W(), y = f ?? _.borderRadius.lg, b = ge[e], x = t === "system" ? v === "dark" ? "dark" : "light" : t, S = s ?? (x === "light" ? `rgba(255, 255, 255, ${b.opacity})` : `rgba(20, 20, 30, ${b.opacity})`), C = c ?? (x === "light" ? "rgba(255, 255, 255, 0.42)" : "rgba(255, 255, 255, 0.15)"), E = l ?? (x === "light" ? "rgba(255, 255, 255, 0.72)" : "rgba(255, 255, 255, 0.22)"), D = {
|
|
170
170
|
...p ? ve : {},
|
|
171
171
|
borderRadius: y,
|
|
@@ -303,7 +303,7 @@ function Oe() {
|
|
|
303
303
|
}
|
|
304
304
|
//#endregion
|
|
305
305
|
//#region src/native/components/Button.tsx
|
|
306
|
-
function
|
|
306
|
+
function Z({ variant: e = "primary", elevation: t = "flat", containerStyle: n, pressedContainerStyle: r, textStyle: i, leadingIcon: a, trailingIcon: o, loading: s = !1, loadingLabel: c, spinnerColor: l, children: u, disabled: d, accessibilityState: f, ...p }) {
|
|
307
307
|
let { theme: m, scales: h, mode: g } = W(), _ = d || s, v = {
|
|
308
308
|
primary: {
|
|
309
309
|
bg: m.brand.primary,
|
|
@@ -350,7 +350,7 @@ function X({ variant: e = "primary", elevation: t = "flat", containerStyle: n, p
|
|
|
350
350
|
opacity: _ ? .56 : 1
|
|
351
351
|
},
|
|
352
352
|
...p,
|
|
353
|
-
children: ({ pressed: t }) => /* @__PURE__ */ w(
|
|
353
|
+
children: ({ pressed: t }) => /* @__PURE__ */ w(X, {
|
|
354
354
|
intensity: "regular",
|
|
355
355
|
borderRadius: h.borderRadius.full,
|
|
356
356
|
style: {
|
|
@@ -1000,7 +1000,7 @@ function Je({ orientation: e = "horizontal", emphasis: t = "low" }) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
//#endregion
|
|
1002
1002
|
//#region src/native/components/Skeleton.tsx
|
|
1003
|
-
function
|
|
1003
|
+
function Q({ width: e = "100%", height: t = 16, radius: n, style: r }) {
|
|
1004
1004
|
let { theme: i, scales: a } = W(), [o] = S(() => new O.Value(.4));
|
|
1005
1005
|
return v(() => {
|
|
1006
1006
|
let e = O.loop(O.sequence([O.timing(o, {
|
|
@@ -1024,7 +1024,7 @@ function Z({ width: e = "100%", height: t = 16, radius: n, style: r }) {
|
|
|
1024
1024
|
function Ye({ lines: e = 3 }) {
|
|
1025
1025
|
return /* @__PURE__ */ w(V, {
|
|
1026
1026
|
style: { gap: 8 },
|
|
1027
|
-
children: Array.from({ length: e }).map((t, n) => /* @__PURE__ */ w(
|
|
1027
|
+
children: Array.from({ length: e }).map((t, n) => /* @__PURE__ */ w(Q, {
|
|
1028
1028
|
height: 12,
|
|
1029
1029
|
width: n === e - 1 ? "60%" : "100%"
|
|
1030
1030
|
}, n))
|
|
@@ -1339,28 +1339,32 @@ function ht({ count: e = 0, max: t = 99, dot: n = !1, children: r }) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
//#endregion
|
|
1341
1341
|
//#region src/native/components/StatCard.tsx
|
|
1342
|
-
function gt({ label: e, value: t, delta: n, trend: r = "neutral" }) {
|
|
1343
|
-
let { theme:
|
|
1342
|
+
function gt({ label: e, value: t, delta: n, trend: r = "neutral", style: i, labelMinHeight: a, onLabelLayout: o }) {
|
|
1343
|
+
let { theme: s, scales: c } = W(), l = r === "up" ? s.text.success : r === "down" ? s.text.caution : s.text["low-emphasis"];
|
|
1344
1344
|
return /* @__PURE__ */ T(V, {
|
|
1345
|
-
style: {
|
|
1346
|
-
backgroundColor:
|
|
1347
|
-
borderColor:
|
|
1345
|
+
style: [{
|
|
1346
|
+
backgroundColor: s.surface.primary,
|
|
1347
|
+
borderColor: s.border["low-emphasis"],
|
|
1348
1348
|
borderWidth: 1,
|
|
1349
|
-
borderRadius:
|
|
1350
|
-
padding:
|
|
1351
|
-
gap:
|
|
1352
|
-
},
|
|
1349
|
+
borderRadius: c.borderRadius.lg,
|
|
1350
|
+
padding: c.spacing.scale[4],
|
|
1351
|
+
gap: c.spacing.scale[1]
|
|
1352
|
+
}, i],
|
|
1353
1353
|
children: [
|
|
1354
|
-
/* @__PURE__ */ w(
|
|
1355
|
-
style:
|
|
1356
|
-
children:
|
|
1354
|
+
/* @__PURE__ */ w(V, {
|
|
1355
|
+
style: { minHeight: a },
|
|
1356
|
+
children: /* @__PURE__ */ w(z, {
|
|
1357
|
+
onLayout: o,
|
|
1358
|
+
style: [q("label.sm"), { color: s.text["low-emphasis"] }],
|
|
1359
|
+
children: e
|
|
1360
|
+
})
|
|
1357
1361
|
}),
|
|
1358
1362
|
/* @__PURE__ */ w(z, {
|
|
1359
|
-
style: [q("heading.2xl"), { color:
|
|
1363
|
+
style: [q("heading.2xl"), { color: s.text["high-emphasis"] }],
|
|
1360
1364
|
children: t
|
|
1361
1365
|
}),
|
|
1362
1366
|
n && /* @__PURE__ */ T(z, {
|
|
1363
|
-
style: [q("label.sm"), { color:
|
|
1367
|
+
style: [q("label.sm"), { color: l }],
|
|
1364
1368
|
children: [
|
|
1365
1369
|
r === "up" ? "▲" : r === "down" ? "▼" : "■",
|
|
1366
1370
|
" ",
|
|
@@ -1585,7 +1589,7 @@ var Tt = [
|
|
|
1585
1589
|
"caution",
|
|
1586
1590
|
"info"
|
|
1587
1591
|
], Et = Tt;
|
|
1588
|
-
function
|
|
1592
|
+
function $(e) {
|
|
1589
1593
|
let t = Math.sin(e * 999) * 1e4;
|
|
1590
1594
|
return t - Math.floor(t);
|
|
1591
1595
|
}
|
|
@@ -1598,14 +1602,14 @@ function Lt({ active: e = !0, trigger: t = "confetti", placement: n = "overlay",
|
|
|
1598
1602
|
let { theme: j, scales: M } = W(), N = bt(), P = _ ?? d, ee = r === "burst", F = f ?? (ee ? Ot : P), ne = p && p.length > 0 ? p : Tt, I = t === "confetti" || t === "both", R = !l && (t === "confetti" || t === "emoji" || t === "both"), re = !!(y || c), B = n === "overlay", H = Dt(.94), U = Dt(0), ie = Dt(0), ae = b(() => Array.from({ length: u }, (e, t) => {
|
|
1599
1603
|
let n = {
|
|
1600
1604
|
id: t,
|
|
1601
|
-
delay: Math.round(ee ?
|
|
1602
|
-
duration: Math.round(F * (.78 +
|
|
1603
|
-
rotate: Math.round(
|
|
1604
|
-
size: 6 + Math.round(
|
|
1605
|
+
delay: Math.round(ee ? $(t + 11) * 80 : $(t + 11) * 420),
|
|
1606
|
+
duration: Math.round(F * (.78 + $(t + 21) * .44)),
|
|
1607
|
+
rotate: Math.round($(t + 41) * 720),
|
|
1608
|
+
size: 6 + Math.round($(t + 51) * 6),
|
|
1605
1609
|
color: ne[t % ne.length]
|
|
1606
1610
|
};
|
|
1607
1611
|
if (ee) {
|
|
1608
|
-
let e = (jt +
|
|
1612
|
+
let e = (jt + $(t + 61) * (Mt - jt)) * Math.PI / 180, r = ($(t + 31) - .5) * m, i = Math.max(40, Nt + $(t + 71) * (Pt - Nt) + r), a = Ft + $(t + 81) * (It - Ft), o = Math.round(Math.cos(e) * i), s = Math.round(Math.sin(e) * i + a);
|
|
1609
1613
|
return {
|
|
1610
1614
|
...n,
|
|
1611
1615
|
left: 0,
|
|
@@ -1616,8 +1620,8 @@ function Lt({ active: e = !0, trigger: t = "confetti", placement: n = "overlay",
|
|
|
1616
1620
|
}
|
|
1617
1621
|
return {
|
|
1618
1622
|
...n,
|
|
1619
|
-
left: Math.round(
|
|
1620
|
-
drift: Math.round((
|
|
1623
|
+
left: Math.round($(t + 1) * 100),
|
|
1624
|
+
drift: Math.round(($(t + 31) - .5) * m),
|
|
1621
1625
|
finalX: 0,
|
|
1622
1626
|
finalY: 0
|
|
1623
1627
|
};
|
|
@@ -1630,9 +1634,9 @@ function Lt({ active: e = !0, trigger: t = "confetti", placement: n = "overlay",
|
|
|
1630
1634
|
]), oe = x(e), [G] = S(() => xt({
|
|
1631
1635
|
animationFallbackDelay: kt,
|
|
1632
1636
|
showFallbackDelay: At
|
|
1633
|
-
})),
|
|
1637
|
+
})), se = g(() => {
|
|
1634
1638
|
oe.current && (U.stopAnimation(), H.stopAnimation(), U.setValue(1), H.setValue(1));
|
|
1635
|
-
}, [U, H]),
|
|
1639
|
+
}, [U, H]), K = g((e) => {
|
|
1636
1640
|
H.setValue(.94), U.setValue(0), O.parallel([O.timing(U, {
|
|
1637
1641
|
toValue: 1,
|
|
1638
1642
|
duration: 160,
|
|
@@ -1648,22 +1652,22 @@ function Lt({ active: e = !0, trigger: t = "confetti", placement: n = "overlay",
|
|
|
1648
1652
|
v(() => {
|
|
1649
1653
|
if (oe.current = e, G.cancel(), e) {
|
|
1650
1654
|
if (!B) {
|
|
1651
|
-
|
|
1655
|
+
K(() => {});
|
|
1652
1656
|
return;
|
|
1653
1657
|
}
|
|
1654
|
-
H.setValue(.94), U.setValue(0), G.onOpen(
|
|
1658
|
+
H.setValue(.94), U.setValue(0), G.onOpen(se);
|
|
1655
1659
|
}
|
|
1656
1660
|
}, [
|
|
1657
1661
|
e,
|
|
1658
1662
|
B,
|
|
1659
1663
|
U,
|
|
1660
1664
|
H,
|
|
1661
|
-
|
|
1665
|
+
se,
|
|
1662
1666
|
G,
|
|
1663
|
-
|
|
1667
|
+
K
|
|
1664
1668
|
]), v(() => () => G.cancel(), [G]);
|
|
1665
1669
|
let ce = () => {
|
|
1666
|
-
G.onModalShow(
|
|
1670
|
+
G.onModalShow(K, se);
|
|
1667
1671
|
};
|
|
1668
1672
|
if (wt(ie, {
|
|
1669
1673
|
enabled: e && h === "bounce",
|
|
@@ -2449,7 +2453,7 @@ function cn({ checked: e = !1, onChange: t, disabled: n = !1, size: r = 20, deco
|
|
|
2449
2453
|
//#endregion
|
|
2450
2454
|
//#region src/native/components/CheckboxField.tsx
|
|
2451
2455
|
function ln({ checked: e = !1, onChange: t, disabled: n = !1, label: r, description: i, accessibilityLabel: a, accessibilityHint: o }) {
|
|
2452
|
-
let { theme: s, scales: c } = W();
|
|
2456
|
+
let { theme: s, scales: c } = W(), { fontScale: l } = H(), u = q("body.md"), d = Math.max(0, ((u.lineHeight ?? 20) * l - 20) / 2);
|
|
2453
2457
|
return /* @__PURE__ */ T(L, {
|
|
2454
2458
|
onPress: () => !n && t?.(!e),
|
|
2455
2459
|
disabled: n,
|
|
@@ -2475,10 +2479,11 @@ function ln({ checked: e = !1, onChange: t, disabled: n = !1, label: r, descript
|
|
|
2475
2479
|
accessibilityElementsHidden: !0,
|
|
2476
2480
|
importantForAccessibility: "no-hide-descendants",
|
|
2477
2481
|
"aria-hidden": !0,
|
|
2478
|
-
style: { paddingTop: i ?
|
|
2482
|
+
style: { paddingTop: i ? d : 0 },
|
|
2479
2483
|
children: /* @__PURE__ */ w(cn, {
|
|
2480
2484
|
checked: e,
|
|
2481
2485
|
disabled: n,
|
|
2486
|
+
size: 20,
|
|
2482
2487
|
decorative: !0
|
|
2483
2488
|
})
|
|
2484
2489
|
}), /* @__PURE__ */ T(V, {
|
|
@@ -2487,7 +2492,7 @@ function ln({ checked: e = !1, onChange: t, disabled: n = !1, label: r, descript
|
|
|
2487
2492
|
gap: 2
|
|
2488
2493
|
},
|
|
2489
2494
|
children: [/* @__PURE__ */ w(z, {
|
|
2490
|
-
style: [
|
|
2495
|
+
style: [u, { color: s.text["high-emphasis"] }],
|
|
2491
2496
|
children: r
|
|
2492
2497
|
}), i && /* @__PURE__ */ w(z, {
|
|
2493
2498
|
style: [q("body.sm"), { color: s.text["medium-emphasis"] }],
|
|
@@ -2802,10 +2807,10 @@ function vn({ title: e, description: t, style: n, children: r, ...i }) {
|
|
|
2802
2807
|
...i,
|
|
2803
2808
|
children: [(e || t) && /* @__PURE__ */ T(V, {
|
|
2804
2809
|
style: { gap: o.spacing.scale[1] },
|
|
2805
|
-
children: [e && /* @__PURE__ */ w(
|
|
2810
|
+
children: [e && /* @__PURE__ */ w(Y, {
|
|
2806
2811
|
variant: "heading.md",
|
|
2807
2812
|
children: e
|
|
2808
|
-
}), t && /* @__PURE__ */ w(
|
|
2813
|
+
}), t && /* @__PURE__ */ w(Y, {
|
|
2809
2814
|
variant: "body.sm",
|
|
2810
2815
|
color: a.text["medium-emphasis"],
|
|
2811
2816
|
children: t
|
|
@@ -2827,55 +2832,56 @@ function yn({ style: e, children: t, ...n }) {
|
|
|
2827
2832
|
}
|
|
2828
2833
|
//#endregion
|
|
2829
2834
|
//#region src/native/components/Alert.tsx
|
|
2830
|
-
function bn({ tone: e = "info",
|
|
2831
|
-
let { theme:
|
|
2835
|
+
function bn({ tone: e = "info", variant: t, title: n, description: r, children: i }) {
|
|
2836
|
+
let { theme: a, scales: o } = W(), s = t ? t.replace("inline-", "") : e, c = {
|
|
2832
2837
|
info: {
|
|
2833
|
-
bg:
|
|
2834
|
-
fg:
|
|
2835
|
-
border:
|
|
2838
|
+
bg: a.surface.info,
|
|
2839
|
+
fg: a.text.info,
|
|
2840
|
+
border: a.border.info
|
|
2836
2841
|
},
|
|
2837
2842
|
success: {
|
|
2838
|
-
bg:
|
|
2839
|
-
fg:
|
|
2840
|
-
border:
|
|
2843
|
+
bg: a.surface.success,
|
|
2844
|
+
fg: a.text.success,
|
|
2845
|
+
border: a.border.success
|
|
2841
2846
|
},
|
|
2842
2847
|
warning: {
|
|
2843
|
-
bg:
|
|
2844
|
-
fg:
|
|
2845
|
-
border:
|
|
2848
|
+
bg: a.surface.warning,
|
|
2849
|
+
fg: a.text.warning,
|
|
2850
|
+
border: a.border.warning
|
|
2846
2851
|
},
|
|
2847
2852
|
caution: {
|
|
2848
|
-
bg:
|
|
2849
|
-
fg:
|
|
2850
|
-
border:
|
|
2853
|
+
bg: a.surface.caution,
|
|
2854
|
+
fg: a.text.caution,
|
|
2855
|
+
border: a.border.caution
|
|
2851
2856
|
}
|
|
2852
|
-
}[
|
|
2857
|
+
}[s], l = t === "inline-info";
|
|
2853
2858
|
return /* @__PURE__ */ T(V, {
|
|
2854
2859
|
style: {
|
|
2855
|
-
backgroundColor:
|
|
2856
|
-
borderColor:
|
|
2857
|
-
borderLeftWidth: 4,
|
|
2858
|
-
borderRadius:
|
|
2859
|
-
|
|
2860
|
-
|
|
2860
|
+
backgroundColor: l ? a.surface.tertiary : c.bg,
|
|
2861
|
+
borderColor: c.border,
|
|
2862
|
+
borderLeftWidth: t ? 0 : 4,
|
|
2863
|
+
borderRadius: t ? o.borderRadius.sm : o.borderRadius.md,
|
|
2864
|
+
paddingHorizontal: o.spacing.scale[3],
|
|
2865
|
+
paddingVertical: o.spacing.scale[t ? 2 : 3],
|
|
2866
|
+
gap: o.spacing.scale[1]
|
|
2861
2867
|
},
|
|
2862
2868
|
children: [
|
|
2863
|
-
t && /* @__PURE__ */ w(z, {
|
|
2864
|
-
style: [q("label.md"), { color: o.fg }],
|
|
2865
|
-
children: t
|
|
2866
|
-
}),
|
|
2867
2869
|
n && /* @__PURE__ */ w(z, {
|
|
2868
|
-
style: [q("
|
|
2870
|
+
style: [q("label.md"), { color: l ? a.text["high-emphasis"] : c.fg }],
|
|
2869
2871
|
children: n
|
|
2870
2872
|
}),
|
|
2871
|
-
r
|
|
2873
|
+
r && /* @__PURE__ */ w(z, {
|
|
2874
|
+
style: [q("body.sm"), { color: t ? l ? a.text["medium-emphasis"] : c.fg : a.text["high-emphasis"] }],
|
|
2875
|
+
children: r
|
|
2876
|
+
}),
|
|
2877
|
+
i
|
|
2872
2878
|
]
|
|
2873
2879
|
});
|
|
2874
2880
|
}
|
|
2875
2881
|
//#endregion
|
|
2876
2882
|
//#region src/native/components/Dialog.tsx
|
|
2877
2883
|
function xn({ open: e, onClose: t, title: n, description: r, footer: i, children: a, dismissOnBackdrop: o = !0, position: s = "center", safeArea: c = !0 }) {
|
|
2878
|
-
let { theme: l, scales: u, mode: d } = W(), f =
|
|
2884
|
+
let { theme: l, scales: u, mode: d } = W(), f = G(), p = s === "fullscreen", m = fe(u.spacing.scale[5], f, c);
|
|
2879
2885
|
return /* @__PURE__ */ w(te, {
|
|
2880
2886
|
visible: e,
|
|
2881
2887
|
transparent: !p,
|
|
@@ -2942,7 +2948,7 @@ var Sn = {
|
|
|
2942
2948
|
bottom: 0
|
|
2943
2949
|
};
|
|
2944
2950
|
function Cn({ onPress: e, accessibilityLabel: t, children: n, align: r = "center", style: i, testID: a }) {
|
|
2945
|
-
let { theme: o } = W(), s =
|
|
2951
|
+
let { theme: o } = W(), s = pe(r), c = J(r);
|
|
2946
2952
|
return /* @__PURE__ */ T(V, {
|
|
2947
2953
|
style: [{
|
|
2948
2954
|
...Sn,
|
|
@@ -2974,14 +2980,14 @@ function wn({ open: e, onClose: t, title: n, description: r, confirmLabel: i = "
|
|
|
2974
2980
|
dismissOnBackdrop: !1,
|
|
2975
2981
|
footer: /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(V, {
|
|
2976
2982
|
style: { minWidth: 100 },
|
|
2977
|
-
children: /* @__PURE__ */ w(
|
|
2983
|
+
children: /* @__PURE__ */ w(Z, {
|
|
2978
2984
|
variant: "tertiary",
|
|
2979
2985
|
onPress: t,
|
|
2980
2986
|
children: a
|
|
2981
2987
|
})
|
|
2982
2988
|
}), /* @__PURE__ */ w(V, {
|
|
2983
2989
|
style: { minWidth: 100 },
|
|
2984
|
-
children: /* @__PURE__ */ w(
|
|
2990
|
+
children: /* @__PURE__ */ w(Z, {
|
|
2985
2991
|
variant: s ? "destructive" : "primary",
|
|
2986
2992
|
onPress: () => {
|
|
2987
2993
|
o?.(), t();
|
|
@@ -3048,18 +3054,21 @@ function On(e, t, n, r) {
|
|
|
3048
3054
|
snap: d
|
|
3049
3055
|
};
|
|
3050
3056
|
}
|
|
3057
|
+
function kn(e, t) {
|
|
3058
|
+
return !e && !t;
|
|
3059
|
+
}
|
|
3051
3060
|
//#endregion
|
|
3052
3061
|
//#region src/native/components/Sheet.tsx
|
|
3053
|
-
var
|
|
3054
|
-
function
|
|
3062
|
+
var An = 800;
|
|
3063
|
+
function jn(e) {
|
|
3055
3064
|
let { side: t = "bottom", snapPoints: n } = e;
|
|
3056
|
-
return n && n.length > 0 && t === "bottom" ? /* @__PURE__ */ w(
|
|
3065
|
+
return n && n.length > 0 && t === "bottom" ? /* @__PURE__ */ w(Rn, { ...e }) : /* @__PURE__ */ w(Pn, { ...e });
|
|
3057
3066
|
}
|
|
3058
|
-
var
|
|
3059
|
-
function
|
|
3060
|
-
let { theme: s, scales: c } = W(), l =
|
|
3061
|
-
animationFallbackDelay:
|
|
3062
|
-
showFallbackDelay:
|
|
3067
|
+
var Mn = 220, Nn = 340;
|
|
3068
|
+
function Pn({ open: e, onClose: t, side: n = "bottom", title: r, children: i, safeArea: a = !0, surfaceColor: o }) {
|
|
3069
|
+
let { theme: s, scales: c } = W(), l = G(), [u] = S(() => new O.Value(0)), d = x(e), [f] = S(() => xt({
|
|
3070
|
+
animationFallbackDelay: Nn,
|
|
3071
|
+
showFallbackDelay: An
|
|
3063
3072
|
})), p = g(() => {
|
|
3064
3073
|
d.current && (u.stopAnimation(), u.setValue(1));
|
|
3065
3074
|
}, [u]);
|
|
@@ -3075,7 +3084,7 @@ function Mn({ open: e, onClose: t, side: n = "bottom", title: r, children: i, sa
|
|
|
3075
3084
|
f.onModalShow((e) => {
|
|
3076
3085
|
u.stopAnimation(), u.setValue(0), O.timing(u, {
|
|
3077
3086
|
toValue: 1,
|
|
3078
|
-
duration:
|
|
3087
|
+
duration: Mn,
|
|
3079
3088
|
useNativeDriver: !0
|
|
3080
3089
|
}).start(({ finished: t }) => e(t));
|
|
3081
3090
|
}, p);
|
|
@@ -3128,7 +3137,7 @@ function Mn({ open: e, onClose: t, side: n = "bottom", title: r, children: i, sa
|
|
|
3128
3137
|
width: "85%"
|
|
3129
3138
|
},
|
|
3130
3139
|
padding: c.spacing.scale[4],
|
|
3131
|
-
...n === "top" ? { paddingTop:
|
|
3140
|
+
...n === "top" ? { paddingTop: ue(c.spacing.scale[4], l, a) } : null,
|
|
3132
3141
|
gap: c.spacing.scale[3]
|
|
3133
3142
|
},
|
|
3134
3143
|
children: /* @__PURE__ */ T(L, {
|
|
@@ -3156,13 +3165,13 @@ function Mn({ open: e, onClose: t, side: n = "bottom", title: r, children: i, sa
|
|
|
3156
3165
|
})
|
|
3157
3166
|
});
|
|
3158
3167
|
}
|
|
3159
|
-
var
|
|
3160
|
-
function
|
|
3168
|
+
var Fn = 180, In = 300;
|
|
3169
|
+
function Ln(e, t, n) {
|
|
3161
3170
|
return Math.max(t, Math.min(n, e));
|
|
3162
3171
|
}
|
|
3163
|
-
function
|
|
3164
|
-
let { theme: u, scales: d } = W(), f =
|
|
3165
|
-
let e = [...i ?? [.55, .92]].map((e) =>
|
|
3172
|
+
function Rn({ open: e, onClose: t, title: n, children: r, snapPoints: i, initialSnap: a, footer: o, dismissible: s = !0, safeArea: c = !0, surfaceColor: l }) {
|
|
3173
|
+
let { theme: u, scales: d } = W(), f = G(), p = b(() => {
|
|
3174
|
+
let e = [...i ?? [.55, .92]].map((e) => Ln(e, .1, .99)).sort((e, t) => e - t);
|
|
3166
3175
|
return e.length > 0 ? e : [.55, .92];
|
|
3167
3176
|
}, [i]), m = p[0], h = p[p.length - 1], _ = k.get("window").height, y = typeof globalThis < "u" && globalThis.window?.innerHeight, [C] = S(() => _ > 0 ? _ : y && y > 0 ? y : 700), E = Math.round(C * h), [D, j] = S(null), [M, N] = S(null), [F, re] = S(!1), H = x(null), U = x(0);
|
|
3168
3177
|
v(() => {
|
|
@@ -3171,12 +3180,12 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3171
3180
|
e.remove(), t.remove();
|
|
3172
3181
|
};
|
|
3173
3182
|
}, []);
|
|
3174
|
-
let { availableHeight: ie, panelHeight: ae, expandToViewport:
|
|
3183
|
+
let { availableHeight: ie, panelHeight: ae, expandToViewport: oe } = Tn(M ?? C, E, D, F), se = de(f, c, ie, ae), [K, ce] = S(0), le = g(() => {
|
|
3175
3184
|
let e = B.State.currentlyFocusedInput?.(), t = H.current;
|
|
3176
3185
|
!e || !t || !F || t.getNativeScrollRef()?.measureInWindow((n, r, i, a) => {
|
|
3177
3186
|
e.measureInWindow((n, i, o, s) => {
|
|
3178
3187
|
if (B.State.currentlyFocusedInput?.() !== e || H.current !== t) return;
|
|
3179
|
-
let c = r + a -
|
|
3188
|
+
let c = r + a - K - d.spacing.scale[4], l = i < r ? i - r : Math.max(0, i + s - c);
|
|
3180
3189
|
l !== 0 && t.scrollTo({
|
|
3181
3190
|
y: Math.max(0, U.current + l),
|
|
3182
3191
|
animated: !0
|
|
@@ -3185,7 +3194,7 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3185
3194
|
});
|
|
3186
3195
|
}, [
|
|
3187
3196
|
F,
|
|
3188
|
-
|
|
3197
|
+
K,
|
|
3189
3198
|
d.spacing.scale
|
|
3190
3199
|
]);
|
|
3191
3200
|
v(() => {
|
|
@@ -3197,11 +3206,11 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3197
3206
|
D,
|
|
3198
3207
|
le
|
|
3199
3208
|
]);
|
|
3200
|
-
let
|
|
3209
|
+
let ue = Ln(a ?? m, m, h), fe = (h - ue) * C, pe = x(ue), [J] = S(() => new O.Value(E)), me = x(E), Y = x(!1), he = x(e), ge = x(!1);
|
|
3201
3210
|
v(() => {
|
|
3202
|
-
|
|
3203
|
-
}, [
|
|
3204
|
-
let
|
|
3211
|
+
ge.current = oe;
|
|
3212
|
+
}, [oe]);
|
|
3213
|
+
let _e = x({
|
|
3205
3214
|
points: p,
|
|
3206
3215
|
minSnap: m,
|
|
3207
3216
|
maxSnap: h,
|
|
@@ -3209,12 +3218,12 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3209
3218
|
H: C,
|
|
3210
3219
|
dismissible: s,
|
|
3211
3220
|
onClose: t
|
|
3212
|
-
}), [
|
|
3213
|
-
animationFallbackDelay:
|
|
3214
|
-
showFallbackDelay:
|
|
3221
|
+
}), [X] = S(() => xt({
|
|
3222
|
+
animationFallbackDelay: In,
|
|
3223
|
+
showFallbackDelay: An
|
|
3215
3224
|
}));
|
|
3216
3225
|
v(() => {
|
|
3217
|
-
|
|
3226
|
+
_e.current = {
|
|
3218
3227
|
points: p,
|
|
3219
3228
|
minSnap: m,
|
|
3220
3229
|
maxSnap: h,
|
|
@@ -3232,78 +3241,88 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3232
3241
|
s,
|
|
3233
3242
|
t
|
|
3234
3243
|
]);
|
|
3235
|
-
let
|
|
3244
|
+
let ve = g((e) => {
|
|
3236
3245
|
me.current = e, J.setValue(e);
|
|
3237
3246
|
}, [J]);
|
|
3238
3247
|
v(() => {
|
|
3239
|
-
|
|
3248
|
+
oe && (J.stopAnimation(), Y.current = !1, ve((h - pe.current) * C));
|
|
3240
3249
|
}, [
|
|
3241
|
-
|
|
3250
|
+
oe,
|
|
3242
3251
|
J,
|
|
3243
|
-
|
|
3252
|
+
ve,
|
|
3244
3253
|
h,
|
|
3245
3254
|
C
|
|
3246
3255
|
]);
|
|
3247
|
-
let
|
|
3248
|
-
|
|
3256
|
+
let ye = g((e, t, n) => {
|
|
3257
|
+
Y.current = !0, O.timing(J, {
|
|
3249
3258
|
toValue: e,
|
|
3250
3259
|
duration: t,
|
|
3251
3260
|
easing: A.out(A.cubic),
|
|
3252
3261
|
useNativeDriver: !0
|
|
3253
3262
|
}).start(({ finished: t }) => {
|
|
3254
|
-
|
|
3263
|
+
Y.current = !1, t && (me.current = e), n?.(t);
|
|
3255
3264
|
});
|
|
3256
|
-
}, [J]),
|
|
3257
|
-
let { maxSnap: r, H: i } =
|
|
3258
|
-
pe.current = e,
|
|
3259
|
-
}, [
|
|
3265
|
+
}, [J]), be = g((e, t = Fn, n) => {
|
|
3266
|
+
let { maxSnap: r, H: i } = _e.current;
|
|
3267
|
+
pe.current = e, ye((r - e) * i, t, n);
|
|
3268
|
+
}, [ye]), xe = x(() => {});
|
|
3260
3269
|
v(() => {
|
|
3261
|
-
|
|
3262
|
-
|
|
3270
|
+
xe.current = () => {
|
|
3271
|
+
he.current && (J.stopAnimation(), Y.current = !1, pe.current = ue, ve(fe));
|
|
3263
3272
|
};
|
|
3264
3273
|
}, [
|
|
3265
|
-
|
|
3274
|
+
ue,
|
|
3266
3275
|
fe,
|
|
3267
3276
|
J,
|
|
3268
|
-
|
|
3277
|
+
ve
|
|
3269
3278
|
]), v(() => {
|
|
3270
|
-
|
|
3279
|
+
he.current = e, X.cancel(), J.stopAnimation(), Y.current = !1, ve(_e.current.panelH), e && (U.current = 0, X.onOpen(() => xe.current()));
|
|
3271
3280
|
}, [
|
|
3272
3281
|
e,
|
|
3273
|
-
|
|
3282
|
+
X,
|
|
3274
3283
|
J,
|
|
3275
|
-
|
|
3276
|
-
]), v(() => () =>
|
|
3277
|
-
let
|
|
3278
|
-
|
|
3279
|
-
J.stopAnimation(),
|
|
3280
|
-
}, () =>
|
|
3281
|
-
},
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3284
|
+
ve
|
|
3285
|
+
]), v(() => () => X.cancel(), [X]);
|
|
3286
|
+
let Se = () => {
|
|
3287
|
+
X.onModalShow((e) => {
|
|
3288
|
+
J.stopAnimation(), ve(_e.current.panelH), be(ue, Fn, e);
|
|
3289
|
+
}, () => xe.current());
|
|
3290
|
+
}, Ce = x(0), we = x(ue), [Te] = S(() => {
|
|
3291
|
+
let e = {
|
|
3292
|
+
onStartShouldSetPanResponder: () => !1,
|
|
3293
|
+
onMoveShouldSetPanResponder: (e, t) => !ge.current && En(t.dy, {
|
|
3294
|
+
active: pe.current,
|
|
3295
|
+
maxSnap: _e.current.maxSnap,
|
|
3296
|
+
scrollTop: U.current,
|
|
3297
|
+
animating: Y.current
|
|
3298
|
+
}),
|
|
3299
|
+
onPanResponderGrant: () => {
|
|
3300
|
+
ge.current || (Ce.current = me.current, we.current = pe.current);
|
|
3301
|
+
},
|
|
3302
|
+
onPanResponderMove: (e, t) => {
|
|
3303
|
+
ge.current || ve(Dn(Ce.current, t.dy, _e.current));
|
|
3304
|
+
},
|
|
3305
|
+
onPanResponderRelease: (e, t) => {
|
|
3306
|
+
if (ge.current) return;
|
|
3307
|
+
let n = _e.current, r = On(Ce.current, t.dy, we.current, n);
|
|
3308
|
+
if (r.kind === "close") {
|
|
3309
|
+
ye(n.panelH, Fn, () => {
|
|
3310
|
+
he.current && n.onClose();
|
|
3311
|
+
});
|
|
3312
|
+
return;
|
|
3313
|
+
}
|
|
3314
|
+
be(r.snap);
|
|
3303
3315
|
}
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3316
|
+
};
|
|
3317
|
+
return {
|
|
3318
|
+
body: ne.create(e),
|
|
3319
|
+
handle: ne.create({
|
|
3320
|
+
...e,
|
|
3321
|
+
onStartShouldSetPanResponder: () => kn(Y.current, ge.current),
|
|
3322
|
+
onPanResponderTerminationRequest: () => !1
|
|
3323
|
+
})
|
|
3324
|
+
};
|
|
3325
|
+
}), Ee = J.interpolate({
|
|
3307
3326
|
inputRange: [0, E],
|
|
3308
3327
|
outputRange: [.4, 0],
|
|
3309
3328
|
extrapolate: "clamp"
|
|
@@ -3312,7 +3331,7 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3312
3331
|
visible: e,
|
|
3313
3332
|
transparent: !0,
|
|
3314
3333
|
animationType: "none",
|
|
3315
|
-
onShow:
|
|
3334
|
+
onShow: Se,
|
|
3316
3335
|
onRequestClose: t,
|
|
3317
3336
|
children: [/* @__PURE__ */ w(O.View, {
|
|
3318
3337
|
pointerEvents: e ? "auto" : "none",
|
|
@@ -3323,7 +3342,7 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3323
3342
|
top: 0,
|
|
3324
3343
|
bottom: 0,
|
|
3325
3344
|
backgroundColor: u.overlay.dark,
|
|
3326
|
-
opacity:
|
|
3345
|
+
opacity: Ee
|
|
3327
3346
|
},
|
|
3328
3347
|
children: /* @__PURE__ */ w(L, {
|
|
3329
3348
|
onPress: s ? t : () => {},
|
|
@@ -3342,7 +3361,7 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3342
3361
|
t <= 0 || (j(t), F || N((e) => Math.max(e ?? 0, t)));
|
|
3343
3362
|
},
|
|
3344
3363
|
children: [/* @__PURE__ */ T(O.View, {
|
|
3345
|
-
...
|
|
3364
|
+
...Te.body.panHandlers,
|
|
3346
3365
|
style: {
|
|
3347
3366
|
position: "absolute",
|
|
3348
3367
|
left: 0,
|
|
@@ -3352,12 +3371,14 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3352
3371
|
backgroundColor: l ?? u.surface.primary,
|
|
3353
3372
|
borderTopLeftRadius: d.borderRadius["2xl"],
|
|
3354
3373
|
borderTopRightRadius: d.borderRadius["2xl"],
|
|
3355
|
-
transform: [{ translateY:
|
|
3374
|
+
transform: [{ translateY: oe ? 0 : J }]
|
|
3356
3375
|
},
|
|
3357
3376
|
children: [/* @__PURE__ */ T(V, {
|
|
3377
|
+
...Te.handle.panHandlers,
|
|
3358
3378
|
style: {
|
|
3379
|
+
minHeight: d.touchTargets.iconButton.min,
|
|
3359
3380
|
paddingHorizontal: d.spacing.scale[4],
|
|
3360
|
-
paddingTop: d.spacing.scale[3] +
|
|
3381
|
+
paddingTop: d.spacing.scale[3] + se
|
|
3361
3382
|
},
|
|
3362
3383
|
children: [/* @__PURE__ */ w(V, { style: {
|
|
3363
3384
|
width: 40,
|
|
@@ -3379,7 +3400,7 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3379
3400
|
style: { flex: 1 },
|
|
3380
3401
|
contentContainerStyle: {
|
|
3381
3402
|
paddingHorizontal: d.spacing.scale[4],
|
|
3382
|
-
paddingBottom: o ?
|
|
3403
|
+
paddingBottom: o ? K + 60 : d.spacing.scale[4]
|
|
3383
3404
|
},
|
|
3384
3405
|
onScroll: (e) => {
|
|
3385
3406
|
U.current = e.nativeEvent.contentOffset.y;
|
|
@@ -3412,7 +3433,7 @@ function In({ open: e, onClose: t, title: n, children: r, snapPoints: i, initial
|
|
|
3412
3433
|
}
|
|
3413
3434
|
//#endregion
|
|
3414
3435
|
//#region src/native/components/DetailSheetScaffold.tsx
|
|
3415
|
-
function
|
|
3436
|
+
function zn({ header: e, footer: t, children: n, style: r }) {
|
|
3416
3437
|
let { theme: i } = W();
|
|
3417
3438
|
return /* @__PURE__ */ T(V, {
|
|
3418
3439
|
style: [{
|
|
@@ -3421,12 +3442,12 @@ function Ln({ header: e, footer: t, children: n, style: r }) {
|
|
|
3421
3442
|
}, r],
|
|
3422
3443
|
children: [
|
|
3423
3444
|
e,
|
|
3424
|
-
/* @__PURE__ */ w(
|
|
3445
|
+
/* @__PURE__ */ w(Vn, { children: n }),
|
|
3425
3446
|
t
|
|
3426
3447
|
]
|
|
3427
3448
|
});
|
|
3428
3449
|
}
|
|
3429
|
-
function
|
|
3450
|
+
function Bn({ title: e, titleEditor: t, description: n, leading: r, trailing: i, children: a, style: o }) {
|
|
3430
3451
|
let { theme: s, scales: c } = W(), l = t ?? e;
|
|
3431
3452
|
return /* @__PURE__ */ T(V, {
|
|
3432
3453
|
style: [{
|
|
@@ -3478,7 +3499,7 @@ function Rn({ title: e, titleEditor: t, description: n, leading: r, trailing: i,
|
|
|
3478
3499
|
]
|
|
3479
3500
|
});
|
|
3480
3501
|
}
|
|
3481
|
-
function
|
|
3502
|
+
function Vn({ children: e, style: t }) {
|
|
3482
3503
|
let { scales: n } = W();
|
|
3483
3504
|
return /* @__PURE__ */ w(V, {
|
|
3484
3505
|
style: [{
|
|
@@ -3491,7 +3512,7 @@ function zn({ children: e, style: t }) {
|
|
|
3491
3512
|
}
|
|
3492
3513
|
//#endregion
|
|
3493
3514
|
//#region src/native/components/KeyboardAwareSheetFooter.tsx
|
|
3494
|
-
function
|
|
3515
|
+
function Hn({ behavior: e = "fixed", hideWhenInputFocused: t = e === "hide", surface: n = "default", children: r, style: i }) {
|
|
3495
3516
|
let { theme: a, scales: o } = W(), [s, c] = S(!1);
|
|
3496
3517
|
if (v(() => {
|
|
3497
3518
|
let e = P.addListener("keyboardDidShow", () => c(!0)), t = P.addListener("keyboardDidHide", () => c(!1));
|
|
@@ -3509,7 +3530,7 @@ function Bn({ behavior: e = "fixed", hideWhenInputFocused: t = e === "hide", sur
|
|
|
3509
3530
|
borderTopWidth: e === "scroll" ? 0 : 1,
|
|
3510
3531
|
borderTopColor: a.border["low-emphasis"]
|
|
3511
3532
|
};
|
|
3512
|
-
return n === "glass" ? /* @__PURE__ */ w(
|
|
3533
|
+
return n === "glass" ? /* @__PURE__ */ w(X, {
|
|
3513
3534
|
intensity: "thick",
|
|
3514
3535
|
borderRadius: 0,
|
|
3515
3536
|
showRim: !1,
|
|
@@ -3522,9 +3543,9 @@ function Bn({ behavior: e = "fixed", hideWhenInputFocused: t = e === "hide", sur
|
|
|
3522
3543
|
}
|
|
3523
3544
|
//#endregion
|
|
3524
3545
|
//#region src/native/components/ResponsiveDialog.tsx
|
|
3525
|
-
function
|
|
3546
|
+
function Un({ breakpoint: e = 600, ...t }) {
|
|
3526
3547
|
let { width: n } = k.get("window");
|
|
3527
|
-
return n <= e ? /* @__PURE__ */ T(
|
|
3548
|
+
return n <= e ? /* @__PURE__ */ T(jn, {
|
|
3528
3549
|
open: t.open,
|
|
3529
3550
|
onClose: t.onClose,
|
|
3530
3551
|
side: "bottom",
|
|
@@ -3534,7 +3555,7 @@ function Vn({ breakpoint: e = 600, ...t }) {
|
|
|
3534
3555
|
}
|
|
3535
3556
|
//#endregion
|
|
3536
3557
|
//#region src/native/components/Popover.tsx
|
|
3537
|
-
function
|
|
3558
|
+
function Wn({ open: e, onClose: t, anchor: n, children: r }) {
|
|
3538
3559
|
let { theme: i, scales: a } = W(), o = n ? n.y + (n.height ?? 0) + 4 : 100, s = n ? n.x : 0;
|
|
3539
3560
|
return /* @__PURE__ */ w(te, {
|
|
3540
3561
|
visible: e,
|
|
@@ -3574,9 +3595,9 @@ function Hn({ open: e, onClose: t, anchor: n, children: r }) {
|
|
|
3574
3595
|
}
|
|
3575
3596
|
//#endregion
|
|
3576
3597
|
//#region src/native/components/DropdownMenu.tsx
|
|
3577
|
-
function
|
|
3598
|
+
function Gn({ open: e, onClose: t, anchor: n, items: r }) {
|
|
3578
3599
|
let { theme: i, scales: a } = W();
|
|
3579
|
-
return /* @__PURE__ */ w(
|
|
3600
|
+
return /* @__PURE__ */ w(Wn, {
|
|
3580
3601
|
open: e,
|
|
3581
3602
|
onClose: t,
|
|
3582
3603
|
anchor: n,
|
|
@@ -3604,22 +3625,22 @@ function Un({ open: e, onClose: t, anchor: n, items: r }) {
|
|
|
3604
3625
|
}
|
|
3605
3626
|
//#endregion
|
|
3606
3627
|
//#region src/native/components/Toast.tsx
|
|
3607
|
-
var
|
|
3608
|
-
function
|
|
3609
|
-
let e = _(
|
|
3628
|
+
var Kn = h(null);
|
|
3629
|
+
function qn() {
|
|
3630
|
+
let e = _(Kn);
|
|
3610
3631
|
if (!e) throw Error("useToast は ToastProvider の内側で使ってください");
|
|
3611
3632
|
return e;
|
|
3612
3633
|
}
|
|
3613
|
-
var
|
|
3614
|
-
function
|
|
3615
|
-
return
|
|
3634
|
+
var Jn = 0;
|
|
3635
|
+
function Yn() {
|
|
3636
|
+
return Jn += 1, `toast-${Jn}`;
|
|
3616
3637
|
}
|
|
3617
|
-
var
|
|
3618
|
-
function
|
|
3619
|
-
|
|
3638
|
+
var Xn = null;
|
|
3639
|
+
function Zn(e) {
|
|
3640
|
+
Xn = e;
|
|
3620
3641
|
}
|
|
3621
|
-
function
|
|
3622
|
-
return
|
|
3642
|
+
function Qn(e, t = {}, n) {
|
|
3643
|
+
return Xn ? Xn.show({
|
|
3623
3644
|
title: e,
|
|
3624
3645
|
description: t.description,
|
|
3625
3646
|
tone: n ?? t.tone,
|
|
@@ -3627,13 +3648,13 @@ function Xn(e, t = {}, n) {
|
|
|
3627
3648
|
action: t.action
|
|
3628
3649
|
}) : (console.warn("[ksk-ds native toast()] ToastProvider がマウントされていないため通知は表示されません。アプリのルートに <ToastProvider> を配置してください。"), "");
|
|
3629
3650
|
}
|
|
3630
|
-
var
|
|
3631
|
-
|
|
3632
|
-
function
|
|
3651
|
+
var $n = ((e, t) => Qn(e, t));
|
|
3652
|
+
$n.success = (e, t) => Qn(e, t, "success"), $n.error = (e, t) => Qn(e, t, "caution"), $n.info = (e, t) => Qn(e, t, "info"), $n.warning = (e, t) => Qn(e, t, "warning"), $n.caution = (e, t) => Qn(e, t, "caution"), $n.dismiss = (e) => Xn?.dismiss(e);
|
|
3653
|
+
function er({ children: e }) {
|
|
3633
3654
|
let { scales: t } = W(), [n, r] = S([]), i = g((e) => {
|
|
3634
3655
|
r((t) => t.filter((t) => t.id !== e));
|
|
3635
3656
|
}, []), a = g((e) => {
|
|
3636
|
-
let t =
|
|
3657
|
+
let t = Yn();
|
|
3637
3658
|
r((n) => [...n, {
|
|
3638
3659
|
...e,
|
|
3639
3660
|
id: t
|
|
@@ -3641,10 +3662,10 @@ function Qn({ children: e }) {
|
|
|
3641
3662
|
let n = e.duration ?? 3e3;
|
|
3642
3663
|
return n > 0 && setTimeout(() => i(t), n), t;
|
|
3643
3664
|
}, [i]);
|
|
3644
|
-
return v(() => (
|
|
3665
|
+
return v(() => (Zn({
|
|
3645
3666
|
show: a,
|
|
3646
3667
|
dismiss: i
|
|
3647
|
-
}), () =>
|
|
3668
|
+
}), () => Zn(null)), [a, i]), /* @__PURE__ */ T(Kn.Provider, {
|
|
3648
3669
|
value: {
|
|
3649
3670
|
show: a,
|
|
3650
3671
|
dismiss: i
|
|
@@ -3660,14 +3681,14 @@ function Qn({ children: e }) {
|
|
|
3660
3681
|
gap: t.spacing.scale[2],
|
|
3661
3682
|
zIndex: 9999
|
|
3662
3683
|
},
|
|
3663
|
-
children: n.map((e) => /* @__PURE__ */ w(
|
|
3684
|
+
children: n.map((e) => /* @__PURE__ */ w(tr, {
|
|
3664
3685
|
toast: e,
|
|
3665
3686
|
onDismiss: () => i(e.id)
|
|
3666
3687
|
}, e.id))
|
|
3667
3688
|
})]
|
|
3668
3689
|
});
|
|
3669
3690
|
}
|
|
3670
|
-
function
|
|
3691
|
+
function tr({ toast: e, onDismiss: t }) {
|
|
3671
3692
|
let { theme: n, scales: r } = W(), [i] = S(() => new O.Value(0)), [a] = S(() => new O.Value(-20));
|
|
3672
3693
|
v(() => {
|
|
3673
3694
|
O.parallel([O.timing(i, {
|
|
@@ -3765,12 +3786,12 @@ function $n({ toast: e, onDismiss: t }) {
|
|
|
3765
3786
|
}
|
|
3766
3787
|
//#endregion
|
|
3767
3788
|
//#region src/native/components/ErrorBoundary.tsx
|
|
3768
|
-
var
|
|
3789
|
+
var nr = {
|
|
3769
3790
|
emoji: "😢",
|
|
3770
3791
|
title: "問題が発生しました",
|
|
3771
3792
|
description: "データは保持されています。下のボタンで復旧してください。",
|
|
3772
3793
|
retryLabel: "再試行"
|
|
3773
|
-
},
|
|
3794
|
+
}, rr = class extends m.Component {
|
|
3774
3795
|
constructor(e) {
|
|
3775
3796
|
super(e), this.state = {
|
|
3776
3797
|
hasError: !1,
|
|
@@ -3796,16 +3817,16 @@ var er = {
|
|
|
3796
3817
|
render() {
|
|
3797
3818
|
if (!this.state.hasError) return this.props.children;
|
|
3798
3819
|
let { fallback: e, labels: t } = this.props, n = {
|
|
3799
|
-
...
|
|
3820
|
+
...nr,
|
|
3800
3821
|
...t
|
|
3801
3822
|
};
|
|
3802
|
-
return e ? typeof e == "function" ? e(this.state.error, this.handleRetry) : e : /* @__PURE__ */ w(
|
|
3823
|
+
return e ? typeof e == "function" ? e(this.state.error, this.handleRetry) : e : /* @__PURE__ */ w(ir, {
|
|
3803
3824
|
merged: n,
|
|
3804
3825
|
handleRetry: this.handleRetry
|
|
3805
3826
|
});
|
|
3806
3827
|
}
|
|
3807
3828
|
};
|
|
3808
|
-
function
|
|
3829
|
+
function ir({ merged: e, handleRetry: t }) {
|
|
3809
3830
|
let { theme: n, scales: r } = W();
|
|
3810
3831
|
return /* @__PURE__ */ T(V, {
|
|
3811
3832
|
accessibilityRole: "alert",
|
|
@@ -3818,7 +3839,7 @@ function nr({ merged: e, handleRetry: t }) {
|
|
|
3818
3839
|
backgroundColor: n.surface.primary
|
|
3819
3840
|
},
|
|
3820
3841
|
children: [
|
|
3821
|
-
/* @__PURE__ */ w(
|
|
3842
|
+
/* @__PURE__ */ w(Y, {
|
|
3822
3843
|
style: {
|
|
3823
3844
|
fontSize: 48,
|
|
3824
3845
|
textAlign: "center"
|
|
@@ -3827,12 +3848,12 @@ function nr({ merged: e, handleRetry: t }) {
|
|
|
3827
3848
|
importantForAccessibility: "no",
|
|
3828
3849
|
children: e.emoji
|
|
3829
3850
|
}),
|
|
3830
|
-
/* @__PURE__ */ w(
|
|
3851
|
+
/* @__PURE__ */ w(Y, {
|
|
3831
3852
|
variant: "heading.lg",
|
|
3832
3853
|
style: { textAlign: "center" },
|
|
3833
3854
|
children: e.title
|
|
3834
3855
|
}),
|
|
3835
|
-
/* @__PURE__ */ w(
|
|
3856
|
+
/* @__PURE__ */ w(Y, {
|
|
3836
3857
|
variant: "body.sm",
|
|
3837
3858
|
color: n.text["medium-emphasis"],
|
|
3838
3859
|
style: {
|
|
@@ -3841,7 +3862,7 @@ function nr({ merged: e, handleRetry: t }) {
|
|
|
3841
3862
|
},
|
|
3842
3863
|
children: e.description
|
|
3843
3864
|
}),
|
|
3844
|
-
/* @__PURE__ */ w(
|
|
3865
|
+
/* @__PURE__ */ w(Z, {
|
|
3845
3866
|
variant: "secondary",
|
|
3846
3867
|
onPress: t,
|
|
3847
3868
|
children: e.retryLabel
|
|
@@ -3851,9 +3872,9 @@ function nr({ merged: e, handleRetry: t }) {
|
|
|
3851
3872
|
}
|
|
3852
3873
|
//#endregion
|
|
3853
3874
|
//#region src/native/components/MenuDrawer.tsx
|
|
3854
|
-
function
|
|
3875
|
+
function ar({ open: e, onClose: t, side: n = "left", header: r, sections: i, footer: a }) {
|
|
3855
3876
|
let { theme: o, scales: s } = W();
|
|
3856
|
-
return /* @__PURE__ */ T(
|
|
3877
|
+
return /* @__PURE__ */ T(jn, {
|
|
3857
3878
|
open: e,
|
|
3858
3879
|
onClose: t,
|
|
3859
3880
|
side: n,
|
|
@@ -3902,14 +3923,14 @@ function rr({ open: e, onClose: t, side: n = "left", header: r, sections: i, foo
|
|
|
3902
3923
|
}
|
|
3903
3924
|
//#endregion
|
|
3904
3925
|
//#region src/native/components/ConfirmDialog.tsx
|
|
3905
|
-
function
|
|
3926
|
+
function or(e) {
|
|
3906
3927
|
return /* @__PURE__ */ w(wn, { ...e });
|
|
3907
3928
|
}
|
|
3908
3929
|
//#endregion
|
|
3909
3930
|
//#region src/native/components/BottomSheetForm.tsx
|
|
3910
|
-
function
|
|
3931
|
+
function sr({ open: e, onClose: t, title: n, description: r, footer: i, children: a }) {
|
|
3911
3932
|
let { theme: o, scales: s } = W();
|
|
3912
|
-
return /* @__PURE__ */ T(
|
|
3933
|
+
return /* @__PURE__ */ T(jn, {
|
|
3913
3934
|
open: e,
|
|
3914
3935
|
onClose: t,
|
|
3915
3936
|
side: "bottom",
|
|
@@ -3943,8 +3964,8 @@ function ar({ open: e, onClose: t, title: n, description: r, footer: i, children
|
|
|
3943
3964
|
}
|
|
3944
3965
|
//#endregion
|
|
3945
3966
|
//#region src/native/components/BottomSheetFrame.tsx
|
|
3946
|
-
function
|
|
3947
|
-
let { theme: f, scales: p } = W(), m =
|
|
3967
|
+
function cr({ preset: e = "mobile-full", surface: t = "default", height: n = "preset", maxHeight: r, safeArea: i = !1, handle: a = !1, header: o, footer: s, scrollable: c = !0, children: l, style: u, bodyStyle: d }) {
|
|
3968
|
+
let { theme: f, scales: p } = W(), m = G(), h = n === "fitContent", g = r ?? (h ? void 0 : e === "mobile-form" ? 520 : e === "desktop-floating" ? 620 : 720), _ = e === "mobile-full" ? p.borderRadius["2xl"] : p.borderRadius.xl, v = K(m, "bottom", i), y = w(c ? R : V, {
|
|
3948
3969
|
style: [h ? {
|
|
3949
3970
|
flexGrow: 0,
|
|
3950
3971
|
flexShrink: 1
|
|
@@ -3975,7 +3996,7 @@ function or({ preset: e = "mobile-full", surface: t = "default", height: n = "pr
|
|
|
3975
3996
|
borderRadius: _,
|
|
3976
3997
|
backgroundColor: t === "glass" ? "transparent" : f.surface.primary
|
|
3977
3998
|
};
|
|
3978
|
-
return t === "glass" ? /* @__PURE__ */ w(
|
|
3999
|
+
return t === "glass" ? /* @__PURE__ */ w(X, {
|
|
3979
4000
|
intensity: "thick",
|
|
3980
4001
|
borderRadius: _,
|
|
3981
4002
|
style: [x, u],
|
|
@@ -3987,9 +4008,9 @@ function or({ preset: e = "mobile-full", surface: t = "default", height: n = "pr
|
|
|
3987
4008
|
}
|
|
3988
4009
|
//#endregion
|
|
3989
4010
|
//#region src/native/components/ReviewOverlay.tsx
|
|
3990
|
-
function
|
|
4011
|
+
function lr({ open: e, onClose: t, title: n = "レビューを投稿", onSubmit: r }) {
|
|
3991
4012
|
let { scales: i } = W(), [a, o] = S(0), [s, c] = S("");
|
|
3992
|
-
return /* @__PURE__ */ T(
|
|
4013
|
+
return /* @__PURE__ */ T(jn, {
|
|
3993
4014
|
open: e,
|
|
3994
4015
|
onClose: t,
|
|
3995
4016
|
side: "bottom",
|
|
@@ -4020,14 +4041,14 @@ function sr({ open: e, onClose: t, title: n = "レビューを投稿", onSubmit:
|
|
|
4020
4041
|
},
|
|
4021
4042
|
children: [/* @__PURE__ */ w(V, {
|
|
4022
4043
|
style: { flex: 1 },
|
|
4023
|
-
children: /* @__PURE__ */ w(
|
|
4044
|
+
children: /* @__PURE__ */ w(Z, {
|
|
4024
4045
|
variant: "tertiary",
|
|
4025
4046
|
onPress: t,
|
|
4026
4047
|
children: "キャンセル"
|
|
4027
4048
|
})
|
|
4028
4049
|
}), /* @__PURE__ */ w(V, {
|
|
4029
4050
|
style: { flex: 1 },
|
|
4030
|
-
children: /* @__PURE__ */ w(
|
|
4051
|
+
children: /* @__PURE__ */ w(Z, {
|
|
4031
4052
|
variant: "primary",
|
|
4032
4053
|
disabled: a === 0,
|
|
4033
4054
|
onPress: () => {
|
|
@@ -4042,7 +4063,7 @@ function sr({ open: e, onClose: t, title: n = "レビューを投稿", onSubmit:
|
|
|
4042
4063
|
}
|
|
4043
4064
|
//#endregion
|
|
4044
4065
|
//#region src/native/components/CoachMark.tsx
|
|
4045
|
-
function
|
|
4066
|
+
function ur({ title: e, description: t, step: n, total: r, onNext: i, onSkip: a, nextLabel: o = "次へ", skipLabel: s = "スキップ" }) {
|
|
4046
4067
|
let { theme: c, scales: l } = W();
|
|
4047
4068
|
return /* @__PURE__ */ T(V, {
|
|
4048
4069
|
style: {
|
|
@@ -4136,7 +4157,7 @@ function cr({ title: e, description: t, step: n, total: r, onNext: i, onSkip: a,
|
|
|
4136
4157
|
}
|
|
4137
4158
|
//#endregion
|
|
4138
4159
|
//#region src/native/components/CoachMarkOverlay.tsx
|
|
4139
|
-
function
|
|
4160
|
+
function dr({ open: e, onClose: t, highlight: n, children: r }) {
|
|
4140
4161
|
let { theme: i } = W(), a = i.overlay.dark;
|
|
4141
4162
|
return /* @__PURE__ */ w(te, {
|
|
4142
4163
|
visible: e,
|
|
@@ -4210,7 +4231,7 @@ function lr({ open: e, onClose: t, highlight: n, children: r }) {
|
|
|
4210
4231
|
}
|
|
4211
4232
|
//#endregion
|
|
4212
4233
|
//#region src/native/components/Select.tsx
|
|
4213
|
-
function
|
|
4234
|
+
function fr({ options: e, value: t, onChange: n, placeholder: r = "選択", disabled: i = !1, title: a = "選択" }) {
|
|
4214
4235
|
let { theme: o, scales: s } = W(), [c, l] = S(!1), u = e.find((e) => e.value === t);
|
|
4215
4236
|
return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T(L, {
|
|
4216
4237
|
onPress: () => !i && l(!0),
|
|
@@ -4234,7 +4255,7 @@ function ur({ options: e, value: t, onChange: n, placeholder: r = "選択", disa
|
|
|
4234
4255
|
style: [q("label.sm"), { color: o.text["low-emphasis"] }],
|
|
4235
4256
|
children: "▾"
|
|
4236
4257
|
})]
|
|
4237
|
-
}), /* @__PURE__ */ w(
|
|
4258
|
+
}), /* @__PURE__ */ w(jn, {
|
|
4238
4259
|
open: c,
|
|
4239
4260
|
onClose: () => l(!1),
|
|
4240
4261
|
side: "bottom",
|
|
@@ -4265,7 +4286,7 @@ function ur({ options: e, value: t, onChange: n, placeholder: r = "選択", disa
|
|
|
4265
4286
|
}
|
|
4266
4287
|
//#endregion
|
|
4267
4288
|
//#region src/native/components/Combobox.tsx
|
|
4268
|
-
function
|
|
4289
|
+
function pr({ options: e, value: t, onChange: n, placeholder: r = "選択してください", searchPlaceholder: i = "検索...", emptyMessage: a = "該当なし", disabled: o = !1 }) {
|
|
4269
4290
|
let { theme: s, scales: c } = W(), [l, u] = S(!1), [d, f] = S(""), p = e.find((e) => e.value === t), m = b(() => {
|
|
4270
4291
|
if (!d) return e;
|
|
4271
4292
|
let t = d.toLowerCase();
|
|
@@ -4293,7 +4314,7 @@ function dr({ options: e, value: t, onChange: n, placeholder: r = "選択して
|
|
|
4293
4314
|
style: [q("label.sm"), { color: s.text["low-emphasis"] }],
|
|
4294
4315
|
children: "▾"
|
|
4295
4316
|
})]
|
|
4296
|
-
}), /* @__PURE__ */ T(
|
|
4317
|
+
}), /* @__PURE__ */ T(jn, {
|
|
4297
4318
|
open: l,
|
|
4298
4319
|
onClose: () => u(!1),
|
|
4299
4320
|
side: "bottom",
|
|
@@ -4343,7 +4364,7 @@ function dr({ options: e, value: t, onChange: n, placeholder: r = "選択して
|
|
|
4343
4364
|
}
|
|
4344
4365
|
//#endregion
|
|
4345
4366
|
//#region src/native/components/MultiSelect.tsx
|
|
4346
|
-
function
|
|
4367
|
+
function mr({ options: e, values: t = [], onChange: n, placeholder: r = "選択してください", searchPlaceholder: i = "検索...", disabled: a = !1, accessibilityLabel: o }) {
|
|
4347
4368
|
let { theme: s, scales: c } = W(), [l, u] = S(!1), [d, f] = S(""), [p, m] = S(t), h = b(() => {
|
|
4348
4369
|
if (!d) return e;
|
|
4349
4370
|
let t = d.toLowerCase();
|
|
@@ -4375,7 +4396,7 @@ function fr({ options: e, values: t = [], onChange: n, placeholder: r = "選択
|
|
|
4375
4396
|
style: [q("label.sm"), { color: s.text["low-emphasis"] }],
|
|
4376
4397
|
children: "▾"
|
|
4377
4398
|
})]
|
|
4378
|
-
}), /* @__PURE__ */ T(
|
|
4399
|
+
}), /* @__PURE__ */ T(jn, {
|
|
4379
4400
|
open: l,
|
|
4380
4401
|
onClose: () => u(!1),
|
|
4381
4402
|
side: "bottom",
|
|
@@ -4425,14 +4446,14 @@ function fr({ options: e, values: t = [], onChange: n, placeholder: r = "選択
|
|
|
4425
4446
|
},
|
|
4426
4447
|
children: [/* @__PURE__ */ w(V, {
|
|
4427
4448
|
style: { flex: 1 },
|
|
4428
|
-
children: /* @__PURE__ */ w(
|
|
4449
|
+
children: /* @__PURE__ */ w(Z, {
|
|
4429
4450
|
variant: "tertiary",
|
|
4430
4451
|
onPress: () => u(!1),
|
|
4431
4452
|
children: "キャンセル"
|
|
4432
4453
|
})
|
|
4433
4454
|
}), /* @__PURE__ */ w(V, {
|
|
4434
4455
|
style: { flex: 1 },
|
|
4435
|
-
children: /* @__PURE__ */ w(
|
|
4456
|
+
children: /* @__PURE__ */ w(Z, {
|
|
4436
4457
|
variant: "primary",
|
|
4437
4458
|
onPress: () => {
|
|
4438
4459
|
n?.(p), u(!1);
|
|
@@ -4446,7 +4467,7 @@ function fr({ options: e, values: t = [], onChange: n, placeholder: r = "選択
|
|
|
4446
4467
|
}
|
|
4447
4468
|
//#endregion
|
|
4448
4469
|
//#region src/native/components/DropdownFilter.tsx
|
|
4449
|
-
function
|
|
4470
|
+
function hr({ label: e, options: t, value: n, onChange: r }) {
|
|
4450
4471
|
let { theme: i, scales: a } = W(), [o, s] = S(!1), c = t.find((e) => e.value === n), l = !!c;
|
|
4451
4472
|
return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T(L, {
|
|
4452
4473
|
onPress: () => s(!0),
|
|
@@ -4468,7 +4489,7 @@ function pr({ label: e, options: t, value: n, onChange: r }) {
|
|
|
4468
4489
|
style: [q("label.xs"), { color: l ? i.text["accent-primary"] : i.text["low-emphasis"] }],
|
|
4469
4490
|
children: "▾"
|
|
4470
4491
|
})]
|
|
4471
|
-
}), /* @__PURE__ */ w(
|
|
4492
|
+
}), /* @__PURE__ */ w(jn, {
|
|
4472
4493
|
open: o,
|
|
4473
4494
|
onClose: () => s(!1),
|
|
4474
4495
|
side: "bottom",
|
|
@@ -4521,7 +4542,7 @@ function pr({ label: e, options: t, value: n, onChange: r }) {
|
|
|
4521
4542
|
}
|
|
4522
4543
|
//#endregion
|
|
4523
4544
|
//#region src/native/components/PillToggle.tsx
|
|
4524
|
-
function
|
|
4545
|
+
function gr({ options: e, value: t, onChange: n, disabled: r = !1, fullWidth: i = !1 }) {
|
|
4525
4546
|
let { theme: a, scales: o } = W();
|
|
4526
4547
|
return /* @__PURE__ */ w(V, {
|
|
4527
4548
|
style: {
|
|
@@ -4576,14 +4597,14 @@ function mr({ options: e, value: t, onChange: n, disabled: r = !1, fullWidth: i
|
|
|
4576
4597
|
}
|
|
4577
4598
|
//#endregion
|
|
4578
4599
|
//#region src/native/components/Tabs.tsx
|
|
4579
|
-
var
|
|
4580
|
-
function
|
|
4581
|
-
let e = _(
|
|
4600
|
+
var _r = h(null);
|
|
4601
|
+
function vr() {
|
|
4602
|
+
let e = _(_r);
|
|
4582
4603
|
if (!e) throw Error("Tabs の内側で使ってください");
|
|
4583
4604
|
return e;
|
|
4584
4605
|
}
|
|
4585
|
-
function
|
|
4586
|
-
return /* @__PURE__ */ w(
|
|
4606
|
+
function yr({ value: e, onChange: t, children: n }) {
|
|
4607
|
+
return /* @__PURE__ */ w(_r.Provider, {
|
|
4587
4608
|
value: {
|
|
4588
4609
|
value: e,
|
|
4589
4610
|
onChange: t
|
|
@@ -4591,7 +4612,7 @@ function _r({ value: e, onChange: t, children: n }) {
|
|
|
4591
4612
|
children: n
|
|
4592
4613
|
});
|
|
4593
4614
|
}
|
|
4594
|
-
function
|
|
4615
|
+
function br({ scrollable: e = !1, children: t }) {
|
|
4595
4616
|
let { theme: n, scales: r } = W(), i = /* @__PURE__ */ w(V, {
|
|
4596
4617
|
style: {
|
|
4597
4618
|
flexDirection: "row",
|
|
@@ -4607,8 +4628,8 @@ function vr({ scrollable: e = !1, children: t }) {
|
|
|
4607
4628
|
children: i
|
|
4608
4629
|
}) : i;
|
|
4609
4630
|
}
|
|
4610
|
-
function
|
|
4611
|
-
let { theme: r, scales: i } = W(), a =
|
|
4631
|
+
function xr({ value: e, children: t, disabled: n }) {
|
|
4632
|
+
let { theme: r, scales: i } = W(), a = vr(), o = a.value === e;
|
|
4612
4633
|
return /* @__PURE__ */ w(L, {
|
|
4613
4634
|
onPress: () => !n && a.onChange(e),
|
|
4614
4635
|
disabled: n,
|
|
@@ -4628,12 +4649,12 @@ function yr({ value: e, children: t, disabled: n }) {
|
|
|
4628
4649
|
})
|
|
4629
4650
|
});
|
|
4630
4651
|
}
|
|
4631
|
-
function
|
|
4632
|
-
return
|
|
4652
|
+
function Sr({ value: e, children: t }) {
|
|
4653
|
+
return vr().value === e ? /* @__PURE__ */ w(V, { children: t }) : null;
|
|
4633
4654
|
}
|
|
4634
4655
|
//#endregion
|
|
4635
4656
|
//#region src/native/icon-button-metrics.ts
|
|
4636
|
-
var
|
|
4657
|
+
var Cr = {
|
|
4637
4658
|
sm: {
|
|
4638
4659
|
box: 36,
|
|
4639
4660
|
icon: 18
|
|
@@ -4647,8 +4668,8 @@ var xr = {
|
|
|
4647
4668
|
icon: 24
|
|
4648
4669
|
}
|
|
4649
4670
|
};
|
|
4650
|
-
function
|
|
4651
|
-
let { box: n, icon: r } =
|
|
4671
|
+
function wr(e, t) {
|
|
4672
|
+
let { box: n, icon: r } = Cr[e];
|
|
4652
4673
|
return {
|
|
4653
4674
|
box: n,
|
|
4654
4675
|
icon: r,
|
|
@@ -4657,8 +4678,8 @@ function Sr(e, t) {
|
|
|
4657
4678
|
}
|
|
4658
4679
|
//#endregion
|
|
4659
4680
|
//#region src/native/components/IconButton.tsx
|
|
4660
|
-
function
|
|
4661
|
-
let { theme: m, scales: h } = W(), g = l || o, { box: _, icon: v, hitSlop: y } =
|
|
4681
|
+
function Tr({ accessibilityLabel: e, icon: t, variant: n = "ghost", tone: r = "neutral", size: i = "md", shape: a = "circle", loading: o = !1, containerStyle: s, pressedContainerStyle: c, disabled: l, accessibilityRole: u, accessibilityState: d, hitSlop: f, ...p }) {
|
|
4682
|
+
let { theme: m, scales: h } = W(), g = l || o, { box: _, icon: v, hitSlop: y } = wr(i, h.touchTargets.iconButton.min), b = r === "accent" ? m.text["accent-primary"] : r === "caution" ? m.text.caution : m.text["medium-emphasis"], x = n === "primary" ? {
|
|
4662
4683
|
backgroundColor: m.brand.primary,
|
|
4663
4684
|
pressedBackgroundColor: m.active["primary-button"],
|
|
4664
4685
|
borderColor: m.brand.primary,
|
|
@@ -4720,7 +4741,7 @@ function Cr({ accessibilityLabel: e, icon: t, variant: n = "ghost", tone: r = "n
|
|
|
4720
4741
|
}
|
|
4721
4742
|
//#endregion
|
|
4722
4743
|
//#region src/native/calendar-cells.ts
|
|
4723
|
-
var
|
|
4744
|
+
var Er = [
|
|
4724
4745
|
"日",
|
|
4725
4746
|
"月",
|
|
4726
4747
|
"火",
|
|
@@ -4728,7 +4749,7 @@ var wr = [
|
|
|
4728
4749
|
"木",
|
|
4729
4750
|
"金",
|
|
4730
4751
|
"土"
|
|
4731
|
-
],
|
|
4752
|
+
], Dr = [
|
|
4732
4753
|
"S",
|
|
4733
4754
|
"M",
|
|
4734
4755
|
"T",
|
|
@@ -4736,7 +4757,7 @@ var wr = [
|
|
|
4736
4757
|
"T",
|
|
4737
4758
|
"F",
|
|
4738
4759
|
"S"
|
|
4739
|
-
],
|
|
4760
|
+
], Or = [
|
|
4740
4761
|
"日曜日",
|
|
4741
4762
|
"月曜日",
|
|
4742
4763
|
"火曜日",
|
|
@@ -4744,7 +4765,7 @@ var wr = [
|
|
|
4744
4765
|
"木曜日",
|
|
4745
4766
|
"金曜日",
|
|
4746
4767
|
"土曜日"
|
|
4747
|
-
],
|
|
4768
|
+
], kr = [
|
|
4748
4769
|
"1月",
|
|
4749
4770
|
"2月",
|
|
4750
4771
|
"3月",
|
|
@@ -4758,58 +4779,58 @@ var wr = [
|
|
|
4758
4779
|
"11月",
|
|
4759
4780
|
"12月"
|
|
4760
4781
|
];
|
|
4761
|
-
function
|
|
4782
|
+
function Ar(e) {
|
|
4762
4783
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
4763
4784
|
}
|
|
4764
|
-
function
|
|
4785
|
+
function jr(e) {
|
|
4765
4786
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
4766
4787
|
}
|
|
4767
|
-
function
|
|
4788
|
+
function Mr(e) {
|
|
4768
4789
|
return new Date(e.getFullYear(), e.getMonth() + 1, 0);
|
|
4769
4790
|
}
|
|
4770
|
-
function
|
|
4791
|
+
function Nr(e, t) {
|
|
4771
4792
|
return new Date(e.getFullYear(), e.getMonth() + t, 1);
|
|
4772
4793
|
}
|
|
4773
|
-
function
|
|
4774
|
-
return
|
|
4794
|
+
function Pr(e) {
|
|
4795
|
+
return Mr(e).getDate();
|
|
4775
4796
|
}
|
|
4776
|
-
function
|
|
4797
|
+
function Fr(e, t) {
|
|
4777
4798
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
4778
4799
|
}
|
|
4779
|
-
function
|
|
4780
|
-
let t =
|
|
4800
|
+
function Ir(e) {
|
|
4801
|
+
let t = jr(e).getDay(), n = Pr(e), r = [];
|
|
4781
4802
|
for (let e = 0; e < t; e += 1) r.push(null);
|
|
4782
4803
|
for (let t = 1; t <= n; t += 1) r.push(new Date(e.getFullYear(), e.getMonth(), t));
|
|
4783
4804
|
for (; r.length % 7 != 0;) r.push(null);
|
|
4784
4805
|
return r;
|
|
4785
4806
|
}
|
|
4786
|
-
function
|
|
4807
|
+
function Lr(e) {
|
|
4787
4808
|
return e === 0 ? "sunday" : e === 6 ? "saturday" : "weekday";
|
|
4788
4809
|
}
|
|
4789
|
-
function
|
|
4790
|
-
let { minDate: n, maxDate: r, disablePast: i, today: a = /* @__PURE__ */ new Date() } = t, o =
|
|
4791
|
-
return !!(n && o <
|
|
4810
|
+
function Rr(e, t = {}) {
|
|
4811
|
+
let { minDate: n, maxDate: r, disablePast: i, today: a = /* @__PURE__ */ new Date() } = t, o = Ar(e);
|
|
4812
|
+
return !!(n && o < Ar(n) || r && o > Ar(r) || i && o < Ar(a));
|
|
4792
4813
|
}
|
|
4793
|
-
function
|
|
4794
|
-
let { minDate: r, maxDate: i, disablePast: a, today: o = /* @__PURE__ */ new Date() } = n, s =
|
|
4795
|
-
r && c.push(
|
|
4814
|
+
function zr(e, t, n = {}) {
|
|
4815
|
+
let { minDate: r, maxDate: i, disablePast: a, today: o = /* @__PURE__ */ new Date() } = n, s = Nr(e, t), c = [];
|
|
4816
|
+
r && c.push(Ar(r)), a && c.push(Ar(o));
|
|
4796
4817
|
let l = c.length ? new Date(Math.max(...c.map((e) => e.getTime()))) : void 0;
|
|
4797
|
-
return !(l &&
|
|
4818
|
+
return !(l && Ar(Mr(s)) < l || i && jr(s) > Ar(i));
|
|
4798
4819
|
}
|
|
4799
|
-
function
|
|
4820
|
+
function Br(e, t = "ja") {
|
|
4800
4821
|
let { date: n, weekday: r, today: i, selected: a } = e;
|
|
4801
4822
|
if (t !== "ja") return [
|
|
4802
4823
|
`${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, "0")}-${String(n.getDate()).padStart(2, "0")}`,
|
|
4803
4824
|
i ? "today" : null,
|
|
4804
4825
|
a ? "selected" : null
|
|
4805
4826
|
].filter(Boolean).join(", ");
|
|
4806
|
-
let o = `${n.getFullYear()}年${n.getMonth() + 1}月${n.getDate()}日 ${
|
|
4827
|
+
let o = `${n.getFullYear()}年${n.getMonth() + 1}月${n.getDate()}日 ${Or[r]}`, s = [i ? "今日" : null, a ? "選択中" : null].filter(Boolean).join(" ");
|
|
4807
4828
|
return s ? `${o} ${s}` : o;
|
|
4808
4829
|
}
|
|
4809
|
-
function
|
|
4810
|
-
return t === "ja" ? `${e.getFullYear()}年 ${
|
|
4830
|
+
function Vr(e, t = "ja") {
|
|
4831
|
+
return t === "ja" ? `${e.getFullYear()}年 ${kr[e.getMonth()]}` : `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`;
|
|
4811
4832
|
}
|
|
4812
|
-
function
|
|
4833
|
+
function Hr(e, t, n = {}, r = !1) {
|
|
4813
4834
|
let i = n.today ?? t.today;
|
|
4814
4835
|
return e.selected ? {
|
|
4815
4836
|
background: n.selected ?? t.selected,
|
|
@@ -4817,24 +4838,24 @@ function Br(e, t, n = {}, r = !1) {
|
|
|
4817
4838
|
accent: i
|
|
4818
4839
|
} : {
|
|
4819
4840
|
background: "transparent",
|
|
4820
|
-
text:
|
|
4841
|
+
text: Ur(e.tone, t, n, r),
|
|
4821
4842
|
accent: i
|
|
4822
4843
|
};
|
|
4823
4844
|
}
|
|
4824
|
-
function
|
|
4845
|
+
function Ur(e, t, n = {}, r = !1, i) {
|
|
4825
4846
|
let a = i ?? "";
|
|
4826
4847
|
return r ? e === "sunday" ? n.sunday ?? t.sunday : e === "saturday" ? n.saturday ?? t.saturday : a : a;
|
|
4827
4848
|
}
|
|
4828
4849
|
//#endregion
|
|
4829
4850
|
//#region src/native/components/Calendar.tsx
|
|
4830
|
-
function
|
|
4831
|
-
let { theme: v, scales: y } = W(), x = c ?? /* @__PURE__ */ new Date(), [E, D] = S(() =>
|
|
4851
|
+
function Wr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", weekendTone: a = !1, todayEmphasis: o = "ring", disablePast: s = !1, today: c, defaultMonth: l, onMonthChange: u, colors: d, dayStyle: f, renderDay: p, dayAccessibilityLabel: m, previousMonthLabel: h, nextMonthLabel: g, style: _ }) {
|
|
4852
|
+
let { theme: v, scales: y } = W(), x = c ?? /* @__PURE__ */ new Date(), [E, D] = S(() => jr(l ?? e ?? x)), O = i === "ja" ? Er : Dr, k = {
|
|
4832
4853
|
minDate: n,
|
|
4833
4854
|
maxDate: r,
|
|
4834
4855
|
disablePast: s,
|
|
4835
4856
|
today: x
|
|
4836
|
-
}, A = b(() =>
|
|
4837
|
-
let t =
|
|
4857
|
+
}, A = b(() => Ir(E), [E]), j = Vr(E, i), M = zr(E, -1, k), N = zr(E, 1, k), P = (e) => {
|
|
4858
|
+
let t = Nr(E, e);
|
|
4838
4859
|
D(t), u?.(t);
|
|
4839
4860
|
}, ee = {
|
|
4840
4861
|
selected: v.brand.primary,
|
|
@@ -4843,7 +4864,7 @@ function Hr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4843
4864
|
sunday: v.text.caution,
|
|
4844
4865
|
saturday: v.text["accent-primary"],
|
|
4845
4866
|
weekdayText: v.text["high-emphasis"]
|
|
4846
|
-
}, F = (e, t) =>
|
|
4867
|
+
}, F = (e, t) => Ur(e, ee, d, a, t);
|
|
4847
4868
|
return /* @__PURE__ */ T(V, {
|
|
4848
4869
|
style: [{
|
|
4849
4870
|
backgroundColor: v.surface.primary,
|
|
@@ -4861,7 +4882,7 @@ function Hr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4861
4882
|
alignItems: "center"
|
|
4862
4883
|
},
|
|
4863
4884
|
children: [
|
|
4864
|
-
/* @__PURE__ */ w(
|
|
4885
|
+
/* @__PURE__ */ w(Tr, {
|
|
4865
4886
|
accessibilityLabel: h ?? (i === "ja" ? "前の月" : "Previous month"),
|
|
4866
4887
|
onPress: () => P(-1),
|
|
4867
4888
|
disabled: !M,
|
|
@@ -4876,7 +4897,7 @@ function Hr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4876
4897
|
style: [q("label.md"), { color: v.text["high-emphasis"] }],
|
|
4877
4898
|
children: j
|
|
4878
4899
|
}),
|
|
4879
|
-
/* @__PURE__ */ w(
|
|
4900
|
+
/* @__PURE__ */ w(Tr, {
|
|
4880
4901
|
accessibilityLabel: g ?? (i === "ja" ? "次の月" : "Next month"),
|
|
4881
4902
|
onPress: () => P(1),
|
|
4882
4903
|
disabled: !N,
|
|
@@ -4897,7 +4918,7 @@ function Hr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4897
4918
|
alignItems: "center"
|
|
4898
4919
|
},
|
|
4899
4920
|
children: /* @__PURE__ */ w(z, {
|
|
4900
|
-
style: [q("label.xs"), { color: F(
|
|
4921
|
+
style: [q("label.xs"), { color: F(Lr(t), v.text["low-emphasis"]) }],
|
|
4901
4922
|
children: e
|
|
4902
4923
|
})
|
|
4903
4924
|
}, t))
|
|
@@ -4915,11 +4936,11 @@ function Hr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4915
4936
|
let s = n.getDay(), c = {
|
|
4916
4937
|
date: n,
|
|
4917
4938
|
weekday: s,
|
|
4918
|
-
selected: !!(e &&
|
|
4919
|
-
today:
|
|
4920
|
-
disabled:
|
|
4921
|
-
tone:
|
|
4922
|
-
}, l = c.today && !c.selected && o === "ring", u = c.today && !c.selected && o === "dot", h =
|
|
4939
|
+
selected: !!(e && Fr(n, e)),
|
|
4940
|
+
today: Fr(n, x),
|
|
4941
|
+
disabled: Rr(n, k),
|
|
4942
|
+
tone: Lr(s)
|
|
4943
|
+
}, l = c.today && !c.selected && o === "ring", u = c.today && !c.selected && o === "dot", h = Hr(c, ee, d, a);
|
|
4923
4944
|
return /* @__PURE__ */ w(V, {
|
|
4924
4945
|
style: {
|
|
4925
4946
|
width: `${100 / 7}%`,
|
|
@@ -4930,7 +4951,7 @@ function Hr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4930
4951
|
onPress: () => !c.disabled && t?.(n),
|
|
4931
4952
|
disabled: c.disabled,
|
|
4932
4953
|
accessibilityRole: "button",
|
|
4933
|
-
accessibilityLabel: m?.(c) ??
|
|
4954
|
+
accessibilityLabel: m?.(c) ?? Br(c, i),
|
|
4934
4955
|
accessibilityState: {
|
|
4935
4956
|
disabled: c.disabled,
|
|
4936
4957
|
selected: c.selected
|
|
@@ -4967,10 +4988,10 @@ function Hr({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "ja", w
|
|
|
4967
4988
|
}
|
|
4968
4989
|
//#endregion
|
|
4969
4990
|
//#region src/native/components/DatePicker.tsx
|
|
4970
|
-
function
|
|
4991
|
+
function Gr(e) {
|
|
4971
4992
|
return `${e.getFullYear()}/${String(e.getMonth() + 1).padStart(2, "0")}/${String(e.getDate()).padStart(2, "0")}`;
|
|
4972
4993
|
}
|
|
4973
|
-
function
|
|
4994
|
+
function Kr({ value: e, onChange: t, placeholder: n = "日付を選択", minDate: r, maxDate: i, disabled: a = !1, formatter: o = Gr, accessibilityLabel: s }) {
|
|
4974
4995
|
let { theme: c, scales: l } = W(), [u, d] = S(!1), [f, p] = S(e);
|
|
4975
4996
|
return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T(L, {
|
|
4976
4997
|
onPress: () => {
|
|
@@ -4998,12 +5019,12 @@ function Wr({ value: e, onChange: t, placeholder: n = "日付を選択", minDate
|
|
|
4998
5019
|
style: [q("label.sm"), { color: c.text["low-emphasis"] }],
|
|
4999
5020
|
children: "📅"
|
|
5000
5021
|
})]
|
|
5001
|
-
}), /* @__PURE__ */ T(
|
|
5022
|
+
}), /* @__PURE__ */ T(jn, {
|
|
5002
5023
|
open: u,
|
|
5003
5024
|
onClose: () => d(!1),
|
|
5004
5025
|
side: "bottom",
|
|
5005
5026
|
title: "日付を選択",
|
|
5006
|
-
children: [/* @__PURE__ */ w(
|
|
5027
|
+
children: [/* @__PURE__ */ w(Wr, {
|
|
5007
5028
|
value: f,
|
|
5008
5029
|
onChange: p,
|
|
5009
5030
|
minDate: r,
|
|
@@ -5016,14 +5037,14 @@ function Wr({ value: e, onChange: t, placeholder: n = "日付を選択", minDate
|
|
|
5016
5037
|
},
|
|
5017
5038
|
children: [/* @__PURE__ */ w(V, {
|
|
5018
5039
|
style: { flex: 1 },
|
|
5019
|
-
children: /* @__PURE__ */ w(
|
|
5040
|
+
children: /* @__PURE__ */ w(Z, {
|
|
5020
5041
|
variant: "tertiary",
|
|
5021
5042
|
onPress: () => d(!1),
|
|
5022
5043
|
children: "キャンセル"
|
|
5023
5044
|
})
|
|
5024
5045
|
}), /* @__PURE__ */ w(V, {
|
|
5025
5046
|
style: { flex: 1 },
|
|
5026
|
-
children: /* @__PURE__ */ w(
|
|
5047
|
+
children: /* @__PURE__ */ w(Z, {
|
|
5027
5048
|
variant: "primary",
|
|
5028
5049
|
disabled: !f,
|
|
5029
5050
|
onPress: () => {
|
|
@@ -5037,20 +5058,20 @@ function Wr({ value: e, onChange: t, placeholder: n = "日付を選択", minDate
|
|
|
5037
5058
|
}
|
|
5038
5059
|
//#endregion
|
|
5039
5060
|
//#region src/native/components/DateField.tsx
|
|
5040
|
-
function
|
|
5061
|
+
function qr(e) {
|
|
5041
5062
|
if (!e) return;
|
|
5042
5063
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
5043
5064
|
if (!t) return;
|
|
5044
5065
|
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = new Date(n, r - 1, i);
|
|
5045
5066
|
if (!(a.getFullYear() !== n || a.getMonth() !== r - 1 || a.getDate() !== i)) return a;
|
|
5046
5067
|
}
|
|
5047
|
-
function
|
|
5068
|
+
function Jr(e) {
|
|
5048
5069
|
return !e || isNaN(e.getTime()) ? "" : `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
5049
5070
|
}
|
|
5050
|
-
function
|
|
5051
|
-
return /* @__PURE__ */ w(
|
|
5052
|
-
value:
|
|
5053
|
-
onChange: (e) => t(
|
|
5071
|
+
function Yr({ value: e, onChange: t, placeholder: n, disabled: r, formatter: i, accessibilityLabel: a }) {
|
|
5072
|
+
return /* @__PURE__ */ w(Kr, {
|
|
5073
|
+
value: qr(e),
|
|
5074
|
+
onChange: (e) => t(Jr(e)),
|
|
5054
5075
|
placeholder: n,
|
|
5055
5076
|
disabled: r,
|
|
5056
5077
|
formatter: i,
|
|
@@ -5059,10 +5080,10 @@ function qr({ value: e, onChange: t, placeholder: n, disabled: r, formatter: i,
|
|
|
5059
5080
|
}
|
|
5060
5081
|
//#endregion
|
|
5061
5082
|
//#region src/native/components/TimePicker.tsx
|
|
5062
|
-
function
|
|
5083
|
+
function Xr(e) {
|
|
5063
5084
|
return e.toString().padStart(2, "0");
|
|
5064
5085
|
}
|
|
5065
|
-
function
|
|
5086
|
+
function Zr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteStep: r = 1, disabled: i = !1 }) {
|
|
5066
5087
|
let { theme: a, scales: o } = W(), [s, c] = S(!1), [l, u] = S(e?.hour ?? 9), [d, f] = S(e?.minute ?? 0), p = Array.from({ length: 24 }, (e, t) => t), m = Array.from({ length: 60 / r }, (e, t) => t * r);
|
|
5067
5088
|
return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T(L, {
|
|
5068
5089
|
onPress: () => {
|
|
@@ -5083,12 +5104,12 @@ function Yr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
5083
5104
|
},
|
|
5084
5105
|
children: [/* @__PURE__ */ w(z, {
|
|
5085
5106
|
style: [q("body.md"), { color: e ? a.text["high-emphasis"] : a.text["low-emphasis"] }],
|
|
5086
|
-
children: e ? `${
|
|
5107
|
+
children: e ? `${Xr(e.hour)}:${Xr(e.minute)}` : n
|
|
5087
5108
|
}), /* @__PURE__ */ w(z, {
|
|
5088
5109
|
style: [q("label.sm"), { color: a.text["low-emphasis"] }],
|
|
5089
5110
|
children: "🕐"
|
|
5090
5111
|
})]
|
|
5091
|
-
}), /* @__PURE__ */ T(
|
|
5112
|
+
}), /* @__PURE__ */ T(jn, {
|
|
5092
5113
|
open: s,
|
|
5093
5114
|
onClose: () => c(!1),
|
|
5094
5115
|
side: "bottom",
|
|
@@ -5115,7 +5136,7 @@ function Yr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
5115
5136
|
color: l === e ? a.text["accent-primary"] : a.text["high-emphasis"],
|
|
5116
5137
|
fontWeight: l === e ? "700" : "400"
|
|
5117
5138
|
}],
|
|
5118
|
-
children:
|
|
5139
|
+
children: Xr(e)
|
|
5119
5140
|
})
|
|
5120
5141
|
}, e))
|
|
5121
5142
|
}), /* @__PURE__ */ w(R, {
|
|
@@ -5134,7 +5155,7 @@ function Yr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
5134
5155
|
color: d === e ? a.text["accent-primary"] : a.text["high-emphasis"],
|
|
5135
5156
|
fontWeight: d === e ? "700" : "400"
|
|
5136
5157
|
}],
|
|
5137
|
-
children:
|
|
5158
|
+
children: Xr(e)
|
|
5138
5159
|
})
|
|
5139
5160
|
}, e))
|
|
5140
5161
|
})]
|
|
@@ -5146,14 +5167,14 @@ function Yr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
5146
5167
|
},
|
|
5147
5168
|
children: [/* @__PURE__ */ w(V, {
|
|
5148
5169
|
style: { flex: 1 },
|
|
5149
|
-
children: /* @__PURE__ */ w(
|
|
5170
|
+
children: /* @__PURE__ */ w(Z, {
|
|
5150
5171
|
variant: "tertiary",
|
|
5151
5172
|
onPress: () => c(!1),
|
|
5152
5173
|
children: "キャンセル"
|
|
5153
5174
|
})
|
|
5154
5175
|
}), /* @__PURE__ */ w(V, {
|
|
5155
5176
|
style: { flex: 1 },
|
|
5156
|
-
children: /* @__PURE__ */ w(
|
|
5177
|
+
children: /* @__PURE__ */ w(Z, {
|
|
5157
5178
|
variant: "primary",
|
|
5158
5179
|
onPress: () => {
|
|
5159
5180
|
t?.({
|
|
@@ -5169,21 +5190,21 @@ function Yr({ value: e, onChange: t, placeholder: n = "時刻を選択", minuteS
|
|
|
5169
5190
|
}
|
|
5170
5191
|
//#endregion
|
|
5171
5192
|
//#region src/native/components/DateTimePicker.tsx
|
|
5172
|
-
function
|
|
5193
|
+
function Qr(e, t, n) {
|
|
5173
5194
|
return t && e < t ? new Date(t) : n && e > n ? new Date(n) : e;
|
|
5174
5195
|
}
|
|
5175
|
-
function
|
|
5196
|
+
function $r({ value: e, onChange: t, minuteStep: n, minDate: r, maxDate: i, disabled: a = !1, style: o }) {
|
|
5176
5197
|
let { scales: s } = W(), c = e ? {
|
|
5177
5198
|
hour: e.getHours(),
|
|
5178
5199
|
minute: e.getMinutes()
|
|
5179
5200
|
} : void 0;
|
|
5180
5201
|
return /* @__PURE__ */ T(V, {
|
|
5181
5202
|
style: [{ gap: s.spacing.scale[2] }, o],
|
|
5182
|
-
children: [/* @__PURE__ */ w(
|
|
5203
|
+
children: [/* @__PURE__ */ w(Kr, {
|
|
5183
5204
|
value: e,
|
|
5184
5205
|
onChange: (n) => {
|
|
5185
5206
|
let a = new Date(n);
|
|
5186
|
-
a.setHours(e?.getHours() ?? 0, e?.getMinutes() ?? 0, e?.getSeconds() ?? 0, e?.getMilliseconds() ?? 0), t?.(
|
|
5207
|
+
a.setHours(e?.getHours() ?? 0, e?.getMinutes() ?? 0, e?.getSeconds() ?? 0, e?.getMilliseconds() ?? 0), t?.(Qr(a, r, i));
|
|
5187
5208
|
},
|
|
5188
5209
|
minDate: r,
|
|
5189
5210
|
maxDate: i,
|
|
@@ -5197,12 +5218,12 @@ function Zr({ value: e, onChange: t, minuteStep: n, minDate: r, maxDate: i, disa
|
|
|
5197
5218
|
"土"
|
|
5198
5219
|
][e.getDay()]})`,
|
|
5199
5220
|
disabled: a
|
|
5200
|
-
}), /* @__PURE__ */ w(
|
|
5221
|
+
}), /* @__PURE__ */ w(Zr, {
|
|
5201
5222
|
value: c,
|
|
5202
5223
|
onChange: (n) => {
|
|
5203
5224
|
if (!e) return;
|
|
5204
5225
|
let a = new Date(e);
|
|
5205
|
-
a.setHours(n.hour, n.minute, e.getSeconds(), e.getMilliseconds()), t?.(
|
|
5226
|
+
a.setHours(n.hour, n.minute, e.getSeconds(), e.getMilliseconds()), t?.(Qr(a, r, i));
|
|
5206
5227
|
},
|
|
5207
5228
|
minuteStep: n,
|
|
5208
5229
|
disabled: a || !e
|
|
@@ -5211,25 +5232,25 @@ function Zr({ value: e, onChange: t, minuteStep: n, minDate: r, maxDate: i, disa
|
|
|
5211
5232
|
}
|
|
5212
5233
|
//#endregion
|
|
5213
5234
|
//#region src/native/disclosure-state.ts
|
|
5214
|
-
function
|
|
5235
|
+
function ei(e, t) {
|
|
5215
5236
|
return e === void 0 ? t : e;
|
|
5216
5237
|
}
|
|
5217
|
-
function
|
|
5238
|
+
function ti(e) {
|
|
5218
5239
|
return e !== void 0;
|
|
5219
5240
|
}
|
|
5220
|
-
function
|
|
5241
|
+
function ni(e, t, n) {
|
|
5221
5242
|
let r = e.includes(t);
|
|
5222
5243
|
return n === "single" ? r ? [] : [t] : r ? e.filter((e) => e !== t) : [...e, t];
|
|
5223
5244
|
}
|
|
5224
|
-
function
|
|
5245
|
+
function ri(e, t) {
|
|
5225
5246
|
let n = [...new Set(e)];
|
|
5226
5247
|
return t === "single" ? n.slice(0, 1) : n;
|
|
5227
5248
|
}
|
|
5228
5249
|
//#endregion
|
|
5229
5250
|
//#region src/native/components/Accordion.tsx
|
|
5230
|
-
function
|
|
5231
|
-
let { theme: o, scales: s } = W(), [c, l] = S(() =>
|
|
5232
|
-
let n =
|
|
5251
|
+
function ii({ items: e, type: t = "single", defaultOpenKeys: n = [], openKeys: r, onOpenChange: i, style: a }) {
|
|
5252
|
+
let { theme: o, scales: s } = W(), [c, l] = S(() => ri(n, t)), u = r !== void 0, d = u ? ri(r, t) : c, f = g((e) => {
|
|
5253
|
+
let n = ni(d, e, t);
|
|
5233
5254
|
u || l(n), i?.(n);
|
|
5234
5255
|
}, [
|
|
5235
5256
|
u,
|
|
@@ -5295,10 +5316,10 @@ function ni({ items: e, type: t = "single", defaultOpenKeys: n = [], openKeys: r
|
|
|
5295
5316
|
}
|
|
5296
5317
|
//#endregion
|
|
5297
5318
|
//#region src/native/components/Collapsible.tsx
|
|
5298
|
-
function
|
|
5299
|
-
let { theme: d, scales: f } = W(), [p, m] = S(t), h =
|
|
5319
|
+
function ai({ title: e, defaultOpen: t = !1, open: n, onOpenChange: r, trailing: i, style: a, children: o, accessibilityRole: s, accessibilityLabel: c, accessibilityState: l, ...u }) {
|
|
5320
|
+
let { theme: d, scales: f } = W(), [p, m] = S(t), h = ei(n, p), _ = g(() => {
|
|
5300
5321
|
let e = !h;
|
|
5301
|
-
|
|
5322
|
+
ti(n) || m(e), r?.(e);
|
|
5302
5323
|
}, [
|
|
5303
5324
|
n,
|
|
5304
5325
|
r,
|
|
@@ -5352,7 +5373,7 @@ function ri({ title: e, defaultOpen: t = !1, open: n, onOpenChange: r, trailing:
|
|
|
5352
5373
|
}
|
|
5353
5374
|
//#endregion
|
|
5354
5375
|
//#region src/native/components/ScrollArea.tsx
|
|
5355
|
-
function
|
|
5376
|
+
function oi({ maxHeight: e, bordered: t, children: n, ...r }) {
|
|
5356
5377
|
let { theme: i, scales: a } = W();
|
|
5357
5378
|
return /* @__PURE__ */ w(V, {
|
|
5358
5379
|
style: {
|
|
@@ -5370,15 +5391,15 @@ function ii({ maxHeight: e, bordered: t, children: n, ...r }) {
|
|
|
5370
5391
|
}
|
|
5371
5392
|
//#endregion
|
|
5372
5393
|
//#region src/native/components/Pagination.tsx
|
|
5373
|
-
function
|
|
5394
|
+
function si(e, t) {
|
|
5374
5395
|
let n = [];
|
|
5375
5396
|
for (let r = e; r <= t; r++) n.push(r);
|
|
5376
5397
|
return n;
|
|
5377
5398
|
}
|
|
5378
|
-
function
|
|
5399
|
+
function ci({ page: e, total: t, onChange: n, windowSize: r = 5 }) {
|
|
5379
5400
|
let { theme: i, scales: a } = W(), o = Math.floor(r / 2), s = Math.max(1, e - o), c = Math.min(t, s + r - 1);
|
|
5380
5401
|
c - s + 1 < r && (s = Math.max(1, c - r + 1));
|
|
5381
|
-
let l =
|
|
5402
|
+
let l = si(s, c), u = (e, t, r = !1, o = !1) => /* @__PURE__ */ w(L, {
|
|
5382
5403
|
onPress: () => t && !r && n?.(t),
|
|
5383
5404
|
disabled: r || !t,
|
|
5384
5405
|
style: ({ pressed: e }) => ({
|
|
@@ -5417,7 +5438,7 @@ function oi({ page: e, total: t, onChange: n, windowSize: r = 5 }) {
|
|
|
5417
5438
|
}
|
|
5418
5439
|
//#endregion
|
|
5419
5440
|
//#region src/native/components/SimplePagination.tsx
|
|
5420
|
-
function
|
|
5441
|
+
function li({ page: e, total: t, onChange: n }) {
|
|
5421
5442
|
let { theme: r, scales: i } = W(), a = (e, t, a) => /* @__PURE__ */ w(L, {
|
|
5422
5443
|
onPress: () => !a && n?.(t),
|
|
5423
5444
|
disabled: a,
|
|
@@ -5458,7 +5479,7 @@ function si({ page: e, total: t, onChange: n }) {
|
|
|
5458
5479
|
}
|
|
5459
5480
|
//#endregion
|
|
5460
5481
|
//#region src/native/components/NavigationBar.tsx
|
|
5461
|
-
function
|
|
5482
|
+
function ui({ items: e, value: t, onChange: n }) {
|
|
5462
5483
|
let { theme: r, scales: i } = W();
|
|
5463
5484
|
return /* @__PURE__ */ w(V, {
|
|
5464
5485
|
style: {
|
|
@@ -5513,7 +5534,7 @@ function ci({ items: e, value: t, onChange: n }) {
|
|
|
5513
5534
|
}
|
|
5514
5535
|
//#endregion
|
|
5515
5536
|
//#region src/native/components/SubNav.tsx
|
|
5516
|
-
function
|
|
5537
|
+
function di({ items: e, value: t, onChange: n }) {
|
|
5517
5538
|
let { theme: r, scales: i } = W();
|
|
5518
5539
|
return /* @__PURE__ */ w(R, {
|
|
5519
5540
|
horizontal: !0,
|
|
@@ -5564,7 +5585,7 @@ function li({ items: e, value: t, onChange: n }) {
|
|
|
5564
5585
|
}
|
|
5565
5586
|
//#endregion
|
|
5566
5587
|
//#region src/native/components/Breadcrumb.tsx
|
|
5567
|
-
function
|
|
5588
|
+
function fi({ title: e, onBack: t, backLabel: n = "戻る", rightSlot: r }) {
|
|
5568
5589
|
let { theme: i, scales: a } = W();
|
|
5569
5590
|
return /* @__PURE__ */ T(V, {
|
|
5570
5591
|
style: {
|
|
@@ -5616,8 +5637,8 @@ function ui({ title: e, onBack: t, backLabel: n = "戻る", rightSlot: r }) {
|
|
|
5616
5637
|
}
|
|
5617
5638
|
//#endregion
|
|
5618
5639
|
//#region src/native/components/AppHeader.tsx
|
|
5619
|
-
function
|
|
5620
|
-
let { theme: s, scales: c } = W(), l =
|
|
5640
|
+
function pi({ title: e, subtitle: t, leading: n, trailing: r, onBack: i, centered: a = !0, safeArea: o = !0 }) {
|
|
5641
|
+
let { theme: s, scales: c } = W(), l = G(), u = n ?? (i ? /* @__PURE__ */ w(L, {
|
|
5621
5642
|
onPress: i,
|
|
5622
5643
|
hitSlop: 8,
|
|
5623
5644
|
style: ({ pressed: e }) => ({
|
|
@@ -5636,7 +5657,7 @@ function di({ title: e, subtitle: t, leading: n, trailing: r, onBack: i, centere
|
|
|
5636
5657
|
alignItems: "center",
|
|
5637
5658
|
gap: c.spacing.scale[2],
|
|
5638
5659
|
paddingHorizontal: c.spacing.scale[3],
|
|
5639
|
-
paddingTop:
|
|
5660
|
+
paddingTop: le({
|
|
5640
5661
|
insets: l,
|
|
5641
5662
|
safeArea: o,
|
|
5642
5663
|
isIOS: I.OS === "ios",
|
|
@@ -5682,7 +5703,7 @@ function di({ title: e, subtitle: t, leading: n, trailing: r, onBack: i, centere
|
|
|
5682
5703
|
}
|
|
5683
5704
|
//#endregion
|
|
5684
5705
|
//#region src/native/components/MobileAppHeader.tsx
|
|
5685
|
-
function
|
|
5706
|
+
function mi({ brand: e, leading: t, status: n, compactStatus: r, actions: i, children: a, bordered: o = !0, verticalAlignment: s = "center", style: c }) {
|
|
5686
5707
|
let { theme: l, scales: u } = W();
|
|
5687
5708
|
return /* @__PURE__ */ T(V, {
|
|
5688
5709
|
style: [{
|
|
@@ -5725,7 +5746,7 @@ function fi({ brand: e, leading: t, status: n, compactStatus: r, actions: i, chi
|
|
|
5725
5746
|
}
|
|
5726
5747
|
//#endregion
|
|
5727
5748
|
//#region src/native/components/MobileAppShell.tsx
|
|
5728
|
-
function
|
|
5749
|
+
function hi({ header: e, bottomNav: t, fab: n, desktopSidebar: r, scrollable: i = !0, bottomPadding: a = n ? "bottom-nav-fab" : t ? "bottom-nav" : "none", children: o, style: s, contentStyle: c }) {
|
|
5729
5750
|
let { theme: l, scales: u } = W(), d = a === "bottom-nav-fab" ? u.spacing.scale[15] : a === "bottom-nav" ? u.spacing.scale[12] : 0, f = [{
|
|
5730
5751
|
flex: 1,
|
|
5731
5752
|
backgroundColor: l.surface.secondary,
|
|
@@ -5757,13 +5778,13 @@ function pi({ header: e, bottomNav: t, fab: n, desktopSidebar: r, scrollable: i
|
|
|
5757
5778
|
}
|
|
5758
5779
|
//#endregion
|
|
5759
5780
|
//#region src/native/glass-accent-fill.ts
|
|
5760
|
-
var
|
|
5781
|
+
var gi = .95, _i = .88, vi = {
|
|
5761
5782
|
r: 20,
|
|
5762
5783
|
g: 20,
|
|
5763
5784
|
b: 30,
|
|
5764
5785
|
a: .6
|
|
5765
5786
|
};
|
|
5766
|
-
function
|
|
5787
|
+
function yi(e) {
|
|
5767
5788
|
let t = e.trim().replace(/^#/, "");
|
|
5768
5789
|
if (!/^[0-9a-fA-F]+$/.test(t)) return null;
|
|
5769
5790
|
let n = (e) => e.split("").map((e) => e + e).join(""), r;
|
|
@@ -5778,13 +5799,13 @@ function _i(e) {
|
|
|
5778
5799
|
a: r.length === 8 ? i(6) / 255 : 1
|
|
5779
5800
|
};
|
|
5780
5801
|
}
|
|
5781
|
-
function
|
|
5802
|
+
function bi(e) {
|
|
5782
5803
|
return String(Math.round(Math.min(Math.max(e, 0), 1) * 1e3) / 1e3);
|
|
5783
5804
|
}
|
|
5784
|
-
function
|
|
5785
|
-
return `rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${
|
|
5805
|
+
function xi({ r: e, g: t, b: n, a: r }) {
|
|
5806
|
+
return `rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${bi(r)})`;
|
|
5786
5807
|
}
|
|
5787
|
-
function
|
|
5808
|
+
function Si(e, t, n) {
|
|
5788
5809
|
let r = Math.min(Math.max(n, 0), 1), i = e.a * r + t.a * (1 - r);
|
|
5789
5810
|
if (i === 0) return {
|
|
5790
5811
|
r: 0,
|
|
@@ -5800,24 +5821,24 @@ function bi(e, t, n) {
|
|
|
5800
5821
|
a: i
|
|
5801
5822
|
};
|
|
5802
5823
|
}
|
|
5803
|
-
function
|
|
5804
|
-
let n =
|
|
5805
|
-
return n ?
|
|
5824
|
+
function Ci({ brandPrimary: e, mode: t }) {
|
|
5825
|
+
let n = yi(e);
|
|
5826
|
+
return n ? xi(t === "light" ? Si(n, {
|
|
5806
5827
|
r: 0,
|
|
5807
5828
|
g: 0,
|
|
5808
5829
|
b: 0,
|
|
5809
5830
|
a: 0
|
|
5810
|
-
},
|
|
5831
|
+
}, gi) : Si(n, vi, _i)) : e;
|
|
5811
5832
|
}
|
|
5812
|
-
function
|
|
5833
|
+
function wi(e) {
|
|
5813
5834
|
return e === "light" ? "rgba(255, 255, 255, 0.4)" : "rgba(255, 255, 255, 0.25)";
|
|
5814
5835
|
}
|
|
5815
|
-
function
|
|
5836
|
+
function Ti(e) {
|
|
5816
5837
|
return e === "light" ? "rgba(255, 255, 255, 0.9)" : "rgba(255, 255, 255, 0.25)";
|
|
5817
5838
|
}
|
|
5818
5839
|
//#endregion
|
|
5819
5840
|
//#region src/native/components/MobileFloatingActionButton.tsx
|
|
5820
|
-
function
|
|
5841
|
+
function Ei({ label: e, icon: t, showLabel: n = !1, placement: r = "end", bottomOffset: i = "bottom-nav", keyboardBehavior: a = "hide", variant: o = "default", style: s, bottomOffsetExtra: c, ...l }) {
|
|
5821
5842
|
let { theme: u, scales: d, mode: f } = W(), [p, m] = S(!1);
|
|
5822
5843
|
if (v(() => {
|
|
5823
5844
|
let e = P.addListener("keyboardDidShow", () => m(!0)), t = P.addListener("keyboardDidHide", () => m(!1));
|
|
@@ -5846,7 +5867,7 @@ function wi({ label: e, icon: t, showLabel: n = !1, placement: r = "end", bottom
|
|
|
5846
5867
|
children: e
|
|
5847
5868
|
})] });
|
|
5848
5869
|
if (o === "glass") {
|
|
5849
|
-
let t =
|
|
5870
|
+
let t = Ci({
|
|
5850
5871
|
brandPrimary: u.brand.primary,
|
|
5851
5872
|
mode: f
|
|
5852
5873
|
}), n = !Oe();
|
|
@@ -5862,13 +5883,13 @@ function wi({ label: e, icon: t, showLabel: n = !1, placement: r = "end", bottom
|
|
|
5862
5883
|
...g
|
|
5863
5884
|
}, s],
|
|
5864
5885
|
...l,
|
|
5865
|
-
children: /* @__PURE__ */ w(
|
|
5886
|
+
children: /* @__PURE__ */ w(X, {
|
|
5866
5887
|
intensity: "regular",
|
|
5867
5888
|
borderRadius: y,
|
|
5868
5889
|
backgroundFill: t,
|
|
5869
5890
|
tintColor: u.brand.primary,
|
|
5870
|
-
rimColor:
|
|
5871
|
-
highlightColor:
|
|
5891
|
+
rimColor: wi(f),
|
|
5892
|
+
highlightColor: Ti(f),
|
|
5872
5893
|
style: [b, n && { backgroundColor: t }],
|
|
5873
5894
|
children: x
|
|
5874
5895
|
})
|
|
@@ -5892,7 +5913,7 @@ function wi({ label: e, icon: t, showLabel: n = !1, placement: r = "end", bottom
|
|
|
5892
5913
|
}
|
|
5893
5914
|
//#endregion
|
|
5894
5915
|
//#region src/native/components/StatusActionBadge.tsx
|
|
5895
|
-
function
|
|
5916
|
+
function Di({ state: e = "idle", label: t, count: n, compact: r = !1, loading: i = !1, icon: a, asStatus: o = !1, style: s, onPress: c, ...l }) {
|
|
5896
5917
|
let { theme: u, scales: d } = W(), f = u.border["low-emphasis"], p = {
|
|
5897
5918
|
idle: {
|
|
5898
5919
|
bg: u.surface.secondary,
|
|
@@ -5980,10 +6001,10 @@ function Ti({ state: e = "idle", label: t, count: n, compact: r = !1, loading: i
|
|
|
5980
6001
|
children: m
|
|
5981
6002
|
});
|
|
5982
6003
|
}
|
|
5983
|
-
var
|
|
6004
|
+
var Oi = Di;
|
|
5984
6005
|
//#endregion
|
|
5985
6006
|
//#region src/native/components/Banner.tsx
|
|
5986
|
-
function
|
|
6007
|
+
function ki({ title: e, description: t, image: n, onPress: r, tone: i = "neutral", height: a = 140 }) {
|
|
5987
6008
|
let { theme: o, scales: s } = W(), c = {
|
|
5988
6009
|
neutral: {
|
|
5989
6010
|
bg: o.surface.secondary,
|
|
@@ -6045,7 +6066,7 @@ function Di({ title: e, description: t, image: n, onPress: r, tone: i = "neutral
|
|
|
6045
6066
|
}
|
|
6046
6067
|
//#endregion
|
|
6047
6068
|
//#region src/native/components/BannerCarousel.tsx
|
|
6048
|
-
function
|
|
6069
|
+
function Ai({ banners: e, itemWidth: t, height: n = 160, showIndicator: r = !0 }) {
|
|
6049
6070
|
let { theme: i, scales: a } = W(), [o, s] = S(0), c = t ?? k.get("window").width - 32, l = x(null);
|
|
6050
6071
|
return /* @__PURE__ */ T(V, {
|
|
6051
6072
|
style: { gap: a.spacing.scale[2] },
|
|
@@ -6071,7 +6092,7 @@ function Oi({ banners: e, itemWidth: t, height: n = 160, showIndicator: r = !0 }
|
|
|
6071
6092
|
width: c,
|
|
6072
6093
|
height: n
|
|
6073
6094
|
},
|
|
6074
|
-
children: /* @__PURE__ */ w(
|
|
6095
|
+
children: /* @__PURE__ */ w(ki, {
|
|
6075
6096
|
...e,
|
|
6076
6097
|
height: n
|
|
6077
6098
|
})
|
|
@@ -6093,7 +6114,7 @@ function Oi({ banners: e, itemWidth: t, height: n = 160, showIndicator: r = !0 }
|
|
|
6093
6114
|
}
|
|
6094
6115
|
//#endregion
|
|
6095
6116
|
//#region src/native/components/SearchBar.tsx
|
|
6096
|
-
function
|
|
6117
|
+
function ji({ value: e, onChange: t, placeholder: n = "検索", onSubmit: r, onClear: i, autoFocus: a, accessibilityLabel: o, accessibilityHint: s, accessibilityRole: c, accessibilityState: l, ...u }) {
|
|
6097
6118
|
let { theme: d, scales: f } = W();
|
|
6098
6119
|
return /* @__PURE__ */ T(V, {
|
|
6099
6120
|
style: {
|
|
@@ -6154,7 +6175,7 @@ function ki({ value: e, onChange: t, placeholder: n = "検索", onSubmit: r, onC
|
|
|
6154
6175
|
}
|
|
6155
6176
|
//#endregion
|
|
6156
6177
|
//#region src/native/components/ListItem.tsx
|
|
6157
|
-
function
|
|
6178
|
+
function Mi({ leading: e, title: t, titleTone: n = "default", descriptionTone: r = "default", divider: i = "none", description: a, trailing: o, footerSlot: s, showChevron: c, onPress: l, disabled: u, align: d = "start", density: f = "comfortable", accessibilityLabel: p, accessibilityHint: m, accessibilityRole: h, accessibilityState: g, ..._ }) {
|
|
6158
6179
|
let { theme: v, scales: y } = W(), b = d === "center", x = f === "compact", S = s != null && s !== !1, E = x ? y.spacing.scale[3] : y.spacing.scale[4], D = (e, t) => v.text[e === "accent" ? "accent-primary" : e === "caution" ? "caution" : t], O = /* @__PURE__ */ T(C, { children: [
|
|
6159
6180
|
e,
|
|
6160
6181
|
/* @__PURE__ */ T(V, {
|
|
@@ -6249,7 +6270,7 @@ function Ai({ leading: e, title: t, titleTone: n = "default", descriptionTone: r
|
|
|
6249
6270
|
}
|
|
6250
6271
|
//#endregion
|
|
6251
6272
|
//#region src/native/components/SettingsSection.tsx
|
|
6252
|
-
function
|
|
6273
|
+
function Ni({ title: e, description: t, action: n, variant: r = "group", children: i, style: a, contentStyle: o }) {
|
|
6253
6274
|
let { theme: s, scales: c } = W(), l = r === "card" || r === "danger";
|
|
6254
6275
|
return /* @__PURE__ */ T(V, {
|
|
6255
6276
|
style: [{ gap: c.spacing.scale[3] }, a],
|
|
@@ -6289,7 +6310,7 @@ function ji({ title: e, description: t, action: n, variant: r = "group", childre
|
|
|
6289
6310
|
})]
|
|
6290
6311
|
});
|
|
6291
6312
|
}
|
|
6292
|
-
function
|
|
6313
|
+
function Pi({ title: e, description: t, leading: n, rightSlot: r, children: i, onPress: a, disabled: o = !1, destructive: s = !1, style: c }) {
|
|
6293
6314
|
let { theme: l, scales: u } = W(), d = (a = !1) => /* @__PURE__ */ T(V, {
|
|
6294
6315
|
style: [{
|
|
6295
6316
|
minHeight: 56,
|
|
@@ -6347,7 +6368,7 @@ function Mi({ title: e, description: t, leading: n, rightSlot: r, children: i, o
|
|
|
6347
6368
|
}
|
|
6348
6369
|
//#endregion
|
|
6349
6370
|
//#region src/native/components/EmptyState.tsx
|
|
6350
|
-
function
|
|
6371
|
+
function Fi({ title: e, description: t, icon: n, action: r, accessibilityLabel: i, accessibilityHint: a, ...o }) {
|
|
6351
6372
|
let { theme: s, scales: c } = W(), l = i !== void 0 || a !== void 0;
|
|
6352
6373
|
return /* @__PURE__ */ T(V, {
|
|
6353
6374
|
style: {
|
|
@@ -6403,7 +6424,7 @@ function Ni({ title: e, description: t, icon: n, action: r, accessibilityLabel:
|
|
|
6403
6424
|
}
|
|
6404
6425
|
//#endregion
|
|
6405
6426
|
//#region src/native/components/ErrorState.tsx
|
|
6406
|
-
function
|
|
6427
|
+
function Ii({ title: e = "エラーが発生しました", description: t = "しばらくしてからもう一度お試しください", icon: n, action: r, accessibilityLabel: i, accessibilityHint: a, ...o }) {
|
|
6407
6428
|
let { theme: s, scales: c } = W(), l = i !== void 0 || a !== void 0;
|
|
6408
6429
|
return /* @__PURE__ */ T(V, {
|
|
6409
6430
|
style: {
|
|
@@ -6459,7 +6480,7 @@ function Pi({ title: e = "エラーが発生しました", description: t = "し
|
|
|
6459
6480
|
}
|
|
6460
6481
|
//#endregion
|
|
6461
6482
|
//#region src/native/components/IconBadge.tsx
|
|
6462
|
-
var
|
|
6483
|
+
var Li = {
|
|
6463
6484
|
md: {
|
|
6464
6485
|
color: "",
|
|
6465
6486
|
size: 20
|
|
@@ -6472,14 +6493,14 @@ var Fi = {
|
|
|
6472
6493
|
color: "",
|
|
6473
6494
|
size: 38
|
|
6474
6495
|
}
|
|
6475
|
-
},
|
|
6496
|
+
}, Ri = {
|
|
6476
6497
|
md: 44,
|
|
6477
6498
|
ml: 48,
|
|
6478
6499
|
lg: 72
|
|
6479
6500
|
};
|
|
6480
|
-
function
|
|
6481
|
-
let { theme: a } = W(), o =
|
|
6482
|
-
...
|
|
6501
|
+
function zi({ size: e = "md", children: t, style: n, accessibilityLabel: r, ...i }) {
|
|
6502
|
+
let { theme: a } = W(), o = Ri[e], s = {
|
|
6503
|
+
...Li[e],
|
|
6483
6504
|
color: a.object["accent-primary"]
|
|
6484
6505
|
};
|
|
6485
6506
|
return /* @__PURE__ */ w(V, {
|
|
@@ -6501,7 +6522,7 @@ function Li({ size: e = "md", children: t, style: n, accessibilityLabel: r, ...i
|
|
|
6501
6522
|
}
|
|
6502
6523
|
//#endregion
|
|
6503
6524
|
//#region src/native/components/SectionHeader.tsx
|
|
6504
|
-
function
|
|
6525
|
+
function Bi({ title: e, description: t, action: n, variant: r = "default" }) {
|
|
6505
6526
|
let { theme: i, scales: a } = W();
|
|
6506
6527
|
return /* @__PURE__ */ T(V, {
|
|
6507
6528
|
style: {
|
|
@@ -6542,7 +6563,7 @@ function Ri({ title: e, description: t, action: n, variant: r = "default" }) {
|
|
|
6542
6563
|
}
|
|
6543
6564
|
//#endregion
|
|
6544
6565
|
//#region src/native/components/StickyActionBar.tsx
|
|
6545
|
-
function
|
|
6566
|
+
function Vi({ children: e }) {
|
|
6546
6567
|
let { theme: t, scales: n } = W();
|
|
6547
6568
|
return /* @__PURE__ */ w(V, {
|
|
6548
6569
|
style: {
|
|
@@ -6559,7 +6580,7 @@ function zi({ children: e }) {
|
|
|
6559
6580
|
}
|
|
6560
6581
|
//#endregion
|
|
6561
6582
|
//#region src/native/components/SwipeRow.tsx
|
|
6562
|
-
function
|
|
6583
|
+
function Hi({ rightActions: e = [], actionWidth: t = 80, children: n, accessibilityActions: r, onAccessibilityAction: i, accessible: a }) {
|
|
6563
6584
|
let { theme: o } = W(), [s] = S(() => new O.Value(0)), c = e.length * t, [l] = S(() => ne.create({
|
|
6564
6585
|
onMoveShouldSetPanResponder: (e, t) => Math.abs(t.dx) > 8,
|
|
6565
6586
|
onPanResponderMove: (e, t) => {
|
|
@@ -6628,7 +6649,7 @@ function Bi({ rightActions: e = [], actionWidth: t = 80, children: n, accessibil
|
|
|
6628
6649
|
}
|
|
6629
6650
|
//#endregion
|
|
6630
6651
|
//#region src/native/components/Footer.tsx
|
|
6631
|
-
function
|
|
6652
|
+
function Ui({ copyright: e, links: t = [] }) {
|
|
6632
6653
|
let { theme: n, scales: r } = W();
|
|
6633
6654
|
return /* @__PURE__ */ T(V, {
|
|
6634
6655
|
style: {
|
|
@@ -6657,7 +6678,7 @@ function Vi({ copyright: e, links: t = [] }) {
|
|
|
6657
6678
|
}
|
|
6658
6679
|
//#endregion
|
|
6659
6680
|
//#region src/native/components/FileUpload.tsx
|
|
6660
|
-
function
|
|
6681
|
+
function Wi({ title: e = "ファイルを選択", description: t = "タップしてアップロード", onPress: n, disabled: r = !1 }) {
|
|
6661
6682
|
let { theme: i, scales: a } = W();
|
|
6662
6683
|
return /* @__PURE__ */ T(L, {
|
|
6663
6684
|
onPress: n,
|
|
@@ -6695,18 +6716,18 @@ function Hi({ title: e = "ファイルを選択", description: t = "タップし
|
|
|
6695
6716
|
}
|
|
6696
6717
|
//#endregion
|
|
6697
6718
|
//#region src/native/components/Screen.tsx
|
|
6698
|
-
function
|
|
6719
|
+
function Gi(e, t) {
|
|
6699
6720
|
if (e !== "none") return {
|
|
6700
6721
|
paddingHorizontal: t.scale[6],
|
|
6701
6722
|
paddingVertical: t.scale[6]
|
|
6702
6723
|
};
|
|
6703
6724
|
}
|
|
6704
|
-
function
|
|
6725
|
+
function Ki({ children: e, footer: t, header: n, scroll: r = !0, padding: i = "page", style: a, bodyStyle: o, headerStyle: s, footerStyle: c, contentContainerStyle: l }) {
|
|
6705
6726
|
let { theme: u, scales: d } = W(), f = [{
|
|
6706
6727
|
flex: 1,
|
|
6707
6728
|
minHeight: 0,
|
|
6708
6729
|
backgroundColor: u.surface.primary
|
|
6709
|
-
}, o], p = [
|
|
6730
|
+
}, o], p = [Gi(i, d.spacing), l];
|
|
6710
6731
|
return /* @__PURE__ */ T(V, {
|
|
6711
6732
|
style: [{
|
|
6712
6733
|
flex: 1,
|
|
@@ -6727,7 +6748,7 @@ function Wi({ children: e, footer: t, header: n, scroll: r = !0, padding: i = "p
|
|
|
6727
6748
|
}) : /* @__PURE__ */ w(V, {
|
|
6728
6749
|
style: [
|
|
6729
6750
|
f,
|
|
6730
|
-
|
|
6751
|
+
Gi(i, d.spacing),
|
|
6731
6752
|
l
|
|
6732
6753
|
],
|
|
6733
6754
|
children: e
|
|
@@ -6747,7 +6768,7 @@ function Wi({ children: e, footer: t, header: n, scroll: r = !0, padding: i = "p
|
|
|
6747
6768
|
}
|
|
6748
6769
|
//#endregion
|
|
6749
6770
|
//#region src/native/components/Prose.tsx
|
|
6750
|
-
function
|
|
6771
|
+
function qi({ sections: e }) {
|
|
6751
6772
|
let { theme: t, scales: n } = W();
|
|
6752
6773
|
return /* @__PURE__ */ w(V, {
|
|
6753
6774
|
style: { gap: n.spacing.scale[6] },
|
|
@@ -6765,10 +6786,10 @@ function Gi({ sections: e }) {
|
|
|
6765
6786
|
}
|
|
6766
6787
|
//#endregion
|
|
6767
6788
|
//#region src/native/components/DocumentScreen.tsx
|
|
6768
|
-
function
|
|
6789
|
+
function Ji({ title: e, lastUpdated: t, onBack: n, children: r }) {
|
|
6769
6790
|
let { theme: i, scales: a } = W();
|
|
6770
|
-
return /* @__PURE__ */ T(
|
|
6771
|
-
header: n ? /* @__PURE__ */ w(
|
|
6791
|
+
return /* @__PURE__ */ T(Ki, {
|
|
6792
|
+
header: n ? /* @__PURE__ */ w(pi, {
|
|
6772
6793
|
onBack: n,
|
|
6773
6794
|
centered: !1
|
|
6774
6795
|
}) : void 0,
|
|
@@ -6789,16 +6810,16 @@ function Ki({ title: e, lastUpdated: t, onBack: n, children: r }) {
|
|
|
6789
6810
|
}
|
|
6790
6811
|
//#endregion
|
|
6791
6812
|
//#region src/native/components/PhotoHero.tsx
|
|
6792
|
-
function
|
|
6813
|
+
function Yi(e) {
|
|
6793
6814
|
return typeof e == "string" ? { uri: e } : e;
|
|
6794
6815
|
}
|
|
6795
|
-
function
|
|
6816
|
+
function Xi(e, t) {
|
|
6796
6817
|
return e === "none" ? "transparent" : e === "dark" ? t.surface["videoOverlay-strong"] : t.surface["videoOverlay-medium"];
|
|
6797
6818
|
}
|
|
6798
|
-
function
|
|
6819
|
+
function Zi({ src: e, alt: t = "", overlay: n = "medium", align: r = "bottom", children: i, style: a, imageStyle: o, contentStyle: s }) {
|
|
6799
6820
|
let { theme: c, scales: l } = W(), u = r === "center" ? "center" : "flex-end";
|
|
6800
6821
|
return /* @__PURE__ */ T(N, {
|
|
6801
|
-
source:
|
|
6822
|
+
source: Yi(e),
|
|
6802
6823
|
accessibilityIgnoresInvertColors: !0,
|
|
6803
6824
|
accessibilityLabel: t || void 0,
|
|
6804
6825
|
style: [{
|
|
@@ -6817,7 +6838,7 @@ function Yi({ src: e, alt: t = "", overlay: n = "medium", align: r = "bottom", c
|
|
|
6817
6838
|
right: 0,
|
|
6818
6839
|
bottom: 0,
|
|
6819
6840
|
left: 0,
|
|
6820
|
-
backgroundColor:
|
|
6841
|
+
backgroundColor: Xi(n, c)
|
|
6821
6842
|
}
|
|
6822
6843
|
}), /* @__PURE__ */ w(V, {
|
|
6823
6844
|
style: [{
|
|
@@ -6834,7 +6855,7 @@ function Yi({ src: e, alt: t = "", overlay: n = "medium", align: r = "bottom", c
|
|
|
6834
6855
|
})]
|
|
6835
6856
|
});
|
|
6836
6857
|
}
|
|
6837
|
-
function
|
|
6858
|
+
function Qi({ children: e, style: t, numberOfLines: n }) {
|
|
6838
6859
|
let { theme: r } = W();
|
|
6839
6860
|
return /* @__PURE__ */ w(z, {
|
|
6840
6861
|
numberOfLines: n,
|
|
@@ -6846,7 +6867,7 @@ function Xi({ children: e, style: t, numberOfLines: n }) {
|
|
|
6846
6867
|
children: e
|
|
6847
6868
|
});
|
|
6848
6869
|
}
|
|
6849
|
-
function
|
|
6870
|
+
function $i({ children: e, style: t, numberOfLines: n }) {
|
|
6850
6871
|
let { theme: r } = W();
|
|
6851
6872
|
return /* @__PURE__ */ w(z, {
|
|
6852
6873
|
numberOfLines: n,
|
|
@@ -6858,7 +6879,7 @@ function Zi({ children: e, style: t, numberOfLines: n }) {
|
|
|
6858
6879
|
children: e
|
|
6859
6880
|
});
|
|
6860
6881
|
}
|
|
6861
|
-
function
|
|
6882
|
+
function ea({ children: e, style: t, numberOfLines: n }) {
|
|
6862
6883
|
let { theme: r } = W();
|
|
6863
6884
|
return /* @__PURE__ */ w(z, {
|
|
6864
6885
|
numberOfLines: n,
|
|
@@ -6870,7 +6891,7 @@ function Qi({ children: e, style: t, numberOfLines: n }) {
|
|
|
6870
6891
|
children: e
|
|
6871
6892
|
});
|
|
6872
6893
|
}
|
|
6873
|
-
function
|
|
6894
|
+
function ta({ children: e, style: t }) {
|
|
6874
6895
|
let { scales: n } = W();
|
|
6875
6896
|
return /* @__PURE__ */ w(V, {
|
|
6876
6897
|
style: [{
|
|
@@ -6880,12 +6901,12 @@ function $i({ children: e, style: t }) {
|
|
|
6880
6901
|
children: e
|
|
6881
6902
|
});
|
|
6882
6903
|
}
|
|
6883
|
-
var
|
|
6884
|
-
Eyebrow:
|
|
6885
|
-
Title:
|
|
6886
|
-
Body:
|
|
6887
|
-
Actions:
|
|
6888
|
-
}),
|
|
6904
|
+
var na = Object.assign(Zi, {
|
|
6905
|
+
Eyebrow: Qi,
|
|
6906
|
+
Title: $i,
|
|
6907
|
+
Body: ea,
|
|
6908
|
+
Actions: ta
|
|
6909
|
+
}), ra = {
|
|
6889
6910
|
"top-left": {
|
|
6890
6911
|
top: 16,
|
|
6891
6912
|
left: 16
|
|
@@ -6913,10 +6934,10 @@ var ea = Object.assign(Yi, {
|
|
|
6913
6934
|
transform: [{ translateY: -48 }]
|
|
6914
6935
|
}
|
|
6915
6936
|
};
|
|
6916
|
-
function
|
|
6937
|
+
function ia(e) {
|
|
6917
6938
|
return typeof e == "number" && e > 99 ? "99+" : e;
|
|
6918
6939
|
}
|
|
6919
|
-
function
|
|
6940
|
+
function aa(e, t) {
|
|
6920
6941
|
let n = e === "horizontal" ? "row" : "column";
|
|
6921
6942
|
return t === "side" ? {
|
|
6922
6943
|
clusterDirection: n,
|
|
@@ -6929,7 +6950,7 @@ function ra(e, t) {
|
|
|
6929
6950
|
itemDirection: e === "horizontal" ? "row" : "column"
|
|
6930
6951
|
};
|
|
6931
6952
|
}
|
|
6932
|
-
function
|
|
6953
|
+
function oa({ items: e, orientation: t = "vertical", anchor: n = "bottom-right", position: r = "absolute", labelPosition: i = "auto", autoHideMs: a = 5e3, defaultVisible: o = !0, onVisibleChange: s, accessibilityLabel: c = "メディアアクション", style: l }) {
|
|
6933
6954
|
let { scales: u } = W(), d = a != null && a > 0, [f, p] = m.useState({
|
|
6934
6955
|
autoHideEnabled: d,
|
|
6935
6956
|
value: o
|
|
@@ -6938,7 +6959,7 @@ function ia({ items: e, orientation: t = "vertical", anchor: n = "bottom-right",
|
|
|
6938
6959
|
autoHideEnabled: d,
|
|
6939
6960
|
value: !0
|
|
6940
6961
|
});
|
|
6941
|
-
let h = d ? f.value : !0, g = m.useRef(null), { clusterDirection: _, itemDirection: v } =
|
|
6962
|
+
let h = d ? f.value : !0, g = m.useRef(null), { clusterDirection: _, itemDirection: v } = aa(t, i), y = m.useCallback(() => {
|
|
6942
6963
|
g.current && clearTimeout(g.current), g.current = null;
|
|
6943
6964
|
}, []), b = m.useCallback((e) => {
|
|
6944
6965
|
p((t) => ((t.autoHideEnabled ? t.value : !0) !== e && s?.(e), {
|
|
@@ -6972,7 +6993,7 @@ function ia({ items: e, orientation: t = "vertical", anchor: n = "bottom-right",
|
|
|
6972
6993
|
r === "relative" ? void 0 : {
|
|
6973
6994
|
position: "absolute",
|
|
6974
6995
|
zIndex: 40,
|
|
6975
|
-
...
|
|
6996
|
+
...ra[n]
|
|
6976
6997
|
},
|
|
6977
6998
|
{
|
|
6978
6999
|
flexDirection: _,
|
|
@@ -6982,14 +7003,14 @@ function ia({ items: e, orientation: t = "vertical", anchor: n = "bottom-right",
|
|
|
6982
7003
|
},
|
|
6983
7004
|
l
|
|
6984
7005
|
],
|
|
6985
|
-
children: e.map((e, t) => /* @__PURE__ */ w(
|
|
7006
|
+
children: e.map((e, t) => /* @__PURE__ */ w(sa, {
|
|
6986
7007
|
item: e,
|
|
6987
7008
|
itemDirection: v,
|
|
6988
7009
|
onReveal: S
|
|
6989
7010
|
}, e.id ?? `${e.label}-${t}`))
|
|
6990
7011
|
});
|
|
6991
7012
|
}
|
|
6992
|
-
function
|
|
7013
|
+
function sa({ item: e, itemDirection: t, onReveal: n }) {
|
|
6993
7014
|
let { theme: r, scales: i } = W();
|
|
6994
7015
|
return /* @__PURE__ */ T(L, {
|
|
6995
7016
|
disabled: e.disabled,
|
|
@@ -7012,7 +7033,7 @@ function aa({ item: e, itemDirection: t, onReveal: n }) {
|
|
|
7012
7033
|
opacity: e.disabled ? .5 : 1,
|
|
7013
7034
|
transform: [{ scale: n && !e.disabled ? .96 : 1 }]
|
|
7014
7035
|
}),
|
|
7015
|
-
children: [/* @__PURE__ */ T(
|
|
7036
|
+
children: [/* @__PURE__ */ T(X, {
|
|
7016
7037
|
tint: "dark",
|
|
7017
7038
|
intensity: "regular",
|
|
7018
7039
|
borderRadius: i.borderRadius.full,
|
|
@@ -7039,7 +7060,7 @@ function aa({ item: e, itemDirection: t, onReveal: n }) {
|
|
|
7039
7060
|
},
|
|
7040
7061
|
children: /* @__PURE__ */ w(z, {
|
|
7041
7062
|
style: [q("label.xs"), { color: r.text["on-media"] }],
|
|
7042
|
-
children:
|
|
7063
|
+
children: ia(e.badge)
|
|
7043
7064
|
})
|
|
7044
7065
|
})]
|
|
7045
7066
|
}), /* @__PURE__ */ w(z, {
|
|
@@ -7055,7 +7076,7 @@ function aa({ item: e, itemDirection: t, onReveal: n }) {
|
|
|
7055
7076
|
}
|
|
7056
7077
|
//#endregion
|
|
7057
7078
|
//#region src/native/components/CompactFilePicker.tsx
|
|
7058
|
-
function
|
|
7079
|
+
function ca({ label: e = "ファイル", description: t, triggerLabel: n = "選択する", loadingLabel: r, icon: i, loading: a = !1, disabled: o = !1, onPress: s, style: c }) {
|
|
7059
7080
|
let { theme: l, scales: u } = W(), d = o || a;
|
|
7060
7081
|
return /* @__PURE__ */ T(L, {
|
|
7061
7082
|
disabled: d,
|
|
@@ -7104,7 +7125,7 @@ function oa({ label: e = "ファイル", description: t, triggerLabel: n = "選
|
|
|
7104
7125
|
children: t
|
|
7105
7126
|
}) : t)]
|
|
7106
7127
|
}),
|
|
7107
|
-
/* @__PURE__ */ w(
|
|
7128
|
+
/* @__PURE__ */ w(Z, {
|
|
7108
7129
|
variant: "secondary",
|
|
7109
7130
|
disabled: d,
|
|
7110
7131
|
loading: a,
|
|
@@ -7115,11 +7136,11 @@ function oa({ label: e = "ファイル", description: t, triggerLabel: n = "選
|
|
|
7115
7136
|
]
|
|
7116
7137
|
});
|
|
7117
7138
|
}
|
|
7118
|
-
function
|
|
7139
|
+
function la({ images: e = [], onRemove: t, removeLabel: n = (e) => `${e.name ?? "画像"}を削除`, previewVariant: r = "grid", label: i = "画像", description: a = "JPG / PNG / WebP", triggerLabel: o = "画像を追加", ...s }) {
|
|
7119
7140
|
let { theme: c, scales: l } = W();
|
|
7120
7141
|
return /* @__PURE__ */ T(V, {
|
|
7121
7142
|
style: { gap: l.spacing.scale[3] },
|
|
7122
|
-
children: [/* @__PURE__ */ w(
|
|
7143
|
+
children: [/* @__PURE__ */ w(ca, {
|
|
7123
7144
|
...s,
|
|
7124
7145
|
label: i,
|
|
7125
7146
|
description: a,
|
|
@@ -7161,7 +7182,7 @@ function sa({ images: e = [], onRemove: t, removeLabel: n = (e) => `${e.name ??
|
|
|
7161
7182
|
}],
|
|
7162
7183
|
children: e.name ?? e.alt ?? "画像"
|
|
7163
7184
|
}),
|
|
7164
|
-
t && /* @__PURE__ */ w(
|
|
7185
|
+
t && /* @__PURE__ */ w(Z, {
|
|
7165
7186
|
variant: "tertiary",
|
|
7166
7187
|
disabled: s.disabled,
|
|
7167
7188
|
accessibilityLabel: n(e),
|
|
@@ -7175,7 +7196,7 @@ function sa({ images: e = [], onRemove: t, removeLabel: n = (e) => `${e.name ??
|
|
|
7175
7196
|
}
|
|
7176
7197
|
//#endregion
|
|
7177
7198
|
//#region src/native/components/SemanticIcon.tsx
|
|
7178
|
-
function
|
|
7199
|
+
function ua({ name: e, size: t = 24, color: n, accessibilityLabel: r, style: i }) {
|
|
7179
7200
|
let { theme: a } = W(), o = n ?? a.text["high-emphasis"], s = e === "selected" || e === "selectedSquare" || e === "success", c = e !== "selected" && e !== "close", l = e === "selectedSquare", u = Math.max(e === "selected" ? 2 : 1.5, t / 12);
|
|
7180
7201
|
return /* @__PURE__ */ T(V, {
|
|
7181
7202
|
accessible: !!r,
|
|
@@ -7238,19 +7259,19 @@ function ca({ name: e, size: t = 24, color: n, accessibilityLabel: r, style: i }
|
|
|
7238
7259
|
}
|
|
7239
7260
|
//#endregion
|
|
7240
7261
|
//#region src/native/components/QuickActionGrid.tsx
|
|
7241
|
-
var
|
|
7242
|
-
function
|
|
7262
|
+
var da = m.createContext(null);
|
|
7263
|
+
function fa() {
|
|
7243
7264
|
let e = globalThis.process;
|
|
7244
7265
|
return !!e && e.env?.NODE_ENV !== "production";
|
|
7245
7266
|
}
|
|
7246
|
-
function
|
|
7247
|
-
return /* @__PURE__ */ w(
|
|
7267
|
+
function pa({ color: e, size: t = 16 }) {
|
|
7268
|
+
return /* @__PURE__ */ w(ua, {
|
|
7248
7269
|
name: "selected",
|
|
7249
7270
|
color: e,
|
|
7250
7271
|
size: t
|
|
7251
7272
|
});
|
|
7252
7273
|
}
|
|
7253
|
-
function
|
|
7274
|
+
function ma(e, t) {
|
|
7254
7275
|
switch (e) {
|
|
7255
7276
|
case "selected": return {
|
|
7256
7277
|
borderColor: t.brand.primary,
|
|
@@ -7274,8 +7295,8 @@ function fa(e, t) {
|
|
|
7274
7295
|
};
|
|
7275
7296
|
}
|
|
7276
7297
|
}
|
|
7277
|
-
function
|
|
7278
|
-
let _ = m.useContext(
|
|
7298
|
+
function ha({ icon: e, emoji: t, label: n, description: r, meta: i, indicator: a, selected: o = !1, loading: s = !1, disabled: c = !1, variant: l = o ? "selected" : "neutral", selectionMode: u, onPress: d, style: f, accessibilityRole: p, accessibilityState: h, ...g }) {
|
|
7299
|
+
let _ = m.useContext(da), v = (u ?? _) === "single", { theme: y, scales: b } = W(), x = c || s, S = o || l === "selected", C = a != null && a !== !1, E = !!(r || i), D = ma(l, y);
|
|
7279
7300
|
return /* @__PURE__ */ T(L, {
|
|
7280
7301
|
onPress: d,
|
|
7281
7302
|
disabled: x,
|
|
@@ -7335,7 +7356,7 @@ function pa({ icon: e, emoji: t, label: n, description: r, meta: i, indicator: a
|
|
|
7335
7356
|
}), s ? /* @__PURE__ */ w(qe, { size: "sm" }) : C ? typeof a == "string" || typeof a == "number" ? /* @__PURE__ */ w(z, {
|
|
7336
7357
|
style: [q("label.md"), { color: y.text["high-emphasis"] }],
|
|
7337
7358
|
children: a
|
|
7338
|
-
}) : a : S ? /* @__PURE__ */ w(
|
|
7359
|
+
}) : a : S ? /* @__PURE__ */ w(pa, { color: y.text["accent-primary"] }) : null]
|
|
7339
7360
|
}), E && /* @__PURE__ */ T(V, {
|
|
7340
7361
|
style: {
|
|
7341
7362
|
flexDirection: "row",
|
|
@@ -7362,8 +7383,8 @@ function pa({ icon: e, emoji: t, label: n, description: r, meta: i, indicator: a
|
|
|
7362
7383
|
})]
|
|
7363
7384
|
});
|
|
7364
7385
|
}
|
|
7365
|
-
function
|
|
7366
|
-
if (
|
|
7386
|
+
function ga({ columns: e = 3, gap: t = 12, selectionMode: n, children: r, style: i }) {
|
|
7387
|
+
if (fa() && n === "single") {
|
|
7367
7388
|
let e = m.Children.toArray(r).filter((e) => m.isValidElement(e) ? e.props.selected === !0 || e.props.variant === "selected" : !1).length;
|
|
7368
7389
|
e > 1 && console.warn(`[ksk-ds] QuickActionGrid: selectionMode="single" は排他選択ですが、選択中の ActionTile が ${e} 個あります。selected を 1 つに絞るか selectionMode="multiple" を使ってください。`);
|
|
7369
7390
|
}
|
|
@@ -7382,20 +7403,20 @@ function ma({ columns: e = 3, gap: t = 12, selectionMode: n, children: r, style:
|
|
|
7382
7403
|
children: n
|
|
7383
7404
|
}))
|
|
7384
7405
|
});
|
|
7385
|
-
return /* @__PURE__ */ w(
|
|
7406
|
+
return /* @__PURE__ */ w(da.Provider, {
|
|
7386
7407
|
value: n ?? null,
|
|
7387
7408
|
children: a
|
|
7388
7409
|
});
|
|
7389
7410
|
}
|
|
7390
7411
|
//#endregion
|
|
7391
7412
|
//#region src/native/components/ChipSelector.tsx
|
|
7392
|
-
function
|
|
7413
|
+
function _a() {
|
|
7393
7414
|
let e = globalThis.process;
|
|
7394
7415
|
return !!e && e.env?.NODE_ENV !== "production";
|
|
7395
7416
|
}
|
|
7396
|
-
function
|
|
7417
|
+
function va({ options: e, values: t = [], onChange: n, multiple: r = !0, selectionMode: i }) {
|
|
7397
7418
|
let { scales: a } = W(), o = i ? i === "multiple" : r, s = !o;
|
|
7398
|
-
|
|
7419
|
+
_a() && s && t.length > 1 && console.warn(`[ksk-ds] ChipSelector: selectionMode="single" は排他選択ですが、選択中の値が ${t.length} 個あります。values を 1 つに絞るか selectionMode="multiple" を使ってください。`);
|
|
7399
7420
|
let c = (e) => {
|
|
7400
7421
|
o ? n?.(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]) : n?.(t.includes(e) ? [] : [e]);
|
|
7401
7422
|
};
|
|
@@ -7425,8 +7446,8 @@ function ga({ options: e, values: t = [], onChange: n, multiple: r = !0, selecti
|
|
|
7425
7446
|
}
|
|
7426
7447
|
//#endregion
|
|
7427
7448
|
//#region src/native/components/CollapsibleChipField.tsx
|
|
7428
|
-
var
|
|
7429
|
-
function
|
|
7449
|
+
var ya = 80, ba = 36;
|
|
7450
|
+
function xa({ icon: e, label: t, options: n, selected: r, onSelect: i, onClear: a, getLabel: o, getIcon: s, alwaysExpanded: c = !1, ariaLabel: l }) {
|
|
7430
7451
|
let { theme: u, scales: d } = W(), f = r != null && r !== "", [p, h] = m.useState({
|
|
7431
7452
|
selected: r,
|
|
7432
7453
|
forced: !1
|
|
@@ -7438,15 +7459,15 @@ function ya({ icon: e, label: t, options: n, selected: r, onSelect: i, onClear:
|
|
|
7438
7459
|
let g = p.selected === r && p.forced, _ = f && n.includes(r), v = c || !_ || g, y = v ? n : n.filter((e) => e === r), b = !c && _, x = l ?? t, S = t ? /* @__PURE__ */ w(z, {
|
|
7439
7460
|
style: [q("label.sm"), {
|
|
7440
7461
|
color: u.text["medium-emphasis"],
|
|
7441
|
-
width:
|
|
7442
|
-
lineHeight:
|
|
7462
|
+
width: ya,
|
|
7463
|
+
lineHeight: ba
|
|
7443
7464
|
}],
|
|
7444
7465
|
numberOfLines: 1,
|
|
7445
7466
|
children: t
|
|
7446
7467
|
}) : /* @__PURE__ */ w(V, {
|
|
7447
7468
|
style: {
|
|
7448
7469
|
width: 24,
|
|
7449
|
-
height:
|
|
7470
|
+
height: ba,
|
|
7450
7471
|
alignItems: "center",
|
|
7451
7472
|
justifyContent: "center"
|
|
7452
7473
|
},
|
|
@@ -7465,7 +7486,7 @@ function ya({ icon: e, label: t, options: n, selected: r, onSelect: i, onClear:
|
|
|
7465
7486
|
flexDirection: "row",
|
|
7466
7487
|
flexWrap: "wrap",
|
|
7467
7488
|
gap: d.spacing.scale[2],
|
|
7468
|
-
minHeight:
|
|
7489
|
+
minHeight: ba,
|
|
7469
7490
|
alignItems: "center"
|
|
7470
7491
|
},
|
|
7471
7492
|
accessibilityRole: v ? "radiogroup" : void 0,
|
|
@@ -7498,8 +7519,8 @@ function ya({ icon: e, label: t, options: n, selected: r, onSelect: i, onClear:
|
|
|
7498
7519
|
}
|
|
7499
7520
|
//#endregion
|
|
7500
7521
|
//#region src/native/components/ChipFilterBar.tsx
|
|
7501
|
-
var
|
|
7502
|
-
function
|
|
7522
|
+
var Sa = (e) => `${e.toLocaleString()}件`;
|
|
7523
|
+
function Ca({ children: e, resultCount: t, resultCountLabel: n = Sa }) {
|
|
7503
7524
|
let { theme: r, scales: i } = W();
|
|
7504
7525
|
return /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(R, {
|
|
7505
7526
|
horizontal: !0,
|
|
@@ -7516,7 +7537,7 @@ function xa({ children: e, resultCount: t, resultCountLabel: n = ba }) {
|
|
|
7516
7537
|
}
|
|
7517
7538
|
//#endregion
|
|
7518
7539
|
//#region src/native/components/CategoryNav.tsx
|
|
7519
|
-
function
|
|
7540
|
+
function wa({ items: e, value: t, onChange: n }) {
|
|
7520
7541
|
let { theme: r, scales: i } = W();
|
|
7521
7542
|
return /* @__PURE__ */ w(R, {
|
|
7522
7543
|
horizontal: !0,
|
|
@@ -7556,7 +7577,7 @@ function Sa({ items: e, value: t, onChange: n }) {
|
|
|
7556
7577
|
}
|
|
7557
7578
|
//#endregion
|
|
7558
7579
|
//#region src/native/components/CategoryScroll.tsx
|
|
7559
|
-
function
|
|
7580
|
+
function Ta({ items: e, value: t, onChange: n }) {
|
|
7560
7581
|
let { theme: r, scales: i } = W();
|
|
7561
7582
|
return /* @__PURE__ */ w(R, {
|
|
7562
7583
|
horizontal: !0,
|
|
@@ -7604,7 +7625,7 @@ function Ca({ items: e, value: t, onChange: n }) {
|
|
|
7604
7625
|
}
|
|
7605
7626
|
//#endregion
|
|
7606
7627
|
//#region src/native/components/ProgressSteps.tsx
|
|
7607
|
-
function
|
|
7628
|
+
function Ea({ steps: e, current: t }) {
|
|
7608
7629
|
let { theme: n } = W();
|
|
7609
7630
|
return /* @__PURE__ */ w(V, {
|
|
7610
7631
|
style: {
|
|
@@ -7656,7 +7677,7 @@ function wa({ steps: e, current: t }) {
|
|
|
7656
7677
|
}
|
|
7657
7678
|
//#endregion
|
|
7658
7679
|
//#region src/native/components/TagInput.tsx
|
|
7659
|
-
function
|
|
7680
|
+
function Da({ value: e = [], onChange: t, placeholder: n = "タグを入力して Enter", maxTags: r = 10 }) {
|
|
7660
7681
|
let { theme: i, scales: a } = W(), [o, s] = S(""), c = x(null), l = x(!1);
|
|
7661
7682
|
nn(c, g(() => {
|
|
7662
7683
|
l.current = !0;
|
|
@@ -7730,7 +7751,7 @@ function Ta({ value: e = [], onChange: t, placeholder: n = "タグを入力し
|
|
|
7730
7751
|
}
|
|
7731
7752
|
//#endregion
|
|
7732
7753
|
//#region src/native/components/ShareButtons.tsx
|
|
7733
|
-
function
|
|
7754
|
+
function Oa({ message: e, url: t, title: n, extra: r = [] }) {
|
|
7734
7755
|
let { theme: i, scales: a } = W(), o = [{
|
|
7735
7756
|
label: "共有",
|
|
7736
7757
|
onPress: async () => {
|
|
@@ -7769,7 +7790,7 @@ function Ea({ message: e, url: t, title: n, extra: r = [] }) {
|
|
|
7769
7790
|
}
|
|
7770
7791
|
//#endregion
|
|
7771
7792
|
//#region src/native/components/FilterChip.tsx
|
|
7772
|
-
function
|
|
7793
|
+
function ka(e) {
|
|
7773
7794
|
return /* @__PURE__ */ w(Ge, {
|
|
7774
7795
|
...e,
|
|
7775
7796
|
shape: "pill",
|
|
@@ -7778,11 +7799,11 @@ function Da(e) {
|
|
|
7778
7799
|
}
|
|
7779
7800
|
//#endregion
|
|
7780
7801
|
//#region src/native/components/PresenceIndicator.tsx
|
|
7781
|
-
function
|
|
7802
|
+
function Aa(e) {
|
|
7782
7803
|
let t = e.trim();
|
|
7783
7804
|
return t ? t.slice(0, 1).toUpperCase() : "?";
|
|
7784
7805
|
}
|
|
7785
|
-
function
|
|
7806
|
+
function ja({ name: e, statusText: t, badgeLabel: n, online: r = !0 }) {
|
|
7786
7807
|
let { theme: i, scales: a } = W();
|
|
7787
7808
|
return /* @__PURE__ */ T(V, {
|
|
7788
7809
|
accessibilityRole: "text",
|
|
@@ -7800,7 +7821,7 @@ function ka({ name: e, statusText: t, badgeLabel: n, online: r = !0 }) {
|
|
|
7800
7821
|
},
|
|
7801
7822
|
children: [
|
|
7802
7823
|
/* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(He, {
|
|
7803
|
-
fallback:
|
|
7824
|
+
fallback: Aa(e),
|
|
7804
7825
|
size: "sm"
|
|
7805
7826
|
}), /* @__PURE__ */ w(V, { style: {
|
|
7806
7827
|
position: "absolute",
|
|
@@ -7827,7 +7848,7 @@ function ka({ name: e, statusText: t, badgeLabel: n, online: r = !0 }) {
|
|
|
7827
7848
|
}
|
|
7828
7849
|
//#endregion
|
|
7829
7850
|
//#region src/native/components/ImageGallery.tsx
|
|
7830
|
-
function
|
|
7851
|
+
function Ma({ images: e, initialIndex: t = 0, thumbnailSize: n = 80 }) {
|
|
7831
7852
|
let { theme: r, scales: i } = W(), [a, o] = S({
|
|
7832
7853
|
open: !1,
|
|
7833
7854
|
index: t
|
|
@@ -7942,7 +7963,7 @@ function Aa({ images: e, initialIndex: t = 0, thumbnailSize: n = 80 }) {
|
|
|
7942
7963
|
}
|
|
7943
7964
|
//#endregion
|
|
7944
7965
|
//#region src/native/components/SocialLoginButton.tsx
|
|
7945
|
-
var
|
|
7966
|
+
var Na = {
|
|
7946
7967
|
google: "Google でログイン",
|
|
7947
7968
|
apple: "Apple でログイン",
|
|
7948
7969
|
line: "LINE でログイン",
|
|
@@ -7950,7 +7971,7 @@ var ja = {
|
|
|
7950
7971
|
github: "GitHub でログイン",
|
|
7951
7972
|
x: "X でログイン"
|
|
7952
7973
|
};
|
|
7953
|
-
function
|
|
7974
|
+
function Pa({ provider: e, label: t, onPress: n, disabled: r = !1 }) {
|
|
7954
7975
|
let { theme: i, scales: a } = W(), o = a.brandExternal, s = {
|
|
7955
7976
|
google: {
|
|
7956
7977
|
bg: i.surface.primary,
|
|
@@ -8005,14 +8026,14 @@ function Ma({ provider: e, label: t, onPress: n, disabled: r = !1 }) {
|
|
|
8005
8026
|
},
|
|
8006
8027
|
children: /* @__PURE__ */ w(z, {
|
|
8007
8028
|
style: [q("label.md"), { color: s.fg }],
|
|
8008
|
-
children: t ??
|
|
8029
|
+
children: t ?? Na[e]
|
|
8009
8030
|
})
|
|
8010
8031
|
})
|
|
8011
8032
|
});
|
|
8012
8033
|
}
|
|
8013
8034
|
//#endregion
|
|
8014
8035
|
//#region src/native/components/social-icon-data.ts
|
|
8015
|
-
var
|
|
8036
|
+
var Fa = {
|
|
8016
8037
|
x: {
|
|
8017
8038
|
color: "#000000",
|
|
8018
8039
|
letter: "X"
|
|
@@ -8040,8 +8061,8 @@ var Na = {
|
|
|
8040
8061
|
};
|
|
8041
8062
|
//#endregion
|
|
8042
8063
|
//#region src/native/components/SocialIcon.tsx
|
|
8043
|
-
function
|
|
8044
|
-
let { theme: n } = W(), r =
|
|
8064
|
+
function Ia({ brand: e, size: t = 24 }) {
|
|
8065
|
+
let { theme: n } = W(), r = Fa[e];
|
|
8045
8066
|
return /* @__PURE__ */ w(V, {
|
|
8046
8067
|
style: {
|
|
8047
8068
|
width: t,
|
|
@@ -8063,32 +8084,32 @@ function Pa({ brand: e, size: t = 24 }) {
|
|
|
8063
8084
|
}
|
|
8064
8085
|
//#endregion
|
|
8065
8086
|
//#region src/native/components/ListSkeletons.tsx
|
|
8066
|
-
function
|
|
8087
|
+
function La({ count: e = 3, variant: t = "row" }) {
|
|
8067
8088
|
let { scales: n } = W();
|
|
8068
8089
|
return /* @__PURE__ */ w(V, {
|
|
8069
8090
|
style: { gap: n.spacing.scale[3] },
|
|
8070
8091
|
children: Array.from({ length: e }).map((e, r) => t === "card" ? /* @__PURE__ */ T(V, {
|
|
8071
8092
|
style: { gap: n.spacing.scale[2] },
|
|
8072
8093
|
children: [
|
|
8073
|
-
/* @__PURE__ */ w(
|
|
8094
|
+
/* @__PURE__ */ w(Q, {
|
|
8074
8095
|
height: 140,
|
|
8075
8096
|
radius: n.borderRadius.lg
|
|
8076
8097
|
}),
|
|
8077
|
-
/* @__PURE__ */ w(
|
|
8098
|
+
/* @__PURE__ */ w(Q, {
|
|
8078
8099
|
height: 14,
|
|
8079
8100
|
width: "60%"
|
|
8080
8101
|
}),
|
|
8081
|
-
/* @__PURE__ */ w(
|
|
8102
|
+
/* @__PURE__ */ w(Q, {
|
|
8082
8103
|
height: 12,
|
|
8083
8104
|
width: "40%"
|
|
8084
8105
|
})
|
|
8085
8106
|
]
|
|
8086
8107
|
}, r) : t === "list" ? /* @__PURE__ */ T(V, {
|
|
8087
8108
|
style: { gap: 8 },
|
|
8088
|
-
children: [/* @__PURE__ */ w(
|
|
8109
|
+
children: [/* @__PURE__ */ w(Q, {
|
|
8089
8110
|
height: 14,
|
|
8090
8111
|
width: "80%"
|
|
8091
|
-
}), /* @__PURE__ */ w(
|
|
8112
|
+
}), /* @__PURE__ */ w(Q, {
|
|
8092
8113
|
height: 12,
|
|
8093
8114
|
width: "50%"
|
|
8094
8115
|
})]
|
|
@@ -8098,7 +8119,7 @@ function Fa({ count: e = 3, variant: t = "row" }) {
|
|
|
8098
8119
|
gap: n.spacing.scale[3],
|
|
8099
8120
|
alignItems: "center"
|
|
8100
8121
|
},
|
|
8101
|
-
children: [/* @__PURE__ */ w(
|
|
8122
|
+
children: [/* @__PURE__ */ w(Q, {
|
|
8102
8123
|
width: 48,
|
|
8103
8124
|
height: 48,
|
|
8104
8125
|
radius: 24
|
|
@@ -8107,10 +8128,10 @@ function Fa({ count: e = 3, variant: t = "row" }) {
|
|
|
8107
8128
|
flex: 1,
|
|
8108
8129
|
gap: 6
|
|
8109
8130
|
},
|
|
8110
|
-
children: [/* @__PURE__ */ w(
|
|
8131
|
+
children: [/* @__PURE__ */ w(Q, {
|
|
8111
8132
|
height: 14,
|
|
8112
8133
|
width: "70%"
|
|
8113
|
-
}), /* @__PURE__ */ w(
|
|
8134
|
+
}), /* @__PURE__ */ w(Q, {
|
|
8114
8135
|
height: 12,
|
|
8115
8136
|
width: "50%"
|
|
8116
8137
|
})]
|
|
@@ -8118,7 +8139,7 @@ function Fa({ count: e = 3, variant: t = "row" }) {
|
|
|
8118
8139
|
}, r))
|
|
8119
8140
|
});
|
|
8120
8141
|
}
|
|
8121
|
-
function
|
|
8142
|
+
function Ra({ rows: e = 5, hasFilter: t = !0, rowHeight: n = 56 }) {
|
|
8122
8143
|
let { scales: r } = W();
|
|
8123
8144
|
return /* @__PURE__ */ T(V, {
|
|
8124
8145
|
style: { gap: r.spacing.scale[2] },
|
|
@@ -8129,30 +8150,30 @@ function Ia({ rows: e = 5, hasFilter: t = !0, rowHeight: n = 56 }) {
|
|
|
8129
8150
|
marginBottom: r.spacing.scale[1]
|
|
8130
8151
|
},
|
|
8131
8152
|
children: [
|
|
8132
|
-
/* @__PURE__ */ w(
|
|
8153
|
+
/* @__PURE__ */ w(Q, {
|
|
8133
8154
|
width: 80,
|
|
8134
8155
|
height: 36,
|
|
8135
8156
|
radius: r.borderRadius.full
|
|
8136
8157
|
}),
|
|
8137
|
-
/* @__PURE__ */ w(
|
|
8158
|
+
/* @__PURE__ */ w(Q, {
|
|
8138
8159
|
width: 80,
|
|
8139
8160
|
height: 36,
|
|
8140
8161
|
radius: r.borderRadius.full
|
|
8141
8162
|
}),
|
|
8142
|
-
/* @__PURE__ */ w(
|
|
8163
|
+
/* @__PURE__ */ w(Q, {
|
|
8143
8164
|
width: 80,
|
|
8144
8165
|
height: 36,
|
|
8145
8166
|
radius: r.borderRadius.full
|
|
8146
8167
|
})
|
|
8147
8168
|
]
|
|
8148
|
-
}), Array.from({ length: e }).map((e, t) => /* @__PURE__ */ w(
|
|
8169
|
+
}), Array.from({ length: e }).map((e, t) => /* @__PURE__ */ w(Q, {
|
|
8149
8170
|
width: "100%",
|
|
8150
8171
|
height: n,
|
|
8151
8172
|
radius: r.borderRadius["2xl"]
|
|
8152
8173
|
}, t))]
|
|
8153
8174
|
});
|
|
8154
8175
|
}
|
|
8155
|
-
function
|
|
8176
|
+
function za({ rows: e = 3, columns: t = 2, cardHeight: n = 140 }) {
|
|
8156
8177
|
let { scales: r } = W(), i = Math.max(1, Math.min(t, 4)), a = Math.max(0, e) * i, o = r.spacing.scale[3];
|
|
8157
8178
|
return /* @__PURE__ */ w(V, {
|
|
8158
8179
|
style: {
|
|
@@ -8166,7 +8187,7 @@ function La({ rows: e = 3, columns: t = 2, cardHeight: n = 140 }) {
|
|
|
8166
8187
|
paddingHorizontal: o / 2,
|
|
8167
8188
|
marginBottom: o
|
|
8168
8189
|
},
|
|
8169
|
-
children: /* @__PURE__ */ w(
|
|
8190
|
+
children: /* @__PURE__ */ w(Q, {
|
|
8170
8191
|
width: "100%",
|
|
8171
8192
|
height: n,
|
|
8172
8193
|
radius: r.borderRadius["2xl"]
|
|
@@ -8176,7 +8197,7 @@ function La({ rows: e = 3, columns: t = 2, cardHeight: n = 140 }) {
|
|
|
8176
8197
|
}
|
|
8177
8198
|
//#endregion
|
|
8178
8199
|
//#region src/native/components/BottomTabBar.tsx
|
|
8179
|
-
function
|
|
8200
|
+
function Ba() {
|
|
8180
8201
|
let [e, t] = S(!1);
|
|
8181
8202
|
return v(() => {
|
|
8182
8203
|
let e = P.addListener("keyboardDidShow", () => t(!0)), n = P.addListener("keyboardDidHide", () => t(!1));
|
|
@@ -8185,16 +8206,16 @@ function Ra() {
|
|
|
8185
8206
|
};
|
|
8186
8207
|
}, []), e;
|
|
8187
8208
|
}
|
|
8188
|
-
function
|
|
8189
|
-
let r =
|
|
8209
|
+
function Va({ keyboardBehavior: e = "stay", keyboardLiftOffset: t = 160, ...n }) {
|
|
8210
|
+
let r = Ba();
|
|
8190
8211
|
return e === "hide" && r ? null : /* @__PURE__ */ w(V, {
|
|
8191
8212
|
style: e === "lift" && r ? { transform: [{ translateY: -t }] } : void 0,
|
|
8192
|
-
children: /* @__PURE__ */ w(
|
|
8213
|
+
children: /* @__PURE__ */ w(ui, { ...n })
|
|
8193
8214
|
});
|
|
8194
8215
|
}
|
|
8195
|
-
function
|
|
8196
|
-
let { theme: _, scales: v } = W(), y =
|
|
8197
|
-
if (i === "hide" && y ||
|
|
8216
|
+
function Ha({ state: e, descriptors: t, navigation: n, insets: r, keyboardBehavior: i = "hide", keyboardLiftOffset: a = 160, hiddenRouteNames: o = [], floating: s = !0, glass: c = !0, glassIntensity: l = "regular", glassTint: u = "system", showLabels: d = !0, iconSize: f = 24, style: p, contentStyle: m, itemStyle: h, labelStyle: g }) {
|
|
8217
|
+
let { theme: _, scales: v } = W(), y = Ba(), b = e.routes[e.index], x = b ? t[b.key]?.options : void 0, S = r?.bottom ?? 0;
|
|
8218
|
+
if (i === "hide" && y || Ga(x?.tabBarStyle)) return null;
|
|
8198
8219
|
let C = e.routes.filter((e) => {
|
|
8199
8220
|
let n = t[e.key]?.options;
|
|
8200
8221
|
return !o.includes(e.name) && n?.href !== null && n?.tabBarButton !== null;
|
|
@@ -8224,7 +8245,7 @@ function Ba({ state: e, descriptors: t, navigation: n, insets: r, keyboardBehavi
|
|
|
8224
8245
|
return /* @__PURE__ */ T(L, {
|
|
8225
8246
|
accessibilityRole: "button",
|
|
8226
8247
|
accessibilityState: { selected: a },
|
|
8227
|
-
accessibilityLabel: o.tabBarAccessibilityLabel ??
|
|
8248
|
+
accessibilityLabel: o.tabBarAccessibilityLabel ?? Wa(r, o),
|
|
8228
8249
|
testID: o.tabBarButtonTestID,
|
|
8229
8250
|
onPress: () => {
|
|
8230
8251
|
let e = n.emit?.({
|
|
@@ -8286,7 +8307,7 @@ function Ba({ state: e, descriptors: t, navigation: n, insets: r, keyboardBehavi
|
|
|
8286
8307
|
},
|
|
8287
8308
|
g
|
|
8288
8309
|
],
|
|
8289
|
-
children:
|
|
8310
|
+
children: Wa(r, o)
|
|
8290
8311
|
})]
|
|
8291
8312
|
}, r.key);
|
|
8292
8313
|
})
|
|
@@ -8294,7 +8315,7 @@ function Ba({ state: e, descriptors: t, navigation: n, insets: r, keyboardBehavi
|
|
|
8294
8315
|
return /* @__PURE__ */ w(V, {
|
|
8295
8316
|
pointerEvents: "box-none",
|
|
8296
8317
|
style: [D, p],
|
|
8297
|
-
children: c ? /* @__PURE__ */ w(
|
|
8318
|
+
children: c ? /* @__PURE__ */ w(X, {
|
|
8298
8319
|
intensity: l,
|
|
8299
8320
|
tint: u,
|
|
8300
8321
|
borderRadius: s ? v.borderRadius.full : v.borderRadius.none,
|
|
@@ -8311,23 +8332,23 @@ function Ba({ state: e, descriptors: t, navigation: n, insets: r, keyboardBehavi
|
|
|
8311
8332
|
})
|
|
8312
8333
|
});
|
|
8313
8334
|
}
|
|
8314
|
-
function
|
|
8335
|
+
function Ua(e = {}) {
|
|
8315
8336
|
return function(t) {
|
|
8316
|
-
return /* @__PURE__ */ w(
|
|
8337
|
+
return /* @__PURE__ */ w(Ha, {
|
|
8317
8338
|
...t,
|
|
8318
8339
|
...e
|
|
8319
8340
|
});
|
|
8320
8341
|
};
|
|
8321
8342
|
}
|
|
8322
|
-
function
|
|
8343
|
+
function Wa(e, t) {
|
|
8323
8344
|
return typeof t.tabBarLabel == "string" ? t.tabBarLabel : typeof t.title == "string" ? t.title : e.name;
|
|
8324
8345
|
}
|
|
8325
|
-
function
|
|
8326
|
-
return e ? Array.isArray(e) ? e.some(
|
|
8346
|
+
function Ga(e) {
|
|
8347
|
+
return e ? Array.isArray(e) ? e.some(Ga) : typeof e == "object" && "display" in e ? e.display === "none" : !1 : !1;
|
|
8327
8348
|
}
|
|
8328
8349
|
//#endregion
|
|
8329
8350
|
//#region src/native/components/FilterBar.tsx
|
|
8330
|
-
function
|
|
8351
|
+
function Ka({ filters: e, sortLabel: t = "並べ替え", onPressSort: n }) {
|
|
8331
8352
|
let { theme: r, scales: i } = W();
|
|
8332
8353
|
return /* @__PURE__ */ T(V, {
|
|
8333
8354
|
style: {
|
|
@@ -8387,7 +8408,7 @@ function Wa({ filters: e, sortLabel: t = "並べ替え", onPressSort: n }) {
|
|
|
8387
8408
|
}
|
|
8388
8409
|
//#endregion
|
|
8389
8410
|
//#region src/native/components/ImageCarousel.tsx
|
|
8390
|
-
function
|
|
8411
|
+
function qa({ images: e, height: t = 280, showCounter: n = !0, showDots: r = !0 }) {
|
|
8391
8412
|
let { theme: i, scales: a } = W(), [o, s] = S(0), c = k.get("window").width;
|
|
8392
8413
|
return /* @__PURE__ */ T(V, { children: [
|
|
8393
8414
|
/* @__PURE__ */ w(j, {
|
|
@@ -8457,10 +8478,10 @@ function Ga({ images: e, height: t = 280, showCounter: n = !0, showDots: r = !0
|
|
|
8457
8478
|
}
|
|
8458
8479
|
//#endregion
|
|
8459
8480
|
//#region src/native/components/PriceDisplay.tsx
|
|
8460
|
-
function
|
|
8481
|
+
function Ja(e, t = "¥") {
|
|
8461
8482
|
return `${t}${e.toLocaleString("ja-JP")}`;
|
|
8462
8483
|
}
|
|
8463
|
-
function
|
|
8484
|
+
function Ya({ price: e, originalPrice: t, currency: n = "¥", size: r = "md", showTax: i = !0 }) {
|
|
8464
8485
|
let { theme: a, scales: o } = W(), s = typeof t == "number" && t > e, c = s ? Math.round((1 - e / t) * 100) : 0, l = q(r === "lg" ? "heading.2xl" : r === "sm" ? "label.md" : "heading.lg");
|
|
8465
8486
|
return /* @__PURE__ */ T(V, {
|
|
8466
8487
|
style: { gap: 2 },
|
|
@@ -8481,7 +8502,7 @@ function qa({ price: e, originalPrice: t, currency: n = "¥", size: r = "md", sh
|
|
|
8481
8502
|
}),
|
|
8482
8503
|
/* @__PURE__ */ w(z, {
|
|
8483
8504
|
style: [l, { color: a.text["high-emphasis"] }],
|
|
8484
|
-
children:
|
|
8505
|
+
children: Ja(e, n)
|
|
8485
8506
|
}),
|
|
8486
8507
|
i && /* @__PURE__ */ w(z, {
|
|
8487
8508
|
style: [q("body.sm"), { color: a.text["low-emphasis"] }],
|
|
@@ -8493,13 +8514,13 @@ function qa({ price: e, originalPrice: t, currency: n = "¥", size: r = "md", sh
|
|
|
8493
8514
|
color: a.text["low-emphasis"],
|
|
8494
8515
|
textDecorationLine: "line-through"
|
|
8495
8516
|
}],
|
|
8496
|
-
children:
|
|
8517
|
+
children: Ja(t, n)
|
|
8497
8518
|
})]
|
|
8498
8519
|
});
|
|
8499
8520
|
}
|
|
8500
8521
|
//#endregion
|
|
8501
8522
|
//#region src/native/components/QuantitySelector.tsx
|
|
8502
|
-
function
|
|
8523
|
+
function Xa({ min: e = 1, ...t }) {
|
|
8503
8524
|
return /* @__PURE__ */ w(hn, {
|
|
8504
8525
|
min: e,
|
|
8505
8526
|
...t
|
|
@@ -8507,7 +8528,7 @@ function Ja({ min: e = 1, ...t }) {
|
|
|
8507
8528
|
}
|
|
8508
8529
|
//#endregion
|
|
8509
8530
|
//#region src/native/components/RatingDisplay.tsx
|
|
8510
|
-
function
|
|
8531
|
+
function Za({ rating: e, count: t, size: n = 12, layout: r = "row" }) {
|
|
8511
8532
|
let { theme: i, scales: a } = W();
|
|
8512
8533
|
return /* @__PURE__ */ T(V, {
|
|
8513
8534
|
style: {
|
|
@@ -8541,7 +8562,7 @@ function Ya({ rating: e, count: t, size: n = 12, layout: r = "row" }) {
|
|
|
8541
8562
|
}
|
|
8542
8563
|
//#endregion
|
|
8543
8564
|
//#region src/native/components/ProductCard.tsx
|
|
8544
|
-
function
|
|
8565
|
+
function Qa({ image: e, title: t, price: n, originalPrice: r, rating: i, reviewCount: a, badge: o, soldOut: s, onPress: c, layout: l = "vertical" }) {
|
|
8545
8566
|
let { theme: u, scales: d } = W(), f = l === "horizontal", p = f ? 96 : "100%", m = f ? 96 : 160, h = (c = !1) => /* @__PURE__ */ T(V, {
|
|
8546
8567
|
style: {
|
|
8547
8568
|
flexDirection: f ? "row" : "column",
|
|
@@ -8610,12 +8631,12 @@ function Xa({ image: e, title: t, price: n, originalPrice: r, rating: i, reviewC
|
|
|
8610
8631
|
style: [q("body.md"), { color: u.text["high-emphasis"] }],
|
|
8611
8632
|
children: t
|
|
8612
8633
|
}),
|
|
8613
|
-
i !== void 0 && /* @__PURE__ */ w(
|
|
8634
|
+
i !== void 0 && /* @__PURE__ */ w(Za, {
|
|
8614
8635
|
rating: i,
|
|
8615
8636
|
count: a,
|
|
8616
8637
|
size: 14
|
|
8617
8638
|
}),
|
|
8618
|
-
/* @__PURE__ */ w(
|
|
8639
|
+
/* @__PURE__ */ w(Ya, {
|
|
8619
8640
|
price: n,
|
|
8620
8641
|
originalPrice: r,
|
|
8621
8642
|
size: "sm"
|
|
@@ -8631,9 +8652,9 @@ function Xa({ image: e, title: t, price: n, originalPrice: r, rating: i, reviewC
|
|
|
8631
8652
|
}
|
|
8632
8653
|
//#endregion
|
|
8633
8654
|
//#region src/native/components/ProductCarousel.tsx
|
|
8634
|
-
function
|
|
8655
|
+
function $a({ title: e, action: t, products: n, cardWidth: r = 160 }) {
|
|
8635
8656
|
let { scales: i } = W();
|
|
8636
|
-
return /* @__PURE__ */ T(V, { children: [e && /* @__PURE__ */ w(
|
|
8657
|
+
return /* @__PURE__ */ T(V, { children: [e && /* @__PURE__ */ w(Bi, {
|
|
8637
8658
|
title: e,
|
|
8638
8659
|
action: t
|
|
8639
8660
|
}), /* @__PURE__ */ w(j, {
|
|
@@ -8648,16 +8669,16 @@ function Za({ title: e, action: t, products: n, cardWidth: r = 160 }) {
|
|
|
8648
8669
|
},
|
|
8649
8670
|
renderItem: ({ item: e }) => /* @__PURE__ */ w(V, {
|
|
8650
8671
|
style: { width: r },
|
|
8651
|
-
children: /* @__PURE__ */ w(
|
|
8672
|
+
children: /* @__PURE__ */ w(Qa, { ...e })
|
|
8652
8673
|
})
|
|
8653
8674
|
})] });
|
|
8654
8675
|
}
|
|
8655
8676
|
//#endregion
|
|
8656
8677
|
//#region src/native/components/OrderSummary.tsx
|
|
8657
|
-
function
|
|
8678
|
+
function eo(e, t) {
|
|
8658
8679
|
return `${t}${e.toLocaleString("ja-JP")}`;
|
|
8659
8680
|
}
|
|
8660
|
-
function
|
|
8681
|
+
function to({ lines: e, currency: t = "¥" }) {
|
|
8661
8682
|
let { theme: n, scales: r } = W();
|
|
8662
8683
|
return /* @__PURE__ */ w(V, {
|
|
8663
8684
|
style: {
|
|
@@ -8680,7 +8701,7 @@ function $a({ lines: e, currency: t = "¥" }) {
|
|
|
8680
8701
|
children: e.label
|
|
8681
8702
|
}), /* @__PURE__ */ T(z, {
|
|
8682
8703
|
style: [c, { color: o }],
|
|
8683
|
-
children: [a && e.value > 0 ? "-" : "",
|
|
8704
|
+
children: [a && e.value > 0 ? "-" : "", eo(e.value, t)]
|
|
8684
8705
|
})]
|
|
8685
8706
|
})] }, r);
|
|
8686
8707
|
})
|
|
@@ -8688,7 +8709,7 @@ function $a({ lines: e, currency: t = "¥" }) {
|
|
|
8688
8709
|
}
|
|
8689
8710
|
//#endregion
|
|
8690
8711
|
//#region src/native/components/ReviewCard.tsx
|
|
8691
|
-
function
|
|
8712
|
+
function no({ authorName: e, authorAvatar: t, rating: n, date: r, title: i, comment: a, helpfulCount: o }) {
|
|
8692
8713
|
let { theme: s, scales: c } = W();
|
|
8693
8714
|
return /* @__PURE__ */ T(V, {
|
|
8694
8715
|
style: {
|
|
@@ -8746,7 +8767,7 @@ function eo({ authorName: e, authorAvatar: t, rating: n, date: r, title: i, comm
|
|
|
8746
8767
|
}
|
|
8747
8768
|
//#endregion
|
|
8748
8769
|
//#region src/native/components/ReviewSummary.tsx
|
|
8749
|
-
function
|
|
8770
|
+
function ro({ average: e, total: t, distribution: n }) {
|
|
8750
8771
|
let { theme: r, scales: i } = W();
|
|
8751
8772
|
return /* @__PURE__ */ T(V, {
|
|
8752
8773
|
style: {
|
|
@@ -8836,7 +8857,7 @@ function to({ average: e, total: t, distribution: n }) {
|
|
|
8836
8857
|
}
|
|
8837
8858
|
//#endregion
|
|
8838
8859
|
//#region src/native/components/AppShell.tsx
|
|
8839
|
-
function
|
|
8860
|
+
function io({ header: e, footer: t, bottomNav: n, scrollable: r = !0, children: i }) {
|
|
8840
8861
|
let { theme: a } = W(), o = w(r ? R : V, {
|
|
8841
8862
|
style: {
|
|
8842
8863
|
flex: 1,
|
|
@@ -8859,7 +8880,7 @@ function no({ header: e, footer: t, bottomNav: n, scrollable: r = !0, children:
|
|
|
8859
8880
|
}
|
|
8860
8881
|
//#endregion
|
|
8861
8882
|
//#region src/native/components/MarketingShell.tsx
|
|
8862
|
-
function
|
|
8883
|
+
function ao({ header: e, footer: t, cta: n, children: r }) {
|
|
8863
8884
|
let { theme: i } = W();
|
|
8864
8885
|
return /* @__PURE__ */ T(V, {
|
|
8865
8886
|
style: {
|
|
@@ -8886,4 +8907,4 @@ function ro({ header: e, footer: t, cta: n, children: r }) {
|
|
|
8886
8907
|
});
|
|
8887
8908
|
}
|
|
8888
8909
|
//#endregion
|
|
8889
|
-
export {
|
|
8910
|
+
export { se as APP_HEADER_IOS_FALLBACK_PADDING_TOP, r as AUTO_PROMPT_SUPPRESSION_EVENT, ii as Accordion, ha as ActionTile, bn as Alert, wn as AlertDialog, pi as AppHeader, io as AppShell, $t as AutoGrowTextarea, a as AutoPrompt, He as Avatar, Fe as Badge, ki as Banner, Ai as BannerCarousel, sr as BottomSheetForm, cr as BottomSheetFrame, Va as BottomTabBar, fi as Breadcrumb, Z as Button, Wr as Calendar, Ne as Card, Pe as CardHeader, wa as CategoryNav, Ta as CategoryScroll, Lt as Celebration, Ht as CelebrationDialog, cn as Checkbox, un as CheckboxCard, ln as CheckboxField, dn as CheckboxGroup, Ge as Chip, Ca as ChipFilterBar, va as ChipSelector, ur as CoachMark, dr as CoachMarkOverlay, ai as Collapsible, xa as CollapsibleChipField, pr as Combobox, on as CommitAutoGrowTextarea, rn as CommitInput, an as CommitTextarea, ca as CompactFilePicker, or as ConfirmDialog, Kt as CountdownHero, yt as CountdownTimer, Yr as DateField, Kr as DatePicker, $r as DateTimePicker, Vn as DetailSheetBody, Bn as DetailSheetHeader, zn as DetailSheetScaffold, xn as Dialog, Ji as DocumentScreen, hr as DropdownFilter, Gn as DropdownMenu, Fi as EmptyState, rr as ErrorBoundary, Ii as ErrorState, Wi as FileUpload, Ka as FilterBar, ka as FilterChip, Be as FloatingTabBar, Ui as Footer, yn as FormActions, gn as FormField, _n as FormRoot, vn as FormSection, X as GlassView, Le as GradientSurface, za as GridSkeleton, zi as IconBadge, Tr as IconButton, la as ImageAttachmentPicker, qa as ImageCarousel, Ma as ImageGallery, Yt as Input, Hn as KeyboardAwareSheetFooter, qt as Label, Ha as LiquidBottomTabBar, Mi as ListItem, Ra as ListSkeleton, La as ListSkeletons, ao as MarketingShell, oa as MediaActionCluster, ar as MenuDrawer, mi as MobileAppHeader, hi as MobileAppShell, Ei as MobileFloatingActionButton, mr as MultiSelect, ui as NavigationBar, ht as NotificationBadge, hn as NumberInput, to as OrderSummary, ci as Pagination, na as PhotoHero, gr as PillToggle, Wn as Popover, ja as PresenceIndicator, Ya as PriceDisplay, Qa as ProductCard, $a as ProductCarousel, tt as Progress, dt as ProgressRing, Ea as ProgressSteps, n as PromptCoordinatorProvider, qi as Prose, Xa as QuantitySelector, ga as QuickActionGrid, fn as Radio, pn as RadioGroup, Za as RatingDisplay, Un as ResponsiveDialog, no as ReviewCard, lr as ReviewOverlay, ro as ReviewSummary, s as SEMANTIC_ICONS, oe as SafeAreaInsetsProvider, Ki as Screen, Cn as Scrim, oi as ScrollArea, ji as SearchBar, Bi as SectionHeader, fr as Select, ua as SemanticIcon, Je as Separator, Pi as SettingsListRow, Ni as SettingsSection, Oa as ShareButtons, jn as Sheet, li as SimplePagination, Q as Skeleton, Ye as SkeletonText, mn as Slider, Ia as SocialIcon, Pa as SocialLoginButton, qe as Spinner, Ie as Stack, mt as StarRating, gt as StatCard, Di as StatusActionBadge, Vi as StickyActionBar, di as SubNav, Hi as SwipeRow, sn as Switch, _t as SyncStatusBadge, Oi as SyncStatusButton, yr as Tabs, Sr as TabsContent, br as TabsList, xr as TabsTrigger, Ke as Tag, Da as TagInput, Y as Text, Zt as Textarea, ie as ThemeProvider, Zr as TimePicker, er as ToastProvider, Ua as createExpoRouterTabBar, f as getTheme, ce as hasInsetEdge, e as isAutoPromptSuppressed, Oe as isNativeLiquidGlassAvailable, d as primitives, le as resolveAppHeaderPaddingTop, de as resolveBottomSheetTopInset, fe as resolveFullscreenDialogPadding, K as resolveInsetEdge, pe as resolveScrimAlignment, J as resolveScrimContentStyle, ue as resolveTopSheetPaddingTop, q as resolveTypo, l as scales, i as suppressAutoPrompts, u as themeNames, c as themes, $n as toast, o as usePromptCoordinator, t as usePromptSlot, G as useSafeAreaInsets, W as useTheme, qn as useToast };
|