@wizleap-inc/wiz-ui-react 0.16.2 → 0.17.0
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/base/index.d.ts +6 -0
- package/dist/components/base/information-panel/components/index.d.ts +1 -0
- package/dist/components/base/information-panel/components/information-panel.d.ts +13 -0
- package/dist/components/base/information-panel/index.d.ts +1 -0
- package/dist/components/base/inputs/index.d.ts +4 -0
- package/dist/components/base/inputs/password/components/index.d.ts +1 -0
- package/dist/components/base/inputs/password/components/password-input.d.ts +14 -0
- package/dist/components/base/inputs/password/index.d.ts +1 -0
- package/dist/components/base/inputs/selectbox/components/index.d.ts +1 -0
- package/dist/components/base/inputs/selectbox/components/selectbox.d.ts +19 -0
- package/dist/components/base/inputs/selectbox/index.d.ts +1 -0
- package/dist/components/base/inputs/time-picker/components/index.d.ts +1 -0
- package/dist/components/base/inputs/time-picker/components/time-picker.d.ts +15 -0
- package/dist/components/base/inputs/time-picker/index.d.ts +1 -0
- package/dist/components/base/inputs/time-picker/types/time.d.ts +6 -0
- package/dist/components/base/inputs/upload/components/index.d.ts +2 -0
- package/dist/components/base/inputs/upload/components/upload-display.d.ts +12 -0
- package/dist/components/base/inputs/upload/components/upload-input.d.ts +7 -0
- package/dist/components/base/inputs/upload/index.d.ts +1 -0
- package/dist/components/base/navigation/components/index.d.ts +2 -0
- package/dist/components/base/navigation/components/navigation-container.d.ts +10 -0
- package/dist/components/base/navigation/components/navigation-item.d.ts +18 -0
- package/dist/components/base/navigation/index.d.ts +1 -0
- package/dist/components/base/popup/utils/index.d.ts +1 -1
- package/dist/components/base/popup/utils/wrap.d.ts +20 -1
- package/dist/components/base/progress-bar/components/index.d.ts +3 -0
- package/dist/components/base/progress-bar/components/progress-bar.d.ts +7 -0
- package/dist/components/base/progress-bar/components/progress-line.d.ts +7 -0
- package/dist/components/base/progress-bar/components/progress-point.d.ts +8 -0
- package/dist/components/base/progress-bar/components/progress.d.ts +4 -0
- package/dist/components/base/progress-bar/index.d.ts +1 -0
- package/dist/components/base/progress-bar/types/index.d.ts +1 -0
- package/dist/components/base/progress-bar/types/progress-item.d.ts +10 -0
- package/dist/components/base/skeleton/components/index.d.ts +3 -0
- package/dist/components/base/skeleton/components/skeleton-circle.d.ts +11 -0
- package/dist/components/base/skeleton/components/skeleton-text.d.ts +14 -0
- package/dist/components/base/skeleton/components/skeleton.d.ts +14 -0
- package/dist/components/base/skeleton/index.d.ts +1 -0
- package/dist/components/base/snackbar/components/index.d.ts +3 -0
- package/dist/components/base/snackbar/components/snackbar-context.d.ts +6 -0
- package/dist/components/base/snackbar/components/snackbar-provider.d.ts +4 -0
- package/dist/components/base/snackbar/components/snackbar.d.ts +9 -0
- package/dist/components/base/snackbar/index.d.ts +1 -0
- package/dist/components/base/text-area/components/index.d.ts +1 -0
- package/dist/components/base/text-area/components/text-area.d.ts +12 -0
- package/dist/components/base/text-area/index.d.ts +1 -0
- package/dist/components/custom/chat/components/chat-card.d.ts +21 -0
- package/dist/components/custom/chat/components/chat-form.d.ts +11 -0
- package/dist/components/custom/chat/components/chat-item.d.ts +8 -0
- package/dist/components/custom/chat/components/index.d.ts +3 -0
- package/dist/components/custom/chat/components/types.d.ts +11 -0
- package/dist/components/custom/chat/index.d.ts +1 -0
- package/dist/components/custom/form/components/form-control.d.ts +10 -0
- package/dist/components/custom/form/components/form-group-context.d.ts +8 -0
- package/dist/components/custom/form/components/form-group.d.ts +11 -0
- package/dist/components/custom/form/components/index.d.ts +2 -0
- package/dist/components/custom/form/index.d.ts +1 -0
- package/dist/components/custom/index.d.ts +3 -0
- package/dist/components/custom/notification/components/index.d.ts +3 -0
- package/dist/components/custom/notification/components/notification-list.d.ts +11 -0
- package/dist/components/custom/notification/components/notification-panel.d.ts +12 -0
- package/dist/components/custom/notification/components/notification.d.ts +11 -0
- package/dist/components/custom/notification/components/types.d.ts +20 -0
- package/dist/components/custom/notification/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/wiz-ui.es.js +3622 -2242
- package/dist/wiz-ui.umd.js +27 -26
- package/package.json +3 -3
- /package/dist/components/custom/form/{form-control-context.d.ts → components/form-control-context.d.ts} +0 -0
|
@@ -7,7 +7,9 @@ export * from "./box";
|
|
|
7
7
|
export * from "./card";
|
|
8
8
|
export * from "./tag";
|
|
9
9
|
export * from "./icon";
|
|
10
|
+
export * from "./information-panel";
|
|
10
11
|
export * from "./divider";
|
|
12
|
+
export * from "./progress-bar";
|
|
11
13
|
export * from "./tab";
|
|
12
14
|
export * from "./step-bar";
|
|
13
15
|
export * from "./message-box";
|
|
@@ -25,4 +27,8 @@ export * from "./graphs";
|
|
|
25
27
|
export * from "./tooltip";
|
|
26
28
|
export * from "./heading";
|
|
27
29
|
export * from "./popup-button-group";
|
|
30
|
+
export * from "./navigation";
|
|
28
31
|
export * from "./dropdown";
|
|
32
|
+
export * from "./snackbar";
|
|
33
|
+
export * from "./text-area";
|
|
34
|
+
export * from "./skeleton";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WizInformationPanel } from "./information-panel";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
type Message = {
|
|
3
|
+
text: string;
|
|
4
|
+
type: "default" | "error";
|
|
5
|
+
};
|
|
6
|
+
type Props = {
|
|
7
|
+
messages: Message[];
|
|
8
|
+
width?: string;
|
|
9
|
+
border?: boolean;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const WizInformationPanel: FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from "./checkbox";
|
|
2
2
|
export * from "./radio";
|
|
3
|
+
export * from "./selectbox";
|
|
3
4
|
export * from "./text";
|
|
4
5
|
export * from "./toggle-switch";
|
|
5
6
|
export * from "./panel-switch";
|
|
7
|
+
export * from "./password";
|
|
8
|
+
export * from "./time-picker";
|
|
9
|
+
export * from "./upload";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WizPasswordInput } from "./password-input";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AutoCompleteKeys } from "@wizleap-inc/wiz-ui-constants";
|
|
2
|
+
type Props = {
|
|
3
|
+
id?: string;
|
|
4
|
+
value: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
expand?: boolean;
|
|
8
|
+
width?: string;
|
|
9
|
+
autocomplete?: Extract<AutoCompleteKeys, "currentPassword" | "newPassword">;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
onChange: (value: string) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const WizPasswordInput: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WizSelectBox } from "./selectbox";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
type SelectBoxOption = {
|
|
3
|
+
label: string;
|
|
4
|
+
exLabel?: string;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
type Props = {
|
|
8
|
+
options: SelectBoxOption[];
|
|
9
|
+
value: number | null;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
expand?: boolean;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
isDirectionFixed?: boolean;
|
|
16
|
+
onChange: (value: number | null) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const WizSelectBox: FC<Props>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./time-picker";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Time } from "../types/time";
|
|
2
|
+
type Props = {
|
|
3
|
+
time: Time | null;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isDirectionFixed?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
onChange: (time: Time | null) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const WizTimePicker: {
|
|
12
|
+
({ time, placeholder, width, disabled, isDirectionFixed, error, onChange, }: Props): JSX.Element;
|
|
13
|
+
displayName: "WizTimePicker";
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const HOURS: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23];
|
|
2
|
+
export declare const MINUTES: readonly [0, 15, 30, 45];
|
|
3
|
+
export type Time = {
|
|
4
|
+
hour: (typeof HOURS)[number];
|
|
5
|
+
minute: (typeof MINUTES)[number];
|
|
6
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
files: File[];
|
|
4
|
+
uploadingFileCount: number;
|
|
5
|
+
completedFileCount: number;
|
|
6
|
+
progress: number;
|
|
7
|
+
isUploaded: boolean;
|
|
8
|
+
isUploading: boolean;
|
|
9
|
+
multiple: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const WizUploadDisplay: FC<Props>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { TIcon } from '../../../../components';
|
|
3
|
+
import { ButtonGroupItem } from "../../popup-button-group/types";
|
|
4
|
+
interface Props {
|
|
5
|
+
icon: TIcon;
|
|
6
|
+
label: string;
|
|
7
|
+
active: boolean;
|
|
8
|
+
href: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
tooltipText?: string;
|
|
11
|
+
isPopupLocking?: boolean;
|
|
12
|
+
buttons?: ButtonGroupItem[];
|
|
13
|
+
isPopupOpen?: boolean;
|
|
14
|
+
onTogglePopup: (isPopup: boolean) => void;
|
|
15
|
+
onTogglePopupLocking: (lock: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const WizNavigationItem: FC<Props>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { DirectionValue } from "../types/direction";
|
|
2
2
|
export type Args = {
|
|
3
|
-
bound:
|
|
3
|
+
bound: {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
};
|
|
4
7
|
content: DOMRect;
|
|
5
8
|
anchor: DOMRect;
|
|
6
9
|
gap: number;
|
|
@@ -36,3 +39,19 @@ export declare const reflection: {
|
|
|
36
39
|
verticalCenter: (args: Args) => "Center" | "Top" | "Bottom";
|
|
37
40
|
};
|
|
38
41
|
export declare const wrapDirection: Record<DirectionValue, (args: Args) => DirectionValue>;
|
|
42
|
+
/**
|
|
43
|
+
* 境界外にPopupContentが出てしまう場合、回り込みにより方向を変更します。ただし、変更後も境界外に出てしまう場合は変更しません。
|
|
44
|
+
*/
|
|
45
|
+
export declare const wrapOutOfBound: (dir: DirectionValue, placementArgs: {
|
|
46
|
+
bound: {
|
|
47
|
+
width: number;
|
|
48
|
+
height: number;
|
|
49
|
+
};
|
|
50
|
+
content: DOMRect;
|
|
51
|
+
anchor: DOMRect;
|
|
52
|
+
gap: number;
|
|
53
|
+
window: {
|
|
54
|
+
scrollX: number;
|
|
55
|
+
scrollY: number;
|
|
56
|
+
};
|
|
57
|
+
}) => DirectionValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./progress-item";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ProgressStatus = "done" | "active" | "inactive" | "none" | "pending" | "dead";
|
|
2
|
+
export interface ProgressItem {
|
|
3
|
+
id: string;
|
|
4
|
+
status: ProgressStatus;
|
|
5
|
+
label?: string;
|
|
6
|
+
annotation?: string;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
progress?: boolean;
|
|
9
|
+
value?: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
size: string;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const WizSkeletonCircle: {
|
|
8
|
+
({ size, isLoading, children, }: Props): JSX.Element;
|
|
9
|
+
displayName: "WizSkeletonCircle";
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FontSizeKeys, SpacingKeys } from "@wizleap-inc/wiz-ui-constants";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
type Props = {
|
|
4
|
+
fontSize?: FontSizeKeys;
|
|
5
|
+
gap?: SpacingKeys;
|
|
6
|
+
lines?: number;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const WizSkeletonText: {
|
|
11
|
+
({ fontSize, gap, lines, isLoading, children, }: Props): JSX.Element;
|
|
12
|
+
displayName: "WizSkeletonText";
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SpacingKeys } from "@wizleap-inc/wiz-ui-constants";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
type Props = {
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
borderRadius?: SpacingKeys;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const WizSkeleton: {
|
|
11
|
+
({ width, height, borderRadius, isLoading, children, }: Props): JSX.Element;
|
|
12
|
+
displayName: "WizSkeleton";
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WizTextArea } from "./text-area";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
value: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
expand?: boolean;
|
|
7
|
+
rows?: number;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const WizTextArea: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
|
+
import { WizSelectBox } from '../../../../components';
|
|
3
|
+
import { Message } from "./types";
|
|
4
|
+
type Props = {
|
|
5
|
+
textValue: string;
|
|
6
|
+
username: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
messages: Message[];
|
|
9
|
+
haveNewMessage?: boolean;
|
|
10
|
+
formRows?: number;
|
|
11
|
+
typingUsername?: string;
|
|
12
|
+
status?: number | null;
|
|
13
|
+
statusOptions?: ComponentProps<typeof WizSelectBox>["options"];
|
|
14
|
+
statusPlaceholder?: string;
|
|
15
|
+
onChangeStatus?: (status: number | null) => void;
|
|
16
|
+
onChangeTextValue: (value: string) => void;
|
|
17
|
+
onSubmit: () => void;
|
|
18
|
+
onToggleOpen?: (isOpen: boolean) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const WizChatCard: FC<Props>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColorKeys, FontSizeKeys } from "@wizleap-inc/wiz-ui-constants";
|
|
2
|
+
type FormGroupContextType = {
|
|
3
|
+
labelWidth?: string;
|
|
4
|
+
labelColor?: ColorKeys;
|
|
5
|
+
labelFontSize?: FontSizeKeys;
|
|
6
|
+
};
|
|
7
|
+
export declare const FormGroupContext: import("react").Context<FormGroupContextType>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ColorKeys, FontSizeKeys, SpacingKeys } from "@wizleap-inc/wiz-ui-constants";
|
|
2
|
+
import { FC, ReactNode } from "react";
|
|
3
|
+
type Props = {
|
|
4
|
+
labelWidth?: string;
|
|
5
|
+
labelColor?: ColorKeys;
|
|
6
|
+
labelFontSize?: FontSizeKeys;
|
|
7
|
+
gap?: SpacingKeys;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const WizFormGroup: FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { NotificationItem, PanelVariant } from "./types";
|
|
3
|
+
type Props = {
|
|
4
|
+
variant?: PanelVariant;
|
|
5
|
+
notifications: NotificationItem[];
|
|
6
|
+
height?: string;
|
|
7
|
+
emptyMessage?: string;
|
|
8
|
+
onClick?: (id: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const WizNotificationList: FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { PanelVariant, TableInfoItem } from "./types";
|
|
3
|
+
type Props = {
|
|
4
|
+
title: string;
|
|
5
|
+
timestamp: Date;
|
|
6
|
+
variant?: PanelVariant;
|
|
7
|
+
read: boolean;
|
|
8
|
+
tableInfo?: TableInfoItem[];
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const WizNotificationPanel: FC<Props>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { NotificationItem, NotificationTabItem } from "./types";
|
|
3
|
+
type Props = {
|
|
4
|
+
tabs: NotificationTabItem[];
|
|
5
|
+
notifications: NotificationItem[];
|
|
6
|
+
height?: string;
|
|
7
|
+
emptyMessage?: string;
|
|
8
|
+
onClick?: (id: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const WizNotification: FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type PanelVariant = "primary" | "secondary";
|
|
2
|
+
export type NotificationTabItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
name: string;
|
|
5
|
+
notificationCount?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
variant: PanelVariant;
|
|
8
|
+
};
|
|
9
|
+
export type TableInfoItem = {
|
|
10
|
+
title: string;
|
|
11
|
+
content: string;
|
|
12
|
+
};
|
|
13
|
+
export type NotificationItem = {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
timestamp: Date;
|
|
17
|
+
tabName: string;
|
|
18
|
+
read: boolean;
|
|
19
|
+
tableInfo?: TableInfoItem[];
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|