From 24730637e2797656585fb63a5ed63799aab08913 Mon Sep 17 00:00:00 2001 From: vapersmile Date: Tue, 12 Dec 2023 11:46:46 +0100 Subject: [PATCH] feat: remove type of IId --- docs/components/01-breadcrumbs.mdx | 10 +++++----- docs/components/01-filtersBar.mdx | 10 ++-------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/docs/components/01-breadcrumbs.mdx b/docs/components/01-breadcrumbs.mdx index f9df392..596fb02 100644 --- a/docs/components/01-breadcrumbs.mdx +++ b/docs/components/01-breadcrumbs.mdx @@ -22,8 +22,8 @@ ## Props -| Name | Type | Default | Description | -| -------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| children | `ReactNode` | - | Elements inserted after the Breadcrumbs on the same row | -| separator | `string` | ` ` | 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 | `ReactNode` | - | Elements inserted after the Breadcrumbs on the same row | +| separator | `string` | | The `string` or SVG used as a separator between each level | +| ... | - | - | extends [Breadcrumbs props](https://v6.mantine.dev/core/breadcrumbs/?t=props) | diff --git a/docs/components/01-filtersBar.mdx b/docs/components/01-filtersBar.mdx index d155911..8adba65 100644 --- a/docs/components/01-filtersBar.mdx +++ b/docs/components/01-filtersBar.mdx @@ -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[]`](#ifiltersitem) | `[]` | Array of nested menus containing filters | @@ -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` |