@risalabs_frontend_org/oasis-ui-kit 0.55.0 → 0.58.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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./editable-value.scss";
|
|
3
|
+
export interface EditableValueProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onSave?: (value: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const EditableValue: ({ value, onSave, placeholder, className, }: EditableValueProps) => React.JSX.Element;
|
|
10
|
+
export { EditableValue };
|
|
11
|
+
export default EditableValue;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./searchable-select.scss";
|
|
3
|
+
export interface SearchableSelectOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SearchableSelectProps {
|
|
8
|
+
required?: boolean;
|
|
9
|
+
id: string;
|
|
10
|
+
onOptionChange: (data: {
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
error?: string;
|
|
15
|
+
label: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
hint?: string;
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
options: SearchableSelectOption[];
|
|
20
|
+
value?: string;
|
|
21
|
+
resetValue?: boolean;
|
|
22
|
+
shouldOmitPrevSelectedValueOnReset?: boolean;
|
|
23
|
+
searchPlaceholder?: string;
|
|
24
|
+
noResultsMessage?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function SearchableSelect(props: SearchableSelectProps): React.JSX.Element;
|