@linzjs/lui 17.53.0 → 17.54.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [17.54.0](https://github.com/linz/lui/compare/v17.53.0...v17.54.0) (2023-05-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * **LuiSelectInput:** Implement the disabled flag for select options ([#939](https://github.com/linz/lui/issues/939)) ([a38b7bc](https://github.com/linz/lui/commit/a38b7bc869dac8f70264e1781d82a50313e13c89))
7
+
1
8
  # [17.53.0](https://github.com/linz/lui/compare/v17.52.3...v17.53.0) (2023-05-05)
2
9
 
3
10
 
package/dist/index.js CHANGED
@@ -28306,7 +28306,10 @@ var LuiSelectInput = function (props) {
28306
28306
  React__default["default"].createElement("div", { className: "LuiSelect-wrapper" },
28307
28307
  React__default["default"].createElement("select", __assign({ name: id, id: id, onChange: props.onChange, value: props.value, className: "LuiSelect-select" }, props.selectProps),
28308
28308
  props.placeholderText && (React__default["default"].createElement("option", { value: "", disabled: true }, props.placeholderText)),
28309
- props.options.map(function (selection) { return (React__default["default"].createElement("option", { key: selection.value, value: selection.value }, selection.label)); })),
28309
+ props.options.map(function (selection) {
28310
+ return selection.disabled === true ? (React__default["default"].createElement("option", { key: selection.value, value: selection.value, disabled: true }, selection.label)) : (React__default["default"].createElement("option", { key: selection.value, value: selection.value }, selection.label));
28311
+ }),
28312
+ ")"),
28310
28313
  React__default["default"].createElement(LuiIcon, { alt: 'Error', name: "ic_keyboard_arrow_down", className: "LuiSelect-chevron-icon", size: "md" })),
28311
28314
  props.error && (React__default["default"].createElement("span", { className: "LuiSelect-error" },
28312
28315
  React__default["default"].createElement(LuiIcon, { alt: 'Error', name: "ic_error", className: "LuiSelect-error-icon", size: "sm", status: "error" }),