@opexa/portal-components 0.0.735 → 0.0.736

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 (99) hide show
  1. package/dist/components/Jackpots/JackpotsListNext/JackpotsListItemGameProviders.d.ts +7 -1
  2. package/dist/components/Jackpots/JackpotsListNext/JackpotsListItemGameProviders.js +2 -11
  3. package/dist/components/KYC/KYCVerificationStatus.lazy.js +4 -7
  4. package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
  5. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  6. package/dist/ui/Badge/Badge.d.ts +12 -12
  7. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  8. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  9. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  10. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  11. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  12. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  13. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  14. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  15. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  16. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  17. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  18. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  19. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  20. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  21. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  22. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  23. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  24. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  25. package/dist/ui/Field/Field.d.ts +21 -21
  26. package/dist/ui/Field/field.recipe.d.ts +3 -3
  27. package/dist/ui/Menu/Menu.d.ts +360 -360
  28. package/dist/ui/Menu/menu.recipe.d.ts +20 -20
  29. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  30. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  31. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  32. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  33. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  34. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  35. package/dist/ui/Popover/Popover.d.ts +88 -88
  36. package/dist/ui/Popover/popover.recipe.d.ts +8 -8
  37. package/dist/ui/Progress/Progress.d.ts +27 -27
  38. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  39. package/dist/ui/QrCode/QrCode.d.ts +40 -40
  40. package/dist/ui/QrCode/qrCode.recipe.d.ts +8 -8
  41. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  42. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  43. package/dist/ui/Select/Select.d.ts +45 -45
  44. package/dist/ui/Select/select.recipe.d.ts +3 -3
  45. package/dist/ui/Table/Table.d.ts +21 -21
  46. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  47. package/dist/ui/Table/table.recipe.d.ts +3 -3
  48. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  49. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  50. package/package.json +1 -1
  51. package/dist/components/Banner/Banner.client.d.ts +0 -12
  52. package/dist/components/Banner/Banner.client.js +0 -49
  53. package/dist/components/DepositWithdrawal/AiOPaymentMethods.d.ts +0 -11
  54. package/dist/components/DepositWithdrawal/AiOPaymentMethods.js +0 -55
  55. package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
  56. package/dist/components/DigitainLauncher/Loading.js +0 -5
  57. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
  58. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
  59. package/dist/components/KYC/BasicInformation.d.ts +0 -1
  60. package/dist/components/KYC/BasicInformation.js +0 -101
  61. package/dist/components/KYC/IdentityVerification.d.ts +0 -1
  62. package/dist/components/KYC/IdentityVerification.js +0 -120
  63. package/dist/components/KYC/Indicator.d.ts +0 -1
  64. package/dist/components/KYC/Indicator.js +0 -8
  65. package/dist/components/KYC/KYC.lazy.d.ts +0 -6
  66. package/dist/components/KYC/KYC.lazy.js +0 -45
  67. package/dist/components/KYC/KYCContext.d.ts +0 -6
  68. package/dist/components/KYC/KYCContext.js +0 -2
  69. package/dist/components/KYC/PersonalInformation.d.ts +0 -1
  70. package/dist/components/KYC/PersonalInformation.js +0 -122
  71. package/dist/components/KYC/useKYC.d.ts +0 -25
  72. package/dist/components/KYC/useKYC.js +0 -38
  73. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  74. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  75. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
  76. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
  77. package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
  78. package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
  79. package/dist/components/SessionWatcher/index.d.ts +0 -1
  80. package/dist/components/SessionWatcher/index.js +0 -1
  81. package/dist/components/SignIn/utils.d.ts +0 -8
  82. package/dist/components/SignIn/utils.js +0 -26
  83. package/dist/constants/Branches.d.ts +0 -2
  84. package/dist/constants/Branches.js +0 -42
  85. package/dist/images/responsible-gaming-yellow.png +0 -0
  86. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  87. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  88. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  89. package/dist/third-parties/FacebookPixel/api.js +0 -1
  90. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  91. package/dist/third-parties/FacebookPixel/index.js +0 -1
  92. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  93. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  94. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  95. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  96. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  97. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  98. package/dist/third-parties/index.d.ts +0 -2
  99. package/dist/third-parties/index.js +0 -2
@@ -1,5 +1,11 @@
1
+ import { type ImageProps } from 'next/image';
1
2
  import type { GameProviderData } from '../../../types';
3
+ interface JackpotGameProvider extends GameProviderData {
4
+ redirectUrl: string;
5
+ providedLogo?: ImageProps['src'];
6
+ }
2
7
  export interface JackpotsListItemGameProvidersProps {
3
- gameProviders: GameProviderData[];
8
+ gameProviders: JackpotGameProvider[];
4
9
  }
5
10
  export declare function JackpotsListItemGameProviders({ gameProviders, }: JackpotsListItemGameProvidersProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,24 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import useEmblaCarousel from 'embla-carousel-react';
3
3
  import { isString } from 'lodash-es';
4
- import Image from 'next/image';
4
+ import Image, {} from 'next/image';
5
5
  import Link from 'next/link';
6
6
  import { useCallback, useEffect, useState } from 'react';
7
7
  import { twMerge } from 'tailwind-merge';
8
8
  import { ArrowLeftIcon } from '../../../icons/ArrowLeftIcon.js';
9
9
  import { ArrowRightIcon } from '../../../icons/ArrowRightIcon.js';
10
10
  import { Button } from '../../../ui/Button/index.js';
11
- import { callIfFn } from '../../../utils/callIfFn.js';
12
11
  import { useJackpotsListPropsContext } from './JackpotsListContext.js';
13
12
  export function JackpotsListItemGameProviders({ gameProviders, }) {
14
13
  const jackpotsProps = useJackpotsListPropsContext();
15
- const viewGamesUrl = (data) => {
16
- return jackpotsProps.viewGamesUrl
17
- ? callIfFn(jackpotsProps.viewGamesUrl, data)
18
- .replace(':id', data.id)
19
- .replace(':slug', data.slug)
20
- : `/providers/${data.slug}`;
21
- };
22
14
  const classNames = isString(jackpotsProps.className)
23
15
  ? { root: jackpotsProps.className }
24
16
  : (jackpotsProps.className ?? {});
@@ -49,6 +41,5 @@ export function JackpotsListItemGameProviders({ gameProviders, }) {
49
41
  emblaApi.on('select', onSelect);
50
42
  emblaApi.on('reInit', onSelect);
51
43
  }, [emblaApi, onSelect]);
52
- return (_jsxs("div", { className: twMerge('p-4 pb-8', classNames.providerRoot), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: twMerge('font-semibold text-lg text-text-primary-900', classNames.providerHeading), children: "Jackpot Game Providers" }), _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { disabled: !canScrollPrev, onClick: scrollPrev, variant: "outline", colorScheme: "gray", className: twMerge('rounded-r-none border-r-0', classNames.providerNavigationButton), "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsxs(Button, { disabled: !canScrollNext, onClick: scrollNext, variant: "outline", colorScheme: "gray", className: twMerge('rounded-l-none', classNames.providerNavigationButton), "aria-label": "Next", children: [_jsx("span", { className: "sr-only", children: "Next" }), _jsx(ArrowRightIcon, { className: "size-5" })] })] })] }), _jsx("div", { className: "relative mt-3 overflow-hidden", ref: emblaRef, children: _jsx("div", { className: "flex gap-3.5", children: gameProviders.map((provider) => (_jsx(Link, { href: viewGamesUrl(provider), className: twMerge('min-w-27.5 rounded-md bg-brand-800 lg:bg-bg-primary-900', classNames.providerThumbnailRoot), children: _jsx(Image, { src: jackpotsProps.gameProviderImages?.[provider.id] ??
53
- provider.logo, alt: "provider", className: twMerge('size-full', classNames.providerThumbnailImage), width: 300, height: 150 }) }, provider.slug))) }) })] }));
44
+ return (_jsxs("div", { className: twMerge('p-4 pb-8', classNames.providerRoot), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: twMerge('font-semibold text-lg text-text-primary-900', classNames.providerHeading), children: "Jackpot Game Providers" }), _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { disabled: !canScrollPrev, onClick: scrollPrev, variant: "outline", colorScheme: "gray", className: twMerge('rounded-r-none border-r-0', classNames.providerNavigationButton), "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsxs(Button, { disabled: !canScrollNext, onClick: scrollNext, variant: "outline", colorScheme: "gray", className: twMerge('rounded-l-none', classNames.providerNavigationButton), "aria-label": "Next", children: [_jsx("span", { className: "sr-only", children: "Next" }), _jsx(ArrowRightIcon, { className: "size-5" })] })] })] }), _jsx("div", { className: "relative mt-3 overflow-hidden", ref: emblaRef, children: _jsx("div", { className: "flex gap-3.5", children: gameProviders.map((provider) => (_jsx(Link, { href: provider.redirectUrl, className: twMerge('min-w-27.5 rounded-md bg-brand-800 lg:bg-bg-primary-900', classNames.providerThumbnailRoot), children: _jsx(Image, { src: provider.providedLogo ?? provider.logo, alt: "provider", className: twMerge('size-full', classNames.providerThumbnailImage), width: 300, height: 150 }) }, provider.slug))) }) })] }));
54
45
  }
@@ -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
  }