@m4l/graphics 7.2.1 → 7.2.2-BE20260202-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.
@@ -0,0 +1,299 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ /**
3
+ * Genera los estilos globales para el popup del DateRangePicker de rsuite.
4
+ * Estos estilos se aplican globalmente a todos los popups de DateRangePicker.
5
+ * @param theme - Tema de MUI
6
+ * @returns Objeto con los estilos del popup
7
+ */
8
+ export declare function getDateRangePickerPopupGlobalStyles(theme: Theme): {
9
+ '.rs-picker-popup': {
10
+ backgroundColor: string;
11
+ borderRadius: string;
12
+ marginTop: string;
13
+ boxShadow: string;
14
+ color: string;
15
+ '& .rs-picker-daterange-header': {
16
+ fontSize: string;
17
+ lineHeight: string;
18
+ fontWeight: number;
19
+ letterSpacing: string;
20
+ color: string;
21
+ borderColor: string;
22
+ };
23
+ '& .rs-picker-daterange-calendar-group': {
24
+ height: string;
25
+ '& .rs-calendar-header': {
26
+ '& .rs-btn-icon:not([data-with-text])': {
27
+ '&:hover': {
28
+ backgroundColor: string;
29
+ };
30
+ '&:active': {
31
+ backgroundColor: string;
32
+ };
33
+ '& svg': {
34
+ fill: string;
35
+ };
36
+ };
37
+ '& .rs-calendar-header-title': {
38
+ '&:hover': {
39
+ backgroundColor: string;
40
+ };
41
+ '&:active': {
42
+ backgroundColor: string;
43
+ };
44
+ fontSize: string;
45
+ lineHeight: string;
46
+ fontWeight: number;
47
+ letterSpacing: string;
48
+ color: string;
49
+ };
50
+ };
51
+ '& .rs-calendar:first-child': {
52
+ borderColor: string;
53
+ };
54
+ '& .rs-calendar-body': {
55
+ display: string;
56
+ alignItems: string;
57
+ justifyContent: string;
58
+ '& .rs-calendar-table': {
59
+ display: string;
60
+ flexDirection: string;
61
+ alignItems: string;
62
+ justifyContent: string;
63
+ gap: string;
64
+ '& .rs-calendar-table-header-row': {
65
+ display: string;
66
+ justifyContent: string;
67
+ width: string;
68
+ '& .rs-calendar-table-header-cell': {
69
+ width: string;
70
+ height: string;
71
+ '& .rs-calendar-table-header-cell-content': any;
72
+ };
73
+ };
74
+ };
75
+ '& .rs-calendar-table-cell': {
76
+ width: string;
77
+ height: string;
78
+ borderTop: string;
79
+ borderBottom: string;
80
+ '&:hover .rs-calendar-table-cell-content': {
81
+ backgroundColor: string;
82
+ '& .rs-calendar-table-cell-day': {
83
+ color: string;
84
+ };
85
+ };
86
+ '&:active .rs-calendar-table-cell-content': {
87
+ backgroundColor: string;
88
+ '& .rs-calendar-table-cell-day': {
89
+ color: string;
90
+ };
91
+ };
92
+ '& .rs-calendar-table-cell-content': any;
93
+ '&.rs-calendar-table-cell-un-same-month': {
94
+ '& .rs-calendar-table-cell-content': {
95
+ '& .rs-calendar-table-cell-day': {
96
+ color: string;
97
+ };
98
+ };
99
+ };
100
+ '&.rs-calendar-table-cell-is-today': {
101
+ '& .rs-calendar-table-cell-content': {
102
+ boxShadow: string;
103
+ };
104
+ };
105
+ '&.rs-calendar-table-cell-in-range': {
106
+ borderRadius: number;
107
+ borderTop: string;
108
+ borderBottom: string;
109
+ '&:before': {
110
+ height: string;
111
+ margin: string;
112
+ backgroundColor: string;
113
+ inset: number;
114
+ };
115
+ '& .rs-calendar-table-cell-content': {
116
+ backgroundColor: string;
117
+ };
118
+ };
119
+ '&.rs-calendar-table-cell-selected-start': {
120
+ borderTopLeftRadius: string;
121
+ borderBottomLeftRadius: string;
122
+ '&:hover .rs-calendar-table-cell-content': {
123
+ backgroundColor: string;
124
+ '& .rs-calendar-table-cell-day': {
125
+ color: string;
126
+ };
127
+ };
128
+ '&:active .rs-calendar-table-cell-content': {
129
+ backgroundColor: string;
130
+ '& .rs-calendar-table-cell-day': {
131
+ color: string;
132
+ };
133
+ };
134
+ '& .rs-calendar-table-cell-content': {
135
+ boxShadow: string;
136
+ backgroundColor: string;
137
+ };
138
+ };
139
+ '&.rs-calendar-table-cell-selected-end': {
140
+ borderTopRightRadius: string;
141
+ borderBottomRightRadius: string;
142
+ '&:hover .rs-calendar-table-cell-content': {
143
+ backgroundColor: string;
144
+ '& .rs-calendar-table-cell-day': {
145
+ color: string;
146
+ };
147
+ };
148
+ '&:active .rs-calendar-table-cell-content': {
149
+ backgroundColor: string;
150
+ '& .rs-calendar-table-cell-day': {
151
+ color: string;
152
+ };
153
+ };
154
+ '& .rs-calendar-table-cell-content': {
155
+ boxShadow: string;
156
+ backgroundColor: string;
157
+ };
158
+ };
159
+ };
160
+ };
161
+ '& .rs-calendar-month-dropdown': {
162
+ backgroundColor: string;
163
+ borderColor: string;
164
+ '& .rs-calendar-month-dropdown-row': {
165
+ borderColor: string;
166
+ '& .rs-calendar-month-dropdown-list': {
167
+ height: string;
168
+ };
169
+ '& .rs-calendar-month-dropdown-year': {
170
+ '&.rs-calendar-month-dropdown-year-active': {
171
+ color: string;
172
+ };
173
+ fontSize: string;
174
+ lineHeight: string;
175
+ fontWeight: number;
176
+ letterSpacing: string;
177
+ color: string;
178
+ };
179
+ '& .rs-calendar-month-dropdown-cell': {
180
+ display: string;
181
+ alignItems: string;
182
+ justifyContent: string;
183
+ '& .rs-calendar-month-dropdown-cell-content': {
184
+ '&:hover': {
185
+ backgroundColor: string;
186
+ color: string;
187
+ };
188
+ '&:active': {
189
+ backgroundColor: string;
190
+ color: string;
191
+ };
192
+ fontSize: string;
193
+ lineHeight: string;
194
+ fontWeight: number;
195
+ letterSpacing: string;
196
+ color: string;
197
+ };
198
+ '&.rs-calendar-month-dropdown-cell-active .rs-calendar-month-dropdown-cell-content': {
199
+ '&:hover': {
200
+ backgroundColor: string;
201
+ };
202
+ '&:active': {
203
+ backgroundColor: string;
204
+ };
205
+ fontSize: string;
206
+ lineHeight: string;
207
+ fontWeight: number;
208
+ letterSpacing: string;
209
+ backgroundColor: string;
210
+ color: string;
211
+ };
212
+ };
213
+ };
214
+ };
215
+ '& .rs-calendar-time-dropdown': {
216
+ backgroundColor: string;
217
+ borderColor: string;
218
+ '& .rs-calendar-time-dropdown-column-title': {
219
+ fontSize: string;
220
+ lineHeight: string;
221
+ fontWeight: number;
222
+ letterSpacing: string;
223
+ backgroundColor: string;
224
+ color: string;
225
+ };
226
+ '& .rs-scroll-view-custom-scrollbar': {
227
+ '& li': {
228
+ '& .rs-calendar-time-dropdown-cell': {
229
+ '&:hover': {
230
+ backgroundColor: string;
231
+ };
232
+ '&:active': {
233
+ backgroundColor: string;
234
+ };
235
+ '&.rs-calendar-time-dropdown-cell-active': {
236
+ backgroundColor: string;
237
+ color: string;
238
+ '&:hover': {
239
+ backgroundColor: string;
240
+ };
241
+ '&:active': {
242
+ backgroundColor: string;
243
+ };
244
+ };
245
+ fontSize: string;
246
+ lineHeight: string;
247
+ fontWeight: number;
248
+ letterSpacing: string;
249
+ borderRadius: string;
250
+ color: string;
251
+ };
252
+ };
253
+ };
254
+ };
255
+ '& .rs-calendar-btn-close': {
256
+ backgroundColor: string;
257
+ '&:hover': {
258
+ backgroundColor: string;
259
+ borderColor: string;
260
+ color: string;
261
+ };
262
+ '&:active': {
263
+ backgroundColor: string;
264
+ };
265
+ '& svg': {
266
+ fill: string;
267
+ };
268
+ };
269
+ '& .rs-calendar': {
270
+ borderColor: string;
271
+ height: string;
272
+ };
273
+ };
274
+ '& .rs-picker-toolbar': {
275
+ backgroundColor: string;
276
+ borderColor: string;
277
+ display: string;
278
+ alignItems: string;
279
+ justifyContent: string;
280
+ '& .rs-picker-toolbar-ranges': {
281
+ '& .rs-btn': {
282
+ color: string;
283
+ };
284
+ };
285
+ '& .rs-btn': {
286
+ fontSize: string;
287
+ lineHeight: string;
288
+ fontWeight: number;
289
+ letterSpacing: string;
290
+ };
291
+ '& .rs-picker-toolbar-right': {
292
+ display: string;
293
+ alignItems: string;
294
+ justifyContent: string;
295
+ '& .rs-btn': any;
296
+ };
297
+ };
298
+ };
299
+ };
@@ -0,0 +1,347 @@
1
+ import { TYPOGRAPHY_SIZES_MOBILE as s, TYPOGRAPHY_SIZES_DESKTOP as i } from "@m4l/styles";
2
+ function l(r, a, e, t, n = "height") {
3
+ const d = r.vars.size[r.generalSettings.isMobile ? "mobile" : "desktop"][a][e], c = typeof t == "function" ? t(d) : t;
4
+ return {
5
+ [n]: d,
6
+ ...c
7
+ };
8
+ }
9
+ function o(r, a, e) {
10
+ return (r ? s : i)[a][e];
11
+ }
12
+ function b(r) {
13
+ const a = "medium", e = r.generalSettings.isMobile;
14
+ return {
15
+ // Estilos globales para el popup del DateRangePicker de rsuite
16
+ ".rs-picker-popup": {
17
+ backgroundColor: r.vars.palette.background.default,
18
+ borderRadius: r.vars.size.borderRadius.r3,
19
+ marginTop: r.vars.size.baseSpacings.sp1,
20
+ boxShadow: r.vars.customShadows.z4,
21
+ color: r.vars.palette.text.primary,
22
+ // Header
23
+ "& .rs-picker-daterange-header": {
24
+ color: r.vars.palette.text.primary,
25
+ borderColor: r.vars.palette.border.disabled,
26
+ ...o(e, a, "body")
27
+ },
28
+ // Body
29
+ "& .rs-picker-daterange-calendar-group": {
30
+ height: "fit-content",
31
+ "& .rs-calendar-header": {
32
+ // arrow buttons
33
+ "& .rs-btn-icon:not([data-with-text])": {
34
+ "&:hover": {
35
+ backgroundColor: r.vars.palette.default.hoverOpacity
36
+ },
37
+ "&:active": {
38
+ backgroundColor: r.vars.palette.default.activeOpacity
39
+ },
40
+ "& svg": {
41
+ fill: r.vars.palette.text.primary
42
+ }
43
+ },
44
+ // button title month
45
+ "& .rs-calendar-header-title": {
46
+ color: r.vars.palette.text.primary,
47
+ ...o(e, a, "body"),
48
+ "&:hover": {
49
+ backgroundColor: r.vars.palette.default.hoverOpacity
50
+ },
51
+ "&:active": {
52
+ backgroundColor: r.vars.palette.default.activeOpacity
53
+ }
54
+ }
55
+ },
56
+ // calendar start
57
+ "& .rs-calendar:first-child": {
58
+ borderColor: r.vars.palette.border.disabled
59
+ },
60
+ // calendar body
61
+ "& .rs-calendar-body": {
62
+ display: "flex",
63
+ alignItems: "center",
64
+ justifyContent: "center",
65
+ "& .rs-calendar-table": {
66
+ display: "flex",
67
+ flexDirection: "column",
68
+ alignItems: "center",
69
+ justifyContent: "center",
70
+ gap: r.vars.size.baseSpacings["sp0-5"],
71
+ // table header
72
+ "& .rs-calendar-table-header-row": {
73
+ display: "flex",
74
+ justifyContent: "space-between",
75
+ width: "100%",
76
+ "& .rs-calendar-table-header-cell": {
77
+ width: "fit-content",
78
+ height: "fit-content",
79
+ "& .rs-calendar-table-header-cell-content": {
80
+ color: r.vars.palette.text.secondary,
81
+ ...o(e, a, "body"),
82
+ ...l(
83
+ r,
84
+ a,
85
+ "action",
86
+ (t) => ({
87
+ minWidth: t,
88
+ maxWidth: t,
89
+ height: "auto"
90
+ })
91
+ )
92
+ }
93
+ }
94
+ }
95
+ },
96
+ // button days
97
+ "& .rs-calendar-table-cell": {
98
+ width: "fit-content",
99
+ height: "fit-content",
100
+ borderTop: "1px dashed transparent",
101
+ borderBottom: "1px dashed transparent",
102
+ "&:hover .rs-calendar-table-cell-content": {
103
+ backgroundColor: r.vars.palette.default.hoverOpacity,
104
+ "& .rs-calendar-table-cell-day": {
105
+ color: r.vars.palette.primary.enabled
106
+ }
107
+ },
108
+ "&:active .rs-calendar-table-cell-content": {
109
+ backgroundColor: r.vars.palette.default.activeOpacity,
110
+ "& .rs-calendar-table-cell-day": {
111
+ color: r.vars.palette.primary.enabled
112
+ }
113
+ },
114
+ "& .rs-calendar-table-cell-content": {
115
+ borderRadius: r.vars.size.borderRadius.r2,
116
+ display: "flex",
117
+ alignItems: "center",
118
+ justifyContent: "center",
119
+ ...l(
120
+ r,
121
+ a,
122
+ "action",
123
+ (t) => ({
124
+ minHeight: t,
125
+ maxHeight: t,
126
+ minWidth: t,
127
+ maxWidth: t
128
+ })
129
+ ),
130
+ "& .rs-calendar-table-cell-day": {
131
+ ...o(e, a, "body")
132
+ }
133
+ },
134
+ "&.rs-calendar-table-cell-un-same-month": {
135
+ "& .rs-calendar-table-cell-content": {
136
+ "& .rs-calendar-table-cell-day": {
137
+ color: r.vars.palette.text.secondary
138
+ }
139
+ }
140
+ },
141
+ "&.rs-calendar-table-cell-is-today": {
142
+ "& .rs-calendar-table-cell-content": {
143
+ boxShadow: `0 0 0 1px ${r.vars.palette.primary.enabled}`
144
+ }
145
+ },
146
+ "&.rs-calendar-table-cell-in-range": {
147
+ borderRadius: 0,
148
+ borderTop: `1px dashed ${r.vars.palette.border.secondary}`,
149
+ borderBottom: `1px dashed ${r.vars.palette.border.secondary}`,
150
+ "&:before": {
151
+ height: "unset",
152
+ margin: "unset",
153
+ backgroundColor: r.vars.palette.default.hoverOpacity,
154
+ inset: 0
155
+ },
156
+ "& .rs-calendar-table-cell-content": {
157
+ backgroundColor: "transparent"
158
+ }
159
+ },
160
+ "&.rs-calendar-table-cell-selected-start": {
161
+ // Radio exterior = radio interior (r2 = 8px) + grosor del borde (1px) = 9px
162
+ // para que el contenido interno no se vea cortado en las esquinas
163
+ borderTopLeftRadius: `calc(${r.vars.size.borderRadius.r2} + 1px)`,
164
+ borderBottomLeftRadius: `calc(${r.vars.size.borderRadius.r2} + 1px)`,
165
+ "&:hover .rs-calendar-table-cell-content": {
166
+ backgroundColor: `${r.vars.palette.primary.hover} !important`,
167
+ "& .rs-calendar-table-cell-day": {
168
+ color: `${r.vars.palette.primary.contrastText} !important`
169
+ }
170
+ },
171
+ "&:active .rs-calendar-table-cell-content": {
172
+ backgroundColor: `${r.vars.palette.primary.active} !important`,
173
+ "& .rs-calendar-table-cell-day": {
174
+ color: `${r.vars.palette.primary.contrastText} !important`
175
+ }
176
+ },
177
+ "& .rs-calendar-table-cell-content": {
178
+ boxShadow: `0 0 0 1px ${r.vars.palette.primary.activeOpacity}`,
179
+ backgroundColor: r.vars.palette.primary.enabled
180
+ }
181
+ },
182
+ "&.rs-calendar-table-cell-selected-end": {
183
+ // Radio exterior = radio interior (r2 = 8px) + grosor del borde (1px) = 9px
184
+ // para que el contenido interno no se vea cortado en las esquinas
185
+ borderTopRightRadius: `calc(${r.vars.size.borderRadius.r2} + 1px)`,
186
+ borderBottomRightRadius: `calc(${r.vars.size.borderRadius.r2} + 1px)`,
187
+ "&:hover .rs-calendar-table-cell-content": {
188
+ backgroundColor: `${r.vars.palette.primary.hover} !important`,
189
+ "& .rs-calendar-table-cell-day": {
190
+ color: `${r.vars.palette.primary.contrastText} !important`
191
+ }
192
+ },
193
+ "&:active .rs-calendar-table-cell-content": {
194
+ backgroundColor: `${r.vars.palette.primary.active} !important`,
195
+ "& .rs-calendar-table-cell-day": {
196
+ color: `${r.vars.palette.primary.contrastText} !important`
197
+ }
198
+ },
199
+ "& .rs-calendar-table-cell-content": {
200
+ boxShadow: `0 0 0 1px ${r.vars.palette.primary.activeOpacity}`,
201
+ backgroundColor: r.vars.palette.primary.enabled
202
+ }
203
+ }
204
+ }
205
+ },
206
+ // calendar month dropdown
207
+ "& .rs-calendar-month-dropdown": {
208
+ backgroundColor: r.vars.palette.background.default,
209
+ borderColor: r.vars.palette.border.disabled,
210
+ "& .rs-calendar-month-dropdown-row": {
211
+ borderColor: r.vars.palette.border.disabled,
212
+ "& .rs-calendar-month-dropdown-list": {
213
+ height: "100%"
214
+ },
215
+ // year title
216
+ "& .rs-calendar-month-dropdown-year": {
217
+ color: r.vars.palette.text.primary,
218
+ ...o(e, a, "body"),
219
+ "&.rs-calendar-month-dropdown-year-active": {
220
+ color: r.vars.palette.primary.enabled
221
+ }
222
+ },
223
+ // month title
224
+ "& .rs-calendar-month-dropdown-cell": {
225
+ display: "flex",
226
+ alignItems: "center",
227
+ justifyContent: "center",
228
+ "& .rs-calendar-month-dropdown-cell-content": {
229
+ color: r.vars.palette.text.primary,
230
+ ...o(e, a, "body"),
231
+ "&:hover": {
232
+ backgroundColor: r.vars.palette.default.hoverOpacity,
233
+ color: r.vars.palette.primary.enabled
234
+ },
235
+ "&:active": {
236
+ backgroundColor: r.vars.palette.default.activeOpacity,
237
+ color: r.vars.palette.primary.enabled
238
+ }
239
+ },
240
+ "&.rs-calendar-month-dropdown-cell-active .rs-calendar-month-dropdown-cell-content": {
241
+ backgroundColor: r.vars.palette.primary.enabled,
242
+ color: r.vars.palette.primary.contrastText,
243
+ ...o(e, a, "body"),
244
+ "&:hover": {
245
+ backgroundColor: r.vars.palette.primary.hover
246
+ },
247
+ "&:active": {
248
+ backgroundColor: r.vars.palette.primary.active
249
+ }
250
+ }
251
+ }
252
+ }
253
+ },
254
+ // calendar hours dropdown
255
+ "& .rs-calendar-time-dropdown": {
256
+ backgroundColor: r.vars.palette.background.default,
257
+ borderColor: r.vars.palette.border.disabled,
258
+ "& .rs-calendar-time-dropdown-column-title": {
259
+ backgroundColor: "transparent",
260
+ color: r.vars.palette.text.primary,
261
+ ...o(e, a, "body")
262
+ },
263
+ "& .rs-scroll-view-custom-scrollbar": {
264
+ "& li": {
265
+ "& .rs-calendar-time-dropdown-cell": {
266
+ borderRadius: r.vars.size.borderRadius.r2,
267
+ color: r.vars.palette.text.primary,
268
+ ...o(e, a, "body"),
269
+ "&:hover": {
270
+ backgroundColor: r.vars.palette.default.hoverOpacity
271
+ },
272
+ "&:active": {
273
+ backgroundColor: r.vars.palette.default.activeOpacity
274
+ },
275
+ "&.rs-calendar-time-dropdown-cell-active": {
276
+ backgroundColor: r.vars.palette.primary.enabled,
277
+ color: r.vars.palette.primary.contrastText,
278
+ "&:hover": {
279
+ backgroundColor: r.vars.palette.primary.hover
280
+ },
281
+ "&:active": {
282
+ backgroundColor: r.vars.palette.primary.active
283
+ }
284
+ }
285
+ }
286
+ }
287
+ }
288
+ },
289
+ // calendar close button dropdown
290
+ "& .rs-calendar-btn-close": {
291
+ backgroundColor: r.vars.palette.background.default,
292
+ "&:hover": {
293
+ backgroundColor: r.vars.palette.background.hover,
294
+ borderColor: r.vars.palette.border.disabled,
295
+ color: r.vars.palette.text.primary
296
+ },
297
+ "&:active": {
298
+ backgroundColor: r.vars.palette.background.hover
299
+ },
300
+ "& svg": {
301
+ fill: r.vars.palette.text.primary
302
+ }
303
+ },
304
+ "& .rs-calendar": {
305
+ borderColor: r.vars.palette.border.disabled,
306
+ height: "fit-content"
307
+ }
308
+ },
309
+ // toolbar
310
+ "& .rs-picker-toolbar": {
311
+ backgroundColor: r.vars.palette.background.default,
312
+ borderColor: r.vars.palette.border.disabled,
313
+ display: "flex",
314
+ alignItems: "center",
315
+ justifyContent: "space-between",
316
+ "& .rs-picker-toolbar-ranges": {
317
+ "& .rs-btn": {
318
+ color: r.vars.palette.primary.enabled
319
+ }
320
+ },
321
+ "& .rs-btn": {
322
+ ...o(e, a, "body")
323
+ },
324
+ "& .rs-picker-toolbar-right": {
325
+ display: "flex",
326
+ alignItems: "center",
327
+ justifyContent: "center",
328
+ "& .rs-btn": {
329
+ backgroundColor: r.vars.palette.primary.enabled,
330
+ borderRadius: r.vars.size.borderRadius["r1-5"],
331
+ color: r.vars.palette.primary.contrastText,
332
+ ...l(r, a, "action"),
333
+ "&:hover": {
334
+ backgroundColor: r.vars.palette.primary.hover
335
+ },
336
+ "&:active": {
337
+ backgroundColor: r.vars.palette.primary.active
338
+ }
339
+ }
340
+ }
341
+ }
342
+ }
343
+ };
344
+ }
345
+ export {
346
+ b as g
347
+ };