@revikornmann/muka-ui 0.57.0 → 0.59.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 (47) hide show
  1. package/dist/cjs/components/Menu/Menu.css +33 -0
  2. package/dist/cjs/components/ProfileBadge/ProfileBadge.css +6 -0
  3. package/dist/cjs/components/SiteHeader/SiteHeader.css +38 -0
  4. package/dist/cjs/components/SiteHeader/SiteHeader.js +2 -1
  5. package/dist/cjs/components/SiteHeader/SiteHeader.js.map +1 -1
  6. package/dist/cjs/components/TopBar/TopBar.css +22 -28
  7. package/dist/cjs/components/TopBar/TopBar.js +21 -21
  8. package/dist/cjs/components/TopBar/TopBar.js.map +1 -1
  9. package/dist/cjs/components/View/View.js +2 -2
  10. package/dist/cjs/components/View/View.js.map +1 -1
  11. package/dist/esm/components/Menu/Menu.css +33 -0
  12. package/dist/esm/components/ProfileBadge/ProfileBadge.css +6 -0
  13. package/dist/esm/components/SiteHeader/SiteHeader.css +38 -0
  14. package/dist/esm/components/SiteHeader/SiteHeader.js +2 -1
  15. package/dist/esm/components/SiteHeader/SiteHeader.js.map +1 -1
  16. package/dist/esm/components/TopBar/TopBar.css +22 -28
  17. package/dist/esm/components/TopBar/TopBar.js +21 -21
  18. package/dist/esm/components/TopBar/TopBar.js.map +1 -1
  19. package/dist/esm/components/View/View.js +2 -2
  20. package/dist/esm/components/View/View.js.map +1 -1
  21. package/dist/styles/components/Menu.css +33 -0
  22. package/dist/styles/components/ProfileBadge.css +6 -0
  23. package/dist/styles/components/SiteHeader.css +38 -0
  24. package/dist/styles/components/TopBar.css +22 -28
  25. package/dist/styles/index.css +339 -266
  26. package/dist/styles/muka-dark.css +339 -266
  27. package/dist/styles/muka-light.css +339 -266
  28. package/dist/styles/tokens-bouwplan-dark.css +3 -1
  29. package/dist/styles/tokens-bouwplan-light.css +3 -1
  30. package/dist/styles/tokens-fscl-dark.css +3 -1
  31. package/dist/styles/tokens-fscl-light.css +3 -1
  32. package/dist/styles/tokens-grip-dark.css +3 -1
  33. package/dist/styles/tokens-grip-light.css +3 -1
  34. package/dist/styles/tokens-muka-dark.css +3 -1
  35. package/dist/styles/tokens-muka-light.css +3 -1
  36. package/dist/styles/tokens-wireframe-dark.css +3 -1
  37. package/dist/styles/tokens-wireframe-light.css +3 -1
  38. package/dist/styles/wireframe-dark.css +339 -266
  39. package/dist/styles/wireframe-light.css +339 -266
  40. package/dist/types/components/SiteHeader/SiteHeader.d.ts +7 -0
  41. package/dist/types/components/SiteHeader/SiteHeader.d.ts.map +1 -1
  42. package/dist/types/components/TopBar/TopBar.d.ts +3 -9
  43. package/dist/types/components/TopBar/TopBar.d.ts.map +1 -1
  44. package/dist/types/components/View/View.d.ts +0 -6
  45. package/dist/types/components/View/View.d.ts.map +1 -1
  46. package/package.json +1 -1
  47. package/tokens/t4-components/topbar.json +15 -1
@@ -2141,8 +2141,9 @@ body {
2141
2141
  --topbar-height-lg: 80px;
2142
2142
  --topbar-padding-x-sm: 0.75rem;
2143
2143
  --topbar-padding-x-md: 0.75rem;
2144
- --topbar-padding-x-lg: 1.5rem;
2144
+ --topbar-padding-x-lg: 1rem;
2145
2145
  --topbar-title-max-width: 197px;
2146
+ --topbar-title-inset-lg: 0.5rem;
2146
2147
  --topbar-icon-size-sm: 24px;
2147
2148
  --topbar-icon-size-md: 32px;
2148
2149
  --topbar-icon-size-lg: 32px;
@@ -2154,6 +2155,7 @@ body {
2154
2155
  --topbar-drag-handle-color: #e0e0e0;
2155
2156
  --topbar-drag-handle-padding-y: 0.75rem;
2156
2157
  --topbar-drag-handle-radius: 999rem;
2158
+ --topbar-gap-lg: 2rem;
2157
2159
  --controlbar-color-background: #fcfcfc;
2158
2160
  --controlbar-max-width-sm: 768px;
2159
2161
  --controlbar-max-width-lg: 1024px;
@@ -2858,7 +2860,6 @@ body {
2858
2860
  --tb-title-font-size: var(--text-heading-xs-fontSize);
2859
2861
  --tb-title-line-height: var(--text-heading-xs-lineHeight);
2860
2862
  --tb-title-letter-spacing: var(--text-heading-xs-letterSpacing);
2861
- --tb-breadcrumb-display: none;
2862
2863
  --tb-pad-y: 0;
2863
2864
  }
2864
2865
 
@@ -2885,7 +2886,7 @@ body {
2885
2886
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2886
2887
  }
2887
2888
 
2888
- /* ─── Large tier: left-aligned title, breadcrumb row ─── */
2889
+ /* ─── Large tier: back button, then a left-aligned title ─── */
2889
2890
  @media (min-width: 1024px) {
2890
2891
  .muka-topbar:not([data-size]):not([data-max-size='md']) {
2891
2892
  --tb-height: var(--topbar-height-lg);
@@ -2899,7 +2900,6 @@ body {
2899
2900
  --tb-title-font-size: var(--text-heading-md-fontSize);
2900
2901
  --tb-title-line-height: var(--text-heading-md-lineHeight);
2901
2902
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2902
- --tb-breadcrumb-display: flex;
2903
2903
  }
2904
2904
  }
2905
2905
 
@@ -2915,7 +2915,6 @@ body {
2915
2915
  --tb-title-font-size: var(--text-heading-md-fontSize);
2916
2916
  --tb-title-line-height: var(--text-heading-md-lineHeight);
2917
2917
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2918
- --tb-breadcrumb-display: flex;
2919
2918
  }
2920
2919
 
2921
2920
  /* Push content below the iOS notch / status bar. Opt out via disableSafeArea. */
@@ -2939,13 +2938,6 @@ body {
2939
2938
  border-radius: var(--topbar-drag-handle-radius);
2940
2939
  }
2941
2940
 
2942
- /* ─── Breadcrumb (large tier, stacked above the title) ── */
2943
-
2944
- .muka-topbar__breadcrumb {
2945
- display: var(--tb-breadcrumb-display);
2946
- align-items: center;
2947
- }
2948
-
2949
2941
  /* ─── Container (the bar itself) ──────────────────────── */
2950
2942
 
2951
2943
  .muka-topbar__container {
@@ -2974,46 +2966,50 @@ body {
2974
2966
  z-index: 1;
2975
2967
  }
2976
2968
 
2977
- /* Large tier with a breadcrumb replaces the back button with the breadcrumb. */
2978
- @media (min-width: 1024px) {
2979
- .muka-topbar:not([data-size]):not([data-max-size='md']):has(.muka-topbar__breadcrumb) .muka-topbar__leading {
2980
- display: none;
2981
- }
2982
- }
2983
-
2984
- .muka-topbar[data-size='lg']:has(.muka-topbar__breadcrumb) .muka-topbar__leading {
2985
- display: none;
2986
- }
2987
-
2988
- /* ─── Heading (breadcrumb + title) ────────────────────── */
2969
+ /* ─── Heading (title) ─────────────────────────────────── */
2989
2970
 
2990
- /* Base/sm/md: transparent wrapper so the title is the center grid item and
2991
- the breadcrumb stays hidden. */
2971
+ /* Base/sm/md: transparent wrapper so the title is the center grid item. */
2992
2972
  .muka-topbar__heading {
2993
2973
  display: contents;
2994
2974
  }
2995
2975
 
2996
- /* Large tier: a tight column with the breadcrumb stacked above the title. */
2976
+ /* Large tier: the heading takes the free width so a long title truncates
2977
+ before the trailing actions, and sits a fixed gap after the back button. */
2997
2978
  @media (min-width: 1024px) {
2998
2979
  .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading {
2999
2980
  display: flex;
3000
2981
  flex-direction: column;
3001
2982
  justify-content: center;
3002
- gap: var(--spacing-1);
3003
2983
  flex: 1 1 0%;
3004
2984
  min-width: 0;
3005
2985
  }
2986
+
2987
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__leading + .muka-topbar__heading {
2988
+ margin-left: var(--topbar-gap-lg);
2989
+ }
2990
+
2991
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading:first-child {
2992
+ padding-left: var(--topbar-title-inset-lg);
2993
+ }
3006
2994
  }
3007
2995
 
3008
2996
  .muka-topbar[data-size='lg'] .muka-topbar__heading {
3009
2997
  display: flex;
3010
2998
  flex-direction: column;
3011
2999
  justify-content: center;
3012
- gap: var(--spacing-1);
3013
3000
  flex: 1 1 0%;
3014
3001
  min-width: 0;
3015
3002
  }
3016
3003
 
3004
+ .muka-topbar[data-size='lg'] .muka-topbar__leading + .muka-topbar__heading {
3005
+ margin-left: var(--topbar-gap-lg);
3006
+ }
3007
+
3008
+ /* No back button: the title sits a little further in than the bar padding. */
3009
+ .muka-topbar[data-size='lg'] .muka-topbar__heading:first-child {
3010
+ padding-left: var(--topbar-title-inset-lg);
3011
+ }
3012
+
3017
3013
  /* ─── Title ───────────────────────────────────────────── */
3018
3014
 
3019
3015
  .muka-topbar__title {
@@ -4000,191 +3996,6 @@ body {
4000
3996
  }
4001
3997
 
4002
3998
 
4003
- /* Thumbnail */
4004
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4005
-
4006
- .muka-thumbnail {
4007
- position: relative;
4008
- flex-shrink: 0;
4009
- }
4010
-
4011
- /* The frame carries the border, background and shape clip. Keeping it separate
4012
- from the root lets the remove (×) button sit outside the clip (needed for the
4013
- circular/ellipse shape, whose corners would otherwise clip the button). */
4014
- .muka-thumbnail__frame {
4015
- position: absolute;
4016
- inset: 0;
4017
- overflow: hidden;
4018
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4019
- border-radius: var(--border-radius-lg);
4020
- background-color: var(--color-surface-level1);
4021
- }
4022
-
4023
- /* ─── Shapes ──────────────────────────────────────────── */
4024
- .muka-thumbnail--4-3 {
4025
- width: 160px;
4026
- height: 120px;
4027
- }
4028
-
4029
- .muka-thumbnail--1-1 {
4030
- width: 120px;
4031
- height: 120px;
4032
- }
4033
-
4034
- .muka-thumbnail--ellipse {
4035
- width: 120px;
4036
- height: 120px;
4037
- }
4038
-
4039
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4040
- .muka-thumbnail--fluid {
4041
- width: 100%;
4042
- height: auto;
4043
- aspect-ratio: 1 / 1;
4044
- }
4045
-
4046
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4047
- aspect-ratio: 4 / 3;
4048
- }
4049
-
4050
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4051
- border-radius: var(--border-radius-full);
4052
- }
4053
-
4054
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4055
- interactive hover zoom has a clean origin. */
4056
- .muka-thumbnail__image {
4057
- position: absolute;
4058
- inset: 0;
4059
- width: 100%;
4060
- height: 100%;
4061
- object-fit: cover;
4062
- display: block;
4063
- transform-origin: center;
4064
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4065
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4066
- }
4067
-
4068
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4069
- .muka-thumbnail__trigger {
4070
- position: absolute;
4071
- inset: 0;
4072
- padding: 0;
4073
- border: 0;
4074
- background: none;
4075
- cursor: pointer;
4076
- overflow: hidden;
4077
- }
4078
-
4079
- .muka-thumbnail__trigger:focus-visible {
4080
- outline: 2px solid var(--color-border-focus);
4081
- outline-offset: -2px;
4082
- }
4083
-
4084
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4085
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4086
- transform: scale(1.05);
4087
- }
4088
-
4089
- /* ─── Loading overlay + progress donut ────────────────── */
4090
- .muka-thumbnail__overlay {
4091
- position: absolute;
4092
- inset: 0;
4093
- display: flex;
4094
- align-items: center;
4095
- justify-content: center;
4096
- background-color: var(--dialog-color-backdrop);
4097
- }
4098
-
4099
- .muka-thumbnail__progress {
4100
- width: 40px;
4101
- height: 40px;
4102
- }
4103
-
4104
- /* ─── Error / corrupt state ───────────────────────────── */
4105
- .muka-thumbnail--error .muka-thumbnail__frame {
4106
- background-color: var(--alias-color-state-error-muted);
4107
- border-color: var(--alias-color-state-error-default);
4108
- }
4109
-
4110
- .muka-thumbnail__error {
4111
- position: absolute;
4112
- inset: 0;
4113
- display: flex;
4114
- flex-direction: column;
4115
- align-items: center;
4116
- justify-content: center;
4117
- gap: var(--spacing-2);
4118
- padding: var(--spacing-3);
4119
- text-align: center;
4120
- }
4121
-
4122
- .muka-thumbnail__error-icon {
4123
- color: var(--alert-color-error-accent);
4124
- }
4125
-
4126
- .muka-thumbnail__caption {
4127
- max-width: 100%;
4128
- overflow: hidden;
4129
- text-overflow: ellipsis;
4130
- white-space: nowrap;
4131
- color: var(--alert-color-error-accent);
4132
- font-family: var(--text-body-sm-regular-fontFamily);
4133
- font-size: var(--text-body-sm-regular-fontSize);
4134
- font-weight: var(--text-body-sm-regular-fontWeight);
4135
- line-height: var(--text-body-sm-regular-lineHeight);
4136
- }
4137
-
4138
- /* ─── Remove (×) button ───────────────────────────────── */
4139
- .muka-thumbnail__remove {
4140
- position: absolute;
4141
- top: var(--spacing-2);
4142
- right: var(--spacing-2);
4143
- display: flex;
4144
- align-items: center;
4145
- justify-content: center;
4146
- width: var(--size-2xl);
4147
- height: var(--size-2xl);
4148
- padding: 0;
4149
- color: var(--button-color-tertiary-foreground-default);
4150
- background-color: var(--button-color-tertiary-background-default);
4151
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4152
- border-radius: var(--border-radius-lg);
4153
- cursor: pointer;
4154
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4155
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
4156
- }
4157
-
4158
- .muka-thumbnail__remove:hover {
4159
- color: var(--button-color-tertiary-foreground-hover);
4160
- background-color: var(--button-color-tertiary-background-hover);
4161
- border-color: var(--button-color-tertiary-border-hover);
4162
- }
4163
-
4164
- .muka-thumbnail__remove:active {
4165
- color: var(--button-color-tertiary-foreground-pressed);
4166
- background-color: var(--button-color-tertiary-background-pressed);
4167
- border-color: var(--button-color-tertiary-border-pressed);
4168
- }
4169
-
4170
- .muka-thumbnail__remove:focus-visible {
4171
- outline: 2px solid var(--color-border-focus);
4172
- outline-offset: 2px;
4173
- }
4174
-
4175
- /* ─── Reduced motion ──────────────────────────────────── */
4176
- @media (prefers-reduced-motion: reduce) {
4177
- .muka-thumbnail__image,
4178
- .muka-thumbnail__remove {
4179
- transition: none;
4180
- }
4181
-
4182
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4183
- transform: none;
4184
- }
4185
- }
4186
-
4187
-
4188
3999
  /* Textarea */
4189
4000
  /* Textarea Component Styles - Using Muka Design Tokens */
4190
4001
 
@@ -4349,6 +4160,88 @@ body {
4349
4160
  }
4350
4161
 
4351
4162
 
4163
+ /* TextLink */
4164
+ /* TextLink Component Styles - Using Muka Design Tokens */
4165
+
4166
+ .muka-text-link {
4167
+ display: inline;
4168
+ cursor: pointer;
4169
+ text-decoration: underline;
4170
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4171
+ text-underline-offset: 0.2em;
4172
+ text-decoration-thickness: from-font;
4173
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
4174
+ border-radius: var(--border-radius-sm);
4175
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4176
+ }
4177
+
4178
+ /* ─── Sizes ───────────────────────────────────────────────
4179
+ Mirrors the body text scale so a link matches the copy it sits in. */
4180
+ .muka-text-link--sm {
4181
+ font-family: var(--text-body-sm-regular-fontFamily);
4182
+ font-weight: var(--text-body-sm-regular-fontWeight);
4183
+ font-size: var(--text-body-sm-regular-fontSize);
4184
+ line-height: var(--text-body-sm-regular-lineHeight);
4185
+ }
4186
+
4187
+ .muka-text-link--base {
4188
+ font-family: var(--text-body-base-regular-fontFamily);
4189
+ font-weight: var(--text-body-base-regular-fontWeight);
4190
+ font-size: var(--text-body-base-regular-fontSize);
4191
+ line-height: var(--text-body-base-regular-lineHeight);
4192
+ }
4193
+
4194
+ .muka-text-link--lg {
4195
+ font-family: var(--text-body-lg-regular-fontFamily);
4196
+ font-weight: var(--text-body-lg-regular-fontWeight);
4197
+ font-size: var(--text-body-lg-regular-fontSize);
4198
+ line-height: var(--text-body-lg-regular-lineHeight);
4199
+ }
4200
+
4201
+ /* ─── Variant: default (accent) ───────────────────────────
4202
+ Visited repeats the default colour on purpose: the design treats visited and
4203
+ default the same, and pinning it stops the browser's purple from showing. */
4204
+ .muka-text-link--default,
4205
+ .muka-text-link--default:visited {
4206
+ color: var(--color-text-action-default);
4207
+ }
4208
+
4209
+ .muka-text-link--default:hover,
4210
+ .muka-text-link--default:focus-visible {
4211
+ color: var(--color-text-action-hover);
4212
+ }
4213
+
4214
+ .muka-text-link--default:active {
4215
+ color: var(--color-text-action-pressed);
4216
+ }
4217
+
4218
+ /* ─── Variant: subtle (neutral) ───────────────────────────
4219
+ Hover, focus and pressed all darken to the default text colour. */
4220
+ .muka-text-link--subtle,
4221
+ .muka-text-link--subtle:visited {
4222
+ color: var(--color-text-subtle-default);
4223
+ }
4224
+
4225
+ .muka-text-link--subtle:hover,
4226
+ .muka-text-link--subtle:focus-visible,
4227
+ .muka-text-link--subtle:active {
4228
+ color: var(--color-text-default-default);
4229
+ }
4230
+
4231
+ /* ─── Focus ───────────────────────────────────────────────
4232
+ Same ring as every other focusable Muka component. */
4233
+ .muka-text-link:focus-visible {
4234
+ outline: 2px solid var(--color-border-focus);
4235
+ outline-offset: 2px;
4236
+ }
4237
+
4238
+ @media (prefers-reduced-motion: reduce) {
4239
+ .muka-text-link {
4240
+ transition: none;
4241
+ }
4242
+ }
4243
+
4244
+
4352
4245
  /* Tabs */
4353
4246
  /* Tabs Component Styles - Clean underline style tabs matching Figma */
4354
4247
 
@@ -4539,85 +4432,188 @@ body {
4539
4432
  }
4540
4433
 
4541
4434
 
4542
- /* TextLink */
4543
- /* TextLink Component Styles - Using Muka Design Tokens */
4435
+ /* Thumbnail */
4436
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
4544
4437
 
4545
- .muka-text-link {
4546
- display: inline;
4438
+ .muka-thumbnail {
4439
+ position: relative;
4440
+ flex-shrink: 0;
4441
+ }
4442
+
4443
+ /* The frame carries the border, background and shape clip. Keeping it separate
4444
+ from the root lets the remove (×) button sit outside the clip (needed for the
4445
+ circular/ellipse shape, whose corners would otherwise clip the button). */
4446
+ .muka-thumbnail__frame {
4447
+ position: absolute;
4448
+ inset: 0;
4449
+ overflow: hidden;
4450
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4451
+ border-radius: var(--border-radius-lg);
4452
+ background-color: var(--color-surface-level1);
4453
+ }
4454
+
4455
+ /* ─── Shapes ──────────────────────────────────────────── */
4456
+ .muka-thumbnail--4-3 {
4457
+ width: 160px;
4458
+ height: 120px;
4459
+ }
4460
+
4461
+ .muka-thumbnail--1-1 {
4462
+ width: 120px;
4463
+ height: 120px;
4464
+ }
4465
+
4466
+ .muka-thumbnail--ellipse {
4467
+ width: 120px;
4468
+ height: 120px;
4469
+ }
4470
+
4471
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4472
+ .muka-thumbnail--fluid {
4473
+ width: 100%;
4474
+ height: auto;
4475
+ aspect-ratio: 1 / 1;
4476
+ }
4477
+
4478
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4479
+ aspect-ratio: 4 / 3;
4480
+ }
4481
+
4482
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
4483
+ border-radius: var(--border-radius-full);
4484
+ }
4485
+
4486
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4487
+ interactive hover zoom has a clean origin. */
4488
+ .muka-thumbnail__image {
4489
+ position: absolute;
4490
+ inset: 0;
4491
+ width: 100%;
4492
+ height: 100%;
4493
+ object-fit: cover;
4494
+ display: block;
4495
+ transform-origin: center;
4496
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4497
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4498
+ }
4499
+
4500
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
4501
+ .muka-thumbnail__trigger {
4502
+ position: absolute;
4503
+ inset: 0;
4504
+ padding: 0;
4505
+ border: 0;
4506
+ background: none;
4547
4507
  cursor: pointer;
4548
- text-decoration: underline;
4549
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4550
- text-underline-offset: 0.2em;
4551
- text-decoration-thickness: from-font;
4552
- /* Rounds the focus ring's corners; the link itself has no visible box. */
4553
- border-radius: var(--border-radius-sm);
4554
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4508
+ overflow: hidden;
4555
4509
  }
4556
4510
 
4557
- /* ─── Sizes ───────────────────────────────────────────────
4558
- Mirrors the body text scale so a link matches the copy it sits in. */
4559
- .muka-text-link--sm {
4560
- font-family: var(--text-body-sm-regular-fontFamily);
4561
- font-weight: var(--text-body-sm-regular-fontWeight);
4562
- font-size: var(--text-body-sm-regular-fontSize);
4563
- line-height: var(--text-body-sm-regular-lineHeight);
4511
+ .muka-thumbnail__trigger:focus-visible {
4512
+ outline: 2px solid var(--color-border-focus);
4513
+ outline-offset: -2px;
4564
4514
  }
4565
4515
 
4566
- .muka-text-link--base {
4567
- font-family: var(--text-body-base-regular-fontFamily);
4568
- font-weight: var(--text-body-base-regular-fontWeight);
4569
- font-size: var(--text-body-base-regular-fontSize);
4570
- line-height: var(--text-body-base-regular-lineHeight);
4516
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4517
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4518
+ transform: scale(1.05);
4571
4519
  }
4572
4520
 
4573
- .muka-text-link--lg {
4574
- font-family: var(--text-body-lg-regular-fontFamily);
4575
- font-weight: var(--text-body-lg-regular-fontWeight);
4576
- font-size: var(--text-body-lg-regular-fontSize);
4577
- line-height: var(--text-body-lg-regular-lineHeight);
4521
+ /* ─── Loading overlay + progress donut ────────────────── */
4522
+ .muka-thumbnail__overlay {
4523
+ position: absolute;
4524
+ inset: 0;
4525
+ display: flex;
4526
+ align-items: center;
4527
+ justify-content: center;
4528
+ background-color: var(--dialog-color-backdrop);
4578
4529
  }
4579
4530
 
4580
- /* ─── Variant: default (accent) ───────────────────────────
4581
- Visited repeats the default colour on purpose: the design treats visited and
4582
- default the same, and pinning it stops the browser's purple from showing. */
4583
- .muka-text-link--default,
4584
- .muka-text-link--default:visited {
4585
- color: var(--color-text-action-default);
4531
+ .muka-thumbnail__progress {
4532
+ width: 40px;
4533
+ height: 40px;
4586
4534
  }
4587
4535
 
4588
- .muka-text-link--default:hover,
4589
- .muka-text-link--default:focus-visible {
4590
- color: var(--color-text-action-hover);
4536
+ /* ─── Error / corrupt state ───────────────────────────── */
4537
+ .muka-thumbnail--error .muka-thumbnail__frame {
4538
+ background-color: var(--alias-color-state-error-muted);
4539
+ border-color: var(--alias-color-state-error-default);
4591
4540
  }
4592
4541
 
4593
- .muka-text-link--default:active {
4594
- color: var(--color-text-action-pressed);
4542
+ .muka-thumbnail__error {
4543
+ position: absolute;
4544
+ inset: 0;
4545
+ display: flex;
4546
+ flex-direction: column;
4547
+ align-items: center;
4548
+ justify-content: center;
4549
+ gap: var(--spacing-2);
4550
+ padding: var(--spacing-3);
4551
+ text-align: center;
4595
4552
  }
4596
4553
 
4597
- /* ─── Variant: subtle (neutral) ───────────────────────────
4598
- Hover, focus and pressed all darken to the default text colour. */
4599
- .muka-text-link--subtle,
4600
- .muka-text-link--subtle:visited {
4601
- color: var(--color-text-subtle-default);
4554
+ .muka-thumbnail__error-icon {
4555
+ color: var(--alert-color-error-accent);
4602
4556
  }
4603
4557
 
4604
- .muka-text-link--subtle:hover,
4605
- .muka-text-link--subtle:focus-visible,
4606
- .muka-text-link--subtle:active {
4607
- color: var(--color-text-default-default);
4558
+ .muka-thumbnail__caption {
4559
+ max-width: 100%;
4560
+ overflow: hidden;
4561
+ text-overflow: ellipsis;
4562
+ white-space: nowrap;
4563
+ color: var(--alert-color-error-accent);
4564
+ font-family: var(--text-body-sm-regular-fontFamily);
4565
+ font-size: var(--text-body-sm-regular-fontSize);
4566
+ font-weight: var(--text-body-sm-regular-fontWeight);
4567
+ line-height: var(--text-body-sm-regular-lineHeight);
4608
4568
  }
4609
4569
 
4610
- /* ─── Focus ───────────────────────────────────────────────
4611
- Same ring as every other focusable Muka component. */
4612
- .muka-text-link:focus-visible {
4570
+ /* ─── Remove (×) button ───────────────────────────────── */
4571
+ .muka-thumbnail__remove {
4572
+ position: absolute;
4573
+ top: var(--spacing-2);
4574
+ right: var(--spacing-2);
4575
+ display: flex;
4576
+ align-items: center;
4577
+ justify-content: center;
4578
+ width: var(--size-2xl);
4579
+ height: var(--size-2xl);
4580
+ padding: 0;
4581
+ color: var(--button-color-tertiary-foreground-default);
4582
+ background-color: var(--button-color-tertiary-background-default);
4583
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4584
+ border-radius: var(--border-radius-lg);
4585
+ cursor: pointer;
4586
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4587
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
4588
+ }
4589
+
4590
+ .muka-thumbnail__remove:hover {
4591
+ color: var(--button-color-tertiary-foreground-hover);
4592
+ background-color: var(--button-color-tertiary-background-hover);
4593
+ border-color: var(--button-color-tertiary-border-hover);
4594
+ }
4595
+
4596
+ .muka-thumbnail__remove:active {
4597
+ color: var(--button-color-tertiary-foreground-pressed);
4598
+ background-color: var(--button-color-tertiary-background-pressed);
4599
+ border-color: var(--button-color-tertiary-border-pressed);
4600
+ }
4601
+
4602
+ .muka-thumbnail__remove:focus-visible {
4613
4603
  outline: 2px solid var(--color-border-focus);
4614
4604
  outline-offset: 2px;
4615
4605
  }
4616
4606
 
4607
+ /* ─── Reduced motion ──────────────────────────────────── */
4617
4608
  @media (prefers-reduced-motion: reduce) {
4618
- .muka-text-link {
4609
+ .muka-thumbnail__image,
4610
+ .muka-thumbnail__remove {
4619
4611
  transition: none;
4620
4612
  }
4613
+
4614
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4615
+ transform: none;
4616
+ }
4621
4617
  }
4622
4618
 
4623
4619
 
@@ -5711,6 +5707,44 @@ body {
5711
5707
  }
5712
5708
  }
5713
5709
 
5710
+ /*
5711
+ * layout="full" (Figma Public header, Bouwplan): the content spans the width,
5712
+ * the nav sits between brand and actions (space-between), and the inset grows
5713
+ * with the screen: 24/16 on small screens, 16/24 from 768px, 32 from 1536px.
5714
+ * Safe-area insets still win where they are larger.
5715
+ */
5716
+ .muka-site-header--full .muka-site-header__inner {
5717
+ max-width: none;
5718
+ justify-content: space-between;
5719
+ }
5720
+
5721
+ .muka-site-header--full .muka-site-header__actions {
5722
+ margin-left: 0;
5723
+ }
5724
+
5725
+ @media (min-width: 768px) {
5726
+ .muka-site-header--full .muka-site-header__inner {
5727
+ padding-block: var(--spacing-4);
5728
+ padding-left: max(var(--spacing-6), env(safe-area-inset-left, 0px));
5729
+ padding-right: max(var(--spacing-6), env(safe-area-inset-right, 0px));
5730
+ }
5731
+ }
5732
+
5733
+ @media (min-width: 1536px) {
5734
+ .muka-site-header--full .muka-site-header__inner {
5735
+ padding-block: var(--spacing-8);
5736
+ padding-left: max(var(--spacing-8), env(safe-area-inset-left, 0px));
5737
+ padding-right: max(var(--spacing-8), env(safe-area-inset-right, 0px));
5738
+ }
5739
+ }
5740
+
5741
+ /* Small screens: no nav, so the actions take the end on their own. */
5742
+ @media (max-width: 767px) {
5743
+ .muka-site-header--full .muka-site-header__actions {
5744
+ margin-left: auto;
5745
+ }
5746
+ }
5747
+
5714
5748
 
5715
5749
  /* Sheet */
5716
5750
  /* Sheet Component Styles */
@@ -8094,6 +8128,8 @@ button.muka-progress-tracker__tab:focus-visible {
8094
8128
 
8095
8129
  .muka-profile-badge {
8096
8130
  display: inline-flex;
8131
+ max-width: 100%;
8132
+ min-width: 0;
8097
8133
  align-items: center;
8098
8134
  font-family: var(--text-body-base-regular-fontFamily);
8099
8135
  }
@@ -8124,6 +8160,10 @@ button.muka-progress-tracker__tab:focus-visible {
8124
8160
  }
8125
8161
 
8126
8162
  .muka-profile-badge__name {
8163
+ max-width: 100%;
8164
+ overflow: hidden;
8165
+ text-overflow: ellipsis;
8166
+ white-space: nowrap;
8127
8167
  font-family: var(--text-body-base-regular-fontFamily);
8128
8168
  font-size: var(--text-body-base-regular-fontSize);
8129
8169
  font-weight: var(--text-body-base-regular-fontWeight);
@@ -9701,6 +9741,39 @@ button.muka-progress-tracker__tab:focus-visible {
9701
9741
  }
9702
9742
  }
9703
9743
 
9744
+ /* ─── Items with an icon: compact ListItem rows ──────────────────────────── */
9745
+
9746
+ /*
9747
+ * A menu whose items carry an icon uses the compact ListItem layout (Figma
9748
+ * ListItem × Padding=Compact, the Bouwplan account menu): a 12px inset on the
9749
+ * list, rows with an 8px inset, a 32px icon slot holding a 20px icon, 12px
9750
+ * between icon and label. The icon takes
9751
+ * the menu's icon colour, so an `<Icon>` passed in doesn't need a colour or
9752
+ * a size of its own. Menus without icons keep their tighter rows.
9753
+ */
9754
+ .muka-menu__viewport:has(.muka-menu__item-icon) {
9755
+ padding: var(--spacing-3);
9756
+ }
9757
+
9758
+ .muka-menu__item:has(> .muka-menu__item-icon) {
9759
+ gap: var(--spacing-3);
9760
+ padding-top: var(--spacing-2);
9761
+ padding-bottom: var(--spacing-2);
9762
+ padding-left: var(--spacing-2);
9763
+ }
9764
+
9765
+ .muka-menu__item-icon {
9766
+ min-width: var(--size-2xl);
9767
+ min-height: var(--size-2xl);
9768
+ }
9769
+
9770
+ .muka-menu__item-icon > .muka-icon,
9771
+ .muka-menu__item-icon > svg {
9772
+ width: var(--icon-size-sm);
9773
+ height: var(--icon-size-sm);
9774
+ color: inherit;
9775
+ }
9776
+
9704
9777
 
9705
9778
  /* MediaViewer */
9706
9779
  /* MediaViewer Component Styles - Using Muka Design Tokens */