@cloud-ru/uikit-product-site-section 1.3.0 → 1.4.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 CHANGED
@@ -3,6 +3,18 @@
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
+ # 1.4.0 (2026-04-30)
7
+
8
+
9
+ ### Features
10
+
11
+ * **EVODBAAS-7563:** calculate hostsQuantity for Redis ([fead790](https://github.com/cloud-ru-tech/uikit-product/commit/fead790917457a29ece8158d658a6fe6a53bad7a))
12
+ * **SITE-11200:** add prop description for section accordion ([dc683df](https://github.com/cloud-ru-tech/uikit-product/commit/dc683dfc1d12f4560428dcdfbd9067c3f9c07288))
13
+
14
+
15
+
16
+
17
+
6
18
  # 1.3.0 (2026-04-27)
7
19
 
8
20
 
package/README.md CHANGED
@@ -17,6 +17,7 @@
17
17
  | expandedDefault | `string \| string[]` | - | |
18
18
  | onExpandedChange | `((value?: string) => void) \| ((value?: string[]) => void)` | - | |
19
19
  | id | `string` | - | id секции |
20
+ | description | `string` | - | Описание |
20
21
  | backgroundColor | enum SectionColor: `"neutral-background1-level"`, `"neutral-background"`, `"graphite-accent-default"` | - | Цвет фона |
21
22
  | outline | `boolean` | - | Внешний бордер для блоков |
22
23
  | className | `string` | - | CSS-класс |
@@ -15,6 +15,8 @@ export type SectionAccordionProps = WithSupportProps<AccordionPropsCopy & WithLa
15
15
  id?: string;
16
16
  /** Название секции */
17
17
  title: string;
18
+ /** Описание */
19
+ description?: string;
18
20
  /** Массив айтемов */
19
21
  items: AccordionItem[];
20
22
  /** Цвет фона */
@@ -24,5 +26,5 @@ export type SectionAccordionProps = WithSupportProps<AccordionPropsCopy & WithLa
24
26
  /** CSS-класс */
25
27
  className?: string;
26
28
  }>>;
27
- export declare function SectionAccordion({ id, title, items, selectionMode, layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className, ...rest }: SectionAccordionProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function SectionAccordion({ id, title, description, items, selectionMode, layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className, ...rest }: SectionAccordionProps): import("react/jsx-runtime").JSX.Element;
28
30
  export {};
@@ -24,6 +24,6 @@ const SectionBasic_1 = require("../SectionBasic");
24
24
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
25
25
  const utils_1 = require("./utils");
26
26
  function SectionAccordion(_a) {
27
- var { id, title, items, selectionMode = 'multiple', layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className } = _a, rest = __rest(_a, ["id", "title", "items", "selectionMode", "layoutType", "backgroundColor", "outline", "onExpandedChange", "expandedDefault", "className"]);
28
- return ((0, jsx_runtime_1.jsx)(SectionBasic_1.SectionBasic, Object.assign({ id: id, title: title, layoutType: layoutType, backgroundColor: backgroundColor }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: (0, jsx_runtime_1.jsx)(accordion_1.AccordionPrimary, { selectionMode: selectionMode, expandedDefault: expandedDefault, onExpandedChange: onExpandedChange, className: styles_module_scss_1.default.accordion, children: items.map(({ title, description, onClick }, index) => ((0, jsx_runtime_1.jsx)(accordion_1.AccordionPrimary.CollapseBlock, { id: index.toString(), header: (0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ family: 'sans' }, (0, utils_1.getBlockTitleProps)(layoutType), { className: styles_module_scss_1.default.title, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { richText: title }) })), className: className, removeContentFromDOM: false, outline: outline, onClick: onClick, children: (0, jsx_runtime_1.jsx)(typography_1.Typography, { family: 'sans', purpose: 'body', tag: 'div', size: (0, utils_1.getBlockDescriptionSize)(layoutType), className: styles_module_scss_1.default.description, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { richText: description }) }) }, index))) }) })));
27
+ var { id, title, description, items, selectionMode = 'multiple', layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className } = _a, rest = __rest(_a, ["id", "title", "description", "items", "selectionMode", "layoutType", "backgroundColor", "outline", "onExpandedChange", "expandedDefault", "className"]);
28
+ return ((0, jsx_runtime_1.jsx)(SectionBasic_1.SectionBasic, Object.assign({ id: id, title: title, description: description, layoutType: layoutType, backgroundColor: backgroundColor }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: (0, jsx_runtime_1.jsx)(accordion_1.AccordionPrimary, { selectionMode: selectionMode, expandedDefault: expandedDefault, onExpandedChange: onExpandedChange, className: styles_module_scss_1.default.accordion, children: items.map(({ title, description, onClick }, index) => ((0, jsx_runtime_1.jsx)(accordion_1.AccordionPrimary.CollapseBlock, { id: index.toString(), header: (0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ family: 'sans' }, (0, utils_1.getBlockTitleProps)(layoutType), { className: styles_module_scss_1.default.title, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { richText: title }) })), className: className, removeContentFromDOM: false, outline: outline, onClick: onClick, children: (0, jsx_runtime_1.jsx)(typography_1.Typography, { family: 'sans', purpose: 'body', tag: 'div', size: (0, utils_1.getBlockDescriptionSize)(layoutType), className: styles_module_scss_1.default.description, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { richText: description }) }) }, index))) }) })));
29
29
  }
@@ -15,6 +15,8 @@ export type SectionAccordionProps = WithSupportProps<AccordionPropsCopy & WithLa
15
15
  id?: string;
16
16
  /** Название секции */
17
17
  title: string;
18
+ /** Описание */
19
+ description?: string;
18
20
  /** Массив айтемов */
19
21
  items: AccordionItem[];
20
22
  /** Цвет фона */
@@ -24,5 +26,5 @@ export type SectionAccordionProps = WithSupportProps<AccordionPropsCopy & WithLa
24
26
  /** CSS-класс */
25
27
  className?: string;
26
28
  }>>;
27
- export declare function SectionAccordion({ id, title, items, selectionMode, layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className, ...rest }: SectionAccordionProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function SectionAccordion({ id, title, description, items, selectionMode, layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className, ...rest }: SectionAccordionProps): import("react/jsx-runtime").JSX.Element;
28
30
  export {};
@@ -18,6 +18,6 @@ import { SectionBasic } from '../SectionBasic';
18
18
  import styles from './styles.module.css';
19
19
  import { getBlockDescriptionSize, getBlockTitleProps } from './utils';
20
20
  export function SectionAccordion(_a) {
21
- var { id, title, items, selectionMode = 'multiple', layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className } = _a, rest = __rest(_a, ["id", "title", "items", "selectionMode", "layoutType", "backgroundColor", "outline", "onExpandedChange", "expandedDefault", "className"]);
22
- return (_jsx(SectionBasic, Object.assign({ id: id, title: title, layoutType: layoutType, backgroundColor: backgroundColor }, extractSupportProps(rest), { children: _jsx(AccordionPrimary, { selectionMode: selectionMode, expandedDefault: expandedDefault, onExpandedChange: onExpandedChange, className: styles.accordion, children: items.map(({ title, description, onClick }, index) => (_jsx(AccordionPrimary.CollapseBlock, { id: index.toString(), header: _jsx(Typography, Object.assign({ family: 'sans' }, getBlockTitleProps(layoutType), { className: styles.title, children: _jsx(RichText, { richText: title }) })), className: className, removeContentFromDOM: false, outline: outline, onClick: onClick, children: _jsx(Typography, { family: 'sans', purpose: 'body', tag: 'div', size: getBlockDescriptionSize(layoutType), className: styles.description, children: _jsx(RichText, { richText: description }) }) }, index))) }) })));
21
+ var { id, title, description, items, selectionMode = 'multiple', layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className } = _a, rest = __rest(_a, ["id", "title", "description", "items", "selectionMode", "layoutType", "backgroundColor", "outline", "onExpandedChange", "expandedDefault", "className"]);
22
+ return (_jsx(SectionBasic, Object.assign({ id: id, title: title, description: description, layoutType: layoutType, backgroundColor: backgroundColor }, extractSupportProps(rest), { children: _jsx(AccordionPrimary, { selectionMode: selectionMode, expandedDefault: expandedDefault, onExpandedChange: onExpandedChange, className: styles.accordion, children: items.map(({ title, description, onClick }, index) => (_jsx(AccordionPrimary.CollapseBlock, { id: index.toString(), header: _jsx(Typography, Object.assign({ family: 'sans' }, getBlockTitleProps(layoutType), { className: styles.title, children: _jsx(RichText, { richText: title }) })), className: className, removeContentFromDOM: false, outline: outline, onClick: onClick, children: _jsx(Typography, { family: 'sans', purpose: 'body', tag: 'div', size: getBlockDescriptionSize(layoutType), className: styles.description, children: _jsx(RichText, { richText: description }) }) }, index))) }) })));
23
23
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-site-section",
3
3
  "title": "Site Section",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -67,5 +67,5 @@
67
67
  "@cloud-ru/uikit-product-locale": "*",
68
68
  "@snack-uikit/figma-tokens": "*"
69
69
  },
70
- "gitHead": "3ef9ace6301ded85fb902c2746376576a390febd"
70
+ "gitHead": "c6b9f623c9002ec407b5f3701392786004e445db"
71
71
  }
@@ -29,6 +29,8 @@ export type SectionAccordionProps = WithSupportProps<
29
29
  id?: string;
30
30
  /** Название секции */
31
31
  title: string;
32
+ /** Описание */
33
+ description?: string;
32
34
  /** Массив айтемов */
33
35
  items: AccordionItem[];
34
36
  /** Цвет фона */
@@ -43,6 +45,7 @@ export type SectionAccordionProps = WithSupportProps<
43
45
  export function SectionAccordion({
44
46
  id,
45
47
  title,
48
+ description,
46
49
  items,
47
50
  selectionMode = 'multiple',
48
51
  layoutType,
@@ -57,6 +60,7 @@ export function SectionAccordion({
57
60
  <SectionBasic
58
61
  id={id}
59
62
  title={title}
63
+ description={description}
60
64
  layoutType={layoutType}
61
65
  backgroundColor={backgroundColor}
62
66
  {...extractSupportProps(rest)}