@m4l/components 9.3.41 β 9.3.43-BE20251205-beta.2
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.
|
@@ -20,7 +20,7 @@ const dateTimePickerStyles = {
|
|
|
20
20
|
"& .MuiInputBase-root": {
|
|
21
21
|
height: "100%",
|
|
22
22
|
padding: 0,
|
|
23
|
-
borderRadius: theme.vars.size.borderRadius.
|
|
23
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
24
24
|
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
25
25
|
"& input": {
|
|
26
26
|
padding: 0,
|
|
@@ -61,7 +61,7 @@ const dateTimePickerStyles = {
|
|
|
61
61
|
border: 0,
|
|
62
62
|
borderBottom: theme.vars.size.borderStroke.actionInput
|
|
63
63
|
},
|
|
64
|
-
borderColor: ownerState?.error ? theme.vars.palette.error.hover :
|
|
64
|
+
borderColor: ownerState?.error ? theme.vars.palette.error.hover : theme.vars.palette.border.secondary,
|
|
65
65
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
66
66
|
borderWidth: 1
|
|
67
67
|
},
|
|
@@ -111,7 +111,7 @@ const dateTimePickerStyles = {
|
|
|
111
111
|
"& .MuiInputBase-root": {
|
|
112
112
|
height: "100%",
|
|
113
113
|
padding: 0,
|
|
114
|
-
borderRadius: theme.vars.size.borderRadius.
|
|
114
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
115
115
|
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
116
116
|
"& input": {
|
|
117
117
|
padding: 0,
|
|
@@ -164,93 +164,155 @@ const dateTimePickerStyles = {
|
|
|
164
164
|
* Estilos para el popper de Material UI
|
|
165
165
|
*/
|
|
166
166
|
popper: ({ theme, ownerState }) => ({
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
// Estilos globales del MuiPickersLayout-root π
|
|
178
|
-
"& .MuiPickersLayout-root": {
|
|
179
|
-
gap: `0px 0px ${theme.vars.size.baseSpacings.sp1} 0px`,
|
|
180
|
-
"& .MuiPickersLayout-contentWrapper": {
|
|
181
|
-
// β΄ Overrides β
|
|
182
|
-
// paddingLeft: theme.vars.size.baseSpacings.sp3,
|
|
183
|
-
// paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
184
|
-
// Estilos especΓficos para el primer div hijo directo
|
|
185
|
-
"& > div:first-of-type": {
|
|
186
|
-
height: "265px"
|
|
167
|
+
"&&&": {
|
|
168
|
+
zIndex: theme.vars.zIndex.modal,
|
|
169
|
+
marginTop: `${theme.vars.size.baseSpacings.sp2} !important`,
|
|
170
|
+
"& .MuiPickersDay-root.Mui-selected": {
|
|
171
|
+
backgroundColor: theme.vars.palette.primary.enabled,
|
|
172
|
+
"&:hover": {
|
|
173
|
+
backgroundColor: theme.vars.palette.primary.hover
|
|
174
|
+
},
|
|
175
|
+
"&:active": {
|
|
176
|
+
backgroundColor: theme.vars.palette.primary.active
|
|
187
177
|
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
178
|
+
},
|
|
179
|
+
"& .MuiMultiSectionDigitalClockSection-item": {
|
|
180
|
+
borderRadius: theme.vars.size.borderRadius.r1,
|
|
181
|
+
"&.Mui-selected": {
|
|
182
|
+
backgroundColor: theme.vars.palette.primary.enabled,
|
|
183
|
+
"&:hover": {
|
|
184
|
+
backgroundColor: theme.vars.palette.primary.hover
|
|
185
|
+
},
|
|
186
|
+
"&:active": {
|
|
187
|
+
backgroundColor: theme.vars.palette.primary.active
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"& .MuiDivider-root": {
|
|
192
|
+
borderColor: theme.vars.palette.border.secondary
|
|
193
|
+
},
|
|
194
|
+
// Estilos globales del MuiPickersLayout-root π
|
|
195
|
+
"& .MuiPaper-root": {
|
|
196
|
+
paddingTop: theme.vars.size.baseSpacings.sp3,
|
|
197
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
198
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
199
|
+
boxShadow: theme.vars.customShadows.z4
|
|
200
|
+
},
|
|
201
|
+
// Estilos globales del MuiPickersLayout-root π
|
|
202
|
+
"& .MuiPickersLayout-root": {
|
|
203
|
+
gap: `0px 0px ${theme.vars.size.baseSpacings.sp1} 0px`,
|
|
204
|
+
"& .MuiPickersLayout-contentWrapper": {
|
|
205
|
+
// β΄ Overrides β
|
|
206
|
+
// paddingLeft: theme.vars.size.baseSpacings.sp3,
|
|
207
|
+
// paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
208
|
+
// Estilos especΓficos para el primer div hijo directo
|
|
209
|
+
"& > div:first-of-type": {
|
|
210
|
+
height: "265px"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
// Estilos globales del MuiDateCalendar-root π
|
|
215
|
+
"& .MuiDateCalendar-root": {
|
|
216
|
+
display: "flex",
|
|
217
|
+
width: "fit-content",
|
|
218
|
+
position: "relative",
|
|
219
|
+
top: -1,
|
|
220
|
+
gap: theme.vars.size.baseSpacings.sp3,
|
|
221
|
+
padding: theme.vars.size.baseSpacings.sp1,
|
|
222
|
+
// β΄ Overrides β
|
|
223
|
+
"& .MuiYearCalendar-root": {
|
|
224
|
+
// Fix en el height
|
|
225
|
+
height: "218px",
|
|
226
|
+
"& .MuiPickersYear-root": {
|
|
227
|
+
"& .MuiPickersYear-yearButton": {
|
|
228
|
+
width: "fit-content",
|
|
229
|
+
padding: `0px ${theme.vars.size.baseSpacings.sp3}`,
|
|
230
|
+
borderRadius: theme.vars.size.borderRadius.r1,
|
|
215
231
|
"&:hover": {
|
|
216
|
-
background: theme.vars.palette.
|
|
232
|
+
background: theme.vars.palette.default.hoverOpacity
|
|
217
233
|
},
|
|
218
234
|
"&:active": {
|
|
219
|
-
background: theme.vars.palette.
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
background: theme.vars.palette.default.active
|
|
236
|
+
},
|
|
237
|
+
"&.Mui-selected": {
|
|
238
|
+
background: theme.vars.palette.primary.enabled,
|
|
239
|
+
"&:hover": {
|
|
240
|
+
background: theme.vars.palette.primary.hover
|
|
241
|
+
},
|
|
242
|
+
"&:active": {
|
|
243
|
+
background: theme.vars.palette.primary.active
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
...getHeightSizeStyles(
|
|
247
|
+
theme.generalSettings.isMobile,
|
|
248
|
+
ownerState?.size || "small",
|
|
249
|
+
"action",
|
|
250
|
+
(height) => ({
|
|
251
|
+
minHeight: height,
|
|
252
|
+
height,
|
|
253
|
+
maxHeight: height
|
|
254
|
+
})
|
|
255
|
+
),
|
|
256
|
+
...getTypographyStyles(
|
|
257
|
+
theme.generalSettings.isMobile,
|
|
258
|
+
ownerState?.size || "medium",
|
|
259
|
+
"body"
|
|
260
|
+
)
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
// β΄ Overrides β
|
|
265
|
+
"& .MuiDayCalendar-root": {
|
|
266
|
+
width: "fit-content",
|
|
267
|
+
padding: theme.vars.size.baseSpacings.sp2,
|
|
268
|
+
"& .MuiDayCalendar-header": {
|
|
269
|
+
display: "flex",
|
|
270
|
+
gap: theme.vars.size.baseSpacings.sp1,
|
|
271
|
+
"& .MuiTypography-root": {
|
|
272
|
+
margin: 0,
|
|
273
|
+
...getTypographyStyles(
|
|
274
|
+
theme.generalSettings.isMobile,
|
|
275
|
+
ownerState?.size || "medium",
|
|
276
|
+
"body"
|
|
277
|
+
),
|
|
278
|
+
...getHeightSizeStyles(
|
|
279
|
+
theme.generalSettings.isMobile,
|
|
280
|
+
ownerState?.size || "small",
|
|
281
|
+
"action",
|
|
282
|
+
(height) => ({
|
|
283
|
+
minHeight: height,
|
|
284
|
+
height,
|
|
285
|
+
maxHeight: height,
|
|
286
|
+
minWidth: height,
|
|
287
|
+
width: height,
|
|
288
|
+
maxWidth: height
|
|
289
|
+
})
|
|
290
|
+
)
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"& .MuiDayCalendar-weekContainer": {
|
|
294
|
+
display: "flex",
|
|
295
|
+
margin: 0,
|
|
296
|
+
paddingTop: theme.vars.size.baseSpacings.sp1,
|
|
297
|
+
gap: theme.vars.size.baseSpacings.sp1
|
|
237
298
|
}
|
|
238
299
|
}
|
|
239
300
|
},
|
|
240
|
-
//
|
|
241
|
-
"& .
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
"& .
|
|
301
|
+
// Estilos globales del MuiMultiSectionDigitalClock-root π
|
|
302
|
+
"& .MuiMultiSectionDigitalClock-root": {
|
|
303
|
+
padding: theme.vars.size.baseSpacings.sp1,
|
|
304
|
+
// β΄ Overrides β
|
|
305
|
+
"& .MuiList-root": {
|
|
245
306
|
display: "flex",
|
|
246
|
-
|
|
247
|
-
|
|
307
|
+
width: "fit-content",
|
|
308
|
+
flexDirection: "column",
|
|
309
|
+
overflow: "overlay",
|
|
310
|
+
borderColor: theme.vars.palette.border.secondary,
|
|
311
|
+
paddingRight: theme.vars.size.baseSpacings.sp2,
|
|
312
|
+
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
313
|
+
gap: theme.vars.size.baseSpacings.sp2,
|
|
314
|
+
"& .MuiButtonBase-root": {
|
|
248
315
|
margin: 0,
|
|
249
|
-
...getTypographyStyles(
|
|
250
|
-
theme.generalSettings.isMobile,
|
|
251
|
-
ownerState?.size || "medium",
|
|
252
|
-
"body"
|
|
253
|
-
),
|
|
254
316
|
...getHeightSizeStyles(
|
|
255
317
|
theme.generalSettings.isMobile,
|
|
256
318
|
ownerState?.size || "small",
|
|
@@ -263,30 +325,19 @@ const dateTimePickerStyles = {
|
|
|
263
325
|
width: height,
|
|
264
326
|
maxWidth: height
|
|
265
327
|
})
|
|
328
|
+
),
|
|
329
|
+
...getTypographyStyles(
|
|
330
|
+
theme.generalSettings.isMobile,
|
|
331
|
+
ownerState?.size || "medium",
|
|
332
|
+
"body"
|
|
266
333
|
)
|
|
267
334
|
}
|
|
268
|
-
},
|
|
269
|
-
"& .MuiDayCalendar-weekContainer": {
|
|
270
|
-
display: "flex",
|
|
271
|
-
margin: 0,
|
|
272
|
-
paddingTop: theme.vars.size.baseSpacings.sp1,
|
|
273
|
-
gap: theme.vars.size.baseSpacings.sp1
|
|
274
335
|
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
// β΄ Overrides β
|
|
281
|
-
"& .MuiList-root": {
|
|
282
|
-
display: "flex",
|
|
283
|
-
width: "fit-content",
|
|
284
|
-
flexDirection: "column",
|
|
285
|
-
overflow: "overlay",
|
|
286
|
-
borderColor: theme.vars.palette.border.secondary,
|
|
287
|
-
paddingRight: theme.vars.size.baseSpacings.sp2,
|
|
288
|
-
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
289
|
-
gap: theme.vars.size.baseSpacings.sp2,
|
|
336
|
+
},
|
|
337
|
+
// Estilos globales del MuiDialogActions-root π
|
|
338
|
+
"& .MuiDialogActions-root": {
|
|
339
|
+
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
340
|
+
// β΄ Overrides β
|
|
290
341
|
"& .MuiButtonBase-root": {
|
|
291
342
|
margin: 0,
|
|
292
343
|
...getHeightSizeStyles(
|
|
@@ -309,32 +360,6 @@ const dateTimePickerStyles = {
|
|
|
309
360
|
)
|
|
310
361
|
}
|
|
311
362
|
}
|
|
312
|
-
},
|
|
313
|
-
// Estilos globales del MuiDialogActions-root π
|
|
314
|
-
"& .MuiDialogActions-root": {
|
|
315
|
-
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
316
|
-
// β΄ Overrides β
|
|
317
|
-
"& .MuiButtonBase-root": {
|
|
318
|
-
margin: 0,
|
|
319
|
-
...getHeightSizeStyles(
|
|
320
|
-
theme.generalSettings.isMobile,
|
|
321
|
-
ownerState?.size || "small",
|
|
322
|
-
"action",
|
|
323
|
-
(height) => ({
|
|
324
|
-
minHeight: height,
|
|
325
|
-
height,
|
|
326
|
-
maxHeight: height,
|
|
327
|
-
minWidth: height,
|
|
328
|
-
width: height,
|
|
329
|
-
maxWidth: height
|
|
330
|
-
})
|
|
331
|
-
),
|
|
332
|
-
...getTypographyStyles(
|
|
333
|
-
theme.generalSettings.isMobile,
|
|
334
|
-
ownerState?.size || "medium",
|
|
335
|
-
"body"
|
|
336
|
-
)
|
|
337
|
-
}
|
|
338
363
|
}
|
|
339
364
|
}),
|
|
340
365
|
/**
|