related-ui-components 1.7.6 → 1.7.8
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/app.js +24 -31
- package/lib/commonjs/app.js.map +1 -1
- package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js +445 -0
- package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +1 -0
- package/lib/commonjs/components/RedeemedVoucher/index.js +29 -0
- package/lib/commonjs/components/RedeemedVoucher/index.js.map +1 -0
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/module/app.js +22 -30
- package/lib/module/app.js.map +1 -1
- package/lib/module/components/RedeemedVoucher/RedeemedVoucherSheet.js +438 -0
- package/lib/module/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +1 -0
- package/lib/module/components/RedeemedVoucher/index.js +5 -0
- package/lib/module/components/RedeemedVoucher/index.js.map +1 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/typescript/commonjs/app.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts +58 -0
- package/lib/typescript/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/RedeemedVoucher/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/RedeemedVoucher/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +1 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/module/app.d.ts.map +1 -1
- package/lib/typescript/module/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts +58 -0
- package/lib/typescript/module/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -0
- package/lib/typescript/module/components/RedeemedVoucher/index.d.ts +3 -0
- package/lib/typescript/module/components/RedeemedVoucher/index.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +1 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/app.tsx +19 -19
- package/src/components/RedeemedVoucher/RedeemedVoucherSheet.tsx +547 -0
- package/src/components/RedeemedVoucher/index.ts +2 -0
- package/src/components/index.ts +2 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ImageSourcePropType, StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import { BottomSheetProps } from "@gorhom/bottom-sheet";
|
|
4
|
+
type Props = {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
code: string;
|
|
8
|
+
amount?: number;
|
|
9
|
+
expiry?: string;
|
|
10
|
+
image?: ImageSourcePropType;
|
|
11
|
+
title?: string;
|
|
12
|
+
currency?: string;
|
|
13
|
+
codeReadyText?: string;
|
|
14
|
+
qrCodeLabel?: string;
|
|
15
|
+
barCodeLabel?: string;
|
|
16
|
+
myVouchersButtonText?: string;
|
|
17
|
+
onMyVouchersButtonPress?: () => void;
|
|
18
|
+
onCopyCode?: (copiedCode: string) => void;
|
|
19
|
+
showAppleWalletButton?: boolean;
|
|
20
|
+
appleWalletButtonText?: string;
|
|
21
|
+
onAppleWalletButtonPress?: () => void;
|
|
22
|
+
appleWalletIconSource?: ImageSourcePropType;
|
|
23
|
+
qrCodeSize?: number;
|
|
24
|
+
activeTabColors?: string[];
|
|
25
|
+
inactiveTabBackgroundColor?: string;
|
|
26
|
+
inactiveTabBorderColor?: string;
|
|
27
|
+
inactiveTabTextColor?: string;
|
|
28
|
+
primaryButtonColors?: string[];
|
|
29
|
+
allowBarcodeSwitch?: boolean;
|
|
30
|
+
renderBarcodeComponent?: (code: string) => React.ReactNode;
|
|
31
|
+
renderCopyIcon?: () => React.ReactNode;
|
|
32
|
+
amountIconComponent?: React.ReactNode;
|
|
33
|
+
expiryIconComponent?: React.ReactNode;
|
|
34
|
+
snapPoints?: string[];
|
|
35
|
+
sheetBackgroundStyle?: StyleProp<ViewStyle>;
|
|
36
|
+
sheetHandleStyle?: StyleProp<ViewStyle>;
|
|
37
|
+
backdropPressBehavior?: "close" | "none" | number;
|
|
38
|
+
bottomSheetOverrideProps?: Partial<Omit<BottomSheetProps, "children" | "snapPoints" | "index" | "onClose" | "enablePanDownToClose" | "backgroundStyle" | "handleIndicatorStyle" | "backdropComponent">>;
|
|
39
|
+
tabGradientStart?: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
tabGradientEnd?: {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
};
|
|
47
|
+
primaryButtonGradientStart?: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
primaryButtonGradientEnd?: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
declare const RedeemedVoucherSheet: React.FC<Props>;
|
|
57
|
+
export default RedeemedVoucherSheet;
|
|
58
|
+
//# sourceMappingURL=RedeemedVoucherSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedeemedVoucherSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/RedeemedVoucher/RedeemedVoucherSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAOL,mBAAmB,EACnB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAoB,EAElB,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAO9B,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,mBA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G,MAAM,CAAC;IAClD,wBAAwB,CAAC,EAAE,OAAO,CAChC,IAAI,CACF,gBAAgB,EACd,UAAU,GACV,YAAY,GACZ,OAAO,GACP,SAAS,GACT,sBAAsB,GACtB,iBAAiB,GACjB,sBAAsB,GACtB,mBAAmB,CACtB,CACF,CAAC;IACF,gBAAgB,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,cAAc,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,0BAA0B,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,wBAAwB,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrD,CAAC;AAEF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA8RzC,CAAC;AAsLF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RedeemedVoucher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AACxE,cAAc,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAe,UAAU,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAe,UAAU,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,QAAA,MAAM,QAAQ,yBAiGb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ImageSourcePropType, StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import { BottomSheetProps } from "@gorhom/bottom-sheet";
|
|
4
|
+
type Props = {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
code: string;
|
|
8
|
+
amount?: number;
|
|
9
|
+
expiry?: string;
|
|
10
|
+
image?: ImageSourcePropType;
|
|
11
|
+
title?: string;
|
|
12
|
+
currency?: string;
|
|
13
|
+
codeReadyText?: string;
|
|
14
|
+
qrCodeLabel?: string;
|
|
15
|
+
barCodeLabel?: string;
|
|
16
|
+
myVouchersButtonText?: string;
|
|
17
|
+
onMyVouchersButtonPress?: () => void;
|
|
18
|
+
onCopyCode?: (copiedCode: string) => void;
|
|
19
|
+
showAppleWalletButton?: boolean;
|
|
20
|
+
appleWalletButtonText?: string;
|
|
21
|
+
onAppleWalletButtonPress?: () => void;
|
|
22
|
+
appleWalletIconSource?: ImageSourcePropType;
|
|
23
|
+
qrCodeSize?: number;
|
|
24
|
+
activeTabColors?: string[];
|
|
25
|
+
inactiveTabBackgroundColor?: string;
|
|
26
|
+
inactiveTabBorderColor?: string;
|
|
27
|
+
inactiveTabTextColor?: string;
|
|
28
|
+
primaryButtonColors?: string[];
|
|
29
|
+
allowBarcodeSwitch?: boolean;
|
|
30
|
+
renderBarcodeComponent?: (code: string) => React.ReactNode;
|
|
31
|
+
renderCopyIcon?: () => React.ReactNode;
|
|
32
|
+
amountIconComponent?: React.ReactNode;
|
|
33
|
+
expiryIconComponent?: React.ReactNode;
|
|
34
|
+
snapPoints?: string[];
|
|
35
|
+
sheetBackgroundStyle?: StyleProp<ViewStyle>;
|
|
36
|
+
sheetHandleStyle?: StyleProp<ViewStyle>;
|
|
37
|
+
backdropPressBehavior?: "close" | "none" | number;
|
|
38
|
+
bottomSheetOverrideProps?: Partial<Omit<BottomSheetProps, "children" | "snapPoints" | "index" | "onClose" | "enablePanDownToClose" | "backgroundStyle" | "handleIndicatorStyle" | "backdropComponent">>;
|
|
39
|
+
tabGradientStart?: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
tabGradientEnd?: {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
};
|
|
47
|
+
primaryButtonGradientStart?: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
primaryButtonGradientEnd?: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
declare const RedeemedVoucherSheet: React.FC<Props>;
|
|
57
|
+
export default RedeemedVoucherSheet;
|
|
58
|
+
//# sourceMappingURL=RedeemedVoucherSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedeemedVoucherSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/RedeemedVoucher/RedeemedVoucherSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAOL,mBAAmB,EACnB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAoB,EAElB,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAO9B,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAE5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,C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AAM,CAAA;KAAE,CAAC;IACtD,wBAAwB,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrD,CAAC;AAEF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA8RzC,CAAC;AAsLF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RedeemedVoucher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AACxE,cAAc,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAe,UAAU,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAe,UAAU,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "related-ui-components",
|
|
3
3
|
"main": "./src/index.ts",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.8",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "expo start",
|
|
7
7
|
"reset-project": "node ./scripts/reset-project.js",
|
|
@@ -42,12 +42,14 @@
|
|
|
42
42
|
"react-native-calendars": "^1.1310.0",
|
|
43
43
|
"react-native-gesture-handler": "~2.20.2",
|
|
44
44
|
"react-native-modal": "^14.0.0-rc.1",
|
|
45
|
+
"react-native-qrcode-svg": "^6.3.15",
|
|
45
46
|
"react-native-reanimated": "^3.16.1",
|
|
46
47
|
"react-native-safe-area-context": "4.12.0",
|
|
47
48
|
"react-native-screens": "~4.4.0",
|
|
48
49
|
"react-native-svg": "15.8.0",
|
|
49
50
|
"react-native-web": "~0.19.13",
|
|
50
|
-
"react-native-webview": "13.12.5"
|
|
51
|
+
"react-native-webview": "13.12.5",
|
|
52
|
+
"expo-clipboard": "~7.0.1"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
55
|
"@babel/core": "^7.25.2",
|
package/src/app.tsx
CHANGED
|
@@ -4,6 +4,8 @@ import { FilterResult, Filters, Popup, UnlockRewards } from "./components";
|
|
|
4
4
|
import BRANDS from "./constants/BRANDS";
|
|
5
5
|
import { Ionicons } from "@expo/vector-icons";
|
|
6
6
|
import { useTheme } from "./theme";
|
|
7
|
+
import RedeemedVoucherSheet from "./components/RedeemedVoucher/RedeemedVoucherSheet";
|
|
8
|
+
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
|
7
9
|
|
|
8
10
|
const MyScreen = () => {
|
|
9
11
|
const [isFilterVisible, setIsFilterVisible] = useState(false);
|
|
@@ -83,25 +85,23 @@ const MyScreen = () => {
|
|
|
83
85
|
|
|
84
86
|
return (
|
|
85
87
|
<>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
//
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<Button title="Show Filters" onPress={() => setIsFilterVisible(true)} />
|
|
104
|
-
</View>
|
|
88
|
+
<GestureHandlerRootView>
|
|
89
|
+
<RedeemedVoucherSheet
|
|
90
|
+
visible={true}
|
|
91
|
+
onClose={() => {}}
|
|
92
|
+
code="0000P78SHV50KK"
|
|
93
|
+
// amount={100}
|
|
94
|
+
expiry="22/01/2025"
|
|
95
|
+
currency="USD"
|
|
96
|
+
title="Voucher Activated!"
|
|
97
|
+
// primaryButtonColors={["red", "blue"]}
|
|
98
|
+
onMyVouchersButtonPress={() => console.log("My Vouchers pressed")}
|
|
99
|
+
onCopyCode={(code) => console.log("Copied:", code)}
|
|
100
|
+
// To use custom icons:
|
|
101
|
+
// amountIconComponent={<Image source={YourCustomAmountIcon} style={{width: 20, height: 20, marginRight: 5}} />}
|
|
102
|
+
// renderCopyIcon={() => <Text style={{fontSize: 22, color: 'blue'}}>COPY</Text>}
|
|
103
|
+
/>
|
|
104
|
+
</GestureHandlerRootView>
|
|
105
105
|
</>
|
|
106
106
|
);
|
|
107
107
|
};
|