@plesk/ui-library 3.25.6 → 3.27.0
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/README.md +35 -35
- package/cjs/components/Action/Action.js +3 -3
- package/cjs/components/Button/Button.js +50 -50
- package/cjs/components/Checkbox/Checkbox.js +3 -3
- package/cjs/components/CodeEditor/CodeEditor.js +40 -40
- package/cjs/components/Dialog/Dialog.js +63 -63
- package/cjs/components/Drawer/Drawer.js +100 -90
- package/cjs/components/Drawer/DrawerProgress.js +17 -14
- package/cjs/components/Drawer/Header.js +11 -4
- package/cjs/components/Form/Form.js +4 -4
- package/cjs/components/FormField/FormField.js +87 -82
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +34 -34
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +32 -32
- package/cjs/components/FormFieldSelect/FormFieldSelect.js +1 -1
- package/cjs/components/Icon/Icon.js +6 -6
- package/cjs/components/Icon/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +1653 -1639
- package/cjs/components/InputNumber/InputNumber.js +3 -3
- package/cjs/components/Item/Item.js +50 -41
- package/cjs/components/ItemLink/ItemLink.js +1 -0
- package/cjs/components/ItemList/ItemList.js +43 -12
- package/cjs/components/ItemList/ItemList.stories.js +35 -3
- package/cjs/components/Layout/Layout.js +55 -55
- package/cjs/components/List/List.js +139 -134
- package/cjs/components/LocaleProvider/LocaleProvider.js +3 -3
- package/cjs/components/Menu/MenuBaseItem.js +19 -19
- package/cjs/components/Overlay/Overlay.js +34 -34
- package/cjs/components/Pagination/Pagination.js +3 -3
- package/cjs/components/Panel/Panel.js +14 -4
- package/cjs/components/Popper/Popper.js +30 -30
- package/cjs/components/ProgressStep/ProgressStep.js +16 -14
- package/cjs/components/Section/Section.js +128 -68
- package/cjs/components/Select/Select.js +9 -9
- package/cjs/components/Select/SelectControl.js +1 -1
- package/cjs/components/Tabs/Tab.js +28 -28
- package/cjs/components/Tabs/Tabs.js +33 -33
- package/cjs/components/Translate/Translate.js +25 -25
- package/cjs/index.js +1 -1
- package/dist/images/symbols.svg +1653 -1639
- 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 +1116 -970
- 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/Action/Action.js +3 -3
- package/esm/components/Button/Button.js +50 -50
- package/esm/components/Checkbox/Checkbox.js +3 -3
- package/esm/components/CodeEditor/CodeEditor.js +40 -40
- package/esm/components/Dialog/Dialog.js +63 -63
- package/esm/components/Drawer/Drawer.js +100 -89
- package/esm/components/Drawer/DrawerProgress.js +16 -15
- package/esm/components/Drawer/Header.js +11 -4
- package/esm/components/Form/Form.js +4 -4
- package/esm/components/FormField/FormField.js +87 -82
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
- package/esm/components/FormFieldPassword/FormFieldPassword.js +34 -34
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +32 -32
- package/esm/components/FormFieldSelect/FormFieldSelect.js +1 -1
- package/esm/components/Icon/Icon.js +6 -6
- package/esm/components/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +1653 -1639
- package/esm/components/InputNumber/InputNumber.js +3 -3
- package/esm/components/Item/Item.js +50 -41
- package/esm/components/ItemLink/ItemLink.js +1 -0
- package/esm/components/ItemList/ItemList.js +43 -12
- package/esm/components/ItemList/ItemList.stories.js +32 -2
- package/esm/components/Layout/Layout.js +55 -55
- package/esm/components/List/List.js +139 -134
- package/esm/components/LocaleProvider/LocaleProvider.js +3 -3
- package/esm/components/Menu/MenuBaseItem.js +19 -19
- package/esm/components/Overlay/Overlay.js +34 -34
- package/esm/components/Pagination/Pagination.js +3 -3
- package/esm/components/Panel/Panel.js +14 -5
- package/esm/components/Popper/Popper.js +30 -30
- package/esm/components/ProgressStep/ProgressStep.js +17 -15
- package/esm/components/Section/Section.js +129 -72
- package/esm/components/Select/Select.js +9 -9
- package/esm/components/Select/SelectControl.js +1 -1
- package/esm/components/Tabs/Tab.js +28 -28
- package/esm/components/Tabs/Tabs.js +33 -33
- package/esm/components/Translate/Translate.js +25 -25
- package/esm/index.js +1 -1
- package/package.json +146 -146
- package/styleguide/build/bundle.ff1f903a.js +2 -0
- package/styleguide/build/{bundle.b7db9339.js.LICENSE.txt → bundle.ff1f903a.js.LICENSE.txt} +0 -0
- package/styleguide/images/symbols.svg +1653 -1639
- package/styleguide/index.html +6 -6
- package/types/src/components/Drawer/DrawerProgress.d.ts +7 -2
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/ItemLink/ItemLink.d.ts +4 -0
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +1 -0
- package/types/src/components/ItemList/ItemList.d.ts +8 -0
- package/types/src/components/ItemList/ItemList.stories.d.ts +104 -0
- package/styleguide/build/bundle.b7db9339.js +0 -2
|
@@ -17,12 +17,12 @@ import ResponsiveContext from '../ResponsiveContext';
|
|
|
17
17
|
const ADDON_LEFT_PADDING = 5;
|
|
18
18
|
const MIN_ADDON_WIDTH_DEFAULT = 150;
|
|
19
19
|
const COLLAPSED_SEARCH_WIDTH = 60;
|
|
20
|
-
/**
|
|
21
|
-
* `Tabs` component is a content area with a group of individual [Tab](#!/Tab) elements, each displaying different content
|
|
22
|
-
* in the same screen area. `Tabs` are used when you have too much content to display in one place at the same time, so
|
|
23
|
-
* the content is broken into logical groups and each group is displayed under its own [Tab](#!/Tab) that serves both as a
|
|
24
|
-
* group name and a navigation button.
|
|
25
|
-
* @since 0.0.35
|
|
20
|
+
/**
|
|
21
|
+
* `Tabs` component is a content area with a group of individual [Tab](#!/Tab) elements, each displaying different content
|
|
22
|
+
* in the same screen area. `Tabs` are used when you have too much content to display in one place at the same time, so
|
|
23
|
+
* the content is broken into logical groups and each group is displayed under its own [Tab](#!/Tab) that serves both as a
|
|
24
|
+
* group name and a navigation button.
|
|
25
|
+
* @since 0.0.35
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
class Tabs extends Component {
|
|
@@ -590,57 +590,57 @@ class Tabs extends Component {
|
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
Tabs.propTypes = {
|
|
593
|
-
/**
|
|
594
|
-
* Number of active tab
|
|
595
|
-
* @since 0.0.35
|
|
593
|
+
/**
|
|
594
|
+
* Number of active tab
|
|
595
|
+
* @since 0.0.35
|
|
596
596
|
*/
|
|
597
597
|
active: PropTypes.number,
|
|
598
598
|
|
|
599
|
-
/**
|
|
600
|
-
* Addon for search bar, dropdown etc.
|
|
601
|
-
* @since 0.0.58
|
|
599
|
+
/**
|
|
600
|
+
* Addon for search bar, dropdown etc.
|
|
601
|
+
* @since 0.0.58
|
|
602
602
|
*/
|
|
603
603
|
addon: PropTypes.element,
|
|
604
604
|
|
|
605
|
-
/**
|
|
606
|
-
* Placeholder for search bar, dropdown etc.
|
|
607
|
-
*
|
|
608
|
-
* @deprecated Do not use! Use `addon` instead!
|
|
609
|
-
* @since 0.0.42
|
|
605
|
+
/**
|
|
606
|
+
* Placeholder for search bar, dropdown etc.
|
|
607
|
+
*
|
|
608
|
+
* @deprecated Do not use! Use `addon` instead!
|
|
609
|
+
* @since 0.0.42
|
|
610
610
|
*/
|
|
611
611
|
placeholder: PropTypes.element,
|
|
612
612
|
|
|
613
|
-
/**
|
|
614
|
-
* Minimum add-on width in pixels
|
|
615
|
-
* @since 0.0.58
|
|
613
|
+
/**
|
|
614
|
+
* Minimum add-on width in pixels
|
|
615
|
+
* @since 0.0.58
|
|
616
616
|
*/
|
|
617
617
|
addonMinWidth: PropTypes.number,
|
|
618
618
|
|
|
619
|
-
/**
|
|
620
|
-
* Monospaced version of tabs (all visible tabs as wide as widest of them)
|
|
621
|
-
* @since 0.0.58
|
|
619
|
+
/**
|
|
620
|
+
* Monospaced version of tabs (all visible tabs as wide as widest of them)
|
|
621
|
+
* @since 0.0.58
|
|
622
622
|
*/
|
|
623
623
|
monospaced: PropTypes.bool,
|
|
624
624
|
|
|
625
|
-
/**
|
|
626
|
-
* [SearchBar](#!/SearchBar) element
|
|
627
|
-
* @since 0.0.58
|
|
625
|
+
/**
|
|
626
|
+
* [SearchBar](#!/SearchBar) element
|
|
627
|
+
* @since 0.0.58
|
|
628
628
|
*/
|
|
629
629
|
search: PropTypes.element,
|
|
630
630
|
|
|
631
|
-
/**
|
|
632
|
-
* [Tabs](#!/Tab)
|
|
633
|
-
* @since 0.0.47
|
|
631
|
+
/**
|
|
632
|
+
* [Tabs](#!/Tab)
|
|
633
|
+
* @since 0.0.47
|
|
634
634
|
*/
|
|
635
635
|
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element]),
|
|
636
636
|
|
|
637
|
-
/**
|
|
638
|
-
* @ignore
|
|
637
|
+
/**
|
|
638
|
+
* @ignore
|
|
639
639
|
*/
|
|
640
640
|
className: PropTypes.string,
|
|
641
641
|
|
|
642
|
-
/**
|
|
643
|
-
* @ignore
|
|
642
|
+
/**
|
|
643
|
+
* @ignore
|
|
644
644
|
*/
|
|
645
645
|
baseClassName: PropTypes.string
|
|
646
646
|
};
|
|
@@ -20,9 +20,9 @@ export const isLikeText = node => {
|
|
|
20
20
|
|
|
21
21
|
return false;
|
|
22
22
|
};
|
|
23
|
-
/**
|
|
24
|
-
* `Translate` component.
|
|
25
|
-
* @since 0.0.42
|
|
23
|
+
/**
|
|
24
|
+
* `Translate` component.
|
|
25
|
+
* @since 0.0.42
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
const Translate = ({
|
|
@@ -62,49 +62,49 @@ const Translate = ({
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
Translate.propTypes = {
|
|
65
|
-
/**
|
|
66
|
-
* A some prefix for the message key.
|
|
67
|
-
* @since 2.6.0
|
|
65
|
+
/**
|
|
66
|
+
* A some prefix for the message key.
|
|
67
|
+
* @since 2.6.0
|
|
68
68
|
*/
|
|
69
69
|
namespace: PropTypes.string,
|
|
70
70
|
|
|
71
|
-
/**
|
|
72
|
-
* Translatable content or message key.
|
|
73
|
-
* @since 0.0.42
|
|
71
|
+
/**
|
|
72
|
+
* Translatable content or message key.
|
|
73
|
+
* @since 0.0.42
|
|
74
74
|
*/
|
|
75
75
|
content: PropTypes.string,
|
|
76
76
|
|
|
77
|
-
/**
|
|
78
|
-
* Message params
|
|
79
|
-
* @since 0.0.42
|
|
77
|
+
/**
|
|
78
|
+
* Message params
|
|
79
|
+
* @since 0.0.42
|
|
80
80
|
*/
|
|
81
81
|
params: PropTypes.object,
|
|
82
82
|
|
|
83
|
-
/**
|
|
84
|
-
* Fallback translation value.
|
|
85
|
-
* @since 0.0.47
|
|
83
|
+
/**
|
|
84
|
+
* Fallback translation value.
|
|
85
|
+
* @since 0.0.47
|
|
86
86
|
*/
|
|
87
87
|
fallback: PropTypes.string,
|
|
88
88
|
|
|
89
|
-
/**
|
|
90
|
-
* Component to render as the root element. Useful when rendering a `Translate` as `<option>`.
|
|
91
|
-
* @since 0.0.42
|
|
89
|
+
/**
|
|
90
|
+
* Component to render as the root element. Useful when rendering a `Translate` as `<option>`.
|
|
91
|
+
* @since 0.0.42
|
|
92
92
|
*/
|
|
93
93
|
component: PropTypes.elementType,
|
|
94
94
|
|
|
95
|
-
/**
|
|
96
|
-
* A set of translation messages. If the set contains a message key, the component uses an item from the set for rendering.
|
|
97
|
-
* @ignore
|
|
95
|
+
/**
|
|
96
|
+
* A set of translation messages. If the set contains a message key, the component uses an item from the set for rendering.
|
|
97
|
+
* @ignore
|
|
98
98
|
*/
|
|
99
99
|
translators: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.func, PropTypes.node])),
|
|
100
100
|
|
|
101
|
-
/**
|
|
102
|
-
* @ignore
|
|
101
|
+
/**
|
|
102
|
+
* @ignore
|
|
103
103
|
*/
|
|
104
104
|
unsafe: PropTypes.bool,
|
|
105
105
|
|
|
106
|
-
/**
|
|
107
|
-
* @ignore
|
|
106
|
+
/**
|
|
107
|
+
* @ignore
|
|
108
108
|
*/
|
|
109
109
|
children: PropTypes.string
|
|
110
110
|
};
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@plesk/ui-library",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Plesk UI Library",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "esm/index.js",
|
|
7
|
-
"types": "./types/src",
|
|
8
|
-
"sideEffects": [
|
|
9
|
-
"cjs/index.js",
|
|
10
|
-
"esm/index.js",
|
|
11
|
-
"dist/*.js",
|
|
12
|
-
"dist/*.css"
|
|
13
|
-
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"pretest": "yarn lint",
|
|
16
|
-
"test": "jest --ci --coverage --coverageReporters text-summary",
|
|
17
|
-
"test:vr": "cross-env VISUAL_REGRESSION=true jest",
|
|
18
|
-
"build": "yarn build:types && yarn build:umd && yarn build:esm && yarn build:cjs",
|
|
19
|
-
"build:umd": "webpack --config ./configs/build.config.js",
|
|
20
|
-
"build:esm": "cross-env NODE_ENV=esm node ./scripts/build.js",
|
|
21
|
-
"build:cjs": "cross-env NODE_ENV=cjs node ./scripts/build.js",
|
|
22
|
-
"build:types": "rimraf ./types && tsc --project ./configs/types-generator.config.json",
|
|
23
|
-
"create-svg-sprite": "node ./scripts/create-svg-sprite.js",
|
|
24
|
-
"lint": "yarn lint:es && yarn lint:types && yarn lint:style",
|
|
25
|
-
"lint:es": "eslint --ext js,md,tsx src configs scripts styleguidist",
|
|
26
|
-
"lint:types": "tsc",
|
|
27
|
-
"lint:style": "stylelint \"src/**/*.less\"",
|
|
28
|
-
"styleguide": "styleguidist server --config ./configs/styleguide.config.js",
|
|
29
|
-
"styleguide:build": "styleguidist build --config ./configs/styleguide.config.js",
|
|
30
|
-
"create-component": "node scripts/create-component.js",
|
|
31
|
-
"prepublishOnly": "yarn install && yarn test && yarn build && yarn styleguide:build",
|
|
32
|
-
"storybook": "webpack serve --config ./configs/storybook.config.js",
|
|
33
|
-
"postinstall": "node ./scripts/postinstall.js"
|
|
34
|
-
},
|
|
35
|
-
"files": [
|
|
36
|
-
"esm",
|
|
37
|
-
"cjs",
|
|
38
|
-
"dist",
|
|
39
|
-
"styleguide",
|
|
40
|
-
"types",
|
|
41
|
-
"/scripts/postinstall.js",
|
|
42
|
-
"/index.js"
|
|
43
|
-
],
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@babel/runtime": "^7.15.4",
|
|
46
|
-
"@plesk/react-movable": "^2.6.0",
|
|
47
|
-
"@types/classnames": "2.2.7",
|
|
48
|
-
"@types/react": "16.8.13",
|
|
49
|
-
"@types/react-dom": "16.8.4",
|
|
50
|
-
"@types/react-measure": "2.0.8",
|
|
51
|
-
"@types/react-transition-group": "^4.
|
|
52
|
-
"@types/svg4everybody": "2.1.0",
|
|
53
|
-
"classnames": "^2.3.1",
|
|
54
|
-
"codemirror": "5.48.0",
|
|
55
|
-
"marked": "0.3.19",
|
|
56
|
-
"memoize-one": "^5.1.1",
|
|
57
|
-
"popper.js": "1.14.3",
|
|
58
|
-
"prop-types": "^15.7.2",
|
|
59
|
-
"react-measure": "2.3.0",
|
|
60
|
-
"react-sortable-hoc": "0.6.8",
|
|
61
|
-
"react-transition-group": "^4.4.
|
|
62
|
-
"scroll-into-view-if-needed": "^2.2.20",
|
|
63
|
-
"svg4everybody": "2.1.9",
|
|
64
|
-
"use-focus-visible": "^1.0.0"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@babel/core": "^7.15.8",
|
|
68
|
-
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
69
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
70
|
-
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
71
|
-
"@babel/preset-env": "^7.15.8",
|
|
72
|
-
"@babel/preset-react": "^7.14.5",
|
|
73
|
-
"@babel/preset-typescript": "^7.15.0",
|
|
74
|
-
"@plesk/eslint-config": "^1.1.0",
|
|
75
|
-
"@plesk/stylelint-config": "^0.0.6",
|
|
76
|
-
"@types/buble": "^0.19.2",
|
|
77
|
-
"@types/cheerio": "^0.22.30",
|
|
78
|
-
"@types/doctrine": "^0.0.3",
|
|
79
|
-
"@types/enzyme": "^3.10.9",
|
|
80
|
-
"@types/jest": "^23.3.12",
|
|
81
|
-
"@types/webpack-dev-server": "^3.10.1",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "^2.7.0",
|
|
83
|
-
"@typescript-eslint/parser": "^2.7.0",
|
|
84
|
-
"autoprefixer": "^10.3.7",
|
|
85
|
-
"babel-loader": "^8.2.3",
|
|
86
|
-
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
87
|
-
"babel-plugin-transform-require-ignore": "^0.1.1",
|
|
88
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
89
|
-
"cross-env": "^5.2.0",
|
|
90
|
-
"css-loader": "^6.4.0",
|
|
91
|
-
"css-minimizer-webpack-plugin": "^3.1.1",
|
|
92
|
-
"enzyme": "^3.11.0",
|
|
93
|
-
"enzyme-adapter-react-16": "^1.15.6",
|
|
94
|
-
"enzyme-to-json": "^3.6.2",
|
|
95
|
-
"eslint-config-prettier": "^6.11.0",
|
|
96
|
-
"eslint-plugin-markdown": "^1.0.2",
|
|
97
|
-
"eslint-plugin-prettier": "^3.1.3",
|
|
98
|
-
"expect-puppeteer": "^4.4.0",
|
|
99
|
-
"fs-extra": "^7.0.0",
|
|
100
|
-
"html-webpack-plugin": "^5.5.0",
|
|
101
|
-
"inquirer": "^3.2.1",
|
|
102
|
-
"jest": "^24.9.0",
|
|
103
|
-
"jest-dev-server": "^4.4.0",
|
|
104
|
-
"jest-image-snapshot": "^4.0.2",
|
|
105
|
-
"less": "^4.1.2",
|
|
106
|
-
"less-loader": "^10.2.0",
|
|
107
|
-
"mini-css-extract-plugin": "^2.4.3",
|
|
108
|
-
"postcss": "^8.3.11",
|
|
109
|
-
"postcss-loader": "^6.2.0",
|
|
110
|
-
"postcss-logical": "^5.0.0",
|
|
111
|
-
"prettier": "^2.0.5",
|
|
112
|
-
"puppeteer-core": "^5.2.1",
|
|
113
|
-
"react": "^16.8.6",
|
|
114
|
-
"react-dom": "^16.8.6",
|
|
115
|
-
"react-styleguidist": "^11.1.7",
|
|
116
|
-
"react-test-renderer": "^16.8.6",
|
|
117
|
-
"rimraf": "^3.0.1",
|
|
118
|
-
"rtlcss": "^3.4.0",
|
|
119
|
-
"style-loader": "^3.3.1",
|
|
120
|
-
"stylelint-config-prettier": "^8.0.1",
|
|
121
|
-
"stylelint-prettier": "^1.1.2",
|
|
122
|
-
"svg-mixer": "^2.3.14",
|
|
123
|
-
"terser-webpack-plugin": "^5.2.4",
|
|
124
|
-
"typescript": "^3.7.2",
|
|
125
|
-
"webpack": "^5.60.0",
|
|
126
|
-
"webpack-cli": "^4.9.1"
|
|
127
|
-
},
|
|
128
|
-
"peerDependencies": {
|
|
129
|
-
"react": "^16.8.6",
|
|
130
|
-
"react-dom": "^16.8.6"
|
|
131
|
-
},
|
|
132
|
-
"resolutions": {
|
|
133
|
-
"@babel/types": "^7.15.6",
|
|
134
|
-
"@types/node": "^12.12.8",
|
|
135
|
-
"**/caniuse-lite": "1.0.30001274"
|
|
136
|
-
},
|
|
137
|
-
"browserslist": [
|
|
138
|
-
"last 2 versions",
|
|
139
|
-
">1%",
|
|
140
|
-
"not op_mini all",
|
|
141
|
-
"not dead",
|
|
142
|
-
"not ie 11"
|
|
143
|
-
],
|
|
144
|
-
"author": "Plesk Developers <plesk-dev-leads@plesk.com> (https://www.plesk.com/)",
|
|
145
|
-
"license": "Apache-2.0"
|
|
146
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@plesk/ui-library",
|
|
3
|
+
"version": "3.27.0",
|
|
4
|
+
"description": "Plesk UI Library",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "esm/index.js",
|
|
7
|
+
"types": "./types/src",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"cjs/index.js",
|
|
10
|
+
"esm/index.js",
|
|
11
|
+
"dist/*.js",
|
|
12
|
+
"dist/*.css"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"pretest": "yarn lint",
|
|
16
|
+
"test": "jest --ci --coverage --coverageReporters text-summary",
|
|
17
|
+
"test:vr": "cross-env VISUAL_REGRESSION=true jest",
|
|
18
|
+
"build": "yarn build:types && yarn build:umd && yarn build:esm && yarn build:cjs",
|
|
19
|
+
"build:umd": "webpack --config ./configs/build.config.js",
|
|
20
|
+
"build:esm": "cross-env NODE_ENV=esm node ./scripts/build.js",
|
|
21
|
+
"build:cjs": "cross-env NODE_ENV=cjs node ./scripts/build.js",
|
|
22
|
+
"build:types": "rimraf ./types && tsc --project ./configs/types-generator.config.json",
|
|
23
|
+
"create-svg-sprite": "node ./scripts/create-svg-sprite.js",
|
|
24
|
+
"lint": "yarn lint:es && yarn lint:types && yarn lint:style",
|
|
25
|
+
"lint:es": "eslint --ext js,md,tsx src configs scripts styleguidist",
|
|
26
|
+
"lint:types": "tsc",
|
|
27
|
+
"lint:style": "stylelint \"src/**/*.less\"",
|
|
28
|
+
"styleguide": "styleguidist server --config ./configs/styleguide.config.js",
|
|
29
|
+
"styleguide:build": "styleguidist build --config ./configs/styleguide.config.js",
|
|
30
|
+
"create-component": "node scripts/create-component.js",
|
|
31
|
+
"prepublishOnly": "yarn install && yarn test && yarn build && yarn styleguide:build",
|
|
32
|
+
"storybook": "webpack serve --config ./configs/storybook.config.js",
|
|
33
|
+
"postinstall": "node ./scripts/postinstall.js"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"esm",
|
|
37
|
+
"cjs",
|
|
38
|
+
"dist",
|
|
39
|
+
"styleguide",
|
|
40
|
+
"types",
|
|
41
|
+
"/scripts/postinstall.js",
|
|
42
|
+
"/index.js"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@babel/runtime": "^7.15.4",
|
|
46
|
+
"@plesk/react-movable": "^2.6.0",
|
|
47
|
+
"@types/classnames": "2.2.7",
|
|
48
|
+
"@types/react": "16.8.13",
|
|
49
|
+
"@types/react-dom": "16.8.4",
|
|
50
|
+
"@types/react-measure": "2.0.8",
|
|
51
|
+
"@types/react-transition-group": "^4.4.4",
|
|
52
|
+
"@types/svg4everybody": "2.1.0",
|
|
53
|
+
"classnames": "^2.3.1",
|
|
54
|
+
"codemirror": "5.48.0",
|
|
55
|
+
"marked": "0.3.19",
|
|
56
|
+
"memoize-one": "^5.1.1",
|
|
57
|
+
"popper.js": "1.14.3",
|
|
58
|
+
"prop-types": "^15.7.2",
|
|
59
|
+
"react-measure": "2.3.0",
|
|
60
|
+
"react-sortable-hoc": "0.6.8",
|
|
61
|
+
"react-transition-group": "^4.4.2",
|
|
62
|
+
"scroll-into-view-if-needed": "^2.2.20",
|
|
63
|
+
"svg4everybody": "2.1.9",
|
|
64
|
+
"use-focus-visible": "^1.0.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@babel/core": "^7.15.8",
|
|
68
|
+
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
69
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
70
|
+
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
71
|
+
"@babel/preset-env": "^7.15.8",
|
|
72
|
+
"@babel/preset-react": "^7.14.5",
|
|
73
|
+
"@babel/preset-typescript": "^7.15.0",
|
|
74
|
+
"@plesk/eslint-config": "^1.1.0",
|
|
75
|
+
"@plesk/stylelint-config": "^0.0.6",
|
|
76
|
+
"@types/buble": "^0.19.2",
|
|
77
|
+
"@types/cheerio": "^0.22.30",
|
|
78
|
+
"@types/doctrine": "^0.0.3",
|
|
79
|
+
"@types/enzyme": "^3.10.9",
|
|
80
|
+
"@types/jest": "^23.3.12",
|
|
81
|
+
"@types/webpack-dev-server": "^3.10.1",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^2.7.0",
|
|
83
|
+
"@typescript-eslint/parser": "^2.7.0",
|
|
84
|
+
"autoprefixer": "^10.3.7",
|
|
85
|
+
"babel-loader": "^8.2.3",
|
|
86
|
+
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
87
|
+
"babel-plugin-transform-require-ignore": "^0.1.1",
|
|
88
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
89
|
+
"cross-env": "^5.2.0",
|
|
90
|
+
"css-loader": "^6.4.0",
|
|
91
|
+
"css-minimizer-webpack-plugin": "^3.1.1",
|
|
92
|
+
"enzyme": "^3.11.0",
|
|
93
|
+
"enzyme-adapter-react-16": "^1.15.6",
|
|
94
|
+
"enzyme-to-json": "^3.6.2",
|
|
95
|
+
"eslint-config-prettier": "^6.11.0",
|
|
96
|
+
"eslint-plugin-markdown": "^1.0.2",
|
|
97
|
+
"eslint-plugin-prettier": "^3.1.3",
|
|
98
|
+
"expect-puppeteer": "^4.4.0",
|
|
99
|
+
"fs-extra": "^7.0.0",
|
|
100
|
+
"html-webpack-plugin": "^5.5.0",
|
|
101
|
+
"inquirer": "^3.2.1",
|
|
102
|
+
"jest": "^24.9.0",
|
|
103
|
+
"jest-dev-server": "^4.4.0",
|
|
104
|
+
"jest-image-snapshot": "^4.0.2",
|
|
105
|
+
"less": "^4.1.2",
|
|
106
|
+
"less-loader": "^10.2.0",
|
|
107
|
+
"mini-css-extract-plugin": "^2.4.3",
|
|
108
|
+
"postcss": "^8.3.11",
|
|
109
|
+
"postcss-loader": "^6.2.0",
|
|
110
|
+
"postcss-logical": "^5.0.0",
|
|
111
|
+
"prettier": "^2.0.5",
|
|
112
|
+
"puppeteer-core": "^5.2.1",
|
|
113
|
+
"react": "^16.8.6",
|
|
114
|
+
"react-dom": "^16.8.6",
|
|
115
|
+
"react-styleguidist": "^11.1.7",
|
|
116
|
+
"react-test-renderer": "^16.8.6",
|
|
117
|
+
"rimraf": "^3.0.1",
|
|
118
|
+
"rtlcss": "^3.4.0",
|
|
119
|
+
"style-loader": "^3.3.1",
|
|
120
|
+
"stylelint-config-prettier": "^8.0.1",
|
|
121
|
+
"stylelint-prettier": "^1.1.2",
|
|
122
|
+
"svg-mixer": "^2.3.14",
|
|
123
|
+
"terser-webpack-plugin": "^5.2.4",
|
|
124
|
+
"typescript": "^3.7.2",
|
|
125
|
+
"webpack": "^5.60.0",
|
|
126
|
+
"webpack-cli": "^4.9.1"
|
|
127
|
+
},
|
|
128
|
+
"peerDependencies": {
|
|
129
|
+
"react": "^16.8.6",
|
|
130
|
+
"react-dom": "^16.8.6"
|
|
131
|
+
},
|
|
132
|
+
"resolutions": {
|
|
133
|
+
"@babel/types": "^7.15.6",
|
|
134
|
+
"@types/node": "^12.12.8",
|
|
135
|
+
"**/caniuse-lite": "1.0.30001274"
|
|
136
|
+
},
|
|
137
|
+
"browserslist": [
|
|
138
|
+
"last 2 versions",
|
|
139
|
+
">1%",
|
|
140
|
+
"not op_mini all",
|
|
141
|
+
"not dead",
|
|
142
|
+
"not ie 11"
|
|
143
|
+
],
|
|
144
|
+
"author": "Plesk Developers <plesk-dev-leads@plesk.com> (https://www.plesk.com/)",
|
|
145
|
+
"license": "Apache-2.0"
|
|
146
|
+
}
|