@plesk/ui-library 3.31.2 → 3.31.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/cjs/components/Button/Button.js +4 -1
  2. package/cjs/components/Button/ButtonContext.js +28 -0
  3. package/cjs/components/Drawer/Drawer.js +7 -14
  4. package/cjs/components/Drawer/DrawerProgress.js +9 -12
  5. package/cjs/components/Form/Form.js +24 -22
  6. package/cjs/components/List/ListEmptyView.js +10 -2
  7. package/cjs/index.js +1 -1
  8. package/dist/plesk-ui-library-rtl.css +1 -1
  9. package/dist/plesk-ui-library-rtl.css.map +1 -1
  10. package/dist/plesk-ui-library.css +1 -1
  11. package/dist/plesk-ui-library.css.map +1 -1
  12. package/dist/plesk-ui-library.js +331 -232
  13. package/dist/plesk-ui-library.js.map +1 -1
  14. package/dist/plesk-ui-library.min.js +5 -5
  15. package/dist/plesk-ui-library.min.js.map +1 -1
  16. package/esm/components/Button/Button.js +4 -1
  17. package/esm/components/Button/ButtonContext.js +18 -0
  18. package/esm/components/Drawer/Drawer.js +7 -14
  19. package/esm/components/Drawer/DrawerProgress.js +10 -13
  20. package/esm/components/Form/Form.js +25 -23
  21. package/esm/components/List/ListEmptyView.js +10 -2
  22. package/esm/index.js +1 -1
  23. package/package.json +38 -43
  24. package/styleguide/build/bundle.bab12e1d.js +2 -0
  25. package/styleguide/build/{bundle.26082873.js.LICENSE.txt → bundle.bab12e1d.js.LICENSE.txt} +1 -1
  26. package/styleguide/index.html +2 -2
  27. package/types/package.d.ts +0 -3
  28. package/types/src/components/Alert/Alert.stories.d.ts +2 -2
  29. package/types/src/components/AutoClosable/AutoClosable.d.ts +1 -1
  30. package/types/src/components/Button/Button.stories.d.ts +6 -5
  31. package/types/src/components/Button/ButtonContext.d.ts +9 -0
  32. package/types/src/components/Card/PreviewPanel.d.ts +2 -2
  33. package/types/src/components/ComboBox/ComboBox.d.ts +2 -2
  34. package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +2 -2
  35. package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +2 -2
  36. package/types/src/components/ContentLoader/IconsLoader.d.ts +2 -2
  37. package/types/src/components/Cuttable/Cuttable.d.ts +1 -1
  38. package/types/src/components/Cuttable/Cuttable.stories.d.ts +4 -4
  39. package/types/src/components/Dialog/Dialog.stories.d.ts +4 -3
  40. package/types/src/components/Drawer/Drawer.stories.d.ts +6 -5
  41. package/types/src/components/Form/Form.d.ts +6 -6
  42. package/types/src/components/Form/Form.stories.d.ts +3 -2
  43. package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +3 -2
  44. package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +3 -3
  45. package/types/src/components/Icon/Icon.stories.d.ts +3 -2
  46. package/types/src/components/InputFile/InputFile.d.ts +2 -2
  47. package/types/src/components/ItemLink/ItemLink.stories.d.ts +1 -1
  48. package/types/src/components/ItemList/ItemList.d.ts +3 -3
  49. package/types/src/components/ItemList/ItemList.stories.d.ts +6 -6
  50. package/types/src/components/Link/Link.d.ts +2 -2
  51. package/types/src/components/List/List.stories.d.ts +8 -7
  52. package/types/src/components/List/ListAction.d.ts +2 -2
  53. package/types/src/components/List/ListActions.d.ts +2 -2
  54. package/types/src/components/List/ListActionsDivider.d.ts +1 -1
  55. package/types/src/components/LocaleProvider/LocaleProvider.d.ts +2 -2
  56. package/types/src/components/Menu/Menu.stories.d.ts +7 -6
  57. package/types/src/components/Panel/Panel.d.ts +1 -1
  58. package/types/src/components/Popover/Popover.stories.d.ts +9 -8
  59. package/types/src/components/Select/Select.stories.d.ts +3 -3
  60. package/types/src/components/Skeleton/Skeleton.stories.d.ts +2 -2
  61. package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +1 -1
  62. package/types/src/components/Skeleton/SkeletonText.stories.d.ts +3 -3
  63. package/types/src/components/Spot/Spot.d.ts +2 -2
  64. package/types/src/components/Spot/SpotPopup.d.ts +2 -2
  65. package/types/src/components/Squeezer/Squeezer.d.ts +2 -2
  66. package/types/src/components/Status/Status.stories.d.ts +1 -1
  67. package/types/src/components/Tabs/Tabs.stories.d.ts +3 -2
  68. package/types/src/components/TextArea/TextArea.d.ts +1 -1
  69. package/types/src/components/Toast/Toast.d.ts +2 -2
  70. package/types/src/components/Toaster/Toaster.d.ts +2 -2
  71. package/types/src/components/Toolbar/ToolbarExpander.d.ts +2 -2
  72. package/types/src/components/Tour/Tour.d.ts +2 -2
  73. package/types/src/components/utils.d.ts +1 -1
  74. package/cjs/components/Drawer/ScrollDirection.js +0 -45
  75. package/dist/images/default.svg +0 -1
  76. package/dist/images/filtered.svg +0 -1
  77. package/esm/components/Drawer/ScrollDirection.js +0 -37
  78. package/styleguide/build/bundle.26082873.js +0 -2
  79. package/styleguide/images/default.svg +0 -1
  80. package/styleguide/images/empty-list_256.png +0 -0
  81. package/styleguide/images/filtered.svg +0 -1
  82. package/styleguide/patterns/controls/control-button-tooltip-1-do.png +0 -0
  83. package/styleguide/patterns/controls/control-button-tooltip-1-dont.png +0 -0
  84. package/styleguide/patterns/controls/control-button-tooltip-2-do.png +0 -0
  85. package/styleguide/patterns/controls/control-button-tooltip-2-dont.png +0 -0
  86. package/styleguide/patterns/controls/control-button-tooltip-3-do.png +0 -0
  87. package/styleguide/patterns/controls/control-button-tooltip-3-dont.png +0 -0
  88. package/styleguide/patterns/dialogsWindows/autoclose.png +0 -0
  89. package/styleguide/patterns/dialogsWindows/focus.png +0 -0
  90. package/styleguide/patterns/dialogsWindows/header.png +0 -0
  91. package/styleguide/patterns/dialogsWindows/image.png +0 -0
  92. package/styleguide/patterns/dialogsWindows/list_submit.png +0 -0
  93. package/styleguide/patterns/dialogsWindows/new_object.png +0 -0
  94. package/styleguide/patterns/dialogsWindows/popover-confirm.png +0 -0
  95. package/styleguide/patterns/dialogsWindows/popover.png +0 -0
  96. package/styleguide/patterns/dialogsWindows/similar_buttons.png +0 -0
  97. package/styleguide/patterns/dialogsWindows/submit.png +0 -0
  98. package/styleguide/patterns/dialogsWindows/toast_controls.png +0 -0
  99. package/styleguide/patterns/dialogsWindows/toaster_intent.png +0 -0
  100. package/styleguide/patterns/dialogsWindows/tooltip.png +0 -0
  101. package/styleguide/patterns/dialogsWindows/tour.png +0 -0
  102. package/styleguide/patterns/dialogsWindows/when_to_show.png +0 -0
  103. package/styleguide/patterns/dialogsWindows/width.png +0 -0
@@ -1290,6 +1290,7 @@ var _Tooltip = _interopRequireDefault(__webpack_require__(/*! ../Tooltip */ "./c
1290
1290
  var _oldIconNames = _interopRequireDefault(__webpack_require__(/*! ./old-icon-names.json */ "./components/Button/old-icon-names.json"));
1291
1291
  var _ResponsiveContext = _interopRequireDefault(__webpack_require__(/*! ../ResponsiveContext */ "./components/ResponsiveContext/index.tsx"));
1292
1292
  var _OnDarkContext = _interopRequireDefault(__webpack_require__(/*! ../OnDarkContext */ "./components/OnDarkContext/index.tsx"));
1293
+ var _ButtonContext = _interopRequireDefault(__webpack_require__(/*! ./ButtonContext */ "./components/Button/ButtonContext.tsx"));
1293
1294
  __webpack_require__(/*! ../../helpers/base.less */ "./helpers/base.less");
1294
1295
  __webpack_require__(/*! ./Button.less */ "./components/Button/Button.less");
1295
1296
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1342,7 +1343,7 @@ const Button = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
1342
1343
  baseClassName,
1343
1344
  className,
1344
1345
  component: Tag,
1345
- size,
1346
+ size: propsSize,
1346
1347
  intent,
1347
1348
  ghost,
1348
1349
  selected: selectedProp,
@@ -1363,6 +1364,8 @@ const Button = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
1363
1364
  return !selectedState;
1364
1365
  };
1365
1366
  const isCollapsed = (0, _react.useContext)(_ResponsiveContext.default);
1367
+ const buttonContextConfig = (0, _react.useContext)(_ButtonContext.default);
1368
+ const size = propsSize || buttonContextConfig.defaultProps.size;
1366
1369
  const componentProps = {};
1367
1370
  if (Tag === 'button') {
1368
1371
  componentProps.type = 'button';
@@ -1547,6 +1550,44 @@ exports["default"] = _default;
1547
1550
 
1548
1551
  /***/ }),
1549
1552
 
1553
+ /***/ "./components/Button/ButtonContext.tsx":
1554
+ /*!*********************************************!*\
1555
+ !*** ./components/Button/ButtonContext.tsx ***!
1556
+ \*********************************************/
1557
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1558
+
1559
+ "use strict";
1560
+
1561
+
1562
+ Object.defineProperty(exports, "__esModule", ({
1563
+ value: true
1564
+ }));
1565
+ exports.getButtonContextValue = exports["default"] = exports.ButtonContext = void 0;
1566
+ var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1567
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1568
+ // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
1569
+
1570
+ const defaultValue = {
1571
+ defaultProps: {
1572
+ size: undefined
1573
+ }
1574
+ };
1575
+ const ButtonContext = /*#__PURE__*/_react.default.createContext(defaultValue);
1576
+ exports.ButtonContext = ButtonContext;
1577
+ const getButtonContextValue = value => ({
1578
+ ...defaultValue,
1579
+ ...value,
1580
+ defaultProps: {
1581
+ ...defaultValue.defaultProps,
1582
+ ...(value.defaultProps || {})
1583
+ }
1584
+ });
1585
+ exports.getButtonContextValue = getButtonContextValue;
1586
+ var _default = ButtonContext;
1587
+ exports["default"] = _default;
1588
+
1589
+ /***/ }),
1590
+
1550
1591
  /***/ "./components/Button/index.js":
1551
1592
  /*!************************************!*\
1552
1593
  !*** ./components/Button/index.js ***!
@@ -5444,7 +5485,6 @@ var _constants = __webpack_require__(/*! ../../constants */ "./constants.js");
5444
5485
  var _Overlay = _interopRequireDefault(__webpack_require__(/*! ../Overlay */ "./components/Overlay/index.js"));
5445
5486
  var _ClosingConfirmation = __webpack_require__(/*! ../ClosingConfirmation */ "./components/ClosingConfirmation/index.tsx");
5446
5487
  var _Header = _interopRequireDefault(__webpack_require__(/*! ./Header */ "./components/Drawer/Header.js"));
5447
- var _ScrollDirection = _interopRequireDefault(__webpack_require__(/*! ./ScrollDirection */ "./components/Drawer/ScrollDirection.js"));
5448
5488
  var _Form = _interopRequireDefault(__webpack_require__(/*! ../Form */ "./components/Form/index.tsx"));
5449
5489
  var _Heading = _interopRequireDefault(__webpack_require__(/*! ../Heading */ "./components/Heading/index.tsx"));
5450
5490
  var _Translate = __webpack_require__(/*! ../Translate */ "./components/Translate/index.js");
@@ -5605,7 +5645,7 @@ const defaultProps = {
5605
5645
 
5606
5646
  /**
5607
5647
  * `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
5608
- * The component is similar to `Dialog` but it is intended to work with more complex forms or lists.
5648
+ * [Read more when to use Drawer](#!/Drawers%2C%20pages%2C%20popovers).
5609
5649
  * @since 0.0.65
5610
5650
  */
5611
5651
  const Drawer = _ref => {
@@ -5724,18 +5764,12 @@ const Drawer = _ref => {
5724
5764
  className: `${baseClassName}__title`
5725
5765
  }, title), subtitle && /*#__PURE__*/_react.default.createElement("div", {
5726
5766
  className: `${baseClassName}__subtitle`
5727
- }, subtitle)), /*#__PURE__*/_react.default.createElement(_ScrollDirection.default, null, _ref6 => {
5728
- let {
5729
- handleScroll
5730
- } = _ref6;
5731
- return /*#__PURE__*/_react.default.createElement("div", {
5732
- className: `${baseClassName}__body`,
5733
- onScroll: handleScroll,
5734
- ref: scrollableRef
5735
- }, /*#__PURE__*/_react.default.createElement(_ScrollableElementFormContext.default.Provider, {
5736
- value: scrollableRef.current
5737
- }, content));
5738
- }), footer && /*#__PURE__*/_react.default.createElement("footer", {
5767
+ }, subtitle)), /*#__PURE__*/_react.default.createElement("div", {
5768
+ className: `${baseClassName}__body`,
5769
+ ref: scrollableRef
5770
+ }, /*#__PURE__*/_react.default.createElement(_ScrollableElementFormContext.default.Provider, {
5771
+ value: scrollableRef.current
5772
+ }, content)), footer && /*#__PURE__*/_react.default.createElement("footer", {
5739
5773
  className: `${baseClassName}__footer`
5740
5774
  }, /*#__PURE__*/_react.default.createElement("div", {
5741
5775
  className: `${baseClassName}__footer-inner`
@@ -5764,6 +5798,7 @@ Object.defineProperty(exports, "__esModule", ({
5764
5798
  exports["default"] = void 0;
5765
5799
  var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
5766
5800
  var _Button = _interopRequireDefault(__webpack_require__(/*! ../Button */ "./components/Button/index.js"));
5801
+ var _ButtonContext = __webpack_require__(/*! ../Button/ButtonContext */ "./components/Button/ButtonContext.tsx");
5767
5802
  var _Translate = _interopRequireDefault(__webpack_require__(/*! ../Translate */ "./components/Translate/index.js"));
5768
5803
  var _Progress = _interopRequireDefault(__webpack_require__(/*! ../Progress */ "./components/Progress/index.js"));
5769
5804
  var _ProgressStep = _interopRequireWildcard(__webpack_require__(/*! ../ProgressStep */ "./components/ProgressStep/index.js"));
@@ -5777,17 +5812,11 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
5777
5812
  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; }
5778
5813
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
5779
5814
  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-2019. Plesk International GmbH. All rights reserved.
5780
- const renderAdditionalButtons = buttons => {
5781
- const buttonProcessing = button => {
5782
- if ( /*#__PURE__*/(0, _react.isValidElement)(button) && button.type === _Button.default) {
5783
- return /*#__PURE__*/(0, _react.cloneElement)(button, {
5784
- size: 'lg'
5785
- });
5786
- }
5787
- return button;
5788
- };
5789
- return Array.isArray(buttons) ? buttons.map(buttonProcessing) : buttonProcessing(buttons);
5790
- };
5815
+ const additionalButtonsConfig = (0, _ButtonContext.getButtonContextValue)({
5816
+ defaultProps: {
5817
+ size: 'lg'
5818
+ }
5819
+ });
5791
5820
  class DrawerProgress extends _react.Component {
5792
5821
  constructor() {
5793
5822
  super(...arguments);
@@ -5888,7 +5917,9 @@ class DrawerProgress extends _react.Component {
5888
5917
  }, step)))));
5889
5918
  const footer = hasFooter ? /*#__PURE__*/_react.default.createElement("div", {
5890
5919
  className: `${baseClassName}__footer`
5891
- }, renderAdditionalButtons(buttons), canCancel && /*#__PURE__*/_react.default.createElement(_Button.default, {
5920
+ }, /*#__PURE__*/_react.default.createElement(_ButtonContext.ButtonContext.Provider, {
5921
+ value: additionalButtonsConfig
5922
+ }, buttons), canCancel && /*#__PURE__*/_react.default.createElement(_Button.default, {
5892
5923
  onClick: this.handleCancel,
5893
5924
  size: "lg"
5894
5925
  }, /*#__PURE__*/_react.default.createElement(_Translate.default, {
@@ -6060,61 +6091,6 @@ _defineProperty(Header, "defaultProps", {
6060
6091
 
6061
6092
  /***/ }),
6062
6093
 
6063
- /***/ "./components/Drawer/ScrollDirection.js":
6064
- /*!**********************************************!*\
6065
- !*** ./components/Drawer/ScrollDirection.js ***!
6066
- \**********************************************/
6067
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
6068
-
6069
- "use strict";
6070
-
6071
-
6072
- Object.defineProperty(exports, "__esModule", ({
6073
- value: true
6074
- }));
6075
- exports["default"] = void 0;
6076
- var _react = __webpack_require__(/*! react */ "react");
6077
- var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
6078
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6079
- 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; }
6080
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
6081
- 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-2017. Plesk International GmbH. All rights reserved.
6082
- class ScrollDirection extends _react.Component {
6083
- constructor() {
6084
- super(...arguments);
6085
- _defineProperty(this, "state", {
6086
- direction: 'up'
6087
- });
6088
- _defineProperty(this, "prevScrollTop", 0);
6089
- _defineProperty(this, "handleScroll", e => {
6090
- const {
6091
- scrollTop
6092
- } = e.target;
6093
- const direction = scrollTop > this.prevScrollTop ? 'down' : 'up';
6094
- this.prevScrollTop = scrollTop;
6095
- this.setState({
6096
- direction
6097
- });
6098
- });
6099
- }
6100
- render() {
6101
- const {
6102
- children
6103
- } = this.props;
6104
- return children({
6105
- direction: this.state.direction,
6106
- handleScroll: this.handleScroll
6107
- });
6108
- }
6109
- }
6110
- ScrollDirection.propTypes = {
6111
- children: _propTypes.default.func.isRequired
6112
- };
6113
- var _default = ScrollDirection;
6114
- exports["default"] = _default;
6115
-
6116
- /***/ }),
6117
-
6118
6094
  /***/ "./components/Drawer/index.js":
6119
6095
  /*!************************************!*\
6120
6096
  !*** ./components/Drawer/index.js ***!
@@ -7000,6 +6976,7 @@ var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "
7000
6976
  var _reactMeasure = _interopRequireDefault(__webpack_require__(/*! react-measure */ "../node_modules/react-measure/dist/index.esm.js"));
7001
6977
  var _constants = __webpack_require__(/*! ../../constants */ "./constants.js");
7002
6978
  var _Button = _interopRequireDefault(__webpack_require__(/*! ../Button */ "./components/Button/index.js"));
6979
+ var _ButtonContext = __webpack_require__(/*! ../Button/ButtonContext */ "./components/Button/ButtonContext.tsx");
7003
6980
  var _FormField = _interopRequireDefault(__webpack_require__(/*! ../FormField */ "./components/FormField/index.js"));
7004
6981
  var _Section = _interopRequireDefault(__webpack_require__(/*! ../Section */ "./components/Section/index.js"));
7005
6982
  var _Translate = _interopRequireDefault(__webpack_require__(/*! ../Translate */ "./components/Translate/index.js"));
@@ -7015,7 +6992,11 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
7015
6992
  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; }
7016
6993
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
7017
6994
  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-2020. Plesk International GmbH. All rights reserved.
7018
- /* eslint-disable react/no-deprecated */
6995
+ const actionButtonsConfig = (0, _ButtonContext.getButtonContextValue)({
6996
+ defaultProps: {
6997
+ size: 'lg'
6998
+ }
6999
+ });
7019
7000
  class Form extends _react.Component {
7020
7001
  constructor() {
7021
7002
  var _this;
@@ -7189,7 +7170,9 @@ class Form extends _react.Component {
7189
7170
  } = this.props;
7190
7171
  return /*#__PURE__*/_react.default.createElement(_Section.default, {
7191
7172
  className: (0, _classnames.default)(`${baseClassName}__footer`, footerClassName)
7192
- }, /*#__PURE__*/_react.default.createElement(_FormField.default, null, this.renderSubmitButton({
7173
+ }, /*#__PURE__*/_react.default.createElement(_FormField.default, null, /*#__PURE__*/_react.default.createElement(_ButtonContext.ButtonContext.Provider, {
7174
+ value: actionButtonsConfig
7175
+ }, this.renderSubmitButton({
7193
7176
  submitButton,
7194
7177
  state
7195
7178
  }), this.renderApplyButton({
@@ -7200,7 +7183,7 @@ class Form extends _react.Component {
7200
7183
  }), this.renderCancelButton({
7201
7184
  cancelButton,
7202
7185
  state
7203
- })));
7186
+ }))));
7204
7187
  });
7205
7188
  }
7206
7189
  static getDerivedStateFromProps(props, state) {
@@ -7261,7 +7244,6 @@ class Form extends _react.Component {
7261
7244
  return null;
7262
7245
  }
7263
7246
  return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
7264
- size: "lg",
7265
7247
  intent: "primary",
7266
7248
  state: state === 'submit' ? 'loading' : undefined,
7267
7249
  disabled: !!state,
@@ -7272,7 +7254,7 @@ class Form extends _react.Component {
7272
7254
  content: "Form.submitButton",
7273
7255
  fallback: "Save"
7274
7256
  })
7275
- }, submitButton));
7257
+ }, typeof submitButton === 'object' ? submitButton : {}));
7276
7258
  }
7277
7259
  renderApplyButton(_ref5) {
7278
7260
  let {
@@ -7282,18 +7264,18 @@ class Form extends _react.Component {
7282
7264
  if (!applyButton) {
7283
7265
  return null;
7284
7266
  }
7285
- return /*#__PURE__*/(0, _react.createElement)(_Button.default, {
7286
- size: 'lg',
7287
- intent: 'primary',
7267
+ return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
7268
+ intent: "primary",
7288
7269
  state: state === 'apply' ? 'loading' : undefined,
7289
7270
  disabled: !!state,
7290
- onClick: this.handleApplyClick,
7271
+ onClick: this.handleApplyClick
7272
+ // eslint-disable-next-line react/no-children-prop
7273
+ ,
7291
7274
  children: /*#__PURE__*/_react.default.createElement(_Translate.default, {
7292
7275
  content: "Form.applyButton",
7293
7276
  fallback: "Apply"
7294
- }),
7295
- ...applyButton
7296
- });
7277
+ })
7278
+ }, typeof applyButton === 'object' ? applyButton : {}));
7297
7279
  }
7298
7280
  renderCancelButton(_ref6) {
7299
7281
  let {
@@ -7303,16 +7285,16 @@ class Form extends _react.Component {
7303
7285
  if (!cancelButton) {
7304
7286
  return null;
7305
7287
  }
7306
- return /*#__PURE__*/(0, _react.createElement)(_Button.default, {
7307
- size: 'lg',
7288
+ return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
7308
7289
  state: state === 'cancel' ? 'loading' : undefined,
7309
- disabled: !!state,
7290
+ disabled: !!state
7291
+ // eslint-disable-next-line react/no-children-prop
7292
+ ,
7310
7293
  children: /*#__PURE__*/_react.default.createElement(_Translate.default, {
7311
7294
  content: "Form.cancelButton",
7312
7295
  fallback: "Cancel"
7313
- }),
7314
- ...cancelButton
7315
- });
7296
+ })
7297
+ }, typeof cancelButton === 'object' ? cancelButton : {}));
7316
7298
  }
7317
7299
  renderAdditionalButtons(_ref7) {
7318
7300
  let {
@@ -7327,9 +7309,6 @@ class Form extends _react.Component {
7327
7309
  const props = {
7328
7310
  className: (0, _classnames.default)(element.props.className, `${baseClassName}__additional-button`)
7329
7311
  };
7330
- if (element.type === _Button.default) {
7331
- props.size = 'lg';
7332
- }
7333
7312
  return /*#__PURE__*/(0, _react.cloneElement)(element, props);
7334
7313
  }
7335
7314
  return element;
@@ -13969,9 +13948,10 @@ var _Translate = _interopRequireDefault(__webpack_require__(/*! ../Translate */
13969
13948
  var _default2 = _interopRequireDefault(__webpack_require__(/*! ./images/default.png */ "./components/List/images/default.png"));
13970
13949
  var _filtered = _interopRequireDefault(__webpack_require__(/*! ./images/filtered.png */ "./components/List/images/filtered.png"));
13971
13950
  var _constants = __webpack_require__(/*! ../../constants */ "./constants.js");
13951
+ var _ButtonContext = __webpack_require__(/*! ../Button/ButtonContext */ "./components/Button/ButtonContext.tsx");
13972
13952
  __webpack_require__(/*! ./ListEmptyView.less */ "./components/List/ListEmptyView.less");
13973
13953
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13974
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
13954
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
13975
13955
  const createImage = (baseClassName, image, reason) => {
13976
13956
  if (image === undefined) {
13977
13957
  image = reason === 'filtered' ? _filtered.default : _default2.default;
@@ -14017,6 +13997,11 @@ const createDescription = (baseClassName, description, reason) => {
14017
13997
  className: `${baseClassName}__description`
14018
13998
  }, description);
14019
13999
  };
14000
+ const buttonConfig = (0, _ButtonContext.getButtonContextValue)({
14001
+ defaultProps: {
14002
+ size: 'lg'
14003
+ }
14004
+ });
14020
14005
 
14021
14006
  /**
14022
14007
  * `ListEmptyView` component is used for displaying "empty" state of [List](#!/List)
@@ -14040,7 +14025,9 @@ const ListEmptyView = _ref => {
14040
14025
  className: `${baseClassName}__body`
14041
14026
  }, createTitle(baseClassName, title, reason), createDescription(baseClassName, description, reason), actions && /*#__PURE__*/_react.default.createElement("div", {
14042
14027
  className: `${baseClassName}__actions`
14043
- }, actions)));
14028
+ }, /*#__PURE__*/_react.default.createElement(_ButtonContext.ButtonContext.Provider, {
14029
+ value: buttonConfig
14030
+ }, actions))));
14044
14031
  };
14045
14032
  var _default = ListEmptyView;
14046
14033
  exports["default"] = _default;
@@ -77043,7 +77030,7 @@ __webpack_require__.r(__webpack_exports__);
77043
77030
  /* harmony export */ });
77044
77031
  /**!
77045
77032
  * @fileOverview Kickass library to create and place poppers near their reference elements.
77046
- * @version 1.14.3
77033
+ * @version 1.16.1
77047
77034
  * @license
77048
77035
  * Copyright (c) 2016 Federico Zivolo and contributors
77049
77036
  *
@@ -77065,16 +77052,17 @@ __webpack_require__.r(__webpack_exports__);
77065
77052
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
77066
77053
  * SOFTWARE.
77067
77054
  */
77068
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
77055
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
77069
77056
 
77070
- var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
77071
- var timeoutDuration = 0;
77072
- for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
77073
- if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
77074
- timeoutDuration = 1;
77075
- break;
77057
+ var timeoutDuration = function () {
77058
+ var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
77059
+ for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
77060
+ if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
77061
+ return 1;
77062
+ }
77076
77063
  }
77077
- }
77064
+ return 0;
77065
+ }();
77078
77066
 
77079
77067
  function microtaskDebounce(fn) {
77080
77068
  var called = false;
@@ -77140,7 +77128,8 @@ function getStyleComputedProperty(element, property) {
77140
77128
  return [];
77141
77129
  }
77142
77130
  // NOTE: 1 DOM access here
77143
- var css = getComputedStyle(element, null);
77131
+ var window = element.ownerDocument.defaultView;
77132
+ var css = window.getComputedStyle(element, null);
77144
77133
  return property ? css[property] : css;
77145
77134
  }
77146
77135
 
@@ -77193,6 +77182,17 @@ function getScrollParent(element) {
77193
77182
  return getScrollParent(getParentNode(element));
77194
77183
  }
77195
77184
 
77185
+ /**
77186
+ * Returns the reference node of the reference object, or the reference object itself.
77187
+ * @method
77188
+ * @memberof Popper.Utils
77189
+ * @param {Element|Object} reference - the reference element (the popper will be relative to this)
77190
+ * @returns {Element} parent
77191
+ */
77192
+ function getReferenceNode(reference) {
77193
+ return reference && reference.referenceNode ? reference.referenceNode : reference;
77194
+ }
77195
+
77196
77196
  var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
77197
77197
  var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);
77198
77198
 
@@ -77228,7 +77228,7 @@ function getOffsetParent(element) {
77228
77228
  var noOffsetParent = isIE(10) ? document.body : null;
77229
77229
 
77230
77230
  // NOTE: 1 DOM access here
77231
- var offsetParent = element.offsetParent;
77231
+ var offsetParent = element.offsetParent || null;
77232
77232
  // Skip hidden elements which don't have an offsetParent
77233
77233
  while (offsetParent === noOffsetParent && element.nextElementSibling) {
77234
77234
  offsetParent = (element = element.nextElementSibling).offsetParent;
@@ -77240,9 +77240,9 @@ function getOffsetParent(element) {
77240
77240
  return element ? element.ownerDocument.documentElement : document.documentElement;
77241
77241
  }
77242
77242
 
77243
- // .offsetParent will return the closest TD or TABLE in case
77243
+ // .offsetParent will return the closest TH, TD or TABLE in case
77244
77244
  // no offsetParent is present, I hate this job...
77245
- if (['TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {
77245
+ if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {
77246
77246
  return getOffsetParent(offsetParent);
77247
77247
  }
77248
77248
 
@@ -77376,14 +77376,14 @@ function getBordersSize(styles, axis) {
77376
77376
  var sideA = axis === 'x' ? 'Left' : 'Top';
77377
77377
  var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
77378
77378
 
77379
- return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10);
77379
+ return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);
77380
77380
  }
77381
77381
 
77382
77382
  function getSize(axis, body, html, computedStyle) {
77383
- return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? html['offset' + axis] + computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')] + computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')] : 0);
77383
+ return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);
77384
77384
  }
77385
77385
 
77386
- function getWindowSizes() {
77386
+ function getWindowSizes(document) {
77387
77387
  var body = document.body;
77388
77388
  var html = document.documentElement;
77389
77389
  var computedStyle = isIE(10) && getComputedStyle(html);
@@ -77500,9 +77500,9 @@ function getBoundingClientRect(element) {
77500
77500
  };
77501
77501
 
77502
77502
  // subtract scrollbar size from sizes
77503
- var sizes = element.nodeName === 'HTML' ? getWindowSizes() : {};
77504
- var width = sizes.width || element.clientWidth || result.right - result.left;
77505
- var height = sizes.height || element.clientHeight || result.bottom - result.top;
77503
+ var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
77504
+ var width = sizes.width || element.clientWidth || result.width;
77505
+ var height = sizes.height || element.clientHeight || result.height;
77506
77506
 
77507
77507
  var horizScrollbar = element.offsetWidth - width;
77508
77508
  var vertScrollbar = element.offsetHeight - height;
@@ -77531,11 +77531,11 @@ function getOffsetRectRelativeToArbitraryNode(children, parent) {
77531
77531
  var scrollParent = getScrollParent(children);
77532
77532
 
77533
77533
  var styles = getStyleComputedProperty(parent);
77534
- var borderTopWidth = parseFloat(styles.borderTopWidth, 10);
77535
- var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10);
77534
+ var borderTopWidth = parseFloat(styles.borderTopWidth);
77535
+ var borderLeftWidth = parseFloat(styles.borderLeftWidth);
77536
77536
 
77537
77537
  // In cases where the parent is fixed, we must ignore negative scroll in offset calc
77538
- if (fixedPosition && parent.nodeName === 'HTML') {
77538
+ if (fixedPosition && isHTML) {
77539
77539
  parentRect.top = Math.max(parentRect.top, 0);
77540
77540
  parentRect.left = Math.max(parentRect.left, 0);
77541
77541
  }
@@ -77553,8 +77553,8 @@ function getOffsetRectRelativeToArbitraryNode(children, parent) {
77553
77553
  // differently when margins are applied to it. The margins are included in
77554
77554
  // the box of the documentElement, in the other cases not.
77555
77555
  if (!isIE10 && isHTML) {
77556
- var marginTop = parseFloat(styles.marginTop, 10);
77557
- var marginLeft = parseFloat(styles.marginLeft, 10);
77556
+ var marginTop = parseFloat(styles.marginTop);
77557
+ var marginLeft = parseFloat(styles.marginLeft);
77558
77558
 
77559
77559
  offsets.top -= borderTopWidth - marginTop;
77560
77560
  offsets.bottom -= borderTopWidth - marginTop;
@@ -77610,7 +77610,11 @@ function isFixed(element) {
77610
77610
  if (getStyleComputedProperty(element, 'position') === 'fixed') {
77611
77611
  return true;
77612
77612
  }
77613
- return isFixed(getParentNode(element));
77613
+ var parentNode = getParentNode(element);
77614
+ if (!parentNode) {
77615
+ return false;
77616
+ }
77617
+ return isFixed(parentNode);
77614
77618
  }
77615
77619
 
77616
77620
  /**
@@ -77650,7 +77654,7 @@ function getBoundaries(popper, reference, padding, boundariesElement) {
77650
77654
  // NOTE: 1 DOM access here
77651
77655
 
77652
77656
  var boundaries = { top: 0, left: 0 };
77653
- var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
77657
+ var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
77654
77658
 
77655
77659
  // Handle viewport case
77656
77660
  if (boundariesElement === 'viewport') {
@@ -77673,7 +77677,7 @@ function getBoundaries(popper, reference, padding, boundariesElement) {
77673
77677
 
77674
77678
  // In case of HTML, we need a different computation
77675
77679
  if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
77676
- var _getWindowSizes = getWindowSizes(),
77680
+ var _getWindowSizes = getWindowSizes(popper.ownerDocument),
77677
77681
  height = _getWindowSizes.height,
77678
77682
  width = _getWindowSizes.width;
77679
77683
 
@@ -77688,10 +77692,12 @@ function getBoundaries(popper, reference, padding, boundariesElement) {
77688
77692
  }
77689
77693
 
77690
77694
  // Add paddings
77691
- boundaries.left += padding;
77692
- boundaries.top += padding;
77693
- boundaries.right -= padding;
77694
- boundaries.bottom -= padding;
77695
+ padding = padding || 0;
77696
+ var isPaddingNumber = typeof padding === 'number';
77697
+ boundaries.left += isPaddingNumber ? padding : padding.left || 0;
77698
+ boundaries.top += isPaddingNumber ? padding : padding.top || 0;
77699
+ boundaries.right -= isPaddingNumber ? padding : padding.right || 0;
77700
+ boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;
77695
77701
 
77696
77702
  return boundaries;
77697
77703
  }
@@ -77776,7 +77782,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
77776
77782
  function getReferenceOffsets(state, popper, reference) {
77777
77783
  var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
77778
77784
 
77779
- var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
77785
+ var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
77780
77786
  return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
77781
77787
  }
77782
77788
 
@@ -77788,9 +77794,10 @@ function getReferenceOffsets(state, popper, reference) {
77788
77794
  * @returns {Object} object containing width and height properties
77789
77795
  */
77790
77796
  function getOuterSizes(element) {
77791
- var styles = getComputedStyle(element);
77792
- var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
77793
- var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
77797
+ var window = element.ownerDocument.defaultView;
77798
+ var styles = window.getComputedStyle(element);
77799
+ var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);
77800
+ var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);
77794
77801
  var result = {
77795
77802
  width: element.offsetWidth + y,
77796
77803
  height: element.offsetHeight + x
@@ -78016,7 +78023,7 @@ function getSupportedPropertyName(property) {
78016
78023
  }
78017
78024
 
78018
78025
  /**
78019
- * Destroy the popper
78026
+ * Destroys the popper.
78020
78027
  * @method
78021
78028
  * @memberof Popper
78022
78029
  */
@@ -78037,7 +78044,7 @@ function destroy() {
78037
78044
 
78038
78045
  this.disableEventListeners();
78039
78046
 
78040
- // remove the popper if user explicity asked for the deletion on destroy
78047
+ // remove the popper if user explicitly asked for the deletion on destroy
78041
78048
  // do not use `remove` because IE11 doesn't support it
78042
78049
  if (this.options.removeOnDestroy) {
78043
78050
  this.popper.parentNode.removeChild(this.popper);
@@ -78123,7 +78130,7 @@ function removeEventListeners(reference, state) {
78123
78130
 
78124
78131
  /**
78125
78132
  * It will remove resize/scroll events and won't recalculate popper position
78126
- * when they are triggered. It also won't trigger onUpdate callback anymore,
78133
+ * when they are triggered. It also won't trigger `onUpdate` callback anymore,
78127
78134
  * unless you call `update` method manually.
78128
78135
  * @method
78129
78136
  * @memberof Popper
@@ -78240,6 +78247,57 @@ function applyStyleOnLoad(reference, popper, options, modifierOptions, state) {
78240
78247
  return options;
78241
78248
  }
78242
78249
 
78250
+ /**
78251
+ * @function
78252
+ * @memberof Popper.Utils
78253
+ * @argument {Object} data - The data object generated by `update` method
78254
+ * @argument {Boolean} shouldRound - If the offsets should be rounded at all
78255
+ * @returns {Object} The popper's position offsets rounded
78256
+ *
78257
+ * The tale of pixel-perfect positioning. It's still not 100% perfect, but as
78258
+ * good as it can be within reason.
78259
+ * Discussion here: https://github.com/FezVrasta/popper.js/pull/715
78260
+ *
78261
+ * Low DPI screens cause a popper to be blurry if not using full pixels (Safari
78262
+ * as well on High DPI screens).
78263
+ *
78264
+ * Firefox prefers no rounding for positioning and does not have blurriness on
78265
+ * high DPI screens.
78266
+ *
78267
+ * Only horizontal placement and left/right values need to be considered.
78268
+ */
78269
+ function getRoundedOffsets(data, shouldRound) {
78270
+ var _data$offsets = data.offsets,
78271
+ popper = _data$offsets.popper,
78272
+ reference = _data$offsets.reference;
78273
+ var round = Math.round,
78274
+ floor = Math.floor;
78275
+
78276
+ var noRound = function noRound(v) {
78277
+ return v;
78278
+ };
78279
+
78280
+ var referenceWidth = round(reference.width);
78281
+ var popperWidth = round(popper.width);
78282
+
78283
+ var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;
78284
+ var isVariation = data.placement.indexOf('-') !== -1;
78285
+ var sameWidthParity = referenceWidth % 2 === popperWidth % 2;
78286
+ var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;
78287
+
78288
+ var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;
78289
+ var verticalToInteger = !shouldRound ? noRound : round;
78290
+
78291
+ return {
78292
+ left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),
78293
+ top: verticalToInteger(popper.top),
78294
+ bottom: verticalToInteger(popper.bottom),
78295
+ right: horizontalToInteger(popper.right)
78296
+ };
78297
+ }
78298
+
78299
+ var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
78300
+
78243
78301
  /**
78244
78302
  * @function
78245
78303
  * @memberof Modifiers
@@ -78270,15 +78328,7 @@ function computeStyle(data, options) {
78270
78328
  position: popper.position
78271
78329
  };
78272
78330
 
78273
- // Avoid blurry text by using full pixel integers.
78274
- // For pixel-perfect positioning, top/bottom prefers rounded
78275
- // values, while left/right prefers floored values.
78276
- var offsets = {
78277
- left: Math.floor(popper.left),
78278
- top: Math.round(popper.top),
78279
- bottom: Math.round(popper.bottom),
78280
- right: Math.floor(popper.right)
78281
- };
78331
+ var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);
78282
78332
 
78283
78333
  var sideA = x === 'bottom' ? 'top' : 'bottom';
78284
78334
  var sideB = y === 'right' ? 'left' : 'right';
@@ -78300,12 +78350,22 @@ function computeStyle(data, options) {
78300
78350
  var left = void 0,
78301
78351
  top = void 0;
78302
78352
  if (sideA === 'bottom') {
78303
- top = -offsetParentRect.height + offsets.bottom;
78353
+ // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)
78354
+ // and not the bottom of the html element
78355
+ if (offsetParent.nodeName === 'HTML') {
78356
+ top = -offsetParent.clientHeight + offsets.bottom;
78357
+ } else {
78358
+ top = -offsetParentRect.height + offsets.bottom;
78359
+ }
78304
78360
  } else {
78305
78361
  top = offsets.top;
78306
78362
  }
78307
78363
  if (sideB === 'right') {
78308
- left = -offsetParentRect.width + offsets.right;
78364
+ if (offsetParent.nodeName === 'HTML') {
78365
+ left = -offsetParent.clientWidth + offsets.right;
78366
+ } else {
78367
+ left = -offsetParentRect.width + offsets.right;
78368
+ }
78309
78369
  } else {
78310
78370
  left = offsets.left;
78311
78371
  }
@@ -78414,7 +78474,7 @@ function arrow(data, options) {
78414
78474
 
78415
78475
  //
78416
78476
  // extends keepTogether behavior making sure the popper and its
78417
- // reference have enough pixels in conjuction
78477
+ // reference have enough pixels in conjunction
78418
78478
  //
78419
78479
 
78420
78480
  // top/left side
@@ -78433,8 +78493,8 @@ function arrow(data, options) {
78433
78493
  // Compute the sideValue using the updated popper offsets
78434
78494
  // take popper margin in account because we don't have this info available
78435
78495
  var css = getStyleComputedProperty(data.instance.popper);
78436
- var popperMarginSide = parseFloat(css['margin' + sideCapitalized], 10);
78437
- var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width'], 10);
78496
+ var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);
78497
+ var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);
78438
78498
  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
78439
78499
 
78440
78500
  // prevent arrowElement from being placed not contiguously to its popper
@@ -78484,7 +78544,7 @@ function getOppositeVariation(variation) {
78484
78544
  * - `top-end` (on top of reference, right aligned)
78485
78545
  * - `right-start` (on right of reference, top aligned)
78486
78546
  * - `bottom` (on bottom, centered)
78487
- * - `auto-right` (on the side with more space available, alignment depends by placement)
78547
+ * - `auto-end` (on the side with more space available, alignment depends by placement)
78488
78548
  *
78489
78549
  * @static
78490
78550
  * @type {Array}
@@ -78586,7 +78646,14 @@ function flip(data, options) {
78586
78646
 
78587
78647
  // flip the variation if required
78588
78648
  var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
78589
- var flippedVariation = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);
78649
+
78650
+ // flips variation if reference element overflows boundaries
78651
+ var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);
78652
+
78653
+ // flips variation if popper content overflows boundaries
78654
+ var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);
78655
+
78656
+ var flippedVariation = flippedVariationByRef || flippedVariationByContent;
78590
78657
 
78591
78658
  if (overlapsRef || overflowsBoundaries || flippedVariation) {
78592
78659
  // this boolean to detect any flip loop
@@ -79026,7 +79093,7 @@ var modifiers = {
79026
79093
  * The `offset` modifier can shift your popper on both its axis.
79027
79094
  *
79028
79095
  * It accepts the following units:
79029
- * - `px` or unitless, interpreted as pixels
79096
+ * - `px` or unit-less, interpreted as pixels
79030
79097
  * - `%` or `%r`, percentage relative to the length of the reference element
79031
79098
  * - `%p`, percentage relative to the length of the popper element
79032
79099
  * - `vw`, CSS viewport width unit
@@ -79034,7 +79101,7 @@ var modifiers = {
79034
79101
  *
79035
79102
  * For length is intended the main axis relative to the placement of the popper.<br />
79036
79103
  * This means that if the placement is `top` or `bottom`, the length will be the
79037
- * `width`. In case of `left` or `right`, it will be the height.
79104
+ * `width`. In case of `left` or `right`, it will be the `height`.
79038
79105
  *
79039
79106
  * You can provide a single value (as `Number` or `String`), or a pair of values
79040
79107
  * as `String` divided by a comma or one (or more) white spaces.<br />
@@ -79055,7 +79122,7 @@ var modifiers = {
79055
79122
  * ```
79056
79123
  * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
79057
79124
  * > with their reference element, unfortunately, you will have to disable the `flip` modifier.
79058
- * > More on this [reading this issue](https://github.com/FezVrasta/popper.js/issues/373)
79125
+ * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
79059
79126
  *
79060
79127
  * @memberof modifiers
79061
79128
  * @inner
@@ -79076,7 +79143,7 @@ var modifiers = {
79076
79143
  /**
79077
79144
  * Modifier used to prevent the popper from being positioned outside the boundary.
79078
79145
  *
79079
- * An scenario exists where the reference itself is not within the boundaries.<br />
79146
+ * A scenario exists where the reference itself is not within the boundaries.<br />
79080
79147
  * We can say it has "escaped the boundaries" — or just "escaped".<br />
79081
79148
  * In this case we need to decide whether the popper should either:
79082
79149
  *
@@ -79106,23 +79173,23 @@ var modifiers = {
79106
79173
  /**
79107
79174
  * @prop {number} padding=5
79108
79175
  * Amount of pixel used to define a minimum distance between the boundaries
79109
- * and the popper this makes sure the popper has always a little padding
79176
+ * and the popper. This makes sure the popper always has a little padding
79110
79177
  * between the edges of its container
79111
79178
  */
79112
79179
  padding: 5,
79113
79180
  /**
79114
79181
  * @prop {String|HTMLElement} boundariesElement='scrollParent'
79115
- * Boundaries used by the modifier, can be `scrollParent`, `window`,
79182
+ * Boundaries used by the modifier. Can be `scrollParent`, `window`,
79116
79183
  * `viewport` or any DOM element.
79117
79184
  */
79118
79185
  boundariesElement: 'scrollParent'
79119
79186
  },
79120
79187
 
79121
79188
  /**
79122
- * Modifier used to make sure the reference and its popper stay near eachothers
79123
- * without leaving any gap between the two. Expecially useful when the arrow is
79124
- * enabled and you want to assure it to point to its reference element.
79125
- * It cares only about the first axis, you can still have poppers with margin
79189
+ * Modifier used to make sure the reference and its popper stay near each other
79190
+ * without leaving any gap between the two. Especially useful when the arrow is
79191
+ * enabled and you want to ensure that it points to its reference element.
79192
+ * It cares only about the first axis. You can still have poppers with margin
79126
79193
  * between the popper and its reference element.
79127
79194
  * @memberof modifiers
79128
79195
  * @inner
@@ -79140,7 +79207,7 @@ var modifiers = {
79140
79207
  * This modifier is used to move the `arrowElement` of the popper to make
79141
79208
  * sure it is positioned between the reference element and its popper element.
79142
79209
  * It will read the outer size of the `arrowElement` node to detect how many
79143
- * pixels of conjuction are needed.
79210
+ * pixels of conjunction are needed.
79144
79211
  *
79145
79212
  * It has no effect if no `arrowElement` is provided.
79146
79213
  * @memberof modifiers
@@ -79179,7 +79246,7 @@ var modifiers = {
79179
79246
  * @prop {String|Array} behavior='flip'
79180
79247
  * The behavior used to change the popper's placement. It can be one of
79181
79248
  * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
79182
- * placements (with optional variations).
79249
+ * placements (with optional variations)
79183
79250
  */
79184
79251
  behavior: 'flip',
79185
79252
  /**
@@ -79189,11 +79256,27 @@ var modifiers = {
79189
79256
  padding: 5,
79190
79257
  /**
79191
79258
  * @prop {String|HTMLElement} boundariesElement='viewport'
79192
- * The element which will define the boundaries of the popper position,
79193
- * the popper will never be placed outside of the defined boundaries
79194
- * (except if keepTogether is enabled)
79259
+ * The element which will define the boundaries of the popper position.
79260
+ * The popper will never be placed outside of the defined boundaries
79261
+ * (except if `keepTogether` is enabled)
79262
+ */
79263
+ boundariesElement: 'viewport',
79264
+ /**
79265
+ * @prop {Boolean} flipVariations=false
79266
+ * The popper will switch placement variation between `-start` and `-end` when
79267
+ * the reference element overlaps its boundaries.
79268
+ *
79269
+ * The original placement should have a set variation.
79195
79270
  */
79196
- boundariesElement: 'viewport'
79271
+ flipVariations: false,
79272
+ /**
79273
+ * @prop {Boolean} flipVariationsByContent=false
79274
+ * The popper will switch placement variation between `-start` and `-end` when
79275
+ * the popper element overlaps its reference boundaries.
79276
+ *
79277
+ * The original placement should have a set variation.
79278
+ */
79279
+ flipVariationsByContent: false
79197
79280
  },
79198
79281
 
79199
79282
  /**
@@ -79255,8 +79338,8 @@ var modifiers = {
79255
79338
  fn: computeStyle,
79256
79339
  /**
79257
79340
  * @prop {Boolean} gpuAcceleration=true
79258
- * If true, it uses the CSS 3d transformation to position the popper.
79259
- * Otherwise, it will use the `top` and `left` properties.
79341
+ * If true, it uses the CSS 3D transformation to position the popper.
79342
+ * Otherwise, it will use the `top` and `left` properties
79260
79343
  */
79261
79344
  gpuAcceleration: true,
79262
79345
  /**
@@ -79283,7 +79366,7 @@ var modifiers = {
79283
79366
  * Note that if you disable this modifier, you must make sure the popper element
79284
79367
  * has its position set to `absolute` before Popper.js can do its work!
79285
79368
  *
79286
- * Just disable this modifier and define you own to achieve the desired effect.
79369
+ * Just disable this modifier and define your own to achieve the desired effect.
79287
79370
  *
79288
79371
  * @memberof modifiers
79289
79372
  * @inner
@@ -79300,27 +79383,27 @@ var modifiers = {
79300
79383
  /**
79301
79384
  * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
79302
79385
  * @prop {Boolean} gpuAcceleration=true
79303
- * If true, it uses the CSS 3d transformation to position the popper.
79304
- * Otherwise, it will use the `top` and `left` properties.
79386
+ * If true, it uses the CSS 3D transformation to position the popper.
79387
+ * Otherwise, it will use the `top` and `left` properties
79305
79388
  */
79306
79389
  gpuAcceleration: undefined
79307
79390
  }
79308
79391
  };
79309
79392
 
79310
79393
  /**
79311
- * The `dataObject` is an object containing all the informations used by Popper.js
79312
- * this object get passed to modifiers and to the `onCreate` and `onUpdate` callbacks.
79394
+ * The `dataObject` is an object containing all the information used by Popper.js.
79395
+ * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.
79313
79396
  * @name dataObject
79314
79397
  * @property {Object} data.instance The Popper.js instance
79315
79398
  * @property {String} data.placement Placement applied to popper
79316
79399
  * @property {String} data.originalPlacement Placement originally defined on init
79317
79400
  * @property {Boolean} data.flipped True if popper has been flipped by flip modifier
79318
- * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper.
79401
+ * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper
79319
79402
  * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier
79320
- * @property {Object} data.styles Any CSS property defined here will be applied to the popper, it expects the JavaScript nomenclature (eg. `marginBottom`)
79321
- * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow, it expects the JavaScript nomenclature (eg. `marginBottom`)
79403
+ * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)
79404
+ * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)
79322
79405
  * @property {Object} data.boundaries Offsets of the popper boundaries
79323
- * @property {Object} data.offsets The measurements of popper, reference and arrow elements.
79406
+ * @property {Object} data.offsets The measurements of popper, reference and arrow elements
79324
79407
  * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values
79325
79408
  * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values
79326
79409
  * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0
@@ -79328,9 +79411,9 @@ var modifiers = {
79328
79411
 
79329
79412
  /**
79330
79413
  * Default options provided to Popper.js constructor.<br />
79331
- * These can be overriden using the `options` argument of Popper.js.<br />
79332
- * To override an option, simply pass as 3rd argument an object with the same
79333
- * structure of this object, example:
79414
+ * These can be overridden using the `options` argument of Popper.js.<br />
79415
+ * To override an option, simply pass an object with the same
79416
+ * structure of the `options` object, as the 3rd argument. For example:
79334
79417
  * ```
79335
79418
  * new Popper(ref, pop, {
79336
79419
  * modifiers: {
@@ -79344,7 +79427,7 @@ var modifiers = {
79344
79427
  */
79345
79428
  var Defaults = {
79346
79429
  /**
79347
- * Popper's placement
79430
+ * Popper's placement.
79348
79431
  * @prop {Popper.placements} placement='bottom'
79349
79432
  */
79350
79433
  placement: 'bottom',
@@ -79356,7 +79439,7 @@ var Defaults = {
79356
79439
  positionFixed: false,
79357
79440
 
79358
79441
  /**
79359
- * Whether events (resize, scroll) are initially enabled
79442
+ * Whether events (resize, scroll) are initially enabled.
79360
79443
  * @prop {Boolean} eventsEnabled=true
79361
79444
  */
79362
79445
  eventsEnabled: true,
@@ -79370,17 +79453,17 @@ var Defaults = {
79370
79453
 
79371
79454
  /**
79372
79455
  * Callback called when the popper is created.<br />
79373
- * By default, is set to no-op.<br />
79456
+ * By default, it is set to no-op.<br />
79374
79457
  * Access Popper.js instance with `data.instance`.
79375
79458
  * @prop {onCreate}
79376
79459
  */
79377
79460
  onCreate: function onCreate() {},
79378
79461
 
79379
79462
  /**
79380
- * Callback called when the popper is updated, this callback is not called
79463
+ * Callback called when the popper is updated. This callback is not called
79381
79464
  * on the initialization/creation of the popper, but only on subsequent
79382
79465
  * updates.<br />
79383
- * By default, is set to no-op.<br />
79466
+ * By default, it is set to no-op.<br />
79384
79467
  * Access Popper.js instance with `data.instance`.
79385
79468
  * @prop {onUpdate}
79386
79469
  */
@@ -79388,7 +79471,7 @@ var Defaults = {
79388
79471
 
79389
79472
  /**
79390
79473
  * List of modifiers used to modify the offsets before they are applied to the popper.
79391
- * They provide most of the functionalities of Popper.js
79474
+ * They provide most of the functionalities of Popper.js.
79392
79475
  * @prop {modifiers}
79393
79476
  */
79394
79477
  modifiers: modifiers
@@ -79408,10 +79491,10 @@ var Defaults = {
79408
79491
  // Methods
79409
79492
  var Popper = function () {
79410
79493
  /**
79411
- * Create a new Popper.js instance
79494
+ * Creates a new Popper.js instance.
79412
79495
  * @class Popper
79413
- * @param {HTMLElement|referenceObject} reference - The reference element used to position the popper
79414
- * @param {HTMLElement} popper - The HTML element used as popper.
79496
+ * @param {Element|referenceObject} reference - The reference element used to position the popper
79497
+ * @param {Element} popper - The HTML / XML element used as the popper
79415
79498
  * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
79416
79499
  * @return {Object} instance - The generated Popper.js instance
79417
79500
  */
@@ -79507,7 +79590,7 @@ var Popper = function () {
79507
79590
  }
79508
79591
 
79509
79592
  /**
79510
- * Schedule an update, it will run on the next UI update available
79593
+ * Schedules an update. It will run on the next UI update available.
79511
79594
  * @method scheduleUpdate
79512
79595
  * @memberof Popper
79513
79596
  */
@@ -79544,7 +79627,7 @@ var Popper = function () {
79544
79627
  * new Popper(referenceObject, popperNode);
79545
79628
  * ```
79546
79629
  *
79547
- * NB: This feature isn't supported in Internet Explorer 10
79630
+ * NB: This feature isn't supported in Internet Explorer 10.
79548
79631
  * @name referenceObject
79549
79632
  * @property {Function} data.getBoundingClientRect
79550
79633
  * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.
@@ -80577,7 +80660,7 @@ if (false) {} else {
80577
80660
  __webpack_require__.r(__webpack_exports__);
80578
80661
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
80579
80662
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
80580
- /* harmony export */ "withContentRect": () => (/* binding */ withContentRect)
80663
+ /* harmony export */ withContentRect: () => (/* binding */ withContentRect)
80581
80664
  /* harmony export */ });
80582
80665
  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../node_modules/@babel/runtime/helpers/esm/extends.js");
80583
80666
  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
@@ -80660,6 +80743,19 @@ function getContentRect(node, types) {
80660
80743
  return calculations;
80661
80744
  }
80662
80745
 
80746
+ /**
80747
+ * Returns the global window object associated with provided element.
80748
+ */
80749
+ function getWindowOf(target) {
80750
+ // Assume that the element is an instance of Node, which means that it
80751
+ // has the "ownerDocument" property from which we can retrieve a
80752
+ // corresponding global object.
80753
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView; // Return the local window object if it's not possible extract one from
80754
+ // provided element.
80755
+
80756
+ return ownerGlobal || window;
80757
+ }
80758
+
80663
80759
  function withContentRect(types) {
80664
80760
  return function (WrappedComponent) {
80665
80761
  var _class, _temp;
@@ -80690,6 +80786,7 @@ function withContentRect(types) {
80690
80786
  _this._animationFrameID = null;
80691
80787
  _this._resizeObserver = null;
80692
80788
  _this._node = null;
80789
+ _this._window = null;
80693
80790
 
80694
80791
  _this.measure = function (entries) {
80695
80792
  var contentRect = getContentRect(_this._node, types || getTypes(_this.props));
@@ -80698,7 +80795,7 @@ function withContentRect(types) {
80698
80795
  contentRect.entry = entries[0].contentRect;
80699
80796
  }
80700
80797
 
80701
- _this._animationFrameID = window.requestAnimationFrame(function () {
80798
+ _this._animationFrameID = _this._window.requestAnimationFrame(function () {
80702
80799
  if (_this._resizeObserver !== null) {
80703
80800
  _this.setState({
80704
80801
  contentRect: contentRect
@@ -80717,11 +80814,7 @@ function withContentRect(types) {
80717
80814
  }
80718
80815
 
80719
80816
  _this._node = node;
80720
-
80721
- if (_this._resizeObserver !== null && _this._node !== null) {
80722
- _this._resizeObserver.observe(_this._node);
80723
- }
80724
-
80817
+ _this._window = getWindowOf(_this._node);
80725
80818
  var innerRef = _this.props.innerRef;
80726
80819
 
80727
80820
  if (innerRef) {
@@ -80731,6 +80824,10 @@ function withContentRect(types) {
80731
80824
  innerRef.current = _this._node;
80732
80825
  }
80733
80826
  }
80827
+
80828
+ if (_this._resizeObserver !== null && _this._node !== null) {
80829
+ _this._resizeObserver.observe(_this._node);
80830
+ }
80734
80831
  };
80735
80832
 
80736
80833
  return _this;
@@ -80739,7 +80836,7 @@ function withContentRect(types) {
80739
80836
  var _proto = WithContentRect.prototype;
80740
80837
 
80741
80838
  _proto.componentDidMount = function componentDidMount() {
80742
- this._resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__["default"](this.measure);
80839
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__["default"](this.measure);
80743
80840
 
80744
80841
  if (this._node !== null) {
80745
80842
  this._resizeObserver.observe(this._node);
@@ -80751,13 +80848,15 @@ function withContentRect(types) {
80751
80848
  };
80752
80849
 
80753
80850
  _proto.componentWillUnmount = function componentWillUnmount() {
80851
+ if (this._window !== null) {
80852
+ this._window.cancelAnimationFrame(this._animationFrameID);
80853
+ }
80854
+
80754
80855
  if (this._resizeObserver !== null) {
80755
80856
  this._resizeObserver.disconnect();
80756
80857
 
80757
80858
  this._resizeObserver = null;
80758
80859
  }
80759
-
80760
- window.cancelAnimationFrame(this._animationFrameID);
80761
80860
  };
80762
80861
 
80763
80862
  _proto.render = function render() {
@@ -82680,7 +82779,7 @@ ReplaceTransition.propTypes = true ? {
82680
82779
  __webpack_require__.r(__webpack_exports__);
82681
82780
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
82682
82781
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
82683
- /* harmony export */ "modes": () => (/* binding */ modes)
82782
+ /* harmony export */ modes: () => (/* binding */ modes)
82684
82783
  /* harmony export */ });
82685
82784
  /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
82686
82785
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
@@ -82958,11 +83057,11 @@ SwitchTransition.defaultProps = {
82958
83057
  "use strict";
82959
83058
  __webpack_require__.r(__webpack_exports__);
82960
83059
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
82961
- /* harmony export */ "ENTERED": () => (/* binding */ ENTERED),
82962
- /* harmony export */ "ENTERING": () => (/* binding */ ENTERING),
82963
- /* harmony export */ "EXITED": () => (/* binding */ EXITED),
82964
- /* harmony export */ "EXITING": () => (/* binding */ EXITING),
82965
- /* harmony export */ "UNMOUNTED": () => (/* binding */ UNMOUNTED),
83060
+ /* harmony export */ ENTERED: () => (/* binding */ ENTERED),
83061
+ /* harmony export */ ENTERING: () => (/* binding */ ENTERING),
83062
+ /* harmony export */ EXITED: () => (/* binding */ EXITED),
83063
+ /* harmony export */ EXITING: () => (/* binding */ EXITING),
83064
+ /* harmony export */ UNMOUNTED: () => (/* binding */ UNMOUNTED),
82966
83065
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
82967
83066
  /* harmony export */ });
82968
83067
  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
@@ -83862,12 +83961,12 @@ __webpack_require__.r(__webpack_exports__);
83862
83961
  "use strict";
83863
83962
  __webpack_require__.r(__webpack_exports__);
83864
83963
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
83865
- /* harmony export */ "CSSTransition": () => (/* reexport safe */ _CSSTransition__WEBPACK_IMPORTED_MODULE_0__["default"]),
83866
- /* harmony export */ "ReplaceTransition": () => (/* reexport safe */ _ReplaceTransition__WEBPACK_IMPORTED_MODULE_1__["default"]),
83867
- /* harmony export */ "SwitchTransition": () => (/* reexport safe */ _SwitchTransition__WEBPACK_IMPORTED_MODULE_2__["default"]),
83868
- /* harmony export */ "Transition": () => (/* reexport safe */ _Transition__WEBPACK_IMPORTED_MODULE_4__["default"]),
83869
- /* harmony export */ "TransitionGroup": () => (/* reexport safe */ _TransitionGroup__WEBPACK_IMPORTED_MODULE_3__["default"]),
83870
- /* harmony export */ "config": () => (/* reexport safe */ _config__WEBPACK_IMPORTED_MODULE_5__["default"])
83964
+ /* harmony export */ CSSTransition: () => (/* reexport safe */ _CSSTransition__WEBPACK_IMPORTED_MODULE_0__["default"]),
83965
+ /* harmony export */ ReplaceTransition: () => (/* reexport safe */ _ReplaceTransition__WEBPACK_IMPORTED_MODULE_1__["default"]),
83966
+ /* harmony export */ SwitchTransition: () => (/* reexport safe */ _SwitchTransition__WEBPACK_IMPORTED_MODULE_2__["default"]),
83967
+ /* harmony export */ Transition: () => (/* reexport safe */ _Transition__WEBPACK_IMPORTED_MODULE_4__["default"]),
83968
+ /* harmony export */ TransitionGroup: () => (/* reexport safe */ _TransitionGroup__WEBPACK_IMPORTED_MODULE_3__["default"]),
83969
+ /* harmony export */ config: () => (/* reexport safe */ _config__WEBPACK_IMPORTED_MODULE_5__["default"])
83871
83970
  /* harmony export */ });
83872
83971
  /* harmony import */ var _CSSTransition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CSSTransition */ "../node_modules/react-transition-group/esm/CSSTransition.js");
83873
83972
  /* harmony import */ var _ReplaceTransition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ReplaceTransition */ "../node_modules/react-transition-group/esm/ReplaceTransition.js");
@@ -83893,10 +83992,10 @@ __webpack_require__.r(__webpack_exports__);
83893
83992
  "use strict";
83894
83993
  __webpack_require__.r(__webpack_exports__);
83895
83994
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
83896
- /* harmony export */ "getChildMapping": () => (/* binding */ getChildMapping),
83897
- /* harmony export */ "getInitialChildMapping": () => (/* binding */ getInitialChildMapping),
83898
- /* harmony export */ "getNextChildMapping": () => (/* binding */ getNextChildMapping),
83899
- /* harmony export */ "mergeChildMappings": () => (/* binding */ mergeChildMappings)
83995
+ /* harmony export */ getChildMapping: () => (/* binding */ getChildMapping),
83996
+ /* harmony export */ getInitialChildMapping: () => (/* binding */ getInitialChildMapping),
83997
+ /* harmony export */ getNextChildMapping: () => (/* binding */ getNextChildMapping),
83998
+ /* harmony export */ mergeChildMappings: () => (/* binding */ mergeChildMappings)
83900
83999
  /* harmony export */ });
83901
84000
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
83902
84001
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -84052,8 +84151,8 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
84052
84151
  "use strict";
84053
84152
  __webpack_require__.r(__webpack_exports__);
84054
84153
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84055
- /* harmony export */ "classNamesShape": () => (/* binding */ classNamesShape),
84056
- /* harmony export */ "timeoutsShape": () => (/* binding */ timeoutsShape)
84154
+ /* harmony export */ classNamesShape: () => (/* binding */ classNamesShape),
84155
+ /* harmony export */ timeoutsShape: () => (/* binding */ timeoutsShape)
84057
84156
  /* harmony export */ });
84058
84157
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
84059
84158
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -84087,7 +84186,7 @@ var classNamesShape = true ? prop_types__WEBPACK_IMPORTED_MODULE_0___default().
84087
84186
  "use strict";
84088
84187
  __webpack_require__.r(__webpack_exports__);
84089
84188
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84090
- /* harmony export */ "forceReflow": () => (/* binding */ forceReflow)
84189
+ /* harmony export */ forceReflow: () => (/* binding */ forceReflow)
84091
84190
  /* harmony export */ });
84092
84191
  var forceReflow = function forceReflow(node) {
84093
84192
  return node.scrollTop;
@@ -85229,8 +85328,8 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!function(root,
85229
85328
  "use strict";
85230
85329
  __webpack_require__.r(__webpack_exports__);
85231
85330
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
85232
- /* harmony export */ "FocusVisibleManager": () => (/* binding */ FocusVisibleManager),
85233
- /* harmony export */ "useFocusVisible": () => (/* binding */ useFocusVisible)
85331
+ /* harmony export */ FocusVisibleManager: () => (/* binding */ FocusVisibleManager),
85332
+ /* harmony export */ useFocusVisible: () => (/* binding */ useFocusVisible)
85234
85333
  /* harmony export */ });
85235
85334
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
85236
85335
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -88286,7 +88385,7 @@ function _setPrototypeOf(o, p) {
88286
88385
  /***/ ((module) => {
88287
88386
 
88288
88387
  "use strict";
88289
- module.exports = JSON.parse('{"name":"@plesk/ui-library","version":"3.31.2","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/**/*.less\\"","styleguide":"styleguidist server --config ./configs/styleguide.config.js","styleguide:build":"styleguidist build --config ./configs/styleguide.config.js","create-component":"node scripts/create-component.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.21.0","@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.14.3","prop-types":"^15.8.1","react-measure":"2.3.0","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.21.4","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-runtime":"^7.21.4","@babel/preset-env":"^7.21.4","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.4","@babel/types":"^7.21.4","@csstools/postcss-logical-float-and-clear":"^1.0.1","@plesk/eslint-config":"^1.1.0","@plesk/stylelint-config":"^1.0.0","@types/buble":"^0.19.2","@types/cheerio":"^0.22.31","@types/classnames":"2.2.7","@types/doctrine":"^0.0.3","@types/enzyme":"^3.10.12","@types/jest":"^23.3.14","@types/marked":"^4.0.8","@types/node":"^12.20.55","@types/react":"^16.14.38","@types/react-dom":"^16.9.18","@types/react-measure":"2.0.8","@types/react-transition-group":"^4.4.5","@types/svg4everybody":"2.1.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","autoprefixer":"^10.4.14","babel-loader":"^8.3.0","babel-plugin-dynamic-import-node":"^2.3.3","babel-plugin-transform-require-ignore":"^0.1.1","clean-webpack-plugin":"^4.0.0","cross-env":"^5.2.1","css-loader":"^6.7.3","css-minimizer-webpack-plugin":"^4.2.2","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.7","enzyme-to-json":"^3.6.2","eslint-config-prettier":"^6.15.0","eslint-plugin-markdown":"^1.0.2","eslint-plugin-prettier":"^3.4.1","fs-extra":"^7.0.1","html-webpack-plugin":"^5.5.0","inquirer":"^3.3.0","jest":"^24.9.0","jest-dev-server":"^4.4.0","jest-image-snapshot":"^4.5.1","less":"^4.1.3","less-loader":"^11.1.0","mini-css-extract-plugin":"^2.7.5","postcss":"^8.4.21","postcss-less":"^6.0.0","postcss-loader":"^7.2.4","postcss-logical":"^6.1.0","prettier":"^2.8.7","puppeteer-core":"13.1.3","react":"^16.14.0","react-dom":"^16.14.0","react-styleguidist":"^12.0.1","react-test-renderer":"^16.14.0","rimraf":"^3.0.2","rtlcss":"^4.0.0","style-loader":"^3.3.2","stylelint":"^14.16.1","stylelint-config-prettier":"^9.0.5","stylelint-declaration-block-no-ignored-properties":"^2.7.0","stylelint-no-unsupported-browser-features":"^6.1.0","stylelint-prettier":"^2.0.0","stylelint-use-logical-spec":"^5.0.0","svg-mixer":"^2.3.14","terser-webpack-plugin":"^5.3.7","typescript":"3.7.2","webpack":"^5.78.0","webpack-cli":"^5.0.1"},"peerDependencies":{"react":"^16.8.6","react-dom":"^16.8.6"},"resolutions":{"@babel/types":"^7.15.6","@types/node":"^12.12.8","@types/react":"^16.14.35","**/caniuse-lite":"1.0.30001430","trim":"0.0.3","postcss":"8.4.21"},"browserslist":["last 2 versions",">1%","not op_mini all","not dead","not ie 11"],"author":"Plesk Developers <plesk-dev-leads@plesk.com> (https://www.plesk.com/)","license":"Apache-2.0"}');
88388
+ module.exports = JSON.parse('{"name":"@plesk/ui-library","version":"3.31.3","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","create-component":"node scripts/create-component.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.21.5","@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.21.8","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-runtime":"^7.21.4","@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@babel/types":"^7.21.5","@csstools/postcss-logical-float-and-clear":"^1.0.1","@plesk/eslint-config":"^1.1.0","@plesk/stylelint-config":"^2.0.0","@types/buble":"^0.20.1","@types/cheerio":"^0.22.31","@types/classnames":"2.3.1","@types/doctrine":"^0.0.5","@types/enzyme":"^3.10.13","@types/jest":"^23.3.14","@types/marked":"^4.3.1","@types/node":"^12.20.55","@types/react":"^16.14.41","@types/react-dom":"^16.9.19","@types/react-measure":"2.0.8","@types/react-transition-group":"^4.4.6","@types/svg4everybody":"2.1.2","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","autoprefixer":"^10.4.14","babel-loader":"^8.3.0","babel-plugin-dynamic-import-node":"^2.3.3","babel-plugin-transform-require-ignore":"^0.1.1","clean-webpack-plugin":"^4.0.0","cross-env":"^5.2.1","css-loader":"^6.7.4","css-minimizer-webpack-plugin":"^5.0.0","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.7","enzyme-to-json":"^3.6.2","eslint-config-prettier":"^6.15.0","eslint-plugin-markdown":"^1.0.2","eslint-plugin-prettier":"^3.4.1","fs-extra":"^7.0.1","html-webpack-plugin":"^5.5.1","inquirer":"^3.3.0","jest":"^24.9.0","jest-dev-server":"^4.4.0","jest-image-snapshot":"^4.5.1","less":"^4.1.3","less-loader":"^11.1.0","mini-css-extract-plugin":"^2.7.6","postcss":"^8.4.23","postcss-less":"^6.0.0","postcss-loader":"^7.3.0","postcss-logical":"^6.2.0","prettier":"^2.8.8","puppeteer-core":"13.1.3","react":"^16.14.0","react-dom":"^16.14.0","react-styleguidist":"^12.0.1","react-test-renderer":"^16.14.0","rimraf":"^3.0.2","rtlcss":"^4.1.0","style-loader":"^3.3.3","stylelint":"^15.6.2","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":"3.7.2","webpack":"^5.83.1","webpack-cli":"^5.1.1"},"peerDependencies":{"react":"^16.8.6","react-dom":"^16.8.6"},"resolutions":{"@babel/types":"^7.15.6","@types/react":"^16.14.35","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"}');
88290
88389
 
88291
88390
  /***/ }),
88292
88391