react-native-package-fast 0.1.21 → 0.2.1

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 (48) hide show
  1. package/package.json +1 -1
  2. package/src/module/assets/icons/IconApp.js +1 -1
  3. package/src/module/assets/icons/ic_close.png +0 -0
  4. package/src/module/assets/icons/ic_toast_error.png +0 -0
  5. package/src/module/assets/icons/ic_toast_info.png +0 -0
  6. package/src/module/assets/icons/ic_toast_success.png +0 -0
  7. package/src/module/assets/icons/ic_toast_warning.png +0 -0
  8. package/src/module/carousel/carousel/Carousel.js +1 -0
  9. package/src/module/carousel/pagination/Pagination.js +1 -0
  10. package/src/module/carousel/pagination/Pagination.style.js +1 -0
  11. package/src/module/carousel/pagination/PaginationDot.js +1 -0
  12. package/src/module/carousel/parallaximage/ParallaxImage.js +1 -0
  13. package/src/module/carousel/parallaximage/ParallaxImage.style.js +1 -0
  14. package/src/module/carousel/shallow-compare.js +1 -0
  15. package/src/module/carousel/utils/animations.js +1 -0
  16. package/src/module/cores/ButtonApp.js +1 -1
  17. package/src/module/cores/RatingApp.js +1 -1
  18. package/src/module/cores/TextApp.js +1 -1
  19. package/src/module/cores/Utils.js +1 -1
  20. package/src/module/fab/FAB.js +1 -0
  21. package/src/module/fab/FAB.styles.js +1 -0
  22. package/src/module/fab/FAB.types.js +1 -0
  23. package/src/module/index.js +1 -1
  24. package/src/module/navigation/NavigationApp.js +1 -1
  25. package/src/module/navigation/NavigatorStack.js +1 -1
  26. package/src/module/navigation/leftMenu/LeftMenuApp.js +1 -1
  27. package/src/module/navigation/rightMenu/RightMenuApp.js +1 -0
  28. package/src/module/navigation/stack/ToastStack.js +1 -1
  29. package/src/module/tooltip/Helper.js +1 -0
  30. package/src/module/tooltip/TooltipApp.js +1 -0
  31. package/src/module/utils/CommonUtils.js +1 -0
  32. package/src/typescript/assets/icons/IconApp.d.ts +5 -0
  33. package/src/typescript/carousel/shallow-compare.d.ts +3 -0
  34. package/src/typescript/cores/ButtonApp.d.ts +2 -2
  35. package/src/typescript/cores/ImageApp.d.ts +2 -2
  36. package/src/typescript/cores/RatingApp.d.ts +10 -6
  37. package/src/typescript/cores/Utils.d.ts +990 -123
  38. package/src/typescript/fab/FAB.d.ts +4 -0
  39. package/src/typescript/fab/FAB.styles.d.ts +11 -0
  40. package/src/typescript/fab/FAB.types.d.ts +86 -0
  41. package/src/typescript/index.d.ts +31 -23
  42. package/src/typescript/navigation/NavigationApp.d.ts +5 -1
  43. package/src/typescript/navigation/NavigatorStack.d.ts +5 -2
  44. package/src/typescript/navigation/leftMenu/LeftMenuApp.d.ts +3 -3
  45. package/src/typescript/navigation/rightMenu/RightMenuApp.d.ts +16 -0
  46. package/src/typescript/navigation/stack/ToastStack.d.ts +1 -1
  47. package/src/typescript/utils/CommonUtils.d.ts +3 -0
  48. package/LICENSE +0 -20
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { FABProps } from './FAB.types';
3
+ export declare const FAB: React.FC<FABProps>;
4
+ //# sourceMappingURL=FAB.d.ts.map
@@ -0,0 +1,11 @@
1
+ export declare const width: number, height: number;
2
+ declare const _default: {
3
+ defaultStyle: {
4
+ overflow: "hidden";
5
+ alignItems: "center";
6
+ justifyContent: "center";
7
+ backgroundColor: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ //# sourceMappingURL=FAB.styles.d.ts.map
@@ -0,0 +1,86 @@
1
+ import type { ImageStyle, PanResponderGestureState, TouchableOpacityProps, ViewStyle } from 'react-native';
2
+ export interface FABProps extends TouchableOpacityProps {
3
+ bagde?: number;
4
+ /**
5
+ * @description Specifies the size of the FAB.
6
+ */
7
+ renderSize: number;
8
+ /**
9
+ * @description Indicates whether the FAB is draggable.
10
+ */
11
+ draggable?: boolean;
12
+ /**
13
+ * @description Specifies if the FAB can be reverted to the original position.
14
+ */
15
+ reversible?: boolean;
16
+ /**
17
+ * @description Determines if the FAB displays an icon.
18
+ */
19
+ icon?: number;
20
+ /**
21
+ * @description Specifies the size of the icon.
22
+ */
23
+ iconSize?: number;
24
+ /**
25
+ * @description Defines the style for the icon.
26
+ */
27
+ iconStyle?: ImageStyle;
28
+ /**
29
+ * @description Specifies the tint color for the icon.
30
+ */
31
+ tintColor?: string;
32
+ /**
33
+ * @description Defines the border radius for the FAB.
34
+ */
35
+ borderRadius?: number;
36
+ /**
37
+ * @description Specifies the background color for the FAB.
38
+ */
39
+ backgroundColor?: string;
40
+ /**
41
+ * @description Defines the top offset of the FAB.
42
+ */
43
+ topOffset?: number;
44
+ /**
45
+ * @description Defines the right offset of the FAB.
46
+ */
47
+ rightOffset?: number;
48
+ /**
49
+ * @description Defines the bottom offset of the FAB.
50
+ */
51
+ bottomOffset?: number;
52
+ /**
53
+ * @description Defines the left offset of the FAB.
54
+ */
55
+ leftOffset?: number;
56
+ /**
57
+ * @description Specifies the opacity of the FAB when it is idle.
58
+ */
59
+ idleOpacity?: number;
60
+ /**
61
+ * @description Specifies the delay time before the FAB becomes idle.
62
+ */
63
+ idleDelayTime?: number;
64
+ /**
65
+ * @description Specifies additional JSX elements to be rendered inside the FAB.
66
+ */
67
+ children?: JSX.Element;
68
+ /**
69
+ * @description Callback function triggered when the FAB is pressed.
70
+ */
71
+ onPress?: () => void;
72
+ /**
73
+ * @description Callback function triggered when the FAB is long-pressed.
74
+ */
75
+ onLongPress?: () => void;
76
+ /**
77
+ * @description Callback function triggered when the FAB drag operation starts.
78
+ */
79
+ onDragStart?: (state: PanResponderGestureState) => void;
80
+ /**
81
+ * @description Callback function triggered when the FAB drag operation ends.
82
+ */
83
+ onDragEnd?: (state: PanResponderGestureState) => void;
84
+ style?: ViewStyle;
85
+ }
86
+ //# sourceMappingURL=FAB.types.d.ts.map
@@ -1,24 +1,32 @@
1
- import ButtonApp from "./cores/ButtonApp";
2
- import { heightScreen as HEIGHT_SCREEN, ScaleSize, widthScreen as WIDTH_SCREEN } from "./cores/DeviceUtils";
3
- import ImageApp from "./cores/ImageApp";
4
- import ImageFastApp from "./cores/ImageFastApp";
5
- import InputApp from "./cores/InputApp";
6
- import LoadingApp from "./cores/LoadingApp";
7
- import { initLog } from "./cores/LogUtils";
8
- import RatingApp from "./cores/RatingApp";
9
- import StoresProviderApp, { DATA_CACHE_STORE, getContextStore } from "./cores/StoresProviderApp";
10
- import TextApp from "./cores/TextApp";
11
- import { ButtonAppProps, ImageAppProps, ImageFastAppProps, InputAppProps, TextAppProps, TouchAppProps, ViewAppProps, parseStyles } from "./cores/Utils";
12
- import ViewApp from "./cores/ViewApp";
13
- import FABGroupDragApp from "./float-button/FABGroupDragApp";
14
- import NavigationApp from "./navigation/NavigationApp";
15
- import NavigatorStack from "./navigation/NavigatorStack";
16
- import RouterAppCustomer from "./navigation/tab/RouterAppCustomer";
17
- import RouterApp from "./navigation/tabBar/RouterApp";
18
- import SkeletonApp from "./skeleton/SkeletonApp";
19
- import TabBarApp from "./top-tab/TabBarApp";
20
- import TabScrollApp from "./top-tab/TabScrollApp";
21
- import SliderApp from "./cores/SliderApp";
22
- export { SliderApp, ButtonApp, DATA_CACHE_STORE, FABGroupDragApp, HEIGHT_SCREEN, ImageApp, ImageFastApp, InputApp, LoadingApp, NavigationApp, NavigatorStack, RatingApp, RouterApp, RouterAppCustomer, ScaleSize, SkeletonApp, StoresProviderApp, TabBarApp, TabScrollApp, TextApp, ViewApp, WIDTH_SCREEN, getContextStore, initLog, parseStyles, };
23
- export type { ButtonAppProps, ImageAppProps, ImageFastAppProps, InputAppProps, TextAppProps, TouchAppProps, ViewAppProps, };
1
+ import { ButtonAppProps, ImageAppProps, ImageFastAppProps, FontType, ButtonType, InputAppProps, TextAppProps, TouchAppProps, ViewAppProps, parseStyles, setGlobalStyles } from './cores/Utils';
2
+ import ButtonApp from './cores/ButtonApp';
3
+ import { heightScreen as HEIGHT_SCREEN, ScaleSize, widthScreen as WIDTH_SCREEN } from './cores/DeviceUtils';
4
+ import ImageApp from './cores/ImageApp';
5
+ import ImageFastApp from './cores/ImageFastApp';
6
+ import InputApp from './cores/InputApp';
7
+ import LoadingApp from './cores/LoadingApp';
8
+ import { initLog } from './cores/LogUtils';
9
+ import RatingApp from './cores/RatingApp';
10
+ import StoresProviderApp, { DATA_CACHE_STORE, getContextStore } from './cores/StoresProviderApp';
11
+ import TextApp from './cores/TextApp';
12
+ import ViewApp from './cores/ViewApp';
13
+ import FABGroupDragApp from './float-button/FABGroupDragApp';
14
+ import NavigationApp from './navigation/NavigationApp';
15
+ import NavigatorStack from './navigation/NavigatorStack';
16
+ import RouterAppCustomer from './navigation/tab/RouterAppCustomer';
17
+ import RouterApp from './navigation/tabBar/RouterApp';
18
+ import SkeletonApp from './skeleton/SkeletonApp';
19
+ import TabBarApp from './top-tab/TabBarApp';
20
+ import TabScrollApp from './top-tab/TabScrollApp';
21
+ import SliderApp from './cores/SliderApp';
22
+ import { FAB as FABApp } from './fab/FAB';
23
+ import { addColorAlpha, parseRowArray } from './utils/CommonUtils';
24
+ export { FABApp, SliderApp, ButtonApp, DATA_CACHE_STORE, FABGroupDragApp, HEIGHT_SCREEN, ImageApp, ImageFastApp, InputApp, LoadingApp, NavigationApp, NavigatorStack, RatingApp, RouterApp, RouterAppCustomer, ScaleSize, SkeletonApp, StoresProviderApp, TabBarApp, TabScrollApp, TextApp, ViewApp, WIDTH_SCREEN, getContextStore, initLog, setGlobalStyles, parseStyles, addColorAlpha, parseRowArray, };
25
+ export type { ButtonAppProps, ImageAppProps, ImageFastAppProps, InputAppProps, TextAppProps, TouchAppProps, ViewAppProps, FontType, ButtonType };
26
+ import CarouselApp from './carousel/carousel/Carousel';
27
+ import PaginationApp from './carousel/pagination/Pagination';
28
+ import ParallaxImageApp from './carousel/parallaximage/ParallaxImage';
29
+ import { getInputRangeFromIndexes } from './carousel/utils/animations';
30
+ import TooltipApp from './tooltip/TooltipApp';
31
+ export { TooltipApp, CarouselApp, PaginationApp, ParallaxImageApp, getInputRangeFromIndexes };
24
32
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,5 @@
1
- import React from "react";
1
+ import React from 'react';
2
+ import { ViewStyle } from 'react-native';
2
3
  export declare let SCREENS_APP: any;
3
4
  export declare let POPUPS_APP: any;
4
5
  export declare let HEADER_APP: any;
@@ -9,6 +10,9 @@ interface NavigationProps {
9
10
  params?: any;
10
11
  loggerButton?: any;
11
12
  leftMenuData?: any;
13
+ leftMenuStyle?: ViewStyle;
14
+ rightMenuData?: any;
15
+ rightMenuStyle?: ViewStyle;
12
16
  screenInit?: any;
13
17
  linking?: any;
14
18
  }
@@ -1,9 +1,12 @@
1
- import { LoadingAppProps } from "../cores/Utils";
2
- import { ParamModalProps } from "./stack/ModalStack";
1
+ import { LoadingAppProps } from '../cores/Utils';
2
+ import { ParamModalProps } from './stack/ModalStack';
3
3
  declare const NavigatorStack: {
4
4
  setLeftMenuRef(ref?: any): void;
5
5
  showLeftMenu(data?: any): void;
6
6
  hideLeftMenu(): void;
7
+ setRightMenuRef(ref?: any): void;
8
+ showRightMenu(data?: any): void;
9
+ hideRightMenu(): void;
7
10
  setLoggerRef(ref?: any): void;
8
11
  showLogger(mapData?: any): void;
9
12
  hideLogger(): void;
@@ -1,10 +1,10 @@
1
- import React from "react";
2
- import { ButtonAppProps, InputAppProps } from "../../cores/Utils";
1
+ import React from 'react';
2
+ import { ButtonAppProps, InputAppProps } from '../../cores/Utils';
3
3
  export type LeftMenuAppProps = {
4
4
  noneCloseTouchOutside?: any;
5
5
  backgroundColor?: any;
6
6
  noneAni?: any;
7
- type?: "center" | "bottom";
7
+ type?: 'center' | 'bottom';
8
8
  title?: string;
9
9
  description?: string;
10
10
  right?: ButtonAppProps;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { ButtonAppProps, InputAppProps } from '../../cores/Utils';
3
+ export type RightMenuAppProps = {
4
+ noneCloseTouchOutside?: any;
5
+ backgroundColor?: any;
6
+ noneAni?: any;
7
+ type?: 'center' | 'bottom';
8
+ title?: string;
9
+ description?: string;
10
+ right?: ButtonAppProps;
11
+ input?: InputAppProps;
12
+ left?: ButtonAppProps;
13
+ };
14
+ declare const RightMenuApp: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
15
+ export default RightMenuApp;
16
+ //# sourceMappingURL=RightMenuApp.d.ts.map
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  declare const ToastStack: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
3
  export default ToastStack;
4
4
  //# sourceMappingURL=ToastStack.d.ts.map
@@ -0,0 +1,3 @@
1
+ export declare function addColorAlpha(color: any, opacity: any): string;
2
+ export declare const parseRowArray: (arr: any) => any;
3
+ //# sourceMappingURL=CommonUtils.d.ts.map
package/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 dung.dang1
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.