@revikornmann/muka-ui 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,19 +90,22 @@
90
90
  --spacing-4: 1rem;
91
91
  --spacing-5: 1.25rem;
92
92
 
93
- --button-padding-sm-x: 0.5rem;
93
+ --button-padding-sm-x: 0.75rem;
94
94
  --button-padding-sm-y: 0.5rem;
95
95
  --button-padding-md-x: 0.75rem;
96
96
  --button-padding-md-y: 0.75rem;
97
97
  --button-padding-lg-x: 1rem;
98
98
  --button-padding-lg-y: 1rem;
99
99
 
100
- /* Border radius fallbacks */
101
- --radius-md: 6px;
102
-
103
- --button-radius-sm: 4px;
104
- --button-radius-md: 6px;
105
- --button-radius-lg: 6px;
100
+ /* Border radius fallbacks. Shape and spacing match the brand tokens (every
101
+ brand but wireframe, which draws square buttons), so a page whose theme
102
+ tokens load late or out of order keeps the real geometry. Colours and
103
+ fonts above stay deliberately neutral. */
104
+ --radius-md: 0.375rem;
105
+
106
+ --button-radius-sm: 0.75rem;
107
+ --button-radius-md: 0.75rem;
108
+ --button-radius-lg: 0.75rem;
106
109
 
107
110
  /* Typography fallbacks */
108
111
  --text-label-sm-fontSize: 0.875rem;
@@ -2706,78 +2709,6 @@ body {
2706
2709
  }
2707
2710
 
2708
2711
 
2709
- /* TypingIndicator */
2710
- /* TypingIndicator Component Styles */
2711
-
2712
- .muka-typing-indicator {
2713
- display: inline-flex;
2714
- align-items: center;
2715
- gap: var(--spacing-1);
2716
- padding: var(--spacing-2) var(--spacing-3);
2717
- }
2718
-
2719
- .muka-typing-indicator__dot {
2720
- display: inline-block;
2721
- border-radius: 50%;
2722
- background-color: var(--color-text-subtle-default);
2723
- animation: muka-typing-bounce 1.2s ease-in-out infinite;
2724
- }
2725
-
2726
- .muka-typing-indicator--sm .muka-typing-indicator__dot {
2727
- width: 4px;
2728
- height: 4px;
2729
- }
2730
-
2731
- .muka-typing-indicator--md .muka-typing-indicator__dot {
2732
- width: 6px;
2733
- height: 6px;
2734
- }
2735
-
2736
- .muka-typing-indicator__dot:nth-child(1) {
2737
- animation-delay: 0s;
2738
- }
2739
- .muka-typing-indicator__dot:nth-child(2) {
2740
- animation-delay: 0.16s;
2741
- }
2742
- .muka-typing-indicator__dot:nth-child(3) {
2743
- animation-delay: 0.32s;
2744
- }
2745
-
2746
- @keyframes muka-typing-bounce {
2747
- 0%, 80%, 100% {
2748
- transform: translateY(0);
2749
- opacity: 0.4;
2750
- }
2751
- 40% {
2752
- transform: translateY(-3px);
2753
- opacity: 1;
2754
- }
2755
- }
2756
-
2757
- @media (prefers-reduced-motion: reduce) {
2758
- .muka-typing-indicator__dot {
2759
- animation: muka-typing-fade 1.4s ease-in-out infinite;
2760
- transform: none !important;
2761
- }
2762
- @keyframes muka-typing-fade {
2763
- 0%, 100% { opacity: 0.4; }
2764
- 50% { opacity: 1; }
2765
- }
2766
- }
2767
-
2768
- .muka-typing-indicator__sr-label {
2769
- position: absolute;
2770
- width: 1px;
2771
- height: 1px;
2772
- padding: 0;
2773
- margin: -1px;
2774
- overflow: hidden;
2775
- clip: rect(0, 0, 0, 0);
2776
- white-space: nowrap;
2777
- border: 0;
2778
- }
2779
-
2780
-
2781
2712
  /* TopBar */
2782
2713
  /* ControlBar Component Styles */
2783
2714
 
@@ -2928,6 +2859,78 @@ body {
2928
2859
  }
2929
2860
 
2930
2861
 
2862
+ /* TypingIndicator */
2863
+ /* TypingIndicator Component Styles */
2864
+
2865
+ .muka-typing-indicator {
2866
+ display: inline-flex;
2867
+ align-items: center;
2868
+ gap: var(--spacing-1);
2869
+ padding: var(--spacing-2) var(--spacing-3);
2870
+ }
2871
+
2872
+ .muka-typing-indicator__dot {
2873
+ display: inline-block;
2874
+ border-radius: 50%;
2875
+ background-color: var(--color-text-subtle-default);
2876
+ animation: muka-typing-bounce 1.2s ease-in-out infinite;
2877
+ }
2878
+
2879
+ .muka-typing-indicator--sm .muka-typing-indicator__dot {
2880
+ width: 4px;
2881
+ height: 4px;
2882
+ }
2883
+
2884
+ .muka-typing-indicator--md .muka-typing-indicator__dot {
2885
+ width: 6px;
2886
+ height: 6px;
2887
+ }
2888
+
2889
+ .muka-typing-indicator__dot:nth-child(1) {
2890
+ animation-delay: 0s;
2891
+ }
2892
+ .muka-typing-indicator__dot:nth-child(2) {
2893
+ animation-delay: 0.16s;
2894
+ }
2895
+ .muka-typing-indicator__dot:nth-child(3) {
2896
+ animation-delay: 0.32s;
2897
+ }
2898
+
2899
+ @keyframes muka-typing-bounce {
2900
+ 0%, 80%, 100% {
2901
+ transform: translateY(0);
2902
+ opacity: 0.4;
2903
+ }
2904
+ 40% {
2905
+ transform: translateY(-3px);
2906
+ opacity: 1;
2907
+ }
2908
+ }
2909
+
2910
+ @media (prefers-reduced-motion: reduce) {
2911
+ .muka-typing-indicator__dot {
2912
+ animation: muka-typing-fade 1.4s ease-in-out infinite;
2913
+ transform: none !important;
2914
+ }
2915
+ @keyframes muka-typing-fade {
2916
+ 0%, 100% { opacity: 0.4; }
2917
+ 50% { opacity: 1; }
2918
+ }
2919
+ }
2920
+
2921
+ .muka-typing-indicator__sr-label {
2922
+ position: absolute;
2923
+ width: 1px;
2924
+ height: 1px;
2925
+ padding: 0;
2926
+ margin: -1px;
2927
+ overflow: hidden;
2928
+ clip: rect(0, 0, 0, 0);
2929
+ white-space: nowrap;
2930
+ border: 0;
2931
+ }
2932
+
2933
+
2931
2934
  /* Tooltip */
2932
2935
  /* Tooltip Component Styles */
2933
2936
 
@@ -4651,83 +4654,269 @@ body {
4651
4654
  }
4652
4655
 
4653
4656
 
4654
- /* SpecList */
4655
- /* SpecList Component Styles */
4657
+ /* SwipeActions */
4658
+ /* SwipeActions Component Styles */
4656
4659
 
4657
- .muka-spec-list {
4658
- margin: 0;
4659
- padding: 0;
4660
+ .muka-swipe-actions {
4661
+ position: relative;
4662
+ overflow: hidden;
4663
+ touch-action: pan-y;
4664
+ -webkit-user-select: none;
4665
+ user-select: none;
4666
+ background-color: var(--color-surface-level3);
4660
4667
  }
4661
4668
 
4662
- /* ─── Row ─────────────────────────────────────────────── */
4663
-
4664
- .muka-spec-row {
4665
- display: flex;
4666
- align-items: flex-start;
4667
- gap: var(--spacing-3);
4668
- padding-bottom: var(--spacing-3);
4669
+ .muka-swipe-actions--disabled {
4670
+ touch-action: auto;
4669
4671
  }
4670
4672
 
4671
- /* ─── Label ───────────────────────────────────────────── */
4673
+ /* ─── Row that holds the actual content ────────────────── */
4672
4674
 
4673
- .muka-spec-row__label {
4674
- flex: 0 0 auto;
4675
- margin: 0;
4676
- color: var(--color-text-subtle-default);
4677
- font-family: var(--text-body-base-regular-fontFamily);
4678
- font-weight: var(--text-body-base-regular-fontWeight);
4679
- font-size: var(--text-body-base-regular-fontSize);
4680
- line-height: var(--text-body-base-regular-lineHeight);
4681
- overflow: hidden;
4682
- text-overflow: ellipsis;
4683
- white-space: nowrap;
4675
+ .muka-swipe-actions__row {
4676
+ position: relative;
4677
+ z-index: 1;
4678
+ background-color: inherit;
4679
+ will-change: transform;
4684
4680
  }
4685
4681
 
4686
- /* ─── Value ───────────────────────────────────────────── */
4682
+ /* ─── Action panels — sit beneath the row ──────────────── */
4687
4683
 
4688
- .muka-spec-row__value {
4689
- flex: 1 1 0;
4690
- min-width: 0;
4691
- margin: 0;
4684
+ .muka-swipe-actions__panel {
4685
+ position: absolute;
4686
+ top: 0;
4687
+ bottom: 0;
4692
4688
  display: flex;
4693
- flex-direction: column;
4694
- color: var(--color-text-default-default);
4689
+ align-items: stretch;
4690
+ z-index: 0;
4695
4691
  }
4696
4692
 
4697
- .muka-spec-row__value-text {
4698
- font-family: var(--text-body-base-regular-fontFamily);
4699
- font-weight: var(--text-body-base-regular-fontWeight);
4700
- font-size: var(--text-body-base-regular-fontSize);
4701
- line-height: var(--text-body-base-regular-lineHeight);
4693
+ .muka-swipe-actions__panel--left {
4694
+ left: 0;
4702
4695
  }
4703
4696
 
4704
- .muka-spec-row__hint {
4705
- color: var(--color-text-subtle-default);
4706
- font-family: var(--text-body-sm-regular-fontFamily);
4707
- font-weight: var(--text-body-sm-regular-fontWeight);
4708
- font-size: var(--text-body-sm-regular-fontSize);
4709
- line-height: var(--text-body-sm-regular-lineHeight);
4697
+ .muka-swipe-actions__panel--right {
4698
+ right: 0;
4710
4699
  }
4711
4700
 
4712
- /* ─── Label width (horizontal stacking) ───────────────── */
4701
+ /* ─── Single action button ─────────────────────────────── */
4713
4702
 
4714
- .muka-spec-list--label-small .muka-spec-row__label {
4715
- width: 80px;
4703
+ .muka-swipe-actions__button {
4704
+ display: flex;
4705
+ flex-direction: column;
4706
+ align-items: center;
4707
+ justify-content: center;
4708
+ gap: var(--spacing-1);
4709
+ border: none;
4710
+ cursor: pointer;
4711
+ padding: var(--spacing-2);
4712
+ background-color: var(--color-surface-level2);
4713
+ color: var(--color-text-default-default);
4714
+ font-family: var(--text-label-sm-semibold-fontFamily);
4715
+ font-weight: var(--text-label-sm-semibold-fontWeight);
4716
+ font-size: var(--text-label-sm-semibold-fontSize);
4717
+ line-height: var(--text-label-sm-semibold-lineHeight);
4718
+ -webkit-tap-highlight-color: transparent;
4719
+ transition: filter 0.12s ease;
4716
4720
  }
4717
4721
 
4718
- .muka-spec-list--label-medium .muka-spec-row__label {
4719
- width: 120px;
4722
+ .muka-swipe-actions__button:hover {
4723
+ filter: brightness(0.95);
4720
4724
  }
4721
4725
 
4722
- .muka-spec-list--label-large .muka-spec-row__label {
4723
- width: 160px;
4726
+ .muka-swipe-actions__button:focus-visible {
4727
+ outline: 2px solid var(--color-action-default);
4728
+ outline-offset: -2px;
4724
4729
  }
4725
4730
 
4726
- /* ─── Vertical stacking ───────────────────────────────── */
4727
-
4728
- .muka-spec-list--vertical .muka-spec-row {
4729
- flex-direction: column;
4730
- gap: var(--spacing-1);
4731
+ .muka-swipe-actions__button-icon {
4732
+ display: inline-flex;
4733
+ align-items: center;
4734
+ justify-content: center;
4735
+ }
4736
+
4737
+ /* ─── Color variants ───────────────────────────────────── */
4738
+
4739
+ .muka-swipe-actions__button--neutral {
4740
+ background-color: var(--color-surface-level2);
4741
+ color: var(--color-text-default-default);
4742
+ }
4743
+
4744
+ .muka-swipe-actions__button--primary {
4745
+ background-color: var(--color-action-default);
4746
+ color: var(--color-text-default-inverse);
4747
+ }
4748
+
4749
+ .muka-swipe-actions__button--success {
4750
+ background-color: var(--color-state-success-default);
4751
+ color: var(--color-text-default-inverse);
4752
+ }
4753
+
4754
+ .muka-swipe-actions__button--warning {
4755
+ background-color: var(--color-state-warning-default);
4756
+ color: var(--color-text-default-default);
4757
+ }
4758
+
4759
+ .muka-swipe-actions__button--destructive {
4760
+ background-color: var(--color-state-error-default);
4761
+ color: var(--color-text-default-inverse);
4762
+ }
4763
+
4764
+
4765
+ /* Spinner */
4766
+ /* Spinner Component Styles */
4767
+
4768
+ .muka-spinner {
4769
+ display: inline-flex;
4770
+ align-items: center;
4771
+ justify-content: center;
4772
+ color: var(--color-text-default-default);
4773
+ line-height: 0;
4774
+ }
4775
+
4776
+ .muka-spinner--subtle {
4777
+ color: var(--color-text-subtle-default);
4778
+ }
4779
+
4780
+ .muka-spinner--inverse {
4781
+ color: var(--color-text-default-inverse);
4782
+ }
4783
+
4784
+ .muka-spinner__circle {
4785
+ display: inline-block;
4786
+ border-radius: 50%;
4787
+ border-style: solid;
4788
+ border-color: currentColor;
4789
+ border-right-color: transparent;
4790
+ animation: muka-spinner-rotate 0.7s linear infinite;
4791
+ box-sizing: border-box;
4792
+ }
4793
+
4794
+ /* ─── Sizes ───────────────────────────────────────────── */
4795
+
4796
+ .muka-spinner--sm .muka-spinner__circle {
4797
+ width: 16px;
4798
+ height: 16px;
4799
+ border-width: 2px;
4800
+ }
4801
+
4802
+ .muka-spinner--md .muka-spinner__circle {
4803
+ width: 20px;
4804
+ height: 20px;
4805
+ border-width: 2px;
4806
+ }
4807
+
4808
+ .muka-spinner--lg .muka-spinner__circle {
4809
+ width: 24px;
4810
+ height: 24px;
4811
+ border-width: 3px;
4812
+ }
4813
+
4814
+ /* ─── Visually-hidden label ───────────────────────────── */
4815
+
4816
+ .muka-spinner__sr-label {
4817
+ position: absolute;
4818
+ width: 1px;
4819
+ height: 1px;
4820
+ padding: 0;
4821
+ margin: -1px;
4822
+ overflow: hidden;
4823
+ clip: rect(0, 0, 0, 0);
4824
+ white-space: nowrap;
4825
+ border: 0;
4826
+ }
4827
+
4828
+ /* ─── Reduced motion ──────────────────────────────────── */
4829
+
4830
+ @keyframes muka-spinner-rotate {
4831
+ to {
4832
+ transform: rotate(360deg);
4833
+ }
4834
+ }
4835
+
4836
+ @media (prefers-reduced-motion: reduce) {
4837
+ .muka-spinner__circle {
4838
+ animation-duration: 2.5s;
4839
+ }
4840
+ }
4841
+
4842
+
4843
+ /* SpecList */
4844
+ /* SpecList Component Styles */
4845
+
4846
+ .muka-spec-list {
4847
+ margin: 0;
4848
+ padding: 0;
4849
+ }
4850
+
4851
+ /* ─── Row ─────────────────────────────────────────────── */
4852
+
4853
+ .muka-spec-row {
4854
+ display: flex;
4855
+ align-items: flex-start;
4856
+ gap: var(--spacing-3);
4857
+ padding-bottom: var(--spacing-3);
4858
+ }
4859
+
4860
+ /* ─── Label ───────────────────────────────────────────── */
4861
+
4862
+ .muka-spec-row__label {
4863
+ flex: 0 0 auto;
4864
+ margin: 0;
4865
+ color: var(--color-text-subtle-default);
4866
+ font-family: var(--text-body-base-regular-fontFamily);
4867
+ font-weight: var(--text-body-base-regular-fontWeight);
4868
+ font-size: var(--text-body-base-regular-fontSize);
4869
+ line-height: var(--text-body-base-regular-lineHeight);
4870
+ overflow: hidden;
4871
+ text-overflow: ellipsis;
4872
+ white-space: nowrap;
4873
+ }
4874
+
4875
+ /* ─── Value ───────────────────────────────────────────── */
4876
+
4877
+ .muka-spec-row__value {
4878
+ flex: 1 1 0;
4879
+ min-width: 0;
4880
+ margin: 0;
4881
+ display: flex;
4882
+ flex-direction: column;
4883
+ color: var(--color-text-default-default);
4884
+ }
4885
+
4886
+ .muka-spec-row__value-text {
4887
+ font-family: var(--text-body-base-regular-fontFamily);
4888
+ font-weight: var(--text-body-base-regular-fontWeight);
4889
+ font-size: var(--text-body-base-regular-fontSize);
4890
+ line-height: var(--text-body-base-regular-lineHeight);
4891
+ }
4892
+
4893
+ .muka-spec-row__hint {
4894
+ color: var(--color-text-subtle-default);
4895
+ font-family: var(--text-body-sm-regular-fontFamily);
4896
+ font-weight: var(--text-body-sm-regular-fontWeight);
4897
+ font-size: var(--text-body-sm-regular-fontSize);
4898
+ line-height: var(--text-body-sm-regular-lineHeight);
4899
+ }
4900
+
4901
+ /* ─── Label width (horizontal stacking) ───────────────── */
4902
+
4903
+ .muka-spec-list--label-small .muka-spec-row__label {
4904
+ width: 80px;
4905
+ }
4906
+
4907
+ .muka-spec-list--label-medium .muka-spec-row__label {
4908
+ width: 120px;
4909
+ }
4910
+
4911
+ .muka-spec-list--label-large .muka-spec-row__label {
4912
+ width: 160px;
4913
+ }
4914
+
4915
+ /* ─── Vertical stacking ───────────────────────────────── */
4916
+
4917
+ .muka-spec-list--vertical .muka-spec-row {
4918
+ flex-direction: column;
4919
+ gap: var(--spacing-1);
4731
4920
  }
4732
4921
 
4733
4922
  .muka-spec-list--vertical .muka-spec-row__label {
@@ -5078,118 +5267,43 @@ body {
5078
5267
  }
5079
5268
 
5080
5269
 
5081
- /* Skeleton */
5082
- /* Skeleton Component Styles */
5083
-
5084
- .muka-skeleton {
5085
- background-color: var(--color-surface-level1);
5086
- display: block;
5087
- }
5270
+ /* Sheet */
5271
+ /* Sheet Component Styles */
5088
5272
 
5089
- /* Variants */
5090
- .muka-skeleton--text {
5091
- height: 1em;
5092
- border-radius: var(--radius-md);
5093
- width: 100%;
5094
- }
5273
+ /* ─── Backdrop ────────────────────────────────────────── */
5095
5274
 
5096
- .muka-skeleton--circular {
5097
- width: 2.5rem;
5098
- height: 2.5rem;
5099
- border-radius: var(--radius-full);
5275
+ .muka-sheet__overlay {
5276
+ position: fixed;
5277
+ inset: 0;
5278
+ background-color: var(--color-surface-backdrop);
5279
+ z-index: 50;
5100
5280
  }
5101
5281
 
5102
- .muka-skeleton--rectangular {
5103
- height: 7.5rem;
5104
- border-radius: var(--radius-md);
5105
- width: 100%;
5106
- }
5282
+ /* ─── Surface ─────────────────────────────────────────── */
5107
5283
 
5108
- /* Last line in multi-line text is shorter */
5109
- .muka-skeleton--last-line {
5110
- width: 80%;
5111
- }
5284
+ .muka-sheet {
5285
+ position: fixed;
5286
+ left: 0;
5287
+ right: 0;
5288
+ bottom: 0;
5289
+ z-index: 51;
5112
5290
 
5113
- /* Lines container */
5114
- .muka-skeleton__lines {
5115
5291
  display: flex;
5116
5292
  flex-direction: column;
5117
- gap: var(--spacing-2);
5293
+
5294
+ max-height: 96dvh;
5295
+
5296
+ background-color: var(--color-surface-level3);
5297
+ border-top-left-radius: var(--radius-lg);
5298
+ border-top-right-radius: var(--radius-lg);
5299
+ box-shadow: var(--shadow-level5);
5300
+
5301
+ outline: none;
5118
5302
  }
5119
5303
 
5120
- /* Shimmer animation */
5121
- @keyframes muka-skeleton-shimmer {
5122
- 0% {
5123
- background-position: -200% 0;
5124
- }
5125
- 100% {
5126
- background-position: 200% 0;
5127
- }
5128
- }
5129
-
5130
- .muka-skeleton--shimmer {
5131
- background: linear-gradient(
5132
- 90deg,
5133
- var(--color-surface-level1) 25%,
5134
- var(--color-surface-level2) 50%,
5135
- var(--color-surface-level1) 75%
5136
- );
5137
- background-size: 200% 100%;
5138
- animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5139
- }
5140
-
5141
- /* Pulse animation */
5142
- @keyframes muka-skeleton-pulse {
5143
- 0%, 100% {
5144
- opacity: 1;
5145
- }
5146
- 50% {
5147
- opacity: 0.4;
5148
- }
5149
- }
5150
-
5151
- .muka-skeleton--pulse {
5152
- animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5153
- }
5154
-
5155
-
5156
- /* Sheet */
5157
- /* Sheet Component Styles */
5158
-
5159
- /* ─── Backdrop ────────────────────────────────────────── */
5160
-
5161
- .muka-sheet__overlay {
5162
- position: fixed;
5163
- inset: 0;
5164
- background-color: var(--color-surface-backdrop);
5165
- z-index: 50;
5166
- }
5167
-
5168
- /* ─── Surface ─────────────────────────────────────────── */
5169
-
5170
- .muka-sheet {
5171
- position: fixed;
5172
- left: 0;
5173
- right: 0;
5174
- bottom: 0;
5175
- z-index: 51;
5176
-
5177
- display: flex;
5178
- flex-direction: column;
5179
-
5180
- max-height: 96dvh;
5181
-
5182
- background-color: var(--color-surface-level3);
5183
- border-top-left-radius: var(--radius-lg);
5184
- border-top-right-radius: var(--radius-lg);
5185
- box-shadow: var(--shadow-level5);
5186
-
5187
- outline: none;
5188
- }
5189
-
5190
- /* Safe-area bottom inset for the iPhone home indicator. */
5191
- .muka-sheet:not(.muka-sheet--no-safe-area) {
5192
- padding-bottom: env(safe-area-inset-bottom);
5304
+ /* Safe-area bottom inset for the iPhone home indicator. */
5305
+ .muka-sheet:not(.muka-sheet--no-safe-area) {
5306
+ padding-bottom: env(safe-area-inset-bottom);
5193
5307
  }
5194
5308
 
5195
5309
  /* ─── Drag handle ─────────────────────────────────────── */
@@ -5233,6 +5347,81 @@ body {
5233
5347
  }
5234
5348
 
5235
5349
 
5350
+ /* Skeleton */
5351
+ /* Skeleton Component Styles */
5352
+
5353
+ .muka-skeleton {
5354
+ background-color: var(--color-surface-level1);
5355
+ display: block;
5356
+ }
5357
+
5358
+ /* Variants */
5359
+ .muka-skeleton--text {
5360
+ height: 1em;
5361
+ border-radius: var(--radius-md);
5362
+ width: 100%;
5363
+ }
5364
+
5365
+ .muka-skeleton--circular {
5366
+ width: 2.5rem;
5367
+ height: 2.5rem;
5368
+ border-radius: var(--radius-full);
5369
+ }
5370
+
5371
+ .muka-skeleton--rectangular {
5372
+ height: 7.5rem;
5373
+ border-radius: var(--radius-md);
5374
+ width: 100%;
5375
+ }
5376
+
5377
+ /* Last line in multi-line text is shorter */
5378
+ .muka-skeleton--last-line {
5379
+ width: 80%;
5380
+ }
5381
+
5382
+ /* Lines container */
5383
+ .muka-skeleton__lines {
5384
+ display: flex;
5385
+ flex-direction: column;
5386
+ gap: var(--spacing-2);
5387
+ }
5388
+
5389
+ /* Shimmer animation */
5390
+ @keyframes muka-skeleton-shimmer {
5391
+ 0% {
5392
+ background-position: -200% 0;
5393
+ }
5394
+ 100% {
5395
+ background-position: 200% 0;
5396
+ }
5397
+ }
5398
+
5399
+ .muka-skeleton--shimmer {
5400
+ background: linear-gradient(
5401
+ 90deg,
5402
+ var(--color-surface-level1) 25%,
5403
+ var(--color-surface-level2) 50%,
5404
+ var(--color-surface-level1) 75%
5405
+ );
5406
+ background-size: 200% 100%;
5407
+ animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5408
+ }
5409
+
5410
+ /* Pulse animation */
5411
+ @keyframes muka-skeleton-pulse {
5412
+ 0%, 100% {
5413
+ opacity: 1;
5414
+ }
5415
+ 50% {
5416
+ opacity: 0.4;
5417
+ }
5418
+ }
5419
+
5420
+ .muka-skeleton--pulse {
5421
+ animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5422
+ }
5423
+
5424
+
5236
5425
  /* Select */
5237
5426
  /* Select Component Styles - Aligned with Input for consistency */
5238
5427
 
@@ -7989,597 +8178,90 @@ body {
7989
8178
  }
7990
8179
 
7991
8180
 
7992
- /* NavigationTransition */
7993
- /* NavigationTransition Component Styles */
7994
-
7995
- /* ─── Wrapper ────────────────────────────────────────── */
8181
+ /* MediaViewer */
8182
+ /* MediaViewer Component Styles - Using Muka Design Tokens */
7996
8183
 
7997
- .muka-nav-transition {
7998
- position: relative;
7999
- height: 100vh;
8184
+ /* ─── Native dialog: full viewport ────────────────────── */
8185
+ .muka-media-viewer {
8186
+ position: fixed;
8187
+ inset: 0;
8188
+ width: 100%;
8189
+ height: 100%;
8190
+ max-width: none;
8191
+ max-height: none;
8192
+ margin: 0;
8193
+ padding: 0;
8194
+ border: none;
8195
+ display: flex;
8196
+ flex-direction: column;
8000
8197
  overflow: hidden;
8198
+ overscroll-behavior: contain;
8199
+ color: var(--color-text-default-default);
8200
+ background-color: var(--color-black-alpha-12);
8201
+ animation: muka-media-viewer-in var(--motion-duration-component) var(--motion-easing-enter);
8001
8202
  }
8002
8203
 
8003
- /* Disable interaction during animation */
8004
- .muka-nav-transition--active {
8005
- pointer-events: none;
8204
+ .muka-media-viewer:not([open]) {
8205
+ display: none;
8006
8206
  }
8007
8207
 
8008
- /* ─── View slots ─────────────────────────────────────── */
8009
-
8010
- .muka-nav-transition--active .muka-nav-transition__view {
8011
- position: absolute;
8012
- inset: 0;
8208
+ .muka-media-viewer::backdrop {
8209
+ background-color: var(--color-black-alpha-12);
8013
8210
  }
8014
8211
 
8015
- /* Z-index layering */
8016
- .muka-nav-transition__view--bottom { z-index: 1; }
8017
- .muka-nav-transition__view--top { z-index: 2; }
8018
-
8019
-
8020
- /* Menu */
8021
- /* Menu Component Styles */
8212
+ @keyframes muka-media-viewer-in {
8213
+ from {
8214
+ opacity: 0;
8215
+ }
8216
+ to {
8217
+ opacity: 1;
8218
+ }
8219
+ }
8022
8220
 
8023
- /* ─── Content Container ──────────────────────────────────────────────────── */
8221
+ /* ─── Chrome: TopBar and footer sit on a surface ──────── */
8222
+ .muka-media-viewer__topbar {
8223
+ flex-shrink: 0;
8224
+ background-color: var(--color-surface-level3);
8225
+ }
8024
8226
 
8025
- .muka-menu__content {
8026
- display: flex;
8027
- flex-direction: column;
8028
- min-width: var(--menu-content-min-width);
8029
- max-height: var(--menu-content-max-height);
8030
- overflow: hidden;
8031
- background-color: var(--menu-content-color-background);
8032
- border: var(--menu-content-border-width) solid var(--menu-content-color-border);
8033
- border-radius: var(--menu-content-border-radius);
8034
- box-shadow: var(--menu-content-shadow);
8227
+ .muka-media-viewer__live {
8228
+ position: absolute;
8229
+ width: 1px;
8230
+ height: 1px;
8035
8231
  padding: 0;
8036
- z-index: 50;
8037
-
8038
- /* Animation */
8039
- animation-duration: 150ms;
8040
- animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
8232
+ margin: -1px;
8233
+ overflow: hidden;
8234
+ clip: rect(0, 0, 0, 0);
8235
+ white-space: nowrap;
8236
+ border: 0;
8041
8237
  }
8042
8238
 
8043
- .muka-menu__body {
8044
- display: flex;
8239
+ /* ─── Stage: the dark area the images slide across ────── */
8240
+ .muka-media-viewer__stage {
8241
+ position: relative;
8045
8242
  flex: 1 1 auto;
8046
8243
  min-height: 0;
8047
- align-items: stretch;
8048
- width: 100%;
8244
+ overflow: hidden;
8245
+ /* Gestures are handled in JS: no browser panning or pinch on the stage. */
8246
+ touch-action: none;
8247
+ user-select: none;
8248
+ -webkit-user-select: none;
8049
8249
  }
8050
8250
 
8051
- .muka-menu__viewport {
8052
- flex: 1 1 auto;
8053
- min-width: 0;
8054
- min-height: 0;
8055
- overflow-y: auto;
8056
- padding: var(--menu-content-padding);
8251
+ .muka-media-viewer__slide {
8252
+ position: absolute;
8253
+ inset: 0;
8254
+ display: flex;
8255
+ align-items: center;
8256
+ justify-content: center;
8257
+ padding: var(--spacing-4);
8258
+ transition: transform var(--motion-duration-component) var(--motion-easing-default);
8259
+ will-change: transform;
8057
8260
  }
8058
8261
 
8059
- .muka-menu__content--scrollbar .muka-menu__viewport {
8060
- /* Custom scrollbar owns the chrome; hide native track */
8061
- scrollbar-width: none;
8062
- }
8063
-
8064
- .muka-menu__content--scrollbar .muka-menu__viewport::-webkit-scrollbar {
8065
- display: none;
8066
- }
8067
-
8068
- /* ─── Search header ──────────────────────────────────────────────────────── */
8069
-
8070
- .muka-menu__search {
8071
- display: flex;
8072
- align-items: center;
8073
- flex-shrink: 0;
8074
- /* Figma dropdown filter header: 48px, 8px inset, 32px icon slots. */
8075
- height: var(--input-field-height-lg, 3rem);
8076
- padding: 0 var(--spacing-2);
8077
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
8078
- }
8079
-
8080
- .muka-menu__search--sm {
8081
- height: calc(var(--size-xl, 1.5rem) + var(--spacing-2) * 2);
8082
- }
8083
-
8084
- .muka-menu__search-icon,
8085
- .muka-menu__search-clear {
8086
- display: flex;
8087
- align-items: center;
8088
- justify-content: center;
8089
- flex-shrink: 0;
8090
- width: var(--size-2xl, 2rem);
8091
- height: var(--size-2xl, 2rem);
8092
- color: var(--color-text-subtle-default);
8093
- }
8094
-
8095
- .muka-menu__search-icon .muka-icon,
8096
- .muka-menu__search-clear .muka-icon,
8097
- .muka-menu__search-clear:hover,
8098
- .muka-menu__search-clear:hover .muka-icon {
8099
- color: var(--color-text-subtle-default);
8100
- }
8101
-
8102
- .muka-menu__search--sm .muka-menu__search-icon,
8103
- .muka-menu__search--sm .muka-menu__search-clear {
8104
- width: var(--size-xl, 1.5rem);
8105
- height: var(--size-xl, 1.5rem);
8106
- }
8107
-
8108
- .muka-menu__search-input {
8109
- flex: 1 1 auto;
8110
- min-width: 0;
8111
- border: none;
8112
- outline: none;
8113
- background: transparent;
8114
- padding: 0 var(--spacing-1);
8115
- font-family: var(--text-input-md-fontFamily);
8116
- font-size: var(--text-input-md-fontSize);
8117
- font-weight: var(--text-input-md-fontWeight);
8118
- line-height: var(--text-input-md-lineHeight);
8119
- color: var(--color-text-default-default);
8120
- }
8121
-
8122
- .muka-menu__search--sm .muka-menu__search-input {
8123
- font-family: var(--text-input-sm-fontFamily);
8124
- font-size: var(--text-input-sm-fontSize);
8125
- font-weight: var(--text-input-sm-fontWeight);
8126
- line-height: var(--text-input-sm-lineHeight);
8127
- }
8128
-
8129
- .muka-menu__search-input::placeholder {
8130
- color: var(--color-text-subtle-default);
8131
- }
8132
-
8133
- .muka-menu__search-input::-webkit-search-cancel-button,
8134
- .muka-menu__search-input::-webkit-search-decoration {
8135
- -webkit-appearance: none;
8136
- appearance: none;
8137
- }
8138
-
8139
- .muka-menu__empty {
8140
- display: flex;
8141
- align-items: center;
8142
- min-height: var(--menu-item-height);
8143
- padding: var(--menu-item-padding-y) var(--menu-item-padding-x);
8144
- color: var(--color-text-subtle-default);
8145
- font-family: var(--text-input-md-fontFamily);
8146
- font-size: var(--text-input-md-fontSize);
8147
- font-weight: var(--text-input-md-fontWeight);
8148
- line-height: var(--text-input-md-lineHeight);
8149
- pointer-events: none;
8150
- user-select: none;
8151
- }
8152
-
8153
- .muka-menu__search-clear {
8154
- padding: 0;
8155
- border: none;
8156
- background: transparent;
8157
- cursor: pointer;
8158
- }
8159
-
8160
- .muka-menu__match {
8161
- font-weight: var(--text-label-md-bold-fontWeight);
8162
- }
8163
-
8164
- .muka-menu__content--scrollbar {
8165
- height: var(--menu-content-scroll-height, 20.625rem);
8166
- max-height: var(--menu-content-scroll-height, 20.625rem);
8167
- }
8168
-
8169
- .muka-menu__content[data-state='open'] {
8170
- animation-name: muka-menu-fade-in;
8171
- }
8172
-
8173
- .muka-menu__content[data-state='closed'] {
8174
- animation-name: muka-menu-fade-out;
8175
- }
8176
-
8177
- .muka-menu__content[data-side='top'] {
8178
- animation-name: muka-menu-slide-down;
8179
- }
8180
-
8181
- .muka-menu__content[data-side='bottom'] {
8182
- animation-name: muka-menu-slide-up;
8183
- }
8184
-
8185
- .muka-menu__content[data-side='left'] {
8186
- animation-name: muka-menu-slide-right;
8187
- }
8188
-
8189
- .muka-menu__content[data-side='right'] {
8190
- animation-name: muka-menu-slide-left;
8191
- }
8192
-
8193
- /* ─── Menu Item ──────────────────────────────────────────────────────────── */
8194
-
8195
- .muka-menu__item {
8196
- position: relative;
8197
- display: flex;
8198
- align-items: center;
8199
- gap: var(--menu-item-gap);
8200
- min-height: var(--menu-item-height);
8201
- /* Right gutter always reserved for floating trailers (enter / check). */
8202
- padding: var(--menu-item-padding-y) var(--menu-item-padding-right) var(--menu-item-padding-y)
8203
- var(--menu-item-padding-x);
8204
- border-radius: var(--menu-item-border-radius);
8205
- cursor: pointer;
8206
- user-select: none;
8207
- outline: none;
8208
- font-family: var(--text-label-md-regular-fontFamily);
8209
- font-size: var(--text-label-md-regular-fontSize);
8210
- font-weight: var(--text-label-md-regular-fontWeight);
8211
- line-height: var(--text-label-md-regular-lineHeight);
8212
- color: var(--menu-item-color-default-foreground);
8213
- background-color: var(--menu-item-color-default-background);
8214
- transition: background-color 100ms ease, color 100ms ease;
8215
- white-space: nowrap;
8216
- }
8217
-
8218
- .muka-menu__item:hover,
8219
- .muka-menu__item[data-highlighted] {
8220
- background-color: var(--menu-item-color-hover-background);
8221
- color: var(--menu-item-color-hover-foreground);
8222
- }
8223
-
8224
- .muka-menu__item:focus,
8225
- .muka-menu__item[data-highlighted]:focus {
8226
- background-color: var(--menu-item-color-focus-background);
8227
- color: var(--menu-item-color-focus-foreground);
8228
- }
8229
-
8230
- /* Disabled */
8231
- .muka-menu__item--disabled,
8232
- .muka-menu__item[data-disabled] {
8233
- color: var(--menu-item-color-disabled-foreground);
8234
- background-color: var(--menu-item-color-disabled-background);
8235
- cursor: not-allowed;
8236
- pointer-events: none;
8237
- }
8238
-
8239
- .muka-menu__item--disabled .muka-menu__item-icon,
8240
- .muka-menu__item[data-disabled] .muka-menu__item-icon {
8241
- color: var(--menu-item-color-disabled-icon);
8242
- }
8243
-
8244
- /* Destructive */
8245
- .muka-menu__item--destructive {
8246
- color: var(--menu-item-color-destructive-default-foreground);
8247
- }
8248
-
8249
- .muka-menu__item--destructive .muka-menu__item-icon {
8250
- color: var(--menu-item-color-destructive-default-icon);
8251
- }
8252
-
8253
- .muka-menu__item--destructive:hover,
8254
- .muka-menu__item--destructive[data-highlighted] {
8255
- background-color: var(--menu-item-color-destructive-hover-background);
8256
- color: var(--menu-item-color-destructive-hover-foreground);
8257
- }
8258
-
8259
- .muka-menu__item--destructive:hover .muka-menu__item-icon,
8260
- .muka-menu__item--destructive[data-highlighted] .muka-menu__item-icon {
8261
- color: var(--menu-item-color-destructive-hover-icon);
8262
- }
8263
-
8264
- /* ─── Item Parts ─────────────────────────────────────────────────────────── */
8265
-
8266
- .muka-menu__item-icon {
8267
- display: flex;
8268
- align-items: center;
8269
- justify-content: center;
8270
- flex-shrink: 0;
8271
- color: var(--menu-item-color-default-icon);
8272
- transition: color 100ms ease;
8273
- }
8274
-
8275
- .muka-menu__item:hover .muka-menu__item-icon,
8276
- .muka-menu__item[data-highlighted] .muka-menu__item-icon {
8277
- color: var(--menu-item-color-hover-icon);
8278
- }
8279
-
8280
- .muka-menu__item-label {
8281
- flex: 1 1 auto;
8282
- min-width: 0;
8283
- white-space: nowrap;
8284
- }
8285
-
8286
- /* Shortcut trailers replace icons and sit with an 8px right inset. */
8287
- .muka-menu__item--has-shortcut {
8288
- padding-right: var(--spacing-2);
8289
- }
8290
-
8291
- .muka-menu__item-shortcut {
8292
- flex-shrink: 0;
8293
- margin-left: auto;
8294
- padding-left: var(--menu-item-gap);
8295
- font-family: var(--text-label-sm-regular-fontFamily);
8296
- font-size: var(--text-label-sm-regular-fontSize);
8297
- font-weight: var(--text-label-sm-regular-fontWeight);
8298
- line-height: var(--text-label-sm-regular-lineHeight);
8299
- color: var(--color-text-muted-default);
8300
- white-space: nowrap;
8301
- }
8302
-
8303
- .muka-menu__item-hint {
8304
- /* Figma: trailer sits with 8px margin top / right / bottom; 24px glyph centered inside. */
8305
- position: absolute;
8306
- top: var(--spacing-2);
8307
- right: var(--spacing-2);
8308
- bottom: var(--spacing-2);
8309
- display: none;
8310
- align-items: center;
8311
- justify-content: center;
8312
- width: var(--icon-size-default, 1.5rem);
8313
- color: var(--color-text-muted-default);
8314
- pointer-events: none;
8315
- }
8316
-
8317
- .muka-menu__item--hint-enter[data-highlighted] .muka-menu__item-hint {
8318
- display: flex;
8319
- }
8320
-
8321
- .muka-menu__item-chevron {
8322
- position: absolute;
8323
- top: var(--spacing-2);
8324
- right: var(--spacing-2);
8325
- bottom: var(--spacing-2);
8326
- display: flex;
8327
- align-items: center;
8328
- justify-content: center;
8329
- width: var(--icon-size-default, 1.5rem);
8330
- color: var(--menu-shortcut-color);
8331
- }
8332
-
8333
- /* ─── Indicator (Checkbox/Radio) ─────────────────────────────────────────── */
8334
-
8335
- .muka-menu__item-indicator {
8336
- display: flex;
8337
- align-items: center;
8338
- justify-content: center;
8339
- width: var(--menu-checkbox-indicator-size);
8340
- height: var(--menu-checkbox-indicator-size);
8341
- flex-shrink: 0;
8342
- color: var(--menu-checkbox-indicator-color);
8343
- }
8344
-
8345
- .muka-menu__item--checkbox,
8346
- .muka-menu__item--radio {
8347
- padding-left: var(--menu-item-padding-x);
8348
- }
8349
-
8350
- .muka-menu__item--checkbox-trailing,
8351
- .muka-menu__item--radio-check {
8352
- /* Same reserved right gutter as default items — trailing indicator floats. */
8353
- padding-right: var(--menu-item-padding-right);
8354
- }
8355
-
8356
- .muka-menu__item--radio-check[data-state='checked'] {
8357
- background-color: var(--menu-item-color-selected-background);
8358
- }
8359
-
8360
- .muka-menu__item-indicator--trailing {
8361
- /* Match enter-hint trailer: 8px inset, 24px box (override leading indicator size). */
8362
- position: absolute;
8363
- top: var(--spacing-2);
8364
- right: var(--spacing-2);
8365
- bottom: var(--spacing-2);
8366
- display: flex;
8367
- align-items: center;
8368
- justify-content: center;
8369
- width: var(--icon-size-default, 1.5rem);
8370
- height: auto;
8371
- max-height: none;
8372
- transform: none;
8373
- color: var(--color-text-subtle-default);
8374
- }
8375
-
8376
- .muka-menu__item-indicator--trailing > [data-state] {
8377
- display: flex;
8378
- align-items: center;
8379
- justify-content: center;
8380
- width: 100%;
8381
- height: 100%;
8382
- }
8383
-
8384
- .muka-menu__radio-dot {
8385
- width: 8px;
8386
- height: 8px;
8387
- border-radius: 50%;
8388
- background-color: var(--menu-radio-indicator-color);
8389
- }
8390
-
8391
- /* ─── Separator ──────────────────────────────────────────────────────────── */
8392
-
8393
- .muka-menu__separator {
8394
- height: var(--menu-separator-height);
8395
- margin: var(--menu-separator-margin-y) 0;
8396
- background-color: var(--menu-separator-color);
8397
- }
8398
-
8399
- /* ─── Group ──────────────────────────────────────────────────────────────── */
8400
-
8401
- .muka-menu__group {
8402
- /* No additional styles needed - just a container */
8403
- }
8404
-
8405
- .muka-menu__group-label {
8406
- padding: var(--menu-group-label-padding-y) var(--menu-group-label-padding-x);
8407
- font-family: var(--text-label-sm-semibold-fontFamily);
8408
- font-size: var(--text-label-sm-semibold-fontSize);
8409
- font-weight: var(--text-label-sm-semibold-fontWeight);
8410
- line-height: var(--text-label-sm-semibold-lineHeight);
8411
- color: var(--menu-group-label-color);
8412
- text-transform: uppercase;
8413
- letter-spacing: 0.05em;
8414
- }
8415
-
8416
- /* ─── Radio Group ────────────────────────────────────────────────────────── */
8417
-
8418
- .muka-menu__radio-group {
8419
- /* No additional styles needed - just a container */
8420
- }
8421
-
8422
- /* ─── Context Menu Trigger ───────────────────────────────────────────────── */
8423
-
8424
- .muka-context-menu__trigger {
8425
- /* Allow the trigger to be styled by the parent */
8426
- }
8427
-
8428
- .muka-context-menu__trigger:focus-visible {
8429
- outline: var(--contextmenu-trigger-outline-width) solid var(--contextmenu-trigger-outline-color);
8430
- outline-offset: var(--contextmenu-trigger-outline-offset);
8431
- border-radius: var(--border-radius-sm);
8432
- }
8433
-
8434
- /* ─── Animations ─────────────────────────────────────────────────────────── */
8435
-
8436
- @keyframes muka-menu-fade-in {
8437
- from {
8438
- opacity: 0;
8439
- }
8440
- to {
8441
- opacity: 1;
8442
- }
8443
- }
8444
-
8445
- @keyframes muka-menu-fade-out {
8446
- from {
8447
- opacity: 1;
8448
- }
8449
- to {
8450
- opacity: 0;
8451
- }
8452
- }
8453
-
8454
- @keyframes muka-menu-slide-up {
8455
- from {
8456
- opacity: 0;
8457
- transform: translateY(4px);
8458
- }
8459
- to {
8460
- opacity: 1;
8461
- transform: translateY(0);
8462
- }
8463
- }
8464
-
8465
- @keyframes muka-menu-slide-down {
8466
- from {
8467
- opacity: 0;
8468
- transform: translateY(-4px);
8469
- }
8470
- to {
8471
- opacity: 1;
8472
- transform: translateY(0);
8473
- }
8474
- }
8475
-
8476
- @keyframes muka-menu-slide-left {
8477
- from {
8478
- opacity: 0;
8479
- transform: translateX(4px);
8480
- }
8481
- to {
8482
- opacity: 1;
8483
- transform: translateX(0);
8484
- }
8485
- }
8486
-
8487
- @keyframes muka-menu-slide-right {
8488
- from {
8489
- opacity: 0;
8490
- transform: translateX(-4px);
8491
- }
8492
- to {
8493
- opacity: 1;
8494
- transform: translateX(0);
8495
- }
8496
- }
8497
-
8498
-
8499
- /* MediaViewer */
8500
- /* MediaViewer Component Styles - Using Muka Design Tokens */
8501
-
8502
- /* ─── Native dialog: full viewport ────────────────────── */
8503
- .muka-media-viewer {
8504
- position: fixed;
8505
- inset: 0;
8506
- width: 100%;
8507
- height: 100%;
8508
- max-width: none;
8509
- max-height: none;
8510
- margin: 0;
8511
- padding: 0;
8512
- border: none;
8513
- display: flex;
8514
- flex-direction: column;
8515
- overflow: hidden;
8516
- overscroll-behavior: contain;
8517
- color: var(--color-text-default-default);
8518
- background-color: var(--color-black-alpha-12);
8519
- animation: muka-media-viewer-in var(--motion-duration-component) var(--motion-easing-enter);
8520
- }
8521
-
8522
- .muka-media-viewer:not([open]) {
8523
- display: none;
8524
- }
8525
-
8526
- .muka-media-viewer::backdrop {
8527
- background-color: var(--color-black-alpha-12);
8528
- }
8529
-
8530
- @keyframes muka-media-viewer-in {
8531
- from {
8532
- opacity: 0;
8533
- }
8534
- to {
8535
- opacity: 1;
8536
- }
8537
- }
8538
-
8539
- /* ─── Chrome: TopBar and footer sit on a surface ──────── */
8540
- .muka-media-viewer__topbar {
8541
- flex-shrink: 0;
8542
- background-color: var(--color-surface-level3);
8543
- }
8544
-
8545
- .muka-media-viewer__live {
8546
- position: absolute;
8547
- width: 1px;
8548
- height: 1px;
8549
- padding: 0;
8550
- margin: -1px;
8551
- overflow: hidden;
8552
- clip: rect(0, 0, 0, 0);
8553
- white-space: nowrap;
8554
- border: 0;
8555
- }
8556
-
8557
- /* ─── Stage: the dark area the images slide across ────── */
8558
- .muka-media-viewer__stage {
8559
- position: relative;
8560
- flex: 1 1 auto;
8561
- min-height: 0;
8562
- overflow: hidden;
8563
- /* Gestures are handled in JS: no browser panning or pinch on the stage. */
8564
- touch-action: none;
8565
- user-select: none;
8566
- -webkit-user-select: none;
8567
- }
8568
-
8569
- .muka-media-viewer__slide {
8570
- position: absolute;
8571
- inset: 0;
8572
- display: flex;
8573
- align-items: center;
8574
- justify-content: center;
8575
- padding: var(--spacing-4);
8576
- transition: transform var(--motion-duration-component) var(--motion-easing-default);
8577
- will-change: transform;
8578
- }
8579
-
8580
- /* While a finger drags, the image follows it without easing. */
8581
- .muka-media-viewer--dragging .muka-media-viewer__slide {
8582
- transition: none;
8262
+ /* While a finger drags, the image follows it without easing. */
8263
+ .muka-media-viewer--dragging .muka-media-viewer__slide {
8264
+ transition: none;
8583
8265
  }
8584
8266
 
8585
8267
  .muka-media-viewer__image {
@@ -13320,6 +13002,16 @@ button.muka-chat-photo-grid__tile:focus-visible {
13320
13002
  gap: var(--spacing-3);
13321
13003
  }
13322
13004
 
13005
+ /*
13006
+ * Buttons beside the field keep their square size (`.muka-button--icon-only`
13007
+ * width). Only the field or recording bar flexes, so a wide waveform or a
13008
+ * long text can never squeeze them.
13009
+ */
13010
+ .muka-chat-composer__row > .muka-button,
13011
+ .muka-chat-composer__options-input > .muka-button {
13012
+ flex-shrink: 0;
13013
+ }
13014
+
13323
13015
  /* ─── Text field ───────────────────────────────────────── */
13324
13016
 
13325
13017
  .muka-chat-composer__field {
@@ -13377,6 +13069,16 @@ button.muka-chat-photo-grid__tile:focus-visible {
13377
13069
  color: var(--color-text-subtle-default);
13378
13070
  }
13379
13071
 
13072
+ /* Transcribing: the field is back but inert (Input disabled tokens). */
13073
+ .muka-chat-composer__field--disabled {
13074
+ border-color: var(--input-field-color-disabled-border);
13075
+ background-color: var(--input-field-color-disabled-background);
13076
+ }
13077
+
13078
+ .muka-chat-composer__field--disabled .muka-chat-composer__input::placeholder {
13079
+ color: var(--input-field-color-disabled-foreground);
13080
+ }
13081
+
13380
13082
  /* Keep the in-field emoji button flush to the bottom-right as the field grows */
13381
13083
  .muka-chat-composer__emoji {
13382
13084
  flex-shrink: 0;
@@ -13395,6 +13097,8 @@ button.muka-chat-photo-grid__tile:focus-visible {
13395
13097
  border: var(--border-width-regular) solid var(--card-color-default-border);
13396
13098
  border-radius: var(--radius-lg);
13397
13099
  background-color: var(--card-color-default-background);
13100
+ /* A waveform wider than the space left is clipped, never laid over pause. */
13101
+ overflow: hidden;
13398
13102
  }
13399
13103
 
13400
13104
  /* ─── Staged attachments strip ─────────────────────────── */
@@ -14107,6 +13811,12 @@ button.muka-chat-photo-grid__tile:focus-visible {
14107
13811
  display: block;
14108
13812
  }
14109
13813
 
13814
+ /* A Spinner in the icon slot keeps its own flex centring: as a block its
13815
+ circle sat at the top of the slot (4px high in an lg icon-only button). */
13816
+ .muka-button .muka-button__icon > .muka-spinner {
13817
+ display: flex;
13818
+ }
13819
+
14110
13820
  .muka-button--sm .muka-button__icon {
14111
13821
  width: var(--button-icon-sm);
14112
13822
  height: var(--button-icon-sm);
@@ -15938,320 +15648,641 @@ button.muka-chat-photo-grid__tile:focus-visible {
15938
15648
  outline-offset: 2px;
15939
15649
  }
15940
15650
 
15941
-
15942
- /* Accordion */
15943
- /* Accordion Component Styles */
15944
-
15945
- .muka-accordion {
15946
- width: 100%;
15651
+
15652
+ /* Accordion */
15653
+ /* Accordion Component Styles */
15654
+
15655
+ .muka-accordion {
15656
+ width: 100%;
15657
+ }
15658
+
15659
+ /* Item */
15660
+ .muka-accordion__item {
15661
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
15662
+ }
15663
+
15664
+ .muka-accordion__item:last-child {
15665
+ border-bottom: none;
15666
+ }
15667
+
15668
+ /* Header reset */
15669
+ .muka-accordion__header {
15670
+ margin: 0;
15671
+ }
15672
+
15673
+ /* Trigger */
15674
+ .muka-accordion__trigger {
15675
+ display: flex;
15676
+ align-items: center;
15677
+ justify-content: space-between;
15678
+ width: 100%;
15679
+ padding: var(--spacing-4);
15680
+ background: none;
15681
+ border: none;
15682
+ cursor: pointer;
15683
+ font-family: var(--text-label-md-semibold-fontFamily);
15684
+ font-weight: var(--text-label-md-semibold-fontWeight);
15685
+ font-size: var(--text-label-md-semibold-fontSize);
15686
+ line-height: var(--text-label-md-semibold-lineHeight);
15687
+ color: var(--color-text-default-default);
15688
+ text-align: left;
15689
+ gap: var(--spacing-3);
15690
+ transition: background-color 0.15s ease;
15691
+ }
15692
+
15693
+ .muka-accordion__trigger:hover {
15694
+ background-color: var(--color-surface-level1);
15695
+ }
15696
+
15697
+ .muka-accordion__trigger[data-disabled] {
15698
+ cursor: not-allowed;
15699
+ opacity: 0.4;
15700
+ }
15701
+
15702
+ .muka-accordion__trigger-text {
15703
+ flex: 1;
15704
+ }
15705
+
15706
+ /* Chevron rotation */
15707
+ .muka-accordion__chevron {
15708
+ display: inline-flex;
15709
+ align-items: center;
15710
+ color: var(--color-text-subtle-default);
15711
+ transition: transform 200ms ease;
15712
+ }
15713
+
15714
+ .muka-accordion__trigger[data-state='open'] .muka-accordion__chevron {
15715
+ transform: rotate(180deg);
15716
+ }
15717
+
15718
+ /* Content */
15719
+ .muka-accordion__content {
15720
+ overflow: hidden;
15721
+ }
15722
+
15723
+ .muka-accordion__content[data-state='open'] {
15724
+ animation: muka-accordion-slideDown 200ms ease;
15725
+ }
15726
+
15727
+ .muka-accordion__content[data-state='closed'] {
15728
+ animation: muka-accordion-slideUp 200ms ease;
15729
+ }
15730
+
15731
+ @keyframes muka-accordion-slideDown {
15732
+ from {
15733
+ height: 0;
15734
+ }
15735
+ to {
15736
+ height: var(--radix-accordion-content-height);
15737
+ }
15738
+ }
15739
+
15740
+ @keyframes muka-accordion-slideUp {
15741
+ from {
15742
+ height: var(--radix-accordion-content-height);
15743
+ }
15744
+ to {
15745
+ height: 0;
15746
+ }
15747
+ }
15748
+
15749
+ .muka-accordion__content-inner {
15750
+ padding: 0 var(--spacing-4) var(--spacing-5);
15751
+ color: var(--color-text-default-default);
15752
+ }
15753
+
15754
+ /* ─── Variant: flush ────────────────────────────────────────────────────── */
15755
+
15756
+ .muka-accordion--flush .muka-accordion__trigger {
15757
+ padding-left: 0;
15758
+ padding-right: 0;
15759
+ }
15760
+
15761
+ .muka-accordion--flush .muka-accordion__content-inner {
15762
+ padding-left: 0;
15763
+ padding-right: 0;
15764
+ }
15765
+
15766
+ /* ─── Variant: contained ────────────────────────────────────────────────── */
15767
+
15768
+ .muka-accordion--contained {
15769
+ border: var(--border-width-regular) solid var(--color-border-default);
15770
+ border-radius: var(--radius-md);
15771
+ overflow: hidden;
15772
+ }
15773
+
15774
+ .muka-accordion--contained .muka-accordion__item {
15775
+ background-color: var(--color-surface-level3);
15776
+ }
15777
+
15778
+ .muka-accordion--contained .muka-accordion__item:last-child {
15779
+ border-bottom: none;
15780
+ }
15781
+
15782
+
15783
+ /* Menu */
15784
+ /* Menu Component Styles */
15785
+
15786
+ /* ─── Content Container ──────────────────────────────────────────────────── */
15787
+
15788
+ .muka-menu__content {
15789
+ display: flex;
15790
+ flex-direction: column;
15791
+ min-width: var(--menu-content-min-width);
15792
+ max-height: var(--menu-content-max-height);
15793
+ overflow: hidden;
15794
+ background-color: var(--menu-content-color-background);
15795
+ border: var(--menu-content-border-width) solid var(--menu-content-color-border);
15796
+ border-radius: var(--menu-content-border-radius);
15797
+ box-shadow: var(--menu-content-shadow);
15798
+ padding: 0;
15799
+ z-index: 50;
15800
+
15801
+ /* Animation */
15802
+ animation-duration: 150ms;
15803
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
15804
+ }
15805
+
15806
+ .muka-menu__body {
15807
+ display: flex;
15808
+ flex: 1 1 auto;
15809
+ min-height: 0;
15810
+ align-items: stretch;
15811
+ width: 100%;
15812
+ }
15813
+
15814
+ .muka-menu__viewport {
15815
+ flex: 1 1 auto;
15816
+ min-width: 0;
15817
+ min-height: 0;
15818
+ overflow-y: auto;
15819
+ padding: var(--menu-content-padding);
15820
+ }
15821
+
15822
+ .muka-menu__content--scrollbar .muka-menu__viewport {
15823
+ /* Custom scrollbar owns the chrome; hide native track */
15824
+ scrollbar-width: none;
15825
+ }
15826
+
15827
+ .muka-menu__content--scrollbar .muka-menu__viewport::-webkit-scrollbar {
15828
+ display: none;
15829
+ }
15830
+
15831
+ /* ─── Search header ──────────────────────────────────────────────────────── */
15832
+
15833
+ .muka-menu__search {
15834
+ display: flex;
15835
+ align-items: center;
15836
+ flex-shrink: 0;
15837
+ /* Figma dropdown filter header: 48px, 8px inset, 32px icon slots. */
15838
+ height: var(--input-field-height-lg, 3rem);
15839
+ padding: 0 var(--spacing-2);
15840
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
15841
+ }
15842
+
15843
+ .muka-menu__search--sm {
15844
+ height: calc(var(--size-xl, 1.5rem) + var(--spacing-2) * 2);
15845
+ }
15846
+
15847
+ .muka-menu__search-icon,
15848
+ .muka-menu__search-clear {
15849
+ display: flex;
15850
+ align-items: center;
15851
+ justify-content: center;
15852
+ flex-shrink: 0;
15853
+ width: var(--size-2xl, 2rem);
15854
+ height: var(--size-2xl, 2rem);
15855
+ color: var(--color-text-subtle-default);
15856
+ }
15857
+
15858
+ .muka-menu__search-icon .muka-icon,
15859
+ .muka-menu__search-clear .muka-icon,
15860
+ .muka-menu__search-clear:hover,
15861
+ .muka-menu__search-clear:hover .muka-icon {
15862
+ color: var(--color-text-subtle-default);
15863
+ }
15864
+
15865
+ .muka-menu__search--sm .muka-menu__search-icon,
15866
+ .muka-menu__search--sm .muka-menu__search-clear {
15867
+ width: var(--size-xl, 1.5rem);
15868
+ height: var(--size-xl, 1.5rem);
15869
+ }
15870
+
15871
+ .muka-menu__search-input {
15872
+ flex: 1 1 auto;
15873
+ min-width: 0;
15874
+ border: none;
15875
+ outline: none;
15876
+ background: transparent;
15877
+ padding: 0 var(--spacing-1);
15878
+ font-family: var(--text-input-md-fontFamily);
15879
+ font-size: var(--text-input-md-fontSize);
15880
+ font-weight: var(--text-input-md-fontWeight);
15881
+ line-height: var(--text-input-md-lineHeight);
15882
+ color: var(--color-text-default-default);
15947
15883
  }
15948
15884
 
15949
- /* Item */
15950
- .muka-accordion__item {
15951
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
15885
+ .muka-menu__search--sm .muka-menu__search-input {
15886
+ font-family: var(--text-input-sm-fontFamily);
15887
+ font-size: var(--text-input-sm-fontSize);
15888
+ font-weight: var(--text-input-sm-fontWeight);
15889
+ line-height: var(--text-input-sm-lineHeight);
15952
15890
  }
15953
15891
 
15954
- .muka-accordion__item:last-child {
15955
- border-bottom: none;
15892
+ .muka-menu__search-input::placeholder {
15893
+ color: var(--color-text-subtle-default);
15956
15894
  }
15957
15895
 
15958
- /* Header reset */
15959
- .muka-accordion__header {
15960
- margin: 0;
15896
+ .muka-menu__search-input::-webkit-search-cancel-button,
15897
+ .muka-menu__search-input::-webkit-search-decoration {
15898
+ -webkit-appearance: none;
15899
+ appearance: none;
15961
15900
  }
15962
15901
 
15963
- /* Trigger */
15964
- .muka-accordion__trigger {
15902
+ .muka-menu__empty {
15965
15903
  display: flex;
15966
15904
  align-items: center;
15967
- justify-content: space-between;
15968
- width: 100%;
15969
- padding: var(--spacing-4);
15970
- background: none;
15905
+ min-height: var(--menu-item-height);
15906
+ padding: var(--menu-item-padding-y) var(--menu-item-padding-x);
15907
+ color: var(--color-text-subtle-default);
15908
+ font-family: var(--text-input-md-fontFamily);
15909
+ font-size: var(--text-input-md-fontSize);
15910
+ font-weight: var(--text-input-md-fontWeight);
15911
+ line-height: var(--text-input-md-lineHeight);
15912
+ pointer-events: none;
15913
+ user-select: none;
15914
+ }
15915
+
15916
+ .muka-menu__search-clear {
15917
+ padding: 0;
15971
15918
  border: none;
15919
+ background: transparent;
15972
15920
  cursor: pointer;
15973
- font-family: var(--text-label-md-semibold-fontFamily);
15974
- font-weight: var(--text-label-md-semibold-fontWeight);
15975
- font-size: var(--text-label-md-semibold-fontSize);
15976
- line-height: var(--text-label-md-semibold-lineHeight);
15977
- color: var(--color-text-default-default);
15978
- text-align: left;
15979
- gap: var(--spacing-3);
15980
- transition: background-color 0.15s ease;
15981
15921
  }
15982
15922
 
15983
- .muka-accordion__trigger:hover {
15984
- background-color: var(--color-surface-level1);
15923
+ .muka-menu__match {
15924
+ font-weight: var(--text-label-md-bold-fontWeight);
15985
15925
  }
15986
15926
 
15987
- .muka-accordion__trigger[data-disabled] {
15988
- cursor: not-allowed;
15989
- opacity: 0.4;
15927
+ .muka-menu__content--scrollbar {
15928
+ height: var(--menu-content-scroll-height, 20.625rem);
15929
+ max-height: var(--menu-content-scroll-height, 20.625rem);
15990
15930
  }
15991
15931
 
15992
- .muka-accordion__trigger-text {
15993
- flex: 1;
15932
+ .muka-menu__content[data-state='open'] {
15933
+ animation-name: muka-menu-fade-in;
15994
15934
  }
15995
15935
 
15996
- /* Chevron rotation */
15997
- .muka-accordion__chevron {
15998
- display: inline-flex;
15999
- align-items: center;
16000
- color: var(--color-text-subtle-default);
16001
- transition: transform 200ms ease;
15936
+ .muka-menu__content[data-state='closed'] {
15937
+ animation-name: muka-menu-fade-out;
16002
15938
  }
16003
15939
 
16004
- .muka-accordion__trigger[data-state='open'] .muka-accordion__chevron {
16005
- transform: rotate(180deg);
15940
+ .muka-menu__content[data-side='top'] {
15941
+ animation-name: muka-menu-slide-down;
16006
15942
  }
16007
15943
 
16008
- /* Content */
16009
- .muka-accordion__content {
16010
- overflow: hidden;
15944
+ .muka-menu__content[data-side='bottom'] {
15945
+ animation-name: muka-menu-slide-up;
16011
15946
  }
16012
15947
 
16013
- .muka-accordion__content[data-state='open'] {
16014
- animation: muka-accordion-slideDown 200ms ease;
15948
+ .muka-menu__content[data-side='left'] {
15949
+ animation-name: muka-menu-slide-right;
16015
15950
  }
16016
15951
 
16017
- .muka-accordion__content[data-state='closed'] {
16018
- animation: muka-accordion-slideUp 200ms ease;
15952
+ .muka-menu__content[data-side='right'] {
15953
+ animation-name: muka-menu-slide-left;
16019
15954
  }
16020
15955
 
16021
- @keyframes muka-accordion-slideDown {
16022
- from {
16023
- height: 0;
16024
- }
16025
- to {
16026
- height: var(--radix-accordion-content-height);
16027
- }
16028
- }
15956
+ /* ─── Menu Item ──────────────────────────────────────────────────────────── */
16029
15957
 
16030
- @keyframes muka-accordion-slideUp {
16031
- from {
16032
- height: var(--radix-accordion-content-height);
16033
- }
16034
- to {
16035
- height: 0;
16036
- }
15958
+ .muka-menu__item {
15959
+ position: relative;
15960
+ display: flex;
15961
+ align-items: center;
15962
+ gap: var(--menu-item-gap);
15963
+ min-height: var(--menu-item-height);
15964
+ /* Right gutter always reserved for floating trailers (enter / check). */
15965
+ padding: var(--menu-item-padding-y) var(--menu-item-padding-right) var(--menu-item-padding-y)
15966
+ var(--menu-item-padding-x);
15967
+ border-radius: var(--menu-item-border-radius);
15968
+ cursor: pointer;
15969
+ user-select: none;
15970
+ outline: none;
15971
+ font-family: var(--text-label-md-regular-fontFamily);
15972
+ font-size: var(--text-label-md-regular-fontSize);
15973
+ font-weight: var(--text-label-md-regular-fontWeight);
15974
+ line-height: var(--text-label-md-regular-lineHeight);
15975
+ color: var(--menu-item-color-default-foreground);
15976
+ background-color: var(--menu-item-color-default-background);
15977
+ transition: background-color 100ms ease, color 100ms ease;
15978
+ white-space: nowrap;
16037
15979
  }
16038
15980
 
16039
- .muka-accordion__content-inner {
16040
- padding: 0 var(--spacing-4) var(--spacing-5);
16041
- color: var(--color-text-default-default);
15981
+ .muka-menu__item:hover,
15982
+ .muka-menu__item[data-highlighted] {
15983
+ background-color: var(--menu-item-color-hover-background);
15984
+ color: var(--menu-item-color-hover-foreground);
16042
15985
  }
16043
15986
 
16044
- /* ─── Variant: flush ────────────────────────────────────────────────────── */
16045
-
16046
- .muka-accordion--flush .muka-accordion__trigger {
16047
- padding-left: 0;
16048
- padding-right: 0;
15987
+ .muka-menu__item:focus,
15988
+ .muka-menu__item[data-highlighted]:focus {
15989
+ background-color: var(--menu-item-color-focus-background);
15990
+ color: var(--menu-item-color-focus-foreground);
16049
15991
  }
16050
15992
 
16051
- .muka-accordion--flush .muka-accordion__content-inner {
16052
- padding-left: 0;
16053
- padding-right: 0;
15993
+ /* Disabled */
15994
+ .muka-menu__item--disabled,
15995
+ .muka-menu__item[data-disabled] {
15996
+ color: var(--menu-item-color-disabled-foreground);
15997
+ background-color: var(--menu-item-color-disabled-background);
15998
+ cursor: not-allowed;
15999
+ pointer-events: none;
16054
16000
  }
16055
16001
 
16056
- /* ─── Variant: contained ────────────────────────────────────────────────── */
16002
+ .muka-menu__item--disabled .muka-menu__item-icon,
16003
+ .muka-menu__item[data-disabled] .muka-menu__item-icon {
16004
+ color: var(--menu-item-color-disabled-icon);
16005
+ }
16057
16006
 
16058
- .muka-accordion--contained {
16059
- border: var(--border-width-regular) solid var(--color-border-default);
16060
- border-radius: var(--radius-md);
16061
- overflow: hidden;
16007
+ /* Destructive */
16008
+ .muka-menu__item--destructive {
16009
+ color: var(--menu-item-color-destructive-default-foreground);
16062
16010
  }
16063
16011
 
16064
- .muka-accordion--contained .muka-accordion__item {
16065
- background-color: var(--color-surface-level3);
16012
+ .muka-menu__item--destructive .muka-menu__item-icon {
16013
+ color: var(--menu-item-color-destructive-default-icon);
16066
16014
  }
16067
16015
 
16068
- .muka-accordion--contained .muka-accordion__item:last-child {
16069
- border-bottom: none;
16016
+ .muka-menu__item--destructive:hover,
16017
+ .muka-menu__item--destructive[data-highlighted] {
16018
+ background-color: var(--menu-item-color-destructive-hover-background);
16019
+ color: var(--menu-item-color-destructive-hover-foreground);
16070
16020
  }
16071
16021
 
16022
+ .muka-menu__item--destructive:hover .muka-menu__item-icon,
16023
+ .muka-menu__item--destructive[data-highlighted] .muka-menu__item-icon {
16024
+ color: var(--menu-item-color-destructive-hover-icon);
16025
+ }
16072
16026
 
16073
- /* SwipeActions */
16074
- /* SwipeActions Component Styles */
16027
+ /* ─── Item Parts ─────────────────────────────────────────────────────────── */
16075
16028
 
16076
- .muka-swipe-actions {
16077
- position: relative;
16078
- overflow: hidden;
16079
- touch-action: pan-y;
16080
- -webkit-user-select: none;
16081
- user-select: none;
16082
- background-color: var(--color-surface-level3);
16029
+ .muka-menu__item-icon {
16030
+ display: flex;
16031
+ align-items: center;
16032
+ justify-content: center;
16033
+ flex-shrink: 0;
16034
+ color: var(--menu-item-color-default-icon);
16035
+ transition: color 100ms ease;
16083
16036
  }
16084
16037
 
16085
- .muka-swipe-actions--disabled {
16086
- touch-action: auto;
16038
+ .muka-menu__item:hover .muka-menu__item-icon,
16039
+ .muka-menu__item[data-highlighted] .muka-menu__item-icon {
16040
+ color: var(--menu-item-color-hover-icon);
16087
16041
  }
16088
16042
 
16089
- /* ─── Row that holds the actual content ────────────────── */
16043
+ .muka-menu__item-label {
16044
+ flex: 1 1 auto;
16045
+ min-width: 0;
16046
+ white-space: nowrap;
16047
+ }
16090
16048
 
16091
- .muka-swipe-actions__row {
16092
- position: relative;
16093
- z-index: 1;
16094
- background-color: inherit;
16095
- will-change: transform;
16049
+ /* Shortcut trailers replace icons and sit with an 8px right inset. */
16050
+ .muka-menu__item--has-shortcut {
16051
+ padding-right: var(--spacing-2);
16096
16052
  }
16097
16053
 
16098
- /* ─── Action panels — sit beneath the row ──────────────── */
16054
+ .muka-menu__item-shortcut {
16055
+ flex-shrink: 0;
16056
+ margin-left: auto;
16057
+ padding-left: var(--menu-item-gap);
16058
+ font-family: var(--text-label-sm-regular-fontFamily);
16059
+ font-size: var(--text-label-sm-regular-fontSize);
16060
+ font-weight: var(--text-label-sm-regular-fontWeight);
16061
+ line-height: var(--text-label-sm-regular-lineHeight);
16062
+ color: var(--color-text-muted-default);
16063
+ white-space: nowrap;
16064
+ }
16099
16065
 
16100
- .muka-swipe-actions__panel {
16066
+ .muka-menu__item-hint {
16067
+ /* Figma: trailer sits with 8px margin top / right / bottom; 24px glyph centered inside. */
16101
16068
  position: absolute;
16102
- top: 0;
16103
- bottom: 0;
16104
- display: flex;
16105
- align-items: stretch;
16106
- z-index: 0;
16069
+ top: var(--spacing-2);
16070
+ right: var(--spacing-2);
16071
+ bottom: var(--spacing-2);
16072
+ display: none;
16073
+ align-items: center;
16074
+ justify-content: center;
16075
+ width: var(--icon-size-default, 1.5rem);
16076
+ color: var(--color-text-muted-default);
16077
+ pointer-events: none;
16107
16078
  }
16108
16079
 
16109
- .muka-swipe-actions__panel--left {
16110
- left: 0;
16080
+ .muka-menu__item--hint-enter[data-highlighted] .muka-menu__item-hint {
16081
+ display: flex;
16111
16082
  }
16112
16083
 
16113
- .muka-swipe-actions__panel--right {
16114
- right: 0;
16084
+ .muka-menu__item-chevron {
16085
+ position: absolute;
16086
+ top: var(--spacing-2);
16087
+ right: var(--spacing-2);
16088
+ bottom: var(--spacing-2);
16089
+ display: flex;
16090
+ align-items: center;
16091
+ justify-content: center;
16092
+ width: var(--icon-size-default, 1.5rem);
16093
+ color: var(--menu-shortcut-color);
16115
16094
  }
16116
16095
 
16117
- /* ─── Single action button ─────────────────────────────── */
16096
+ /* ─── Indicator (Checkbox/Radio) ─────────────────────────────────────────── */
16118
16097
 
16119
- .muka-swipe-actions__button {
16098
+ .muka-menu__item-indicator {
16120
16099
  display: flex;
16121
- flex-direction: column;
16122
16100
  align-items: center;
16123
16101
  justify-content: center;
16124
- gap: var(--spacing-1);
16125
- border: none;
16126
- cursor: pointer;
16127
- padding: var(--spacing-2);
16128
- background-color: var(--color-surface-level2);
16129
- color: var(--color-text-default-default);
16130
- font-family: var(--text-label-sm-semibold-fontFamily);
16131
- font-weight: var(--text-label-sm-semibold-fontWeight);
16132
- font-size: var(--text-label-sm-semibold-fontSize);
16133
- line-height: var(--text-label-sm-semibold-lineHeight);
16134
- -webkit-tap-highlight-color: transparent;
16135
- transition: filter 0.12s ease;
16102
+ width: var(--menu-checkbox-indicator-size);
16103
+ height: var(--menu-checkbox-indicator-size);
16104
+ flex-shrink: 0;
16105
+ color: var(--menu-checkbox-indicator-color);
16136
16106
  }
16137
16107
 
16138
- .muka-swipe-actions__button:hover {
16139
- filter: brightness(0.95);
16108
+ .muka-menu__item--checkbox,
16109
+ .muka-menu__item--radio {
16110
+ padding-left: var(--menu-item-padding-x);
16140
16111
  }
16141
16112
 
16142
- .muka-swipe-actions__button:focus-visible {
16143
- outline: 2px solid var(--color-action-default);
16144
- outline-offset: -2px;
16113
+ .muka-menu__item--checkbox-trailing,
16114
+ .muka-menu__item--radio-check {
16115
+ /* Same reserved right gutter as default items — trailing indicator floats. */
16116
+ padding-right: var(--menu-item-padding-right);
16145
16117
  }
16146
16118
 
16147
- .muka-swipe-actions__button-icon {
16148
- display: inline-flex;
16119
+ .muka-menu__item--radio-check[data-state='checked'] {
16120
+ background-color: var(--menu-item-color-selected-background);
16121
+ }
16122
+
16123
+ .muka-menu__item-indicator--trailing {
16124
+ /* Match enter-hint trailer: 8px inset, 24px box (override leading indicator size). */
16125
+ position: absolute;
16126
+ top: var(--spacing-2);
16127
+ right: var(--spacing-2);
16128
+ bottom: var(--spacing-2);
16129
+ display: flex;
16149
16130
  align-items: center;
16150
16131
  justify-content: center;
16132
+ width: var(--icon-size-default, 1.5rem);
16133
+ height: auto;
16134
+ max-height: none;
16135
+ transform: none;
16136
+ color: var(--color-text-subtle-default);
16151
16137
  }
16152
16138
 
16153
- /* ─── Color variants ───────────────────────────────────── */
16154
-
16155
- .muka-swipe-actions__button--neutral {
16156
- background-color: var(--color-surface-level2);
16157
- color: var(--color-text-default-default);
16139
+ .muka-menu__item-indicator--trailing > [data-state] {
16140
+ display: flex;
16141
+ align-items: center;
16142
+ justify-content: center;
16143
+ width: 100%;
16144
+ height: 100%;
16158
16145
  }
16159
16146
 
16160
- .muka-swipe-actions__button--primary {
16161
- background-color: var(--color-action-default);
16162
- color: var(--color-text-default-inverse);
16147
+ .muka-menu__radio-dot {
16148
+ width: 8px;
16149
+ height: 8px;
16150
+ border-radius: 50%;
16151
+ background-color: var(--menu-radio-indicator-color);
16163
16152
  }
16164
16153
 
16165
- .muka-swipe-actions__button--success {
16166
- background-color: var(--color-state-success-default);
16167
- color: var(--color-text-default-inverse);
16154
+ /* ─── Separator ──────────────────────────────────────────────────────────── */
16155
+
16156
+ .muka-menu__separator {
16157
+ height: var(--menu-separator-height);
16158
+ margin: var(--menu-separator-margin-y) 0;
16159
+ background-color: var(--menu-separator-color);
16168
16160
  }
16169
16161
 
16170
- .muka-swipe-actions__button--warning {
16171
- background-color: var(--color-state-warning-default);
16172
- color: var(--color-text-default-default);
16162
+ /* ─── Group ──────────────────────────────────────────────────────────────── */
16163
+
16164
+ .muka-menu__group {
16165
+ /* No additional styles needed - just a container */
16173
16166
  }
16174
16167
 
16175
- .muka-swipe-actions__button--destructive {
16176
- background-color: var(--color-state-error-default);
16177
- color: var(--color-text-default-inverse);
16168
+ .muka-menu__group-label {
16169
+ padding: var(--menu-group-label-padding-y) var(--menu-group-label-padding-x);
16170
+ font-family: var(--text-label-sm-semibold-fontFamily);
16171
+ font-size: var(--text-label-sm-semibold-fontSize);
16172
+ font-weight: var(--text-label-sm-semibold-fontWeight);
16173
+ line-height: var(--text-label-sm-semibold-lineHeight);
16174
+ color: var(--menu-group-label-color);
16175
+ text-transform: uppercase;
16176
+ letter-spacing: 0.05em;
16178
16177
  }
16179
16178
 
16179
+ /* ─── Radio Group ────────────────────────────────────────────────────────── */
16180
16180
 
16181
- /* Spinner */
16182
- /* Spinner Component Styles */
16181
+ .muka-menu__radio-group {
16182
+ /* No additional styles needed - just a container */
16183
+ }
16183
16184
 
16184
- .muka-spinner {
16185
- display: inline-flex;
16186
- align-items: center;
16187
- justify-content: center;
16188
- color: var(--color-text-default-default);
16189
- line-height: 0;
16185
+ /* ─── Context Menu Trigger ───────────────────────────────────────────────── */
16186
+
16187
+ .muka-context-menu__trigger {
16188
+ /* Allow the trigger to be styled by the parent */
16190
16189
  }
16191
16190
 
16192
- .muka-spinner--subtle {
16193
- color: var(--color-text-subtle-default);
16191
+ .muka-context-menu__trigger:focus-visible {
16192
+ outline: var(--contextmenu-trigger-outline-width) solid var(--contextmenu-trigger-outline-color);
16193
+ outline-offset: var(--contextmenu-trigger-outline-offset);
16194
+ border-radius: var(--border-radius-sm);
16194
16195
  }
16195
16196
 
16196
- .muka-spinner--inverse {
16197
- color: var(--color-text-default-inverse);
16197
+ /* ─── Animations ─────────────────────────────────────────────────────────── */
16198
+
16199
+ @keyframes muka-menu-fade-in {
16200
+ from {
16201
+ opacity: 0;
16202
+ }
16203
+ to {
16204
+ opacity: 1;
16205
+ }
16198
16206
  }
16199
16207
 
16200
- .muka-spinner__circle {
16201
- display: inline-block;
16202
- border-radius: 50%;
16203
- border-style: solid;
16204
- border-color: currentColor;
16205
- border-right-color: transparent;
16206
- animation: muka-spinner-rotate 0.7s linear infinite;
16207
- box-sizing: border-box;
16208
+ @keyframes muka-menu-fade-out {
16209
+ from {
16210
+ opacity: 1;
16211
+ }
16212
+ to {
16213
+ opacity: 0;
16214
+ }
16208
16215
  }
16209
16216
 
16210
- /* ─── Sizes ───────────────────────────────────────────── */
16217
+ @keyframes muka-menu-slide-up {
16218
+ from {
16219
+ opacity: 0;
16220
+ transform: translateY(4px);
16221
+ }
16222
+ to {
16223
+ opacity: 1;
16224
+ transform: translateY(0);
16225
+ }
16226
+ }
16211
16227
 
16212
- .muka-spinner--sm .muka-spinner__circle {
16213
- width: 16px;
16214
- height: 16px;
16215
- border-width: 2px;
16228
+ @keyframes muka-menu-slide-down {
16229
+ from {
16230
+ opacity: 0;
16231
+ transform: translateY(-4px);
16232
+ }
16233
+ to {
16234
+ opacity: 1;
16235
+ transform: translateY(0);
16236
+ }
16216
16237
  }
16217
16238
 
16218
- .muka-spinner--md .muka-spinner__circle {
16219
- width: 20px;
16220
- height: 20px;
16221
- border-width: 2px;
16239
+ @keyframes muka-menu-slide-left {
16240
+ from {
16241
+ opacity: 0;
16242
+ transform: translateX(4px);
16243
+ }
16244
+ to {
16245
+ opacity: 1;
16246
+ transform: translateX(0);
16247
+ }
16222
16248
  }
16223
16249
 
16224
- .muka-spinner--lg .muka-spinner__circle {
16225
- width: 24px;
16226
- height: 24px;
16227
- border-width: 3px;
16250
+ @keyframes muka-menu-slide-right {
16251
+ from {
16252
+ opacity: 0;
16253
+ transform: translateX(-4px);
16254
+ }
16255
+ to {
16256
+ opacity: 1;
16257
+ transform: translateX(0);
16258
+ }
16228
16259
  }
16229
16260
 
16230
- /* ─── Visually-hidden label ───────────────────────────── */
16231
16261
 
16232
- .muka-spinner__sr-label {
16233
- position: absolute;
16234
- width: 1px;
16235
- height: 1px;
16236
- padding: 0;
16237
- margin: -1px;
16262
+ /* NavigationTransition */
16263
+ /* NavigationTransition Component Styles */
16264
+
16265
+ /* ─── Wrapper ────────────────────────────────────────── */
16266
+
16267
+ .muka-nav-transition {
16268
+ position: relative;
16269
+ height: 100vh;
16238
16270
  overflow: hidden;
16239
- clip: rect(0, 0, 0, 0);
16240
- white-space: nowrap;
16241
- border: 0;
16242
16271
  }
16243
16272
 
16244
- /* ─── Reduced motion ──────────────────────────────────── */
16245
-
16246
- @keyframes muka-spinner-rotate {
16247
- to {
16248
- transform: rotate(360deg);
16249
- }
16273
+ /* Disable interaction during animation */
16274
+ .muka-nav-transition--active {
16275
+ pointer-events: none;
16250
16276
  }
16251
16277
 
16252
- @media (prefers-reduced-motion: reduce) {
16253
- .muka-spinner__circle {
16254
- animation-duration: 2.5s;
16255
- }
16278
+ /* ─── View slots ─────────────────────────────────────── */
16279
+
16280
+ .muka-nav-transition--active .muka-nav-transition__view {
16281
+ position: absolute;
16282
+ inset: 0;
16256
16283
  }
16257
16284
 
16285
+ /* Z-index layering */
16286
+ .muka-nav-transition__view--bottom { z-index: 1; }
16287
+ .muka-nav-transition__view--top { z-index: 2; }
16288
+