@cloud-ru/uikit-product-page-layout 0.22.4 → 0.23.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/CHANGELOG.md +22 -0
- package/dist/cjs/components/PageServices/PageServices.d.ts +2 -0
- package/dist/cjs/components/PageServices/PageServices.js +2 -2
- package/dist/cjs/components/PageServices/styles.module.css +4 -0
- package/dist/esm/components/PageServices/PageServices.d.ts +2 -0
- package/dist/esm/components/PageServices/PageServices.js +2 -2
- package/dist/esm/components/PageServices/styles.module.css +4 -0
- package/package.json +5 -5
- package/src/components/PageServices/PageServices.tsx +3 -1
- package/src/components/PageServices/styles.module.scss +5 -0
- package/src/components/PageSidebar/types.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.23.0 (2025-12-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **PDS-2329:** added max-width for page services container ([4a1426b](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/4a1426b46a778dac8891cbf24b78e4bab03a61b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 0.22.5 (2025-12-08)
|
|
18
|
+
|
|
19
|
+
### Only dependencies have been changed
|
|
20
|
+
* [@cloud-ru/uikit-product-copy-line@0.7.70](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/copy-line/CHANGELOG.md)
|
|
21
|
+
* [@cloud-ru/uikit-product-icons@16.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
|
|
22
|
+
* [@cloud-ru/uikit-product-utils@8.0.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## 0.22.4 (2025-11-28)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -6,6 +6,7 @@ export type PageServicesProps = WithSupportProps<PropsWithChildren<Pick<Headline
|
|
|
6
6
|
className?: string;
|
|
7
7
|
sidebar?: PageSidebarProps;
|
|
8
8
|
autoHeight?: boolean;
|
|
9
|
+
limitContentMaxWidth?: boolean;
|
|
9
10
|
}>>;
|
|
10
11
|
export declare const PageServices: import("react").ForwardRefExoticComponent<{
|
|
11
12
|
'data-test-id'?: string;
|
|
@@ -13,6 +14,7 @@ export declare const PageServices: import("react").ForwardRefExoticComponent<{
|
|
|
13
14
|
className?: string;
|
|
14
15
|
sidebar?: PageSidebarProps;
|
|
15
16
|
autoHeight?: boolean;
|
|
17
|
+
limitContentMaxWidth?: boolean;
|
|
16
18
|
} & {
|
|
17
19
|
children?: import("react").ReactNode | undefined;
|
|
18
20
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -24,7 +24,7 @@ const PageSidebar_1 = require("../PageSidebar");
|
|
|
24
24
|
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
25
25
|
const GLOBAL_CONTAINER_ID = 'single-spa-wrapper';
|
|
26
26
|
exports.PageServices = (0, react_1.forwardRef)((_a, ref) => {
|
|
27
|
-
var { children, title, actions, className, sidebar, beforeHeadline, subHeader, afterHeadline, truncateTitle, autoHeight } = _a, rest = __rest(_a, ["children", "title", "actions", "className", "sidebar", "beforeHeadline", "subHeader", "afterHeadline", "truncateTitle", "autoHeight"]);
|
|
27
|
+
var { children, title, actions, className, sidebar, beforeHeadline, subHeader, afterHeadline, truncateTitle, autoHeight, limitContentMaxWidth } = _a, rest = __rest(_a, ["children", "title", "actions", "className", "sidebar", "beforeHeadline", "subHeader", "afterHeadline", "truncateTitle", "autoHeight", "limitContentMaxWidth"]);
|
|
28
28
|
const [height, setHeight] = (0, react_1.useState)(0);
|
|
29
29
|
(0, react_1.useEffect)(() => {
|
|
30
30
|
if (autoHeight)
|
|
@@ -41,5 +41,5 @@ exports.PageServices = (0, react_1.forwardRef)((_a, ref) => {
|
|
|
41
41
|
return () => observer.disconnect();
|
|
42
42
|
}
|
|
43
43
|
}, [autoHeight]);
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.wrapper, className) }, (!autoHeight && { style: { height } }), (0, utils_1.extractSupportProps)(rest), { children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.tempContainer, ref: ref, children: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.container, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, actions: actions, beforeHeadline: beforeHeadline, afterHeadline: afterHeadline, subHeader: subHeader, truncateTitle: truncateTitle }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.childWrapper, children: children })] }) }), sidebar && ((0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.sidebar, children: (0, jsx_runtime_1.jsx)(PageSidebar_1.PageSidebar, Object.assign({}, sidebar)) }))] })));
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.wrapper, className) }, (!autoHeight && { style: { height } }), (0, utils_1.extractSupportProps)(rest), { children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.tempContainer, ref: ref, children: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.container, "data-limited": limitContentMaxWidth, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, actions: actions, beforeHeadline: beforeHeadline, afterHeadline: afterHeadline, subHeader: subHeader, truncateTitle: truncateTitle }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.childWrapper, children: children })] }) }), sidebar && ((0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.sidebar, children: (0, jsx_runtime_1.jsx)(PageSidebar_1.PageSidebar, Object.assign({}, sidebar)) }))] })));
|
|
45
45
|
});
|
|
@@ -6,6 +6,7 @@ export type PageServicesProps = WithSupportProps<PropsWithChildren<Pick<Headline
|
|
|
6
6
|
className?: string;
|
|
7
7
|
sidebar?: PageSidebarProps;
|
|
8
8
|
autoHeight?: boolean;
|
|
9
|
+
limitContentMaxWidth?: boolean;
|
|
9
10
|
}>>;
|
|
10
11
|
export declare const PageServices: import("react").ForwardRefExoticComponent<{
|
|
11
12
|
'data-test-id'?: string;
|
|
@@ -13,6 +14,7 @@ export declare const PageServices: import("react").ForwardRefExoticComponent<{
|
|
|
13
14
|
className?: string;
|
|
14
15
|
sidebar?: PageSidebarProps;
|
|
15
16
|
autoHeight?: boolean;
|
|
17
|
+
limitContentMaxWidth?: boolean;
|
|
16
18
|
} & {
|
|
17
19
|
children?: import("react").ReactNode | undefined;
|
|
18
20
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -18,7 +18,7 @@ import { PageSidebar } from '../PageSidebar';
|
|
|
18
18
|
import styles from './styles.module.css';
|
|
19
19
|
const GLOBAL_CONTAINER_ID = 'single-spa-wrapper';
|
|
20
20
|
export const PageServices = forwardRef((_a, ref) => {
|
|
21
|
-
var { children, title, actions, className, sidebar, beforeHeadline, subHeader, afterHeadline, truncateTitle, autoHeight } = _a, rest = __rest(_a, ["children", "title", "actions", "className", "sidebar", "beforeHeadline", "subHeader", "afterHeadline", "truncateTitle", "autoHeight"]);
|
|
21
|
+
var { children, title, actions, className, sidebar, beforeHeadline, subHeader, afterHeadline, truncateTitle, autoHeight, limitContentMaxWidth } = _a, rest = __rest(_a, ["children", "title", "actions", "className", "sidebar", "beforeHeadline", "subHeader", "afterHeadline", "truncateTitle", "autoHeight", "limitContentMaxWidth"]);
|
|
22
22
|
const [height, setHeight] = useState(0);
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
if (autoHeight)
|
|
@@ -35,5 +35,5 @@ export const PageServices = forwardRef((_a, ref) => {
|
|
|
35
35
|
return () => observer.disconnect();
|
|
36
36
|
}
|
|
37
37
|
}, [autoHeight]);
|
|
38
|
-
return (_jsxs("div", Object.assign({ className: cn(styles.wrapper, className) }, (!autoHeight && { style: { height } }), extractSupportProps(rest), { children: [_jsx("div", { className: styles.tempContainer, ref: ref, children: _jsxs("div", { className: styles.container, children: [_jsx(Headline, { title: title, actions: actions, beforeHeadline: beforeHeadline, afterHeadline: afterHeadline, subHeader: subHeader, truncateTitle: truncateTitle }), _jsx("div", { className: styles.childWrapper, children: children })] }) }), sidebar && (_jsx("div", { className: styles.sidebar, children: _jsx(PageSidebar, Object.assign({}, sidebar)) }))] })));
|
|
38
|
+
return (_jsxs("div", Object.assign({ className: cn(styles.wrapper, className) }, (!autoHeight && { style: { height } }), extractSupportProps(rest), { children: [_jsx("div", { className: styles.tempContainer, ref: ref, children: _jsxs("div", { className: styles.container, "data-limited": limitContentMaxWidth, children: [_jsx(Headline, { title: title, actions: actions, beforeHeadline: beforeHeadline, afterHeadline: afterHeadline, subHeader: subHeader, truncateTitle: truncateTitle }), _jsx("div", { className: styles.childWrapper, children: children })] }) }), sidebar && (_jsx("div", { className: styles.sidebar, children: _jsx(PageSidebar, Object.assign({}, sidebar)) }))] })));
|
|
39
39
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-page-layout",
|
|
3
3
|
"title": "Page Layout",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.0",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@cloud-ru/uikit-product-copy-line": "0.7.
|
|
40
|
-
"@cloud-ru/uikit-product-icons": "16.0.
|
|
41
|
-
"@cloud-ru/uikit-product-utils": "8.0.
|
|
39
|
+
"@cloud-ru/uikit-product-copy-line": "0.7.70",
|
|
40
|
+
"@cloud-ru/uikit-product-icons": "16.0.1",
|
|
41
|
+
"@cloud-ru/uikit-product-utils": "8.0.2",
|
|
42
42
|
"@snack-uikit/button": "0.19.13",
|
|
43
43
|
"@snack-uikit/icon-predefined": "0.7.3",
|
|
44
44
|
"@snack-uikit/list": "0.26.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@cloud-ru/uikit-product-locale": "*"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "163adb470f05d28f8c808803649a66126d0b4707"
|
|
61
61
|
}
|
|
@@ -14,6 +14,7 @@ export type PageServicesProps = WithSupportProps<
|
|
|
14
14
|
className?: string;
|
|
15
15
|
sidebar?: PageSidebarProps;
|
|
16
16
|
autoHeight?: boolean;
|
|
17
|
+
limitContentMaxWidth?: boolean;
|
|
17
18
|
}
|
|
18
19
|
>
|
|
19
20
|
>;
|
|
@@ -33,6 +34,7 @@ export const PageServices = forwardRef<HTMLDivElement, PageServicesProps>(
|
|
|
33
34
|
afterHeadline,
|
|
34
35
|
truncateTitle,
|
|
35
36
|
autoHeight,
|
|
37
|
+
limitContentMaxWidth,
|
|
36
38
|
...rest
|
|
37
39
|
},
|
|
38
40
|
ref,
|
|
@@ -67,7 +69,7 @@ export const PageServices = forwardRef<HTMLDivElement, PageServicesProps>(
|
|
|
67
69
|
{...extractSupportProps(rest)}
|
|
68
70
|
>
|
|
69
71
|
<div className={styles.tempContainer} ref={ref}>
|
|
70
|
-
<div className={styles.container}>
|
|
72
|
+
<div className={styles.container} data-limited={limitContentMaxWidth}>
|
|
71
73
|
<Headline
|
|
72
74
|
title={title}
|
|
73
75
|
actions={actions}
|