@cloud-ru/uikit-product-site-layout 0.4.0 → 0.5.1

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 CHANGED
@@ -3,6 +3,26 @@
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.1 (2025-12-08)
7
+
8
+ ### Only dependencies have been changed
9
+ * [@cloud-ru/uikit-product-utils@8.0.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
10
+
11
+
12
+
13
+
14
+
15
+ # 0.5.0 (2025-12-05)
16
+
17
+
18
+ ### Features
19
+
20
+ * **SITE-10382:** add prop for full width content container ([f7ebb0c](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/f7ebb0cc6ae7240b14b65105fab589e230a336da))
21
+
22
+
23
+
24
+
25
+
6
26
  # 0.4.0 (2025-12-04)
7
27
 
8
28
 
@@ -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
  }
@@ -22,4 +22,10 @@
22
22
  .mainContent[data-layout-type=mobile]{
23
23
  max-width:unset;
24
24
  padding:0;
25
+ }
26
+ .mainContent[data-full-width=true]{
27
+ max-width:100%;
28
+ }
29
+ .mainContent[data-full-width=true][data-layout-type]{
30
+ padding:0;
25
31
  }
@@ -12,5 +12,5 @@ export declare const SectionWrapper: import("react").ForwardRefExoticComponent<{
12
12
  children: ReactNode;
13
13
  className?: string;
14
14
  } & {
15
- layoutType: import("@cloud-ru/uikit-product-utils/.").LayoutType;
15
+ layoutType: import("@cloud-ru/uikit-product-utils").LayoutType;
16
16
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -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
  }
@@ -22,4 +22,10 @@
22
22
  .mainContent[data-layout-type=mobile]{
23
23
  max-width:unset;
24
24
  padding:0;
25
+ }
26
+ .mainContent[data-full-width=true]{
27
+ max-width:100%;
28
+ }
29
+ .mainContent[data-full-width=true][data-layout-type]{
30
+ padding:0;
25
31
  }
@@ -12,5 +12,5 @@ export declare const SectionWrapper: import("react").ForwardRefExoticComponent<{
12
12
  children: ReactNode;
13
13
  className?: string;
14
14
  } & {
15
- layoutType: import("@cloud-ru/uikit-product-utils/.").LayoutType;
15
+ layoutType: import("@cloud-ru/uikit-product-utils").LayoutType;
16
16
  } & import("react").RefAttributes<HTMLDivElement>>;
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.0",
4
+ "version": "0.5.1",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@cloud-ru/uikit-product-utils": "8.0.1",
39
+ "@cloud-ru/uikit-product-utils": "8.0.2",
40
40
  "classnames": "2.5.1"
41
41
  },
42
- "gitHead": "14f18bff39619ba8f885fff42922458e7e0ee62c"
42
+ "gitHead": "ab61e93fe6f723c522e95a7c5540b3080de6b2de"
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>
@@ -28,4 +28,12 @@
28
28
  max-width: unset;
29
29
  padding: 0;
30
30
  }
31
+
32
+ &[data-full-width='true'] {
33
+ max-width: 100%;
34
+
35
+ &[data-layout-type] {
36
+ padding: 0;
37
+ }
38
+ }
31
39
  }