@cloud-ru/ds-uikit-product-notification 2.1.2 → 2.1.4-preview-57a467a6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-ru/ds-uikit-product-notification",
3
- "version": "2.1.2",
3
+ "version": "2.1.4-preview-57a467a6.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": "^1.0.2",
38
- "@cloud-ru/ds-button": "^1.0.4",
39
- "@cloud-ru/ds-chips": "^1.2.2",
40
- "@cloud-ru/ds-link": "^1.0.16",
41
- "@cloud-ru/ds-scroll": "^1.0.5",
42
- "@cloud-ru/ds-info-block": "^1.0.3",
43
- "@cloud-ru/ds-materials": "^2.0.1",
44
- "@cloud-ru/ds-segment-control": "^1.0.16",
45
- "@cloud-ru/ds-drawer": "^2.1.3",
46
- "@cloud-ru/ds-skeleton": "^1.0.2",
47
- "@cloud-ru/ds-icons": "^1.7.0",
48
- "@cloud-ru/ds-tag": "^1.1.15",
49
- "@cloud-ru/ds-status": "^1.1.11",
50
- "@cloud-ru/ds-list": "^3.0.1",
51
- "@cloud-ru/ds-truncate-string": "^1.0.15",
52
- "@cloud-ru/ds-typography": "^1.0.2",
53
- "@cloud-ru/ds-tooltip": "^1.0.14",
54
- "@cloud-ru/ds-utils": "^1.2.0"
37
+ "@cloud-ru/ds-button": "1.0.5",
38
+ "@cloud-ru/ds-adaptive": "1.0.3",
39
+ "@cloud-ru/ds-drawer": "2.1.4",
40
+ "@cloud-ru/ds-info-block": "1.0.4",
41
+ "@cloud-ru/ds-chips": "1.2.3",
42
+ "@cloud-ru/ds-list": "3.0.2",
43
+ "@cloud-ru/ds-link": "1.0.17",
44
+ "@cloud-ru/ds-scroll": "1.0.6",
45
+ "@cloud-ru/ds-materials": "2.0.2",
46
+ "@cloud-ru/ds-icons": "1.7.1",
47
+ "@cloud-ru/ds-segment-control": "1.0.17",
48
+ "@cloud-ru/ds-skeleton": "1.0.3",
49
+ "@cloud-ru/ds-tag": "1.1.16",
50
+ "@cloud-ru/ds-status": "1.1.12",
51
+ "@cloud-ru/ds-tooltip": "1.0.15",
52
+ "@cloud-ru/ds-truncate-string": "1.0.16",
53
+ "@cloud-ru/ds-typography": "1.0.2",
54
+ "@cloud-ru/ds-utils": "1.3.0"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public"
@@ -100,7 +100,7 @@ export function NotificationPanel({
100
100
 
101
101
  // Figma: `slotAfterHeadline` (window) / `slotAfterTitle` (bottomSheet) — кнопки прижаты вправо.
102
102
  const actions = (readAllButton || settings) && (
103
- <span className={styles.headerActions}>
103
+ <span className={styles.headerActions} data-mobile={isMobile || undefined}>
104
104
  {readAllButton && (
105
105
  <WithTooltip tooltip={readAllTooltip}>
106
106
  <Button
@@ -126,7 +126,7 @@ export function NotificationPanel({
126
126
  {segments && (
127
127
  <SegmentControl
128
128
  {...segments}
129
- size='s'
129
+ size={buttonSize}
130
130
  // В мобильном мастере сегменты делят всю ширину sheet'а.
131
131
  width={isMobile ? 'full' : segments.width}
132
132
  items={segments.items.map(item => ({
@@ -139,7 +139,7 @@ export function NotificationPanel({
139
139
 
140
140
  {!isMobile && chipToggle && (
141
141
  <ChipToggle
142
- size='s'
142
+ size={buttonSize}
143
143
  disabled={loading}
144
144
  label={chipToggle.label}
145
145
  onChange={chipToggle.onChange}
@@ -155,7 +155,7 @@ export function NotificationPanel({
155
155
  position={position}
156
156
  width={width}
157
157
  className={cn(styles.panel, className)}
158
- showButtonClosed={false}
158
+ showButtonClosed
159
159
  title={<span data-test-id={TEST_IDS.panel.title}>{title}</span>}
160
160
  slotAfterTitle={actions}
161
161
  slotSecondTitle={filters}
@@ -12,6 +12,10 @@
12
12
  flex: 1 1 auto;
13
13
  align-items: center;
14
14
  justify-content: flex-end;
15
+
16
+ &:not([data-mobile]) {
17
+ padding-right: base.$sn-primitive-dimension-16;
18
+ }
15
19
  }
16
20
 
17
21
  .filtersRow {
@@ -28,7 +32,7 @@
28
32
  }
29
33
 
30
34
  &[data-mobile] {
31
- padding-inline: base.$sn-primitive-dimension-12;
35
+ padding-inline: base.$sn-primitive-dimension-6;
32
36
  }
33
37
 
34
38
  // Сегменты в мобильном мастере растянуты на всю ширину слота.