livevegas-ui-kit 1.0.46 → 1.0.48
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/BlackJackAction/ActionButton/index.d.ts +11 -0
- package/dist/components/BlackJackAction/ActionButton/styled.d.ts +9 -0
- package/dist/components/BlackJackAction/helper.d.ts +19 -0
- package/dist/components/BlackJackAction/index.d.ts +20 -0
- package/dist/components/BlackJackAction/index.stories.d.ts +7 -0
- package/dist/components/BlackJackAction/styled.d.ts +2 -0
- package/dist/components/ChipBoard/styled.d.ts +2 -2
- package/dist/components/NotPlaying/index.d.ts +7 -2
- package/dist/components/ToastMessages/index.d.ts +1 -2
- package/dist/components/ToastMessages/styled.d.ts +1 -8
- package/dist/components/index.d.ts +2 -1
- package/dist/icons/Hit.d.ts +1 -0
- package/dist/icons/Split.d.ts +1 -0
- package/dist/icons/Stand.d.ts +1 -0
- package/dist/icons/Surrender.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/livevegas-ui-kit.es.js +1134 -932
- package/dist/livevegas-ui-kit.umd.js +215 -138
- 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,11 @@
|
|
|
1
|
+
import { BET_TYPE } from 'src/components/History/helpers';
|
|
2
|
+
import { ButtonSizeKeys } from '../helper';
|
|
3
|
+
|
|
4
|
+
export interface IActionButton {
|
|
5
|
+
buttonType: BET_TYPE;
|
|
6
|
+
icon: JSX.Element;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
isDisabled: boolean;
|
|
9
|
+
size?: ButtonSizeKeys;
|
|
10
|
+
}
|
|
11
|
+
export declare const ActionButton: ({ buttonType, icon, onClick, isDisabled, size, }: IActionButton) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BET_TYPE } from 'src/components/History/helpers';
|
|
2
|
+
|
|
3
|
+
interface IButtonWrapper {
|
|
4
|
+
$color: BET_TYPE;
|
|
5
|
+
$size: number;
|
|
6
|
+
$isDisabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const ButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IButtonWrapper>> & string;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BET_TYPE } from '../History/helpers';
|
|
2
|
+
|
|
3
|
+
export type ButtonSizeKeys = keyof typeof buttonSize;
|
|
4
|
+
export declare const buttonStyled: {
|
|
5
|
+
11: string;
|
|
6
|
+
10: string;
|
|
7
|
+
13: string;
|
|
8
|
+
12: string;
|
|
9
|
+
14: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const buttonSize: {
|
|
12
|
+
small: number;
|
|
13
|
+
big: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const actions: {
|
|
16
|
+
betType: BET_TYPE;
|
|
17
|
+
name: string;
|
|
18
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
}[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BET_TYPE } from '../History/helpers';
|
|
2
|
+
|
|
3
|
+
interface IDoingAction {
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
onHandle: () => void;
|
|
6
|
+
}
|
|
7
|
+
interface IActions {
|
|
8
|
+
[BET_TYPE.Double]: IDoingAction;
|
|
9
|
+
[BET_TYPE.Hit]: IDoingAction;
|
|
10
|
+
[BET_TYPE.Split]: IDoingAction;
|
|
11
|
+
[BET_TYPE.Stand]: IDoingAction;
|
|
12
|
+
[BET_TYPE.Surrender]: IDoingAction;
|
|
13
|
+
}
|
|
14
|
+
export interface IBlackJackAction {
|
|
15
|
+
time: number;
|
|
16
|
+
actionsHandler: IActions;
|
|
17
|
+
onStandAll: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const BlackJackAction: ({ time, actionsHandler, onStandAll, }: IBlackJackAction) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const ActionWrapper: 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 StandAllButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Wrapper: 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 WrapperChips: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
interface IChipWrapper {
|
|
4
|
-
chipSize: number;
|
|
4
|
+
$chipSize: number;
|
|
5
5
|
}
|
|
6
6
|
interface IButton {
|
|
7
|
-
isDisabled?: boolean;
|
|
7
|
+
$isDisabled?: boolean;
|
|
8
8
|
}
|
|
9
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;
|
|
10
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;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { IUrlParam } from '../../utils/helpers';
|
|
2
|
+
import { HubConnection } from '@microsoft/signalr';
|
|
3
|
+
|
|
1
4
|
export interface INotPlaying {
|
|
2
|
-
|
|
5
|
+
partnerId: number;
|
|
6
|
+
socket: HubConnection | null;
|
|
7
|
+
urlParam: IUrlParam;
|
|
3
8
|
stayInTheGame: () => void;
|
|
4
9
|
}
|
|
5
|
-
export declare const NotPlaying: ({
|
|
10
|
+
export declare const NotPlaying: ({ partnerId, socket, urlParam, stayInTheGame, }: INotPlaying) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export interface IToast {
|
|
2
2
|
code: number;
|
|
3
|
-
type?: "error" | "warning" | "success";
|
|
4
3
|
}
|
|
5
|
-
export declare const ToastMessages: ({ code
|
|
4
|
+
export declare const ToastMessages: ({ code }: IToast) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Toast: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
-
type?: ToastType;
|
|
4
|
-
}>> & string;
|
|
1
|
+
export declare const Toast: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
2
|
export declare const ToastMessage: 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 BackgroundLayer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
-
type?: ToastType;
|
|
8
|
-
}>> & string;
|
|
9
|
-
export {};
|
|
@@ -13,5 +13,6 @@ import { Reconnect } from './Reconnect';
|
|
|
13
13
|
import { NotPlaying } from './NotPlaying';
|
|
14
14
|
import { BlackJackeWinPopup } from './BlackJackeWinPopup';
|
|
15
15
|
import { ToastMessages } from './ToastMessages';
|
|
16
|
+
import { BlackJackAction } from './BlackJackAction';
|
|
16
17
|
|
|
17
|
-
export { BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Chip, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages };
|
|
18
|
+
export { BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Chip, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages, BlackJackAction, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Hit: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Split: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Stand: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Surrender: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,5 +13,6 @@ import { Reconnect } from './components/Reconnect';
|
|
|
13
13
|
import { NotPlaying } from './components/NotPlaying';
|
|
14
14
|
import { BlackJackeWinPopup } from './components/BlackJackeWinPopup';
|
|
15
15
|
import { ToastMessages } from './components/ToastMessages';
|
|
16
|
+
import { BlackJackAction } from './components/BlackJackAction';
|
|
16
17
|
|
|
17
|
-
export { BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Chip, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages };
|
|
18
|
+
export { BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Chip, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages, BlackJackAction, };
|