Skip to content

Commit

Permalink
fix(website): add missing props tables
Browse files Browse the repository at this point in the history
  • Loading branch information
weronikaolejniczak committed Nov 8, 2024
1 parent b937ece commit 535fff7
Show file tree
Hide file tree
Showing 27 changed files with 196 additions and 10 deletions.
7 changes: 7 additions & 0 deletions packages/website/docs/components/editors_and_syntax/code.mdx
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 @@ -416,3 +416,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 @@ -2022,3 +2022,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 @@ -665,3 +665,10 @@ export default () => {
);
};
```

## 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} />
12 changes: 12 additions & 0 deletions packages/website/docs/components/forms/form_controls/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -988,3 +988,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 @@ -1063,3 +1063,10 @@ export const SearchBarFilters = () => {
};

```

## 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} />
6 changes: 4 additions & 2 deletions packages/website/docs/components/navigation/breadcrumbs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ export default () => {

## Props

import docgen from '@elastic/eui-docgen/dist/components/breadcrumbs';
import breadcrumbDocgen from '@elastic/eui-docgen/dist/components/breadcrumbs/breadcrumb';
import breadcrumbsDocgen from '@elastic/eui-docgen/dist/components/breadcrumbs';

<PropTable definition={docgen.EuiBreadcrumbs} />
<PropTable definition={breadcrumbDocgen.EuiBreadcrumb} />
<PropTable definition={breadcrumbsDocgen.EuiBreadcrumbs} />
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} />
8 changes: 6 additions & 2 deletions packages/website/docs/components/navigation/side_nav.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ export default () => {

## Props

import docgen from '@elastic/eui-docgen/dist/components/side_nav';
import sideNavDocgen from '@elastic/eui-docgen/dist/components/side_nav';
import sideNavHeadingDocgen from '@elastic/eui-docgen/dist/components/side_nav/_side_nav_heading';
import sideNavItemDocgen from '@elastic/eui-docgen/dist/components/side_nav/side_nav_item';

<PropTable definition={docgen.EuiSideNav} />
<PropTable definition={sideNavDocgen.EuiSideNav} />
<PropTable definition={sideNavHeadingDocgen.EuiSideNavHeading} />
<PropTable definition={sideNavItemDocgen.EuiSideNavItem} />
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} />
Original file line number Diff line number Diff line change
Expand Up @@ -1277,3 +1277,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 @@ -3222,3 +3222,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 @@ -773,3 +773,9 @@ export default () => {
);
};
```

## Props

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

<PropTable definition={docgen.EuiSuperDatePicker} />

0 comments on commit 535fff7

Please sign in to comment.