@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
@@ -4061,6 +4061,191 @@ body {
4061
4061
  }
4062
4062
 
4063
4063
 
4064
+ /* Thumbnail */
4065
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
4066
+
4067
+ .muka-thumbnail {
4068
+ position: relative;
4069
+ flex-shrink: 0;
4070
+ }
4071
+
4072
+ /* The frame carries the border, background and shape clip. Keeping it separate
4073
+ from the root lets the remove (×) button sit outside the clip (needed for the
4074
+ circular/ellipse shape, whose corners would otherwise clip the button). */
4075
+ .muka-thumbnail__frame {
4076
+ position: absolute;
4077
+ inset: 0;
4078
+ overflow: hidden;
4079
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4080
+ border-radius: var(--border-radius-lg);
4081
+ background-color: var(--color-surface-level1);
4082
+ }
4083
+
4084
+ /* ─── Shapes ──────────────────────────────────────────── */
4085
+ .muka-thumbnail--4-3 {
4086
+ width: 160px;
4087
+ height: 120px;
4088
+ }
4089
+
4090
+ .muka-thumbnail--1-1 {
4091
+ width: 120px;
4092
+ height: 120px;
4093
+ }
4094
+
4095
+ .muka-thumbnail--ellipse {
4096
+ width: 120px;
4097
+ height: 120px;
4098
+ }
4099
+
4100
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4101
+ .muka-thumbnail--fluid {
4102
+ width: 100%;
4103
+ height: auto;
4104
+ aspect-ratio: 1 / 1;
4105
+ }
4106
+
4107
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4108
+ aspect-ratio: 4 / 3;
4109
+ }
4110
+
4111
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
4112
+ border-radius: var(--border-radius-full);
4113
+ }
4114
+
4115
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4116
+ interactive hover zoom has a clean origin. */
4117
+ .muka-thumbnail__image {
4118
+ position: absolute;
4119
+ inset: 0;
4120
+ width: 100%;
4121
+ height: 100%;
4122
+ object-fit: cover;
4123
+ display: block;
4124
+ transform-origin: center;
4125
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4126
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4127
+ }
4128
+
4129
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
4130
+ .muka-thumbnail__trigger {
4131
+ position: absolute;
4132
+ inset: 0;
4133
+ padding: 0;
4134
+ border: 0;
4135
+ background: none;
4136
+ cursor: pointer;
4137
+ overflow: hidden;
4138
+ }
4139
+
4140
+ .muka-thumbnail__trigger:focus-visible {
4141
+ outline: 2px solid var(--color-border-focus);
4142
+ outline-offset: -2px;
4143
+ }
4144
+
4145
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4146
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4147
+ transform: scale(1.05);
4148
+ }
4149
+
4150
+ /* ─── Loading overlay + progress donut ────────────────── */
4151
+ .muka-thumbnail__overlay {
4152
+ position: absolute;
4153
+ inset: 0;
4154
+ display: flex;
4155
+ align-items: center;
4156
+ justify-content: center;
4157
+ background-color: var(--dialog-color-backdrop);
4158
+ }
4159
+
4160
+ .muka-thumbnail__progress {
4161
+ width: 40px;
4162
+ height: 40px;
4163
+ }
4164
+
4165
+ /* ─── Error / corrupt state ───────────────────────────── */
4166
+ .muka-thumbnail--error .muka-thumbnail__frame {
4167
+ background-color: var(--alias-color-state-error-muted);
4168
+ border-color: var(--alias-color-state-error-default);
4169
+ }
4170
+
4171
+ .muka-thumbnail__error {
4172
+ position: absolute;
4173
+ inset: 0;
4174
+ display: flex;
4175
+ flex-direction: column;
4176
+ align-items: center;
4177
+ justify-content: center;
4178
+ gap: var(--spacing-2);
4179
+ padding: var(--spacing-3);
4180
+ text-align: center;
4181
+ }
4182
+
4183
+ .muka-thumbnail__error-icon {
4184
+ color: var(--alert-color-error-accent);
4185
+ }
4186
+
4187
+ .muka-thumbnail__caption {
4188
+ max-width: 100%;
4189
+ overflow: hidden;
4190
+ text-overflow: ellipsis;
4191
+ white-space: nowrap;
4192
+ color: var(--alert-color-error-accent);
4193
+ font-family: var(--text-body-sm-regular-fontFamily);
4194
+ font-size: var(--text-body-sm-regular-fontSize);
4195
+ font-weight: var(--text-body-sm-regular-fontWeight);
4196
+ line-height: var(--text-body-sm-regular-lineHeight);
4197
+ }
4198
+
4199
+ /* ─── Remove (×) button ───────────────────────────────── */
4200
+ .muka-thumbnail__remove {
4201
+ position: absolute;
4202
+ top: var(--spacing-2);
4203
+ right: var(--spacing-2);
4204
+ display: flex;
4205
+ align-items: center;
4206
+ justify-content: center;
4207
+ width: var(--size-2xl);
4208
+ height: var(--size-2xl);
4209
+ padding: 0;
4210
+ color: var(--button-color-tertiary-foreground-default);
4211
+ background-color: var(--button-color-tertiary-background-default);
4212
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4213
+ border-radius: var(--border-radius-lg);
4214
+ cursor: pointer;
4215
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4216
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
4217
+ }
4218
+
4219
+ .muka-thumbnail__remove:hover {
4220
+ color: var(--button-color-tertiary-foreground-hover);
4221
+ background-color: var(--button-color-tertiary-background-hover);
4222
+ border-color: var(--button-color-tertiary-border-hover);
4223
+ }
4224
+
4225
+ .muka-thumbnail__remove:active {
4226
+ color: var(--button-color-tertiary-foreground-pressed);
4227
+ background-color: var(--button-color-tertiary-background-pressed);
4228
+ border-color: var(--button-color-tertiary-border-pressed);
4229
+ }
4230
+
4231
+ .muka-thumbnail__remove:focus-visible {
4232
+ outline: 2px solid var(--color-border-focus);
4233
+ outline-offset: 2px;
4234
+ }
4235
+
4236
+ /* ─── Reduced motion ──────────────────────────────────── */
4237
+ @media (prefers-reduced-motion: reduce) {
4238
+ .muka-thumbnail__image,
4239
+ .muka-thumbnail__remove {
4240
+ transition: none;
4241
+ }
4242
+
4243
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4244
+ transform: none;
4245
+ }
4246
+ }
4247
+
4248
+
4064
4249
  /* Textarea */
4065
4250
  /* Textarea Component Styles - Using Muka Design Tokens */
4066
4251
 
@@ -4497,232 +4682,47 @@ body {
4497
4682
  }
4498
4683
 
4499
4684
 
4500
- /* Thumbnail */
4501
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4502
-
4503
- .muka-thumbnail {
4504
- position: relative;
4505
- flex-shrink: 0;
4506
- }
4685
+ /* TablePagination */
4686
+ /* TablePagination Component Styles - Using Muka Design Tokens */
4507
4687
 
4508
- /* The frame carries the border, background and shape clip. Keeping it separate
4509
- from the root lets the remove (×) button sit outside the clip (needed for the
4510
- circular/ellipse shape, whose corners would otherwise clip the button). */
4511
- .muka-thumbnail__frame {
4512
- position: absolute;
4513
- inset: 0;
4514
- overflow: hidden;
4515
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4516
- border-radius: var(--border-radius-lg);
4517
- background-color: var(--color-surface-level1);
4518
- }
4688
+ /* ========================================
4689
+ PAGINATION CONTAINER
4690
+ ======================================== */
4519
4691
 
4520
- /* ─── Shapes ──────────────────────────────────────────── */
4521
- .muka-thumbnail--4-3 {
4522
- width: 160px;
4523
- height: 120px;
4692
+ .muka-table-pagination {
4693
+ display: flex;
4694
+ align-items: center;
4695
+ justify-content: space-between;
4696
+ flex-wrap: wrap;
4697
+ gap: var(--table-pagination-gap, var(--spacing-4));
4698
+ padding: var(--table-pagination-padding, var(--spacing-3));
4699
+ background-color: var(--table-pagination-background, var(--color-surface-level1));
4700
+ border-top: var(--border-width-regular) solid var(--table-pagination-border, var(--color-border-default));
4701
+ font-family: var(--text-body-base-regular-fontFamily);
4702
+ font-size: var(--text-body-sm-regular-fontSize);
4703
+ line-height: var(--text-body-sm-regular-lineHeight);
4704
+ color: var(--color-text-default-default);
4524
4705
  }
4525
4706
 
4526
- .muka-thumbnail--1-1 {
4527
- width: 120px;
4528
- height: 120px;
4529
- }
4707
+ /* ========================================
4708
+ LEFT SECTION (Page Size & Range)
4709
+ ======================================== */
4530
4710
 
4531
- .muka-thumbnail--ellipse {
4532
- width: 120px;
4533
- height: 120px;
4711
+ .muka-table-pagination__left {
4712
+ display: flex;
4713
+ align-items: center;
4714
+ gap: var(--spacing-4);
4534
4715
  }
4535
4716
 
4536
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4537
- .muka-thumbnail--fluid {
4538
- width: 100%;
4539
- height: auto;
4540
- aspect-ratio: 1 / 1;
4717
+ .muka-table-pagination__page-size {
4718
+ display: flex;
4719
+ align-items: center;
4720
+ gap: var(--spacing-2);
4541
4721
  }
4542
4722
 
4543
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4544
- aspect-ratio: 4 / 3;
4545
- }
4546
-
4547
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4548
- border-radius: var(--border-radius-full);
4549
- }
4550
-
4551
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4552
- interactive hover zoom has a clean origin. */
4553
- .muka-thumbnail__image {
4554
- position: absolute;
4555
- inset: 0;
4556
- width: 100%;
4557
- height: 100%;
4558
- object-fit: cover;
4559
- display: block;
4560
- transform-origin: center;
4561
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4562
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4563
- }
4564
-
4565
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4566
- .muka-thumbnail__trigger {
4567
- position: absolute;
4568
- inset: 0;
4569
- padding: 0;
4570
- border: 0;
4571
- background: none;
4572
- cursor: pointer;
4573
- overflow: hidden;
4574
- }
4575
-
4576
- .muka-thumbnail__trigger:focus-visible {
4577
- outline: 2px solid var(--color-border-focus);
4578
- outline-offset: -2px;
4579
- }
4580
-
4581
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4582
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4583
- transform: scale(1.05);
4584
- }
4585
-
4586
- /* ─── Loading overlay + progress donut ────────────────── */
4587
- .muka-thumbnail__overlay {
4588
- position: absolute;
4589
- inset: 0;
4590
- display: flex;
4591
- align-items: center;
4592
- justify-content: center;
4593
- background-color: var(--dialog-color-backdrop);
4594
- }
4595
-
4596
- .muka-thumbnail__progress {
4597
- width: 40px;
4598
- height: 40px;
4599
- }
4600
-
4601
- /* ─── Error / corrupt state ───────────────────────────── */
4602
- .muka-thumbnail--error .muka-thumbnail__frame {
4603
- background-color: var(--alias-color-state-error-muted);
4604
- border-color: var(--alias-color-state-error-default);
4605
- }
4606
-
4607
- .muka-thumbnail__error {
4608
- position: absolute;
4609
- inset: 0;
4610
- display: flex;
4611
- flex-direction: column;
4612
- align-items: center;
4613
- justify-content: center;
4614
- gap: var(--spacing-2);
4615
- padding: var(--spacing-3);
4616
- text-align: center;
4617
- }
4618
-
4619
- .muka-thumbnail__error-icon {
4620
- color: var(--alert-color-error-accent);
4621
- }
4622
-
4623
- .muka-thumbnail__caption {
4624
- max-width: 100%;
4625
- overflow: hidden;
4626
- text-overflow: ellipsis;
4627
- white-space: nowrap;
4628
- color: var(--alert-color-error-accent);
4629
- font-family: var(--text-body-sm-regular-fontFamily);
4630
- font-size: var(--text-body-sm-regular-fontSize);
4631
- font-weight: var(--text-body-sm-regular-fontWeight);
4632
- line-height: var(--text-body-sm-regular-lineHeight);
4633
- }
4634
-
4635
- /* ─── Remove (×) button ───────────────────────────────── */
4636
- .muka-thumbnail__remove {
4637
- position: absolute;
4638
- top: var(--spacing-2);
4639
- right: var(--spacing-2);
4640
- display: flex;
4641
- align-items: center;
4642
- justify-content: center;
4643
- width: var(--size-2xl);
4644
- height: var(--size-2xl);
4645
- padding: 0;
4646
- color: var(--button-color-tertiary-foreground-default);
4647
- background-color: var(--button-color-tertiary-background-default);
4648
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4649
- border-radius: var(--border-radius-lg);
4650
- cursor: pointer;
4651
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4652
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
4653
- }
4654
-
4655
- .muka-thumbnail__remove:hover {
4656
- color: var(--button-color-tertiary-foreground-hover);
4657
- background-color: var(--button-color-tertiary-background-hover);
4658
- border-color: var(--button-color-tertiary-border-hover);
4659
- }
4660
-
4661
- .muka-thumbnail__remove:active {
4662
- color: var(--button-color-tertiary-foreground-pressed);
4663
- background-color: var(--button-color-tertiary-background-pressed);
4664
- border-color: var(--button-color-tertiary-border-pressed);
4665
- }
4666
-
4667
- .muka-thumbnail__remove:focus-visible {
4668
- outline: 2px solid var(--color-border-focus);
4669
- outline-offset: 2px;
4670
- }
4671
-
4672
- /* ─── Reduced motion ──────────────────────────────────── */
4673
- @media (prefers-reduced-motion: reduce) {
4674
- .muka-thumbnail__image,
4675
- .muka-thumbnail__remove {
4676
- transition: none;
4677
- }
4678
-
4679
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4680
- transform: none;
4681
- }
4682
- }
4683
-
4684
-
4685
- /* TablePagination */
4686
- /* TablePagination Component Styles - Using Muka Design Tokens */
4687
-
4688
- /* ========================================
4689
- PAGINATION CONTAINER
4690
- ======================================== */
4691
-
4692
- .muka-table-pagination {
4693
- display: flex;
4694
- align-items: center;
4695
- justify-content: space-between;
4696
- flex-wrap: wrap;
4697
- gap: var(--table-pagination-gap, var(--spacing-4));
4698
- padding: var(--table-pagination-padding, var(--spacing-3));
4699
- background-color: var(--table-pagination-background, var(--color-surface-level1));
4700
- border-top: var(--border-width-regular) solid var(--table-pagination-border, var(--color-border-default));
4701
- font-family: var(--text-body-base-regular-fontFamily);
4702
- font-size: var(--text-body-sm-regular-fontSize);
4703
- line-height: var(--text-body-sm-regular-lineHeight);
4704
- color: var(--color-text-default-default);
4705
- }
4706
-
4707
- /* ========================================
4708
- LEFT SECTION (Page Size & Range)
4709
- ======================================== */
4710
-
4711
- .muka-table-pagination__left {
4712
- display: flex;
4713
- align-items: center;
4714
- gap: var(--spacing-4);
4715
- }
4716
-
4717
- .muka-table-pagination__page-size {
4718
- display: flex;
4719
- align-items: center;
4720
- gap: var(--spacing-2);
4721
- }
4722
-
4723
- .muka-table-pagination__label {
4724
- color: var(--color-text-subtle-default);
4725
- white-space: nowrap;
4723
+ .muka-table-pagination__label {
4724
+ color: var(--color-text-subtle-default);
4725
+ white-space: nowrap;
4726
4726
  }
4727
4727
 
4728
4728
  .muka-table-pagination__select {
@@ -5086,70 +5086,178 @@ body {
5086
5086
  }
5087
5087
 
5088
5088
 
5089
- /* Spinner */
5090
- /* Spinner Component Styles */
5089
+ /* SwipeActions */
5090
+ /* SwipeActions Component Styles */
5091
5091
 
5092
- .muka-spinner {
5093
- display: inline-flex;
5094
- align-items: center;
5095
- justify-content: center;
5096
- color: var(--color-text-default-default);
5097
- line-height: 0;
5092
+ .muka-swipe-actions {
5093
+ position: relative;
5094
+ overflow: hidden;
5095
+ touch-action: pan-y;
5096
+ -webkit-user-select: none;
5097
+ user-select: none;
5098
+ background-color: var(--color-surface-level3);
5098
5099
  }
5099
5100
 
5100
- .muka-spinner--subtle {
5101
- color: var(--color-text-subtle-default);
5101
+ .muka-swipe-actions--disabled {
5102
+ touch-action: auto;
5102
5103
  }
5103
5104
 
5104
- .muka-spinner--inverse {
5105
- color: var(--color-text-default-inverse);
5106
- }
5105
+ /* ─── Row that holds the actual content ────────────────── */
5107
5106
 
5108
- .muka-spinner__circle {
5109
- display: inline-block;
5110
- border-radius: 50%;
5111
- border-style: solid;
5112
- border-color: currentColor;
5113
- border-right-color: transparent;
5114
- animation: muka-spinner-rotate 0.7s linear infinite;
5115
- box-sizing: border-box;
5107
+ .muka-swipe-actions__row {
5108
+ position: relative;
5109
+ z-index: 1;
5110
+ background-color: inherit;
5111
+ will-change: transform;
5116
5112
  }
5117
5113
 
5118
- /* ─── Sizes ───────────────────────────────────────────── */
5114
+ /* ─── Action panels — sit beneath the row ──────────────── */
5119
5115
 
5120
- .muka-spinner--sm .muka-spinner__circle {
5121
- width: 16px;
5122
- height: 16px;
5123
- border-width: 2px;
5116
+ .muka-swipe-actions__panel {
5117
+ position: absolute;
5118
+ top: 0;
5119
+ bottom: 0;
5120
+ display: flex;
5121
+ align-items: stretch;
5122
+ z-index: 0;
5124
5123
  }
5125
5124
 
5126
- .muka-spinner--md .muka-spinner__circle {
5127
- width: 20px;
5128
- height: 20px;
5129
- border-width: 2px;
5125
+ .muka-swipe-actions__panel--left {
5126
+ left: 0;
5130
5127
  }
5131
5128
 
5132
- .muka-spinner--lg .muka-spinner__circle {
5133
- width: 24px;
5134
- height: 24px;
5135
- border-width: 3px;
5129
+ .muka-swipe-actions__panel--right {
5130
+ right: 0;
5136
5131
  }
5137
5132
 
5138
- /* ─── Visually-hidden label ───────────────────────────── */
5139
-
5140
- .muka-spinner__sr-label {
5141
- position: absolute;
5142
- width: 1px;
5143
- height: 1px;
5144
- padding: 0;
5145
- margin: -1px;
5146
- overflow: hidden;
5147
- clip: rect(0, 0, 0, 0);
5148
- white-space: nowrap;
5149
- border: 0;
5150
- }
5133
+ /* ─── Single action button ─────────────────────────────── */
5151
5134
 
5152
- /* ─── Reduced motion ──────────────────────────────────── */
5135
+ .muka-swipe-actions__button {
5136
+ display: flex;
5137
+ flex-direction: column;
5138
+ align-items: center;
5139
+ justify-content: center;
5140
+ gap: var(--spacing-1);
5141
+ border: none;
5142
+ cursor: pointer;
5143
+ padding: var(--spacing-2);
5144
+ background-color: var(--color-surface-level2);
5145
+ color: var(--color-text-default-default);
5146
+ font-family: var(--text-label-sm-semibold-fontFamily);
5147
+ font-weight: var(--text-label-sm-semibold-fontWeight);
5148
+ font-size: var(--text-label-sm-semibold-fontSize);
5149
+ line-height: var(--text-label-sm-semibold-lineHeight);
5150
+ -webkit-tap-highlight-color: transparent;
5151
+ transition: filter 0.12s ease;
5152
+ }
5153
+
5154
+ .muka-swipe-actions__button:hover {
5155
+ filter: brightness(0.95);
5156
+ }
5157
+
5158
+ .muka-swipe-actions__button:focus-visible {
5159
+ outline: 2px solid var(--color-action-default);
5160
+ outline-offset: -2px;
5161
+ }
5162
+
5163
+ .muka-swipe-actions__button-icon {
5164
+ display: inline-flex;
5165
+ align-items: center;
5166
+ justify-content: center;
5167
+ }
5168
+
5169
+ /* ─── Color variants ───────────────────────────────────── */
5170
+
5171
+ .muka-swipe-actions__button--neutral {
5172
+ background-color: var(--color-surface-level2);
5173
+ color: var(--color-text-default-default);
5174
+ }
5175
+
5176
+ .muka-swipe-actions__button--primary {
5177
+ background-color: var(--color-action-default);
5178
+ color: var(--color-text-default-inverse);
5179
+ }
5180
+
5181
+ .muka-swipe-actions__button--success {
5182
+ background-color: var(--color-state-success-default);
5183
+ color: var(--color-text-default-inverse);
5184
+ }
5185
+
5186
+ .muka-swipe-actions__button--warning {
5187
+ background-color: var(--color-state-warning-default);
5188
+ color: var(--color-text-default-default);
5189
+ }
5190
+
5191
+ .muka-swipe-actions__button--destructive {
5192
+ background-color: var(--color-state-error-default);
5193
+ color: var(--color-text-default-inverse);
5194
+ }
5195
+
5196
+
5197
+ /* Spinner */
5198
+ /* Spinner Component Styles */
5199
+
5200
+ .muka-spinner {
5201
+ display: inline-flex;
5202
+ align-items: center;
5203
+ justify-content: center;
5204
+ color: var(--color-text-default-default);
5205
+ line-height: 0;
5206
+ }
5207
+
5208
+ .muka-spinner--subtle {
5209
+ color: var(--color-text-subtle-default);
5210
+ }
5211
+
5212
+ .muka-spinner--inverse {
5213
+ color: var(--color-text-default-inverse);
5214
+ }
5215
+
5216
+ .muka-spinner__circle {
5217
+ display: inline-block;
5218
+ border-radius: 50%;
5219
+ border-style: solid;
5220
+ border-color: currentColor;
5221
+ border-right-color: transparent;
5222
+ animation: muka-spinner-rotate 0.7s linear infinite;
5223
+ box-sizing: border-box;
5224
+ }
5225
+
5226
+ /* ─── Sizes ───────────────────────────────────────────── */
5227
+
5228
+ .muka-spinner--sm .muka-spinner__circle {
5229
+ width: 16px;
5230
+ height: 16px;
5231
+ border-width: 2px;
5232
+ }
5233
+
5234
+ .muka-spinner--md .muka-spinner__circle {
5235
+ width: 20px;
5236
+ height: 20px;
5237
+ border-width: 2px;
5238
+ }
5239
+
5240
+ .muka-spinner--lg .muka-spinner__circle {
5241
+ width: 24px;
5242
+ height: 24px;
5243
+ border-width: 3px;
5244
+ }
5245
+
5246
+ /* ─── Visually-hidden label ───────────────────────────── */
5247
+
5248
+ .muka-spinner__sr-label {
5249
+ position: absolute;
5250
+ width: 1px;
5251
+ height: 1px;
5252
+ padding: 0;
5253
+ margin: -1px;
5254
+ overflow: hidden;
5255
+ clip: rect(0, 0, 0, 0);
5256
+ white-space: nowrap;
5257
+ border: 0;
5258
+ }
5259
+
5260
+ /* ─── Reduced motion ──────────────────────────────────── */
5153
5261
 
5154
5262
  @keyframes muka-spinner-rotate {
5155
5263
  to {
@@ -6467,6 +6575,56 @@ body {
6467
6575
  }
6468
6576
 
6469
6577
 
6578
+ /* RecordingBar */
6579
+ /* RecordingBar Component Styles */
6580
+
6581
+ .muka-recording-bar {
6582
+ display: flex;
6583
+ align-items: center;
6584
+ gap: var(--spacing-3);
6585
+ width: 100%;
6586
+ min-width: 0;
6587
+ }
6588
+
6589
+ .muka-recording-bar__dot {
6590
+ flex: 0 0 auto;
6591
+ width: 0.625rem;
6592
+ height: 0.625rem;
6593
+ border-radius: var(--radius-full, 9999px);
6594
+ background: var(--alert-color-error-accent, var(--color-text-default-default));
6595
+ animation: muka-recording-bar-pulse 1s ease-in-out infinite;
6596
+ }
6597
+
6598
+ .muka-recording-bar__time {
6599
+ flex: 0 0 auto;
6600
+ font-size: var(--text-label-sm-regular-fontSize);
6601
+ line-height: var(--text-label-sm-leading);
6602
+ font-variant-numeric: tabular-nums;
6603
+ color: var(--color-text-default-default);
6604
+ }
6605
+
6606
+ .muka-recording-bar__wave {
6607
+ flex: 1 1 auto;
6608
+ min-width: 0;
6609
+ }
6610
+
6611
+ @keyframes muka-recording-bar-pulse {
6612
+ 0%,
6613
+ 100% {
6614
+ opacity: 1;
6615
+ }
6616
+ 50% {
6617
+ opacity: 0.3;
6618
+ }
6619
+ }
6620
+
6621
+ @media (prefers-reduced-motion: reduce) {
6622
+ .muka-recording-bar__dot {
6623
+ animation: none;
6624
+ }
6625
+ }
6626
+
6627
+
6470
6628
  /* Scrollbar */
6471
6629
  /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6472
6630
 
@@ -6594,56 +6752,6 @@ body {
6594
6752
  }
6595
6753
 
6596
6754
 
6597
- /* RecordingBar */
6598
- /* RecordingBar Component Styles */
6599
-
6600
- .muka-recording-bar {
6601
- display: flex;
6602
- align-items: center;
6603
- gap: var(--spacing-3);
6604
- width: 100%;
6605
- min-width: 0;
6606
- }
6607
-
6608
- .muka-recording-bar__dot {
6609
- flex: 0 0 auto;
6610
- width: 0.625rem;
6611
- height: 0.625rem;
6612
- border-radius: var(--radius-full, 9999px);
6613
- background: var(--alert-color-error-accent, var(--color-text-default-default));
6614
- animation: muka-recording-bar-pulse 1s ease-in-out infinite;
6615
- }
6616
-
6617
- .muka-recording-bar__time {
6618
- flex: 0 0 auto;
6619
- font-size: var(--text-label-sm-regular-fontSize);
6620
- line-height: var(--text-label-sm-leading);
6621
- font-variant-numeric: tabular-nums;
6622
- color: var(--color-text-default-default);
6623
- }
6624
-
6625
- .muka-recording-bar__wave {
6626
- flex: 1 1 auto;
6627
- min-width: 0;
6628
- }
6629
-
6630
- @keyframes muka-recording-bar-pulse {
6631
- 0%,
6632
- 100% {
6633
- opacity: 1;
6634
- }
6635
- 50% {
6636
- opacity: 0.3;
6637
- }
6638
- }
6639
-
6640
- @media (prefers-reduced-motion: reduce) {
6641
- .muka-recording-bar__dot {
6642
- animation: none;
6643
- }
6644
- }
6645
-
6646
-
6647
6755
  /* RangeSlider */
6648
6756
  /* RangeSlider Component Styles - Using Muka Design Tokens */
6649
6757
 
@@ -6860,162 +6968,19 @@ body {
6860
6968
  }
6861
6969
 
6862
6970
 
6863
- /* RadioTile */
6864
- /* RadioTile Component Styles - Using Muka Design Tokens */
6971
+ /* Radio */
6972
+ /* Radio Component Styles - Using Muka Design Tokens */
6865
6973
 
6866
- /* Base tile styles - horizontal */
6867
- .muka-radio-tile {
6868
- display: flex;
6974
+ /* Wrapper - clickable label container */
6975
+ .muka-radio {
6976
+ display: inline-flex;
6869
6977
  align-items: center;
6870
6978
  gap: var(--spacing-4);
6871
- padding: var(--spacing-4);
6872
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6873
- border-radius: var(--input-field-radius-lg);
6874
- background-color: var(--color-surface-level3);
6875
6979
  cursor: pointer;
6876
- transition: border-color 0.15s ease, border-width 0.15s ease;
6877
- overflow: hidden;
6878
- box-sizing: border-box;
6980
+ user-select: none;
6879
6981
  }
6880
6982
 
6881
- .muka-radio-tile--disabled {
6882
- cursor: not-allowed;
6883
- opacity: 0.6;
6884
- }
6885
-
6886
- /* Selected state */
6887
- .muka-radio-tile[data-checked] {
6888
- border-width: var(--border-width-bold);
6889
- border-color: var(--color-action-default);
6890
- }
6891
-
6892
- /* Vertical layout */
6893
- .muka-radio-tile--vertical {
6894
- flex-direction: column;
6895
- align-items: center;
6896
- gap: var(--spacing-2);
6897
- position: relative;
6898
- width: 160px;
6899
- }
6900
-
6901
- /* Radio container */
6902
- .muka-radio-tile__radio {
6903
- flex-shrink: 0;
6904
- }
6905
-
6906
- /* Corner-positioned radio for vertical */
6907
- .muka-radio-tile__radio--corner {
6908
- position: absolute;
6909
- top: var(--spacing-4);
6910
- left: var(--spacing-4);
6911
- }
6912
-
6913
- /* Adjust corner position when selected (border is thicker) */
6914
- .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
6915
- top: calc(var(--spacing-4) - 1px);
6916
- left: calc(var(--spacing-4) - 1px);
6917
- }
6918
-
6919
- /* Icon */
6920
- .muka-radio-tile__icon {
6921
- display: flex;
6922
- align-items: center;
6923
- justify-content: center;
6924
- flex-shrink: 0;
6925
- width: var(--icon-size-default);
6926
- height: var(--icon-size-default);
6927
- color: var(--color-text-default-default);
6928
- }
6929
-
6930
- .muka-radio-tile__icon svg {
6931
- width: 100%;
6932
- height: 100%;
6933
- }
6934
-
6935
- /* Image */
6936
- .muka-radio-tile__image {
6937
- flex-shrink: 0;
6938
- overflow: hidden;
6939
- border-radius: var(--border-radius-sm);
6940
- }
6941
-
6942
- .muka-radio-tile__image img {
6943
- display: block;
6944
- width: 100%;
6945
- height: 100%;
6946
- object-fit: cover;
6947
- }
6948
-
6949
- /* Horizontal image sizing */
6950
- .muka-radio-tile__image--horizontal {
6951
- width: 40px;
6952
- height: 40px;
6953
- }
6954
-
6955
- /* Vertical image sizing */
6956
- .muka-radio-tile--vertical .muka-radio-tile__image {
6957
- width: 100%;
6958
- aspect-ratio: 4/3;
6959
- }
6960
-
6961
- /* Content container */
6962
- .muka-radio-tile__content {
6963
- display: flex;
6964
- flex-direction: column;
6965
- flex: 1;
6966
- min-width: 0;
6967
- gap: var(--spacing-1);
6968
- }
6969
-
6970
- /* Label */
6971
- .muka-radio-tile__label {
6972
- font-family: var(--text-body-lg-regular-fontFamily);
6973
- font-weight: var(--text-body-lg-regular-fontWeight);
6974
- font-size: var(--text-body-lg-regular-fontSize);
6975
- line-height: var(--text-body-lg-regular-lineHeight);
6976
- color: var(--color-text-default-default);
6977
- }
6978
-
6979
- .muka-radio-tile__label--bold {
6980
- font-family: var(--text-label-lg-semibold-fontFamily);
6981
- font-weight: var(--text-label-lg-semibold-fontWeight);
6982
- font-size: var(--text-label-lg-semibold-fontSize);
6983
- line-height: var(--text-label-lg-semibold-lineHeight);
6984
- }
6985
-
6986
- .muka-radio-tile__label--center {
6987
- text-align: center;
6988
- }
6989
-
6990
- /* Caption */
6991
- .muka-radio-tile__caption {
6992
- font-family: var(--text-body-base-regular-fontFamily);
6993
- font-weight: var(--text-body-base-regular-fontWeight);
6994
- font-size: var(--text-body-base-regular-fontSize);
6995
- line-height: var(--text-body-base-regular-lineHeight);
6996
- color: var(--color-text-subtle-default);
6997
- }
6998
-
6999
- /* Disabled states */
7000
- .muka-radio-tile--disabled .muka-radio-tile__label,
7001
- .muka-radio-tile--disabled .muka-radio-tile__icon {
7002
- color: var(--color-text-subtle-default);
7003
- }
7004
-
7005
-
7006
- /* Radio */
7007
- /* Radio Component Styles - Using Muka Design Tokens */
7008
-
7009
- /* Wrapper - clickable label container */
7010
- .muka-radio {
7011
- display: inline-flex;
7012
- align-items: center;
7013
- gap: var(--spacing-4);
7014
- cursor: pointer;
7015
- user-select: none;
7016
- }
7017
-
7018
- .muka-radio--disabled {
6983
+ .muka-radio--disabled {
7019
6984
  cursor: not-allowed;
7020
6985
  opacity: 0.6;
7021
6986
  }
@@ -7147,6 +7112,149 @@ body {
7147
7112
  }
7148
7113
 
7149
7114
 
7115
+ /* RadioTile */
7116
+ /* RadioTile Component Styles - Using Muka Design Tokens */
7117
+
7118
+ /* Base tile styles - horizontal */
7119
+ .muka-radio-tile {
7120
+ display: flex;
7121
+ align-items: center;
7122
+ gap: var(--spacing-4);
7123
+ padding: var(--spacing-4);
7124
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
7125
+ border-radius: var(--input-field-radius-lg);
7126
+ background-color: var(--color-surface-level3);
7127
+ cursor: pointer;
7128
+ transition: border-color 0.15s ease, border-width 0.15s ease;
7129
+ overflow: hidden;
7130
+ box-sizing: border-box;
7131
+ }
7132
+
7133
+ .muka-radio-tile--disabled {
7134
+ cursor: not-allowed;
7135
+ opacity: 0.6;
7136
+ }
7137
+
7138
+ /* Selected state */
7139
+ .muka-radio-tile[data-checked] {
7140
+ border-width: var(--border-width-bold);
7141
+ border-color: var(--color-action-default);
7142
+ }
7143
+
7144
+ /* Vertical layout */
7145
+ .muka-radio-tile--vertical {
7146
+ flex-direction: column;
7147
+ align-items: center;
7148
+ gap: var(--spacing-2);
7149
+ position: relative;
7150
+ width: 160px;
7151
+ }
7152
+
7153
+ /* Radio container */
7154
+ .muka-radio-tile__radio {
7155
+ flex-shrink: 0;
7156
+ }
7157
+
7158
+ /* Corner-positioned radio for vertical */
7159
+ .muka-radio-tile__radio--corner {
7160
+ position: absolute;
7161
+ top: var(--spacing-4);
7162
+ left: var(--spacing-4);
7163
+ }
7164
+
7165
+ /* Adjust corner position when selected (border is thicker) */
7166
+ .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
7167
+ top: calc(var(--spacing-4) - 1px);
7168
+ left: calc(var(--spacing-4) - 1px);
7169
+ }
7170
+
7171
+ /* Icon */
7172
+ .muka-radio-tile__icon {
7173
+ display: flex;
7174
+ align-items: center;
7175
+ justify-content: center;
7176
+ flex-shrink: 0;
7177
+ width: var(--icon-size-default);
7178
+ height: var(--icon-size-default);
7179
+ color: var(--color-text-default-default);
7180
+ }
7181
+
7182
+ .muka-radio-tile__icon svg {
7183
+ width: 100%;
7184
+ height: 100%;
7185
+ }
7186
+
7187
+ /* Image */
7188
+ .muka-radio-tile__image {
7189
+ flex-shrink: 0;
7190
+ overflow: hidden;
7191
+ border-radius: var(--border-radius-sm);
7192
+ }
7193
+
7194
+ .muka-radio-tile__image img {
7195
+ display: block;
7196
+ width: 100%;
7197
+ height: 100%;
7198
+ object-fit: cover;
7199
+ }
7200
+
7201
+ /* Horizontal image sizing */
7202
+ .muka-radio-tile__image--horizontal {
7203
+ width: 40px;
7204
+ height: 40px;
7205
+ }
7206
+
7207
+ /* Vertical image sizing */
7208
+ .muka-radio-tile--vertical .muka-radio-tile__image {
7209
+ width: 100%;
7210
+ aspect-ratio: 4/3;
7211
+ }
7212
+
7213
+ /* Content container */
7214
+ .muka-radio-tile__content {
7215
+ display: flex;
7216
+ flex-direction: column;
7217
+ flex: 1;
7218
+ min-width: 0;
7219
+ gap: var(--spacing-1);
7220
+ }
7221
+
7222
+ /* Label */
7223
+ .muka-radio-tile__label {
7224
+ font-family: var(--text-body-lg-regular-fontFamily);
7225
+ font-weight: var(--text-body-lg-regular-fontWeight);
7226
+ font-size: var(--text-body-lg-regular-fontSize);
7227
+ line-height: var(--text-body-lg-regular-lineHeight);
7228
+ color: var(--color-text-default-default);
7229
+ }
7230
+
7231
+ .muka-radio-tile__label--bold {
7232
+ font-family: var(--text-label-lg-semibold-fontFamily);
7233
+ font-weight: var(--text-label-lg-semibold-fontWeight);
7234
+ font-size: var(--text-label-lg-semibold-fontSize);
7235
+ line-height: var(--text-label-lg-semibold-lineHeight);
7236
+ }
7237
+
7238
+ .muka-radio-tile__label--center {
7239
+ text-align: center;
7240
+ }
7241
+
7242
+ /* Caption */
7243
+ .muka-radio-tile__caption {
7244
+ font-family: var(--text-body-base-regular-fontFamily);
7245
+ font-weight: var(--text-body-base-regular-fontWeight);
7246
+ font-size: var(--text-body-base-regular-fontSize);
7247
+ line-height: var(--text-body-base-regular-lineHeight);
7248
+ color: var(--color-text-subtle-default);
7249
+ }
7250
+
7251
+ /* Disabled states */
7252
+ .muka-radio-tile--disabled .muka-radio-tile__label,
7253
+ .muka-radio-tile--disabled .muka-radio-tile__icon {
7254
+ color: var(--color-text-subtle-default);
7255
+ }
7256
+
7257
+
7150
7258
  /* PullToRefresh */
7151
7259
  /* PullToRefresh Component Styles */
7152
7260
 
@@ -8290,15 +8398,46 @@ button.muka-progress-tracker__tab:focus-visible {
8290
8398
  opacity: 1;
8291
8399
  }
8292
8400
 
8293
- .muka-profile-badge--clickable.muka-profile-badge--with-chevron:hover,
8294
- .muka-profile-badge--clickable.muka-profile-badge--with-chevron[aria-expanded='true'],
8295
- .muka-profile-badge--clickable.muka-profile-badge--with-chevron[data-state='open'] {
8296
- box-shadow: inset 0 0 0 var(--border-width-regular) var(--button-color-ghost-border-hover);
8401
+ .muka-profile-badge--clickable.muka-profile-badge--with-chevron:hover,
8402
+ .muka-profile-badge--clickable.muka-profile-badge--with-chevron[aria-expanded='true'],
8403
+ .muka-profile-badge--clickable.muka-profile-badge--with-chevron[data-state='open'] {
8404
+ box-shadow: inset 0 0 0 var(--border-width-regular) var(--button-color-ghost-border-hover);
8405
+ }
8406
+
8407
+ /* A badge without an avatar keeps the 12px start inset */
8408
+ .muka-profile-badge--clickable.muka-profile-badge--with-chevron:not(:has(.muka-profile-badge__avatar)) {
8409
+ padding-left: var(--spacing-3);
8410
+ }
8411
+
8412
+
8413
+ /* Popover */
8414
+ /* Popover Component Styles */
8415
+
8416
+ .muka-popover__content {
8417
+ background-color: var(--color-surface-level3);
8418
+ border: var(--border-width-regular) solid var(--color-border-default);
8419
+ border-radius: var(--radius-md);
8420
+ padding: var(--spacing-4);
8421
+ box-shadow: var(--shadow-level3);
8422
+ max-width: 20rem;
8423
+ z-index: 50;
8424
+ animation: muka-popover-fade-in 150ms ease;
8425
+ }
8426
+
8427
+ @keyframes muka-popover-fade-in {
8428
+ from {
8429
+ opacity: 0;
8430
+ transform: scale(0.96);
8431
+ }
8432
+ to {
8433
+ opacity: 1;
8434
+ transform: scale(1);
8435
+ }
8297
8436
  }
8298
8437
 
8299
- /* A badge without an avatar keeps the 12px start inset */
8300
- .muka-profile-badge--clickable.muka-profile-badge--with-chevron:not(:has(.muka-profile-badge__avatar)) {
8301
- padding-left: var(--spacing-3);
8438
+ /* Arrow */
8439
+ .muka-popover__arrow {
8440
+ fill: var(--color-surface-level3);
8302
8441
  }
8303
8442
 
8304
8443
 
@@ -8399,37 +8538,6 @@ button.muka-progress-tracker__tab:focus-visible {
8399
8538
  }
8400
8539
 
8401
8540
 
8402
- /* Popover */
8403
- /* Popover Component Styles */
8404
-
8405
- .muka-popover__content {
8406
- background-color: var(--color-surface-level3);
8407
- border: var(--border-width-regular) solid var(--color-border-default);
8408
- border-radius: var(--radius-md);
8409
- padding: var(--spacing-4);
8410
- box-shadow: var(--shadow-level3);
8411
- max-width: 20rem;
8412
- z-index: 50;
8413
- animation: muka-popover-fade-in 150ms ease;
8414
- }
8415
-
8416
- @keyframes muka-popover-fade-in {
8417
- from {
8418
- opacity: 0;
8419
- transform: scale(0.96);
8420
- }
8421
- to {
8422
- opacity: 1;
8423
- transform: scale(1);
8424
- }
8425
- }
8426
-
8427
- /* Arrow */
8428
- .muka-popover__arrow {
8429
- fill: var(--color-surface-level3);
8430
- }
8431
-
8432
-
8433
8541
  /* PlanningGantt */
8434
8542
  /* PlanningGantt (MUK-105) — one week per page, never scrolls horizontally. */
8435
8543
 
@@ -8827,103 +8935,6 @@ button.muka-progress-tracker__tab:focus-visible {
8827
8935
  }
8828
8936
 
8829
8937
 
8830
- /* PieChart */
8831
- /* PieChart Component Styles - Using Muka Design Tokens */
8832
-
8833
- .muka-piechart {
8834
- display: inline-flex;
8835
- align-items: center;
8836
- gap: var(--spacing-4);
8837
- }
8838
-
8839
- /* Legend layout */
8840
- .muka-piechart--legend-right {
8841
- flex-direction: row;
8842
- }
8843
-
8844
- .muka-piechart--legend-bottom {
8845
- flex-direction: column;
8846
- }
8847
-
8848
- /* ========================================
8849
- CHART
8850
- ======================================== */
8851
-
8852
- .muka-piechart__chart {
8853
- position: relative;
8854
- flex-shrink: 0;
8855
- }
8856
-
8857
- .muka-piechart__chart--sm {
8858
- width: var(--piechart-size-diameter-sm);
8859
- height: var(--piechart-size-diameter-sm);
8860
- }
8861
-
8862
- .muka-piechart__chart--md {
8863
- width: var(--piechart-size-diameter-md);
8864
- height: var(--piechart-size-diameter-md);
8865
- }
8866
-
8867
- .muka-piechart__chart--lg {
8868
- width: var(--piechart-size-diameter-lg);
8869
- height: var(--piechart-size-diameter-lg);
8870
- }
8871
-
8872
- .muka-piechart__svg {
8873
- display: block;
8874
- width: 100%;
8875
- height: 100%;
8876
- /* Start slices at 12 o'clock instead of 3 o'clock */
8877
- transform: rotate(-90deg);
8878
- }
8879
-
8880
- .muka-piechart__track {
8881
- fill: none;
8882
- stroke: var(--piechart-color-track);
8883
- }
8884
-
8885
- .muka-piechart__segment {
8886
- fill: none;
8887
- }
8888
-
8889
- /* ========================================
8890
- LEGEND
8891
- ======================================== */
8892
-
8893
- .muka-piechart__legend {
8894
- list-style: none;
8895
- margin: 0;
8896
- padding: 0;
8897
- display: flex;
8898
- flex-direction: column;
8899
- gap: var(--spacing-1);
8900
- }
8901
-
8902
- .muka-piechart__legend-item {
8903
- display: flex;
8904
- align-items: center;
8905
- gap: var(--spacing-2);
8906
- font-family: var(--text-body-sm-regular-fontFamily);
8907
- font-weight: var(--text-body-sm-regular-fontWeight);
8908
- font-size: var(--text-body-sm-regular-fontSize);
8909
- line-height: var(--text-body-sm-regular-lineHeight);
8910
- color: var(--color-text-default-default);
8911
- }
8912
-
8913
- .muka-piechart__swatch {
8914
- flex-shrink: 0;
8915
- width: var(--spacing-3);
8916
- height: var(--spacing-3);
8917
- border-radius: var(--border-radius-sm);
8918
- }
8919
-
8920
- .muka-piechart__legend-value {
8921
- margin-left: auto;
8922
- padding-left: var(--spacing-2);
8923
- color: var(--color-text-subtle-default);
8924
- }
8925
-
8926
-
8927
8938
  /* PhotoUploader */
8928
8939
  /* PhotoUploader Component Styles - Using Muka Design Tokens */
8929
8940
 
@@ -8993,50 +9004,168 @@ button.muka-progress-tracker__tab:focus-visible {
8993
9004
  background-color: var(--color-surface-level1);
8994
9005
  }
8995
9006
 
8996
- .muka-photo-uploader__dropzone-text {
8997
- font-family: var(--text-subheading-sm-fontFamily);
8998
- font-size: var(--text-subheading-sm-fontSize);
8999
- font-weight: var(--text-subheading-sm-fontWeight);
9000
- line-height: var(--text-subheading-sm-lineHeight);
9001
- color: var(--color-text-default-default);
9007
+ .muka-photo-uploader__dropzone-text {
9008
+ font-family: var(--text-subheading-sm-fontFamily);
9009
+ font-size: var(--text-subheading-sm-fontSize);
9010
+ font-weight: var(--text-subheading-sm-fontWeight);
9011
+ line-height: var(--text-subheading-sm-lineHeight);
9012
+ color: var(--color-text-default-default);
9013
+ }
9014
+
9015
+ /*
9016
+ * Touch devices (phones, tablets without a mouse) have nothing to drag a file
9017
+ * from: the card and its "or drop here" hint go, and only the button stays.
9018
+ * Keyed on input capability, not width, so a narrow desktop window keeps
9019
+ * its drop zone.
9020
+ */
9021
+ @media (hover: none) and (pointer: coarse) {
9022
+ .muka-photo-uploader__dropzone {
9023
+ align-items: flex-start;
9024
+ padding: 0;
9025
+ background-color: transparent;
9026
+ border: none;
9027
+ border-radius: 0;
9028
+ cursor: default;
9029
+ }
9030
+
9031
+ .muka-photo-uploader__dropzone-text {
9032
+ display: none;
9033
+ }
9034
+ }
9035
+
9036
+ /* ─── Disabled ────────────────────────────────────────── */
9037
+ .muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
9038
+ cursor: not-allowed;
9039
+ opacity: 0.6;
9040
+ }
9041
+
9042
+ .muka-photo-uploader--disabled .muka-photo-uploader__dropzone:hover {
9043
+ border-color: var(--card-color-default-border);
9044
+ background-color: var(--card-color-default-background);
9045
+ }
9046
+
9047
+ /* ─── Enlarged photo dialog ───────────────────────────── */
9048
+ .muka-photo-uploader__preview {
9049
+ display: flex;
9050
+ align-items: center;
9051
+ justify-content: center;
9052
+ width: 100%;
9053
+ height: 100%;
9054
+ }
9055
+
9056
+ /* Fits the dialog while preserving the photo's original aspect ratio. */
9057
+ .muka-photo-uploader__preview-image {
9058
+ display: block;
9059
+ max-width: 100%;
9060
+ max-height: 100%;
9061
+ width: auto;
9062
+ height: auto;
9063
+ object-fit: contain;
9064
+ border-radius: var(--border-radius-lg);
9065
+ }
9066
+
9067
+ /* ─── Reduced motion ──────────────────────────────────── */
9068
+ @media (prefers-reduced-motion: reduce) {
9069
+ .muka-photo-uploader__dropzone {
9070
+ transition: none;
9071
+ }
9072
+ }
9073
+
9074
+
9075
+ /* PieChart */
9076
+ /* PieChart Component Styles - Using Muka Design Tokens */
9077
+
9078
+ .muka-piechart {
9079
+ display: inline-flex;
9080
+ align-items: center;
9081
+ gap: var(--spacing-4);
9082
+ }
9083
+
9084
+ /* Legend layout */
9085
+ .muka-piechart--legend-right {
9086
+ flex-direction: row;
9087
+ }
9088
+
9089
+ .muka-piechart--legend-bottom {
9090
+ flex-direction: column;
9091
+ }
9092
+
9093
+ /* ========================================
9094
+ CHART
9095
+ ======================================== */
9096
+
9097
+ .muka-piechart__chart {
9098
+ position: relative;
9099
+ flex-shrink: 0;
9100
+ }
9101
+
9102
+ .muka-piechart__chart--sm {
9103
+ width: var(--piechart-size-diameter-sm);
9104
+ height: var(--piechart-size-diameter-sm);
9105
+ }
9106
+
9107
+ .muka-piechart__chart--md {
9108
+ width: var(--piechart-size-diameter-md);
9109
+ height: var(--piechart-size-diameter-md);
9110
+ }
9111
+
9112
+ .muka-piechart__chart--lg {
9113
+ width: var(--piechart-size-diameter-lg);
9114
+ height: var(--piechart-size-diameter-lg);
9115
+ }
9116
+
9117
+ .muka-piechart__svg {
9118
+ display: block;
9119
+ width: 100%;
9120
+ height: 100%;
9121
+ /* Start slices at 12 o'clock instead of 3 o'clock */
9122
+ transform: rotate(-90deg);
9123
+ }
9124
+
9125
+ .muka-piechart__track {
9126
+ fill: none;
9127
+ stroke: var(--piechart-color-track);
9002
9128
  }
9003
9129
 
9004
- /* ─── Disabled ────────────────────────────────────────── */
9005
- .muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
9006
- cursor: not-allowed;
9007
- opacity: 0.6;
9130
+ .muka-piechart__segment {
9131
+ fill: none;
9008
9132
  }
9009
9133
 
9010
- .muka-photo-uploader--disabled .muka-photo-uploader__dropzone:hover {
9011
- border-color: var(--card-color-default-border);
9012
- background-color: var(--card-color-default-background);
9134
+ /* ========================================
9135
+ LEGEND
9136
+ ======================================== */
9137
+
9138
+ .muka-piechart__legend {
9139
+ list-style: none;
9140
+ margin: 0;
9141
+ padding: 0;
9142
+ display: flex;
9143
+ flex-direction: column;
9144
+ gap: var(--spacing-1);
9013
9145
  }
9014
9146
 
9015
- /* ─── Enlarged photo dialog ───────────────────────────── */
9016
- .muka-photo-uploader__preview {
9147
+ .muka-piechart__legend-item {
9017
9148
  display: flex;
9018
9149
  align-items: center;
9019
- justify-content: center;
9020
- width: 100%;
9021
- height: 100%;
9150
+ gap: var(--spacing-2);
9151
+ font-family: var(--text-body-sm-regular-fontFamily);
9152
+ font-weight: var(--text-body-sm-regular-fontWeight);
9153
+ font-size: var(--text-body-sm-regular-fontSize);
9154
+ line-height: var(--text-body-sm-regular-lineHeight);
9155
+ color: var(--color-text-default-default);
9022
9156
  }
9023
9157
 
9024
- /* Fits the dialog while preserving the photo's original aspect ratio. */
9025
- .muka-photo-uploader__preview-image {
9026
- display: block;
9027
- max-width: 100%;
9028
- max-height: 100%;
9029
- width: auto;
9030
- height: auto;
9031
- object-fit: contain;
9032
- border-radius: var(--border-radius-lg);
9158
+ .muka-piechart__swatch {
9159
+ flex-shrink: 0;
9160
+ width: var(--spacing-3);
9161
+ height: var(--spacing-3);
9162
+ border-radius: var(--border-radius-sm);
9033
9163
  }
9034
9164
 
9035
- /* ─── Reduced motion ──────────────────────────────────── */
9036
- @media (prefers-reduced-motion: reduce) {
9037
- .muka-photo-uploader__dropzone {
9038
- transition: none;
9039
- }
9165
+ .muka-piechart__legend-value {
9166
+ margin-left: auto;
9167
+ padding-left: var(--spacing-2);
9168
+ color: var(--color-text-subtle-default);
9040
9169
  }
9041
9170
 
9042
9171
 
@@ -13935,240 +14064,82 @@ button.muka-chip__trailing[aria-expanded='true'],
13935
14064
  }
13936
14065
 
13937
14066
  .muka-chip--success {
13938
- background-color: var(--color-state-success-background);
13939
- color: var(--color-state-success-contrast);
13940
- --_chip-tr-bg: var(--chip-trailing-success-background-default);
13941
- --_chip-tr-bg-hover: var(--chip-trailing-success-background-hover);
13942
- --_chip-tr-bg-pressed: var(--chip-trailing-success-background-pressed);
13943
- --_chip-tr-fg: var(--chip-trailing-success-foreground-default);
13944
- --_chip-tr-fg-hover: var(--chip-trailing-success-foreground-hover);
13945
- --_chip-tr-fg-pressed: var(--chip-trailing-success-foreground-pressed);
13946
- }
13947
-
13948
- .muka-chip--warning {
13949
- background-color: var(--color-state-warning-background);
13950
- color: var(--color-state-warning-contrast);
13951
- --_chip-tr-bg: var(--chip-trailing-warning-background-default);
13952
- --_chip-tr-bg-hover: var(--chip-trailing-warning-background-hover);
13953
- --_chip-tr-bg-pressed: var(--chip-trailing-warning-background-pressed);
13954
- --_chip-tr-fg: var(--chip-trailing-warning-foreground-default);
13955
- --_chip-tr-fg-hover: var(--chip-trailing-warning-foreground-hover);
13956
- --_chip-tr-fg-pressed: var(--chip-trailing-warning-foreground-pressed);
13957
- }
13958
-
13959
- .muka-chip--error {
13960
- background-color: var(--color-state-error-background);
13961
- color: var(--color-state-error-contrast);
13962
- --_chip-tr-bg: var(--chip-trailing-error-background-default);
13963
- --_chip-tr-bg-hover: var(--chip-trailing-error-background-hover);
13964
- --_chip-tr-bg-pressed: var(--chip-trailing-error-background-pressed);
13965
- --_chip-tr-fg: var(--chip-trailing-error-foreground-default);
13966
- --_chip-tr-fg-hover: var(--chip-trailing-error-foreground-hover);
13967
- --_chip-tr-fg-pressed: var(--chip-trailing-error-foreground-pressed);
13968
- }
13969
-
13970
- .muka-chip--info {
13971
- background-color: var(--color-state-info-background);
13972
- color: var(--color-state-info-contrast);
13973
- --_chip-tr-bg: var(--chip-trailing-info-background-default);
13974
- --_chip-tr-bg-hover: var(--chip-trailing-info-background-hover);
13975
- --_chip-tr-bg-pressed: var(--chip-trailing-info-background-pressed);
13976
- --_chip-tr-fg: var(--chip-trailing-info-foreground-default);
13977
- --_chip-tr-fg-hover: var(--chip-trailing-info-foreground-hover);
13978
- --_chip-tr-fg-pressed: var(--chip-trailing-info-foreground-pressed);
13979
- }
13980
-
13981
- /* Ghost: no fill, subtle label; the trailing circle is outlined at rest (Figma Chip/Trailing Ghost) */
13982
- .muka-chip--ghost {
13983
- background-color: var(--chip-ghost-background-default);
13984
- color: var(--chip-ghost-foreground-default);
13985
- --_chip-tr-border: var(--chip-trailing-ghost-border-default);
13986
- --_chip-tr-bg: var(--chip-trailing-ghost-background-default);
13987
- --_chip-tr-bg-hover: var(--chip-trailing-ghost-background-hover);
13988
- --_chip-tr-bg-pressed: var(--chip-trailing-ghost-background-pressed);
13989
- --_chip-tr-fg: var(--chip-trailing-ghost-foreground-default);
13990
- --_chip-tr-fg-hover: var(--chip-trailing-ghost-foreground-hover);
13991
- --_chip-tr-fg-pressed: var(--chip-trailing-ghost-foreground-pressed);
13992
- }
13993
-
13994
- /*
13995
- * Body hover (Figma Chip State=Hover) — only on chips whose body does
13996
- * something: the whole-chip button, or a label link/button (hovering just the
13997
- * label, not the trailing button, which has its own states). A static chip
13998
- * doesn't hover.
13999
- */
14000
- .muka-chip--default.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
14001
- .muka-chip--default.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
14002
- background-color: var(--chip-neutral-background-hover);
14003
- }
14004
-
14005
- .muka-chip--ghost.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
14006
- .muka-chip--ghost.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
14007
- background-color: var(--chip-ghost-background-hover);
14008
- color: var(--chip-ghost-foreground-hover);
14009
- }
14010
-
14011
- /* Icons (leading + trailing) inherit their slot's foreground color */
14012
- .muka-chip .muka-icon {
14013
- color: inherit;
14014
- }
14015
-
14016
-
14017
- /* CheckboxTile */
14018
- /* CheckboxTile Component Styles - Using Muka Design Tokens */
14019
-
14020
- /* Base tile styles - horizontal */
14021
- .muka-checkbox-tile {
14022
- display: flex;
14023
- align-items: center;
14024
- gap: var(--spacing-4);
14025
- padding: var(--spacing-4);
14026
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
14027
- border-radius: var(--input-field-radius-lg);
14028
- background-color: var(--color-surface-level3);
14029
- cursor: pointer;
14030
- transition: border-color 0.15s ease, border-width 0.15s ease;
14031
- overflow: hidden;
14032
- box-sizing: border-box;
14033
- }
14034
-
14035
- .muka-checkbox-tile--disabled {
14036
- cursor: not-allowed;
14037
- opacity: 0.6;
14038
- }
14039
-
14040
- /* Selected state */
14041
- .muka-checkbox-tile[data-checked] {
14042
- border-width: var(--border-width-bold);
14043
- border-color: var(--color-action-default);
14044
- }
14045
-
14046
- /* Vertical layout */
14047
- .muka-checkbox-tile--vertical {
14048
- flex-direction: column;
14049
- align-items: center;
14050
- gap: var(--spacing-2);
14051
- position: relative;
14052
- width: 160px;
14053
- }
14054
-
14055
- /* Checkbox container */
14056
- .muka-checkbox-tile__checkbox {
14057
- flex-shrink: 0;
14058
- }
14059
-
14060
- /* Corner-positioned checkbox for vertical */
14061
- .muka-checkbox-tile__checkbox--corner {
14062
- position: absolute;
14063
- top: var(--spacing-4);
14064
- left: var(--spacing-4);
14065
- }
14066
-
14067
- /* Adjust corner position when selected (border is thicker) */
14068
- .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
14069
- top: calc(var(--spacing-4) - 1px);
14070
- left: calc(var(--spacing-4) - 1px);
14071
- }
14072
-
14073
- /* Icon */
14074
- .muka-checkbox-tile__icon {
14075
- display: flex;
14076
- align-items: center;
14077
- justify-content: center;
14078
- flex-shrink: 0;
14079
- width: var(--icon-size-default);
14080
- height: var(--icon-size-default);
14081
- color: var(--color-text-default-default);
14082
- }
14083
-
14084
- .muka-checkbox-tile__icon svg {
14085
- width: 100%;
14086
- height: 100%;
14087
- }
14088
-
14089
- /* Image */
14090
- .muka-checkbox-tile__image {
14091
- flex-shrink: 0;
14092
- overflow: hidden;
14093
- border-radius: var(--border-radius-sm);
14094
- }
14095
-
14096
- .muka-checkbox-tile__image img {
14097
- display: block;
14098
- width: 100%;
14099
- height: 100%;
14100
- object-fit: cover;
14101
- }
14102
-
14103
- /* Horizontal image sizing */
14104
- .muka-checkbox-tile__image--horizontal {
14105
- width: 40px;
14106
- height: 40px;
14107
- }
14108
-
14109
- /* Vertical image sizing */
14110
- .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
14111
- width: 100%;
14112
- aspect-ratio: 4/3;
14113
- }
14114
-
14115
- /* Content container */
14116
- .muka-checkbox-tile__content {
14117
- display: flex;
14118
- flex-direction: column;
14119
- flex: 1;
14120
- min-width: 0;
14121
- gap: var(--spacing-2);
14122
- }
14123
-
14124
- .muka-checkbox-tile__content-inner {
14125
- display: flex;
14126
- flex-direction: column;
14127
- gap: var(--spacing-1);
14067
+ background-color: var(--color-state-success-background);
14068
+ color: var(--color-state-success-contrast);
14069
+ --_chip-tr-bg: var(--chip-trailing-success-background-default);
14070
+ --_chip-tr-bg-hover: var(--chip-trailing-success-background-hover);
14071
+ --_chip-tr-bg-pressed: var(--chip-trailing-success-background-pressed);
14072
+ --_chip-tr-fg: var(--chip-trailing-success-foreground-default);
14073
+ --_chip-tr-fg-hover: var(--chip-trailing-success-foreground-hover);
14074
+ --_chip-tr-fg-pressed: var(--chip-trailing-success-foreground-pressed);
14128
14075
  }
14129
14076
 
14130
- /* Chip slot (replaces badge; use Chip component) */
14131
- .muka-checkbox-tile__chip {
14132
- flex-shrink: 0;
14077
+ .muka-chip--warning {
14078
+ background-color: var(--color-state-warning-background);
14079
+ color: var(--color-state-warning-contrast);
14080
+ --_chip-tr-bg: var(--chip-trailing-warning-background-default);
14081
+ --_chip-tr-bg-hover: var(--chip-trailing-warning-background-hover);
14082
+ --_chip-tr-bg-pressed: var(--chip-trailing-warning-background-pressed);
14083
+ --_chip-tr-fg: var(--chip-trailing-warning-foreground-default);
14084
+ --_chip-tr-fg-hover: var(--chip-trailing-warning-foreground-hover);
14085
+ --_chip-tr-fg-pressed: var(--chip-trailing-warning-foreground-pressed);
14133
14086
  }
14134
14087
 
14135
- .muka-checkbox-tile__chip--vertical {
14136
- margin-top: var(--spacing-1);
14088
+ .muka-chip--error {
14089
+ background-color: var(--color-state-error-background);
14090
+ color: var(--color-state-error-contrast);
14091
+ --_chip-tr-bg: var(--chip-trailing-error-background-default);
14092
+ --_chip-tr-bg-hover: var(--chip-trailing-error-background-hover);
14093
+ --_chip-tr-bg-pressed: var(--chip-trailing-error-background-pressed);
14094
+ --_chip-tr-fg: var(--chip-trailing-error-foreground-default);
14095
+ --_chip-tr-fg-hover: var(--chip-trailing-error-foreground-hover);
14096
+ --_chip-tr-fg-pressed: var(--chip-trailing-error-foreground-pressed);
14137
14097
  }
14138
14098
 
14139
- /* Label */
14140
- .muka-checkbox-tile__label {
14141
- font-family: var(--text-body-lg-regular-fontFamily);
14142
- font-weight: var(--text-body-lg-regular-fontWeight);
14143
- font-size: var(--text-body-lg-regular-fontSize);
14144
- line-height: var(--text-body-lg-regular-lineHeight);
14145
- color: var(--color-text-default-default);
14099
+ .muka-chip--info {
14100
+ background-color: var(--color-state-info-background);
14101
+ color: var(--color-state-info-contrast);
14102
+ --_chip-tr-bg: var(--chip-trailing-info-background-default);
14103
+ --_chip-tr-bg-hover: var(--chip-trailing-info-background-hover);
14104
+ --_chip-tr-bg-pressed: var(--chip-trailing-info-background-pressed);
14105
+ --_chip-tr-fg: var(--chip-trailing-info-foreground-default);
14106
+ --_chip-tr-fg-hover: var(--chip-trailing-info-foreground-hover);
14107
+ --_chip-tr-fg-pressed: var(--chip-trailing-info-foreground-pressed);
14146
14108
  }
14147
14109
 
14148
- .muka-checkbox-tile__label--bold {
14149
- font-family: var(--text-label-lg-semibold-fontFamily);
14150
- font-weight: var(--text-label-lg-semibold-fontWeight);
14151
- font-size: var(--text-label-lg-semibold-fontSize);
14152
- line-height: var(--text-label-lg-semibold-lineHeight);
14110
+ /* Ghost: no fill, subtle label; the trailing circle is outlined at rest (Figma Chip/Trailing Ghost) */
14111
+ .muka-chip--ghost {
14112
+ background-color: var(--chip-ghost-background-default);
14113
+ color: var(--chip-ghost-foreground-default);
14114
+ --_chip-tr-border: var(--chip-trailing-ghost-border-default);
14115
+ --_chip-tr-bg: var(--chip-trailing-ghost-background-default);
14116
+ --_chip-tr-bg-hover: var(--chip-trailing-ghost-background-hover);
14117
+ --_chip-tr-bg-pressed: var(--chip-trailing-ghost-background-pressed);
14118
+ --_chip-tr-fg: var(--chip-trailing-ghost-foreground-default);
14119
+ --_chip-tr-fg-hover: var(--chip-trailing-ghost-foreground-hover);
14120
+ --_chip-tr-fg-pressed: var(--chip-trailing-ghost-foreground-pressed);
14153
14121
  }
14154
14122
 
14155
- .muka-checkbox-tile__label--center {
14156
- text-align: center;
14123
+ /*
14124
+ * Body hover (Figma Chip State=Hover) — only on chips whose body does
14125
+ * something: the whole-chip button, or a label link/button (hovering just the
14126
+ * label, not the trailing button, which has its own states). A static chip
14127
+ * doesn't hover.
14128
+ */
14129
+ .muka-chip--default.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
14130
+ .muka-chip--default.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
14131
+ background-color: var(--chip-neutral-background-hover);
14157
14132
  }
14158
14133
 
14159
- /* Caption */
14160
- .muka-checkbox-tile__caption {
14161
- font-family: var(--text-body-base-regular-fontFamily);
14162
- font-weight: var(--text-body-base-regular-fontWeight);
14163
- font-size: var(--text-body-base-regular-fontSize);
14164
- line-height: var(--text-body-base-regular-lineHeight);
14165
- color: var(--color-text-subtle-default);
14134
+ .muka-chip--ghost.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
14135
+ .muka-chip--ghost.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
14136
+ background-color: var(--chip-ghost-background-hover);
14137
+ color: var(--chip-ghost-foreground-hover);
14166
14138
  }
14167
14139
 
14168
- /* Disabled states */
14169
- .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
14170
- .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
14171
- color: var(--color-text-subtle-default);
14140
+ /* Icons (leading + trailing) inherit their slot's foreground color */
14141
+ .muka-chip .muka-icon {
14142
+ color: inherit;
14172
14143
  }
14173
14144
 
14174
14145
 
@@ -14459,125 +14430,161 @@ button.muka-chip__trailing[aria-expanded='true'],
14459
14430
  }
14460
14431
 
14461
14432
 
14462
- /* ChatPhotoGrid */
14463
- /* ChatPhotoGrid Component Styles */
14433
+ /* CheckboxTile */
14434
+ /* CheckboxTile Component Styles - Using Muka Design Tokens */
14464
14435
 
14465
- /*
14466
- * The grid clips to its own radius and the tiles stay square, so only the four
14467
- * outer corners round — matching the Figma "Wrapper" frame (5225:1394).
14468
- */
14469
- .muka-chat-photo-grid {
14470
- display: grid;
14471
- gap: var(--chatphotogrid-gap);
14472
- width: 100%;
14473
- min-width: 0;
14436
+ /* Base tile styles - horizontal */
14437
+ .muka-checkbox-tile {
14438
+ display: flex;
14439
+ align-items: center;
14440
+ gap: var(--spacing-4);
14441
+ padding: var(--spacing-4);
14442
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
14443
+ border-radius: var(--input-field-radius-lg);
14444
+ background-color: var(--color-surface-level3);
14445
+ cursor: pointer;
14446
+ transition: border-color 0.15s ease, border-width 0.15s ease;
14474
14447
  overflow: hidden;
14475
- border-radius: var(--chatphotogrid-radius);
14448
+ box-sizing: border-box;
14476
14449
  }
14477
14450
 
14478
- /* ─── Tiles ────────────────────────────────────────────── */
14451
+ .muka-checkbox-tile--disabled {
14452
+ cursor: not-allowed;
14453
+ opacity: 0.6;
14454
+ }
14479
14455
 
14480
- .muka-chat-photo-grid__tile {
14481
- position: relative;
14482
- display: block;
14483
- overflow: hidden;
14484
- min-width: 0;
14485
- padding: 0;
14486
- margin: 0;
14487
- border: none;
14488
- background-color: var(--chatphotogrid-color-placeholder);
14489
- aspect-ratio: 1 / 1;
14456
+ /* Selected state */
14457
+ .muka-checkbox-tile[data-checked] {
14458
+ border-width: var(--border-width-bold);
14459
+ border-color: var(--color-action-default);
14490
14460
  }
14491
14461
 
14492
- button.muka-chat-photo-grid__tile {
14493
- cursor: pointer;
14494
- appearance: none;
14462
+ /* Vertical layout */
14463
+ .muka-checkbox-tile--vertical {
14464
+ flex-direction: column;
14465
+ align-items: center;
14466
+ gap: var(--spacing-2);
14467
+ position: relative;
14468
+ width: 160px;
14495
14469
  }
14496
14470
 
14497
- button.muka-chat-photo-grid__tile:focus-visible {
14498
- outline: var(--border-width-bold) solid var(--color-border-focus);
14499
- /* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
14500
- outline-offset: calc(-1 * var(--border-width-bold));
14471
+ /* Checkbox container */
14472
+ .muka-checkbox-tile__checkbox {
14473
+ flex-shrink: 0;
14501
14474
  }
14502
14475
 
14503
- .muka-chat-photo-grid__image {
14504
- display: block;
14505
- width: 100%;
14506
- height: 100%;
14507
- object-fit: cover;
14476
+ /* Corner-positioned checkbox for vertical */
14477
+ .muka-checkbox-tile__checkbox--corner {
14478
+ position: absolute;
14479
+ top: var(--spacing-4);
14480
+ left: var(--spacing-4);
14508
14481
  }
14509
14482
 
14510
- /* ─── Overflow tile ────────────────────────────────────── */
14483
+ /* Adjust corner position when selected (border is thicker) */
14484
+ .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
14485
+ top: calc(var(--spacing-4) - 1px);
14486
+ left: calc(var(--spacing-4) - 1px);
14487
+ }
14511
14488
 
14512
- .muka-chat-photo-grid__overflow {
14513
- position: absolute;
14514
- inset: 0;
14489
+ /* Icon */
14490
+ .muka-checkbox-tile__icon {
14515
14491
  display: flex;
14516
14492
  align-items: center;
14517
14493
  justify-content: center;
14518
- background-color: var(--chatphotogrid-color-overflow-background);
14519
- color: var(--chatphotogrid-color-overflow-foreground);
14520
- font-family: var(--text-body-2xl-regular-fontFamily);
14521
- font-weight: var(--text-body-2xl-regular-fontWeight);
14522
- font-size: var(--text-body-2xl-regular-fontSize);
14523
- line-height: var(--text-body-2xl-regular-lineHeight);
14494
+ flex-shrink: 0;
14495
+ width: var(--icon-size-default);
14496
+ height: var(--icon-size-default);
14497
+ color: var(--color-text-default-default);
14524
14498
  }
14525
14499
 
14526
- /* ─── Layouts ──────────────────────────────────────────── */
14500
+ .muka-checkbox-tile__icon svg {
14501
+ width: 100%;
14502
+ height: 100%;
14503
+ }
14527
14504
 
14528
- .muka-chat-photo-grid--1 {
14529
- grid-template-columns: 1fr;
14505
+ /* Image */
14506
+ .muka-checkbox-tile__image {
14507
+ flex-shrink: 0;
14508
+ overflow: hidden;
14509
+ border-radius: var(--border-radius-sm);
14530
14510
  }
14531
14511
 
14532
- .muka-chat-photo-grid--landscape .muka-chat-photo-grid__tile {
14533
- aspect-ratio: 4 / 3;
14512
+ .muka-checkbox-tile__image img {
14513
+ display: block;
14514
+ width: 100%;
14515
+ height: 100%;
14516
+ object-fit: cover;
14534
14517
  }
14535
14518
 
14536
- .muka-chat-photo-grid--portrait .muka-chat-photo-grid__tile {
14537
- aspect-ratio: 3 / 4;
14519
+ /* Horizontal image sizing */
14520
+ .muka-checkbox-tile__image--horizontal {
14521
+ width: 40px;
14522
+ height: 40px;
14538
14523
  }
14539
14524
 
14540
- .muka-chat-photo-grid--2 {
14541
- grid-template-columns: repeat(2, 1fr);
14525
+ /* Vertical image sizing */
14526
+ .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
14527
+ width: 100%;
14528
+ aspect-ratio: 4/3;
14542
14529
  }
14543
14530
 
14544
- .muka-chat-photo-grid--3 {
14545
- grid-template-columns: repeat(3, 1fr);
14531
+ /* Content container */
14532
+ .muka-checkbox-tile__content {
14533
+ display: flex;
14534
+ flex-direction: column;
14535
+ flex: 1;
14536
+ min-width: 0;
14537
+ gap: var(--spacing-2);
14546
14538
  }
14547
14539
 
14548
- .muka-chat-photo-grid--4 {
14549
- grid-template-columns: repeat(2, 1fr);
14540
+ .muka-checkbox-tile__content-inner {
14541
+ display: flex;
14542
+ flex-direction: column;
14543
+ gap: var(--spacing-1);
14550
14544
  }
14551
14545
 
14552
- /* 5 photos: a 2-up row above a 3-up row, on a shared 6-column track */
14553
- .muka-chat-photo-grid--5 {
14554
- grid-template-columns: repeat(6, 1fr);
14546
+ /* Chip slot (replaces badge; use Chip component) */
14547
+ .muka-checkbox-tile__chip {
14548
+ flex-shrink: 0;
14555
14549
  }
14556
14550
 
14557
- .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(-n + 2) {
14558
- grid-column: span 3;
14551
+ .muka-checkbox-tile__chip--vertical {
14552
+ margin-top: var(--spacing-1);
14559
14553
  }
14560
14554
 
14561
- .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(n + 3) {
14562
- grid-column: span 2;
14555
+ /* Label */
14556
+ .muka-checkbox-tile__label {
14557
+ font-family: var(--text-body-lg-regular-fontFamily);
14558
+ font-weight: var(--text-body-lg-regular-fontWeight);
14559
+ font-size: var(--text-body-lg-regular-fontSize);
14560
+ line-height: var(--text-body-lg-regular-lineHeight);
14561
+ color: var(--color-text-default-default);
14563
14562
  }
14564
14563
 
14565
- .muka-chat-photo-grid--6,
14566
- .muka-chat-photo-grid--overflow {
14567
- grid-template-columns: repeat(3, 1fr);
14564
+ .muka-checkbox-tile__label--bold {
14565
+ font-family: var(--text-label-lg-semibold-fontFamily);
14566
+ font-weight: var(--text-label-lg-semibold-fontWeight);
14567
+ font-size: var(--text-label-lg-semibold-fontSize);
14568
+ line-height: var(--text-label-lg-semibold-lineHeight);
14568
14569
  }
14569
14570
 
14570
- /* ─── Print ────────────────────────────────────────────── */
14571
+ .muka-checkbox-tile__label--center {
14572
+ text-align: center;
14573
+ }
14571
14574
 
14572
- @media print {
14573
- .muka-chat-photo-grid {
14574
- break-inside: avoid;
14575
- }
14575
+ /* Caption */
14576
+ .muka-checkbox-tile__caption {
14577
+ font-family: var(--text-body-base-regular-fontFamily);
14578
+ font-weight: var(--text-body-base-regular-fontWeight);
14579
+ font-size: var(--text-body-base-regular-fontSize);
14580
+ line-height: var(--text-body-base-regular-lineHeight);
14581
+ color: var(--color-text-subtle-default);
14582
+ }
14576
14583
 
14577
- .muka-chat-photo-grid__image {
14578
- print-color-adjust: exact;
14579
- -webkit-print-color-adjust: exact;
14580
- }
14584
+ /* Disabled states */
14585
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
14586
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
14587
+ color: var(--color-text-subtle-default);
14581
14588
  }
14582
14589
 
14583
14590
 
@@ -15033,6 +15040,128 @@ button.muka-chat-photo-grid__tile:focus-visible {
15033
15040
  }
15034
15041
 
15035
15042
 
15043
+ /* ChatPhotoGrid */
15044
+ /* ChatPhotoGrid Component Styles */
15045
+
15046
+ /*
15047
+ * The grid clips to its own radius and the tiles stay square, so only the four
15048
+ * outer corners round — matching the Figma "Wrapper" frame (5225:1394).
15049
+ */
15050
+ .muka-chat-photo-grid {
15051
+ display: grid;
15052
+ gap: var(--chatphotogrid-gap);
15053
+ width: 100%;
15054
+ min-width: 0;
15055
+ overflow: hidden;
15056
+ border-radius: var(--chatphotogrid-radius);
15057
+ }
15058
+
15059
+ /* ─── Tiles ────────────────────────────────────────────── */
15060
+
15061
+ .muka-chat-photo-grid__tile {
15062
+ position: relative;
15063
+ display: block;
15064
+ overflow: hidden;
15065
+ min-width: 0;
15066
+ padding: 0;
15067
+ margin: 0;
15068
+ border: none;
15069
+ background-color: var(--chatphotogrid-color-placeholder);
15070
+ aspect-ratio: 1 / 1;
15071
+ }
15072
+
15073
+ button.muka-chat-photo-grid__tile {
15074
+ cursor: pointer;
15075
+ appearance: none;
15076
+ }
15077
+
15078
+ button.muka-chat-photo-grid__tile:focus-visible {
15079
+ outline: var(--border-width-bold) solid var(--color-border-focus);
15080
+ /* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
15081
+ outline-offset: calc(-1 * var(--border-width-bold));
15082
+ }
15083
+
15084
+ .muka-chat-photo-grid__image {
15085
+ display: block;
15086
+ width: 100%;
15087
+ height: 100%;
15088
+ object-fit: cover;
15089
+ }
15090
+
15091
+ /* ─── Overflow tile ────────────────────────────────────── */
15092
+
15093
+ .muka-chat-photo-grid__overflow {
15094
+ position: absolute;
15095
+ inset: 0;
15096
+ display: flex;
15097
+ align-items: center;
15098
+ justify-content: center;
15099
+ background-color: var(--chatphotogrid-color-overflow-background);
15100
+ color: var(--chatphotogrid-color-overflow-foreground);
15101
+ font-family: var(--text-body-2xl-regular-fontFamily);
15102
+ font-weight: var(--text-body-2xl-regular-fontWeight);
15103
+ font-size: var(--text-body-2xl-regular-fontSize);
15104
+ line-height: var(--text-body-2xl-regular-lineHeight);
15105
+ }
15106
+
15107
+ /* ─── Layouts ──────────────────────────────────────────── */
15108
+
15109
+ .muka-chat-photo-grid--1 {
15110
+ grid-template-columns: 1fr;
15111
+ }
15112
+
15113
+ .muka-chat-photo-grid--landscape .muka-chat-photo-grid__tile {
15114
+ aspect-ratio: 4 / 3;
15115
+ }
15116
+
15117
+ .muka-chat-photo-grid--portrait .muka-chat-photo-grid__tile {
15118
+ aspect-ratio: 3 / 4;
15119
+ }
15120
+
15121
+ .muka-chat-photo-grid--2 {
15122
+ grid-template-columns: repeat(2, 1fr);
15123
+ }
15124
+
15125
+ .muka-chat-photo-grid--3 {
15126
+ grid-template-columns: repeat(3, 1fr);
15127
+ }
15128
+
15129
+ .muka-chat-photo-grid--4 {
15130
+ grid-template-columns: repeat(2, 1fr);
15131
+ }
15132
+
15133
+ /* 5 photos: a 2-up row above a 3-up row, on a shared 6-column track */
15134
+ .muka-chat-photo-grid--5 {
15135
+ grid-template-columns: repeat(6, 1fr);
15136
+ }
15137
+
15138
+ .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(-n + 2) {
15139
+ grid-column: span 3;
15140
+ }
15141
+
15142
+ .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(n + 3) {
15143
+ grid-column: span 2;
15144
+ }
15145
+
15146
+ .muka-chat-photo-grid--6,
15147
+ .muka-chat-photo-grid--overflow {
15148
+ grid-template-columns: repeat(3, 1fr);
15149
+ }
15150
+
15151
+ /* ─── Print ────────────────────────────────────────────── */
15152
+
15153
+ @media print {
15154
+ .muka-chat-photo-grid {
15155
+ break-inside: avoid;
15156
+ }
15157
+
15158
+ .muka-chat-photo-grid__image {
15159
+ print-color-adjust: exact;
15160
+ -webkit-print-color-adjust: exact;
15161
+ }
15162
+ }
15163
+
15164
+
15036
15165
  /* ChatEvent */
15037
15166
  /* ChatEvent: a line in a chat that isn't a message from a person */
15038
15167
 
@@ -18064,111 +18193,3 @@ button.muka-chat-photo-grid__tile:focus-visible {
18064
18193
  border-bottom: none;
18065
18194
  }
18066
18195
 
18067
-
18068
- /* SwipeActions */
18069
- /* SwipeActions Component Styles */
18070
-
18071
- .muka-swipe-actions {
18072
- position: relative;
18073
- overflow: hidden;
18074
- touch-action: pan-y;
18075
- -webkit-user-select: none;
18076
- user-select: none;
18077
- background-color: var(--color-surface-level3);
18078
- }
18079
-
18080
- .muka-swipe-actions--disabled {
18081
- touch-action: auto;
18082
- }
18083
-
18084
- /* ─── Row that holds the actual content ────────────────── */
18085
-
18086
- .muka-swipe-actions__row {
18087
- position: relative;
18088
- z-index: 1;
18089
- background-color: inherit;
18090
- will-change: transform;
18091
- }
18092
-
18093
- /* ─── Action panels — sit beneath the row ──────────────── */
18094
-
18095
- .muka-swipe-actions__panel {
18096
- position: absolute;
18097
- top: 0;
18098
- bottom: 0;
18099
- display: flex;
18100
- align-items: stretch;
18101
- z-index: 0;
18102
- }
18103
-
18104
- .muka-swipe-actions__panel--left {
18105
- left: 0;
18106
- }
18107
-
18108
- .muka-swipe-actions__panel--right {
18109
- right: 0;
18110
- }
18111
-
18112
- /* ─── Single action button ─────────────────────────────── */
18113
-
18114
- .muka-swipe-actions__button {
18115
- display: flex;
18116
- flex-direction: column;
18117
- align-items: center;
18118
- justify-content: center;
18119
- gap: var(--spacing-1);
18120
- border: none;
18121
- cursor: pointer;
18122
- padding: var(--spacing-2);
18123
- background-color: var(--color-surface-level2);
18124
- color: var(--color-text-default-default);
18125
- font-family: var(--text-label-sm-semibold-fontFamily);
18126
- font-weight: var(--text-label-sm-semibold-fontWeight);
18127
- font-size: var(--text-label-sm-semibold-fontSize);
18128
- line-height: var(--text-label-sm-semibold-lineHeight);
18129
- -webkit-tap-highlight-color: transparent;
18130
- transition: filter 0.12s ease;
18131
- }
18132
-
18133
- .muka-swipe-actions__button:hover {
18134
- filter: brightness(0.95);
18135
- }
18136
-
18137
- .muka-swipe-actions__button:focus-visible {
18138
- outline: 2px solid var(--color-action-default);
18139
- outline-offset: -2px;
18140
- }
18141
-
18142
- .muka-swipe-actions__button-icon {
18143
- display: inline-flex;
18144
- align-items: center;
18145
- justify-content: center;
18146
- }
18147
-
18148
- /* ─── Color variants ───────────────────────────────────── */
18149
-
18150
- .muka-swipe-actions__button--neutral {
18151
- background-color: var(--color-surface-level2);
18152
- color: var(--color-text-default-default);
18153
- }
18154
-
18155
- .muka-swipe-actions__button--primary {
18156
- background-color: var(--color-action-default);
18157
- color: var(--color-text-default-inverse);
18158
- }
18159
-
18160
- .muka-swipe-actions__button--success {
18161
- background-color: var(--color-state-success-default);
18162
- color: var(--color-text-default-inverse);
18163
- }
18164
-
18165
- .muka-swipe-actions__button--warning {
18166
- background-color: var(--color-state-warning-default);
18167
- color: var(--color-text-default-default);
18168
- }
18169
-
18170
- .muka-swipe-actions__button--destructive {
18171
- background-color: var(--color-state-error-default);
18172
- color: var(--color-text-default-inverse);
18173
- }
18174
-