@linzjs/lui 16.2.9 → 16.3.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
|
+
# [16.3.0](https://github.com/linz/lui/compare/v16.2.9...v16.3.0) (2022-05-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **LuiCheckboxInput:** Adds indeterminate state for checkbox ([#656](https://github.com/linz/lui/issues/656)) ([e55d806](https://github.com/linz/lui/commit/e55d8061e2d9e04fdde1c80fadca3c77bf9d7436))
|
|
7
|
+
|
|
1
8
|
## [16.2.9](https://github.com/linz/lui/compare/v16.2.8...v16.2.9) (2022-04-25)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -5,6 +5,7 @@ export interface LuiCheckboxProps {
|
|
|
5
5
|
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
6
|
isChecked: boolean;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
|
+
isIndeterminate?: boolean;
|
|
8
9
|
error?: string;
|
|
9
10
|
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
10
11
|
className?: string;
|
package/dist/index.js
CHANGED
|
@@ -900,8 +900,7 @@ var LuiCheckboxInput = function (props) {
|
|
|
900
900
|
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)),
|
|
901
901
|
React__default["default"].createElement("span", { className: "LuiCheckboxInput-label" },
|
|
902
902
|
props.label,
|
|
903
|
-
' ',
|
|
904
|
-
React__default["default"].createElement(LuiIcon, { name: "ic_check", size: "md", alt: "Check", className: "LuiCheckboxInput-labelCheck" }))),
|
|
903
|
+
React__default["default"].createElement(LuiIcon, { name: props.isIndeterminate ? 'ic_zoom_out' : 'ic_check', size: "md", alt: props.isIndeterminate ? 'Indeterminate Check' : 'Check', className: "LuiCheckboxInput-labelCheck" }))),
|
|
905
904
|
props.error && (React__default["default"].createElement(LuiError, { className: "LuiCheckboxInput", error: props.error }))));
|
|
906
905
|
};
|
|
907
906
|
|