@hexure/ui 1.14.5 → 1.14.7
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.
- package/dist/cjs/index.js +256 -23
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/CustomSelect/CustomSelect.d.ts +39 -0
- package/dist/cjs/types/components/CustomSelect/index.d.ts +2 -0
- package/dist/cjs/types/components/Select/Select.d.ts +1 -0
- package/dist/esm/index.js +256 -23
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/CustomSelect/CustomSelect.d.ts +39 -0
- package/dist/esm/types/components/CustomSelect/index.d.ts +2 -0
- package/dist/esm/types/components/Select/Select.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/cjs/types/components/{Multiselect → MultiSelect}/MultiSelect.d.ts +0 -0
- /package/dist/cjs/types/components/{Multiselect → MultiSelect}/index.d.ts +0 -0
- /package/dist/esm/types/components/{Multiselect → MultiSelect}/MultiSelect.d.ts +0 -0
- /package/dist/esm/types/components/{Multiselect → MultiSelect}/index.d.ts +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AccessibleProps } from '../../utils/Accessibility';
|
|
3
|
+
import { CSSProperties } from 'styled-components';
|
|
4
|
+
export interface OptionProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
color?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface OptionGroupProps {
|
|
11
|
+
options: OptionProps[];
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export interface styleProps {
|
|
15
|
+
borderRadius?: string;
|
|
16
|
+
flexGrow?: number;
|
|
17
|
+
width?: number | string;
|
|
18
|
+
}
|
|
19
|
+
export interface CustomSelectProps extends AccessibleProps {
|
|
20
|
+
options?: OptionProps[];
|
|
21
|
+
optionGroups?: OptionGroupProps[];
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
searchable?: boolean;
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
invalid?: boolean;
|
|
26
|
+
value?: string;
|
|
27
|
+
style?: CSSProperties;
|
|
28
|
+
onChange?: (value: string | number) => void;
|
|
29
|
+
onFocus?: (e: any) => void;
|
|
30
|
+
onBlur?: (e: any) => void;
|
|
31
|
+
onSearch?: (searchTerm: string) => void;
|
|
32
|
+
/** Optional ID for automation purposes */
|
|
33
|
+
dataItemid?: string;
|
|
34
|
+
isInvalidRedBackground?: boolean;
|
|
35
|
+
isWarningError?: boolean;
|
|
36
|
+
innerRef?: any;
|
|
37
|
+
}
|
|
38
|
+
declare const CustomSelect: FC<CustomSelectProps>;
|
|
39
|
+
export default CustomSelect;
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|