@linzjs/lui 17.23.0 → 17.23.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 +14 -0
- package/dist/components/LuiModal/LuiModal.d.ts +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +4 -2
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [17.23.2](https://github.com/linz/lui/compare/v17.23.1...v17.23.2) (2022-11-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* side panel overflow so that consumer can scroll. ([#803](https://github.com/linz/lui/issues/803)) ([0984cf0](https://github.com/linz/lui/commit/0984cf0b7940884c0d0d5a0dae7666937d034301))
|
|
7
|
+
|
|
8
|
+
## [17.23.1](https://github.com/linz/lui/compare/v17.23.0...v17.23.1) (2022-11-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* allow modals to opt out of auto focus ([#802](https://github.com/linz/lui/issues/802)) ([038d279](https://github.com/linz/lui/commit/038d2791e6b99c54a31e05a2cc3fdf8f9c4a6289))
|
|
14
|
+
|
|
1
15
|
# [17.23.0](https://github.com/linz/lui/compare/v17.22.0...v17.23.0) (2022-11-23)
|
|
2
16
|
|
|
3
17
|
# [17.22.0](https://github.com/linz/lui/compare/v17.21.1...v17.22.0) (2022-11-18)
|
package/dist/index.js
CHANGED
|
@@ -28237,7 +28237,8 @@ var LuiModal = function (props) {
|
|
|
28237
28237
|
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) },
|
|
28238
28238
|
props.headingText && (React__default["default"].createElement(LuiModalHeader, { headingText: props.headingText, onClose: props.onClose })),
|
|
28239
28239
|
React__default["default"].createElement("div", { className: clsx(props.headingText && 'lui-modal-container'), ref: function (element) {
|
|
28240
|
-
if (
|
|
28240
|
+
if (!props.preventAutoFocus &&
|
|
28241
|
+
element &&
|
|
28241
28242
|
!element.contains(element.ownerDocument.activeElement)) {
|
|
28242
28243
|
var firstFocusableElement = element.querySelector('input,button');
|
|
28243
28244
|
firstFocusableElement === null || firstFocusableElement === void 0 ? void 0 : firstFocusableElement.focus();
|
|
@@ -33147,7 +33148,8 @@ var LuiSidePanelContainer = function (props) {
|
|
|
33147
33148
|
transition: 'width 0.2s ease',
|
|
33148
33149
|
boxShadow: '-0.1em 0 0.4em rgba(0, 0, 0, 0.2)',
|
|
33149
33150
|
padding: 0,
|
|
33150
|
-
zIndex: 3
|
|
33151
|
+
zIndex: 3,
|
|
33152
|
+
overflow: 'scroll'
|
|
33151
33153
|
} },
|
|
33152
33154
|
children && (React__default["default"].createElement("button", { type: "button", "data-testid": "close", title: closeBtnTitleAttr, onClick: onClose, style: {
|
|
33153
33155
|
color: '#5e5e61',
|