@amsterdam/amsterdam-react-final-form
Advanced tools
Comparing version 0.1.113 to 0.1.114
@@ -16,2 +16,3 @@ import React, { PropsWithChildren } from "react"; | ||
withEmptyOption?: boolean; | ||
emptyOptionLabel?: string; | ||
isRequired?: boolean; | ||
@@ -18,0 +19,0 @@ } & React.HTMLAttributes<HTMLSelectElement>; |
@@ -7,2 +7,3 @@ import React from "react"; | ||
withEmptyOption?: boolean; | ||
emptyOptionLabel?: string; | ||
} & ComposedFieldProps & React.InputHTMLAttributes<HTMLSelectElement>; | ||
@@ -9,0 +10,0 @@ /** |
@@ -36,6 +36,6 @@ "use strict"; | ||
var _b, _c, _d; | ||
var label = _a.label, extraLabel = _a.extraLabel, hint = _a.hint, options = _a.options, error = _a.error, position = _a.position, align = _a.align, withEmptyOption = _a.withEmptyOption, restProps = __rest(_a, ["label", "extraLabel", "hint", "options", "error", "position", "align", "withEmptyOption"]); | ||
var label = _a.label, extraLabel = _a.extraLabel, hint = _a.hint, options = _a.options, error = _a.error, position = _a.position, align = _a.align, withEmptyOption = _a.withEmptyOption, emptyOptionLabel = _a.emptyOptionLabel, restProps = __rest(_a, ["label", "extraLabel", "hint", "options", "error", "position", "align", "withEmptyOption", "emptyOptionLabel"]); | ||
return (react_1["default"].createElement(ComposedField_1["default"], { id: (_b = restProps.id) !== null && _b !== void 0 ? _b : restProps.name, label: label, extraLabel: extraLabel, hint: hint, error: error, position: position, align: align }, | ||
react_1["default"].createElement(asc_ui_1.Select, __assign({ error: error, id: (_c = restProps.id) !== null && _c !== void 0 ? _c : restProps.name, "data-e2e-id": (_d = restProps.id) !== null && _d !== void 0 ? _d : restProps.name }, restProps), | ||
withEmptyOption && react_1["default"].createElement("option", null, "-"), | ||
withEmptyOption && react_1["default"].createElement("option", null, emptyOptionLabel !== null && emptyOptionLabel !== void 0 ? emptyOptionLabel : "-"), | ||
Object.entries(options) | ||
@@ -42,0 +42,0 @@ .map(function (_a) { |
{ | ||
"name": "@amsterdam/amsterdam-react-final-form", | ||
"version": "0.1.113", | ||
"version": "0.1.114", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/amsterdam/amsterdam-react-final-form.git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150802
2863