@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
|
@@ -154,7 +154,21 @@ var beyondUIPreset = {
|
|
|
154
154
|
destructive: tokens.colors.destructive,
|
|
155
155
|
success: tokens.colors.success,
|
|
156
156
|
warning: tokens.colors.warning,
|
|
157
|
-
neutral: tokens.colors.neutral
|
|
157
|
+
neutral: tokens.colors.neutral,
|
|
158
|
+
background: tokens.colors.semantic.light.background,
|
|
159
|
+
foreground: tokens.colors.semantic.light.foreground,
|
|
160
|
+
card: {
|
|
161
|
+
DEFAULT: tokens.colors.semantic.light.card,
|
|
162
|
+
foreground: tokens.colors.semantic.light.cardForeground
|
|
163
|
+
},
|
|
164
|
+
cardForeground: tokens.colors.semantic.light.cardForeground,
|
|
165
|
+
muted: {
|
|
166
|
+
DEFAULT: tokens.colors.semantic.light.mutedForeground,
|
|
167
|
+
foreground: tokens.colors.semantic.light.mutedForeground
|
|
168
|
+
},
|
|
169
|
+
mutedForeground: tokens.colors.semantic.light.mutedForeground,
|
|
170
|
+
border: tokens.colors.semantic.light.border,
|
|
171
|
+
input: tokens.colors.semantic.light.input
|
|
158
172
|
},
|
|
159
173
|
borderRadius: {
|
|
160
174
|
none: "0px",
|
|
@@ -175,4 +189,4 @@ export {
|
|
|
175
189
|
beyondUIPreset,
|
|
176
190
|
preset_default
|
|
177
191
|
};
|
|
178
|
-
//# sourceMappingURL=chunk-
|
|
192
|
+
//# sourceMappingURL=chunk-RNHEGFYR.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/tokens.ts","../src/theme/preset.ts"],"sourcesContent":["export const tokens = {\n colors: {\n primary: {\n 50: \"#eff6ff\",\n 100: \"#dbeafe\",\n 200: \"#bfdbfe\",\n 300: \"#93c5fd\",\n 400: \"#60a5fa\",\n 500: \"#3b82f6\",\n 600: \"#2563eb\",\n 700: \"#1d4ed8\",\n 800: \"#1e40af\",\n 900: \"#1e3a8a\",\n 950: \"#172554\",\n DEFAULT: \"#2563eb\",\n },\n secondary: {\n 50: \"#f8fafc\",\n 100: \"#f1f5f9\",\n 200: \"#e2e8f0\",\n 300: \"#cbd5e1\",\n 400: \"#94a3b8\",\n 500: \"#64748b\",\n 600: \"#475569\",\n 700: \"#334155\",\n 800: \"#1e293b\",\n 900: \"#0f172a\",\n 950: \"#020617\",\n DEFAULT: \"#475569\",\n },\n danger: {\n 50: \"#fef2f2\",\n 100: \"#fee2e2\",\n 200: \"#fecaca\",\n 300: \"#fca5a5\",\n 400: \"#f87171\",\n 500: \"#ef4444\",\n 600: \"#dc2626\",\n 700: \"#b91c1c\",\n 800: \"#991b1b\",\n 900: \"#7f1d1d\",\n 950: \"#450a0a\",\n DEFAULT: \"#dc2626\",\n },\n // Alias for shadcn / React Native convention compatibility\n destructive: {\n 50: \"#fef2f2\",\n 100: \"#fee2e2\",\n 200: \"#fecaca\",\n 300: \"#fca5a5\",\n 400: \"#f87171\",\n 500: \"#ef4444\",\n 600: \"#dc2626\",\n 700: \"#b91c1c\",\n 800: \"#991b1b\",\n 900: \"#7f1d1d\",\n 950: \"#450a0a\",\n DEFAULT: \"#dc2626\",\n },\n success: {\n 50: \"#f0fdf4\",\n 100: \"#dcfce7\",\n 200: \"#bbf7d0\",\n 300: \"#86efac\",\n 400: \"#4ade80\",\n 500: \"#22c55e\",\n 600: \"#16a34a\",\n 700: \"#15803d\",\n 800: \"#166534\",\n 900: \"#14532d\",\n 950: \"#052e16\",\n DEFAULT: \"#16a34a\",\n },\n warning: {\n 50: \"#fffbeb\",\n 100: \"#fef3c7\",\n 200: \"#fde68a\",\n 300: \"#fcd34d\",\n 400: \"#fbbf24\",\n 500: \"#f59e0b\",\n 600: \"#d97706\",\n 700: \"#b45309\",\n 800: \"#92400e\",\n 900: \"#78350f\",\n 950: \"#451a03\",\n DEFAULT: \"#d97706\",\n },\n neutral: {\n 50: \"#f9fafb\",\n 100: \"#f3f4f6\",\n 200: \"#e5e7eb\",\n 300: \"#d1d5db\",\n 400: \"#9ca3af\",\n 500: \"#6b7280\",\n 600: \"#4b5563\",\n 700: \"#374151\",\n 800: \"#1f2937\",\n 900: \"#111827\",\n 950: \"#030712\",\n },\n semantic: {\n light: {\n background: \"#ffffff\",\n foreground: \"#0f172a\",\n card: \"#ffffff\",\n cardForeground: \"#0f172a\",\n muted: \"#f8fafc\",\n mutedForeground: \"#64748b\",\n border: \"#e2e8f0\",\n input: \"#e2e8f0\",\n },\n dark: {\n background: \"#090d16\",\n foreground: \"#f8fafc\",\n card: \"#0f172a\",\n cardForeground: \"#f8fafc\",\n muted: \"#1e293b\",\n mutedForeground: \"#94a3b8\",\n border: \"#334155\",\n input: \"#334155\",\n },\n },\n },\n radius: {\n none: 0,\n sm: 6,\n md: 10,\n lg: 14,\n xl: 20,\n \"2xl\": 28,\n full: 9999,\n },\n spacing: {\n xs: 4,\n sm: 8,\n md: 12,\n lg: 16,\n xl: 24,\n \"2xl\": 32,\n \"3xl\": 48,\n },\n} as const;\n\nexport type BeyondUITokens = typeof tokens;\n","import { tokens } from \"./tokens\";\n\nexport { tokens };\n\nexport const beyondUIPreset = {\n darkMode: \"class\",\n theme: {\n extend: {\n colors: {\n primary: tokens.colors.primary,\n secondary: tokens.colors.secondary,\n danger: tokens.colors.danger,\n destructive: tokens.colors.destructive,\n success: tokens.colors.success,\n warning: tokens.colors.warning,\n neutral: tokens.colors.neutral,\n background: tokens.colors.semantic.light.background,\n foreground: tokens.colors.semantic.light.foreground,\n card: {\n DEFAULT: tokens.colors.semantic.light.card,\n foreground: tokens.colors.semantic.light.cardForeground,\n },\n cardForeground: tokens.colors.semantic.light.cardForeground,\n muted: {\n DEFAULT: tokens.colors.semantic.light.mutedForeground,\n foreground: tokens.colors.semantic.light.mutedForeground,\n },\n mutedForeground: tokens.colors.semantic.light.mutedForeground,\n border: tokens.colors.semantic.light.border,\n input: tokens.colors.semantic.light.input,\n },\n borderRadius: {\n none: \"0px\",\n sm: `${tokens.radius.sm}px`,\n md: `${tokens.radius.md}px`,\n lg: `${tokens.radius.lg}px`,\n xl: `${tokens.radius.xl}px`,\n \"2xl\": `${tokens.radius[\"2xl\"]}px`,\n full: \"9999px\",\n },\n },\n },\n};\n\nexport default beyondUIPreset;\n"],"mappings":"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","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ViewProps, View, PressableProps as PressableProps$1, TextProps as TextProps$1, Text as Text$1, TextInputProps, TextInput, ImageProps, GestureResponderEvent } from 'react-native';
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
export { beyondUIPreset } from './preset.mjs';
|
|
5
|
+
export { B as BeyondUITokens, b as beyondUIPreset, t as tokens } from './preset-BmUHLoAa.mjs';
|
|
6
6
|
export { AccessibilityPropsOptions, cn, getAccessibilityProps, joinA11yLabels } from './utilities.mjs';
|
|
7
7
|
import 'clsx';
|
|
8
8
|
|
|
@@ -694,147 +694,4 @@ interface BeyondUIProviderProps {
|
|
|
694
694
|
}
|
|
695
695
|
declare function BeyondUIProvider({ children, defaultColorScheme, }: BeyondUIProviderProps): React.JSX.Element;
|
|
696
696
|
|
|
697
|
-
|
|
698
|
-
readonly colors: {
|
|
699
|
-
readonly primary: {
|
|
700
|
-
readonly 50: "#eff6ff";
|
|
701
|
-
readonly 100: "#dbeafe";
|
|
702
|
-
readonly 200: "#bfdbfe";
|
|
703
|
-
readonly 300: "#93c5fd";
|
|
704
|
-
readonly 400: "#60a5fa";
|
|
705
|
-
readonly 500: "#3b82f6";
|
|
706
|
-
readonly 600: "#2563eb";
|
|
707
|
-
readonly 700: "#1d4ed8";
|
|
708
|
-
readonly 800: "#1e40af";
|
|
709
|
-
readonly 900: "#1e3a8a";
|
|
710
|
-
readonly 950: "#172554";
|
|
711
|
-
readonly DEFAULT: "#2563eb";
|
|
712
|
-
};
|
|
713
|
-
readonly secondary: {
|
|
714
|
-
readonly 50: "#f8fafc";
|
|
715
|
-
readonly 100: "#f1f5f9";
|
|
716
|
-
readonly 200: "#e2e8f0";
|
|
717
|
-
readonly 300: "#cbd5e1";
|
|
718
|
-
readonly 400: "#94a3b8";
|
|
719
|
-
readonly 500: "#64748b";
|
|
720
|
-
readonly 600: "#475569";
|
|
721
|
-
readonly 700: "#334155";
|
|
722
|
-
readonly 800: "#1e293b";
|
|
723
|
-
readonly 900: "#0f172a";
|
|
724
|
-
readonly 950: "#020617";
|
|
725
|
-
readonly DEFAULT: "#475569";
|
|
726
|
-
};
|
|
727
|
-
readonly danger: {
|
|
728
|
-
readonly 50: "#fef2f2";
|
|
729
|
-
readonly 100: "#fee2e2";
|
|
730
|
-
readonly 200: "#fecaca";
|
|
731
|
-
readonly 300: "#fca5a5";
|
|
732
|
-
readonly 400: "#f87171";
|
|
733
|
-
readonly 500: "#ef4444";
|
|
734
|
-
readonly 600: "#dc2626";
|
|
735
|
-
readonly 700: "#b91c1c";
|
|
736
|
-
readonly 800: "#991b1b";
|
|
737
|
-
readonly 900: "#7f1d1d";
|
|
738
|
-
readonly 950: "#450a0a";
|
|
739
|
-
readonly DEFAULT: "#dc2626";
|
|
740
|
-
};
|
|
741
|
-
readonly destructive: {
|
|
742
|
-
readonly 50: "#fef2f2";
|
|
743
|
-
readonly 100: "#fee2e2";
|
|
744
|
-
readonly 200: "#fecaca";
|
|
745
|
-
readonly 300: "#fca5a5";
|
|
746
|
-
readonly 400: "#f87171";
|
|
747
|
-
readonly 500: "#ef4444";
|
|
748
|
-
readonly 600: "#dc2626";
|
|
749
|
-
readonly 700: "#b91c1c";
|
|
750
|
-
readonly 800: "#991b1b";
|
|
751
|
-
readonly 900: "#7f1d1d";
|
|
752
|
-
readonly 950: "#450a0a";
|
|
753
|
-
readonly DEFAULT: "#dc2626";
|
|
754
|
-
};
|
|
755
|
-
readonly success: {
|
|
756
|
-
readonly 50: "#f0fdf4";
|
|
757
|
-
readonly 100: "#dcfce7";
|
|
758
|
-
readonly 200: "#bbf7d0";
|
|
759
|
-
readonly 300: "#86efac";
|
|
760
|
-
readonly 400: "#4ade80";
|
|
761
|
-
readonly 500: "#22c55e";
|
|
762
|
-
readonly 600: "#16a34a";
|
|
763
|
-
readonly 700: "#15803d";
|
|
764
|
-
readonly 800: "#166534";
|
|
765
|
-
readonly 900: "#14532d";
|
|
766
|
-
readonly 950: "#052e16";
|
|
767
|
-
readonly DEFAULT: "#16a34a";
|
|
768
|
-
};
|
|
769
|
-
readonly warning: {
|
|
770
|
-
readonly 50: "#fffbeb";
|
|
771
|
-
readonly 100: "#fef3c7";
|
|
772
|
-
readonly 200: "#fde68a";
|
|
773
|
-
readonly 300: "#fcd34d";
|
|
774
|
-
readonly 400: "#fbbf24";
|
|
775
|
-
readonly 500: "#f59e0b";
|
|
776
|
-
readonly 600: "#d97706";
|
|
777
|
-
readonly 700: "#b45309";
|
|
778
|
-
readonly 800: "#92400e";
|
|
779
|
-
readonly 900: "#78350f";
|
|
780
|
-
readonly 950: "#451a03";
|
|
781
|
-
readonly DEFAULT: "#d97706";
|
|
782
|
-
};
|
|
783
|
-
readonly neutral: {
|
|
784
|
-
readonly 50: "#f9fafb";
|
|
785
|
-
readonly 100: "#f3f4f6";
|
|
786
|
-
readonly 200: "#e5e7eb";
|
|
787
|
-
readonly 300: "#d1d5db";
|
|
788
|
-
readonly 400: "#9ca3af";
|
|
789
|
-
readonly 500: "#6b7280";
|
|
790
|
-
readonly 600: "#4b5563";
|
|
791
|
-
readonly 700: "#374151";
|
|
792
|
-
readonly 800: "#1f2937";
|
|
793
|
-
readonly 900: "#111827";
|
|
794
|
-
readonly 950: "#030712";
|
|
795
|
-
};
|
|
796
|
-
readonly semantic: {
|
|
797
|
-
readonly light: {
|
|
798
|
-
readonly background: "#ffffff";
|
|
799
|
-
readonly foreground: "#0f172a";
|
|
800
|
-
readonly card: "#ffffff";
|
|
801
|
-
readonly cardForeground: "#0f172a";
|
|
802
|
-
readonly muted: "#f8fafc";
|
|
803
|
-
readonly mutedForeground: "#64748b";
|
|
804
|
-
readonly border: "#e2e8f0";
|
|
805
|
-
readonly input: "#e2e8f0";
|
|
806
|
-
};
|
|
807
|
-
readonly dark: {
|
|
808
|
-
readonly background: "#090d16";
|
|
809
|
-
readonly foreground: "#f8fafc";
|
|
810
|
-
readonly card: "#0f172a";
|
|
811
|
-
readonly cardForeground: "#f8fafc";
|
|
812
|
-
readonly muted: "#1e293b";
|
|
813
|
-
readonly mutedForeground: "#94a3b8";
|
|
814
|
-
readonly border: "#334155";
|
|
815
|
-
readonly input: "#334155";
|
|
816
|
-
};
|
|
817
|
-
};
|
|
818
|
-
};
|
|
819
|
-
readonly radius: {
|
|
820
|
-
readonly none: 0;
|
|
821
|
-
readonly sm: 6;
|
|
822
|
-
readonly md: 10;
|
|
823
|
-
readonly lg: 14;
|
|
824
|
-
readonly xl: 20;
|
|
825
|
-
readonly "2xl": 28;
|
|
826
|
-
readonly full: 9999;
|
|
827
|
-
};
|
|
828
|
-
readonly spacing: {
|
|
829
|
-
readonly xs: 4;
|
|
830
|
-
readonly sm: 8;
|
|
831
|
-
readonly md: 12;
|
|
832
|
-
readonly lg: 16;
|
|
833
|
-
readonly xl: 24;
|
|
834
|
-
readonly "2xl": 32;
|
|
835
|
-
readonly "3xl": 48;
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
type BeyondUITokens = typeof tokens;
|
|
839
|
-
|
|
840
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, BeyondUIContext, type BeyondUIContextValue, BeyondUIProvider, type BeyondUIProviderProps, type BeyondUITokens, BottomSheet, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonProps, ButtonText, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ColorScheme, type Column, type DashboardActivity, type DashboardMetric, type DashboardQuickAction, DashboardTemplate, type DashboardTemplateProps, DataTable, type DataTableProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogContext, type DialogContextValue, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, ForgotPasswordTemplate, type ForgotPasswordTemplateProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputProps, Pressable, type PressableProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, SettingsTemplate, type SettingsTemplateProps, SignInTemplate, type SignInTemplateProps, SignUpTemplate, type SignUpTemplateProps, Skeleton, type SkeletonProps, Spinner, type SpinnerColor, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, type TabsContentProps, TabsContext, type TabsContextValue, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, ToastBanner, ToastContainer, ToastContext, type ToastContextValue, type ToastItem, type ToastVariant, type TrendDirection, alertDescriptionVariants, alertTitleVariants, alertVariants, avatarTextVariants, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cardVariants, headingVariants, inputVariants, textVariants, tokens, useBeyondUI, useDialogContext, useTabsContext, useToast };
|
|
697
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, BeyondUIContext, type BeyondUIContextValue, BeyondUIProvider, type BeyondUIProviderProps, BottomSheet, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonProps, ButtonText, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ColorScheme, type Column, type DashboardActivity, type DashboardMetric, type DashboardQuickAction, DashboardTemplate, type DashboardTemplateProps, DataTable, type DataTableProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogContext, type DialogContextValue, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, ForgotPasswordTemplate, type ForgotPasswordTemplateProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputProps, Pressable, type PressableProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, SettingsTemplate, type SettingsTemplateProps, SignInTemplate, type SignInTemplateProps, SignUpTemplate, type SignUpTemplateProps, Skeleton, type SkeletonProps, Spinner, type SpinnerColor, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, type TabsContentProps, TabsContext, type TabsContextValue, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, ToastBanner, ToastContainer, ToastContext, type ToastContextValue, type ToastItem, type ToastVariant, type TrendDirection, alertDescriptionVariants, alertTitleVariants, alertVariants, avatarTextVariants, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cardVariants, headingVariants, inputVariants, textVariants, useBeyondUI, useDialogContext, useTabsContext, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ViewProps, View, PressableProps as PressableProps$1, TextProps as TextProps$1, Text as Text$1, TextInputProps, TextInput, ImageProps, GestureResponderEvent } from 'react-native';
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
export { beyondUIPreset } from './preset.js';
|
|
5
|
+
export { B as BeyondUITokens, b as beyondUIPreset, t as tokens } from './preset-BmUHLoAa.js';
|
|
6
6
|
export { AccessibilityPropsOptions, cn, getAccessibilityProps, joinA11yLabels } from './utilities.js';
|
|
7
7
|
import 'clsx';
|
|
8
8
|
|
|
@@ -694,147 +694,4 @@ interface BeyondUIProviderProps {
|
|
|
694
694
|
}
|
|
695
695
|
declare function BeyondUIProvider({ children, defaultColorScheme, }: BeyondUIProviderProps): React.JSX.Element;
|
|
696
696
|
|
|
697
|
-
|
|
698
|
-
readonly colors: {
|
|
699
|
-
readonly primary: {
|
|
700
|
-
readonly 50: "#eff6ff";
|
|
701
|
-
readonly 100: "#dbeafe";
|
|
702
|
-
readonly 200: "#bfdbfe";
|
|
703
|
-
readonly 300: "#93c5fd";
|
|
704
|
-
readonly 400: "#60a5fa";
|
|
705
|
-
readonly 500: "#3b82f6";
|
|
706
|
-
readonly 600: "#2563eb";
|
|
707
|
-
readonly 700: "#1d4ed8";
|
|
708
|
-
readonly 800: "#1e40af";
|
|
709
|
-
readonly 900: "#1e3a8a";
|
|
710
|
-
readonly 950: "#172554";
|
|
711
|
-
readonly DEFAULT: "#2563eb";
|
|
712
|
-
};
|
|
713
|
-
readonly secondary: {
|
|
714
|
-
readonly 50: "#f8fafc";
|
|
715
|
-
readonly 100: "#f1f5f9";
|
|
716
|
-
readonly 200: "#e2e8f0";
|
|
717
|
-
readonly 300: "#cbd5e1";
|
|
718
|
-
readonly 400: "#94a3b8";
|
|
719
|
-
readonly 500: "#64748b";
|
|
720
|
-
readonly 600: "#475569";
|
|
721
|
-
readonly 700: "#334155";
|
|
722
|
-
readonly 800: "#1e293b";
|
|
723
|
-
readonly 900: "#0f172a";
|
|
724
|
-
readonly 950: "#020617";
|
|
725
|
-
readonly DEFAULT: "#475569";
|
|
726
|
-
};
|
|
727
|
-
readonly danger: {
|
|
728
|
-
readonly 50: "#fef2f2";
|
|
729
|
-
readonly 100: "#fee2e2";
|
|
730
|
-
readonly 200: "#fecaca";
|
|
731
|
-
readonly 300: "#fca5a5";
|
|
732
|
-
readonly 400: "#f87171";
|
|
733
|
-
readonly 500: "#ef4444";
|
|
734
|
-
readonly 600: "#dc2626";
|
|
735
|
-
readonly 700: "#b91c1c";
|
|
736
|
-
readonly 800: "#991b1b";
|
|
737
|
-
readonly 900: "#7f1d1d";
|
|
738
|
-
readonly 950: "#450a0a";
|
|
739
|
-
readonly DEFAULT: "#dc2626";
|
|
740
|
-
};
|
|
741
|
-
readonly destructive: {
|
|
742
|
-
readonly 50: "#fef2f2";
|
|
743
|
-
readonly 100: "#fee2e2";
|
|
744
|
-
readonly 200: "#fecaca";
|
|
745
|
-
readonly 300: "#fca5a5";
|
|
746
|
-
readonly 400: "#f87171";
|
|
747
|
-
readonly 500: "#ef4444";
|
|
748
|
-
readonly 600: "#dc2626";
|
|
749
|
-
readonly 700: "#b91c1c";
|
|
750
|
-
readonly 800: "#991b1b";
|
|
751
|
-
readonly 900: "#7f1d1d";
|
|
752
|
-
readonly 950: "#450a0a";
|
|
753
|
-
readonly DEFAULT: "#dc2626";
|
|
754
|
-
};
|
|
755
|
-
readonly success: {
|
|
756
|
-
readonly 50: "#f0fdf4";
|
|
757
|
-
readonly 100: "#dcfce7";
|
|
758
|
-
readonly 200: "#bbf7d0";
|
|
759
|
-
readonly 300: "#86efac";
|
|
760
|
-
readonly 400: "#4ade80";
|
|
761
|
-
readonly 500: "#22c55e";
|
|
762
|
-
readonly 600: "#16a34a";
|
|
763
|
-
readonly 700: "#15803d";
|
|
764
|
-
readonly 800: "#166534";
|
|
765
|
-
readonly 900: "#14532d";
|
|
766
|
-
readonly 950: "#052e16";
|
|
767
|
-
readonly DEFAULT: "#16a34a";
|
|
768
|
-
};
|
|
769
|
-
readonly warning: {
|
|
770
|
-
readonly 50: "#fffbeb";
|
|
771
|
-
readonly 100: "#fef3c7";
|
|
772
|
-
readonly 200: "#fde68a";
|
|
773
|
-
readonly 300: "#fcd34d";
|
|
774
|
-
readonly 400: "#fbbf24";
|
|
775
|
-
readonly 500: "#f59e0b";
|
|
776
|
-
readonly 600: "#d97706";
|
|
777
|
-
readonly 700: "#b45309";
|
|
778
|
-
readonly 800: "#92400e";
|
|
779
|
-
readonly 900: "#78350f";
|
|
780
|
-
readonly 950: "#451a03";
|
|
781
|
-
readonly DEFAULT: "#d97706";
|
|
782
|
-
};
|
|
783
|
-
readonly neutral: {
|
|
784
|
-
readonly 50: "#f9fafb";
|
|
785
|
-
readonly 100: "#f3f4f6";
|
|
786
|
-
readonly 200: "#e5e7eb";
|
|
787
|
-
readonly 300: "#d1d5db";
|
|
788
|
-
readonly 400: "#9ca3af";
|
|
789
|
-
readonly 500: "#6b7280";
|
|
790
|
-
readonly 600: "#4b5563";
|
|
791
|
-
readonly 700: "#374151";
|
|
792
|
-
readonly 800: "#1f2937";
|
|
793
|
-
readonly 900: "#111827";
|
|
794
|
-
readonly 950: "#030712";
|
|
795
|
-
};
|
|
796
|
-
readonly semantic: {
|
|
797
|
-
readonly light: {
|
|
798
|
-
readonly background: "#ffffff";
|
|
799
|
-
readonly foreground: "#0f172a";
|
|
800
|
-
readonly card: "#ffffff";
|
|
801
|
-
readonly cardForeground: "#0f172a";
|
|
802
|
-
readonly muted: "#f8fafc";
|
|
803
|
-
readonly mutedForeground: "#64748b";
|
|
804
|
-
readonly border: "#e2e8f0";
|
|
805
|
-
readonly input: "#e2e8f0";
|
|
806
|
-
};
|
|
807
|
-
readonly dark: {
|
|
808
|
-
readonly background: "#090d16";
|
|
809
|
-
readonly foreground: "#f8fafc";
|
|
810
|
-
readonly card: "#0f172a";
|
|
811
|
-
readonly cardForeground: "#f8fafc";
|
|
812
|
-
readonly muted: "#1e293b";
|
|
813
|
-
readonly mutedForeground: "#94a3b8";
|
|
814
|
-
readonly border: "#334155";
|
|
815
|
-
readonly input: "#334155";
|
|
816
|
-
};
|
|
817
|
-
};
|
|
818
|
-
};
|
|
819
|
-
readonly radius: {
|
|
820
|
-
readonly none: 0;
|
|
821
|
-
readonly sm: 6;
|
|
822
|
-
readonly md: 10;
|
|
823
|
-
readonly lg: 14;
|
|
824
|
-
readonly xl: 20;
|
|
825
|
-
readonly "2xl": 28;
|
|
826
|
-
readonly full: 9999;
|
|
827
|
-
};
|
|
828
|
-
readonly spacing: {
|
|
829
|
-
readonly xs: 4;
|
|
830
|
-
readonly sm: 8;
|
|
831
|
-
readonly md: 12;
|
|
832
|
-
readonly lg: 16;
|
|
833
|
-
readonly xl: 24;
|
|
834
|
-
readonly "2xl": 32;
|
|
835
|
-
readonly "3xl": 48;
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
type BeyondUITokens = typeof tokens;
|
|
839
|
-
|
|
840
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, BeyondUIContext, type BeyondUIContextValue, BeyondUIProvider, type BeyondUIProviderProps, type BeyondUITokens, BottomSheet, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonProps, ButtonText, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ColorScheme, type Column, type DashboardActivity, type DashboardMetric, type DashboardQuickAction, DashboardTemplate, type DashboardTemplateProps, DataTable, type DataTableProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogContext, type DialogContextValue, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, ForgotPasswordTemplate, type ForgotPasswordTemplateProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputProps, Pressable, type PressableProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, SettingsTemplate, type SettingsTemplateProps, SignInTemplate, type SignInTemplateProps, SignUpTemplate, type SignUpTemplateProps, Skeleton, type SkeletonProps, Spinner, type SpinnerColor, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, type TabsContentProps, TabsContext, type TabsContextValue, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, ToastBanner, ToastContainer, ToastContext, type ToastContextValue, type ToastItem, type ToastVariant, type TrendDirection, alertDescriptionVariants, alertTitleVariants, alertVariants, avatarTextVariants, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cardVariants, headingVariants, inputVariants, textVariants, tokens, useBeyondUI, useDialogContext, useTabsContext, useToast };
|
|
697
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, BeyondUIContext, type BeyondUIContextValue, BeyondUIProvider, type BeyondUIProviderProps, BottomSheet, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonProps, ButtonText, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ColorScheme, type Column, type DashboardActivity, type DashboardMetric, type DashboardQuickAction, DashboardTemplate, type DashboardTemplateProps, DataTable, type DataTableProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogContext, type DialogContextValue, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, ForgotPasswordTemplate, type ForgotPasswordTemplateProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputProps, Pressable, type PressableProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, SettingsTemplate, type SettingsTemplateProps, SignInTemplate, type SignInTemplateProps, SignUpTemplate, type SignUpTemplateProps, Skeleton, type SkeletonProps, Spinner, type SpinnerColor, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, type TabsContentProps, TabsContext, type TabsContextValue, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, ToastBanner, ToastContainer, ToastContext, type ToastContextValue, type ToastItem, type ToastVariant, type TrendDirection, alertDescriptionVariants, alertTitleVariants, alertVariants, avatarTextVariants, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cardVariants, headingVariants, inputVariants, textVariants, useBeyondUI, useDialogContext, useTabsContext, useToast };
|
package/dist/index.js
CHANGED
|
@@ -2587,10 +2587,12 @@ var SignInTemplate = ({
|
|
|
2587
2587
|
import_react_native26.KeyboardAvoidingView,
|
|
2588
2588
|
{
|
|
2589
2589
|
behavior: import_react_native26.Platform.OS === "ios" ? "padding" : "height",
|
|
2590
|
+
style: { flex: 1 },
|
|
2590
2591
|
className: cn("flex-1 bg-background", className),
|
|
2591
2592
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2592
2593
|
import_react_native26.ScrollView,
|
|
2593
2594
|
{
|
|
2595
|
+
style: { flex: 1 },
|
|
2594
2596
|
contentContainerStyle: { flexGrow: 1, justifyContent: "center" },
|
|
2595
2597
|
className: "px-6 py-8",
|
|
2596
2598
|
keyboardShouldPersistTaps: "handled",
|
|
@@ -2745,10 +2747,12 @@ var SignUpTemplate = ({
|
|
|
2745
2747
|
import_react_native27.KeyboardAvoidingView,
|
|
2746
2748
|
{
|
|
2747
2749
|
behavior: import_react_native27.Platform.OS === "ios" ? "padding" : "height",
|
|
2750
|
+
style: { flex: 1 },
|
|
2748
2751
|
className: cn("flex-1 bg-background", className),
|
|
2749
2752
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2750
2753
|
import_react_native27.ScrollView,
|
|
2751
2754
|
{
|
|
2755
|
+
style: { flex: 1 },
|
|
2752
2756
|
contentContainerStyle: { flexGrow: 1, justifyContent: "center" },
|
|
2753
2757
|
className: "px-6 py-8",
|
|
2754
2758
|
keyboardShouldPersistTaps: "handled",
|
|
@@ -2897,10 +2901,12 @@ var ForgotPasswordTemplate = ({
|
|
|
2897
2901
|
import_react_native28.KeyboardAvoidingView,
|
|
2898
2902
|
{
|
|
2899
2903
|
behavior: import_react_native28.Platform.OS === "ios" ? "padding" : "height",
|
|
2904
|
+
style: { flex: 1 },
|
|
2900
2905
|
className: cn("flex-1 bg-background", className),
|
|
2901
2906
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2902
2907
|
import_react_native28.ScrollView,
|
|
2903
2908
|
{
|
|
2909
|
+
style: { flex: 1 },
|
|
2904
2910
|
contentContainerStyle: { flexGrow: 1, justifyContent: "center" },
|
|
2905
2911
|
className: "px-6 py-8",
|
|
2906
2912
|
keyboardShouldPersistTaps: "handled",
|
|
@@ -2969,10 +2975,11 @@ var DashboardTemplate = ({
|
|
|
2969
2975
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2970
2976
|
import_react_native29.ScrollView,
|
|
2971
2977
|
{
|
|
2978
|
+
...props,
|
|
2979
|
+
style: [{ flex: 1 }, props.style],
|
|
2972
2980
|
className: cn("flex-1 bg-background", className),
|
|
2973
2981
|
contentContainerStyle: { paddingBottom: 40 },
|
|
2974
2982
|
showsVerticalScrollIndicator: false,
|
|
2975
|
-
...props,
|
|
2976
2983
|
children: [
|
|
2977
2984
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react_native29.View, { className: "px-6 pt-6 pb-4 flex-row items-center justify-between border-b border-border/40", children: [
|
|
2978
2985
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react_native29.View, { className: "flex-row items-center gap-3", children: [
|
|
@@ -3097,10 +3104,11 @@ var SettingsTemplate = ({
|
|
|
3097
3104
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3098
3105
|
import_react_native30.ScrollView,
|
|
3099
3106
|
{
|
|
3107
|
+
...props,
|
|
3108
|
+
style: [{ flex: 1 }, props.style],
|
|
3100
3109
|
className: cn("flex-1 bg-background", className),
|
|
3101
3110
|
contentContainerStyle: { paddingBottom: 40 },
|
|
3102
3111
|
showsVerticalScrollIndicator: false,
|
|
3103
|
-
...props,
|
|
3104
3112
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react_native30.View, { className: "px-6 pt-6 gap-6", children: [
|
|
3105
3113
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Heading, { level: 2, className: "text-2xl font-bold text-foreground", children: "Settings & Profile" }),
|
|
3106
3114
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Card, { className: "p-4 flex-row items-center gap-4", children: [
|
|
@@ -3281,11 +3289,18 @@ function BeyondUIProvider({
|
|
|
3281
3289
|
}),
|
|
3282
3290
|
[activeScheme, toggleColorScheme]
|
|
3283
3291
|
);
|
|
3284
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(BeyondUIContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ToastContext.Provider, { value: toastContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(BeyondUIContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ToastContext.Provider, { value: toastContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
3293
|
+
import_react_native31.View,
|
|
3294
|
+
{
|
|
3295
|
+
style: { flex: 1 },
|
|
3296
|
+
className: activeScheme === "dark" ? "dark flex-1" : "flex-1",
|
|
3297
|
+
children: [
|
|
3298
|
+
children,
|
|
3299
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_portal.PortalHost, {}),
|
|
3300
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ToastContainer, { toasts, onDismiss: dismissToast })
|
|
3301
|
+
]
|
|
3302
|
+
}
|
|
3303
|
+
) }) });
|
|
3289
3304
|
}
|
|
3290
3305
|
|
|
3291
3306
|
// src/theme/tokens.ts
|
|
@@ -3444,7 +3459,21 @@ var beyondUIPreset = {
|
|
|
3444
3459
|
destructive: tokens.colors.destructive,
|
|
3445
3460
|
success: tokens.colors.success,
|
|
3446
3461
|
warning: tokens.colors.warning,
|
|
3447
|
-
neutral: tokens.colors.neutral
|
|
3462
|
+
neutral: tokens.colors.neutral,
|
|
3463
|
+
background: tokens.colors.semantic.light.background,
|
|
3464
|
+
foreground: tokens.colors.semantic.light.foreground,
|
|
3465
|
+
card: {
|
|
3466
|
+
DEFAULT: tokens.colors.semantic.light.card,
|
|
3467
|
+
foreground: tokens.colors.semantic.light.cardForeground
|
|
3468
|
+
},
|
|
3469
|
+
cardForeground: tokens.colors.semantic.light.cardForeground,
|
|
3470
|
+
muted: {
|
|
3471
|
+
DEFAULT: tokens.colors.semantic.light.mutedForeground,
|
|
3472
|
+
foreground: tokens.colors.semantic.light.mutedForeground
|
|
3473
|
+
},
|
|
3474
|
+
mutedForeground: tokens.colors.semantic.light.mutedForeground,
|
|
3475
|
+
border: tokens.colors.semantic.light.border,
|
|
3476
|
+
input: tokens.colors.semantic.light.input
|
|
3448
3477
|
},
|
|
3449
3478
|
borderRadius: {
|
|
3450
3479
|
none: "0px",
|