1 | import React, { FC } from 'react';
|
2 | import { ArgTypes, Args } from './types';
|
3 | export declare const TableWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
|
4 | compact?: boolean;
|
5 | inAddonPanel?: boolean;
|
6 | }, import("@storybook/theming").Theme>;
|
7 | export declare enum ArgsTableError {
|
8 | NO_COMPONENT = "No component found.",
|
9 | ARGS_UNSUPPORTED = "Args unsupported. See Args documentation for your framework."
|
10 | }
|
11 | export declare type SortType = 'alpha' | 'requiredFirst' | 'none';
|
12 | export interface ArgsTableRowProps {
|
13 | rows: ArgTypes;
|
14 | args?: Args;
|
15 | updateArgs?: (args: Args) => void;
|
16 | resetArgs?: (argNames?: string[]) => void;
|
17 | compact?: boolean;
|
18 | inAddonPanel?: boolean;
|
19 | initialExpandedArgs?: boolean;
|
20 | sort?: SortType;
|
21 | }
|
22 | export interface ArgsTableErrorProps {
|
23 | error: ArgsTableError;
|
24 | }
|
25 | export declare type ArgsTableProps = ArgsTableRowProps | ArgsTableErrorProps;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export declare const ArgsTable: FC<ArgsTableProps>;
|