@opexa/portal-components 0.0.372 → 0.0.374

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.
@@ -149,7 +149,7 @@ export function LibanganDeposit() {
149
149
  createDepositMutation.mutate({
150
150
  amount: data.amount.toString(),
151
151
  promo: data.promo ?? undefined,
152
- redirectionUrl: depositWithdrawalProps.libanganRedirectionUrl,
152
+ redirectUrl: depositWithdrawalProps.libanganRedirectionUrl,
153
153
  });
154
154
  }), noValidate: true, children: [_jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
155
155
  o.field.onChange(details.value);
@@ -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);
@@ -139,7 +139,7 @@ export interface CreateLibanganDepositMutationVariables {
139
139
  id: string;
140
140
  amount: string;
141
141
  promo?: string;
142
- redirectionUrl?: string;
142
+ redirectUrl?: string;
143
143
  };
144
144
  }
145
145
  export type CreateLibanganDepositInput = Simplify<CreateLibanganDepositMutationVariables['input']>;
@@ -151,7 +151,7 @@ export interface CreateLibanganDepositMutationVariables {
151
151
  id: string;
152
152
  amount: string;
153
153
  promo?: string;
154
- redirectionUrl?: string;
154
+ redirectUrl?: string;
155
155
  };
156
156
  }
157
157
  export declare const createLibanganDeposit: (input: CreateLibanganDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.372",
3
+ "version": "0.0.374",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",