@snack-uikit/card 0.9.1-preview-57c837e3.0 → 0.9.2
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/components/Card/Card.js +1 -1
- package/package.json +4 -4
- package/src/components/Card/Card.tsx +1 -1
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.9.2 (2024-01-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **FF-4183:** use div instead of span for typography wrapper ([6e92e7c](https://github.com/cloud-ru-tech/snack-uikit/commit/6e92e7c433ca985f3b8b74eac2acdbea3cea29ab))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 0.9.1 (2024-01-30)
|
|
18
|
+
|
|
19
|
+
### Only dependencies have been changed
|
|
20
|
+
* [@snack-uikit/list@0.1.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/list/CHANGELOG.md)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# 0.9.0 (2024-01-30)
|
|
7
27
|
|
|
8
28
|
|
|
@@ -31,5 +31,5 @@ export function Card(_a) {
|
|
|
31
31
|
}, [onClick]);
|
|
32
32
|
return (_jsx(CardContext.Provider, { value: { size, disabled }, children: _jsxs("div", Object.assign({ ref: localRef, className: cn(styles.card, className) }, extractSupportProps(rest), { onClick: onClick, "data-disabled": disabled || undefined, "data-checked": checked || undefined, "data-outline": outline || undefined, "data-pointer": onClick ? true : undefined,
|
|
33
33
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
34
|
-
tabIndex: 0, onKeyDown: onKeyDown, children: [image, promoBadge && _jsx(PromoBadge, { text: promoBadge }), _jsxs("div", { className: styles.composition, tabIndex: -1, children: [!disabled && functionBadge && (_jsx(FunctionBadgeWrapper, { className: styles.functionBadgeWrapper, children: functionBadge })), _jsx("div", { className: styles.contentWrapper, children: _jsxs("div", { className: styles.content, "data-size": size, children: [header || null, children && (_jsx(Typography, { family: 'sans', size: size, purpose: 'body', className: styles.body, children: children })), footer && _jsx("div", { className: styles.footer, children: footer })] }) })] }), !disabled && checked && multipleSelection && _jsx(Check, { className: styles.check })] })) }));
|
|
34
|
+
tabIndex: 0, onKeyDown: onKeyDown, children: [image, promoBadge && _jsx(PromoBadge, { text: promoBadge }), _jsxs("div", { className: styles.composition, tabIndex: -1, children: [!disabled && functionBadge && (_jsx(FunctionBadgeWrapper, { className: styles.functionBadgeWrapper, children: functionBadge })), _jsx("div", { className: styles.contentWrapper, children: _jsxs("div", { className: styles.content, "data-size": size, children: [header || null, children && (_jsx(Typography, { family: 'sans', size: size, purpose: 'body', className: styles.body, tag: 'div', children: children })), footer && _jsx("div", { className: styles.footer, children: footer })] }) })] }), !disabled && checked && multipleSelection && _jsx(Check, { className: styles.check })] })) }));
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Card",
|
|
7
|
-
"version": "0.9.
|
|
7
|
+
"version": "0.9.2",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"@snack-uikit/button": "0.15.1",
|
|
36
36
|
"@snack-uikit/icon-predefined": "0.4.1",
|
|
37
37
|
"@snack-uikit/icons": "0.20.0",
|
|
38
|
-
"@snack-uikit/list": "0.1.
|
|
38
|
+
"@snack-uikit/list": "0.1.2",
|
|
39
39
|
"@snack-uikit/promo-tag": "0.4.1",
|
|
40
|
-
"@snack-uikit/tag": "0.
|
|
40
|
+
"@snack-uikit/tag": "0.7.0",
|
|
41
41
|
"@snack-uikit/truncate-string": "0.4.5",
|
|
42
42
|
"@snack-uikit/typography": "0.6.1",
|
|
43
43
|
"@snack-uikit/utils": "3.2.0",
|
|
44
44
|
"classnames": "2.3.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "029bc819dd13f9006b9ad584fb56454517a2077d"
|
|
47
47
|
}
|
|
@@ -100,7 +100,7 @@ export function Card({
|
|
|
100
100
|
{header || null}
|
|
101
101
|
|
|
102
102
|
{children && (
|
|
103
|
-
<Typography family='sans' size={size} purpose='body' className={styles.body}>
|
|
103
|
+
<Typography family='sans' size={size} purpose='body' className={styles.body} tag='div'>
|
|
104
104
|
{children}
|
|
105
105
|
</Typography>
|
|
106
106
|
)}
|