@linzjs/lui 17.21.1 → 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 +7 -0
- package/README.md +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +7 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [17.21.1](https://github.com/linz/lui/compare/v17.21.0...v17.21.1) (2022-11-15)
|
|
2
9
|
|
|
3
10
|
|
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);
|