livevegas-ui-kit 1.0.170 → 1.0.171
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/dist/components/Button/styled.d.ts +1 -1
- package/dist/components/CardTexas/helper.d.ts +39 -0
- package/dist/components/CardTexas/index.d.ts +12 -0
- package/dist/components/CardTexas/index.stories.d.ts +7 -0
- package/dist/components/CardTexas/styled.d.ts +11 -0
- package/dist/components/ChipBoard/index.d.ts +1 -1
- package/dist/components/History/TexasRoundHistory/RoundGroup/index.d.ts +6 -0
- package/dist/components/History/TexasRoundHistory/RoundGroup/styled.d.ts +2 -0
- package/dist/components/History/TexasRoundHistory/index.d.ts +10 -0
- package/dist/components/History/TexasRoundHistory/styled.d.ts +18 -0
- package/dist/components/History/helpers.d.ts +37 -11
- package/dist/components/MoibleChipBoard/index.d.ts +1 -1
- package/dist/components/TopIcons/Elements.d.ts +1 -1
- package/dist/livevegas-ui-kit.es.js +3387 -2604
- package/dist/livevegas-ui-kit.umd.js +630 -180
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ interface IButton {
|
|
|
9
9
|
}
|
|
10
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;
|
|
11
11
|
interface IButtonInfo {
|
|
12
|
-
$positonHover:
|
|
12
|
+
$positonHover: 'top' | 'top-left' | 'bottom' | 'bottom-left' | 'left' | 'right';
|
|
13
13
|
}
|
|
14
14
|
export declare const ButtonInfo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IButtonInfo>> & string;
|
|
15
15
|
export declare const ButtonComponent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare enum BackFaceCardType {
|
|
2
|
+
Reverse = "reverse",
|
|
3
|
+
Green = "green",
|
|
4
|
+
Gray = "gray",
|
|
5
|
+
Black = "black"
|
|
6
|
+
}
|
|
7
|
+
interface IcardScannerIndexArr {
|
|
8
|
+
value: string;
|
|
9
|
+
tSpanX: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IBackFaceCard {
|
|
12
|
+
type: BackFaceCardType;
|
|
13
|
+
fixSizes?: boolean;
|
|
14
|
+
cardWidth?: number;
|
|
15
|
+
cardHeight?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const cardScannerIndexArr: IcardScannerIndexArr[];
|
|
18
|
+
export declare const getCardColor: (scannerIndex: number) => "#111111" | "#B50E05";
|
|
19
|
+
export declare const cardTypeIcons: Record<IBackFaceCard['type'], string>;
|
|
20
|
+
export declare const SVGSuits: string[];
|
|
21
|
+
export declare const getSuit: (index: number) => string;
|
|
22
|
+
export declare const getCardColorIndex: (scannerIndex: number) => "#E34747" | "#FFFFFF99";
|
|
23
|
+
export declare const SVGValues: {
|
|
24
|
+
'2': string;
|
|
25
|
+
'3': string;
|
|
26
|
+
'4': string;
|
|
27
|
+
'5': string;
|
|
28
|
+
'6': string;
|
|
29
|
+
'7': string;
|
|
30
|
+
'8': string;
|
|
31
|
+
'9': string;
|
|
32
|
+
'10': string;
|
|
33
|
+
J: string;
|
|
34
|
+
Q: string;
|
|
35
|
+
K: string;
|
|
36
|
+
A: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const getValue: (value: string) => string;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ICardProps {
|
|
2
|
+
index: number;
|
|
3
|
+
cardWidth?: number;
|
|
4
|
+
cardHeight?: number;
|
|
5
|
+
cardAnimation?: string;
|
|
6
|
+
isFlop?: boolean;
|
|
7
|
+
isWinCombination?: boolean;
|
|
8
|
+
isMinSizeCard?: boolean;
|
|
9
|
+
isMobile?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const CardTexas: ({ index, cardWidth, cardHeight, cardAnimation, isFlop, isWinCombination, }: ICardProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface ICardWrapper {
|
|
2
|
+
$cardWidth: number;
|
|
3
|
+
$cardHeight: number;
|
|
4
|
+
}
|
|
5
|
+
interface ICardAnimate {
|
|
6
|
+
$isWinCombination: boolean | undefined;
|
|
7
|
+
}
|
|
8
|
+
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;
|
|
9
|
+
export declare const CardAnimate: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ICardAnimate>> & string;
|
|
10
|
+
export declare const Floper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export {};
|
|
@@ -14,4 +14,4 @@ export interface IChipBoard {
|
|
|
14
14
|
isRepeat: boolean;
|
|
15
15
|
gameType?: number;
|
|
16
16
|
}
|
|
17
|
-
export declare const ChipBoard: ({ time, chipAmounts, selectedChipIndex, selectChipIndex, onUndo, onDouble, onDeal, onRepeat, balance, isUndo, isDouble, isDeal, isRepeat, gameType }: IChipBoard) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const ChipBoard: ({ time, chipAmounts, selectedChipIndex, selectChipIndex, onUndo, onDouble, onDeal, onRepeat, balance, isUndo, isDouble, isDeal, isRepeat, gameType, }: IChipBoard) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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;
|
|
@@ -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 TexasRoundHistory: ({ roundData, handleClickRound, indexHistory, isMobile, }: IRoundHistory) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface ISeats {
|
|
2
|
+
$isActive: boolean;
|
|
3
|
+
$index: number;
|
|
4
|
+
}
|
|
5
|
+
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;
|
|
6
|
+
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;
|
|
7
|
+
export declare const TableWrapper: 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 DealerInfo: 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 Line: 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 BaseLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
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;
|
|
12
|
+
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;
|
|
13
|
+
interface IWinAmount {
|
|
14
|
+
$isWin: boolean;
|
|
15
|
+
}
|
|
16
|
+
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;
|
|
17
|
+
export declare const BButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
18
|
+
export {};
|
|
@@ -5,18 +5,33 @@ export interface IHistoryData {
|
|
|
5
5
|
rounds: IRound[];
|
|
6
6
|
totalCount: number;
|
|
7
7
|
}
|
|
8
|
+
interface IBet {
|
|
9
|
+
playerId: number;
|
|
10
|
+
boxIndex: number;
|
|
11
|
+
amount: number;
|
|
12
|
+
betType: number;
|
|
13
|
+
winAmount: number;
|
|
14
|
+
}
|
|
8
15
|
export interface IRound {
|
|
9
16
|
currentRoundId: number;
|
|
10
17
|
roundState: number;
|
|
11
|
-
dealer: {
|
|
12
|
-
nickname: string;
|
|
13
|
-
};
|
|
14
18
|
gameId: number;
|
|
15
19
|
player: IPlayer;
|
|
16
20
|
roundEndTime: string;
|
|
17
21
|
tableId: number;
|
|
22
|
+
dealer?: {
|
|
23
|
+
nickname: string;
|
|
24
|
+
};
|
|
25
|
+
initialDealerCards?: any[];
|
|
26
|
+
initialPlayerCards?: any[];
|
|
27
|
+
dealerCards?: any[];
|
|
28
|
+
playerCards?: any[];
|
|
29
|
+
bonusCards?: any[];
|
|
30
|
+
floppedCards?: any[];
|
|
31
|
+
playerWinType?: number;
|
|
32
|
+
dealerWinType?: number;
|
|
18
33
|
}
|
|
19
|
-
type IHands = Pick<IHand,
|
|
34
|
+
export type IHands = Pick<IHand, 'cards' | 'finalValue' | 'isBlackjack' | 'winOnHand' | 'betOnHand'>;
|
|
20
35
|
export interface IDealerHand {
|
|
21
36
|
cards: ICard[];
|
|
22
37
|
isBlackjack: boolean;
|
|
@@ -53,15 +68,20 @@ export interface IHand extends IDealerHand {
|
|
|
53
68
|
betOnHand: number;
|
|
54
69
|
}
|
|
55
70
|
export interface IPlayer {
|
|
56
|
-
boxes: IBoxes[];
|
|
57
|
-
dealerBox: {
|
|
58
|
-
hand: IHands;
|
|
59
|
-
};
|
|
60
71
|
id: number;
|
|
61
|
-
nickname: string;
|
|
62
72
|
winAmount: number;
|
|
73
|
+
nickname?: string;
|
|
74
|
+
boxes?: IBoxes[];
|
|
75
|
+
dealerBox?: {
|
|
76
|
+
hand: IHands;
|
|
77
|
+
};
|
|
63
78
|
partnerId?: number;
|
|
64
79
|
gameCurrencyId?: string;
|
|
80
|
+
bets?: IBet[];
|
|
81
|
+
betAmount?: number;
|
|
82
|
+
finalValue?: number;
|
|
83
|
+
betOnHand?: number;
|
|
84
|
+
winOnHand?: number;
|
|
65
85
|
}
|
|
66
86
|
export interface IBoxes {
|
|
67
87
|
bets: IBets[];
|
|
@@ -93,11 +113,14 @@ export declare enum Table {
|
|
|
93
113
|
BlackJack2 = 30,
|
|
94
114
|
BlackJack3 = 11,
|
|
95
115
|
BlackJack4 = 56,// poker dom
|
|
96
|
-
BlackJackTest = 16
|
|
116
|
+
BlackJackTest = 16,
|
|
117
|
+
Texas = 10
|
|
97
118
|
}
|
|
98
|
-
export declare const getTableName: (tableId: number) => "" | "Speed BlackJack P" | "Speed BlackJack" | "BlackJack 1" | "BlackJack 2" | "BlackJack P" | "BlackJack";
|
|
119
|
+
export declare const getTableName: (tableId: number) => "" | "Speed BlackJack P" | "Speed BlackJack" | "BlackJack 1" | "BlackJack 2" | "BlackJack P" | "BlackJack" | "Texas";
|
|
99
120
|
export declare enum BET_TYPE {
|
|
100
121
|
Ante = 0,
|
|
122
|
+
Bonus = 1,
|
|
123
|
+
Call = 2,
|
|
101
124
|
Insurance = 3,
|
|
102
125
|
Tip = 9,
|
|
103
126
|
Hit = 10,
|
|
@@ -150,6 +173,8 @@ export declare enum GAME_STATE {
|
|
|
150
173
|
}
|
|
151
174
|
export declare const betsType: {
|
|
152
175
|
0: string;
|
|
176
|
+
1: string;
|
|
177
|
+
2: string;
|
|
153
178
|
3: string;
|
|
154
179
|
9: string;
|
|
155
180
|
10: string;
|
|
@@ -172,6 +197,7 @@ export declare const betsType: {
|
|
|
172
197
|
27: string;
|
|
173
198
|
49: string;
|
|
174
199
|
};
|
|
200
|
+
export declare const texasHistoryData: IHistoryData;
|
|
175
201
|
export declare const historyData: IHistoryData;
|
|
176
202
|
export declare const formatted: (date: string) => string;
|
|
177
203
|
export declare const seatsPosition: string[];
|
|
@@ -14,4 +14,4 @@ export interface IMoibleChipBoard {
|
|
|
14
14
|
isLandscape: boolean;
|
|
15
15
|
gameType?: number;
|
|
16
16
|
}
|
|
17
|
-
export declare const MoibleChipBoard: ({ chipAmounts, selectedChipIndex, selectChipIndex, onUndo, onDouble, onRepeat, balance, isUndo, isDouble, onDeal, isDeal, isRepeat, isLandscape, gameType }: IMoibleChipBoard) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const MoibleChipBoard: ({ chipAmounts, selectedChipIndex, selectChipIndex, onUndo, onDouble, onRepeat, balance, isUndo, isDouble, onDeal, isDeal, isRepeat, isLandscape, gameType, }: IMoibleChipBoard) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -34,4 +34,4 @@ export interface IElements {
|
|
|
34
34
|
errorCode?: ERRORS_TYPES;
|
|
35
35
|
playerId?: number;
|
|
36
36
|
}
|
|
37
|
-
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, streamQuality, nickNameChange, nickName, errorCode, playerId }: IElements) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
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, streamQuality, nickNameChange, nickName, errorCode, playerId, }: IElements) => import("react/jsx-runtime").JSX.Element;
|