@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.
Files changed (147) 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/Dialog/Dialog.d.ts +1 -1
  16. package/components/Dialog/Dialog.js +5 -4
  17. package/components/Dialog/styles.js +8 -0
  18. package/components/Dialog/types.d.ts +5 -0
  19. package/components/Dialog/useLogic/useLogic.d.ts +3 -3
  20. package/components/Dialog/useLogic/useLogic.js +6 -2
  21. package/components/ExpansionPanel/Summary/styles.js +5 -2
  22. package/components/Fab/styles.js +12 -3
  23. package/components/HintPopover/styles.js +2 -1
  24. package/components/InfiniteDataList/styles.js +5 -2
  25. package/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +5 -2
  26. package/components/InputGroup/styles.js +8 -5
  27. package/components/JsonViewer/JsonNode/styles.js +5 -2
  28. package/components/Link/styles.js +11 -6
  29. package/components/ListItem/styles.js +5 -2
  30. package/components/MenuOrganization/OrganizationButton/styles.js +5 -6
  31. package/components/NavMenu/Item/ItemButton/styles.js +14 -7
  32. package/components/NewPopover/NewPopover.js +1 -0
  33. package/components/NewPopover/constants.d.ts +5 -0
  34. package/components/NewPopover/constants.js +6 -1
  35. package/components/NewPopover/styles.js +2 -1
  36. package/components/NewPopover/types.d.ts +1 -1
  37. package/components/NewPopover/useLogic/useLogic.d.ts +2 -2
  38. package/components/NewPopover/useLogic/useLogic.js +12 -12
  39. package/components/NewPopover/useLogic/utils/getFallbackPlacements/getFallbackPlacements.d.ts +7 -0
  40. package/components/NewPopover/useLogic/utils/getFallbackPlacements/getFallbackPlacements.js +19 -0
  41. package/components/NewPopover/useLogic/utils/getFallbackPlacements/index.d.ts +1 -0
  42. package/components/NewPopover/useLogic/utils/getFallbackPlacements/index.js +1 -0
  43. package/components/NewPopover/useLogic/utils/index.d.ts +4 -0
  44. package/components/NewPopover/useLogic/utils/index.js +4 -0
  45. package/components/NewStepper/Step/styles.js +18 -15
  46. package/components/Notification/NotificationStackContainer/styles.js +5 -2
  47. package/components/Onboarding/types/step.d.ts +1 -1
  48. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.d.ts +1 -1
  49. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.js +1 -1
  50. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +1 -0
  51. package/components/Onboarding/ui/hooks/useTrackedRect/constants.d.ts +6 -0
  52. package/components/Onboarding/ui/hooks/useTrackedRect/constants.js +6 -0
  53. package/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.js +34 -12
  54. package/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +5 -6
  55. package/components/PageHeader/MobilePageActions/styles.js +0 -4
  56. package/components/Radio/styles.js +7 -4
  57. package/components/RadioCard/styles.js +5 -2
  58. package/components/StaticCalendar/StaticCalendarGridButton/styles.js +8 -5
  59. package/components/Tabs/Tab/styles.js +5 -2
  60. package/components/ToggleButton/styles.js +25 -10
  61. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +3 -3
  62. package/components/Tree/TreeItem/styles.js +23 -10
  63. package/components/constants/index.d.ts +1 -0
  64. package/components/constants/index.js +1 -0
  65. package/components/constants/media.d.ts +8 -0
  66. package/components/constants/media.js +8 -0
  67. package/components/theme/components/MuiButton.js +46 -23
  68. package/components/theme/components/MuiListItemButton.js +10 -2
  69. package/components/theme/components/MuiMenuItem.js +5 -2
  70. package/components/theme/components/MuiOutlinedInput.js +15 -12
  71. package/components/theme/components/MuiSwitch.js +14 -9
  72. package/components/theme/components/MuiTableRow.js +11 -3
  73. package/hook-form/FormFilters/FormFiltersDialog/styles.d.ts +1 -0
  74. package/node/components/Alert/styles.js +24 -14
  75. package/node/components/Autocomplete/styles.js +8 -5
  76. package/node/components/Breadcrumbs/styles.js +18 -13
  77. package/node/components/CheckableTag/styles.js +6 -3
  78. package/node/components/Checkbox/styles.js +26 -23
  79. package/node/components/Chip/styles.js +36 -31
  80. package/node/components/CodeField/styles.js +5 -2
  81. package/node/components/CopyTypography/styles.js +22 -8
  82. package/node/components/DashboardLayout/Header/styles.js +35 -32
  83. package/node/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +7 -4
  84. package/node/components/DataGrid/Row/styles.js +41 -46
  85. package/node/components/DataGrid/RowBase/styles.js +16 -23
  86. package/node/components/DataGridCollapsibleRow/styles.js +11 -8
  87. package/node/components/Description/Value/styles.js +5 -2
  88. package/node/components/Dialog/Dialog.d.ts +1 -1
  89. package/node/components/Dialog/Dialog.js +5 -4
  90. package/node/components/Dialog/styles.js +8 -0
  91. package/node/components/Dialog/types.d.ts +5 -0
  92. package/node/components/Dialog/useLogic/useLogic.d.ts +3 -3
  93. package/node/components/Dialog/useLogic/useLogic.js +6 -2
  94. package/node/components/ExpansionPanel/Summary/styles.js +5 -2
  95. package/node/components/Fab/styles.js +12 -3
  96. package/node/components/HintPopover/styles.js +2 -1
  97. package/node/components/InfiniteDataList/styles.js +7 -4
  98. package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +11 -8
  99. package/node/components/InputGroup/styles.js +8 -5
  100. package/node/components/JsonViewer/JsonNode/styles.js +5 -2
  101. package/node/components/Link/styles.js +13 -8
  102. package/node/components/ListItem/styles.js +10 -7
  103. package/node/components/MenuOrganization/OrganizationButton/styles.js +5 -6
  104. package/node/components/NavMenu/Item/ItemButton/styles.js +16 -9
  105. package/node/components/NewPopover/NewPopover.js +1 -0
  106. package/node/components/NewPopover/constants.d.ts +5 -0
  107. package/node/components/NewPopover/constants.js +7 -2
  108. package/node/components/NewPopover/styles.js +1 -0
  109. package/node/components/NewPopover/types.d.ts +1 -1
  110. package/node/components/NewPopover/useLogic/useLogic.d.ts +2 -2
  111. package/node/components/NewPopover/useLogic/useLogic.js +15 -15
  112. package/node/components/NewPopover/useLogic/utils/getFallbackPlacements/getFallbackPlacements.d.ts +7 -0
  113. package/node/components/NewPopover/useLogic/utils/getFallbackPlacements/getFallbackPlacements.js +23 -0
  114. package/node/components/NewPopover/useLogic/utils/getFallbackPlacements/index.d.ts +1 -0
  115. package/node/components/NewPopover/useLogic/utils/getFallbackPlacements/index.js +17 -0
  116. package/node/components/NewPopover/useLogic/utils/index.d.ts +4 -0
  117. package/node/components/NewPopover/useLogic/utils/index.js +20 -0
  118. package/node/components/NewStepper/Step/styles.js +68 -65
  119. package/node/components/Notification/NotificationStackContainer/styles.js +57 -54
  120. package/node/components/Onboarding/types/step.d.ts +1 -1
  121. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.d.ts +1 -1
  122. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.js +1 -1
  123. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +1 -0
  124. package/node/components/Onboarding/ui/hooks/useTrackedRect/constants.d.ts +6 -0
  125. package/node/components/Onboarding/ui/hooks/useTrackedRect/constants.js +9 -0
  126. package/node/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.js +34 -12
  127. package/node/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +12 -13
  128. package/node/components/PageHeader/MobilePageActions/styles.js +0 -4
  129. package/node/components/Radio/styles.js +20 -17
  130. package/node/components/RadioCard/styles.js +7 -4
  131. package/node/components/StaticCalendar/StaticCalendarGridButton/styles.js +8 -5
  132. package/node/components/Tabs/Tab/styles.js +5 -2
  133. package/node/components/ToggleButton/styles.js +27 -12
  134. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +3 -3
  135. package/node/components/Tree/TreeItem/styles.js +44 -31
  136. package/node/components/constants/index.d.ts +1 -0
  137. package/node/components/constants/index.js +1 -0
  138. package/node/components/constants/media.d.ts +8 -0
  139. package/node/components/constants/media.js +11 -0
  140. package/node/components/theme/components/MuiButton.js +46 -23
  141. package/node/components/theme/components/MuiListItemButton.js +10 -2
  142. package/node/components/theme/components/MuiMenuItem.js +5 -2
  143. package/node/components/theme/components/MuiOutlinedInput.js +15 -12
  144. package/node/components/theme/components/MuiSwitch.js +14 -9
  145. package/node/components/theme/components/MuiTableRow.js +11 -3
  146. package/node/hook-form/FormFilters/FormFiltersDialog/styles.d.ts +1 -0
  147. package/package.json +1 -1
@@ -7,6 +7,7 @@ exports.StyledBreadcrumbs = void 0;
7
7
  const Breadcrumbs_1 = __importDefault(require("@mui/material/Breadcrumbs"));
8
8
  const ButtonBase_1 = require("@mui/material/ButtonBase");
9
9
  const Link_1 = require("@mui/material/Link");
10
+ const constants_1 = require("../constants");
10
11
  const styled_1 = require("../styled");
11
12
  exports.StyledBreadcrumbs = (0, styled_1.styled)(Breadcrumbs_1.default) `
12
13
  .${ButtonBase_1.buttonBaseClasses.root} {
@@ -20,22 +21,24 @@ exports.StyledBreadcrumbs = (0, styled_1.styled)(Breadcrumbs_1.default) `
20
21
  outline: 2px solid ${({ theme }) => theme.palette.components.focused};
21
22
  }
22
23
 
23
- &:hover {
24
- &::after {
25
- content: '';
24
+ ${constants_1.HOVER_MEDIA} {
25
+ &:hover {
26
+ &::after {
27
+ content: '';
26
28
 
27
- position: absolute;
28
- bottom: 3px;
29
- left: ${({ theme }) => theme.microSpacing(3)};
29
+ position: absolute;
30
+ bottom: 3px;
31
+ left: ${({ theme }) => theme.microSpacing(3)};
30
32
 
31
- width: ${({ theme }) => theme.spacing(3)};
32
- height: 1px;
33
+ width: ${({ theme }) => theme.spacing(3)};
34
+ height: 1px;
33
35
 
34
- background-color: currentColor;
36
+ background-color: currentColor;
37
+ }
35
38
  }
36
39
  }
37
40
  }
38
-
41
+
39
42
  .MuiTypography-body1 {
40
43
  color: ${({ theme }) => theme.palette.primary[800]};
41
44
  }
@@ -46,9 +49,11 @@ exports.StyledBreadcrumbs = (0, styled_1.styled)(Breadcrumbs_1.default) `
46
49
  &:visited {
47
50
  color: ${({ theme }) => theme.palette.grey[700]};
48
51
  }
49
-
50
- &:hover {
51
- color: ${({ theme }) => theme.palette.grey[800]};
52
+
53
+ ${constants_1.HOVER_MEDIA} {
54
+ &:hover {
55
+ color: ${({ theme }) => theme.palette.grey[800]};
56
+ }
52
57
  }
53
58
  }
54
59
  `;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledTag = exports.HiddenInput = exports.Wrapper = void 0;
4
4
  const Badge_1 = require("@mui/material/Badge");
5
+ const constants_1 = require("../constants");
5
6
  const styled_1 = require("../styled");
6
7
  const Tag_1 = require("../Tag");
7
8
  const getHoverBgColor = ({ theme, color, isChecked, variant, disabled, }) => {
@@ -118,21 +119,23 @@ exports.StyledTag = (0, styled_1.styled)(Tag_1.Tag, {
118
119
  cursor: pointer;
119
120
  }
120
121
 
121
- &:hover {
122
- background-color: ${({ theme, color, variant, disabled, $isChecked }) => getHoverBgColor({
122
+ ${constants_1.HOVER_MEDIA} {
123
+ &:hover {
124
+ background-color: ${({ theme, color, variant, disabled, $isChecked }) => getHoverBgColor({
123
125
  theme,
124
126
  color,
125
127
  variant,
126
128
  disabled,
127
129
  isChecked: $isChecked,
128
130
  })};
129
- border: ${({ theme, variant, $isChecked, color }) => getBorder({
131
+ border: ${({ theme, variant, $isChecked, color }) => getBorder({
130
132
  theme,
131
133
  variant,
132
134
  isChecked: $isChecked,
133
135
  tagState: 'hover',
134
136
  color,
135
137
  })};
138
+ }
136
139
  }
137
140
 
138
141
  &:active {
@@ -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, isIndeterminate, }) => {
8
9
  if (isDisabled) {
9
10
  return theme.palette.components.border.default;
@@ -24,17 +25,17 @@ exports.Wrapper = (0, styled_1.styled)('span', {
24
25
  display: flex;
25
26
  justify-content: center;
26
27
 
27
- .${constants_1.checkboxClassnames.icon} {
28
+ .${constants_2.checkboxClassnames.icon} {
28
29
  fill: ${({ $isDisabled, theme }) => $isDisabled && theme.palette.components.disabled};
29
30
  }
30
31
 
31
- .${constants_1.checkboxClassnames.symbol} {
32
+ .${constants_2.checkboxClassnames.symbol} {
32
33
  fill: ${({ $isDisabled, theme }) => $isDisabled ? theme.palette.grey[500] : 'white'};
33
34
 
34
35
  ${mixins_1.easeOutBackTransition};
35
36
  }
36
37
 
37
- .${constants_1.checkboxClassnames.outline} {
38
+ .${constants_2.checkboxClassnames.outline} {
38
39
  fill: ${({ $isDisabled, $isChecked, $isIndeterminate }) => !$isDisabled && !$isChecked && !$isIndeterminate && 'white'};
39
40
  stroke: ${({ theme, $isDisabled, $isError, $isChecked, $isIndeterminate, }) => getOutlineColor({
40
41
  theme,
@@ -48,31 +49,32 @@ exports.Wrapper = (0, styled_1.styled)('span', {
48
49
  ${mixins_1.easeOutBackTransition};
49
50
  }
50
51
 
51
- .${constants_1.checkboxClassnames.iconChecked} {
52
+ .${constants_2.checkboxClassnames.iconChecked} {
52
53
  transform-origin: bottom;
53
54
  transform: ${({ $isChecked, $isIndeterminate }) => $isChecked && !$isIndeterminate ? 'scale(1)' : 'scale(0)'};
54
55
 
55
56
  opacity: ${({ $isChecked, $isIndeterminate }) => $isChecked && !$isIndeterminate ? 1 : 0};
56
57
  }
57
58
 
58
- .${constants_1.checkboxClassnames.iconIndeterminate} {
59
+ .${constants_2.checkboxClassnames.iconIndeterminate} {
59
60
  transform-origin: bottom;
60
61
  transform: ${({ $isIndeterminate }) => $isIndeterminate ? 'scale(1)' : 'scale(0)'};
61
62
 
62
63
  opacity: ${({ $isIndeterminate }) => ($isIndeterminate ? 1 : 0)};
63
64
  }
64
65
 
65
- &:hover {
66
- .${constants_1.checkboxClassnames.icon} {
67
- color: ${({ $isError, theme }) => $isError ? theme.palette.error[700] : theme.palette.primary[700]};
68
- }
66
+ ${constants_1.HOVER_MEDIA} {
67
+ &:hover {
68
+ .${constants_2.checkboxClassnames.icon} {
69
+ color: ${({ $isError, theme }) => $isError ? theme.palette.error[700] : theme.palette.primary[700]};
70
+ }
69
71
 
70
- .${constants_1.checkboxClassnames.outline} {
71
- fill: ${({ theme, $isDisabled, $isChecked, $isIndeterminate }) => !$isDisabled &&
72
+ .${constants_2.checkboxClassnames.outline} {
73
+ fill: ${({ theme, $isDisabled, $isChecked, $isIndeterminate }) => !$isDisabled &&
72
74
  !$isChecked &&
73
75
  !$isIndeterminate &&
74
76
  theme.palette.background.elementHover};
75
- stroke: ${({ theme, $isDisabled, $isError, $isChecked, $isIndeterminate, }) => getOutlineColor({
77
+ stroke: ${({ theme, $isDisabled, $isError, $isChecked, $isIndeterminate, }) => getOutlineColor({
76
78
  theme,
77
79
  isHover: true,
78
80
  isDisabled: $isDisabled,
@@ -80,6 +82,7 @@ exports.Wrapper = (0, styled_1.styled)('span', {
80
82
  isChecked: $isChecked,
81
83
  isIndeterminate: $isIndeterminate,
82
84
  })};
85
+ }
83
86
  }
84
87
  }
85
88
  `;
@@ -88,19 +91,19 @@ exports.Input = styled_1.styled.input `
88
91
 
89
92
  position: absolute;
90
93
 
91
- width: ${constants_1.CHECKBOX_SIZE};
92
- height: ${constants_1.CHECKBOX_SIZE};
94
+ width: ${constants_2.CHECKBOX_SIZE};
95
+ height: ${constants_2.CHECKBOX_SIZE};
93
96
  margin: 0;
94
97
 
95
98
  opacity: 0;
96
99
 
97
100
  ${({ theme }) => theme.breakpoints.down('mobile')} {
98
- width: ${constants_1.MOBILE_CHECKBOX_SIZE};
99
- height: ${constants_1.MOBILE_CHECKBOX_SIZE};
101
+ width: ${constants_2.MOBILE_CHECKBOX_SIZE};
102
+ height: ${constants_2.MOBILE_CHECKBOX_SIZE};
100
103
  }
101
104
 
102
105
  &:focus-visible {
103
- ~ .${constants_1.checkboxClassnames.iconWrapper} > .${constants_1.checkboxClassnames.icon} {
106
+ ~ .${constants_2.checkboxClassnames.iconWrapper} > .${constants_2.checkboxClassnames.icon} {
104
107
  border-radius: ${({ theme }) => theme.shape.small};
105
108
  outline: 2px solid ${({ theme }) => theme.palette.components.focused};
106
109
  outline-offset: -2px;
@@ -112,14 +115,14 @@ exports.IconWrapper = styled_1.styled.span `
112
115
  align-items: center;
113
116
  justify-content: center;
114
117
 
115
- width: ${constants_1.CHECKBOX_SIZE};
116
- height: ${constants_1.CHECKBOX_SIZE};
118
+ width: ${constants_2.CHECKBOX_SIZE};
119
+ height: ${constants_2.CHECKBOX_SIZE};
117
120
 
118
121
  ${({ theme }) => theme.breakpoints.down('mobile')} {
119
- width: ${constants_1.MOBILE_CHECKBOX_SIZE};
120
- height: ${constants_1.MOBILE_CHECKBOX_SIZE};
122
+ width: ${constants_2.MOBILE_CHECKBOX_SIZE};
123
+ height: ${constants_2.MOBILE_CHECKBOX_SIZE};
121
124
 
122
- .${constants_1.checkboxClassnames.icon} {
125
+ .${constants_2.checkboxClassnames.icon} {
123
126
  width: 20px;
124
127
  height: 20px;
125
128
  }
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Label = exports.AdornmentWrapper = exports.StyledCounter = exports.HiddenInput = exports.Wrapper = void 0;
4
4
  const Badge_1 = require("@mui/material/Badge");
5
5
  const Counter_1 = require("../Counter");
6
+ const constants_1 = require("../constants");
6
7
  const styled_1 = require("../styled");
7
8
  const Typography_1 = require("../Typography");
8
- const constants_1 = require("./constants");
9
+ const constants_2 = require("./constants");
9
10
  exports.Wrapper = styled_1.styled.div `
10
11
  cursor: pointer;
11
12
  user-select: none;
@@ -24,9 +25,11 @@ exports.Wrapper = styled_1.styled.div `
24
25
  duration: theme.transitions.duration.shortest,
25
26
  })};
26
27
 
27
- &:hover {
28
- background-color: ${({ theme }) => theme.palette.background.elementHover};
29
- border-color: ${({ theme }) => theme.palette.grey[400]};
28
+ ${constants_1.HOVER_MEDIA} {
29
+ &:hover {
30
+ background-color: ${({ theme }) => theme.palette.background.elementHover};
31
+ border-color: ${({ theme }) => theme.palette.grey[400]};
32
+ }
30
33
  }
31
34
 
32
35
  &:active {
@@ -34,63 +37,65 @@ exports.Wrapper = styled_1.styled.div `
34
37
  border-color: ${({ theme }) => theme.palette.grey[800]};
35
38
  }
36
39
 
37
- &.${constants_1.chipClassnames.hasIcon},
38
- &.${constants_1.chipClassnames.hasEndAdornment}:not(.${constants_1.chipClassnames.hasStatusIcon}),
39
- &.${constants_1.chipClassnames.hasCounter}:not(.${constants_1.chipClassnames.hasStatusIcon}) {
40
+ &.${constants_2.chipClassnames.hasIcon},
41
+ &.${constants_2.chipClassnames.hasEndAdornment}:not(.${constants_2.chipClassnames.hasStatusIcon}),
42
+ &.${constants_2.chipClassnames.hasCounter}:not(.${constants_2.chipClassnames.hasStatusIcon}) {
40
43
  gap: ${({ theme }) => theme.spacing(1)};
41
44
  }
42
45
 
43
- &.${constants_1.chipClassnames.hasStatusIcon} {
44
- & .${constants_1.chipClassnames.label} {
46
+ &.${constants_2.chipClassnames.hasStatusIcon} {
47
+ & .${constants_2.chipClassnames.label} {
45
48
  margin-left: ${({ theme }) => theme.microSpacing(1)};
46
49
  }
47
50
 
48
- &.${constants_1.chipClassnames.hasCounter} .${constants_1.chipClassnames.label},
49
- &.${constants_1.chipClassnames.hasEndAdornment} .${constants_1.chipClassnames.label} {
51
+ &.${constants_2.chipClassnames.hasCounter} .${constants_2.chipClassnames.label},
52
+ &.${constants_2.chipClassnames.hasEndAdornment} .${constants_2.chipClassnames.label} {
50
53
  margin-right: ${({ theme }) => theme.spacing(1)};
51
54
  }
52
55
  }
53
56
 
54
- &.${constants_1.chipClassnames.hasStatusIcon} {
57
+ &.${constants_2.chipClassnames.hasStatusIcon} {
55
58
  padding-left: ${({ theme }) => theme.microSpacing(1)};
56
59
  }
57
60
 
58
- &.${constants_1.chipClassnames.sizeSmall} {
59
- height: ${constants_1.chipSize.small.desktop};
61
+ &.${constants_2.chipClassnames.sizeSmall} {
62
+ height: ${constants_2.chipSize.small.desktop};
60
63
 
61
64
  ${({ theme }) => theme.breakpoints.down('mobile')} {
62
- height: ${constants_1.chipSize.small.mobile};
65
+ height: ${constants_2.chipSize.small.mobile};
63
66
  }
64
67
  }
65
68
 
66
- &.${constants_1.chipClassnames.sizeMedium} {
67
- height: ${constants_1.chipSize.medium.desktop};
69
+ &.${constants_2.chipClassnames.sizeMedium} {
70
+ height: ${constants_2.chipSize.medium.desktop};
68
71
 
69
72
  ${({ theme }) => theme.breakpoints.down('mobile')} {
70
- height: ${constants_1.chipSize.medium.mobile};
73
+ height: ${constants_2.chipSize.medium.mobile};
71
74
  }
72
75
  }
73
76
 
74
- &.${constants_1.chipClassnames.sizeLarge} {
75
- height: ${constants_1.chipSize.large.desktop};
77
+ &.${constants_2.chipClassnames.sizeLarge} {
78
+ height: ${constants_2.chipSize.large.desktop};
76
79
  padding: ${({ theme }) => theme.spacing(0, 3)};
77
80
 
78
- &.${constants_1.chipClassnames.hasStatusIcon} {
81
+ &.${constants_2.chipClassnames.hasStatusIcon} {
79
82
  padding-left: ${({ theme }) => theme.spacing(2)};
80
83
  }
81
84
 
82
85
  ${({ theme }) => theme.breakpoints.down('mobile')} {
83
- height: ${constants_1.chipSize.large.mobile};
86
+ height: ${constants_2.chipSize.large.mobile};
84
87
  }
85
88
  }
86
89
 
87
- &.${constants_1.chipClassnames.selected} {
90
+ &.${constants_2.chipClassnames.selected} {
88
91
  background-color: ${({ theme }) => theme.palette.grey[100]};
89
92
  border-color: ${({ theme }) => theme.palette.grey[800]};
90
93
 
91
- &:hover {
92
- background-color: ${({ theme }) => theme.palette.background.elementHover};
93
- border-color: ${({ theme }) => theme.palette.grey[800]};
94
+ ${constants_1.HOVER_MEDIA} {
95
+ &:hover {
96
+ background-color: ${({ theme }) => theme.palette.background.elementHover};
97
+ border-color: ${({ theme }) => theme.palette.grey[800]};
98
+ }
94
99
  }
95
100
 
96
101
  &:active {
@@ -99,7 +104,7 @@ exports.Wrapper = styled_1.styled.div `
99
104
  }
100
105
  }
101
106
 
102
- &.${constants_1.chipClassnames.disabled} {
107
+ &.${constants_2.chipClassnames.disabled} {
103
108
  cursor: default;
104
109
 
105
110
  background-color: ${({ theme }) => theme.palette.components.disabled};
@@ -107,9 +112,9 @@ exports.Wrapper = styled_1.styled.div `
107
112
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
108
113
  mix-blend-mode: luminosity;
109
114
 
110
- & .${constants_1.chipClassnames.startAdornment},
111
- & .${constants_1.chipClassnames.endAdornment},
112
- & .${constants_1.chipClassnames.label} {
115
+ & .${constants_2.chipClassnames.startAdornment},
116
+ & .${constants_2.chipClassnames.endAdornment},
117
+ & .${constants_2.chipClassnames.label} {
113
118
  opacity: 0.3;
114
119
  }
115
120
  }
@@ -162,7 +167,7 @@ exports.Label = styled_1.styled.label `
162
167
 
163
168
  /* Причина игнора: Не критично для отображения */
164
169
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
165
- &:has(> input:focus-visible) .${constants_1.chipClassnames.root} {
170
+ &:has(> input:focus-visible) .${constants_2.chipClassnames.root} {
166
171
  outline: 2px solid ${({ theme }) => theme.palette.components.focused};
167
172
  outline-offset: 2px;
168
173
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledHelperText = exports.FieldLabel = exports.Digit = exports.DigitsItem = exports.DigitsWrapper = exports.Wrapper = void 0;
4
+ const constants_1 = require("../constants");
4
5
  const FormHelperText_1 = require("../FormHelperText");
5
6
  const styled_1 = require("../styled");
6
7
  const Typography_1 = require("../Typography");
@@ -51,10 +52,12 @@ exports.Digit = styled_1.styled.input `
51
52
  border-radius: ${({ theme }) => theme.shape.medium};
52
53
  outline: none;
53
54
 
54
- &:hover {
55
- background-color: ${({ theme, disabled }) => disabled
55
+ ${constants_1.HOVER_MEDIA} {
56
+ &:hover {
57
+ background-color: ${({ theme, disabled }) => disabled
56
58
  ? theme.palette.components.disabled
57
59
  : theme.palette.background.elementHover};
60
+ }
58
61
  }
59
62
  `;
60
63
  exports.FieldLabel = (0, styled_1.styled)(Typography_1.Typography) `
@@ -2,9 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledCopyIcon = exports.TypographyWrapper = exports.Wrapper = void 0;
4
4
  const CopyOutlineSm_1 = require("../../icons/CopyOutlineSm");
5
+ const constants_1 = require("../constants");
5
6
  const styled_1 = require("../styled");
6
7
  const Typography_1 = require("../Typography");
7
- const constants_1 = require("./constants");
8
+ const constants_2 = require("./constants");
8
9
  exports.Wrapper = (0, styled_1.styled)(Typography_1.Typography) `
9
10
  cursor: pointer;
10
11
 
@@ -12,19 +13,27 @@ exports.Wrapper = (0, styled_1.styled)(Typography_1.Typography) `
12
13
  display: flex;
13
14
  flex-wrap: nowrap;
14
15
  align-items: center;
16
+
17
+ ${constants_1.HOVER_MEDIA} {
18
+ &:hover {
19
+ text-decoration: underline;
20
+
21
+ .${constants_2.copyTypographyClassnames.showIconOnHover} {
22
+ display: unset;
23
+ }
24
+ }
25
+ }
15
26
 
16
- &:hover {
17
- text-decoration: underline;
18
-
19
- .${constants_1.copyTypographyClassnames.showIconOnHover} {
20
- display: unset;
27
+ ${({ theme }) => theme.breakpoints.down('mobile')} {
28
+ &:active {
29
+ text-decoration: underline;
21
30
  }
22
31
  }
23
32
  `;
24
33
  exports.TypographyWrapper = styled_1.styled.div `
25
34
  overflow: hidden;
26
35
 
27
- &.${constants_1.copyTypographyClassnames.overflow} {
36
+ &.${constants_2.copyTypographyClassnames.overflow} {
28
37
  text-overflow: ellipsis;
29
38
  white-space: nowrap;
30
39
  }
@@ -35,7 +44,12 @@ exports.StyledCopyIcon = (0, styled_1.styled)(CopyOutlineSm_1.CopyOutlineSm, {
35
44
  margin-right: ${({ $copyPosition, theme }) => $copyPosition === 'left' ? theme.spacing(1) : ''};
36
45
  margin-left: ${({ $copyPosition, theme }) => $copyPosition === 'right' ? theme.spacing(1) : ''};
37
46
 
38
- &.${constants_1.copyTypographyClassnames.showIconOnHover} {
47
+ &.${constants_2.copyTypographyClassnames.showIconOnHover} {
39
48
  display: none;
49
+
50
+ /* На тач-устройствах иконка копирования недостижима наведением — показываем постоянно */
51
+ ${constants_1.HOVER_NONE_MEDIA} {
52
+ display: unset;
53
+ }
40
54
  }
41
55
  `;
@@ -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;