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 r = Ct[e - 1].value, s = Ro(e), o = Oo(e), l = t / 54, c = t / 2, d = +r == 10, h = {
5605
- textX: { top: d ? 30 : 25, bottom: d ? 18 : 20 },
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
- }, f = `rotate(180 ${t / 2} ${n / 2})`, b = (g, x, y) => /* @__PURE__ */ a.jsx(
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: `${g}%`,
5614
- y: `${x}%`,
5615
- fill: o,
5616
- style: { fontSize: c },
5614
+ x: `${x}%`,
5615
+ y: `${y}%`,
5616
+ fill: l,
5617
+ style: { fontSize: d },
5617
5618
  dominantBaseline: "middle",
5618
5619
  textAnchor: "middle",
5619
- transform: `${d ? "scale(0.9, 1)" : ""} ${y || ""}`,
5620
- children: r
5620
+ transform: `${h ? "scale(0.9, 1)" : ""} ${v || ""}`,
5621
+ children: s
5621
5622
  }
5622
- ), p = (g, x, y = "") => /* @__PURE__ */ a.jsx(
5623
+ ), g = (x, y, v = "") => /* @__PURE__ */ a.jsx(
5623
5624
  "path",
5624
5625
  {
5625
- transform: `translate(${t / g} ${n / x}) scale(${l}) ${y}`,
5626
- d: s,
5627
- fill: o
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
- b(h.textX.top, h.textY.top),
5642
- p(h.iconX.top, h.iconY.top),
5643
- p(h.iconX.bottom, h.iconY.bottom, "rotate(180)"),
5644
- b(h.textX.bottom, h.textY.bottom, f)
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 r=bt[e-1].value,s=oo(e),o=ro(e),l=t/54,c=t/2,d=+r==10,h={textX:{top:d?30:25,bottom:d?18:20},textY:{top:23,bottom:23},iconX:{top:-2.5,bottom:.71},iconY:{top:-12,bottom:.92}},f=`rotate(180 ${t/2} ${n/2})`,y=(g,x,b)=>a.jsx("text",{className:"text",x:`${g}%`,y:`${x}%`,fill:o,style:{fontSize:c},dominantBaseline:"middle",textAnchor:"middle",transform:`${d?"scale(0.9, 1)":""} ${b||""}`,children:r}),p=(g,x,b="")=>a.jsx("path",{transform:`translate(${t/g} ${n/x}) scale(${l}) ${b}`,d:s,fill:o});return a.jsxs(yo,{$cardHeight:n,$cardWidth:t,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"}),y(h.textX.top,h.textY.top),p(h.iconX.top,h.iconY.top),p(h.iconX.bottom,h.iconY.bottom,"rotate(180)"),y(h.textX.bottom,h.textY.bottom,f)]}),!i&&a.jsx(bo,{})]})},xo=m.div`
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livevegas-ui-kit",
3
- "version": "1.0.178",
3
+ "version": "1.0.179",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"