@revikornmann/muka-ui 0.37.0 → 0.38.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.
Files changed (37) hide show
  1. package/cli/templates/agents-block.md +4 -2
  2. package/dist/cjs/components/Dialog/Dialog.js +1 -1
  3. package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
  4. package/dist/cjs/components/Dialog/index.js +2 -1
  5. package/dist/cjs/components/Dialog/index.js.map +1 -1
  6. package/dist/cjs/components/Drawer/Drawer.js.map +1 -1
  7. package/dist/cjs/components/index.js +4 -3
  8. package/dist/cjs/components/index.js.map +1 -1
  9. package/dist/cjs/utils/useDismissGuard.js +29 -0
  10. package/dist/cjs/utils/useDismissGuard.js.map +1 -1
  11. package/dist/esm/components/Dialog/Dialog.js +2 -2
  12. package/dist/esm/components/Dialog/Dialog.js.map +1 -1
  13. package/dist/esm/components/Dialog/index.js +1 -1
  14. package/dist/esm/components/Dialog/index.js.map +1 -1
  15. package/dist/esm/components/Drawer/Drawer.js.map +1 -1
  16. package/dist/esm/components/index.js +1 -1
  17. package/dist/esm/components/index.js.map +1 -1
  18. package/dist/esm/utils/useDismissGuard.js +28 -1
  19. package/dist/esm/utils/useDismissGuard.js.map +1 -1
  20. package/dist/styles/index.css +733 -733
  21. package/dist/styles/muka-dark.css +733 -733
  22. package/dist/styles/muka-light.css +733 -733
  23. package/dist/styles/wireframe-dark.css +733 -733
  24. package/dist/styles/wireframe-light.css +733 -733
  25. package/dist/types/components/Dialog/Dialog.d.ts +4 -1
  26. package/dist/types/components/Dialog/Dialog.d.ts.map +1 -1
  27. package/dist/types/components/Dialog/index.d.ts +1 -1
  28. package/dist/types/components/Dialog/index.d.ts.map +1 -1
  29. package/dist/types/components/Drawer/Drawer.d.ts +4 -1
  30. package/dist/types/components/Drawer/Drawer.d.ts.map +1 -1
  31. package/dist/types/components/index.d.ts +1 -1
  32. package/dist/types/components/index.d.ts.map +1 -1
  33. package/dist/types/utils/useDismissGuard.d.ts +19 -0
  34. package/dist/types/utils/useDismissGuard.d.ts.map +1 -1
  35. package/docs/consumers/dialogs.md +28 -6
  36. package/eslint/index.js +10 -1
  37. package/package.json +1 -1
@@ -2444,38 +2444,6 @@ body {
2444
2444
  }
2445
2445
 
2446
2446
 
2447
- /* VoiceMessage */
2448
- /* VoiceMessage Component Styles */
2449
-
2450
- .muka-voice-message {
2451
- display: flex;
2452
- align-items: center;
2453
- gap: var(--spacing-3);
2454
- width: 100%;
2455
- min-width: min(16rem, 60vw);
2456
- }
2457
-
2458
- .muka-voice-message__wave {
2459
- flex: 1 1 auto;
2460
- min-width: 0;
2461
- }
2462
-
2463
- .muka-voice-message__time {
2464
- flex: 0 0 auto;
2465
- white-space: nowrap;
2466
- font-size: var(--text-label-sm-fontSize, 0.75rem);
2467
- line-height: var(--text-label-sm-lineHeight, 1);
2468
- font-variant-numeric: tabular-nums;
2469
- color: var(--color-text-subtle-default);
2470
- }
2471
-
2472
- /* On the tinted own bubble the surface is the action color, so the timer flips
2473
- * to the inverse text token for contrast. */
2474
- .muka-voice-message--own .muka-voice-message__time {
2475
- color: var(--color-text-default-inverse);
2476
- }
2477
-
2478
-
2479
2447
  /* View */
2480
2448
  /* View Component Styles */
2481
2449
 
@@ -2586,6 +2554,38 @@ body {
2586
2554
  }
2587
2555
 
2588
2556
 
2557
+ /* VoiceMessage */
2558
+ /* VoiceMessage Component Styles */
2559
+
2560
+ .muka-voice-message {
2561
+ display: flex;
2562
+ align-items: center;
2563
+ gap: var(--spacing-3);
2564
+ width: 100%;
2565
+ min-width: min(16rem, 60vw);
2566
+ }
2567
+
2568
+ .muka-voice-message__wave {
2569
+ flex: 1 1 auto;
2570
+ min-width: 0;
2571
+ }
2572
+
2573
+ .muka-voice-message__time {
2574
+ flex: 0 0 auto;
2575
+ white-space: nowrap;
2576
+ font-size: var(--text-label-sm-fontSize, 0.75rem);
2577
+ line-height: var(--text-label-sm-lineHeight, 1);
2578
+ font-variant-numeric: tabular-nums;
2579
+ color: var(--color-text-subtle-default);
2580
+ }
2581
+
2582
+ /* On the tinted own bubble the surface is the action color, so the timer flips
2583
+ * to the inverse text token for contrast. */
2584
+ .muka-voice-message--own .muka-voice-message__time {
2585
+ color: var(--color-text-default-inverse);
2586
+ }
2587
+
2588
+
2589
2589
  /* Typography */
2590
2590
  .muka-typography-catalog {
2591
2591
  display: flex;
@@ -3289,985 +3289,985 @@ body {
3289
3289
  }
3290
3290
 
3291
3291
 
3292
- /* Tile */
3293
- /* Tile Component Styles - Using Muka Design Tokens */
3294
-
3295
- /* ─── Base ────────────────────────────────────────────── */
3296
-
3297
- .muka-tile {
3298
- display: flex;
3299
- color: var(--color-text-default-default);
3300
- }
3292
+ /* Thumbnail */
3293
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
3301
3294
 
3302
- .muka-tile--interactive {
3303
- cursor: pointer;
3304
- user-select: none;
3295
+ .muka-thumbnail {
3296
+ position: relative;
3297
+ flex-shrink: 0;
3305
3298
  }
3306
3299
 
3307
- .muka-tile--interactive:focus-visible {
3308
- outline: 2px solid var(--color-border-focus);
3309
- outline-offset: 2px;
3300
+ /* The frame carries the border, background and shape clip. Keeping it separate
3301
+ from the root lets the remove (×) button sit outside the clip (needed for the
3302
+ circular/ellipse shape, whose corners would otherwise clip the button). */
3303
+ .muka-thumbnail__frame {
3304
+ position: absolute;
3305
+ inset: 0;
3306
+ overflow: hidden;
3307
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3310
3308
  border-radius: var(--border-radius-lg);
3309
+ background-color: var(--color-surface-level1);
3311
3310
  }
3312
3311
 
3313
- /* ─── Image position variants ─────────────────────────── */
3312
+ /* ─── Shapes ──────────────────────────────────────────── */
3313
+ .muka-thumbnail--4-3 {
3314
+ width: 160px;
3315
+ height: 120px;
3316
+ }
3314
3317
 
3315
- .muka-tile--image-top {
3316
- flex-direction: column;
3318
+ .muka-thumbnail--1-1 {
3319
+ width: 120px;
3320
+ height: 120px;
3317
3321
  }
3318
3322
 
3319
- .muka-tile--image-left {
3320
- flex-direction: row;
3323
+ .muka-thumbnail--ellipse {
3324
+ width: 120px;
3325
+ height: 120px;
3321
3326
  }
3322
3327
 
3323
- .muka-tile--image-right {
3324
- flex-direction: row;
3328
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3329
+ .muka-thumbnail--fluid {
3330
+ width: 100%;
3331
+ height: auto;
3332
+ aspect-ratio: 1 / 1;
3325
3333
  }
3326
3334
 
3327
- /* ─── Gap by size (top) ───────────────────────────────── */
3335
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3336
+ aspect-ratio: 4 / 3;
3337
+ }
3328
3338
 
3329
- .muka-tile--image-top.muka-tile--lg {
3330
- gap: var(--spacing-6);
3339
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
3340
+ border-radius: var(--border-radius-full);
3331
3341
  }
3332
3342
 
3333
- .muka-tile--image-top.muka-tile--md {
3334
- gap: var(--spacing-6);
3335
- width: 320px;
3343
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3344
+ interactive hover zoom has a clean origin. */
3345
+ .muka-thumbnail__image {
3346
+ position: absolute;
3347
+ inset: 0;
3348
+ width: 100%;
3349
+ height: 100%;
3350
+ object-fit: cover;
3351
+ display: block;
3352
+ transform-origin: center;
3353
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3354
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3336
3355
  }
3337
3356
 
3338
- .muka-tile--image-top.muka-tile--sm {
3339
- gap: var(--spacing-4);
3340
- min-width: 120px;
3357
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
3358
+ .muka-thumbnail__trigger {
3359
+ position: absolute;
3360
+ inset: 0;
3361
+ padding: 0;
3362
+ border: 0;
3363
+ background: none;
3364
+ cursor: pointer;
3365
+ overflow: hidden;
3341
3366
  }
3342
3367
 
3343
- /* ─── Gap by size (left/right) ────────────────────────── */
3368
+ .muka-thumbnail__trigger:focus-visible {
3369
+ outline: 2px solid var(--color-border-focus);
3370
+ outline-offset: -2px;
3371
+ }
3344
3372
 
3345
- .muka-tile--image-left.muka-tile--lg,
3346
- .muka-tile--image-right.muka-tile--lg {
3347
- gap: var(--spacing-6);
3348
- align-items: center;
3373
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3374
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3375
+ transform: scale(1.05);
3349
3376
  }
3350
3377
 
3351
- .muka-tile--image-left.muka-tile--md,
3352
- .muka-tile--image-right.muka-tile--md {
3353
- gap: var(--spacing-6);
3378
+ /* ─── Loading overlay + progress donut ────────────────── */
3379
+ .muka-thumbnail__overlay {
3380
+ position: absolute;
3381
+ inset: 0;
3382
+ display: flex;
3354
3383
  align-items: center;
3384
+ justify-content: center;
3385
+ background-color: var(--dialog-color-backdrop);
3355
3386
  }
3356
3387
 
3357
- .muka-tile--image-left.muka-tile--sm,
3358
- .muka-tile--image-right.muka-tile--sm {
3359
- gap: var(--spacing-4);
3360
- align-items: flex-start;
3388
+ .muka-thumbnail__progress {
3389
+ width: 40px;
3390
+ height: 40px;
3361
3391
  }
3362
3392
 
3363
- /* ─── Photos container ────────────────────────────────── */
3393
+ /* ─── Error / corrupt state ───────────────────────────── */
3394
+ .muka-thumbnail--error .muka-thumbnail__frame {
3395
+ background-color: var(--alias-color-state-error-muted);
3396
+ border-color: var(--alias-color-state-error-default);
3397
+ }
3364
3398
 
3365
- .muka-tile__photos {
3366
- position: relative;
3367
- flex-shrink: 0;
3368
- overflow: hidden;
3399
+ .muka-thumbnail__error {
3400
+ position: absolute;
3401
+ inset: 0;
3369
3402
  display: flex;
3370
3403
  flex-direction: column;
3371
- isolation: isolate;
3404
+ align-items: center;
3405
+ justify-content: center;
3406
+ gap: var(--spacing-2);
3407
+ padding: var(--spacing-3);
3408
+ text-align: center;
3372
3409
  }
3373
3410
 
3374
- /* Photos border radius by size */
3375
- .muka-tile--lg .muka-tile__photos,
3376
- .muka-tile--md .muka-tile__photos {
3377
- border-radius: var(--border-radius-lg);
3411
+ .muka-thumbnail__error-icon {
3412
+ color: var(--alert-color-error-accent);
3378
3413
  }
3379
3414
 
3380
- .muka-tile--sm .muka-tile__photos {
3381
- border-radius: var(--border-radius-md);
3415
+ .muka-thumbnail__caption {
3416
+ max-width: 100%;
3417
+ overflow: hidden;
3418
+ text-overflow: ellipsis;
3419
+ white-space: nowrap;
3420
+ color: var(--alert-color-error-accent);
3421
+ font-family: var(--text-body-sm-regular-fontFamily);
3422
+ font-size: var(--text-body-sm-regular-fontSize);
3423
+ font-weight: var(--text-body-sm-regular-fontWeight);
3424
+ line-height: var(--text-body-sm-regular-lineHeight);
3382
3425
  }
3383
3426
 
3384
- /* Photos sizing: top layout */
3385
- .muka-tile--image-top .muka-tile__photos {
3386
- width: 100%;
3427
+ /* ─── Remove (×) button ───────────────────────────────── */
3428
+ .muka-thumbnail__remove {
3429
+ position: absolute;
3430
+ top: var(--spacing-2);
3431
+ right: var(--spacing-2);
3432
+ display: flex;
3433
+ align-items: center;
3434
+ justify-content: center;
3435
+ width: var(--size-2xl);
3436
+ height: var(--size-2xl);
3437
+ padding: 0;
3438
+ color: var(--button-color-tertiary-foreground-default);
3439
+ background-color: var(--button-color-tertiary-background-default);
3440
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3441
+ border-radius: var(--border-radius-lg);
3442
+ cursor: pointer;
3443
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3444
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
3387
3445
  }
3388
3446
 
3389
- /* Photos sizing: left/right large */
3390
- .muka-tile--image-left.muka-tile--lg .muka-tile__photos,
3391
- .muka-tile--image-right.muka-tile--lg .muka-tile__photos {
3392
- width: 520px;
3447
+ .muka-thumbnail__remove:hover {
3448
+ color: var(--button-color-tertiary-foreground-hover);
3449
+ background-color: var(--button-color-tertiary-background-hover);
3450
+ border-color: var(--button-color-tertiary-border-hover);
3393
3451
  }
3394
3452
 
3395
- /* Photos sizing: left/right medium */
3396
- .muka-tile--image-left.muka-tile--md .muka-tile__photos,
3397
- .muka-tile--image-right.muka-tile--md .muka-tile__photos {
3398
- width: 320px;
3453
+ .muka-thumbnail__remove:active {
3454
+ color: var(--button-color-tertiary-foreground-pressed);
3455
+ background-color: var(--button-color-tertiary-background-pressed);
3456
+ border-color: var(--button-color-tertiary-border-pressed);
3399
3457
  }
3400
3458
 
3401
- /* Photos sizing: left/right small (single 80x80 thumbnail) */
3402
- .muka-tile--image-left.muka-tile--sm .muka-tile__photos,
3403
- .muka-tile--image-right.muka-tile--sm .muka-tile__photos {
3404
- width: 80px;
3405
- align-self: stretch;
3459
+ .muka-thumbnail__remove:focus-visible {
3460
+ outline: 2px solid var(--color-border-focus);
3461
+ outline-offset: 2px;
3406
3462
  }
3407
3463
 
3408
- /* ─── Main photo ──────────────────────────────────────── */
3464
+ /* ─── Reduced motion ──────────────────────────────────── */
3465
+ @media (prefers-reduced-motion: reduce) {
3466
+ .muka-thumbnail__image,
3467
+ .muka-thumbnail__remove {
3468
+ transition: none;
3469
+ }
3409
3470
 
3410
- .muka-tile__photo-main {
3411
- position: relative;
3412
- width: 100%;
3413
- overflow: hidden;
3414
- flex-shrink: 0;
3471
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3472
+ transform: none;
3473
+ }
3415
3474
  }
3416
3475
 
3417
- /* 16:9 aspect for lg and md */
3418
- .muka-tile--lg .muka-tile__photo-main,
3419
- .muka-tile--md .muka-tile__photo-main {
3420
- aspect-ratio: 1280 / 720;
3421
- }
3422
3476
 
3423
- /* 1:1 aspect for top + sm */
3424
- .muka-tile--image-top.muka-tile--sm .muka-tile__photo-main {
3425
- aspect-ratio: 1 / 1;
3426
- }
3477
+ /* Textarea */
3478
+ /* Textarea Component Styles - Using Muka Design Tokens */
3427
3479
 
3428
- /* Fixed size for left/right + sm */
3429
- .muka-tile--image-left.muka-tile--sm .muka-tile__photo-main,
3430
- .muka-tile--image-right.muka-tile--sm .muka-tile__photo-main {
3431
- width: 80px;
3432
- height: 80px;
3433
- aspect-ratio: auto;
3480
+ .muka-textarea {
3481
+ display: inline-flex;
3482
+ flex-direction: column;
3483
+ gap: var(--spacing-2);
3434
3484
  }
3435
3485
 
3436
- .muka-tile__photo-main img {
3437
- width: 100%;
3438
- height: 100%;
3439
- object-fit: cover;
3440
- display: block;
3486
+ /* Label */
3487
+ .muka-textarea__label {
3488
+ color: var(--color-text-default-default);
3489
+ cursor: pointer;
3441
3490
  }
3442
3491
 
3443
- /* ─── Favourite overlay ───────────────────────────────── */
3444
-
3445
- .muka-tile__favourite {
3446
- position: absolute;
3447
- z-index: 3;
3492
+ .muka-textarea__label--sm {
3493
+ font-family: var(--text-label-sm-semibold-fontFamily);
3494
+ font-weight: var(--text-label-sm-semibold-fontWeight);
3495
+ font-size: var(--text-label-sm-semibold-fontSize);
3496
+ line-height: var(--text-label-sm-semibold-lineHeight);
3448
3497
  }
3449
3498
 
3450
- .muka-tile--lg .muka-tile__favourite,
3451
- .muka-tile--md .muka-tile__favourite {
3452
- top: var(--spacing-4);
3453
- right: var(--spacing-4);
3499
+ .muka-textarea__label--md {
3500
+ font-family: var(--text-label-md-semibold-fontFamily);
3501
+ font-weight: var(--text-label-md-semibold-fontWeight);
3502
+ font-size: var(--text-label-md-semibold-fontSize);
3503
+ line-height: var(--text-label-md-semibold-lineHeight);
3454
3504
  }
3455
3505
 
3456
- .muka-tile--image-top.muka-tile--sm .muka-tile__favourite {
3457
- top: var(--spacing-1);
3458
- right: var(--spacing-1);
3506
+ .muka-textarea__label--lg {
3507
+ font-family: var(--text-label-lg-semibold-fontFamily);
3508
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3509
+ font-size: var(--text-label-lg-semibold-fontSize);
3510
+ line-height: var(--text-label-lg-semibold-lineHeight);
3459
3511
  }
3460
3512
 
3461
- /* ─── Thumbnails ──────────────────────────────────────── */
3513
+ .muka-textarea__required {
3514
+ color: var(--color-state-error-default);
3515
+ }
3462
3516
 
3463
- .muka-tile__thumbnails {
3517
+ /* Field container */
3518
+ .muka-textarea__field {
3464
3519
  display: flex;
3465
- gap: 2px;
3466
- overflow: hidden;
3467
- flex-shrink: 0;
3468
- height: 80px;
3520
+ background-color: var(--input-field-color-default-background);
3521
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
3522
+ border-radius: var(--input-field-radius-md);
3523
+ padding: var(--input-field-padding-y) var(--input-field-padding-x);
3524
+ transition: border-color 0.2s ease, background-color 0.2s ease;
3525
+ box-sizing: border-box;
3469
3526
  }
3470
3527
 
3471
- .muka-tile__thumbnail {
3472
- width: 80px;
3473
- height: 80px;
3474
- flex-shrink: 0;
3475
- overflow: hidden;
3528
+ .muka-textarea__field--sm {
3529
+ min-height: var(--input-textarea-height-sm);
3530
+ border-radius: var(--input-field-radius-sm);
3476
3531
  }
3477
3532
 
3478
- .muka-tile__thumbnail img {
3479
- width: 100%;
3480
- height: 100%;
3481
- object-fit: cover;
3482
- display: block;
3533
+ .muka-textarea__field--md {
3534
+ min-height: var(--input-textarea-height-default);
3535
+ border-radius: var(--input-field-radius-md);
3483
3536
  }
3484
3537
 
3485
- /* Gap between main photo and thumbnails */
3486
- .muka-tile__photos > .muka-tile__photo-main + .muka-tile__thumbnails {
3487
- margin-top: 2px;
3538
+ .muka-textarea__field--lg {
3539
+ min-height: var(--input-textarea-height-lg);
3540
+ border-radius: var(--input-field-radius-lg);
3488
3541
  }
3489
3542
 
3490
- /* ─── Content section ─────────────────────────────────── */
3491
-
3492
- .muka-tile__content {
3493
- display: flex;
3494
- flex-direction: column;
3495
- flex: 1;
3496
- min-width: 0;
3543
+ /* Focus state */
3544
+ .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3545
+ border-width: var(--border-width-bold);
3546
+ border-color: var(--input-field-color-focus-border);
3547
+ background-color: var(--input-field-color-focus-background);
3548
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3497
3549
  }
3498
3550
 
3499
- /* Top layout: content has horizontal padding */
3500
- .muka-tile--image-top.muka-tile--lg .muka-tile__content {
3501
- padding: 0 var(--spacing-3);
3502
- gap: var(--spacing-1);
3551
+ /* Error state */
3552
+ .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
3553
+ border-width: var(--border-width-bold);
3554
+ border-color: var(--input-field-color-error-border);
3555
+ background-color: var(--input-field-color-error-background);
3556
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3503
3557
  }
3504
3558
 
3505
- .muka-tile--image-top.muka-tile--md .muka-tile__content {
3506
- padding: 0 var(--spacing-3);
3507
- gap: var(--spacing-2);
3559
+ /* Disabled state */
3560
+ .muka-textarea__field--disabled {
3561
+ background-color: var(--input-field-color-disabled-background);
3562
+ border-color: var(--input-field-color-disabled-border);
3563
+ cursor: not-allowed;
3508
3564
  }
3509
3565
 
3510
- .muka-tile--image-top.muka-tile--sm .muka-tile__content {
3511
- gap: var(--spacing-2);
3566
+ /* Native textarea */
3567
+ .muka-textarea__native {
3568
+ flex: 1;
3569
+ border: none;
3570
+ outline: none;
3571
+ background: transparent;
3572
+ color: var(--input-field-color-default-foreground);
3573
+ font-family: var(--text-input-md-fontFamily);
3574
+ font-weight: var(--text-input-md-fontWeight);
3575
+ font-size: var(--text-input-md-fontSize);
3576
+ line-height: var(--text-input-md-lineHeight);
3577
+ padding: 0;
3578
+ width: 100%;
3579
+ min-width: 0;
3512
3580
  }
3513
3581
 
3514
- /* Left/right layout: content grows to fill space */
3515
- .muka-tile--image-left .muka-tile__content,
3516
- .muka-tile--image-right .muka-tile__content {
3517
- gap: var(--spacing-3);
3582
+ .muka-textarea__field--sm .muka-textarea__native {
3583
+ font-family: var(--text-input-sm-fontFamily);
3584
+ font-weight: var(--text-input-sm-fontWeight);
3585
+ font-size: var(--text-input-sm-fontSize);
3586
+ line-height: var(--text-input-sm-lineHeight);
3518
3587
  }
3519
3588
 
3520
- .muka-tile--image-left.muka-tile--lg .muka-tile__content,
3521
- .muka-tile--image-right.muka-tile--lg .muka-tile__content {
3522
- padding: 0 var(--spacing-3);
3589
+ .muka-textarea__field--lg .muka-textarea__native {
3590
+ font-family: var(--text-input-lg-fontFamily);
3591
+ font-weight: var(--text-input-lg-fontWeight);
3592
+ font-size: var(--text-input-lg-fontSize);
3593
+ line-height: var(--text-input-lg-lineHeight);
3523
3594
  }
3524
3595
 
3525
- .muka-tile--image-left.muka-tile--md .muka-tile__content,
3526
- .muka-tile--image-right.muka-tile--md .muka-tile__content {
3527
- padding: var(--spacing-2) var(--spacing-3);
3596
+ .muka-textarea__native::placeholder {
3597
+ color: var(--color-text-subtle-default);
3528
3598
  }
3529
3599
 
3530
- .muka-tile--image-left.muka-tile--sm .muka-tile__content,
3531
- .muka-tile--image-right.muka-tile--sm .muka-tile__content {
3532
- gap: var(--spacing-2);
3600
+ .muka-textarea__field--disabled .muka-textarea__native {
3601
+ color: var(--input-field-color-disabled-foreground);
3602
+ cursor: not-allowed;
3533
3603
  }
3534
3604
 
3535
- /* ─── Header (heading row + price) ────────────────────── */
3536
-
3537
- .muka-tile__header {
3605
+ /* Footer (helper/error + count) */
3606
+ .muka-textarea__footer {
3538
3607
  display: flex;
3608
+ justify-content: space-between;
3539
3609
  align-items: flex-start;
3540
- gap: var(--spacing-4);
3541
- }
3542
-
3543
- /* Small horizontal: row with text and action */
3544
- .muka-tile--sm:not(.muka-tile--image-top) .muka-tile__header {
3545
3610
  gap: var(--spacing-2);
3546
- align-items: center;
3547
- padding-top: var(--spacing-1);
3548
3611
  }
3549
3612
 
3550
- /* ─── Text group ──────────────────────────────────────── */
3551
-
3552
- .muka-tile__text {
3553
- display: flex;
3554
- flex-direction: column;
3555
- flex: 1;
3556
- min-width: 0;
3557
- gap: var(--spacing-2);
3613
+ .muka-textarea__helper {
3614
+ font-family: var(--text-label-sm-regular-fontFamily);
3615
+ font-weight: var(--text-label-sm-regular-fontWeight);
3616
+ font-size: var(--text-label-sm-regular-fontSize);
3617
+ line-height: var(--text-label-sm-regular-lineHeight);
3618
+ color: var(--color-text-subtle-default);
3619
+ margin: 0;
3558
3620
  }
3559
3621
 
3560
- /* ─── Heading typography ──────────────────────────────── */
3561
-
3562
- .muka-tile__heading {
3622
+ .muka-textarea__error {
3623
+ font-family: var(--text-label-sm-regular-fontFamily);
3624
+ font-weight: var(--text-label-sm-regular-fontWeight);
3625
+ font-size: var(--text-label-sm-regular-fontSize);
3626
+ line-height: var(--text-label-sm-regular-lineHeight);
3627
+ color: var(--color-state-error-default);
3563
3628
  margin: 0;
3564
3629
  }
3565
3630
 
3566
- .muka-tile--lg .muka-tile__heading {
3567
- font-family: var(--text-label-2xl-semibold-fontFamily);
3568
- font-weight: var(--text-label-2xl-semibold-fontWeight);
3569
- font-size: var(--text-label-2xl-semibold-fontSize);
3570
- line-height: var(--text-label-2xl-semibold-lineHeight);
3571
- color: var(--color-text-default-default);
3631
+ .muka-textarea__count {
3632
+ font-family: var(--text-label-sm-regular-fontFamily);
3633
+ font-weight: var(--text-label-sm-regular-fontWeight);
3634
+ font-size: var(--text-label-sm-regular-fontSize);
3635
+ line-height: var(--text-label-sm-regular-lineHeight);
3636
+ color: var(--color-text-subtle-default);
3637
+ margin-left: auto;
3572
3638
  }
3573
3639
 
3574
- .muka-tile--md .muka-tile__heading {
3575
- font-family: var(--text-label-xl-semibold-fontFamily);
3576
- font-weight: var(--text-label-xl-semibold-fontWeight);
3577
- font-size: var(--text-label-xl-semibold-fontSize);
3578
- line-height: var(--text-label-xl-semibold-lineHeight);
3579
- color: var(--color-text-default-default);
3580
- }
3581
3640
 
3582
- .muka-tile--sm .muka-tile__heading {
3583
- font-family: var(--text-label-lg-bold-fontFamily);
3584
- font-weight: var(--text-label-lg-bold-fontWeight);
3585
- font-size: var(--text-label-lg-bold-fontSize);
3586
- line-height: var(--text-label-lg-bold-lineHeight);
3587
- color: var(--color-text-default-default);
3588
- }
3589
-
3590
- /* ─── Subheading typography ───────────────────────────── */
3591
-
3592
- .muka-tile__subheading {
3593
- margin: 0;
3594
- color: var(--color-text-subtle-default);
3595
- }
3641
+ /* TextLink */
3642
+ /* TextLink Component Styles - Using Muka Design Tokens */
3596
3643
 
3597
- .muka-tile--lg .muka-tile__subheading {
3598
- font-family: var(--text-subheading-md-fontFamily);
3599
- font-weight: var(--text-subheading-md-fontWeight);
3600
- font-size: var(--text-subheading-md-fontSize);
3601
- line-height: var(--text-subheading-md-lineHeight);
3644
+ .muka-text-link {
3645
+ display: inline;
3646
+ cursor: pointer;
3647
+ text-decoration: underline;
3648
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
3649
+ text-underline-offset: 0.2em;
3650
+ text-decoration-thickness: from-font;
3651
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
3652
+ border-radius: var(--border-radius-sm);
3653
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
3602
3654
  }
3603
3655
 
3604
- .muka-tile--md .muka-tile__subheading,
3605
- .muka-tile--sm .muka-tile__subheading {
3606
- font-family: var(--text-subheading-sm-fontFamily);
3607
- font-weight: var(--text-subheading-sm-fontWeight);
3608
- font-size: var(--text-subheading-sm-fontSize);
3609
- line-height: var(--text-subheading-sm-lineHeight);
3656
+ /* ─── Sizes ───────────────────────────────────────────────
3657
+ Mirrors the body text scale so a link matches the copy it sits in. */
3658
+ .muka-text-link--sm {
3659
+ font-family: var(--text-body-sm-regular-fontFamily);
3660
+ font-weight: var(--text-body-sm-regular-fontWeight);
3661
+ font-size: var(--text-body-sm-regular-fontSize);
3662
+ line-height: var(--text-body-sm-regular-lineHeight);
3610
3663
  }
3611
3664
 
3612
- /* ─── Description typography ──────────────────────────── */
3613
-
3614
- .muka-tile__description {
3615
- margin: 0;
3616
- color: var(--color-text-default-default);
3665
+ .muka-text-link--base {
3666
+ font-family: var(--text-body-base-regular-fontFamily);
3667
+ font-weight: var(--text-body-base-regular-fontWeight);
3668
+ font-size: var(--text-body-base-regular-fontSize);
3669
+ line-height: var(--text-body-base-regular-lineHeight);
3617
3670
  }
3618
3671
 
3619
- .muka-tile--lg .muka-tile__description {
3672
+ .muka-text-link--lg {
3620
3673
  font-family: var(--text-body-lg-regular-fontFamily);
3621
3674
  font-weight: var(--text-body-lg-regular-fontWeight);
3622
3675
  font-size: var(--text-body-lg-regular-fontSize);
3623
3676
  line-height: var(--text-body-lg-regular-lineHeight);
3624
3677
  }
3625
3678
 
3626
- .muka-tile--md .muka-tile__description,
3627
- .muka-tile--sm .muka-tile__description {
3628
- font-family: var(--text-body-base-regular-fontFamily);
3629
- font-weight: var(--text-body-base-regular-fontWeight);
3630
- font-size: var(--text-body-base-regular-fontSize);
3631
- line-height: var(--text-body-base-regular-lineHeight);
3679
+ /* ─── Variant: default (accent) ───────────────────────────
3680
+ Visited repeats the default colour on purpose: the design treats visited and
3681
+ default the same, and pinning it stops the browser's purple from showing. */
3682
+ .muka-text-link--default,
3683
+ .muka-text-link--default:visited {
3684
+ color: var(--color-text-action-default);
3632
3685
  }
3633
3686
 
3634
- /* Description overflow for medium */
3635
- .muka-tile--md .muka-tile__description {
3636
- overflow: hidden;
3637
- text-overflow: ellipsis;
3687
+ .muka-text-link--default:hover,
3688
+ .muka-text-link--default:focus-visible {
3689
+ color: var(--color-text-action-hover);
3638
3690
  }
3639
3691
 
3640
- /* ─── Price slot ──────────────────────────────────────── */
3641
-
3642
- .muka-tile__price {
3643
- flex-shrink: 0;
3692
+ .muka-text-link--default:active {
3693
+ color: var(--color-text-action-pressed);
3644
3694
  }
3645
3695
 
3646
- /* ─── Action slot ─────────────────────────────────────── */
3647
-
3648
- .muka-tile__action {
3649
- flex-shrink: 0;
3696
+ /* ─── Variant: subtle (neutral) ───────────────────────────
3697
+ Hover, focus and pressed all darken to the default text colour. */
3698
+ .muka-text-link--subtle,
3699
+ .muka-text-link--subtle:visited {
3700
+ color: var(--color-text-subtle-default);
3650
3701
  }
3651
3702
 
3652
-
3653
- /* Thumbnail */
3654
- /* Thumbnail Component Styles - Using Muka Design Tokens */
3655
-
3656
- .muka-thumbnail {
3657
- position: relative;
3658
- flex-shrink: 0;
3703
+ .muka-text-link--subtle:hover,
3704
+ .muka-text-link--subtle:focus-visible,
3705
+ .muka-text-link--subtle:active {
3706
+ color: var(--color-text-default-default);
3659
3707
  }
3660
3708
 
3661
- /* The frame carries the border, background and shape clip. Keeping it separate
3662
- from the root lets the remove (×) button sit outside the clip (needed for the
3663
- circular/ellipse shape, whose corners would otherwise clip the button). */
3664
- .muka-thumbnail__frame {
3665
- position: absolute;
3666
- inset: 0;
3667
- overflow: hidden;
3668
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3669
- border-radius: var(--border-radius-lg);
3670
- background-color: var(--color-surface-level1);
3709
+ /* ─── Focus ───────────────────────────────────────────────
3710
+ Same ring as every other focusable Muka component. */
3711
+ .muka-text-link:focus-visible {
3712
+ outline: 2px solid var(--color-border-focus);
3713
+ outline-offset: 2px;
3671
3714
  }
3672
3715
 
3673
- /* ─── Shapes ──────────────────────────────────────────── */
3674
- .muka-thumbnail--4-3 {
3675
- width: 160px;
3676
- height: 120px;
3716
+ @media (prefers-reduced-motion: reduce) {
3717
+ .muka-text-link {
3718
+ transition: none;
3719
+ }
3677
3720
  }
3678
3721
 
3679
- .muka-thumbnail--1-1 {
3680
- width: 120px;
3681
- height: 120px;
3682
- }
3683
3722
 
3684
- .muka-thumbnail--ellipse {
3685
- width: 120px;
3686
- height: 120px;
3687
- }
3723
+ /* Tabs */
3724
+ /* Tabs Component Styles - Clean underline style tabs matching Figma */
3688
3725
 
3689
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3690
- .muka-thumbnail--fluid {
3691
- width: 100%;
3692
- height: auto;
3693
- aspect-ratio: 1 / 1;
3726
+ .muka-tabs {
3727
+ display: flex;
3728
+ flex-direction: column;
3694
3729
  }
3695
3730
 
3696
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3697
- aspect-ratio: 4 / 3;
3731
+ /* Alignment Variants */
3732
+ .muka-tabs--align-left .muka-tabs__list {
3733
+ justify-content: flex-start;
3698
3734
  }
3699
-
3700
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
3701
- border-radius: var(--border-radius-full);
3735
+ .muka-tabs--align-center .muka-tabs__list {
3736
+ justify-content: center;
3702
3737
  }
3703
-
3704
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3705
- interactive hover zoom has a clean origin. */
3706
- .muka-thumbnail__image {
3707
- position: absolute;
3708
- inset: 0;
3709
- width: 100%;
3710
- height: 100%;
3711
- object-fit: cover;
3712
- display: block;
3713
- transform-origin: center;
3714
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3715
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3738
+ .muka-tabs--align-fill .muka-tabs__list {
3739
+ justify-content: space-between;
3716
3740
  }
3717
-
3718
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
3719
- .muka-thumbnail__trigger {
3720
- position: absolute;
3721
- inset: 0;
3722
- padding: 0;
3723
- border: 0;
3724
- background: none;
3725
- cursor: pointer;
3726
- overflow: hidden;
3741
+ .muka-tabs--align-fill .muka-tabs__trigger {
3742
+ flex: 1;
3727
3743
  }
3728
3744
 
3729
- .muka-thumbnail__trigger:focus-visible {
3730
- outline: 2px solid var(--color-border-focus);
3731
- outline-offset: -2px;
3745
+ /* Tab List — strip container */
3746
+ .muka-tabs__list {
3747
+ display: flex;
3748
+ align-items: center;
3749
+ position: relative;
3750
+ z-index: 2;
3751
+ border-bottom: 1px solid var(--tabs-trigger-color-default-border);
3732
3752
  }
3733
3753
 
3734
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3735
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3736
- transform: scale(1.05);
3754
+ /* Padding: inset the tabs; the divider (border) still spans the full width */
3755
+ .muka-tabs--padding-default .muka-tabs__list {
3756
+ padding-inline: var(--tabs-list-padding-x);
3737
3757
  }
3738
3758
 
3739
- /* ─── Loading overlay + progress donut ────────────────── */
3740
- .muka-thumbnail__overlay {
3741
- position: absolute;
3742
- inset: 0;
3743
- display: flex;
3759
+ /* Tab Trigger — clean underline style */
3760
+ .muka-tabs__trigger {
3761
+ display: inline-flex;
3744
3762
  align-items: center;
3745
3763
  justify-content: center;
3746
- background-color: var(--dialog-color-backdrop);
3764
+ gap: var(--spacing-1);
3765
+ background: transparent;
3766
+ border: none;
3767
+ cursor: pointer;
3768
+ user-select: none;
3769
+ transition: background-color 0.2s ease, color 0.2s ease;
3770
+ outline: none;
3771
+ white-space: nowrap;
3772
+ position: relative;
3773
+ z-index: 2;
3774
+ color: var(--tabs-trigger-color-default-foreground);
3775
+
3776
+ /* Default MD size values */
3777
+ min-height: var(--tabs-trigger-min-height-md);
3778
+ padding: var(--spacing-3);
3779
+ font-family: var(--text-label-md-regular-fontFamily);
3780
+ font-weight: var(--text-label-md-regular-fontWeight);
3781
+ font-size: var(--text-label-md-regular-fontSize);
3782
+ line-height: var(--text-label-md-regular-lineHeight);
3747
3783
  }
3748
3784
 
3749
- .muka-thumbnail__progress {
3750
- width: 40px;
3751
- height: 40px;
3785
+ /* Size Variants */
3786
+ .muka-tabs--size-sm .muka-tabs__trigger {
3787
+ min-height: var(--tabs-trigger-min-height-sm);
3788
+ padding: 0 var(--spacing-2);
3789
+ font-family: var(--text-label-sm-regular-fontFamily);
3790
+ font-weight: var(--text-label-sm-regular-fontWeight);
3791
+ font-size: var(--text-label-sm-regular-fontSize);
3792
+ line-height: var(--text-label-sm-regular-lineHeight);
3752
3793
  }
3753
3794
 
3754
- /* ─── Error / corrupt state ───────────────────────────── */
3755
- .muka-thumbnail--error .muka-thumbnail__frame {
3756
- background-color: var(--alias-color-state-error-muted);
3757
- border-color: var(--alias-color-state-error-default);
3795
+ .muka-tabs--size-lg .muka-tabs__trigger {
3796
+ min-height: var(--tabs-trigger-min-height-lg);
3797
+ padding: var(--spacing-4);
3798
+ font-family: var(--text-label-lg-regular-fontFamily);
3799
+ font-weight: var(--text-label-lg-regular-fontWeight);
3800
+ font-size: var(--text-label-lg-regular-fontSize);
3801
+ line-height: var(--text-label-lg-regular-lineHeight);
3758
3802
  }
3759
3803
 
3760
- .muka-thumbnail__error {
3761
- position: absolute;
3762
- inset: 0;
3763
- display: flex;
3764
- flex-direction: column;
3765
- align-items: center;
3766
- justify-content: center;
3767
- gap: var(--spacing-2);
3768
- padding: var(--spacing-3);
3769
- text-align: center;
3804
+ /* Hover state */
3805
+ .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
3806
+ color: var(--tabs-trigger-color-hover-foreground);
3770
3807
  }
3771
3808
 
3772
- .muka-thumbnail__error-icon {
3773
- color: var(--alert-color-error-accent);
3809
+ /* Current tab */
3810
+ .muka-tabs__trigger--current {
3811
+ color: var(--tabs-trigger-color-current-foreground);
3774
3812
  }
3775
3813
 
3776
- .muka-thumbnail__caption {
3777
- max-width: 100%;
3778
- overflow: hidden;
3779
- text-overflow: ellipsis;
3780
- white-space: nowrap;
3781
- color: var(--alert-color-error-accent);
3782
- font-family: var(--text-body-sm-regular-fontFamily);
3783
- font-size: var(--text-body-sm-regular-fontSize);
3784
- font-weight: var(--text-body-sm-regular-fontWeight);
3785
- line-height: var(--text-body-sm-regular-lineHeight);
3814
+ /* Active bottom border (underline) */
3815
+ .muka-tabs__trigger--current::after {
3816
+ content: '';
3817
+ position: absolute;
3818
+ bottom: -1px; /* Overlap the 1px border */
3819
+ left: 0;
3820
+ right: 0;
3821
+ height: var(--tabs-indicator-height-md);
3822
+ background-color: var(--tabs-indicator-color);
3823
+ border-bottom-left-radius: 1px;
3824
+ border-bottom-right-radius: 1px;
3825
+ border-top-left-radius: 3px;
3826
+ border-top-right-radius: 3px;
3827
+ z-index: 3;
3786
3828
  }
3787
3829
 
3788
- /* ─── Remove (×) button ───────────────────────────────── */
3789
- .muka-thumbnail__remove {
3790
- position: absolute;
3791
- top: var(--spacing-2);
3792
- right: var(--spacing-2);
3830
+ .muka-tabs--size-sm .muka-tabs__trigger--current::after {
3831
+ height: var(--tabs-indicator-height-sm);
3832
+ }
3833
+ .muka-tabs--size-lg .muka-tabs__trigger--current::after {
3834
+ height: var(--tabs-indicator-height-lg);
3835
+ }
3836
+
3837
+ .muka-tabs__trigger--disabled {
3838
+ color: var(--tabs-trigger-color-disabled-foreground);
3839
+ cursor: not-allowed;
3840
+ }
3841
+
3842
+ .muka-tabs__trigger:focus-visible {
3843
+ outline: 2px solid var(--color-border-focus);
3844
+ outline-offset: -2px;
3845
+ }
3846
+
3847
+ /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
3848
+ item sits 12px from the text */
3849
+ .muka-tabs__label {
3850
+ padding: 0 var(--spacing-2);
3851
+ }
3852
+
3853
+ /* Leading item: icon, avatar, avatar group or data pie chart */
3854
+ .muka-tabs__leading {
3793
3855
  display: flex;
3794
3856
  align-items: center;
3795
3857
  justify-content: center;
3796
- width: var(--size-2xl);
3797
- height: var(--size-2xl);
3798
- padding: 0;
3799
- color: var(--button-color-tertiary-foreground-default);
3800
- background-color: var(--button-color-tertiary-background-default);
3801
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3802
- border-radius: var(--border-radius-lg);
3803
- cursor: pointer;
3804
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3805
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
3858
+ flex-shrink: 0;
3859
+ }
3860
+ .muka-tabs__trigger .muka-icon {
3861
+ color: inherit;
3806
3862
  }
3863
+ /* Icon sizes only: avatars and pie charts are sized through their size prop */
3864
+ .muka-tabs--size-sm .muka-tabs__leading > svg,
3865
+ .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
3866
+ .muka-tabs--size-md .muka-tabs__leading > svg,
3867
+ .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
3868
+ .muka-tabs--size-lg .muka-tabs__leading > svg,
3869
+ .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
3807
3870
 
3808
- .muka-thumbnail__remove:hover {
3809
- color: var(--button-color-tertiary-foreground-hover);
3810
- background-color: var(--button-color-tertiary-background-hover);
3811
- border-color: var(--button-color-tertiary-border-hover);
3871
+ /* Responsive Scroll behavior on small screens */
3872
+ @media (max-width: 768px) {
3873
+ .muka-tabs__list {
3874
+ /* Make scrollable */
3875
+ overflow-x: auto;
3876
+ overflow-y: hidden;
3877
+ /* Force left alignment on mobile to prevent clipping when scrolling */
3878
+ justify-content: flex-start !important;
3879
+ max-width: 100vw;
3880
+ -webkit-overflow-scrolling: touch;
3881
+ /* Hide scrollbar for cleaner look */
3882
+ scrollbar-width: none;
3883
+ }
3884
+ .muka-tabs__list::-webkit-scrollbar {
3885
+ display: none;
3886
+ }
3887
+ /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
3888
+ .muka-tabs--align-fill .muka-tabs__trigger {
3889
+ flex: 0 0 auto;
3890
+ }
3812
3891
  }
3813
3892
 
3814
- .muka-thumbnail__remove:active {
3815
- color: var(--button-color-tertiary-foreground-pressed);
3816
- background-color: var(--button-color-tertiary-background-pressed);
3817
- border-color: var(--button-color-tertiary-border-pressed);
3893
+ /* Tab Panel — content area */
3894
+ .muka-tabs__panel {
3895
+ background-color: var(--tabs-panel-background);
3896
+ /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
3897
+ border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
3898
+ padding: var(--spacing-4);
3899
+ position: relative;
3900
+ z-index: 1;
3901
+ font-family: var(--text-body-base-regular-fontFamily);
3902
+ font-weight: var(--text-body-base-regular-fontWeight);
3903
+ font-size: var(--text-body-base-regular-fontSize);
3904
+ line-height: var(--text-body-base-regular-lineHeight);
3818
3905
  }
3819
3906
 
3820
- .muka-thumbnail__remove:focus-visible {
3907
+ .muka-tabs__panel:focus-visible {
3821
3908
  outline: 2px solid var(--color-border-focus);
3822
3909
  outline-offset: 2px;
3823
3910
  }
3824
3911
 
3825
- /* ─── Reduced motion ──────────────────────────────────── */
3826
- @media (prefers-reduced-motion: reduce) {
3827
- .muka-thumbnail__image,
3828
- .muka-thumbnail__remove {
3829
- transition: none;
3830
- }
3831
3912
 
3832
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3833
- transform: none;
3834
- }
3913
+ /* Tile */
3914
+ /* Tile Component Styles - Using Muka Design Tokens */
3915
+
3916
+ /* ─── Base ────────────────────────────────────────────── */
3917
+
3918
+ .muka-tile {
3919
+ display: flex;
3920
+ color: var(--color-text-default-default);
3835
3921
  }
3836
3922
 
3923
+ .muka-tile--interactive {
3924
+ cursor: pointer;
3925
+ user-select: none;
3926
+ }
3837
3927
 
3838
- /* Textarea */
3839
- /* Textarea Component Styles - Using Muka Design Tokens */
3928
+ .muka-tile--interactive:focus-visible {
3929
+ outline: 2px solid var(--color-border-focus);
3930
+ outline-offset: 2px;
3931
+ border-radius: var(--border-radius-lg);
3932
+ }
3840
3933
 
3841
- .muka-textarea {
3842
- display: inline-flex;
3934
+ /* ─── Image position variants ─────────────────────────── */
3935
+
3936
+ .muka-tile--image-top {
3843
3937
  flex-direction: column;
3844
- gap: var(--spacing-2);
3845
3938
  }
3846
3939
 
3847
- /* Label */
3848
- .muka-textarea__label {
3849
- color: var(--color-text-default-default);
3850
- cursor: pointer;
3940
+ .muka-tile--image-left {
3941
+ flex-direction: row;
3851
3942
  }
3852
3943
 
3853
- .muka-textarea__label--sm {
3854
- font-family: var(--text-label-sm-semibold-fontFamily);
3855
- font-weight: var(--text-label-sm-semibold-fontWeight);
3856
- font-size: var(--text-label-sm-semibold-fontSize);
3857
- line-height: var(--text-label-sm-semibold-lineHeight);
3944
+ .muka-tile--image-right {
3945
+ flex-direction: row;
3858
3946
  }
3859
3947
 
3860
- .muka-textarea__label--md {
3861
- font-family: var(--text-label-md-semibold-fontFamily);
3862
- font-weight: var(--text-label-md-semibold-fontWeight);
3863
- font-size: var(--text-label-md-semibold-fontSize);
3864
- line-height: var(--text-label-md-semibold-lineHeight);
3948
+ /* ─── Gap by size (top) ───────────────────────────────── */
3949
+
3950
+ .muka-tile--image-top.muka-tile--lg {
3951
+ gap: var(--spacing-6);
3865
3952
  }
3866
3953
 
3867
- .muka-textarea__label--lg {
3868
- font-family: var(--text-label-lg-semibold-fontFamily);
3869
- font-weight: var(--text-label-lg-semibold-fontWeight);
3870
- font-size: var(--text-label-lg-semibold-fontSize);
3871
- line-height: var(--text-label-lg-semibold-lineHeight);
3954
+ .muka-tile--image-top.muka-tile--md {
3955
+ gap: var(--spacing-6);
3956
+ width: 320px;
3872
3957
  }
3873
3958
 
3874
- .muka-textarea__required {
3875
- color: var(--color-state-error-default);
3959
+ .muka-tile--image-top.muka-tile--sm {
3960
+ gap: var(--spacing-4);
3961
+ min-width: 120px;
3876
3962
  }
3877
3963
 
3878
- /* Field container */
3879
- .muka-textarea__field {
3880
- display: flex;
3881
- background-color: var(--input-field-color-default-background);
3882
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
3883
- border-radius: var(--input-field-radius-md);
3884
- padding: var(--input-field-padding-y) var(--input-field-padding-x);
3885
- transition: border-color 0.2s ease, background-color 0.2s ease;
3886
- box-sizing: border-box;
3964
+ /* ─── Gap by size (left/right) ────────────────────────── */
3965
+
3966
+ .muka-tile--image-left.muka-tile--lg,
3967
+ .muka-tile--image-right.muka-tile--lg {
3968
+ gap: var(--spacing-6);
3969
+ align-items: center;
3887
3970
  }
3888
3971
 
3889
- .muka-textarea__field--sm {
3890
- min-height: var(--input-textarea-height-sm);
3891
- border-radius: var(--input-field-radius-sm);
3972
+ .muka-tile--image-left.muka-tile--md,
3973
+ .muka-tile--image-right.muka-tile--md {
3974
+ gap: var(--spacing-6);
3975
+ align-items: center;
3892
3976
  }
3893
3977
 
3894
- .muka-textarea__field--md {
3895
- min-height: var(--input-textarea-height-default);
3896
- border-radius: var(--input-field-radius-md);
3978
+ .muka-tile--image-left.muka-tile--sm,
3979
+ .muka-tile--image-right.muka-tile--sm {
3980
+ gap: var(--spacing-4);
3981
+ align-items: flex-start;
3897
3982
  }
3898
3983
 
3899
- .muka-textarea__field--lg {
3900
- min-height: var(--input-textarea-height-lg);
3901
- border-radius: var(--input-field-radius-lg);
3984
+ /* ─── Photos container ────────────────────────────────── */
3985
+
3986
+ .muka-tile__photos {
3987
+ position: relative;
3988
+ flex-shrink: 0;
3989
+ overflow: hidden;
3990
+ display: flex;
3991
+ flex-direction: column;
3992
+ isolation: isolate;
3902
3993
  }
3903
3994
 
3904
- /* Focus state */
3905
- .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3906
- border-width: var(--border-width-bold);
3907
- border-color: var(--input-field-color-focus-border);
3908
- background-color: var(--input-field-color-focus-background);
3909
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3995
+ /* Photos border radius by size */
3996
+ .muka-tile--lg .muka-tile__photos,
3997
+ .muka-tile--md .muka-tile__photos {
3998
+ border-radius: var(--border-radius-lg);
3910
3999
  }
3911
4000
 
3912
- /* Error state */
3913
- .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
3914
- border-width: var(--border-width-bold);
3915
- border-color: var(--input-field-color-error-border);
3916
- background-color: var(--input-field-color-error-background);
3917
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4001
+ .muka-tile--sm .muka-tile__photos {
4002
+ border-radius: var(--border-radius-md);
3918
4003
  }
3919
4004
 
3920
- /* Disabled state */
3921
- .muka-textarea__field--disabled {
3922
- background-color: var(--input-field-color-disabled-background);
3923
- border-color: var(--input-field-color-disabled-border);
3924
- cursor: not-allowed;
4005
+ /* Photos sizing: top layout */
4006
+ .muka-tile--image-top .muka-tile__photos {
4007
+ width: 100%;
3925
4008
  }
3926
4009
 
3927
- /* Native textarea */
3928
- .muka-textarea__native {
3929
- flex: 1;
3930
- border: none;
3931
- outline: none;
3932
- background: transparent;
3933
- color: var(--input-field-color-default-foreground);
3934
- font-family: var(--text-input-md-fontFamily);
3935
- font-weight: var(--text-input-md-fontWeight);
3936
- font-size: var(--text-input-md-fontSize);
3937
- line-height: var(--text-input-md-lineHeight);
3938
- padding: 0;
3939
- width: 100%;
3940
- min-width: 0;
4010
+ /* Photos sizing: left/right large */
4011
+ .muka-tile--image-left.muka-tile--lg .muka-tile__photos,
4012
+ .muka-tile--image-right.muka-tile--lg .muka-tile__photos {
4013
+ width: 520px;
3941
4014
  }
3942
4015
 
3943
- .muka-textarea__field--sm .muka-textarea__native {
3944
- font-family: var(--text-input-sm-fontFamily);
3945
- font-weight: var(--text-input-sm-fontWeight);
3946
- font-size: var(--text-input-sm-fontSize);
3947
- line-height: var(--text-input-sm-lineHeight);
4016
+ /* Photos sizing: left/right medium */
4017
+ .muka-tile--image-left.muka-tile--md .muka-tile__photos,
4018
+ .muka-tile--image-right.muka-tile--md .muka-tile__photos {
4019
+ width: 320px;
3948
4020
  }
3949
4021
 
3950
- .muka-textarea__field--lg .muka-textarea__native {
3951
- font-family: var(--text-input-lg-fontFamily);
3952
- font-weight: var(--text-input-lg-fontWeight);
3953
- font-size: var(--text-input-lg-fontSize);
3954
- line-height: var(--text-input-lg-lineHeight);
4022
+ /* Photos sizing: left/right small (single 80x80 thumbnail) */
4023
+ .muka-tile--image-left.muka-tile--sm .muka-tile__photos,
4024
+ .muka-tile--image-right.muka-tile--sm .muka-tile__photos {
4025
+ width: 80px;
4026
+ align-self: stretch;
3955
4027
  }
3956
4028
 
3957
- .muka-textarea__native::placeholder {
3958
- color: var(--color-text-subtle-default);
3959
- }
4029
+ /* ─── Main photo ──────────────────────────────────────── */
3960
4030
 
3961
- .muka-textarea__field--disabled .muka-textarea__native {
3962
- color: var(--input-field-color-disabled-foreground);
3963
- cursor: not-allowed;
4031
+ .muka-tile__photo-main {
4032
+ position: relative;
4033
+ width: 100%;
4034
+ overflow: hidden;
4035
+ flex-shrink: 0;
3964
4036
  }
3965
4037
 
3966
- /* Footer (helper/error + count) */
3967
- .muka-textarea__footer {
3968
- display: flex;
3969
- justify-content: space-between;
3970
- align-items: flex-start;
3971
- gap: var(--spacing-2);
4038
+ /* 16:9 aspect for lg and md */
4039
+ .muka-tile--lg .muka-tile__photo-main,
4040
+ .muka-tile--md .muka-tile__photo-main {
4041
+ aspect-ratio: 1280 / 720;
3972
4042
  }
3973
4043
 
3974
- .muka-textarea__helper {
3975
- font-family: var(--text-label-sm-regular-fontFamily);
3976
- font-weight: var(--text-label-sm-regular-fontWeight);
3977
- font-size: var(--text-label-sm-regular-fontSize);
3978
- line-height: var(--text-label-sm-regular-lineHeight);
3979
- color: var(--color-text-subtle-default);
3980
- margin: 0;
4044
+ /* 1:1 aspect for top + sm */
4045
+ .muka-tile--image-top.muka-tile--sm .muka-tile__photo-main {
4046
+ aspect-ratio: 1 / 1;
3981
4047
  }
3982
4048
 
3983
- .muka-textarea__error {
3984
- font-family: var(--text-label-sm-regular-fontFamily);
3985
- font-weight: var(--text-label-sm-regular-fontWeight);
3986
- font-size: var(--text-label-sm-regular-fontSize);
3987
- line-height: var(--text-label-sm-regular-lineHeight);
3988
- color: var(--color-state-error-default);
3989
- margin: 0;
4049
+ /* Fixed size for left/right + sm */
4050
+ .muka-tile--image-left.muka-tile--sm .muka-tile__photo-main,
4051
+ .muka-tile--image-right.muka-tile--sm .muka-tile__photo-main {
4052
+ width: 80px;
4053
+ height: 80px;
4054
+ aspect-ratio: auto;
3990
4055
  }
3991
4056
 
3992
- .muka-textarea__count {
3993
- font-family: var(--text-label-sm-regular-fontFamily);
3994
- font-weight: var(--text-label-sm-regular-fontWeight);
3995
- font-size: var(--text-label-sm-regular-fontSize);
3996
- line-height: var(--text-label-sm-regular-lineHeight);
3997
- color: var(--color-text-subtle-default);
3998
- margin-left: auto;
4057
+ .muka-tile__photo-main img {
4058
+ width: 100%;
4059
+ height: 100%;
4060
+ object-fit: cover;
4061
+ display: block;
3999
4062
  }
4000
4063
 
4064
+ /* ─── Favourite overlay ───────────────────────────────── */
4001
4065
 
4002
- /* TextLink */
4003
- /* TextLink Component Styles - Using Muka Design Tokens */
4004
-
4005
- .muka-text-link {
4006
- display: inline;
4007
- cursor: pointer;
4008
- text-decoration: underline;
4009
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4010
- text-underline-offset: 0.2em;
4011
- text-decoration-thickness: from-font;
4012
- /* Rounds the focus ring's corners; the link itself has no visible box. */
4013
- border-radius: var(--border-radius-sm);
4014
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4066
+ .muka-tile__favourite {
4067
+ position: absolute;
4068
+ z-index: 3;
4015
4069
  }
4016
4070
 
4017
- /* ─── Sizes ───────────────────────────────────────────────
4018
- Mirrors the body text scale so a link matches the copy it sits in. */
4019
- .muka-text-link--sm {
4020
- font-family: var(--text-body-sm-regular-fontFamily);
4021
- font-weight: var(--text-body-sm-regular-fontWeight);
4022
- font-size: var(--text-body-sm-regular-fontSize);
4023
- line-height: var(--text-body-sm-regular-lineHeight);
4071
+ .muka-tile--lg .muka-tile__favourite,
4072
+ .muka-tile--md .muka-tile__favourite {
4073
+ top: var(--spacing-4);
4074
+ right: var(--spacing-4);
4024
4075
  }
4025
4076
 
4026
- .muka-text-link--base {
4027
- font-family: var(--text-body-base-regular-fontFamily);
4028
- font-weight: var(--text-body-base-regular-fontWeight);
4029
- font-size: var(--text-body-base-regular-fontSize);
4030
- line-height: var(--text-body-base-regular-lineHeight);
4077
+ .muka-tile--image-top.muka-tile--sm .muka-tile__favourite {
4078
+ top: var(--spacing-1);
4079
+ right: var(--spacing-1);
4031
4080
  }
4032
4081
 
4033
- .muka-text-link--lg {
4034
- font-family: var(--text-body-lg-regular-fontFamily);
4035
- font-weight: var(--text-body-lg-regular-fontWeight);
4036
- font-size: var(--text-body-lg-regular-fontSize);
4037
- line-height: var(--text-body-lg-regular-lineHeight);
4038
- }
4082
+ /* ─── Thumbnails ──────────────────────────────────────── */
4039
4083
 
4040
- /* ─── Variant: default (accent) ───────────────────────────
4041
- Visited repeats the default colour on purpose: the design treats visited and
4042
- default the same, and pinning it stops the browser's purple from showing. */
4043
- .muka-text-link--default,
4044
- .muka-text-link--default:visited {
4045
- color: var(--color-text-action-default);
4084
+ .muka-tile__thumbnails {
4085
+ display: flex;
4086
+ gap: 2px;
4087
+ overflow: hidden;
4088
+ flex-shrink: 0;
4089
+ height: 80px;
4046
4090
  }
4047
4091
 
4048
- .muka-text-link--default:hover,
4049
- .muka-text-link--default:focus-visible {
4050
- color: var(--color-text-action-hover);
4092
+ .muka-tile__thumbnail {
4093
+ width: 80px;
4094
+ height: 80px;
4095
+ flex-shrink: 0;
4096
+ overflow: hidden;
4051
4097
  }
4052
4098
 
4053
- .muka-text-link--default:active {
4054
- color: var(--color-text-action-pressed);
4099
+ .muka-tile__thumbnail img {
4100
+ width: 100%;
4101
+ height: 100%;
4102
+ object-fit: cover;
4103
+ display: block;
4055
4104
  }
4056
4105
 
4057
- /* ─── Variant: subtle (neutral) ───────────────────────────
4058
- Hover, focus and pressed all darken to the default text colour. */
4059
- .muka-text-link--subtle,
4060
- .muka-text-link--subtle:visited {
4061
- color: var(--color-text-subtle-default);
4106
+ /* Gap between main photo and thumbnails */
4107
+ .muka-tile__photos > .muka-tile__photo-main + .muka-tile__thumbnails {
4108
+ margin-top: 2px;
4062
4109
  }
4063
4110
 
4064
- .muka-text-link--subtle:hover,
4065
- .muka-text-link--subtle:focus-visible,
4066
- .muka-text-link--subtle:active {
4067
- color: var(--color-text-default-default);
4068
- }
4111
+ /* ─── Content section ─────────────────────────────────── */
4069
4112
 
4070
- /* ─── Focus ───────────────────────────────────────────────
4071
- Same ring as every other focusable Muka component. */
4072
- .muka-text-link:focus-visible {
4073
- outline: 2px solid var(--color-border-focus);
4074
- outline-offset: 2px;
4113
+ .muka-tile__content {
4114
+ display: flex;
4115
+ flex-direction: column;
4116
+ flex: 1;
4117
+ min-width: 0;
4075
4118
  }
4076
4119
 
4077
- @media (prefers-reduced-motion: reduce) {
4078
- .muka-text-link {
4079
- transition: none;
4080
- }
4120
+ /* Top layout: content has horizontal padding */
4121
+ .muka-tile--image-top.muka-tile--lg .muka-tile__content {
4122
+ padding: 0 var(--spacing-3);
4123
+ gap: var(--spacing-1);
4081
4124
  }
4082
4125
 
4126
+ .muka-tile--image-top.muka-tile--md .muka-tile__content {
4127
+ padding: 0 var(--spacing-3);
4128
+ gap: var(--spacing-2);
4129
+ }
4083
4130
 
4084
- /* Tabs */
4085
- /* Tabs Component Styles - Clean underline style tabs matching Figma */
4086
-
4087
- .muka-tabs {
4088
- display: flex;
4089
- flex-direction: column;
4131
+ .muka-tile--image-top.muka-tile--sm .muka-tile__content {
4132
+ gap: var(--spacing-2);
4090
4133
  }
4091
4134
 
4092
- /* Alignment Variants */
4093
- .muka-tabs--align-left .muka-tabs__list {
4094
- justify-content: flex-start;
4135
+ /* Left/right layout: content grows to fill space */
4136
+ .muka-tile--image-left .muka-tile__content,
4137
+ .muka-tile--image-right .muka-tile__content {
4138
+ gap: var(--spacing-3);
4095
4139
  }
4096
- .muka-tabs--align-center .muka-tabs__list {
4097
- justify-content: center;
4140
+
4141
+ .muka-tile--image-left.muka-tile--lg .muka-tile__content,
4142
+ .muka-tile--image-right.muka-tile--lg .muka-tile__content {
4143
+ padding: 0 var(--spacing-3);
4098
4144
  }
4099
- .muka-tabs--align-fill .muka-tabs__list {
4100
- justify-content: space-between;
4145
+
4146
+ .muka-tile--image-left.muka-tile--md .muka-tile__content,
4147
+ .muka-tile--image-right.muka-tile--md .muka-tile__content {
4148
+ padding: var(--spacing-2) var(--spacing-3);
4101
4149
  }
4102
- .muka-tabs--align-fill .muka-tabs__trigger {
4103
- flex: 1;
4150
+
4151
+ .muka-tile--image-left.muka-tile--sm .muka-tile__content,
4152
+ .muka-tile--image-right.muka-tile--sm .muka-tile__content {
4153
+ gap: var(--spacing-2);
4104
4154
  }
4105
4155
 
4106
- /* Tab List — strip container */
4107
- .muka-tabs__list {
4156
+ /* ─── Header (heading row + price) ────────────────────── */
4157
+
4158
+ .muka-tile__header {
4108
4159
  display: flex;
4109
- align-items: center;
4110
- position: relative;
4111
- z-index: 2;
4112
- border-bottom: 1px solid var(--tabs-trigger-color-default-border);
4160
+ align-items: flex-start;
4161
+ gap: var(--spacing-4);
4113
4162
  }
4114
4163
 
4115
- /* Padding: inset the tabs; the divider (border) still spans the full width */
4116
- .muka-tabs--padding-default .muka-tabs__list {
4117
- padding-inline: var(--tabs-list-padding-x);
4164
+ /* Small horizontal: row with text and action */
4165
+ .muka-tile--sm:not(.muka-tile--image-top) .muka-tile__header {
4166
+ gap: var(--spacing-2);
4167
+ align-items: center;
4168
+ padding-top: var(--spacing-1);
4118
4169
  }
4119
4170
 
4120
- /* Tab Trigger — clean underline style */
4121
- .muka-tabs__trigger {
4122
- display: inline-flex;
4123
- align-items: center;
4124
- justify-content: center;
4125
- gap: var(--spacing-1);
4126
- background: transparent;
4127
- border: none;
4128
- cursor: pointer;
4129
- user-select: none;
4130
- transition: background-color 0.2s ease, color 0.2s ease;
4131
- outline: none;
4132
- white-space: nowrap;
4133
- position: relative;
4134
- z-index: 2;
4135
- color: var(--tabs-trigger-color-default-foreground);
4171
+ /* ─── Text group ──────────────────────────────────────── */
4136
4172
 
4137
- /* Default MD size values */
4138
- min-height: var(--tabs-trigger-min-height-md);
4139
- padding: var(--spacing-3);
4140
- font-family: var(--text-label-md-regular-fontFamily);
4141
- font-weight: var(--text-label-md-regular-fontWeight);
4142
- font-size: var(--text-label-md-regular-fontSize);
4143
- line-height: var(--text-label-md-regular-lineHeight);
4173
+ .muka-tile__text {
4174
+ display: flex;
4175
+ flex-direction: column;
4176
+ flex: 1;
4177
+ min-width: 0;
4178
+ gap: var(--spacing-2);
4144
4179
  }
4145
4180
 
4146
- /* Size Variants */
4147
- .muka-tabs--size-sm .muka-tabs__trigger {
4148
- min-height: var(--tabs-trigger-min-height-sm);
4149
- padding: 0 var(--spacing-2);
4150
- font-family: var(--text-label-sm-regular-fontFamily);
4151
- font-weight: var(--text-label-sm-regular-fontWeight);
4152
- font-size: var(--text-label-sm-regular-fontSize);
4153
- line-height: var(--text-label-sm-regular-lineHeight);
4154
- }
4181
+ /* ─── Heading typography ──────────────────────────────── */
4155
4182
 
4156
- .muka-tabs--size-lg .muka-tabs__trigger {
4157
- min-height: var(--tabs-trigger-min-height-lg);
4158
- padding: var(--spacing-4);
4159
- font-family: var(--text-label-lg-regular-fontFamily);
4160
- font-weight: var(--text-label-lg-regular-fontWeight);
4161
- font-size: var(--text-label-lg-regular-fontSize);
4162
- line-height: var(--text-label-lg-regular-lineHeight);
4183
+ .muka-tile__heading {
4184
+ margin: 0;
4163
4185
  }
4164
4186
 
4165
- /* Hover state */
4166
- .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
4167
- color: var(--tabs-trigger-color-hover-foreground);
4187
+ .muka-tile--lg .muka-tile__heading {
4188
+ font-family: var(--text-label-2xl-semibold-fontFamily);
4189
+ font-weight: var(--text-label-2xl-semibold-fontWeight);
4190
+ font-size: var(--text-label-2xl-semibold-fontSize);
4191
+ line-height: var(--text-label-2xl-semibold-lineHeight);
4192
+ color: var(--color-text-default-default);
4168
4193
  }
4169
4194
 
4170
- /* Current tab */
4171
- .muka-tabs__trigger--current {
4172
- color: var(--tabs-trigger-color-current-foreground);
4195
+ .muka-tile--md .muka-tile__heading {
4196
+ font-family: var(--text-label-xl-semibold-fontFamily);
4197
+ font-weight: var(--text-label-xl-semibold-fontWeight);
4198
+ font-size: var(--text-label-xl-semibold-fontSize);
4199
+ line-height: var(--text-label-xl-semibold-lineHeight);
4200
+ color: var(--color-text-default-default);
4173
4201
  }
4174
4202
 
4175
- /* Active bottom border (underline) */
4176
- .muka-tabs__trigger--current::after {
4177
- content: '';
4178
- position: absolute;
4179
- bottom: -1px; /* Overlap the 1px border */
4180
- left: 0;
4181
- right: 0;
4182
- height: var(--tabs-indicator-height-md);
4183
- background-color: var(--tabs-indicator-color);
4184
- border-bottom-left-radius: 1px;
4185
- border-bottom-right-radius: 1px;
4186
- border-top-left-radius: 3px;
4187
- border-top-right-radius: 3px;
4188
- z-index: 3;
4203
+ .muka-tile--sm .muka-tile__heading {
4204
+ font-family: var(--text-label-lg-bold-fontFamily);
4205
+ font-weight: var(--text-label-lg-bold-fontWeight);
4206
+ font-size: var(--text-label-lg-bold-fontSize);
4207
+ line-height: var(--text-label-lg-bold-lineHeight);
4208
+ color: var(--color-text-default-default);
4189
4209
  }
4190
4210
 
4191
- .muka-tabs--size-sm .muka-tabs__trigger--current::after {
4192
- height: var(--tabs-indicator-height-sm);
4193
- }
4194
- .muka-tabs--size-lg .muka-tabs__trigger--current::after {
4195
- height: var(--tabs-indicator-height-lg);
4196
- }
4211
+ /* ─── Subheading typography ───────────────────────────── */
4197
4212
 
4198
- .muka-tabs__trigger--disabled {
4199
- color: var(--tabs-trigger-color-disabled-foreground);
4200
- cursor: not-allowed;
4213
+ .muka-tile__subheading {
4214
+ margin: 0;
4215
+ color: var(--color-text-subtle-default);
4201
4216
  }
4202
4217
 
4203
- .muka-tabs__trigger:focus-visible {
4204
- outline: 2px solid var(--color-border-focus);
4205
- outline-offset: -2px;
4218
+ .muka-tile--lg .muka-tile__subheading {
4219
+ font-family: var(--text-subheading-md-fontFamily);
4220
+ font-weight: var(--text-subheading-md-fontWeight);
4221
+ font-size: var(--text-subheading-md-fontSize);
4222
+ line-height: var(--text-subheading-md-lineHeight);
4206
4223
  }
4207
4224
 
4208
- /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
4209
- item sits 12px from the text */
4210
- .muka-tabs__label {
4211
- padding: 0 var(--spacing-2);
4225
+ .muka-tile--md .muka-tile__subheading,
4226
+ .muka-tile--sm .muka-tile__subheading {
4227
+ font-family: var(--text-subheading-sm-fontFamily);
4228
+ font-weight: var(--text-subheading-sm-fontWeight);
4229
+ font-size: var(--text-subheading-sm-fontSize);
4230
+ line-height: var(--text-subheading-sm-lineHeight);
4212
4231
  }
4213
4232
 
4214
- /* Leading item: icon, avatar, avatar group or data pie chart */
4215
- .muka-tabs__leading {
4216
- display: flex;
4217
- align-items: center;
4218
- justify-content: center;
4219
- flex-shrink: 0;
4220
- }
4221
- .muka-tabs__trigger .muka-icon {
4222
- color: inherit;
4233
+ /* ─── Description typography ──────────────────────────── */
4234
+
4235
+ .muka-tile__description {
4236
+ margin: 0;
4237
+ color: var(--color-text-default-default);
4223
4238
  }
4224
- /* Icon sizes only: avatars and pie charts are sized through their size prop */
4225
- .muka-tabs--size-sm .muka-tabs__leading > svg,
4226
- .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
4227
- .muka-tabs--size-md .muka-tabs__leading > svg,
4228
- .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
4229
- .muka-tabs--size-lg .muka-tabs__leading > svg,
4230
- .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
4231
4239
 
4232
- /* Responsive Scroll behavior on small screens */
4233
- @media (max-width: 768px) {
4234
- .muka-tabs__list {
4235
- /* Make scrollable */
4236
- overflow-x: auto;
4237
- overflow-y: hidden;
4238
- /* Force left alignment on mobile to prevent clipping when scrolling */
4239
- justify-content: flex-start !important;
4240
- max-width: 100vw;
4241
- -webkit-overflow-scrolling: touch;
4242
- /* Hide scrollbar for cleaner look */
4243
- scrollbar-width: none;
4244
- }
4245
- .muka-tabs__list::-webkit-scrollbar {
4246
- display: none;
4247
- }
4248
- /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
4249
- .muka-tabs--align-fill .muka-tabs__trigger {
4250
- flex: 0 0 auto;
4251
- }
4240
+ .muka-tile--lg .muka-tile__description {
4241
+ font-family: var(--text-body-lg-regular-fontFamily);
4242
+ font-weight: var(--text-body-lg-regular-fontWeight);
4243
+ font-size: var(--text-body-lg-regular-fontSize);
4244
+ line-height: var(--text-body-lg-regular-lineHeight);
4252
4245
  }
4253
4246
 
4254
- /* Tab Panel — content area */
4255
- .muka-tabs__panel {
4256
- background-color: var(--tabs-panel-background);
4257
- /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
4258
- border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
4259
- padding: var(--spacing-4);
4260
- position: relative;
4261
- z-index: 1;
4247
+ .muka-tile--md .muka-tile__description,
4248
+ .muka-tile--sm .muka-tile__description {
4262
4249
  font-family: var(--text-body-base-regular-fontFamily);
4263
4250
  font-weight: var(--text-body-base-regular-fontWeight);
4264
4251
  font-size: var(--text-body-base-regular-fontSize);
4265
4252
  line-height: var(--text-body-base-regular-lineHeight);
4266
4253
  }
4267
4254
 
4268
- .muka-tabs__panel:focus-visible {
4269
- outline: 2px solid var(--color-border-focus);
4270
- outline-offset: 2px;
4255
+ /* Description overflow for medium */
4256
+ .muka-tile--md .muka-tile__description {
4257
+ overflow: hidden;
4258
+ text-overflow: ellipsis;
4259
+ }
4260
+
4261
+ /* ─── Price slot ──────────────────────────────────────── */
4262
+
4263
+ .muka-tile__price {
4264
+ flex-shrink: 0;
4265
+ }
4266
+
4267
+ /* ─── Action slot ─────────────────────────────────────── */
4268
+
4269
+ .muka-tile__action {
4270
+ flex-shrink: 0;
4271
4271
  }
4272
4272
 
4273
4273