@revikornmann/muka-ui 0.33.0 → 0.35.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.
@@ -446,3 +446,116 @@
446
446
  .muka-progress-tracker--vertical .muka-progress-tracker__connector {
447
447
  z-index: 0;
448
448
  }
449
+
450
+ /* ─── Tabs variant (MUK-101, Bouwplan Figma 1030-40701) ──────
451
+ A row of tabs: indicator left of the label. The selected tab takes the
452
+ content's surface and flares into it at the bottom, so it reads as the
453
+ page below. Tabs sit on the consumer's background (e.g. surface.level0). */
454
+ .muka-progress-tracker--tabs {
455
+ display: block;
456
+ /* Room for the first and last tab's flare, and for the shadow above. */
457
+ padding: var(--spacing-6) var(--spacing-8) 0;
458
+ box-sizing: border-box;
459
+ /* The shadow below a tab would fall on the content: clip it. */
460
+ overflow: hidden;
461
+ }
462
+
463
+ .muka-progress-tracker--tabs.muka-progress-tracker--scrollable {
464
+ overflow-x: auto;
465
+ padding-inline: var(--spacing-8);
466
+ }
467
+
468
+ .muka-progress-tracker__tabs {
469
+ display: flex;
470
+ align-items: flex-end;
471
+ width: max-content;
472
+ isolation: isolate;
473
+ }
474
+
475
+ .muka-progress-tracker__tab {
476
+ --muka-progress-tracker-tab-surface: var(--color-surface-level2);
477
+ position: relative;
478
+ display: flex;
479
+ align-items: center;
480
+ gap: var(--spacing-3);
481
+ margin: 0;
482
+ /* Figma: 12px around, 4px more after the label. */
483
+ padding: var(--spacing-3) var(--spacing-4) var(--spacing-3) var(--spacing-3);
484
+ border: none;
485
+ border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
486
+ background-color: var(--muka-progress-tracker-tab-surface);
487
+ color: var(--color-text-default-default);
488
+ font: inherit;
489
+ text-align: left;
490
+ white-space: nowrap;
491
+ filter: drop-shadow(0 0 0.5px var(--color-black-alpha-5))
492
+ drop-shadow(0 8px 8px var(--color-black-alpha-5));
493
+ }
494
+
495
+ /* Concave corners: the tab's bottom flares out into the surface. */
496
+ .muka-progress-tracker__tab::before,
497
+ .muka-progress-tracker__tab::after {
498
+ content: '';
499
+ position: absolute;
500
+ bottom: 0;
501
+ width: var(--border-radius-xl);
502
+ height: var(--border-radius-xl);
503
+ pointer-events: none;
504
+ }
505
+
506
+ .muka-progress-tracker__tab::before {
507
+ right: 100%;
508
+ background: radial-gradient(
509
+ circle at 0 0,
510
+ transparent calc(var(--border-radius-xl) - 0.5px),
511
+ var(--muka-progress-tracker-tab-surface) var(--border-radius-xl)
512
+ );
513
+ }
514
+
515
+ .muka-progress-tracker__tab::after {
516
+ left: 100%;
517
+ background: radial-gradient(
518
+ circle at 100% 0,
519
+ transparent calc(var(--border-radius-xl) - 0.5px),
520
+ var(--muka-progress-tracker-tab-surface) var(--border-radius-xl)
521
+ );
522
+ }
523
+
524
+ .muka-progress-tracker__tab--selected {
525
+ --muka-progress-tracker-tab-surface: var(
526
+ --muka-progress-tracker-tab-selected,
527
+ var(--color-surface-level3)
528
+ );
529
+ }
530
+
531
+ button.muka-progress-tracker__tab {
532
+ cursor: pointer;
533
+ }
534
+
535
+ button.muka-progress-tracker__tab:not(.muka-progress-tracker__tab--selected):hover {
536
+ background-image: linear-gradient(var(--color-surface-hover), var(--color-surface-hover));
537
+ }
538
+
539
+ button.muka-progress-tracker__tab:focus-visible {
540
+ outline: 2px solid var(--color-border-focus);
541
+ outline-offset: -2px;
542
+ }
543
+
544
+ .muka-progress-tracker--tabs .muka-progress-tracker__label {
545
+ font-family: var(--text-body-base-regular-fontFamily);
546
+ font-weight: var(--text-body-base-regular-fontWeight);
547
+ font-size: var(--text-body-base-regular-fontSize);
548
+ line-height: var(--text-body-base-regular-lineHeight);
549
+ }
550
+
551
+ .muka-progress-tracker__tab--selected .muka-progress-tracker__label {
552
+ font-family: var(--text-body-base-bold-fontFamily);
553
+ font-weight: var(--text-body-base-bold-fontWeight);
554
+ }
555
+
556
+ .muka-progress-tracker--tabs .muka-progress-tracker__indicator--upcoming .muka-progress-tracker__number {
557
+ font-family: var(--text-label-md-semibold-fontFamily);
558
+ font-weight: var(--text-label-md-semibold-fontWeight);
559
+ font-size: var(--text-label-md-semibold-fontSize);
560
+ line-height: var(--text-label-md-semibold-lineHeight);
561
+ }
@@ -50,6 +50,20 @@
50
50
  background-color: var(--color-surface-level0);
51
51
  }
52
52
 
53
+ /* Plain (MUK-103): no tint; small subtle capitals under a section heading. */
54
+ .muka-table__head--plain .muka-table__row {
55
+ background-color: transparent;
56
+ }
57
+
58
+ .muka-table__head--plain .muka-table__header-cell {
59
+ font-family: var(--text-label-sm-regular-fontFamily);
60
+ font-weight: var(--text-label-sm-regular-fontWeight);
61
+ font-size: var(--text-label-sm-regular-fontSize);
62
+ line-height: var(--text-label-sm-regular-lineHeight);
63
+ color: var(--color-text-subtle-default);
64
+ text-transform: uppercase;
65
+ }
66
+
53
67
  /* ========================================
54
68
  TABLE BODY
55
69
  ======================================== */