@meatech/payblend_app_ui_component 1.1.28 → 1.1.30

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.
@@ -18,6 +18,7 @@ export const Container = ({
18
18
  onLeftPress,
19
19
  onClose,
20
20
  webBackground,
21
+ isShowControllButton = false,
21
22
  }: {
22
23
  children: React.ReactNode;
23
24
  isShowHeader?: boolean;
@@ -30,6 +31,7 @@ export const Container = ({
30
31
  onLeftPress?: () => void;
31
32
  onClose?: () => void;
32
33
  webBackground?: string;
34
+ isShowControllButton?: boolean;
33
35
  }) => {
34
36
  return (
35
37
  <SafeAreaView style={[styles.flex1, { backgroundColor }]}>
@@ -47,6 +49,7 @@ export const Container = ({
47
49
  onRightPress={onRightPress}
48
50
  onClose={onClose}
49
51
  webBackground={webBackground}
52
+ isShowControllButton={isShowControllButton}
50
53
  />
51
54
  )}
52
55
  {children}
@@ -12,4 +12,5 @@ export interface CustomHeaderProps {
12
12
  children?: React.ReactNode;
13
13
  leftIcon?: keyof typeof Images;
14
14
  webBackground?: string;
15
+ isShowControllButton?: boolean;
15
16
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
 
3
- declare const Container: ({ children, isShowHeader, headerTitle, backgroundColor, keyboardAvoidingEnabled, subScreenName, webHeaderTitle, onRightPress, onLeftPress, onClose, webBackground, }: {
3
+ declare const Container: ({ children, isShowHeader, headerTitle, backgroundColor, keyboardAvoidingEnabled, subScreenName, webHeaderTitle, onRightPress, onLeftPress, onClose, webBackground, isShowControllButton, }: {
4
4
  children: React.ReactNode;
5
5
  isShowHeader?: boolean;
6
6
  headerTitle?: string;
@@ -12,6 +12,7 @@ declare const Container: ({ children, isShowHeader, headerTitle, backgroundColor
12
12
  onLeftPress?: () => void;
13
13
  onClose?: () => void;
14
14
  webBackground?: string;
15
+ isShowControllButton?: boolean;
15
16
  }) => any;
16
17
 
17
18
  export { Container };
@@ -1 +1 @@
1
- {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../components/Container/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,SAAS,GAAI,sKAYvB;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,QAuBA,CAAC"}
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../components/Container/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,SAAS,GAAI,4LAavB;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,QAwBA,CAAC"}
@@ -9,10 +9,10 @@ import { deviceHeight } from '../../themes/metrics.js';
9
9
  import '../../themes/stats.js';
10
10
  import Header from '../Header/index.js';
11
11
 
12
- const Container = ({ children, isShowHeader, headerTitle, backgroundColor = colors.white[10], keyboardAvoidingEnabled = false, subScreenName, webHeaderTitle, onRightPress, onLeftPress, onClose, webBackground, }) => {
12
+ const Container = ({ children, isShowHeader, headerTitle, backgroundColor = colors.white[10], keyboardAvoidingEnabled = false, subScreenName, webHeaderTitle, onRightPress, onLeftPress, onClose, webBackground, isShowControllButton = false, }) => {
13
13
  return (React.createElement(SafeAreaView, { style: [styles.flex1, { backgroundColor }] },
14
14
  React.createElement(KeyboardAvoidingView, { enabled: keyboardAvoidingEnabled, behavior: "padding", style: styles.keyboardAvoidingViewContainer },
15
- isShowHeader && (React.createElement(Header, { screenName: headerTitle, subScreenName: subScreenName, children: webHeaderTitle, onLeftPress: onLeftPress, onRightPress: onRightPress, onClose: onClose, webBackground: webBackground })),
15
+ isShowHeader && (React.createElement(Header, { screenName: headerTitle, subScreenName: subScreenName, children: webHeaderTitle, onLeftPress: onLeftPress, onRightPress: onRightPress, onClose: onClose, webBackground: webBackground, isShowControllButton: isShowControllButton })),
16
16
  children)));
17
17
  };
18
18
  const styles = StyleSheet.create({
@@ -1 +1 @@
1
- {"version":3,"file":"Container.js","sources":["../../../../components/Container/Container.tsx"],"sourcesContent":["import * as React from 'react';\nimport { StyleSheet } from 'react-native';\nimport { KeyboardAvoidingView } from 'react-native-keyboard-controller';\nimport { SafeAreaView } from 'react-native-safe-area-context';\nimport { colors, deviceHeight } from '@ui/themes';\n\nimport Header from '../Header';\n\nexport const Container = ({\n children,\n isShowHeader,\n headerTitle,\n backgroundColor = colors.white[10],\n keyboardAvoidingEnabled = false,\n subScreenName,\n webHeaderTitle,\n onRightPress,\n onLeftPress,\n onClose,\n webBackground,\n}: {\n children: React.ReactNode;\n isShowHeader?: boolean;\n headerTitle?: string;\n backgroundColor?: string;\n keyboardAvoidingEnabled?: boolean;\n subScreenName?: string;\n webHeaderTitle?: string;\n onRightPress?: () => void;\n onLeftPress?: () => void;\n onClose?: () => void;\n webBackground?: string;\n}) => {\n return (\n <SafeAreaView style={[styles.flex1, { backgroundColor }]}>\n <KeyboardAvoidingView\n enabled={keyboardAvoidingEnabled}\n behavior=\"padding\"\n style={styles.keyboardAvoidingViewContainer}\n >\n {isShowHeader && (\n <Header\n screenName={headerTitle}\n subScreenName={subScreenName}\n children={webHeaderTitle}\n onLeftPress={onLeftPress}\n onRightPress={onRightPress}\n onClose={onClose}\n webBackground={webBackground}\n />\n )}\n {children}\n </KeyboardAvoidingView>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n flex1: {\n flex: 1,\n },\n keyboardAvoidingViewContainer: {\n flexGrow: 1,\n maxHeight: deviceHeight(),\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;;AAQa,MAAA,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EAClC,uBAAuB,GAAG,KAAK,EAC/B,aAAa,EACb,cAAc,EACd,YAAY,EACZ,WAAW,EACX,OAAO,EACP,aAAa,GAad,KAAI;AACH,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,eAAe,EAAE,CAAC,EAAA;AACtD,QAAA,KAAA,CAAA,aAAA,CAAC,oBAAoB,EAAA,EACnB,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAC,SAAS,EAClB,KAAK,EAAE,MAAM,CAAC,6BAA6B,EAAA;AAE1C,YAAA,YAAY,KACX,KAAC,CAAA,aAAA,CAAA,MAAM,IACL,UAAU,EAAE,WAAW,EACvB,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,GAC5B,CACH;YACA,QAAQ,CACY,CACV;AAEnB;AAEA,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;AAC/B,IAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;AACD,IAAA,6BAA6B,EAAE;AAC7B,QAAA,QAAQ,EAAE,CAAC;QACX,SAAS,EAAE,YAAY,EAAE;AAC1B,KAAA;AACF,CAAA,CAAC;;;;"}
1
+ {"version":3,"file":"Container.js","sources":["../../../../components/Container/Container.tsx"],"sourcesContent":["import * as React from 'react';\nimport { StyleSheet } from 'react-native';\nimport { KeyboardAvoidingView } from 'react-native-keyboard-controller';\nimport { SafeAreaView } from 'react-native-safe-area-context';\nimport { colors, deviceHeight } from '@ui/themes';\n\nimport Header from '../Header';\n\nexport const Container = ({\n children,\n isShowHeader,\n headerTitle,\n backgroundColor = colors.white[10],\n keyboardAvoidingEnabled = false,\n subScreenName,\n webHeaderTitle,\n onRightPress,\n onLeftPress,\n onClose,\n webBackground,\n isShowControllButton = false,\n}: {\n children: React.ReactNode;\n isShowHeader?: boolean;\n headerTitle?: string;\n backgroundColor?: string;\n keyboardAvoidingEnabled?: boolean;\n subScreenName?: string;\n webHeaderTitle?: string;\n onRightPress?: () => void;\n onLeftPress?: () => void;\n onClose?: () => void;\n webBackground?: string;\n isShowControllButton?: boolean;\n}) => {\n return (\n <SafeAreaView style={[styles.flex1, { backgroundColor }]}>\n <KeyboardAvoidingView\n enabled={keyboardAvoidingEnabled}\n behavior=\"padding\"\n style={styles.keyboardAvoidingViewContainer}\n >\n {isShowHeader && (\n <Header\n screenName={headerTitle}\n subScreenName={subScreenName}\n children={webHeaderTitle}\n onLeftPress={onLeftPress}\n onRightPress={onRightPress}\n onClose={onClose}\n webBackground={webBackground}\n isShowControllButton={isShowControllButton}\n />\n )}\n {children}\n </KeyboardAvoidingView>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n flex1: {\n flex: 1,\n },\n keyboardAvoidingViewContainer: {\n flexGrow: 1,\n maxHeight: deviceHeight(),\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;;AAQa,MAAA,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EAClC,uBAAuB,GAAG,KAAK,EAC/B,aAAa,EACb,cAAc,EACd,YAAY,EACZ,WAAW,EACX,OAAO,EACP,aAAa,EACb,oBAAoB,GAAG,KAAK,GAc7B,KAAI;AACH,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,eAAe,EAAE,CAAC,EAAA;AACtD,QAAA,KAAA,CAAA,aAAA,CAAC,oBAAoB,EAAA,EACnB,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAC,SAAS,EAClB,KAAK,EAAE,MAAM,CAAC,6BAA6B,EAAA;AAE1C,YAAA,YAAY,KACX,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACL,UAAU,EAAE,WAAW,EACvB,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,EAAE,oBAAoB,GAC1C,CACH;YACA,QAAQ,CACY,CACV;AAEnB;AAEA,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;AAC/B,IAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;AACD,IAAA,6BAA6B,EAAE;AAC7B,QAAA,QAAQ,EAAE,CAAC;QACX,SAAS,EAAE,YAAY,EAAE;AAC1B,KAAA;AACF,CAAA,CAAC;;;;"}
@@ -13,6 +13,7 @@ interface CustomHeaderProps {
13
13
  children?: React.ReactNode;
14
14
  leftIcon?: keyof typeof Images;
15
15
  webBackground?: string;
16
+ isShowControllButton?: boolean;
16
17
  }
17
18
 
18
19
  export type { CustomHeaderProps };
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../components/Header/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../components/Header/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meatech/payblend_app_ui_component",
3
- "version": "1.1.28",
3
+ "version": "1.1.30",
4
4
  "description": "UI Component Library for Payblend App",
5
5
  "main": "./dist/components/index.js",
6
6
  "module": "./dist/components/index.js",