@plesk/ui-library 3.35.7 → 3.35.8
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/Overlay/Overlay.js +26 -18
- 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 +27 -19
- 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/Overlay/Overlay.js +26 -18
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/styleguide/build/bundle.50841a29.js +2 -0
- package/styleguide/index.html +2 -2
- package/styleguide/build/bundle.a2d3190d.js +0 -2
- /package/styleguide/build/{bundle.a2d3190d.js.LICENSE.txt → bundle.50841a29.js.LICENSE.txt} +0 -0
package/dist/plesk-ui-library.js
CHANGED
|
@@ -14768,7 +14768,7 @@ const OverlayCore = _ref => {
|
|
|
14768
14768
|
onAnimationExited,
|
|
14769
14769
|
...props
|
|
14770
14770
|
} = _ref;
|
|
14771
|
-
const
|
|
14771
|
+
const backdropRef = (0, _react.useRef)(null);
|
|
14772
14772
|
const contentRef = (0, _react.useRef)(null);
|
|
14773
14773
|
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
14774
14774
|
(0, _react.useEffect)(() => setIsOpen(externalIsOpen), [externalIsOpen]);
|
|
@@ -14824,30 +14824,38 @@ const OverlayCore = _ref => {
|
|
|
14824
14824
|
children: element
|
|
14825
14825
|
});
|
|
14826
14826
|
};
|
|
14827
|
+
const openClassName = `${baseClassName}--open`;
|
|
14828
|
+
const transitionBaseProps = {
|
|
14829
|
+
in: isOpen,
|
|
14830
|
+
classNames: {
|
|
14831
|
+
enterActive: openClassName,
|
|
14832
|
+
enterDone: openClassName
|
|
14833
|
+
},
|
|
14834
|
+
timeout: 300
|
|
14835
|
+
};
|
|
14827
14836
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Layer.default, {
|
|
14828
14837
|
level: _constants.Z_INDEX_OVERLAY,
|
|
14829
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
14830
|
-
|
|
14831
|
-
timeout: 300,
|
|
14832
|
-
classNames: {
|
|
14833
|
-
enterActive: `${baseClassName}--open`,
|
|
14834
|
-
enterDone: `${baseClassName}--open`
|
|
14835
|
-
},
|
|
14836
|
-
onExited: onAnimationExited,
|
|
14837
|
-
nodeRef: overlayRef,
|
|
14838
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
14839
|
+
className: (0, _classnames.default)(baseClassName, `${baseClassName}--${placement}`, `${baseClassName}--${size}`, sideBanner && `${baseClassName}--side`, className),
|
|
14838
14840
|
style: {
|
|
14839
14841
|
'--overlay-side-banner-background': sideBannerContainer?.background,
|
|
14840
14842
|
'--overlay-side-banner-align': sideBannerContainer?.align,
|
|
14841
14843
|
...style
|
|
14842
14844
|
},
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
...
|
|
14847
|
-
children:
|
|
14845
|
+
...props,
|
|
14846
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
14847
|
+
nodeRef: backdropRef,
|
|
14848
|
+
...transitionBaseProps,
|
|
14849
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
14850
|
+
ref: backdropRef,
|
|
14848
14851
|
className: `${baseClassName}__backdrop`,
|
|
14849
14852
|
onClick: handleBackdropClick
|
|
14850
|
-
})
|
|
14853
|
+
})
|
|
14854
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
14855
|
+
onExited: onAnimationExited,
|
|
14856
|
+
nodeRef: contentRef,
|
|
14857
|
+
...transitionBaseProps,
|
|
14858
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_FocusTrap.default, {
|
|
14851
14859
|
className: `${baseClassName}__content`,
|
|
14852
14860
|
onKeyUp: canCloseOnEscapePress ? handleContentKeyUp : undefined,
|
|
14853
14861
|
ref: contentRef,
|
|
@@ -14857,8 +14865,8 @@ const OverlayCore = _ref => {
|
|
|
14857
14865
|
className: `${baseClassName}__body`,
|
|
14858
14866
|
children: children
|
|
14859
14867
|
}), sideBanner && renderImage(sideBanner)]
|
|
14860
|
-
})
|
|
14861
|
-
})
|
|
14868
|
+
})
|
|
14869
|
+
})]
|
|
14862
14870
|
})
|
|
14863
14871
|
});
|
|
14864
14872
|
};
|
|
@@ -87935,7 +87943,7 @@ function _setPrototypeOf(o, p) {
|
|
|
87935
87943
|
/***/ ((module) => {
|
|
87936
87944
|
|
|
87937
87945
|
"use strict";
|
|
87938
|
-
module.exports = JSON.parse('{"name":"@plesk/ui-library","version":"3.35.
|
|
87946
|
+
module.exports = JSON.parse('{"name":"@plesk/ui-library","version":"3.35.8","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 && yarn format:check","lint:es":"eslint --ext js,md,tsx src configs scripts styleguidist","lint:types":"tsc","lint:style":"stylelint \\"{src,styleguidist}/**/*.less\\"","format:check":"prettier --check src","format":"prettier --write src","styleguide":"styleguidist server --config ./configs/styleguide.config.js","styleguide:build":"styleguidist build --config ./configs/styleguide.config.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.23.1","@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.23.0","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-runtime":"^7.22.15","@babel/preset-env":"^7.22.20","@babel/preset-react":"^7.22.15","@babel/preset-typescript":"^7.23.0","@babel/types":"^7.23.0","@csstools/postcss-logical-float-and-clear":"^1.0.1","@plesk/eslint-config":"^3.0.0","@plesk/stylelint-config":"^2.0.0","@testing-library/dom":"^9.3.3","@testing-library/jest-dom":"^6.1.3","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.5.1","@types/buble":"^0.20.2","@types/classnames":"2.3.1","@types/doctrine":"^0.0.5","@types/jest":"^29.5.5","@types/jest-image-snapshot":"^6.2.1","@types/marked":"^4.3.2","@types/node":"^16.18.58","@types/react":"^18.2.25","@types/react-dom":"^18.2.11","@types/react-measure":"2.0.9","@types/react-transition-group":"^4.4.7","@types/svg4everybody":"2.1.2","@typescript-eslint/eslint-plugin":"^6.7.4","@typescript-eslint/parser":"^6.7.4","autoprefixer":"^10.4.16","babel-loader":"^8.3.0","babel-plugin-transform-require-ignore":"^0.1.1","clean-webpack-plugin":"^4.0.0","cross-env":"^7.0.3","css-loader":"^6.8.1","css-minimizer-webpack-plugin":"^5.0.1","eslint":"^8.51.0","eslint-config-prettier":"^8.10.0","eslint-plugin-markdown":"^3.0.1","html-webpack-plugin":"^5.5.3","jest":"^29.7.0","jest-dev-server":"^9.0.1","jest-environment-jsdom":"^29.7.0","jest-image-snapshot":"^6.2.0","less":"^4.2.0","less-loader":"^11.1.3","mini-css-extract-plugin":"^2.7.6","postcss":"^8.4.31","postcss-less":"^6.0.0","postcss-loader":"^7.3.3","postcss-logical":"^6.2.0","prettier":"^2.8.8","puppeteer-core":"20.4.0","react":"^18.2.0","react-docgen-typescript":"^2.2.2","react-dom":"^18.2.0","react-styleguidist":"^13.1.1","rimraf":"^5.0.5","rtlcss":"^4.1.1","style-loader":"^3.3.3","stylelint":"^15.10.3","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":"5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"resolutions":{"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"}');
|
|
87939
87947
|
|
|
87940
87948
|
/***/ }),
|
|
87941
87949
|
|