@astral/ui 4.101.0 → 4.102.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/ExpansionPanel/Summary/styles.js +5 -2
- package/components/Fab/styles.js +12 -3
- 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/NewStepper/Step/styles.js +18 -15
- package/components/Notification/NotificationStackContainer/styles.js +5 -2
- 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/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/ExpansionPanel/Summary/styles.js +5 -2
- package/node/components/Fab/styles.js +12 -3
- 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/NewStepper/Step/styles.js +68 -65
- package/node/components/Notification/NotificationStackContainer/styles.js +57 -54
- 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/package.json +1 -1
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MobileNotificationListWrapper = exports.PriorityFeatureWrapper = exports.HeaderContent = exports.ExitButton = exports.ProfileWrapper = exports.ProductSwitcherWrapper = exports.HeaderContentSection = exports.HeaderSection = exports.MobileSidebarTogglerWrapper = exports.HeaderRoot = void 0;
|
|
4
4
|
const Button_1 = require("@mui/material/Button");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
const DashboardLayoutNotificationList_1 = require("../../DashboardLayoutNotificationList");
|
|
6
7
|
const IconButton_1 = require("../../IconButton");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const constants_2 = require("../../MenuOrganization/constants");
|
|
9
|
+
const constants_3 = require("../../MenuOrganization/OrganizationButton/constants");
|
|
10
|
+
const constants_4 = require("../../Profile/constants");
|
|
10
11
|
const styled_1 = require("../../styled");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const constants_5 = require("../constants");
|
|
13
|
+
const constants_6 = require("../DashboardSidebar/constants");
|
|
14
|
+
const constants_7 = require("./constants");
|
|
14
15
|
exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
15
16
|
shouldForwardProp: (prop) => !['$isFocusedMode'].includes(prop),
|
|
16
17
|
}) `
|
|
@@ -23,8 +24,8 @@ exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
|
23
24
|
justify-content: space-between;
|
|
24
25
|
|
|
25
26
|
width: 100%;
|
|
26
|
-
height: ${
|
|
27
|
-
margin-top: ${({ $isFocusedMode }) => $isFocusedMode ? `-${
|
|
27
|
+
height: ${constants_5.HEADER_HEIGHT_DESKTOP};
|
|
28
|
+
margin-top: ${({ $isFocusedMode }) => $isFocusedMode ? `-${constants_5.HEADER_HEIGHT_DESKTOP}` : 0};
|
|
28
29
|
margin-bottom: ${({ theme }) => theme.spacing(4)};
|
|
29
30
|
|
|
30
31
|
transition: ${({ theme }) => {
|
|
@@ -34,14 +35,14 @@ exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
|
34
35
|
}};
|
|
35
36
|
|
|
36
37
|
${({ theme }) => theme.breakpoints.down('laptop')} {
|
|
37
|
-
height: ${
|
|
38
|
+
height: ${constants_5.HEADER_HEIGHT_LAPTOP};
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
41
42
|
grid-row: 2;
|
|
42
43
|
justify-content: flex-start;
|
|
43
44
|
|
|
44
|
-
height: ${
|
|
45
|
+
height: ${constants_5.HEADER_HEIGHT_MOBILE};
|
|
45
46
|
margin-bottom: 0;
|
|
46
47
|
padding: ${({ theme }) => theme.spacing(0, 2, 0, 1)};
|
|
47
48
|
|
|
@@ -62,7 +63,7 @@ exports.MobileSidebarTogglerWrapper = styled_1.styled.div `
|
|
|
62
63
|
|
|
63
64
|
/* Причина игнора: Не критично для отображения */
|
|
64
65
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
65
|
-
.${
|
|
66
|
+
.${constants_5.dashboardLayoutClassnames.root}:not(:has(.${constants_6.dashboardSidebarClassnames.root}))
|
|
66
67
|
& {
|
|
67
68
|
display: none;
|
|
68
69
|
}
|
|
@@ -87,11 +88,11 @@ exports.HeaderContentSection = (0, styled_1.styled)(exports.HeaderSection) `
|
|
|
87
88
|
flex-shrink: unset;
|
|
88
89
|
gap: ${({ theme }) => theme.spacing(2)};
|
|
89
90
|
|
|
90
|
-
&.${
|
|
91
|
-
& .${
|
|
91
|
+
&.${constants_7.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
|
|
92
|
+
& .${constants_2.menuOrganizationClassnames.organizationData} {
|
|
92
93
|
display: none;
|
|
93
94
|
}
|
|
94
|
-
& .${
|
|
95
|
+
& .${constants_2.menuOrganizationClassnames.button} {
|
|
95
96
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
96
97
|
}
|
|
97
98
|
}
|
|
@@ -148,16 +149,16 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
148
149
|
|
|
149
150
|
min-width: 0;
|
|
150
151
|
|
|
151
|
-
&.${
|
|
152
|
-
& .${
|
|
152
|
+
&.${constants_7.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
|
|
153
|
+
& .${constants_2.menuOrganizationClassnames.button} {
|
|
153
154
|
padding: ${({ theme }) => theme.spacing(2, 0)};
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
|
|
157
|
-
&.${
|
|
158
|
+
&.${constants_7.dashboardLayoutHeaderClassnames.featureInSidebar} {
|
|
158
159
|
position: absolute;
|
|
159
160
|
z-index: ${({ theme }) => theme.zIndex.appBar - 1};
|
|
160
|
-
top: calc(var(--alert-height, 0px) + ${
|
|
161
|
+
top: calc(var(--alert-height, 0px) + ${constants_5.HEADER_HEIGHT_MOBILE});
|
|
161
162
|
left: 0;
|
|
162
163
|
|
|
163
164
|
/* Необходимо для анимации компонента вместе с sidebar */
|
|
@@ -177,18 +178,20 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
177
178
|
});
|
|
178
179
|
}};
|
|
179
180
|
|
|
180
|
-
&.${
|
|
181
|
+
&.${constants_7.dashboardLayoutHeaderClassnames.mobileSidebarPriorityFeatureVisible} {
|
|
181
182
|
transform: translateX(0);
|
|
182
183
|
}
|
|
183
184
|
|
|
184
|
-
& .${
|
|
185
|
-
height: ${
|
|
185
|
+
& .${constants_2.menuOrganizationClassnames.button}, & .${constants_4.profileClassnames.button} {
|
|
186
|
+
height: ${constants_3.MOBILE_BUTTON_HEIGHT};
|
|
186
187
|
padding: ${({ theme }) => theme.spacing(3, 4)};
|
|
187
188
|
|
|
188
189
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
189
190
|
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
${constants_1.HOVER_MEDIA} {
|
|
192
|
+
&:hover {
|
|
193
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
196
|
|
|
194
197
|
&:active {
|
|
@@ -196,15 +199,15 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
201
|
|
|
199
|
-
&.${
|
|
202
|
+
&.${constants_7.dashboardLayoutHeaderClassnames.hasNotificationList} {
|
|
200
203
|
gap: ${({ theme }) => theme.spacing(4)};
|
|
201
204
|
|
|
202
|
-
height: ${
|
|
205
|
+
height: ${constants_3.MOBILE_BUTTON_HEIGHT};
|
|
203
206
|
padding: ${({ theme }) => theme.spacing(2, 3)};
|
|
204
207
|
|
|
205
208
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
206
209
|
|
|
207
|
-
& .${
|
|
210
|
+
& .${constants_2.menuOrganizationClassnames.button}, & .${constants_4.profileClassnames.button} {
|
|
208
211
|
flex-grow: 1;
|
|
209
212
|
|
|
210
213
|
height: unset;
|
|
@@ -214,29 +217,29 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
214
217
|
}
|
|
215
218
|
}
|
|
216
219
|
|
|
217
|
-
&.${
|
|
218
|
-
& .${
|
|
220
|
+
&.${constants_7.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
|
|
221
|
+
& .${constants_2.menuOrganizationClassnames.button} {
|
|
219
222
|
padding: ${({ theme }) => theme.spacing(2, 0)};
|
|
220
223
|
}
|
|
221
224
|
|
|
222
|
-
& .${
|
|
225
|
+
& .${constants_7.dashboardLayoutHeaderClassnames.profile} {
|
|
223
226
|
display: block;
|
|
224
227
|
flex-grow: 1;
|
|
225
228
|
}
|
|
226
229
|
|
|
227
230
|
|
|
228
|
-
& .${
|
|
231
|
+
& .${constants_4.profileClassnames.button} {
|
|
229
232
|
width: 100%;
|
|
230
233
|
max-width: unset;
|
|
231
234
|
|
|
232
235
|
border-radius: 0;
|
|
233
236
|
}
|
|
234
237
|
|
|
235
|
-
& .${
|
|
238
|
+
& .${constants_4.profileClassnames.avatar} {
|
|
236
239
|
display: none;
|
|
237
240
|
}
|
|
238
241
|
|
|
239
|
-
& .${
|
|
242
|
+
& .${constants_4.profileClassnames.user} {
|
|
240
243
|
display: flex;
|
|
241
244
|
align-items: center;
|
|
242
245
|
justify-content: space-between;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ItemWrapper = exports.IconWrapper = exports.Wrapper = exports.Item = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
const styled_1 = require("../../styled");
|
|
5
|
-
const
|
|
6
|
+
const constants_2 = require("./constants");
|
|
6
7
|
exports.Item = styled_1.styled.div `
|
|
7
8
|
pointer-events: ${({ $isDisabled }) => ($isDisabled ? 'none' : 'auto')};
|
|
8
9
|
|
|
@@ -17,8 +18,10 @@ exports.Item = styled_1.styled.div `
|
|
|
17
18
|
});
|
|
18
19
|
}};
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
${constants_1.HOVER_MEDIA} {
|
|
22
|
+
&:hover {
|
|
23
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
24
|
+
}
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
&:active {
|
|
@@ -27,7 +30,7 @@ exports.Item = styled_1.styled.div `
|
|
|
27
30
|
|
|
28
31
|
/* Причина игнора: Не критично для отображения */
|
|
29
32
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
30
|
-
&:has(.${
|
|
33
|
+
&:has(.${constants_2.sidebarPopoverItemClassnames.content}:focus-visible) {
|
|
31
34
|
border-radius: ${({ theme }) => theme.shape.small};
|
|
32
35
|
outline: 2px solid ${({ theme }) => theme.palette.components.focused};
|
|
33
36
|
outline-offset: -2px;
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GroupedColumnLabel = exports.BottomDrawerContent = exports.ChevronIcon = exports.CollapseButton = exports.CollapseCell = exports.CheckboxCell = exports.CellStyled = exports.ContentWrapper = exports.Wrapper = void 0;
|
|
4
4
|
const ChevronROutlineMd_1 = require("../../../icons/ChevronROutlineMd");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
const IconButton_1 = require("../../IconButton");
|
|
6
7
|
const styled_1 = require("../../styled");
|
|
7
8
|
const Typography_1 = require("../../Typography");
|
|
8
9
|
const Cell_1 = require("../Cell");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
10
|
+
const constants_2 = require("../constants");
|
|
11
|
+
const constants_3 = require("./constants");
|
|
11
12
|
exports.Wrapper = styled_1.styled.li `
|
|
12
13
|
--level: 0;
|
|
13
14
|
position: relative;
|
|
14
15
|
|
|
15
16
|
&:not(:last-of-type)::before,
|
|
16
|
-
&.${
|
|
17
|
+
&.${constants_3.dataGridRowClassnames.hidden}::before {
|
|
17
18
|
content: '';
|
|
18
19
|
|
|
19
20
|
position: absolute;
|
|
20
21
|
z-index: 1;
|
|
21
22
|
top: 0;
|
|
22
|
-
transform: translateX(calc(${
|
|
23
|
+
transform: translateX(calc(${constants_2.ROOT_ACTION_CELL_WIDTH}px * var(--level) - ${constants_2.TREE_LINE_WIDTH}px));
|
|
23
24
|
|
|
24
25
|
display: none;
|
|
25
26
|
|
|
@@ -30,8 +31,8 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
33
|
-
&.${
|
|
34
|
-
& .${
|
|
34
|
+
&.${constants_3.dataGridRowClassnames.showConnector}::before,
|
|
35
|
+
& .${constants_3.dataGridRowContentClassnames.root}::before {
|
|
35
36
|
display: block;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -49,10 +50,10 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
49
50
|
padding-top: ${({ theme }) => theme.spacing(1)};
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
&.${
|
|
53
|
+
&.${constants_3.dataGridRowClassnames.mobileVariantCards} {
|
|
53
54
|
border-bottom: none;
|
|
54
55
|
|
|
55
|
-
&:not(.${
|
|
56
|
+
&:not(.${constants_3.dataGridRowClassnames.nestedChildren}) {
|
|
56
57
|
padding: ${({ theme }) => theme.spacing(5, 4, 4)};
|
|
57
58
|
|
|
58
59
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
@@ -61,13 +62,13 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
&.${
|
|
65
|
-
:not(.${
|
|
65
|
+
&.${constants_3.dataGridRowClassnames.hasNestedChildren} {
|
|
66
|
+
:not(.${constants_3.dataGridRowClassnames.nestedChildren}) .${Cell_1.dataGridCellClassnames.root}:last-of-type {
|
|
66
67
|
padding-bottom: ${({ theme }) => theme.spacing(3)};
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
/* Ко всем ячейкам кроме первой применяем декоративный элемент слева и добавляем отступы для выравнивания с NestedChildren */
|
|
70
|
-
&:not(.${
|
|
71
|
+
&:not(.${constants_3.dataGridRowClassnames.nestedChildren}) > .${constants_3.dataGridRowContentClassnames.root} .${Cell_1.dataGridCellClassnames.root}:not(.${constants_3.dataGridRowCellClassnames.firstCell}) {
|
|
71
72
|
position: relative;
|
|
72
73
|
|
|
73
74
|
margin-top: 0;
|
|
@@ -89,8 +90,8 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
/* L-коннектор применяем ко 2 ячейки основной строки */
|
|
92
|
-
&:not(.${
|
|
93
|
-
> .${
|
|
93
|
+
&:not(.${constants_3.dataGridRowClassnames.nestedChildren})
|
|
94
|
+
> .${constants_3.dataGridRowContentClassnames.root} .${Cell_1.dataGridCellClassnames.root}.${constants_3.dataGridRowCellClassnames.firstCell}
|
|
94
95
|
+ .${Cell_1.dataGridCellClassnames.root} {
|
|
95
96
|
&::after {
|
|
96
97
|
content: '';
|
|
@@ -99,7 +100,7 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
99
100
|
top: ${({ theme }) => theme.spacing(3)};
|
|
100
101
|
left: 0;
|
|
101
102
|
|
|
102
|
-
width: ${
|
|
103
|
+
width: ${constants_2.MOBILE_TREE_LINE_WIDTH}px;
|
|
103
104
|
height: ${({ theme }) => theme.spacing(2)};
|
|
104
105
|
|
|
105
106
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
@@ -109,7 +110,7 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
&.${
|
|
113
|
+
&.${constants_3.dataGridRowClassnames.nestedChildren} {
|
|
113
114
|
padding: ${({ theme }) => theme.spacing(3, 0, 3, 5)};
|
|
114
115
|
|
|
115
116
|
&::before {
|
|
@@ -147,9 +148,9 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
147
148
|
|
|
148
149
|
position: absolute;
|
|
149
150
|
top: 0;
|
|
150
|
-
transform: translateX(calc(${
|
|
151
|
+
transform: translateX(calc(${constants_2.ROOT_ACTION_CELL_WIDTH}px * var(--level) - ${constants_2.TREE_LINE_WIDTH}px));
|
|
151
152
|
|
|
152
|
-
width: ${
|
|
153
|
+
width: ${constants_2.TREE_LINE_WIDTH}px;
|
|
153
154
|
height: 50%;
|
|
154
155
|
|
|
155
156
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
@@ -162,41 +163,43 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
162
163
|
}
|
|
163
164
|
|
|
164
165
|
/* L-коннектор для nestedChildren на мобильных устройствах */
|
|
165
|
-
.${
|
|
166
|
+
.${constants_3.dataGridRowClassnames.nestedChildren} &::before {
|
|
166
167
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
167
168
|
left: -20px;
|
|
168
169
|
transform: none;
|
|
169
170
|
|
|
170
171
|
display: block;
|
|
171
172
|
|
|
172
|
-
width: ${
|
|
173
|
+
width: ${constants_2.MOBILE_TREE_LINE_WIDTH}px;
|
|
173
174
|
|
|
174
175
|
/* Высота 8px для выравнивания с названием колонки первой ячейки */
|
|
175
176
|
height: ${({ theme }) => theme.spacing(2)};
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
&.${
|
|
180
|
+
&.${constants_3.dataGridRowContentClassnames.active} {
|
|
180
181
|
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
${constants_1.HOVER_MEDIA} {
|
|
185
|
+
&:hover {
|
|
186
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
185
187
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
&.${constants_3.dataGridRowContentClassnames.active} {
|
|
189
|
+
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
190
|
+
}
|
|
189
191
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
&.${constants_3.dataGridRowContentClassnames.hovered} {
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
196
|
}
|
|
194
197
|
|
|
195
198
|
|
|
196
|
-
&.${
|
|
199
|
+
&.${constants_3.dataGridRowClassnames.hover} {
|
|
197
200
|
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
198
201
|
|
|
199
|
-
&.${
|
|
202
|
+
&.${constants_3.dataGridRowContentClassnames.hovered} {
|
|
200
203
|
cursor: pointer;
|
|
201
204
|
}
|
|
202
205
|
}
|
|
@@ -204,24 +207,14 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
204
207
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
205
208
|
grid-template-columns: 1fr;
|
|
206
209
|
|
|
207
|
-
&.${
|
|
208
|
-
background-color: transparent;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
&:hover, &.${constants_2.dataGridRowClassnames.hover} {
|
|
212
|
-
cursor: initial;
|
|
213
|
-
|
|
210
|
+
&.${constants_3.dataGridRowContentClassnames.active} {
|
|
214
211
|
background-color: transparent;
|
|
215
|
-
|
|
216
|
-
&.${constants_2.dataGridRowContentClassnames.active} {
|
|
217
|
-
background-color: transparent;
|
|
218
|
-
}
|
|
219
212
|
}
|
|
220
213
|
}
|
|
221
214
|
`;
|
|
222
215
|
exports.CellStyled = (0, styled_1.styled)(Cell_1.Cell) `
|
|
223
216
|
&:first-of-type {
|
|
224
|
-
margin-left: calc(var(--level) * ${
|
|
217
|
+
margin-left: calc(var(--level) * ${constants_2.ROOT_ACTION_CELL_WIDTH}px);
|
|
225
218
|
}
|
|
226
219
|
`;
|
|
227
220
|
exports.CheckboxCell = styled_1.styled.div `
|
|
@@ -230,14 +223,14 @@ exports.CheckboxCell = styled_1.styled.div `
|
|
|
230
223
|
align-self: center;
|
|
231
224
|
justify-content: center;
|
|
232
225
|
|
|
233
|
-
width: ${
|
|
226
|
+
width: ${constants_2.ROOT_ACTION_CELL_WIDTH}px;
|
|
234
227
|
`;
|
|
235
228
|
exports.CollapseCell = styled_1.styled.div `
|
|
236
229
|
display: flex;
|
|
237
230
|
align-items: center;
|
|
238
231
|
justify-content: center;
|
|
239
232
|
|
|
240
|
-
width: ${
|
|
233
|
+
width: ${constants_2.ROOT_ACTION_CELL_WIDTH}px;
|
|
241
234
|
|
|
242
235
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
243
236
|
display: none;
|
|
@@ -249,8 +242,10 @@ exports.CollapseButton = (0, styled_1.styled)(IconButton_1.IconButton) `
|
|
|
249
242
|
|
|
250
243
|
color: inherit;
|
|
251
244
|
|
|
252
|
-
|
|
253
|
-
|
|
245
|
+
${constants_1.HOVER_MEDIA} {
|
|
246
|
+
&:hover {
|
|
247
|
+
background-color: ${({ theme }) => theme.palette.grey[300]};
|
|
248
|
+
}
|
|
254
249
|
}
|
|
255
250
|
`;
|
|
256
251
|
exports.ChevronIcon = (0, styled_1.styled)(ChevronROutlineMd_1.ChevronROutlineMd, {
|
|
@@ -276,7 +271,7 @@ exports.GroupedColumnLabel = (0, styled_1.styled)(Typography_1.Typography) `
|
|
|
276
271
|
|
|
277
272
|
margin-top: ${({ theme }) => theme.spacing(3)};
|
|
278
273
|
|
|
279
|
-
&.${
|
|
274
|
+
&.${constants_3.dataGridGroupedColumnLabelClassnames.hidden} {
|
|
280
275
|
display: none;
|
|
281
276
|
}
|
|
282
277
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BottomDrawerContent = exports.ContentWrapper = exports.Wrapper = exports.CheckboxCell = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
const styled_1 = require("../../styled");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
6
|
+
const constants_2 = require("../constants");
|
|
7
|
+
const constants_3 = require("./constants");
|
|
7
8
|
exports.CheckboxCell = styled_1.styled.div `
|
|
8
9
|
display: flex;
|
|
9
10
|
align-items: center;
|
|
10
11
|
align-self: center;
|
|
11
12
|
justify-content: center;
|
|
12
13
|
|
|
13
|
-
width: ${
|
|
14
|
+
width: ${constants_2.ROOT_ACTION_CELL_WIDTH}px;
|
|
14
15
|
`;
|
|
15
16
|
exports.Wrapper = styled_1.styled.li `
|
|
16
17
|
--row-base-grid-columns: 1fr;
|
|
@@ -30,7 +31,7 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
30
31
|
padding-top: ${({ theme }) => theme.spacing(1)};
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
&.${
|
|
34
|
+
&.${constants_3.dataGridRowBaseClassnames.mobileVariantCards} {
|
|
34
35
|
padding: ${({ theme }) => theme.spacing(5, 4, 4)};
|
|
35
36
|
|
|
36
37
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
@@ -49,38 +50,30 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
49
50
|
|
|
50
51
|
background-color: transparent;
|
|
51
52
|
|
|
52
|
-
&.${
|
|
53
|
+
&.${constants_3.dataGridRowBaseClassnames.active} {
|
|
53
54
|
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
${constants_1.HOVER_MEDIA} {
|
|
58
|
+
&:hover {
|
|
59
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
&.${constants_3.dataGridRowBaseClassnames.active} {
|
|
62
|
+
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
63
|
+
}
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
&.${constants_3.dataGridRowBaseClassnames.hovered} {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
69
72
|
grid-template-columns: 1fr;
|
|
70
73
|
|
|
71
|
-
&.${
|
|
74
|
+
&.${constants_3.dataGridRowBaseClassnames.active} {
|
|
72
75
|
background-color: transparent;
|
|
73
76
|
}
|
|
74
|
-
|
|
75
|
-
&:hover, &.${constants_2.dataGridRowBaseClassnames.hovered} {
|
|
76
|
-
cursor: initial;
|
|
77
|
-
|
|
78
|
-
background-color: transparent;
|
|
79
|
-
|
|
80
|
-
&.${constants_2.dataGridRowBaseClassnames.active} {
|
|
81
|
-
background-color: transparent;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
77
|
}
|
|
85
78
|
`;
|
|
86
79
|
exports.BottomDrawerContent = styled_1.styled.div `
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StyledRowBase = exports.ChevronIcon = exports.CollapseCell = exports.CollapseButton = exports.MobileExpandButtonWrapper = exports.ChildrenWrapper = exports.CollapseContent = exports.CollapseContainer = void 0;
|
|
4
4
|
const ChevronROutlineMd_1 = require("../../icons/ChevronROutlineMd");
|
|
5
5
|
const Button_1 = require("../Button");
|
|
6
|
-
const constants_1 = require("../
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
const constants_2 = require("../DataGrid/constants");
|
|
7
8
|
const RowBase_1 = require("../DataGrid/RowBase");
|
|
8
9
|
const IconButton_1 = require("../IconButton");
|
|
9
10
|
const styled_1 = require("../styled");
|
|
10
|
-
const
|
|
11
|
+
const constants_3 = require("./constants");
|
|
11
12
|
exports.CollapseContainer = styled_1.styled.div `
|
|
12
13
|
width: 100%;
|
|
13
14
|
margin-bottom: ${({ theme }) => theme.spacing(4)};
|
|
@@ -47,8 +48,10 @@ exports.CollapseButton = (0, styled_1.styled)(IconButton_1.IconButton) `
|
|
|
47
48
|
|
|
48
49
|
color: inherit;
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
${constants_1.HOVER_MEDIA} {
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: ${({ theme }) => theme.palette.grey[300]};
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
56
|
`;
|
|
54
57
|
exports.CollapseCell = styled_1.styled.div `
|
|
@@ -56,7 +59,7 @@ exports.CollapseCell = styled_1.styled.div `
|
|
|
56
59
|
align-items: center;
|
|
57
60
|
justify-content: center;
|
|
58
61
|
|
|
59
|
-
width: ${
|
|
62
|
+
width: ${constants_2.ROOT_ACTION_CELL_WIDTH}px;
|
|
60
63
|
|
|
61
64
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
62
65
|
display: none;
|
|
@@ -70,7 +73,7 @@ exports.ChevronIcon = (0, styled_1.styled)(ChevronROutlineMd_1.ChevronROutlineMd
|
|
|
70
73
|
duration: theme.transitions.duration.short,
|
|
71
74
|
})};
|
|
72
75
|
|
|
73
|
-
&.${
|
|
76
|
+
&.${constants_3.collapsibleRowClassnames.chevronIconActive} {
|
|
74
77
|
transform: rotateZ(90deg);
|
|
75
78
|
}
|
|
76
79
|
`;
|
|
@@ -90,11 +93,11 @@ exports.StyledRowBase = (0, styled_1.styled)(RowBase_1.RowBase) `
|
|
|
90
93
|
outline: 1px solid ${({ theme }) => theme.palette.grey[300]};
|
|
91
94
|
}
|
|
92
95
|
|
|
93
|
-
& .${
|
|
96
|
+
& .${constants_3.collapsibleRowClassnames.collapseButton} {
|
|
94
97
|
padding-left: ${({ theme }) => theme.spacing(4)};
|
|
95
98
|
}
|
|
96
99
|
|
|
97
|
-
& .${
|
|
100
|
+
& .${constants_3.collapsibleRowClassnames.collapsibleContent} {
|
|
98
101
|
background-color: transparent;
|
|
99
102
|
}
|
|
100
103
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Wrapper = exports.StyledCopyTypography = exports.StyledTypography = void 0;
|
|
4
4
|
const CopyTypography_1 = require("../../CopyTypography");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
const styled_1 = require("../../styled");
|
|
6
7
|
const Typography_1 = require("../../Typography");
|
|
7
8
|
exports.StyledTypography = (0, styled_1.styled)(Typography_1.Typography, {
|
|
@@ -19,8 +20,10 @@ exports.StyledTypography = (0, styled_1.styled)(Typography_1.Typography, {
|
|
|
19
20
|
text-align: ${({ $direction }) => $direction !== 'row' ? 'left' : 'right'};
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
${constants_1.HOVER_MEDIA} {
|
|
24
|
+
&:hover {
|
|
25
|
+
text-decoration: ${({ $canCopy }) => ($canCopy ? 'underline' : 'none')};
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
28
|
`;
|
|
26
29
|
exports.StyledCopyTypography = (0, styled_1.styled)(CopyTypography_1.CopyTypography, {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StyledChevron = exports.Title = exports.Wrapper = void 0;
|
|
4
4
|
const Chevron_1 = require("../../Chevron");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
const styled_1 = require("../../styled");
|
|
6
7
|
const getBackgroundColor = (theme, isDisabled, isSelected) => {
|
|
7
8
|
if (isDisabled) {
|
|
@@ -31,8 +32,10 @@ exports.Wrapper = (0, styled_1.styled)('summary', {
|
|
|
31
32
|
duration: theme.transitions.duration.standard,
|
|
32
33
|
})};
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
${constants_1.HOVER_MEDIA} {
|
|
36
|
+
&:hover {
|
|
37
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
&:focus-visible {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.StyledFab = void 0;
|
|
7
7
|
const ButtonBase_1 = require("@mui/material/ButtonBase");
|
|
8
8
|
const Fab_1 = __importDefault(require("@mui/material/Fab"));
|
|
9
|
+
const constants_1 = require("../constants");
|
|
9
10
|
const styled_1 = require("../styled");
|
|
10
11
|
const enums_1 = require("./enums");
|
|
11
12
|
const getBgColor = ({ theme, color, fabState, }) => {
|
|
@@ -76,10 +77,18 @@ exports.StyledFab = (0, styled_1.styled)(Fab_1.default, {
|
|
|
76
77
|
border-radius: ${({ theme, isSquare }) => isSquare ? theme.shape.medium : '50%'};
|
|
77
78
|
box-shadow: ${({ theme }) => theme.elevation[200]};
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
${constants_1.HOVER_MEDIA} {
|
|
81
|
+
:hover {
|
|
82
|
+
color: ${(props) => getColor({ ...props })};
|
|
81
83
|
|
|
82
|
-
|
|
84
|
+
background: ${(props) => getBgColor({ ...props, fabState: enums_1.FabStates.Hover })};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
${constants_1.HOVER_NONE_MEDIA} {
|
|
89
|
+
&:hover {
|
|
90
|
+
background-color: ${(props) => getBgColor({ ...props, fabState: enums_1.FabStates.Default })};
|
|
91
|
+
}
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
:active {
|