@wizleap-inc/wiz-ui-react 1.1.3 → 1.3.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/accordion/components/accordion.d.ts +1 -1
- package/dist/components/base/calendar/components/calendar.d.ts +1 -0
- package/dist/components/base/calendar/stories/calendar.stories.d.ts +3 -0
- package/dist/components/base/dialog/components/dialog.d.ts +1 -1
- package/dist/components/base/dropdown/components/dropdown.d.ts +1 -1
- package/dist/components/base/full-modal-view/components/full-modal-view.d.ts +1 -1
- package/dist/components/base/header/components/header.d.ts +1 -1
- package/dist/components/base/index.d.ts +1 -0
- package/dist/components/base/information-panel/components/information-panel.d.ts +1 -1
- package/dist/components/base/inputs/date-picker/components/date-picker.d.ts +2 -1
- package/dist/components/base/inputs/date-picker/stories/date-picker.stories.d.ts +2 -0
- package/dist/components/base/inputs/date-range-picker/components/date-range-picker.d.ts +2 -1
- package/dist/components/base/inputs/date-range-picker/stories/date-range-picker.stories.d.ts +2 -0
- package/dist/components/base/inputs/index.d.ts +0 -1
- package/dist/components/base/inputs/password/components/password-input.d.ts +1 -1
- package/dist/components/base/inputs/search-input/components/search-input.d.ts +1 -1
- package/dist/components/base/inputs/search-selector/components/search-selector.d.ts +1 -1
- package/dist/components/base/inputs/selectbox/components/selectbox.d.ts +1 -1
- package/dist/components/base/inputs/time-picker/components/time-picker.d.ts +1 -1
- package/dist/components/base/inputs/toggle-switch/components/toggle-switch.d.ts +1 -1
- package/dist/components/base/pagination/components/pagination.d.ts +1 -1
- package/dist/components/base/{inputs/panel-switch → panel-switch}/components/panel-switch.d.ts +2 -1
- package/dist/components/base/{inputs/panel-switch → panel-switch}/stories/panel-switch.stories.d.ts +2 -0
- package/dist/components/base/popup/components/popup.d.ts +1 -1
- package/dist/components/base/show-more-less/components/show-more-less.d.ts +1 -1
- package/dist/components/base/snackbar/components/snackbar.d.ts +1 -1
- package/dist/components/base/tab/components/tab-pane.d.ts +1 -1
- package/dist/components/base/tab/components/tab.d.ts +1 -1
- package/dist/components/base/text-area/components/text-area.d.ts +1 -1
- package/dist/components/custom/chat/components/chat-card.d.ts +3 -3
- package/dist/components/custom/chat/components/chat-form.d.ts +2 -2
- package/dist/components/custom/timeline/components/timeline-item.d.ts +2 -0
- package/dist/components/custom/timeline/stories/timeline-item.stories.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/wiz-ui.es.js +3536 -3471
- package/dist/wiz-ui.umd.js +24 -24
- package/package.json +3 -3
- /package/dist/components/base/{inputs/panel-switch → panel-switch}/components/index.d.ts +0 -0
- /package/dist/components/base/{inputs/panel-switch → panel-switch}/components/type.d.ts +0 -0
- /package/dist/components/base/{inputs/panel-switch → panel-switch}/index.d.ts +0 -0
|
@@ -7,3 +7,6 @@ export declare const Default: Story;
|
|
|
7
7
|
export declare const CurrentMonth: Story;
|
|
8
8
|
export declare const ActiveDates: Story;
|
|
9
9
|
export declare const FilledWeeks: Story;
|
|
10
|
+
export declare const Today: Story;
|
|
11
|
+
export declare const DisabledToday: Story;
|
|
12
|
+
export declare const SelectedToday: Story;
|
|
@@ -7,7 +7,8 @@ type Props = BaseProps & {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
error?: boolean;
|
|
9
9
|
isDirectionFixed?: boolean;
|
|
10
|
-
|
|
10
|
+
_today?: Date;
|
|
11
|
+
onChangeDate?: (selectedValue: Date | null) => void;
|
|
11
12
|
/**
|
|
12
13
|
* @description 日付が無効かどうかを判定する関数です。無効な日付はクリック不可になります。
|
|
13
14
|
* @param date
|
|
@@ -9,7 +9,8 @@ type Props = BaseProps & {
|
|
|
9
9
|
selectBoxValue?: string;
|
|
10
10
|
isDirectionFixed?: boolean;
|
|
11
11
|
error?: boolean;
|
|
12
|
-
|
|
12
|
+
_today?: Date;
|
|
13
|
+
onChangeDateRange?: (dateRange: DateRange) => void;
|
|
13
14
|
onChangeSelectBoxValue?: (value: string) => void;
|
|
14
15
|
disabledDate?: (date: Date) => boolean;
|
|
15
16
|
/**
|
|
@@ -12,7 +12,7 @@ type Props = BaseProps & {
|
|
|
12
12
|
width?: string;
|
|
13
13
|
autocomplete?: Extract<AutoCompleteKeys, "currentPassword" | "newPassword">;
|
|
14
14
|
error?: boolean;
|
|
15
|
-
onChange
|
|
15
|
+
onChange?: (value: string) => void;
|
|
16
16
|
} & Omit<PrivateBaseInputProps, "onChange">;
|
|
17
17
|
export declare const WizPasswordInput: import('react').ForwardRefExoticComponent<Omit<Props, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
18
18
|
export {};
|
|
@@ -16,7 +16,7 @@ type Props<T extends CheckboxOption> = BaseProps & {
|
|
|
16
16
|
icon?: TIcon;
|
|
17
17
|
showSelectedItem?: boolean;
|
|
18
18
|
showParentLabel?: boolean;
|
|
19
|
-
onChangeValues
|
|
19
|
+
onChangeValues?: (values: T[]) => void;
|
|
20
20
|
};
|
|
21
21
|
export declare const WizSearchInput: {
|
|
22
22
|
<T extends CheckboxOption>({ className, style, options, values, name, placeholder, disabled, expand, singleSelect, inputWidth, popupWidth, isDirectionFixed, emptyMessage, showSelectedItem, onChangeValues, showParentLabel, icon, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,7 +16,7 @@ type Props<T> = BaseProps & {
|
|
|
16
16
|
isDirectionFixed?: boolean;
|
|
17
17
|
showExLabel?: boolean;
|
|
18
18
|
dropdownMaxHeight?: string;
|
|
19
|
-
onChange
|
|
19
|
+
onChange?: (value: T | null) => void;
|
|
20
20
|
};
|
|
21
21
|
export declare const WizSelectBox: {
|
|
22
22
|
<T>({ className, style, options, value, placeholder, width, disabled, expand, error, isDirectionFixed, showExLabel, dropdownMaxHeight, onChange, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/base/{inputs/panel-switch → panel-switch}/components/panel-switch.d.ts
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { BaseProps } from '
|
|
2
|
+
import { BaseProps } from '../../../../types';
|
|
3
3
|
import { PanelItems } from './type';
|
|
4
4
|
type Props = BaseProps & {
|
|
5
5
|
value: number | null;
|
|
6
6
|
items: PanelItems[];
|
|
7
|
+
width?: string;
|
|
7
8
|
onChange: (value: number) => void;
|
|
8
9
|
};
|
|
9
10
|
export declare const WizPanelSwitch: FC<Props>;
|
|
@@ -4,7 +4,7 @@ import { BaseProps } from '../../../../types';
|
|
|
4
4
|
import { DirectionKey } from '../types/direction';
|
|
5
5
|
type Props = BaseProps & {
|
|
6
6
|
isOpen: boolean;
|
|
7
|
-
onClose
|
|
7
|
+
onClose?: () => void;
|
|
8
8
|
anchorElement: RefObject<HTMLElement>;
|
|
9
9
|
direction?: DirectionKey;
|
|
10
10
|
gap?: Exclude<SpacingKeys, "at">;
|
|
@@ -12,5 +12,5 @@ export declare const WizTextArea: import('react').ForwardRefExoticComponent<Base
|
|
|
12
12
|
minWidth?: string | undefined;
|
|
13
13
|
maxHeight?: string | undefined;
|
|
14
14
|
minHeight?: string | undefined;
|
|
15
|
-
onChange
|
|
15
|
+
onChange?: ((value: string) => void) | undefined;
|
|
16
16
|
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -15,9 +15,9 @@ type Props<T> = BaseProps & {
|
|
|
15
15
|
statusOptions?: ComponentProps<typeof WizSelectBox<T>>["options"];
|
|
16
16
|
statusPlaceholder?: string;
|
|
17
17
|
onChangeStatus?: (status: T | null) => void;
|
|
18
|
-
onChangeTextValue
|
|
19
|
-
onSubmit
|
|
20
|
-
onToggle
|
|
18
|
+
onChangeTextValue?: (value: string) => void;
|
|
19
|
+
onSubmit?: () => void;
|
|
20
|
+
onToggle?: () => void;
|
|
21
21
|
};
|
|
22
22
|
export declare const WizChatCard: {
|
|
23
23
|
<T>({ className, style, isOpen, textValue, username, placeholder, messages, haveNewMessage, formRows, typingUsername, status, statusOptions, statusPlaceholder, onChangeStatus, onChangeTextValue, onSubmit, onToggle, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,8 +5,8 @@ type Props = BaseProps & {
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
formRows?: number;
|
|
8
|
-
onChange
|
|
9
|
-
onSubmit
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
onSubmit?: () => void;
|
|
10
10
|
};
|
|
11
11
|
export declare const WizChatForm: FC<Props>;
|
|
12
12
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ColorKeys } from '@wizleap-inc/wiz-ui-constants';
|
|
1
2
|
import { FC, ReactNode } from 'react';
|
|
2
3
|
import { TIcon } from '../../../icons';
|
|
3
4
|
type TimelineVariant = "success" | "failure" | "yellow" | "gray";
|
|
@@ -10,6 +11,7 @@ interface TimelineItemProps {
|
|
|
10
11
|
footer?: ReactNode;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
icon?: TIcon;
|
|
14
|
+
backgroundColor?: Extract<ColorKeys, "white.800" | "gray.200">;
|
|
13
15
|
}
|
|
14
16
|
export declare const WizTimelineItem: FC<TimelineItemProps>;
|
|
15
17
|
export {};
|