UNPKG

1.11 kBTypeScriptView Raw
1import { ViewStyle } from 'react-native';
2import type { InternalTheme } from '../../types';
3declare type BaseProps = {
4 theme: InternalTheme;
5 disabled?: boolean;
6 checked: boolean;
7};
8declare type SegmentedButtonProps = {
9 checkedColor?: string;
10 uncheckedColor?: string;
11} & BaseProps;
12export declare const getSegmentedButtonDensityPadding: ({ density, }: {
13 density?: "small" | "regular" | "medium" | "high" | undefined;
14}) => number;
15export declare const getDisabledSegmentedButtonStyle: ({ theme, index, buttons, }: {
16 theme: InternalTheme;
17 buttons: {
18 disabled?: boolean;
19 }[];
20 index: number;
21}) => ViewStyle;
22export declare const getSegmentedButtonBorderRadius: ({ segment, theme, }: {
23 theme: InternalTheme;
24 segment?: "first" | "last" | undefined;
25}) => ViewStyle;
26export declare const getSegmentedButtonColors: ({ theme, disabled, checked, checkedColor, uncheckedColor, }: SegmentedButtonProps) => {
27 backgroundColor: string;
28 borderColor: string;
29 textColor: string;
30 borderWidth: number;
31};
32export {};
33//# sourceMappingURL=utils.d.ts.map
\No newline at end of file