@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.
Files changed (75) hide show
  1. package/lib/commonjs/index.js +11 -0
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/ui/client.js +7 -0
  4. package/lib/commonjs/ui/client.js.map +1 -1
  5. package/lib/commonjs/ui/components/OxyPayButton.js +8 -60
  6. package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
  7. package/lib/commonjs/ui/components/PeableButton.js +66 -0
  8. package/lib/commonjs/ui/components/PeableButton.js.map +1 -0
  9. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +10 -10
  10. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  11. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +1 -1
  12. package/lib/commonjs/ui/components/payment/constants.js +2 -2
  13. package/lib/commonjs/ui/components/payment/constants.js.map +1 -1
  14. package/lib/commonjs/ui/components/payment/paymentStyles.js +9 -9
  15. package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
  16. package/lib/commonjs/ui/index.js +7 -0
  17. package/lib/commonjs/ui/index.js.map +1 -1
  18. package/lib/commonjs/ui/server.js +4 -2
  19. package/lib/commonjs/ui/server.js.map +1 -1
  20. package/lib/module/index.js +4 -0
  21. package/lib/module/index.js.map +1 -1
  22. package/lib/module/ui/client.js +3 -0
  23. package/lib/module/ui/client.js.map +1 -1
  24. package/lib/module/ui/components/OxyPayButton.js +5 -56
  25. package/lib/module/ui/components/OxyPayButton.js.map +1 -1
  26. package/lib/module/ui/components/PeableButton.js +62 -0
  27. package/lib/module/ui/components/PeableButton.js.map +1 -0
  28. package/lib/module/ui/components/payment/PaymentDetailsStep.js +10 -10
  29. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  30. package/lib/module/ui/components/payment/PaymentReviewStep.js +1 -1
  31. package/lib/module/ui/components/payment/constants.js +2 -2
  32. package/lib/module/ui/components/payment/constants.js.map +1 -1
  33. package/lib/module/ui/components/payment/paymentStyles.js +9 -9
  34. package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
  35. package/lib/module/ui/index.js +4 -0
  36. package/lib/module/ui/index.js.map +1 -1
  37. package/lib/module/ui/server.js +3 -1
  38. package/lib/module/ui/server.js.map +1 -1
  39. package/lib/typescript/commonjs/index.d.ts +5 -0
  40. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  41. package/lib/typescript/commonjs/ui/client.d.ts +5 -0
  42. package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
  43. package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts +6 -26
  44. package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
  45. package/lib/typescript/commonjs/ui/components/PeableButton.d.ts +29 -0
  46. package/lib/typescript/commonjs/ui/components/PeableButton.d.ts.map +1 -0
  47. package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts +8 -8
  48. package/lib/typescript/commonjs/ui/index.d.ts +5 -0
  49. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  50. package/lib/typescript/commonjs/ui/server.d.ts +2 -0
  51. package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
  52. package/lib/typescript/module/index.d.ts +5 -0
  53. package/lib/typescript/module/index.d.ts.map +1 -1
  54. package/lib/typescript/module/ui/client.d.ts +5 -0
  55. package/lib/typescript/module/ui/client.d.ts.map +1 -1
  56. package/lib/typescript/module/ui/components/OxyPayButton.d.ts +6 -26
  57. package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
  58. package/lib/typescript/module/ui/components/PeableButton.d.ts +29 -0
  59. package/lib/typescript/module/ui/components/PeableButton.d.ts.map +1 -0
  60. package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts +8 -8
  61. package/lib/typescript/module/ui/index.d.ts +5 -0
  62. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  63. package/lib/typescript/module/ui/server.d.ts +2 -0
  64. package/lib/typescript/module/ui/server.d.ts.map +1 -1
  65. package/package.json +3 -3
  66. package/src/index.ts +5 -0
  67. package/src/ui/client.ts +5 -0
  68. package/src/ui/components/OxyPayButton.tsx +6 -71
  69. package/src/ui/components/PeableButton.tsx +74 -0
  70. package/src/ui/components/payment/PaymentDetailsStep.tsx +9 -9
  71. package/src/ui/components/payment/PaymentReviewStep.tsx +1 -1
  72. package/src/ui/components/payment/constants.ts +1 -1
  73. package/src/ui/components/payment/paymentStyles.ts +9 -9
  74. package/src/ui/index.ts +5 -0
  75. 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.oxyPayAccount')}
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: 'Oxy Pay', icon: 'wallet-outline', description: 'Use your Oxy Pay in-app balance.' },
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
- // Oxy Pay styles
197
- oxyPayCard: {
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
- oxyPayContent: {
205
+ peableContent: {
206
206
  alignItems: 'center',
207
207
  width: '100%',
208
208
  },
209
- oxyPayIcon: {
209
+ peableIcon: {
210
210
  marginBottom: 8,
211
211
  },
212
- oxyPayMainTitle: {
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
- oxyPaySubtitle: {
220
+ peableSubtitle: {
221
221
  fontSize: 16,
222
222
  color: colors.textSecondary,
223
223
  textAlign: 'center',
224
224
  marginBottom: 8,
225
225
  },
226
- oxyPayBalanceBox: {
226
+ peableBalanceBox: {
227
227
  backgroundColor: `${colors.primary}22`,
228
228
  borderRadius: 12,
229
229
  padding: 8,
230
230
  marginTop: 8,
231
231
  },
232
- oxyPayBalanceText: {
232
+ peableBalanceText: {
233
233
  color: colors.primary,
234
234
  fontWeight: '600',
235
235
  },
236
- oxyPayWaiting: {
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 OxyPayButton = noopComponent;
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;