@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.
@@ -3648,88 +3648,6 @@ body {
3648
3648
  }
3649
3649
 
3650
3650
 
3651
- /* TextLink */
3652
- /* TextLink Component Styles - Using Muka Design Tokens */
3653
-
3654
- .muka-text-link {
3655
- display: inline;
3656
- cursor: pointer;
3657
- text-decoration: underline;
3658
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
3659
- text-underline-offset: 0.2em;
3660
- text-decoration-thickness: from-font;
3661
- /* Rounds the focus ring's corners; the link itself has no visible box. */
3662
- border-radius: var(--border-radius-sm);
3663
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
3664
- }
3665
-
3666
- /* ─── Sizes ───────────────────────────────────────────────
3667
- Mirrors the body text scale so a link matches the copy it sits in. */
3668
- .muka-text-link--sm {
3669
- font-family: var(--text-body-sm-regular-fontFamily);
3670
- font-weight: var(--text-body-sm-regular-fontWeight);
3671
- font-size: var(--text-body-sm-regular-fontSize);
3672
- line-height: var(--text-body-sm-regular-lineHeight);
3673
- }
3674
-
3675
- .muka-text-link--base {
3676
- font-family: var(--text-body-base-regular-fontFamily);
3677
- font-weight: var(--text-body-base-regular-fontWeight);
3678
- font-size: var(--text-body-base-regular-fontSize);
3679
- line-height: var(--text-body-base-regular-lineHeight);
3680
- }
3681
-
3682
- .muka-text-link--lg {
3683
- font-family: var(--text-body-lg-regular-fontFamily);
3684
- font-weight: var(--text-body-lg-regular-fontWeight);
3685
- font-size: var(--text-body-lg-regular-fontSize);
3686
- line-height: var(--text-body-lg-regular-lineHeight);
3687
- }
3688
-
3689
- /* ─── Variant: default (accent) ───────────────────────────
3690
- Visited repeats the default colour on purpose: the design treats visited and
3691
- default the same, and pinning it stops the browser's purple from showing. */
3692
- .muka-text-link--default,
3693
- .muka-text-link--default:visited {
3694
- color: var(--color-text-action-default);
3695
- }
3696
-
3697
- .muka-text-link--default:hover,
3698
- .muka-text-link--default:focus-visible {
3699
- color: var(--color-text-action-hover);
3700
- }
3701
-
3702
- .muka-text-link--default:active {
3703
- color: var(--color-text-action-pressed);
3704
- }
3705
-
3706
- /* ─── Variant: subtle (neutral) ───────────────────────────
3707
- Hover, focus and pressed all darken to the default text colour. */
3708
- .muka-text-link--subtle,
3709
- .muka-text-link--subtle:visited {
3710
- color: var(--color-text-subtle-default);
3711
- }
3712
-
3713
- .muka-text-link--subtle:hover,
3714
- .muka-text-link--subtle:focus-visible,
3715
- .muka-text-link--subtle:active {
3716
- color: var(--color-text-default-default);
3717
- }
3718
-
3719
- /* ─── Focus ───────────────────────────────────────────────
3720
- Same ring as every other focusable Muka component. */
3721
- .muka-text-link:focus-visible {
3722
- outline: 2px solid var(--color-border-focus);
3723
- outline-offset: 2px;
3724
- }
3725
-
3726
- @media (prefers-reduced-motion: reduce) {
3727
- .muka-text-link {
3728
- transition: none;
3729
- }
3730
- }
3731
-
3732
-
3733
3651
  /* Thumbnail */
3734
3652
  /* Thumbnail Component Styles - Using Muka Design Tokens */
3735
3653
 
@@ -3915,357 +3833,439 @@ body {
3915
3833
  }
3916
3834
 
3917
3835
 
3918
- /* Tabs */
3919
- /* Tabs Component Styles - Clean underline style tabs matching Figma */
3836
+ /* Textarea */
3837
+ /* Textarea Component Styles - Using Muka Design Tokens */
3920
3838
 
3921
- .muka-tabs {
3922
- display: flex;
3839
+ .muka-textarea {
3840
+ display: inline-flex;
3923
3841
  flex-direction: column;
3842
+ gap: var(--spacing-2);
3924
3843
  }
3925
3844
 
3926
- /* Alignment Variants */
3927
- .muka-tabs--align-left .muka-tabs__list {
3928
- justify-content: flex-start;
3929
- }
3930
- .muka-tabs--align-center .muka-tabs__list {
3931
- justify-content: center;
3932
- }
3933
- .muka-tabs--align-fill .muka-tabs__list {
3934
- justify-content: space-between;
3935
- }
3936
- .muka-tabs--align-fill .muka-tabs__trigger {
3937
- flex: 1;
3845
+ /* Label */
3846
+ .muka-textarea__label {
3847
+ color: var(--color-text-default-default);
3848
+ cursor: pointer;
3938
3849
  }
3939
3850
 
3940
- /* Tab List — strip container */
3941
- .muka-tabs__list {
3942
- display: flex;
3943
- align-items: center;
3944
- position: relative;
3945
- z-index: 2;
3946
- border-bottom: 1px solid var(--tabs-trigger-color-default-border);
3851
+ .muka-textarea__label--sm {
3852
+ font-family: var(--text-label-sm-semibold-fontFamily);
3853
+ font-weight: var(--text-label-sm-semibold-fontWeight);
3854
+ font-size: var(--text-label-sm-semibold-fontSize);
3855
+ line-height: var(--text-label-sm-semibold-lineHeight);
3947
3856
  }
3948
3857
 
3949
- /* Padding: inset the tabs; the divider (border) still spans the full width */
3950
- .muka-tabs--padding-default .muka-tabs__list {
3951
- padding-inline: var(--tabs-list-padding-x);
3858
+ .muka-textarea__label--md {
3859
+ font-family: var(--text-label-md-semibold-fontFamily);
3860
+ font-weight: var(--text-label-md-semibold-fontWeight);
3861
+ font-size: var(--text-label-md-semibold-fontSize);
3862
+ line-height: var(--text-label-md-semibold-lineHeight);
3952
3863
  }
3953
3864
 
3954
- /* Tab Trigger — clean underline style */
3955
- .muka-tabs__trigger {
3956
- display: inline-flex;
3957
- align-items: center;
3958
- justify-content: center;
3959
- gap: var(--spacing-1);
3960
- background: transparent;
3961
- border: none;
3962
- cursor: pointer;
3963
- user-select: none;
3964
- transition: background-color 0.2s ease, color 0.2s ease;
3965
- outline: none;
3966
- white-space: nowrap;
3967
- position: relative;
3968
- z-index: 2;
3969
- color: var(--tabs-trigger-color-default-foreground);
3970
-
3971
- /* Default MD size values */
3972
- min-height: var(--tabs-trigger-min-height-md);
3973
- padding: var(--spacing-3);
3974
- font-family: var(--text-label-md-regular-fontFamily);
3975
- font-weight: var(--text-label-md-regular-fontWeight);
3976
- font-size: var(--text-label-md-regular-fontSize);
3977
- line-height: var(--text-label-md-regular-lineHeight);
3865
+ .muka-textarea__label--lg {
3866
+ font-family: var(--text-label-lg-semibold-fontFamily);
3867
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3868
+ font-size: var(--text-label-lg-semibold-fontSize);
3869
+ line-height: var(--text-label-lg-semibold-lineHeight);
3978
3870
  }
3979
3871
 
3980
- /* Size Variants */
3981
- .muka-tabs--size-sm .muka-tabs__trigger {
3982
- min-height: var(--tabs-trigger-min-height-sm);
3983
- padding: 0 var(--spacing-2);
3984
- font-family: var(--text-label-sm-regular-fontFamily);
3985
- font-weight: var(--text-label-sm-regular-fontWeight);
3986
- font-size: var(--text-label-sm-regular-fontSize);
3987
- line-height: var(--text-label-sm-regular-lineHeight);
3872
+ .muka-textarea__required {
3873
+ color: var(--color-state-error-default);
3988
3874
  }
3989
3875
 
3990
- .muka-tabs--size-lg .muka-tabs__trigger {
3991
- min-height: var(--tabs-trigger-min-height-lg);
3992
- padding: var(--spacing-4);
3993
- font-family: var(--text-label-lg-regular-fontFamily);
3994
- font-weight: var(--text-label-lg-regular-fontWeight);
3995
- font-size: var(--text-label-lg-regular-fontSize);
3996
- line-height: var(--text-label-lg-regular-lineHeight);
3876
+ /* Field container */
3877
+ .muka-textarea__field {
3878
+ display: flex;
3879
+ background-color: var(--input-field-color-default-background);
3880
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
3881
+ border-radius: var(--input-field-radius-md);
3882
+ padding: var(--input-field-padding-y) var(--input-field-padding-x);
3883
+ transition: border-color 0.2s ease, background-color 0.2s ease;
3884
+ box-sizing: border-box;
3997
3885
  }
3998
3886
 
3999
- /* Hover state */
4000
- .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
4001
- color: var(--tabs-trigger-color-hover-foreground);
3887
+ .muka-textarea__field--sm {
3888
+ min-height: var(--input-textarea-height-sm);
3889
+ border-radius: var(--input-field-radius-sm);
4002
3890
  }
4003
3891
 
4004
- /* Current tab */
4005
- .muka-tabs__trigger--current {
4006
- color: var(--tabs-trigger-color-current-foreground);
3892
+ .muka-textarea__field--md {
3893
+ min-height: var(--input-textarea-height-default);
3894
+ border-radius: var(--input-field-radius-md);
4007
3895
  }
4008
3896
 
4009
- /* Active bottom border (underline) */
4010
- .muka-tabs__trigger--current::after {
4011
- content: '';
4012
- position: absolute;
4013
- bottom: -1px; /* Overlap the 1px border */
4014
- left: 0;
4015
- right: 0;
4016
- height: var(--tabs-indicator-height-md);
4017
- background-color: var(--tabs-indicator-color);
4018
- border-bottom-left-radius: 1px;
4019
- border-bottom-right-radius: 1px;
4020
- border-top-left-radius: 3px;
4021
- border-top-right-radius: 3px;
4022
- z-index: 3;
3897
+ .muka-textarea__field--lg {
3898
+ min-height: var(--input-textarea-height-lg);
3899
+ border-radius: var(--input-field-radius-lg);
4023
3900
  }
4024
3901
 
4025
- .muka-tabs--size-sm .muka-tabs__trigger--current::after {
4026
- height: var(--tabs-indicator-height-sm);
3902
+ /* Focus state */
3903
+ .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3904
+ border-width: var(--border-width-bold);
3905
+ border-color: var(--input-field-color-focus-border);
3906
+ background-color: var(--input-field-color-focus-background);
3907
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4027
3908
  }
4028
- .muka-tabs--size-lg .muka-tabs__trigger--current::after {
4029
- height: var(--tabs-indicator-height-lg);
3909
+
3910
+ /* Error state */
3911
+ .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
3912
+ border-width: var(--border-width-bold);
3913
+ border-color: var(--input-field-color-error-border);
3914
+ background-color: var(--input-field-color-error-background);
3915
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4030
3916
  }
4031
3917
 
4032
- .muka-tabs__trigger--disabled {
4033
- color: var(--tabs-trigger-color-disabled-foreground);
3918
+ /* Disabled state */
3919
+ .muka-textarea__field--disabled {
3920
+ background-color: var(--input-field-color-disabled-background);
3921
+ border-color: var(--input-field-color-disabled-border);
4034
3922
  cursor: not-allowed;
4035
3923
  }
4036
3924
 
4037
- .muka-tabs__trigger:focus-visible {
4038
- outline: 2px solid var(--color-border-focus);
4039
- outline-offset: -2px;
3925
+ /* Native textarea */
3926
+ .muka-textarea__native {
3927
+ flex: 1;
3928
+ border: none;
3929
+ outline: none;
3930
+ background: transparent;
3931
+ color: var(--input-field-color-default-foreground);
3932
+ font-family: var(--text-input-md-fontFamily);
3933
+ font-weight: var(--text-input-md-fontWeight);
3934
+ font-size: var(--text-input-md-fontSize);
3935
+ line-height: var(--text-input-md-lineHeight);
3936
+ padding: 0;
3937
+ width: 100%;
3938
+ min-width: 0;
4040
3939
  }
4041
3940
 
4042
- /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
4043
- item sits 12px from the text */
4044
- .muka-tabs__label {
4045
- padding: 0 var(--spacing-2);
4046
- }
3941
+ .muka-textarea__field--sm .muka-textarea__native {
3942
+ font-family: var(--text-input-sm-fontFamily);
3943
+ font-weight: var(--text-input-sm-fontWeight);
3944
+ font-size: var(--text-input-sm-fontSize);
3945
+ line-height: var(--text-input-sm-lineHeight);
3946
+ }
4047
3947
 
4048
- /* Leading item: icon, avatar, avatar group or data pie chart */
4049
- .muka-tabs__leading {
3948
+ .muka-textarea__field--lg .muka-textarea__native {
3949
+ font-family: var(--text-input-lg-fontFamily);
3950
+ font-weight: var(--text-input-lg-fontWeight);
3951
+ font-size: var(--text-input-lg-fontSize);
3952
+ line-height: var(--text-input-lg-lineHeight);
3953
+ }
3954
+
3955
+ .muka-textarea__native::placeholder {
3956
+ color: var(--color-text-subtle-default);
3957
+ }
3958
+
3959
+ .muka-textarea__field--disabled .muka-textarea__native {
3960
+ color: var(--input-field-color-disabled-foreground);
3961
+ cursor: not-allowed;
3962
+ }
3963
+
3964
+ /* Footer (helper/error + count) */
3965
+ .muka-textarea__footer {
4050
3966
  display: flex;
4051
- align-items: center;
4052
- justify-content: center;
4053
- flex-shrink: 0;
3967
+ justify-content: space-between;
3968
+ align-items: flex-start;
3969
+ gap: var(--spacing-2);
4054
3970
  }
4055
- .muka-tabs__trigger .muka-icon {
4056
- color: inherit;
3971
+
3972
+ .muka-textarea__helper {
3973
+ font-family: var(--text-label-sm-regular-fontFamily);
3974
+ font-weight: var(--text-label-sm-regular-fontWeight);
3975
+ font-size: var(--text-label-sm-regular-fontSize);
3976
+ line-height: var(--text-label-sm-regular-lineHeight);
3977
+ color: var(--color-text-subtle-default);
3978
+ margin: 0;
4057
3979
  }
4058
- /* Icon sizes only: avatars and pie charts are sized through their size prop */
4059
- .muka-tabs--size-sm .muka-tabs__leading > svg,
4060
- .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
4061
- .muka-tabs--size-md .muka-tabs__leading > svg,
4062
- .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
4063
- .muka-tabs--size-lg .muka-tabs__leading > svg,
4064
- .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
4065
3980
 
4066
- /* Responsive Scroll behavior on small screens */
4067
- @media (max-width: 768px) {
4068
- .muka-tabs__list {
4069
- /* Make scrollable */
4070
- overflow-x: auto;
4071
- overflow-y: hidden;
4072
- /* Force left alignment on mobile to prevent clipping when scrolling */
4073
- justify-content: flex-start !important;
4074
- max-width: 100vw;
4075
- -webkit-overflow-scrolling: touch;
4076
- /* Hide scrollbar for cleaner look */
4077
- scrollbar-width: none;
4078
- }
4079
- .muka-tabs__list::-webkit-scrollbar {
4080
- display: none;
4081
- }
4082
- /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
4083
- .muka-tabs--align-fill .muka-tabs__trigger {
4084
- flex: 0 0 auto;
4085
- }
3981
+ .muka-textarea__error {
3982
+ font-family: var(--text-label-sm-regular-fontFamily);
3983
+ font-weight: var(--text-label-sm-regular-fontWeight);
3984
+ font-size: var(--text-label-sm-regular-fontSize);
3985
+ line-height: var(--text-label-sm-regular-lineHeight);
3986
+ color: var(--color-state-error-default);
3987
+ margin: 0;
4086
3988
  }
4087
3989
 
4088
- /* Tab Panel — content area */
4089
- .muka-tabs__panel {
4090
- background-color: var(--tabs-panel-background);
4091
- /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
4092
- border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
4093
- padding: var(--spacing-4);
4094
- position: relative;
4095
- z-index: 1;
3990
+ .muka-textarea__count {
3991
+ font-family: var(--text-label-sm-regular-fontFamily);
3992
+ font-weight: var(--text-label-sm-regular-fontWeight);
3993
+ font-size: var(--text-label-sm-regular-fontSize);
3994
+ line-height: var(--text-label-sm-regular-lineHeight);
3995
+ color: var(--color-text-subtle-default);
3996
+ margin-left: auto;
3997
+ }
3998
+
3999
+
4000
+ /* TextLink */
4001
+ /* TextLink Component Styles - Using Muka Design Tokens */
4002
+
4003
+ .muka-text-link {
4004
+ display: inline;
4005
+ cursor: pointer;
4006
+ text-decoration: underline;
4007
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4008
+ text-underline-offset: 0.2em;
4009
+ text-decoration-thickness: from-font;
4010
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
4011
+ border-radius: var(--border-radius-sm);
4012
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4013
+ }
4014
+
4015
+ /* ─── Sizes ───────────────────────────────────────────────
4016
+ Mirrors the body text scale so a link matches the copy it sits in. */
4017
+ .muka-text-link--sm {
4018
+ font-family: var(--text-body-sm-regular-fontFamily);
4019
+ font-weight: var(--text-body-sm-regular-fontWeight);
4020
+ font-size: var(--text-body-sm-regular-fontSize);
4021
+ line-height: var(--text-body-sm-regular-lineHeight);
4022
+ }
4023
+
4024
+ .muka-text-link--base {
4096
4025
  font-family: var(--text-body-base-regular-fontFamily);
4097
4026
  font-weight: var(--text-body-base-regular-fontWeight);
4098
4027
  font-size: var(--text-body-base-regular-fontSize);
4099
4028
  line-height: var(--text-body-base-regular-lineHeight);
4100
4029
  }
4101
4030
 
4102
- .muka-tabs__panel:focus-visible {
4103
- outline: 2px solid var(--color-border-focus);
4104
- outline-offset: 2px;
4031
+ .muka-text-link--lg {
4032
+ font-family: var(--text-body-lg-regular-fontFamily);
4033
+ font-weight: var(--text-body-lg-regular-fontWeight);
4034
+ font-size: var(--text-body-lg-regular-fontSize);
4035
+ line-height: var(--text-body-lg-regular-lineHeight);
4105
4036
  }
4106
4037
 
4038
+ /* ─── Variant: default (accent) ───────────────────────────
4039
+ Visited repeats the default colour on purpose: the design treats visited and
4040
+ default the same, and pinning it stops the browser's purple from showing. */
4041
+ .muka-text-link--default,
4042
+ .muka-text-link--default:visited {
4043
+ color: var(--color-text-action-default);
4044
+ }
4107
4045
 
4108
- /* Textarea */
4109
- /* Textarea Component Styles - Using Muka Design Tokens */
4046
+ .muka-text-link--default:hover,
4047
+ .muka-text-link--default:focus-visible {
4048
+ color: var(--color-text-action-hover);
4049
+ }
4110
4050
 
4111
- .muka-textarea {
4112
- display: inline-flex;
4113
- flex-direction: column;
4114
- gap: var(--spacing-2);
4051
+ .muka-text-link--default:active {
4052
+ color: var(--color-text-action-pressed);
4115
4053
  }
4116
4054
 
4117
- /* Label */
4118
- .muka-textarea__label {
4055
+ /* ─── Variant: subtle (neutral) ───────────────────────────
4056
+ Hover, focus and pressed all darken to the default text colour. */
4057
+ .muka-text-link--subtle,
4058
+ .muka-text-link--subtle:visited {
4059
+ color: var(--color-text-subtle-default);
4060
+ }
4061
+
4062
+ .muka-text-link--subtle:hover,
4063
+ .muka-text-link--subtle:focus-visible,
4064
+ .muka-text-link--subtle:active {
4119
4065
  color: var(--color-text-default-default);
4120
- cursor: pointer;
4121
4066
  }
4122
4067
 
4123
- .muka-textarea__label--sm {
4124
- font-family: var(--text-label-sm-semibold-fontFamily);
4125
- font-weight: var(--text-label-sm-semibold-fontWeight);
4126
- font-size: var(--text-label-sm-semibold-fontSize);
4127
- line-height: var(--text-label-sm-semibold-lineHeight);
4068
+ /* ─── Focus ───────────────────────────────────────────────
4069
+ Same ring as every other focusable Muka component. */
4070
+ .muka-text-link:focus-visible {
4071
+ outline: 2px solid var(--color-border-focus);
4072
+ outline-offset: 2px;
4128
4073
  }
4129
4074
 
4130
- .muka-textarea__label--md {
4131
- font-family: var(--text-label-md-semibold-fontFamily);
4132
- font-weight: var(--text-label-md-semibold-fontWeight);
4133
- font-size: var(--text-label-md-semibold-fontSize);
4134
- line-height: var(--text-label-md-semibold-lineHeight);
4075
+ @media (prefers-reduced-motion: reduce) {
4076
+ .muka-text-link {
4077
+ transition: none;
4078
+ }
4135
4079
  }
4136
4080
 
4137
- .muka-textarea__label--lg {
4138
- font-family: var(--text-label-lg-semibold-fontFamily);
4139
- font-weight: var(--text-label-lg-semibold-fontWeight);
4140
- font-size: var(--text-label-lg-semibold-fontSize);
4141
- line-height: var(--text-label-lg-semibold-lineHeight);
4081
+
4082
+ /* Tabs */
4083
+ /* Tabs Component Styles - Clean underline style tabs matching Figma */
4084
+
4085
+ .muka-tabs {
4086
+ display: flex;
4087
+ flex-direction: column;
4142
4088
  }
4143
4089
 
4144
- .muka-textarea__required {
4145
- color: var(--color-state-error-default);
4090
+ /* Alignment Variants */
4091
+ .muka-tabs--align-left .muka-tabs__list {
4092
+ justify-content: flex-start;
4093
+ }
4094
+ .muka-tabs--align-center .muka-tabs__list {
4095
+ justify-content: center;
4096
+ }
4097
+ .muka-tabs--align-fill .muka-tabs__list {
4098
+ justify-content: space-between;
4099
+ }
4100
+ .muka-tabs--align-fill .muka-tabs__trigger {
4101
+ flex: 1;
4146
4102
  }
4147
4103
 
4148
- /* Field container */
4149
- .muka-textarea__field {
4104
+ /* Tab List — strip container */
4105
+ .muka-tabs__list {
4150
4106
  display: flex;
4151
- background-color: var(--input-field-color-default-background);
4152
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
4153
- border-radius: var(--input-field-radius-md);
4154
- padding: var(--input-field-padding-y) var(--input-field-padding-x);
4155
- transition: border-color 0.2s ease, background-color 0.2s ease;
4156
- box-sizing: border-box;
4107
+ align-items: center;
4108
+ position: relative;
4109
+ z-index: 2;
4110
+ border-bottom: 1px solid var(--tabs-trigger-color-default-border);
4157
4111
  }
4158
4112
 
4159
- .muka-textarea__field--sm {
4160
- min-height: var(--input-textarea-height-sm);
4161
- border-radius: var(--input-field-radius-sm);
4113
+ /* Padding: inset the tabs; the divider (border) still spans the full width */
4114
+ .muka-tabs--padding-default .muka-tabs__list {
4115
+ padding-inline: var(--tabs-list-padding-x);
4162
4116
  }
4163
4117
 
4164
- .muka-textarea__field--md {
4165
- min-height: var(--input-textarea-height-default);
4166
- border-radius: var(--input-field-radius-md);
4118
+ /* Tab Trigger — clean underline style */
4119
+ .muka-tabs__trigger {
4120
+ display: inline-flex;
4121
+ align-items: center;
4122
+ justify-content: center;
4123
+ gap: var(--spacing-1);
4124
+ background: transparent;
4125
+ border: none;
4126
+ cursor: pointer;
4127
+ user-select: none;
4128
+ transition: background-color 0.2s ease, color 0.2s ease;
4129
+ outline: none;
4130
+ white-space: nowrap;
4131
+ position: relative;
4132
+ z-index: 2;
4133
+ color: var(--tabs-trigger-color-default-foreground);
4134
+
4135
+ /* Default MD size values */
4136
+ min-height: var(--tabs-trigger-min-height-md);
4137
+ padding: var(--spacing-3);
4138
+ font-family: var(--text-label-md-regular-fontFamily);
4139
+ font-weight: var(--text-label-md-regular-fontWeight);
4140
+ font-size: var(--text-label-md-regular-fontSize);
4141
+ line-height: var(--text-label-md-regular-lineHeight);
4167
4142
  }
4168
4143
 
4169
- .muka-textarea__field--lg {
4170
- min-height: var(--input-textarea-height-lg);
4171
- border-radius: var(--input-field-radius-lg);
4144
+ /* Size Variants */
4145
+ .muka-tabs--size-sm .muka-tabs__trigger {
4146
+ min-height: var(--tabs-trigger-min-height-sm);
4147
+ padding: 0 var(--spacing-2);
4148
+ font-family: var(--text-label-sm-regular-fontFamily);
4149
+ font-weight: var(--text-label-sm-regular-fontWeight);
4150
+ font-size: var(--text-label-sm-regular-fontSize);
4151
+ line-height: var(--text-label-sm-regular-lineHeight);
4172
4152
  }
4173
4153
 
4174
- /* Focus state */
4175
- .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
4176
- border-width: var(--border-width-bold);
4177
- border-color: var(--input-field-color-focus-border);
4178
- background-color: var(--input-field-color-focus-background);
4179
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4154
+ .muka-tabs--size-lg .muka-tabs__trigger {
4155
+ min-height: var(--tabs-trigger-min-height-lg);
4156
+ padding: var(--spacing-4);
4157
+ font-family: var(--text-label-lg-regular-fontFamily);
4158
+ font-weight: var(--text-label-lg-regular-fontWeight);
4159
+ font-size: var(--text-label-lg-regular-fontSize);
4160
+ line-height: var(--text-label-lg-regular-lineHeight);
4180
4161
  }
4181
4162
 
4182
- /* Error state */
4183
- .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
4184
- border-width: var(--border-width-bold);
4185
- border-color: var(--input-field-color-error-border);
4186
- background-color: var(--input-field-color-error-background);
4187
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4163
+ /* Hover state */
4164
+ .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
4165
+ color: var(--tabs-trigger-color-hover-foreground);
4188
4166
  }
4189
4167
 
4190
- /* Disabled state */
4191
- .muka-textarea__field--disabled {
4192
- background-color: var(--input-field-color-disabled-background);
4193
- border-color: var(--input-field-color-disabled-border);
4194
- cursor: not-allowed;
4168
+ /* Current tab */
4169
+ .muka-tabs__trigger--current {
4170
+ color: var(--tabs-trigger-color-current-foreground);
4195
4171
  }
4196
4172
 
4197
- /* Native textarea */
4198
- .muka-textarea__native {
4199
- flex: 1;
4200
- border: none;
4201
- outline: none;
4202
- background: transparent;
4203
- color: var(--input-field-color-default-foreground);
4204
- font-family: var(--text-input-md-fontFamily);
4205
- font-weight: var(--text-input-md-fontWeight);
4206
- font-size: var(--text-input-md-fontSize);
4207
- line-height: var(--text-input-md-lineHeight);
4208
- padding: 0;
4209
- width: 100%;
4210
- min-width: 0;
4173
+ /* Active bottom border (underline) */
4174
+ .muka-tabs__trigger--current::after {
4175
+ content: '';
4176
+ position: absolute;
4177
+ bottom: -1px; /* Overlap the 1px border */
4178
+ left: 0;
4179
+ right: 0;
4180
+ height: var(--tabs-indicator-height-md);
4181
+ background-color: var(--tabs-indicator-color);
4182
+ border-bottom-left-radius: 1px;
4183
+ border-bottom-right-radius: 1px;
4184
+ border-top-left-radius: 3px;
4185
+ border-top-right-radius: 3px;
4186
+ z-index: 3;
4211
4187
  }
4212
4188
 
4213
- .muka-textarea__field--sm .muka-textarea__native {
4214
- font-family: var(--text-input-sm-fontFamily);
4215
- font-weight: var(--text-input-sm-fontWeight);
4216
- font-size: var(--text-input-sm-fontSize);
4217
- line-height: var(--text-input-sm-lineHeight);
4189
+ .muka-tabs--size-sm .muka-tabs__trigger--current::after {
4190
+ height: var(--tabs-indicator-height-sm);
4191
+ }
4192
+ .muka-tabs--size-lg .muka-tabs__trigger--current::after {
4193
+ height: var(--tabs-indicator-height-lg);
4218
4194
  }
4219
4195
 
4220
- .muka-textarea__field--lg .muka-textarea__native {
4221
- font-family: var(--text-input-lg-fontFamily);
4222
- font-weight: var(--text-input-lg-fontWeight);
4223
- font-size: var(--text-input-lg-fontSize);
4224
- line-height: var(--text-input-lg-lineHeight);
4196
+ .muka-tabs__trigger--disabled {
4197
+ color: var(--tabs-trigger-color-disabled-foreground);
4198
+ cursor: not-allowed;
4225
4199
  }
4226
4200
 
4227
- .muka-textarea__native::placeholder {
4228
- color: var(--color-text-subtle-default);
4201
+ .muka-tabs__trigger:focus-visible {
4202
+ outline: 2px solid var(--color-border-focus);
4203
+ outline-offset: -2px;
4229
4204
  }
4230
4205
 
4231
- .muka-textarea__field--disabled .muka-textarea__native {
4232
- color: var(--input-field-color-disabled-foreground);
4233
- cursor: not-allowed;
4206
+ /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
4207
+ item sits 12px from the text */
4208
+ .muka-tabs__label {
4209
+ padding: 0 var(--spacing-2);
4234
4210
  }
4235
4211
 
4236
- /* Footer (helper/error + count) */
4237
- .muka-textarea__footer {
4212
+ /* Leading item: icon, avatar, avatar group or data pie chart */
4213
+ .muka-tabs__leading {
4238
4214
  display: flex;
4239
- justify-content: space-between;
4240
- align-items: flex-start;
4241
- gap: var(--spacing-2);
4215
+ align-items: center;
4216
+ justify-content: center;
4217
+ flex-shrink: 0;
4218
+ }
4219
+ .muka-tabs__trigger .muka-icon {
4220
+ color: inherit;
4242
4221
  }
4222
+ /* Icon sizes only: avatars and pie charts are sized through their size prop */
4223
+ .muka-tabs--size-sm .muka-tabs__leading > svg,
4224
+ .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
4225
+ .muka-tabs--size-md .muka-tabs__leading > svg,
4226
+ .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
4227
+ .muka-tabs--size-lg .muka-tabs__leading > svg,
4228
+ .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
4243
4229
 
4244
- .muka-textarea__helper {
4245
- font-family: var(--text-label-sm-regular-fontFamily);
4246
- font-weight: var(--text-label-sm-regular-fontWeight);
4247
- font-size: var(--text-label-sm-regular-fontSize);
4248
- line-height: var(--text-label-sm-regular-lineHeight);
4249
- color: var(--color-text-subtle-default);
4250
- margin: 0;
4230
+ /* Responsive Scroll behavior on small screens */
4231
+ @media (max-width: 768px) {
4232
+ .muka-tabs__list {
4233
+ /* Make scrollable */
4234
+ overflow-x: auto;
4235
+ overflow-y: hidden;
4236
+ /* Force left alignment on mobile to prevent clipping when scrolling */
4237
+ justify-content: flex-start !important;
4238
+ max-width: 100vw;
4239
+ -webkit-overflow-scrolling: touch;
4240
+ /* Hide scrollbar for cleaner look */
4241
+ scrollbar-width: none;
4242
+ }
4243
+ .muka-tabs__list::-webkit-scrollbar {
4244
+ display: none;
4245
+ }
4246
+ /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
4247
+ .muka-tabs--align-fill .muka-tabs__trigger {
4248
+ flex: 0 0 auto;
4249
+ }
4251
4250
  }
4252
4251
 
4253
- .muka-textarea__error {
4254
- font-family: var(--text-label-sm-regular-fontFamily);
4255
- font-weight: var(--text-label-sm-regular-fontWeight);
4256
- font-size: var(--text-label-sm-regular-fontSize);
4257
- line-height: var(--text-label-sm-regular-lineHeight);
4258
- color: var(--color-state-error-default);
4259
- margin: 0;
4252
+ /* Tab Panel — content area */
4253
+ .muka-tabs__panel {
4254
+ background-color: var(--tabs-panel-background);
4255
+ /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
4256
+ border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
4257
+ padding: var(--spacing-4);
4258
+ position: relative;
4259
+ z-index: 1;
4260
+ font-family: var(--text-body-base-regular-fontFamily);
4261
+ font-weight: var(--text-body-base-regular-fontWeight);
4262
+ font-size: var(--text-body-base-regular-fontSize);
4263
+ line-height: var(--text-body-base-regular-lineHeight);
4260
4264
  }
4261
4265
 
4262
- .muka-textarea__count {
4263
- font-family: var(--text-label-sm-regular-fontFamily);
4264
- font-weight: var(--text-label-sm-regular-fontWeight);
4265
- font-size: var(--text-label-sm-regular-fontSize);
4266
- line-height: var(--text-label-sm-regular-lineHeight);
4267
- color: var(--color-text-subtle-default);
4268
- margin-left: auto;
4266
+ .muka-tabs__panel:focus-visible {
4267
+ outline: 2px solid var(--color-border-focus);
4268
+ outline-offset: 2px;
4269
4269
  }
4270
4270
 
4271
4271
 
@@ -4322,6 +4322,20 @@ body {
4322
4322
  background-color: var(--color-surface-level0);
4323
4323
  }
4324
4324
 
4325
+ /* Plain (MUK-103): no tint; small subtle capitals under a section heading. */
4326
+ .muka-table__head--plain .muka-table__row {
4327
+ background-color: transparent;
4328
+ }
4329
+
4330
+ .muka-table__head--plain .muka-table__header-cell {
4331
+ font-family: var(--text-label-sm-regular-fontFamily);
4332
+ font-weight: var(--text-label-sm-regular-fontWeight);
4333
+ font-size: var(--text-label-sm-regular-fontSize);
4334
+ line-height: var(--text-label-sm-regular-lineHeight);
4335
+ color: var(--color-text-subtle-default);
4336
+ text-transform: uppercase;
4337
+ }
4338
+
4325
4339
  /* ========================================
4326
4340
  TABLE BODY
4327
4341
  ======================================== */
@@ -4498,6 +4512,20 @@ body {
4498
4512
  background-color: var(--color-surface-level0);
4499
4513
  }
4500
4514
 
4515
+ /* Plain (MUK-103): no tint; small subtle capitals under a section heading. */
4516
+ .muka-table__head--plain .muka-table__row {
4517
+ background-color: transparent;
4518
+ }
4519
+
4520
+ .muka-table__head--plain .muka-table__header-cell {
4521
+ font-family: var(--text-label-sm-regular-fontFamily);
4522
+ font-weight: var(--text-label-sm-regular-fontWeight);
4523
+ font-size: var(--text-label-sm-regular-fontSize);
4524
+ line-height: var(--text-label-sm-regular-lineHeight);
4525
+ color: var(--color-text-subtle-default);
4526
+ text-transform: uppercase;
4527
+ }
4528
+
4501
4529
  /* ========================================
4502
4530
  TABLE BODY
4503
4531
  ======================================== */
@@ -4729,84 +4757,6 @@ body {
4729
4757
  }
4730
4758
 
4731
4759
 
4732
- /* Spinner */
4733
- /* Spinner Component Styles */
4734
-
4735
- .muka-spinner {
4736
- display: inline-flex;
4737
- align-items: center;
4738
- justify-content: center;
4739
- color: var(--color-text-default-default);
4740
- line-height: 0;
4741
- }
4742
-
4743
- .muka-spinner--subtle {
4744
- color: var(--color-text-subtle-default);
4745
- }
4746
-
4747
- .muka-spinner--inverse {
4748
- color: var(--color-text-default-inverse);
4749
- }
4750
-
4751
- .muka-spinner__circle {
4752
- display: inline-block;
4753
- border-radius: 50%;
4754
- border-style: solid;
4755
- border-color: currentColor;
4756
- border-right-color: transparent;
4757
- animation: muka-spinner-rotate 0.7s linear infinite;
4758
- box-sizing: border-box;
4759
- }
4760
-
4761
- /* ─── Sizes ───────────────────────────────────────────── */
4762
-
4763
- .muka-spinner--sm .muka-spinner__circle {
4764
- width: 16px;
4765
- height: 16px;
4766
- border-width: 2px;
4767
- }
4768
-
4769
- .muka-spinner--md .muka-spinner__circle {
4770
- width: 20px;
4771
- height: 20px;
4772
- border-width: 2px;
4773
- }
4774
-
4775
- .muka-spinner--lg .muka-spinner__circle {
4776
- width: 24px;
4777
- height: 24px;
4778
- border-width: 3px;
4779
- }
4780
-
4781
- /* ─── Visually-hidden label ───────────────────────────── */
4782
-
4783
- .muka-spinner__sr-label {
4784
- position: absolute;
4785
- width: 1px;
4786
- height: 1px;
4787
- padding: 0;
4788
- margin: -1px;
4789
- overflow: hidden;
4790
- clip: rect(0, 0, 0, 0);
4791
- white-space: nowrap;
4792
- border: 0;
4793
- }
4794
-
4795
- /* ─── Reduced motion ──────────────────────────────────── */
4796
-
4797
- @keyframes muka-spinner-rotate {
4798
- to {
4799
- transform: rotate(360deg);
4800
- }
4801
- }
4802
-
4803
- @media (prefers-reduced-motion: reduce) {
4804
- .muka-spinner__circle {
4805
- animation-duration: 2.5s;
4806
- }
4807
- }
4808
-
4809
-
4810
4760
  /* SpecList */
4811
4761
  /* SpecList Component Styles */
4812
4762
 
@@ -4892,6 +4842,84 @@ body {
4892
4842
  }
4893
4843
 
4894
4844
 
4845
+ /* Spinner */
4846
+ /* Spinner Component Styles */
4847
+
4848
+ .muka-spinner {
4849
+ display: inline-flex;
4850
+ align-items: center;
4851
+ justify-content: center;
4852
+ color: var(--color-text-default-default);
4853
+ line-height: 0;
4854
+ }
4855
+
4856
+ .muka-spinner--subtle {
4857
+ color: var(--color-text-subtle-default);
4858
+ }
4859
+
4860
+ .muka-spinner--inverse {
4861
+ color: var(--color-text-default-inverse);
4862
+ }
4863
+
4864
+ .muka-spinner__circle {
4865
+ display: inline-block;
4866
+ border-radius: 50%;
4867
+ border-style: solid;
4868
+ border-color: currentColor;
4869
+ border-right-color: transparent;
4870
+ animation: muka-spinner-rotate 0.7s linear infinite;
4871
+ box-sizing: border-box;
4872
+ }
4873
+
4874
+ /* ─── Sizes ───────────────────────────────────────────── */
4875
+
4876
+ .muka-spinner--sm .muka-spinner__circle {
4877
+ width: 16px;
4878
+ height: 16px;
4879
+ border-width: 2px;
4880
+ }
4881
+
4882
+ .muka-spinner--md .muka-spinner__circle {
4883
+ width: 20px;
4884
+ height: 20px;
4885
+ border-width: 2px;
4886
+ }
4887
+
4888
+ .muka-spinner--lg .muka-spinner__circle {
4889
+ width: 24px;
4890
+ height: 24px;
4891
+ border-width: 3px;
4892
+ }
4893
+
4894
+ /* ─── Visually-hidden label ───────────────────────────── */
4895
+
4896
+ .muka-spinner__sr-label {
4897
+ position: absolute;
4898
+ width: 1px;
4899
+ height: 1px;
4900
+ padding: 0;
4901
+ margin: -1px;
4902
+ overflow: hidden;
4903
+ clip: rect(0, 0, 0, 0);
4904
+ white-space: nowrap;
4905
+ border: 0;
4906
+ }
4907
+
4908
+ /* ─── Reduced motion ──────────────────────────────────── */
4909
+
4910
+ @keyframes muka-spinner-rotate {
4911
+ to {
4912
+ transform: rotate(360deg);
4913
+ }
4914
+ }
4915
+
4916
+ @media (prefers-reduced-motion: reduce) {
4917
+ .muka-spinner__circle {
4918
+ animation-duration: 2.5s;
4919
+ }
4920
+ }
4921
+
4922
+
4895
4923
  /* SocialSignInButton */
4896
4924
  /*
4897
4925
  * SocialSignInButton lockup colors are provider-mandated (Apple HIG /
@@ -5572,14 +5600,37 @@ body {
5572
5600
  margin: 0;
5573
5601
  }
5574
5602
 
5575
- /* Error message — same as Input */
5576
- .muka-select__error {
5577
- font-family: var(--text-label-sm-regular-fontFamily);
5578
- font-weight: var(--text-label-sm-regular-fontWeight);
5579
- font-size: var(--text-label-sm-regular-fontSize);
5580
- line-height: var(--text-label-sm-regular-lineHeight);
5581
- color: var(--color-state-error-default);
5582
- margin: 0;
5603
+ /* Error message — same as Input */
5604
+ .muka-select__error {
5605
+ font-family: var(--text-label-sm-regular-fontFamily);
5606
+ font-weight: var(--text-label-sm-regular-fontWeight);
5607
+ font-size: var(--text-label-sm-regular-fontSize);
5608
+ line-height: var(--text-label-sm-regular-lineHeight);
5609
+ color: var(--color-state-error-default);
5610
+ margin: 0;
5611
+ }
5612
+
5613
+
5614
+ /* Section */
5615
+ /* Section Component - Layout tokens (section.padding) */
5616
+
5617
+ .muka-section {
5618
+ box-sizing: border-box;
5619
+ }
5620
+
5621
+ .muka-section--padding-compact {
5622
+ padding-block: var(--section-padding-vertical-compact);
5623
+ padding-inline: var(--section-padding-horizontal-compact);
5624
+ }
5625
+
5626
+ .muka-section--padding-default {
5627
+ padding-block: var(--section-padding-vertical-default);
5628
+ padding-inline: var(--section-padding-horizontal-default);
5629
+ }
5630
+
5631
+ .muka-section--padding-spacious {
5632
+ padding-block: var(--section-padding-vertical-spacious);
5633
+ padding-inline: var(--section-padding-horizontal-spacious);
5583
5634
  }
5584
5635
 
5585
5636
 
@@ -5771,29 +5822,6 @@ body {
5771
5822
  }
5772
5823
 
5773
5824
 
5774
- /* Section */
5775
- /* Section Component - Layout tokens (section.padding) */
5776
-
5777
- .muka-section {
5778
- box-sizing: border-box;
5779
- }
5780
-
5781
- .muka-section--padding-compact {
5782
- padding-block: var(--section-padding-vertical-compact);
5783
- padding-inline: var(--section-padding-horizontal-compact);
5784
- }
5785
-
5786
- .muka-section--padding-default {
5787
- padding-block: var(--section-padding-vertical-default);
5788
- padding-inline: var(--section-padding-horizontal-default);
5789
- }
5790
-
5791
- .muka-section--padding-spacious {
5792
- padding-block: var(--section-padding-vertical-spacious);
5793
- padding-inline: var(--section-padding-horizontal-spacious);
5794
- }
5795
-
5796
-
5797
5825
  /* SearchInput */
5798
5826
  /* SearchInput Component Styles */
5799
5827
 
@@ -6133,226 +6161,10 @@ body {
6133
6161
  }
6134
6162
  }
6135
6163
 
6136
- @media (prefers-reduced-motion: reduce) {
6137
- .muka-recording-bar__dot {
6138
- animation: none;
6139
- }
6140
- }
6141
-
6142
-
6143
- /* RangeSlider */
6144
- /* RangeSlider Component Styles - Using Muka Design Tokens */
6145
-
6146
- .muka-range-slider {
6147
- display: flex;
6148
- flex-direction: column;
6149
- gap: var(--spacing-1);
6150
- width: 100%;
6151
- }
6152
-
6153
- /* ========================================
6154
- HEADER: label group (label + info + optional) and value readout
6155
- ======================================== */
6156
-
6157
- .muka-range-slider__header {
6158
- display: flex;
6159
- align-items: center;
6160
- justify-content: space-between;
6161
- gap: var(--spacing-2);
6162
- min-height: 24px;
6163
- }
6164
-
6165
- .muka-range-slider__label-group {
6166
- display: inline-flex;
6167
- align-items: center;
6168
- gap: var(--spacing-2);
6169
- }
6170
-
6171
- .muka-range-slider__label {
6172
- font-family: var(--text-label-md-semibold-fontFamily);
6173
- font-weight: var(--text-label-md-semibold-fontWeight);
6174
- font-size: var(--text-label-md-semibold-fontSize);
6175
- line-height: var(--text-label-md-semibold-lineHeight);
6176
- color: var(--color-text-default-default);
6177
- }
6178
-
6179
- .muka-range-slider__info {
6180
- color: var(--color-text-subtle-default);
6181
- }
6182
-
6183
- .muka-range-slider__optional {
6184
- font-family: var(--text-label-sm-regular-fontFamily);
6185
- font-weight: var(--text-label-sm-regular-fontWeight);
6186
- font-size: var(--text-label-sm-regular-fontSize);
6187
- line-height: var(--text-label-sm-regular-lineHeight);
6188
- color: var(--color-text-subtle-default);
6189
- }
6190
-
6191
- .muka-range-slider__value {
6192
- font-family: var(--text-label-md-regular-fontFamily);
6193
- font-weight: var(--text-label-md-regular-fontWeight);
6194
- font-size: var(--text-label-md-regular-fontSize);
6195
- line-height: var(--text-label-md-regular-lineHeight);
6196
- color: var(--color-text-default-default);
6197
- font-variant-numeric: tabular-nums;
6198
- }
6199
-
6200
- .muka-range-slider__helper {
6201
- margin: 0;
6202
- font-family: var(--text-body-sm-regular-fontFamily);
6203
- font-weight: var(--text-body-sm-regular-fontWeight);
6204
- font-size: var(--text-body-sm-regular-fontSize);
6205
- line-height: var(--text-body-sm-regular-lineHeight);
6206
- color: var(--color-text-subtle-default);
6207
- }
6208
-
6209
- /* ========================================
6210
- TRACK + THUMB
6211
- Native range input, restyled. A thick sunken track holds an accent fill up to
6212
- the current value, with a circular grip handle. The filled portion is driven
6213
- by the inline --muka-range-fill custom property (set from the component value).
6214
- ======================================== */
6215
-
6216
- /* Size variants: track height, thumb diameter and grip geometry */
6217
- .muka-range-slider--sm {
6218
- --muka-range-track-h: 12px;
6219
- --muka-range-thumb: 24px;
6220
- --muka-range-grip-h: 9px;
6221
- }
6222
- .muka-range-slider--md {
6223
- --muka-range-track-h: 16px;
6224
- --muka-range-thumb: 32px;
6225
- --muka-range-grip-h: 12px;
6226
- }
6227
- .muka-range-slider--lg {
6228
- --muka-range-track-h: 20px;
6229
- --muka-range-thumb: 40px;
6230
- --muka-range-grip-h: 15px;
6231
- }
6232
-
6233
- .muka-range-slider__bar {
6234
- /* Reserve the full thumb height so the handle never clips the layout. */
6235
- display: flex;
6236
- align-items: center;
6237
- height: var(--muka-range-thumb);
6238
- }
6239
-
6240
- .muka-range-slider__input {
6241
- -webkit-appearance: none;
6242
- appearance: none;
6243
- width: 100%;
6244
- height: var(--muka-range-thumb);
6245
- margin: 0;
6246
- background: transparent;
6247
- cursor: pointer;
6248
-
6249
- /* Grip handle fill + two vertical grip bars, all theme-aware. */
6250
- --muka-range-grip-color: var(--color-text-subtle-default);
6251
- --muka-range-grip-w: 2px;
6252
- --muka-range-grip-gap: 3px;
6253
-
6254
- /* The track fill: action colour up to the value, sunken surface beyond it. */
6255
- --muka-range-track-fill: linear-gradient(
6256
- to right,
6257
- var(--color-action-default) 0,
6258
- var(--color-action-default) var(--muka-range-fill, 0%),
6259
- var(--color-surface-sunken) var(--muka-range-fill, 0%),
6260
- var(--color-surface-sunken) 100%
6261
- );
6262
- }
6263
-
6264
- .muka-range-slider__input:focus {
6265
- outline: none;
6266
- }
6267
-
6268
- /* WebKit / Blink track */
6269
- .muka-range-slider__input::-webkit-slider-runnable-track {
6270
- height: var(--muka-range-track-h);
6271
- border-radius: var(--border-radius-full);
6272
- background-image: var(--muka-range-track-fill);
6273
- border: 1px solid var(--color-border-contrast);
6274
- box-shadow: var(--shadow-sunken);
6275
- }
6276
-
6277
- /* Firefox track + progress */
6278
- .muka-range-slider__input::-moz-range-track {
6279
- height: var(--muka-range-track-h);
6280
- border-radius: var(--border-radius-full);
6281
- background: var(--color-surface-sunken);
6282
- border: 1px solid var(--color-border-contrast);
6283
- box-shadow: var(--shadow-sunken);
6284
- }
6285
- .muka-range-slider__input::-moz-range-progress {
6286
- height: var(--muka-range-track-h);
6287
- border-radius: var(--border-radius-full);
6288
- background: var(--color-action-default);
6289
- }
6290
-
6291
- /* WebKit / Blink thumb (vertically centred over the track) */
6292
- .muka-range-slider__input::-webkit-slider-thumb {
6293
- -webkit-appearance: none;
6294
- appearance: none;
6295
- width: var(--muka-range-thumb);
6296
- height: var(--muka-range-thumb);
6297
- margin-top: calc((var(--muka-range-track-h) - var(--muka-range-thumb)) / 2);
6298
- border-radius: var(--border-radius-full);
6299
- border: 1px solid var(--color-border-contrast);
6300
- box-shadow: var(--shadow-level2);
6301
- background-color: var(--color-surface-level1);
6302
- background-image:
6303
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6304
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6305
- background-repeat: no-repeat;
6306
- background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6307
- background-position:
6308
- calc(50% - var(--muka-range-grip-gap)) center,
6309
- calc(50% + var(--muka-range-grip-gap)) center;
6310
- transition: box-shadow 0.15s ease, background-color 0.15s ease;
6311
- }
6312
-
6313
- /* Firefox thumb */
6314
- .muka-range-slider__input::-moz-range-thumb {
6315
- width: var(--muka-range-thumb);
6316
- height: var(--muka-range-thumb);
6317
- border-radius: var(--border-radius-full);
6318
- border: 1px solid var(--color-border-contrast);
6319
- box-shadow: var(--shadow-level2);
6320
- background-color: var(--color-surface-level1);
6321
- background-image:
6322
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6323
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6324
- background-repeat: no-repeat;
6325
- background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6326
- background-position:
6327
- calc(50% - var(--muka-range-grip-gap)) center,
6328
- calc(50% + var(--muka-range-grip-gap)) center;
6329
- transition: box-shadow 0.15s ease, background-color 0.15s ease;
6330
- }
6331
-
6332
- /* Hover */
6333
- .muka-range-slider__input:hover::-webkit-slider-thumb {
6334
- background-color: var(--color-surface-level1);
6335
- box-shadow: var(--shadow-level3);
6336
- }
6337
- .muka-range-slider__input:hover::-moz-range-thumb {
6338
- background-color: var(--color-surface-level1);
6339
- box-shadow: var(--shadow-level3);
6340
- }
6341
-
6342
- /* Focus ring */
6343
- .muka-range-slider__input:focus-visible::-webkit-slider-thumb {
6344
- box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6345
- }
6346
- .muka-range-slider__input:focus-visible::-moz-range-thumb {
6347
- box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6348
- }
6349
-
6350
- /* Disabled */
6351
- .muka-range-slider--disabled {
6352
- opacity: 0.5;
6353
- }
6354
- .muka-range-slider--disabled .muka-range-slider__input {
6355
- cursor: not-allowed;
6164
+ @media (prefers-reduced-motion: reduce) {
6165
+ .muka-recording-bar__dot {
6166
+ animation: none;
6167
+ }
6356
6168
  }
6357
6169
 
6358
6170
 
@@ -6631,62 +6443,278 @@ body {
6631
6443
  line-height: var(--text-label-md-regular-lineHeight);
6632
6444
  }
6633
6445
 
6634
- .muka-radio--lg .muka-radio__label {
6635
- font-family: var(--text-label-xl-regular-fontFamily);
6636
- font-weight: var(--text-label-xl-regular-fontWeight);
6637
- font-size: var(--text-label-xl-regular-fontSize);
6638
- line-height: var(--text-label-xl-regular-lineHeight);
6446
+ .muka-radio--lg .muka-radio__label {
6447
+ font-family: var(--text-label-xl-regular-fontFamily);
6448
+ font-weight: var(--text-label-xl-regular-fontWeight);
6449
+ font-size: var(--text-label-xl-regular-fontSize);
6450
+ line-height: var(--text-label-xl-regular-lineHeight);
6451
+ }
6452
+
6453
+ .muka-radio--disabled .muka-radio__label {
6454
+ color: var(--color-text-subtle-default);
6455
+ }
6456
+
6457
+
6458
+ /* PullToRefresh */
6459
+ /* PullToRefresh Component Styles */
6460
+
6461
+ .muka-pull-to-refresh {
6462
+ position: relative;
6463
+ display: flex;
6464
+ flex-direction: column;
6465
+ width: 100%;
6466
+ height: 100%;
6467
+ overflow: hidden;
6468
+ }
6469
+
6470
+ .muka-pull-to-refresh__indicator {
6471
+ position: absolute;
6472
+ top: 0;
6473
+ left: 0;
6474
+ right: 0;
6475
+ display: flex;
6476
+ align-items: flex-end;
6477
+ justify-content: center;
6478
+ padding-bottom: var(--spacing-2);
6479
+ color: var(--color-text-subtle-default);
6480
+ overflow: hidden;
6481
+ pointer-events: none;
6482
+ z-index: 1;
6483
+ }
6484
+
6485
+ .muka-pull-to-refresh__chevron {
6486
+ display: inline-flex;
6487
+ align-items: center;
6488
+ justify-content: center;
6489
+ transition: transform 0.16s ease;
6490
+ }
6491
+
6492
+ .muka-pull-to-refresh__scroller {
6493
+ flex: 1 1 auto;
6494
+ min-height: 0;
6495
+ width: 100%;
6496
+ overflow-x: clip;
6497
+ overflow-y: auto;
6498
+ -webkit-overflow-scrolling: touch;
6499
+ overscroll-behavior-y: contain;
6500
+ touch-action: pan-y;
6501
+ will-change: transform;
6502
+ }
6503
+
6504
+
6505
+ /* RangeSlider */
6506
+ /* RangeSlider Component Styles - Using Muka Design Tokens */
6507
+
6508
+ .muka-range-slider {
6509
+ display: flex;
6510
+ flex-direction: column;
6511
+ gap: var(--spacing-1);
6512
+ width: 100%;
6513
+ }
6514
+
6515
+ /* ========================================
6516
+ HEADER: label group (label + info + optional) and value readout
6517
+ ======================================== */
6518
+
6519
+ .muka-range-slider__header {
6520
+ display: flex;
6521
+ align-items: center;
6522
+ justify-content: space-between;
6523
+ gap: var(--spacing-2);
6524
+ min-height: 24px;
6525
+ }
6526
+
6527
+ .muka-range-slider__label-group {
6528
+ display: inline-flex;
6529
+ align-items: center;
6530
+ gap: var(--spacing-2);
6531
+ }
6532
+
6533
+ .muka-range-slider__label {
6534
+ font-family: var(--text-label-md-semibold-fontFamily);
6535
+ font-weight: var(--text-label-md-semibold-fontWeight);
6536
+ font-size: var(--text-label-md-semibold-fontSize);
6537
+ line-height: var(--text-label-md-semibold-lineHeight);
6538
+ color: var(--color-text-default-default);
6539
+ }
6540
+
6541
+ .muka-range-slider__info {
6542
+ color: var(--color-text-subtle-default);
6543
+ }
6544
+
6545
+ .muka-range-slider__optional {
6546
+ font-family: var(--text-label-sm-regular-fontFamily);
6547
+ font-weight: var(--text-label-sm-regular-fontWeight);
6548
+ font-size: var(--text-label-sm-regular-fontSize);
6549
+ line-height: var(--text-label-sm-regular-lineHeight);
6550
+ color: var(--color-text-subtle-default);
6551
+ }
6552
+
6553
+ .muka-range-slider__value {
6554
+ font-family: var(--text-label-md-regular-fontFamily);
6555
+ font-weight: var(--text-label-md-regular-fontWeight);
6556
+ font-size: var(--text-label-md-regular-fontSize);
6557
+ line-height: var(--text-label-md-regular-lineHeight);
6558
+ color: var(--color-text-default-default);
6559
+ font-variant-numeric: tabular-nums;
6560
+ }
6561
+
6562
+ .muka-range-slider__helper {
6563
+ margin: 0;
6564
+ font-family: var(--text-body-sm-regular-fontFamily);
6565
+ font-weight: var(--text-body-sm-regular-fontWeight);
6566
+ font-size: var(--text-body-sm-regular-fontSize);
6567
+ line-height: var(--text-body-sm-regular-lineHeight);
6568
+ color: var(--color-text-subtle-default);
6569
+ }
6570
+
6571
+ /* ========================================
6572
+ TRACK + THUMB
6573
+ Native range input, restyled. A thick sunken track holds an accent fill up to
6574
+ the current value, with a circular grip handle. The filled portion is driven
6575
+ by the inline --muka-range-fill custom property (set from the component value).
6576
+ ======================================== */
6577
+
6578
+ /* Size variants: track height, thumb diameter and grip geometry */
6579
+ .muka-range-slider--sm {
6580
+ --muka-range-track-h: 12px;
6581
+ --muka-range-thumb: 24px;
6582
+ --muka-range-grip-h: 9px;
6583
+ }
6584
+ .muka-range-slider--md {
6585
+ --muka-range-track-h: 16px;
6586
+ --muka-range-thumb: 32px;
6587
+ --muka-range-grip-h: 12px;
6588
+ }
6589
+ .muka-range-slider--lg {
6590
+ --muka-range-track-h: 20px;
6591
+ --muka-range-thumb: 40px;
6592
+ --muka-range-grip-h: 15px;
6593
+ }
6594
+
6595
+ .muka-range-slider__bar {
6596
+ /* Reserve the full thumb height so the handle never clips the layout. */
6597
+ display: flex;
6598
+ align-items: center;
6599
+ height: var(--muka-range-thumb);
6600
+ }
6601
+
6602
+ .muka-range-slider__input {
6603
+ -webkit-appearance: none;
6604
+ appearance: none;
6605
+ width: 100%;
6606
+ height: var(--muka-range-thumb);
6607
+ margin: 0;
6608
+ background: transparent;
6609
+ cursor: pointer;
6610
+
6611
+ /* Grip handle fill + two vertical grip bars, all theme-aware. */
6612
+ --muka-range-grip-color: var(--color-text-subtle-default);
6613
+ --muka-range-grip-w: 2px;
6614
+ --muka-range-grip-gap: 3px;
6615
+
6616
+ /* The track fill: action colour up to the value, sunken surface beyond it. */
6617
+ --muka-range-track-fill: linear-gradient(
6618
+ to right,
6619
+ var(--color-action-default) 0,
6620
+ var(--color-action-default) var(--muka-range-fill, 0%),
6621
+ var(--color-surface-sunken) var(--muka-range-fill, 0%),
6622
+ var(--color-surface-sunken) 100%
6623
+ );
6624
+ }
6625
+
6626
+ .muka-range-slider__input:focus {
6627
+ outline: none;
6628
+ }
6629
+
6630
+ /* WebKit / Blink track */
6631
+ .muka-range-slider__input::-webkit-slider-runnable-track {
6632
+ height: var(--muka-range-track-h);
6633
+ border-radius: var(--border-radius-full);
6634
+ background-image: var(--muka-range-track-fill);
6635
+ border: 1px solid var(--color-border-contrast);
6636
+ box-shadow: var(--shadow-sunken);
6637
+ }
6638
+
6639
+ /* Firefox track + progress */
6640
+ .muka-range-slider__input::-moz-range-track {
6641
+ height: var(--muka-range-track-h);
6642
+ border-radius: var(--border-radius-full);
6643
+ background: var(--color-surface-sunken);
6644
+ border: 1px solid var(--color-border-contrast);
6645
+ box-shadow: var(--shadow-sunken);
6646
+ }
6647
+ .muka-range-slider__input::-moz-range-progress {
6648
+ height: var(--muka-range-track-h);
6649
+ border-radius: var(--border-radius-full);
6650
+ background: var(--color-action-default);
6651
+ }
6652
+
6653
+ /* WebKit / Blink thumb (vertically centred over the track) */
6654
+ .muka-range-slider__input::-webkit-slider-thumb {
6655
+ -webkit-appearance: none;
6656
+ appearance: none;
6657
+ width: var(--muka-range-thumb);
6658
+ height: var(--muka-range-thumb);
6659
+ margin-top: calc((var(--muka-range-track-h) - var(--muka-range-thumb)) / 2);
6660
+ border-radius: var(--border-radius-full);
6661
+ border: 1px solid var(--color-border-contrast);
6662
+ box-shadow: var(--shadow-level2);
6663
+ background-color: var(--color-surface-level1);
6664
+ background-image:
6665
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6666
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6667
+ background-repeat: no-repeat;
6668
+ background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6669
+ background-position:
6670
+ calc(50% - var(--muka-range-grip-gap)) center,
6671
+ calc(50% + var(--muka-range-grip-gap)) center;
6672
+ transition: box-shadow 0.15s ease, background-color 0.15s ease;
6673
+ }
6674
+
6675
+ /* Firefox thumb */
6676
+ .muka-range-slider__input::-moz-range-thumb {
6677
+ width: var(--muka-range-thumb);
6678
+ height: var(--muka-range-thumb);
6679
+ border-radius: var(--border-radius-full);
6680
+ border: 1px solid var(--color-border-contrast);
6681
+ box-shadow: var(--shadow-level2);
6682
+ background-color: var(--color-surface-level1);
6683
+ background-image:
6684
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6685
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6686
+ background-repeat: no-repeat;
6687
+ background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6688
+ background-position:
6689
+ calc(50% - var(--muka-range-grip-gap)) center,
6690
+ calc(50% + var(--muka-range-grip-gap)) center;
6691
+ transition: box-shadow 0.15s ease, background-color 0.15s ease;
6692
+ }
6693
+
6694
+ /* Hover */
6695
+ .muka-range-slider__input:hover::-webkit-slider-thumb {
6696
+ background-color: var(--color-surface-level1);
6697
+ box-shadow: var(--shadow-level3);
6639
6698
  }
6640
-
6641
- .muka-radio--disabled .muka-radio__label {
6642
- color: var(--color-text-subtle-default);
6699
+ .muka-range-slider__input:hover::-moz-range-thumb {
6700
+ background-color: var(--color-surface-level1);
6701
+ box-shadow: var(--shadow-level3);
6643
6702
  }
6644
6703
 
6645
-
6646
- /* PullToRefresh */
6647
- /* PullToRefresh Component Styles */
6648
-
6649
- .muka-pull-to-refresh {
6650
- position: relative;
6651
- display: flex;
6652
- flex-direction: column;
6653
- width: 100%;
6654
- height: 100%;
6655
- overflow: hidden;
6704
+ /* Focus ring */
6705
+ .muka-range-slider__input:focus-visible::-webkit-slider-thumb {
6706
+ box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6656
6707
  }
6657
-
6658
- .muka-pull-to-refresh__indicator {
6659
- position: absolute;
6660
- top: 0;
6661
- left: 0;
6662
- right: 0;
6663
- display: flex;
6664
- align-items: flex-end;
6665
- justify-content: center;
6666
- padding-bottom: var(--spacing-2);
6667
- color: var(--color-text-subtle-default);
6668
- overflow: hidden;
6669
- pointer-events: none;
6670
- z-index: 1;
6708
+ .muka-range-slider__input:focus-visible::-moz-range-thumb {
6709
+ box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6671
6710
  }
6672
6711
 
6673
- .muka-pull-to-refresh__chevron {
6674
- display: inline-flex;
6675
- align-items: center;
6676
- justify-content: center;
6677
- transition: transform 0.16s ease;
6712
+ /* Disabled */
6713
+ .muka-range-slider--disabled {
6714
+ opacity: 0.5;
6678
6715
  }
6679
-
6680
- .muka-pull-to-refresh__scroller {
6681
- flex: 1 1 auto;
6682
- min-height: 0;
6683
- width: 100%;
6684
- overflow-x: clip;
6685
- overflow-y: auto;
6686
- -webkit-overflow-scrolling: touch;
6687
- overscroll-behavior-y: contain;
6688
- touch-action: pan-y;
6689
- will-change: transform;
6716
+ .muka-range-slider--disabled .muka-range-slider__input {
6717
+ cursor: not-allowed;
6690
6718
  }
6691
6719
 
6692
6720
 
@@ -8745,208 +8773,22 @@ button.muka-progress-tracker__tab:focus-visible {
8745
8773
  @keyframes muka-menu-slide-left {
8746
8774
  from {
8747
8775
  opacity: 0;
8748
- transform: translateX(4px);
8749
- }
8750
- to {
8751
- opacity: 1;
8752
- transform: translateX(0);
8753
- }
8754
- }
8755
-
8756
- @keyframes muka-menu-slide-right {
8757
- from {
8758
- opacity: 0;
8759
- transform: translateX(-4px);
8760
- }
8761
- to {
8762
- opacity: 1;
8763
- transform: translateX(0);
8764
- }
8765
- }
8766
-
8767
-
8768
- /* MediaViewer */
8769
- /* MediaViewer Component Styles - Using Muka Design Tokens */
8770
-
8771
- /* ─── Native dialog: full viewport ────────────────────── */
8772
- .muka-media-viewer {
8773
- position: fixed;
8774
- inset: 0;
8775
- width: 100%;
8776
- height: 100%;
8777
- max-width: none;
8778
- max-height: none;
8779
- margin: 0;
8780
- padding: 0;
8781
- border: none;
8782
- display: flex;
8783
- flex-direction: column;
8784
- overflow: hidden;
8785
- overscroll-behavior: contain;
8786
- color: var(--color-text-default-default);
8787
- background-color: var(--color-black-alpha-12);
8788
- animation: muka-media-viewer-in var(--motion-duration-component) var(--motion-easing-enter);
8789
- }
8790
-
8791
- .muka-media-viewer:not([open]) {
8792
- display: none;
8793
- }
8794
-
8795
- .muka-media-viewer::backdrop {
8796
- background-color: var(--color-black-alpha-12);
8797
- }
8798
-
8799
- @keyframes muka-media-viewer-in {
8800
- from {
8801
- opacity: 0;
8802
- }
8803
- to {
8804
- opacity: 1;
8805
- }
8806
- }
8807
-
8808
- /* ─── Chrome: TopBar and footer sit on a surface ──────── */
8809
- .muka-media-viewer__topbar {
8810
- flex-shrink: 0;
8811
- background-color: var(--color-surface-level3);
8812
- }
8813
-
8814
- .muka-media-viewer__live {
8815
- position: absolute;
8816
- width: 1px;
8817
- height: 1px;
8818
- padding: 0;
8819
- margin: -1px;
8820
- overflow: hidden;
8821
- clip: rect(0, 0, 0, 0);
8822
- white-space: nowrap;
8823
- border: 0;
8824
- }
8825
-
8826
- /* ─── Stage: the dark area the images slide across ────── */
8827
- .muka-media-viewer__stage {
8828
- position: relative;
8829
- flex: 1 1 auto;
8830
- min-height: 0;
8831
- overflow: hidden;
8832
- /* Gestures are handled in JS: no browser panning or pinch on the stage. */
8833
- touch-action: none;
8834
- user-select: none;
8835
- -webkit-user-select: none;
8836
- }
8837
-
8838
- .muka-media-viewer__slide {
8839
- position: absolute;
8840
- inset: 0;
8841
- display: flex;
8842
- align-items: center;
8843
- justify-content: center;
8844
- padding: var(--spacing-4);
8845
- transition: transform var(--motion-duration-component) var(--motion-easing-default);
8846
- will-change: transform;
8847
- }
8848
-
8849
- /* While a finger drags, the image follows it without easing. */
8850
- .muka-media-viewer--dragging .muka-media-viewer__slide {
8851
- transition: none;
8852
- }
8853
-
8854
- .muka-media-viewer__image {
8855
- display: block;
8856
- max-width: 100%;
8857
- max-height: 100%;
8858
- object-fit: contain;
8859
- /* The image takes touches, so a long press opens the OS menu (save, share,
8860
- copy). The swipe still works: pointer events bubble to the stage, and a
8861
- long press doesn't move far enough to start a drag. */
8862
- -webkit-touch-callout: default;
8863
- }
8864
-
8865
- /* ─── Previous / next: devices that can hover ─────────── */
8866
- .muka-media-viewer__nav {
8867
- position: absolute;
8868
- top: 50%;
8869
- display: none;
8870
- transform: translateY(-50%);
8871
- opacity: 0;
8872
- transition: opacity var(--motion-duration-micro) var(--motion-easing-enter);
8873
- }
8874
-
8875
- .muka-media-viewer__nav--previous {
8876
- left: var(--spacing-4);
8877
- }
8878
-
8879
- .muka-media-viewer__nav--next {
8880
- right: var(--spacing-4);
8881
- }
8882
-
8883
- @media (hover: hover) and (pointer: fine) {
8884
- .muka-media-viewer__nav {
8885
- display: block;
8886
- }
8887
-
8888
- .muka-media-viewer__stage:hover .muka-media-viewer__nav,
8889
- .muka-media-viewer__nav:focus-within {
8890
- opacity: 1;
8891
- }
8892
- }
8893
-
8894
- /* ─── Footer: caption, meta and actions ───────────────── */
8895
- .muka-media-viewer__footer {
8896
- flex-shrink: 0;
8897
- display: flex;
8898
- flex-direction: column;
8899
- gap: var(--spacing-3);
8900
- padding: var(--spacing-4);
8901
- padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
8902
- background-color: var(--color-surface-level3);
8903
- }
8904
-
8905
- .muka-media-viewer__details {
8906
- display: flex;
8907
- align-items: flex-start;
8908
- justify-content: space-between;
8909
- gap: var(--spacing-3);
8910
- }
8911
-
8912
- .muka-media-viewer__caption {
8913
- min-width: 0;
8914
- color: var(--color-text-subtle-default);
8915
- font-family: var(--text-body-sm-regular-fontFamily);
8916
- font-size: var(--text-body-sm-regular-fontSize);
8917
- font-weight: var(--text-body-sm-regular-fontWeight);
8918
- line-height: var(--text-body-sm-regular-lineHeight);
8919
- overflow-wrap: anywhere;
8920
- }
8921
-
8922
- .muka-media-viewer__meta {
8923
- flex-shrink: 0;
8924
- }
8925
-
8926
- .muka-media-viewer__actions {
8927
- display: flex;
8928
- flex-wrap: wrap;
8929
- gap: var(--spacing-2);
8930
- }
8931
-
8932
- /* Mobile: actions stack full width, like Dialog footers. */
8933
- @media (max-width: 1023px) {
8934
- .muka-media-viewer__actions {
8935
- flex-direction: column;
8776
+ transform: translateX(4px);
8936
8777
  }
8937
-
8938
- .muka-media-viewer__actions > * {
8939
- width: 100%;
8778
+ to {
8779
+ opacity: 1;
8780
+ transform: translateX(0);
8940
8781
  }
8941
8782
  }
8942
8783
 
8943
- /* ─── Reduced motion ──────────────────────────────────── */
8944
- @media (prefers-reduced-motion: reduce) {
8945
- .muka-media-viewer,
8946
- .muka-media-viewer__slide,
8947
- .muka-media-viewer__nav {
8948
- animation: none;
8949
- transition: none;
8784
+ @keyframes muka-menu-slide-right {
8785
+ from {
8786
+ opacity: 0;
8787
+ transform: translateX(-4px);
8788
+ }
8789
+ to {
8790
+ opacity: 1;
8791
+ transform: translateX(0);
8950
8792
  }
8951
8793
  }
8952
8794
 
@@ -9338,44 +9180,189 @@ li.muka-listitem {
9338
9180
  }
9339
9181
 
9340
9182
 
9341
- /* Label */
9342
- /* Label Component Styles - Using Muka Design Tokens */
9183
+ /* MediaViewer */
9184
+ /* MediaViewer Component Styles - Using Muka Design Tokens */
9343
9185
 
9344
- .muka-label {
9345
- display: inline-flex;
9346
- align-items: center;
9186
+ /* ─── Native dialog: full viewport ────────────────────── */
9187
+ .muka-media-viewer {
9188
+ position: fixed;
9189
+ inset: 0;
9190
+ width: 100%;
9191
+ height: 100%;
9192
+ max-width: none;
9193
+ max-height: none;
9194
+ margin: 0;
9195
+ padding: 0;
9196
+ border: none;
9197
+ display: flex;
9198
+ flex-direction: column;
9199
+ overflow: hidden;
9200
+ overscroll-behavior: contain;
9347
9201
  color: var(--color-text-default-default);
9348
- cursor: pointer;
9202
+ background-color: var(--color-black-alpha-12);
9203
+ animation: muka-media-viewer-in var(--motion-duration-component) var(--motion-easing-enter);
9349
9204
  }
9350
9205
 
9351
- .muka-label--sm {
9352
- font-family: var(--text-label-sm-semibold-fontFamily);
9353
- font-weight: var(--text-label-sm-semibold-fontWeight);
9354
- font-size: var(--text-label-sm-semibold-fontSize);
9355
- line-height: var(--text-label-sm-semibold-lineHeight);
9206
+ .muka-media-viewer:not([open]) {
9207
+ display: none;
9356
9208
  }
9357
9209
 
9358
- .muka-label--md {
9359
- font-family: var(--text-label-md-semibold-fontFamily);
9360
- font-weight: var(--text-label-md-semibold-fontWeight);
9361
- font-size: var(--text-label-md-semibold-fontSize);
9362
- line-height: var(--text-label-md-semibold-lineHeight);
9210
+ .muka-media-viewer::backdrop {
9211
+ background-color: var(--color-black-alpha-12);
9363
9212
  }
9364
9213
 
9365
- .muka-label--lg {
9366
- font-family: var(--text-label-lg-semibold-fontFamily);
9367
- font-weight: var(--text-label-lg-semibold-fontWeight);
9368
- font-size: var(--text-label-lg-semibold-fontSize);
9369
- line-height: var(--text-label-lg-semibold-lineHeight);
9214
+ @keyframes muka-media-viewer-in {
9215
+ from {
9216
+ opacity: 0;
9217
+ }
9218
+ to {
9219
+ opacity: 1;
9220
+ }
9370
9221
  }
9371
9222
 
9372
- .muka-label--disabled {
9223
+ /* ─── Chrome: TopBar and footer sit on a surface ──────── */
9224
+ .muka-media-viewer__topbar {
9225
+ flex-shrink: 0;
9226
+ background-color: var(--color-surface-level3);
9227
+ }
9228
+
9229
+ .muka-media-viewer__live {
9230
+ position: absolute;
9231
+ width: 1px;
9232
+ height: 1px;
9233
+ padding: 0;
9234
+ margin: -1px;
9235
+ overflow: hidden;
9236
+ clip: rect(0, 0, 0, 0);
9237
+ white-space: nowrap;
9238
+ border: 0;
9239
+ }
9240
+
9241
+ /* ─── Stage: the dark area the images slide across ────── */
9242
+ .muka-media-viewer__stage {
9243
+ position: relative;
9244
+ flex: 1 1 auto;
9245
+ min-height: 0;
9246
+ overflow: hidden;
9247
+ /* Gestures are handled in JS: no browser panning or pinch on the stage. */
9248
+ touch-action: none;
9249
+ user-select: none;
9250
+ -webkit-user-select: none;
9251
+ }
9252
+
9253
+ .muka-media-viewer__slide {
9254
+ position: absolute;
9255
+ inset: 0;
9256
+ display: flex;
9257
+ align-items: center;
9258
+ justify-content: center;
9259
+ padding: var(--spacing-4);
9260
+ transition: transform var(--motion-duration-component) var(--motion-easing-default);
9261
+ will-change: transform;
9262
+ }
9263
+
9264
+ /* While a finger drags, the image follows it without easing. */
9265
+ .muka-media-viewer--dragging .muka-media-viewer__slide {
9266
+ transition: none;
9267
+ }
9268
+
9269
+ .muka-media-viewer__image {
9270
+ display: block;
9271
+ max-width: 100%;
9272
+ max-height: 100%;
9273
+ object-fit: contain;
9274
+ /* The image takes touches, so a long press opens the OS menu (save, share,
9275
+ copy). The swipe still works: pointer events bubble to the stage, and a
9276
+ long press doesn't move far enough to start a drag. */
9277
+ -webkit-touch-callout: default;
9278
+ }
9279
+
9280
+ /* ─── Previous / next: devices that can hover ─────────── */
9281
+ .muka-media-viewer__nav {
9282
+ position: absolute;
9283
+ top: 50%;
9284
+ display: none;
9285
+ transform: translateY(-50%);
9286
+ opacity: 0;
9287
+ transition: opacity var(--motion-duration-micro) var(--motion-easing-enter);
9288
+ }
9289
+
9290
+ .muka-media-viewer__nav--previous {
9291
+ left: var(--spacing-4);
9292
+ }
9293
+
9294
+ .muka-media-viewer__nav--next {
9295
+ right: var(--spacing-4);
9296
+ }
9297
+
9298
+ @media (hover: hover) and (pointer: fine) {
9299
+ .muka-media-viewer__nav {
9300
+ display: block;
9301
+ }
9302
+
9303
+ .muka-media-viewer__stage:hover .muka-media-viewer__nav,
9304
+ .muka-media-viewer__nav:focus-within {
9305
+ opacity: 1;
9306
+ }
9307
+ }
9308
+
9309
+ /* ─── Footer: caption, meta and actions ───────────────── */
9310
+ .muka-media-viewer__footer {
9311
+ flex-shrink: 0;
9312
+ display: flex;
9313
+ flex-direction: column;
9314
+ gap: var(--spacing-3);
9315
+ padding: var(--spacing-4);
9316
+ padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
9317
+ background-color: var(--color-surface-level3);
9318
+ }
9319
+
9320
+ .muka-media-viewer__details {
9321
+ display: flex;
9322
+ align-items: flex-start;
9323
+ justify-content: space-between;
9324
+ gap: var(--spacing-3);
9325
+ }
9326
+
9327
+ .muka-media-viewer__caption {
9328
+ min-width: 0;
9373
9329
  color: var(--color-text-subtle-default);
9374
- cursor: not-allowed;
9330
+ font-family: var(--text-body-sm-regular-fontFamily);
9331
+ font-size: var(--text-body-sm-regular-fontSize);
9332
+ font-weight: var(--text-body-sm-regular-fontWeight);
9333
+ line-height: var(--text-body-sm-regular-lineHeight);
9334
+ overflow-wrap: anywhere;
9375
9335
  }
9376
9336
 
9377
- .muka-label__required {
9378
- color: var(--color-state-error-default);
9337
+ .muka-media-viewer__meta {
9338
+ flex-shrink: 0;
9339
+ }
9340
+
9341
+ .muka-media-viewer__actions {
9342
+ display: flex;
9343
+ flex-wrap: wrap;
9344
+ gap: var(--spacing-2);
9345
+ }
9346
+
9347
+ /* Mobile: actions stack full width, like Dialog footers. */
9348
+ @media (max-width: 1023px) {
9349
+ .muka-media-viewer__actions {
9350
+ flex-direction: column;
9351
+ }
9352
+
9353
+ .muka-media-viewer__actions > * {
9354
+ width: 100%;
9355
+ }
9356
+ }
9357
+
9358
+ /* ─── Reduced motion ──────────────────────────────────── */
9359
+ @media (prefers-reduced-motion: reduce) {
9360
+ .muka-media-viewer,
9361
+ .muka-media-viewer__slide,
9362
+ .muka-media-viewer__nav {
9363
+ animation: none;
9364
+ transition: none;
9365
+ }
9379
9366
  }
9380
9367
 
9381
9368
 
@@ -10300,18 +10287,59 @@ li.muka-listitem {
10300
10287
  transform: translateX(-50%) scale(0.96);
10301
10288
  }
10302
10289
 
10303
- /* Add the iOS home-indicator inset to the bottom offset. */
10304
- .muka-fab:not(.muka-fab--no-safe-area) {
10305
- bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom));
10290
+ /* Add the iOS home-indicator inset to the bottom offset. */
10291
+ .muka-fab:not(.muka-fab--no-safe-area) {
10292
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom));
10293
+ }
10294
+
10295
+ /* Lateral safe-area for landscape iPhone with notch. */
10296
+ .muka-fab--bottom-right:not(.muka-fab--no-safe-area) {
10297
+ right: max(var(--spacing-4), env(safe-area-inset-right));
10298
+ }
10299
+
10300
+ .muka-fab--bottom-left:not(.muka-fab--no-safe-area) {
10301
+ left: max(var(--spacing-4), env(safe-area-inset-left));
10302
+ }
10303
+
10304
+
10305
+ /* Label */
10306
+ /* Label Component Styles - Using Muka Design Tokens */
10307
+
10308
+ .muka-label {
10309
+ display: inline-flex;
10310
+ align-items: center;
10311
+ color: var(--color-text-default-default);
10312
+ cursor: pointer;
10313
+ }
10314
+
10315
+ .muka-label--sm {
10316
+ font-family: var(--text-label-sm-semibold-fontFamily);
10317
+ font-weight: var(--text-label-sm-semibold-fontWeight);
10318
+ font-size: var(--text-label-sm-semibold-fontSize);
10319
+ line-height: var(--text-label-sm-semibold-lineHeight);
10320
+ }
10321
+
10322
+ .muka-label--md {
10323
+ font-family: var(--text-label-md-semibold-fontFamily);
10324
+ font-weight: var(--text-label-md-semibold-fontWeight);
10325
+ font-size: var(--text-label-md-semibold-fontSize);
10326
+ line-height: var(--text-label-md-semibold-lineHeight);
10327
+ }
10328
+
10329
+ .muka-label--lg {
10330
+ font-family: var(--text-label-lg-semibold-fontFamily);
10331
+ font-weight: var(--text-label-lg-semibold-fontWeight);
10332
+ font-size: var(--text-label-lg-semibold-fontSize);
10333
+ line-height: var(--text-label-lg-semibold-lineHeight);
10306
10334
  }
10307
10335
 
10308
- /* Lateral safe-area for landscape iPhone with notch. */
10309
- .muka-fab--bottom-right:not(.muka-fab--no-safe-area) {
10310
- right: max(var(--spacing-4), env(safe-area-inset-right));
10336
+ .muka-label--disabled {
10337
+ color: var(--color-text-subtle-default);
10338
+ cursor: not-allowed;
10311
10339
  }
10312
10340
 
10313
- .muka-fab--bottom-left:not(.muka-fab--no-safe-area) {
10314
- left: max(var(--spacing-4), env(safe-area-inset-left));
10341
+ .muka-label__required {
10342
+ color: var(--color-state-error-default);
10315
10343
  }
10316
10344
 
10317
10345
 
@@ -10452,257 +10480,29 @@ li.muka-listitem {
10452
10480
  }
10453
10481
 
10454
10482
  .muka-emptystate--left .muka-emptystate__actions {
10455
- justify-content: flex-start;
10456
- }
10457
-
10458
-
10459
- /* EmojiPicker */
10460
- /* EmojiPicker Component Styles */
10461
-
10462
- .muka-emoji-picker {
10463
- display: grid;
10464
- grid-template-columns: repeat(8, 1fr);
10465
- gap: var(--spacing-1);
10466
- padding: var(--spacing-2);
10467
- max-height: 12rem;
10468
- overflow-y: auto;
10469
- background: var(--color-surface-level2);
10470
- border: var(--border-width-regular, 1px) solid var(--color-border-default);
10471
- border-radius: var(--radius-lg);
10472
- box-shadow: var(--menu-content-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
10473
- }
10474
-
10475
- .muka-emoji-picker__glyph {
10476
- font-size: 1.25rem;
10477
- line-height: 1;
10478
- }
10479
-
10480
-
10481
- /* DropdownSelect */
10482
- /* DropdownSelect — Figma Dropdown Menu form field (Menu + chips) */
10483
-
10484
- .muka-dropdown-select {
10485
- display: inline-flex;
10486
- flex-direction: column;
10487
- gap: var(--spacing-2);
10488
- min-width: 200px;
10489
- }
10490
-
10491
- .muka-dropdown-select--full-width {
10492
- width: 100%;
10493
- }
10494
-
10495
- .muka-dropdown-select__label {
10496
- color: var(--color-text-default-default);
10497
- cursor: pointer;
10498
- }
10499
-
10500
- .muka-dropdown-select__label--sm {
10501
- font-family: var(--text-label-sm-semibold-fontFamily);
10502
- font-weight: var(--text-label-sm-semibold-fontWeight);
10503
- font-size: var(--text-label-sm-semibold-fontSize);
10504
- line-height: var(--text-label-sm-semibold-lineHeight);
10505
- }
10506
-
10507
- .muka-dropdown-select__label--md {
10508
- font-family: var(--text-label-md-semibold-fontFamily);
10509
- font-weight: var(--text-label-md-semibold-fontWeight);
10510
- font-size: var(--text-label-md-semibold-fontSize);
10511
- line-height: var(--text-label-md-semibold-lineHeight);
10512
- }
10513
-
10514
- .muka-dropdown-select__label--lg {
10515
- font-family: var(--text-label-lg-semibold-fontFamily);
10516
- font-weight: var(--text-label-lg-semibold-fontWeight);
10517
- font-size: var(--text-label-lg-semibold-fontSize);
10518
- line-height: var(--text-label-lg-semibold-lineHeight);
10519
- }
10520
-
10521
- .muka-dropdown-select__required {
10522
- color: var(--color-state-error-default);
10523
- }
10524
-
10525
- .muka-dropdown-select__field {
10526
- display: flex;
10527
- align-items: center;
10528
- gap: var(--spacing-1);
10529
- width: 100%;
10530
- position: relative;
10531
- box-sizing: border-box;
10532
- background-color: var(--input-field-color-default-background);
10533
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
10534
- border-radius: var(--input-field-radius-lg);
10535
- padding: var(--spacing-2);
10536
- padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem));
10537
- text-align: left;
10538
- cursor: pointer;
10539
- color: var(--color-text-default-default);
10540
- transition: border-color 0.12s ease, background-color 0.12s ease;
10541
- -webkit-tap-highlight-color: transparent;
10542
- }
10543
-
10544
- .muka-dropdown-select__field::after {
10545
- content: '';
10546
- position: absolute;
10547
- inset: 0;
10548
- border-radius: inherit;
10549
- box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
10550
- pointer-events: none;
10551
- }
10552
-
10553
- .muka-dropdown-select__field--sm {
10554
- min-height: var(--input-field-height-sm);
10555
- border-radius: var(--input-field-radius-sm);
10556
- padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem));
10557
- }
10558
-
10559
- .muka-dropdown-select__field--md {
10560
- min-height: var(--input-field-height-default);
10561
- border-radius: var(--input-field-radius-md);
10562
- }
10563
-
10564
- .muka-dropdown-select__field--lg {
10565
- min-height: var(--input-field-height-lg);
10566
- border-radius: var(--input-field-radius-lg);
10567
- }
10568
-
10569
- .muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
10570
- border-width: var(--border-width-bold);
10571
- border-color: var(--input-field-color-focus-border);
10572
- background-color: var(--input-field-color-focus-background);
10573
- padding: calc(var(--spacing-2) - 1px);
10574
- padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem) - 1px);
10575
- }
10576
-
10577
- .muka-dropdown-select__field--sm.muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
10578
- padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem) - 1px);
10579
- }
10580
-
10581
- .muka-dropdown-select__field--error:not(.muka-dropdown-select__field--disabled) {
10582
- border-color: var(--color-state-error-contrast);
10583
- }
10584
-
10585
- .muka-dropdown-select__field--disabled {
10586
- opacity: 0.5;
10587
- cursor: not-allowed;
10588
- }
10589
-
10590
- .muka-dropdown-select__content {
10591
- position: relative;
10592
- z-index: 1;
10593
- display: flex;
10594
- flex: 1 1 auto;
10595
- min-width: 0;
10596
- align-items: center;
10597
- /* Let empty-field / value clicks reach the full-field MenuTrigger underneath. */
10598
- pointer-events: none;
10599
- }
10600
-
10601
- .muka-dropdown-select__placeholder {
10602
- color: var(--color-text-subtle-default);
10603
- font-family: var(--text-label-md-regular-fontFamily);
10604
- font-size: var(--text-label-md-regular-fontSize);
10605
- font-weight: var(--text-label-md-regular-fontWeight);
10606
- line-height: var(--text-label-md-regular-lineHeight);
10607
- padding-inline: var(--spacing-1);
10608
- }
10609
-
10610
- .muka-dropdown-select__value {
10611
- font-family: var(--text-label-md-regular-fontFamily);
10612
- font-size: var(--text-label-md-regular-fontSize);
10613
- font-weight: var(--text-label-md-regular-fontWeight);
10614
- line-height: var(--text-label-md-regular-lineHeight);
10615
- padding-inline: var(--spacing-1);
10616
- white-space: nowrap;
10617
- overflow: hidden;
10618
- text-overflow: ellipsis;
10619
- }
10620
-
10621
- .muka-dropdown-select__chips {
10622
- display: flex;
10623
- flex: 1 1 auto;
10624
- flex-wrap: wrap;
10625
- gap: var(--spacing-2);
10626
- align-items: flex-start;
10627
- min-width: 0;
10628
- /* Chip remove controls must remain clickable above the field hit target. */
10629
- pointer-events: auto;
10630
- }
10631
-
10632
- .muka-dropdown-select__field--multiline {
10633
- align-items: flex-start;
10634
- min-height: 7rem;
10635
- }
10636
-
10637
- .muka-dropdown-select__menu-button {
10638
- position: absolute;
10639
- inset: 0;
10640
- z-index: 0;
10641
- display: inline-flex;
10642
- align-items: center;
10643
- justify-content: flex-end;
10644
- width: auto;
10645
- height: auto;
10646
- padding: 0;
10647
- padding-right: var(--spacing-2);
10648
- border: none;
10649
- border-radius: inherit;
10650
- background: transparent;
10651
- color: var(--color-text-subtle-default);
10652
- cursor: pointer;
10653
- }
10654
-
10655
- .muka-dropdown-select__field--multiline .muka-dropdown-select__menu-button {
10656
- align-items: flex-start;
10657
- padding-top: calc(var(--spacing-2) + 8px);
10658
- }
10659
-
10660
- .muka-dropdown-select__chevron {
10661
- display: inline-flex;
10662
- align-items: center;
10663
- justify-content: center;
10664
- width: var(--size-2xl, 2rem);
10665
- height: var(--size-2xl, 2rem);
10666
- pointer-events: none;
10667
- color: var(--color-text-subtle-default);
10668
- }
10669
-
10670
- .muka-dropdown-select__chevron .muka-icon,
10671
- .muka-dropdown-select__menu-button:hover .muka-dropdown-select__chevron,
10672
- .muka-dropdown-select__menu-button:hover .muka-icon {
10673
- color: var(--color-text-subtle-default);
10674
- }
10675
-
10676
- .muka-dropdown-select__field--sm .muka-dropdown-select__chevron {
10677
- width: var(--size-xl, 1.5rem);
10678
- height: var(--size-xl, 1.5rem);
10679
- }
10680
-
10681
- .muka-dropdown-select__menu-button:focus-visible {
10682
- outline: 2px solid var(--color-border-focus, var(--color-action-default));
10683
- outline-offset: 2px;
10684
- }
10685
-
10686
- .muka-dropdown-select__helper {
10687
- margin: 0;
10688
- color: var(--color-text-subtle-default);
10689
- font-family: var(--text-label-sm-regular-fontFamily);
10690
- font-size: var(--text-label-sm-regular-fontSize);
10691
- font-weight: var(--text-label-sm-regular-fontWeight);
10692
- line-height: var(--text-label-sm-regular-lineHeight);
10483
+ justify-content: flex-start;
10693
10484
  }
10694
10485
 
10695
- .muka-dropdown-select__error {
10696
- margin: 0;
10697
- color: var(--color-state-error-default);
10698
- font-family: var(--text-label-sm-regular-fontFamily);
10699
- font-size: var(--text-label-sm-regular-fontSize);
10700
- font-weight: var(--text-label-sm-regular-fontWeight);
10701
- line-height: var(--text-label-sm-regular-lineHeight);
10486
+
10487
+ /* EmojiPicker */
10488
+ /* EmojiPicker Component Styles */
10489
+
10490
+ .muka-emoji-picker {
10491
+ display: grid;
10492
+ grid-template-columns: repeat(8, 1fr);
10493
+ gap: var(--spacing-1);
10494
+ padding: var(--spacing-2);
10495
+ max-height: 12rem;
10496
+ overflow-y: auto;
10497
+ background: var(--color-surface-level2);
10498
+ border: var(--border-width-regular, 1px) solid var(--color-border-default);
10499
+ border-radius: var(--radius-lg);
10500
+ box-shadow: var(--menu-content-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
10702
10501
  }
10703
10502
 
10704
- .muka-dropdown-select__menu {
10705
- /* Uses Menu min-width (280px); grows with long labels; left-aligned to the field. */
10503
+ .muka-emoji-picker__glyph {
10504
+ font-size: 1.25rem;
10505
+ line-height: 1;
10706
10506
  }
10707
10507
 
10708
10508
 
@@ -12843,6 +12643,234 @@ li.muka-listitem {
12843
12643
  }
12844
12644
 
12845
12645
 
12646
+ /* DropdownSelect */
12647
+ /* DropdownSelect — Figma Dropdown Menu form field (Menu + chips) */
12648
+
12649
+ .muka-dropdown-select {
12650
+ display: inline-flex;
12651
+ flex-direction: column;
12652
+ gap: var(--spacing-2);
12653
+ min-width: 200px;
12654
+ }
12655
+
12656
+ .muka-dropdown-select--full-width {
12657
+ width: 100%;
12658
+ }
12659
+
12660
+ .muka-dropdown-select__label {
12661
+ color: var(--color-text-default-default);
12662
+ cursor: pointer;
12663
+ }
12664
+
12665
+ .muka-dropdown-select__label--sm {
12666
+ font-family: var(--text-label-sm-semibold-fontFamily);
12667
+ font-weight: var(--text-label-sm-semibold-fontWeight);
12668
+ font-size: var(--text-label-sm-semibold-fontSize);
12669
+ line-height: var(--text-label-sm-semibold-lineHeight);
12670
+ }
12671
+
12672
+ .muka-dropdown-select__label--md {
12673
+ font-family: var(--text-label-md-semibold-fontFamily);
12674
+ font-weight: var(--text-label-md-semibold-fontWeight);
12675
+ font-size: var(--text-label-md-semibold-fontSize);
12676
+ line-height: var(--text-label-md-semibold-lineHeight);
12677
+ }
12678
+
12679
+ .muka-dropdown-select__label--lg {
12680
+ font-family: var(--text-label-lg-semibold-fontFamily);
12681
+ font-weight: var(--text-label-lg-semibold-fontWeight);
12682
+ font-size: var(--text-label-lg-semibold-fontSize);
12683
+ line-height: var(--text-label-lg-semibold-lineHeight);
12684
+ }
12685
+
12686
+ .muka-dropdown-select__required {
12687
+ color: var(--color-state-error-default);
12688
+ }
12689
+
12690
+ .muka-dropdown-select__field {
12691
+ display: flex;
12692
+ align-items: center;
12693
+ gap: var(--spacing-1);
12694
+ width: 100%;
12695
+ position: relative;
12696
+ box-sizing: border-box;
12697
+ background-color: var(--input-field-color-default-background);
12698
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
12699
+ border-radius: var(--input-field-radius-lg);
12700
+ padding: var(--spacing-2);
12701
+ padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem));
12702
+ text-align: left;
12703
+ cursor: pointer;
12704
+ color: var(--color-text-default-default);
12705
+ transition: border-color 0.12s ease, background-color 0.12s ease;
12706
+ -webkit-tap-highlight-color: transparent;
12707
+ }
12708
+
12709
+ .muka-dropdown-select__field::after {
12710
+ content: '';
12711
+ position: absolute;
12712
+ inset: 0;
12713
+ border-radius: inherit;
12714
+ box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
12715
+ pointer-events: none;
12716
+ }
12717
+
12718
+ .muka-dropdown-select__field--sm {
12719
+ min-height: var(--input-field-height-sm);
12720
+ border-radius: var(--input-field-radius-sm);
12721
+ padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem));
12722
+ }
12723
+
12724
+ .muka-dropdown-select__field--md {
12725
+ min-height: var(--input-field-height-default);
12726
+ border-radius: var(--input-field-radius-md);
12727
+ }
12728
+
12729
+ .muka-dropdown-select__field--lg {
12730
+ min-height: var(--input-field-height-lg);
12731
+ border-radius: var(--input-field-radius-lg);
12732
+ }
12733
+
12734
+ .muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
12735
+ border-width: var(--border-width-bold);
12736
+ border-color: var(--input-field-color-focus-border);
12737
+ background-color: var(--input-field-color-focus-background);
12738
+ padding: calc(var(--spacing-2) - 1px);
12739
+ padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem) - 1px);
12740
+ }
12741
+
12742
+ .muka-dropdown-select__field--sm.muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
12743
+ padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem) - 1px);
12744
+ }
12745
+
12746
+ .muka-dropdown-select__field--error:not(.muka-dropdown-select__field--disabled) {
12747
+ border-color: var(--color-state-error-contrast);
12748
+ }
12749
+
12750
+ .muka-dropdown-select__field--disabled {
12751
+ opacity: 0.5;
12752
+ cursor: not-allowed;
12753
+ }
12754
+
12755
+ .muka-dropdown-select__content {
12756
+ position: relative;
12757
+ z-index: 1;
12758
+ display: flex;
12759
+ flex: 1 1 auto;
12760
+ min-width: 0;
12761
+ align-items: center;
12762
+ /* Let empty-field / value clicks reach the full-field MenuTrigger underneath. */
12763
+ pointer-events: none;
12764
+ }
12765
+
12766
+ .muka-dropdown-select__placeholder {
12767
+ color: var(--color-text-subtle-default);
12768
+ font-family: var(--text-label-md-regular-fontFamily);
12769
+ font-size: var(--text-label-md-regular-fontSize);
12770
+ font-weight: var(--text-label-md-regular-fontWeight);
12771
+ line-height: var(--text-label-md-regular-lineHeight);
12772
+ padding-inline: var(--spacing-1);
12773
+ }
12774
+
12775
+ .muka-dropdown-select__value {
12776
+ font-family: var(--text-label-md-regular-fontFamily);
12777
+ font-size: var(--text-label-md-regular-fontSize);
12778
+ font-weight: var(--text-label-md-regular-fontWeight);
12779
+ line-height: var(--text-label-md-regular-lineHeight);
12780
+ padding-inline: var(--spacing-1);
12781
+ white-space: nowrap;
12782
+ overflow: hidden;
12783
+ text-overflow: ellipsis;
12784
+ }
12785
+
12786
+ .muka-dropdown-select__chips {
12787
+ display: flex;
12788
+ flex: 1 1 auto;
12789
+ flex-wrap: wrap;
12790
+ gap: var(--spacing-2);
12791
+ align-items: flex-start;
12792
+ min-width: 0;
12793
+ /* Chip remove controls must remain clickable above the field hit target. */
12794
+ pointer-events: auto;
12795
+ }
12796
+
12797
+ .muka-dropdown-select__field--multiline {
12798
+ align-items: flex-start;
12799
+ min-height: 7rem;
12800
+ }
12801
+
12802
+ .muka-dropdown-select__menu-button {
12803
+ position: absolute;
12804
+ inset: 0;
12805
+ z-index: 0;
12806
+ display: inline-flex;
12807
+ align-items: center;
12808
+ justify-content: flex-end;
12809
+ width: auto;
12810
+ height: auto;
12811
+ padding: 0;
12812
+ padding-right: var(--spacing-2);
12813
+ border: none;
12814
+ border-radius: inherit;
12815
+ background: transparent;
12816
+ color: var(--color-text-subtle-default);
12817
+ cursor: pointer;
12818
+ }
12819
+
12820
+ .muka-dropdown-select__field--multiline .muka-dropdown-select__menu-button {
12821
+ align-items: flex-start;
12822
+ padding-top: calc(var(--spacing-2) + 8px);
12823
+ }
12824
+
12825
+ .muka-dropdown-select__chevron {
12826
+ display: inline-flex;
12827
+ align-items: center;
12828
+ justify-content: center;
12829
+ width: var(--size-2xl, 2rem);
12830
+ height: var(--size-2xl, 2rem);
12831
+ pointer-events: none;
12832
+ color: var(--color-text-subtle-default);
12833
+ }
12834
+
12835
+ .muka-dropdown-select__chevron .muka-icon,
12836
+ .muka-dropdown-select__menu-button:hover .muka-dropdown-select__chevron,
12837
+ .muka-dropdown-select__menu-button:hover .muka-icon {
12838
+ color: var(--color-text-subtle-default);
12839
+ }
12840
+
12841
+ .muka-dropdown-select__field--sm .muka-dropdown-select__chevron {
12842
+ width: var(--size-xl, 1.5rem);
12843
+ height: var(--size-xl, 1.5rem);
12844
+ }
12845
+
12846
+ .muka-dropdown-select__menu-button:focus-visible {
12847
+ outline: 2px solid var(--color-border-focus, var(--color-action-default));
12848
+ outline-offset: 2px;
12849
+ }
12850
+
12851
+ .muka-dropdown-select__helper {
12852
+ margin: 0;
12853
+ color: var(--color-text-subtle-default);
12854
+ font-family: var(--text-label-sm-regular-fontFamily);
12855
+ font-size: var(--text-label-sm-regular-fontSize);
12856
+ font-weight: var(--text-label-sm-regular-fontWeight);
12857
+ line-height: var(--text-label-sm-regular-lineHeight);
12858
+ }
12859
+
12860
+ .muka-dropdown-select__error {
12861
+ margin: 0;
12862
+ color: var(--color-state-error-default);
12863
+ font-family: var(--text-label-sm-regular-fontFamily);
12864
+ font-size: var(--text-label-sm-regular-fontSize);
12865
+ font-weight: var(--text-label-sm-regular-fontWeight);
12866
+ line-height: var(--text-label-sm-regular-lineHeight);
12867
+ }
12868
+
12869
+ .muka-dropdown-select__menu {
12870
+ /* Uses Menu min-width (280px); grows with long labels; left-aligned to the field. */
12871
+ }
12872
+
12873
+
12846
12874
  /* Checkbox */
12847
12875
  /* Checkbox Component Styles - Using Muka Design Tokens */
12848
12876