@nexara/nativeflow 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 (235) hide show
  1. package/lib/commonjs/components/Button/Button.js +50 -37
  2. package/lib/commonjs/components/Button/Button.js.map +1 -1
  3. package/lib/commonjs/components/CheckBox/CheckBox.js +39 -29
  4. package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -1
  5. package/lib/commonjs/components/Dialog/Dialog.js +52 -48
  6. package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
  7. package/lib/commonjs/components/Dialog/DialogBody.js +6 -8
  8. package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -1
  9. package/lib/commonjs/components/Dialog/DialogDescription.js +4 -7
  10. package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -1
  11. package/lib/commonjs/components/Dialog/DialogFoot.js +13 -13
  12. package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
  13. package/lib/commonjs/components/Dialog/DialogHead.js +17 -16
  14. package/lib/commonjs/components/Dialog/DialogHead.js.map +1 -1
  15. package/lib/commonjs/components/Divider/Divider.js +5 -8
  16. package/lib/commonjs/components/Divider/Divider.js.map +1 -1
  17. package/lib/commonjs/components/Header/Header.js.map +1 -1
  18. package/lib/commonjs/components/Icon/Icon.js +9 -5
  19. package/lib/commonjs/components/Icon/Icon.js.map +1 -1
  20. package/lib/commonjs/components/Link/Link.js +13 -15
  21. package/lib/commonjs/components/Link/Link.js.map +1 -1
  22. package/lib/commonjs/components/Menu/Menu.js +51 -54
  23. package/lib/commonjs/components/Menu/Menu.js.map +1 -1
  24. package/lib/commonjs/components/Menu/MenuItem.js +0 -2
  25. package/lib/commonjs/components/Menu/MenuItem.js.map +1 -1
  26. package/lib/commonjs/components/Portal/Portal.js +1 -1
  27. package/lib/commonjs/components/Portal/Portal.js.map +1 -1
  28. package/lib/commonjs/components/Progress/Progress.js +25 -15
  29. package/lib/commonjs/components/Progress/Progress.js.map +1 -1
  30. package/lib/commonjs/components/Stack/HStack.js +9 -11
  31. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  32. package/lib/commonjs/components/Stack/VStack.js +4 -2
  33. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  34. package/lib/commonjs/components/StyledComponents/StyledText.js +12 -13
  35. package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
  36. package/lib/commonjs/components/StyledComponents/StyledView.js +14 -14
  37. package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -1
  38. package/lib/commonjs/components/Switch/Switch.js +2 -2
  39. package/lib/commonjs/components/Switch/Switch.js.map +1 -1
  40. package/lib/commonjs/components/UserInput/UserInput.js +29 -32
  41. package/lib/commonjs/components/UserInput/UserInput.js.map +1 -1
  42. package/lib/commonjs/helpers/LightenColorShades.js +18 -5
  43. package/lib/commonjs/helpers/LightenColorShades.js.map +1 -1
  44. package/lib/commonjs/helpers/ResponsiveCalculations.js +30 -4
  45. package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
  46. package/lib/commonjs/helpers/index.js +16 -0
  47. package/lib/commonjs/helpers/index.js.map +1 -1
  48. package/lib/commonjs/index.js +5 -4
  49. package/lib/commonjs/index.js.map +2 -1
  50. package/lib/commonjs/themes/LightTheme.js +1 -3
  51. package/lib/commonjs/themes/LightTheme.js.map +1 -1
  52. package/lib/commonjs/types/index.js +11 -0
  53. package/lib/commonjs/types/index.js.map +1 -1
  54. package/lib/commonjs/types/progress.type.js +2 -0
  55. package/lib/commonjs/types/progress.type.js.map +1 -0
  56. package/lib/module/components/Button/Button.js +50 -37
  57. package/lib/module/components/Button/Button.js.map +1 -1
  58. package/lib/module/components/CheckBox/CheckBox.js +41 -31
  59. package/lib/module/components/CheckBox/CheckBox.js.map +1 -1
  60. package/lib/module/components/Dialog/Dialog.js +52 -48
  61. package/lib/module/components/Dialog/Dialog.js.map +1 -1
  62. package/lib/module/components/Dialog/DialogBody.js +7 -9
  63. package/lib/module/components/Dialog/DialogBody.js.map +1 -1
  64. package/lib/module/components/Dialog/DialogDescription.js +5 -8
  65. package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
  66. package/lib/module/components/Dialog/DialogFoot.js +13 -13
  67. package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
  68. package/lib/module/components/Dialog/DialogHead.js +17 -16
  69. package/lib/module/components/Dialog/DialogHead.js.map +1 -1
  70. package/lib/module/components/Divider/Divider.js +5 -8
  71. package/lib/module/components/Divider/Divider.js.map +1 -1
  72. package/lib/module/components/Header/Header.js.map +1 -1
  73. package/lib/module/components/Icon/Icon.js +7 -4
  74. package/lib/module/components/Icon/Icon.js.map +1 -1
  75. package/lib/module/components/Link/Link.js +14 -16
  76. package/lib/module/components/Link/Link.js.map +1 -1
  77. package/lib/module/components/Menu/Menu.js +51 -54
  78. package/lib/module/components/Menu/Menu.js.map +1 -1
  79. package/lib/module/components/Menu/MenuItem.js +0 -2
  80. package/lib/module/components/Menu/MenuItem.js.map +1 -1
  81. package/lib/module/components/Portal/Portal.js +1 -1
  82. package/lib/module/components/Portal/Portal.js.map +1 -1
  83. package/lib/module/components/Progress/Progress.js +26 -16
  84. package/lib/module/components/Progress/Progress.js.map +1 -1
  85. package/lib/module/components/Stack/HStack.js +10 -12
  86. package/lib/module/components/Stack/HStack.js.map +1 -1
  87. package/lib/module/components/Stack/VStack.js +4 -2
  88. package/lib/module/components/Stack/VStack.js.map +1 -1
  89. package/lib/module/components/StyledComponents/StyledText.js +13 -14
  90. package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
  91. package/lib/module/components/StyledComponents/StyledView.js +15 -15
  92. package/lib/module/components/StyledComponents/StyledView.js.map +1 -1
  93. package/lib/module/components/Switch/Switch.js +2 -2
  94. package/lib/module/components/Switch/Switch.js.map +1 -1
  95. package/lib/module/components/UserInput/UserInput.js +30 -35
  96. package/lib/module/components/UserInput/UserInput.js.map +1 -1
  97. package/lib/module/helpers/LightenColorShades.js +18 -5
  98. package/lib/module/helpers/LightenColorShades.js.map +1 -1
  99. package/lib/module/helpers/ResponsiveCalculations.js +28 -3
  100. package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
  101. package/lib/module/helpers/index.js +1 -0
  102. package/lib/module/helpers/index.js.map +1 -1
  103. package/lib/module/index.js +2 -4
  104. package/lib/module/index.js.map +1 -2
  105. package/lib/module/themes/LightTheme.js +1 -2
  106. package/lib/module/themes/LightTheme.js.map +1 -1
  107. package/lib/module/types/index.js +1 -0
  108. package/lib/module/types/index.js.map +1 -1
  109. package/lib/module/types/progress.type.js +2 -0
  110. package/lib/module/types/progress.type.js.map +1 -0
  111. package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -1
  112. package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts.map +1 -1
  113. package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts.map +1 -1
  115. package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts.map +1 -1
  116. package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -1
  118. package/lib/typescript/commonjs/src/components/Header/Header.d.ts +1 -0
  119. package/lib/typescript/commonjs/src/components/Header/Header.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts +1 -0
  121. package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/src/components/Link/Link.d.ts +4 -0
  123. package/lib/typescript/commonjs/src/components/Link/Link.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts.map +1 -1
  126. package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts +1 -1
  127. package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts +1 -12
  129. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts +1 -34
  135. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -1
  136. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts +1 -1
  137. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts.map +1 -1
  138. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts +1 -0
  139. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/src/helpers/index.d.ts +1 -0
  141. package/lib/typescript/commonjs/src/helpers/index.d.ts.map +1 -1
  142. package/lib/typescript/commonjs/src/themes/LightTheme.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/src/types/button.type.d.ts +1 -0
  144. package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/src/types/dialog.type.d.ts +0 -2
  146. package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/src/types/index.d.ts +1 -0
  148. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/src/types/progress.type.d.ts +13 -0
  150. package/lib/typescript/commonjs/src/types/progress.type.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/src/types/stack.type.d.ts +14 -3
  152. package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts +7 -1
  154. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/src/types/userInput.type.d.ts +6 -1
  156. package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -1
  157. package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
  158. package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts.map +1 -1
  159. package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -1
  160. package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts.map +1 -1
  161. package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts.map +1 -1
  162. package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts.map +1 -1
  163. package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -1
  164. package/lib/typescript/module/src/components/Header/Header.d.ts +1 -0
  165. package/lib/typescript/module/src/components/Header/Header.d.ts.map +1 -1
  166. package/lib/typescript/module/src/components/Icon/Icon.d.ts +1 -0
  167. package/lib/typescript/module/src/components/Icon/Icon.d.ts.map +1 -1
  168. package/lib/typescript/module/src/components/Link/Link.d.ts +4 -0
  169. package/lib/typescript/module/src/components/Link/Link.d.ts.map +1 -1
  170. package/lib/typescript/module/src/components/Menu/Menu.d.ts.map +1 -1
  171. package/lib/typescript/module/src/components/Menu/MenuItem.d.ts.map +1 -1
  172. package/lib/typescript/module/src/components/Portal/Portal.d.ts +1 -1
  173. package/lib/typescript/module/src/components/Portal/Portal.d.ts.map +1 -1
  174. package/lib/typescript/module/src/components/Progress/Progress.d.ts +1 -12
  175. package/lib/typescript/module/src/components/Progress/Progress.d.ts.map +1 -1
  176. package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -1
  177. package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -1
  178. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  179. package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts.map +1 -1
  180. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts +1 -34
  181. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -1
  182. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts +1 -1
  183. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts.map +1 -1
  184. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts +1 -0
  185. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
  186. package/lib/typescript/module/src/helpers/index.d.ts +1 -0
  187. package/lib/typescript/module/src/helpers/index.d.ts.map +1 -1
  188. package/lib/typescript/module/src/themes/LightTheme.d.ts.map +1 -1
  189. package/lib/typescript/module/src/types/button.type.d.ts +1 -0
  190. package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
  191. package/lib/typescript/module/src/types/dialog.type.d.ts +0 -2
  192. package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -1
  193. package/lib/typescript/module/src/types/index.d.ts +1 -0
  194. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  195. package/lib/typescript/module/src/types/progress.type.d.ts +13 -0
  196. package/lib/typescript/module/src/types/progress.type.d.ts.map +1 -0
  197. package/lib/typescript/module/src/types/stack.type.d.ts +14 -3
  198. package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -1
  199. package/lib/typescript/module/src/types/styledComponents.type.d.ts +7 -1
  200. package/lib/typescript/module/src/types/styledComponents.type.d.ts.map +1 -1
  201. package/lib/typescript/module/src/types/userInput.type.d.ts +6 -1
  202. package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -1
  203. package/package.json +2 -2
  204. package/src/components/Button/Button.tsx +111 -76
  205. package/src/components/CheckBox/CheckBox.tsx +61 -49
  206. package/src/components/Dialog/Dialog.tsx +54 -51
  207. package/src/components/Dialog/DialogBody.tsx +7 -9
  208. package/src/components/Dialog/DialogDescription.tsx +9 -9
  209. package/src/components/Dialog/DialogFoot.tsx +15 -13
  210. package/src/components/Dialog/DialogHead.tsx +20 -17
  211. package/src/components/Divider/Divider.tsx +5 -9
  212. package/src/components/Header/Header.tsx +1 -0
  213. package/src/components/Icon/Icon.tsx +9 -4
  214. package/src/components/Link/Link.tsx +24 -7
  215. package/src/components/Menu/Menu.tsx +50 -50
  216. package/src/components/Menu/MenuItem.tsx +0 -2
  217. package/src/components/Portal/Portal.tsx +2 -2
  218. package/src/components/Progress/Progress.tsx +32 -35
  219. package/src/components/Stack/HStack.tsx +12 -12
  220. package/src/components/Stack/VStack.tsx +5 -2
  221. package/src/components/StyledComponents/StyledText.tsx +3 -5
  222. package/src/components/StyledComponents/StyledView.tsx +6 -2
  223. package/src/components/Switch/Switch.tsx +2 -2
  224. package/src/components/UserInput/UserInput.tsx +43 -37
  225. package/src/helpers/LightenColorShades.ts +26 -6
  226. package/src/helpers/ResponsiveCalculations.ts +28 -3
  227. package/src/helpers/index.ts +2 -1
  228. package/src/themes/LightTheme.ts +1 -2
  229. package/src/types/button.type.ts +1 -0
  230. package/src/types/dialog.type.ts +0 -3
  231. package/src/types/index.ts +2 -1
  232. package/src/types/progress.type.ts +16 -0
  233. package/src/types/stack.type.ts +16 -3
  234. package/src/types/styledComponents.type.ts +8 -1
  235. package/src/types/userInput.type.ts +7 -1
@@ -1,2 +1,3 @@
1
1
  export { default as getGridValue } from './CalculateGridSize';
2
- export { default as deviceScreenSizeCategory } from './DeviceSizeCategory';
2
+ export { default as deviceScreenSizeCategory } from './DeviceSizeCategory';
3
+ export * from "./ResponsiveCalculations";
@@ -1,4 +1,3 @@
1
- import Color from "color";
2
1
  import { dialogSizes, typographySizes } from "../constants";
3
2
  import type { ThemeTypes } from "../types";
4
3
 
@@ -56,7 +55,7 @@ import type { ThemeTypes } from "../types";
56
55
  // switchColor: '#353935',
57
56
  // error: '#ED2939',
58
57
  // })
59
- console.log(Color('rgba(0, 0, 0, 1)').alpha(0.12).rgb().string())
58
+ // console.log(Color('rgba(0, 0, 0, 1)').alpha(0.12).rgb().string())
60
59
  const LightTheme: ThemeTypes = {
61
60
  isDark: false,
62
61
  colors: {
@@ -1,5 +1,6 @@
1
1
  import type { PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
2
2
  import type { ButtonVariant, TypographyVariant } from "./common.type";
3
+ import type { JSX } from "react";
3
4
 
4
5
  /**
5
6
  * @see https://rn-nativeflow-docs.onrender.com/docs/components/button
@@ -23,9 +23,6 @@ export type DialogProps = {
23
23
  /** Background color of the backdrop */
24
24
  backdropColor?: string;
25
25
 
26
- /** Duration of the animation in milliseconds */
27
- animationDuration?: number;
28
-
29
26
  /** Callback function triggered when the dialog is closed */
30
27
  onClose?: () => void;
31
28
 
@@ -9,4 +9,5 @@ export * from './menu.type';
9
9
  export * from './stack.type';
10
10
  export * from './styledComponents.type';
11
11
  export * from './switch.type';
12
- export * from './userInput.type';
12
+ export * from './userInput.type';
13
+ export * from './progress.type'
@@ -0,0 +1,16 @@
1
+ export type ProgressProps = {
2
+ /** Current progress value (0-100) */
3
+ value?: number;
4
+
5
+ /** Thickness of the progress bar */
6
+ thickness?: number;
7
+
8
+ /** Border radius of the progress bar */
9
+ br?: number;
10
+
11
+ /** Background color of the track (unfilled part) */
12
+ trackColor?: string;
13
+
14
+ /** Color of the progress (filled part) */
15
+ progressColor?: string;
16
+ }
@@ -1,4 +1,5 @@
1
- import type { FlexStyle, StyleProp, ViewStyle } from "react-native";
1
+ import React from "react";
2
+ import type { FlexStyle, StyleProp, View, ViewStyle } from "react-native";
2
3
 
3
4
  export type HStackProps = ViewStyle & {
4
5
  /**
@@ -24,12 +25,18 @@ export type HStackProps = ViewStyle & {
24
25
  /**
25
26
  * Custom styles for the container.
26
27
  */
27
- containerStyle?: StyleProp<ViewStyle>;
28
+ style?: StyleProp<ViewStyle>;
28
29
 
29
30
  /**
30
31
  * Child components to be rendered inside the HStack.
31
32
  */
32
33
  children?: React.ReactNode;
34
+
35
+ /**
36
+ * A ref to access the underlying View component.
37
+ * This can be used for measuring layout, animations, or imperative interactions.
38
+ */
39
+ ref?: React.RefObject<View>
33
40
  };
34
41
 
35
42
  export type VStackProps = ViewStyle & {
@@ -51,5 +58,11 @@ export type VStackProps = ViewStyle & {
51
58
  /**
52
59
  * Custom styles for the container.
53
60
  */
54
- containerStyle?: StyleProp<ViewStyle>;
61
+ style?: StyleProp<ViewStyle>;
62
+
63
+ /**
64
+ * A ref to access the underlying View component.
65
+ * This can be used for measuring layout, animations, or imperative interactions.
66
+ */
67
+ ref?: React.RefObject<View>
55
68
  };
@@ -1,5 +1,6 @@
1
- import type { ColorValue, DimensionValue, StyleProp, TextProps, TextStyle, ViewProps, ViewStyle } from "react-native";
1
+ import type { ColorValue, DimensionValue, StyleProp, TextProps, TextStyle, View, ViewProps, ViewStyle } from "react-native";
2
2
  import type { TypographyVariant } from "./common.type";
3
+ import React from "react";
3
4
 
4
5
  export type StyledViewProps = ViewStyle & ViewProps & {
5
6
  /**
@@ -51,6 +52,12 @@ export type StyledViewProps = ViewStyle & ViewProps & {
51
52
  * Custom styles for the view component.
52
53
  */
53
54
  style?: StyleProp<ViewStyle>;
55
+
56
+ /**
57
+ * A ref to access the underlying View component.
58
+ * This can be used for measuring layout, animations, or imperative interactions.
59
+ */
60
+ ref?: React.RefObject<View>
54
61
  };
55
62
 
56
63
  export type StyledTextProps = TextProps & {
@@ -1,4 +1,4 @@
1
- import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
1
+ import type { StyleProp, TextInput, TextInputProps, TextStyle, ViewStyle } from "react-native";
2
2
  import type { TypographyVariant, UserInputVariant } from "./common.type";
3
3
 
4
4
  export type UserInputProps = TextInputProps & {
@@ -92,4 +92,10 @@ export type UserInputProps = TextInputProps & {
92
92
  label?: StyleProp<TextStyle>;
93
93
  helperText?: StyleProp<TextStyle>;
94
94
  };
95
+
96
+ /**
97
+ * A ref to access the underlying View component.
98
+ * This can be used for measuring layout, animations, or imperative interactions.
99
+ */
100
+ ref?: React.RefObject<TextInput>
95
101
  };