@synerise/ds-context-selector 0.19.9 → 0.19.11
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 +16 -0
- package/dist/ContextSelector.types.d.ts +10 -10
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.19.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@0.19.10...@synerise/ds-context-selector@0.19.11) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-context-selector
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.19.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@0.19.9...@synerise/ds-context-selector@0.19.10) (2023-09-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-context-selector
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.19.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@0.19.8...@synerise/ds-context-selector@0.19.9) (2023-09-21)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-context-selector
|
|
@@ -3,13 +3,13 @@ import { HandledEventsType } from '@synerise/ds-utils';
|
|
|
3
3
|
import { ItemSize } from '@synerise/ds-menu';
|
|
4
4
|
import { DropdownProps } from '@synerise/ds-dropdown/dist/Dropdown';
|
|
5
5
|
import type { FactorsProps } from '@synerise/ds-factors';
|
|
6
|
-
export
|
|
6
|
+
export type ContextTexts = {
|
|
7
7
|
buttonLabel: string;
|
|
8
8
|
searchPlaceholder: string;
|
|
9
9
|
loadingResults: string;
|
|
10
10
|
noResults: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ContextItem = {
|
|
13
13
|
id: ReactText | null;
|
|
14
14
|
name: string;
|
|
15
15
|
icon: ReactNode;
|
|
@@ -21,7 +21,7 @@ export declare type ContextItem = {
|
|
|
21
21
|
useCustomIcon?: boolean;
|
|
22
22
|
subtitle?: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type ContextGroup = {
|
|
25
25
|
id: ReactText;
|
|
26
26
|
name: string;
|
|
27
27
|
customSuffix?: ReactNode;
|
|
@@ -33,10 +33,10 @@ export declare type ContextGroup = {
|
|
|
33
33
|
subGroups?: ContextGroup[];
|
|
34
34
|
useCustomIcon?: boolean;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type ContextItemsInSubGroup = ContextItem & {
|
|
37
37
|
isGroup?: boolean;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type ContextProps = {
|
|
40
40
|
disabled?: boolean;
|
|
41
41
|
readOnly?: boolean;
|
|
42
42
|
defaultDropdownVisibility?: boolean;
|
|
@@ -67,7 +67,7 @@ export declare type ContextProps = {
|
|
|
67
67
|
errorText?: ReactNode | string;
|
|
68
68
|
getMenuEntryProps?: FactorsProps['getMenuEntryProps'];
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type ContextDropdownProps = {
|
|
71
71
|
setDropdownVisible: (show: boolean) => void;
|
|
72
72
|
setSelected: (val: ContextItem | ContextGroup) => void;
|
|
73
73
|
groups: ContextGroup[];
|
|
@@ -86,7 +86,7 @@ export declare type ContextDropdownProps = {
|
|
|
86
86
|
hasMoreItems?: boolean;
|
|
87
87
|
style?: CSSProperties;
|
|
88
88
|
};
|
|
89
|
-
export
|
|
89
|
+
export type ContextSelectorDropdownItemProps = {
|
|
90
90
|
item: ContextItem | ContextGroup;
|
|
91
91
|
searchQuery: string;
|
|
92
92
|
clearSearch?: () => void;
|
|
@@ -97,7 +97,7 @@ export declare type ContextSelectorDropdownItemProps = {
|
|
|
97
97
|
menuItemHeight?: ItemSize;
|
|
98
98
|
style?: CSSProperties;
|
|
99
99
|
};
|
|
100
|
-
export
|
|
100
|
+
export type ListItem = {
|
|
101
101
|
className: string;
|
|
102
102
|
item: ContextItem | ContextGroup;
|
|
103
103
|
searchQuery: string;
|
|
@@ -107,8 +107,8 @@ export declare type ListItem = {
|
|
|
107
107
|
clearSearch?: () => void;
|
|
108
108
|
hideDropdown?: () => void;
|
|
109
109
|
};
|
|
110
|
-
export
|
|
110
|
+
export type ListTitle = {
|
|
111
111
|
title?: string;
|
|
112
112
|
type?: string;
|
|
113
113
|
};
|
|
114
|
-
export
|
|
114
|
+
export type DropdownItemProps = ListTitle | ListItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-context-selector",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.11",
|
|
4
4
|
"description": "ContextSelector UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"test:watch": "npm run test -- --watchAll",
|
|
27
27
|
"types": "tsc --noEmit"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67",
|
|
30
30
|
"sideEffects": [
|
|
31
31
|
"dist/style/*",
|
|
32
32
|
"*.less"
|
|
33
33
|
],
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@synerise/ds-button": "^0.18.
|
|
37
|
-
"@synerise/ds-dropdown": "^0.17.
|
|
38
|
-
"@synerise/ds-factors": "^0.20.
|
|
39
|
-
"@synerise/ds-icon": "^0.58.
|
|
40
|
-
"@synerise/ds-information-card": "^0.3.
|
|
41
|
-
"@synerise/ds-loader": "^0.2.
|
|
42
|
-
"@synerise/ds-menu": "^0.17.
|
|
43
|
-
"@synerise/ds-result": "^0.6.
|
|
44
|
-
"@synerise/ds-scrollbar": "^0.6.
|
|
45
|
-
"@synerise/ds-tabs": "^0.13.
|
|
46
|
-
"@synerise/ds-utils": "^0.24.
|
|
36
|
+
"@synerise/ds-button": "^0.18.3",
|
|
37
|
+
"@synerise/ds-dropdown": "^0.17.81",
|
|
38
|
+
"@synerise/ds-factors": "^0.20.4",
|
|
39
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
40
|
+
"@synerise/ds-information-card": "^0.3.39",
|
|
41
|
+
"@synerise/ds-loader": "^0.2.45",
|
|
42
|
+
"@synerise/ds-menu": "^0.17.20",
|
|
43
|
+
"@synerise/ds-result": "^0.6.32",
|
|
44
|
+
"@synerise/ds-scrollbar": "^0.6.8",
|
|
45
|
+
"@synerise/ds-tabs": "^0.13.79",
|
|
46
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
47
47
|
"react-window": "1.8.5",
|
|
48
48
|
"uuid": "^8.3.2"
|
|
49
49
|
},
|