@linzjs/lui 17.41.7 → 17.41.9
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 +14 -0
- package/dist/components/LuiModal/LuiModal.d.ts +2 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.css +1 -1
- package/dist/lui.esm.js +3 -1
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/MenuV2/menu-v2.scss +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [17.41.9](https://github.com/linz/lui/compare/v17.41.8...v17.41.9) (2023-03-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* feat(helpLink) GA allow function for help link to accommodate GA hooks ([#891](https://github.com/linz/lui/issues/891)) ([bc63062](https://github.com/linz/lui/commit/bc63062e63224e2acedc7ca5f32f390be5df14e3))
|
|
7
|
+
|
|
8
|
+
## [17.41.8](https://github.com/linz/lui/compare/v17.41.7...v17.41.8) (2023-03-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* change justify-content to flex-star ([#890](https://github.com/linz/lui/issues/890)) ([47b2602](https://github.com/linz/lui/commit/47b2602740690e86040461edc36fea47e74c4cbd))
|
|
14
|
+
|
|
1
15
|
## [17.41.7](https://github.com/linz/lui/compare/v17.41.6...v17.41.7) (2023-03-15)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -6,7 +6,7 @@ interface ILuiModal {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
maxWidth?: boolean;
|
|
8
8
|
headingText?: string;
|
|
9
|
-
helpLink?: string;
|
|
9
|
+
helpLink?: string | (() => void);
|
|
10
10
|
lowContrast?: boolean;
|
|
11
11
|
preventAutoFocus?: boolean;
|
|
12
12
|
appendToElement?: () => HTMLElement;
|
|
@@ -19,7 +19,7 @@ export declare const LuiAlertModal: React.FC<React.PropsWithChildren<{
|
|
|
19
19
|
export declare const LuiAlertModalButtons: React.FC<React.PropsWithChildren<unknown>>;
|
|
20
20
|
interface IModalHeader {
|
|
21
21
|
headingText?: string;
|
|
22
|
-
helpLink?: string;
|
|
22
|
+
helpLink?: string | (() => void);
|
|
23
23
|
onClose?: () => void;
|
|
24
24
|
style?: 'light' | 'default';
|
|
25
25
|
}
|
package/dist/index.js
CHANGED
|
@@ -42494,7 +42494,9 @@ var LuiModalHeader = function (props) {
|
|
|
42494
42494
|
return (React__default["default"].createElement("header", { className: "lui-modal-header-".concat(headerStyle) }, props.headingText && (React__default["default"].createElement("div", { className: "lui-modal-header-title" },
|
|
42495
42495
|
React__default["default"].createElement("h1", null, props.headingText),
|
|
42496
42496
|
React__default["default"].createElement("div", { className: "lui-modal-header-buttons" },
|
|
42497
|
-
props.helpLink && (React__default["default"].createElement("button", { "aria-label": 'Modal Help', title: 'Help', className: "lui-modal-header-help-btn", onClick:
|
|
42497
|
+
props.helpLink && (React__default["default"].createElement("button", { "aria-label": 'Modal Help', title: 'Help', className: "lui-modal-header-help-btn", onClick: typeof props.helpLink === 'string'
|
|
42498
|
+
? function () { return window.open(props.helpLink, '_blank'); }
|
|
42499
|
+
: props.helpLink },
|
|
42498
42500
|
React__default["default"].createElement(LuiIcon, { name: "ic_help_outline", alt: "Help", size: "lg" }))),
|
|
42499
42501
|
headerStyle === 'default' && props.onClose && (React__default["default"].createElement("button", { "aria-label": 'Modal Close', title: 'Close', className: "lui-modal-header-close-btn", onClick: props.onClose },
|
|
42500
42502
|
React__default["default"].createElement(LuiIcon, { name: "ic_clear", alt: "Help", size: "lg" }))))))));
|