@cloud-ru/ds-uikit-product-notification 2.0.7-preview-3a2dc99b.0 → 2.0.8
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 +10 -0
- package/dist/cjs/components/NotificationCard/NotificationCardSkeleton.js +1 -1
- package/dist/cjs/components/NotificationCard/styles.module.css +2 -3
- package/dist/cjs/components/NotificationPanel/components/NotificationCardStack/styles.module.css +2 -3
- package/dist/cjs/components/NotificationPanel/styles.module.css +3 -1
- package/dist/cjs/style.css +7 -7
- package/dist/esm/components/NotificationCard/NotificationCardSkeleton.js +1 -1
- package/dist/esm/components/NotificationCard/styles.module.css +2 -3
- package/dist/esm/components/NotificationPanel/components/NotificationCardStack/styles.module.css +2 -3
- package/dist/esm/components/NotificationPanel/styles.module.css +3 -1
- package/dist/esm/style.css +7 -7
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/src/components/NotificationCard/NotificationCardSkeleton.tsx +4 -4
- package/src/components/NotificationCard/styles.module.scss +5 -6
- package/src/components/NotificationPanel/components/NotificationCardStack/styles.module.scss +2 -3
- package/src/components/NotificationPanel/helperComponents/StackTail/styles.module.scss +7 -3
- package/src/components/NotificationPanel/styles.module.scss +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
## 2.0.8 (2026-09-10)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **FF-8873:** align notification styles with Figma master ([fb8d860](https://github.com/cloud-ru-tech/snack-v2/commit/fb8d860ad84cac7346e0035630882da739e38f40))
|
|
11
|
+
|
|
12
|
+
## 2.0.7 (2026-09-10)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @ds/uikit-product-notification
|
|
15
|
+
|
|
6
16
|
## 2.0.6 (2026-09-09)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
|
@@ -12,5 +12,5 @@ const constants_1 = require("../../constants");
|
|
|
12
12
|
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
13
13
|
/** Скелетон карточки уведомления для состояния загрузки */
|
|
14
14
|
function NotificationCardSkeleton({ className, ...rest } = {}) {
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.notificationCard, className), "data-test-id": constants_1.TEST_IDS.card.skeleton, ...(0, utils_1.extractSupportProps)(rest), children: [(0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { width: 140, variant: '
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.notificationCard, className), "data-test-id": constants_1.TEST_IDS.card.skeleton, ...(0, utils_1.extractSupportProps)(rest), children: [(0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { width: 140, variant: 'body', size: 's', lines: 1 }), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.notificationCardTitle, children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.notificationCardTitleIcon, children: (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { width: 16, variant: 'label', size: 'l', lines: 1 }) }), (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { width: 140, variant: 'label', size: 'l', lines: 1 })] }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.notificationCardContent, children: (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { lines: 3, variant: 'body', size: 's' }) }), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.notificationCardFooter, children: [(0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { width: 140, variant: 'body', size: 's', lines: 1 }), (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { width: 140, variant: 'body', size: 's', lines: 1 })] })] }));
|
|
16
16
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
.stateLayer{
|
|
3
3
|
pointer-events:none;
|
|
4
|
-
visibility:initial;
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
.notificationCardTitleIcon{
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
flex-shrink:0;
|
|
10
9
|
align-items:center;
|
|
11
10
|
justify-content:center;
|
|
12
|
-
width:var(--sn-primitive-dimension-
|
|
11
|
+
width:var(--sn-density-size-icon-xs, var(--sn-primitive-dimension-24, 24px));
|
|
13
12
|
height:var(--sn-primitive-dimension-20, 20px);
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -121,7 +120,7 @@
|
|
|
121
120
|
}
|
|
122
121
|
.notificationCard:focus-visible{
|
|
123
122
|
outline:var(--sn-primitive-strokeWeight-strokeSemiBold, 2px) solid var(--sn-theme-color-available-complementary, #000000);
|
|
124
|
-
outline-offset:
|
|
123
|
+
outline-offset:calc(-1 * var(--sn-primitive-strokeWeight-strokeSemiBold, 2px));
|
|
125
124
|
}
|
|
126
125
|
.notificationCard[data-droplist-open] .notificationCardFunction, .notificationCard:hover .notificationCardFunction, .notificationCard:focus-visible .notificationCardFunction, .notificationCard:has(:focus-visible) .notificationCardFunction{
|
|
127
126
|
pointer-events:auto;
|
package/dist/cjs/components/NotificationPanel/components/NotificationCardStack/styles.module.css
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
.right{
|
|
22
22
|
display:flex;
|
|
23
|
-
gap:var(--sn-primitive-dimension-4, 4px);
|
|
24
23
|
align-items:center;
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -57,8 +56,8 @@
|
|
|
57
56
|
scale:0.98;
|
|
58
57
|
display:flex;
|
|
59
58
|
flex-direction:column;
|
|
60
|
-
gap:var(--sn-primitive-dimension-
|
|
61
|
-
margin-top:var(--sn-primitive-dimension-
|
|
59
|
+
gap:var(--sn-primitive-dimension-4, 4px);
|
|
60
|
+
margin-top:var(--sn-primitive-dimension-4, 4px);
|
|
62
61
|
opacity:0;
|
|
63
62
|
transition:translate var(--snack-notification-stack-animation-duration), scale var(--snack-notification-stack-animation-duration), opacity var(--snack-notification-stack-animation-duration);
|
|
64
63
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
.headerActions{
|
|
6
6
|
display:flex;
|
|
7
7
|
flex:1 1 auto;
|
|
8
|
-
gap:var(--sn-primitive-dimension-8, 8px);
|
|
9
8
|
align-items:center;
|
|
10
9
|
justify-content:flex-end;
|
|
11
10
|
}
|
|
@@ -16,6 +15,9 @@
|
|
|
16
15
|
align-items:center;
|
|
17
16
|
justify-content:space-between;
|
|
18
17
|
}
|
|
18
|
+
.filtersRow:not([data-mobile]){
|
|
19
|
+
padding-top:var(--sn-primitive-dimension-12, 12px);
|
|
20
|
+
}
|
|
19
21
|
.filtersRow[data-mobile] > *{
|
|
20
22
|
flex:1 1 auto;
|
|
21
23
|
min-width:0;
|
package/dist/cjs/style.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
.stateLayer{
|
|
3
3
|
pointer-events:none;
|
|
4
|
-
visibility:initial;
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
.notificationCardTitleIcon{
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
flex-shrink:0;
|
|
10
9
|
align-items:center;
|
|
11
10
|
justify-content:center;
|
|
12
|
-
width:var(--sn-primitive-dimension-
|
|
11
|
+
width:var(--sn-density-size-icon-xs, var(--sn-primitive-dimension-24, 24px));
|
|
13
12
|
height:var(--sn-primitive-dimension-20, 20px);
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -121,7 +120,7 @@
|
|
|
121
120
|
}
|
|
122
121
|
.notificationCard:focus-visible{
|
|
123
122
|
outline:var(--sn-primitive-strokeWeight-strokeSemiBold, 2px) solid var(--sn-theme-color-available-complementary, #000000);
|
|
124
|
-
outline-offset:
|
|
123
|
+
outline-offset:calc(-1 * var(--sn-primitive-strokeWeight-strokeSemiBold, 2px));
|
|
125
124
|
}
|
|
126
125
|
.notificationCard[data-droplist-open] .notificationCardFunction, .notificationCard:hover .notificationCardFunction, .notificationCard:focus-visible .notificationCardFunction, .notificationCard:has(:focus-visible) .notificationCardFunction{
|
|
127
126
|
pointer-events:auto;
|
|
@@ -236,7 +235,6 @@
|
|
|
236
235
|
|
|
237
236
|
.right{
|
|
238
237
|
display:flex;
|
|
239
|
-
gap:var(--sn-primitive-dimension-4, 4px);
|
|
240
238
|
align-items:center;
|
|
241
239
|
}
|
|
242
240
|
|
|
@@ -273,8 +271,8 @@
|
|
|
273
271
|
scale:0.98;
|
|
274
272
|
display:flex;
|
|
275
273
|
flex-direction:column;
|
|
276
|
-
gap:var(--sn-primitive-dimension-
|
|
277
|
-
margin-top:var(--sn-primitive-dimension-
|
|
274
|
+
gap:var(--sn-primitive-dimension-4, 4px);
|
|
275
|
+
margin-top:var(--sn-primitive-dimension-4, 4px);
|
|
278
276
|
opacity:0;
|
|
279
277
|
transition:translate var(--snack-notification-stack-animation-duration), scale var(--snack-notification-stack-animation-duration), opacity var(--snack-notification-stack-animation-duration);
|
|
280
278
|
}
|
|
@@ -377,7 +375,6 @@
|
|
|
377
375
|
.headerActions{
|
|
378
376
|
display:flex;
|
|
379
377
|
flex:1 1 auto;
|
|
380
|
-
gap:var(--sn-primitive-dimension-8, 8px);
|
|
381
378
|
align-items:center;
|
|
382
379
|
justify-content:flex-end;
|
|
383
380
|
}
|
|
@@ -388,6 +385,9 @@
|
|
|
388
385
|
align-items:center;
|
|
389
386
|
justify-content:space-between;
|
|
390
387
|
}
|
|
388
|
+
.filtersRow:not([data-mobile]){
|
|
389
|
+
padding-top:var(--sn-primitive-dimension-12, 12px);
|
|
390
|
+
}
|
|
391
391
|
.filtersRow[data-mobile] > *{
|
|
392
392
|
flex:1 1 auto;
|
|
393
393
|
min-width:0;
|
|
@@ -6,5 +6,5 @@ import { TEST_IDS } from '../../constants.js';
|
|
|
6
6
|
import styles from './styles.module.css';
|
|
7
7
|
/** Скелетон карточки уведомления для состояния загрузки */
|
|
8
8
|
export function NotificationCardSkeleton({ className, ...rest } = {}) {
|
|
9
|
-
return (_jsxs("div", { className: cn(styles.notificationCard, className), "data-test-id": TEST_IDS.card.skeleton, ...extractSupportProps(rest), children: [_jsx(SkeletonText, { width: 140, variant: '
|
|
9
|
+
return (_jsxs("div", { className: cn(styles.notificationCard, className), "data-test-id": TEST_IDS.card.skeleton, ...extractSupportProps(rest), children: [_jsx(SkeletonText, { width: 140, variant: 'body', size: 's', lines: 1 }), _jsxs("div", { className: styles.notificationCardTitle, children: [_jsx("div", { className: styles.notificationCardTitleIcon, children: _jsx(SkeletonText, { width: 16, variant: 'label', size: 'l', lines: 1 }) }), _jsx(SkeletonText, { width: 140, variant: 'label', size: 'l', lines: 1 })] }), _jsx("div", { className: styles.notificationCardContent, children: _jsx(SkeletonText, { lines: 3, variant: 'body', size: 's' }) }), _jsxs("div", { className: styles.notificationCardFooter, children: [_jsx(SkeletonText, { width: 140, variant: 'body', size: 's', lines: 1 }), _jsx(SkeletonText, { width: 140, variant: 'body', size: 's', lines: 1 })] })] }));
|
|
10
10
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
.stateLayer{
|
|
3
3
|
pointer-events:none;
|
|
4
|
-
visibility:initial;
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
.notificationCardTitleIcon{
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
flex-shrink:0;
|
|
10
9
|
align-items:center;
|
|
11
10
|
justify-content:center;
|
|
12
|
-
width:var(--sn-primitive-dimension-
|
|
11
|
+
width:var(--sn-density-size-icon-xs, var(--sn-primitive-dimension-24, 24px));
|
|
13
12
|
height:var(--sn-primitive-dimension-20, 20px);
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -121,7 +120,7 @@
|
|
|
121
120
|
}
|
|
122
121
|
.notificationCard:focus-visible{
|
|
123
122
|
outline:var(--sn-primitive-strokeWeight-strokeSemiBold, 2px) solid var(--sn-theme-color-available-complementary, #000000);
|
|
124
|
-
outline-offset:
|
|
123
|
+
outline-offset:calc(-1 * var(--sn-primitive-strokeWeight-strokeSemiBold, 2px));
|
|
125
124
|
}
|
|
126
125
|
.notificationCard[data-droplist-open] .notificationCardFunction, .notificationCard:hover .notificationCardFunction, .notificationCard:focus-visible .notificationCardFunction, .notificationCard:has(:focus-visible) .notificationCardFunction{
|
|
127
126
|
pointer-events:auto;
|
package/dist/esm/components/NotificationPanel/components/NotificationCardStack/styles.module.css
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
.right{
|
|
22
22
|
display:flex;
|
|
23
|
-
gap:var(--sn-primitive-dimension-4, 4px);
|
|
24
23
|
align-items:center;
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -57,8 +56,8 @@
|
|
|
57
56
|
scale:0.98;
|
|
58
57
|
display:flex;
|
|
59
58
|
flex-direction:column;
|
|
60
|
-
gap:var(--sn-primitive-dimension-
|
|
61
|
-
margin-top:var(--sn-primitive-dimension-
|
|
59
|
+
gap:var(--sn-primitive-dimension-4, 4px);
|
|
60
|
+
margin-top:var(--sn-primitive-dimension-4, 4px);
|
|
62
61
|
opacity:0;
|
|
63
62
|
transition:translate var(--snack-notification-stack-animation-duration), scale var(--snack-notification-stack-animation-duration), opacity var(--snack-notification-stack-animation-duration);
|
|
64
63
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
.headerActions{
|
|
6
6
|
display:flex;
|
|
7
7
|
flex:1 1 auto;
|
|
8
|
-
gap:var(--sn-primitive-dimension-8, 8px);
|
|
9
8
|
align-items:center;
|
|
10
9
|
justify-content:flex-end;
|
|
11
10
|
}
|
|
@@ -16,6 +15,9 @@
|
|
|
16
15
|
align-items:center;
|
|
17
16
|
justify-content:space-between;
|
|
18
17
|
}
|
|
18
|
+
.filtersRow:not([data-mobile]){
|
|
19
|
+
padding-top:var(--sn-primitive-dimension-12, 12px);
|
|
20
|
+
}
|
|
19
21
|
.filtersRow[data-mobile] > *{
|
|
20
22
|
flex:1 1 auto;
|
|
21
23
|
min-width:0;
|
package/dist/esm/style.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
.stateLayer{
|
|
3
3
|
pointer-events:none;
|
|
4
|
-
visibility:initial;
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
.notificationCardTitleIcon{
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
flex-shrink:0;
|
|
10
9
|
align-items:center;
|
|
11
10
|
justify-content:center;
|
|
12
|
-
width:var(--sn-primitive-dimension-
|
|
11
|
+
width:var(--sn-density-size-icon-xs, var(--sn-primitive-dimension-24, 24px));
|
|
13
12
|
height:var(--sn-primitive-dimension-20, 20px);
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -121,7 +120,7 @@
|
|
|
121
120
|
}
|
|
122
121
|
.notificationCard:focus-visible{
|
|
123
122
|
outline:var(--sn-primitive-strokeWeight-strokeSemiBold, 2px) solid var(--sn-theme-color-available-complementary, #000000);
|
|
124
|
-
outline-offset:
|
|
123
|
+
outline-offset:calc(-1 * var(--sn-primitive-strokeWeight-strokeSemiBold, 2px));
|
|
125
124
|
}
|
|
126
125
|
.notificationCard[data-droplist-open] .notificationCardFunction, .notificationCard:hover .notificationCardFunction, .notificationCard:focus-visible .notificationCardFunction, .notificationCard:has(:focus-visible) .notificationCardFunction{
|
|
127
126
|
pointer-events:auto;
|
|
@@ -236,7 +235,6 @@
|
|
|
236
235
|
|
|
237
236
|
.right{
|
|
238
237
|
display:flex;
|
|
239
|
-
gap:var(--sn-primitive-dimension-4, 4px);
|
|
240
238
|
align-items:center;
|
|
241
239
|
}
|
|
242
240
|
|
|
@@ -273,8 +271,8 @@
|
|
|
273
271
|
scale:0.98;
|
|
274
272
|
display:flex;
|
|
275
273
|
flex-direction:column;
|
|
276
|
-
gap:var(--sn-primitive-dimension-
|
|
277
|
-
margin-top:var(--sn-primitive-dimension-
|
|
274
|
+
gap:var(--sn-primitive-dimension-4, 4px);
|
|
275
|
+
margin-top:var(--sn-primitive-dimension-4, 4px);
|
|
278
276
|
opacity:0;
|
|
279
277
|
transition:translate var(--snack-notification-stack-animation-duration), scale var(--snack-notification-stack-animation-duration), opacity var(--snack-notification-stack-animation-duration);
|
|
280
278
|
}
|
|
@@ -377,7 +375,6 @@
|
|
|
377
375
|
.headerActions{
|
|
378
376
|
display:flex;
|
|
379
377
|
flex:1 1 auto;
|
|
380
|
-
gap:var(--sn-primitive-dimension-8, 8px);
|
|
381
378
|
align-items:center;
|
|
382
379
|
justify-content:flex-end;
|
|
383
380
|
}
|
|
@@ -388,6 +385,9 @@
|
|
|
388
385
|
align-items:center;
|
|
389
386
|
justify-content:space-between;
|
|
390
387
|
}
|
|
388
|
+
.filtersRow:not([data-mobile]){
|
|
389
|
+
padding-top:var(--sn-primitive-dimension-12, 12px);
|
|
390
|
+
}
|
|
391
391
|
.filtersRow[data-mobile] > *{
|
|
392
392
|
flex:1 1 auto;
|
|
393
393
|
min-width:0;
|