livevegas-ui-kit 1.0.315 → 1.0.316

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/README.md CHANGED
@@ -1,69 +1,69 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
-
14
- ```js
15
- export default tseslint.config([
16
- globalIgnores(['dist']),
17
- {
18
- files: ['**/*.{ts,tsx}'],
19
- extends: [
20
- // Other configs...
21
-
22
- // Remove tseslint.configs.recommended and replace with this
23
- ...tseslint.configs.recommendedTypeChecked,
24
- // Alternatively, use this for stricter rules
25
- ...tseslint.configs.strictTypeChecked,
26
- // Optionally, add this for stylistic rules
27
- ...tseslint.configs.stylisticTypeChecked,
28
-
29
- // Other configs...
30
- ],
31
- languageOptions: {
32
- parserOptions: {
33
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
34
- tsconfigRootDir: import.meta.dirname,
35
- },
36
- // other options...
37
- },
38
- },
39
- ])
40
- ```
41
-
42
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
43
-
44
- ```js
45
- // eslint.config.js
46
- import reactX from 'eslint-plugin-react-x'
47
- import reactDom from 'eslint-plugin-react-dom'
48
-
49
- export default tseslint.config([
50
- globalIgnores(['dist']),
51
- {
52
- files: ['**/*.{ts,tsx}'],
53
- extends: [
54
- // Other configs...
55
- // Enable lint rules for React
56
- reactX.configs['recommended-typescript'],
57
- // Enable lint rules for React DOM
58
- reactDom.configs.recommended,
59
- ],
60
- languageOptions: {
61
- parserOptions: {
62
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
63
- tsconfigRootDir: import.meta.dirname,
64
- },
65
- // other options...
66
- },
67
- },
68
- ])
69
- ```
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
+
14
+ ```js
15
+ export default tseslint.config([
16
+ globalIgnores(['dist']),
17
+ {
18
+ files: ['**/*.{ts,tsx}'],
19
+ extends: [
20
+ // Other configs...
21
+
22
+ // Remove tseslint.configs.recommended and replace with this
23
+ ...tseslint.configs.recommendedTypeChecked,
24
+ // Alternatively, use this for stricter rules
25
+ ...tseslint.configs.strictTypeChecked,
26
+ // Optionally, add this for stylistic rules
27
+ ...tseslint.configs.stylisticTypeChecked,
28
+
29
+ // Other configs...
30
+ ],
31
+ languageOptions: {
32
+ parserOptions: {
33
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
34
+ tsconfigRootDir: import.meta.dirname,
35
+ },
36
+ // other options...
37
+ },
38
+ },
39
+ ])
40
+ ```
41
+
42
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
43
+
44
+ ```js
45
+ // eslint.config.js
46
+ import reactX from 'eslint-plugin-react-x'
47
+ import reactDom from 'eslint-plugin-react-dom'
48
+
49
+ export default tseslint.config([
50
+ globalIgnores(['dist']),
51
+ {
52
+ files: ['**/*.{ts,tsx}'],
53
+ extends: [
54
+ // Other configs...
55
+ // Enable lint rules for React
56
+ reactX.configs['recommended-typescript'],
57
+ // Enable lint rules for React DOM
58
+ reactDom.configs.recommended,
59
+ ],
60
+ languageOptions: {
61
+ parserOptions: {
62
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
63
+ tsconfigRootDir: import.meta.dirname,
64
+ },
65
+ // other options...
66
+ },
67
+ },
68
+ ])
69
+ ```
@@ -453,7 +453,7 @@ var T = /* @__PURE__ */ function(e) {
453
453
  "#E258D4",
454
454
  "#F065DB"
455
455
  ]
456
- ][e.reduce((e, n, r) => n === t || n < t ? e = r : e, 0)], F = (e) => (b(e), e > 999999999 ? `${ce(e / 1e9)}B` : e > 999999.999999 ? `${ce(e / 1e6)}M` : e > 999.9999 ? `${ce(e / 1e3)}K` : b(e)), ce = (e) => String(e), I = [
456
+ ][e.reduce((e, n, r) => n === t || n < t ? e = r : e, 0)], F = (e) => e > 999999999 ? `${ce(b(e / 1e9))}B` : e > 999999.999999 ? `${ce(b(e / 1e6))}M` : e > 999.9999 ? `${ce(b(e / 1e3))}K` : b(e), ce = (e) => String(e), I = [
457
457
  {
458
458
  x: 10,
459
459
  y: 2,
@@ -161,7 +161,7 @@
161
161
  accent-color: #aef;
162
162
  cursor: pointer;
163
163
  ${({$isSettings:e})=>e&&`width: 120px`}
164
- `,M=({isSettings:e,volumeTitle:n,volume:i,setVolume:a})=>{let{t:o}=(0,t.useTranslation)();return(0,r.jsxs)(oe,{$isSettings:e,children:[(0,r.jsx)(`p`,{children:o(n??``)}),(0,r.jsx)(se,{min:0,max:100,step:.01,value:i,onClick:e=>e.stopPropagation(),onChange:e=>{e.preventDefault(),a(parseFloat(e.target.value))},$isSettings:e})]})},N=({icon:e,onClick:n,buttonInfo:a,isActive:o,isValueButton:s=!1,width:c=32,height:l=32,text:u,textStyle:d,isActiveBlue:f,streamVolume:p,setStreamVolume:m,isHoverActive:h=!0,positonHover:g=`bottom`,onMouseLeave:_,onTouchStart:v,onTouchEnd:y,onTouchCancel:b})=>{let[x,S]=(0,i.useState)(!1),{t:C}=(0,t.useTranslation)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(ne,{width:c,height:l,$isValueButton:s,$isActive:o,$isActiveBlue:f,onMouseEnter:()=>S(!0),onMouseLeave:()=>{_&&_(),S(!1)},onClick:n,"data-testid":`custom-button`,$isTournament:a===`Tournament`,$isHoverActive:h,onTouchStart:v,onTouchEnd:y,onTouchCancel:b,children:[d&&u&&(0,r.jsx)(`p`,{className:d,children:C(u)}),e,x&&!o&&(()=>{if(a)return(0,r.jsxs)(j,{$positonHover:g,"data-testid":`button-info`,children:[(0,r.jsx)(ae,{position:g}),C(a)]});if(s&&m&&typeof p==`number`)return(0,r.jsx)(re,{children:(0,r.jsx)(M,{setVolume:m,volume:p})})})()]})})},ce=(e,t)=>[[`#D8B30F`,`#E8BE01`,`#ECCB37`],[`#1C5A2A`,`#216D32`,`#31A049`],[`#7A2525`,`#7E2626`,`#B33636`],[`#1E2C5E`,`#1F3164`,`#2E4091`],[`#3886CA`,`#2E97F2`,`#53AFFF`],[`#1A1A1A`,`#2A2A2A`,`#404040`],[`#64167E`,`#7A1CA5`,`#910AD4`],[`#CB5621`,`#D25C21`,`#F06428`],[`#C63EC3`,`#E258D4`,`#F065DB`]][e.reduce((e,n,r)=>n===t||n<t?e=r:e,0)],P=e=>(b(e),e>999999999?`${F(e/1e9)}B`:e>999999.999999?`${F(e/1e6)}M`:e>999.9999?`${F(e/1e3)}K`:b(e)),F=e=>String(e),I=[{x:10,y:2,size:0},{x:2,y:2,size:0},{x:2,y:-1,size:-.6},{x:0,y:-2,size:-.8},{x:0,y:-2,size:-1},{x:0,y:-3,size:-1.1},{x:0,y:-3,size:-1.2},{x:0,y:-3,size:-1.3},{x:0,y:-3,size:-1.35},{x:0,y:-3,size:-1.4}],L={x:15,y:40,size:1.8},R=e=>{let t=e.length,n=e[t-1],r=n===`K`||n===`M`||n===`B`,i;return i=r&&t===2?{x:2,y:0,size:-.4}:I[t-1]??{x:0,y:0,size:0},{x:L.x+i.x,y:L.y+i.y,size:L.size+i.size}},le=n.styled.text`
164
+ `,M=({isSettings:e,volumeTitle:n,volume:i,setVolume:a})=>{let{t:o}=(0,t.useTranslation)();return(0,r.jsxs)(oe,{$isSettings:e,children:[(0,r.jsx)(`p`,{children:o(n??``)}),(0,r.jsx)(se,{min:0,max:100,step:.01,value:i,onClick:e=>e.stopPropagation(),onChange:e=>{e.preventDefault(),a(parseFloat(e.target.value))},$isSettings:e})]})},N=({icon:e,onClick:n,buttonInfo:a,isActive:o,isValueButton:s=!1,width:c=32,height:l=32,text:u,textStyle:d,isActiveBlue:f,streamVolume:p,setStreamVolume:m,isHoverActive:h=!0,positonHover:g=`bottom`,onMouseLeave:_,onTouchStart:v,onTouchEnd:y,onTouchCancel:b})=>{let[x,S]=(0,i.useState)(!1),{t:C}=(0,t.useTranslation)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(ne,{width:c,height:l,$isValueButton:s,$isActive:o,$isActiveBlue:f,onMouseEnter:()=>S(!0),onMouseLeave:()=>{_&&_(),S(!1)},onClick:n,"data-testid":`custom-button`,$isTournament:a===`Tournament`,$isHoverActive:h,onTouchStart:v,onTouchEnd:y,onTouchCancel:b,children:[d&&u&&(0,r.jsx)(`p`,{className:d,children:C(u)}),e,x&&!o&&(()=>{if(a)return(0,r.jsxs)(j,{$positonHover:g,"data-testid":`button-info`,children:[(0,r.jsx)(ae,{position:g}),C(a)]});if(s&&m&&typeof p==`number`)return(0,r.jsx)(re,{children:(0,r.jsx)(M,{setVolume:m,volume:p})})})()]})})},ce=(e,t)=>[[`#D8B30F`,`#E8BE01`,`#ECCB37`],[`#1C5A2A`,`#216D32`,`#31A049`],[`#7A2525`,`#7E2626`,`#B33636`],[`#1E2C5E`,`#1F3164`,`#2E4091`],[`#3886CA`,`#2E97F2`,`#53AFFF`],[`#1A1A1A`,`#2A2A2A`,`#404040`],[`#64167E`,`#7A1CA5`,`#910AD4`],[`#CB5621`,`#D25C21`,`#F06428`],[`#C63EC3`,`#E258D4`,`#F065DB`]][e.reduce((e,n,r)=>n===t||n<t?e=r:e,0)],P=e=>e>999999999?`${F(b(e/1e9))}B`:e>999999.999999?`${F(b(e/1e6))}M`:e>999.9999?`${F(b(e/1e3))}K`:b(e),F=e=>String(e),I=[{x:10,y:2,size:0},{x:2,y:2,size:0},{x:2,y:-1,size:-.6},{x:0,y:-2,size:-.8},{x:0,y:-2,size:-1},{x:0,y:-3,size:-1.1},{x:0,y:-3,size:-1.2},{x:0,y:-3,size:-1.3},{x:0,y:-3,size:-1.35},{x:0,y:-3,size:-1.4}],L={x:15,y:40,size:1.8},R=e=>{let t=e.length,n=e[t-1],r=n===`K`||n===`M`||n===`B`,i;return i=r&&t===2?{x:2,y:0,size:-.4}:I[t-1]??{x:0,y:0,size:0},{x:L.x+i.x,y:L.y+i.y,size:L.size+i.size}},le=n.styled.text`
165
165
  width: 100%;
166
166
  font-family: Bebas Neue;
167
167
  font-weight: 700;