@synerise/ds-item-filter 0.9.9 → 0.10.0
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 +19 -0
- package/dist/ItemFilter.d.ts +10 -10
- package/dist/ItemFilter.js +3 -7
- package/dist/modules.d.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.10.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-item-filter@0.9.10...@synerise/ds-item-filter@0.10.0) (2025-01-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.9.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-item-filter@0.9.9...@synerise/ds-item-filter@0.9.10) (2025-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-item-filter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.9.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-item-filter@0.9.8...@synerise/ds-item-filter@0.9.9) (2025-01-15)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-item-filter
|
package/dist/ItemFilter.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: React.FC<import("react-intl").WithIntlProps<{
|
|
3
|
+
search?: {
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onClear: () => void;
|
|
6
|
+
value: string;
|
|
7
|
+
} | undefined;
|
|
3
8
|
intl: import("react-intl").IntlShape;
|
|
4
9
|
visible: boolean;
|
|
5
10
|
hide: () => void;
|
|
@@ -23,16 +28,16 @@ declare const _default: React.FC<import("react-intl").WithIntlProps<{
|
|
|
23
28
|
categories: import("./ItemFilter.types").Category[];
|
|
24
29
|
fetchData: (category: import("./ItemFilter.types").Category) => void;
|
|
25
30
|
loading?: boolean | undefined;
|
|
26
|
-
search?: {
|
|
27
|
-
onChange: (value: string) => void;
|
|
28
|
-
onClear: () => void;
|
|
29
|
-
value: string;
|
|
30
|
-
} | undefined;
|
|
31
31
|
maxToShowItems?: number | undefined;
|
|
32
32
|
} & {
|
|
33
33
|
theme?: any;
|
|
34
34
|
}>> & {
|
|
35
35
|
WrappedComponent: React.ComponentType<{
|
|
36
|
+
search?: {
|
|
37
|
+
onChange: (value: string) => void;
|
|
38
|
+
onClear: () => void;
|
|
39
|
+
value: string;
|
|
40
|
+
} | undefined;
|
|
36
41
|
intl: import("react-intl").IntlShape;
|
|
37
42
|
visible: boolean;
|
|
38
43
|
hide: () => void;
|
|
@@ -56,11 +61,6 @@ declare const _default: React.FC<import("react-intl").WithIntlProps<{
|
|
|
56
61
|
categories: import("./ItemFilter.types").Category[];
|
|
57
62
|
fetchData: (category: import("./ItemFilter.types").Category) => void;
|
|
58
63
|
loading?: boolean | undefined;
|
|
59
|
-
search?: {
|
|
60
|
-
onChange: (value: string) => void;
|
|
61
|
-
onClear: () => void;
|
|
62
|
-
value: string;
|
|
63
|
-
} | undefined;
|
|
64
64
|
maxToShowItems?: number | undefined;
|
|
65
65
|
} & {
|
|
66
66
|
theme?: any;
|
package/dist/ItemFilter.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
5
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
2
|
import React from 'react';
|
|
7
3
|
import { withTheme } from 'styled-components';
|
|
8
4
|
import { injectIntl } from 'react-intl';
|
|
@@ -101,7 +97,7 @@ var ItemFilter = function ItemFilter(_ref) {
|
|
|
101
97
|
};
|
|
102
98
|
var activeCategory = React.useMemo(function () {
|
|
103
99
|
var category = categories[activeTab];
|
|
104
|
-
return
|
|
100
|
+
return _extends({}, category, {
|
|
105
101
|
items: selectedItemId ? [].concat(category.items).sort(function (a, b) {
|
|
106
102
|
if (a.id === selectedItemId) {
|
|
107
103
|
return -1;
|
|
@@ -126,7 +122,7 @@ var ItemFilter = function ItemFilter(_ref) {
|
|
|
126
122
|
item: item,
|
|
127
123
|
selected: item.id === selectedItemId,
|
|
128
124
|
searchQuery: search == null ? void 0 : search.value,
|
|
129
|
-
style:
|
|
125
|
+
style: _extends({}, style, {
|
|
130
126
|
height: parseFloat(style.height) - FILTER_ITEM_MARGIN_BOTTOM,
|
|
131
127
|
top: parseFloat(style.top) + 24
|
|
132
128
|
})
|
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@testing-library/jest-dom
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-item-filter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "ItemFilter UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^0.
|
|
38
|
-
"@synerise/ds-drawer": "^0.
|
|
39
|
-
"@synerise/ds-icon": "^0.
|
|
40
|
-
"@synerise/ds-manageable-list": "^0.
|
|
41
|
-
"@synerise/ds-result": "^0.
|
|
42
|
-
"@synerise/ds-scrollbar": "^0.
|
|
43
|
-
"@synerise/ds-search-bar": "^0.
|
|
44
|
-
"@synerise/ds-tabs": "^0.
|
|
45
|
-
"@synerise/ds-typography": "^0.
|
|
46
|
-
"@synerise/ds-utils": "^0.
|
|
37
|
+
"@synerise/ds-button": "^0.23.0",
|
|
38
|
+
"@synerise/ds-drawer": "^0.7.0",
|
|
39
|
+
"@synerise/ds-icon": "^0.71.0",
|
|
40
|
+
"@synerise/ds-manageable-list": "^0.30.0",
|
|
41
|
+
"@synerise/ds-result": "^0.8.0",
|
|
42
|
+
"@synerise/ds-scrollbar": "^0.12.0",
|
|
43
|
+
"@synerise/ds-search-bar": "^0.8.0",
|
|
44
|
+
"@synerise/ds-tabs": "^0.18.0",
|
|
45
|
+
"@synerise/ds-typography": "^0.17.0",
|
|
46
|
+
"@synerise/ds-utils": "^0.32.0",
|
|
47
47
|
"react-window": "^1.8.5"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@synerise/ds-core": "*",
|
|
51
|
-
"react": ">=16.9.0 <=
|
|
51
|
+
"react": ">=16.9.0 <= 18.3.1",
|
|
52
52
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
53
|
-
"styled-components": "5.
|
|
53
|
+
"styled-components": "^5.3.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "fbde34e126b492edaf148e469ab96247a891d6df"
|
|
56
56
|
}
|