@cloud-ru/uikit-product-site-layout 0.4.0 → 0.5.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 +11 -0
- package/dist/cjs/helperComponents/Main/Main.d.ts +2 -1
- package/dist/cjs/helperComponents/Main/Main.js +2 -2
- package/dist/cjs/helperComponents/Main/styles.module.css +6 -0
- package/dist/esm/helperComponents/Main/Main.d.ts +2 -1
- package/dist/esm/helperComponents/Main/Main.js +2 -2
- package/dist/esm/helperComponents/Main/styles.module.css +6 -0
- package/package.json +2 -2
- package/src/helperComponents/Main/Main.tsx +3 -2
- package/src/helperComponents/Main/styles.module.scss +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.5.0 (2025-12-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **SITE-10382:** add prop for full width content container ([f7ebb0c](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/f7ebb0cc6ae7240b14b65105fab589e230a336da))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 0.4.0 (2025-12-04)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -3,5 +3,6 @@ import { WithLayoutType, WithSupportProps } from '@cloud-ru/uikit-product-utils'
|
|
|
3
3
|
export type MainProps = WithSupportProps<WithLayoutType<{
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
|
+
fullWidth?: boolean;
|
|
6
7
|
}>>;
|
|
7
|
-
export declare function Main({ children, className, layoutType, ...rest }: MainProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Main({ children, className, layoutType, fullWidth, ...rest }: MainProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,6 +20,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
20
20
|
const uikit_product_utils_1 = require("@cloud-ru/uikit-product-utils");
|
|
21
21
|
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
22
22
|
function Main(_a) {
|
|
23
|
-
var { children, className, layoutType } = _a, rest = __rest(_a, ["children", "className", "layoutType"]);
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)("main", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.main, className) }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.mainContent, "data-layout-type": layoutType, children: children }) })));
|
|
23
|
+
var { children, className, layoutType, fullWidth } = _a, rest = __rest(_a, ["children", "className", "layoutType", "fullWidth"]);
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)("main", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.main, className) }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.mainContent, "data-layout-type": layoutType, "data-full-width": fullWidth, children: children }) })));
|
|
25
25
|
}
|
|
@@ -3,5 +3,6 @@ import { WithLayoutType, WithSupportProps } from '@cloud-ru/uikit-product-utils'
|
|
|
3
3
|
export type MainProps = WithSupportProps<WithLayoutType<{
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
|
+
fullWidth?: boolean;
|
|
6
7
|
}>>;
|
|
7
|
-
export declare function Main({ children, className, layoutType, ...rest }: MainProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Main({ children, className, layoutType, fullWidth, ...rest }: MainProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,6 @@ import cn from 'classnames';
|
|
|
14
14
|
import { extractSupportProps } from '@cloud-ru/uikit-product-utils';
|
|
15
15
|
import styles from './styles.module.css';
|
|
16
16
|
export function Main(_a) {
|
|
17
|
-
var { children, className, layoutType } = _a, rest = __rest(_a, ["children", "className", "layoutType"]);
|
|
18
|
-
return (_jsx("main", Object.assign({ className: cn(styles.main, className) }, extractSupportProps(rest), { children: _jsx("div", { className: styles.mainContent, "data-layout-type": layoutType, children: children }) })));
|
|
17
|
+
var { children, className, layoutType, fullWidth } = _a, rest = __rest(_a, ["children", "className", "layoutType", "fullWidth"]);
|
|
18
|
+
return (_jsx("main", Object.assign({ className: cn(styles.main, className) }, extractSupportProps(rest), { children: _jsx("div", { className: styles.mainContent, "data-layout-type": layoutType, "data-full-width": fullWidth, children: children }) })));
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-site-layout",
|
|
3
3
|
"title": "Site Layout",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@cloud-ru/uikit-product-utils": "8.0.1",
|
|
40
40
|
"classnames": "2.5.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cbf5e3534d2bc2d691a1500539d9849938cabeff"
|
|
43
43
|
}
|
|
@@ -9,13 +9,14 @@ export type MainProps = WithSupportProps<
|
|
|
9
9
|
WithLayoutType<{
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
className?: string;
|
|
12
|
+
fullWidth?: boolean;
|
|
12
13
|
}>
|
|
13
14
|
>;
|
|
14
15
|
|
|
15
|
-
export function Main({ children, className, layoutType, ...rest }: MainProps) {
|
|
16
|
+
export function Main({ children, className, layoutType, fullWidth, ...rest }: MainProps) {
|
|
16
17
|
return (
|
|
17
18
|
<main className={cn(styles.main, className)} {...extractSupportProps(rest)}>
|
|
18
|
-
<div className={styles.mainContent} data-layout-type={layoutType}>
|
|
19
|
+
<div className={styles.mainContent} data-layout-type={layoutType} data-full-width={fullWidth}>
|
|
19
20
|
{children}
|
|
20
21
|
</div>
|
|
21
22
|
</main>
|