@synerise/ds-item-filter 0.7.5 → 0.7.6

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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
+ ## [0.7.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-item-filter@0.7.5...@synerise/ds-item-filter@0.7.6) (2021-12-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **item-filter:** updates readme, export types ([3e6ceb9](https://github.com/Synerise/synerise-design/commit/3e6ceb9cd6d3467942c1cd7eccc6ddab25f58c39))
12
+ * **table:** fixes returned data by on change selection function ([151e195](https://github.com/Synerise/synerise-design/commit/151e195b8bb6d37f9fdede12aaa569b56ba97e82))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [0.7.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-item-filter@0.7.4...@synerise/ds-item-filter@0.7.5) (2021-12-01)
7
19
 
8
20
  **Note:** Version bump only for package @synerise/ds-item-filter
package/README.md CHANGED
@@ -49,7 +49,6 @@ import ItemFilter from '@synerise/ds-item-filter'
49
49
  | editItem | Specify a callback that will be called when a user change name of list item | (`{ id: string, name: string }`) => void | - |
50
50
  | duplicateItem | Specify a callback that will be called when a user duplicates list item | (`{ id: string }`) => void | - |
51
51
  | selectItem | Specify a callback that will be called when a user select list item | (`{ id: string }`) => void | - |
52
- | items | Array of list items | Item[] | [] |
53
52
  | categories | Array of categories | Category[] | [] |
54
53
  | selectedItemId | Id of selected item | string | undefined |
55
54
  | texts | Object contains texts for buttons, title, confirms etc. | Texts | - |
@@ -117,7 +117,7 @@ var ItemFilter = function ItemFilter(_ref) {
117
117
  }
118
118
 
119
119
  return 0;
120
- }) : category.items
120
+ }) : category.items || []
121
121
  });
122
122
  }, [categories, activeTab, selectedItemId]);
123
123
 
@@ -130,7 +130,9 @@ var ItemFilter = function ItemFilter(_ref) {
130
130
  onSelect: selectItem,
131
131
  onUpdate: editItem,
132
132
  onRemove: removeItem,
133
- onDuplicate: duplicateItem,
133
+ onDuplicate: duplicateItem // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
134
+ // @ts-ignore
135
+ ,
134
136
  item: item,
135
137
  selected: item.id === selectedItemId,
136
138
  searchQuery: search == null ? void 0 : search.value,
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { default } from './ItemFilter';
2
+ export * from './ItemFilter.types';
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
- export { default } from './ItemFilter';
1
+ export { default } from './ItemFilter';
2
+ export * from './ItemFilter.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-item-filter",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "ItemFilter UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -36,11 +36,11 @@
36
36
  "@synerise/ds-drawer": "^0.5.4",
37
37
  "@synerise/ds-dropdown": "^0.17.4",
38
38
  "@synerise/ds-icon": "^0.46.2",
39
- "@synerise/ds-manageable-list": "^0.21.5",
39
+ "@synerise/ds-manageable-list": "^0.21.6",
40
40
  "@synerise/ds-result": "^0.6.2",
41
41
  "@synerise/ds-scrollbar": "^0.4.2",
42
42
  "@synerise/ds-search-bar": "^0.5.2",
43
- "@synerise/ds-tabs": "^0.12.4",
43
+ "@synerise/ds-tabs": "^0.12.5",
44
44
  "@synerise/ds-typography": "^0.12.2",
45
45
  "react-window": "^1.8.5"
46
46
  },
@@ -48,5 +48,5 @@
48
48
  "@synerise/ds-core": "*",
49
49
  "react": ">=16.9.0 < 17.0.0"
50
50
  },
51
- "gitHead": "bb2277982fe50eba6d21afa9961fcdd3f213f398"
51
+ "gitHead": "dd78d8abea639d2d77cf841f8b41a1382cf8d827"
52
52
  }