import React from 'react'; import { TabsOrientation, TabsTextTransform } from './shared'; import { ThemeInterface } from '../../theme/magma'; import { Omit } from '../../utils'; export declare enum TabsAlignment { center = "center", left = "left", right = "right" } export declare enum TabsBorderPosition { bottom = "bottom", left = "left", right = "right", top = "top" } export declare enum TabsIconPosition { bottom = "bottom", left = "left", right = "right", top = "top" } export interface VerticalTabsProps { orientation?: TabsOrientation.vertical; borderPosition?: TabsBorderPosition.left | TabsBorderPosition.right; } export interface HorizontalTabsProps { orientation?: TabsOrientation.horizontal; borderPosition?: TabsBorderPosition.bottom | TabsBorderPosition.top; } export declare type Orientation = HorizontalTabsProps | VerticalTabsProps; export interface TabsProps extends Omit, 'onChange'> { /** * Alignment of the tabs menu * @default TabsAlignment.left */ alignment?: TabsAlignment; /** * The text the screen reader will announce that describes your tablist. */ 'aria-label'?: string; /** * Background color for the tabs menu */ backgroundColor?: string; /** * The orientation of icon on Tab * @default TabsIconPosition.left */ iconPosition?: TabsIconPosition; /** * If false, the divider border is hidden * @default true */ hasBorder?: boolean; /** * If true, the components takes the full width of the screen */ isFullWidth?: boolean; isInverse?: boolean; /** * The onChange handler for managing state of Tabs component by your custom logic. */ onChange?: (newActiveIndex: number) => void; /** * @default TabsOrientation.horizontal */ orientation?: TabsOrientation; /** * Determines whether the tab appears in all-caps * @default TabsTextTransform.none */ textTransform?: TabsTextTransform; /** * @internal */ testId?: string; } interface TabsContextInterface { borderPosition?: TabsBorderPosition; buttonRefArray?: React.MutableRefObject[]>; changeHandler: (newActiveIndex: number, event?: React.MouseEvent) => void; iconPosition?: TabsIconPosition; isInverse?: boolean; isFullWidth?: boolean; orientation?: TabsOrientation; textTransform?: TabsTextTransform; registerTabButton: (itemRefArray: React.MutableRefObject[]>, itemRef: React.MutableRefObject) => void; } export declare const TabsContext: React.Context; interface StyledContainerProps { as?: string; borderPosition?: TabsBorderPosition; hasBorder?: boolean; orientation: TabsOrientation; isInverse: boolean; backgroundColor: string; theme: ThemeInterface; } export declare const StyledContainer: import("@emotion/styled").StyledComponent<{ theme?: import("@emotion/react").Theme; as?: React.ElementType; } & StyledContainerProps, React.DetailedHTMLProps, HTMLDivElement>, {}>; export declare const StyledTabsWrapper: import("@emotion/styled").StyledComponent<{ theme?: import("@emotion/react").Theme; as?: React.ElementType; } & { borderPosition?: TabsBorderPosition; hasBorder?: boolean; orientation: TabsOrientation; }, React.DetailedHTMLProps, HTMLDivElement>, {}>; export declare const StyledTabs: import("@emotion/styled").StyledComponent<{ theme?: import("@emotion/react").Theme; as?: React.ElementType; } & { alignment?: TabsAlignment; borderPosition?: TabsBorderPosition; hasBorder?: boolean; orientation: TabsOrientation; }, React.DetailedHTMLProps, HTMLUListElement>, {}>; export declare const Tabs: React.ForwardRefExoticComponent<(TabsProps & VerticalTabsProps & React.RefAttributes) | (TabsProps & HorizontalTabsProps & React.RefAttributes)>; export {};