@opexa/portal-components 0.0.800 → 0.0.802

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 (95) hide show
  1. package/dist/components/Bonuses/BonusesTrigger.d.ts +1 -0
  2. package/dist/components/Bonuses/BonusesTrigger.js +1 -1
  3. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  4. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  5. package/dist/components/GameProviders/GameProvidersList.d.ts +4 -0
  6. package/dist/components/GameProviders/GameProvidersList.js +7 -1
  7. package/dist/components/Messages/MessagesTrigger.d.ts +1 -0
  8. package/dist/components/Messages/MessagesTrigger.js +1 -1
  9. package/dist/tsconfig.build.tsbuildinfo +1 -0
  10. package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
  11. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
  12. package/dist/ui/Badge/Badge.d.ts +12 -12
  13. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  14. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  15. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  16. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  17. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  18. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  19. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  20. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  21. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  22. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  23. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  24. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  25. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  26. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  27. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  28. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  29. package/dist/ui/Field/Field.d.ts +21 -21
  30. package/dist/ui/Field/field.recipe.d.ts +3 -3
  31. package/dist/ui/Menu/Menu.d.ts +198 -198
  32. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  33. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  34. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  35. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  36. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  37. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  38. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  39. package/dist/ui/Popover/Popover.d.ts +121 -121
  40. package/dist/ui/Popover/popover.recipe.d.ts +11 -11
  41. package/dist/ui/Progress/Progress.d.ts +27 -27
  42. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  43. package/dist/ui/QrCode/QrCode.d.ts +40 -40
  44. package/dist/ui/QrCode/qrCode.recipe.d.ts +8 -8
  45. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  46. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  47. package/dist/ui/Select/Select.d.ts +45 -45
  48. package/dist/ui/Select/select.recipe.d.ts +3 -3
  49. package/dist/ui/Table/Table.d.ts +21 -21
  50. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  51. package/dist/ui/Table/table.recipe.d.ts +3 -3
  52. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  53. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  54. package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
  55. package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
  56. package/package.json +1 -1
  57. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +0 -7
  58. package/dist/components/AccountInfo/GoogleDisconnect.js +0 -11
  59. package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .d.ts +0 -1
  60. package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .js +0 -191
  61. package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
  62. package/dist/components/DigitainLauncher/Loading.js +0 -5
  63. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
  64. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
  65. package/dist/components/KYC/BasicInformation.d.ts +0 -1
  66. package/dist/components/KYC/BasicInformation.js +0 -101
  67. package/dist/components/KYC/IdentityVerification.d.ts +0 -1
  68. package/dist/components/KYC/IdentityVerification.js +0 -120
  69. package/dist/components/KYC/Indicator.d.ts +0 -1
  70. package/dist/components/KYC/Indicator.js +0 -8
  71. package/dist/components/KYC/KYC.lazy.d.ts +0 -6
  72. package/dist/components/KYC/KYC.lazy.js +0 -45
  73. package/dist/components/KYC/KYCContext.d.ts +0 -6
  74. package/dist/components/KYC/KYCContext.js +0 -2
  75. package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +0 -1
  76. package/dist/components/KYC/KYCDefault/BasicInformation.js +0 -101
  77. package/dist/components/KYC/KYCVerificationStatus.d.ts +0 -1
  78. package/dist/components/KYC/KYCVerificationStatus.js +0 -10
  79. package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +0 -1
  80. package/dist/components/KYC/KYCVerificationStatus.lazy.js +0 -33
  81. package/dist/components/KYC/PersonalInformation.d.ts +0 -1
  82. package/dist/components/KYC/PersonalInformation.js +0 -122
  83. package/dist/components/KYC/useKYC.d.ts +0 -25
  84. package/dist/components/KYC/useKYC.js +0 -38
  85. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  86. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  87. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
  88. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
  89. package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
  90. package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
  91. package/dist/components/SessionWatcher/index.d.ts +0 -1
  92. package/dist/components/SessionWatcher/index.js +0 -1
  93. package/dist/icons/LinkBrokenIcon.d.ts +0 -2
  94. package/dist/icons/LinkBrokenIcon.js +0 -4
  95. package/dist/images/responsible-gaming-yellow.png +0 -0
@@ -2,6 +2,7 @@ import type { ComponentPropsWithRef } from 'react';
2
2
  export interface ClassNameEntries {
3
3
  root?: string;
4
4
  icon?: string;
5
+ unreadBadge?: string;
5
6
  }
6
7
  export interface BonusesTriggerProps extends Omit<ComponentPropsWithRef<'a'>, 'className'> {
7
8
  className?: string | ClassNameEntries;
@@ -24,5 +24,5 @@ export function BonusesTrigger({ children, className, ...props }) {
24
24
  size: 'sm',
25
25
  colorScheme: 'gray',
26
26
  className: twMerge('relative', classNames.root),
27
- }), children: children ?? (_jsxs(_Fragment, { children: [totalCount > 0 && (_jsx("div", { className: "-right-1.5 -top-1.5 absolute min-w-5 rounded-full border bg-brand-500 px-1.5 font-semibold text-2xs text-button-primary-fg leading-4.5", children: totalCount })), _jsx(Gift01Icon, { className: classNames.icon })] })) }));
27
+ }), children: children ?? (_jsxs(_Fragment, { children: [totalCount > 0 && (_jsx("div", { className: twMerge('-right-1.5 -top-1.5 absolute min-w-5 rounded-full border bg-brand-500 px-1.5 font-semibold text-2xs text-button-primary-fg leading-4.5', classNames.unreadBadge), children: totalCount })), _jsx(Gift01Icon, { className: classNames.icon })] })) }));
28
28
  }
@@ -1,6 +1,6 @@
1
1
  export declare const QRPHDepositContext: (props: {
2
2
  value: {
3
- view: "form" | "qrCode";
3
+ view: "qrCode" | "form";
4
4
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
5
5
  verify: () => void;
6
6
  reset: () => void;
@@ -13,7 +13,7 @@ export declare const QRPHDepositContext: (props: {
13
13
  } & {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useQRPHDepositContext: () => {
16
- view: "form" | "qrCode";
16
+ view: "qrCode" | "form";
17
17
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
18
18
  verify: () => void;
19
19
  reset: () => void;
@@ -1,7 +1,7 @@
1
1
  import type { Deposit } from '../../../../types';
2
2
  export type UseQRPHDepositReturn = ReturnType<typeof useQRPHDeposit>;
3
3
  export declare function useQRPHDeposit(): {
4
- view: "form" | "qrCode";
4
+ view: "qrCode" | "form";
5
5
  status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
@@ -29,5 +29,9 @@ export interface GameProvidersListProps {
29
29
  showAllProviders?: boolean;
30
30
  viewAllUrl?: string;
31
31
  futureGameProviders?: GameProvider[];
32
+ providerUrlMappings?: {
33
+ providers: GameProvider[];
34
+ url: string;
35
+ }[];
32
36
  }
33
37
  export declare function GameProvidersList(props: GameProvidersListProps): import("react/jsx-runtime").JSX.Element;
@@ -32,6 +32,12 @@ export function GameProvidersList(props) {
32
32
  : chunked.loadedItems;
33
33
  return (_jsxs("div", { className: classNames.root, children: [_jsx("h2", { className: "font-semibold text-lg", children: props.heading ?? 'Providers' }), _jsxs("div", { className: "mt-lg grid grid-cols-3 gap-1.5 lg:grid-cols-6 lg:gap-2.5", children: [props.showAllProviders && (_jsx(Link, { href: props.viewAllUrl ?? '/providers', className: twMerge('flex h-full w-full items-center justify-center overflow-hidden rounded-md bg-brand-800 font-extrabold lg:h-[5.75rem]', classNames.thumbnailRoot), "aria-label": `View all games`, children: _jsx("p", { className: "text-center text-4xl", children: " ALL" }) })), items.map((provider) => {
34
34
  const customLogo = props.gameProviderImages?.[provider.id];
35
- return (_jsx(Link, { href: viewGamesUrl(provider), className: twMerge('flex h-full w-full items-center overflow-hidden rounded-md bg-brand-800 lg:h-[5.75rem]', !customLogo && 'px-2 py-1.5', classNames.thumbnailRoot), "aria-label": `View ${provider.name} games`, children: _jsx(Image, { src: customLogo ?? provider.logo, alt: "", width: 300, height: 150, className: twMerge('mx-auto h-auto w-full', classNames.thumbnailImage) }) }, provider.id));
35
+ const url = props.providerUrlMappings
36
+ ? (props.providerUrlMappings
37
+ ?.find(({ providers }) => providers.includes(provider.id))
38
+ ?.url.replace(':slug', provider.slug)
39
+ .replace(':id', provider?.id) ?? `/providers/${provider.slug}`)
40
+ : null;
41
+ return (_jsx(Link, { href: url ?? viewGamesUrl(provider), className: twMerge('flex h-full w-full items-center overflow-hidden rounded-md bg-brand-800 lg:h-[5.75rem]', !customLogo && 'px-2 py-1.5', classNames.thumbnailRoot), "aria-label": `View ${provider.name} games`, children: _jsx(Image, { src: customLogo ?? provider.logo, alt: "", width: 300, height: 150, className: twMerge('mx-auto h-auto w-full', classNames.thumbnailImage) }) }, provider.id));
36
42
  })] }), !props.showAllProviders && (_jsxs("div", { className: "mt-2xl flex flex-col items-center lg:mt-3xl", children: [_jsx(Progress.Root, { min: 0, max: chunked.totalItems, value: chunked.totalLoadedItems, onValueChange: noop, className: twMerge('w-[12.5rem]', classNames.progressRoot), children: _jsx(Progress.Track, { className: twMerge('bg-bg-tertiary', classNames.progressTrack), children: _jsx(Progress.Range, {}) }) }), _jsx("p", { className: "mt-md text-button-tertiary-fg text-sm", children: `Displaying ${chunked.totalLoadedItems} of ${chunked.totalItems}` }), chunked.hasNext && (_jsx(Button, { size: "sm", variant: "outline", fullWidth: false, onClick: chunked.next, className: twMerge('mt-lg', classNames.loadMoreButton), children: "Load More" }))] }))] }));
37
43
  }
@@ -3,6 +3,7 @@ export interface ClassNameEntries {
3
3
  root?: string;
4
4
  iconButtonRoot?: string;
5
5
  iconButtonLogo?: string;
6
+ unreadBadge?: string;
6
7
  }
7
8
  type MessagesTriggerProps = Omit<ComponentPropsWithRef<'button'>, 'className'> & {
8
9
  asChild?: boolean;
@@ -22,5 +22,5 @@ export function MessagesTrigger({ asChild, children, ...props }) {
22
22
  return (_jsx(ark.button, { type: "button", "aria-label": "Toggle messages panel", "data-state": globalStore.messages.open ? 'open' : 'closed', ...props, onClick: (e) => {
23
23
  globalStore.messages.setOpen(!globalStore.messages.open);
24
24
  return props.onClick?.(e);
25
- }, asChild: !children ? true : asChild, className: classNames.root, children: children ?? (_jsxs(IconButton, { size: "sm", colorScheme: "gray", className: twMerge('relative', classNames.iconButtonRoot), children: [!!unreadMessagesCount && (_jsx("div", { className: "-right-1.5 -top-1.5 absolute rounded-full border bg-brand-500 px-1.5 font-semibold text-2xs text-button-primary-fg leading-4.5", children: unreadMessagesCount })), _jsx(Bell01Icon, { className: classNames.iconButtonLogo })] })) }));
25
+ }, asChild: !children ? true : asChild, className: classNames.root, children: children ?? (_jsxs(IconButton, { size: "sm", colorScheme: "gray", className: twMerge('relative', classNames.iconButtonRoot), children: [!!unreadMessagesCount && (_jsx("div", { className: twMerge('-right-1.5 -top-1.5 border- absolute rounded-full border bg-brand-500 px-1.5 font-semibold text-2xs text-button-primary-fg leading-4.5', classNames.unreadBadge), children: unreadMessagesCount })), _jsx(Bell01Icon, { className: classNames.iconButtonLogo })] })) }));
26
26
  }