@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
|
@@ -87,7 +87,7 @@ const PaymentReviewStep: React.FC<PaymentReviewStepProps> = ({
|
|
|
87
87
|
{paymentMethod === 'oxy' ? (
|
|
88
88
|
<SettingsListItem
|
|
89
89
|
icon={<Ionicons name="wallet-outline" size={20} color={colors.primary} />}
|
|
90
|
-
title={t('payment.review.
|
|
90
|
+
title={t('payment.review.peableAccount')}
|
|
91
91
|
description={t('payment.details.balance', { balance: '⊜ 123.45' })}
|
|
92
92
|
showChevron={false}
|
|
93
93
|
/>
|
|
@@ -2,7 +2,7 @@ import type { PaymentMethod } from './types';
|
|
|
2
2
|
|
|
3
3
|
export const PAYMENT_METHODS: PaymentMethod[] = [
|
|
4
4
|
{ key: 'card', label: 'Credit/Debit Card', icon: 'card-outline', description: 'Pay securely with your credit or debit card.' },
|
|
5
|
-
{ key: 'oxy', label: '
|
|
5
|
+
{ key: 'oxy', label: 'Peable', icon: 'wallet-outline', description: 'Use your Peable in-app balance.' },
|
|
6
6
|
{ key: 'faircoin', label: 'FAIRWallet', icon: 'qr-code-outline', description: 'Pay with FairCoin by scanning a QR code.' },
|
|
7
7
|
];
|
|
8
8
|
|
|
@@ -193,8 +193,8 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
193
193
|
flex: 1,
|
|
194
194
|
marginLeft: 6,
|
|
195
195
|
},
|
|
196
|
-
//
|
|
197
|
-
|
|
196
|
+
// Peable styles
|
|
197
|
+
peableCard: {
|
|
198
198
|
backgroundColor: colors.card ?? colors.background ?? '#fff',
|
|
199
199
|
borderRadius: 16,
|
|
200
200
|
padding: 24,
|
|
@@ -202,14 +202,14 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
202
202
|
alignItems: 'center',
|
|
203
203
|
width: '100%',
|
|
204
204
|
},
|
|
205
|
-
|
|
205
|
+
peableContent: {
|
|
206
206
|
alignItems: 'center',
|
|
207
207
|
width: '100%',
|
|
208
208
|
},
|
|
209
|
-
|
|
209
|
+
peableIcon: {
|
|
210
210
|
marginBottom: 8,
|
|
211
211
|
},
|
|
212
|
-
|
|
212
|
+
peableMainTitle: {
|
|
213
213
|
fontWeight: 'bold',
|
|
214
214
|
fontSize: 28,
|
|
215
215
|
color: colors.text,
|
|
@@ -217,23 +217,23 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
217
217
|
textAlign: 'center',
|
|
218
218
|
letterSpacing: 0.5,
|
|
219
219
|
},
|
|
220
|
-
|
|
220
|
+
peableSubtitle: {
|
|
221
221
|
fontSize: 16,
|
|
222
222
|
color: colors.textSecondary,
|
|
223
223
|
textAlign: 'center',
|
|
224
224
|
marginBottom: 8,
|
|
225
225
|
},
|
|
226
|
-
|
|
226
|
+
peableBalanceBox: {
|
|
227
227
|
backgroundColor: `${colors.primary}22`,
|
|
228
228
|
borderRadius: 12,
|
|
229
229
|
padding: 8,
|
|
230
230
|
marginTop: 8,
|
|
231
231
|
},
|
|
232
|
-
|
|
232
|
+
peableBalanceText: {
|
|
233
233
|
color: colors.primary,
|
|
234
234
|
fontWeight: '600',
|
|
235
235
|
},
|
|
236
|
-
|
|
236
|
+
peableWaiting: {
|
|
237
237
|
fontSize: 14,
|
|
238
238
|
color: colors.textSecondary,
|
|
239
239
|
textAlign: 'center',
|
package/src/ui/index.ts
CHANGED
|
@@ -25,7 +25,12 @@ export { LogoText } from './components/logo/LogoText';
|
|
|
25
25
|
export { RequireOxyAuth } from './components/RequireOxyAuth';
|
|
26
26
|
export type { RequireOxyAuthProps, RequireOxyAuthPrompt } from './components/RequireOxyAuth';
|
|
27
27
|
export { default as FollowButton } from './components/FollowButton';
|
|
28
|
+
export { default as PeableButton } from './components/PeableButton';
|
|
29
|
+
export type { PeableButtonProps } from './components/PeableButton';
|
|
30
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
28
31
|
export { default as OxyPayButton } from './components/OxyPayButton';
|
|
32
|
+
/** @deprecated Use `PeableButtonProps` instead. */
|
|
33
|
+
export type { OxyPayButtonProps } from './components/OxyPayButton';
|
|
29
34
|
export { default as ProfileButton } from './components/ProfileButton';
|
|
30
35
|
|
|
31
36
|
// Context + hooks
|
package/src/ui/server.ts
CHANGED
|
@@ -19,7 +19,9 @@ export const OxySignInButton = noopComponent;
|
|
|
19
19
|
export const LogoIcon = noopComponent;
|
|
20
20
|
export const LogoText = noopComponent;
|
|
21
21
|
export const FollowButton = noopComponent;
|
|
22
|
-
export const
|
|
22
|
+
export const PeableButton = noopComponent;
|
|
23
|
+
/** @deprecated Use `PeableButton` instead. */
|
|
24
|
+
export const OxyPayButton = PeableButton;
|
|
23
25
|
|
|
24
26
|
// Context
|
|
25
27
|
export const useOxy = noopHook;
|