@linzjs/lui 16.2.3 → 16.2.4

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
+ ## [16.2.4](https://github.com/linz/lui/compare/v16.2.3...v16.2.4) (2022-03-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * wrong type for mandatory ([#639](https://github.com/linz/lui/issues/639)) ([f6fdffa](https://github.com/linz/lui/commit/f6fdffa936345fe701e32e709dc9e185290997d7))
7
+
1
8
  ## [16.2.3](https://github.com/linz/lui/compare/v16.2.2...v16.2.3) (2022-03-28)
2
9
 
3
10
 
@@ -8,6 +8,6 @@ export interface LuiCheckboxProps {
8
8
  error?: string;
9
9
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
10
10
  className?: string;
11
- mandatory?: string;
11
+ mandatory?: boolean;
12
12
  }
13
13
  export declare const LuiCheckboxInput: (props: LuiCheckboxProps) => JSX.Element;
package/dist/index.js CHANGED
@@ -890,7 +890,7 @@ var LuiCheckboxInput = function (props) {
890
890
  'LuiCheckboxInput--isDisabled': !!props.isDisabled,
891
891
  }, props.className) },
892
892
  React__default["default"].createElement("label", { htmlFor: id, className: "LuiCheckboxInput-group" },
893
- props.mandatory && (React__default["default"].createElement("span", { className: "LuiCheckboxInput-mandatory" }, "*")),
893
+ props.mandatory && (React__default["default"].createElement("span", { "aria-label": "Required", className: "LuiCheckboxInput-mandatory" }, "*")),
894
894
  React__default["default"].createElement("input", __assign({ className: clsx('LuiCheckboxInput-input'), id: id, type: "checkbox", value: props.value, onChange: props.onChange, checked: props.isChecked, disabled: props.isDisabled }, props.inputProps)),
895
895
  React__default["default"].createElement("span", { className: "LuiCheckboxInput-label" },
896
896
  props.label,