@cloud-ru/uikit-product-site-cards 1.2.2 → 1.3.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 +20 -0
- package/dist/cjs/components/CardBasic/CardBasic.js +1 -3
- package/dist/cjs/components/CardBasic/styles.module.css +0 -8
- package/dist/esm/components/CardBasic/CardBasic.js +1 -3
- package/dist/esm/components/CardBasic/styles.module.css +0 -8
- package/package.json +3 -3
- package/src/components/CardBasic/CardBasic.tsx +1 -6
- package/src/components/CardBasic/styles.module.scss +0 -10
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
|
+
## 1.3.1 (2026-06-15)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@cloud-ru/uikit-product-icons@17.5.0]($PUBLIC_PROJECT_URL/blob/master/packages/icons/CHANGELOG.md)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# 1.3.0 (2026-06-08)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **SITE-11443:** fix card basic ([60a7688](https://github.com/cloud-ru-tech/uikit-product/commit/60a7688d204f398c92cb7df88f51c91adca2fda5))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## 1.2.2 (2026-06-05)
|
|
7
27
|
|
|
8
28
|
### Only dependencies have been changed
|
|
@@ -26,7 +26,5 @@ const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
|
26
26
|
const utils_2 = require("./utils");
|
|
27
27
|
function CardBasic(_a) {
|
|
28
28
|
var { title, description, className, icon, layoutType, 'data-test-id': dataTestId = 'card-basic' } = _a, rest = __rest(_a, ["title", "description", "className", "icon", "layoutType", 'data-test-id']);
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, (0, uikit_product_utils_1.extractSupportProps)(rest), { "data-layout-type": layoutType, className: (0, classnames_1.default)(styles_module_scss_1.default.wrapper, className), "data-test-id": dataTestId, "data-direction-column": (icon === null || icon === void 0 ? void 0 : icon.position) || undefined, children: [icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: icon, size: (0, utils_2.getIconSize)(layoutType), "data-test-id": `${dataTestId}__icon` }), (0, jsx_runtime_1.jsxs)("div", { className: (0,
|
|
30
|
-
[styles_module_scss_1.default.isEmptyDescription]: !description,
|
|
31
|
-
}), "data-test-id": `${dataTestId}__content`, children: [(0, jsx_runtime_1.jsx)(typography_1.Typography, { tag: 'h3', family: 'sans', purpose: 'title', size: (0, utils_1.getTypographySize)(layoutType), "data-test-id": `${dataTestId}__title`, className: styles_module_scss_1.default.title, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { richText: title }) }), description && ((0, jsx_runtime_1.jsx)(typography_1.Typography, { tag: 'div', family: 'sans', purpose: 'body', size: (0, utils_1.getTypographySize)(layoutType), "data-test-id": `${dataTestId}__description`, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { className: styles_module_scss_1.default.description, richText: description }) }))] })] })));
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, (0, uikit_product_utils_1.extractSupportProps)(rest), { "data-layout-type": layoutType, className: (0, classnames_1.default)(styles_module_scss_1.default.wrapper, className), "data-test-id": dataTestId, "data-direction-column": (icon === null || icon === void 0 ? void 0 : icon.position) || undefined, children: [icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: icon, size: (0, utils_2.getIconSize)(layoutType), "data-test-id": `${dataTestId}__icon` }), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.content, "data-test-id": `${dataTestId}__content`, children: [(0, jsx_runtime_1.jsx)(typography_1.Typography, { tag: 'h3', family: 'sans', purpose: 'title', size: (0, utils_1.getTypographySize)(layoutType), "data-test-id": `${dataTestId}__title`, className: styles_module_scss_1.default.title, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { richText: title }) }), description && ((0, jsx_runtime_1.jsx)(typography_1.Typography, { tag: 'div', family: 'sans', purpose: 'body', size: (0, utils_1.getTypographySize)(layoutType), "data-test-id": `${dataTestId}__description`, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { className: styles_module_scss_1.default.description, richText: description }) }))] })] })));
|
|
32
30
|
}
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
.wrapper .content .description{
|
|
17
17
|
color:var(--sys-neutral-text-support, #656774);
|
|
18
18
|
}
|
|
19
|
-
.wrapper .isEmptyDescription{
|
|
20
|
-
align-items:center;
|
|
21
|
-
justify-content:center;
|
|
22
|
-
}
|
|
23
19
|
.wrapper[data-layout-type=tablet], .wrapper[data-layout-type=mobile]{
|
|
24
20
|
flex-direction:column;
|
|
25
21
|
gap:var(--dimension-1m, 8px);
|
|
@@ -27,10 +23,6 @@
|
|
|
27
23
|
.wrapper[data-layout-type=tablet] .content, .wrapper[data-layout-type=mobile] .content{
|
|
28
24
|
gap:var(--dimension-050m, 4px);
|
|
29
25
|
}
|
|
30
|
-
.wrapper[data-layout-type=tablet] .isEmptyDescription, .wrapper[data-layout-type=mobile] .isEmptyDescription{
|
|
31
|
-
align-items:stretch;
|
|
32
|
-
justify-content:normal;
|
|
33
|
-
}
|
|
34
26
|
.wrapper[data-direction-column=top]{
|
|
35
27
|
flex-direction:column;
|
|
36
28
|
gap:var(--dimension-1m, 8px);
|
|
@@ -20,7 +20,5 @@ import styles from './styles.module.css';
|
|
|
20
20
|
import { getIconSize } from './utils';
|
|
21
21
|
export function CardBasic(_a) {
|
|
22
22
|
var { title, description, className, icon, layoutType, 'data-test-id': dataTestId = 'card-basic' } = _a, rest = __rest(_a, ["title", "description", "className", "icon", "layoutType", 'data-test-id']);
|
|
23
|
-
return (_jsxs("div", Object.assign({}, extractSupportProps(rest), { "data-layout-type": layoutType, className: cn(styles.wrapper, className), "data-test-id": dataTestId, "data-direction-column": (icon === null || icon === void 0 ? void 0 : icon.position) || undefined, children: [icon && _jsx(Icon, { icon: icon, size: getIconSize(layoutType), "data-test-id": `${dataTestId}__icon` }), _jsxs("div", { className:
|
|
24
|
-
[styles.isEmptyDescription]: !description,
|
|
25
|
-
}), "data-test-id": `${dataTestId}__content`, children: [_jsx(Typography, { tag: 'h3', family: 'sans', purpose: 'title', size: getTypographySize(layoutType), "data-test-id": `${dataTestId}__title`, className: styles.title, children: _jsx(RichText, { richText: title }) }), description && (_jsx(Typography, { tag: 'div', family: 'sans', purpose: 'body', size: getTypographySize(layoutType), "data-test-id": `${dataTestId}__description`, children: _jsx(RichText, { className: styles.description, richText: description }) }))] })] })));
|
|
23
|
+
return (_jsxs("div", Object.assign({}, extractSupportProps(rest), { "data-layout-type": layoutType, className: cn(styles.wrapper, className), "data-test-id": dataTestId, "data-direction-column": (icon === null || icon === void 0 ? void 0 : icon.position) || undefined, children: [icon && _jsx(Icon, { icon: icon, size: getIconSize(layoutType), "data-test-id": `${dataTestId}__icon` }), _jsxs("div", { className: styles.content, "data-test-id": `${dataTestId}__content`, children: [_jsx(Typography, { tag: 'h3', family: 'sans', purpose: 'title', size: getTypographySize(layoutType), "data-test-id": `${dataTestId}__title`, className: styles.title, children: _jsx(RichText, { richText: title }) }), description && (_jsx(Typography, { tag: 'div', family: 'sans', purpose: 'body', size: getTypographySize(layoutType), "data-test-id": `${dataTestId}__description`, children: _jsx(RichText, { className: styles.description, richText: description }) }))] })] })));
|
|
26
24
|
}
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
.wrapper .content .description{
|
|
17
17
|
color:var(--sys-neutral-text-support, #656774);
|
|
18
18
|
}
|
|
19
|
-
.wrapper .isEmptyDescription{
|
|
20
|
-
align-items:center;
|
|
21
|
-
justify-content:center;
|
|
22
|
-
}
|
|
23
19
|
.wrapper[data-layout-type=tablet], .wrapper[data-layout-type=mobile]{
|
|
24
20
|
flex-direction:column;
|
|
25
21
|
gap:var(--dimension-1m, 8px);
|
|
@@ -27,10 +23,6 @@
|
|
|
27
23
|
.wrapper[data-layout-type=tablet] .content, .wrapper[data-layout-type=mobile] .content{
|
|
28
24
|
gap:var(--dimension-050m, 4px);
|
|
29
25
|
}
|
|
30
|
-
.wrapper[data-layout-type=tablet] .isEmptyDescription, .wrapper[data-layout-type=mobile] .isEmptyDescription{
|
|
31
|
-
align-items:stretch;
|
|
32
|
-
justify-content:normal;
|
|
33
|
-
}
|
|
34
26
|
.wrapper[data-direction-column=top]{
|
|
35
27
|
flex-direction:column;
|
|
36
28
|
gap:var(--dimension-1m, 8px);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-site-cards",
|
|
3
3
|
"title": "Site Cards",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.1",
|
|
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.5.0",
|
|
40
40
|
"@cloud-ru/uikit-product-site-rich-text": "1.1.3",
|
|
41
41
|
"@cloud-ru/uikit-product-site-tag": "1.1.5",
|
|
42
42
|
"@cloud-ru/uikit-product-utils": "9.1.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"@snack-uikit/typography": "0.8.4",
|
|
48
48
|
"classnames": "2.5.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "82c3199da1b9ed2c30651169a39e0848d2b8a519"
|
|
51
51
|
}
|
|
@@ -41,12 +41,7 @@ export function CardBasic({
|
|
|
41
41
|
>
|
|
42
42
|
{icon && <Icon icon={icon} size={getIconSize(layoutType)} data-test-id={`${dataTestId}__icon`} />}
|
|
43
43
|
|
|
44
|
-
<div
|
|
45
|
-
className={cn(styles.content, {
|
|
46
|
-
[styles.isEmptyDescription]: !description,
|
|
47
|
-
})}
|
|
48
|
-
data-test-id={`${dataTestId}__content`}
|
|
49
|
-
>
|
|
44
|
+
<div className={styles.content} data-test-id={`${dataTestId}__content`}>
|
|
50
45
|
<Typography
|
|
51
46
|
tag='h3'
|
|
52
47
|
family='sans'
|
|
@@ -23,11 +23,6 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.isEmptyDescription {
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
26
|
&[data-layout-type='tablet'],
|
|
32
27
|
&[data-layout-type='mobile'] {
|
|
33
28
|
flex-direction: column;
|
|
@@ -36,11 +31,6 @@
|
|
|
36
31
|
.content {
|
|
37
32
|
gap: ste.$dimension-050m;
|
|
38
33
|
}
|
|
39
|
-
|
|
40
|
-
.isEmptyDescription {
|
|
41
|
-
align-items: stretch;
|
|
42
|
-
justify-content: normal;
|
|
43
|
-
}
|
|
44
34
|
}
|
|
45
35
|
|
|
46
36
|
&[data-direction-column='top'] {
|