@linzjs/lui 17.36.3 → 17.36.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 +14 -0
- package/dist/components/LuiSidePanel/LuiSidePanel.d.ts +1 -0
- package/dist/index.js +7 -16
- package/dist/index.js.map +1 -1
- package/dist/lui.css +13 -0
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +7 -16
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFloatingWindow/LuiFloatingWindow.scss +79 -1
- package/dist/scss/Components/LuiSidePanel/LuiSidePanel.scss +11 -0
- package/dist/scss/Components/LuiUpdateSplashModal/splashModal.scss +1 -0
- package/dist/scss/base.scss +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [17.36.5](https://github.com/linz/lui/compare/v17.36.4...v17.36.5) (2023-02-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* scroll to auto and z-index for splash modal ([#848](https://github.com/linz/lui/issues/848)) ([7a5ef79](https://github.com/linz/lui/commit/7a5ef797e76f91ced5b3647a9e171d31935ddf2e))
|
|
7
|
+
|
|
8
|
+
## [17.36.4](https://github.com/linz/lui/compare/v17.36.3...v17.36.4) (2023-02-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Reference to pre-defined lui colors and shadows where applicable ([#862](https://github.com/linz/lui/issues/862)) ([38c7d3d](https://github.com/linz/lui/commit/38c7d3d2a1bcdb86f789b41358f6a6e81c3c299d))
|
|
14
|
+
|
|
1
15
|
## [17.36.3](https://github.com/linz/lui/compare/v17.36.2...v17.36.3) (2023-02-20)
|
|
2
16
|
|
|
3
17
|
|
package/dist/index.js
CHANGED
|
@@ -12879,7 +12879,7 @@ function styleInject(css, ref) {
|
|
|
12879
12879
|
}
|
|
12880
12880
|
}
|
|
12881
12881
|
|
|
12882
|
-
var css_248z$a = ".LuiFloatingWindow-buttons {\n display: flex;\n align-items: center;\n}\n\n.LuiFloatingWindow-extra-buttons-divider {\n margin-right: 4px;\n margin-left: 8px;\n margin-top: -6px;\n font-size: x-large;\n opacity: 0.7;\n}\n\n.FloatingWindow-window {\n box-shadow:
|
|
12882
|
+
var css_248z$a = ".LuiFloatingWindow-buttons {\n display: flex;\n align-items: center;\n}\n\n.LuiFloatingWindow-extra-buttons-divider {\n margin-right: 4px;\n margin-left: 8px;\n margin-top: -6px;\n font-size: x-large;\n opacity: 0.7;\n}\n\n.FloatingWindow-window {\n box-shadow: 0px 1px 6px 0px #00000026, 0px 6px 10px 0px #00000040;\n position: absolute;\n background-color: #ffffff;\n top: 10%;\n left: 5%;\n display: flex;\n flex-direction: column;\n border-radius: 9px;\n}\n\n.FloatingWindow-container {\n display: flex;\n height: calc(100% - 50px);\n width: 100%;\n overflow: auto;\n}\n\n.FloatingWindow-header-element {\n flex: 0;\n}\n\n.FloatingWindow-header {\n height: 48px;\n line-height: 48px;\n color: #6b6966;\n padding: 0 8px;\n display: flex;\n overflow: hidden;\n justify-content: space-between;\n border-bottom: 2px #eaeaea solid;\n font-size: 1em;\n font-weight: 600;\n}\n\n.FloatingWindow-header-title-text {\n font-size: 1em;\n font-weight: 600;\n overflow: hidden;\n}\n\n.FloatingWindow-buttons {\n display: flex;\n align-items: center;\n}\n\n.FloatingWindow-extra-buttons-divider {\n margin-right: 4px;\n margin-left: 8px;\n margin-top: -6px;\n font-size: x-large;\n opacity: 0.7;\n}\n\n.FloatingWindowHeaderButton-button {\n padding: 0 0 0 8px;\n border: none;\n outline: none;\n border-radius: 50%;\n background-color: transparent;\n color: #6b6966;\n display: flex;\n}\n\n.FloatingWindowHeaderButton-icon {\n fill: #6b6966;\n}\n\n.floating-window-icon {\n display: inline-block;\n height: 24px;\n max-height: 24px;\n max-width: 24px;\n width: 24px;\n fill: #6b6966;\n}";
|
|
12883
12883
|
styleInject(css_248z$a);
|
|
12884
12884
|
|
|
12885
12885
|
/**
|
|
@@ -47291,36 +47291,27 @@ var LuiBadge = function (props) { return (React__default["default"].createElemen
|
|
|
47291
47291
|
|
|
47292
47292
|
var LuiSidePanelContext = React__default["default"].createContext({ setProps: function () { return undefined; } });
|
|
47293
47293
|
var LuiSidePanel = function (_a) {
|
|
47294
|
-
var children = _a.children, onClose = _a.onClose, width = _a.width, top = _a.top, closeBtnTitleAttr = _a.closeBtnTitleAttr;
|
|
47294
|
+
var children = _a.children, onClose = _a.onClose, width = _a.width, top = _a.top, closeBtnTitleAttr = _a.closeBtnTitleAttr, classNames = _a.classNames;
|
|
47295
47295
|
var setProps = React__default["default"].useContext(LuiSidePanelContext).setProps;
|
|
47296
47296
|
React__default["default"].useEffect(function () {
|
|
47297
|
-
setProps({ children: children, onClose: onClose, width: width, top: top, closeBtnTitleAttr: closeBtnTitleAttr });
|
|
47297
|
+
setProps({ children: children, onClose: onClose, width: width, top: top, closeBtnTitleAttr: closeBtnTitleAttr, classNames: classNames });
|
|
47298
47298
|
return function () {
|
|
47299
47299
|
setProps(undefined);
|
|
47300
47300
|
};
|
|
47301
|
-
}, [setProps, children, onClose, width, top, closeBtnTitleAttr]);
|
|
47301
|
+
}, [setProps, children, onClose, width, top, closeBtnTitleAttr, classNames]);
|
|
47302
47302
|
return React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
47303
47303
|
};
|
|
47304
47304
|
var LuiSidePanelContainer = function (props) {
|
|
47305
|
-
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;
|
|
47305
|
+
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, classNames = _a.classNames;
|
|
47306
47306
|
useEscapeFunction(function () {
|
|
47307
47307
|
if (onClose) {
|
|
47308
47308
|
onClose();
|
|
47309
47309
|
}
|
|
47310
47310
|
});
|
|
47311
47311
|
return (React__default["default"].createElement("section", { style: {
|
|
47312
|
-
position: 'fixed',
|
|
47313
|
-
right: 0,
|
|
47314
|
-
bottom: 0,
|
|
47315
47312
|
top: top,
|
|
47316
|
-
|
|
47317
|
-
|
|
47318
|
-
transition: 'width 0.2s ease',
|
|
47319
|
-
boxShadow: '-0.1em 0 0.4em rgba(0, 0, 0, 0.2)',
|
|
47320
|
-
padding: 0,
|
|
47321
|
-
zIndex: 3,
|
|
47322
|
-
overflow: 'scroll'
|
|
47323
|
-
} },
|
|
47313
|
+
width: children ? width !== null && width !== void 0 ? width : '50%' : '0%'
|
|
47314
|
+
}, className: clsx$1('luiSidePanel', classNames) },
|
|
47324
47315
|
children && (React__default["default"].createElement("button", { type: "button", "data-testid": "close", title: closeBtnTitleAttr, onClick: onClose, style: {
|
|
47325
47316
|
color: '#5e5e61',
|
|
47326
47317
|
position: 'absolute',
|