@wizleap-inc/wiz-ui-react 2.9.1 → 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.
@@ -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,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,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,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;