@revikornmann/muka-ui 0.35.1 → 0.36.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.
@@ -2188,6 +2188,8 @@ body {
2188
2188
  --table-cell-padding-y-md: 0.75rem;
2189
2189
  --table-cell-padding-y-lg: 1rem;
2190
2190
  --table-row-selected-background: #0d2847;
2191
+ --table-row-tone-warning-background: #1d180f;
2192
+ --table-row-tone-warning-border: #3f2700;
2191
2193
  --table-pagination-padding: 0.75rem;
2192
2194
  --table-pagination-gap: 1rem;
2193
2195
  --table-pagination-background: #313131;
@@ -4352,6 +4354,18 @@ body {
4352
4354
  background-color: var(--color-surface-hover);
4353
4355
  }
4354
4356
 
4357
+ /* Tone (MUK-102): a light warning tint. Hover lays its overlay on the tint
4358
+ instead of replacing it. */
4359
+ .muka-table__body .muka-table__row--warning {
4360
+ background-color: var(--table-row-tone-warning-background);
4361
+ border-bottom-color: var(--table-row-tone-warning-border);
4362
+ }
4363
+
4364
+ .muka-table__body .muka-table__row--warning:hover {
4365
+ background-color: var(--table-row-tone-warning-background);
4366
+ background-image: linear-gradient(var(--color-surface-hover), var(--color-surface-hover));
4367
+ }
4368
+
4355
4369
  .muka-table__body .muka-table__row--selected {
4356
4370
  background-color: var(--table-row-selected-background, var(--color-action-default));
4357
4371
  }
@@ -4542,6 +4556,18 @@ body {
4542
4556
  background-color: var(--color-surface-hover);
4543
4557
  }
4544
4558
 
4559
+ /* Tone (MUK-102): a light warning tint. Hover lays its overlay on the tint
4560
+ instead of replacing it. */
4561
+ .muka-table__body .muka-table__row--warning {
4562
+ background-color: var(--table-row-tone-warning-background);
4563
+ border-bottom-color: var(--table-row-tone-warning-border);
4564
+ }
4565
+
4566
+ .muka-table__body .muka-table__row--warning:hover {
4567
+ background-color: var(--table-row-tone-warning-background);
4568
+ background-image: linear-gradient(var(--color-surface-hover), var(--color-surface-hover));
4569
+ }
4570
+
4545
4571
  .muka-table__body .muka-table__row--selected {
4546
4572
  background-color: var(--table-row-selected-background, var(--color-action-default));
4547
4573
  }
@@ -4757,6 +4783,84 @@ body {
4757
4783
  }
4758
4784
 
4759
4785
 
4786
+ /* Spinner */
4787
+ /* Spinner Component Styles */
4788
+
4789
+ .muka-spinner {
4790
+ display: inline-flex;
4791
+ align-items: center;
4792
+ justify-content: center;
4793
+ color: var(--color-text-default-default);
4794
+ line-height: 0;
4795
+ }
4796
+
4797
+ .muka-spinner--subtle {
4798
+ color: var(--color-text-subtle-default);
4799
+ }
4800
+
4801
+ .muka-spinner--inverse {
4802
+ color: var(--color-text-default-inverse);
4803
+ }
4804
+
4805
+ .muka-spinner__circle {
4806
+ display: inline-block;
4807
+ border-radius: 50%;
4808
+ border-style: solid;
4809
+ border-color: currentColor;
4810
+ border-right-color: transparent;
4811
+ animation: muka-spinner-rotate 0.7s linear infinite;
4812
+ box-sizing: border-box;
4813
+ }
4814
+
4815
+ /* ─── Sizes ───────────────────────────────────────────── */
4816
+
4817
+ .muka-spinner--sm .muka-spinner__circle {
4818
+ width: 16px;
4819
+ height: 16px;
4820
+ border-width: 2px;
4821
+ }
4822
+
4823
+ .muka-spinner--md .muka-spinner__circle {
4824
+ width: 20px;
4825
+ height: 20px;
4826
+ border-width: 2px;
4827
+ }
4828
+
4829
+ .muka-spinner--lg .muka-spinner__circle {
4830
+ width: 24px;
4831
+ height: 24px;
4832
+ border-width: 3px;
4833
+ }
4834
+
4835
+ /* ─── Visually-hidden label ───────────────────────────── */
4836
+
4837
+ .muka-spinner__sr-label {
4838
+ position: absolute;
4839
+ width: 1px;
4840
+ height: 1px;
4841
+ padding: 0;
4842
+ margin: -1px;
4843
+ overflow: hidden;
4844
+ clip: rect(0, 0, 0, 0);
4845
+ white-space: nowrap;
4846
+ border: 0;
4847
+ }
4848
+
4849
+ /* ─── Reduced motion ──────────────────────────────────── */
4850
+
4851
+ @keyframes muka-spinner-rotate {
4852
+ to {
4853
+ transform: rotate(360deg);
4854
+ }
4855
+ }
4856
+
4857
+ @media (prefers-reduced-motion: reduce) {
4858
+ .muka-spinner__circle {
4859
+ animation-duration: 2.5s;
4860
+ }
4861
+ }
4862
+
4863
+
4760
4864
  /* SpecList */
4761
4865
  /* SpecList Component Styles */
4762
4866
 
@@ -4842,84 +4946,6 @@ body {
4842
4946
  }
4843
4947
 
4844
4948
 
4845
- /* Spinner */
4846
- /* Spinner Component Styles */
4847
-
4848
- .muka-spinner {
4849
- display: inline-flex;
4850
- align-items: center;
4851
- justify-content: center;
4852
- color: var(--color-text-default-default);
4853
- line-height: 0;
4854
- }
4855
-
4856
- .muka-spinner--subtle {
4857
- color: var(--color-text-subtle-default);
4858
- }
4859
-
4860
- .muka-spinner--inverse {
4861
- color: var(--color-text-default-inverse);
4862
- }
4863
-
4864
- .muka-spinner__circle {
4865
- display: inline-block;
4866
- border-radius: 50%;
4867
- border-style: solid;
4868
- border-color: currentColor;
4869
- border-right-color: transparent;
4870
- animation: muka-spinner-rotate 0.7s linear infinite;
4871
- box-sizing: border-box;
4872
- }
4873
-
4874
- /* ─── Sizes ───────────────────────────────────────────── */
4875
-
4876
- .muka-spinner--sm .muka-spinner__circle {
4877
- width: 16px;
4878
- height: 16px;
4879
- border-width: 2px;
4880
- }
4881
-
4882
- .muka-spinner--md .muka-spinner__circle {
4883
- width: 20px;
4884
- height: 20px;
4885
- border-width: 2px;
4886
- }
4887
-
4888
- .muka-spinner--lg .muka-spinner__circle {
4889
- width: 24px;
4890
- height: 24px;
4891
- border-width: 3px;
4892
- }
4893
-
4894
- /* ─── Visually-hidden label ───────────────────────────── */
4895
-
4896
- .muka-spinner__sr-label {
4897
- position: absolute;
4898
- width: 1px;
4899
- height: 1px;
4900
- padding: 0;
4901
- margin: -1px;
4902
- overflow: hidden;
4903
- clip: rect(0, 0, 0, 0);
4904
- white-space: nowrap;
4905
- border: 0;
4906
- }
4907
-
4908
- /* ─── Reduced motion ──────────────────────────────────── */
4909
-
4910
- @keyframes muka-spinner-rotate {
4911
- to {
4912
- transform: rotate(360deg);
4913
- }
4914
- }
4915
-
4916
- @media (prefers-reduced-motion: reduce) {
4917
- .muka-spinner__circle {
4918
- animation-duration: 2.5s;
4919
- }
4920
- }
4921
-
4922
-
4923
4949
  /* SocialSignInButton */
4924
4950
  /*
4925
4951
  * SocialSignInButton lockup colors are provider-mandated (Apple HIG /
@@ -5611,29 +5637,6 @@ body {
5611
5637
  }
5612
5638
 
5613
5639
 
5614
- /* Section */
5615
- /* Section Component - Layout tokens (section.padding) */
5616
-
5617
- .muka-section {
5618
- box-sizing: border-box;
5619
- }
5620
-
5621
- .muka-section--padding-compact {
5622
- padding-block: var(--section-padding-vertical-compact);
5623
- padding-inline: var(--section-padding-horizontal-compact);
5624
- }
5625
-
5626
- .muka-section--padding-default {
5627
- padding-block: var(--section-padding-vertical-default);
5628
- padding-inline: var(--section-padding-horizontal-default);
5629
- }
5630
-
5631
- .muka-section--padding-spacious {
5632
- padding-block: var(--section-padding-vertical-spacious);
5633
- padding-inline: var(--section-padding-horizontal-spacious);
5634
- }
5635
-
5636
-
5637
5640
  /* SegmentGroup */
5638
5641
  /* SegmentGroup Component Styles - Using Muka Design Tokens */
5639
5642
 
@@ -5822,6 +5825,29 @@ body {
5822
5825
  }
5823
5826
 
5824
5827
 
5828
+ /* Section */
5829
+ /* Section Component - Layout tokens (section.padding) */
5830
+
5831
+ .muka-section {
5832
+ box-sizing: border-box;
5833
+ }
5834
+
5835
+ .muka-section--padding-compact {
5836
+ padding-block: var(--section-padding-vertical-compact);
5837
+ padding-inline: var(--section-padding-horizontal-compact);
5838
+ }
5839
+
5840
+ .muka-section--padding-default {
5841
+ padding-block: var(--section-padding-vertical-default);
5842
+ padding-inline: var(--section-padding-horizontal-default);
5843
+ }
5844
+
5845
+ .muka-section--padding-spacious {
5846
+ padding-block: var(--section-padding-vertical-spacious);
5847
+ padding-inline: var(--section-padding-horizontal-spacious);
5848
+ }
5849
+
5850
+
5825
5851
  /* SearchInput */
5826
5852
  /* SearchInput Component Styles */
5827
5853
 
@@ -6168,42 +6194,258 @@ body {
6168
6194
  }
6169
6195
 
6170
6196
 
6171
- /* RadioTile */
6172
- /* RadioTile Component Styles - Using Muka Design Tokens */
6197
+ /* RangeSlider */
6198
+ /* RangeSlider Component Styles - Using Muka Design Tokens */
6173
6199
 
6174
- /* Base tile styles - horizontal */
6175
- .muka-radio-tile {
6200
+ .muka-range-slider {
6176
6201
  display: flex;
6177
- align-items: center;
6178
- gap: var(--spacing-4);
6179
- padding: var(--spacing-4);
6180
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6181
- border-radius: var(--input-field-radius-lg);
6182
- background-color: var(--color-surface-level3);
6183
- cursor: pointer;
6184
- transition: border-color 0.15s ease, border-width 0.15s ease;
6185
- overflow: hidden;
6186
- box-sizing: border-box;
6202
+ flex-direction: column;
6203
+ gap: var(--spacing-1);
6204
+ width: 100%;
6187
6205
  }
6188
6206
 
6189
- .muka-radio-tile--disabled {
6190
- cursor: not-allowed;
6191
- opacity: 0.6;
6192
- }
6207
+ /* ========================================
6208
+ HEADER: label group (label + info + optional) and value readout
6209
+ ======================================== */
6193
6210
 
6194
- /* Selected state */
6195
- .muka-radio-tile[data-checked] {
6196
- border-width: var(--border-width-bold);
6197
- border-color: var(--color-action-default);
6211
+ .muka-range-slider__header {
6212
+ display: flex;
6213
+ align-items: center;
6214
+ justify-content: space-between;
6215
+ gap: var(--spacing-2);
6216
+ min-height: 24px;
6198
6217
  }
6199
6218
 
6200
- /* Vertical layout */
6201
- .muka-radio-tile--vertical {
6202
- flex-direction: column;
6219
+ .muka-range-slider__label-group {
6220
+ display: inline-flex;
6203
6221
  align-items: center;
6204
6222
  gap: var(--spacing-2);
6205
- position: relative;
6206
- width: 160px;
6223
+ }
6224
+
6225
+ .muka-range-slider__label {
6226
+ font-family: var(--text-label-md-semibold-fontFamily);
6227
+ font-weight: var(--text-label-md-semibold-fontWeight);
6228
+ font-size: var(--text-label-md-semibold-fontSize);
6229
+ line-height: var(--text-label-md-semibold-lineHeight);
6230
+ color: var(--color-text-default-default);
6231
+ }
6232
+
6233
+ .muka-range-slider__info {
6234
+ color: var(--color-text-subtle-default);
6235
+ }
6236
+
6237
+ .muka-range-slider__optional {
6238
+ font-family: var(--text-label-sm-regular-fontFamily);
6239
+ font-weight: var(--text-label-sm-regular-fontWeight);
6240
+ font-size: var(--text-label-sm-regular-fontSize);
6241
+ line-height: var(--text-label-sm-regular-lineHeight);
6242
+ color: var(--color-text-subtle-default);
6243
+ }
6244
+
6245
+ .muka-range-slider__value {
6246
+ font-family: var(--text-label-md-regular-fontFamily);
6247
+ font-weight: var(--text-label-md-regular-fontWeight);
6248
+ font-size: var(--text-label-md-regular-fontSize);
6249
+ line-height: var(--text-label-md-regular-lineHeight);
6250
+ color: var(--color-text-default-default);
6251
+ font-variant-numeric: tabular-nums;
6252
+ }
6253
+
6254
+ .muka-range-slider__helper {
6255
+ margin: 0;
6256
+ font-family: var(--text-body-sm-regular-fontFamily);
6257
+ font-weight: var(--text-body-sm-regular-fontWeight);
6258
+ font-size: var(--text-body-sm-regular-fontSize);
6259
+ line-height: var(--text-body-sm-regular-lineHeight);
6260
+ color: var(--color-text-subtle-default);
6261
+ }
6262
+
6263
+ /* ========================================
6264
+ TRACK + THUMB
6265
+ Native range input, restyled. A thick sunken track holds an accent fill up to
6266
+ the current value, with a circular grip handle. The filled portion is driven
6267
+ by the inline --muka-range-fill custom property (set from the component value).
6268
+ ======================================== */
6269
+
6270
+ /* Size variants: track height, thumb diameter and grip geometry */
6271
+ .muka-range-slider--sm {
6272
+ --muka-range-track-h: 12px;
6273
+ --muka-range-thumb: 24px;
6274
+ --muka-range-grip-h: 9px;
6275
+ }
6276
+ .muka-range-slider--md {
6277
+ --muka-range-track-h: 16px;
6278
+ --muka-range-thumb: 32px;
6279
+ --muka-range-grip-h: 12px;
6280
+ }
6281
+ .muka-range-slider--lg {
6282
+ --muka-range-track-h: 20px;
6283
+ --muka-range-thumb: 40px;
6284
+ --muka-range-grip-h: 15px;
6285
+ }
6286
+
6287
+ .muka-range-slider__bar {
6288
+ /* Reserve the full thumb height so the handle never clips the layout. */
6289
+ display: flex;
6290
+ align-items: center;
6291
+ height: var(--muka-range-thumb);
6292
+ }
6293
+
6294
+ .muka-range-slider__input {
6295
+ -webkit-appearance: none;
6296
+ appearance: none;
6297
+ width: 100%;
6298
+ height: var(--muka-range-thumb);
6299
+ margin: 0;
6300
+ background: transparent;
6301
+ cursor: pointer;
6302
+
6303
+ /* Grip handle fill + two vertical grip bars, all theme-aware. */
6304
+ --muka-range-grip-color: var(--color-text-subtle-default);
6305
+ --muka-range-grip-w: 2px;
6306
+ --muka-range-grip-gap: 3px;
6307
+
6308
+ /* The track fill: action colour up to the value, sunken surface beyond it. */
6309
+ --muka-range-track-fill: linear-gradient(
6310
+ to right,
6311
+ var(--color-action-default) 0,
6312
+ var(--color-action-default) var(--muka-range-fill, 0%),
6313
+ var(--color-surface-sunken) var(--muka-range-fill, 0%),
6314
+ var(--color-surface-sunken) 100%
6315
+ );
6316
+ }
6317
+
6318
+ .muka-range-slider__input:focus {
6319
+ outline: none;
6320
+ }
6321
+
6322
+ /* WebKit / Blink track */
6323
+ .muka-range-slider__input::-webkit-slider-runnable-track {
6324
+ height: var(--muka-range-track-h);
6325
+ border-radius: var(--border-radius-full);
6326
+ background-image: var(--muka-range-track-fill);
6327
+ border: 1px solid var(--color-border-contrast);
6328
+ box-shadow: var(--shadow-sunken);
6329
+ }
6330
+
6331
+ /* Firefox track + progress */
6332
+ .muka-range-slider__input::-moz-range-track {
6333
+ height: var(--muka-range-track-h);
6334
+ border-radius: var(--border-radius-full);
6335
+ background: var(--color-surface-sunken);
6336
+ border: 1px solid var(--color-border-contrast);
6337
+ box-shadow: var(--shadow-sunken);
6338
+ }
6339
+ .muka-range-slider__input::-moz-range-progress {
6340
+ height: var(--muka-range-track-h);
6341
+ border-radius: var(--border-radius-full);
6342
+ background: var(--color-action-default);
6343
+ }
6344
+
6345
+ /* WebKit / Blink thumb (vertically centred over the track) */
6346
+ .muka-range-slider__input::-webkit-slider-thumb {
6347
+ -webkit-appearance: none;
6348
+ appearance: none;
6349
+ width: var(--muka-range-thumb);
6350
+ height: var(--muka-range-thumb);
6351
+ margin-top: calc((var(--muka-range-track-h) - var(--muka-range-thumb)) / 2);
6352
+ border-radius: var(--border-radius-full);
6353
+ border: 1px solid var(--color-border-contrast);
6354
+ box-shadow: var(--shadow-level2);
6355
+ background-color: var(--color-surface-level1);
6356
+ background-image:
6357
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6358
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6359
+ background-repeat: no-repeat;
6360
+ background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6361
+ background-position:
6362
+ calc(50% - var(--muka-range-grip-gap)) center,
6363
+ calc(50% + var(--muka-range-grip-gap)) center;
6364
+ transition: box-shadow 0.15s ease, background-color 0.15s ease;
6365
+ }
6366
+
6367
+ /* Firefox thumb */
6368
+ .muka-range-slider__input::-moz-range-thumb {
6369
+ width: var(--muka-range-thumb);
6370
+ height: var(--muka-range-thumb);
6371
+ border-radius: var(--border-radius-full);
6372
+ border: 1px solid var(--color-border-contrast);
6373
+ box-shadow: var(--shadow-level2);
6374
+ background-color: var(--color-surface-level1);
6375
+ background-image:
6376
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6377
+ linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6378
+ background-repeat: no-repeat;
6379
+ background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6380
+ background-position:
6381
+ calc(50% - var(--muka-range-grip-gap)) center,
6382
+ calc(50% + var(--muka-range-grip-gap)) center;
6383
+ transition: box-shadow 0.15s ease, background-color 0.15s ease;
6384
+ }
6385
+
6386
+ /* Hover */
6387
+ .muka-range-slider__input:hover::-webkit-slider-thumb {
6388
+ background-color: var(--color-surface-level1);
6389
+ box-shadow: var(--shadow-level3);
6390
+ }
6391
+ .muka-range-slider__input:hover::-moz-range-thumb {
6392
+ background-color: var(--color-surface-level1);
6393
+ box-shadow: var(--shadow-level3);
6394
+ }
6395
+
6396
+ /* Focus ring */
6397
+ .muka-range-slider__input:focus-visible::-webkit-slider-thumb {
6398
+ box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6399
+ }
6400
+ .muka-range-slider__input:focus-visible::-moz-range-thumb {
6401
+ box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6402
+ }
6403
+
6404
+ /* Disabled */
6405
+ .muka-range-slider--disabled {
6406
+ opacity: 0.5;
6407
+ }
6408
+ .muka-range-slider--disabled .muka-range-slider__input {
6409
+ cursor: not-allowed;
6410
+ }
6411
+
6412
+
6413
+ /* RadioTile */
6414
+ /* RadioTile Component Styles - Using Muka Design Tokens */
6415
+
6416
+ /* Base tile styles - horizontal */
6417
+ .muka-radio-tile {
6418
+ display: flex;
6419
+ align-items: center;
6420
+ gap: var(--spacing-4);
6421
+ padding: var(--spacing-4);
6422
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
6423
+ border-radius: var(--input-field-radius-lg);
6424
+ background-color: var(--color-surface-level3);
6425
+ cursor: pointer;
6426
+ transition: border-color 0.15s ease, border-width 0.15s ease;
6427
+ overflow: hidden;
6428
+ box-sizing: border-box;
6429
+ }
6430
+
6431
+ .muka-radio-tile--disabled {
6432
+ cursor: not-allowed;
6433
+ opacity: 0.6;
6434
+ }
6435
+
6436
+ /* Selected state */
6437
+ .muka-radio-tile[data-checked] {
6438
+ border-width: var(--border-width-bold);
6439
+ border-color: var(--color-action-default);
6440
+ }
6441
+
6442
+ /* Vertical layout */
6443
+ .muka-radio-tile--vertical {
6444
+ flex-direction: column;
6445
+ align-items: center;
6446
+ gap: var(--spacing-2);
6447
+ position: relative;
6448
+ width: 160px;
6207
6449
  }
6208
6450
 
6209
6451
  /* Radio container */
@@ -6502,232 +6744,16 @@ body {
6502
6744
  }
6503
6745
 
6504
6746
 
6505
- /* RangeSlider */
6506
- /* RangeSlider Component Styles - Using Muka Design Tokens */
6747
+ /* ProgressTracker */
6748
+ /* ProgressTracker Component Styles — Using Muka Design Tokens */
6507
6749
 
6508
- .muka-range-slider {
6509
- display: flex;
6510
- flex-direction: column;
6511
- gap: var(--spacing-1);
6750
+ /* ─── Root ──────────────────────────────────────────────── */
6751
+ .muka-progress-tracker {
6512
6752
  width: 100%;
6513
6753
  }
6514
6754
 
6515
- /* ========================================
6516
- HEADER: label group (label + info + optional) and value readout
6517
- ======================================== */
6518
-
6519
- .muka-range-slider__header {
6520
- display: flex;
6521
- align-items: center;
6522
- justify-content: space-between;
6523
- gap: var(--spacing-2);
6524
- min-height: 24px;
6525
- }
6526
-
6527
- .muka-range-slider__label-group {
6528
- display: inline-flex;
6529
- align-items: center;
6530
- gap: var(--spacing-2);
6531
- }
6532
-
6533
- .muka-range-slider__label {
6534
- font-family: var(--text-label-md-semibold-fontFamily);
6535
- font-weight: var(--text-label-md-semibold-fontWeight);
6536
- font-size: var(--text-label-md-semibold-fontSize);
6537
- line-height: var(--text-label-md-semibold-lineHeight);
6538
- color: var(--color-text-default-default);
6539
- }
6540
-
6541
- .muka-range-slider__info {
6542
- color: var(--color-text-subtle-default);
6543
- }
6544
-
6545
- .muka-range-slider__optional {
6546
- font-family: var(--text-label-sm-regular-fontFamily);
6547
- font-weight: var(--text-label-sm-regular-fontWeight);
6548
- font-size: var(--text-label-sm-regular-fontSize);
6549
- line-height: var(--text-label-sm-regular-lineHeight);
6550
- color: var(--color-text-subtle-default);
6551
- }
6552
-
6553
- .muka-range-slider__value {
6554
- font-family: var(--text-label-md-regular-fontFamily);
6555
- font-weight: var(--text-label-md-regular-fontWeight);
6556
- font-size: var(--text-label-md-regular-fontSize);
6557
- line-height: var(--text-label-md-regular-lineHeight);
6558
- color: var(--color-text-default-default);
6559
- font-variant-numeric: tabular-nums;
6560
- }
6561
-
6562
- .muka-range-slider__helper {
6563
- margin: 0;
6564
- font-family: var(--text-body-sm-regular-fontFamily);
6565
- font-weight: var(--text-body-sm-regular-fontWeight);
6566
- font-size: var(--text-body-sm-regular-fontSize);
6567
- line-height: var(--text-body-sm-regular-lineHeight);
6568
- color: var(--color-text-subtle-default);
6569
- }
6570
-
6571
- /* ========================================
6572
- TRACK + THUMB
6573
- Native range input, restyled. A thick sunken track holds an accent fill up to
6574
- the current value, with a circular grip handle. The filled portion is driven
6575
- by the inline --muka-range-fill custom property (set from the component value).
6576
- ======================================== */
6577
-
6578
- /* Size variants: track height, thumb diameter and grip geometry */
6579
- .muka-range-slider--sm {
6580
- --muka-range-track-h: 12px;
6581
- --muka-range-thumb: 24px;
6582
- --muka-range-grip-h: 9px;
6583
- }
6584
- .muka-range-slider--md {
6585
- --muka-range-track-h: 16px;
6586
- --muka-range-thumb: 32px;
6587
- --muka-range-grip-h: 12px;
6588
- }
6589
- .muka-range-slider--lg {
6590
- --muka-range-track-h: 20px;
6591
- --muka-range-thumb: 40px;
6592
- --muka-range-grip-h: 15px;
6593
- }
6594
-
6595
- .muka-range-slider__bar {
6596
- /* Reserve the full thumb height so the handle never clips the layout. */
6597
- display: flex;
6598
- align-items: center;
6599
- height: var(--muka-range-thumb);
6600
- }
6601
-
6602
- .muka-range-slider__input {
6603
- -webkit-appearance: none;
6604
- appearance: none;
6605
- width: 100%;
6606
- height: var(--muka-range-thumb);
6607
- margin: 0;
6608
- background: transparent;
6609
- cursor: pointer;
6610
-
6611
- /* Grip handle fill + two vertical grip bars, all theme-aware. */
6612
- --muka-range-grip-color: var(--color-text-subtle-default);
6613
- --muka-range-grip-w: 2px;
6614
- --muka-range-grip-gap: 3px;
6615
-
6616
- /* The track fill: action colour up to the value, sunken surface beyond it. */
6617
- --muka-range-track-fill: linear-gradient(
6618
- to right,
6619
- var(--color-action-default) 0,
6620
- var(--color-action-default) var(--muka-range-fill, 0%),
6621
- var(--color-surface-sunken) var(--muka-range-fill, 0%),
6622
- var(--color-surface-sunken) 100%
6623
- );
6624
- }
6625
-
6626
- .muka-range-slider__input:focus {
6627
- outline: none;
6628
- }
6629
-
6630
- /* WebKit / Blink track */
6631
- .muka-range-slider__input::-webkit-slider-runnable-track {
6632
- height: var(--muka-range-track-h);
6633
- border-radius: var(--border-radius-full);
6634
- background-image: var(--muka-range-track-fill);
6635
- border: 1px solid var(--color-border-contrast);
6636
- box-shadow: var(--shadow-sunken);
6637
- }
6638
-
6639
- /* Firefox track + progress */
6640
- .muka-range-slider__input::-moz-range-track {
6641
- height: var(--muka-range-track-h);
6642
- border-radius: var(--border-radius-full);
6643
- background: var(--color-surface-sunken);
6644
- border: 1px solid var(--color-border-contrast);
6645
- box-shadow: var(--shadow-sunken);
6646
- }
6647
- .muka-range-slider__input::-moz-range-progress {
6648
- height: var(--muka-range-track-h);
6649
- border-radius: var(--border-radius-full);
6650
- background: var(--color-action-default);
6651
- }
6652
-
6653
- /* WebKit / Blink thumb (vertically centred over the track) */
6654
- .muka-range-slider__input::-webkit-slider-thumb {
6655
- -webkit-appearance: none;
6656
- appearance: none;
6657
- width: var(--muka-range-thumb);
6658
- height: var(--muka-range-thumb);
6659
- margin-top: calc((var(--muka-range-track-h) - var(--muka-range-thumb)) / 2);
6660
- border-radius: var(--border-radius-full);
6661
- border: 1px solid var(--color-border-contrast);
6662
- box-shadow: var(--shadow-level2);
6663
- background-color: var(--color-surface-level1);
6664
- background-image:
6665
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6666
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6667
- background-repeat: no-repeat;
6668
- background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6669
- background-position:
6670
- calc(50% - var(--muka-range-grip-gap)) center,
6671
- calc(50% + var(--muka-range-grip-gap)) center;
6672
- transition: box-shadow 0.15s ease, background-color 0.15s ease;
6673
- }
6674
-
6675
- /* Firefox thumb */
6676
- .muka-range-slider__input::-moz-range-thumb {
6677
- width: var(--muka-range-thumb);
6678
- height: var(--muka-range-thumb);
6679
- border-radius: var(--border-radius-full);
6680
- border: 1px solid var(--color-border-contrast);
6681
- box-shadow: var(--shadow-level2);
6682
- background-color: var(--color-surface-level1);
6683
- background-image:
6684
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color)),
6685
- linear-gradient(var(--muka-range-grip-color), var(--muka-range-grip-color));
6686
- background-repeat: no-repeat;
6687
- background-size: var(--muka-range-grip-w) var(--muka-range-grip-h), var(--muka-range-grip-w) var(--muka-range-grip-h);
6688
- background-position:
6689
- calc(50% - var(--muka-range-grip-gap)) center,
6690
- calc(50% + var(--muka-range-grip-gap)) center;
6691
- transition: box-shadow 0.15s ease, background-color 0.15s ease;
6692
- }
6693
-
6694
- /* Hover */
6695
- .muka-range-slider__input:hover::-webkit-slider-thumb {
6696
- background-color: var(--color-surface-level1);
6697
- box-shadow: var(--shadow-level3);
6698
- }
6699
- .muka-range-slider__input:hover::-moz-range-thumb {
6700
- background-color: var(--color-surface-level1);
6701
- box-shadow: var(--shadow-level3);
6702
- }
6703
-
6704
- /* Focus ring */
6705
- .muka-range-slider__input:focus-visible::-webkit-slider-thumb {
6706
- box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6707
- }
6708
- .muka-range-slider__input:focus-visible::-moz-range-thumb {
6709
- box-shadow: var(--shadow-level2), 0 0 0 3px var(--color-border-focus);
6710
- }
6711
-
6712
- /* Disabled */
6713
- .muka-range-slider--disabled {
6714
- opacity: 0.5;
6715
- }
6716
- .muka-range-slider--disabled .muka-range-slider__input {
6717
- cursor: not-allowed;
6718
- }
6719
-
6720
-
6721
- /* ProgressTracker */
6722
- /* ProgressTracker Component Styles — Using Muka Design Tokens */
6723
-
6724
- /* ─── Root ──────────────────────────────────────────────── */
6725
- .muka-progress-tracker {
6726
- width: 100%;
6727
- }
6728
-
6729
- .muka-progress-tracker--horizontal {
6730
- padding-bottom: var(--spacing-7);
6755
+ .muka-progress-tracker--horizontal {
6756
+ padding-bottom: var(--spacing-7);
6731
6757
  }
6732
6758
 
6733
6759
  /* Scrollable: the root scrolls sideways when the steps don't fit. The inline
@@ -8793,49 +8819,235 @@ button.muka-progress-tracker__tab:focus-visible {
8793
8819
  }
8794
8820
 
8795
8821
 
8796
- /* ListItem */
8797
- /* ListItem Component Styles - Using Muka Design Tokens */
8822
+ /* MediaViewer */
8823
+ /* MediaViewer Component Styles - Using Muka Design Tokens */
8798
8824
 
8799
- /* Base list item styles */
8800
- .muka-listitem {
8801
- /* Layout */
8802
- display: flex;
8803
- align-items: flex-start;
8804
- gap: var(--spacing-4);
8805
- padding: var(--spacing-5) var(--spacing-4);
8806
-
8807
- /* Background - using semantic tokens */
8808
- background-color: var(--color-surface-level3);
8809
-
8810
- /* Typography */
8811
- font-family: var(--alias-font-brand-family);
8812
-
8813
- /* Border and spacing */
8825
+ /* ─── Native dialog: full viewport ────────────────────── */
8826
+ .muka-media-viewer {
8827
+ position: fixed;
8828
+ inset: 0;
8829
+ width: 100%;
8830
+ height: 100%;
8831
+ max-width: none;
8832
+ max-height: none;
8833
+ margin: 0;
8834
+ padding: 0;
8814
8835
  border: none;
8815
- position: relative;
8816
-
8817
- /* Interaction - only apply if interactive */
8818
- transition: background-color 0.2s ease, box-shadow 0.2s ease;
8836
+ display: flex;
8837
+ flex-direction: column;
8838
+ overflow: hidden;
8839
+ overscroll-behavior: contain;
8840
+ color: var(--color-text-default-default);
8841
+ background-color: var(--color-black-alpha-12);
8842
+ animation: muka-media-viewer-in var(--motion-duration-component) var(--motion-easing-enter);
8819
8843
  }
8820
8844
 
8821
- /* Interactive state */
8822
- .muka-listitem--interactive {
8823
- cursor: pointer;
8845
+ .muka-media-viewer:not([open]) {
8846
+ display: none;
8824
8847
  }
8825
8848
 
8826
- /*
8827
- * surface.hover / surface.pressed are theme-adaptive translucent tints, so they
8828
- * are layered on top of the item's base surface via an inset box-shadow overlay
8829
- * rather than replacing background-color. This preserves the base level (level3,
8830
- * or level2 when selected) and lets the tint read correctly on any surface.
8831
- */
8832
- .muka-listitem--interactive:hover:not(:disabled):not(.muka-listitem--disabled) {
8833
- box-shadow: inset 0 0 0 9999px var(--color-surface-hover);
8849
+ .muka-media-viewer::backdrop {
8850
+ background-color: var(--color-black-alpha-12);
8834
8851
  }
8835
8852
 
8836
- .muka-listitem--interactive:active:not(:disabled):not(.muka-listitem--disabled),
8837
- .muka-listitem--interactive.muka-listitem--pressed:not(:disabled):not(.muka-listitem--disabled) {
8838
- box-shadow: inset 0 0 0 9999px var(--color-surface-pressed);
8853
+ @keyframes muka-media-viewer-in {
8854
+ from {
8855
+ opacity: 0;
8856
+ }
8857
+ to {
8858
+ opacity: 1;
8859
+ }
8860
+ }
8861
+
8862
+ /* ─── Chrome: TopBar and footer sit on a surface ──────── */
8863
+ .muka-media-viewer__topbar {
8864
+ flex-shrink: 0;
8865
+ background-color: var(--color-surface-level3);
8866
+ }
8867
+
8868
+ .muka-media-viewer__live {
8869
+ position: absolute;
8870
+ width: 1px;
8871
+ height: 1px;
8872
+ padding: 0;
8873
+ margin: -1px;
8874
+ overflow: hidden;
8875
+ clip: rect(0, 0, 0, 0);
8876
+ white-space: nowrap;
8877
+ border: 0;
8878
+ }
8879
+
8880
+ /* ─── Stage: the dark area the images slide across ────── */
8881
+ .muka-media-viewer__stage {
8882
+ position: relative;
8883
+ flex: 1 1 auto;
8884
+ min-height: 0;
8885
+ overflow: hidden;
8886
+ /* Gestures are handled in JS: no browser panning or pinch on the stage. */
8887
+ touch-action: none;
8888
+ user-select: none;
8889
+ -webkit-user-select: none;
8890
+ }
8891
+
8892
+ .muka-media-viewer__slide {
8893
+ position: absolute;
8894
+ inset: 0;
8895
+ display: flex;
8896
+ align-items: center;
8897
+ justify-content: center;
8898
+ padding: var(--spacing-4);
8899
+ transition: transform var(--motion-duration-component) var(--motion-easing-default);
8900
+ will-change: transform;
8901
+ }
8902
+
8903
+ /* While a finger drags, the image follows it without easing. */
8904
+ .muka-media-viewer--dragging .muka-media-viewer__slide {
8905
+ transition: none;
8906
+ }
8907
+
8908
+ .muka-media-viewer__image {
8909
+ display: block;
8910
+ max-width: 100%;
8911
+ max-height: 100%;
8912
+ object-fit: contain;
8913
+ /* The image takes touches, so a long press opens the OS menu (save, share,
8914
+ copy). The swipe still works: pointer events bubble to the stage, and a
8915
+ long press doesn't move far enough to start a drag. */
8916
+ -webkit-touch-callout: default;
8917
+ }
8918
+
8919
+ /* ─── Previous / next: devices that can hover ─────────── */
8920
+ .muka-media-viewer__nav {
8921
+ position: absolute;
8922
+ top: 50%;
8923
+ display: none;
8924
+ transform: translateY(-50%);
8925
+ opacity: 0;
8926
+ transition: opacity var(--motion-duration-micro) var(--motion-easing-enter);
8927
+ }
8928
+
8929
+ .muka-media-viewer__nav--previous {
8930
+ left: var(--spacing-4);
8931
+ }
8932
+
8933
+ .muka-media-viewer__nav--next {
8934
+ right: var(--spacing-4);
8935
+ }
8936
+
8937
+ @media (hover: hover) and (pointer: fine) {
8938
+ .muka-media-viewer__nav {
8939
+ display: block;
8940
+ }
8941
+
8942
+ .muka-media-viewer__stage:hover .muka-media-viewer__nav,
8943
+ .muka-media-viewer__nav:focus-within {
8944
+ opacity: 1;
8945
+ }
8946
+ }
8947
+
8948
+ /* ─── Footer: caption, meta and actions ───────────────── */
8949
+ .muka-media-viewer__footer {
8950
+ flex-shrink: 0;
8951
+ display: flex;
8952
+ flex-direction: column;
8953
+ gap: var(--spacing-3);
8954
+ padding: var(--spacing-4);
8955
+ padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
8956
+ background-color: var(--color-surface-level3);
8957
+ }
8958
+
8959
+ .muka-media-viewer__details {
8960
+ display: flex;
8961
+ align-items: flex-start;
8962
+ justify-content: space-between;
8963
+ gap: var(--spacing-3);
8964
+ }
8965
+
8966
+ .muka-media-viewer__caption {
8967
+ min-width: 0;
8968
+ color: var(--color-text-subtle-default);
8969
+ font-family: var(--text-body-sm-regular-fontFamily);
8970
+ font-size: var(--text-body-sm-regular-fontSize);
8971
+ font-weight: var(--text-body-sm-regular-fontWeight);
8972
+ line-height: var(--text-body-sm-regular-lineHeight);
8973
+ overflow-wrap: anywhere;
8974
+ }
8975
+
8976
+ .muka-media-viewer__meta {
8977
+ flex-shrink: 0;
8978
+ }
8979
+
8980
+ .muka-media-viewer__actions {
8981
+ display: flex;
8982
+ flex-wrap: wrap;
8983
+ gap: var(--spacing-2);
8984
+ }
8985
+
8986
+ /* Mobile: actions stack full width, like Dialog footers. */
8987
+ @media (max-width: 1023px) {
8988
+ .muka-media-viewer__actions {
8989
+ flex-direction: column;
8990
+ }
8991
+
8992
+ .muka-media-viewer__actions > * {
8993
+ width: 100%;
8994
+ }
8995
+ }
8996
+
8997
+ /* ─── Reduced motion ──────────────────────────────────── */
8998
+ @media (prefers-reduced-motion: reduce) {
8999
+ .muka-media-viewer,
9000
+ .muka-media-viewer__slide,
9001
+ .muka-media-viewer__nav {
9002
+ animation: none;
9003
+ transition: none;
9004
+ }
9005
+ }
9006
+
9007
+
9008
+ /* ListItem */
9009
+ /* ListItem Component Styles - Using Muka Design Tokens */
9010
+
9011
+ /* Base list item styles */
9012
+ .muka-listitem {
9013
+ /* Layout */
9014
+ display: flex;
9015
+ align-items: flex-start;
9016
+ gap: var(--spacing-4);
9017
+ padding: var(--spacing-5) var(--spacing-4);
9018
+
9019
+ /* Background - using semantic tokens */
9020
+ background-color: var(--color-surface-level3);
9021
+
9022
+ /* Typography */
9023
+ font-family: var(--alias-font-brand-family);
9024
+
9025
+ /* Border and spacing */
9026
+ border: none;
9027
+ position: relative;
9028
+
9029
+ /* Interaction - only apply if interactive */
9030
+ transition: background-color 0.2s ease, box-shadow 0.2s ease;
9031
+ }
9032
+
9033
+ /* Interactive state */
9034
+ .muka-listitem--interactive {
9035
+ cursor: pointer;
9036
+ }
9037
+
9038
+ /*
9039
+ * surface.hover / surface.pressed are theme-adaptive translucent tints, so they
9040
+ * are layered on top of the item's base surface via an inset box-shadow overlay
9041
+ * rather than replacing background-color. This preserves the base level (level3,
9042
+ * or level2 when selected) and lets the tint read correctly on any surface.
9043
+ */
9044
+ .muka-listitem--interactive:hover:not(:disabled):not(.muka-listitem--disabled) {
9045
+ box-shadow: inset 0 0 0 9999px var(--color-surface-hover);
9046
+ }
9047
+
9048
+ .muka-listitem--interactive:active:not(:disabled):not(.muka-listitem--disabled),
9049
+ .muka-listitem--interactive.muka-listitem--pressed:not(:disabled):not(.muka-listitem--disabled) {
9050
+ box-shadow: inset 0 0 0 9999px var(--color-surface-pressed);
8839
9051
  }
8840
9052
 
8841
9053
  /* Focus styles for accessibility */
@@ -9180,189 +9392,44 @@ li.muka-listitem {
9180
9392
  }
9181
9393
 
9182
9394
 
9183
- /* MediaViewer */
9184
- /* MediaViewer Component Styles - Using Muka Design Tokens */
9395
+ /* Label */
9396
+ /* Label Component Styles - Using Muka Design Tokens */
9185
9397
 
9186
- /* ─── Native dialog: full viewport ────────────────────── */
9187
- .muka-media-viewer {
9188
- position: fixed;
9189
- inset: 0;
9190
- width: 100%;
9191
- height: 100%;
9192
- max-width: none;
9193
- max-height: none;
9194
- margin: 0;
9195
- padding: 0;
9196
- border: none;
9197
- display: flex;
9198
- flex-direction: column;
9199
- overflow: hidden;
9200
- overscroll-behavior: contain;
9398
+ .muka-label {
9399
+ display: inline-flex;
9400
+ align-items: center;
9201
9401
  color: var(--color-text-default-default);
9202
- background-color: var(--color-black-alpha-12);
9203
- animation: muka-media-viewer-in var(--motion-duration-component) var(--motion-easing-enter);
9402
+ cursor: pointer;
9204
9403
  }
9205
9404
 
9206
- .muka-media-viewer:not([open]) {
9207
- display: none;
9405
+ .muka-label--sm {
9406
+ font-family: var(--text-label-sm-semibold-fontFamily);
9407
+ font-weight: var(--text-label-sm-semibold-fontWeight);
9408
+ font-size: var(--text-label-sm-semibold-fontSize);
9409
+ line-height: var(--text-label-sm-semibold-lineHeight);
9208
9410
  }
9209
9411
 
9210
- .muka-media-viewer::backdrop {
9211
- background-color: var(--color-black-alpha-12);
9412
+ .muka-label--md {
9413
+ font-family: var(--text-label-md-semibold-fontFamily);
9414
+ font-weight: var(--text-label-md-semibold-fontWeight);
9415
+ font-size: var(--text-label-md-semibold-fontSize);
9416
+ line-height: var(--text-label-md-semibold-lineHeight);
9212
9417
  }
9213
9418
 
9214
- @keyframes muka-media-viewer-in {
9215
- from {
9216
- opacity: 0;
9217
- }
9218
- to {
9219
- opacity: 1;
9220
- }
9419
+ .muka-label--lg {
9420
+ font-family: var(--text-label-lg-semibold-fontFamily);
9421
+ font-weight: var(--text-label-lg-semibold-fontWeight);
9422
+ font-size: var(--text-label-lg-semibold-fontSize);
9423
+ line-height: var(--text-label-lg-semibold-lineHeight);
9221
9424
  }
9222
9425
 
9223
- /* ─── Chrome: TopBar and footer sit on a surface ──────── */
9224
- .muka-media-viewer__topbar {
9225
- flex-shrink: 0;
9226
- background-color: var(--color-surface-level3);
9426
+ .muka-label--disabled {
9427
+ color: var(--color-text-subtle-default);
9428
+ cursor: not-allowed;
9227
9429
  }
9228
9430
 
9229
- .muka-media-viewer__live {
9230
- position: absolute;
9231
- width: 1px;
9232
- height: 1px;
9233
- padding: 0;
9234
- margin: -1px;
9235
- overflow: hidden;
9236
- clip: rect(0, 0, 0, 0);
9237
- white-space: nowrap;
9238
- border: 0;
9239
- }
9240
-
9241
- /* ─── Stage: the dark area the images slide across ────── */
9242
- .muka-media-viewer__stage {
9243
- position: relative;
9244
- flex: 1 1 auto;
9245
- min-height: 0;
9246
- overflow: hidden;
9247
- /* Gestures are handled in JS: no browser panning or pinch on the stage. */
9248
- touch-action: none;
9249
- user-select: none;
9250
- -webkit-user-select: none;
9251
- }
9252
-
9253
- .muka-media-viewer__slide {
9254
- position: absolute;
9255
- inset: 0;
9256
- display: flex;
9257
- align-items: center;
9258
- justify-content: center;
9259
- padding: var(--spacing-4);
9260
- transition: transform var(--motion-duration-component) var(--motion-easing-default);
9261
- will-change: transform;
9262
- }
9263
-
9264
- /* While a finger drags, the image follows it without easing. */
9265
- .muka-media-viewer--dragging .muka-media-viewer__slide {
9266
- transition: none;
9267
- }
9268
-
9269
- .muka-media-viewer__image {
9270
- display: block;
9271
- max-width: 100%;
9272
- max-height: 100%;
9273
- object-fit: contain;
9274
- /* The image takes touches, so a long press opens the OS menu (save, share,
9275
- copy). The swipe still works: pointer events bubble to the stage, and a
9276
- long press doesn't move far enough to start a drag. */
9277
- -webkit-touch-callout: default;
9278
- }
9279
-
9280
- /* ─── Previous / next: devices that can hover ─────────── */
9281
- .muka-media-viewer__nav {
9282
- position: absolute;
9283
- top: 50%;
9284
- display: none;
9285
- transform: translateY(-50%);
9286
- opacity: 0;
9287
- transition: opacity var(--motion-duration-micro) var(--motion-easing-enter);
9288
- }
9289
-
9290
- .muka-media-viewer__nav--previous {
9291
- left: var(--spacing-4);
9292
- }
9293
-
9294
- .muka-media-viewer__nav--next {
9295
- right: var(--spacing-4);
9296
- }
9297
-
9298
- @media (hover: hover) and (pointer: fine) {
9299
- .muka-media-viewer__nav {
9300
- display: block;
9301
- }
9302
-
9303
- .muka-media-viewer__stage:hover .muka-media-viewer__nav,
9304
- .muka-media-viewer__nav:focus-within {
9305
- opacity: 1;
9306
- }
9307
- }
9308
-
9309
- /* ─── Footer: caption, meta and actions ───────────────── */
9310
- .muka-media-viewer__footer {
9311
- flex-shrink: 0;
9312
- display: flex;
9313
- flex-direction: column;
9314
- gap: var(--spacing-3);
9315
- padding: var(--spacing-4);
9316
- padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
9317
- background-color: var(--color-surface-level3);
9318
- }
9319
-
9320
- .muka-media-viewer__details {
9321
- display: flex;
9322
- align-items: flex-start;
9323
- justify-content: space-between;
9324
- gap: var(--spacing-3);
9325
- }
9326
-
9327
- .muka-media-viewer__caption {
9328
- min-width: 0;
9329
- color: var(--color-text-subtle-default);
9330
- font-family: var(--text-body-sm-regular-fontFamily);
9331
- font-size: var(--text-body-sm-regular-fontSize);
9332
- font-weight: var(--text-body-sm-regular-fontWeight);
9333
- line-height: var(--text-body-sm-regular-lineHeight);
9334
- overflow-wrap: anywhere;
9335
- }
9336
-
9337
- .muka-media-viewer__meta {
9338
- flex-shrink: 0;
9339
- }
9340
-
9341
- .muka-media-viewer__actions {
9342
- display: flex;
9343
- flex-wrap: wrap;
9344
- gap: var(--spacing-2);
9345
- }
9346
-
9347
- /* Mobile: actions stack full width, like Dialog footers. */
9348
- @media (max-width: 1023px) {
9349
- .muka-media-viewer__actions {
9350
- flex-direction: column;
9351
- }
9352
-
9353
- .muka-media-viewer__actions > * {
9354
- width: 100%;
9355
- }
9356
- }
9357
-
9358
- /* ─── Reduced motion ──────────────────────────────────── */
9359
- @media (prefers-reduced-motion: reduce) {
9360
- .muka-media-viewer,
9361
- .muka-media-viewer__slide,
9362
- .muka-media-viewer__nav {
9363
- animation: none;
9364
- transition: none;
9365
- }
9431
+ .muka-label__required {
9432
+ color: var(--color-state-error-default);
9366
9433
  }
9367
9434
 
9368
9435
 
@@ -10302,93 +10369,302 @@ li.muka-listitem {
10302
10369
  }
10303
10370
 
10304
10371
 
10305
- /* Label */
10306
- /* Label Component Styles - Using Muka Design Tokens */
10372
+ /* EmojiPicker */
10373
+ /* EmojiPicker Component Styles */
10307
10374
 
10308
- .muka-label {
10375
+ .muka-emoji-picker {
10376
+ display: grid;
10377
+ grid-template-columns: repeat(8, 1fr);
10378
+ gap: var(--spacing-1);
10379
+ padding: var(--spacing-2);
10380
+ max-height: 12rem;
10381
+ overflow-y: auto;
10382
+ background: var(--color-surface-level2);
10383
+ border: var(--border-width-regular, 1px) solid var(--color-border-default);
10384
+ border-radius: var(--radius-lg);
10385
+ box-shadow: var(--menu-content-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
10386
+ }
10387
+
10388
+ .muka-emoji-picker__glyph {
10389
+ font-size: 1.25rem;
10390
+ line-height: 1;
10391
+ }
10392
+
10393
+
10394
+ /* DropdownSelect */
10395
+ /* DropdownSelect — Figma Dropdown Menu form field (Menu + chips) */
10396
+
10397
+ .muka-dropdown-select {
10309
10398
  display: inline-flex;
10310
- align-items: center;
10399
+ flex-direction: column;
10400
+ gap: var(--spacing-2);
10401
+ min-width: 200px;
10402
+ }
10403
+
10404
+ .muka-dropdown-select--full-width {
10405
+ width: 100%;
10406
+ }
10407
+
10408
+ .muka-dropdown-select__label {
10311
10409
  color: var(--color-text-default-default);
10312
10410
  cursor: pointer;
10313
10411
  }
10314
10412
 
10315
- .muka-label--sm {
10413
+ .muka-dropdown-select__label--sm {
10316
10414
  font-family: var(--text-label-sm-semibold-fontFamily);
10317
10415
  font-weight: var(--text-label-sm-semibold-fontWeight);
10318
10416
  font-size: var(--text-label-sm-semibold-fontSize);
10319
10417
  line-height: var(--text-label-sm-semibold-lineHeight);
10320
10418
  }
10321
10419
 
10322
- .muka-label--md {
10420
+ .muka-dropdown-select__label--md {
10323
10421
  font-family: var(--text-label-md-semibold-fontFamily);
10324
10422
  font-weight: var(--text-label-md-semibold-fontWeight);
10325
10423
  font-size: var(--text-label-md-semibold-fontSize);
10326
10424
  line-height: var(--text-label-md-semibold-lineHeight);
10327
10425
  }
10328
10426
 
10329
- .muka-label--lg {
10427
+ .muka-dropdown-select__label--lg {
10330
10428
  font-family: var(--text-label-lg-semibold-fontFamily);
10331
10429
  font-weight: var(--text-label-lg-semibold-fontWeight);
10332
10430
  font-size: var(--text-label-lg-semibold-fontSize);
10333
10431
  line-height: var(--text-label-lg-semibold-lineHeight);
10334
10432
  }
10335
10433
 
10336
- .muka-label--disabled {
10337
- color: var(--color-text-subtle-default);
10338
- cursor: not-allowed;
10339
- }
10340
-
10341
- .muka-label__required {
10434
+ .muka-dropdown-select__required {
10342
10435
  color: var(--color-state-error-default);
10343
10436
  }
10344
10437
 
10345
-
10346
- /* EmptyState */
10347
- /* EmptyState Component Styles - Using Muka Design Tokens */
10348
-
10349
- .muka-emptystate {
10438
+ .muka-dropdown-select__field {
10350
10439
  display: flex;
10351
- flex-direction: column;
10352
10440
  align-items: center;
10353
- justify-content: center;
10354
- gap: var(--emptystate-container-gap);
10355
- max-width: var(--emptystate-container-maxWidth);
10356
- margin: 0 auto;
10357
- text-align: center;
10358
- }
10359
-
10360
- /* Alignment variants */
10361
- .muka-emptystate--left {
10362
- align-items: flex-start;
10441
+ gap: var(--spacing-1);
10442
+ width: 100%;
10443
+ position: relative;
10444
+ box-sizing: border-box;
10445
+ background-color: var(--input-field-color-default-background);
10446
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
10447
+ border-radius: var(--input-field-radius-lg);
10448
+ padding: var(--spacing-2);
10449
+ padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem));
10363
10450
  text-align: left;
10451
+ cursor: pointer;
10452
+ color: var(--color-text-default-default);
10453
+ transition: border-color 0.12s ease, background-color 0.12s ease;
10454
+ -webkit-tap-highlight-color: transparent;
10364
10455
  }
10365
10456
 
10366
- /* Size variants */
10367
- .muka-emptystate--sm {
10368
- padding: var(--emptystate-container-padding-sm);
10457
+ .muka-dropdown-select__field::after {
10458
+ content: '';
10459
+ position: absolute;
10460
+ inset: 0;
10461
+ border-radius: inherit;
10462
+ box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
10463
+ pointer-events: none;
10369
10464
  }
10370
10465
 
10371
- .muka-emptystate--md {
10372
- padding: var(--emptystate-container-padding-md);
10466
+ .muka-dropdown-select__field--sm {
10467
+ min-height: var(--input-field-height-sm);
10468
+ border-radius: var(--input-field-radius-sm);
10469
+ padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem));
10373
10470
  }
10374
10471
 
10375
- .muka-emptystate--lg {
10376
- padding: var(--emptystate-container-padding-lg);
10472
+ .muka-dropdown-select__field--md {
10473
+ min-height: var(--input-field-height-default);
10474
+ border-radius: var(--input-field-radius-md);
10377
10475
  }
10378
10476
 
10379
- /* Visual (icon or illustration) */
10380
- .muka-emptystate__visual {
10381
- display: flex;
10382
- align-items: center;
10383
- justify-content: center;
10384
- color: var(--emptystate-icon-color);
10385
- flex-shrink: 0;
10477
+ .muka-dropdown-select__field--lg {
10478
+ min-height: var(--input-field-height-lg);
10479
+ border-radius: var(--input-field-radius-lg);
10386
10480
  }
10387
10481
 
10388
- .muka-emptystate--sm .muka-emptystate__visual {
10389
- width: var(--emptystate-icon-size-sm);
10390
- height: var(--emptystate-icon-size-sm);
10391
- }
10482
+ .muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
10483
+ border-width: var(--border-width-bold);
10484
+ border-color: var(--input-field-color-focus-border);
10485
+ background-color: var(--input-field-color-focus-background);
10486
+ padding: calc(var(--spacing-2) - 1px);
10487
+ padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem) - 1px);
10488
+ }
10489
+
10490
+ .muka-dropdown-select__field--sm.muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
10491
+ padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem) - 1px);
10492
+ }
10493
+
10494
+ .muka-dropdown-select__field--error:not(.muka-dropdown-select__field--disabled) {
10495
+ border-color: var(--color-state-error-contrast);
10496
+ }
10497
+
10498
+ .muka-dropdown-select__field--disabled {
10499
+ opacity: 0.5;
10500
+ cursor: not-allowed;
10501
+ }
10502
+
10503
+ .muka-dropdown-select__content {
10504
+ position: relative;
10505
+ z-index: 1;
10506
+ display: flex;
10507
+ flex: 1 1 auto;
10508
+ min-width: 0;
10509
+ align-items: center;
10510
+ /* Let empty-field / value clicks reach the full-field MenuTrigger underneath. */
10511
+ pointer-events: none;
10512
+ }
10513
+
10514
+ .muka-dropdown-select__placeholder {
10515
+ color: var(--color-text-subtle-default);
10516
+ font-family: var(--text-label-md-regular-fontFamily);
10517
+ font-size: var(--text-label-md-regular-fontSize);
10518
+ font-weight: var(--text-label-md-regular-fontWeight);
10519
+ line-height: var(--text-label-md-regular-lineHeight);
10520
+ padding-inline: var(--spacing-1);
10521
+ }
10522
+
10523
+ .muka-dropdown-select__value {
10524
+ font-family: var(--text-label-md-regular-fontFamily);
10525
+ font-size: var(--text-label-md-regular-fontSize);
10526
+ font-weight: var(--text-label-md-regular-fontWeight);
10527
+ line-height: var(--text-label-md-regular-lineHeight);
10528
+ padding-inline: var(--spacing-1);
10529
+ white-space: nowrap;
10530
+ overflow: hidden;
10531
+ text-overflow: ellipsis;
10532
+ }
10533
+
10534
+ .muka-dropdown-select__chips {
10535
+ display: flex;
10536
+ flex: 1 1 auto;
10537
+ flex-wrap: wrap;
10538
+ gap: var(--spacing-2);
10539
+ align-items: flex-start;
10540
+ min-width: 0;
10541
+ /* Chip remove controls must remain clickable above the field hit target. */
10542
+ pointer-events: auto;
10543
+ }
10544
+
10545
+ .muka-dropdown-select__field--multiline {
10546
+ align-items: flex-start;
10547
+ min-height: 7rem;
10548
+ }
10549
+
10550
+ .muka-dropdown-select__menu-button {
10551
+ position: absolute;
10552
+ inset: 0;
10553
+ z-index: 0;
10554
+ display: inline-flex;
10555
+ align-items: center;
10556
+ justify-content: flex-end;
10557
+ width: auto;
10558
+ height: auto;
10559
+ padding: 0;
10560
+ padding-right: var(--spacing-2);
10561
+ border: none;
10562
+ border-radius: inherit;
10563
+ background: transparent;
10564
+ color: var(--color-text-subtle-default);
10565
+ cursor: pointer;
10566
+ }
10567
+
10568
+ .muka-dropdown-select__field--multiline .muka-dropdown-select__menu-button {
10569
+ align-items: flex-start;
10570
+ padding-top: calc(var(--spacing-2) + 8px);
10571
+ }
10572
+
10573
+ .muka-dropdown-select__chevron {
10574
+ display: inline-flex;
10575
+ align-items: center;
10576
+ justify-content: center;
10577
+ width: var(--size-2xl, 2rem);
10578
+ height: var(--size-2xl, 2rem);
10579
+ pointer-events: none;
10580
+ color: var(--color-text-subtle-default);
10581
+ }
10582
+
10583
+ .muka-dropdown-select__chevron .muka-icon,
10584
+ .muka-dropdown-select__menu-button:hover .muka-dropdown-select__chevron,
10585
+ .muka-dropdown-select__menu-button:hover .muka-icon {
10586
+ color: var(--color-text-subtle-default);
10587
+ }
10588
+
10589
+ .muka-dropdown-select__field--sm .muka-dropdown-select__chevron {
10590
+ width: var(--size-xl, 1.5rem);
10591
+ height: var(--size-xl, 1.5rem);
10592
+ }
10593
+
10594
+ .muka-dropdown-select__menu-button:focus-visible {
10595
+ outline: 2px solid var(--color-border-focus, var(--color-action-default));
10596
+ outline-offset: 2px;
10597
+ }
10598
+
10599
+ .muka-dropdown-select__helper {
10600
+ margin: 0;
10601
+ color: var(--color-text-subtle-default);
10602
+ font-family: var(--text-label-sm-regular-fontFamily);
10603
+ font-size: var(--text-label-sm-regular-fontSize);
10604
+ font-weight: var(--text-label-sm-regular-fontWeight);
10605
+ line-height: var(--text-label-sm-regular-lineHeight);
10606
+ }
10607
+
10608
+ .muka-dropdown-select__error {
10609
+ margin: 0;
10610
+ color: var(--color-state-error-default);
10611
+ font-family: var(--text-label-sm-regular-fontFamily);
10612
+ font-size: var(--text-label-sm-regular-fontSize);
10613
+ font-weight: var(--text-label-sm-regular-fontWeight);
10614
+ line-height: var(--text-label-sm-regular-lineHeight);
10615
+ }
10616
+
10617
+ .muka-dropdown-select__menu {
10618
+ /* Uses Menu min-width (280px); grows with long labels; left-aligned to the field. */
10619
+ }
10620
+
10621
+
10622
+ /* EmptyState */
10623
+ /* EmptyState Component Styles - Using Muka Design Tokens */
10624
+
10625
+ .muka-emptystate {
10626
+ display: flex;
10627
+ flex-direction: column;
10628
+ align-items: center;
10629
+ justify-content: center;
10630
+ gap: var(--emptystate-container-gap);
10631
+ max-width: var(--emptystate-container-maxWidth);
10632
+ margin: 0 auto;
10633
+ text-align: center;
10634
+ }
10635
+
10636
+ /* Alignment variants */
10637
+ .muka-emptystate--left {
10638
+ align-items: flex-start;
10639
+ text-align: left;
10640
+ }
10641
+
10642
+ /* Size variants */
10643
+ .muka-emptystate--sm {
10644
+ padding: var(--emptystate-container-padding-sm);
10645
+ }
10646
+
10647
+ .muka-emptystate--md {
10648
+ padding: var(--emptystate-container-padding-md);
10649
+ }
10650
+
10651
+ .muka-emptystate--lg {
10652
+ padding: var(--emptystate-container-padding-lg);
10653
+ }
10654
+
10655
+ /* Visual (icon or illustration) */
10656
+ .muka-emptystate__visual {
10657
+ display: flex;
10658
+ align-items: center;
10659
+ justify-content: center;
10660
+ color: var(--emptystate-icon-color);
10661
+ flex-shrink: 0;
10662
+ }
10663
+
10664
+ .muka-emptystate--sm .muka-emptystate__visual {
10665
+ width: var(--emptystate-icon-size-sm);
10666
+ height: var(--emptystate-icon-size-sm);
10667
+ }
10392
10668
 
10393
10669
  .muka-emptystate--md .muka-emptystate__visual {
10394
10670
  width: var(--emptystate-icon-size-md);
@@ -10484,28 +10760,6 @@ li.muka-listitem {
10484
10760
  }
10485
10761
 
10486
10762
 
10487
- /* EmojiPicker */
10488
- /* EmojiPicker Component Styles */
10489
-
10490
- .muka-emoji-picker {
10491
- display: grid;
10492
- grid-template-columns: repeat(8, 1fr);
10493
- gap: var(--spacing-1);
10494
- padding: var(--spacing-2);
10495
- max-height: 12rem;
10496
- overflow-y: auto;
10497
- background: var(--color-surface-level2);
10498
- border: var(--border-width-regular, 1px) solid var(--color-border-default);
10499
- border-radius: var(--radius-lg);
10500
- box-shadow: var(--menu-content-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
10501
- }
10502
-
10503
- .muka-emoji-picker__glyph {
10504
- font-size: 1.25rem;
10505
- line-height: 1;
10506
- }
10507
-
10508
-
10509
10763
  /* Drawer */
10510
10764
  /* Drawer Component Styles */
10511
10765
 
@@ -12184,43 +12438,201 @@ li.muka-listitem {
12184
12438
  }
12185
12439
 
12186
12440
 
12187
- /* Chip */
12188
- /* Chip Component Styles - Using Muka Design Tokens (Figma: Chip) */
12441
+ /* CheckboxTile */
12442
+ /* CheckboxTile Component Styles - Using Muka Design Tokens */
12189
12443
 
12190
- .muka-chip {
12191
- display: inline-flex;
12444
+ /* Base tile styles - horizontal */
12445
+ .muka-checkbox-tile {
12446
+ display: flex;
12192
12447
  align-items: center;
12193
- border-radius: var(--border-radius-full);
12194
- white-space: nowrap;
12195
- user-select: none;
12196
- border: var(--border-width-regular) solid transparent;
12448
+ gap: var(--spacing-4);
12449
+ padding: var(--spacing-4);
12450
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
12451
+ border-radius: var(--input-field-radius-lg);
12452
+ background-color: var(--color-surface-level3);
12453
+ cursor: pointer;
12454
+ transition: border-color 0.15s ease, border-width 0.15s ease;
12455
+ overflow: hidden;
12197
12456
  box-sizing: border-box;
12198
12457
  }
12199
12458
 
12200
- /*
12201
- * Sizes — height, gap, type, and default (label-edge) horizontal padding.
12202
- * Vertical centering is handled by the fixed height + align-items: center.
12203
- * The side that carries an adornment (leading icon / dismiss button) gets a
12204
- * tighter padding, applied via the --has-icon / --dismissible modifiers below.
12205
- */
12206
- .muka-chip--sm {
12207
- height: var(--chip-size-height-sm);
12208
- gap: var(--chip-gap-sm);
12209
- padding: 0 var(--chip-padding-label-sm);
12210
- font-family: var(--text-label-sm-regular-fontFamily);
12211
- font-weight: var(--text-label-sm-regular-fontWeight);
12212
- font-size: var(--text-label-sm-regular-fontSize);
12213
- line-height: var(--text-label-sm-regular-lineHeight);
12214
- }
12215
-
12216
- .muka-chip--md {
12217
- height: var(--chip-size-height-md);
12218
- gap: var(--chip-gap-md);
12219
- padding: 0 var(--chip-padding-label-md);
12220
- font-family: var(--text-label-md-regular-fontFamily);
12221
- font-weight: var(--text-label-md-regular-fontWeight);
12222
- font-size: var(--text-label-md-regular-fontSize);
12223
- line-height: var(--text-label-md-regular-lineHeight);
12459
+ .muka-checkbox-tile--disabled {
12460
+ cursor: not-allowed;
12461
+ opacity: 0.6;
12462
+ }
12463
+
12464
+ /* Selected state */
12465
+ .muka-checkbox-tile[data-checked] {
12466
+ border-width: var(--border-width-bold);
12467
+ border-color: var(--color-action-default);
12468
+ }
12469
+
12470
+ /* Vertical layout */
12471
+ .muka-checkbox-tile--vertical {
12472
+ flex-direction: column;
12473
+ align-items: center;
12474
+ gap: var(--spacing-2);
12475
+ position: relative;
12476
+ width: 160px;
12477
+ }
12478
+
12479
+ /* Checkbox container */
12480
+ .muka-checkbox-tile__checkbox {
12481
+ flex-shrink: 0;
12482
+ }
12483
+
12484
+ /* Corner-positioned checkbox for vertical */
12485
+ .muka-checkbox-tile__checkbox--corner {
12486
+ position: absolute;
12487
+ top: var(--spacing-4);
12488
+ left: var(--spacing-4);
12489
+ }
12490
+
12491
+ /* Adjust corner position when selected (border is thicker) */
12492
+ .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
12493
+ top: calc(var(--spacing-4) - 1px);
12494
+ left: calc(var(--spacing-4) - 1px);
12495
+ }
12496
+
12497
+ /* Icon */
12498
+ .muka-checkbox-tile__icon {
12499
+ display: flex;
12500
+ align-items: center;
12501
+ justify-content: center;
12502
+ flex-shrink: 0;
12503
+ width: var(--icon-size-default);
12504
+ height: var(--icon-size-default);
12505
+ color: var(--color-text-default-default);
12506
+ }
12507
+
12508
+ .muka-checkbox-tile__icon svg {
12509
+ width: 100%;
12510
+ height: 100%;
12511
+ }
12512
+
12513
+ /* Image */
12514
+ .muka-checkbox-tile__image {
12515
+ flex-shrink: 0;
12516
+ overflow: hidden;
12517
+ border-radius: var(--border-radius-sm);
12518
+ }
12519
+
12520
+ .muka-checkbox-tile__image img {
12521
+ display: block;
12522
+ width: 100%;
12523
+ height: 100%;
12524
+ object-fit: cover;
12525
+ }
12526
+
12527
+ /* Horizontal image sizing */
12528
+ .muka-checkbox-tile__image--horizontal {
12529
+ width: 40px;
12530
+ height: 40px;
12531
+ }
12532
+
12533
+ /* Vertical image sizing */
12534
+ .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
12535
+ width: 100%;
12536
+ aspect-ratio: 4/3;
12537
+ }
12538
+
12539
+ /* Content container */
12540
+ .muka-checkbox-tile__content {
12541
+ display: flex;
12542
+ flex-direction: column;
12543
+ flex: 1;
12544
+ min-width: 0;
12545
+ gap: var(--spacing-2);
12546
+ }
12547
+
12548
+ .muka-checkbox-tile__content-inner {
12549
+ display: flex;
12550
+ flex-direction: column;
12551
+ gap: var(--spacing-1);
12552
+ }
12553
+
12554
+ /* Chip slot (replaces badge; use Chip component) */
12555
+ .muka-checkbox-tile__chip {
12556
+ flex-shrink: 0;
12557
+ }
12558
+
12559
+ .muka-checkbox-tile__chip--vertical {
12560
+ margin-top: var(--spacing-1);
12561
+ }
12562
+
12563
+ /* Label */
12564
+ .muka-checkbox-tile__label {
12565
+ font-family: var(--text-body-lg-regular-fontFamily);
12566
+ font-weight: var(--text-body-lg-regular-fontWeight);
12567
+ font-size: var(--text-body-lg-regular-fontSize);
12568
+ line-height: var(--text-body-lg-regular-lineHeight);
12569
+ color: var(--color-text-default-default);
12570
+ }
12571
+
12572
+ .muka-checkbox-tile__label--bold {
12573
+ font-family: var(--text-label-lg-semibold-fontFamily);
12574
+ font-weight: var(--text-label-lg-semibold-fontWeight);
12575
+ font-size: var(--text-label-lg-semibold-fontSize);
12576
+ line-height: var(--text-label-lg-semibold-lineHeight);
12577
+ }
12578
+
12579
+ .muka-checkbox-tile__label--center {
12580
+ text-align: center;
12581
+ }
12582
+
12583
+ /* Caption */
12584
+ .muka-checkbox-tile__caption {
12585
+ font-family: var(--text-body-base-regular-fontFamily);
12586
+ font-weight: var(--text-body-base-regular-fontWeight);
12587
+ font-size: var(--text-body-base-regular-fontSize);
12588
+ line-height: var(--text-body-base-regular-lineHeight);
12589
+ color: var(--color-text-subtle-default);
12590
+ }
12591
+
12592
+ /* Disabled states */
12593
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
12594
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
12595
+ color: var(--color-text-subtle-default);
12596
+ }
12597
+
12598
+
12599
+ /* Chip */
12600
+ /* Chip Component Styles - Using Muka Design Tokens (Figma: Chip) */
12601
+
12602
+ .muka-chip {
12603
+ display: inline-flex;
12604
+ align-items: center;
12605
+ border-radius: var(--border-radius-full);
12606
+ white-space: nowrap;
12607
+ user-select: none;
12608
+ border: var(--border-width-regular) solid transparent;
12609
+ box-sizing: border-box;
12610
+ }
12611
+
12612
+ /*
12613
+ * Sizes — height, gap, type, and default (label-edge) horizontal padding.
12614
+ * Vertical centering is handled by the fixed height + align-items: center.
12615
+ * The side that carries an adornment (leading icon / dismiss button) gets a
12616
+ * tighter padding, applied via the --has-icon / --dismissible modifiers below.
12617
+ */
12618
+ .muka-chip--sm {
12619
+ height: var(--chip-size-height-sm);
12620
+ gap: var(--chip-gap-sm);
12621
+ padding: 0 var(--chip-padding-label-sm);
12622
+ font-family: var(--text-label-sm-regular-fontFamily);
12623
+ font-weight: var(--text-label-sm-regular-fontWeight);
12624
+ font-size: var(--text-label-sm-regular-fontSize);
12625
+ line-height: var(--text-label-sm-regular-lineHeight);
12626
+ }
12627
+
12628
+ .muka-chip--md {
12629
+ height: var(--chip-size-height-md);
12630
+ gap: var(--chip-gap-md);
12631
+ padding: 0 var(--chip-padding-label-md);
12632
+ font-family: var(--text-label-md-regular-fontFamily);
12633
+ font-weight: var(--text-label-md-regular-fontWeight);
12634
+ font-size: var(--text-label-md-regular-fontSize);
12635
+ line-height: var(--text-label-md-regular-lineHeight);
12224
12636
  }
12225
12637
 
12226
12638
  .muka-chip--lg {
@@ -12485,392 +12897,6 @@ li.muka-listitem {
12485
12897
  }
12486
12898
 
12487
12899
 
12488
- /* CheckboxTile */
12489
- /* CheckboxTile Component Styles - Using Muka Design Tokens */
12490
-
12491
- /* Base tile styles - horizontal */
12492
- .muka-checkbox-tile {
12493
- display: flex;
12494
- align-items: center;
12495
- gap: var(--spacing-4);
12496
- padding: var(--spacing-4);
12497
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
12498
- border-radius: var(--input-field-radius-lg);
12499
- background-color: var(--color-surface-level3);
12500
- cursor: pointer;
12501
- transition: border-color 0.15s ease, border-width 0.15s ease;
12502
- overflow: hidden;
12503
- box-sizing: border-box;
12504
- }
12505
-
12506
- .muka-checkbox-tile--disabled {
12507
- cursor: not-allowed;
12508
- opacity: 0.6;
12509
- }
12510
-
12511
- /* Selected state */
12512
- .muka-checkbox-tile[data-checked] {
12513
- border-width: var(--border-width-bold);
12514
- border-color: var(--color-action-default);
12515
- }
12516
-
12517
- /* Vertical layout */
12518
- .muka-checkbox-tile--vertical {
12519
- flex-direction: column;
12520
- align-items: center;
12521
- gap: var(--spacing-2);
12522
- position: relative;
12523
- width: 160px;
12524
- }
12525
-
12526
- /* Checkbox container */
12527
- .muka-checkbox-tile__checkbox {
12528
- flex-shrink: 0;
12529
- }
12530
-
12531
- /* Corner-positioned checkbox for vertical */
12532
- .muka-checkbox-tile__checkbox--corner {
12533
- position: absolute;
12534
- top: var(--spacing-4);
12535
- left: var(--spacing-4);
12536
- }
12537
-
12538
- /* Adjust corner position when selected (border is thicker) */
12539
- .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
12540
- top: calc(var(--spacing-4) - 1px);
12541
- left: calc(var(--spacing-4) - 1px);
12542
- }
12543
-
12544
- /* Icon */
12545
- .muka-checkbox-tile__icon {
12546
- display: flex;
12547
- align-items: center;
12548
- justify-content: center;
12549
- flex-shrink: 0;
12550
- width: var(--icon-size-default);
12551
- height: var(--icon-size-default);
12552
- color: var(--color-text-default-default);
12553
- }
12554
-
12555
- .muka-checkbox-tile__icon svg {
12556
- width: 100%;
12557
- height: 100%;
12558
- }
12559
-
12560
- /* Image */
12561
- .muka-checkbox-tile__image {
12562
- flex-shrink: 0;
12563
- overflow: hidden;
12564
- border-radius: var(--border-radius-sm);
12565
- }
12566
-
12567
- .muka-checkbox-tile__image img {
12568
- display: block;
12569
- width: 100%;
12570
- height: 100%;
12571
- object-fit: cover;
12572
- }
12573
-
12574
- /* Horizontal image sizing */
12575
- .muka-checkbox-tile__image--horizontal {
12576
- width: 40px;
12577
- height: 40px;
12578
- }
12579
-
12580
- /* Vertical image sizing */
12581
- .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
12582
- width: 100%;
12583
- aspect-ratio: 4/3;
12584
- }
12585
-
12586
- /* Content container */
12587
- .muka-checkbox-tile__content {
12588
- display: flex;
12589
- flex-direction: column;
12590
- flex: 1;
12591
- min-width: 0;
12592
- gap: var(--spacing-2);
12593
- }
12594
-
12595
- .muka-checkbox-tile__content-inner {
12596
- display: flex;
12597
- flex-direction: column;
12598
- gap: var(--spacing-1);
12599
- }
12600
-
12601
- /* Chip slot (replaces badge; use Chip component) */
12602
- .muka-checkbox-tile__chip {
12603
- flex-shrink: 0;
12604
- }
12605
-
12606
- .muka-checkbox-tile__chip--vertical {
12607
- margin-top: var(--spacing-1);
12608
- }
12609
-
12610
- /* Label */
12611
- .muka-checkbox-tile__label {
12612
- font-family: var(--text-body-lg-regular-fontFamily);
12613
- font-weight: var(--text-body-lg-regular-fontWeight);
12614
- font-size: var(--text-body-lg-regular-fontSize);
12615
- line-height: var(--text-body-lg-regular-lineHeight);
12616
- color: var(--color-text-default-default);
12617
- }
12618
-
12619
- .muka-checkbox-tile__label--bold {
12620
- font-family: var(--text-label-lg-semibold-fontFamily);
12621
- font-weight: var(--text-label-lg-semibold-fontWeight);
12622
- font-size: var(--text-label-lg-semibold-fontSize);
12623
- line-height: var(--text-label-lg-semibold-lineHeight);
12624
- }
12625
-
12626
- .muka-checkbox-tile__label--center {
12627
- text-align: center;
12628
- }
12629
-
12630
- /* Caption */
12631
- .muka-checkbox-tile__caption {
12632
- font-family: var(--text-body-base-regular-fontFamily);
12633
- font-weight: var(--text-body-base-regular-fontWeight);
12634
- font-size: var(--text-body-base-regular-fontSize);
12635
- line-height: var(--text-body-base-regular-lineHeight);
12636
- color: var(--color-text-subtle-default);
12637
- }
12638
-
12639
- /* Disabled states */
12640
- .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
12641
- .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
12642
- color: var(--color-text-subtle-default);
12643
- }
12644
-
12645
-
12646
- /* DropdownSelect */
12647
- /* DropdownSelect — Figma Dropdown Menu form field (Menu + chips) */
12648
-
12649
- .muka-dropdown-select {
12650
- display: inline-flex;
12651
- flex-direction: column;
12652
- gap: var(--spacing-2);
12653
- min-width: 200px;
12654
- }
12655
-
12656
- .muka-dropdown-select--full-width {
12657
- width: 100%;
12658
- }
12659
-
12660
- .muka-dropdown-select__label {
12661
- color: var(--color-text-default-default);
12662
- cursor: pointer;
12663
- }
12664
-
12665
- .muka-dropdown-select__label--sm {
12666
- font-family: var(--text-label-sm-semibold-fontFamily);
12667
- font-weight: var(--text-label-sm-semibold-fontWeight);
12668
- font-size: var(--text-label-sm-semibold-fontSize);
12669
- line-height: var(--text-label-sm-semibold-lineHeight);
12670
- }
12671
-
12672
- .muka-dropdown-select__label--md {
12673
- font-family: var(--text-label-md-semibold-fontFamily);
12674
- font-weight: var(--text-label-md-semibold-fontWeight);
12675
- font-size: var(--text-label-md-semibold-fontSize);
12676
- line-height: var(--text-label-md-semibold-lineHeight);
12677
- }
12678
-
12679
- .muka-dropdown-select__label--lg {
12680
- font-family: var(--text-label-lg-semibold-fontFamily);
12681
- font-weight: var(--text-label-lg-semibold-fontWeight);
12682
- font-size: var(--text-label-lg-semibold-fontSize);
12683
- line-height: var(--text-label-lg-semibold-lineHeight);
12684
- }
12685
-
12686
- .muka-dropdown-select__required {
12687
- color: var(--color-state-error-default);
12688
- }
12689
-
12690
- .muka-dropdown-select__field {
12691
- display: flex;
12692
- align-items: center;
12693
- gap: var(--spacing-1);
12694
- width: 100%;
12695
- position: relative;
12696
- box-sizing: border-box;
12697
- background-color: var(--input-field-color-default-background);
12698
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
12699
- border-radius: var(--input-field-radius-lg);
12700
- padding: var(--spacing-2);
12701
- padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem));
12702
- text-align: left;
12703
- cursor: pointer;
12704
- color: var(--color-text-default-default);
12705
- transition: border-color 0.12s ease, background-color 0.12s ease;
12706
- -webkit-tap-highlight-color: transparent;
12707
- }
12708
-
12709
- .muka-dropdown-select__field::after {
12710
- content: '';
12711
- position: absolute;
12712
- inset: 0;
12713
- border-radius: inherit;
12714
- box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
12715
- pointer-events: none;
12716
- }
12717
-
12718
- .muka-dropdown-select__field--sm {
12719
- min-height: var(--input-field-height-sm);
12720
- border-radius: var(--input-field-radius-sm);
12721
- padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem));
12722
- }
12723
-
12724
- .muka-dropdown-select__field--md {
12725
- min-height: var(--input-field-height-default);
12726
- border-radius: var(--input-field-radius-md);
12727
- }
12728
-
12729
- .muka-dropdown-select__field--lg {
12730
- min-height: var(--input-field-height-lg);
12731
- border-radius: var(--input-field-radius-lg);
12732
- }
12733
-
12734
- .muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
12735
- border-width: var(--border-width-bold);
12736
- border-color: var(--input-field-color-focus-border);
12737
- background-color: var(--input-field-color-focus-background);
12738
- padding: calc(var(--spacing-2) - 1px);
12739
- padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem) - 1px);
12740
- }
12741
-
12742
- .muka-dropdown-select__field--sm.muka-dropdown-select__field--focused:not(.muka-dropdown-select__field--disabled) {
12743
- padding-right: calc(var(--spacing-2) + var(--size-xl, 1.5rem) - 1px);
12744
- }
12745
-
12746
- .muka-dropdown-select__field--error:not(.muka-dropdown-select__field--disabled) {
12747
- border-color: var(--color-state-error-contrast);
12748
- }
12749
-
12750
- .muka-dropdown-select__field--disabled {
12751
- opacity: 0.5;
12752
- cursor: not-allowed;
12753
- }
12754
-
12755
- .muka-dropdown-select__content {
12756
- position: relative;
12757
- z-index: 1;
12758
- display: flex;
12759
- flex: 1 1 auto;
12760
- min-width: 0;
12761
- align-items: center;
12762
- /* Let empty-field / value clicks reach the full-field MenuTrigger underneath. */
12763
- pointer-events: none;
12764
- }
12765
-
12766
- .muka-dropdown-select__placeholder {
12767
- color: var(--color-text-subtle-default);
12768
- font-family: var(--text-label-md-regular-fontFamily);
12769
- font-size: var(--text-label-md-regular-fontSize);
12770
- font-weight: var(--text-label-md-regular-fontWeight);
12771
- line-height: var(--text-label-md-regular-lineHeight);
12772
- padding-inline: var(--spacing-1);
12773
- }
12774
-
12775
- .muka-dropdown-select__value {
12776
- font-family: var(--text-label-md-regular-fontFamily);
12777
- font-size: var(--text-label-md-regular-fontSize);
12778
- font-weight: var(--text-label-md-regular-fontWeight);
12779
- line-height: var(--text-label-md-regular-lineHeight);
12780
- padding-inline: var(--spacing-1);
12781
- white-space: nowrap;
12782
- overflow: hidden;
12783
- text-overflow: ellipsis;
12784
- }
12785
-
12786
- .muka-dropdown-select__chips {
12787
- display: flex;
12788
- flex: 1 1 auto;
12789
- flex-wrap: wrap;
12790
- gap: var(--spacing-2);
12791
- align-items: flex-start;
12792
- min-width: 0;
12793
- /* Chip remove controls must remain clickable above the field hit target. */
12794
- pointer-events: auto;
12795
- }
12796
-
12797
- .muka-dropdown-select__field--multiline {
12798
- align-items: flex-start;
12799
- min-height: 7rem;
12800
- }
12801
-
12802
- .muka-dropdown-select__menu-button {
12803
- position: absolute;
12804
- inset: 0;
12805
- z-index: 0;
12806
- display: inline-flex;
12807
- align-items: center;
12808
- justify-content: flex-end;
12809
- width: auto;
12810
- height: auto;
12811
- padding: 0;
12812
- padding-right: var(--spacing-2);
12813
- border: none;
12814
- border-radius: inherit;
12815
- background: transparent;
12816
- color: var(--color-text-subtle-default);
12817
- cursor: pointer;
12818
- }
12819
-
12820
- .muka-dropdown-select__field--multiline .muka-dropdown-select__menu-button {
12821
- align-items: flex-start;
12822
- padding-top: calc(var(--spacing-2) + 8px);
12823
- }
12824
-
12825
- .muka-dropdown-select__chevron {
12826
- display: inline-flex;
12827
- align-items: center;
12828
- justify-content: center;
12829
- width: var(--size-2xl, 2rem);
12830
- height: var(--size-2xl, 2rem);
12831
- pointer-events: none;
12832
- color: var(--color-text-subtle-default);
12833
- }
12834
-
12835
- .muka-dropdown-select__chevron .muka-icon,
12836
- .muka-dropdown-select__menu-button:hover .muka-dropdown-select__chevron,
12837
- .muka-dropdown-select__menu-button:hover .muka-icon {
12838
- color: var(--color-text-subtle-default);
12839
- }
12840
-
12841
- .muka-dropdown-select__field--sm .muka-dropdown-select__chevron {
12842
- width: var(--size-xl, 1.5rem);
12843
- height: var(--size-xl, 1.5rem);
12844
- }
12845
-
12846
- .muka-dropdown-select__menu-button:focus-visible {
12847
- outline: 2px solid var(--color-border-focus, var(--color-action-default));
12848
- outline-offset: 2px;
12849
- }
12850
-
12851
- .muka-dropdown-select__helper {
12852
- margin: 0;
12853
- color: var(--color-text-subtle-default);
12854
- font-family: var(--text-label-sm-regular-fontFamily);
12855
- font-size: var(--text-label-sm-regular-fontSize);
12856
- font-weight: var(--text-label-sm-regular-fontWeight);
12857
- line-height: var(--text-label-sm-regular-lineHeight);
12858
- }
12859
-
12860
- .muka-dropdown-select__error {
12861
- margin: 0;
12862
- color: var(--color-state-error-default);
12863
- font-family: var(--text-label-sm-regular-fontFamily);
12864
- font-size: var(--text-label-sm-regular-fontSize);
12865
- font-weight: var(--text-label-sm-regular-fontWeight);
12866
- line-height: var(--text-label-sm-regular-lineHeight);
12867
- }
12868
-
12869
- .muka-dropdown-select__menu {
12870
- /* Uses Menu min-width (280px); grows with long labels; left-aligned to the field. */
12871
- }
12872
-
12873
-
12874
12900
  /* Checkbox */
12875
12901
  /* Checkbox Component Styles - Using Muka Design Tokens */
12876
12902