@revikornmann/muka-ui 0.36.0 → 0.37.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.
Files changed (85) hide show
  1. package/cli/bin/muka-ui.js +18 -0
  2. package/cli/commands/check.js +174 -0
  3. package/cli/commands/init.js +8 -20
  4. package/cli/commands/install-skill.js +37 -26
  5. package/cli/commands/sync.js +90 -0
  6. package/cli/lib/agents-block.js +139 -0
  7. package/cli/lib/skills.js +182 -0
  8. package/cli/templates/{AGENTS.md → agents-block.md} +53 -16
  9. package/dist/cjs/components/Dialog/Dialog.css +10 -0
  10. package/dist/cjs/components/Dialog/Dialog.js +58 -48
  11. package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
  12. package/dist/cjs/components/Dialog/index.js +5 -1
  13. package/dist/cjs/components/Dialog/index.js.map +1 -1
  14. package/dist/cjs/components/Drawer/Drawer.css +4 -24
  15. package/dist/cjs/components/Drawer/Drawer.js +20 -10
  16. package/dist/cjs/components/Drawer/Drawer.js.map +1 -1
  17. package/dist/cjs/components/NumberInput/NumberInput.js +88 -3
  18. package/dist/cjs/components/NumberInput/NumberInput.js.map +1 -1
  19. package/dist/cjs/components/Toggle/Toggle.js +2 -2
  20. package/dist/cjs/components/Toggle/Toggle.js.map +1 -1
  21. package/dist/cjs/components/TopBar/TopBar.css +11 -10
  22. package/dist/cjs/components/TopBar/TopBar.js +33 -3
  23. package/dist/cjs/components/TopBar/TopBar.js.map +1 -1
  24. package/dist/cjs/components/View/View.js +11 -12
  25. package/dist/cjs/components/View/View.js.map +1 -1
  26. package/dist/cjs/components/index.js +6 -3
  27. package/dist/cjs/components/index.js.map +1 -1
  28. package/dist/cjs/utils/useDismissGuard.js +85 -0
  29. package/dist/cjs/utils/useDismissGuard.js.map +1 -0
  30. package/dist/esm/components/Dialog/Dialog.css +10 -0
  31. package/dist/esm/components/Dialog/Dialog.js +57 -49
  32. package/dist/esm/components/Dialog/Dialog.js.map +1 -1
  33. package/dist/esm/components/Dialog/index.js +2 -1
  34. package/dist/esm/components/Dialog/index.js.map +1 -1
  35. package/dist/esm/components/Drawer/Drawer.css +4 -24
  36. package/dist/esm/components/Drawer/Drawer.js +21 -11
  37. package/dist/esm/components/Drawer/Drawer.js.map +1 -1
  38. package/dist/esm/components/NumberInput/NumberInput.js +88 -3
  39. package/dist/esm/components/NumberInput/NumberInput.js.map +1 -1
  40. package/dist/esm/components/Toggle/Toggle.js +2 -2
  41. package/dist/esm/components/Toggle/Toggle.js.map +1 -1
  42. package/dist/esm/components/TopBar/TopBar.css +11 -10
  43. package/dist/esm/components/TopBar/TopBar.js +30 -3
  44. package/dist/esm/components/TopBar/TopBar.js.map +1 -1
  45. package/dist/esm/components/View/View.js +11 -12
  46. package/dist/esm/components/View/View.js.map +1 -1
  47. package/dist/esm/components/index.js +1 -1
  48. package/dist/esm/components/index.js.map +1 -1
  49. package/dist/esm/utils/useDismissGuard.js +79 -0
  50. package/dist/esm/utils/useDismissGuard.js.map +1 -0
  51. package/dist/styles/components/Dialog.css +10 -0
  52. package/dist/styles/components/Drawer.css +4 -24
  53. package/dist/styles/index.css +383 -393
  54. package/dist/styles/muka-dark.css +383 -393
  55. package/dist/styles/muka-light.css +383 -393
  56. package/dist/styles/wireframe-dark.css +383 -393
  57. package/dist/styles/wireframe-light.css +383 -393
  58. package/dist/types/components/Dialog/Dialog.d.ts +51 -11
  59. package/dist/types/components/Dialog/Dialog.d.ts.map +1 -1
  60. package/dist/types/components/Dialog/index.d.ts +2 -1
  61. package/dist/types/components/Dialog/index.d.ts.map +1 -1
  62. package/dist/types/components/Drawer/Drawer.d.ts +35 -5
  63. package/dist/types/components/Drawer/Drawer.d.ts.map +1 -1
  64. package/dist/types/components/NumberInput/NumberInput.d.ts +9 -0
  65. package/dist/types/components/NumberInput/NumberInput.d.ts.map +1 -1
  66. package/dist/types/components/Toggle/Toggle.d.ts +6 -0
  67. package/dist/types/components/Toggle/Toggle.d.ts.map +1 -1
  68. package/dist/types/components/TopBar/TopBar.d.ts +12 -1
  69. package/dist/types/components/TopBar/TopBar.d.ts.map +1 -1
  70. package/dist/types/components/View/View.d.ts +4 -3
  71. package/dist/types/components/View/View.d.ts.map +1 -1
  72. package/dist/types/components/index.d.ts +1 -1
  73. package/dist/types/components/index.d.ts.map +1 -1
  74. package/dist/types/utils/useDismissGuard.d.ts +68 -0
  75. package/dist/types/utils/useDismissGuard.d.ts.map +1 -0
  76. package/docs/consumers/README.md +6 -2
  77. package/docs/consumers/dialogs.md +102 -0
  78. package/docs/consumers/setup-instructions.md +55 -9
  79. package/docs/consumers/skills.md +29 -13
  80. package/eslint/index.js +284 -0
  81. package/package.json +14 -2
  82. package/skills/setup-muka/SKILL.md +59 -7
  83. package/templates/muka-check.yml +45 -0
  84. package/templates/update-muka.yml +17 -4
  85. package/cli/templates/CLAUDE.md +0 -15
@@ -10402,6 +10402,147 @@ li.muka-listitem {
10402
10402
  }
10403
10403
 
10404
10404
 
10405
+ /* EmptyState */
10406
+ /* EmptyState Component Styles - Using Muka Design Tokens */
10407
+
10408
+ .muka-emptystate {
10409
+ display: flex;
10410
+ flex-direction: column;
10411
+ align-items: center;
10412
+ justify-content: center;
10413
+ gap: var(--emptystate-container-gap);
10414
+ max-width: var(--emptystate-container-maxWidth);
10415
+ margin: 0 auto;
10416
+ text-align: center;
10417
+ }
10418
+
10419
+ /* Alignment variants */
10420
+ .muka-emptystate--left {
10421
+ align-items: flex-start;
10422
+ text-align: left;
10423
+ }
10424
+
10425
+ /* Size variants */
10426
+ .muka-emptystate--sm {
10427
+ padding: var(--emptystate-container-padding-sm);
10428
+ }
10429
+
10430
+ .muka-emptystate--md {
10431
+ padding: var(--emptystate-container-padding-md);
10432
+ }
10433
+
10434
+ .muka-emptystate--lg {
10435
+ padding: var(--emptystate-container-padding-lg);
10436
+ }
10437
+
10438
+ /* Visual (icon or illustration) */
10439
+ .muka-emptystate__visual {
10440
+ display: flex;
10441
+ align-items: center;
10442
+ justify-content: center;
10443
+ color: var(--emptystate-icon-color);
10444
+ flex-shrink: 0;
10445
+ }
10446
+
10447
+ .muka-emptystate--sm .muka-emptystate__visual {
10448
+ width: var(--emptystate-icon-size-sm);
10449
+ height: var(--emptystate-icon-size-sm);
10450
+ }
10451
+
10452
+ .muka-emptystate--md .muka-emptystate__visual {
10453
+ width: var(--emptystate-icon-size-md);
10454
+ height: var(--emptystate-icon-size-md);
10455
+ }
10456
+
10457
+ .muka-emptystate--lg .muka-emptystate__visual {
10458
+ width: var(--emptystate-icon-size-lg);
10459
+ height: var(--emptystate-icon-size-lg);
10460
+ }
10461
+
10462
+ .muka-emptystate__visual svg {
10463
+ width: 100%;
10464
+ height: 100%;
10465
+ }
10466
+
10467
+ .muka-emptystate__visual img {
10468
+ width: 100%;
10469
+ height: 100%;
10470
+ object-fit: contain;
10471
+ }
10472
+
10473
+ /* Content */
10474
+ .muka-emptystate__content {
10475
+ display: flex;
10476
+ flex-direction: column;
10477
+ gap: var(--spacing-2);
10478
+ }
10479
+
10480
+ .muka-emptystate--left .muka-emptystate__content {
10481
+ align-items: flex-start;
10482
+ }
10483
+
10484
+ /* Title */
10485
+ .muka-emptystate__title {
10486
+ color: var(--emptystate-title-color);
10487
+ margin: 0;
10488
+ font-family: var(--text-heading-sm-fontFamily);
10489
+ font-weight: var(--text-heading-sm-fontWeight);
10490
+ font-size: var(--text-heading-sm-fontSize);
10491
+ line-height: var(--text-heading-sm-lineHeight);
10492
+ }
10493
+
10494
+ .muka-emptystate--sm .muka-emptystate__title {
10495
+ font-family: var(--text-label-lg-semibold-fontFamily);
10496
+ font-weight: var(--text-label-lg-semibold-fontWeight);
10497
+ font-size: var(--text-label-lg-semibold-fontSize);
10498
+ line-height: var(--text-label-lg-semibold-lineHeight);
10499
+ }
10500
+
10501
+ .muka-emptystate--lg .muka-emptystate__title {
10502
+ font-family: var(--text-heading-md-fontFamily);
10503
+ font-weight: var(--text-heading-md-fontWeight);
10504
+ font-size: var(--text-heading-md-fontSize);
10505
+ line-height: var(--text-heading-md-lineHeight);
10506
+ }
10507
+
10508
+ /* Description */
10509
+ .muka-emptystate__description {
10510
+ color: var(--emptystate-description-color);
10511
+ margin: 0;
10512
+ font-family: var(--text-body-sm-regular-fontFamily);
10513
+ font-weight: var(--text-body-sm-regular-fontWeight);
10514
+ font-size: var(--text-body-sm-regular-fontSize);
10515
+ line-height: var(--text-body-sm-regular-lineHeight);
10516
+ }
10517
+
10518
+ .muka-emptystate--md .muka-emptystate__description {
10519
+ font-family: var(--text-body-base-regular-fontFamily);
10520
+ font-weight: var(--text-body-base-regular-fontWeight);
10521
+ font-size: var(--text-body-base-regular-fontSize);
10522
+ line-height: var(--text-body-base-regular-lineHeight);
10523
+ }
10524
+
10525
+ .muka-emptystate--lg .muka-emptystate__description {
10526
+ font-family: var(--text-body-lg-regular-fontFamily);
10527
+ font-weight: var(--text-body-lg-regular-fontWeight);
10528
+ font-size: var(--text-body-lg-regular-fontSize);
10529
+ line-height: var(--text-body-lg-regular-lineHeight);
10530
+ }
10531
+
10532
+ /* Actions */
10533
+ .muka-emptystate__actions {
10534
+ display: flex;
10535
+ gap: var(--emptystate-actions-gap);
10536
+ margin-top: var(--emptystate-actions-marginTop);
10537
+ flex-wrap: wrap;
10538
+ justify-content: center;
10539
+ }
10540
+
10541
+ .muka-emptystate--left .muka-emptystate__actions {
10542
+ justify-content: flex-start;
10543
+ }
10544
+
10545
+
10405
10546
  /* EmojiPicker */
10406
10547
  /* EmojiPicker Component Styles */
10407
10548
 
@@ -10652,147 +10793,6 @@ li.muka-listitem {
10652
10793
  }
10653
10794
 
10654
10795
 
10655
- /* EmptyState */
10656
- /* EmptyState Component Styles - Using Muka Design Tokens */
10657
-
10658
- .muka-emptystate {
10659
- display: flex;
10660
- flex-direction: column;
10661
- align-items: center;
10662
- justify-content: center;
10663
- gap: var(--emptystate-container-gap);
10664
- max-width: var(--emptystate-container-maxWidth);
10665
- margin: 0 auto;
10666
- text-align: center;
10667
- }
10668
-
10669
- /* Alignment variants */
10670
- .muka-emptystate--left {
10671
- align-items: flex-start;
10672
- text-align: left;
10673
- }
10674
-
10675
- /* Size variants */
10676
- .muka-emptystate--sm {
10677
- padding: var(--emptystate-container-padding-sm);
10678
- }
10679
-
10680
- .muka-emptystate--md {
10681
- padding: var(--emptystate-container-padding-md);
10682
- }
10683
-
10684
- .muka-emptystate--lg {
10685
- padding: var(--emptystate-container-padding-lg);
10686
- }
10687
-
10688
- /* Visual (icon or illustration) */
10689
- .muka-emptystate__visual {
10690
- display: flex;
10691
- align-items: center;
10692
- justify-content: center;
10693
- color: var(--emptystate-icon-color);
10694
- flex-shrink: 0;
10695
- }
10696
-
10697
- .muka-emptystate--sm .muka-emptystate__visual {
10698
- width: var(--emptystate-icon-size-sm);
10699
- height: var(--emptystate-icon-size-sm);
10700
- }
10701
-
10702
- .muka-emptystate--md .muka-emptystate__visual {
10703
- width: var(--emptystate-icon-size-md);
10704
- height: var(--emptystate-icon-size-md);
10705
- }
10706
-
10707
- .muka-emptystate--lg .muka-emptystate__visual {
10708
- width: var(--emptystate-icon-size-lg);
10709
- height: var(--emptystate-icon-size-lg);
10710
- }
10711
-
10712
- .muka-emptystate__visual svg {
10713
- width: 100%;
10714
- height: 100%;
10715
- }
10716
-
10717
- .muka-emptystate__visual img {
10718
- width: 100%;
10719
- height: 100%;
10720
- object-fit: contain;
10721
- }
10722
-
10723
- /* Content */
10724
- .muka-emptystate__content {
10725
- display: flex;
10726
- flex-direction: column;
10727
- gap: var(--spacing-2);
10728
- }
10729
-
10730
- .muka-emptystate--left .muka-emptystate__content {
10731
- align-items: flex-start;
10732
- }
10733
-
10734
- /* Title */
10735
- .muka-emptystate__title {
10736
- color: var(--emptystate-title-color);
10737
- margin: 0;
10738
- font-family: var(--text-heading-sm-fontFamily);
10739
- font-weight: var(--text-heading-sm-fontWeight);
10740
- font-size: var(--text-heading-sm-fontSize);
10741
- line-height: var(--text-heading-sm-lineHeight);
10742
- }
10743
-
10744
- .muka-emptystate--sm .muka-emptystate__title {
10745
- font-family: var(--text-label-lg-semibold-fontFamily);
10746
- font-weight: var(--text-label-lg-semibold-fontWeight);
10747
- font-size: var(--text-label-lg-semibold-fontSize);
10748
- line-height: var(--text-label-lg-semibold-lineHeight);
10749
- }
10750
-
10751
- .muka-emptystate--lg .muka-emptystate__title {
10752
- font-family: var(--text-heading-md-fontFamily);
10753
- font-weight: var(--text-heading-md-fontWeight);
10754
- font-size: var(--text-heading-md-fontSize);
10755
- line-height: var(--text-heading-md-lineHeight);
10756
- }
10757
-
10758
- /* Description */
10759
- .muka-emptystate__description {
10760
- color: var(--emptystate-description-color);
10761
- margin: 0;
10762
- font-family: var(--text-body-sm-regular-fontFamily);
10763
- font-weight: var(--text-body-sm-regular-fontWeight);
10764
- font-size: var(--text-body-sm-regular-fontSize);
10765
- line-height: var(--text-body-sm-regular-lineHeight);
10766
- }
10767
-
10768
- .muka-emptystate--md .muka-emptystate__description {
10769
- font-family: var(--text-body-base-regular-fontFamily);
10770
- font-weight: var(--text-body-base-regular-fontWeight);
10771
- font-size: var(--text-body-base-regular-fontSize);
10772
- line-height: var(--text-body-base-regular-lineHeight);
10773
- }
10774
-
10775
- .muka-emptystate--lg .muka-emptystate__description {
10776
- font-family: var(--text-body-lg-regular-fontFamily);
10777
- font-weight: var(--text-body-lg-regular-fontWeight);
10778
- font-size: var(--text-body-lg-regular-fontSize);
10779
- line-height: var(--text-body-lg-regular-lineHeight);
10780
- }
10781
-
10782
- /* Actions */
10783
- .muka-emptystate__actions {
10784
- display: flex;
10785
- gap: var(--emptystate-actions-gap);
10786
- margin-top: var(--emptystate-actions-marginTop);
10787
- flex-wrap: wrap;
10788
- justify-content: center;
10789
- }
10790
-
10791
- .muka-emptystate--left .muka-emptystate__actions {
10792
- justify-content: flex-start;
10793
- }
10794
-
10795
-
10796
10796
  /* Drawer */
10797
10797
  /* Drawer Component Styles */
10798
10798
 
@@ -10907,30 +10907,10 @@ li.muka-listitem {
10907
10907
  max-height: 100vh;
10908
10908
  }
10909
10909
 
10910
- /* Header */
10911
- .muka-drawer__header {
10912
- display: flex;
10913
- align-items: center;
10914
- gap: var(--spacing-3);
10915
- padding: var(--spacing-4);
10916
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
10917
- flex-shrink: 0;
10918
- }
10919
-
10920
- .muka-drawer__title {
10921
- flex: 1;
10922
- margin: 0;
10923
- font-family: var(--text-label-lg-semibold-fontFamily);
10924
- font-weight: var(--text-label-lg-semibold-fontWeight);
10925
- font-size: var(--text-label-lg-semibold-fontSize);
10926
- line-height: var(--text-label-lg-semibold-lineHeight);
10927
- color: var(--color-text-default-default);
10928
- }
10929
-
10930
- .muka-drawer__leading,
10931
- .muka-drawer__trailing {
10932
- display: flex;
10933
- align-items: center;
10910
+ /* Header: the shared TopBar, raised above the scrolling body like in Dialog */
10911
+ .muka-drawer .muka-topbar {
10912
+ position: relative;
10913
+ z-index: 1;
10934
10914
  flex-shrink: 0;
10935
10915
  }
10936
10916
 
@@ -11525,6 +11505,16 @@ li.muka-listitem {
11525
11505
  box-shadow: var(--shadow-level2);
11526
11506
  }
11527
11507
 
11508
+ /* ─── Discard confirmation ────────────────────────────── */
11509
+
11510
+ .muka-dialog__discard-message {
11511
+ margin: 0;
11512
+ color: var(--color-text-subtle-default);
11513
+ font-family: var(--text-body-base-regular-fontFamily);
11514
+ font-size: var(--text-body-base-regular-fontSize);
11515
+ line-height: var(--text-body-base-regular-lineHeight);
11516
+ }
11517
+
11528
11518
 
11529
11519
  /* DatePicker */
11530
11520
  /* DatePicker — compact native date field. */
@@ -12384,248 +12374,90 @@ li.muka-listitem {
12384
12374
  padding: calc(var(--spacing-2) - 1px);
12385
12375
  }
12386
12376
 
12387
- .muka-combobox__field--error:not(.muka-combobox__field--disabled) {
12388
- border-color: var(--color-state-error-contrast);
12389
- }
12390
-
12391
- .muka-combobox__field--disabled {
12392
- opacity: 0.5;
12393
- cursor: not-allowed;
12394
- }
12395
-
12396
- .muka-combobox__field--multiline {
12397
- align-items: flex-start;
12398
- min-height: 7rem;
12399
- }
12400
-
12401
- .muka-combobox__chips {
12402
- display: flex;
12403
- flex: 1 1 auto;
12404
- flex-wrap: wrap;
12405
- gap: var(--spacing-2);
12406
- align-items: center;
12407
- min-width: 0;
12408
- width: 100%;
12409
- position: relative;
12410
- z-index: 1;
12411
- }
12412
-
12413
- .muka-combobox__input {
12414
- flex: 1 1 5rem;
12415
- min-width: 5rem;
12416
- min-height: 2rem;
12417
- margin: 0;
12418
- padding: 0 var(--spacing-1);
12419
- border: none;
12420
- outline: none;
12421
- background: transparent;
12422
- color: var(--input-field-color-default-foreground);
12423
- caret-color: var(--input-field-color-default-foreground);
12424
- font-family: var(--text-label-md-regular-fontFamily);
12425
- font-size: var(--text-label-md-regular-fontSize);
12426
- font-weight: var(--text-label-md-regular-fontWeight);
12427
- line-height: var(--text-label-md-regular-lineHeight);
12428
- }
12429
-
12430
- .muka-combobox__input::placeholder {
12431
- color: var(--color-text-subtle-default);
12432
- }
12433
-
12434
- .muka-combobox__helper {
12435
- margin: 0;
12436
- color: var(--color-text-subtle-default);
12437
- font-family: var(--text-label-sm-regular-fontFamily);
12438
- font-size: var(--text-label-sm-regular-fontSize);
12439
- font-weight: var(--text-label-sm-regular-fontWeight);
12440
- line-height: var(--text-label-sm-regular-lineHeight);
12441
- }
12442
-
12443
- .muka-combobox__error {
12444
- margin: 0;
12445
- color: var(--color-state-error-default);
12446
- font-family: var(--text-label-sm-regular-fontFamily);
12447
- font-size: var(--text-label-sm-regular-fontSize);
12448
- font-weight: var(--text-label-sm-regular-fontWeight);
12449
- line-height: var(--text-label-sm-regular-lineHeight);
12450
- }
12451
-
12452
- .muka-combobox__menu-anchor {
12453
- position: absolute;
12454
- inset: 0;
12455
- z-index: 0;
12456
- width: 100%;
12457
- height: 100%;
12458
- margin: 0;
12459
- padding: 0;
12460
- border: none;
12461
- background: transparent;
12462
- pointer-events: none;
12463
- opacity: 0;
12464
- }
12465
-
12466
- .muka-combobox__menu {
12467
- /* Prefer Menu token min-width (280px); may exceed the field when left-aligned. */
12468
- min-width: var(--menu-content-min-width);
12469
- width: max-content;
12470
- max-width: min(100vw - 2rem, 24rem);
12471
- }
12472
-
12473
-
12474
- /* CheckboxTile */
12475
- /* CheckboxTile Component Styles - Using Muka Design Tokens */
12476
-
12477
- /* Base tile styles - horizontal */
12478
- .muka-checkbox-tile {
12479
- display: flex;
12480
- align-items: center;
12481
- gap: var(--spacing-4);
12482
- padding: var(--spacing-4);
12483
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
12484
- border-radius: var(--input-field-radius-lg);
12485
- background-color: var(--color-surface-level3);
12486
- cursor: pointer;
12487
- transition: border-color 0.15s ease, border-width 0.15s ease;
12488
- overflow: hidden;
12489
- box-sizing: border-box;
12490
- }
12491
-
12492
- .muka-checkbox-tile--disabled {
12493
- cursor: not-allowed;
12494
- opacity: 0.6;
12495
- }
12496
-
12497
- /* Selected state */
12498
- .muka-checkbox-tile[data-checked] {
12499
- border-width: var(--border-width-bold);
12500
- border-color: var(--color-action-default);
12501
- }
12502
-
12503
- /* Vertical layout */
12504
- .muka-checkbox-tile--vertical {
12505
- flex-direction: column;
12506
- align-items: center;
12507
- gap: var(--spacing-2);
12508
- position: relative;
12509
- width: 160px;
12510
- }
12511
-
12512
- /* Checkbox container */
12513
- .muka-checkbox-tile__checkbox {
12514
- flex-shrink: 0;
12515
- }
12516
-
12517
- /* Corner-positioned checkbox for vertical */
12518
- .muka-checkbox-tile__checkbox--corner {
12519
- position: absolute;
12520
- top: var(--spacing-4);
12521
- left: var(--spacing-4);
12522
- }
12523
-
12524
- /* Adjust corner position when selected (border is thicker) */
12525
- .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
12526
- top: calc(var(--spacing-4) - 1px);
12527
- left: calc(var(--spacing-4) - 1px);
12528
- }
12529
-
12530
- /* Icon */
12531
- .muka-checkbox-tile__icon {
12532
- display: flex;
12533
- align-items: center;
12534
- justify-content: center;
12535
- flex-shrink: 0;
12536
- width: var(--icon-size-default);
12537
- height: var(--icon-size-default);
12538
- color: var(--color-text-default-default);
12539
- }
12540
-
12541
- .muka-checkbox-tile__icon svg {
12542
- width: 100%;
12543
- height: 100%;
12544
- }
12545
-
12546
- /* Image */
12547
- .muka-checkbox-tile__image {
12548
- flex-shrink: 0;
12549
- overflow: hidden;
12550
- border-radius: var(--border-radius-sm);
12551
- }
12552
-
12553
- .muka-checkbox-tile__image img {
12554
- display: block;
12555
- width: 100%;
12556
- height: 100%;
12557
- object-fit: cover;
12558
- }
12559
-
12560
- /* Horizontal image sizing */
12561
- .muka-checkbox-tile__image--horizontal {
12562
- width: 40px;
12563
- height: 40px;
12564
- }
12565
-
12566
- /* Vertical image sizing */
12567
- .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
12568
- width: 100%;
12569
- aspect-ratio: 4/3;
12570
- }
12571
-
12572
- /* Content container */
12573
- .muka-checkbox-tile__content {
12574
- display: flex;
12575
- flex-direction: column;
12576
- flex: 1;
12577
- min-width: 0;
12578
- gap: var(--spacing-2);
12579
- }
12580
-
12581
- .muka-checkbox-tile__content-inner {
12582
- display: flex;
12583
- flex-direction: column;
12584
- gap: var(--spacing-1);
12585
- }
12586
-
12587
- /* Chip slot (replaces badge; use Chip component) */
12588
- .muka-checkbox-tile__chip {
12589
- flex-shrink: 0;
12377
+ .muka-combobox__field--error:not(.muka-combobox__field--disabled) {
12378
+ border-color: var(--color-state-error-contrast);
12590
12379
  }
12591
12380
 
12592
- .muka-checkbox-tile__chip--vertical {
12593
- margin-top: var(--spacing-1);
12381
+ .muka-combobox__field--disabled {
12382
+ opacity: 0.5;
12383
+ cursor: not-allowed;
12594
12384
  }
12595
12385
 
12596
- /* Label */
12597
- .muka-checkbox-tile__label {
12598
- font-family: var(--text-body-lg-regular-fontFamily);
12599
- font-weight: var(--text-body-lg-regular-fontWeight);
12600
- font-size: var(--text-body-lg-regular-fontSize);
12601
- line-height: var(--text-body-lg-regular-lineHeight);
12602
- color: var(--color-text-default-default);
12386
+ .muka-combobox__field--multiline {
12387
+ align-items: flex-start;
12388
+ min-height: 7rem;
12603
12389
  }
12604
12390
 
12605
- .muka-checkbox-tile__label--bold {
12606
- font-family: var(--text-label-lg-semibold-fontFamily);
12607
- font-weight: var(--text-label-lg-semibold-fontWeight);
12608
- font-size: var(--text-label-lg-semibold-fontSize);
12609
- line-height: var(--text-label-lg-semibold-lineHeight);
12391
+ .muka-combobox__chips {
12392
+ display: flex;
12393
+ flex: 1 1 auto;
12394
+ flex-wrap: wrap;
12395
+ gap: var(--spacing-2);
12396
+ align-items: center;
12397
+ min-width: 0;
12398
+ width: 100%;
12399
+ position: relative;
12400
+ z-index: 1;
12610
12401
  }
12611
12402
 
12612
- .muka-checkbox-tile__label--center {
12613
- text-align: center;
12403
+ .muka-combobox__input {
12404
+ flex: 1 1 5rem;
12405
+ min-width: 5rem;
12406
+ min-height: 2rem;
12407
+ margin: 0;
12408
+ padding: 0 var(--spacing-1);
12409
+ border: none;
12410
+ outline: none;
12411
+ background: transparent;
12412
+ color: var(--input-field-color-default-foreground);
12413
+ caret-color: var(--input-field-color-default-foreground);
12414
+ font-family: var(--text-label-md-regular-fontFamily);
12415
+ font-size: var(--text-label-md-regular-fontSize);
12416
+ font-weight: var(--text-label-md-regular-fontWeight);
12417
+ line-height: var(--text-label-md-regular-lineHeight);
12614
12418
  }
12615
12419
 
12616
- /* Caption */
12617
- .muka-checkbox-tile__caption {
12618
- font-family: var(--text-body-base-regular-fontFamily);
12619
- font-weight: var(--text-body-base-regular-fontWeight);
12620
- font-size: var(--text-body-base-regular-fontSize);
12621
- line-height: var(--text-body-base-regular-lineHeight);
12420
+ .muka-combobox__input::placeholder {
12622
12421
  color: var(--color-text-subtle-default);
12623
12422
  }
12624
12423
 
12625
- /* Disabled states */
12626
- .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
12627
- .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
12424
+ .muka-combobox__helper {
12425
+ margin: 0;
12628
12426
  color: var(--color-text-subtle-default);
12427
+ font-family: var(--text-label-sm-regular-fontFamily);
12428
+ font-size: var(--text-label-sm-regular-fontSize);
12429
+ font-weight: var(--text-label-sm-regular-fontWeight);
12430
+ line-height: var(--text-label-sm-regular-lineHeight);
12431
+ }
12432
+
12433
+ .muka-combobox__error {
12434
+ margin: 0;
12435
+ color: var(--color-state-error-default);
12436
+ font-family: var(--text-label-sm-regular-fontFamily);
12437
+ font-size: var(--text-label-sm-regular-fontSize);
12438
+ font-weight: var(--text-label-sm-regular-fontWeight);
12439
+ line-height: var(--text-label-sm-regular-lineHeight);
12440
+ }
12441
+
12442
+ .muka-combobox__menu-anchor {
12443
+ position: absolute;
12444
+ inset: 0;
12445
+ z-index: 0;
12446
+ width: 100%;
12447
+ height: 100%;
12448
+ margin: 0;
12449
+ padding: 0;
12450
+ border: none;
12451
+ background: transparent;
12452
+ pointer-events: none;
12453
+ opacity: 0;
12454
+ }
12455
+
12456
+ .muka-combobox__menu {
12457
+ /* Prefer Menu token min-width (280px); may exceed the field when left-aligned. */
12458
+ min-width: var(--menu-content-min-width);
12459
+ width: max-content;
12460
+ max-width: min(100vw - 2rem, 24rem);
12629
12461
  }
12630
12462
 
12631
12463
 
@@ -12930,6 +12762,164 @@ li.muka-listitem {
12930
12762
  }
12931
12763
 
12932
12764
 
12765
+ /* CheckboxTile */
12766
+ /* CheckboxTile Component Styles - Using Muka Design Tokens */
12767
+
12768
+ /* Base tile styles - horizontal */
12769
+ .muka-checkbox-tile {
12770
+ display: flex;
12771
+ align-items: center;
12772
+ gap: var(--spacing-4);
12773
+ padding: var(--spacing-4);
12774
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
12775
+ border-radius: var(--input-field-radius-lg);
12776
+ background-color: var(--color-surface-level3);
12777
+ cursor: pointer;
12778
+ transition: border-color 0.15s ease, border-width 0.15s ease;
12779
+ overflow: hidden;
12780
+ box-sizing: border-box;
12781
+ }
12782
+
12783
+ .muka-checkbox-tile--disabled {
12784
+ cursor: not-allowed;
12785
+ opacity: 0.6;
12786
+ }
12787
+
12788
+ /* Selected state */
12789
+ .muka-checkbox-tile[data-checked] {
12790
+ border-width: var(--border-width-bold);
12791
+ border-color: var(--color-action-default);
12792
+ }
12793
+
12794
+ /* Vertical layout */
12795
+ .muka-checkbox-tile--vertical {
12796
+ flex-direction: column;
12797
+ align-items: center;
12798
+ gap: var(--spacing-2);
12799
+ position: relative;
12800
+ width: 160px;
12801
+ }
12802
+
12803
+ /* Checkbox container */
12804
+ .muka-checkbox-tile__checkbox {
12805
+ flex-shrink: 0;
12806
+ }
12807
+
12808
+ /* Corner-positioned checkbox for vertical */
12809
+ .muka-checkbox-tile__checkbox--corner {
12810
+ position: absolute;
12811
+ top: var(--spacing-4);
12812
+ left: var(--spacing-4);
12813
+ }
12814
+
12815
+ /* Adjust corner position when selected (border is thicker) */
12816
+ .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
12817
+ top: calc(var(--spacing-4) - 1px);
12818
+ left: calc(var(--spacing-4) - 1px);
12819
+ }
12820
+
12821
+ /* Icon */
12822
+ .muka-checkbox-tile__icon {
12823
+ display: flex;
12824
+ align-items: center;
12825
+ justify-content: center;
12826
+ flex-shrink: 0;
12827
+ width: var(--icon-size-default);
12828
+ height: var(--icon-size-default);
12829
+ color: var(--color-text-default-default);
12830
+ }
12831
+
12832
+ .muka-checkbox-tile__icon svg {
12833
+ width: 100%;
12834
+ height: 100%;
12835
+ }
12836
+
12837
+ /* Image */
12838
+ .muka-checkbox-tile__image {
12839
+ flex-shrink: 0;
12840
+ overflow: hidden;
12841
+ border-radius: var(--border-radius-sm);
12842
+ }
12843
+
12844
+ .muka-checkbox-tile__image img {
12845
+ display: block;
12846
+ width: 100%;
12847
+ height: 100%;
12848
+ object-fit: cover;
12849
+ }
12850
+
12851
+ /* Horizontal image sizing */
12852
+ .muka-checkbox-tile__image--horizontal {
12853
+ width: 40px;
12854
+ height: 40px;
12855
+ }
12856
+
12857
+ /* Vertical image sizing */
12858
+ .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
12859
+ width: 100%;
12860
+ aspect-ratio: 4/3;
12861
+ }
12862
+
12863
+ /* Content container */
12864
+ .muka-checkbox-tile__content {
12865
+ display: flex;
12866
+ flex-direction: column;
12867
+ flex: 1;
12868
+ min-width: 0;
12869
+ gap: var(--spacing-2);
12870
+ }
12871
+
12872
+ .muka-checkbox-tile__content-inner {
12873
+ display: flex;
12874
+ flex-direction: column;
12875
+ gap: var(--spacing-1);
12876
+ }
12877
+
12878
+ /* Chip slot (replaces badge; use Chip component) */
12879
+ .muka-checkbox-tile__chip {
12880
+ flex-shrink: 0;
12881
+ }
12882
+
12883
+ .muka-checkbox-tile__chip--vertical {
12884
+ margin-top: var(--spacing-1);
12885
+ }
12886
+
12887
+ /* Label */
12888
+ .muka-checkbox-tile__label {
12889
+ font-family: var(--text-body-lg-regular-fontFamily);
12890
+ font-weight: var(--text-body-lg-regular-fontWeight);
12891
+ font-size: var(--text-body-lg-regular-fontSize);
12892
+ line-height: var(--text-body-lg-regular-lineHeight);
12893
+ color: var(--color-text-default-default);
12894
+ }
12895
+
12896
+ .muka-checkbox-tile__label--bold {
12897
+ font-family: var(--text-label-lg-semibold-fontFamily);
12898
+ font-weight: var(--text-label-lg-semibold-fontWeight);
12899
+ font-size: var(--text-label-lg-semibold-fontSize);
12900
+ line-height: var(--text-label-lg-semibold-lineHeight);
12901
+ }
12902
+
12903
+ .muka-checkbox-tile__label--center {
12904
+ text-align: center;
12905
+ }
12906
+
12907
+ /* Caption */
12908
+ .muka-checkbox-tile__caption {
12909
+ font-family: var(--text-body-base-regular-fontFamily);
12910
+ font-weight: var(--text-body-base-regular-fontWeight);
12911
+ font-size: var(--text-body-base-regular-fontSize);
12912
+ line-height: var(--text-body-base-regular-lineHeight);
12913
+ color: var(--color-text-subtle-default);
12914
+ }
12915
+
12916
+ /* Disabled states */
12917
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
12918
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
12919
+ color: var(--color-text-subtle-default);
12920
+ }
12921
+
12922
+
12933
12923
  /* Checkbox */
12934
12924
  /* Checkbox Component Styles - Using Muka Design Tokens */
12935
12925