@blinkdotnew/mobile-ui 2.0.0-alpha.14 → 2.0.0-alpha.16
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/dist/index.d.mts +111 -6
- package/dist/index.d.ts +111 -6
- package/dist/index.js +599 -215
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +523 -141
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
SizableStack,
|
|
14
14
|
ThemeableStack,
|
|
15
15
|
Frame,
|
|
16
|
-
XStack as
|
|
17
|
-
YStack as
|
|
16
|
+
XStack as XStack44,
|
|
17
|
+
YStack as YStack49,
|
|
18
18
|
ZStack,
|
|
19
19
|
ScrollView as ScrollView7,
|
|
20
|
-
Circle as
|
|
20
|
+
Circle as Circle11,
|
|
21
21
|
Square,
|
|
22
22
|
Spacer,
|
|
23
23
|
EnsureFlexed,
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
H6 as H62,
|
|
39
39
|
Heading,
|
|
40
40
|
Paragraph,
|
|
41
|
-
SizableText as
|
|
41
|
+
SizableText as SizableText51,
|
|
42
42
|
Text,
|
|
43
43
|
Label,
|
|
44
|
-
Button as
|
|
44
|
+
Button as Button13,
|
|
45
45
|
Input as Input5,
|
|
46
46
|
TextArea,
|
|
47
47
|
Switch as Switch3,
|
|
@@ -1036,7 +1036,7 @@ function Container({ children, maxWidth = 500, centered = true, padding = "$4" }
|
|
|
1036
1036
|
|
|
1037
1037
|
// src/patterns/PaywallScreen.tsx
|
|
1038
1038
|
import { useState as useState5, useEffect as useEffect3 } from "react";
|
|
1039
|
-
import { Button as Button3, SizableText as SizableText17, XStack as XStack10, YStack as YStack14, ScrollView as ScrollView2 } from "tamagui";
|
|
1039
|
+
import { Button as Button3, Circle as Circle2, SizableText as SizableText17, XStack as XStack10, YStack as YStack14, ScrollView as ScrollView2 } from "tamagui";
|
|
1040
1040
|
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1041
1041
|
function useCountdown(minutes) {
|
|
1042
1042
|
const [seconds, setSeconds] = useState5((minutes ?? 0) * 60);
|
|
@@ -1050,39 +1050,93 @@ function useCountdown(minutes) {
|
|
|
1050
1050
|
const ss = String(seconds % 60).padStart(2, "0");
|
|
1051
1051
|
return { display: `${mm}:${ss}`, expired: seconds <= 0 };
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function normalizeFeature(feature) {
|
|
1054
|
+
return typeof feature === "string" ? { title: feature } : feature;
|
|
1055
|
+
}
|
|
1056
|
+
function ComparisonIcon({ enabled }) {
|
|
1057
|
+
return /* @__PURE__ */ jsx20(Circle2, { size: 22, backgroundColor: enabled ? "$green3" : "$color4", children: /* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: enabled ? "$green10" : "$color8", fontWeight: "700", children: enabled ? "\u2713" : "\u2014" }) });
|
|
1058
|
+
}
|
|
1059
|
+
function TestimonialCard({ testimonial }) {
|
|
1060
|
+
return /* @__PURE__ */ jsxs13(YStack14, { flex: 1, minWidth: 220, backgroundColor: "$color2", borderRadius: "$6", padding: "$3", gap: "$2", children: [
|
|
1061
|
+
/* @__PURE__ */ jsxs13(SizableText17, { size: "$3", color: "$color11", children: [
|
|
1062
|
+
"\u201C",
|
|
1063
|
+
testimonial.quote,
|
|
1064
|
+
"\u201D"
|
|
1065
|
+
] }),
|
|
1066
|
+
/* @__PURE__ */ jsxs13(YStack14, { children: [
|
|
1067
|
+
/* @__PURE__ */ jsx20(SizableText17, { size: "$2", fontWeight: "700", children: testimonial.author }),
|
|
1068
|
+
testimonial.meta ? /* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "$color10", children: testimonial.meta }) : null
|
|
1069
|
+
] })
|
|
1070
|
+
] });
|
|
1071
|
+
}
|
|
1072
|
+
function CreatorHeader({ creator }) {
|
|
1073
|
+
return /* @__PURE__ */ jsxs13(XStack10, { alignItems: "center", justifyContent: "center", gap: "$3", children: [
|
|
1074
|
+
creator.avatar ? /* @__PURE__ */ jsx20(
|
|
1075
|
+
YStack14,
|
|
1076
|
+
{
|
|
1077
|
+
width: 72,
|
|
1078
|
+
height: 72,
|
|
1079
|
+
borderRadius: "$10",
|
|
1080
|
+
overflow: "hidden",
|
|
1081
|
+
alignItems: "center",
|
|
1082
|
+
justifyContent: "center",
|
|
1083
|
+
backgroundColor: "$color3",
|
|
1084
|
+
children: creator.avatar
|
|
1085
|
+
}
|
|
1086
|
+
) : null,
|
|
1087
|
+
/* @__PURE__ */ jsxs13(YStack14, { alignItems: "center", gap: "$1", children: [
|
|
1088
|
+
/* @__PURE__ */ jsx20(SizableText17, { size: "$6", fontWeight: "800", children: creator.name }),
|
|
1089
|
+
creator.meta ? /* @__PURE__ */ jsx20(SizableText17, { size: "$3", color: "$color10", children: creator.meta }) : null
|
|
1090
|
+
] })
|
|
1091
|
+
] });
|
|
1092
|
+
}
|
|
1093
|
+
function PlanCard({
|
|
1094
|
+
plan,
|
|
1095
|
+
selected,
|
|
1096
|
+
onPress,
|
|
1097
|
+
stacked,
|
|
1098
|
+
dark
|
|
1099
|
+
}) {
|
|
1054
1100
|
return /* @__PURE__ */ jsxs13(
|
|
1055
1101
|
YStack14,
|
|
1056
1102
|
{
|
|
1057
|
-
flex: 1,
|
|
1103
|
+
flex: stacked ? void 0 : 1,
|
|
1104
|
+
width: stacked ? "100%" : void 0,
|
|
1058
1105
|
padding: "$3",
|
|
1059
1106
|
borderRadius: "$5",
|
|
1060
1107
|
borderWidth: 2,
|
|
1061
|
-
borderColor: selected ? "$color9" : "$color5",
|
|
1062
|
-
backgroundColor: selected ? "$color3" : "$color1",
|
|
1108
|
+
borderColor: selected ? "$color9" : dark ? "$color6" : "$color5",
|
|
1109
|
+
backgroundColor: selected ? "$color3" : dark ? "$color2" : "$color1",
|
|
1063
1110
|
pressStyle: { scale: 0.97, opacity: 0.9 },
|
|
1064
1111
|
animation: "quick",
|
|
1065
1112
|
onPress,
|
|
1066
1113
|
cursor: "pointer",
|
|
1067
1114
|
position: "relative",
|
|
1068
1115
|
gap: "$1.5",
|
|
1069
|
-
alignItems: "center",
|
|
1116
|
+
alignItems: stacked ? "flex-start" : "center",
|
|
1070
1117
|
children: [
|
|
1071
1118
|
plan.popular && /* @__PURE__ */ jsx20(YStack14, { position: "absolute", top: -10, backgroundColor: "$color9", paddingHorizontal: "$2", paddingVertical: 2, borderRadius: "$10", children: /* @__PURE__ */ jsx20(SizableText17, { size: "$1", color: "white", fontWeight: "700", children: "BEST VALUE" }) }),
|
|
1072
1119
|
plan.savings && /* @__PURE__ */ jsx20(YStack14, { position: "absolute", top: plan.popular ? -24 : -10, right: 6, backgroundColor: "$green9", paddingHorizontal: "$1.5", paddingVertical: 2, borderRadius: "$10", children: /* @__PURE__ */ jsx20(SizableText17, { size: "$1", color: "white", fontWeight: "700", children: plan.savings }) }),
|
|
1073
|
-
/* @__PURE__ */ jsx20(SizableText17, { size: "$2", fontWeight: "600", color: "$color11", paddingTop: plan.popular ? "$1" : 0, children: plan.name }),
|
|
1074
|
-
/* @__PURE__ */ jsx20(SizableText17, { size: "$
|
|
1120
|
+
/* @__PURE__ */ jsx20(SizableText17, { size: "$2", fontWeight: "600", color: dark ? "$color12" : "$color11", paddingTop: plan.popular ? "$1" : 0, children: plan.name }),
|
|
1121
|
+
plan.tagline ? /* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "$color10", children: plan.tagline }) : null,
|
|
1122
|
+
/* @__PURE__ */ jsx20(SizableText17, { size: "$7", fontWeight: "800", color: dark ? "$color12" : void 0, children: plan.price }),
|
|
1075
1123
|
/* @__PURE__ */ jsxs13(SizableText17, { size: "$2", color: "$color9", children: [
|
|
1076
1124
|
"/",
|
|
1077
1125
|
plan.period
|
|
1078
1126
|
] }),
|
|
1079
1127
|
plan.pricePerWeek && /* @__PURE__ */ jsx20(SizableText17, { size: "$1", color: "$color10", children: plan.pricePerWeek }),
|
|
1080
|
-
plan.trial && /* @__PURE__ */ jsx20(YStack14, { backgroundColor: "$green3", paddingHorizontal: "$2", paddingVertical: 2, borderRadius: "$10", marginTop: "$1", children: /* @__PURE__ */ jsx20(SizableText17, { size: "$1", color: "$green9", fontWeight: "700", children: plan.trial }) })
|
|
1128
|
+
plan.trial && /* @__PURE__ */ jsx20(YStack14, { backgroundColor: "$green3", paddingHorizontal: "$2", paddingVertical: 2, borderRadius: "$10", marginTop: "$1", children: /* @__PURE__ */ jsx20(SizableText17, { size: "$1", color: "$green9", fontWeight: "700", children: plan.trial }) }),
|
|
1129
|
+
stacked && plan.features?.length ? /* @__PURE__ */ jsx20(YStack14, { gap: "$1", width: "100%", paddingTop: "$1", children: plan.features.map((feature) => /* @__PURE__ */ jsxs13(XStack10, { gap: "$2", alignItems: "center", children: [
|
|
1130
|
+
/* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "$green9", children: "\u2713" }),
|
|
1131
|
+
/* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "$color10", children: feature })
|
|
1132
|
+
] }, feature)) }) : null
|
|
1081
1133
|
]
|
|
1082
1134
|
}
|
|
1083
1135
|
);
|
|
1084
1136
|
}
|
|
1085
1137
|
function PaywallScreen({
|
|
1138
|
+
variant = "default",
|
|
1139
|
+
eyebrow,
|
|
1086
1140
|
title = "Unlock Premium",
|
|
1087
1141
|
subtitle,
|
|
1088
1142
|
features = [],
|
|
@@ -1099,29 +1153,71 @@ function PaywallScreen({
|
|
|
1099
1153
|
hero,
|
|
1100
1154
|
socialProof,
|
|
1101
1155
|
countdownMinutes,
|
|
1102
|
-
badge
|
|
1156
|
+
badge,
|
|
1157
|
+
comparisonRows = [],
|
|
1158
|
+
testimonials = [],
|
|
1159
|
+
creator,
|
|
1160
|
+
topSlot,
|
|
1161
|
+
footerSlot
|
|
1103
1162
|
}) {
|
|
1104
1163
|
const selected = selectedPlan ?? plans.find((p) => p.popular)?.id ?? plans[0]?.id;
|
|
1105
1164
|
const countdown = useCountdown(countdownMinutes);
|
|
1106
|
-
|
|
1165
|
+
const dark = variant === "immersive-dark";
|
|
1166
|
+
const stackedPlans = variant === "comparison" || variant === "creator-sheet";
|
|
1167
|
+
const backgroundColor = dark ? "$color1" : "$background";
|
|
1168
|
+
const toneColor = dark ? "$color12" : "$color11";
|
|
1169
|
+
const mutedColor = dark ? "$color10" : "$color10";
|
|
1170
|
+
return /* @__PURE__ */ jsxs13(YStack14, { flex: 1, backgroundColor, children: [
|
|
1107
1171
|
onClose && /* @__PURE__ */ jsx20(XStack10, { position: "absolute", top: "$4", right: "$4", zIndex: 10, children: /* @__PURE__ */ jsx20(Button3, { size: "$3", circular: true, chromeless: true, onPress: onClose, pressStyle: { opacity: 0.6 }, children: /* @__PURE__ */ jsx20(SizableText17, { size: "$5", color: "$color9", children: "\u2715" }) }) }),
|
|
1108
1172
|
/* @__PURE__ */ jsx20(ScrollView2, { flex: 1, contentContainerStyle: { paddingBottom: 220 }, children: /* @__PURE__ */ jsxs13(YStack14, { padding: "$4", gap: "$4", paddingTop: "$8", children: [
|
|
1173
|
+
topSlot,
|
|
1174
|
+
creator && variant === "creator-sheet" ? /* @__PURE__ */ jsx20(CreatorHeader, { creator }) : null,
|
|
1109
1175
|
hero && /* @__PURE__ */ jsx20(YStack14, { alignItems: "center", paddingVertical: "$3", children: hero }),
|
|
1110
1176
|
badge && /* @__PURE__ */ jsx20(XStack10, { justifyContent: "center", children: /* @__PURE__ */ jsx20(YStack14, { backgroundColor: "$color9", paddingHorizontal: "$3", paddingVertical: "$1", borderRadius: "$10", children: /* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "white", fontWeight: "700", children: badge }) }) }),
|
|
1111
1177
|
/* @__PURE__ */ jsxs13(YStack14, { gap: "$1.5", alignItems: "center", children: [
|
|
1112
|
-
/* @__PURE__ */ jsx20(SizableText17, { size: "$
|
|
1113
|
-
|
|
1178
|
+
eyebrow ? /* @__PURE__ */ jsx20(SizableText17, { size: "$2", fontWeight: "700", color: "$color9", textTransform: "uppercase", children: eyebrow }) : null,
|
|
1179
|
+
/* @__PURE__ */ jsx20(SizableText17, { size: "$9", fontWeight: "800", textAlign: "center", color: toneColor, children: title }),
|
|
1180
|
+
subtitle && /* @__PURE__ */ jsx20(SizableText17, { size: "$4", color: mutedColor, textAlign: "center", children: subtitle }),
|
|
1114
1181
|
socialProof && /* @__PURE__ */ jsx20(SizableText17, { size: "$3", color: "$color9", fontWeight: "600", textAlign: "center", children: socialProof })
|
|
1115
1182
|
] }),
|
|
1116
1183
|
countdownMinutes && !countdown.expired && /* @__PURE__ */ jsxs13(XStack10, { justifyContent: "center", padding: "$2", backgroundColor: "$red3", borderRadius: "$4", alignSelf: "center", paddingHorizontal: "$4", gap: "$2", alignItems: "center", children: [
|
|
1117
1184
|
/* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "$red9", fontWeight: "600", children: "Offer ends in" }),
|
|
1118
1185
|
/* @__PURE__ */ jsx20(SizableText17, { size: "$5", color: "$red9", fontWeight: "800", fontFamily: "$mono", children: countdown.display })
|
|
1119
1186
|
] }),
|
|
1120
|
-
features.length > 0 && /* @__PURE__ */ jsx20(YStack14, { gap: "$2.5", paddingHorizontal: "$2", children: features.map((
|
|
1121
|
-
|
|
1122
|
-
/* @__PURE__ */
|
|
1123
|
-
|
|
1124
|
-
|
|
1187
|
+
features.length > 0 && /* @__PURE__ */ jsx20(YStack14, { gap: "$2.5", paddingHorizontal: "$2", children: features.map((feature, i) => {
|
|
1188
|
+
const item = normalizeFeature(feature);
|
|
1189
|
+
return /* @__PURE__ */ jsxs13(XStack10, { gap: "$2.5", alignItems: "center", children: [
|
|
1190
|
+
/* @__PURE__ */ jsx20(YStack14, { minWidth: 24, alignItems: "center", children: item.icon ?? /* @__PURE__ */ jsx20(SizableText17, { size: "$4", color: "$green9", children: "\u2713" }) }),
|
|
1191
|
+
/* @__PURE__ */ jsxs13(YStack14, { flex: 1, gap: "$1", children: [
|
|
1192
|
+
/* @__PURE__ */ jsx20(SizableText17, { size: "$4", color: toneColor, flex: 1, children: item.title }),
|
|
1193
|
+
item.description ? /* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: mutedColor, children: item.description }) : null
|
|
1194
|
+
] })
|
|
1195
|
+
] }, i);
|
|
1196
|
+
}) }),
|
|
1197
|
+
variant === "social-proof" && testimonials.length > 0 ? /* @__PURE__ */ jsx20(ScrollView2, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsx20(XStack10, { gap: "$3", children: testimonials.map((testimonial, index) => /* @__PURE__ */ jsx20(TestimonialCard, { testimonial }, `${testimonial.author}-${index}`)) }) }) : null,
|
|
1198
|
+
variant === "comparison" && comparisonRows.length > 0 ? /* @__PURE__ */ jsxs13(YStack14, { backgroundColor: dark ? "$color2" : "$color1", borderRadius: "$6", padding: "$3", gap: "$2", borderWidth: 1, borderColor: "$color4", children: [
|
|
1199
|
+
/* @__PURE__ */ jsxs13(XStack10, { alignItems: "center", children: [
|
|
1200
|
+
/* @__PURE__ */ jsx20(SizableText17, { flex: 1, size: "$2", fontWeight: "700", color: "$color10", children: "Feature" }),
|
|
1201
|
+
/* @__PURE__ */ jsx20(SizableText17, { width: 64, size: "$2", fontWeight: "700", textAlign: "center", color: "$color10", children: "Free" }),
|
|
1202
|
+
/* @__PURE__ */ jsx20(SizableText17, { width: 84, size: "$2", fontWeight: "700", textAlign: "center", color: "$color10", children: "Premium" })
|
|
1203
|
+
] }),
|
|
1204
|
+
comparisonRows.map((row) => /* @__PURE__ */ jsxs13(XStack10, { alignItems: "center", paddingVertical: "$1.5", children: [
|
|
1205
|
+
/* @__PURE__ */ jsx20(SizableText17, { flex: 1, size: "$3", color: toneColor, children: row.label }),
|
|
1206
|
+
/* @__PURE__ */ jsx20(XStack10, { width: 64, justifyContent: "center", children: /* @__PURE__ */ jsx20(ComparisonIcon, { enabled: row.free }) }),
|
|
1207
|
+
/* @__PURE__ */ jsx20(XStack10, { width: 84, justifyContent: "center", children: /* @__PURE__ */ jsx20(ComparisonIcon, { enabled: row.premium }) })
|
|
1208
|
+
] }, row.label))
|
|
1209
|
+
] }) : null,
|
|
1210
|
+
/* @__PURE__ */ jsx20(XStack10, { gap: "$3", paddingTop: "$1", flexWrap: "wrap", children: plans.map((plan) => /* @__PURE__ */ jsx20(
|
|
1211
|
+
PlanCard,
|
|
1212
|
+
{
|
|
1213
|
+
plan,
|
|
1214
|
+
selected: selected === plan.id,
|
|
1215
|
+
onPress: () => onSelectPlan?.(plan.id),
|
|
1216
|
+
stacked: stackedPlans,
|
|
1217
|
+
dark
|
|
1218
|
+
},
|
|
1219
|
+
plan.id
|
|
1220
|
+
)) })
|
|
1125
1221
|
] }) }),
|
|
1126
1222
|
/* @__PURE__ */ jsxs13(
|
|
1127
1223
|
YStack14,
|
|
@@ -1132,7 +1228,7 @@ function PaywallScreen({
|
|
|
1132
1228
|
right: 0,
|
|
1133
1229
|
padding: "$4",
|
|
1134
1230
|
paddingBottom: "$6",
|
|
1135
|
-
backgroundColor
|
|
1231
|
+
backgroundColor,
|
|
1136
1232
|
borderTopWidth: 1,
|
|
1137
1233
|
borderTopColor: "$color4",
|
|
1138
1234
|
gap: "$2.5",
|
|
@@ -1156,7 +1252,8 @@ function PaywallScreen({
|
|
|
1156
1252
|
onRestore && /* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "$color8", onPress: onRestore, pressStyle: { opacity: 0.6 }, children: "Restore" }),
|
|
1157
1253
|
onTerms && /* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "$color8", onPress: onTerms, pressStyle: { opacity: 0.6 }, children: "Terms" }),
|
|
1158
1254
|
onPrivacy && /* @__PURE__ */ jsx20(SizableText17, { size: "$2", color: "$color8", onPress: onPrivacy, pressStyle: { opacity: 0.6 }, children: "Privacy" })
|
|
1159
|
-
] })
|
|
1255
|
+
] }),
|
|
1256
|
+
footerSlot
|
|
1160
1257
|
]
|
|
1161
1258
|
}
|
|
1162
1259
|
)
|
|
@@ -1165,34 +1262,79 @@ function PaywallScreen({
|
|
|
1165
1262
|
|
|
1166
1263
|
// src/patterns/OnboardingCarousel.tsx
|
|
1167
1264
|
import { useState as useState6 } from "react";
|
|
1168
|
-
import { Button as Button4, SizableText as SizableText18, XStack as XStack11, YStack as YStack15, Circle as
|
|
1265
|
+
import { Button as Button4, SizableText as SizableText18, XStack as XStack11, YStack as YStack15, Circle as Circle3 } from "tamagui";
|
|
1169
1266
|
import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1170
1267
|
function OnboardingCarousel({
|
|
1171
1268
|
steps,
|
|
1269
|
+
variant = "default",
|
|
1270
|
+
brand,
|
|
1271
|
+
topLeading,
|
|
1172
1272
|
onComplete,
|
|
1173
1273
|
onSkip,
|
|
1174
1274
|
completeLabel = "Get Started",
|
|
1175
1275
|
skipLabel = "Skip",
|
|
1176
|
-
nextLabel = "Next"
|
|
1276
|
+
nextLabel = "Next",
|
|
1277
|
+
footerSlot
|
|
1177
1278
|
}) {
|
|
1178
1279
|
const [current, setCurrent] = useState6(0);
|
|
1280
|
+
if (steps.length === 0) {
|
|
1281
|
+
return /* @__PURE__ */ jsx21(YStack15, { flex: 1, backgroundColor: "$background", padding: "$4", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx21(SizableText18, { size: "$5", color: "$color10", textAlign: "center", children: "Add at least one onboarding step." }) });
|
|
1282
|
+
}
|
|
1179
1283
|
const isLast = current === steps.length - 1;
|
|
1180
1284
|
const step = steps[current];
|
|
1181
|
-
|
|
1182
|
-
|
|
1285
|
+
const hero = step?.hero ?? step?.icon;
|
|
1286
|
+
const isEditorial = variant === "editorial";
|
|
1287
|
+
const isSelection = variant === "selection-step";
|
|
1288
|
+
const isPermission = variant === "permission-prompt";
|
|
1289
|
+
const topPadding = isEditorial ? "$6" : "$4";
|
|
1290
|
+
const titleSize = isEditorial ? "$10" : "$9";
|
|
1291
|
+
const backgroundColor = variant === "calm-gradient" ? "$color2" : "$background";
|
|
1292
|
+
const heroBackground = isPermission ? "$color3" : isSelection ? "$color1" : "$color2";
|
|
1293
|
+
const heroRadius = variant === "card-tilt" || isSelection ? "$8" : "$10";
|
|
1294
|
+
const buttonTone = variant === "editorial" ? "$color12" : "$color9";
|
|
1295
|
+
return /* @__PURE__ */ jsxs14(YStack15, { flex: 1, backgroundColor, padding: "$4", justifyContent: "space-between", children: [
|
|
1296
|
+
step?.background ? /* @__PURE__ */ jsx21(YStack15, { position: "absolute", left: 0, right: 0, top: 0, bottom: 0, children: step.background }) : null,
|
|
1297
|
+
/* @__PURE__ */ jsxs14(XStack11, { justifyContent: "space-between", alignItems: "center", paddingTop: topPadding, children: [
|
|
1298
|
+
/* @__PURE__ */ jsx21(XStack11, { minWidth: 40, children: topLeading }),
|
|
1299
|
+
brand ? /* @__PURE__ */ jsx21(YStack15, { alignItems: "center", flex: 1, children: brand }) : /* @__PURE__ */ jsx21(YStack15, { flex: 1 }),
|
|
1300
|
+
!isLast && onSkip && /* @__PURE__ */ jsx21(Button4, { chromeless: true, onPress: onSkip, children: /* @__PURE__ */ jsx21(SizableText18, { size: "$4", color: "$color9", children: skipLabel }) })
|
|
1301
|
+
] }),
|
|
1183
1302
|
/* @__PURE__ */ jsxs14(YStack15, { flex: 1, alignItems: "center", justifyContent: "center", gap: "$5", paddingHorizontal: "$4", children: [
|
|
1184
|
-
|
|
1303
|
+
hero ? variant === "card-tilt" || isSelection ? /* @__PURE__ */ jsx21(
|
|
1304
|
+
YStack15,
|
|
1305
|
+
{
|
|
1306
|
+
width: "100%",
|
|
1307
|
+
maxWidth: 340,
|
|
1308
|
+
minHeight: 260,
|
|
1309
|
+
borderRadius: heroRadius,
|
|
1310
|
+
backgroundColor: heroBackground,
|
|
1311
|
+
padding: "$3",
|
|
1312
|
+
alignItems: "center",
|
|
1313
|
+
justifyContent: "center",
|
|
1314
|
+
borderWidth: variant === "card-tilt" ? 3 : 1,
|
|
1315
|
+
borderColor: "$color4",
|
|
1316
|
+
shadowColor: "$shadowColor",
|
|
1317
|
+
shadowOpacity: 0.14,
|
|
1318
|
+
shadowRadius: 18,
|
|
1319
|
+
shadowOffset: { width: 0, height: 10 },
|
|
1320
|
+
style: variant === "card-tilt" ? { transform: [{ rotate: "-5deg" }] } : void 0,
|
|
1321
|
+
children: hero
|
|
1322
|
+
}
|
|
1323
|
+
) : /* @__PURE__ */ jsx21(Circle3, { size: isPermission ? 140 : 120, backgroundColor: heroBackground, alignItems: "center", justifyContent: "center", children: hero }) : null,
|
|
1185
1324
|
/* @__PURE__ */ jsxs14(YStack15, { gap: "$3", alignItems: "center", children: [
|
|
1186
|
-
/* @__PURE__ */ jsx21(SizableText18, { size: "$
|
|
1325
|
+
step?.eyebrow ? /* @__PURE__ */ jsx21(SizableText18, { size: "$2", color: "$color9", fontWeight: "700", textTransform: "uppercase", children: step.eyebrow }) : null,
|
|
1326
|
+
/* @__PURE__ */ jsx21(SizableText18, { size: titleSize, fontWeight: "700", textAlign: "center", children: step?.title }),
|
|
1187
1327
|
/* @__PURE__ */ jsx21(SizableText18, { size: "$4", color: "$color10", textAlign: "center", maxWidth: 300, children: step?.description })
|
|
1188
1328
|
] })
|
|
1189
1329
|
] }),
|
|
1190
1330
|
/* @__PURE__ */ jsxs14(YStack15, { gap: "$3", paddingBottom: "$2", children: [
|
|
1191
1331
|
/* @__PURE__ */ jsx21(XStack11, { justifyContent: "center", gap: "$2", children: steps.map((_, i) => /* @__PURE__ */ jsx21(
|
|
1192
|
-
|
|
1332
|
+
Circle3,
|
|
1193
1333
|
{
|
|
1194
|
-
size: 8,
|
|
1334
|
+
size: variant === "card-tilt" ? 10 : 8,
|
|
1335
|
+
width: i === current && variant !== "default" ? 24 : void 0,
|
|
1195
1336
|
backgroundColor: i === current ? "$color9" : "$color4",
|
|
1337
|
+
borderRadius: "$10",
|
|
1196
1338
|
animation: "quick"
|
|
1197
1339
|
},
|
|
1198
1340
|
i
|
|
@@ -1201,21 +1343,22 @@ function OnboardingCarousel({
|
|
|
1201
1343
|
Button4,
|
|
1202
1344
|
{
|
|
1203
1345
|
size: "$5",
|
|
1204
|
-
backgroundColor:
|
|
1346
|
+
backgroundColor: buttonTone,
|
|
1205
1347
|
color: "$color1",
|
|
1206
|
-
borderRadius: "$5",
|
|
1207
|
-
hoverStyle: { backgroundColor: "$color10" },
|
|
1348
|
+
borderRadius: variant === "editorial" ? "$10" : "$5",
|
|
1349
|
+
hoverStyle: { backgroundColor: variant === "editorial" ? "$color11" : "$color10" },
|
|
1208
1350
|
pressStyle: { backgroundColor: "$color8" },
|
|
1209
1351
|
onPress: () => isLast ? onComplete?.() : setCurrent((c) => c + 1),
|
|
1210
|
-
children: isLast ? completeLabel : nextLabel
|
|
1352
|
+
children: isLast ? step?.ctaLabel ?? completeLabel : step?.ctaLabel ?? nextLabel
|
|
1211
1353
|
}
|
|
1212
|
-
)
|
|
1354
|
+
),
|
|
1355
|
+
footerSlot
|
|
1213
1356
|
] })
|
|
1214
1357
|
] });
|
|
1215
1358
|
}
|
|
1216
1359
|
|
|
1217
1360
|
// src/patterns/ChatBubble.tsx
|
|
1218
|
-
import { SizableText as SizableText19, XStack as XStack12, YStack as YStack16, Circle as
|
|
1361
|
+
import { SizableText as SizableText19, XStack as XStack12, YStack as YStack16, Circle as Circle4, Image as Image3 } from "tamagui";
|
|
1219
1362
|
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1220
1363
|
function ChatBubble({ message, showAvatar = true }) {
|
|
1221
1364
|
const isUser = message.sender === "user";
|
|
@@ -1227,7 +1370,7 @@ function ChatBubble({ message, showAvatar = true }) {
|
|
|
1227
1370
|
gap: "$2",
|
|
1228
1371
|
flexDirection: isUser ? "row-reverse" : "row",
|
|
1229
1372
|
children: [
|
|
1230
|
-
showAvatar && !isUser && /* @__PURE__ */ jsx22(
|
|
1373
|
+
showAvatar && !isUser && /* @__PURE__ */ jsx22(Circle4, { size: 32, backgroundColor: "$color4", overflow: "hidden", children: message.avatar ? /* @__PURE__ */ jsx22(Image3, { source: { uri: message.avatar }, width: 32, height: 32, objectFit: "cover" }) : /* @__PURE__ */ jsx22(SizableText19, { size: "$2", fontWeight: "600", color: "$color11", children: message.senderName?.[0]?.toUpperCase() ?? "?" }) }),
|
|
1231
1374
|
/* @__PURE__ */ jsxs15(
|
|
1232
1375
|
YStack16,
|
|
1233
1376
|
{
|
|
@@ -1326,11 +1469,11 @@ function EmptyState({ icon, title, description, actionLabel, onAction }) {
|
|
|
1326
1469
|
}
|
|
1327
1470
|
|
|
1328
1471
|
// src/patterns/ProfileHeader.tsx
|
|
1329
|
-
import { Circle as
|
|
1472
|
+
import { Circle as Circle5, Image as Image4, SizableText as SizableText22, XStack as XStack14, YStack as YStack19 } from "tamagui";
|
|
1330
1473
|
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1331
1474
|
function ProfileHeader({ name, subtitle, avatar, stats, actions }) {
|
|
1332
1475
|
return /* @__PURE__ */ jsxs18(YStack19, { alignItems: "center", gap: "$4", paddingVertical: "$6", paddingHorizontal: "$4", children: [
|
|
1333
|
-
/* @__PURE__ */ jsx25(
|
|
1476
|
+
/* @__PURE__ */ jsx25(Circle5, { size: 80, backgroundColor: "$color4", overflow: "hidden", children: avatar ? /* @__PURE__ */ jsx25(Image4, { source: { uri: avatar }, width: 80, height: 80, objectFit: "cover" }) : /* @__PURE__ */ jsx25(SizableText22, { size: "$9", fontWeight: "700", color: "$color11", children: name[0]?.toUpperCase() ?? "?" }) }),
|
|
1334
1477
|
/* @__PURE__ */ jsxs18(YStack19, { alignItems: "center", gap: "$1", children: [
|
|
1335
1478
|
/* @__PURE__ */ jsx25(SizableText22, { size: "$7", fontWeight: "700", children: name }),
|
|
1336
1479
|
subtitle && /* @__PURE__ */ jsx25(SizableText22, { size: "$4", color: "$color10", children: subtitle })
|
|
@@ -1419,65 +1562,150 @@ function BottomSheet({ open, onOpenChange, title, children, snapPoints = [85], d
|
|
|
1419
1562
|
|
|
1420
1563
|
// src/patterns/LoginScreen.tsx
|
|
1421
1564
|
import { useState as useState7 } from "react";
|
|
1422
|
-
import { Button as Button6, SizableText as SizableText25, Spinner, XStack as XStack17, YStack as YStack22 } from "tamagui";
|
|
1423
|
-
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1424
|
-
function
|
|
1565
|
+
import { Button as Button6, Circle as Circle6, SizableText as SizableText25, Spinner, XStack as XStack17, YStack as YStack22 } from "tamagui";
|
|
1566
|
+
import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1567
|
+
function GoogleIcon({ size = 20 }) {
|
|
1568
|
+
return /* @__PURE__ */ jsx28(XStack17, { width: size, height: size, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx28(SizableText25, { fontSize: size, lineHeight: size, fontWeight: "700", color: "#4285F4", children: "G" }) });
|
|
1569
|
+
}
|
|
1570
|
+
function AppleIcon({ size = 20 }) {
|
|
1571
|
+
return /* @__PURE__ */ jsx28(XStack17, { width: size, height: size, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx28(SizableText25, { fontSize: size * 0.85, lineHeight: size, color: "$color1", children: "\uF8FF" }) });
|
|
1572
|
+
}
|
|
1573
|
+
function GitHubIcon({ size = 20 }) {
|
|
1574
|
+
return /* @__PURE__ */ jsx28(Circle6, { size, backgroundColor: "$color1", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx28(SizableText25, { fontSize: size * 0.6, lineHeight: size, fontWeight: "900", color: "$color12", textAlign: "center", children: "GH" }) });
|
|
1575
|
+
}
|
|
1576
|
+
function MicrosoftIcon({ size = 20 }) {
|
|
1577
|
+
const half = Math.floor(size * 0.4);
|
|
1578
|
+
const gap = 2;
|
|
1579
|
+
return /* @__PURE__ */ jsxs21(YStack22, { width: size, height: size, alignItems: "center", justifyContent: "center", children: [
|
|
1580
|
+
/* @__PURE__ */ jsxs21(XStack17, { gap, children: [
|
|
1581
|
+
/* @__PURE__ */ jsx28(YStack22, { width: half, height: half, backgroundColor: "#F25022" }),
|
|
1582
|
+
/* @__PURE__ */ jsx28(YStack22, { width: half, height: half, backgroundColor: "#7FBA00" })
|
|
1583
|
+
] }),
|
|
1584
|
+
/* @__PURE__ */ jsxs21(XStack17, { gap, children: [
|
|
1585
|
+
/* @__PURE__ */ jsx28(YStack22, { width: half, height: half, backgroundColor: "#00A4EF" }),
|
|
1586
|
+
/* @__PURE__ */ jsx28(YStack22, { width: half, height: half, backgroundColor: "#FFB900" })
|
|
1587
|
+
] })
|
|
1588
|
+
] });
|
|
1589
|
+
}
|
|
1590
|
+
var BRAND_ICON_MAP = {
|
|
1591
|
+
google: GoogleIcon,
|
|
1592
|
+
apple: AppleIcon,
|
|
1593
|
+
github: GitHubIcon,
|
|
1594
|
+
microsoft: MicrosoftIcon,
|
|
1595
|
+
custom: ({ size = 20 }) => /* @__PURE__ */ jsx28(Circle6, { size, backgroundColor: "$color4", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx28(SizableText25, { fontSize: size * 0.6, color: "$color10", children: "\u2022" }) })
|
|
1596
|
+
};
|
|
1597
|
+
var BRAND_STYLES = {
|
|
1598
|
+
google: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" },
|
|
1599
|
+
apple: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1" },
|
|
1600
|
+
github: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1" },
|
|
1601
|
+
microsoft: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" },
|
|
1602
|
+
custom: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" }
|
|
1603
|
+
};
|
|
1604
|
+
function ProviderBadge({ provider }) {
|
|
1605
|
+
const brand = provider.brand ?? "custom";
|
|
1606
|
+
if (provider.icon) return /* @__PURE__ */ jsx28(Fragment2, { children: provider.icon });
|
|
1607
|
+
const IconComponent = BRAND_ICON_MAP[brand];
|
|
1608
|
+
return /* @__PURE__ */ jsx28(IconComponent, { size: 22 });
|
|
1609
|
+
}
|
|
1610
|
+
function LoginScreen({
|
|
1611
|
+
variant = "default",
|
|
1612
|
+
title = "Welcome",
|
|
1613
|
+
subtitle = "Sign in to continue",
|
|
1614
|
+
logo,
|
|
1615
|
+
providers = [],
|
|
1616
|
+
hero,
|
|
1617
|
+
backgroundSlot,
|
|
1618
|
+
footerSlot,
|
|
1619
|
+
providerButtonStyle = "brand",
|
|
1620
|
+
onProviderPress,
|
|
1621
|
+
showEmailForm,
|
|
1622
|
+
onEmailSubmit,
|
|
1623
|
+
onForgotPassword,
|
|
1624
|
+
onCreateAccount,
|
|
1625
|
+
onTerms,
|
|
1626
|
+
onPrivacy,
|
|
1627
|
+
loading
|
|
1628
|
+
}) {
|
|
1425
1629
|
const [email, setEmail] = useState7("");
|
|
1426
1630
|
const [password, setPassword] = useState7("");
|
|
1631
|
+
const isEditorial = variant === "editorial";
|
|
1632
|
+
const isCenteredCard = variant === "centered-card";
|
|
1427
1633
|
return /* @__PURE__ */ jsxs21(YStack22, { flex: 1, padding: "$4", gap: "$5", backgroundColor: "$background", justifyContent: "center", children: [
|
|
1428
|
-
/* @__PURE__ */
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
/* @__PURE__ */ jsx28(SizableText25, { size: "$4", color: "$color10", textAlign: "center", children: subtitle })
|
|
1432
|
-
] }),
|
|
1433
|
-
providers.length > 0 && /* @__PURE__ */ jsx28(YStack22, { gap: "$2.5", children: providers.map((p) => /* @__PURE__ */ jsx28(
|
|
1434
|
-
Button6,
|
|
1634
|
+
backgroundSlot ? /* @__PURE__ */ jsx28(YStack22, { position: "absolute", left: 0, right: 0, top: 0, bottom: 0, children: backgroundSlot }) : null,
|
|
1635
|
+
/* @__PURE__ */ jsxs21(
|
|
1636
|
+
YStack22,
|
|
1435
1637
|
{
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1638
|
+
gap: "$5",
|
|
1639
|
+
backgroundColor: isCenteredCard ? "$color1" : "transparent",
|
|
1640
|
+
borderRadius: isCenteredCard ? "$7" : void 0,
|
|
1641
|
+
padding: isCenteredCard ? "$4" : void 0,
|
|
1642
|
+
borderWidth: isCenteredCard ? 1 : 0,
|
|
1643
|
+
borderColor: isCenteredCard ? "$color4" : void 0,
|
|
1644
|
+
children: [
|
|
1645
|
+
/* @__PURE__ */ jsxs21(YStack22, { alignItems: "center", gap: "$2", children: [
|
|
1646
|
+
logo && /* @__PURE__ */ jsx28(YStack22, { paddingBottom: "$3", children: logo }),
|
|
1647
|
+
hero ? /* @__PURE__ */ jsx28(YStack22, { paddingBottom: "$2", children: hero }) : null,
|
|
1648
|
+
/* @__PURE__ */ jsx28(SizableText25, { size: isEditorial ? "$10" : "$9", fontWeight: "700", textAlign: "center", fontFamily: isEditorial ? "$heading" : void 0, children: title }),
|
|
1649
|
+
/* @__PURE__ */ jsx28(SizableText25, { size: "$4", color: "$color10", textAlign: "center", children: subtitle })
|
|
1650
|
+
] }),
|
|
1651
|
+
providers.length > 0 && /* @__PURE__ */ jsx28(YStack22, { gap: "$2.5", children: providers.map((p) => /* @__PURE__ */ jsx28(
|
|
1652
|
+
Button6,
|
|
1653
|
+
{
|
|
1654
|
+
size: "$5",
|
|
1655
|
+
borderWidth: 1.5,
|
|
1656
|
+
borderColor: providerButtonStyle === "brand" ? BRAND_STYLES[p.brand ?? "custom"].borderColor : "$color5",
|
|
1657
|
+
backgroundColor: providerButtonStyle === "brand" ? BRAND_STYLES[p.brand ?? "custom"].backgroundColor : "$color1",
|
|
1658
|
+
borderRadius: isEditorial ? "$6" : "$4",
|
|
1659
|
+
disabled: loading,
|
|
1660
|
+
onPress: () => onProviderPress?.(p.id),
|
|
1661
|
+
hoverStyle: { backgroundColor: providerButtonStyle === "brand" ? BRAND_STYLES[p.brand ?? "custom"].backgroundColor : "$color2" },
|
|
1662
|
+
pressStyle: { backgroundColor: "$color3" },
|
|
1663
|
+
children: /* @__PURE__ */ jsxs21(XStack17, { alignItems: "center", justifyContent: "space-between", width: "100%", gap: "$2", children: [
|
|
1664
|
+
/* @__PURE__ */ jsxs21(XStack17, { alignItems: "center", gap: "$2.5", children: [
|
|
1665
|
+
/* @__PURE__ */ jsx28(ProviderBadge, { provider: p }),
|
|
1666
|
+
/* @__PURE__ */ jsxs21(YStack22, { alignItems: "flex-start", children: [
|
|
1667
|
+
/* @__PURE__ */ jsx28(SizableText25, { size: "$4", fontWeight: "600", color: providerButtonStyle === "brand" ? BRAND_STYLES[p.brand ?? "custom"].textColor : void 0, children: p.name }),
|
|
1668
|
+
p.description ? /* @__PURE__ */ jsx28(SizableText25, { size: "$2", color: "$color10", children: p.description }) : null
|
|
1669
|
+
] })
|
|
1670
|
+
] }),
|
|
1671
|
+
/* @__PURE__ */ jsx28(SizableText25, { size: "$4", color: providerButtonStyle === "brand" ? BRAND_STYLES[p.brand ?? "custom"].textColor : "$color9", children: "\u2192" })
|
|
1672
|
+
] })
|
|
1673
|
+
},
|
|
1674
|
+
p.id
|
|
1675
|
+
)) }),
|
|
1676
|
+
showEmailForm && providers.length > 0 && /* @__PURE__ */ jsx28(Divider, { label: "or" }),
|
|
1677
|
+
showEmailForm && /* @__PURE__ */ jsxs21(YStack22, { gap: "$3", children: [
|
|
1678
|
+
/* @__PURE__ */ jsx28(Input, { label: "Email", placeholder: "your@email.com", value: email, onChangeText: setEmail, keyboardType: "email-address", autoCapitalize: "none" }),
|
|
1679
|
+
/* @__PURE__ */ jsx28(Input, { label: "Password", placeholder: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022", value: password, onChangeText: setPassword, secureTextEntry: true }),
|
|
1680
|
+
onForgotPassword && /* @__PURE__ */ jsx28(XStack17, { justifyContent: "flex-end", children: /* @__PURE__ */ jsx28(SizableText25, { size: "$3", color: "$color9", onPress: onForgotPassword, children: "Forgot password?" }) }),
|
|
1681
|
+
/* @__PURE__ */ jsx28(
|
|
1682
|
+
Button6,
|
|
1683
|
+
{
|
|
1684
|
+
size: "$5",
|
|
1685
|
+
backgroundColor: "$color9",
|
|
1686
|
+
color: "$color1",
|
|
1687
|
+
borderRadius: "$5",
|
|
1688
|
+
disabled: loading,
|
|
1689
|
+
onPress: () => onEmailSubmit?.(email, password),
|
|
1690
|
+
hoverStyle: { backgroundColor: "$color10" },
|
|
1691
|
+
pressStyle: { backgroundColor: "$color8" },
|
|
1692
|
+
icon: loading ? /* @__PURE__ */ jsx28(Spinner, { size: "small", color: "$color1" }) : void 0,
|
|
1693
|
+
children: "Sign In"
|
|
1694
|
+
}
|
|
1695
|
+
),
|
|
1696
|
+
onCreateAccount && /* @__PURE__ */ jsx28(Button6, { size: "$3", chromeless: true, onPress: onCreateAccount, children: /* @__PURE__ */ jsx28(SizableText25, { size: "$3", color: "$color9", children: "Create Account" }) })
|
|
1697
|
+
] }),
|
|
1698
|
+
(onTerms || onPrivacy) && /* @__PURE__ */ jsx28(YStack22, { paddingTop: "$2", alignItems: "center", children: /* @__PURE__ */ jsxs21(SizableText25, { size: "$2", color: "$color8", textAlign: "center", children: [
|
|
1699
|
+
"By continuing you agree to our",
|
|
1700
|
+
" ",
|
|
1701
|
+
onTerms && /* @__PURE__ */ jsx28(SizableText25, { size: "$2", color: "$color9", onPress: onTerms, children: "Terms of Service" }),
|
|
1702
|
+
onTerms && onPrivacy && " & ",
|
|
1703
|
+
onPrivacy && /* @__PURE__ */ jsx28(SizableText25, { size: "$2", color: "$color9", onPress: onPrivacy, children: "Privacy Policy" })
|
|
1704
|
+
] }) }),
|
|
1705
|
+
footerSlot
|
|
1706
|
+
]
|
|
1707
|
+
}
|
|
1708
|
+
)
|
|
1481
1709
|
] });
|
|
1482
1710
|
}
|
|
1483
1711
|
|
|
@@ -1679,7 +1907,7 @@ function NotificationBanner({ title, message, variant = "info", onPress, onDismi
|
|
|
1679
1907
|
}
|
|
1680
1908
|
|
|
1681
1909
|
// src/patterns/ProgressSteps.tsx
|
|
1682
|
-
import { Circle as
|
|
1910
|
+
import { Circle as Circle7, SizableText as SizableText31, XStack as XStack23, YStack as YStack27 } from "tamagui";
|
|
1683
1911
|
import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1684
1912
|
function ProgressSteps({ steps, currentStep, variant = "dots" }) {
|
|
1685
1913
|
if (variant === "bar") {
|
|
@@ -1691,7 +1919,7 @@ function ProgressSteps({ steps, currentStep, variant = "dots" }) {
|
|
|
1691
1919
|
}
|
|
1692
1920
|
return /* @__PURE__ */ jsx35(XStack23, { alignItems: "center", justifyContent: "center", gap: "$0", children: steps.map((label, i) => /* @__PURE__ */ jsxs27(XStack23, { alignItems: "center", gap: "$0", children: [
|
|
1693
1921
|
/* @__PURE__ */ jsxs27(YStack27, { alignItems: "center", gap: "$1.5", children: [
|
|
1694
|
-
/* @__PURE__ */ jsx35(
|
|
1922
|
+
/* @__PURE__ */ jsx35(Circle7, { size: variant === "numbered" ? 28 : 10, backgroundColor: i <= currentStep ? "$color9" : "$color4", animation: "quick", children: variant === "numbered" && /* @__PURE__ */ jsx35(SizableText31, { size: "$2", fontWeight: "600", color: i <= currentStep ? "$color1" : "$color8", children: i + 1 }) }),
|
|
1695
1923
|
/* @__PURE__ */ jsx35(SizableText31, { size: "$1", color: i <= currentStep ? "$color11" : "$color8", numberOfLines: 1, children: label })
|
|
1696
1924
|
] }),
|
|
1697
1925
|
i < steps.length - 1 && /* @__PURE__ */ jsx35(YStack27, { height: 2, width: 32, backgroundColor: i < currentStep ? "$color9" : "$color4", marginBottom: "$4" })
|
|
@@ -1701,11 +1929,11 @@ function ProgressSteps({ steps, currentStep, variant = "dots" }) {
|
|
|
1701
1929
|
// src/patterns/SwipeableRow.tsx
|
|
1702
1930
|
import { useState as useState8 } from "react";
|
|
1703
1931
|
import { Button as Button7, SizableText as SizableText32, XStack as XStack24, YStack as YStack28 } from "tamagui";
|
|
1704
|
-
import { Fragment as
|
|
1932
|
+
import { Fragment as Fragment3, jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1705
1933
|
function SwipeableRow({ children, leftActions, rightActions }) {
|
|
1706
1934
|
const [showActions, setShowActions] = useState8(false);
|
|
1707
1935
|
const actions = [...leftActions ?? [], ...rightActions ?? []];
|
|
1708
|
-
if (actions.length === 0) return /* @__PURE__ */ jsx36(
|
|
1936
|
+
if (actions.length === 0) return /* @__PURE__ */ jsx36(Fragment3, { children });
|
|
1709
1937
|
return /* @__PURE__ */ jsxs28(YStack28, { children: [
|
|
1710
1938
|
/* @__PURE__ */ jsx36(YStack28, { onLongPress: () => setShowActions((v) => !v), pressStyle: { opacity: 0.9 }, children }),
|
|
1711
1939
|
showActions && /* @__PURE__ */ jsx36(XStack24, { gap: "$2", padding: "$2", animation: "quick", enterStyle: { opacity: 0, scale: 0.95 }, children: actions.map((action) => /* @__PURE__ */ jsx36(
|
|
@@ -1779,7 +2007,7 @@ function MediaCard({ image, title, subtitle, overlay = "gradient", aspectRatio =
|
|
|
1779
2007
|
|
|
1780
2008
|
// src/patterns/Carousel.tsx
|
|
1781
2009
|
import { Children as Children2, useState as useState9 } from "react";
|
|
1782
|
-
import { Circle as
|
|
2010
|
+
import { Circle as Circle8, XStack as XStack26, YStack as YStack30 } from "tamagui";
|
|
1783
2011
|
import { ScrollView as ScrollView4 } from "react-native";
|
|
1784
2012
|
import { jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
1785
2013
|
function Carousel({ children, gap = "$3", snapToInterval, showIndicators = false }) {
|
|
@@ -1801,7 +2029,7 @@ function Carousel({ children, gap = "$3", snapToInterval, showIndicators = false
|
|
|
1801
2029
|
children
|
|
1802
2030
|
}
|
|
1803
2031
|
),
|
|
1804
|
-
showIndicators && count > 1 && /* @__PURE__ */ jsx38(XStack26, { justifyContent: "center", gap: "$1.5", children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx38(
|
|
2032
|
+
showIndicators && count > 1 && /* @__PURE__ */ jsx38(XStack26, { justifyContent: "center", gap: "$1.5", children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx38(Circle8, { size: 6, backgroundColor: i === activeIndex ? "$color9" : "$color4", animation: "quick" }, i)) })
|
|
1805
2033
|
] });
|
|
1806
2034
|
}
|
|
1807
2035
|
|
|
@@ -2092,7 +2320,7 @@ function AuthorRow({ author, role, avatar }) {
|
|
|
2092
2320
|
] })
|
|
2093
2321
|
] });
|
|
2094
2322
|
}
|
|
2095
|
-
function
|
|
2323
|
+
function TestimonialCard2({ quote, author, role, avatar, rating, variant = "card" }) {
|
|
2096
2324
|
if (variant === "minimal") {
|
|
2097
2325
|
return /* @__PURE__ */ jsxs34(YStack35, { gap: "$3", paddingVertical: "$2", children: [
|
|
2098
2326
|
/* @__PURE__ */ jsx43(Stars2, { count: rating }),
|
|
@@ -2479,7 +2707,7 @@ function PasswordInput({ value = "", onChangeText, placeholder = "Password", lab
|
|
|
2479
2707
|
}
|
|
2480
2708
|
|
|
2481
2709
|
// src/patterns/AvatarGroup.tsx
|
|
2482
|
-
import { Circle as
|
|
2710
|
+
import { Circle as Circle9, Image as Image8, SizableText as SizableText42, XStack as XStack35 } from "tamagui";
|
|
2483
2711
|
import { jsx as jsx48, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2484
2712
|
function getInitials(name) {
|
|
2485
2713
|
if (!name) return "?";
|
|
@@ -2487,7 +2715,7 @@ function getInitials(name) {
|
|
|
2487
2715
|
}
|
|
2488
2716
|
function AvatarItem({ uri, name, color, size }) {
|
|
2489
2717
|
return /* @__PURE__ */ jsx48(
|
|
2490
|
-
|
|
2718
|
+
Circle9,
|
|
2491
2719
|
{
|
|
2492
2720
|
size,
|
|
2493
2721
|
backgroundColor: color ?? "$color4",
|
|
@@ -2506,7 +2734,7 @@ function AvatarGroup({ avatars, max = 4, size = 36, overlap = 10 }) {
|
|
|
2506
2734
|
return /* @__PURE__ */ jsxs39(XStack35, { alignItems: "center", children: [
|
|
2507
2735
|
visible.map((avatar, i) => /* @__PURE__ */ jsx48(XStack35, { marginLeft: i === 0 ? 0 : -overlap, zIndex: visible.length - i, children: /* @__PURE__ */ jsx48(AvatarItem, { ...avatar, size }) }, i)),
|
|
2508
2736
|
remaining > 0 && /* @__PURE__ */ jsx48(XStack35, { marginLeft: -overlap, zIndex: 0, children: /* @__PURE__ */ jsx48(
|
|
2509
|
-
|
|
2737
|
+
Circle9,
|
|
2510
2738
|
{
|
|
2511
2739
|
size,
|
|
2512
2740
|
backgroundColor: "$color6",
|
|
@@ -2525,7 +2753,7 @@ function AvatarGroup({ avatars, max = 4, size = 36, overlap = 10 }) {
|
|
|
2525
2753
|
|
|
2526
2754
|
// src/patterns/SwipeCards.tsx
|
|
2527
2755
|
import { useState as useState13, useCallback as useCallback6 } from "react";
|
|
2528
|
-
import { Circle as
|
|
2756
|
+
import { Circle as Circle10, SizableText as SizableText43, XStack as XStack36, YStack as YStack39 } from "tamagui";
|
|
2529
2757
|
import { jsx as jsx49, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2530
2758
|
var STACK_SIZE = 3;
|
|
2531
2759
|
var CARD_OFFSETS = [
|
|
@@ -2629,7 +2857,7 @@ function SwipeCards({
|
|
|
2629
2857
|
}) }) }),
|
|
2630
2858
|
/* @__PURE__ */ jsxs40(XStack36, { justifyContent: "center", gap: "$6", paddingBottom: "$4", children: [
|
|
2631
2859
|
/* @__PURE__ */ jsx49(
|
|
2632
|
-
|
|
2860
|
+
Circle10,
|
|
2633
2861
|
{
|
|
2634
2862
|
size: 60,
|
|
2635
2863
|
backgroundColor: "$red3",
|
|
@@ -2644,7 +2872,7 @@ function SwipeCards({
|
|
|
2644
2872
|
}
|
|
2645
2873
|
),
|
|
2646
2874
|
/* @__PURE__ */ jsx49(
|
|
2647
|
-
|
|
2875
|
+
Circle10,
|
|
2648
2876
|
{
|
|
2649
2877
|
size: 60,
|
|
2650
2878
|
backgroundColor: "$green3",
|
|
@@ -3137,41 +3365,45 @@ function UserPreferences({ sections }) {
|
|
|
3137
3365
|
}
|
|
3138
3366
|
|
|
3139
3367
|
// src/patterns/BlinkSelect.tsx
|
|
3140
|
-
import { Select, Adapt, Sheet as Sheet3, SizableText as SizableText48 } from "tamagui";
|
|
3368
|
+
import { Select, Adapt, Sheet as Sheet3, YStack as YStack45, SizableText as SizableText48 } from "tamagui";
|
|
3141
3369
|
import { jsx as jsx55, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3142
3370
|
function BlinkSelect({
|
|
3143
3371
|
items,
|
|
3144
3372
|
value,
|
|
3145
3373
|
onValueChange,
|
|
3146
3374
|
placeholder = "Select...",
|
|
3375
|
+
label,
|
|
3147
3376
|
size = "$4",
|
|
3148
3377
|
disabled,
|
|
3149
3378
|
width = "100%"
|
|
3150
3379
|
}) {
|
|
3151
|
-
return /* @__PURE__ */ jsxs45(
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
/* @__PURE__ */ jsx55(
|
|
3162
|
-
/* @__PURE__ */ jsx55(Sheet3
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
/* @__PURE__ */
|
|
3167
|
-
/* @__PURE__ */ jsx55(Select.
|
|
3168
|
-
/* @__PURE__ */ jsx55(Select.
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3380
|
+
return /* @__PURE__ */ jsxs45(YStack45, { gap: "$1.5", width, children: [
|
|
3381
|
+
label ? /* @__PURE__ */ jsx55(SizableText48, { size: "$3", fontWeight: "600", children: label }) : null,
|
|
3382
|
+
/* @__PURE__ */ jsxs45(
|
|
3383
|
+
Select,
|
|
3384
|
+
{
|
|
3385
|
+
value,
|
|
3386
|
+
onValueChange,
|
|
3387
|
+
disablePreventBodyScroll: true,
|
|
3388
|
+
...disabled ? { disabled: true } : {},
|
|
3389
|
+
children: [
|
|
3390
|
+
/* @__PURE__ */ jsx55(Select.Trigger, { width: "100%", iconAfter: () => /* @__PURE__ */ jsx55(SizableText48, { children: "\u25BC" }), size, children: /* @__PURE__ */ jsx55(Select.Value, { placeholder }) }),
|
|
3391
|
+
/* @__PURE__ */ jsx55(Adapt, { when: "maxMd", platform: "touch", children: /* @__PURE__ */ jsxs45(Sheet3, { modal: true, dismissOnSnapToBottom: true, snapPointsMode: "fit", children: [
|
|
3392
|
+
/* @__PURE__ */ jsx55(Sheet3.Frame, { padding: "$4", children: /* @__PURE__ */ jsx55(Adapt.Contents, {}) }),
|
|
3393
|
+
/* @__PURE__ */ jsx55(Sheet3.Overlay, {})
|
|
3394
|
+
] }) }),
|
|
3395
|
+
/* @__PURE__ */ jsxs45(Select.Content, { zIndex: 2e5, children: [
|
|
3396
|
+
/* @__PURE__ */ jsx55(Select.ScrollUpButton, { alignItems: "center", justifyContent: "center", height: "$3", children: /* @__PURE__ */ jsx55(SizableText48, { children: "\u25B2" }) }),
|
|
3397
|
+
/* @__PURE__ */ jsx55(Select.Viewport, { minWidth: 200, children: /* @__PURE__ */ jsx55(Select.Group, { children: items.map((item, i) => /* @__PURE__ */ jsxs45(Select.Item, { index: i, value: item.value, children: [
|
|
3398
|
+
/* @__PURE__ */ jsx55(Select.ItemText, { children: item.label }),
|
|
3399
|
+
/* @__PURE__ */ jsx55(Select.ItemIndicator, { marginLeft: "auto", children: /* @__PURE__ */ jsx55(SizableText48, { children: "\u2713" }) })
|
|
3400
|
+
] }, item.value)) }) }),
|
|
3401
|
+
/* @__PURE__ */ jsx55(Select.ScrollDownButton, { alignItems: "center", justifyContent: "center", height: "$3", children: /* @__PURE__ */ jsx55(SizableText48, { children: "\u25BC" }) })
|
|
3402
|
+
] })
|
|
3403
|
+
]
|
|
3404
|
+
}
|
|
3405
|
+
)
|
|
3406
|
+
] });
|
|
3175
3407
|
}
|
|
3176
3408
|
|
|
3177
3409
|
// src/patterns/BlinkDialog.tsx
|
|
@@ -3266,6 +3498,154 @@ function BlinkPopover({
|
|
|
3266
3498
|
)
|
|
3267
3499
|
] });
|
|
3268
3500
|
}
|
|
3501
|
+
|
|
3502
|
+
// src/patterns/ImmersiveMediaScreen.tsx
|
|
3503
|
+
import { Button as Button12, SizableText as SizableText49, XStack as XStack42, YStack as YStack47 } from "tamagui";
|
|
3504
|
+
import { jsx as jsx58, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3505
|
+
function ImmersiveMediaScreen({
|
|
3506
|
+
variant = "reel",
|
|
3507
|
+
media,
|
|
3508
|
+
title,
|
|
3509
|
+
subtitle,
|
|
3510
|
+
topLeft,
|
|
3511
|
+
topCenter,
|
|
3512
|
+
topRight,
|
|
3513
|
+
actions = [],
|
|
3514
|
+
bottomMeta,
|
|
3515
|
+
inputPlaceholder,
|
|
3516
|
+
onInputPress,
|
|
3517
|
+
sheetContent
|
|
3518
|
+
}) {
|
|
3519
|
+
const showSheet = variant === "sheet";
|
|
3520
|
+
return /* @__PURE__ */ jsxs48(YStack47, { flex: 1, backgroundColor: "$color1", children: [
|
|
3521
|
+
/* @__PURE__ */ jsxs48(YStack47, { flex: 1, position: "relative", children: [
|
|
3522
|
+
media,
|
|
3523
|
+
/* @__PURE__ */ jsxs48(XStack42, { position: "absolute", top: "$5", left: "$4", right: "$4", justifyContent: "space-between", alignItems: "center", children: [
|
|
3524
|
+
/* @__PURE__ */ jsx58(XStack42, { minWidth: 56, children: topLeft }),
|
|
3525
|
+
/* @__PURE__ */ jsx58(YStack47, { alignItems: "center", flex: 1, children: topCenter }),
|
|
3526
|
+
/* @__PURE__ */ jsx58(XStack42, { minWidth: 56, justifyContent: "flex-end", children: topRight })
|
|
3527
|
+
] }),
|
|
3528
|
+
actions.length > 0 ? /* @__PURE__ */ jsx58(YStack47, { position: "absolute", right: "$3", bottom: showSheet ? "$20" : "$10", gap: "$3", alignItems: "center", children: actions.map((action) => /* @__PURE__ */ jsxs48(YStack47, { gap: "$1", alignItems: "center", onPress: action.onPress, children: [
|
|
3529
|
+
/* @__PURE__ */ jsx58(
|
|
3530
|
+
YStack47,
|
|
3531
|
+
{
|
|
3532
|
+
width: 44,
|
|
3533
|
+
height: 44,
|
|
3534
|
+
borderRadius: "$10",
|
|
3535
|
+
backgroundColor: "rgba(0,0,0,0.55)",
|
|
3536
|
+
alignItems: "center",
|
|
3537
|
+
justifyContent: "center",
|
|
3538
|
+
children: action.icon ?? /* @__PURE__ */ jsx58(SizableText49, { size: "$5", color: "white", children: "\u2022" })
|
|
3539
|
+
}
|
|
3540
|
+
),
|
|
3541
|
+
action.value ? /* @__PURE__ */ jsx58(SizableText49, { size: "$2", color: "white", children: action.value }) : null,
|
|
3542
|
+
action.label ? /* @__PURE__ */ jsx58(SizableText49, { size: "$1", color: "rgba(255,255,255,0.8)", children: action.label }) : null
|
|
3543
|
+
] }, action.id)) }) : null,
|
|
3544
|
+
/* @__PURE__ */ jsxs48(YStack47, { position: "absolute", left: "$4", right: "$4", bottom: showSheet ? "$20" : "$6", gap: "$2", children: [
|
|
3545
|
+
title ? /* @__PURE__ */ jsx58(SizableText49, { size: "$6", fontWeight: "800", color: "white", children: title }) : null,
|
|
3546
|
+
subtitle ? /* @__PURE__ */ jsx58(SizableText49, { size: "$3", color: "rgba(255,255,255,0.82)", children: subtitle }) : null,
|
|
3547
|
+
bottomMeta,
|
|
3548
|
+
variant === "story" && inputPlaceholder ? /* @__PURE__ */ jsx58(
|
|
3549
|
+
XStack42,
|
|
3550
|
+
{
|
|
3551
|
+
onPress: onInputPress,
|
|
3552
|
+
alignItems: "center",
|
|
3553
|
+
paddingHorizontal: "$4",
|
|
3554
|
+
paddingVertical: "$3",
|
|
3555
|
+
borderRadius: "$10",
|
|
3556
|
+
backgroundColor: "rgba(255,255,255,0.14)",
|
|
3557
|
+
borderWidth: 1,
|
|
3558
|
+
borderColor: "rgba(255,255,255,0.25)",
|
|
3559
|
+
children: /* @__PURE__ */ jsx58(SizableText49, { size: "$3", color: "rgba(255,255,255,0.82)", children: inputPlaceholder })
|
|
3560
|
+
}
|
|
3561
|
+
) : null
|
|
3562
|
+
] })
|
|
3563
|
+
] }),
|
|
3564
|
+
showSheet ? /* @__PURE__ */ jsxs48(YStack47, { padding: "$4", gap: "$3", backgroundColor: "$background", borderTopLeftRadius: "$8", borderTopRightRadius: "$8", marginTop: -18, children: [
|
|
3565
|
+
/* @__PURE__ */ jsx58(XStack42, { alignSelf: "center", width: 48, height: 5, borderRadius: "$10", backgroundColor: "$color5" }),
|
|
3566
|
+
sheetContent,
|
|
3567
|
+
inputPlaceholder ? /* @__PURE__ */ jsx58(Button12, { size: "$5", backgroundColor: "$color9", color: "$color1", onPress: onInputPress, children: inputPlaceholder }) : null
|
|
3568
|
+
] }) : null
|
|
3569
|
+
] });
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
// src/patterns/FinanceDashboard.tsx
|
|
3573
|
+
import { SizableText as SizableText50, XStack as XStack43, YStack as YStack48 } from "tamagui";
|
|
3574
|
+
import { jsx as jsx59, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3575
|
+
function FinanceDashboard({
|
|
3576
|
+
title = "Overview",
|
|
3577
|
+
balanceLabel = "Available balance",
|
|
3578
|
+
balance,
|
|
3579
|
+
rangeLabel,
|
|
3580
|
+
metrics = [],
|
|
3581
|
+
quickActions = [],
|
|
3582
|
+
sections = [],
|
|
3583
|
+
chartSlot,
|
|
3584
|
+
topRight
|
|
3585
|
+
}) {
|
|
3586
|
+
return /* @__PURE__ */ jsxs49(YStack48, { flex: 1, backgroundColor: "$background", padding: "$4", gap: "$4", children: [
|
|
3587
|
+
/* @__PURE__ */ jsxs49(XStack43, { justifyContent: "space-between", alignItems: "center", paddingTop: "$4", children: [
|
|
3588
|
+
/* @__PURE__ */ jsxs49(YStack48, { gap: "$1", children: [
|
|
3589
|
+
/* @__PURE__ */ jsx59(SizableText50, { size: "$6", fontWeight: "700", children: title }),
|
|
3590
|
+
rangeLabel ? /* @__PURE__ */ jsx59(SizableText50, { size: "$2", color: "$color9", children: rangeLabel }) : null
|
|
3591
|
+
] }),
|
|
3592
|
+
topRight
|
|
3593
|
+
] }),
|
|
3594
|
+
/* @__PURE__ */ jsxs49(YStack48, { backgroundColor: "$color1", borderRadius: "$7", padding: "$4", gap: "$2", borderWidth: 1, borderColor: "$color4", children: [
|
|
3595
|
+
/* @__PURE__ */ jsx59(SizableText50, { size: "$3", color: "$color10", children: balanceLabel }),
|
|
3596
|
+
/* @__PURE__ */ jsx59(SizableText50, { size: "$11", fontWeight: "800", children: balance }),
|
|
3597
|
+
chartSlot ? /* @__PURE__ */ jsx59(YStack48, { marginTop: "$2", children: chartSlot }) : null
|
|
3598
|
+
] }),
|
|
3599
|
+
metrics.length > 0 ? /* @__PURE__ */ jsx59(XStack43, { gap: "$3", flexWrap: "wrap", children: metrics.map((metric) => /* @__PURE__ */ jsxs49(YStack48, { flex: 1, minWidth: 120, backgroundColor: "$color1", borderRadius: "$6", padding: "$3", gap: "$1", borderWidth: 1, borderColor: "$color4", children: [
|
|
3600
|
+
/* @__PURE__ */ jsx59(SizableText50, { size: "$2", color: "$color10", children: metric.label }),
|
|
3601
|
+
/* @__PURE__ */ jsx59(SizableText50, { size: "$7", fontWeight: "800", children: metric.value }),
|
|
3602
|
+
metric.change ? /* @__PURE__ */ jsx59(SizableText50, { size: "$2", color: "$color9", children: metric.change }) : null
|
|
3603
|
+
] }, metric.label)) }) : null,
|
|
3604
|
+
quickActions.length > 0 ? /* @__PURE__ */ jsx59(XStack43, { gap: "$3", flexWrap: "wrap", children: quickActions.map((action) => /* @__PURE__ */ jsxs49(
|
|
3605
|
+
YStack48,
|
|
3606
|
+
{
|
|
3607
|
+
flex: 1,
|
|
3608
|
+
minWidth: 88,
|
|
3609
|
+
backgroundColor: "$color1",
|
|
3610
|
+
borderRadius: "$6",
|
|
3611
|
+
padding: "$3",
|
|
3612
|
+
gap: "$2",
|
|
3613
|
+
alignItems: "center",
|
|
3614
|
+
justifyContent: "center",
|
|
3615
|
+
borderWidth: 1,
|
|
3616
|
+
borderColor: "$color4",
|
|
3617
|
+
onPress: action.onPress,
|
|
3618
|
+
children: [
|
|
3619
|
+
/* @__PURE__ */ jsx59(YStack48, { width: 36, height: 36, borderRadius: "$10", backgroundColor: "$color3", alignItems: "center", justifyContent: "center", children: action.icon ?? /* @__PURE__ */ jsx59(SizableText50, { size: "$4", children: "\u2022" }) }),
|
|
3620
|
+
/* @__PURE__ */ jsx59(SizableText50, { size: "$2", textAlign: "center", children: action.label })
|
|
3621
|
+
]
|
|
3622
|
+
},
|
|
3623
|
+
action.id
|
|
3624
|
+
)) }) : null,
|
|
3625
|
+
/* @__PURE__ */ jsx59(YStack48, { gap: "$3", children: sections.map((section, index) => /* @__PURE__ */ jsxs49(YStack48, { backgroundColor: "$color1", borderRadius: "$6", borderWidth: 1, borderColor: "$color4", overflow: "hidden", children: [
|
|
3626
|
+
/* @__PURE__ */ jsx59(XStack43, { padding: "$3", justifyContent: "space-between", alignItems: "center", children: /* @__PURE__ */ jsx59(SizableText50, { size: "$4", fontWeight: "700", children: section.title }) }),
|
|
3627
|
+
/* @__PURE__ */ jsx59(YStack48, { children: section.rows.map((row, index2) => /* @__PURE__ */ jsxs49(
|
|
3628
|
+
XStack43,
|
|
3629
|
+
{
|
|
3630
|
+
padding: "$3",
|
|
3631
|
+
gap: "$3",
|
|
3632
|
+
alignItems: "center",
|
|
3633
|
+
borderTopWidth: index2 === 0 ? 0 : 1,
|
|
3634
|
+
borderTopColor: "$color4",
|
|
3635
|
+
children: [
|
|
3636
|
+
row.leading ? /* @__PURE__ */ jsx59(YStack48, { width: 32, height: 32, borderRadius: "$8", backgroundColor: "$color3", alignItems: "center", justifyContent: "center", children: row.leading }) : null,
|
|
3637
|
+
/* @__PURE__ */ jsxs49(YStack48, { flex: 1, children: [
|
|
3638
|
+
/* @__PURE__ */ jsx59(SizableText50, { size: "$3", fontWeight: "600", children: row.title }),
|
|
3639
|
+
row.subtitle ? /* @__PURE__ */ jsx59(SizableText50, { size: "$2", color: "$color10", children: row.subtitle }) : null
|
|
3640
|
+
] }),
|
|
3641
|
+
row.value ? /* @__PURE__ */ jsx59(SizableText50, { size: "$3", color: "$color11", children: row.value }) : null
|
|
3642
|
+
]
|
|
3643
|
+
},
|
|
3644
|
+
row.id
|
|
3645
|
+
)) })
|
|
3646
|
+
] }, section.id ?? `${section.title}-${index}`)) })
|
|
3647
|
+
] });
|
|
3648
|
+
}
|
|
3269
3649
|
export {
|
|
3270
3650
|
Accordion,
|
|
3271
3651
|
ActionSheet,
|
|
@@ -3294,14 +3674,14 @@ export {
|
|
|
3294
3674
|
BlinkToggleGroup,
|
|
3295
3675
|
BlinkTooltip,
|
|
3296
3676
|
BottomSheet,
|
|
3297
|
-
|
|
3677
|
+
Button13 as Button,
|
|
3298
3678
|
Card2 as Card,
|
|
3299
3679
|
Carousel,
|
|
3300
3680
|
ChatBubble,
|
|
3301
3681
|
Checkbox,
|
|
3302
3682
|
Chip,
|
|
3303
3683
|
ChipGroup,
|
|
3304
|
-
|
|
3684
|
+
Circle11 as Circle,
|
|
3305
3685
|
ConfirmDialog,
|
|
3306
3686
|
Container,
|
|
3307
3687
|
CountdownBanner,
|
|
@@ -3314,6 +3694,7 @@ export {
|
|
|
3314
3694
|
EnsureFlexed,
|
|
3315
3695
|
EventCard,
|
|
3316
3696
|
Fieldset,
|
|
3697
|
+
FinanceDashboard,
|
|
3317
3698
|
FloatingActionButton,
|
|
3318
3699
|
Footer,
|
|
3319
3700
|
Form,
|
|
@@ -3333,6 +3714,7 @@ export {
|
|
|
3333
3714
|
ICONS,
|
|
3334
3715
|
Icon,
|
|
3335
3716
|
Image2 as Image,
|
|
3717
|
+
ImmersiveMediaScreen,
|
|
3336
3718
|
Input5 as Input,
|
|
3337
3719
|
KeyboardStickyFooter,
|
|
3338
3720
|
Label,
|
|
@@ -3373,7 +3755,7 @@ export {
|
|
|
3373
3755
|
SettingsScreen,
|
|
3374
3756
|
Sheet5 as Sheet,
|
|
3375
3757
|
SizableStack,
|
|
3376
|
-
|
|
3758
|
+
SizableText51 as SizableText,
|
|
3377
3759
|
Skeleton,
|
|
3378
3760
|
Slider2 as Slider,
|
|
3379
3761
|
Spacer,
|
|
@@ -3391,7 +3773,7 @@ export {
|
|
|
3391
3773
|
Image9 as TamaguiImage,
|
|
3392
3774
|
ListItem2 as TamaguiListItem,
|
|
3393
3775
|
TamaguiProvider,
|
|
3394
|
-
TestimonialCard,
|
|
3776
|
+
TestimonialCard2 as TestimonialCard,
|
|
3395
3777
|
Text,
|
|
3396
3778
|
TextArea,
|
|
3397
3779
|
Theme2 as Theme,
|
|
@@ -3404,9 +3786,9 @@ export {
|
|
|
3404
3786
|
View7 as View,
|
|
3405
3787
|
VisuallyHidden,
|
|
3406
3788
|
XGroup,
|
|
3407
|
-
|
|
3789
|
+
XStack44 as XStack,
|
|
3408
3790
|
YGroup,
|
|
3409
|
-
|
|
3791
|
+
YStack49 as YStack,
|
|
3410
3792
|
ZStack,
|
|
3411
3793
|
addTheme,
|
|
3412
3794
|
blinkConfig,
|