@revikornmann/muka-ui 0.44.0 → 0.45.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/dist/cjs/components/Breadcrumb/Breadcrumb.css +8 -2
  2. package/dist/cjs/components/Breadcrumb/Breadcrumb.js +1 -0
  3. package/dist/cjs/components/Breadcrumb/Breadcrumb.js.map +1 -1
  4. package/dist/cjs/components/Chip/Chip.css +26 -8
  5. package/dist/cjs/components/Chip/Chip.js +2 -1
  6. package/dist/cjs/components/Chip/Chip.js.map +1 -1
  7. package/dist/esm/components/Breadcrumb/Breadcrumb.css +8 -2
  8. package/dist/esm/components/Breadcrumb/Breadcrumb.js +1 -0
  9. package/dist/esm/components/Breadcrumb/Breadcrumb.js.map +1 -1
  10. package/dist/esm/components/Chip/Chip.css +26 -8
  11. package/dist/esm/components/Chip/Chip.js +2 -1
  12. package/dist/esm/components/Chip/Chip.js.map +1 -1
  13. package/dist/styles/components/Breadcrumb.css +8 -2
  14. package/dist/styles/components/Chip.css +26 -8
  15. package/dist/styles/index.css +593 -569
  16. package/dist/styles/muka-dark.css +593 -569
  17. package/dist/styles/muka-light.css +593 -569
  18. package/dist/styles/tokens-bouwplan-dark.css +1 -1
  19. package/dist/styles/tokens-bouwplan-light.css +1 -1
  20. package/dist/styles/tokens-fscl-dark.css +1 -1
  21. package/dist/styles/tokens-fscl-light.css +1 -1
  22. package/dist/styles/tokens-grip-dark.css +1 -1
  23. package/dist/styles/tokens-grip-light.css +1 -1
  24. package/dist/styles/tokens-muka-dark.css +1 -1
  25. package/dist/styles/tokens-muka-light.css +1 -1
  26. package/dist/styles/tokens-wireframe-dark.css +1 -1
  27. package/dist/styles/tokens-wireframe-light.css +1 -1
  28. package/dist/styles/wireframe-dark.css +593 -569
  29. package/dist/styles/wireframe-light.css +593 -569
  30. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +3 -3
  31. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  32. package/dist/types/components/Breadcrumb/BreadcrumbContextMenu.d.ts +1 -1
  33. package/dist/types/components/Breadcrumb/BreadcrumbContextMenu.d.ts.map +1 -1
  34. package/dist/types/components/Chip/Chip.d.ts +6 -0
  35. package/dist/types/components/Chip/Chip.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/tokens/t4-components/breadcrumb.json +1 -1
@@ -1879,7 +1879,7 @@ body {
1879
1879
  --chip-trailing-ghost-foreground-pressed: #65636d;
1880
1880
  --breadcrumb-gap-separator: 0.25rem;
1881
1881
  --breadcrumb-separator-color: #d0cdd7;
1882
- --breadcrumb-truncate-current-minWidth: 8rem;
1882
+ --breadcrumb-truncate-current-minWidth: 4rem;
1883
1883
  --checkbox-size-sm: 1.25rem;
1884
1884
  --checkbox-size-default: 1.5rem;
1885
1885
  --checkbox-size-lg: 2rem;
@@ -2676,98 +2676,6 @@ body {
2676
2676
  }
2677
2677
 
2678
2678
 
2679
- /* Typography */
2680
- .muka-typography-catalog {
2681
- display: flex;
2682
- flex-direction: column;
2683
- gap: 2.5rem;
2684
- max-width: 52rem;
2685
- color: var(--color-text-default-default);
2686
- }
2687
-
2688
- .muka-typography-catalog__intro {
2689
- display: flex;
2690
- flex-direction: column;
2691
- gap: 0.75rem;
2692
- }
2693
-
2694
- .muka-typography-catalog__heading {
2695
- margin: 0;
2696
- font-family: var(--text-heading-md-fontFamily);
2697
- font-weight: var(--text-heading-md-fontWeight);
2698
- font-size: var(--text-heading-md-fontSize);
2699
- line-height: var(--text-heading-md-lineHeight);
2700
- }
2701
-
2702
- .muka-typography-catalog__lede {
2703
- margin: 0;
2704
- font-family: var(--text-body-base-regular-fontFamily);
2705
- font-weight: var(--text-body-base-regular-fontWeight);
2706
- font-size: var(--text-body-base-regular-fontSize);
2707
- line-height: var(--text-body-base-regular-lineHeight);
2708
- color: var(--color-text-subtle-default);
2709
- }
2710
-
2711
- .muka-typography-catalog__lede code {
2712
- font-family: var(--alias-font-mono-family, ui-monospace, monospace);
2713
- font-size: 0.875em;
2714
- }
2715
-
2716
- .muka-typography-section {
2717
- display: flex;
2718
- flex-direction: column;
2719
- gap: 1rem;
2720
- }
2721
-
2722
- .muka-typography-section__header {
2723
- display: flex;
2724
- flex-direction: column;
2725
- gap: 0.35rem;
2726
- padding-bottom: 0.75rem;
2727
- border-bottom: 1px solid var(--color-border-default);
2728
- }
2729
-
2730
- .muka-typography-section__title {
2731
- margin: 0;
2732
- font-family: var(--text-heading-sm-fontFamily);
2733
- font-weight: var(--text-heading-sm-fontWeight);
2734
- font-size: var(--text-heading-sm-fontSize);
2735
- line-height: var(--text-heading-sm-lineHeight);
2736
- }
2737
-
2738
- .muka-typography-section__description {
2739
- margin: 0;
2740
- font-family: var(--text-body-sm-regular-fontFamily);
2741
- font-weight: var(--text-body-sm-regular-fontWeight);
2742
- font-size: var(--text-body-sm-regular-fontSize);
2743
- line-height: var(--text-body-sm-regular-lineHeight);
2744
- color: var(--color-text-subtle-default);
2745
- }
2746
-
2747
- .muka-typography-section__list {
2748
- display: flex;
2749
- flex-direction: column;
2750
- gap: 1rem;
2751
- }
2752
-
2753
- .muka-typography-specimen {
2754
- display: flex;
2755
- flex-direction: column;
2756
- gap: 0.35rem;
2757
- }
2758
-
2759
- .muka-typography-specimen__token {
2760
- font-family: var(--alias-font-mono-family, ui-monospace, monospace);
2761
- font-size: 0.75rem;
2762
- line-height: 1;
2763
- color: var(--color-text-subtle-default);
2764
- }
2765
-
2766
- .muka-typography-specimen__sample {
2767
- margin: 0;
2768
- }
2769
-
2770
-
2771
2679
  /* TypingIndicator */
2772
2680
  /* TypingIndicator Component Styles */
2773
2681
 
@@ -2990,6 +2898,98 @@ body {
2990
2898
  }
2991
2899
 
2992
2900
 
2901
+ /* Typography */
2902
+ .muka-typography-catalog {
2903
+ display: flex;
2904
+ flex-direction: column;
2905
+ gap: 2.5rem;
2906
+ max-width: 52rem;
2907
+ color: var(--color-text-default-default);
2908
+ }
2909
+
2910
+ .muka-typography-catalog__intro {
2911
+ display: flex;
2912
+ flex-direction: column;
2913
+ gap: 0.75rem;
2914
+ }
2915
+
2916
+ .muka-typography-catalog__heading {
2917
+ margin: 0;
2918
+ font-family: var(--text-heading-md-fontFamily);
2919
+ font-weight: var(--text-heading-md-fontWeight);
2920
+ font-size: var(--text-heading-md-fontSize);
2921
+ line-height: var(--text-heading-md-lineHeight);
2922
+ }
2923
+
2924
+ .muka-typography-catalog__lede {
2925
+ margin: 0;
2926
+ font-family: var(--text-body-base-regular-fontFamily);
2927
+ font-weight: var(--text-body-base-regular-fontWeight);
2928
+ font-size: var(--text-body-base-regular-fontSize);
2929
+ line-height: var(--text-body-base-regular-lineHeight);
2930
+ color: var(--color-text-subtle-default);
2931
+ }
2932
+
2933
+ .muka-typography-catalog__lede code {
2934
+ font-family: var(--alias-font-mono-family, ui-monospace, monospace);
2935
+ font-size: 0.875em;
2936
+ }
2937
+
2938
+ .muka-typography-section {
2939
+ display: flex;
2940
+ flex-direction: column;
2941
+ gap: 1rem;
2942
+ }
2943
+
2944
+ .muka-typography-section__header {
2945
+ display: flex;
2946
+ flex-direction: column;
2947
+ gap: 0.35rem;
2948
+ padding-bottom: 0.75rem;
2949
+ border-bottom: 1px solid var(--color-border-default);
2950
+ }
2951
+
2952
+ .muka-typography-section__title {
2953
+ margin: 0;
2954
+ font-family: var(--text-heading-sm-fontFamily);
2955
+ font-weight: var(--text-heading-sm-fontWeight);
2956
+ font-size: var(--text-heading-sm-fontSize);
2957
+ line-height: var(--text-heading-sm-lineHeight);
2958
+ }
2959
+
2960
+ .muka-typography-section__description {
2961
+ margin: 0;
2962
+ font-family: var(--text-body-sm-regular-fontFamily);
2963
+ font-weight: var(--text-body-sm-regular-fontWeight);
2964
+ font-size: var(--text-body-sm-regular-fontSize);
2965
+ line-height: var(--text-body-sm-regular-lineHeight);
2966
+ color: var(--color-text-subtle-default);
2967
+ }
2968
+
2969
+ .muka-typography-section__list {
2970
+ display: flex;
2971
+ flex-direction: column;
2972
+ gap: 1rem;
2973
+ }
2974
+
2975
+ .muka-typography-specimen {
2976
+ display: flex;
2977
+ flex-direction: column;
2978
+ gap: 0.35rem;
2979
+ }
2980
+
2981
+ .muka-typography-specimen__token {
2982
+ font-family: var(--alias-font-mono-family, ui-monospace, monospace);
2983
+ font-size: 0.75rem;
2984
+ line-height: 1;
2985
+ color: var(--color-text-subtle-default);
2986
+ }
2987
+
2988
+ .muka-typography-specimen__sample {
2989
+ margin: 0;
2990
+ }
2991
+
2992
+
2993
2993
  /* Tooltip */
2994
2994
  /* Tooltip Component Styles */
2995
2995
 
@@ -3216,50 +3216,213 @@ body {
3216
3216
  }
3217
3217
 
3218
3218
 
3219
- /* Tile */
3220
- /* Tile Component Styles - Using Muka Design Tokens */
3221
-
3222
- /* ─── Base ────────────────────────────────────────────── */
3219
+ /* Toggle */
3220
+ /* Toggle Component Styles - Using Muka Design Tokens */
3223
3221
 
3224
- .muka-tile {
3222
+ /* Wrapper container */
3223
+ .muka-toggle {
3225
3224
  display: flex;
3226
- color: var(--color-text-default-default);
3225
+ align-items: center;
3226
+ gap: var(--spacing-2);
3227
+ position: relative;
3228
+ padding: var(--spacing-4) 0;
3227
3229
  }
3228
3230
 
3229
- .muka-tile--interactive {
3230
- cursor: pointer;
3231
- user-select: none;
3231
+ .muka-toggle--with-caption {
3232
+ padding: var(--spacing-5) 0;
3232
3233
  }
3233
3234
 
3234
- .muka-tile--interactive:focus-visible {
3235
- outline: 2px solid var(--color-border-focus);
3236
- outline-offset: 2px;
3237
- border-radius: var(--border-radius-lg);
3235
+ .muka-toggle--disabled {
3236
+ opacity: 0.6;
3238
3237
  }
3239
3238
 
3240
- /* ─── Image position variants ─────────────────────────── */
3241
-
3242
- .muka-tile--image-top {
3243
- flex-direction: column;
3239
+ /* Icon */
3240
+ .muka-toggle__icon {
3241
+ display: flex;
3242
+ align-items: center;
3243
+ justify-content: center;
3244
+ flex-shrink: 0;
3245
+ width: var(--icon-size-default);
3246
+ height: var(--icon-size-default);
3247
+ color: var(--color-text-default-default);
3244
3248
  }
3245
3249
 
3246
- .muka-tile--image-left {
3247
- flex-direction: row;
3250
+ .muka-toggle__icon svg {
3251
+ width: 100%;
3252
+ height: 100%;
3248
3253
  }
3249
3254
 
3250
- .muka-tile--image-right {
3251
- flex-direction: row;
3255
+ /* Content area (label + caption) */
3256
+ .muka-toggle__content {
3257
+ display: flex;
3258
+ flex-direction: column;
3259
+ flex: 1;
3260
+ min-width: 0;
3261
+ gap: var(--spacing-1);
3252
3262
  }
3253
3263
 
3254
- /* ─── Gap by size (top) ───────────────────────────────── */
3255
-
3256
- .muka-tile--image-top.muka-tile--lg {
3257
- gap: var(--spacing-6);
3264
+ /* Label */
3265
+ .muka-toggle__label {
3266
+ font-family: var(--text-label-lg-regular-fontFamily);
3267
+ font-weight: var(--text-label-lg-regular-fontWeight);
3268
+ font-size: var(--text-label-lg-regular-fontSize);
3269
+ line-height: var(--text-label-lg-regular-lineHeight);
3270
+ color: var(--color-text-default-default);
3271
+ cursor: pointer;
3258
3272
  }
3259
3273
 
3260
- .muka-tile--image-top.muka-tile--md {
3261
- gap: var(--spacing-6);
3262
- width: 320px;
3274
+ .muka-toggle--with-caption .muka-toggle__label {
3275
+ font-family: var(--text-label-lg-semibold-fontFamily);
3276
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3277
+ font-size: var(--text-label-lg-semibold-fontSize);
3278
+ line-height: var(--text-label-lg-semibold-lineHeight);
3279
+ }
3280
+
3281
+ .muka-toggle--disabled .muka-toggle__label {
3282
+ color: var(--color-text-subtle-default);
3283
+ cursor: not-allowed;
3284
+ }
3285
+
3286
+ /* Caption */
3287
+ .muka-toggle__caption {
3288
+ font-family: var(--text-body-base-regular-fontFamily);
3289
+ font-weight: var(--text-body-base-regular-fontWeight);
3290
+ font-size: var(--text-body-base-regular-fontSize);
3291
+ line-height: var(--text-body-base-regular-lineHeight);
3292
+ color: var(--color-text-subtle-default);
3293
+ }
3294
+
3295
+ /* Switch container */
3296
+ .muka-toggle__switch {
3297
+ position: relative;
3298
+ display: inline-flex;
3299
+ flex-shrink: 0;
3300
+ cursor: pointer;
3301
+ }
3302
+
3303
+ .muka-toggle--disabled .muka-toggle__switch {
3304
+ cursor: not-allowed;
3305
+ }
3306
+
3307
+ /* Hidden native input */
3308
+ .muka-toggle__input {
3309
+ position: absolute;
3310
+ width: 1px;
3311
+ height: 1px;
3312
+ padding: 0;
3313
+ margin: -1px;
3314
+ overflow: hidden;
3315
+ clip: rect(0, 0, 0, 0);
3316
+ white-space: nowrap;
3317
+ border: 0;
3318
+ }
3319
+
3320
+ /* Track (background pill) */
3321
+ .muka-toggle__track {
3322
+ display: flex;
3323
+ align-items: center;
3324
+ width: var(--toggle-track-width);
3325
+ height: var(--toggle-track-height);
3326
+ border-radius: var(--toggle-track-radius);
3327
+ background-color: var(--toggle-track-color-off);
3328
+ transition: background-color 0.2s ease;
3329
+ box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
3330
+ position: relative;
3331
+ }
3332
+
3333
+ /* Knob (sliding circle) */
3334
+ .muka-toggle__knob {
3335
+ position: absolute;
3336
+ width: var(--toggle-knob-size);
3337
+ height: var(--toggle-knob-size);
3338
+ border-radius: var(--border-radius-full);
3339
+ background-color: var(--toggle-knob-color-default);
3340
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
3341
+ left: var(--toggle-knob-offset);
3342
+ transition: left 0.2s ease, transform 0.2s ease;
3343
+ }
3344
+
3345
+ /* Focus state */
3346
+ .muka-toggle__input:focus-visible + .muka-toggle__track {
3347
+ outline: 2px solid var(--color-border-focus);
3348
+ outline-offset: 2px;
3349
+ }
3350
+
3351
+ /* Checked (on) state */
3352
+ .muka-toggle__input:checked + .muka-toggle__track {
3353
+ background-color: var(--toggle-track-color-on);
3354
+ }
3355
+
3356
+ .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
3357
+ left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
3358
+ }
3359
+
3360
+ /* Disabled state */
3361
+ .muka-toggle--disabled .muka-toggle__track {
3362
+ background-color: var(--toggle-track-color-disabled);
3363
+ box-shadow: none;
3364
+ }
3365
+
3366
+ .muka-toggle--disabled .muka-toggle__knob {
3367
+ background-color: var(--toggle-knob-color-disabled);
3368
+ box-shadow: none;
3369
+ }
3370
+
3371
+ /* Divider */
3372
+ .muka-toggle__divider {
3373
+ position: absolute;
3374
+ bottom: 0;
3375
+ left: 0;
3376
+ right: 0;
3377
+ height: 1px;
3378
+ background-color: var(--color-border-muted);
3379
+ }
3380
+
3381
+
3382
+ /* Tile */
3383
+ /* Tile Component Styles - Using Muka Design Tokens */
3384
+
3385
+ /* ─── Base ────────────────────────────────────────────── */
3386
+
3387
+ .muka-tile {
3388
+ display: flex;
3389
+ color: var(--color-text-default-default);
3390
+ }
3391
+
3392
+ .muka-tile--interactive {
3393
+ cursor: pointer;
3394
+ user-select: none;
3395
+ }
3396
+
3397
+ .muka-tile--interactive:focus-visible {
3398
+ outline: 2px solid var(--color-border-focus);
3399
+ outline-offset: 2px;
3400
+ border-radius: var(--border-radius-lg);
3401
+ }
3402
+
3403
+ /* ─── Image position variants ─────────────────────────── */
3404
+
3405
+ .muka-tile--image-top {
3406
+ flex-direction: column;
3407
+ }
3408
+
3409
+ .muka-tile--image-left {
3410
+ flex-direction: row;
3411
+ }
3412
+
3413
+ .muka-tile--image-right {
3414
+ flex-direction: row;
3415
+ }
3416
+
3417
+ /* ─── Gap by size (top) ───────────────────────────────── */
3418
+
3419
+ .muka-tile--image-top.muka-tile--lg {
3420
+ gap: var(--spacing-6);
3421
+ }
3422
+
3423
+ .muka-tile--image-top.muka-tile--md {
3424
+ gap: var(--spacing-6);
3425
+ width: 320px;
3263
3426
  }
3264
3427
 
3265
3428
  .muka-tile--image-top.muka-tile--sm {
@@ -3577,191 +3740,6 @@ body {
3577
3740
  }
3578
3741
 
3579
3742
 
3580
- /* Thumbnail */
3581
- /* Thumbnail Component Styles - Using Muka Design Tokens */
3582
-
3583
- .muka-thumbnail {
3584
- position: relative;
3585
- flex-shrink: 0;
3586
- }
3587
-
3588
- /* The frame carries the border, background and shape clip. Keeping it separate
3589
- from the root lets the remove (×) button sit outside the clip (needed for the
3590
- circular/ellipse shape, whose corners would otherwise clip the button). */
3591
- .muka-thumbnail__frame {
3592
- position: absolute;
3593
- inset: 0;
3594
- overflow: hidden;
3595
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3596
- border-radius: var(--border-radius-lg);
3597
- background-color: var(--color-surface-level1);
3598
- }
3599
-
3600
- /* ─── Shapes ──────────────────────────────────────────── */
3601
- .muka-thumbnail--4-3 {
3602
- width: 160px;
3603
- height: 120px;
3604
- }
3605
-
3606
- .muka-thumbnail--1-1 {
3607
- width: 120px;
3608
- height: 120px;
3609
- }
3610
-
3611
- .muka-thumbnail--ellipse {
3612
- width: 120px;
3613
- height: 120px;
3614
- }
3615
-
3616
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3617
- .muka-thumbnail--fluid {
3618
- width: 100%;
3619
- height: auto;
3620
- aspect-ratio: 1 / 1;
3621
- }
3622
-
3623
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3624
- aspect-ratio: 4 / 3;
3625
- }
3626
-
3627
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
3628
- border-radius: var(--border-radius-full);
3629
- }
3630
-
3631
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3632
- interactive hover zoom has a clean origin. */
3633
- .muka-thumbnail__image {
3634
- position: absolute;
3635
- inset: 0;
3636
- width: 100%;
3637
- height: 100%;
3638
- object-fit: cover;
3639
- display: block;
3640
- transform-origin: center;
3641
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3642
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3643
- }
3644
-
3645
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
3646
- .muka-thumbnail__trigger {
3647
- position: absolute;
3648
- inset: 0;
3649
- padding: 0;
3650
- border: 0;
3651
- background: none;
3652
- cursor: pointer;
3653
- overflow: hidden;
3654
- }
3655
-
3656
- .muka-thumbnail__trigger:focus-visible {
3657
- outline: 2px solid var(--color-border-focus);
3658
- outline-offset: -2px;
3659
- }
3660
-
3661
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3662
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3663
- transform: scale(1.05);
3664
- }
3665
-
3666
- /* ─── Loading overlay + progress donut ────────────────── */
3667
- .muka-thumbnail__overlay {
3668
- position: absolute;
3669
- inset: 0;
3670
- display: flex;
3671
- align-items: center;
3672
- justify-content: center;
3673
- background-color: var(--dialog-color-backdrop);
3674
- }
3675
-
3676
- .muka-thumbnail__progress {
3677
- width: 40px;
3678
- height: 40px;
3679
- }
3680
-
3681
- /* ─── Error / corrupt state ───────────────────────────── */
3682
- .muka-thumbnail--error .muka-thumbnail__frame {
3683
- background-color: var(--alias-color-state-error-muted);
3684
- border-color: var(--alias-color-state-error-default);
3685
- }
3686
-
3687
- .muka-thumbnail__error {
3688
- position: absolute;
3689
- inset: 0;
3690
- display: flex;
3691
- flex-direction: column;
3692
- align-items: center;
3693
- justify-content: center;
3694
- gap: var(--spacing-2);
3695
- padding: var(--spacing-3);
3696
- text-align: center;
3697
- }
3698
-
3699
- .muka-thumbnail__error-icon {
3700
- color: var(--alert-color-error-accent);
3701
- }
3702
-
3703
- .muka-thumbnail__caption {
3704
- max-width: 100%;
3705
- overflow: hidden;
3706
- text-overflow: ellipsis;
3707
- white-space: nowrap;
3708
- color: var(--alert-color-error-accent);
3709
- font-family: var(--text-body-sm-regular-fontFamily);
3710
- font-size: var(--text-body-sm-regular-fontSize);
3711
- font-weight: var(--text-body-sm-regular-fontWeight);
3712
- line-height: var(--text-body-sm-regular-lineHeight);
3713
- }
3714
-
3715
- /* ─── Remove (×) button ───────────────────────────────── */
3716
- .muka-thumbnail__remove {
3717
- position: absolute;
3718
- top: var(--spacing-2);
3719
- right: var(--spacing-2);
3720
- display: flex;
3721
- align-items: center;
3722
- justify-content: center;
3723
- width: var(--size-2xl);
3724
- height: var(--size-2xl);
3725
- padding: 0;
3726
- color: var(--button-color-tertiary-foreground-default);
3727
- background-color: var(--button-color-tertiary-background-default);
3728
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3729
- border-radius: var(--border-radius-lg);
3730
- cursor: pointer;
3731
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3732
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
3733
- }
3734
-
3735
- .muka-thumbnail__remove:hover {
3736
- color: var(--button-color-tertiary-foreground-hover);
3737
- background-color: var(--button-color-tertiary-background-hover);
3738
- border-color: var(--button-color-tertiary-border-hover);
3739
- }
3740
-
3741
- .muka-thumbnail__remove:active {
3742
- color: var(--button-color-tertiary-foreground-pressed);
3743
- background-color: var(--button-color-tertiary-background-pressed);
3744
- border-color: var(--button-color-tertiary-border-pressed);
3745
- }
3746
-
3747
- .muka-thumbnail__remove:focus-visible {
3748
- outline: 2px solid var(--color-border-focus);
3749
- outline-offset: 2px;
3750
- }
3751
-
3752
- /* ─── Reduced motion ──────────────────────────────────── */
3753
- @media (prefers-reduced-motion: reduce) {
3754
- .muka-thumbnail__image,
3755
- .muka-thumbnail__remove {
3756
- transition: none;
3757
- }
3758
-
3759
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3760
- transform: none;
3761
- }
3762
- }
3763
-
3764
-
3765
3743
  /* Textarea */
3766
3744
  /* Textarea Component Styles - Using Muka Design Tokens */
3767
3745
 
@@ -4198,166 +4176,188 @@ body {
4198
4176
  }
4199
4177
 
4200
4178
 
4201
- /* Toggle */
4202
- /* Toggle Component Styles - Using Muka Design Tokens */
4179
+ /* Thumbnail */
4180
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
4203
4181
 
4204
- /* Wrapper container */
4205
- .muka-toggle {
4206
- display: flex;
4207
- align-items: center;
4208
- gap: var(--spacing-2);
4182
+ .muka-thumbnail {
4209
4183
  position: relative;
4210
- padding: var(--spacing-4) 0;
4184
+ flex-shrink: 0;
4185
+ }
4186
+
4187
+ /* The frame carries the border, background and shape clip. Keeping it separate
4188
+ from the root lets the remove (×) button sit outside the clip (needed for the
4189
+ circular/ellipse shape, whose corners would otherwise clip the button). */
4190
+ .muka-thumbnail__frame {
4191
+ position: absolute;
4192
+ inset: 0;
4193
+ overflow: hidden;
4194
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4195
+ border-radius: var(--border-radius-lg);
4196
+ background-color: var(--color-surface-level1);
4197
+ }
4198
+
4199
+ /* ─── Shapes ──────────────────────────────────────────── */
4200
+ .muka-thumbnail--4-3 {
4201
+ width: 160px;
4202
+ height: 120px;
4203
+ }
4204
+
4205
+ .muka-thumbnail--1-1 {
4206
+ width: 120px;
4207
+ height: 120px;
4208
+ }
4209
+
4210
+ .muka-thumbnail--ellipse {
4211
+ width: 120px;
4212
+ height: 120px;
4211
4213
  }
4212
4214
 
4213
- .muka-toggle--with-caption {
4214
- padding: var(--spacing-5) 0;
4215
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4216
+ .muka-thumbnail--fluid {
4217
+ width: 100%;
4218
+ height: auto;
4219
+ aspect-ratio: 1 / 1;
4215
4220
  }
4216
4221
 
4217
- .muka-toggle--disabled {
4218
- opacity: 0.6;
4222
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4223
+ aspect-ratio: 4 / 3;
4219
4224
  }
4220
4225
 
4221
- /* Icon */
4222
- .muka-toggle__icon {
4223
- display: flex;
4224
- align-items: center;
4225
- justify-content: center;
4226
- flex-shrink: 0;
4227
- width: var(--icon-size-default);
4228
- height: var(--icon-size-default);
4229
- color: var(--color-text-default-default);
4226
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
4227
+ border-radius: var(--border-radius-full);
4230
4228
  }
4231
4229
 
4232
- .muka-toggle__icon svg {
4230
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4231
+ interactive hover zoom has a clean origin. */
4232
+ .muka-thumbnail__image {
4233
+ position: absolute;
4234
+ inset: 0;
4233
4235
  width: 100%;
4234
4236
  height: 100%;
4237
+ object-fit: cover;
4238
+ display: block;
4239
+ transform-origin: center;
4240
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4241
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4235
4242
  }
4236
4243
 
4237
- /* Content area (label + caption) */
4238
- .muka-toggle__content {
4239
- display: flex;
4240
- flex-direction: column;
4241
- flex: 1;
4242
- min-width: 0;
4243
- gap: var(--spacing-1);
4244
- }
4245
-
4246
- /* Label */
4247
- .muka-toggle__label {
4248
- font-family: var(--text-label-lg-regular-fontFamily);
4249
- font-weight: var(--text-label-lg-regular-fontWeight);
4250
- font-size: var(--text-label-lg-regular-fontSize);
4251
- line-height: var(--text-label-lg-regular-lineHeight);
4252
- color: var(--color-text-default-default);
4244
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
4245
+ .muka-thumbnail__trigger {
4246
+ position: absolute;
4247
+ inset: 0;
4248
+ padding: 0;
4249
+ border: 0;
4250
+ background: none;
4253
4251
  cursor: pointer;
4252
+ overflow: hidden;
4254
4253
  }
4255
4254
 
4256
- .muka-toggle--with-caption .muka-toggle__label {
4257
- font-family: var(--text-label-lg-semibold-fontFamily);
4258
- font-weight: var(--text-label-lg-semibold-fontWeight);
4259
- font-size: var(--text-label-lg-semibold-fontSize);
4260
- line-height: var(--text-label-lg-semibold-lineHeight);
4255
+ .muka-thumbnail__trigger:focus-visible {
4256
+ outline: 2px solid var(--color-border-focus);
4257
+ outline-offset: -2px;
4261
4258
  }
4262
4259
 
4263
- .muka-toggle--disabled .muka-toggle__label {
4264
- color: var(--color-text-subtle-default);
4265
- cursor: not-allowed;
4260
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4261
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4262
+ transform: scale(1.05);
4266
4263
  }
4267
4264
 
4268
- /* Caption */
4269
- .muka-toggle__caption {
4270
- font-family: var(--text-body-base-regular-fontFamily);
4271
- font-weight: var(--text-body-base-regular-fontWeight);
4272
- font-size: var(--text-body-base-regular-fontSize);
4273
- line-height: var(--text-body-base-regular-lineHeight);
4274
- color: var(--color-text-subtle-default);
4265
+ /* ─── Loading overlay + progress donut ────────────────── */
4266
+ .muka-thumbnail__overlay {
4267
+ position: absolute;
4268
+ inset: 0;
4269
+ display: flex;
4270
+ align-items: center;
4271
+ justify-content: center;
4272
+ background-color: var(--dialog-color-backdrop);
4275
4273
  }
4276
4274
 
4277
- /* Switch container */
4278
- .muka-toggle__switch {
4279
- position: relative;
4280
- display: inline-flex;
4281
- flex-shrink: 0;
4282
- cursor: pointer;
4275
+ .muka-thumbnail__progress {
4276
+ width: 40px;
4277
+ height: 40px;
4283
4278
  }
4284
4279
 
4285
- .muka-toggle--disabled .muka-toggle__switch {
4286
- cursor: not-allowed;
4280
+ /* ─── Error / corrupt state ───────────────────────────── */
4281
+ .muka-thumbnail--error .muka-thumbnail__frame {
4282
+ background-color: var(--alias-color-state-error-muted);
4283
+ border-color: var(--alias-color-state-error-default);
4287
4284
  }
4288
4285
 
4289
- /* Hidden native input */
4290
- .muka-toggle__input {
4286
+ .muka-thumbnail__error {
4291
4287
  position: absolute;
4292
- width: 1px;
4293
- height: 1px;
4294
- padding: 0;
4295
- margin: -1px;
4296
- overflow: hidden;
4297
- clip: rect(0, 0, 0, 0);
4298
- white-space: nowrap;
4299
- border: 0;
4300
- }
4301
-
4302
- /* Track (background pill) */
4303
- .muka-toggle__track {
4288
+ inset: 0;
4304
4289
  display: flex;
4290
+ flex-direction: column;
4305
4291
  align-items: center;
4306
- width: var(--toggle-track-width);
4307
- height: var(--toggle-track-height);
4308
- border-radius: var(--toggle-track-radius);
4309
- background-color: var(--toggle-track-color-off);
4310
- transition: background-color 0.2s ease;
4311
- box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
4312
- position: relative;
4292
+ justify-content: center;
4293
+ gap: var(--spacing-2);
4294
+ padding: var(--spacing-3);
4295
+ text-align: center;
4313
4296
  }
4314
4297
 
4315
- /* Knob (sliding circle) */
4316
- .muka-toggle__knob {
4317
- position: absolute;
4318
- width: var(--toggle-knob-size);
4319
- height: var(--toggle-knob-size);
4320
- border-radius: var(--border-radius-full);
4321
- background-color: var(--toggle-knob-color-default);
4322
- box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
4323
- left: var(--toggle-knob-offset);
4324
- transition: left 0.2s ease, transform 0.2s ease;
4298
+ .muka-thumbnail__error-icon {
4299
+ color: var(--alert-color-error-accent);
4325
4300
  }
4326
4301
 
4327
- /* Focus state */
4328
- .muka-toggle__input:focus-visible + .muka-toggle__track {
4329
- outline: 2px solid var(--color-border-focus);
4330
- outline-offset: 2px;
4302
+ .muka-thumbnail__caption {
4303
+ max-width: 100%;
4304
+ overflow: hidden;
4305
+ text-overflow: ellipsis;
4306
+ white-space: nowrap;
4307
+ color: var(--alert-color-error-accent);
4308
+ font-family: var(--text-body-sm-regular-fontFamily);
4309
+ font-size: var(--text-body-sm-regular-fontSize);
4310
+ font-weight: var(--text-body-sm-regular-fontWeight);
4311
+ line-height: var(--text-body-sm-regular-lineHeight);
4331
4312
  }
4332
4313
 
4333
- /* Checked (on) state */
4334
- .muka-toggle__input:checked + .muka-toggle__track {
4335
- background-color: var(--toggle-track-color-on);
4314
+ /* ─── Remove (×) button ───────────────────────────────── */
4315
+ .muka-thumbnail__remove {
4316
+ position: absolute;
4317
+ top: var(--spacing-2);
4318
+ right: var(--spacing-2);
4319
+ display: flex;
4320
+ align-items: center;
4321
+ justify-content: center;
4322
+ width: var(--size-2xl);
4323
+ height: var(--size-2xl);
4324
+ padding: 0;
4325
+ color: var(--button-color-tertiary-foreground-default);
4326
+ background-color: var(--button-color-tertiary-background-default);
4327
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4328
+ border-radius: var(--border-radius-lg);
4329
+ cursor: pointer;
4330
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4331
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
4336
4332
  }
4337
4333
 
4338
- .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
4339
- left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
4334
+ .muka-thumbnail__remove:hover {
4335
+ color: var(--button-color-tertiary-foreground-hover);
4336
+ background-color: var(--button-color-tertiary-background-hover);
4337
+ border-color: var(--button-color-tertiary-border-hover);
4340
4338
  }
4341
4339
 
4342
- /* Disabled state */
4343
- .muka-toggle--disabled .muka-toggle__track {
4344
- background-color: var(--toggle-track-color-disabled);
4345
- box-shadow: none;
4340
+ .muka-thumbnail__remove:active {
4341
+ color: var(--button-color-tertiary-foreground-pressed);
4342
+ background-color: var(--button-color-tertiary-background-pressed);
4343
+ border-color: var(--button-color-tertiary-border-pressed);
4346
4344
  }
4347
4345
 
4348
- .muka-toggle--disabled .muka-toggle__knob {
4349
- background-color: var(--toggle-knob-color-disabled);
4350
- box-shadow: none;
4346
+ .muka-thumbnail__remove:focus-visible {
4347
+ outline: 2px solid var(--color-border-focus);
4348
+ outline-offset: 2px;
4351
4349
  }
4352
4350
 
4353
- /* Divider */
4354
- .muka-toggle__divider {
4355
- position: absolute;
4356
- bottom: 0;
4357
- left: 0;
4358
- right: 0;
4359
- height: 1px;
4360
- background-color: var(--color-border-muted);
4351
+ /* ─── Reduced motion ──────────────────────────────────── */
4352
+ @media (prefers-reduced-motion: reduce) {
4353
+ .muka-thumbnail__image,
4354
+ .muka-thumbnail__remove {
4355
+ transition: none;
4356
+ }
4357
+
4358
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4359
+ transform: none;
4360
+ }
4361
4361
  }
4362
4362
 
4363
4363
 
@@ -4765,81 +4765,111 @@ body {
4765
4765
  }
4766
4766
 
4767
4767
 
4768
- /* Spinner */
4769
- /* Spinner Component Styles */
4768
+ /* SwipeActions */
4769
+ /* SwipeActions Component Styles */
4770
+
4771
+ .muka-swipe-actions {
4772
+ position: relative;
4773
+ overflow: hidden;
4774
+ touch-action: pan-y;
4775
+ -webkit-user-select: none;
4776
+ user-select: none;
4777
+ background-color: var(--color-surface-level3);
4778
+ }
4779
+
4780
+ .muka-swipe-actions--disabled {
4781
+ touch-action: auto;
4782
+ }
4783
+
4784
+ /* ─── Row that holds the actual content ────────────────── */
4785
+
4786
+ .muka-swipe-actions__row {
4787
+ position: relative;
4788
+ z-index: 1;
4789
+ background-color: inherit;
4790
+ will-change: transform;
4791
+ }
4792
+
4793
+ /* ─── Action panels — sit beneath the row ──────────────── */
4794
+
4795
+ .muka-swipe-actions__panel {
4796
+ position: absolute;
4797
+ top: 0;
4798
+ bottom: 0;
4799
+ display: flex;
4800
+ align-items: stretch;
4801
+ z-index: 0;
4802
+ }
4803
+
4804
+ .muka-swipe-actions__panel--left {
4805
+ left: 0;
4806
+ }
4807
+
4808
+ .muka-swipe-actions__panel--right {
4809
+ right: 0;
4810
+ }
4811
+
4812
+ /* ─── Single action button ─────────────────────────────── */
4770
4813
 
4771
- .muka-spinner {
4772
- display: inline-flex;
4814
+ .muka-swipe-actions__button {
4815
+ display: flex;
4816
+ flex-direction: column;
4773
4817
  align-items: center;
4774
4818
  justify-content: center;
4819
+ gap: var(--spacing-1);
4820
+ border: none;
4821
+ cursor: pointer;
4822
+ padding: var(--spacing-2);
4823
+ background-color: var(--color-surface-level2);
4775
4824
  color: var(--color-text-default-default);
4776
- line-height: 0;
4825
+ font-family: var(--text-label-sm-semibold-fontFamily);
4826
+ font-weight: var(--text-label-sm-semibold-fontWeight);
4827
+ font-size: var(--text-label-sm-semibold-fontSize);
4828
+ line-height: var(--text-label-sm-semibold-lineHeight);
4829
+ -webkit-tap-highlight-color: transparent;
4830
+ transition: filter 0.12s ease;
4777
4831
  }
4778
4832
 
4779
- .muka-spinner--subtle {
4780
- color: var(--color-text-subtle-default);
4833
+ .muka-swipe-actions__button:hover {
4834
+ filter: brightness(0.95);
4781
4835
  }
4782
4836
 
4783
- .muka-spinner--inverse {
4784
- color: var(--color-text-default-inverse);
4837
+ .muka-swipe-actions__button:focus-visible {
4838
+ outline: 2px solid var(--color-action-default);
4839
+ outline-offset: -2px;
4785
4840
  }
4786
4841
 
4787
- .muka-spinner__circle {
4788
- display: inline-block;
4789
- border-radius: 50%;
4790
- border-style: solid;
4791
- border-color: currentColor;
4792
- border-right-color: transparent;
4793
- animation: muka-spinner-rotate 0.7s linear infinite;
4794
- box-sizing: border-box;
4842
+ .muka-swipe-actions__button-icon {
4843
+ display: inline-flex;
4844
+ align-items: center;
4845
+ justify-content: center;
4795
4846
  }
4796
4847
 
4797
- /* ─── Sizes ───────────────────────────────────────────── */
4798
-
4799
- .muka-spinner--sm .muka-spinner__circle {
4800
- width: 16px;
4801
- height: 16px;
4802
- border-width: 2px;
4803
- }
4848
+ /* ─── Color variants ───────────────────────────────────── */
4804
4849
 
4805
- .muka-spinner--md .muka-spinner__circle {
4806
- width: 20px;
4807
- height: 20px;
4808
- border-width: 2px;
4850
+ .muka-swipe-actions__button--neutral {
4851
+ background-color: var(--color-surface-level2);
4852
+ color: var(--color-text-default-default);
4809
4853
  }
4810
4854
 
4811
- .muka-spinner--lg .muka-spinner__circle {
4812
- width: 24px;
4813
- height: 24px;
4814
- border-width: 3px;
4855
+ .muka-swipe-actions__button--primary {
4856
+ background-color: var(--color-action-default);
4857
+ color: var(--color-text-default-inverse);
4815
4858
  }
4816
4859
 
4817
- /* ─── Visually-hidden label ───────────────────────────── */
4818
-
4819
- .muka-spinner__sr-label {
4820
- position: absolute;
4821
- width: 1px;
4822
- height: 1px;
4823
- padding: 0;
4824
- margin: -1px;
4825
- overflow: hidden;
4826
- clip: rect(0, 0, 0, 0);
4827
- white-space: nowrap;
4828
- border: 0;
4860
+ .muka-swipe-actions__button--success {
4861
+ background-color: var(--color-state-success-default);
4862
+ color: var(--color-text-default-inverse);
4829
4863
  }
4830
4864
 
4831
- /* ─── Reduced motion ──────────────────────────────────── */
4832
-
4833
- @keyframes muka-spinner-rotate {
4834
- to {
4835
- transform: rotate(360deg);
4836
- }
4865
+ .muka-swipe-actions__button--warning {
4866
+ background-color: var(--color-state-warning-default);
4867
+ color: var(--color-text-default-default);
4837
4868
  }
4838
4869
 
4839
- @media (prefers-reduced-motion: reduce) {
4840
- .muka-spinner__circle {
4841
- animation-duration: 2.5s;
4842
- }
4870
+ .muka-swipe-actions__button--destructive {
4871
+ background-color: var(--color-state-error-default);
4872
+ color: var(--color-text-default-inverse);
4843
4873
  }
4844
4874
 
4845
4875
 
@@ -12759,7 +12789,7 @@ li.muka-listitem {
12759
12789
  user-select: none;
12760
12790
  border: var(--border-width-regular) solid transparent;
12761
12791
  box-sizing: border-box;
12762
- max-width: 100%;
12792
+ flex-shrink: 0;
12763
12793
  }
12764
12794
 
12765
12795
  /*
@@ -12855,17 +12885,31 @@ li.muka-listitem {
12855
12885
  }
12856
12886
 
12857
12887
  .muka-chip__label {
12888
+ flex: 0 0 auto;
12889
+ /*
12890
+ * The chip sets a tight line-height (= font size) for compact sizing; the
12891
+ * label gets a roomier one so descenders (g, y, p) aren't clipped when it
12892
+ * truncates. Vertical centering is unaffected: the chip height is fixed and
12893
+ * content is centered via align-items: center.
12894
+ */
12895
+ line-height: normal;
12896
+ }
12897
+
12898
+ /*
12899
+ * A chip keeps its full label by default (it doesn't shrink). With `truncate`
12900
+ * it may shrink to its container, and the label ends in an ellipsis.
12901
+ */
12902
+ .muka-chip--truncate {
12903
+ flex-shrink: 1;
12904
+ min-width: 0;
12905
+ max-width: 100%;
12906
+ }
12907
+
12908
+ .muka-chip--truncate .muka-chip__label {
12858
12909
  flex: 0 1 auto;
12859
12910
  min-width: 0;
12860
12911
  overflow: hidden;
12861
12912
  text-overflow: ellipsis;
12862
- /*
12863
- * The chip sets a tight line-height (= font size) for compact sizing, but the label's
12864
- * `overflow: hidden` (needed for ellipsis) then clips glyph descenders (g, y, p). Give the
12865
- * label its own roomier line-height so descenders render; vertical centering is unaffected
12866
- * because the chip height is fixed and content is centered via align-items: center.
12867
- */
12868
- line-height: normal;
12869
12913
  }
12870
12914
 
12871
12915
  /*
@@ -12878,6 +12922,10 @@ li.muka-listitem {
12878
12922
  display: inline-flex;
12879
12923
  align-items: center;
12880
12924
  gap: var(--_chip-gap);
12925
+ }
12926
+
12927
+ .muka-chip--truncate .muka-chip__label-action,
12928
+ .muka-chip--truncate .muka-chip__label-group {
12881
12929
  min-width: 0;
12882
12930
  }
12883
12931
 
@@ -14951,8 +14999,14 @@ button.muka-chat-photo-grid__tile:focus-visible {
14951
14999
 
14952
15000
  /*
14953
15001
  * Truncate: one line. The current page shortens first, down to
14954
- * breadcrumb.truncate.current.minWidth (or the full width, if that is less);
14955
- * after that the earlier levels shorten too, each with an ellipsis.
15002
+ * breadcrumb.truncate.current.minWidth (4rem: an ellipsis and a few
15003
+ * characters, and below the width of almost any chip, so it rarely reserves
15004
+ * space a short label doesn't use); after that the earlier levels shorten too,
15005
+ * each with an ellipsis.
15006
+ *
15007
+ * Only min-width sets the floor. A width (or flex-basis) on the item would
15008
+ * also become the breadcrumb's intrinsic width, and a breadcrumb sized by its
15009
+ * content would then collapse to the floor.
14956
15010
  */
14957
15011
  .muka-breadcrumb--truncate {
14958
15012
  min-width: 0;
@@ -16836,110 +16890,80 @@ button.muka-chat-photo-grid__tile:focus-visible {
16836
16890
  }
16837
16891
 
16838
16892
 
16839
- /* SwipeActions */
16840
- /* SwipeActions Component Styles */
16841
-
16842
- .muka-swipe-actions {
16843
- position: relative;
16844
- overflow: hidden;
16845
- touch-action: pan-y;
16846
- -webkit-user-select: none;
16847
- user-select: none;
16848
- background-color: var(--color-surface-level3);
16849
- }
16850
-
16851
- .muka-swipe-actions--disabled {
16852
- touch-action: auto;
16853
- }
16854
-
16855
- /* ─── Row that holds the actual content ────────────────── */
16893
+ /* Spinner */
16894
+ /* Spinner Component Styles */
16856
16895
 
16857
- .muka-swipe-actions__row {
16858
- position: relative;
16859
- z-index: 1;
16860
- background-color: inherit;
16861
- will-change: transform;
16896
+ .muka-spinner {
16897
+ display: inline-flex;
16898
+ align-items: center;
16899
+ justify-content: center;
16900
+ color: var(--color-text-default-default);
16901
+ line-height: 0;
16862
16902
  }
16863
16903
 
16864
- /* ─── Action panels — sit beneath the row ──────────────── */
16865
-
16866
- .muka-swipe-actions__panel {
16867
- position: absolute;
16868
- top: 0;
16869
- bottom: 0;
16870
- display: flex;
16871
- align-items: stretch;
16872
- z-index: 0;
16904
+ .muka-spinner--subtle {
16905
+ color: var(--color-text-subtle-default);
16873
16906
  }
16874
16907
 
16875
- .muka-swipe-actions__panel--left {
16876
- left: 0;
16908
+ .muka-spinner--inverse {
16909
+ color: var(--color-text-default-inverse);
16877
16910
  }
16878
16911
 
16879
- .muka-swipe-actions__panel--right {
16880
- right: 0;
16912
+ .muka-spinner__circle {
16913
+ display: inline-block;
16914
+ border-radius: 50%;
16915
+ border-style: solid;
16916
+ border-color: currentColor;
16917
+ border-right-color: transparent;
16918
+ animation: muka-spinner-rotate 0.7s linear infinite;
16919
+ box-sizing: border-box;
16881
16920
  }
16882
16921
 
16883
- /* ─── Single action button ─────────────────────────────── */
16884
-
16885
- .muka-swipe-actions__button {
16886
- display: flex;
16887
- flex-direction: column;
16888
- align-items: center;
16889
- justify-content: center;
16890
- gap: var(--spacing-1);
16891
- border: none;
16892
- cursor: pointer;
16893
- padding: var(--spacing-2);
16894
- background-color: var(--color-surface-level2);
16895
- color: var(--color-text-default-default);
16896
- font-family: var(--text-label-sm-semibold-fontFamily);
16897
- font-weight: var(--text-label-sm-semibold-fontWeight);
16898
- font-size: var(--text-label-sm-semibold-fontSize);
16899
- line-height: var(--text-label-sm-semibold-lineHeight);
16900
- -webkit-tap-highlight-color: transparent;
16901
- transition: filter 0.12s ease;
16902
- }
16922
+ /* ─── Sizes ───────────────────────────────────────────── */
16903
16923
 
16904
- .muka-swipe-actions__button:hover {
16905
- filter: brightness(0.95);
16924
+ .muka-spinner--sm .muka-spinner__circle {
16925
+ width: 16px;
16926
+ height: 16px;
16927
+ border-width: 2px;
16906
16928
  }
16907
16929
 
16908
- .muka-swipe-actions__button:focus-visible {
16909
- outline: 2px solid var(--color-action-default);
16910
- outline-offset: -2px;
16930
+ .muka-spinner--md .muka-spinner__circle {
16931
+ width: 20px;
16932
+ height: 20px;
16933
+ border-width: 2px;
16911
16934
  }
16912
16935
 
16913
- .muka-swipe-actions__button-icon {
16914
- display: inline-flex;
16915
- align-items: center;
16916
- justify-content: center;
16936
+ .muka-spinner--lg .muka-spinner__circle {
16937
+ width: 24px;
16938
+ height: 24px;
16939
+ border-width: 3px;
16917
16940
  }
16918
16941
 
16919
- /* ─── Color variants ───────────────────────────────────── */
16920
-
16921
- .muka-swipe-actions__button--neutral {
16922
- background-color: var(--color-surface-level2);
16923
- color: var(--color-text-default-default);
16924
- }
16942
+ /* ─── Visually-hidden label ───────────────────────────── */
16925
16943
 
16926
- .muka-swipe-actions__button--primary {
16927
- background-color: var(--color-action-default);
16928
- color: var(--color-text-default-inverse);
16944
+ .muka-spinner__sr-label {
16945
+ position: absolute;
16946
+ width: 1px;
16947
+ height: 1px;
16948
+ padding: 0;
16949
+ margin: -1px;
16950
+ overflow: hidden;
16951
+ clip: rect(0, 0, 0, 0);
16952
+ white-space: nowrap;
16953
+ border: 0;
16929
16954
  }
16930
16955
 
16931
- .muka-swipe-actions__button--success {
16932
- background-color: var(--color-state-success-default);
16933
- color: var(--color-text-default-inverse);
16934
- }
16956
+ /* ─── Reduced motion ──────────────────────────────────── */
16935
16957
 
16936
- .muka-swipe-actions__button--warning {
16937
- background-color: var(--color-state-warning-default);
16938
- color: var(--color-text-default-default);
16958
+ @keyframes muka-spinner-rotate {
16959
+ to {
16960
+ transform: rotate(360deg);
16961
+ }
16939
16962
  }
16940
16963
 
16941
- .muka-swipe-actions__button--destructive {
16942
- background-color: var(--color-state-error-default);
16943
- color: var(--color-text-default-inverse);
16964
+ @media (prefers-reduced-motion: reduce) {
16965
+ .muka-spinner__circle {
16966
+ animation-duration: 2.5s;
16967
+ }
16944
16968
  }
16945
16969