@campxdev/react-native-blueprint 0.1.0 → 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 (118) hide show
  1. package/global.css +417 -0
  2. package/lib/module/components/ui/Skeleton.js +1 -1
  3. package/lib/module/components/ui/Skeleton.js.map +1 -1
  4. package/lib/module/components/ui/index.js +1 -0
  5. package/lib/module/components/ui/index.js.map +1 -1
  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 +8 -0
  11. package/lib/typescript/src/app/_layout.d.ts.map +1 -0
  12. package/lib/typescript/src/components/theme-config.d.ts +174 -0
  13. package/lib/typescript/src/components/theme-config.d.ts.map +1 -0
  14. package/lib/typescript/src/components/ui/Accordion.d.ts +103 -0
  15. package/lib/typescript/src/components/ui/Accordion.d.ts.map +1 -0
  16. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts +168 -0
  17. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +1 -0
  18. package/lib/typescript/src/components/ui/Alert.d.ts +60 -0
  19. package/lib/typescript/src/components/ui/Alert.d.ts.map +1 -0
  20. package/lib/typescript/src/components/ui/AppBar.d.ts +227 -0
  21. package/lib/typescript/src/components/ui/AppBar.d.ts.map +1 -0
  22. package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts +30 -0
  23. package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
  24. package/lib/typescript/src/components/ui/Avatar.d.ts +1351 -0
  25. package/lib/typescript/src/components/ui/Avatar.d.ts.map +1 -0
  26. package/lib/typescript/src/components/ui/Badge.d.ts +204 -0
  27. package/lib/typescript/src/components/ui/Badge.d.ts.map +1 -0
  28. package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts +43 -0
  29. package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
  30. package/lib/typescript/src/components/ui/Button.d.ts +176 -0
  31. package/lib/typescript/src/components/ui/Button.d.ts.map +1 -0
  32. package/lib/typescript/src/components/ui/Card.d.ts +854 -0
  33. package/lib/typescript/src/components/ui/Card.d.ts.map +1 -0
  34. package/lib/typescript/src/components/ui/Checkbox.d.ts +36 -0
  35. package/lib/typescript/src/components/ui/Checkbox.d.ts.map +1 -0
  36. package/lib/typescript/src/components/ui/Collapsible.d.ts +66 -0
  37. package/lib/typescript/src/components/ui/Collapsible.d.ts.map +1 -0
  38. package/lib/typescript/src/components/ui/Context-Menu.d.ts +150 -0
  39. package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +1 -0
  40. package/lib/typescript/src/components/ui/Custom-Card.d.ts +864 -0
  41. package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +1 -0
  42. package/lib/typescript/src/components/ui/Dialog.d.ts +126 -0
  43. package/lib/typescript/src/components/ui/Dialog.d.ts.map +1 -0
  44. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +284 -0
  45. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
  46. package/lib/typescript/src/components/ui/Floating-Action.d.ts +44 -0
  47. package/lib/typescript/src/components/ui/Floating-Action.d.ts.map +1 -0
  48. package/lib/typescript/src/components/ui/Greeting-Card.d.ts +153 -0
  49. package/lib/typescript/src/components/ui/Greeting-Card.d.ts.map +1 -0
  50. package/lib/typescript/src/components/ui/Hover-Card.d.ts +68 -0
  51. package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +1 -0
  52. package/lib/typescript/src/components/ui/Icon.d.ts +43 -0
  53. package/lib/typescript/src/components/ui/Icon.d.ts.map +1 -0
  54. package/lib/typescript/src/components/ui/Input.d.ts +52 -0
  55. package/lib/typescript/src/components/ui/Input.d.ts.map +1 -0
  56. package/lib/typescript/src/components/ui/Label.d.ts +105 -0
  57. package/lib/typescript/src/components/ui/Label.d.ts.map +1 -0
  58. package/lib/typescript/src/components/ui/Menubar.d.ts +175 -0
  59. package/lib/typescript/src/components/ui/Menubar.d.ts.map +1 -0
  60. package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts +26 -0
  61. package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
  62. package/lib/typescript/src/components/ui/NavBar.d.ts +273 -0
  63. package/lib/typescript/src/components/ui/NavBar.d.ts.map +1 -0
  64. package/lib/typescript/src/components/ui/Popover.d.ts +71 -0
  65. package/lib/typescript/src/components/ui/Popover.d.ts.map +1 -0
  66. package/lib/typescript/src/components/ui/Progress.d.ts +27 -0
  67. package/lib/typescript/src/components/ui/Progress.d.ts.map +1 -0
  68. package/lib/typescript/src/components/ui/Radio-Group.d.ts +47 -0
  69. package/lib/typescript/src/components/ui/Radio-Group.d.ts.map +1 -0
  70. package/lib/typescript/src/components/ui/Select.d.ts +107 -0
  71. package/lib/typescript/src/components/ui/Select.d.ts.map +1 -0
  72. package/lib/typescript/src/components/ui/Separator.d.ts +166 -0
  73. package/lib/typescript/src/components/ui/Separator.d.ts.map +1 -0
  74. package/lib/typescript/src/components/ui/SizedBox.d.ts +79 -0
  75. package/lib/typescript/src/components/ui/SizedBox.d.ts.map +1 -0
  76. package/lib/typescript/src/components/ui/Skeleton.d.ts +40 -0
  77. package/lib/typescript/src/components/ui/Skeleton.d.ts.map +1 -0
  78. package/lib/typescript/src/components/ui/Slider.d.ts +55 -0
  79. package/lib/typescript/src/components/ui/Slider.d.ts.map +1 -0
  80. package/lib/typescript/src/components/ui/Switch.d.ts +34 -0
  81. package/lib/typescript/src/components/ui/Switch.d.ts.map +1 -0
  82. package/lib/typescript/src/components/ui/Table.d.ts +70 -0
  83. package/lib/typescript/src/components/ui/Table.d.ts.map +1 -0
  84. package/lib/typescript/src/components/ui/Tabs.d.ts +51 -0
  85. package/lib/typescript/src/components/ui/Tabs.d.ts.map +1 -0
  86. package/lib/typescript/src/components/ui/Text.d.ts +116 -0
  87. package/lib/typescript/src/components/ui/Text.d.ts.map +1 -0
  88. package/lib/typescript/src/components/ui/Textarea.d.ts +61 -0
  89. package/lib/typescript/src/components/ui/Textarea.d.ts.map +1 -0
  90. package/lib/typescript/src/components/ui/Theme-Toggle.d.ts +194 -0
  91. package/lib/typescript/src/components/ui/Theme-Toggle.d.ts.map +1 -0
  92. package/lib/typescript/src/components/ui/Toast.d.ts +55 -0
  93. package/lib/typescript/src/components/ui/Toast.d.ts.map +1 -0
  94. package/lib/typescript/src/components/ui/Toggle-Group.d.ts +49 -0
  95. package/lib/typescript/src/components/ui/Toggle-Group.d.ts.map +1 -0
  96. package/lib/typescript/src/components/ui/Toggle.d.ts +53 -0
  97. package/lib/typescript/src/components/ui/Toggle.d.ts.map +1 -0
  98. package/lib/typescript/src/components/ui/Tooltip.d.ts +71 -0
  99. package/lib/typescript/src/components/ui/Tooltip.d.ts.map +1 -0
  100. package/lib/typescript/src/components/ui/index.d.ts +44 -0
  101. package/lib/typescript/src/components/ui/index.d.ts.map +1 -0
  102. package/lib/typescript/src/index.d.ts +9 -0
  103. package/lib/typescript/src/index.d.ts.map +1 -0
  104. package/lib/typescript/src/lib/ThemeProvider.d.ts +137 -0
  105. package/lib/typescript/src/lib/ThemeProvider.d.ts.map +1 -0
  106. package/lib/typescript/src/lib/cornerRadius.d.ts +112 -0
  107. package/lib/typescript/src/lib/cornerRadius.d.ts.map +1 -0
  108. package/lib/typescript/src/lib/fonts.d.ts +21 -0
  109. package/lib/typescript/src/lib/fonts.d.ts.map +1 -0
  110. package/lib/typescript/src/lib/theme.d.ts +87 -0
  111. package/lib/typescript/src/lib/theme.d.ts.map +1 -0
  112. package/lib/typescript/src/lib/utils.d.ts +111 -0
  113. package/lib/typescript/src/lib/utils.d.ts.map +1 -0
  114. package/package.json +4 -11
  115. package/src/components/ui/Skeleton.tsx +1 -1
  116. package/src/components/ui/index.ts +1 -0
  117. package/src/types/global.d.ts +44 -0
  118. package/src/types/rn-primitives.d.ts +70 -0
@@ -46,7 +46,7 @@ function Skeleton({
46
46
  }: React.ComponentProps<typeof View> & React.RefAttributes<View>) {
47
47
  return (
48
48
  <View
49
- className={cn('bg-accent animate-pulse rounded-md', className)}
49
+ className={cn('bg-muted animate-pulse rounded-md', className)}
50
50
  {...props}
51
51
  />
52
52
  );
@@ -21,6 +21,7 @@ export * from './Icon';
21
21
  export * from './Input';
22
22
  export * from './Label';
23
23
  export * from './Menubar';
24
+ export * from './Native-Only-Animated-View';
24
25
  export * from './NavBar';
25
26
  export * from './Popover';
26
27
  export * from './Progress';
@@ -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 {};