@linzjs/lui 17.8.0 → 17.8.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.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +3 -2
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [17.8.1](https://github.com/linz/lui/compare/v17.8.0...v17.8.1) (2022-08-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* SwitchButtonBugFixing ([#714](https://github.com/linz/lui/issues/714)) ([3bf8018](https://github.com/linz/lui/commit/3bf80185707752a1ae9cfebf53415cefa5b74d84))
|
|
7
|
+
|
|
1
8
|
# [17.8.0](https://github.com/linz/lui/compare/v17.7.0...v17.8.0) (2022-08-05)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.js
CHANGED
|
@@ -32869,9 +32869,10 @@ var css_248z = ".lui-switch-checkbox {\n height: 0;\n width: 0;\n visibility:
|
|
|
32869
32869
|
styleInject(css_248z);
|
|
32870
32870
|
|
|
32871
32871
|
var LuiSwitchButton = function (props) {
|
|
32872
|
+
var generatedId = useGenerateOrDefaultId();
|
|
32872
32873
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
32873
|
-
React__default["default"].createElement("input", __assign({ className: "lui-switch-checkbox",
|
|
32874
|
-
React__default["default"].createElement("label", { "data-testid": "label", style: { background: props.checked ? '#007198' : 'gray' }, className: "lui-switch-label", htmlFor:
|
|
32874
|
+
React__default["default"].createElement("input", __assign({ className: "lui-switch-checkbox", type: "checkbox", "data-testid": 'lui-switch-new', id: generatedId }, props)),
|
|
32875
|
+
React__default["default"].createElement("label", { "data-testid": "label", style: { background: props.checked ? '#007198' : 'gray' }, className: "lui-switch-label", htmlFor: generatedId },
|
|
32875
32876
|
React__default["default"].createElement("span", { className: "lui-switch-button" }))));
|
|
32876
32877
|
};
|
|
32877
32878
|
|