@linzjs/lui 16.2.2 → 16.2.5
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 +21 -0
- package/dist/components/LuiBanner/LuiBanner.d.ts +3 -3
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.d.ts +1 -0
- package/dist/components/LuiStaticMessage/LuiStaticMessage.d.ts +5 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/lui.css +33 -9
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +4 -3
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiBadge/LuiBadge.scss +1 -1
- package/dist/scss/Components/LuiError/LuiError.scss +5 -5
- package/dist/scss/Components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.scss +40 -24
- package/dist/scss/Components/LuiFormElements/LuiFileInputBox.scss +7 -7
- package/dist/scss/Components/LuiFormElements/LuiRadioInput/LuiRadioInput.scss +17 -16
- package/dist/scss/Components/LuiFormElements/LuiSelectInput/LuiSelectInput.scss +37 -32
- package/dist/scss/Components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.scss +37 -36
- package/dist/scss/Components/LuiFormElements/LuiTextInput/LuiTextInput.scss +42 -39
- package/dist/scss/Components/LuiFormSection/LuiFormSectionHeader.scss +4 -5
- package/dist/scss/Components/LuiFormSection/LuiHelpInfo/LuiHelpInfo.scss +4 -4
- package/dist/scss/Components/LuiForms/LuiComboSelect/LuiComboSelect.scss +11 -11
- package/dist/scss/Components/LuiShadow/LuiShadow.scss +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [16.2.5](https://github.com/linz/lui/compare/v16.2.4...v16.2.5) (2022-03-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* updating to accept classname (also convert from FC) ([#640](https://github.com/linz/lui/issues/640)) ([9b4aa50](https://github.com/linz/lui/commit/9b4aa50ba2aca8f1aca049f23c0566d881e6c2a0))
|
|
7
|
+
|
|
8
|
+
## [16.2.4](https://github.com/linz/lui/compare/v16.2.3...v16.2.4) (2022-03-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* wrong type for mandatory ([#639](https://github.com/linz/lui/issues/639)) ([f6fdffa](https://github.com/linz/lui/commit/f6fdffa936345fe701e32e709dc9e185290997d7))
|
|
14
|
+
|
|
15
|
+
## [16.2.3](https://github.com/linz/lui/compare/v16.2.2...v16.2.3) (2022-03-28)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Adding classname to luitextinput ([#638](https://github.com/linz/lui/issues/638)) ([92dc54f](https://github.com/linz/lui/commit/92dc54f595c6678c53a3393cc8d05d127be38d3a))
|
|
21
|
+
|
|
1
22
|
## [16.2.2](https://github.com/linz/lui/compare/v16.2.1...v16.2.2) (2022-03-24)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
declare type
|
|
2
|
+
declare type ILuiBanner = {
|
|
3
3
|
level: 'success' | 'info' | 'warning' | 'error';
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function getMaterialIconForLevel(level: 'success' | 'info' | 'warning' | 'error'): "info" | "warning" | "error" | "check_circle";
|
|
8
|
-
export declare const LuiBanner: (props:
|
|
9
|
-
export declare const LuiBannerContent: (props:
|
|
8
|
+
export declare const LuiBanner: (props: ILuiBanner) => JSX.Element;
|
|
9
|
+
export declare const LuiBannerContent: (props: ILuiBanner) => JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export interface ILuiStaticMessage {
|
|
3
3
|
level: 'success' | 'info' | 'warning' | 'error';
|
|
4
4
|
closable?: boolean;
|
|
5
|
-
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const LuiStaticMessage: (props: ILuiStaticMessage) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -457,13 +457,13 @@ var LuiBannerContent = function (props) {
|
|
|
457
457
|
var LuiStaticMessage = function (props) {
|
|
458
458
|
var _a = React.useState(true), display = _a[0], setDisplay = _a[1];
|
|
459
459
|
var materialIcon = getMaterialIconForLevel(props.level);
|
|
460
|
-
return display ? (React__default["default"].createElement("div", { className: "lui-msg-" + props.level, "data-testid": 'static-message-container' },
|
|
460
|
+
return display ? (React__default["default"].createElement("div", { className: clsx("lui-msg-" + props.level, props.className), "data-testid": 'static-message-container' },
|
|
461
461
|
React__default["default"].createElement(LuiIcon, { name: "ic_" + materialIcon, alt: props.level + " static icon", size: "lg", className: "lui-msg-status-icon" }),
|
|
462
462
|
props.children,
|
|
463
463
|
(props.closable === undefined || props.closable) && (React__default["default"].createElement("button", { "aria-label": "Close dialog", onClick: function () {
|
|
464
464
|
setDisplay(false);
|
|
465
465
|
} },
|
|
466
|
-
React__default["default"].createElement(LuiIcon, { name: "ic_clear", alt: 'close', size: "md", className: "LuiStaticMsg-close" }))))) : null;
|
|
466
|
+
React__default["default"].createElement(LuiIcon, { name: "ic_clear", alt: 'close', size: "md", className: "LuiStaticMsg-close" }))))) : (React__default["default"].createElement(React__default["default"].Fragment, null));
|
|
467
467
|
};
|
|
468
468
|
|
|
469
469
|
var PlainButton = React__default["default"].forwardRef(function (props, ref) {
|
|
@@ -888,8 +888,9 @@ var LuiCheckboxInput = function (props) {
|
|
|
888
888
|
'LuiCheckboxInput--isChecked': props.isChecked,
|
|
889
889
|
'LuiCheckboxInput--hasError': !!props.error,
|
|
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", { "aria-label": "Required", className: "LuiCheckboxInput-mandatory" }, "*")),
|
|
893
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)),
|
|
894
895
|
React__default["default"].createElement("span", { className: "LuiCheckboxInput-label" },
|
|
895
896
|
props.label,
|