@snack-uikit/chips 0.23.2 → 0.23.3
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.23.3 (2025-01-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **PREBILLING-000:** opened the filter type export in ChipChoiceRow ([f7d0bd9](https://github.com/cloud-ru-tech/snack-uikit/commit/f7d0bd9aafe9013e50e80185d3bf58b176bcc681))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.23.2 (2024-12-26)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
package/README.md
CHANGED
|
@@ -296,7 +296,7 @@ import { PlaceholderSVG } from '@snack-uikit/icons';
|
|
|
296
296
|
### Props
|
|
297
297
|
| name | type | default value | description |
|
|
298
298
|
|------|------|---------------|-------------|
|
|
299
|
-
| filters* | `
|
|
299
|
+
| filters* | `ChipChoiceRowFilter[]` | - | Массив чипов |
|
|
300
300
|
| value | `FiltersState` | - | Состояние фильтров |
|
|
301
301
|
| defaultValue | `Partial<TState>` | - | Начальное состояние фильтров |
|
|
302
302
|
| onChange | `(filters: TState) => void` | - | Колбек изменения состояния фильтров |
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WithSupportProps } from '@snack-uikit/utils';
|
|
2
2
|
import { ChipChoiceProps, ChipChoiceRowSize, OmitBetter } from './types';
|
|
3
3
|
export type FiltersState = Record<string, unknown>;
|
|
4
|
+
export type ChipChoiceRowFilter = OmitBetter<ChipChoiceProps, 'onChange' | 'value' | 'size' | 'defaultValue'>;
|
|
4
5
|
export type ChipChoiceRowProps<TState extends FiltersState> = WithSupportProps<{
|
|
5
6
|
/** Состояние фильтров */
|
|
6
7
|
value?: TState;
|
|
@@ -9,7 +10,7 @@ export type ChipChoiceRowProps<TState extends FiltersState> = WithSupportProps<{
|
|
|
9
10
|
/** Колбек изменения состояния фильтров */
|
|
10
11
|
onChange?(filters: TState): void;
|
|
11
12
|
/** Массив чипов */
|
|
12
|
-
filters:
|
|
13
|
+
filters: ChipChoiceRowFilter[];
|
|
13
14
|
/** Размер @default 's' */
|
|
14
15
|
size?: ChipChoiceRowSize;
|
|
15
16
|
/** CSS-класс */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WithSupportProps } from '@snack-uikit/utils';
|
|
2
2
|
import { ChipChoiceProps, ChipChoiceRowSize, OmitBetter } from './types';
|
|
3
3
|
export type FiltersState = Record<string, unknown>;
|
|
4
|
+
export type ChipChoiceRowFilter = OmitBetter<ChipChoiceProps, 'onChange' | 'value' | 'size' | 'defaultValue'>;
|
|
4
5
|
export type ChipChoiceRowProps<TState extends FiltersState> = WithSupportProps<{
|
|
5
6
|
/** Состояние фильтров */
|
|
6
7
|
value?: TState;
|
|
@@ -9,7 +10,7 @@ export type ChipChoiceRowProps<TState extends FiltersState> = WithSupportProps<{
|
|
|
9
10
|
/** Колбек изменения состояния фильтров */
|
|
10
11
|
onChange?(filters: TState): void;
|
|
11
12
|
/** Массив чипов */
|
|
12
|
-
filters:
|
|
13
|
+
filters: ChipChoiceRowFilter[];
|
|
13
14
|
/** Размер @default 's' */
|
|
14
15
|
size?: ChipChoiceRowSize;
|
|
15
16
|
/** CSS-класс */
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Chips",
|
|
7
|
-
"version": "0.23.
|
|
7
|
+
"version": "0.23.3",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@snack-uikit/locale": "*"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "ba3f9cd111868431a1df6a20e0d9de99054bc317"
|
|
58
58
|
}
|
|
@@ -14,6 +14,8 @@ import { ChipChoiceProps, ChipChoiceRowSize, FilterValue, OmitBetter } from './t
|
|
|
14
14
|
|
|
15
15
|
export type FiltersState = Record<string, unknown>;
|
|
16
16
|
|
|
17
|
+
export type ChipChoiceRowFilter = OmitBetter<ChipChoiceProps, 'onChange' | 'value' | 'size' | 'defaultValue'>;
|
|
18
|
+
|
|
17
19
|
export type ChipChoiceRowProps<TState extends FiltersState> = WithSupportProps<{
|
|
18
20
|
/** Состояние фильтров */
|
|
19
21
|
value?: TState;
|
|
@@ -22,7 +24,7 @@ export type ChipChoiceRowProps<TState extends FiltersState> = WithSupportProps<{
|
|
|
22
24
|
/** Колбек изменения состояния фильтров */
|
|
23
25
|
onChange?(filters: TState): void;
|
|
24
26
|
/** Массив чипов */
|
|
25
|
-
filters:
|
|
27
|
+
filters: ChipChoiceRowFilter[];
|
|
26
28
|
/** Размер @default 's' */
|
|
27
29
|
size?: ChipChoiceRowSize;
|
|
28
30
|
/** CSS-класс */
|