@campxdev/react-native-blueprint 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.
Files changed (78) hide show
  1. package/lib/module/app/_layout.js +1 -1
  2. package/lib/module/app/_layout.js.map +1 -1
  3. package/lib/module/components/ui/index.js +1 -0
  4. package/lib/module/components/ui/index.js.map +1 -1
  5. package/lib/module/global.css +417 -0
  6. package/lib/module/types/global.d.js +6 -0
  7. package/lib/module/types/global.d.js.map +1 -0
  8. package/lib/module/types/rn-primitives.d.js +6 -0
  9. package/lib/module/types/rn-primitives.d.js.map +1 -0
  10. package/lib/typescript/src/app/_layout.d.ts +7 -8
  11. package/lib/typescript/src/components/ui/Accordion.d.ts +103 -11
  12. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts +167 -10
  13. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +1 -1
  14. package/lib/typescript/src/components/ui/Alert.d.ts +59 -10
  15. package/lib/typescript/src/components/ui/Avatar.d.ts +1350 -10
  16. package/lib/typescript/src/components/ui/Badge.d.ts +203 -10
  17. package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts +43 -11
  18. package/lib/typescript/src/components/ui/Button.d.ts +175 -10
  19. package/lib/typescript/src/components/ui/Card.d.ts +853 -10
  20. package/lib/typescript/src/components/ui/Checkbox.d.ts +36 -11
  21. package/lib/typescript/src/components/ui/Collapsible.d.ts +1 -147
  22. package/lib/typescript/src/components/ui/Collapsible.d.ts.map +1 -1
  23. package/lib/typescript/src/components/ui/Context-Menu.d.ts +149 -10
  24. package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +1 -1
  25. package/lib/typescript/src/components/ui/Custom-Card.d.ts +863 -10
  26. package/lib/typescript/src/components/ui/Dialog.d.ts +125 -10
  27. package/lib/typescript/src/components/ui/Dialog.d.ts.map +1 -1
  28. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +283 -10
  29. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +1 -1
  30. package/lib/typescript/src/components/ui/Greeting-Card.d.ts +152 -10
  31. package/lib/typescript/src/components/ui/Hover-Card.d.ts +67 -10
  32. package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +1 -1
  33. package/lib/typescript/src/components/ui/Icon.d.ts +43 -11
  34. package/lib/typescript/src/components/ui/Input.d.ts +51 -10
  35. package/lib/typescript/src/components/ui/Label.d.ts +104 -10
  36. package/lib/typescript/src/components/ui/Menubar.d.ts +174 -10
  37. package/lib/typescript/src/components/ui/NavBar.d.ts +271 -9
  38. package/lib/typescript/src/components/ui/Popover.d.ts +70 -10
  39. package/lib/typescript/src/components/ui/Popover.d.ts.map +1 -1
  40. package/lib/typescript/src/components/ui/Progress.d.ts +27 -11
  41. package/lib/typescript/src/components/ui/Radio-Group.d.ts +47 -11
  42. package/lib/typescript/src/components/ui/Select.d.ts +106 -10
  43. package/lib/typescript/src/components/ui/Separator.d.ts +165 -10
  44. package/lib/typescript/src/components/ui/Skeleton.d.ts +40 -11
  45. package/lib/typescript/src/components/ui/Slider.d.ts +52 -8
  46. package/lib/typescript/src/components/ui/Switch.d.ts +34 -11
  47. package/lib/typescript/src/components/ui/Table.d.ts +69 -10
  48. package/lib/typescript/src/components/ui/Tabs.d.ts +51 -11
  49. package/lib/typescript/src/components/ui/Text.d.ts +115 -10
  50. package/lib/typescript/src/components/ui/Textarea.d.ts +60 -10
  51. package/lib/typescript/src/components/ui/Theme-Toggle.d.ts +193 -10
  52. package/lib/typescript/src/components/ui/Toast.d.ts +54 -10
  53. package/lib/typescript/src/components/ui/Toggle-Group.d.ts +48 -10
  54. package/lib/typescript/src/components/ui/Toggle.d.ts +52 -10
  55. package/lib/typescript/src/components/ui/Tooltip.d.ts +70 -10
  56. package/lib/typescript/src/components/ui/Tooltip.d.ts.map +1 -1
  57. package/lib/typescript/src/components/ui/index.d.ts +7 -2
  58. package/lib/typescript/src/components/ui/index.d.ts.map +1 -1
  59. package/lib/typescript/src/index.d.ts +7 -93
  60. package/lib/typescript/src/lib/ThemeProvider.d.ts +136 -13
  61. package/lib/typescript/src/lib/cornerRadius.d.ts +112 -21
  62. package/lib/typescript/src/lib/fonts.d.ts +21 -30
  63. package/lib/typescript/src/lib/theme.d.ts +86 -8
  64. package/lib/typescript/src/lib/utils.d.ts +111 -1
  65. package/package.json +2 -9
  66. package/src/app/_layout.tsx +1 -1
  67. package/src/components/ui/index.ts +1 -0
  68. package/src/global.css +417 -0
  69. package/src/types/global.d.ts +44 -0
  70. package/src/types/rn-primitives.d.ts +70 -0
  71. package/lib/typescript/babel.config.d.ts +0 -13
  72. package/lib/typescript/babel.config.d.ts.map +0 -1
  73. package/lib/typescript/metro.config.d.ts +0 -3
  74. package/lib/typescript/metro.config.d.ts.map +0 -1
  75. package/lib/typescript/src/components/ui/Floating-Action-Button.d.ts +0 -11
  76. package/lib/typescript/src/components/ui.d.ts +0 -49
  77. package/lib/typescript/tailwind.config.d.ts +0 -3
  78. package/lib/typescript/tailwind.config.d.ts.map +0 -1
@@ -0,0 +1,44 @@
1
+ import 'react-native';
2
+ import 'react-native-reanimated';
3
+
4
+ declare module 'react-native' {
5
+ interface ViewProps {
6
+ className?: string;
7
+ }
8
+
9
+ interface TextProps {
10
+ className?: string;
11
+ }
12
+
13
+ interface ImageProps {
14
+ className?: string;
15
+ }
16
+
17
+ interface ScrollViewProps {
18
+ className?: string;
19
+ }
20
+
21
+ interface PressableProps {
22
+ className?: string;
23
+ }
24
+ }
25
+
26
+ declare module 'react-native-reanimated' {
27
+ namespace Animated {
28
+ interface AnimatedProps {
29
+ children?: React.ReactNode;
30
+ className?: string;
31
+ }
32
+ }
33
+ }
34
+
35
+ declare global {
36
+ namespace JSX {
37
+ interface IntrinsicAttributes {
38
+ children?: React.ReactNode;
39
+ className?: string;
40
+ }
41
+ }
42
+ }
43
+
44
+ export {};
@@ -0,0 +1,70 @@
1
+ declare module '@rn-primitives/*' {
2
+ import type { ReactNode } from 'react';
3
+ import type { ViewProps } from 'react-native';
4
+
5
+ export interface PrimitiveProps extends ViewProps {
6
+ children?: ReactNode;
7
+ className?: string;
8
+ asChild?: boolean;
9
+ }
10
+
11
+ export interface PrimitiveComponentProps {
12
+ children?: ReactNode;
13
+ className?: string;
14
+ }
15
+ }
16
+
17
+ // Augment specific primitive modules
18
+ declare module '@rn-primitives/accordion' {
19
+ import type { ReactNode } from 'react';
20
+ export namespace Accordion {
21
+ interface RootProps {
22
+ children?: ReactNode;
23
+ className?: string;
24
+ }
25
+ interface ItemProps {
26
+ children?: ReactNode;
27
+ className?: string;
28
+ }
29
+ interface HeaderProps {
30
+ children?: ReactNode;
31
+ className?: string;
32
+ }
33
+ interface TriggerProps {
34
+ children?: ReactNode;
35
+ className?: string;
36
+ }
37
+ interface ContentProps {
38
+ children?: ReactNode;
39
+ className?: string;
40
+ }
41
+ }
42
+ }
43
+
44
+ declare module '@rn-primitives/dialog' {
45
+ import type { ReactNode } from 'react';
46
+ export namespace Dialog {
47
+ interface OverlayProps {
48
+ children?: ReactNode;
49
+ className?: string;
50
+ }
51
+ interface ContentProps {
52
+ children?: ReactNode;
53
+ className?: string;
54
+ }
55
+ interface TitleProps {
56
+ children?: ReactNode;
57
+ className?: string;
58
+ }
59
+ interface DescriptionProps {
60
+ children?: ReactNode;
61
+ className?: string;
62
+ }
63
+ interface CloseProps {
64
+ children?: ReactNode;
65
+ className?: string;
66
+ }
67
+ }
68
+ }
69
+
70
+ export {};
@@ -1,13 +0,0 @@
1
- export let presets: (string | {
2
- jsxImportSource: string;
3
- })[][];
4
- export let overrides: ({
5
- exclude: RegExp;
6
- presets: string[];
7
- include?: undefined;
8
- } | {
9
- include: RegExp;
10
- presets: string[];
11
- exclude?: undefined;
12
- })[];
13
- //# sourceMappingURL=babel.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"babel.config.d.ts","sourceRoot":"","sources":["../../babel.config.js"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- declare const _exports: import("metro-config").InputConfigT;
2
- export = _exports;
3
- //# sourceMappingURL=metro.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metro.config.d.ts","sourceRoot":"","sources":["../../metro.config.js"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { ViewProps } from 'react-native';
3
-
4
- export interface Floating-Action-ButtonProps extends ViewProps {
5
- className?: string;
6
- children?: React.ReactNode;
7
- [key: string]: any;
8
- }
9
-
10
- export const Floating-Action-Button: React.ComponentType<Floating-Action-ButtonProps>;
11
- export default Floating-Action-Button;
@@ -1,49 +0,0 @@
1
- // UI Components type declarations
2
- import * as React from 'react';
3
- import { ViewProps, TextProps, TouchableOpacityProps, ScrollViewProps } from 'react-native';
4
-
5
- // Generic component props
6
- export interface ComponentProps extends ViewProps {
7
- className?: string;
8
- children?: React.ReactNode;
9
- }
10
-
11
- // Export all UI components
12
- export * from './ui/Accordion';
13
- export * from './ui/Alert';
14
- export * from './ui/Alert-Dialog';
15
- export * from './ui/Avatar';
16
- export * from './ui/Badge';
17
- export * from './ui/Bottom-Sheet';
18
- export * from './ui/Button';
19
- export * from './ui/Card';
20
- export * from './ui/Checkbox';
21
- export * from './ui/Context-Menu';
22
- export * from './ui/Custom-Card';
23
- export * from './ui/Dialog';
24
- export * from './ui/Dropdown-Menu';
25
- export * from './ui/Floating-Action-Button';
26
- export * from './ui/Greeting-Card';
27
- export * from './ui/Hover-Card';
28
- export * from './ui/Icon';
29
- export * from './ui/Input';
30
- export * from './ui/Label';
31
- export * from './ui/Menubar';
32
- export * from './ui/NavBar';
33
- export * from './ui/Popover';
34
- export * from './ui/Progress';
35
- export * from './ui/Radio-Group';
36
- export * from './ui/Select';
37
- export * from './ui/Separator';
38
- export * from './ui/Skeleton';
39
- export * from './ui/Slider';
40
- export * from './ui/Switch';
41
- export * from './ui/Table';
42
- export * from './ui/Tabs';
43
- export * from './ui/Text';
44
- export * from './ui/Textarea';
45
- export * from './ui/Theme-Toggle';
46
- export * from './ui/Toast';
47
- export * from './ui/Toggle';
48
- export * from './ui/Toggle-Group';
49
- export * from './ui/Tooltip';
@@ -1,3 +0,0 @@
1
- declare const _exports: import("tailwindcss").Config;
2
- export = _exports;
3
- //# sourceMappingURL=tailwind.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwind.config.d.ts","sourceRoot":"","sources":["../../tailwind.config.js"],"names":[],"mappings":"wBAEW,OAAO,aAAa,EAAE,MAAM"}