@revikornmann/muka-ui 0.34.0 → 0.35.1

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.
@@ -3681,88 +3681,6 @@ body {
3681
3681
  }
3682
3682
 
3683
3683
 
3684
- /* TextLink */
3685
- /* TextLink Component Styles - Using Muka Design Tokens */
3686
-
3687
- .muka-text-link {
3688
- display: inline;
3689
- cursor: pointer;
3690
- text-decoration: underline;
3691
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
3692
- text-underline-offset: 0.2em;
3693
- text-decoration-thickness: from-font;
3694
- /* Rounds the focus ring's corners; the link itself has no visible box. */
3695
- border-radius: var(--border-radius-sm);
3696
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
3697
- }
3698
-
3699
- /* ─── Sizes ───────────────────────────────────────────────
3700
- Mirrors the body text scale so a link matches the copy it sits in. */
3701
- .muka-text-link--sm {
3702
- font-family: var(--text-body-sm-regular-fontFamily);
3703
- font-weight: var(--text-body-sm-regular-fontWeight);
3704
- font-size: var(--text-body-sm-regular-fontSize);
3705
- line-height: var(--text-body-sm-regular-lineHeight);
3706
- }
3707
-
3708
- .muka-text-link--base {
3709
- font-family: var(--text-body-base-regular-fontFamily);
3710
- font-weight: var(--text-body-base-regular-fontWeight);
3711
- font-size: var(--text-body-base-regular-fontSize);
3712
- line-height: var(--text-body-base-regular-lineHeight);
3713
- }
3714
-
3715
- .muka-text-link--lg {
3716
- font-family: var(--text-body-lg-regular-fontFamily);
3717
- font-weight: var(--text-body-lg-regular-fontWeight);
3718
- font-size: var(--text-body-lg-regular-fontSize);
3719
- line-height: var(--text-body-lg-regular-lineHeight);
3720
- }
3721
-
3722
- /* ─── Variant: default (accent) ───────────────────────────
3723
- Visited repeats the default colour on purpose: the design treats visited and
3724
- default the same, and pinning it stops the browser's purple from showing. */
3725
- .muka-text-link--default,
3726
- .muka-text-link--default:visited {
3727
- color: var(--color-text-action-default);
3728
- }
3729
-
3730
- .muka-text-link--default:hover,
3731
- .muka-text-link--default:focus-visible {
3732
- color: var(--color-text-action-hover);
3733
- }
3734
-
3735
- .muka-text-link--default:active {
3736
- color: var(--color-text-action-pressed);
3737
- }
3738
-
3739
- /* ─── Variant: subtle (neutral) ───────────────────────────
3740
- Hover, focus and pressed all darken to the default text colour. */
3741
- .muka-text-link--subtle,
3742
- .muka-text-link--subtle:visited {
3743
- color: var(--color-text-subtle-default);
3744
- }
3745
-
3746
- .muka-text-link--subtle:hover,
3747
- .muka-text-link--subtle:focus-visible,
3748
- .muka-text-link--subtle:active {
3749
- color: var(--color-text-default-default);
3750
- }
3751
-
3752
- /* ─── Focus ───────────────────────────────────────────────
3753
- Same ring as every other focusable Muka component. */
3754
- .muka-text-link:focus-visible {
3755
- outline: 2px solid var(--color-border-focus);
3756
- outline-offset: 2px;
3757
- }
3758
-
3759
- @media (prefers-reduced-motion: reduce) {
3760
- .muka-text-link {
3761
- transition: none;
3762
- }
3763
- }
3764
-
3765
-
3766
3684
  /* Thumbnail */
3767
3685
  /* Thumbnail Component Styles - Using Muka Design Tokens */
3768
3686
 
@@ -3948,357 +3866,439 @@ body {
3948
3866
  }
3949
3867
 
3950
3868
 
3951
- /* Tabs */
3952
- /* Tabs Component Styles - Clean underline style tabs matching Figma */
3869
+ /* Textarea */
3870
+ /* Textarea Component Styles - Using Muka Design Tokens */
3953
3871
 
3954
- .muka-tabs {
3955
- display: flex;
3872
+ .muka-textarea {
3873
+ display: inline-flex;
3956
3874
  flex-direction: column;
3875
+ gap: var(--spacing-2);
3957
3876
  }
3958
3877
 
3959
- /* Alignment Variants */
3960
- .muka-tabs--align-left .muka-tabs__list {
3961
- justify-content: flex-start;
3962
- }
3963
- .muka-tabs--align-center .muka-tabs__list {
3964
- justify-content: center;
3965
- }
3966
- .muka-tabs--align-fill .muka-tabs__list {
3967
- justify-content: space-between;
3968
- }
3969
- .muka-tabs--align-fill .muka-tabs__trigger {
3970
- flex: 1;
3878
+ /* Label */
3879
+ .muka-textarea__label {
3880
+ color: var(--color-text-default-default);
3881
+ cursor: pointer;
3971
3882
  }
3972
3883
 
3973
- /* Tab List — strip container */
3974
- .muka-tabs__list {
3975
- display: flex;
3976
- align-items: center;
3977
- position: relative;
3978
- z-index: 2;
3979
- border-bottom: 1px solid var(--tabs-trigger-color-default-border);
3884
+ .muka-textarea__label--sm {
3885
+ font-family: var(--text-label-sm-semibold-fontFamily);
3886
+ font-weight: var(--text-label-sm-semibold-fontWeight);
3887
+ font-size: var(--text-label-sm-semibold-fontSize);
3888
+ line-height: var(--text-label-sm-semibold-lineHeight);
3980
3889
  }
3981
3890
 
3982
- /* Padding: inset the tabs; the divider (border) still spans the full width */
3983
- .muka-tabs--padding-default .muka-tabs__list {
3984
- padding-inline: var(--tabs-list-padding-x);
3891
+ .muka-textarea__label--md {
3892
+ font-family: var(--text-label-md-semibold-fontFamily);
3893
+ font-weight: var(--text-label-md-semibold-fontWeight);
3894
+ font-size: var(--text-label-md-semibold-fontSize);
3895
+ line-height: var(--text-label-md-semibold-lineHeight);
3985
3896
  }
3986
3897
 
3987
- /* Tab Trigger — clean underline style */
3988
- .muka-tabs__trigger {
3989
- display: inline-flex;
3990
- align-items: center;
3991
- justify-content: center;
3992
- gap: var(--spacing-1);
3993
- background: transparent;
3994
- border: none;
3995
- cursor: pointer;
3996
- user-select: none;
3997
- transition: background-color 0.2s ease, color 0.2s ease;
3998
- outline: none;
3999
- white-space: nowrap;
4000
- position: relative;
4001
- z-index: 2;
4002
- color: var(--tabs-trigger-color-default-foreground);
4003
-
4004
- /* Default MD size values */
4005
- min-height: var(--tabs-trigger-min-height-md);
4006
- padding: var(--spacing-3);
4007
- font-family: var(--text-label-md-regular-fontFamily);
4008
- font-weight: var(--text-label-md-regular-fontWeight);
4009
- font-size: var(--text-label-md-regular-fontSize);
4010
- line-height: var(--text-label-md-regular-lineHeight);
3898
+ .muka-textarea__label--lg {
3899
+ font-family: var(--text-label-lg-semibold-fontFamily);
3900
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3901
+ font-size: var(--text-label-lg-semibold-fontSize);
3902
+ line-height: var(--text-label-lg-semibold-lineHeight);
4011
3903
  }
4012
3904
 
4013
- /* Size Variants */
4014
- .muka-tabs--size-sm .muka-tabs__trigger {
4015
- min-height: var(--tabs-trigger-min-height-sm);
4016
- padding: 0 var(--spacing-2);
4017
- font-family: var(--text-label-sm-regular-fontFamily);
4018
- font-weight: var(--text-label-sm-regular-fontWeight);
4019
- font-size: var(--text-label-sm-regular-fontSize);
4020
- line-height: var(--text-label-sm-regular-lineHeight);
3905
+ .muka-textarea__required {
3906
+ color: var(--color-state-error-default);
4021
3907
  }
4022
3908
 
4023
- .muka-tabs--size-lg .muka-tabs__trigger {
4024
- min-height: var(--tabs-trigger-min-height-lg);
4025
- padding: var(--spacing-4);
4026
- font-family: var(--text-label-lg-regular-fontFamily);
4027
- font-weight: var(--text-label-lg-regular-fontWeight);
4028
- font-size: var(--text-label-lg-regular-fontSize);
4029
- line-height: var(--text-label-lg-regular-lineHeight);
3909
+ /* Field container */
3910
+ .muka-textarea__field {
3911
+ display: flex;
3912
+ background-color: var(--input-field-color-default-background);
3913
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
3914
+ border-radius: var(--input-field-radius-md);
3915
+ padding: var(--input-field-padding-y) var(--input-field-padding-x);
3916
+ transition: border-color 0.2s ease, background-color 0.2s ease;
3917
+ box-sizing: border-box;
4030
3918
  }
4031
3919
 
4032
- /* Hover state */
4033
- .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
4034
- color: var(--tabs-trigger-color-hover-foreground);
3920
+ .muka-textarea__field--sm {
3921
+ min-height: var(--input-textarea-height-sm);
3922
+ border-radius: var(--input-field-radius-sm);
4035
3923
  }
4036
3924
 
4037
- /* Current tab */
4038
- .muka-tabs__trigger--current {
4039
- color: var(--tabs-trigger-color-current-foreground);
3925
+ .muka-textarea__field--md {
3926
+ min-height: var(--input-textarea-height-default);
3927
+ border-radius: var(--input-field-radius-md);
4040
3928
  }
4041
3929
 
4042
- /* Active bottom border (underline) */
4043
- .muka-tabs__trigger--current::after {
4044
- content: '';
4045
- position: absolute;
4046
- bottom: -1px; /* Overlap the 1px border */
4047
- left: 0;
4048
- right: 0;
4049
- height: var(--tabs-indicator-height-md);
4050
- background-color: var(--tabs-indicator-color);
4051
- border-bottom-left-radius: 1px;
4052
- border-bottom-right-radius: 1px;
4053
- border-top-left-radius: 3px;
4054
- border-top-right-radius: 3px;
4055
- z-index: 3;
3930
+ .muka-textarea__field--lg {
3931
+ min-height: var(--input-textarea-height-lg);
3932
+ border-radius: var(--input-field-radius-lg);
4056
3933
  }
4057
3934
 
4058
- .muka-tabs--size-sm .muka-tabs__trigger--current::after {
4059
- height: var(--tabs-indicator-height-sm);
3935
+ /* Focus state */
3936
+ .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3937
+ border-width: var(--border-width-bold);
3938
+ border-color: var(--input-field-color-focus-border);
3939
+ background-color: var(--input-field-color-focus-background);
3940
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4060
3941
  }
4061
- .muka-tabs--size-lg .muka-tabs__trigger--current::after {
4062
- height: var(--tabs-indicator-height-lg);
3942
+
3943
+ /* Error state */
3944
+ .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
3945
+ border-width: var(--border-width-bold);
3946
+ border-color: var(--input-field-color-error-border);
3947
+ background-color: var(--input-field-color-error-background);
3948
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4063
3949
  }
4064
3950
 
4065
- .muka-tabs__trigger--disabled {
4066
- color: var(--tabs-trigger-color-disabled-foreground);
3951
+ /* Disabled state */
3952
+ .muka-textarea__field--disabled {
3953
+ background-color: var(--input-field-color-disabled-background);
3954
+ border-color: var(--input-field-color-disabled-border);
4067
3955
  cursor: not-allowed;
4068
3956
  }
4069
3957
 
4070
- .muka-tabs__trigger:focus-visible {
4071
- outline: 2px solid var(--color-border-focus);
4072
- outline-offset: -2px;
3958
+ /* Native textarea */
3959
+ .muka-textarea__native {
3960
+ flex: 1;
3961
+ border: none;
3962
+ outline: none;
3963
+ background: transparent;
3964
+ color: var(--input-field-color-default-foreground);
3965
+ font-family: var(--text-input-md-fontFamily);
3966
+ font-weight: var(--text-input-md-fontWeight);
3967
+ font-size: var(--text-input-md-fontSize);
3968
+ line-height: var(--text-input-md-lineHeight);
3969
+ padding: 0;
3970
+ width: 100%;
3971
+ min-width: 0;
4073
3972
  }
4074
3973
 
4075
- /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
4076
- item sits 12px from the text */
4077
- .muka-tabs__label {
4078
- padding: 0 var(--spacing-2);
4079
- }
3974
+ .muka-textarea__field--sm .muka-textarea__native {
3975
+ font-family: var(--text-input-sm-fontFamily);
3976
+ font-weight: var(--text-input-sm-fontWeight);
3977
+ font-size: var(--text-input-sm-fontSize);
3978
+ line-height: var(--text-input-sm-lineHeight);
3979
+ }
4080
3980
 
4081
- /* Leading item: icon, avatar, avatar group or data pie chart */
4082
- .muka-tabs__leading {
3981
+ .muka-textarea__field--lg .muka-textarea__native {
3982
+ font-family: var(--text-input-lg-fontFamily);
3983
+ font-weight: var(--text-input-lg-fontWeight);
3984
+ font-size: var(--text-input-lg-fontSize);
3985
+ line-height: var(--text-input-lg-lineHeight);
3986
+ }
3987
+
3988
+ .muka-textarea__native::placeholder {
3989
+ color: var(--color-text-subtle-default);
3990
+ }
3991
+
3992
+ .muka-textarea__field--disabled .muka-textarea__native {
3993
+ color: var(--input-field-color-disabled-foreground);
3994
+ cursor: not-allowed;
3995
+ }
3996
+
3997
+ /* Footer (helper/error + count) */
3998
+ .muka-textarea__footer {
4083
3999
  display: flex;
4084
- align-items: center;
4085
- justify-content: center;
4086
- flex-shrink: 0;
4000
+ justify-content: space-between;
4001
+ align-items: flex-start;
4002
+ gap: var(--spacing-2);
4087
4003
  }
4088
- .muka-tabs__trigger .muka-icon {
4089
- color: inherit;
4004
+
4005
+ .muka-textarea__helper {
4006
+ font-family: var(--text-label-sm-regular-fontFamily);
4007
+ font-weight: var(--text-label-sm-regular-fontWeight);
4008
+ font-size: var(--text-label-sm-regular-fontSize);
4009
+ line-height: var(--text-label-sm-regular-lineHeight);
4010
+ color: var(--color-text-subtle-default);
4011
+ margin: 0;
4090
4012
  }
4091
- /* Icon sizes only: avatars and pie charts are sized through their size prop */
4092
- .muka-tabs--size-sm .muka-tabs__leading > svg,
4093
- .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
4094
- .muka-tabs--size-md .muka-tabs__leading > svg,
4095
- .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
4096
- .muka-tabs--size-lg .muka-tabs__leading > svg,
4097
- .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
4098
4013
 
4099
- /* Responsive Scroll behavior on small screens */
4100
- @media (max-width: 768px) {
4101
- .muka-tabs__list {
4102
- /* Make scrollable */
4103
- overflow-x: auto;
4104
- overflow-y: hidden;
4105
- /* Force left alignment on mobile to prevent clipping when scrolling */
4106
- justify-content: flex-start !important;
4107
- max-width: 100vw;
4108
- -webkit-overflow-scrolling: touch;
4109
- /* Hide scrollbar for cleaner look */
4110
- scrollbar-width: none;
4111
- }
4112
- .muka-tabs__list::-webkit-scrollbar {
4113
- display: none;
4114
- }
4115
- /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
4116
- .muka-tabs--align-fill .muka-tabs__trigger {
4117
- flex: 0 0 auto;
4118
- }
4014
+ .muka-textarea__error {
4015
+ font-family: var(--text-label-sm-regular-fontFamily);
4016
+ font-weight: var(--text-label-sm-regular-fontWeight);
4017
+ font-size: var(--text-label-sm-regular-fontSize);
4018
+ line-height: var(--text-label-sm-regular-lineHeight);
4019
+ color: var(--color-state-error-default);
4020
+ margin: 0;
4119
4021
  }
4120
4022
 
4121
- /* Tab Panel — content area */
4122
- .muka-tabs__panel {
4123
- background-color: var(--tabs-panel-background);
4124
- /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
4125
- border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
4126
- padding: var(--spacing-4);
4127
- position: relative;
4128
- z-index: 1;
4023
+ .muka-textarea__count {
4024
+ font-family: var(--text-label-sm-regular-fontFamily);
4025
+ font-weight: var(--text-label-sm-regular-fontWeight);
4026
+ font-size: var(--text-label-sm-regular-fontSize);
4027
+ line-height: var(--text-label-sm-regular-lineHeight);
4028
+ color: var(--color-text-subtle-default);
4029
+ margin-left: auto;
4030
+ }
4031
+
4032
+
4033
+ /* TextLink */
4034
+ /* TextLink Component Styles - Using Muka Design Tokens */
4035
+
4036
+ .muka-text-link {
4037
+ display: inline;
4038
+ cursor: pointer;
4039
+ text-decoration: underline;
4040
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4041
+ text-underline-offset: 0.2em;
4042
+ text-decoration-thickness: from-font;
4043
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
4044
+ border-radius: var(--border-radius-sm);
4045
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4046
+ }
4047
+
4048
+ /* ─── Sizes ───────────────────────────────────────────────
4049
+ Mirrors the body text scale so a link matches the copy it sits in. */
4050
+ .muka-text-link--sm {
4051
+ font-family: var(--text-body-sm-regular-fontFamily);
4052
+ font-weight: var(--text-body-sm-regular-fontWeight);
4053
+ font-size: var(--text-body-sm-regular-fontSize);
4054
+ line-height: var(--text-body-sm-regular-lineHeight);
4055
+ }
4056
+
4057
+ .muka-text-link--base {
4129
4058
  font-family: var(--text-body-base-regular-fontFamily);
4130
4059
  font-weight: var(--text-body-base-regular-fontWeight);
4131
4060
  font-size: var(--text-body-base-regular-fontSize);
4132
4061
  line-height: var(--text-body-base-regular-lineHeight);
4133
4062
  }
4134
4063
 
4135
- .muka-tabs__panel:focus-visible {
4136
- outline: 2px solid var(--color-border-focus);
4137
- outline-offset: 2px;
4064
+ .muka-text-link--lg {
4065
+ font-family: var(--text-body-lg-regular-fontFamily);
4066
+ font-weight: var(--text-body-lg-regular-fontWeight);
4067
+ font-size: var(--text-body-lg-regular-fontSize);
4068
+ line-height: var(--text-body-lg-regular-lineHeight);
4138
4069
  }
4139
4070
 
4071
+ /* ─── Variant: default (accent) ───────────────────────────
4072
+ Visited repeats the default colour on purpose: the design treats visited and
4073
+ default the same, and pinning it stops the browser's purple from showing. */
4074
+ .muka-text-link--default,
4075
+ .muka-text-link--default:visited {
4076
+ color: var(--color-text-action-default);
4077
+ }
4140
4078
 
4141
- /* Textarea */
4142
- /* Textarea Component Styles - Using Muka Design Tokens */
4079
+ .muka-text-link--default:hover,
4080
+ .muka-text-link--default:focus-visible {
4081
+ color: var(--color-text-action-hover);
4082
+ }
4143
4083
 
4144
- .muka-textarea {
4145
- display: inline-flex;
4146
- flex-direction: column;
4147
- gap: var(--spacing-2);
4084
+ .muka-text-link--default:active {
4085
+ color: var(--color-text-action-pressed);
4148
4086
  }
4149
4087
 
4150
- /* Label */
4151
- .muka-textarea__label {
4088
+ /* ─── Variant: subtle (neutral) ───────────────────────────
4089
+ Hover, focus and pressed all darken to the default text colour. */
4090
+ .muka-text-link--subtle,
4091
+ .muka-text-link--subtle:visited {
4092
+ color: var(--color-text-subtle-default);
4093
+ }
4094
+
4095
+ .muka-text-link--subtle:hover,
4096
+ .muka-text-link--subtle:focus-visible,
4097
+ .muka-text-link--subtle:active {
4152
4098
  color: var(--color-text-default-default);
4153
- cursor: pointer;
4154
4099
  }
4155
4100
 
4156
- .muka-textarea__label--sm {
4157
- font-family: var(--text-label-sm-semibold-fontFamily);
4158
- font-weight: var(--text-label-sm-semibold-fontWeight);
4159
- font-size: var(--text-label-sm-semibold-fontSize);
4160
- line-height: var(--text-label-sm-semibold-lineHeight);
4101
+ /* ─── Focus ───────────────────────────────────────────────
4102
+ Same ring as every other focusable Muka component. */
4103
+ .muka-text-link:focus-visible {
4104
+ outline: 2px solid var(--color-border-focus);
4105
+ outline-offset: 2px;
4161
4106
  }
4162
4107
 
4163
- .muka-textarea__label--md {
4164
- font-family: var(--text-label-md-semibold-fontFamily);
4165
- font-weight: var(--text-label-md-semibold-fontWeight);
4166
- font-size: var(--text-label-md-semibold-fontSize);
4167
- line-height: var(--text-label-md-semibold-lineHeight);
4108
+ @media (prefers-reduced-motion: reduce) {
4109
+ .muka-text-link {
4110
+ transition: none;
4111
+ }
4168
4112
  }
4169
4113
 
4170
- .muka-textarea__label--lg {
4171
- font-family: var(--text-label-lg-semibold-fontFamily);
4172
- font-weight: var(--text-label-lg-semibold-fontWeight);
4173
- font-size: var(--text-label-lg-semibold-fontSize);
4174
- line-height: var(--text-label-lg-semibold-lineHeight);
4114
+
4115
+ /* Tabs */
4116
+ /* Tabs Component Styles - Clean underline style tabs matching Figma */
4117
+
4118
+ .muka-tabs {
4119
+ display: flex;
4120
+ flex-direction: column;
4175
4121
  }
4176
4122
 
4177
- .muka-textarea__required {
4178
- color: var(--color-state-error-default);
4123
+ /* Alignment Variants */
4124
+ .muka-tabs--align-left .muka-tabs__list {
4125
+ justify-content: flex-start;
4126
+ }
4127
+ .muka-tabs--align-center .muka-tabs__list {
4128
+ justify-content: center;
4129
+ }
4130
+ .muka-tabs--align-fill .muka-tabs__list {
4131
+ justify-content: space-between;
4132
+ }
4133
+ .muka-tabs--align-fill .muka-tabs__trigger {
4134
+ flex: 1;
4179
4135
  }
4180
4136
 
4181
- /* Field container */
4182
- .muka-textarea__field {
4137
+ /* Tab List — strip container */
4138
+ .muka-tabs__list {
4183
4139
  display: flex;
4184
- background-color: var(--input-field-color-default-background);
4185
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
4186
- border-radius: var(--input-field-radius-md);
4187
- padding: var(--input-field-padding-y) var(--input-field-padding-x);
4188
- transition: border-color 0.2s ease, background-color 0.2s ease;
4189
- box-sizing: border-box;
4140
+ align-items: center;
4141
+ position: relative;
4142
+ z-index: 2;
4143
+ border-bottom: 1px solid var(--tabs-trigger-color-default-border);
4190
4144
  }
4191
4145
 
4192
- .muka-textarea__field--sm {
4193
- min-height: var(--input-textarea-height-sm);
4194
- border-radius: var(--input-field-radius-sm);
4146
+ /* Padding: inset the tabs; the divider (border) still spans the full width */
4147
+ .muka-tabs--padding-default .muka-tabs__list {
4148
+ padding-inline: var(--tabs-list-padding-x);
4195
4149
  }
4196
4150
 
4197
- .muka-textarea__field--md {
4198
- min-height: var(--input-textarea-height-default);
4199
- border-radius: var(--input-field-radius-md);
4151
+ /* Tab Trigger — clean underline style */
4152
+ .muka-tabs__trigger {
4153
+ display: inline-flex;
4154
+ align-items: center;
4155
+ justify-content: center;
4156
+ gap: var(--spacing-1);
4157
+ background: transparent;
4158
+ border: none;
4159
+ cursor: pointer;
4160
+ user-select: none;
4161
+ transition: background-color 0.2s ease, color 0.2s ease;
4162
+ outline: none;
4163
+ white-space: nowrap;
4164
+ position: relative;
4165
+ z-index: 2;
4166
+ color: var(--tabs-trigger-color-default-foreground);
4167
+
4168
+ /* Default MD size values */
4169
+ min-height: var(--tabs-trigger-min-height-md);
4170
+ padding: var(--spacing-3);
4171
+ font-family: var(--text-label-md-regular-fontFamily);
4172
+ font-weight: var(--text-label-md-regular-fontWeight);
4173
+ font-size: var(--text-label-md-regular-fontSize);
4174
+ line-height: var(--text-label-md-regular-lineHeight);
4200
4175
  }
4201
4176
 
4202
- .muka-textarea__field--lg {
4203
- min-height: var(--input-textarea-height-lg);
4204
- border-radius: var(--input-field-radius-lg);
4177
+ /* Size Variants */
4178
+ .muka-tabs--size-sm .muka-tabs__trigger {
4179
+ min-height: var(--tabs-trigger-min-height-sm);
4180
+ padding: 0 var(--spacing-2);
4181
+ font-family: var(--text-label-sm-regular-fontFamily);
4182
+ font-weight: var(--text-label-sm-regular-fontWeight);
4183
+ font-size: var(--text-label-sm-regular-fontSize);
4184
+ line-height: var(--text-label-sm-regular-lineHeight);
4205
4185
  }
4206
4186
 
4207
- /* Focus state */
4208
- .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
4209
- border-width: var(--border-width-bold);
4210
- border-color: var(--input-field-color-focus-border);
4211
- background-color: var(--input-field-color-focus-background);
4212
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4187
+ .muka-tabs--size-lg .muka-tabs__trigger {
4188
+ min-height: var(--tabs-trigger-min-height-lg);
4189
+ padding: var(--spacing-4);
4190
+ font-family: var(--text-label-lg-regular-fontFamily);
4191
+ font-weight: var(--text-label-lg-regular-fontWeight);
4192
+ font-size: var(--text-label-lg-regular-fontSize);
4193
+ line-height: var(--text-label-lg-regular-lineHeight);
4213
4194
  }
4214
4195
 
4215
- /* Error state */
4216
- .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
4217
- border-width: var(--border-width-bold);
4218
- border-color: var(--input-field-color-error-border);
4219
- background-color: var(--input-field-color-error-background);
4220
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4196
+ /* Hover state */
4197
+ .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
4198
+ color: var(--tabs-trigger-color-hover-foreground);
4221
4199
  }
4222
4200
 
4223
- /* Disabled state */
4224
- .muka-textarea__field--disabled {
4225
- background-color: var(--input-field-color-disabled-background);
4226
- border-color: var(--input-field-color-disabled-border);
4227
- cursor: not-allowed;
4201
+ /* Current tab */
4202
+ .muka-tabs__trigger--current {
4203
+ color: var(--tabs-trigger-color-current-foreground);
4228
4204
  }
4229
4205
 
4230
- /* Native textarea */
4231
- .muka-textarea__native {
4232
- flex: 1;
4233
- border: none;
4234
- outline: none;
4235
- background: transparent;
4236
- color: var(--input-field-color-default-foreground);
4237
- font-family: var(--text-input-md-fontFamily);
4238
- font-weight: var(--text-input-md-fontWeight);
4239
- font-size: var(--text-input-md-fontSize);
4240
- line-height: var(--text-input-md-lineHeight);
4241
- padding: 0;
4242
- width: 100%;
4243
- min-width: 0;
4206
+ /* Active bottom border (underline) */
4207
+ .muka-tabs__trigger--current::after {
4208
+ content: '';
4209
+ position: absolute;
4210
+ bottom: -1px; /* Overlap the 1px border */
4211
+ left: 0;
4212
+ right: 0;
4213
+ height: var(--tabs-indicator-height-md);
4214
+ background-color: var(--tabs-indicator-color);
4215
+ border-bottom-left-radius: 1px;
4216
+ border-bottom-right-radius: 1px;
4217
+ border-top-left-radius: 3px;
4218
+ border-top-right-radius: 3px;
4219
+ z-index: 3;
4244
4220
  }
4245
4221
 
4246
- .muka-textarea__field--sm .muka-textarea__native {
4247
- font-family: var(--text-input-sm-fontFamily);
4248
- font-weight: var(--text-input-sm-fontWeight);
4249
- font-size: var(--text-input-sm-fontSize);
4250
- line-height: var(--text-input-sm-lineHeight);
4222
+ .muka-tabs--size-sm .muka-tabs__trigger--current::after {
4223
+ height: var(--tabs-indicator-height-sm);
4224
+ }
4225
+ .muka-tabs--size-lg .muka-tabs__trigger--current::after {
4226
+ height: var(--tabs-indicator-height-lg);
4251
4227
  }
4252
4228
 
4253
- .muka-textarea__field--lg .muka-textarea__native {
4254
- font-family: var(--text-input-lg-fontFamily);
4255
- font-weight: var(--text-input-lg-fontWeight);
4256
- font-size: var(--text-input-lg-fontSize);
4257
- line-height: var(--text-input-lg-lineHeight);
4229
+ .muka-tabs__trigger--disabled {
4230
+ color: var(--tabs-trigger-color-disabled-foreground);
4231
+ cursor: not-allowed;
4258
4232
  }
4259
4233
 
4260
- .muka-textarea__native::placeholder {
4261
- color: var(--color-text-subtle-default);
4234
+ .muka-tabs__trigger:focus-visible {
4235
+ outline: 2px solid var(--color-border-focus);
4236
+ outline-offset: -2px;
4262
4237
  }
4263
4238
 
4264
- .muka-textarea__field--disabled .muka-textarea__native {
4265
- color: var(--input-field-color-disabled-foreground);
4266
- cursor: not-allowed;
4239
+ /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
4240
+ item sits 12px from the text */
4241
+ .muka-tabs__label {
4242
+ padding: 0 var(--spacing-2);
4267
4243
  }
4268
4244
 
4269
- /* Footer (helper/error + count) */
4270
- .muka-textarea__footer {
4245
+ /* Leading item: icon, avatar, avatar group or data pie chart */
4246
+ .muka-tabs__leading {
4271
4247
  display: flex;
4272
- justify-content: space-between;
4273
- align-items: flex-start;
4274
- gap: var(--spacing-2);
4248
+ align-items: center;
4249
+ justify-content: center;
4250
+ flex-shrink: 0;
4251
+ }
4252
+ .muka-tabs__trigger .muka-icon {
4253
+ color: inherit;
4275
4254
  }
4255
+ /* Icon sizes only: avatars and pie charts are sized through their size prop */
4256
+ .muka-tabs--size-sm .muka-tabs__leading > svg,
4257
+ .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
4258
+ .muka-tabs--size-md .muka-tabs__leading > svg,
4259
+ .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
4260
+ .muka-tabs--size-lg .muka-tabs__leading > svg,
4261
+ .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
4276
4262
 
4277
- .muka-textarea__helper {
4278
- font-family: var(--text-label-sm-regular-fontFamily);
4279
- font-weight: var(--text-label-sm-regular-fontWeight);
4280
- font-size: var(--text-label-sm-regular-fontSize);
4281
- line-height: var(--text-label-sm-regular-lineHeight);
4282
- color: var(--color-text-subtle-default);
4283
- margin: 0;
4263
+ /* Responsive Scroll behavior on small screens */
4264
+ @media (max-width: 768px) {
4265
+ .muka-tabs__list {
4266
+ /* Make scrollable */
4267
+ overflow-x: auto;
4268
+ overflow-y: hidden;
4269
+ /* Force left alignment on mobile to prevent clipping when scrolling */
4270
+ justify-content: flex-start !important;
4271
+ max-width: 100vw;
4272
+ -webkit-overflow-scrolling: touch;
4273
+ /* Hide scrollbar for cleaner look */
4274
+ scrollbar-width: none;
4275
+ }
4276
+ .muka-tabs__list::-webkit-scrollbar {
4277
+ display: none;
4278
+ }
4279
+ /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
4280
+ .muka-tabs--align-fill .muka-tabs__trigger {
4281
+ flex: 0 0 auto;
4282
+ }
4284
4283
  }
4285
4284
 
4286
- .muka-textarea__error {
4287
- font-family: var(--text-label-sm-regular-fontFamily);
4288
- font-weight: var(--text-label-sm-regular-fontWeight);
4289
- font-size: var(--text-label-sm-regular-fontSize);
4290
- line-height: var(--text-label-sm-regular-lineHeight);
4291
- color: var(--color-state-error-default);
4292
- margin: 0;
4285
+ /* Tab Panel — content area */
4286
+ .muka-tabs__panel {
4287
+ background-color: var(--tabs-panel-background);
4288
+ /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
4289
+ border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
4290
+ padding: var(--spacing-4);
4291
+ position: relative;
4292
+ z-index: 1;
4293
+ font-family: var(--text-body-base-regular-fontFamily);
4294
+ font-weight: var(--text-body-base-regular-fontWeight);
4295
+ font-size: var(--text-body-base-regular-fontSize);
4296
+ line-height: var(--text-body-base-regular-lineHeight);
4293
4297
  }
4294
4298
 
4295
- .muka-textarea__count {
4296
- font-family: var(--text-label-sm-regular-fontFamily);
4297
- font-weight: var(--text-label-sm-regular-fontWeight);
4298
- font-size: var(--text-label-sm-regular-fontSize);
4299
- line-height: var(--text-label-sm-regular-lineHeight);
4300
- color: var(--color-text-subtle-default);
4301
- margin-left: auto;
4299
+ .muka-tabs__panel:focus-visible {
4300
+ outline: 2px solid var(--color-border-focus);
4301
+ outline-offset: 2px;
4302
4302
  }
4303
4303
 
4304
4304
 
@@ -4355,6 +4355,20 @@ body {
4355
4355
  background-color: var(--color-surface-level0);
4356
4356
  }
4357
4357
 
4358
+ /* Plain (MUK-103): no tint; small subtle capitals under a section heading. */
4359
+ .muka-table__head--plain .muka-table__row {
4360
+ background-color: transparent;
4361
+ }
4362
+
4363
+ .muka-table__head--plain .muka-table__header-cell {
4364
+ font-family: var(--text-label-sm-regular-fontFamily);
4365
+ font-weight: var(--text-label-sm-regular-fontWeight);
4366
+ font-size: var(--text-label-sm-regular-fontSize);
4367
+ line-height: var(--text-label-sm-regular-lineHeight);
4368
+ color: var(--color-text-subtle-default);
4369
+ text-transform: uppercase;
4370
+ }
4371
+
4358
4372
  /* ========================================
4359
4373
  TABLE BODY
4360
4374
  ======================================== */
@@ -4531,6 +4545,20 @@ body {
4531
4545
  background-color: var(--color-surface-level0);
4532
4546
  }
4533
4547
 
4548
+ /* Plain (MUK-103): no tint; small subtle capitals under a section heading. */
4549
+ .muka-table__head--plain .muka-table__row {
4550
+ background-color: transparent;
4551
+ }
4552
+
4553
+ .muka-table__head--plain .muka-table__header-cell {
4554
+ font-family: var(--text-label-sm-regular-fontFamily);
4555
+ font-weight: var(--text-label-sm-regular-fontWeight);
4556
+ font-size: var(--text-label-sm-regular-fontSize);
4557
+ line-height: var(--text-label-sm-regular-lineHeight);
4558
+ color: var(--color-text-subtle-default);
4559
+ text-transform: uppercase;
4560
+ }
4561
+
4534
4562
  /* ========================================
4535
4563
  TABLE BODY
4536
4564
  ======================================== */
@@ -4762,84 +4790,6 @@ body {
4762
4790
  }
4763
4791
 
4764
4792
 
4765
- /* Spinner */
4766
- /* Spinner Component Styles */
4767
-
4768
- .muka-spinner {
4769
- display: inline-flex;
4770
- align-items: center;
4771
- justify-content: center;
4772
- color: var(--color-text-default-default);
4773
- line-height: 0;
4774
- }
4775
-
4776
- .muka-spinner--subtle {
4777
- color: var(--color-text-subtle-default);
4778
- }
4779
-
4780
- .muka-spinner--inverse {
4781
- color: var(--color-text-default-inverse);
4782
- }
4783
-
4784
- .muka-spinner__circle {
4785
- display: inline-block;
4786
- border-radius: 50%;
4787
- border-style: solid;
4788
- border-color: currentColor;
4789
- border-right-color: transparent;
4790
- animation: muka-spinner-rotate 0.7s linear infinite;
4791
- box-sizing: border-box;
4792
- }
4793
-
4794
- /* ─── Sizes ───────────────────────────────────────────── */
4795
-
4796
- .muka-spinner--sm .muka-spinner__circle {
4797
- width: 16px;
4798
- height: 16px;
4799
- border-width: 2px;
4800
- }
4801
-
4802
- .muka-spinner--md .muka-spinner__circle {
4803
- width: 20px;
4804
- height: 20px;
4805
- border-width: 2px;
4806
- }
4807
-
4808
- .muka-spinner--lg .muka-spinner__circle {
4809
- width: 24px;
4810
- height: 24px;
4811
- border-width: 3px;
4812
- }
4813
-
4814
- /* ─── Visually-hidden label ───────────────────────────── */
4815
-
4816
- .muka-spinner__sr-label {
4817
- position: absolute;
4818
- width: 1px;
4819
- height: 1px;
4820
- padding: 0;
4821
- margin: -1px;
4822
- overflow: hidden;
4823
- clip: rect(0, 0, 0, 0);
4824
- white-space: nowrap;
4825
- border: 0;
4826
- }
4827
-
4828
- /* ─── Reduced motion ──────────────────────────────────── */
4829
-
4830
- @keyframes muka-spinner-rotate {
4831
- to {
4832
- transform: rotate(360deg);
4833
- }
4834
- }
4835
-
4836
- @media (prefers-reduced-motion: reduce) {
4837
- .muka-spinner__circle {
4838
- animation-duration: 2.5s;
4839
- }
4840
- }
4841
-
4842
-
4843
4793
  /* SpecList */
4844
4794
  /* SpecList Component Styles */
4845
4795
 
@@ -4925,6 +4875,84 @@ body {
4925
4875
  }
4926
4876
 
4927
4877
 
4878
+ /* Spinner */
4879
+ /* Spinner Component Styles */
4880
+
4881
+ .muka-spinner {
4882
+ display: inline-flex;
4883
+ align-items: center;
4884
+ justify-content: center;
4885
+ color: var(--color-text-default-default);
4886
+ line-height: 0;
4887
+ }
4888
+
4889
+ .muka-spinner--subtle {
4890
+ color: var(--color-text-subtle-default);
4891
+ }
4892
+
4893
+ .muka-spinner--inverse {
4894
+ color: var(--color-text-default-inverse);
4895
+ }
4896
+
4897
+ .muka-spinner__circle {
4898
+ display: inline-block;
4899
+ border-radius: 50%;
4900
+ border-style: solid;
4901
+ border-color: currentColor;
4902
+ border-right-color: transparent;
4903
+ animation: muka-spinner-rotate 0.7s linear infinite;
4904
+ box-sizing: border-box;
4905
+ }
4906
+
4907
+ /* ─── Sizes ───────────────────────────────────────────── */
4908
+
4909
+ .muka-spinner--sm .muka-spinner__circle {
4910
+ width: 16px;
4911
+ height: 16px;
4912
+ border-width: 2px;
4913
+ }
4914
+
4915
+ .muka-spinner--md .muka-spinner__circle {
4916
+ width: 20px;
4917
+ height: 20px;
4918
+ border-width: 2px;
4919
+ }
4920
+
4921
+ .muka-spinner--lg .muka-spinner__circle {
4922
+ width: 24px;
4923
+ height: 24px;
4924
+ border-width: 3px;
4925
+ }
4926
+
4927
+ /* ─── Visually-hidden label ───────────────────────────── */
4928
+
4929
+ .muka-spinner__sr-label {
4930
+ position: absolute;
4931
+ width: 1px;
4932
+ height: 1px;
4933
+ padding: 0;
4934
+ margin: -1px;
4935
+ overflow: hidden;
4936
+ clip: rect(0, 0, 0, 0);
4937
+ white-space: nowrap;
4938
+ border: 0;
4939
+ }
4940
+
4941
+ /* ─── Reduced motion ──────────────────────────────────── */
4942
+
4943
+ @keyframes muka-spinner-rotate {
4944
+ to {
4945
+ transform: rotate(360deg);
4946
+ }
4947
+ }
4948
+
4949
+ @media (prefers-reduced-motion: reduce) {
4950
+ .muka-spinner__circle {
4951
+ animation-duration: 2.5s;
4952
+ }
4953
+ }
4954
+
4955
+
4928
4956
  /* SocialSignInButton */
4929
4957
  /*
4930
4958
  * SocialSignInButton lockup colors are provider-mandated (Apple HIG /
@@ -5605,14 +5633,37 @@ body {
5605
5633
  margin: 0;
5606
5634
  }
5607
5635
 
5608
- /* Error message — same as Input */
5609
- .muka-select__error {
5610
- font-family: var(--text-label-sm-regular-fontFamily);
5611
- font-weight: var(--text-label-sm-regular-fontWeight);
5612
- font-size: var(--text-label-sm-regular-fontSize);
5613
- line-height: var(--text-label-sm-regular-lineHeight);
5614
- color: var(--color-state-error-default);
5615
- margin: 0;
5636
+ /* Error message — same as Input */
5637
+ .muka-select__error {
5638
+ font-family: var(--text-label-sm-regular-fontFamily);
5639
+ font-weight: var(--text-label-sm-regular-fontWeight);
5640
+ font-size: var(--text-label-sm-regular-fontSize);
5641
+ line-height: var(--text-label-sm-regular-lineHeight);
5642
+ color: var(--color-state-error-default);
5643
+ margin: 0;
5644
+ }
5645
+
5646
+
5647
+ /* Section */
5648
+ /* Section Component - Layout tokens (section.padding) */
5649
+
5650
+ .muka-section {
5651
+ box-sizing: border-box;
5652
+ }
5653
+
5654
+ .muka-section--padding-compact {
5655
+ padding-block: var(--section-padding-vertical-compact);
5656
+ padding-inline: var(--section-padding-horizontal-compact);
5657
+ }
5658
+
5659
+ .muka-section--padding-default {
5660
+ padding-block: var(--section-padding-vertical-default);
5661
+ padding-inline: var(--section-padding-horizontal-default);
5662
+ }
5663
+
5664
+ .muka-section--padding-spacious {
5665
+ padding-block: var(--section-padding-vertical-spacious);
5666
+ padding-inline: var(--section-padding-horizontal-spacious);
5616
5667
  }
5617
5668
 
5618
5669
 
@@ -5804,29 +5855,6 @@ body {
5804
5855
  }
5805
5856
 
5806
5857
 
5807
- /* Section */
5808
- /* Section Component - Layout tokens (section.padding) */
5809
-
5810
- .muka-section {
5811
- box-sizing: border-box;
5812
- }
5813
-
5814
- .muka-section--padding-compact {
5815
- padding-block: var(--section-padding-vertical-compact);
5816
- padding-inline: var(--section-padding-horizontal-compact);
5817
- }
5818
-
5819
- .muka-section--padding-default {
5820
- padding-block: var(--section-padding-vertical-default);
5821
- padding-inline: var(--section-padding-horizontal-default);
5822
- }
5823
-
5824
- .muka-section--padding-spacious {
5825
- padding-block: var(--section-padding-vertical-spacious);
5826
- padding-inline: var(--section-padding-horizontal-spacious);
5827
- }
5828
-
5829
-
5830
5858
  /* SearchInput */
5831
5859
  /* SearchInput Component Styles */
5832
5860
 
@@ -6166,226 +6194,10 @@ body {
6166
6194
  }
6167
6195
  }
6168
6196
 
6169
- @media (prefers-reduced-motion: reduce) {
6170
- .muka-recording-bar__dot {
6171
- animation: none;
6172
- }
6173
- }
6174
-
6175
-
6176
- /* RangeSlider */
6177
- /* RangeSlider Component Styles - Using Muka Design Tokens */
6178
-
6179
- .muka-range-slider {
6180
- display: flex;
6181
- flex-direction: column;
6182
- gap: var(--spacing-1);
6183
- width: 100%;
6184
- }
6185
-
6186
- /* ========================================
6187
- HEADER: label group (label + info + optional) and value readout
6188
- ======================================== */
6189
-
6190
- .muka-range-slider__header {
6191
- display: flex;
6192
- align-items: center;
6193
- justify-content: space-between;
6194
- gap: var(--spacing-2);
6195
- min-height: 24px;
6196
- }
6197
-
6198
- .muka-range-slider__label-group {
6199
- display: inline-flex;
6200
- align-items: center;
6201
- gap: var(--spacing-2);
6202
- }
6203
-
6204
- .muka-range-slider__label {
6205
- font-family: var(--text-label-md-semibold-fontFamily);
6206
- font-weight: var(--text-label-md-semibold-fontWeight);
6207
- font-size: var(--text-label-md-semibold-fontSize);
6208
- line-height: var(--text-label-md-semibold-lineHeight);
6209
- color: var(--color-text-default-default);
6210
- }
6211
-
6212
- .muka-range-slider__info {
6213
- color: var(--color-text-subtle-default);
6214
- }
6215
-
6216
- .muka-range-slider__optional {
6217
- font-family: var(--text-label-sm-regular-fontFamily);
6218
- font-weight: var(--text-label-sm-regular-fontWeight);
6219
- font-size: var(--text-label-sm-regular-fontSize);
6220
- line-height: var(--text-label-sm-regular-lineHeight);
6221
- color: var(--color-text-subtle-default);
6222
- }
6223
-
6224
- .muka-range-slider__value {
6225
- font-family: var(--text-label-md-regular-fontFamily);
6226
- font-weight: var(--text-label-md-regular-fontWeight);
6227
- font-size: var(--text-label-md-regular-fontSize);
6228
- line-height: var(--text-label-md-regular-lineHeight);
6229
- color: var(--color-text-default-default);
6230
- font-variant-numeric: tabular-nums;
6231
- }
6232
-
6233
- .muka-range-slider__helper {
6234
- margin: 0;
6235
- font-family: var(--text-body-sm-regular-fontFamily);
6236
- font-weight: var(--text-body-sm-regular-fontWeight);
6237
- font-size: var(--text-body-sm-regular-fontSize);
6238
- line-height: var(--text-body-sm-regular-lineHeight);
6239
- color: var(--color-text-subtle-default);
6240
- }
6241
-
6242
- /* ========================================
6243
- TRACK + THUMB
6244
- Native range input, restyled. A thick sunken track holds an accent fill up to
6245
- the current value, with a circular grip handle. The filled portion is driven
6246
- by the inline --muka-range-fill custom property (set from the component value).
6247
- ======================================== */
6248
-
6249
- /* Size variants: track height, thumb diameter and grip geometry */
6250
- .muka-range-slider--sm {
6251
- --muka-range-track-h: 12px;
6252
- --muka-range-thumb: 24px;
6253
- --muka-range-grip-h: 9px;
6254
- }
6255
- .muka-range-slider--md {
6256
- --muka-range-track-h: 16px;
6257
- --muka-range-thumb: 32px;
6258
- --muka-range-grip-h: 12px;
6259
- }
6260
- .muka-range-slider--lg {
6261
- --muka-range-track-h: 20px;
6262
- --muka-range-thumb: 40px;
6263
- --muka-range-grip-h: 15px;
6264
- }
6265
-
6266
- .muka-range-slider__bar {
6267
- /* Reserve the full thumb height so the handle never clips the layout. */
6268
- display: flex;
6269
- align-items: center;
6270
- height: var(--muka-range-thumb);
6271
- }
6272
-
6273
- .muka-range-slider__input {
6274
- -webkit-appearance: none;
6275
- appearance: none;
6276
- width: 100%;
6277
- height: var(--muka-range-thumb);
6278
- margin: 0;
6279
- background: transparent;
6280
- cursor: pointer;
6281
-
6282
- /* Grip handle fill + two vertical grip bars, all theme-aware. */
6283
- --muka-range-grip-color: var(--color-text-subtle-default);
6284
- --muka-range-grip-w: 2px;
6285
- --muka-range-grip-gap: 3px;
6286
-
6287
- /* The track fill: action colour up to the value, sunken surface beyond it. */
6288
- --muka-range-track-fill: linear-gradient(
6289
- to right,
6290
- var(--color-action-default) 0,
6291
- var(--color-action-default) var(--muka-range-fill, 0%),
6292
- var(--color-surface-sunken) var(--muka-range-fill, 0%),
6293
- var(--color-surface-sunken) 100%
6294
- );
6295
- }
6296
-
6297
- .muka-range-slider__input:focus {
6298
- outline: none;
6299
- }
6300
-
6301
- /* WebKit / Blink track */
6302
- .muka-range-slider__input::-webkit-slider-runnable-track {
6303
- height: var(--muka-range-track-h);
6304
- border-radius: var(--border-radius-full);
6305
- background-image: var(--muka-range-track-fill);
6306
- border: 1px solid var(--color-border-contrast);
6307
- box-shadow: var(--shadow-sunken);
6308
- }
6309
-
6310
- /* Firefox track + progress */
6311
- .muka-range-slider__input::-moz-range-track {
6312
- height: var(--muka-range-track-h);
6313
- border-radius: var(--border-radius-full);
6314
- background: var(--color-surface-sunken);
6315
- border: 1px solid var(--color-border-contrast);
6316
- box-shadow: var(--shadow-sunken);
6317
- }
6318
- .muka-range-slider__input::-moz-range-progress {
6319
- height: var(--muka-range-track-h);
6320
- border-radius: var(--border-radius-full);
6321
- background: var(--color-action-default);
6322
- }
6323
-
6324
- /* WebKit / Blink thumb (vertically centred over the track) */
6325
- .muka-range-slider__input::-webkit-slider-thumb {
6326
- -webkit-appearance: none;
6327
- appearance: none;
6328
- width: var(--muka-range-thumb);
6329
- height: var(--muka-range-thumb);
6330
- margin-top: calc((var(--muka-range-track-h) - var(--muka-range-thumb)) / 2);
6331
- border-radius: var(--border-radius-full);
6332
- border: 1px solid var(--color-border-contrast);
6333
- box-shadow: var(--shadow-level2);
6334
- background-color: var(--color-surface-level1);
6335
- background-image:
6336
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6337
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6338
- background-repeat: no-repeat;
6339
- background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6340
- background-position:
6341
- calc(50% - var(--muka-range-grip-gap)) center,
6342
- calc(50% + var(--muka-range-grip-gap)) center;
6343
- transition: box-shadow 0.15s ease, background-color 0.15s ease;
6344
- }
6345
-
6346
- /* Firefox thumb */
6347
- .muka-range-slider__input::-moz-range-thumb {
6348
- width: var(--muka-range-thumb);
6349
- height: var(--muka-range-thumb);
6350
- border-radius: var(--border-radius-full);
6351
- border: 1px solid var(--color-border-contrast);
6352
- box-shadow: var(--shadow-level2);
6353
- background-color: var(--color-surface-level1);
6354
- background-image:
6355
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6356
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6357
- background-repeat: no-repeat;
6358
- background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6359
- background-position:
6360
- calc(50% - var(--muka-range-grip-gap)) center,
6361
- calc(50% + var(--muka-range-grip-gap)) center;
6362
- transition: box-shadow 0.15s ease, background-color 0.15s ease;
6363
- }
6364
-
6365
- /* Hover */
6366
- .muka-range-slider__input:hover::-webkit-slider-thumb {
6367
- background-color: var(--color-surface-level1);
6368
- box-shadow: var(--shadow-level3);
6369
- }
6370
- .muka-range-slider__input:hover::-moz-range-thumb {
6371
- background-color: var(--color-surface-level1);
6372
- box-shadow: var(--shadow-level3);
6373
- }
6374
-
6375
- /* Focus ring */
6376
- .muka-range-slider__input:focus-visible::-webkit-slider-thumb {
6377
- box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6378
- }
6379
- .muka-range-slider__input:focus-visible::-moz-range-thumb {
6380
- box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6381
- }
6382
-
6383
- /* Disabled */
6384
- .muka-range-slider--disabled {
6385
- opacity: 0.5;
6386
- }
6387
- .muka-range-slider--disabled .muka-range-slider__input {
6388
- cursor: not-allowed;
6197
+ @media (prefers-reduced-motion: reduce) {
6198
+ .muka-recording-bar__dot {
6199
+ animation: none;
6200
+ }
6389
6201
  }
6390
6202
 
6391
6203
 
@@ -6664,62 +6476,278 @@ body {
6664
6476
  line-height: var(--text-label-md-regular-lineHeight);
6665
6477
  }
6666
6478
 
6667
- .muka-radio--lg .muka-radio__label {
6668
- font-family: var(--text-label-xl-regular-fontFamily);
6669
- font-weight: var(--text-label-xl-regular-fontWeight);
6670
- font-size: var(--text-label-xl-regular-fontSize);
6671
- line-height: var(--text-label-xl-regular-lineHeight);
6479
+ .muka-radio--lg .muka-radio__label {
6480
+ font-family: var(--text-label-xl-regular-fontFamily);
6481
+ font-weight: var(--text-label-xl-regular-fontWeight);
6482
+ font-size: var(--text-label-xl-regular-fontSize);
6483
+ line-height: var(--text-label-xl-regular-lineHeight);
6484
+ }
6485
+
6486
+ .muka-radio--disabled .muka-radio__label {
6487
+ color: var(--color-text-subtle-default);
6488
+ }
6489
+
6490
+
6491
+ /* PullToRefresh */
6492
+ /* PullToRefresh Component Styles */
6493
+
6494
+ .muka-pull-to-refresh {
6495
+ position: relative;
6496
+ display: flex;
6497
+ flex-direction: column;
6498
+ width: 100%;
6499
+ height: 100%;
6500
+ overflow: hidden;
6501
+ }
6502
+
6503
+ .muka-pull-to-refresh__indicator {
6504
+ position: absolute;
6505
+ top: 0;
6506
+ left: 0;
6507
+ right: 0;
6508
+ display: flex;
6509
+ align-items: flex-end;
6510
+ justify-content: center;
6511
+ padding-bottom: var(--spacing-2);
6512
+ color: var(--color-text-subtle-default);
6513
+ overflow: hidden;
6514
+ pointer-events: none;
6515
+ z-index: 1;
6516
+ }
6517
+
6518
+ .muka-pull-to-refresh__chevron {
6519
+ display: inline-flex;
6520
+ align-items: center;
6521
+ justify-content: center;
6522
+ transition: transform 0.16s ease;
6523
+ }
6524
+
6525
+ .muka-pull-to-refresh__scroller {
6526
+ flex: 1 1 auto;
6527
+ min-height: 0;
6528
+ width: 100%;
6529
+ overflow-x: clip;
6530
+ overflow-y: auto;
6531
+ -webkit-overflow-scrolling: touch;
6532
+ overscroll-behavior-y: contain;
6533
+ touch-action: pan-y;
6534
+ will-change: transform;
6535
+ }
6536
+
6537
+
6538
+ /* RangeSlider */
6539
+ /* RangeSlider Component Styles - Using Muka Design Tokens */
6540
+
6541
+ .muka-range-slider {
6542
+ display: flex;
6543
+ flex-direction: column;
6544
+ gap: var(--spacing-1);
6545
+ width: 100%;
6546
+ }
6547
+
6548
+ /* ========================================
6549
+ HEADER: label group (label + info + optional) and value readout
6550
+ ======================================== */
6551
+
6552
+ .muka-range-slider__header {
6553
+ display: flex;
6554
+ align-items: center;
6555
+ justify-content: space-between;
6556
+ gap: var(--spacing-2);
6557
+ min-height: 24px;
6558
+ }
6559
+
6560
+ .muka-range-slider__label-group {
6561
+ display: inline-flex;
6562
+ align-items: center;
6563
+ gap: var(--spacing-2);
6564
+ }
6565
+
6566
+ .muka-range-slider__label {
6567
+ font-family: var(--text-label-md-semibold-fontFamily);
6568
+ font-weight: var(--text-label-md-semibold-fontWeight);
6569
+ font-size: var(--text-label-md-semibold-fontSize);
6570
+ line-height: var(--text-label-md-semibold-lineHeight);
6571
+ color: var(--color-text-default-default);
6572
+ }
6573
+
6574
+ .muka-range-slider__info {
6575
+ color: var(--color-text-subtle-default);
6576
+ }
6577
+
6578
+ .muka-range-slider__optional {
6579
+ font-family: var(--text-label-sm-regular-fontFamily);
6580
+ font-weight: var(--text-label-sm-regular-fontWeight);
6581
+ font-size: var(--text-label-sm-regular-fontSize);
6582
+ line-height: var(--text-label-sm-regular-lineHeight);
6583
+ color: var(--color-text-subtle-default);
6584
+ }
6585
+
6586
+ .muka-range-slider__value {
6587
+ font-family: var(--text-label-md-regular-fontFamily);
6588
+ font-weight: var(--text-label-md-regular-fontWeight);
6589
+ font-size: var(--text-label-md-regular-fontSize);
6590
+ line-height: var(--text-label-md-regular-lineHeight);
6591
+ color: var(--color-text-default-default);
6592
+ font-variant-numeric: tabular-nums;
6593
+ }
6594
+
6595
+ .muka-range-slider__helper {
6596
+ margin: 0;
6597
+ font-family: var(--text-body-sm-regular-fontFamily);
6598
+ font-weight: var(--text-body-sm-regular-fontWeight);
6599
+ font-size: var(--text-body-sm-regular-fontSize);
6600
+ line-height: var(--text-body-sm-regular-lineHeight);
6601
+ color: var(--color-text-subtle-default);
6602
+ }
6603
+
6604
+ /* ========================================
6605
+ TRACK + THUMB
6606
+ Native range input, restyled. A thick sunken track holds an accent fill up to
6607
+ the current value, with a circular grip handle. The filled portion is driven
6608
+ by the inline --muka-range-fill custom property (set from the component value).
6609
+ ======================================== */
6610
+
6611
+ /* Size variants: track height, thumb diameter and grip geometry */
6612
+ .muka-range-slider--sm {
6613
+ --muka-range-track-h: 12px;
6614
+ --muka-range-thumb: 24px;
6615
+ --muka-range-grip-h: 9px;
6616
+ }
6617
+ .muka-range-slider--md {
6618
+ --muka-range-track-h: 16px;
6619
+ --muka-range-thumb: 32px;
6620
+ --muka-range-grip-h: 12px;
6621
+ }
6622
+ .muka-range-slider--lg {
6623
+ --muka-range-track-h: 20px;
6624
+ --muka-range-thumb: 40px;
6625
+ --muka-range-grip-h: 15px;
6626
+ }
6627
+
6628
+ .muka-range-slider__bar {
6629
+ /* Reserve the full thumb height so the handle never clips the layout. */
6630
+ display: flex;
6631
+ align-items: center;
6632
+ height: var(--muka-range-thumb);
6633
+ }
6634
+
6635
+ .muka-range-slider__input {
6636
+ -webkit-appearance: none;
6637
+ appearance: none;
6638
+ width: 100%;
6639
+ height: var(--muka-range-thumb);
6640
+ margin: 0;
6641
+ background: transparent;
6642
+ cursor: pointer;
6643
+
6644
+ /* Grip handle fill + two vertical grip bars, all theme-aware. */
6645
+ --muka-range-grip-color: var(--color-text-subtle-default);
6646
+ --muka-range-grip-w: 2px;
6647
+ --muka-range-grip-gap: 3px;
6648
+
6649
+ /* The track fill: action colour up to the value, sunken surface beyond it. */
6650
+ --muka-range-track-fill: linear-gradient(
6651
+ to right,
6652
+ var(--color-action-default) 0,
6653
+ var(--color-action-default) var(--muka-range-fill, 0%),
6654
+ var(--color-surface-sunken) var(--muka-range-fill, 0%),
6655
+ var(--color-surface-sunken) 100%
6656
+ );
6657
+ }
6658
+
6659
+ .muka-range-slider__input:focus {
6660
+ outline: none;
6661
+ }
6662
+
6663
+ /* WebKit / Blink track */
6664
+ .muka-range-slider__input::-webkit-slider-runnable-track {
6665
+ height: var(--muka-range-track-h);
6666
+ border-radius: var(--border-radius-full);
6667
+ background-image: var(--muka-range-track-fill);
6668
+ border: 1px solid var(--color-border-contrast);
6669
+ box-shadow: var(--shadow-sunken);
6670
+ }
6671
+
6672
+ /* Firefox track + progress */
6673
+ .muka-range-slider__input::-moz-range-track {
6674
+ height: var(--muka-range-track-h);
6675
+ border-radius: var(--border-radius-full);
6676
+ background: var(--color-surface-sunken);
6677
+ border: 1px solid var(--color-border-contrast);
6678
+ box-shadow: var(--shadow-sunken);
6679
+ }
6680
+ .muka-range-slider__input::-moz-range-progress {
6681
+ height: var(--muka-range-track-h);
6682
+ border-radius: var(--border-radius-full);
6683
+ background: var(--color-action-default);
6684
+ }
6685
+
6686
+ /* WebKit / Blink thumb (vertically centred over the track) */
6687
+ .muka-range-slider__input::-webkit-slider-thumb {
6688
+ -webkit-appearance: none;
6689
+ appearance: none;
6690
+ width: var(--muka-range-thumb);
6691
+ height: var(--muka-range-thumb);
6692
+ margin-top: calc((var(--muka-range-track-h) - var(--muka-range-thumb)) / 2);
6693
+ border-radius: var(--border-radius-full);
6694
+ border: 1px solid var(--color-border-contrast);
6695
+ box-shadow: var(--shadow-level2);
6696
+ background-color: var(--color-surface-level1);
6697
+ background-image:
6698
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6699
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6700
+ background-repeat: no-repeat;
6701
+ background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6702
+ background-position:
6703
+ calc(50% - var(--muka-range-grip-gap)) center,
6704
+ calc(50% + var(--muka-range-grip-gap)) center;
6705
+ transition: box-shadow 0.15s ease, background-color 0.15s ease;
6706
+ }
6707
+
6708
+ /* Firefox thumb */
6709
+ .muka-range-slider__input::-moz-range-thumb {
6710
+ width: var(--muka-range-thumb);
6711
+ height: var(--muka-range-thumb);
6712
+ border-radius: var(--border-radius-full);
6713
+ border: 1px solid var(--color-border-contrast);
6714
+ box-shadow: var(--shadow-level2);
6715
+ background-color: var(--color-surface-level1);
6716
+ background-image:
6717
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6718
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6719
+ background-repeat: no-repeat;
6720
+ background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6721
+ background-position:
6722
+ calc(50% - var(--muka-range-grip-gap)) center,
6723
+ calc(50% + var(--muka-range-grip-gap)) center;
6724
+ transition: box-shadow 0.15s ease, background-color 0.15s ease;
6725
+ }
6726
+
6727
+ /* Hover */
6728
+ .muka-range-slider__input:hover::-webkit-slider-thumb {
6729
+ background-color: var(--color-surface-level1);
6730
+ box-shadow: var(--shadow-level3);
6672
6731
  }
6673
-
6674
- .muka-radio--disabled .muka-radio__label {
6675
- color: var(--color-text-subtle-default);
6732
+ .muka-range-slider__input:hover::-moz-range-thumb {
6733
+ background-color: var(--color-surface-level1);
6734
+ box-shadow: var(--shadow-level3);
6676
6735
  }
6677
6736
 
6678
-
6679
- /* PullToRefresh */
6680
- /* PullToRefresh Component Styles */
6681
-
6682
- .muka-pull-to-refresh {
6683
- position: relative;
6684
- display: flex;
6685
- flex-direction: column;
6686
- width: 100%;
6687
- height: 100%;
6688
- overflow: hidden;
6737
+ /* Focus ring */
6738
+ .muka-range-slider__input:focus-visible::-webkit-slider-thumb {
6739
+ box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6689
6740
  }
6690
-
6691
- .muka-pull-to-refresh__indicator {
6692
- position: absolute;
6693
- top: 0;
6694
- left: 0;
6695
- right: 0;
6696
- display: flex;
6697
- align-items: flex-end;
6698
- justify-content: center;
6699
- padding-bottom: var(--spacing-2);
6700
- color: var(--color-text-subtle-default);
6701
- overflow: hidden;
6702
- pointer-events: none;
6703
- z-index: 1;
6741
+ .muka-range-slider__input:focus-visible::-moz-range-thumb {
6742
+ box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6704
6743
  }
6705
6744
 
6706
- .muka-pull-to-refresh__chevron {
6707
- display: inline-flex;
6708
- align-items: center;
6709
- justify-content: center;
6710
- transition: transform 0.16s ease;
6745
+ /* Disabled */
6746
+ .muka-range-slider--disabled {
6747
+ opacity: 0.5;
6711
6748
  }
6712
-
6713
- .muka-pull-to-refresh__scroller {
6714
- flex: 1 1 auto;
6715
- min-height: 0;
6716
- width: 100%;
6717
- overflow-x: clip;
6718
- overflow-y: auto;
6719
- -webkit-overflow-scrolling: touch;
6720
- overscroll-behavior-y: contain;
6721
- touch-action: pan-y;
6722
- will-change: transform;
6749
+ .muka-range-slider--disabled .muka-range-slider__input {
6750
+ cursor: not-allowed;
6723
6751
  }
6724
6752
 
6725
6753
 
@@ -8778,208 +8806,22 @@ button.muka-progress-tracker__tab:focus-visible {
8778
8806
  @keyframes muka-menu-slide-left {
8779
8807
  from {
8780
8808
  opacity: 0;
8781
- transform: translateX(4px);
8782
- }
8783
- to {
8784
- opacity: 1;
8785
- transform: translateX(0);
8786
- }
8787
- }
8788
-
8789
- @keyframes muka-menu-slide-right {
8790
- from {
8791
- opacity: 0;
8792
- transform: translateX(-4px);
8793
- }
8794
- to {
8795
- opacity: 1;
8796
- transform: translateX(0);
8797
- }
8798
- }
8799
-
8800
-
8801
- /* MediaViewer */
8802
- /* MediaViewer Component Styles - Using Muka Design Tokens */
8803
-
8804
- /* ─── Native dialog: full viewport ────────────────────── */
8805
- .muka-media-viewer {
8806
- position: fixed;
8807
- inset: 0;
8808
- width: 100%;
8809
- height: 100%;
8810
- max-width: none;
8811
- max-height: none;
8812
- margin: 0;
8813
- padding: 0;
8814
- border: none;
8815
- display: flex;
8816
- flex-direction: column;
8817
- overflow: hidden;
8818
- overscroll-behavior: contain;
8819
- color: var(--color-text-default-default);
8820
- background-color: var(--color-black-alpha-12);
8821
- animation: muka-media-viewer-in var(--motion-duration-component) var(--motion-easing-enter);
8822
- }
8823
-
8824
- .muka-media-viewer:not([open]) {
8825
- display: none;
8826
- }
8827
-
8828
- .muka-media-viewer::backdrop {
8829
- background-color: var(--color-black-alpha-12);
8830
- }
8831
-
8832
- @keyframes muka-media-viewer-in {
8833
- from {
8834
- opacity: 0;
8835
- }
8836
- to {
8837
- opacity: 1;
8838
- }
8839
- }
8840
-
8841
- /* ─── Chrome: TopBar and footer sit on a surface ──────── */
8842
- .muka-media-viewer__topbar {
8843
- flex-shrink: 0;
8844
- background-color: var(--color-surface-level3);
8845
- }
8846
-
8847
- .muka-media-viewer__live {
8848
- position: absolute;
8849
- width: 1px;
8850
- height: 1px;
8851
- padding: 0;
8852
- margin: -1px;
8853
- overflow: hidden;
8854
- clip: rect(0, 0, 0, 0);
8855
- white-space: nowrap;
8856
- border: 0;
8857
- }
8858
-
8859
- /* ─── Stage: the dark area the images slide across ────── */
8860
- .muka-media-viewer__stage {
8861
- position: relative;
8862
- flex: 1 1 auto;
8863
- min-height: 0;
8864
- overflow: hidden;
8865
- /* Gestures are handled in JS: no browser panning or pinch on the stage. */
8866
- touch-action: none;
8867
- user-select: none;
8868
- -webkit-user-select: none;
8869
- }
8870
-
8871
- .muka-media-viewer__slide {
8872
- position: absolute;
8873
- inset: 0;
8874
- display: flex;
8875
- align-items: center;
8876
- justify-content: center;
8877
- padding: var(--spacing-4);
8878
- transition: transform var(--motion-duration-component) var(--motion-easing-default);
8879
- will-change: transform;
8880
- }
8881
-
8882
- /* While a finger drags, the image follows it without easing. */
8883
- .muka-media-viewer--dragging .muka-media-viewer__slide {
8884
- transition: none;
8885
- }
8886
-
8887
- .muka-media-viewer__image {
8888
- display: block;
8889
- max-width: 100%;
8890
- max-height: 100%;
8891
- object-fit: contain;
8892
- /* The image takes touches, so a long press opens the OS menu (save, share,
8893
- copy). The swipe still works: pointer events bubble to the stage, and a
8894
- long press doesn't move far enough to start a drag. */
8895
- -webkit-touch-callout: default;
8896
- }
8897
-
8898
- /* ─── Previous / next: devices that can hover ─────────── */
8899
- .muka-media-viewer__nav {
8900
- position: absolute;
8901
- top: 50%;
8902
- display: none;
8903
- transform: translateY(-50%);
8904
- opacity: 0;
8905
- transition: opacity var(--motion-duration-micro) var(--motion-easing-enter);
8906
- }
8907
-
8908
- .muka-media-viewer__nav--previous {
8909
- left: var(--spacing-4);
8910
- }
8911
-
8912
- .muka-media-viewer__nav--next {
8913
- right: var(--spacing-4);
8914
- }
8915
-
8916
- @media (hover: hover) and (pointer: fine) {
8917
- .muka-media-viewer__nav {
8918
- display: block;
8919
- }
8920
-
8921
- .muka-media-viewer__stage:hover .muka-media-viewer__nav,
8922
- .muka-media-viewer__nav:focus-within {
8923
- opacity: 1;
8924
- }
8925
- }
8926
-
8927
- /* ─── Footer: caption, meta and actions ───────────────── */
8928
- .muka-media-viewer__footer {
8929
- flex-shrink: 0;
8930
- display: flex;
8931
- flex-direction: column;
8932
- gap: var(--spacing-3);
8933
- padding: var(--spacing-4);
8934
- padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
8935
- background-color: var(--color-surface-level3);
8936
- }
8937
-
8938
- .muka-media-viewer__details {
8939
- display: flex;
8940
- align-items: flex-start;
8941
- justify-content: space-between;
8942
- gap: var(--spacing-3);
8943
- }
8944
-
8945
- .muka-media-viewer__caption {
8946
- min-width: 0;
8947
- color: var(--color-text-subtle-default);
8948
- font-family: var(--text-body-sm-regular-fontFamily);
8949
- font-size: var(--text-body-sm-regular-fontSize);
8950
- font-weight: var(--text-body-sm-regular-fontWeight);
8951
- line-height: var(--text-body-sm-regular-lineHeight);
8952
- overflow-wrap: anywhere;
8953
- }
8954
-
8955
- .muka-media-viewer__meta {
8956
- flex-shrink: 0;
8957
- }
8958
-
8959
- .muka-media-viewer__actions {
8960
- display: flex;
8961
- flex-wrap: wrap;
8962
- gap: var(--spacing-2);
8963
- }
8964
-
8965
- /* Mobile: actions stack full width, like Dialog footers. */
8966
- @media (max-width: 1023px) {
8967
- .muka-media-viewer__actions {
8968
- flex-direction: column;
8809
+ transform: translateX(4px);
8969
8810
  }
8970
-
8971
- .muka-media-viewer__actions > * {
8972
- width: 100%;
8811
+ to {
8812
+ opacity: 1;
8813
+ transform: translateX(0);
8973
8814
  }
8974
8815
  }
8975
8816
 
8976
- /* ─── Reduced motion ──────────────────────────────────── */
8977
- @media (prefers-reduced-motion: reduce) {
8978
- .muka-media-viewer,
8979
- .muka-media-viewer__slide,
8980
- .muka-media-viewer__nav {
8981
- animation: none;
8982
- transition: none;
8817
+ @keyframes muka-menu-slide-right {
8818
+ from {
8819
+ opacity: 0;
8820
+ transform: translateX(-4px);
8821
+ }
8822
+ to {
8823
+ opacity: 1;
8824
+ transform: translateX(0);
8983
8825
  }
8984
8826
  }
8985
8827
 
@@ -9371,44 +9213,189 @@ li.muka-listitem {
9371
9213
  }
9372
9214
 
9373
9215
 
9374
- /* Label */
9375
- /* Label Component Styles - Using Muka Design Tokens */
9216
+ /* MediaViewer */
9217
+ /* MediaViewer Component Styles - Using Muka Design Tokens */
9376
9218
 
9377
- .muka-label {
9378
- display: inline-flex;
9379
- align-items: center;
9219
+ /* ─── Native dialog: full viewport ────────────────────── */
9220
+ .muka-media-viewer {
9221
+ position: fixed;
9222
+ inset: 0;
9223
+ width: 100%;
9224
+ height: 100%;
9225
+ max-width: none;
9226
+ max-height: none;
9227
+ margin: 0;
9228
+ padding: 0;
9229
+ border: none;
9230
+ display: flex;
9231
+ flex-direction: column;
9232
+ overflow: hidden;
9233
+ overscroll-behavior: contain;
9380
9234
  color: var(--color-text-default-default);
9381
- cursor: pointer;
9235
+ background-color: var(--color-black-alpha-12);
9236
+ animation: muka-media-viewer-in var(--motion-duration-component) var(--motion-easing-enter);
9382
9237
  }
9383
9238
 
9384
- .muka-label--sm {
9385
- font-family: var(--text-label-sm-semibold-fontFamily);
9386
- font-weight: var(--text-label-sm-semibold-fontWeight);
9387
- font-size: var(--text-label-sm-semibold-fontSize);
9388
- line-height: var(--text-label-sm-semibold-lineHeight);
9239
+ .muka-media-viewer:not([open]) {
9240
+ display: none;
9389
9241
  }
9390
9242
 
9391
- .muka-label--md {
9392
- font-family: var(--text-label-md-semibold-fontFamily);
9393
- font-weight: var(--text-label-md-semibold-fontWeight);
9394
- font-size: var(--text-label-md-semibold-fontSize);
9395
- line-height: var(--text-label-md-semibold-lineHeight);
9243
+ .muka-media-viewer::backdrop {
9244
+ background-color: var(--color-black-alpha-12);
9396
9245
  }
9397
9246
 
9398
- .muka-label--lg {
9399
- font-family: var(--text-label-lg-semibold-fontFamily);
9400
- font-weight: var(--text-label-lg-semibold-fontWeight);
9401
- font-size: var(--text-label-lg-semibold-fontSize);
9402
- line-height: var(--text-label-lg-semibold-lineHeight);
9247
+ @keyframes muka-media-viewer-in {
9248
+ from {
9249
+ opacity: 0;
9250
+ }
9251
+ to {
9252
+ opacity: 1;
9253
+ }
9403
9254
  }
9404
9255
 
9405
- .muka-label--disabled {
9256
+ /* ─── Chrome: TopBar and footer sit on a surface ──────── */
9257
+ .muka-media-viewer__topbar {
9258
+ flex-shrink: 0;
9259
+ background-color: var(--color-surface-level3);
9260
+ }
9261
+
9262
+ .muka-media-viewer__live {
9263
+ position: absolute;
9264
+ width: 1px;
9265
+ height: 1px;
9266
+ padding: 0;
9267
+ margin: -1px;
9268
+ overflow: hidden;
9269
+ clip: rect(0, 0, 0, 0);
9270
+ white-space: nowrap;
9271
+ border: 0;
9272
+ }
9273
+
9274
+ /* ─── Stage: the dark area the images slide across ────── */
9275
+ .muka-media-viewer__stage {
9276
+ position: relative;
9277
+ flex: 1 1 auto;
9278
+ min-height: 0;
9279
+ overflow: hidden;
9280
+ /* Gestures are handled in JS: no browser panning or pinch on the stage. */
9281
+ touch-action: none;
9282
+ user-select: none;
9283
+ -webkit-user-select: none;
9284
+ }
9285
+
9286
+ .muka-media-viewer__slide {
9287
+ position: absolute;
9288
+ inset: 0;
9289
+ display: flex;
9290
+ align-items: center;
9291
+ justify-content: center;
9292
+ padding: var(--spacing-4);
9293
+ transition: transform var(--motion-duration-component) var(--motion-easing-default);
9294
+ will-change: transform;
9295
+ }
9296
+
9297
+ /* While a finger drags, the image follows it without easing. */
9298
+ .muka-media-viewer--dragging .muka-media-viewer__slide {
9299
+ transition: none;
9300
+ }
9301
+
9302
+ .muka-media-viewer__image {
9303
+ display: block;
9304
+ max-width: 100%;
9305
+ max-height: 100%;
9306
+ object-fit: contain;
9307
+ /* The image takes touches, so a long press opens the OS menu (save, share,
9308
+ copy). The swipe still works: pointer events bubble to the stage, and a
9309
+ long press doesn't move far enough to start a drag. */
9310
+ -webkit-touch-callout: default;
9311
+ }
9312
+
9313
+ /* ─── Previous / next: devices that can hover ─────────── */
9314
+ .muka-media-viewer__nav {
9315
+ position: absolute;
9316
+ top: 50%;
9317
+ display: none;
9318
+ transform: translateY(-50%);
9319
+ opacity: 0;
9320
+ transition: opacity var(--motion-duration-micro) var(--motion-easing-enter);
9321
+ }
9322
+
9323
+ .muka-media-viewer__nav--previous {
9324
+ left: var(--spacing-4);
9325
+ }
9326
+
9327
+ .muka-media-viewer__nav--next {
9328
+ right: var(--spacing-4);
9329
+ }
9330
+
9331
+ @media (hover: hover) and (pointer: fine) {
9332
+ .muka-media-viewer__nav {
9333
+ display: block;
9334
+ }
9335
+
9336
+ .muka-media-viewer__stage:hover .muka-media-viewer__nav,
9337
+ .muka-media-viewer__nav:focus-within {
9338
+ opacity: 1;
9339
+ }
9340
+ }
9341
+
9342
+ /* ─── Footer: caption, meta and actions ───────────────── */
9343
+ .muka-media-viewer__footer {
9344
+ flex-shrink: 0;
9345
+ display: flex;
9346
+ flex-direction: column;
9347
+ gap: var(--spacing-3);
9348
+ padding: var(--spacing-4);
9349
+ padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
9350
+ background-color: var(--color-surface-level3);
9351
+ }
9352
+
9353
+ .muka-media-viewer__details {
9354
+ display: flex;
9355
+ align-items: flex-start;
9356
+ justify-content: space-between;
9357
+ gap: var(--spacing-3);
9358
+ }
9359
+
9360
+ .muka-media-viewer__caption {
9361
+ min-width: 0;
9406
9362
  color: var(--color-text-subtle-default);
9407
- cursor: not-allowed;
9363
+ font-family: var(--text-body-sm-regular-fontFamily);
9364
+ font-size: var(--text-body-sm-regular-fontSize);
9365
+ font-weight: var(--text-body-sm-regular-fontWeight);
9366
+ line-height: var(--text-body-sm-regular-lineHeight);
9367
+ overflow-wrap: anywhere;
9408
9368
  }
9409
9369
 
9410
- .muka-label__required {
9411
- color: var(--color-state-error-default);
9370
+ .muka-media-viewer__meta {
9371
+ flex-shrink: 0;
9372
+ }
9373
+
9374
+ .muka-media-viewer__actions {
9375
+ display: flex;
9376
+ flex-wrap: wrap;
9377
+ gap: var(--spacing-2);
9378
+ }
9379
+
9380
+ /* Mobile: actions stack full width, like Dialog footers. */
9381
+ @media (max-width: 1023px) {
9382
+ .muka-media-viewer__actions {
9383
+ flex-direction: column;
9384
+ }
9385
+
9386
+ .muka-media-viewer__actions > * {
9387
+ width: 100%;
9388
+ }
9389
+ }
9390
+
9391
+ /* ─── Reduced motion ──────────────────────────────────── */
9392
+ @media (prefers-reduced-motion: reduce) {
9393
+ .muka-media-viewer,
9394
+ .muka-media-viewer__slide,
9395
+ .muka-media-viewer__nav {
9396
+ animation: none;
9397
+ transition: none;
9398
+ }
9412
9399
  }
9413
9400
 
9414
9401
 
@@ -10333,18 +10320,59 @@ li.muka-listitem {
10333
10320
  transform: translateX(-50%) scale(0.96);
10334
10321
  }
10335
10322
 
10336
- /* Add the iOS home-indicator inset to the bottom offset. */
10337
- .muka-fab:not(.muka-fab--no-safe-area) {
10338
- bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom));
10323
+ /* Add the iOS home-indicator inset to the bottom offset. */
10324
+ .muka-fab:not(.muka-fab--no-safe-area) {
10325
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom));
10326
+ }
10327
+
10328
+ /* Lateral safe-area for landscape iPhone with notch. */
10329
+ .muka-fab--bottom-right:not(.muka-fab--no-safe-area) {
10330
+ right: max(var(--spacing-4), env(safe-area-inset-right));
10331
+ }
10332
+
10333
+ .muka-fab--bottom-left:not(.muka-fab--no-safe-area) {
10334
+ left: max(var(--spacing-4), env(safe-area-inset-left));
10335
+ }
10336
+
10337
+
10338
+ /* Label */
10339
+ /* Label Component Styles - Using Muka Design Tokens */
10340
+
10341
+ .muka-label {
10342
+ display: inline-flex;
10343
+ align-items: center;
10344
+ color: var(--color-text-default-default);
10345
+ cursor: pointer;
10346
+ }
10347
+
10348
+ .muka-label--sm {
10349
+ font-family: var(--text-label-sm-semibold-fontFamily);
10350
+ font-weight: var(--text-label-sm-semibold-fontWeight);
10351
+ font-size: var(--text-label-sm-semibold-fontSize);
10352
+ line-height: var(--text-label-sm-semibold-lineHeight);
10353
+ }
10354
+
10355
+ .muka-label--md {
10356
+ font-family: var(--text-label-md-semibold-fontFamily);
10357
+ font-weight: var(--text-label-md-semibold-fontWeight);
10358
+ font-size: var(--text-label-md-semibold-fontSize);
10359
+ line-height: var(--text-label-md-semibold-lineHeight);
10360
+ }
10361
+
10362
+ .muka-label--lg {
10363
+ font-family: var(--text-label-lg-semibold-fontFamily);
10364
+ font-weight: var(--text-label-lg-semibold-fontWeight);
10365
+ font-size: var(--text-label-lg-semibold-fontSize);
10366
+ line-height: var(--text-label-lg-semibold-lineHeight);
10339
10367
  }
10340
10368
 
10341
- /* Lateral safe-area for landscape iPhone with notch. */
10342
- .muka-fab--bottom-right:not(.muka-fab--no-safe-area) {
10343
- right: max(var(--spacing-4), env(safe-area-inset-right));
10369
+ .muka-label--disabled {
10370
+ color: var(--color-text-subtle-default);
10371
+ cursor: not-allowed;
10344
10372
  }
10345
10373
 
10346
- .muka-fab--bottom-left:not(.muka-fab--no-safe-area) {
10347
- left: max(var(--spacing-4), env(safe-area-inset-left));
10374
+ .muka-label__required {
10375
+ color: var(--color-state-error-default);
10348
10376
  }
10349
10377
 
10350
10378
 
@@ -10485,257 +10513,29 @@ li.muka-listitem {
10485
10513
  }
10486
10514
 
10487
10515
  .muka-emptystate--left .muka-emptystate__actions {
10488
- justify-content: flex-start;
10489
- }
10490
-
10491
-
10492
- /* EmojiPicker */
10493
- /* EmojiPicker Component Styles */
10494
-
10495
- .muka-emoji-picker {
10496
- display: grid;
10497
- grid-template-columns: repeat(8, 1fr);
10498
- gap: var(--spacing-1);
10499
- padding: var(--spacing-2);
10500
- max-height: 12rem;
10501
- overflow-y: auto;
10502
- background: var(--color-surface-level2);
10503
- border: var(--border-width-regular, 1px) solid var(--color-border-default);
10504
- border-radius: var(--radius-lg);
10505
- box-shadow: var(--menu-content-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
10506
- }
10507
-
10508
- .muka-emoji-picker__glyph {
10509
- font-size: 1.25rem;
10510
- line-height: 1;
10511
- }
10512
-
10513
-
10514
- /* DropdownSelect */
10515
- /* DropdownSelect — Figma Dropdown Menu form field (Menu + chips) */
10516
-
10517
- .muka-dropdown-select {
10518
- display: inline-flex;
10519
- flex-direction: column;
10520
- gap: var(--spacing-2);
10521
- min-width: 200px;
10522
- }
10523
-
10524
- .muka-dropdown-select--full-width {
10525
- width: 100%;
10526
- }
10527
-
10528
- .muka-dropdown-select__label {
10529
- color: var(--color-text-default-default);
10530
- cursor: pointer;
10531
- }
10532
-
10533
- .muka-dropdown-select__label--sm {
10534
- font-family: var(--text-label-sm-semibold-fontFamily);
10535
- font-weight: var(--text-label-sm-semibold-fontWeight);
10536
- font-size: var(--text-label-sm-semibold-fontSize);
10537
- line-height: var(--text-label-sm-semibold-lineHeight);
10538
- }
10539
-
10540
- .muka-dropdown-select__label--md {
10541
- font-family: var(--text-label-md-semibold-fontFamily);
10542
- font-weight: var(--text-label-md-semibold-fontWeight);
10543
- font-size: var(--text-label-md-semibold-fontSize);
10544
- line-height: var(--text-label-md-semibold-lineHeight);
10545
- }
10546
-
10547
- .muka-dropdown-select__label--lg {
10548
- font-family: var(--text-label-lg-semibold-fontFamily);
10549
- font-weight: var(--text-label-lg-semibold-fontWeight);
10550
- font-size: var(--text-label-lg-semibold-fontSize);
10551
- line-height: var(--text-label-lg-semibold-lineHeight);
10552
- }
10553
-
10554
- .muka-dropdown-select__required {
10555
- color: var(--color-state-error-default);
10556
- }
10557
-
10558
- .muka-dropdown-select__field {
10559
- display: flex;
10560
- align-items: center;
10561
- gap: var(--spacing-1);
10562
- width: 100%;
10563
- position: relative;
10564
- box-sizing: border-box;
10565
- background-color: var(--input-field-color-default-background);
10566
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
10567
- border-radius: var(--input-field-radius-lg);
10568
- padding: var(--spacing-2);
10569
- padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem));
10570
- text-align: left;
10571
- cursor: pointer;
10572
- color: var(--color-text-default-default);
10573
- transition: border-color 0.12s ease, background-color 0.12s ease;
10574
- -webkit-tap-highlight-color: transparent;
10575
- }
10576
-
10577
- .muka-dropdown-select__field::after {
10578
- content: '';
10579
- position: absolute;
10580
- inset: 0;
10581
- border-radius: inherit;
10582
- box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
10583
- pointer-events: none;
10584
- }
10585
-
10586
- .muka-dropdown-select__field--sm {
10587
- min-height: var(--input-field-height-sm);
10588
- border-radius: var(--input-field-radius-sm);
10589
- padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem));
10590
- }
10591
-
10592
- .muka-dropdown-select__field--md {
10593
- min-height: var(--input-field-height-default);
10594
- border-radius: var(--input-field-radius-md);
10595
- }
10596
-
10597
- .muka-dropdown-select__field--lg {
10598
- min-height: var(--input-field-height-lg);
10599
- border-radius: var(--input-field-radius-lg);
10600
- }
10601
-
10602
- .muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
10603
- border-width: var(--border-width-bold);
10604
- border-color: var(--input-field-color-focus-border);
10605
- background-color: var(--input-field-color-focus-background);
10606
- padding: calc(var(--spacing-2) - 1px);
10607
- padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem) - 1px);
10608
- }
10609
-
10610
- .muka-dropdown-select__field--sm.muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
10611
- padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem) - 1px);
10612
- }
10613
-
10614
- .muka-dropdown-select__field--error:not(.muka-dropdown-select__field--disabled) {
10615
- border-color: var(--color-state-error-contrast);
10616
- }
10617
-
10618
- .muka-dropdown-select__field--disabled {
10619
- opacity: 0.5;
10620
- cursor: not-allowed;
10621
- }
10622
-
10623
- .muka-dropdown-select__content {
10624
- position: relative;
10625
- z-index: 1;
10626
- display: flex;
10627
- flex: 1 1 auto;
10628
- min-width: 0;
10629
- align-items: center;
10630
- /* Let empty-field / value clicks reach the full-field MenuTrigger underneath. */
10631
- pointer-events: none;
10632
- }
10633
-
10634
- .muka-dropdown-select__placeholder {
10635
- color: var(--color-text-subtle-default);
10636
- font-family: var(--text-label-md-regular-fontFamily);
10637
- font-size: var(--text-label-md-regular-fontSize);
10638
- font-weight: var(--text-label-md-regular-fontWeight);
10639
- line-height: var(--text-label-md-regular-lineHeight);
10640
- padding-inline: var(--spacing-1);
10641
- }
10642
-
10643
- .muka-dropdown-select__value {
10644
- font-family: var(--text-label-md-regular-fontFamily);
10645
- font-size: var(--text-label-md-regular-fontSize);
10646
- font-weight: var(--text-label-md-regular-fontWeight);
10647
- line-height: var(--text-label-md-regular-lineHeight);
10648
- padding-inline: var(--spacing-1);
10649
- white-space: nowrap;
10650
- overflow: hidden;
10651
- text-overflow: ellipsis;
10652
- }
10653
-
10654
- .muka-dropdown-select__chips {
10655
- display: flex;
10656
- flex: 1 1 auto;
10657
- flex-wrap: wrap;
10658
- gap: var(--spacing-2);
10659
- align-items: flex-start;
10660
- min-width: 0;
10661
- /* Chip remove controls must remain clickable above the field hit target. */
10662
- pointer-events: auto;
10663
- }
10664
-
10665
- .muka-dropdown-select__field--multiline {
10666
- align-items: flex-start;
10667
- min-height: 7rem;
10668
- }
10669
-
10670
- .muka-dropdown-select__menu-button {
10671
- position: absolute;
10672
- inset: 0;
10673
- z-index: 0;
10674
- display: inline-flex;
10675
- align-items: center;
10676
- justify-content: flex-end;
10677
- width: auto;
10678
- height: auto;
10679
- padding: 0;
10680
- padding-right: var(--spacing-2);
10681
- border: none;
10682
- border-radius: inherit;
10683
- background: transparent;
10684
- color: var(--color-text-subtle-default);
10685
- cursor: pointer;
10686
- }
10687
-
10688
- .muka-dropdown-select__field--multiline .muka-dropdown-select__menu-button {
10689
- align-items: flex-start;
10690
- padding-top: calc(var(--spacing-2) + 8px);
10691
- }
10692
-
10693
- .muka-dropdown-select__chevron {
10694
- display: inline-flex;
10695
- align-items: center;
10696
- justify-content: center;
10697
- width: var(--size-2xl, 2rem);
10698
- height: var(--size-2xl, 2rem);
10699
- pointer-events: none;
10700
- color: var(--color-text-subtle-default);
10701
- }
10702
-
10703
- .muka-dropdown-select__chevron .muka-icon,
10704
- .muka-dropdown-select__menu-button:hover .muka-dropdown-select__chevron,
10705
- .muka-dropdown-select__menu-button:hover .muka-icon {
10706
- color: var(--color-text-subtle-default);
10707
- }
10708
-
10709
- .muka-dropdown-select__field--sm .muka-dropdown-select__chevron {
10710
- width: var(--size-xl, 1.5rem);
10711
- height: var(--size-xl, 1.5rem);
10712
- }
10713
-
10714
- .muka-dropdown-select__menu-button:focus-visible {
10715
- outline: 2px solid var(--color-border-focus, var(--color-action-default));
10716
- outline-offset: 2px;
10717
- }
10718
-
10719
- .muka-dropdown-select__helper {
10720
- margin: 0;
10721
- color: var(--color-text-subtle-default);
10722
- font-family: var(--text-label-sm-regular-fontFamily);
10723
- font-size: var(--text-label-sm-regular-fontSize);
10724
- font-weight: var(--text-label-sm-regular-fontWeight);
10725
- line-height: var(--text-label-sm-regular-lineHeight);
10516
+ justify-content: flex-start;
10726
10517
  }
10727
10518
 
10728
- .muka-dropdown-select__error {
10729
- margin: 0;
10730
- color: var(--color-state-error-default);
10731
- font-family: var(--text-label-sm-regular-fontFamily);
10732
- font-size: var(--text-label-sm-regular-fontSize);
10733
- font-weight: var(--text-label-sm-regular-fontWeight);
10734
- line-height: var(--text-label-sm-regular-lineHeight);
10519
+
10520
+ /* EmojiPicker */
10521
+ /* EmojiPicker Component Styles */
10522
+
10523
+ .muka-emoji-picker {
10524
+ display: grid;
10525
+ grid-template-columns: repeat(8, 1fr);
10526
+ gap: var(--spacing-1);
10527
+ padding: var(--spacing-2);
10528
+ max-height: 12rem;
10529
+ overflow-y: auto;
10530
+ background: var(--color-surface-level2);
10531
+ border: var(--border-width-regular, 1px) solid var(--color-border-default);
10532
+ border-radius: var(--radius-lg);
10533
+ box-shadow: var(--menu-content-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
10735
10534
  }
10736
10535
 
10737
- .muka-dropdown-select__menu {
10738
- /* Uses Menu min-width (280px); grows with long labels; left-aligned to the field. */
10536
+ .muka-emoji-picker__glyph {
10537
+ font-size: 1.25rem;
10538
+ line-height: 1;
10739
10539
  }
10740
10540
 
10741
10541
 
@@ -12876,6 +12676,234 @@ li.muka-listitem {
12876
12676
  }
12877
12677
 
12878
12678
 
12679
+ /* DropdownSelect */
12680
+ /* DropdownSelect — Figma Dropdown Menu form field (Menu + chips) */
12681
+
12682
+ .muka-dropdown-select {
12683
+ display: inline-flex;
12684
+ flex-direction: column;
12685
+ gap: var(--spacing-2);
12686
+ min-width: 200px;
12687
+ }
12688
+
12689
+ .muka-dropdown-select--full-width {
12690
+ width: 100%;
12691
+ }
12692
+
12693
+ .muka-dropdown-select__label {
12694
+ color: var(--color-text-default-default);
12695
+ cursor: pointer;
12696
+ }
12697
+
12698
+ .muka-dropdown-select__label--sm {
12699
+ font-family: var(--text-label-sm-semibold-fontFamily);
12700
+ font-weight: var(--text-label-sm-semibold-fontWeight);
12701
+ font-size: var(--text-label-sm-semibold-fontSize);
12702
+ line-height: var(--text-label-sm-semibold-lineHeight);
12703
+ }
12704
+
12705
+ .muka-dropdown-select__label--md {
12706
+ font-family: var(--text-label-md-semibold-fontFamily);
12707
+ font-weight: var(--text-label-md-semibold-fontWeight);
12708
+ font-size: var(--text-label-md-semibold-fontSize);
12709
+ line-height: var(--text-label-md-semibold-lineHeight);
12710
+ }
12711
+
12712
+ .muka-dropdown-select__label--lg {
12713
+ font-family: var(--text-label-lg-semibold-fontFamily);
12714
+ font-weight: var(--text-label-lg-semibold-fontWeight);
12715
+ font-size: var(--text-label-lg-semibold-fontSize);
12716
+ line-height: var(--text-label-lg-semibold-lineHeight);
12717
+ }
12718
+
12719
+ .muka-dropdown-select__required {
12720
+ color: var(--color-state-error-default);
12721
+ }
12722
+
12723
+ .muka-dropdown-select__field {
12724
+ display: flex;
12725
+ align-items: center;
12726
+ gap: var(--spacing-1);
12727
+ width: 100%;
12728
+ position: relative;
12729
+ box-sizing: border-box;
12730
+ background-color: var(--input-field-color-default-background);
12731
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
12732
+ border-radius: var(--input-field-radius-lg);
12733
+ padding: var(--spacing-2);
12734
+ padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem));
12735
+ text-align: left;
12736
+ cursor: pointer;
12737
+ color: var(--color-text-default-default);
12738
+ transition: border-color 0.12s ease, background-color 0.12s ease;
12739
+ -webkit-tap-highlight-color: transparent;
12740
+ }
12741
+
12742
+ .muka-dropdown-select__field::after {
12743
+ content: '';
12744
+ position: absolute;
12745
+ inset: 0;
12746
+ border-radius: inherit;
12747
+ box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
12748
+ pointer-events: none;
12749
+ }
12750
+
12751
+ .muka-dropdown-select__field--sm {
12752
+ min-height: var(--input-field-height-sm);
12753
+ border-radius: var(--input-field-radius-sm);
12754
+ padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem));
12755
+ }
12756
+
12757
+ .muka-dropdown-select__field--md {
12758
+ min-height: var(--input-field-height-default);
12759
+ border-radius: var(--input-field-radius-md);
12760
+ }
12761
+
12762
+ .muka-dropdown-select__field--lg {
12763
+ min-height: var(--input-field-height-lg);
12764
+ border-radius: var(--input-field-radius-lg);
12765
+ }
12766
+
12767
+ .muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
12768
+ border-width: var(--border-width-bold);
12769
+ border-color: var(--input-field-color-focus-border);
12770
+ background-color: var(--input-field-color-focus-background);
12771
+ padding: calc(var(--spacing-2) - 1px);
12772
+ padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem) - 1px);
12773
+ }
12774
+
12775
+ .muka-dropdown-select__field--sm.muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
12776
+ padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem) - 1px);
12777
+ }
12778
+
12779
+ .muka-dropdown-select__field--error:not(.muka-dropdown-select__field--disabled) {
12780
+ border-color: var(--color-state-error-contrast);
12781
+ }
12782
+
12783
+ .muka-dropdown-select__field--disabled {
12784
+ opacity: 0.5;
12785
+ cursor: not-allowed;
12786
+ }
12787
+
12788
+ .muka-dropdown-select__content {
12789
+ position: relative;
12790
+ z-index: 1;
12791
+ display: flex;
12792
+ flex: 1 1 auto;
12793
+ min-width: 0;
12794
+ align-items: center;
12795
+ /* Let empty-field / value clicks reach the full-field MenuTrigger underneath. */
12796
+ pointer-events: none;
12797
+ }
12798
+
12799
+ .muka-dropdown-select__placeholder {
12800
+ color: var(--color-text-subtle-default);
12801
+ font-family: var(--text-label-md-regular-fontFamily);
12802
+ font-size: var(--text-label-md-regular-fontSize);
12803
+ font-weight: var(--text-label-md-regular-fontWeight);
12804
+ line-height: var(--text-label-md-regular-lineHeight);
12805
+ padding-inline: var(--spacing-1);
12806
+ }
12807
+
12808
+ .muka-dropdown-select__value {
12809
+ font-family: var(--text-label-md-regular-fontFamily);
12810
+ font-size: var(--text-label-md-regular-fontSize);
12811
+ font-weight: var(--text-label-md-regular-fontWeight);
12812
+ line-height: var(--text-label-md-regular-lineHeight);
12813
+ padding-inline: var(--spacing-1);
12814
+ white-space: nowrap;
12815
+ overflow: hidden;
12816
+ text-overflow: ellipsis;
12817
+ }
12818
+
12819
+ .muka-dropdown-select__chips {
12820
+ display: flex;
12821
+ flex: 1 1 auto;
12822
+ flex-wrap: wrap;
12823
+ gap: var(--spacing-2);
12824
+ align-items: flex-start;
12825
+ min-width: 0;
12826
+ /* Chip remove controls must remain clickable above the field hit target. */
12827
+ pointer-events: auto;
12828
+ }
12829
+
12830
+ .muka-dropdown-select__field--multiline {
12831
+ align-items: flex-start;
12832
+ min-height: 7rem;
12833
+ }
12834
+
12835
+ .muka-dropdown-select__menu-button {
12836
+ position: absolute;
12837
+ inset: 0;
12838
+ z-index: 0;
12839
+ display: inline-flex;
12840
+ align-items: center;
12841
+ justify-content: flex-end;
12842
+ width: auto;
12843
+ height: auto;
12844
+ padding: 0;
12845
+ padding-right: var(--spacing-2);
12846
+ border: none;
12847
+ border-radius: inherit;
12848
+ background: transparent;
12849
+ color: var(--color-text-subtle-default);
12850
+ cursor: pointer;
12851
+ }
12852
+
12853
+ .muka-dropdown-select__field--multiline .muka-dropdown-select__menu-button {
12854
+ align-items: flex-start;
12855
+ padding-top: calc(var(--spacing-2) + 8px);
12856
+ }
12857
+
12858
+ .muka-dropdown-select__chevron {
12859
+ display: inline-flex;
12860
+ align-items: center;
12861
+ justify-content: center;
12862
+ width: var(--size-2xl, 2rem);
12863
+ height: var(--size-2xl, 2rem);
12864
+ pointer-events: none;
12865
+ color: var(--color-text-subtle-default);
12866
+ }
12867
+
12868
+ .muka-dropdown-select__chevron .muka-icon,
12869
+ .muka-dropdown-select__menu-button:hover .muka-dropdown-select__chevron,
12870
+ .muka-dropdown-select__menu-button:hover .muka-icon {
12871
+ color: var(--color-text-subtle-default);
12872
+ }
12873
+
12874
+ .muka-dropdown-select__field--sm .muka-dropdown-select__chevron {
12875
+ width: var(--size-xl, 1.5rem);
12876
+ height: var(--size-xl, 1.5rem);
12877
+ }
12878
+
12879
+ .muka-dropdown-select__menu-button:focus-visible {
12880
+ outline: 2px solid var(--color-border-focus, var(--color-action-default));
12881
+ outline-offset: 2px;
12882
+ }
12883
+
12884
+ .muka-dropdown-select__helper {
12885
+ margin: 0;
12886
+ color: var(--color-text-subtle-default);
12887
+ font-family: var(--text-label-sm-regular-fontFamily);
12888
+ font-size: var(--text-label-sm-regular-fontSize);
12889
+ font-weight: var(--text-label-sm-regular-fontWeight);
12890
+ line-height: var(--text-label-sm-regular-lineHeight);
12891
+ }
12892
+
12893
+ .muka-dropdown-select__error {
12894
+ margin: 0;
12895
+ color: var(--color-state-error-default);
12896
+ font-family: var(--text-label-sm-regular-fontFamily);
12897
+ font-size: var(--text-label-sm-regular-fontSize);
12898
+ font-weight: var(--text-label-sm-regular-fontWeight);
12899
+ line-height: var(--text-label-sm-regular-lineHeight);
12900
+ }
12901
+
12902
+ .muka-dropdown-select__menu {
12903
+ /* Uses Menu min-width (280px); grows with long labels; left-aligned to the field. */
12904
+ }
12905
+
12906
+
12879
12907
  /* Checkbox */
12880
12908
  /* Checkbox Component Styles - Using Muka Design Tokens */
12881
12909