@beyondcorp/beyond-ui-native 0.1.1 → 0.1.3
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-2B6HTSGM.mjs → chunk-RNHEGFYR.mjs} +16 -2
- package/dist/chunk-RNHEGFYR.mjs.map +1 -0
- package/dist/index.d.mts +2 -145
- package/dist/index.d.ts +2 -145
- package/dist/index.js +37 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -8
- package/dist/index.mjs.map +1 -1
- package/dist/preset-BmUHLoAa.d.mts +274 -0
- package/dist/preset-BmUHLoAa.d.ts +274 -0
- package/dist/preset.d.mts +1 -117
- package/dist/preset.d.ts +1 -117
- package/dist/preset.js +19 -3
- package/dist/preset.js.map +1 -1
- package/dist/preset.mjs +5 -3
- package/package.json +11 -5
- package/src/components/accordion/accordion.tsx +245 -0
- package/src/components/accordion/index.ts +1 -0
- package/src/components/alert/alert.tsx +118 -0
- package/src/components/alert/index.ts +1 -0
- package/src/components/avatar/avatar.tsx +125 -0
- package/src/components/avatar/index.ts +1 -0
- package/src/components/badge/badge.tsx +89 -0
- package/src/components/badge/index.ts +1 -0
- package/src/components/bottom-sheet/bottom-sheet.tsx +336 -0
- package/src/components/bottom-sheet/index.ts +1 -0
- package/src/components/button/button.tsx +172 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/card/card.tsx +121 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/checkbox/checkbox.tsx +100 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/data-table/data-table.tsx +277 -0
- package/src/components/data-table/index.ts +1 -0
- package/src/components/dialog/dialog.tsx +278 -0
- package/src/components/dialog/index.ts +1 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.tsx +130 -0
- package/src/components/radio/index.ts +1 -0
- package/src/components/radio/radio.tsx +117 -0
- package/src/components/select/index.ts +1 -0
- package/src/components/select/select.tsx +375 -0
- package/src/components/separator/index.ts +1 -0
- package/src/components/separator/separator.tsx +28 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/skeleton/skeleton.tsx +43 -0
- package/src/components/spinner/index.ts +1 -0
- package/src/components/spinner/spinner.tsx +46 -0
- package/src/components/stats-card/index.ts +1 -0
- package/src/components/stats-card/stats-card.tsx +92 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/switch/switch.tsx +80 -0
- package/src/components/tabs/index.ts +1 -0
- package/src/components/tabs/tabs.tsx +172 -0
- package/src/components/text/heading.tsx +50 -0
- package/src/components/text/index.ts +2 -0
- package/src/components/text/text.tsx +62 -0
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/textarea.tsx +87 -0
- package/src/components/toast/index.ts +2 -0
- package/src/components/toast/toast.tsx +136 -0
- package/src/components/toast/types.ts +32 -0
- package/src/index.ts +42 -0
- package/src/primitives/box.tsx +25 -0
- package/src/primitives/index.ts +2 -0
- package/src/primitives/pressable.tsx +49 -0
- package/src/providers/BeyondUIProvider.tsx +100 -0
- package/src/templates/auth/ForgotPasswordTemplate.tsx +132 -0
- package/src/templates/auth/SignInTemplate.tsx +213 -0
- package/src/templates/auth/SignUpTemplate.tsx +233 -0
- package/src/templates/auth/index.ts +3 -0
- package/src/templates/dashboard/DashboardTemplate.tsx +205 -0
- package/src/templates/dashboard/index.ts +1 -0
- package/src/templates/index.ts +3 -0
- package/src/templates/settings/SettingsTemplate.tsx +226 -0
- package/src/templates/settings/index.ts +1 -0
- package/src/theme/preset.ts +45 -0
- package/src/theme/tokens.ts +144 -0
- package/src/types/nativewind-env.d.ts +26 -0
- package/src/utilities/accessibility.ts +43 -0
- package/src/utilities/cn.ts +9 -0
- package/src/utilities/index.ts +2 -0
- package/dist/chunk-2B6HTSGM.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
preset_default,
|
|
3
3
|
tokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RNHEGFYR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
cn,
|
|
7
7
|
getAccessibilityProps,
|
|
@@ -2516,10 +2516,12 @@ var SignInTemplate = ({
|
|
|
2516
2516
|
KeyboardAvoidingView,
|
|
2517
2517
|
{
|
|
2518
2518
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
2519
|
+
style: { flex: 1 },
|
|
2519
2520
|
className: cn("flex-1 bg-background", className),
|
|
2520
2521
|
children: /* @__PURE__ */ jsx26(
|
|
2521
2522
|
ScrollView3,
|
|
2522
2523
|
{
|
|
2524
|
+
style: { flex: 1 },
|
|
2523
2525
|
contentContainerStyle: { flexGrow: 1, justifyContent: "center" },
|
|
2524
2526
|
className: "px-6 py-8",
|
|
2525
2527
|
keyboardShouldPersistTaps: "handled",
|
|
@@ -2680,10 +2682,12 @@ var SignUpTemplate = ({
|
|
|
2680
2682
|
KeyboardAvoidingView2,
|
|
2681
2683
|
{
|
|
2682
2684
|
behavior: Platform2.OS === "ios" ? "padding" : "height",
|
|
2685
|
+
style: { flex: 1 },
|
|
2683
2686
|
className: cn("flex-1 bg-background", className),
|
|
2684
2687
|
children: /* @__PURE__ */ jsx27(
|
|
2685
2688
|
ScrollView4,
|
|
2686
2689
|
{
|
|
2690
|
+
style: { flex: 1 },
|
|
2687
2691
|
contentContainerStyle: { flexGrow: 1, justifyContent: "center" },
|
|
2688
2692
|
className: "px-6 py-8",
|
|
2689
2693
|
keyboardShouldPersistTaps: "handled",
|
|
@@ -2838,10 +2842,12 @@ var ForgotPasswordTemplate = ({
|
|
|
2838
2842
|
KeyboardAvoidingView3,
|
|
2839
2843
|
{
|
|
2840
2844
|
behavior: Platform3.OS === "ios" ? "padding" : "height",
|
|
2845
|
+
style: { flex: 1 },
|
|
2841
2846
|
className: cn("flex-1 bg-background", className),
|
|
2842
2847
|
children: /* @__PURE__ */ jsx28(
|
|
2843
2848
|
ScrollView5,
|
|
2844
2849
|
{
|
|
2850
|
+
style: { flex: 1 },
|
|
2845
2851
|
contentContainerStyle: { flexGrow: 1, justifyContent: "center" },
|
|
2846
2852
|
className: "px-6 py-8",
|
|
2847
2853
|
keyboardShouldPersistTaps: "handled",
|
|
@@ -2914,10 +2920,11 @@ var DashboardTemplate = ({
|
|
|
2914
2920
|
return /* @__PURE__ */ jsxs16(
|
|
2915
2921
|
ScrollView6,
|
|
2916
2922
|
{
|
|
2923
|
+
...props,
|
|
2924
|
+
style: [{ flex: 1 }, props.style],
|
|
2917
2925
|
className: cn("flex-1 bg-background", className),
|
|
2918
2926
|
contentContainerStyle: { paddingBottom: 40 },
|
|
2919
2927
|
showsVerticalScrollIndicator: false,
|
|
2920
|
-
...props,
|
|
2921
2928
|
children: [
|
|
2922
2929
|
/* @__PURE__ */ jsxs16(View25, { className: "px-6 pt-6 pb-4 flex-row items-center justify-between border-b border-border/40", children: [
|
|
2923
2930
|
/* @__PURE__ */ jsxs16(View25, { className: "flex-row items-center gap-3", children: [
|
|
@@ -3046,10 +3053,11 @@ var SettingsTemplate = ({
|
|
|
3046
3053
|
return /* @__PURE__ */ jsx30(
|
|
3047
3054
|
ScrollView7,
|
|
3048
3055
|
{
|
|
3056
|
+
...props,
|
|
3057
|
+
style: [{ flex: 1 }, props.style],
|
|
3049
3058
|
className: cn("flex-1 bg-background", className),
|
|
3050
3059
|
contentContainerStyle: { paddingBottom: 40 },
|
|
3051
3060
|
showsVerticalScrollIndicator: false,
|
|
3052
|
-
...props,
|
|
3053
3061
|
children: /* @__PURE__ */ jsxs17(View26, { className: "px-6 pt-6 gap-6", children: [
|
|
3054
3062
|
/* @__PURE__ */ jsx30(Heading, { level: 2, className: "text-2xl font-bold text-foreground", children: "Settings & Profile" }),
|
|
3055
3063
|
/* @__PURE__ */ jsxs17(Card, { className: "p-4 flex-row items-center gap-4", children: [
|
|
@@ -3230,11 +3238,18 @@ function BeyondUIProvider({
|
|
|
3230
3238
|
}),
|
|
3231
3239
|
[activeScheme, toggleColorScheme]
|
|
3232
3240
|
);
|
|
3233
|
-
return /* @__PURE__ */ jsx31(BeyondUIContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx31(ToastContext.Provider, { value: toastContextValue, children: /* @__PURE__ */ jsxs18(
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3241
|
+
return /* @__PURE__ */ jsx31(BeyondUIContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx31(ToastContext.Provider, { value: toastContextValue, children: /* @__PURE__ */ jsxs18(
|
|
3242
|
+
View27,
|
|
3243
|
+
{
|
|
3244
|
+
style: { flex: 1 },
|
|
3245
|
+
className: activeScheme === "dark" ? "dark flex-1" : "flex-1",
|
|
3246
|
+
children: [
|
|
3247
|
+
children,
|
|
3248
|
+
/* @__PURE__ */ jsx31(PortalHost, {}),
|
|
3249
|
+
/* @__PURE__ */ jsx31(ToastContainer, { toasts, onDismiss: dismissToast })
|
|
3250
|
+
]
|
|
3251
|
+
}
|
|
3252
|
+
) }) });
|
|
3238
3253
|
}
|
|
3239
3254
|
export {
|
|
3240
3255
|
Accordion,
|