jp.ui.app.ds 1.0.14 → 1.0.16
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 +55 -13
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/just_poker/drag-and-drop/index.d.ts +2 -0
- package/dist/just_poker/index.d.ts +1 -0
- package/dist/just_poker/player-move-buttons-panel/player-move-buttons-panel.d.ts +1 -0
- package/dist/just_poker/table-summary/table-summary.d.ts +1 -1
- package/dist/just_poker_cards/card-drag-and-drop-table/card-drag-and-drop-table.d.ts +3 -0
- package/dist/just_poker_cards/card-drag-and-drop-table/card-drag-and-drop-table.style.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +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
|
+
import { DragStopEvent, DragStartEvent, DragMoveEvent, DroppableDroppedEvent } from '@shopify/draggable';
|
|
7
7
|
import { AppSectionButton, AppScreenSectionListItem, AppScreenTypes } from 'jp.common.view';
|
|
8
8
|
|
|
9
9
|
type RoomsItemRequisiteType = {
|
|
@@ -201,6 +201,7 @@ type PlayerMoveButtonsType = {
|
|
|
201
201
|
title: string;
|
|
202
202
|
};
|
|
203
203
|
type PlayerMoveButtonsProps = {
|
|
204
|
+
isOpen: boolean;
|
|
204
205
|
moves: Array<PlayerMoveButtonsType>;
|
|
205
206
|
onMoveButtonClick?: (id: string) => void;
|
|
206
207
|
infoMessage?: string;
|
|
@@ -268,6 +269,55 @@ declare const WorkflowButtonsStyled: _emotion_styled.StyledComponent<{
|
|
|
268
269
|
as?: React.ElementType;
|
|
269
270
|
}, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
270
271
|
|
|
272
|
+
type DragAndDropEvent = {
|
|
273
|
+
event: DragStopEvent;
|
|
274
|
+
dragItemId: number;
|
|
275
|
+
targetId?: number;
|
|
276
|
+
};
|
|
277
|
+
type DragAndDropZoneClick = {
|
|
278
|
+
event: Event;
|
|
279
|
+
targetId: number;
|
|
280
|
+
activated: boolean;
|
|
281
|
+
};
|
|
282
|
+
type DragAndDropContainerProps = {
|
|
283
|
+
containerId: string;
|
|
284
|
+
children: React$1.ReactNode;
|
|
285
|
+
className?: string;
|
|
286
|
+
onStartDrag?: (event: DragAndDropEvent) => void;
|
|
287
|
+
onSuccessDrop?: (event: DragAndDropEvent) => void;
|
|
288
|
+
onFailDrop?: (event: DragAndDropEvent) => void;
|
|
289
|
+
onDragItemClick?: (event: DragAndDropEvent) => void;
|
|
290
|
+
onDropZoneClick?: (event: DragAndDropZoneClick) => void;
|
|
291
|
+
};
|
|
292
|
+
declare class DragAndDropContainer extends React$1.PureComponent<DragAndDropContainerProps> {
|
|
293
|
+
private startEvent;
|
|
294
|
+
private moveEvent;
|
|
295
|
+
private droppable;
|
|
296
|
+
componentDidMount(): void;
|
|
297
|
+
componentWillUnmount(): void;
|
|
298
|
+
handleDragAndDropClick: (event: PointerEvent) => void;
|
|
299
|
+
handleDragStart: (evt: DragStartEvent) => void;
|
|
300
|
+
handleDragStop: (evt: DragStopEvent) => void;
|
|
301
|
+
handleDragMove: (evt: DragMoveEvent) => void;
|
|
302
|
+
handleDropped: (evt: DroppableDroppedEvent) => void;
|
|
303
|
+
render(): React$1.JSX.Element;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
type DropzoneProps = {
|
|
307
|
+
className?: string;
|
|
308
|
+
children: React$1.ReactNode;
|
|
309
|
+
id: number;
|
|
310
|
+
};
|
|
311
|
+
declare const DragAndDropZone: ({ id, children, className }: DropzoneProps) => React$1.JSX.Element;
|
|
312
|
+
|
|
313
|
+
type DragAndDropItemProps = {
|
|
314
|
+
children: React$1.ReactNode;
|
|
315
|
+
id: number;
|
|
316
|
+
className?: string;
|
|
317
|
+
dataTargets?: Array<number>;
|
|
318
|
+
};
|
|
319
|
+
declare const DragAndDropItem: ({ children, id, className, dataTargets }: DragAndDropItemProps) => React$1.JSX.Element;
|
|
320
|
+
|
|
271
321
|
type CardTableProps = {
|
|
272
322
|
orientation: 'horizontal' | 'vertical';
|
|
273
323
|
size: number;
|
|
@@ -294,17 +344,6 @@ type CardPair = {
|
|
|
294
344
|
disabled: boolean;
|
|
295
345
|
};
|
|
296
346
|
|
|
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
347
|
type CardDropTableProps$1 = {
|
|
309
348
|
onSuccessDrop?: (event: DragAndDropEvent) => void;
|
|
310
349
|
onFailDrop?: (event: DragAndDropEvent) => void;
|
|
@@ -323,6 +362,8 @@ type CardDropTableProps$1 = {
|
|
|
323
362
|
cardsPanelCards: Array<GameCardType>;
|
|
324
363
|
cardsPanelIsOpen: boolean;
|
|
325
364
|
cardsPanelMoves: Array<PlayerMoveButtonsType$1>;
|
|
365
|
+
summaryRequisites?: Array<SummaryRequisiteItem>;
|
|
366
|
+
summaryRequisitesTimer?: number;
|
|
326
367
|
};
|
|
327
368
|
declare const CardDragAndDropTable: (props: CardDropTableProps$1) => JSX$1.Element;
|
|
328
369
|
|
|
@@ -874,4 +915,5 @@ type UniversalScreenProps = {
|
|
|
874
915
|
};
|
|
875
916
|
declare const UniversalScreen: (props: UniversalScreenProps) => React$1.JSX.Element;
|
|
876
917
|
|
|
877
|
-
export { Alert, AppBarHeader, Avatar, AvatarBadge, AvatarImage, Badge, Banner, Body, BottomSelectionPanel, BottomSheet, Card, CardButton, CardDeck, 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 };
|
|
918
|
+
export { Alert, AppBarHeader, Avatar, AvatarBadge, AvatarImage, Badge, Banner, Body, BottomSelectionPanel, BottomSheet, Card, CardButton, CardDeck, CardDragAndDropTable, CardItem, CardProduct, CardTable, CardsPlayer, CardsPlayerOnMobileTable, CardsPlayerOnMobileTableYours, CardsPlayerYours, Checkbox, CircularProgress, Dialog, Display, Divider, DragAndDropContainer, DragAndDropItem, DragAndDropZone, 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 };
|
|
919
|
+
export type { DragAndDropEvent, DragAndDropZoneClick };
|