@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.
@@ -3708,6 +3708,191 @@ body {
3708
3708
  }
3709
3709
 
3710
3710
 
3711
+ /* Thumbnail */
3712
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
3713
+
3714
+ .muka-thumbnail {
3715
+ position: relative;
3716
+ flex-shrink: 0;
3717
+ }
3718
+
3719
+ /* The frame carries the border, background and shape clip. Keeping it separate
3720
+ from the root lets the remove (×) button sit outside the clip (needed for the
3721
+ circular/ellipse shape, whose corners would otherwise clip the button). */
3722
+ .muka-thumbnail__frame {
3723
+ position: absolute;
3724
+ inset: 0;
3725
+ overflow: hidden;
3726
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3727
+ border-radius: var(--border-radius-lg);
3728
+ background-color: var(--color-surface-level1);
3729
+ }
3730
+
3731
+ /* ─── Shapes ──────────────────────────────────────────── */
3732
+ .muka-thumbnail--4-3 {
3733
+ width: 160px;
3734
+ height: 120px;
3735
+ }
3736
+
3737
+ .muka-thumbnail--1-1 {
3738
+ width: 120px;
3739
+ height: 120px;
3740
+ }
3741
+
3742
+ .muka-thumbnail--ellipse {
3743
+ width: 120px;
3744
+ height: 120px;
3745
+ }
3746
+
3747
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3748
+ .muka-thumbnail--fluid {
3749
+ width: 100%;
3750
+ height: auto;
3751
+ aspect-ratio: 1 / 1;
3752
+ }
3753
+
3754
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3755
+ aspect-ratio: 4 / 3;
3756
+ }
3757
+
3758
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
3759
+ border-radius: var(--border-radius-full);
3760
+ }
3761
+
3762
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3763
+ interactive hover zoom has a clean origin. */
3764
+ .muka-thumbnail__image {
3765
+ position: absolute;
3766
+ inset: 0;
3767
+ width: 100%;
3768
+ height: 100%;
3769
+ object-fit: cover;
3770
+ display: block;
3771
+ transform-origin: center;
3772
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3773
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3774
+ }
3775
+
3776
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
3777
+ .muka-thumbnail__trigger {
3778
+ position: absolute;
3779
+ inset: 0;
3780
+ padding: 0;
3781
+ border: 0;
3782
+ background: none;
3783
+ cursor: pointer;
3784
+ overflow: hidden;
3785
+ }
3786
+
3787
+ .muka-thumbnail__trigger:focus-visible {
3788
+ outline: 2px solid var(--color-border-focus);
3789
+ outline-offset: -2px;
3790
+ }
3791
+
3792
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3793
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3794
+ transform: scale(1.05);
3795
+ }
3796
+
3797
+ /* ─── Loading overlay + progress donut ────────────────── */
3798
+ .muka-thumbnail__overlay {
3799
+ position: absolute;
3800
+ inset: 0;
3801
+ display: flex;
3802
+ align-items: center;
3803
+ justify-content: center;
3804
+ background-color: var(--dialog-color-backdrop);
3805
+ }
3806
+
3807
+ .muka-thumbnail__progress {
3808
+ width: 40px;
3809
+ height: 40px;
3810
+ }
3811
+
3812
+ /* ─── Error / corrupt state ───────────────────────────── */
3813
+ .muka-thumbnail--error .muka-thumbnail__frame {
3814
+ background-color: var(--alias-color-state-error-muted);
3815
+ border-color: var(--alias-color-state-error-default);
3816
+ }
3817
+
3818
+ .muka-thumbnail__error {
3819
+ position: absolute;
3820
+ inset: 0;
3821
+ display: flex;
3822
+ flex-direction: column;
3823
+ align-items: center;
3824
+ justify-content: center;
3825
+ gap: var(--spacing-2);
3826
+ padding: var(--spacing-3);
3827
+ text-align: center;
3828
+ }
3829
+
3830
+ .muka-thumbnail__error-icon {
3831
+ color: var(--alert-color-error-accent);
3832
+ }
3833
+
3834
+ .muka-thumbnail__caption {
3835
+ max-width: 100%;
3836
+ overflow: hidden;
3837
+ text-overflow: ellipsis;
3838
+ white-space: nowrap;
3839
+ color: var(--alert-color-error-accent);
3840
+ font-family: var(--text-body-sm-regular-fontFamily);
3841
+ font-size: var(--text-body-sm-regular-fontSize);
3842
+ font-weight: var(--text-body-sm-regular-fontWeight);
3843
+ line-height: var(--text-body-sm-regular-lineHeight);
3844
+ }
3845
+
3846
+ /* ─── Remove (×) button ───────────────────────────────── */
3847
+ .muka-thumbnail__remove {
3848
+ position: absolute;
3849
+ top: var(--spacing-2);
3850
+ right: var(--spacing-2);
3851
+ display: flex;
3852
+ align-items: center;
3853
+ justify-content: center;
3854
+ width: var(--size-2xl);
3855
+ height: var(--size-2xl);
3856
+ padding: 0;
3857
+ color: var(--button-color-tertiary-foreground-default);
3858
+ background-color: var(--button-color-tertiary-background-default);
3859
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3860
+ border-radius: var(--border-radius-lg);
3861
+ cursor: pointer;
3862
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3863
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
3864
+ }
3865
+
3866
+ .muka-thumbnail__remove:hover {
3867
+ color: var(--button-color-tertiary-foreground-hover);
3868
+ background-color: var(--button-color-tertiary-background-hover);
3869
+ border-color: var(--button-color-tertiary-border-hover);
3870
+ }
3871
+
3872
+ .muka-thumbnail__remove:active {
3873
+ color: var(--button-color-tertiary-foreground-pressed);
3874
+ background-color: var(--button-color-tertiary-background-pressed);
3875
+ border-color: var(--button-color-tertiary-border-pressed);
3876
+ }
3877
+
3878
+ .muka-thumbnail__remove:focus-visible {
3879
+ outline: 2px solid var(--color-border-focus);
3880
+ outline-offset: 2px;
3881
+ }
3882
+
3883
+ /* ─── Reduced motion ──────────────────────────────────── */
3884
+ @media (prefers-reduced-motion: reduce) {
3885
+ .muka-thumbnail__image,
3886
+ .muka-thumbnail__remove {
3887
+ transition: none;
3888
+ }
3889
+
3890
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3891
+ transform: none;
3892
+ }
3893
+ }
3894
+
3895
+
3711
3896
  /* Textarea */
3712
3897
  /* Textarea Component Styles - Using Muka Design Tokens */
3713
3898
 
@@ -4144,238 +4329,53 @@ body {
4144
4329
  }
4145
4330
 
4146
4331
 
4147
- /* Thumbnail */
4148
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4332
+ /* Table */
4333
+ /* Table Component Styles - Using Muka Design Tokens */
4149
4334
 
4150
- .muka-thumbnail {
4151
- position: relative;
4152
- flex-shrink: 0;
4153
- }
4335
+ /* ========================================
4336
+ TABLE WRAPPER (Responsive)
4337
+ ======================================== */
4154
4338
 
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);
4339
+ .muka-table-wrapper {
4340
+ width: 100%;
4341
+ overflow-x: auto;
4342
+ -webkit-overflow-scrolling: touch;
4165
4343
  }
4166
4344
 
4167
- /* ─── Shapes ──────────────────────────────────────────── */
4168
- .muka-thumbnail--4-3 {
4169
- width: 160px;
4170
- height: 120px;
4171
- }
4345
+ /* ========================================
4346
+ TABLE BASE
4347
+ ======================================== */
4172
4348
 
4173
- .muka-thumbnail--1-1 {
4174
- width: 120px;
4175
- height: 120px;
4349
+ .muka-table {
4350
+ width: 100%;
4351
+ border-collapse: collapse;
4352
+ border-spacing: 0;
4353
+ font-family: var(--text-body-base-regular-fontFamily);
4354
+ font-size: var(--text-body-base-regular-fontSize);
4355
+ font-weight: var(--text-body-base-regular-fontWeight);
4356
+ line-height: var(--text-body-base-regular-lineHeight);
4357
+ color: var(--color-text-default-default);
4358
+ background-color: var(--color-surface-level3);
4176
4359
  }
4177
4360
 
4178
- .muka-thumbnail--ellipse {
4179
- width: 120px;
4180
- height: 120px;
4361
+ .muka-table--fixed {
4362
+ table-layout: fixed;
4181
4363
  }
4182
4364
 
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;
4365
+ .muka-table__caption {
4366
+ padding: var(--spacing-3);
4367
+ font-weight: var(--text-label-md-semibold-fontWeight);
4368
+ text-align: left;
4369
+ color: var(--color-text-default-default);
4370
+ caption-side: top;
4188
4371
  }
4189
4372
 
4190
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4191
- aspect-ratio: 4 / 3;
4192
- }
4193
-
4194
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4195
- border-radius: var(--border-radius-full);
4196
- }
4197
-
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;
4203
- width: 100%;
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);
4210
- }
4211
-
4212
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4213
- .muka-thumbnail__trigger {
4214
- position: absolute;
4215
- inset: 0;
4216
- padding: 0;
4217
- border: 0;
4218
- background: none;
4219
- cursor: pointer;
4220
- overflow: hidden;
4221
- }
4222
-
4223
- .muka-thumbnail__trigger:focus-visible {
4224
- outline: 2px solid var(--color-border-focus);
4225
- outline-offset: -2px;
4226
- }
4227
-
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);
4231
- }
4232
-
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);
4241
- }
4242
-
4243
- .muka-thumbnail__progress {
4244
- width: 40px;
4245
- height: 40px;
4246
- }
4247
-
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);
4252
- }
4253
-
4254
- .muka-thumbnail__error {
4255
- position: absolute;
4256
- inset: 0;
4257
- display: flex;
4258
- flex-direction: column;
4259
- align-items: center;
4260
- justify-content: center;
4261
- gap: var(--spacing-2);
4262
- padding: var(--spacing-3);
4263
- text-align: center;
4264
- }
4265
-
4266
- .muka-thumbnail__error-icon {
4267
- color: var(--alert-color-error-accent);
4268
- }
4269
-
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);
4280
- }
4281
-
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);
4300
- }
4301
-
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);
4306
- }
4307
-
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);
4312
- }
4313
-
4314
- .muka-thumbnail__remove:focus-visible {
4315
- outline: 2px solid var(--color-border-focus);
4316
- outline-offset: 2px;
4317
- }
4318
-
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
- }
4330
-
4331
-
4332
- /* Table */
4333
- /* Table Component Styles - Using Muka Design Tokens */
4334
-
4335
- /* ========================================
4336
- TABLE WRAPPER (Responsive)
4337
- ======================================== */
4338
-
4339
- .muka-table-wrapper {
4340
- width: 100%;
4341
- overflow-x: auto;
4342
- -webkit-overflow-scrolling: touch;
4343
- }
4344
-
4345
- /* ========================================
4346
- TABLE BASE
4347
- ======================================== */
4348
-
4349
- .muka-table {
4350
- width: 100%;
4351
- border-collapse: collapse;
4352
- border-spacing: 0;
4353
- font-family: var(--text-body-base-regular-fontFamily);
4354
- font-size: var(--text-body-base-regular-fontSize);
4355
- font-weight: var(--text-body-base-regular-fontWeight);
4356
- line-height: var(--text-body-base-regular-lineHeight);
4357
- color: var(--color-text-default-default);
4358
- background-color: var(--color-surface-level3);
4359
- }
4360
-
4361
- .muka-table--fixed {
4362
- table-layout: fixed;
4363
- }
4364
-
4365
- .muka-table__caption {
4366
- padding: var(--spacing-3);
4367
- font-weight: var(--text-label-md-semibold-fontWeight);
4368
- text-align: left;
4369
- color: var(--color-text-default-default);
4370
- caption-side: top;
4371
- }
4372
-
4373
- /* ========================================
4374
- TABLE HEAD
4375
- ======================================== */
4376
-
4377
- .muka-table__head {
4378
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
4373
+ /* ========================================
4374
+ TABLE HEAD
4375
+ ======================================== */
4376
+
4377
+ .muka-table__head {
4378
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
4379
4379
  }
4380
4380
 
4381
4381
  .muka-table__head .muka-table__row {
@@ -4733,62 +4733,170 @@ body {
4733
4733
  }
4734
4734
 
4735
4735
 
4736
- /* Spinner */
4737
- /* Spinner Component Styles */
4736
+ /* SwipeActions */
4737
+ /* SwipeActions Component Styles */
4738
4738
 
4739
- .muka-spinner {
4740
- display: inline-flex;
4741
- align-items: center;
4742
- justify-content: center;
4743
- color: var(--color-text-default-default);
4744
- line-height: 0;
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);
4745
4746
  }
4746
4747
 
4747
- .muka-spinner--subtle {
4748
- color: var(--color-text-subtle-default);
4748
+ .muka-swipe-actions--disabled {
4749
+ touch-action: auto;
4749
4750
  }
4750
4751
 
4751
- .muka-spinner--inverse {
4752
- color: var(--color-text-default-inverse);
4753
- }
4752
+ /* ─── Row that holds the actual content ────────────────── */
4754
4753
 
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;
4754
+ .muka-swipe-actions__row {
4755
+ position: relative;
4756
+ z-index: 1;
4757
+ background-color: inherit;
4758
+ will-change: transform;
4763
4759
  }
4764
4760
 
4765
- /* ─── Sizes ───────────────────────────────────────────── */
4761
+ /* ─── Action panels — sit beneath the row ──────────────── */
4766
4762
 
4767
- .muka-spinner--sm .muka-spinner__circle {
4768
- width: 16px;
4769
- height: 16px;
4770
- border-width: 2px;
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;
4771
4770
  }
4772
4771
 
4773
- .muka-spinner--md .muka-spinner__circle {
4774
- width: 20px;
4775
- height: 20px;
4776
- border-width: 2px;
4772
+ .muka-swipe-actions__panel--left {
4773
+ left: 0;
4777
4774
  }
4778
4775
 
4779
- .muka-spinner--lg .muka-spinner__circle {
4780
- width: 24px;
4781
- height: 24px;
4782
- border-width: 3px;
4776
+ .muka-swipe-actions__panel--right {
4777
+ right: 0;
4783
4778
  }
4784
4779
 
4785
- /* ─── Visually-hidden label ───────────────────────────── */
4780
+ /* ─── Single action button ─────────────────────────────── */
4786
4781
 
4787
- .muka-spinner__sr-label {
4788
- position: absolute;
4789
- width: 1px;
4790
- height: 1px;
4791
- padding: 0;
4782
+ .muka-swipe-actions__button {
4783
+ display: flex;
4784
+ flex-direction: column;
4785
+ align-items: center;
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);
4792
+ color: var(--color-text-default-default);
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;
4799
+ }
4800
+
4801
+ .muka-swipe-actions__button:hover {
4802
+ filter: brightness(0.95);
4803
+ }
4804
+
4805
+ .muka-swipe-actions__button:focus-visible {
4806
+ outline: 2px solid var(--color-action-default);
4807
+ outline-offset: -2px;
4808
+ }
4809
+
4810
+ .muka-swipe-actions__button-icon {
4811
+ display: inline-flex;
4812
+ align-items: center;
4813
+ justify-content: center;
4814
+ }
4815
+
4816
+ /* ─── Color variants ───────────────────────────────────── */
4817
+
4818
+ .muka-swipe-actions__button--neutral {
4819
+ background-color: var(--color-surface-level2);
4820
+ color: var(--color-text-default-default);
4821
+ }
4822
+
4823
+ .muka-swipe-actions__button--primary {
4824
+ background-color: var(--color-action-default);
4825
+ color: var(--color-text-default-inverse);
4826
+ }
4827
+
4828
+ .muka-swipe-actions__button--success {
4829
+ background-color: var(--color-state-success-default);
4830
+ color: var(--color-text-default-inverse);
4831
+ }
4832
+
4833
+ .muka-swipe-actions__button--warning {
4834
+ background-color: var(--color-state-warning-default);
4835
+ color: var(--color-text-default-default);
4836
+ }
4837
+
4838
+ .muka-swipe-actions__button--destructive {
4839
+ background-color: var(--color-state-error-default);
4840
+ color: var(--color-text-default-inverse);
4841
+ }
4842
+
4843
+
4844
+ /* Spinner */
4845
+ /* Spinner Component Styles */
4846
+
4847
+ .muka-spinner {
4848
+ display: inline-flex;
4849
+ align-items: center;
4850
+ justify-content: center;
4851
+ color: var(--color-text-default-default);
4852
+ line-height: 0;
4853
+ }
4854
+
4855
+ .muka-spinner--subtle {
4856
+ color: var(--color-text-subtle-default);
4857
+ }
4858
+
4859
+ .muka-spinner--inverse {
4860
+ color: var(--color-text-default-inverse);
4861
+ }
4862
+
4863
+ .muka-spinner__circle {
4864
+ display: inline-block;
4865
+ border-radius: 50%;
4866
+ border-style: solid;
4867
+ border-color: currentColor;
4868
+ border-right-color: transparent;
4869
+ animation: muka-spinner-rotate 0.7s linear infinite;
4870
+ box-sizing: border-box;
4871
+ }
4872
+
4873
+ /* ─── Sizes ───────────────────────────────────────────── */
4874
+
4875
+ .muka-spinner--sm .muka-spinner__circle {
4876
+ width: 16px;
4877
+ height: 16px;
4878
+ border-width: 2px;
4879
+ }
4880
+
4881
+ .muka-spinner--md .muka-spinner__circle {
4882
+ width: 20px;
4883
+ height: 20px;
4884
+ border-width: 2px;
4885
+ }
4886
+
4887
+ .muka-spinner--lg .muka-spinner__circle {
4888
+ width: 24px;
4889
+ height: 24px;
4890
+ border-width: 3px;
4891
+ }
4892
+
4893
+ /* ─── Visually-hidden label ───────────────────────────── */
4894
+
4895
+ .muka-spinner__sr-label {
4896
+ position: absolute;
4897
+ width: 1px;
4898
+ height: 1px;
4899
+ padding: 0;
4792
4900
  margin: -1px;
4793
4901
  overflow: hidden;
4794
4902
  clip: rect(0, 0, 0, 0);
@@ -5800,6 +5908,133 @@ body {
5800
5908
  }
5801
5909
 
5802
5910
 
5911
+ /* Scrollbar */
5912
+ /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
5913
+
5914
+ .muka-scrollbar {
5915
+ display: flex;
5916
+ flex-shrink: 0;
5917
+ border-left: var(--border-width-regular) solid var(--color-border-default);
5918
+ background-color: var(--color-surface-level3);
5919
+ user-select: none;
5920
+ }
5921
+
5922
+ .muka-scrollbar--vertical {
5923
+ flex-direction: column;
5924
+ width: var(--size-2xl, 32px);
5925
+ align-self: stretch;
5926
+ }
5927
+
5928
+ .muka-scrollbar--horizontal {
5929
+ flex-direction: row;
5930
+ height: var(--size-2xl, 32px);
5931
+ width: 100%;
5932
+ border-left: none;
5933
+ border-top: var(--border-width-regular) solid var(--color-border-default);
5934
+ }
5935
+
5936
+ .muka-scrollbar__button {
5937
+ display: flex;
5938
+ align-items: center;
5939
+ justify-content: center;
5940
+ flex-shrink: 0;
5941
+ width: 100%;
5942
+ height: var(--size-2xl, 32px);
5943
+ padding: 0;
5944
+ border: none;
5945
+ background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
5946
+ color: var(--color-text-default-default);
5947
+ cursor: pointer;
5948
+ }
5949
+
5950
+ .muka-scrollbar--horizontal .muka-scrollbar__button {
5951
+ width: var(--size-2xl, 32px);
5952
+ height: 100%;
5953
+ }
5954
+
5955
+ .muka-scrollbar__button:hover {
5956
+ background-color: var(--color-surface-hover);
5957
+ }
5958
+
5959
+ .muka-scrollbar__divider {
5960
+ flex-shrink: 0;
5961
+ width: 100%;
5962
+ height: 1px;
5963
+ background-color: var(--color-border-default);
5964
+ }
5965
+
5966
+ .muka-scrollbar--horizontal .muka-scrollbar__divider {
5967
+ width: 1px;
5968
+ height: 100%;
5969
+ }
5970
+
5971
+ .muka-scrollbar__track {
5972
+ position: relative;
5973
+ display: flex;
5974
+ flex-direction: column;
5975
+ flex: 1 1 auto;
5976
+ min-height: 0;
5977
+ width: 100%;
5978
+ }
5979
+
5980
+ .muka-scrollbar--horizontal .muka-scrollbar__track {
5981
+ flex-direction: row;
5982
+ min-width: 0;
5983
+ height: 100%;
5984
+ }
5985
+
5986
+ .muka-scrollbar__thumb {
5987
+ position: absolute;
5988
+ left: 0;
5989
+ top: 0;
5990
+ z-index: 1;
5991
+ display: flex;
5992
+ align-items: center;
5993
+ justify-content: center;
5994
+ width: 100%;
5995
+ /* Figma: scrollbar thumb fill = surface/level3 */
5996
+ background-color: var(--color-surface-level3);
5997
+ cursor: grab;
5998
+ touch-action: none;
5999
+ }
6000
+
6001
+ .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6002
+ left: 0;
6003
+ top: 0;
6004
+ width: auto;
6005
+ height: 100%;
6006
+ margin-left: 0;
6007
+ margin-top: 0;
6008
+ }
6009
+
6010
+ .muka-scrollbar__thumb:active {
6011
+ cursor: grabbing;
6012
+ }
6013
+
6014
+ .muka-scrollbar__grip {
6015
+ display: flex;
6016
+ flex-direction: column;
6017
+ gap: 2px;
6018
+ width: 14px;
6019
+ }
6020
+
6021
+ .muka-scrollbar__grip::before,
6022
+ .muka-scrollbar__grip::after {
6023
+ content: '';
6024
+ display: block;
6025
+ width: 100%;
6026
+ height: 2px;
6027
+ border-radius: var(--border-radius-md);
6028
+ background-color: var(--color-text-subtle-default);
6029
+ }
6030
+
6031
+ .muka-scrollbar__spacer {
6032
+ flex: 1 1 auto;
6033
+ min-height: 0;
6034
+ background-color: var(--color-surface-level2);
6035
+ }
6036
+
6037
+
5803
6038
  /* SearchInput */
5804
6039
  /* SearchInput Component Styles */
5805
6040
 
@@ -5969,137 +6204,10 @@ body {
5969
6204
  }
5970
6205
 
5971
6206
 
5972
- /* Scrollbar */
5973
- /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6207
+ /* RecordingBar */
6208
+ /* RecordingBar Component Styles */
5974
6209
 
5975
- .muka-scrollbar {
5976
- display: flex;
5977
- flex-shrink: 0;
5978
- border-left: var(--border-width-regular) solid var(--color-border-default);
5979
- background-color: var(--color-surface-level3);
5980
- user-select: none;
5981
- }
5982
-
5983
- .muka-scrollbar--vertical {
5984
- flex-direction: column;
5985
- width: var(--size-2xl, 32px);
5986
- align-self: stretch;
5987
- }
5988
-
5989
- .muka-scrollbar--horizontal {
5990
- flex-direction: row;
5991
- height: var(--size-2xl, 32px);
5992
- width: 100%;
5993
- border-left: none;
5994
- border-top: var(--border-width-regular) solid var(--color-border-default);
5995
- }
5996
-
5997
- .muka-scrollbar__button {
5998
- display: flex;
5999
- align-items: center;
6000
- justify-content: center;
6001
- flex-shrink: 0;
6002
- width: 100%;
6003
- height: var(--size-2xl, 32px);
6004
- padding: 0;
6005
- border: none;
6006
- background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6007
- color: var(--color-text-default-default);
6008
- cursor: pointer;
6009
- }
6010
-
6011
- .muka-scrollbar--horizontal .muka-scrollbar__button {
6012
- width: var(--size-2xl, 32px);
6013
- height: 100%;
6014
- }
6015
-
6016
- .muka-scrollbar__button:hover {
6017
- background-color: var(--color-surface-hover);
6018
- }
6019
-
6020
- .muka-scrollbar__divider {
6021
- flex-shrink: 0;
6022
- width: 100%;
6023
- height: 1px;
6024
- background-color: var(--color-border-default);
6025
- }
6026
-
6027
- .muka-scrollbar--horizontal .muka-scrollbar__divider {
6028
- width: 1px;
6029
- height: 100%;
6030
- }
6031
-
6032
- .muka-scrollbar__track {
6033
- position: relative;
6034
- display: flex;
6035
- flex-direction: column;
6036
- flex: 1 1 auto;
6037
- min-height: 0;
6038
- width: 100%;
6039
- }
6040
-
6041
- .muka-scrollbar--horizontal .muka-scrollbar__track {
6042
- flex-direction: row;
6043
- min-width: 0;
6044
- height: 100%;
6045
- }
6046
-
6047
- .muka-scrollbar__thumb {
6048
- position: absolute;
6049
- left: 0;
6050
- top: 0;
6051
- z-index: 1;
6052
- display: flex;
6053
- align-items: center;
6054
- justify-content: center;
6055
- width: 100%;
6056
- /* Figma: scrollbar thumb fill = surface/level3 */
6057
- background-color: var(--color-surface-level3);
6058
- cursor: grab;
6059
- touch-action: none;
6060
- }
6061
-
6062
- .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6063
- left: 0;
6064
- top: 0;
6065
- width: auto;
6066
- height: 100%;
6067
- margin-left: 0;
6068
- margin-top: 0;
6069
- }
6070
-
6071
- .muka-scrollbar__thumb:active {
6072
- cursor: grabbing;
6073
- }
6074
-
6075
- .muka-scrollbar__grip {
6076
- display: flex;
6077
- flex-direction: column;
6078
- gap: 2px;
6079
- width: 14px;
6080
- }
6081
-
6082
- .muka-scrollbar__grip::before,
6083
- .muka-scrollbar__grip::after {
6084
- content: '';
6085
- display: block;
6086
- width: 100%;
6087
- height: 2px;
6088
- border-radius: var(--border-radius-md);
6089
- background-color: var(--color-text-subtle-default);
6090
- }
6091
-
6092
- .muka-scrollbar__spacer {
6093
- flex: 1 1 auto;
6094
- min-height: 0;
6095
- background-color: var(--color-surface-level2);
6096
- }
6097
-
6098
-
6099
- /* RecordingBar */
6100
- /* RecordingBar Component Styles */
6101
-
6102
- .muka-recording-bar {
6210
+ .muka-recording-bar {
6103
6211
  display: flex;
6104
6212
  align-items: center;
6105
6213
  gap: var(--spacing-3);
@@ -14063,6 +14171,14 @@ button.muka-chat-photo-grid__tile:focus-visible {
14063
14171
  flex-shrink: 0;
14064
14172
  }
14065
14173
 
14174
+ /* Touch devices have emoji on their keyboard: no button there, unless the app
14175
+ keeps it with `emojiOnTouch`. */
14176
+ @media (pointer: coarse) {
14177
+ .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
14178
+ display: none;
14179
+ }
14180
+ }
14181
+
14066
14182
  /* ─── Recording bar ────────────────────────────────────── */
14067
14183
 
14068
14184
  .muka-chat-composer__recording {
@@ -16189,325 +16305,114 @@ button.muka-chat-photo-grid__tile:focus-visible {
16189
16305
  }
16190
16306
 
16191
16307
 
16192
- /* Alert */
16193
- /* Alert Component Styles - Using Muka Design Tokens */
16308
+ /* AgentTaskList */
16309
+ /* AgentTaskList Component Styles */
16194
16310
 
16195
- .muka-alert {
16311
+ .muka-agent-task-list {
16196
16312
  display: flex;
16197
- align-items: flex-start;
16198
- border-radius: var(--alert-radius);
16199
- border: none;
16200
- gap: var(--alert-gap);
16201
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
16313
+ flex-direction: column;
16314
+ gap: var(--spacing-2);
16315
+ width: 100%;
16316
+ padding: 0 var(--spacing-2);
16202
16317
  }
16203
16318
 
16204
- /* Size variants */
16205
- .muka-alert--sm {
16206
- padding: var(--alert-padding-sm-y) var(--alert-padding-sm-x);
16207
- }
16319
+ /* ─── Header ───────────────────────────────────────────── */
16208
16320
 
16209
- .muka-alert--md {
16210
- padding: var(--alert-padding-md-y) var(--alert-padding-md-x);
16321
+ .muka-agent-task-list__header {
16322
+ display: inline-flex;
16323
+ align-items: center;
16324
+ gap: var(--spacing-3);
16325
+ background: none;
16326
+ border: none;
16327
+ padding: 0;
16328
+ margin: 0;
16329
+ cursor: pointer;
16330
+ color: var(--color-text-subtle-default);
16331
+ font-family: var(--text-body-sm-regular-fontFamily);
16332
+ font-weight: var(--text-body-sm-regular-fontWeight);
16333
+ font-size: var(--text-body-sm-regular-fontSize);
16334
+ line-height: var(--text-body-sm-regular-lineHeight);
16335
+ text-align: left;
16336
+ -webkit-tap-highlight-color: transparent;
16211
16337
  }
16212
16338
 
16213
- .muka-alert--lg {
16214
- padding: var(--alert-padding-lg-y) var(--alert-padding-lg-x);
16339
+ .muka-agent-task-list--open .muka-agent-task-list__header {
16340
+ font-family: var(--text-body-sm-bold-fontFamily);
16341
+ font-weight: var(--text-body-sm-bold-fontWeight);
16342
+ font-size: var(--text-body-sm-bold-fontSize);
16343
+ line-height: var(--text-body-sm-bold-lineHeight);
16215
16344
  }
16216
16345
 
16217
- /* Variant: Info */
16218
- .muka-alert--info {
16219
- background-color: var(--alert-color-info-background);
16220
- color: var(--alert-color-info-foreground);
16346
+ .muka-agent-task-list__header:focus-visible {
16347
+ outline: 2px solid var(--color-action-default);
16348
+ outline-offset: 2px;
16349
+ border-radius: var(--radius-sm);
16221
16350
  }
16222
16351
 
16223
- .muka-alert--info .muka-alert__icon {
16224
- color: var(--alert-color-info-accent);
16352
+ .muka-agent-task-list__title {
16353
+ text-align: left;
16225
16354
  }
16226
16355
 
16227
- .muka-alert--info .muka-alert__title {
16228
- color: var(--alert-color-info-accent);
16356
+ .muka-agent-task-list__chevron {
16357
+ display: inline-flex;
16358
+ align-items: center;
16359
+ justify-content: center;
16360
+ transition: transform 0.16s ease;
16361
+ color: var(--color-text-subtle-default);
16229
16362
  }
16230
16363
 
16231
- .muka-alert--info .muka-alert__dismiss {
16232
- color: var(--alert-color-info-accent);
16364
+ .muka-agent-task-list__chevron[data-open='false'] {
16365
+ transform: rotate(-90deg);
16233
16366
  }
16234
16367
 
16235
- /* Variant: Success */
16236
- .muka-alert--success {
16237
- background-color: var(--alert-color-success-background);
16238
- color: var(--alert-color-success-foreground);
16239
- }
16368
+ /* ─── Task list ────────────────────────────────────────── */
16240
16369
 
16241
- .muka-alert--success .muka-alert__icon {
16242
- color: var(--alert-color-success-accent);
16370
+ .muka-agent-task-list__tasks {
16371
+ list-style: none;
16372
+ padding: 0;
16373
+ margin: 0;
16374
+ display: flex;
16375
+ flex-direction: column;
16243
16376
  }
16244
16377
 
16245
- .muka-alert--success .muka-alert__title {
16246
- color: var(--alert-color-success-accent);
16247
- }
16378
+ /* ─── Single task row ──────────────────────────────────── */
16248
16379
 
16249
- .muka-alert--success .muka-alert__dismiss {
16250
- color: var(--alert-color-success-accent);
16380
+ .muka-agent-task-list__task {
16381
+ display: flex;
16382
+ align-items: stretch;
16383
+ gap: var(--spacing-4);
16384
+ min-height: 32px;
16385
+ padding: 0;
16251
16386
  }
16252
16387
 
16253
- /* Variant: Warning */
16254
- .muka-alert--warning {
16255
- background-color: var(--alert-color-warning-background);
16256
- color: var(--alert-color-warning-foreground);
16388
+ /* ─── Bullet column (icon + timeline connector) ────────── */
16389
+
16390
+ .muka-agent-task-list__bullet {
16391
+ position: relative;
16392
+ flex-shrink: 0;
16393
+ width: 16px;
16394
+ align-self: stretch;
16257
16395
  }
16258
16396
 
16259
- .muka-alert--warning .muka-alert__icon {
16260
- color: var(--alert-color-warning-accent);
16397
+ .muka-agent-task-list__line {
16398
+ position: absolute;
16399
+ left: 7px;
16400
+ width: 1px;
16401
+ background-color: var(--color-border-default);
16261
16402
  }
16262
16403
 
16263
- .muka-alert--warning .muka-alert__title {
16264
- color: var(--alert-color-warning-accent);
16404
+ .muka-agent-task-list__line--top {
16405
+ top: 0;
16406
+ height: 6px;
16265
16407
  }
16266
16408
 
16267
- .muka-alert--warning .muka-alert__dismiss {
16268
- color: var(--alert-color-warning-accent);
16409
+ .muka-agent-task-list__line--bottom {
16410
+ top: 32px;
16411
+ bottom: 0;
16269
16412
  }
16270
16413
 
16271
- /* Variant: Error */
16272
- .muka-alert--error {
16273
- background-color: var(--alert-color-error-background);
16274
- color: var(--alert-color-error-foreground);
16275
- }
16276
-
16277
- .muka-alert--error .muka-alert__icon {
16278
- color: var(--alert-color-error-accent);
16279
- }
16280
-
16281
- .muka-alert--error .muka-alert__title {
16282
- color: var(--alert-color-error-accent);
16283
- }
16284
-
16285
- .muka-alert--error .muka-alert__dismiss {
16286
- color: var(--alert-color-error-accent);
16287
- }
16288
-
16289
- /* Icon */
16290
- .muka-alert__icon {
16291
- display: flex;
16292
- align-items: center;
16293
- justify-content: center;
16294
- flex-shrink: 0;
16295
- width: var(--alert-icon-size);
16296
- height: var(--alert-icon-size);
16297
- }
16298
-
16299
- .muka-alert__icon svg {
16300
- width: 100%;
16301
- height: 100%;
16302
- }
16303
-
16304
- /* The leading icon and the dismiss (×) icon inherit the variant accent set on
16305
- their container, overriding the Icon component's default color. */
16306
- .muka-alert__icon .muka-icon,
16307
- .muka-alert__dismiss .muka-icon {
16308
- color: inherit;
16309
- }
16310
-
16311
- /* Content */
16312
- .muka-alert__content {
16313
- flex: 1;
16314
- min-width: 0;
16315
- }
16316
-
16317
- .muka-alert__title {
16318
- font-family: var(--text-label-md-semibold-fontFamily);
16319
- font-weight: var(--text-label-md-semibold-fontWeight);
16320
- font-size: var(--text-label-md-semibold-fontSize);
16321
- line-height: var(--text-label-md-semibold-lineHeight);
16322
- margin-bottom: var(--spacing-1);
16323
- }
16324
-
16325
- .muka-alert--sm .muka-alert__title {
16326
- font-family: var(--text-label-sm-semibold-fontFamily);
16327
- font-weight: var(--text-label-sm-semibold-fontWeight);
16328
- font-size: var(--text-label-sm-semibold-fontSize);
16329
- line-height: var(--text-label-sm-semibold-lineHeight);
16330
- }
16331
-
16332
- .muka-alert--lg .muka-alert__title {
16333
- font-family: var(--text-label-lg-semibold-fontFamily);
16334
- font-weight: var(--text-label-lg-semibold-fontWeight);
16335
- font-size: var(--text-label-lg-semibold-fontSize);
16336
- line-height: var(--text-label-lg-semibold-lineHeight);
16337
- }
16338
-
16339
- .muka-alert__message {
16340
- font-family: var(--text-body-sm-regular-fontFamily);
16341
- font-weight: var(--text-body-sm-regular-fontWeight);
16342
- font-size: var(--text-body-sm-regular-fontSize);
16343
- line-height: var(--text-body-sm-regular-lineHeight);
16344
- /* Beat ambient docs/page text colors (e.g. Storybook sbdocs) so variant
16345
- foreground stays readable in light and dark themes. */
16346
- color: inherit;
16347
- }
16348
-
16349
- .muka-alert .muka-alert__message,
16350
- .muka-alert .muka-alert__message * {
16351
- color: inherit;
16352
- }
16353
-
16354
- .muka-alert--lg .muka-alert__message {
16355
- font-family: var(--text-body-base-regular-fontFamily);
16356
- font-weight: var(--text-body-base-regular-fontWeight);
16357
- font-size: var(--text-body-base-regular-fontSize);
16358
- line-height: var(--text-body-base-regular-lineHeight);
16359
- }
16360
-
16361
- /* Action slot — TextLink (or similar) below the message, matching Figma */
16362
- .muka-alert__action {
16363
- display: flex;
16364
- flex-direction: column;
16365
- align-items: flex-start;
16366
- padding-top: var(--spacing-1);
16367
- }
16368
-
16369
- /* Dismiss button - uses accent color per variant, aligned with icon row */
16370
- .muka-alert__dismiss {
16371
- display: flex;
16372
- align-items: center;
16373
- justify-content: center;
16374
- flex-shrink: 0;
16375
- align-self: flex-start;
16376
- width: 24px;
16377
- height: 24px;
16378
- padding: 0;
16379
- margin: 0 0 0 auto;
16380
- border: none;
16381
- background: transparent;
16382
- cursor: pointer;
16383
- border-radius: var(--border-radius-sm);
16384
- transition: opacity 0.15s ease, background-color 0.15s ease;
16385
- }
16386
-
16387
- .muka-alert__dismiss:hover {
16388
- opacity: 0.85;
16389
- background-color: rgba(0, 0, 0, 0.05);
16390
- }
16391
-
16392
- .muka-alert__dismiss:focus-visible {
16393
- outline: 2px solid var(--color-border-focus);
16394
- outline-offset: 2px;
16395
- }
16396
-
16397
- .muka-alert__dismiss svg {
16398
- width: 16px;
16399
- height: 16px;
16400
- }
16401
-
16402
-
16403
- /* AgentTaskList */
16404
- /* AgentTaskList Component Styles */
16405
-
16406
- .muka-agent-task-list {
16407
- display: flex;
16408
- flex-direction: column;
16409
- gap: var(--spacing-2);
16410
- width: 100%;
16411
- padding: 0 var(--spacing-2);
16412
- }
16413
-
16414
- /* ─── Header ───────────────────────────────────────────── */
16415
-
16416
- .muka-agent-task-list__header {
16417
- display: inline-flex;
16418
- align-items: center;
16419
- gap: var(--spacing-3);
16420
- background: none;
16421
- border: none;
16422
- padding: 0;
16423
- margin: 0;
16424
- cursor: pointer;
16425
- color: var(--color-text-subtle-default);
16426
- font-family: var(--text-body-sm-regular-fontFamily);
16427
- font-weight: var(--text-body-sm-regular-fontWeight);
16428
- font-size: var(--text-body-sm-regular-fontSize);
16429
- line-height: var(--text-body-sm-regular-lineHeight);
16430
- text-align: left;
16431
- -webkit-tap-highlight-color: transparent;
16432
- }
16433
-
16434
- .muka-agent-task-list--open .muka-agent-task-list__header {
16435
- font-family: var(--text-body-sm-bold-fontFamily);
16436
- font-weight: var(--text-body-sm-bold-fontWeight);
16437
- font-size: var(--text-body-sm-bold-fontSize);
16438
- line-height: var(--text-body-sm-bold-lineHeight);
16439
- }
16440
-
16441
- .muka-agent-task-list__header:focus-visible {
16442
- outline: 2px solid var(--color-action-default);
16443
- outline-offset: 2px;
16444
- border-radius: var(--radius-sm);
16445
- }
16446
-
16447
- .muka-agent-task-list__title {
16448
- text-align: left;
16449
- }
16450
-
16451
- .muka-agent-task-list__chevron {
16452
- display: inline-flex;
16453
- align-items: center;
16454
- justify-content: center;
16455
- transition: transform 0.16s ease;
16456
- color: var(--color-text-subtle-default);
16457
- }
16458
-
16459
- .muka-agent-task-list__chevron[data-open='false'] {
16460
- transform: rotate(-90deg);
16461
- }
16462
-
16463
- /* ─── Task list ────────────────────────────────────────── */
16464
-
16465
- .muka-agent-task-list__tasks {
16466
- list-style: none;
16467
- padding: 0;
16468
- margin: 0;
16469
- display: flex;
16470
- flex-direction: column;
16471
- }
16472
-
16473
- /* ─── Single task row ──────────────────────────────────── */
16474
-
16475
- .muka-agent-task-list__task {
16476
- display: flex;
16477
- align-items: stretch;
16478
- gap: var(--spacing-4);
16479
- min-height: 32px;
16480
- padding: 0;
16481
- }
16482
-
16483
- /* ─── Bullet column (icon + timeline connector) ────────── */
16484
-
16485
- .muka-agent-task-list__bullet {
16486
- position: relative;
16487
- flex-shrink: 0;
16488
- width: 16px;
16489
- align-self: stretch;
16490
- }
16491
-
16492
- .muka-agent-task-list__line {
16493
- position: absolute;
16494
- left: 7px;
16495
- width: 1px;
16496
- background-color: var(--color-border-default);
16497
- }
16498
-
16499
- .muka-agent-task-list__line--top {
16500
- top: 0;
16501
- height: 6px;
16502
- }
16503
-
16504
- .muka-agent-task-list__line--bottom {
16505
- top: 32px;
16506
- bottom: 0;
16507
- }
16508
-
16509
- .muka-agent-task-list__task:first-child .muka-agent-task-list__line--top {
16510
- display: none;
16414
+ .muka-agent-task-list__task:first-child .muka-agent-task-list__line--top {
16415
+ display: none;
16511
16416
  }
16512
16417
 
16513
16418
  .muka-agent-task-list__task:last-child .muka-agent-task-list__line--bottom {
@@ -16711,19 +16616,230 @@ button.muka-chat-photo-grid__tile:focus-visible {
16711
16616
  }
16712
16617
 
16713
16618
 
16714
- /* Accordion */
16715
- /* Accordion Component Styles */
16619
+ /* Alert */
16620
+ /* Alert Component Styles - Using Muka Design Tokens */
16716
16621
 
16717
- .muka-accordion {
16718
- width: 100%;
16622
+ .muka-alert {
16623
+ display: flex;
16624
+ align-items: flex-start;
16625
+ border-radius: var(--alert-radius);
16626
+ border: none;
16627
+ gap: var(--alert-gap);
16628
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
16719
16629
  }
16720
16630
 
16721
- /* Item */
16722
- .muka-accordion__item {
16723
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
16631
+ /* Size variants */
16632
+ .muka-alert--sm {
16633
+ padding: var(--alert-padding-sm-y) var(--alert-padding-sm-x);
16724
16634
  }
16725
16635
 
16726
- .muka-accordion__item:last-child {
16636
+ .muka-alert--md {
16637
+ padding: var(--alert-padding-md-y) var(--alert-padding-md-x);
16638
+ }
16639
+
16640
+ .muka-alert--lg {
16641
+ padding: var(--alert-padding-lg-y) var(--alert-padding-lg-x);
16642
+ }
16643
+
16644
+ /* Variant: Info */
16645
+ .muka-alert--info {
16646
+ background-color: var(--alert-color-info-background);
16647
+ color: var(--alert-color-info-foreground);
16648
+ }
16649
+
16650
+ .muka-alert--info .muka-alert__icon {
16651
+ color: var(--alert-color-info-accent);
16652
+ }
16653
+
16654
+ .muka-alert--info .muka-alert__title {
16655
+ color: var(--alert-color-info-accent);
16656
+ }
16657
+
16658
+ .muka-alert--info .muka-alert__dismiss {
16659
+ color: var(--alert-color-info-accent);
16660
+ }
16661
+
16662
+ /* Variant: Success */
16663
+ .muka-alert--success {
16664
+ background-color: var(--alert-color-success-background);
16665
+ color: var(--alert-color-success-foreground);
16666
+ }
16667
+
16668
+ .muka-alert--success .muka-alert__icon {
16669
+ color: var(--alert-color-success-accent);
16670
+ }
16671
+
16672
+ .muka-alert--success .muka-alert__title {
16673
+ color: var(--alert-color-success-accent);
16674
+ }
16675
+
16676
+ .muka-alert--success .muka-alert__dismiss {
16677
+ color: var(--alert-color-success-accent);
16678
+ }
16679
+
16680
+ /* Variant: Warning */
16681
+ .muka-alert--warning {
16682
+ background-color: var(--alert-color-warning-background);
16683
+ color: var(--alert-color-warning-foreground);
16684
+ }
16685
+
16686
+ .muka-alert--warning .muka-alert__icon {
16687
+ color: var(--alert-color-warning-accent);
16688
+ }
16689
+
16690
+ .muka-alert--warning .muka-alert__title {
16691
+ color: var(--alert-color-warning-accent);
16692
+ }
16693
+
16694
+ .muka-alert--warning .muka-alert__dismiss {
16695
+ color: var(--alert-color-warning-accent);
16696
+ }
16697
+
16698
+ /* Variant: Error */
16699
+ .muka-alert--error {
16700
+ background-color: var(--alert-color-error-background);
16701
+ color: var(--alert-color-error-foreground);
16702
+ }
16703
+
16704
+ .muka-alert--error .muka-alert__icon {
16705
+ color: var(--alert-color-error-accent);
16706
+ }
16707
+
16708
+ .muka-alert--error .muka-alert__title {
16709
+ color: var(--alert-color-error-accent);
16710
+ }
16711
+
16712
+ .muka-alert--error .muka-alert__dismiss {
16713
+ color: var(--alert-color-error-accent);
16714
+ }
16715
+
16716
+ /* Icon */
16717
+ .muka-alert__icon {
16718
+ display: flex;
16719
+ align-items: center;
16720
+ justify-content: center;
16721
+ flex-shrink: 0;
16722
+ width: var(--alert-icon-size);
16723
+ height: var(--alert-icon-size);
16724
+ }
16725
+
16726
+ .muka-alert__icon svg {
16727
+ width: 100%;
16728
+ height: 100%;
16729
+ }
16730
+
16731
+ /* The leading icon and the dismiss (×) icon inherit the variant accent set on
16732
+ their container, overriding the Icon component's default color. */
16733
+ .muka-alert__icon .muka-icon,
16734
+ .muka-alert__dismiss .muka-icon {
16735
+ color: inherit;
16736
+ }
16737
+
16738
+ /* Content */
16739
+ .muka-alert__content {
16740
+ flex: 1;
16741
+ min-width: 0;
16742
+ }
16743
+
16744
+ .muka-alert__title {
16745
+ font-family: var(--text-label-md-semibold-fontFamily);
16746
+ font-weight: var(--text-label-md-semibold-fontWeight);
16747
+ font-size: var(--text-label-md-semibold-fontSize);
16748
+ line-height: var(--text-label-md-semibold-lineHeight);
16749
+ margin-bottom: var(--spacing-1);
16750
+ }
16751
+
16752
+ .muka-alert--sm .muka-alert__title {
16753
+ font-family: var(--text-label-sm-semibold-fontFamily);
16754
+ font-weight: var(--text-label-sm-semibold-fontWeight);
16755
+ font-size: var(--text-label-sm-semibold-fontSize);
16756
+ line-height: var(--text-label-sm-semibold-lineHeight);
16757
+ }
16758
+
16759
+ .muka-alert--lg .muka-alert__title {
16760
+ font-family: var(--text-label-lg-semibold-fontFamily);
16761
+ font-weight: var(--text-label-lg-semibold-fontWeight);
16762
+ font-size: var(--text-label-lg-semibold-fontSize);
16763
+ line-height: var(--text-label-lg-semibold-lineHeight);
16764
+ }
16765
+
16766
+ .muka-alert__message {
16767
+ font-family: var(--text-body-sm-regular-fontFamily);
16768
+ font-weight: var(--text-body-sm-regular-fontWeight);
16769
+ font-size: var(--text-body-sm-regular-fontSize);
16770
+ line-height: var(--text-body-sm-regular-lineHeight);
16771
+ /* Beat ambient docs/page text colors (e.g. Storybook sbdocs) so variant
16772
+ foreground stays readable in light and dark themes. */
16773
+ color: inherit;
16774
+ }
16775
+
16776
+ .muka-alert .muka-alert__message,
16777
+ .muka-alert .muka-alert__message * {
16778
+ color: inherit;
16779
+ }
16780
+
16781
+ .muka-alert--lg .muka-alert__message {
16782
+ font-family: var(--text-body-base-regular-fontFamily);
16783
+ font-weight: var(--text-body-base-regular-fontWeight);
16784
+ font-size: var(--text-body-base-regular-fontSize);
16785
+ line-height: var(--text-body-base-regular-lineHeight);
16786
+ }
16787
+
16788
+ /* Action slot — TextLink (or similar) below the message, matching Figma */
16789
+ .muka-alert__action {
16790
+ display: flex;
16791
+ flex-direction: column;
16792
+ align-items: flex-start;
16793
+ padding-top: var(--spacing-1);
16794
+ }
16795
+
16796
+ /* Dismiss button - uses accent color per variant, aligned with icon row */
16797
+ .muka-alert__dismiss {
16798
+ display: flex;
16799
+ align-items: center;
16800
+ justify-content: center;
16801
+ flex-shrink: 0;
16802
+ align-self: flex-start;
16803
+ width: 24px;
16804
+ height: 24px;
16805
+ padding: 0;
16806
+ margin: 0 0 0 auto;
16807
+ border: none;
16808
+ background: transparent;
16809
+ cursor: pointer;
16810
+ border-radius: var(--border-radius-sm);
16811
+ transition: opacity 0.15s ease, background-color 0.15s ease;
16812
+ }
16813
+
16814
+ .muka-alert__dismiss:hover {
16815
+ opacity: 0.85;
16816
+ background-color: rgba(0, 0, 0, 0.05);
16817
+ }
16818
+
16819
+ .muka-alert__dismiss:focus-visible {
16820
+ outline: 2px solid var(--color-border-focus);
16821
+ outline-offset: 2px;
16822
+ }
16823
+
16824
+ .muka-alert__dismiss svg {
16825
+ width: 16px;
16826
+ height: 16px;
16827
+ }
16828
+
16829
+
16830
+ /* Accordion */
16831
+ /* Accordion Component Styles */
16832
+
16833
+ .muka-accordion {
16834
+ width: 100%;
16835
+ }
16836
+
16837
+ /* Item */
16838
+ .muka-accordion__item {
16839
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
16840
+ }
16841
+
16842
+ .muka-accordion__item:last-child {
16727
16843
  border-bottom: none;
16728
16844
  }
16729
16845
 
@@ -16841,111 +16957,3 @@ button.muka-chat-photo-grid__tile:focus-visible {
16841
16957
  border-bottom: none;
16842
16958
  }
16843
16959
 
16844
-
16845
- /* SwipeActions */
16846
- /* SwipeActions Component Styles */
16847
-
16848
- .muka-swipe-actions {
16849
- position: relative;
16850
- overflow: hidden;
16851
- touch-action: pan-y;
16852
- -webkit-user-select: none;
16853
- user-select: none;
16854
- background-color: var(--color-surface-level3);
16855
- }
16856
-
16857
- .muka-swipe-actions--disabled {
16858
- touch-action: auto;
16859
- }
16860
-
16861
- /* ─── Row that holds the actual content ────────────────── */
16862
-
16863
- .muka-swipe-actions__row {
16864
- position: relative;
16865
- z-index: 1;
16866
- background-color: inherit;
16867
- will-change: transform;
16868
- }
16869
-
16870
- /* ─── Action panels — sit beneath the row ──────────────── */
16871
-
16872
- .muka-swipe-actions__panel {
16873
- position: absolute;
16874
- top: 0;
16875
- bottom: 0;
16876
- display: flex;
16877
- align-items: stretch;
16878
- z-index: 0;
16879
- }
16880
-
16881
- .muka-swipe-actions__panel--left {
16882
- left: 0;
16883
- }
16884
-
16885
- .muka-swipe-actions__panel--right {
16886
- right: 0;
16887
- }
16888
-
16889
- /* ─── Single action button ─────────────────────────────── */
16890
-
16891
- .muka-swipe-actions__button {
16892
- display: flex;
16893
- flex-direction: column;
16894
- align-items: center;
16895
- justify-content: center;
16896
- gap: var(--spacing-1);
16897
- border: none;
16898
- cursor: pointer;
16899
- padding: var(--spacing-2);
16900
- background-color: var(--color-surface-level2);
16901
- color: var(--color-text-default-default);
16902
- font-family: var(--text-label-sm-semibold-fontFamily);
16903
- font-weight: var(--text-label-sm-semibold-fontWeight);
16904
- font-size: var(--text-label-sm-semibold-fontSize);
16905
- line-height: var(--text-label-sm-semibold-lineHeight);
16906
- -webkit-tap-highlight-color: transparent;
16907
- transition: filter 0.12s ease;
16908
- }
16909
-
16910
- .muka-swipe-actions__button:hover {
16911
- filter: brightness(0.95);
16912
- }
16913
-
16914
- .muka-swipe-actions__button:focus-visible {
16915
- outline: 2px solid var(--color-action-default);
16916
- outline-offset: -2px;
16917
- }
16918
-
16919
- .muka-swipe-actions__button-icon {
16920
- display: inline-flex;
16921
- align-items: center;
16922
- justify-content: center;
16923
- }
16924
-
16925
- /* ─── Color variants ───────────────────────────────────── */
16926
-
16927
- .muka-swipe-actions__button--neutral {
16928
- background-color: var(--color-surface-level2);
16929
- color: var(--color-text-default-default);
16930
- }
16931
-
16932
- .muka-swipe-actions__button--primary {
16933
- background-color: var(--color-action-default);
16934
- color: var(--color-text-default-inverse);
16935
- }
16936
-
16937
- .muka-swipe-actions__button--success {
16938
- background-color: var(--color-state-success-default);
16939
- color: var(--color-text-default-inverse);
16940
- }
16941
-
16942
- .muka-swipe-actions__button--warning {
16943
- background-color: var(--color-state-warning-default);
16944
- color: var(--color-text-default-default);
16945
- }
16946
-
16947
- .muka-swipe-actions__button--destructive {
16948
- background-color: var(--color-state-error-default);
16949
- color: var(--color-text-default-inverse);
16950
- }
16951
-