@snack-uikit/chips 0.13.4 → 0.14.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
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.14.0 (2024-05-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **PDS-135:** support list api update ([57a20c3](https://github.com/cloud-ru-tech/snack-uikit/commit/57a20c303fd7778706bd4a1b322c070e6b0422bb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.13.4 (2024-05-08)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
|
@@ -3,7 +3,7 @@ export function kindFlattenOptions({ options, }) {
|
|
|
3
3
|
const flattenOptions = {};
|
|
4
4
|
function flatten(option) {
|
|
5
5
|
if (isBaseOption(option)) {
|
|
6
|
-
const { value, label, contentRenderProps, disabled, afterContent, beforeContent } = option;
|
|
6
|
+
const { value, label, contentRenderProps, disabled, afterContent, beforeContent, hidden } = option;
|
|
7
7
|
flattenOptions[value] = {
|
|
8
8
|
value,
|
|
9
9
|
label,
|
|
@@ -11,6 +11,7 @@ export function kindFlattenOptions({ options, }) {
|
|
|
11
11
|
disabled,
|
|
12
12
|
afterContent,
|
|
13
13
|
beforeContent,
|
|
14
|
+
hidden,
|
|
14
15
|
};
|
|
15
16
|
return;
|
|
16
17
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Chips",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.14.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@snack-uikit/calendar": "0.7.9",
|
|
37
37
|
"@snack-uikit/dropdown": "0.2.2",
|
|
38
38
|
"@snack-uikit/icons": "0.21.0",
|
|
39
|
-
"@snack-uikit/list": "0.
|
|
39
|
+
"@snack-uikit/list": "0.12.0",
|
|
40
40
|
"@snack-uikit/loaders": "0.5.2",
|
|
41
41
|
"@snack-uikit/utils": "3.3.0",
|
|
42
42
|
"classnames": "2.3.2",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@snack-uikit/locale": "*"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "a308f550fb12d114a27d9b7d6804c212a316a09d"
|
|
54
54
|
}
|
|
@@ -10,6 +10,7 @@ export type FlattenOption<T extends ContentRenderProps = ContentRenderProps> = {
|
|
|
10
10
|
label: ItemId;
|
|
11
11
|
contentRenderProps?: T;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
+
hidden?: boolean;
|
|
13
14
|
afterContent?: ReactNode;
|
|
14
15
|
beforeContent?: ReactNode;
|
|
15
16
|
};
|
|
@@ -27,7 +28,7 @@ export function kindFlattenOptions<T extends ContentRenderProps = ContentRenderP
|
|
|
27
28
|
|
|
28
29
|
function flatten(option: FilterOption<T>) {
|
|
29
30
|
if (isBaseOption<T>(option)) {
|
|
30
|
-
const { value, label, contentRenderProps, disabled, afterContent, beforeContent } = option;
|
|
31
|
+
const { value, label, contentRenderProps, disabled, afterContent, beforeContent, hidden } = option;
|
|
31
32
|
|
|
32
33
|
flattenOptions[value] = {
|
|
33
34
|
value,
|
|
@@ -36,6 +37,7 @@ export function kindFlattenOptions<T extends ContentRenderProps = ContentRenderP
|
|
|
36
37
|
disabled,
|
|
37
38
|
afterContent,
|
|
38
39
|
beforeContent,
|
|
40
|
+
hidden,
|
|
39
41
|
};
|
|
40
42
|
|
|
41
43
|
return;
|