@revikornmann/muka-ui 0.56.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 (62) hide show
  1. package/dist/cjs/components/ListItem/ListItem.css +37 -0
  2. package/dist/cjs/components/ListItem/ListItem.js +2 -1
  3. package/dist/cjs/components/ListItem/ListItem.js.map +1 -1
  4. package/dist/cjs/components/Menu/Menu.css +33 -0
  5. package/dist/cjs/components/ProfileBadge/ProfileBadge.css +43 -0
  6. package/dist/cjs/components/ProfileBadge/ProfileBadge.js +7 -2
  7. package/dist/cjs/components/ProfileBadge/ProfileBadge.js.map +1 -1
  8. package/dist/cjs/components/SiteHeader/SiteHeader.css +38 -0
  9. package/dist/cjs/components/SiteHeader/SiteHeader.js +2 -1
  10. package/dist/cjs/components/SiteHeader/SiteHeader.js.map +1 -1
  11. package/dist/cjs/components/TopBar/TopBar.css +22 -28
  12. package/dist/cjs/components/TopBar/TopBar.js +21 -21
  13. package/dist/cjs/components/TopBar/TopBar.js.map +1 -1
  14. package/dist/cjs/components/View/View.js +2 -2
  15. package/dist/cjs/components/View/View.js.map +1 -1
  16. package/dist/esm/components/ListItem/ListItem.css +37 -0
  17. package/dist/esm/components/ListItem/ListItem.js +2 -1
  18. package/dist/esm/components/ListItem/ListItem.js.map +1 -1
  19. package/dist/esm/components/Menu/Menu.css +33 -0
  20. package/dist/esm/components/ProfileBadge/ProfileBadge.css +43 -0
  21. package/dist/esm/components/ProfileBadge/ProfileBadge.js +7 -2
  22. package/dist/esm/components/ProfileBadge/ProfileBadge.js.map +1 -1
  23. package/dist/esm/components/SiteHeader/SiteHeader.css +38 -0
  24. package/dist/esm/components/SiteHeader/SiteHeader.js +2 -1
  25. package/dist/esm/components/SiteHeader/SiteHeader.js.map +1 -1
  26. package/dist/esm/components/TopBar/TopBar.css +22 -28
  27. package/dist/esm/components/TopBar/TopBar.js +21 -21
  28. package/dist/esm/components/TopBar/TopBar.js.map +1 -1
  29. package/dist/esm/components/View/View.js +2 -2
  30. package/dist/esm/components/View/View.js.map +1 -1
  31. package/dist/styles/components/ListItem.css +37 -0
  32. package/dist/styles/components/Menu.css +33 -0
  33. package/dist/styles/components/ProfileBadge.css +43 -0
  34. package/dist/styles/components/SiteHeader.css +38 -0
  35. package/dist/styles/components/TopBar.css +22 -28
  36. package/dist/styles/index.css +1198 -1051
  37. package/dist/styles/muka-dark.css +1198 -1051
  38. package/dist/styles/muka-light.css +1198 -1051
  39. package/dist/styles/tokens-bouwplan-dark.css +3 -1
  40. package/dist/styles/tokens-bouwplan-light.css +3 -1
  41. package/dist/styles/tokens-fscl-dark.css +3 -1
  42. package/dist/styles/tokens-fscl-light.css +3 -1
  43. package/dist/styles/tokens-grip-dark.css +3 -1
  44. package/dist/styles/tokens-grip-light.css +3 -1
  45. package/dist/styles/tokens-muka-dark.css +3 -1
  46. package/dist/styles/tokens-muka-light.css +3 -1
  47. package/dist/styles/tokens-wireframe-dark.css +3 -1
  48. package/dist/styles/tokens-wireframe-light.css +3 -1
  49. package/dist/styles/wireframe-dark.css +1198 -1051
  50. package/dist/styles/wireframe-light.css +1198 -1051
  51. package/dist/types/components/ListItem/ListItem.d.ts +7 -0
  52. package/dist/types/components/ListItem/ListItem.d.ts.map +1 -1
  53. package/dist/types/components/ProfileBadge/ProfileBadge.d.ts +13 -1
  54. package/dist/types/components/ProfileBadge/ProfileBadge.d.ts.map +1 -1
  55. package/dist/types/components/SiteHeader/SiteHeader.d.ts +7 -0
  56. package/dist/types/components/SiteHeader/SiteHeader.d.ts.map +1 -1
  57. package/dist/types/components/TopBar/TopBar.d.ts +3 -9
  58. package/dist/types/components/TopBar/TopBar.d.ts.map +1 -1
  59. package/dist/types/components/View/View.d.ts +0 -6
  60. package/dist/types/components/View/View.d.ts.map +1 -1
  61. package/package.json +1 -1
  62. package/tokens/t4-components/topbar.json +15 -1
@@ -29,7 +29,6 @@
29
29
  --tb-title-font-size: var(--text-heading-xs-fontSize);
30
30
  --tb-title-line-height: var(--text-heading-xs-lineHeight);
31
31
  --tb-title-letter-spacing: var(--text-heading-xs-letterSpacing);
32
- --tb-breadcrumb-display: none;
33
32
  --tb-pad-y: 0;
34
33
  }
35
34
 
@@ -56,7 +55,7 @@
56
55
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
57
56
  }
58
57
 
59
- /* ─── Large tier: left-aligned title, breadcrumb row ─── */
58
+ /* ─── Large tier: back button, then a left-aligned title ─── */
60
59
  @media (min-width: 1024px) {
61
60
  .muka-topbar:not([data-size]):not([data-max-size='md']) {
62
61
  --tb-height: var(--topbar-height-lg);
@@ -70,7 +69,6 @@
70
69
  --tb-title-font-size: var(--text-heading-md-fontSize);
71
70
  --tb-title-line-height: var(--text-heading-md-lineHeight);
72
71
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
73
- --tb-breadcrumb-display: flex;
74
72
  }
75
73
  }
76
74
 
@@ -86,7 +84,6 @@
86
84
  --tb-title-font-size: var(--text-heading-md-fontSize);
87
85
  --tb-title-line-height: var(--text-heading-md-lineHeight);
88
86
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
89
- --tb-breadcrumb-display: flex;
90
87
  }
91
88
 
92
89
  /* Push content below the iOS notch / status bar. Opt out via disableSafeArea. */
@@ -110,13 +107,6 @@
110
107
  border-radius: var(--topbar-drag-handle-radius);
111
108
  }
112
109
 
113
- /* ─── Breadcrumb (large tier, stacked above the title) ── */
114
-
115
- .muka-topbar__breadcrumb {
116
- display: var(--tb-breadcrumb-display);
117
- align-items: center;
118
- }
119
-
120
110
  /* ─── Container (the bar itself) ──────────────────────── */
121
111
 
122
112
  .muka-topbar__container {
@@ -145,46 +135,50 @@
145
135
  z-index: 1;
146
136
  }
147
137
 
148
- /* Large tier with a breadcrumb replaces the back button with the breadcrumb. */
149
- @media (min-width: 1024px) {
150
- .muka-topbar:not([data-size]):not([data-max-size='md']):has(.muka-topbar__breadcrumb) .muka-topbar__leading {
151
- display: none;
152
- }
153
- }
154
-
155
- .muka-topbar[data-size='lg']:has(.muka-topbar__breadcrumb) .muka-topbar__leading {
156
- display: none;
157
- }
158
-
159
- /* ─── Heading (breadcrumb + title) ────────────────────── */
138
+ /* ─── Heading (title) ─────────────────────────────────── */
160
139
 
161
- /* Base/sm/md: transparent wrapper so the title is the center grid item and
162
- the breadcrumb stays hidden. */
140
+ /* Base/sm/md: transparent wrapper so the title is the center grid item. */
163
141
  .muka-topbar__heading {
164
142
  display: contents;
165
143
  }
166
144
 
167
- /* Large tier: a tight column with the breadcrumb stacked above the title. */
145
+ /* Large tier: the heading takes the free width so a long title truncates
146
+ before the trailing actions, and sits a fixed gap after the back button. */
168
147
  @media (min-width: 1024px) {
169
148
  .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading {
170
149
  display: flex;
171
150
  flex-direction: column;
172
151
  justify-content: center;
173
- gap: var(--spacing-1);
174
152
  flex: 1 1 0%;
175
153
  min-width: 0;
176
154
  }
155
+
156
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__leading + .muka-topbar__heading {
157
+ margin-left: var(--topbar-gap-lg);
158
+ }
159
+
160
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading:first-child {
161
+ padding-left: var(--topbar-title-inset-lg);
162
+ }
177
163
  }
178
164
 
179
165
  .muka-topbar[data-size='lg'] .muka-topbar__heading {
180
166
  display: flex;
181
167
  flex-direction: column;
182
168
  justify-content: center;
183
- gap: var(--spacing-1);
184
169
  flex: 1 1 0%;
185
170
  min-width: 0;
186
171
  }
187
172
 
173
+ .muka-topbar[data-size='lg'] .muka-topbar__leading + .muka-topbar__heading {
174
+ margin-left: var(--topbar-gap-lg);
175
+ }
176
+
177
+ /* No back button: the title sits a little further in than the bar padding. */
178
+ .muka-topbar[data-size='lg'] .muka-topbar__heading:first-child {
179
+ padding-left: var(--topbar-title-inset-lg);
180
+ }
181
+
188
182
  /* ─── Title ───────────────────────────────────────────── */
189
183
 
190
184
  .muka-topbar__title {