@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
@@ -2206,8 +2206,9 @@ body {
2206
2206
  --topbar-height-lg: 80px;
2207
2207
  --topbar-padding-x-sm: 0.75rem;
2208
2208
  --topbar-padding-x-md: 0.75rem;
2209
- --topbar-padding-x-lg: 1.5rem;
2209
+ --topbar-padding-x-lg: 1rem;
2210
2210
  --topbar-title-max-width: 197px;
2211
+ --topbar-title-inset-lg: 0.5rem;
2211
2212
  --topbar-icon-size-sm: 24px;
2212
2213
  --topbar-icon-size-md: 32px;
2213
2214
  --topbar-icon-size-lg: 32px;
@@ -2219,6 +2220,7 @@ body {
2219
2220
  --topbar-drag-handle-color: #eae7ec;
2220
2221
  --topbar-drag-handle-padding-y: 0.75rem;
2221
2222
  --topbar-drag-handle-radius: 999rem;
2223
+ --topbar-gap-lg: 2rem;
2222
2224
  --controlbar-color-background: #fdfcfd;
2223
2225
  --controlbar-max-width-sm: 768px;
2224
2226
  --controlbar-max-width-lg: 1024px;
@@ -2923,7 +2925,6 @@ body {
2923
2925
  --tb-title-font-size: var(--text-heading-xs-fontSize);
2924
2926
  --tb-title-line-height: var(--text-heading-xs-lineHeight);
2925
2927
  --tb-title-letter-spacing: var(--text-heading-xs-letterSpacing);
2926
- --tb-breadcrumb-display: none;
2927
2928
  --tb-pad-y: 0;
2928
2929
  }
2929
2930
 
@@ -2950,7 +2951,7 @@ body {
2950
2951
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2951
2952
  }
2952
2953
 
2953
- /* ─── Large tier: left-aligned title, breadcrumb row ─── */
2954
+ /* ─── Large tier: back button, then a left-aligned title ─── */
2954
2955
  @media (min-width: 1024px) {
2955
2956
  .muka-topbar:not([data-size]):not([data-max-size='md']) {
2956
2957
  --tb-height: var(--topbar-height-lg);
@@ -2964,7 +2965,6 @@ body {
2964
2965
  --tb-title-font-size: var(--text-heading-md-fontSize);
2965
2966
  --tb-title-line-height: var(--text-heading-md-lineHeight);
2966
2967
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2967
- --tb-breadcrumb-display: flex;
2968
2968
  }
2969
2969
  }
2970
2970
 
@@ -2980,7 +2980,6 @@ body {
2980
2980
  --tb-title-font-size: var(--text-heading-md-fontSize);
2981
2981
  --tb-title-line-height: var(--text-heading-md-lineHeight);
2982
2982
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2983
- --tb-breadcrumb-display: flex;
2984
2983
  }
2985
2984
 
2986
2985
  /* Push content below the iOS notch / status bar. Opt out via disableSafeArea. */
@@ -3004,13 +3003,6 @@ body {
3004
3003
  border-radius: var(--topbar-drag-handle-radius);
3005
3004
  }
3006
3005
 
3007
- /* ─── Breadcrumb (large tier, stacked above the title) ── */
3008
-
3009
- .muka-topbar__breadcrumb {
3010
- display: var(--tb-breadcrumb-display);
3011
- align-items: center;
3012
- }
3013
-
3014
3006
  /* ─── Container (the bar itself) ──────────────────────── */
3015
3007
 
3016
3008
  .muka-topbar__container {
@@ -3039,46 +3031,50 @@ body {
3039
3031
  z-index: 1;
3040
3032
  }
3041
3033
 
3042
- /* Large tier with a breadcrumb replaces the back button with the breadcrumb. */
3043
- @media (min-width: 1024px) {
3044
- .muka-topbar:not([data-size]):not([data-max-size='md']):has(.muka-topbar__breadcrumb) .muka-topbar__leading {
3045
- display: none;
3046
- }
3047
- }
3048
-
3049
- .muka-topbar[data-size='lg']:has(.muka-topbar__breadcrumb) .muka-topbar__leading {
3050
- display: none;
3051
- }
3052
-
3053
- /* ─── Heading (breadcrumb + title) ────────────────────── */
3034
+ /* ─── Heading (title) ─────────────────────────────────── */
3054
3035
 
3055
- /* Base/sm/md: transparent wrapper so the title is the center grid item and
3056
- the breadcrumb stays hidden. */
3036
+ /* Base/sm/md: transparent wrapper so the title is the center grid item. */
3057
3037
  .muka-topbar__heading {
3058
3038
  display: contents;
3059
3039
  }
3060
3040
 
3061
- /* Large tier: a tight column with the breadcrumb stacked above the title. */
3041
+ /* Large tier: the heading takes the free width so a long title truncates
3042
+ before the trailing actions, and sits a fixed gap after the back button. */
3062
3043
  @media (min-width: 1024px) {
3063
3044
  .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading {
3064
3045
  display: flex;
3065
3046
  flex-direction: column;
3066
3047
  justify-content: center;
3067
- gap: var(--spacing-1);
3068
3048
  flex: 1 1 0%;
3069
3049
  min-width: 0;
3070
3050
  }
3051
+
3052
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__leading + .muka-topbar__heading {
3053
+ margin-left: var(--topbar-gap-lg);
3054
+ }
3055
+
3056
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading:first-child {
3057
+ padding-left: var(--topbar-title-inset-lg);
3058
+ }
3071
3059
  }
3072
3060
 
3073
3061
  .muka-topbar[data-size='lg'] .muka-topbar__heading {
3074
3062
  display: flex;
3075
3063
  flex-direction: column;
3076
3064
  justify-content: center;
3077
- gap: var(--spacing-1);
3078
3065
  flex: 1 1 0%;
3079
3066
  min-width: 0;
3080
3067
  }
3081
3068
 
3069
+ .muka-topbar[data-size='lg'] .muka-topbar__leading + .muka-topbar__heading {
3070
+ margin-left: var(--topbar-gap-lg);
3071
+ }
3072
+
3073
+ /* No back button: the title sits a little further in than the bar padding. */
3074
+ .muka-topbar[data-size='lg'] .muka-topbar__heading:first-child {
3075
+ padding-left: var(--topbar-title-inset-lg);
3076
+ }
3077
+
3082
3078
  /* ─── Title ───────────────────────────────────────────── */
3083
3079
 
3084
3080
  .muka-topbar__title {
@@ -4065,191 +4061,6 @@ body {
4065
4061
  }
4066
4062
 
4067
4063
 
4068
- /* Thumbnail */
4069
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4070
-
4071
- .muka-thumbnail {
4072
- position: relative;
4073
- flex-shrink: 0;
4074
- }
4075
-
4076
- /* The frame carries the border, background and shape clip. Keeping it separate
4077
- from the root lets the remove (×) button sit outside the clip (needed for the
4078
- circular/ellipse shape, whose corners would otherwise clip the button). */
4079
- .muka-thumbnail__frame {
4080
- position: absolute;
4081
- inset: 0;
4082
- overflow: hidden;
4083
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4084
- border-radius: var(--border-radius-lg);
4085
- background-color: var(--color-surface-level1);
4086
- }
4087
-
4088
- /* ─── Shapes ──────────────────────────────────────────── */
4089
- .muka-thumbnail--4-3 {
4090
- width: 160px;
4091
- height: 120px;
4092
- }
4093
-
4094
- .muka-thumbnail--1-1 {
4095
- width: 120px;
4096
- height: 120px;
4097
- }
4098
-
4099
- .muka-thumbnail--ellipse {
4100
- width: 120px;
4101
- height: 120px;
4102
- }
4103
-
4104
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4105
- .muka-thumbnail--fluid {
4106
- width: 100%;
4107
- height: auto;
4108
- aspect-ratio: 1 / 1;
4109
- }
4110
-
4111
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4112
- aspect-ratio: 4 / 3;
4113
- }
4114
-
4115
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4116
- border-radius: var(--border-radius-full);
4117
- }
4118
-
4119
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4120
- interactive hover zoom has a clean origin. */
4121
- .muka-thumbnail__image {
4122
- position: absolute;
4123
- inset: 0;
4124
- width: 100%;
4125
- height: 100%;
4126
- object-fit: cover;
4127
- display: block;
4128
- transform-origin: center;
4129
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4130
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4131
- }
4132
-
4133
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4134
- .muka-thumbnail__trigger {
4135
- position: absolute;
4136
- inset: 0;
4137
- padding: 0;
4138
- border: 0;
4139
- background: none;
4140
- cursor: pointer;
4141
- overflow: hidden;
4142
- }
4143
-
4144
- .muka-thumbnail__trigger:focus-visible {
4145
- outline: 2px solid var(--color-border-focus);
4146
- outline-offset: -2px;
4147
- }
4148
-
4149
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4150
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4151
- transform: scale(1.05);
4152
- }
4153
-
4154
- /* ─── Loading overlay + progress donut ────────────────── */
4155
- .muka-thumbnail__overlay {
4156
- position: absolute;
4157
- inset: 0;
4158
- display: flex;
4159
- align-items: center;
4160
- justify-content: center;
4161
- background-color: var(--dialog-color-backdrop);
4162
- }
4163
-
4164
- .muka-thumbnail__progress {
4165
- width: 40px;
4166
- height: 40px;
4167
- }
4168
-
4169
- /* ─── Error / corrupt state ───────────────────────────── */
4170
- .muka-thumbnail--error .muka-thumbnail__frame {
4171
- background-color: var(--alias-color-state-error-muted);
4172
- border-color: var(--alias-color-state-error-default);
4173
- }
4174
-
4175
- .muka-thumbnail__error {
4176
- position: absolute;
4177
- inset: 0;
4178
- display: flex;
4179
- flex-direction: column;
4180
- align-items: center;
4181
- justify-content: center;
4182
- gap: var(--spacing-2);
4183
- padding: var(--spacing-3);
4184
- text-align: center;
4185
- }
4186
-
4187
- .muka-thumbnail__error-icon {
4188
- color: var(--alert-color-error-accent);
4189
- }
4190
-
4191
- .muka-thumbnail__caption {
4192
- max-width: 100%;
4193
- overflow: hidden;
4194
- text-overflow: ellipsis;
4195
- white-space: nowrap;
4196
- color: var(--alert-color-error-accent);
4197
- font-family: var(--text-body-sm-regular-fontFamily);
4198
- font-size: var(--text-body-sm-regular-fontSize);
4199
- font-weight: var(--text-body-sm-regular-fontWeight);
4200
- line-height: var(--text-body-sm-regular-lineHeight);
4201
- }
4202
-
4203
- /* ─── Remove (×) button ───────────────────────────────── */
4204
- .muka-thumbnail__remove {
4205
- position: absolute;
4206
- top: var(--spacing-2);
4207
- right: var(--spacing-2);
4208
- display: flex;
4209
- align-items: center;
4210
- justify-content: center;
4211
- width: var(--size-2xl);
4212
- height: var(--size-2xl);
4213
- padding: 0;
4214
- color: var(--button-color-tertiary-foreground-default);
4215
- background-color: var(--button-color-tertiary-background-default);
4216
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4217
- border-radius: var(--border-radius-lg);
4218
- cursor: pointer;
4219
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4220
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
4221
- }
4222
-
4223
- .muka-thumbnail__remove:hover {
4224
- color: var(--button-color-tertiary-foreground-hover);
4225
- background-color: var(--button-color-tertiary-background-hover);
4226
- border-color: var(--button-color-tertiary-border-hover);
4227
- }
4228
-
4229
- .muka-thumbnail__remove:active {
4230
- color: var(--button-color-tertiary-foreground-pressed);
4231
- background-color: var(--button-color-tertiary-background-pressed);
4232
- border-color: var(--button-color-tertiary-border-pressed);
4233
- }
4234
-
4235
- .muka-thumbnail__remove:focus-visible {
4236
- outline: 2px solid var(--color-border-focus);
4237
- outline-offset: 2px;
4238
- }
4239
-
4240
- /* ─── Reduced motion ──────────────────────────────────── */
4241
- @media (prefers-reduced-motion: reduce) {
4242
- .muka-thumbnail__image,
4243
- .muka-thumbnail__remove {
4244
- transition: none;
4245
- }
4246
-
4247
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4248
- transform: none;
4249
- }
4250
- }
4251
-
4252
-
4253
4064
  /* Textarea */
4254
4065
  /* Textarea Component Styles - Using Muka Design Tokens */
4255
4066
 
@@ -4414,6 +4225,88 @@ body {
4414
4225
  }
4415
4226
 
4416
4227
 
4228
+ /* TextLink */
4229
+ /* TextLink Component Styles - Using Muka Design Tokens */
4230
+
4231
+ .muka-text-link {
4232
+ display: inline;
4233
+ cursor: pointer;
4234
+ text-decoration: underline;
4235
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4236
+ text-underline-offset: 0.2em;
4237
+ text-decoration-thickness: from-font;
4238
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
4239
+ border-radius: var(--border-radius-sm);
4240
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4241
+ }
4242
+
4243
+ /* ─── Sizes ───────────────────────────────────────────────
4244
+ Mirrors the body text scale so a link matches the copy it sits in. */
4245
+ .muka-text-link--sm {
4246
+ font-family: var(--text-body-sm-regular-fontFamily);
4247
+ font-weight: var(--text-body-sm-regular-fontWeight);
4248
+ font-size: var(--text-body-sm-regular-fontSize);
4249
+ line-height: var(--text-body-sm-regular-lineHeight);
4250
+ }
4251
+
4252
+ .muka-text-link--base {
4253
+ font-family: var(--text-body-base-regular-fontFamily);
4254
+ font-weight: var(--text-body-base-regular-fontWeight);
4255
+ font-size: var(--text-body-base-regular-fontSize);
4256
+ line-height: var(--text-body-base-regular-lineHeight);
4257
+ }
4258
+
4259
+ .muka-text-link--lg {
4260
+ font-family: var(--text-body-lg-regular-fontFamily);
4261
+ font-weight: var(--text-body-lg-regular-fontWeight);
4262
+ font-size: var(--text-body-lg-regular-fontSize);
4263
+ line-height: var(--text-body-lg-regular-lineHeight);
4264
+ }
4265
+
4266
+ /* ─── Variant: default (accent) ───────────────────────────
4267
+ Visited repeats the default colour on purpose: the design treats visited and
4268
+ default the same, and pinning it stops the browser's purple from showing. */
4269
+ .muka-text-link--default,
4270
+ .muka-text-link--default:visited {
4271
+ color: var(--color-text-action-default);
4272
+ }
4273
+
4274
+ .muka-text-link--default:hover,
4275
+ .muka-text-link--default:focus-visible {
4276
+ color: var(--color-text-action-hover);
4277
+ }
4278
+
4279
+ .muka-text-link--default:active {
4280
+ color: var(--color-text-action-pressed);
4281
+ }
4282
+
4283
+ /* ─── Variant: subtle (neutral) ───────────────────────────
4284
+ Hover, focus and pressed all darken to the default text colour. */
4285
+ .muka-text-link--subtle,
4286
+ .muka-text-link--subtle:visited {
4287
+ color: var(--color-text-subtle-default);
4288
+ }
4289
+
4290
+ .muka-text-link--subtle:hover,
4291
+ .muka-text-link--subtle:focus-visible,
4292
+ .muka-text-link--subtle:active {
4293
+ color: var(--color-text-default-default);
4294
+ }
4295
+
4296
+ /* ─── Focus ───────────────────────────────────────────────
4297
+ Same ring as every other focusable Muka component. */
4298
+ .muka-text-link:focus-visible {
4299
+ outline: 2px solid var(--color-border-focus);
4300
+ outline-offset: 2px;
4301
+ }
4302
+
4303
+ @media (prefers-reduced-motion: reduce) {
4304
+ .muka-text-link {
4305
+ transition: none;
4306
+ }
4307
+ }
4308
+
4309
+
4417
4310
  /* Tabs */
4418
4311
  /* Tabs Component Styles - Clean underline style tabs matching Figma */
4419
4312
 
@@ -4604,85 +4497,188 @@ body {
4604
4497
  }
4605
4498
 
4606
4499
 
4607
- /* TextLink */
4608
- /* TextLink Component Styles - Using Muka Design Tokens */
4500
+ /* Thumbnail */
4501
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
4609
4502
 
4610
- .muka-text-link {
4611
- display: inline;
4503
+ .muka-thumbnail {
4504
+ position: relative;
4505
+ flex-shrink: 0;
4506
+ }
4507
+
4508
+ /* The frame carries the border, background and shape clip. Keeping it separate
4509
+ from the root lets the remove (×) button sit outside the clip (needed for the
4510
+ circular/ellipse shape, whose corners would otherwise clip the button). */
4511
+ .muka-thumbnail__frame {
4512
+ position: absolute;
4513
+ inset: 0;
4514
+ overflow: hidden;
4515
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4516
+ border-radius: var(--border-radius-lg);
4517
+ background-color: var(--color-surface-level1);
4518
+ }
4519
+
4520
+ /* ─── Shapes ──────────────────────────────────────────── */
4521
+ .muka-thumbnail--4-3 {
4522
+ width: 160px;
4523
+ height: 120px;
4524
+ }
4525
+
4526
+ .muka-thumbnail--1-1 {
4527
+ width: 120px;
4528
+ height: 120px;
4529
+ }
4530
+
4531
+ .muka-thumbnail--ellipse {
4532
+ width: 120px;
4533
+ height: 120px;
4534
+ }
4535
+
4536
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4537
+ .muka-thumbnail--fluid {
4538
+ width: 100%;
4539
+ height: auto;
4540
+ aspect-ratio: 1 / 1;
4541
+ }
4542
+
4543
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4544
+ aspect-ratio: 4 / 3;
4545
+ }
4546
+
4547
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
4548
+ border-radius: var(--border-radius-full);
4549
+ }
4550
+
4551
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4552
+ interactive hover zoom has a clean origin. */
4553
+ .muka-thumbnail__image {
4554
+ position: absolute;
4555
+ inset: 0;
4556
+ width: 100%;
4557
+ height: 100%;
4558
+ object-fit: cover;
4559
+ display: block;
4560
+ transform-origin: center;
4561
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4562
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4563
+ }
4564
+
4565
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
4566
+ .muka-thumbnail__trigger {
4567
+ position: absolute;
4568
+ inset: 0;
4569
+ padding: 0;
4570
+ border: 0;
4571
+ background: none;
4612
4572
  cursor: pointer;
4613
- text-decoration: underline;
4614
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4615
- text-underline-offset: 0.2em;
4616
- text-decoration-thickness: from-font;
4617
- /* Rounds the focus ring's corners; the link itself has no visible box. */
4618
- border-radius: var(--border-radius-sm);
4619
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4573
+ overflow: hidden;
4620
4574
  }
4621
4575
 
4622
- /* ─── Sizes ───────────────────────────────────────────────
4623
- Mirrors the body text scale so a link matches the copy it sits in. */
4624
- .muka-text-link--sm {
4625
- font-family: var(--text-body-sm-regular-fontFamily);
4626
- font-weight: var(--text-body-sm-regular-fontWeight);
4627
- font-size: var(--text-body-sm-regular-fontSize);
4628
- line-height: var(--text-body-sm-regular-lineHeight);
4576
+ .muka-thumbnail__trigger:focus-visible {
4577
+ outline: 2px solid var(--color-border-focus);
4578
+ outline-offset: -2px;
4629
4579
  }
4630
4580
 
4631
- .muka-text-link--base {
4632
- font-family: var(--text-body-base-regular-fontFamily);
4633
- font-weight: var(--text-body-base-regular-fontWeight);
4634
- font-size: var(--text-body-base-regular-fontSize);
4635
- line-height: var(--text-body-base-regular-lineHeight);
4581
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4582
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4583
+ transform: scale(1.05);
4636
4584
  }
4637
4585
 
4638
- .muka-text-link--lg {
4639
- font-family: var(--text-body-lg-regular-fontFamily);
4640
- font-weight: var(--text-body-lg-regular-fontWeight);
4641
- font-size: var(--text-body-lg-regular-fontSize);
4642
- line-height: var(--text-body-lg-regular-lineHeight);
4586
+ /* ─── Loading overlay + progress donut ────────────────── */
4587
+ .muka-thumbnail__overlay {
4588
+ position: absolute;
4589
+ inset: 0;
4590
+ display: flex;
4591
+ align-items: center;
4592
+ justify-content: center;
4593
+ background-color: var(--dialog-color-backdrop);
4643
4594
  }
4644
4595
 
4645
- /* ─── Variant: default (accent) ───────────────────────────
4646
- Visited repeats the default colour on purpose: the design treats visited and
4647
- default the same, and pinning it stops the browser's purple from showing. */
4648
- .muka-text-link--default,
4649
- .muka-text-link--default:visited {
4650
- color: var(--color-text-action-default);
4596
+ .muka-thumbnail__progress {
4597
+ width: 40px;
4598
+ height: 40px;
4651
4599
  }
4652
4600
 
4653
- .muka-text-link--default:hover,
4654
- .muka-text-link--default:focus-visible {
4655
- color: var(--color-text-action-hover);
4601
+ /* ─── Error / corrupt state ───────────────────────────── */
4602
+ .muka-thumbnail--error .muka-thumbnail__frame {
4603
+ background-color: var(--alias-color-state-error-muted);
4604
+ border-color: var(--alias-color-state-error-default);
4656
4605
  }
4657
4606
 
4658
- .muka-text-link--default:active {
4659
- color: var(--color-text-action-pressed);
4607
+ .muka-thumbnail__error {
4608
+ position: absolute;
4609
+ inset: 0;
4610
+ display: flex;
4611
+ flex-direction: column;
4612
+ align-items: center;
4613
+ justify-content: center;
4614
+ gap: var(--spacing-2);
4615
+ padding: var(--spacing-3);
4616
+ text-align: center;
4660
4617
  }
4661
4618
 
4662
- /* ─── Variant: subtle (neutral) ───────────────────────────
4663
- Hover, focus and pressed all darken to the default text colour. */
4664
- .muka-text-link--subtle,
4665
- .muka-text-link--subtle:visited {
4666
- color: var(--color-text-subtle-default);
4619
+ .muka-thumbnail__error-icon {
4620
+ color: var(--alert-color-error-accent);
4667
4621
  }
4668
4622
 
4669
- .muka-text-link--subtle:hover,
4670
- .muka-text-link--subtle:focus-visible,
4671
- .muka-text-link--subtle:active {
4672
- color: var(--color-text-default-default);
4623
+ .muka-thumbnail__caption {
4624
+ max-width: 100%;
4625
+ overflow: hidden;
4626
+ text-overflow: ellipsis;
4627
+ white-space: nowrap;
4628
+ color: var(--alert-color-error-accent);
4629
+ font-family: var(--text-body-sm-regular-fontFamily);
4630
+ font-size: var(--text-body-sm-regular-fontSize);
4631
+ font-weight: var(--text-body-sm-regular-fontWeight);
4632
+ line-height: var(--text-body-sm-regular-lineHeight);
4673
4633
  }
4674
4634
 
4675
- /* ─── Focus ───────────────────────────────────────────────
4676
- Same ring as every other focusable Muka component. */
4677
- .muka-text-link:focus-visible {
4635
+ /* ─── Remove (×) button ───────────────────────────────── */
4636
+ .muka-thumbnail__remove {
4637
+ position: absolute;
4638
+ top: var(--spacing-2);
4639
+ right: var(--spacing-2);
4640
+ display: flex;
4641
+ align-items: center;
4642
+ justify-content: center;
4643
+ width: var(--size-2xl);
4644
+ height: var(--size-2xl);
4645
+ padding: 0;
4646
+ color: var(--button-color-tertiary-foreground-default);
4647
+ background-color: var(--button-color-tertiary-background-default);
4648
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4649
+ border-radius: var(--border-radius-lg);
4650
+ cursor: pointer;
4651
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4652
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
4653
+ }
4654
+
4655
+ .muka-thumbnail__remove:hover {
4656
+ color: var(--button-color-tertiary-foreground-hover);
4657
+ background-color: var(--button-color-tertiary-background-hover);
4658
+ border-color: var(--button-color-tertiary-border-hover);
4659
+ }
4660
+
4661
+ .muka-thumbnail__remove:active {
4662
+ color: var(--button-color-tertiary-foreground-pressed);
4663
+ background-color: var(--button-color-tertiary-background-pressed);
4664
+ border-color: var(--button-color-tertiary-border-pressed);
4665
+ }
4666
+
4667
+ .muka-thumbnail__remove:focus-visible {
4678
4668
  outline: 2px solid var(--color-border-focus);
4679
4669
  outline-offset: 2px;
4680
4670
  }
4681
4671
 
4672
+ /* ─── Reduced motion ──────────────────────────────────── */
4682
4673
  @media (prefers-reduced-motion: reduce) {
4683
- .muka-text-link {
4674
+ .muka-thumbnail__image,
4675
+ .muka-thumbnail__remove {
4684
4676
  transition: none;
4685
4677
  }
4678
+
4679
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4680
+ transform: none;
4681
+ }
4686
4682
  }
4687
4683
 
4688
4684
 
@@ -5776,6 +5772,44 @@ body {
5776
5772
  }
5777
5773
  }
5778
5774
 
5775
+ /*
5776
+ * layout="full" (Figma Public header, Bouwplan): the content spans the width,
5777
+ * the nav sits between brand and actions (space-between), and the inset grows
5778
+ * with the screen: 24/16 on small screens, 16/24 from 768px, 32 from 1536px.
5779
+ * Safe-area insets still win where they are larger.
5780
+ */
5781
+ .muka-site-header--full .muka-site-header__inner {
5782
+ max-width: none;
5783
+ justify-content: space-between;
5784
+ }
5785
+
5786
+ .muka-site-header--full .muka-site-header__actions {
5787
+ margin-left: 0;
5788
+ }
5789
+
5790
+ @media (min-width: 768px) {
5791
+ .muka-site-header--full .muka-site-header__inner {
5792
+ padding-block: var(--spacing-4);
5793
+ padding-left: max(var(--spacing-6), env(safe-area-inset-left, 0px));
5794
+ padding-right: max(var(--spacing-6), env(safe-area-inset-right, 0px));
5795
+ }
5796
+ }
5797
+
5798
+ @media (min-width: 1536px) {
5799
+ .muka-site-header--full .muka-site-header__inner {
5800
+ padding-block: var(--spacing-8);
5801
+ padding-left: max(var(--spacing-8), env(safe-area-inset-left, 0px));
5802
+ padding-right: max(var(--spacing-8), env(safe-area-inset-right, 0px));
5803
+ }
5804
+ }
5805
+
5806
+ /* Small screens: no nav, so the actions take the end on their own. */
5807
+ @media (max-width: 767px) {
5808
+ .muka-site-header--full .muka-site-header__actions {
5809
+ margin-left: auto;
5810
+ }
5811
+ }
5812
+
5779
5813
 
5780
5814
  /* Sheet */
5781
5815
  /* Sheet Component Styles */
@@ -8159,6 +8193,8 @@ button.muka-progress-tracker__tab:focus-visible {
8159
8193
 
8160
8194
  .muka-profile-badge {
8161
8195
  display: inline-flex;
8196
+ max-width: 100%;
8197
+ min-width: 0;
8162
8198
  align-items: center;
8163
8199
  font-family: var(--text-body-base-regular-fontFamily);
8164
8200
  }
@@ -8189,6 +8225,10 @@ button.muka-progress-tracker__tab:focus-visible {
8189
8225
  }
8190
8226
 
8191
8227
  .muka-profile-badge__name {
8228
+ max-width: 100%;
8229
+ overflow: hidden;
8230
+ text-overflow: ellipsis;
8231
+ white-space: nowrap;
8192
8232
  font-family: var(--text-body-base-regular-fontFamily);
8193
8233
  font-size: var(--text-body-base-regular-fontSize);
8194
8234
  font-weight: var(--text-body-base-regular-fontWeight);
@@ -9766,6 +9806,39 @@ button.muka-progress-tracker__tab:focus-visible {
9766
9806
  }
9767
9807
  }
9768
9808
 
9809
+ /* ─── Items with an icon: compact ListItem rows ──────────────────────────── */
9810
+
9811
+ /*
9812
+ * A menu whose items carry an icon uses the compact ListItem layout (Figma
9813
+ * ListItem × Padding=Compact, the Bouwplan account menu): a 12px inset on the
9814
+ * list, rows with an 8px inset, a 32px icon slot holding a 20px icon, 12px
9815
+ * between icon and label. The icon takes
9816
+ * the menu's icon colour, so an `<Icon>` passed in doesn't need a colour or
9817
+ * a size of its own. Menus without icons keep their tighter rows.
9818
+ */
9819
+ .muka-menu__viewport:has(.muka-menu__item-icon) {
9820
+ padding: var(--spacing-3);
9821
+ }
9822
+
9823
+ .muka-menu__item:has(> .muka-menu__item-icon) {
9824
+ gap: var(--spacing-3);
9825
+ padding-top: var(--spacing-2);
9826
+ padding-bottom: var(--spacing-2);
9827
+ padding-left: var(--spacing-2);
9828
+ }
9829
+
9830
+ .muka-menu__item-icon {
9831
+ min-width: var(--size-2xl);
9832
+ min-height: var(--size-2xl);
9833
+ }
9834
+
9835
+ .muka-menu__item-icon > .muka-icon,
9836
+ .muka-menu__item-icon > svg {
9837
+ width: var(--icon-size-sm);
9838
+ height: var(--icon-size-sm);
9839
+ color: inherit;
9840
+ }
9841
+
9769
9842
 
9770
9843
  /* MediaViewer */
9771
9844
  /* MediaViewer Component Styles - Using Muka Design Tokens */