@opexa/portal-components 0.0.912 → 0.0.915

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 (42) hide show
  1. package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/AurixPayQRPHDepositContext.d.ts +2 -2
  2. package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/useAurixPayQRPHDeposit.d.ts +1 -1
  3. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  4. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  5. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  6. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  7. package/dist/components/DepositWithdrawal/PaymentMethods.js +3 -1
  8. package/dist/components/Disclaimer/DisclaimerV2.js +9 -9
  9. package/dist/schemas/forgotPasswordSchema.d.ts +4 -4
  10. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  11. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  12. package/dist/ui/Badge/Badge.d.ts +12 -12
  13. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  14. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  15. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  16. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  17. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  18. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  19. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  20. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  21. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  22. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  23. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  24. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  25. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  26. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  27. package/dist/ui/Menu/Menu.d.ts +252 -252
  28. package/dist/ui/Menu/menu.recipe.d.ts +14 -14
  29. package/dist/ui/Popover/Popover.d.ts +88 -88
  30. package/dist/ui/Popover/popover.recipe.d.ts +8 -8
  31. package/dist/ui/Progress/Progress.d.ts +27 -27
  32. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  33. package/dist/ui/QrCode/QrCode.d.ts +40 -40
  34. package/dist/ui/QrCode/qrCode.recipe.d.ts +8 -8
  35. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  36. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  37. package/dist/ui/Select/Select.d.ts +45 -45
  38. package/dist/ui/Select/select.recipe.d.ts +3 -3
  39. package/dist/ui/Table/Table.d.ts +21 -21
  40. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  41. package/dist/ui/Table/table.recipe.d.ts +3 -3
  42. package/package.json +3 -2
@@ -1,6 +1,6 @@
1
1
  export declare const AurixPayQRPHDepositContext: (props: {
2
2
  value: {
3
- status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
3
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
4
4
  deposit: import("../../../../types").Deposit | null;
5
5
  errorMessage: {
6
6
  name: string;
@@ -13,7 +13,7 @@ export declare const AurixPayQRPHDepositContext: (props: {
13
13
  } & {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useAurixPayQRPHDepositContext: () => {
16
- status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
16
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
17
17
  deposit: import("../../../../types").Deposit | null;
18
18
  errorMessage: {
19
19
  name: string;
@@ -5,7 +5,7 @@ export interface GenerateQRCodeInput {
5
5
  promo?: string | null;
6
6
  }
7
7
  export declare function useAurixPayQRPHDeposit(): {
8
- status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
8
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
9
9
  deposit: Deposit | null;
10
10
  errorMessage: {
11
11
  name: string;
@@ -1,7 +1,7 @@
1
1
  export declare const OnlineBankDepositContext: (props: {
2
2
  value: {
3
3
  view: "form" | "vca";
4
- status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
4
+ status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
5
5
  verify: () => void;
6
6
  reset: () => void;
7
7
  deposit: import("../../../../types").Deposit | null;
@@ -14,7 +14,7 @@ export declare const OnlineBankDepositContext: (props: {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useOnlineBankDepositContext: () => {
16
16
  view: "form" | "vca";
17
- status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
17
+ status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
18
18
  verify: () => void;
19
19
  reset: () => void;
20
20
  deposit: import("../../../../types").Deposit | null;
@@ -2,7 +2,7 @@ import type { Deposit } from '../../../../types';
2
2
  export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
3
3
  export declare function useOnlineBankDeposit(): {
4
4
  view: "form" | "vca";
5
- status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
5
+ status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
8
8
  deposit: Deposit | null;
@@ -1,6 +1,6 @@
1
1
  export declare const QRPHDepositContext: (props: {
2
2
  value: {
3
- status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
3
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
4
4
  deposit: import("../../../../types").Deposit | null;
5
5
  errorMessage: {
6
6
  name: string;
@@ -13,7 +13,7 @@ export declare const QRPHDepositContext: (props: {
13
13
  } & {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useQRPHDepositContext: () => {
16
- status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
16
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
17
17
  deposit: import("../../../../types").Deposit | null;
18
18
  errorMessage: {
19
19
  name: string;
@@ -5,7 +5,7 @@ export interface GenerateQRCodeInput {
5
5
  promo?: string | null;
6
6
  }
7
7
  export declare function useQRPHDeposit(): {
8
- status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
8
+ status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
9
9
  deposit: Deposit | null;
10
10
  errorMessage: {
11
11
  name: string;
@@ -148,5 +148,7 @@ export function PaymentMethods(props) {
148
148
  : 'bg-white px-sm py-[0.688rem]', option.value.includes('GCASH') && 'bg-[#017EFF]', option.value === 'AIO_PALAWAN_PAY' && 'bg-[#026308]', option.value.includes('MAYA') && 'bg-black'), children: _jsx(Image, { src: option.image, alt: "", width: 200, height: 40, className: twMerge('w-auto', 'h-[1.063rem]', option.value === 'LIBANGAN_PAY_IN' ||
149
149
  option.value === 'VENTAJA_DISBURSEMENT'
150
150
  ? 'h-[2.5rem]'
151
- : '', option.value === 'AIO_GRAB_PAY' && 'h-[3rem] rounded-[4px]', option.value === 'AIO_PALAWAN_PAY' && 'h-[2rem]'), draggable: false }) }), _jsx(Checkbox.Control, { className: "shrink-0", children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.HiddenInput, {})] }, option.value))) })] }));
151
+ : '', (option.value === 'AIO_GRAB_PAY' ||
152
+ option.value === 'AURIX_PAY_GRAB_PAY') &&
153
+ 'h-[3rem] rounded-[4px]', option.value === 'AIO_PALAWAN_PAY' && 'h-[2rem]'), draggable: false }) }), _jsx(Checkbox.Control, { className: "shrink-0", children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.HiddenInput, {})] }, option.value))) })] }));
152
154
  }
@@ -5,7 +5,6 @@ import { isString } from 'lodash-es';
5
5
  import Image from 'next/image';
6
6
  import { useState } from 'react';
7
7
  import { twMerge } from 'tailwind-merge';
8
- import invariant from 'tiny-invariant';
9
8
  import { useShallow } from 'zustand/shallow';
10
9
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
11
10
  import { useSignOutMutation } from '../../client/hooks/useSignOutMutation.js';
@@ -72,14 +71,15 @@ export function DisclaimerV2(props) {
72
71
  queryKey: getSessionQueryKey(),
73
72
  queryFn: async () => getSession(),
74
73
  });
75
- invariant(session.status === 'authenticated');
76
- await unregisterFCMDevice({
77
- type: ['IOS', 'ANDROID'],
78
- }, {
79
- headers: {
80
- Authorization: `Bearer ${session.token}`,
81
- },
82
- });
74
+ if (session.status === 'authenticated') {
75
+ await unregisterFCMDevice({
76
+ type: ['IOS', 'ANDROID'],
77
+ }, {
78
+ headers: {
79
+ Authorization: `Bearer ${session.token}`,
80
+ },
81
+ });
82
+ }
83
83
  }
84
84
  signOutMutation.mutate();
85
85
  if (props.redirectUrlOnNoConsent) {
@@ -9,23 +9,23 @@ export declare const createForgotPasswordSchema: (mobileNumberParser: MobileNumb
9
9
  verificationCode: z.ZodEffects<z.ZodString, string, string>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  password: string;
12
- mobileNumber: string;
13
12
  verificationCode: string;
13
+ mobileNumber: string;
14
14
  confirmPassword: string;
15
15
  }, {
16
16
  password: string;
17
- mobileNumber: string;
18
17
  verificationCode: string;
18
+ mobileNumber: string;
19
19
  confirmPassword: string;
20
20
  }>, {
21
21
  password: string;
22
- mobileNumber: string;
23
22
  verificationCode: string;
23
+ mobileNumber: string;
24
24
  confirmPassword: string;
25
25
  }, {
26
26
  password: string;
27
- mobileNumber: string;
28
27
  verificationCode: string;
28
+ mobileNumber: string;
29
29
  confirmPassword: string;
30
30
  }>;
31
31
  export type ForgotPasswordSchema = z.infer<ReturnType<typeof createForgotPasswordSchema>>;