|
@@ -9,10 +9,13 @@ import type {
|
|
|
NCoreUIKitIcon
|
|
NCoreUIKitIcon
|
|
|
} from "../../types";
|
|
} from "../../types";
|
|
|
|
|
|
|
|
|
|
+export type SnackBarSpreadBehaviour = "baseline" | "stretch" | "free";
|
|
|
|
|
+
|
|
|
export type SnackBarDynamicStyleType = {
|
|
export type SnackBarDynamicStyleType = {
|
|
|
radiuses: NCoreUIKit.ActivePalette["radiuses"];
|
|
radiuses: NCoreUIKit.ActivePalette["radiuses"];
|
|
|
spaces: NCoreUIKit.ActivePalette["spaces"];
|
|
spaces: NCoreUIKit.ActivePalette["spaces"];
|
|
|
colors: NCoreUIKit.ActivePalette["colors"];
|
|
colors: NCoreUIKit.ActivePalette["colors"];
|
|
|
|
|
+ spreadBehaviour?: SnackBarSpreadBehaviour;
|
|
|
isInlineSafeArea?: boolean;
|
|
isInlineSafeArea?: boolean;
|
|
|
currentType: SnackBarTypes;
|
|
currentType: SnackBarTypes;
|
|
|
isFullWidth?: boolean;
|
|
isFullWidth?: boolean;
|
|
@@ -43,6 +46,7 @@ export type SnackBarInternalProps = {
|
|
|
themeKey?: keyof NCoreUIKit.ThemeKey;
|
|
themeKey?: keyof NCoreUIKit.ThemeKey;
|
|
|
};
|
|
};
|
|
|
style?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
|
|
style?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
|
|
|
|
|
+ spreadBehaviour?: SnackBarSpreadBehaviour;
|
|
|
isCloseOnPressActionButton?: boolean;
|
|
isCloseOnPressActionButton?: boolean;
|
|
|
action?: {
|
|
action?: {
|
|
|
onPress: (props: {
|
|
onPress: (props: {
|