@linzjs/lui 17.21.0 → 17.22.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 +14 -0
- package/README.md +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +12 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [17.22.0](https://github.com/linz/lui/compare/v17.21.1...v17.22.0) (2022-11-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* triggering deployment ([#800](https://github.com/linz/lui/issues/800)) ([d264dec](https://github.com/linz/lui/commit/d264deca54901446dded3c7f96cb68344b53be47))
|
|
7
|
+
|
|
8
|
+
## [17.21.1](https://github.com/linz/lui/compare/v17.21.0...v17.21.1) (2022-11-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* close side panel on escape key down ([#798](https://github.com/linz/lui/issues/798)) ([b1d7507](https://github.com/linz/lui/commit/b1d7507575a67bfa4ba64d84f070bcad7b1d447d))
|
|
14
|
+
|
|
1
15
|
# [17.21.0](https://github.com/linz/lui/compare/v17.20.0...v17.21.0) (2022-11-07)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ _It was foreseen in the stars that Lui was destined for greatness, a UI library
|
|
|
25
25
|
- [📄 Lui on UX Confluence](https://confluence.linz.govt.nz/display/STEP/Lui+%28LINZ+User+Interface%29+Design+system)
|
|
26
26
|
- [💬 Lui Community of Practice on LINZ Slack - #cop-lui](https://linz.slack.com/archives/CP807EN31)
|
|
27
27
|
|
|
28
|
-
and
|
|
28
|
+
and
|
|
29
29
|
|
|
30
30
|
- [👕Lui Worm T-shirts](https://odrusso-store.secure-decoration.com/shop/category/Lui-Worm?c=3718283)
|
|
31
31
|
|
package/dist/index.js
CHANGED
|
@@ -28224,7 +28224,13 @@ var LuiModal = function (props) {
|
|
|
28224
28224
|
})),
|
|
28225
28225
|
React__default["default"].createElement("div", { ref: node, className: clsx('lui-modal lui-box-shadow', props.maxWidth && 'lui-max-width', props.headingText && 'lui-modal-no-padding', props.className) },
|
|
28226
28226
|
props.headingText && (React__default["default"].createElement(LuiModalHeader, { headingText: props.headingText, onClose: props.onClose })),
|
|
28227
|
-
React__default["default"].createElement("div", { className: clsx(props.headingText && 'lui-modal-container')
|
|
28227
|
+
React__default["default"].createElement("div", { className: clsx(props.headingText && 'lui-modal-container'), ref: function (element) {
|
|
28228
|
+
if (element &&
|
|
28229
|
+
!element.contains(element.ownerDocument.activeElement)) {
|
|
28230
|
+
var firstFocusableElement = element.querySelector('input,button');
|
|
28231
|
+
firstFocusableElement === null || firstFocusableElement === void 0 ? void 0 : firstFocusableElement.focus();
|
|
28232
|
+
}
|
|
28233
|
+
} }, props.children))));
|
|
28228
28234
|
};
|
|
28229
28235
|
var LuiAlertModal = function (props) {
|
|
28230
28236
|
var materialIcon = getMaterialIconForLevel(props.level);
|
|
@@ -33114,6 +33120,11 @@ var LuiSidePanel = function (_a) {
|
|
|
33114
33120
|
};
|
|
33115
33121
|
var LuiSidePanelContainer = function (props) {
|
|
33116
33122
|
var _a = props !== null && props !== void 0 ? props : {}, children = _a.children, onClose = _a.onClose, _b = _a.width, width = _b === void 0 ? '50%' : _b, _c = _a.top, top = _c === void 0 ? 60 : _c, _d = _a.closeBtnTitleAttr, closeBtnTitleAttr = _d === void 0 ? 'Close panel' : _d;
|
|
33123
|
+
useEscapeFunction(function () {
|
|
33124
|
+
if (onClose) {
|
|
33125
|
+
onClose();
|
|
33126
|
+
}
|
|
33127
|
+
});
|
|
33117
33128
|
return (React__default["default"].createElement("section", { style: {
|
|
33118
33129
|
position: 'fixed',
|
|
33119
33130
|
right: 0,
|