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