@opexa/portal-components 0.0.803 → 0.0.805
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/DepositWithdrawal/Deposit/AiOGCashDeposit/AiOGCashDeposit.js +54 -10
- package/dist/components/DepositWithdrawal/Deposit/AiOGrabPayDeposit/AiOGrabPayDeposit.js +54 -10
- package/dist/components/DepositWithdrawal/Deposit/AiOPalawanPayDeposit/AiOPalawanPayDeposit.js +54 -10
- package/dist/components/DepositWithdrawal/Deposit/AiOPayMayaDeposit/AiOPayMayaDeposit.js +54 -10
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +54 -9
- package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit/GCashWebpayDeposit.js +54 -9
- package/dist/components/DepositWithdrawal/Deposit/LibanganDeposit/LibanganDeposit.js +49 -25
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +54 -9
- package/dist/components/DepositWithdrawal/Deposit/MayaWebpayDeposit/MayaWebpayDeposit.js +54 -9
- package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.js +54 -10
- package/dist/components/Quests/Quests.client.d.ts +2 -0
- package/dist/components/Quests/Quests.client.js +3 -1
- package/dist/components/Quests/WageringQuest__next.d.ts +2 -0
- package/dist/components/Quests/WageringQuest__next.js +13 -9
- package/dist/styles/theme.css +4 -1
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ export declare function WageringQuestNext(props: {
|
|
|
36
36
|
customComplete?: ReactNode;
|
|
37
37
|
showTurnoverDecimals?: boolean;
|
|
38
38
|
gameProviderCarousel?: ReactNode;
|
|
39
|
+
gameProviderViewPageUrl?: string;
|
|
39
40
|
}): import("react/jsx-runtime").JSX.Element;
|
|
40
41
|
export interface WageringClassNameEntries {
|
|
41
42
|
root?: string;
|
|
@@ -46,5 +47,6 @@ export interface WageringClassNameEntries {
|
|
|
46
47
|
}
|
|
47
48
|
export interface GameProvidersCarouselProps {
|
|
48
49
|
gameProviders: GameProvider[];
|
|
50
|
+
gameProviderViewPageUrl?: string;
|
|
49
51
|
}
|
|
50
52
|
export declare function GameProvidersCarousel({ ...props }: GameProvidersCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,7 +49,7 @@ export function WageringQuestNext(props) {
|
|
|
49
49
|
currency: localeInfo.currency.code,
|
|
50
50
|
}), ' ', "Bonus"] })] })] }), status === 'IN_PROGRESS' && (_jsx("div", { className: "flex h-full items-end", children: _jsx(Button, { size: "sm", onClick: () => disclosure.setOpen(true), "aria-label": "View Details", disabled: false, className: "disabled:bg-bg-primary disabled:text-text-disabled", children: "View Details" }) }))] }), _jsx(Rules, { open: disclosure.open, onOpenChange: disclosure.setOpen, gameProviderCarousel: props.gameProviderCarousel, gameProviders: Object.entries(quest.turnoverRequirementContributionPercentagePerGameProvider ?? [])
|
|
51
51
|
.filter(([_, value]) => +value > 0)
|
|
52
|
-
.map(([key]) => key), className: classNames })] }));
|
|
52
|
+
.map(([key]) => key), className: classNames, gameProviderViewPageUrl: props.gameProviderViewPageUrl })] }));
|
|
53
53
|
}
|
|
54
54
|
function Rules(props) {
|
|
55
55
|
const quest = useQuestContext();
|
|
@@ -71,7 +71,7 @@ function Rules(props) {
|
|
|
71
71
|
(window.location.href.includes('blucky') ||
|
|
72
72
|
window.location.href.includes('powerplay') ||
|
|
73
73
|
window.location.href.includes('inplay'))) ||
|
|
74
|
-
featureFlag.enabled) && (_jsx(GameProvidersCarousel, { gameProviders: props.gameProviders ?? [] })), _jsx("div", { className: "pt-6 pb-4", children: _jsx(Button, { onClick: () => setOpen(false), children: "Close" }) })] })] }) })] }) }));
|
|
74
|
+
featureFlag.enabled) && (_jsx(GameProvidersCarousel, { gameProviders: props.gameProviders ?? [], gameProviderViewPageUrl: props.gameProviderViewPageUrl })), _jsx("div", { className: "pt-6 pb-4", children: _jsx(Button, { onClick: () => setOpen(false), children: "Close" }) })] })] }) })] }) }));
|
|
75
75
|
}
|
|
76
76
|
export function GameProvidersCarousel({ ...props }) {
|
|
77
77
|
const context = useQuestContext();
|
|
@@ -105,13 +105,17 @@ export function GameProvidersCarousel({ ...props }) {
|
|
|
105
105
|
? { root: context.className }
|
|
106
106
|
: (context.className ?? {});
|
|
107
107
|
return (_jsxs("div", { className: twMerge(classNames.root, gameProviders.length === 0 && 'hidden'), children: [_jsxs("div", { className: "flex items-center", children: [_jsx("h2", { className: "font-semibold text-lg", children: context.heading ?? 'Game 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: twMerge('relative mt-lg overflow-hidden', classNames.thumbnailRootContainer), children: _jsx("div", { className: twMerge('flex gap-1.5', classNames.thumbnailContainer), children: gameProviders.map((provider) => {
|
|
108
|
-
const url =
|
|
109
|
-
?
|
|
110
|
-
.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
const url = props.gameProviderViewPageUrl
|
|
109
|
+
? props.gameProviderViewPageUrl
|
|
110
|
+
.replace(':slug', provider.slug)
|
|
111
|
+
.replace(':id', provider.id)
|
|
112
|
+
: context.settings
|
|
113
|
+
? (context.settings
|
|
114
|
+
.find(({ providers }) => providers.includes(provider.id))
|
|
115
|
+
?.url.replace(':slug', provider.slug)
|
|
116
|
+
.replace(':id', provider?.id) ??
|
|
117
|
+
`/providers/${provider.slug}`)
|
|
118
|
+
: `/providers/${provider.slug}`;
|
|
115
119
|
return (_jsx(Link, { href: url, className: twMerge('flex h-16 w-[110px] flex-shrink-0 items-center overflow-hidden rounded-md bg-brand-800', classNames.thumbnailRoot), "aria-label": `View ${provider.name} games`, children: _jsx(Image, { src: context.gameProviderImages?.[provider.id] ?? provider.logo, alt: "", width: 300, height: 150, className: twMerge('mx-auto h-auto w-full object-contain', classNames.thumbnailImage) }) }, provider.id));
|
|
116
120
|
}) }) })] }));
|
|
117
121
|
}
|
package/dist/styles/theme.css
CHANGED
|
@@ -264,10 +264,13 @@
|
|
|
264
264
|
--color-text-warning-primary: #f79009;
|
|
265
265
|
--color-text-warning-primary-600: #fdb022;
|
|
266
266
|
--color-text-error-primary: #f04438;
|
|
267
|
+
--color-dark-text: #cccccc;
|
|
268
|
+
|
|
267
269
|
--color-text-featured-icon-light-success: #abefc6;
|
|
268
270
|
--color-text-featured-icon-light-error: #fecdca;
|
|
269
271
|
--color-text-featured-icon-light-warning: #fedf89;
|
|
270
|
-
--color-
|
|
272
|
+
--color-text-featured-icon-light-warning: #fedf89;
|
|
273
|
+
--color-text-featured-icon-light-brand: #E4D5A4;
|
|
271
274
|
|
|
272
275
|
--color-border-primary: #373a41;
|
|
273
276
|
--color-border-secondary: #22262f;
|