@wizleap-inc/wiz-ui-react 2.9.0 → 2.9.1

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.
@@ -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;
@@ -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,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,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 {};