livevegas-ui-kit 1.0.178 → 1.0.179
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.
|
@@ -3,5 +3,6 @@ export interface ICard {
|
|
|
3
3
|
cardWidth?: number;
|
|
4
4
|
cardHeight?: number;
|
|
5
5
|
isFlop?: boolean;
|
|
6
|
+
isWinCombination?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare const Card: ({ index, cardWidth, cardHeight, isFlop }: ICard) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Card: ({ index, cardWidth, cardHeight, isFlop, isWinCombination }: ICard) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface ICardWrapper {
|
|
2
2
|
$cardWidth: number;
|
|
3
3
|
$cardHeight: number;
|
|
4
|
+
$isWinCombination?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export declare const CardWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ICardWrapper>> & string;
|
|
6
7
|
export declare const Floper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -5577,6 +5577,7 @@ const sr = ({ type: e, cardWidth: t = 54, cardHeight: n = 72 }) => {
|
|
|
5577
5577
|
max-height: ${({ $cardHeight: e }) => e}px;
|
|
5578
5578
|
height: ${({ $cardHeight: e }) => e}px;
|
|
5579
5579
|
position: relative;
|
|
5580
|
+
opacity: ${({ $isWinCombination: e }) => e ? 0.2 : 1};
|
|
5580
5581
|
.text {
|
|
5581
5582
|
font-family: Inter;
|
|
5582
5583
|
font-weight: 800;
|
|
@@ -5591,7 +5592,7 @@ const sr = ({ type: e, cardWidth: t = 54, cardHeight: n = 72 }) => {
|
|
|
5591
5592
|
border-left: 14px solid transparent;
|
|
5592
5593
|
border-right: 0 solid transparent;
|
|
5593
5594
|
border-bottom: 14px solid #ffae00;
|
|
5594
|
-
`, or = ({ index: e, cardWidth: t = 54, cardHeight: n = 72, isFlop: i }) => {
|
|
5595
|
+
`, or = ({ index: e, cardWidth: t = 54, cardHeight: n = 72, isFlop: i, isWinCombination: r }) => {
|
|
5595
5596
|
if (!e)
|
|
5596
5597
|
return /* @__PURE__ */ a.jsx(
|
|
5597
5598
|
sr,
|
|
@@ -5601,33 +5602,33 @@ const sr = ({ type: e, cardWidth: t = 54, cardHeight: n = 72 }) => {
|
|
|
5601
5602
|
cardWidth: t
|
|
5602
5603
|
}
|
|
5603
5604
|
);
|
|
5604
|
-
const
|
|
5605
|
-
textX: { top:
|
|
5605
|
+
const s = Ct[e - 1].value, o = Ro(e), l = Oo(e), c = t / 54, d = t / 2, h = +s == 10, f = {
|
|
5606
|
+
textX: { top: h ? 30 : 25, bottom: h ? 18 : 20 },
|
|
5606
5607
|
textY: { top: 23, bottom: 23 },
|
|
5607
5608
|
iconX: { top: -2.5, bottom: 0.71 },
|
|
5608
5609
|
iconY: { top: -12, bottom: 0.92 }
|
|
5609
|
-
},
|
|
5610
|
+
}, b = `rotate(180 ${t / 2} ${n / 2})`, p = (x, y, v) => /* @__PURE__ */ a.jsx(
|
|
5610
5611
|
"text",
|
|
5611
5612
|
{
|
|
5612
5613
|
className: "text",
|
|
5613
|
-
x: `${
|
|
5614
|
-
y: `${
|
|
5615
|
-
fill:
|
|
5616
|
-
style: { fontSize:
|
|
5614
|
+
x: `${x}%`,
|
|
5615
|
+
y: `${y}%`,
|
|
5616
|
+
fill: l,
|
|
5617
|
+
style: { fontSize: d },
|
|
5617
5618
|
dominantBaseline: "middle",
|
|
5618
5619
|
textAnchor: "middle",
|
|
5619
|
-
transform: `${
|
|
5620
|
-
children:
|
|
5620
|
+
transform: `${h ? "scale(0.9, 1)" : ""} ${v || ""}`,
|
|
5621
|
+
children: s
|
|
5621
5622
|
}
|
|
5622
|
-
),
|
|
5623
|
+
), g = (x, y, v = "") => /* @__PURE__ */ a.jsx(
|
|
5623
5624
|
"path",
|
|
5624
5625
|
{
|
|
5625
|
-
transform: `translate(${t /
|
|
5626
|
-
d:
|
|
5627
|
-
fill:
|
|
5626
|
+
transform: `translate(${t / x} ${n / y}) scale(${c}) ${v}`,
|
|
5627
|
+
d: o,
|
|
5628
|
+
fill: l
|
|
5628
5629
|
}
|
|
5629
5630
|
);
|
|
5630
|
-
return /* @__PURE__ */ a.jsxs(qo, { $cardHeight: n, $cardWidth: t, children: [
|
|
5631
|
+
return /* @__PURE__ */ a.jsxs(qo, { $cardHeight: n, $cardWidth: t, $isWinCombination: r, children: [
|
|
5631
5632
|
/* @__PURE__ */ a.jsxs(
|
|
5632
5633
|
"svg",
|
|
5633
5634
|
{
|
|
@@ -5638,10 +5639,10 @@ const sr = ({ type: e, cardWidth: t = 54, cardHeight: n = 72 }) => {
|
|
|
5638
5639
|
preserveAspectRatio: "xMidYMid meet",
|
|
5639
5640
|
children: [
|
|
5640
5641
|
/* @__PURE__ */ a.jsx("rect", { width: "100%", height: "100%", rx: "8", fill: "white" }),
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5642
|
+
p(f.textX.top, f.textY.top),
|
|
5643
|
+
g(f.iconX.top, f.iconY.top),
|
|
5644
|
+
g(f.iconX.bottom, f.iconY.bottom, "rotate(180)"),
|
|
5645
|
+
p(f.textX.bottom, f.textY.bottom, b)
|
|
5645
5646
|
]
|
|
5646
5647
|
}
|
|
5647
5648
|
),
|
|
@@ -743,6 +743,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Rt]+=1);const Gs=m.div`
|
|
|
743
743
|
max-height: ${({$cardHeight:e})=>e}px;
|
|
744
744
|
height: ${({$cardHeight:e})=>e}px;
|
|
745
745
|
position: relative;
|
|
746
|
+
opacity: ${({$isWinCombination:e})=>e?.2:1};
|
|
746
747
|
.text {
|
|
747
748
|
font-family: Inter;
|
|
748
749
|
font-weight: 800;
|
|
@@ -757,7 +758,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Rt]+=1);const Gs=m.div`
|
|
|
757
758
|
border-left: 14px solid transparent;
|
|
758
759
|
border-right: 0 solid transparent;
|
|
759
760
|
border-bottom: 14px solid #ffae00;
|
|
760
|
-
`,Ua=({index:e,cardWidth:t=54,cardHeight:n=72,isFlop:i})=>{if(!e)return a.jsx(Pi,{type:Ti.Reverse,cardHeight:n,cardWidth:t});const
|
|
761
|
+
`,Ua=({index:e,cardWidth:t=54,cardHeight:n=72,isFlop:i,isWinCombination:r})=>{if(!e)return a.jsx(Pi,{type:Ti.Reverse,cardHeight:n,cardWidth:t});const s=bt[e-1].value,o=oo(e),l=ro(e),c=t/54,d=t/2,h=+s==10,f={textX:{top:h?30:25,bottom:h?18:20},textY:{top:23,bottom:23},iconX:{top:-2.5,bottom:.71},iconY:{top:-12,bottom:.92}},y=`rotate(180 ${t/2} ${n/2})`,p=(x,b,v)=>a.jsx("text",{className:"text",x:`${x}%`,y:`${b}%`,fill:l,style:{fontSize:d},dominantBaseline:"middle",textAnchor:"middle",transform:`${h?"scale(0.9, 1)":""} ${v||""}`,children:s}),g=(x,b,v="")=>a.jsx("path",{transform:`translate(${t/x} ${n/b}) scale(${c}) ${v}`,d:o,fill:l});return a.jsxs(yo,{$cardHeight:n,$cardWidth:t,$isWinCombination:r,children:[a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:`${t}px`,height:`${n}px`,viewBox:`0 0 ${t} ${n}`,preserveAspectRatio:"xMidYMid meet",children:[a.jsx("rect",{width:"100%",height:"100%",rx:"8",fill:"white"}),p(f.textX.top,f.textY.top),g(f.iconX.top,f.iconY.top),g(f.iconX.bottom,f.iconY.bottom,"rotate(180)"),p(f.textX.bottom,f.textY.bottom,y)]}),!i&&a.jsx(bo,{})]})},xo=m.div`
|
|
761
762
|
display: flex;
|
|
762
763
|
position: absolute;
|
|
763
764
|
bottom: 8px;
|