@cloud-ru/uikit-product-site-article 1.2.3-preview-631e03e2.0 → 1.2.3
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 +9 -0
- package/dist/cjs/components/Products/Products.js +2 -2
- package/dist/cjs/components/Products/helperComponents/ServiceLight/styles.module.css +0 -1
- package/dist/esm/components/Products/Products.js +2 -2
- package/dist/esm/components/Products/helperComponents/ServiceLight/styles.module.css +0 -1
- package/package.json +3 -3
- package/src/components/Products/Products.tsx +3 -3
- package/src/components/Products/helperComponents/ServiceLight/styles.module.scss +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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.2.3 (2026-04-27)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@cloud-ru/uikit-product-icons@17.3.0]($PUBLIC_PROJECT_URL/blob/master/packages/icons/CHANGELOG.md)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## 1.2.2 (2026-04-03)
|
|
7
16
|
|
|
8
17
|
### Only dependencies have been changed
|
|
@@ -9,6 +9,6 @@ const typography_1 = require("@snack-uikit/typography");
|
|
|
9
9
|
const helperComponents_1 = require("./helperComponents");
|
|
10
10
|
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
11
11
|
function Products(props) {
|
|
12
|
-
const { layoutType, products
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.products, "data-layout-type": layoutType, children: [products.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typography.SansTitleM, { className: styles_module_scss_1.default.label, tag: 'span', children: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044B:" }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.tags, "data-layout-type": layoutType, "data-test-id": 'article-products', children: products.map(item => ((0, jsx_runtime_1.jsx)(helperComponents_1.ServiceLight, Object.assign({}, item), item.name))) })] })), solutions.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typography.SansTitleM, { className: styles_module_scss_1.default.label, tag: 'span', children: "\u0420\u0435\u0448\u0435\u043D\u0438\u044F:" }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.tags, "data-layout-type": layoutType, "data-test-id": 'article-solutions', children: solutions.map(item => ((0, jsx_runtime_1.jsx)(helperComponents_1.ServiceLight, Object.assign({}, item), item.name))) })] }))] }));
|
|
12
|
+
const { layoutType, products, solutions } = props;
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.products, "data-layout-type": layoutType, children: [(products === null || products === void 0 ? void 0 : products.length) && products.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typography.SansTitleM, { className: styles_module_scss_1.default.label, tag: 'span', children: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044B:" }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.tags, "data-layout-type": layoutType, "data-test-id": 'article-products', children: products.map(item => ((0, jsx_runtime_1.jsx)(helperComponents_1.ServiceLight, Object.assign({}, item), item.name))) })] })), (solutions === null || solutions === void 0 ? void 0 : solutions.length) && solutions.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typography.SansTitleM, { className: styles_module_scss_1.default.label, tag: 'span', children: "\u0420\u0435\u0448\u0435\u043D\u0438\u044F:" }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.tags, "data-layout-type": layoutType, "data-test-id": 'article-solutions', children: solutions.map(item => ((0, jsx_runtime_1.jsx)(helperComponents_1.ServiceLight, Object.assign({}, item), item.name))) })] }))] }));
|
|
14
14
|
}
|
|
@@ -3,6 +3,6 @@ import { Typography } from '@snack-uikit/typography';
|
|
|
3
3
|
import { ServiceLight } from './helperComponents';
|
|
4
4
|
import styles from './styles.module.css';
|
|
5
5
|
export function Products(props) {
|
|
6
|
-
const { layoutType, products
|
|
7
|
-
return (_jsxs("div", { className: styles.products, "data-layout-type": layoutType, children: [products.length > 0 && (_jsxs("div", { children: [_jsx(Typography.SansTitleM, { className: styles.label, tag: 'span', children: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044B:" }), _jsx("div", { className: styles.tags, "data-layout-type": layoutType, "data-test-id": 'article-products', children: products.map(item => (_jsx(ServiceLight, Object.assign({}, item), item.name))) })] })), solutions.length > 0 && (_jsxs("div", { children: [_jsx(Typography.SansTitleM, { className: styles.label, tag: 'span', children: "\u0420\u0435\u0448\u0435\u043D\u0438\u044F:" }), _jsx("div", { className: styles.tags, "data-layout-type": layoutType, "data-test-id": 'article-solutions', children: solutions.map(item => (_jsx(ServiceLight, Object.assign({}, item), item.name))) })] }))] }));
|
|
6
|
+
const { layoutType, products, solutions } = props;
|
|
7
|
+
return (_jsxs("div", { className: styles.products, "data-layout-type": layoutType, children: [(products === null || products === void 0 ? void 0 : products.length) && products.length > 0 && (_jsxs("div", { children: [_jsx(Typography.SansTitleM, { className: styles.label, tag: 'span', children: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044B:" }), _jsx("div", { className: styles.tags, "data-layout-type": layoutType, "data-test-id": 'article-products', children: products.map(item => (_jsx(ServiceLight, Object.assign({}, item), item.name))) })] })), (solutions === null || solutions === void 0 ? void 0 : solutions.length) && solutions.length > 0 && (_jsxs("div", { children: [_jsx(Typography.SansTitleM, { className: styles.label, tag: 'span', children: "\u0420\u0435\u0448\u0435\u043D\u0438\u044F:" }), _jsx("div", { className: styles.tags, "data-layout-type": layoutType, "data-test-id": 'article-solutions', children: solutions.map(item => (_jsx(ServiceLight, Object.assign({}, item), item.name))) })] }))] }));
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-site-article",
|
|
3
3
|
"title": "Site Article",
|
|
4
|
-
"version": "1.2.3
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@cloud-ru/uikit-product-icons": "17.
|
|
39
|
+
"@cloud-ru/uikit-product-icons": "17.3.0",
|
|
40
40
|
"@cloud-ru/uikit-product-utils": "9.1.0",
|
|
41
41
|
"@snack-uikit/button": "0.19.16",
|
|
42
42
|
"@snack-uikit/list": "0.32.17",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@snack-uikit/utils": "4.0.0",
|
|
45
45
|
"classnames": "2.5.1"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "849cdd305b21bc8fea872e8645014d7fc4d3b2d6"
|
|
48
48
|
}
|
|
@@ -19,11 +19,11 @@ export type ProductsProps = WithLayoutType<{
|
|
|
19
19
|
}>;
|
|
20
20
|
|
|
21
21
|
export function Products(props: ProductsProps) {
|
|
22
|
-
const { layoutType, products
|
|
22
|
+
const { layoutType, products, solutions } = props;
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<div className={styles.products} data-layout-type={layoutType}>
|
|
26
|
-
{products.length > 0 && (
|
|
26
|
+
{products?.length && products.length > 0 && (
|
|
27
27
|
<div>
|
|
28
28
|
<Typography.SansTitleM className={styles.label} tag='span'>
|
|
29
29
|
Подключенные сервисы:
|
|
@@ -35,7 +35,7 @@ export function Products(props: ProductsProps) {
|
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
)}
|
|
38
|
-
{solutions.length > 0 && (
|
|
38
|
+
{solutions?.length && solutions.length > 0 && (
|
|
39
39
|
<div>
|
|
40
40
|
<Typography.SansTitleM className={styles.label} tag='span'>
|
|
41
41
|
Решения:
|