livevegas-ui-kit 1.0.196 → 1.0.197

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
+ ```
@@ -0,0 +1,24 @@
1
+ import { IRound } from '../helpers';
2
+
3
+ type Color = '#610A0A' | '#000000' | 'Green';
4
+ type ColorName = 'Red' | 'Black' | 'Green';
5
+ declare enum BetType {
6
+ SINGLE = 1,
7
+ HORIZONTAL_SPLIT = 2,
8
+ VERTICAL_SPLIT = 3,
9
+ VERTICAL_STREET = 4,
10
+ COLUMN = 5,
11
+ CORNER = 6,
12
+ LINE = 7,
13
+ DOZEN = 8,
14
+ EVEN_ODD = 9,
15
+ RED_BLACK = 10,
16
+ EIGHTEEN = 11,
17
+ ZERO_SPLIT = 12,
18
+ ZERO_STREET = 13
19
+ }
20
+ export declare const getColor: (num: number) => Color;
21
+ export declare const getColorName: (num: number) => ColorName;
22
+ export declare const calculateTotalBet: (boxes: IRound["player"]["boxes"]) => number;
23
+ export declare const renderBetTypes: (betType: BetType, boxIndex: number) => string;
24
+ export {};
@@ -0,0 +1,10 @@
1
+ import { IRound } from '../helpers';
2
+
3
+ interface IRoundHistory {
4
+ roundData: IRound;
5
+ handleClickRound: (index: number) => void;
6
+ indexHistory: number | null;
7
+ isMobile?: boolean;
8
+ }
9
+ export declare const RouletteRoundHistory: ({ roundData, handleClickRound, indexHistory, isMobile, }: IRoundHistory) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ interface IWinAmount {
2
+ $isWin: boolean;
3
+ }
4
+ export declare const RoundHistoryWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const AmountWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ export declare const WinNumberWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ 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;
8
+ export declare const BaseLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export declare const BoxComponents: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ export declare const WinAmount: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, IWinAmount>> & string;
11
+ export declare const NumberST: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export {};
@@ -5,12 +5,19 @@ export interface IHistoryData {
5
5
  rounds: IRound[];
6
6
  totalCount: number;
7
7
  }
8
- interface IBet {
8
+ export interface IRouletteHistoryData {
9
9
  playerId: number;
10
+ rounds: IRound[];
11
+ totalCount: number;
12
+ }
13
+ interface IBet {
14
+ playerId?: number;
10
15
  boxIndex: number;
11
- amount: number;
16
+ amount?: number;
12
17
  betType: number;
13
18
  winAmount: number;
19
+ betInfo?: string | Object;
20
+ refId?: number;
14
21
  }
15
22
  export interface IRound {
16
23
  currentRoundId: number;
@@ -21,7 +28,7 @@ export interface IRound {
21
28
  tableId: number;
22
29
  dealer?: {
23
30
  nickname: string;
24
- };
31
+ } | null;
25
32
  initialDealerCards?: any[];
26
33
  initialPlayerCards?: any[];
27
34
  dealerCards?: any[];
@@ -30,6 +37,9 @@ export interface IRound {
30
37
  floppedCards?: any[];
31
38
  playerWinType?: number;
32
39
  dealerWinType?: number;
40
+ winNumber?: number;
41
+ tableName?: string;
42
+ fusionNumbers?: any[];
33
43
  }
34
44
  export type IHands = Pick<IHand, 'cards' | 'finalValue' | 'isBlackjack' | 'winOnHand' | 'betOnHand'>;
35
45
  export interface IDealerHand {
@@ -82,6 +92,10 @@ export interface IPlayer {
82
92
  finalValue?: number;
83
93
  betOnHand?: number;
84
94
  winOnHand?: number;
95
+ idleRoundsCount?: number;
96
+ gameType?: number;
97
+ continusWin?: number;
98
+ winWithCoefficient?: boolean;
85
99
  }
86
100
  export interface IBoxes {
87
101
  bets: IBets[];
@@ -223,6 +237,7 @@ export declare const betsType: {
223
237
  };
224
238
  export declare const texasHistoryData: IHistoryData;
225
239
  export declare const historyData: IHistoryData;
240
+ export declare const rouletteHistoryData: IRouletteHistoryData;
226
241
  export declare const formatted: (date: string) => string;
227
242
  export declare const seatsPosition: string[];
228
243
  export {};
@@ -1,6 +1,3 @@
1
- export type TextInterface = {
2
- [key: string]: string[] | (string | {
3
- [key: string]: any;
4
- })[];
5
- };
1
+ import { TextInterface } from './settings';
2
+
6
3
  export declare const text: TextInterface;
@@ -0,0 +1,3 @@
1
+ import { TextInterface } from './settings';
2
+
3
+ export declare const rouletteText: TextInterface;
@@ -0,0 +1,6 @@
1
+ export type TextInterface = {
2
+ [key: string]: string[] | (string | {
3
+ [key: string]: any;
4
+ })[];
5
+ };
6
+ export declare const settingsText: TextInterface;
@@ -1,6 +1,3 @@
1
- export type TextInterface = {
2
- [key: string]: string[] | (string | {
3
- [key: string]: any;
4
- })[];
5
- };
1
+ import { TextInterface } from './settings';
2
+
6
3
  export declare const texasText: TextInterface;