@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
|
@@ -5,6 +5,7 @@ const Typography_1 = require("@mui/material/Typography");
|
|
|
5
5
|
const ChevronROutlineMd_1 = require("../../../icons/ChevronROutlineMd");
|
|
6
6
|
const Button_1 = require("../../Button");
|
|
7
7
|
const Collapse_1 = require("../../Collapse");
|
|
8
|
+
const constants_1 = require("../../constants");
|
|
8
9
|
const Description_1 = require("../../Description");
|
|
9
10
|
const IconButton_1 = require("../../IconButton");
|
|
10
11
|
const OverflowTypography_1 = require("../../OverflowTypography");
|
|
@@ -12,7 +13,7 @@ const SvgIcon_1 = require("../../SvgIcon");
|
|
|
12
13
|
const styled_1 = require("../../styled");
|
|
13
14
|
const Tooltip_1 = require("../../Tooltip");
|
|
14
15
|
const Typography_2 = require("../../Typography");
|
|
15
|
-
const
|
|
16
|
+
const constants_2 = require("./constants");
|
|
16
17
|
exports.Item = (0, styled_1.styled)('li', {
|
|
17
18
|
shouldForwardProp: (prop) => !['as'].includes(prop),
|
|
18
19
|
}) `
|
|
@@ -28,8 +29,8 @@ exports.Item = (0, styled_1.styled)('li', {
|
|
|
28
29
|
top: 0;
|
|
29
30
|
transform: translateX(
|
|
30
31
|
calc(
|
|
31
|
-
((${
|
|
32
|
-
${
|
|
32
|
+
((${constants_2.COLLAPSE_BUTTON_WIDTH} + ${constants_2.GAP_WIDTH}) * var(--tree-item-level)) -
|
|
33
|
+
${constants_2.HALF_PADDING_COLLAPSE_BUTTON_WIDTH}
|
|
33
34
|
)
|
|
34
35
|
);
|
|
35
36
|
|
|
@@ -69,24 +70,38 @@ exports.ItemContent = (0, styled_1.styled)('div') `
|
|
|
69
70
|
duration: theme.transitions.duration.shortest,
|
|
70
71
|
})};
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
${constants_1.HOVER_MEDIA} {
|
|
74
|
+
&:hover {
|
|
75
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
76
|
+
}
|
|
74
77
|
}
|
|
75
78
|
|
|
76
|
-
&.${
|
|
79
|
+
&.${constants_2.treeClassnames.selected} {
|
|
77
80
|
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
78
81
|
|
|
79
|
-
|
|
82
|
+
${constants_1.HOVER_MEDIA} {
|
|
83
|
+
&:hover {
|
|
84
|
+
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:focus {
|
|
80
89
|
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
81
90
|
}
|
|
82
91
|
}
|
|
83
92
|
|
|
84
|
-
&.${
|
|
93
|
+
&.${constants_2.treeClassnames.disabled} {
|
|
85
94
|
cursor: default;
|
|
86
95
|
|
|
87
96
|
color: ${({ theme }) => theme.palette.text.disabled};
|
|
88
97
|
|
|
89
|
-
|
|
98
|
+
${constants_1.HOVER_MEDIA} {
|
|
99
|
+
&:hover {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:focus {
|
|
90
105
|
background-color: transparent;
|
|
91
106
|
}
|
|
92
107
|
}
|
|
@@ -103,7 +118,7 @@ exports.ItemContent = (0, styled_1.styled)('div') `
|
|
|
103
118
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
104
119
|
|
|
105
120
|
|
|
106
|
-
&.${
|
|
121
|
+
&.${constants_2.treeClassnames.hasNested} {
|
|
107
122
|
padding-right: ${({ theme }) => theme.spacing(11)};
|
|
108
123
|
}
|
|
109
124
|
|
|
@@ -120,31 +135,33 @@ exports.CollapseButton = (0, styled_1.styled)(IconButton_1.IconButton) `
|
|
|
120
135
|
position: relative;
|
|
121
136
|
z-index: 1;
|
|
122
137
|
|
|
123
|
-
width: ${
|
|
124
|
-
height: ${
|
|
125
|
-
margin-left: -${
|
|
138
|
+
width: ${constants_2.COLLAPSE_BUTTON_WIDTH};
|
|
139
|
+
height: ${constants_2.COLLAPSE_BUTTON_WIDTH};
|
|
140
|
+
margin-left: -${constants_2.COLLAPSE_BUTTON_WIDTH};
|
|
126
141
|
|
|
127
142
|
color: inherit;
|
|
128
143
|
|
|
129
|
-
&.${
|
|
144
|
+
&.${constants_2.treeClassnames.notBlockingExpandList} {
|
|
130
145
|
color: ${({ theme }) => theme.palette.text.primary};
|
|
131
146
|
}
|
|
132
147
|
|
|
133
148
|
&.${Button_1.buttonClasses.root} {
|
|
134
|
-
width: ${
|
|
135
|
-
height: ${
|
|
149
|
+
width: ${constants_2.COLLAPSE_BUTTON_WIDTH};
|
|
150
|
+
height: ${constants_2.COLLAPSE_BUTTON_WIDTH};
|
|
136
151
|
}
|
|
137
152
|
|
|
138
153
|
&.${Button_1.buttonClasses.root} .${SvgIcon_1.svgIconClassnames.root} {
|
|
139
|
-
width: ${
|
|
140
|
-
height: ${
|
|
154
|
+
width: ${constants_2.COLLAPSE_BUTTON_WIDTH};
|
|
155
|
+
height: ${constants_2.COLLAPSE_BUTTON_WIDTH};
|
|
141
156
|
}
|
|
142
157
|
|
|
143
|
-
|
|
144
|
-
|
|
158
|
+
${constants_1.HOVER_MEDIA} {
|
|
159
|
+
&:hover {
|
|
160
|
+
background-color: ${({ theme }) => theme.palette.grey[300]};
|
|
161
|
+
}
|
|
145
162
|
}
|
|
146
163
|
|
|
147
|
-
&.${
|
|
164
|
+
&.${constants_2.treeClassnames.open} .${SvgIcon_1.svgIconClassnames.root} {
|
|
148
165
|
transform: rotateZ(90deg);
|
|
149
166
|
}
|
|
150
167
|
|
|
@@ -155,25 +172,21 @@ exports.CollapseButton = (0, styled_1.styled)(IconButton_1.IconButton) `
|
|
|
155
172
|
right: 0;
|
|
156
173
|
bottom: 0;
|
|
157
174
|
|
|
158
|
-
width: ${
|
|
175
|
+
width: ${constants_2.MOBILE_COLLAPSE_BUTTON_WIDTH};
|
|
159
176
|
height: auto;
|
|
160
177
|
margin-left: 0;
|
|
161
178
|
padding: ${({ theme }) => theme.spacing(0, 4, 0, 8)};
|
|
162
179
|
|
|
163
180
|
border-radius: 0;
|
|
164
181
|
|
|
165
|
-
&.${
|
|
182
|
+
&.${constants_2.treeClassnames.open} .${SvgIcon_1.svgIconClassnames.root} {
|
|
166
183
|
transform: rotateZ(0deg);
|
|
167
184
|
}
|
|
168
185
|
|
|
169
186
|
&.${Button_1.buttonClasses.root} {
|
|
170
|
-
width: ${
|
|
187
|
+
width: ${constants_2.MOBILE_COLLAPSE_BUTTON_WIDTH};
|
|
171
188
|
height: auto;
|
|
172
189
|
}
|
|
173
|
-
|
|
174
|
-
&:hover {
|
|
175
|
-
background-color: transparent;
|
|
176
|
-
}
|
|
177
190
|
}
|
|
178
191
|
`;
|
|
179
192
|
exports.ChevronIcon = (0, styled_1.styled)(ChevronROutlineMd_1.ChevronROutlineMd) `
|
|
@@ -204,11 +217,11 @@ exports.LabelWrapper = styled_1.styled.div `
|
|
|
204
217
|
z-index: 1;
|
|
205
218
|
top: 0;
|
|
206
219
|
left: calc(
|
|
207
|
-
${
|
|
208
|
-
(${
|
|
220
|
+
${constants_2.HALF_PADDING_COLLAPSE_BUTTON_WIDTH} -
|
|
221
|
+
(${constants_2.COLLAPSE_BUTTON_WIDTH} + ${constants_2.GAP_WIDTH}) * 2
|
|
209
222
|
);
|
|
210
223
|
|
|
211
|
-
width: ${
|
|
224
|
+
width: ${constants_2.TREE_LINE_WIDTH};
|
|
212
225
|
|
|
213
226
|
/* Добавляем к высоте половину нижнего отступа, который не входит в высоту текущего элемента */
|
|
214
227
|
height: ${({ theme }) => `calc(50% + ${theme.spacing(1)}/2)`};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Медиа-выражение проверяющее что устройство поддерживает hover и является точным указателем
|
|
3
|
+
*/
|
|
4
|
+
export declare const HOVER_MEDIA = "@media (hover: hover) and (pointer: fine)";
|
|
5
|
+
/**
|
|
6
|
+
* Медиа-выражение проверяющее что устройство не поддерживает hover
|
|
7
|
+
*/
|
|
8
|
+
export declare const HOVER_NONE_MEDIA = "@media (hover: none)";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HOVER_NONE_MEDIA = exports.HOVER_MEDIA = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Медиа-выражение проверяющее что устройство поддерживает hover и является точным указателем
|
|
6
|
+
*/
|
|
7
|
+
exports.HOVER_MEDIA = '@media (hover: hover) and (pointer: fine)';
|
|
8
|
+
/**
|
|
9
|
+
* Медиа-выражение проверяющее что устройство не поддерживает hover
|
|
10
|
+
*/
|
|
11
|
+
exports.HOVER_NONE_MEDIA = '@media (hover: none)';
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MuiButton = exports.getButtonDisabledBackgroundColor = exports.getButtonBackgroundColor = exports.getButtonPaddingMobile = exports.getButtonPadding = exports.getButtonHeightMobile = exports.getButtonHeight = void 0;
|
|
4
4
|
const Button_1 = require("@mui/material/Button");
|
|
5
5
|
const Button_2 = require("../../Button");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
6
7
|
const SvgIcon_1 = require("../../SvgIcon");
|
|
7
8
|
/**
|
|
8
9
|
* Вспомогательная утилита для получения значения из values
|
|
@@ -375,29 +376,51 @@ exports.MuiButton = {
|
|
|
375
376
|
buttonState: Button_2.ButtonStates.Default,
|
|
376
377
|
}),
|
|
377
378
|
borderRadius: theme.shape.medium,
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
379
|
+
// Переопределяем media наследованное от Mui
|
|
380
|
+
[constants_1.HOVER_NONE_MEDIA]: {
|
|
381
|
+
'&:hover': {
|
|
382
|
+
backgroundColor: (0, exports.getButtonBackgroundColor)({
|
|
383
|
+
selected,
|
|
384
|
+
color,
|
|
385
|
+
variant,
|
|
386
|
+
theme,
|
|
387
|
+
buttonState: Button_2.ButtonStates.Default,
|
|
388
|
+
}),
|
|
389
|
+
boxShadow: 'unset',
|
|
390
|
+
border: getBorder({
|
|
391
|
+
theme,
|
|
392
|
+
variant,
|
|
393
|
+
color,
|
|
394
|
+
buttonState: Button_2.ButtonStates.Default,
|
|
395
|
+
selected,
|
|
396
|
+
}),
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
[constants_1.HOVER_MEDIA]: {
|
|
400
|
+
'&:hover': {
|
|
401
|
+
color: getButtonColor({
|
|
402
|
+
selected,
|
|
403
|
+
theme,
|
|
404
|
+
variant,
|
|
405
|
+
color,
|
|
406
|
+
buttonState: Button_2.ButtonStates.Hover,
|
|
407
|
+
}),
|
|
408
|
+
backgroundColor: (0, exports.getButtonBackgroundColor)({
|
|
409
|
+
selected,
|
|
410
|
+
color,
|
|
411
|
+
variant,
|
|
412
|
+
theme,
|
|
413
|
+
buttonState: Button_2.ButtonStates.Hover,
|
|
414
|
+
}),
|
|
415
|
+
boxShadow: 'none',
|
|
416
|
+
border: getBorder({
|
|
417
|
+
theme,
|
|
418
|
+
variant,
|
|
419
|
+
color,
|
|
420
|
+
buttonState: Button_2.ButtonStates.Hover,
|
|
421
|
+
selected,
|
|
422
|
+
}),
|
|
423
|
+
},
|
|
401
424
|
},
|
|
402
425
|
'&:active': {
|
|
403
426
|
color: getButtonColor({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MuiListItemButton = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
exports.MuiListItemButton = {
|
|
5
6
|
styleOverrides: {
|
|
6
7
|
root({ theme }) {
|
|
@@ -9,9 +10,16 @@ exports.MuiListItemButton = {
|
|
|
9
10
|
'&.Mui-selected': {
|
|
10
11
|
color: theme.palette.primary[800],
|
|
11
12
|
backgroundColor: theme.palette.grey[200],
|
|
13
|
+
[constants_1.HOVER_NONE_MEDIA]: {
|
|
14
|
+
'&:hover': {
|
|
15
|
+
backgroundColor: theme.palette.grey[200],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
12
18
|
},
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
[constants_1.HOVER_MEDIA]: {
|
|
20
|
+
'&:hover': {
|
|
21
|
+
backgroundColor: theme.palette.background.elementHover,
|
|
22
|
+
},
|
|
15
23
|
},
|
|
16
24
|
};
|
|
17
25
|
},
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MuiMenuItem = void 0;
|
|
4
4
|
const MenuItem_1 = require("@mui/material/MenuItem");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
exports.MuiMenuItem = {
|
|
6
7
|
styleOverrides: {
|
|
7
8
|
root({ theme }) {
|
|
8
9
|
return {
|
|
9
10
|
padding: theme.spacing(2, 2, 2, 3),
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
[constants_1.HOVER_MEDIA]: {
|
|
12
|
+
'&:hover': {
|
|
13
|
+
backgroundColor: theme.palette.background.elementHover,
|
|
14
|
+
},
|
|
12
15
|
},
|
|
13
16
|
[`&.${MenuItem_1.menuItemClasses.selected}`]: {
|
|
14
17
|
background: `linear-gradient(90deg, ${theme.palette.primary.main} 0, ${theme.palette.primary.main} 3px, ${theme.palette.primary['100']} 3px)`,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MuiOutlinedInput = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
exports.MuiOutlinedInput = {
|
|
5
6
|
defaultProps: {
|
|
6
7
|
notched: false,
|
|
@@ -13,28 +14,30 @@ exports.MuiOutlinedInput = {
|
|
|
13
14
|
color: theme.palette.grey[900],
|
|
14
15
|
background: theme.palette.background.element,
|
|
15
16
|
padding: theme.microSpacing(1, 0),
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
[constants_1.HOVER_MEDIA]: {
|
|
18
|
+
'&:hover': {
|
|
19
|
+
background: theme.palette.background.elementHover,
|
|
20
|
+
},
|
|
21
|
+
'&:hover .MuiOutlinedInput-notchedOutline': {
|
|
22
|
+
borderColor: theme.palette.grey[800],
|
|
23
|
+
transition: theme.transitions.create(['border-color'], {
|
|
24
|
+
easing: theme.transitions.easing.easeIn,
|
|
25
|
+
duration: theme.transitions.duration.shortest,
|
|
26
|
+
}),
|
|
27
|
+
},
|
|
28
|
+
'&.Mui-error:hover:not(.Mui-focused) .MuiOutlinedInput-notchedOutline': {
|
|
29
|
+
borderColor: theme.palette.error[900],
|
|
30
|
+
},
|
|
18
31
|
},
|
|
19
32
|
'&.Mui-disabled': {
|
|
20
33
|
backgroundColor: theme.palette.components.disabled,
|
|
21
34
|
},
|
|
22
|
-
'&:hover .MuiOutlinedInput-notchedOutline': {
|
|
23
|
-
borderColor: theme.palette.grey[800],
|
|
24
|
-
transition: theme.transitions.create(['border-color'], {
|
|
25
|
-
easing: theme.transitions.easing.easeIn,
|
|
26
|
-
duration: theme.transitions.duration.shortest,
|
|
27
|
-
}),
|
|
28
|
-
},
|
|
29
35
|
'&.Mui-disabled .MuiOutlinedInput-notchedOutline': {
|
|
30
36
|
border: 'none',
|
|
31
37
|
},
|
|
32
38
|
'&.Mui-error .MuiOutlinedInput-notchedOutline': {
|
|
33
39
|
borderColor: theme.palette.error.dark,
|
|
34
40
|
},
|
|
35
|
-
'&.Mui-error:hover:not(.Mui-focused) .MuiOutlinedInput-notchedOutline': {
|
|
36
|
-
borderColor: theme.palette.error[900],
|
|
37
|
-
},
|
|
38
41
|
'&.Mui-focused .MuiOutlinedInput-notchedOutline': {
|
|
39
42
|
borderColor: theme.palette.primary[700],
|
|
40
43
|
transition: 'none',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MuiSwitch = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
const prepareColorToUrl = (color) => color.replace('#', '%23');
|
|
5
6
|
const getCheckBackgroundImage = (color) => {
|
|
6
7
|
const preparedColor = prepareColorToUrl(color);
|
|
@@ -33,13 +34,15 @@ exports.MuiSwitch = {
|
|
|
33
34
|
opacity: 1,
|
|
34
35
|
},
|
|
35
36
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
[constants_1.HOVER_MEDIA]: {
|
|
38
|
+
// CHECKED HOVER
|
|
39
|
+
'& .Mui-checked:hover + .MuiSwitch-track': {
|
|
40
|
+
backgroundColor: theme.palette.primary[700],
|
|
41
|
+
},
|
|
42
|
+
// NOT CHECKED HOVER
|
|
43
|
+
'& :not(.Mui-checked):hover + .MuiSwitch-track': {
|
|
44
|
+
backgroundColor: theme.palette.grey[600],
|
|
45
|
+
},
|
|
43
46
|
},
|
|
44
47
|
// DISABLED TRACK
|
|
45
48
|
'& .MuiButtonBase-root.MuiSwitch-switchBase.Mui-disabled': {
|
|
@@ -61,8 +64,10 @@ exports.MuiSwitch = {
|
|
|
61
64
|
},
|
|
62
65
|
switchBase: {
|
|
63
66
|
padding: 0,
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
[constants_1.HOVER_MEDIA]: {
|
|
68
|
+
'&:hover, &.Mui-checked:hover': {
|
|
69
|
+
backgroundColor: 'transparent',
|
|
70
|
+
},
|
|
66
71
|
},
|
|
67
72
|
},
|
|
68
73
|
track({ theme }) {
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MuiTableRow = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
exports.MuiTableRow = {
|
|
5
6
|
styleOverrides: {
|
|
6
7
|
root({ theme }) {
|
|
7
8
|
return {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
[constants_1.HOVER_MEDIA]: {
|
|
10
|
+
'&.MuiTableRow-hover:hover': {
|
|
11
|
+
backgroundColor: theme.palette.background.elementHover,
|
|
12
|
+
cursor: 'pointer',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
[constants_1.HOVER_NONE_MEDIA]: {
|
|
16
|
+
'&.MuiTableRow-hover:hover': {
|
|
17
|
+
backgroundColor: 'transparent',
|
|
18
|
+
},
|
|
11
19
|
},
|
|
12
20
|
'&.Mui-selected': {
|
|
13
21
|
backgroundColor: theme.palette.primary['100'],
|
|
@@ -12,6 +12,7 @@ export declare const StyledDialog: import("@emotion/styled/dist/declarations/src
|
|
|
12
12
|
disableBackdropClick?: boolean | undefined;
|
|
13
13
|
size?: import("../../../components/Dialog").DialogSize | undefined;
|
|
14
14
|
headerContent?: import("react").ReactNode;
|
|
15
|
+
disableMobileDrawer?: boolean | undefined;
|
|
15
16
|
} & {
|
|
16
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
18
|
}, {}, {}>;
|