livevegas-ui-kit 1.0.169 → 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.
@@ -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: "top" | "top-left" | "bottom" | "bottom-left" | "left" | "right";
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,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { CardTexas } from '.';
3
+
4
+ declare const meta: Meta<typeof CardTexas>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof CardTexas>;
7
+ export declare const Default: Story;
@@ -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,6 @@
1
+ interface IRoundGroup {
2
+ handleClickRound: (index: number) => void;
3
+ indexHistory: number | null;
4
+ }
5
+ export declare const RoundGroup: ({ handleClickRound, indexHistory }: IRoundGroup) => import("react/jsx-runtime").JSX.Element;
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;
@@ -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, "cards" | "finalValue" | "isBlackjack" | "winOnHand" | "betOnHand">;
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[];
@@ -16,7 +16,7 @@ export declare const getMobileSize: (activeAction: BUTTONS_TYPE | null, isLandsc
16
16
  width: number;
17
17
  } | null;
18
18
  export declare const handleTouchStart: (e: React.TouchEvent<HTMLDivElement>, setStartY: (el: number) => void) => void;
19
- export declare const handleTouchMove: (e: React.TouchEvent<HTMLDivElement>, startY: number, setIsOpen: (el: boolean) => void, setMoveY: (el: number | null) => void) => void;
19
+ export declare const handleTouchMove: (e: React.TouchEvent<HTMLDivElement>, startY: number, setIsOpen: (el: boolean) => void) => void;
20
20
  export declare const handleTouchEnd: (e: React.TouchEvent<HTMLDivElement>, setStartY: (el: number) => void) => void;
21
21
  declare const quality: readonly ["Min", "Low", "Med", "High", "Auto"];
22
22
  export type Quality = (typeof quality)[number];
@@ -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;