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