import {
    type ViewStyle,
    type StyleProp,
    type TextStyle
} from "react-native";
import type {
    NCoreUIKitIcon
} from "../../types";

export type StickerDynamicStyleType = {
    customColor?: keyof NCoreUIKit.ContainerContentColors;
    radiuses: NCoreUIKit.ActivePalette["radiuses"];
    spaces: NCoreUIKit.ActivePalette["spaces"];
    colors: NCoreUIKit.ActivePalette["colors"];
    spreadBehaviour?: StickerSpreadBehaviour;
    iconPosition?: StickerIconPositionType;
    currentType: StickerTypes;
    size?: StickerSizeType;
};

export type StickerTypes = {
    containerColor: keyof NCoreUIKit.ContainerContentColors;
    titleColor: keyof NCoreUIKit.TextContentColors;
    iconColor: keyof NCoreUIKit.IconContentColors;
};

export type StickerTypeConstantType = {
    type: StickerType;
};

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

export type StickerSizeType = "small" | "medium" | "large";

export type StickerSpreadBehaviour = "baseline" | "free";

export type StickerIconPositionType = "left" | "right";

interface IStickerProps {
    titleStyle?: StyleProp<TextStyle>[] | StyleProp<TextStyle>;
    customTheme?: {
        gapPropagation?: keyof NCoreUIKit.GapPropagationKey;
        sharpness?: keyof NCoreUIKit.SharpnessKey;
        paletteKey?: keyof NCoreUIKit.PaletteKey;
        themeKey?: keyof NCoreUIKit.ThemeKey;
    };
    style?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
    customTitleColor?: keyof NCoreUIKit.TextContentColors;
    customColor?: keyof NCoreUIKit.ContainerContentColors;
    customIconColor?: keyof NCoreUIKit.IconContentColors;
    spreadBehaviour?: StickerSpreadBehaviour;
    iconPosition?: StickerIconPositionType;
    size?: StickerSizeType;
    icon?: NCoreUIKitIcon;
    type?: StickerType;
    title?: string;
}
export type {
    IStickerProps as default
};
