@cloud-ru/ds-uikit-product-notification 2.0.13 → 2.0.14-preview-a2208aeb.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/dist/cjs/components/NotificationCard/styles.module.css +21 -10
- package/dist/cjs/components/NotificationPanel/components/NotificationCardStack/styles.module.css +1 -0
- package/dist/cjs/components/NotificationPanel/components/NotificationPanelGroup/styles.module.css +4 -3
- package/dist/cjs/components/NotificationPanel/helperComponents/StackTail/styles.module.css +5 -4
- package/dist/cjs/components/NotificationPanel/styles.module.css +5 -1
- package/dist/cjs/style.css +36 -18
- package/dist/esm/components/NotificationCard/styles.module.css +21 -10
- package/dist/esm/components/NotificationPanel/components/NotificationCardStack/styles.module.css +1 -0
- package/dist/esm/components/NotificationPanel/components/NotificationPanelGroup/styles.module.css +4 -3
- package/dist/esm/components/NotificationPanel/helperComponents/StackTail/styles.module.css +5 -4
- package/dist/esm/components/NotificationPanel/styles.module.css +5 -1
- package/dist/esm/style.css +36 -18
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/src/components/NotificationCard/styles.module.scss +19 -5
- package/src/components/NotificationPanel/components/NotificationCardStack/styles.module.scss +3 -0
- package/src/components/NotificationPanel/components/NotificationPanelGroup/styles.module.scss +2 -1
- package/src/components/NotificationPanel/helperComponents/StackTail/styles.module.scss +4 -4
- package/src/components/NotificationPanel/styles.module.scss +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/ds-uikit-product-notification",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14-preview-a2208aeb.0",
|
|
4
4
|
"description": "Пакет уведомлений — карточка NotificationCard, лента NotificationPanelContent со стеками и группами и адаптивная обёртка NotificationPanel (drawer на desktop, bottom-sheet на mobile).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@cloud-ru/ds-adaptive": "
|
|
38
|
-
"@cloud-ru/ds-button": "
|
|
39
|
-
"@cloud-ru/ds-
|
|
40
|
-
"@cloud-ru/ds-info-block": "
|
|
41
|
-
"@cloud-ru/ds-
|
|
42
|
-
"@cloud-ru/ds-
|
|
43
|
-
"@cloud-ru/ds-
|
|
44
|
-
"@cloud-ru/ds-list": "
|
|
45
|
-
"@cloud-ru/ds-
|
|
46
|
-
"@cloud-ru/ds-
|
|
47
|
-
"@cloud-ru/ds-
|
|
48
|
-
"@cloud-ru/ds-
|
|
49
|
-
"@cloud-ru/ds-
|
|
50
|
-
"@cloud-ru/ds-
|
|
51
|
-
"@cloud-ru/ds-
|
|
52
|
-
"@cloud-ru/ds-
|
|
53
|
-
"@cloud-ru/ds-
|
|
54
|
-
"@cloud-ru/ds-
|
|
37
|
+
"@cloud-ru/ds-adaptive": "1.0.1",
|
|
38
|
+
"@cloud-ru/ds-button": "1.0.3-preview-a2208aeb.0",
|
|
39
|
+
"@cloud-ru/ds-chips": "1.0.20-preview-a2208aeb.0",
|
|
40
|
+
"@cloud-ru/ds-info-block": "1.0.2-preview-a2208aeb.0",
|
|
41
|
+
"@cloud-ru/ds-icons": "1.2.1-preview-a2208aeb.0",
|
|
42
|
+
"@cloud-ru/ds-link": "1.0.6-preview-a2208aeb.0",
|
|
43
|
+
"@cloud-ru/ds-drawer": "1.2.2-preview-a2208aeb.0",
|
|
44
|
+
"@cloud-ru/ds-list": "2.2.1-preview-a2208aeb.0",
|
|
45
|
+
"@cloud-ru/ds-materials": "1.0.2-preview-a2208aeb.0",
|
|
46
|
+
"@cloud-ru/ds-scroll": "1.0.3-preview-a2208aeb.0",
|
|
47
|
+
"@cloud-ru/ds-segment-control": "1.0.7-preview-a2208aeb.0",
|
|
48
|
+
"@cloud-ru/ds-skeleton": "1.0.1",
|
|
49
|
+
"@cloud-ru/ds-status": "1.1.2-preview-a2208aeb.0",
|
|
50
|
+
"@cloud-ru/ds-tag": "1.1.3-preview-a2208aeb.0",
|
|
51
|
+
"@cloud-ru/ds-truncate-string": "1.0.6-preview-a2208aeb.0",
|
|
52
|
+
"@cloud-ru/ds-tooltip": "1.0.6-preview-a2208aeb.0",
|
|
53
|
+
"@cloud-ru/ds-typography": "1.0.0",
|
|
54
|
+
"@cloud-ru/ds-utils": "1.1.0"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
@@ -25,7 +25,7 @@ $appearance-unread-bg: (
|
|
|
25
25
|
align-items: center;
|
|
26
26
|
justify-content: center;
|
|
27
27
|
|
|
28
|
-
width: base.$sn-density-
|
|
28
|
+
width: base.$sn-density-icon-xs;
|
|
29
29
|
height: base.$sn-primitive-dimension-20;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -48,8 +48,8 @@ $appearance-unread-bg: (
|
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
gap: base.$sn-primitive-dimension-8;
|
|
50
50
|
|
|
51
|
+
box-sizing: border-box;
|
|
51
52
|
padding: base.$sn-primitive-dimension-12;
|
|
52
|
-
border: base.$sn-primitive-strokeWeight-strokeRegular solid base.$sn-theme-color-available-borderColor;
|
|
53
53
|
border-radius: base.$sn-density-radius-2xs;
|
|
54
54
|
|
|
55
55
|
background-color: transparent;
|
|
@@ -57,6 +57,18 @@ $appearance-unread-bg: (
|
|
|
57
57
|
|
|
58
58
|
@include m.has-state-layer-as-child(#{stateLayer});
|
|
59
59
|
|
|
60
|
+
// Рамка в мастере — наложение поверх бокса: не сдвигает контент и абсолютные слоты.
|
|
61
|
+
&::after {
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
content: '';
|
|
64
|
+
|
|
65
|
+
position: absolute;
|
|
66
|
+
inset: 0;
|
|
67
|
+
|
|
68
|
+
border: base.$sn-primitive-strokeWeight-strokeRegular solid base.$sn-theme-color-available-borderColor;
|
|
69
|
+
border-radius: inherit;
|
|
70
|
+
}
|
|
71
|
+
|
|
60
72
|
&[data-clickable] {
|
|
61
73
|
cursor: pointer;
|
|
62
74
|
}
|
|
@@ -105,6 +117,10 @@ $appearance-unread-bg: (
|
|
|
105
117
|
flex: 1 1 auto;
|
|
106
118
|
min-width: 0;
|
|
107
119
|
color: base.$sn-theme-color-available-version-textMain;
|
|
120
|
+
|
|
121
|
+
.notificationCard[data-appearance='error'] & {
|
|
122
|
+
color: base.$sn-theme-color-red-text;
|
|
123
|
+
}
|
|
108
124
|
}
|
|
109
125
|
|
|
110
126
|
.notificationCardContent {
|
|
@@ -129,9 +145,7 @@ $appearance-unread-bg: (
|
|
|
129
145
|
.notificationCardDate {
|
|
130
146
|
display: flex;
|
|
131
147
|
flex: 1 1 auto;
|
|
132
|
-
//
|
|
133
|
-
// `sn.primitive.dimension.4`. Коллекция `notification` пока не выгружена в
|
|
134
|
-
// `@cloud-ru/ds-figma-variables`, поэтому ссылаемся на примитив напрямую.
|
|
148
|
+
// `notification/anatomy/*` ссылается на удалённую коллекцию — берём примитив с тем же значением.
|
|
135
149
|
gap: base.$sn-primitive-dimension-4;
|
|
136
150
|
align-items: center;
|
|
137
151
|
justify-content: flex-end;
|
package/src/components/NotificationPanel/components/NotificationPanelGroup/styles.module.scss
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
gap: base.$sn-primitive-dimension-8;
|
|
7
|
+
box-sizing: border-box;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.title {
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
|
|
12
13
|
position: sticky;
|
|
13
14
|
z-index: 1;
|
|
14
|
-
top:
|
|
15
|
+
top: 0;
|
|
15
16
|
|
|
16
17
|
display: flex;
|
|
17
18
|
justify-content: center;
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
// реальные карточки стопки выезжают на его место.
|
|
5
5
|
$halfDuration: calc(var(--snack-notification-stack-animation-duration) / 2);
|
|
6
6
|
|
|
7
|
-
// Обе величины — параметры анимации, а не размеры из
|
|
8
|
-
// нет и быть не должно.
|
|
7
|
+
// Обе величины — параметры анимации, а не размеры из макета; собраны из примитивов (200 и 416).
|
|
9
8
|
// `$tail-card-height` — высота заглушки под клип: наружу торчит только нижняя кромка
|
|
10
9
|
// в 4px, остальное срезает `overflow: hidden` родителя.
|
|
11
10
|
// `$tail-slide-distance` — насколько корешки уезжают вниз при раскрытии, пока по ним
|
|
12
11
|
// сверху выезжает реальная стопка. Значение с запасом перекрывает высоту двух карточек;
|
|
13
12
|
// к концу пути корешки уже полностью прозрачны, поэтому точность здесь не важна.
|
|
14
|
-
$tail-card-height:
|
|
15
|
-
$tail-slide-distance:
|
|
13
|
+
$tail-card-height: calc(5 * #{base.$sn-primitive-dimension-40});
|
|
14
|
+
$tail-slide-distance: calc(8 * #{base.$sn-primitive-dimension-52});
|
|
16
15
|
|
|
17
16
|
.container {
|
|
18
17
|
position: relative;
|
|
18
|
+
box-sizing: border-box;
|
|
19
19
|
height: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '@cloud-ru/ds-figma-variables/build/scss/styles/styles.module' as base;
|
|
2
2
|
|
|
3
3
|
.panel {
|
|
4
|
+
box-sizing: border-box;
|
|
4
5
|
background-color: base.$sn-theme-color-neutral-background1Level;
|
|
5
6
|
}
|
|
6
7
|
|
|
@@ -26,7 +27,11 @@
|
|
|
26
27
|
padding-top: base.$sn-primitive-dimension-12;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
&[data-mobile] {
|
|
31
|
+
padding-inline: base.$sn-primitive-dimension-12;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Сегменты в мобильном мастере растянуты на всю ширину слота.
|
|
30
35
|
&[data-mobile] > * {
|
|
31
36
|
flex: 1 1 auto;
|
|
32
37
|
min-width: 0;
|