@revikornmann/muka-ui 0.45.2 → 0.46.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.
@@ -3773,6 +3773,191 @@ body {
3773
3773
  }
3774
3774
 
3775
3775
 
3776
+ /* Thumbnail */
3777
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
3778
+
3779
+ .muka-thumbnail {
3780
+ position: relative;
3781
+ flex-shrink: 0;
3782
+ }
3783
+
3784
+ /* The frame carries the border, background and shape clip. Keeping it separate
3785
+ from the root lets the remove (×) button sit outside the clip (needed for the
3786
+ circular/ellipse shape, whose corners would otherwise clip the button). */
3787
+ .muka-thumbnail__frame {
3788
+ position: absolute;
3789
+ inset: 0;
3790
+ overflow: hidden;
3791
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3792
+ border-radius: var(--border-radius-lg);
3793
+ background-color: var(--color-surface-level1);
3794
+ }
3795
+
3796
+ /* ─── Shapes ──────────────────────────────────────────── */
3797
+ .muka-thumbnail--4-3 {
3798
+ width: 160px;
3799
+ height: 120px;
3800
+ }
3801
+
3802
+ .muka-thumbnail--1-1 {
3803
+ width: 120px;
3804
+ height: 120px;
3805
+ }
3806
+
3807
+ .muka-thumbnail--ellipse {
3808
+ width: 120px;
3809
+ height: 120px;
3810
+ }
3811
+
3812
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3813
+ .muka-thumbnail--fluid {
3814
+ width: 100%;
3815
+ height: auto;
3816
+ aspect-ratio: 1 / 1;
3817
+ }
3818
+
3819
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3820
+ aspect-ratio: 4 / 3;
3821
+ }
3822
+
3823
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
3824
+ border-radius: var(--border-radius-full);
3825
+ }
3826
+
3827
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3828
+ interactive hover zoom has a clean origin. */
3829
+ .muka-thumbnail__image {
3830
+ position: absolute;
3831
+ inset: 0;
3832
+ width: 100%;
3833
+ height: 100%;
3834
+ object-fit: cover;
3835
+ display: block;
3836
+ transform-origin: center;
3837
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3838
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3839
+ }
3840
+
3841
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
3842
+ .muka-thumbnail__trigger {
3843
+ position: absolute;
3844
+ inset: 0;
3845
+ padding: 0;
3846
+ border: 0;
3847
+ background: none;
3848
+ cursor: pointer;
3849
+ overflow: hidden;
3850
+ }
3851
+
3852
+ .muka-thumbnail__trigger:focus-visible {
3853
+ outline: 2px solid var(--color-border-focus);
3854
+ outline-offset: -2px;
3855
+ }
3856
+
3857
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3858
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3859
+ transform: scale(1.05);
3860
+ }
3861
+
3862
+ /* ─── Loading overlay + progress donut ────────────────── */
3863
+ .muka-thumbnail__overlay {
3864
+ position: absolute;
3865
+ inset: 0;
3866
+ display: flex;
3867
+ align-items: center;
3868
+ justify-content: center;
3869
+ background-color: var(--dialog-color-backdrop);
3870
+ }
3871
+
3872
+ .muka-thumbnail__progress {
3873
+ width: 40px;
3874
+ height: 40px;
3875
+ }
3876
+
3877
+ /* ─── Error / corrupt state ───────────────────────────── */
3878
+ .muka-thumbnail--error .muka-thumbnail__frame {
3879
+ background-color: var(--alias-color-state-error-muted);
3880
+ border-color: var(--alias-color-state-error-default);
3881
+ }
3882
+
3883
+ .muka-thumbnail__error {
3884
+ position: absolute;
3885
+ inset: 0;
3886
+ display: flex;
3887
+ flex-direction: column;
3888
+ align-items: center;
3889
+ justify-content: center;
3890
+ gap: var(--spacing-2);
3891
+ padding: var(--spacing-3);
3892
+ text-align: center;
3893
+ }
3894
+
3895
+ .muka-thumbnail__error-icon {
3896
+ color: var(--alert-color-error-accent);
3897
+ }
3898
+
3899
+ .muka-thumbnail__caption {
3900
+ max-width: 100%;
3901
+ overflow: hidden;
3902
+ text-overflow: ellipsis;
3903
+ white-space: nowrap;
3904
+ color: var(--alert-color-error-accent);
3905
+ font-family: var(--text-body-sm-regular-fontFamily);
3906
+ font-size: var(--text-body-sm-regular-fontSize);
3907
+ font-weight: var(--text-body-sm-regular-fontWeight);
3908
+ line-height: var(--text-body-sm-regular-lineHeight);
3909
+ }
3910
+
3911
+ /* ─── Remove (×) button ───────────────────────────────── */
3912
+ .muka-thumbnail__remove {
3913
+ position: absolute;
3914
+ top: var(--spacing-2);
3915
+ right: var(--spacing-2);
3916
+ display: flex;
3917
+ align-items: center;
3918
+ justify-content: center;
3919
+ width: var(--size-2xl);
3920
+ height: var(--size-2xl);
3921
+ padding: 0;
3922
+ color: var(--button-color-tertiary-foreground-default);
3923
+ background-color: var(--button-color-tertiary-background-default);
3924
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3925
+ border-radius: var(--border-radius-lg);
3926
+ cursor: pointer;
3927
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3928
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
3929
+ }
3930
+
3931
+ .muka-thumbnail__remove:hover {
3932
+ color: var(--button-color-tertiary-foreground-hover);
3933
+ background-color: var(--button-color-tertiary-background-hover);
3934
+ border-color: var(--button-color-tertiary-border-hover);
3935
+ }
3936
+
3937
+ .muka-thumbnail__remove:active {
3938
+ color: var(--button-color-tertiary-foreground-pressed);
3939
+ background-color: var(--button-color-tertiary-background-pressed);
3940
+ border-color: var(--button-color-tertiary-border-pressed);
3941
+ }
3942
+
3943
+ .muka-thumbnail__remove:focus-visible {
3944
+ outline: 2px solid var(--color-border-focus);
3945
+ outline-offset: 2px;
3946
+ }
3947
+
3948
+ /* ─── Reduced motion ──────────────────────────────────── */
3949
+ @media (prefers-reduced-motion: reduce) {
3950
+ .muka-thumbnail__image,
3951
+ .muka-thumbnail__remove {
3952
+ transition: none;
3953
+ }
3954
+
3955
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3956
+ transform: none;
3957
+ }
3958
+ }
3959
+
3960
+
3776
3961
  /* Textarea */
3777
3962
  /* Textarea Component Styles - Using Muka Design Tokens */
3778
3963
 
@@ -4209,238 +4394,53 @@ body {
4209
4394
  }
4210
4395
 
4211
4396
 
4212
- /* Thumbnail */
4213
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4397
+ /* Table */
4398
+ /* Table Component Styles - Using Muka Design Tokens */
4214
4399
 
4215
- .muka-thumbnail {
4216
- position: relative;
4217
- flex-shrink: 0;
4218
- }
4400
+ /* ========================================
4401
+ TABLE WRAPPER (Responsive)
4402
+ ======================================== */
4219
4403
 
4220
- /* The frame carries the border, background and shape clip. Keeping it separate
4221
- from the root lets the remove (×) button sit outside the clip (needed for the
4222
- circular/ellipse shape, whose corners would otherwise clip the button). */
4223
- .muka-thumbnail__frame {
4224
- position: absolute;
4225
- inset: 0;
4226
- overflow: hidden;
4227
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4228
- border-radius: var(--border-radius-lg);
4229
- background-color: var(--color-surface-level1);
4404
+ .muka-table-wrapper {
4405
+ width: 100%;
4406
+ overflow-x: auto;
4407
+ -webkit-overflow-scrolling: touch;
4230
4408
  }
4231
4409
 
4232
- /* ─── Shapes ──────────────────────────────────────────── */
4233
- .muka-thumbnail--4-3 {
4234
- width: 160px;
4235
- height: 120px;
4236
- }
4410
+ /* ========================================
4411
+ TABLE BASE
4412
+ ======================================== */
4237
4413
 
4238
- .muka-thumbnail--1-1 {
4239
- width: 120px;
4240
- height: 120px;
4414
+ .muka-table {
4415
+ width: 100%;
4416
+ border-collapse: collapse;
4417
+ border-spacing: 0;
4418
+ font-family: var(--text-body-base-regular-fontFamily);
4419
+ font-size: var(--text-body-base-regular-fontSize);
4420
+ font-weight: var(--text-body-base-regular-fontWeight);
4421
+ line-height: var(--text-body-base-regular-lineHeight);
4422
+ color: var(--color-text-default-default);
4423
+ background-color: var(--color-surface-level3);
4241
4424
  }
4242
4425
 
4243
- .muka-thumbnail--ellipse {
4244
- width: 120px;
4245
- height: 120px;
4426
+ .muka-table--fixed {
4427
+ table-layout: fixed;
4246
4428
  }
4247
4429
 
4248
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4249
- .muka-thumbnail--fluid {
4250
- width: 100%;
4251
- height: auto;
4252
- aspect-ratio: 1 / 1;
4430
+ .muka-table__caption {
4431
+ padding: var(--spacing-3);
4432
+ font-weight: var(--text-label-md-semibold-fontWeight);
4433
+ text-align: left;
4434
+ color: var(--color-text-default-default);
4435
+ caption-side: top;
4253
4436
  }
4254
4437
 
4255
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4256
- aspect-ratio: 4 / 3;
4257
- }
4258
-
4259
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4260
- border-radius: var(--border-radius-full);
4261
- }
4262
-
4263
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4264
- interactive hover zoom has a clean origin. */
4265
- .muka-thumbnail__image {
4266
- position: absolute;
4267
- inset: 0;
4268
- width: 100%;
4269
- height: 100%;
4270
- object-fit: cover;
4271
- display: block;
4272
- transform-origin: center;
4273
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4274
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4275
- }
4276
-
4277
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4278
- .muka-thumbnail__trigger {
4279
- position: absolute;
4280
- inset: 0;
4281
- padding: 0;
4282
- border: 0;
4283
- background: none;
4284
- cursor: pointer;
4285
- overflow: hidden;
4286
- }
4287
-
4288
- .muka-thumbnail__trigger:focus-visible {
4289
- outline: 2px solid var(--color-border-focus);
4290
- outline-offset: -2px;
4291
- }
4292
-
4293
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4294
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4295
- transform: scale(1.05);
4296
- }
4297
-
4298
- /* ─── Loading overlay + progress donut ────────────────── */
4299
- .muka-thumbnail__overlay {
4300
- position: absolute;
4301
- inset: 0;
4302
- display: flex;
4303
- align-items: center;
4304
- justify-content: center;
4305
- background-color: var(--dialog-color-backdrop);
4306
- }
4307
-
4308
- .muka-thumbnail__progress {
4309
- width: 40px;
4310
- height: 40px;
4311
- }
4312
-
4313
- /* ─── Error / corrupt state ───────────────────────────── */
4314
- .muka-thumbnail--error .muka-thumbnail__frame {
4315
- background-color: var(--alias-color-state-error-muted);
4316
- border-color: var(--alias-color-state-error-default);
4317
- }
4318
-
4319
- .muka-thumbnail__error {
4320
- position: absolute;
4321
- inset: 0;
4322
- display: flex;
4323
- flex-direction: column;
4324
- align-items: center;
4325
- justify-content: center;
4326
- gap: var(--spacing-2);
4327
- padding: var(--spacing-3);
4328
- text-align: center;
4329
- }
4330
-
4331
- .muka-thumbnail__error-icon {
4332
- color: var(--alert-color-error-accent);
4333
- }
4334
-
4335
- .muka-thumbnail__caption {
4336
- max-width: 100%;
4337
- overflow: hidden;
4338
- text-overflow: ellipsis;
4339
- white-space: nowrap;
4340
- color: var(--alert-color-error-accent);
4341
- font-family: var(--text-body-sm-regular-fontFamily);
4342
- font-size: var(--text-body-sm-regular-fontSize);
4343
- font-weight: var(--text-body-sm-regular-fontWeight);
4344
- line-height: var(--text-body-sm-regular-lineHeight);
4345
- }
4346
-
4347
- /* ─── Remove (×) button ───────────────────────────────── */
4348
- .muka-thumbnail__remove {
4349
- position: absolute;
4350
- top: var(--spacing-2);
4351
- right: var(--spacing-2);
4352
- display: flex;
4353
- align-items: center;
4354
- justify-content: center;
4355
- width: var(--size-2xl);
4356
- height: var(--size-2xl);
4357
- padding: 0;
4358
- color: var(--button-color-tertiary-foreground-default);
4359
- background-color: var(--button-color-tertiary-background-default);
4360
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4361
- border-radius: var(--border-radius-lg);
4362
- cursor: pointer;
4363
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4364
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
4365
- }
4366
-
4367
- .muka-thumbnail__remove:hover {
4368
- color: var(--button-color-tertiary-foreground-hover);
4369
- background-color: var(--button-color-tertiary-background-hover);
4370
- border-color: var(--button-color-tertiary-border-hover);
4371
- }
4372
-
4373
- .muka-thumbnail__remove:active {
4374
- color: var(--button-color-tertiary-foreground-pressed);
4375
- background-color: var(--button-color-tertiary-background-pressed);
4376
- border-color: var(--button-color-tertiary-border-pressed);
4377
- }
4378
-
4379
- .muka-thumbnail__remove:focus-visible {
4380
- outline: 2px solid var(--color-border-focus);
4381
- outline-offset: 2px;
4382
- }
4383
-
4384
- /* ─── Reduced motion ──────────────────────────────────── */
4385
- @media (prefers-reduced-motion: reduce) {
4386
- .muka-thumbnail__image,
4387
- .muka-thumbnail__remove {
4388
- transition: none;
4389
- }
4390
-
4391
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4392
- transform: none;
4393
- }
4394
- }
4395
-
4396
-
4397
- /* Table */
4398
- /* Table Component Styles - Using Muka Design Tokens */
4399
-
4400
- /* ========================================
4401
- TABLE WRAPPER (Responsive)
4402
- ======================================== */
4403
-
4404
- .muka-table-wrapper {
4405
- width: 100%;
4406
- overflow-x: auto;
4407
- -webkit-overflow-scrolling: touch;
4408
- }
4409
-
4410
- /* ========================================
4411
- TABLE BASE
4412
- ======================================== */
4413
-
4414
- .muka-table {
4415
- width: 100%;
4416
- border-collapse: collapse;
4417
- border-spacing: 0;
4418
- font-family: var(--text-body-base-regular-fontFamily);
4419
- font-size: var(--text-body-base-regular-fontSize);
4420
- font-weight: var(--text-body-base-regular-fontWeight);
4421
- line-height: var(--text-body-base-regular-lineHeight);
4422
- color: var(--color-text-default-default);
4423
- background-color: var(--color-surface-level3);
4424
- }
4425
-
4426
- .muka-table--fixed {
4427
- table-layout: fixed;
4428
- }
4429
-
4430
- .muka-table__caption {
4431
- padding: var(--spacing-3);
4432
- font-weight: var(--text-label-md-semibold-fontWeight);
4433
- text-align: left;
4434
- color: var(--color-text-default-default);
4435
- caption-side: top;
4436
- }
4437
-
4438
- /* ========================================
4439
- TABLE HEAD
4440
- ======================================== */
4441
-
4442
- .muka-table__head {
4443
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
4438
+ /* ========================================
4439
+ TABLE HEAD
4440
+ ======================================== */
4441
+
4442
+ .muka-table__head {
4443
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
4444
4444
  }
4445
4445
 
4446
4446
  .muka-table__head .muka-table__row {
@@ -4798,62 +4798,170 @@ body {
4798
4798
  }
4799
4799
 
4800
4800
 
4801
- /* Spinner */
4802
- /* Spinner Component Styles */
4801
+ /* SwipeActions */
4802
+ /* SwipeActions Component Styles */
4803
4803
 
4804
- .muka-spinner {
4805
- display: inline-flex;
4806
- align-items: center;
4807
- justify-content: center;
4808
- color: var(--color-text-default-default);
4809
- line-height: 0;
4804
+ .muka-swipe-actions {
4805
+ position: relative;
4806
+ overflow: hidden;
4807
+ touch-action: pan-y;
4808
+ -webkit-user-select: none;
4809
+ user-select: none;
4810
+ background-color: var(--color-surface-level3);
4810
4811
  }
4811
4812
 
4812
- .muka-spinner--subtle {
4813
- color: var(--color-text-subtle-default);
4813
+ .muka-swipe-actions--disabled {
4814
+ touch-action: auto;
4814
4815
  }
4815
4816
 
4816
- .muka-spinner--inverse {
4817
- color: var(--color-text-default-inverse);
4818
- }
4817
+ /* ─── Row that holds the actual content ────────────────── */
4819
4818
 
4820
- .muka-spinner__circle {
4821
- display: inline-block;
4822
- border-radius: 50%;
4823
- border-style: solid;
4824
- border-color: currentColor;
4825
- border-right-color: transparent;
4826
- animation: muka-spinner-rotate 0.7s linear infinite;
4827
- box-sizing: border-box;
4819
+ .muka-swipe-actions__row {
4820
+ position: relative;
4821
+ z-index: 1;
4822
+ background-color: inherit;
4823
+ will-change: transform;
4828
4824
  }
4829
4825
 
4830
- /* ─── Sizes ───────────────────────────────────────────── */
4826
+ /* ─── Action panels — sit beneath the row ──────────────── */
4831
4827
 
4832
- .muka-spinner--sm .muka-spinner__circle {
4833
- width: 16px;
4834
- height: 16px;
4835
- border-width: 2px;
4828
+ .muka-swipe-actions__panel {
4829
+ position: absolute;
4830
+ top: 0;
4831
+ bottom: 0;
4832
+ display: flex;
4833
+ align-items: stretch;
4834
+ z-index: 0;
4836
4835
  }
4837
4836
 
4838
- .muka-spinner--md .muka-spinner__circle {
4839
- width: 20px;
4840
- height: 20px;
4841
- border-width: 2px;
4837
+ .muka-swipe-actions__panel--left {
4838
+ left: 0;
4842
4839
  }
4843
4840
 
4844
- .muka-spinner--lg .muka-spinner__circle {
4845
- width: 24px;
4846
- height: 24px;
4847
- border-width: 3px;
4841
+ .muka-swipe-actions__panel--right {
4842
+ right: 0;
4848
4843
  }
4849
4844
 
4850
- /* ─── Visually-hidden label ───────────────────────────── */
4845
+ /* ─── Single action button ─────────────────────────────── */
4851
4846
 
4852
- .muka-spinner__sr-label {
4853
- position: absolute;
4854
- width: 1px;
4855
- height: 1px;
4856
- padding: 0;
4847
+ .muka-swipe-actions__button {
4848
+ display: flex;
4849
+ flex-direction: column;
4850
+ align-items: center;
4851
+ justify-content: center;
4852
+ gap: var(--spacing-1);
4853
+ border: none;
4854
+ cursor: pointer;
4855
+ padding: var(--spacing-2);
4856
+ background-color: var(--color-surface-level2);
4857
+ color: var(--color-text-default-default);
4858
+ font-family: var(--text-label-sm-semibold-fontFamily);
4859
+ font-weight: var(--text-label-sm-semibold-fontWeight);
4860
+ font-size: var(--text-label-sm-semibold-fontSize);
4861
+ line-height: var(--text-label-sm-semibold-lineHeight);
4862
+ -webkit-tap-highlight-color: transparent;
4863
+ transition: filter 0.12s ease;
4864
+ }
4865
+
4866
+ .muka-swipe-actions__button:hover {
4867
+ filter: brightness(0.95);
4868
+ }
4869
+
4870
+ .muka-swipe-actions__button:focus-visible {
4871
+ outline: 2px solid var(--color-action-default);
4872
+ outline-offset: -2px;
4873
+ }
4874
+
4875
+ .muka-swipe-actions__button-icon {
4876
+ display: inline-flex;
4877
+ align-items: center;
4878
+ justify-content: center;
4879
+ }
4880
+
4881
+ /* ─── Color variants ───────────────────────────────────── */
4882
+
4883
+ .muka-swipe-actions__button--neutral {
4884
+ background-color: var(--color-surface-level2);
4885
+ color: var(--color-text-default-default);
4886
+ }
4887
+
4888
+ .muka-swipe-actions__button--primary {
4889
+ background-color: var(--color-action-default);
4890
+ color: var(--color-text-default-inverse);
4891
+ }
4892
+
4893
+ .muka-swipe-actions__button--success {
4894
+ background-color: var(--color-state-success-default);
4895
+ color: var(--color-text-default-inverse);
4896
+ }
4897
+
4898
+ .muka-swipe-actions__button--warning {
4899
+ background-color: var(--color-state-warning-default);
4900
+ color: var(--color-text-default-default);
4901
+ }
4902
+
4903
+ .muka-swipe-actions__button--destructive {
4904
+ background-color: var(--color-state-error-default);
4905
+ color: var(--color-text-default-inverse);
4906
+ }
4907
+
4908
+
4909
+ /* Spinner */
4910
+ /* Spinner Component Styles */
4911
+
4912
+ .muka-spinner {
4913
+ display: inline-flex;
4914
+ align-items: center;
4915
+ justify-content: center;
4916
+ color: var(--color-text-default-default);
4917
+ line-height: 0;
4918
+ }
4919
+
4920
+ .muka-spinner--subtle {
4921
+ color: var(--color-text-subtle-default);
4922
+ }
4923
+
4924
+ .muka-spinner--inverse {
4925
+ color: var(--color-text-default-inverse);
4926
+ }
4927
+
4928
+ .muka-spinner__circle {
4929
+ display: inline-block;
4930
+ border-radius: 50%;
4931
+ border-style: solid;
4932
+ border-color: currentColor;
4933
+ border-right-color: transparent;
4934
+ animation: muka-spinner-rotate 0.7s linear infinite;
4935
+ box-sizing: border-box;
4936
+ }
4937
+
4938
+ /* ─── Sizes ───────────────────────────────────────────── */
4939
+
4940
+ .muka-spinner--sm .muka-spinner__circle {
4941
+ width: 16px;
4942
+ height: 16px;
4943
+ border-width: 2px;
4944
+ }
4945
+
4946
+ .muka-spinner--md .muka-spinner__circle {
4947
+ width: 20px;
4948
+ height: 20px;
4949
+ border-width: 2px;
4950
+ }
4951
+
4952
+ .muka-spinner--lg .muka-spinner__circle {
4953
+ width: 24px;
4954
+ height: 24px;
4955
+ border-width: 3px;
4956
+ }
4957
+
4958
+ /* ─── Visually-hidden label ───────────────────────────── */
4959
+
4960
+ .muka-spinner__sr-label {
4961
+ position: absolute;
4962
+ width: 1px;
4963
+ height: 1px;
4964
+ padding: 0;
4857
4965
  margin: -1px;
4858
4966
  overflow: hidden;
4859
4967
  clip: rect(0, 0, 0, 0);
@@ -5865,6 +5973,133 @@ body {
5865
5973
  }
5866
5974
 
5867
5975
 
5976
+ /* Scrollbar */
5977
+ /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
5978
+
5979
+ .muka-scrollbar {
5980
+ display: flex;
5981
+ flex-shrink: 0;
5982
+ border-left: var(--border-width-regular) solid var(--color-border-default);
5983
+ background-color: var(--color-surface-level3);
5984
+ user-select: none;
5985
+ }
5986
+
5987
+ .muka-scrollbar--vertical {
5988
+ flex-direction: column;
5989
+ width: var(--size-2xl, 32px);
5990
+ align-self: stretch;
5991
+ }
5992
+
5993
+ .muka-scrollbar--horizontal {
5994
+ flex-direction: row;
5995
+ height: var(--size-2xl, 32px);
5996
+ width: 100%;
5997
+ border-left: none;
5998
+ border-top: var(--border-width-regular) solid var(--color-border-default);
5999
+ }
6000
+
6001
+ .muka-scrollbar__button {
6002
+ display: flex;
6003
+ align-items: center;
6004
+ justify-content: center;
6005
+ flex-shrink: 0;
6006
+ width: 100%;
6007
+ height: var(--size-2xl, 32px);
6008
+ padding: 0;
6009
+ border: none;
6010
+ background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6011
+ color: var(--color-text-default-default);
6012
+ cursor: pointer;
6013
+ }
6014
+
6015
+ .muka-scrollbar--horizontal .muka-scrollbar__button {
6016
+ width: var(--size-2xl, 32px);
6017
+ height: 100%;
6018
+ }
6019
+
6020
+ .muka-scrollbar__button:hover {
6021
+ background-color: var(--color-surface-hover);
6022
+ }
6023
+
6024
+ .muka-scrollbar__divider {
6025
+ flex-shrink: 0;
6026
+ width: 100%;
6027
+ height: 1px;
6028
+ background-color: var(--color-border-default);
6029
+ }
6030
+
6031
+ .muka-scrollbar--horizontal .muka-scrollbar__divider {
6032
+ width: 1px;
6033
+ height: 100%;
6034
+ }
6035
+
6036
+ .muka-scrollbar__track {
6037
+ position: relative;
6038
+ display: flex;
6039
+ flex-direction: column;
6040
+ flex: 1 1 auto;
6041
+ min-height: 0;
6042
+ width: 100%;
6043
+ }
6044
+
6045
+ .muka-scrollbar--horizontal .muka-scrollbar__track {
6046
+ flex-direction: row;
6047
+ min-width: 0;
6048
+ height: 100%;
6049
+ }
6050
+
6051
+ .muka-scrollbar__thumb {
6052
+ position: absolute;
6053
+ left: 0;
6054
+ top: 0;
6055
+ z-index: 1;
6056
+ display: flex;
6057
+ align-items: center;
6058
+ justify-content: center;
6059
+ width: 100%;
6060
+ /* Figma: scrollbar thumb fill = surface/level3 */
6061
+ background-color: var(--color-surface-level3);
6062
+ cursor: grab;
6063
+ touch-action: none;
6064
+ }
6065
+
6066
+ .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6067
+ left: 0;
6068
+ top: 0;
6069
+ width: auto;
6070
+ height: 100%;
6071
+ margin-left: 0;
6072
+ margin-top: 0;
6073
+ }
6074
+
6075
+ .muka-scrollbar__thumb:active {
6076
+ cursor: grabbing;
6077
+ }
6078
+
6079
+ .muka-scrollbar__grip {
6080
+ display: flex;
6081
+ flex-direction: column;
6082
+ gap: 2px;
6083
+ width: 14px;
6084
+ }
6085
+
6086
+ .muka-scrollbar__grip::before,
6087
+ .muka-scrollbar__grip::after {
6088
+ content: '';
6089
+ display: block;
6090
+ width: 100%;
6091
+ height: 2px;
6092
+ border-radius: var(--border-radius-md);
6093
+ background-color: var(--color-text-subtle-default);
6094
+ }
6095
+
6096
+ .muka-scrollbar__spacer {
6097
+ flex: 1 1 auto;
6098
+ min-height: 0;
6099
+ background-color: var(--color-surface-level2);
6100
+ }
6101
+
6102
+
5868
6103
  /* SearchInput */
5869
6104
  /* SearchInput Component Styles */
5870
6105
 
@@ -6034,137 +6269,10 @@ body {
6034
6269
  }
6035
6270
 
6036
6271
 
6037
- /* Scrollbar */
6038
- /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6272
+ /* RecordingBar */
6273
+ /* RecordingBar Component Styles */
6039
6274
 
6040
- .muka-scrollbar {
6041
- display: flex;
6042
- flex-shrink: 0;
6043
- border-left: var(--border-width-regular) solid var(--color-border-default);
6044
- background-color: var(--color-surface-level3);
6045
- user-select: none;
6046
- }
6047
-
6048
- .muka-scrollbar--vertical {
6049
- flex-direction: column;
6050
- width: var(--size-2xl, 32px);
6051
- align-self: stretch;
6052
- }
6053
-
6054
- .muka-scrollbar--horizontal {
6055
- flex-direction: row;
6056
- height: var(--size-2xl, 32px);
6057
- width: 100%;
6058
- border-left: none;
6059
- border-top: var(--border-width-regular) solid var(--color-border-default);
6060
- }
6061
-
6062
- .muka-scrollbar__button {
6063
- display: flex;
6064
- align-items: center;
6065
- justify-content: center;
6066
- flex-shrink: 0;
6067
- width: 100%;
6068
- height: var(--size-2xl, 32px);
6069
- padding: 0;
6070
- border: none;
6071
- background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6072
- color: var(--color-text-default-default);
6073
- cursor: pointer;
6074
- }
6075
-
6076
- .muka-scrollbar--horizontal .muka-scrollbar__button {
6077
- width: var(--size-2xl, 32px);
6078
- height: 100%;
6079
- }
6080
-
6081
- .muka-scrollbar__button:hover {
6082
- background-color: var(--color-surface-hover);
6083
- }
6084
-
6085
- .muka-scrollbar__divider {
6086
- flex-shrink: 0;
6087
- width: 100%;
6088
- height: 1px;
6089
- background-color: var(--color-border-default);
6090
- }
6091
-
6092
- .muka-scrollbar--horizontal .muka-scrollbar__divider {
6093
- width: 1px;
6094
- height: 100%;
6095
- }
6096
-
6097
- .muka-scrollbar__track {
6098
- position: relative;
6099
- display: flex;
6100
- flex-direction: column;
6101
- flex: 1 1 auto;
6102
- min-height: 0;
6103
- width: 100%;
6104
- }
6105
-
6106
- .muka-scrollbar--horizontal .muka-scrollbar__track {
6107
- flex-direction: row;
6108
- min-width: 0;
6109
- height: 100%;
6110
- }
6111
-
6112
- .muka-scrollbar__thumb {
6113
- position: absolute;
6114
- left: 0;
6115
- top: 0;
6116
- z-index: 1;
6117
- display: flex;
6118
- align-items: center;
6119
- justify-content: center;
6120
- width: 100%;
6121
- /* Figma: scrollbar thumb fill = surface/level3 */
6122
- background-color: var(--color-surface-level3);
6123
- cursor: grab;
6124
- touch-action: none;
6125
- }
6126
-
6127
- .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6128
- left: 0;
6129
- top: 0;
6130
- width: auto;
6131
- height: 100%;
6132
- margin-left: 0;
6133
- margin-top: 0;
6134
- }
6135
-
6136
- .muka-scrollbar__thumb:active {
6137
- cursor: grabbing;
6138
- }
6139
-
6140
- .muka-scrollbar__grip {
6141
- display: flex;
6142
- flex-direction: column;
6143
- gap: 2px;
6144
- width: 14px;
6145
- }
6146
-
6147
- .muka-scrollbar__grip::before,
6148
- .muka-scrollbar__grip::after {
6149
- content: '';
6150
- display: block;
6151
- width: 100%;
6152
- height: 2px;
6153
- border-radius: var(--border-radius-md);
6154
- background-color: var(--color-text-subtle-default);
6155
- }
6156
-
6157
- .muka-scrollbar__spacer {
6158
- flex: 1 1 auto;
6159
- min-height: 0;
6160
- background-color: var(--color-surface-level2);
6161
- }
6162
-
6163
-
6164
- /* RecordingBar */
6165
- /* RecordingBar Component Styles */
6166
-
6167
- .muka-recording-bar {
6275
+ .muka-recording-bar {
6168
6276
  display: flex;
6169
6277
  align-items: center;
6170
6278
  gap: var(--spacing-3);
@@ -14128,6 +14236,14 @@ button.muka-chat-photo-grid__tile:focus-visible {
14128
14236
  flex-shrink: 0;
14129
14237
  }
14130
14238
 
14239
+ /* Touch devices have emoji on their keyboard: no button there, unless the app
14240
+ keeps it with `emojiOnTouch`. */
14241
+ @media (pointer: coarse) {
14242
+ .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
14243
+ display: none;
14244
+ }
14245
+ }
14246
+
14131
14247
  /* ─── Recording bar ────────────────────────────────────── */
14132
14248
 
14133
14249
  .muka-chat-composer__recording {
@@ -16254,325 +16370,114 @@ button.muka-chat-photo-grid__tile:focus-visible {
16254
16370
  }
16255
16371
 
16256
16372
 
16257
- /* Alert */
16258
- /* Alert Component Styles - Using Muka Design Tokens */
16373
+ /* AgentTaskList */
16374
+ /* AgentTaskList Component Styles */
16259
16375
 
16260
- .muka-alert {
16376
+ .muka-agent-task-list {
16261
16377
  display: flex;
16262
- align-items: flex-start;
16263
- border-radius: var(--alert-radius);
16264
- border: none;
16265
- gap: var(--alert-gap);
16266
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
16378
+ flex-direction: column;
16379
+ gap: var(--spacing-2);
16380
+ width: 100%;
16381
+ padding: 0 var(--spacing-2);
16267
16382
  }
16268
16383
 
16269
- /* Size variants */
16270
- .muka-alert--sm {
16271
- padding: var(--alert-padding-sm-y) var(--alert-padding-sm-x);
16272
- }
16384
+ /* ─── Header ───────────────────────────────────────────── */
16273
16385
 
16274
- .muka-alert--md {
16275
- padding: var(--alert-padding-md-y) var(--alert-padding-md-x);
16386
+ .muka-agent-task-list__header {
16387
+ display: inline-flex;
16388
+ align-items: center;
16389
+ gap: var(--spacing-3);
16390
+ background: none;
16391
+ border: none;
16392
+ padding: 0;
16393
+ margin: 0;
16394
+ cursor: pointer;
16395
+ color: var(--color-text-subtle-default);
16396
+ font-family: var(--text-body-sm-regular-fontFamily);
16397
+ font-weight: var(--text-body-sm-regular-fontWeight);
16398
+ font-size: var(--text-body-sm-regular-fontSize);
16399
+ line-height: var(--text-body-sm-regular-lineHeight);
16400
+ text-align: left;
16401
+ -webkit-tap-highlight-color: transparent;
16276
16402
  }
16277
16403
 
16278
- .muka-alert--lg {
16279
- padding: var(--alert-padding-lg-y) var(--alert-padding-lg-x);
16404
+ .muka-agent-task-list--open .muka-agent-task-list__header {
16405
+ font-family: var(--text-body-sm-bold-fontFamily);
16406
+ font-weight: var(--text-body-sm-bold-fontWeight);
16407
+ font-size: var(--text-body-sm-bold-fontSize);
16408
+ line-height: var(--text-body-sm-bold-lineHeight);
16280
16409
  }
16281
16410
 
16282
- /* Variant: Info */
16283
- .muka-alert--info {
16284
- background-color: var(--alert-color-info-background);
16285
- color: var(--alert-color-info-foreground);
16411
+ .muka-agent-task-list__header:focus-visible {
16412
+ outline: 2px solid var(--color-action-default);
16413
+ outline-offset: 2px;
16414
+ border-radius: var(--radius-sm);
16286
16415
  }
16287
16416
 
16288
- .muka-alert--info .muka-alert__icon {
16289
- color: var(--alert-color-info-accent);
16417
+ .muka-agent-task-list__title {
16418
+ text-align: left;
16290
16419
  }
16291
16420
 
16292
- .muka-alert--info .muka-alert__title {
16293
- color: var(--alert-color-info-accent);
16421
+ .muka-agent-task-list__chevron {
16422
+ display: inline-flex;
16423
+ align-items: center;
16424
+ justify-content: center;
16425
+ transition: transform 0.16s ease;
16426
+ color: var(--color-text-subtle-default);
16294
16427
  }
16295
16428
 
16296
- .muka-alert--info .muka-alert__dismiss {
16297
- color: var(--alert-color-info-accent);
16429
+ .muka-agent-task-list__chevron[data-open='false'] {
16430
+ transform: rotate(-90deg);
16298
16431
  }
16299
16432
 
16300
- /* Variant: Success */
16301
- .muka-alert--success {
16302
- background-color: var(--alert-color-success-background);
16303
- color: var(--alert-color-success-foreground);
16304
- }
16433
+ /* ─── Task list ────────────────────────────────────────── */
16305
16434
 
16306
- .muka-alert--success .muka-alert__icon {
16307
- color: var(--alert-color-success-accent);
16435
+ .muka-agent-task-list__tasks {
16436
+ list-style: none;
16437
+ padding: 0;
16438
+ margin: 0;
16439
+ display: flex;
16440
+ flex-direction: column;
16308
16441
  }
16309
16442
 
16310
- .muka-alert--success .muka-alert__title {
16311
- color: var(--alert-color-success-accent);
16312
- }
16443
+ /* ─── Single task row ──────────────────────────────────── */
16313
16444
 
16314
- .muka-alert--success .muka-alert__dismiss {
16315
- color: var(--alert-color-success-accent);
16445
+ .muka-agent-task-list__task {
16446
+ display: flex;
16447
+ align-items: stretch;
16448
+ gap: var(--spacing-4);
16449
+ min-height: 32px;
16450
+ padding: 0;
16316
16451
  }
16317
16452
 
16318
- /* Variant: Warning */
16319
- .muka-alert--warning {
16320
- background-color: var(--alert-color-warning-background);
16321
- color: var(--alert-color-warning-foreground);
16453
+ /* ─── Bullet column (icon + timeline connector) ────────── */
16454
+
16455
+ .muka-agent-task-list__bullet {
16456
+ position: relative;
16457
+ flex-shrink: 0;
16458
+ width: 16px;
16459
+ align-self: stretch;
16322
16460
  }
16323
16461
 
16324
- .muka-alert--warning .muka-alert__icon {
16325
- color: var(--alert-color-warning-accent);
16462
+ .muka-agent-task-list__line {
16463
+ position: absolute;
16464
+ left: 7px;
16465
+ width: 1px;
16466
+ background-color: var(--color-border-default);
16326
16467
  }
16327
16468
 
16328
- .muka-alert--warning .muka-alert__title {
16329
- color: var(--alert-color-warning-accent);
16469
+ .muka-agent-task-list__line--top {
16470
+ top: 0;
16471
+ height: 6px;
16330
16472
  }
16331
16473
 
16332
- .muka-alert--warning .muka-alert__dismiss {
16333
- color: var(--alert-color-warning-accent);
16474
+ .muka-agent-task-list__line--bottom {
16475
+ top: 32px;
16476
+ bottom: 0;
16334
16477
  }
16335
16478
 
16336
- /* Variant: Error */
16337
- .muka-alert--error {
16338
- background-color: var(--alert-color-error-background);
16339
- color: var(--alert-color-error-foreground);
16340
- }
16341
-
16342
- .muka-alert--error .muka-alert__icon {
16343
- color: var(--alert-color-error-accent);
16344
- }
16345
-
16346
- .muka-alert--error .muka-alert__title {
16347
- color: var(--alert-color-error-accent);
16348
- }
16349
-
16350
- .muka-alert--error .muka-alert__dismiss {
16351
- color: var(--alert-color-error-accent);
16352
- }
16353
-
16354
- /* Icon */
16355
- .muka-alert__icon {
16356
- display: flex;
16357
- align-items: center;
16358
- justify-content: center;
16359
- flex-shrink: 0;
16360
- width: var(--alert-icon-size);
16361
- height: var(--alert-icon-size);
16362
- }
16363
-
16364
- .muka-alert__icon svg {
16365
- width: 100%;
16366
- height: 100%;
16367
- }
16368
-
16369
- /* The leading icon and the dismiss (×) icon inherit the variant accent set on
16370
- their container, overriding the Icon component's default color. */
16371
- .muka-alert__icon .muka-icon,
16372
- .muka-alert__dismiss .muka-icon {
16373
- color: inherit;
16374
- }
16375
-
16376
- /* Content */
16377
- .muka-alert__content {
16378
- flex: 1;
16379
- min-width: 0;
16380
- }
16381
-
16382
- .muka-alert__title {
16383
- font-family: var(--text-label-md-semibold-fontFamily);
16384
- font-weight: var(--text-label-md-semibold-fontWeight);
16385
- font-size: var(--text-label-md-semibold-fontSize);
16386
- line-height: var(--text-label-md-semibold-lineHeight);
16387
- margin-bottom: var(--spacing-1);
16388
- }
16389
-
16390
- .muka-alert--sm .muka-alert__title {
16391
- font-family: var(--text-label-sm-semibold-fontFamily);
16392
- font-weight: var(--text-label-sm-semibold-fontWeight);
16393
- font-size: var(--text-label-sm-semibold-fontSize);
16394
- line-height: var(--text-label-sm-semibold-lineHeight);
16395
- }
16396
-
16397
- .muka-alert--lg .muka-alert__title {
16398
- font-family: var(--text-label-lg-semibold-fontFamily);
16399
- font-weight: var(--text-label-lg-semibold-fontWeight);
16400
- font-size: var(--text-label-lg-semibold-fontSize);
16401
- line-height: var(--text-label-lg-semibold-lineHeight);
16402
- }
16403
-
16404
- .muka-alert__message {
16405
- font-family: var(--text-body-sm-regular-fontFamily);
16406
- font-weight: var(--text-body-sm-regular-fontWeight);
16407
- font-size: var(--text-body-sm-regular-fontSize);
16408
- line-height: var(--text-body-sm-regular-lineHeight);
16409
- /* Beat ambient docs/page text colors (e.g. Storybook sbdocs) so variant
16410
- foreground stays readable in light and dark themes. */
16411
- color: inherit;
16412
- }
16413
-
16414
- .muka-alert .muka-alert__message,
16415
- .muka-alert .muka-alert__message * {
16416
- color: inherit;
16417
- }
16418
-
16419
- .muka-alert--lg .muka-alert__message {
16420
- font-family: var(--text-body-base-regular-fontFamily);
16421
- font-weight: var(--text-body-base-regular-fontWeight);
16422
- font-size: var(--text-body-base-regular-fontSize);
16423
- line-height: var(--text-body-base-regular-lineHeight);
16424
- }
16425
-
16426
- /* Action slot — TextLink (or similar) below the message, matching Figma */
16427
- .muka-alert__action {
16428
- display: flex;
16429
- flex-direction: column;
16430
- align-items: flex-start;
16431
- padding-top: var(--spacing-1);
16432
- }
16433
-
16434
- /* Dismiss button - uses accent color per variant, aligned with icon row */
16435
- .muka-alert__dismiss {
16436
- display: flex;
16437
- align-items: center;
16438
- justify-content: center;
16439
- flex-shrink: 0;
16440
- align-self: flex-start;
16441
- width: 24px;
16442
- height: 24px;
16443
- padding: 0;
16444
- margin: 0 0 0 auto;
16445
- border: none;
16446
- background: transparent;
16447
- cursor: pointer;
16448
- border-radius: var(--border-radius-sm);
16449
- transition: opacity 0.15s ease, background-color 0.15s ease;
16450
- }
16451
-
16452
- .muka-alert__dismiss:hover {
16453
- opacity: 0.85;
16454
- background-color: rgba(0, 0, 0, 0.05);
16455
- }
16456
-
16457
- .muka-alert__dismiss:focus-visible {
16458
- outline: 2px solid var(--color-border-focus);
16459
- outline-offset: 2px;
16460
- }
16461
-
16462
- .muka-alert__dismiss svg {
16463
- width: 16px;
16464
- height: 16px;
16465
- }
16466
-
16467
-
16468
- /* AgentTaskList */
16469
- /* AgentTaskList Component Styles */
16470
-
16471
- .muka-agent-task-list {
16472
- display: flex;
16473
- flex-direction: column;
16474
- gap: var(--spacing-2);
16475
- width: 100%;
16476
- padding: 0 var(--spacing-2);
16477
- }
16478
-
16479
- /* ─── Header ───────────────────────────────────────────── */
16480
-
16481
- .muka-agent-task-list__header {
16482
- display: inline-flex;
16483
- align-items: center;
16484
- gap: var(--spacing-3);
16485
- background: none;
16486
- border: none;
16487
- padding: 0;
16488
- margin: 0;
16489
- cursor: pointer;
16490
- color: var(--color-text-subtle-default);
16491
- font-family: var(--text-body-sm-regular-fontFamily);
16492
- font-weight: var(--text-body-sm-regular-fontWeight);
16493
- font-size: var(--text-body-sm-regular-fontSize);
16494
- line-height: var(--text-body-sm-regular-lineHeight);
16495
- text-align: left;
16496
- -webkit-tap-highlight-color: transparent;
16497
- }
16498
-
16499
- .muka-agent-task-list--open .muka-agent-task-list__header {
16500
- font-family: var(--text-body-sm-bold-fontFamily);
16501
- font-weight: var(--text-body-sm-bold-fontWeight);
16502
- font-size: var(--text-body-sm-bold-fontSize);
16503
- line-height: var(--text-body-sm-bold-lineHeight);
16504
- }
16505
-
16506
- .muka-agent-task-list__header:focus-visible {
16507
- outline: 2px solid var(--color-action-default);
16508
- outline-offset: 2px;
16509
- border-radius: var(--radius-sm);
16510
- }
16511
-
16512
- .muka-agent-task-list__title {
16513
- text-align: left;
16514
- }
16515
-
16516
- .muka-agent-task-list__chevron {
16517
- display: inline-flex;
16518
- align-items: center;
16519
- justify-content: center;
16520
- transition: transform 0.16s ease;
16521
- color: var(--color-text-subtle-default);
16522
- }
16523
-
16524
- .muka-agent-task-list__chevron[data-open='false'] {
16525
- transform: rotate(-90deg);
16526
- }
16527
-
16528
- /* ─── Task list ────────────────────────────────────────── */
16529
-
16530
- .muka-agent-task-list__tasks {
16531
- list-style: none;
16532
- padding: 0;
16533
- margin: 0;
16534
- display: flex;
16535
- flex-direction: column;
16536
- }
16537
-
16538
- /* ─── Single task row ──────────────────────────────────── */
16539
-
16540
- .muka-agent-task-list__task {
16541
- display: flex;
16542
- align-items: stretch;
16543
- gap: var(--spacing-4);
16544
- min-height: 32px;
16545
- padding: 0;
16546
- }
16547
-
16548
- /* ─── Bullet column (icon + timeline connector) ────────── */
16549
-
16550
- .muka-agent-task-list__bullet {
16551
- position: relative;
16552
- flex-shrink: 0;
16553
- width: 16px;
16554
- align-self: stretch;
16555
- }
16556
-
16557
- .muka-agent-task-list__line {
16558
- position: absolute;
16559
- left: 7px;
16560
- width: 1px;
16561
- background-color: var(--color-border-default);
16562
- }
16563
-
16564
- .muka-agent-task-list__line--top {
16565
- top: 0;
16566
- height: 6px;
16567
- }
16568
-
16569
- .muka-agent-task-list__line--bottom {
16570
- top: 32px;
16571
- bottom: 0;
16572
- }
16573
-
16574
- .muka-agent-task-list__task:first-child .muka-agent-task-list__line--top {
16575
- display: none;
16479
+ .muka-agent-task-list__task:first-child .muka-agent-task-list__line--top {
16480
+ display: none;
16576
16481
  }
16577
16482
 
16578
16483
  .muka-agent-task-list__task:last-child .muka-agent-task-list__line--bottom {
@@ -16776,19 +16681,230 @@ button.muka-chat-photo-grid__tile:focus-visible {
16776
16681
  }
16777
16682
 
16778
16683
 
16779
- /* Accordion */
16780
- /* Accordion Component Styles */
16684
+ /* Alert */
16685
+ /* Alert Component Styles - Using Muka Design Tokens */
16781
16686
 
16782
- .muka-accordion {
16783
- width: 100%;
16687
+ .muka-alert {
16688
+ display: flex;
16689
+ align-items: flex-start;
16690
+ border-radius: var(--alert-radius);
16691
+ border: none;
16692
+ gap: var(--alert-gap);
16693
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
16784
16694
  }
16785
16695
 
16786
- /* Item */
16787
- .muka-accordion__item {
16788
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
16696
+ /* Size variants */
16697
+ .muka-alert--sm {
16698
+ padding: var(--alert-padding-sm-y) var(--alert-padding-sm-x);
16789
16699
  }
16790
16700
 
16791
- .muka-accordion__item:last-child {
16701
+ .muka-alert--md {
16702
+ padding: var(--alert-padding-md-y) var(--alert-padding-md-x);
16703
+ }
16704
+
16705
+ .muka-alert--lg {
16706
+ padding: var(--alert-padding-lg-y) var(--alert-padding-lg-x);
16707
+ }
16708
+
16709
+ /* Variant: Info */
16710
+ .muka-alert--info {
16711
+ background-color: var(--alert-color-info-background);
16712
+ color: var(--alert-color-info-foreground);
16713
+ }
16714
+
16715
+ .muka-alert--info .muka-alert__icon {
16716
+ color: var(--alert-color-info-accent);
16717
+ }
16718
+
16719
+ .muka-alert--info .muka-alert__title {
16720
+ color: var(--alert-color-info-accent);
16721
+ }
16722
+
16723
+ .muka-alert--info .muka-alert__dismiss {
16724
+ color: var(--alert-color-info-accent);
16725
+ }
16726
+
16727
+ /* Variant: Success */
16728
+ .muka-alert--success {
16729
+ background-color: var(--alert-color-success-background);
16730
+ color: var(--alert-color-success-foreground);
16731
+ }
16732
+
16733
+ .muka-alert--success .muka-alert__icon {
16734
+ color: var(--alert-color-success-accent);
16735
+ }
16736
+
16737
+ .muka-alert--success .muka-alert__title {
16738
+ color: var(--alert-color-success-accent);
16739
+ }
16740
+
16741
+ .muka-alert--success .muka-alert__dismiss {
16742
+ color: var(--alert-color-success-accent);
16743
+ }
16744
+
16745
+ /* Variant: Warning */
16746
+ .muka-alert--warning {
16747
+ background-color: var(--alert-color-warning-background);
16748
+ color: var(--alert-color-warning-foreground);
16749
+ }
16750
+
16751
+ .muka-alert--warning .muka-alert__icon {
16752
+ color: var(--alert-color-warning-accent);
16753
+ }
16754
+
16755
+ .muka-alert--warning .muka-alert__title {
16756
+ color: var(--alert-color-warning-accent);
16757
+ }
16758
+
16759
+ .muka-alert--warning .muka-alert__dismiss {
16760
+ color: var(--alert-color-warning-accent);
16761
+ }
16762
+
16763
+ /* Variant: Error */
16764
+ .muka-alert--error {
16765
+ background-color: var(--alert-color-error-background);
16766
+ color: var(--alert-color-error-foreground);
16767
+ }
16768
+
16769
+ .muka-alert--error .muka-alert__icon {
16770
+ color: var(--alert-color-error-accent);
16771
+ }
16772
+
16773
+ .muka-alert--error .muka-alert__title {
16774
+ color: var(--alert-color-error-accent);
16775
+ }
16776
+
16777
+ .muka-alert--error .muka-alert__dismiss {
16778
+ color: var(--alert-color-error-accent);
16779
+ }
16780
+
16781
+ /* Icon */
16782
+ .muka-alert__icon {
16783
+ display: flex;
16784
+ align-items: center;
16785
+ justify-content: center;
16786
+ flex-shrink: 0;
16787
+ width: var(--alert-icon-size);
16788
+ height: var(--alert-icon-size);
16789
+ }
16790
+
16791
+ .muka-alert__icon svg {
16792
+ width: 100%;
16793
+ height: 100%;
16794
+ }
16795
+
16796
+ /* The leading icon and the dismiss (×) icon inherit the variant accent set on
16797
+ their container, overriding the Icon component's default color. */
16798
+ .muka-alert__icon .muka-icon,
16799
+ .muka-alert__dismiss .muka-icon {
16800
+ color: inherit;
16801
+ }
16802
+
16803
+ /* Content */
16804
+ .muka-alert__content {
16805
+ flex: 1;
16806
+ min-width: 0;
16807
+ }
16808
+
16809
+ .muka-alert__title {
16810
+ font-family: var(--text-label-md-semibold-fontFamily);
16811
+ font-weight: var(--text-label-md-semibold-fontWeight);
16812
+ font-size: var(--text-label-md-semibold-fontSize);
16813
+ line-height: var(--text-label-md-semibold-lineHeight);
16814
+ margin-bottom: var(--spacing-1);
16815
+ }
16816
+
16817
+ .muka-alert--sm .muka-alert__title {
16818
+ font-family: var(--text-label-sm-semibold-fontFamily);
16819
+ font-weight: var(--text-label-sm-semibold-fontWeight);
16820
+ font-size: var(--text-label-sm-semibold-fontSize);
16821
+ line-height: var(--text-label-sm-semibold-lineHeight);
16822
+ }
16823
+
16824
+ .muka-alert--lg .muka-alert__title {
16825
+ font-family: var(--text-label-lg-semibold-fontFamily);
16826
+ font-weight: var(--text-label-lg-semibold-fontWeight);
16827
+ font-size: var(--text-label-lg-semibold-fontSize);
16828
+ line-height: var(--text-label-lg-semibold-lineHeight);
16829
+ }
16830
+
16831
+ .muka-alert__message {
16832
+ font-family: var(--text-body-sm-regular-fontFamily);
16833
+ font-weight: var(--text-body-sm-regular-fontWeight);
16834
+ font-size: var(--text-body-sm-regular-fontSize);
16835
+ line-height: var(--text-body-sm-regular-lineHeight);
16836
+ /* Beat ambient docs/page text colors (e.g. Storybook sbdocs) so variant
16837
+ foreground stays readable in light and dark themes. */
16838
+ color: inherit;
16839
+ }
16840
+
16841
+ .muka-alert .muka-alert__message,
16842
+ .muka-alert .muka-alert__message * {
16843
+ color: inherit;
16844
+ }
16845
+
16846
+ .muka-alert--lg .muka-alert__message {
16847
+ font-family: var(--text-body-base-regular-fontFamily);
16848
+ font-weight: var(--text-body-base-regular-fontWeight);
16849
+ font-size: var(--text-body-base-regular-fontSize);
16850
+ line-height: var(--text-body-base-regular-lineHeight);
16851
+ }
16852
+
16853
+ /* Action slot — TextLink (or similar) below the message, matching Figma */
16854
+ .muka-alert__action {
16855
+ display: flex;
16856
+ flex-direction: column;
16857
+ align-items: flex-start;
16858
+ padding-top: var(--spacing-1);
16859
+ }
16860
+
16861
+ /* Dismiss button - uses accent color per variant, aligned with icon row */
16862
+ .muka-alert__dismiss {
16863
+ display: flex;
16864
+ align-items: center;
16865
+ justify-content: center;
16866
+ flex-shrink: 0;
16867
+ align-self: flex-start;
16868
+ width: 24px;
16869
+ height: 24px;
16870
+ padding: 0;
16871
+ margin: 0 0 0 auto;
16872
+ border: none;
16873
+ background: transparent;
16874
+ cursor: pointer;
16875
+ border-radius: var(--border-radius-sm);
16876
+ transition: opacity 0.15s ease, background-color 0.15s ease;
16877
+ }
16878
+
16879
+ .muka-alert__dismiss:hover {
16880
+ opacity: 0.85;
16881
+ background-color: rgba(0, 0, 0, 0.05);
16882
+ }
16883
+
16884
+ .muka-alert__dismiss:focus-visible {
16885
+ outline: 2px solid var(--color-border-focus);
16886
+ outline-offset: 2px;
16887
+ }
16888
+
16889
+ .muka-alert__dismiss svg {
16890
+ width: 16px;
16891
+ height: 16px;
16892
+ }
16893
+
16894
+
16895
+ /* Accordion */
16896
+ /* Accordion Component Styles */
16897
+
16898
+ .muka-accordion {
16899
+ width: 100%;
16900
+ }
16901
+
16902
+ /* Item */
16903
+ .muka-accordion__item {
16904
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
16905
+ }
16906
+
16907
+ .muka-accordion__item:last-child {
16792
16908
  border-bottom: none;
16793
16909
  }
16794
16910
 
@@ -16906,111 +17022,3 @@ button.muka-chat-photo-grid__tile:focus-visible {
16906
17022
  border-bottom: none;
16907
17023
  }
16908
17024
 
16909
-
16910
- /* SwipeActions */
16911
- /* SwipeActions Component Styles */
16912
-
16913
- .muka-swipe-actions {
16914
- position: relative;
16915
- overflow: hidden;
16916
- touch-action: pan-y;
16917
- -webkit-user-select: none;
16918
- user-select: none;
16919
- background-color: var(--color-surface-level3);
16920
- }
16921
-
16922
- .muka-swipe-actions--disabled {
16923
- touch-action: auto;
16924
- }
16925
-
16926
- /* ─── Row that holds the actual content ────────────────── */
16927
-
16928
- .muka-swipe-actions__row {
16929
- position: relative;
16930
- z-index: 1;
16931
- background-color: inherit;
16932
- will-change: transform;
16933
- }
16934
-
16935
- /* ─── Action panels — sit beneath the row ──────────────── */
16936
-
16937
- .muka-swipe-actions__panel {
16938
- position: absolute;
16939
- top: 0;
16940
- bottom: 0;
16941
- display: flex;
16942
- align-items: stretch;
16943
- z-index: 0;
16944
- }
16945
-
16946
- .muka-swipe-actions__panel--left {
16947
- left: 0;
16948
- }
16949
-
16950
- .muka-swipe-actions__panel--right {
16951
- right: 0;
16952
- }
16953
-
16954
- /* ─── Single action button ─────────────────────────────── */
16955
-
16956
- .muka-swipe-actions__button {
16957
- display: flex;
16958
- flex-direction: column;
16959
- align-items: center;
16960
- justify-content: center;
16961
- gap: var(--spacing-1);
16962
- border: none;
16963
- cursor: pointer;
16964
- padding: var(--spacing-2);
16965
- background-color: var(--color-surface-level2);
16966
- color: var(--color-text-default-default);
16967
- font-family: var(--text-label-sm-semibold-fontFamily);
16968
- font-weight: var(--text-label-sm-semibold-fontWeight);
16969
- font-size: var(--text-label-sm-semibold-fontSize);
16970
- line-height: var(--text-label-sm-semibold-lineHeight);
16971
- -webkit-tap-highlight-color: transparent;
16972
- transition: filter 0.12s ease;
16973
- }
16974
-
16975
- .muka-swipe-actions__button:hover {
16976
- filter: brightness(0.95);
16977
- }
16978
-
16979
- .muka-swipe-actions__button:focus-visible {
16980
- outline: 2px solid var(--color-action-default);
16981
- outline-offset: -2px;
16982
- }
16983
-
16984
- .muka-swipe-actions__button-icon {
16985
- display: inline-flex;
16986
- align-items: center;
16987
- justify-content: center;
16988
- }
16989
-
16990
- /* ─── Color variants ───────────────────────────────────── */
16991
-
16992
- .muka-swipe-actions__button--neutral {
16993
- background-color: var(--color-surface-level2);
16994
- color: var(--color-text-default-default);
16995
- }
16996
-
16997
- .muka-swipe-actions__button--primary {
16998
- background-color: var(--color-action-default);
16999
- color: var(--color-text-default-inverse);
17000
- }
17001
-
17002
- .muka-swipe-actions__button--success {
17003
- background-color: var(--color-state-success-default);
17004
- color: var(--color-text-default-inverse);
17005
- }
17006
-
17007
- .muka-swipe-actions__button--warning {
17008
- background-color: var(--color-state-warning-default);
17009
- color: var(--color-text-default-default);
17010
- }
17011
-
17012
- .muka-swipe-actions__button--destructive {
17013
- background-color: var(--color-state-error-default);
17014
- color: var(--color-text-default-inverse);
17015
- }
17016
-