livevegas-ui-kit 1.0.314 → 1.0.315
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.
|
@@ -1625,10 +1625,10 @@ var T = /* @__PURE__ */ function(e) {
|
|
|
1625
1625
|
e >= 10 ? (t < 3 ? (i(m.slice(0, 3)), l(["...", e])) : i([1, "..."]), t > e - 3 ? l(m.slice(e - 3)) : l(["...", e]), t >= 3 && t <= e - 3 ? f([t]) : f([])) : (i([]), l([]), f([...m]));
|
|
1626
1626
|
}, v = (r, i) => {
|
|
1627
1627
|
if (r !== t) if (p(), typeof r == "string") {
|
|
1628
|
-
if (i ===
|
|
1628
|
+
if (i === "right") {
|
|
1629
1629
|
let r = m.slice(t, e);
|
|
1630
1630
|
n(r[(r.length / 2).toFixed() - 1]);
|
|
1631
|
-
} else if (i ===
|
|
1631
|
+
} else if (i === "left") {
|
|
1632
1632
|
let e = m.slice(0, t);
|
|
1633
1633
|
n(e[(e.length / 2).toFixed() - 1]);
|
|
1634
1634
|
}
|
|
@@ -1649,10 +1649,19 @@ var T = /* @__PURE__ */ function(e) {
|
|
|
1649
1649
|
})
|
|
1650
1650
|
}),
|
|
1651
1651
|
[
|
|
1652
|
-
...r
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1652
|
+
...r.map((e) => ({
|
|
1653
|
+
el: e,
|
|
1654
|
+
side: "left"
|
|
1655
|
+
})),
|
|
1656
|
+
...u.map((e) => ({
|
|
1657
|
+
el: e,
|
|
1658
|
+
side: void 0
|
|
1659
|
+
})),
|
|
1660
|
+
...a.map((e) => ({
|
|
1661
|
+
el: e,
|
|
1662
|
+
side: "right"
|
|
1663
|
+
}))
|
|
1664
|
+
].map(({ el: e, side: n }, r) => /* @__PURE__ */ o(Ie, {
|
|
1656
1665
|
$isActive: t === e,
|
|
1657
1666
|
children: /* @__PURE__ */ o(P, {
|
|
1658
1667
|
height: 26,
|
|
@@ -1662,8 +1671,8 @@ var T = /* @__PURE__ */ function(e) {
|
|
|
1662
1671
|
text: String(e),
|
|
1663
1672
|
isActiveBlue: t === e,
|
|
1664
1673
|
textStyle: "p"
|
|
1665
|
-
}
|
|
1666
|
-
},
|
|
1674
|
+
})
|
|
1675
|
+
}, r)),
|
|
1667
1676
|
/* @__PURE__ */ o(P, {
|
|
1668
1677
|
height: 26,
|
|
1669
1678
|
width: 26,
|
|
@@ -1986,7 +1995,7 @@ var T = /* @__PURE__ */ function(e) {
|
|
|
1986
1995
|
position: relative;
|
|
1987
1996
|
overflow: hidden;
|
|
1988
1997
|
`, qe = i.div`
|
|
1989
|
-
height:
|
|
1998
|
+
height: 100%;
|
|
1990
1999
|
padding: 8px;
|
|
1991
2000
|
overflow: auto;
|
|
1992
2001
|
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
letter-spacing: 0%;
|
|
255
255
|
color: ${({$isActive:e})=>e?`#111111`:`#ffffff`};
|
|
256
256
|
}
|
|
257
|
-
`,ze=({count:e,active:t,setActive:n})=>{let[a,o]=(0,i.useState)([]),[s,c]=(0,i.useState)([]),[l,u]=(0,i.useState)([]),{clickSound:d}=U({effectsVolume:50}),f=Array.from({length:e},(e,t)=>t+1),p=()=>{t!==e&&(d(),n(t+1))},m=()=>{t!==1&&(d(),n(t-1))};(0,i.useEffect)(()=>{h()},[t,e]);let h=()=>{e>=10?(t<3?(o(f.slice(0,3)),c([`...`,e])):o([1,`...`]),t>e-3?c(f.slice(e-3)):c([`...`,e]),t>=3&&t<=e-3?u([t]):u([])):(o([]),c([]),u([...f]))},g=(r,i)=>{if(r!==t)if(d(),typeof r==`string`){if(i
|
|
257
|
+
`,ze=({count:e,active:t,setActive:n})=>{let[a,o]=(0,i.useState)([]),[s,c]=(0,i.useState)([]),[l,u]=(0,i.useState)([]),{clickSound:d}=U({effectsVolume:50}),f=Array.from({length:e},(e,t)=>t+1),p=()=>{t!==e&&(d(),n(t+1))},m=()=>{t!==1&&(d(),n(t-1))};(0,i.useEffect)(()=>{h()},[t,e]);let h=()=>{e>=10?(t<3?(o(f.slice(0,3)),c([`...`,e])):o([1,`...`]),t>e-3?c(f.slice(e-3)):c([`...`,e]),t>=3&&t<=e-3?u([t]):u([])):(o([]),c([]),u([...f]))},g=(r,i)=>{if(r!==t)if(d(),typeof r==`string`){if(i===`right`){let r=f.slice(t,e);n(r[(r.length/2).toFixed()-1])}else if(i===`left`){let e=f.slice(0,t);n(e[(e.length/2).toFixed()-1])}}else n(r)};return(0,r.jsx)(Le,{children:(0,r.jsxs)(`div`,{className:`wrapper`,children:[(0,r.jsx)(N,{height:26,isHoverActive:!1,width:26,onClick:m,icon:(0,r.jsx)(H,{height:7,width:12,position:`left`})}),[...a.map(e=>({el:e,side:`left`})),...l.map(e=>({el:e,side:void 0})),...s.map(e=>({el:e,side:`right`}))].map(({el:e,side:n},i)=>(0,r.jsx)(Re,{$isActive:t===e,children:(0,r.jsx)(N,{height:26,width:26,onClick:()=>g(e,n),isHoverActive:!1,text:String(e),isActiveBlue:t===e,textStyle:`p`})},i)),(0,r.jsx)(N,{height:26,width:26,onClick:p,isHoverActive:!1,icon:(0,r.jsx)(H,{height:7,width:12,position:`right`})})]})})},Be=n.styled.div`
|
|
258
258
|
max-width: 100%;
|
|
259
259
|
height: 100%;
|
|
260
260
|
overflow: auto;
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
position: relative;
|
|
564
564
|
overflow: hidden;
|
|
565
565
|
`,Ye=n.styled.div`
|
|
566
|
-
height:
|
|
566
|
+
height: 100%;
|
|
567
567
|
padding: 8px;
|
|
568
568
|
overflow: auto;
|
|
569
569
|
|