@opexa/portal-components 0.0.403 → 0.0.405
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.
- package/dist/components/Account/Account.lazy.d.ts +6 -0
- package/dist/components/Account/Account.lazy.js +10 -10
- package/dist/components/Bonuses/Bonuses.client.d.ts +2 -1
- package/dist/components/Disclaimer/DisclaimerV2.d.ts +1 -0
- package/dist/components/Disclaimer/DisclaimerV2.js +1 -1
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -1
- package/dist/components/GameProviders/GameProvidersCarousel.d.ts +2 -1
- package/dist/components/GameProviders/GameProvidersList.d.ts +2 -1
- package/dist/components/Games/GamesCarousel.client.d.ts +2 -1
- package/dist/components/Games/GamesList.client.d.ts +2 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.d.ts +2 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +2 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsList.js +1 -1
- package/dist/components/NewsFeed/NewsFeedCarousel.d.ts +2 -2
- package/dist/components/NewsFeed/NewsFeedList.d.ts +2 -2
- package/dist/components/Promos/PromosCarousel.d.ts +2 -1
- package/dist/components/Promos/PromosGrid.d.ts +2 -1
- package/dist/components/Quests/Quests.client.d.ts +2 -2
- package/dist/components/TopWins/TopWins.client.d.ts +2 -1
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.d.ts +2 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsList.d.ts +2 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsList.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.js +24 -0
- package/dist/handlers/index.d.ts +7 -7
- package/dist/types/index.d.ts +1 -1
- package/dist/ui/AlertDialog/AlertDialog.d.ts +187 -187
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +17 -17
- package/dist/ui/Avatar/Avatar.d.ts +9 -9
- package/dist/ui/Avatar/avatar.recipe.d.ts +3 -3
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +45 -45
- package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +8 -8
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +187 -187
- package/dist/ui/Dialog/dialog.recipe.d.ts +17 -17
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +360 -360
- package/dist/ui/Menu/menu.recipe.d.ts +20 -20
- package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
- package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/PinInput/PinInput.d.ts +12 -12
- package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
- package/dist/ui/Popover/Popover.d.ts +187 -187
- package/dist/ui/Popover/popover.recipe.d.ts +17 -17
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/ui/Tooltip/Tooltip.d.ts +48 -48
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +8 -8
- package/package.json +1 -1
|
@@ -3,6 +3,12 @@ export interface ClassNameEntries {
|
|
|
3
3
|
walletActions?: string;
|
|
4
4
|
withdrawButton?: string;
|
|
5
5
|
depositButton?: string;
|
|
6
|
+
navItemRoot?: string;
|
|
7
|
+
navItemLink?: string;
|
|
8
|
+
navItemIcon?: string;
|
|
9
|
+
navItemLabel?: string;
|
|
10
|
+
navItemBadge?: string;
|
|
11
|
+
navItemIndicator?: string;
|
|
6
12
|
}
|
|
7
13
|
export interface AccountProps {
|
|
8
14
|
className?: string | ClassNameEntries;
|
|
@@ -68,14 +68,14 @@ export function Account(props) {
|
|
|
68
68
|
}, lazyMount: true, unmountOnExit: true, children: _jsx(Portal, { children: _jsx(Drawer.Positioner, { children: _jsxs(Drawer.Content, { className: twMerge('relative', 'flex', 'flex-col', 'top-[var(--offset-top-mobile)]', 'h-[calc(100%-var(--offset-top-mobile))]', 'w-full', 'px-xl', 'py-6', 'lg:top-[var(--offset-top-desktop)]', 'lg:h-[calc(100%-var(--offset-top-desktop))]', 'overflow-auto', classNames.root), style: {
|
|
69
69
|
['--offset-top-mobile']: mobileOffsetTop,
|
|
70
70
|
['--offset-top-desktop']: desktopOffsetTop,
|
|
71
|
-
}, children: [_jsx(Profile, {}), _jsx(Wallet, { classNames: classNames }), _jsx(Links, { router: router })] }) }) }) }), _jsx(Popover.Root, { open: globalStore.account.open, onOpenChange: (details) => {
|
|
71
|
+
}, children: [_jsx(Profile, {}), _jsx(Wallet, { classNames: classNames }), _jsx(Links, { router: router, classNames: classNames })] }) }) }) }), _jsx(Popover.Root, { open: globalStore.account.open, onOpenChange: (details) => {
|
|
72
72
|
globalStore.account.setOpen(details.open);
|
|
73
73
|
}, lazyMount: true, unmountOnExit: true, positioning: {
|
|
74
74
|
placement: 'bottom',
|
|
75
75
|
strategy: 'fixed',
|
|
76
76
|
}, ids: {
|
|
77
77
|
trigger: 'opexa-portal-components:account-trigger',
|
|
78
|
-
}, children: _jsx(Portal, { children: _jsx(Popover.Positioner, { children: _jsxs(Popover.Content, { className: "relative z-popover w-[23.438rem] ui-closed:animate-fade-out ui-open:animate-fade-in overflow-hidden rounded-xl border border-border-primary bg-bg-primary p-xl", children: [_jsx(Profile, {}), _jsx(Wallet, { classNames: classNames }), _jsx(Links, { router: router })] }) }) }) })] }));
|
|
78
|
+
}, children: _jsx(Portal, { children: _jsx(Popover.Positioner, { children: _jsxs(Popover.Content, { className: "relative z-popover w-[23.438rem] ui-closed:animate-fade-out ui-open:animate-fade-in overflow-hidden rounded-xl border border-border-primary bg-bg-primary p-xl", children: [_jsx(Profile, {}), _jsx(Wallet, { classNames: classNames }), _jsx(Links, { router: router, classNames: classNames })] }) }) }) })] }));
|
|
79
79
|
}
|
|
80
80
|
function Profile() {
|
|
81
81
|
const accountQuery = useAccountQuery();
|
|
@@ -116,7 +116,7 @@ function Wallet({ classNames }) {
|
|
|
116
116
|
globalStore.mobileProfile.setOpen(false);
|
|
117
117
|
}, children: "Deposit" })] })] }));
|
|
118
118
|
}
|
|
119
|
-
function Links({ router }) {
|
|
119
|
+
function Links({ router, classNames }) {
|
|
120
120
|
const accountProps = useAccountPropsContext();
|
|
121
121
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
122
122
|
account: ctx.account,
|
|
@@ -140,26 +140,26 @@ function Links({ router }) {
|
|
|
140
140
|
const cashbackBonusesCountQuery = useCashbackBonusesCountQuery();
|
|
141
141
|
const cashbackBonusesCount = cashbackBonusesCountQuery.data ?? 0;
|
|
142
142
|
const rewardsCount = bonusesCount + cashbackBonusesCount;
|
|
143
|
-
return (_jsxs("nav", { className: recipe.nav({ className: 'mt-xl' }), children: [_jsxs("ul", { hidden: !accountProps.notificationsEnabled && !accountProps.rewardsEnabled, children: [_jsx("li", { className: recipe.navItemRoot(), hidden: !accountProps.notificationsEnabled, children: _jsxs("button", { type: "button", className: recipe.navItemLink(), onClick: () => {
|
|
143
|
+
return (_jsxs("nav", { className: recipe.nav({ className: 'mt-xl' }), children: [_jsxs("ul", { hidden: !accountProps.notificationsEnabled && !accountProps.rewardsEnabled, children: [_jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), hidden: !accountProps.notificationsEnabled, children: _jsxs("button", { type: "button", className: twMerge(recipe.navItemLink(), classNames.navItemLink), onClick: () => {
|
|
144
144
|
globalStore.account.setOpen(false);
|
|
145
145
|
globalStore.account__mobile.setOpen(false);
|
|
146
146
|
globalStore.messages.setOpen(true);
|
|
147
|
-
}, children: [_jsx(Bell01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Notifications" }), unreadMessagesCount > 0 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "warning", children: unreadMessagesCount })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), hidden: !accountProps.rewardsEnabled, children: _jsxs(Link, { href: accountProps.rewardsUrl, className: recipe.navItemLink(), onClick: () => {
|
|
147
|
+
}, children: [_jsx(Bell01Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Notifications" }), unreadMessagesCount > 0 && (_jsx("span", { className: twMerge(recipe.navItemBadge(), classNames.navItemBadge), "data-type": "warning", children: unreadMessagesCount })), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) }), _jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), hidden: !accountProps.rewardsEnabled, children: _jsxs(Link, { href: accountProps.rewardsUrl, className: twMerge(recipe.navItemLink(), classNames.navItemLink), onClick: () => {
|
|
148
148
|
globalStore.account.setOpen(false);
|
|
149
149
|
globalStore.account__mobile.setOpen(false);
|
|
150
|
-
}, children: [_jsx(Gift01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Rewards" }), rewardsCount > 0 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "warning", children: rewardsCount })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }), _jsx("ul", { hidden: !accountProps.accountSettingsEnabled, children: _jsx("li", { className: recipe.navItemRoot(), hidden: !accountProps.accountSettingsEnabled, children: _jsxs(Link, { href: accountProps.accountSettingsUrl, className: recipe.navItemLink(), onClick: () => {
|
|
150
|
+
}, children: [_jsx(Gift01Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Rewards" }), rewardsCount > 0 && (_jsx("span", { className: twMerge(recipe.navItemBadge(), classNames.navItemBadge), "data-type": "warning", children: rewardsCount })), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) })] }), _jsx("ul", { hidden: !accountProps.accountSettingsEnabled, children: _jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), hidden: !accountProps.accountSettingsEnabled, children: _jsxs(Link, { href: accountProps.accountSettingsUrl, className: twMerge(recipe.navItemLink(), classNames.navItemLink), onClick: () => {
|
|
151
151
|
globalStore.account.setOpen(false);
|
|
152
152
|
globalStore.account__mobile.setOpen(false);
|
|
153
|
-
}, children: [_jsx(Settings02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Settings" }), profileCompletionPercentage < 100 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "error", children: _jsx(AlertCircleIcon, {}) })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }) }), _jsxs("ul", { hidden: !accountProps.betRecordsEnabled && !accountProps.transactionsEnabled, children: [_jsx("li", { className: recipe.navItemRoot(), hidden: !accountProps.betRecordsEnabled, children: _jsxs(Link, { href: accountProps.betRecordsUrl, className: recipe.navItemLink(), onClick: () => {
|
|
153
|
+
}, children: [_jsx(Settings02Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Settings" }), profileCompletionPercentage < 100 && (_jsx("span", { className: twMerge(recipe.navItemBadge(), classNames.navItemBadge), "data-type": "error", children: _jsx(AlertCircleIcon, {}) })), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) }) }), _jsxs("ul", { hidden: !accountProps.betRecordsEnabled && !accountProps.transactionsEnabled, children: [_jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), hidden: !accountProps.betRecordsEnabled, children: _jsxs(Link, { href: accountProps.betRecordsUrl, className: twMerge(recipe.navItemLink(), classNames.navItemLink), onClick: () => {
|
|
154
154
|
globalStore.account.setOpen(false);
|
|
155
155
|
globalStore.account__mobile.setOpen(false);
|
|
156
|
-
}, children: [_jsx(CoinsStacked02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Bet Records" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), hidden: !accountProps.transactionsEnabled, children: _jsxs(Link, { href: accountProps.transactionsUrl, className: recipe.navItemLink(), onClick: () => {
|
|
156
|
+
}, children: [_jsx(CoinsStacked02Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Bet Records" }), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) }), _jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), hidden: !accountProps.transactionsEnabled, children: _jsxs(Link, { href: accountProps.transactionsUrl, className: twMerge(recipe.navItemLink(), classNames.navItemLink), onClick: () => {
|
|
157
157
|
globalStore.account.setOpen(false);
|
|
158
158
|
globalStore.account__mobile.setOpen(false);
|
|
159
|
-
}, children: [_jsx(CoinsSwap02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Transactions" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }), _jsx("ul", { children: _jsx("li", { className: recipe.navItemRoot(), children: _jsxs("button", { type: "button", className: recipe.navItemLink(), disabled: signOutMutation.isPending, onClick: () => {
|
|
159
|
+
}, children: [_jsx(CoinsSwap02Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Transactions" }), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) })] }), _jsx("ul", { children: _jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), children: _jsxs("button", { type: "button", className: twMerge(recipe.navItemLink(), classNames.navItemLink), disabled: signOutMutation.isPending, onClick: () => {
|
|
160
160
|
signOutMutation.mutate();
|
|
161
161
|
globalStore.account.setOpen(false);
|
|
162
162
|
globalStore.account__mobile.setOpen(false);
|
|
163
163
|
router.push('/');
|
|
164
|
-
}, children: [_jsx(Logout01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Log Out" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }) })] }));
|
|
164
|
+
}, children: [_jsx(Logout01Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Log Out" }), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) }) })] }));
|
|
165
165
|
}
|
|
@@ -4,6 +4,7 @@ export interface DisclaimerV2Props {
|
|
|
4
4
|
logo: ImageProps['src'];
|
|
5
5
|
siteName: string;
|
|
6
6
|
responsibleGamingLogo?: ImageProps['src'];
|
|
7
|
+
pagcorLogo?: ImageProps['src'];
|
|
7
8
|
redirectUrlOnNoConsent?: string;
|
|
8
9
|
}
|
|
9
10
|
export declare function DisclaimerV2(props: DisclaimerV2Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,7 +22,7 @@ export function DisclaimerV2(props) {
|
|
|
22
22
|
})));
|
|
23
23
|
const checked = globalStore.termsOfUse.accepted && globalStore.responsibleGaming.accepted;
|
|
24
24
|
const [showWarning, setShowWarning] = useState(false);
|
|
25
|
-
return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "flex h-full scrollbar:h-2 scrollbar:w-2 w-full flex-col items-start gap-y-4 overflow-y-auto scrollbar-thumb:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent p-3xl lg:mx-auto lg:h-auto lg:max-h-[80vh] lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt:
|
|
25
|
+
return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "flex h-full scrollbar:h-2 scrollbar:w-2 w-full flex-col items-start gap-y-4 overflow-y-auto scrollbar-thumb:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent p-3xl lg:mx-auto lg:h-auto lg:max-h-[80vh] lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "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 }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false })] }), _jsx("div", { className: "text-sm", children: "The following individuals are prohibited from registering or participating in this online gaming platform." }), _jsx("div", { className: "w-full grow", children: _jsxs(Dialog.Description, { className: "space-y-4 text-sm", children: [_jsxs("ul", { className: "space-y-1.5 text-left", children: [_jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Persons below the legal gambling age of 21."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Any government official or employee directly involved in the operations of the government or its agencies."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Member of the Armed Forces of the Philippines, including the Army, Navy, Air Force and the Philippine National Police."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Individuals listed in PAGCOR's National Database of Restricted Persons (NDRP)"] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Holders of a valid Gaming Employment License (GEL)"] })] }), _jsxs(Checkbox.Root, { checked: checked, onCheckedChange: (e) => {
|
|
26
26
|
if (e.checked === 'indeterminate')
|
|
27
27
|
return;
|
|
28
28
|
globalStore.termsOfUse.setAccepted(e.checked);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
interface ClassNameEntries {
|
|
2
3
|
root?: string;
|
|
3
4
|
thumbnailRoot?: string;
|
|
@@ -6,7 +7,7 @@ interface ClassNameEntries {
|
|
|
6
7
|
export interface FavoriteGamesProps {
|
|
7
8
|
className?: string | ClassNameEntries;
|
|
8
9
|
/** @default 'Favorite Games' */
|
|
9
|
-
heading?: string;
|
|
10
|
+
heading?: string | ReactNode;
|
|
10
11
|
}
|
|
11
12
|
export declare function FavoriteGames__client(props: FavoriteGamesProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
13
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ImageProps } from 'next/image';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
2
3
|
import type { GameProvider, GameProviderData } from '../../types';
|
|
3
4
|
export interface ClassNameEntries {
|
|
4
5
|
root?: string;
|
|
@@ -8,7 +9,7 @@ export interface ClassNameEntries {
|
|
|
8
9
|
export interface GameProvidersCarouselProps {
|
|
9
10
|
layout: 'carousel';
|
|
10
11
|
gameProviders: GameProvider[];
|
|
11
|
-
heading?: string;
|
|
12
|
+
heading?: string | ReactNode;
|
|
12
13
|
/**
|
|
13
14
|
* @default '/providers'
|
|
14
15
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ImageProps } from 'next/image';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
import type { GameProvider, GameProviderData } from '../../types';
|
|
3
4
|
export interface ClassNameEntries {
|
|
4
5
|
root?: string;
|
|
@@ -11,7 +12,7 @@ export interface ClassNameEntries {
|
|
|
11
12
|
export interface GameProvidersListProps {
|
|
12
13
|
layout: 'list';
|
|
13
14
|
gameProviders: GameProvider[];
|
|
14
|
-
heading?: string;
|
|
15
|
+
heading?: string | ReactNode;
|
|
15
16
|
/**
|
|
16
17
|
* @default '/providers/<slug>'
|
|
17
18
|
* @example
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import type { GamesInput__Next } from '../../services/cmsPortal';
|
|
2
3
|
interface ClassNameEntries {
|
|
3
4
|
root?: string;
|
|
@@ -7,7 +8,7 @@ interface ClassNameEntries {
|
|
|
7
8
|
export interface GamesCarouselProps {
|
|
8
9
|
layout: 'carousel';
|
|
9
10
|
/** @default "Games" */
|
|
10
|
-
heading?: string;
|
|
11
|
+
heading?: string | ReactNode;
|
|
11
12
|
/**
|
|
12
13
|
* @description URL for viewing all games
|
|
13
14
|
* @default "/games"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import type { GamesInput__Next } from '../../services/cmsPortal';
|
|
2
3
|
interface ClassNameEntries {
|
|
3
4
|
root?: string;
|
|
@@ -16,7 +17,7 @@ export interface GamesListProps {
|
|
|
16
17
|
sort?: GamesInput__Next['sort'];
|
|
17
18
|
search?: string;
|
|
18
19
|
/** @default "Games"*/
|
|
19
|
-
heading?: string;
|
|
20
|
+
heading?: string | ReactNode;
|
|
20
21
|
viewGameProvidersUrl?: string;
|
|
21
22
|
className?: string | ClassNameEntries;
|
|
22
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CSSProperties } from 'react';
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
export interface ClassNameEntries {
|
|
3
3
|
root?: string;
|
|
4
4
|
itemRoot?: string;
|
|
@@ -23,7 +23,7 @@ interface StyleEntries {
|
|
|
23
23
|
export interface JackpotsCarouselProps {
|
|
24
24
|
layout: 'carousel';
|
|
25
25
|
/** @default "Promos" */
|
|
26
|
-
heading?: string;
|
|
26
|
+
heading?: string | ReactNode;
|
|
27
27
|
/** @default "/jackpots" */
|
|
28
28
|
viewAllUrl?: string;
|
|
29
29
|
className?: string | ClassNameEntries;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ImageProps } from 'next/image';
|
|
2
|
-
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import type { GameProvider, GameProviderData } from '../../../types';
|
|
4
4
|
export interface ClassNameEntries {
|
|
5
5
|
root?: string;
|
|
@@ -32,7 +32,7 @@ interface StyleEntries {
|
|
|
32
32
|
export interface JackpotsListProps {
|
|
33
33
|
layout: 'list';
|
|
34
34
|
/** @default "Jackpots" */
|
|
35
|
-
heading?: string;
|
|
35
|
+
heading?: string | ReactNode;
|
|
36
36
|
className?: string | ClassNameEntries;
|
|
37
37
|
style?: CSSProperties | StyleEntries;
|
|
38
38
|
gameProviders: GameProvider[];
|
|
@@ -31,5 +31,5 @@ export function JackpotsList(props) {
|
|
|
31
31
|
const classNames = isString(props.className)
|
|
32
32
|
? { root: props.className }
|
|
33
33
|
: (props.className ?? {});
|
|
34
|
-
return (_jsx(JackpotsListPropsContext, { value: props, children: _jsxs("div", { style: styles.root, className: classNames.root, children: [_jsx("div", { className: "mb-3 font-semibold text-lg lg:mb-4.5", children: props.heading ?? 'Jackpots' }), jackpots.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "hidden flex-col gap-6 lg:flex", children: jackpots.map((jackpot) => (_jsx(JackpotsListItemContext, { value: jackpot, children: _jsx(JackpotsListItemDesktop, { style: styles.itemRoot, className: classNames, animate: props.animate, customJackpotChestImage: props.customJackpotChestImage, jackpotProfileShape: props.jackpotProfileShape }) }, jackpot.id))) }), _jsx("div", { className: "flex flex-col gap-6 lg:hidden", children: jackpots.map((jackpot) => (_jsx(JackpotsListItemContext, { value: jackpot, children: _jsx(JackpotsListItemMobile, { style: styles.itemRoot, className: classNames, animate: props.animate, customJackpotChestImage: props.customJackpotChestImage, jackpotProfileShape: props.jackpotProfileShape }) }, jackpot.id))) })] })) : (_jsxs("div", { className: "mt-5 flex h-fit flex-col items-center justify-center lg:mt-0 lg:h-62", children: [_jsx(Image, { width: 100, height: 100, src: closeChest, alt: "closeChest", className: "size-full h-29.5 w-29.5 mix-blend-luminosity lg:h-25 lg:w-25" }),
|
|
34
|
+
return (_jsx(JackpotsListPropsContext, { value: props, children: _jsxs("div", { style: styles.root, className: classNames.root, children: [_jsx("div", { className: "mb-3 font-semibold text-lg lg:mb-4.5", children: props.heading ?? 'Jackpots' }), jackpots.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "hidden flex-col gap-6 lg:flex", children: jackpots.map((jackpot) => (_jsx(JackpotsListItemContext, { value: jackpot, children: _jsx(JackpotsListItemDesktop, { style: styles.itemRoot, className: classNames, animate: props.animate, customJackpotChestImage: props.customJackpotChestImage, jackpotProfileShape: props.jackpotProfileShape }) }, jackpot.id))) }), _jsx("div", { className: "flex flex-col gap-6 lg:hidden", children: jackpots.map((jackpot) => (_jsx(JackpotsListItemContext, { value: jackpot, children: _jsx(JackpotsListItemMobile, { style: styles.itemRoot, className: classNames, animate: props.animate, customJackpotChestImage: props.customJackpotChestImage, jackpotProfileShape: props.jackpotProfileShape }) }, jackpot.id))) })] })) : (_jsxs("div", { className: "mt-5 flex h-fit flex-col items-center justify-center lg:mt-0 lg:h-62", children: [_jsx(Image, { width: 100, height: 100, src: closeChest, alt: "closeChest", className: "size-full h-29.5 w-29.5 mix-blend-luminosity lg:h-25 lg:w-25" }), _jsx("div", { className: "mt-4 font-semibold text-base text-text-primary-900", children: "No Jackpots" }), _jsxs("div", { className: "mt-1 text-center text-sm text-text-tertiary-600", children: ["No jackpots are running at the moment. ", _jsx("br", {}), "Please check back later!"] })] }))] }) }));
|
|
35
35
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type CSSProperties } from 'react';
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
import type { News as TNews } from '../../types';
|
|
3
3
|
export interface NewsFeedCarouselProps {
|
|
4
4
|
layout: 'carousel';
|
|
5
5
|
newsFeed: TNews[];
|
|
6
6
|
/** @default 'News' */
|
|
7
|
-
heading?: string;
|
|
7
|
+
heading?: string | ReactNode;
|
|
8
8
|
/** @default '/news' */
|
|
9
9
|
viewAllUrl?: string;
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import type { News as TNews } from '../../types';
|
|
3
3
|
export interface NewsFeedListProps {
|
|
4
4
|
layout: 'list';
|
|
5
5
|
newsFeed: TNews[];
|
|
6
6
|
/** @default 'News' */
|
|
7
|
-
heading?: string;
|
|
7
|
+
heading?: string | ReactNode;
|
|
8
8
|
/**
|
|
9
9
|
* @default '/news'
|
|
10
10
|
* @example
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import type { CustomPromo as TCustomPromo } from '../../types';
|
|
2
3
|
export interface PromosCarouselProps {
|
|
3
4
|
layout: 'carousel';
|
|
4
5
|
/** @default "Promotions" */
|
|
5
|
-
heading?: string;
|
|
6
|
+
heading?: string | ReactNode;
|
|
6
7
|
/** @default "/promos" */
|
|
7
8
|
viewAllUrl?: string;
|
|
8
9
|
/** @default "/promos" */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import type { CustomPromo as TCustomPromo } from '../../types';
|
|
2
3
|
export interface PromosGridProps {
|
|
3
4
|
layout: 'grid';
|
|
4
5
|
/** @default "Promotions" */
|
|
5
|
-
heading?: string;
|
|
6
|
+
heading?: string | ReactNode;
|
|
6
7
|
/** @default "/promos" */
|
|
7
8
|
viewPromoDetailsUrl?: string;
|
|
8
9
|
/** @default "/promos/cashback" */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type CSSProperties } from 'react';
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
export interface QuestsProps {
|
|
3
3
|
/** @default "Quests" */
|
|
4
|
-
heading?: string;
|
|
4
|
+
heading?: string | ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
export interface TopWinsProps {
|
|
2
3
|
/** @default "Recent Big Wins" */
|
|
3
|
-
heading?: string;
|
|
4
|
+
heading?: string | ReactNode;
|
|
4
5
|
className?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare function TopWins__client(props: TopWinsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CSSProperties } from 'react';
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
interface ClassNameEntries {
|
|
3
3
|
root?: string;
|
|
4
4
|
itemRoot?: string;
|
|
@@ -16,7 +16,7 @@ interface StyleEntries {
|
|
|
16
16
|
export interface TournamentsCarouselProps {
|
|
17
17
|
layout: 'carousel';
|
|
18
18
|
/** @default "Tournaments" */
|
|
19
|
-
heading?: string;
|
|
19
|
+
heading?: string | ReactNode;
|
|
20
20
|
/** @default "/tournaments" */
|
|
21
21
|
viewAllUrl?: string;
|
|
22
22
|
className?: string | ClassNameEntries;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import type { GameProvider, GameProviderData } from '../../../types';
|
|
3
3
|
interface ClassNameEntries {
|
|
4
4
|
root?: string;
|
|
@@ -17,7 +17,7 @@ interface StyleEntries {
|
|
|
17
17
|
export interface TournamentsListProps {
|
|
18
18
|
layout: 'list';
|
|
19
19
|
/** @default "Tournaments" */
|
|
20
|
-
heading?: string;
|
|
20
|
+
heading?: string | ReactNode;
|
|
21
21
|
className?: string | ClassNameEntries;
|
|
22
22
|
style?: CSSProperties | StyleEntries;
|
|
23
23
|
gameProviders: GameProvider[];
|
|
@@ -50,5 +50,5 @@ export function TournamentsList({ style, className, ...props }) {
|
|
|
50
50
|
badgeRoot: classNames.itemBadgeRoot,
|
|
51
51
|
badgeLabel: classNames.itemBadgeLabel,
|
|
52
52
|
badgeIcon: classNames.itemBadgeIcon,
|
|
53
|
-
} }) }, tournament.id))) })] })) : (_jsxs("div", { className: "mt-11 flex flex-col items-center justify-center", children: [_jsx(Image, { width: 100, height: 100, src: closeChest, alt: "closeChest", className: "size-full h-29.5 w-29.5 mix-blend-luminosity lg:h-25 lg:w-25" }), _jsx("div", { className: "mt-4 font-semibold text-base text-text-primary-900", children:
|
|
53
|
+
} }) }, tournament.id))) })] })) : (_jsxs("div", { className: "mt-11 flex flex-col items-center justify-center", children: [_jsx(Image, { width: 100, height: 100, src: closeChest, alt: "closeChest", className: "size-full h-29.5 w-29.5 mix-blend-luminosity lg:h-25 lg:w-25" }), _jsx("div", { className: "mt-4 font-semibold text-base text-text-primary-900", children: "No Tournaments" }), _jsxs("div", { className: "mt-1 text-center text-sm text-text-tertiary-600", children: ["No tournaments are running at the moment. ", _jsx("br", {}), "Please check back later!"] })] }))] }) }));
|
|
54
54
|
}
|
|
@@ -71,13 +71,37 @@ const TRANSACTION_TYPES = [
|
|
|
71
71
|
'BET',
|
|
72
72
|
'PAYOUT',
|
|
73
73
|
'BONUS',
|
|
74
|
+
'POINTS_TO_CASH_CONVERSION',
|
|
75
|
+
'CASHBACK_BONUS',
|
|
76
|
+
'WITHDRAWAL_REFUND',
|
|
77
|
+
'BET_REFUND',
|
|
78
|
+
'BONUS_PAYOUT',
|
|
79
|
+
'BONUS_BET',
|
|
80
|
+
'BONUS_CREATED',
|
|
81
|
+
'BONUS_CANCELLED',
|
|
82
|
+
'BONUS_CLEARED',
|
|
83
|
+
'BONUS_ZEROED_OUT',
|
|
84
|
+
'JACKPOT_PAYOUT',
|
|
85
|
+
'TOURNAMENT_PAYOUT',
|
|
74
86
|
];
|
|
75
87
|
const TRANSACTION_TYPES_MAP = {
|
|
76
88
|
DEPOSIT: 'Deposit',
|
|
77
89
|
WITHDRAWAL: 'Withdrawal',
|
|
78
90
|
BET: 'Bet',
|
|
79
91
|
PAYOUT: 'Win',
|
|
92
|
+
POINTS_TO_CASH_CONVERSION: 'Points to Cash Conversion',
|
|
80
93
|
BONUS: 'Bonus',
|
|
94
|
+
CASHBACK_BONUS: 'Cashback Bonus',
|
|
95
|
+
WITHDRAWAL_REFUND: 'Withdrawal Refund',
|
|
96
|
+
BET_REFUND: 'Bet Refund',
|
|
97
|
+
BONUS_PAYOUT: 'Bonus Payout',
|
|
98
|
+
BONUS_BET: 'Bonus Bet',
|
|
99
|
+
BONUS_CREATED: 'Bonus Created',
|
|
100
|
+
BONUS_CANCELLED: 'Bonus Cancelled',
|
|
101
|
+
BONUS_CLEARED: 'Bonus Cleared',
|
|
102
|
+
BONUS_ZEROED_OUT: 'Bonus Zeroed Out',
|
|
103
|
+
JACKPOT_PAYOUT: 'Jackpot Payout',
|
|
104
|
+
TOURNAMENT_PAYOUT: 'Tournament Payout',
|
|
81
105
|
};
|
|
82
106
|
const deviceTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
83
107
|
const depositTypeCollection = createListCollection({
|
package/dist/handlers/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -399,7 +399,7 @@ export interface CashbackBonus {
|
|
|
399
399
|
dateTimeCreated: string;
|
|
400
400
|
dateTimeLastUpdated: string;
|
|
401
401
|
}
|
|
402
|
-
export type TransactionType = 'DEPOSIT' | 'PAYOUT' | 'WITHDRAWAL_REFUND' | 'TRANSFER_IN' | 'WITHDRAWAL' | 'BET' | 'TRANSFER_OUT' | 'ROLLBACK' | 'BET_REFUND' | 'PAYOUT_REFUND' | 'CASHBACK_BONUS' | 'BONUS' | 'POINTS_TO_CASH_CONVERSION' | 'BONUS_PAYOUT' | 'BONUS_BET' | 'BONUS_CLEARED' | 'BONUS_CREATED' | 'BONUS_ZEROED_OUT' | 'BONUS_CANCELLED';
|
|
402
|
+
export type TransactionType = 'DEPOSIT' | 'PAYOUT' | 'WITHDRAWAL_REFUND' | 'TRANSFER_IN' | 'WITHDRAWAL' | 'BET' | 'TRANSFER_OUT' | 'ROLLBACK' | 'BET_REFUND' | 'PAYOUT_REFUND' | 'CASHBACK_BONUS' | 'BONUS' | 'POINTS_TO_CASH_CONVERSION' | 'BONUS_PAYOUT' | 'BONUS_BET' | 'BONUS_CLEARED' | 'BONUS_CREATED' | 'BONUS_ZEROED_OUT' | 'BONUS_CANCELLED' | 'JACKPOT_PAYOUT' | 'TOURNAMENT_PAYOUT';
|
|
403
403
|
export interface TransactionRecord {
|
|
404
404
|
id: string;
|
|
405
405
|
type: TransactionType;
|