@goodhood-web/ui 1.6.0-development.32 → 1.6.0-development.33
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface SelectExampleProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
error?: boolean;
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
filled?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function SelectExample(props: SelectExampleProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FocusEvent, KeyboardEvent, MouseEvent, ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SelectTypes {
|
|
4
|
+
children: ReactElement<HTMLOptionElement> | ReactElement<HTMLOptionElement>[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
filled?: boolean;
|
|
9
|
+
onChange: (value: string | null) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface OptionTypes {
|
|
14
|
+
child?: ReactElement;
|
|
15
|
+
label?: string;
|
|
16
|
+
value: string | null;
|
|
17
|
+
}
|
|
18
|
+
export type OnChangeType = ((event: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element> | FocusEvent<Element, Element> | null, value: string | null) => void) | undefined;
|