|
@@ -15,6 +15,7 @@ export type UserShortcutDynamicStyleType = {
|
|
|
backgroundColor: keyof NCoreUIKit.ContainerContentColors | "transparent";
|
|
backgroundColor: keyof NCoreUIKit.ContainerContentColors | "transparent";
|
|
|
radiuses: NCoreUIKit.ActivePalette["radiuses"];
|
|
radiuses: NCoreUIKit.ActivePalette["radiuses"];
|
|
|
spreadBehaviour?: UserShortcutSpreadBehaviour;
|
|
spreadBehaviour?: UserShortcutSpreadBehaviour;
|
|
|
|
|
+ variant?: "default" | "compact" | "drawer";
|
|
|
colors: NCoreUIKit.ActivePalette["colors"];
|
|
colors: NCoreUIKit.ActivePalette["colors"];
|
|
|
spaces: NCoreUIKit.ActivePalette["spaces"];
|
|
spaces: NCoreUIKit.ActivePalette["spaces"];
|
|
|
maxWidth?: DimensionValue;
|
|
maxWidth?: DimensionValue;
|
|
@@ -33,9 +34,9 @@ interface IUserShortcutProps {
|
|
|
style?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
|
|
style?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
|
|
|
statusColor?: keyof NCoreUIKit.TextContentColors;
|
|
statusColor?: keyof NCoreUIKit.TextContentColors;
|
|
|
spreadBehaviour?: UserShortcutSpreadBehaviour;
|
|
spreadBehaviour?: UserShortcutSpreadBehaviour;
|
|
|
|
|
+ variant?: "default" | "compact" | "drawer";
|
|
|
isShowLoginButtonWhenNoSession?: boolean;
|
|
isShowLoginButtonWhenNoSession?: boolean;
|
|
|
isWorkWithCoreComplex?: boolean;
|
|
isWorkWithCoreComplex?: boolean;
|
|
|
- variant?: "default" | "compact";
|
|
|
|
|
isShowRegisterButton?: boolean;
|
|
isShowRegisterButton?: boolean;
|
|
|
actionButtons?: IButtonProps[];
|
|
actionButtons?: IButtonProps[];
|
|
|
isShowLogoutButton?: boolean;
|
|
isShowLogoutButton?: boolean;
|
|
@@ -43,11 +44,11 @@ interface IUserShortcutProps {
|
|
|
isShowArrowButton?: boolean;
|
|
isShowArrowButton?: boolean;
|
|
|
avatarProps?: IAvatarProps;
|
|
avatarProps?: IAvatarProps;
|
|
|
isSessionActive?: boolean;
|
|
isSessionActive?: boolean;
|
|
|
- maxWidth?: DimensionValue;
|
|
|
|
|
onLoginPress?: () => void;
|
|
onLoginPress?: () => void;
|
|
|
|
|
+ maxWidth?: DimensionValue;
|
|
|
isDisabled?: boolean;
|
|
isDisabled?: boolean;
|
|
|
- badges?: ReactNode[];
|
|
|
|
|
onPress?: () => void;
|
|
onPress?: () => void;
|
|
|
|
|
+ badges?: ReactNode[];
|
|
|
statusText?: string;
|
|
statusText?: string;
|
|
|
subTitle?: string;
|
|
subTitle?: string;
|
|
|
title?: string;
|
|
title?: string;
|