@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.
Files changed (91) hide show
  1. package/components/Alert/styles.js +12 -2
  2. package/components/Autocomplete/styles.js +5 -2
  3. package/components/Breadcrumbs/styles.js +18 -13
  4. package/components/CheckableTag/styles.js +6 -3
  5. package/components/Checkbox/styles.js +10 -7
  6. package/components/Chip/styles.js +11 -6
  7. package/components/CodeField/styles.js +5 -2
  8. package/components/CopyTypography/styles.js +19 -5
  9. package/components/DashboardLayout/Header/styles.js +5 -2
  10. package/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +5 -2
  11. package/components/DataGrid/Row/styles.js +14 -19
  12. package/components/DataGrid/RowBase/styles.js +10 -17
  13. package/components/DataGridCollapsibleRow/styles.js +5 -2
  14. package/components/Description/Value/styles.js +5 -2
  15. package/components/ExpansionPanel/Summary/styles.js +5 -2
  16. package/components/Fab/styles.js +12 -3
  17. package/components/InfiniteDataList/styles.js +5 -2
  18. package/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +5 -2
  19. package/components/InputGroup/styles.js +8 -5
  20. package/components/JsonViewer/JsonNode/styles.js +5 -2
  21. package/components/Link/styles.js +11 -6
  22. package/components/ListItem/styles.js +5 -2
  23. package/components/MenuOrganization/OrganizationButton/styles.js +5 -6
  24. package/components/NavMenu/Item/ItemButton/styles.js +14 -7
  25. package/components/NewStepper/Step/styles.js +18 -15
  26. package/components/Notification/NotificationStackContainer/styles.js +5 -2
  27. package/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +5 -6
  28. package/components/PageHeader/MobilePageActions/styles.js +0 -4
  29. package/components/Radio/styles.js +7 -4
  30. package/components/RadioCard/styles.js +5 -2
  31. package/components/StaticCalendar/StaticCalendarGridButton/styles.js +8 -5
  32. package/components/Tabs/Tab/styles.js +5 -2
  33. package/components/ToggleButton/styles.js +25 -10
  34. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +3 -3
  35. package/components/Tree/TreeItem/styles.js +23 -10
  36. package/components/constants/index.d.ts +1 -0
  37. package/components/constants/index.js +1 -0
  38. package/components/constants/media.d.ts +8 -0
  39. package/components/constants/media.js +8 -0
  40. package/components/theme/components/MuiButton.js +46 -23
  41. package/components/theme/components/MuiListItemButton.js +10 -2
  42. package/components/theme/components/MuiMenuItem.js +5 -2
  43. package/components/theme/components/MuiOutlinedInput.js +15 -12
  44. package/components/theme/components/MuiSwitch.js +14 -9
  45. package/components/theme/components/MuiTableRow.js +11 -3
  46. package/node/components/Alert/styles.js +24 -14
  47. package/node/components/Autocomplete/styles.js +8 -5
  48. package/node/components/Breadcrumbs/styles.js +18 -13
  49. package/node/components/CheckableTag/styles.js +6 -3
  50. package/node/components/Checkbox/styles.js +26 -23
  51. package/node/components/Chip/styles.js +36 -31
  52. package/node/components/CodeField/styles.js +5 -2
  53. package/node/components/CopyTypography/styles.js +22 -8
  54. package/node/components/DashboardLayout/Header/styles.js +35 -32
  55. package/node/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +7 -4
  56. package/node/components/DataGrid/Row/styles.js +41 -46
  57. package/node/components/DataGrid/RowBase/styles.js +16 -23
  58. package/node/components/DataGridCollapsibleRow/styles.js +11 -8
  59. package/node/components/Description/Value/styles.js +5 -2
  60. package/node/components/ExpansionPanel/Summary/styles.js +5 -2
  61. package/node/components/Fab/styles.js +12 -3
  62. package/node/components/InfiniteDataList/styles.js +7 -4
  63. package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +11 -8
  64. package/node/components/InputGroup/styles.js +8 -5
  65. package/node/components/JsonViewer/JsonNode/styles.js +5 -2
  66. package/node/components/Link/styles.js +13 -8
  67. package/node/components/ListItem/styles.js +10 -7
  68. package/node/components/MenuOrganization/OrganizationButton/styles.js +5 -6
  69. package/node/components/NavMenu/Item/ItemButton/styles.js +16 -9
  70. package/node/components/NewStepper/Step/styles.js +68 -65
  71. package/node/components/Notification/NotificationStackContainer/styles.js +57 -54
  72. package/node/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +12 -13
  73. package/node/components/PageHeader/MobilePageActions/styles.js +0 -4
  74. package/node/components/Radio/styles.js +20 -17
  75. package/node/components/RadioCard/styles.js +7 -4
  76. package/node/components/StaticCalendar/StaticCalendarGridButton/styles.js +8 -5
  77. package/node/components/Tabs/Tab/styles.js +5 -2
  78. package/node/components/ToggleButton/styles.js +27 -12
  79. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +3 -3
  80. package/node/components/Tree/TreeItem/styles.js +44 -31
  81. package/node/components/constants/index.d.ts +1 -0
  82. package/node/components/constants/index.js +1 -0
  83. package/node/components/constants/media.d.ts +8 -0
  84. package/node/components/constants/media.js +11 -0
  85. package/node/components/theme/components/MuiButton.js +46 -23
  86. package/node/components/theme/components/MuiListItemButton.js +10 -2
  87. package/node/components/theme/components/MuiMenuItem.js +5 -2
  88. package/node/components/theme/components/MuiOutlinedInput.js +15 -12
  89. package/node/components/theme/components/MuiSwitch.js +14 -9
  90. package/node/components/theme/components/MuiTableRow.js +11 -3
  91. 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 constants_1 = require("../../MenuOrganization/constants");
8
- const constants_2 = require("../../MenuOrganization/OrganizationButton/constants");
9
- const constants_3 = require("../../Profile/constants");
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 constants_4 = require("../constants");
12
- const constants_5 = require("../DashboardSidebar/constants");
13
- const constants_6 = require("./constants");
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: ${constants_4.HEADER_HEIGHT_DESKTOP};
27
- margin-top: ${({ $isFocusedMode }) => $isFocusedMode ? `-${constants_4.HEADER_HEIGHT_DESKTOP}` : 0};
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: ${constants_4.HEADER_HEIGHT_LAPTOP};
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: ${constants_4.HEADER_HEIGHT_MOBILE};
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
- .${constants_4.dashboardLayoutClassnames.root}:not(:has(.${constants_5.dashboardSidebarClassnames.root}))
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
- &.${constants_6.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
91
- & .${constants_1.menuOrganizationClassnames.organizationData} {
91
+ &.${constants_7.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
92
+ & .${constants_2.menuOrganizationClassnames.organizationData} {
92
93
  display: none;
93
94
  }
94
- & .${constants_1.menuOrganizationClassnames.button} {
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
- &.${constants_6.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
152
- & .${constants_1.menuOrganizationClassnames.button} {
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
- &.${constants_6.dashboardLayoutHeaderClassnames.featureInSidebar} {
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) + ${constants_4.HEADER_HEIGHT_MOBILE});
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
- &.${constants_6.dashboardLayoutHeaderClassnames.mobileSidebarPriorityFeatureVisible} {
181
+ &.${constants_7.dashboardLayoutHeaderClassnames.mobileSidebarPriorityFeatureVisible} {
181
182
  transform: translateX(0);
182
183
  }
183
184
 
184
- & .${constants_1.menuOrganizationClassnames.button}, & .${constants_3.profileClassnames.button} {
185
- height: ${constants_2.MOBILE_BUTTON_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
- &:hover {
191
- border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
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
- &.${constants_6.dashboardLayoutHeaderClassnames.hasNotificationList} {
202
+ &.${constants_7.dashboardLayoutHeaderClassnames.hasNotificationList} {
200
203
  gap: ${({ theme }) => theme.spacing(4)};
201
204
 
202
- height: ${constants_2.MOBILE_BUTTON_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
- & .${constants_1.menuOrganizationClassnames.button}, & .${constants_3.profileClassnames.button} {
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
- &.${constants_6.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
218
- & .${constants_1.menuOrganizationClassnames.button} {
220
+ &.${constants_7.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
221
+ & .${constants_2.menuOrganizationClassnames.button} {
219
222
  padding: ${({ theme }) => theme.spacing(2, 0)};
220
223
  }
221
224
 
222
- & .${constants_6.dashboardLayoutHeaderClassnames.profile} {
225
+ & .${constants_7.dashboardLayoutHeaderClassnames.profile} {
223
226
  display: block;
224
227
  flex-grow: 1;
225
228
  }
226
229
 
227
230
 
228
- & .${constants_3.profileClassnames.button} {
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
- & .${constants_3.profileClassnames.avatar} {
238
+ & .${constants_4.profileClassnames.avatar} {
236
239
  display: none;
237
240
  }
238
241
 
239
- & .${constants_3.profileClassnames.user} {
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 constants_1 = require("./constants");
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
- &:hover {
21
- background-color: ${({ theme }) => theme.palette.background.elementHover};
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(.${constants_1.sidebarPopoverItemClassnames.content}:focus-visible) {
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 constants_1 = require("../constants");
10
- const constants_2 = require("./constants");
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
- &.${constants_2.dataGridRowClassnames.hidden}::before {
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(${constants_1.ROOT_ACTION_CELL_WIDTH}px * var(--level) - ${constants_1.TREE_LINE_WIDTH}px));
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
- &.${constants_2.dataGridRowClassnames.showConnector}::before,
34
- & .${constants_2.dataGridRowContentClassnames.root}::before {
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
- &.${constants_2.dataGridRowClassnames.mobileVariantCards} {
53
+ &.${constants_3.dataGridRowClassnames.mobileVariantCards} {
53
54
  border-bottom: none;
54
55
 
55
- &:not(.${constants_2.dataGridRowClassnames.nestedChildren}) {
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
- &.${constants_2.dataGridRowClassnames.hasNestedChildren} {
65
- :not(.${constants_2.dataGridRowClassnames.nestedChildren}) .${Cell_1.dataGridCellClassnames.root}:last-of-type {
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(.${constants_2.dataGridRowClassnames.nestedChildren}) > .${constants_2.dataGridRowContentClassnames.root} .${Cell_1.dataGridCellClassnames.root}:not(.${constants_2.dataGridRowCellClassnames.firstCell}) {
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(.${constants_2.dataGridRowClassnames.nestedChildren})
93
- > .${constants_2.dataGridRowContentClassnames.root} .${Cell_1.dataGridCellClassnames.root}.${constants_2.dataGridRowCellClassnames.firstCell}
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: ${constants_1.MOBILE_TREE_LINE_WIDTH}px;
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
- &.${constants_2.dataGridRowClassnames.nestedChildren} {
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(${constants_1.ROOT_ACTION_CELL_WIDTH}px * var(--level) - ${constants_1.TREE_LINE_WIDTH}px));
151
+ transform: translateX(calc(${constants_2.ROOT_ACTION_CELL_WIDTH}px * var(--level) - ${constants_2.TREE_LINE_WIDTH}px));
151
152
 
152
- width: ${constants_1.TREE_LINE_WIDTH}px;
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
- .${constants_2.dataGridRowClassnames.nestedChildren} &::before {
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: ${constants_1.MOBILE_TREE_LINE_WIDTH}px;
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
- &.${constants_2.dataGridRowContentClassnames.active} {
180
+ &.${constants_3.dataGridRowContentClassnames.active} {
180
181
  background-color: ${({ theme }) => theme.palette.primary[100]};
181
182
  }
182
183
 
183
- &:hover {
184
- background-color: ${({ theme }) => theme.palette.background.elementHover};
184
+ ${constants_1.HOVER_MEDIA} {
185
+ &:hover {
186
+ background-color: ${({ theme }) => theme.palette.background.elementHover};
185
187
 
186
- &.${constants_2.dataGridRowContentClassnames.active} {
187
- background-color: ${({ theme }) => theme.palette.primary[100]};
188
- }
188
+ &.${constants_3.dataGridRowContentClassnames.active} {
189
+ background-color: ${({ theme }) => theme.palette.primary[100]};
190
+ }
189
191
 
190
- &.${constants_2.dataGridRowContentClassnames.hovered} {
191
- cursor: pointer;
192
+ &.${constants_3.dataGridRowContentClassnames.hovered} {
193
+ cursor: pointer;
194
+ }
192
195
  }
193
196
  }
194
197
 
195
198
 
196
- &.${constants_2.dataGridRowClassnames.hover} {
199
+ &.${constants_3.dataGridRowClassnames.hover} {
197
200
  background-color: ${({ theme }) => theme.palette.background.elementHover};
198
201
 
199
- &.${constants_2.dataGridRowContentClassnames.hovered} {
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
- &.${constants_2.dataGridRowContentClassnames.active} {
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) * ${constants_1.ROOT_ACTION_CELL_WIDTH}px);
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: ${constants_1.ROOT_ACTION_CELL_WIDTH}px;
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: ${constants_1.ROOT_ACTION_CELL_WIDTH}px;
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
- &:hover {
253
- background-color: ${({ theme }) => theme.palette.grey[300]};
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
- &.${constants_2.dataGridGroupedColumnLabelClassnames.hidden} {
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 constants_1 = require("../constants");
6
- const constants_2 = require("./constants");
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: ${constants_1.ROOT_ACTION_CELL_WIDTH}px;
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
- &.${constants_2.dataGridRowBaseClassnames.mobileVariantCards} {
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
- &.${constants_2.dataGridRowBaseClassnames.active} {
53
+ &.${constants_3.dataGridRowBaseClassnames.active} {
53
54
  background-color: ${({ theme }) => theme.palette.primary[100]};
54
55
  }
55
56
 
56
- &:hover {
57
- background-color: ${({ theme }) => theme.palette.background.elementHover};
57
+ ${constants_1.HOVER_MEDIA} {
58
+ &:hover {
59
+ background-color: ${({ theme }) => theme.palette.background.elementHover};
58
60
 
59
- &.${constants_2.dataGridRowBaseClassnames.active} {
60
- background-color: ${({ theme }) => theme.palette.primary[100]};
61
- }
61
+ &.${constants_3.dataGridRowBaseClassnames.active} {
62
+ background-color: ${({ theme }) => theme.palette.primary[100]};
63
+ }
62
64
 
63
- &.${constants_2.dataGridRowBaseClassnames.hovered} {
64
- cursor: pointer;
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
- &.${constants_2.dataGridRowBaseClassnames.active} {
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("../DataGrid/constants");
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 constants_2 = require("./constants");
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
- &:hover {
51
- background-color: ${({ theme }) => theme.palette.grey[300]};
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: ${constants_1.ROOT_ACTION_CELL_WIDTH}px;
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
- &.${constants_2.collapsibleRowClassnames.chevronIconActive} {
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
- & .${constants_2.collapsibleRowClassnames.collapseButton} {
96
+ & .${constants_3.collapsibleRowClassnames.collapseButton} {
94
97
  padding-left: ${({ theme }) => theme.spacing(4)};
95
98
  }
96
99
 
97
- & .${constants_2.collapsibleRowClassnames.collapsibleContent} {
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
- &:hover {
23
- text-decoration: ${({ $canCopy }) => ($canCopy ? 'underline' : 'none')};
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
- &:hover {
35
- background-color: ${({ theme }) => theme.palette.background.elementHover};
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
- :hover {
80
- color: ${(props) => getColor({ ...props })};
80
+ ${constants_1.HOVER_MEDIA} {
81
+ :hover {
82
+ color: ${(props) => getColor({ ...props })};
81
83
 
82
- background: ${(props) => getBgColor({ ...props, fabState: enums_1.FabStates.Hover })};
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 {