@wizleap-inc/wiz-ui-react 2.9.0 → 2.10.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 (28) hide show
  1. package/dist/components/base/accordion/components/accordion.d.ts +2 -3
  2. package/dist/components/base/anchor/components/anchor.d.ts +1 -0
  3. package/dist/components/base/dropdown/components/dropdown-item.d.ts +2 -5
  4. package/dist/components/base/header/components/header.d.ts +2 -3
  5. package/dist/components/base/information-panel/components/information-panel.d.ts +2 -3
  6. package/dist/components/base/inputs/checkbox-new/components/checkbox-new.d.ts +2 -11
  7. package/dist/components/base/inputs/date-picker/components/date-picker.d.ts +2 -3
  8. package/dist/components/base/inputs/date-range-picker/components/date-range-picker.d.ts +2 -3
  9. package/dist/components/base/inputs/search-input/components/search-input.d.ts +3 -3
  10. package/dist/components/base/inputs/search-selector/components/popup-button-group/components/popup-button-group.d.ts +3 -3
  11. package/dist/components/base/inputs/search-selector/components/search-selector.d.ts +3 -3
  12. package/dist/components/base/inputs/selectbox/components/selectbox.d.ts +3 -3
  13. package/dist/components/base/inputs/time-picker/components/time-picker.d.ts +2 -3
  14. package/dist/components/base/inputs/toggle-switch/components/toggle-switch.d.ts +2 -3
  15. package/dist/components/base/navigation/components/navigation-item.d.ts +3 -4
  16. package/dist/components/base/pagination/components/pagination.d.ts +3 -3
  17. package/dist/components/base/panel-switch/components/panel-switch.d.ts +2 -3
  18. package/dist/components/base/popup-button-group/components/popup-button-group.d.ts +2 -3
  19. package/dist/components/base/show-more-less/components/show-more-less.d.ts +2 -3
  20. package/dist/components/base/tab/components/tab.d.ts +2 -3
  21. package/dist/components/base/text-area/components/text-area.d.ts +4 -6
  22. package/dist/components/custom/chat/components/chat-card.d.ts +3 -4
  23. package/dist/components/custom/notification/components/notification-list.d.ts +2 -3
  24. package/dist/components/custom/notification/components/notification-panel.d.ts +2 -3
  25. package/dist/components/custom/notification/components/notification.d.ts +2 -3
  26. package/dist/wiz-ui.es.js +2764 -2749
  27. package/dist/wiz-ui.umd.js +22 -22
  28. package/package.json +3 -3
@@ -1,7 +1,6 @@
1
1
  import { ColorKeys } from '@wizleap-inc/wiz-ui-constants';
2
- import { FC, ReactNode } from 'react';
3
- import { BaseProps } from '../../../../types';
4
- type Props = BaseProps & {
2
+ import { FC, ReactNode, ComponentPropsWithoutRef } from 'react';
3
+ type Props = Omit<ComponentPropsWithoutRef<"details">, "onToggle"> & {
5
4
  isOpen: boolean;
6
5
  openMessage?: string;
7
6
  closeMessage?: string;
@@ -9,6 +9,7 @@ type Props<T extends ElementType> = BaseProps & {
9
9
  icon?: TIcon;
10
10
  iconPosition?: "left" | "right";
11
11
  nowrap?: boolean;
12
+ [key: `data-${string}`]: string;
12
13
  children: ReactNode;
13
14
  } & ({
14
15
  href?: string;
@@ -1,10 +1,7 @@
1
- import { FC, MouseEventHandler, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
2
  import { TIcon } from '../../../icons';
3
- import { BaseProps } from '../../../../types';
4
- type Props = BaseProps & {
3
+ type Props = ComponentPropsWithoutRef<"button"> & {
5
4
  icon?: TIcon;
6
- disabled?: boolean;
7
- onClick?: MouseEventHandler<HTMLButtonElement>;
8
5
  children: ReactNode;
9
6
  };
10
7
  export declare const WizDropdownItem: FC<Props>;
@@ -1,7 +1,6 @@
1
1
  import { SpacingKeys } from '@wizleap-inc/wiz-ui-constants';
2
- import { FC, ReactNode } from 'react';
3
- import { BaseProps } from '../../../../types';
4
- type Props = BaseProps & {
2
+ import { FC, ReactNode, ComponentPropsWithoutRef } from 'react';
3
+ type Props = ComponentPropsWithoutRef<"div"> & {
5
4
  gapLeft?: SpacingKeys;
6
5
  gapRight?: SpacingKeys;
7
6
  sticky?: boolean;
@@ -1,10 +1,9 @@
1
- import { FC, ReactNode } from 'react';
2
- import { BaseProps } from '../../../../types';
1
+ import { FC, ReactNode, ComponentPropsWithoutRef } from 'react';
3
2
  type TextMessage = {
4
3
  text: string;
5
4
  type: "default" | "error";
6
5
  };
7
- type Props = BaseProps & {
6
+ type Props = ComponentPropsWithoutRef<"div"> & {
8
7
  messages: (TextMessage | ReactNode)[];
9
8
  width?: string;
10
9
  border?: boolean;
@@ -1,16 +1,7 @@
1
- import { ChangeEvent, ComponentProps, ReactNode } from 'react';
2
- import { BaseProps } from '../../../../../types';
3
- type InputProps = ComponentProps<"input">;
4
- export declare const WizCheckBoxNew: import('react').ForwardRefExoticComponent<BaseProps & {
5
- checked?: boolean;
6
- value?: InputProps["value"];
7
- id?: string;
8
- name?: string;
9
- disabled?: boolean;
1
+ import { ReactNode } from 'react';
2
+ export declare const WizCheckBoxNew: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
10
3
  strikeThrough?: boolean;
11
4
  bordered?: boolean;
12
5
  error?: boolean;
13
6
  children?: ReactNode;
14
- onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
15
7
  } & import('react').RefAttributes<HTMLInputElement>>;
16
- export {};
@@ -1,6 +1,5 @@
1
- import { FC } from 'react';
2
- import { BaseProps } from '../../../../../types';
3
- type Props = BaseProps & {
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
2
+ type Props = Omit<ComponentPropsWithoutRef<"button">, "disabled"> & {
4
3
  date: Date | null;
5
4
  placeholder?: string;
6
5
  width?: string;
@@ -1,7 +1,6 @@
1
- import { FC } from 'react';
2
- import { BaseProps } from '../../../../../types';
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
3
2
  import { DateRange, DateRangePickerSelectBoxOption } from '../types';
4
- type Props = BaseProps & {
3
+ type Props = Omit<ComponentPropsWithoutRef<"button">, "disabled"> & {
5
4
  dateRange: DateRange;
6
5
  /**
7
6
  * @deprecated このプロパティは将来のバージョンで削除される予定です。代わりに `width="100%"` を使用してください。
@@ -1,7 +1,7 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
1
2
  import { TIcon } from '../../../..';
2
- import { BaseProps } from '../../../../../types';
3
3
  import { CheckboxOption, SearchInputOption } from './types';
4
- type Props<T extends CheckboxOption> = BaseProps & {
4
+ type Props<T extends CheckboxOption> = ComponentPropsWithoutRef<"div"> & {
5
5
  options: SearchInputOption<T>[];
6
6
  values: T[];
7
7
  name?: string;
@@ -22,7 +22,7 @@ type Props<T extends CheckboxOption> = BaseProps & {
22
22
  onChangeValues?: (values: T[]) => void;
23
23
  };
24
24
  export declare const WizSearchInput: {
25
- <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;
25
+ <T extends CheckboxOption>({ className, style, options, values, name, placeholder, disabled, expand, singleSelect, inputWidth, popupWidth, isDirectionFixed, emptyMessage, showSelectedItem, onChangeValues, showParentLabel, icon, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
26
26
  displayName: "WizSearchInput";
27
27
  };
28
28
  export {};
@@ -1,7 +1,7 @@
1
1
  import { SpacingKeys } from '@wizleap-inc/wiz-ui-constants';
2
- import { BaseProps } from '../../../../../../../types';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
3
  import { ButtonGroupItem } from '../types';
4
- type Props<T> = BaseProps & {
4
+ type Props<T> = ComponentPropsWithoutRef<"div"> & {
5
5
  options: ButtonGroupItem<T>[];
6
6
  width?: string;
7
7
  p?: SpacingKeys;
@@ -12,5 +12,5 @@ type Props<T> = BaseProps & {
12
12
  buttonDivider?: boolean;
13
13
  depth?: number;
14
14
  };
15
- export declare const PopupButtonGroup: <T>({ className, style, options, width, p, borderRadius, disabled, expand, groupDivider, buttonDivider, depth, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const PopupButtonGroup: <T>({ className, style, options, width, p, borderRadius, disabled, expand, groupDivider, buttonDivider, depth, ...props }: Props<T>) => import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -1,6 +1,6 @@
1
- import { BaseProps } from '../../../../../types';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import { SearchSelectorOption } from './types';
3
- type Props<T> = BaseProps & {
3
+ type Props<T> = ComponentPropsWithoutRef<"div"> & {
4
4
  options: SearchSelectorOption<T>[];
5
5
  values: T[];
6
6
  placeholder?: string;
@@ -28,7 +28,7 @@ type Props<T> = BaseProps & {
28
28
  onInputSearchText?: (text: string) => void;
29
29
  };
30
30
  export declare const WizSearchSelector: {
31
- <T>({ className, style, options, values, placeholder, width, disabled, expand, multiSelectable, addable, error, isDirectionFixed, showExLabel, dropdownMaxHeight, threshold, onChangeValues, onCreate, onInputSearchText, }: Props<T>): import("react/jsx-runtime").JSX.Element;
31
+ <T>({ className, style, options, values, placeholder, width, disabled, expand, multiSelectable, addable, error, isDirectionFixed, showExLabel, dropdownMaxHeight, threshold, onChangeValues, onCreate, onInputSearchText, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
32
32
  displayName: "WizSearchSelector";
33
33
  };
34
34
  export {};
@@ -1,11 +1,11 @@
1
- import { BaseProps } from '../../../../../types';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  type SelectBoxOption<T = number> = {
3
3
  label: string;
4
4
  exLabel?: string;
5
5
  value: T;
6
6
  disabled?: boolean;
7
7
  };
8
- type Props<T> = BaseProps & {
8
+ type Props<T> = Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
9
9
  options: SelectBoxOption<T>[];
10
10
  value: T | null;
11
11
  placeholder?: string;
@@ -23,7 +23,7 @@ type Props<T> = BaseProps & {
23
23
  onChange?: (value: T | null) => void;
24
24
  };
25
25
  export declare const WizSelectBox: {
26
- <T>({ className, style, options, value, placeholder, width, disabled, variant, expand, error, isDirectionFixed, showExLabel, dropdownMaxHeight, onChange, }: Props<T>): import("react/jsx-runtime").JSX.Element;
26
+ <T>({ className, style, options, value, placeholder, width, disabled, variant, expand, error, isDirectionFixed, showExLabel, dropdownMaxHeight, onChange, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
27
27
  displayName: "WizSelectBox";
28
28
  };
29
29
  export {};
@@ -1,7 +1,6 @@
1
- import { FC } from 'react';
2
- import { BaseProps } from '../../../../../types';
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
3
2
  import { Time } from '../types/time';
4
- type Props = BaseProps & {
3
+ type Props = Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
5
4
  time: Time | null;
6
5
  placeholder?: string;
7
6
  width?: string;
@@ -1,6 +1,5 @@
1
- import { FC } from 'react';
2
- import { BaseProps } from '../../../../../types';
3
- type Props = BaseProps & {
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
2
+ type Props = ComponentPropsWithoutRef<"label"> & {
4
3
  value: boolean;
5
4
  ariaLabel: string;
6
5
  disabled?: boolean;
@@ -1,8 +1,7 @@
1
- import { ComponentProps, ElementType } from 'react';
1
+ import { ComponentProps, ComponentPropsWithoutRef, ElementType } from 'react';
2
2
  import { TIcon } from '../../..';
3
- import { BaseProps } from '../../../../types';
4
3
  import { ButtonGroupItem } from '../../popup-button-group/types';
5
- type Props<T extends ElementType> = BaseProps & {
4
+ type Props<T extends ElementType> = ComponentPropsWithoutRef<"div"> & {
6
5
  icon: TIcon;
7
6
  label: string;
8
7
  active: boolean;
@@ -31,7 +30,7 @@ type Props<T extends ElementType> = BaseProps & {
31
30
  asProps: ComponentProps<T>;
32
31
  });
33
32
  export declare const WizNavigationItem: {
34
- <T extends ElementType>({ className, style, icon: Icon, label, active, disabled, tooltipText, buttons, isPopupOpen, onTogglePopup, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
33
+ <T extends ElementType>({ style, icon: Icon, label, active, disabled, tooltipText, buttons, isPopupOpen, href, as, asProps, onTogglePopup, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
35
34
  displayName: "WizNavigationItem";
36
35
  };
37
36
  export {};
@@ -1,5 +1,5 @@
1
- import { BaseProps } from '../../../../types';
2
- type Props = BaseProps & {
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ type Props = ComponentPropsWithoutRef<"nav"> & {
3
3
  currentPage: number;
4
4
  length: number;
5
5
  onChangePage?: (page: number) => void;
@@ -10,7 +10,7 @@ type Props = BaseProps & {
10
10
  sideLength: number;
11
11
  };
12
12
  export declare const WizPagination: {
13
- ({ className, style, currentPage, length, onChangePage, sideLength, }: Props): import("react/jsx-runtime").JSX.Element;
13
+ ({ className, currentPage, length, onChangePage, sideLength, ...props }: Props): import("react/jsx-runtime").JSX.Element;
14
14
  displayName: "WizPagination";
15
15
  };
16
16
  export {};
@@ -1,7 +1,6 @@
1
- import { FC } from 'react';
2
- import { BaseProps } from '../../../../types';
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
3
2
  import { PanelItems } from './type';
4
- type Props = BaseProps & {
3
+ type Props = Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
5
4
  value: number | null;
6
5
  items: PanelItems[];
7
6
  width?: string;
@@ -1,8 +1,7 @@
1
1
  import { SpacingKeys } from '@wizleap-inc/wiz-ui-constants';
2
- import { FC } from 'react';
3
- import { BaseProps } from '../../../../types';
2
+ import { FC, ComponentPropsWithoutRef } from 'react';
4
3
  import { ButtonGroupItem } from '../types';
5
- type Props = BaseProps & {
4
+ type Props = ComponentPropsWithoutRef<"div"> & {
6
5
  options: ButtonGroupItem[];
7
6
  width?: string;
8
7
  p?: SpacingKeys;
@@ -1,6 +1,5 @@
1
- import { FC, ReactNode } from 'react';
2
- import { BaseProps } from '../../../../types';
3
- type Props = BaseProps & {
1
+ import { FC, ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type Props = ComponentPropsWithoutRef<"div"> & {
4
3
  isOpen: boolean;
5
4
  openMessage?: string;
6
5
  closeMessage?: string;
@@ -1,8 +1,7 @@
1
1
  import { SpacingKeys } from '@wizleap-inc/wiz-ui-constants';
2
- import { FC } from 'react';
3
- import { BaseProps } from '../../../../types';
2
+ import { FC, ComponentPropsWithoutRef } from 'react';
4
3
  import { TabItem } from './types';
5
- type Props = BaseProps & {
4
+ type Props = ComponentPropsWithoutRef<"div"> & {
6
5
  activeTabName: string;
7
6
  items: TabItem[];
8
7
  gap?: SpacingKeys;
@@ -1,11 +1,8 @@
1
- import { BaseProps } from '../../../../types';
2
- export declare const WizTextArea: import('react').ForwardRefExoticComponent<BaseProps & {
3
- id?: string;
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ type TextAreaHTMLProps = Omit<ComponentPropsWithoutRef<"textarea">, "value" | "onChange">;
3
+ export declare const WizTextArea: import('react').ForwardRefExoticComponent<TextAreaHTMLProps & {
4
4
  value: string;
5
- placeholder?: string;
6
- disabled?: boolean;
7
5
  expand?: boolean;
8
- rows?: number;
9
6
  error?: boolean;
10
7
  resize?: "none" | "both" | "horizontal" | "vertical";
11
8
  maxWidth?: string;
@@ -14,3 +11,4 @@ export declare const WizTextArea: import('react').ForwardRefExoticComponent<Base
14
11
  minHeight?: string;
15
12
  onChange?: (value: string) => void;
16
13
  } & import('react').RefAttributes<HTMLTextAreaElement>>;
14
+ export {};
@@ -1,8 +1,7 @@
1
- import { ComponentProps } from 'react';
1
+ import { ComponentProps, ComponentPropsWithoutRef } from 'react';
2
2
  import { WizSelectBox } from '../../..';
3
- import { BaseProps } from '../../../../types';
4
3
  import { Message } from './types';
5
- type Props<T> = BaseProps & {
4
+ type Props<T> = Omit<ComponentPropsWithoutRef<"div">, "onSubmit"> & {
6
5
  textValue: string;
7
6
  username: string;
8
7
  isOpen: boolean;
@@ -20,7 +19,7 @@ type Props<T> = BaseProps & {
20
19
  onToggle?: () => void;
21
20
  };
22
21
  export declare const WizChatCard: {
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;
22
+ <T>({ isOpen, textValue, username, placeholder, messages, haveNewMessage, formRows, typingUsername, status, statusOptions, statusPlaceholder, onChangeStatus, onChangeTextValue, onSubmit, onToggle, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
24
23
  displayName: "WizChatCard";
25
24
  };
26
25
  export {};
@@ -1,7 +1,6 @@
1
- import { FC } from 'react';
2
- import { BaseProps } from '../../../../types';
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
3
2
  import { NotificationItem, PanelVariant } from './types';
4
- type Props = BaseProps & {
3
+ type Props = Omit<ComponentPropsWithoutRef<"div">, "onClick"> & {
5
4
  variant?: PanelVariant;
6
5
  notifications: NotificationItem[];
7
6
  height?: string;
@@ -1,7 +1,6 @@
1
- import { FC } from 'react';
2
- import { BaseProps } from '../../../../types';
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
3
2
  import { PanelVariant, TableInfoItem } from './types';
4
- type Props = BaseProps & {
3
+ type Props = Omit<ComponentPropsWithoutRef<"div">, "onClick" | "title"> & {
5
4
  title: string;
6
5
  timestamp: Date;
7
6
  variant?: PanelVariant;
@@ -1,7 +1,6 @@
1
- import { FC } from 'react';
2
- import { BaseProps } from '../../../../types';
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
3
2
  import { NotificationItem, NotificationTabItem } from './types';
4
- type Props = BaseProps & {
3
+ type Props = Omit<ComponentPropsWithoutRef<"div">, "onClick"> & {
5
4
  tabs: NotificationTabItem[];
6
5
  notifications: NotificationItem[];
7
6
  height?: string;