@wizleap-inc/wiz-ui-react 2.40.0 → 3.0.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.
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
interface BaseProps extends ComponentPropsWithoutRef<"input"> {
|
|
3
3
|
strikeThrough?: boolean;
|
|
4
4
|
bordered?: boolean;
|
|
5
5
|
error?: boolean;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
|
+
interface ControlledProps extends BaseProps {
|
|
9
|
+
checked: boolean;
|
|
10
|
+
defaultChecked?: never;
|
|
11
|
+
}
|
|
12
|
+
interface UncontrolledProps extends BaseProps {
|
|
13
|
+
checked?: never;
|
|
14
|
+
defaultChecked?: boolean;
|
|
15
|
+
}
|
|
16
|
+
type Props = ControlledProps | UncontrolledProps;
|
|
17
|
+
export declare const WizCheckBoxNew: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
+
export {};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
type TextAreaHTMLProps = Omit<ComponentPropsWithoutRef<"textarea">, "value" | "onChange">;
|
|
3
|
-
export declare const WizTextArea: import('react').ForwardRefExoticComponent<TextAreaHTMLProps & {
|
|
4
|
-
value: string;
|
|
1
|
+
export declare const WizTextArea: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
|
|
5
2
|
expand?: boolean;
|
|
6
3
|
error?: boolean;
|
|
7
4
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
|
@@ -9,6 +6,4 @@ export declare const WizTextArea: import('react').ForwardRefExoticComponent<Text
|
|
|
9
6
|
minWidth?: string;
|
|
10
7
|
maxHeight?: string;
|
|
11
8
|
minHeight?: string;
|
|
12
|
-
onChange?: (value: string) => void;
|
|
13
9
|
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
14
|
-
export {};
|