@snack-uikit/table 0.37.14 → 0.37.16-preview-67a824e7.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,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
+ ## <small>0.37.15 (2025-11-14)</small>
7
+
8
+ ### Only dependencies have been changed
9
+ * [@snack-uikit/chips@0.28.8](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/chips/CHANGELOG.md)
10
+ * [@snack-uikit/list@0.32.7](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/list/CHANGELOG.md)
11
+ * [@snack-uikit/toolbar@0.14.10](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/toolbar/CHANGELOG.md)
12
+ * [@snack-uikit/truncate-string@0.7.4](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/truncate-string/CHANGELOG.md)
13
+
14
+
15
+
16
+
17
+
6
18
  ## <small>0.37.14 (2025-11-06)</small>
7
19
 
8
20
  ### Only dependencies have been changed
@@ -1 +1,6 @@
1
- export declare const onSearchDebounced: import("lodash").DebouncedFunc<(newValue: string, onChange: (newValue: string) => void) => void>;
1
+ import debounce from 'lodash.debounce';
2
+ type ChangeHandler = (newValue: string) => void;
3
+ type SearchHandler = (newValue: string, onChange: ChangeHandler) => void;
4
+ type OnSearchDebouncedType = ReturnType<typeof debounce<SearchHandler>>;
5
+ export declare const onSearchDebounced: OnSearchDebouncedType;
6
+ export {};
@@ -1,12 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { IconPredefinedProps } from '@snack-uikit/icon-predefined';
3
- export type EmptyStateProps = {
4
- title?: string;
5
- description?: string;
6
- icon?: Pick<IconPredefinedProps, 'icon' | 'decor' | 'appearance'>;
7
- footer?: ReactNode;
8
- className?: string;
9
- };
1
+ import { InfoBlockProps } from '@snack-uikit/info-block';
2
+ export type EmptyStateProps = Pick<InfoBlockProps, 'title' | 'description' | 'icon' | 'footer' | 'className'>;
10
3
  export type TableEmptyState = {
11
4
  emptyStates: {
12
5
  noDataState: EmptyStateProps;
@@ -1 +1,6 @@
1
- export declare const onSearchDebounced: import("lodash").DebouncedFunc<(newValue: string, onChange: (newValue: string) => void) => void>;
1
+ import debounce from 'lodash.debounce';
2
+ type ChangeHandler = (newValue: string) => void;
3
+ type SearchHandler = (newValue: string, onChange: ChangeHandler) => void;
4
+ type OnSearchDebouncedType = ReturnType<typeof debounce<SearchHandler>>;
5
+ export declare const onSearchDebounced: OnSearchDebouncedType;
6
+ export {};
@@ -1,12 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { IconPredefinedProps } from '@snack-uikit/icon-predefined';
3
- export type EmptyStateProps = {
4
- title?: string;
5
- description?: string;
6
- icon?: Pick<IconPredefinedProps, 'icon' | 'decor' | 'appearance'>;
7
- footer?: ReactNode;
8
- className?: string;
9
- };
1
+ import { InfoBlockProps } from '@snack-uikit/info-block';
2
+ export type EmptyStateProps = Pick<InfoBlockProps, 'title' | 'description' | 'icon' | 'footer' | 'className'>;
10
3
  export type TableEmptyState = {
11
4
  emptyStates: {
12
5
  noDataState: EmptyStateProps;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Table",
7
- "version": "0.37.14",
7
+ "version": "0.37.16-preview-67a824e7.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -42,17 +42,16 @@
42
42
  "@dnd-kit/sortable": "10.0.0",
43
43
  "@dnd-kit/utilities": "3.2.2",
44
44
  "@snack-uikit/button": "0.19.16",
45
- "@snack-uikit/chips": "0.28.7",
46
- "@snack-uikit/icon-predefined": "0.7.10",
45
+ "@snack-uikit/chips": "0.28.8",
47
46
  "@snack-uikit/icons": "0.27.3",
48
47
  "@snack-uikit/info-block": "0.6.33",
49
- "@snack-uikit/list": "0.32.6",
48
+ "@snack-uikit/list": "0.32.7",
50
49
  "@snack-uikit/pagination": "0.10.20",
51
50
  "@snack-uikit/scroll": "0.10.5",
52
51
  "@snack-uikit/skeleton": "0.6.9",
53
52
  "@snack-uikit/toggles": "0.13.22",
54
- "@snack-uikit/toolbar": "0.14.9",
55
- "@snack-uikit/truncate-string": "0.7.3",
53
+ "@snack-uikit/toolbar": "0.14.10",
54
+ "@snack-uikit/truncate-string": "0.7.4",
56
55
  "@snack-uikit/typography": "0.8.11",
57
56
  "@snack-uikit/utils": "4.0.0",
58
57
  "@tanstack/match-sorter-utils": "8.11.8",
@@ -66,5 +65,5 @@
66
65
  "peerDependencies": {
67
66
  "@snack-uikit/locale": "*"
68
67
  },
69
- "gitHead": "6b989b5fe57383ddf2bd6c1186bf4e1652633da7"
68
+ "gitHead": "6174e78c6ab0eed7b840cbcb4ba94122b2ef8b0b"
70
69
  }
@@ -2,6 +2,11 @@ import debounce from 'lodash.debounce';
2
2
 
3
3
  import { SEARCH_DELAY } from './constants';
4
4
 
5
- export const onSearchDebounced = debounce((newValue: string, onChange: (newValue: string) => void) => {
5
+ type ChangeHandler = (newValue: string) => void;
6
+ type SearchHandler = (newValue: string, onChange: ChangeHandler) => void;
7
+
8
+ type OnSearchDebouncedType = ReturnType<typeof debounce<SearchHandler>>;
9
+
10
+ export const onSearchDebounced: OnSearchDebouncedType = debounce((newValue, onChange) => {
6
11
  onChange(newValue);
7
12
  }, SEARCH_DELAY);
@@ -1,17 +1,8 @@
1
- import { ReactNode } from 'react';
2
-
3
- import { IconPredefinedProps } from '@snack-uikit/icon-predefined';
4
- import { InfoBlock } from '@snack-uikit/info-block';
1
+ import { InfoBlock, InfoBlockProps } from '@snack-uikit/info-block';
5
2
 
6
3
  import styles from './styles.module.scss';
7
4
 
8
- export type EmptyStateProps = {
9
- title?: string;
10
- description?: string;
11
- icon?: Pick<IconPredefinedProps, 'icon' | 'decor' | 'appearance'>;
12
- footer?: ReactNode;
13
- className?: string;
14
- };
5
+ export type EmptyStateProps = Pick<InfoBlockProps, 'title' | 'description' | 'icon' | 'footer' | 'className'>;
15
6
 
16
7
  export type TableEmptyState = {
17
8
  emptyStates: {