@opexa/portal-components 0.0.40 → 0.0.42
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/dist/client/hooks/useCreateOnlineBankDepositMutation.js +4 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +4 -1
- package/dist/client/hooks/useGlobalStore.d.ts +1 -2
- package/dist/client/hooks/useGlobalStore.js +19 -36
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +5 -1
- package/dist/components/Account/Account.d.ts +1 -7
- package/dist/components/Account/Account.js +15 -40
- package/dist/components/AccountInfo/AccountInfo.js +20 -3
- package/dist/components/AccountSecurity/AccountSecurity.js +14 -6
- package/dist/components/AccountVerification/VerificationDetails.js +6 -6
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +21 -16
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +15 -4
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +20 -32
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +20 -41
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +20 -32
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +3 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.js +96 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +16 -16
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +16 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +7 -34
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +9 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +38 -51
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +3 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +96 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +14 -16
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +16 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +7 -34
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +8 -10
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +37 -54
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +3 -3
- package/dist/components/DepositWithdrawal/PaymentMethods.js +4 -3
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +23 -19
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +23 -20
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +23 -25
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +23 -19
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +36 -20
- package/dist/components/GameLaunch/GameLaunch.js +33 -57
- package/dist/components/KYC/KYC.d.ts +1 -0
- package/dist/components/KYC/KYC.js +3 -0
- package/dist/components/KYC/index.d.ts +1 -0
- package/dist/components/KYC/index.js +1 -0
- package/dist/components/Messages/MessageItem.js +12 -7
- package/dist/components/Messages/MessagePopup.js +8 -7
- package/dist/components/PortalProvider/PortalProvider.d.ts +2 -2
- package/dist/components/PortalProvider/PortalProvider.js +8 -5
- package/dist/components/PortalProvider/Providers.d.ts +4 -0
- package/dist/components/PortalProvider/Providers.js +12 -0
- package/dist/components/PortalProvider/Snackbar.d.ts +1 -0
- package/dist/components/PortalProvider/Snackbar.js +21 -0
- package/dist/components/PortalProvider/WebVitals.d.ts +1 -0
- package/dist/components/PortalProvider/WebVitals.js +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/icons/SpinnerIcon.js +1 -1
- package/dist/images/QRPH.png +0 -0
- package/dist/images/gcash.png +0 -0
- package/dist/images/gift.png +0 -0
- package/dist/styles/theme.css +28 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.js +4 -4
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Button/button.recipe.js +1 -1
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Checkbox/checkbox.recipe.js +2 -2
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
- package/dist/ui/Combobox/Combobox.d.ts +196 -196
- package/dist/ui/Combobox/combobox.recipe.d.ts +14 -14
- package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
- package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
- package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/package.json +11 -5
- package/dist/components/AccountVerification/selfie.png +0 -0
- package/dist/components/AccountVerification/upload-id.png +0 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +0 -5
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +0 -5
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +0 -14
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +0 -5
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +0 -18
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +0 -8
- package/dist/components/DepositWithdrawal/MayaSessionExpired.d.ts +0 -1
- package/dist/components/DepositWithdrawal/MayaSessionExpired.js +0 -5
- package/dist/components/PortalProvider/PortalProvider.client.d.ts +0 -2
- package/dist/components/PortalProvider/PortalProvider.client.js +0 -38
- package/dist/images/QRPh.png +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
export interface PortalProviderProps {
|
|
3
3
|
googleAnalyticsId?: string;
|
|
4
4
|
googleTagManagerId?: string;
|
|
@@ -6,4 +6,4 @@ export interface PortalProviderProps {
|
|
|
6
6
|
facebookPixelId?: string;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare function PortalProvider({ children,
|
|
9
|
+
export declare function PortalProvider({ children, facebookPixelId, googleAnalyticsId, googleTagManagerId, googleRecaptchaSiteKey, }: PortalProviderProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { GoogleAnalytics, GoogleTagManager } from '@next/third-parties/google';
|
|
2
3
|
import { dehydrate, HydrationBoundary } from '@tanstack/react-query';
|
|
3
|
-
import {} from 'react';
|
|
4
4
|
import { prefetchAccountQuery, prefetchSessionQuery, prefetchWalletQuery, } from '../../server/utils/index.js';
|
|
5
|
+
import { FacebookPixel, GoogleRecaptcha } from '../../third-parties/index.js';
|
|
5
6
|
import { getQueryClient } from '../../utils/index.js';
|
|
6
|
-
import {
|
|
7
|
-
|
|
7
|
+
import { Providers } from './Providers.js';
|
|
8
|
+
import { Snackbar } from './Snackbar.js';
|
|
9
|
+
import { WebVitals } from './WebVitals.js';
|
|
10
|
+
export async function PortalProvider({ children, facebookPixelId, googleAnalyticsId, googleTagManagerId, googleRecaptchaSiteKey, }) {
|
|
8
11
|
const queryClient = getQueryClient();
|
|
9
12
|
await Promise.all([
|
|
10
13
|
prefetchSessionQuery(),
|
|
11
14
|
prefetchAccountQuery(),
|
|
12
15
|
prefetchWalletQuery(),
|
|
13
16
|
]);
|
|
14
|
-
return (
|
|
17
|
+
return (_jsxs(_Fragment, { children: [_jsx(Providers, { children: _jsx(HydrationBoundary, { state: dehydrate(queryClient), children: children }) }), _jsx(Snackbar, {}), _jsx(WebVitals, {}), facebookPixelId && _jsx(FacebookPixel, { fbId: facebookPixelId }), googleAnalyticsId && _jsx(GoogleAnalytics, { gaId: googleAnalyticsId }), googleTagManagerId && _jsx(GoogleTagManager, { gtmId: googleTagManagerId }), googleRecaptchaSiteKey && (_jsx(GoogleRecaptcha, { siteKey: googleRecaptchaSiteKey }))] }));
|
|
15
18
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { QueryClientProvider } from '@tanstack/react-query';
|
|
4
|
+
import dynamic from 'next/dynamic';
|
|
5
|
+
import { getQueryClient } from '../../utils/index.js';
|
|
6
|
+
const ThemeProvider = dynamic(() => import('next-themes').then((mod) => mod.ThemeProvider), {
|
|
7
|
+
ssr: false,
|
|
8
|
+
});
|
|
9
|
+
export function Providers({ children }) {
|
|
10
|
+
const queryClient = getQueryClient();
|
|
11
|
+
return (_jsx(QueryClientProvider, { client: queryClient, children: _jsx(ThemeProvider, { attribute: "class", storageKey: "WebPortalTheme", enableSystem: false, enableColorScheme: false, defaultTheme: "dark", disableTransitionOnChange: true, children: children }) }));
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Snackbar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Toast, Toaster } from '@ark-ui/react';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import { toaster } from '../../client/utils/index.js';
|
|
6
|
+
import { AlertCircleIcon, XIcon } from '../../icons/index.js';
|
|
7
|
+
export function Snackbar() {
|
|
8
|
+
return (_jsx(Toaster, { toaster: toaster, children: (toast) => (_jsxs(Toast.Root, { className: twMerge('group', 'p-xl', 'border', 'border-border-primary', 'bg-bg-primary-alt', 'flex', 'items-start', 'gap-lg', 'w-[21.438rem]', 'lg:w-[1200px]', 'max-w-full', 'rounded-xl', 'shadow-xs', 'h-[var(--height)]', 'z-[var(--z-index)]', 'scale-[var(--scale)]', 'opacity-[var(--opacity)]', '[translate:var(--x)_var(--y)_0]', 'transition-all', 'duration-300'), children: [_jsxs("div", { className: "flex grow flex-col gap-xl lg:flex-row lg:gap-lg", children: [_jsx("div", { className: twMerge('flex', 'items-center', 'justify-center', 'size-9.5', 'border-2', 'rounded-full', toast.type === 'success' && 'border-text-success-primary/15', toast.type === 'warning' && 'border-text-warning-primary/15', toast.type === 'error' && 'border-text-error-primary/15'), children: _jsx("div", { className: twMerge('flex', 'items-center', 'justify-center', 'size-7', 'border-2', 'rounded-full', toast.type === 'success' && 'border-text-success-primary/35', toast.type === 'warning' && 'border-text-warning-primary/35', toast.type === 'error' && 'border-text-error-primary/35'), children: _jsx(AlertCircleIcon, { className: twMerge('size-5', toast.type === 'success' && 'text-text-success-primary', toast.type === 'warning' && 'text-text-warning-primary', toast.type === 'error' && 'text-text-error-primary') }) }) }), _jsxs("div", { className: "grow text-sm leading-none", children: [_jsx(Toast.Title, { className: "text-text-secondary-700 font-semibold", children: toast.title
|
|
9
|
+
? toast.title
|
|
10
|
+
: toast.type === 'error'
|
|
11
|
+
? 'Error'
|
|
12
|
+
: toast.type === 'warning'
|
|
13
|
+
? 'Warning'
|
|
14
|
+
: 'Success' }), _jsx(Toast.Description, { className: "text-text-tertiary-600 mt-xs", children: toast.description
|
|
15
|
+
? toast.description
|
|
16
|
+
: toast.type === 'error'
|
|
17
|
+
? 'Something went wrong.'
|
|
18
|
+
: toast.type === 'warning'
|
|
19
|
+
? 'Please be cautious.'
|
|
20
|
+
: 'Operation completed successfully.' })] })] }), _jsx(Toast.CloseTrigger, { className: "text-text-secondary-700", children: _jsx(XIcon, { className: "size-5" }) })] }, toast.id)) }));
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WebVitals(): null;
|
package/dist/components/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from './Games/index.js';
|
|
|
16
16
|
export * from './GamesSearch/index.js';
|
|
17
17
|
export * from './JackpotCounter/index.js';
|
|
18
18
|
export * from './Jackpots/index.js';
|
|
19
|
+
export * from './KYC/index.js';
|
|
19
20
|
export * from './Marquee/index.js';
|
|
20
21
|
export * from './Messages/index.js';
|
|
21
22
|
export * from './PortalProvider/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
export function SpinnerIcon(props) {
|
|
4
|
-
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "
|
|
4
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", className: "fill-bg-tertiary" }), _jsx("path", { d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z", className: "fill-text-brand-primary-600", children: _jsx("animateTransform", { attributeName: "transform", dur: "0.75s", repeatCount: "indefinite", type: "rotate", values: "0 12 12;360 12 12" }) })] }));
|
|
5
5
|
}
|
|
Binary file
|
package/dist/images/gcash.png
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/styles/theme.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@layer base {
|
|
5
5
|
html {
|
|
6
|
-
@apply scheme-dark scroll-smooth;
|
|
6
|
+
@apply scheme-light dark:scheme-dark scroll-smooth;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
body {
|
|
@@ -193,9 +193,11 @@
|
|
|
193
193
|
--color-success-400: #47cd89;
|
|
194
194
|
--color-success-700: #067647;
|
|
195
195
|
--color-success-800: #085d3a;
|
|
196
|
+
--color-cyan-950: #0d2d3a;
|
|
196
197
|
|
|
197
198
|
--color-button-primary-bg: #fac515;
|
|
198
199
|
--color-button-primary-fg: #542c0d;
|
|
200
|
+
--color-button-primary-border: #fac515;
|
|
199
201
|
--color-button-secondary-bg: #13161b;
|
|
200
202
|
--color-button-secondary-fg: #fac515;
|
|
201
203
|
--color-button-secondary-border: #fac515;
|
|
@@ -216,6 +218,8 @@
|
|
|
216
218
|
--color-bg-disabled-subtle: #f9fafb;
|
|
217
219
|
--color-bg-success-secondary: #079455;
|
|
218
220
|
--color-bg-overlay: #22262f;
|
|
221
|
+
--color-bg-error-secondary: #d92d20;
|
|
222
|
+
--color-bg-warning-secondary: #dc6803;
|
|
219
223
|
|
|
220
224
|
--color-text-brand: #feee95;
|
|
221
225
|
--color-text-brand-primary-600: #eaaa08;
|
|
@@ -237,9 +241,11 @@
|
|
|
237
241
|
--color-text-success-primary: #17b26a;
|
|
238
242
|
--color-text-success-primary-600: #47cd89;
|
|
239
243
|
--color-text-warning-primary: #f79009;
|
|
244
|
+
--color-text-warning-primary-600: #fdb022;
|
|
240
245
|
--color-text-error-primary: #f04438;
|
|
241
246
|
--color-text-featured-icon-light-success: #abefc6;
|
|
242
247
|
--color-text-featured-icon-light-error: #fecdca;
|
|
248
|
+
--color-text-featured-icon-light-warning: #fedf89;
|
|
243
249
|
|
|
244
250
|
--color-border-primary: #373a41;
|
|
245
251
|
--color-border-secondary: #22262f;
|
|
@@ -351,6 +357,8 @@
|
|
|
351
357
|
--animate-slide-in-right: slide-in-right 400ms cubic-bezier(0.05, 0.7, 0.1, 1);
|
|
352
358
|
--animate-slide-out-right: slide-out-right 250ms
|
|
353
359
|
cubic-bezier(0.3, 0, 0.8, 0.15);
|
|
360
|
+
--animate-slide-in-down: slide-in-down 400ms cubic-bezier(0.05, 0.7, 0.1, 1);
|
|
361
|
+
--animate-slide-out-down: slide-out-down 250ms cubic-bezier(0.3, 0, 0.8, 0.15);
|
|
354
362
|
--animate-marquee: marquee 10s linear infinite forwards;
|
|
355
363
|
|
|
356
364
|
@keyframes fade-in {
|
|
@@ -597,6 +605,24 @@
|
|
|
597
605
|
}
|
|
598
606
|
}
|
|
599
607
|
|
|
608
|
+
@keyframes slide-in-down {
|
|
609
|
+
from {
|
|
610
|
+
transform: translateY(-100%);
|
|
611
|
+
}
|
|
612
|
+
to {
|
|
613
|
+
transform: translateY(0);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
@keyframes slide-out-down {
|
|
618
|
+
from {
|
|
619
|
+
transform: translateY(0);
|
|
620
|
+
}
|
|
621
|
+
to {
|
|
622
|
+
transform: translateY(-100%);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
|
|
600
626
|
@keyframes marquee {
|
|
601
627
|
to {
|
|
602
628
|
transform: translateX(-100%);
|
|
@@ -624,3 +650,4 @@
|
|
|
624
650
|
@custom-variant scrollbar (&::-webkit-scrollbar);
|
|
625
651
|
@custom-variant scrollbar-thumb (&::-webkit-scrollbar-thumb);
|
|
626
652
|
@custom-variant scrollbar-track (&::-webkit-scrollbar-track);
|
|
653
|
+
@custom-variant dark (&:where(.dark, .dark *));
|