@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.
Files changed (40) hide show
  1. package/dist/components/base/accordion/components/accordion.d.ts +1 -1
  2. package/dist/components/base/calendar/components/calendar.d.ts +1 -0
  3. package/dist/components/base/calendar/stories/calendar.stories.d.ts +3 -0
  4. package/dist/components/base/dialog/components/dialog.d.ts +1 -1
  5. package/dist/components/base/dropdown/components/dropdown.d.ts +1 -1
  6. package/dist/components/base/full-modal-view/components/full-modal-view.d.ts +1 -1
  7. package/dist/components/base/header/components/header.d.ts +1 -1
  8. package/dist/components/base/index.d.ts +1 -0
  9. package/dist/components/base/information-panel/components/information-panel.d.ts +1 -1
  10. package/dist/components/base/inputs/date-picker/components/date-picker.d.ts +2 -1
  11. package/dist/components/base/inputs/date-picker/stories/date-picker.stories.d.ts +2 -0
  12. package/dist/components/base/inputs/date-range-picker/components/date-range-picker.d.ts +2 -1
  13. package/dist/components/base/inputs/date-range-picker/stories/date-range-picker.stories.d.ts +2 -0
  14. package/dist/components/base/inputs/index.d.ts +0 -1
  15. package/dist/components/base/inputs/password/components/password-input.d.ts +1 -1
  16. package/dist/components/base/inputs/search-input/components/search-input.d.ts +1 -1
  17. package/dist/components/base/inputs/search-selector/components/search-selector.d.ts +1 -1
  18. package/dist/components/base/inputs/selectbox/components/selectbox.d.ts +1 -1
  19. package/dist/components/base/inputs/time-picker/components/time-picker.d.ts +1 -1
  20. package/dist/components/base/inputs/toggle-switch/components/toggle-switch.d.ts +1 -1
  21. package/dist/components/base/pagination/components/pagination.d.ts +1 -1
  22. package/dist/components/base/{inputs/panel-switch → panel-switch}/components/panel-switch.d.ts +2 -1
  23. package/dist/components/base/{inputs/panel-switch → panel-switch}/stories/panel-switch.stories.d.ts +2 -0
  24. package/dist/components/base/popup/components/popup.d.ts +1 -1
  25. package/dist/components/base/show-more-less/components/show-more-less.d.ts +1 -1
  26. package/dist/components/base/snackbar/components/snackbar.d.ts +1 -1
  27. package/dist/components/base/tab/components/tab-pane.d.ts +1 -1
  28. package/dist/components/base/tab/components/tab.d.ts +1 -1
  29. package/dist/components/base/text-area/components/text-area.d.ts +1 -1
  30. package/dist/components/custom/chat/components/chat-card.d.ts +3 -3
  31. package/dist/components/custom/chat/components/chat-form.d.ts +2 -2
  32. package/dist/components/custom/timeline/components/timeline-item.d.ts +2 -0
  33. package/dist/components/custom/timeline/stories/timeline-item.stories.d.ts +1 -0
  34. package/dist/style.css +1 -1
  35. package/dist/wiz-ui.es.js +3536 -3471
  36. package/dist/wiz-ui.umd.js +24 -24
  37. package/package.json +3 -3
  38. /package/dist/components/base/{inputs/panel-switch → panel-switch}/components/index.d.ts +0 -0
  39. /package/dist/components/base/{inputs/panel-switch → panel-switch}/components/type.d.ts +0 -0
  40. /package/dist/components/base/{inputs/panel-switch → panel-switch}/index.d.ts +0 -0
@@ -9,7 +9,7 @@ type Props = BaseProps & {
9
9
  bgColor?: ColorKeys;
10
10
  fontColor?: ColorKeys;
11
11
  children?: ReactNode;
12
- onToggle: () => void;
12
+ onToggle?: () => void;
13
13
  };
14
14
  export declare const WizAccordion: FC<Props>;
15
15
  export {};
@@ -5,6 +5,7 @@ type Props = BaseProps & {
5
5
  currentMonth?: Date;
6
6
  activeDates?: DateStatus[];
7
7
  filledWeeks?: boolean;
8
+ _today?: Date;
8
9
  onClickDate?: (selectedValue: Date) => void;
9
10
  /**
10
11
  * @description 日付が無効かどうかを判定する関数です。無効な日付はクリック不可になります。
@@ -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;
@@ -8,7 +8,7 @@ type Props = BaseProps & {
8
8
  children?: ReactNode;
9
9
  align?: "start" | "center" | "end";
10
10
  hideClose?: boolean;
11
- onClose: () => void;
11
+ onClose?: () => void;
12
12
  };
13
13
  export declare const WizDialog: FC<Props>;
14
14
  export {};
@@ -8,7 +8,7 @@ type Props = BaseProps & {
8
8
  skeleton?: boolean;
9
9
  gap?: ComponentProps<typeof WizPopup>["gap"];
10
10
  isDirectionFixed?: boolean;
11
- onClose: () => void;
11
+ onClose?: () => void;
12
12
  };
13
13
  export declare const WizDropdown: FC<Props>;
14
14
  export {};
@@ -4,7 +4,7 @@ type Props = {
4
4
  title: string;
5
5
  header?: ReactNode;
6
6
  children: ReactNode;
7
- onClose: () => void;
7
+ onClose?: () => void;
8
8
  };
9
9
  export declare const WizFullModalView: FC<Props>;
10
10
  export {};
@@ -7,7 +7,7 @@ type Props = BaseProps & {
7
7
  sticky?: boolean;
8
8
  leftContent?: ReactNode;
9
9
  rightContent?: ReactNode;
10
- onToggle: () => void;
10
+ onToggle?: () => void;
11
11
  };
12
12
  export declare const WizHeader: FC<Props>;
13
13
  export {};
@@ -38,3 +38,4 @@ export * from './tables';
38
38
  export * from './loading-overlay';
39
39
  export * from './pagination';
40
40
  export * from './full-modal-view';
41
+ export * from './panel-switch';
@@ -8,7 +8,7 @@ type Props = BaseProps & {
8
8
  messages: (TextMessage | ReactNode)[];
9
9
  width?: string;
10
10
  border?: boolean;
11
- onClose: () => void;
11
+ onClose?: () => void;
12
12
  };
13
13
  export declare const WizInformationPanel: FC<Props>;
14
14
  export {};
@@ -7,7 +7,8 @@ type Props = BaseProps & {
7
7
  disabled?: boolean;
8
8
  error?: boolean;
9
9
  isDirectionFixed?: boolean;
10
- onChangeDate: (selectedValue: Date | null) => void;
10
+ _today?: Date;
11
+ onChangeDate?: (selectedValue: Date | null) => void;
11
12
  /**
12
13
  * @description 日付が無効かどうかを判定する関数です。無効な日付はクリック不可になります。
13
14
  * @param date
@@ -12,3 +12,5 @@ export declare const Expand: Story;
12
12
  export declare const IsDirectionFixed: Story;
13
13
  export declare const YearStyle: Story;
14
14
  export declare const Playground: Story;
15
+ export declare const Today: Story;
16
+ export declare const DisabledToday: Story;
@@ -9,7 +9,8 @@ type Props = BaseProps & {
9
9
  selectBoxValue?: string;
10
10
  isDirectionFixed?: boolean;
11
11
  error?: boolean;
12
- onChangeDateRange: (dateRange: DateRange) => void;
12
+ _today?: Date;
13
+ onChangeDateRange?: (dateRange: DateRange) => void;
13
14
  onChangeSelectBoxValue?: (value: string) => void;
14
15
  disabledDate?: (date: Date) => boolean;
15
16
  /**
@@ -13,3 +13,5 @@ export declare const InitialValue: Story;
13
13
  export declare const InitialValue2: Story;
14
14
  export declare const InitialValueStart: Story;
15
15
  export declare const Playground: Story;
16
+ export declare const Today: Story;
17
+ export declare const DisabledWithToday: Story;
@@ -7,7 +7,6 @@ export * from './search-selector';
7
7
  export * from './selectbox';
8
8
  export * from './text';
9
9
  export * from './toggle-switch';
10
- export * from './panel-switch';
11
10
  export * from './password';
12
11
  export * from './time-picker';
13
12
  export * from './upload';
@@ -12,7 +12,7 @@ type Props = BaseProps & {
12
12
  width?: string;
13
13
  autocomplete?: Extract<AutoCompleteKeys, "currentPassword" | "newPassword">;
14
14
  error?: boolean;
15
- onChange: (value: string) => void;
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: (values: T[]) => void;
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;
@@ -20,7 +20,7 @@ type Props<T> = BaseProps & {
20
20
  * @default 0.75
21
21
  */
22
22
  threshold?: number;
23
- onChangeValues: (values: T[]) => void;
23
+ onChangeValues?: (values: T[]) => void;
24
24
  onCreate?: (label: string) => void;
25
25
  onInputSearchText?: (text: string) => void;
26
26
  };
@@ -16,7 +16,7 @@ type Props<T> = BaseProps & {
16
16
  isDirectionFixed?: boolean;
17
17
  showExLabel?: boolean;
18
18
  dropdownMaxHeight?: string;
19
- onChange: (value: T | null) => void;
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;
@@ -8,7 +8,7 @@ type Props = BaseProps & {
8
8
  disabled?: boolean;
9
9
  isDirectionFixed?: boolean;
10
10
  error?: boolean;
11
- onChange: (time: Time | null) => void;
11
+ onChange?: (time: Time | null) => void;
12
12
  };
13
13
  export declare const WizTimePicker: FC<Props>;
14
14
  export {};
@@ -4,7 +4,7 @@ type Props = BaseProps & {
4
4
  value: boolean;
5
5
  ariaLabel: string;
6
6
  disabled?: boolean;
7
- setValue: (value: boolean) => void;
7
+ setValue?: (value: boolean) => void;
8
8
  };
9
9
  export declare const WizToggleSwitch: FC<Props>;
10
10
  export {};
@@ -2,7 +2,7 @@ import { BaseProps } from '../../../../types';
2
2
  type Props = BaseProps & {
3
3
  currentPage: number;
4
4
  length: number;
5
- onChangePage: (page: number) => void;
5
+ onChangePage?: (page: number) => void;
6
6
  /**
7
7
  * 表示ページ数を制御します。(`>=0`)
8
8
  * @default 2
@@ -1,9 +1,10 @@
1
1
  import { FC } from 'react';
2
- import { BaseProps } from '../../../../../types';
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,3 +4,5 @@ declare const meta: Meta<typeof WizPanelSwitch>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof WizPanelSwitch>;
6
6
  export declare const Default: Story;
7
+ export declare const Width: Story;
8
+ export declare const Active: Story;
@@ -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: () => void;
7
+ onClose?: () => void;
8
8
  anchorElement: RefObject<HTMLElement>;
9
9
  direction?: DirectionKey;
10
10
  gap?: Exclude<SpacingKeys, "at">;
@@ -6,7 +6,7 @@ type Props = BaseProps & {
6
6
  closeMessage?: string;
7
7
  width?: string;
8
8
  variant?: "pc" | "mobile";
9
- onToggle: () => void;
9
+ onToggle?: () => void;
10
10
  children: ReactNode;
11
11
  };
12
12
  export declare const WizShowMoreLess: FC<Props>;
@@ -5,7 +5,7 @@ type Props = BaseProps & {
5
5
  expand?: boolean;
6
6
  enableAnimation?: boolean;
7
7
  autoClose?: boolean;
8
- onClose: () => void;
8
+ onClose?: () => void;
9
9
  };
10
10
  export declare const WizSnackbar: FC<Props>;
11
11
  export {};
@@ -8,7 +8,7 @@ type Props = BaseProps & {
8
8
  notificationCount?: number;
9
9
  badgeColor?: "red" | "green";
10
10
  width?: string;
11
- onClick: (name: string) => void;
11
+ onClick?: (name: string) => void;
12
12
  };
13
13
  export declare const WizTabPane: FC<Props>;
14
14
  export {};
@@ -8,7 +8,7 @@ type Props = BaseProps & {
8
8
  gap?: SpacingKeys;
9
9
  width?: string;
10
10
  center?: boolean;
11
- onClickTab: (name: string) => void;
11
+ onClickTab?: (name: string) => void;
12
12
  };
13
13
  export declare const WizTab: FC<Props>;
14
14
  export {};
@@ -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: (value: string) => void;
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: (value: string) => void;
19
- onSubmit: () => void;
20
- onToggle: () => void;
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: (value: string) => void;
9
- onSubmit: () => void;
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 {};
@@ -12,3 +12,4 @@ export declare const VariantYellow: Story;
12
12
  export declare const VariantGray: Story;
13
13
  export declare const MobileDevice: Story;
14
14
  export declare const Disabled: Story;
15
+ export declare const BackgroundColor: Story;