@beyondcorp/beyond-ui-native 0.1.4 → 0.1.6
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/chunk-BJTO5JO5.mjs +11 -0
- package/dist/chunk-BJTO5JO5.mjs.map +1 -0
- package/dist/index.js +74 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -52
- package/dist/index.mjs.map +1 -1
- package/dist/preset.mjs +1 -0
- package/dist/utilities.mjs +1 -0
- package/package.json +1 -1
- package/src/components/accordion/accordion.tsx +5 -5
- package/src/providers/BeyondUIProvider.tsx +29 -0
- package/src/templates/auth/ForgotPasswordTemplate.tsx +4 -4
- package/src/templates/auth/SignInTemplate.tsx +9 -9
- package/src/templates/auth/SignUpTemplate.tsx +7 -7
- package/src/templates/dashboard/DashboardTemplate.tsx +2 -2
- package/src/templates/settings/SettingsTemplate.tsx +25 -25
package/dist/index.mjs
CHANGED
|
@@ -7,6 +7,9 @@ import {
|
|
|
7
7
|
getAccessibilityProps,
|
|
8
8
|
joinA11yLabels
|
|
9
9
|
} from "./chunk-UTNW3LJA.mjs";
|
|
10
|
+
import {
|
|
11
|
+
__require
|
|
12
|
+
} from "./chunk-BJTO5JO5.mjs";
|
|
10
13
|
|
|
11
14
|
// src/primitives/box.tsx
|
|
12
15
|
import * as React from "react";
|
|
@@ -1717,7 +1720,7 @@ var AccordionItem = React19.forwardRef(
|
|
|
1717
1720
|
View18,
|
|
1718
1721
|
{
|
|
1719
1722
|
ref,
|
|
1720
|
-
className: cn("border-b border-border py-1", className),
|
|
1723
|
+
className: cn("border-b border-neutral-200 dark:border-neutral-800 py-1", className),
|
|
1721
1724
|
...props,
|
|
1722
1725
|
children
|
|
1723
1726
|
}
|
|
@@ -1754,8 +1757,8 @@ var AccordionTrigger = React19.forwardRef(
|
|
|
1754
1757
|
),
|
|
1755
1758
|
...props,
|
|
1756
1759
|
children: [
|
|
1757
|
-
/* @__PURE__ */ jsx22(View18, { className: "flex-1 pr-2", children: typeof children === "string" ? /* @__PURE__ */ jsx22(Text2, { className: "text-base font-medium text-
|
|
1758
|
-
/* @__PURE__ */ jsx22(Animated3.View, { style: { transform: [{ rotate }] }, children: /* @__PURE__ */ jsx22(Text2, { className: "text-
|
|
1760
|
+
/* @__PURE__ */ jsx22(View18, { className: "flex-1 pr-2", children: typeof children === "string" ? /* @__PURE__ */ jsx22(Text2, { className: "text-base font-medium text-neutral-900 dark:text-neutral-100", children }) : children }),
|
|
1761
|
+
/* @__PURE__ */ jsx22(Animated3.View, { style: { transform: [{ rotate }] }, children: /* @__PURE__ */ jsx22(Text2, { className: "text-neutral-500 dark:text-neutral-400 text-base font-semibold", children: "\u25BC" }) })
|
|
1759
1762
|
]
|
|
1760
1763
|
}
|
|
1761
1764
|
);
|
|
@@ -1770,9 +1773,9 @@ var AccordionContent = React19.forwardRef(
|
|
|
1770
1773
|
View18,
|
|
1771
1774
|
{
|
|
1772
1775
|
ref,
|
|
1773
|
-
className: cn("pt-1 pb-3 px-1
|
|
1776
|
+
className: cn("pt-1 pb-3 px-1", className),
|
|
1774
1777
|
...props,
|
|
1775
|
-
children: typeof children === "string" ? /* @__PURE__ */ jsx22(Text2, { className: "text-sm text-
|
|
1778
|
+
children: typeof children === "string" ? /* @__PURE__ */ jsx22(Text2, { className: "text-sm text-neutral-600 dark:text-neutral-400 leading-relaxed", children }) : children
|
|
1776
1779
|
}
|
|
1777
1780
|
);
|
|
1778
1781
|
}
|
|
@@ -2516,7 +2519,7 @@ var SignInTemplate = ({
|
|
|
2516
2519
|
{
|
|
2517
2520
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
2518
2521
|
style: { flex: 1 },
|
|
2519
|
-
className: cn("flex-1 bg-
|
|
2522
|
+
className: cn("flex-1 bg-neutral-50 dark:bg-neutral-950", className),
|
|
2520
2523
|
children: /* @__PURE__ */ jsx26(
|
|
2521
2524
|
ScrollView3,
|
|
2522
2525
|
{
|
|
@@ -2528,8 +2531,8 @@ var SignInTemplate = ({
|
|
|
2528
2531
|
children: /* @__PURE__ */ jsxs13(View22, { className: "w-full max-w-md mx-auto gap-6", children: [
|
|
2529
2532
|
/* @__PURE__ */ jsxs13(View22, { className: "items-center gap-2", children: [
|
|
2530
2533
|
logo && /* @__PURE__ */ jsx26(View22, { className: "mb-2", children: logo }),
|
|
2531
|
-
/* @__PURE__ */ jsx26(Heading, { level: 2, className: "text-3xl font-extrabold text-
|
|
2532
|
-
/* @__PURE__ */ jsx26(Text2, { className: "text-
|
|
2534
|
+
/* @__PURE__ */ jsx26(Heading, { level: 2, className: "text-3xl font-extrabold text-neutral-900 dark:text-neutral-50 text-center", children: title }),
|
|
2535
|
+
/* @__PURE__ */ jsx26(Text2, { className: "text-neutral-500 dark:text-neutral-400 text-center text-base", children: subtitle })
|
|
2533
2536
|
] }),
|
|
2534
2537
|
error && /* @__PURE__ */ jsx26(Alert, { variant: "danger", children: /* @__PURE__ */ jsx26(AlertDescription, { children: error }) }),
|
|
2535
2538
|
/* @__PURE__ */ jsxs13(View22, { className: "gap-4", children: [
|
|
@@ -2561,15 +2564,15 @@ var SignInTemplate = ({
|
|
|
2561
2564
|
if (passwordError) setPasswordError(void 0);
|
|
2562
2565
|
},
|
|
2563
2566
|
error: passwordError,
|
|
2564
|
-
rightElement: /* @__PURE__ */ jsx26(Pressable13, { onPress: () => setShowPassword((p) => !p), className: "p-1", children: /* @__PURE__ */ jsx26(Text2, { className: "text-xs text-
|
|
2567
|
+
rightElement: /* @__PURE__ */ jsx26(Pressable13, { onPress: () => setShowPassword((p) => !p), className: "p-1", children: /* @__PURE__ */ jsx26(Text2, { className: "text-xs text-neutral-500 dark:text-neutral-400 font-semibold", children: showPassword ? "HIDE" : "SHOW" }) })
|
|
2565
2568
|
}
|
|
2566
2569
|
) }),
|
|
2567
2570
|
/* @__PURE__ */ jsxs13(View22, { className: "flex-row items-center justify-between py-1", children: [
|
|
2568
2571
|
/* @__PURE__ */ jsxs13(View22, { className: "flex-row items-center gap-2", children: [
|
|
2569
2572
|
/* @__PURE__ */ jsx26(Checkbox, { checked: rememberMe, onCheckedChange: setRememberMe }),
|
|
2570
|
-
/* @__PURE__ */ jsx26(Text2, { className: "text-sm text-
|
|
2573
|
+
/* @__PURE__ */ jsx26(Text2, { className: "text-sm text-neutral-900 dark:text-neutral-100", children: "Remember me" })
|
|
2571
2574
|
] }),
|
|
2572
|
-
onForgotPassword && /* @__PURE__ */ jsx26(Pressable13, { onPress: onForgotPassword, children: /* @__PURE__ */ jsx26(Text2, { className: "text-sm font-semibold text-primary", children: "Forgot password?" }) })
|
|
2575
|
+
onForgotPassword && /* @__PURE__ */ jsx26(Pressable13, { onPress: onForgotPassword, children: /* @__PURE__ */ jsx26(Text2, { className: "text-sm font-semibold text-primary-600 dark:text-primary-400", children: "Forgot password?" }) })
|
|
2573
2576
|
] }),
|
|
2574
2577
|
/* @__PURE__ */ jsx26(
|
|
2575
2578
|
Button,
|
|
@@ -2586,7 +2589,7 @@ var SignInTemplate = ({
|
|
|
2586
2589
|
(onGooglePress || onApplePress) && /* @__PURE__ */ jsxs13(View22, { className: "gap-4", children: [
|
|
2587
2590
|
/* @__PURE__ */ jsxs13(View22, { className: "flex-row items-center gap-3", children: [
|
|
2588
2591
|
/* @__PURE__ */ jsx26(Separator, { className: "flex-1" }),
|
|
2589
|
-
/* @__PURE__ */ jsx26(Text2, { className: "text-xs text-
|
|
2592
|
+
/* @__PURE__ */ jsx26(Text2, { className: "text-xs text-neutral-500 dark:text-neutral-400 uppercase", children: "or continue with" }),
|
|
2590
2593
|
/* @__PURE__ */ jsx26(Separator, { className: "flex-1" })
|
|
2591
2594
|
] }),
|
|
2592
2595
|
/* @__PURE__ */ jsxs13(View22, { className: "flex-row gap-3", children: [
|
|
@@ -2611,8 +2614,8 @@ var SignInTemplate = ({
|
|
|
2611
2614
|
] })
|
|
2612
2615
|
] }),
|
|
2613
2616
|
onSignUpPress && /* @__PURE__ */ jsxs13(View22, { className: "flex-row justify-center items-center gap-1.5 pt-2", children: [
|
|
2614
|
-
/* @__PURE__ */ jsx26(Text2, { className: "text-sm text-
|
|
2615
|
-
/* @__PURE__ */ jsx26(Pressable13, { onPress: onSignUpPress, children: /* @__PURE__ */ jsx26(Text2, { className: "text-sm font-bold text-primary", children: "Sign Up" }) })
|
|
2617
|
+
/* @__PURE__ */ jsx26(Text2, { className: "text-sm text-neutral-500 dark:text-neutral-400", children: "Don't have an account?" }),
|
|
2618
|
+
/* @__PURE__ */ jsx26(Pressable13, { onPress: onSignUpPress, children: /* @__PURE__ */ jsx26(Text2, { className: "text-sm font-bold text-primary-600 dark:text-primary-400", children: "Sign Up" }) })
|
|
2616
2619
|
] })
|
|
2617
2620
|
] })
|
|
2618
2621
|
}
|
|
@@ -2682,7 +2685,7 @@ var SignUpTemplate = ({
|
|
|
2682
2685
|
{
|
|
2683
2686
|
behavior: Platform2.OS === "ios" ? "padding" : "height",
|
|
2684
2687
|
style: { flex: 1 },
|
|
2685
|
-
className: cn("flex-1 bg-
|
|
2688
|
+
className: cn("flex-1 bg-neutral-50 dark:bg-neutral-950", className),
|
|
2686
2689
|
children: /* @__PURE__ */ jsx27(
|
|
2687
2690
|
ScrollView4,
|
|
2688
2691
|
{
|
|
@@ -2694,8 +2697,8 @@ var SignUpTemplate = ({
|
|
|
2694
2697
|
children: /* @__PURE__ */ jsxs14(View23, { className: "w-full max-w-md mx-auto gap-6", children: [
|
|
2695
2698
|
/* @__PURE__ */ jsxs14(View23, { className: "items-center gap-2", children: [
|
|
2696
2699
|
logo && /* @__PURE__ */ jsx27(View23, { className: "mb-2", children: logo }),
|
|
2697
|
-
/* @__PURE__ */ jsx27(Heading, { level: 2, className: "text-3xl font-extrabold text-
|
|
2698
|
-
/* @__PURE__ */ jsx27(Text2, { className: "text-
|
|
2700
|
+
/* @__PURE__ */ jsx27(Heading, { level: 2, className: "text-3xl font-extrabold text-neutral-900 dark:text-neutral-50 text-center", children: title }),
|
|
2701
|
+
/* @__PURE__ */ jsx27(Text2, { className: "text-neutral-500 dark:text-neutral-400 text-center text-base", children: subtitle })
|
|
2699
2702
|
] }),
|
|
2700
2703
|
error && /* @__PURE__ */ jsx27(Alert, { variant: "danger", children: /* @__PURE__ */ jsx27(AlertDescription, { children: error }) }),
|
|
2701
2704
|
/* @__PURE__ */ jsxs14(View23, { className: "gap-4", children: [
|
|
@@ -2753,7 +2756,7 @@ var SignUpTemplate = ({
|
|
|
2753
2756
|
}
|
|
2754
2757
|
}
|
|
2755
2758
|
),
|
|
2756
|
-
/* @__PURE__ */ jsx27(Text2, { className: "text-sm text-
|
|
2759
|
+
/* @__PURE__ */ jsx27(Text2, { className: "text-sm text-neutral-900 dark:text-neutral-100 flex-1", children: "I agree to the Terms of Service & Privacy Policy" })
|
|
2757
2760
|
] }),
|
|
2758
2761
|
termsError && /* @__PURE__ */ jsx27(Text2, { className: "text-xs text-danger font-medium", children: termsError })
|
|
2759
2762
|
] }),
|
|
@@ -2772,7 +2775,7 @@ var SignUpTemplate = ({
|
|
|
2772
2775
|
(onGooglePress || onApplePress) && /* @__PURE__ */ jsxs14(View23, { className: "gap-4", children: [
|
|
2773
2776
|
/* @__PURE__ */ jsxs14(View23, { className: "flex-row items-center gap-3", children: [
|
|
2774
2777
|
/* @__PURE__ */ jsx27(Separator, { className: "flex-1" }),
|
|
2775
|
-
/* @__PURE__ */ jsx27(Text2, { className: "text-xs text-
|
|
2778
|
+
/* @__PURE__ */ jsx27(Text2, { className: "text-xs text-neutral-500 dark:text-neutral-400 uppercase", children: "or continue with" }),
|
|
2776
2779
|
/* @__PURE__ */ jsx27(Separator, { className: "flex-1" })
|
|
2777
2780
|
] }),
|
|
2778
2781
|
/* @__PURE__ */ jsxs14(View23, { className: "flex-row gap-3", children: [
|
|
@@ -2797,8 +2800,8 @@ var SignUpTemplate = ({
|
|
|
2797
2800
|
] })
|
|
2798
2801
|
] }),
|
|
2799
2802
|
onSignInPress && /* @__PURE__ */ jsxs14(View23, { className: "flex-row justify-center items-center gap-1.5 pt-2", children: [
|
|
2800
|
-
/* @__PURE__ */ jsx27(Text2, { className: "text-sm text-
|
|
2801
|
-
/* @__PURE__ */ jsx27(Pressable14, { onPress: onSignInPress, children: /* @__PURE__ */ jsx27(Text2, { className: "text-sm font-bold text-primary", children: "Sign In" }) })
|
|
2803
|
+
/* @__PURE__ */ jsx27(Text2, { className: "text-sm text-neutral-500 dark:text-neutral-400", children: "Already have an account?" }),
|
|
2804
|
+
/* @__PURE__ */ jsx27(Pressable14, { onPress: onSignInPress, children: /* @__PURE__ */ jsx27(Text2, { className: "text-sm font-bold text-primary-600 dark:text-primary-400", children: "Sign In" }) })
|
|
2802
2805
|
] })
|
|
2803
2806
|
] })
|
|
2804
2807
|
}
|
|
@@ -2842,7 +2845,7 @@ var ForgotPasswordTemplate = ({
|
|
|
2842
2845
|
{
|
|
2843
2846
|
behavior: Platform3.OS === "ios" ? "padding" : "height",
|
|
2844
2847
|
style: { flex: 1 },
|
|
2845
|
-
className: cn("flex-1 bg-
|
|
2848
|
+
className: cn("flex-1 bg-neutral-50 dark:bg-neutral-950", className),
|
|
2846
2849
|
children: /* @__PURE__ */ jsx28(
|
|
2847
2850
|
ScrollView5,
|
|
2848
2851
|
{
|
|
@@ -2853,8 +2856,8 @@ var ForgotPasswordTemplate = ({
|
|
|
2853
2856
|
showsVerticalScrollIndicator: false,
|
|
2854
2857
|
children: /* @__PURE__ */ jsxs15(View24, { className: "w-full max-w-md mx-auto gap-6", children: [
|
|
2855
2858
|
/* @__PURE__ */ jsxs15(View24, { className: "items-center gap-2", children: [
|
|
2856
|
-
/* @__PURE__ */ jsx28(Heading, { level: 2, className: "text-3xl font-extrabold text-
|
|
2857
|
-
/* @__PURE__ */ jsx28(Text2, { className: "text-
|
|
2859
|
+
/* @__PURE__ */ jsx28(Heading, { level: 2, className: "text-3xl font-extrabold text-neutral-900 dark:text-neutral-50 text-center", children: title }),
|
|
2860
|
+
/* @__PURE__ */ jsx28(Text2, { className: "text-neutral-500 dark:text-neutral-400 text-center text-base", children: subtitle })
|
|
2858
2861
|
] }),
|
|
2859
2862
|
error && /* @__PURE__ */ jsx28(Alert, { variant: "danger", children: /* @__PURE__ */ jsx28(AlertDescription, { children: error }) }),
|
|
2860
2863
|
isSuccess ? /* @__PURE__ */ jsxs15(View24, { className: "gap-4", children: [
|
|
@@ -2887,7 +2890,7 @@ var ForgotPasswordTemplate = ({
|
|
|
2887
2890
|
children: "Send Reset Link"
|
|
2888
2891
|
}
|
|
2889
2892
|
),
|
|
2890
|
-
onBackToSignIn && /* @__PURE__ */ jsx28(View24, { className: "flex-row justify-center items-center gap-1.5 pt-2", children: /* @__PURE__ */ jsx28(Pressable15, { onPress: onBackToSignIn, children: /* @__PURE__ */ jsx28(Text2, { className: "text-sm font-semibold text-primary", children: "Back to Sign In" }) }) })
|
|
2893
|
+
onBackToSignIn && /* @__PURE__ */ jsx28(View24, { className: "flex-row justify-center items-center gap-1.5 pt-2", children: /* @__PURE__ */ jsx28(Pressable15, { onPress: onBackToSignIn, children: /* @__PURE__ */ jsx28(Text2, { className: "text-sm font-semibold text-primary-600 dark:text-primary-400", children: "Back to Sign In" }) }) })
|
|
2891
2894
|
] })
|
|
2892
2895
|
] })
|
|
2893
2896
|
}
|
|
@@ -2921,11 +2924,11 @@ var DashboardTemplate = ({
|
|
|
2921
2924
|
{
|
|
2922
2925
|
...props,
|
|
2923
2926
|
style: [{ flex: 1 }, props.style],
|
|
2924
|
-
className: cn("flex-1 bg-
|
|
2927
|
+
className: cn("flex-1 bg-neutral-50 dark:bg-neutral-950", className),
|
|
2925
2928
|
contentContainerStyle: { paddingBottom: 40 },
|
|
2926
2929
|
showsVerticalScrollIndicator: false,
|
|
2927
2930
|
children: [
|
|
2928
|
-
/* @__PURE__ */ jsxs16(View25, { className: "px-6 pt-6 pb-4 flex-row items-center justify-between border-b border-border
|
|
2931
|
+
/* @__PURE__ */ jsxs16(View25, { className: "px-6 pt-6 pb-4 flex-row items-center justify-between border-b border-neutral-200 dark:border-neutral-800", children: [
|
|
2929
2932
|
/* @__PURE__ */ jsxs16(View25, { className: "flex-row items-center gap-3", children: [
|
|
2930
2933
|
/* @__PURE__ */ jsxs16(Avatar, { size: "lg", children: [
|
|
2931
2934
|
userAvatarUrl && /* @__PURE__ */ jsx29(AvatarImage, { source: { uri: userAvatarUrl } }),
|
|
@@ -3053,11 +3056,11 @@ var SettingsTemplate = ({
|
|
|
3053
3056
|
{
|
|
3054
3057
|
...props,
|
|
3055
3058
|
style: [{ flex: 1 }, props.style],
|
|
3056
|
-
className: cn("flex-1 bg-
|
|
3059
|
+
className: cn("flex-1 bg-neutral-50 dark:bg-neutral-950", className),
|
|
3057
3060
|
contentContainerStyle: { paddingBottom: 40 },
|
|
3058
3061
|
showsVerticalScrollIndicator: false,
|
|
3059
3062
|
children: /* @__PURE__ */ jsxs17(View26, { className: "px-6 pt-6 gap-6", children: [
|
|
3060
|
-
/* @__PURE__ */ jsx30(Heading, { level: 2, className: "text-2xl font-bold text-
|
|
3063
|
+
/* @__PURE__ */ jsx30(Heading, { level: 2, className: "text-2xl font-bold text-neutral-900 dark:text-neutral-50", children: "Settings & Profile" }),
|
|
3061
3064
|
/* @__PURE__ */ jsxs17(Card, { className: "p-4 flex-row items-center gap-4", children: [
|
|
3062
3065
|
/* @__PURE__ */ jsxs17(Avatar, { size: "lg", children: [
|
|
3063
3066
|
user.avatarUrl && /* @__PURE__ */ jsx30(AvatarImage, { source: { uri: user.avatarUrl } }),
|
|
@@ -3065,20 +3068,20 @@ var SettingsTemplate = ({
|
|
|
3065
3068
|
] }),
|
|
3066
3069
|
/* @__PURE__ */ jsxs17(View26, { className: "flex-1", children: [
|
|
3067
3070
|
/* @__PURE__ */ jsxs17(View26, { className: "flex-row items-center gap-2", children: [
|
|
3068
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-base font-bold text-
|
|
3071
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-base font-bold text-neutral-900 dark:text-neutral-100", children: user.name }),
|
|
3069
3072
|
user.plan && /* @__PURE__ */ jsx30(Badge, { variant: "primary", size: "sm", children: user.plan })
|
|
3070
3073
|
] }),
|
|
3071
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-
|
|
3074
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-neutral-500 dark:text-neutral-400", children: user.email })
|
|
3072
3075
|
] }),
|
|
3073
3076
|
onEditProfile && /* @__PURE__ */ jsx30(Button, { variant: "outline", size: "sm", onPress: onEditProfile, children: "Edit" })
|
|
3074
3077
|
] }),
|
|
3075
3078
|
/* @__PURE__ */ jsxs17(View26, { className: "gap-2", children: [
|
|
3076
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-xs font-bold text-
|
|
3077
|
-
/* @__PURE__ */ jsxs17(Card, { className: "divide-y divide-
|
|
3079
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-xs font-bold text-neutral-500 dark:text-neutral-400 uppercase tracking-wider px-1", children: "Preferences" }),
|
|
3080
|
+
/* @__PURE__ */ jsxs17(Card, { className: "divide-y divide-neutral-200 dark:divide-neutral-800", children: [
|
|
3078
3081
|
/* @__PURE__ */ jsxs17(View26, { className: "p-4 flex-row items-center justify-between", children: [
|
|
3079
3082
|
/* @__PURE__ */ jsxs17(View26, { className: "pr-4 flex-1", children: [
|
|
3080
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-
|
|
3081
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-
|
|
3083
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-neutral-900 dark:text-neutral-100", children: "Push Notifications" }),
|
|
3084
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-neutral-500 dark:text-neutral-400", children: "Receive real-time alerts on your mobile device" })
|
|
3082
3085
|
] }),
|
|
3083
3086
|
/* @__PURE__ */ jsx30(
|
|
3084
3087
|
Switch,
|
|
@@ -3090,8 +3093,8 @@ var SettingsTemplate = ({
|
|
|
3090
3093
|
] }),
|
|
3091
3094
|
/* @__PURE__ */ jsxs17(View26, { className: "p-4 flex-row items-center justify-between", children: [
|
|
3092
3095
|
/* @__PURE__ */ jsxs17(View26, { className: "pr-4 flex-1", children: [
|
|
3093
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-
|
|
3094
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-
|
|
3096
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-neutral-900 dark:text-neutral-100", children: "Email Notifications" }),
|
|
3097
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-neutral-500 dark:text-neutral-400", children: "Weekly digests and activity summaries" })
|
|
3095
3098
|
] }),
|
|
3096
3099
|
/* @__PURE__ */ jsx30(
|
|
3097
3100
|
Switch,
|
|
@@ -3103,15 +3106,15 @@ var SettingsTemplate = ({
|
|
|
3103
3106
|
] }),
|
|
3104
3107
|
/* @__PURE__ */ jsxs17(View26, { className: "p-4 flex-row items-center justify-between", children: [
|
|
3105
3108
|
/* @__PURE__ */ jsxs17(View26, { className: "pr-4 flex-1", children: [
|
|
3106
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-
|
|
3107
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-
|
|
3109
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-neutral-900 dark:text-neutral-100", children: "Dark Theme" }),
|
|
3110
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-neutral-500 dark:text-neutral-400", children: "Enable high contrast dark mode appearance" })
|
|
3108
3111
|
] }),
|
|
3109
3112
|
/* @__PURE__ */ jsx30(Switch, { checked: isDarkMode, onCheckedChange: onToggleDarkMode })
|
|
3110
3113
|
] }),
|
|
3111
3114
|
/* @__PURE__ */ jsxs17(View26, { className: "p-4 flex-row items-center justify-between", children: [
|
|
3112
3115
|
/* @__PURE__ */ jsxs17(View26, { className: "pr-4 flex-1", children: [
|
|
3113
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-
|
|
3114
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-
|
|
3116
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-neutral-900 dark:text-neutral-100", children: "Biometric Login" }),
|
|
3117
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-xs text-neutral-500 dark:text-neutral-400", children: "Use Face ID or fingerprint to authenticate" })
|
|
3115
3118
|
] }),
|
|
3116
3119
|
/* @__PURE__ */ jsx30(
|
|
3117
3120
|
Switch,
|
|
@@ -3124,16 +3127,16 @@ var SettingsTemplate = ({
|
|
|
3124
3127
|
] })
|
|
3125
3128
|
] }),
|
|
3126
3129
|
/* @__PURE__ */ jsxs17(View26, { className: "gap-2", children: [
|
|
3127
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-xs font-bold text-
|
|
3128
|
-
/* @__PURE__ */ jsxs17(Card, { className: "divide-y divide-
|
|
3130
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-xs font-bold text-neutral-500 dark:text-neutral-400 uppercase tracking-wider px-1", children: "Account & Security" }),
|
|
3131
|
+
/* @__PURE__ */ jsxs17(Card, { className: "divide-y divide-neutral-200 dark:divide-neutral-800", children: [
|
|
3129
3132
|
onChangePassword && /* @__PURE__ */ jsxs17(
|
|
3130
3133
|
Pressable17,
|
|
3131
3134
|
{
|
|
3132
3135
|
onPress: onChangePassword,
|
|
3133
|
-
className: "p-4 flex-row items-center justify-between active:bg-
|
|
3136
|
+
className: "p-4 flex-row items-center justify-between active:bg-neutral-100 dark:active:bg-neutral-800",
|
|
3134
3137
|
children: [
|
|
3135
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-
|
|
3136
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-
|
|
3138
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-neutral-900 dark:text-neutral-100", children: "Change Password" }),
|
|
3139
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-neutral-400 dark:text-neutral-500 text-xs", children: "\u203A" })
|
|
3137
3140
|
]
|
|
3138
3141
|
}
|
|
3139
3142
|
),
|
|
@@ -3141,10 +3144,10 @@ var SettingsTemplate = ({
|
|
|
3141
3144
|
Pressable17,
|
|
3142
3145
|
{
|
|
3143
3146
|
onPress: onViewTerms,
|
|
3144
|
-
className: "p-4 flex-row items-center justify-between active:bg-
|
|
3147
|
+
className: "p-4 flex-row items-center justify-between active:bg-neutral-100 dark:active:bg-neutral-800",
|
|
3145
3148
|
children: [
|
|
3146
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-
|
|
3147
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-
|
|
3149
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-neutral-900 dark:text-neutral-100", children: "Terms of Service" }),
|
|
3150
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-neutral-400 dark:text-neutral-500 text-xs", children: "\u203A" })
|
|
3148
3151
|
]
|
|
3149
3152
|
}
|
|
3150
3153
|
),
|
|
@@ -3152,10 +3155,10 @@ var SettingsTemplate = ({
|
|
|
3152
3155
|
Pressable17,
|
|
3153
3156
|
{
|
|
3154
3157
|
onPress: onViewPrivacy,
|
|
3155
|
-
className: "p-4 flex-row items-center justify-between active:bg-
|
|
3158
|
+
className: "p-4 flex-row items-center justify-between active:bg-neutral-100 dark:active:bg-neutral-800",
|
|
3156
3159
|
children: [
|
|
3157
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-
|
|
3158
|
-
/* @__PURE__ */ jsx30(Text2, { className: "text-
|
|
3160
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-sm font-semibold text-neutral-900 dark:text-neutral-100", children: "Privacy Policy" }),
|
|
3161
|
+
/* @__PURE__ */ jsx30(Text2, { className: "text-neutral-400 dark:text-neutral-500 text-xs", children: "\u203A" })
|
|
3159
3162
|
]
|
|
3160
3163
|
}
|
|
3161
3164
|
)
|
|
@@ -3184,6 +3187,28 @@ import { View as View27, useColorScheme as useRNColorScheme } from "react-native
|
|
|
3184
3187
|
import { colorScheme as nwColorScheme } from "nativewind";
|
|
3185
3188
|
import { PortalHost } from "@rn-primitives/portal";
|
|
3186
3189
|
import { jsx as jsx31, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3190
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
3191
|
+
try {
|
|
3192
|
+
const { LogBox } = __require("react-native");
|
|
3193
|
+
LogBox?.ignoreLogs?.([
|
|
3194
|
+
"You are setting the style `{ shadowOffset: ... }` as a prop",
|
|
3195
|
+
"You are setting the style"
|
|
3196
|
+
]);
|
|
3197
|
+
if (!Boolean(console.error?.__beyond_ui_filtered)) {
|
|
3198
|
+
const originalError = console.error;
|
|
3199
|
+
const filteredError = (...args) => {
|
|
3200
|
+
const fullMessage = args.map((arg) => typeof arg === "string" ? arg : "").join(" ");
|
|
3201
|
+
if (fullMessage.includes("shadowOffset") || fullMessage.includes("You are setting the style")) {
|
|
3202
|
+
return;
|
|
3203
|
+
}
|
|
3204
|
+
originalError(...args);
|
|
3205
|
+
};
|
|
3206
|
+
filteredError.__beyond_ui_filtered = true;
|
|
3207
|
+
console.error = filteredError;
|
|
3208
|
+
}
|
|
3209
|
+
} catch (_) {
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3187
3212
|
var BeyondUIContext = React26.createContext({
|
|
3188
3213
|
colorScheme: "light",
|
|
3189
3214
|
setColorScheme: () => {
|