@hyphen/hyphen-components 2.16.2 → 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 +6 -5
- 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 +6 -5
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SelectInput/SelectInput.tsx +13 -1
|
@@ -2300,14 +2300,15 @@ function SelectInput(props) {
|
|
|
2300
2300
|
}));
|
|
2301
2301
|
};
|
|
2302
2302
|
var Component = isCreatable && isAsync ? AsyncCreatableSelect : isCreatable ? CreatableSelect : isAsync ? AsyncSelect : Select;
|
|
2303
|
-
|
|
2304
|
-
width: "100%",
|
|
2305
|
-
className: wrapperClasses
|
|
2306
|
-
}, label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label), React.createElement(Component, _extends({}, restProps, isAsync ? {
|
|
2303
|
+
var selectOptions = isAsync ? {
|
|
2307
2304
|
loadOptions: options
|
|
2308
2305
|
} : {
|
|
2309
2306
|
options: options
|
|
2310
|
-
}
|
|
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, {
|
|
2311
2312
|
inputId: id,
|
|
2312
2313
|
"aria-label": label,
|
|
2313
2314
|
components: {
|