|
|
@@ -131,36 +131,6 @@ function SelectBox<T>({
|
|
|
type
|
|
|
});
|
|
|
|
|
|
- const {
|
|
|
- contentContainer: contentContainerDynamicStyle,
|
|
|
- titleContainer: titleContainerDynamicStyle,
|
|
|
- hintTextIcon: hintTextIconDynamicStyle,
|
|
|
- contentText: contentTextDynamicStyle,
|
|
|
- cleanButton: cleanButtonDynamicStyle,
|
|
|
- rightIcon: rightIconDynamicStyle,
|
|
|
- container: containerDynamicStyle,
|
|
|
- hintText: hintTextDynamicStyle,
|
|
|
- required: requiredDynamicStyle,
|
|
|
- subTitle: subTitleDynamicStyle,
|
|
|
- overlay: overlayDynamicStyle,
|
|
|
- content: contentDynamicStyle,
|
|
|
- title: titleDynamicStyle,
|
|
|
- icon: iconDynamicStyle
|
|
|
- } = useStyles({
|
|
|
- icon: IconComponentProp ? true : false,
|
|
|
- spreadBehaviour,
|
|
|
- inlineSpaces,
|
|
|
- isSearchable,
|
|
|
- currentType,
|
|
|
- isDisabled,
|
|
|
- radiuses,
|
|
|
- borders,
|
|
|
- spaces,
|
|
|
- colors,
|
|
|
- title,
|
|
|
- type
|
|
|
- });
|
|
|
-
|
|
|
const styleType = type === "default" ? "neutral" : type === "question" ? "neutral" : type === "danger" ? "error" : type;
|
|
|
|
|
|
const [
|
|
|
@@ -205,6 +175,37 @@ function SelectBox<T>({
|
|
|
|
|
|
const mainSelectedItems = isWorkWithRealtime ? selectedItems : tempSelectedItems;
|
|
|
|
|
|
+ const {
|
|
|
+ contentContainer: contentContainerDynamicStyle,
|
|
|
+ titleContainer: titleContainerDynamicStyle,
|
|
|
+ hintTextIcon: hintTextIconDynamicStyle,
|
|
|
+ contentText: contentTextDynamicStyle,
|
|
|
+ cleanButton: cleanButtonDynamicStyle,
|
|
|
+ rightIcon: rightIconDynamicStyle,
|
|
|
+ container: containerDynamicStyle,
|
|
|
+ hintText: hintTextDynamicStyle,
|
|
|
+ required: requiredDynamicStyle,
|
|
|
+ subTitle: subTitleDynamicStyle,
|
|
|
+ overlay: overlayDynamicStyle,
|
|
|
+ content: contentDynamicStyle,
|
|
|
+ title: titleDynamicStyle,
|
|
|
+ icon: iconDynamicStyle
|
|
|
+ } = useStyles({
|
|
|
+ icon: IconComponentProp ? true : false,
|
|
|
+ spreadBehaviour,
|
|
|
+ inlineSpaces,
|
|
|
+ isSearchable,
|
|
|
+ currentType,
|
|
|
+ isDisabled,
|
|
|
+ isActive,
|
|
|
+ radiuses,
|
|
|
+ borders,
|
|
|
+ spaces,
|
|
|
+ colors,
|
|
|
+ title,
|
|
|
+ type
|
|
|
+ });
|
|
|
+
|
|
|
useImperativeHandle(
|
|
|
ref,
|
|
|
() => ({
|