@opexa/portal-components 0.0.669 → 0.0.671

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/KYCDefault/IdentityVerification.js +1 -1
  2. package/dist/components/KYC/KYCVerificationStatus.lazy.js +4 -7
  3. package/dist/components/Quests/WageringQuest.js +5 -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
@@ -125,7 +125,7 @@ export function IdentityVerification() {
125
125
  type: 'validate',
126
126
  message: error.message,
127
127
  });
128
- } }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-6", disabled: createPending || updatePending, children: "Continue" }), kyc.isSkippable && (_jsx(Button, { variant: "outline", colorScheme: "gray", className: "mt-lg", onClick: () => {
128
+ } }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-6", disabled: createPending || updatePending || form.formState.isValid, children: "Continue" }), kyc.isSkippable && (_jsx(Button, { variant: "outline", colorScheme: "gray", className: "mt-lg", onClick: () => {
129
129
  globalStore.kyc.setOpen(false);
130
130
  globalStore.kycReminder.setOpen(true);
131
131
  }, children: "Skip for now" })), _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: () => {
@@ -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
  }
@@ -54,7 +54,11 @@ function Rules(props) {
54
54
  defaultValue: props.defaultOpen ?? false,
55
55
  onChange: props.onOpenChange,
56
56
  });
57
- return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: open, onOpenChange: (details) => setOpen(details.open), 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 min-h-auto max-w-[21.438rem] overflow-y-auto rounded-xl px-4 pt-5 pb-0", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "flex flex-col space-y-5", children: [_jsx("h2", { className: "font-semibold text-lg text-text-primary-900", children: quest.name }), _jsxs("ol", { className: "group list-disc text-wrap pl-4 font-normal text-sm text-text-tertiary-600", children: [_jsx("li", { children: "Earn extra rewards just by playing Slots, every bet counts, win or lose!" }), _jsx("li", { children: "Reach the wagering requirement in bets to complete the quest and claim your reward." })] })] }), featureFlag.enabled && (_jsx(GameProvidersCarousel, { gameProviders: props.gameProviders ?? [] })), _jsx("div", { className: "pt-6 pb-4", children: _jsx(Button, { onClick: () => setOpen(false), children: "Ok" }) })] }) })] }) }));
57
+ return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: open, onOpenChange: (details) => setOpen(details.open), 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 min-h-auto max-w-[21.438rem] overflow-y-auto rounded-xl px-4 pt-5 pb-0", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "flex flex-col space-y-5", children: [_jsx("h2", { className: "font-semibold text-lg text-text-primary-900", children: quest.name }), _jsxs("ol", { className: "group list-disc text-wrap pl-4 font-normal text-sm text-text-tertiary-600", children: [_jsx("li", { children: "Earn extra rewards just by playing Slots, every bet counts, win or lose!" }), _jsx("li", { children: "Reach the wagering requirement in bets to complete the quest and claim your reward." })] })] }), ((!featureFlag.enabled &&
58
+ (window.location.href.includes('blucky') ||
59
+ window.location.href.includes('powerplay') ||
60
+ window.location.href.includes('inplay'))) ||
61
+ featureFlag.enabled) && (_jsx(GameProvidersCarousel, { gameProviders: props.gameProviders ?? [] })), _jsx("div", { className: "pt-6 pb-4", children: _jsx(Button, { onClick: () => setOpen(false), children: "Ok" }) })] }) })] }) }));
58
62
  }
59
63
  export function GameProvidersCarousel({ ...props }) {
60
64
  const context = useQuestContext();
@@ -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;