@synerise/ds-search 1.2.5 → 1.2.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,14 @@
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
+ ## [1.2.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.5...@synerise/ds-search@1.2.6) (2025-07-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-search
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.2.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.4...@synerise/ds-search@1.2.5) (2025-07-17)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-search
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ListProps } from 'react-window';
3
2
  type ListPropsEnhanced = Partial<ListProps> & {
4
3
  scrollTop?: number;
@@ -1,3 +1,3 @@
1
- export declare const getAllElementsFiltered: (data: object[] | undefined | null, value: string, elementTextLookupKey: string) => object[];
2
- export declare const hasSomeElementFiltered: (data: object[] | undefined | null, currentValue: string, elementTextLookupKey: string) => boolean;
1
+ export declare const getAllElementsFiltered: <T extends object>(data: T[] | undefined | null, value: string, elementTextLookupKey: keyof T) => object[];
2
+ export declare const hasSomeElementFiltered: <T extends object>(data: T[] | undefined | null, currentValue: string, elementTextLookupKey: keyof T) => boolean;
3
3
  export declare const hasSomeElement: (data: Record<string, unknown>[] | undefined) => boolean;
@@ -1,10 +1,10 @@
1
1
  export declare const openDropdownAnimation: import("styled-components").Keyframes;
2
2
  export declare const SearchInputWrapper: import("styled-components").StyledComponent<"div", any, {
3
- width?: number | undefined;
3
+ width?: number;
4
4
  }, never>;
5
5
  export declare const SearchWrapper: import("styled-components").StyledComponent<"div", any, {
6
- width?: number | undefined;
7
- inputOpen?: boolean | undefined;
6
+ width?: number;
7
+ inputOpen?: boolean;
8
8
  }, never>;
9
9
  export declare const LeftSide: import("styled-components").StyledComponent<"span", any, {
10
10
  isOpen: boolean;
@@ -14,12 +14,12 @@ export declare const Icon: import("styled-components").StyledComponent<"div", an
14
14
  export declare const Label: import("styled-components").StyledComponent<"div", any, {}, never>;
15
15
  export declare const SearchButton: import("styled-components").StyledComponent<"div", any, {
16
16
  isOpen: boolean;
17
- clickable?: boolean | undefined;
18
- inputFocused?: boolean | undefined;
17
+ clickable?: boolean;
18
+ inputFocused?: boolean;
19
19
  }, never>;
20
20
  export declare const SearchInner: import("styled-components").StyledComponent<"div", any, {
21
21
  hasValue: boolean;
22
- alwaysHighlight?: boolean | undefined;
22
+ alwaysHighlight?: boolean;
23
23
  }, never>;
24
24
  export declare const SearchInputContent: import("styled-components").StyledComponent<"div", any, {
25
25
  offset: number;
@@ -27,7 +27,7 @@ export declare const SearchInputContent: import("styled-components").StyledCompo
27
27
  }, never>;
28
28
  export declare const ClearButton: import("styled-components").StyledComponent<"div", any, {}, never>;
29
29
  export declare const SearchDropdownContent: import("styled-components").StyledComponent<"div", any, {
30
- isOpen?: boolean | undefined;
30
+ isOpen?: boolean;
31
31
  maxHeight: number;
32
32
  }, never>;
33
33
  export declare const MenuHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -11,10 +11,10 @@ export type DataSetProps = {
11
11
  visibleRows?: number;
12
12
  listProps?: Partial<ListProps>;
13
13
  };
14
- export type SearchLookupConfig = {
15
- parameters: string;
16
- recent: string;
17
- suggestions: string;
14
+ export type SearchLookupConfig<T extends AnyObject, U extends AnyObject> = {
15
+ parameters: keyof U;
16
+ recent: keyof T;
17
+ suggestions: keyof T;
18
18
  };
19
19
  export type SearchProps<T extends AnyObject, U extends AnyObject> = {
20
20
  clearTooltip: string;
@@ -34,7 +34,7 @@ export type SearchProps<T extends AnyObject, U extends AnyObject> = {
34
34
  style?: React.CSSProperties;
35
35
  suggestions?: T[] | null;
36
36
  suggestionsDisplayProps?: DataSetProps | null;
37
- textLookupConfig: SearchLookupConfig;
37
+ textLookupConfig: SearchLookupConfig<T, U>;
38
38
  value: string;
39
39
  width?: number;
40
40
  hideLabel?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-search",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Search UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,12 +34,12 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^1.4.5",
38
- "@synerise/ds-icon": "^1.6.1",
39
- "@synerise/ds-menu": "^1.0.17",
40
- "@synerise/ds-scrollbar": "^1.1.4",
41
- "@synerise/ds-tooltip": "^1.1.14",
42
- "@synerise/ds-utils": "^1.3.1",
37
+ "@synerise/ds-button": "^1.4.6",
38
+ "@synerise/ds-icon": "^1.6.2",
39
+ "@synerise/ds-menu": "^1.0.18",
40
+ "@synerise/ds-scrollbar": "^1.1.5",
41
+ "@synerise/ds-tooltip": "^1.1.15",
42
+ "@synerise/ds-utils": "^1.4.0",
43
43
  "react-onclickoutside": "^6.9.0",
44
44
  "react-window": "^1.8.5"
45
45
  },
@@ -49,5 +49,5 @@
49
49
  "react": ">=16.9.0 <= 18.3.1",
50
50
  "styled-components": "^5.3.3"
51
51
  },
52
- "gitHead": "4e851d649cb25346f2f8e0575dde91cc50f43bc4"
52
+ "gitHead": "b35b1875727156fe9f5b3bad55aed5ca447c8c8d"
53
53
  }