@jamadd/react-native-template-ui 0.19.1 → 0.20.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.
- package/lib/module/components/accordion/ThemedAccordion.js +1 -1
- package/lib/module/components/accordion/ThemedAccordion.js.map +1 -1
- package/lib/module/components/button/ThemedIconButton.js +1 -1
- package/lib/module/components/button/ThemedIconButton.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.js +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +81 -58
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +33 -29
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +2 -2
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +35 -31
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +34 -30
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/components/overlay/contextMenu/ContextMenu.js +1 -1
- package/lib/module/components/overlay/contextMenu/ContextMenu.js.map +1 -1
- package/lib/module/components/overlay/contextMenu/ContextMenuOptionListItem.js +1 -1
- package/lib/module/components/overlay/contextMenu/ContextMenuOptionListItem.js.map +1 -1
- package/lib/module/components/provider/ActionSheetProvider.js +1 -1
- package/lib/module/components/provider/ActionSheetProvider.js.map +1 -1
- package/lib/module/components/provider/AlertProvider.js +1 -1
- package/lib/module/components/provider/AlertProvider.js.map +1 -1
- package/lib/module/components/provider/AppStateProvider.js +154 -0
- package/lib/module/components/provider/AppStateProvider.js.map +1 -0
- package/lib/module/components/provider/ToastProvider.js +1 -1
- package/lib/module/components/provider/ToastProvider.js.map +1 -1
- package/lib/module/components/slider/Slider.js +1 -1
- package/lib/module/components/slider/Slider.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.js +1 -1
- package/lib/module/components/slider/ThemedSlider.js.map +1 -1
- package/lib/module/components/text/ThemedIconText.js +1 -1
- package/lib/module/components/text/ThemedIconText.js.map +1 -1
- package/lib/module/hooks/overlay.js +79 -72
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/hooks/react.js +5 -1
- package/lib/module/hooks/react.js.map +1 -1
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/overlay/const.js +2 -2
- package/lib/module/utils/overlay/const.js.map +1 -1
- package/lib/module/utils/overlay/func.js +21 -16
- package/lib/module/utils/overlay/func.js.map +1 -1
- package/lib/module/utils/react/const.js +12 -0
- package/lib/module/utils/react/const.js.map +1 -0
- package/lib/module/utils/react/func.js +31 -0
- package/lib/module/utils/react/func.js.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/AppStateProvider.d.ts +5 -0
- package/lib/typescript/src/components/provider/AppStateProvider.d.ts.map +1 -0
- package/lib/typescript/src/hooks/overlay.d.ts +3 -3
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/lib/typescript/src/hooks/react.d.ts +1 -0
- package/lib/typescript/src/hooks/react.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +5 -2
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/types/react.d.ts +14 -1
- package/lib/typescript/src/types/react.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +2 -2
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/func.d.ts +7 -5
- package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/react/const.d.ts +4 -0
- package/lib/typescript/src/utils/react/const.d.ts.map +1 -0
- package/lib/typescript/src/utils/react/func.d.ts +10 -0
- package/lib/typescript/src/utils/react/func.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/module/utils/common/const.js +0 -5
- package/lib/module/utils/common/const.js.map +0 -1
- package/lib/module/utils/common/func.js +0 -13
- package/lib/module/utils/common/func.js.map +0 -1
- package/lib/typescript/src/utils/common/const.d.ts +0 -2
- package/lib/typescript/src/utils/common/const.d.ts.map +0 -1
- package/lib/typescript/src/utils/common/func.d.ts +0 -4
- package/lib/typescript/src/utils/common/func.d.ts.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import type { LayoutChangeEvent } from 'react-native';
|
|
2
|
+
import type { AppStateStatus, LayoutChangeEvent } from 'react-native';
|
|
3
|
+
import type { PropsWithRequiredChildren } from './view.js';
|
|
3
4
|
/**
|
|
4
5
|
* Type for setTimeout return value.
|
|
5
6
|
*
|
|
@@ -35,4 +36,16 @@ export type SetState<T> = Dispatch<SetStateAction<T>>;
|
|
|
35
36
|
* ```
|
|
36
37
|
*/
|
|
37
38
|
export type OnLayout = (event: LayoutChangeEvent) => void;
|
|
39
|
+
export type AppStateProviderProps = PropsWithRequiredChildren<{
|
|
40
|
+
enableStatusListener?: boolean;
|
|
41
|
+
enableBlurListener?: boolean;
|
|
42
|
+
enableFocusListener?: boolean;
|
|
43
|
+
enableMemoryWarningListener?: boolean;
|
|
44
|
+
}>;
|
|
45
|
+
export type AppStateContextVal = {
|
|
46
|
+
status: AppStateStatus;
|
|
47
|
+
blurCount: number;
|
|
48
|
+
focusCount: number;
|
|
49
|
+
memoryWarningCount: number;
|
|
50
|
+
};
|
|
38
51
|
//# sourceMappingURL=react.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/types/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/types/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,WAAQ,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;IAC5D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
|
@@ -123,9 +123,9 @@ export declare enum ActionSheetExpandableHeightRatio {
|
|
|
123
123
|
/** @internal */
|
|
124
124
|
export declare const actionSheetHeaderIconSize: IconSize;
|
|
125
125
|
/** @internal */
|
|
126
|
-
export declare const
|
|
126
|
+
export declare const actionSheetHeaderPaddingKey: ThemeSpacing;
|
|
127
127
|
/** @internal */
|
|
128
|
-
export declare const
|
|
128
|
+
export declare const actionSheetOptionListItemPaddingKey: ThemeSpacing;
|
|
129
129
|
/** @internal */
|
|
130
130
|
export declare const actionSheetOptionListItemTextVariant: ThemeTextVariants;
|
|
131
131
|
//# sourceMappingURL=const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EAEf,eAAe,EAChB,MAAM,wBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAmB,CAAC;AAEzE,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C;;;;;;;;;;;GAWG;AACH,oBAAY,wBAAwB;IAClC,iCAAiC;IACjC,KAAK,UAAU;IACf,2BAA2B;IAC3B,KAAK,UAAU;IACf,2BAA2B;IAC3B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,YAAY,0CAEvB,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,oBAAY,SAAS;IACnB,2BAA2B;IAC3B,GAAG,QAAQ;IACX,sBAAsB;IACtB,OAAO,YAAY;IACnB,uBAAuB;IACvB,QAAQ,aAAa;IACrB,8BAA8B;IAC9B,MAAM,WAAW;IACjB,yBAAyB;IACzB,UAAU,eAAe;IACzB,0BAA0B;IAC1B,WAAW,gBAAgB;CAC5B;AAED;;;;;;;;;;GAUG;AACH,oBAAY,aAAa;IACvB,iCAAiC;IACjC,KAAK,OAAO;IACZ,gCAAgC;IAChC,IAAI,OAAO;CACZ;AAED,gBAAgB;AAChB,eAAO,MAAM,oBAAoB;
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EAEf,eAAe,EAChB,MAAM,wBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAmB,CAAC;AAEzE,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C;;;;;;;;;;;GAWG;AACH,oBAAY,wBAAwB;IAClC,iCAAiC;IACjC,KAAK,UAAU;IACf,2BAA2B;IAC3B,KAAK,UAAU;IACf,2BAA2B;IAC3B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,YAAY,0CAEvB,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,oBAAY,SAAS;IACnB,2BAA2B;IAC3B,GAAG,QAAQ;IACX,sBAAsB;IACtB,OAAO,YAAY;IACnB,uBAAuB;IACvB,QAAQ,aAAa;IACrB,8BAA8B;IAC9B,MAAM,WAAW;IACjB,yBAAyB;IACzB,UAAU,eAAe;IACzB,0BAA0B;IAC1B,WAAW,gBAAgB;CAC5B;AAED;;;;;;;;;;GAUG;AACH,oBAAY,aAAa;IACvB,iCAAiC;IACjC,KAAK,OAAO;IACZ,gCAAgC;IAChC,IAAI,OAAO;CACZ;AAED,gBAAgB;AAChB,eAAO,MAAM,oBAAoB;sBAsEy3C,CAAC;GAtE70C,CAAC;AAE/E,gBAAgB;AAChB,eAAO,MAAM,YAAY,0CAEvB,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,oBAAY,eAAe;IACzB,oDAAoD;IACpD,OAAO,YAAY;IACnB,kDAAkD;IAClD,SAAS,cAAc;IACvB,qEAAqE;IACrE,WAAW,gBAAgB;CAC5B;AAED,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,iEAElC,CAAC;AAEN,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,gDAE7B,CAAC;AAEH,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,gBAAgB;AAChB,oBAAY,gCAAgC;IAC1C,GAAG,MAAM;IACT,MAAM,MAAM;IACZ,MAAM,MAAM;CACb;AAED,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,QAAqB,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,YAAkB,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,YAAkB,CAAC;AAErE,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,iBAA2B,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare function getToastContext(): import("../../index.js").ToastContextVal;
|
|
2
2
|
export declare function getAlertContext(): import("../../index.js").AlertContextVal;
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare function getActionSheetInternalContext(): Partial<import("../../index.js").ActionSheetInternalContextVal>;
|
|
3
5
|
export declare function getActionSheetContext(): import("../../index.js").ActionSheetContextVal;
|
|
4
6
|
/**
|
|
5
7
|
* @internal
|
|
@@ -13,7 +15,7 @@ export declare function getActionSheetContext(): import("../../index.js").Action
|
|
|
13
15
|
* const maxHeight = getActionSheetMaxHeight(true);
|
|
14
16
|
* ```
|
|
15
17
|
*/
|
|
16
|
-
export declare function getActionSheetMaxHeight(expandable?: boolean): number;
|
|
18
|
+
export declare function getActionSheetMaxHeight(expandable?: boolean, maxHeight?: number): number;
|
|
17
19
|
/**
|
|
18
20
|
* @internal
|
|
19
21
|
* Constrains an action sheet height to not exceed the maximum allowed height.
|
|
@@ -26,7 +28,7 @@ export declare function getActionSheetMaxHeight(expandable?: boolean): number;
|
|
|
26
28
|
* const constrainedHeight = getActionSheetHeight(800);
|
|
27
29
|
* ```
|
|
28
30
|
*/
|
|
29
|
-
export declare function getActionSheetHeight(height: number): number;
|
|
31
|
+
export declare function getActionSheetHeight(height: number, maxHeight?: number): number;
|
|
30
32
|
/**
|
|
31
33
|
* @internal
|
|
32
34
|
* Gets the maximum height for an expandable action sheet.
|
|
@@ -38,7 +40,7 @@ export declare function getActionSheetHeight(height: number): number;
|
|
|
38
40
|
* const expandableHeight = getActionSheetExpandableHeight();
|
|
39
41
|
* ```
|
|
40
42
|
*/
|
|
41
|
-
export declare function getActionSheetExpandableHeight(): number;
|
|
43
|
+
export declare function getActionSheetExpandableHeight(maxHeight?: number): number;
|
|
42
44
|
/**
|
|
43
45
|
* @internal
|
|
44
46
|
* Gets the initial height for an expandable action sheet when first shown.
|
|
@@ -50,7 +52,7 @@ export declare function getActionSheetExpandableHeight(): number;
|
|
|
50
52
|
* const initialHeight = getActionSheetExpandableInitHeight();
|
|
51
53
|
* ```
|
|
52
54
|
*/
|
|
53
|
-
export declare function getActionSheetExpandableInitialHeight(): number;
|
|
55
|
+
export declare function getActionSheetExpandableInitialHeight(maxHeight?: number): number;
|
|
54
56
|
/**
|
|
55
57
|
* @internal
|
|
56
58
|
* Calculates the snap height for a non-expandable action sheet after user drag gesture ends.
|
|
@@ -85,5 +87,5 @@ export declare function getActionSheetSnapHeight(height: number, currentHeight:
|
|
|
85
87
|
* // Returns closest snap position based on current height
|
|
86
88
|
* ```
|
|
87
89
|
*/
|
|
88
|
-
export declare function getActionSheetExpandableSnapHeight(currentHeight: number, forceDismiss: boolean, dismissible?: boolean): number;
|
|
90
|
+
export declare function getActionSheetExpandableSnapHeight(currentHeight: number, forceDismiss: boolean, maxHeight?: number, dismissible?: boolean): number;
|
|
89
91
|
//# sourceMappingURL=func.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/func.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/func.ts"],"names":[],"mappings":"AAWA,wBAAgB,eAAe,6CAE9B;AAED,wBAAgB,eAAe,6CAE9B;AAED,gBAAgB;AAChB,wBAAgB,6BAA6B,oEAE5C;AAED,wBAAgB,qBAAqB,mDAEpC;AAUD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,GAAE,OAAe,EAC3B,SAAS,CAAC,EAAE,MAAM,UAQnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,UAEtE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,CAAC,EAAE,MAAM,UAEhE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qCAAqC,CAAC,SAAS,CAAC,EAAE,MAAM,UAKvE;AAkBD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,OAAO,EACrB,WAAW,UAAO,UAMnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kCAAkC,CAChD,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,OAAO,EACrB,SAAS,CAAC,EAAE,MAAM,EAClB,WAAW,UAAO,UAyCnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/react/const.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAmB,CAAC;AAE5D,eAAO,MAAM,eAAe,6CAK1B,CAAC;AAEH,eAAO,MAAM,QAAQ,iDAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AppStateStatus } from 'react-native';
|
|
2
|
+
export declare function getAppStateContext(): import("../../index.js").AppStateContextVal;
|
|
3
|
+
export declare function isPlatformAndroid(): boolean;
|
|
4
|
+
export declare function isPlatformIOS(): boolean;
|
|
5
|
+
export declare function isPlatformWeb(): boolean;
|
|
6
|
+
export declare function addAppStateChangeEventListener(callback: (appState: AppStateStatus) => void): import("react-native").EventSubscription;
|
|
7
|
+
export declare function addAppStateFocusEventListener(callback: () => void): import("react-native").EventSubscription;
|
|
8
|
+
export declare function addAppStateBlurEventListener(callback: () => void): import("react-native").EventSubscription;
|
|
9
|
+
export declare function addAppStateMemoryWarningEventListener(callback: () => void): import("react-native").EventSubscription;
|
|
10
|
+
//# sourceMappingURL=func.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/react/func.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAKnD,wBAAgB,kBAAkB,gDAEjC;AAED,wBAAgB,iBAAiB,YAEhC;AAED,wBAAgB,aAAa,YAE5B;AAED,wBAAgB,aAAa,YAE5B;AAED,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,4CAG7C;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,IAAI,4CAEjE;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,MAAM,IAAI,4CAEhE;AAED,wBAAgB,qCAAqC,CAAC,QAAQ,EAAE,MAAM,IAAI,4CAEzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamadd/react-native-template-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "React Native Template UI is a collection of UI components designed by JaMa Design & Development.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","platform","OS"],"sourceRoot":"../../../../src","sources":["utils/common/const.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,QAAQ,GAAGD,QAAQ,CAACE,EAAE","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { platform } from "./const.js";
|
|
4
|
-
export function isPlatformAndroid() {
|
|
5
|
-
return platform === 'android';
|
|
6
|
-
}
|
|
7
|
-
export function isPlatformIOS() {
|
|
8
|
-
return platform === 'ios';
|
|
9
|
-
}
|
|
10
|
-
export function isPlatformWeb() {
|
|
11
|
-
return platform === 'web';
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=func.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["platform","isPlatformAndroid","isPlatformIOS","isPlatformWeb"],"sourceRoot":"../../../../src","sources":["utils/common/func.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,YAAS;AAElC,OAAO,SAASC,iBAAiBA,CAAA,EAAG;EAClC,OAAOD,QAAQ,KAAK,SAAS;AAC/B;AAEA,OAAO,SAASE,aAAaA,CAAA,EAAG;EAC9B,OAAOF,QAAQ,KAAK,KAAK;AAC3B;AAEA,OAAO,SAASG,aAAaA,CAAA,EAAG;EAC9B,OAAOH,QAAQ,KAAK,KAAK;AAC3B","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/common/const.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iDAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/common/func.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,YAEhC;AAED,wBAAgB,aAAa,YAE5B;AAED,wBAAgB,aAAa,YAE5B"}
|