Skip to content

Commit

Permalink
feat: remove type of IId
Browse files Browse the repository at this point in the history
  • Loading branch information
vapersmile committed Dec 12, 2023
1 parent ee4fe21 commit 2473063
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
10 changes: 5 additions & 5 deletions docs/components/01-breadcrumbs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

## Props

| Name | Type | Default | Description |
| -------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| children <Required/> | `ReactNode` | - | Elements inserted after the Breadcrumbs on the same row |
| separator | `string` | `<svg fill ="none" height ="14" viewBox ="0 0 14 14" width ="14" xmlns ="http://www.w3.org/2000/svg" > <path d ="M5.25 10.5L8.75 7L5.25 3.5" stroke ="#0B7285" strokeLinecap ="round" strokeLinejoin ="round" /> </svg>` | The `string` or SVG used as a separator between each level |
| ... | - | - | extends [Breadcrumbs props](https://v6.mantine.dev/core/breadcrumbs/?t=props) |
| Name | Type | Default | Description |
| -------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| children <Required/> | `ReactNode` | - | Elements inserted after the Breadcrumbs on the same row |
| separator | `string` | <svg fill ="none" height ="14" viewBox ="0 0 14 14" width ="14" xmlns ="http://www.w3.org/2000/svg" > <path d ="M5.25 10.5L8.75 7L5.25 3.5" stroke ="#0B7285" strokeLinecap ="round" strokeLinejoin ="round" /> </svg> | The `string` or SVG used as a separator between each level |
| ... | - | - | extends [Breadcrumbs props](https://v6.mantine.dev/core/breadcrumbs/?t=props) |
10 changes: 2 additions & 8 deletions docs/components/01-filtersBar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
| -------------------------- | -------------------------------------------------------- | ------------------ | --------------------------------------------------- |
| activeFilters | [`ISidebarFilter[]`](#isidebarfilter) | `[]` | Array of active filter values |
| defaultOpenedActiveFilters | `booleane` | `true` | Define if collapse of active filters tags is opened |
| defaultOpenedMenuIds | `IId[]` | `[]` | Default collapse menu opened |
| defaultOpenedMenuIds | `number \| string` | `[]` | Default collapse menu opened |
| deleteButtonLabel | `string` | `"Remove all"` | Label of button that removes all active filters |
| filterButtonLabel | `string` | `"Filter"` | Label of submit button |
| menus | [`IFiltersItem<string \| number>[]`](#ifiltersitem) | `[]` | Array of nested menus containing filters |
Expand All @@ -46,14 +46,8 @@

| Attribute | Type | Description |
| ---------- | ---------------------------------- | --------------------------------- |
| categoryId | `IId[]` | Array of parents ids in the menus |
| categoryId | `(number \| string)[]` | Array of parents ids in the menus |
| id | `number \| string` | Nested array of menus |
| label | `string` | Filter(s) contained in the menu |
| onRemove | `(filter: ISidebarFilter) => void` | Filter(s) contained in the menu |
| value | `unknown` | Filter(s) contained in the menu |

### `IId`

| type |
| ------------------ |
| `number \| string` |

0 comments on commit 2473063

Please sign in to comment.