@astral/ui 4.101.0 → 4.103.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/components/Alert/styles.js +12 -2
- package/components/Autocomplete/styles.js +5 -2
- package/components/Breadcrumbs/styles.js +18 -13
- package/components/CheckableTag/styles.js +6 -3
- package/components/Checkbox/styles.js +10 -7
- package/components/Chip/styles.js +11 -6
- package/components/CodeField/styles.js +5 -2
- package/components/CopyTypography/styles.js +19 -5
- package/components/DashboardLayout/Header/styles.js +5 -2
- package/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +5 -2
- package/components/DataGrid/Row/styles.js +14 -19
- package/components/DataGrid/RowBase/styles.js +10 -17
- package/components/DataGridCollapsibleRow/styles.js +5 -2
- package/components/Description/Value/styles.js +5 -2
- package/components/Dialog/Dialog.d.ts +1 -1
- package/components/Dialog/Dialog.js +5 -4
- package/components/Dialog/styles.js +8 -0
- package/components/Dialog/types.d.ts +5 -0
- package/components/Dialog/useLogic/useLogic.d.ts +3 -3
- package/components/Dialog/useLogic/useLogic.js +6 -2
- package/components/ExpansionPanel/Summary/styles.js +5 -2
- package/components/Fab/styles.js +12 -3
- package/components/HintPopover/styles.js +2 -1
- package/components/InfiniteDataList/styles.js +5 -2
- package/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +5 -2
- package/components/InputGroup/styles.js +8 -5
- package/components/JsonViewer/JsonNode/styles.js +5 -2
- package/components/Link/styles.js +11 -6
- package/components/ListItem/styles.js +5 -2
- package/components/MenuOrganization/OrganizationButton/styles.js +5 -6
- package/components/NavMenu/Item/ItemButton/styles.js +14 -7
- package/components/NewPopover/NewPopover.js +1 -0
- package/components/NewPopover/constants.d.ts +5 -0
- package/components/NewPopover/constants.js +6 -1
- package/components/NewPopover/styles.js +2 -1
- package/components/NewPopover/types.d.ts +1 -1
- package/components/NewPopover/useLogic/useLogic.d.ts +2 -2
- package/components/NewPopover/useLogic/useLogic.js +12 -12
- package/components/NewPopover/useLogic/utils/getFallbackPlacements/getFallbackPlacements.d.ts +7 -0
- package/components/NewPopover/useLogic/utils/getFallbackPlacements/getFallbackPlacements.js +19 -0
- package/components/NewPopover/useLogic/utils/getFallbackPlacements/index.d.ts +1 -0
- package/components/NewPopover/useLogic/utils/getFallbackPlacements/index.js +1 -0
- package/components/NewPopover/useLogic/utils/index.d.ts +4 -0
- package/components/NewPopover/useLogic/utils/index.js +4 -0
- package/components/NewStepper/Step/styles.js +18 -15
- package/components/Notification/NotificationStackContainer/styles.js +5 -2
- package/components/Onboarding/types/step.d.ts +1 -1
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.d.ts +1 -1
- package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.js +1 -1
- package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useTrackedRect/constants.d.ts +6 -0
- package/components/Onboarding/ui/hooks/useTrackedRect/constants.js +6 -0
- package/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.js +34 -12
- package/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +5 -6
- package/components/PageHeader/MobilePageActions/styles.js +0 -4
- package/components/Radio/styles.js +7 -4
- package/components/RadioCard/styles.js +5 -2
- package/components/StaticCalendar/StaticCalendarGridButton/styles.js +8 -5
- package/components/Tabs/Tab/styles.js +5 -2
- package/components/ToggleButton/styles.js +25 -10
- package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +3 -3
- package/components/Tree/TreeItem/styles.js +23 -10
- package/components/constants/index.d.ts +1 -0
- package/components/constants/index.js +1 -0
- package/components/constants/media.d.ts +8 -0
- package/components/constants/media.js +8 -0
- package/components/theme/components/MuiButton.js +46 -23
- package/components/theme/components/MuiListItemButton.js +10 -2
- package/components/theme/components/MuiMenuItem.js +5 -2
- package/components/theme/components/MuiOutlinedInput.js +15 -12
- package/components/theme/components/MuiSwitch.js +14 -9
- package/components/theme/components/MuiTableRow.js +11 -3
- package/hook-form/FormFilters/FormFiltersDialog/styles.d.ts +1 -0
- package/node/components/Alert/styles.js +24 -14
- package/node/components/Autocomplete/styles.js +8 -5
- package/node/components/Breadcrumbs/styles.js +18 -13
- package/node/components/CheckableTag/styles.js +6 -3
- package/node/components/Checkbox/styles.js +26 -23
- package/node/components/Chip/styles.js +36 -31
- package/node/components/CodeField/styles.js +5 -2
- package/node/components/CopyTypography/styles.js +22 -8
- package/node/components/DashboardLayout/Header/styles.js +35 -32
- package/node/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +7 -4
- package/node/components/DataGrid/Row/styles.js +41 -46
- package/node/components/DataGrid/RowBase/styles.js +16 -23
- package/node/components/DataGridCollapsibleRow/styles.js +11 -8
- package/node/components/Description/Value/styles.js +5 -2
- package/node/components/Dialog/Dialog.d.ts +1 -1
- package/node/components/Dialog/Dialog.js +5 -4
- package/node/components/Dialog/styles.js +8 -0
- package/node/components/Dialog/types.d.ts +5 -0
- package/node/components/Dialog/useLogic/useLogic.d.ts +3 -3
- package/node/components/Dialog/useLogic/useLogic.js +6 -2
- package/node/components/ExpansionPanel/Summary/styles.js +5 -2
- package/node/components/Fab/styles.js +12 -3
- package/node/components/HintPopover/styles.js +2 -1
- package/node/components/InfiniteDataList/styles.js +7 -4
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +11 -8
- package/node/components/InputGroup/styles.js +8 -5
- package/node/components/JsonViewer/JsonNode/styles.js +5 -2
- package/node/components/Link/styles.js +13 -8
- package/node/components/ListItem/styles.js +10 -7
- package/node/components/MenuOrganization/OrganizationButton/styles.js +5 -6
- package/node/components/NavMenu/Item/ItemButton/styles.js +16 -9
- package/node/components/NewPopover/NewPopover.js +1 -0
- package/node/components/NewPopover/constants.d.ts +5 -0
- package/node/components/NewPopover/constants.js +7 -2
- package/node/components/NewPopover/styles.js +1 -0
- package/node/components/NewPopover/types.d.ts +1 -1
- package/node/components/NewPopover/useLogic/useLogic.d.ts +2 -2
- package/node/components/NewPopover/useLogic/useLogic.js +15 -15
- package/node/components/NewPopover/useLogic/utils/getFallbackPlacements/getFallbackPlacements.d.ts +7 -0
- package/node/components/NewPopover/useLogic/utils/getFallbackPlacements/getFallbackPlacements.js +23 -0
- package/node/components/NewPopover/useLogic/utils/getFallbackPlacements/index.d.ts +1 -0
- package/node/components/NewPopover/useLogic/utils/getFallbackPlacements/index.js +17 -0
- package/node/components/NewPopover/useLogic/utils/index.d.ts +4 -0
- package/node/components/NewPopover/useLogic/utils/index.js +20 -0
- package/node/components/NewStepper/Step/styles.js +68 -65
- package/node/components/Notification/NotificationStackContainer/styles.js +57 -54
- package/node/components/Onboarding/types/step.d.ts +1 -1
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.d.ts +1 -1
- package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.js +1 -1
- package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useTrackedRect/constants.d.ts +6 -0
- package/node/components/Onboarding/ui/hooks/useTrackedRect/constants.js +9 -0
- package/node/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.js +34 -12
- package/node/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +12 -13
- package/node/components/PageHeader/MobilePageActions/styles.js +0 -4
- package/node/components/Radio/styles.js +20 -17
- package/node/components/RadioCard/styles.js +7 -4
- package/node/components/StaticCalendar/StaticCalendarGridButton/styles.js +8 -5
- package/node/components/Tabs/Tab/styles.js +5 -2
- package/node/components/ToggleButton/styles.js +27 -12
- package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +3 -3
- package/node/components/Tree/TreeItem/styles.js +44 -31
- package/node/components/constants/index.d.ts +1 -0
- package/node/components/constants/index.js +1 -0
- package/node/components/constants/media.d.ts +8 -0
- package/node/components/constants/media.js +11 -0
- package/node/components/theme/components/MuiButton.js +46 -23
- package/node/components/theme/components/MuiListItemButton.js +10 -2
- package/node/components/theme/components/MuiMenuItem.js +5 -2
- package/node/components/theme/components/MuiOutlinedInput.js +15 -12
- package/node/components/theme/components/MuiSwitch.js +14 -9
- package/node/components/theme/components/MuiTableRow.js +11 -3
- package/node/hook-form/FormFilters/FormFiltersDialog/styles.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,87 +3,88 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StyledButton = exports.StepContentWrapper = exports.LabelWrapper = exports.LineConnector = exports.ArrowConnector = exports.IconWrapper = exports.Wrapper = void 0;
|
|
4
4
|
const NextOutlineMd_1 = require("../../../icons/NextOutlineMd");
|
|
5
5
|
const Button_1 = require("../../Button");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
6
7
|
const styled_1 = require("../../styled");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
8
|
+
const constants_2 = require("../../Typography/constants");
|
|
9
|
+
const constants_3 = require("../constants");
|
|
10
|
+
const constants_4 = require("../StepIcon/constants");
|
|
11
|
+
const constants_5 = require("./constants");
|
|
11
12
|
exports.Wrapper = styled_1.styled.div `
|
|
12
|
-
counter-increment: ${
|
|
13
|
+
counter-increment: ${constants_3.STEPPER_ORDER_COUNTER_NAME};
|
|
13
14
|
|
|
14
15
|
display: flex;
|
|
15
16
|
gap: ${({ theme }) => theme.microSpacing(5)};
|
|
16
17
|
align-items: center;
|
|
17
18
|
|
|
18
|
-
&.${
|
|
19
|
+
&.${constants_5.stepClassnames.alternativeLabel} {
|
|
19
20
|
position: relative;
|
|
20
21
|
|
|
21
22
|
flex: 1;
|
|
22
23
|
flex-direction: column;
|
|
23
24
|
|
|
24
|
-
& .${
|
|
25
|
+
& .${constants_5.stepClassnames.labelContainer} {
|
|
25
26
|
flex-direction: column;
|
|
26
27
|
|
|
27
28
|
text-align: center;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
&:first-of-type {
|
|
31
|
-
& .${
|
|
32
|
+
& .${constants_5.stepClassnames.connector} {
|
|
32
33
|
display: none;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
&.${
|
|
38
|
-
& .${
|
|
38
|
+
&.${constants_5.stepClassnames.connectorArrow} {
|
|
39
|
+
& .${constants_5.stepClassnames.content} {
|
|
39
40
|
padding: ${({ theme }) => theme.microSpacing(5, 0)};
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
&:not(:first-of-type) .${
|
|
43
|
+
&:not(:first-of-type) .${constants_5.stepClassnames.content} {
|
|
43
44
|
margin-left: ${({ theme }) => theme.spacing(2)};
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
&:last-of-type .${
|
|
47
|
+
&:last-of-type .${constants_5.stepClassnames.connector} {
|
|
47
48
|
display: none;
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
&.${
|
|
52
|
-
&.${
|
|
53
|
-
& .${
|
|
52
|
+
&.${constants_5.stepClassnames.connectorLine} {
|
|
53
|
+
&.${constants_5.stepClassnames.orientationHorizontal} {
|
|
54
|
+
& .${constants_5.stepClassnames.content} {
|
|
54
55
|
align-items: center;
|
|
55
56
|
|
|
56
57
|
padding: ${({ theme }) => theme.spacing(0, 1)};
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
|
|
60
|
-
&.${
|
|
61
|
-
& .${
|
|
61
|
+
&.${constants_5.stepClassnames.alternativeLabel} {
|
|
62
|
+
& .${constants_5.stepClassnames.content} {
|
|
62
63
|
padding: ${({ theme }) => theme.microSpacing(3, 0)};
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
&.${
|
|
68
|
-
& .${
|
|
68
|
+
&.${constants_5.stepClassnames.orientationVertical} {
|
|
69
|
+
& .${constants_5.stepClassnames.labelContainer} {
|
|
69
70
|
color: ${({ theme }) => theme.palette.grey[900]};
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
& .${
|
|
73
|
+
& .${constants_5.stepClassnames.label} {
|
|
73
74
|
font-size: ${({ theme }) => theme.typography.body1.fontSize};
|
|
74
75
|
line-height: ${({ theme }) => theme.typography.body1.lineHeight};
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
& .${
|
|
78
|
+
& .${constants_5.stepClassnames.content} {
|
|
78
79
|
padding: ${({ theme }) => theme.spacing(1, 0, 0)};
|
|
79
80
|
}
|
|
80
81
|
|
|
81
|
-
& .${
|
|
82
|
+
& .${constants_5.stepClassnames.connector}:not(.${constants_5.stepClassnames.hasDescription}) {
|
|
82
83
|
margin-bottom: ${({ theme }) => theme.microSpacing(1)};
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
&:last-of-type {
|
|
86
|
-
& .${
|
|
87
|
+
& .${constants_5.stepClassnames.description} {
|
|
87
88
|
min-height: 0;
|
|
88
89
|
margin: 0;
|
|
89
90
|
padding-left: ${({ theme }) => theme.spacing(6)};
|
|
@@ -95,49 +96,49 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
& .${
|
|
99
|
+
& .${constants_5.stepClassnames.connector} {
|
|
99
100
|
display: none;
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
&:last-of-type {
|
|
104
|
-
& .${
|
|
105
|
+
& .${constants_5.stepClassnames.content} {
|
|
105
106
|
padding: ${({ theme }) => theme.spacing(1, 0)};
|
|
106
107
|
|
|
107
|
-
& .${
|
|
108
|
+
& .${constants_5.stepClassnames.description} {
|
|
108
109
|
margin-bottom: 0;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
& .${
|
|
114
|
+
& .${constants_5.stepClassnames.labelMobile} {
|
|
114
115
|
display: none;
|
|
115
116
|
}
|
|
116
117
|
|
|
117
|
-
& .${
|
|
118
|
+
& .${constants_5.stepClassnames.label} {
|
|
118
119
|
display: block;
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
|
|
123
|
-
& .${
|
|
124
|
-
&.${
|
|
125
|
-
& .${
|
|
124
|
+
& .${constants_5.stepClassnames.content} {
|
|
125
|
+
&.${constants_5.stepClassnames.active} {
|
|
126
|
+
& .${constants_5.stepClassnames.label} {
|
|
126
127
|
color: ${({ theme }) => theme.palette.grey[900]};
|
|
127
128
|
}
|
|
128
129
|
|
|
129
|
-
& .${
|
|
130
|
+
& .${constants_4.stepIconClassnames.root} {
|
|
130
131
|
color: ${({ theme }) => theme.palette.primary[800]};
|
|
131
132
|
|
|
132
|
-
&.${
|
|
133
|
+
&.${constants_4.stepIconClassnames.success} {
|
|
133
134
|
color: ${({ theme }) => theme.palette.success[800]};
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
&.${
|
|
137
|
+
&.${constants_4.stepIconClassnames.error} {
|
|
137
138
|
color: ${({ theme }) => theme.palette.error[800]};
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
&.${
|
|
141
|
+
&.${constants_4.stepIconClassnames.warning} {
|
|
141
142
|
color: ${({ theme }) => theme.palette.warning[800]};
|
|
142
143
|
}
|
|
143
144
|
}
|
|
@@ -145,8 +146,8 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
148
|
-
&.${
|
|
149
|
-
& .${
|
|
149
|
+
&.${constants_5.stepClassnames.connectorArrow} {
|
|
150
|
+
& .${constants_5.stepClassnames.content} {
|
|
150
151
|
padding: ${({ theme }) => theme.spacing(2, 0)};
|
|
151
152
|
}
|
|
152
153
|
}
|
|
@@ -155,7 +156,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
155
156
|
exports.IconWrapper = styled_1.styled.div `
|
|
156
157
|
display: flex;
|
|
157
158
|
|
|
158
|
-
& .${
|
|
159
|
+
& .${constants_4.stepIconClassnames.root} {
|
|
159
160
|
width: 20px;
|
|
160
161
|
height: 20px;
|
|
161
162
|
|
|
@@ -165,19 +166,19 @@ exports.IconWrapper = styled_1.styled.div `
|
|
|
165
166
|
duration: theme.transitions.duration.shorter,
|
|
166
167
|
})};
|
|
167
168
|
|
|
168
|
-
&.${
|
|
169
|
+
&.${constants_4.stepIconClassnames.active} {
|
|
169
170
|
color: ${({ theme }) => theme.palette.primary[800]};
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
&.${
|
|
173
|
+
&.${constants_4.stepIconClassnames.success} {
|
|
173
174
|
color: ${({ theme }) => theme.palette.success[800]};
|
|
174
175
|
}
|
|
175
176
|
|
|
176
|
-
&.${
|
|
177
|
+
&.${constants_4.stepIconClassnames.error} {
|
|
177
178
|
color: ${({ theme }) => theme.palette.error[800]};
|
|
178
179
|
}
|
|
179
180
|
|
|
180
|
-
&.${
|
|
181
|
+
&.${constants_4.stepIconClassnames.warning} {
|
|
181
182
|
color: ${({ theme }) => theme.palette.warning[800]};
|
|
182
183
|
}
|
|
183
184
|
|
|
@@ -205,14 +206,14 @@ exports.LineConnector = styled_1.styled.div `
|
|
|
205
206
|
|
|
206
207
|
border-top: 2px solid ${({ theme }) => theme.palette.components.border.default};
|
|
207
208
|
|
|
208
|
-
&.${
|
|
209
|
+
&.${constants_5.stepClassnames.alternativeLabel} {
|
|
209
210
|
position: absolute;
|
|
210
211
|
top: 15px;
|
|
211
212
|
right: calc(50% + 14px);
|
|
212
213
|
left: calc(-50% + 14px);
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
&.${
|
|
216
|
+
&.${constants_5.stepClassnames.orientationVertical} {
|
|
216
217
|
min-height: 16px;
|
|
217
218
|
|
|
218
219
|
/* Смещение необходимо для центрирования линии относительно иконки, т.к. линия шириной 2px, то для выравнивания необходимо число не кратное 2ум */
|
|
@@ -233,7 +234,7 @@ exports.LabelWrapper = styled_1.styled.div `
|
|
|
233
234
|
|
|
234
235
|
color: ${({ theme }) => theme.palette.grey[700]};
|
|
235
236
|
|
|
236
|
-
& .${
|
|
237
|
+
& .${constants_2.typographyClassnames.root} {
|
|
237
238
|
transition: ${({ theme }) => theme.transitions.create(['color'], {
|
|
238
239
|
duration: theme.transitions.duration.shorter,
|
|
239
240
|
})};
|
|
@@ -274,48 +275,50 @@ exports.StyledButton = (0, styled_1.styled)(Button_1.Button) `
|
|
|
274
275
|
height: auto;
|
|
275
276
|
}
|
|
276
277
|
|
|
277
|
-
|
|
278
|
-
|
|
278
|
+
${constants_1.HOVER_MEDIA} {
|
|
279
|
+
&:hover {
|
|
280
|
+
background: transparent;
|
|
279
281
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
& .${constants_5.stepClassnames.label} {
|
|
283
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
284
|
+
}
|
|
283
285
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
+
& .${constants_4.stepIconClassnames.root} {
|
|
287
|
+
color: ${({ theme }) => theme.palette.primary[700]};
|
|
286
288
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
289
|
+
&.${constants_4.stepIconClassnames.success} {
|
|
290
|
+
color: ${({ theme }) => theme.palette.success[700]};
|
|
291
|
+
}
|
|
290
292
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
&.${constants_4.stepIconClassnames.error} {
|
|
294
|
+
color: ${({ theme }) => theme.palette.error[700]};
|
|
295
|
+
}
|
|
294
296
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
&.${constants_4.stepIconClassnames.warning} {
|
|
298
|
+
color: ${({ theme }) => theme.palette.warning[700]};
|
|
299
|
+
}
|
|
297
300
|
}
|
|
298
301
|
}
|
|
299
302
|
}
|
|
300
303
|
|
|
301
304
|
&:active {
|
|
302
305
|
background: transparent;
|
|
303
|
-
& .${
|
|
306
|
+
& .${constants_5.stepClassnames.label} {
|
|
304
307
|
color: ${({ theme }) => theme.palette.grey[900]};
|
|
305
308
|
}
|
|
306
309
|
|
|
307
|
-
& .${
|
|
310
|
+
& .${constants_4.stepIconClassnames.root} {
|
|
308
311
|
color: ${({ theme }) => theme.palette.primary[800]};
|
|
309
312
|
|
|
310
|
-
&.${
|
|
313
|
+
&.${constants_4.stepIconClassnames.success} {
|
|
311
314
|
color: ${({ theme }) => theme.palette.success[800]};
|
|
312
315
|
}
|
|
313
316
|
|
|
314
|
-
&.${
|
|
317
|
+
&.${constants_4.stepIconClassnames.error} {
|
|
315
318
|
color: ${({ theme }) => theme.palette.error[800]};
|
|
316
319
|
}
|
|
317
320
|
|
|
318
|
-
&.${
|
|
321
|
+
&.${constants_4.stepIconClassnames.warning} {
|
|
319
322
|
color: ${({ theme }) => theme.palette.warning[700]};
|
|
320
323
|
}
|
|
321
324
|
}
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CloseButton = exports.StaticInner = exports.Inner = exports.Wrapper = void 0;
|
|
4
4
|
const react_toastify_next_1 = require("react-toastify-next");
|
|
5
5
|
const Button_1 = require("../../Button");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
6
7
|
const styled_1 = require("../../styled");
|
|
7
|
-
const
|
|
8
|
+
const constants_2 = require("../constants");
|
|
8
9
|
const fade = (0, styled_1.keyframes) `
|
|
9
10
|
from {
|
|
10
11
|
opacity: 0;
|
|
@@ -69,7 +70,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
69
70
|
);
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
&.${
|
|
73
|
+
&.${constants_2.notifyClassnames.container} {
|
|
73
74
|
display: flex;
|
|
74
75
|
flex-direction: column;
|
|
75
76
|
justify-content: end;
|
|
@@ -84,7 +85,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
84
85
|
/* stylelint-enable plugin/no-unsupported-browser-features */
|
|
85
86
|
|
|
86
87
|
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
87
|
-
.${
|
|
88
|
+
.${constants_2.notifyClassnames.stackHost} .Toastify {
|
|
88
89
|
overflow: hidden;
|
|
89
90
|
}
|
|
90
91
|
}
|
|
@@ -94,11 +95,11 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
94
95
|
|
|
95
96
|
height: auto;
|
|
96
97
|
|
|
97
|
-
.${
|
|
98
|
+
.${constants_2.notifyClassnames.stackHost} .Toastify {
|
|
98
99
|
overflow: visible;
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
.${
|
|
102
|
+
.${constants_2.notifyClassnames.stack} {
|
|
102
103
|
overflow: hidden auto;
|
|
103
104
|
display: flex;
|
|
104
105
|
flex-direction: column;
|
|
@@ -113,7 +114,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
113
114
|
-webkit-overflow-scrolling: touch;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
|
-
.${
|
|
117
|
+
.${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root} {
|
|
117
118
|
pointer-events: auto !important;
|
|
118
119
|
|
|
119
120
|
position: relative !important;
|
|
@@ -124,7 +125,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
124
125
|
width: 100% !important;
|
|
125
126
|
max-width: 100%;
|
|
126
127
|
height: auto !important;
|
|
127
|
-
min-height: ${
|
|
128
|
+
min-height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
|
|
128
129
|
max-height: fit-content !important;
|
|
129
130
|
margin-top: 0 !important;
|
|
130
131
|
margin-right: 0 !important;
|
|
@@ -137,40 +138,40 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
137
138
|
На мобильных контейнер не получает mouseEnter — toastify оставляет data-collapsed=true
|
|
138
139
|
и скрывает direct children не‑последних тостов (.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0})
|
|
139
140
|
*/
|
|
140
|
-
.${
|
|
141
|
+
.${constants_2.notifyClassnames.stack} .Toastify__toast--stacked > * {
|
|
141
142
|
opacity: 1 !important;
|
|
142
143
|
}
|
|
143
144
|
|
|
144
|
-
.${
|
|
145
|
+
.${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root}__content {
|
|
145
146
|
max-height: 400px;
|
|
146
147
|
margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
.${
|
|
150
|
+
.${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root}__footer {
|
|
150
151
|
margin-bottom: 0;
|
|
151
152
|
}
|
|
152
153
|
|
|
153
|
-
.${
|
|
154
|
+
.${constants_2.notifyClassnames.stack} .Toastify__toast--stacked::before {
|
|
154
155
|
display: none;
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
|
|
159
|
-
.${
|
|
160
|
+
.${constants_2.notifyClassnames.animationIn} {
|
|
160
161
|
animation: ${leaveIn} ease-in-out ${({ theme }) => theme.transitions.duration.standard}ms;
|
|
161
162
|
animation-fill-mode: both;
|
|
162
163
|
}
|
|
163
164
|
|
|
164
|
-
.${
|
|
165
|
+
.${constants_2.notifyClassnames.animationOut} {
|
|
165
166
|
animation: ${leaveOut} ease-in-out;
|
|
166
167
|
animation-fill-mode: both;
|
|
167
168
|
}
|
|
168
169
|
|
|
169
|
-
.${
|
|
170
|
+
.${constants_2.notifyClassnames.root} {
|
|
170
171
|
overflow: hidden !important;
|
|
171
172
|
|
|
172
173
|
width: 400px;
|
|
173
|
-
height: ${
|
|
174
|
+
height: ${constants_2.NOTIFY_HEIGHT};
|
|
174
175
|
padding: 0;
|
|
175
176
|
|
|
176
177
|
box-shadow: ${({ theme }) => theme.elevation[300]};
|
|
@@ -193,10 +194,10 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
193
194
|
height: 3px;
|
|
194
195
|
}
|
|
195
196
|
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
196
|
-
min-height: ${
|
|
197
|
+
min-height: ${constants_2.NOTIFY_HEIGHT};
|
|
197
198
|
}
|
|
198
199
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
199
|
-
min-height: ${
|
|
200
|
+
min-height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
.Toastify__progress-bar--wrp {
|
|
@@ -209,16 +210,16 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
209
210
|
opacity: 1;
|
|
210
211
|
}
|
|
211
212
|
|
|
212
|
-
&--${
|
|
213
|
+
&--${constants_2.NotificationVariantTypes.Info} {
|
|
213
214
|
--toastify-color-progress-light: ${({ theme }) => theme.palette.primary[800]};
|
|
214
215
|
}
|
|
215
|
-
&--${
|
|
216
|
+
&--${constants_2.NotificationVariantTypes.Success} {
|
|
216
217
|
--toastify-color-progress-light: ${({ theme }) => theme.palette.success[800]};
|
|
217
218
|
}
|
|
218
|
-
&--${
|
|
219
|
+
&--${constants_2.NotificationVariantTypes.Warning} {
|
|
219
220
|
--toastify-color-progress-light: ${({ theme }) => theme.palette.warning[800]};
|
|
220
221
|
}
|
|
221
|
-
&--${
|
|
222
|
+
&--${constants_2.NotificationVariantTypes.Error} {
|
|
222
223
|
--toastify-color-progress-light: ${({ theme }) => theme.palette.error[800]};
|
|
223
224
|
}
|
|
224
225
|
|
|
@@ -228,14 +229,14 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
231
|
|
|
231
|
-
.${
|
|
232
|
+
.${constants_2.notifyClassnames.root}__content {
|
|
232
233
|
overflow: hidden;
|
|
233
234
|
|
|
234
235
|
max-height: 0;
|
|
235
236
|
margin-top: 0;
|
|
236
237
|
}
|
|
237
238
|
|
|
238
|
-
.${
|
|
239
|
+
.${constants_2.notifyClassnames.root}__footer {
|
|
239
240
|
margin-bottom: ${({ theme }) => theme.spacing(-3)};
|
|
240
241
|
|
|
241
242
|
transition: ${({ theme }) => theme.transitions.create(['margin-bottom'], {
|
|
@@ -246,21 +247,21 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
246
247
|
|
|
247
248
|
/* Стили для уведомлений в стеке */
|
|
248
249
|
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
249
|
-
.${
|
|
250
|
+
.${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root} {
|
|
250
251
|
position: relative;
|
|
251
252
|
transform: scale(var(--s));
|
|
252
253
|
|
|
253
254
|
&:not(:last-of-type) {
|
|
254
255
|
margin-bottom: calc(
|
|
255
|
-
${({ theme }) => theme.spacing(4)} - ${
|
|
256
|
+
${({ theme }) => theme.spacing(4)} - ${constants_2.NOTIFY_HEIGHT}
|
|
256
257
|
);
|
|
257
258
|
}
|
|
258
259
|
|
|
259
260
|
&:last-of-type {
|
|
260
261
|
height: auto;
|
|
261
|
-
min-height: ${
|
|
262
|
+
min-height: ${constants_2.NOTIFY_HEIGHT};
|
|
262
263
|
|
|
263
|
-
.${
|
|
264
|
+
.${constants_2.notifyClassnames.root}__content {
|
|
264
265
|
max-height: 400px;
|
|
265
266
|
margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
|
|
266
267
|
}
|
|
@@ -268,13 +269,13 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
268
269
|
|
|
269
270
|
/* В свернутом виде показываем не более 3-x уведомлений */
|
|
270
271
|
&:not(:nth-last-of-type(-n + 3)) {
|
|
271
|
-
margin-bottom: -${
|
|
272
|
+
margin-bottom: -${constants_2.NOTIFY_HEIGHT};
|
|
272
273
|
|
|
273
274
|
opacity: 0;
|
|
274
275
|
}
|
|
275
276
|
|
|
276
277
|
/* Отключаем анимацию при появлении нового уведомления */
|
|
277
|
-
&[${
|
|
278
|
+
&[${constants_2.NOTIFY_NO_TRANSITION_ATTR}='true'] {
|
|
278
279
|
transition-duration: 0s !important;
|
|
279
280
|
}
|
|
280
281
|
}
|
|
@@ -282,8 +283,8 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
282
283
|
|
|
283
284
|
/* Мобильный стек в свёрнутом виде: последний в DOM (самый новый) — сверху; остальные без участия в раскладке */
|
|
284
285
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
285
|
-
&:not(.${
|
|
286
|
-
.${
|
|
286
|
+
&:not(.${constants_2.notifyClassnames.container}) {
|
|
287
|
+
.${constants_2.notifyClassnames.stack} {
|
|
287
288
|
position: relative;
|
|
288
289
|
|
|
289
290
|
overflow: visible;
|
|
@@ -301,7 +302,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
301
302
|
|
|
302
303
|
/* Причина игнора: Не критично для отображения */
|
|
303
304
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
304
|
-
&:has(.${
|
|
305
|
+
&:has(.${constants_2.notifyClassnames.root}:not(.${constants_2.notifyClassnames.animationOut}) ~ .${constants_2.notifyClassnames.root}:not(.${constants_2.notifyClassnames.animationOut})) {
|
|
305
306
|
padding-top: ${({ theme }) => theme.spacing(4)};
|
|
306
307
|
|
|
307
308
|
&::before,
|
|
@@ -314,7 +315,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
314
315
|
right: ${({ theme }) => theme.spacing(2)};
|
|
315
316
|
left: ${({ theme }) => theme.spacing(2)};
|
|
316
317
|
|
|
317
|
-
height: ${
|
|
318
|
+
height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
|
|
318
319
|
|
|
319
320
|
background: ${({ theme }) => theme.palette.background.paper};
|
|
320
321
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
@@ -333,7 +334,7 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
336
|
|
|
336
|
-
.${
|
|
337
|
+
.${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root}:not(:last-of-type) {
|
|
337
338
|
pointer-events: none;
|
|
338
339
|
|
|
339
340
|
position: absolute;
|
|
@@ -352,13 +353,13 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
352
353
|
clip-path: inset(50%);
|
|
353
354
|
border: 0;
|
|
354
355
|
|
|
355
|
-
.${
|
|
356
|
+
.${constants_2.notifyClassnames.root}__content {
|
|
356
357
|
max-height: 0 !important;
|
|
357
358
|
margin: 0 !important;
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
361
|
|
|
361
|
-
.${
|
|
362
|
+
.${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root}:last-of-type {
|
|
362
363
|
position: relative;
|
|
363
364
|
z-index: 1;
|
|
364
365
|
transform: scale(var(--s, 1));
|
|
@@ -369,24 +370,24 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
369
370
|
width: 100% !important;
|
|
370
371
|
min-width: 0 !important;
|
|
371
372
|
max-width: 100% !important;
|
|
372
|
-
min-height: ${
|
|
373
|
+
min-height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
|
|
373
374
|
margin-bottom: 0 !important;
|
|
374
375
|
|
|
375
376
|
opacity: 1;
|
|
376
377
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
377
378
|
|
|
378
|
-
.${
|
|
379
|
+
.${constants_2.notifyClassnames.root}__content {
|
|
379
380
|
max-height: 400px;
|
|
380
381
|
margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
|
|
381
382
|
}
|
|
382
383
|
}
|
|
383
384
|
|
|
384
|
-
.${
|
|
385
|
-
.${
|
|
385
|
+
.${constants_2.notifyClassnames.stackHost} .Toastify,
|
|
386
|
+
.${constants_2.notifyClassnames.stackHost} .${constants_2.notifyClassnames.stack} {
|
|
386
387
|
overflow: visible !important;
|
|
387
388
|
}
|
|
388
389
|
|
|
389
|
-
.${
|
|
390
|
+
.${constants_2.notifyClassnames.animationOut} {
|
|
390
391
|
animation: ${leaveOutMobileStacked} ease-in-out ${({ theme }) => theme.transitions.duration.standard}ms;
|
|
391
392
|
animation-fill-mode: both;
|
|
392
393
|
}
|
|
@@ -404,7 +405,7 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
|
|
|
404
405
|
padding-bottom: 0 !important;
|
|
405
406
|
padding-left: ${({ theme }) => theme.spacing(3)} !important;
|
|
406
407
|
|
|
407
|
-
.${
|
|
408
|
+
.${constants_2.notifyClassnames.root} {
|
|
408
409
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
409
410
|
|
|
410
411
|
&:last-of-type{
|
|
@@ -420,23 +421,23 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
|
|
|
420
421
|
|
|
421
422
|
height: 100%;
|
|
422
423
|
|
|
423
|
-
.${
|
|
424
|
+
.${constants_2.notifyClassnames.root} {
|
|
424
425
|
position: relative;
|
|
425
426
|
transform: unset;
|
|
426
427
|
|
|
427
428
|
height: auto;
|
|
428
|
-
min-height: ${
|
|
429
|
+
min-height: ${constants_2.NOTIFY_HEIGHT};
|
|
429
430
|
margin-bottom: ${({ theme }) => theme.spacing(1)} !important;
|
|
430
431
|
|
|
431
432
|
opacity: 1 !important;
|
|
432
433
|
}
|
|
433
434
|
|
|
434
|
-
.${
|
|
435
|
+
.${constants_2.notifyClassnames.root}__content {
|
|
435
436
|
max-height: 400px;
|
|
436
437
|
margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
|
|
437
438
|
}
|
|
438
439
|
|
|
439
|
-
.${
|
|
440
|
+
.${constants_2.notifyClassnames.root}__footer {
|
|
440
441
|
margin-bottom: 0;
|
|
441
442
|
}
|
|
442
443
|
|
|
@@ -453,20 +454,20 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
|
|
|
453
454
|
padding-right: ${({ theme }) => theme.spacing(2)} !important;
|
|
454
455
|
padding-left: ${({ theme }) => theme.spacing(2)} !important;
|
|
455
456
|
|
|
456
|
-
.${
|
|
457
|
+
.${constants_2.notifyClassnames.root} {
|
|
457
458
|
width: 100% !important;
|
|
458
459
|
max-width: 100%;
|
|
459
460
|
height: auto !important;
|
|
460
|
-
min-height: ${
|
|
461
|
+
min-height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
|
|
461
462
|
margin-bottom: ${({ theme }) => theme.spacing(2)} !important;
|
|
462
463
|
}
|
|
463
464
|
|
|
464
|
-
.${
|
|
465
|
+
.${constants_2.notifyClassnames.root}__content {
|
|
465
466
|
max-height: 400px;
|
|
466
467
|
margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
|
|
467
468
|
}
|
|
468
469
|
|
|
469
|
-
.${
|
|
470
|
+
.${constants_2.notifyClassnames.root}__footer {
|
|
470
471
|
margin-bottom: 0;
|
|
471
472
|
}
|
|
472
473
|
}
|
|
@@ -474,7 +475,7 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
|
|
|
474
475
|
exports.StaticInner = (0, styled_1.styled)(exports.Inner) `
|
|
475
476
|
margin-top: 0;
|
|
476
477
|
|
|
477
|
-
.${
|
|
478
|
+
.${constants_2.notifyClassnames.root} {
|
|
478
479
|
margin-bottom: ${({ theme }) => theme.spacing(1)};
|
|
479
480
|
}
|
|
480
481
|
`;
|
|
@@ -488,11 +489,13 @@ exports.CloseButton = (0, styled_1.styled)(Button_1.Button) `
|
|
|
488
489
|
|
|
489
490
|
animation: ${fade} 500ms linear;
|
|
490
491
|
|
|
491
|
-
|
|
492
|
-
|
|
492
|
+
${constants_1.HOVER_MEDIA} {
|
|
493
|
+
&:hover {
|
|
494
|
+
box-shadow: ${({ theme }) => theme.elevation[300]};
|
|
495
|
+
}
|
|
493
496
|
}
|
|
494
497
|
|
|
495
|
-
&.${
|
|
498
|
+
&.${constants_2.notifyClassnames.closeButtonAnimationOut} {
|
|
496
499
|
opacity: 0;
|
|
497
500
|
}
|
|
498
501
|
|