@homebound/beam 2.313.2 → 2.313.4

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.
@@ -13,7 +13,7 @@ const TextFieldBase_1 = require("./TextFieldBase");
13
13
  const Value_1 = require("./Value");
14
14
  function Autocomplete(props) {
15
15
  var _a, _b;
16
- const { onSelect, getOptionLabel, getOptionValue, getOptionMenuLabel, onInputChange, value, options, disabled, disabledOptions, ...others } = props;
16
+ const { onSelect, getOptionLabel, getOptionValue, getOptionMenuLabel, onInputChange, value = "", options, disabled, disabledOptions, ...others } = props;
17
17
  const disabledOptionsWithReasons = Object.fromEntries((_a = disabledOptions === null || disabledOptions === void 0 ? void 0 : disabledOptions.map(ComboBoxBase_1.disabledOptionToKeyedTuple)) !== null && _a !== void 0 ? _a : []);
18
18
  const comboBoxProps = {
19
19
  isDisabled: !!disabled,
@@ -23,7 +23,7 @@ function Autocomplete(props) {
23
23
  items: options,
24
24
  // Allow the user to type in a value that is not in the list. Allows for the text to stay in the input when the user clicks away
25
25
  allowsCustomValue: true,
26
- children: (item) => ((0, jsx_runtime_1.jsx)(react_stately_1.Item, { textValue: getOptionValue(item), children: getOptionMenuLabel ? getOptionMenuLabel(item) : getOptionLabel(item) }, getOptionValue(item))),
26
+ children: (item) => ((0, jsx_runtime_1.jsx)(react_stately_1.Item, { textValue: getOptionLabel(item), children: getOptionMenuLabel ? getOptionMenuLabel(item) : getOptionLabel(item) }, getOptionValue(item))),
27
27
  onSelectionChange: (key) => {
28
28
  const selectedItem = options.find((i) => getOptionValue(i) === key);
29
29
  if (selectedItem) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.313.2",
3
+ "version": "2.313.4",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -43,6 +43,7 @@
43
43
  "fast-deep-equal": "^3.1.3",
44
44
  "framer-motion": "^9.0.4",
45
45
  "memoize-one": "^5.2.1",
46
+ "mobx-utils": "^6.0.8",
46
47
  "react-aria": "^3.26.0",
47
48
  "react-day-picker": "8.0.7",
48
49
  "react-popper": "^2.3.0",
@@ -116,7 +117,6 @@
116
117
  "jest-watch-typeahead": "^2.2.2",
117
118
  "mobx": "^6.8.0",
118
119
  "mobx-react": "^7.6.0",
119
- "mobx-utils": "^6.0.8",
120
120
  "prettier": "^2.8.4",
121
121
  "prettier-plugin-organize-imports": "^3.2.2",
122
122
  "react": "^18.2.0",