@opexa/portal-components 0.0.92 → 0.0.94
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/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.d.ts +3 -2
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +3 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +13 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsList.js +10 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.d.ts +7 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +2 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.d.ts +7 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +2 -2
- package/dist/components/Search/Search.js +3 -1
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.d.ts +19 -2
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +26 -2
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.d.ts +17 -2
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.js +17 -6
- package/dist/components/Tournaments/TournamentsList/TournamentsList.d.ts +19 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsList.js +36 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.d.ts +19 -1
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.js +18 -6
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.d.ts +19 -1
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.js +16 -4
- package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
- 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.recipe.d.ts +3 -3
- 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 +20 -20
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
- 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 +336 -336
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +14 -14
- package/dist/ui/Dialog/Dialog.d.ts +121 -121
- package/dist/ui/Dialog/dialog.recipe.d.ts +11 -11
- 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/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 +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- 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.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/utils/isStyleEntries.d.ts +1 -1
- package/dist/utils/isStyleEntries.js +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { isString } from 'lodash-es';
|
|
2
3
|
import Image from 'next/image';
|
|
3
|
-
import
|
|
4
|
+
import { Fragment, useState } from 'react';
|
|
4
5
|
import { twMerge } from 'tailwind-merge';
|
|
5
6
|
import { ArrowNarrowDownIcon, ArrowNarrowUpIcon, Award01Icon, StarIcon, Trophy01Icon, User01Icon, } from '../../../icons/index.js';
|
|
6
7
|
import firstPlace from '../../../images/first-place.png';
|
|
7
8
|
import trophy from '../../../images/trophy.png';
|
|
8
9
|
import { Button } from '../../../ui/index.js';
|
|
9
|
-
import { formatNumber, mask } from '../../../utils/index.js';
|
|
10
|
+
import { formatNumber, isStyleEntries, mask } from '../../../utils/index.js';
|
|
10
11
|
import { useTournamentsListItemContext } from './TournamentsListContext.js';
|
|
11
12
|
import { TournamentsListItemGameProviders } from './TournamentsListItemGameProviders.js';
|
|
12
13
|
import { TournamentsListItemRules } from './TournamentsListItemRules.js';
|
|
13
14
|
import { useTournamentsListItemData } from './useTournamentListItemData.js';
|
|
14
|
-
export function TournamentsListItemMobile() {
|
|
15
|
+
export function TournamentsListItemMobile({ style, className, }) {
|
|
15
16
|
const tournament = useTournamentsListItemContext();
|
|
16
17
|
const [isDetailsVisible, setIsDetailsVisible] = useState(false);
|
|
17
18
|
const { prizeAmountsByRank, timeParts, tournamentReward, filteredGameProviders, localeInfo, } = useTournamentsListItemData();
|
|
18
|
-
|
|
19
|
+
const styles = isStyleEntries(style, [
|
|
20
|
+
'root',
|
|
21
|
+
'badgeRoot',
|
|
22
|
+
'badgeLabel',
|
|
23
|
+
'badgeIcon',
|
|
24
|
+
])
|
|
25
|
+
? style
|
|
26
|
+
: { root: style };
|
|
27
|
+
const classNames = isString(className)
|
|
28
|
+
? { root: className }
|
|
29
|
+
: (className ?? {});
|
|
30
|
+
return (_jsxs("div", { style: styles.root, className: twMerge('bg-bg-primary border-border-primary rounded-2xl border', classNames.root), children: [_jsx("div", { className: twMerge('bg-bg-tertiary relative flex shrink-0 rounded-2xl p-3 text-center lg:gap-4 lg:p-5'), children: _jsxs("div", { className: "z-1 relative flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsx("div", { className: "flex w-full flex-col", children: _jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { className: "w-full", children: [_jsxs("div", { className: "flex w-full justify-between", children: [_jsxs("div", { style: styles.badgeRoot, className: twMerge('border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium', classNames.badgeRoot), children: [_jsx(Award01Icon, { style: styles.badgeIcon, className: twMerge('text-utility-brand-500 size-3.5', classNames.badgeIcon) }), _jsx("span", { style: styles.badgeLabel, className: classNames.badgeLabel, children: "Multiplier" })] }), _jsx("div", { className: "flex h-fit", children: timeParts.map((part, idx) => (_jsxs(Fragment, { children: [_jsxs("div", { className: twMerge('bg-bg-primary text-text-primary-900 flex h-fit w-8 flex-col items-center rounded-[4px] pb-1.5'), children: [_jsx("span", { className: "text-base font-medium", children: String(part.value).padStart(2, '0') }), _jsx("span", { className: "text-[8px]", children: part.label })] }), idx < timeParts.length - 1 && (_jsxs("div", { className: "flex flex-col justify-center gap-[6px] px-[6px]", children: [_jsx("div", { className: "bg-bg-primary h-1 w-1 rounded-full" }), _jsx("div", { className: "bg-bg-primary h-1 w-1 rounded-full" })] }))] }, part.label))) })] }), _jsx("div", { className: "text-text-primary-900 mt-2.5 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: tournament.name }), _jsx("div", { className: "bg-bg-primary text-brand-400 mt-1.5 w-fit rounded-md px-2 py-1 text-2xl font-bold lg:mt-2 lg:text-4xl", children: formatNumber(tournamentReward, {
|
|
19
31
|
currency: localeInfo.currency.code,
|
|
20
32
|
minDecimalPlaces: 2,
|
|
21
33
|
maxDecimalPlaces: 2,
|