@opexa/portal-components 0.0.663 → 0.0.664

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/components/KYC/KYCVerificationStatus.lazy.js +4 -7
  2. package/dist/components/Messages/Messages.lazy.js +2 -2
  3. package/dist/components/Messages/MessagesPopup.js +1 -1
  4. package/dist/handlers/index.d.ts +2 -2
  5. package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
  6. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  7. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  8. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  9. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  10. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  11. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  12. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  13. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  14. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  15. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  16. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  17. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  18. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  19. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  20. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  21. package/dist/ui/Menu/Menu.d.ts +144 -144
  22. package/dist/ui/Menu/menu.recipe.d.ts +8 -8
  23. package/dist/ui/Popover/Popover.d.ts +55 -55
  24. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  25. package/dist/ui/Select/Select.d.ts +45 -45
  26. package/dist/ui/Select/select.recipe.d.ts +3 -3
  27. package/dist/ui/Table/Table.d.ts +21 -21
  28. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  29. package/dist/ui/Table/table.recipe.d.ts +3 -3
  30. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  31. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  32. package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
  33. package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
  34. package/package.json +1 -1
  35. package/dist/components/Banner/Banner.client.d.ts +0 -12
  36. package/dist/components/Banner/Banner.client.js +0 -49
  37. package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
  38. package/dist/components/DigitainLauncher/Loading.js +0 -5
  39. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
  40. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
  41. package/dist/components/KYC/BasicInformation.d.ts +0 -1
  42. package/dist/components/KYC/BasicInformation.js +0 -101
  43. package/dist/components/KYC/IdentityVerification.d.ts +0 -1
  44. package/dist/components/KYC/IdentityVerification.js +0 -120
  45. package/dist/components/KYC/Indicator.d.ts +0 -1
  46. package/dist/components/KYC/Indicator.js +0 -8
  47. package/dist/components/KYC/KYC.lazy.d.ts +0 -6
  48. package/dist/components/KYC/KYC.lazy.js +0 -45
  49. package/dist/components/KYC/KYCContext.d.ts +0 -6
  50. package/dist/components/KYC/KYCContext.js +0 -2
  51. package/dist/components/KYC/PersonalInformation.d.ts +0 -1
  52. package/dist/components/KYC/PersonalInformation.js +0 -122
  53. package/dist/components/KYC/useKYC.d.ts +0 -25
  54. package/dist/components/KYC/useKYC.js +0 -38
  55. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  56. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  57. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
  58. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
  59. package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
  60. package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
  61. package/dist/components/SessionWatcher/index.d.ts +0 -1
  62. package/dist/components/SessionWatcher/index.js +0 -1
  63. package/dist/components/SignIn/utils.d.ts +0 -8
  64. package/dist/components/SignIn/utils.js +0 -26
  65. package/dist/constants/Branches.d.ts +0 -2
  66. package/dist/constants/Branches.js +0 -42
  67. package/dist/images/responsible-gaming-yellow.png +0 -0
  68. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  69. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  70. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  71. package/dist/third-parties/FacebookPixel/api.js +0 -1
  72. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  73. package/dist/third-parties/FacebookPixel/index.js +0 -1
  74. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  75. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  76. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  77. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  78. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  79. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  80. package/dist/third-parties/index.d.ts +0 -2
  81. package/dist/third-parties/index.js +0 -2
@@ -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 === 'CREATED' &&
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
  }
@@ -106,9 +106,9 @@ export function MessageDetails() {
106
106
  };
107
107
  return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: globalStore.message.open, onOpenChange: (details) => {
108
108
  globalStore.message.setOpen(details.open);
109
- }, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "mx-auto max-h-[80vh] min-w-[21.438rem] max-w-[21.438rem] overflow-y-auto rounded-xl p-3xl lg:min-w-[25rem] lg:max-w-[25rem]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary text-text-brand", children: _jsx(MessageIcon, { type: message?.icon ?? 'INFO', className: "size-6" }) }), _jsx(Dialog.Title, { className: "mt-lg text-center font-semibold text-lg lg:mt-xl", children: message?.title }), message?.content && (_jsx(Dialog.Description, { className: "mt-xs text-center text-sm text-text-secondary-700 [&_li]:mb-1 [&_ol]:list-decimal [&_ol]:pl-5 [&_ol]:text-left [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:text-left", dangerouslySetInnerHTML: {
109
+ }, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "mx-auto max-h-[80vh] min-w-[21.438rem] max-w-[21.438rem] overflow-y-auto rounded-xl p-3xl lg:min-w-[25rem] lg:max-w-[25rem]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary text-text-brand", children: _jsx(MessageIcon, { type: message?.icon ?? 'INFO', className: "size-6" }) }), _jsx(Dialog.Title, { className: "mt-lg text-center font-semibold text-lg lg:mt-xl", children: message?.title }), message?.content && (_jsx(Dialog.Description, { className: "mt-xs pb-5 text-center text-sm text-text-secondary-700 [&_li]:mb-1 [&_ol]:list-decimal [&_ol]:pl-5 [&_ol]:text-left [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:text-left", dangerouslySetInnerHTML: {
110
110
  __html: transformContent(message?.content),
111
- } })), message?.image && (_jsx("div", { className: "mt-5 pb-5", children: _jsx(Image, { src: message?.image, alt: "", width: 400, height: 250, loading: "lazy", unoptimized: true, className: "h-auto w-full rounded-sm" }) })), message?.actions.length ? (_jsx("div", { className: "mt-2xl flex flex-col gap-2 text-center lg:mt-2xl", children: message?.actions.map((action, index) => (_jsx(Button, { asChild: true, children: _jsx(Link, { href: normalizeActionUrl(action.url, {
111
+ } })), message?.image && (_jsx("div", { className: "mt-5 pb-5", children: _jsx(Image, { src: message?.image, alt: "", width: 400, height: 250, loading: "lazy", unoptimized: true, className: "h-auto w-full rounded-sm" }) })), message?.actions.length ? (_jsx("div", { className: "mt-3xl flex flex-col gap-2 text-center lg:mt-4xl", children: message?.actions.map((action, index) => (_jsx(Button, { asChild: true, children: _jsx(Link, { href: normalizeActionUrl(action.url, {
112
112
  transactionsPageUrl,
113
113
  questsPageUrl,
114
114
  }), onClick: (e) => {
@@ -117,7 +117,7 @@ export function MessagesPopup() {
117
117
  setIndex(details.page);
118
118
  }, slideCount: messages.length, allowMouseDrag: true, autoplay: false, children: [_jsx(Carousel.ItemGroup, { children: messages.map((message, index) => (_jsxs(Carousel.Item, { index: index, className: "select-none", children: [_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary text-text-brand", children: _jsx(MessageIcon, { type: message.icon, className: "size-6" }) }), _jsx("h2", { className: "mt-lg text-center font-semibold text-lg xl:mt-xl", children: message.title }), message.content && (_jsx("div", { dangerouslySetInnerHTML: {
119
119
  __html: transformContent(message.content),
120
- }, className: "mt-xs pb-5 text-left text-sm text-text-secondary-700 [&_li>ol]:list-decimal [&_li>ol]:pl-5 [&_li>ul]:list-disc [&_li>ul]:pl-5 [&_li]:mb-1 [&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:list-disc [&_ul]:pl-5" })), message.image && (_jsx("div", { className: "mt-5 pb-5", children: _jsx(Image, { src: message.image, alt: "", width: 400, height: 250, loading: "lazy", unoptimized: true, className: "h-auto w-full rounded-sm" }) })), message.actions.length ? (_jsx("div", { className: "mt-2xl flex flex-col gap-2 text-center lg:mt-2xl", children: message.actions.map((action, index) => (_jsx(Button, { asChild: true, children: _jsx(Link, { href: normalizeActionUrl(action.url, {
120
+ }, className: "mt-xs pb-5 text-left text-sm text-text-secondary-700 [&_li>ol]:list-decimal [&_li>ol]:pl-5 [&_li>ul]:list-disc [&_li>ul]:pl-5 [&_li]:mb-1 [&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:list-disc [&_ul]:pl-5" })), message.image && (_jsx("div", { className: "mt-5 pb-5", children: _jsx(Image, { src: message.image, alt: "", width: 400, height: 250, loading: "lazy", unoptimized: true, className: "h-auto w-full rounded-sm" }) })), message.actions.length ? (_jsx("div", { className: "mt-3xl flex flex-col gap-2 text-center lg:mt-4xl", children: message.actions.map((action, index) => (_jsx(Button, { asChild: true, children: _jsx(Link, { href: normalizeActionUrl(action.url, {
121
121
  questsPageUrl,
122
122
  transactionsPageUrl,
123
123
  }), onClick: () => {
@@ -18,14 +18,14 @@ export declare const GET: (req: NextRequest, { params }: Context) => Promise<Nex
18
18
  __error?: unknown;
19
19
  } | {
20
20
  ok: true;
21
- data: Record<string, unknown>;
21
+ data: import("../types").Session;
22
22
  }> | NextResponse<{
23
23
  ok: false;
24
24
  message: string;
25
25
  __error?: unknown;
26
26
  } | {
27
27
  ok: true;
28
- data: import("../types").Session;
28
+ data: Record<string, unknown>;
29
29
  }>>;
30
30
  export declare const DELETE: (req: NextRequest, { params }: Context) => Promise<NextResponse<{
31
31
  ok: true;