@homebound/beam 2.313.3 → 2.313.5
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.
|
@@ -66,7 +66,7 @@ function memoizedTableStyles() {
|
|
|
66
66
|
presentationSettings: { borderless: true, typeScale: "xs", wrap: rowHeight === "flexible" },
|
|
67
67
|
levels: grouped ? groupedLevels : defaultLevels,
|
|
68
68
|
rowHoverColor: Css_1.Palette.Blue100,
|
|
69
|
-
keptGroupRowCss: Css_1.Css.bgYellow100.gray900.xsMd.$,
|
|
69
|
+
keptGroupRowCss: Css_1.Css.bgYellow100.gray900.xsMd.df.aic.$,
|
|
70
70
|
keptLastRowCss: Css_1.Css.boxShadow("inset 0px -14px 8px -11px rgba(63,63,63,.18)").$,
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -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:
|
|
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) {
|