@metropolle/design-system 1.0.0-beta.2025.8.22.1424.bab5a1e → 1.0.0-beta.2025.8.28.1129.0e96474

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.
@@ -327,6 +327,142 @@
327
327
  outline-offset: 2px;
328
328
  }
329
329
 
330
+ /* Dashboard Components */
331
+
332
+ /* Dashboard Action Controls */
333
+ .mds-dashboard-controls {
334
+ display: flex;
335
+ align-items: center;
336
+ gap: var(--mds-spacing-md);
337
+ }
338
+
339
+ /* Period Filter Dropdown */
340
+ .mds-period-filter {
341
+ position: relative;
342
+ display: inline-block;
343
+ }
344
+
345
+ .mds-period-filter__select {
346
+ padding: var(--mds-spacing-sm) var(--mds-spacing-md);
347
+ font-weight: var(--mds-typography-fontWeight-medium);
348
+ font-size: var(--mds-typography-fontSize-sm);
349
+ font-family: var(--mds-typography-fontFamily-brand);
350
+ border-radius: var(--mds-spacing-borderRadius-md);
351
+ cursor: pointer;
352
+ outline: none;
353
+ -webkit-appearance: none;
354
+ -moz-appearance: none;
355
+ appearance: none;
356
+ background-repeat: no-repeat;
357
+ background-size: 16px;
358
+ padding-right: 2rem;
359
+ min-width: 140px;
360
+ transition: var(--mds-effects-transition-normal);
361
+
362
+ /* Theme-specific styles are applied via CSS custom properties */
363
+ background-color: var(--mds-dashboard-control-bg);
364
+ color: var(--mds-dashboard-control-color);
365
+ border: 1px solid var(--mds-dashboard-control-border);
366
+ background-image: var(--mds-dashboard-control-dropdown-icon);
367
+ background-position: right 8px center;
368
+ box-shadow: var(--mds-dashboard-control-shadow);
369
+ }
370
+
371
+ .mds-period-filter__select:hover:not(:disabled) {
372
+ background-color: var(--mds-dashboard-control-bg-hover);
373
+ box-shadow: var(--mds-dashboard-control-shadow-hover);
374
+ }
375
+
376
+ .mds-period-filter__select:disabled {
377
+ opacity: var(--mds-effects-opacity-disabled);
378
+ cursor: not-allowed;
379
+ }
380
+
381
+ /* Dashboard Refresh Button */
382
+ .mds-dashboard-refresh {
383
+ padding: var(--mds-spacing-sm) var(--mds-spacing-md);
384
+ font-weight: var(--mds-typography-fontWeight-medium);
385
+ font-size: var(--mds-typography-fontSize-sm);
386
+ font-family: var(--mds-typography-fontFamily-brand);
387
+ border-radius: var(--mds-spacing-borderRadius-md);
388
+ cursor: pointer;
389
+ outline: none;
390
+ border: 1px solid var(--mds-dashboard-control-border);
391
+ transition: var(--mds-effects-transition-normal);
392
+ min-width: 140px;
393
+ width: 140px;
394
+
395
+ /* Theme-specific styles */
396
+ background-color: var(--mds-dashboard-control-bg);
397
+ color: var(--mds-dashboard-control-color);
398
+ box-shadow: var(--mds-dashboard-control-shadow);
399
+ }
400
+
401
+ .mds-dashboard-refresh:hover:not(:disabled) {
402
+ background-color: var(--mds-dashboard-control-bg-hover);
403
+ transform: translateY(-2px);
404
+ box-shadow: var(--mds-dashboard-control-shadow-hover);
405
+ }
406
+
407
+ .mds-dashboard-refresh:disabled {
408
+ opacity: var(--mds-effects-opacity-disabled);
409
+ cursor: not-allowed;
410
+ background-color: transparent !important;
411
+ border: 2px solid var(--mds-dashboard-control-border-disabled);
412
+ transform: none !important;
413
+ box-shadow: none !important;
414
+ }
415
+
416
+ /* Theme Support - Default (Dark Theme) */
417
+ :root {
418
+ /* Dashboard Control Variables - Dark Theme */
419
+ --mds-dashboard-control-bg: rgba(255, 255, 255, 0.15);
420
+ --mds-dashboard-control-bg-hover: rgba(255, 255, 255, 0.25);
421
+ --mds-dashboard-control-color: #ffffff;
422
+ --mds-dashboard-control-border: rgba(255, 255, 255, 0.2);
423
+ --mds-dashboard-control-border-disabled: rgba(255, 255, 255, 0.3);
424
+ --mds-dashboard-control-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
425
+ --mds-dashboard-control-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
426
+ --mds-dashboard-control-dropdown-icon: 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");
427
+ }
428
+
429
+ /* Light Theme Support */
430
+ [data-theme="light"] {
431
+ --mds-dashboard-control-bg: rgba(0, 0, 0, 0.1);
432
+ --mds-dashboard-control-bg-hover: rgba(0, 0, 0, 0.15);
433
+ --mds-dashboard-control-color: #1a1a1a;
434
+ --mds-dashboard-control-border: rgba(0, 0, 0, 0.1);
435
+ --mds-dashboard-control-border-disabled: rgba(0, 0, 0, 0.3);
436
+ --mds-dashboard-control-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
437
+ --mds-dashboard-control-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
438
+ --mds-dashboard-control-dropdown-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
439
+ }
440
+
441
+ /* Dashboard Layout Utilities */
442
+ .mds-dashboard-grid {
443
+ display: grid;
444
+ gap: var(--mds-spacing-xl);
445
+ }
446
+
447
+ .mds-dashboard-stats-grid {
448
+ display: grid;
449
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
450
+ gap: var(--mds-spacing-lg);
451
+ }
452
+
453
+ .mds-dashboard-charts-grid {
454
+ display: grid;
455
+ grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
456
+ gap: var(--mds-spacing-lg);
457
+ }
458
+
459
+ /* Dashboard Content Sections */
460
+ .mds-dashboard-section {
461
+ display: flex;
462
+ flex-direction: column;
463
+ gap: var(--mds-spacing-xl);
464
+ }
465
+
330
466
  /* Dark mode support (future) */
331
467
  @media (prefers-color-scheme: dark) {
332
468
  /* Enhanced styles for dark mode when implemented */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metropolle/design-system",
3
- "version": "1.0.0-beta.2025.08.22.1424.bab5a1e",
3
+ "version": "1.0.0-beta.2025.08.28.1129.0e96474",
4
4
  "description": "Sistema de design unificado para a plataforma Metropolle",
5
5
  "type": "module",
6
6
  "main": "dist/react/index.js",