@opexa/portal-components 0.0.372 → 0.0.373

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 (58) hide show
  1. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
  2. package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
  3. package/dist/components/IdleLogout/index.d.ts +1 -0
  4. package/dist/components/IdleLogout/index.js +1 -0
  5. package/dist/components/SignIn/MobileNumberSignIn.js +3 -2
  6. package/dist/components/SignIn/NameAndPasswordSignIn.js +3 -2
  7. package/dist/components/SignIn/SignIn.lazy.d.ts +8 -1
  8. package/dist/components/SignIn/SignIn.lazy.js +1 -1
  9. package/dist/components/SignUp/SignUpDefault/SignUpDefault.lazy.d.ts +8 -1
  10. package/dist/components/SignUp/SignUpDefault/SignUpDefault.lazy.js +1 -1
  11. package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +2 -2
  12. package/dist/components/SignUp/SignUpKYC/SignUpKYC.lazy.d.ts +8 -1
  13. package/dist/components/SignUp/SignUpKYC/SignUpKYC.lazy.js +1 -1
  14. package/dist/components/SignUp/SignUpKYC/SignUpKYCForm.js +2 -2
  15. package/dist/handlers/index.d.ts +7 -7
  16. package/dist/icons/LinkBrokenIcon.d.ts +2 -0
  17. package/dist/icons/LinkBrokenIcon.js +4 -0
  18. package/dist/images/pagcor-round-icon.png +0 -0
  19. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  20. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  21. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  22. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  23. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  24. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  25. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  26. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  27. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  28. package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
  29. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  30. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  31. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  32. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  33. package/dist/ui/Select/Select.d.ts +45 -45
  34. package/dist/ui/Select/select.recipe.d.ts +3 -3
  35. package/dist/ui/Table/Table.d.ts +21 -21
  36. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  37. package/dist/ui/Table/table.recipe.d.ts +3 -3
  38. package/package.json +1 -1
  39. package/dist/components/Banner/Banner.client.d.ts +0 -12
  40. package/dist/components/Banner/Banner.client.js +0 -49
  41. package/dist/components/SignIn/utils.d.ts +0 -8
  42. package/dist/components/SignIn/utils.js +0 -26
  43. package/dist/constants/Branches.d.ts +0 -2
  44. package/dist/constants/Branches.js +0 -42
  45. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  46. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  47. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  48. package/dist/third-parties/FacebookPixel/api.js +0 -1
  49. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  50. package/dist/third-parties/FacebookPixel/index.js +0 -1
  51. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  52. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  53. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  54. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  55. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  56. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  57. package/dist/third-parties/index.d.ts +0 -2
  58. package/dist/third-parties/index.js +0 -2
@@ -0,0 +1,7 @@
1
+ import { type UseDisclosureReturn } from '../../client/hooks/useDisclosure';
2
+ interface GoogleDisconnectProps {
3
+ onConfirmAction?: (ctx: UseDisclosureReturn) => React.ReactNode;
4
+ children?: (ctx: UseDisclosureReturn) => React.ReactNode;
5
+ }
6
+ export declare function GoogleDisconnect(props: GoogleDisconnectProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useDisclosure, } from '../../client/hooks/useDisclosure.js';
4
+ import { LinkBrokenIcon } from '../../icons/LinkBrokenIcon.js';
5
+ import { XIcon } from '../../icons/XIcon.js';
6
+ import { Dialog } from '../../ui/Dialog/index.js';
7
+ import { Portal } from '../../ui/Portal/index.js';
8
+ export function GoogleDisconnect(props) {
9
+ const disclosure = useDisclosure();
10
+ return (_jsxs(_Fragment, { children: [props.children?.(disclosure), _jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: disclosure.open, onOpenChange: (details) => disclosure.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-[25rem] overflow-y-auto rounded-xl p-6", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "flex flex-col ", children: [_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary text-text-brand", children: _jsx(LinkBrokenIcon, {}) }), _jsx("h2", { className: "mb-1 text-center font-semibold text-lg xl:mt-xl", children: "Disconnect Google Account" }), _jsx("p", { className: "text-center text-sm text-text-tertiary-600 leading-2xl", children: "Are you sure you want to disconnect your Google account? This may affect your ability to log in or sync data." })] }), _jsx("div", { className: "pt-6", children: props.onConfirmAction?.(disclosure) })] }) })] }) })] }));
11
+ }
@@ -0,0 +1 @@
1
+ export * from './IdleLogout';
@@ -0,0 +1 @@
1
+ export * from './IdleLogout.js';
@@ -5,6 +5,7 @@ import Image from 'next/image';
5
5
  import { useRouter } from 'next/navigation';
6
6
  import { useRef } from 'react';
7
7
  import { Controller, useForm } from 'react-hook-form';
8
+ import { twMerge } from 'tailwind-merge';
8
9
  import { z } from 'zod';
9
10
  import { useShallow } from 'zustand/shallow';
10
11
  import { useCooldown } from '../../client/hooks/useCooldown.js';
@@ -17,7 +18,7 @@ import { useSignInMutation } from '../../client/hooks/useSignInMutation.js';
17
18
  import { toaster } from '../../client/utils/toaster.js';
18
19
  import { ArrowLeftIcon } from '../../icons/ArrowLeftIcon.js';
19
20
  import { CheckIcon } from '../../icons/CheckIcon.js';
20
- import pagcorLogo from '../../images/pagcor.png';
21
+ import pagcorLogo from '../../images/pagcor-round-icon.png';
21
22
  import responsibleGamingLogo from '../../images/responsible-gaming-gold.png';
22
23
  import { Button } from '../../ui/Button/index.js';
23
24
  import { Checkbox } from '../../ui/Checkbox/index.js';
@@ -156,7 +157,7 @@ export function MobileNumberSignIn() {
156
157
  globalStore.responsibleGaming.setNext('SIGN_IN');
157
158
  globalStore.signIn.setOpen(false);
158
159
  }
159
- }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) })] }), signInProps.showPublicPlayProhibition && (_jsxs("div", { className: "mt-3xl text-center text-sm", children: ["Prohibition to play in open and public places", _jsxs("div", { className: "mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2", children: [_jsx("div", { className: "flex size-5xl items-center justify-center overflow-hidden rounded-full bg-white", children: _jsx(Image, { src: pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-9.5 w-auto object-contain" }) }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), _jsxs("div", { className: "mt-6 flex items-center gap-2", children: [_jsx("div", { className: "h-px flex-grow bg-text-tertiary-600/50" }), _jsx("span", { className: "font-semibold text-sm text-text-tertiary-600", children: "Log in directly with" }), _jsx("div", { className: "h-px flex-grow bg-text-tertiary-600/50" })] }), _jsxs("div", { className: "mt-6", children: [signInProps.googleSso && _jsx(GoogleSignInButton, {}), signInProps.facebookSso && featureFlag.enabled && (_jsx(FacebookSignInTrigger, {}))] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
160
+ }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) })] }), signInProps.showPublicPlayProhibition && (_jsxs("div", { className: twMerge('mt-3xl text-center text-sm', signInProps.className?.publicPlayProhibitionRoot), children: ["Prohibition to play in open and public places", _jsxs("div", { className: twMerge('mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2', signInProps.className?.publicPlayProhibitionLogoContainer), children: [_jsx(Image, { src: signInProps.pagcorLogo ?? pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-10 w-auto" }), _jsx(Image, { src: signInProps.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), _jsxs("div", { className: "mt-6 flex items-center gap-2", children: [_jsx("div", { className: "h-px flex-grow bg-text-tertiary-600/50" }), _jsx("span", { className: "font-semibold text-sm text-text-tertiary-600", children: "Log in directly with" }), _jsx("div", { className: "h-px flex-grow bg-text-tertiary-600/50" })] }), _jsxs("div", { className: "mt-6", children: [signInProps.googleSso && _jsx(GoogleSignInButton, {}), signInProps.facebookSso && featureFlag.enabled && (_jsx(FacebookSignInTrigger, {}))] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
160
161
  globalStore.signIn.setOpen(false);
161
162
  globalStore.signUp.setOpen(true);
162
163
  }, children: "Sign up" })] })] })), context.step === 2 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center font-semibold text-lg", children: "Check your Phone" }), _jsxs("p", { className: "mt-xs text-center text-sm text-text-secondary-700", children: ["We\u2019ve sent a verification code to your mobile number", ' ', _jsx("span", { className: "font-semibold", children: mobileNumberParser.format(step1Form.getValues('mobileNumber')) }), ' ', "via text"] }), _jsxs("form", { ref: form2Ref, className: "mt-5", onSubmit: step2Form.handleSubmit(async ({ verificationCode }) => {
@@ -4,6 +4,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
4
4
  import Image from 'next/image';
5
5
  import { useRouter } from 'next/navigation';
6
6
  import { Controller, useForm } from 'react-hook-form';
7
+ import { twMerge } from 'tailwind-merge';
7
8
  import { z } from 'zod';
8
9
  import { useShallow } from 'zustand/shallow';
9
10
  import { useAuthenticateMutation } from '../../client/hooks/useAuthenticateMutation.js';
@@ -14,7 +15,7 @@ import { SECRET_QUESTIONS, SECRET_QUESTIONS_MAP } from '../../constants/index.js
14
15
  import { CheckIcon } from '../../icons/CheckIcon.js';
15
16
  import { EyeIcon } from '../../icons/EyeIcon.js';
16
17
  import { EyeOffIcon } from '../../icons/EyeOffIcon.js';
17
- import pagcorLogo from '../../images/pagcor.png';
18
+ import pagcorLogo from '../../images/pagcor-round-icon.png';
18
19
  import responsibleGamingLogo from '../../images/responsible-gaming-gold.png';
19
20
  import { Button } from '../../ui/Button/index.js';
20
21
  import { Checkbox } from '../../ui/Checkbox/index.js';
@@ -162,7 +163,7 @@ export function NameAndPasswordSignIn() {
162
163
  globalStore.responsibleGaming.setNext('SIGN_IN');
163
164
  globalStore.signIn.setOpen(false);
164
165
  }
165
- }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) })] }), signInProps.showPublicPlayProhibition && (_jsxs("div", { className: "mt-3xl text-center text-sm", children: ["Prohibition to play in open and public places", _jsxs("div", { className: "mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2", children: [_jsx("div", { className: "flex size-5xl items-center justify-center overflow-hidden rounded-full bg-white", children: _jsx(Image, { src: pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-9.5 w-auto object-contain" }) }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
166
+ }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) })] }), signInProps.showPublicPlayProhibition && (_jsxs("div", { className: twMerge('mt-3xl text-center text-sm', signInProps.className?.publicPlayProhibitionRoot), children: ["Prohibition to play in open and public places", _jsxs("div", { className: twMerge('mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2', signInProps.className?.publicPlayProhibitionLogoContainer), children: [_jsx(Image, { src: signInProps.pagcorLogo ?? pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-10 w-auto" }), _jsx(Image, { src: signInProps.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
166
167
  dialog.setOpen(false);
167
168
  globalStore.signUp.setOpen(true);
168
169
  }, children: "Sign up" })] })] }));
@@ -1,11 +1,18 @@
1
1
  import { type ImageProps } from 'next/image';
2
2
  import type { ReactNode } from 'react';
3
+ export interface ClassNameEntries {
4
+ root?: string;
5
+ publicPlayProhibitionRoot?: string;
6
+ publicPlayProhibitionLogoContainer?: string;
7
+ }
3
8
  export interface SignInProps {
4
9
  logo: ImageProps['src'];
10
+ pagcorLogo?: ImageProps['src'];
11
+ responsibleGamingLogo?: ImageProps['src'];
5
12
  siteName?: string;
6
13
  termsAndConditionsUrl?: string;
7
14
  responsibleGamingUrl?: string;
8
- className?: string;
15
+ className?: ClassNameEntries;
9
16
  googleSso?: boolean;
10
17
  facebookSso?: boolean;
11
18
  showPublicPlayProhibition?: boolean;
@@ -15,5 +15,5 @@ export function SignIn(props) {
15
15
  const signInStore = useGlobalStore(useShallow((ctx) => ctx.signIn));
16
16
  return (_jsx(SignInPropsProvider, { value: props, children: _jsx(SignInProvider, { value: signIn, children: _jsx(Dialog.Root, { open: signInStore.open, onOpenChange: (details) => {
17
17
  signInStore.setOpen(details.open);
18
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: twMerge('mx-auto h-full w-full items-start overflow-y-auto bg-bg-primary-alt p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl', props.className), children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-7.5 w-auto", draggable: false }), _jsx(SignInForm, {})] }) })] }) }) }) }));
18
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: twMerge('mx-auto h-full w-full items-start overflow-y-auto bg-bg-primary-alt p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl', props.className?.root), children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-7.5 w-auto", draggable: false }), _jsx(SignInForm, {})] }) })] }) }) }) }));
19
19
  }
@@ -1,14 +1,21 @@
1
1
  import { type ImageProps } from 'next/image';
2
2
  import { type ReactNode } from 'react';
3
3
  import type { Branch } from '../../../types';
4
+ export interface ClassNameEntries {
5
+ root?: string;
6
+ publicPlayProhibitionRoot?: string;
7
+ publicPlayProhibitionLogoContainer?: string;
8
+ }
4
9
  export interface SignUpDefaultProps {
5
10
  layout: 'default';
6
11
  logo: ImageProps['src'];
7
12
  branches?: Branch[];
8
13
  termsAndConditionsUrl?: string;
9
14
  responsibleGamingUrl?: string;
10
- className?: string;
15
+ className?: ClassNameEntries;
11
16
  children?: ReactNode;
12
17
  showPublicPlayProhibition?: boolean;
18
+ pagcorLogo?: ImageProps['src'];
19
+ responsibleGamingLogo?: ImageProps['src'];
13
20
  }
14
21
  export declare function SignUpDefault(props: SignUpDefaultProps): import("react/jsx-runtime").JSX.Element;
@@ -14,5 +14,5 @@ export function SignUpDefault(props) {
14
14
  const signUpStore = useGlobalStore(useShallow((ctx) => ctx.signUp));
15
15
  return (_jsx(SignUpDefaultPropsProvider, { value: props, children: _jsx(Dialog.Root, { open: signUpStore.open, onOpenChange: (details) => {
16
16
  signUpStore.setOpen(details.open);
17
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: twMerge('mx-auto h-full w-full items-start overflow-y-auto bg-bg-primary-alt p-3xl pb-4xl lg:h-fit lg:w-[400px] lg:rounded-xl', 'scrollbar:h-2 scrollbar:w-2 scrollbar-thumb:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent', props.className), children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsx(Suspense, { children: _jsx(SignUpDefaultForm, {}) })] }) })] }) }) }));
17
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: twMerge('mx-auto h-full w-full items-start overflow-y-auto bg-bg-primary-alt p-3xl pb-4xl lg:h-fit lg:w-[400px] lg:rounded-xl', 'scrollbar:h-2 scrollbar:w-2 scrollbar-thumb:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent', props.className?.root), children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsx(Suspense, { children: _jsx(SignUpDefaultForm, {}) })] }) })] }) }) }));
18
18
  }
@@ -28,7 +28,7 @@ import { ChevronDownIcon } from '../../../icons/ChevronDownIcon.js';
28
28
  import { ChevronLeftIcon } from '../../../icons/ChevronLeftIcon.js';
29
29
  import { ChevronRightIcon } from '../../../icons/ChevronRightIcon.js';
30
30
  import { HelpCircleIcon } from '../../../icons/HelpCircleIcon.js';
31
- import pagcorLogo from '../../../images/pagcor.png';
31
+ import pagcorLogo from '../../../images/pagcor-round-icon.png';
32
32
  import responsibleGamingLogo from '../../../images/responsible-gaming-gold.png';
33
33
  import { ObjectType } from '../../../services/ObjectType.js';
34
34
  import { Button } from '../../../ui/Button/index.js';
@@ -217,7 +217,7 @@ export function SignUpDefaultForm() {
217
217
  globalStore.responsibleGaming.setNext('SIGN_UP');
218
218
  globalStore.signUp.setOpen(false);
219
219
  }
220
- }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Create Account" })] }), signUpProps.showPublicPlayProhibition && (_jsxs("div", { className: "mt-3xl text-center text-sm", children: ["Prohibition to play in open and public places", _jsxs("div", { className: "mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2", children: [_jsx("div", { className: "flex size-5xl items-center justify-center overflow-hidden rounded-full bg-white", children: _jsx(Image, { src: pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-9.5 w-auto object-contain" }) }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Already have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
220
+ }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Create Account" })] }), signUpProps.showPublicPlayProhibition && (_jsxs("div", { className: twMerge('mt-3xl text-center text-sm', signUpProps.className?.publicPlayProhibitionRoot), children: ["Prohibition to play in open and public places", _jsxs("div", { className: twMerge('mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2', signUpProps.className?.publicPlayProhibitionLogoContainer), children: [_jsx(Image, { src: signUpProps.pagcorLogo ?? pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-10 w-auto" }), _jsx(Image, { src: signUpProps.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Already have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
221
221
  globalStore.signUp.setOpen(false);
222
222
  globalStore.signIn.setOpen(true);
223
223
  }, children: "Log In" })] })] })), step === 2 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center font-semibold text-lg", children: "Check your Phone" }), _jsxs("p", { className: "mt-xs text-center text-sm text-text-secondary-700", children: ["We\u2019ve sent a verification code to your mobile number", ' ', _jsx("span", { className: "font-semibold", children: mobileNumberParser.format(step1Form.getValues('mobileNumber')) }), ' ', "via text"] }), _jsxs("form", { ref: form2Ref, className: "mt-5", onSubmit: step2Form.handleSubmit(async ({ verificationCode }) => {
@@ -1,6 +1,11 @@
1
1
  import { type ImageProps } from 'next/image';
2
2
  import { type ReactNode } from 'react';
3
3
  import type { Branch } from '../../../types';
4
+ export interface ClassNameEntries {
5
+ root?: string;
6
+ publicPlayProhibitionRoot?: string;
7
+ publicPlayProhibitionLogoContainer?: string;
8
+ }
4
9
  export interface SignUpKYCProps {
5
10
  layout: 'kyc';
6
11
  logo: ImageProps['src'];
@@ -8,7 +13,9 @@ export interface SignUpKYCProps {
8
13
  branches?: Branch[];
9
14
  termsAndConditionsUrl?: string;
10
15
  responsibleGamingUrl?: string;
11
- className?: string;
16
+ className?: ClassNameEntries;
12
17
  children?: ReactNode;
18
+ pagcorLogo?: ImageProps['src'];
19
+ responsibleGamingLogo?: ImageProps['src'];
13
20
  }
14
21
  export declare function SignUpKYC(props: SignUpKYCProps): import("react/jsx-runtime").JSX.Element;
@@ -14,5 +14,5 @@ export function SignUpKYC(props) {
14
14
  const signUpStore = useGlobalStore(useShallow((ctx) => ctx.signUp));
15
15
  return (_jsx(SignUpKYCPropsProvider, { value: props, children: _jsx(Dialog.Root, { open: signUpStore.open, onOpenChange: (details) => {
16
16
  signUpStore.setOpen(details.open);
17
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsx(Dialog.Content, { className: twMerge('z-banner mx-auto flex size-full flex-col items-start overflow-y-auto bg-bg-primary-alt p-3xl pb-4xl lg:max-h-[80vh] lg:w-fit lg:rounded-xl', 'scrollbar:h-2 scrollbar:w-2 scrollbar-thumb:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent', props.className), children: _jsxs("div", { className: "size-full lg:w-[400px]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[7.5rem]", draggable: false }), _jsx(Suspense, { children: _jsx(SignUpKYCForm, {}) })] }) }) })] }) }) }));
17
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsx(Dialog.Content, { className: twMerge('z-banner mx-auto flex size-full flex-col items-start overflow-y-auto bg-bg-primary-alt p-3xl pb-4xl lg:max-h-[80vh] lg:w-fit lg:rounded-xl', 'scrollbar:h-2 scrollbar:w-2 scrollbar-thumb:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent', props.className?.root), children: _jsxs("div", { className: "size-full lg:w-[400px]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[7.5rem]", draggable: false }), _jsx(Suspense, { children: _jsx(SignUpKYCForm, {}) })] }) }) })] }) }) }));
18
18
  }
@@ -34,7 +34,7 @@ import { ChevronLeftIcon } from '../../../icons/ChevronLeftIcon.js';
34
34
  import { ChevronRightIcon } from '../../../icons/ChevronRightIcon.js';
35
35
  import { EyeIcon } from '../../../icons/EyeIcon.js';
36
36
  import { EyeOffIcon } from '../../../icons/EyeOffIcon.js';
37
- import pagcorLogo from '../../../images/pagcor.png';
37
+ import pagcorLogo from '../../../images/pagcor-round-icon.png';
38
38
  import responsibleGamingLogo from '../../../images/responsible-gaming-gold.png';
39
39
  import { ObjectType } from '../../../services/ObjectType.js';
40
40
  import { Button } from '../../../ui/Button/index.js';
@@ -276,7 +276,7 @@ export function SignUpKYCForm() {
276
276
  type: 'validate',
277
277
  message: error.message,
278
278
  });
279
- } }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsxs("div", { className: "mt-3xl text-center text-sm", children: ["Prohibition to play in open and public places", _jsxs("div", { className: "mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2", children: [_jsx("div", { className: "flex size-5xl items-center justify-center overflow-hidden rounded-full bg-white", children: _jsx(Image, { src: pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-9.5 w-auto object-contain" }) }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] }), _jsx(Controller, { control: step1Form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { className: "mt-2xl", invalid: o.fieldState.invalid, children: [_jsxs(Checkbox.Root, { checked: o.field.value, onCheckedChange: (details) => {
279
+ } }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsxs("div", { className: twMerge('mt-3xl text-center text-sm', props.className?.publicPlayProhibitionRoot), children: ["Prohibition to play in open and public places", _jsxs("div", { className: twMerge('mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2', props.className?.publicPlayProhibitionLogoContainer), children: [_jsx(Image, { src: props.pagcorLogo ?? pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-10 w-auto" }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] }), _jsx(Controller, { control: step1Form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { className: "mt-2xl", invalid: o.fieldState.invalid, children: [_jsxs(Checkbox.Root, { checked: o.field.value, onCheckedChange: (details) => {
280
280
  if (details.checked === 'indeterminate')
281
281
  return;
282
282
  o.field.onChange(details.checked);
@@ -6,13 +6,6 @@ interface Context {
6
6
  params: Promise<Params>;
7
7
  }
8
8
  export declare const GET: (req: NextRequest, { params }: Context) => Promise<NextResponse<{
9
- ok: false;
10
- message: string;
11
- __error?: unknown;
12
- } | {
13
- ok: true;
14
- data: import("../types").Session;
15
- }> | NextResponse<{
16
9
  ok: true;
17
10
  data?: never;
18
11
  } | {
@@ -26,6 +19,13 @@ export declare const GET: (req: NextRequest, { params }: Context) => Promise<Nex
26
19
  } | {
27
20
  ok: true;
28
21
  data: Record<string, unknown>;
22
+ }> | NextResponse<{
23
+ ok: false;
24
+ message: string;
25
+ __error?: unknown;
26
+ } | {
27
+ ok: true;
28
+ data: import("../types").Session;
29
29
  }>>;
30
30
  export declare const DELETE: (req: NextRequest, { params }: Context) => Promise<NextResponse<{
31
31
  ok: true;
@@ -0,0 +1,2 @@
1
+ import type { ComponentPropsWithRef } from 'react';
2
+ export declare function LinkBrokenIcon(props: ComponentPropsWithRef<'svg'>): import("react/jsx-runtime").JSX.Element;
@@ -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
+ }