@nexara/nativeflow 0.1.2 → 0.1.6

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 (149) hide show
  1. package/README.md +2 -36
  2. package/lib/commonjs/components/Button/Button.js +13 -12
  3. package/lib/commonjs/components/Button/Button.js.map +1 -1
  4. package/lib/commonjs/components/Chip/Chip.js +2 -2
  5. package/lib/commonjs/components/Chip/Chip.js.map +1 -1
  6. package/lib/commonjs/components/Dialog/Dialog.js +2 -1
  7. package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
  8. package/lib/commonjs/components/Dialog/DialogDescription.js +1 -1
  9. package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -1
  10. package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
  11. package/lib/commonjs/components/Divider/Divider.js +0 -1
  12. package/lib/commonjs/components/Divider/Divider.js.map +1 -1
  13. package/lib/commonjs/components/Grid/Grid.js +0 -1
  14. package/lib/commonjs/components/Grid/Grid.js.map +1 -1
  15. package/lib/commonjs/components/Icon/Icon.js.map +1 -1
  16. package/lib/commonjs/components/IconButton/IconButton.js +6 -3
  17. package/lib/commonjs/components/IconButton/IconButton.js.map +1 -1
  18. package/lib/commonjs/components/Menu/Menu.js.map +1 -1
  19. package/lib/commonjs/components/Stack/HStack.js +2 -4
  20. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  21. package/lib/commonjs/components/Stack/VStack.js +4 -7
  22. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  23. package/lib/commonjs/components/StyledComponents/StyledText.js +3 -5
  24. package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
  25. package/lib/commonjs/components/Switch/Switch.js +2 -2
  26. package/lib/commonjs/components/Switch/Switch.js.map +1 -1
  27. package/lib/commonjs/components/TouchableRipple/TouchableRipple.js +90 -103
  28. package/lib/commonjs/components/TouchableRipple/TouchableRipple.js.map +1 -1
  29. package/lib/commonjs/components/UserInput/UserInput.js +2 -2
  30. package/lib/commonjs/components/UserInput/UserInput.js.map +1 -1
  31. package/lib/commonjs/index.js +4 -12
  32. package/lib/commonjs/index.js.map +1 -2
  33. package/lib/module/components/Button/Button.js +14 -13
  34. package/lib/module/components/Button/Button.js.map +1 -1
  35. package/lib/module/components/Chip/Chip.js +2 -2
  36. package/lib/module/components/Chip/Chip.js.map +1 -1
  37. package/lib/module/components/Dialog/Dialog.js +2 -1
  38. package/lib/module/components/Dialog/Dialog.js.map +1 -1
  39. package/lib/module/components/Dialog/DialogDescription.js +1 -1
  40. package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
  41. package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
  42. package/lib/module/components/Divider/Divider.js +0 -1
  43. package/lib/module/components/Divider/Divider.js.map +1 -1
  44. package/lib/module/components/Grid/Grid.js +0 -1
  45. package/lib/module/components/Grid/Grid.js.map +1 -1
  46. package/lib/module/components/Icon/Icon.js.map +1 -1
  47. package/lib/module/components/IconButton/IconButton.js +5 -3
  48. package/lib/module/components/IconButton/IconButton.js.map +1 -1
  49. package/lib/module/components/Menu/Menu.js.map +1 -1
  50. package/lib/module/components/Stack/HStack.js +2 -4
  51. package/lib/module/components/Stack/HStack.js.map +1 -1
  52. package/lib/module/components/Stack/VStack.js +5 -8
  53. package/lib/module/components/Stack/VStack.js.map +1 -1
  54. package/lib/module/components/StyledComponents/StyledText.js +3 -5
  55. package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
  56. package/lib/module/components/Switch/Switch.js +2 -2
  57. package/lib/module/components/Switch/Switch.js.map +1 -1
  58. package/lib/module/components/TouchableRipple/TouchableRipple.js +90 -96
  59. package/lib/module/components/TouchableRipple/TouchableRipple.js.map +1 -1
  60. package/lib/module/components/UserInput/UserInput.js +2 -2
  61. package/lib/module/components/UserInput/UserInput.js.map +1 -1
  62. package/lib/module/components/UserInput/UserInputV2.js.map +1 -1
  63. package/lib/module/index.js +3 -1
  64. package/lib/module/index.js.map +1 -1
  65. package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -1
  66. package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -1
  67. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -1
  68. package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts +1 -2
  70. package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts.map +1 -1
  71. package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts +2 -2
  72. package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts.map +1 -1
  73. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -1
  74. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -1
  75. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  76. package/lib/typescript/commonjs/src/components/TouchableRipple/TouchableRipple.d.ts +0 -10
  77. package/lib/typescript/commonjs/src/components/TouchableRipple/TouchableRipple.d.ts.map +1 -1
  78. package/lib/typescript/commonjs/src/components/UserInput/UserInputV2.d.ts +1 -1
  79. package/lib/typescript/commonjs/src/components/UserInput/UserInputV2.d.ts.map +1 -1
  80. package/lib/typescript/commonjs/src/index.d.ts +0 -2
  81. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  82. package/lib/typescript/commonjs/src/types/button.type.d.ts +2 -2
  83. package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
  84. package/lib/typescript/commonjs/src/types/chip.type.d.ts +1 -0
  85. package/lib/typescript/commonjs/src/types/chip.type.d.ts.map +1 -1
  86. package/lib/typescript/commonjs/src/types/dialog.type.d.ts +4 -4
  87. package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -1
  88. package/lib/typescript/commonjs/src/types/menu.type.d.ts +7 -2
  89. package/lib/typescript/commonjs/src/types/menu.type.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/src/types/stack.type.d.ts +4 -13
  91. package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -1
  92. package/lib/typescript/commonjs/src/types/userInput.type.d.ts +1 -0
  93. package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -1
  94. package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
  95. package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -1
  96. package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -1
  97. package/lib/typescript/module/src/components/Grid/Grid.d.ts.map +1 -1
  98. package/lib/typescript/module/src/components/Icon/Icon.d.ts +1 -2
  99. package/lib/typescript/module/src/components/Icon/Icon.d.ts.map +1 -1
  100. package/lib/typescript/module/src/components/IconButton/IconButton.d.ts +2 -2
  101. package/lib/typescript/module/src/components/IconButton/IconButton.d.ts.map +1 -1
  102. package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -1
  103. package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -1
  104. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  105. package/lib/typescript/module/src/components/TouchableRipple/TouchableRipple.d.ts +0 -10
  106. package/lib/typescript/module/src/components/TouchableRipple/TouchableRipple.d.ts.map +1 -1
  107. package/lib/typescript/module/src/components/UserInput/UserInputV2.d.ts +1 -1
  108. package/lib/typescript/module/src/components/UserInput/UserInputV2.d.ts.map +1 -1
  109. package/lib/typescript/module/src/index.d.ts +0 -2
  110. package/lib/typescript/module/src/index.d.ts.map +1 -1
  111. package/lib/typescript/module/src/types/button.type.d.ts +2 -2
  112. package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
  113. package/lib/typescript/module/src/types/chip.type.d.ts +1 -0
  114. package/lib/typescript/module/src/types/chip.type.d.ts.map +1 -1
  115. package/lib/typescript/module/src/types/dialog.type.d.ts +4 -4
  116. package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -1
  117. package/lib/typescript/module/src/types/menu.type.d.ts +7 -2
  118. package/lib/typescript/module/src/types/menu.type.d.ts.map +1 -1
  119. package/lib/typescript/module/src/types/stack.type.d.ts +4 -13
  120. package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -1
  121. package/lib/typescript/module/src/types/userInput.type.d.ts +1 -0
  122. package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -1
  123. package/package.json +29 -19
  124. package/src/components/Button/Button.tsx +21 -13
  125. package/src/components/Chip/Chip.tsx +2 -2
  126. package/src/components/Dialog/Dialog.tsx +2 -1
  127. package/src/components/Dialog/DialogDescription.tsx +1 -1
  128. package/src/components/Dialog/DialogFoot.tsx +1 -1
  129. package/src/components/Divider/Divider.tsx +0 -1
  130. package/src/components/Grid/Grid.tsx +0 -1
  131. package/src/components/Icon/Icon.tsx +1 -2
  132. package/src/components/IconButton/IconButton.tsx +6 -6
  133. package/src/components/Menu/Menu.tsx +1 -1
  134. package/src/components/Stack/HStack.tsx +5 -7
  135. package/src/components/Stack/VStack.tsx +8 -10
  136. package/src/components/StyledComponents/StyledText.tsx +2 -3
  137. package/src/components/StyledComponents/StyledView.tsx +1 -1
  138. package/src/components/Switch/Switch.tsx +2 -2
  139. package/src/components/TouchableRipple/TouchableRipple.tsx +83 -83
  140. package/src/components/UserInput/UserInput.tsx +2 -2
  141. package/src/components/UserInput/UserInputV2.tsx +2 -2
  142. package/src/index.ts +2 -2
  143. package/src/types/button.type.ts +2 -2
  144. package/src/types/chip.type.ts +1 -0
  145. package/src/types/dialog.type.ts +6 -5
  146. package/src/types/menu.type.ts +8 -2
  147. package/src/types/stack.type.ts +4 -15
  148. package/src/types/userInput.type.ts +1 -0
  149. package/src/index.tsx +0 -3
package/src/index.ts CHANGED
@@ -11,7 +11,7 @@ export { default as Progress } from './components/Progress/Progress';
11
11
  export { default as Slider } from './components/Slider/Slider';
12
12
  export { default as Surface } from './components/Surface/Surface';
13
13
  export { default as Switch } from './components/Switch/Switch';
14
- export { default as TouchableRipple } from './components/TouchableRipple/TouchableRipple';
14
+ // export { default as TouchableRipple } from './components/TouchableRipple/TouchableRipple';
15
15
  export { Dialog, DialogHead, DialogBody, DialogFoot, DialogDescription } from './components/Dialog';
16
16
  export { default as CheckBox } from './components/CheckBox/CheckBox';
17
17
  export { default as Avatar } from './components/Avatar';
@@ -41,7 +41,7 @@ export type { ProgressProps } from './components/Progress/Progress';
41
41
  export type { SliderProps } from './components/Slider/Slider';
42
42
  export type { SurfaceProps } from './components/Surface/Surface';
43
43
  export type { SwitchProps } from './components/Switch/Switch';
44
- export type { TouchableRippleProps } from './components/TouchableRipple/TouchableRipple';
44
+ // export type { TouchableRippleProps } from './components/TouchableRipple/TouchableRipple';
45
45
  export type { DialogProps, DialogHeadProps, DialogBodyProps, DialogFootProps, DialogDescriptionProps } from './components/Dialog';
46
46
  export type { CheckBoxProps } from './components/CheckBox/CheckBox';
47
47
  export type { AvatarTextProps, AvatarImageProps } from './components/Avatar';
@@ -1,11 +1,11 @@
1
- import type { PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
1
+ import type { StyleProp, TextStyle, TouchableOpacityProps, ViewStyle } from "react-native";
2
2
  import type { ButtonVariant, TypographyVariant } from "./common.type";
3
3
  import type { JSX } from "react";
4
4
 
5
5
  /**
6
6
  * @see https://rn-nativeflow-docs.onrender.com/docs/components/button
7
7
  */
8
- export type ButtonProps = PressableProps & {
8
+ export type ButtonProps = TouchableOpacityProps & {
9
9
  /** Specifies the button style variant (e.g., 'contained', 'outlined') */
10
10
  variant?: ButtonVariant;
11
11
 
@@ -1,3 +1,4 @@
1
+ import type { JSX } from "react";
1
2
  import type { PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
2
3
 
3
4
  export type ChipProps = PressableProps & {
@@ -11,9 +11,6 @@ export type DialogProps = {
11
11
  /** Defines the dialog style variant */
12
12
  variant?: DialogVariant;
13
13
 
14
- /** Controls the visibility of the dialog */
15
- isVisible?: boolean;
16
-
17
14
  /** Defines the horizontal size of the dialog */
18
15
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'full';
19
16
 
@@ -26,6 +23,9 @@ export type DialogProps = {
26
23
  /** Callback function triggered when the dialog is closed */
27
24
  onClose?: () => void;
28
25
 
26
+ /** Custom styles for the dialog container */
27
+ containerStyle?: StyleProp<ViewStyle>;
28
+
29
29
  /** Content to be displayed inside the dialog */
30
30
  children?: ReactNode;
31
31
  };
@@ -43,12 +43,13 @@ export type DialogBodyProps = {
43
43
  };
44
44
 
45
45
  export type DialogDescriptionProps = {
46
- /** Font size for the dialog description text */
47
- fs?: number;
48
46
 
49
47
  /** Variant of the typography to be applied to the text */
50
48
  textVariant?: TypographyVariant;
51
49
 
50
+ /** Font size for the dialog description text */
51
+ fs?: number;
52
+
52
53
  /** Style for the container wrapping the dialog description */
53
54
  containerStyle?: StyleProp<ViewStyle>;
54
55
 
@@ -1,5 +1,5 @@
1
- import type { ReactNode } from "react";
2
- import type { StyleProp, TextStyle, TouchableOpacityProps, ViewStyle } from "react-native";
1
+ import type { JSX, ReactNode } from "react";
2
+ import type { StyleProp, TextStyle, TouchableOpacityProps, View, ViewStyle } from "react-native";
3
3
  import type { TypographyVariant } from "./common.type";
4
4
 
5
5
 
@@ -52,6 +52,12 @@ export type MenuProps = {
52
52
  * Child components to be rendered inside the menu.
53
53
  */
54
54
  children?: ReactNode;
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 | null>
55
61
  };
56
62
 
57
63
 
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
- import type { FlexStyle, StyleProp, View, ViewStyle } from "react-native";
2
+ import type { FlexStyle, StyleProp, ViewStyle } from "react-native";
3
+ import type { StyledViewProps } from "./styledComponents.type";
3
4
 
4
- export type HStackProps = ViewStyle & {
5
+ export type HStackProps = StyledViewProps & {
5
6
  /**
6
7
  * Defines the alignment of children along the main axis.
7
8
  */
@@ -31,15 +32,9 @@ export type HStackProps = ViewStyle & {
31
32
  * Child components to be rendered inside the HStack.
32
33
  */
33
34
  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>
40
35
  };
41
36
 
42
- export type VStackProps = ViewStyle & {
37
+ export type VStackProps = StyledViewProps & {
43
38
  /**
44
39
  * Child components to be rendered inside the VStack.
45
40
  */
@@ -59,10 +54,4 @@ export type VStackProps = ViewStyle & {
59
54
  * Custom styles for the container.
60
55
  */
61
56
  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>
68
57
  };
@@ -1,5 +1,6 @@
1
1
  import type { StyleProp, TextInput, TextInputProps, TextStyle, ViewStyle } from "react-native";
2
2
  import type { TypographyVariant, UserInputVariant } from "./common.type";
3
+ import type { JSX } from "react";
3
4
 
4
5
  export type UserInputProps = TextInputProps & {
5
6
  /**
package/src/index.tsx DELETED
@@ -1,3 +0,0 @@
1
- export function multiply(a: number, b: number): number {
2
- return a * b;
3
- }