@snack-uikit/notification 0.8.0 → 0.9.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 +25 -0
- package/dist/cjs/components/NotificationPanel/styles.module.css +2 -2
- package/dist/esm/components/NotificationPanel/styles.module.css +2 -2
- package/package.json +13 -13
- package/src/components/NotificationCard/styles.module.scss +25 -25
- package/src/components/NotificationPanel/components/NotificationPanelBlank/styles.module.scss +2 -3
- package/src/components/NotificationPanel/components/NotificationPanelDivider/styles.module.scss +4 -4
- package/src/components/NotificationPanel/styles.module.scss +24 -23
- package/src/components/NotificationPanelPopover/styles.module.scss +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,31 @@
|
|
|
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.1 (2024-10-31)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/button@0.19.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/button/CHANGELOG.md)
|
|
10
|
+
* [@snack-uikit/chips@0.19.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/chips/CHANGELOG.md)
|
|
11
|
+
* [@snack-uikit/info-block@0.6.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/info-block/CHANGELOG.md)
|
|
12
|
+
* [@snack-uikit/list@0.21.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/list/CHANGELOG.md)
|
|
13
|
+
* [@snack-uikit/scroll@0.9.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/scroll/CHANGELOG.md)
|
|
14
|
+
* [@snack-uikit/tag@0.11.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/tag/CHANGELOG.md)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# 0.9.0 (2024-10-28)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **FF-5782:** sass use/forward approach ([3e53869](https://github.com/cloud-ru-tech/snack-uikit/commit/3e53869ace864a7718e434b7f410c15dbd911cd5))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
6
31
|
# 0.8.0 (2024-10-28)
|
|
7
32
|
|
|
8
33
|
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Notification",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.9.1",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"license": "Apache-2.0",
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@snack-uikit/button": "0.
|
|
40
|
-
"@snack-uikit/chips": "0.
|
|
41
|
-
"@snack-uikit/icons": "0.
|
|
42
|
-
"@snack-uikit/info-block": "0.
|
|
43
|
-
"@snack-uikit/link": "0.
|
|
44
|
-
"@snack-uikit/list": "0.
|
|
39
|
+
"@snack-uikit/button": "0.19.1",
|
|
40
|
+
"@snack-uikit/chips": "0.19.0",
|
|
41
|
+
"@snack-uikit/icons": "0.24.0",
|
|
42
|
+
"@snack-uikit/info-block": "0.6.1",
|
|
43
|
+
"@snack-uikit/link": "0.15.0",
|
|
44
|
+
"@snack-uikit/list": "0.21.0",
|
|
45
45
|
"@snack-uikit/popover-private": "0.14.0",
|
|
46
|
-
"@snack-uikit/scroll": "0.
|
|
47
|
-
"@snack-uikit/skeleton": "0.
|
|
48
|
-
"@snack-uikit/tag": "0.
|
|
49
|
-
"@snack-uikit/truncate-string": "0.
|
|
50
|
-
"@snack-uikit/typography": "0.
|
|
46
|
+
"@snack-uikit/scroll": "0.9.0",
|
|
47
|
+
"@snack-uikit/skeleton": "0.5.0",
|
|
48
|
+
"@snack-uikit/tag": "0.11.1",
|
|
49
|
+
"@snack-uikit/truncate-string": "0.6.0",
|
|
50
|
+
"@snack-uikit/typography": "0.8.0",
|
|
51
51
|
"@snack-uikit/utils": "3.5.0",
|
|
52
52
|
"classnames": "2.3.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "b7163c6f939105eb34cabec64c9e983ac7958c26"
|
|
55
55
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-notification-notificationCard';
|
|
2
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
3
3
|
|
|
4
4
|
.notificationCardFunction {
|
|
5
|
-
@include composite-var(
|
|
5
|
+
@include styles-tokens-notification-notificationCard.composite-var(styles-tokens-notification-notificationCard.$notification-card-function-badge);
|
|
6
6
|
|
|
7
7
|
pointer-events: none;
|
|
8
8
|
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
|
|
18
18
|
.notificationCardTitleText {
|
|
19
19
|
box-sizing: border-box;
|
|
20
|
-
color:
|
|
20
|
+
color: styles-tokens-notification-notificationCard.$sys-neutral-text-main;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.notificationCardTitleIcon {
|
|
24
|
-
@include composite-var(
|
|
24
|
+
@include styles-tokens-notification-notificationCard.composite-var(styles-tokens-notification-notificationCard.$notification-card-icon-type);
|
|
25
25
|
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: center;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.notificationCard {
|
|
33
|
-
@include composite-var(
|
|
33
|
+
@include styles-tokens-notification-notificationCard.composite-var(styles-tokens-notification-notificationCard.$notification-card-container);
|
|
34
34
|
|
|
35
35
|
position: relative;
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
max-width: 100%;
|
|
42
42
|
|
|
43
|
-
border-bottom-color:
|
|
43
|
+
border-bottom-color: styles-tokens-notification-notificationCard.$sys-neutral-decor-default;
|
|
44
44
|
border-bottom-style: solid;
|
|
45
45
|
|
|
46
46
|
&::before {
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
width: 100%;
|
|
56
|
-
height: calc(100% +
|
|
56
|
+
height: calc(100% + styles-tokens-notification-notificationCard.$border-width-notification-panel-card);
|
|
57
57
|
|
|
58
|
-
opacity:
|
|
58
|
+
opacity: styles-tokens-notification-notificationCard.$opacity-a004;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&:focus-visible {
|
|
62
|
-
@include outline-var(
|
|
62
|
+
@include styles-tokens-notification-notificationCard.outline-var(styles-tokens-element.$container-focused-s);
|
|
63
63
|
|
|
64
64
|
border-bottom-color: transparent;
|
|
65
|
-
outline-color:
|
|
65
|
+
outline-color: styles-tokens-notification-notificationCard.$sys-available-complementary;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&[data-droplist-open], &:hover, &:focus-visible, &:focus-within:not(:focus) {
|
|
69
69
|
&::before {
|
|
70
|
-
background-color:
|
|
70
|
+
background-color: styles-tokens-notification-notificationCard.$sys-neutral-accent-default;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.notificationCardFunction {
|
|
@@ -82,51 +82,51 @@
|
|
|
82
82
|
|
|
83
83
|
&[data-unread] {
|
|
84
84
|
&::before {
|
|
85
|
-
opacity:
|
|
86
|
-
background-color:
|
|
85
|
+
opacity: styles-tokens-notification-notificationCard.$opacity-a008;
|
|
86
|
+
background-color: styles-tokens-notification-notificationCard.$sys-neutral-accent-default;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&[data-droplist-open], &:hover, &:focus-visible, &:focus-within:not(:focus) {
|
|
90
90
|
&::before {
|
|
91
|
-
opacity:
|
|
91
|
+
opacity: styles-tokens-notification-notificationCard.$opacity-a004;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&[data-appearance='neutral'] {
|
|
97
97
|
.notificationCardTitleIcon {
|
|
98
|
-
color:
|
|
98
|
+
color: styles-tokens-notification-notificationCard.$sys-neutral-accent-default;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
&[data-appearance='error'],
|
|
103
103
|
&[data-appearance='errorCritical'] {
|
|
104
104
|
.notificationCardTitleIcon {
|
|
105
|
-
color:
|
|
105
|
+
color: styles-tokens-notification-notificationCard.$sys-red-accent-default;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
&[data-appearance='errorCritical'] {
|
|
110
110
|
&[data-unread], &[data-droplist-open], &:hover, &:focus-visible, &:focus-within:not(:focus) {
|
|
111
111
|
&::before {
|
|
112
|
-
background-color:
|
|
112
|
+
background-color: styles-tokens-notification-notificationCard.$sys-red-accent-default;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.notificationCardTitleText {
|
|
117
|
-
color:
|
|
117
|
+
color: styles-tokens-notification-notificationCard.$sys-red-accent-default;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&[data-appearance='warning'] {
|
|
122
122
|
.notificationCardTitleIcon {
|
|
123
|
-
color:
|
|
123
|
+
color: styles-tokens-notification-notificationCard.$sys-yellow-accent-default;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
&[data-appearance='success'] {
|
|
128
128
|
.notificationCardTitleIcon {
|
|
129
|
-
color:
|
|
129
|
+
color: styles-tokens-notification-notificationCard.$sys-green-accent-default;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -139,11 +139,11 @@
|
|
|
139
139
|
|
|
140
140
|
.notificationCardLabel {
|
|
141
141
|
display: grid;
|
|
142
|
-
color:
|
|
142
|
+
color: styles-tokens-notification-notificationCard.$sys-neutral-text-support;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.notificationCardTitle {
|
|
146
|
-
@include composite-var(
|
|
146
|
+
@include styles-tokens-notification-notificationCard.composite-var(styles-tokens-notification-notificationCard.$notification-card-title-layout);
|
|
147
147
|
|
|
148
148
|
display: flex;
|
|
149
149
|
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
|
|
155
155
|
.notificationCardContent {
|
|
156
156
|
box-sizing: border-box;
|
|
157
|
-
color:
|
|
157
|
+
color: styles-tokens-notification-notificationCard.$sys-neutral-text-support;
|
|
158
158
|
white-space: pre-line;
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
.notificationCardDate {
|
|
169
169
|
flex: 1 0 auto;
|
|
170
170
|
box-sizing: border-box;
|
|
171
|
-
color:
|
|
171
|
+
color: styles-tokens-notification-notificationCard.$sys-neutral-text-light;
|
|
172
172
|
text-align: right;
|
|
173
173
|
}
|
|
174
174
|
|
package/src/components/NotificationPanel/components/NotificationPanelBlank/styles.module.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-notification-notificationPanel';
|
|
3
2
|
|
|
4
3
|
.notificationPanelBlank {
|
|
5
|
-
@include composite-var(
|
|
4
|
+
@include styles-tokens-notification-notificationPanel.composite-var(styles-tokens-notification-notificationPanel.$notification-panel-body-info-container);
|
|
6
5
|
}
|
package/src/components/NotificationPanel/components/NotificationPanelDivider/styles.module.scss
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-notification-notificationPanel';
|
|
2
2
|
|
|
3
3
|
.notificationPanelDivider {
|
|
4
|
-
@include composite-var(
|
|
4
|
+
@include styles-tokens-notification-notificationPanel.composite-var(styles-tokens-notification-notificationPanel.$notification-panel-readed-divider);
|
|
5
5
|
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
9
9
|
|
|
10
|
-
color:
|
|
10
|
+
color: styles-tokens-notification-notificationPanel.$sys-neutral-text-light;
|
|
11
11
|
|
|
12
|
-
border-bottom-color:
|
|
12
|
+
border-bottom-color: styles-tokens-notification-notificationPanel.$sys-neutral-decor-default;
|
|
13
13
|
border-bottom-style: solid;
|
|
14
14
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-notification-notificationPanel';
|
|
2
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
3
3
|
|
|
4
4
|
.notificationPanelHeader {
|
|
5
|
-
@include composite-var(
|
|
5
|
+
@include styles-tokens-notification-notificationPanel.composite-var(styles-tokens-notification-notificationPanel.$notification-panel-header-container);
|
|
6
6
|
|
|
7
7
|
position: relative;
|
|
8
8
|
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
|
|
12
|
-
border-bottom-color:
|
|
12
|
+
border-bottom-color: styles-tokens-notification-notificationPanel.$sys-neutral-decor-default;
|
|
13
13
|
border-bottom-style: solid;
|
|
14
14
|
|
|
15
15
|
&::before {
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
width: 100%;
|
|
25
|
-
height: calc(100% +
|
|
25
|
+
height: calc(100% + styles-tokens-notification-notificationPanel.$border-width-notification-panel-container);
|
|
26
26
|
|
|
27
|
-
opacity:
|
|
28
|
-
background-color:
|
|
27
|
+
opacity: styles-tokens-notification-notificationPanel.$opacity-a004;
|
|
28
|
+
background-color: styles-tokens-notification-notificationPanel.$sys-neutral-accent-default;
|
|
29
29
|
border-radius: inherit;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
.notificationPanelChips {
|
|
33
|
-
@include composite-var(
|
|
33
|
+
@include styles-tokens-notification-notificationPanel.composite-var(styles-tokens-notification-notificationPanel.$notification-panel-header-chips);
|
|
34
34
|
|
|
35
35
|
display: flex;
|
|
36
36
|
align-items: center;
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
.notificationPanelHeadline {
|
|
47
|
-
@include composite-var(
|
|
47
|
+
@include styles-tokens-notification-notificationPanel.composite-var(styles-tokens-notification-notificationPanel.$notification-panel-header-headline);
|
|
48
48
|
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
|
-
color:
|
|
51
|
+
color: styles-tokens-notification-notificationPanel.$sys-neutral-text-main;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.notificationPanelTitle {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.notificationPanelFooterButton {
|
|
71
|
-
@include composite-var(
|
|
71
|
+
@include styles-tokens-notification-notificationPanel.composite-var(styles-tokens-notification-notificationPanel.$notification-panel-button-container);
|
|
72
72
|
|
|
73
73
|
cursor: pointer;
|
|
74
74
|
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
margin: 0;
|
|
80
80
|
padding: 0;
|
|
81
81
|
|
|
82
|
-
color:
|
|
82
|
+
color: styles-tokens-notification-notificationPanel.$sys-neutral-text-light;
|
|
83
83
|
|
|
84
84
|
background: none;
|
|
85
|
-
border-color:
|
|
85
|
+
border-color: styles-tokens-notification-notificationPanel.$sys-neutral-decor-default;
|
|
86
86
|
border-top-style: solid;
|
|
87
87
|
border-right: none;
|
|
88
88
|
border-bottom: none;
|
|
@@ -91,33 +91,34 @@
|
|
|
91
91
|
outline-offset: 0;
|
|
92
92
|
|
|
93
93
|
&:hover {
|
|
94
|
-
color:
|
|
94
|
+
color: styles-tokens-notification-notificationPanel.$sys-neutral-text-support;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
&:focus-visible {
|
|
98
|
-
@include outline-inside-var(
|
|
98
|
+
@include styles-tokens-notification-notificationPanel.outline-inside-var(styles-tokens-element.$container-focused-s);
|
|
99
99
|
|
|
100
|
-
color:
|
|
100
|
+
color: styles-tokens-notification-notificationPanel.$sys-neutral-text-support;
|
|
101
101
|
border-color: transparent;
|
|
102
|
-
outline-color:
|
|
102
|
+
outline-color: styles-tokens-notification-notificationPanel.$sys-available-complementary;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&:active {
|
|
106
|
-
color:
|
|
107
|
-
border-color:
|
|
106
|
+
color: styles-tokens-notification-notificationPanel.$sys-neutral-text-main;
|
|
107
|
+
border-color: styles-tokens-notification-notificationPanel.$sys-neutral-decor-default;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.wrapper {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
|
|
112
115
|
box-sizing: border-box;
|
|
113
116
|
width: 100%;
|
|
114
117
|
height: 100%;
|
|
115
|
-
display: flex;
|
|
116
|
-
flex-direction: column;
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
.scrollStub {
|
|
120
|
-
height: calc(
|
|
121
|
-
margin-top: calc(
|
|
121
|
+
height: calc(styles-tokens-notification-notificationPanel.$dimension-025m / 2);
|
|
122
|
+
margin-top: calc(styles-tokens-notification-notificationPanel.$dimension-025m / -2);
|
|
122
123
|
background: transparent;
|
|
123
124
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-notification-notificationPanel';
|
|
2
2
|
|
|
3
3
|
.notificationPanelPopoverWrap {
|
|
4
|
-
@include composite-var(
|
|
4
|
+
@include styles-tokens-notification-notificationPanel.composite-var(styles-tokens-notification-notificationPanel.$notification-panel-container);
|
|
5
5
|
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.notificationPanelPopover {
|
|
13
|
-
@include composite-var(
|
|
13
|
+
@include styles-tokens-notification-notificationPanel.composite-var(styles-tokens-notification-notificationPanel.$notification-panel-panel);
|
|
14
14
|
|
|
15
15
|
overflow: hidden;
|
|
16
16
|
display: flex;
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
height: 100%;
|
|
20
20
|
|
|
21
|
-
background-color:
|
|
22
|
-
box-shadow:
|
|
21
|
+
background-color: styles-tokens-notification-notificationPanel.$sys-neutral-background2-level;
|
|
22
|
+
box-shadow: styles-tokens-notification-notificationPanel.$box-shadow-elevation-level2;
|
|
23
23
|
}
|