|
@@ -26,33 +26,31 @@ import {
|
|
|
NCoreUIKitTheme,
|
|
NCoreUIKitTheme,
|
|
|
NCoreUIKitToast
|
|
NCoreUIKitToast
|
|
|
} from "../../core/hooks";
|
|
} from "../../core/hooks";
|
|
|
-import {
|
|
|
|
|
- type NCoreUIKitIcon
|
|
|
|
|
-} from "../../types";
|
|
|
|
|
import type {
|
|
import type {
|
|
|
IBottomSheetRef
|
|
IBottomSheetRef
|
|
|
} from "../bottomSheet/type";
|
|
} from "../bottomSheet/type";
|
|
|
import type ITextProps from "../text/type";
|
|
import type ITextProps from "../text/type";
|
|
|
import {
|
|
import {
|
|
|
- BadgeQuestionMarkIcon,
|
|
|
|
|
- BadgeSuccessIcon,
|
|
|
|
|
- BadgeDangerIcon,
|
|
|
|
|
- BadgeAlertIcon,
|
|
|
|
|
- BadgeInfoIcon,
|
|
|
|
|
- CleanIcon
|
|
|
|
|
-} from "../../assets/svg";
|
|
|
|
|
|
|
+ BadgeQuestionMark as BadgeQuestionMarkIcon,
|
|
|
|
|
+ BadgeAlert as BadgeAlertIcon,
|
|
|
|
|
+ BadgeCheck as BadgeCheckIcon,
|
|
|
|
|
+ BadgeInfo as BadgeInfoIcon,
|
|
|
|
|
+ CircleX as CircleXIcon,
|
|
|
|
|
+ BadgeX as BadgeXIcon,
|
|
|
|
|
+ type LucideIcon
|
|
|
|
|
+} from "lucide-react-native";
|
|
|
import {
|
|
import {
|
|
|
uuid
|
|
uuid
|
|
|
} from "../../utils";
|
|
} from "../../utils";
|
|
|
import SelectSheet from "../selectSheet";
|
|
import SelectSheet from "../selectSheet";
|
|
|
import Text from "../text";
|
|
import Text from "../text";
|
|
|
|
|
|
|
|
-const SelectBoxTypeIcon: Record<Exclude<SelectBoxType, "default">, NCoreUIKitIcon> = {
|
|
|
|
|
|
|
+const SelectBoxTypeIcon: Record<Exclude<SelectBoxType, "default">, LucideIcon> = {
|
|
|
"question": BadgeQuestionMarkIcon,
|
|
"question": BadgeQuestionMarkIcon,
|
|
|
- "success": BadgeSuccessIcon,
|
|
|
|
|
|
|
+ "success": BadgeCheckIcon,
|
|
|
"warning": BadgeAlertIcon,
|
|
"warning": BadgeAlertIcon,
|
|
|
- "danger": BadgeDangerIcon,
|
|
|
|
|
- "info": BadgeInfoIcon
|
|
|
|
|
|
|
+ "info": BadgeInfoIcon,
|
|
|
|
|
+ "danger": BadgeXIcon
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
function SelectBox<T>({
|
|
function SelectBox<T>({
|
|
@@ -569,7 +567,7 @@ function SelectBox<T>({
|
|
|
setTempSelectedItems([]);
|
|
setTempSelectedItems([]);
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|
|
|
- <CleanIcon
|
|
|
|
|
|
|
+ <CircleXIcon
|
|
|
color="mid"
|
|
color="mid"
|
|
|
size={20}
|
|
size={20}
|
|
|
/>
|
|
/>
|
|
@@ -640,8 +638,7 @@ function SelectBox<T>({
|
|
|
const CurrentHintIcon = SelectBoxTypeIcon[type === "default" ? "question" : type];
|
|
const CurrentHintIcon = SelectBoxTypeIcon[type === "default" ? "question" : type];
|
|
|
|
|
|
|
|
return <CurrentHintIcon
|
|
return <CurrentHintIcon
|
|
|
- customColor={isDisabled ? colors.system.state.content.disabled[styleType] : undefined}
|
|
|
|
|
- color={currentType.hintTextIconColor}
|
|
|
|
|
|
|
+ color={isDisabled ? colors.system.state.content.disabled[styleType] : colors.content.icon[currentType.hintTextIconColor]}
|
|
|
size={20}
|
|
size={20}
|
|
|
style={[
|
|
style={[
|
|
|
hintTextIconStyle,
|
|
hintTextIconStyle,
|