@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
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CloseButton = exports.StaticInner = exports.Inner = exports.Wrapper = void 0;
4
4
  const react_toastify_next_1 = require("react-toastify-next");
5
5
  const Button_1 = require("../../Button");
6
+ const constants_1 = require("../../constants");
6
7
  const styled_1 = require("../../styled");
7
- const constants_1 = require("../constants");
8
+ const constants_2 = require("../constants");
8
9
  const fade = (0, styled_1.keyframes) `
9
10
  from {
10
11
  opacity: 0;
@@ -69,7 +70,7 @@ exports.Wrapper = styled_1.styled.div `
69
70
  );
70
71
  }
71
72
 
72
- &.${constants_1.notifyClassnames.container} {
73
+ &.${constants_2.notifyClassnames.container} {
73
74
  display: flex;
74
75
  flex-direction: column;
75
76
  justify-content: end;
@@ -84,7 +85,7 @@ exports.Wrapper = styled_1.styled.div `
84
85
  /* stylelint-enable plugin/no-unsupported-browser-features */
85
86
 
86
87
  ${({ theme }) => theme.breakpoints.up('mobile')} {
87
- .${constants_1.notifyClassnames.stackHost} .Toastify {
88
+ .${constants_2.notifyClassnames.stackHost} .Toastify {
88
89
  overflow: hidden;
89
90
  }
90
91
  }
@@ -94,11 +95,11 @@ exports.Wrapper = styled_1.styled.div `
94
95
 
95
96
  height: auto;
96
97
 
97
- .${constants_1.notifyClassnames.stackHost} .Toastify {
98
+ .${constants_2.notifyClassnames.stackHost} .Toastify {
98
99
  overflow: visible;
99
100
  }
100
101
 
101
- .${constants_1.notifyClassnames.stack} {
102
+ .${constants_2.notifyClassnames.stack} {
102
103
  overflow: hidden auto;
103
104
  display: flex;
104
105
  flex-direction: column;
@@ -113,7 +114,7 @@ exports.Wrapper = styled_1.styled.div `
113
114
  -webkit-overflow-scrolling: touch;
114
115
  }
115
116
 
116
- .${constants_1.notifyClassnames.stack} .${constants_1.notifyClassnames.root} {
117
+ .${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root} {
117
118
  pointer-events: auto !important;
118
119
 
119
120
  position: relative !important;
@@ -124,7 +125,7 @@ exports.Wrapper = styled_1.styled.div `
124
125
  width: 100% !important;
125
126
  max-width: 100%;
126
127
  height: auto !important;
127
- min-height: ${constants_1.NOTIFY_HEIGHT_MOBILE};
128
+ min-height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
128
129
  max-height: fit-content !important;
129
130
  margin-top: 0 !important;
130
131
  margin-right: 0 !important;
@@ -137,40 +138,40 @@ exports.Wrapper = styled_1.styled.div `
137
138
  На мобильных контейнер не получает mouseEnter — toastify оставляет data-collapsed=true
138
139
  и скрывает direct children не‑последних тостов (.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0})
139
140
  */
140
- .${constants_1.notifyClassnames.stack} .Toastify__toast--stacked > * {
141
+ .${constants_2.notifyClassnames.stack} .Toastify__toast--stacked > * {
141
142
  opacity: 1 !important;
142
143
  }
143
144
 
144
- .${constants_1.notifyClassnames.stack} .${constants_1.notifyClassnames.root}__content {
145
+ .${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root}__content {
145
146
  max-height: 400px;
146
147
  margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
147
148
  }
148
149
 
149
- .${constants_1.notifyClassnames.stack} .${constants_1.notifyClassnames.root}__footer {
150
+ .${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root}__footer {
150
151
  margin-bottom: 0;
151
152
  }
152
153
 
153
- .${constants_1.notifyClassnames.stack} .Toastify__toast--stacked::before {
154
+ .${constants_2.notifyClassnames.stack} .Toastify__toast--stacked::before {
154
155
  display: none;
155
156
  }
156
157
  }
157
158
  }
158
159
 
159
- .${constants_1.notifyClassnames.animationIn} {
160
+ .${constants_2.notifyClassnames.animationIn} {
160
161
  animation: ${leaveIn} ease-in-out ${({ theme }) => theme.transitions.duration.standard}ms;
161
162
  animation-fill-mode: both;
162
163
  }
163
164
 
164
- .${constants_1.notifyClassnames.animationOut} {
165
+ .${constants_2.notifyClassnames.animationOut} {
165
166
  animation: ${leaveOut} ease-in-out;
166
167
  animation-fill-mode: both;
167
168
  }
168
169
 
169
- .${constants_1.notifyClassnames.root} {
170
+ .${constants_2.notifyClassnames.root} {
170
171
  overflow: hidden !important;
171
172
 
172
173
  width: 400px;
173
- height: ${constants_1.NOTIFY_HEIGHT};
174
+ height: ${constants_2.NOTIFY_HEIGHT};
174
175
  padding: 0;
175
176
 
176
177
  box-shadow: ${({ theme }) => theme.elevation[300]};
@@ -193,10 +194,10 @@ exports.Wrapper = styled_1.styled.div `
193
194
  height: 3px;
194
195
  }
195
196
  ${({ theme }) => theme.breakpoints.up('mobile')} {
196
- min-height: ${constants_1.NOTIFY_HEIGHT};
197
+ min-height: ${constants_2.NOTIFY_HEIGHT};
197
198
  }
198
199
  ${({ theme }) => theme.breakpoints.down('mobile')} {
199
- min-height: ${constants_1.NOTIFY_HEIGHT_MOBILE};
200
+ min-height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
200
201
  }
201
202
 
202
203
  .Toastify__progress-bar--wrp {
@@ -209,16 +210,16 @@ exports.Wrapper = styled_1.styled.div `
209
210
  opacity: 1;
210
211
  }
211
212
 
212
- &--${constants_1.NotificationVariantTypes.Info} {
213
+ &--${constants_2.NotificationVariantTypes.Info} {
213
214
  --toastify-color-progress-light: ${({ theme }) => theme.palette.primary[800]};
214
215
  }
215
- &--${constants_1.NotificationVariantTypes.Success} {
216
+ &--${constants_2.NotificationVariantTypes.Success} {
216
217
  --toastify-color-progress-light: ${({ theme }) => theme.palette.success[800]};
217
218
  }
218
- &--${constants_1.NotificationVariantTypes.Warning} {
219
+ &--${constants_2.NotificationVariantTypes.Warning} {
219
220
  --toastify-color-progress-light: ${({ theme }) => theme.palette.warning[800]};
220
221
  }
221
- &--${constants_1.NotificationVariantTypes.Error} {
222
+ &--${constants_2.NotificationVariantTypes.Error} {
222
223
  --toastify-color-progress-light: ${({ theme }) => theme.palette.error[800]};
223
224
  }
224
225
 
@@ -228,14 +229,14 @@ exports.Wrapper = styled_1.styled.div `
228
229
  }
229
230
  }
230
231
 
231
- .${constants_1.notifyClassnames.root}__content {
232
+ .${constants_2.notifyClassnames.root}__content {
232
233
  overflow: hidden;
233
234
 
234
235
  max-height: 0;
235
236
  margin-top: 0;
236
237
  }
237
238
 
238
- .${constants_1.notifyClassnames.root}__footer {
239
+ .${constants_2.notifyClassnames.root}__footer {
239
240
  margin-bottom: ${({ theme }) => theme.spacing(-3)};
240
241
 
241
242
  transition: ${({ theme }) => theme.transitions.create(['margin-bottom'], {
@@ -246,21 +247,21 @@ exports.Wrapper = styled_1.styled.div `
246
247
 
247
248
  /* Стили для уведомлений в стеке */
248
249
  ${({ theme }) => theme.breakpoints.up('mobile')} {
249
- .${constants_1.notifyClassnames.stack} .${constants_1.notifyClassnames.root} {
250
+ .${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root} {
250
251
  position: relative;
251
252
  transform: scale(var(--s));
252
253
 
253
254
  &:not(:last-of-type) {
254
255
  margin-bottom: calc(
255
- ${({ theme }) => theme.spacing(4)} - ${constants_1.NOTIFY_HEIGHT}
256
+ ${({ theme }) => theme.spacing(4)} - ${constants_2.NOTIFY_HEIGHT}
256
257
  );
257
258
  }
258
259
 
259
260
  &:last-of-type {
260
261
  height: auto;
261
- min-height: ${constants_1.NOTIFY_HEIGHT};
262
+ min-height: ${constants_2.NOTIFY_HEIGHT};
262
263
 
263
- .${constants_1.notifyClassnames.root}__content {
264
+ .${constants_2.notifyClassnames.root}__content {
264
265
  max-height: 400px;
265
266
  margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
266
267
  }
@@ -268,13 +269,13 @@ exports.Wrapper = styled_1.styled.div `
268
269
 
269
270
  /* В свернутом виде показываем не более 3-x уведомлений */
270
271
  &:not(:nth-last-of-type(-n + 3)) {
271
- margin-bottom: -${constants_1.NOTIFY_HEIGHT};
272
+ margin-bottom: -${constants_2.NOTIFY_HEIGHT};
272
273
 
273
274
  opacity: 0;
274
275
  }
275
276
 
276
277
  /* Отключаем анимацию при появлении нового уведомления */
277
- &[${constants_1.NOTIFY_NO_TRANSITION_ATTR}='true'] {
278
+ &[${constants_2.NOTIFY_NO_TRANSITION_ATTR}='true'] {
278
279
  transition-duration: 0s !important;
279
280
  }
280
281
  }
@@ -282,8 +283,8 @@ exports.Wrapper = styled_1.styled.div `
282
283
 
283
284
  /* Мобильный стек в свёрнутом виде: последний в DOM (самый новый) — сверху; остальные без участия в раскладке */
284
285
  ${({ theme }) => theme.breakpoints.down('mobile')} {
285
- &:not(.${constants_1.notifyClassnames.container}) {
286
- .${constants_1.notifyClassnames.stack} {
286
+ &:not(.${constants_2.notifyClassnames.container}) {
287
+ .${constants_2.notifyClassnames.stack} {
287
288
  position: relative;
288
289
 
289
290
  overflow: visible;
@@ -301,7 +302,7 @@ exports.Wrapper = styled_1.styled.div `
301
302
 
302
303
  /* Причина игнора: Не критично для отображения */
303
304
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
304
- &:has(.${constants_1.notifyClassnames.root}:not(.${constants_1.notifyClassnames.animationOut}) ~ .${constants_1.notifyClassnames.root}:not(.${constants_1.notifyClassnames.animationOut})) {
305
+ &:has(.${constants_2.notifyClassnames.root}:not(.${constants_2.notifyClassnames.animationOut}) ~ .${constants_2.notifyClassnames.root}:not(.${constants_2.notifyClassnames.animationOut})) {
305
306
  padding-top: ${({ theme }) => theme.spacing(4)};
306
307
 
307
308
  &::before,
@@ -314,7 +315,7 @@ exports.Wrapper = styled_1.styled.div `
314
315
  right: ${({ theme }) => theme.spacing(2)};
315
316
  left: ${({ theme }) => theme.spacing(2)};
316
317
 
317
- height: ${constants_1.NOTIFY_HEIGHT_MOBILE};
318
+ height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
318
319
 
319
320
  background: ${({ theme }) => theme.palette.background.paper};
320
321
  border-radius: ${({ theme }) => theme.shape.medium};
@@ -333,7 +334,7 @@ exports.Wrapper = styled_1.styled.div `
333
334
  }
334
335
  }
335
336
 
336
- .${constants_1.notifyClassnames.stack} .${constants_1.notifyClassnames.root}:not(:last-of-type) {
337
+ .${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root}:not(:last-of-type) {
337
338
  pointer-events: none;
338
339
 
339
340
  position: absolute;
@@ -352,13 +353,13 @@ exports.Wrapper = styled_1.styled.div `
352
353
  clip-path: inset(50%);
353
354
  border: 0;
354
355
 
355
- .${constants_1.notifyClassnames.root}__content {
356
+ .${constants_2.notifyClassnames.root}__content {
356
357
  max-height: 0 !important;
357
358
  margin: 0 !important;
358
359
  }
359
360
  }
360
361
 
361
- .${constants_1.notifyClassnames.stack} .${constants_1.notifyClassnames.root}:last-of-type {
362
+ .${constants_2.notifyClassnames.stack} .${constants_2.notifyClassnames.root}:last-of-type {
362
363
  position: relative;
363
364
  z-index: 1;
364
365
  transform: scale(var(--s, 1));
@@ -369,24 +370,24 @@ exports.Wrapper = styled_1.styled.div `
369
370
  width: 100% !important;
370
371
  min-width: 0 !important;
371
372
  max-width: 100% !important;
372
- min-height: ${constants_1.NOTIFY_HEIGHT_MOBILE};
373
+ min-height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
373
374
  margin-bottom: 0 !important;
374
375
 
375
376
  opacity: 1;
376
377
  border-radius: ${({ theme }) => theme.shape.medium};
377
378
 
378
- .${constants_1.notifyClassnames.root}__content {
379
+ .${constants_2.notifyClassnames.root}__content {
379
380
  max-height: 400px;
380
381
  margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
381
382
  }
382
383
  }
383
384
 
384
- .${constants_1.notifyClassnames.stackHost} .Toastify,
385
- .${constants_1.notifyClassnames.stackHost} .${constants_1.notifyClassnames.stack} {
385
+ .${constants_2.notifyClassnames.stackHost} .Toastify,
386
+ .${constants_2.notifyClassnames.stackHost} .${constants_2.notifyClassnames.stack} {
386
387
  overflow: visible !important;
387
388
  }
388
389
 
389
- .${constants_1.notifyClassnames.animationOut} {
390
+ .${constants_2.notifyClassnames.animationOut} {
390
391
  animation: ${leaveOutMobileStacked} ease-in-out ${({ theme }) => theme.transitions.duration.standard}ms;
391
392
  animation-fill-mode: both;
392
393
  }
@@ -404,7 +405,7 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
404
405
  padding-bottom: 0 !important;
405
406
  padding-left: ${({ theme }) => theme.spacing(3)} !important;
406
407
 
407
- .${constants_1.notifyClassnames.root} {
408
+ .${constants_2.notifyClassnames.root} {
408
409
  border-radius: ${({ theme }) => theme.shape.medium};
409
410
 
410
411
  &:last-of-type{
@@ -420,23 +421,23 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
420
421
 
421
422
  height: 100%;
422
423
 
423
- .${constants_1.notifyClassnames.root} {
424
+ .${constants_2.notifyClassnames.root} {
424
425
  position: relative;
425
426
  transform: unset;
426
427
 
427
428
  height: auto;
428
- min-height: ${constants_1.NOTIFY_HEIGHT};
429
+ min-height: ${constants_2.NOTIFY_HEIGHT};
429
430
  margin-bottom: ${({ theme }) => theme.spacing(1)} !important;
430
431
 
431
432
  opacity: 1 !important;
432
433
  }
433
434
 
434
- .${constants_1.notifyClassnames.root}__content {
435
+ .${constants_2.notifyClassnames.root}__content {
435
436
  max-height: 400px;
436
437
  margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
437
438
  }
438
439
 
439
- .${constants_1.notifyClassnames.root}__footer {
440
+ .${constants_2.notifyClassnames.root}__footer {
440
441
  margin-bottom: 0;
441
442
  }
442
443
 
@@ -453,20 +454,20 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
453
454
  padding-right: ${({ theme }) => theme.spacing(2)} !important;
454
455
  padding-left: ${({ theme }) => theme.spacing(2)} !important;
455
456
 
456
- .${constants_1.notifyClassnames.root} {
457
+ .${constants_2.notifyClassnames.root} {
457
458
  width: 100% !important;
458
459
  max-width: 100%;
459
460
  height: auto !important;
460
- min-height: ${constants_1.NOTIFY_HEIGHT_MOBILE};
461
+ min-height: ${constants_2.NOTIFY_HEIGHT_MOBILE};
461
462
  margin-bottom: ${({ theme }) => theme.spacing(2)} !important;
462
463
  }
463
464
 
464
- .${constants_1.notifyClassnames.root}__content {
465
+ .${constants_2.notifyClassnames.root}__content {
465
466
  max-height: 400px;
466
467
  margin: ${({ theme }) => theme.spacing(2, 0, 0, 8)};
467
468
  }
468
469
 
469
- .${constants_1.notifyClassnames.root}__footer {
470
+ .${constants_2.notifyClassnames.root}__footer {
470
471
  margin-bottom: 0;
471
472
  }
472
473
  }
@@ -474,7 +475,7 @@ exports.Inner = (0, styled_1.styled)(react_toastify_next_1.ToastContainer) `
474
475
  exports.StaticInner = (0, styled_1.styled)(exports.Inner) `
475
476
  margin-top: 0;
476
477
 
477
- .${constants_1.notifyClassnames.root} {
478
+ .${constants_2.notifyClassnames.root} {
478
479
  margin-bottom: ${({ theme }) => theme.spacing(1)};
479
480
  }
480
481
  `;
@@ -488,11 +489,13 @@ exports.CloseButton = (0, styled_1.styled)(Button_1.Button) `
488
489
 
489
490
  animation: ${fade} 500ms linear;
490
491
 
491
- &:hover {
492
- box-shadow: ${({ theme }) => theme.elevation[300]};
492
+ ${constants_1.HOVER_MEDIA} {
493
+ &:hover {
494
+ box-shadow: ${({ theme }) => theme.elevation[300]};
495
+ }
493
496
  }
494
497
 
495
- &.${constants_1.notifyClassnames.closeButtonAnimationOut} {
498
+ &.${constants_2.notifyClassnames.closeButtonAnimationOut} {
496
499
  opacity: 0;
497
500
  }
498
501
 
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IconWrapper = exports.Wrapper = void 0;
4
- const constants_1 = require("../../SvgIcon/constants");
4
+ const constants_1 = require("../../constants");
5
+ const constants_2 = require("../../SvgIcon/constants");
5
6
  const styled_1 = require("../../styled");
6
- const constants_2 = require("./constants");
7
+ const constants_3 = require("./constants");
7
8
  exports.Wrapper = styled_1.styled.li `
8
9
  cursor: pointer;
9
10
 
10
11
  height: 44px;
11
12
 
12
- & .${constants_2.pageAsideNavigationItemClassnames.root} {
13
+ & .${constants_3.pageAsideNavigationItemClassnames.root} {
13
14
  cursor: pointer;
14
15
 
15
16
  position: relative;
@@ -36,8 +37,10 @@ exports.Wrapper = styled_1.styled.li `
36
37
  color: ${({ theme }) => theme.palette.grey[800]};
37
38
  }
38
39
 
39
- &:hover {
40
- color: ${({ theme }) => theme.palette.primary[800]};
40
+ ${constants_1.HOVER_MEDIA} {
41
+ &:hover {
42
+ color: ${({ theme }) => theme.palette.primary[800]};
43
+ }
41
44
  }
42
45
 
43
46
  &:active {
@@ -45,7 +48,7 @@ exports.Wrapper = styled_1.styled.li `
45
48
  }
46
49
  }
47
50
 
48
- & .${constants_2.pageAsideNavigationItemClassnames.isActive} {
51
+ & .${constants_3.pageAsideNavigationItemClassnames.isActive} {
49
52
  background-color: ${({ theme }) => theme.palette.primary[100]};
50
53
 
51
54
  &::before {
@@ -65,7 +68,7 @@ exports.Wrapper = styled_1.styled.li `
65
68
  height: 40px;
66
69
  -webkit-tap-highlight-color: transparent;
67
70
 
68
- & .${constants_2.pageAsideNavigationItemClassnames.root} {
71
+ & .${constants_3.pageAsideNavigationItemClassnames.root} {
69
72
  box-sizing: border-box;
70
73
  height: inherit;
71
74
  padding: ${({ theme }) => theme.microSpacing(5, 6)};
@@ -76,10 +79,6 @@ exports.Wrapper = styled_1.styled.li `
76
79
  transition: ${({ theme }) => theme.transitions.create(['border-color', 'background-color'], {
77
80
  duration: theme.transitions.duration.shortest,
78
81
  })};
79
-
80
- &:hover {
81
- color: ${({ theme }) => theme.palette.grey[800]};
82
- }
83
82
 
84
83
  &:active {
85
84
  color: ${({ theme }) => theme.palette.grey[800]};
@@ -88,7 +87,7 @@ exports.Wrapper = styled_1.styled.li `
88
87
  }
89
88
  }
90
89
 
91
- & .${constants_2.pageAsideNavigationItemClassnames.isActive} {
90
+ & .${constants_3.pageAsideNavigationItemClassnames.isActive} {
92
91
  background-color: ${({ theme }) => theme.palette.grey[100]};
93
92
  border-color: ${({ theme }) => theme.palette.grey[800]};
94
93
 
@@ -105,7 +104,7 @@ exports.Wrapper = styled_1.styled.li `
105
104
  exports.IconWrapper = styled_1.styled.div `
106
105
  display: flex;
107
106
 
108
- & .${constants_1.svgIconClassnames.root} {
107
+ & .${constants_2.svgIconClassnames.root} {
109
108
  width: 20px;
110
109
  height: 20px;
111
110
  }
@@ -66,10 +66,6 @@ exports.ShowMoreButton = (0, styled_1.styled)(Button_1.default) `
66
66
  height: 40px;
67
67
  min-height: 40px;
68
68
  padding: 0;
69
-
70
- &:hover {
71
- background-color: unset;
72
- }
73
69
  }
74
70
  `;
75
71
  exports.StyledCollapse = (0, styled_1.styled)(Collapse_1.default) `
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IconWrapper = exports.Input = exports.Wrapper = void 0;
4
+ const constants_1 = require("../constants");
4
5
  const styled_1 = require("../styled");
5
6
  const mixins_1 = require("../styled/mixins");
6
- const constants_1 = require("./constants");
7
+ const constants_2 = require("./constants");
7
8
  const getOutlineColor = ({ theme, isHover, isDisabled, isError, isChecked, }) => {
8
9
  if (isDisabled) {
9
10
  return isChecked
@@ -35,14 +36,14 @@ const getFillColor = ({ theme, isHover, isDisabled, isError, isChecked, }) => {
35
36
  exports.Wrapper = (0, styled_1.styled)('span', {
36
37
  shouldForwardProp: (prop) => !['$isDisabled', '$isError', '$isChecked'].includes(prop),
37
38
  }) `
38
- .${constants_1.radioClassnames.dot} {
39
+ .${constants_2.radioClassnames.dot} {
39
40
  transform-origin: center;
40
41
  transform: ${({ $isChecked }) => ($isChecked ? 'scale(1)' : 'scale(0)')};
41
42
 
42
43
  ${mixins_1.easeOutBackTransition};
43
44
  }
44
45
 
45
- .${constants_1.radioClassnames.outerCircle} {
46
+ .${constants_2.radioClassnames.outerCircle} {
46
47
  fill: ${({ theme, $isDisabled, $isError, $isChecked }) => getFillColor({
47
48
  theme,
48
49
  isHover: false,
@@ -61,22 +62,24 @@ exports.Wrapper = (0, styled_1.styled)('span', {
61
62
  ${mixins_1.easeOutBackTransition};
62
63
  }
63
64
 
64
- &:hover {
65
- .${constants_1.radioClassnames.outerCircle} {
66
- fill: ${({ theme, $isDisabled, $isError, $isChecked }) => getFillColor({
65
+ ${constants_1.HOVER_MEDIA} {
66
+ &:hover {
67
+ .${constants_2.radioClassnames.outerCircle} {
68
+ fill: ${({ theme, $isDisabled, $isError, $isChecked }) => getFillColor({
67
69
  theme,
68
70
  isHover: true,
69
71
  isDisabled: $isDisabled,
70
72
  isError: $isError,
71
73
  isChecked: $isChecked,
72
74
  })};
73
- stroke: ${({ theme, $isDisabled, $isError, $isChecked }) => getOutlineColor({
75
+ stroke: ${({ theme, $isDisabled, $isError, $isChecked }) => getOutlineColor({
74
76
  theme,
75
77
  isHover: true,
76
78
  isDisabled: $isDisabled,
77
79
  isError: $isError,
78
80
  isChecked: $isChecked,
79
81
  })};
82
+ }
80
83
  }
81
84
  }
82
85
  `;
@@ -85,19 +88,19 @@ exports.Input = styled_1.styled.input `
85
88
 
86
89
  position: absolute;
87
90
 
88
- width: ${constants_1.RADIO_SIZE};
89
- height: ${constants_1.RADIO_SIZE};
91
+ width: ${constants_2.RADIO_SIZE};
92
+ height: ${constants_2.RADIO_SIZE};
90
93
  margin: 0;
91
94
 
92
95
  opacity: 0;
93
96
 
94
97
  ${({ theme }) => theme.breakpoints.down('mobile')} {
95
- width: ${constants_1.MOBILE_RADIO_SIZE};
96
- height: ${constants_1.MOBILE_RADIO_SIZE};
98
+ width: ${constants_2.MOBILE_RADIO_SIZE};
99
+ height: ${constants_2.MOBILE_RADIO_SIZE};
97
100
  }
98
101
 
99
102
  &:focus-visible {
100
- ~.${constants_1.radioClassnames.iconWrapper} > .${constants_1.radioClassnames.icon} {
103
+ ~.${constants_2.radioClassnames.iconWrapper} > .${constants_2.radioClassnames.icon} {
101
104
  border-radius: ${({ theme }) => theme.shape.medium};
102
105
  outline: 2px solid ${({ theme }) => theme.palette.components.focused};
103
106
  outline-offset: -2px;
@@ -109,14 +112,14 @@ exports.IconWrapper = styled_1.styled.span `
109
112
  align-items: center;
110
113
  justify-content: center;
111
114
 
112
- width: ${constants_1.RADIO_SIZE};
113
- height: ${constants_1.RADIO_SIZE};
115
+ width: ${constants_2.RADIO_SIZE};
116
+ height: ${constants_2.RADIO_SIZE};
114
117
 
115
118
  ${({ theme }) => theme.breakpoints.down('mobile')} {
116
- width: ${constants_1.MOBILE_RADIO_SIZE};
117
- height: ${constants_1.MOBILE_RADIO_SIZE};
119
+ width: ${constants_2.MOBILE_RADIO_SIZE};
120
+ height: ${constants_2.MOBILE_RADIO_SIZE};
118
121
 
119
- .${constants_1.radioClassnames.icon} {
122
+ .${constants_2.radioClassnames.icon} {
120
123
  width: 20px;
121
124
  height: 20px;
122
125
  }
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledRadio = exports.Content = exports.Wrapper = void 0;
4
+ const constants_1 = require("../constants");
4
5
  const Radio_1 = require("../Radio");
5
6
  const styled_1 = require("../styled");
6
- const constants_1 = require("./constants");
7
+ const constants_2 = require("./constants");
7
8
  exports.Wrapper = styled_1.styled.label `
8
9
  cursor: pointer;
9
10
 
@@ -62,14 +63,16 @@ exports.Wrapper = styled_1.styled.label `
62
63
  outline-offset: -2px;
63
64
  `}
64
65
 
65
- & .${Radio_1.radioClassnames.disabled} ~ .${constants_1.radioCardClassnames.content} {
66
+ & .${Radio_1.radioClassnames.disabled} ~ .${constants_2.radioCardClassnames.content} {
66
67
  cursor: default;
67
68
  }
68
69
 
69
- &:hover {
70
- background-color: ${({ theme, $isDisabled }) => $isDisabled
70
+ ${constants_1.HOVER_MEDIA} {
71
+ &:hover {
72
+ background-color: ${({ theme, $isDisabled }) => $isDisabled
71
73
  ? theme.palette.background.element
72
74
  : theme.palette.background.elementHover};
75
+ }
73
76
  }
74
77
  `;
75
78
  exports.Content = styled_1.styled.div `
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StaticCalendarGridButton = void 0;
4
4
  const Button_1 = require("@mui/material/Button");
5
+ const constants_1 = require("../../constants");
5
6
  const styled_1 = require("../../styled");
6
7
  const StaticCalendarButton_1 = require("../StaticCalendarButton");
7
8
  const utils_1 = require("./utils");
@@ -56,11 +57,13 @@ exports.StaticCalendarGridButton = (0, styled_1.styled)(StaticCalendarButton_1.S
56
57
  background-color: currentColor;
57
58
  }
58
59
 
59
- &:hover {
60
- border-radius: ${(props) => (0, utils_1.getLeftBorderRadius)({ isHovered: true, ...props })}
61
- ${(props) => (0, utils_1.getRightBorderRadius)({ isHovered: true, ...props })}
62
- ${(props) => (0, utils_1.getRightBorderRadius)({ isHovered: true, ...props })}
63
- ${(props) => (0, utils_1.getLeftBorderRadius)({ isHovered: true, ...props })};
60
+ ${constants_1.HOVER_MEDIA} {
61
+ &:hover {
62
+ border-radius: ${(props) => (0, utils_1.getLeftBorderRadius)({ isHovered: true, ...props })}
63
+ ${(props) => (0, utils_1.getRightBorderRadius)({ isHovered: true, ...props })}
64
+ ${(props) => (0, utils_1.getRightBorderRadius)({ isHovered: true, ...props })}
65
+ ${(props) => (0, utils_1.getLeftBorderRadius)({ isHovered: true, ...props })};
66
+ }
64
67
  }
65
68
 
66
69
  &,
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.StyledTab = void 0;
7
7
  const Tab_1 = __importDefault(require("@mui/material/Tab"));
8
+ const constants_1 = require("../../constants");
8
9
  const styled_1 = require("../../styled");
9
10
  exports.StyledTab = (0, styled_1.styled)(Tab_1.default) `
10
11
  min-height: 36px;
@@ -19,8 +20,10 @@ exports.StyledTab = (0, styled_1.styled)(Tab_1.default) `
19
20
  margin-right: 0;
20
21
  }
21
22
 
22
- &:hover {
23
- color: ${({ theme }) => theme.palette.primary[800]};
23
+ ${constants_1.HOVER_MEDIA} {
24
+ &:hover {
25
+ color: ${({ theme }) => theme.palette.primary[800]};
26
+ }
24
27
  }
25
28
 
26
29
  &:active {