@plesk/ui-library 3.29.2 → 3.30.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/cjs/components/FormField/FormField.js +1 -0
- package/cjs/components/Hint/Hint.js +7 -4
- package/cjs/components/LocaleProvider/LocaleProvider.js +3 -3
- 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 +21 -17
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +2 -2
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/FormField/FormField.js +1 -0
- package/esm/components/Hint/Hint.js +7 -4
- package/esm/components/LocaleProvider/LocaleProvider.js +3 -3
- package/esm/index.js +1 -1
- package/package.json +17 -17
- package/styleguide/build/bundle.756c4c59.js +2 -0
- package/styleguide/build/{bundle.50b6043f.js.LICENSE.txt → bundle.756c4c59.js.LICENSE.txt} +0 -0
- package/styleguide/index.html +2 -2
- package/types/src/components/Hint/Hint.d.ts +6 -1
- package/styleguide/build/bundle.50b6043f.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
// Copyright 1999-
|
|
2
|
+
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
@@ -12,9 +12,12 @@ const Hint = ({
|
|
|
12
12
|
baseClassName = `${CLS_PREFIX}hint`,
|
|
13
13
|
className,
|
|
14
14
|
children,
|
|
15
|
+
component: Tag = 'span',
|
|
15
16
|
...props
|
|
16
|
-
}) =>
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
}) => {
|
|
18
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
19
|
+
className: classNames(baseClassName, className)
|
|
20
|
+
}, props), children);
|
|
21
|
+
};
|
|
19
22
|
|
|
20
23
|
export default Hint;
|
|
@@ -49,10 +49,10 @@ const getMessage = (fullKey, messages) => {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
return messages[fullKey];
|
|
52
|
-
};
|
|
53
|
-
|
|
52
|
+
};
|
|
54
53
|
|
|
55
|
-
const createTranslate = messages =>
|
|
54
|
+
const createTranslate = messages => // eslint-disable-next-line default-param-last
|
|
55
|
+
(key, params = {}, fallback) => {
|
|
56
56
|
if (typeof key !== 'string') {
|
|
57
57
|
return '';
|
|
58
58
|
}
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plesk/ui-library",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.30.0",
|
|
4
4
|
"description": "Plesk UI Library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
"@types/webpack-dev-server": "^3.10.1",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^2.7.0",
|
|
83
83
|
"@typescript-eslint/parser": "^2.7.0",
|
|
84
|
-
"autoprefixer": "^10.
|
|
84
|
+
"autoprefixer": "^10.4.13",
|
|
85
85
|
"babel-loader": "^8.2.3",
|
|
86
86
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
87
87
|
"babel-plugin-transform-require-ignore": "^0.1.1",
|
|
88
88
|
"clean-webpack-plugin": "^4.0.0",
|
|
89
89
|
"cross-env": "^5.2.0",
|
|
90
|
-
"css-loader": "^6.
|
|
91
|
-
"css-minimizer-webpack-plugin": "^
|
|
90
|
+
"css-loader": "^6.7.1",
|
|
91
|
+
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
92
92
|
"enzyme": "^3.11.0",
|
|
93
93
|
"enzyme-adapter-react-16": "^1.15.6",
|
|
94
94
|
"enzyme-to-json": "^3.6.2",
|
|
@@ -102,14 +102,14 @@
|
|
|
102
102
|
"jest": "^24.9.0",
|
|
103
103
|
"jest-dev-server": "^4.4.0",
|
|
104
104
|
"jest-image-snapshot": "^4.0.2",
|
|
105
|
-
"less": "^4.1.
|
|
106
|
-
"less-loader": "^
|
|
107
|
-
"mini-css-extract-plugin": "^2.
|
|
108
|
-
"postcss": "^8.4.
|
|
105
|
+
"less": "^4.1.3",
|
|
106
|
+
"less-loader": "^11.1.0",
|
|
107
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
108
|
+
"postcss": "^8.4.18",
|
|
109
109
|
"postcss-less": "^6.0.0",
|
|
110
|
-
"postcss-loader": "^
|
|
110
|
+
"postcss-loader": "^7.0.1",
|
|
111
111
|
"postcss-logical": "^5.0.3",
|
|
112
|
-
"prettier": "^2.
|
|
112
|
+
"prettier": "^2.7.1",
|
|
113
113
|
"puppeteer-core": "13.1.3",
|
|
114
114
|
"react": "^16.8.6",
|
|
115
115
|
"react-dom": "^16.8.6",
|
|
@@ -118,17 +118,17 @@
|
|
|
118
118
|
"rimraf": "^3.0.1",
|
|
119
119
|
"rtlcss": "^3.4.0",
|
|
120
120
|
"style-loader": "^3.3.1",
|
|
121
|
-
"stylelint": "^14.
|
|
121
|
+
"stylelint": "^14.14.1",
|
|
122
122
|
"stylelint-config-prettier": "^9.0.3",
|
|
123
|
-
"stylelint-declaration-block-no-ignored-properties": "^2.
|
|
124
|
-
"stylelint-no-unsupported-browser-features": "^
|
|
123
|
+
"stylelint-declaration-block-no-ignored-properties": "^2.6.0",
|
|
124
|
+
"stylelint-no-unsupported-browser-features": "^6.0.1",
|
|
125
125
|
"stylelint-prettier": "^2.0.0",
|
|
126
|
-
"stylelint-use-logical-spec": "^
|
|
126
|
+
"stylelint-use-logical-spec": "^4.1.0",
|
|
127
127
|
"svg-mixer": "^2.3.14",
|
|
128
128
|
"terser-webpack-plugin": "^5.2.4",
|
|
129
129
|
"typescript": "^3.7.2",
|
|
130
|
-
"webpack": "^5.
|
|
131
|
-
"webpack-cli": "^4.
|
|
130
|
+
"webpack": "^5.74.0",
|
|
131
|
+
"webpack-cli": "^4.10.0"
|
|
132
132
|
},
|
|
133
133
|
"peerDependencies": {
|
|
134
134
|
"react": "^16.8.6",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"resolutions": {
|
|
138
138
|
"@babel/types": "^7.15.6",
|
|
139
139
|
"@types/node": "^12.12.8",
|
|
140
|
-
"**/caniuse-lite": "1.0.
|
|
140
|
+
"**/caniuse-lite": "1.0.30001430"
|
|
141
141
|
},
|
|
142
142
|
"browserslist": [
|
|
143
143
|
"last 2 versions",
|