import {
    type ViewStyle,
    type StyleProp,
    type TextStyle
} from "react-native";

export type RadioButtonDynamicStyleType = {
    displayBehaviourWhileLoading?: RadioButtonDisplayBehaviourWhileLoading;
    inlineSpaces: NCoreUIKit.ActivePalette["inlineSpaces"];
    radiuses: NCoreUIKit.ActivePalette["radiuses"];
    spreadBehaviour?: RadioButtonSpreadBehaviour;
    spaces: NCoreUIKit.ActivePalette["spaces"];
    colors: NCoreUIKit.ActivePalette["colors"];
    currentType: RadioButtonTypes;
    RADIO_INDICATOR_SIZE: number;
    borders: NCoreUIKit.Borders;
    type: RadioButtonType;
    isDisabled?: boolean;
    isLoading?: boolean;
    isChecked?: boolean;
    isFlip?: boolean;
};

export type RadioButtonTypes = {
    containerColor: keyof NCoreUIKit.ContainerContentColors;
    indicatorColor: keyof NCoreUIKit.IconContentColors;
    subTitleColor: keyof NCoreUIKit.TextContentColors;
    borderColor: keyof NCoreUIKit.BorderContentColors;
    titleColor: keyof NCoreUIKit.TextContentColors;
};

export type RadioButtonTypeConstantType = {
    type: RadioButtonType;
};

export type RadioButtonType = "primary" | "danger" | "warning" | "neutral" | "success" | "info";

export type RadioButtonDisplayBehaviourWhileLoading = "none" | "disabled";

export type RadioButtonSpreadBehaviour = "baseline" | "stretch" | "free";

interface IRadioButtonProps {
    displayBehaviourWhileLoading?: RadioButtonDisplayBehaviourWhileLoading;
    subTitleStyle?: StyleProp<TextStyle>[] | StyleProp<TextStyle>;
    titleStyle?: StyleProp<TextStyle>[] | StyleProp<TextStyle>;
    style?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
    customTheme?: {
        gapPropagation?: NCoreUIKit.GapPropagationKey;
        sharpness?: NCoreUIKit.SharpnessKey;
        paletteKey?: NCoreUIKit.PaletteKey;
        themeKey?: NCoreUIKit.ThemeKey;
    };
    spreadBehaviour?: RadioButtonSpreadBehaviour;
    customLocalize?: {
        activeLocale?: NCoreUIKit.LocaleKey;
    };
    type?: RadioButtonType;
    optionalText?: string;
    isDisabled?: boolean;
    isOptional?: boolean;
    onPress?: () => void;
    isLoading?: boolean;
    isChecked?: boolean;
    subTitle?: string;
    isFlip?: boolean;
    title?: string;
}
export type {
    IRadioButtonProps as default
};
