@revikornmann/muka-ui 0.49.0 → 0.50.1

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 (71) hide show
  1. package/cli/templates/agents-block.md +16 -0
  2. package/dist/cjs/components/AppShell/AppShell.css +36 -10
  3. package/dist/cjs/components/BottomBar/BottomBar.css +2 -0
  4. package/dist/cjs/components/Dialog/Dialog.css +38 -0
  5. package/dist/cjs/components/DocumentViewer/DocumentViewer.css +22 -0
  6. package/dist/cjs/components/Drawer/Drawer.css +43 -0
  7. package/dist/cjs/components/Page/Page.css +57 -0
  8. package/dist/cjs/components/Page/Page.js +31 -0
  9. package/dist/cjs/components/Page/Page.js.map +1 -0
  10. package/dist/cjs/components/Page/index.js +6 -0
  11. package/dist/cjs/components/Page/index.js.map +1 -0
  12. package/dist/cjs/components/SiteHeader/SiteHeader.css +104 -0
  13. package/dist/cjs/components/SiteHeader/SiteHeader.js +34 -0
  14. package/dist/cjs/components/SiteHeader/SiteHeader.js.map +1 -0
  15. package/dist/cjs/components/SiteHeader/index.js +6 -0
  16. package/dist/cjs/components/SiteHeader/index.js.map +1 -0
  17. package/dist/cjs/components/Toast/Toast.css +12 -10
  18. package/dist/cjs/components/View/View.css +12 -0
  19. package/dist/cjs/components/index.js +7 -3
  20. package/dist/cjs/components/index.js.map +1 -1
  21. package/dist/esm/components/AppShell/AppShell.css +36 -10
  22. package/dist/esm/components/BottomBar/BottomBar.css +2 -0
  23. package/dist/esm/components/Dialog/Dialog.css +38 -0
  24. package/dist/esm/components/DocumentViewer/DocumentViewer.css +22 -0
  25. package/dist/esm/components/Drawer/Drawer.css +43 -0
  26. package/dist/esm/components/Page/Page.css +57 -0
  27. package/dist/esm/components/Page/Page.js +27 -0
  28. package/dist/esm/components/Page/Page.js.map +1 -0
  29. package/dist/esm/components/Page/index.js +2 -0
  30. package/dist/esm/components/Page/index.js.map +1 -0
  31. package/dist/esm/components/SiteHeader/SiteHeader.css +104 -0
  32. package/dist/esm/components/SiteHeader/SiteHeader.js +30 -0
  33. package/dist/esm/components/SiteHeader/SiteHeader.js.map +1 -0
  34. package/dist/esm/components/SiteHeader/index.js +2 -0
  35. package/dist/esm/components/SiteHeader/index.js.map +1 -0
  36. package/dist/esm/components/Toast/Toast.css +12 -10
  37. package/dist/esm/components/View/View.css +12 -0
  38. package/dist/esm/components/index.js +2 -0
  39. package/dist/esm/components/index.js.map +1 -1
  40. package/dist/styles/components/AppShell.css +36 -10
  41. package/dist/styles/components/BottomBar.css +2 -0
  42. package/dist/styles/components/ControlBar.css +72 -0
  43. package/dist/styles/components/Dialog.css +38 -0
  44. package/dist/styles/components/DocumentViewer.css +22 -0
  45. package/dist/styles/components/Drawer.css +43 -0
  46. package/dist/styles/components/Page.css +57 -0
  47. package/dist/styles/components/SiteHeader.css +104 -0
  48. package/dist/styles/components/TablePagination.css +199 -0
  49. package/dist/styles/components/Toast.css +12 -10
  50. package/dist/styles/components/TopBar.css +225 -43
  51. package/dist/styles/components/View.css +12 -0
  52. package/dist/styles/index.css +2145 -1651
  53. package/dist/styles/muka-dark.css +2145 -1651
  54. package/dist/styles/muka-light.css +2145 -1651
  55. package/dist/styles/wireframe-dark.css +2145 -1651
  56. package/dist/styles/wireframe-light.css +2145 -1651
  57. package/dist/types/components/Page/Page.d.ts +38 -0
  58. package/dist/types/components/Page/Page.d.ts.map +1 -0
  59. package/dist/types/components/Page/index.d.ts +3 -0
  60. package/dist/types/components/Page/index.d.ts.map +1 -0
  61. package/dist/types/components/SiteHeader/SiteHeader.d.ts +43 -0
  62. package/dist/types/components/SiteHeader/SiteHeader.d.ts.map +1 -0
  63. package/dist/types/components/SiteHeader/index.d.ts +3 -0
  64. package/dist/types/components/SiteHeader/index.d.ts.map +1 -0
  65. package/dist/types/components/index.d.ts +2 -0
  66. package/dist/types/components/index.d.ts.map +1 -1
  67. package/docs/consumers/README.md +1 -0
  68. package/docs/consumers/devices.md +59 -0
  69. package/docs/consumers/setup-instructions.md +7 -0
  70. package/package.json +1 -1
  71. package/skills/setup-muka/SKILL.md +9 -0
@@ -12,8 +12,11 @@
12
12
  position: relative;
13
13
  /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
14
14
  --app-shell-sidebar-width: 240px;
15
- /* Height of the optional top app bar. */
15
+ /* Height of the optional top app bar, without the status-bar inset. */
16
16
  --app-shell-appbar-height: 64px;
17
+ /* What the app bar actually takes from the top: its height plus the status
18
+ bar on a device with one (an iPad in an app shell); 0 inset elsewhere. */
19
+ --app-shell-appbar-offset: calc(var(--app-shell-appbar-height) + env(safe-area-inset-top, 0px));
17
20
  }
18
21
 
19
22
  /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
@@ -38,7 +41,10 @@
38
41
  top: 0;
39
42
  left: 0;
40
43
  right: 0;
41
- height: var(--app-shell-appbar-height);
44
+ /* Extends behind the status bar in its own colour; content starts below it. */
45
+ box-sizing: border-box;
46
+ height: var(--app-shell-appbar-offset);
47
+ padding-top: env(safe-area-inset-top, 0px);
42
48
  padding-inline: var(--spacing-4);
43
49
  background-color: var(--color-surface-level3);
44
50
  border-bottom: var(--border-width-regular) solid var(--color-border-default);
@@ -58,15 +64,15 @@
58
64
  }
59
65
  /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
60
66
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
61
- padding-top: var(--app-shell-appbar-height);
67
+ padding-top: var(--app-shell-appbar-offset);
62
68
  }
63
69
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
64
- top: var(--app-shell-appbar-height);
65
- height: calc(100vh - var(--app-shell-appbar-height));
70
+ top: var(--app-shell-appbar-offset);
71
+ height: calc(100vh - var(--app-shell-appbar-offset));
66
72
  }
67
73
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
68
74
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
69
- height: calc(100dvh - var(--app-shell-appbar-height));
75
+ height: calc(100dvh - var(--app-shell-appbar-offset));
70
76
  }
71
77
  }
72
78
 
@@ -81,13 +87,33 @@
81
87
  display: flex;
82
88
  }
83
89
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
84
- padding-top: var(--app-shell-appbar-height);
90
+ padding-top: var(--app-shell-appbar-offset);
85
91
  }
86
92
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
87
- top: var(--app-shell-appbar-height);
88
- height: calc(100vh - var(--app-shell-appbar-height));
93
+ top: var(--app-shell-appbar-offset);
94
+ height: calc(100vh - var(--app-shell-appbar-offset));
89
95
  }
90
96
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
91
97
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
92
- height: calc(100dvh - var(--app-shell-appbar-height));
98
+ height: calc(100dvh - var(--app-shell-appbar-offset));
99
+ }
100
+
101
+ /* ─── Below an app bar, the status bar is already covered ───
102
+ The app bar takes the top inset, so the View's TopBar and the sidebar rail
103
+ under it must not pad for the status bar a second time. */
104
+ @media (min-width: 1024px) {
105
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view .muka-topbar {
106
+ padding-top: 0;
107
+ }
108
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar .muka-bottombar__content {
109
+ padding-top: var(--spacing-4);
110
+ }
111
+ }
112
+
113
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view .muka-topbar {
114
+ padding-top: 0;
115
+ }
116
+
117
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar .muka-bottombar__content {
118
+ padding-top: var(--spacing-4);
93
119
  }
@@ -261,6 +261,8 @@
261
261
  flex-direction: column;
262
262
  align-items: stretch;
263
263
  padding: var(--spacing-4) var(--spacing-3);
264
+ /* The rail runs to the top of the screen: clear the status bar there. */
265
+ padding-top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
264
266
  gap: var(--spacing-1);
265
267
  }
266
268
 
@@ -319,3 +319,41 @@
319
319
  font-size: var(--text-body-base-regular-fontSize);
320
320
  line-height: var(--text-body-base-regular-lineHeight);
321
321
  }
322
+
323
+ /* ─── Safe areas (notch, status bar, home indicator) ────
324
+ env(safe-area-inset-*) is 0 outside notched devices, so these only change
325
+ an app running edge to edge (viewport-fit=cover, e.g. an iOS shell). */
326
+
327
+ /* The surface never reaches the top of the screen, so its TopBar must not pad
328
+ for the status bar. */
329
+ .muka-dialog .muka-topbar {
330
+ padding-top: 0;
331
+ }
332
+
333
+ @media (max-width: 1023px) {
334
+ /* The tallest sheet still starts below the status bar. */
335
+ .muka-dialog--lg .muka-dialog__surface {
336
+ height: calc(100vh - var(--dialog-margin-top-mobile) - env(safe-area-inset-top, 0px));
337
+ height: calc(100dvh - var(--dialog-margin-top-mobile) - env(safe-area-inset-top, 0px));
338
+ }
339
+
340
+ /* Landscape: keep the body clear of the notch. */
341
+ .muka-dialog__body {
342
+ padding-left: max(var(--dialog-padding-x), env(safe-area-inset-left, 0px));
343
+ padding-right: max(var(--dialog-padding-x), env(safe-area-inset-right, 0px));
344
+ }
345
+
346
+ /* The sheet is bottom-attached. A footer BottomBar pads itself for the home
347
+ indicator; without a visible footer the body does. */
348
+ .muka-dialog__surface:not(:has(.muka-dialog__footer)) .muka-dialog__body,
349
+ .muka-dialog:not(.muka-dialog--non-modal):not(.muka-dialog--no-inputs):not(.muka-dialog--mobile-actions-footer) .muka-dialog__body {
350
+ padding-bottom: calc(var(--dialog-padding-x) + env(safe-area-inset-bottom, 0px));
351
+ }
352
+ }
353
+
354
+ @media (min-width: 1024px) {
355
+ /* Centred card: nothing touches the bottom edge. */
356
+ .muka-dialog__footer .muka-bottombar {
357
+ padding-bottom: 0;
358
+ }
359
+ }
@@ -274,3 +274,25 @@
274
274
  .react-pdf__Page__annotations {
275
275
  max-width: 100%;
276
276
  }
277
+
278
+ /* ─── Safe areas in full screen ─────────────────────────
279
+ Full screen covers the whole display: the toolbar extends behind the status
280
+ bar and the content clears the home indicator and a landscape notch.
281
+ env(safe-area-inset-*) is 0 outside notched devices. */
282
+ .muka-documentviewer--fullscreen {
283
+ height: 100dvh;
284
+ }
285
+
286
+ .muka-documentviewer--fullscreen .muka-documentviewer__toolbar {
287
+ box-sizing: border-box;
288
+ height: calc(var(--documentviewer-toolbar-height) + env(safe-area-inset-top, 0px));
289
+ padding-top: calc(var(--documentviewer-toolbar-padding-y) + env(safe-area-inset-top, 0px));
290
+ padding-left: max(var(--documentviewer-toolbar-padding-x), env(safe-area-inset-left, 0px));
291
+ padding-right: max(var(--documentviewer-toolbar-padding-x), env(safe-area-inset-right, 0px));
292
+ }
293
+
294
+ .muka-documentviewer--fullscreen .muka-documentviewer__content {
295
+ padding-bottom: env(safe-area-inset-bottom, 0px);
296
+ padding-left: env(safe-area-inset-left, 0px);
297
+ padding-right: env(safe-area-inset-right, 0px);
298
+ }
@@ -140,3 +140,46 @@
140
140
  border-top: var(--border-width-regular) solid var(--color-border-default);
141
141
  flex-shrink: 0;
142
142
  }
143
+
144
+ /* ─── Safe areas (notch, status bar, home indicator) ────
145
+ env(safe-area-inset-*) is 0 outside notched devices, so these only change
146
+ an app running edge to edge (viewport-fit=cover, e.g. an iOS shell). */
147
+
148
+ /* Top edge. Side, top and full-height drawers reach the status bar: their
149
+ TopBar pads for it; without a header the surface does. A bottom drawer
150
+ stops short of it, so its TopBar must not. */
151
+ .muka-drawer--right .muka-drawer__surface:not(:has(> .muka-topbar)),
152
+ .muka-drawer--left .muka-drawer__surface:not(:has(> .muka-topbar)),
153
+ .muka-drawer--top .muka-drawer__surface:not(:has(> .muka-topbar)) {
154
+ padding-top: env(safe-area-inset-top, 0px);
155
+ }
156
+
157
+ .muka-drawer--bottom:not(.muka-drawer--full) .muka-topbar {
158
+ padding-top: 0;
159
+ }
160
+
161
+ /* Bottom edge. Side and bottom drawers reach the home indicator: the footer
162
+ pads for it, or the surface when there is no footer. */
163
+ .muka-drawer:not(.muka-drawer--top) .muka-drawer__footer {
164
+ padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
165
+ }
166
+
167
+ .muka-drawer:not(.muka-drawer--top) .muka-drawer__surface:not(:has(> .muka-drawer__footer)) {
168
+ padding-bottom: env(safe-area-inset-bottom, 0px);
169
+ }
170
+
171
+ /* Sides (landscape notch): the edge the drawer is attached to. The TopBar
172
+ already insets its own content. */
173
+ @media (max-width: 1023px) {
174
+ .muka-drawer--left .muka-drawer__body,
175
+ .muka-drawer--top .muka-drawer__body,
176
+ .muka-drawer--bottom .muka-drawer__body {
177
+ padding-left: max(var(--drawer-padding-x), env(safe-area-inset-left, 0px));
178
+ }
179
+
180
+ .muka-drawer--right .muka-drawer__body,
181
+ .muka-drawer--top .muka-drawer__body,
182
+ .muka-drawer--bottom .muka-drawer__body {
183
+ padding-right: max(var(--drawer-padding-x), env(safe-area-inset-right, 0px));
184
+ }
185
+ }
@@ -0,0 +1,57 @@
1
+ /* Page Component Styles */
2
+
3
+ /*
4
+ * Shell for document-scrolling pages (marketing, sign-in, legal). Safe areas:
5
+ * env(safe-area-inset-*) is 0 outside notched devices, so the padding below
6
+ * only appears in an app running edge to edge (viewport-fit=cover).
7
+ *
8
+ * `--muka-page-background` is the page colour. SiteHeader reads it, so a
9
+ * header and its status-bar scrim match the page without configuration.
10
+ */
11
+ .muka-page {
12
+ --muka-page-background: var(--color-surface-level3);
13
+ display: flex;
14
+ flex-direction: column;
15
+ min-height: 100vh;
16
+ min-height: 100dvh;
17
+ background-color: var(--muka-page-background);
18
+ }
19
+
20
+ .muka-page--surface-2 {
21
+ --muka-page-background: var(--color-surface-level2);
22
+ }
23
+
24
+ /* Overscroll (rubber band) shows the document background: keep it the page's. */
25
+ :root:has(.muka-page--surface-2) body {
26
+ background-color: var(--color-surface-level2);
27
+ }
28
+
29
+ .muka-page__main {
30
+ flex: 1 0 auto;
31
+ display: flex;
32
+ flex-direction: column;
33
+ /* Landscape: clear the notch. */
34
+ padding-left: env(safe-area-inset-left, 0px);
35
+ padding-right: env(safe-area-inset-right, 0px);
36
+ }
37
+
38
+ .muka-page__footer {
39
+ flex-shrink: 0;
40
+ padding-left: env(safe-area-inset-left, 0px);
41
+ padding-right: env(safe-area-inset-right, 0px);
42
+ padding-bottom: env(safe-area-inset-bottom, 0px);
43
+ }
44
+
45
+ /* A footer with its own colour: the colour runs under the home indicator. */
46
+ .muka-page__footer--surface-2 {
47
+ background-color: var(--color-surface-level2);
48
+ }
49
+
50
+ .muka-page__footer--surface-3 {
51
+ background-color: var(--color-surface-level3);
52
+ }
53
+
54
+ /* Without a footer, the content is last and clears the home indicator. */
55
+ .muka-page:not(:has(> .muka-page__footer)) > .muka-page__main {
56
+ padding-bottom: env(safe-area-inset-bottom, 0px);
57
+ }
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import './Page.css';
3
+ /**
4
+ * Page
5
+ *
6
+ * Shell for a page that scrolls the document instead of a `View`: a marketing
7
+ * page, sign-in or sign-up, a legal page. It fills the screen, owns the page
8
+ * background, and keeps the content clear of the home indicator and a
9
+ * landscape notch, so the same page is right in a browser and in an iOS or
10
+ * Android app shell without extra CSS. Pair it with a `SiteHeader`, which
11
+ * handles the status bar.
12
+ *
13
+ * App screens use `View` (inside `AppShell`) instead; it scrolls its own body.
14
+ */
15
+ export const Page = ({ header, children, footer, surface = 'level3', footerSurface, className, ...props }) => {
16
+ const classes = [
17
+ 'muka-page',
18
+ surface === 'level2' && 'muka-page--surface-2',
19
+ className,
20
+ ].filter(Boolean).join(' ');
21
+ return (_jsxs("div", { className: classes, ...props, children: [header, _jsx("main", { className: "muka-page__main", children: children }), footer && (_jsx("div", { className: [
22
+ 'muka-page__footer',
23
+ footerSurface && `muka-page__footer--surface-${footerSurface === 'level2' ? 2 : 3}`,
24
+ ].filter(Boolean).join(' '), children: footer }))] }));
25
+ };
26
+ export default Page;
27
+ //# sourceMappingURL=Page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../components/Page/Page.tsx"],"names":[],"mappings":";AACA,OAAO,YAAY,CAAC;AA4BpB;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EACxC,MAAM,EACN,QAAQ,EACR,MAAM,EACN,OAAO,GAAG,QAAQ,EAClB,aAAa,EACb,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,OAAO,GAAG;QACd,WAAW;QACX,OAAO,KAAK,QAAQ,IAAI,sBAAsB;QAC9C,SAAS;KACV,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE5B,OAAO,CACL,eAAK,SAAS,EAAE,OAAO,KAAM,KAAK,aAC/B,MAAM,EACP,eAAM,SAAS,EAAC,iBAAiB,YAAE,QAAQ,GAAQ,EAClD,MAAM,IAAI,CACT,cACE,SAAS,EAAE;oBACT,mBAAmB;oBACnB,aAAa,IAAI,8BAA8B,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;iBACpF,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAE1B,MAAM,GACH,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Page } from './Page';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../components/Page/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,104 @@
1
+ /* SiteHeader Component Styles */
2
+
3
+ /*
4
+ * Header for document-scrolling pages. Its colour comes from, in order:
5
+ * `--muka-site-header-background` (set by the consumer), the surrounding
6
+ * Page's `--muka-page-background`, and the base surface.
7
+ *
8
+ * Safe areas: env(safe-area-inset-*) is 0 outside notched devices. In an app
9
+ * running edge to edge, the header extends behind the status bar in its own
10
+ * colour and keeps its content clear of a landscape notch.
11
+ */
12
+ .muka-site-header {
13
+ width: 100%;
14
+ flex-shrink: 0;
15
+ background-color: var(--muka-site-header-background, var(--muka-page-background, var(--color-surface-level3)));
16
+ padding-top: env(safe-area-inset-top, 0px);
17
+ }
18
+
19
+ .muka-site-header--sticky {
20
+ position: sticky;
21
+ top: 0;
22
+ z-index: 30;
23
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
24
+ }
25
+
26
+ /*
27
+ * A header that scrolls away would leave the status bar over the content. A
28
+ * fixed strip in the header's colour stays behind the status bar instead.
29
+ * Below Muka's overlays, so a dialog's backdrop dims it with the page.
30
+ */
31
+ .muka-site-header:not(.muka-site-header--sticky)::before {
32
+ content: '';
33
+ position: fixed;
34
+ top: 0;
35
+ left: 0;
36
+ right: 0;
37
+ height: env(safe-area-inset-top, 0px);
38
+ background-color: inherit;
39
+ pointer-events: none;
40
+ z-index: 30;
41
+ }
42
+
43
+ .muka-site-header__inner {
44
+ display: flex;
45
+ align-items: center;
46
+ gap: var(--spacing-2);
47
+ width: 100%;
48
+ max-width: var(--container-max-width-xl);
49
+ margin: 0 auto;
50
+ padding-block: var(--spacing-6);
51
+ padding-left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
52
+ padding-right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
53
+ }
54
+
55
+ .muka-site-header__brand {
56
+ display: flex;
57
+ align-items: center;
58
+ flex-shrink: 0;
59
+ min-width: 0;
60
+ }
61
+
62
+ .muka-site-header__nav {
63
+ display: none;
64
+ align-items: center;
65
+ gap: var(--spacing-1);
66
+ min-width: 0;
67
+ }
68
+
69
+ .muka-site-header__actions {
70
+ display: flex;
71
+ align-items: center;
72
+ margin-left: auto;
73
+ min-width: 0;
74
+ }
75
+
76
+ .muka-site-header__action-group {
77
+ display: flex;
78
+ align-items: center;
79
+ gap: var(--spacing-2);
80
+ }
81
+
82
+ /* Small screens: the compact set replaces the full one. */
83
+ .muka-site-header__action-group--wide {
84
+ display: none;
85
+ }
86
+
87
+ @media (min-width: 768px) {
88
+ .muka-site-header__inner {
89
+ gap: var(--spacing-4);
90
+ padding-block: var(--spacing-8);
91
+ }
92
+
93
+ .muka-site-header__nav {
94
+ display: flex;
95
+ }
96
+
97
+ .muka-site-header__action-group--wide {
98
+ display: flex;
99
+ }
100
+
101
+ .muka-site-header__action-group--compact {
102
+ display: none;
103
+ }
104
+ }
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import './SiteHeader.css';
3
+ /**
4
+ * SiteHeader
5
+ *
6
+ * Header for document-scrolling pages: a marketing site, sign-in, legal pages.
7
+ * Use it in `Page`'s `header` slot. App screens use `TopBar` (via `View`).
8
+ *
9
+ * Works the same in a browser and in an iOS or Android app shell: the header
10
+ * extends behind the status bar in its own colour, and a header that scrolls
11
+ * away (`sticky={false}`) leaves a strip in that colour behind the status bar,
12
+ * so content never runs under the clock.
13
+ *
14
+ * Its colour is the page's (`Page` `surface`). Give it another one by setting
15
+ * `--muka-site-header-background` to a token, e.g.
16
+ * `style={{ '--muka-site-header-background': 'var(--color-surface-level2)' }}`.
17
+ */
18
+ export const SiteHeader = ({ brand, nav, navLabel, actions, compactActions, sticky = true, className, ...props }) => {
19
+ const classes = [
20
+ 'muka-site-header',
21
+ sticky && 'muka-site-header--sticky',
22
+ className,
23
+ ].filter(Boolean).join(' ');
24
+ return (_jsx("header", { className: classes, ...props, children: _jsxs("div", { className: "muka-site-header__inner", children: [_jsx("div", { className: "muka-site-header__brand", children: brand }), nav && (_jsx("nav", { className: "muka-site-header__nav", "aria-label": navLabel, children: nav })), (actions || compactActions) && (_jsxs("div", { className: "muka-site-header__actions", children: [actions && (_jsx("div", { className: [
25
+ 'muka-site-header__action-group',
26
+ compactActions && 'muka-site-header__action-group--wide',
27
+ ].filter(Boolean).join(' '), children: actions })), compactActions && (_jsx("div", { className: "muka-site-header__action-group muka-site-header__action-group--compact", children: compactActions }))] }))] }) }));
28
+ };
29
+ export default SiteHeader;
30
+ //# sourceMappingURL=SiteHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SiteHeader.js","sourceRoot":"","sources":["../../../../components/SiteHeader/SiteHeader.tsx"],"names":[],"mappings":";AACA,OAAO,kBAAkB,CAAC;AA+B1B;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,KAAK,EACL,GAAG,EACH,QAAQ,EACR,OAAO,EACP,cAAc,EACd,MAAM,GAAG,IAAI,EACb,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,OAAO,GAAG;QACd,kBAAkB;QAClB,MAAM,IAAI,0BAA0B;QACpC,SAAS;KACV,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE5B,OAAO,CACL,iBAAQ,SAAS,EAAE,OAAO,KAAM,KAAK,YACnC,eAAK,SAAS,EAAC,yBAAyB,aACtC,cAAK,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAO,EAErD,GAAG,IAAI,CACN,cAAK,SAAS,EAAC,uBAAuB,gBAAa,QAAQ,YACxD,GAAG,GACA,CACP,EAEA,CAAC,OAAO,IAAI,cAAc,CAAC,IAAI,CAC9B,eAAK,SAAS,EAAC,2BAA2B,aACvC,OAAO,IAAI,CACV,cACE,SAAS,EAAE;gCACT,gCAAgC;gCAChC,cAAc,IAAI,sCAAsC;6BACzD,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAE1B,OAAO,GACJ,CACP,EACA,cAAc,IAAI,CACjB,cAAK,SAAS,EAAC,wEAAwE,YACpF,cAAc,GACX,CACP,IACG,CACP,IACG,GACC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SiteHeader } from './SiteHeader';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../components/SiteHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -36,34 +36,36 @@
36
36
  z-index: 9999;
37
37
  }
38
38
 
39
+ /* Offsets clear the status bar, home indicator and landscape notch on a device
40
+ that has them (env() is 0 elsewhere). */
39
41
  .muka-toast--top-right {
40
- top: var(--spacing-4);
41
- right: var(--spacing-4);
42
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
43
+ right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
42
44
  }
43
45
 
44
46
  .muka-toast--top-left {
45
- top: var(--spacing-4);
46
- left: var(--spacing-4);
47
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
48
+ left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
47
49
  }
48
50
 
49
51
  .muka-toast--top-center {
50
- top: var(--spacing-4);
52
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
51
53
  left: 50%;
52
54
  transform: translateX(-50%);
53
55
  }
54
56
 
55
57
  .muka-toast--bottom-right {
56
- bottom: var(--spacing-4);
57
- right: var(--spacing-4);
58
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
59
+ right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
58
60
  }
59
61
 
60
62
  .muka-toast--bottom-left {
61
- bottom: var(--spacing-4);
62
- left: var(--spacing-4);
63
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
64
+ left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
63
65
  }
64
66
 
65
67
  .muka-toast--bottom-center {
66
- bottom: var(--spacing-4);
68
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
67
69
  left: 50%;
68
70
  transform: translateX(-50%);
69
71
  }
@@ -66,6 +66,18 @@
66
66
  /* Grow on short content so the sticky footer is pushed to the bottom rather
67
67
  than floating mid-screen. */
68
68
  flex: 1 0 auto;
69
+ /* Keep content clear of the notch in landscape (0 everywhere else). The
70
+ large tier below replaces this with its section padding. */
71
+ padding-left: env(safe-area-inset-left, 0px);
72
+ padding-right: env(safe-area-inset-right, 0px);
73
+ }
74
+
75
+ /* Home indicator: the body pads for it only when nothing inside does. A
76
+ BottomBar pads itself, whether it sits in the footer slot or in the content
77
+ (a chat composer pinned under a message list), so the body must not do it
78
+ twice; doing so left a strip of body colour under the bar. */
79
+ .muka-view__body:not(:has(.muka-view__footer, .muka-bottombar:not(.muka-bottombar--no-safe-area))) {
80
+ padding-bottom: env(safe-area-inset-bottom, 0px);
69
81
  }
70
82
 
71
83
  @media (min-width: 1024px) {
@@ -28,6 +28,8 @@ export { BottomBar, BottomBarTab } from './BottomBar';
28
28
  export { Dialog, DismissButton, useOverlayDismiss, DiscardConfirmationProvider, DIRECT_MANIPULATION_ATTR, } from './Dialog';
29
29
  export { View } from './View';
30
30
  export { AppShell } from './AppShell';
31
+ export { Page } from './Page';
32
+ export { SiteHeader } from './SiteHeader';
31
33
  export { NavigationTransition } from './NavigationTransition';
32
34
  export { Section } from './Section';
33
35
  export { Container } from './Container';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAsB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAmB,MAAM,SAAS,CAAC;AACjD,OAAO,EACL,IAAI,EAEJ,OAAO,GAMR,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,WAAW,EAAyB,MAAM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AiB,CAAC;AACzB,OAAO,EACL,eAAe,GAGhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,WAAW,EAEX,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,GAGd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAA6B,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EACL,kBAAkB,GAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,QAAQ,GAGT,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,YAAY,GAIb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,YAAY,GAGb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAA2B,MAAM,iBAAiB,CAAC;AACzE,OAAO,EACL,iBAAiB,GAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,GAMnB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAE,SAAS,EAAuB,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,WAAW,GAGZ,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,GAEd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAsB,MAAM,YAAY,CAAC"}
@@ -12,8 +12,11 @@
12
12
  position: relative;
13
13
  /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
14
14
  --app-shell-sidebar-width: 240px;
15
- /* Height of the optional top app bar. */
15
+ /* Height of the optional top app bar, without the status-bar inset. */
16
16
  --app-shell-appbar-height: 64px;
17
+ /* What the app bar actually takes from the top: its height plus the status
18
+ bar on a device with one (an iPad in an app shell); 0 inset elsewhere. */
19
+ --app-shell-appbar-offset: calc(var(--app-shell-appbar-height) + env(safe-area-inset-top, 0px));
17
20
  }
18
21
 
19
22
  /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
@@ -38,7 +41,10 @@
38
41
  top: 0;
39
42
  left: 0;
40
43
  right: 0;
41
- height: var(--app-shell-appbar-height);
44
+ /* Extends behind the status bar in its own colour; content starts below it. */
45
+ box-sizing: border-box;
46
+ height: var(--app-shell-appbar-offset);
47
+ padding-top: env(safe-area-inset-top, 0px);
42
48
  padding-inline: var(--spacing-4);
43
49
  background-color: var(--color-surface-level3);
44
50
  border-bottom: var(--border-width-regular) solid var(--color-border-default);
@@ -58,15 +64,15 @@
58
64
  }
59
65
  /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
60
66
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
61
- padding-top: var(--app-shell-appbar-height);
67
+ padding-top: var(--app-shell-appbar-offset);
62
68
  }
63
69
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
64
- top: var(--app-shell-appbar-height);
65
- height: calc(100vh - var(--app-shell-appbar-height));
70
+ top: var(--app-shell-appbar-offset);
71
+ height: calc(100vh - var(--app-shell-appbar-offset));
66
72
  }
67
73
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
68
74
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
69
- height: calc(100dvh - var(--app-shell-appbar-height));
75
+ height: calc(100dvh - var(--app-shell-appbar-offset));
70
76
  }
71
77
  }
72
78
 
@@ -81,13 +87,33 @@
81
87
  display: flex;
82
88
  }
83
89
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
84
- padding-top: var(--app-shell-appbar-height);
90
+ padding-top: var(--app-shell-appbar-offset);
85
91
  }
86
92
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
87
- top: var(--app-shell-appbar-height);
88
- height: calc(100vh - var(--app-shell-appbar-height));
93
+ top: var(--app-shell-appbar-offset);
94
+ height: calc(100vh - var(--app-shell-appbar-offset));
89
95
  }
90
96
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
91
97
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
92
- height: calc(100dvh - var(--app-shell-appbar-height));
98
+ height: calc(100dvh - var(--app-shell-appbar-offset));
99
+ }
100
+
101
+ /* ─── Below an app bar, the status bar is already covered ───
102
+ The app bar takes the top inset, so the View's TopBar and the sidebar rail
103
+ under it must not pad for the status bar a second time. */
104
+ @media (min-width: 1024px) {
105
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view .muka-topbar {
106
+ padding-top: 0;
107
+ }
108
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar .muka-bottombar__content {
109
+ padding-top: var(--spacing-4);
110
+ }
111
+ }
112
+
113
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view .muka-topbar {
114
+ padding-top: 0;
115
+ }
116
+
117
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar .muka-bottombar__content {
118
+ padding-top: var(--spacing-4);
93
119
  }
@@ -261,6 +261,8 @@
261
261
  flex-direction: column;
262
262
  align-items: stretch;
263
263
  padding: var(--spacing-4) var(--spacing-3);
264
+ /* The rail runs to the top of the screen: clear the status bar there. */
265
+ padding-top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
264
266
  gap: var(--spacing-1);
265
267
  }
266
268