Skip to content

Commit

Permalink
feat(1008): unify component options/items definiton (#1065)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek authored Oct 23, 2024
1 parent d3ea497 commit 16dfd09
Show file tree
Hide file tree
Showing 63 changed files with 3,563 additions and 2,003 deletions.
1 change: 0 additions & 1 deletion .scripts/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import path from 'path';

// Components to be ignored
const IGNORE = [
"FieldBody",
"SliderThumb",
"TableMobileSort",
"TablePagination",
Expand Down
90 changes: 43 additions & 47 deletions packages/docs/components/Autocomplete.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/docs/components/Dropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ sidebarDepth: 2
| mobileBreakpoint | | | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>dropdown: {<br>&nbsp;&nbsp;mobileBreakpoint: undefined<br>}</code> |
| mobileModal | | | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>dropdown: {<br>&nbsp;&nbsp;mobileModal: true<br>}</code> |
| v-model | | | - | |
| options | | | - | |
| override | | | - | |
| position | | | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>dropdown: {<br>&nbsp;&nbsp;position: "bottom-left"<br>}</code> |
| scrollable | | | - | <code style='white-space: nowrap; padding: 0;'>false</code> |
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/components/Sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
| fullheight | Show sidebar in fullheight | boolean | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;fullheight: false<br>}</code> |
| fullwidth | Show sidebar in fullwidth | boolean | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;fullwidth: false<br>}</code> |
| inline | Display the Sidebear inline | boolean | - | <code style='white-space: nowrap; padding: 0;'>false</code> |
| mobile | Custom layout on mobile | "fullwidth" \| "reduced" \| "hidden" | `fullwidth`, `reduced`, `hidden` | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;mobile: undefined<br>}</code> |
| mobile | Custom layout on mobile | "hidden" \| "fullwidth" \| "reduced" | `fullwidth`, `reduced`, `hidden` | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;mobile: undefined<br>}</code> |
| mobileBreakpoint | Mobile breakpoint as `max-width` value | string | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;mobileBreakpoint: undefined<br>}</code> |
| overlay | Show an overlay like modal | boolean | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;overlay: false<br>}</code> |
| override | Override existing theme classes completely | boolean | - | |
| position | Sidebar position | "bottom" \| "top" \| "left" \| "right" | `top`, `right`, `bottom`, `left` | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;position: "left"<br>}</code> |
| position | Sidebar position | "top" \| "bottom" \| "left" \| "right" | `top`, `right`, `bottom`, `left` | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;position: "left"<br>}</code> |
| props | Props to be binded to the injected component. | Record&lt;string, any&gt; | - | |
| reduce | Show a small sidebar | boolean | - | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;reduce: false<br>}</code> |
| scroll | Use `clip` to remove the body scrollbar, `keep` to have a non scrollable scrollbar to avoid shifting background,<br/>but will set body to position fixed, might break some layouts. | "keep" \| "clip" | `keep`, `clip` | <div><small>From <b>config</b>:</small></div><code style='white-space: nowrap; padding: 0;'>sidebar: {<br>&nbsp;&nbsp;scroll: "clip"<br>}</code> |
Expand Down
Loading

0 comments on commit 16dfd09

Please sign in to comment.