@snack-uikit/notification 0.9.9 → 0.10.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 +20 -0
- package/dist/cjs/components/NotificationCard/components/NotificationCardSkeleton.js +16 -17
- package/dist/esm/components/NotificationCard/components/NotificationCardSkeleton.js +2 -3
- package/package.json +7 -7
- package/src/components/NotificationCard/components/NotificationCardSkeleton.tsx +7 -9
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.10.0 (2024-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **PDS-801:** use typography prop ([7982dbf](https://github.com/cloud-ru-tech/snack-uikit/commit/7982dbf1c203ab09c148f91eb96e148710fe9b05))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 0.9.10 (2024-11-26)
|
|
18
|
+
|
|
19
|
+
### Only dependencies have been changed
|
|
20
|
+
* [@snack-uikit/chips@0.22.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/chips/CHANGELOG.md)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## 0.9.9 (2024-11-19)
|
|
7
27
|
|
|
8
28
|
### Only dependencies have been changed
|
|
@@ -13,47 +13,46 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
13
13
|
const skeleton_1 = require("@snack-uikit/skeleton");
|
|
14
14
|
const constants_1 = require("../../NotificationPanel/constants");
|
|
15
15
|
const styles_module_scss_1 = __importDefault(require('../styles.module.css'));
|
|
16
|
-
const BORDER_RADIUS = 24;
|
|
17
16
|
function NotificationCardSkeleton() {
|
|
18
17
|
return (0, jsx_runtime_1.jsxs)("div", {
|
|
19
18
|
className: styles_module_scss_1.default.notificationCard,
|
|
20
19
|
"data-test-id": constants_1.TEST_IDS.skeleton,
|
|
21
20
|
"data-skeleton": true,
|
|
22
|
-
children: [(0, jsx_runtime_1.jsx)(skeleton_1.
|
|
21
|
+
children: [(0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, {
|
|
23
22
|
width: 140,
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
typography: 'label-s',
|
|
24
|
+
lines: 1
|
|
26
25
|
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
27
26
|
className: styles_module_scss_1.default.notificationCardTitle,
|
|
28
27
|
"data-center": true,
|
|
29
28
|
children: [(0, jsx_runtime_1.jsx)("div", {
|
|
30
29
|
className: styles_module_scss_1.default.notificationCardTitleIcon,
|
|
31
|
-
children: (0, jsx_runtime_1.jsx)(skeleton_1.
|
|
30
|
+
children: (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, {
|
|
32
31
|
width: 16,
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
typography: 'title-s',
|
|
33
|
+
lines: 1
|
|
35
34
|
})
|
|
36
|
-
}), (0, jsx_runtime_1.jsx)(skeleton_1.
|
|
35
|
+
}), (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, {
|
|
37
36
|
width: 140,
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
typography: 'title-s',
|
|
38
|
+
lines: 1
|
|
40
39
|
})]
|
|
41
40
|
}), (0, jsx_runtime_1.jsx)("div", {
|
|
42
41
|
className: styles_module_scss_1.default.notificationCardContent,
|
|
43
42
|
children: (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, {
|
|
44
43
|
lines: 3,
|
|
45
|
-
|
|
44
|
+
typography: 'body-s'
|
|
46
45
|
})
|
|
47
46
|
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
48
47
|
className: styles_module_scss_1.default.notificationCardFooter,
|
|
49
|
-
children: [(0, jsx_runtime_1.jsx)(skeleton_1.
|
|
48
|
+
children: [(0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, {
|
|
50
49
|
width: 140,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}), (0, jsx_runtime_1.jsx)(skeleton_1.
|
|
50
|
+
typography: 'body-s',
|
|
51
|
+
lines: 1
|
|
52
|
+
}), (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, {
|
|
54
53
|
width: 140,
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
typography: 'label-s',
|
|
55
|
+
lines: 1
|
|
57
56
|
})]
|
|
58
57
|
})]
|
|
59
58
|
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { SkeletonText } from '@snack-uikit/skeleton';
|
|
3
3
|
import { TEST_IDS } from '../../NotificationPanel/constants';
|
|
4
4
|
import styles from '../styles.module.css';
|
|
5
|
-
const BORDER_RADIUS = 24;
|
|
6
5
|
export function NotificationCardSkeleton() {
|
|
7
|
-
return (_jsxs("div", { className: styles.notificationCard, "data-test-id": TEST_IDS.skeleton, "data-skeleton": true, children: [_jsx(
|
|
6
|
+
return (_jsxs("div", { className: styles.notificationCard, "data-test-id": TEST_IDS.skeleton, "data-skeleton": true, children: [_jsx(SkeletonText, { width: 140, typography: 'label-s', lines: 1 }), _jsxs("div", { className: styles.notificationCardTitle, "data-center": true, children: [_jsx("div", { className: styles.notificationCardTitleIcon, children: _jsx(SkeletonText, { width: 16, typography: 'title-s', lines: 1 }) }), _jsx(SkeletonText, { width: 140, typography: 'title-s', lines: 1 })] }), _jsx("div", { className: styles.notificationCardContent, children: _jsx(SkeletonText, { lines: 3, typography: 'body-s' }) }), _jsxs("div", { className: styles.notificationCardFooter, children: [_jsx(SkeletonText, { width: 140, typography: 'body-s', lines: 1 }), _jsx(SkeletonText, { width: 140, typography: 'label-s', lines: 1 })] })] }));
|
|
8
7
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Notification",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.10.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@snack-uikit/button": "0.19.3",
|
|
40
|
-
"@snack-uikit/chips": "0.
|
|
40
|
+
"@snack-uikit/chips": "0.22.1",
|
|
41
41
|
"@snack-uikit/icons": "0.24.0",
|
|
42
|
-
"@snack-uikit/info-block": "0.6.
|
|
42
|
+
"@snack-uikit/info-block": "0.6.4",
|
|
43
43
|
"@snack-uikit/link": "0.15.1",
|
|
44
|
-
"@snack-uikit/list": "0.21.
|
|
44
|
+
"@snack-uikit/list": "0.21.8",
|
|
45
45
|
"@snack-uikit/popover-private": "0.14.1",
|
|
46
46
|
"@snack-uikit/scroll": "0.9.1",
|
|
47
|
-
"@snack-uikit/skeleton": "0.
|
|
47
|
+
"@snack-uikit/skeleton": "0.6.0",
|
|
48
48
|
"@snack-uikit/tag": "0.11.2",
|
|
49
49
|
"@snack-uikit/truncate-string": "0.6.1",
|
|
50
|
-
"@snack-uikit/typography": "0.8.
|
|
50
|
+
"@snack-uikit/typography": "0.8.2",
|
|
51
51
|
"@snack-uikit/utils": "3.5.0",
|
|
52
52
|
"classnames": "2.5.1"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "1410dd9ec77af1af24bec901cc9a7bf9aeac37ac"
|
|
55
55
|
}
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SkeletonText } from '@snack-uikit/skeleton';
|
|
2
2
|
|
|
3
3
|
import { TEST_IDS } from '../../NotificationPanel/constants';
|
|
4
4
|
import styles from '../styles.module.scss';
|
|
5
5
|
|
|
6
|
-
const BORDER_RADIUS = 24;
|
|
7
|
-
|
|
8
6
|
export function NotificationCardSkeleton() {
|
|
9
7
|
return (
|
|
10
8
|
<div className={styles.notificationCard} data-test-id={TEST_IDS.skeleton} data-skeleton={true}>
|
|
11
|
-
<
|
|
9
|
+
<SkeletonText width={140} typography='label-s' lines={1} />
|
|
12
10
|
|
|
13
11
|
<div className={styles.notificationCardTitle} data-center={true}>
|
|
14
12
|
<div className={styles.notificationCardTitleIcon}>
|
|
15
|
-
<
|
|
13
|
+
<SkeletonText width={16} typography='title-s' lines={1} />
|
|
16
14
|
</div>
|
|
17
|
-
<
|
|
15
|
+
<SkeletonText width={140} typography='title-s' lines={1} />
|
|
18
16
|
</div>
|
|
19
17
|
|
|
20
18
|
<div className={styles.notificationCardContent}>
|
|
21
|
-
<SkeletonText lines={3}
|
|
19
|
+
<SkeletonText lines={3} typography='body-s' />
|
|
22
20
|
</div>
|
|
23
21
|
|
|
24
22
|
<div className={styles.notificationCardFooter}>
|
|
25
|
-
<
|
|
26
|
-
<
|
|
23
|
+
<SkeletonText width={140} typography='body-s' lines={1} />
|
|
24
|
+
<SkeletonText width={140} typography='label-s' lines={1} />
|
|
27
25
|
</div>
|
|
28
26
|
</div>
|
|
29
27
|
);
|