@opexa/portal-components 0.0.403 → 0.0.404

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 (74) hide show
  1. package/dist/components/Bonuses/Bonuses.client.d.ts +2 -1
  2. package/dist/components/Disclaimer/DisclaimerV2.d.ts +1 -0
  3. package/dist/components/Disclaimer/DisclaimerV2.js +1 -1
  4. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -1
  5. package/dist/components/GameProviders/GameProvidersCarousel.d.ts +2 -1
  6. package/dist/components/GameProviders/GameProvidersList.d.ts +2 -1
  7. package/dist/components/Games/GamesCarousel.client.d.ts +2 -1
  8. package/dist/components/Games/GamesList.client.d.ts +2 -1
  9. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.d.ts +2 -2
  10. package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +2 -2
  11. package/dist/components/Jackpots/JackpotsList/JackpotsList.js +1 -1
  12. package/dist/components/NewsFeed/NewsFeedCarousel.d.ts +2 -2
  13. package/dist/components/NewsFeed/NewsFeedList.d.ts +2 -2
  14. package/dist/components/Promos/PromosCarousel.d.ts +2 -1
  15. package/dist/components/Promos/PromosGrid.d.ts +2 -1
  16. package/dist/components/Quests/Quests.client.d.ts +2 -2
  17. package/dist/components/TopWins/TopWins.client.d.ts +2 -1
  18. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.d.ts +2 -2
  19. package/dist/components/Tournaments/TournamentsList/TournamentsList.d.ts +2 -2
  20. package/dist/components/Tournaments/TournamentsList/TournamentsList.js +1 -1
  21. package/dist/components/TransactionRecords/TableFilters.js +24 -0
  22. package/dist/handlers/index.d.ts +7 -7
  23. package/dist/types/index.d.ts +1 -1
  24. package/dist/ui/AlertDialog/AlertDialog.d.ts +187 -187
  25. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +17 -17
  26. package/dist/ui/Avatar/Avatar.d.ts +9 -9
  27. package/dist/ui/Avatar/avatar.recipe.d.ts +3 -3
  28. package/dist/ui/Badge/Badge.d.ts +12 -12
  29. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  30. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  31. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  32. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  33. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  34. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  35. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  36. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  37. package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
  38. package/dist/ui/Collapsible/collapsible.recipe.d.ts +8 -8
  39. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  40. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  41. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  42. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  43. package/dist/ui/Dialog/Dialog.d.ts +187 -187
  44. package/dist/ui/Dialog/dialog.recipe.d.ts +17 -17
  45. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  46. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  47. package/dist/ui/Field/Field.d.ts +21 -21
  48. package/dist/ui/Field/field.recipe.d.ts +3 -3
  49. package/dist/ui/Menu/Menu.d.ts +360 -360
  50. package/dist/ui/Menu/menu.recipe.d.ts +20 -20
  51. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  52. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  53. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  54. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  55. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  56. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  57. package/dist/ui/Popover/Popover.d.ts +187 -187
  58. package/dist/ui/Popover/popover.recipe.d.ts +17 -17
  59. package/dist/ui/Progress/Progress.d.ts +27 -27
  60. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  61. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  62. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  63. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  64. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  65. package/dist/ui/Select/Select.d.ts +45 -45
  66. package/dist/ui/Select/select.recipe.d.ts +3 -3
  67. package/dist/ui/Table/Table.d.ts +21 -21
  68. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  69. package/dist/ui/Table/table.recipe.d.ts +3 -3
  70. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  71. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  72. package/dist/ui/Tooltip/Tooltip.d.ts +48 -48
  73. package/dist/ui/Tooltip/tooltip.recipe.d.ts +8 -8
  74. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
+ import { type ReactNode } from 'react';
1
2
  export interface BonusesProps {
2
- heading?: string;
3
+ heading?: string | ReactNode;
3
4
  className?: string;
4
5
  /**
5
6
  * @description base URL for the bonus details page
@@ -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: "", 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: pagcorLogo, alt: "", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", 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) => {
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" }), _jsxs("div", { className: "mt-4 font-semibold text-base text-text-primary-900", children: ["No ", props.heading ?? 'Jackpots'] }), _jsxs("div", { className: "mt-1 text-center text-sm text-text-tertiary-600", children: ["No ", props.heading?.toLocaleLowerCase() ?? 'jackpots', " are running at the moment. ", _jsx("br", {}), "Please check back later!"] })] }))] }) }));
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: props.heading ?? 'Tournaments' }), _jsxs("div", { className: "mt-1 text-center text-sm text-text-tertiary-600", children: ["No ", props.heading?.toLocaleLowerCase() ?? 'tournaments', " are running at the moment. ", _jsx("br", {}), "Please check back later!"] })] }))] }) }));
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({
@@ -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;
@@ -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;