@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.
- package/cjs/components/Button/Button.js +4 -1
- package/cjs/components/Button/ButtonContext.js +28 -0
- package/cjs/components/Drawer/Drawer.js +7 -14
- package/cjs/components/Drawer/DrawerProgress.js +9 -12
- package/cjs/components/Form/Form.js +24 -22
- package/cjs/components/List/ListEmptyView.js +10 -2
- package/cjs/index.js +1 -1
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +331 -232
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +5 -5
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Button/Button.js +4 -1
- package/esm/components/Button/ButtonContext.js +18 -0
- package/esm/components/Drawer/Drawer.js +7 -14
- package/esm/components/Drawer/DrawerProgress.js +10 -13
- package/esm/components/Form/Form.js +25 -23
- package/esm/components/List/ListEmptyView.js +10 -2
- package/esm/index.js +1 -1
- package/package.json +38 -43
- package/styleguide/build/bundle.bab12e1d.js +2 -0
- package/styleguide/build/{bundle.26082873.js.LICENSE.txt → bundle.bab12e1d.js.LICENSE.txt} +1 -1
- package/styleguide/index.html +2 -2
- package/types/package.d.ts +0 -3
- package/types/src/components/Alert/Alert.stories.d.ts +2 -2
- package/types/src/components/AutoClosable/AutoClosable.d.ts +1 -1
- package/types/src/components/Button/Button.stories.d.ts +6 -5
- package/types/src/components/Button/ButtonContext.d.ts +9 -0
- package/types/src/components/Card/PreviewPanel.d.ts +2 -2
- package/types/src/components/ComboBox/ComboBox.d.ts +2 -2
- package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +2 -2
- package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +2 -2
- package/types/src/components/ContentLoader/IconsLoader.d.ts +2 -2
- package/types/src/components/Cuttable/Cuttable.d.ts +1 -1
- package/types/src/components/Cuttable/Cuttable.stories.d.ts +4 -4
- package/types/src/components/Dialog/Dialog.stories.d.ts +4 -3
- package/types/src/components/Drawer/Drawer.stories.d.ts +6 -5
- package/types/src/components/Form/Form.d.ts +6 -6
- package/types/src/components/Form/Form.stories.d.ts +3 -2
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +3 -2
- package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +3 -3
- package/types/src/components/Icon/Icon.stories.d.ts +3 -2
- package/types/src/components/InputFile/InputFile.d.ts +2 -2
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +1 -1
- package/types/src/components/ItemList/ItemList.d.ts +3 -3
- package/types/src/components/ItemList/ItemList.stories.d.ts +6 -6
- package/types/src/components/Link/Link.d.ts +2 -2
- package/types/src/components/List/List.stories.d.ts +8 -7
- package/types/src/components/List/ListAction.d.ts +2 -2
- package/types/src/components/List/ListActions.d.ts +2 -2
- package/types/src/components/List/ListActionsDivider.d.ts +1 -1
- package/types/src/components/LocaleProvider/LocaleProvider.d.ts +2 -2
- package/types/src/components/Menu/Menu.stories.d.ts +7 -6
- package/types/src/components/Panel/Panel.d.ts +1 -1
- package/types/src/components/Popover/Popover.stories.d.ts +9 -8
- package/types/src/components/Select/Select.stories.d.ts +3 -3
- package/types/src/components/Skeleton/Skeleton.stories.d.ts +2 -2
- package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +1 -1
- package/types/src/components/Skeleton/SkeletonText.stories.d.ts +3 -3
- package/types/src/components/Spot/Spot.d.ts +2 -2
- package/types/src/components/Spot/SpotPopup.d.ts +2 -2
- package/types/src/components/Squeezer/Squeezer.d.ts +2 -2
- package/types/src/components/Status/Status.stories.d.ts +1 -1
- package/types/src/components/Tabs/Tabs.stories.d.ts +3 -2
- package/types/src/components/TextArea/TextArea.d.ts +1 -1
- package/types/src/components/Toast/Toast.d.ts +2 -2
- package/types/src/components/Toaster/Toaster.d.ts +2 -2
- package/types/src/components/Toolbar/ToolbarExpander.d.ts +2 -2
- package/types/src/components/Tour/Tour.d.ts +2 -2
- package/types/src/components/utils.d.ts +1 -1
- package/cjs/components/Drawer/ScrollDirection.js +0 -45
- package/dist/images/default.svg +0 -1
- package/dist/images/filtered.svg +0 -1
- package/esm/components/Drawer/ScrollDirection.js +0 -37
- package/styleguide/build/bundle.26082873.js +0 -2
- package/styleguide/images/default.svg +0 -1
- package/styleguide/images/empty-list_256.png +0 -0
- package/styleguide/images/filtered.svg +0 -1
- package/styleguide/patterns/controls/control-button-tooltip-1-do.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-1-dont.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-2-do.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-2-dont.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-3-do.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-3-dont.png +0 -0
- package/styleguide/patterns/dialogsWindows/autoclose.png +0 -0
- package/styleguide/patterns/dialogsWindows/focus.png +0 -0
- package/styleguide/patterns/dialogsWindows/header.png +0 -0
- package/styleguide/patterns/dialogsWindows/image.png +0 -0
- package/styleguide/patterns/dialogsWindows/list_submit.png +0 -0
- package/styleguide/patterns/dialogsWindows/new_object.png +0 -0
- package/styleguide/patterns/dialogsWindows/popover-confirm.png +0 -0
- package/styleguide/patterns/dialogsWindows/popover.png +0 -0
- package/styleguide/patterns/dialogsWindows/similar_buttons.png +0 -0
- package/styleguide/patterns/dialogsWindows/submit.png +0 -0
- package/styleguide/patterns/dialogsWindows/toast_controls.png +0 -0
- package/styleguide/patterns/dialogsWindows/toaster_intent.png +0 -0
- package/styleguide/patterns/dialogsWindows/tooltip.png +0 -0
- package/styleguide/patterns/dialogsWindows/tour.png +0 -0
- package/styleguide/patterns/dialogsWindows/when_to_show.png +0 -0
- package/styleguide/patterns/dialogsWindows/width.png +0 -0
|
@@ -31,6 +31,7 @@ const oldIconNames = {
|
|
|
31
31
|
};
|
|
32
32
|
import ResponsiveContext from '../ResponsiveContext';
|
|
33
33
|
import OnDarkContext from '../OnDarkContext';
|
|
34
|
+
import ButtonContext from './ButtonContext';
|
|
34
35
|
const renderIcon = _ref => {
|
|
35
36
|
let {
|
|
36
37
|
baseClassName,
|
|
@@ -76,7 +77,7 @@ const Button = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
76
77
|
baseClassName,
|
|
77
78
|
className,
|
|
78
79
|
component: Tag,
|
|
79
|
-
size,
|
|
80
|
+
size: propsSize,
|
|
80
81
|
intent,
|
|
81
82
|
ghost,
|
|
82
83
|
selected: selectedProp,
|
|
@@ -97,6 +98,8 @@ const Button = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
97
98
|
return !selectedState;
|
|
98
99
|
};
|
|
99
100
|
const isCollapsed = useContext(ResponsiveContext);
|
|
101
|
+
const buttonContextConfig = useContext(ButtonContext);
|
|
102
|
+
const size = propsSize || buttonContextConfig.defaultProps.size;
|
|
100
103
|
const componentProps = {};
|
|
101
104
|
if (Tag === 'button') {
|
|
102
105
|
componentProps.type = 'button';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
const defaultValue = {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
size: undefined
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
export const ButtonContext = /*#__PURE__*/React.createContext(defaultValue);
|
|
10
|
+
export const getButtonContextValue = value => ({
|
|
11
|
+
...defaultValue,
|
|
12
|
+
...value,
|
|
13
|
+
defaultProps: {
|
|
14
|
+
...defaultValue.defaultProps,
|
|
15
|
+
...(value.defaultProps || {})
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export default ButtonContext;
|
|
@@ -8,7 +8,6 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
8
8
|
import Overlay from '../Overlay';
|
|
9
9
|
import { useClosingConfirmation } from '../ClosingConfirmation';
|
|
10
10
|
import Header from './Header';
|
|
11
|
-
import ScrollDirection from './ScrollDirection';
|
|
12
11
|
import Form from '../Form';
|
|
13
12
|
import Heading from '../Heading';
|
|
14
13
|
import { isLikeText } from '../Translate';
|
|
@@ -163,7 +162,7 @@ const defaultProps = {
|
|
|
163
162
|
|
|
164
163
|
/**
|
|
165
164
|
* `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
|
|
166
|
-
*
|
|
165
|
+
* [Read more when to use Drawer](#!/Drawers%2C%20pages%2C%20popovers).
|
|
167
166
|
* @since 0.0.65
|
|
168
167
|
*/
|
|
169
168
|
const Drawer = _ref => {
|
|
@@ -282,18 +281,12 @@ const Drawer = _ref => {
|
|
|
282
281
|
className: `${baseClassName}__title`
|
|
283
282
|
}, title), subtitle && /*#__PURE__*/React.createElement("div", {
|
|
284
283
|
className: `${baseClassName}__subtitle`
|
|
285
|
-
}, subtitle)), /*#__PURE__*/React.createElement(
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
onScroll: handleScroll,
|
|
292
|
-
ref: scrollableRef
|
|
293
|
-
}, /*#__PURE__*/React.createElement(ScrollableElementFormContext.Provider, {
|
|
294
|
-
value: scrollableRef.current
|
|
295
|
-
}, content));
|
|
296
|
-
}), footer && /*#__PURE__*/React.createElement("footer", {
|
|
284
|
+
}, subtitle)), /*#__PURE__*/React.createElement("div", {
|
|
285
|
+
className: `${baseClassName}__body`,
|
|
286
|
+
ref: scrollableRef
|
|
287
|
+
}, /*#__PURE__*/React.createElement(ScrollableElementFormContext.Provider, {
|
|
288
|
+
value: scrollableRef.current
|
|
289
|
+
}, content)), footer && /*#__PURE__*/React.createElement("footer", {
|
|
297
290
|
className: `${baseClassName}__footer`
|
|
298
291
|
}, /*#__PURE__*/React.createElement("div", {
|
|
299
292
|
className: `${baseClassName}__footer-inner`
|
|
@@ -2,24 +2,19 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
// Copyright 1999-2019. Plesk International GmbH. All rights reserved.
|
|
4
4
|
|
|
5
|
-
import React, { Component, Fragment
|
|
5
|
+
import React, { Component, Fragment } from 'react';
|
|
6
6
|
import Button from '../Button';
|
|
7
|
+
import { ButtonContext, getButtonContextValue } from '../Button/ButtonContext';
|
|
7
8
|
import Translate from '../Translate';
|
|
8
9
|
import Progress from '../Progress';
|
|
9
10
|
import ProgressStep, { STATUS_DONE, STATUS_ERROR, STATUS_NOT_STARTED } from '../ProgressStep';
|
|
10
11
|
import { CLS_PREFIX } from '../../constants';
|
|
11
12
|
import { safeInvoke } from '../utils';
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return button;
|
|
20
|
-
};
|
|
21
|
-
return Array.isArray(buttons) ? buttons.map(buttonProcessing) : buttonProcessing(buttons);
|
|
22
|
-
};
|
|
13
|
+
const additionalButtonsConfig = getButtonContextValue({
|
|
14
|
+
defaultProps: {
|
|
15
|
+
size: 'lg'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
23
18
|
class DrawerProgress extends Component {
|
|
24
19
|
constructor() {
|
|
25
20
|
super(...arguments);
|
|
@@ -120,7 +115,9 @@ class DrawerProgress extends Component {
|
|
|
120
115
|
}, step)))));
|
|
121
116
|
const footer = hasFooter ? /*#__PURE__*/React.createElement("div", {
|
|
122
117
|
className: `${baseClassName}__footer`
|
|
123
|
-
},
|
|
118
|
+
}, /*#__PURE__*/React.createElement(ButtonContext.Provider, {
|
|
119
|
+
value: additionalButtonsConfig
|
|
120
|
+
}, buttons), canCancel && /*#__PURE__*/React.createElement(Button, {
|
|
124
121
|
onClick: this.handleCancel,
|
|
125
122
|
size: "lg"
|
|
126
123
|
}, /*#__PURE__*/React.createElement(Translate, {
|
|
@@ -2,14 +2,13 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import React, { createElement, Component, cloneElement, isValidElement, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
5
|
+
import React, { Component, cloneElement, isValidElement, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
8
6
|
import { getIn, setIn } from './utils';
|
|
9
7
|
import classNames from 'classnames';
|
|
10
8
|
import Measure from 'react-measure';
|
|
11
9
|
import { CLS_PREFIX } from '../../constants';
|
|
12
10
|
import Button from '../Button';
|
|
11
|
+
import { ButtonContext, getButtonContextValue } from '../Button/ButtonContext';
|
|
13
12
|
import FormField from '../FormField';
|
|
14
13
|
import Section from '../Section';
|
|
15
14
|
import Translate from '../Translate';
|
|
@@ -17,6 +16,11 @@ import FormContext from './FormContext';
|
|
|
17
16
|
import VerticalContext, { VERTICAL_BREAKPOINT } from '../VerticalContext';
|
|
18
17
|
import DisabledContext from './DisabledContext';
|
|
19
18
|
import { safeInvoke } from '../utils';
|
|
19
|
+
const actionButtonsConfig = getButtonContextValue({
|
|
20
|
+
defaultProps: {
|
|
21
|
+
size: 'lg'
|
|
22
|
+
}
|
|
23
|
+
});
|
|
20
24
|
class Form extends Component {
|
|
21
25
|
constructor() {
|
|
22
26
|
var _this;
|
|
@@ -190,7 +194,9 @@ class Form extends Component {
|
|
|
190
194
|
} = this.props;
|
|
191
195
|
return /*#__PURE__*/React.createElement(Section, {
|
|
192
196
|
className: classNames(`${baseClassName}__footer`, footerClassName)
|
|
193
|
-
}, /*#__PURE__*/React.createElement(FormField, null,
|
|
197
|
+
}, /*#__PURE__*/React.createElement(FormField, null, /*#__PURE__*/React.createElement(ButtonContext.Provider, {
|
|
198
|
+
value: actionButtonsConfig
|
|
199
|
+
}, this.renderSubmitButton({
|
|
194
200
|
submitButton,
|
|
195
201
|
state
|
|
196
202
|
}), this.renderApplyButton({
|
|
@@ -201,7 +207,7 @@ class Form extends Component {
|
|
|
201
207
|
}), this.renderCancelButton({
|
|
202
208
|
cancelButton,
|
|
203
209
|
state
|
|
204
|
-
})));
|
|
210
|
+
}))));
|
|
205
211
|
});
|
|
206
212
|
}
|
|
207
213
|
static getDerivedStateFromProps(props, state) {
|
|
@@ -262,7 +268,6 @@ class Form extends Component {
|
|
|
262
268
|
return null;
|
|
263
269
|
}
|
|
264
270
|
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
265
|
-
size: "lg",
|
|
266
271
|
intent: "primary",
|
|
267
272
|
state: state === 'submit' ? 'loading' : undefined,
|
|
268
273
|
disabled: !!state,
|
|
@@ -273,7 +278,7 @@ class Form extends Component {
|
|
|
273
278
|
content: "Form.submitButton",
|
|
274
279
|
fallback: "Save"
|
|
275
280
|
})
|
|
276
|
-
}, submitButton));
|
|
281
|
+
}, typeof submitButton === 'object' ? submitButton : {}));
|
|
277
282
|
}
|
|
278
283
|
renderApplyButton(_ref5) {
|
|
279
284
|
let {
|
|
@@ -283,18 +288,18 @@ class Form extends Component {
|
|
|
283
288
|
if (!applyButton) {
|
|
284
289
|
return null;
|
|
285
290
|
}
|
|
286
|
-
return /*#__PURE__*/createElement(Button, {
|
|
287
|
-
|
|
288
|
-
intent: 'primary',
|
|
291
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
292
|
+
intent: "primary",
|
|
289
293
|
state: state === 'apply' ? 'loading' : undefined,
|
|
290
294
|
disabled: !!state,
|
|
291
|
-
onClick: this.handleApplyClick
|
|
295
|
+
onClick: this.handleApplyClick
|
|
296
|
+
// eslint-disable-next-line react/no-children-prop
|
|
297
|
+
,
|
|
292
298
|
children: /*#__PURE__*/React.createElement(Translate, {
|
|
293
299
|
content: "Form.applyButton",
|
|
294
300
|
fallback: "Apply"
|
|
295
|
-
})
|
|
296
|
-
|
|
297
|
-
});
|
|
301
|
+
})
|
|
302
|
+
}, typeof applyButton === 'object' ? applyButton : {}));
|
|
298
303
|
}
|
|
299
304
|
renderCancelButton(_ref6) {
|
|
300
305
|
let {
|
|
@@ -304,16 +309,16 @@ class Form extends Component {
|
|
|
304
309
|
if (!cancelButton) {
|
|
305
310
|
return null;
|
|
306
311
|
}
|
|
307
|
-
return /*#__PURE__*/createElement(Button, {
|
|
308
|
-
size: 'lg',
|
|
312
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
309
313
|
state: state === 'cancel' ? 'loading' : undefined,
|
|
310
|
-
disabled: !!state
|
|
314
|
+
disabled: !!state
|
|
315
|
+
// eslint-disable-next-line react/no-children-prop
|
|
316
|
+
,
|
|
311
317
|
children: /*#__PURE__*/React.createElement(Translate, {
|
|
312
318
|
content: "Form.cancelButton",
|
|
313
319
|
fallback: "Cancel"
|
|
314
|
-
})
|
|
315
|
-
|
|
316
|
-
});
|
|
320
|
+
})
|
|
321
|
+
}, typeof cancelButton === 'object' ? cancelButton : {}));
|
|
317
322
|
}
|
|
318
323
|
renderAdditionalButtons(_ref7) {
|
|
319
324
|
let {
|
|
@@ -328,9 +333,6 @@ class Form extends Component {
|
|
|
328
333
|
const props = {
|
|
329
334
|
className: classNames(element.props.className, `${baseClassName}__additional-button`)
|
|
330
335
|
};
|
|
331
|
-
if (element.type === Button) {
|
|
332
|
-
props.size = 'lg';
|
|
333
|
-
}
|
|
334
336
|
return /*#__PURE__*/cloneElement(element, props);
|
|
335
337
|
}
|
|
336
338
|
return element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
// Copyright 1999-
|
|
2
|
+
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
@@ -8,6 +8,7 @@ import Translate from '../Translate';
|
|
|
8
8
|
import empty from './images/default.png';
|
|
9
9
|
import filtered from './images/filtered.png';
|
|
10
10
|
import { CLS_PREFIX } from '../../constants';
|
|
11
|
+
import { ButtonContext, getButtonContextValue } from '../Button/ButtonContext';
|
|
11
12
|
const createImage = (baseClassName, image, reason) => {
|
|
12
13
|
if (image === undefined) {
|
|
13
14
|
image = reason === 'filtered' ? filtered : empty;
|
|
@@ -53,6 +54,11 @@ const createDescription = (baseClassName, description, reason) => {
|
|
|
53
54
|
className: `${baseClassName}__description`
|
|
54
55
|
}, description);
|
|
55
56
|
};
|
|
57
|
+
const buttonConfig = getButtonContextValue({
|
|
58
|
+
defaultProps: {
|
|
59
|
+
size: 'lg'
|
|
60
|
+
}
|
|
61
|
+
});
|
|
56
62
|
|
|
57
63
|
/**
|
|
58
64
|
* `ListEmptyView` component is used for displaying "empty" state of [List](#!/List)
|
|
@@ -76,6 +82,8 @@ const ListEmptyView = _ref => {
|
|
|
76
82
|
className: `${baseClassName}__body`
|
|
77
83
|
}, createTitle(baseClassName, title, reason), createDescription(baseClassName, description, reason), actions && /*#__PURE__*/React.createElement("div", {
|
|
78
84
|
className: `${baseClassName}__actions`
|
|
79
|
-
},
|
|
85
|
+
}, /*#__PURE__*/React.createElement(ButtonContext.Provider, {
|
|
86
|
+
value: buttonConfig
|
|
87
|
+
}, actions))));
|
|
80
88
|
};
|
|
81
89
|
export default ListEmptyView;
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plesk/ui-library",
|
|
3
|
-
"version": "3.31.
|
|
3
|
+
"version": "3.31.3",
|
|
4
4
|
"description": "Plesk UI Library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"lint": "yarn lint:es && yarn lint:types && yarn lint:style",
|
|
25
25
|
"lint:es": "eslint --ext js,md,tsx src configs scripts styleguidist",
|
|
26
26
|
"lint:types": "tsc",
|
|
27
|
-
"lint:style": "stylelint \"src/**/*.less\"",
|
|
27
|
+
"lint:style": "stylelint \"{src,styleguidist}/**/*.less\"",
|
|
28
28
|
"styleguide": "styleguidist server --config ./configs/styleguide.config.js",
|
|
29
29
|
"styleguide:build": "styleguidist build --config ./configs/styleguide.config.js",
|
|
30
30
|
"create-component": "node scripts/create-component.js",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"/index.js"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@babel/runtime": "^7.21.
|
|
45
|
+
"@babel/runtime": "^7.21.5",
|
|
46
46
|
"@plesk/react-movable": "^2.7.1",
|
|
47
47
|
"classnames": "^2.3.2",
|
|
48
48
|
"codemirror": "5.58.2",
|
|
49
49
|
"marked": "4.2.12",
|
|
50
50
|
"memoize-one": "^5.2.1",
|
|
51
|
-
"popper.js": "1.
|
|
51
|
+
"popper.js": "1.16.1",
|
|
52
52
|
"prop-types": "^15.8.1",
|
|
53
|
-
"react-measure": "2.
|
|
53
|
+
"react-measure": "2.5.2",
|
|
54
54
|
"react-sortable-hoc": "0.6.8",
|
|
55
55
|
"react-transition-group": "^4.4.5",
|
|
56
56
|
"scroll-into-view-if-needed": "^2.2.31",
|
|
@@ -58,30 +58,30 @@
|
|
|
58
58
|
"use-focus-visible": "^1.0.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@babel/core": "^7.21.
|
|
61
|
+
"@babel/core": "^7.21.8",
|
|
62
62
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
63
63
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
64
64
|
"@babel/plugin-transform-runtime": "^7.21.4",
|
|
65
|
-
"@babel/preset-env": "^7.21.
|
|
65
|
+
"@babel/preset-env": "^7.21.5",
|
|
66
66
|
"@babel/preset-react": "^7.18.6",
|
|
67
|
-
"@babel/preset-typescript": "^7.21.
|
|
68
|
-
"@babel/types": "^7.21.
|
|
67
|
+
"@babel/preset-typescript": "^7.21.5",
|
|
68
|
+
"@babel/types": "^7.21.5",
|
|
69
69
|
"@csstools/postcss-logical-float-and-clear": "^1.0.1",
|
|
70
70
|
"@plesk/eslint-config": "^1.1.0",
|
|
71
|
-
"@plesk/stylelint-config": "^
|
|
72
|
-
"@types/buble": "^0.
|
|
71
|
+
"@plesk/stylelint-config": "^2.0.0",
|
|
72
|
+
"@types/buble": "^0.20.1",
|
|
73
73
|
"@types/cheerio": "^0.22.31",
|
|
74
|
-
"@types/classnames": "2.
|
|
75
|
-
"@types/doctrine": "^0.0.
|
|
76
|
-
"@types/enzyme": "^3.10.
|
|
74
|
+
"@types/classnames": "2.3.1",
|
|
75
|
+
"@types/doctrine": "^0.0.5",
|
|
76
|
+
"@types/enzyme": "^3.10.13",
|
|
77
77
|
"@types/jest": "^23.3.14",
|
|
78
|
-
"@types/marked": "^4.
|
|
78
|
+
"@types/marked": "^4.3.1",
|
|
79
79
|
"@types/node": "^12.20.55",
|
|
80
|
-
"@types/react": "^16.14.
|
|
81
|
-
"@types/react-dom": "^16.9.
|
|
80
|
+
"@types/react": "^16.14.41",
|
|
81
|
+
"@types/react-dom": "^16.9.19",
|
|
82
82
|
"@types/react-measure": "2.0.8",
|
|
83
|
-
"@types/react-transition-group": "^4.4.
|
|
84
|
-
"@types/svg4everybody": "2.1.
|
|
83
|
+
"@types/react-transition-group": "^4.4.6",
|
|
84
|
+
"@types/svg4everybody": "2.1.2",
|
|
85
85
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
86
86
|
"@typescript-eslint/parser": "^2.34.0",
|
|
87
87
|
"autoprefixer": "^10.4.14",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"babel-plugin-transform-require-ignore": "^0.1.1",
|
|
91
91
|
"clean-webpack-plugin": "^4.0.0",
|
|
92
92
|
"cross-env": "^5.2.1",
|
|
93
|
-
"css-loader": "^6.7.
|
|
94
|
-
"css-minimizer-webpack-plugin": "^
|
|
93
|
+
"css-loader": "^6.7.4",
|
|
94
|
+
"css-minimizer-webpack-plugin": "^5.0.0",
|
|
95
95
|
"enzyme": "^3.11.0",
|
|
96
96
|
"enzyme-adapter-react-16": "^1.15.7",
|
|
97
97
|
"enzyme-to-json": "^3.6.2",
|
|
@@ -99,38 +99,37 @@
|
|
|
99
99
|
"eslint-plugin-markdown": "^1.0.2",
|
|
100
100
|
"eslint-plugin-prettier": "^3.4.1",
|
|
101
101
|
"fs-extra": "^7.0.1",
|
|
102
|
-
"html-webpack-plugin": "^5.5.
|
|
102
|
+
"html-webpack-plugin": "^5.5.1",
|
|
103
103
|
"inquirer": "^3.3.0",
|
|
104
104
|
"jest": "^24.9.0",
|
|
105
105
|
"jest-dev-server": "^4.4.0",
|
|
106
106
|
"jest-image-snapshot": "^4.5.1",
|
|
107
107
|
"less": "^4.1.3",
|
|
108
108
|
"less-loader": "^11.1.0",
|
|
109
|
-
"mini-css-extract-plugin": "^2.7.
|
|
110
|
-
"postcss": "^8.4.
|
|
109
|
+
"mini-css-extract-plugin": "^2.7.6",
|
|
110
|
+
"postcss": "^8.4.23",
|
|
111
111
|
"postcss-less": "^6.0.0",
|
|
112
|
-
"postcss-loader": "^7.
|
|
113
|
-
"postcss-logical": "^6.
|
|
114
|
-
"prettier": "^2.8.
|
|
112
|
+
"postcss-loader": "^7.3.0",
|
|
113
|
+
"postcss-logical": "^6.2.0",
|
|
114
|
+
"prettier": "^2.8.8",
|
|
115
115
|
"puppeteer-core": "13.1.3",
|
|
116
116
|
"react": "^16.14.0",
|
|
117
117
|
"react-dom": "^16.14.0",
|
|
118
118
|
"react-styleguidist": "^12.0.1",
|
|
119
119
|
"react-test-renderer": "^16.14.0",
|
|
120
120
|
"rimraf": "^3.0.2",
|
|
121
|
-
"rtlcss": "^4.
|
|
122
|
-
"style-loader": "^3.3.
|
|
123
|
-
"stylelint": "^
|
|
124
|
-
"stylelint-config-prettier": "^9.0.5",
|
|
121
|
+
"rtlcss": "^4.1.0",
|
|
122
|
+
"style-loader": "^3.3.3",
|
|
123
|
+
"stylelint": "^15.6.2",
|
|
125
124
|
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
|
126
125
|
"stylelint-no-unsupported-browser-features": "^6.1.0",
|
|
127
|
-
"stylelint-prettier": "^
|
|
126
|
+
"stylelint-prettier": "^3.0.0",
|
|
128
127
|
"stylelint-use-logical-spec": "^5.0.0",
|
|
129
128
|
"svg-mixer": "^2.3.14",
|
|
130
|
-
"terser-webpack-plugin": "^5.3.
|
|
129
|
+
"terser-webpack-plugin": "^5.3.9",
|
|
131
130
|
"typescript": "3.7.2",
|
|
132
|
-
"webpack": "^5.
|
|
133
|
-
"webpack-cli": "^5.
|
|
131
|
+
"webpack": "^5.83.1",
|
|
132
|
+
"webpack-cli": "^5.1.1"
|
|
134
133
|
},
|
|
135
134
|
"peerDependencies": {
|
|
136
135
|
"react": "^16.8.6",
|
|
@@ -138,18 +137,14 @@
|
|
|
138
137
|
},
|
|
139
138
|
"resolutions": {
|
|
140
139
|
"@babel/types": "^7.15.6",
|
|
141
|
-
"@types/node": "^12.12.8",
|
|
142
140
|
"@types/react": "^16.14.35",
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"postcss": "8.4.21"
|
|
141
|
+
"trim": ">=0.0.3",
|
|
142
|
+
"postcss": "^8.4.23"
|
|
146
143
|
},
|
|
147
144
|
"browserslist": [
|
|
148
|
-
"
|
|
149
|
-
">1%",
|
|
145
|
+
"defaults",
|
|
150
146
|
"not op_mini all",
|
|
151
|
-
"not
|
|
152
|
-
"not ie 11"
|
|
147
|
+
"not kaios > 0"
|
|
153
148
|
],
|
|
154
149
|
"author": "Plesk Developers <plesk-dev-leads@plesk.com> (https://www.plesk.com/)",
|
|
155
150
|
"license": "Apache-2.0"
|