@hyphen/hyphen-components 2.16.1 → 2.16.3

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.
@@ -29,6 +29,10 @@ export interface SelectInputProps {
29
29
  * The value(s) of select.
30
30
  */
31
31
  value: any | any[];
32
+ /**
33
+ * Options for dropdown list.
34
+ */
35
+ options: SelectInputOptions | AsyncOptions;
32
36
  /**
33
37
  * Autofocus select input on render.
34
38
  */
@@ -50,6 +54,10 @@ export interface SelectInputProps {
50
54
  * Visually hide the label.
51
55
  */
52
56
  hideLabel?: boolean;
57
+ /**
58
+ * Load the input asynchronously.
59
+ */
60
+ isAsync?: boolean;
53
61
  /**
54
62
  * If the input value is clearable programmatically.
55
63
  */
@@ -2009,7 +2009,8 @@ var Drawer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2009
2009
  }
2010
2010
  }, React.createElement(Box, {
2011
2011
  "aria-label": ariaLabel,
2012
- "aria-labelledby": ariaLabelledBy
2012
+ "aria-labelledby": ariaLabelledBy,
2013
+ height: "100%"
2013
2014
  }, renderHeader(), content)))));
2014
2015
  });
2015
2016
 
@@ -2303,14 +2304,15 @@ function SelectInput(props) {
2303
2304
  }));
2304
2305
  };
2305
2306
  var Component = isCreatable && isAsync ? AsyncCreatableSelect : isCreatable ? CreatableSelect : isAsync ? AsyncSelect : Select;
2306
- return React.createElement(Box, {
2307
- width: "100%",
2308
- className: wrapperClasses
2309
- }, label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label), React.createElement(Component, _extends({}, restProps, isAsync ? {
2307
+ var selectOptions = isAsync ? {
2310
2308
  loadOptions: options
2311
2309
  } : {
2312
2310
  options: options
2313
- }, {
2311
+ };
2312
+ return React.createElement(Box, {
2313
+ width: "100%",
2314
+ className: wrapperClasses
2315
+ }, label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label), React.createElement(Component, _extends({}, restProps, selectOptions, {
2314
2316
  inputId: id,
2315
2317
  "aria-label": label,
2316
2318
  components: {