@opexa/portal-components 0.0.832 → 0.0.834
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/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
- package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .js +191 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Confirmed.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Confirmed.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Failed.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Failed.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Form.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Form.js +126 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/GeneratingQrCode.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/GeneratingQrCode.js +10 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDeposit.js +12 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDepositContext.d.ts +17 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDepositContext.js +2 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QrCodeGenerated.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QrCodeGenerated.js +41 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/useQRPHDeposit.d.ts +13 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/useQRPHDeposit.js +91 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/Disclaimer/DisclaimerV2.d.ts +7 -0
- package/dist/components/Disclaimer/DisclaimerV2.js +9 -4
- package/dist/components/KYC/KYCSumsub.d.ts +0 -1
- package/dist/components/KYC/KYCSumsub.js +5 -5
- package/dist/components/KYC/KYCVerificationStatus.lazy.js +4 -7
- package/dist/components/KYC/KycOpenOnHomeMount.d.ts +1 -0
- package/dist/components/KYC/KycOpenOnHomeMount.js +5 -1
- package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
- package/dist/icons/AlertTriangleFillIcon.d.ts +2 -0
- package/dist/icons/AlertTriangleFillIcon.js +4 -0
- package/dist/icons/LinkBrokenIcon.d.ts +2 -0
- package/dist/icons/LinkBrokenIcon.js +4 -0
- package/dist/ui/Avatar/Avatar.d.ts +9 -9
- package/dist/ui/Avatar/avatar.recipe.d.ts +3 -3
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- 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 +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +144 -144
- package/dist/ui/Menu/menu.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/Popover/Popover.d.ts +154 -154
- package/dist/ui/Popover/popover.recipe.d.ts +14 -14
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- 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.anatomy.d.ts +1 -1
- 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/dist/ui/Tooltip/Tooltip.d.ts +30 -30
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
- package/package.json +1 -1
- package/dist/components/Banner/Banner.client.d.ts +0 -12
- package/dist/components/Banner/Banner.client.js +0 -49
- package/dist/components/PortalProvider/AndroidOnlyComponents.d.ts +0 -1
- package/dist/components/PortalProvider/AndroidOnlyComponents.js +0 -12
- package/dist/components/SignIn/utils.d.ts +0 -8
- package/dist/components/SignIn/utils.js +0 -26
- package/dist/constants/Branches.d.ts +0 -2
- package/dist/constants/Branches.js +0 -42
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
- package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
- package/dist/third-parties/FacebookPixel/api.js +0 -1
- package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
- package/dist/third-parties/FacebookPixel/index.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
- package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
- package/dist/third-parties/index.d.ts +0 -2
- package/dist/third-parties/index.js +0 -2
|
@@ -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: "
|
|
5
|
+
status: "failed" | "waiting" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
6
6
|
verify: () => void;
|
|
7
7
|
reset: () => void;
|
|
8
8
|
deposit: Deposit | null;
|
package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const QRPHDepositContext: (props: {
|
|
2
2
|
value: {
|
|
3
3
|
view: "form" | "qrCode";
|
|
4
|
-
status: "
|
|
4
|
+
status: "failed" | "waiting" | "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 QRPHDepositContext: (props: {
|
|
|
14
14
|
children?: import("react").ReactNode | undefined;
|
|
15
15
|
}) => React.ReactNode, useQRPHDepositContext: () => {
|
|
16
16
|
view: "form" | "qrCode";
|
|
17
|
-
status: "
|
|
17
|
+
status: "failed" | "waiting" | "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 UseQRPHDepositReturn = ReturnType<typeof useQRPHDeposit>;
|
|
3
3
|
export declare function useQRPHDeposit(): {
|
|
4
4
|
view: "form" | "qrCode";
|
|
5
|
-
status: "
|
|
5
|
+
status: "failed" | "waiting" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
6
6
|
verify: () => void;
|
|
7
7
|
reset: () => void;
|
|
8
8
|
deposit: Deposit | null;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ImageProps } from 'next/image';
|
|
2
|
+
interface ClassNameEntries {
|
|
3
|
+
root?: string;
|
|
4
|
+
playResponsiblyDescriptionContainer?: string;
|
|
5
|
+
buttonsContainer?: string;
|
|
6
|
+
}
|
|
2
7
|
export interface DisclaimerV2Props {
|
|
3
8
|
version: '2';
|
|
4
9
|
logo: ImageProps['src'];
|
|
@@ -6,5 +11,7 @@ export interface DisclaimerV2Props {
|
|
|
6
11
|
responsibleGamingLogo?: ImageProps['src'];
|
|
7
12
|
pagcorLogo?: ImageProps['src'];
|
|
8
13
|
redirectUrlOnNoConsent?: string;
|
|
14
|
+
className?: string | ClassNameEntries;
|
|
9
15
|
}
|
|
10
16
|
export declare function DisclaimerV2(props: DisclaimerV2Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Capacitor } from '@capacitor/core';
|
|
4
|
+
import { isString } from 'lodash-es';
|
|
4
5
|
import Image from 'next/image';
|
|
5
6
|
import { useState } from 'react';
|
|
6
7
|
import { twMerge } from 'tailwind-merge';
|
|
@@ -11,6 +12,7 @@ import { useSignOutMutation } from '../../client/hooks/useSignOutMutation.js';
|
|
|
11
12
|
import { getSession } from '../../client/services/getSession.js';
|
|
12
13
|
import { BIOMETRIC_STORAGE_KEY } from '../../client/utils/biometric.js';
|
|
13
14
|
import { AlertCircleIcon } from '../../icons/AlertCircleIcon.js';
|
|
15
|
+
import { AlertTriangleFillIcon } from '../../icons/AlertTriangleFillIcon.js';
|
|
14
16
|
import { CheckIcon } from '../../icons/CheckIcon.js';
|
|
15
17
|
import pagcorLogo from '../../images/pagcor2.png';
|
|
16
18
|
import responsibleGamingLogo from '../../images/responsible-gaming.png';
|
|
@@ -23,6 +25,9 @@ import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
|
23
25
|
import { getSessionQueryKey } from '../../utils/queryKeys.js';
|
|
24
26
|
import { useDisclaimer } from './useDisclaimer.js';
|
|
25
27
|
export function DisclaimerV2(props) {
|
|
28
|
+
const classNames = isString(props.className)
|
|
29
|
+
? { root: props.className }
|
|
30
|
+
: (props.className ?? {});
|
|
26
31
|
const disclaimer = useDisclaimer({
|
|
27
32
|
showInLogin: true,
|
|
28
33
|
});
|
|
@@ -48,12 +53,12 @@ export function DisclaimerV2(props) {
|
|
|
48
53
|
sessionStorage.clear();
|
|
49
54
|
},
|
|
50
55
|
});
|
|
51
|
-
return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className:
|
|
56
|
+
return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: twMerge('flex h-full scrollbar:h-2 scrollbar:w-2 w-full flex-col items-start gap-y-4 overflow-y-auto scrollbar-thumb:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent pt-3xl lg:mx-auto lg:h-auto lg:max-h-[85vh] lg:w-[500px] lg:rounded-xl', classNames.root), "aria-label": `${props.siteName} Player Disclaimer`, "aria-describedby": "disclaimer-description", children: [_jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: props.pagcorLogo ?? pagcorLogo, alt: "PAGCOR logo", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false, unoptimized: true })] }), _jsx("div", { className: "px-3xl text-sm", children: "The following individuals are prohibited from registering or participating in this online gaming platform." }), _jsx("div", { className: "w-full grow px-3xl", children: _jsxs(Dialog.Description, { className: "space-y-2 text-sm", id: "disclaimer-description", children: [_jsxs("ul", { className: "space-y-1.5 text-left", "aria-label": "Restricted persons list", children: [_jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Persons below the legal gambling age of 21."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Any government official or employee directly involved in the operations of the government or its agencies."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Member of the Armed Forces of the Philippines, including the Army, Navy, Air Force and the Philippine National Police."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Individuals listed in PAGCOR's National Database of Restricted Persons (NDRP)"] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Holders of a valid Gaming Employment License (GEL)"] })] }), _jsxs(Checkbox.Root, { checked: checked, onCheckedChange: (e) => {
|
|
52
57
|
if (e.checked === 'indeterminate')
|
|
53
58
|
return;
|
|
54
59
|
globalStore.termsOfUse.setAccepted(e.checked);
|
|
55
60
|
globalStore.responsibleGaming.setAccepted(e.checked);
|
|
56
|
-
}, className:
|
|
61
|
+
}, className: "pt-2.5 pb-2", children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsxs(Checkbox.Label, { children: ["I have read and agreed to", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", onClick: () => {
|
|
57
62
|
globalStore.termsOfUse.setOpen(true);
|
|
58
63
|
globalStore.termsOfUse.setNext('DISCLAIMER');
|
|
59
64
|
disclaimer.close();
|
|
@@ -61,7 +66,7 @@ export function DisclaimerV2(props) {
|
|
|
61
66
|
globalStore.responsibleGaming.setOpen(true);
|
|
62
67
|
globalStore.responsibleGaming.setNext('DISCLAIMER');
|
|
63
68
|
disclaimer.close();
|
|
64
|
-
}, children: "Responsible Gaming" })] }), _jsx(Checkbox.HiddenInput, {})] }), showWarning && (_jsxs("div", { className: twMerge('mt-2 flex max-w-full items-center gap-2 break-words rounded-md text-text-error-primary text-xs'), role: "alert", "aria-live": "assertive", children: [_jsx(AlertCircleIcon, { className: "size-5 text-text-error-primary" }), "Please agree to ", props.siteName, "'s Terms of Use and Responsible Gaming to proceed."] })), _jsx("div", { children: "Funds or credits in the account of any individual found ineligible to participate will be forfeited and turned over to the government as required by law" }), _jsxs("div", { children: ["Self Exclusion Site:", _jsxs("a", { href: "https://osea.pagcor.ph/", target: "_blank", rel: "noopener noreferrer", className: "break-all text-brand-400", children: [' ', "osea.pagcor.ph"] })] }), _jsxs("div", { children: ["
|
|
69
|
+
}, children: "Responsible Gaming" })] }), _jsx(Checkbox.HiddenInput, {})] }), showWarning && (_jsxs("div", { className: twMerge('mt-2 flex max-w-full items-center gap-2 break-words rounded-md text-text-error-primary text-xs'), role: "alert", "aria-live": "assertive", children: [_jsx(AlertCircleIcon, { className: "size-5 text-text-error-primary" }), "Please agree to ", props.siteName, "'s Terms of Use and Responsible Gaming to proceed."] })), _jsx("div", { children: "Funds or credits in the account of any individual found ineligible to participate will be forfeited and turned over to the government as required by law" }), _jsxs("div", { children: [_jsxs("div", { className: "mx-auto mb-3 flex items-center justify-center gap-2 font-semibold text-[22px] text-brand-400", children: [_jsx(AlertTriangleFillIcon, { className: "size-6 shrink-0 text-brand-400", "aria-hidden": "true" }), _jsx("span", { children: "PLAY RESPONSIBLY" })] }), _jsxs("div", { className: twMerge('mb-5 flex w-full flex-col items-center rounded-xl bg-bg-secondary p-3', classNames.playResponsiblyDescriptionContainer), children: [_jsx("div", { className: "mb-4 text-center text-sm", children: "Gambling may be fun, but it's easy to fall into addiction if you don't limit yourself." }), _jsx("div", { className: "text-center text-sm", children: "Be a responsible player. Know your limits and recognize when to step back." })] })] }), _jsxs("div", { children: ["Self Exclusion Site:", _jsxs("a", { href: "https://osea.pagcor.ph/", target: "_blank", rel: "noopener noreferrer", className: "break-all text-brand-400", children: [' ', "osea.pagcor.ph"] })] }), _jsxs("div", { children: [_jsx("div", { children: "Visit PAGCOR\u2019s Responsible Gaming Program to know more:" }), _jsxs("a", { href: "https://www.pagcor.ph/regulatory/responsible-gaming.php", target: "_blank", rel: "noopener noreferrer", className: "break-all text-brand-400", children: [' ', "pagcor.ph/regulatory/responsible-gaming.php"] })] })] }) }), _jsxs("div", { className: twMerge('mt-2 flex w-full gap-3 border-bg-secondary border-t px-3xl py-3xl', classNames.buttonsContainer), children: [_jsx(Button, { type: "button", onClick: async () => {
|
|
65
70
|
if (Capacitor.isNativePlatform()) {
|
|
66
71
|
const session = await getQueryClient().fetchQuery({
|
|
67
72
|
queryKey: getSessionQueryKey(),
|
|
@@ -90,6 +95,6 @@ export function DisclaimerV2(props) {
|
|
|
90
95
|
return;
|
|
91
96
|
}
|
|
92
97
|
disclaimer.close();
|
|
93
|
-
}, children: "Accept" })] })] }) })] }) }));
|
|
98
|
+
}, children: "I Accept" })] })] }) })] }) }));
|
|
94
99
|
}
|
|
95
100
|
const Circle = () => (_jsx("div", { children: _jsx("div", { className: "flex h-4.5 w-4.5 items-center justify-center rounded-full border border-brand-400", children: _jsx("div", { className: "h-3 w-3 rounded-full bg-brand-400" }) }) }));
|
|
@@ -9,6 +9,7 @@ import { useGenerateSumsubVerificationTokenMutation } from '../../client/hooks/u
|
|
|
9
9
|
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
10
10
|
import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
|
|
11
11
|
import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
|
|
12
|
+
import { XIcon } from '../../icons/XIcon.js';
|
|
12
13
|
import { Dialog } from '../../ui/Dialog/index.js';
|
|
13
14
|
import { Portal } from '../../ui/Portal/index.js';
|
|
14
15
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
@@ -43,17 +44,16 @@ export function KYCSumsub(props) {
|
|
|
43
44
|
mutate,
|
|
44
45
|
session?.status,
|
|
45
46
|
]);
|
|
46
|
-
return (_jsxs(_Fragment, { children: [_jsx(Dialog.Root, { open: open &&
|
|
47
|
-
session?.status === 'authenticated' &&
|
|
48
|
-
!isVerified &&
|
|
49
|
-
!props.bypassKycCheck, onOpenChange: (details) => {
|
|
47
|
+
return (_jsxs(_Fragment, { children: [_jsx(Dialog.Root, { open: open && session?.status === 'authenticated' && !isVerified, onOpenChange: (details) => {
|
|
50
48
|
setOpen(details.open);
|
|
51
49
|
}, lazyMount: true, unmountOnExit: true, closeOnEscape: false, initialFocusEl: () => dummyRef.current, closeOnInteractOutside: false, onInteractOutside: (e) => {
|
|
52
50
|
e.preventDefault();
|
|
53
51
|
}, restoreFocus: false, onExitComplete: () => {
|
|
54
52
|
reset();
|
|
55
53
|
setToken('');
|
|
56
|
-
}, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: "flex items-center justify-center lg:block", children: _jsxs(Dialog.Content, { className: "mx-auto flex h-full w-[calc(100%-2rem)] flex-col items-center justify-center overflow-y-auto rounded-md bg-transparent p-0 lg:mt-3 lg:block lg:h-auto lg:w-[600px]", children: [_jsx("div", { ref: dummyRef, tabIndex: -1 }),
|
|
54
|
+
}, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: "flex items-center justify-center lg:block", children: _jsxs(Dialog.Content, { className: "mx-auto flex h-full w-[calc(100%-2rem)] flex-col items-center justify-center overflow-y-auto rounded-md bg-transparent p-0 lg:mt-3 lg:block lg:h-auto lg:w-[600px]", children: [_jsx("div", { ref: dummyRef, tabIndex: -1 }), props.isSkippable && (_jsx(Dialog.Context, { children: (api) => (_jsx("div", { className: "mb-3 flex w-full justify-end", children: _jsxs("button", { type: "button", className: "rounded-full bg-white/10 p-1 text-white backdrop-blur-md", onClick: () => {
|
|
55
|
+
api.setOpen(false);
|
|
56
|
+
}, children: [_jsx(XIcon, { className: "!size-5" }), _jsx("span", { className: "sr-only", children: "Close" })] }) })) })), token && (_jsx("div", { className: "max-h-[calc(96dvh-2rem)] w-full overflow-y-auto lg:h-auto lg:max-h-[unset]", children: _jsx(Sumsub, { accessToken: token, expirationHandler: async () => {
|
|
57
57
|
const token = await mutateAsync();
|
|
58
58
|
return token;
|
|
59
59
|
}, config: {
|
|
@@ -19,18 +19,15 @@ export function KYCVerificationStatus() {
|
|
|
19
19
|
const icons = status === 'PENDING' ? bellIcon : alertIcon;
|
|
20
20
|
return (_jsx(Dialog.Root, { open: globalStore.kycVerificationStatus.open, onOpenChange: (details) => {
|
|
21
21
|
globalStore.kycVerificationStatus.setOpen(details.open);
|
|
22
|
-
}, closeOnEscape: false, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsx(Dialog.Content, { className: "mx-auto h-fit w-[450px] overflow-y-auto rounded-lg bg-bg-primary", children: _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mb-3xl grid h-[200px] w-full place-items-center rounded-xl bg-radial from-40% from-button-primary-bg to-bg-brand-solid", children: _jsx(Image, { src: icons, alt: "icon", className: "w-60 object-contain", draggable: false, width: 120, height: 120 }) }), _jsxs("h1", { className: "font-semibold text-lg text-white", children: [status === 'PENDING' && 'Verification in Progress', status === 'REJECTED' && 'Verification Rejected', status === 'UNVERIFIED'
|
|
23
|
-
(status === 'CREATED' && 'Verification Required')] }), _jsxs("p", { className: "mb-4xl text-[#94969C] text-base", children: [status === 'PENDING' &&
|
|
22
|
+
}, closeOnEscape: false, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsx(Dialog.Content, { className: "mx-auto h-fit w-[450px] overflow-y-auto rounded-lg bg-bg-primary", children: _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mb-3xl grid h-[200px] w-full place-items-center rounded-xl bg-radial from-40% from-button-primary-bg to-bg-brand-solid", children: _jsx(Image, { src: icons, alt: "icon", className: "w-60 object-contain", draggable: false, width: 120, height: 120 }) }), _jsxs("h1", { className: "font-semibold text-lg text-white", children: [status === 'PENDING' && 'Verification in Progress', status === 'REJECTED' && 'Verification Rejected', status === 'UNVERIFIED' && 'Verification Required'] }), _jsxs("p", { className: "mb-4xl text-[#94969C] text-base", children: [status === 'PENDING' &&
|
|
24
23
|
`Your account verification is still under review. Please wait
|
|
25
24
|
until it's approved before you can continue playing or
|
|
26
25
|
depositing.`, status === 'REJECTED' &&
|
|
27
|
-
'Your account verification was not approved. Please resubmit your verification to regain full access.', status === 'UNVERIFIED'
|
|
28
|
-
(status === '
|
|
29
|
-
'Your account is not yet verified. Please complete the verification process to continue playing or depositing.')] }), _jsxs(Button, { variant: "solid", className: twMerge('mb-2 w-full', status === 'PENDING' && 'hidden'), onClick: () => {
|
|
26
|
+
'Your account verification was not approved. Please resubmit your verification to regain full access.', status === 'UNVERIFIED' &&
|
|
27
|
+
'Your account is not yet verified. Please complete the verification process to continue playing or depositing.'] }), _jsxs(Button, { variant: "solid", className: twMerge('mb-2 w-full', status === 'PENDING' && 'hidden'), onClick: () => {
|
|
30
28
|
globalStore.kycVerificationStatus.setOpen(false);
|
|
31
29
|
globalStore.kyc.setOpen(true);
|
|
32
|
-
}, children: [status === 'REJECTED' && 'Resubmit Verification', status === 'UNVERIFIED'
|
|
33
|
-
(status === 'CREATED' && 'Verify Now')] }), _jsx(Button, { type: "button", variant: "outline", onClick: () => {
|
|
30
|
+
}, children: [status === 'REJECTED' && 'Resubmit Verification', status === 'UNVERIFIED' && 'Verify Now'] }), _jsx(Button, { type: "button", variant: "outline", onClick: () => {
|
|
34
31
|
globalStore.kycVerificationStatus.setOpen(false);
|
|
35
32
|
}, children: "Close" })] }) }) })] }) }));
|
|
36
33
|
}
|
|
@@ -9,7 +9,6 @@ export function KycOpenOnHomeMount(props) {
|
|
|
9
9
|
const { data: verification, isLoading: verificationLoading } = useMemberVerificationQuery();
|
|
10
10
|
const { data: account, isLoading: accountLoading } = useAccountQuery();
|
|
11
11
|
const isVerificationLocked = account?.status === 'VERIFICATION_LOCKED';
|
|
12
|
-
const isPending = account?.verificationStatus === 'PENDING';
|
|
13
12
|
const isRejected = verification?.status === 'REJECTED';
|
|
14
13
|
const isUnverified = verification === null ||
|
|
15
14
|
verification?.status === 'UNVERIFIED' ||
|
|
@@ -20,6 +19,10 @@ export function KycOpenOnHomeMount(props) {
|
|
|
20
19
|
verification?.status === 'PENDING' ||
|
|
21
20
|
verification?.status === 'VERIFIED'; //add default value on null return
|
|
22
21
|
useEffect(() => {
|
|
22
|
+
// If bypass is enabled, do nothing.
|
|
23
|
+
if (props.bypassKycCheck) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
23
26
|
if (!verificationLoading && !accountLoading) {
|
|
24
27
|
const shouldShowReminder = Boolean(props.isSkippable);
|
|
25
28
|
const hasSeenKycModal = sessionStorage.getItem('hasSeenKycModal');
|
|
@@ -69,6 +72,7 @@ export function KycOpenOnHomeMount(props) {
|
|
|
69
72
|
isUnverified,
|
|
70
73
|
isKycCompleted,
|
|
71
74
|
props.isSkippable,
|
|
75
|
+
props.bypassKycCheck,
|
|
72
76
|
]);
|
|
73
77
|
return null;
|
|
74
78
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { addHours } from 'date-fns';
|
|
3
3
|
import { clamp } from 'lodash-es';
|
|
4
|
+
import { useSearchParams } from 'next/navigation';
|
|
4
5
|
import { useLocalStorage, useTimeout } from 'usehooks-ts';
|
|
5
6
|
import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
|
|
6
7
|
export function CXDTokenObserver() {
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const [cxd, setCxd, removeCxd] = useLocalStorage('
|
|
8
|
+
const searchParams = useSearchParams();
|
|
9
|
+
const cxdToken = searchParams.get('cxd');
|
|
10
|
+
const accountQuery = useAccountQuery();
|
|
11
|
+
const account = accountQuery.data;
|
|
12
|
+
const [cxd, setCxd, removeCxd] = useLocalStorage('WebPortalCellxpertCxd', null);
|
|
12
13
|
const now = new Date();
|
|
14
|
+
const shouldTimeoutRun = cxdToken && account;
|
|
13
15
|
const removeCxdUntilInMs = cxd?.timestamp
|
|
14
16
|
? clamp(cxd.timestamp - now.getTime(), 0, Infinity)
|
|
15
17
|
: 0;
|
|
16
18
|
useTimeout(() => {
|
|
17
|
-
const isSame = cxd?.cxd ===
|
|
19
|
+
const isSame = cxd?.cxd === cxdToken;
|
|
18
20
|
if (!isSame) {
|
|
19
21
|
const extendedTimestamp = addHours(new Date(), 6).getTime();
|
|
20
22
|
setCxd({
|
|
21
|
-
cxd:
|
|
23
|
+
cxd: cxdToken,
|
|
22
24
|
timestamp: extendedTimestamp,
|
|
23
25
|
});
|
|
24
26
|
}
|
|
25
|
-
},
|
|
26
|
-
useTimeout(() =>
|
|
27
|
-
removeCxd();
|
|
28
|
-
}, account ? removeCxdUntilInMs : null);
|
|
27
|
+
}, shouldTimeoutRun ? 100 : null);
|
|
28
|
+
useTimeout(() => removeCxd(), shouldTimeoutRun ? removeCxdUntilInMs : null);
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function AlertTriangleFillIcon(props) {
|
|
3
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", viewBox: "0 0 24 24", ...props, children: _jsx("path", { fill: "currentColor", d: "M12 1.67c.955 0 1.845.467 2.39 1.247l.105.16l8.114 13.548a2.914 2.914 0 0 1-2.307 4.363l-.195.008H3.882a2.914 2.914 0 0 1-2.582-4.2l.099-.185l8.11-13.538A2.91 2.91 0 0 1 12 1.67M12.01 15l-.127.007a1 1 0 0 0 0 1.986L12 17l.127-.007a1 1 0 0 0 0-1.986zM12 8a1 1 0 0 0-.993.883L11 9v4l.007.117a1 1 0 0 0 1.986 0L13 13V9l-.007-.117A1 1 0 0 0 12 8" }) }));
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function LinkBrokenIcon(props) {
|
|
3
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", ...props, children: _jsx("path", { d: "M8.5 15.5L15.5 8.49998M9 4V2M15 20V22M4 9H2M20 15H22M4.91421 4.91421L3.5 3.5M19.0858 19.0857L20.5 20.4999M12 17.6568L9.87871 19.7781C8.31662 21.3402 5.78396 21.3402 4.22186 19.7781C2.65976 18.216 2.65976 15.6833 4.22186 14.1212L6.34318 11.9999M17.6569 11.9999L19.7782 9.87859C21.3403 8.31649 21.3403 5.78383 19.7782 4.22174C18.2161 2.65964 15.6835 2.65964 14.1214 4.22174L12 6.34306", stroke: "#FEDF89", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
|
|
4
|
+
}
|
|
@@ -6,21 +6,21 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
6
6
|
fallback: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
}, Record<"image" | "
|
|
9
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, undefined, {
|
|
10
10
|
size: {
|
|
11
11
|
md: {
|
|
12
12
|
root: string;
|
|
13
13
|
fallback: string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
}, Record<"image" | "
|
|
16
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
17
17
|
size: {
|
|
18
18
|
md: {
|
|
19
19
|
root: string;
|
|
20
20
|
fallback: string;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
}, Record<"image" | "
|
|
23
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
24
24
|
export declare const Image: import("react").ComponentType<import("@ark-ui/react").Assign<Avatar.ImageProps & import("react").RefAttributes<HTMLImageElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
25
25
|
size: {
|
|
26
26
|
md: {
|
|
@@ -28,21 +28,21 @@ export declare const Image: import("react").ComponentType<import("@ark-ui/react"
|
|
|
28
28
|
fallback: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
}, Record<"image" | "
|
|
31
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, undefined, {
|
|
32
32
|
size: {
|
|
33
33
|
md: {
|
|
34
34
|
root: string;
|
|
35
35
|
fallback: string;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
}, Record<"image" | "
|
|
38
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
39
39
|
size: {
|
|
40
40
|
md: {
|
|
41
41
|
root: string;
|
|
42
42
|
fallback: string;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
}, Record<"image" | "
|
|
45
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
46
46
|
export declare const Fallback: import("react").ComponentType<import("@ark-ui/react").Assign<Avatar.FallbackProps & import("react").RefAttributes<HTMLSpanElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
47
47
|
size: {
|
|
48
48
|
md: {
|
|
@@ -50,19 +50,19 @@ export declare const Fallback: import("react").ComponentType<import("@ark-ui/rea
|
|
|
50
50
|
fallback: string;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
}, Record<"image" | "
|
|
53
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, undefined, {
|
|
54
54
|
size: {
|
|
55
55
|
md: {
|
|
56
56
|
root: string;
|
|
57
57
|
fallback: string;
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
-
}, Record<"image" | "
|
|
60
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
61
61
|
size: {
|
|
62
62
|
md: {
|
|
63
63
|
root: string;
|
|
64
64
|
fallback: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
-
}, Record<"image" | "
|
|
67
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
68
68
|
export declare const Context: (props: Avatar.ContextProps) => import("react").ReactNode;
|
|
@@ -5,18 +5,18 @@ export declare const avatarRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
5
5
|
fallback: string;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
}, Record<"image" | "
|
|
8
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, undefined, {
|
|
9
9
|
size: {
|
|
10
10
|
md: {
|
|
11
11
|
root: string;
|
|
12
12
|
fallback: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
}, Record<"image" | "
|
|
15
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
16
16
|
size: {
|
|
17
17
|
md: {
|
|
18
18
|
root: string;
|
|
19
19
|
fallback: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
}, Record<"image" | "
|
|
22
|
+
}, Record<"image" | "root" | "fallback", string | string[]>, undefined, unknown, unknown, undefined>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Checkbox } from '@ark-ui/react/checkbox';
|
|
2
2
|
export declare const withContext: <Props extends {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
}>(Component: import("react").ComponentType<Props>, slot: "label" | "
|
|
4
|
+
}>(Component: import("react").ComponentType<Props>, slot: "label" | "root" | "indicator" | "group" | "control") => import("react").ComponentType<import("@ark-ui/react").Assign<Props, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
5
5
|
size: {
|
|
6
6
|
md: {
|
|
7
7
|
control: string;
|
|
@@ -15,7 +15,7 @@ export declare const withContext: <Props extends {
|
|
|
15
15
|
gray: {};
|
|
16
16
|
neutral: {};
|
|
17
17
|
};
|
|
18
|
-
}, Record<"label" | "
|
|
18
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, {
|
|
19
19
|
size: {
|
|
20
20
|
md: {
|
|
21
21
|
control: string;
|
|
@@ -29,7 +29,7 @@ export declare const withContext: <Props extends {
|
|
|
29
29
|
gray: {};
|
|
30
30
|
neutral: {};
|
|
31
31
|
};
|
|
32
|
-
}, Record<"label" | "
|
|
32
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
33
33
|
size: {
|
|
34
34
|
md: {
|
|
35
35
|
control: string;
|
|
@@ -43,9 +43,9 @@ export declare const withContext: <Props extends {
|
|
|
43
43
|
gray: {};
|
|
44
44
|
neutral: {};
|
|
45
45
|
};
|
|
46
|
-
}, Record<"label" | "
|
|
46
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, unknown, unknown, undefined>>>>>, withProvider: <Props extends {
|
|
47
47
|
[x: string]: any;
|
|
48
|
-
}>(Component: import("react").ComponentType<Props>, slot: "label" | "
|
|
48
|
+
}>(Component: import("react").ComponentType<Props>, slot: "label" | "root" | "indicator" | "group" | "control") => import("react").ComponentType<import("@ark-ui/react").Assign<Props, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
49
49
|
size: {
|
|
50
50
|
md: {
|
|
51
51
|
control: string;
|
|
@@ -59,7 +59,7 @@ export declare const withContext: <Props extends {
|
|
|
59
59
|
gray: {};
|
|
60
60
|
neutral: {};
|
|
61
61
|
};
|
|
62
|
-
}, Record<"label" | "
|
|
62
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, {
|
|
63
63
|
size: {
|
|
64
64
|
md: {
|
|
65
65
|
control: string;
|
|
@@ -73,7 +73,7 @@ export declare const withContext: <Props extends {
|
|
|
73
73
|
gray: {};
|
|
74
74
|
neutral: {};
|
|
75
75
|
};
|
|
76
|
-
}, Record<"label" | "
|
|
76
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
77
77
|
size: {
|
|
78
78
|
md: {
|
|
79
79
|
control: string;
|
|
@@ -87,7 +87,7 @@ export declare const withContext: <Props extends {
|
|
|
87
87
|
gray: {};
|
|
88
88
|
neutral: {};
|
|
89
89
|
};
|
|
90
|
-
}, Record<"label" | "
|
|
90
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
91
91
|
export declare const Root: import("react").ComponentType<import("@ark-ui/react").Assign<Checkbox.RootProps & import("react").RefAttributes<HTMLLabelElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
92
92
|
size: {
|
|
93
93
|
md: {
|
|
@@ -102,7 +102,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
102
102
|
gray: {};
|
|
103
103
|
neutral: {};
|
|
104
104
|
};
|
|
105
|
-
}, Record<"label" | "
|
|
105
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, {
|
|
106
106
|
size: {
|
|
107
107
|
md: {
|
|
108
108
|
control: string;
|
|
@@ -116,7 +116,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
116
116
|
gray: {};
|
|
117
117
|
neutral: {};
|
|
118
118
|
};
|
|
119
|
-
}, Record<"label" | "
|
|
119
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
120
120
|
size: {
|
|
121
121
|
md: {
|
|
122
122
|
control: string;
|
|
@@ -130,7 +130,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
130
130
|
gray: {};
|
|
131
131
|
neutral: {};
|
|
132
132
|
};
|
|
133
|
-
}, Record<"label" | "
|
|
133
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
134
134
|
export declare const Control: import("react").ComponentType<import("@ark-ui/react").Assign<Checkbox.ControlProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
135
135
|
size: {
|
|
136
136
|
md: {
|
|
@@ -145,7 +145,7 @@ export declare const Control: import("react").ComponentType<import("@ark-ui/reac
|
|
|
145
145
|
gray: {};
|
|
146
146
|
neutral: {};
|
|
147
147
|
};
|
|
148
|
-
}, Record<"label" | "
|
|
148
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, {
|
|
149
149
|
size: {
|
|
150
150
|
md: {
|
|
151
151
|
control: string;
|
|
@@ -159,7 +159,7 @@ export declare const Control: import("react").ComponentType<import("@ark-ui/reac
|
|
|
159
159
|
gray: {};
|
|
160
160
|
neutral: {};
|
|
161
161
|
};
|
|
162
|
-
}, Record<"label" | "
|
|
162
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
163
163
|
size: {
|
|
164
164
|
md: {
|
|
165
165
|
control: string;
|
|
@@ -173,7 +173,7 @@ export declare const Control: import("react").ComponentType<import("@ark-ui/reac
|
|
|
173
173
|
gray: {};
|
|
174
174
|
neutral: {};
|
|
175
175
|
};
|
|
176
|
-
}, Record<"label" | "
|
|
176
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
177
177
|
export declare const Group: import("react").ComponentType<import("@ark-ui/react").Assign<Checkbox.GroupProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
178
178
|
size: {
|
|
179
179
|
md: {
|
|
@@ -188,7 +188,7 @@ export declare const Group: import("react").ComponentType<import("@ark-ui/react"
|
|
|
188
188
|
gray: {};
|
|
189
189
|
neutral: {};
|
|
190
190
|
};
|
|
191
|
-
}, Record<"label" | "
|
|
191
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, {
|
|
192
192
|
size: {
|
|
193
193
|
md: {
|
|
194
194
|
control: string;
|
|
@@ -202,7 +202,7 @@ export declare const Group: import("react").ComponentType<import("@ark-ui/react"
|
|
|
202
202
|
gray: {};
|
|
203
203
|
neutral: {};
|
|
204
204
|
};
|
|
205
|
-
}, Record<"label" | "
|
|
205
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
206
206
|
size: {
|
|
207
207
|
md: {
|
|
208
208
|
control: string;
|
|
@@ -216,7 +216,7 @@ export declare const Group: import("react").ComponentType<import("@ark-ui/react"
|
|
|
216
216
|
gray: {};
|
|
217
217
|
neutral: {};
|
|
218
218
|
};
|
|
219
|
-
}, Record<"label" | "
|
|
219
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
220
220
|
export declare const Indicator: import("react").ComponentType<import("@ark-ui/react").Assign<Checkbox.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
221
221
|
size: {
|
|
222
222
|
md: {
|
|
@@ -231,7 +231,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
|
|
|
231
231
|
gray: {};
|
|
232
232
|
neutral: {};
|
|
233
233
|
};
|
|
234
|
-
}, Record<"label" | "
|
|
234
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, {
|
|
235
235
|
size: {
|
|
236
236
|
md: {
|
|
237
237
|
control: string;
|
|
@@ -245,7 +245,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
|
|
|
245
245
|
gray: {};
|
|
246
246
|
neutral: {};
|
|
247
247
|
};
|
|
248
|
-
}, Record<"label" | "
|
|
248
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
249
249
|
size: {
|
|
250
250
|
md: {
|
|
251
251
|
control: string;
|
|
@@ -259,7 +259,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
|
|
|
259
259
|
gray: {};
|
|
260
260
|
neutral: {};
|
|
261
261
|
};
|
|
262
|
-
}, Record<"label" | "
|
|
262
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
263
263
|
export declare const Label: import("react").ComponentType<import("@ark-ui/react").Assign<Checkbox.LabelProps & import("react").RefAttributes<HTMLSpanElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
264
264
|
size: {
|
|
265
265
|
md: {
|
|
@@ -274,7 +274,7 @@ export declare const Label: import("react").ComponentType<import("@ark-ui/react"
|
|
|
274
274
|
gray: {};
|
|
275
275
|
neutral: {};
|
|
276
276
|
};
|
|
277
|
-
}, Record<"label" | "
|
|
277
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, {
|
|
278
278
|
size: {
|
|
279
279
|
md: {
|
|
280
280
|
control: string;
|
|
@@ -288,7 +288,7 @@ export declare const Label: import("react").ComponentType<import("@ark-ui/react"
|
|
|
288
288
|
gray: {};
|
|
289
289
|
neutral: {};
|
|
290
290
|
};
|
|
291
|
-
}, Record<"label" | "
|
|
291
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
292
292
|
size: {
|
|
293
293
|
md: {
|
|
294
294
|
control: string;
|
|
@@ -302,6 +302,6 @@ export declare const Label: import("react").ComponentType<import("@ark-ui/react"
|
|
|
302
302
|
gray: {};
|
|
303
303
|
neutral: {};
|
|
304
304
|
};
|
|
305
|
-
}, Record<"label" | "
|
|
305
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
306
306
|
export declare const HiddenInput: import("react").ForwardRefExoticComponent<Checkbox.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
307
307
|
export declare const Context: (props: Checkbox.ContextProps) => import("react").ReactNode;
|