livevegas-ui-kit 1.0.311 → 1.0.313

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
+ ```
@@ -1,4 +1,4 @@
1
- import { BET_TYPE } from 'src/components/History/helpers';
1
+ import { BET_TYPE } from '../History/helpers';
2
2
  import { ISizeIcon } from './helper';
3
3
 
4
4
  export interface IActionButton {
@@ -1,6 +1,9 @@
1
+ import { IActiveElements } from '../../utils/helpers';
2
+
1
3
  export interface IBalanceAndBet {
2
4
  balance: number;
3
5
  bet: number;
4
6
  currencyId: string;
7
+ isActiveElements: IActiveElements;
5
8
  }
6
- export declare const BalanceAndBet: ({ balance, bet, currencyId }: IBalanceAndBet) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const BalanceAndBet: ({ balance, bet, currencyId, isActiveElements, }: IBalanceAndBet) => import("react/jsx-runtime").JSX.Element;
@@ -7,7 +7,6 @@ interface IHistory {
7
7
  openRoundHistory?: number;
8
8
  isMobile?: boolean;
9
9
  isLandscape?: boolean;
10
- pageSize?: number;
11
10
  }
12
- export declare const History: ({ historyData, getHistory, setOpenRoundHistory, openRoundHistory, isMobile, isLandscape, pageSize, }: IHistory) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const History: ({ historyData, getHistory, setOpenRoundHistory, openRoundHistory, isMobile, isLandscape, }: IHistory) => import("react/jsx-runtime").JSX.Element;
13
12
  export {};
@@ -1,8 +1,11 @@
1
+ import { IActiveElements } from '../../utils/helpers';
2
+
1
3
  export interface IMobileBottomInfo {
2
4
  balance: number;
3
5
  bet: number;
4
6
  currencyId: string;
5
7
  name: string;
6
8
  round: string;
9
+ isActiveElements: IActiveElements;
7
10
  }
8
- export declare const MobileBottomInfo: ({ balance, bet, currencyId, name, round, }: IMobileBottomInfo) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const MobileBottomInfo: ({ balance, bet, currencyId, name, round, isActiveElements, }: IMobileBottomInfo) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { BUTTONS_TYPE } from '../TopIcons/helper';
1
+ import { BUTTONS_TYPE } from '../../utils/helpers';
2
2
 
3
3
  export declare const menuButtonTop: {
4
4
  name: string;
@@ -1,5 +1,5 @@
1
1
  import { HubConnection } from '@microsoft/signalr';
2
- import { IUrlParam } from '../../utils/helpers';
2
+ import { IActiveElements, IUrlParam } from '../../utils/helpers';
3
3
  import { Lang, Quality } from '../TopIcons/helper';
4
4
  import { IMessage } from '../../api/types';
5
5
  import { IHistoryData } from '../History/helpers';
@@ -46,5 +46,6 @@ export interface IToLobby {
46
46
  dealerLang?: Lang;
47
47
  setMusicVolume?: (volume: number) => void;
48
48
  musicVolume?: number;
49
+ isActiveElements: IActiveElements;
49
50
  }
50
- export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, tournamentData, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, streamVolume, balance, currencyId, effectsVolume, setEffectsVolume, setStreamVolume, getHistory, limits, sendTip, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, dealerName, errorCode, gameType, maxPayOut, selectedGame, limit, dealerLang, setMusicVolume, musicVolume, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
51
+ export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, tournamentData, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, streamVolume, balance, currencyId, effectsVolume, setEffectsVolume, setStreamVolume, getHistory, limits, sendTip, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, dealerName, errorCode, gameType, maxPayOut, selectedGame, limit, dealerLang, setMusicVolume, musicVolume, isActiveElements, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { HubConnection } from '@microsoft/signalr';
2
- import { IUrlParam } from '../../utils/helpers';
2
+ import { IActiveElements, IUrlParam } from '../../utils/helpers';
3
3
  import { ILimitInfo } from '../LimitInfo';
4
4
  import { IStake } from '../LimitInfoRoulette';
5
5
 
@@ -14,5 +14,6 @@ export interface IToLobby {
14
14
  gameType?: number;
15
15
  maxPayOut?: number;
16
16
  currencyId?: string;
17
+ isActiveElements: IActiveElements;
17
18
  }
18
- export declare const ToLobby: ({ name, round, limit, partnerId, socket, urlParam, limits, gameType, maxPayOut, currencyId, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const ToLobby: ({ name, round, limit, partnerId, socket, urlParam, limits, gameType, maxPayOut, currencyId, isActiveElements, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,8 @@
1
1
  export declare const PopupPosition: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export declare const MainToLobby: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const Logo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const Logo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ isCloseLobby: boolean;
5
+ isCloseLogo: boolean;
6
+ }>> & string;
4
7
  export declare const TextContener: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
8
  export declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,5 +1,5 @@
1
1
  export interface IToast {
2
- code: number;
2
+ code: string;
3
3
  type?: 'error' | 'warning' | 'success';
4
4
  }
5
5
  export declare const ToastMessages: ({ code, type }: IToast) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,11 @@
1
- import { BUTTONS_TYPE, Quality, Lang } from './helper';
1
+ import { Quality, Lang } from './helper';
2
2
  import { TournamentData } from '../Tournament';
3
3
  import { IMessage } from '../../api/types';
4
4
  import { ILimitInfo } from '../LimitInfo';
5
5
  import { IHistoryData } from '../History/helpers';
6
6
  import { ERRORS_TYPES } from '../../api/constants/errorsTypes';
7
7
  import { IStake } from '../LimitInfoRoulette';
8
+ import { BUTTONS_TYPE } from '../../utils/helpers';
8
9
 
9
10
  export interface IElements {
10
11
  messages: IMessage[];
@@ -25,7 +26,6 @@ export interface IElements {
25
26
  balance: number;
26
27
  getHistory: (active: number) => void;
27
28
  openRoundHistory?: number;
28
- pageSize?: number;
29
29
  limits?: ILimitInfo | IStake[] | string;
30
30
  sendTip?: (amount: number) => void;
31
31
  currencyId: string;
@@ -46,4 +46,4 @@ export interface IElements {
46
46
  musicVolume?: number;
47
47
  onTournamentClick?: () => void;
48
48
  }
49
- export declare const Elements: ({ activeAction, messages, onSendMessage, chipAmounts, messagesSupport, onSendMessageSupport, setOpenRoundHistory, isMobile, historyData, isLandscape, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, openRoundHistory, balance, getHistory, pageSize, sendTip, limits, currencyId, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, errorCode, playerId, gameType, maxPayOut, selectedGame, limit, dealerLang, dealerName, setMusicVolume, musicVolume, onTournamentClick, }: IElements) => import("react/jsx-runtime").JSX.Element | undefined;
49
+ export declare const Elements: ({ activeAction, messages, onSendMessage, chipAmounts, messagesSupport, onSendMessageSupport, setOpenRoundHistory, isMobile, historyData, isLandscape, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, openRoundHistory, balance, getHistory, sendTip, limits, currencyId, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, errorCode, playerId, gameType, maxPayOut, selectedGame, limit, dealerLang, dealerName, setMusicVolume, musicVolume, onTournamentClick, }: IElements) => import("react/jsx-runtime").JSX.Element | undefined;
@@ -1,16 +1,5 @@
1
- export declare enum BUTTONS_TYPE {
2
- Message = 1,
3
- Support = 2,
4
- Tip = 3,
5
- History = 4,
6
- Info = 5,
7
- Settings = 6,
8
- VolumeOn = 7,
9
- FullScreen = 8,
10
- Tournament = 9,
11
- closeMenu = 10,
12
- Limit = 11
13
- }
1
+ import { BUTTONS_TYPE } from '../../utils/helpers';
2
+
14
3
  export interface Ibuttons {
15
4
  name?: string;
16
5
  buttonType: BUTTONS_TYPE;
@@ -3,6 +3,7 @@ import { IMessage } from '../../api/types';
3
3
  import { IHistoryData } from '../History/helpers';
4
4
  import { TournamentData } from '../Tournament';
5
5
  import { ERRORS_TYPES } from '../../api/constants/errorsTypes';
6
+ import { IActiveElements } from '../../utils/helpers';
6
7
 
7
8
  export interface ITopIcons {
8
9
  messages: IMessage[];
@@ -22,7 +23,6 @@ export interface ITopIcons {
22
23
  isTournamentDetailsVisible: boolean;
23
24
  balance: number;
24
25
  getHistory: (active: number) => void;
25
- pageSize?: number;
26
26
  sendTip: (amount: number) => void;
27
27
  currencyId: string;
28
28
  handleStreamQualityChange?: (value: Quality) => void;
@@ -42,5 +42,6 @@ export interface ITopIcons {
42
42
  setMusicVolume?: (volume: number) => void;
43
43
  musicVolume?: number;
44
44
  onTournamentClick: () => void;
45
+ isActiveElements: IActiveElements;
45
46
  }
46
- export declare const TopIcons: ({ messages, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, historyData, balance, isFullscreen, toggleFullscreen, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, isTournamentDetailsVisible, getHistory, pageSize, sendTip, currencyId, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, dealerName, errorCode, playerId, partnerId, isActiveModal, setActivation, gameType, selectedGame, dealerLang, setMusicVolume, musicVolume, onTournamentClick, }: ITopIcons) => import("react/jsx-runtime").JSX.Element;
47
+ export declare const TopIcons: ({ messages, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, historyData, balance, isFullscreen, toggleFullscreen, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, isTournamentDetailsVisible, getHistory, sendTip, currencyId, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, dealerName, errorCode, playerId, partnerId, isActiveModal, setActivation, gameType, selectedGame, dealerLang, setMusicVolume, musicVolume, onTournamentClick, isActiveElements, }: ITopIcons) => import("react/jsx-runtime").JSX.Element;
@@ -25,6 +25,6 @@ import { FullScreenView } from './FoolScreen';
25
25
  import { CardTexas } from './CardTexas';
26
26
  import { TournamentAndPoints } from './TournamentAndPoints';
27
27
  import { LaunchFailed } from './LaunchFailed';
28
- import { default as i18n, initI18n } from '../services/i18n/config';
28
+ import { initI18n, i18n } from '../services/i18n/config';
29
29
 
30
- export { i18n, initI18n, MoibleChipBoard, BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Card, Chip, Chip3D, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages, BlackJackAction, BlackjeckInsurance, Wager, BonusModalContent, CardsRightInfo, TournamentAndPoints, CardTexas, FullScreenView, LaunchFailed };
30
+ export { i18n, initI18n, MoibleChipBoard, BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Card, Chip, Chip3D, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages, BlackJackAction, BlackjeckInsurance, Wager, BonusModalContent, CardsRightInfo, TournamentAndPoints, CardTexas, FullScreenView, LaunchFailed, };