1 | import * as React from 'react';
|
2 | import { TabsListProviderValue } from './TabsListProvider';
|
3 | import { ListAction } from '../useList';
|
4 | export interface UseTabsListParameters {
|
5 | |
6 |
|
7 |
|
8 | rootRef: React.Ref<Element>;
|
9 | }
|
10 | export type UseTabsListRootSlotProps<TOther = {}> = TOther & {
|
11 | 'aria-label'?: React.AriaAttributes['aria-label'];
|
12 | 'aria-labelledby'?: React.AriaAttributes['aria-labelledby'];
|
13 | 'aria-orientation'?: React.AriaAttributes['aria-orientation'];
|
14 | role: React.AriaRole;
|
15 | ref: React.RefCallback<Element> | null;
|
16 | onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
17 | };
|
18 | export interface UseTabsListReturnValue {
|
19 | |
20 |
|
21 |
|
22 | contextValue: TabsListProviderValue;
|
23 | |
24 |
|
25 |
|
26 |
|
27 | dispatch: (action: ListAction<string | number>) => void;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 | getRootProps: <TOther extends Record<string, any> = {}>(externalProps?: TOther) => UseTabsListRootSlotProps<TOther>;
|
34 | |
35 |
|
36 |
|
37 | highlightedValue: string | number | null;
|
38 | |
39 |
|
40 |
|
41 | isRtl: boolean;
|
42 | |
43 |
|
44 |
|
45 | orientation: 'horizontal' | 'vertical';
|
46 | rootRef: React.RefCallback<Element> | null;
|
47 | |
48 |
|
49 |
|
50 | selectedValue: string | number | null;
|
51 | }
|
52 | export declare const TabsListActionTypes: {
|
53 | readonly valueChange: "valueChange";
|
54 | };
|
55 | export interface ValueChangeAction {
|
56 | type: typeof TabsListActionTypes.valueChange;
|
57 | value: string | number | null;
|
58 | }
|