@telicent-oss/ds 0.19.0 → 0.19.1

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/dist/ds.js CHANGED
@@ -57791,6 +57791,7 @@ const MiniSearchAutocomplete = forwardRef(function Autocomplete3(props, ref) {
57791
57791
  progressProps,
57792
57792
  renderOption,
57793
57793
  onSearch,
57794
+ onKeyDown,
57794
57795
  freeSolo = true,
57795
57796
  ...autocompleteProps
57796
57797
  } = props;
@@ -57816,7 +57817,7 @@ const MiniSearchAutocomplete = forwardRef(function Autocomplete3(props, ref) {
57816
57817
  }
57817
57818
  }, inputProps: getInputProps(), size: "small", type: "search", sx: {
57818
57819
  width: 360
57819
- }, id: id2, name, error, endAdornment: /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(FlexBox, { direction: "row", spacing: 0.5, children: [
57820
+ }, id: id2, onKeyDown, name, error, endAdornment: /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(FlexBox, { direction: "row", spacing: 0.5, children: [
57820
57821
  loading ? /* @__PURE__ */ jsx$1(CircularProgress, { id: "loading", size: "20px", ...progressProps }) : /* @__PURE__ */ jsx$1(IconButton2, { size: "small", onClick: onSearch, "aria-label": "search", children: /* @__PURE__ */ jsx$1(SearchIcon, { fontSize: "inherit" }) }),
57821
57822
  endIcon
57822
57823
  ] }) }), placeholder: placeholder || "Search" }),
package/dist/ds.umd.cjs CHANGED
@@ -57809,6 +57809,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
57809
57809
  progressProps,
57810
57810
  renderOption,
57811
57811
  onSearch,
57812
+ onKeyDown,
57812
57813
  freeSolo = true,
57813
57814
  ...autocompleteProps
57814
57815
  } = props;
@@ -57834,7 +57835,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
57834
57835
  }
57835
57836
  }, inputProps: getInputProps(), size: "small", type: "search", sx: {
57836
57837
  width: 360
57837
- }, id: id2, name, error, endAdornment: /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(FlexBox, { direction: "row", spacing: 0.5, children: [
57838
+ }, id: id2, onKeyDown, name, error, endAdornment: /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(FlexBox, { direction: "row", spacing: 0.5, children: [
57838
57839
  loading ? /* @__PURE__ */ jsx$1(CircularProgress, { id: "loading", size: "20px", ...progressProps }) : /* @__PURE__ */ jsx$1(IconButton, { size: "small", onClick: onSearch, "aria-label": "search", children: /* @__PURE__ */ jsx$1(SearchIcon, { fontSize: "inherit" }) }),
57839
57840
  endIcon
57840
57841
  ] }) }), placeholder: placeholder || "Search" }),
@@ -51,6 +51,12 @@ export interface MiniSearchAutocompleteProps<Value extends AutocompleteOption =
51
51
  * `(event: React.MouseEvent<HTMLButtonElement>) => void;`
52
52
  */
53
53
  onSearch?: React.MouseEventHandler<HTMLButtonElement>;
54
+ /**
55
+ * Callback fired when the a key is pressed
56
+ *
57
+ * `(event: React.KeyboardEvent<HTMLButtonElement>) => void;`
58
+ */
59
+ onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
54
60
  }
55
61
  declare const MiniSearchAutocomplete: React.ForwardRefExoticComponent<MiniSearchAutocompleteProps<AutocompleteOption, boolean, boolean, boolean> & React.RefAttributes<HTMLDivElement>>;
56
62
  export default MiniSearchAutocomplete;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/telicent-oss/telicent-ds.git"
8
8
  },
9
9
  "type": "module",
10
- "version": "0.19.0",
10
+ "version": "0.19.1",
11
11
  "private": false,
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.10.6",