@opexa/portal-components 0.0.622 → 0.0.624

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.
@@ -22,5 +22,5 @@ export function KYCDefault(props) {
22
22
  const isDialogOpen = !globalStore.kycReminder.open && globalStore.kyc.open && !sessionLoading;
23
23
  return (_jsxs(_Fragment, { children: [_jsx(KYCDefaultContext, { value: kyc, children: _jsx(Dialog.Root, { open: isDialogOpen && !globalStore.responsibleGamingReminder.open, onOpenChange: (details) => {
24
24
  globalStore.kyc.setOpen(details.open);
25
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: kyc.reset, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsx(Dialog.Content, { className: "mx-auto min-h-full w-full overflow-y-auto bg-bg-primary-alt lg:min-h-auto lg:w-fit", children: _jsxs("div", { className: "flex h-dvh w-full flex-col overflow-y-auto p-3xl sm:h-fit sm:overflow-auto lg:w-[400px]", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto mb-5 block h-7.5 w-auto", draggable: false }), _jsx(Indicator, {}), kyc.step === 1 && _jsx(IdentityVerification, {}), kyc.step === 2 && _jsx(PersonalInformation, {})] }) }) })] }) }) }), _jsx(KYCReminder, { ...props })] }));
25
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: kyc.reset, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsx(Dialog.Content, { className: "mx-auto min-h-full w-full overflow-y-auto bg-bg-primary-alt lg:min-h-auto lg:w-fit", children: _jsxs("div", { className: "flex h-dvh w-full flex-col overflow-y-auto p-3xl sm:h-fit sm:overflow-auto lg:w-[400px]", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto mb-5 block h-7.5 w-auto", draggable: false }), _jsx(Indicator, {}), kyc.step === 1 && _jsx(IdentityVerification, {}), kyc.step === 2 && _jsx(PersonalInformation, {})] }) }) })] }) }) }), _jsx(KYCReminder, { hasResponsibleGamingReminder: true, ...props })] }));
26
26
  }
@@ -12,5 +12,6 @@ export interface KYCReminderProps {
12
12
  styles: string;
13
13
  logo: ImageProps['src'];
14
14
  };
15
+ hasResponsibleGamingReminder?: boolean;
15
16
  }
16
17
  export declare function KYCReminder(props: KYCReminderProps): import("react/jsx-runtime").JSX.Element;
@@ -46,7 +46,8 @@ export function KYCReminder(props) {
46
46
  const isAccountReady = !accountLoading;
47
47
  const isSessionReady = !sessionLoading && session?.status === 'authenticated';
48
48
  const isKYCReminderOpen = globalStore.kycReminder.open && !globalStore.kyc.open;
49
- const isResponsibleGamingReminderClosed = !globalStore.responsibleGamingReminder.open;
49
+ const isResponsibleGamingReminderClosed = props.hasResponsibleGamingReminder &&
50
+ !globalStore.responsibleGamingReminder.open;
50
51
  const isKYCStateRelevant = isNotVerified || (isPending && isVerificationLocked);
51
52
  return (_jsx(Dialog.Root, { open: isSessionReady &&
52
53
  isAccountReady &&
@@ -159,5 +159,5 @@ export function KYCSumsub(props) {
159
159
  }
160
160
  }, onError: (error) => {
161
161
  console.warn(error);
162
- }, className: "block max-h-full w-full overflow-y-auto rounded-md", force: true }) }))] }) })] }) }), _jsx(KYCReminder, { ...props })] }));
162
+ }, className: "block max-h-full w-full overflow-y-auto rounded-md", force: true }) }))] }) })] }) }), _jsx(KYCReminder, { hasResponsibleGamingReminder: false, ...props })] }));
163
163
  }
@@ -1,4 +1,4 @@
1
1
  export * from './KYC';
2
+ export * from './KYCDefault/KYCVerificationStatus';
2
3
  export * from './KYCTrigger';
3
- export * from './KYCVerificationStatus';
4
4
  export * from './KycOpenOnHomeMount';
@@ -1,4 +1,4 @@
1
1
  export * from './KYC.js';
2
+ export * from './KYCDefault/KYCVerificationStatus.js';
2
3
  export * from './KYCTrigger.js';
3
- export * from './KYCVerificationStatus.js';
4
4
  export * from './KycOpenOnHomeMount.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.622",
3
+ "version": "0.0.624",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",