@campxdev/react-native-blueprint 0.1.3 → 0.1.4

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 (109) hide show
  1. package/README.md +98 -69
  2. package/lib/module/app/_layout.js +7 -1
  3. package/lib/module/app/_layout.js.map +1 -1
  4. package/package.json +10 -6
  5. package/src/app/_layout.tsx +7 -1
  6. package/lib/typescript/src/app/_layout.d.ts +0 -8
  7. package/lib/typescript/src/app/_layout.d.ts.map +0 -1
  8. package/lib/typescript/src/components/theme-config.d.ts +0 -174
  9. package/lib/typescript/src/components/theme-config.d.ts.map +0 -1
  10. package/lib/typescript/src/components/ui/Accordion.d.ts +0 -103
  11. package/lib/typescript/src/components/ui/Accordion.d.ts.map +0 -1
  12. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts +0 -168
  13. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +0 -1
  14. package/lib/typescript/src/components/ui/Alert.d.ts +0 -60
  15. package/lib/typescript/src/components/ui/Alert.d.ts.map +0 -1
  16. package/lib/typescript/src/components/ui/AppBar.d.ts +0 -227
  17. package/lib/typescript/src/components/ui/AppBar.d.ts.map +0 -1
  18. package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts +0 -30
  19. package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
  20. package/lib/typescript/src/components/ui/Avatar.d.ts +0 -1351
  21. package/lib/typescript/src/components/ui/Avatar.d.ts.map +0 -1
  22. package/lib/typescript/src/components/ui/Badge.d.ts +0 -204
  23. package/lib/typescript/src/components/ui/Badge.d.ts.map +0 -1
  24. package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts +0 -43
  25. package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
  26. package/lib/typescript/src/components/ui/Button.d.ts +0 -176
  27. package/lib/typescript/src/components/ui/Button.d.ts.map +0 -1
  28. package/lib/typescript/src/components/ui/Card.d.ts +0 -854
  29. package/lib/typescript/src/components/ui/Card.d.ts.map +0 -1
  30. package/lib/typescript/src/components/ui/Checkbox.d.ts +0 -36
  31. package/lib/typescript/src/components/ui/Checkbox.d.ts.map +0 -1
  32. package/lib/typescript/src/components/ui/Collapsible.d.ts +0 -66
  33. package/lib/typescript/src/components/ui/Collapsible.d.ts.map +0 -1
  34. package/lib/typescript/src/components/ui/Context-Menu.d.ts +0 -150
  35. package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +0 -1
  36. package/lib/typescript/src/components/ui/Custom-Card.d.ts +0 -864
  37. package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +0 -1
  38. package/lib/typescript/src/components/ui/Dialog.d.ts +0 -126
  39. package/lib/typescript/src/components/ui/Dialog.d.ts.map +0 -1
  40. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +0 -284
  41. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
  42. package/lib/typescript/src/components/ui/Floating-Action.d.ts +0 -44
  43. package/lib/typescript/src/components/ui/Floating-Action.d.ts.map +0 -1
  44. package/lib/typescript/src/components/ui/Greeting-Card.d.ts +0 -153
  45. package/lib/typescript/src/components/ui/Greeting-Card.d.ts.map +0 -1
  46. package/lib/typescript/src/components/ui/Hover-Card.d.ts +0 -68
  47. package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +0 -1
  48. package/lib/typescript/src/components/ui/Icon.d.ts +0 -43
  49. package/lib/typescript/src/components/ui/Icon.d.ts.map +0 -1
  50. package/lib/typescript/src/components/ui/Input.d.ts +0 -52
  51. package/lib/typescript/src/components/ui/Input.d.ts.map +0 -1
  52. package/lib/typescript/src/components/ui/Label.d.ts +0 -105
  53. package/lib/typescript/src/components/ui/Label.d.ts.map +0 -1
  54. package/lib/typescript/src/components/ui/Menubar.d.ts +0 -175
  55. package/lib/typescript/src/components/ui/Menubar.d.ts.map +0 -1
  56. package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts +0 -26
  57. package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
  58. package/lib/typescript/src/components/ui/NavBar.d.ts +0 -273
  59. package/lib/typescript/src/components/ui/NavBar.d.ts.map +0 -1
  60. package/lib/typescript/src/components/ui/Popover.d.ts +0 -71
  61. package/lib/typescript/src/components/ui/Popover.d.ts.map +0 -1
  62. package/lib/typescript/src/components/ui/Progress.d.ts +0 -27
  63. package/lib/typescript/src/components/ui/Progress.d.ts.map +0 -1
  64. package/lib/typescript/src/components/ui/Radio-Group.d.ts +0 -47
  65. package/lib/typescript/src/components/ui/Radio-Group.d.ts.map +0 -1
  66. package/lib/typescript/src/components/ui/Select.d.ts +0 -107
  67. package/lib/typescript/src/components/ui/Select.d.ts.map +0 -1
  68. package/lib/typescript/src/components/ui/Separator.d.ts +0 -166
  69. package/lib/typescript/src/components/ui/Separator.d.ts.map +0 -1
  70. package/lib/typescript/src/components/ui/SizedBox.d.ts +0 -79
  71. package/lib/typescript/src/components/ui/SizedBox.d.ts.map +0 -1
  72. package/lib/typescript/src/components/ui/Skeleton.d.ts +0 -40
  73. package/lib/typescript/src/components/ui/Skeleton.d.ts.map +0 -1
  74. package/lib/typescript/src/components/ui/Slider.d.ts +0 -55
  75. package/lib/typescript/src/components/ui/Slider.d.ts.map +0 -1
  76. package/lib/typescript/src/components/ui/Switch.d.ts +0 -34
  77. package/lib/typescript/src/components/ui/Switch.d.ts.map +0 -1
  78. package/lib/typescript/src/components/ui/Table.d.ts +0 -70
  79. package/lib/typescript/src/components/ui/Table.d.ts.map +0 -1
  80. package/lib/typescript/src/components/ui/Tabs.d.ts +0 -51
  81. package/lib/typescript/src/components/ui/Tabs.d.ts.map +0 -1
  82. package/lib/typescript/src/components/ui/Text.d.ts +0 -116
  83. package/lib/typescript/src/components/ui/Text.d.ts.map +0 -1
  84. package/lib/typescript/src/components/ui/Textarea.d.ts +0 -61
  85. package/lib/typescript/src/components/ui/Textarea.d.ts.map +0 -1
  86. package/lib/typescript/src/components/ui/Theme-Toggle.d.ts +0 -194
  87. package/lib/typescript/src/components/ui/Theme-Toggle.d.ts.map +0 -1
  88. package/lib/typescript/src/components/ui/Toast.d.ts +0 -55
  89. package/lib/typescript/src/components/ui/Toast.d.ts.map +0 -1
  90. package/lib/typescript/src/components/ui/Toggle-Group.d.ts +0 -49
  91. package/lib/typescript/src/components/ui/Toggle-Group.d.ts.map +0 -1
  92. package/lib/typescript/src/components/ui/Toggle.d.ts +0 -53
  93. package/lib/typescript/src/components/ui/Toggle.d.ts.map +0 -1
  94. package/lib/typescript/src/components/ui/Tooltip.d.ts +0 -71
  95. package/lib/typescript/src/components/ui/Tooltip.d.ts.map +0 -1
  96. package/lib/typescript/src/components/ui/index.d.ts +0 -44
  97. package/lib/typescript/src/components/ui/index.d.ts.map +0 -1
  98. package/lib/typescript/src/index.d.ts +0 -9
  99. package/lib/typescript/src/index.d.ts.map +0 -1
  100. package/lib/typescript/src/lib/ThemeProvider.d.ts +0 -137
  101. package/lib/typescript/src/lib/ThemeProvider.d.ts.map +0 -1
  102. package/lib/typescript/src/lib/cornerRadius.d.ts +0 -112
  103. package/lib/typescript/src/lib/cornerRadius.d.ts.map +0 -1
  104. package/lib/typescript/src/lib/fonts.d.ts +0 -21
  105. package/lib/typescript/src/lib/fonts.d.ts.map +0 -1
  106. package/lib/typescript/src/lib/theme.d.ts +0 -87
  107. package/lib/typescript/src/lib/theme.d.ts.map +0 -1
  108. package/lib/typescript/src/lib/utils.d.ts +0 -111
  109. package/lib/typescript/src/lib/utils.d.ts.map +0 -1
@@ -1,168 +0,0 @@
1
- import * as AlertDialogPrimitive from '@rn-primitives/alert-dialog';
2
- import * as React from 'react';
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 +0,0 @@
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;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,UAAU,EACV,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,YAAY,GAClC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,2CAiBF;AAED;;;;;;GAMG;AACH,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAM5D;AAED;;;;;;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,60 +0,0 @@
1
- import { Text } from './Text';
2
- import type { LucideIcon } from 'lucide-react-native';
3
- import * as React from 'react';
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoB,MAAM,QAAQ,CAAC;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,GAAG,KAAK,EACT,EAAE,SAAS,GACV,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,2CAgCF;AAED;;;;;;GAMG;AACH,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAU/D;AAED;;;;;;;GAOG;AACH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAa/D;AAED,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
@@ -1,227 +0,0 @@
1
- import type { LucideIcon } from 'lucide-react-native';
2
- import * as React from 'react';
3
- /**
4
- * Configuration for an action item in the AppBar
5
- *
6
- * @property {LucideIcon} icon - Icon component from lucide-react-native
7
- * @property {() => void} [onPress] - Callback when action is pressed
8
- * @property {string} [label] - Accessibility label for the action
9
- * @property {string} [className] - Additional classes for the action button container
10
- * @property {string} [iconClassName] - Additional classes for the icon
11
- * @property {boolean} [disabled] - Whether the action is disabled
12
- *
13
- * @example
14
- * ```tsx
15
- * const actions: AppBarAction[] = [
16
- * { icon: Search, onPress: handleSearch, label: 'Search' },
17
- * { icon: MoreVertical, onPress: handleMore, label: 'More options' }
18
- * ];
19
- * ```
20
- */
21
- export type AppBarAction = {
22
- icon: LucideIcon;
23
- onPress?: () => void;
24
- label?: string;
25
- className?: string;
26
- iconClassName?: string;
27
- disabled?: boolean;
28
- };
29
- /**
30
- * Props for AppBar component - A flexible top app bar following Material Design guidelines
31
- *
32
- * @property {string | React.ReactNode} [title] - AppBar title text or custom component
33
- * @property {string} [subtitle] - Optional subtitle text displayed below title
34
- *
35
- * @property {React.ReactNode} [leading] - Custom leading widget (can include multiple icons or custom components, overrides default back button)
36
- * @property {boolean} [showLeading=true] - Whether to show the leading widget
37
- * @property {() => void} [onLeadingPress] - Callback when leading icon is pressed (only used if no custom leading provided)
38
- * @property {LucideIcon} [leadingIcon=ArrowLeft] - Icon for the leading button (only used if no custom leading provided)
39
- *
40
- * @property {React.ReactNode} [center] - Custom center component (overrides title/subtitle, can include images, text, or complex layouts)
41
- *
42
- * @property {AppBarAction[]} [actions=[]] - Array of action items to display on the right (supports multiple icons)
43
- *
44
- * @property {string} [className] - Additional classes for the root container
45
- * @property {string} [titleClassName] - Additional classes for the title text
46
- * @property {string} [subtitleClassName] - Additional classes for the subtitle text
47
- * @property {string} [contentClassName] - Additional classes for the content container
48
- * @property {string} [leadingClassName] - Additional classes for the leading section container
49
- * @property {string} [centerClassName] - Additional classes for the center section container
50
- * @property {string} [actionsClassName] - Additional classes for the actions section container
51
- *
52
- * @property {boolean} [centerTitle=false] - Whether to center the title
53
- * @property {number} [elevation=4] - Elevation level for shadow (0 = no shadow)
54
- * @property {boolean} [transparent=false] - Whether the AppBar background is transparent
55
- *
56
- * @property {boolean} [useSafeArea=true] - Whether to respect safe area insets
57
- *
58
- * @property {string} [backgroundColor] - Custom background color class
59
- * @property {string} [foregroundColor] - Custom foreground/text color class
60
- *
61
- * @property {'default' | 'light-content' | 'dark-content'} [statusBarStyle] - Status bar text color (auto-adjusts based on theme if not set)
62
- * @property {string} [statusBarColor] - Status bar background color (Android)
63
- *
64
- * @property {number} [height] - Custom height in pixels (default: 56px per Material Design)
65
- *
66
- * @property {React.ReactNode} [bottom] - Additional content below main app bar (e.g., tabs, search)
67
- *
68
- * @example
69
- * ```tsx
70
- * // Simple app bar with title
71
- * <AppBar title="Home" />
72
- *
73
- * // With custom center containing image and text
74
- * <AppBar
75
- * center={
76
- * <View className="flex-row items-center gap-2">
77
- * <Image source={logo} className="w-8 h-8" />
78
- * <Text className="text-lg font-bold">MyApp</Text>
79
- * </View>
80
- * }
81
- * />
82
- *
83
- * // With multiple leading icons
84
- * <AppBar
85
- * title="Settings"
86
- * leading={
87
- * <View className="flex-row items-center">
88
- * <IconButton icon={Menu} onPress={openMenu} />
89
- * <IconButton icon={ArrowLeft} onPress={goBack} />
90
- * </View>
91
- * }
92
- * actions={[
93
- * { icon: Search, onPress: handleSearch },
94
- * { icon: Settings, onPress: openSettings },
95
- * { icon: MoreVertical, onPress: handleMore }
96
- * ]}
97
- * />
98
- * ```
99
- */
100
- export type AppBarProps = {
101
- title?: string | React.ReactNode;
102
- subtitle?: string;
103
- leading?: React.ReactNode;
104
- showLeading?: boolean;
105
- onLeadingPress?: () => void;
106
- leadingIcon?: LucideIcon;
107
- center?: React.ReactNode;
108
- actions?: AppBarAction[];
109
- className?: string;
110
- titleClassName?: string;
111
- subtitleClassName?: string;
112
- contentClassName?: string;
113
- leadingClassName?: string;
114
- centerClassName?: string;
115
- actionsClassName?: string;
116
- centerTitle?: boolean;
117
- elevation?: number;
118
- transparent?: boolean;
119
- useSafeArea?: boolean;
120
- backgroundColor?: string;
121
- foregroundColor?: string;
122
- statusBarStyle?: 'default' | 'light-content' | 'dark-content';
123
- statusBarColor?: string;
124
- height?: number;
125
- bottom?: React.ReactNode;
126
- };
127
- /**
128
- * A flexible top app bar component following Material Design guidelines
129
- *
130
- * Provides consistent navigation and actions across your app with support for:
131
- * - Customizable leading navigation (back button, menu, custom widget)
132
- * - Title and subtitle with flexible positioning
133
- * - Action buttons on the right side
134
- * - Safe area insets handling
135
- * - Platform-specific status bar configuration
136
- * - Transparent overlay mode
137
- * - Bottom content slot for tabs or search bars
138
- *
139
- * @component
140
- * @example
141
- * ```tsx
142
- * // Basic with back button
143
- * <AppBar
144
- * title="Profile"
145
- * onLeadingPress={() => navigation.goBack()}
146
- * />
147
- *
148
- * // With menu and actions
149
- * <AppBar
150
- * title="Home"
151
- * leadingIcon={Menu}
152
- * onLeadingPress={openDrawer}
153
- * actions={[
154
- * { icon: Search, onPress: handleSearch },
155
- * { icon: Settings, onPress: openSettings }
156
- * ]}
157
- * />
158
- *
159
- * // Transparent overlay (for use over content)
160
- * <AppBar
161
- * title="Photo"
162
- * transparent
163
- * foregroundColor="text-white"
164
- * statusBarStyle="light-content"
165
- * />
166
- * ```
167
- *
168
- * @accessibility
169
- * - Leading button includes "Navigate back" accessibility label
170
- * - Action buttons support custom accessibility labels
171
- * - Proper button role for all interactive elements
172
- */
173
- declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
174
- ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
175
- }> & {
176
- ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
177
- }) => React.ReactNode>>;
178
- /**
179
- * Pre-configured AppBar variants for common use cases
180
- *
181
- * @example
182
- * ```tsx
183
- * // Simple app bar without navigation
184
- * <AppBarVariants.Simple title="Home" />
185
- *
186
- * // With back button
187
- * <AppBarVariants.WithBack title="Details" onLeadingPress={goBack} />
188
- *
189
- * // With menu drawer
190
- * <AppBarVariants.WithMenu title="Main" onLeadingPress={openDrawer} />
191
- *
192
- * // Transparent overlay
193
- * <AppBarVariants.Transparent title="Gallery" />
194
- *
195
- * // Centered title
196
- * <AppBarVariants.Centered title="About" />
197
- * ```
198
- */
199
- export declare const AppBarVariants: {
200
- Simple: (props: Omit<AppBarProps, "showLeading">) => import("react/jsx-runtime").JSX.Element;
201
- WithBack: (props: AppBarProps) => import("react/jsx-runtime").JSX.Element;
202
- WithMenu: (props: Omit<AppBarProps, "leadingIcon">) => import("react/jsx-runtime").JSX.Element;
203
- Transparent: (props: Omit<AppBarProps, "transparent">) => import("react/jsx-runtime").JSX.Element;
204
- Centered: (props: Omit<AppBarProps, "centerTitle">) => import("react/jsx-runtime").JSX.Element;
205
- };
206
- /**
207
- * Common icons exported for convenience when configuring AppBar
208
- *
209
- * @example
210
- * ```tsx
211
- * import { AppBar, AppBarIcons } from './AppBar';
212
- *
213
- * <AppBar
214
- * leadingIcon={AppBarIcons.Menu}
215
- * actions={[
216
- * { icon: AppBarIcons.MoreVertical, onPress: handleMore }
217
- * ]}
218
- * />
219
- * ```
220
- */
221
- export declare const AppBarIcons: {
222
- Menu: LucideIcon;
223
- ArrowLeft: LucideIcon;
224
- MoreVertical: LucideIcon;
225
- };
226
- export { AppBar };
227
- //# sourceMappingURL=AppBar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/AppBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,MAAM,MAAM,WAAW,GAAG;IAExB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,UAAU,CAAC;IAGzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAGzB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAGzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,cAAc,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,cAAc,CAAC;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,QAAA,MAAM,MAAM;OA5LU,CAAA;;OACM,CAAC;uBAuc5B,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc;oBAET,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;sBAK9B,WAAW;sBAGX,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;yBAK7B,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;sBAKnC,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;CAGnD,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,30 +0,0 @@
1
- /**
2
- * Maintains a consistent aspect ratio for its child content
3
- *
4
- * Displays content within a desired ratio (e.g., 16/9, 4/3, 1/1) regardless of available space.
5
- * Commonly used for images, videos, and embedded content that require specific proportions.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * // 16:9 aspect ratio for video container
11
- * <AspectRatio ratio={16 / 9} className="bg-muted">
12
- * <Image source={{uri: 'video-thumbnail.jpg'}} className="h-full w-full rounded-md object-cover" />
13
- * </AspectRatio>
14
- *
15
- * // Square aspect ratio for avatars
16
- * <AspectRatio ratio={1} className="w-full">
17
- * <Image source={{uri: 'avatar.jpg'}} className="h-full w-full" />
18
- * </AspectRatio>
19
- * ```
20
- */
21
- declare const AspectRatio: import("react").ForwardRefExoticComponent<Omit<import("@rn-primitives/types").SlottableViewProps, "style"> & {
22
- ratio?: number;
23
- style?: import("react-native").ViewStyle;
24
- } & import("react").RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
25
- ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
26
- }> & {
27
- ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
28
- }) => React.ReactNode>>;
29
- export { AspectRatio };
30
- //# sourceMappingURL=Aspect-Ratio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Aspect-Ratio.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Aspect-Ratio.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,WAAW;;;;OAEV,CAAC;;OACiD,CAAC;uBAHb,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,CAAC"}