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