@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.
- package/lib/commonjs/components/Button/Button.js +50 -37
- package/lib/commonjs/components/Button/Button.js.map +1 -1
- package/lib/commonjs/components/CheckBox/CheckBox.js +39 -29
- package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +52 -48
- package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogBody.js +6 -8
- package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogDescription.js +4 -7
- package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogFoot.js +13 -13
- package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogHead.js +17 -16
- package/lib/commonjs/components/Dialog/DialogHead.js.map +1 -1
- package/lib/commonjs/components/Divider/Divider.js +5 -8
- package/lib/commonjs/components/Divider/Divider.js.map +1 -1
- package/lib/commonjs/components/Header/Header.js.map +1 -1
- package/lib/commonjs/components/Icon/Icon.js +9 -5
- package/lib/commonjs/components/Icon/Icon.js.map +1 -1
- package/lib/commonjs/components/Link/Link.js +13 -15
- package/lib/commonjs/components/Link/Link.js.map +1 -1
- package/lib/commonjs/components/Menu/Menu.js +51 -54
- package/lib/commonjs/components/Menu/Menu.js.map +1 -1
- package/lib/commonjs/components/Menu/MenuItem.js +0 -2
- package/lib/commonjs/components/Menu/MenuItem.js.map +1 -1
- package/lib/commonjs/components/Portal/Portal.js +1 -1
- package/lib/commonjs/components/Portal/Portal.js.map +1 -1
- package/lib/commonjs/components/Progress/Progress.js +25 -15
- package/lib/commonjs/components/Progress/Progress.js.map +1 -1
- package/lib/commonjs/components/Stack/HStack.js +9 -11
- package/lib/commonjs/components/Stack/HStack.js.map +1 -1
- package/lib/commonjs/components/Stack/VStack.js +4 -2
- package/lib/commonjs/components/Stack/VStack.js.map +1 -1
- package/lib/commonjs/components/StyledComponents/StyledText.js +12 -13
- package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
- package/lib/commonjs/components/StyledComponents/StyledView.js +14 -14
- package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -1
- package/lib/commonjs/components/Switch/Switch.js +2 -2
- package/lib/commonjs/components/Switch/Switch.js.map +1 -1
- package/lib/commonjs/components/UserInput/UserInput.js +29 -32
- package/lib/commonjs/components/UserInput/UserInput.js.map +1 -1
- package/lib/commonjs/helpers/LightenColorShades.js +18 -5
- package/lib/commonjs/helpers/LightenColorShades.js.map +1 -1
- package/lib/commonjs/helpers/ResponsiveCalculations.js +30 -4
- package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/commonjs/helpers/index.js +16 -0
- package/lib/commonjs/helpers/index.js.map +1 -1
- package/lib/commonjs/index.js +5 -4
- package/lib/commonjs/index.js.map +2 -1
- package/lib/commonjs/themes/LightTheme.js +1 -3
- package/lib/commonjs/themes/LightTheme.js.map +1 -1
- package/lib/commonjs/types/index.js +11 -0
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/progress.type.js +2 -0
- package/lib/commonjs/types/progress.type.js.map +1 -0
- package/lib/module/components/Button/Button.js +50 -37
- package/lib/module/components/Button/Button.js.map +1 -1
- package/lib/module/components/CheckBox/CheckBox.js +41 -31
- package/lib/module/components/CheckBox/CheckBox.js.map +1 -1
- package/lib/module/components/Dialog/Dialog.js +52 -48
- package/lib/module/components/Dialog/Dialog.js.map +1 -1
- package/lib/module/components/Dialog/DialogBody.js +7 -9
- package/lib/module/components/Dialog/DialogBody.js.map +1 -1
- package/lib/module/components/Dialog/DialogDescription.js +5 -8
- package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
- package/lib/module/components/Dialog/DialogFoot.js +13 -13
- package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
- package/lib/module/components/Dialog/DialogHead.js +17 -16
- package/lib/module/components/Dialog/DialogHead.js.map +1 -1
- package/lib/module/components/Divider/Divider.js +5 -8
- package/lib/module/components/Divider/Divider.js.map +1 -1
- package/lib/module/components/Header/Header.js.map +1 -1
- package/lib/module/components/Icon/Icon.js +7 -4
- package/lib/module/components/Icon/Icon.js.map +1 -1
- package/lib/module/components/Link/Link.js +14 -16
- package/lib/module/components/Link/Link.js.map +1 -1
- package/lib/module/components/Menu/Menu.js +51 -54
- package/lib/module/components/Menu/Menu.js.map +1 -1
- package/lib/module/components/Menu/MenuItem.js +0 -2
- package/lib/module/components/Menu/MenuItem.js.map +1 -1
- package/lib/module/components/Portal/Portal.js +1 -1
- package/lib/module/components/Portal/Portal.js.map +1 -1
- package/lib/module/components/Progress/Progress.js +26 -16
- package/lib/module/components/Progress/Progress.js.map +1 -1
- package/lib/module/components/Stack/HStack.js +10 -12
- package/lib/module/components/Stack/HStack.js.map +1 -1
- package/lib/module/components/Stack/VStack.js +4 -2
- package/lib/module/components/Stack/VStack.js.map +1 -1
- package/lib/module/components/StyledComponents/StyledText.js +13 -14
- package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
- package/lib/module/components/StyledComponents/StyledView.js +15 -15
- package/lib/module/components/StyledComponents/StyledView.js.map +1 -1
- package/lib/module/components/Switch/Switch.js +2 -2
- package/lib/module/components/Switch/Switch.js.map +1 -1
- package/lib/module/components/UserInput/UserInput.js +30 -35
- package/lib/module/components/UserInput/UserInput.js.map +1 -1
- package/lib/module/helpers/LightenColorShades.js +18 -5
- package/lib/module/helpers/LightenColorShades.js.map +1 -1
- package/lib/module/helpers/ResponsiveCalculations.js +28 -3
- package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/module/helpers/index.js +1 -0
- package/lib/module/helpers/index.js.map +1 -1
- package/lib/module/index.js +2 -4
- package/lib/module/index.js.map +1 -2
- package/lib/module/themes/LightTheme.js +1 -2
- package/lib/module/themes/LightTheme.js.map +1 -1
- package/lib/module/types/index.js +1 -0
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/progress.type.js +2 -0
- package/lib/module/types/progress.type.js.map +1 -0
- package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Header/Header.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/Header/Header.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Link/Link.d.ts +4 -0
- package/lib/typescript/commonjs/src/components/Link/Link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts +1 -12
- package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts +1 -34
- package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts +1 -1
- package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts +1 -0
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/helpers/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/helpers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/themes/LightTheme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/button.type.d.ts +1 -0
- package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/dialog.type.d.ts +0 -2
- package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/progress.type.d.ts +13 -0
- package/lib/typescript/commonjs/src/types/progress.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/stack.type.d.ts +14 -3
- package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts +7 -1
- package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/userInput.type.d.ts +6 -1
- package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
- package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Header/Header.d.ts +1 -0
- package/lib/typescript/module/src/components/Header/Header.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Icon/Icon.d.ts +1 -0
- package/lib/typescript/module/src/components/Icon/Icon.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Link/Link.d.ts +4 -0
- package/lib/typescript/module/src/components/Link/Link.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Menu/Menu.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Menu/MenuItem.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Portal/Portal.d.ts +1 -1
- package/lib/typescript/module/src/components/Portal/Portal.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Progress/Progress.d.ts +1 -12
- package/lib/typescript/module/src/components/Progress/Progress.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -1
- package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -1
- package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserInput/UserInput.d.ts +1 -34
- package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -1
- package/lib/typescript/module/src/helpers/LightenColorShades.d.ts +1 -1
- package/lib/typescript/module/src/helpers/LightenColorShades.d.ts.map +1 -1
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts +1 -0
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/module/src/helpers/index.d.ts +1 -0
- package/lib/typescript/module/src/helpers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/themes/LightTheme.d.ts.map +1 -1
- package/lib/typescript/module/src/types/button.type.d.ts +1 -0
- package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/dialog.type.d.ts +0 -2
- package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/index.d.ts +1 -0
- package/lib/typescript/module/src/types/index.d.ts.map +1 -1
- package/lib/typescript/module/src/types/progress.type.d.ts +13 -0
- package/lib/typescript/module/src/types/progress.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/stack.type.d.ts +14 -3
- package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/styledComponents.type.d.ts +7 -1
- package/lib/typescript/module/src/types/styledComponents.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/userInput.type.d.ts +6 -1
- package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/Button/Button.tsx +111 -76
- package/src/components/CheckBox/CheckBox.tsx +61 -49
- package/src/components/Dialog/Dialog.tsx +54 -51
- package/src/components/Dialog/DialogBody.tsx +7 -9
- package/src/components/Dialog/DialogDescription.tsx +9 -9
- package/src/components/Dialog/DialogFoot.tsx +15 -13
- package/src/components/Dialog/DialogHead.tsx +20 -17
- package/src/components/Divider/Divider.tsx +5 -9
- package/src/components/Header/Header.tsx +1 -0
- package/src/components/Icon/Icon.tsx +9 -4
- package/src/components/Link/Link.tsx +24 -7
- package/src/components/Menu/Menu.tsx +50 -50
- package/src/components/Menu/MenuItem.tsx +0 -2
- package/src/components/Portal/Portal.tsx +2 -2
- package/src/components/Progress/Progress.tsx +32 -35
- package/src/components/Stack/HStack.tsx +12 -12
- package/src/components/Stack/VStack.tsx +5 -2
- package/src/components/StyledComponents/StyledText.tsx +3 -5
- package/src/components/StyledComponents/StyledView.tsx +6 -2
- package/src/components/Switch/Switch.tsx +2 -2
- package/src/components/UserInput/UserInput.tsx +43 -37
- package/src/helpers/LightenColorShades.ts +26 -6
- package/src/helpers/ResponsiveCalculations.ts +28 -3
- package/src/helpers/index.ts +2 -1
- package/src/themes/LightTheme.ts +1 -2
- package/src/types/button.type.ts +1 -0
- package/src/types/dialog.type.ts +0 -3
- package/src/types/index.ts +2 -1
- package/src/types/progress.type.ts +16 -0
- package/src/types/stack.type.ts +16 -3
- package/src/types/styledComponents.type.ts +8 -1
- package/src/types/userInput.type.ts +7 -1
package/src/helpers/index.ts
CHANGED
package/src/themes/LightTheme.ts
CHANGED
|
@@ -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: {
|
package/src/types/button.type.ts
CHANGED
|
@@ -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
|
package/src/types/dialog.type.ts
CHANGED
|
@@ -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
|
|
package/src/types/index.ts
CHANGED
|
@@ -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
|
+
}
|
package/src/types/stack.type.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
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
|
-
|
|
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
|
};
|