@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Progress/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Progress/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAK1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6CrC,CAAC;AACF,eAAe,QAAQ,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HStack.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Stack/HStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HStack.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Stack/HStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6BjC,CAAA;AACD,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Stack/VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Stack/VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0BjC,CAAA;AACD,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StyledComponents/StyledText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"StyledText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StyledComponents/StyledText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgCzC,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StyledComponents/StyledView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"StyledView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StyledComponents/StyledView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoCzC,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,38 +1,5 @@
|
|
|
1
|
-
import { TextInput } from 'react-native';
|
|
2
1
|
import type { UserInputProps } from '../../types';
|
|
3
|
-
declare const UserInput:
|
|
4
|
-
variant?: import("../../types").UserInputVariant;
|
|
5
|
-
label?: string;
|
|
6
|
-
bg?: string;
|
|
7
|
-
br?: number;
|
|
8
|
-
stroke?: number;
|
|
9
|
-
labelColor?: string;
|
|
10
|
-
textVariant?: {
|
|
11
|
-
label?: import("../../types").TypographyVariant;
|
|
12
|
-
helperText?: import("../../types").TypographyVariant;
|
|
13
|
-
};
|
|
14
|
-
inputTextColor?: string;
|
|
15
|
-
strokeColor?: string;
|
|
16
|
-
cursorColor?: string;
|
|
17
|
-
placeholderColor?: string;
|
|
18
|
-
inputFs?: number;
|
|
19
|
-
labelFs?: number;
|
|
20
|
-
helperTextFS?: number;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
isError?: boolean;
|
|
23
|
-
helperText?: string;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
multiline?: boolean;
|
|
26
|
-
renderLeftIcon?: JSX.Element;
|
|
27
|
-
renderRightIcon?: JSX.Element;
|
|
28
|
-
styles?: {
|
|
29
|
-
mainContainer?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
30
|
-
inputContainer?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
31
|
-
input?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
|
32
|
-
label?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
|
33
|
-
helperText?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
|
34
|
-
};
|
|
35
|
-
} & import("react").RefAttributes<TextInput>>;
|
|
2
|
+
declare const UserInput: React.FC<UserInputProps>;
|
|
36
3
|
export default UserInput;
|
|
37
4
|
export type { UserInputProps };
|
|
38
5
|
//# sourceMappingURL=UserInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UserInput/UserInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UserInput/UserInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuGvC,CAAC;AACF,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LightenColorShades.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/LightenColorShades.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB,GAAI,
|
|
1
|
+
{"version":3,"file":"LightenColorShades.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/LightenColorShades.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,KAAG,MAwB3D,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const fun: () => Map<"hScale" | "vScale" | "fs", object>;
|
|
1
2
|
export declare const horizontalScale: (size: number) => number;
|
|
2
3
|
export declare const verticalScale: (size: number) => number;
|
|
3
4
|
export declare const moderateScale: (size: number, factor?: number) => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveCalculations.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/ResponsiveCalculations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponsiveCalculations.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/ResponsiveCalculations.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,GAAG,+CAEf,CAAA;AAOD,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAgB9C,CAAA;AAGD,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAgB5C,CAAA;AAGD,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,eAAY,KAAG,MAM1D,CAAA;AACD,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,EAAE,eAAY,KAAG,MAMlE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,KAAG,MAkBrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC3E,cAAc,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LightTheme.d.ts","sourceRoot":"","sources":["../../../../../src/themes/LightTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LightTheme.d.ts","sourceRoot":"","sources":["../../../../../src/themes/LightTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAyD3C,QAAA,MAAM,UAAU,EAAE,UAmCjB,CAAA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -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
|
* @see https://rn-nativeflow-docs.onrender.com/docs/components/button
|
|
5
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/button.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/button.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACvC,yEAAyE;IACzE,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,kDAAkD;IAClD,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAExB,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,8BAA8B;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,kCAAkC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iBAAiB;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,qDAAqD;IACrD,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAEzB,qBAAqB;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE7B,sBAAsB;IACtB,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE9B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,6CAA6C;IAC7C,oBAAoB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE5C,iCAAiC;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEjC,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC"}
|
|
@@ -16,8 +16,6 @@ export type DialogProps = {
|
|
|
16
16
|
fullScreen?: boolean;
|
|
17
17
|
/** Background color of the backdrop */
|
|
18
18
|
backdropColor?: string;
|
|
19
|
-
/** Duration of the animation in milliseconds */
|
|
20
|
-
animationDuration?: number;
|
|
21
19
|
/** Callback function triggered when the dialog is closed */
|
|
22
20
|
onClose?: () => void;
|
|
23
21
|
/** Content to be displayed inside the dialog */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialog.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGtE,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG;IACtB,uCAAuC;IACvC,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,gDAAgD;IAChD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAE1C,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,
|
|
1
|
+
{"version":3,"file":"dialog.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialog.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGtE,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG;IACtB,uCAAuC;IACvC,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,gDAAgD;IAChD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAE1C,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAE1B,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,kDAAkD;IAClD,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,oDAAoD;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACjC,gDAAgD;IAChD,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,0DAA0D;IAC1D,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC,8DAA8D;IAC9D,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,uDAAuD;IACvD,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEjC,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,iEAAiE;IACjE,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,oDAAoD;IACpD,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC,kCAAkC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,iEAAiE;IACjE,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,uCAAuC;IACvC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEjC,gFAAgF;IAChF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ProgressProps = {
|
|
2
|
+
/** Current progress value (0-100) */
|
|
3
|
+
value?: number;
|
|
4
|
+
/** Thickness of the progress bar */
|
|
5
|
+
thickness?: number;
|
|
6
|
+
/** Border radius of the progress bar */
|
|
7
|
+
br?: number;
|
|
8
|
+
/** Background color of the track (unfilled part) */
|
|
9
|
+
trackColor?: string;
|
|
10
|
+
/** Color of the progress (filled part) */
|
|
11
|
+
progressColor?: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=progress.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/progress.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IACxB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,wCAAwC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FlexStyle, StyleProp, View, ViewStyle } from "react-native";
|
|
2
3
|
export type HStackProps = ViewStyle & {
|
|
3
4
|
/**
|
|
4
5
|
* Defines the alignment of children along the main axis.
|
|
@@ -19,11 +20,16 @@ export type HStackProps = ViewStyle & {
|
|
|
19
20
|
/**
|
|
20
21
|
* Custom styles for the container.
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
+
style?: StyleProp<ViewStyle>;
|
|
23
24
|
/**
|
|
24
25
|
* Child components to be rendered inside the HStack.
|
|
25
26
|
*/
|
|
26
27
|
children?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* A ref to access the underlying View component.
|
|
30
|
+
* This can be used for measuring layout, animations, or imperative interactions.
|
|
31
|
+
*/
|
|
32
|
+
ref?: React.RefObject<View>;
|
|
27
33
|
};
|
|
28
34
|
export type VStackProps = ViewStyle & {
|
|
29
35
|
/**
|
|
@@ -41,6 +47,11 @@ export type VStackProps = ViewStyle & {
|
|
|
41
47
|
/**
|
|
42
48
|
* Custom styles for the container.
|
|
43
49
|
*/
|
|
44
|
-
|
|
50
|
+
style?: StyleProp<ViewStyle>;
|
|
51
|
+
/**
|
|
52
|
+
* A ref to access the underlying View component.
|
|
53
|
+
* This can be used for measuring layout, animations, or imperative interactions.
|
|
54
|
+
*/
|
|
55
|
+
ref?: React.RefObject<View>;
|
|
45
56
|
};
|
|
46
57
|
//# sourceMappingURL=stack.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/stack.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"stack.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/stack.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAEtC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAE9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;OAGG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;CAC9B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAEhC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;;MAGE;IACF,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;CAC9B,CAAC"}
|
|
@@ -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
|
export type StyledViewProps = ViewStyle & ViewProps & {
|
|
4
5
|
/**
|
|
5
6
|
* Flex value to control the flex growth, shrink, and basis of the view.
|
|
@@ -41,6 +42,11 @@ export type StyledViewProps = ViewStyle & ViewProps & {
|
|
|
41
42
|
* Custom styles for the view component.
|
|
42
43
|
*/
|
|
43
44
|
style?: StyleProp<ViewStyle>;
|
|
45
|
+
/**
|
|
46
|
+
* A ref to access the underlying View component.
|
|
47
|
+
* This can be used for measuring layout, animations, or imperative interactions.
|
|
48
|
+
*/
|
|
49
|
+
ref?: React.RefObject<View>;
|
|
44
50
|
};
|
|
45
51
|
export type StyledTextProps = TextProps & {
|
|
46
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styledComponents.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/styledComponents.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"styledComponents.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/styledComponents.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5H,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG;IAClD;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAEtC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAE9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,CAAC,CAAC,EAAE,cAAc,CAAC;IAEnB;;OAEG;IACH,CAAC,CAAC,EAAE,cAAc,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE5B;;;MAGE;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;CAC9B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,EAAE,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAE7B;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -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
|
export type UserInputProps = TextInputProps & {
|
|
4
4
|
/**
|
|
@@ -70,5 +70,10 @@ export type UserInputProps = TextInputProps & {
|
|
|
70
70
|
label?: StyleProp<TextStyle>;
|
|
71
71
|
helperText?: StyleProp<TextStyle>;
|
|
72
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* A ref to access the underlying View component.
|
|
75
|
+
* This can be used for measuring layout, animations, or imperative interactions.
|
|
76
|
+
*/
|
|
77
|
+
ref?: React.RefObject<TextInput>;
|
|
73
78
|
};
|
|
74
79
|
//# sourceMappingURL=userInput.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userInput.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/userInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"userInput.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/userInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC1C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAE3B,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,wCAAwC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,iBAAiB,CAAC;QAC1B,UAAU,CAAC,EAAE,iBAAiB,CAAC;KAClC,CAAC;IAEF,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,gEAAgE;IAChE,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,yDAAyD;IACzD,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE7B,0DAA0D;IAC1D,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE9B;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE;QACL,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACrC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACtC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC7B,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KACrC,CAAC;IAEF;;;MAGE;IACF,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;CACnC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexara/nativeflow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -194,4 +194,4 @@
|
|
|
194
194
|
"color": "^5.0.0",
|
|
195
195
|
"lucide-react-native": "^0.479.0"
|
|
196
196
|
}
|
|
197
|
-
}
|
|
197
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { JSX } from 'react';
|
|
2
3
|
import { StyleSheet } from "react-native";
|
|
4
|
+
import type { ViewStyle } from 'react-native';
|
|
3
5
|
import { verticalScale, horizontalScale } from "../../helpers/ResponsiveCalculations";
|
|
4
6
|
import { StyledText, StyledView } from '../StyledComponents';
|
|
5
7
|
import { useTheme } from '../../hooks';
|
|
@@ -44,110 +46,143 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
44
46
|
strokeColor,
|
|
45
47
|
disabled
|
|
46
48
|
});
|
|
47
|
-
|
|
48
|
-
const STYLES = StyleSheet.create({
|
|
49
|
+
const dynamicStyles = {
|
|
49
50
|
BUTTON_CONT: {
|
|
50
51
|
backgroundColor: backgroundColor,
|
|
51
52
|
borderWidth: variant === 'contained' ? 0 : stroke,
|
|
52
53
|
borderColor: buttonBorderColor,
|
|
53
|
-
maxWidth: '100%',
|
|
54
54
|
},
|
|
55
55
|
BUTTON_TEXT: {
|
|
56
56
|
color: buttonTextColor,
|
|
57
|
-
textAlign: 'center',
|
|
58
57
|
fontFamily: titleFF ?? '',
|
|
59
58
|
},
|
|
60
|
-
|
|
59
|
+
FLAT_BTN_MAIN_CONT: {
|
|
61
60
|
borderRadius: verticalScale(br),
|
|
62
|
-
|
|
63
|
-
alignSelf: fullWidth ? 'stretch' : 'flex-start',
|
|
61
|
+
alignSelf: fullWidth ? 'stretch' : 'flex-start' as ViewStyle['alignSelf'],
|
|
64
62
|
},
|
|
65
|
-
|
|
63
|
+
FLAT_BTN_INNER_CONT: {
|
|
66
64
|
paddingVertical: verticalScale(paddingV),
|
|
67
65
|
paddingHorizontal: horizontalScale(!fullWidth ? paddingH : 30),
|
|
68
66
|
borderRadius: verticalScale(br),
|
|
69
|
-
flexDirection: 'row',
|
|
70
|
-
alignItems: 'center',
|
|
71
|
-
justifyContent: 'space-between',
|
|
72
|
-
gap: horizontalScale(10),
|
|
73
67
|
},
|
|
74
|
-
|
|
75
|
-
borderRadius: verticalScale(100),
|
|
68
|
+
ROUND_BTN_INNER_CONT: {
|
|
76
69
|
height: verticalScale(size),
|
|
77
70
|
width: verticalScale(size),
|
|
78
|
-
alignItems: 'center',
|
|
79
|
-
justifyContent: 'center',
|
|
80
71
|
}
|
|
81
|
-
}
|
|
72
|
+
};
|
|
82
73
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
// ref={ref}
|
|
92
|
-
{...props}
|
|
93
|
-
>
|
|
94
|
-
<StyledView style={[STYLES.FLAT_BUTTON_CONT, STYLES.BUTTON_CONT, buttonContainerStyle]}>
|
|
95
|
-
{(renderLeftIcon || (fullWidth && renderRightIcon)) && (
|
|
96
|
-
<StyledView f={fullWidth ? 1 : undefined}>
|
|
97
|
-
{renderLeftIcon && React.cloneElement(renderLeftIcon, {
|
|
98
|
-
color: buttonIconColor
|
|
99
|
-
})}
|
|
100
|
-
</StyledView>
|
|
101
|
-
)}
|
|
74
|
+
const cloneElement = (element: JSX.Element): JSX.Element | null => {
|
|
75
|
+
if (React.isValidElement<{ color?: string }>(element)) {
|
|
76
|
+
return React.cloneElement(element, {
|
|
77
|
+
color: buttonIconColor
|
|
78
|
+
})
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
102
82
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
83
|
+
return (<>
|
|
84
|
+
{type === 'flat' && (
|
|
85
|
+
<StyledView style={[STYLES.FLAT_BTN_MAIN_CONT, dynamicStyles.FLAT_BTN_MAIN_CONT]}>
|
|
86
|
+
<TouchableRipple
|
|
87
|
+
onPress={onPress}
|
|
88
|
+
rippleColor={rippleColor}
|
|
89
|
+
disabled={disabled}
|
|
90
|
+
// ref={ref}
|
|
91
|
+
{...props}
|
|
92
|
+
>
|
|
93
|
+
<StyledView
|
|
94
|
+
style={[
|
|
95
|
+
STYLES.FLAT_BTN_INNER_CONT,
|
|
96
|
+
STYLES.BUTTON_CONT,
|
|
97
|
+
dynamicStyles.FLAT_BTN_INNER_CONT,
|
|
98
|
+
dynamicStyles.BUTTON_CONT,
|
|
99
|
+
buttonContainerStyle
|
|
100
|
+
]}>
|
|
101
|
+
{(renderLeftIcon || (fullWidth && renderRightIcon)) && (
|
|
102
|
+
<StyledView f={fullWidth ? 1 : undefined}>
|
|
103
|
+
{renderLeftIcon && cloneElement(renderLeftIcon)}
|
|
110
104
|
</StyledView>
|
|
105
|
+
)}
|
|
111
106
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
<StyledView
|
|
108
|
+
flexShrink={1}
|
|
109
|
+
f={fullWidth ? 8 : undefined}
|
|
110
|
+
>
|
|
111
|
+
<StyledText numberOfLines={1} fs={titleFS} variant={titleVariant}
|
|
112
|
+
style={[
|
|
113
|
+
STYLES.BUTTON_TEXT,
|
|
114
|
+
dynamicStyles.BUTTON_TEXT,
|
|
115
|
+
textStyle
|
|
116
|
+
]}
|
|
117
|
+
>
|
|
118
|
+
{title}
|
|
119
|
+
</StyledText>
|
|
119
120
|
</StyledView>
|
|
120
|
-
</TouchableRipple>
|
|
121
|
-
</StyledView>
|
|
122
|
-
)}
|
|
123
121
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
122
|
+
{(renderRightIcon || (fullWidth && renderLeftIcon)) && (
|
|
123
|
+
<StyledView alignItems='flex-end' f={fullWidth ? 1 : undefined}>
|
|
124
|
+
{renderRightIcon && cloneElement(renderRightIcon)}
|
|
125
|
+
</StyledView>
|
|
126
|
+
)}
|
|
127
|
+
</StyledView>
|
|
128
|
+
</TouchableRipple>
|
|
129
|
+
</StyledView>
|
|
130
|
+
)}
|
|
131
|
+
|
|
132
|
+
{type === 'round' && (
|
|
133
|
+
<StyledView style={STYLES.ROUND_BTN_MAIN_CONT} >
|
|
134
|
+
<TouchableRipple
|
|
135
|
+
onPress={onPress}
|
|
136
|
+
rippleColor={rippleColor}
|
|
137
|
+
{...props}
|
|
134
138
|
>
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
<StyledView
|
|
140
|
+
style={[
|
|
141
|
+
STYLES.BUTTON_CONT,
|
|
142
|
+
STYLES.ROUND_BTN_INNER_CONT,
|
|
143
|
+
dynamicStyles.BUTTON_CONT,
|
|
144
|
+
dynamicStyles.ROUND_BTN_INNER_CONT,
|
|
145
|
+
buttonContainerStyle
|
|
146
|
+
]}
|
|
139
147
|
>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
</StyledView>
|
|
147
|
-
)}
|
|
148
|
-
</>
|
|
148
|
+
{renderIcon && cloneElement(renderIcon)}
|
|
149
|
+
</StyledView>
|
|
150
|
+
</TouchableRipple>
|
|
151
|
+
</StyledView>
|
|
152
|
+
)}
|
|
153
|
+
</>
|
|
149
154
|
);
|
|
150
155
|
};
|
|
151
156
|
|
|
152
157
|
export default Button;
|
|
153
158
|
export type { ButtonProps };
|
|
159
|
+
|
|
160
|
+
const STYLES = StyleSheet.create({
|
|
161
|
+
BUTTON_CONT: {
|
|
162
|
+
maxWidth: '100%',
|
|
163
|
+
},
|
|
164
|
+
BUTTON_TEXT: {
|
|
165
|
+
textAlign: 'center',
|
|
166
|
+
},
|
|
167
|
+
FLAT_BTN_MAIN_CONT: {
|
|
168
|
+
overflow: 'hidden',
|
|
169
|
+
},
|
|
170
|
+
FLAT_BTN_INNER_CONT: {
|
|
171
|
+
flexDirection: 'row',
|
|
172
|
+
alignItems: 'center',
|
|
173
|
+
justifyContent: 'space-between',
|
|
174
|
+
gap: horizontalScale(10),
|
|
175
|
+
},
|
|
176
|
+
ROUND_BTN_MAIN_CONT: {
|
|
177
|
+
overflow: 'hidden',
|
|
178
|
+
borderRadius: verticalScale(100),
|
|
179
|
+
// alignSelf: 'flex-start',
|
|
180
|
+
},
|
|
181
|
+
ROUND_BTN_INNER_CONT: {
|
|
182
|
+
alignItems: 'center',
|
|
183
|
+
justifyContent: 'center',
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|