@opexa/portal-components 0.0.1002 → 0.0.1004

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.
@@ -7,9 +7,14 @@ import { Dialog } from '../../ui/Dialog/index.js';
7
7
  function KYCAccountVerificationRequired_lazy() {
8
8
  const globalStore = useGlobalStore(useShallow((s) => ({
9
9
  kycVerificationRequired: s.kycAccountVerificationRequired,
10
+ disclaimer: s.disclaimer,
11
+ termsOfUse: s.termsOfUse,
10
12
  kycReminder: s.kycReminder,
11
13
  })));
12
- return (_jsxs(Dialog.Root, { open: globalStore.kycVerificationRequired.open, closeOnEscape: false, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: [_jsx(Dialog.Backdrop, { className: "z-[999]" }), _jsx(Dialog.Positioner, { className: "z-[999] flex items-center justify-center", children: _jsx(Dialog.Content, { className: "mx-auto h-fit max-w-[calc(100dvw-1rem)] overflow-y-auto rounded-lg bg-bg-primary lg:max-w-[400px]", children: _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto w-fit rounded-full bg-bg-brand-secondary p-2", children: _jsx(FileX02Icon, { className: "text-shadow-text-brand" }) }), _jsx("h2", { className: "mt-4 font-semibold text-lg", children: "Account Verification Rejected!" }), _jsxs("p", { className: "mt-xs flex flex-col gap-4 text-sm text-text-tertiary-600", children: [_jsx("span", { children: "We're sorry, but your verification was rejected for the following reasons:" }), _jsxs("span", { children: [_jsx("b", { children: "Missing Documents:" }), " Some required documents were not uploaded. Please ensure you provide all necessary files as outlined in our guidelines."] }), _jsxs("span", { children: [_jsx("b", { children: "Unclear Images:" }), " The documents uploaded were blurry or not legible. Please re-upload clear, high-quality images where all text and details are visible."] }), _jsx("span", { children: "To resolve this, double-check the document requirements and re-submit. If you're unsure about the guidelines or need further clarification, feel free to contact our support team for assistance. We're here to help!" })] }), _jsx(Button, { type: "button", className: "mt-lg", onClick: () => {
14
+ const isOpen = globalStore.kycVerificationRequired.open &&
15
+ !globalStore.disclaimer.open &&
16
+ !globalStore.termsOfUse.open;
17
+ return (_jsxs(Dialog.Root, { open: isOpen, closeOnEscape: false, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: [_jsx(Dialog.Backdrop, { className: "z-[999]" }), _jsx(Dialog.Positioner, { className: "z-[999] flex items-center justify-center", children: _jsx(Dialog.Content, { className: "mx-auto h-fit max-w-[calc(100dvw-1rem)] overflow-y-auto rounded-lg bg-bg-primary lg:max-w-[400px]", children: _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto w-fit rounded-full bg-bg-brand-secondary p-2", children: _jsx(FileX02Icon, { className: "text-shadow-text-brand" }) }), _jsx("h2", { className: "mt-4 font-semibold text-lg", children: "Account Verification Rejected!" }), _jsxs("p", { className: "mt-xs flex flex-col gap-4 text-sm text-text-tertiary-600", children: [_jsx("span", { children: "We're sorry, but your verification was rejected for the following reasons:" }), _jsxs("span", { children: [_jsx("b", { children: "Missing Documents:" }), " Some required documents were not uploaded. Please ensure you provide all necessary files as outlined in our guidelines."] }), _jsxs("span", { children: [_jsx("b", { children: "Unclear Images:" }), " The documents uploaded were blurry or not legible. Please re-upload clear, high-quality images where all text and details are visible."] }), _jsx("span", { children: "To resolve this, double-check the document requirements and re-submit. If you're unsure about the guidelines or need further clarification, feel free to contact our support team for assistance. We're here to help!" })] }), _jsx(Button, { type: "button", className: "mt-lg", onClick: () => {
13
18
  globalStore.kycVerificationRequired.setOpen(false);
14
19
  globalStore.kycReminder.setOpen(true);
15
20
  }, children: "Ok" })] }) }) })] }));
@@ -1,4 +1,5 @@
1
1
  export * from './KYC';
2
+ export * from './KYCAccountVerificationRequired';
2
3
  export * from './KYCDefault/KYCVerificationStatus';
3
4
  export * from './KYCTrigger';
4
5
  export * from './KycOpenOnHomeMount';
@@ -1,4 +1,5 @@
1
1
  export * from './KYC.js';
2
+ export * from './KYCAccountVerificationRequired.js';
2
3
  export * from './KYCDefault/KYCVerificationStatus.js';
3
4
  export * from './KYCTrigger.js';
4
5
  export * from './KycOpenOnHomeMount.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.1002",
3
+ "version": "0.0.1004",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",