UNPKG

1.76 kBTypeScriptView Raw
1import React from 'react';
2import type { ColorValue, ViewStyle } from 'react-native';
3import { Animated } from 'react-native';
4import type { InternalTheme, ThemeProp } from '../../types';
5export declare type AppbarModes = 'small' | 'medium' | 'large' | 'center-aligned';
6export declare const getAppbarBackgroundColor: (theme: InternalTheme, elevation: number, customBackground?: ColorValue, elevated?: boolean) => ColorValue;
7export declare const getAppbarColor: ({ color, isDark, isV3, }: BaseProps & {
8 color: string;
9}) => string | undefined;
10export declare const getAppbarBorders: (style: Animated.Value | Animated.AnimatedInterpolation<string | number> | Animated.WithAnimatedObject<ViewStyle>) => Record<string, number>;
11declare type BaseProps = {
12 isDark: boolean;
13 isV3: boolean;
14};
15declare type RenderAppbarContentProps = BaseProps & {
16 children: React.ReactNode;
17 shouldCenterContent?: boolean;
18 isV3: boolean;
19 renderOnly?: (string | boolean)[];
20 renderExcept?: string[];
21 mode?: AppbarModes;
22 theme?: ThemeProp;
23};
24export declare const DEFAULT_APPBAR_HEIGHT = 56;
25export declare const modeAppbarHeight: {
26 small: number;
27 medium: number;
28 large: number;
29 'center-aligned': number;
30};
31export declare const modeTextVariant: {
32 readonly small: "titleLarge";
33 readonly medium: "headlineSmall";
34 readonly large: "headlineMedium";
35 readonly 'center-aligned': "titleLarge";
36};
37export declare const renderAppbarContent: ({ children, isDark, shouldCenterContent, isV3, renderOnly, renderExcept, mode, theme, }: RenderAppbarContentProps) => (string | number | Iterable<React.ReactNode> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>>)[];
38export {};
39//# sourceMappingURL=utils.d.ts.map
\No newline at end of file