Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(website): add missing props tables #8126

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1912,3 +1912,10 @@ export default () => {
};

```

## Props

import docgen from '@elastic/eui-docgen/dist/components/code';

<PropTable definition={docgen.EuiCode} />
<PropTable definition={docgen.EuiCodeBlock} />
Original file line number Diff line number Diff line change
Expand Up @@ -442,3 +442,9 @@ export default () => {
};

```

## Props

import docgen from '@elastic/eui-docgen/dist/components/markdown_editor';

<PropTable definition={docgen.EuiMarkdownEditor} />
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,9 @@ import classNames from 'classnames';
};
```
</Demo>

## Props

import docgen from '@elastic/eui-docgen/dist/components/markdown_editor';

<PropTable definition={docgen.EuiMarkdownFormat} />
8 changes: 8 additions & 0 deletions packages/website/docs/components/forms/auto_refresh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,11 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/date_picker/auto_refresh';

<PropTable definition={docgen.EuiAutoRefresh} />
<PropTable definition={docgen.EuiAutoRefreshButton} />
<PropTable definition={docgen.EuiRefreshInterval} />
7 changes: 7 additions & 0 deletions packages/website/docs/components/forms/color_selection.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -760,3 +760,10 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/color_picker';

<PropTable definition={docgen.EuiColorPicker} />
<PropTable definition={docgen.EuiColorPalettePicker} />
6 changes: 6 additions & 0 deletions packages/website/docs/components/forms/combo_box.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2021,3 +2021,9 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/combo_box';

<PropTable definition={docgen.EuiComboBox} />
7 changes: 7 additions & 0 deletions packages/website/docs/components/forms/date_picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -675,3 +675,10 @@ import { css } from '@emotion/css';
};
```
</Demo>

## Props

import docgen from '@elastic/eui-docgen/dist/components/date_picker';

<PropTable definition={docgen.EuiDatePicker} />
<PropTable definition={docgen.EuiDatePickerRange} />
6 changes: 6 additions & 0 deletions packages/website/docs/components/forms/expression.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -616,3 +616,9 @@ export default () => (
</div>
);
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/expression';

<PropTable definition={docgen.EuiExpression} />
7 changes: 7 additions & 0 deletions packages/website/docs/components/forms/filter_group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -297,3 +297,10 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/filter_group';

<PropTable definition={docgen.EuiFilterGroup} />
<PropTable definition={docgen.EuiFilterButton} />
Original file line number Diff line number Diff line change
Expand Up @@ -966,3 +966,15 @@ export default () => (
</div>
);
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/form';

<PropTable definition={docgen.EuiFieldText} />
<PropTable definition={docgen.EuiFieldSearch} />
<PropTable definition={docgen.EuiFieldNumber} />
<PropTable definition={docgen.EuiFieldPassword} />
<PropTable definition={docgen.EuiSelect} />
<PropTable definition={docgen.EuiTextArea} />
<PropTable definition={docgen.EuiFilePicker} />
Original file line number Diff line number Diff line change
Expand Up @@ -901,3 +901,11 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/form';

<PropTable definition={docgen.EuiForm} />
<PropTable definition={docgen.EuiFormRow} />
<PropTable definition={docgen.EuiDescribedFormGroup} />
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,10 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/form';

<PropTable definition={docgen.EuiForm} />
<PropTable definition={docgen.EuiFormRow} />
7 changes: 7 additions & 0 deletions packages/website/docs/components/forms/inline_edit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -402,3 +402,10 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/inline_edit';

<PropTable definition={docgen.EuiInlineEditText} />
<PropTable definition={docgen.EuiInlineEditTitle} />
7 changes: 7 additions & 0 deletions packages/website/docs/components/forms/range_sliders.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -707,3 +707,10 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/form';

<PropTable definition={docgen.EuiRange} />
<PropTable definition={docgen.EuiDualRange} />
7 changes: 7 additions & 0 deletions packages/website/docs/components/forms/search_bar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1061,3 +1061,10 @@ export default () => {
};

```

## Props

import docgen from '@elastic/eui-docgen/dist/components/search_bar';

<PropTable definition={docgen.EuiSearchBar} />
<PropTable definition={docgen.EuiSearchBarFilters} />
7 changes: 7 additions & 0 deletions packages/website/docs/components/forms/selectable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1121,3 +1121,10 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/selectable';

<PropTable definition={docgen.EuiSelectable} />
<PropTable definition={docgen.EuiSelectableMessage} />
Original file line number Diff line number Diff line change
Expand Up @@ -397,3 +397,14 @@ export default () => (
</EuiFormFieldset>
);
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/form';

<PropTable definition={docgen.EuiCheckbox} />
<PropTable definition={docgen.EuiCheckboxGroup} />
<PropTable definition={docgen.EuiRadio} />
<PropTable definition={docgen.EuiRadioGroup} />
<PropTable definition={docgen.EuiSwitch} />
<PropTable definition={docgen.EuiFormFieldset} />
6 changes: 6 additions & 0 deletions packages/website/docs/components/forms/super_select.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,9 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/form';

<PropTable definition={docgen.EuiSuperSelect} />
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ export default () => {

## Props

import docgen from '@elastic/eui-docgen/dist/components/pagination';
import paginationDocgen from '@elastic/eui-docgen/dist/components/pagination';
import tableDocgen from '@elastic/eui-docgen/dist/components/table';

<PropTable definition={docgen.EuiPagination} />

<PropTable definition={docgen.EuiPaginationButton} />
<PropTable definition={paginationDocgen.EuiPagination} />
<PropTable definition={paginationDocgen.EuiPaginationButton} />
<PropTable definition={tableDocgen.EuiTablePagination} />
6 changes: 4 additions & 2 deletions packages/website/docs/components/navigation/tree_view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ export default () => {

## Props

import docgen from '@elastic/eui-docgen/dist/components/tree_view';
import treeViewDocgen from '@elastic/eui-docgen/dist/components/tree_view';
import treeViewItemDocgen from '@elastic/eui-docgen/dist/components/tree_view/tree_view_item';

<PropTable definition={docgen.EuiTreeView} />
<PropTable definition={treeViewDocgen.EuiTreeView} />
<PropTable definition={treeViewItemDocgen.EuiTreeViewItem} />
weronikaolejniczak marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -1024,3 +1024,9 @@ export default () => {
};

```

## Props

import docgen from '@elastic/eui-docgen/dist/components/basic_table';

<PropTable definition={docgen.EuiInMemoryTable} />
21 changes: 21 additions & 0 deletions packages/website/docs/components/tabular_content/tables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2989,3 +2989,24 @@ export default class extends Component<{}, State> {
}

```

## Props

import basicTableDocgen from '@elastic/eui-docgen/dist/components/basic_table';
import tableDocgen from '@elastic/eui-docgen/dist/components/table';

<PropTable definition={basicTableDocgen.EuiBasicTable} />
<PropTable definition={tableDocgen.EuiTable} />
<PropTable definition={tableDocgen.EuiTableBody} />
<PropTable definition={tableDocgen.EuiTableFooter} />
<PropTable definition={tableDocgen.EuiTableFooterCell} />
<PropTable definition={tableDocgen.EuiTableHeader} />
<PropTable definition={tableDocgen.EuiTableHeaderCell} />
<PropTable definition={tableDocgen.EuiTableHeaderCellCheckbox} />
<PropTable definition={tableDocgen.EuiTablePagination} />
<PropTable definition={tableDocgen.EuiTableRow} />
<PropTable definition={tableDocgen.EuiTableRowCell} />
<PropTable definition={tableDocgen.EuiTableRowCellCheckbox} />
<PropTable definition={tableDocgen.EuiTableSortMobile} />
<PropTable definition={tableDocgen.EuiTableSortMobileItem} />
<PropTable definition={tableDocgen.EuiTableHeaderMobile} />
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,9 @@ export default ({
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/page_template';

<PropTable definition={docgen.EuiPageTemplate} />
Original file line number Diff line number Diff line change
Expand Up @@ -433,3 +433,9 @@ import { SitewideOption } from './sitewide_option';
:::note
The demo shows how you can temporarily replace the icon for a subset of options to display a short list of recently viewed options.
:::

## Props

import docgen from '@elastic/eui-docgen/dist/components/selectable';

<PropTable definition={docgen.EuiSelectableTemplateSitewide} />
Original file line number Diff line number Diff line change
Expand Up @@ -805,3 +805,9 @@ export default () => {
);
};
```

## Props

import docgen from '@elastic/eui-docgen/dist/components/date_picker';

<PropTable definition={docgen.EuiSuperDatePicker} />
Loading