@revikornmann/muka-ui 0.31.0 → 0.32.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.
@@ -4618,114 +4618,6 @@ body {
4618
4618
  }
4619
4619
 
4620
4620
 
4621
- /* SwipeActions */
4622
- /* SwipeActions Component Styles */
4623
-
4624
- .muka-swipe-actions {
4625
- position: relative;
4626
- overflow: hidden;
4627
- touch-action: pan-y;
4628
- -webkit-user-select: none;
4629
- user-select: none;
4630
- background-color: var(--color-surface-level3);
4631
- }
4632
-
4633
- .muka-swipe-actions--disabled {
4634
- touch-action: auto;
4635
- }
4636
-
4637
- /* ─── Row that holds the actual content ────────────────── */
4638
-
4639
- .muka-swipe-actions__row {
4640
- position: relative;
4641
- z-index: 1;
4642
- background-color: inherit;
4643
- will-change: transform;
4644
- }
4645
-
4646
- /* ─── Action panels — sit beneath the row ──────────────── */
4647
-
4648
- .muka-swipe-actions__panel {
4649
- position: absolute;
4650
- top: 0;
4651
- bottom: 0;
4652
- display: flex;
4653
- align-items: stretch;
4654
- z-index: 0;
4655
- }
4656
-
4657
- .muka-swipe-actions__panel--left {
4658
- left: 0;
4659
- }
4660
-
4661
- .muka-swipe-actions__panel--right {
4662
- right: 0;
4663
- }
4664
-
4665
- /* ─── Single action button ─────────────────────────────── */
4666
-
4667
- .muka-swipe-actions__button {
4668
- display: flex;
4669
- flex-direction: column;
4670
- align-items: center;
4671
- justify-content: center;
4672
- gap: var(--spacing-1);
4673
- border: none;
4674
- cursor: pointer;
4675
- padding: var(--spacing-2);
4676
- background-color: var(--color-surface-level2);
4677
- color: var(--color-text-default-default);
4678
- font-family: var(--text-label-sm-semibold-fontFamily);
4679
- font-weight: var(--text-label-sm-semibold-fontWeight);
4680
- font-size: var(--text-label-sm-semibold-fontSize);
4681
- line-height: var(--text-label-sm-semibold-lineHeight);
4682
- -webkit-tap-highlight-color: transparent;
4683
- transition: filter 0.12s ease;
4684
- }
4685
-
4686
- .muka-swipe-actions__button:hover {
4687
- filter: brightness(0.95);
4688
- }
4689
-
4690
- .muka-swipe-actions__button:focus-visible {
4691
- outline: 2px solid var(--color-action-default);
4692
- outline-offset: -2px;
4693
- }
4694
-
4695
- .muka-swipe-actions__button-icon {
4696
- display: inline-flex;
4697
- align-items: center;
4698
- justify-content: center;
4699
- }
4700
-
4701
- /* ─── Color variants ───────────────────────────────────── */
4702
-
4703
- .muka-swipe-actions__button--neutral {
4704
- background-color: var(--color-surface-level2);
4705
- color: var(--color-text-default-default);
4706
- }
4707
-
4708
- .muka-swipe-actions__button--primary {
4709
- background-color: var(--color-action-default);
4710
- color: var(--color-text-default-inverse);
4711
- }
4712
-
4713
- .muka-swipe-actions__button--success {
4714
- background-color: var(--color-state-success-default);
4715
- color: var(--color-text-default-inverse);
4716
- }
4717
-
4718
- .muka-swipe-actions__button--warning {
4719
- background-color: var(--color-state-warning-default);
4720
- color: var(--color-text-default-default);
4721
- }
4722
-
4723
- .muka-swipe-actions__button--destructive {
4724
- background-color: var(--color-state-error-default);
4725
- color: var(--color-text-default-inverse);
4726
- }
4727
-
4728
-
4729
4621
  /* SpecList */
4730
4622
  /* SpecList Component Styles */
4731
4623
 
@@ -4961,84 +4853,6 @@ body {
4961
4853
  }
4962
4854
 
4963
4855
 
4964
- /* Spinner */
4965
- /* Spinner Component Styles */
4966
-
4967
- .muka-spinner {
4968
- display: inline-flex;
4969
- align-items: center;
4970
- justify-content: center;
4971
- color: var(--color-text-default-default);
4972
- line-height: 0;
4973
- }
4974
-
4975
- .muka-spinner--subtle {
4976
- color: var(--color-text-subtle-default);
4977
- }
4978
-
4979
- .muka-spinner--inverse {
4980
- color: var(--color-text-default-inverse);
4981
- }
4982
-
4983
- .muka-spinner__circle {
4984
- display: inline-block;
4985
- border-radius: 50%;
4986
- border-style: solid;
4987
- border-color: currentColor;
4988
- border-right-color: transparent;
4989
- animation: muka-spinner-rotate 0.7s linear infinite;
4990
- box-sizing: border-box;
4991
- }
4992
-
4993
- /* ─── Sizes ───────────────────────────────────────────── */
4994
-
4995
- .muka-spinner--sm .muka-spinner__circle {
4996
- width: 16px;
4997
- height: 16px;
4998
- border-width: 2px;
4999
- }
5000
-
5001
- .muka-spinner--md .muka-spinner__circle {
5002
- width: 20px;
5003
- height: 20px;
5004
- border-width: 2px;
5005
- }
5006
-
5007
- .muka-spinner--lg .muka-spinner__circle {
5008
- width: 24px;
5009
- height: 24px;
5010
- border-width: 3px;
5011
- }
5012
-
5013
- /* ─── Visually-hidden label ───────────────────────────── */
5014
-
5015
- .muka-spinner__sr-label {
5016
- position: absolute;
5017
- width: 1px;
5018
- height: 1px;
5019
- padding: 0;
5020
- margin: -1px;
5021
- overflow: hidden;
5022
- clip: rect(0, 0, 0, 0);
5023
- white-space: nowrap;
5024
- border: 0;
5025
- }
5026
-
5027
- /* ─── Reduced motion ──────────────────────────────────── */
5028
-
5029
- @keyframes muka-spinner-rotate {
5030
- to {
5031
- transform: rotate(360deg);
5032
- }
5033
- }
5034
-
5035
- @media (prefers-reduced-motion: reduce) {
5036
- .muka-spinner__circle {
5037
- animation-duration: 2.5s;
5038
- }
5039
- }
5040
-
5041
-
5042
4856
  /* SmsOtpField */
5043
4857
  /* SmsOtpField Component Styles - Using Muka Design Tokens */
5044
4858
 
@@ -6699,6 +6513,22 @@ body {
6699
6513
  padding-bottom: var(--spacing-7);
6700
6514
  }
6701
6515
 
6516
+ /* Scrollable: the root scrolls sideways when the steps don't fit. The inline
6517
+ padding leaves room for the first and last labels, which hang past their
6518
+ indicators; the scrollbar stays hidden (touch and trackpad still scroll). */
6519
+ .muka-progress-tracker--scrollable {
6520
+ overflow-x: auto;
6521
+ overflow-y: hidden;
6522
+ -webkit-overflow-scrolling: touch;
6523
+ scrollbar-width: none;
6524
+ padding-inline: var(--spacing-12);
6525
+ box-sizing: border-box;
6526
+ }
6527
+
6528
+ .muka-progress-tracker--scrollable::-webkit-scrollbar {
6529
+ display: none;
6530
+ }
6531
+
6702
6532
  /* ─── Track (layered container) ─────────────────────────── */
6703
6533
  .muka-progress-tracker--horizontal .muka-progress-tracker__track {
6704
6534
  position: relative;
@@ -16206,3 +16036,189 @@ button.muka-chat-photo-grid__tile:focus-visible {
16206
16036
  border-bottom: none;
16207
16037
  }
16208
16038
 
16039
+
16040
+ /* SwipeActions */
16041
+ /* SwipeActions Component Styles */
16042
+
16043
+ .muka-swipe-actions {
16044
+ position: relative;
16045
+ overflow: hidden;
16046
+ touch-action: pan-y;
16047
+ -webkit-user-select: none;
16048
+ user-select: none;
16049
+ background-color: var(--color-surface-level3);
16050
+ }
16051
+
16052
+ .muka-swipe-actions--disabled {
16053
+ touch-action: auto;
16054
+ }
16055
+
16056
+ /* ─── Row that holds the actual content ────────────────── */
16057
+
16058
+ .muka-swipe-actions__row {
16059
+ position: relative;
16060
+ z-index: 1;
16061
+ background-color: inherit;
16062
+ will-change: transform;
16063
+ }
16064
+
16065
+ /* ─── Action panels — sit beneath the row ──────────────── */
16066
+
16067
+ .muka-swipe-actions__panel {
16068
+ position: absolute;
16069
+ top: 0;
16070
+ bottom: 0;
16071
+ display: flex;
16072
+ align-items: stretch;
16073
+ z-index: 0;
16074
+ }
16075
+
16076
+ .muka-swipe-actions__panel--left {
16077
+ left: 0;
16078
+ }
16079
+
16080
+ .muka-swipe-actions__panel--right {
16081
+ right: 0;
16082
+ }
16083
+
16084
+ /* ─── Single action button ─────────────────────────────── */
16085
+
16086
+ .muka-swipe-actions__button {
16087
+ display: flex;
16088
+ flex-direction: column;
16089
+ align-items: center;
16090
+ justify-content: center;
16091
+ gap: var(--spacing-1);
16092
+ border: none;
16093
+ cursor: pointer;
16094
+ padding: var(--spacing-2);
16095
+ background-color: var(--color-surface-level2);
16096
+ color: var(--color-text-default-default);
16097
+ font-family: var(--text-label-sm-semibold-fontFamily);
16098
+ font-weight: var(--text-label-sm-semibold-fontWeight);
16099
+ font-size: var(--text-label-sm-semibold-fontSize);
16100
+ line-height: var(--text-label-sm-semibold-lineHeight);
16101
+ -webkit-tap-highlight-color: transparent;
16102
+ transition: filter 0.12s ease;
16103
+ }
16104
+
16105
+ .muka-swipe-actions__button:hover {
16106
+ filter: brightness(0.95);
16107
+ }
16108
+
16109
+ .muka-swipe-actions__button:focus-visible {
16110
+ outline: 2px solid var(--color-action-default);
16111
+ outline-offset: -2px;
16112
+ }
16113
+
16114
+ .muka-swipe-actions__button-icon {
16115
+ display: inline-flex;
16116
+ align-items: center;
16117
+ justify-content: center;
16118
+ }
16119
+
16120
+ /* ─── Color variants ───────────────────────────────────── */
16121
+
16122
+ .muka-swipe-actions__button--neutral {
16123
+ background-color: var(--color-surface-level2);
16124
+ color: var(--color-text-default-default);
16125
+ }
16126
+
16127
+ .muka-swipe-actions__button--primary {
16128
+ background-color: var(--color-action-default);
16129
+ color: var(--color-text-default-inverse);
16130
+ }
16131
+
16132
+ .muka-swipe-actions__button--success {
16133
+ background-color: var(--color-state-success-default);
16134
+ color: var(--color-text-default-inverse);
16135
+ }
16136
+
16137
+ .muka-swipe-actions__button--warning {
16138
+ background-color: var(--color-state-warning-default);
16139
+ color: var(--color-text-default-default);
16140
+ }
16141
+
16142
+ .muka-swipe-actions__button--destructive {
16143
+ background-color: var(--color-state-error-default);
16144
+ color: var(--color-text-default-inverse);
16145
+ }
16146
+
16147
+
16148
+ /* Spinner */
16149
+ /* Spinner Component Styles */
16150
+
16151
+ .muka-spinner {
16152
+ display: inline-flex;
16153
+ align-items: center;
16154
+ justify-content: center;
16155
+ color: var(--color-text-default-default);
16156
+ line-height: 0;
16157
+ }
16158
+
16159
+ .muka-spinner--subtle {
16160
+ color: var(--color-text-subtle-default);
16161
+ }
16162
+
16163
+ .muka-spinner--inverse {
16164
+ color: var(--color-text-default-inverse);
16165
+ }
16166
+
16167
+ .muka-spinner__circle {
16168
+ display: inline-block;
16169
+ border-radius: 50%;
16170
+ border-style: solid;
16171
+ border-color: currentColor;
16172
+ border-right-color: transparent;
16173
+ animation: muka-spinner-rotate 0.7s linear infinite;
16174
+ box-sizing: border-box;
16175
+ }
16176
+
16177
+ /* ─── Sizes ───────────────────────────────────────────── */
16178
+
16179
+ .muka-spinner--sm .muka-spinner__circle {
16180
+ width: 16px;
16181
+ height: 16px;
16182
+ border-width: 2px;
16183
+ }
16184
+
16185
+ .muka-spinner--md .muka-spinner__circle {
16186
+ width: 20px;
16187
+ height: 20px;
16188
+ border-width: 2px;
16189
+ }
16190
+
16191
+ .muka-spinner--lg .muka-spinner__circle {
16192
+ width: 24px;
16193
+ height: 24px;
16194
+ border-width: 3px;
16195
+ }
16196
+
16197
+ /* ─── Visually-hidden label ───────────────────────────── */
16198
+
16199
+ .muka-spinner__sr-label {
16200
+ position: absolute;
16201
+ width: 1px;
16202
+ height: 1px;
16203
+ padding: 0;
16204
+ margin: -1px;
16205
+ overflow: hidden;
16206
+ clip: rect(0, 0, 0, 0);
16207
+ white-space: nowrap;
16208
+ border: 0;
16209
+ }
16210
+
16211
+ /* ─── Reduced motion ──────────────────────────────────── */
16212
+
16213
+ @keyframes muka-spinner-rotate {
16214
+ to {
16215
+ transform: rotate(360deg);
16216
+ }
16217
+ }
16218
+
16219
+ @media (prefers-reduced-motion: reduce) {
16220
+ .muka-spinner__circle {
16221
+ animation-duration: 2.5s;
16222
+ }
16223
+ }
16224
+