@opexa/portal-components 0.0.616 → 0.0.618

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.
@@ -155,7 +155,8 @@ export function GCashDeposit() {
155
155
  if (enabled &&
156
156
  (verificationStatus === 'PENDING' ||
157
157
  verificationStatus === 'UNVERIFIED' ||
158
- verificationStatus === 'REJECTED')) {
158
+ verificationStatus === 'REJECTED' ||
159
+ verificationStatus === 'CREATED')) {
159
160
  globalStore.kycVerificationStatus.setOpen(true);
160
161
  return;
161
162
  }
@@ -155,7 +155,8 @@ export function LibanganDeposit() {
155
155
  if (enabled &&
156
156
  (verificationStatus === 'PENDING' ||
157
157
  verificationStatus === 'UNVERIFIED' ||
158
- verificationStatus === 'REJECTED')) {
158
+ verificationStatus === 'REJECTED' ||
159
+ verificationStatus === 'CREATED')) {
159
160
  globalStore.kycVerificationStatus.setOpen(true);
160
161
  return;
161
162
  }
@@ -125,7 +125,8 @@ export function MayaAppDeposit() {
125
125
  if (enabled &&
126
126
  (verificationStatus === 'PENDING' ||
127
127
  verificationStatus === 'UNVERIFIED' ||
128
- verificationStatus === 'REJECTED')) {
128
+ verificationStatus === 'REJECTED' ||
129
+ verificationStatus === 'CREATED')) {
129
130
  globalStore.kycVerificationStatus.setOpen(true);
130
131
  return;
131
132
  }
@@ -155,7 +155,8 @@ export function MayaDeposit() {
155
155
  if (enabled &&
156
156
  (verificationStatus === 'PENDING' ||
157
157
  verificationStatus === 'UNVERIFIED' ||
158
- verificationStatus === 'REJECTED')) {
158
+ verificationStatus === 'REJECTED' ||
159
+ verificationStatus === 'CREATED')) {
159
160
  globalStore.kycVerificationStatus.setOpen(true);
160
161
  return;
161
162
  }
@@ -39,7 +39,8 @@ export function useOnlineBankDeposit() {
39
39
  if (enabled &&
40
40
  (verificationStatus === 'PENDING' ||
41
41
  verificationStatus === 'UNVERIFIED' ||
42
- verificationStatus === 'REJECTED')) {
42
+ verificationStatus === 'REJECTED' ||
43
+ verificationStatus === 'CREATED')) {
43
44
  globalStore.kycVerificationStatus.setOpen(true);
44
45
  return;
45
46
  }
@@ -161,7 +161,8 @@ export function PisoPayDeposit() {
161
161
  if (enabled &&
162
162
  (verificationStatus === 'PENDING' ||
163
163
  verificationStatus === 'UNVERIFIED' ||
164
- verificationStatus === 'REJECTED')) {
164
+ verificationStatus === 'REJECTED' ||
165
+ verificationStatus === 'CREATED')) {
165
166
  globalStore.kycVerificationStatus.setOpen(true);
166
167
  return;
167
168
  }
@@ -39,7 +39,8 @@ export function useQRPHDeposit() {
39
39
  if (enabled &&
40
40
  (verificationStatus === 'PENDING' ||
41
41
  verificationStatus === 'UNVERIFIED' ||
42
- verificationStatus === 'REJECTED')) {
42
+ verificationStatus === 'REJECTED' ||
43
+ verificationStatus === 'CREATED')) {
43
44
  globalStore.kycVerificationStatus.setOpen(true);
44
45
  return;
45
46
  }
@@ -46,7 +46,8 @@ export function GameLaunchTrigger(props) {
46
46
  if (featureFlag.enabled &&
47
47
  (verificationStatus === 'PENDING' ||
48
48
  verificationStatus === 'REJECTED' ||
49
- verificationStatus === 'UNVERIFIED')) {
49
+ verificationStatus === 'UNVERIFIED' ||
50
+ verificationStatus === 'CREATED')) {
50
51
  globalStore.kycVerificationStatus.setOpen(true);
51
52
  return;
52
53
  }
@@ -1,5 +1,4 @@
1
1
  import { type ReactNode } from 'react';
2
- import type { GameProvidersCarouselProps } from '../GameProviders/GameProvidersCarousel';
3
2
  export interface ClassNameEntries {
4
3
  root?: string;
5
4
  progressBarContainer?: string;
@@ -13,4 +12,3 @@ export declare function WageringQuest(props: {
13
12
  customComplete?: ReactNode;
14
13
  showTurnoverDecimals?: boolean;
15
14
  }): import("react/jsx-runtime").JSX.Element;
16
- export declare function GameProvidersCarousel(props: GameProvidersCarouselProps): import("react/jsx-runtime").JSX.Element;
@@ -67,7 +67,7 @@ function Rules(props) {
67
67
  'EZUGI',
68
68
  ] })), _jsx("div", { className: "pt-6 pb-4", children: _jsx(Button, { onClick: () => setOpen(false), children: "Ok" }) })] }) })] }) }));
69
69
  }
70
- export function GameProvidersCarousel(props) {
70
+ function GameProvidersCarousel(props) {
71
71
  const [emblaRef, emblaApi] = useEmblaCarousel({
72
72
  align: 'start',
73
73
  slidesToScroll: 3,
@@ -106,5 +106,8 @@ export function GameProvidersCarousel(props) {
106
106
  ? [...props.gameProviders, ...(props.futureGameProviders ?? [])]
107
107
  : props.gameProviders;
108
108
  const gameProviders = combinedProviders.map((provider) => GAME_PROVIDER_DATA[provider]);
109
- return (_jsxs("div", { className: "mt-6", children: [_jsxs("div", { className: "flex items-center", children: [_jsx("h2", { className: "font-semibold text-lg", children: props.heading ?? 'Providers' }), _jsx("div", { className: "grow" }), _jsx("div", { className: "flex items-center justify-center gap-xl", children: _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { variant: "outline", colorScheme: "gray", className: "rounded-r-none border-r-0", onClick: onPrevButtonClick, disabled: prevBtnDisabled, "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsx(Button, { variant: "outline", colorScheme: "gray", className: "rounded-l-none", onClick: onNextButtonClick, disabled: nextBtnDisabled, "aria-label": "Next", children: _jsx(ArrowRightIcon, { className: "size-5" }) })] }) })] }), _jsx("div", { ref: emblaRef, className: "relative mt-lg overflow-hidden", children: _jsx("div", { className: "grid grid-flow-col grid-rows-1 gap-md", children: gameProviders.map((provider) => (_jsx(Link, { href: viewGamesUrl(provider), className: twMerge('flex h-[3.5rem] w-[110px] items-center overflow-hidden rounded-md bg-brand-800'), "aria-label": `View ${provider.name} games`, children: _jsx(Image, { src: props.gameProviderImages?.[provider.id] ?? provider.logo, alt: "", width: 300, height: 150, className: twMerge('mx-auto h-auto w-full') }) }, provider.id))) }) })] }));
109
+ const classNames = isString(props.className)
110
+ ? { root: props.className }
111
+ : (props.className ?? {});
112
+ return (_jsxs("div", { className: "mt-6", children: [_jsxs("div", { className: "flex items-center", children: [_jsx("h2", { className: "font-semibold text-lg", children: props.heading ?? 'Providers' }), _jsx("div", { className: "grow" }), _jsx("div", { className: "flex items-center justify-center gap-xl", children: _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { variant: "outline", colorScheme: "gray", className: "rounded-r-none border-r-0", onClick: onPrevButtonClick, disabled: prevBtnDisabled, "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsx(Button, { variant: "outline", colorScheme: "gray", className: "rounded-l-none", onClick: onNextButtonClick, disabled: nextBtnDisabled, "aria-label": "Next", children: _jsx(ArrowRightIcon, { className: "size-5" }) })] }) })] }), _jsx("div", { ref: emblaRef, className: "relative mt-lg overflow-hidden", children: _jsx("div", { className: "grid grid-flow-col grid-rows-1 gap-md", children: gameProviders.map((provider) => (_jsx(Link, { href: viewGamesUrl(provider), className: twMerge('flex h-[3.5rem] w-[110px] items-center overflow-hidden rounded-md bg-brand-800', classNames.thumbnailRoot), "aria-label": `View ${provider.name} games`, children: _jsx(Image, { src: props.gameProviderImages?.[provider.id] ?? provider.logo, alt: "", width: 300, height: 150, className: twMerge('mx-auto h-auto w-full', classNames.thumbnailImage) }) }, provider.id))) }) })] }));
110
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.616",
3
+ "version": "0.0.618",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",