@astral/ui 4.122.1 → 4.122.2
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/components/Banner/BannerContainer/styles.js +15 -9
- package/components/Notification/NotificationContainer/styles.js +10 -4
- package/components/Notification/NotificationStackContainer/styles.js +9 -2
- package/node/components/Banner/BannerContainer/styles.js +15 -9
- package/node/components/Notification/NotificationContainer/styles.js +10 -4
- package/node/components/Notification/NotificationStackContainer/styles.js +9 -2
- package/package.json +1 -1
|
@@ -2,16 +2,18 @@ import { ToastContainer } from 'react-toastify-next';
|
|
|
2
2
|
import { styled } from '../../styled';
|
|
3
3
|
import { bannerClassnames } from '../constants';
|
|
4
4
|
export const Inner = styled(ToastContainer) `
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
min-width: 400px;
|
|
11
|
-
max-width: 432px;
|
|
12
|
-
padding-bottom: 0;
|
|
13
|
-
padding-left: ${({ theme }) => theme.spacing(3)};
|
|
5
|
+
/* Базовые стили Toastify могут подключиться после стилей контейнера. */
|
|
6
|
+
&& {
|
|
7
|
+
position: relative;
|
|
8
|
+
right: 0;
|
|
9
|
+
bottom: 0;
|
|
14
10
|
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: 400px;
|
|
13
|
+
max-width: 432px;
|
|
14
|
+
padding-bottom: 0;
|
|
15
|
+
padding-left: ${({ theme }) => theme.spacing(3)};
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
.${bannerClassnames.root} {
|
|
17
19
|
width: 400px;
|
|
@@ -19,5 +21,9 @@ export const Inner = styled(ToastContainer) `
|
|
|
19
21
|
padding: 0;
|
|
20
22
|
|
|
21
23
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
24
|
+
|
|
25
|
+
&:last-child {
|
|
26
|
+
margin-bottom: 0;
|
|
27
|
+
}
|
|
22
28
|
}
|
|
23
29
|
`;
|
|
@@ -41,7 +41,7 @@ export const Wrapper = styled('div', {
|
|
|
41
41
|
position: fixed;
|
|
42
42
|
z-index: ${theme.zIndex.snackbar};
|
|
43
43
|
right: 0;
|
|
44
|
-
bottom:
|
|
44
|
+
bottom: calc(var(--toastify-toast-bottom, 16px) + ${theme.spacing(1)});
|
|
45
45
|
width: 432px;
|
|
46
46
|
`}
|
|
47
47
|
}
|
|
@@ -88,6 +88,10 @@ export const Wrapper = styled('div', {
|
|
|
88
88
|
}
|
|
89
89
|
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
90
90
|
min-height: ${NOTIFY_HEIGHT};
|
|
91
|
+
|
|
92
|
+
&:last-child {
|
|
93
|
+
margin-bottom: 0;
|
|
94
|
+
}
|
|
91
95
|
}
|
|
92
96
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
93
97
|
min-height: ${NOTIFY_HEIGHT_MOBILE};
|
|
@@ -143,10 +147,12 @@ export const Inner = styled(ToastContainer, {
|
|
|
143
147
|
position: relative !important;
|
|
144
148
|
right: 0 !important;
|
|
145
149
|
bottom: 0 !important;
|
|
146
|
-
width:
|
|
147
|
-
max-width:
|
|
150
|
+
width: 400px;
|
|
151
|
+
max-width: 400px;
|
|
152
|
+
margin-right: var(--toastify-toast-right, 16px);
|
|
153
|
+
margin-left: auto;
|
|
148
154
|
padding-bottom: 0 !important;
|
|
149
|
-
padding-left: ${theme.spacing(
|
|
155
|
+
padding-left: ${theme.spacing(1)} !important;
|
|
150
156
|
`}
|
|
151
157
|
}
|
|
152
158
|
|
|
@@ -405,8 +405,10 @@ export const Inner = styled(ToastContainer) `
|
|
|
405
405
|
.${notifyClassnames.root} {
|
|
406
406
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
407
407
|
|
|
408
|
-
|
|
409
|
-
|
|
408
|
+
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
409
|
+
&:last-of-type {
|
|
410
|
+
margin-bottom: 0;
|
|
411
|
+
}
|
|
410
412
|
}
|
|
411
413
|
}
|
|
412
414
|
|
|
@@ -427,6 +429,10 @@ export const Inner = styled(ToastContainer) `
|
|
|
427
429
|
margin-bottom: ${({ theme }) => theme.spacing(1)} !important;
|
|
428
430
|
|
|
429
431
|
opacity: 1 !important;
|
|
432
|
+
|
|
433
|
+
&:last-of-type {
|
|
434
|
+
margin-bottom: 0 !important;
|
|
435
|
+
}
|
|
430
436
|
}
|
|
431
437
|
|
|
432
438
|
.${notifyClassnames.root}__content {
|
|
@@ -480,6 +486,7 @@ export const CloseButton = styled(Button) `
|
|
|
480
486
|
right: ${({ theme }) => theme.spacing(3)};
|
|
481
487
|
|
|
482
488
|
width: 400px;
|
|
489
|
+
margin-top: ${({ theme }) => theme.spacing(1)};
|
|
483
490
|
margin-left: ${({ theme }) => theme.spacing(6)};
|
|
484
491
|
|
|
485
492
|
box-shadow: ${({ theme }) => theme.elevation[300]};
|
|
@@ -5,16 +5,18 @@ const react_toastify_next_1 = require("react-toastify-next");
|
|
|
5
5
|
const styled_1 = require("../../styled");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
7
7
|
exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
min-width: 400px;
|
|
14
|
-
max-width: 432px;
|
|
15
|
-
padding-bottom: 0;
|
|
16
|
-
padding-left: ${({ theme }) => theme.spacing(3)};
|
|
8
|
+
/* Базовые стили Toastify могут подключиться после стилей контейнера. */
|
|
9
|
+
&& {
|
|
10
|
+
position: relative;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
17
13
|
|
|
14
|
+
width: 100%;
|
|
15
|
+
min-width: 400px;
|
|
16
|
+
max-width: 432px;
|
|
17
|
+
padding-bottom: 0;
|
|
18
|
+
padding-left: ${({ theme }) => theme.spacing(3)};
|
|
19
|
+
}
|
|
18
20
|
|
|
19
21
|
.${constants_1.bannerClassnames.root} {
|
|
20
22
|
width: 400px;
|
|
@@ -22,5 +24,9 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
|
|
|
22
24
|
padding: 0;
|
|
23
25
|
|
|
24
26
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
27
|
+
|
|
28
|
+
&:last-child {
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
}
|
|
25
31
|
}
|
|
26
32
|
`;
|
|
@@ -44,7 +44,7 @@ exports.Wrapper = (0, styled_1.styled)('div', {
|
|
|
44
44
|
position: fixed;
|
|
45
45
|
z-index: ${theme.zIndex.snackbar};
|
|
46
46
|
right: 0;
|
|
47
|
-
bottom:
|
|
47
|
+
bottom: calc(var(--toastify-toast-bottom, 16px) + ${theme.spacing(1)});
|
|
48
48
|
width: 432px;
|
|
49
49
|
`}
|
|
50
50
|
}
|
|
@@ -91,6 +91,10 @@ exports.Wrapper = (0, styled_1.styled)('div', {
|
|
|
91
91
|
}
|
|
92
92
|
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
93
93
|
min-height: ${constants_1.NOTIFY_HEIGHT};
|
|
94
|
+
|
|
95
|
+
&:last-child {
|
|
96
|
+
margin-bottom: 0;
|
|
97
|
+
}
|
|
94
98
|
}
|
|
95
99
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
96
100
|
min-height: ${constants_1.NOTIFY_HEIGHT_MOBILE};
|
|
@@ -146,10 +150,12 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer, {
|
|
|
146
150
|
position: relative !important;
|
|
147
151
|
right: 0 !important;
|
|
148
152
|
bottom: 0 !important;
|
|
149
|
-
width:
|
|
150
|
-
max-width:
|
|
153
|
+
width: 400px;
|
|
154
|
+
max-width: 400px;
|
|
155
|
+
margin-right: var(--toastify-toast-right, 16px);
|
|
156
|
+
margin-left: auto;
|
|
151
157
|
padding-bottom: 0 !important;
|
|
152
|
-
padding-left: ${theme.spacing(
|
|
158
|
+
padding-left: ${theme.spacing(1)} !important;
|
|
153
159
|
`}
|
|
154
160
|
}
|
|
155
161
|
|
|
@@ -408,8 +408,10 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
|
|
|
408
408
|
.${constants_2.notifyClassnames.root} {
|
|
409
409
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
410
410
|
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
412
|
+
&:last-of-type {
|
|
413
|
+
margin-bottom: 0;
|
|
414
|
+
}
|
|
413
415
|
}
|
|
414
416
|
}
|
|
415
417
|
|
|
@@ -430,6 +432,10 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
|
|
|
430
432
|
margin-bottom: ${({ theme }) => theme.spacing(1)} !important;
|
|
431
433
|
|
|
432
434
|
opacity: 1 !important;
|
|
435
|
+
|
|
436
|
+
&:last-of-type {
|
|
437
|
+
margin-bottom: 0 !important;
|
|
438
|
+
}
|
|
433
439
|
}
|
|
434
440
|
|
|
435
441
|
.${constants_2.notifyClassnames.root}__content {
|
|
@@ -483,6 +489,7 @@ exports.CloseButton = (0, styled_1.styled)(Button_1.Button) `
|
|
|
483
489
|
right: ${({ theme }) => theme.spacing(3)};
|
|
484
490
|
|
|
485
491
|
width: 400px;
|
|
492
|
+
margin-top: ${({ theme }) => theme.spacing(1)};
|
|
486
493
|
margin-left: ${({ theme }) => theme.spacing(6)};
|
|
487
494
|
|
|
488
495
|
box-shadow: ${({ theme }) => theme.elevation[300]};
|