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