@linzjs/lui 16.2.1 → 16.2.2
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.2](https://github.com/linz/lui/compare/v16.2.1...v16.2.2) (2022-03-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Adding conditional class name ([#636](https://github.com/linz/lui/issues/636)) ([5bd6858](https://github.com/linz/lui/commit/5bd6858d8d579622ba23aac64a27e8b4c7d1ae79))
|
|
7
|
+
|
|
1
8
|
## [16.2.1](https://github.com/linz/lui/compare/v16.2.0...v16.2.1) (2022-03-23)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.js
CHANGED
|
@@ -867,7 +867,7 @@ function useGenerateOrDefaultId(idFromProps) {
|
|
|
867
867
|
var LuiTextInput = function (props) {
|
|
868
868
|
var _a;
|
|
869
869
|
var id = useGenerateOrDefaultId((_a = props.inputProps) === null || _a === void 0 ? void 0 : _a.id);
|
|
870
|
-
return (React__default["default"].createElement("div", { className: clsx('LuiTextInput', props.error && 'hasError') },
|
|
870
|
+
return (React__default["default"].createElement("div", { className: clsx('LuiTextInput', props.error && 'hasError', props.className) },
|
|
871
871
|
React__default["default"].createElement("label", { className: 'LuiTextInput-label', htmlFor: id },
|
|
872
872
|
props.mandatory && React__default["default"].createElement("span", { className: "LuiTextInput-mandatory" }, "*"),
|
|
873
873
|
React__default["default"].createElement("span", { className: 'LuiTextInput-label-text ' +
|