@linzjs/lui 17.36.4 → 17.36.6

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [17.36.6](https://github.com/linz/lui/compare/v17.36.5...v17.36.6) (2023-02-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **icon-button:** Update svg icon color to sync with figma design ([#863](https://github.com/linz/lui/issues/863)) ([418b8c7](https://github.com/linz/lui/commit/418b8c7534551a4b5e7d67c04db6a3f5d2565655))
7
+
8
+ ## [17.36.5](https://github.com/linz/lui/compare/v17.36.4...v17.36.5) (2023-02-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * 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))
14
+
1
15
  ## [17.36.4](https://github.com/linz/lui/compare/v17.36.3...v17.36.4) (2023-02-22)
2
16
 
3
17
 
@@ -4,5 +4,6 @@ export declare const LuiSidePanel: React.FC<React.PropsWithChildren<{
4
4
  width?: string;
5
5
  closeBtnTitleAttr?: string;
6
6
  top?: number;
7
+ classNames?: string;
7
8
  }>>;
8
9
  export declare const LuiSidePanelProvider: React.FC<React.PropsWithChildren<unknown>>;
package/dist/index.js CHANGED
@@ -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
- background: 'white',
47317
- width: children ? width !== null && width !== void 0 ? width : '50%' : '0%',
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',