@veritone-ce/design-system 1.12.41 → 1.12.42

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.
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  type Item = {
2
3
  label: string;
3
4
  value: string;
@@ -6,6 +7,7 @@ export type AutocompleteProps = {
6
7
  items: Item[];
7
8
  label: string;
8
9
  width: number;
10
+ onChange: (event: React.SyntheticEvent, value: Item | null) => void;
9
11
  };
10
- declare function ComboBox({ items, label, width }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
12
+ declare function ComboBox({ items, label, width, onChange }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
11
13
  export default ComboBox;
@@ -5,7 +5,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  function ComboBox(_ref) {
6
6
  var items = _ref.items,
7
7
  label = _ref.label,
8
- width = _ref.width;
8
+ width = _ref.width,
9
+ onChange = _ref.onChange;
9
10
  return /*#__PURE__*/_jsx(Autocomplete, {
10
11
  disablePortal: true,
11
12
  options: items,
@@ -16,7 +17,8 @@ function ComboBox(_ref) {
16
17
  return /*#__PURE__*/_jsx(TextField, _extends({}, params, {
17
18
  label: label
18
19
  }));
19
- }
20
+ },
21
+ onChange: onChange
20
22
  });
21
23
  }
22
24
  export default ComboBox;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritone-ce/design-system",
3
- "version": "1.12.41",
3
+ "version": "1.12.42",
4
4
  "private": false,
5
5
  "description": "Design System for Veritone CE",
6
6
  "keywords": [