@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
package/dist/plesk-ui-library.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["PleskUiLibrary"] = factory(require("react"), require("react-dom"));
|
|
8
8
|
else
|
|
9
9
|
root["PleskUiLibrary"] = factory(root["React"], root["ReactDOM"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -8825,6 +8825,7 @@ class FormField extends _react.Component {
|
|
|
8825
8825
|
}
|
|
8826
8826
|
|
|
8827
8827
|
return /*#__PURE__*/_react.default.createElement(_Hint.default, {
|
|
8828
|
+
component: "div",
|
|
8828
8829
|
className: `${baseClassName}__description`
|
|
8829
8830
|
}, description);
|
|
8830
8831
|
});
|
|
@@ -11139,10 +11140,13 @@ const Hint = ({
|
|
|
11139
11140
|
baseClassName = `${_constants.CLS_PREFIX}hint`,
|
|
11140
11141
|
className,
|
|
11141
11142
|
children,
|
|
11143
|
+
component: Tag = 'span',
|
|
11142
11144
|
...props
|
|
11143
|
-
}) =>
|
|
11144
|
-
|
|
11145
|
-
|
|
11145
|
+
}) => {
|
|
11146
|
+
return /*#__PURE__*/_react.default.createElement(Tag, _extends({
|
|
11147
|
+
className: (0, _classnames.default)(baseClassName, className)
|
|
11148
|
+
}, props), children);
|
|
11149
|
+
};
|
|
11146
11150
|
|
|
11147
11151
|
var _default = Hint;
|
|
11148
11152
|
exports["default"] = _default;
|
|
@@ -16247,10 +16251,10 @@ const getMessage = (fullKey, messages) => {
|
|
|
16247
16251
|
}
|
|
16248
16252
|
|
|
16249
16253
|
return messages[fullKey];
|
|
16250
|
-
};
|
|
16251
|
-
|
|
16254
|
+
};
|
|
16252
16255
|
|
|
16253
|
-
const createTranslate = messages =>
|
|
16256
|
+
const createTranslate = messages => // eslint-disable-next-line default-param-last
|
|
16257
|
+
(key, params = {}, fallback) => {
|
|
16254
16258
|
if (typeof key !== 'string') {
|
|
16255
16259
|
return '';
|
|
16256
16260
|
}
|
|
@@ -89271,11 +89275,11 @@ SwitchTransition.defaultProps = {
|
|
|
89271
89275
|
"use strict";
|
|
89272
89276
|
__webpack_require__.r(__webpack_exports__);
|
|
89273
89277
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
89274
|
-
/* harmony export */ "UNMOUNTED": () => (/* binding */ UNMOUNTED),
|
|
89275
|
-
/* harmony export */ "EXITED": () => (/* binding */ EXITED),
|
|
89276
|
-
/* harmony export */ "ENTERING": () => (/* binding */ ENTERING),
|
|
89277
89278
|
/* harmony export */ "ENTERED": () => (/* binding */ ENTERED),
|
|
89278
|
-
/* harmony export */ "
|
|
89279
|
+
/* harmony export */ "ENTERING": () => (/* binding */ ENTERING),
|
|
89280
|
+
/* harmony export */ "EXITED": () => (/* binding */ EXITED),
|
|
89281
|
+
/* harmony export */ "EXITING": () => (/* binding */ EXITING),
|
|
89282
|
+
/* harmony export */ "UNMOUNTED": () => (/* binding */ UNMOUNTED)
|
|
89279
89283
|
/* harmony export */ });
|
|
89280
89284
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
89281
89285
|
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "../node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
|
|
@@ -90158,8 +90162,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90158
90162
|
/* harmony export */ "CSSTransition": () => (/* reexport safe */ _CSSTransition__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
90159
90163
|
/* harmony export */ "ReplaceTransition": () => (/* reexport safe */ _ReplaceTransition__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
90160
90164
|
/* harmony export */ "SwitchTransition": () => (/* reexport safe */ _SwitchTransition__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
90161
|
-
/* harmony export */ "TransitionGroup": () => (/* reexport safe */ _TransitionGroup__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
90162
90165
|
/* harmony export */ "Transition": () => (/* reexport safe */ _Transition__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
90166
|
+
/* harmony export */ "TransitionGroup": () => (/* reexport safe */ _TransitionGroup__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
90163
90167
|
/* harmony export */ "config": () => (/* reexport safe */ _config__WEBPACK_IMPORTED_MODULE_5__["default"])
|
|
90164
90168
|
/* harmony export */ });
|
|
90165
90169
|
/* harmony import */ var _CSSTransition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CSSTransition */ "../node_modules/react-transition-group/esm/CSSTransition.js");
|
|
@@ -90187,9 +90191,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90187
90191
|
__webpack_require__.r(__webpack_exports__);
|
|
90188
90192
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
90189
90193
|
/* harmony export */ "getChildMapping": () => (/* binding */ getChildMapping),
|
|
90190
|
-
/* harmony export */ "mergeChildMappings": () => (/* binding */ mergeChildMappings),
|
|
90191
90194
|
/* harmony export */ "getInitialChildMapping": () => (/* binding */ getInitialChildMapping),
|
|
90192
|
-
/* harmony export */ "getNextChildMapping": () => (/* binding */ getNextChildMapping)
|
|
90195
|
+
/* harmony export */ "getNextChildMapping": () => (/* binding */ getNextChildMapping),
|
|
90196
|
+
/* harmony export */ "mergeChildMappings": () => (/* binding */ mergeChildMappings)
|
|
90193
90197
|
/* harmony export */ });
|
|
90194
90198
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
90195
90199
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -90345,8 +90349,8 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
|
90345
90349
|
"use strict";
|
|
90346
90350
|
__webpack_require__.r(__webpack_exports__);
|
|
90347
90351
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
90348
|
-
/* harmony export */ "
|
|
90349
|
-
/* harmony export */ "
|
|
90352
|
+
/* harmony export */ "classNamesShape": () => (/* binding */ classNamesShape),
|
|
90353
|
+
/* harmony export */ "timeoutsShape": () => (/* binding */ timeoutsShape)
|
|
90350
90354
|
/* harmony export */ });
|
|
90351
90355
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../node_modules/react-transition-group/node_modules/prop-types/index.js");
|
|
90352
90356
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -92618,7 +92622,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
92618
92622
|
/***/ ((module) => {
|
|
92619
92623
|
|
|
92620
92624
|
"use strict";
|
|
92621
|
-
module.exports = JSON.parse('{"name":"@plesk/ui-library","version":"3.
|
|
92625
|
+
module.exports = JSON.parse('{"name":"@plesk/ui-library","version":"3.30.0","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 --disable-host-check","postinstall":"node ./scripts/postinstall.js"},"files":["esm","cjs","dist","styleguide","types","/scripts/postinstall.js","/index.js"],"dependencies":{"@babel/runtime":"^7.15.4","@plesk/react-movable":"^2.6.0","@types/classnames":"2.2.7","@types/react":"16.8.13","@types/react-dom":"16.8.4","@types/react-measure":"2.0.8","@types/react-transition-group":"^4.4.4","@types/svg4everybody":"2.1.0","classnames":"^2.3.1","codemirror":"5.48.0","marked":"0.3.19","memoize-one":"^5.1.1","popper.js":"1.14.3","prop-types":"^15.7.2","react-measure":"2.3.0","react-sortable-hoc":"0.6.8","react-transition-group":"^4.4.2","scroll-into-view-if-needed":"^2.2.20","svg4everybody":"2.1.9","use-focus-visible":"^1.0.0"},"devDependencies":{"@babel/core":"^7.15.8","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-runtime":"^7.15.8","@babel/preset-env":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@plesk/eslint-config":"^1.1.0","@plesk/stylelint-config":"^1.0.0","@types/buble":"^0.19.2","@types/cheerio":"^0.22.30","@types/doctrine":"^0.0.3","@types/enzyme":"^3.10.9","@types/jest":"^23.3.12","@types/webpack-dev-server":"^3.10.1","@typescript-eslint/eslint-plugin":"^2.7.0","@typescript-eslint/parser":"^2.7.0","autoprefixer":"^10.4.13","babel-loader":"^8.2.3","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.0","css-loader":"^6.7.1","css-minimizer-webpack-plugin":"^4.2.2","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","enzyme-to-json":"^3.6.2","eslint-config-prettier":"^6.11.0","eslint-plugin-markdown":"^1.0.2","eslint-plugin-prettier":"^3.1.3","expect-puppeteer":"^4.4.0","fs-extra":"^7.0.0","html-webpack-plugin":"^5.5.0","inquirer":"^3.2.1","jest":"^24.9.0","jest-dev-server":"^4.4.0","jest-image-snapshot":"^4.0.2","less":"^4.1.3","less-loader":"^11.1.0","mini-css-extract-plugin":"^2.6.1","postcss":"^8.4.18","postcss-less":"^6.0.0","postcss-loader":"^7.0.1","postcss-logical":"^5.0.3","prettier":"^2.7.1","puppeteer-core":"13.1.3","react":"^16.8.6","react-dom":"^16.8.6","react-styleguidist":"^11.1.7","react-test-renderer":"^16.8.6","rimraf":"^3.0.1","rtlcss":"^3.4.0","style-loader":"^3.3.1","stylelint":"^14.14.1","stylelint-config-prettier":"^9.0.3","stylelint-declaration-block-no-ignored-properties":"^2.6.0","stylelint-no-unsupported-browser-features":"^6.0.1","stylelint-prettier":"^2.0.0","stylelint-use-logical-spec":"^4.1.0","svg-mixer":"^2.3.14","terser-webpack-plugin":"^5.2.4","typescript":"^3.7.2","webpack":"^5.74.0","webpack-cli":"^4.10.0"},"peerDependencies":{"react":"^16.8.6","react-dom":"^16.8.6"},"resolutions":{"@babel/types":"^7.15.6","@types/node":"^12.12.8","**/caniuse-lite":"1.0.30001430"},"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"}');
|
|
92622
92626
|
|
|
92623
92627
|
/***/ }),
|
|
92624
92628
|
|