@plesk/ui-library 3.46.1 → 3.46.3

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.
@@ -36,7 +36,9 @@ class CodeEditor extends _react.Component {
36
36
  tabMode: 'shift',
37
37
  autoRefresh: true,
38
38
  extraKeys: {
39
- 'Ctrl-S': 'save'
39
+ 'Ctrl-S': 'save',
40
+ Tab: false,
41
+ 'Shift-Tab': false
40
42
  },
41
43
  direction: (0, _utils2.isRtl)() ? 'rtl' : 'ltr'
42
44
  }
@@ -54,6 +54,7 @@ class Layout extends _react.Component {
54
54
  });
55
55
  (0, _defineProperty2.default)(this, "headerRef", /*#__PURE__*/(0, _react.createRef)());
56
56
  (0, _defineProperty2.default)(this, "sidebarRef", /*#__PURE__*/(0, _react.createRef)());
57
+ (0, _defineProperty2.default)(this, "rightSidebarRef", /*#__PURE__*/(0, _react.createRef)());
57
58
  (0, _defineProperty2.default)(this, "responsiveSidebarTogglerRef", /*#__PURE__*/(0, _react.createRef)());
58
59
  (0, _defineProperty2.default)(this, "unsubscribeMatchMedia", void 0);
59
60
  (0, _defineProperty2.default)(this, "unsubscribeClickOutside", void 0);
@@ -308,6 +309,8 @@ class Layout extends _react.Component {
308
309
  const {
309
310
  baseClassName
310
311
  } = this.props;
312
+ const isMobile = window.matchMedia('(max-width: 768px)').matches;
313
+ const sidebarOffsetTop = this.headerRef.current?.getBoundingClientRect().height || 0;
311
314
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
312
315
  in: !rightSidebarVisible,
313
316
  timeout: 300,
@@ -320,7 +323,14 @@ class Layout extends _react.Component {
320
323
  exitDone: `${baseClassName}__right-sidebar--off`
321
324
  },
322
325
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("aside", {
323
- className: `${baseClassName}__right-sidebar`,
326
+ ref: this.rightSidebarRef,
327
+ className: (0, _classnames.default)(`${baseClassName}__right-sidebar`, {
328
+ [`${baseClassName}__right-sidebar--on`]: rightSidebarVisible,
329
+ [`${baseClassName}__right-sidebar--off`]: !rightSidebarVisible
330
+ }),
331
+ style: {
332
+ height: isMobile ? '100vh' : `calc(100vh - ${sidebarOffsetTop}px)`
333
+ },
324
334
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
325
335
  className: `${baseClassName}__right-sidebar-inner`,
326
336
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -419,9 +429,9 @@ class Layout extends _react.Component {
419
429
  className: `${baseClassName}__container`,
420
430
  children: [this.renderSidebar({
421
431
  sidebar
422
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
432
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
423
433
  className: `${baseClassName}__content-wrapper`,
424
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
434
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
425
435
  className: `${baseClassName}__content`,
426
436
  children: [this.renderContentAddon({
427
437
  contentAddon
@@ -432,10 +442,10 @@ class Layout extends _react.Component {
432
442
  }), this.renderFooter({
433
443
  footer
434
444
  })]
435
- }), this.renderRightSidebar({
436
- rightSidebar,
437
- rightSidebarVisible
438
- })]
445
+ })
446
+ }), this.renderRightSidebar({
447
+ rightSidebar,
448
+ rightSidebarVisible
439
449
  })]
440
450
  })]
441
451
  })
@@ -44,18 +44,21 @@ const ButtonGroupControl = ({
44
44
  width: shouldApplyMonoWidth ? monoWidth : style.width,
45
45
  ...style
46
46
  };
47
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
48
- ref: node => {
49
- index === 0 && (buttonsRef.current = []);
50
- node && buttonsRef.current.push(node);
51
- },
52
- selected: selectedValues.includes(value),
53
- ghost: ghost,
54
- onClick: () => onClick(value),
55
- ...buttonProps,
56
- className: (0, _classnames.default)(buttonProps.className, `${baseClassName}__button`),
57
- style: buttonStyle,
58
- children: title
47
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
48
+ role: "listitem",
49
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
50
+ ref: node => {
51
+ index === 0 && (buttonsRef.current = []);
52
+ node && buttonsRef.current.push(node);
53
+ },
54
+ selected: selectedValues.includes(value),
55
+ ghost: ghost,
56
+ onClick: () => onClick(value),
57
+ ...buttonProps,
58
+ className: (0, _classnames.default)(buttonProps.className, `${baseClassName}__button`),
59
+ style: buttonStyle,
60
+ children: title
61
+ })
59
62
  }, `${value}`);
60
63
  })
61
64
  });
package/cjs/index.js CHANGED
@@ -46,5 +46,5 @@ Object.keys(_components).forEach(function (key) {
46
46
  });
47
47
  });
48
48
  // Copyright 1999-2025. WebPros International GmbH. All rights reserved.
49
- const version = exports.version = "3.46.1";
49
+ const version = exports.version = "3.46.3";
50
50
  (0, _svg4everybody.default)();