@metropolle/design-system 1.0.0-beta.2025.8.31.318.1ab7e70 → 1.0.0-beta.2025.9.12.1800.94b9f9c

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,462 @@
1
+ /*
2
+ Back Compat CSS (opt-in)
3
+ Purpose: replicate current @back system-level styling with pixel parity,
4
+ without changing appearance. Import after base DS CSS.
5
+ */
6
+
7
+ /* ================================
8
+ Buttons (theme-responsive)
9
+ ================================ */
10
+ .mds-button--primary,
11
+ button[class*="primary"] {
12
+ background-color: #60a5fa !important;
13
+ color: #ffffff !important;
14
+ border: none !important;
15
+ transition: all 0.2s ease !important;
16
+ }
17
+
18
+ .mds-button--primary:hover,
19
+ button[class*="primary"]:hover {
20
+ background-color: #93c5fd !important;
21
+ transform: translateY(-1px) !important;
22
+ }
23
+
24
+ .mds-button--secondary,
25
+ button[class*="secondary"] {
26
+ background-color: rgba(255, 255, 255, 0.1) !important;
27
+ color: #ffffff !important;
28
+ border: 1px solid rgba(255, 255, 255, 0.2) !important;
29
+ backdrop-filter: blur(10px) !important;
30
+ transition: all 0.2s ease !important;
31
+ }
32
+
33
+ .mds-button--secondary:hover,
34
+ button[class*="secondary"]:hover {
35
+ background-color: rgba(255, 255, 255, 0.15) !important;
36
+ border-color: rgba(255, 255, 255, 0.3) !important;
37
+ }
38
+
39
+ .mds-button--outline,
40
+ button[class*="outline"] {
41
+ background-color: transparent !important;
42
+ color: #ffffff !important;
43
+ border: 1px solid rgba(255, 255, 255, 0.3) !important;
44
+ transition: all 0.2s ease !important;
45
+ }
46
+
47
+ .mds-button--outline:hover,
48
+ button[class*="outline"]:hover {
49
+ background-color: rgba(255, 255, 255, 0.1) !important;
50
+ border-color: rgba(255, 255, 255, 0.5) !important;
51
+ }
52
+
53
+ .mds-button--glass,
54
+ button[class*="glass"] {
55
+ background-color: rgba(255, 255, 255, 0.1) !important;
56
+ color: #ffffff !important;
57
+ border: 1px solid rgba(255, 255, 255, 0.2) !important;
58
+ backdrop-filter: blur(10px) !important;
59
+ transition: all 0.2s ease !important;
60
+ }
61
+
62
+ .mds-button--glass:hover,
63
+ button[class*="glass"]:hover {
64
+ background-color: rgba(255, 255, 255, 0.15) !important;
65
+ border-color: rgba(255, 255, 255, 0.3)
66
+ !important;
67
+ }
68
+
69
+ .mds-button--ghost,
70
+ button[class*="ghost"] {
71
+ background-color: transparent !important;
72
+ color: #ffffff !important;
73
+ border: 1px solid rgba(255, 255, 255, 0.2) !important;
74
+ transition: all 0.2s ease !important;
75
+ }
76
+
77
+ .mds-button--ghost:hover,
78
+ button[class*="ghost"]:hover {
79
+ background-color: rgba(255, 255, 255, 0.1) !important;
80
+ border-color: rgba(255, 255, 255, 0.3) !important;
81
+ }
82
+
83
+ /* Raw button baseline
84
+ Scope only to unstyled raw buttons to avoid overriding
85
+ components that set inline styles or DS classes */
86
+ button:not([style]):not(.mds-button):not([class*="mds-button"]):not([class*="btn"]) {
87
+ background-color: rgba(255, 255, 255, 0.1) !important;
88
+ color: #ffffff !important;
89
+ border: 1px solid rgba(255, 255, 255, 0.2) !important;
90
+ border-radius: 8px !important;
91
+ padding: 0.5rem 1rem !important;
92
+ cursor: pointer !important;
93
+ transition: all 0.2s ease !important;
94
+ font-family: inherit !important;
95
+ }
96
+
97
+ button:not([style]):not(.mds-button):not([class*="mds-button"]):not([class*="btn"]):hover {
98
+ background-color: rgba(255, 255, 255, 0.15) !important;
99
+ border-color: rgba(255, 255, 255, 0.3) !important;
100
+ transform: translateY(-1px) !important;
101
+ }
102
+
103
+ /* Modal close button: keep static (no lift) but preserve vertical centering */
104
+ .mds-modal-header > button[aria-label="Fechar"],
105
+ .mds-modal-header > button[aria-label="Fechar"]:hover,
106
+ .mds-modal-header > button[aria-label="Fechar"]:focus,
107
+ .mds-modal-header > button[aria-label="Fechar"]:focus-visible {
108
+ position: absolute !important;
109
+ right: 16px !important;
110
+ top: 50% !important;
111
+ transform: translateY(-50%) !important;
112
+ transition: none !important;
113
+ box-shadow: none !important;
114
+ background-color: transparent !important;
115
+ border: none !important;
116
+ }
117
+
118
+ button:not([style]):not(.mds-button):not([class*="mds-button"]):not([class*="btn"]):disabled {
119
+ opacity: 0.5 !important;
120
+ cursor: not-allowed !important;
121
+ transform: none !important;
122
+ }
123
+
124
+ /* Light theme button overrides */
125
+ html[data-theme="light"] .mds-button--primary,
126
+ html[data-theme="light"] button[class*="primary"] {
127
+ background-color: #3b82f6 !important;
128
+ color: #ffffff !important;
129
+ }
130
+
131
+ html[data-theme="light"] .mds-button--primary:hover,
132
+ html[data-theme="light"] button[class*="primary"]:hover {
133
+ background-color: #2563eb !important;
134
+ }
135
+
136
+ html[data-theme="light"] .mds-button--secondary,
137
+ html[data-theme="light"] button[class*="secondary"] {
138
+ background-color: rgba(0, 0, 0, 0.05) !important;
139
+ color: #1a1a1a !important;
140
+ border-color: rgba(0, 0, 0, 0.1) !important;
141
+ }
142
+
143
+ html[data-theme="light"] .mds-button--secondary:hover,
144
+ html[data-theme="light"] button[class*="secondary"]:hover {
145
+ background-color: rgba(0, 0, 0, 0.08) !important;
146
+ border-color: rgba(0, 0, 0, 0.15) !important;
147
+ }
148
+
149
+ html[data-theme="light"] .mds-button--outline,
150
+ html[data-theme="light"] button[class*="outline"] {
151
+ color: #1a1a1a !important;
152
+ border-color: rgba(0, 0, 0, 0.3) !important;
153
+ }
154
+
155
+ html[data-theme="light"] .mds-button--outline:hover,
156
+ html[data-theme="light"] button[class*="outline"]:hover {
157
+ background-color: rgba(0, 0, 0, 0.05) !important;
158
+ border-color: rgba(0, 0, 0, 0.5) !important;
159
+ }
160
+
161
+ html[data-theme="light"] .mds-button--glass,
162
+ html[data-theme="light"] button[class*="glass"] {
163
+ background-color: rgba(0, 0, 0, 0.05) !important;
164
+ color: #1a1a1a !important;
165
+ border-color: rgba(0, 0, 0, 0.1) !important;
166
+ }
167
+
168
+ html[data-theme="light"] .mds-button--glass:hover,
169
+ html[data-theme="light"] button[class*="glass"]:hover {
170
+ background-color: rgba(0, 0, 0, 0.08) !important;
171
+ border-color: rgba(0, 0, 0, 0.15) !important;
172
+ }
173
+
174
+ html[data-theme="light"] .mds-button--ghost,
175
+ html[data-theme="light"] button[class*="ghost"] {
176
+ color: #1a1a1a !important;
177
+ border-color: rgba(0, 0, 0, 0.2) !important;
178
+ }
179
+
180
+ html[data-theme="light"] .mds-button--ghost:hover,
181
+ html[data-theme="light"] button[class*="ghost"]:hover {
182
+ background-color: rgba(0, 0, 0, 0.05) !important;
183
+ border-color: rgba(0, 0, 0, 0.3) !important;
184
+ }
185
+
186
+ html[data-theme="light"] button {
187
+ background-color: rgba(0, 0, 0, 0.05) !important;
188
+ color: #1a1a1a !important;
189
+ border-color: rgba(0, 0, 0, 0.1) !important;
190
+ }
191
+
192
+ html[data-theme="light"] button:hover {
193
+ background-color: rgba(0, 0, 0, 0.08) !important;
194
+ border-color: rgba(0, 0, 0, 0.15) !important;
195
+ }
196
+
197
+ /* ========================================
198
+ Selects and period filter (theme-responsive)
199
+ ======================================== */
200
+ select,
201
+ .mds-period-filter__select {
202
+ /* Match DS ghost button default state */
203
+ background-color: transparent !important;
204
+ color: #ffffff !important;
205
+ border: none !important;
206
+ border-radius: 8px !important;
207
+ padding: 0.5rem 1rem !important;
208
+ font-family: inherit !important;
209
+ font-size: 0.875rem !important;
210
+ cursor: pointer !important;
211
+ transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
212
+ backdrop-filter: none !important;
213
+ -webkit-backdrop-filter: none !important;
214
+ -webkit-appearance: none !important;
215
+ -moz-appearance: none !important;
216
+ appearance: none !important;
217
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
218
+ background-position: right 0.5rem center !important;
219
+ background-repeat: no-repeat !important;
220
+ background-size: 1rem 1rem !important;
221
+ padding-right: 2.5rem !important;
222
+ }
223
+
224
+ select:hover,
225
+ .mds-period-filter__select:hover {
226
+ /* Same hover treatment as DS ghost */
227
+ background-color: var(--mds-color-background-secondary) !important;
228
+ }
229
+
230
+ select:focus,
231
+ .mds-period-filter__select:focus {
232
+ outline: none !important;
233
+ border-color: #60a5fa !important;
234
+ box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2) !important;
235
+ }
236
+
237
+ select:disabled,
238
+ .mds-period-filter__select:disabled {
239
+ opacity: 0.5 !important;
240
+ cursor: not-allowed !important;
241
+ }
242
+
243
+ select option {
244
+ background-color: rgba(30, 30, 30, 0.95) !important;
245
+ color: #ffffff !important;
246
+ padding: 0.5rem !important;
247
+ }
248
+
249
+ /* Light theme select styles */
250
+ html[data-theme="light"] select,
251
+ html[data-theme="light"] .mds-period-filter__select {
252
+ background-color: transparent !important;
253
+ color: #1a1a1a !important;
254
+ border: none !important;
255
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
256
+ }
257
+
258
+ html[data-theme="light"] select:hover,
259
+ html[data-theme="light"] .mds-period-filter__select:hover {
260
+ background-color: rgba(0, 0, 0, 0.05) !important;
261
+ }
262
+
263
+ html[data-theme="light"] select:focus,
264
+ html[data-theme="light"] .mds-period-filter__select:focus {
265
+ border-color: #3b82f6 !important;
266
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
267
+ }
268
+
269
+ html[data-theme="light"] select option {
270
+ background-color: rgba(250, 250, 250, 0.95) !important;
271
+ color: #1a1a1a !important;
272
+ }
273
+
274
+ /* Dashboard controls */
275
+ .mds-dashboard-controls {
276
+ display: flex !important;
277
+ gap: 1rem !important;
278
+ align-items: center !important;
279
+ flex-wrap: wrap !important;
280
+ }
281
+
282
+ .mds-period-filter {
283
+ position: relative !important;
284
+ min-width: 150px !important;
285
+ }
286
+
287
+ /* ========================================
288
+ Inputs and selects (mds-*)
289
+ ======================================== */
290
+ .mds-input,
291
+ input.mds-input {
292
+ padding: 8px 12px !important;
293
+ min-height: 36px !important;
294
+ max-height: 36px !important;
295
+ height: 36px !important;
296
+ font-size: 14px !important;
297
+ line-height: 1.4 !important;
298
+ box-sizing: border-box !important;
299
+ }
300
+
301
+ /* Dark theme input overrides */
302
+ html[data-theme="dark"] .mds-input,
303
+ html[data-theme="dark"] input.mds-input,
304
+ html:not([data-theme]) .mds-input,
305
+ html:not([data-theme]) input.mds-input {
306
+ background-color: rgba(255, 255, 255, 0.15) !important;
307
+ border-color: rgba(255, 255, 255, 0.4) !important;
308
+ color: #ffffff !important;
309
+ }
310
+
311
+ html[data-theme="dark"] .mds-input:focus,
312
+ html[data-theme="dark"] input.mds-input:focus,
313
+ html:not([data-theme]) .mds-input:focus,
314
+ html:not([data-theme]) input.mds-input:focus {
315
+ background-color: rgba(255, 255, 255, 0.2) !important;
316
+ border-color: #60a5fa !important;
317
+ box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3) !important;
318
+ }
319
+
320
+ html[data-theme="dark"] .mds-input:hover,
321
+ html[data-theme="dark"] input.mds-input:hover,
322
+ html:not([data-theme]) .mds-input:hover,
323
+ html:not([data-theme]) input.mds-input:hover {
324
+ background-color: rgba(255, 255, 255, 0.18) !important;
325
+ border-color: rgba(255, 255, 255, 0.5) !important;
326
+ }
327
+
328
+ /* Light theme input overrides */
329
+ html[data-theme="light"] .mds-input,
330
+ html[data-theme="light"] input.mds-input {
331
+ background-color: #ffffff !important;
332
+ border-color: rgba(0, 0, 0, 0.2) !important;
333
+ color: #1a1a1a !important;
334
+ }
335
+
336
+ html[data-theme="light"] .mds-input:focus,
337
+ html[data-theme="light"] input.mds-input:focus {
338
+ background-color: #ffffff !important;
339
+ border-color: #3b82f6 !important;
340
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
341
+ }
342
+
343
+ html[data-theme="light"] .mds-input:hover,
344
+ html[data-theme="light"] input.mds-input:hover {
345
+ background-color: #ffffff !important;
346
+ border-color: rgba(0, 0, 0, 0.3) !important;
347
+ }
348
+
349
+ /* Placeholder overrides */
350
+ html[data-theme="dark"] .mds-input::-moz-placeholder, html[data-theme="dark"] input.mds-input::-moz-placeholder, html:not([data-theme]) .mds-input::-moz-placeholder, html:not([data-theme]) input.mds-input::-moz-placeholder {
351
+ color: rgba(255, 255, 255, 0.6) !important;
352
+ }
353
+ html[data-theme="dark"] .mds-input::placeholder,
354
+ html[data-theme="dark"] input.mds-input::placeholder,
355
+ html:not([data-theme]) .mds-input::placeholder,
356
+ html:not([data-theme]) input.mds-input::placeholder {
357
+ color: rgba(255, 255, 255, 0.6) !important;
358
+ }
359
+
360
+ html[data-theme="light"] .mds-input::-moz-placeholder, html[data-theme="light"] input.mds-input::-moz-placeholder {
361
+ color: rgba(0, 0, 0, 0.5) !important;
362
+ }
363
+
364
+ html[data-theme="light"] .mds-input::placeholder,
365
+ html[data-theme="light"] input.mds-input::placeholder {
366
+ color: rgba(0, 0, 0, 0.5) !important;
367
+ }
368
+
369
+ /* Ultra high priority input overrides */
370
+ input.mds-input,
371
+ .mds-input,
372
+ input[class*="mds-input"] {
373
+ padding: 8px 16px !important;
374
+ min-height: 40px !important;
375
+ max-height: 40px !important;
376
+ height: 40px !important;
377
+ font-size: 14px !important;
378
+ line-height: 1.4 !important;
379
+ box-sizing: border-box !important;
380
+ border-radius: 8px !important;
381
+ border-width: 1px !important;
382
+ border-style: solid !important;
383
+ }
384
+
385
+ /* Dark theme - ultra specific */
386
+ html[data-theme="dark"] input.mds-input,
387
+ html[data-theme="dark"] .mds-input,
388
+ html[data-theme="dark"] input[class*="mds-input"],
389
+ html:not([data-theme]) input.mds-input,
390
+ html:not([data-theme]) .mds-input,
391
+ html:not([data-theme]) input[class*="mds-input"] {
392
+ background-color: rgba(255, 255, 255, 0.2) !important;
393
+ border-color: rgba(255, 255, 255, 0.5) !important;
394
+ color: #ffffff !important;
395
+ }
396
+
397
+ html[data-theme="dark"] input.mds-input:focus,
398
+ html[data-theme="dark"] .mds-input:focus,
399
+ html[data-theme="dark"] input[class*="mds-input"]:focus,
400
+ html:not([data-theme]) input.mds-input:focus,
401
+ html:not([data-theme]) .mds-input:focus,
402
+ html:not([data-theme]) input[class*="mds-input"]:focus {
403
+ background-color: rgba(255, 255, 255, 0.25) !important;
404
+ border-color: #60a5fa !important;
405
+ box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3) !important;
406
+ }
407
+
408
+ /* Light theme - ultra specific */
409
+ html[data-theme="light"] input.mds-input,
410
+ html[data-theme="light"] .mds-input,
411
+ html[data-theme="light"] input[class*="mds-input"] {
412
+ background-color: #ffffff !important;
413
+ border-color: rgba(0, 0, 0, 0.3) !important;
414
+ color: #1a1a1a !important;
415
+ }
416
+
417
+ html[data-theme="light"] input.mds-input:focus,
418
+ html[data-theme="light"] .mds-input:focus,
419
+ html[data-theme="light"] input[class*="mds-input"]:focus {
420
+ background-color: #ffffff !important;
421
+ border-color: #3b82f6 !important;
422
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
423
+ }
424
+
425
+ /* Select overrides with maximum specificity */
426
+ select.mds-select,
427
+ .mds-select,
428
+ select[class*="mds-select"] {
429
+ padding: 8px 16px !important;
430
+ min-height: 40px !important;
431
+ max-height: 40px !important;
432
+ height: 40px !important;
433
+ font-size: 14px !important;
434
+ line-height: 1.4 !important;
435
+ box-sizing: border-box !important;
436
+ border-radius: 8px !important;
437
+ border-width: 1px !important;
438
+ border-style: solid !important;
439
+ }
440
+
441
+ /* Dark theme select overrides */
442
+ html[data-theme="dark"] select.mds-select,
443
+ html[data-theme="dark"] .mds-select,
444
+ html[data-theme="dark"] select[class*="mds-select"],
445
+ html:not([data-theme]) select.mds-select,
446
+ html:not([data-theme]) .mds-select,
447
+ html:not([data-theme]) select[class*="mds-select"] {
448
+ background-color: rgba(255, 255, 255, 0.2) !important;
449
+ border-color: rgba(255, 255, 255, 0.5) !important;
450
+ color: #ffffff !important;
451
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
452
+ }
453
+
454
+ /* Light theme select overrides */
455
+ html[data-theme="light"] select.mds-select,
456
+ html[data-theme="light"] .mds-select,
457
+ html[data-theme="light"] select[class*="mds-select"] {
458
+ background-color: #ffffff !important;
459
+ border-color: rgba(0, 0, 0, 0.3) !important;
460
+ color: #1a1a1a !important;
461
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
462
+ }
@@ -169,18 +169,39 @@ html:not([data-theme]) .modal-overlay .mds-modal-card {
169
169
  inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
170
170
  }
171
171
 
172
- /* Header button sizing + alignment */
172
+ /* Header close button sizing + alignment */
173
173
  .mds-modal-header > button[aria-label="Fechar"] {
174
+ /* Size and reset */
174
175
  font-size: 1rem !important;
175
176
  line-height: 1 !important;
176
- padding: 4px 8px !important;
177
177
  transition: none !important;
178
+ padding: 0 !important;
179
+ background: transparent !important;
180
+ border: none !important;
181
+ /* Colors from DS tokens with robust fallback */
182
+ color: var(--mds-color-text-secondary, var(--text-secondary, rgba(0,0,0,0.65))) !important;
183
+ /* Absolute centering like the left icon */
184
+ position: absolute !important;
185
+ right: 16px !important;
186
+ top: 50% !important;
187
+ transform: translateY(-50%) !important;
188
+ width: 32px !important;
189
+ height: 32px !important;
190
+ display: inline-flex !important;
191
+ align-items: center !important;
192
+ justify-content: center !important;
178
193
  }
179
194
  .mds-modal-header > button[aria-label="Fechar"]:hover,
180
- .mds-modal-header > button[aria-label="Fechar"]:focus {
181
- transform: none !important;
182
- transition: none !important;
195
+ .mds-modal-header > button[aria-label="Fechar"]:focus,
196
+ .mds-modal-header > button[aria-label="Fechar"]:focus-visible {
197
+ /* Keep centered on interactive states and avoid lifts/shadows */
198
+ position: absolute !important;
199
+ right: 16px !important;
200
+ top: 50% !important;
201
+ transform: translateY(-50%) !important;
183
202
  box-shadow: none !important;
203
+ transition: none !important;
204
+ color: var(--mds-color-text-primary, var(--text-primary, #111827)) !important;
184
205
  }
185
206
 
186
207
  /* Responsive modal */
@@ -1 +1 @@
1
- {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,cAAyB,EAAE,KAAgB,EAAE,EAAE,gBAAgB,2CAqGlH;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,cAAyB,EAAE,KAAgB,EAAE,EAAE,gBAAgB,2CA0GlH;AAED,eAAe,WAAW,CAAC"}
@@ -1546,6 +1546,7 @@ function Modal({ open, onClose, closeOnOverlay = true, children, className, styl
1546
1546
  }
1547
1547
 
1548
1548
  function ModalHeader({ title, icon, onClose, closeAriaLabel = 'Fechar', align = 'center' }) {
1549
+ const CloseIcon = (jsxRuntimeExports.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true, children: jsxRuntimeExports.jsx("path", { d: "M18.3 5.71a1 1 0 00-1.41 0L12 10.59 7.11 5.7A1 1 0 105.7 7.11L10.59 12l-4.9 4.89a1 1 0 101.42 1.42L12 13.41l4.89 4.9a1 1 0 001.42-1.42L13.41 12l4.9-4.89a1 1 0 000-1.4z" }) }));
1549
1550
  if (align === 'center') {
1550
1551
  const iconBox = {
1551
1552
  position: 'absolute',
@@ -1558,7 +1559,7 @@ function ModalHeader({ title, icon, onClose, closeAriaLabel = 'Fechar', align =
1558
1559
  alignItems: 'center',
1559
1560
  justifyContent: 'center',
1560
1561
  fontSize: '1.25rem',
1561
- lineHeight: 1
1562
+ lineHeight: 0
1562
1563
  };
1563
1564
  const closeBox = {
1564
1565
  position: 'absolute',
@@ -1574,14 +1575,14 @@ function ModalHeader({ title, icon, onClose, closeAriaLabel = 'Fechar', align =
1574
1575
  border: 'none',
1575
1576
  padding: 0,
1576
1577
  cursor: 'pointer',
1577
- lineHeight: 1
1578
+ lineHeight: 0
1578
1579
  };
1579
1580
  return (jsxRuntimeExports.jsxs("div", { className: "mds-modal-header", style: {
1580
1581
  position: 'relative',
1581
1582
  padding: '16px 24px',
1582
1583
  marginBottom: 16,
1583
1584
  borderBottom: '1px solid var(--border-color)'
1584
- }, children: [icon && (jsxRuntimeExports.jsx("div", { "aria-hidden": true, style: iconBox, children: icon })), jsxRuntimeExports.jsx("div", { style: { textAlign: 'center' }, children: typeof title === 'string' ? (jsxRuntimeExports.jsx("h3", { style: { margin: 0 }, children: title })) : (title) }), onClose && (jsxRuntimeExports.jsx("button", { type: "button", "aria-label": closeAriaLabel, onClick: onClose, style: closeBox, children: "\u00D7" }))] }));
1585
+ }, children: [icon && (jsxRuntimeExports.jsx("div", { "aria-hidden": true, style: iconBox, children: icon })), jsxRuntimeExports.jsx("div", { style: { textAlign: 'center' }, children: typeof title === 'string' ? (jsxRuntimeExports.jsx("h3", { style: { margin: 0 }, children: title })) : (title) }), onClose && (jsxRuntimeExports.jsx("button", { type: "button", "aria-label": closeAriaLabel, onClick: onClose, style: closeBox, children: CloseIcon }))] }));
1585
1586
  }
1586
1587
  return (jsxRuntimeExports.jsxs("div", { className: "mds-modal-header", style: {
1587
1588
  display: 'flex',
@@ -1590,7 +1591,7 @@ function ModalHeader({ title, icon, onClose, closeAriaLabel = 'Fechar', align =
1590
1591
  padding: '16px 24px',
1591
1592
  marginBottom: 16,
1592
1593
  borderBottom: '1px solid var(--border-color)'
1593
- }, children: [icon && (jsxRuntimeExports.jsx("div", { "aria-hidden": true, style: { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 32, height: 32, fontSize: '1.25rem', lineHeight: 1 }, children: icon })), jsxRuntimeExports.jsx("div", { style: { margin: 0, fontSize: '1.125rem', fontWeight: 600, flex: 1 }, children: typeof title === 'string' ? (jsxRuntimeExports.jsx("h3", { style: { margin: 0 }, children: title })) : (title) }), onClose && (jsxRuntimeExports.jsx("button", { type: "button", "aria-label": closeAriaLabel, onClick: onClose, style: { marginLeft: 'auto', background: 'transparent', border: 'none', width: 32, height: 32, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', cursor: 'pointer', lineHeight: 1 }, children: "\u00D7" }))] }));
1594
+ }, children: [icon && (jsxRuntimeExports.jsx("div", { "aria-hidden": true, style: { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 32, height: 32, fontSize: '1.25rem', lineHeight: 0 }, children: icon })), jsxRuntimeExports.jsx("div", { style: { margin: 0, fontSize: '1.125rem', fontWeight: 600, flex: 1 }, children: typeof title === 'string' ? (jsxRuntimeExports.jsx("h3", { style: { margin: 0 }, children: title })) : (title) }), onClose && (jsxRuntimeExports.jsx("button", { type: "button", "aria-label": closeAriaLabel, onClick: onClose, style: { marginLeft: 'auto', background: 'transparent', border: 'none', width: 32, height: 32, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', cursor: 'pointer', lineHeight: 0 }, children: CloseIcon }))] }));
1594
1595
  }
1595
1596
 
1596
1597
  function ModalBody({ children, style, className }) {