@oxy.so/services 1.0.0 → 1.0.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/commonjs/index.js +11 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +7 -0
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +8 -60
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/PeableButton.js +66 -0
- package/lib/commonjs/ui/components/PeableButton.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +10 -10
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +1 -1
- package/lib/commonjs/ui/components/payment/constants.js +2 -2
- package/lib/commonjs/ui/components/payment/constants.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +9 -9
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/index.js +7 -0
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/server.js +4 -2
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +3 -0
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +5 -56
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/PeableButton.js +62 -0
- package/lib/module/ui/components/PeableButton.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +10 -10
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +1 -1
- package/lib/module/ui/components/payment/constants.js +2 -2
- package/lib/module/ui/components/payment/constants.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +9 -9
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/index.js +4 -0
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/server.js +3 -1
- package/lib/module/ui/server.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +5 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +5 -0
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts +6 -26
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/PeableButton.d.ts +29 -0
- package/lib/typescript/commonjs/ui/components/PeableButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts +8 -8
- package/lib/typescript/commonjs/ui/index.d.ts +5 -0
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +2 -0
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +5 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +5 -0
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts +6 -26
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/PeableButton.d.ts +29 -0
- package/lib/typescript/module/ui/components/PeableButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts +8 -8
- package/lib/typescript/module/ui/index.d.ts +5 -0
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +2 -0
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +5 -0
- package/src/ui/client.ts +5 -0
- package/src/ui/components/OxyPayButton.tsx +6 -71
- package/src/ui/components/PeableButton.tsx +74 -0
- package/src/ui/components/payment/PaymentDetailsStep.tsx +9 -9
- package/src/ui/components/payment/PaymentReviewStep.tsx +1 -1
- package/src/ui/components/payment/constants.ts +1 -1
- package/src/ui/components/payment/paymentStyles.ts +9 -9
- package/src/ui/index.ts +5 -0
- package/src/ui/server.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyPayButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/OxyPayButton.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"OxyPayButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/OxyPayButton.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,mDAAmD;AACnD,YAAY,EAAE,iBAAiB,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ViewStyle, TextStyle, StyleProp } from 'react-native';
|
|
3
|
+
import type { PaymentItem, PaymentGatewayResult } from '../screens/PaymentGatewayScreen';
|
|
4
|
+
export interface PeableButtonProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
textStyle?: StyleProp<TextStyle>;
|
|
7
|
+
text?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
amount: number | string;
|
|
10
|
+
currency?: string;
|
|
11
|
+
paymentItems?: PaymentItem[];
|
|
12
|
+
description?: string;
|
|
13
|
+
onPaymentResult?: (result: PaymentGatewayResult) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Button background color. If not provided, uses variant ('white' or 'black').
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Button color variant: 'white' (default) or 'black'. Ignored if color is set.
|
|
20
|
+
*/
|
|
21
|
+
variant?: 'white' | 'black';
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A pre-styled button for Peable payments that opens the Payment Gateway
|
|
25
|
+
* - Only black or white by default, but can be customized with the color prop.
|
|
26
|
+
*/
|
|
27
|
+
declare const PeableButton: React.FC<PeableButtonProps>;
|
|
28
|
+
export default PeableButton;
|
|
29
|
+
//# sourceMappingURL=PeableButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeableButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/PeableButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAGzF,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4B7C,CAAC;AAcF,eAAe,YAAY,CAAC"}
|
|
@@ -189,7 +189,7 @@ export declare const createPaymentStyles: (colors: PaymentColors) => {
|
|
|
189
189
|
flex: number;
|
|
190
190
|
marginLeft: number;
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
peableCard: {
|
|
193
193
|
backgroundColor: string;
|
|
194
194
|
borderRadius: number;
|
|
195
195
|
padding: number;
|
|
@@ -197,14 +197,14 @@ export declare const createPaymentStyles: (colors: PaymentColors) => {
|
|
|
197
197
|
alignItems: "center";
|
|
198
198
|
width: "100%";
|
|
199
199
|
};
|
|
200
|
-
|
|
200
|
+
peableContent: {
|
|
201
201
|
alignItems: "center";
|
|
202
202
|
width: "100%";
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
peableIcon: {
|
|
205
205
|
marginBottom: number;
|
|
206
206
|
};
|
|
207
|
-
|
|
207
|
+
peableMainTitle: {
|
|
208
208
|
fontWeight: "bold";
|
|
209
209
|
fontSize: number;
|
|
210
210
|
color: string;
|
|
@@ -212,23 +212,23 @@ export declare const createPaymentStyles: (colors: PaymentColors) => {
|
|
|
212
212
|
textAlign: "center";
|
|
213
213
|
letterSpacing: number;
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
peableSubtitle: {
|
|
216
216
|
fontSize: number;
|
|
217
217
|
color: string;
|
|
218
218
|
textAlign: "center";
|
|
219
219
|
marginBottom: number;
|
|
220
220
|
};
|
|
221
|
-
|
|
221
|
+
peableBalanceBox: {
|
|
222
222
|
backgroundColor: string;
|
|
223
223
|
borderRadius: number;
|
|
224
224
|
padding: number;
|
|
225
225
|
marginTop: number;
|
|
226
226
|
};
|
|
227
|
-
|
|
227
|
+
peableBalanceText: {
|
|
228
228
|
color: string;
|
|
229
229
|
fontWeight: "600";
|
|
230
230
|
};
|
|
231
|
-
|
|
231
|
+
peableWaiting: {
|
|
232
232
|
fontSize: number;
|
|
233
233
|
color: string;
|
|
234
234
|
textAlign: "center";
|
|
@@ -20,7 +20,12 @@ export { LogoText } from './components/logo/LogoText';
|
|
|
20
20
|
export { RequireOxyAuth } from './components/RequireOxyAuth';
|
|
21
21
|
export type { RequireOxyAuthProps, RequireOxyAuthPrompt } from './components/RequireOxyAuth';
|
|
22
22
|
export { default as FollowButton } from './components/FollowButton';
|
|
23
|
+
export { default as PeableButton } from './components/PeableButton';
|
|
24
|
+
export type { PeableButtonProps } from './components/PeableButton';
|
|
25
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
23
26
|
export { default as OxyPayButton } from './components/OxyPayButton';
|
|
27
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
28
|
+
export type { OxyPayButtonProps } from './components/OxyPayButton';
|
|
24
29
|
export { default as ProfileButton } from './components/ProfileButton';
|
|
25
30
|
export { useOxy, useOptionalOxy, OxyProviderMissingError } from './context/OxyContext';
|
|
26
31
|
export { useAuth } from './hooks/useAuth';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,aAAa,EA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EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,8CAA8C;AAC9C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,mDAAmD;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAM9E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -12,6 +12,8 @@ export declare const OxySignInButton: () => null;
|
|
|
12
12
|
export declare const LogoIcon: () => null;
|
|
13
13
|
export declare const LogoText: () => null;
|
|
14
14
|
export declare const FollowButton: () => null;
|
|
15
|
+
export declare const PeableButton: () => null;
|
|
16
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
15
17
|
export declare const OxyPayButton: () => null;
|
|
16
18
|
export declare const useOxy: () => {};
|
|
17
19
|
export declare const useAuth: () => {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/ui/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,eAAO,MAAM,WAAW,YAAgB,CAAC;AACzC,eAAO,MAAM,eAAe,YAAgB,CAAC;AAC7C,eAAO,MAAM,QAAQ,YAAgB,CAAC;AACtC,eAAO,MAAM,QAAQ,YAAgB,CAAC;AACtC,eAAO,MAAM,YAAY,YAAgB,CAAC;AAC1C,eAAO,MAAM,YAAY,YAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/ui/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,eAAO,MAAM,WAAW,YAAgB,CAAC;AACzC,eAAO,MAAM,eAAe,YAAgB,CAAC;AAC7C,eAAO,MAAM,QAAQ,YAAgB,CAAC;AACtC,eAAO,MAAM,QAAQ,YAAgB,CAAC;AACtC,eAAO,MAAM,YAAY,YAAgB,CAAC;AAC1C,eAAO,MAAM,YAAY,YAAgB,CAAC;AAC1C,8CAA8C;AAC9C,eAAO,MAAM,YAAY,YAAe,CAAC;AAGzC,eAAO,MAAM,MAAM,UAAW,CAAC;AAG/B,eAAO,MAAM,OAAO,UAAW,CAAC;AAChC,eAAO,MAAM,SAAS,UAAW,CAAC;AAClC,eAAO,MAAM,UAAU;;;CAA0B,CAAC;AAGlD,eAAO,MAAM,aAAa,YAAgB,CAAC;AAG3C,eAAO,MAAM,YAAY,UAAW,CAAC;AAGrC,eAAO,MAAM,KAAK;;;;;;;CAUjB,CAAC;AAGF,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -82,7 +82,12 @@ export type { FollowTargetButtonProps, FollowVerb, FollowLabels, FollowDuration,
|
|
|
82
82
|
export { useFollowTarget } from './ui/hooks/useFollowTarget.js';
|
|
83
83
|
export type { UseFollowTargetResult } from './ui/hooks/useFollowTarget.js';
|
|
84
84
|
export { useFollowTargetStore, UNKNOWN_FOLLOW_STATUS, isFollowedGlobally, withApplicationMode, isCompleteFollowStatus, followRecordToStatus, followRecordsToStatusMap, } from './ui/stores/followTargetStore.js';
|
|
85
|
+
export { default as PeableButton } from './ui/components/PeableButton.js';
|
|
86
|
+
export type { PeableButtonProps } from './ui/components/PeableButton.js';
|
|
87
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
85
88
|
export { default as OxyPayButton } from './ui/components/OxyPayButton.js';
|
|
89
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
90
|
+
export type { OxyPayButtonProps } from './ui/components/OxyPayButton.js';
|
|
86
91
|
export { LogoIcon } from './ui/components/logo/LogoIcon.js';
|
|
87
92
|
export { LogoText } from './ui/components/logo/LogoText.js';
|
|
88
93
|
export { default as ProfileButton } from './ui/components/ProfileButton.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAYH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAAyB,CAAC;AAIjD,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,4BAAyB,CAAC;AAKlF,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,uBAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACf,MAAM,uBAAc,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,MAAM,4BAAyB,CAAC;AAC/D,OAAO,EA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AAClF,YAAY,EAAE,4BAA4B,EAAE,MAAM,4CAAyC,CAAC;AAC5F,YAAY,EAAE,sBAAsB,EAAE,MAAM,sCAAmC,CAAC;AAQhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAA8B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAA8B,CAAC;AAU5E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAoC,CAAC;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,2BAAwB,CAAC;AAKxD,OAAO,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,gCAA6B,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,wCAAqC,CAAC;AAMzG,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,yCAAsC,CAAC"}
|
|
@@ -14,7 +14,12 @@ export type { OxyAuthPromptProps } from './components/OxyAuthPrompt.js';
|
|
|
14
14
|
export { LogoIcon } from './components/logo/LogoIcon.js';
|
|
15
15
|
export { LogoText } from './components/logo/LogoText.js';
|
|
16
16
|
export { default as FollowButton } from './components/FollowButton.js';
|
|
17
|
+
export { default as PeableButton } from './components/PeableButton.js';
|
|
18
|
+
export type { PeableButtonProps } from './components/PeableButton.js';
|
|
19
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
17
20
|
export { default as OxyPayButton } from './components/OxyPayButton.js';
|
|
21
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
22
|
+
export type { OxyPayButtonProps } from './components/OxyPayButton.js';
|
|
18
23
|
export { useOxy, useOptionalOxy, OxyProviderMissingError } from './context/OxyContext.js';
|
|
19
24
|
export { useAuth } from './hooks/useAuth.js';
|
|
20
25
|
export type { AuthState, AuthActions, SignInOutcome, UseAuthReturn } from './hooks/useAuth.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/ui/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA4B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/ui/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA4B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;AACpE,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA2B,CAAC;AACnE,8CAA8C;AAC9C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;AACpE,mDAAmD;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA2B,CAAC;AAGnE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,yBAAsB,CAAC;AAGvF,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAiB,CAAC;AAC1C,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAiB,CAAC;AAC5F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAA8B,CAAC;AAC9E,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iCAA8B,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAoB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAoB,CAAC;AAM9E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AAGlD,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,0BAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAAuB,CAAC"}
|
|
@@ -1,29 +1,9 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { ViewStyle, TextStyle, StyleProp } from 'react-native';
|
|
3
|
-
import type { PaymentItem, PaymentGatewayResult } from '../screens/PaymentGatewayScreen.js';
|
|
4
|
-
export interface OxyPayButtonProps {
|
|
5
|
-
style?: StyleProp<ViewStyle>;
|
|
6
|
-
textStyle?: StyleProp<TextStyle>;
|
|
7
|
-
text?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
amount: number | string;
|
|
10
|
-
currency?: string;
|
|
11
|
-
paymentItems?: PaymentItem[];
|
|
12
|
-
description?: string;
|
|
13
|
-
onPaymentResult?: (result: PaymentGatewayResult) => void;
|
|
14
|
-
/**
|
|
15
|
-
* Button background color. If not provided, uses variant ('white' or 'black').
|
|
16
|
-
*/
|
|
17
|
-
color?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Button color variant: 'white' (default) or 'black'. Ignored if color is set.
|
|
20
|
-
*/
|
|
21
|
-
variant?: 'white' | 'black';
|
|
22
|
-
}
|
|
23
1
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
2
|
+
* @deprecated Use `PeableButton` from `@oxy.so/services` or
|
|
3
|
+
* `@oxy.so/services/ui` instead. This compatibility export preserves the
|
|
4
|
+
* pre-Peable public component name for existing consumers.
|
|
26
5
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
6
|
+
export { default } from './PeableButton.js';
|
|
7
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
8
|
+
export type { PeableButtonProps as OxyPayButtonProps } from './PeableButton.js';
|
|
29
9
|
//# sourceMappingURL=OxyPayButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyPayButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/OxyPayButton.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"OxyPayButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/OxyPayButton.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAgB,CAAC;AAEzC,mDAAmD;AACnD,YAAY,EAAE,iBAAiB,IAAI,iBAAiB,EAAE,MAAM,mBAAgB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ViewStyle, TextStyle, StyleProp } from 'react-native';
|
|
3
|
+
import type { PaymentItem, PaymentGatewayResult } from '../screens/PaymentGatewayScreen.js';
|
|
4
|
+
export interface PeableButtonProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
textStyle?: StyleProp<TextStyle>;
|
|
7
|
+
text?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
amount: number | string;
|
|
10
|
+
currency?: string;
|
|
11
|
+
paymentItems?: PaymentItem[];
|
|
12
|
+
description?: string;
|
|
13
|
+
onPaymentResult?: (result: PaymentGatewayResult) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Button background color. If not provided, uses variant ('white' or 'black').
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Button color variant: 'white' (default) or 'black'. Ignored if color is set.
|
|
20
|
+
*/
|
|
21
|
+
variant?: 'white' | 'black';
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A pre-styled button for Peable payments that opens the Payment Gateway
|
|
25
|
+
* - Only black or white by default, but can be customized with the color prop.
|
|
26
|
+
*/
|
|
27
|
+
declare const PeableButton: React.FC<PeableButtonProps>;
|
|
28
|
+
export default PeableButton;
|
|
29
|
+
//# sourceMappingURL=PeableButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeableButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/PeableButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,oCAAiC,CAAC;AAGzF,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4B7C,CAAC;AAcF,eAAe,YAAY,CAAC"}
|
|
@@ -189,7 +189,7 @@ export declare const createPaymentStyles: (colors: PaymentColors) => {
|
|
|
189
189
|
flex: number;
|
|
190
190
|
marginLeft: number;
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
peableCard: {
|
|
193
193
|
backgroundColor: string;
|
|
194
194
|
borderRadius: number;
|
|
195
195
|
padding: number;
|
|
@@ -197,14 +197,14 @@ export declare const createPaymentStyles: (colors: PaymentColors) => {
|
|
|
197
197
|
alignItems: "center";
|
|
198
198
|
width: "100%";
|
|
199
199
|
};
|
|
200
|
-
|
|
200
|
+
peableContent: {
|
|
201
201
|
alignItems: "center";
|
|
202
202
|
width: "100%";
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
peableIcon: {
|
|
205
205
|
marginBottom: number;
|
|
206
206
|
};
|
|
207
|
-
|
|
207
|
+
peableMainTitle: {
|
|
208
208
|
fontWeight: "bold";
|
|
209
209
|
fontSize: number;
|
|
210
210
|
color: string;
|
|
@@ -212,23 +212,23 @@ export declare const createPaymentStyles: (colors: PaymentColors) => {
|
|
|
212
212
|
textAlign: "center";
|
|
213
213
|
letterSpacing: number;
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
peableSubtitle: {
|
|
216
216
|
fontSize: number;
|
|
217
217
|
color: string;
|
|
218
218
|
textAlign: "center";
|
|
219
219
|
marginBottom: number;
|
|
220
220
|
};
|
|
221
|
-
|
|
221
|
+
peableBalanceBox: {
|
|
222
222
|
backgroundColor: string;
|
|
223
223
|
borderRadius: number;
|
|
224
224
|
padding: number;
|
|
225
225
|
marginTop: number;
|
|
226
226
|
};
|
|
227
|
-
|
|
227
|
+
peableBalanceText: {
|
|
228
228
|
color: string;
|
|
229
229
|
fontWeight: "600";
|
|
230
230
|
};
|
|
231
|
-
|
|
231
|
+
peableWaiting: {
|
|
232
232
|
fontSize: number;
|
|
233
233
|
color: string;
|
|
234
234
|
textAlign: "center";
|
|
@@ -20,7 +20,12 @@ export { LogoText } from './components/logo/LogoText.js';
|
|
|
20
20
|
export { RequireOxyAuth } from './components/RequireOxyAuth.js';
|
|
21
21
|
export type { RequireOxyAuthProps, RequireOxyAuthPrompt } from './components/RequireOxyAuth.js';
|
|
22
22
|
export { default as FollowButton } from './components/FollowButton.js';
|
|
23
|
+
export { default as PeableButton } from './components/PeableButton.js';
|
|
24
|
+
export type { PeableButtonProps } from './components/PeableButton.js';
|
|
25
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
23
26
|
export { default as OxyPayButton } from './components/OxyPayButton.js';
|
|
27
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
28
|
+
export type { OxyPayButtonProps } from './components/OxyPayButton.js';
|
|
24
29
|
export { default as ProfileButton } from './components/ProfileButton.js';
|
|
25
30
|
export { useOxy, useOptionalOxy, OxyProviderMissingError } from './context/OxyContext.js';
|
|
26
31
|
export { useAuth } from './hooks/useAuth.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MA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EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,0BAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAAuB,CAAC"}
|
|
@@ -12,6 +12,8 @@ export declare const OxySignInButton: () => null;
|
|
|
12
12
|
export declare const LogoIcon: () => null;
|
|
13
13
|
export declare const LogoText: () => null;
|
|
14
14
|
export declare const FollowButton: () => null;
|
|
15
|
+
export declare const PeableButton: () => null;
|
|
16
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
15
17
|
export declare const OxyPayButton: () => null;
|
|
16
18
|
export declare const useOxy: () => {};
|
|
17
19
|
export declare const useAuth: () => {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/ui/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,eAAO,MAAM,WAAW,YAAgB,CAAC;AACzC,eAAO,MAAM,eAAe,YAAgB,CAAC;AAC7C,eAAO,MAAM,QAAQ,YAAgB,CAAC;AACtC,eAAO,MAAM,QAAQ,YAAgB,CAAC;AACtC,eAAO,MAAM,YAAY,YAAgB,CAAC;AAC1C,eAAO,MAAM,YAAY,YAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/ui/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,eAAO,MAAM,WAAW,YAAgB,CAAC;AACzC,eAAO,MAAM,eAAe,YAAgB,CAAC;AAC7C,eAAO,MAAM,QAAQ,YAAgB,CAAC;AACtC,eAAO,MAAM,QAAQ,YAAgB,CAAC;AACtC,eAAO,MAAM,YAAY,YAAgB,CAAC;AAC1C,eAAO,MAAM,YAAY,YAAgB,CAAC;AAC1C,8CAA8C;AAC9C,eAAO,MAAM,YAAY,YAAe,CAAC;AAGzC,eAAO,MAAM,MAAM,UAAW,CAAC;AAG/B,eAAO,MAAM,OAAO,UAAW,CAAC;AAChC,eAAO,MAAM,SAAS,UAAW,CAAC;AAClC,eAAO,MAAM,UAAU;;;CAA0B,CAAC;AAGlD,eAAO,MAAM,aAAa,YAAgB,CAAC;AAG3C,eAAO,MAAM,YAAY,UAAW,CAAC;AAGrC,eAAO,MAAM,KAAK;;;;;;;CAUjB,CAAC;AAGF,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,0BAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "OxyHQ Expo/React Native SDK — UI components, screens, and native features",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"@commitlint/cli": "^21.2.1",
|
|
164
164
|
"@commitlint/config-conventional": "^21.2.0",
|
|
165
165
|
"@expo/vector-icons": "^15.0.3",
|
|
166
|
-
"@oxy.so/core": "1.0.
|
|
166
|
+
"@oxy.so/core": "1.0.1",
|
|
167
167
|
"@react-native-async-storage/async-storage": "^2.0.0",
|
|
168
168
|
"@react-native-community/netinfo": "^12.0.1",
|
|
169
169
|
"@react-native/babel-preset": "^0.86.2",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"peerDependencies": {
|
|
216
216
|
"@expo/vector-icons": "^15.0.3",
|
|
217
217
|
"@oxy.so/bloom": "^1.0.0",
|
|
218
|
-
"@oxy.so/core": "1.0.
|
|
218
|
+
"@oxy.so/core": "^1.0.1",
|
|
219
219
|
"@react-native-async-storage/async-storage": "^2.0.0",
|
|
220
220
|
"@react-native-community/netinfo": ">=11.4.1",
|
|
221
221
|
"@tanstack/query-async-storage-persister": "^5.101",
|
package/src/index.ts
CHANGED
|
@@ -342,7 +342,12 @@ export {
|
|
|
342
342
|
followRecordToStatus,
|
|
343
343
|
followRecordsToStatusMap,
|
|
344
344
|
} from './ui/stores/followTargetStore';
|
|
345
|
+
export { default as PeableButton } from './ui/components/PeableButton';
|
|
346
|
+
export type { PeableButtonProps } from './ui/components/PeableButton';
|
|
347
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
345
348
|
export { default as OxyPayButton } from './ui/components/OxyPayButton';
|
|
349
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
350
|
+
export type { OxyPayButtonProps } from './ui/components/OxyPayButton';
|
|
346
351
|
export { LogoIcon } from './ui/components/logo/LogoIcon';
|
|
347
352
|
export { LogoText } from './ui/components/logo/LogoText';
|
|
348
353
|
|
package/src/ui/client.ts
CHANGED
|
@@ -16,7 +16,12 @@ export type { OxyAuthPromptProps } from './components/OxyAuthPrompt';
|
|
|
16
16
|
export { LogoIcon } from './components/logo/LogoIcon';
|
|
17
17
|
export { LogoText } from './components/logo/LogoText';
|
|
18
18
|
export { default as FollowButton } from './components/FollowButton';
|
|
19
|
+
export { default as PeableButton } from './components/PeableButton';
|
|
20
|
+
export type { PeableButtonProps } from './components/PeableButton';
|
|
21
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
19
22
|
export { default as OxyPayButton } from './components/OxyPayButton';
|
|
23
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
24
|
+
export type { OxyPayButtonProps } from './components/OxyPayButton';
|
|
20
25
|
|
|
21
26
|
// Context
|
|
22
27
|
export { useOxy, useOptionalOxy, OxyProviderMissingError } from './context/OxyContext';
|
|
@@ -1,74 +1,9 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { ViewStyle, TextStyle, StyleProp } from 'react-native';
|
|
3
|
-
import { useTheme } from '@oxy.so/bloom/theme';
|
|
4
|
-
import { Button } from '@oxy.so/bloom/button';
|
|
5
|
-
import type { PaymentItem, PaymentGatewayResult } from '../screens/PaymentGatewayScreen';
|
|
6
|
-
import { LogoIcon } from './logo/LogoIcon';
|
|
7
|
-
|
|
8
|
-
export interface OxyPayButtonProps {
|
|
9
|
-
style?: StyleProp<ViewStyle>;
|
|
10
|
-
textStyle?: StyleProp<TextStyle>;
|
|
11
|
-
text?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
amount: number | string;
|
|
14
|
-
currency?: string;
|
|
15
|
-
paymentItems?: PaymentItem[];
|
|
16
|
-
description?: string;
|
|
17
|
-
onPaymentResult?: (result: PaymentGatewayResult) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Button background color. If not provided, uses variant ('white' or 'black').
|
|
20
|
-
*/
|
|
21
|
-
color?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Button color variant: 'white' (default) or 'black'. Ignored if color is set.
|
|
24
|
-
*/
|
|
25
|
-
variant?: 'white' | 'black';
|
|
26
|
-
}
|
|
27
|
-
|
|
28
1
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
2
|
+
* @deprecated Use `PeableButton` from `@oxy.so/services` or
|
|
3
|
+
* `@oxy.so/services/ui` instead. This compatibility export preserves the
|
|
4
|
+
* pre-Peable public component name for existing consumers.
|
|
31
5
|
*/
|
|
32
|
-
|
|
33
|
-
style,
|
|
34
|
-
textStyle,
|
|
35
|
-
text = 'Pay',
|
|
36
|
-
disabled = false,
|
|
37
|
-
color,
|
|
38
|
-
variant = 'white',
|
|
39
|
-
}) => {
|
|
40
|
-
const theme = useTheme();
|
|
41
|
-
const handlePress = () => {
|
|
42
|
-
console.warn('OxyPayButton: The bottom sheet payment flow has been removed. Provide a custom onPress handler.');
|
|
43
|
-
};
|
|
44
|
-
// Determine background and text color
|
|
45
|
-
const backgroundColor = color || (variant === 'black' ? theme.colors.text : theme.colors.background);
|
|
46
|
-
const textColor = variant === 'black' || (color && isColorDark(color)) ? theme.colors.background : '#1b1f0a';
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<Button
|
|
50
|
-
variant="inverse"
|
|
51
|
-
onPress={handlePress}
|
|
52
|
-
disabled={disabled}
|
|
53
|
-
style={[{ backgroundColor, borderColor: textColor, borderWidth: 1 }, style]}
|
|
54
|
-
textStyle={[{ color: textColor, fontWeight: '700' }, textStyle]}
|
|
55
|
-
icon={<LogoIcon height={16} color={textColor} style={{ marginRight: 6 }} />}
|
|
56
|
-
>
|
|
57
|
-
{text}
|
|
58
|
-
</Button>
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
// Helper to determine if a color is dark (simple luminance check)
|
|
63
|
-
function isColorDark(hex: string) {
|
|
64
|
-
let c = hex.replace('#', '');
|
|
65
|
-
if (c.length === 3) c = c.split('').map(x => x + x).join('');
|
|
66
|
-
if (c.length !== 6) return false;
|
|
67
|
-
const r = Number.parseInt(c.substr(0, 2), 16);
|
|
68
|
-
const g = Number.parseInt(c.substr(2, 2), 16);
|
|
69
|
-
const b = Number.parseInt(c.substr(4, 2), 16);
|
|
70
|
-
// Perceived luminance
|
|
71
|
-
return (0.299 * r + 0.587 * g + 0.114 * b) < 150;
|
|
72
|
-
}
|
|
6
|
+
export { default } from './PeableButton';
|
|
73
7
|
|
|
74
|
-
|
|
8
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
9
|
+
export type { PeableButtonProps as OxyPayButtonProps } from './PeableButton';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ViewStyle, TextStyle, StyleProp } from 'react-native';
|
|
3
|
+
import { useTheme } from '@oxy.so/bloom/theme';
|
|
4
|
+
import { Button } from '@oxy.so/bloom/button';
|
|
5
|
+
import type { PaymentItem, PaymentGatewayResult } from '../screens/PaymentGatewayScreen';
|
|
6
|
+
import { LogoIcon } from './logo/LogoIcon';
|
|
7
|
+
|
|
8
|
+
export interface PeableButtonProps {
|
|
9
|
+
style?: StyleProp<ViewStyle>;
|
|
10
|
+
textStyle?: StyleProp<TextStyle>;
|
|
11
|
+
text?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
amount: number | string;
|
|
14
|
+
currency?: string;
|
|
15
|
+
paymentItems?: PaymentItem[];
|
|
16
|
+
description?: string;
|
|
17
|
+
onPaymentResult?: (result: PaymentGatewayResult) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Button background color. If not provided, uses variant ('white' or 'black').
|
|
20
|
+
*/
|
|
21
|
+
color?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Button color variant: 'white' (default) or 'black'. Ignored if color is set.
|
|
24
|
+
*/
|
|
25
|
+
variant?: 'white' | 'black';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* A pre-styled button for Peable payments that opens the Payment Gateway
|
|
30
|
+
* - Only black or white by default, but can be customized with the color prop.
|
|
31
|
+
*/
|
|
32
|
+
const PeableButton: React.FC<PeableButtonProps> = ({
|
|
33
|
+
style,
|
|
34
|
+
textStyle,
|
|
35
|
+
text = 'Pay',
|
|
36
|
+
disabled = false,
|
|
37
|
+
color,
|
|
38
|
+
variant = 'white',
|
|
39
|
+
}) => {
|
|
40
|
+
const theme = useTheme();
|
|
41
|
+
const handlePress = () => {
|
|
42
|
+
console.warn('PeableButton: The bottom sheet payment flow has been removed. Provide a custom onPress handler.');
|
|
43
|
+
};
|
|
44
|
+
// Determine background and text color
|
|
45
|
+
const backgroundColor = color || (variant === 'black' ? theme.colors.text : theme.colors.background);
|
|
46
|
+
const textColor = variant === 'black' || (color && isColorDark(color)) ? theme.colors.background : '#1b1f0a';
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<Button
|
|
50
|
+
variant="inverse"
|
|
51
|
+
onPress={handlePress}
|
|
52
|
+
disabled={disabled}
|
|
53
|
+
style={[{ backgroundColor, borderColor: textColor, borderWidth: 1 }, style]}
|
|
54
|
+
textStyle={[{ color: textColor, fontWeight: '700' }, textStyle]}
|
|
55
|
+
icon={<LogoIcon height={16} color={textColor} style={{ marginRight: 6 }} />}
|
|
56
|
+
>
|
|
57
|
+
{text}
|
|
58
|
+
</Button>
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// Helper to determine if a color is dark (simple luminance check)
|
|
63
|
+
function isColorDark(hex: string) {
|
|
64
|
+
let c = hex.replace('#', '');
|
|
65
|
+
if (c.length === 3) c = c.split('').map(x => x + x).join('');
|
|
66
|
+
if (c.length !== 6) return false;
|
|
67
|
+
const r = Number.parseInt(c.substr(0, 2), 16);
|
|
68
|
+
const g = Number.parseInt(c.substr(2, 2), 16);
|
|
69
|
+
const b = Number.parseInt(c.substr(4, 2), 16);
|
|
70
|
+
// Perceived luminance
|
|
71
|
+
return (0.299 * r + 0.587 * g + 0.114 * b) < 150;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export default PeableButton;
|
|
@@ -71,7 +71,7 @@ const PaymentDetailsStep: React.FC<PaymentDetailsStepProps> = ({
|
|
|
71
71
|
<View style={styles.section}>
|
|
72
72
|
<Text style={styles.sectionTitle}>
|
|
73
73
|
{paymentMethod === 'card' ? t('payment.details.cardDetails') :
|
|
74
|
-
paymentMethod === 'oxy' ? t('payment.details.
|
|
74
|
+
paymentMethod === 'oxy' ? t('payment.details.peable') :
|
|
75
75
|
paymentMethod === 'faircoin' ? t('payment.details.faircoinPayment') : t('payment.details.paymentDetails')}
|
|
76
76
|
</Text>
|
|
77
77
|
|
|
@@ -149,16 +149,16 @@ const PaymentDetailsStep: React.FC<PaymentDetailsStepProps> = ({
|
|
|
149
149
|
)}
|
|
150
150
|
|
|
151
151
|
{paymentMethod === 'oxy' && (
|
|
152
|
-
<View style={styles.
|
|
153
|
-
<View style={styles.
|
|
154
|
-
<Ionicons name="wallet-outline" size={64} color={colors.primary} style={styles.
|
|
155
|
-
<Text style={styles.
|
|
156
|
-
<Text style={styles.
|
|
157
|
-
<View style={styles.
|
|
158
|
-
<Text style={styles.
|
|
152
|
+
<View style={styles.peableCard}>
|
|
153
|
+
<View style={styles.peableContent}>
|
|
154
|
+
<Ionicons name="wallet-outline" size={64} color={colors.primary} style={styles.peableIcon} />
|
|
155
|
+
<Text style={styles.peableMainTitle}>{t('payment.details.peable')}</Text>
|
|
156
|
+
<Text style={styles.peableSubtitle}>{t('payment.details.payWithWallet')}</Text>
|
|
157
|
+
<View style={styles.peableBalanceBox}>
|
|
158
|
+
<Text style={styles.peableBalanceText}>{t('payment.details.balance', { balance: '⊜ 123.45' })}</Text>
|
|
159
159
|
</View>
|
|
160
160
|
<View style={{ height: 18 }} />
|
|
161
|
-
<Text style={styles.
|
|
161
|
+
<Text style={styles.peableWaiting}>{t('payment.details.readyToProcess')}</Text>
|
|
162
162
|
</View>
|
|
163
163
|
</View>
|
|
164
164
|
)}
|