@opexa/portal-components 0.0.44 → 0.0.46

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 (78) hide show
  1. package/dist/client/hooks/index.d.ts +1 -0
  2. package/dist/client/hooks/index.js +1 -0
  3. package/dist/client/hooks/useCreateGCashDepositMutation.js +2 -1
  4. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +2 -1
  5. package/dist/client/hooks/useCreateMayaDepositMutation.js +2 -1
  6. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +2 -1
  7. package/dist/client/hooks/useCreateQRPHDepositMutation.js +2 -1
  8. package/dist/client/hooks/useMobileNumberParser.d.ts +1 -0
  9. package/dist/client/hooks/useMobileNumberParser.js +17 -6
  10. package/dist/client/hooks/useUpdateAccountMutation.d.ts +3 -0
  11. package/dist/client/hooks/useUpdateAccountMutation.js +61 -0
  12. package/dist/components/AccountInfo/AccountInfo.js +116 -8
  13. package/dist/components/AccountSecurity/AccountSecurity.js +121 -5
  14. package/dist/components/AccountVerification/AccountVerification.js +33 -6
  15. package/dist/components/BetRecords/BetRecords.js +2 -2
  16. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  17. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  18. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  19. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  20. package/dist/components/KYC/AccountVerificationContext.d.ts +14 -0
  21. package/dist/components/KYC/AccountVerificationContext.js +27 -0
  22. package/dist/components/KYC/KYC.d.ts +1 -1
  23. package/dist/components/KYC/KYC.js +12 -1
  24. package/dist/components/KYC/KYCContext.d.ts +1 -0
  25. package/dist/components/KYC/KYCContext.js +3 -0
  26. package/dist/components/KYC/KYCTrigger.d.ts +5 -0
  27. package/dist/components/KYC/KYCTrigger.js +14 -0
  28. package/dist/components/KYC/VerificationCapture.d.ts +1 -0
  29. package/dist/components/KYC/VerificationCapture.js +28 -0
  30. package/dist/components/KYC/VerificationComplete.d.ts +1 -0
  31. package/dist/components/KYC/VerificationComplete.js +9 -0
  32. package/dist/components/KYC/VerificationDetails.d.ts +1 -0
  33. package/dist/components/KYC/VerificationDetails.js +38 -0
  34. package/dist/components/KYC/index.d.ts +1 -0
  35. package/dist/components/KYC/index.js +1 -0
  36. package/dist/components/KYC/useKYC.d.ts +6 -0
  37. package/dist/components/KYC/useKYC.js +8 -0
  38. package/dist/components/TransactionRecords/DepositRecordsTable.js +2 -1
  39. package/dist/components/TransactionRecords/TransactionRecords.js +1 -2
  40. package/dist/components/TransactionRecords/TransactionRecordsTable.js +2 -1
  41. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +2 -1
  42. package/dist/components/index.d.ts +0 -1
  43. package/dist/components/index.js +0 -1
  44. package/dist/styles/theme.css +1 -2
  45. package/dist/tsconfig.build.tsbuildinfo +1 -1
  46. package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
  47. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
  48. package/dist/ui/Badge/Badge.d.ts +12 -12
  49. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  50. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  51. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  52. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  53. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  54. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  55. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  56. package/dist/ui/Combobox/Combobox.d.ts +238 -238
  57. package/dist/ui/Combobox/combobox.recipe.d.ts +17 -17
  58. package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
  59. package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
  60. package/dist/ui/Dialog/Dialog.d.ts +55 -55
  61. package/dist/ui/Dialog/dialog.recipe.d.ts +5 -5
  62. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  63. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  64. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  65. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  66. package/dist/ui/Popover/Popover.d.ts +88 -88
  67. package/dist/ui/Popover/popover.recipe.d.ts +8 -8
  68. package/dist/ui/Progress/Progress.d.ts +27 -27
  69. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  70. package/dist/ui/Select/Select.d.ts +45 -45
  71. package/dist/ui/Select/select.recipe.d.ts +3 -3
  72. package/dist/ui/Table/Table.d.ts +21 -21
  73. package/dist/ui/Table/table.recipe.d.ts +3 -3
  74. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  75. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  76. package/dist/utils/queryKeys.d.ts +1 -0
  77. package/dist/utils/queryKeys.js +3 -0
  78. package/package.json +3 -3
@@ -58,7 +58,7 @@ export function BetRecords(props) {
58
58
  }),
59
59
  },
60
60
  });
61
- return (_jsxs("div", { className: twMerge('px-4 pb-3xl pt-4', props.className), children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold leading-tight", children: "Bet Records" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "Review your betting history" }), _jsx("div", { className: "mt-lg", children: _jsxs(SegmentGroup.Root, { value: state.type, onValueChange: (details) => {
61
+ return (_jsxs("div", { className: props.className, children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold leading-tight", children: "Bet Records" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "Review your betting history" }), _jsx("div", { className: "mt-lg", children: _jsxs(SegmentGroup.Root, { value: state.type, onValueChange: (details) => {
62
62
  firstPage();
63
63
  setState({
64
64
  type: z
@@ -134,7 +134,7 @@ export function BetRecords(props) {
134
134
  delimiter: capitalize.delimiters.UNDERSCORE,
135
135
  }) }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, status))) }) }) }) })] })] }), rows.length <= 0 && (_jsx(Empty, { icon: loading ? SpinnerIcon : File02Icon, title: loading ? 'Just a moment' : 'No data', message: loading
136
136
  ? 'Fetching latest bet records...'
137
- : 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: "border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x", children: [_jsx("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Bet Time" }), _jsx(Table.Heading, { children: "Settlement Time" }), _jsx(Table.Heading, { children: "Bet Content" }), _jsx(Table.Heading, { children: "Odds" }), _jsx(Table.Heading, { children: "Bet Amount" }), _jsx(Table.Heading, { children: "Valid Bet" }), _jsx(Table.Heading, { children: "Settled Amount" }), _jsx(Table.Heading, { children: "Jackpot Contribution" }), _jsx(Table.Heading, { children: "Jackpot Payout" }), _jsx(Table.Heading, { children: "Bet Status" }), _jsx(Table.Heading, { children: "Game Name" }), _jsx(Table.Heading, { children: "Vendor Round ID" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsxs(Table.Cell, { className: "!py-1", children: [_jsx("div", { className: "leading-tight", children: format(data.dateTimeCreated, 'MM/dd/yyyy', {
137
+ : 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: twMerge('mt-3xl', 'border-y', 'border-border-primary', 'relative', 'left-1/2', 'right-1/2', '-mx-[50dvw]', 'w-dvw', 'lg:-mx-0', 'lg:-ml-0', 'lg:left-0', 'lg:right-0', 'lg:w-full', 'lg:rounded-xl', 'lg:border-x'), children: [_jsx("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Bet Time" }), _jsx(Table.Heading, { children: "Settlement Time" }), _jsx(Table.Heading, { children: "Bet Content" }), _jsx(Table.Heading, { children: "Odds" }), _jsx(Table.Heading, { children: "Bet Amount" }), _jsx(Table.Heading, { children: "Valid Bet" }), _jsx(Table.Heading, { children: "Settled Amount" }), _jsx(Table.Heading, { children: "Jackpot Contribution" }), _jsx(Table.Heading, { children: "Jackpot Payout" }), _jsx(Table.Heading, { children: "Bet Status" }), _jsx(Table.Heading, { children: "Game Name" }), _jsx(Table.Heading, { children: "Vendor Round ID" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsxs(Table.Cell, { className: "!py-1", children: [_jsx("div", { className: "leading-tight", children: format(data.dateTimeCreated, 'MM/dd/yyyy', {
138
138
  in: tz(localeInfo.timezone),
139
139
  }) }), _jsx("div", { className: "text-text-tertiary-600 leading-tight", children: format(data.dateTimeCreated, 'hh:mm a', {
140
140
  in: tz(localeInfo.timezone),
@@ -1,5 +1,5 @@
1
1
  export declare const OnlineBankDepositContext: import("react").Context<{
2
- view: "form" | "vca";
2
+ view: "vca" | "form";
3
3
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
4
4
  verify: () => void;
5
5
  reset: () => void;
@@ -10,7 +10,7 @@ export declare const OnlineBankDepositContext: import("react").Context<{
10
10
  }) => void;
11
11
  } | null>;
12
12
  export declare const useOnlineBankDepositContext: () => {
13
- view: "form" | "vca";
13
+ view: "vca" | "form";
14
14
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
15
15
  verify: () => void;
16
16
  reset: () => void;
@@ -1,7 +1,7 @@
1
1
  import type { Deposit } from '@opexa/portal-sdk-core';
2
2
  export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
3
3
  export declare function useOnlineBankDeposit(): {
4
- view: "form" | "vca";
4
+ view: "vca" | "form";
5
5
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
@@ -1,5 +1,5 @@
1
1
  export declare const QRPHDepositContext: import("react").Context<{
2
- view: "form" | "qrCode";
2
+ view: "qrCode" | "form";
3
3
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
4
4
  verify: () => void;
5
5
  reset: () => void;
@@ -10,7 +10,7 @@ export declare const QRPHDepositContext: import("react").Context<{
10
10
  }) => void;
11
11
  } | null>;
12
12
  export declare const useQRPHDepositContext: () => {
13
- view: "form" | "qrCode";
13
+ view: "qrCode" | "form";
14
14
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
15
15
  verify: () => void;
16
16
  reset: () => void;
@@ -1,7 +1,7 @@
1
1
  import type { Deposit } from '@opexa/portal-sdk-core';
2
2
  export type UseQRPHDepositReturn = ReturnType<typeof useQRPHDeposit>;
3
3
  export declare function useQRPHDeposit(): {
4
- view: "form" | "qrCode";
4
+ view: "qrCode" | "form";
5
5
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
@@ -0,0 +1,14 @@
1
+ type Step = 1 | 2 | 3 | (number & {});
2
+ interface UseAccountVerificationReturn {
3
+ step: Step;
4
+ setStep: (step: Step) => void;
5
+ started: boolean;
6
+ setStarted: (started: boolean) => void;
7
+ completed: boolean;
8
+ setCompleted: (completed: boolean) => void;
9
+ reset: () => void;
10
+ }
11
+ export declare function useAccountVerification(): UseAccountVerificationReturn;
12
+ export declare const AccountVerificationContext: import("react").Context<UseAccountVerificationReturn | null>;
13
+ export declare function useAccountVerificationContext(): UseAccountVerificationReturn;
14
+ export {};
@@ -0,0 +1,27 @@
1
+ import { createContext, useContext, useState } from 'react';
2
+ import invariant from 'tiny-invariant';
3
+ export function useAccountVerification() {
4
+ const [step, setStep] = useState(1);
5
+ const [started, setStarted] = useState(false);
6
+ const [completed, setCompleted] = useState(false);
7
+ function reset() {
8
+ setStep(1);
9
+ setStarted(false);
10
+ setCompleted(false);
11
+ }
12
+ return {
13
+ step,
14
+ setStep,
15
+ started,
16
+ setStarted,
17
+ completed,
18
+ setCompleted,
19
+ reset,
20
+ };
21
+ }
22
+ export const AccountVerificationContext = createContext(null);
23
+ export function useAccountVerificationContext() {
24
+ const context = useContext(AccountVerificationContext);
25
+ invariant(context);
26
+ return context;
27
+ }
@@ -1 +1 @@
1
- export declare function KYC(): null;
1
+ export declare function KYC(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,14 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Portal } from '@ark-ui/react';
4
+ import { useShallow } from 'zustand/shallow';
5
+ import { useGlobalStore } from '../../client/hooks/index.js';
6
+ import { Dialog } from '../../ui/index.js';
1
7
  export function KYC() {
2
- return null;
8
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
9
+ kyc: ctx.kyc,
10
+ })));
11
+ return (_jsx(Dialog.Root, { open: globalStore.kyc.open, onOpenChange: (details) => {
12
+ globalStore.kyc.setOpen(details.open);
13
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsx(Dialog.Content, { children: "Hello" }) })] }) }));
3
14
  }
@@ -0,0 +1 @@
1
+ export declare function KYCContext(): null;
@@ -0,0 +1,3 @@
1
+ export function KYCContext() {
2
+ return null;
3
+ }
@@ -0,0 +1,5 @@
1
+ import type { ComponentPropsWithRef } from 'react';
2
+ export interface KYCTriggerProps extends ComponentPropsWithRef<'button'> {
3
+ asChild?: boolean;
4
+ }
5
+ export declare function KYCTrigger(props: KYCTriggerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { ark } from '@ark-ui/react';
4
+ import { useShallow } from 'zustand/shallow';
5
+ import { useGlobalStore } from '../../client/hooks/index.js';
6
+ export function KYCTrigger(props) {
7
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
8
+ kyc: ctx.kyc,
9
+ })));
10
+ return (_jsx(ark.button, { type: "button", ...props, onClick: (e) => {
11
+ globalStore.kyc.setOpen(true);
12
+ return props.onClick?.(e);
13
+ }, "data-state": globalStore.kyc.open ? 'open' : 'closed' }));
14
+ }
@@ -0,0 +1 @@
1
+ export declare function VerificationCapture(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { noop } from 'lodash-es';
3
+ import Image from 'next/image';
4
+ import { ArrowLeftIcon, CheckIcon, XIcon } from '../../icons/index.js';
5
+ import uploadId from '../../images/capture-id-banner.png';
6
+ import selfie from '../../images/capture-selfie-banner.png';
7
+ import { Button, Checkbox, Field, Progress } from '../../ui/index.js';
8
+ import { useAccountVerificationContext } from './AccountVerificationContext.js';
9
+ export function VerificationCapture() {
10
+ const context = useAccountVerificationContext();
11
+ if (!context.started)
12
+ return null;
13
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "grid grid-cols-4 items-center", children: [_jsxs("button", { className: "text-text-tertiary-600 flex gap-sm text-sm font-semibold", disabled: context.step <= 1, onClick: () => context.setStep(context.step - 1), children: [_jsx(ArrowLeftIcon, { className: "size-5" }), "Back"] }), _jsxs("div", { className: "col-span-2 flex justify-center gap-2", children: [_jsx(Progress.Root, { value: context.step >= 2 ? 100 : context.step >= 1 ? 50 : 0, onValueChange: noop, className: "w-22.5 shrink-0", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { value: context.completed ? 100 : context.step >= 3 ? 50 : 0, onValueChange: noop, className: "w-22.5 shrink-0", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) })] })] }), context.step === 1 && _jsx(Step1, {}), context.step === 2 && _jsx(Step2, {}), context.step === 3 && _jsx(Step3, {})] }));
14
+ }
15
+ function Step1() {
16
+ const context = useAccountVerificationContext();
17
+ return (_jsxs(_Fragment, { children: [_jsx("p", { className: "mt-2xl text-center text-2xl font-semibold", children: "Prepare to upload your ID" }), _jsxs("div", { className: "border-border-secondary bg-bg-primary-alt shadow-xs mt-6 rounded-2xl border", children: [_jsxs("div", { className: "px-4 py-5", children: [_jsx(Image, { src: uploadId, alt: "", className: "h-auto w-full", width: 600, height: 352 }), _jsxs("ul", { className: "mt-2xl space-y-3", children: [_jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Upload front side of your ID"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Take a photo in a well lit room"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(XIcon, { className: "text-text-featured-icon-light-error size-6" }), "Don't edit image of your ID"] })] })] }), _jsx("div", { className: "border-border-secondary border-t px-xl py-lg", children: _jsx(Button, { size: "sm", onClick: () => context.setStep(2), children: "Continue" }) })] })] }));
18
+ }
19
+ function Step2() {
20
+ const context = useAccountVerificationContext();
21
+ return (_jsxs(_Fragment, { children: [_jsx("p", { className: "mt-2xl text-center text-2xl font-semibold", children: "Take a selfie holding your ID" }), _jsxs("div", { className: "border-border-secondary bg-bg-primary-alt shadow-xs mt-6 rounded-2xl border", children: [_jsxs("div", { className: "px-4 py-5", children: [_jsx(Image, { src: selfie, alt: "", className: "h-auto w-full", width: 600, height: 352 }), _jsxs("ul", { className: "mt-2xl space-y-3", children: [_jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Face and ID must be clearly visible"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Take a photo in a well lit room"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(XIcon, { className: "text-text-featured-icon-light-error size-6" }), "No hats, sunglasses, or masks"] })] })] }), _jsx("div", { className: "border-border-secondary border-t px-xl py-lg", children: _jsx(Button, { size: "sm", onClick: () => context.setStep(3), children: "Continue" }) })] })] }));
22
+ }
23
+ function Step3() {
24
+ const context = useAccountVerificationContext();
25
+ return (_jsxs(_Fragment, { children: [_jsx("p", { className: "mt-2xl text-center text-2xl font-semibold", children: "Enter your basic and work-related information" }), _jsxs("div", { className: "border-border-secondary bg-bg-primary-alt shadow-xs mt-6 rounded-2xl border", children: [_jsxs("div", { className: "px-4 py-5", children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Permanent address" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-6", children: [_jsx(Field.Label, { children: "Current address" }), _jsx(Field.Input, {})] }), _jsxs(Checkbox.Root, { className: "mt-sm", children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { children: "Same as permanent address" }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Field.Root, { className: "mt-6", children: [_jsx(Field.Label, { children: "Source of income" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-6", children: [_jsx(Field.Label, { children: "Nature of work" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-6", children: [_jsx(Field.Label, { children: "Place of birth" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-6", children: [_jsx(Field.Label, { children: "Nationality" }), _jsx(Field.Input, {})] })] }), _jsx("div", { className: "border-border-secondary border-t px-xl py-lg", children: _jsx(Button, { size: "sm", onClick: () => {
26
+ context.setCompleted(true);
27
+ }, children: "Continue" }) })] })] }));
28
+ }
@@ -0,0 +1 @@
1
+ export declare function VerificationComplete(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Portal } from '@ark-ui/react';
3
+ import { CheckCircleIcon } from '../../icons/index.js';
4
+ import { AlertDialog, Button } from '../../ui/index.js';
5
+ import { useAccountVerificationContext } from './AccountVerificationContext.js';
6
+ export function VerificationComplete() {
7
+ const context = useAccountVerificationContext();
8
+ return (_jsx(AlertDialog.Root, { open: context.completed, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(AlertDialog.Backdrop, { className: "bg-bg-overlay/75 backdrop-blur-sm" }), _jsx(AlertDialog.Positioner, { children: _jsxs(AlertDialog.Content, { className: "mx-auto w-[21.438rem] p-xl", children: [_jsx("div", { className: "bg-bg-success-secondary text-text-featured-icon-light-success mx-auto flex size-12 items-center justify-center rounded-full", children: _jsx(CheckCircleIcon, {}) }), _jsx(AlertDialog.Title, { className: "mt-3 text-center", children: "Submission Successful" }), _jsx(AlertDialog.Description, { className: "text-text-tertiary-600 text-center", children: "Your documents have been submitted successfully. They\u2019re now under review, and you\u2019ll receive a notification as soon as your account is verified." }), _jsx(Button, { className: "mt-3xl", onClick: () => context.reset(), children: "Ok" })] }) })] }) }));
9
+ }
@@ -0,0 +1 @@
1
+ export declare function VerificationDetails(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { ark } from '@ark-ui/react';
3
+ import { twMerge } from 'tailwind-merge';
4
+ import { useMemberVerificationQuery, useProfileCompletionQuery, } from '../../client/hooks/index.js';
5
+ import { AlertCircleIcon, CheckVerified02Icon, CreditCard02Icon, FaceIdIcon, FileCheck02Icon, FileSearch02Icon, FileX02Icon, Globe05Icon, } from '../../icons/index.js';
6
+ import { Button } from '../../ui/index.js';
7
+ import { useAccountVerificationContext } from './AccountVerificationContext.js';
8
+ export function VerificationDetails() {
9
+ const context = useAccountVerificationContext();
10
+ const profileCompletionQuery = useProfileCompletionQuery();
11
+ const profileCompletion = profileCompletionQuery.data;
12
+ const verificationQuery = useMemberVerificationQuery();
13
+ const verification = verificationQuery.data;
14
+ const empty = verification == null;
15
+ const pending = verification?.status === 'PENDING';
16
+ const success = verification?.status === 'VERIFIED' || verification?.status === 'APPROVED';
17
+ const failed = verification?.status === 'REJECTED' ||
18
+ verification?.status === 'UNVERIFIED';
19
+ if (context.started)
20
+ return null;
21
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-start gap-8", children: [_jsxs("div", { className: "grow", children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verify your identity" }), _jsx("p", { className: "text-text-tertiary-600 text-sm", children: "Complete personal verification to unlock all features and enhance account security." })] }), _jsx(ark.svg, { asChild: true, className: twMerge('size-6', profileCompletion?.accountVerification
22
+ ? 'text-text-success-primary'
23
+ : 'text-text-warning-primary'), children: profileCompletion?.accountVerification ? (_jsx(CheckVerified02Icon, {})) : (_jsx(AlertCircleIcon, {})) })] }), _jsxs("div", { className: "shadow-xs border-border-secondary bg-bg-primary-alt mt-5 rounded-xl border", children: [_jsx("div", { className: "px-4 py-5", children: _jsxs("ul", { className: "space-y-lg", children: [_jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(FileCheck02Icon, {}), "Basic Information"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(Globe05Icon, {}), "Proof of address"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(CreditCard02Icon, {}), "Government ID"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(FaceIdIcon, {}), "Facial Verification"] })] }) }), _jsx("div", { className: "border-border-secondary flex justify-end border-t px-4 py-3 lg:py-xl", children: _jsx(Button, { size: "sm", onClick: () => {
24
+ context.setStarted(true);
25
+ }, className: "w-full lg:w-fit", children: "Verify Now" }) })] }), success && _jsx(VerificationSuccess, {}), pending && _jsx(VerificationInProgress, {}), failed && _jsx(VerificationFailed, {}), empty && _jsx(VerificationNotSubmitted, {})] }));
26
+ }
27
+ function VerificationNotSubmitted() {
28
+ return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-warning-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-warning-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(AlertCircleIcon, { className: "text-text-warning-primary size-5" }) }) }), _jsx("p", { className: "text-text-tertiary-600 max-w-[800px] text-sm", children: "To serve you better and unlock all features, please provide valid identification documents. This helps protect your account and makes recovery easier if ever needed." })] }));
29
+ }
30
+ function VerificationInProgress() {
31
+ return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-warning-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-warning-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileSearch02Icon, { className: "text-text-warning-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Under review" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "To serve you better and unlock all features, please provide valid identification documents. This helps protect your account and makes recovery easier if ever needed." })] })] }));
32
+ }
33
+ function VerificationSuccess() {
34
+ return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-success-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-success-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileCheck02Icon, { className: "text-text-success-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verification successful" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "Your account has been successfully verified. You now have full access to all features and improved account security." })] })] }));
35
+ }
36
+ function VerificationFailed() {
37
+ return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-error-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-error-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileX02Icon, { className: "text-text-error-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verification failed" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "There was an issue with the verification process. Please try again or contact support for assistance." })] })] }));
38
+ }
@@ -1 +1,2 @@
1
1
  export * from './KYC';
2
+ export * from './KYCTrigger';
@@ -1 +1,2 @@
1
1
  export * from './KYC.js';
2
+ export * from './KYCTrigger.js';
@@ -0,0 +1,6 @@
1
+ type Step = 1 | 2 | 3;
2
+ export declare function useKYC(): {
3
+ step: Step;
4
+ setStep: import("react").Dispatch<import("react").SetStateAction<Step>>;
5
+ };
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { useState } from 'react';
2
+ export function useKYC() {
3
+ const [step, setStep] = useState(1);
4
+ return {
5
+ step,
6
+ setStep,
7
+ };
8
+ }
@@ -4,6 +4,7 @@ import { tz, TZDateMini } from '@date-fns/tz';
4
4
  import {} from '@opexa/portal-sdk-core';
5
5
  import { endOfDay, format, startOfDay } from 'date-fns';
6
6
  import { useState } from 'react';
7
+ import { twMerge } from 'tailwind-merge';
7
8
  import { useDepositRecordsQuery, useInfiniteQueryHelper, useLocaleInfo, } from '../../client/hooks/index.js';
8
9
  import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons/index.js';
9
10
  import { Badge, IconButton, Select, Table } from '../../ui/index.js';
@@ -44,7 +45,7 @@ export function DepositRecordsTable() {
44
45
  setDepositStatus(value.depositStatus);
45
46
  } }), rows.length <= 0 && (_jsx(Empty, { icon: loading ? SpinnerIcon : File02Icon, title: loading ? 'Just a moment' : 'No data', message: loading
46
47
  ? 'Fetching latest deposit records...'
47
- : 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: "border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x", children: [_jsx("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Deposit No." }), _jsx(Table.Heading, { children: "Reference" }), _jsx(Table.Heading, { children: "Deposit Method" }), _jsx(Table.Heading, { children: "Applied Amount" }), _jsx(Table.Heading, { children: "Recieved Amount" }), _jsx(Table.Heading, { children: "Transaction Fee" }), _jsx(Table.Heading, { children: "Deposit Time" }), _jsx(Table.Heading, { children: "Recieved Time" }), _jsx(Table.Heading, { children: "Status" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsx(Table.Cell, { className: "!py-1", children: data.depositNumber }), _jsx(Table.Cell, { className: "!py-1", children: data.reference }), _jsx(Table.Cell, { className: "!py-1", children: capitalize(data.type, {
48
+ : 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: twMerge('mt-3xl', 'border-y', 'border-border-primary', 'relative', 'left-1/2', 'right-1/2', '-mx-[50dvw]', 'w-dvw', 'lg:-mx-0', 'lg:-ml-0', 'lg:left-0', 'lg:right-0', 'lg:w-full', 'lg:rounded-xl', 'lg:border-x'), children: [_jsx("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Deposit No." }), _jsx(Table.Heading, { children: "Reference" }), _jsx(Table.Heading, { children: "Deposit Method" }), _jsx(Table.Heading, { children: "Applied Amount" }), _jsx(Table.Heading, { children: "Recieved Amount" }), _jsx(Table.Heading, { children: "Transaction Fee" }), _jsx(Table.Heading, { children: "Deposit Time" }), _jsx(Table.Heading, { children: "Recieved Time" }), _jsx(Table.Heading, { children: "Status" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsx(Table.Cell, { className: "!py-1", children: data.depositNumber }), _jsx(Table.Cell, { className: "!py-1", children: data.reference }), _jsx(Table.Cell, { className: "!py-1", children: capitalize(data.type, {
48
49
  delimiter: capitalize.delimiters.UNDERSCORE,
49
50
  }) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.amount, {
50
51
  currency: localeInfo.currency.code,
@@ -1,10 +1,9 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { twMerge } from 'tailwind-merge';
4
3
  import { Tabs } from '../../ui/index.js';
5
4
  import { DepositRecordsTable } from './DepositRecordsTable.js';
6
5
  import { TransactionRecordsTable } from './TransactionRecordsTable.js';
7
6
  import { WithdrawalRecordsTable } from './WithdrawalRecordsTable.js';
8
7
  export function TransactionRecords(props) {
9
- return (_jsxs("div", { className: twMerge('px-4 pb-3xl pt-4', props.className), children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold leading-tight", children: "Transaction Records" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "View your transaction records" }), _jsxs(Tabs.Root, { className: "mt-lg", defaultValue: "transactions", lazyMount: true, unmountOnExit: true, children: [_jsxs(Tabs.List, { children: [_jsx(Tabs.Trigger, { value: "transactions", children: "Transactions" }), _jsx(Tabs.Trigger, { value: "deposits", children: "Deposits" }), _jsx(Tabs.Trigger, { value: "withdrawals", children: "Withdrawals" }), _jsx(Tabs.Indicator, {})] }), _jsx("h3", { className: "text-text-secondary-700 mt-3xl text-sm font-semibold", children: "Table" }), _jsx(Tabs.Content, { value: "transactions", className: "mt-xl", children: _jsx(TransactionRecordsTable, {}) }), _jsx(Tabs.Content, { value: "deposits", className: "mt-xl", children: _jsx(DepositRecordsTable, {}) }), _jsx(Tabs.Content, { value: "withdrawals", className: "mt-xl", children: _jsx(WithdrawalRecordsTable, {}) })] })] }));
8
+ return (_jsxs("div", { className: props.className, children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold leading-tight", children: "Transaction Records" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "View your transaction records" }), _jsxs(Tabs.Root, { className: "mt-lg", defaultValue: "transactions", lazyMount: true, unmountOnExit: true, children: [_jsxs(Tabs.List, { children: [_jsx(Tabs.Trigger, { value: "transactions", children: "Transactions" }), _jsx(Tabs.Trigger, { value: "deposits", children: "Deposits" }), _jsx(Tabs.Trigger, { value: "withdrawals", children: "Withdrawals" }), _jsx(Tabs.Indicator, {})] }), _jsx("h3", { className: "text-text-secondary-700 mt-3xl text-sm font-semibold", children: "Table" }), _jsx(Tabs.Content, { value: "transactions", className: "mt-xl", children: _jsx(TransactionRecordsTable, {}) }), _jsx(Tabs.Content, { value: "deposits", className: "mt-xl", children: _jsx(DepositRecordsTable, {}) }), _jsx(Tabs.Content, { value: "withdrawals", className: "mt-xl", children: _jsx(WithdrawalRecordsTable, {}) })] })] }));
10
9
  }
@@ -3,6 +3,7 @@ import { createListCollection, Portal } from '@ark-ui/react';
3
3
  import { tz, TZDateMini } from '@date-fns/tz';
4
4
  import { endOfDay, format, startOfDay } from 'date-fns';
5
5
  import { useState } from 'react';
6
+ import { twMerge } from 'tailwind-merge';
6
7
  import { useInfiniteQueryHelper, useLocaleInfo, useTransactionRecordsQuery, } from '../../client/hooks/index.js';
7
8
  import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons/index.js';
8
9
  import { IconButton, Select, Table } from '../../ui/index.js';
@@ -35,7 +36,7 @@ export function TransactionRecordsTable() {
35
36
  transactionType: true,
36
37
  } }), rows.length <= 0 && (_jsx(Empty, { icon: loading ? SpinnerIcon : File02Icon, title: loading ? 'Just a moment' : 'No data', message: loading
37
38
  ? 'Fetching latest transaction records...'
38
- : 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: "border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x", children: [_jsx("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Transaction Type" }), _jsx(Table.Heading, { children: "Transaction Time" }), _jsx(Table.Heading, { children: "Amount" }), _jsx(Table.Heading, { children: "Current Balance" }), _jsx(Table.Heading, { children: "Reference Number" }), _jsx(Table.Heading, { children: "Content" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsx(Table.Cell, { className: "!py-1", children: capitalize(data.type, {
39
+ : 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: twMerge('mt-3xl', 'border-y', 'border-border-primary', 'relative', 'left-1/2', 'right-1/2', '-mx-[50dvw]', 'w-dvw', 'lg:-mx-0', 'lg:-ml-0', 'lg:left-0', 'lg:right-0', 'lg:w-full', 'lg:rounded-xl', 'lg:border-x'), children: [_jsx("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-b-none border-b lg:rounded-xl", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Transaction Type" }), _jsx(Table.Heading, { children: "Transaction Time" }), _jsx(Table.Heading, { children: "Amount" }), _jsx(Table.Heading, { children: "Current Balance" }), _jsx(Table.Heading, { children: "Reference Number" }), _jsx(Table.Heading, { children: "Content" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsx(Table.Cell, { className: "!py-1", children: capitalize(data.type, {
39
40
  delimiter: capitalize.delimiters.UNDERSCORE,
40
41
  }) }), _jsxs(Table.Cell, { className: "!py-1", children: [_jsx("div", { className: "leading-tight", children: format(data.dateTimeCreated, 'MM/dd/yyyy', {
41
42
  in: tz(localeInfo.timezone),
@@ -3,6 +3,7 @@ import { createListCollection, Portal } from '@ark-ui/react';
3
3
  import { tz, TZDateMini } from '@date-fns/tz';
4
4
  import { endOfDay, format, startOfDay } from 'date-fns';
5
5
  import { useState } from 'react';
6
+ import { twMerge } from 'tailwind-merge';
6
7
  import { useInfiniteQueryHelper, useLocaleInfo, useWithdrawalRecordsQuery, } from '../../client/hooks/index.js';
7
8
  import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons/index.js';
8
9
  import { Badge, IconButton, Select, Table } from '../../ui/index.js';
@@ -43,7 +44,7 @@ export function WithdrawalRecordsTable() {
43
44
  setWithdrawalStatus(value.withdrawalStatus);
44
45
  } }), rows.length <= 0 && (_jsx(Empty, { icon: loading ? SpinnerIcon : File02Icon, title: loading ? 'Just a moment' : 'No data', message: loading
45
46
  ? 'Fetching latest withdrawal records...'
46
- : 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: "border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x", children: [_jsx("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Withdrawal No." }), _jsx(Table.Heading, { children: "Reference" }), _jsx(Table.Heading, { children: "Withdrawal Method" }), _jsx(Table.Heading, { children: "Mobile Number" }), _jsx(Table.Heading, { children: "Withdrawal Amount" }), _jsx(Table.Heading, { children: "Net Amount" }), _jsx(Table.Heading, { children: "Transaction Fee" }), _jsx(Table.Heading, { children: "Bank Name" }), _jsx(Table.Heading, { children: "Withdrawal Time" }), _jsx(Table.Heading, { children: "Status" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsx(Table.Cell, { className: "!py-1", children: data.withdrawalNumber }), _jsx(Table.Cell, { className: "!py-1", children: data.reference }), _jsx(Table.Cell, { className: "!py-1", children: capitalize(data.type, {
47
+ : 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: twMerge('mt-3xl', 'border-y', 'border-border-primary', 'relative', 'left-1/2', 'right-1/2', '-mx-[50dvw]', 'w-dvw', 'lg:-mx-0', 'lg:-ml-0', 'lg:left-0', 'lg:right-0', 'lg:w-full', 'lg:rounded-xl', 'lg:border-x'), children: [_jsx("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Withdrawal No." }), _jsx(Table.Heading, { children: "Reference" }), _jsx(Table.Heading, { children: "Withdrawal Method" }), _jsx(Table.Heading, { children: "Mobile Number" }), _jsx(Table.Heading, { children: "Withdrawal Amount" }), _jsx(Table.Heading, { children: "Net Amount" }), _jsx(Table.Heading, { children: "Transaction Fee" }), _jsx(Table.Heading, { children: "Bank Name" }), _jsx(Table.Heading, { children: "Withdrawal Time" }), _jsx(Table.Heading, { children: "Status" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsx(Table.Cell, { className: "!py-1", children: data.withdrawalNumber }), _jsx(Table.Cell, { className: "!py-1", children: data.reference }), _jsx(Table.Cell, { className: "!py-1", children: capitalize(data.type, {
47
48
  delimiter: capitalize.delimiters.UNDERSCORE,
48
49
  }) }), _jsx(Table.Cell, { className: "!py-1", children: data.recipientMobileNumber }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.amount, {
49
50
  currency: localeInfo.currency.code,
@@ -1,6 +1,5 @@
1
1
  export * from './Account';
2
2
  export * from './AccountInfo';
3
- export * from './AccountPaymentMethods';
4
3
  export * from './AccountSecurity';
5
4
  export * from './AccountVerification';
6
5
  export * from './Banner';
@@ -1,6 +1,5 @@
1
1
  export * from './Account/index.js';
2
2
  export * from './AccountInfo/index.js';
3
- export * from './AccountPaymentMethods/index.js';
4
3
  export * from './AccountSecurity/index.js';
5
4
  export * from './AccountVerification/index.js';
6
5
  export * from './Banner/index.js';
@@ -35,8 +35,7 @@
35
35
  input::-webkit-search-cancel-button,
36
36
  input::-webkit-search-decoration,
37
37
  input::-webkit-search-results-button,
38
- input::-webkit-search-results-decoration,
39
- input::-webkit-calendar-picker-indicator {
38
+ input::-webkit-search-results-decoration {
40
39
  display: none;
41
40
  }
42
41