@m4l/components 9.5.1 → 9.5.2-beta-improvement-606-typography-leveling.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/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +20 -20
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +1 -1
- package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.js +6 -6
- package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
- package/components/CheckableList/CheckableList.js +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.js +2 -2
- package/components/CheckableList/slots/styled.d.ts +4 -4
- package/components/Chip/Chip.js +21 -21
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/DaysOfMonthPicker/DaysOfMonthPicker.styles.js +1 -1
- package/components/DaysOfMonthPicker/slots/DaysOfMonthPickerSlots.d.ts +1 -1
- package/components/DaysOfWeekPicker/slots/DaysOfWeekPickerSlots.d.ts +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +3 -3
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicSort/DynamicSort.styles.js +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/EditLabel/slots/EditLabelSlots.d.ts +2 -2
- package/components/HelperError/HelperError.js +1 -1
- package/components/HelperError/HelperError.styles.js +6 -6
- package/components/ImageText/ImageText.js +9 -9
- package/components/Label/Label.js +18 -18
- package/components/LoadingError/LoadingError.js +14 -14
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/NumberInput/NumberInput.styles.js +6 -6
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +17 -17
- package/components/Pager/subcomponents/PagerActions/PagerActions.js +11 -11
- package/components/PrintingSystem/PrintingSystem.js +8 -8
- package/components/PrintingSystem/PrintingSystem.styles.js +6 -6
- package/components/PrintingSystem/types.d.ts +1 -1
- package/components/PrintingSystem/types.d.ts.map +1 -1
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +1 -1
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.js +9 -9
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +11 -11
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentComponent/style.js +1 -1
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.js +5 -5
- package/components/Stepper/subcomponents/StepArea/index.js +7 -7
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +8 -8
- package/components/TabsNavigator/subcomponents/TabNavigatorClusterComponent/TabNavigatorClusterComponent.js +22 -22
- package/components/TabsNavigator/subcomponents/TabNavigatorComponent/TabNavigatorComponent.js +16 -16
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js +8 -8
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +23 -23
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +2 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +7 -7
- package/components/datagrids/Datagrid.styles.js +6 -6
- package/components/datagrids/slots/DataGridSlot.d.ts +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +3 -3
- package/components/datagrids/views/CardsView/hooks/useCardContent/useCardContent.js +21 -21
- package/components/datagrids/views/CardsView/subcomponents/CardDetails/CardDetails.js +22 -22
- package/components/datagrids/views/ListView/hooks/useListContent/useListContent.js +11 -11
- package/components/datagrids/views/ListView/subcomponents/ListDetail/ListDetail.js +16 -16
- package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts +1 -1
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/extended/mui/Autocomplete/subcomponents/LoadingText/LoadingText.js +3 -3
- package/components/extended/mui/Autocomplete/subcomponents/NoOptionsText/NoOptionsText.js +3 -3
- package/components/extended/mui/Avatar/styles.js +4 -4
- package/components/extended/mui/Badge/Badge.styles.js +1 -1
- package/components/extended/mui/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/extended/mui/CheckBox/CheckBox.js +6 -6
- package/components/extended/mui/DatePicker/DatePicker.styles.js +4 -4
- package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +1 -1
- package/components/extended/mui/DateTimePicker/DateTimePicker.styles.js +256 -256
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +2 -2
- package/components/extended/mui/IconButton/slots/IconButtonSlots.d.ts +1 -1
- package/components/extended/mui/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/extended/mui/MenuItem/MenuItem.js +11 -11
- package/components/extended/mui/MenuItem/slots/MenuItemSlots.d.ts +1 -1
- package/components/extended/mui/NavLink/NavLink.styles.js +20 -20
- package/components/extended/mui/Radio/Radio.js +14 -14
- package/components/extended/mui/Select/Select.js +22 -22
- package/components/extended/mui/Select/slots/SelectSlots.d.ts +1 -1
- package/components/extended/mui/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/extended/mui/Tab/Tab.js +12 -12
- package/components/extended/mui/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/extended/mui/TextField/TextField.js +3 -3
- package/components/extended/mui/TextField/TextField.styles.js +5 -5
- package/components/extended/mui/TimePicker/slots/TimePickerSlots.d.ts +1 -1
- package/components/extended/mui/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/extended/mui/Tooltip/Tooltip.styles.js +3 -3
- package/components/extended/mui/Typography/Typography.js +7 -7
- package/components/extended/mui/Typography/types.d.ts +18 -19
- package/components/extended/mui/Typography/types.d.ts.map +1 -1
- package/components/extended/mui/Typography/typography.styles.d.ts.map +1 -1
- package/components/extended/mui/Typography/typography.styles.js +24 -17
- package/components/extended/rsuite/DateRangePicker/DateRangePicker.styles.js +1 -1
- package/components/formatters/ImageFormatter/ImageFormatter.js +17 -17
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
- package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.js +4 -4
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +7 -7
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +22 -22
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +1 -1
- package/package.json +6 -6
- package/utils/getTypographyStyles.d.ts +6 -9
- package/utils/getTypographyStyles.d.ts.map +1 -1
- package/utils/getTypographyStyles.js +5 -2
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { getTypographyStyles as s } from "../../../../utils/getTypographyStyles.js";
|
|
2
2
|
import { getHeightSizeStyles as o } from "../../../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
|
-
const
|
|
3
|
+
const n = {
|
|
4
4
|
/**
|
|
5
5
|
* Estilos para el root cuando esta en Desktop 💻
|
|
6
6
|
*/
|
|
7
|
-
rootDesktop: ({ theme:
|
|
7
|
+
rootDesktop: ({ theme: a, ownerState: r }) => ({
|
|
8
8
|
// ↴ Overrides sizes ❌
|
|
9
9
|
...o(
|
|
10
|
-
|
|
10
|
+
a.generalSettings.isMobile,
|
|
11
11
|
r?.size || "medium",
|
|
12
12
|
"action",
|
|
13
|
-
(
|
|
14
|
-
height: `${
|
|
15
|
-
minHeight: `${
|
|
16
|
-
maxHeight: `${
|
|
13
|
+
(i) => ({
|
|
14
|
+
height: `${i} !important`,
|
|
15
|
+
minHeight: `${i} !important`,
|
|
16
|
+
maxHeight: `${i} !important`
|
|
17
17
|
})
|
|
18
18
|
),
|
|
19
19
|
// Estilos globales del Input DateTimePicker en Desktop 🌎
|
|
20
20
|
"& .MuiInputBase-root": {
|
|
21
21
|
height: "100%",
|
|
22
22
|
padding: 0,
|
|
23
|
-
borderRadius:
|
|
24
|
-
paddingLeft:
|
|
23
|
+
borderRadius: a.vars.size.borderRadius.r2,
|
|
24
|
+
paddingLeft: a.vars.size.baseSpacings.sp1,
|
|
25
25
|
"& input": {
|
|
26
26
|
padding: 0,
|
|
27
|
-
paddingLeft:
|
|
28
|
-
paddingRight:
|
|
27
|
+
paddingLeft: a.vars.size.baseSpacings.sp1,
|
|
28
|
+
paddingRight: a.vars.size.baseSpacings.sp3,
|
|
29
29
|
...s(
|
|
30
|
-
|
|
30
|
+
a.generalSettings.isMobile,
|
|
31
31
|
r?.size || "medium",
|
|
32
|
-
"
|
|
32
|
+
"bodyStandard"
|
|
33
33
|
),
|
|
34
34
|
"&::placeholder": {
|
|
35
|
-
color:
|
|
35
|
+
color: a.vars.palette.text.disabled,
|
|
36
36
|
opacity: 1
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"& .MuiInputAdornment-root": {
|
|
40
40
|
margin: 0,
|
|
41
41
|
...o(
|
|
42
|
-
|
|
42
|
+
a.generalSettings.isMobile,
|
|
43
43
|
r?.size || "medium",
|
|
44
44
|
"action",
|
|
45
|
-
(
|
|
46
|
-
height:
|
|
47
|
-
minHeight:
|
|
48
|
-
maxHeight:
|
|
49
|
-
minWidth: `${
|
|
45
|
+
(i) => ({
|
|
46
|
+
height: i,
|
|
47
|
+
minHeight: i,
|
|
48
|
+
maxHeight: i,
|
|
49
|
+
minWidth: `${i} !important`
|
|
50
50
|
})
|
|
51
51
|
)
|
|
52
52
|
},
|
|
@@ -55,39 +55,39 @@ const t = {
|
|
|
55
55
|
outline: 0,
|
|
56
56
|
minHeight: 0,
|
|
57
57
|
...r?.variant === "outlined" && {
|
|
58
|
-
border:
|
|
58
|
+
border: a.vars.size.borderStroke.actionInput
|
|
59
59
|
},
|
|
60
60
|
...r?.variant === "text" && {
|
|
61
61
|
border: 0,
|
|
62
|
-
borderBottom:
|
|
62
|
+
borderBottom: a.vars.size.borderStroke.actionInput
|
|
63
63
|
},
|
|
64
|
-
borderColor: r?.error ?
|
|
65
|
-
borderRadius:
|
|
64
|
+
borderColor: r?.error ? a.vars.palette.error.hover : a.vars.palette.border.secondary,
|
|
65
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
66
66
|
borderWidth: 1
|
|
67
67
|
},
|
|
68
68
|
// ↴ Overrides ❌
|
|
69
69
|
"&.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
70
70
|
outline: 0,
|
|
71
71
|
...r?.variant === "outlined" && {
|
|
72
|
-
border:
|
|
72
|
+
border: a.vars.size.borderStroke.actionInput
|
|
73
73
|
},
|
|
74
74
|
...r?.variant === "text" && {
|
|
75
75
|
border: 0,
|
|
76
|
-
borderBottom:
|
|
76
|
+
borderBottom: a.vars.size.borderStroke.actionInput
|
|
77
77
|
},
|
|
78
|
-
borderColor: r?.error ?
|
|
78
|
+
borderColor: r?.error ? a.vars.palette.error.active : a.vars.palette.primary.enabled
|
|
79
79
|
},
|
|
80
80
|
// ↴ Overrides ❌
|
|
81
81
|
"&.MuiOutlinedInput-root.Mui-focused .M4LIcon-icon": {
|
|
82
|
-
backgroundColor: r?.error ?
|
|
82
|
+
backgroundColor: r?.error ? a.vars.palette.error.active : a.vars.palette.primary.enabled
|
|
83
83
|
},
|
|
84
84
|
// ↴ Overrides ❌
|
|
85
85
|
...!r?.disabled && {
|
|
86
86
|
"&:hover": {
|
|
87
|
-
background: r?.error ?
|
|
87
|
+
background: r?.error ? a.vars.palette.error.hoverOpacity : a.vars.palette.primary.hoverOpacity
|
|
88
88
|
},
|
|
89
89
|
"&:active": {
|
|
90
|
-
background:
|
|
90
|
+
background: a.vars.palette.background.default
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -95,32 +95,32 @@ const t = {
|
|
|
95
95
|
/**
|
|
96
96
|
* Estilos para el root cuando esta en Mobile 📱
|
|
97
97
|
*/
|
|
98
|
-
rootMobile: ({ theme:
|
|
98
|
+
rootMobile: ({ theme: a, ownerState: r }) => ({
|
|
99
99
|
// ↴ Overrides sizes ❌
|
|
100
100
|
...o(
|
|
101
|
-
|
|
101
|
+
a.generalSettings.isMobile,
|
|
102
102
|
r?.size || "medium",
|
|
103
103
|
"action",
|
|
104
|
-
(
|
|
105
|
-
height: `${
|
|
106
|
-
minHeight: `${
|
|
107
|
-
maxHeight: `${
|
|
104
|
+
(i) => ({
|
|
105
|
+
height: `${i} !important`,
|
|
106
|
+
minHeight: `${i} !important`,
|
|
107
|
+
maxHeight: `${i} !important`
|
|
108
108
|
})
|
|
109
109
|
),
|
|
110
110
|
// Estilos globales del Input DateTimePicker en Desktop 🌎
|
|
111
111
|
"& .MuiInputBase-root": {
|
|
112
112
|
height: "100%",
|
|
113
113
|
padding: 0,
|
|
114
|
-
borderRadius:
|
|
115
|
-
paddingLeft:
|
|
114
|
+
borderRadius: a.vars.size.borderRadius.r2,
|
|
115
|
+
paddingLeft: a.vars.size.baseSpacings.sp1,
|
|
116
116
|
"& input": {
|
|
117
117
|
padding: 0,
|
|
118
|
-
paddingLeft:
|
|
119
|
-
paddingRight:
|
|
118
|
+
paddingLeft: a.vars.size.baseSpacings.sp1,
|
|
119
|
+
paddingRight: a.vars.size.baseSpacings.sp3,
|
|
120
120
|
...s(
|
|
121
|
-
|
|
121
|
+
a.generalSettings.isMobile,
|
|
122
122
|
r?.size || "medium",
|
|
123
|
-
"
|
|
123
|
+
"bodyStandard"
|
|
124
124
|
)
|
|
125
125
|
},
|
|
126
126
|
// ↴ Overrides ❌
|
|
@@ -128,34 +128,34 @@ const t = {
|
|
|
128
128
|
outline: 0,
|
|
129
129
|
minHeight: 0,
|
|
130
130
|
...r?.variant === "outlined" && {
|
|
131
|
-
border:
|
|
131
|
+
border: a.vars.size.borderStroke.actionInput
|
|
132
132
|
},
|
|
133
133
|
...r?.variant === "text" && {
|
|
134
134
|
border: 0,
|
|
135
|
-
borderBottom:
|
|
135
|
+
borderBottom: a.vars.size.borderStroke.actionInput
|
|
136
136
|
},
|
|
137
|
-
borderColor: r?.error ?
|
|
138
|
-
borderRadius:
|
|
137
|
+
borderColor: r?.error ? a.vars.palette.error.hover : r?.disabled ? `${a.vars.palette.border.secondary}` : a.vars.palette.border.default,
|
|
138
|
+
borderRadius: a.vars.size.borderRadius.r1
|
|
139
139
|
},
|
|
140
140
|
// ↴ Overrides ❌
|
|
141
141
|
"&.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
142
142
|
outline: 0,
|
|
143
143
|
...r?.variant === "outlined" && {
|
|
144
|
-
border:
|
|
144
|
+
border: a.vars.size.borderStroke.actionInput
|
|
145
145
|
},
|
|
146
146
|
...r?.variant === "text" && {
|
|
147
147
|
border: 0,
|
|
148
|
-
borderBottom:
|
|
148
|
+
borderBottom: a.vars.size.borderStroke.actionInput
|
|
149
149
|
},
|
|
150
|
-
borderColor: r?.error ?
|
|
150
|
+
borderColor: r?.error ? a.vars.palette.error.active : a.vars.palette.primary.enabled
|
|
151
151
|
},
|
|
152
152
|
// ↴ Overrides ❌
|
|
153
153
|
...!r?.disabled && {
|
|
154
154
|
"&:hover": {
|
|
155
|
-
background: r?.error ?
|
|
155
|
+
background: r?.error ? a.vars.palette.error.hoverOpacity : a.vars.palette.primary.hoverOpacity
|
|
156
156
|
},
|
|
157
157
|
"&:active": {
|
|
158
|
-
background:
|
|
158
|
+
background: a.vars.palette.background.default
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -163,44 +163,44 @@ const t = {
|
|
|
163
163
|
/**
|
|
164
164
|
* Estilos para el popper de Material UI
|
|
165
165
|
*/
|
|
166
|
-
popper: ({ theme:
|
|
166
|
+
popper: ({ theme: a, ownerState: r }) => ({
|
|
167
167
|
"&&&": {
|
|
168
|
-
zIndex:
|
|
169
|
-
marginTop: `${
|
|
168
|
+
zIndex: a.vars.zIndex.modal,
|
|
169
|
+
marginTop: `${a.vars.size.baseSpacings.sp2} !important`,
|
|
170
170
|
"& .MuiPickersDay-root.Mui-selected": {
|
|
171
|
-
backgroundColor:
|
|
171
|
+
backgroundColor: a.vars.palette.primary.enabled,
|
|
172
172
|
"&:hover": {
|
|
173
|
-
backgroundColor:
|
|
173
|
+
backgroundColor: a.vars.palette.primary.hover
|
|
174
174
|
},
|
|
175
175
|
"&:active": {
|
|
176
|
-
backgroundColor:
|
|
176
|
+
backgroundColor: a.vars.palette.primary.active
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
179
|
"& .MuiMultiSectionDigitalClockSection-item": {
|
|
180
|
-
borderRadius:
|
|
180
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
181
181
|
"&.Mui-selected": {
|
|
182
|
-
backgroundColor:
|
|
182
|
+
backgroundColor: a.vars.palette.primary.enabled,
|
|
183
183
|
"&:hover": {
|
|
184
|
-
backgroundColor:
|
|
184
|
+
backgroundColor: a.vars.palette.primary.hover
|
|
185
185
|
},
|
|
186
186
|
"&:active": {
|
|
187
|
-
backgroundColor:
|
|
187
|
+
backgroundColor: a.vars.palette.primary.active
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
"& .MuiDivider-root": {
|
|
192
|
-
borderColor:
|
|
192
|
+
borderColor: a.vars.palette.border.secondary
|
|
193
193
|
},
|
|
194
194
|
// Estilos globales del MuiPickersLayout-root 🌎
|
|
195
195
|
"& .MuiPaper-root": {
|
|
196
|
-
paddingTop:
|
|
197
|
-
borderRadius:
|
|
198
|
-
backgroundColor:
|
|
199
|
-
boxShadow:
|
|
196
|
+
paddingTop: a.vars.size.baseSpacings.sp3,
|
|
197
|
+
borderRadius: a.vars.size.borderRadius.r2,
|
|
198
|
+
backgroundColor: a.vars.palette.background.default,
|
|
199
|
+
boxShadow: a.vars.customShadows.z4
|
|
200
200
|
},
|
|
201
201
|
// Estilos globales del MuiPickersLayout-root 🌎
|
|
202
202
|
"& .MuiPickersLayout-root": {
|
|
203
|
-
gap: `0px 0px ${
|
|
203
|
+
gap: `0px 0px ${a.vars.size.baseSpacings.sp1} 0px`,
|
|
204
204
|
"& .MuiPickersLayout-contentWrapper": {
|
|
205
205
|
// ↴ Overrides ❌
|
|
206
206
|
// paddingLeft: theme.vars.size.baseSpacings.sp3,
|
|
@@ -217,8 +217,8 @@ const t = {
|
|
|
217
217
|
width: "fit-content",
|
|
218
218
|
position: "relative",
|
|
219
219
|
top: -1,
|
|
220
|
-
gap:
|
|
221
|
-
padding:
|
|
220
|
+
gap: a.vars.size.baseSpacings.sp3,
|
|
221
|
+
padding: a.vars.size.baseSpacings.sp1,
|
|
222
222
|
// ↴ Overrides ❌
|
|
223
223
|
"& .MuiYearCalendar-root": {
|
|
224
224
|
// Fix en el height
|
|
@@ -226,37 +226,37 @@ const t = {
|
|
|
226
226
|
"& .MuiPickersYear-root": {
|
|
227
227
|
"& .MuiPickersYear-yearButton": {
|
|
228
228
|
width: "fit-content",
|
|
229
|
-
padding: `0px ${
|
|
230
|
-
borderRadius:
|
|
229
|
+
padding: `0px ${a.vars.size.baseSpacings.sp3}`,
|
|
230
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
231
231
|
"&:hover": {
|
|
232
|
-
background:
|
|
232
|
+
background: a.vars.palette.default.hoverOpacity
|
|
233
233
|
},
|
|
234
234
|
"&:active": {
|
|
235
|
-
background:
|
|
235
|
+
background: a.vars.palette.default.active
|
|
236
236
|
},
|
|
237
237
|
"&.Mui-selected": {
|
|
238
|
-
background:
|
|
238
|
+
background: a.vars.palette.primary.enabled,
|
|
239
239
|
"&:hover": {
|
|
240
|
-
background:
|
|
240
|
+
background: a.vars.palette.primary.hover
|
|
241
241
|
},
|
|
242
242
|
"&:active": {
|
|
243
|
-
background:
|
|
243
|
+
background: a.vars.palette.primary.active
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
...o(
|
|
247
|
-
|
|
247
|
+
a.generalSettings.isMobile,
|
|
248
248
|
r?.size || "small",
|
|
249
249
|
"action",
|
|
250
|
-
(
|
|
251
|
-
minHeight:
|
|
252
|
-
height:
|
|
253
|
-
maxHeight:
|
|
250
|
+
(i) => ({
|
|
251
|
+
minHeight: i,
|
|
252
|
+
height: i,
|
|
253
|
+
maxHeight: i
|
|
254
254
|
})
|
|
255
255
|
),
|
|
256
256
|
...s(
|
|
257
|
-
|
|
257
|
+
a.generalSettings.isMobile,
|
|
258
258
|
r?.size || "medium",
|
|
259
|
-
"
|
|
259
|
+
"bodyStandard"
|
|
260
260
|
)
|
|
261
261
|
}
|
|
262
262
|
}
|
|
@@ -264,28 +264,28 @@ const t = {
|
|
|
264
264
|
// ↴ Overrides ❌
|
|
265
265
|
"& .MuiDayCalendar-root": {
|
|
266
266
|
width: "fit-content",
|
|
267
|
-
padding:
|
|
267
|
+
padding: a.vars.size.baseSpacings.sp2,
|
|
268
268
|
"& .MuiDayCalendar-header": {
|
|
269
269
|
display: "flex",
|
|
270
|
-
gap:
|
|
270
|
+
gap: a.vars.size.baseSpacings.sp1,
|
|
271
271
|
"& .MuiTypography-root": {
|
|
272
272
|
margin: 0,
|
|
273
273
|
...s(
|
|
274
|
-
|
|
274
|
+
a.generalSettings.isMobile,
|
|
275
275
|
r?.size || "medium",
|
|
276
|
-
"
|
|
276
|
+
"bodyStandard"
|
|
277
277
|
),
|
|
278
278
|
...o(
|
|
279
|
-
|
|
279
|
+
a.generalSettings.isMobile,
|
|
280
280
|
r?.size || "small",
|
|
281
281
|
"action",
|
|
282
|
-
(
|
|
283
|
-
minHeight:
|
|
284
|
-
height:
|
|
285
|
-
maxHeight:
|
|
286
|
-
minWidth:
|
|
287
|
-
width:
|
|
288
|
-
maxWidth:
|
|
282
|
+
(i) => ({
|
|
283
|
+
minHeight: i,
|
|
284
|
+
height: i,
|
|
285
|
+
maxHeight: i,
|
|
286
|
+
minWidth: i,
|
|
287
|
+
width: i,
|
|
288
|
+
maxWidth: i
|
|
289
289
|
})
|
|
290
290
|
)
|
|
291
291
|
}
|
|
@@ -293,70 +293,70 @@ const t = {
|
|
|
293
293
|
"& .MuiDayCalendar-weekContainer": {
|
|
294
294
|
display: "flex",
|
|
295
295
|
margin: 0,
|
|
296
|
-
paddingTop:
|
|
297
|
-
gap:
|
|
296
|
+
paddingTop: a.vars.size.baseSpacings.sp1,
|
|
297
|
+
gap: a.vars.size.baseSpacings.sp1
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
},
|
|
301
301
|
// Estilos globales del MuiMultiSectionDigitalClock-root 🌎
|
|
302
302
|
"& .MuiMultiSectionDigitalClock-root": {
|
|
303
|
-
padding:
|
|
303
|
+
padding: a.vars.size.baseSpacings.sp1,
|
|
304
304
|
// ↴ Overrides ❌
|
|
305
305
|
"& .MuiList-root": {
|
|
306
306
|
display: "flex",
|
|
307
307
|
width: "fit-content",
|
|
308
308
|
flexDirection: "column",
|
|
309
309
|
overflow: "overlay",
|
|
310
|
-
borderColor:
|
|
311
|
-
paddingRight:
|
|
312
|
-
paddingLeft:
|
|
313
|
-
gap:
|
|
310
|
+
borderColor: a.vars.palette.border.secondary,
|
|
311
|
+
paddingRight: a.vars.size.baseSpacings.sp2,
|
|
312
|
+
paddingLeft: a.vars.size.baseSpacings.sp2,
|
|
313
|
+
gap: a.vars.size.baseSpacings.sp2,
|
|
314
314
|
"& .MuiButtonBase-root": {
|
|
315
315
|
margin: 0,
|
|
316
316
|
...o(
|
|
317
|
-
|
|
317
|
+
a.generalSettings.isMobile,
|
|
318
318
|
r?.size || "small",
|
|
319
319
|
"action",
|
|
320
|
-
(
|
|
321
|
-
minHeight:
|
|
322
|
-
height:
|
|
323
|
-
maxHeight:
|
|
324
|
-
minWidth:
|
|
325
|
-
width:
|
|
326
|
-
maxWidth:
|
|
320
|
+
(i) => ({
|
|
321
|
+
minHeight: i,
|
|
322
|
+
height: i,
|
|
323
|
+
maxHeight: i,
|
|
324
|
+
minWidth: i,
|
|
325
|
+
width: i,
|
|
326
|
+
maxWidth: i
|
|
327
327
|
})
|
|
328
328
|
),
|
|
329
329
|
...s(
|
|
330
|
-
|
|
330
|
+
a.generalSettings.isMobile,
|
|
331
331
|
r?.size || "medium",
|
|
332
|
-
"
|
|
332
|
+
"bodyStandard"
|
|
333
333
|
)
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
},
|
|
337
337
|
// Estilos globales del MuiDialogActions-root 🌎
|
|
338
338
|
"& .MuiDialogActions-root": {
|
|
339
|
-
paddingRight:
|
|
339
|
+
paddingRight: a.vars.size.baseSpacings.sp3,
|
|
340
340
|
// ↴ Overrides ❌
|
|
341
341
|
"& .MuiButtonBase-root": {
|
|
342
342
|
margin: 0,
|
|
343
343
|
...o(
|
|
344
|
-
|
|
344
|
+
a.generalSettings.isMobile,
|
|
345
345
|
r?.size || "small",
|
|
346
346
|
"action",
|
|
347
|
-
(
|
|
348
|
-
minHeight:
|
|
349
|
-
height:
|
|
350
|
-
maxHeight:
|
|
351
|
-
minWidth:
|
|
352
|
-
width:
|
|
353
|
-
maxWidth:
|
|
347
|
+
(i) => ({
|
|
348
|
+
minHeight: i,
|
|
349
|
+
height: i,
|
|
350
|
+
maxHeight: i,
|
|
351
|
+
minWidth: i,
|
|
352
|
+
width: i,
|
|
353
|
+
maxWidth: i
|
|
354
354
|
})
|
|
355
355
|
),
|
|
356
356
|
...s(
|
|
357
|
-
|
|
357
|
+
a.generalSettings.isMobile,
|
|
358
358
|
r?.size || "medium",
|
|
359
|
-
"
|
|
359
|
+
"bodyStandard"
|
|
360
360
|
)
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -365,12 +365,12 @@ const t = {
|
|
|
365
365
|
/**
|
|
366
366
|
* estilos para paper de Material UI
|
|
367
367
|
*/
|
|
368
|
-
paper: ({ theme:
|
|
368
|
+
paper: ({ theme: a, ownerState: r }) => ({
|
|
369
369
|
minWidth: "0 !important",
|
|
370
|
-
padding:
|
|
371
|
-
borderRadius:
|
|
370
|
+
padding: a.vars.size.baseSpacings.sp3,
|
|
371
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
372
372
|
"& .MuiPickersLayout-root": {
|
|
373
|
-
gap:
|
|
373
|
+
gap: a.vars.size.baseSpacings.sp2
|
|
374
374
|
},
|
|
375
375
|
// Estilos globales del MuiPickersLayout-root 🌎
|
|
376
376
|
"& .MuiPickersToolbar-root": {
|
|
@@ -379,41 +379,41 @@ const t = {
|
|
|
379
379
|
// ↴ Overrides ❌
|
|
380
380
|
"& > span:first-of-type": {
|
|
381
381
|
...s(
|
|
382
|
-
|
|
382
|
+
a.generalSettings.isMobile,
|
|
383
383
|
r?.size || "medium",
|
|
384
|
-
"
|
|
384
|
+
"bodyStandard"
|
|
385
385
|
)
|
|
386
386
|
},
|
|
387
387
|
// ↴ Overrides ❌
|
|
388
388
|
"& .MuiPickersToolbar-content": {
|
|
389
389
|
"& .MuiDateTimePickerToolbar-dateContainer": {
|
|
390
390
|
"& button > span": {
|
|
391
|
-
color:
|
|
391
|
+
color: a.vars.palette.text.primary,
|
|
392
392
|
"&.Mui-selected": {
|
|
393
|
-
color:
|
|
393
|
+
color: a.vars.palette.primary.selected
|
|
394
394
|
}
|
|
395
395
|
},
|
|
396
396
|
"& button:nth-of-type(1) > span": {
|
|
397
397
|
...s(
|
|
398
|
-
|
|
398
|
+
a.generalSettings.isMobile,
|
|
399
399
|
r?.size || "medium",
|
|
400
|
-
"
|
|
400
|
+
"bodyStandard"
|
|
401
401
|
)
|
|
402
402
|
},
|
|
403
403
|
"& button:nth-of-type(2) > span": {
|
|
404
404
|
...s(
|
|
405
|
-
|
|
405
|
+
a.generalSettings.isMobile,
|
|
406
406
|
r?.size || "medium",
|
|
407
|
-
"
|
|
407
|
+
"subtitleStandard"
|
|
408
408
|
)
|
|
409
409
|
}
|
|
410
410
|
},
|
|
411
411
|
"& .MuiDateTimePickerToolbar-timeContainer": {
|
|
412
|
-
gap:
|
|
412
|
+
gap: a.vars.size.baseSpacings.sp2,
|
|
413
413
|
"& button > span": {
|
|
414
|
-
color:
|
|
414
|
+
color: a.vars.palette.text.primary,
|
|
415
415
|
"&.Mui-selected": {
|
|
416
|
-
color:
|
|
416
|
+
color: a.vars.palette.primary.selected
|
|
417
417
|
}
|
|
418
418
|
},
|
|
419
419
|
"& .MuiDateTimePickerToolbar-timeDigitsContainer": {
|
|
@@ -423,9 +423,9 @@ const t = {
|
|
|
423
423
|
},
|
|
424
424
|
"& button:nth-of-type(1) > span, & button:nth-of-type(2) > span": {
|
|
425
425
|
...s(
|
|
426
|
-
|
|
426
|
+
a.generalSettings.isMobile,
|
|
427
427
|
r?.size || "medium",
|
|
428
|
-
"
|
|
428
|
+
"subtitleStandard"
|
|
429
429
|
)
|
|
430
430
|
}
|
|
431
431
|
},
|
|
@@ -434,9 +434,9 @@ const t = {
|
|
|
434
434
|
justifyContent: "center",
|
|
435
435
|
alignSelf: "center",
|
|
436
436
|
...s(
|
|
437
|
-
|
|
437
|
+
a.generalSettings.isMobile,
|
|
438
438
|
r?.size || "medium",
|
|
439
|
-
"
|
|
439
|
+
"subtitleStandard"
|
|
440
440
|
)
|
|
441
441
|
},
|
|
442
442
|
"& .MuiDateTimePickerToolbar-ampmSelection": {
|
|
@@ -447,19 +447,19 @@ const t = {
|
|
|
447
447
|
display: "flex",
|
|
448
448
|
alignItems: "center",
|
|
449
449
|
...o(
|
|
450
|
-
|
|
450
|
+
a.generalSettings.isMobile,
|
|
451
451
|
r?.size || "small",
|
|
452
452
|
"action",
|
|
453
|
-
(
|
|
454
|
-
height:
|
|
455
|
-
minHeight:
|
|
456
|
-
maxHeight:
|
|
453
|
+
(i) => ({
|
|
454
|
+
height: i,
|
|
455
|
+
minHeight: i,
|
|
456
|
+
maxHeight: i
|
|
457
457
|
})
|
|
458
458
|
),
|
|
459
459
|
...s(
|
|
460
|
-
|
|
460
|
+
a.generalSettings.isMobile,
|
|
461
461
|
r?.size || "medium",
|
|
462
|
-
"
|
|
462
|
+
"bodyStandard"
|
|
463
463
|
)
|
|
464
464
|
}
|
|
465
465
|
}
|
|
@@ -474,28 +474,28 @@ const t = {
|
|
|
474
474
|
minHeight: "auto",
|
|
475
475
|
width: "fit-content",
|
|
476
476
|
boxShadow: "none",
|
|
477
|
-
background:
|
|
478
|
-
paddingBottom:
|
|
479
|
-
gap:
|
|
480
|
-
borderRadius:
|
|
481
|
-
borderBottomLeftRadius:
|
|
482
|
-
borderBottomRightRadius:
|
|
477
|
+
background: a.vars.palette.default.enabled,
|
|
478
|
+
paddingBottom: a.vars.size.baseSpacings.sp0,
|
|
479
|
+
gap: a.vars.size.baseSpacings.sp0,
|
|
480
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
481
|
+
borderBottomLeftRadius: a.vars.size.borderRadius.r0,
|
|
482
|
+
borderBottomRightRadius: a.vars.size.borderRadius.r0,
|
|
483
483
|
"& .MuiTab-root": {
|
|
484
|
-
border:
|
|
485
|
-
borderColor:
|
|
486
|
-
borderTopLeftRadius: `calc(${
|
|
487
|
-
borderTopRightRadius: `calc(${
|
|
484
|
+
border: a.vars.size.borderStroke.container,
|
|
485
|
+
borderColor: a.vars.palette.default.enabled,
|
|
486
|
+
borderTopLeftRadius: `calc(${a.vars.size.borderRadius.r1} - 1px)`,
|
|
487
|
+
borderTopRightRadius: `calc(${a.vars.size.borderRadius.r1} - 1px)`,
|
|
488
488
|
...o(
|
|
489
|
-
|
|
489
|
+
a.generalSettings.isMobile,
|
|
490
490
|
r?.size || "small",
|
|
491
491
|
"container",
|
|
492
|
-
(
|
|
493
|
-
minHeight:
|
|
494
|
-
height:
|
|
495
|
-
maxHeight:
|
|
496
|
-
minWidth:
|
|
497
|
-
width:
|
|
498
|
-
maxWidth:
|
|
492
|
+
(i) => ({
|
|
493
|
+
minHeight: i,
|
|
494
|
+
height: i,
|
|
495
|
+
maxHeight: i,
|
|
496
|
+
minWidth: i,
|
|
497
|
+
width: i,
|
|
498
|
+
maxWidth: i
|
|
499
499
|
})
|
|
500
500
|
),
|
|
501
501
|
"& .MuiTouchRipple-root": {
|
|
@@ -503,17 +503,17 @@ const t = {
|
|
|
503
503
|
}
|
|
504
504
|
},
|
|
505
505
|
"& .MuiTab-root.Mui-selected": {
|
|
506
|
-
background:
|
|
506
|
+
background: a.vars.palette.background.default,
|
|
507
507
|
"&::after": {
|
|
508
508
|
content: '""',
|
|
509
509
|
width: "70%",
|
|
510
510
|
transform: "translateX(20%)",
|
|
511
|
-
height:
|
|
511
|
+
height: a.vars.size.borderRadius["r0-5"],
|
|
512
512
|
left: 0,
|
|
513
513
|
top: 0,
|
|
514
|
-
backgroundColor: r?.tabSkeleton ?
|
|
515
|
-
borderEndStartRadius:
|
|
516
|
-
borderEndEndRadius:
|
|
514
|
+
backgroundColor: r?.tabSkeleton ? a.vars.palette.skeleton.default : r?.tabDisabled ? a.vars.palette.text.disabled : a.vars.palette.primary.enabled,
|
|
515
|
+
borderEndStartRadius: a.vars.size.borderRadius.r1,
|
|
516
|
+
borderEndEndRadius: a.vars.size.borderRadius.r1,
|
|
517
517
|
position: "absolute"
|
|
518
518
|
}
|
|
519
519
|
},
|
|
@@ -525,48 +525,48 @@ const t = {
|
|
|
525
525
|
display: "flex",
|
|
526
526
|
width: "fit-content",
|
|
527
527
|
height: "fit-content",
|
|
528
|
-
gap:
|
|
529
|
-
padding:
|
|
530
|
-
border:
|
|
531
|
-
borderRadius:
|
|
528
|
+
gap: a.vars.size.baseSpacings.sp3,
|
|
529
|
+
padding: a.vars.size.baseSpacings.sp3,
|
|
530
|
+
border: a.vars.size.borderStroke.container,
|
|
531
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
532
532
|
borderTopLeftRadius: 0,
|
|
533
|
-
borderColor:
|
|
533
|
+
borderColor: a.vars.palette.border.default,
|
|
534
534
|
margin: 0,
|
|
535
535
|
"& .MuiYearCalendar-root": {
|
|
536
536
|
// Fix en el height
|
|
537
537
|
height: "218px",
|
|
538
538
|
"& .MuiPickersYear-yearButton": {
|
|
539
539
|
margin: 0,
|
|
540
|
-
borderRadius:
|
|
540
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
541
541
|
"&:hover": {
|
|
542
|
-
background:
|
|
542
|
+
background: a.vars.palette.default.hoverOpacity
|
|
543
543
|
},
|
|
544
544
|
"&:active": {
|
|
545
|
-
background:
|
|
545
|
+
background: a.vars.palette.default.active
|
|
546
546
|
},
|
|
547
547
|
"&.Mui-selected": {
|
|
548
|
-
background:
|
|
548
|
+
background: a.vars.palette.primary.enabled,
|
|
549
549
|
"&:hover": {
|
|
550
|
-
background:
|
|
550
|
+
background: a.vars.palette.primary.hover
|
|
551
551
|
},
|
|
552
552
|
"&:active": {
|
|
553
|
-
background:
|
|
553
|
+
background: a.vars.palette.primary.active
|
|
554
554
|
}
|
|
555
555
|
},
|
|
556
556
|
...o(
|
|
557
|
-
|
|
557
|
+
a.generalSettings.isMobile,
|
|
558
558
|
r?.size || "small",
|
|
559
559
|
"action",
|
|
560
|
-
(
|
|
561
|
-
minHeight:
|
|
562
|
-
height:
|
|
563
|
-
maxHeight:
|
|
560
|
+
(i) => ({
|
|
561
|
+
minHeight: i,
|
|
562
|
+
height: i,
|
|
563
|
+
maxHeight: i
|
|
564
564
|
})
|
|
565
565
|
),
|
|
566
566
|
...s(
|
|
567
|
-
|
|
567
|
+
a.generalSettings.isMobile,
|
|
568
568
|
r?.size || "medium",
|
|
569
|
-
"
|
|
569
|
+
"bodyStandard"
|
|
570
570
|
)
|
|
571
571
|
}
|
|
572
572
|
}
|
|
@@ -574,28 +574,28 @@ const t = {
|
|
|
574
574
|
// ↴ Overrides ❌
|
|
575
575
|
"& .MuiDayCalendar-root": {
|
|
576
576
|
width: "fit-content",
|
|
577
|
-
padding:
|
|
577
|
+
padding: a.vars.size.baseSpacings.sp2,
|
|
578
578
|
"& .MuiDayCalendar-header": {
|
|
579
579
|
display: "flex",
|
|
580
|
-
gap:
|
|
580
|
+
gap: a.vars.size.baseSpacings.sp1,
|
|
581
581
|
"& .MuiTypography-root": {
|
|
582
582
|
margin: 0,
|
|
583
583
|
...s(
|
|
584
|
-
|
|
584
|
+
a.generalSettings.isMobile,
|
|
585
585
|
r?.size || "medium",
|
|
586
|
-
"
|
|
586
|
+
"bodyStandard"
|
|
587
587
|
),
|
|
588
588
|
...o(
|
|
589
|
-
|
|
589
|
+
a.generalSettings.isMobile,
|
|
590
590
|
r?.size || "small",
|
|
591
591
|
"action",
|
|
592
|
-
(
|
|
593
|
-
minHeight:
|
|
594
|
-
height:
|
|
595
|
-
maxHeight:
|
|
596
|
-
minWidth:
|
|
597
|
-
width:
|
|
598
|
-
maxWidth:
|
|
592
|
+
(i) => ({
|
|
593
|
+
minHeight: i,
|
|
594
|
+
height: i,
|
|
595
|
+
maxHeight: i,
|
|
596
|
+
minWidth: i,
|
|
597
|
+
width: i,
|
|
598
|
+
maxWidth: i
|
|
599
599
|
})
|
|
600
600
|
)
|
|
601
601
|
}
|
|
@@ -603,18 +603,18 @@ const t = {
|
|
|
603
603
|
"& .MuiDayCalendar-weekContainer": {
|
|
604
604
|
display: "flex",
|
|
605
605
|
margin: 0,
|
|
606
|
-
paddingTop:
|
|
607
|
-
gap:
|
|
606
|
+
paddingTop: a.vars.size.baseSpacings.sp1,
|
|
607
|
+
gap: a.vars.size.baseSpacings.sp1
|
|
608
608
|
}
|
|
609
609
|
},
|
|
610
610
|
"& .MuiTimeClock-root": {
|
|
611
611
|
width: "fit-content",
|
|
612
|
-
border:
|
|
613
|
-
borderRadius:
|
|
614
|
-
borderColor:
|
|
615
|
-
padding:
|
|
612
|
+
border: a.vars.size.borderStroke.container,
|
|
613
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
614
|
+
borderColor: a.vars.palette.border.default,
|
|
615
|
+
padding: a.vars.size.baseSpacings.sp1,
|
|
616
616
|
"& .MuiClock-clock": {
|
|
617
|
-
background:
|
|
617
|
+
background: a.vars.palette.default.enabled
|
|
618
618
|
}
|
|
619
619
|
},
|
|
620
620
|
"& .MuiPickersArrowSwitcher-root": {
|
|
@@ -625,7 +625,7 @@ const t = {
|
|
|
625
625
|
position: "relative"
|
|
626
626
|
},
|
|
627
627
|
"& .MuiPickersLayout-actionBar": {
|
|
628
|
-
padding: `${
|
|
628
|
+
padding: `${a.vars.size.baseSpacings.sp1} 0px`
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
// Estilos globales del MuiDialogActions-root 🌎
|
|
@@ -634,24 +634,24 @@ const t = {
|
|
|
634
634
|
"& .MuiButtonBase-root": {
|
|
635
635
|
margin: 0,
|
|
636
636
|
...o(
|
|
637
|
-
|
|
637
|
+
a.generalSettings.isMobile,
|
|
638
638
|
r?.size || "small",
|
|
639
639
|
"action",
|
|
640
|
-
(
|
|
641
|
-
minHeight:
|
|
642
|
-
height:
|
|
643
|
-
maxHeight:
|
|
644
|
-
minWidth:
|
|
640
|
+
(i) => ({
|
|
641
|
+
minHeight: i,
|
|
642
|
+
height: i,
|
|
643
|
+
maxHeight: i,
|
|
644
|
+
minWidth: i
|
|
645
645
|
})
|
|
646
646
|
),
|
|
647
647
|
...s(
|
|
648
|
-
|
|
648
|
+
a.generalSettings.isMobile,
|
|
649
649
|
r?.size || "medium",
|
|
650
|
-
"
|
|
650
|
+
"bodyStandard"
|
|
651
651
|
)
|
|
652
652
|
},
|
|
653
653
|
"& .MuiButtonBase-root:nth-of-type(1)": {
|
|
654
|
-
color:
|
|
654
|
+
color: a.vars.palette.text.secondary,
|
|
655
655
|
textTransform: "lowercase"
|
|
656
656
|
},
|
|
657
657
|
"& .MuiButtonBase-root:nth-of-type(2)": {
|
|
@@ -662,71 +662,71 @@ const t = {
|
|
|
662
662
|
/**
|
|
663
663
|
* Estilos de pickersDay de Mui x
|
|
664
664
|
*/
|
|
665
|
-
pickersDay: ({ theme:
|
|
665
|
+
pickersDay: ({ theme: a, ownerState: r }) => ({
|
|
666
666
|
margin: 0,
|
|
667
|
-
borderRadius:
|
|
667
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
668
668
|
"&:hover": {
|
|
669
|
-
background:
|
|
669
|
+
background: a.vars.palette.default.hoverOpacity
|
|
670
670
|
},
|
|
671
671
|
"&:active": {
|
|
672
|
-
background:
|
|
672
|
+
background: a.vars.palette.default.active
|
|
673
673
|
},
|
|
674
674
|
"&.Mui-selected": {
|
|
675
|
-
background:
|
|
675
|
+
background: a.vars.palette.primary.enabled,
|
|
676
676
|
"&:hover": {
|
|
677
|
-
background:
|
|
677
|
+
background: a.vars.palette.primary.hover
|
|
678
678
|
},
|
|
679
679
|
"&:active": {
|
|
680
|
-
background:
|
|
680
|
+
background: a.vars.palette.primary.active
|
|
681
681
|
}
|
|
682
682
|
},
|
|
683
683
|
...o(
|
|
684
|
-
|
|
684
|
+
a.generalSettings.isMobile,
|
|
685
685
|
r?.size || "small",
|
|
686
686
|
"action",
|
|
687
|
-
(
|
|
688
|
-
minHeight:
|
|
689
|
-
height:
|
|
690
|
-
maxHeight:
|
|
691
|
-
minWidth:
|
|
692
|
-
width:
|
|
693
|
-
maxWidth:
|
|
687
|
+
(i) => ({
|
|
688
|
+
minHeight: i,
|
|
689
|
+
height: i,
|
|
690
|
+
maxHeight: i,
|
|
691
|
+
minWidth: i,
|
|
692
|
+
width: i,
|
|
693
|
+
maxWidth: i
|
|
694
694
|
})
|
|
695
695
|
)
|
|
696
696
|
}),
|
|
697
697
|
/**
|
|
698
698
|
*Estilos de pickersCalendarHeader de Mui x
|
|
699
699
|
*/
|
|
700
|
-
pickersCalendarHeader: ({ theme:
|
|
700
|
+
pickersCalendarHeader: ({ theme: a, ownerState: r }) => ({
|
|
701
701
|
display: "flex",
|
|
702
702
|
flexDirection: "row",
|
|
703
703
|
justifyContent: "space-between",
|
|
704
704
|
margin: 0,
|
|
705
|
-
padding: `0px ${
|
|
705
|
+
padding: `0px ${a.vars.size.baseSpacings.sp2}`,
|
|
706
706
|
"& .MuiPickersCalendarHeader-labelContainer": {
|
|
707
|
-
border:
|
|
708
|
-
borderColor:
|
|
707
|
+
border: a.vars.size.borderStroke.actionInput,
|
|
708
|
+
borderColor: a.vars.palette.border.default,
|
|
709
709
|
...o(
|
|
710
|
-
|
|
710
|
+
a.generalSettings.isMobile,
|
|
711
711
|
r?.size || "medium",
|
|
712
712
|
"action",
|
|
713
|
-
(
|
|
714
|
-
height:
|
|
715
|
-
minHeight:
|
|
716
|
-
maxHeight:
|
|
713
|
+
(i) => ({
|
|
714
|
+
height: i,
|
|
715
|
+
minHeight: i,
|
|
716
|
+
maxHeight: i
|
|
717
717
|
})
|
|
718
718
|
),
|
|
719
719
|
margin: 0,
|
|
720
|
-
paddingLeft:
|
|
721
|
-
borderRadius:
|
|
720
|
+
paddingLeft: a.vars.size.baseSpacings.sp1,
|
|
721
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
722
722
|
"& .MuiPickersCalendarHeader-label": {
|
|
723
723
|
margin: 0,
|
|
724
|
-
paddingLeft:
|
|
725
|
-
paddingRight:
|
|
724
|
+
paddingLeft: a.vars.size.baseSpacings.sp1,
|
|
725
|
+
paddingRight: a.vars.size.baseSpacings.sp3,
|
|
726
726
|
...s(
|
|
727
|
-
|
|
727
|
+
a.generalSettings.isMobile,
|
|
728
728
|
r?.size || "medium",
|
|
729
|
-
"
|
|
729
|
+
"bodyStandard"
|
|
730
730
|
)
|
|
731
731
|
}
|
|
732
732
|
}
|
|
@@ -736,19 +736,19 @@ const t = {
|
|
|
736
736
|
/**
|
|
737
737
|
* estilos para el skeleton 🦴
|
|
738
738
|
*/
|
|
739
|
-
skeleton: ({ theme:
|
|
739
|
+
skeleton: ({ theme: a, ownerState: r }) => ({
|
|
740
740
|
...o(
|
|
741
|
-
|
|
741
|
+
a.generalSettings.isMobile,
|
|
742
742
|
r?.size || "small",
|
|
743
743
|
"action",
|
|
744
|
-
(
|
|
745
|
-
height:
|
|
746
|
-
minHeight:
|
|
747
|
-
maxHeight:
|
|
744
|
+
(i) => ({
|
|
745
|
+
height: i,
|
|
746
|
+
minHeight: i,
|
|
747
|
+
maxHeight: i
|
|
748
748
|
})
|
|
749
749
|
)
|
|
750
750
|
})
|
|
751
751
|
};
|
|
752
752
|
export {
|
|
753
|
-
|
|
753
|
+
n as dateTimePickerStyles
|
|
754
754
|
};
|