@plesk/ui-library 3.35.6 → 3.35.8

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 (167) hide show
  1. package/cjs/components/AutoClosable/AutoClosable.js +1 -0
  2. package/cjs/components/InputNumber/InputNumber.js +2 -2
  3. package/cjs/components/Item/Item.js +64 -153
  4. package/cjs/components/Overlay/Overlay.js +35 -25
  5. package/cjs/components/Popover/Popover.js +1 -1
  6. package/cjs/components/SegmentedControl/SegmentedControl.js +1 -0
  7. package/cjs/components/Tabs/SearchBar.js +40 -147
  8. package/cjs/components/Tabs/Tab.js +2 -49
  9. package/cjs/components/Tabs/Tabs.js +48 -99
  10. package/cjs/components/Toolbar/ToolbarItem.js +1 -0
  11. package/cjs/components/index.js +14 -11
  12. package/cjs/index.js +1 -1
  13. package/dist/plesk-ui-library-rtl.css +1 -1
  14. package/dist/plesk-ui-library-rtl.css.map +1 -1
  15. package/dist/plesk-ui-library.css +1 -1
  16. package/dist/plesk-ui-library.css.map +1 -1
  17. package/dist/plesk-ui-library.js +441 -626
  18. package/dist/plesk-ui-library.js.map +1 -1
  19. package/dist/plesk-ui-library.min.js +8 -12
  20. package/dist/plesk-ui-library.min.js.map +1 -1
  21. package/esm/components/AutoClosable/AutoClosable.js +1 -0
  22. package/esm/components/InputNumber/InputNumber.js +2 -2
  23. package/esm/components/Item/Item.js +64 -153
  24. package/esm/components/Overlay/Overlay.js +35 -25
  25. package/esm/components/Popover/Popover.js +1 -1
  26. package/esm/components/SegmentedControl/SegmentedControl.js +1 -0
  27. package/esm/components/Tabs/SearchBar.js +40 -147
  28. package/esm/components/Tabs/Tab.js +1 -49
  29. package/esm/components/Tabs/Tabs.js +49 -99
  30. package/esm/components/Toolbar/ToolbarItem.js +1 -0
  31. package/esm/components/index.js +1 -2
  32. package/esm/index.js +1 -1
  33. package/package.json +28 -33
  34. package/styleguide/build/bundle.50841a29.js +2 -0
  35. package/styleguide/build/{bundle.8a07b2dd.js.LICENSE.txt → bundle.50841a29.js.LICENSE.txt} +27 -23
  36. package/styleguide/index.html +2 -2
  37. package/types/src/components/Action/Action.d.ts +1 -1
  38. package/types/src/components/Alert/Alert.d.ts +1 -1
  39. package/types/src/components/AutoClosable/AutoClosable.d.ts +23 -21
  40. package/types/src/components/AuxiliaryActions/AuxiliaryActions.d.ts +1 -1
  41. package/types/src/components/Badge/Badge.d.ts +1 -1
  42. package/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  43. package/types/src/components/Button/Button.d.ts +2 -2
  44. package/types/src/components/Button/ButtonContext.d.ts +1 -1
  45. package/types/src/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  46. package/types/src/components/Card/PreviewPanel.d.ts +2 -2
  47. package/types/src/components/Carousel/Carousel.d.ts +1 -1
  48. package/types/src/components/Checkbox/Checkbox.d.ts +1 -1
  49. package/types/src/components/ClosingConfirmation/useClosingConfirmation.d.ts +1 -1
  50. package/types/src/components/ComboBox/ComboBox.d.ts +2 -2
  51. package/types/src/components/ComboBox/ComboBoxOption.d.ts +1 -1
  52. package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +5 -5
  53. package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +2 -2
  54. package/types/src/components/ContentLoader/ContentLoader.d.ts +2 -2
  55. package/types/src/components/ContentLoader/IconsLoader.d.ts +2 -2
  56. package/types/src/components/Cuttable/Cuttable.d.ts +3 -3
  57. package/types/src/components/Dialog/Dialog.d.ts +3 -3
  58. package/types/src/components/DistractionFreeModeContext/DistractionFreeModeContext.d.ts +1 -1
  59. package/types/src/components/Drawer/Drawer.d.ts +1 -1
  60. package/types/src/components/Drawer/DrawerProgress.d.ts +4 -4
  61. package/types/src/components/Drawer/Header.d.ts +1 -1
  62. package/types/src/components/Dropdown/Dropdown.d.ts +1 -1
  63. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessage.d.ts +1 -1
  64. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageActions.d.ts +1 -1
  65. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.d.ts +1 -1
  66. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.d.ts +1 -1
  67. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.d.ts +1 -1
  68. package/types/src/components/Figure/Figure.d.ts +1 -1
  69. package/types/src/components/Form/Form.d.ts +2 -2
  70. package/types/src/components/Form/types.d.ts +7 -7
  71. package/types/src/components/Form/utils.d.ts +3 -3
  72. package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.d.ts +1 -1
  73. package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +4 -4
  74. package/types/src/components/FormFieldPassword/PasswordMeter.d.ts +1 -1
  75. package/types/src/components/FormFieldPassword/estimatePassword.d.ts +2 -2
  76. package/types/src/components/FormFieldSelect/FormFieldSelect.d.ts +2 -2
  77. package/types/src/components/FormFieldText/FormFieldText.d.ts +4 -4
  78. package/types/src/components/Grid/Grid.d.ts +4 -4
  79. package/types/src/components/GridCol/GridCol.d.ts +2 -2
  80. package/types/src/components/Heading/Heading.d.ts +1 -1
  81. package/types/src/components/Hint/Hint.d.ts +1 -1
  82. package/types/src/components/Icon/Icon.d.ts +3 -3
  83. package/types/src/components/Icon/constants.d.ts +1 -1
  84. package/types/src/components/InPlaceEdit/InPlaceEdit.d.ts +2 -2
  85. package/types/src/components/Input/Input.d.ts +4 -3
  86. package/types/src/components/InputFile/InputFile.d.ts +1 -1
  87. package/types/src/components/Item/Item.d.ts +79 -0
  88. package/types/src/components/Item/index.d.ts +2 -0
  89. package/types/src/components/ItemLink/ItemLink.d.ts +1 -1
  90. package/types/src/components/ItemList/ItemList.d.ts +7 -7
  91. package/types/src/components/Label/Label.d.ts +3 -3
  92. package/types/src/components/Layer/Layer.d.ts +1 -1
  93. package/types/src/components/Layout/Layout.d.ts +9 -9
  94. package/types/src/components/Link/Link.d.ts +3 -3
  95. package/types/src/components/List/ListAction.d.ts +3 -3
  96. package/types/src/components/List/ListActions.d.ts +2 -2
  97. package/types/src/components/List/ListActionsDivider.d.ts +2 -2
  98. package/types/src/components/List/ListEmptyView.d.ts +1 -1
  99. package/types/src/components/List/ListOperation.d.ts +9 -5
  100. package/types/src/components/List/ListOperationContext.d.ts +1 -1
  101. package/types/src/components/LocaleProvider/LocaleProvider.d.ts +5 -5
  102. package/types/src/components/Markdown/Markdown.d.ts +2 -2
  103. package/types/src/components/Media/Media.d.ts +1 -1
  104. package/types/src/components/Media/MediaSection.d.ts +1 -1
  105. package/types/src/components/Menu/Menu.d.ts +1 -1
  106. package/types/src/components/Menu/MenuBaseItem.d.ts +3 -3
  107. package/types/src/components/Menu/MenuDivider.d.ts +1 -1
  108. package/types/src/components/Menu/MenuHeader.d.ts +1 -1
  109. package/types/src/components/Menu/MenuItem.d.ts +2 -2
  110. package/types/src/components/Menu/MenuSelectableItem.d.ts +2 -2
  111. package/types/src/components/Overlay/Overlay.d.ts +2 -2
  112. package/types/src/components/PageHeader/PageHeader.d.ts +1 -1
  113. package/types/src/components/Pagination/Pagination.d.ts +2 -2
  114. package/types/src/components/Panel/Panel.d.ts +3 -3
  115. package/types/src/components/Paragraph/Paragraph.d.ts +1 -1
  116. package/types/src/components/Plaintext/Plaintext.d.ts +1 -1
  117. package/types/src/components/Popover/Popover.d.ts +5 -3
  118. package/types/src/components/Popper/Popper.d.ts +2 -2
  119. package/types/src/components/Progress/Progress.d.ts +2 -2
  120. package/types/src/components/ProgressBar/ProgressBar.d.ts +1 -1
  121. package/types/src/components/ProgressBar/ProgressIndicator.d.ts +1 -1
  122. package/types/src/components/ProgressDialog/ProgressDialog.d.ts +2 -2
  123. package/types/src/components/ProgressStep/ProgressStep.d.ts +2 -2
  124. package/types/src/components/Radio/Radio.d.ts +1 -1
  125. package/types/src/components/Rating/Rating.d.ts +1 -1
  126. package/types/src/components/Section/Section.d.ts +5 -5
  127. package/types/src/components/Section/SectionItem.d.ts +1 -1
  128. package/types/src/components/SegmentedControl/SegmentedControl.d.ts +16 -12
  129. package/types/src/components/Select/MultiValue.d.ts +1 -1
  130. package/types/src/components/Select/Select.d.ts +1 -1
  131. package/types/src/components/Select/SelectControl.d.ts +1 -1
  132. package/types/src/components/Select/SelectOption.d.ts +1 -1
  133. package/types/src/components/Select/SelectOptionGroup.d.ts +1 -1
  134. package/types/src/components/Select/structures.d.ts +3 -3
  135. package/types/src/components/Skeleton/Skeleton.d.ts +1 -1
  136. package/types/src/components/Spinner/Spinner.d.ts +1 -1
  137. package/types/src/components/SplitButton/SplitButton.d.ts +1 -1
  138. package/types/src/components/Spot/Spot.d.ts +1 -1
  139. package/types/src/components/Spot/SpotPopup.d.ts +5 -3
  140. package/types/src/components/Squeezer/Squeezer.d.ts +2 -2
  141. package/types/src/components/Status/Status.d.ts +3 -3
  142. package/types/src/components/StatusMessage/StatusMessage.d.ts +1 -1
  143. package/types/src/components/Subnav/Subnav.d.ts +1 -1
  144. package/types/src/components/Switch/Switch.d.ts +3 -2
  145. package/types/src/components/SwitchesPanel/SwitchesPanel.d.ts +1 -1
  146. package/types/src/components/SwitchesPanelItem/SwitchesPanelItem.d.ts +1 -1
  147. package/types/src/components/Tabs/SearchBar.d.ts +107 -0
  148. package/types/src/components/Tabs/Tab.d.ts +62 -0
  149. package/types/src/components/Tabs/Tabs.d.ts +111 -0
  150. package/types/src/components/Tabs/index.d.ts +6 -0
  151. package/types/src/components/Text/Text.d.ts +1 -1
  152. package/types/src/components/TextArea/TextArea.d.ts +4 -4
  153. package/types/src/components/Toast/Toast.d.ts +2 -2
  154. package/types/src/components/Toaster/Toaster.d.ts +4 -4
  155. package/types/src/components/Toolbar/RegistryContext.d.ts +2 -2
  156. package/types/src/components/Toolbar/Toolbar.d.ts +2 -2
  157. package/types/src/components/Toolbar/ToolbarExpander.d.ts +2 -2
  158. package/types/src/components/Toolbar/ToolbarGroup.d.ts +1 -1
  159. package/types/src/components/Toolbar/ToolbarItem.d.ts +1 -1
  160. package/types/src/components/Toolbar/ToolbarMenu.d.ts +1 -1
  161. package/types/src/components/Tooltip/Tooltip.d.ts +2 -2
  162. package/types/src/components/Tour/Tour.d.ts +2 -2
  163. package/types/src/components/Translate/Translate.d.ts +5 -3
  164. package/types/src/components/index.d.ts +3 -2
  165. package/types/src/components/utils.d.ts +5 -5
  166. package/types/src/utils/types/PolymorphicComponent.d.ts +5 -5
  167. package/styleguide/build/bundle.8a07b2dd.js +0 -2
@@ -945,6 +945,7 @@ const AutoClosableContext = /*#__PURE__*/(0, _react.createContext)(null);
945
945
  class AutoClosable extends _react.Component {
946
946
  constructor() {
947
947
  super(...arguments);
948
+ _defineProperty(this, "context", void 0);
948
949
  _defineProperty(this, "children", []);
949
950
  _defineProperty(this, "addChild", child => {
950
951
  this.children.push(child);
@@ -10179,8 +10180,8 @@ const toNumber = value => {
10179
10180
  }
10180
10181
  return value;
10181
10182
  };
10182
- const isMinDisabled = (value, min) => min !== undefined && value !== '' && value <= min;
10183
- const isMaxDisabled = (value, max) => max !== undefined && value !== '' && value >= max;
10183
+ const isMinDisabled = (value, min) => min !== undefined && value !== '' && +value <= min;
10184
+ const isMaxDisabled = (value, max) => max !== undefined && value !== '' && +value >= max;
10184
10185
 
10185
10186
  /**
10186
10187
  * `InputNumber` component is used for entering integer numbers.
@@ -10329,10 +10330,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10329
10330
 
10330
10331
  /***/ }),
10331
10332
 
10332
- /***/ "./components/Item/Item.js":
10333
- /*!*********************************!*\
10334
- !*** ./components/Item/Item.js ***!
10335
- \*********************************/
10333
+ /***/ "./components/Item/Item.tsx":
10334
+ /*!**********************************!*\
10335
+ !*** ./components/Item/Item.tsx ***!
10336
+ \**********************************/
10336
10337
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
10337
10338
 
10338
10339
  "use strict";
@@ -10342,8 +10343,7 @@ Object.defineProperty(exports, "__esModule", ({
10342
10343
  value: true
10343
10344
  }));
10344
10345
  exports["default"] = void 0;
10345
- var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
10346
- var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
10346
+ var _react = __webpack_require__(/*! react */ "react");
10347
10347
  var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "../node_modules/classnames/index.js"));
10348
10348
  var _constants = __webpack_require__(/*! ../../constants */ "./constants.js");
10349
10349
  var _Icon = _interopRequireWildcard(__webpack_require__(/*! ../Icon */ "./components/Icon/index.tsx"));
@@ -10353,28 +10353,38 @@ var _Tooltip = _interopRequireDefault(__webpack_require__(/*! ../Tooltip */ "./c
10353
10353
  var _utils = __webpack_require__(/*! ../utils */ "./components/utils.tsx");
10354
10354
  __webpack_require__(/*! ./Item.less */ "./components/Item/Item.less");
10355
10355
  var _jsxRuntime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
10356
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10357
10356
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10358
10357
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
10358
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10359
10359
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
10360
10360
 
10361
- const VIEW_SIMPLE = 'simple';
10362
- const VIEW_CARD = 'card';
10363
-
10364
10361
  /**
10365
10362
  * `Item` component is element of [ItemList](#!/ItemList) and it is presented as
10366
10363
  * a combination of icon, text title and content (similar to [Media](#!/Media)).
10367
10364
  * @since 0.0.48
10368
10365
  */
10369
- class Item extends _react.Component {
10370
- renderTitle(title) {
10366
+ const Item = _ref => {
10367
+ let {
10368
+ children,
10369
+ baseClassName = `${_constants.CLS_PREFIX}item`,
10370
+ component,
10371
+ view = 'simple',
10372
+ className,
10373
+ icon,
10374
+ title,
10375
+ description,
10376
+ footer,
10377
+ value,
10378
+ tooltip,
10379
+ disabled,
10380
+ hoverable,
10381
+ ...props
10382
+ } = _ref;
10383
+ const Tag = component || 'div';
10384
+ const renderTitle = () => {
10371
10385
  if (!title) {
10372
10386
  return null;
10373
10387
  }
10374
- const {
10375
- baseClassName,
10376
- view
10377
- } = this.props;
10378
10388
  let wrappable = false;
10379
10389
  if (typeof title === 'string') {
10380
10390
  title = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -10399,8 +10409,8 @@ class Item extends _react.Component {
10399
10409
  });
10400
10410
  }
10401
10411
  return title;
10402
- }
10403
- renderIcon(icon) {
10412
+ };
10413
+ const renderIcon = () => {
10404
10414
  if (!icon) {
10405
10415
  return null;
10406
10416
  }
@@ -10413,157 +10423,59 @@ class Item extends _react.Component {
10413
10423
  return _Icon.default.create(icon, {
10414
10424
  size: _Icon.ICON_SIZE_32
10415
10425
  });
10416
- }
10417
- render() {
10418
- const {
10419
- children,
10420
- baseClassName,
10421
- component: Tag,
10422
- view,
10423
- className,
10424
- icon,
10425
- title,
10426
- description,
10427
- footer,
10428
- value,
10429
- tooltip,
10430
- disabled,
10431
- hoverable,
10432
- ...props
10433
- } = this.props;
10434
- if (props.onClick) {
10435
- if (disabled) {
10436
- props.onClick = e => e.preventDefault();
10437
- } else {
10438
- props.tabIndex = 0;
10439
- props.onKeyDown = (0, _utils.wrapFunction)(props.onKeyDown, e => {
10440
- if (e.key === 'Enter') {
10441
- e.preventDefault();
10442
- e.currentTarget.click();
10443
- }
10444
- });
10445
- }
10446
- }
10447
- const item = /*#__PURE__*/(0, _jsxRuntime.jsxs)(Tag, {
10448
- className: (0, _classnames.default)(baseClassName, {
10449
- [`${baseClassName}--card`]: view === 'card',
10450
- [`${baseClassName}--disabled`]: disabled,
10451
- [`${baseClassName}--hoverable`]: hoverable
10452
- }, className),
10453
- ...props,
10454
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Media.default, {
10455
- image: this.renderIcon(icon),
10456
- title: this.renderTitle(title),
10457
- className: `${baseClassName}__media`,
10458
- children: [description && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
10459
- className: `${baseClassName}__description`,
10460
- children: description
10461
- }), _react.Children.toArray(children).length ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
10462
- className: `${baseClassName}__content`,
10463
- children: children
10464
- }) : null]
10465
- }), footer && /*#__PURE__*/(0, _jsxRuntime.jsx)("footer", {
10466
- className: `${baseClassName}__footer`,
10467
- children: footer
10468
- })]
10469
- });
10470
- if (tooltip) {
10471
- return (0, _utils.createProxyProps)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
10472
- title: tooltip,
10473
- children: /*#__PURE__*/(0, _react.cloneElement)(item, props)
10474
- }));
10426
+ };
10427
+ if (props.onClick) {
10428
+ if (disabled) {
10429
+ props.onClick = e => e.preventDefault();
10430
+ } else {
10431
+ props.tabIndex = 0;
10432
+ props.onKeyDown = (0, _utils.wrapFunction)(props.onKeyDown, e => {
10433
+ if (e.key === 'Enter') {
10434
+ e.preventDefault();
10435
+ e.currentTarget.click();
10436
+ }
10437
+ });
10475
10438
  }
10476
- return item;
10477
10439
  }
10478
- }
10479
- Item.propTypes = {
10480
- /**
10481
- * Component to render as the root element. Useful when rendering a `Item` as `<a>` or `<Link>`.
10482
- * @since 0.0.48
10483
- */
10484
- component: _propTypes.default.elementType,
10485
- /**
10486
- * View mode.
10487
- * @since 2.1.0
10488
- */
10489
- view: _propTypes.default.oneOf([VIEW_SIMPLE, VIEW_CARD]),
10490
- /**
10491
- * Icon.
10492
- * @since 0.0.48
10493
- */
10494
- icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
10495
- /**
10496
- * Title.
10497
- * @since 0.0.48
10498
- */
10499
- title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
10500
- /**
10501
- * Content for footer.
10502
- * @since 2.1.0
10503
- */
10504
- footer: _propTypes.default.node,
10505
- /**
10506
- * Description. Renders as small grey text.
10507
- * @since 2.1.0
10508
- */
10509
- description: _propTypes.default.node,
10510
- /**
10511
- * Content of the `Item`.
10512
- * @since 0.0.48
10513
- */
10514
- children: _propTypes.default.node,
10515
- /**
10516
- * An unique value. It needs only in ItemList with selectable view.
10517
- * @since 2.3.0
10518
- */
10519
- value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
10520
- /**
10521
- * Tooltip for component.
10522
- * @since 2.5.1
10523
- */
10524
- tooltip: _propTypes.default.node,
10525
- /**
10526
- * @ignore
10527
- */
10528
- className: _propTypes.default.string,
10529
- /**
10530
- * @ignore
10531
- */
10532
- baseClassName: _propTypes.default.string,
10533
- /**
10534
- * Whether disabled or not.
10535
- * @since 3.15.0
10536
- */
10537
- disabled: _propTypes.default.bool,
10538
- /**
10539
- * Add hover shadow and pointer cursor.
10540
- * @since 3.26.0
10541
- */
10542
- hoverable: _propTypes.default.bool
10543
- };
10544
- Item.defaultProps = {
10545
- component: 'div',
10546
- view: VIEW_SIMPLE,
10547
- hoverable: undefined,
10548
- title: undefined,
10549
- description: undefined,
10550
- icon: undefined,
10551
- footer: undefined,
10552
- children: undefined,
10553
- value: undefined,
10554
- tooltip: undefined,
10555
- className: undefined,
10556
- disabled: undefined,
10557
- baseClassName: `${_constants.CLS_PREFIX}item`
10440
+ const item = /*#__PURE__*/(0, _jsxRuntime.jsxs)(Tag, {
10441
+ className: (0, _classnames.default)(baseClassName, {
10442
+ [`${baseClassName}--card`]: view === 'card',
10443
+ [`${baseClassName}--disabled`]: disabled,
10444
+ [`${baseClassName}--hoverable`]: hoverable
10445
+ }, className),
10446
+ ...props,
10447
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Media.default, {
10448
+ image: renderIcon(),
10449
+ title: renderTitle(),
10450
+ className: `${baseClassName}__media`,
10451
+ children: [description && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
10452
+ className: `${baseClassName}__description`,
10453
+ children: description
10454
+ }), _react.Children.toArray(children).length ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
10455
+ className: `${baseClassName}__content`,
10456
+ children: children
10457
+ }) : null]
10458
+ }), footer && /*#__PURE__*/(0, _jsxRuntime.jsx)("footer", {
10459
+ className: `${baseClassName}__footer`,
10460
+ children: footer
10461
+ })]
10462
+ });
10463
+ if (tooltip) {
10464
+ return (0, _utils.createProxyProps)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
10465
+ title: tooltip,
10466
+ children: /*#__PURE__*/(0, _react.cloneElement)(item, props)
10467
+ }));
10468
+ }
10469
+ return item;
10558
10470
  };
10559
10471
  var _default = exports["default"] = Item;
10560
10472
 
10561
10473
  /***/ }),
10562
10474
 
10563
- /***/ "./components/Item/index.js":
10564
- /*!**********************************!*\
10565
- !*** ./components/Item/index.js ***!
10566
- \**********************************/
10475
+ /***/ "./components/Item/index.tsx":
10476
+ /*!***********************************!*\
10477
+ !*** ./components/Item/index.tsx ***!
10478
+ \***********************************/
10567
10479
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
10568
10480
 
10569
10481
  "use strict";
@@ -10578,7 +10490,7 @@ Object.defineProperty(exports, "default", ({
10578
10490
  return _Item.default;
10579
10491
  }
10580
10492
  }));
10581
- var _Item = _interopRequireDefault(__webpack_require__(/*! ./Item */ "./components/Item/Item.js"));
10493
+ var _Item = _interopRequireDefault(__webpack_require__(/*! ./Item */ "./components/Item/Item.tsx"));
10582
10494
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10583
10495
 
10584
10496
  /***/ }),
@@ -14824,6 +14736,7 @@ Object.defineProperty(exports, "__esModule", ({
14824
14736
  exports["default"] = void 0;
14825
14737
  var _utils = __webpack_require__(/*! ../../utils */ "./utils.tsx");
14826
14738
  var _react = __webpack_require__(/*! react */ "react");
14739
+ var _reactTransitionGroup = __webpack_require__(/*! react-transition-group */ "../node_modules/react-transition-group/esm/index.js");
14827
14740
  var _utils2 = __webpack_require__(/*! ../utils */ "./components/utils.tsx");
14828
14741
  var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "../node_modules/classnames/index.js"));
14829
14742
  var _constants = __webpack_require__(/*! ../../constants */ "./constants.js");
@@ -14855,18 +14768,8 @@ const OverlayCore = _ref => {
14855
14768
  onAnimationExited,
14856
14769
  ...props
14857
14770
  } = _ref;
14858
- const animationTimeoutRef = (0, _react.useRef)();
14771
+ const backdropRef = (0, _react.useRef)(null);
14859
14772
  const contentRef = (0, _react.useRef)(null);
14860
- const prevIsOpen = (0, _react.useRef)(externalIsOpen);
14861
- if (prevIsOpen.current !== externalIsOpen) {
14862
- prevIsOpen.current = externalIsOpen;
14863
- if (externalIsOpen) {
14864
- clearTimeout(animationTimeoutRef.current);
14865
- } else {
14866
- animationTimeoutRef.current = window.setTimeout(onAnimationExited, 300);
14867
- }
14868
- }
14869
- (0, _react.useEffect)(() => () => clearTimeout(animationTimeoutRef.current), []);
14870
14773
  const [isOpen, setIsOpen] = (0, _react.useState)(false);
14871
14774
  (0, _react.useEffect)(() => setIsOpen(externalIsOpen), [externalIsOpen]);
14872
14775
  const focus = () => {
@@ -14921,29 +14824,48 @@ const OverlayCore = _ref => {
14921
14824
  children: element
14922
14825
  });
14923
14826
  };
14827
+ const openClassName = `${baseClassName}--open`;
14828
+ const transitionBaseProps = {
14829
+ in: isOpen,
14830
+ classNames: {
14831
+ enterActive: openClassName,
14832
+ enterDone: openClassName
14833
+ },
14834
+ timeout: 300
14835
+ };
14924
14836
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Layer.default, {
14925
14837
  level: _constants.Z_INDEX_OVERLAY,
14926
14838
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
14927
- className: (0, _classnames.default)(baseClassName, `${baseClassName}--${placement}`, `${baseClassName}--${size}`, sideBanner && `${baseClassName}--side`, isOpen && `${baseClassName}--open`, className),
14839
+ className: (0, _classnames.default)(baseClassName, `${baseClassName}--${placement}`, `${baseClassName}--${size}`, sideBanner && `${baseClassName}--side`, className),
14928
14840
  style: {
14929
14841
  '--overlay-side-banner-background': sideBannerContainer?.background,
14930
14842
  '--overlay-side-banner-align': sideBannerContainer?.align,
14931
14843
  ...style
14932
14844
  },
14933
14845
  ...props,
14934
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
14935
- className: `${baseClassName}__backdrop`,
14936
- onClick: handleBackdropClick
14937
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_FocusTrap.default, {
14938
- className: `${baseClassName}__content`,
14939
- onKeyUp: canCloseOnEscapePress ? handleContentKeyUp : undefined,
14940
- ref: contentRef,
14941
- role: "dialog",
14942
- "aria-modal": "true",
14943
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
14944
- className: `${baseClassName}__body`,
14945
- children: children
14946
- }), sideBanner && renderImage(sideBanner)]
14846
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
14847
+ nodeRef: backdropRef,
14848
+ ...transitionBaseProps,
14849
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
14850
+ ref: backdropRef,
14851
+ className: `${baseClassName}__backdrop`,
14852
+ onClick: handleBackdropClick
14853
+ })
14854
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
14855
+ onExited: onAnimationExited,
14856
+ nodeRef: contentRef,
14857
+ ...transitionBaseProps,
14858
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_FocusTrap.default, {
14859
+ className: `${baseClassName}__content`,
14860
+ onKeyUp: canCloseOnEscapePress ? handleContentKeyUp : undefined,
14861
+ ref: contentRef,
14862
+ role: "dialog",
14863
+ "aria-modal": "true",
14864
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
14865
+ className: `${baseClassName}__body`,
14866
+ children: children
14867
+ }), sideBanner && renderImage(sideBanner)]
14868
+ })
14947
14869
  })]
14948
14870
  })
14949
14871
  });
@@ -15801,7 +15723,7 @@ class Popover extends _react.Component {
15801
15723
  ghost: true,
15802
15724
  icon: {
15803
15725
  name: 'cross-mark',
15804
- size: title ? 16 : 12
15726
+ size: title ? '16' : '12'
15805
15727
  }
15806
15728
  });
15807
15729
  const heading = title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactMeasure.default, {
@@ -17541,6 +17463,7 @@ class SegmentedControl extends _react.Component {
17541
17463
  selected: this.props.selected,
17542
17464
  monoWidth: 0
17543
17465
  });
17466
+ _defineProperty(this, "context", void 0);
17544
17467
  _defineProperty(this, "isCompact", false);
17545
17468
  _defineProperty(this, "rootRef", /*#__PURE__*/(0, _react.createRef)());
17546
17469
  _defineProperty(this, "adjustMonospaced", () => {
@@ -20075,10 +19998,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
20075
19998
 
20076
19999
  /***/ }),
20077
20000
 
20078
- /***/ "./components/Tabs/SearchBar.js":
20079
- /*!**************************************!*\
20080
- !*** ./components/Tabs/SearchBar.js ***!
20081
- \**************************************/
20001
+ /***/ "./components/Tabs/SearchBar.tsx":
20002
+ /*!***************************************!*\
20003
+ !*** ./components/Tabs/SearchBar.tsx ***!
20004
+ \***************************************/
20082
20005
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
20083
20006
 
20084
20007
  "use strict";
@@ -20088,24 +20011,23 @@ Object.defineProperty(exports, "__esModule", ({
20088
20011
  value: true
20089
20012
  }));
20090
20013
  exports["default"] = void 0;
20091
- var _utils = __webpack_require__(/*! ../../utils */ "./utils.tsx");
20092
- var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
20093
- var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
20094
20014
  var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "../node_modules/classnames/index.js"));
20015
+ var _react = __webpack_require__(/*! react */ "react");
20095
20016
  var _constants = __webpack_require__(/*! ../../constants */ "./constants.js");
20017
+ var _utils = __webpack_require__(/*! ../../utils */ "./utils.tsx");
20018
+ var _Badge = _interopRequireDefault(__webpack_require__(/*! ../Badge */ "./components/Badge/index.tsx"));
20019
+ var _Button = _interopRequireDefault(__webpack_require__(/*! ../Button */ "./components/Button/index.tsx"));
20096
20020
  var _ButtonGroup = _interopRequireDefault(__webpack_require__(/*! ../ButtonGroup */ "./components/ButtonGroup/index.tsx"));
20021
+ var _DistractionFreeModeContext = _interopRequireDefault(__webpack_require__(/*! ../DistractionFreeModeContext */ "./components/DistractionFreeModeContext/index.tsx"));
20097
20022
  var _Input = _interopRequireDefault(__webpack_require__(/*! ../Input */ "./components/Input/index.tsx"));
20098
- var _Button = _interopRequireDefault(__webpack_require__(/*! ../Button */ "./components/Button/index.tsx"));
20099
- var _Badge = _interopRequireDefault(__webpack_require__(/*! ../Badge */ "./components/Badge/index.tsx"));
20100
20023
  var _Menu = _interopRequireWildcard(__webpack_require__(/*! ../Menu */ "./components/Menu/index.tsx"));
20101
20024
  var _ResponsiveContext = _interopRequireDefault(__webpack_require__(/*! ../ResponsiveContext */ "./components/ResponsiveContext/index.tsx"));
20102
- var _DistractionFreeModeContext = _interopRequireDefault(__webpack_require__(/*! ../DistractionFreeModeContext */ "./components/DistractionFreeModeContext/index.tsx"));
20103
20025
  var _utils2 = __webpack_require__(/*! ../utils */ "./components/utils.tsx");
20104
20026
  __webpack_require__(/*! ./SearchBar.less */ "./components/Tabs/SearchBar.less");
20105
20027
  var _jsxRuntime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
20106
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20107
20028
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20108
20029
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20030
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20109
20031
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20110
20032
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
20111
20033
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
@@ -20119,10 +20041,11 @@ class SearchBar extends _react.Component {
20119
20041
  _defineProperty(this, "state", {
20120
20042
  focused: false,
20121
20043
  overMenu: false,
20122
- value: this.props.inputProps.value || '',
20044
+ value: `${this.props.inputProps?.value || ''}`,
20123
20045
  highlightedValue: null
20124
20046
  });
20125
20047
  _defineProperty(this, "isFocusScheduled", false);
20048
+ _defineProperty(this, "search", void 0);
20126
20049
  _defineProperty(this, "keyboardNavigation", key => {
20127
20050
  const {
20128
20051
  onItemSelect,
@@ -20137,7 +20060,7 @@ class SearchBar extends _react.Component {
20137
20060
  let nextIndex;
20138
20061
  if (key === 'ArrowUp') {
20139
20062
  nextIndex = Math.max(currentIndex - 1, 0);
20140
- } else if (key === 'ArrowDown') {
20063
+ } else {
20141
20064
  nextIndex = Math.min(currentIndex + 1, res.length - 1);
20142
20065
  }
20143
20066
  this.setState({
@@ -20172,7 +20095,7 @@ class SearchBar extends _react.Component {
20172
20095
  } = this.props;
20173
20096
  const {
20174
20097
  value
20175
- } = e.target;
20098
+ } = e.currentTarget;
20176
20099
  if (['Enter', 'Escape', 'ArrowUp', 'ArrowDown'].indexOf(e.key) !== -1) {
20177
20100
  this.checkKeys(e.key);
20178
20101
  return;
@@ -20251,7 +20174,7 @@ class SearchBar extends _react.Component {
20251
20174
  } = state;
20252
20175
  const nextState = {};
20253
20176
  if (inputPropsValue !== prevInputPropsValue) {
20254
- nextState.value = inputPropsValue;
20177
+ nextState.value = inputPropsValue ?? '';
20255
20178
  }
20256
20179
  nextState.prevInputProps = props.inputProps;
20257
20180
  return nextState;
@@ -20265,34 +20188,41 @@ class SearchBar extends _react.Component {
20265
20188
  isResponsive() {
20266
20189
  return this.props.responsive;
20267
20190
  }
20268
- getResults() {
20269
- let innerResults = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
20191
+ getResults(innerResults) {
20270
20192
  const {
20271
20193
  results
20272
20194
  } = this.props;
20273
20195
  if (!results) {
20274
20196
  return [];
20275
20197
  }
20276
- if (results.type === _Menu.default || innerResults) {
20198
+ if ('type' in results && results.type === _Menu.default || innerResults) {
20277
20199
  let res = [];
20278
20200
  const children = innerResults || results.props.children;
20201
+ if (!Array.isArray(children)) {
20202
+ return res;
20203
+ }
20279
20204
  for (let i = 0; i < children.length; i++) {
20280
20205
  const child = children[i];
20281
20206
  if (!child) {
20282
20207
  continue;
20283
20208
  }
20284
- if (child instanceof Array) {
20209
+ if (_react.Children.count(child) > 1) {
20285
20210
  res = res.concat(this.getResults(child));
20286
- } else if (child.type === _Menu.MenuItem || child.type === _Menu.MenuSelectableItem) {
20287
- res.push(child.key);
20211
+ } else if ((child.type === _Menu.MenuItem || child.type === _Menu.MenuSelectableItem) && child.key) {
20212
+ res.push(child.key.toString());
20288
20213
  }
20289
20214
  }
20290
20215
  return res;
20291
20216
  }
20292
- return results.map(item => item.value);
20217
+ return results.map(_ref => {
20218
+ let {
20219
+ value
20220
+ } = _ref;
20221
+ return value;
20222
+ });
20293
20223
  }
20294
20224
  getHighlightedValue() {
20295
- return this.state.highlightedValue || this.getResults()[0];
20225
+ return (this.state.highlightedValue || this.getResults()[0]) ?? null;
20296
20226
  }
20297
20227
  searchAction() {
20298
20228
  const {
@@ -20333,12 +20263,15 @@ class SearchBar extends _react.Component {
20333
20263
  }
20334
20264
  elementsIndexToKeyMapping(elements) {
20335
20265
  let result = [];
20266
+ if (!Array.isArray(elements)) {
20267
+ return result;
20268
+ }
20336
20269
  for (let i = 0; i < elements.length; i++) {
20337
20270
  const element = elements[i];
20338
20271
  if (!element) {
20339
20272
  continue;
20340
20273
  }
20341
- if (element instanceof Array) {
20274
+ if (Array.isArray(element)) {
20342
20275
  result = result.concat(this.elementsIndexToKeyMapping(element));
20343
20276
  } else {
20344
20277
  result.push(element.key);
@@ -20346,19 +20279,15 @@ class SearchBar extends _react.Component {
20346
20279
  }
20347
20280
  return result;
20348
20281
  }
20349
- renderResults() {
20282
+ renderResults(results) {
20350
20283
  const {
20351
- baseClassName,
20352
- results
20284
+ baseClassName
20353
20285
  } = this.props;
20354
20286
  const {
20355
20287
  focused,
20356
20288
  overMenu
20357
20289
  } = this.state;
20358
20290
  const highlightedValue = this.getHighlightedValue();
20359
- if (!results || results.length === 0) {
20360
- return null;
20361
- }
20362
20291
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Menu.default, {
20363
20292
  className: (0, _classnames.default)(`${baseClassName}__results`, {
20364
20293
  [`${baseClassName}__results--hidden`]: !focused && !overMenu
@@ -20372,10 +20301,9 @@ class SearchBar extends _react.Component {
20372
20301
  }, item.value))
20373
20302
  });
20374
20303
  }
20375
- renderResultsMenu() {
20304
+ renderResultsMenu(results) {
20376
20305
  const {
20377
20306
  baseClassName,
20378
- results,
20379
20307
  onItemSelect
20380
20308
  } = this.props;
20381
20309
  const {
@@ -20383,21 +20311,18 @@ class SearchBar extends _react.Component {
20383
20311
  overMenu
20384
20312
  } = this.state;
20385
20313
  const highlightedValue = this.getHighlightedValue();
20386
- if (!results) {
20387
- return null;
20388
- }
20389
20314
  return /*#__PURE__*/(0, _react.cloneElement)(results, {
20390
20315
  className: (0, _classnames.default)(`${baseClassName}__results`, {
20391
20316
  [`${baseClassName}__results--hidden`]: !focused && !overMenu
20392
- }, results.className),
20317
+ }, results.props.className),
20393
20318
  onMouseOver: this.handleMenuMouseOver,
20394
20319
  onMouseOut: this.handleMenuMouseOut,
20395
- onItemClick: (item, index) => {
20320
+ onItemClick: (_item, index) => {
20396
20321
  const indexMap = this.elementsIndexToKeyMapping(results.props.children);
20397
20322
  this.handleSelect(indexMap[index])();
20398
20323
  },
20399
20324
  children: _react.Children.map(results.props.children, child => {
20400
- if (onItemSelect && child && (child.type === _Menu.MenuItem || child.type === _Menu.MenuSelectableItem)) {
20325
+ if (onItemSelect && child && typeof child === 'object' && 'type' in child && (child.type === _Menu.MenuItem || child.type === _Menu.MenuSelectableItem)) {
20401
20326
  return /*#__PURE__*/(0, _react.cloneElement)(child, {
20402
20327
  active: child.key === highlightedValue
20403
20328
  });
@@ -20435,7 +20360,7 @@ class SearchBar extends _react.Component {
20435
20360
  className: (0, _classnames.default)(baseClassName, {
20436
20361
  [`${baseClassName}--focused`]: focused
20437
20362
  }, className),
20438
- style: isCollapsed || distractionFreeModeEnabled ? null : {
20363
+ style: isCollapsed || distractionFreeModeEnabled ? undefined : {
20439
20364
  maxWidth,
20440
20365
  minWidth
20441
20366
  },
@@ -20475,128 +20400,21 @@ class SearchBar extends _react.Component {
20475
20400
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
20476
20401
  icon: "search",
20477
20402
  onClick: this.handleSearch,
20478
- state: loading ? 'loading' : null,
20403
+ state: loading ? 'loading' : undefined,
20479
20404
  ghost: true
20480
20405
  })]
20481
20406
  })
20482
20407
  })
20483
- }), results && results.type === _Menu.default ? this.renderResultsMenu() : this.renderResults()]
20408
+ }), Array.isArray(results) && this.renderResults(results), results && !Array.isArray(results) && results.type === _Menu.default && this.renderResultsMenu(results)]
20484
20409
  });
20485
20410
  }
20486
20411
  }
20487
- const propTypes = {
20488
- /**
20489
- * @ignore
20490
- */
20491
- className: _propTypes.default.string,
20492
- /**
20493
- * @ignore
20494
- */
20495
- baseClassName: _propTypes.default.string,
20496
- /**
20497
- * Maximum width of SearchBar
20498
- * @since 0.1.0
20499
- */
20500
- maxWidth: _propTypes.default.number,
20501
- /**
20502
- * Minimum width of SearchBar
20503
- * @since 0.1.0
20504
- */
20505
- minWidth: _propTypes.default.number,
20506
- /**
20507
- * Should disable input and show spinner or not.
20508
- * @since 0.1.0
20509
- */
20510
- loading: _propTypes.default.bool,
20511
- /**
20512
- * Should collapse input or not. Used for control in independence of context.
20513
- * @since 0.1.0
20514
- */
20515
- responsive: _propTypes.default.bool,
20516
- /**
20517
- * Callback for pressing 'Enter' key or 'Search' button.
20518
- *
20519
- * arguments:
20520
- * * value - search value
20521
- * * clearHandler - function that clears input value
20522
- * @since 0.1.0
20523
- */
20524
- onSearch: _propTypes.default.func,
20525
- /**
20526
- * Callback for pressing any key in input. Used for a live search.
20527
- *
20528
- * arguments:
20529
- * * value - search value
20530
- * * clearHandler - function that clears input value
20531
- * @since 0.1.0
20532
- */
20533
- onTyping: _propTypes.default.func,
20534
- /**
20535
- * Callback for selecting menu item with mouse click or key pressing.
20536
- *
20537
- * arguments:
20538
- * * value - selected value
20539
- * * clearHandler - function that clears input value
20540
- * @since 0.1.0
20541
- */
20542
- onItemSelect: _propTypes.default.func,
20543
- /**
20544
- * Should render toggle button or not.
20545
- * @since 2.2.0
20546
- */
20547
- collapsable: _propTypes.default.bool,
20548
- /**
20549
- * Callback for pressing toggle button (in normal mode).
20550
- * @since 2.2.0
20551
- */
20552
- onCollapse: _propTypes.default.func,
20553
- /**
20554
- * Callback for pressing toggle button (in collapsed mode).
20555
- * @since 2.2.0
20556
- */
20557
- onExpand: _propTypes.default.func,
20558
- /**
20559
- * Results to display.
20560
- * Could be specified by array of objects with "value" and "title" properties or by Menu component.
20561
- * If Menu component is used then key property of MenuItem will be treated as value.
20562
- * @since 0.1.0
20563
- */
20564
- results: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.shape({
20565
- value: _propTypes.default.string.isRequired,
20566
- title: _propTypes.default.string.isRequired
20567
- })), _propTypes.default.element]),
20568
- /**
20569
- * Props of underlying input element.
20570
- * @since 0.4.1
20571
- */
20572
- inputProps: _propTypes.default.object
20573
- };
20574
- const defaultProps = {
20575
- className: undefined,
20412
+ _defineProperty(SearchBar, "defaultProps", {
20576
20413
  baseClassName: `${_constants.CLS_PREFIX}search-bar`,
20577
20414
  maxWidth: 500,
20578
20415
  minWidth: 270,
20579
- loading: false,
20580
- responsive: undefined,
20581
- onSearch: undefined,
20582
- onTyping: undefined,
20583
- onItemSelect: undefined,
20584
- collapsable: false,
20585
- onCollapse: undefined,
20586
- onExpand: undefined,
20587
- results: undefined,
20588
20416
  inputProps: {}
20589
- };
20590
- SearchBar.propTypes = {
20591
- ...propTypes,
20592
- distractionFreeMode: _propTypes.default.shape({
20593
- enabled: _propTypes.default.bool.isRequired,
20594
- toggle: _propTypes.default.func.isRequired
20595
- })
20596
- };
20597
- SearchBar.defaultProps = {
20598
- distractionFreeMode: undefined
20599
- };
20417
+ });
20600
20418
  const SearchBarWrapper = props => {
20601
20419
  const distractionFreeMode = (0, _react.useContext)(_DistractionFreeModeContext.default);
20602
20420
  let responsive = (0, _react.useContext)(_ResponsiveContext.default);
@@ -20608,16 +20426,14 @@ const SearchBarWrapper = props => {
20608
20426
  });
20609
20427
  };
20610
20428
  SearchBarWrapper.displayName = 'SearchBar';
20611
- SearchBarWrapper.propTypes = propTypes;
20612
- SearchBarWrapper.defaultProps = defaultProps;
20613
20429
  var _default = exports["default"] = SearchBarWrapper;
20614
20430
 
20615
20431
  /***/ }),
20616
20432
 
20617
- /***/ "./components/Tabs/Tab.js":
20618
- /*!********************************!*\
20619
- !*** ./components/Tabs/Tab.js ***!
20620
- \********************************/
20433
+ /***/ "./components/Tabs/Tab.tsx":
20434
+ /*!*********************************!*\
20435
+ !*** ./components/Tabs/Tab.tsx ***!
20436
+ \*********************************/
20621
20437
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
20622
20438
 
20623
20439
  "use strict";
@@ -20627,10 +20443,7 @@ Object.defineProperty(exports, "__esModule", ({
20627
20443
  value: true
20628
20444
  }));
20629
20445
  exports["default"] = void 0;
20630
- var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
20631
- var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
20632
20446
  var _jsxRuntime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
20633
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20634
20447
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
20635
20448
  /* eslint-disable react/no-unused-prop-types */
20636
20449
 
@@ -20641,7 +20454,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
20641
20454
  * It can also display a [Label](#!/Label) next to the tab name for showing additional information about its content.
20642
20455
  * You can make `Tabs` closeable, for example, if you are using them for opening and displaying files.
20643
20456
  * @since 0.0.35
20644
- */const Tab = _ref => {
20457
+ */
20458
+ const Tab = _ref => {
20645
20459
  let {
20646
20460
  children
20647
20461
  } = _ref;
@@ -20649,59 +20463,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
20649
20463
  children: children
20650
20464
  });
20651
20465
  };
20652
- Tab.propTypes = {
20653
- /**
20654
- * Tab title
20655
- * @since 0.0.35
20656
- */
20657
- title: _propTypes.default.node.isRequired,
20658
- /**
20659
- * Label in tab title
20660
- * @since 0.0.42
20661
- */
20662
- label: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]),
20663
- /**
20664
- * Name of icon or Icon component for tab
20665
- * @since 0.0.42
20666
- */
20667
- icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
20668
- /**
20669
- * Activate callback.
20670
- * @since 0.0.43
20671
- */
20672
- onActivate: _propTypes.default.func,
20673
- /**
20674
- * Close callback
20675
- * @since 0.0.58
20676
- */
20677
- onClose: _propTypes.default.func,
20678
- /**
20679
- * Component to render as the root element.
20680
- * @since 2.5.1
20681
- */
20682
- component: _propTypes.default.elementType,
20683
- /**
20684
- * Tab content
20685
- * @since 0.0.47
20686
- */
20687
- children: _propTypes.default.node
20688
- };
20689
- Tab.defaultProps = {
20690
- label: undefined,
20691
- icon: undefined,
20692
- onActivate: undefined,
20693
- onClose: undefined,
20694
- children: undefined,
20695
- component: undefined
20696
- };
20697
20466
  var _default = exports["default"] = Tab;
20698
20467
 
20699
20468
  /***/ }),
20700
20469
 
20701
- /***/ "./components/Tabs/Tabs.js":
20702
- /*!*********************************!*\
20703
- !*** ./components/Tabs/Tabs.js ***!
20704
- \*********************************/
20470
+ /***/ "./components/Tabs/Tabs.tsx":
20471
+ /*!**********************************!*\
20472
+ !*** ./components/Tabs/Tabs.tsx ***!
20473
+ \**********************************/
20705
20474
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
20706
20475
 
20707
20476
  "use strict";
@@ -20711,31 +20480,29 @@ Object.defineProperty(exports, "__esModule", ({
20711
20480
  value: true
20712
20481
  }));
20713
20482
  exports["default"] = void 0;
20714
- var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
20715
- var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
20716
20483
  var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "../node_modules/classnames/index.js"));
20484
+ var _react = __webpack_require__(/*! react */ "react");
20717
20485
  var _reactMeasure = _interopRequireDefault(__webpack_require__(/*! react-measure */ "../node_modules/react-measure/dist/index.esm.js"));
20718
20486
  var _constants = __webpack_require__(/*! ../../constants */ "./constants.js");
20487
+ var _Dropdown = _interopRequireDefault(__webpack_require__(/*! ../Dropdown */ "./components/Dropdown/index.tsx"));
20719
20488
  var _Icon = _interopRequireWildcard(__webpack_require__(/*! ../Icon */ "./components/Icon/index.tsx"));
20720
20489
  var _Label = _interopRequireDefault(__webpack_require__(/*! ../Label */ "./components/Label/index.tsx"));
20721
- var _Dropdown = _interopRequireDefault(__webpack_require__(/*! ../Dropdown */ "./components/Dropdown/index.tsx"));
20722
20490
  var _Menu = _interopRequireWildcard(__webpack_require__(/*! ../Menu */ "./components/Menu/index.tsx"));
20723
- var _Tab = _interopRequireDefault(__webpack_require__(/*! ./Tab */ "./components/Tabs/Tab.js"));
20724
20491
  var _ResponsiveContext = _interopRequireDefault(__webpack_require__(/*! ../ResponsiveContext */ "./components/ResponsiveContext/index.tsx"));
20725
20492
  var _utils = __webpack_require__(/*! ../utils */ "./components/utils.tsx");
20493
+ var _Tab = _interopRequireDefault(__webpack_require__(/*! ./Tab */ "./components/Tabs/Tab.tsx"));
20726
20494
  __webpack_require__(/*! ../../helpers/base.less */ "./helpers/base.less");
20727
20495
  __webpack_require__(/*! ./Tabs.less */ "./components/Tabs/Tabs.less");
20728
20496
  var _jsxRuntime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
20729
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20730
20497
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20731
20498
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20499
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20732
20500
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20733
20501
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
20734
20502
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
20735
20503
  const ADDON_LEFT_PADDING = 5;
20736
20504
  const MIN_ADDON_WIDTH_DEFAULT = 150;
20737
20505
  const COLLAPSED_SEARCH_WIDTH = 60;
20738
-
20739
20506
  /**
20740
20507
  * `Tabs` component is a content area with a group of individual [Tab](#!/Tab) elements, each displaying different content
20741
20508
  * in the same screen area. `Tabs` are used when you have too much content to display in one place at the same time, so
@@ -20751,9 +20518,12 @@ class Tabs extends _react.Component {
20751
20518
  collapsedLength: 0,
20752
20519
  compact: false,
20753
20520
  searching: false,
20754
- monospacedWidth: null
20521
+ monospacedWidth: 0
20755
20522
  });
20756
- _defineProperty(this, "widths", null);
20523
+ _defineProperty(this, "widths", void 0);
20524
+ _defineProperty(this, "addon", void 0);
20525
+ _defineProperty(this, "tabsnavRef", void 0);
20526
+ _defineProperty(this, "moreTabsRef", null);
20757
20527
  _defineProperty(this, "checkAdaptive", () => {
20758
20528
  let {
20759
20529
  compact,
@@ -20769,12 +20539,12 @@ class Tabs extends _react.Component {
20769
20539
  widths,
20770
20540
  addon
20771
20541
  } = this;
20772
- let monospacedWidth = null;
20542
+ let monospacedWidth = 0;
20773
20543
  const getMonospacedWidth = () => monospacedWidth;
20774
20544
  if (!widths) {
20775
20545
  return;
20776
20546
  }
20777
- const addonMinWidth = ADDON_LEFT_PADDING + (addonMinWidthProp || (search ? search.props.minWidth : MIN_ADDON_WIDTH_DEFAULT));
20547
+ const addonMinWidth = ADDON_LEFT_PADDING + (addonMinWidthProp || (search?.props.minWidth ?? MIN_ADDON_WIDTH_DEFAULT));
20778
20548
  const searchWidth = compact && search ? COLLAPSED_SEARCH_WIDTH + ADDON_LEFT_PADDING : 0;
20779
20549
  const {
20780
20550
  more,
@@ -20785,7 +20555,7 @@ class Tabs extends _react.Component {
20785
20555
  const tabsNumber = tabs.length;
20786
20556
  let lastTabIndex = tabsNumber - 1 - collapsedLength;
20787
20557
  if (monospaced) {
20788
- monospacedWidth = tabs.slice(0, lastTabIndex + 1).reduce((max, tab) => tab > max ? tab : max, 0);
20558
+ monospacedWidth = Math.max(...tabs.slice(0, lastTabIndex + 1));
20789
20559
  tabs = tabs.map(getMonospacedWidth);
20790
20560
  }
20791
20561
  const getListWidth = () => {
@@ -20857,9 +20627,7 @@ class Tabs extends _react.Component {
20857
20627
  collapsedLength,
20858
20628
  monospacedWidth
20859
20629
  };
20860
- const keys = Object.keys(newState);
20861
- for (let i = 0; i < keys.length; i++) {
20862
- const key = keys[i];
20630
+ for (const key of Object.keys(newState)) {
20863
20631
  if (JSON.stringify(newState[key]) === JSON.stringify(this.state[key])) {
20864
20632
  delete newState[key];
20865
20633
  }
@@ -20894,7 +20662,7 @@ class Tabs extends _react.Component {
20894
20662
  tabs,
20895
20663
  more: more.offsetWidth,
20896
20664
  container: this.tabsnavRef.offsetWidth,
20897
- margin: more.offsetWidth - more.querySelector(`.${baseClassName}__link`).offsetWidth
20665
+ margin: more.offsetWidth - (more.querySelector(`.${baseClassName}__link`)?.offsetWidth ?? 0)
20898
20666
  };
20899
20667
  }
20900
20668
  this.checkAdaptive();
@@ -20958,9 +20726,9 @@ class Tabs extends _react.Component {
20958
20726
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Tag, {
20959
20727
  className: `${baseClassName}__link`,
20960
20728
  role: "tab",
20961
- "aria-selected": selected || null,
20729
+ "aria-selected": selected || undefined,
20962
20730
  style: {
20963
- width: monospacedWidth
20731
+ width: monospacedWidth || undefined
20964
20732
  },
20965
20733
  onClick: handleClick,
20966
20734
  ...tabProps,
@@ -20987,21 +20755,16 @@ class Tabs extends _react.Component {
20987
20755
  return nextState;
20988
20756
  }
20989
20757
  componentDidUpdate() {
20990
- if (!this.widths || this.props.children.length !== this.widths.tabs.length) {
20991
- setTimeout(() => this.handleResize(), 0);
20758
+ if (!this.widths || _react.Children.count(this.props.children) !== this.widths.tabs.length) {
20759
+ setTimeout(() => this.handleResize());
20992
20760
  }
20993
20761
  }
20994
20762
  onClick(active) {
20995
20763
  this.setState({
20996
20764
  active
20997
20765
  });
20998
- const tab = this.props.children[active - 1];
20999
- const {
21000
- onActivate
21001
- } = tab.props;
21002
- if (onActivate) {
21003
- onActivate();
21004
- }
20766
+ const tab = Array.isArray(this.props.children) ? this.props.children[active - 1] : this.props.children;
20767
+ tab?.props?.onActivate?.();
21005
20768
  }
21006
20769
  renderTabLabel(tabMode, label) {
21007
20770
  const {
@@ -21048,7 +20811,7 @@ class Tabs extends _react.Component {
21048
20811
  children
21049
20812
  } = this.props;
21050
20813
  const childrenCount = _react.Children.count(children);
21051
- if (!childrenCount) {
20814
+ if (!childrenCount || !children) {
21052
20815
  return null;
21053
20816
  }
21054
20817
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
@@ -21074,19 +20837,19 @@ class Tabs extends _react.Component {
21074
20837
  className: (0, _classnames.default)(`${baseClassName}__tab`, closeBlock && `${baseClassName}__tab--closable`),
21075
20838
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("a", {
21076
20839
  className: `${baseClassName}__link`,
21077
- tabIndex: "-1",
20840
+ tabIndex: -1,
21078
20841
  style: tabProps.style,
21079
20842
  children: [iconBlock, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
21080
20843
  className: `${baseClassName}__tab-title`,
21081
20844
  children: title
21082
20845
  }), this.renderTabLabel('tab', label)]
21083
20846
  }), closeBlock]
21084
- }, title);
20847
+ }, `${title}`);
21085
20848
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
21086
20849
  className: (0, _classnames.default)(`${baseClassName}__tab`, `${baseClassName}__tab--more`),
21087
20850
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
21088
20851
  className: `${baseClassName}__link`,
21089
- tabIndex: "-1",
20852
+ tabIndex: -1,
21090
20853
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
21091
20854
  name: "three-dots-horizontal"
21092
20855
  })
@@ -21107,7 +20870,10 @@ class Tabs extends _react.Component {
21107
20870
  _react.Children.forEach(children, (child, index) => {
21108
20871
  const hidden = index > lastTabIndex;
21109
20872
  const tabMode = hidden ? 'menu-item' : 'tab';
21110
- (hidden ? hiddenItems : visibleItems).push(this.renderTabItem(child, index, tabMode));
20873
+ const renderedTab = this.renderTabItem(child, index, tabMode);
20874
+ if (renderedTab) {
20875
+ (hidden ? hiddenItems : visibleItems).push(renderedTab);
20876
+ }
21111
20877
  });
21112
20878
  return {
21113
20879
  visibleItems,
@@ -21137,7 +20903,7 @@ class Tabs extends _react.Component {
21137
20903
  ref: ref => this.moreTabsRef = ref,
21138
20904
  className: (0, _classnames.default)(`${baseClassName}__tab`, moreSelected && `${baseClassName}__tab--selected`, `${baseClassName}__tab--more`),
21139
20905
  role: "presentation",
21140
- "aria-selected": moreSelected || null,
20906
+ "aria-selected": moreSelected || undefined,
21141
20907
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Dropdown.default, {
21142
20908
  className: `${baseClassName}__dropdown`,
21143
20909
  menu: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Menu.default, {
@@ -21147,8 +20913,8 @@ class Tabs extends _react.Component {
21147
20913
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
21148
20914
  className: `${baseClassName}__link`,
21149
20915
  role: "tab",
21150
- tabIndex: "0",
21151
- "aria-selected": moreSelected || null,
20916
+ tabIndex: 0,
20917
+ "aria-selected": moreSelected || undefined,
21152
20918
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
21153
20919
  name: "three-dots-horizontal"
21154
20920
  })
@@ -21162,6 +20928,9 @@ class Tabs extends _react.Component {
21162
20928
  baseClassName,
21163
20929
  search
21164
20930
  } = this.props;
20931
+ if (!search) {
20932
+ return null;
20933
+ }
21165
20934
  const {
21166
20935
  compact
21167
20936
  } = this.state;
@@ -21195,7 +20964,8 @@ class Tabs extends _react.Component {
21195
20964
  if (!childrenCount) {
21196
20965
  return null;
21197
20966
  }
21198
- let addonBlock = addon || placeholder;
20967
+ const addonElement = addon || placeholder;
20968
+ let addonBlock = addonElement;
21199
20969
  const addonProps = {};
21200
20970
  let searchBlock = null;
21201
20971
  if (search) {
@@ -21206,19 +20976,21 @@ class Tabs extends _react.Component {
21206
20976
  };
21207
20977
  if (compact) {
21208
20978
  if (searching) {
21209
- searchProps.maxWidth = null;
21210
- searchProps.minWidth = null;
20979
+ searchProps.maxWidth = undefined;
20980
+ searchProps.minWidth = undefined;
21211
20981
  searchProps.autoFocus = true;
21212
20982
  searchProps.responsive = false;
21213
20983
  } else {
21214
20984
  searchProps.onSearch = this.handleStartSearching;
21215
20985
  }
21216
20986
  searchBlock = this.renderSearchBar(searchProps);
21217
- } else if (addonBlock) {
20987
+ } else if (addonElement) {
21218
20988
  searchProps.key = 1;
21219
- addonBlock = [this.renderSearchBar(searchProps), /*#__PURE__*/(0, _react.cloneElement)(addonBlock, {
21220
- key: 2
21221
- })];
20989
+ addonBlock = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
20990
+ children: [this.renderSearchBar(searchProps), /*#__PURE__*/(0, _react.cloneElement)(addonElement, {
20991
+ key: 2
20992
+ })]
20993
+ });
21222
20994
  } else {
21223
20995
  addonProps.style = {
21224
20996
  maxWidth: search.props.maxWidth
@@ -21247,9 +21019,10 @@ class Tabs extends _react.Component {
21247
21019
  let {
21248
21020
  measureRef: ref
21249
21021
  } = _ref2;
21250
- return /*#__PURE__*/(0, _react.cloneElement)(this.renderFakeTabs(), {
21022
+ const fakeTabs = this.renderFakeTabs();
21023
+ return fakeTabs ? /*#__PURE__*/(0, _react.cloneElement)(fakeTabs, {
21251
21024
  ref
21252
- });
21025
+ }) : null;
21253
21026
  }
21254
21027
  }), searchBlock, addonBlock && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactMeasure.default, {
21255
21028
  onResize: this.handleAddonResize,
@@ -21277,72 +21050,17 @@ class Tabs extends _react.Component {
21277
21050
  });
21278
21051
  }
21279
21052
  }
21280
- Tabs.propTypes = {
21281
- /**
21282
- * Number of active tab
21283
- * @since 0.0.35
21284
- */
21285
- active: _propTypes.default.number,
21286
- /**
21287
- * Addon for search bar, dropdown etc.
21288
- * @since 0.0.58
21289
- */
21290
- addon: _propTypes.default.element,
21291
- /**
21292
- * Placeholder for search bar, dropdown etc.
21293
- *
21294
- * @deprecated Do not use! Use `addon` instead!
21295
- * @since 0.0.42
21296
- */
21297
- placeholder: _propTypes.default.element,
21298
- /**
21299
- * Minimum add-on width in pixels
21300
- * @since 0.0.58
21301
- */
21302
- addonMinWidth: _propTypes.default.number,
21303
- /**
21304
- * Monospaced version of tabs (all visible tabs as wide as widest of them)
21305
- * @since 0.0.58
21306
- */
21307
- monospaced: _propTypes.default.bool,
21308
- /**
21309
- * [SearchBar](#!/SearchBar) element
21310
- * @since 0.0.58
21311
- */
21312
- search: _propTypes.default.element,
21313
- /**
21314
- * [Tabs](#!/Tab)
21315
- * @since 0.0.47
21316
- */
21317
- children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.element), _propTypes.default.element]),
21318
- /**
21319
- * @ignore
21320
- */
21321
- className: _propTypes.default.string,
21322
- /**
21323
- * @ignore
21324
- */
21325
- baseClassName: _propTypes.default.string
21326
- };
21327
- Tabs.defaultProps = {
21328
- active: null,
21329
- addon: null,
21330
- placeholder: null,
21331
- addonMinWidth: null,
21332
- monospaced: null,
21333
- search: null,
21334
- children: null,
21335
- className: null,
21053
+ _defineProperty(Tabs, "defaultProps", {
21336
21054
  baseClassName: `${_constants.CLS_PREFIX}tabs`
21337
- };
21055
+ });
21338
21056
  var _default = exports["default"] = Tabs;
21339
21057
 
21340
21058
  /***/ }),
21341
21059
 
21342
- /***/ "./components/Tabs/index.js":
21343
- /*!**********************************!*\
21344
- !*** ./components/Tabs/index.js ***!
21345
- \**********************************/
21060
+ /***/ "./components/Tabs/index.tsx":
21061
+ /*!***********************************!*\
21062
+ !*** ./components/Tabs/index.tsx ***!
21063
+ \***********************************/
21346
21064
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
21347
21065
 
21348
21066
  "use strict";
@@ -21369,9 +21087,9 @@ Object.defineProperty(exports, "default", ({
21369
21087
  return _Tabs.default;
21370
21088
  }
21371
21089
  }));
21372
- var _Tabs = _interopRequireDefault(__webpack_require__(/*! ./Tabs */ "./components/Tabs/Tabs.js"));
21373
- var _Tab = _interopRequireDefault(__webpack_require__(/*! ./Tab */ "./components/Tabs/Tab.js"));
21374
- var _SearchBar = _interopRequireDefault(__webpack_require__(/*! ./SearchBar */ "./components/Tabs/SearchBar.js"));
21090
+ var _Tabs = _interopRequireDefault(__webpack_require__(/*! ./Tabs */ "./components/Tabs/Tabs.tsx"));
21091
+ var _Tab = _interopRequireDefault(__webpack_require__(/*! ./Tab */ "./components/Tabs/Tab.tsx"));
21092
+ var _SearchBar = _interopRequireDefault(__webpack_require__(/*! ./SearchBar */ "./components/Tabs/SearchBar.tsx"));
21375
21093
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21376
21094
 
21377
21095
  /***/ }),
@@ -22569,6 +22287,7 @@ class ToolbarItem extends _react.Component {
22569
22287
  _defineProperty(this, "state", {
22570
22288
  compact: false
22571
22289
  });
22290
+ _defineProperty(this, "context", void 0);
22572
22291
  }
22573
22292
  componentDidMount() {
22574
22293
  const registry = this.context;
@@ -23401,6 +23120,8 @@ var _exportNames = {
23401
23120
  SwitchesPanel: true,
23402
23121
  SwitchesPanelItem: true,
23403
23122
  Tabs: true,
23123
+ Tab: true,
23124
+ SearchBar: true,
23404
23125
  Text: true,
23405
23126
  Toaster: true,
23406
23127
  Toolbar: true,
@@ -23853,6 +23574,12 @@ Object.defineProperty(exports, "SEGMENTED_CONTROL_BASE_CLASS_NAME", ({
23853
23574
  return _SegmentedControl.SEGMENTED_CONTROL_BASE_CLASS_NAME;
23854
23575
  }
23855
23576
  }));
23577
+ Object.defineProperty(exports, "SearchBar", ({
23578
+ enumerable: true,
23579
+ get: function () {
23580
+ return _Tabs.SearchBar;
23581
+ }
23582
+ }));
23856
23583
  Object.defineProperty(exports, "Section", ({
23857
23584
  enumerable: true,
23858
23585
  get: function () {
@@ -23943,6 +23670,12 @@ Object.defineProperty(exports, "SwitchesPanelItem", ({
23943
23670
  return _SwitchesPanelItem.default;
23944
23671
  }
23945
23672
  }));
23673
+ Object.defineProperty(exports, "Tab", ({
23674
+ enumerable: true,
23675
+ get: function () {
23676
+ return _Tabs.Tab;
23677
+ }
23678
+ }));
23946
23679
  Object.defineProperty(exports, "Tabs", ({
23947
23680
  enumerable: true,
23948
23681
  get: function () {
@@ -24111,7 +23844,7 @@ Object.keys(_Select).forEach(function (key) {
24111
23844
  }
24112
23845
  });
24113
23846
  });
24114
- var _Item = _interopRequireDefault(__webpack_require__(/*! ./Item */ "./components/Item/index.js"));
23847
+ var _Item = _interopRequireDefault(__webpack_require__(/*! ./Item */ "./components/Item/index.tsx"));
24115
23848
  var _ItemLink = _interopRequireDefault(__webpack_require__(/*! ./ItemLink */ "./components/ItemLink/index.tsx"));
24116
23849
  var _ItemList = _interopRequireDefault(__webpack_require__(/*! ./ItemList */ "./components/ItemList/index.tsx"));
24117
23850
  var _Label = _interopRequireDefault(__webpack_require__(/*! ./Label */ "./components/Label/index.tsx"));
@@ -24177,18 +23910,7 @@ var _Subnav = _interopRequireWildcard(__webpack_require__(/*! ./Subnav */ "./com
24177
23910
  var _Switch = _interopRequireDefault(__webpack_require__(/*! ./Switch */ "./components/Switch/index.tsx"));
24178
23911
  var _SwitchesPanel = _interopRequireDefault(__webpack_require__(/*! ./SwitchesPanel */ "./components/SwitchesPanel/index.tsx"));
24179
23912
  var _SwitchesPanelItem = _interopRequireDefault(__webpack_require__(/*! ./SwitchesPanelItem */ "./components/SwitchesPanelItem/index.tsx"));
24180
- var _Tabs = _interopRequireWildcard(__webpack_require__(/*! ./Tabs */ "./components/Tabs/index.js"));
24181
- Object.keys(_Tabs).forEach(function (key) {
24182
- if (key === "default" || key === "__esModule") return;
24183
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
24184
- if (key in exports && exports[key] === _Tabs[key]) return;
24185
- Object.defineProperty(exports, key, {
24186
- enumerable: true,
24187
- get: function () {
24188
- return _Tabs[key];
24189
- }
24190
- });
24191
- });
23913
+ var _Tabs = _interopRequireWildcard(__webpack_require__(/*! ./Tabs */ "./components/Tabs/index.tsx"));
24192
23914
  var _Text = _interopRequireDefault(__webpack_require__(/*! ./Text */ "./components/Text/index.tsx"));
24193
23915
  var _Toaster = _interopRequireDefault(__webpack_require__(/*! ./Toaster */ "./components/Toaster/index.tsx"));
24194
23916
  var _Toolbar = _interopRequireWildcard(__webpack_require__(/*! ./Toolbar */ "./components/Toolbar/index.tsx"));
@@ -78273,7 +77995,7 @@ module.exports = checkPropTypes;
78273
77995
 
78274
77996
 
78275
77997
 
78276
- var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
77998
+ var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/react-is/index.js");
78277
77999
  var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
78278
78000
 
78279
78001
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
@@ -78892,7 +78614,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
78892
78614
  */
78893
78615
 
78894
78616
  if (true) {
78895
- var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
78617
+ var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/react-is/index.js");
78896
78618
 
78897
78619
  // By explicitly using `prop-types` you are opting into new development behavior.
78898
78620
  // http://fb.me/prop-types-in-prod
@@ -78937,10 +78659,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
78937
78659
 
78938
78660
  /***/ }),
78939
78661
 
78940
- /***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
78941
- /*!************************************************************************************!*\
78942
- !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
78943
- \************************************************************************************/
78662
+ /***/ "../node_modules/react-is/cjs/react-is.development.js":
78663
+ /*!************************************************************!*\
78664
+ !*** ../node_modules/react-is/cjs/react-is.development.js ***!
78665
+ \************************************************************/
78944
78666
  /***/ ((__unused_webpack_module, exports) => {
78945
78667
 
78946
78668
  "use strict";
@@ -79129,17 +78851,17 @@ exports.typeOf = typeOf;
79129
78851
 
79130
78852
  /***/ }),
79131
78853
 
79132
- /***/ "../node_modules/prop-types/node_modules/react-is/index.js":
79133
- /*!*****************************************************************!*\
79134
- !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
79135
- \*****************************************************************/
78854
+ /***/ "../node_modules/react-is/index.js":
78855
+ /*!*****************************************!*\
78856
+ !*** ../node_modules/react-is/index.js ***!
78857
+ \*****************************************/
79136
78858
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
79137
78859
 
79138
78860
  "use strict";
79139
78861
 
79140
78862
 
79141
78863
  if (false) {} else {
79142
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
78864
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/react-is/cjs/react-is.development.js");
79143
78865
  }
79144
78866
 
79145
78867
 
@@ -82696,7 +82418,8 @@ var forceReflow = function forceReflow(node) {
82696
82418
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
82697
82419
 
82698
82420
  "use strict";
82699
- /** @license React v17.0.2
82421
+ /**
82422
+ * @license React
82700
82423
  * react-jsx-runtime.development.js
82701
82424
  *
82702
82425
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -82712,59 +82435,25 @@ if (true) {
82712
82435
  'use strict';
82713
82436
 
82714
82437
  var React = __webpack_require__(/*! react */ "react");
82715
- var _assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
82716
82438
 
82717
82439
  // ATTENTION
82718
82440
  // When adding new symbols to this file,
82719
82441
  // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
82720
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
82721
- // nor polyfill, then a plain number is used for performance.
82722
- var REACT_ELEMENT_TYPE = 0xeac7;
82723
- var REACT_PORTAL_TYPE = 0xeaca;
82724
- exports.Fragment = 0xeacb;
82725
- var REACT_STRICT_MODE_TYPE = 0xeacc;
82726
- var REACT_PROFILER_TYPE = 0xead2;
82727
- var REACT_PROVIDER_TYPE = 0xeacd;
82728
- var REACT_CONTEXT_TYPE = 0xeace;
82729
- var REACT_FORWARD_REF_TYPE = 0xead0;
82730
- var REACT_SUSPENSE_TYPE = 0xead1;
82731
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
82732
- var REACT_MEMO_TYPE = 0xead3;
82733
- var REACT_LAZY_TYPE = 0xead4;
82734
- var REACT_BLOCK_TYPE = 0xead9;
82735
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
82736
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
82737
- var REACT_SCOPE_TYPE = 0xead7;
82738
- var REACT_OPAQUE_ID_TYPE = 0xeae0;
82739
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
82740
- var REACT_OFFSCREEN_TYPE = 0xeae2;
82741
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
82742
-
82743
- if (typeof Symbol === 'function' && Symbol.for) {
82744
- var symbolFor = Symbol.for;
82745
- REACT_ELEMENT_TYPE = symbolFor('react.element');
82746
- REACT_PORTAL_TYPE = symbolFor('react.portal');
82747
- exports.Fragment = symbolFor('react.fragment');
82748
- REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
82749
- REACT_PROFILER_TYPE = symbolFor('react.profiler');
82750
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
82751
- REACT_CONTEXT_TYPE = symbolFor('react.context');
82752
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
82753
- REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
82754
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
82755
- REACT_MEMO_TYPE = symbolFor('react.memo');
82756
- REACT_LAZY_TYPE = symbolFor('react.lazy');
82757
- REACT_BLOCK_TYPE = symbolFor('react.block');
82758
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
82759
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
82760
- REACT_SCOPE_TYPE = symbolFor('react.scope');
82761
- REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
82762
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
82763
- REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
82764
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
82765
- }
82766
-
82767
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
82442
+ // The Symbol used to tag the ReactElement-like types.
82443
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
82444
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
82445
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
82446
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
82447
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
82448
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
82449
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
82450
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
82451
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
82452
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
82453
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
82454
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
82455
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
82456
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
82768
82457
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
82769
82458
  function getIteratorFn(maybeIterable) {
82770
82459
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
@@ -82784,11 +82473,13 @@ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FI
82784
82473
 
82785
82474
  function error(format) {
82786
82475
  {
82787
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
82788
- args[_key2 - 1] = arguments[_key2];
82789
- }
82476
+ {
82477
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
82478
+ args[_key2 - 1] = arguments[_key2];
82479
+ }
82790
82480
 
82791
- printWarning('error', format, args);
82481
+ printWarning('error', format, args);
82482
+ }
82792
82483
  }
82793
82484
  }
82794
82485
 
@@ -82802,10 +82493,11 @@ function printWarning(level, format, args) {
82802
82493
  if (stack !== '') {
82803
82494
  format += '%s';
82804
82495
  args = args.concat([stack]);
82805
- }
82496
+ } // eslint-disable-next-line react-internal/safe-string-coercion
82497
+
82806
82498
 
82807
82499
  var argsWithFormat = args.map(function (item) {
82808
- return '' + item;
82500
+ return String(item);
82809
82501
  }); // Careful: RN currently depends on this prefix
82810
82502
 
82811
82503
  argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
@@ -82816,9 +82508,23 @@ function printWarning(level, format, args) {
82816
82508
  }
82817
82509
  }
82818
82510
 
82819
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
82511
+ // -----------------------------------------------------------------------------
82820
82512
 
82821
82513
  var enableScopeAPI = false; // Experimental Create Event Handle API.
82514
+ var enableCacheElement = false;
82515
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
82516
+
82517
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
82518
+ // stuff. Intended to enable React core members to more easily debug scheduling
82519
+ // issues in DEV builds.
82520
+
82521
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
82522
+
82523
+ var REACT_MODULE_REFERENCE;
82524
+
82525
+ {
82526
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
82527
+ }
82822
82528
 
82823
82529
  function isValidElementType(type) {
82824
82530
  if (typeof type === 'string' || typeof type === 'function') {
@@ -82826,12 +82532,16 @@ function isValidElementType(type) {
82826
82532
  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
82827
82533
 
82828
82534
 
82829
- if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
82535
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
82830
82536
  return true;
82831
82537
  }
82832
82538
 
82833
82539
  if (typeof type === 'object' && type !== null) {
82834
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
82540
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
82541
+ // types supported by any Flight configuration anywhere since
82542
+ // we don't know which Flight build this will end up being used
82543
+ // with.
82544
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
82835
82545
  return true;
82836
82546
  }
82837
82547
  }
@@ -82840,15 +82550,23 @@ function isValidElementType(type) {
82840
82550
  }
82841
82551
 
82842
82552
  function getWrappedName(outerType, innerType, wrapperName) {
82553
+ var displayName = outerType.displayName;
82554
+
82555
+ if (displayName) {
82556
+ return displayName;
82557
+ }
82558
+
82843
82559
  var functionName = innerType.displayName || innerType.name || '';
82844
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
82845
- }
82560
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
82561
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
82562
+
82846
82563
 
82847
82564
  function getContextName(type) {
82848
82565
  return type.displayName || 'Context';
82849
- }
82566
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
82567
+
82850
82568
 
82851
- function getComponentName(type) {
82569
+ function getComponentNameFromType(type) {
82852
82570
  if (type == null) {
82853
82571
  // Host root, text node or just invalid type.
82854
82572
  return null;
@@ -82856,7 +82574,7 @@ function getComponentName(type) {
82856
82574
 
82857
82575
  {
82858
82576
  if (typeof type.tag === 'number') {
82859
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
82577
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
82860
82578
  }
82861
82579
  }
82862
82580
 
@@ -82869,7 +82587,7 @@ function getComponentName(type) {
82869
82587
  }
82870
82588
 
82871
82589
  switch (type) {
82872
- case exports.Fragment:
82590
+ case REACT_FRAGMENT_TYPE:
82873
82591
  return 'Fragment';
82874
82592
 
82875
82593
  case REACT_PORTAL_TYPE:
@@ -82886,6 +82604,7 @@ function getComponentName(type) {
82886
82604
 
82887
82605
  case REACT_SUSPENSE_LIST_TYPE:
82888
82606
  return 'SuspenseList';
82607
+
82889
82608
  }
82890
82609
 
82891
82610
  if (typeof type === 'object') {
@@ -82902,10 +82621,13 @@ function getComponentName(type) {
82902
82621
  return getWrappedName(type, type.render, 'ForwardRef');
82903
82622
 
82904
82623
  case REACT_MEMO_TYPE:
82905
- return getComponentName(type.type);
82624
+ var outerName = type.displayName || null;
82906
82625
 
82907
- case REACT_BLOCK_TYPE:
82908
- return getComponentName(type._render);
82626
+ if (outerName !== null) {
82627
+ return outerName;
82628
+ }
82629
+
82630
+ return getComponentNameFromType(type.type) || 'Memo';
82909
82631
 
82910
82632
  case REACT_LAZY_TYPE:
82911
82633
  {
@@ -82914,17 +82636,21 @@ function getComponentName(type) {
82914
82636
  var init = lazyComponent._init;
82915
82637
 
82916
82638
  try {
82917
- return getComponentName(init(payload));
82639
+ return getComponentNameFromType(init(payload));
82918
82640
  } catch (x) {
82919
82641
  return null;
82920
82642
  }
82921
82643
  }
82644
+
82645
+ // eslint-disable-next-line no-fallthrough
82922
82646
  }
82923
82647
  }
82924
82648
 
82925
82649
  return null;
82926
82650
  }
82927
82651
 
82652
+ var assign = Object.assign;
82653
+
82928
82654
  // Helpers to patch console.logs to avoid logging during side-effect free
82929
82655
  // replaying on render function. This currently only patches the object
82930
82656
  // lazily which won't cover if the log function was extracted eagerly.
@@ -82988,25 +82714,25 @@ function reenableLogs() {
82988
82714
  }; // $FlowFixMe Flow thinks console is immutable.
82989
82715
 
82990
82716
  Object.defineProperties(console, {
82991
- log: _assign({}, props, {
82717
+ log: assign({}, props, {
82992
82718
  value: prevLog
82993
82719
  }),
82994
- info: _assign({}, props, {
82720
+ info: assign({}, props, {
82995
82721
  value: prevInfo
82996
82722
  }),
82997
- warn: _assign({}, props, {
82723
+ warn: assign({}, props, {
82998
82724
  value: prevWarn
82999
82725
  }),
83000
- error: _assign({}, props, {
82726
+ error: assign({}, props, {
83001
82727
  value: prevError
83002
82728
  }),
83003
- group: _assign({}, props, {
82729
+ group: assign({}, props, {
83004
82730
  value: prevGroup
83005
82731
  }),
83006
- groupCollapsed: _assign({}, props, {
82732
+ groupCollapsed: assign({}, props, {
83007
82733
  value: prevGroupCollapsed
83008
82734
  }),
83009
- groupEnd: _assign({}, props, {
82735
+ groupEnd: assign({}, props, {
83010
82736
  value: prevGroupEnd
83011
82737
  })
83012
82738
  });
@@ -83047,7 +82773,7 @@ var componentFrameCache;
83047
82773
 
83048
82774
  function describeNativeComponentFrame(fn, construct) {
83049
82775
  // If something asked for a stack inside a fake render, it should get ignored.
83050
- if (!fn || reentry) {
82776
+ if ( !fn || reentry) {
83051
82777
  return '';
83052
82778
  }
83053
82779
 
@@ -83156,7 +82882,14 @@ function describeNativeComponentFrame(fn, construct) {
83156
82882
 
83157
82883
  if (c < 0 || sampleLines[s] !== controlLines[c]) {
83158
82884
  // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
83159
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
82885
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
82886
+ // but we have a user-provided "displayName"
82887
+ // splice it in to make the stack more readable.
82888
+
82889
+
82890
+ if (fn.displayName && _frame.includes('<anonymous>')) {
82891
+ _frame = _frame.replace('<anonymous>', fn.displayName);
82892
+ }
83160
82893
 
83161
82894
  {
83162
82895
  if (typeof fn === 'function') {
@@ -83241,9 +82974,6 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
83241
82974
  // Memo may contain any component type so we recursively resolve it.
83242
82975
  return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
83243
82976
 
83244
- case REACT_BLOCK_TYPE:
83245
- return describeFunctionComponentFrame(type._render);
83246
-
83247
82977
  case REACT_LAZY_TYPE:
83248
82978
  {
83249
82979
  var lazyComponent = type;
@@ -83261,6 +82991,8 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
83261
82991
  return '';
83262
82992
  }
83263
82993
 
82994
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
82995
+
83264
82996
  var loggedTypeFailures = {};
83265
82997
  var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
83266
82998
 
@@ -83279,7 +83011,7 @@ function setCurrentlyValidatingElement(element) {
83279
83011
  function checkPropTypes(typeSpecs, values, location, componentName, element) {
83280
83012
  {
83281
83013
  // $FlowFixMe This is okay but Flow doesn't know it.
83282
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
83014
+ var has = Function.call.bind(hasOwnProperty);
83283
83015
 
83284
83016
  for (var typeSpecName in typeSpecs) {
83285
83017
  if (has(typeSpecs, typeSpecName)) {
@@ -83291,6 +83023,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
83291
83023
  // This is intentionally an invariant that gets caught. It's the same
83292
83024
  // behavior as without this statement except with a better message.
83293
83025
  if (typeof typeSpecs[typeSpecName] !== 'function') {
83026
+ // eslint-disable-next-line react-internal/prod-error-codes
83294
83027
  var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
83295
83028
  err.name = 'Invariant Violation';
83296
83029
  throw err;
@@ -83324,8 +83057,80 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
83324
83057
  }
83325
83058
  }
83326
83059
 
83060
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
83061
+
83062
+ function isArray(a) {
83063
+ return isArrayImpl(a);
83064
+ }
83065
+
83066
+ /*
83067
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
83068
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
83069
+ *
83070
+ * The functions in this module will throw an easier-to-understand,
83071
+ * easier-to-debug exception with a clear errors message message explaining the
83072
+ * problem. (Instead of a confusing exception thrown inside the implementation
83073
+ * of the `value` object).
83074
+ */
83075
+ // $FlowFixMe only called in DEV, so void return is not possible.
83076
+ function typeName(value) {
83077
+ {
83078
+ // toStringTag is needed for namespaced types like Temporal.Instant
83079
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
83080
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
83081
+ return type;
83082
+ }
83083
+ } // $FlowFixMe only called in DEV, so void return is not possible.
83084
+
83085
+
83086
+ function willCoercionThrow(value) {
83087
+ {
83088
+ try {
83089
+ testStringCoercion(value);
83090
+ return false;
83091
+ } catch (e) {
83092
+ return true;
83093
+ }
83094
+ }
83095
+ }
83096
+
83097
+ function testStringCoercion(value) {
83098
+ // If you ended up here by following an exception call stack, here's what's
83099
+ // happened: you supplied an object or symbol value to React (as a prop, key,
83100
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
83101
+ // coerce it to a string using `'' + value`, an exception was thrown.
83102
+ //
83103
+ // The most common types that will cause this exception are `Symbol` instances
83104
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
83105
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
83106
+ // exception. (Library authors do this to prevent users from using built-in
83107
+ // numeric operators like `+` or comparison operators like `>=` because custom
83108
+ // methods are needed to perform accurate arithmetic or comparison.)
83109
+ //
83110
+ // To fix the problem, coerce this object or symbol value to a string before
83111
+ // passing it to React. The most reliable way is usually `String(value)`.
83112
+ //
83113
+ // To find which value is throwing, check the browser or debugger console.
83114
+ // Before this exception was thrown, there should be `console.error` output
83115
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
83116
+ // problem and how that type was used: key, atrribute, input value prop, etc.
83117
+ // In most cases, this console output also shows the component and its
83118
+ // ancestor components where the exception happened.
83119
+ //
83120
+ // eslint-disable-next-line react-internal/safe-string-coercion
83121
+ return '' + value;
83122
+ }
83123
+ function checkKeyStringCoercion(value) {
83124
+ {
83125
+ if (willCoercionThrow(value)) {
83126
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
83127
+
83128
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
83129
+ }
83130
+ }
83131
+ }
83132
+
83327
83133
  var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
83328
- var hasOwnProperty = Object.prototype.hasOwnProperty;
83329
83134
  var RESERVED_PROPS = {
83330
83135
  key: true,
83331
83136
  ref: true,
@@ -83371,10 +83176,10 @@ function hasValidKey(config) {
83371
83176
  function warnIfStringRefCannotBeAutoConverted(config, self) {
83372
83177
  {
83373
83178
  if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
83374
- var componentName = getComponentName(ReactCurrentOwner.current.type);
83179
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
83375
83180
 
83376
83181
  if (!didWarnAboutStringRefs[componentName]) {
83377
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
83182
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
83378
83183
 
83379
83184
  didWarnAboutStringRefs[componentName] = true;
83380
83185
  }
@@ -83513,10 +83318,18 @@ function jsxDEV(type, config, maybeKey, source, self) {
83513
83318
  // key is explicitly declared to be undefined or not.
83514
83319
 
83515
83320
  if (maybeKey !== undefined) {
83321
+ {
83322
+ checkKeyStringCoercion(maybeKey);
83323
+ }
83324
+
83516
83325
  key = '' + maybeKey;
83517
83326
  }
83518
83327
 
83519
83328
  if (hasValidKey(config)) {
83329
+ {
83330
+ checkKeyStringCoercion(config.key);
83331
+ }
83332
+
83520
83333
  key = '' + config.key;
83521
83334
  }
83522
83335
 
@@ -83587,6 +83400,7 @@ var propTypesMisspellWarningShown;
83587
83400
  * @final
83588
83401
  */
83589
83402
 
83403
+
83590
83404
  function isValidElement(object) {
83591
83405
  {
83592
83406
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
@@ -83596,7 +83410,7 @@ function isValidElement(object) {
83596
83410
  function getDeclarationErrorAddendum() {
83597
83411
  {
83598
83412
  if (ReactCurrentOwner$1.current) {
83599
- var name = getComponentName(ReactCurrentOwner$1.current.type);
83413
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
83600
83414
 
83601
83415
  if (name) {
83602
83416
  return '\n\nCheck the render method of `' + name + '`.';
@@ -83676,7 +83490,7 @@ function validateExplicitKey(element, parentType) {
83676
83490
 
83677
83491
  if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
83678
83492
  // Give the component that originally created this child.
83679
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
83493
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
83680
83494
  }
83681
83495
 
83682
83496
  setCurrentlyValidatingElement$1(element);
@@ -83703,7 +83517,7 @@ function validateChildKeys(node, parentType) {
83703
83517
  return;
83704
83518
  }
83705
83519
 
83706
- if (Array.isArray(node)) {
83520
+ if (isArray(node)) {
83707
83521
  for (var i = 0; i < node.length; i++) {
83708
83522
  var child = node[i];
83709
83523
 
@@ -83766,12 +83580,12 @@ function validatePropTypes(element) {
83766
83580
 
83767
83581
  if (propTypes) {
83768
83582
  // Intentionally inside to avoid triggering lazy initializers:
83769
- var name = getComponentName(type);
83583
+ var name = getComponentNameFromType(type);
83770
83584
  checkPropTypes(propTypes, element.props, 'prop', name, element);
83771
83585
  } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
83772
83586
  propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
83773
83587
 
83774
- var _name = getComponentName(type);
83588
+ var _name = getComponentNameFromType(type);
83775
83589
 
83776
83590
  error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
83777
83591
  }
@@ -83838,10 +83652,10 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
83838
83652
 
83839
83653
  if (type === null) {
83840
83654
  typeString = 'null';
83841
- } else if (Array.isArray(type)) {
83655
+ } else if (isArray(type)) {
83842
83656
  typeString = 'array';
83843
83657
  } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
83844
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
83658
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
83845
83659
  info = ' Did you accidentally export a JSX literal instead of a component?';
83846
83660
  } else {
83847
83661
  typeString = typeof type;
@@ -83867,7 +83681,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
83867
83681
 
83868
83682
  if (children !== undefined) {
83869
83683
  if (isStaticChildren) {
83870
- if (Array.isArray(children)) {
83684
+ if (isArray(children)) {
83871
83685
  for (var i = 0; i < children.length; i++) {
83872
83686
  validateChildKeys(children[i], type);
83873
83687
  }
@@ -83884,7 +83698,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
83884
83698
  }
83885
83699
  }
83886
83700
 
83887
- if (type === exports.Fragment) {
83701
+ if (type === REACT_FRAGMENT_TYPE) {
83888
83702
  validateFragmentProps(element);
83889
83703
  } else {
83890
83704
  validatePropTypes(element);
@@ -83913,6 +83727,7 @@ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs intern
83913
83727
 
83914
83728
  var jsxs = jsxWithValidationStatic ;
83915
83729
 
83730
+ exports.Fragment = REACT_FRAGMENT_TYPE;
83916
83731
  exports.jsx = jsx;
83917
83732
  exports.jsxs = jsxs;
83918
83733
  })();
@@ -88128,7 +87943,7 @@ function _setPrototypeOf(o, p) {
88128
87943
  /***/ ((module) => {
88129
87944
 
88130
87945
  "use strict";
88131
- module.exports = JSON.parse('{"name":"@plesk/ui-library","version":"3.35.6","description":"Plesk UI Library","main":"index.js","module":"esm/index.js","types":"./types/src","sideEffects":["cjs/index.js","esm/index.js","dist/*.js","dist/*.css"],"scripts":{"pretest":"yarn lint","test":"jest --ci --coverage --coverageReporters text-summary","test:vr":"cross-env VISUAL_REGRESSION=true jest","build":"yarn build:types && yarn build:umd && yarn build:esm && yarn build:cjs","build:umd":"webpack --config ./configs/build.config.js","build:esm":"cross-env NODE_ENV=esm node ./scripts/build.js","build:cjs":"cross-env NODE_ENV=cjs node ./scripts/build.js","build:types":"rimraf ./types && tsc --project ./configs/types-generator.config.json","create-svg-sprite":"node ./scripts/create-svg-sprite.js","lint":"yarn lint:es && yarn lint:types && yarn lint:style","lint:es":"eslint --ext js,md,tsx src configs scripts styleguidist","lint:types":"tsc","lint:style":"stylelint \\"{src,styleguidist}/**/*.less\\"","styleguide":"styleguidist server --config ./configs/styleguide.config.js","styleguide:build":"styleguidist build --config ./configs/styleguide.config.js","prepublishOnly":"yarn install && yarn test && yarn build && yarn styleguide:build","storybook":"webpack serve --config ./configs/storybook.config.js --allowed-hosts all","postinstall":"node ./scripts/postinstall.js"},"files":["esm","cjs","dist","styleguide","types","/scripts/postinstall.js","/index.js"],"dependencies":{"@babel/runtime":"^7.23.1","@plesk/react-movable":"^2.7.1","classnames":"^2.3.2","codemirror":"5.58.2","marked":"4.2.12","memoize-one":"^5.2.1","popper.js":"1.16.1","prop-types":"^15.8.1","react-measure":"2.5.2","react-sortable-hoc":"0.6.8","react-transition-group":"^4.4.5","scroll-into-view-if-needed":"^2.2.31","svg4everybody":"2.1.9","use-focus-visible":"^1.0.2"},"devDependencies":{"@babel/core":"^7.23.0","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-runtime":"^7.22.15","@babel/preset-env":"^7.22.20","@babel/preset-react":"^7.22.15","@babel/preset-typescript":"^7.23.0","@babel/types":"^7.23.0","@csstools/postcss-logical-float-and-clear":"^1.0.1","@plesk/eslint-config":"^3.0.0","@plesk/stylelint-config":"^2.0.0","@testing-library/dom":"^9.3.3","@testing-library/jest-dom":"^5.17.0","@testing-library/react":"^12.1.5","@testing-library/user-event":"^12.8.3","@types/buble":"^0.20.2","@types/classnames":"2.3.1","@types/doctrine":"^0.0.5","@types/enzyme":"^3.10.14","@types/jest":"^28.1.8","@types/jest-image-snapshot":"^6.2.1","@types/marked":"^4.3.1","@types/node":"^16.18.54","@types/react":"^17.0.65","@types/react-dom":"^17.0.20","@types/react-measure":"2.0.8","@types/react-transition-group":"^4.4.6","@types/svg4everybody":"2.1.2","@typescript-eslint/eslint-plugin":"^5.62.0","@typescript-eslint/parser":"^5.62.0","@wojtekmaj/enzyme-adapter-react-17":"^0.8.0","autoprefixer":"^10.4.16","babel-loader":"^8.3.0","babel-plugin-transform-require-ignore":"^0.1.1","clean-webpack-plugin":"^4.0.0","cross-env":"^5.2.1","css-loader":"^6.8.1","css-minimizer-webpack-plugin":"^5.0.1","enzyme":"^3.11.0","enzyme-to-json":"^3.6.2","eslint":"^8.50.0","eslint-config-prettier":"^8.10.0","eslint-plugin-markdown":"^3.0.1","eslint-plugin-prettier":"^4.2.1","html-webpack-plugin":"^5.5.3","jest":"^28.1.3","jest-dev-server":"^9.0.1","jest-environment-jsdom":"^28.1.3","jest-image-snapshot":"^6.2.0","less":"^4.2.0","less-loader":"^11.1.3","mini-css-extract-plugin":"^2.7.6","postcss":"^8.4.30","postcss-less":"^6.0.0","postcss-loader":"^7.3.3","postcss-logical":"^6.2.0","prettier":"^2.8.8","puppeteer-core":"20.4.0","react":"^17.0.2","react-docgen-typescript":"^2.2.2","react-dom":"^17.0.2","react-styleguidist":"^12.0.1","rimraf":"^5.0.1","rtlcss":"^4.1.1","style-loader":"^3.3.3","stylelint":"^15.10.3","stylelint-declaration-block-no-ignored-properties":"^2.7.0","stylelint-no-unsupported-browser-features":"^6.1.0","stylelint-prettier":"^3.0.0","stylelint-use-logical-spec":"^5.0.0","svg-mixer":"^2.3.14","terser-webpack-plugin":"^5.3.9","typescript":"4.7.4","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"peerDependencies":{"react":"^17.0.2","react-dom":"^17.0.2"},"resolutions":{"@babel/types":"^7.15.6","@types/react":"^17.0.39","trim":">=0.0.3","postcss":"^8.4.23"},"browserslist":["defaults","not op_mini all","not kaios > 0"],"author":"Plesk Developers <plesk-dev-leads@plesk.com> (https://www.plesk.com/)","license":"Apache-2.0"}');
87946
+ module.exports = JSON.parse('{"name":"@plesk/ui-library","version":"3.35.8","description":"Plesk UI Library","main":"index.js","module":"esm/index.js","types":"./types/src","sideEffects":["cjs/index.js","esm/index.js","dist/*.js","dist/*.css"],"scripts":{"pretest":"yarn lint","test":"jest --ci --coverage --coverageReporters text-summary","test:vr":"cross-env VISUAL_REGRESSION=true jest","build":"yarn build:types && yarn build:umd && yarn build:esm && yarn build:cjs","build:umd":"webpack --config ./configs/build.config.js","build:esm":"cross-env NODE_ENV=esm node ./scripts/build.js","build:cjs":"cross-env NODE_ENV=cjs node ./scripts/build.js","build:types":"rimraf ./types && tsc --project ./configs/types-generator.config.json","create-svg-sprite":"node ./scripts/create-svg-sprite.js","lint":"yarn lint:es && yarn lint:types && yarn lint:style && yarn format:check","lint:es":"eslint --ext js,md,tsx src configs scripts styleguidist","lint:types":"tsc","lint:style":"stylelint \\"{src,styleguidist}/**/*.less\\"","format:check":"prettier --check src","format":"prettier --write src","styleguide":"styleguidist server --config ./configs/styleguide.config.js","styleguide:build":"styleguidist build --config ./configs/styleguide.config.js","prepublishOnly":"yarn install && yarn test && yarn build && yarn styleguide:build","storybook":"webpack serve --config ./configs/storybook.config.js --allowed-hosts all","postinstall":"node ./scripts/postinstall.js"},"files":["esm","cjs","dist","styleguide","types","/scripts/postinstall.js","/index.js"],"dependencies":{"@babel/runtime":"^7.23.1","@plesk/react-movable":"^2.7.1","classnames":"^2.3.2","codemirror":"5.58.2","marked":"4.2.12","memoize-one":"^5.2.1","popper.js":"1.16.1","prop-types":"^15.8.1","react-measure":"2.5.2","react-sortable-hoc":"0.6.8","react-transition-group":"^4.4.5","scroll-into-view-if-needed":"^2.2.31","svg4everybody":"2.1.9","use-focus-visible":"^1.0.2"},"devDependencies":{"@babel/core":"^7.23.0","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-runtime":"^7.22.15","@babel/preset-env":"^7.22.20","@babel/preset-react":"^7.22.15","@babel/preset-typescript":"^7.23.0","@babel/types":"^7.23.0","@csstools/postcss-logical-float-and-clear":"^1.0.1","@plesk/eslint-config":"^3.0.0","@plesk/stylelint-config":"^2.0.0","@testing-library/dom":"^9.3.3","@testing-library/jest-dom":"^6.1.3","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.5.1","@types/buble":"^0.20.2","@types/classnames":"2.3.1","@types/doctrine":"^0.0.5","@types/jest":"^29.5.5","@types/jest-image-snapshot":"^6.2.1","@types/marked":"^4.3.2","@types/node":"^16.18.58","@types/react":"^18.2.25","@types/react-dom":"^18.2.11","@types/react-measure":"2.0.9","@types/react-transition-group":"^4.4.7","@types/svg4everybody":"2.1.2","@typescript-eslint/eslint-plugin":"^6.7.4","@typescript-eslint/parser":"^6.7.4","autoprefixer":"^10.4.16","babel-loader":"^8.3.0","babel-plugin-transform-require-ignore":"^0.1.1","clean-webpack-plugin":"^4.0.0","cross-env":"^7.0.3","css-loader":"^6.8.1","css-minimizer-webpack-plugin":"^5.0.1","eslint":"^8.51.0","eslint-config-prettier":"^8.10.0","eslint-plugin-markdown":"^3.0.1","html-webpack-plugin":"^5.5.3","jest":"^29.7.0","jest-dev-server":"^9.0.1","jest-environment-jsdom":"^29.7.0","jest-image-snapshot":"^6.2.0","less":"^4.2.0","less-loader":"^11.1.3","mini-css-extract-plugin":"^2.7.6","postcss":"^8.4.31","postcss-less":"^6.0.0","postcss-loader":"^7.3.3","postcss-logical":"^6.2.0","prettier":"^2.8.8","puppeteer-core":"20.4.0","react":"^18.2.0","react-docgen-typescript":"^2.2.2","react-dom":"^18.2.0","react-styleguidist":"^13.1.1","rimraf":"^5.0.5","rtlcss":"^4.1.1","style-loader":"^3.3.3","stylelint":"^15.10.3","stylelint-declaration-block-no-ignored-properties":"^2.7.0","stylelint-no-unsupported-browser-features":"^6.1.0","stylelint-prettier":"^3.0.0","stylelint-use-logical-spec":"^5.0.0","svg-mixer":"^2.3.14","terser-webpack-plugin":"^5.3.9","typescript":"5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"resolutions":{"trim":">=0.0.3","postcss":"^8.4.23"},"browserslist":["defaults","not op_mini all","not kaios > 0"],"author":"Plesk Developers <plesk-dev-leads@plesk.com> (https://www.plesk.com/)","license":"Apache-2.0"}');
88132
87947
 
88133
87948
  /***/ }),
88134
87949