@campxdev/react-native-blueprint 0.1.1 → 0.1.2

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.
Files changed (74) hide show
  1. package/global.css +417 -0
  2. package/lib/module/components/ui/index.js +1 -0
  3. package/lib/module/components/ui/index.js.map +1 -1
  4. package/lib/module/types/global.d.js +6 -0
  5. package/lib/module/types/global.d.js.map +1 -0
  6. package/lib/module/types/rn-primitives.d.js +6 -0
  7. package/lib/module/types/rn-primitives.d.js.map +1 -0
  8. package/lib/typescript/src/app/_layout.d.ts +7 -8
  9. package/lib/typescript/src/components/ui/Accordion.d.ts +103 -11
  10. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts +167 -10
  11. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +1 -1
  12. package/lib/typescript/src/components/ui/Alert.d.ts +59 -10
  13. package/lib/typescript/src/components/ui/Avatar.d.ts +1350 -10
  14. package/lib/typescript/src/components/ui/Badge.d.ts +203 -10
  15. package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts +43 -11
  16. package/lib/typescript/src/components/ui/Button.d.ts +175 -10
  17. package/lib/typescript/src/components/ui/Card.d.ts +853 -10
  18. package/lib/typescript/src/components/ui/Checkbox.d.ts +36 -11
  19. package/lib/typescript/src/components/ui/Collapsible.d.ts +1 -147
  20. package/lib/typescript/src/components/ui/Collapsible.d.ts.map +1 -1
  21. package/lib/typescript/src/components/ui/Context-Menu.d.ts +149 -10
  22. package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +1 -1
  23. package/lib/typescript/src/components/ui/Custom-Card.d.ts +863 -10
  24. package/lib/typescript/src/components/ui/Dialog.d.ts +125 -10
  25. package/lib/typescript/src/components/ui/Dialog.d.ts.map +1 -1
  26. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +283 -10
  27. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +1 -1
  28. package/lib/typescript/src/components/ui/Greeting-Card.d.ts +152 -10
  29. package/lib/typescript/src/components/ui/Hover-Card.d.ts +67 -10
  30. package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +1 -1
  31. package/lib/typescript/src/components/ui/Icon.d.ts +43 -11
  32. package/lib/typescript/src/components/ui/Input.d.ts +51 -10
  33. package/lib/typescript/src/components/ui/Label.d.ts +104 -10
  34. package/lib/typescript/src/components/ui/Menubar.d.ts +174 -10
  35. package/lib/typescript/src/components/ui/NavBar.d.ts +271 -9
  36. package/lib/typescript/src/components/ui/Popover.d.ts +70 -10
  37. package/lib/typescript/src/components/ui/Popover.d.ts.map +1 -1
  38. package/lib/typescript/src/components/ui/Progress.d.ts +27 -11
  39. package/lib/typescript/src/components/ui/Radio-Group.d.ts +47 -11
  40. package/lib/typescript/src/components/ui/Select.d.ts +106 -10
  41. package/lib/typescript/src/components/ui/Separator.d.ts +165 -10
  42. package/lib/typescript/src/components/ui/Skeleton.d.ts +40 -11
  43. package/lib/typescript/src/components/ui/Slider.d.ts +52 -8
  44. package/lib/typescript/src/components/ui/Switch.d.ts +34 -11
  45. package/lib/typescript/src/components/ui/Table.d.ts +69 -10
  46. package/lib/typescript/src/components/ui/Tabs.d.ts +51 -11
  47. package/lib/typescript/src/components/ui/Text.d.ts +115 -10
  48. package/lib/typescript/src/components/ui/Textarea.d.ts +60 -10
  49. package/lib/typescript/src/components/ui/Theme-Toggle.d.ts +193 -10
  50. package/lib/typescript/src/components/ui/Toast.d.ts +54 -10
  51. package/lib/typescript/src/components/ui/Toggle-Group.d.ts +48 -10
  52. package/lib/typescript/src/components/ui/Toggle.d.ts +52 -10
  53. package/lib/typescript/src/components/ui/Tooltip.d.ts +70 -10
  54. package/lib/typescript/src/components/ui/Tooltip.d.ts.map +1 -1
  55. package/lib/typescript/src/components/ui/index.d.ts +7 -2
  56. package/lib/typescript/src/components/ui/index.d.ts.map +1 -1
  57. package/lib/typescript/src/index.d.ts +7 -93
  58. package/lib/typescript/src/lib/ThemeProvider.d.ts +136 -13
  59. package/lib/typescript/src/lib/cornerRadius.d.ts +112 -21
  60. package/lib/typescript/src/lib/fonts.d.ts +21 -30
  61. package/lib/typescript/src/lib/theme.d.ts +86 -8
  62. package/lib/typescript/src/lib/utils.d.ts +111 -1
  63. package/package.json +3 -9
  64. package/src/components/ui/index.ts +1 -0
  65. package/src/types/global.d.ts +44 -0
  66. package/src/types/rn-primitives.d.ts +70 -0
  67. package/lib/typescript/babel.config.d.ts +0 -13
  68. package/lib/typescript/babel.config.d.ts.map +0 -1
  69. package/lib/typescript/metro.config.d.ts +0 -3
  70. package/lib/typescript/metro.config.d.ts.map +0 -1
  71. package/lib/typescript/src/components/ui/Floating-Action-Button.d.ts +0 -11
  72. package/lib/typescript/src/components/ui.d.ts +0 -49
  73. package/lib/typescript/tailwind.config.d.ts +0 -3
  74. package/lib/typescript/tailwind.config.d.ts.map +0 -1
@@ -1,11 +1,168 @@
1
+ import * as AlertDialogPrimitive from '@rn-primitives/alert-dialog';
1
2
  import * as React from 'react';
2
- import { ViewProps } from 'react-native';
3
-
4
- export interface Alert-DialogProps extends ViewProps {
5
- className?: string;
6
- children?: React.ReactNode;
7
- [key: string]: any;
8
- }
9
-
10
- export const Alert-Dialog: React.ComponentType<Alert-DialogProps>;
11
- export default Alert-Dialog;
3
+ import { type ViewProps } from 'react-native';
4
+ /**
5
+ * Root alert dialog container
6
+ *
7
+ * A modal dialog that interrupts the user with important content and expects a response.
8
+ * Use for critical actions that require user confirmation before proceeding.
9
+ *
10
+ * @component
11
+ * @example
12
+ * ```tsx
13
+ * <AlertDialog>
14
+ * <AlertDialogTrigger asChild>
15
+ * <Button variant="destructive"><Text>Delete Account</Text></Button>
16
+ * </AlertDialogTrigger>
17
+ * <AlertDialogContent>
18
+ * <AlertDialogHeader>
19
+ * <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
20
+ * <AlertDialogDescription>
21
+ * This action cannot be undone.
22
+ * </AlertDialogDescription>
23
+ * </AlertDialogHeader>
24
+ * <AlertDialogFooter>
25
+ * <AlertDialogCancel><Text>Cancel</Text></AlertDialogCancel>
26
+ * <AlertDialogAction><Text>Continue</Text></AlertDialogAction>
27
+ * </AlertDialogFooter>
28
+ * </AlertDialogContent>
29
+ * </AlertDialog>
30
+ * ```
31
+ *
32
+ * @accessibility
33
+ * - Traps focus within dialog when open
34
+ * - Closes on Escape key press
35
+ * - Returns focus to trigger on close
36
+ * - Uses appropriate ARIA attributes
37
+ */
38
+ declare const AlertDialog: React.ForwardRefExoticComponent<{
39
+ open?: boolean;
40
+ onOpenChange?: (value: boolean) => void;
41
+ defaultOpen?: boolean;
42
+ } & ViewProps & {
43
+ asChild?: boolean;
44
+ } & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
45
+ ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
46
+ }> & {
47
+ ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
48
+ }) => React.ReactNode>>;
49
+ /**
50
+ * Trigger button that opens the alert dialog
51
+ *
52
+ * @component
53
+ * @example
54
+ * ```tsx
55
+ * <AlertDialogTrigger asChild>
56
+ * <Button><Text>Open Dialog</Text></Button>
57
+ * </AlertDialogTrigger>
58
+ * ```
59
+ */
60
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<Omit<import("react-native").PressableProps & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
61
+ ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
62
+ }> & {
63
+ ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
64
+ }) => React.ReactNode>, "ref"> & {
65
+ asChild?: boolean;
66
+ } & {
67
+ onKeyDown?: (ev: React.KeyboardEvent) => void;
68
+ onKeyUp?: (ev: React.KeyboardEvent) => void;
69
+ } & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
70
+ ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
71
+ }> & {
72
+ ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
73
+ }) => React.ReactNode>>;
74
+ /**
75
+ * Portal component for rendering dialog content outside the DOM hierarchy
76
+ */
77
+ declare const AlertDialogPortal: typeof AlertDialogPrimitive.Portal;
78
+ /**
79
+ * Semi-transparent overlay behind the alert dialog
80
+ *
81
+ * Provides backdrop that dims background content and handles click-outside behavior.
82
+ * Uses platform-specific full window overlay on iOS for proper z-index layering.
83
+ *
84
+ * @component
85
+ * @example
86
+ * ```tsx
87
+ * <AlertDialogOverlay>
88
+ * <AlertDialogContent>...</AlertDialogContent>
89
+ * </AlertDialogOverlay>
90
+ * ```
91
+ */
92
+ declare function AlertDialogOverlay({ className, children, ...props }: Omit<AlertDialogPrimitive.OverlayProps, 'asChild'> & React.RefAttributes<AlertDialogPrimitive.OverlayRef> & {
93
+ children?: React.ReactNode;
94
+ }): import("react/jsx-runtime").JSX.Element;
95
+ /**
96
+ * Main alert dialog content container
97
+ *
98
+ * Contains the dialog's title, description, and action buttons. Automatically centered
99
+ * on screen with smooth entrance animations.
100
+ *
101
+ * @component
102
+ * @example
103
+ * ```tsx
104
+ * <AlertDialogContent>
105
+ * <AlertDialogHeader>
106
+ * <AlertDialogTitle>Confirm Action</AlertDialogTitle>
107
+ * <AlertDialogDescription>Description here</AlertDialogDescription>
108
+ * </AlertDialogHeader>
109
+ * <AlertDialogFooter>
110
+ * <AlertDialogCancel><Text>Cancel</Text></AlertDialogCancel>
111
+ * <AlertDialogAction><Text>Continue</Text></AlertDialogAction>
112
+ * </AlertDialogFooter>
113
+ * </AlertDialogContent>
114
+ * ```
115
+ */
116
+ declare function AlertDialogContent({ className, portalHost, ...props }: AlertDialogPrimitive.ContentProps & React.RefAttributes<AlertDialogPrimitive.ContentRef> & {
117
+ portalHost?: string;
118
+ }): import("react/jsx-runtime").JSX.Element;
119
+ /**
120
+ * Header section for alert dialog content
121
+ *
122
+ * Groups the title and description with proper spacing and text alignment.
123
+ *
124
+ * @component
125
+ */
126
+ declare function AlertDialogHeader({ className, ...props }: ViewProps): import("react/jsx-runtime").JSX.Element;
127
+ /**
128
+ * Footer section for alert dialog action buttons
129
+ *
130
+ * Contains cancel and action buttons with responsive layout (stacked on mobile, row on desktop).
131
+ *
132
+ * @component
133
+ */
134
+ declare function AlertDialogFooter({ className, ...props }: ViewProps): import("react/jsx-runtime").JSX.Element;
135
+ /**
136
+ * Title text for the alert dialog
137
+ *
138
+ * Prominently displays the main heading with large, semibold text.
139
+ *
140
+ * @component
141
+ */
142
+ declare function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.TitleProps & React.RefAttributes<AlertDialogPrimitive.TitleRef>): import("react/jsx-runtime").JSX.Element;
143
+ /**
144
+ * Description text for the alert dialog
145
+ *
146
+ * Provides additional context below the title with muted styling.
147
+ *
148
+ * @component
149
+ */
150
+ declare function AlertDialogDescription({ className, ...props }: AlertDialogPrimitive.DescriptionProps & React.RefAttributes<AlertDialogPrimitive.DescriptionRef>): import("react/jsx-runtime").JSX.Element;
151
+ /**
152
+ * Primary action button that confirms the alert dialog action
153
+ *
154
+ * Styled as a primary button. Automatically closes dialog on press.
155
+ *
156
+ * @component
157
+ */
158
+ declare function AlertDialogAction({ className, ...props }: AlertDialogPrimitive.ActionProps & React.RefAttributes<AlertDialogPrimitive.ActionRef>): import("react/jsx-runtime").JSX.Element;
159
+ /**
160
+ * Cancel button that dismisses the alert dialog
161
+ *
162
+ * Styled as an outline button. Automatically closes dialog on press without performing action.
163
+ *
164
+ * @component
165
+ */
166
+ declare function AlertDialogCancel({ className, ...props }: AlertDialogPrimitive.CancelProps & React.RefAttributes<AlertDialogPrimitive.CancelRef>): import("react/jsx-runtime").JSX.Element;
167
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
168
+ //# sourceMappingURL=Alert-Dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert-Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Alert-Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,WAAW;;;;;;;OA3BhB,CAAA;;OAIA,CAAC;uBAuB2C,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAxCvB,CAAA;;OAIA,CAAC;;;;;;;OAJD,CAAA;;OAIA,CAAC;uBAoCqD,CAAC;AAExD;;GAEG;AACH,QAAA,MAAM,iBAAiB,oCAA8B,CAAC;AAKtD;;;;;;;;;;;;;GAaG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,SAAS,CAAC,GACnD,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAsBF;AAED;;;;;;;;;;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AED;;;;;;GAMG;AACH,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAU5D;AAED;;;;;;GAMG;AACH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,UAAU,GAChC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,QAAQ,CAAC,2CAOnD;AAED;;;;;;GAMG;AACH,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,gBAAgB,GACtC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,cAAc,CAAC,2CAOzD;AAED;;;;;;GAMG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,WAAW,GACjC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,SAAS,CAAC,2CASpD;AAED;;;;;;GAMG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,WAAW,GACjC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,SAAS,CAAC,2CAWpD;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
@@ -1,11 +1,60 @@
1
+ import { Text } from './Text';
2
+ import type { LucideIcon } from 'lucide-react-native';
1
3
  import * as React from 'react';
2
- import { ViewProps } from 'react-native';
3
-
4
- export interface AlertProps extends ViewProps {
5
- className?: string;
6
- children?: React.ReactNode;
7
- [key: string]: any;
8
- }
9
-
10
- export const Alert: React.ComponentType<AlertProps>;
11
- export default Alert;
4
+ import { View, type ViewProps } from 'react-native';
5
+ /**
6
+ * Alert component for displaying important messages or notifications
7
+ *
8
+ * Features an icon on the left side with title and description.
9
+ * Supports default and destructive variants for different severity levels.
10
+ *
11
+ * @component
12
+ * @example
13
+ * ```tsx
14
+ * <Alert icon={AlertCircle} variant="default">
15
+ * <AlertTitle><Text>Heads up!</Text></AlertTitle>
16
+ * <AlertDescription>
17
+ * <Text>You can add components to your app using the cli.</Text>
18
+ * </AlertDescription>
19
+ * </Alert>
20
+ *
21
+ * // Destructive variant
22
+ * <Alert icon={AlertTriangle} variant="destructive">
23
+ * <AlertTitle><Text>Error</Text></AlertTitle>
24
+ * <AlertDescription>
25
+ * <Text>Your session has expired. Please login again.</Text>
26
+ * </AlertDescription>
27
+ * </Alert>
28
+ * ```
29
+ *
30
+ * @param {LucideIcon} icon - Icon component to display
31
+ * @param {'default' | 'destructive'} [variant='default'] - Alert style variant
32
+ * @param {string} [iconClassName] - Additional classes for the icon
33
+ * @param {string} [className] - Additional classes for the container
34
+ *
35
+ * @accessibility Sets role="alert" for screen reader announcement
36
+ */
37
+ declare function Alert({ className, variant, children, icon, iconClassName, ...props }: ViewProps & React.RefAttributes<View> & {
38
+ icon: LucideIcon;
39
+ variant?: 'default' | 'destructive';
40
+ iconClassName?: string;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ /**
43
+ * AlertTitle - Title text for the alert
44
+ *
45
+ * Displays as a medium-weight heading with appropriate spacing from the icon.
46
+ *
47
+ * @param {string} [className] - Additional Tailwind classes
48
+ */
49
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
50
+ /**
51
+ * AlertDescription - Description text for the alert
52
+ *
53
+ * Displays detailed message content with muted styling and appropriate spacing.
54
+ * Automatically adjusts color for destructive variants.
55
+ *
56
+ * @param {string} [className] - Additional Tailwind classes
57
+ */
58
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
59
+ export { Alert, AlertDescription, AlertTitle };
60
+ //# sourceMappingURL=Alert.d.ts.map