@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
@@ -1847,7 +1847,7 @@ body {
1847
1847
  --chip-trailing-ghost-foreground-pressed: #646464;
1848
1848
  --breadcrumb-gap-separator: 0.25rem;
1849
1849
  --breadcrumb-separator-color: #bbbbbb;
1850
- --breadcrumb-truncate-current-minWidth: 8rem;
1850
+ --breadcrumb-truncate-current-minWidth: 4rem;
1851
1851
  --checkbox-size-sm: 1.25rem;
1852
1852
  --checkbox-size-default: 1.5rem;
1853
1853
  --checkbox-size-lg: 2rem;
@@ -2644,98 +2644,6 @@ body {
2644
2644
  }
2645
2645
 
2646
2646
 
2647
- /* Typography */
2648
- .muka-typography-catalog {
2649
- display: flex;
2650
- flex-direction: column;
2651
- gap: 2.5rem;
2652
- max-width: 52rem;
2653
- color: var(--color-text-default-default);
2654
- }
2655
-
2656
- .muka-typography-catalog__intro {
2657
- display: flex;
2658
- flex-direction: column;
2659
- gap: 0.75rem;
2660
- }
2661
-
2662
- .muka-typography-catalog__heading {
2663
- margin: 0;
2664
- font-family: var(--text-heading-md-fontFamily);
2665
- font-weight: var(--text-heading-md-fontWeight);
2666
- font-size: var(--text-heading-md-fontSize);
2667
- line-height: var(--text-heading-md-lineHeight);
2668
- }
2669
-
2670
- .muka-typography-catalog__lede {
2671
- margin: 0;
2672
- font-family: var(--text-body-base-regular-fontFamily);
2673
- font-weight: var(--text-body-base-regular-fontWeight);
2674
- font-size: var(--text-body-base-regular-fontSize);
2675
- line-height: var(--text-body-base-regular-lineHeight);
2676
- color: var(--color-text-subtle-default);
2677
- }
2678
-
2679
- .muka-typography-catalog__lede code {
2680
- font-family: var(--alias-font-mono-family, ui-monospace, monospace);
2681
- font-size: 0.875em;
2682
- }
2683
-
2684
- .muka-typography-section {
2685
- display: flex;
2686
- flex-direction: column;
2687
- gap: 1rem;
2688
- }
2689
-
2690
- .muka-typography-section__header {
2691
- display: flex;
2692
- flex-direction: column;
2693
- gap: 0.35rem;
2694
- padding-bottom: 0.75rem;
2695
- border-bottom: 1px solid var(--color-border-default);
2696
- }
2697
-
2698
- .muka-typography-section__title {
2699
- margin: 0;
2700
- font-family: var(--text-heading-sm-fontFamily);
2701
- font-weight: var(--text-heading-sm-fontWeight);
2702
- font-size: var(--text-heading-sm-fontSize);
2703
- line-height: var(--text-heading-sm-lineHeight);
2704
- }
2705
-
2706
- .muka-typography-section__description {
2707
- margin: 0;
2708
- font-family: var(--text-body-sm-regular-fontFamily);
2709
- font-weight: var(--text-body-sm-regular-fontWeight);
2710
- font-size: var(--text-body-sm-regular-fontSize);
2711
- line-height: var(--text-body-sm-regular-lineHeight);
2712
- color: var(--color-text-subtle-default);
2713
- }
2714
-
2715
- .muka-typography-section__list {
2716
- display: flex;
2717
- flex-direction: column;
2718
- gap: 1rem;
2719
- }
2720
-
2721
- .muka-typography-specimen {
2722
- display: flex;
2723
- flex-direction: column;
2724
- gap: 0.35rem;
2725
- }
2726
-
2727
- .muka-typography-specimen__token {
2728
- font-family: var(--alias-font-mono-family, ui-monospace, monospace);
2729
- font-size: 0.75rem;
2730
- line-height: 1;
2731
- color: var(--color-text-subtle-default);
2732
- }
2733
-
2734
- .muka-typography-specimen__sample {
2735
- margin: 0;
2736
- }
2737
-
2738
-
2739
2647
  /* TypingIndicator */
2740
2648
  /* TypingIndicator Component Styles */
2741
2649
 
@@ -2958,6 +2866,98 @@ body {
2958
2866
  }
2959
2867
 
2960
2868
 
2869
+ /* Typography */
2870
+ .muka-typography-catalog {
2871
+ display: flex;
2872
+ flex-direction: column;
2873
+ gap: 2.5rem;
2874
+ max-width: 52rem;
2875
+ color: var(--color-text-default-default);
2876
+ }
2877
+
2878
+ .muka-typography-catalog__intro {
2879
+ display: flex;
2880
+ flex-direction: column;
2881
+ gap: 0.75rem;
2882
+ }
2883
+
2884
+ .muka-typography-catalog__heading {
2885
+ margin: 0;
2886
+ font-family: var(--text-heading-md-fontFamily);
2887
+ font-weight: var(--text-heading-md-fontWeight);
2888
+ font-size: var(--text-heading-md-fontSize);
2889
+ line-height: var(--text-heading-md-lineHeight);
2890
+ }
2891
+
2892
+ .muka-typography-catalog__lede {
2893
+ margin: 0;
2894
+ font-family: var(--text-body-base-regular-fontFamily);
2895
+ font-weight: var(--text-body-base-regular-fontWeight);
2896
+ font-size: var(--text-body-base-regular-fontSize);
2897
+ line-height: var(--text-body-base-regular-lineHeight);
2898
+ color: var(--color-text-subtle-default);
2899
+ }
2900
+
2901
+ .muka-typography-catalog__lede code {
2902
+ font-family: var(--alias-font-mono-family, ui-monospace, monospace);
2903
+ font-size: 0.875em;
2904
+ }
2905
+
2906
+ .muka-typography-section {
2907
+ display: flex;
2908
+ flex-direction: column;
2909
+ gap: 1rem;
2910
+ }
2911
+
2912
+ .muka-typography-section__header {
2913
+ display: flex;
2914
+ flex-direction: column;
2915
+ gap: 0.35rem;
2916
+ padding-bottom: 0.75rem;
2917
+ border-bottom: 1px solid var(--color-border-default);
2918
+ }
2919
+
2920
+ .muka-typography-section__title {
2921
+ margin: 0;
2922
+ font-family: var(--text-heading-sm-fontFamily);
2923
+ font-weight: var(--text-heading-sm-fontWeight);
2924
+ font-size: var(--text-heading-sm-fontSize);
2925
+ line-height: var(--text-heading-sm-lineHeight);
2926
+ }
2927
+
2928
+ .muka-typography-section__description {
2929
+ margin: 0;
2930
+ font-family: var(--text-body-sm-regular-fontFamily);
2931
+ font-weight: var(--text-body-sm-regular-fontWeight);
2932
+ font-size: var(--text-body-sm-regular-fontSize);
2933
+ line-height: var(--text-body-sm-regular-lineHeight);
2934
+ color: var(--color-text-subtle-default);
2935
+ }
2936
+
2937
+ .muka-typography-section__list {
2938
+ display: flex;
2939
+ flex-direction: column;
2940
+ gap: 1rem;
2941
+ }
2942
+
2943
+ .muka-typography-specimen {
2944
+ display: flex;
2945
+ flex-direction: column;
2946
+ gap: 0.35rem;
2947
+ }
2948
+
2949
+ .muka-typography-specimen__token {
2950
+ font-family: var(--alias-font-mono-family, ui-monospace, monospace);
2951
+ font-size: 0.75rem;
2952
+ line-height: 1;
2953
+ color: var(--color-text-subtle-default);
2954
+ }
2955
+
2956
+ .muka-typography-specimen__sample {
2957
+ margin: 0;
2958
+ }
2959
+
2960
+
2961
2961
  /* Tooltip */
2962
2962
  /* Tooltip Component Styles */
2963
2963
 
@@ -3184,50 +3184,213 @@ body {
3184
3184
  }
3185
3185
 
3186
3186
 
3187
- /* Tile */
3188
- /* Tile Component Styles - Using Muka Design Tokens */
3189
-
3190
- /* ─── Base ────────────────────────────────────────────── */
3187
+ /* Toggle */
3188
+ /* Toggle Component Styles - Using Muka Design Tokens */
3191
3189
 
3192
- .muka-tile {
3190
+ /* Wrapper container */
3191
+ .muka-toggle {
3193
3192
  display: flex;
3194
- color: var(--color-text-default-default);
3193
+ align-items: center;
3194
+ gap: var(--spacing-2);
3195
+ position: relative;
3196
+ padding: var(--spacing-4) 0;
3195
3197
  }
3196
3198
 
3197
- .muka-tile--interactive {
3198
- cursor: pointer;
3199
- user-select: none;
3199
+ .muka-toggle--with-caption {
3200
+ padding: var(--spacing-5) 0;
3200
3201
  }
3201
3202
 
3202
- .muka-tile--interactive:focus-visible {
3203
- outline: 2px solid var(--color-border-focus);
3204
- outline-offset: 2px;
3205
- border-radius: var(--border-radius-lg);
3203
+ .muka-toggle--disabled {
3204
+ opacity: 0.6;
3206
3205
  }
3207
3206
 
3208
- /* ─── Image position variants ─────────────────────────── */
3209
-
3210
- .muka-tile--image-top {
3211
- flex-direction: column;
3207
+ /* Icon */
3208
+ .muka-toggle__icon {
3209
+ display: flex;
3210
+ align-items: center;
3211
+ justify-content: center;
3212
+ flex-shrink: 0;
3213
+ width: var(--icon-size-default);
3214
+ height: var(--icon-size-default);
3215
+ color: var(--color-text-default-default);
3212
3216
  }
3213
3217
 
3214
- .muka-tile--image-left {
3215
- flex-direction: row;
3218
+ .muka-toggle__icon svg {
3219
+ width: 100%;
3220
+ height: 100%;
3216
3221
  }
3217
3222
 
3218
- .muka-tile--image-right {
3219
- flex-direction: row;
3223
+ /* Content area (label + caption) */
3224
+ .muka-toggle__content {
3225
+ display: flex;
3226
+ flex-direction: column;
3227
+ flex: 1;
3228
+ min-width: 0;
3229
+ gap: var(--spacing-1);
3220
3230
  }
3221
3231
 
3222
- /* ─── Gap by size (top) ───────────────────────────────── */
3223
-
3224
- .muka-tile--image-top.muka-tile--lg {
3225
- gap: var(--spacing-6);
3232
+ /* Label */
3233
+ .muka-toggle__label {
3234
+ font-family: var(--text-label-lg-regular-fontFamily);
3235
+ font-weight: var(--text-label-lg-regular-fontWeight);
3236
+ font-size: var(--text-label-lg-regular-fontSize);
3237
+ line-height: var(--text-label-lg-regular-lineHeight);
3238
+ color: var(--color-text-default-default);
3239
+ cursor: pointer;
3226
3240
  }
3227
3241
 
3228
- .muka-tile--image-top.muka-tile--md {
3229
- gap: var(--spacing-6);
3230
- width: 320px;
3242
+ .muka-toggle--with-caption .muka-toggle__label {
3243
+ font-family: var(--text-label-lg-semibold-fontFamily);
3244
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3245
+ font-size: var(--text-label-lg-semibold-fontSize);
3246
+ line-height: var(--text-label-lg-semibold-lineHeight);
3247
+ }
3248
+
3249
+ .muka-toggle--disabled .muka-toggle__label {
3250
+ color: var(--color-text-subtle-default);
3251
+ cursor: not-allowed;
3252
+ }
3253
+
3254
+ /* Caption */
3255
+ .muka-toggle__caption {
3256
+ font-family: var(--text-body-base-regular-fontFamily);
3257
+ font-weight: var(--text-body-base-regular-fontWeight);
3258
+ font-size: var(--text-body-base-regular-fontSize);
3259
+ line-height: var(--text-body-base-regular-lineHeight);
3260
+ color: var(--color-text-subtle-default);
3261
+ }
3262
+
3263
+ /* Switch container */
3264
+ .muka-toggle__switch {
3265
+ position: relative;
3266
+ display: inline-flex;
3267
+ flex-shrink: 0;
3268
+ cursor: pointer;
3269
+ }
3270
+
3271
+ .muka-toggle--disabled .muka-toggle__switch {
3272
+ cursor: not-allowed;
3273
+ }
3274
+
3275
+ /* Hidden native input */
3276
+ .muka-toggle__input {
3277
+ position: absolute;
3278
+ width: 1px;
3279
+ height: 1px;
3280
+ padding: 0;
3281
+ margin: -1px;
3282
+ overflow: hidden;
3283
+ clip: rect(0, 0, 0, 0);
3284
+ white-space: nowrap;
3285
+ border: 0;
3286
+ }
3287
+
3288
+ /* Track (background pill) */
3289
+ .muka-toggle__track {
3290
+ display: flex;
3291
+ align-items: center;
3292
+ width: var(--toggle-track-width);
3293
+ height: var(--toggle-track-height);
3294
+ border-radius: var(--toggle-track-radius);
3295
+ background-color: var(--toggle-track-color-off);
3296
+ transition: background-color 0.2s ease;
3297
+ box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
3298
+ position: relative;
3299
+ }
3300
+
3301
+ /* Knob (sliding circle) */
3302
+ .muka-toggle__knob {
3303
+ position: absolute;
3304
+ width: var(--toggle-knob-size);
3305
+ height: var(--toggle-knob-size);
3306
+ border-radius: var(--border-radius-full);
3307
+ background-color: var(--toggle-knob-color-default);
3308
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
3309
+ left: var(--toggle-knob-offset);
3310
+ transition: left 0.2s ease, transform 0.2s ease;
3311
+ }
3312
+
3313
+ /* Focus state */
3314
+ .muka-toggle__input:focus-visible + .muka-toggle__track {
3315
+ outline: 2px solid var(--color-border-focus);
3316
+ outline-offset: 2px;
3317
+ }
3318
+
3319
+ /* Checked (on) state */
3320
+ .muka-toggle__input:checked + .muka-toggle__track {
3321
+ background-color: var(--toggle-track-color-on);
3322
+ }
3323
+
3324
+ .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
3325
+ left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
3326
+ }
3327
+
3328
+ /* Disabled state */
3329
+ .muka-toggle--disabled .muka-toggle__track {
3330
+ background-color: var(--toggle-track-color-disabled);
3331
+ box-shadow: none;
3332
+ }
3333
+
3334
+ .muka-toggle--disabled .muka-toggle__knob {
3335
+ background-color: var(--toggle-knob-color-disabled);
3336
+ box-shadow: none;
3337
+ }
3338
+
3339
+ /* Divider */
3340
+ .muka-toggle__divider {
3341
+ position: absolute;
3342
+ bottom: 0;
3343
+ left: 0;
3344
+ right: 0;
3345
+ height: 1px;
3346
+ background-color: var(--color-border-muted);
3347
+ }
3348
+
3349
+
3350
+ /* Tile */
3351
+ /* Tile Component Styles - Using Muka Design Tokens */
3352
+
3353
+ /* ─── Base ────────────────────────────────────────────── */
3354
+
3355
+ .muka-tile {
3356
+ display: flex;
3357
+ color: var(--color-text-default-default);
3358
+ }
3359
+
3360
+ .muka-tile--interactive {
3361
+ cursor: pointer;
3362
+ user-select: none;
3363
+ }
3364
+
3365
+ .muka-tile--interactive:focus-visible {
3366
+ outline: 2px solid var(--color-border-focus);
3367
+ outline-offset: 2px;
3368
+ border-radius: var(--border-radius-lg);
3369
+ }
3370
+
3371
+ /* ─── Image position variants ─────────────────────────── */
3372
+
3373
+ .muka-tile--image-top {
3374
+ flex-direction: column;
3375
+ }
3376
+
3377
+ .muka-tile--image-left {
3378
+ flex-direction: row;
3379
+ }
3380
+
3381
+ .muka-tile--image-right {
3382
+ flex-direction: row;
3383
+ }
3384
+
3385
+ /* ─── Gap by size (top) ───────────────────────────────── */
3386
+
3387
+ .muka-tile--image-top.muka-tile--lg {
3388
+ gap: var(--spacing-6);
3389
+ }
3390
+
3391
+ .muka-tile--image-top.muka-tile--md {
3392
+ gap: var(--spacing-6);
3393
+ width: 320px;
3231
3394
  }
3232
3395
 
3233
3396
  .muka-tile--image-top.muka-tile--sm {
@@ -3545,191 +3708,6 @@ body {
3545
3708
  }
3546
3709
 
3547
3710
 
3548
- /* Thumbnail */
3549
- /* Thumbnail Component Styles - Using Muka Design Tokens */
3550
-
3551
- .muka-thumbnail {
3552
- position: relative;
3553
- flex-shrink: 0;
3554
- }
3555
-
3556
- /* The frame carries the border, background and shape clip. Keeping it separate
3557
- from the root lets the remove (×) button sit outside the clip (needed for the
3558
- circular/ellipse shape, whose corners would otherwise clip the button). */
3559
- .muka-thumbnail__frame {
3560
- position: absolute;
3561
- inset: 0;
3562
- overflow: hidden;
3563
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3564
- border-radius: var(--border-radius-lg);
3565
- background-color: var(--color-surface-level1);
3566
- }
3567
-
3568
- /* ─── Shapes ──────────────────────────────────────────── */
3569
- .muka-thumbnail--4-3 {
3570
- width: 160px;
3571
- height: 120px;
3572
- }
3573
-
3574
- .muka-thumbnail--1-1 {
3575
- width: 120px;
3576
- height: 120px;
3577
- }
3578
-
3579
- .muka-thumbnail--ellipse {
3580
- width: 120px;
3581
- height: 120px;
3582
- }
3583
-
3584
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3585
- .muka-thumbnail--fluid {
3586
- width: 100%;
3587
- height: auto;
3588
- aspect-ratio: 1 / 1;
3589
- }
3590
-
3591
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3592
- aspect-ratio: 4 / 3;
3593
- }
3594
-
3595
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
3596
- border-radius: var(--border-radius-full);
3597
- }
3598
-
3599
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3600
- interactive hover zoom has a clean origin. */
3601
- .muka-thumbnail__image {
3602
- position: absolute;
3603
- inset: 0;
3604
- width: 100%;
3605
- height: 100%;
3606
- object-fit: cover;
3607
- display: block;
3608
- transform-origin: center;
3609
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3610
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3611
- }
3612
-
3613
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
3614
- .muka-thumbnail__trigger {
3615
- position: absolute;
3616
- inset: 0;
3617
- padding: 0;
3618
- border: 0;
3619
- background: none;
3620
- cursor: pointer;
3621
- overflow: hidden;
3622
- }
3623
-
3624
- .muka-thumbnail__trigger:focus-visible {
3625
- outline: 2px solid var(--color-border-focus);
3626
- outline-offset: -2px;
3627
- }
3628
-
3629
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3630
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3631
- transform: scale(1.05);
3632
- }
3633
-
3634
- /* ─── Loading overlay + progress donut ────────────────── */
3635
- .muka-thumbnail__overlay {
3636
- position: absolute;
3637
- inset: 0;
3638
- display: flex;
3639
- align-items: center;
3640
- justify-content: center;
3641
- background-color: var(--dialog-color-backdrop);
3642
- }
3643
-
3644
- .muka-thumbnail__progress {
3645
- width: 40px;
3646
- height: 40px;
3647
- }
3648
-
3649
- /* ─── Error / corrupt state ───────────────────────────── */
3650
- .muka-thumbnail--error .muka-thumbnail__frame {
3651
- background-color: var(--alias-color-state-error-muted);
3652
- border-color: var(--alias-color-state-error-default);
3653
- }
3654
-
3655
- .muka-thumbnail__error {
3656
- position: absolute;
3657
- inset: 0;
3658
- display: flex;
3659
- flex-direction: column;
3660
- align-items: center;
3661
- justify-content: center;
3662
- gap: var(--spacing-2);
3663
- padding: var(--spacing-3);
3664
- text-align: center;
3665
- }
3666
-
3667
- .muka-thumbnail__error-icon {
3668
- color: var(--alert-color-error-accent);
3669
- }
3670
-
3671
- .muka-thumbnail__caption {
3672
- max-width: 100%;
3673
- overflow: hidden;
3674
- text-overflow: ellipsis;
3675
- white-space: nowrap;
3676
- color: var(--alert-color-error-accent);
3677
- font-family: var(--text-body-sm-regular-fontFamily);
3678
- font-size: var(--text-body-sm-regular-fontSize);
3679
- font-weight: var(--text-body-sm-regular-fontWeight);
3680
- line-height: var(--text-body-sm-regular-lineHeight);
3681
- }
3682
-
3683
- /* ─── Remove (×) button ───────────────────────────────── */
3684
- .muka-thumbnail__remove {
3685
- position: absolute;
3686
- top: var(--spacing-2);
3687
- right: var(--spacing-2);
3688
- display: flex;
3689
- align-items: center;
3690
- justify-content: center;
3691
- width: var(--size-2xl);
3692
- height: var(--size-2xl);
3693
- padding: 0;
3694
- color: var(--button-color-tertiary-foreground-default);
3695
- background-color: var(--button-color-tertiary-background-default);
3696
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3697
- border-radius: var(--border-radius-lg);
3698
- cursor: pointer;
3699
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3700
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
3701
- }
3702
-
3703
- .muka-thumbnail__remove:hover {
3704
- color: var(--button-color-tertiary-foreground-hover);
3705
- background-color: var(--button-color-tertiary-background-hover);
3706
- border-color: var(--button-color-tertiary-border-hover);
3707
- }
3708
-
3709
- .muka-thumbnail__remove:active {
3710
- color: var(--button-color-tertiary-foreground-pressed);
3711
- background-color: var(--button-color-tertiary-background-pressed);
3712
- border-color: var(--button-color-tertiary-border-pressed);
3713
- }
3714
-
3715
- .muka-thumbnail__remove:focus-visible {
3716
- outline: 2px solid var(--color-border-focus);
3717
- outline-offset: 2px;
3718
- }
3719
-
3720
- /* ─── Reduced motion ──────────────────────────────────── */
3721
- @media (prefers-reduced-motion: reduce) {
3722
- .muka-thumbnail__image,
3723
- .muka-thumbnail__remove {
3724
- transition: none;
3725
- }
3726
-
3727
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3728
- transform: none;
3729
- }
3730
- }
3731
-
3732
-
3733
3711
  /* Textarea */
3734
3712
  /* Textarea Component Styles - Using Muka Design Tokens */
3735
3713
 
@@ -4166,166 +4144,188 @@ body {
4166
4144
  }
4167
4145
 
4168
4146
 
4169
- /* Toggle */
4170
- /* Toggle Component Styles - Using Muka Design Tokens */
4147
+ /* Thumbnail */
4148
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
4171
4149
 
4172
- /* Wrapper container */
4173
- .muka-toggle {
4174
- display: flex;
4175
- align-items: center;
4176
- gap: var(--spacing-2);
4150
+ .muka-thumbnail {
4177
4151
  position: relative;
4178
- padding: var(--spacing-4) 0;
4152
+ flex-shrink: 0;
4153
+ }
4154
+
4155
+ /* The frame carries the border, background and shape clip. Keeping it separate
4156
+ from the root lets the remove (×) button sit outside the clip (needed for the
4157
+ circular/ellipse shape, whose corners would otherwise clip the button). */
4158
+ .muka-thumbnail__frame {
4159
+ position: absolute;
4160
+ inset: 0;
4161
+ overflow: hidden;
4162
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4163
+ border-radius: var(--border-radius-lg);
4164
+ background-color: var(--color-surface-level1);
4165
+ }
4166
+
4167
+ /* ─── Shapes ──────────────────────────────────────────── */
4168
+ .muka-thumbnail--4-3 {
4169
+ width: 160px;
4170
+ height: 120px;
4171
+ }
4172
+
4173
+ .muka-thumbnail--1-1 {
4174
+ width: 120px;
4175
+ height: 120px;
4176
+ }
4177
+
4178
+ .muka-thumbnail--ellipse {
4179
+ width: 120px;
4180
+ height: 120px;
4179
4181
  }
4180
4182
 
4181
- .muka-toggle--with-caption {
4182
- padding: var(--spacing-5) 0;
4183
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4184
+ .muka-thumbnail--fluid {
4185
+ width: 100%;
4186
+ height: auto;
4187
+ aspect-ratio: 1 / 1;
4183
4188
  }
4184
4189
 
4185
- .muka-toggle--disabled {
4186
- opacity: 0.6;
4190
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4191
+ aspect-ratio: 4 / 3;
4187
4192
  }
4188
4193
 
4189
- /* Icon */
4190
- .muka-toggle__icon {
4191
- display: flex;
4192
- align-items: center;
4193
- justify-content: center;
4194
- flex-shrink: 0;
4195
- width: var(--icon-size-default);
4196
- height: var(--icon-size-default);
4197
- color: var(--color-text-default-default);
4194
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
4195
+ border-radius: var(--border-radius-full);
4198
4196
  }
4199
4197
 
4200
- .muka-toggle__icon svg {
4198
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4199
+ interactive hover zoom has a clean origin. */
4200
+ .muka-thumbnail__image {
4201
+ position: absolute;
4202
+ inset: 0;
4201
4203
  width: 100%;
4202
4204
  height: 100%;
4205
+ object-fit: cover;
4206
+ display: block;
4207
+ transform-origin: center;
4208
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4209
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4203
4210
  }
4204
4211
 
4205
- /* Content area (label + caption) */
4206
- .muka-toggle__content {
4207
- display: flex;
4208
- flex-direction: column;
4209
- flex: 1;
4210
- min-width: 0;
4211
- gap: var(--spacing-1);
4212
- }
4213
-
4214
- /* Label */
4215
- .muka-toggle__label {
4216
- font-family: var(--text-label-lg-regular-fontFamily);
4217
- font-weight: var(--text-label-lg-regular-fontWeight);
4218
- font-size: var(--text-label-lg-regular-fontSize);
4219
- line-height: var(--text-label-lg-regular-lineHeight);
4220
- color: var(--color-text-default-default);
4212
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
4213
+ .muka-thumbnail__trigger {
4214
+ position: absolute;
4215
+ inset: 0;
4216
+ padding: 0;
4217
+ border: 0;
4218
+ background: none;
4221
4219
  cursor: pointer;
4220
+ overflow: hidden;
4222
4221
  }
4223
4222
 
4224
- .muka-toggle--with-caption .muka-toggle__label {
4225
- font-family: var(--text-label-lg-semibold-fontFamily);
4226
- font-weight: var(--text-label-lg-semibold-fontWeight);
4227
- font-size: var(--text-label-lg-semibold-fontSize);
4228
- line-height: var(--text-label-lg-semibold-lineHeight);
4223
+ .muka-thumbnail__trigger:focus-visible {
4224
+ outline: 2px solid var(--color-border-focus);
4225
+ outline-offset: -2px;
4229
4226
  }
4230
4227
 
4231
- .muka-toggle--disabled .muka-toggle__label {
4232
- color: var(--color-text-subtle-default);
4233
- cursor: not-allowed;
4228
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4229
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4230
+ transform: scale(1.05);
4234
4231
  }
4235
4232
 
4236
- /* Caption */
4237
- .muka-toggle__caption {
4238
- font-family: var(--text-body-base-regular-fontFamily);
4239
- font-weight: var(--text-body-base-regular-fontWeight);
4240
- font-size: var(--text-body-base-regular-fontSize);
4241
- line-height: var(--text-body-base-regular-lineHeight);
4242
- color: var(--color-text-subtle-default);
4233
+ /* ─── Loading overlay + progress donut ────────────────── */
4234
+ .muka-thumbnail__overlay {
4235
+ position: absolute;
4236
+ inset: 0;
4237
+ display: flex;
4238
+ align-items: center;
4239
+ justify-content: center;
4240
+ background-color: var(--dialog-color-backdrop);
4243
4241
  }
4244
4242
 
4245
- /* Switch container */
4246
- .muka-toggle__switch {
4247
- position: relative;
4248
- display: inline-flex;
4249
- flex-shrink: 0;
4250
- cursor: pointer;
4243
+ .muka-thumbnail__progress {
4244
+ width: 40px;
4245
+ height: 40px;
4251
4246
  }
4252
4247
 
4253
- .muka-toggle--disabled .muka-toggle__switch {
4254
- cursor: not-allowed;
4248
+ /* ─── Error / corrupt state ───────────────────────────── */
4249
+ .muka-thumbnail--error .muka-thumbnail__frame {
4250
+ background-color: var(--alias-color-state-error-muted);
4251
+ border-color: var(--alias-color-state-error-default);
4255
4252
  }
4256
4253
 
4257
- /* Hidden native input */
4258
- .muka-toggle__input {
4254
+ .muka-thumbnail__error {
4259
4255
  position: absolute;
4260
- width: 1px;
4261
- height: 1px;
4262
- padding: 0;
4263
- margin: -1px;
4264
- overflow: hidden;
4265
- clip: rect(0, 0, 0, 0);
4266
- white-space: nowrap;
4267
- border: 0;
4268
- }
4269
-
4270
- /* Track (background pill) */
4271
- .muka-toggle__track {
4256
+ inset: 0;
4272
4257
  display: flex;
4258
+ flex-direction: column;
4273
4259
  align-items: center;
4274
- width: var(--toggle-track-width);
4275
- height: var(--toggle-track-height);
4276
- border-radius: var(--toggle-track-radius);
4277
- background-color: var(--toggle-track-color-off);
4278
- transition: background-color 0.2s ease;
4279
- box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
4280
- position: relative;
4260
+ justify-content: center;
4261
+ gap: var(--spacing-2);
4262
+ padding: var(--spacing-3);
4263
+ text-align: center;
4281
4264
  }
4282
4265
 
4283
- /* Knob (sliding circle) */
4284
- .muka-toggle__knob {
4285
- position: absolute;
4286
- width: var(--toggle-knob-size);
4287
- height: var(--toggle-knob-size);
4288
- border-radius: var(--border-radius-full);
4289
- background-color: var(--toggle-knob-color-default);
4290
- box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
4291
- left: var(--toggle-knob-offset);
4292
- transition: left 0.2s ease, transform 0.2s ease;
4266
+ .muka-thumbnail__error-icon {
4267
+ color: var(--alert-color-error-accent);
4293
4268
  }
4294
4269
 
4295
- /* Focus state */
4296
- .muka-toggle__input:focus-visible + .muka-toggle__track {
4297
- outline: 2px solid var(--color-border-focus);
4298
- outline-offset: 2px;
4270
+ .muka-thumbnail__caption {
4271
+ max-width: 100%;
4272
+ overflow: hidden;
4273
+ text-overflow: ellipsis;
4274
+ white-space: nowrap;
4275
+ color: var(--alert-color-error-accent);
4276
+ font-family: var(--text-body-sm-regular-fontFamily);
4277
+ font-size: var(--text-body-sm-regular-fontSize);
4278
+ font-weight: var(--text-body-sm-regular-fontWeight);
4279
+ line-height: var(--text-body-sm-regular-lineHeight);
4299
4280
  }
4300
4281
 
4301
- /* Checked (on) state */
4302
- .muka-toggle__input:checked + .muka-toggle__track {
4303
- background-color: var(--toggle-track-color-on);
4282
+ /* ─── Remove (×) button ───────────────────────────────── */
4283
+ .muka-thumbnail__remove {
4284
+ position: absolute;
4285
+ top: var(--spacing-2);
4286
+ right: var(--spacing-2);
4287
+ display: flex;
4288
+ align-items: center;
4289
+ justify-content: center;
4290
+ width: var(--size-2xl);
4291
+ height: var(--size-2xl);
4292
+ padding: 0;
4293
+ color: var(--button-color-tertiary-foreground-default);
4294
+ background-color: var(--button-color-tertiary-background-default);
4295
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4296
+ border-radius: var(--border-radius-lg);
4297
+ cursor: pointer;
4298
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4299
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
4304
4300
  }
4305
4301
 
4306
- .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
4307
- left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
4302
+ .muka-thumbnail__remove:hover {
4303
+ color: var(--button-color-tertiary-foreground-hover);
4304
+ background-color: var(--button-color-tertiary-background-hover);
4305
+ border-color: var(--button-color-tertiary-border-hover);
4308
4306
  }
4309
4307
 
4310
- /* Disabled state */
4311
- .muka-toggle--disabled .muka-toggle__track {
4312
- background-color: var(--toggle-track-color-disabled);
4313
- box-shadow: none;
4308
+ .muka-thumbnail__remove:active {
4309
+ color: var(--button-color-tertiary-foreground-pressed);
4310
+ background-color: var(--button-color-tertiary-background-pressed);
4311
+ border-color: var(--button-color-tertiary-border-pressed);
4314
4312
  }
4315
4313
 
4316
- .muka-toggle--disabled .muka-toggle__knob {
4317
- background-color: var(--toggle-knob-color-disabled);
4318
- box-shadow: none;
4314
+ .muka-thumbnail__remove:focus-visible {
4315
+ outline: 2px solid var(--color-border-focus);
4316
+ outline-offset: 2px;
4319
4317
  }
4320
4318
 
4321
- /* Divider */
4322
- .muka-toggle__divider {
4323
- position: absolute;
4324
- bottom: 0;
4325
- left: 0;
4326
- right: 0;
4327
- height: 1px;
4328
- background-color: var(--color-border-muted);
4319
+ /* ─── Reduced motion ──────────────────────────────────── */
4320
+ @media (prefers-reduced-motion: reduce) {
4321
+ .muka-thumbnail__image,
4322
+ .muka-thumbnail__remove {
4323
+ transition: none;
4324
+ }
4325
+
4326
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4327
+ transform: none;
4328
+ }
4329
4329
  }
4330
4330
 
4331
4331
 
@@ -4733,81 +4733,111 @@ body {
4733
4733
  }
4734
4734
 
4735
4735
 
4736
- /* Spinner */
4737
- /* Spinner Component Styles */
4736
+ /* SwipeActions */
4737
+ /* SwipeActions Component Styles */
4738
+
4739
+ .muka-swipe-actions {
4740
+ position: relative;
4741
+ overflow: hidden;
4742
+ touch-action: pan-y;
4743
+ -webkit-user-select: none;
4744
+ user-select: none;
4745
+ background-color: var(--color-surface-level3);
4746
+ }
4747
+
4748
+ .muka-swipe-actions--disabled {
4749
+ touch-action: auto;
4750
+ }
4751
+
4752
+ /* ─── Row that holds the actual content ────────────────── */
4753
+
4754
+ .muka-swipe-actions__row {
4755
+ position: relative;
4756
+ z-index: 1;
4757
+ background-color: inherit;
4758
+ will-change: transform;
4759
+ }
4760
+
4761
+ /* ─── Action panels — sit beneath the row ──────────────── */
4762
+
4763
+ .muka-swipe-actions__panel {
4764
+ position: absolute;
4765
+ top: 0;
4766
+ bottom: 0;
4767
+ display: flex;
4768
+ align-items: stretch;
4769
+ z-index: 0;
4770
+ }
4771
+
4772
+ .muka-swipe-actions__panel--left {
4773
+ left: 0;
4774
+ }
4775
+
4776
+ .muka-swipe-actions__panel--right {
4777
+ right: 0;
4778
+ }
4779
+
4780
+ /* ─── Single action button ─────────────────────────────── */
4738
4781
 
4739
- .muka-spinner {
4740
- display: inline-flex;
4782
+ .muka-swipe-actions__button {
4783
+ display: flex;
4784
+ flex-direction: column;
4741
4785
  align-items: center;
4742
4786
  justify-content: center;
4787
+ gap: var(--spacing-1);
4788
+ border: none;
4789
+ cursor: pointer;
4790
+ padding: var(--spacing-2);
4791
+ background-color: var(--color-surface-level2);
4743
4792
  color: var(--color-text-default-default);
4744
- line-height: 0;
4793
+ font-family: var(--text-label-sm-semibold-fontFamily);
4794
+ font-weight: var(--text-label-sm-semibold-fontWeight);
4795
+ font-size: var(--text-label-sm-semibold-fontSize);
4796
+ line-height: var(--text-label-sm-semibold-lineHeight);
4797
+ -webkit-tap-highlight-color: transparent;
4798
+ transition: filter 0.12s ease;
4745
4799
  }
4746
4800
 
4747
- .muka-spinner--subtle {
4748
- color: var(--color-text-subtle-default);
4801
+ .muka-swipe-actions__button:hover {
4802
+ filter: brightness(0.95);
4749
4803
  }
4750
4804
 
4751
- .muka-spinner--inverse {
4752
- color: var(--color-text-default-inverse);
4805
+ .muka-swipe-actions__button:focus-visible {
4806
+ outline: 2px solid var(--color-action-default);
4807
+ outline-offset: -2px;
4753
4808
  }
4754
4809
 
4755
- .muka-spinner__circle {
4756
- display: inline-block;
4757
- border-radius: 50%;
4758
- border-style: solid;
4759
- border-color: currentColor;
4760
- border-right-color: transparent;
4761
- animation: muka-spinner-rotate 0.7s linear infinite;
4762
- box-sizing: border-box;
4810
+ .muka-swipe-actions__button-icon {
4811
+ display: inline-flex;
4812
+ align-items: center;
4813
+ justify-content: center;
4763
4814
  }
4764
4815
 
4765
- /* ─── Sizes ───────────────────────────────────────────── */
4766
-
4767
- .muka-spinner--sm .muka-spinner__circle {
4768
- width: 16px;
4769
- height: 16px;
4770
- border-width: 2px;
4771
- }
4816
+ /* ─── Color variants ───────────────────────────────────── */
4772
4817
 
4773
- .muka-spinner--md .muka-spinner__circle {
4774
- width: 20px;
4775
- height: 20px;
4776
- border-width: 2px;
4818
+ .muka-swipe-actions__button--neutral {
4819
+ background-color: var(--color-surface-level2);
4820
+ color: var(--color-text-default-default);
4777
4821
  }
4778
4822
 
4779
- .muka-spinner--lg .muka-spinner__circle {
4780
- width: 24px;
4781
- height: 24px;
4782
- border-width: 3px;
4823
+ .muka-swipe-actions__button--primary {
4824
+ background-color: var(--color-action-default);
4825
+ color: var(--color-text-default-inverse);
4783
4826
  }
4784
4827
 
4785
- /* ─── Visually-hidden label ───────────────────────────── */
4786
-
4787
- .muka-spinner__sr-label {
4788
- position: absolute;
4789
- width: 1px;
4790
- height: 1px;
4791
- padding: 0;
4792
- margin: -1px;
4793
- overflow: hidden;
4794
- clip: rect(0, 0, 0, 0);
4795
- white-space: nowrap;
4796
- border: 0;
4828
+ .muka-swipe-actions__button--success {
4829
+ background-color: var(--color-state-success-default);
4830
+ color: var(--color-text-default-inverse);
4797
4831
  }
4798
4832
 
4799
- /* ─── Reduced motion ──────────────────────────────────── */
4800
-
4801
- @keyframes muka-spinner-rotate {
4802
- to {
4803
- transform: rotate(360deg);
4804
- }
4833
+ .muka-swipe-actions__button--warning {
4834
+ background-color: var(--color-state-warning-default);
4835
+ color: var(--color-text-default-default);
4805
4836
  }
4806
4837
 
4807
- @media (prefers-reduced-motion: reduce) {
4808
- .muka-spinner__circle {
4809
- animation-duration: 2.5s;
4810
- }
4838
+ .muka-swipe-actions__button--destructive {
4839
+ background-color: var(--color-state-error-default);
4840
+ color: var(--color-text-default-inverse);
4811
4841
  }
4812
4842
 
4813
4843
 
@@ -12727,7 +12757,7 @@ li.muka-listitem {
12727
12757
  user-select: none;
12728
12758
  border: var(--border-width-regular) solid transparent;
12729
12759
  box-sizing: border-box;
12730
- max-width: 100%;
12760
+ flex-shrink: 0;
12731
12761
  }
12732
12762
 
12733
12763
  /*
@@ -12823,17 +12853,31 @@ li.muka-listitem {
12823
12853
  }
12824
12854
 
12825
12855
  .muka-chip__label {
12856
+ flex: 0 0 auto;
12857
+ /*
12858
+ * The chip sets a tight line-height (= font size) for compact sizing; the
12859
+ * label gets a roomier one so descenders (g, y, p) aren't clipped when it
12860
+ * truncates. Vertical centering is unaffected: the chip height is fixed and
12861
+ * content is centered via align-items: center.
12862
+ */
12863
+ line-height: normal;
12864
+ }
12865
+
12866
+ /*
12867
+ * A chip keeps its full label by default (it doesn't shrink). With `truncate`
12868
+ * it may shrink to its container, and the label ends in an ellipsis.
12869
+ */
12870
+ .muka-chip--truncate {
12871
+ flex-shrink: 1;
12872
+ min-width: 0;
12873
+ max-width: 100%;
12874
+ }
12875
+
12876
+ .muka-chip--truncate .muka-chip__label {
12826
12877
  flex: 0 1 auto;
12827
12878
  min-width: 0;
12828
12879
  overflow: hidden;
12829
12880
  text-overflow: ellipsis;
12830
- /*
12831
- * The chip sets a tight line-height (= font size) for compact sizing, but the label's
12832
- * `overflow: hidden` (needed for ellipsis) then clips glyph descenders (g, y, p). Give the
12833
- * label its own roomier line-height so descenders render; vertical centering is unaffected
12834
- * because the chip height is fixed and content is centered via align-items: center.
12835
- */
12836
- line-height: normal;
12837
12881
  }
12838
12882
 
12839
12883
  /*
@@ -12846,6 +12890,10 @@ li.muka-listitem {
12846
12890
  display: inline-flex;
12847
12891
  align-items: center;
12848
12892
  gap: var(--_chip-gap);
12893
+ }
12894
+
12895
+ .muka-chip--truncate .muka-chip__label-action,
12896
+ .muka-chip--truncate .muka-chip__label-group {
12849
12897
  min-width: 0;
12850
12898
  }
12851
12899
 
@@ -14919,8 +14967,14 @@ button.muka-chat-photo-grid__tile:focus-visible {
14919
14967
 
14920
14968
  /*
14921
14969
  * Truncate: one line. The current page shortens first, down to
14922
- * breadcrumb.truncate.current.minWidth (or the full width, if that is less);
14923
- * after that the earlier levels shorten too, each with an ellipsis.
14970
+ * breadcrumb.truncate.current.minWidth (4rem: an ellipsis and a few
14971
+ * characters, and below the width of almost any chip, so it rarely reserves
14972
+ * space a short label doesn't use); after that the earlier levels shorten too,
14973
+ * each with an ellipsis.
14974
+ *
14975
+ * Only min-width sets the floor. A width (or flex-basis) on the item would
14976
+ * also become the breadcrumb's intrinsic width, and a breadcrumb sized by its
14977
+ * content would then collapse to the floor.
14924
14978
  */
14925
14979
  .muka-breadcrumb--truncate {
14926
14980
  min-width: 0;
@@ -16804,110 +16858,80 @@ button.muka-chat-photo-grid__tile:focus-visible {
16804
16858
  }
16805
16859
 
16806
16860
 
16807
- /* SwipeActions */
16808
- /* SwipeActions Component Styles */
16809
-
16810
- .muka-swipe-actions {
16811
- position: relative;
16812
- overflow: hidden;
16813
- touch-action: pan-y;
16814
- -webkit-user-select: none;
16815
- user-select: none;
16816
- background-color: var(--color-surface-level3);
16817
- }
16818
-
16819
- .muka-swipe-actions--disabled {
16820
- touch-action: auto;
16821
- }
16822
-
16823
- /* ─── Row that holds the actual content ────────────────── */
16861
+ /* Spinner */
16862
+ /* Spinner Component Styles */
16824
16863
 
16825
- .muka-swipe-actions__row {
16826
- position: relative;
16827
- z-index: 1;
16828
- background-color: inherit;
16829
- will-change: transform;
16864
+ .muka-spinner {
16865
+ display: inline-flex;
16866
+ align-items: center;
16867
+ justify-content: center;
16868
+ color: var(--color-text-default-default);
16869
+ line-height: 0;
16830
16870
  }
16831
16871
 
16832
- /* ─── Action panels — sit beneath the row ──────────────── */
16833
-
16834
- .muka-swipe-actions__panel {
16835
- position: absolute;
16836
- top: 0;
16837
- bottom: 0;
16838
- display: flex;
16839
- align-items: stretch;
16840
- z-index: 0;
16872
+ .muka-spinner--subtle {
16873
+ color: var(--color-text-subtle-default);
16841
16874
  }
16842
16875
 
16843
- .muka-swipe-actions__panel--left {
16844
- left: 0;
16876
+ .muka-spinner--inverse {
16877
+ color: var(--color-text-default-inverse);
16845
16878
  }
16846
16879
 
16847
- .muka-swipe-actions__panel--right {
16848
- right: 0;
16880
+ .muka-spinner__circle {
16881
+ display: inline-block;
16882
+ border-radius: 50%;
16883
+ border-style: solid;
16884
+ border-color: currentColor;
16885
+ border-right-color: transparent;
16886
+ animation: muka-spinner-rotate 0.7s linear infinite;
16887
+ box-sizing: border-box;
16849
16888
  }
16850
16889
 
16851
- /* ─── Single action button ─────────────────────────────── */
16852
-
16853
- .muka-swipe-actions__button {
16854
- display: flex;
16855
- flex-direction: column;
16856
- align-items: center;
16857
- justify-content: center;
16858
- gap: var(--spacing-1);
16859
- border: none;
16860
- cursor: pointer;
16861
- padding: var(--spacing-2);
16862
- background-color: var(--color-surface-level2);
16863
- color: var(--color-text-default-default);
16864
- font-family: var(--text-label-sm-semibold-fontFamily);
16865
- font-weight: var(--text-label-sm-semibold-fontWeight);
16866
- font-size: var(--text-label-sm-semibold-fontSize);
16867
- line-height: var(--text-label-sm-semibold-lineHeight);
16868
- -webkit-tap-highlight-color: transparent;
16869
- transition: filter 0.12s ease;
16870
- }
16890
+ /* ─── Sizes ───────────────────────────────────────────── */
16871
16891
 
16872
- .muka-swipe-actions__button:hover {
16873
- filter: brightness(0.95);
16892
+ .muka-spinner--sm .muka-spinner__circle {
16893
+ width: 16px;
16894
+ height: 16px;
16895
+ border-width: 2px;
16874
16896
  }
16875
16897
 
16876
- .muka-swipe-actions__button:focus-visible {
16877
- outline: 2px solid var(--color-action-default);
16878
- outline-offset: -2px;
16898
+ .muka-spinner--md .muka-spinner__circle {
16899
+ width: 20px;
16900
+ height: 20px;
16901
+ border-width: 2px;
16879
16902
  }
16880
16903
 
16881
- .muka-swipe-actions__button-icon {
16882
- display: inline-flex;
16883
- align-items: center;
16884
- justify-content: center;
16904
+ .muka-spinner--lg .muka-spinner__circle {
16905
+ width: 24px;
16906
+ height: 24px;
16907
+ border-width: 3px;
16885
16908
  }
16886
16909
 
16887
- /* ─── Color variants ───────────────────────────────────── */
16888
-
16889
- .muka-swipe-actions__button--neutral {
16890
- background-color: var(--color-surface-level2);
16891
- color: var(--color-text-default-default);
16892
- }
16910
+ /* ─── Visually-hidden label ───────────────────────────── */
16893
16911
 
16894
- .muka-swipe-actions__button--primary {
16895
- background-color: var(--color-action-default);
16896
- color: var(--color-text-default-inverse);
16912
+ .muka-spinner__sr-label {
16913
+ position: absolute;
16914
+ width: 1px;
16915
+ height: 1px;
16916
+ padding: 0;
16917
+ margin: -1px;
16918
+ overflow: hidden;
16919
+ clip: rect(0, 0, 0, 0);
16920
+ white-space: nowrap;
16921
+ border: 0;
16897
16922
  }
16898
16923
 
16899
- .muka-swipe-actions__button--success {
16900
- background-color: var(--color-state-success-default);
16901
- color: var(--color-text-default-inverse);
16902
- }
16924
+ /* ─── Reduced motion ──────────────────────────────────── */
16903
16925
 
16904
- .muka-swipe-actions__button--warning {
16905
- background-color: var(--color-state-warning-default);
16906
- color: var(--color-text-default-default);
16926
+ @keyframes muka-spinner-rotate {
16927
+ to {
16928
+ transform: rotate(360deg);
16929
+ }
16907
16930
  }
16908
16931
 
16909
- .muka-swipe-actions__button--destructive {
16910
- background-color: var(--color-state-error-default);
16911
- color: var(--color-text-default-inverse);
16932
+ @media (prefers-reduced-motion: reduce) {
16933
+ .muka-spinner__circle {
16934
+ animation-duration: 2.5s;
16935
+ }
16912
16936
  }
16913
16937