@synerise/ds-item-filter 1.0.68 → 1.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +23 -20
  3. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.69](https://github.com/Synerise/synerise-design/compare/@synerise/ds-item-filter@1.0.68...@synerise/ds-item-filter@1.0.69) (2026-03-20)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-item-filter
9
+
6
10
  ## [1.0.68](https://github.com/Synerise/synerise-design/compare/@synerise/ds-item-filter@1.0.67...@synerise/ds-item-filter@1.0.68) (2026-03-09)
7
11
 
8
12
  **Note:** Version bump only for package @synerise/ds-item-filter
package/README.md CHANGED
@@ -28,7 +28,7 @@ import ItemFilter from '@synerise/ds-item-filter'
28
28
  duplicateItem={(props) => {}}
29
29
  selectedItemId="0001"
30
30
  categories={CATEGORIES}
31
- items={ITEMS}
31
+ fetchData={(category) => {}}
32
32
  />
33
33
 
34
34
  ```
@@ -45,15 +45,17 @@ import ItemFilter from '@synerise/ds-item-filter'
45
45
  | -------------- | ------------------------------------------------------------------------------- | ---------------------------------------- | --------- |
46
46
  | visible | Whether the ItemFilter is visible or not. | boolean | `false` |
47
47
  | hide | Specify a callback that will be called when a user clicks mask or close button. | () => void | - |
48
- | removeItem | Specify a callback that will be called when a user removes list item | (`{ id: string }`) =>void | - |
49
- | editItem | Specify a callback that will be called when a user change name of list item | (`{ id: string, name: string }`) => void | - |
50
- | duplicateItem | Specify a callback that will be called when a user duplicates list item | (`{ id: string }`) => void | - |
51
- | selectItem | Specify a callback that will be called when a user select list item | (`{ id: string }`) => void | - |
48
+ | removeItem | Specify a callback that will be called when a user removes list item | (`{ id: ReactText }`) => void | - |
49
+ | editItem | Specify a callback that will be called when a user change name of list item | (`{ id: ReactText, name: string }`) => void | - |
50
+ | duplicateItem | Specify a callback that will be called when a user duplicates list item | (`{ id: ReactText }`) => void | - |
51
+ | selectItem | Specify a callback that will be called when a user select list item | (`{ id: ReactText }`) => void | - |
52
52
  | categories | Array of categories | Category[] | [] |
53
- | selectedItemId | Id of selected item | string | undefined |
53
+ | selectedItemId | Id of selected item | `string \| undefined` | undefined |
54
54
  | texts | Object contains texts for buttons, title, confirms etc. | Texts | - |
55
- | maxToShowItems | Shows x first items, rest are hidden under `show more` button | number | 200 |
56
- | search | Whether the search input is availabla | number | 200 |
55
+ | maxToShowItems | Accepted in type but not implemented has no effect | `number` | - |
56
+ | search | Optional search config; renders a SearchBar when provided | `{ onChange: (value: string) => void; onClear: () => void; value: string }` | - |
57
+ | fetchData | Callback invoked by infinite-scroll when more items are needed | `(category: Category) => void` | - |
58
+ | loading | Whether the list is in a loading state | `boolean` | - |
57
59
 
58
60
  #### Search
59
61
 
@@ -75,23 +77,24 @@ import ItemFilter from '@synerise/ds-item-filter'
75
77
 
76
78
  | Property | Description | Type | Default |
77
79
  | ------------- | --------------------------------------- | ------- | ------- |
78
- | id | Id of item | string | - |
79
- | canUpdate? | Whether the item can be edited | boolean | `false` |
80
- | canDelete? | Whether the item can be deleted | boolean | `false` |
81
- | canDuplicate? | Whether the item can be duplicated | boolean | `false` |
82
- | name | Name of item | string | - |
83
- | description? | Description of item | string | - |
84
- | user | Object contains informations about user | User | - |
85
- | created | Item creation timestamp | string | - |
80
+ | id | Id of item | `string \| number` (`ReactText`) | - |
81
+ | canUpdate? | Whether the item can be edited | `boolean` | - |
82
+ | canDelete? | Whether the item can be deleted | `boolean` | - |
83
+ | canDuplicate? | Whether the item can be duplicated | `boolean` | - |
84
+ | name | Name of item | `string` | - |
85
+ | description? | Description of item | `string` | - |
86
+ | user? | Object contains information about user | `User` | - |
87
+ | created? | Item creation timestamp | `string` | - |
88
+ | categories | Category labels the item belongs to | `string[]` | - |
86
89
 
87
90
  #### User
88
91
 
89
92
  | Property | Description | Type | Default |
90
93
  | ---------- | ----------- | ------ | ------- |
91
- | avatar_url | Link avatar | string | - |
92
- | firstname | First name | string | - |
93
- | lastname | Last name | string | - |
94
- | email | Email | string | - |
94
+ | avatar_url? | Link to avatar image | `string` | - |
95
+ | firstname? | First name | `string` | - |
96
+ | lastname? | Last name | `string` | - |
97
+ | email? | Email address | `string` | - |
95
98
 
96
99
  #### Texts
97
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-item-filter",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "ItemFilter UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,15 +35,15 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-button": "^1.5.16",
39
- "@synerise/ds-drawer": "^1.1.0",
40
- "@synerise/ds-icon": "^1.14.1",
41
- "@synerise/ds-manageable-list": "^1.7.10",
42
- "@synerise/ds-result": "^1.0.47",
43
- "@synerise/ds-scrollbar": "^1.2.15",
44
- "@synerise/ds-search-bar": "^1.4.18",
45
- "@synerise/ds-tabs": "^1.1.22",
46
- "@synerise/ds-typography": "^1.1.11",
38
+ "@synerise/ds-button": "^1.5.17",
39
+ "@synerise/ds-drawer": "^1.1.1",
40
+ "@synerise/ds-icon": "^1.15.0",
41
+ "@synerise/ds-manageable-list": "^1.7.11",
42
+ "@synerise/ds-result": "^1.0.48",
43
+ "@synerise/ds-scrollbar": "^1.2.16",
44
+ "@synerise/ds-search-bar": "^1.4.19",
45
+ "@synerise/ds-tabs": "^1.1.23",
46
+ "@synerise/ds-typography": "^1.1.12",
47
47
  "react-window": "^1.8.11"
48
48
  },
49
49
  "peerDependencies": {
@@ -52,5 +52,5 @@
52
52
  "react-intl": ">=3.12.0 <= 6.8",
53
53
  "styled-components": "^5.3.3"
54
54
  },
55
- "gitHead": "8dfafc5d7278f09d430f1e7499782d05c76b47c0"
55
+ "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
56
56
  }