@revikornmann/muka-ui 0.59.0 → 0.61.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 (28) hide show
  1. package/dist/cjs/components/PhotoUploader/PhotoUploader.css +21 -0
  2. package/dist/esm/components/PhotoUploader/PhotoUploader.css +21 -0
  3. package/dist/styles/components/PhotoUploader.css +21 -0
  4. package/dist/styles/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2 +0 -0
  5. package/dist/styles/fonts/bricolage-grotesque-latin-opsz-normal.woff2 +0 -0
  6. package/dist/styles/fonts/{red-hat-text.LICENSE.txt → bricolage-grotesque.LICENSE.txt} +1 -1
  7. package/dist/styles/fonts/figtree-latin-ext-wght-normal.woff2 +0 -0
  8. package/dist/styles/fonts/figtree-latin-wght-normal.woff2 +0 -0
  9. package/dist/styles/fonts/{red-hat-display.LICENSE.txt → figtree.LICENSE.txt} +1 -1
  10. package/dist/styles/fonts-all.css +40 -40
  11. package/dist/styles/fonts-bouwplan.css +16 -16
  12. package/dist/styles/index.css +1058 -1037
  13. package/dist/styles/muka-dark.css +1058 -1037
  14. package/dist/styles/muka-light.css +1058 -1037
  15. package/dist/styles/tokens-bouwplan-dark.css +45 -45
  16. package/dist/styles/tokens-bouwplan-light.css +45 -45
  17. package/dist/styles/wireframe-dark.css +1058 -1037
  18. package/dist/styles/wireframe-light.css +1058 -1037
  19. package/docs/consumers/brand.md +1 -1
  20. package/package.json +3 -3
  21. package/scripts/build-fonts.js +5 -3
  22. package/skills/add-brand/SKILL.md +2 -2
  23. package/skills/add-brand/reference.md +1 -1
  24. package/tokens/t2-alias/brand/bouwplan/fonts.json +2 -2
  25. package/dist/styles/fonts/red-hat-display-latin-ext-wght-normal.woff2 +0 -0
  26. package/dist/styles/fonts/red-hat-display-latin-wght-normal.woff2 +0 -0
  27. package/dist/styles/fonts/red-hat-text-latin-ext-wght-normal.woff2 +0 -0
  28. package/dist/styles/fonts/red-hat-text-latin-wght-normal.woff2 +0 -0
@@ -3996,6 +3996,191 @@ body {
3996
3996
  }
3997
3997
 
3998
3998
 
3999
+ /* Thumbnail */
4000
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
4001
+
4002
+ .muka-thumbnail {
4003
+ position: relative;
4004
+ flex-shrink: 0;
4005
+ }
4006
+
4007
+ /* The frame carries the border, background and shape clip. Keeping it separate
4008
+ from the root lets the remove (×) button sit outside the clip (needed for the
4009
+ circular/ellipse shape, whose corners would otherwise clip the button). */
4010
+ .muka-thumbnail__frame {
4011
+ position: absolute;
4012
+ inset: 0;
4013
+ overflow: hidden;
4014
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4015
+ border-radius: var(--border-radius-lg);
4016
+ background-color: var(--color-surface-level1);
4017
+ }
4018
+
4019
+ /* ─── Shapes ──────────────────────────────────────────── */
4020
+ .muka-thumbnail--4-3 {
4021
+ width: 160px;
4022
+ height: 120px;
4023
+ }
4024
+
4025
+ .muka-thumbnail--1-1 {
4026
+ width: 120px;
4027
+ height: 120px;
4028
+ }
4029
+
4030
+ .muka-thumbnail--ellipse {
4031
+ width: 120px;
4032
+ height: 120px;
4033
+ }
4034
+
4035
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4036
+ .muka-thumbnail--fluid {
4037
+ width: 100%;
4038
+ height: auto;
4039
+ aspect-ratio: 1 / 1;
4040
+ }
4041
+
4042
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4043
+ aspect-ratio: 4 / 3;
4044
+ }
4045
+
4046
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
4047
+ border-radius: var(--border-radius-full);
4048
+ }
4049
+
4050
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4051
+ interactive hover zoom has a clean origin. */
4052
+ .muka-thumbnail__image {
4053
+ position: absolute;
4054
+ inset: 0;
4055
+ width: 100%;
4056
+ height: 100%;
4057
+ object-fit: cover;
4058
+ display: block;
4059
+ transform-origin: center;
4060
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4061
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4062
+ }
4063
+
4064
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
4065
+ .muka-thumbnail__trigger {
4066
+ position: absolute;
4067
+ inset: 0;
4068
+ padding: 0;
4069
+ border: 0;
4070
+ background: none;
4071
+ cursor: pointer;
4072
+ overflow: hidden;
4073
+ }
4074
+
4075
+ .muka-thumbnail__trigger:focus-visible {
4076
+ outline: 2px solid var(--color-border-focus);
4077
+ outline-offset: -2px;
4078
+ }
4079
+
4080
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4081
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4082
+ transform: scale(1.05);
4083
+ }
4084
+
4085
+ /* ─── Loading overlay + progress donut ────────────────── */
4086
+ .muka-thumbnail__overlay {
4087
+ position: absolute;
4088
+ inset: 0;
4089
+ display: flex;
4090
+ align-items: center;
4091
+ justify-content: center;
4092
+ background-color: var(--dialog-color-backdrop);
4093
+ }
4094
+
4095
+ .muka-thumbnail__progress {
4096
+ width: 40px;
4097
+ height: 40px;
4098
+ }
4099
+
4100
+ /* ─── Error / corrupt state ───────────────────────────── */
4101
+ .muka-thumbnail--error .muka-thumbnail__frame {
4102
+ background-color: var(--alias-color-state-error-muted);
4103
+ border-color: var(--alias-color-state-error-default);
4104
+ }
4105
+
4106
+ .muka-thumbnail__error {
4107
+ position: absolute;
4108
+ inset: 0;
4109
+ display: flex;
4110
+ flex-direction: column;
4111
+ align-items: center;
4112
+ justify-content: center;
4113
+ gap: var(--spacing-2);
4114
+ padding: var(--spacing-3);
4115
+ text-align: center;
4116
+ }
4117
+
4118
+ .muka-thumbnail__error-icon {
4119
+ color: var(--alert-color-error-accent);
4120
+ }
4121
+
4122
+ .muka-thumbnail__caption {
4123
+ max-width: 100%;
4124
+ overflow: hidden;
4125
+ text-overflow: ellipsis;
4126
+ white-space: nowrap;
4127
+ color: var(--alert-color-error-accent);
4128
+ font-family: var(--text-body-sm-regular-fontFamily);
4129
+ font-size: var(--text-body-sm-regular-fontSize);
4130
+ font-weight: var(--text-body-sm-regular-fontWeight);
4131
+ line-height: var(--text-body-sm-regular-lineHeight);
4132
+ }
4133
+
4134
+ /* ─── Remove (×) button ───────────────────────────────── */
4135
+ .muka-thumbnail__remove {
4136
+ position: absolute;
4137
+ top: var(--spacing-2);
4138
+ right: var(--spacing-2);
4139
+ display: flex;
4140
+ align-items: center;
4141
+ justify-content: center;
4142
+ width: var(--size-2xl);
4143
+ height: var(--size-2xl);
4144
+ padding: 0;
4145
+ color: var(--button-color-tertiary-foreground-default);
4146
+ background-color: var(--button-color-tertiary-background-default);
4147
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4148
+ border-radius: var(--border-radius-lg);
4149
+ cursor: pointer;
4150
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4151
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
4152
+ }
4153
+
4154
+ .muka-thumbnail__remove:hover {
4155
+ color: var(--button-color-tertiary-foreground-hover);
4156
+ background-color: var(--button-color-tertiary-background-hover);
4157
+ border-color: var(--button-color-tertiary-border-hover);
4158
+ }
4159
+
4160
+ .muka-thumbnail__remove:active {
4161
+ color: var(--button-color-tertiary-foreground-pressed);
4162
+ background-color: var(--button-color-tertiary-background-pressed);
4163
+ border-color: var(--button-color-tertiary-border-pressed);
4164
+ }
4165
+
4166
+ .muka-thumbnail__remove:focus-visible {
4167
+ outline: 2px solid var(--color-border-focus);
4168
+ outline-offset: 2px;
4169
+ }
4170
+
4171
+ /* ─── Reduced motion ──────────────────────────────────── */
4172
+ @media (prefers-reduced-motion: reduce) {
4173
+ .muka-thumbnail__image,
4174
+ .muka-thumbnail__remove {
4175
+ transition: none;
4176
+ }
4177
+
4178
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4179
+ transform: none;
4180
+ }
4181
+ }
4182
+
4183
+
3999
4184
  /* Textarea */
4000
4185
  /* Textarea Component Styles - Using Muka Design Tokens */
4001
4186
 
@@ -4432,232 +4617,47 @@ body {
4432
4617
  }
4433
4618
 
4434
4619
 
4435
- /* Thumbnail */
4436
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4437
-
4438
- .muka-thumbnail {
4439
- position: relative;
4440
- flex-shrink: 0;
4441
- }
4620
+ /* TablePagination */
4621
+ /* TablePagination Component Styles - Using Muka Design Tokens */
4442
4622
 
4443
- /* The frame carries the border, background and shape clip. Keeping it separate
4444
- from the root lets the remove (×) button sit outside the clip (needed for the
4445
- circular/ellipse shape, whose corners would otherwise clip the button). */
4446
- .muka-thumbnail__frame {
4447
- position: absolute;
4448
- inset: 0;
4449
- overflow: hidden;
4450
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4451
- border-radius: var(--border-radius-lg);
4452
- background-color: var(--color-surface-level1);
4453
- }
4623
+ /* ========================================
4624
+ PAGINATION CONTAINER
4625
+ ======================================== */
4454
4626
 
4455
- /* ─── Shapes ──────────────────────────────────────────── */
4456
- .muka-thumbnail--4-3 {
4457
- width: 160px;
4458
- height: 120px;
4627
+ .muka-table-pagination {
4628
+ display: flex;
4629
+ align-items: center;
4630
+ justify-content: space-between;
4631
+ flex-wrap: wrap;
4632
+ gap: var(--table-pagination-gap, var(--spacing-4));
4633
+ padding: var(--table-pagination-padding, var(--spacing-3));
4634
+ background-color: var(--table-pagination-background, var(--color-surface-level1));
4635
+ border-top: var(--border-width-regular) solid var(--table-pagination-border, var(--color-border-default));
4636
+ font-family: var(--text-body-base-regular-fontFamily);
4637
+ font-size: var(--text-body-sm-regular-fontSize);
4638
+ line-height: var(--text-body-sm-regular-lineHeight);
4639
+ color: var(--color-text-default-default);
4459
4640
  }
4460
4641
 
4461
- .muka-thumbnail--1-1 {
4462
- width: 120px;
4463
- height: 120px;
4464
- }
4642
+ /* ========================================
4643
+ LEFT SECTION (Page Size & Range)
4644
+ ======================================== */
4465
4645
 
4466
- .muka-thumbnail--ellipse {
4467
- width: 120px;
4468
- height: 120px;
4646
+ .muka-table-pagination__left {
4647
+ display: flex;
4648
+ align-items: center;
4649
+ gap: var(--spacing-4);
4469
4650
  }
4470
4651
 
4471
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4472
- .muka-thumbnail--fluid {
4473
- width: 100%;
4474
- height: auto;
4475
- aspect-ratio: 1 / 1;
4652
+ .muka-table-pagination__page-size {
4653
+ display: flex;
4654
+ align-items: center;
4655
+ gap: var(--spacing-2);
4476
4656
  }
4477
4657
 
4478
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4479
- aspect-ratio: 4 / 3;
4480
- }
4481
-
4482
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4483
- border-radius: var(--border-radius-full);
4484
- }
4485
-
4486
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4487
- interactive hover zoom has a clean origin. */
4488
- .muka-thumbnail__image {
4489
- position: absolute;
4490
- inset: 0;
4491
- width: 100%;
4492
- height: 100%;
4493
- object-fit: cover;
4494
- display: block;
4495
- transform-origin: center;
4496
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4497
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4498
- }
4499
-
4500
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4501
- .muka-thumbnail__trigger {
4502
- position: absolute;
4503
- inset: 0;
4504
- padding: 0;
4505
- border: 0;
4506
- background: none;
4507
- cursor: pointer;
4508
- overflow: hidden;
4509
- }
4510
-
4511
- .muka-thumbnail__trigger:focus-visible {
4512
- outline: 2px solid var(--color-border-focus);
4513
- outline-offset: -2px;
4514
- }
4515
-
4516
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4517
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4518
- transform: scale(1.05);
4519
- }
4520
-
4521
- /* ─── Loading overlay + progress donut ────────────────── */
4522
- .muka-thumbnail__overlay {
4523
- position: absolute;
4524
- inset: 0;
4525
- display: flex;
4526
- align-items: center;
4527
- justify-content: center;
4528
- background-color: var(--dialog-color-backdrop);
4529
- }
4530
-
4531
- .muka-thumbnail__progress {
4532
- width: 40px;
4533
- height: 40px;
4534
- }
4535
-
4536
- /* ─── Error / corrupt state ───────────────────────────── */
4537
- .muka-thumbnail--error .muka-thumbnail__frame {
4538
- background-color: var(--alias-color-state-error-muted);
4539
- border-color: var(--alias-color-state-error-default);
4540
- }
4541
-
4542
- .muka-thumbnail__error {
4543
- position: absolute;
4544
- inset: 0;
4545
- display: flex;
4546
- flex-direction: column;
4547
- align-items: center;
4548
- justify-content: center;
4549
- gap: var(--spacing-2);
4550
- padding: var(--spacing-3);
4551
- text-align: center;
4552
- }
4553
-
4554
- .muka-thumbnail__error-icon {
4555
- color: var(--alert-color-error-accent);
4556
- }
4557
-
4558
- .muka-thumbnail__caption {
4559
- max-width: 100%;
4560
- overflow: hidden;
4561
- text-overflow: ellipsis;
4562
- white-space: nowrap;
4563
- color: var(--alert-color-error-accent);
4564
- font-family: var(--text-body-sm-regular-fontFamily);
4565
- font-size: var(--text-body-sm-regular-fontSize);
4566
- font-weight: var(--text-body-sm-regular-fontWeight);
4567
- line-height: var(--text-body-sm-regular-lineHeight);
4568
- }
4569
-
4570
- /* ─── Remove (×) button ───────────────────────────────── */
4571
- .muka-thumbnail__remove {
4572
- position: absolute;
4573
- top: var(--spacing-2);
4574
- right: var(--spacing-2);
4575
- display: flex;
4576
- align-items: center;
4577
- justify-content: center;
4578
- width: var(--size-2xl);
4579
- height: var(--size-2xl);
4580
- padding: 0;
4581
- color: var(--button-color-tertiary-foreground-default);
4582
- background-color: var(--button-color-tertiary-background-default);
4583
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4584
- border-radius: var(--border-radius-lg);
4585
- cursor: pointer;
4586
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4587
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
4588
- }
4589
-
4590
- .muka-thumbnail__remove:hover {
4591
- color: var(--button-color-tertiary-foreground-hover);
4592
- background-color: var(--button-color-tertiary-background-hover);
4593
- border-color: var(--button-color-tertiary-border-hover);
4594
- }
4595
-
4596
- .muka-thumbnail__remove:active {
4597
- color: var(--button-color-tertiary-foreground-pressed);
4598
- background-color: var(--button-color-tertiary-background-pressed);
4599
- border-color: var(--button-color-tertiary-border-pressed);
4600
- }
4601
-
4602
- .muka-thumbnail__remove:focus-visible {
4603
- outline: 2px solid var(--color-border-focus);
4604
- outline-offset: 2px;
4605
- }
4606
-
4607
- /* ─── Reduced motion ──────────────────────────────────── */
4608
- @media (prefers-reduced-motion: reduce) {
4609
- .muka-thumbnail__image,
4610
- .muka-thumbnail__remove {
4611
- transition: none;
4612
- }
4613
-
4614
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4615
- transform: none;
4616
- }
4617
- }
4618
-
4619
-
4620
- /* TablePagination */
4621
- /* TablePagination Component Styles - Using Muka Design Tokens */
4622
-
4623
- /* ========================================
4624
- PAGINATION CONTAINER
4625
- ======================================== */
4626
-
4627
- .muka-table-pagination {
4628
- display: flex;
4629
- align-items: center;
4630
- justify-content: space-between;
4631
- flex-wrap: wrap;
4632
- gap: var(--table-pagination-gap, var(--spacing-4));
4633
- padding: var(--table-pagination-padding, var(--spacing-3));
4634
- background-color: var(--table-pagination-background, var(--color-surface-level1));
4635
- border-top: var(--border-width-regular) solid var(--table-pagination-border, var(--color-border-default));
4636
- font-family: var(--text-body-base-regular-fontFamily);
4637
- font-size: var(--text-body-sm-regular-fontSize);
4638
- line-height: var(--text-body-sm-regular-lineHeight);
4639
- color: var(--color-text-default-default);
4640
- }
4641
-
4642
- /* ========================================
4643
- LEFT SECTION (Page Size & Range)
4644
- ======================================== */
4645
-
4646
- .muka-table-pagination__left {
4647
- display: flex;
4648
- align-items: center;
4649
- gap: var(--spacing-4);
4650
- }
4651
-
4652
- .muka-table-pagination__page-size {
4653
- display: flex;
4654
- align-items: center;
4655
- gap: var(--spacing-2);
4656
- }
4657
-
4658
- .muka-table-pagination__label {
4659
- color: var(--color-text-subtle-default);
4660
- white-space: nowrap;
4658
+ .muka-table-pagination__label {
4659
+ color: var(--color-text-subtle-default);
4660
+ white-space: nowrap;
4661
4661
  }
4662
4662
 
4663
4663
  .muka-table-pagination__select {
@@ -5021,70 +5021,178 @@ body {
5021
5021
  }
5022
5022
 
5023
5023
 
5024
- /* Spinner */
5025
- /* Spinner Component Styles */
5024
+ /* SwipeActions */
5025
+ /* SwipeActions Component Styles */
5026
5026
 
5027
- .muka-spinner {
5028
- display: inline-flex;
5029
- align-items: center;
5030
- justify-content: center;
5031
- color: var(--color-text-default-default);
5032
- line-height: 0;
5027
+ .muka-swipe-actions {
5028
+ position: relative;
5029
+ overflow: hidden;
5030
+ touch-action: pan-y;
5031
+ -webkit-user-select: none;
5032
+ user-select: none;
5033
+ background-color: var(--color-surface-level3);
5033
5034
  }
5034
5035
 
5035
- .muka-spinner--subtle {
5036
- color: var(--color-text-subtle-default);
5036
+ .muka-swipe-actions--disabled {
5037
+ touch-action: auto;
5037
5038
  }
5038
5039
 
5039
- .muka-spinner--inverse {
5040
- color: var(--color-text-default-inverse);
5041
- }
5040
+ /* ─── Row that holds the actual content ────────────────── */
5042
5041
 
5043
- .muka-spinner__circle {
5044
- display: inline-block;
5045
- border-radius: 50%;
5046
- border-style: solid;
5047
- border-color: currentColor;
5048
- border-right-color: transparent;
5049
- animation: muka-spinner-rotate 0.7s linear infinite;
5050
- box-sizing: border-box;
5042
+ .muka-swipe-actions__row {
5043
+ position: relative;
5044
+ z-index: 1;
5045
+ background-color: inherit;
5046
+ will-change: transform;
5051
5047
  }
5052
5048
 
5053
- /* ─── Sizes ───────────────────────────────────────────── */
5049
+ /* ─── Action panels — sit beneath the row ──────────────── */
5054
5050
 
5055
- .muka-spinner--sm .muka-spinner__circle {
5056
- width: 16px;
5057
- height: 16px;
5058
- border-width: 2px;
5051
+ .muka-swipe-actions__panel {
5052
+ position: absolute;
5053
+ top: 0;
5054
+ bottom: 0;
5055
+ display: flex;
5056
+ align-items: stretch;
5057
+ z-index: 0;
5059
5058
  }
5060
5059
 
5061
- .muka-spinner--md .muka-spinner__circle {
5062
- width: 20px;
5063
- height: 20px;
5064
- border-width: 2px;
5060
+ .muka-swipe-actions__panel--left {
5061
+ left: 0;
5065
5062
  }
5066
5063
 
5067
- .muka-spinner--lg .muka-spinner__circle {
5068
- width: 24px;
5069
- height: 24px;
5070
- border-width: 3px;
5064
+ .muka-swipe-actions__panel--right {
5065
+ right: 0;
5071
5066
  }
5072
5067
 
5073
- /* ─── Visually-hidden label ───────────────────────────── */
5074
-
5075
- .muka-spinner__sr-label {
5076
- position: absolute;
5077
- width: 1px;
5078
- height: 1px;
5079
- padding: 0;
5080
- margin: -1px;
5081
- overflow: hidden;
5082
- clip: rect(0, 0, 0, 0);
5083
- white-space: nowrap;
5084
- border: 0;
5085
- }
5068
+ /* ─── Single action button ─────────────────────────────── */
5086
5069
 
5087
- /* ─── Reduced motion ──────────────────────────────────── */
5070
+ .muka-swipe-actions__button {
5071
+ display: flex;
5072
+ flex-direction: column;
5073
+ align-items: center;
5074
+ justify-content: center;
5075
+ gap: var(--spacing-1);
5076
+ border: none;
5077
+ cursor: pointer;
5078
+ padding: var(--spacing-2);
5079
+ background-color: var(--color-surface-level2);
5080
+ color: var(--color-text-default-default);
5081
+ font-family: var(--text-label-sm-semibold-fontFamily);
5082
+ font-weight: var(--text-label-sm-semibold-fontWeight);
5083
+ font-size: var(--text-label-sm-semibold-fontSize);
5084
+ line-height: var(--text-label-sm-semibold-lineHeight);
5085
+ -webkit-tap-highlight-color: transparent;
5086
+ transition: filter 0.12s ease;
5087
+ }
5088
+
5089
+ .muka-swipe-actions__button:hover {
5090
+ filter: brightness(0.95);
5091
+ }
5092
+
5093
+ .muka-swipe-actions__button:focus-visible {
5094
+ outline: 2px solid var(--color-action-default);
5095
+ outline-offset: -2px;
5096
+ }
5097
+
5098
+ .muka-swipe-actions__button-icon {
5099
+ display: inline-flex;
5100
+ align-items: center;
5101
+ justify-content: center;
5102
+ }
5103
+
5104
+ /* ─── Color variants ───────────────────────────────────── */
5105
+
5106
+ .muka-swipe-actions__button--neutral {
5107
+ background-color: var(--color-surface-level2);
5108
+ color: var(--color-text-default-default);
5109
+ }
5110
+
5111
+ .muka-swipe-actions__button--primary {
5112
+ background-color: var(--color-action-default);
5113
+ color: var(--color-text-default-inverse);
5114
+ }
5115
+
5116
+ .muka-swipe-actions__button--success {
5117
+ background-color: var(--color-state-success-default);
5118
+ color: var(--color-text-default-inverse);
5119
+ }
5120
+
5121
+ .muka-swipe-actions__button--warning {
5122
+ background-color: var(--color-state-warning-default);
5123
+ color: var(--color-text-default-default);
5124
+ }
5125
+
5126
+ .muka-swipe-actions__button--destructive {
5127
+ background-color: var(--color-state-error-default);
5128
+ color: var(--color-text-default-inverse);
5129
+ }
5130
+
5131
+
5132
+ /* Spinner */
5133
+ /* Spinner Component Styles */
5134
+
5135
+ .muka-spinner {
5136
+ display: inline-flex;
5137
+ align-items: center;
5138
+ justify-content: center;
5139
+ color: var(--color-text-default-default);
5140
+ line-height: 0;
5141
+ }
5142
+
5143
+ .muka-spinner--subtle {
5144
+ color: var(--color-text-subtle-default);
5145
+ }
5146
+
5147
+ .muka-spinner--inverse {
5148
+ color: var(--color-text-default-inverse);
5149
+ }
5150
+
5151
+ .muka-spinner__circle {
5152
+ display: inline-block;
5153
+ border-radius: 50%;
5154
+ border-style: solid;
5155
+ border-color: currentColor;
5156
+ border-right-color: transparent;
5157
+ animation: muka-spinner-rotate 0.7s linear infinite;
5158
+ box-sizing: border-box;
5159
+ }
5160
+
5161
+ /* ─── Sizes ───────────────────────────────────────────── */
5162
+
5163
+ .muka-spinner--sm .muka-spinner__circle {
5164
+ width: 16px;
5165
+ height: 16px;
5166
+ border-width: 2px;
5167
+ }
5168
+
5169
+ .muka-spinner--md .muka-spinner__circle {
5170
+ width: 20px;
5171
+ height: 20px;
5172
+ border-width: 2px;
5173
+ }
5174
+
5175
+ .muka-spinner--lg .muka-spinner__circle {
5176
+ width: 24px;
5177
+ height: 24px;
5178
+ border-width: 3px;
5179
+ }
5180
+
5181
+ /* ─── Visually-hidden label ───────────────────────────── */
5182
+
5183
+ .muka-spinner__sr-label {
5184
+ position: absolute;
5185
+ width: 1px;
5186
+ height: 1px;
5187
+ padding: 0;
5188
+ margin: -1px;
5189
+ overflow: hidden;
5190
+ clip: rect(0, 0, 0, 0);
5191
+ white-space: nowrap;
5192
+ border: 0;
5193
+ }
5194
+
5195
+ /* ─── Reduced motion ──────────────────────────────────── */
5088
5196
 
5089
5197
  @keyframes muka-spinner-rotate {
5090
5198
  to {
@@ -6402,6 +6510,56 @@ body {
6402
6510
  }
6403
6511
 
6404
6512
 
6513
+ /* RecordingBar */
6514
+ /* RecordingBar Component Styles */
6515
+
6516
+ .muka-recording-bar {
6517
+ display: flex;
6518
+ align-items: center;
6519
+ gap: var(--spacing-3);
6520
+ width: 100%;
6521
+ min-width: 0;
6522
+ }
6523
+
6524
+ .muka-recording-bar__dot {
6525
+ flex: 0 0 auto;
6526
+ width: 0.625rem;
6527
+ height: 0.625rem;
6528
+ border-radius: var(--radius-full, 9999px);
6529
+ background: var(--alert-color-error-accent, var(--color-text-default-default));
6530
+ animation: muka-recording-bar-pulse 1s ease-in-out infinite;
6531
+ }
6532
+
6533
+ .muka-recording-bar__time {
6534
+ flex: 0 0 auto;
6535
+ font-size: var(--text-label-sm-regular-fontSize);
6536
+ line-height: var(--text-label-sm-leading);
6537
+ font-variant-numeric: tabular-nums;
6538
+ color: var(--color-text-default-default);
6539
+ }
6540
+
6541
+ .muka-recording-bar__wave {
6542
+ flex: 1 1 auto;
6543
+ min-width: 0;
6544
+ }
6545
+
6546
+ @keyframes muka-recording-bar-pulse {
6547
+ 0%,
6548
+ 100% {
6549
+ opacity: 1;
6550
+ }
6551
+ 50% {
6552
+ opacity: 0.3;
6553
+ }
6554
+ }
6555
+
6556
+ @media (prefers-reduced-motion: reduce) {
6557
+ .muka-recording-bar__dot {
6558
+ animation: none;
6559
+ }
6560
+ }
6561
+
6562
+
6405
6563
  /* Scrollbar */
6406
6564
  /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6407
6565
 
@@ -6529,56 +6687,6 @@ body {
6529
6687
  }
6530
6688
 
6531
6689
 
6532
- /* RecordingBar */
6533
- /* RecordingBar Component Styles */
6534
-
6535
- .muka-recording-bar {
6536
- display: flex;
6537
- align-items: center;
6538
- gap: var(--spacing-3);
6539
- width: 100%;
6540
- min-width: 0;
6541
- }
6542
-
6543
- .muka-recording-bar__dot {
6544
- flex: 0 0 auto;
6545
- width: 0.625rem;
6546
- height: 0.625rem;
6547
- border-radius: var(--radius-full, 9999px);
6548
- background: var(--alert-color-error-accent, var(--color-text-default-default));
6549
- animation: muka-recording-bar-pulse 1s ease-in-out infinite;
6550
- }
6551
-
6552
- .muka-recording-bar__time {
6553
- flex: 0 0 auto;
6554
- font-size: var(--text-label-sm-regular-fontSize);
6555
- line-height: var(--text-label-sm-leading);
6556
- font-variant-numeric: tabular-nums;
6557
- color: var(--color-text-default-default);
6558
- }
6559
-
6560
- .muka-recording-bar__wave {
6561
- flex: 1 1 auto;
6562
- min-width: 0;
6563
- }
6564
-
6565
- @keyframes muka-recording-bar-pulse {
6566
- 0%,
6567
- 100% {
6568
- opacity: 1;
6569
- }
6570
- 50% {
6571
- opacity: 0.3;
6572
- }
6573
- }
6574
-
6575
- @media (prefers-reduced-motion: reduce) {
6576
- .muka-recording-bar__dot {
6577
- animation: none;
6578
- }
6579
- }
6580
-
6581
-
6582
6690
  /* RangeSlider */
6583
6691
  /* RangeSlider Component Styles - Using Muka Design Tokens */
6584
6692
 
@@ -6795,162 +6903,19 @@ body {
6795
6903
  }
6796
6904
 
6797
6905
 
6798
- /* RadioTile */
6799
- /* RadioTile Component Styles - Using Muka Design Tokens */
6906
+ /* Radio */
6907
+ /* Radio Component Styles - Using Muka Design Tokens */
6800
6908
 
6801
- /* Base tile styles - horizontal */
6802
- .muka-radio-tile {
6803
- display: flex;
6909
+ /* Wrapper - clickable label container */
6910
+ .muka-radio {
6911
+ display: inline-flex;
6804
6912
  align-items: center;
6805
6913
  gap: var(--spacing-4);
6806
- padding: var(--spacing-4);
6807
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6808
- border-radius: var(--input-field-radius-lg);
6809
- background-color: var(--color-surface-level3);
6810
6914
  cursor: pointer;
6811
- transition: border-color 0.15s ease, border-width 0.15s ease;
6812
- overflow: hidden;
6813
- box-sizing: border-box;
6915
+ user-select: none;
6814
6916
  }
6815
6917
 
6816
- .muka-radio-tile--disabled {
6817
- cursor: not-allowed;
6818
- opacity: 0.6;
6819
- }
6820
-
6821
- /* Selected state */
6822
- .muka-radio-tile[data-checked] {
6823
- border-width: var(--border-width-bold);
6824
- border-color: var(--color-action-default);
6825
- }
6826
-
6827
- /* Vertical layout */
6828
- .muka-radio-tile--vertical {
6829
- flex-direction: column;
6830
- align-items: center;
6831
- gap: var(--spacing-2);
6832
- position: relative;
6833
- width: 160px;
6834
- }
6835
-
6836
- /* Radio container */
6837
- .muka-radio-tile__radio {
6838
- flex-shrink: 0;
6839
- }
6840
-
6841
- /* Corner-positioned radio for vertical */
6842
- .muka-radio-tile__radio--corner {
6843
- position: absolute;
6844
- top: var(--spacing-4);
6845
- left: var(--spacing-4);
6846
- }
6847
-
6848
- /* Adjust corner position when selected (border is thicker) */
6849
- .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
6850
- top: calc(var(--spacing-4) - 1px);
6851
- left: calc(var(--spacing-4) - 1px);
6852
- }
6853
-
6854
- /* Icon */
6855
- .muka-radio-tile__icon {
6856
- display: flex;
6857
- align-items: center;
6858
- justify-content: center;
6859
- flex-shrink: 0;
6860
- width: var(--icon-size-default);
6861
- height: var(--icon-size-default);
6862
- color: var(--color-text-default-default);
6863
- }
6864
-
6865
- .muka-radio-tile__icon svg {
6866
- width: 100%;
6867
- height: 100%;
6868
- }
6869
-
6870
- /* Image */
6871
- .muka-radio-tile__image {
6872
- flex-shrink: 0;
6873
- overflow: hidden;
6874
- border-radius: var(--border-radius-sm);
6875
- }
6876
-
6877
- .muka-radio-tile__image img {
6878
- display: block;
6879
- width: 100%;
6880
- height: 100%;
6881
- object-fit: cover;
6882
- }
6883
-
6884
- /* Horizontal image sizing */
6885
- .muka-radio-tile__image--horizontal {
6886
- width: 40px;
6887
- height: 40px;
6888
- }
6889
-
6890
- /* Vertical image sizing */
6891
- .muka-radio-tile--vertical .muka-radio-tile__image {
6892
- width: 100%;
6893
- aspect-ratio: 4/3;
6894
- }
6895
-
6896
- /* Content container */
6897
- .muka-radio-tile__content {
6898
- display: flex;
6899
- flex-direction: column;
6900
- flex: 1;
6901
- min-width: 0;
6902
- gap: var(--spacing-1);
6903
- }
6904
-
6905
- /* Label */
6906
- .muka-radio-tile__label {
6907
- font-family: var(--text-body-lg-regular-fontFamily);
6908
- font-weight: var(--text-body-lg-regular-fontWeight);
6909
- font-size: var(--text-body-lg-regular-fontSize);
6910
- line-height: var(--text-body-lg-regular-lineHeight);
6911
- color: var(--color-text-default-default);
6912
- }
6913
-
6914
- .muka-radio-tile__label--bold {
6915
- font-family: var(--text-label-lg-semibold-fontFamily);
6916
- font-weight: var(--text-label-lg-semibold-fontWeight);
6917
- font-size: var(--text-label-lg-semibold-fontSize);
6918
- line-height: var(--text-label-lg-semibold-lineHeight);
6919
- }
6920
-
6921
- .muka-radio-tile__label--center {
6922
- text-align: center;
6923
- }
6924
-
6925
- /* Caption */
6926
- .muka-radio-tile__caption {
6927
- font-family: var(--text-body-base-regular-fontFamily);
6928
- font-weight: var(--text-body-base-regular-fontWeight);
6929
- font-size: var(--text-body-base-regular-fontSize);
6930
- line-height: var(--text-body-base-regular-lineHeight);
6931
- color: var(--color-text-subtle-default);
6932
- }
6933
-
6934
- /* Disabled states */
6935
- .muka-radio-tile--disabled .muka-radio-tile__label,
6936
- .muka-radio-tile--disabled .muka-radio-tile__icon {
6937
- color: var(--color-text-subtle-default);
6938
- }
6939
-
6940
-
6941
- /* Radio */
6942
- /* Radio Component Styles - Using Muka Design Tokens */
6943
-
6944
- /* Wrapper - clickable label container */
6945
- .muka-radio {
6946
- display: inline-flex;
6947
- align-items: center;
6948
- gap: var(--spacing-4);
6949
- cursor: pointer;
6950
- user-select: none;
6951
- }
6952
-
6953
- .muka-radio--disabled {
6918
+ .muka-radio--disabled {
6954
6919
  cursor: not-allowed;
6955
6920
  opacity: 0.6;
6956
6921
  }
@@ -7082,6 +7047,149 @@ body {
7082
7047
  }
7083
7048
 
7084
7049
 
7050
+ /* RadioTile */
7051
+ /* RadioTile Component Styles - Using Muka Design Tokens */
7052
+
7053
+ /* Base tile styles - horizontal */
7054
+ .muka-radio-tile {
7055
+ display: flex;
7056
+ align-items: center;
7057
+ gap: var(--spacing-4);
7058
+ padding: var(--spacing-4);
7059
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
7060
+ border-radius: var(--input-field-radius-lg);
7061
+ background-color: var(--color-surface-level3);
7062
+ cursor: pointer;
7063
+ transition: border-color 0.15s ease, border-width 0.15s ease;
7064
+ overflow: hidden;
7065
+ box-sizing: border-box;
7066
+ }
7067
+
7068
+ .muka-radio-tile--disabled {
7069
+ cursor: not-allowed;
7070
+ opacity: 0.6;
7071
+ }
7072
+
7073
+ /* Selected state */
7074
+ .muka-radio-tile[data-checked] {
7075
+ border-width: var(--border-width-bold);
7076
+ border-color: var(--color-action-default);
7077
+ }
7078
+
7079
+ /* Vertical layout */
7080
+ .muka-radio-tile--vertical {
7081
+ flex-direction: column;
7082
+ align-items: center;
7083
+ gap: var(--spacing-2);
7084
+ position: relative;
7085
+ width: 160px;
7086
+ }
7087
+
7088
+ /* Radio container */
7089
+ .muka-radio-tile__radio {
7090
+ flex-shrink: 0;
7091
+ }
7092
+
7093
+ /* Corner-positioned radio for vertical */
7094
+ .muka-radio-tile__radio--corner {
7095
+ position: absolute;
7096
+ top: var(--spacing-4);
7097
+ left: var(--spacing-4);
7098
+ }
7099
+
7100
+ /* Adjust corner position when selected (border is thicker) */
7101
+ .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
7102
+ top: calc(var(--spacing-4) - 1px);
7103
+ left: calc(var(--spacing-4) - 1px);
7104
+ }
7105
+
7106
+ /* Icon */
7107
+ .muka-radio-tile__icon {
7108
+ display: flex;
7109
+ align-items: center;
7110
+ justify-content: center;
7111
+ flex-shrink: 0;
7112
+ width: var(--icon-size-default);
7113
+ height: var(--icon-size-default);
7114
+ color: var(--color-text-default-default);
7115
+ }
7116
+
7117
+ .muka-radio-tile__icon svg {
7118
+ width: 100%;
7119
+ height: 100%;
7120
+ }
7121
+
7122
+ /* Image */
7123
+ .muka-radio-tile__image {
7124
+ flex-shrink: 0;
7125
+ overflow: hidden;
7126
+ border-radius: var(--border-radius-sm);
7127
+ }
7128
+
7129
+ .muka-radio-tile__image img {
7130
+ display: block;
7131
+ width: 100%;
7132
+ height: 100%;
7133
+ object-fit: cover;
7134
+ }
7135
+
7136
+ /* Horizontal image sizing */
7137
+ .muka-radio-tile__image--horizontal {
7138
+ width: 40px;
7139
+ height: 40px;
7140
+ }
7141
+
7142
+ /* Vertical image sizing */
7143
+ .muka-radio-tile--vertical .muka-radio-tile__image {
7144
+ width: 100%;
7145
+ aspect-ratio: 4/3;
7146
+ }
7147
+
7148
+ /* Content container */
7149
+ .muka-radio-tile__content {
7150
+ display: flex;
7151
+ flex-direction: column;
7152
+ flex: 1;
7153
+ min-width: 0;
7154
+ gap: var(--spacing-1);
7155
+ }
7156
+
7157
+ /* Label */
7158
+ .muka-radio-tile__label {
7159
+ font-family: var(--text-body-lg-regular-fontFamily);
7160
+ font-weight: var(--text-body-lg-regular-fontWeight);
7161
+ font-size: var(--text-body-lg-regular-fontSize);
7162
+ line-height: var(--text-body-lg-regular-lineHeight);
7163
+ color: var(--color-text-default-default);
7164
+ }
7165
+
7166
+ .muka-radio-tile__label--bold {
7167
+ font-family: var(--text-label-lg-semibold-fontFamily);
7168
+ font-weight: var(--text-label-lg-semibold-fontWeight);
7169
+ font-size: var(--text-label-lg-semibold-fontSize);
7170
+ line-height: var(--text-label-lg-semibold-lineHeight);
7171
+ }
7172
+
7173
+ .muka-radio-tile__label--center {
7174
+ text-align: center;
7175
+ }
7176
+
7177
+ /* Caption */
7178
+ .muka-radio-tile__caption {
7179
+ font-family: var(--text-body-base-regular-fontFamily);
7180
+ font-weight: var(--text-body-base-regular-fontWeight);
7181
+ font-size: var(--text-body-base-regular-fontSize);
7182
+ line-height: var(--text-body-base-regular-lineHeight);
7183
+ color: var(--color-text-subtle-default);
7184
+ }
7185
+
7186
+ /* Disabled states */
7187
+ .muka-radio-tile--disabled .muka-radio-tile__label,
7188
+ .muka-radio-tile--disabled .muka-radio-tile__icon {
7189
+ color: var(--color-text-subtle-default);
7190
+ }
7191
+
7192
+
7085
7193
  /* PullToRefresh */
7086
7194
  /* PullToRefresh Component Styles */
7087
7195
 
@@ -8225,15 +8333,46 @@ button.muka-progress-tracker__tab:focus-visible {
8225
8333
  opacity: 1;
8226
8334
  }
8227
8335
 
8228
- .muka-profile-badge--clickable.muka-profile-badge--with-chevron:hover,
8229
- .muka-profile-badge--clickable.muka-profile-badge--with-chevron[aria-expanded='true'],
8230
- .muka-profile-badge--clickable.muka-profile-badge--with-chevron[data-state='open'] {
8231
- box-shadow: inset 0 0 0 var(--border-width-regular) var(--button-color-ghost-border-hover);
8336
+ .muka-profile-badge--clickable.muka-profile-badge--with-chevron:hover,
8337
+ .muka-profile-badge--clickable.muka-profile-badge--with-chevron[aria-expanded='true'],
8338
+ .muka-profile-badge--clickable.muka-profile-badge--with-chevron[data-state='open'] {
8339
+ box-shadow: inset 0 0 0 var(--border-width-regular) var(--button-color-ghost-border-hover);
8340
+ }
8341
+
8342
+ /* A badge without an avatar keeps the 12px start inset */
8343
+ .muka-profile-badge--clickable.muka-profile-badge--with-chevron:not(:has(.muka-profile-badge__avatar)) {
8344
+ padding-left: var(--spacing-3);
8345
+ }
8346
+
8347
+
8348
+ /* Popover */
8349
+ /* Popover Component Styles */
8350
+
8351
+ .muka-popover__content {
8352
+ background-color: var(--color-surface-level3);
8353
+ border: var(--border-width-regular) solid var(--color-border-default);
8354
+ border-radius: var(--radius-md);
8355
+ padding: var(--spacing-4);
8356
+ box-shadow: var(--shadow-level3);
8357
+ max-width: 20rem;
8358
+ z-index: 50;
8359
+ animation: muka-popover-fade-in 150ms ease;
8360
+ }
8361
+
8362
+ @keyframes muka-popover-fade-in {
8363
+ from {
8364
+ opacity: 0;
8365
+ transform: scale(0.96);
8366
+ }
8367
+ to {
8368
+ opacity: 1;
8369
+ transform: scale(1);
8370
+ }
8232
8371
  }
8233
8372
 
8234
- /* A badge without an avatar keeps the 12px start inset */
8235
- .muka-profile-badge--clickable.muka-profile-badge--with-chevron:not(:has(.muka-profile-badge__avatar)) {
8236
- padding-left: var(--spacing-3);
8373
+ /* Arrow */
8374
+ .muka-popover__arrow {
8375
+ fill: var(--color-surface-level3);
8237
8376
  }
8238
8377
 
8239
8378
 
@@ -8334,37 +8473,6 @@ button.muka-progress-tracker__tab:focus-visible {
8334
8473
  }
8335
8474
 
8336
8475
 
8337
- /* Popover */
8338
- /* Popover Component Styles */
8339
-
8340
- .muka-popover__content {
8341
- background-color: var(--color-surface-level3);
8342
- border: var(--border-width-regular) solid var(--color-border-default);
8343
- border-radius: var(--radius-md);
8344
- padding: var(--spacing-4);
8345
- box-shadow: var(--shadow-level3);
8346
- max-width: 20rem;
8347
- z-index: 50;
8348
- animation: muka-popover-fade-in 150ms ease;
8349
- }
8350
-
8351
- @keyframes muka-popover-fade-in {
8352
- from {
8353
- opacity: 0;
8354
- transform: scale(0.96);
8355
- }
8356
- to {
8357
- opacity: 1;
8358
- transform: scale(1);
8359
- }
8360
- }
8361
-
8362
- /* Arrow */
8363
- .muka-popover__arrow {
8364
- fill: var(--color-surface-level3);
8365
- }
8366
-
8367
-
8368
8476
  /* PlanningGantt */
8369
8477
  /* PlanningGantt (MUK-105) — one week per page, never scrolls horizontally. */
8370
8478
 
@@ -8762,103 +8870,6 @@ button.muka-progress-tracker__tab:focus-visible {
8762
8870
  }
8763
8871
 
8764
8872
 
8765
- /* PieChart */
8766
- /* PieChart Component Styles - Using Muka Design Tokens */
8767
-
8768
- .muka-piechart {
8769
- display: inline-flex;
8770
- align-items: center;
8771
- gap: var(--spacing-4);
8772
- }
8773
-
8774
- /* Legend layout */
8775
- .muka-piechart--legend-right {
8776
- flex-direction: row;
8777
- }
8778
-
8779
- .muka-piechart--legend-bottom {
8780
- flex-direction: column;
8781
- }
8782
-
8783
- /* ========================================
8784
- CHART
8785
- ======================================== */
8786
-
8787
- .muka-piechart__chart {
8788
- position: relative;
8789
- flex-shrink: 0;
8790
- }
8791
-
8792
- .muka-piechart__chart--sm {
8793
- width: var(--piechart-size-diameter-sm);
8794
- height: var(--piechart-size-diameter-sm);
8795
- }
8796
-
8797
- .muka-piechart__chart--md {
8798
- width: var(--piechart-size-diameter-md);
8799
- height: var(--piechart-size-diameter-md);
8800
- }
8801
-
8802
- .muka-piechart__chart--lg {
8803
- width: var(--piechart-size-diameter-lg);
8804
- height: var(--piechart-size-diameter-lg);
8805
- }
8806
-
8807
- .muka-piechart__svg {
8808
- display: block;
8809
- width: 100%;
8810
- height: 100%;
8811
- /* Start slices at 12 o'clock instead of 3 o'clock */
8812
- transform: rotate(-90deg);
8813
- }
8814
-
8815
- .muka-piechart__track {
8816
- fill: none;
8817
- stroke: var(--piechart-color-track);
8818
- }
8819
-
8820
- .muka-piechart__segment {
8821
- fill: none;
8822
- }
8823
-
8824
- /* ========================================
8825
- LEGEND
8826
- ======================================== */
8827
-
8828
- .muka-piechart__legend {
8829
- list-style: none;
8830
- margin: 0;
8831
- padding: 0;
8832
- display: flex;
8833
- flex-direction: column;
8834
- gap: var(--spacing-1);
8835
- }
8836
-
8837
- .muka-piechart__legend-item {
8838
- display: flex;
8839
- align-items: center;
8840
- gap: var(--spacing-2);
8841
- font-family: var(--text-body-sm-regular-fontFamily);
8842
- font-weight: var(--text-body-sm-regular-fontWeight);
8843
- font-size: var(--text-body-sm-regular-fontSize);
8844
- line-height: var(--text-body-sm-regular-lineHeight);
8845
- color: var(--color-text-default-default);
8846
- }
8847
-
8848
- .muka-piechart__swatch {
8849
- flex-shrink: 0;
8850
- width: var(--spacing-3);
8851
- height: var(--spacing-3);
8852
- border-radius: var(--border-radius-sm);
8853
- }
8854
-
8855
- .muka-piechart__legend-value {
8856
- margin-left: auto;
8857
- padding-left: var(--spacing-2);
8858
- color: var(--color-text-subtle-default);
8859
- }
8860
-
8861
-
8862
8873
  /* PhotoUploader */
8863
8874
  /* PhotoUploader Component Styles - Using Muka Design Tokens */
8864
8875
 
@@ -8928,50 +8939,168 @@ button.muka-progress-tracker__tab:focus-visible {
8928
8939
  background-color: var(--color-surface-level1);
8929
8940
  }
8930
8941
 
8931
- .muka-photo-uploader__dropzone-text {
8932
- font-family: var(--text-subheading-sm-fontFamily);
8933
- font-size: var(--text-subheading-sm-fontSize);
8934
- font-weight: var(--text-subheading-sm-fontWeight);
8935
- line-height: var(--text-subheading-sm-lineHeight);
8936
- color: var(--color-text-default-default);
8942
+ .muka-photo-uploader__dropzone-text {
8943
+ font-family: var(--text-subheading-sm-fontFamily);
8944
+ font-size: var(--text-subheading-sm-fontSize);
8945
+ font-weight: var(--text-subheading-sm-fontWeight);
8946
+ line-height: var(--text-subheading-sm-lineHeight);
8947
+ color: var(--color-text-default-default);
8948
+ }
8949
+
8950
+ /*
8951
+ * Touch devices (phones, tablets without a mouse) have nothing to drag a file
8952
+ * from: the card and its "or drop here" hint go, and only the button stays.
8953
+ * Keyed on input capability, not width, so a narrow desktop window keeps
8954
+ * its drop zone.
8955
+ */
8956
+ @media (hover: none) and (pointer: coarse) {
8957
+ .muka-photo-uploader__dropzone {
8958
+ align-items: flex-start;
8959
+ padding: 0;
8960
+ background-color: transparent;
8961
+ border: none;
8962
+ border-radius: 0;
8963
+ cursor: default;
8964
+ }
8965
+
8966
+ .muka-photo-uploader__dropzone-text {
8967
+ display: none;
8968
+ }
8969
+ }
8970
+
8971
+ /* ─── Disabled ────────────────────────────────────────── */
8972
+ .muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
8973
+ cursor: not-allowed;
8974
+ opacity: 0.6;
8975
+ }
8976
+
8977
+ .muka-photo-uploader--disabled .muka-photo-uploader__dropzone:hover {
8978
+ border-color: var(--card-color-default-border);
8979
+ background-color: var(--card-color-default-background);
8980
+ }
8981
+
8982
+ /* ─── Enlarged photo dialog ───────────────────────────── */
8983
+ .muka-photo-uploader__preview {
8984
+ display: flex;
8985
+ align-items: center;
8986
+ justify-content: center;
8987
+ width: 100%;
8988
+ height: 100%;
8989
+ }
8990
+
8991
+ /* Fits the dialog while preserving the photo's original aspect ratio. */
8992
+ .muka-photo-uploader__preview-image {
8993
+ display: block;
8994
+ max-width: 100%;
8995
+ max-height: 100%;
8996
+ width: auto;
8997
+ height: auto;
8998
+ object-fit: contain;
8999
+ border-radius: var(--border-radius-lg);
9000
+ }
9001
+
9002
+ /* ─── Reduced motion ──────────────────────────────────── */
9003
+ @media (prefers-reduced-motion: reduce) {
9004
+ .muka-photo-uploader__dropzone {
9005
+ transition: none;
9006
+ }
9007
+ }
9008
+
9009
+
9010
+ /* PieChart */
9011
+ /* PieChart Component Styles - Using Muka Design Tokens */
9012
+
9013
+ .muka-piechart {
9014
+ display: inline-flex;
9015
+ align-items: center;
9016
+ gap: var(--spacing-4);
9017
+ }
9018
+
9019
+ /* Legend layout */
9020
+ .muka-piechart--legend-right {
9021
+ flex-direction: row;
9022
+ }
9023
+
9024
+ .muka-piechart--legend-bottom {
9025
+ flex-direction: column;
9026
+ }
9027
+
9028
+ /* ========================================
9029
+ CHART
9030
+ ======================================== */
9031
+
9032
+ .muka-piechart__chart {
9033
+ position: relative;
9034
+ flex-shrink: 0;
9035
+ }
9036
+
9037
+ .muka-piechart__chart--sm {
9038
+ width: var(--piechart-size-diameter-sm);
9039
+ height: var(--piechart-size-diameter-sm);
9040
+ }
9041
+
9042
+ .muka-piechart__chart--md {
9043
+ width: var(--piechart-size-diameter-md);
9044
+ height: var(--piechart-size-diameter-md);
9045
+ }
9046
+
9047
+ .muka-piechart__chart--lg {
9048
+ width: var(--piechart-size-diameter-lg);
9049
+ height: var(--piechart-size-diameter-lg);
9050
+ }
9051
+
9052
+ .muka-piechart__svg {
9053
+ display: block;
9054
+ width: 100%;
9055
+ height: 100%;
9056
+ /* Start slices at 12 o'clock instead of 3 o'clock */
9057
+ transform: rotate(-90deg);
9058
+ }
9059
+
9060
+ .muka-piechart__track {
9061
+ fill: none;
9062
+ stroke: var(--piechart-color-track);
8937
9063
  }
8938
9064
 
8939
- /* ─── Disabled ────────────────────────────────────────── */
8940
- .muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
8941
- cursor: not-allowed;
8942
- opacity: 0.6;
9065
+ .muka-piechart__segment {
9066
+ fill: none;
8943
9067
  }
8944
9068
 
8945
- .muka-photo-uploader--disabled .muka-photo-uploader__dropzone:hover {
8946
- border-color: var(--card-color-default-border);
8947
- background-color: var(--card-color-default-background);
9069
+ /* ========================================
9070
+ LEGEND
9071
+ ======================================== */
9072
+
9073
+ .muka-piechart__legend {
9074
+ list-style: none;
9075
+ margin: 0;
9076
+ padding: 0;
9077
+ display: flex;
9078
+ flex-direction: column;
9079
+ gap: var(--spacing-1);
8948
9080
  }
8949
9081
 
8950
- /* ─── Enlarged photo dialog ───────────────────────────── */
8951
- .muka-photo-uploader__preview {
9082
+ .muka-piechart__legend-item {
8952
9083
  display: flex;
8953
9084
  align-items: center;
8954
- justify-content: center;
8955
- width: 100%;
8956
- height: 100%;
9085
+ gap: var(--spacing-2);
9086
+ font-family: var(--text-body-sm-regular-fontFamily);
9087
+ font-weight: var(--text-body-sm-regular-fontWeight);
9088
+ font-size: var(--text-body-sm-regular-fontSize);
9089
+ line-height: var(--text-body-sm-regular-lineHeight);
9090
+ color: var(--color-text-default-default);
8957
9091
  }
8958
9092
 
8959
- /* Fits the dialog while preserving the photo's original aspect ratio. */
8960
- .muka-photo-uploader__preview-image {
8961
- display: block;
8962
- max-width: 100%;
8963
- max-height: 100%;
8964
- width: auto;
8965
- height: auto;
8966
- object-fit: contain;
8967
- border-radius: var(--border-radius-lg);
9093
+ .muka-piechart__swatch {
9094
+ flex-shrink: 0;
9095
+ width: var(--spacing-3);
9096
+ height: var(--spacing-3);
9097
+ border-radius: var(--border-radius-sm);
8968
9098
  }
8969
9099
 
8970
- /* ─── Reduced motion ──────────────────────────────────── */
8971
- @media (prefers-reduced-motion: reduce) {
8972
- .muka-photo-uploader__dropzone {
8973
- transition: none;
8974
- }
9100
+ .muka-piechart__legend-value {
9101
+ margin-left: auto;
9102
+ padding-left: var(--spacing-2);
9103
+ color: var(--color-text-subtle-default);
8975
9104
  }
8976
9105
 
8977
9106
 
@@ -13870,240 +13999,82 @@ button.muka-chip__trailing[aria-expanded='true'],
13870
13999
  }
13871
14000
 
13872
14001
  .muka-chip--success {
13873
- background-color: var(--color-state-success-background);
13874
- color: var(--color-state-success-contrast);
13875
- --_chip-tr-bg: var(--chip-trailing-success-background-default);
13876
- --_chip-tr-bg-hover: var(--chip-trailing-success-background-hover);
13877
- --_chip-tr-bg-pressed: var(--chip-trailing-success-background-pressed);
13878
- --_chip-tr-fg: var(--chip-trailing-success-foreground-default);
13879
- --_chip-tr-fg-hover: var(--chip-trailing-success-foreground-hover);
13880
- --_chip-tr-fg-pressed: var(--chip-trailing-success-foreground-pressed);
13881
- }
13882
-
13883
- .muka-chip--warning {
13884
- background-color: var(--color-state-warning-background);
13885
- color: var(--color-state-warning-contrast);
13886
- --_chip-tr-bg: var(--chip-trailing-warning-background-default);
13887
- --_chip-tr-bg-hover: var(--chip-trailing-warning-background-hover);
13888
- --_chip-tr-bg-pressed: var(--chip-trailing-warning-background-pressed);
13889
- --_chip-tr-fg: var(--chip-trailing-warning-foreground-default);
13890
- --_chip-tr-fg-hover: var(--chip-trailing-warning-foreground-hover);
13891
- --_chip-tr-fg-pressed: var(--chip-trailing-warning-foreground-pressed);
13892
- }
13893
-
13894
- .muka-chip--error {
13895
- background-color: var(--color-state-error-background);
13896
- color: var(--color-state-error-contrast);
13897
- --_chip-tr-bg: var(--chip-trailing-error-background-default);
13898
- --_chip-tr-bg-hover: var(--chip-trailing-error-background-hover);
13899
- --_chip-tr-bg-pressed: var(--chip-trailing-error-background-pressed);
13900
- --_chip-tr-fg: var(--chip-trailing-error-foreground-default);
13901
- --_chip-tr-fg-hover: var(--chip-trailing-error-foreground-hover);
13902
- --_chip-tr-fg-pressed: var(--chip-trailing-error-foreground-pressed);
13903
- }
13904
-
13905
- .muka-chip--info {
13906
- background-color: var(--color-state-info-background);
13907
- color: var(--color-state-info-contrast);
13908
- --_chip-tr-bg: var(--chip-trailing-info-background-default);
13909
- --_chip-tr-bg-hover: var(--chip-trailing-info-background-hover);
13910
- --_chip-tr-bg-pressed: var(--chip-trailing-info-background-pressed);
13911
- --_chip-tr-fg: var(--chip-trailing-info-foreground-default);
13912
- --_chip-tr-fg-hover: var(--chip-trailing-info-foreground-hover);
13913
- --_chip-tr-fg-pressed: var(--chip-trailing-info-foreground-pressed);
13914
- }
13915
-
13916
- /* Ghost: no fill, subtle label; the trailing circle is outlined at rest (Figma Chip/Trailing Ghost) */
13917
- .muka-chip--ghost {
13918
- background-color: var(--chip-ghost-background-default);
13919
- color: var(--chip-ghost-foreground-default);
13920
- --_chip-tr-border: var(--chip-trailing-ghost-border-default);
13921
- --_chip-tr-bg: var(--chip-trailing-ghost-background-default);
13922
- --_chip-tr-bg-hover: var(--chip-trailing-ghost-background-hover);
13923
- --_chip-tr-bg-pressed: var(--chip-trailing-ghost-background-pressed);
13924
- --_chip-tr-fg: var(--chip-trailing-ghost-foreground-default);
13925
- --_chip-tr-fg-hover: var(--chip-trailing-ghost-foreground-hover);
13926
- --_chip-tr-fg-pressed: var(--chip-trailing-ghost-foreground-pressed);
13927
- }
13928
-
13929
- /*
13930
- * Body hover (Figma Chip State=Hover) — only on chips whose body does
13931
- * something: the whole-chip button, or a label link/button (hovering just the
13932
- * label, not the trailing button, which has its own states). A static chip
13933
- * doesn't hover.
13934
- */
13935
- .muka-chip--default.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
13936
- .muka-chip--default.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
13937
- background-color: var(--chip-neutral-background-hover);
13938
- }
13939
-
13940
- .muka-chip--ghost.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
13941
- .muka-chip--ghost.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
13942
- background-color: var(--chip-ghost-background-hover);
13943
- color: var(--chip-ghost-foreground-hover);
13944
- }
13945
-
13946
- /* Icons (leading + trailing) inherit their slot's foreground color */
13947
- .muka-chip .muka-icon {
13948
- color: inherit;
13949
- }
13950
-
13951
-
13952
- /* CheckboxTile */
13953
- /* CheckboxTile Component Styles - Using Muka Design Tokens */
13954
-
13955
- /* Base tile styles - horizontal */
13956
- .muka-checkbox-tile {
13957
- display: flex;
13958
- align-items: center;
13959
- gap: var(--spacing-4);
13960
- padding: var(--spacing-4);
13961
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
13962
- border-radius: var(--input-field-radius-lg);
13963
- background-color: var(--color-surface-level3);
13964
- cursor: pointer;
13965
- transition: border-color 0.15s ease, border-width 0.15s ease;
13966
- overflow: hidden;
13967
- box-sizing: border-box;
13968
- }
13969
-
13970
- .muka-checkbox-tile--disabled {
13971
- cursor: not-allowed;
13972
- opacity: 0.6;
13973
- }
13974
-
13975
- /* Selected state */
13976
- .muka-checkbox-tile[data-checked] {
13977
- border-width: var(--border-width-bold);
13978
- border-color: var(--color-action-default);
13979
- }
13980
-
13981
- /* Vertical layout */
13982
- .muka-checkbox-tile--vertical {
13983
- flex-direction: column;
13984
- align-items: center;
13985
- gap: var(--spacing-2);
13986
- position: relative;
13987
- width: 160px;
13988
- }
13989
-
13990
- /* Checkbox container */
13991
- .muka-checkbox-tile__checkbox {
13992
- flex-shrink: 0;
13993
- }
13994
-
13995
- /* Corner-positioned checkbox for vertical */
13996
- .muka-checkbox-tile__checkbox--corner {
13997
- position: absolute;
13998
- top: var(--spacing-4);
13999
- left: var(--spacing-4);
14000
- }
14001
-
14002
- /* Adjust corner position when selected (border is thicker) */
14003
- .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
14004
- top: calc(var(--spacing-4) - 1px);
14005
- left: calc(var(--spacing-4) - 1px);
14006
- }
14007
-
14008
- /* Icon */
14009
- .muka-checkbox-tile__icon {
14010
- display: flex;
14011
- align-items: center;
14012
- justify-content: center;
14013
- flex-shrink: 0;
14014
- width: var(--icon-size-default);
14015
- height: var(--icon-size-default);
14016
- color: var(--color-text-default-default);
14017
- }
14018
-
14019
- .muka-checkbox-tile__icon svg {
14020
- width: 100%;
14021
- height: 100%;
14022
- }
14023
-
14024
- /* Image */
14025
- .muka-checkbox-tile__image {
14026
- flex-shrink: 0;
14027
- overflow: hidden;
14028
- border-radius: var(--border-radius-sm);
14029
- }
14030
-
14031
- .muka-checkbox-tile__image img {
14032
- display: block;
14033
- width: 100%;
14034
- height: 100%;
14035
- object-fit: cover;
14036
- }
14037
-
14038
- /* Horizontal image sizing */
14039
- .muka-checkbox-tile__image--horizontal {
14040
- width: 40px;
14041
- height: 40px;
14042
- }
14043
-
14044
- /* Vertical image sizing */
14045
- .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
14046
- width: 100%;
14047
- aspect-ratio: 4/3;
14048
- }
14049
-
14050
- /* Content container */
14051
- .muka-checkbox-tile__content {
14052
- display: flex;
14053
- flex-direction: column;
14054
- flex: 1;
14055
- min-width: 0;
14056
- gap: var(--spacing-2);
14057
- }
14058
-
14059
- .muka-checkbox-tile__content-inner {
14060
- display: flex;
14061
- flex-direction: column;
14062
- gap: var(--spacing-1);
14002
+ background-color: var(--color-state-success-background);
14003
+ color: var(--color-state-success-contrast);
14004
+ --_chip-tr-bg: var(--chip-trailing-success-background-default);
14005
+ --_chip-tr-bg-hover: var(--chip-trailing-success-background-hover);
14006
+ --_chip-tr-bg-pressed: var(--chip-trailing-success-background-pressed);
14007
+ --_chip-tr-fg: var(--chip-trailing-success-foreground-default);
14008
+ --_chip-tr-fg-hover: var(--chip-trailing-success-foreground-hover);
14009
+ --_chip-tr-fg-pressed: var(--chip-trailing-success-foreground-pressed);
14063
14010
  }
14064
14011
 
14065
- /* Chip slot (replaces badge; use Chip component) */
14066
- .muka-checkbox-tile__chip {
14067
- flex-shrink: 0;
14012
+ .muka-chip--warning {
14013
+ background-color: var(--color-state-warning-background);
14014
+ color: var(--color-state-warning-contrast);
14015
+ --_chip-tr-bg: var(--chip-trailing-warning-background-default);
14016
+ --_chip-tr-bg-hover: var(--chip-trailing-warning-background-hover);
14017
+ --_chip-tr-bg-pressed: var(--chip-trailing-warning-background-pressed);
14018
+ --_chip-tr-fg: var(--chip-trailing-warning-foreground-default);
14019
+ --_chip-tr-fg-hover: var(--chip-trailing-warning-foreground-hover);
14020
+ --_chip-tr-fg-pressed: var(--chip-trailing-warning-foreground-pressed);
14068
14021
  }
14069
14022
 
14070
- .muka-checkbox-tile__chip--vertical {
14071
- margin-top: var(--spacing-1);
14023
+ .muka-chip--error {
14024
+ background-color: var(--color-state-error-background);
14025
+ color: var(--color-state-error-contrast);
14026
+ --_chip-tr-bg: var(--chip-trailing-error-background-default);
14027
+ --_chip-tr-bg-hover: var(--chip-trailing-error-background-hover);
14028
+ --_chip-tr-bg-pressed: var(--chip-trailing-error-background-pressed);
14029
+ --_chip-tr-fg: var(--chip-trailing-error-foreground-default);
14030
+ --_chip-tr-fg-hover: var(--chip-trailing-error-foreground-hover);
14031
+ --_chip-tr-fg-pressed: var(--chip-trailing-error-foreground-pressed);
14072
14032
  }
14073
14033
 
14074
- /* Label */
14075
- .muka-checkbox-tile__label {
14076
- font-family: var(--text-body-lg-regular-fontFamily);
14077
- font-weight: var(--text-body-lg-regular-fontWeight);
14078
- font-size: var(--text-body-lg-regular-fontSize);
14079
- line-height: var(--text-body-lg-regular-lineHeight);
14080
- color: var(--color-text-default-default);
14034
+ .muka-chip--info {
14035
+ background-color: var(--color-state-info-background);
14036
+ color: var(--color-state-info-contrast);
14037
+ --_chip-tr-bg: var(--chip-trailing-info-background-default);
14038
+ --_chip-tr-bg-hover: var(--chip-trailing-info-background-hover);
14039
+ --_chip-tr-bg-pressed: var(--chip-trailing-info-background-pressed);
14040
+ --_chip-tr-fg: var(--chip-trailing-info-foreground-default);
14041
+ --_chip-tr-fg-hover: var(--chip-trailing-info-foreground-hover);
14042
+ --_chip-tr-fg-pressed: var(--chip-trailing-info-foreground-pressed);
14081
14043
  }
14082
14044
 
14083
- .muka-checkbox-tile__label--bold {
14084
- font-family: var(--text-label-lg-semibold-fontFamily);
14085
- font-weight: var(--text-label-lg-semibold-fontWeight);
14086
- font-size: var(--text-label-lg-semibold-fontSize);
14087
- line-height: var(--text-label-lg-semibold-lineHeight);
14045
+ /* Ghost: no fill, subtle label; the trailing circle is outlined at rest (Figma Chip/Trailing Ghost) */
14046
+ .muka-chip--ghost {
14047
+ background-color: var(--chip-ghost-background-default);
14048
+ color: var(--chip-ghost-foreground-default);
14049
+ --_chip-tr-border: var(--chip-trailing-ghost-border-default);
14050
+ --_chip-tr-bg: var(--chip-trailing-ghost-background-default);
14051
+ --_chip-tr-bg-hover: var(--chip-trailing-ghost-background-hover);
14052
+ --_chip-tr-bg-pressed: var(--chip-trailing-ghost-background-pressed);
14053
+ --_chip-tr-fg: var(--chip-trailing-ghost-foreground-default);
14054
+ --_chip-tr-fg-hover: var(--chip-trailing-ghost-foreground-hover);
14055
+ --_chip-tr-fg-pressed: var(--chip-trailing-ghost-foreground-pressed);
14088
14056
  }
14089
14057
 
14090
- .muka-checkbox-tile__label--center {
14091
- text-align: center;
14058
+ /*
14059
+ * Body hover (Figma Chip State=Hover) — only on chips whose body does
14060
+ * something: the whole-chip button, or a label link/button (hovering just the
14061
+ * label, not the trailing button, which has its own states). A static chip
14062
+ * doesn't hover.
14063
+ */
14064
+ .muka-chip--default.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
14065
+ .muka-chip--default.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
14066
+ background-color: var(--chip-neutral-background-hover);
14092
14067
  }
14093
14068
 
14094
- /* Caption */
14095
- .muka-checkbox-tile__caption {
14096
- font-family: var(--text-body-base-regular-fontFamily);
14097
- font-weight: var(--text-body-base-regular-fontWeight);
14098
- font-size: var(--text-body-base-regular-fontSize);
14099
- line-height: var(--text-body-base-regular-lineHeight);
14100
- color: var(--color-text-subtle-default);
14069
+ .muka-chip--ghost.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
14070
+ .muka-chip--ghost.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
14071
+ background-color: var(--chip-ghost-background-hover);
14072
+ color: var(--chip-ghost-foreground-hover);
14101
14073
  }
14102
14074
 
14103
- /* Disabled states */
14104
- .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
14105
- .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
14106
- color: var(--color-text-subtle-default);
14075
+ /* Icons (leading + trailing) inherit their slot's foreground color */
14076
+ .muka-chip .muka-icon {
14077
+ color: inherit;
14107
14078
  }
14108
14079
 
14109
14080
 
@@ -14394,125 +14365,161 @@ button.muka-chip__trailing[aria-expanded='true'],
14394
14365
  }
14395
14366
 
14396
14367
 
14397
- /* ChatPhotoGrid */
14398
- /* ChatPhotoGrid Component Styles */
14368
+ /* CheckboxTile */
14369
+ /* CheckboxTile Component Styles - Using Muka Design Tokens */
14399
14370
 
14400
- /*
14401
- * The grid clips to its own radius and the tiles stay square, so only the four
14402
- * outer corners round — matching the Figma "Wrapper" frame (5225:1394).
14403
- */
14404
- .muka-chat-photo-grid {
14405
- display: grid;
14406
- gap: var(--chatphotogrid-gap);
14407
- width: 100%;
14408
- min-width: 0;
14371
+ /* Base tile styles - horizontal */
14372
+ .muka-checkbox-tile {
14373
+ display: flex;
14374
+ align-items: center;
14375
+ gap: var(--spacing-4);
14376
+ padding: var(--spacing-4);
14377
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
14378
+ border-radius: var(--input-field-radius-lg);
14379
+ background-color: var(--color-surface-level3);
14380
+ cursor: pointer;
14381
+ transition: border-color 0.15s ease, border-width 0.15s ease;
14409
14382
  overflow: hidden;
14410
- border-radius: var(--chatphotogrid-radius);
14383
+ box-sizing: border-box;
14411
14384
  }
14412
14385
 
14413
- /* ─── Tiles ────────────────────────────────────────────── */
14386
+ .muka-checkbox-tile--disabled {
14387
+ cursor: not-allowed;
14388
+ opacity: 0.6;
14389
+ }
14414
14390
 
14415
- .muka-chat-photo-grid__tile {
14416
- position: relative;
14417
- display: block;
14418
- overflow: hidden;
14419
- min-width: 0;
14420
- padding: 0;
14421
- margin: 0;
14422
- border: none;
14423
- background-color: var(--chatphotogrid-color-placeholder);
14424
- aspect-ratio: 1 / 1;
14391
+ /* Selected state */
14392
+ .muka-checkbox-tile[data-checked] {
14393
+ border-width: var(--border-width-bold);
14394
+ border-color: var(--color-action-default);
14425
14395
  }
14426
14396
 
14427
- button.muka-chat-photo-grid__tile {
14428
- cursor: pointer;
14429
- appearance: none;
14397
+ /* Vertical layout */
14398
+ .muka-checkbox-tile--vertical {
14399
+ flex-direction: column;
14400
+ align-items: center;
14401
+ gap: var(--spacing-2);
14402
+ position: relative;
14403
+ width: 160px;
14430
14404
  }
14431
14405
 
14432
- button.muka-chat-photo-grid__tile:focus-visible {
14433
- outline: var(--border-width-bold) solid var(--color-border-focus);
14434
- /* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
14435
- outline-offset: calc(-1 * var(--border-width-bold));
14406
+ /* Checkbox container */
14407
+ .muka-checkbox-tile__checkbox {
14408
+ flex-shrink: 0;
14436
14409
  }
14437
14410
 
14438
- .muka-chat-photo-grid__image {
14439
- display: block;
14440
- width: 100%;
14441
- height: 100%;
14442
- object-fit: cover;
14411
+ /* Corner-positioned checkbox for vertical */
14412
+ .muka-checkbox-tile__checkbox--corner {
14413
+ position: absolute;
14414
+ top: var(--spacing-4);
14415
+ left: var(--spacing-4);
14443
14416
  }
14444
14417
 
14445
- /* ─── Overflow tile ────────────────────────────────────── */
14418
+ /* Adjust corner position when selected (border is thicker) */
14419
+ .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
14420
+ top: calc(var(--spacing-4) - 1px);
14421
+ left: calc(var(--spacing-4) - 1px);
14422
+ }
14446
14423
 
14447
- .muka-chat-photo-grid__overflow {
14448
- position: absolute;
14449
- inset: 0;
14424
+ /* Icon */
14425
+ .muka-checkbox-tile__icon {
14450
14426
  display: flex;
14451
14427
  align-items: center;
14452
14428
  justify-content: center;
14453
- background-color: var(--chatphotogrid-color-overflow-background);
14454
- color: var(--chatphotogrid-color-overflow-foreground);
14455
- font-family: var(--text-body-2xl-regular-fontFamily);
14456
- font-weight: var(--text-body-2xl-regular-fontWeight);
14457
- font-size: var(--text-body-2xl-regular-fontSize);
14458
- line-height: var(--text-body-2xl-regular-lineHeight);
14429
+ flex-shrink: 0;
14430
+ width: var(--icon-size-default);
14431
+ height: var(--icon-size-default);
14432
+ color: var(--color-text-default-default);
14459
14433
  }
14460
14434
 
14461
- /* ─── Layouts ──────────────────────────────────────────── */
14435
+ .muka-checkbox-tile__icon svg {
14436
+ width: 100%;
14437
+ height: 100%;
14438
+ }
14462
14439
 
14463
- .muka-chat-photo-grid--1 {
14464
- grid-template-columns: 1fr;
14440
+ /* Image */
14441
+ .muka-checkbox-tile__image {
14442
+ flex-shrink: 0;
14443
+ overflow: hidden;
14444
+ border-radius: var(--border-radius-sm);
14465
14445
  }
14466
14446
 
14467
- .muka-chat-photo-grid--landscape .muka-chat-photo-grid__tile {
14468
- aspect-ratio: 4 / 3;
14447
+ .muka-checkbox-tile__image img {
14448
+ display: block;
14449
+ width: 100%;
14450
+ height: 100%;
14451
+ object-fit: cover;
14469
14452
  }
14470
14453
 
14471
- .muka-chat-photo-grid--portrait .muka-chat-photo-grid__tile {
14472
- aspect-ratio: 3 / 4;
14454
+ /* Horizontal image sizing */
14455
+ .muka-checkbox-tile__image--horizontal {
14456
+ width: 40px;
14457
+ height: 40px;
14473
14458
  }
14474
14459
 
14475
- .muka-chat-photo-grid--2 {
14476
- grid-template-columns: repeat(2, 1fr);
14460
+ /* Vertical image sizing */
14461
+ .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
14462
+ width: 100%;
14463
+ aspect-ratio: 4/3;
14477
14464
  }
14478
14465
 
14479
- .muka-chat-photo-grid--3 {
14480
- grid-template-columns: repeat(3, 1fr);
14466
+ /* Content container */
14467
+ .muka-checkbox-tile__content {
14468
+ display: flex;
14469
+ flex-direction: column;
14470
+ flex: 1;
14471
+ min-width: 0;
14472
+ gap: var(--spacing-2);
14481
14473
  }
14482
14474
 
14483
- .muka-chat-photo-grid--4 {
14484
- grid-template-columns: repeat(2, 1fr);
14475
+ .muka-checkbox-tile__content-inner {
14476
+ display: flex;
14477
+ flex-direction: column;
14478
+ gap: var(--spacing-1);
14485
14479
  }
14486
14480
 
14487
- /* 5 photos: a 2-up row above a 3-up row, on a shared 6-column track */
14488
- .muka-chat-photo-grid--5 {
14489
- grid-template-columns: repeat(6, 1fr);
14481
+ /* Chip slot (replaces badge; use Chip component) */
14482
+ .muka-checkbox-tile__chip {
14483
+ flex-shrink: 0;
14490
14484
  }
14491
14485
 
14492
- .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(-n + 2) {
14493
- grid-column: span 3;
14486
+ .muka-checkbox-tile__chip--vertical {
14487
+ margin-top: var(--spacing-1);
14494
14488
  }
14495
14489
 
14496
- .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(n + 3) {
14497
- grid-column: span 2;
14490
+ /* Label */
14491
+ .muka-checkbox-tile__label {
14492
+ font-family: var(--text-body-lg-regular-fontFamily);
14493
+ font-weight: var(--text-body-lg-regular-fontWeight);
14494
+ font-size: var(--text-body-lg-regular-fontSize);
14495
+ line-height: var(--text-body-lg-regular-lineHeight);
14496
+ color: var(--color-text-default-default);
14498
14497
  }
14499
14498
 
14500
- .muka-chat-photo-grid--6,
14501
- .muka-chat-photo-grid--overflow {
14502
- grid-template-columns: repeat(3, 1fr);
14499
+ .muka-checkbox-tile__label--bold {
14500
+ font-family: var(--text-label-lg-semibold-fontFamily);
14501
+ font-weight: var(--text-label-lg-semibold-fontWeight);
14502
+ font-size: var(--text-label-lg-semibold-fontSize);
14503
+ line-height: var(--text-label-lg-semibold-lineHeight);
14503
14504
  }
14504
14505
 
14505
- /* ─── Print ────────────────────────────────────────────── */
14506
+ .muka-checkbox-tile__label--center {
14507
+ text-align: center;
14508
+ }
14506
14509
 
14507
- @media print {
14508
- .muka-chat-photo-grid {
14509
- break-inside: avoid;
14510
- }
14510
+ /* Caption */
14511
+ .muka-checkbox-tile__caption {
14512
+ font-family: var(--text-body-base-regular-fontFamily);
14513
+ font-weight: var(--text-body-base-regular-fontWeight);
14514
+ font-size: var(--text-body-base-regular-fontSize);
14515
+ line-height: var(--text-body-base-regular-lineHeight);
14516
+ color: var(--color-text-subtle-default);
14517
+ }
14511
14518
 
14512
- .muka-chat-photo-grid__image {
14513
- print-color-adjust: exact;
14514
- -webkit-print-color-adjust: exact;
14515
- }
14519
+ /* Disabled states */
14520
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
14521
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
14522
+ color: var(--color-text-subtle-default);
14516
14523
  }
14517
14524
 
14518
14525
 
@@ -14968,6 +14975,128 @@ button.muka-chat-photo-grid__tile:focus-visible {
14968
14975
  }
14969
14976
 
14970
14977
 
14978
+ /* ChatPhotoGrid */
14979
+ /* ChatPhotoGrid Component Styles */
14980
+
14981
+ /*
14982
+ * The grid clips to its own radius and the tiles stay square, so only the four
14983
+ * outer corners round — matching the Figma "Wrapper" frame (5225:1394).
14984
+ */
14985
+ .muka-chat-photo-grid {
14986
+ display: grid;
14987
+ gap: var(--chatphotogrid-gap);
14988
+ width: 100%;
14989
+ min-width: 0;
14990
+ overflow: hidden;
14991
+ border-radius: var(--chatphotogrid-radius);
14992
+ }
14993
+
14994
+ /* ─── Tiles ────────────────────────────────────────────── */
14995
+
14996
+ .muka-chat-photo-grid__tile {
14997
+ position: relative;
14998
+ display: block;
14999
+ overflow: hidden;
15000
+ min-width: 0;
15001
+ padding: 0;
15002
+ margin: 0;
15003
+ border: none;
15004
+ background-color: var(--chatphotogrid-color-placeholder);
15005
+ aspect-ratio: 1 / 1;
15006
+ }
15007
+
15008
+ button.muka-chat-photo-grid__tile {
15009
+ cursor: pointer;
15010
+ appearance: none;
15011
+ }
15012
+
15013
+ button.muka-chat-photo-grid__tile:focus-visible {
15014
+ outline: var(--border-width-bold) solid var(--color-border-focus);
15015
+ /* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
15016
+ outline-offset: calc(-1 * var(--border-width-bold));
15017
+ }
15018
+
15019
+ .muka-chat-photo-grid__image {
15020
+ display: block;
15021
+ width: 100%;
15022
+ height: 100%;
15023
+ object-fit: cover;
15024
+ }
15025
+
15026
+ /* ─── Overflow tile ────────────────────────────────────── */
15027
+
15028
+ .muka-chat-photo-grid__overflow {
15029
+ position: absolute;
15030
+ inset: 0;
15031
+ display: flex;
15032
+ align-items: center;
15033
+ justify-content: center;
15034
+ background-color: var(--chatphotogrid-color-overflow-background);
15035
+ color: var(--chatphotogrid-color-overflow-foreground);
15036
+ font-family: var(--text-body-2xl-regular-fontFamily);
15037
+ font-weight: var(--text-body-2xl-regular-fontWeight);
15038
+ font-size: var(--text-body-2xl-regular-fontSize);
15039
+ line-height: var(--text-body-2xl-regular-lineHeight);
15040
+ }
15041
+
15042
+ /* ─── Layouts ──────────────────────────────────────────── */
15043
+
15044
+ .muka-chat-photo-grid--1 {
15045
+ grid-template-columns: 1fr;
15046
+ }
15047
+
15048
+ .muka-chat-photo-grid--landscape .muka-chat-photo-grid__tile {
15049
+ aspect-ratio: 4 / 3;
15050
+ }
15051
+
15052
+ .muka-chat-photo-grid--portrait .muka-chat-photo-grid__tile {
15053
+ aspect-ratio: 3 / 4;
15054
+ }
15055
+
15056
+ .muka-chat-photo-grid--2 {
15057
+ grid-template-columns: repeat(2, 1fr);
15058
+ }
15059
+
15060
+ .muka-chat-photo-grid--3 {
15061
+ grid-template-columns: repeat(3, 1fr);
15062
+ }
15063
+
15064
+ .muka-chat-photo-grid--4 {
15065
+ grid-template-columns: repeat(2, 1fr);
15066
+ }
15067
+
15068
+ /* 5 photos: a 2-up row above a 3-up row, on a shared 6-column track */
15069
+ .muka-chat-photo-grid--5 {
15070
+ grid-template-columns: repeat(6, 1fr);
15071
+ }
15072
+
15073
+ .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(-n + 2) {
15074
+ grid-column: span 3;
15075
+ }
15076
+
15077
+ .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(n + 3) {
15078
+ grid-column: span 2;
15079
+ }
15080
+
15081
+ .muka-chat-photo-grid--6,
15082
+ .muka-chat-photo-grid--overflow {
15083
+ grid-template-columns: repeat(3, 1fr);
15084
+ }
15085
+
15086
+ /* ─── Print ────────────────────────────────────────────── */
15087
+
15088
+ @media print {
15089
+ .muka-chat-photo-grid {
15090
+ break-inside: avoid;
15091
+ }
15092
+
15093
+ .muka-chat-photo-grid__image {
15094
+ print-color-adjust: exact;
15095
+ -webkit-print-color-adjust: exact;
15096
+ }
15097
+ }
15098
+
15099
+
14971
15100
  /* ChatEvent */
14972
15101
  /* ChatEvent: a line in a chat that isn't a message from a person */
14973
15102
 
@@ -17999,111 +18128,3 @@ button.muka-chat-photo-grid__tile:focus-visible {
17999
18128
  border-bottom: none;
18000
18129
  }
18001
18130
 
18002
-
18003
- /* SwipeActions */
18004
- /* SwipeActions Component Styles */
18005
-
18006
- .muka-swipe-actions {
18007
- position: relative;
18008
- overflow: hidden;
18009
- touch-action: pan-y;
18010
- -webkit-user-select: none;
18011
- user-select: none;
18012
- background-color: var(--color-surface-level3);
18013
- }
18014
-
18015
- .muka-swipe-actions--disabled {
18016
- touch-action: auto;
18017
- }
18018
-
18019
- /* ─── Row that holds the actual content ────────────────── */
18020
-
18021
- .muka-swipe-actions__row {
18022
- position: relative;
18023
- z-index: 1;
18024
- background-color: inherit;
18025
- will-change: transform;
18026
- }
18027
-
18028
- /* ─── Action panels — sit beneath the row ──────────────── */
18029
-
18030
- .muka-swipe-actions__panel {
18031
- position: absolute;
18032
- top: 0;
18033
- bottom: 0;
18034
- display: flex;
18035
- align-items: stretch;
18036
- z-index: 0;
18037
- }
18038
-
18039
- .muka-swipe-actions__panel--left {
18040
- left: 0;
18041
- }
18042
-
18043
- .muka-swipe-actions__panel--right {
18044
- right: 0;
18045
- }
18046
-
18047
- /* ─── Single action button ─────────────────────────────── */
18048
-
18049
- .muka-swipe-actions__button {
18050
- display: flex;
18051
- flex-direction: column;
18052
- align-items: center;
18053
- justify-content: center;
18054
- gap: var(--spacing-1);
18055
- border: none;
18056
- cursor: pointer;
18057
- padding: var(--spacing-2);
18058
- background-color: var(--color-surface-level2);
18059
- color: var(--color-text-default-default);
18060
- font-family: var(--text-label-sm-semibold-fontFamily);
18061
- font-weight: var(--text-label-sm-semibold-fontWeight);
18062
- font-size: var(--text-label-sm-semibold-fontSize);
18063
- line-height: var(--text-label-sm-semibold-lineHeight);
18064
- -webkit-tap-highlight-color: transparent;
18065
- transition: filter 0.12s ease;
18066
- }
18067
-
18068
- .muka-swipe-actions__button:hover {
18069
- filter: brightness(0.95);
18070
- }
18071
-
18072
- .muka-swipe-actions__button:focus-visible {
18073
- outline: 2px solid var(--color-action-default);
18074
- outline-offset: -2px;
18075
- }
18076
-
18077
- .muka-swipe-actions__button-icon {
18078
- display: inline-flex;
18079
- align-items: center;
18080
- justify-content: center;
18081
- }
18082
-
18083
- /* ─── Color variants ───────────────────────────────────── */
18084
-
18085
- .muka-swipe-actions__button--neutral {
18086
- background-color: var(--color-surface-level2);
18087
- color: var(--color-text-default-default);
18088
- }
18089
-
18090
- .muka-swipe-actions__button--primary {
18091
- background-color: var(--color-action-default);
18092
- color: var(--color-text-default-inverse);
18093
- }
18094
-
18095
- .muka-swipe-actions__button--success {
18096
- background-color: var(--color-state-success-default);
18097
- color: var(--color-text-default-inverse);
18098
- }
18099
-
18100
- .muka-swipe-actions__button--warning {
18101
- background-color: var(--color-state-warning-default);
18102
- color: var(--color-text-default-default);
18103
- }
18104
-
18105
- .muka-swipe-actions__button--destructive {
18106
- background-color: var(--color-state-error-default);
18107
- color: var(--color-text-default-inverse);
18108
- }
18109
-