livevegas-ui-kit 1.0.32 → 1.0.33
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 +69 -69
- package/dist/components/BlackJackeWinPopup/index.d.ts +5 -0
- package/dist/components/BlackJackeWinPopup/index.stories.d.ts +7 -0
- package/dist/components/BlackJackeWinPopup/styled.d.ts +1 -0
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/styled.d.ts +6 -5
- package/dist/components/Card/styled.d.ts +2 -2
- package/dist/components/ChipBoard/index.d.ts +4 -1
- package/dist/components/ChipBoard/styled.d.ts +5 -1
- package/dist/components/History/PaginationGroup/styled.d.ts +1 -1
- package/dist/components/History/RoundHistory/RoundGroup/index.d.ts +6 -0
- package/dist/components/History/RoundHistory/RoundGroup/styled.d.ts +2 -0
- package/dist/components/History/RoundHistory/index.d.ts +1 -2
- package/dist/components/History/RoundHistory/styled.d.ts +6 -2
- package/dist/components/History/helpers.d.ts +49 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/icons/StarsForWin.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/livevegas-ui-kit.es.js +1612 -1260
- package/dist/livevegas-ui-kit.umd.js +317 -200
- package/package.json +55 -55
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 @@
|
|
|
1
|
+
export declare const WinPopupWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -10,6 +10,7 @@ export interface IButton {
|
|
|
10
10
|
textStyle?: string;
|
|
11
11
|
isActiveBlue?: boolean;
|
|
12
12
|
streamVolume?: number;
|
|
13
|
+
isHoverActive?: boolean;
|
|
13
14
|
setStreamVolume?: (volume: number) => void;
|
|
14
15
|
}
|
|
15
|
-
export declare const Button: ({ icon, onClick, buttonInfo, isActive, isValueButton, width, height, text, textStyle, isActiveBlue, streamVolume, setStreamVolume, }: IButton) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Button: ({ icon, onClick, buttonInfo, isActive, isValueButton, width, height, text, textStyle, isActiveBlue, streamVolume, setStreamVolume, isHoverActive, }: IButton) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
interface IButton {
|
|
2
|
-
isActive?: boolean;
|
|
3
|
-
isValueButton?: boolean;
|
|
2
|
+
$isActive?: boolean;
|
|
3
|
+
$isValueButton?: boolean;
|
|
4
|
+
$isActiveBlue?: boolean;
|
|
5
|
+
$isHoverActive?: boolean;
|
|
4
6
|
$isTournament?: boolean;
|
|
5
|
-
width
|
|
6
|
-
height
|
|
7
|
-
isActiveBlue?: boolean;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
8
9
|
}
|
|
9
10
|
export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IButton>> & string;
|
|
10
11
|
export declare const ButtonInfo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface ICardWrapper {
|
|
2
|
-
cardWidth: number;
|
|
3
|
-
cardHeight: number;
|
|
2
|
+
$cardWidth: number;
|
|
3
|
+
$cardHeight: number;
|
|
4
4
|
}
|
|
5
5
|
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
6
|
export {};
|
|
@@ -7,5 +7,8 @@ export interface IChipBoard {
|
|
|
7
7
|
onDouble: () => void;
|
|
8
8
|
onDeal: () => void;
|
|
9
9
|
balance: number;
|
|
10
|
+
isUndo: boolean;
|
|
11
|
+
isDouble: boolean;
|
|
12
|
+
isDeal: boolean;
|
|
10
13
|
}
|
|
11
|
-
export declare const ChipBoard: ({ time, chipAmounts, selectedChipIndex, selectChipIndex, onUndo, onDouble, onDeal, balance, }: IChipBoard) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const ChipBoard: ({ time, chipAmounts, selectedChipIndex, selectChipIndex, onUndo, onDouble, onDeal, balance, isUndo, isDouble, isDeal, }: IChipBoard) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,6 +3,10 @@ export declare const WrapperChips: import('styled-components/dist/types').IStyle
|
|
|
3
3
|
interface IChipWrapper {
|
|
4
4
|
chipSize: number;
|
|
5
5
|
}
|
|
6
|
+
interface IButton {
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
}
|
|
6
9
|
export declare const ChipWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IChipWrapper>> & string;
|
|
7
|
-
export declare const Deal: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
10
|
+
export declare const Deal: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IButton>> & string;
|
|
11
|
+
export declare const Button: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IButton>> & string;
|
|
8
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ButtonGroup: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
2
|
interface IButtonWrapper {
|
|
3
|
-
isActive: boolean;
|
|
3
|
+
$isActive: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare const ButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IButtonWrapper>> & string;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const ButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const Button: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -2,9 +2,8 @@ import { IRound } from '../helpers';
|
|
|
2
2
|
|
|
3
3
|
interface IRoundHistory {
|
|
4
4
|
roundData: IRound;
|
|
5
|
-
setRoundData: (data: IRound | null) => void;
|
|
6
5
|
handleClickRound: (index: number) => void;
|
|
7
6
|
indexHistory: number | null;
|
|
8
7
|
}
|
|
9
|
-
export declare const RoundHistory: ({ roundData,
|
|
8
|
+
export declare const RoundHistory: ({ roundData, handleClickRound, indexHistory, }: IRoundHistory) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -3,8 +3,8 @@ export declare const AmountWrapper: import('styled-components/dist/types').IStyl
|
|
|
3
3
|
export declare const DealerInfo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
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;
|
|
5
5
|
interface ISeats {
|
|
6
|
-
isActive: boolean;
|
|
7
|
-
index: number;
|
|
6
|
+
$isActive: boolean;
|
|
7
|
+
$index: number;
|
|
8
8
|
}
|
|
9
9
|
export declare const Seats: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ISeats>> & string;
|
|
10
10
|
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;
|
|
@@ -12,4 +12,8 @@ interface IHistoryCardWrapper {
|
|
|
12
12
|
color: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const HistoryCardWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IHistoryCardWrapper>> & string;
|
|
15
|
+
interface IWinAmount {
|
|
16
|
+
$isWin: boolean;
|
|
17
|
+
}
|
|
18
|
+
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;
|
|
15
19
|
export {};
|
|
@@ -82,10 +82,58 @@ export interface ISplittedHands {
|
|
|
82
82
|
}
|
|
83
83
|
export interface IBets {
|
|
84
84
|
amount: number;
|
|
85
|
-
betType:
|
|
85
|
+
betType: BET_TYPE;
|
|
86
86
|
boxIndex: number;
|
|
87
87
|
winAmount: number;
|
|
88
88
|
}
|
|
89
|
+
export declare enum BET_TYPE {
|
|
90
|
+
Ante = 0,
|
|
91
|
+
Insurance = 3,
|
|
92
|
+
Tip = 9,
|
|
93
|
+
Hit = 10,
|
|
94
|
+
Double = 11,
|
|
95
|
+
Split = 12,
|
|
96
|
+
Stand = 13,
|
|
97
|
+
Surrender = 14,
|
|
98
|
+
TwentyOnePlusThree = 15,
|
|
99
|
+
PerfectPairs = 16,
|
|
100
|
+
DraftAnte = 17,
|
|
101
|
+
DraftTwentyOnePlusThree = 18,
|
|
102
|
+
DraftPerfectPairs = 19,
|
|
103
|
+
Occupy = 20,
|
|
104
|
+
Leave = 21,
|
|
105
|
+
DraftBetBehind = 22,
|
|
106
|
+
BetBehind = 23,
|
|
107
|
+
Undo = 24,
|
|
108
|
+
Repeat = 25,
|
|
109
|
+
Deal = 26,
|
|
110
|
+
DoubleBets = 27,
|
|
111
|
+
StandAll = 49
|
|
112
|
+
}
|
|
113
|
+
export declare const betsType: {
|
|
114
|
+
0: string;
|
|
115
|
+
3: string;
|
|
116
|
+
9: string;
|
|
117
|
+
10: string;
|
|
118
|
+
11: string;
|
|
119
|
+
12: string;
|
|
120
|
+
13: string;
|
|
121
|
+
14: string;
|
|
122
|
+
15: string;
|
|
123
|
+
16: string;
|
|
124
|
+
17: string;
|
|
125
|
+
18: string;
|
|
126
|
+
19: string;
|
|
127
|
+
20: string;
|
|
128
|
+
21: string;
|
|
129
|
+
22: string;
|
|
130
|
+
23: string;
|
|
131
|
+
24: string;
|
|
132
|
+
25: string;
|
|
133
|
+
26: string;
|
|
134
|
+
27: string;
|
|
135
|
+
49: string;
|
|
136
|
+
};
|
|
89
137
|
export declare const historyData: IHistoryData;
|
|
90
138
|
export declare const formatted: (date: string) => string;
|
|
91
139
|
export declare const seatsPosition: string[];
|
|
@@ -11,5 +11,6 @@ import { MobileBottomInfo } from './MobileBottomInfo';
|
|
|
11
11
|
import { Timer } from './Timer';
|
|
12
12
|
import { Reconnect } from './Reconnect';
|
|
13
13
|
import { NotPlaying } from './NotPlaying';
|
|
14
|
+
import { BlackJackeWinPopup } from './BlackJackeWinPopup';
|
|
14
15
|
|
|
15
|
-
export { BalanceAndBet, TopIcons, Button, Chip, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying };
|
|
16
|
+
export { BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Chip, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StarsForWin: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ import { MobileBottomInfo } from './components/MobileBottomInfo';
|
|
|
11
11
|
import { Timer } from './components/Timer';
|
|
12
12
|
import { Reconnect } from './components/Reconnect';
|
|
13
13
|
import { NotPlaying } from './components/NotPlaying';
|
|
14
|
+
import { BlackJackeWinPopup } from './components/BlackJackeWinPopup';
|
|
14
15
|
|
|
15
|
-
export { BalanceAndBet, TopIcons, Button, Chip, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying };
|
|
16
|
+
export { BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Chip, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, };
|