@opexa/portal-components 0.0.513 → 0.0.515

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 (51) hide show
  1. package/dist/components/KYC/KYCReminder.lazy.js +1 -1
  2. package/dist/components/Quests/JourneyQuest.js +3 -3
  3. package/dist/components/Quests/MultiWageringQuest.js +3 -3
  4. package/dist/handlers/index.d.ts +7 -7
  5. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  6. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  7. package/dist/ui/Badge/Badge.d.ts +12 -12
  8. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  9. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  10. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  11. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  12. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  13. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  14. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  15. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  16. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  17. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  18. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  19. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  20. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  21. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  22. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  23. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  24. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  25. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  26. package/dist/ui/Menu/Menu.d.ts +252 -252
  27. package/dist/ui/Menu/menu.recipe.d.ts +14 -14
  28. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  29. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  30. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  31. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  32. package/dist/ui/Popover/Popover.d.ts +55 -55
  33. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  34. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  35. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  36. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  37. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  38. package/dist/ui/Select/Select.d.ts +45 -45
  39. package/dist/ui/Select/select.recipe.d.ts +3 -3
  40. package/dist/ui/Table/Table.d.ts +21 -21
  41. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  42. package/dist/ui/Table/table.recipe.d.ts +3 -3
  43. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  44. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  45. package/package.json +1 -1
  46. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
  47. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
  48. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  49. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  50. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
  51. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
@@ -49,5 +49,5 @@ export function KYCReminder(props) {
49
49
  }, children: "Complete KYC" }) })) })] })] })), isNotVerified && !(daysFromCreationToNow <= 3 && daysFromCreationToNow >= 1) && !isVerificationLocked && (_jsxs(_Fragment, { children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto w-fit rounded-full bg-bg-primary p-2", children: _jsx(FileCheck02Icon, { className: "text-[#FEDF89]" }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "Personal Verification" }), _jsxs("p", { className: `mt-xs text-sm text-text-tertiary-600 ${props.descriptionBgColor}`, children: ["All new users are required to complete identity verification to access the full range of ", props.siteName, " services, including withdrawals."] }), _jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "mt-3xl space-y-lg", children: [_jsx(Button, { onClick: () => {
50
50
  api.setOpen(false);
51
51
  globalStore.kyc.setOpen(true);
52
- }, children: "Verify Now" }), _jsx(Button, { type: "button", variant: "outline", fullWidth: true, onClick: () => api.setOpen(false), children: "Do it later" })] })) })] })] })), isPending && (_jsx(_Fragment, { children: _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full bg-bg-primary p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("div", { className: "mx-auto w-fit rounded-full border border-[#932F19] bg-[#511C10] px-2.5 py-0.5", children: _jsx("p", { className: "text-sm font-medium text-[#F7B27A]", children: "Pending..." }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "VERIFICATION IN PROGRESS" }), _jsx("p", { className: `mt-xs text-sm text-text-tertiary-600 ${props.descriptionBgColor}`, children: "Your account is verification-locked. Please wait for approval to regain full access to this platform." }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: props.pagcorLogo ?? pagcorLogo, alt: "PAGCOR logo", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false, unoptimized: true })] })] }) }))] }) })] }) }));
52
+ }, children: "Verify Now" }), _jsx(Button, { type: "button", variant: "outline", fullWidth: true, onClick: () => api.setOpen(false), children: "Do it later" })] })) })] })] })), isPending && (_jsx(_Fragment, { children: _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full bg-bg-primary p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("div", { className: "mx-auto w-fit rounded-full border border-[#F9DBAF] dark:border-[#932F19] bg-[#FEF6EE] dark:bg-[#511C10] px-2.5 py-0.5", children: _jsx("p", { className: "text-sm font-medium text-[#B93815] dark:text-[#F7B27A]", children: "Pending..." }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "VERIFICATION IN PROGRESS" }), _jsx("p", { className: `mt-xs text-sm text-text-tertiary-600 ${props.descriptionBgColor}`, children: "Your account is verification-locked. Please wait for approval to regain full access to this platform." }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: props.pagcorLogo ?? pagcorLogo, alt: "PAGCOR logo", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false, unoptimized: true })] })] }) }))] }) })] }) }));
53
53
  }
@@ -41,7 +41,7 @@ export function JourneyQuest(props) {
41
41
  };
42
42
  }
43
43
  const filteredMilestones = quest.milestones.filter((milestone) => {
44
- if (!featureFlag.enabled) {
44
+ if (!featureFlag.enabled && !window.location.href.includes('blucky')) {
45
45
  return (milestone.type !== 'LINK_FACEBOOK_ACCOUNT' &&
46
46
  milestone.type !== 'LINK_GOOGLE_ACCOUNT');
47
47
  }
@@ -124,8 +124,8 @@ function Rules(props) {
124
124
  }, "aria-label": `Complete ${milestone.label}`, children: [milestone.key === 'ACCOUNT_VERIFICATION' ? (_jsx(FileCheck02Icon, { className: "size-5" })) : (_jsx(CoinsHandIcon, { className: "size-5" })), milestone.key === 'FIRST_DEPOSIT'
125
125
  ? 'Deposit'
126
126
  : 'Verify Account'] })), !milestone.isCompleted &&
127
- milestone.key === 'LINK_FACEBOOK_ACCOUNT' && (_jsxs(_Fragment, { children: [milestone.bonus && (_jsxs("p", { className: 'text-sm text-[#94969C]', children: ["Link your Facebook Account and get Php ", milestone.bonus, " Bonus"] })), _jsx(FacebookSignInTrigger, { text: "Link Facebook Account", className: "!mt-0 flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })] })), !milestone.isCompleted &&
128
- milestone.key === 'LINK_GOOGLE_ACCOUNT' && (_jsxs(_Fragment, { children: [milestone.bonus && (_jsxs("p", { className: 'text-sm text-[#94969C]', children: ["Link your Google Account and get Php ", milestone.bonus, " Bonus"] })), _jsx(GoogleSignInButton, { text: "Link Google Account", className: "flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })] }))] }, milestone.key))), quest?.bonus && (_jsx("div", { className: "flex h-full items-end", children: allMilestonesCompleted ? (_jsx(Button, { size: "sm", onClick: () => setOpen(false), "aria-label": "Close", className: "w-full", children: "Close" })) : (_jsx("div", { className: "w-full rounded-md border border-bg-primary-hover bg-button-secondary-bg px-3.5 py-2.5 text-center text-white", children: _jsxs("p", { children: ["Complete target to", ' ', _jsxs("span", { className: "text-brand-400", children: ["\u20B1", quest?.bonus] }), ' ', "bonus!"] }) })) }))] })] }) })] }) }));
127
+ milestone.key === 'LINK_FACEBOOK_ACCOUNT' && (_jsxs(_Fragment, { children: [milestone.bonus && (_jsxs("p", { className: "text-[#94969C] text-sm", children: ["Link your Facebook Account and get Php", ' ', milestone.bonus, " Bonus"] })), _jsx(FacebookSignInTrigger, { text: "Link Facebook Account", className: "!mt-0 flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })] })), !milestone.isCompleted &&
128
+ milestone.key === 'LINK_GOOGLE_ACCOUNT' && (_jsxs(_Fragment, { children: [milestone.bonus && (_jsxs("p", { className: "text-[#94969C] text-sm", children: ["Link your Google Account and get Php", ' ', milestone.bonus, " Bonus"] })), _jsx(GoogleSignInButton, { text: "Link Google Account", className: "flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })] }))] }, milestone.key))), quest?.bonus && (_jsx("div", { className: "flex h-full items-end", children: allMilestonesCompleted ? (_jsx(Button, { size: "sm", onClick: () => setOpen(false), "aria-label": "Close", className: "w-full", children: "Close" })) : (_jsx("div", { className: "w-full rounded-md border border-bg-primary-hover bg-button-secondary-bg px-3.5 py-2.5 text-center text-white", children: _jsxs("p", { children: ["Complete target to", ' ', _jsxs("span", { className: "text-brand-400", children: ["\u20B1", quest?.bonus] }), ' ', "bonus!"] }) })) }))] })] }) })] }) }));
129
129
  }
130
130
  function QuestMilestone({ label, bonus, isCompleted = false, checkboxControlStyle, }) {
131
131
  const localeInfo = useLocaleInfo();
@@ -11,6 +11,7 @@ import { Button } from '../../ui/Button/index.js';
11
11
  import { Dialog } from '../../ui/Dialog/index.js';
12
12
  import { Portal } from '../../ui/Portal/index.js';
13
13
  import { Progress } from '../../ui/Progress/index.js';
14
+ import { Prose } from '../../ui/Prose/index.js';
14
15
  import { formatNumber } from '../../utils/formatNumber.js';
15
16
  import { useQuestContext } from './QuestsContext.js';
16
17
  import { RemainingTime } from './RemainingTime.js';
@@ -88,9 +89,8 @@ function Stages(props) {
88
89
  const stage = props?.stages?.findLastIndex((stage) => stage.cleared) ?? 0;
89
90
  return stage !== -1 ? stage + 1 : 1;
90
91
  }, [props.stages]);
91
- return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: open, onOpenChange: (details) => 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 mt-40 min-h-auto min-w-[23rem] max-w-[25rem] overflow-y-auto rounded-xl border border-border-wagering-popup px-4 py-5", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "group flex flex-col space-y-5 text-sm text-text-quarterary-brand", children: [_jsx("h2", { className: "font-semibold text-lg text-text-primary-900", children: props.quest?.name || 'Quest' }), _jsx("div", { className: "font-normal text-[#94969C] text-sm", dangerouslySetInnerHTML: {
92
- __html: props.quest?.description ||
93
- 'Ready for a challenge? Complete them all and get amazing rewards!',
92
+ return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: open, onOpenChange: (details) => 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 mt-40 min-h-auto min-w-[23rem] max-w-[25rem] overflow-y-auto rounded-xl border border-border-wagering-popup px-4 py-5", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "group flex flex-col space-y-5 text-sm text-text-quarterary-brand", children: [_jsx("h2", { className: "font-semibold text-lg text-text-primary-900", children: props.quest?.name || 'Quest' }), _jsx(Prose, { dangerouslySetInnerHTML: {
93
+ __html: props.quest?.description ?? '',
94
94
  } }), _jsx("div", { className: "flex w-full flex-col space-y-3", children: props.stages.map((stage, idx) => {
95
95
  if (currentStage >= idx + 1) {
96
96
  return (_jsx(QuestWageringStageUnlocked, { data: stage, progressValue: stage.progressValue, bonus: stage.bonusAmount, stage: idx, isCompleted: stage.cleared }, idx));
@@ -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;