@opexa/portal-components 0.0.54 → 0.0.55

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 (55) hide show
  1. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +184 -184
  2. package/dist/components/Promos/PromoItem.js +1 -1
  3. package/dist/styles/theme.css +696 -696
  4. package/dist/tsconfig.build.tsbuildinfo +1 -1
  5. package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
  6. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
  7. package/dist/ui/Badge/Badge.d.ts +12 -12
  8. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  9. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  10. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  11. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  12. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  13. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  14. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  15. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  16. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  17. package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
  18. package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
  19. package/dist/ui/Dialog/Dialog.d.ts +154 -154
  20. package/dist/ui/Dialog/dialog.recipe.d.ts +14 -14
  21. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  22. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  23. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  24. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  25. package/dist/ui/Popover/Popover.d.ts +88 -88
  26. package/dist/ui/Popover/popover.recipe.d.ts +8 -8
  27. package/dist/ui/Select/Select.d.ts +45 -45
  28. package/dist/ui/Select/select.recipe.d.ts +3 -3
  29. package/dist/ui/Table/Table.d.ts +21 -21
  30. package/dist/ui/Table/table.recipe.d.ts +3 -3
  31. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  32. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  33. package/package.json +156 -156
  34. package/dist/components/AccountPaymentMethods/AccountPaymentMethods.d.ts +0 -1
  35. package/dist/components/AccountPaymentMethods/AccountPaymentMethods.js +0 -3
  36. package/dist/components/AccountPaymentMethods/index.d.ts +0 -1
  37. package/dist/components/AccountPaymentMethods/index.js +0 -1
  38. package/dist/components/AccountVerification/AccountVerificationContext.d.ts +0 -14
  39. package/dist/components/AccountVerification/AccountVerificationContext.js +0 -27
  40. package/dist/components/AccountVerification/VerificationCapture.d.ts +0 -1
  41. package/dist/components/AccountVerification/VerificationCapture.js +0 -28
  42. package/dist/components/AccountVerification/VerificationComplete.d.ts +0 -1
  43. package/dist/components/AccountVerification/VerificationComplete.js +0 -9
  44. package/dist/components/AccountVerification/VerificationDetails.d.ts +0 -1
  45. package/dist/components/AccountVerification/VerificationDetails.js +0 -38
  46. package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +0 -5
  47. package/dist/components/GamesSearch/GamesSearchTrigger.js +0 -14
  48. package/dist/components/KYC/AccountVerificationContext.d.ts +0 -14
  49. package/dist/components/KYC/AccountVerificationContext.js +0 -27
  50. package/dist/components/KYC/VerificationCapture.d.ts +0 -1
  51. package/dist/components/KYC/VerificationCapture.js +0 -28
  52. package/dist/components/KYC/VerificationComplete.d.ts +0 -1
  53. package/dist/components/KYC/VerificationComplete.js +0 -9
  54. package/dist/components/KYC/VerificationDetails.d.ts +0 -1
  55. package/dist/components/KYC/VerificationDetails.js +0 -38
@@ -1,38 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { ark } from '@ark-ui/react';
3
- import { twMerge } from 'tailwind-merge';
4
- import { useMemberVerificationQuery, useProfileCompletionQuery, } from '../../client/hooks/index.js';
5
- import { AlertCircleIcon, CheckVerified02Icon, CreditCard02Icon, FaceIdIcon, FileCheck02Icon, FileSearch02Icon, FileX02Icon, Globe05Icon, } from '../../icons/index.js';
6
- import { Button } from '../../ui/index.js';
7
- import { useAccountVerificationContext } from './AccountVerificationContext.js';
8
- export function VerificationDetails() {
9
- const context = useAccountVerificationContext();
10
- const profileCompletionQuery = useProfileCompletionQuery();
11
- const profileCompletion = profileCompletionQuery.data;
12
- const verificationQuery = useMemberVerificationQuery();
13
- const verification = verificationQuery.data;
14
- const empty = verification == null;
15
- const pending = verification?.status === 'PENDING';
16
- const success = verification?.status === 'VERIFIED' || verification?.status === 'APPROVED';
17
- const failed = verification?.status === 'REJECTED' ||
18
- verification?.status === 'UNVERIFIED';
19
- if (context.started)
20
- return null;
21
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-start gap-8", children: [_jsxs("div", { className: "grow", children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verify your identity" }), _jsx("p", { className: "text-text-tertiary-600 text-sm", children: "Complete personal verification to unlock all features and enhance account security." })] }), _jsx(ark.svg, { asChild: true, className: twMerge('size-6', profileCompletion?.accountVerification
22
- ? 'text-text-success-primary'
23
- : 'text-text-warning-primary'), children: profileCompletion?.accountVerification ? (_jsx(CheckVerified02Icon, {})) : (_jsx(AlertCircleIcon, {})) })] }), _jsxs("div", { className: "shadow-xs border-border-secondary bg-bg-primary-alt mt-5 rounded-xl border", children: [_jsx("div", { className: "px-4 py-5", children: _jsxs("ul", { className: "space-y-lg", children: [_jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(FileCheck02Icon, {}), "Basic Information"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(Globe05Icon, {}), "Proof of address"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(CreditCard02Icon, {}), "Government ID"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(FaceIdIcon, {}), "Facial Verification"] })] }) }), _jsx("div", { className: "border-border-secondary flex justify-end border-t px-4 py-3 lg:py-xl", children: _jsx(Button, { size: "sm", onClick: () => {
24
- context.setStarted(true);
25
- }, className: "w-full lg:w-fit", children: "Verify Now" }) })] }), success && _jsx(VerificationSuccess, {}), pending && _jsx(VerificationInProgress, {}), failed && _jsx(VerificationFailed, {}), empty && _jsx(VerificationNotSubmitted, {})] }));
26
- }
27
- function VerificationNotSubmitted() {
28
- return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-warning-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-warning-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(AlertCircleIcon, { className: "text-text-warning-primary size-5" }) }) }), _jsx("p", { className: "text-text-tertiary-600 max-w-[800px] text-sm", children: "To serve you better and unlock all features, please provide valid identification documents. This helps protect your account and makes recovery easier if ever needed." })] }));
29
- }
30
- function VerificationInProgress() {
31
- return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-warning-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-warning-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileSearch02Icon, { className: "text-text-warning-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Under review" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "To serve you better and unlock all features, please provide valid identification documents. This helps protect your account and makes recovery easier if ever needed." })] })] }));
32
- }
33
- function VerificationSuccess() {
34
- return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-success-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-success-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileCheck02Icon, { className: "text-text-success-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verification successful" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "Your account has been successfully verified. You now have full access to all features and improved account security." })] })] }));
35
- }
36
- function VerificationFailed() {
37
- return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-error-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-error-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileX02Icon, { className: "text-text-error-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verification failed" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "There was an issue with the verification process. Please try again or contact support for assistance." })] })] }));
38
- }