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