@rpg-engine/long-bow 0.6.69 → 0.6.71
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/Friends/SearchFriend.d.ts +4 -4
- package/dist/components/QuestList.d.ts +2 -3
- package/dist/components/Table/Table.d.ts +5 -0
- package/dist/components/shared/Ellipsis.d.ts +1 -1
- package/dist/components/shared/SimpleTooltip.d.ts +12 -0
- package/dist/long-bow.cjs.development.js +402 -180
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +404 -183
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Friends/FriendList.tsx +6 -19
- package/src/components/Friends/SearchFriend.tsx +160 -107
- package/src/components/QuestList.tsx +144 -107
- package/src/components/Table/Table.tsx +19 -0
- package/src/components/shared/Ellipsis.tsx +2 -2
- package/src/components/shared/SimpleTooltip.tsx +198 -0
- package/src/stories/QuestList.stories.tsx +12 -42
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
interface
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IFriend } from './FriendList';
|
|
3
|
+
interface ISearchFriendProps {
|
|
4
4
|
searchedCharacters: IFriend[];
|
|
5
5
|
friendRequests: IFriend[];
|
|
6
6
|
onFocus?: () => void;
|
|
@@ -10,5 +10,5 @@ interface ISearchFriendProp {
|
|
|
10
10
|
onAcceptRequest: (character: IFriend) => void;
|
|
11
11
|
onRejectRequest: (character: IFriend) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const SearchFriend:
|
|
13
|
+
export declare const SearchFriend: React.FC<ISearchFriendProps>;
|
|
14
14
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IQuest } from '@rpg-engine/shared';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import 'react-tippy/dist/tippy.css';
|
|
3
|
+
import { IQuest } from '@rpg-engine/shared';
|
|
3
4
|
export interface IQuestListProps {
|
|
4
5
|
quests?: IQuest[];
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
scale?: number;
|
|
7
6
|
}
|
|
8
7
|
export declare const QuestList: React.FC<IQuestListProps>;
|
|
@@ -3,3 +3,8 @@ export declare const TableRow: import("styled-components").StyledComponent<"tr",
|
|
|
3
3
|
export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
|
|
4
4
|
export declare const TableCell: import("styled-components").StyledComponent<"td", any, {}, never>;
|
|
5
5
|
export declare const ActionButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
interface IUserActionProps {
|
|
7
|
+
color: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const UserActionLink: import("styled-components").StyledComponent<"span", any, IUserActionProps, never>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface TooltipProps {
|
|
3
|
+
content: string | ReactNode;
|
|
4
|
+
direction?: 'top' | 'bottom' | 'left' | 'right';
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
textColor?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
showDelay?: number;
|
|
9
|
+
hideDelay?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const SimpleTooltip: React.FC<TooltipProps>;
|
|
12
|
+
export {};
|