@plesk/ui-library 3.38.1 → 3.38.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.
Files changed (128) hide show
  1. package/cjs/components/Action/Action.js +1 -1
  2. package/cjs/components/Card/Card.js +1 -1
  3. package/cjs/components/CardList/CardList.js +1 -1
  4. package/cjs/components/CardList/CardListToolbar.js +1 -1
  5. package/cjs/components/Carousel/Carousel.js +5 -2
  6. package/cjs/components/CodeEditor/CodeEditor.js +1 -1
  7. package/cjs/components/Columns/Columns.js +1 -1
  8. package/cjs/components/ComboBox/ComboBox.js +1 -1
  9. package/cjs/components/ComboBoxDropdown/ComboBoxDropdown.js +1 -1
  10. package/cjs/components/ComboBoxDropdown/index.js +1 -1
  11. package/cjs/components/Dialog/Dialog.js +1 -1
  12. package/cjs/components/Drawer/DrawerProgress.js +1 -1
  13. package/cjs/components/Dropdown/index.js +1 -1
  14. package/cjs/components/Figure/index.js +1 -1
  15. package/cjs/components/Form/Form.js +1 -1
  16. package/cjs/components/Form/index.js +1 -1
  17. package/cjs/components/FormField/index.js +1 -1
  18. package/cjs/components/FormFieldPassword/PasswordMeter.js +1 -1
  19. package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +1 -1
  20. package/cjs/components/Heading/Heading.js +1 -1
  21. package/cjs/components/Icon/index.js +1 -1
  22. package/cjs/components/Icon/utils.js +1 -1
  23. package/cjs/components/Item/Item.js +1 -1
  24. package/cjs/components/ItemList/ItemList.js +1 -1
  25. package/cjs/components/Layer/index.js +1 -1
  26. package/cjs/components/List/List.js +1 -1
  27. package/cjs/components/LocaleProvider/index.js +1 -1
  28. package/cjs/components/Media/Media.js +1 -1
  29. package/cjs/components/Menu/MenuBaseItem.js +1 -1
  30. package/cjs/components/Pagination/index.js +1 -1
  31. package/cjs/components/Popper/index.js +1 -1
  32. package/cjs/components/ProgressStep/ProgressStep.js +1 -1
  33. package/cjs/components/ProgressStep/index.js +1 -1
  34. package/cjs/components/Section/Section.js +1 -1
  35. package/cjs/components/Section/index.js +1 -1
  36. package/cjs/components/SegmentedControl/SegmentedControl.js +1 -1
  37. package/cjs/components/SegmentedControl/index.js +1 -1
  38. package/cjs/components/Select/Select.js +1 -1
  39. package/cjs/components/SplitButton/index.js +1 -1
  40. package/cjs/components/Subnav/index.js +1 -1
  41. package/cjs/components/Tabs/SearchBar.js +1 -1
  42. package/cjs/components/Tabs/Tabs.js +1 -1
  43. package/cjs/components/Toast/index.js +1 -1
  44. package/cjs/components/Toolbar/Toolbar.js +1 -1
  45. package/cjs/components/Toolbar/ToolbarGroup.js +1 -1
  46. package/cjs/components/Toolbar/ToolbarMenu.js +1 -1
  47. package/cjs/components/VerticalContext/index.js +1 -1
  48. package/cjs/components/index.js +1 -1
  49. package/cjs/index.js +1 -1
  50. package/dist/plesk-ui-library.js +89 -86
  51. package/dist/plesk-ui-library.js.map +1 -1
  52. package/dist/plesk-ui-library.min.js +6 -6
  53. package/dist/plesk-ui-library.min.js.map +1 -1
  54. package/esm/components/Action/Action.js +1 -2
  55. package/esm/components/Alert/Alert.js +1 -2
  56. package/esm/components/Badge/Badge.js +1 -2
  57. package/esm/components/Breadcrumbs/Breadcrumbs.js +1 -2
  58. package/esm/components/Button/Button.js +1 -2
  59. package/esm/components/Card/Card.js +1 -2
  60. package/esm/components/Card/PreviewPanel.js +1 -2
  61. package/esm/components/CardList/CardList.js +1 -2
  62. package/esm/components/Carousel/Carousel.js +6 -4
  63. package/esm/components/Checkbox/Checkbox.js +1 -2
  64. package/esm/components/ComboBoxDropdown/ComboBoxDropdown.js +2 -4
  65. package/esm/components/ConsoleOutput/ConsoleOutput.js +1 -2
  66. package/esm/components/ContentLoader/ContentLoader.js +1 -2
  67. package/esm/components/ContentLoader/IconsLoader.js +1 -2
  68. package/esm/components/Cuttable/Cuttable.js +1 -2
  69. package/esm/components/Dialog/Dialog.js +1 -2
  70. package/esm/components/Drawer/Drawer.js +1 -2
  71. package/esm/components/Drawer/DrawerProgress.js +1 -2
  72. package/esm/components/Drawer/Header.js +1 -2
  73. package/esm/components/Dropdown/Dropdown.js +1 -3
  74. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +1 -2
  75. package/esm/components/Figure/Figure.js +1 -2
  76. package/esm/components/FocusTrap/FocusTrap.js +1 -2
  77. package/esm/components/Form/Form.js +1 -2
  78. package/esm/components/FormField/FormField.js +1 -2
  79. package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +1 -3
  80. package/esm/components/FormFieldPassword/FormFieldPassword.js +1 -2
  81. package/esm/components/FormFieldPassword/PasswordMeter.js +1 -3
  82. package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +1 -2
  83. package/esm/components/Heading/Heading.js +1 -2
  84. package/esm/components/InPlaceEdit/InPlaceEdit.js +1 -2
  85. package/esm/components/Input/Input.js +1 -2
  86. package/esm/components/InputFile/InputFile.js +1 -3
  87. package/esm/components/Item/Item.js +1 -2
  88. package/esm/components/Label/Label.js +1 -2
  89. package/esm/components/Layout/Layout.js +1 -2
  90. package/esm/components/Link/Link.js +1 -2
  91. package/esm/components/List/List.js +2 -5
  92. package/esm/components/List/ListActions.js +1 -2
  93. package/esm/components/List/ListEmptyView.js +1 -2
  94. package/esm/components/List/ListOperation.js +1 -2
  95. package/esm/components/Media/Media.js +1 -2
  96. package/esm/components/Menu/MenuBaseItem.js +1 -2
  97. package/esm/components/Overlay/Overlay.js +1 -2
  98. package/esm/components/PageHeader/PageHeader.js +1 -2
  99. package/esm/components/Pagination/Pagination.js +1 -2
  100. package/esm/components/Panel/Panel.js +1 -2
  101. package/esm/components/Popover/Popover.js +1 -2
  102. package/esm/components/Popper/Popper.js +1 -2
  103. package/esm/components/ProgressDialog/ProgressDialog.js +1 -2
  104. package/esm/components/ProgressStep/ProgressStep.js +1 -2
  105. package/esm/components/Radio/Radio.js +1 -2
  106. package/esm/components/Section/Section.js +1 -2
  107. package/esm/components/Section/SectionItem.js +1 -2
  108. package/esm/components/SegmentedControl/SegmentedControl.js +1 -2
  109. package/esm/components/Select/MultiValue.js +1 -2
  110. package/esm/components/Select/SelectControl.js +1 -2
  111. package/esm/components/SplitButton/SplitButton.js +1 -2
  112. package/esm/components/Spot/SpotPopup.js +1 -2
  113. package/esm/components/Spot/SpotPulsar.js +1 -2
  114. package/esm/components/StatusMessage/StatusMessage.js +1 -2
  115. package/esm/components/Switch/Switch.js +1 -2
  116. package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +1 -2
  117. package/esm/components/Tabs/SearchBar.js +1 -3
  118. package/esm/components/Tabs/Tabs.js +1 -3
  119. package/esm/components/Toast/Toast.js +1 -2
  120. package/esm/components/Tooltip/Tooltip.js +1 -3
  121. package/esm/index.js +1 -1
  122. package/package.json +15 -15
  123. package/styleguide/build/bundle.42040fbd.js +2 -0
  124. package/styleguide/index.html +2 -2
  125. package/types/src/components/Carousel/Carousel.d.ts +1 -1
  126. package/types/src/components/List/List.d.ts +0 -2
  127. package/styleguide/build/bundle.83446a26.js +0 -2
  128. /package/styleguide/build/{bundle.83446a26.js.LICENSE.txt → bundle.42040fbd.js.LICENSE.txt} +0 -0
@@ -6,8 +6,7 @@ import { CLS_PREFIX } from '../../constants';
6
6
  import { wrapFunction } from '../utils';
7
7
  import Icon, { ICON_SIZE_16 } from '../Icon';
8
8
  import Spinner from '../Spinner';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
10
  /**
12
11
  * `Action` component is used mostly for navigation, to go between pages, and not for immediate action or submitting data.
13
12
  * @since 0.0.68
@@ -2,8 +2,7 @@
2
2
 
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  /**
8
7
  * `Alert` component is used for highlighting important content.
9
8
  * For showing messages about state of the system it is recommended to use [StatusMessage](#!/StatusMessage)
@@ -5,8 +5,7 @@ import classNames from 'classnames';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import Label from '../Label';
7
7
  import Icon from '../Icon';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  /**
11
10
  * `Badge` component is used for showing small numerical value or status attached to an interface element.
12
11
  * @since 0.0.58
@@ -5,8 +5,7 @@ import { Children } from 'react';
5
5
  import classNames from 'classnames';
6
6
  import { CLS_PREFIX } from '../../constants';
7
7
  import Icon from '../Icon';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  /**
11
10
  * `Breadcrumbs` component indicates a position of current page in general hierarchy of all pages,
12
11
  * and it is used for navigation up to the main page of the product.
@@ -28,8 +28,7 @@ const oldIconNames = {
28
28
  import ResponsiveContext from '../ResponsiveContext';
29
29
  import OnDarkContext from '../OnDarkContext';
30
30
  import ButtonContext from './ButtonContext';
31
- import { jsx as _jsx } from "react/jsx-runtime";
32
- import { jsxs as _jsxs } from "react/jsx-runtime";
31
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
33
32
  const renderIcon = _ref => {
34
33
  let {
35
34
  baseClassName,
@@ -12,8 +12,7 @@ import ContentLoader from '../ContentLoader';
12
12
  import Translate from '../Translate';
13
13
  import CardButton from './CardButton';
14
14
  import PreviewPanel from './PreviewPanel';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
16
  const VIEW_TILE = 'tile';
18
17
  const VIEW_EXTENDED = 'extended';
19
18
  const VIEW_ROW = 'row';
@@ -6,8 +6,7 @@ import classNames from 'classnames';
6
6
  import { CLS_PREFIX } from '../../constants';
7
7
  import { loadImage } from './helpers';
8
8
  import noImage from './images/no-image.svg';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
10
  const determineSource = _ref => {
12
11
  let {
13
12
  image,
@@ -14,8 +14,7 @@ import Button from '../Button';
14
14
  import Spinner from '../Spinner';
15
15
  import Translate from '../Translate';
16
16
  import CardListToolbar from './CardListToolbar';
17
- import { jsx as _jsx } from "react/jsx-runtime";
18
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
18
  export const VIEW_TILE = 'tile';
20
19
  export const VIEW_RESPONSIVE = 'responsive';
21
20
  export const VIEW_EXTENDED = 'extended';
@@ -7,10 +7,9 @@ import classNames from 'classnames';
7
7
  import Measure from 'react-measure';
8
8
  import { CLS_PREFIX } from '../../constants';
9
9
  import Icon from '../Icon';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  const calcWidths = node => {
13
- const slideWidths = [].map.call(node.childNodes, el => el.clientWidth);
12
+ const slideWidths = [].map.call(node.childNodes, el => el.getBoundingClientRect().width);
14
13
  const totalWidth = slideWidths.reduce((prev, curr) => prev + curr, 0);
15
14
  return {
16
15
  slideWidths,
@@ -184,10 +183,13 @@ class Carousel extends Component {
184
183
  this.play();
185
184
  }
186
185
  }
187
- componentDidUpdate() {
186
+ componentDidUpdate(prevProps) {
188
187
  if (!this.rootRef.current || !this.genuineRef.current) {
189
188
  return;
190
189
  }
190
+ if (prevProps.autoplay !== this.props.autoplay) {
191
+ this.props.autoplay ? this.play() : this.stop();
192
+ }
191
193
  const {
192
194
  width
193
195
  } = this.rootRef.current.getBoundingClientRect();
@@ -3,8 +3,7 @@
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import Tooltip from '../Tooltip';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  /**
9
8
  * `Checkbox` component is used for turning an option on or off and selecting or deselecting an item.
10
9
  * @since 0.0.55
@@ -1,15 +1,13 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- import { useRef, useState, useEffect, useLayoutEffect } from 'react';
3
+ import { useRef, useState, useEffect, useLayoutEffect, createElement as _createElement } from 'react';
4
4
  import { Z_INDEX_DROPDOWN, CLS_PREFIX } from '../../constants';
5
5
  import classNames from 'classnames';
6
6
  import Popper from '../Popper';
7
7
  import Menu, { MenuItem, MenuHeader } from '../Menu';
8
8
  import AutoClosable from '../AutoClosable';
9
9
  import { safeInvoke, scrollIntoView } from '../utils';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { createElement as _createElement } from "react";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
11
  export const findNextSafeIndex = (currIndex, diff, options) => {
14
12
  const maxIndex = options.length - 1;
15
13
  let attempt = 0;
@@ -4,8 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import { PureComponent, createRef } from 'react';
5
5
  import classNames from 'classnames';
6
6
  import { CLS_PREFIX } from '../../constants';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const scrollToBottom = el => {
10
9
  el.scrollTop = el.scrollHeight;
11
10
  };
@@ -5,8 +5,7 @@ import classNames from 'classnames';
5
5
  import Spinner from '../Spinner';
6
6
  import IconsLoader from './IconsLoader';
7
7
  import { CLS_PREFIX } from '../../constants';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  const getLoader = loader => {
11
10
  let loaderType;
12
11
  let loaderProps = {};
@@ -4,8 +4,7 @@ import { useEffect, useRef, useState } from 'react';
4
4
  import classNames from 'classnames';
5
5
  import Icon from '../Icon';
6
6
  import { CLS_PREFIX } from '../../constants';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const DEFAULT_ICONS = ['clock', 'emoticon-smile', 'rocket', 'sand-clock', 'sleep', 'web', 'star'];
10
9
  const useIconCursor = (icons, initialCursor, isSync) => {
11
10
  const targetRef = useRef(null);
@@ -7,8 +7,7 @@ import Measure from 'react-measure';
7
7
  import { CLS_PREFIX } from '../../constants';
8
8
  import Translate from '../Translate';
9
9
  import Link from '../Link';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  /**
13
12
  * `Cuttable` component is used for showing and hiding part of content.
14
13
  * @since 0.0.42
@@ -11,8 +11,7 @@ import Heading from '../Heading';
11
11
  import Text from '../Text';
12
12
  import Translate, { isLikeText } from '../Translate';
13
13
  import { safeInvoke } from '../utils';
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
15
  const isProps = value => value && typeof value === 'object' && ! /*#__PURE__*/isValidElement(value);
17
16
 
18
17
  /**
@@ -11,8 +11,7 @@ import Heading from '../Heading';
11
11
  import { isLikeText } from '../Translate';
12
12
  import ScrollableElementFormContext from '../Form/ScrollableElementFormContext';
13
13
  import DrawerProgress from './DrawerProgress';
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
15
  const defaultProps = {
17
16
  isOpen: false,
18
17
  subtitle: undefined,
@@ -9,8 +9,7 @@ import Progress from '../Progress';
9
9
  import ProgressStep, { STATUS_DONE, STATUS_ERROR, STATUS_NOT_STARTED } from '../ProgressStep';
10
10
  import { CLS_PREFIX } from '../../constants';
11
11
  import { safeInvoke } from '../utils';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const additionalButtonsConfig = getButtonContextValue({
15
14
  defaultProps: {
16
15
  size: 'lg'
@@ -5,8 +5,7 @@ import classNames from 'classnames';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import Button from '../Button';
7
7
  import Icon from '../Icon';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  const Header = _ref => {
11
10
  let {
12
11
  baseClassName = `${CLS_PREFIX}drawer-header`,
@@ -12,9 +12,7 @@ import Layer from '../Layer';
12
12
  import { MenuItem, MenuDivider } from '../Menu';
13
13
  import Translate from '../Translate';
14
14
  import localeFallback from './locale/en-US';
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { Fragment as _Fragment } from "react/jsx-runtime";
17
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
18
16
  const createTarget = (node, _ref) => {
19
17
  let {
20
18
  onToggle,
@@ -3,8 +3,7 @@
3
3
  import classNames from 'classnames';
4
4
  import ContentLoader from '../ContentLoader';
5
5
  import { CLS_PREFIX } from '../../constants';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  /**
9
8
  * `ExtendedStatusMessage` component is similar to regular [StatusMessage](#!/StatusMessage)
10
9
  * but it is used when the message itself is the primary content on the page.
@@ -2,8 +2,7 @@
2
2
 
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  /**
8
7
  * Figure component.
9
8
  * @since 0.0.42
@@ -3,8 +3,7 @@
3
3
  import { useRef, useMemo, forwardRef } from 'react';
4
4
  import { createFocusManager, mergeRefs, wrapFunction } from '../utils';
5
5
  import { isFocusable } from '../Overlay/Focuser';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  const canSkip = node => node instanceof HTMLElement && node.dataset && node.dataset.skipAutoFocus;
9
8
  const createFocusStrategy = checkSkipAutoFocusRef => {
10
9
  const elements = [];
@@ -15,8 +15,7 @@ import FormContext from './FormContext';
15
15
  import VerticalContext, { VERTICAL_BREAKPOINT } from '../VerticalContext';
16
16
  import DisabledContext from './DisabledContext';
17
17
  import { safeInvoke } from '../utils';
18
- import { jsx as _jsx } from "react/jsx-runtime";
19
- import { jsxs as _jsxs } from "react/jsx-runtime";
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
19
  const actionButtonsConfig = getButtonContextValue({
21
20
  defaultProps: {
22
21
  size: 'lg'
@@ -18,8 +18,7 @@ import FormContext from '../Form/FormContext';
18
18
  import VerticalContext from '../VerticalContext';
19
19
  import ScrollableElementFormContext from '../Form/ScrollableElementFormContext';
20
20
  import DisabledContext from '../Form/DisabledContext';
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
22
  export const BASE_FORM_FIELD_CLASS_NAME = `${CLS_PREFIX}form-field`;
24
23
  const defaultValue = undefined;
25
24
  const defaultProps = {
@@ -5,9 +5,7 @@ import classNames from 'classnames';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import Checkbox from '../Checkbox';
7
7
  import FormField from '../FormField';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { Fragment as _Fragment } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
11
9
  /**
12
10
  * `FormFieldCheckbox` component is used for turning an option on or off
13
11
  * and selecting or deselecting an item.
@@ -11,8 +11,7 @@ import Translate from '../Translate';
11
11
  import PasswordMeter from './PasswordMeter';
12
12
  import generatePassword from './generatePassword';
13
13
  import locale from './locale/en-US';
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
15
  /**
17
16
  * `FormFieldPassword` component provides secure way to enter a password.
18
17
  * @since 0.0.58
@@ -5,9 +5,7 @@ import Popover from '../Popover';
5
5
  import Translate from '../Translate';
6
6
  import estimatePassword, { DEFAULT_RULES } from './estimatePassword';
7
7
  import locale from './locale/en-US';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { Fragment as _Fragment } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
11
9
  const strengthIntents = {
12
10
  VeryWeak: 'danger',
13
11
  Weak: 'danger',
@@ -6,8 +6,7 @@ import { CLS_PREFIX } from '../../constants';
6
6
  import FormField, { BASE_FORM_FIELD_CLASS_NAME } from '../FormField';
7
7
  import Hint from '../Hint';
8
8
  import Radio from '../Radio';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
10
  /**
12
11
  * `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
13
12
  * @since 0.2.0
@@ -3,8 +3,7 @@
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import Icon, { ICON_SIZE_12, ICON_SIZE_16, ICON_SIZE_24, ICON_SIZE_32 } from '../Icon';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  /**
9
8
  * `Heading` is used as a text title (or a subtitle) to define the hierarchy and the structure of the content.
10
9
  * @since 2.3.0
@@ -9,8 +9,7 @@ import Input from '../Input';
9
9
  import Tooltip from '../Tooltip';
10
10
  import Translate from '../Translate';
11
11
  import locale from './locale/en-US';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  /**
15
14
  * This component allows users to edit a short text "in place" — in other words, straight in the interface, without
16
15
  * opening additional dialog windows. If a text is large enough that it doesn't fit on a single line, you should
@@ -2,8 +2,7 @@
2
2
 
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  /**
8
7
  * `Input` component is used for entering short text (like user name or email address).
9
8
  * @since 0.0.57
@@ -8,9 +8,7 @@ import Text from '../Text';
8
8
  import Button from '../Button';
9
9
  import Translate from '../Translate';
10
10
  import localeFallback from './locale/en-US';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
- import { Fragment as _Fragment } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
14
12
  const generateId = () => Math.random().toString(36).slice(2);
15
13
 
16
14
  /**
@@ -8,8 +8,7 @@ import Media from '../Media';
8
8
  import Heading from '../Heading';
9
9
  import Tooltip from '../Tooltip';
10
10
  import { createProxyProps, wrapFunction } from '../utils';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  /**
14
13
  * `Item` component is element of [ItemList](#!/ItemList) and it is presented as
15
14
  * a combination of icon, text title and content (similar to [Media](#!/Media)).
@@ -3,8 +3,7 @@
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import Icon from '../Icon';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  const DEFAULT_TAG = 'span';
9
8
 
10
9
  /**
@@ -6,8 +6,7 @@ import Measure from 'react-measure';
6
6
  import classNames from 'classnames';
7
7
  import { CSSTransition } from 'react-transition-group';
8
8
  import { CLS_PREFIX } from '../../constants';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
10
  const subscribeMatchMedia = (query, handler) => {
12
11
  const mq = window.matchMedia(query);
13
12
  handler(mq);
@@ -7,8 +7,7 @@ import { CLS_PREFIX } from '../../constants';
7
7
  import OnDarkContext from '../OnDarkContext';
8
8
  import { wrapFunction } from '../utils';
9
9
  import Icon from '../Icon';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  /**
13
12
  * `Link` is used for navigation purposes.
14
13
  * @since 1.9.0
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
3
3
 
4
- import { Fragment, cloneElement, isValidElement, createRef, Component } from 'react';
4
+ import { Fragment, cloneElement, isValidElement, createRef, Component, createElement as _createElement } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
7
  import { CSSTransition } from 'react-transition-group';
@@ -21,10 +21,7 @@ import VerticalContext, { VERTICAL_BREAKPOINT } from '../VerticalContext';
21
21
  import ListEmptyView from './ListEmptyView';
22
22
  import Columns, { Column } from '../Columns';
23
23
  import { FocusVisibleManager, useFocusVisible } from 'use-focus-visible';
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { Fragment as _Fragment } from "react/jsx-runtime";
26
- import { jsxs as _jsxs } from "react/jsx-runtime";
27
- import { createElement as _createElement } from "react";
24
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
28
25
  // eslint-disable-next-line func-style
29
26
  function getRowKey(row, props) {
30
27
  const {
@@ -8,8 +8,7 @@ import Dropdown from '../Dropdown';
8
8
  import Menu from '../Menu';
9
9
  import ListAction from './ListAction';
10
10
  import VerticalContext from '../VerticalContext';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  /**
14
13
  * `ListActions` component is used for performing operations on individual objects in [List](#!/List).
15
14
  * @since 3.3.0
@@ -7,8 +7,7 @@ import empty from './images/default.png';
7
7
  import filtered from './images/filtered.png';
8
8
  import { CLS_PREFIX } from '../../constants';
9
9
  import { ButtonContext, getButtonContextValue } from '../Button/ButtonContext';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  const createImage = (baseClassName, image, reason) => {
13
12
  if (image === undefined) {
14
13
  image = reason === 'filtered' ? filtered : empty;
@@ -10,8 +10,7 @@ import Media from '../Media';
10
10
  import Icon from '../Icon';
11
11
  import Text from '../Text';
12
12
  import Paragraph from '../Paragraph';
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
14
  const toBold = value => value === undefined ? undefined : /*#__PURE__*/_jsx(Text, {
16
15
  bold: true,
17
16
  children: value
@@ -5,8 +5,7 @@ import classNames from 'classnames';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import Heading from '../Heading';
7
7
  import Icon, { ICON_SIZE_12, ICON_SIZE_16, ICON_SIZE_24, ICON_SIZE_32, ICON_SIZE_48, ICON_SIZE_64, ICON_SIZE_96, ICON_SIZE_128, ICON_SIZE_192 } from '../Icon';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  /**
11
10
  * `Media` component is a combination of icon, text title and content.
12
11
  * This layout was so widely spread in our products so we have decided to create a special component for it.
@@ -3,8 +3,7 @@
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import Icon, { ICON_SIZE_16 } from '../Icon';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  /**
9
8
  * `MenuBaseItem` component.
10
9
  * @since 0.0.60
@@ -8,8 +8,7 @@ import classNames from 'classnames';
8
8
  import { CLS_PREFIX, Z_INDEX_OVERLAY } from '../../constants';
9
9
  import Layer from '../Layer';
10
10
  import FocusTrap from '../FocusTrap';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  /**
14
13
  * `Overlay` component.
15
14
  */
@@ -5,8 +5,7 @@ import { Children } from 'react';
5
5
  import { isLikeText } from '../Translate';
6
6
  import { CLS_PREFIX } from '../../constants';
7
7
  import Heading from '../Heading';
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  /**
11
10
  * `PageHeader` component is used for identification of the current page.
12
11
  * @since 0.0.35
@@ -10,8 +10,7 @@ import SegmentedControl from '../SegmentedControl';
10
10
  import Text from '../Text';
11
11
  import Translate from '../Translate';
12
12
  import { safeInvoke } from '../utils';
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
14
  export const ITEMS_PER_PAGE_OPTIONS = [25, 100, 'all'];
16
15
  const VIEW_DEFAULT = 'default';
17
16
  const VIEW_POPOVER = 'popover';
@@ -8,8 +8,7 @@ import { isLikeText } from '../Translate';
8
8
  import Heading from '../Heading';
9
9
  import Button from '../Button';
10
10
  import { isClickable } from '../utils';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
12
  /**
14
13
  * `Panel` component is used for visually grouping some content.
15
14
  * @since 0.0.35
@@ -14,8 +14,7 @@ import { wrapFunction } from '../utils';
14
14
  import OnDarkContext from '../OnDarkContext';
15
15
  import FocusTrap from '../FocusTrap';
16
16
  import { cloneElement, Component, createRef } from 'react';
17
- import { jsx as _jsx } from "react/jsx-runtime";
18
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
18
  const PLACEMENT_MAP = {
20
19
  'top-left': 'top-end',
21
20
  'top-right': 'top-start',
@@ -7,8 +7,7 @@ import { cloneElement, Component, createRef, Fragment } from 'react';
7
7
  import { findDOMNode } from 'react-dom';
8
8
  import { CLS_PREFIX } from '../../constants';
9
9
  import Layer from '../Layer';
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
- import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
12
11
  /**
13
12
  * `Popper` component.
14
13
  */
@@ -9,8 +9,7 @@ import Translate from '../Translate';
9
9
  import { safeInvoke } from '../utils';
10
10
  import { STATUS_DONE, STATUS_ERROR, STATUS_WARNING } from '../ProgressStep';
11
11
  import Progress from '../Progress';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
13
  /**
15
14
  * `ProgressDialog` is a [Dialog](#!/Dialog) combined with of [Progress](#!/Progress) component.
16
15
  * @since 1.2.0
@@ -7,8 +7,7 @@ import StatusComponent from '../Status';
7
7
  import { CLS_PREFIX } from '../../constants';
8
8
  import ProgressBar from '../ProgressBar';
9
9
  import OnDarkContext from '../OnDarkContext';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  export const STATUS_NOT_STARTED = 'not_started';
13
12
  export const STATUS_RUNNING = 'running';
14
13
  export const STATUS_DONE = 'done';