@opexa/portal-components 0.0.19 → 0.0.21
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/DepositWithdrawalTrigger.d.ts +3 -2
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +1 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +2 -1
- package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -1
- package/dist/components/GamesSearch/GamesSearchTrigger.mjs +16 -24
- package/dist/components/SignIn/SignInTrigger.d.ts +6 -0
- package/dist/components/SignIn/SignInTrigger.js +1 -0
- package/dist/components/SignIn/SignInTrigger.mjs +42 -0
- package/dist/components/SignIn/index.d.ts +1 -0
- package/dist/components/SignUp/SignUpTrigger.d.ts +6 -0
- package/dist/components/SignUp/SignUpTrigger.js +1 -0
- package/dist/components/SignUp/SignUpTrigger.mjs +42 -0
- package/dist/components/SignUp/index.d.ts +1 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +14 -12
- package/dist/components.js +1 -1
- package/dist/components.mjs +40 -36
- package/dist/theme.css +2 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface DepositWithdrawalTriggerProps extends
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface DepositWithdrawalTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
3
|
+
asChild?: boolean;
|
|
3
4
|
}
|
|
4
5
|
export declare function DepositWithdrawalTrigger(props: DepositWithdrawalTriggerProps): import("react").JSX.Element;
|
|
@@ -2,5 +2,6 @@ import { HTMLArkProps } from '@ark-ui/react';
|
|
|
2
2
|
import { FavoriteGame, Game } from '@opexa/portal-sdk-core';
|
|
3
3
|
export interface GameLaunchTriggerProps extends HTMLArkProps<'button'> {
|
|
4
4
|
game: Game | FavoriteGame;
|
|
5
|
+
asChild?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare function GameLaunchTrigger(props: GameLaunchTriggerProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
export interface GamesSearchTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
3
|
+
asChild?: boolean;
|
|
3
4
|
}
|
|
4
|
-
export declare function GamesSearchTrigger(
|
|
5
|
+
export declare function GamesSearchTrigger(props: GamesSearchTriggerProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("@ark-ui/react"),n=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const o=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");function c(e){const r=o.useGlobalStore(n.useShallow(u=>({gamesSearch:u.gamesSearch})));return t.jsx(a.ark.button,{type:"button",...e,onClick:u=>{var i;return r.gamesSearch.setOpen(!r.gamesSearch.open),(i=e.onClick)==null?void 0:i.call(e,u)},"data-state":r.gamesSearch.open?"open":"closed"})}exports.GamesSearchTrigger=c;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { ark as
|
|
4
|
-
import { useShallow as
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { ark as i } from "@ark-ui/react";
|
|
4
|
+
import { useShallow as a } from "zustand/shallow";
|
|
5
5
|
import "@opexa/portal-sdk-core";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
7
|
import "tiny-invariant";
|
|
@@ -15,36 +15,28 @@ import "../../client/services/getSession.mjs";
|
|
|
15
15
|
import "react";
|
|
16
16
|
import "lodash-es";
|
|
17
17
|
import "@opexa/portal-sdk-core/object-id";
|
|
18
|
-
import { useGlobalStore as
|
|
18
|
+
import { useGlobalStore as p } from "../../client/hooks/useGlobalStore.mjs";
|
|
19
19
|
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
20
20
|
import "usehooks-ts";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}) {
|
|
26
|
-
const r = s(
|
|
27
|
-
p((m) => ({
|
|
28
|
-
gamesSearch: m.gamesSearch
|
|
21
|
+
function T(t) {
|
|
22
|
+
const o = p(
|
|
23
|
+
a((r) => ({
|
|
24
|
+
gamesSearch: r.gamesSearch
|
|
29
25
|
}))
|
|
30
26
|
);
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
27
|
+
return /* @__PURE__ */ m(
|
|
28
|
+
i.button,
|
|
33
29
|
{
|
|
34
30
|
type: "button",
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
...t,
|
|
32
|
+
onClick: (r) => {
|
|
33
|
+
var e;
|
|
34
|
+
return o.gamesSearch.setOpen(!o.gamesSearch.open), (e = t.onClick) == null ? void 0 : e.call(t, r);
|
|
37
35
|
},
|
|
38
|
-
"data-state":
|
|
39
|
-
...o,
|
|
40
|
-
asChild: !0,
|
|
41
|
-
children: e ?? /* @__PURE__ */ i("button", { className: "bg-bg-primary text-text-secondary-700 flex size-10 items-center gap-lg rounded-sm px-lg", children: [
|
|
42
|
-
/* @__PURE__ */ t(c, { className: "text-text-quinary size-6" }),
|
|
43
|
-
"Search"
|
|
44
|
-
] })
|
|
36
|
+
"data-state": o.gamesSearch.open ? "open" : "closed"
|
|
45
37
|
}
|
|
46
38
|
);
|
|
47
39
|
}
|
|
48
40
|
export {
|
|
49
|
-
|
|
41
|
+
T as GamesSearchTrigger
|
|
50
42
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("@ark-ui/react"),o=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const q=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");function l(e){const r=q.useGlobalStore(o.useShallow(i=>({signIn:i.signIn})));return u.jsx(t.ark.button,{type:"button",...e,onClick:i=>{var n;return r.signIn.setOpen(!r.signIn.open),(n=e.onClick)==null?void 0:n.call(e,i)},"data-state":r.signIn.open?"open":"closed"})}exports.SignInTrigger=l;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { ark as m } from "@ark-ui/react";
|
|
4
|
+
import { useShallow as e } from "zustand/shallow";
|
|
5
|
+
import "@opexa/portal-sdk-core";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import "tiny-invariant";
|
|
8
|
+
import "../../constants/index.mjs";
|
|
9
|
+
import "../../utils/capitalize.mjs";
|
|
10
|
+
import "../../utils/parseDecimal.mjs";
|
|
11
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
12
|
+
import "../../utils/getQueryClient.mjs";
|
|
13
|
+
import "../../utils/isMobile.mjs";
|
|
14
|
+
import "../../client/services/getSession.mjs";
|
|
15
|
+
import "react";
|
|
16
|
+
import "lodash-es";
|
|
17
|
+
import "@opexa/portal-sdk-core/object-id";
|
|
18
|
+
import { useGlobalStore as p } from "../../client/hooks/useGlobalStore.mjs";
|
|
19
|
+
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
20
|
+
import "usehooks-ts";
|
|
21
|
+
function O(t) {
|
|
22
|
+
const o = p(
|
|
23
|
+
e((i) => ({
|
|
24
|
+
signIn: i.signIn
|
|
25
|
+
}))
|
|
26
|
+
);
|
|
27
|
+
return /* @__PURE__ */ n(
|
|
28
|
+
m.button,
|
|
29
|
+
{
|
|
30
|
+
type: "button",
|
|
31
|
+
...t,
|
|
32
|
+
onClick: (i) => {
|
|
33
|
+
var r;
|
|
34
|
+
return o.signIn.setOpen(!o.signIn.open), (r = t.onClick) == null ? void 0 : r.call(t, i);
|
|
35
|
+
},
|
|
36
|
+
"data-state": o.signIn.open ? "open" : "closed"
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
O as SignInTrigger
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("@ark-ui/react"),o=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const q=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");function l(e){const r=q.useGlobalStore(o.useShallow(i=>({signUp:i.signUp})));return t.jsx(n.ark.button,{type:"button",...e,onClick:i=>{var u;return r.signUp.setOpen(!r.signUp.open),(u=e.onClick)==null?void 0:u.call(e,i)},"data-state":r.signUp.open?"open":"closed"})}exports.SignUpTrigger=l;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { ark as p } from "@ark-ui/react";
|
|
4
|
+
import { useShallow as n } from "zustand/shallow";
|
|
5
|
+
import "@opexa/portal-sdk-core";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import "tiny-invariant";
|
|
8
|
+
import "../../constants/index.mjs";
|
|
9
|
+
import "../../utils/capitalize.mjs";
|
|
10
|
+
import "../../utils/parseDecimal.mjs";
|
|
11
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
12
|
+
import "../../utils/getQueryClient.mjs";
|
|
13
|
+
import "../../utils/isMobile.mjs";
|
|
14
|
+
import "../../client/services/getSession.mjs";
|
|
15
|
+
import "react";
|
|
16
|
+
import "lodash-es";
|
|
17
|
+
import "@opexa/portal-sdk-core/object-id";
|
|
18
|
+
import { useGlobalStore as e } from "../../client/hooks/useGlobalStore.mjs";
|
|
19
|
+
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
20
|
+
import "usehooks-ts";
|
|
21
|
+
function O(t) {
|
|
22
|
+
const o = e(
|
|
23
|
+
n((i) => ({
|
|
24
|
+
signUp: i.signUp
|
|
25
|
+
}))
|
|
26
|
+
);
|
|
27
|
+
return /* @__PURE__ */ m(
|
|
28
|
+
p.button,
|
|
29
|
+
{
|
|
30
|
+
type: "button",
|
|
31
|
+
...t,
|
|
32
|
+
onClick: (i) => {
|
|
33
|
+
var r;
|
|
34
|
+
return o.signUp.setOpen(!o.signUp.open), (r = t.onClick) == null ? void 0 : r.call(t, i);
|
|
35
|
+
},
|
|
36
|
+
"data-state": o.signUp.open ? "open" : "closed"
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
O as SignUpTrigger
|
|
42
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),w=require("lodash-es"),n=require("next/image"),s=require("react"),l=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");const q=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../client/services/getSession.js");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const C=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const I=require("../../icons/ChevronRightIcon.js"),M=require("../../icons/StarIcon.js"),S=require("../../icons/Trophy01Icon.js"),P=require("../../icons/Award01Icon.js"),T=require("../../images/first-place.png.js"),z=require("../../images/trophy-two.png.js"),u=require("../../images/trophy.png.js"),k=require("next/link"),D=require("../JackpotCounter/JackpotCounterItem.module.css.js");function R({jackpot:d,className:f,viewAllUrl:b}){const y=C.useLocaleInfo(),[a,x]=s.useState({days:0,hours:0,minutes:0,seconds:0,isPast:!1}),o=s.useMemo(()=>{const t=new Date;return new Date(t.setSeconds(t.getSeconds()+2*24*60*60))},[]),c=s.useCallback(()=>{const t=new Date,r=o.getTime()-t.getTime();if(r<=0){x({days:0,hours:0,minutes:0,seconds:0,isPast:!0});return}const i=Math.floor(r/1e3),g=Math.floor(i/(3600*24)),j=Math.floor(i%(3600*24)/3600),p=Math.floor(i%3600/60),N=i%60,v=w.pick({days:g,hours:j,minutes:p,seconds:N,isPast:!1},["days","hours","minutes","seconds","isPast"]);x(v)},[o]);s.useEffect(()=>{c();const t=setInterval(c,1e3);return()=>clearInterval(t)},[o,c]);const m=[{label:"Day",value:a.days},{label:"Hour",value:a.hours},{label:"Min",value:a.minutes},{label:"Sec",value:a.seconds}];return e.jsxs("div",{className:l.twMerge("bg-bg-tertiary border-border-primary relative flex shrink-0 rounded-2xl border p-3 text-center lg:gap-6 lg:p-5",f),children:[e.jsx("div",{className:"z-1 relative flex flex-1 flex-col",children:e.jsx("div",{className:"flex h-full flex-col justify-between",children:e.jsx("div",{className:"flex w-full justify-between",children:e.jsxs("div",{className:"flex w-full flex-col",children:[e.jsxs("div",{className:"relative flex w-full justify-between",children:[e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"flex w-full justify-between",children:[e.jsxs("div",{className:"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",children:[e.jsx(P.Award01Icon,{className:"text-utility-brand-500 size-3.5"}),"Multiplier"]}),e.jsx("div",{className:"flex h-fit",children:m.map((t,r)=>e.jsxs(s.Fragment,{children:[e.jsxs("div",{className:l.twMerge("bg-bg-primary text-text-primary-900 flex h-fit w-8 flex-col items-center rounded-[4px] pb-1.5"),children:[e.jsx("span",{className:"text-base font-medium",children:String(t.value).padStart(2,"0")}),e.jsx("span",{className:"text-[8px]",children:t.label})]}),r<m.length-1&&e.jsxs("div",{className:"flex flex-col justify-center gap-[6px] px-[6px]",children:[e.jsx("div",{className:"bg-bg-primary h-1 w-1 rounded-full"}),e.jsx("div",{className:"bg-bg-primary h-1 w-1 rounded-full"})]})]},t.label))})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-text-primary-900 mt-2.5 text-left text-lg font-medium lg:mt-5 lg:text-2xl",children:d.name}),e.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:q.formatNumber(d.pool,{currency:y.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})}),e.jsx("div",{className:"text-text-primary-900 mt-4 block text-left text-base lg:hidden",children:"Play and Win!"})]}),e.jsx("div",{className:"flex items-end lg:hidden",children:e.jsx(n,{src:u,alt:"trophy",quality:100,className:"h-23 w-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),w=require("lodash-es"),n=require("next/image"),s=require("react"),l=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");const q=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../client/services/getSession.js");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const C=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const I=require("../../icons/ChevronRightIcon.js"),M=require("../../icons/StarIcon.js"),S=require("../../icons/Trophy01Icon.js"),P=require("../../icons/Award01Icon.js"),T=require("../../images/first-place.png.js"),z=require("../../images/trophy-two.png.js"),u=require("../../images/trophy.png.js"),k=require("next/link"),D=require("../JackpotCounter/JackpotCounterItem.module.css.js");function R({jackpot:d,className:f,viewAllUrl:b}){const y=C.useLocaleInfo(),[a,x]=s.useState({days:0,hours:0,minutes:0,seconds:0,isPast:!1}),o=s.useMemo(()=>{const t=new Date;return new Date(t.setSeconds(t.getSeconds()+2*24*60*60))},[]),c=s.useCallback(()=>{const t=new Date,r=o.getTime()-t.getTime();if(r<=0){x({days:0,hours:0,minutes:0,seconds:0,isPast:!0});return}const i=Math.floor(r/1e3),g=Math.floor(i/(3600*24)),j=Math.floor(i%(3600*24)/3600),p=Math.floor(i%3600/60),N=i%60,v=w.pick({days:g,hours:j,minutes:p,seconds:N,isPast:!1},["days","hours","minutes","seconds","isPast"]);x(v)},[o]);s.useEffect(()=>{c();const t=setInterval(c,1e3);return()=>clearInterval(t)},[o,c]);const m=[{label:"Day",value:a.days},{label:"Hour",value:a.hours},{label:"Min",value:a.minutes},{label:"Sec",value:a.seconds}];return e.jsxs("div",{className:l.twMerge("bg-bg-tertiary border-border-primary relative flex shrink-0 rounded-2xl border p-3 text-center lg:gap-6 lg:p-5",f),children:[e.jsx("div",{className:"z-1 relative flex flex-1 flex-col",children:e.jsx("div",{className:"flex h-full flex-col justify-between",children:e.jsx("div",{className:"flex w-full justify-between",children:e.jsxs("div",{className:"flex w-full flex-col",children:[e.jsxs("div",{className:"relative flex w-full justify-between",children:[e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"flex w-full justify-between",children:[e.jsxs("div",{className:"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",children:[e.jsx(P.Award01Icon,{className:"text-utility-brand-500 size-3.5"}),"Multiplier"]}),e.jsx("div",{className:"flex h-fit",children:m.map((t,r)=>e.jsxs(s.Fragment,{children:[e.jsxs("div",{className:l.twMerge("bg-bg-primary text-text-primary-900 flex h-fit w-8 flex-col items-center rounded-[4px] pb-1.5"),children:[e.jsx("span",{className:"text-base font-medium",children:String(t.value).padStart(2,"0")}),e.jsx("span",{className:"text-[8px]",children:t.label})]}),r<m.length-1&&e.jsxs("div",{className:"flex flex-col justify-center gap-[6px] px-[6px]",children:[e.jsx("div",{className:"bg-bg-primary h-1 w-1 rounded-full"}),e.jsx("div",{className:"bg-bg-primary h-1 w-1 rounded-full"})]})]},t.label))})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-text-primary-900 mt-2.5 text-left text-lg font-medium lg:mt-5 lg:text-2xl",children:d.name}),e.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:q.formatNumber(d.pool,{currency:y.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})}),e.jsx("div",{className:"text-text-primary-900 mt-4 block text-left text-base lg:hidden",children:"Play and Win!"})]}),e.jsx("div",{className:"flex items-end lg:hidden",children:e.jsx(n,{src:u,alt:"trophy",quality:100,width:155,height:155,className:"h-23 w-auto"})})]})]}),e.jsx("div",{className:"z-1 absolute -bottom-16 right-0 hidden lg:block",children:e.jsx(n,{quality:100,width:155,height:155,src:u,alt:"trophy",className:"px-6 py-2.5"})})]}),e.jsxs("div",{className:"bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex",children:[e.jsx(n,{width:66,height:87,src:T,alt:"closeChest",className:"size-full h-auto w-[66px] mix-blend-luminosity"}),e.jsxs("div",{className:"flex flex-col gap-1 text-left",children:[e.jsxs("div",{className:"border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium",children:[e.jsx(S.Trophy01Icon,{className:"text-utility-brand-600 size-3.5"}),"Top Payout"]}),e.jsx("div",{className:"font-semibold",children:"No winners yet"}),e.jsx("div",{className:"text-text-secondary-700 text-xs",children:"You could be the first to win the tournament!"})]})]})]})})})}),e.jsxs("div",{className:"z-1 hidden flex-1 space-y-4 lg:block",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(n,{width:24,height:24,src:z,quality:100,alt:"leaderboardIcon",className:"size-full w-6"}),e.jsx("div",{className:"text-text-primary-900 text-lg font-semibold",children:"Starting soon!"})]}),e.jsxs(k,{className:"text-button-tertiary-fg flex text-sm font-semibold",href:b??"/tournaments",children:["See details",e.jsx(I.ChevronRightIcon,{className:"size-5"})]})]}),e.jsx("div",{className:l.twMerge("max-h-[272px] overflow-y-scroll",D.default.scrollArea),children:e.jsx("div",{className:"border-gray-200 overflow-hidden rounded-xl",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium",children:[e.jsx("th",{className:"w-[52px]",children:"#"}),e.jsx("th",{children:"Player"}),e.jsx("th",{children:"Multiplier"}),e.jsx("th",{children:"Prize"})]})}),e.jsx("tbody",{children:Array.from({length:10}).map((t,r)=>e.jsxs("tr",{className:"bg-bg-primary text-text-secondary-700 text-sm",children:[e.jsx("td",{className:"border-border-secondary h-12 w-[52px] border-t-2",children:r+1<6?e.jsxs("div",{className:"relative",children:[e.jsx(M.StarIcon,{className:l.twMerge("mx-auto size-6.5",h[r].starColor)}),e.jsx("span",{className:l.twMerge("absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",h[r].numberColor),children:r+1})]}):"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"})]},r))})]})})})]})]})}const h=[{starColor:"text-yellow-400",numberColor:"text-bg-primary"},{starColor:"text-utility-gray-700",numberColor:"text-bg-primary"},{starColor:"text-yellow-700",numberColor:"text-bg-primary"},{starColor:"text-bg-quaternary",numberColor:"text-text-primary-900"},{starColor:"text-bg-quaternary",numberColor:"text-text-primary-900"}];exports.TournamentCounterItem=R;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { pick as P } from "lodash-es";
|
|
4
4
|
import o from "next/image";
|
|
5
|
-
import
|
|
5
|
+
import f, { useState as I, useMemo as S, useEffect as z } from "react";
|
|
6
6
|
import { twMerge as a } from "tailwind-merge";
|
|
7
7
|
import "@opexa/portal-sdk-core";
|
|
8
8
|
import "@tanstack/react-query";
|
|
@@ -26,10 +26,10 @@ import { Trophy01Icon as k } from "../../icons/Trophy01Icon.mjs";
|
|
|
26
26
|
import { Award01Icon as q } from "../../icons/Award01Icon.mjs";
|
|
27
27
|
import R from "../../images/first-place.png.mjs";
|
|
28
28
|
import A from "../../images/trophy-two.png.mjs";
|
|
29
|
-
import
|
|
29
|
+
import x from "../../images/trophy.png.mjs";
|
|
30
30
|
import _ from "next/link";
|
|
31
31
|
import E from "../JackpotCounter/JackpotCounterItem.module.css.mjs";
|
|
32
|
-
function
|
|
32
|
+
function xe({
|
|
33
33
|
jackpot: m,
|
|
34
34
|
className: b,
|
|
35
35
|
viewAllUrl: p
|
|
@@ -43,7 +43,7 @@ function he({
|
|
|
43
43
|
}), n = S(() => {
|
|
44
44
|
const r = /* @__PURE__ */ new Date();
|
|
45
45
|
return new Date(r.setSeconds(r.getSeconds() + 2 * 24 * 60 * 60));
|
|
46
|
-
}, []), d =
|
|
46
|
+
}, []), d = f.useCallback(() => {
|
|
47
47
|
const r = /* @__PURE__ */ new Date(), l = n.getTime() - r.getTime();
|
|
48
48
|
if (l <= 0) {
|
|
49
49
|
c({
|
|
@@ -69,7 +69,7 @@ function he({
|
|
|
69
69
|
const r = setInterval(d, 1e3);
|
|
70
70
|
return () => clearInterval(r);
|
|
71
71
|
}, [n, d]);
|
|
72
|
-
const
|
|
72
|
+
const h = [
|
|
73
73
|
{ label: "Day", value: i.days },
|
|
74
74
|
{ label: "Hour", value: i.hours },
|
|
75
75
|
{ label: "Min", value: i.minutes },
|
|
@@ -91,7 +91,7 @@ function he({
|
|
|
91
91
|
/* @__PURE__ */ e(q, { className: "text-utility-brand-500 size-3.5" }),
|
|
92
92
|
"Multiplier"
|
|
93
93
|
] }),
|
|
94
|
-
/* @__PURE__ */ e("div", { className: "flex h-fit", children:
|
|
94
|
+
/* @__PURE__ */ e("div", { className: "flex h-fit", children: h.map((r, l) => /* @__PURE__ */ t(f.Fragment, { children: [
|
|
95
95
|
/* @__PURE__ */ t(
|
|
96
96
|
"div",
|
|
97
97
|
{
|
|
@@ -104,7 +104,7 @@ function he({
|
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
|
-
l <
|
|
107
|
+
l < h.length - 1 && /* @__PURE__ */ t("div", { className: "flex flex-col justify-center gap-[6px] px-[6px]", children: [
|
|
108
108
|
/* @__PURE__ */ e("div", { className: "bg-bg-primary h-1 w-1 rounded-full" }),
|
|
109
109
|
/* @__PURE__ */ e("div", { className: "bg-bg-primary h-1 w-1 rounded-full" })
|
|
110
110
|
] })
|
|
@@ -123,21 +123,23 @@ function he({
|
|
|
123
123
|
/* @__PURE__ */ e("div", { className: "flex items-end lg:hidden", children: /* @__PURE__ */ e(
|
|
124
124
|
o,
|
|
125
125
|
{
|
|
126
|
-
src:
|
|
126
|
+
src: x,
|
|
127
127
|
alt: "trophy",
|
|
128
128
|
quality: 100,
|
|
129
|
-
|
|
129
|
+
width: 155,
|
|
130
|
+
height: 155,
|
|
131
|
+
className: "h-23 w-auto"
|
|
130
132
|
}
|
|
131
133
|
) })
|
|
132
134
|
] })
|
|
133
135
|
] }),
|
|
134
|
-
/* @__PURE__ */ e("div", { className: "z-1 absolute bottom-
|
|
136
|
+
/* @__PURE__ */ e("div", { className: "z-1 absolute -bottom-16 right-0 hidden lg:block", children: /* @__PURE__ */ e(
|
|
135
137
|
o,
|
|
136
138
|
{
|
|
137
139
|
quality: 100,
|
|
138
140
|
width: 155,
|
|
139
141
|
height: 155,
|
|
140
|
-
src:
|
|
142
|
+
src: x,
|
|
141
143
|
alt: "trophy",
|
|
142
144
|
className: "px-6 py-2.5"
|
|
143
145
|
}
|
|
@@ -270,5 +272,5 @@ const u = [
|
|
|
270
272
|
}
|
|
271
273
|
];
|
|
272
274
|
export {
|
|
273
|
-
|
|
275
|
+
xe as TournamentCounterItem
|
|
274
276
|
};
|
package/dist/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/Account/Account.js"),r=require("./components/Banner/Banner.js"),o=require("./components/BetRecords/BetRecords.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/Account/Account.js"),r=require("./components/Banner/Banner.js"),o=require("./components/BetRecords/BetRecords.js"),n=require("./components/Bonus/Bonus.js"),s=require("./components/Bonuses/Bonuses.js"),i=require("./components/DepositWithdrawal/DepositWithdrawal.js"),t=require("./components/Disclaimer/Disclaimer.js"),a=require("./components/FavoriteGames/FavoriteGames.js"),c=require("./components/GameLaunch/GameLaunch.js"),u=require("./components/GameLaunch/GameLaunchTrigger.js"),g=require("./components/GameProviders/GameProviders.js"),m=require("./components/Games/Games.js"),q=require("./components/GamesSearch/GamesSearch.js"),T=require("./components/GamesSearch/GamesSearchTrigger.js"),G=require("./components/JackpotCounter/JackpotCounter.js"),d=require("./components/Jackpots/Jackpots.js"),S=require("./components/KYC/KYC.js"),p=require("./components/KYC/KYCTrigger.js"),P=require("./components/Marquee/Marquee.js"),h=require("./components/Messages/Messages.js"),l=require("./components/PortalProvider/PortalProvider.js"),B=require("./components/Promo/Promo.js"),C=require("./components/Promos/Promos.js"),v=require("./components/Protected/Protected.js"),M=require("./components/Quests/Quests.js"),k=require("./components/SignIn/SignIn.js"),D=require("./components/SignIn/SignInTrigger.js"),I=require("./components/SignUp/SignUp.js"),J=require("./components/SignUp/SignUpTrigger.js"),K=require("./components/TopWins/TopWins.js"),L=require("./components/TournamentCounter/TournamentCounter.js"),R=require("./components/Tournaments/Tournaments.js"),U=require("./components/TransactionRecords/TransactionRecords.js");exports.Account=e.Account;exports.Banner=r.Banner;exports.BetRecords=o.BetRecords;exports.Bonus=n.Bonus;exports.Bonuses=s.Bonuses;exports.DepositWithdrawal=i.DepositWithdrawal;exports.Disclaimer=t.Disclaimer;exports.FavoriteGames=a.FavoriteGames;exports.GameLaunch=c.GameLaunch;exports.GameLaunchTrigger=u.GameLaunchTrigger;exports.GameProviders=g.GameProviders;exports.Games=m.Games;exports.GamesSearch=q.GamesSearch;exports.GamesSearchTrigger=T.GamesSearchTrigger;exports.JackpotCounter=G.JackpotCounter;exports.Jackpots=d.Jackpots;exports.KYC=S.KYC;exports.KYCTrigger=p.KYCTrigger;exports.Marquee=P.Marquee;exports.Messages=h.Messages;exports.PortalProvider=l.PortalProvider;exports.Promo=B.Promo;exports.Promos=C.Promos;exports.Protected=v.Protected;exports.Quests=M.Quests;exports.SignIn=k.SignIn;exports.SignInTrigger=D.SignInTrigger;exports.SignUp=I.SignUp;exports.SignUpTrigger=J.SignUpTrigger;exports.TopWins=K.TopWins;exports.TournamentCounter=L.TournamentCounter;exports.Tournaments=R.Tournaments;exports.TransactionRecords=U.TransactionRecords;
|
package/dist/components.mjs
CHANGED
|
@@ -2,63 +2,67 @@ import { Account as e } from "./components/Account/Account.mjs";
|
|
|
2
2
|
import { Banner as m } from "./components/Banner/Banner.mjs";
|
|
3
3
|
import { BetRecords as f } from "./components/BetRecords/BetRecords.mjs";
|
|
4
4
|
import { Bonus as a } from "./components/Bonus/Bonus.mjs";
|
|
5
|
-
import { Bonuses as
|
|
6
|
-
import { DepositWithdrawal as
|
|
7
|
-
import { Disclaimer as
|
|
8
|
-
import { FavoriteGames as
|
|
5
|
+
import { Bonuses as s } from "./components/Bonuses/Bonuses.mjs";
|
|
6
|
+
import { DepositWithdrawal as g } from "./components/DepositWithdrawal/DepositWithdrawal.mjs";
|
|
7
|
+
import { Disclaimer as u } from "./components/Disclaimer/Disclaimer.mjs";
|
|
8
|
+
import { FavoriteGames as G } from "./components/FavoriteGames/FavoriteGames.mjs";
|
|
9
9
|
import { GameLaunch as P } from "./components/GameLaunch/GameLaunch.mjs";
|
|
10
|
-
import { GameLaunchTrigger as
|
|
11
|
-
import { GameProviders as
|
|
10
|
+
import { GameLaunchTrigger as h } from "./components/GameLaunch/GameLaunchTrigger.mjs";
|
|
11
|
+
import { GameProviders as C } from "./components/GameProviders/GameProviders.mjs";
|
|
12
12
|
import { Games as v } from "./components/Games/Games.mjs";
|
|
13
13
|
import { GamesSearch as D } from "./components/GamesSearch/GamesSearch.mjs";
|
|
14
|
-
import { GamesSearchTrigger as
|
|
15
|
-
import { JackpotCounter as
|
|
16
|
-
import { Jackpots as
|
|
17
|
-
import { KYC as
|
|
18
|
-
import { KYCTrigger as
|
|
19
|
-
import { Marquee as
|
|
20
|
-
import { Messages as
|
|
14
|
+
import { GamesSearchTrigger as J } from "./components/GamesSearch/GamesSearchTrigger.mjs";
|
|
15
|
+
import { JackpotCounter as L } from "./components/JackpotCounter/JackpotCounter.mjs";
|
|
16
|
+
import { Jackpots as R } from "./components/Jackpots/Jackpots.mjs";
|
|
17
|
+
import { KYC as W } from "./components/KYC/KYC.mjs";
|
|
18
|
+
import { KYCTrigger as q } from "./components/KYC/KYCTrigger.mjs";
|
|
19
|
+
import { Marquee as A } from "./components/Marquee/Marquee.mjs";
|
|
20
|
+
import { Messages as Q } from "./components/Messages/Messages.mjs";
|
|
21
21
|
import { PortalProvider as j } from "./components/PortalProvider/PortalProvider.mjs";
|
|
22
22
|
import { Promo as z } from "./components/Promo/Promo.mjs";
|
|
23
23
|
import { Promos as H } from "./components/Promos/Promos.mjs";
|
|
24
24
|
import { Protected as O } from "./components/Protected/Protected.mjs";
|
|
25
25
|
import { Quests as X } from "./components/Quests/Quests.mjs";
|
|
26
26
|
import { SignIn as _ } from "./components/SignIn/SignIn.mjs";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
27
|
+
import { SignInTrigger as rr } from "./components/SignIn/SignInTrigger.mjs";
|
|
28
|
+
import { SignUp as er } from "./components/SignUp/SignUp.mjs";
|
|
29
|
+
import { SignUpTrigger as mr } from "./components/SignUp/SignUpTrigger.mjs";
|
|
30
|
+
import { TopWins as fr } from "./components/TopWins/TopWins.mjs";
|
|
31
|
+
import { TournamentCounter as ar } from "./components/TournamentCounter/TournamentCounter.mjs";
|
|
32
|
+
import { Tournaments as sr } from "./components/Tournaments/Tournaments.mjs";
|
|
33
|
+
import { TransactionRecords as gr } from "./components/TransactionRecords/TransactionRecords.mjs";
|
|
32
34
|
export {
|
|
33
35
|
e as Account,
|
|
34
36
|
m as Banner,
|
|
35
37
|
f as BetRecords,
|
|
36
38
|
a as Bonus,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
s as Bonuses,
|
|
40
|
+
g as DepositWithdrawal,
|
|
41
|
+
u as Disclaimer,
|
|
42
|
+
G as FavoriteGames,
|
|
41
43
|
P as GameLaunch,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
h as GameLaunchTrigger,
|
|
45
|
+
C as GameProviders,
|
|
44
46
|
v as Games,
|
|
45
47
|
D as GamesSearch,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
J as GamesSearchTrigger,
|
|
49
|
+
L as JackpotCounter,
|
|
50
|
+
R as Jackpots,
|
|
51
|
+
W as KYC,
|
|
52
|
+
q as KYCTrigger,
|
|
53
|
+
A as Marquee,
|
|
54
|
+
Q as Messages,
|
|
53
55
|
j as PortalProvider,
|
|
54
56
|
z as Promo,
|
|
55
57
|
H as Promos,
|
|
56
58
|
O as Protected,
|
|
57
59
|
X as Quests,
|
|
58
60
|
_ as SignIn,
|
|
59
|
-
rr as
|
|
60
|
-
er as
|
|
61
|
-
mr as
|
|
62
|
-
fr as
|
|
63
|
-
ar as
|
|
61
|
+
rr as SignInTrigger,
|
|
62
|
+
er as SignUp,
|
|
63
|
+
mr as SignUpTrigger,
|
|
64
|
+
fr as TopWins,
|
|
65
|
+
ar as TournamentCounter,
|
|
66
|
+
sr as Tournaments,
|
|
67
|
+
gr as TransactionRecords
|
|
64
68
|
};
|
package/dist/theme.css
CHANGED
|
@@ -229,6 +229,8 @@
|
|
|
229
229
|
--color-text-disabled-subtle: #d0d5dd;
|
|
230
230
|
--color-text-placeholder: #85888e;
|
|
231
231
|
--color-text-placeholder-subtle: #373a41;
|
|
232
|
+
--color-text-nav-item-button-icon: #94969c;
|
|
233
|
+
--color-text-nav-item-button-icon-active: #ececed;
|
|
232
234
|
|
|
233
235
|
--color-border-primary: #373a41;
|
|
234
236
|
--color-border-secondary: #22262f;
|