@agility/plenum-ui 2.1.7-rc1 → 2.1.8
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.
|
@@ -43,6 +43,7 @@ export interface ITextInputSelectProps {
|
|
|
43
43
|
onChange?(value: string): void;
|
|
44
44
|
/** Callback on input select field */
|
|
45
45
|
onSelectOption?(value: string): void;
|
|
46
|
+
selectInputClassName?: string;
|
|
46
47
|
}
|
|
47
48
|
declare const TextInputSelect: FC<ITextInputSelectProps>;
|
|
48
49
|
export default TextInputSelect;
|
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@ export interface ITextInputSelectProps {
|
|
|
49
49
|
onChange?(value: string): void
|
|
50
50
|
/** Callback on input select field */
|
|
51
51
|
onSelectOption?(value: string): void
|
|
52
|
+
selectInputClassName?: string
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
const TextInputSelect: FC<ITextInputSelectProps> = ({
|
|
@@ -70,7 +71,8 @@ const TextInputSelect: FC<ITextInputSelectProps> = ({
|
|
|
70
71
|
prefix,
|
|
71
72
|
onChange,
|
|
72
73
|
onSelectOption,
|
|
73
|
-
value: externalValue
|
|
74
|
+
value: externalValue,
|
|
75
|
+
selectInputClassName
|
|
74
76
|
}: ITextInputSelectProps) => {
|
|
75
77
|
const [isFocus, setIsFocus] = useState<boolean>(Boolean(isFocused))
|
|
76
78
|
const [value, setValue] = useState<string>(defaultValue || "")
|
|
@@ -168,7 +170,7 @@ const TextInputSelect: FC<ITextInputSelectProps> = ({
|
|
|
168
170
|
align={"right"}
|
|
169
171
|
onSelectOption={onSelectOption}
|
|
170
172
|
isDisabled={isDisabled}
|
|
171
|
-
className={cn(isError ? "border-red-500" : "")}
|
|
173
|
+
className={cn(selectInputClassName, isError ? "border-red-500" : "")}
|
|
172
174
|
/>
|
|
173
175
|
)}
|
|
174
176
|
</div>
|