jp.ui.app.ds 1.0.11 → 1.0.12
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/index.d.ts +176 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { JSX as JSX$1 } from 'react';
|
|
|
3
3
|
import * as _emotion_styled from '@emotion/styled';
|
|
4
4
|
import * as _emotion_react from '@emotion/react';
|
|
5
5
|
import { Theme } from '@emotion/react';
|
|
6
|
+
import { DragStopEvent } from '@shopify/draggable';
|
|
6
7
|
import { AppSectionButton, AppScreenSectionListItem, AppScreenTypes } from 'jp.common.view';
|
|
7
8
|
|
|
8
9
|
type RoomsItemRequisiteType = {
|
|
@@ -267,6 +268,180 @@ declare const WorkflowButtonsStyled: _emotion_styled.StyledComponent<{
|
|
|
267
268
|
as?: React.ElementType;
|
|
268
269
|
}, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
269
270
|
|
|
271
|
+
type CardTableProps = {
|
|
272
|
+
orientation: 'horizontal' | 'vertical';
|
|
273
|
+
size: number;
|
|
274
|
+
seats: Array<{
|
|
275
|
+
seatNumber: number;
|
|
276
|
+
player: JSX$1.Element;
|
|
277
|
+
}>;
|
|
278
|
+
};
|
|
279
|
+
declare const CardTable: ({ seats, orientation, size }: CardTableProps) => JSX$1.Element;
|
|
280
|
+
|
|
281
|
+
type GameCardType = {
|
|
282
|
+
id: number;
|
|
283
|
+
rank: number;
|
|
284
|
+
suit: string;
|
|
285
|
+
isDisable: boolean;
|
|
286
|
+
isSelected?: boolean;
|
|
287
|
+
targets?: Array<number>;
|
|
288
|
+
};
|
|
289
|
+
type CardPair = {
|
|
290
|
+
id: number;
|
|
291
|
+
bottom?: GameCardType;
|
|
292
|
+
top?: GameCardType;
|
|
293
|
+
activated?: boolean;
|
|
294
|
+
disabled?: boolean;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
type DragAndDropEvent = {
|
|
298
|
+
event: DragStopEvent;
|
|
299
|
+
dragItemId: number;
|
|
300
|
+
targetId?: number;
|
|
301
|
+
};
|
|
302
|
+
type DragAndDropZoneClick = {
|
|
303
|
+
event: Event;
|
|
304
|
+
targetId: number;
|
|
305
|
+
activated: boolean;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
type CardDropTableProps = {
|
|
309
|
+
cardsPairs: Array<CardPair>;
|
|
310
|
+
activePlayerCards: Array<GameCardType>;
|
|
311
|
+
tableOrientation: 'horizontal' | 'vertical';
|
|
312
|
+
tableSize: number;
|
|
313
|
+
tableSeats: Array<{
|
|
314
|
+
seatNumber: number;
|
|
315
|
+
player: JSX$1.Element;
|
|
316
|
+
}>;
|
|
317
|
+
onSuccessDrop?: (event: DragAndDropEvent) => void;
|
|
318
|
+
onFailDrop?: (event: DragAndDropEvent) => void;
|
|
319
|
+
onDragItemClick?: (event: DragAndDropEvent) => void;
|
|
320
|
+
onDropZoneClick?: (event: DragAndDropZoneClick) => void;
|
|
321
|
+
onCloseClick?: () => void;
|
|
322
|
+
moves: Array<PlayerMoveButtonsType$1>;
|
|
323
|
+
onMoveButtonClick?: (id: string) => void;
|
|
324
|
+
};
|
|
325
|
+
declare const CardDragAndDropTable: (props: CardDropTableProps) => JSX$1.Element;
|
|
326
|
+
|
|
327
|
+
type CardsPlayerProps = {
|
|
328
|
+
playerId: string;
|
|
329
|
+
name: string;
|
|
330
|
+
avatarUrl: string;
|
|
331
|
+
avatarFrame?: string;
|
|
332
|
+
stack: string;
|
|
333
|
+
isActive: boolean;
|
|
334
|
+
cards: Array<GameCardType>;
|
|
335
|
+
role?: string;
|
|
336
|
+
selectedReaction?: string;
|
|
337
|
+
previewRatingWinnerRank?: number;
|
|
338
|
+
playerComment?: string;
|
|
339
|
+
itemClick?: (playerId: string) => void;
|
|
340
|
+
timer?: number;
|
|
341
|
+
};
|
|
342
|
+
declare const CardsPlayer: (props: CardsPlayerProps) => React$1.JSX.Element;
|
|
343
|
+
|
|
344
|
+
type CardsPlayerYoursProps = CardsPlayerProps & {
|
|
345
|
+
yoursComment?: string;
|
|
346
|
+
};
|
|
347
|
+
declare const CardsPlayerYours: (props: CardsPlayerYoursProps) => React$1.JSX.Element;
|
|
348
|
+
|
|
349
|
+
declare const CardsPlayerOnMobileTable: (props: CardsPlayerProps) => React$1.JSX.Element;
|
|
350
|
+
|
|
351
|
+
declare const CardsPlayerOnMobileTableYours: (props: CardsPlayerYoursProps) => React$1.JSX.Element;
|
|
352
|
+
|
|
353
|
+
declare enum GameCardSizeEnum {
|
|
354
|
+
USER = 0,
|
|
355
|
+
TABLE = 1
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare enum GameCardSuitEnum {
|
|
359
|
+
HEART = "heart",
|
|
360
|
+
SPADE = "spade",
|
|
361
|
+
CLUB = "club",
|
|
362
|
+
DIAMOND = "diamond"
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
declare enum GameCardRankEnum {
|
|
366
|
+
CARD_2 = 2,
|
|
367
|
+
CARD_3 = 3,
|
|
368
|
+
CARD_4 = 4,
|
|
369
|
+
CARD_5 = 5,
|
|
370
|
+
CARD_6 = 6,
|
|
371
|
+
CARD_7 = 7,
|
|
372
|
+
CARD_8 = 8,
|
|
373
|
+
CARD_9 = 9,
|
|
374
|
+
CARD_10 = 10,
|
|
375
|
+
CARD_JACK = 11,
|
|
376
|
+
CARD_QUEEN = 12,
|
|
377
|
+
CARD_KING = 13,
|
|
378
|
+
CARD_ACE = 14
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
declare enum GameCardSkinEnum {
|
|
382
|
+
DEFAULT = "card_skin__default",
|
|
383
|
+
WESTERN = "card_skin__western",
|
|
384
|
+
PINK_PANTHER = "card_skin__pink_panther",
|
|
385
|
+
DACHA = "card_skin__dacha",
|
|
386
|
+
VAMPIRE = "card_skin__vampire",
|
|
387
|
+
USSR = "card_skin__ussr",
|
|
388
|
+
POKERDOM = "card_skin__pokerdom",
|
|
389
|
+
PREMIUM = "card_skin__premium"
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
type GameCardBaseProps = {
|
|
393
|
+
rank?: number;
|
|
394
|
+
suit?: string;
|
|
395
|
+
size: GameCardSizeEnum;
|
|
396
|
+
theme: Theme;
|
|
397
|
+
hasAnimation?: boolean;
|
|
398
|
+
isDisable?: boolean;
|
|
399
|
+
isSelected?: boolean;
|
|
400
|
+
mini?: boolean;
|
|
401
|
+
};
|
|
402
|
+
type SuitSet = {
|
|
403
|
+
club: string;
|
|
404
|
+
spade: string;
|
|
405
|
+
heart: string;
|
|
406
|
+
diamond: string;
|
|
407
|
+
};
|
|
408
|
+
declare abstract class GameCardBase extends React$1.PureComponent<GameCardBaseProps> {
|
|
409
|
+
abstract getCover(): JSX$1.Element;
|
|
410
|
+
abstract getFace(): JSX$1.Element;
|
|
411
|
+
abstract getMiniFace(): JSX$1.Element;
|
|
412
|
+
abstract getFaceBackgroundColor(): string;
|
|
413
|
+
abstract getFaceBorderColor(): string;
|
|
414
|
+
abstract getCoverBackgroundColor(): string;
|
|
415
|
+
abstract getCoverBorderColor(): string;
|
|
416
|
+
protected suitToIcon(iconSet: SuitSet): string;
|
|
417
|
+
protected suitToColor(colorSet: SuitSet): string;
|
|
418
|
+
protected isTableSize(): boolean;
|
|
419
|
+
protected isEmpty(): boolean;
|
|
420
|
+
protected isTen(): boolean;
|
|
421
|
+
protected isDisable(): boolean;
|
|
422
|
+
protected isSelected(): boolean;
|
|
423
|
+
protected rankToLetter(): string;
|
|
424
|
+
protected getTheme(): Theme;
|
|
425
|
+
render(): JSX$1.Element;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
declare class CardSkinWestern extends GameCardBase {
|
|
429
|
+
getFaceBackgroundColor(): string;
|
|
430
|
+
getFaceBorderColor(): string;
|
|
431
|
+
getCoverBackgroundColor(): string;
|
|
432
|
+
getCoverBorderColor(): string;
|
|
433
|
+
getCover(): JSX$1.Element;
|
|
434
|
+
getFace(): JSX$1.Element;
|
|
435
|
+
getMiniFace(): React$1.JSX.Element;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare function createGameCard(skin: string): typeof CardSkinWestern;
|
|
439
|
+
|
|
440
|
+
type CardsRowProps = {
|
|
441
|
+
cards: Array<GameCardType>;
|
|
442
|
+
};
|
|
443
|
+
declare const TableCardsRow: ({ cards }: CardsRowProps) => React$1.JSX.Element;
|
|
444
|
+
|
|
270
445
|
declare const Badge: _emotion_styled.StyledComponent<{
|
|
271
446
|
theme?: Theme;
|
|
272
447
|
as?: React.ElementType;
|
|
@@ -691,4 +866,4 @@ type UniversalScreenProps = {
|
|
|
691
866
|
};
|
|
692
867
|
declare const UniversalScreen: (props: UniversalScreenProps) => React$1.JSX.Element;
|
|
693
868
|
|
|
694
|
-
export { Alert, AppBarHeader, Avatar, AvatarBadge, AvatarImage, Badge, Banner, Body, BottomSelectionPanel, BottomSheet, Card, CardButton, CardItem, CardProduct, Checkbox, CircularProgress, Dialog, Display, Divider, FilledButton, Headline, IconButton, Label, LastActionPanel, ListItem, OutlinedButton, OutlinedTextField, OutlinedTextarea, PageScreen, PlayerMoveButtons, PlayerMoveButtonsExtra, PlayerMoveButtonsPanel, PlayersRow, PlayersSkeleton, PlayersSkeletonRow, PopupScreen, RadioButtonGroup, RuStoreBanner, Screen, ScreenProgress, ScrollList, Skeleton, Snackbar, Tab, TableSummary, Tabs, TextButton, Title, TopAppBar, UniversalScreen, WorkflowButtonsStyled, common_d as common, media_d as media, palette_d as palette, zIndex_d as zIndex };
|
|
869
|
+
export { Alert, AppBarHeader, Avatar, AvatarBadge, AvatarImage, Badge, Banner, Body, BottomSelectionPanel, BottomSheet, Card, CardButton, CardDragAndDropTable, CardItem, CardProduct, CardTable, CardsPlayer, CardsPlayerOnMobileTable, CardsPlayerOnMobileTableYours, CardsPlayerYours, Checkbox, CircularProgress, Dialog, Display, Divider, FilledButton, GameCardRankEnum, GameCardSizeEnum, GameCardSkinEnum, GameCardSuitEnum, Headline, IconButton, Label, LastActionPanel, ListItem, OutlinedButton, OutlinedTextField, OutlinedTextarea, PageScreen, PlayerMoveButtons, PlayerMoveButtonsExtra, PlayerMoveButtonsPanel, PlayersRow, PlayersSkeleton, PlayersSkeletonRow, PopupScreen, RadioButtonGroup, RuStoreBanner, Screen, ScreenProgress, ScrollList, Skeleton, Snackbar, Tab, TableCardsRow, TableSummary, Tabs, TextButton, Title, TopAppBar, UniversalScreen, WorkflowButtonsStyled, common_d as common, createGameCard, media_d as media, palette_d as palette, zIndex_d as zIndex };
|