@mezzanine-ui/react 0.13.7 → 0.13.9

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.
@@ -110,6 +110,7 @@ const AutoComplete = forwardRef(function Select(props, ref) {
110
110
  const newOption = (_a = onInsert === null || onInsert === void 0 ? void 0 : onInsert(insertText)) !== null && _a !== void 0 ? _a : null;
111
111
  if (newOption) {
112
112
  setInsertText('');
113
+ setSearchText('');
113
114
  onChange(newOption);
114
115
  }
115
116
  }
@@ -1,12 +1,12 @@
1
- export interface SelectValue {
2
- id: string;
1
+ export interface SelectValue<T = string> {
2
+ id: T;
3
3
  name: string;
4
4
  }
5
- export interface TreeSelectOption extends SelectValue {
5
+ export interface TreeSelectOption<T = string> extends SelectValue<T> {
6
6
  dynamicChildrenFetching?: boolean;
7
- siblings?: TreeSelectOption[];
7
+ siblings?: TreeSelectOption<T>[];
8
8
  }
9
- export interface SelectControl {
10
- value: SelectValue[] | SelectValue | null;
11
- onChange: (v: SelectValue | null) => SelectValue[] | SelectValue | null;
9
+ export interface SelectControl<T = string> {
10
+ value: SelectValue<T>[] | SelectValue<T> | null;
11
+ onChange: (v: SelectValue<T> | null) => SelectValue<T>[] | SelectValue<T> | null;
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mezzanine-ui/react",
3
- "version": "0.13.7",
3
+ "version": "0.13.9",
4
4
  "description": "React components for mezzanine-ui",
5
5
  "author": "Mezzanine",
6
6
  "repository": {
@@ -31,9 +31,9 @@
31
31
  "react-dom": "^18.2.0"
32
32
  },
33
33
  "dependencies": {
34
- "@mezzanine-ui/core": "^0.13.7",
35
- "@mezzanine-ui/icons": "^0.13.7",
36
- "@mezzanine-ui/system": "^0.13.7",
34
+ "@mezzanine-ui/core": "^0.13.9",
35
+ "@mezzanine-ui/icons": "^0.13.9",
36
+ "@mezzanine-ui/system": "^0.13.9",
37
37
  "@popperjs/core": "^2.11.6",
38
38
  "@types/react-transition-group": "^4.4.5",
39
39
  "clsx": "^1.2.1",