@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.
- package/dist/components/SelectInput/SelectInput.d.ts +8 -0
- package/dist/hyphen-components.cjs.development.js +8 -6
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +8 -6
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Drawer/Drawer.tsx +5 -1
- package/src/components/SelectInput/SelectInput.tsx +13 -1
|
@@ -2005,7 +2005,8 @@ var Drawer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
}, React.createElement(Box, {
|
|
2007
2007
|
"aria-label": ariaLabel,
|
|
2008
|
-
"aria-labelledby": ariaLabelledBy
|
|
2008
|
+
"aria-labelledby": ariaLabelledBy,
|
|
2009
|
+
height: "100%"
|
|
2009
2010
|
}, renderHeader(), content)))));
|
|
2010
2011
|
});
|
|
2011
2012
|
|
|
@@ -2299,14 +2300,15 @@ function SelectInput(props) {
|
|
|
2299
2300
|
}));
|
|
2300
2301
|
};
|
|
2301
2302
|
var Component = isCreatable && isAsync ? AsyncCreatableSelect : isCreatable ? CreatableSelect : isAsync ? AsyncSelect : Select;
|
|
2302
|
-
|
|
2303
|
-
width: "100%",
|
|
2304
|
-
className: wrapperClasses
|
|
2305
|
-
}, label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label), React.createElement(Component, _extends({}, restProps, isAsync ? {
|
|
2303
|
+
var selectOptions = isAsync ? {
|
|
2306
2304
|
loadOptions: options
|
|
2307
2305
|
} : {
|
|
2308
2306
|
options: options
|
|
2309
|
-
}
|
|
2307
|
+
};
|
|
2308
|
+
return React.createElement(Box, {
|
|
2309
|
+
width: "100%",
|
|
2310
|
+
className: wrapperClasses
|
|
2311
|
+
}, label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label), React.createElement(Component, _extends({}, restProps, selectOptions, {
|
|
2310
2312
|
inputId: id,
|
|
2311
2313
|
"aria-label": label,
|
|
2312
2314
|
components: {
|