allaw-ui 5.6.0 → 5.6.1
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.
|
@@ -4,12 +4,12 @@ import "../../../styles/global.css";
|
|
|
4
4
|
import Paragraph from "../../atoms/typography/Paragraph";
|
|
5
5
|
import Select from "../../atoms/selects/Select";
|
|
6
6
|
var SelectForm = function (_a) {
|
|
7
|
-
var label = _a.label, isRequired = _a.isRequired, options = _a.options, isMultiple = _a.isMultiple, _b = _a.
|
|
7
|
+
var label = _a.label, isRequired = _a.isRequired, options = _a.options, isMultiple = _a.isMultiple, _b = _a.placeholder, placeholder = _b === void 0 ? "Sélectionner une valeur" : _b, _c = _a.width, width = _c === void 0 ? 100 : _c, selectedItem = _a.selectedItem, maxItems = _a.maxItems, onChange = _a.onChange, _d = _a.variant, variant = _d === void 0 ? "medium" : _d, _e = _a.color, color = _e === void 0 ? "noir" : _e, _f = _a.isPrefilled, isPrefilled = _f === void 0 ? false : _f;
|
|
8
8
|
return (React.createElement("div", { className: "select-form" },
|
|
9
9
|
React.createElement(Paragraph, { variant: variant, color: color, text: React.createElement(React.Fragment, null,
|
|
10
10
|
label,
|
|
11
11
|
" ",
|
|
12
12
|
isRequired && React.createElement("span", { className: "select-form-required" }, "*")), size: "default" }),
|
|
13
|
-
React.createElement(Select, { items: options, multiple: isMultiple, isRequired: isRequired, width: width, placeholder:
|
|
13
|
+
React.createElement(Select, { items: options, multiple: isMultiple, isRequired: isRequired, width: width, placeholder: placeholder, selectedItem: selectedItem, maxItems: maxItems, onChange: onChange, isPrefilled: isPrefilled })));
|
|
14
14
|
};
|
|
15
15
|
export default SelectForm;
|