jp.ui.app.ds 1.0.4 → 1.0.6

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.
Files changed (33) hide show
  1. package/dist/index.d.ts +52 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/just_poker/card-table/card-table-seat.d.ts +8 -0
  5. package/dist/just_poker/card-table/card-table-seat.style.d.ts +9 -0
  6. package/dist/just_poker/card-table/card-table.d.ts +11 -0
  7. package/dist/just_poker/card-table/card-table.style.d.ts +15 -0
  8. package/dist/just_poker/card-table/index.d.ts +1 -0
  9. package/dist/just_poker/card-table/seat-coord.d.ts +5 -0
  10. package/dist/just_poker/index.d.ts +6 -0
  11. package/dist/just_poker/player-move-buttons/index.d.ts +1 -0
  12. package/dist/just_poker/player-move-buttons/player-move-buttons-extra.d.ts +9 -0
  13. package/dist/just_poker/player-move-buttons/player-move-buttons-extra.style.d.ts +7 -0
  14. package/dist/just_poker/player-move-buttons/player-move-buttons-item.d.ts +8 -0
  15. package/dist/just_poker/player-move-buttons/player-move-buttons-item.style.d.ts +3 -0
  16. package/dist/just_poker/player-move-buttons/player-move-buttons.d.ts +16 -0
  17. package/dist/just_poker/player-move-buttons/player-move-buttons.style.d.ts +19 -0
  18. package/dist/just_poker/players-row/index.d.ts +1 -0
  19. package/dist/just_poker/players-row/players-row.d.ts +7 -0
  20. package/dist/just_poker/players-row/players-row.style.d.ts +8 -0
  21. package/dist/just_poker/players-skeleton/index.d.ts +2 -0
  22. package/dist/just_poker/players-skeleton/players-skeleton-row.d.ts +2 -0
  23. package/dist/just_poker/players-skeleton/players-skeleton.d.ts +2 -0
  24. package/dist/just_poker/players-skeleton/players-skeleton.style.d.ts +8 -0
  25. package/dist/just_poker/table-cards-row/index.d.ts +1 -0
  26. package/dist/just_poker/table-cards-row/table-cards-row.d.ts +7 -0
  27. package/dist/just_poker/table-summary/index.d.ts +1 -0
  28. package/dist/just_poker/table-summary/table-summary-requisite.d.ts +7 -0
  29. package/dist/just_poker/table-summary/table-summary-requisite.style.d.ts +6 -0
  30. package/dist/just_poker/table-summary/table-summary.d.ts +13 -0
  31. package/dist/just_poker/table-summary/table-summary.style.d.ts +4 -0
  32. package/dist/mock/players.d.ts +48 -0
  33. package/package.json +3 -2
@@ -0,0 +1,8 @@
1
+ import { JSX } from 'react';
2
+ type CardTableSeatProps = {
3
+ player: JSX.Element;
4
+ left: number;
5
+ top: number;
6
+ };
7
+ export declare const CardTableSeat: ({ player, left, top }: CardTableSeatProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ type RoomScreenTableSeatStyleType = {
2
+ left: number;
3
+ top: number;
4
+ };
5
+ export declare const CardTableSeatStyle: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ } & RoomScreenTableSeatStyleType, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ type CardTableProps = {
3
+ position: 'horizontal' | 'vertical';
4
+ size: 3 | 6;
5
+ tablePlayers: Array<{
6
+ position: number;
7
+ player: JSX.Element;
8
+ }>;
9
+ };
10
+ export declare const CardTable: ({ tablePlayers, position, size }: CardTableProps) => JSX.Element;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Theme } from '@emotion/react';
2
+ export declare const CardTableWrapperStyle: import("@emotion/styled").StyledComponent<{
3
+ theme?: Theme;
4
+ as?: React.ElementType;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const CardTableSvgIcon: import("@emotion/styled").StyledComponent<{
7
+ icon: string;
8
+ } & {
9
+ width?: number;
10
+ height?: number;
11
+ color?: string;
12
+ className?: string;
13
+ } & {
14
+ theme?: Theme;
15
+ }, {}, {}>;
@@ -0,0 +1 @@
1
+ export { CardTable } from './card-table.tsx';
@@ -0,0 +1,5 @@
1
+ export type SeatCoord = {
2
+ left: number;
3
+ top: number;
4
+ };
5
+ export type SeatCoords = Record<string, SeatCoord>;
@@ -6,12 +6,18 @@ export { AvatarImage } from './avatar-image';
6
6
  export { Banner } from './banner';
7
7
  export { BottomSelectionPanel } from './bottom-selection-panel';
8
8
  export { Card, CardProduct, CardItem, CardButton } from './card';
9
+ export { CardTable } from './card-table';
9
10
  export { CardsPlayerYours, CardsPlayer, CardsPlayerOnMobileTableYours, CardsPlayerOnMobileTable } from './cards-player';
10
11
  export { GameCardSizeEnum, GameCardSkinEnum, GameCardSuitEnum, GameCardRankEnum, createGameCard } from './game-card';
11
12
  export { LastActionPanel } from './last-action-panel';
12
13
  export { PageScreen, Screen } from './page-screen';
14
+ export { PlayerMoveButtons } from './player-move-buttons';
15
+ export { PlayersRow } from './players-row';
16
+ export { PlayersSkeletonRow, PlayersSkeleton } from './players-skeleton';
13
17
  export { PopupScreen } from './popup-screen';
14
18
  export { RuStoreBanner } from './rustore-banner';
15
19
  export { ScrollList } from './scroll-list';
16
20
  export { Skeleton } from './skeleton';
21
+ export { TableCardsRow } from './table-cards-row';
22
+ export { TableSummary } from './table-summary';
17
23
  export { WorkflowButtonsStyled } from './workflow-buttons';
@@ -0,0 +1 @@
1
+ export { PlayerMoveButtons } from './player-move-buttons';
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { IconButtonType } from '../../matherial3/icon-button/icon-button';
3
+ type PlayerMoveButtonsExtraProps = {
4
+ reactButton?: IconButtonType;
5
+ chatButton?: IconButtonType;
6
+ hasNewMessages: boolean;
7
+ };
8
+ export declare const PlayerMoveButtonsExtra: (props: PlayerMoveButtonsExtraProps) => React.JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const PlayerMoveButtonsExtraStyled: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const PlayerMoveButtonsExtraButtonStyled: import("@emotion/styled").StyledComponent<import("../../matherial3/icon-button/icon-button").IconButtonType & {
6
+ theme?: import("@emotion/react").Theme;
7
+ }, {}, {}>;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ type PlayerMoveButtonItemProps = {
3
+ id: string;
4
+ title: string;
5
+ onClick?: (id: string) => void;
6
+ };
7
+ export declare const PlayerMoveButtonsItem: ({ onClick, id, title }: PlayerMoveButtonItemProps) => React.JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const PlayerMoveButtonsItemStyle: import("@emotion/styled").StyledComponent<import("../../matherial3/button/common-button").CommonTypeStyle & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { IconButtonType } from '../../matherial3/icon-button/icon-button';
3
+ export type PlayerMoveButtonsType = {
4
+ id: string;
5
+ title: string;
6
+ };
7
+ type PlayerMoveButtonsProps = {
8
+ moves: Array<PlayerMoveButtonsType>;
9
+ onMoveButtonClick?: (id: string) => void;
10
+ infoMessage?: string;
11
+ reactButton?: IconButtonType;
12
+ chatButton?: IconButtonType;
13
+ hasNewMessages?: boolean;
14
+ };
15
+ export declare const PlayerMoveButtons: (props: PlayerMoveButtonsProps) => React.JSX.Element;
16
+ export {};
@@ -0,0 +1,19 @@
1
+ export declare const PlayerMoveButtonsMessage: import("@emotion/styled").StyledComponent<import("../../matherial3/typography/m3-typography").TypographyProps & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
4
+ export declare const PlayerMoveButtonsText: import("@emotion/styled").StyledComponent<{
5
+ theme?: import("@emotion/react").Theme;
6
+ as?: React.ElementType;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const PlayerMoveButtonsRoot: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme;
10
+ as?: React.ElementType;
11
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const PlayerMoveButtonsButtons: import("@emotion/styled").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme;
14
+ as?: React.ElementType;
15
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const PlayerMoveButtonsMainButtons: import("@emotion/styled").StyledComponent<{
17
+ theme?: import("@emotion/react").Theme;
18
+ as?: React.ElementType;
19
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1 @@
1
+ export { PlayersRow } from './players-row.tsx';
@@ -0,0 +1,7 @@
1
+ import { JSX } from 'react';
2
+ type PlayersRowProps = {
3
+ activeIndex: number;
4
+ children: JSX.Element;
5
+ };
6
+ export declare const PlayersRow: ({ children, activeIndex }: PlayersRowProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const PlayersRowWrapper: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const PlayersRowStyle: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,2 @@
1
+ export { PlayersSkeleton } from './players-skeleton.tsx';
2
+ export { PlayersSkeletonRow } from './players-skeleton-row.tsx';
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const PlayersSkeletonRow: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const PlayersSkeleton: () => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const PlayersPanelSkeletonPlayerRoot: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const PlayersPanelSkeletonPlayerCards: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1 @@
1
+ export { TableCardsRow } from './table-cards-row.tsx';
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { GameCardType } from '../game-card/types/game-card.type.ts';
3
+ type CardsRowProps = {
4
+ cards: Array<GameCardType>;
5
+ };
6
+ export declare const TableCardsRow: ({ cards }: CardsRowProps) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { TableSummary } from './table-summary.tsx';
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ type SummaryRequisiteProps = {
3
+ label: string;
4
+ value: string;
5
+ };
6
+ export declare const TableSummaryRequisite: ({ label, value }: SummaryRequisiteProps) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const TableSummaryRequisiteStyled: import("@emotion/styled").StyledComponent<import("../../matherial3/typography/m3-typography").TypographyProps & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
4
+ export declare const TableSummaryRequisiteValue: import("@emotion/styled").StyledComponent<import("../../matherial3/typography/m3-typography").TypographyProps & {
5
+ theme?: import("@emotion/react").Theme;
6
+ }, {}, {}>;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ type SummaryRequisiteItem = {
3
+ label: string;
4
+ value: string;
5
+ };
6
+ type TableSummaryProps = {
7
+ requisites: Array<SummaryRequisiteItem>;
8
+ requisitesTimer?: number;
9
+ pot?: number;
10
+ roomMessage?: string;
11
+ };
12
+ export declare const TableSummary: (props: TableSummaryProps) => React.JSX.Element | undefined;
13
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const TableSummaryRoot: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,48 @@
1
+ export declare const cardPlayer1: {
2
+ playerId: string;
3
+ name: string;
4
+ avatarUrl: string;
5
+ stack: string;
6
+ isActive: boolean;
7
+ cards: never[];
8
+ };
9
+ export declare const cardPlayer2: {
10
+ playerId: string;
11
+ name: string;
12
+ avatarUrl: string;
13
+ stack: string;
14
+ isActive: boolean;
15
+ cards: never[];
16
+ };
17
+ export declare const cardPlayer3: {
18
+ playerId: string;
19
+ name: string;
20
+ avatarUrl: string;
21
+ stack: string;
22
+ isActive: boolean;
23
+ cards: never[];
24
+ };
25
+ export declare const cardPlayer4: {
26
+ playerId: string;
27
+ name: string;
28
+ avatarUrl: string;
29
+ stack: string;
30
+ isActive: boolean;
31
+ cards: never[];
32
+ };
33
+ export declare const cardPlayer5: {
34
+ playerId: string;
35
+ name: string;
36
+ avatarUrl: string;
37
+ stack: string;
38
+ isActive: boolean;
39
+ cards: never[];
40
+ };
41
+ export declare const cardPlayer6: {
42
+ playerId: string;
43
+ name: string;
44
+ avatarUrl: string;
45
+ stack: string;
46
+ isActive: boolean;
47
+ cards: never[];
48
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.ui.app.ds",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -8,7 +8,7 @@
8
8
  "module": "dist/index.js",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1",
11
- "dev": "storybook dev -p 6006",
11
+ "start": "storybook dev -p 6006",
12
12
  "build:storybook": "storybook build",
13
13
  "build": "rollup -c"
14
14
  },
@@ -23,6 +23,7 @@
23
23
  "devDependencies": {
24
24
  "@emotion/react": "11.14.0",
25
25
  "@emotion/styled": "11.14.1",
26
+ "@rollup/plugin-json": "6.1.0",
26
27
  "@rollup/plugin-terser": "0.4.4",
27
28
  "@rollup/plugin-typescript": "12.2.0",
28
29
  "@rollup/plugin-url": "8.0.2",