@opexa/portal-components 0.0.832 → 0.0.833
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/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/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;
|
|
@@ -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 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;
|
|
@@ -12,7 +12,7 @@ export declare const checkboxRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
gray: {};
|
|
13
13
|
neutral: {};
|
|
14
14
|
};
|
|
15
|
-
}, Record<"label" | "
|
|
15
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, {
|
|
16
16
|
size: {
|
|
17
17
|
md: {
|
|
18
18
|
control: string;
|
|
@@ -26,7 +26,7 @@ export declare const checkboxRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
26
26
|
gray: {};
|
|
27
27
|
neutral: {};
|
|
28
28
|
};
|
|
29
|
-
}, Record<"label" | "
|
|
29
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
30
30
|
size: {
|
|
31
31
|
md: {
|
|
32
32
|
control: string;
|
|
@@ -40,4 +40,4 @@ export declare const checkboxRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
40
40
|
gray: {};
|
|
41
41
|
neutral: {};
|
|
42
42
|
};
|
|
43
|
-
}, Record<"label" | "
|
|
43
|
+
}, Record<"label" | "root" | "indicator" | "group" | "control", string | string[]>, undefined, unknown, unknown, undefined>>;
|