@ngrok/mantle 0.86.3 → 0.88.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/agent.json +1 -1
- package/dist/alert-dialog.js +1 -1
- package/dist/app-layout.d.ts +412 -104
- package/dist/app-layout.js +1 -1
- package/dist/command.d.ts +30 -19
- package/dist/command.js +1 -1
- package/dist/description-list.d.ts +4 -0
- package/dist/description-list.js +1 -1
- package/dist/{dialog-D8Bb_pil.js → dialog-HIdb5d3I.js} +1 -1
- package/dist/dialog.js +1 -1
- package/dist/hooks.d.ts +36 -1
- package/dist/hooks.js +1 -1
- package/dist/llms.txt +1 -1
- package/dist/main-Dv2zuT_b.js +1 -0
- package/dist/main.d.ts +8 -12
- package/dist/main.js +1 -1
- package/dist/mantle.css +9 -20
- package/dist/primitive-w3wFk2La.js +1 -0
- package/dist/sheet-B5x8EO9Y.js +1 -0
- package/dist/sheet.d.ts +213 -4
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +64 -64
- package/dist/sidebar.js +1 -1
- package/dist/tabs.d.ts +172 -33
- package/dist/tabs.js +1 -1
- package/dist/use-is-hydrated-after-paint-Drj0lNi4.js +1 -0
- package/package.json +2 -2
- package/dist/primitive-vXDjYdbu.js +0 -1
- package/dist/sheet-CIgu6vwS.js +0 -1
- package/dist/use-breakpoint-CjyNk0fi.js +0 -1
package/dist/app-layout.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ import { ComponentProps } from "react";
|
|
|
20
20
|
* container at all.
|
|
21
21
|
*
|
|
22
22
|
* When the shell owns the document, render a `SkipToMainLink` as its first
|
|
23
|
-
* child
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* child. `AppLayout.Body` is the `Main` landmark, so the link sends keyboard
|
|
24
|
+
* users past the sidebar and the toolbar straight into the scrolling page
|
|
25
|
+
* region.
|
|
26
26
|
*
|
|
27
27
|
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutroot
|
|
28
28
|
*
|
|
@@ -36,13 +36,18 @@ import { ComponentProps } from "react";
|
|
|
36
36
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
37
37
|
* <AppLayout.Content>
|
|
38
38
|
* <AppLayout.Header>
|
|
39
|
-
* <
|
|
40
|
-
*
|
|
39
|
+
* <AppLayout.HeaderStart>
|
|
40
|
+
* <Sidebar.Trigger />
|
|
41
|
+
* </AppLayout.HeaderStart>
|
|
42
|
+
* <AppLayout.HeaderContent>
|
|
43
|
+
* <Breadcrumbs />
|
|
44
|
+
* </AppLayout.HeaderContent>
|
|
45
|
+
* <AppLayout.HeaderActions>
|
|
46
|
+
* <PageActions />
|
|
47
|
+
* </AppLayout.HeaderActions>
|
|
41
48
|
* </AppLayout.Header>
|
|
42
|
-
* <AppLayout.Body
|
|
43
|
-
* <
|
|
44
|
-
* <Outlet />
|
|
45
|
-
* </Main>
|
|
49
|
+
* <AppLayout.Body>
|
|
50
|
+
* <Outlet />
|
|
46
51
|
* </AppLayout.Body>
|
|
47
52
|
* </AppLayout.Content>
|
|
48
53
|
* </AppLayout.Workspace>
|
|
@@ -80,13 +85,18 @@ declare const Root: ({ asChild, children, className, "data-slot": dataSlot, ...p
|
|
|
80
85
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
81
86
|
* <AppLayout.Content>
|
|
82
87
|
* <AppLayout.Header>
|
|
83
|
-
* <
|
|
84
|
-
*
|
|
88
|
+
* <AppLayout.HeaderStart>
|
|
89
|
+
* <Sidebar.Trigger />
|
|
90
|
+
* </AppLayout.HeaderStart>
|
|
91
|
+
* <AppLayout.HeaderContent>
|
|
92
|
+
* <Breadcrumbs />
|
|
93
|
+
* </AppLayout.HeaderContent>
|
|
94
|
+
* <AppLayout.HeaderActions>
|
|
95
|
+
* <PageActions />
|
|
96
|
+
* </AppLayout.HeaderActions>
|
|
85
97
|
* </AppLayout.Header>
|
|
86
|
-
* <AppLayout.Body
|
|
87
|
-
* <
|
|
88
|
-
* <Outlet />
|
|
89
|
-
* </Main>
|
|
98
|
+
* <AppLayout.Body>
|
|
99
|
+
* <Outlet />
|
|
90
100
|
* </AppLayout.Body>
|
|
91
101
|
* </AppLayout.Content>
|
|
92
102
|
* </AppLayout.Workspace>
|
|
@@ -118,13 +128,18 @@ declare const Notice: ({ asChild, children, className, "data-slot": dataSlot, ..
|
|
|
118
128
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
119
129
|
* <AppLayout.Content>
|
|
120
130
|
* <AppLayout.Header>
|
|
121
|
-
* <
|
|
122
|
-
*
|
|
131
|
+
* <AppLayout.HeaderStart>
|
|
132
|
+
* <Sidebar.Trigger />
|
|
133
|
+
* </AppLayout.HeaderStart>
|
|
134
|
+
* <AppLayout.HeaderContent>
|
|
135
|
+
* <Breadcrumbs />
|
|
136
|
+
* </AppLayout.HeaderContent>
|
|
137
|
+
* <AppLayout.HeaderActions>
|
|
138
|
+
* <PageActions />
|
|
139
|
+
* </AppLayout.HeaderActions>
|
|
123
140
|
* </AppLayout.Header>
|
|
124
|
-
* <AppLayout.Body
|
|
125
|
-
* <
|
|
126
|
-
* <Outlet />
|
|
127
|
-
* </Main>
|
|
141
|
+
* <AppLayout.Body>
|
|
142
|
+
* <Outlet />
|
|
128
143
|
* </AppLayout.Body>
|
|
129
144
|
* </AppLayout.Content>
|
|
130
145
|
* </AppLayout.Workspace>
|
|
@@ -171,13 +186,18 @@ declare const Workspace: ({ asChild, children, className, "data-slot": dataSlot,
|
|
|
171
186
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
172
187
|
* <AppLayout.Content>
|
|
173
188
|
* <AppLayout.Header>
|
|
174
|
-
* <
|
|
175
|
-
*
|
|
189
|
+
* <AppLayout.HeaderStart>
|
|
190
|
+
* <Sidebar.Trigger />
|
|
191
|
+
* </AppLayout.HeaderStart>
|
|
192
|
+
* <AppLayout.HeaderContent>
|
|
193
|
+
* <Breadcrumbs />
|
|
194
|
+
* </AppLayout.HeaderContent>
|
|
195
|
+
* <AppLayout.HeaderActions>
|
|
196
|
+
* <PageActions />
|
|
197
|
+
* </AppLayout.HeaderActions>
|
|
176
198
|
* </AppLayout.Header>
|
|
177
|
-
* <AppLayout.Body
|
|
178
|
-
* <
|
|
179
|
-
* <Outlet />
|
|
180
|
-
* </Main>
|
|
199
|
+
* <AppLayout.Body>
|
|
200
|
+
* <Outlet />
|
|
181
201
|
* </AppLayout.Body>
|
|
182
202
|
* </AppLayout.Content>
|
|
183
203
|
* </AppLayout.Workspace>
|
|
@@ -187,10 +207,13 @@ declare const Workspace: ({ asChild, children, className, "data-slot": dataSlot,
|
|
|
187
207
|
*/
|
|
188
208
|
declare const Content: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
189
209
|
/**
|
|
190
|
-
* The toolbar row at the top of the content card
|
|
191
|
-
* child of `AppLayout.Content
|
|
192
|
-
*
|
|
193
|
-
*
|
|
210
|
+
* The toolbar row at the top of the content card. Render it as the **first
|
|
211
|
+
* child of `AppLayout.Content`**, and compose its three slots in order:
|
|
212
|
+
* `AppLayout.HeaderStart` for the `Sidebar.Trigger`, `AppLayout.HeaderContent`
|
|
213
|
+
* for the `Breadcrumb` trail, and `AppLayout.HeaderActions` for the page's
|
|
214
|
+
* actions. The slots carry the flex (`shrink-0`, `min-w-0 flex-1`, and
|
|
215
|
+
* `ml-auto shrink-0`), so no call site sets it. The row's `gap-2` spaces the
|
|
216
|
+
* three slots, and each slot repeats it between its own children.
|
|
194
217
|
*
|
|
195
218
|
* It is pinned by construction, not by `sticky`: as a `shrink-0` flex sibling
|
|
196
219
|
* *outside* the scrolling `AppLayout.Body`, it cannot scroll away, cannot be
|
|
@@ -198,9 +221,9 @@ declare const Content: ({ asChild, children, className, "data-slot": dataSlot, .
|
|
|
198
221
|
* when the page scrolls horizontally. It also no longer steals height from a
|
|
199
222
|
* page that asks for `h-full`.
|
|
200
223
|
*
|
|
201
|
-
* Renders a `<div>`, not a `<header>`: the `
|
|
202
|
-
*
|
|
203
|
-
* would
|
|
224
|
+
* Renders a `<div>`, not a `<header>`: `AppLayout.Body` is the `main` landmark
|
|
225
|
+
* and this row is its sibling, so a `<header>` here would have no sectioning
|
|
226
|
+
* ancestor and would become the ARIA `banner` landmark, which a card toolbar is
|
|
204
227
|
* not. Compose your own element with `asChild` if you need one.
|
|
205
228
|
*
|
|
206
229
|
* **Sidebar alignment is an invariant, not a coincidence:** standalone, the
|
|
@@ -233,13 +256,18 @@ declare const Content: ({ asChild, children, className, "data-slot": dataSlot, .
|
|
|
233
256
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
234
257
|
* <AppLayout.Content>
|
|
235
258
|
* <AppLayout.Header>
|
|
236
|
-
* <
|
|
237
|
-
*
|
|
259
|
+
* <AppLayout.HeaderStart>
|
|
260
|
+
* <Sidebar.Trigger />
|
|
261
|
+
* </AppLayout.HeaderStart>
|
|
262
|
+
* <AppLayout.HeaderContent>
|
|
263
|
+
* <Breadcrumbs />
|
|
264
|
+
* </AppLayout.HeaderContent>
|
|
265
|
+
* <AppLayout.HeaderActions>
|
|
266
|
+
* <PageActions />
|
|
267
|
+
* </AppLayout.HeaderActions>
|
|
238
268
|
* </AppLayout.Header>
|
|
239
|
-
* <AppLayout.Body
|
|
240
|
-
* <
|
|
241
|
-
* <Outlet />
|
|
242
|
-
* </Main>
|
|
269
|
+
* <AppLayout.Body>
|
|
270
|
+
* <Outlet />
|
|
243
271
|
* </AppLayout.Body>
|
|
244
272
|
* </AppLayout.Content>
|
|
245
273
|
* </AppLayout.Workspace>
|
|
@@ -248,24 +276,152 @@ declare const Content: ({ asChild, children, className, "data-slot": dataSlot, .
|
|
|
248
276
|
* ```
|
|
249
277
|
*/
|
|
250
278
|
declare const Header: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
279
|
+
/**
|
|
280
|
+
* The leading slot of `AppLayout.Header`: the home of `Sidebar.Trigger`, or of
|
|
281
|
+
* the control that opens the row in a shell with no sidebar. Renders a `<div>`
|
|
282
|
+
* that is `shrink-0`, so it takes only the width its children need and keeps
|
|
283
|
+
* the row's start while `AppLayout.HeaderContent` gives up width beside it. It
|
|
284
|
+
* is a flex row with the header's own `gap-2`, so a second control sits beside
|
|
285
|
+
* the first at the same spacing.
|
|
286
|
+
*
|
|
287
|
+
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheaderstart
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* ```tsx
|
|
291
|
+
* <Sidebar.Root>
|
|
292
|
+
* <AppLayout.Root className="fixed inset-0">
|
|
293
|
+
* <SkipToMainLink />
|
|
294
|
+
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
295
|
+
* <AppLayout.Workspace>
|
|
296
|
+
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
297
|
+
* <AppLayout.Content>
|
|
298
|
+
* <AppLayout.Header>
|
|
299
|
+
* <AppLayout.HeaderStart>
|
|
300
|
+
* <Sidebar.Trigger />
|
|
301
|
+
* </AppLayout.HeaderStart>
|
|
302
|
+
* <AppLayout.HeaderContent>
|
|
303
|
+
* <Breadcrumbs />
|
|
304
|
+
* </AppLayout.HeaderContent>
|
|
305
|
+
* <AppLayout.HeaderActions>
|
|
306
|
+
* <PageActions />
|
|
307
|
+
* </AppLayout.HeaderActions>
|
|
308
|
+
* </AppLayout.Header>
|
|
309
|
+
* <AppLayout.Body>
|
|
310
|
+
* <Outlet />
|
|
311
|
+
* </AppLayout.Body>
|
|
312
|
+
* </AppLayout.Content>
|
|
313
|
+
* </AppLayout.Workspace>
|
|
314
|
+
* </AppLayout.Root>
|
|
315
|
+
* </Sidebar.Root>
|
|
316
|
+
* ```
|
|
317
|
+
*/
|
|
318
|
+
declare const HeaderStart: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
319
|
+
/**
|
|
320
|
+
* The slot that fills `AppLayout.Header`: the home of the `Breadcrumb` trail,
|
|
321
|
+
* or of a page title in a shell with no trail. Renders a `<div>` that is
|
|
322
|
+
* `min-w-0 flex-1`, so it takes every pixel `AppLayout.HeaderStart` and
|
|
323
|
+
* `AppLayout.HeaderActions` leave, and it gives width back before either of
|
|
324
|
+
* them does. The `min-w-0` is what lets a `Breadcrumb.List` inside it scroll
|
|
325
|
+
* sideways instead of pushing the actions off the card. It is a flex row with
|
|
326
|
+
* the header's own `gap-2`.
|
|
327
|
+
*
|
|
328
|
+
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheadercontent
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* ```tsx
|
|
332
|
+
* <Sidebar.Root>
|
|
333
|
+
* <AppLayout.Root className="fixed inset-0">
|
|
334
|
+
* <SkipToMainLink />
|
|
335
|
+
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
336
|
+
* <AppLayout.Workspace>
|
|
337
|
+
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
338
|
+
* <AppLayout.Content>
|
|
339
|
+
* <AppLayout.Header>
|
|
340
|
+
* <AppLayout.HeaderStart>
|
|
341
|
+
* <Sidebar.Trigger />
|
|
342
|
+
* </AppLayout.HeaderStart>
|
|
343
|
+
* <AppLayout.HeaderContent>
|
|
344
|
+
* <Breadcrumbs />
|
|
345
|
+
* </AppLayout.HeaderContent>
|
|
346
|
+
* <AppLayout.HeaderActions>
|
|
347
|
+
* <PageActions />
|
|
348
|
+
* </AppLayout.HeaderActions>
|
|
349
|
+
* </AppLayout.Header>
|
|
350
|
+
* <AppLayout.Body>
|
|
351
|
+
* <Outlet />
|
|
352
|
+
* </AppLayout.Body>
|
|
353
|
+
* </AppLayout.Content>
|
|
354
|
+
* </AppLayout.Workspace>
|
|
355
|
+
* </AppLayout.Root>
|
|
356
|
+
* </Sidebar.Root>
|
|
357
|
+
* ```
|
|
358
|
+
*/
|
|
359
|
+
declare const HeaderContent: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
360
|
+
/**
|
|
361
|
+
* The trailing slot of `AppLayout.Header`: the page's actions, aligned to the
|
|
362
|
+
* row's end. Renders a `<div>` that is `ml-auto shrink-0`, so it takes only the
|
|
363
|
+
* width its children need, grows to the left as actions are added, and stays at
|
|
364
|
+
* the end even when the header renders no `AppLayout.HeaderContent`. It is a
|
|
365
|
+
* flex row with the header's own `gap-2`.
|
|
366
|
+
*
|
|
367
|
+
* Keep it to three actions or fewer, and collapse them into one `DropdownMenu`
|
|
368
|
+
* behind a single `IconButton` below the sidebar's mobile breakpoint; the docs
|
|
369
|
+
* show the shape. Which actions render is the route's decision: derive them
|
|
370
|
+
* from the matched route chain, the way the breadcrumb trail is derived, and
|
|
371
|
+
* never from a context a page writes into from an effect.
|
|
372
|
+
*
|
|
373
|
+
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheaderactions
|
|
374
|
+
*
|
|
375
|
+
* @example
|
|
376
|
+
* ```tsx
|
|
377
|
+
* <Sidebar.Root>
|
|
378
|
+
* <AppLayout.Root className="fixed inset-0">
|
|
379
|
+
* <SkipToMainLink />
|
|
380
|
+
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
381
|
+
* <AppLayout.Workspace>
|
|
382
|
+
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
383
|
+
* <AppLayout.Content>
|
|
384
|
+
* <AppLayout.Header>
|
|
385
|
+
* <AppLayout.HeaderStart>
|
|
386
|
+
* <Sidebar.Trigger />
|
|
387
|
+
* </AppLayout.HeaderStart>
|
|
388
|
+
* <AppLayout.HeaderContent>
|
|
389
|
+
* <Breadcrumbs />
|
|
390
|
+
* </AppLayout.HeaderContent>
|
|
391
|
+
* <AppLayout.HeaderActions>
|
|
392
|
+
* <PageActions />
|
|
393
|
+
* </AppLayout.HeaderActions>
|
|
394
|
+
* </AppLayout.Header>
|
|
395
|
+
* <AppLayout.Body>
|
|
396
|
+
* <Outlet />
|
|
397
|
+
* </AppLayout.Body>
|
|
398
|
+
* </AppLayout.Content>
|
|
399
|
+
* </AppLayout.Workspace>
|
|
400
|
+
* </AppLayout.Root>
|
|
401
|
+
* </Sidebar.Root>
|
|
402
|
+
* ```
|
|
403
|
+
*/
|
|
404
|
+
declare const HeaderActions: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
251
405
|
/**
|
|
252
406
|
* The page region of the content card, and the shell's **only** scroll
|
|
253
407
|
* container (`overflow-y-auto overscroll-none`) — the page body never scrolls
|
|
254
408
|
* and scroll never bounces the shell. Render it after `AppLayout.Header` inside
|
|
255
409
|
* `AppLayout.Content`.
|
|
256
410
|
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
* of `AppLayout.Root
|
|
260
|
-
* `
|
|
261
|
-
* the
|
|
262
|
-
*
|
|
263
|
-
* the
|
|
264
|
-
* `<div>` default exists for embedded usage (docs demos, tests) where the
|
|
265
|
-
* surrounding document already owns the Main landmark.
|
|
411
|
+
* It renders mantle's `Main` landmark: `<main id="main" tabIndex={-1}>` with
|
|
412
|
+
* `data-slot="app-layout-body main"`. Pair it with a `SkipToMainLink` as the
|
|
413
|
+
* first child of `AppLayout.Root`; the link's default `targetId` matches
|
|
414
|
+
* `Main`'s `id`. The focused landmark **is** the scroll container, so arrows,
|
|
415
|
+
* `Space`, and `PageDown` scroll the page as soon as the jump lands, and the
|
|
416
|
+
* skip clears the sidebar *and* the toolbar. `id` and `tabIndex` are not props,
|
|
417
|
+
* for the same reason they are not props on `Main`.
|
|
266
418
|
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
419
|
+
* When the surrounding document already owns the `main` landmark (a docs demo,
|
|
420
|
+
* a test, a shell embedded in a page), pass `asChild` and render a plain
|
|
421
|
+
* `<div>`. The part then adds its classes and its `data-slot` to your element
|
|
422
|
+
* and no landmark.
|
|
423
|
+
*
|
|
424
|
+
* It is a flex **item** that is **block inside**, and each half does a job:
|
|
269
425
|
*
|
|
270
426
|
* - `min-h-0 flex-1` gives it a definite height, so a page that asks for
|
|
271
427
|
* `h-full` fills exactly the card interior instead of overflowing it by the
|
|
@@ -298,13 +454,18 @@ declare const Header: ({ asChild, children, className, "data-slot": dataSlot, ..
|
|
|
298
454
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
299
455
|
* <AppLayout.Content>
|
|
300
456
|
* <AppLayout.Header>
|
|
301
|
-
* <
|
|
302
|
-
*
|
|
457
|
+
* <AppLayout.HeaderStart>
|
|
458
|
+
* <Sidebar.Trigger />
|
|
459
|
+
* </AppLayout.HeaderStart>
|
|
460
|
+
* <AppLayout.HeaderContent>
|
|
461
|
+
* <Breadcrumbs />
|
|
462
|
+
* </AppLayout.HeaderContent>
|
|
463
|
+
* <AppLayout.HeaderActions>
|
|
464
|
+
* <PageActions />
|
|
465
|
+
* </AppLayout.HeaderActions>
|
|
303
466
|
* </AppLayout.Header>
|
|
304
|
-
* <AppLayout.Body
|
|
305
|
-
* <
|
|
306
|
-
* <Outlet />
|
|
307
|
-
* </Main>
|
|
467
|
+
* <AppLayout.Body>
|
|
468
|
+
* <Outlet />
|
|
308
469
|
* </AppLayout.Body>
|
|
309
470
|
* </AppLayout.Content>
|
|
310
471
|
* </AppLayout.Workspace>
|
|
@@ -312,7 +473,7 @@ declare const Header: ({ asChild, children, className, "data-slot": dataSlot, ..
|
|
|
312
473
|
* </Sidebar.Root>
|
|
313
474
|
* ```
|
|
314
475
|
*/
|
|
315
|
-
declare const Body: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"
|
|
476
|
+
declare const Body: ({ asChild, children, className, "data-slot": dataSlot, ...props }: Omit<ComponentProps<"main">, "id" | "tabIndex"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
316
477
|
/**
|
|
317
478
|
* A viewport-locked application shell: an optional full-width
|
|
318
479
|
* `AppLayout.Notice` strip on top, then an `AppLayout.Workspace` row holding the
|
|
@@ -345,6 +506,9 @@ declare const Body: ({ asChild, children, className, "data-slot": dataSlot, ...p
|
|
|
345
506
|
* └── AppLayout.Workspace
|
|
346
507
|
* └── AppLayout.Content
|
|
347
508
|
* ├── AppLayout.Header
|
|
509
|
+
* │ ├── AppLayout.HeaderStart
|
|
510
|
+
* │ ├── AppLayout.HeaderContent
|
|
511
|
+
* │ └── AppLayout.HeaderActions
|
|
348
512
|
* └── AppLayout.Body
|
|
349
513
|
* ```
|
|
350
514
|
*
|
|
@@ -358,13 +522,18 @@ declare const Body: ({ asChild, children, className, "data-slot": dataSlot, ...p
|
|
|
358
522
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
359
523
|
* <AppLayout.Content>
|
|
360
524
|
* <AppLayout.Header>
|
|
361
|
-
* <
|
|
362
|
-
*
|
|
525
|
+
* <AppLayout.HeaderStart>
|
|
526
|
+
* <Sidebar.Trigger />
|
|
527
|
+
* </AppLayout.HeaderStart>
|
|
528
|
+
* <AppLayout.HeaderContent>
|
|
529
|
+
* <Breadcrumbs />
|
|
530
|
+
* </AppLayout.HeaderContent>
|
|
531
|
+
* <AppLayout.HeaderActions>
|
|
532
|
+
* <PageActions />
|
|
533
|
+
* </AppLayout.HeaderActions>
|
|
363
534
|
* </AppLayout.Header>
|
|
364
|
-
* <AppLayout.Body
|
|
365
|
-
* <
|
|
366
|
-
* <Outlet />
|
|
367
|
-
* </Main>
|
|
535
|
+
* <AppLayout.Body>
|
|
536
|
+
* <Outlet />
|
|
368
537
|
* </AppLayout.Body>
|
|
369
538
|
* </AppLayout.Content>
|
|
370
539
|
* </AppLayout.Workspace>
|
|
@@ -389,13 +558,18 @@ declare const AppLayout: {
|
|
|
389
558
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
390
559
|
* <AppLayout.Content>
|
|
391
560
|
* <AppLayout.Header>
|
|
392
|
-
* <
|
|
393
|
-
*
|
|
561
|
+
* <AppLayout.HeaderStart>
|
|
562
|
+
* <Sidebar.Trigger />
|
|
563
|
+
* </AppLayout.HeaderStart>
|
|
564
|
+
* <AppLayout.HeaderContent>
|
|
565
|
+
* <Breadcrumbs />
|
|
566
|
+
* </AppLayout.HeaderContent>
|
|
567
|
+
* <AppLayout.HeaderActions>
|
|
568
|
+
* <PageActions />
|
|
569
|
+
* </AppLayout.HeaderActions>
|
|
394
570
|
* </AppLayout.Header>
|
|
395
|
-
* <AppLayout.Body
|
|
396
|
-
* <
|
|
397
|
-
* <Outlet />
|
|
398
|
-
* </Main>
|
|
571
|
+
* <AppLayout.Body>
|
|
572
|
+
* <Outlet />
|
|
399
573
|
* </AppLayout.Body>
|
|
400
574
|
* </AppLayout.Content>
|
|
401
575
|
* </AppLayout.Workspace>
|
|
@@ -420,13 +594,18 @@ declare const AppLayout: {
|
|
|
420
594
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
421
595
|
* <AppLayout.Content>
|
|
422
596
|
* <AppLayout.Header>
|
|
423
|
-
* <
|
|
424
|
-
*
|
|
597
|
+
* <AppLayout.HeaderStart>
|
|
598
|
+
* <Sidebar.Trigger />
|
|
599
|
+
* </AppLayout.HeaderStart>
|
|
600
|
+
* <AppLayout.HeaderContent>
|
|
601
|
+
* <Breadcrumbs />
|
|
602
|
+
* </AppLayout.HeaderContent>
|
|
603
|
+
* <AppLayout.HeaderActions>
|
|
604
|
+
* <PageActions />
|
|
605
|
+
* </AppLayout.HeaderActions>
|
|
425
606
|
* </AppLayout.Header>
|
|
426
|
-
* <AppLayout.Body
|
|
427
|
-
* <
|
|
428
|
-
* <Outlet />
|
|
429
|
-
* </Main>
|
|
607
|
+
* <AppLayout.Body>
|
|
608
|
+
* <Outlet />
|
|
430
609
|
* </AppLayout.Body>
|
|
431
610
|
* </AppLayout.Content>
|
|
432
611
|
* </AppLayout.Workspace>
|
|
@@ -451,13 +630,18 @@ declare const AppLayout: {
|
|
|
451
630
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
452
631
|
* <AppLayout.Content>
|
|
453
632
|
* <AppLayout.Header>
|
|
454
|
-
* <
|
|
455
|
-
*
|
|
633
|
+
* <AppLayout.HeaderStart>
|
|
634
|
+
* <Sidebar.Trigger />
|
|
635
|
+
* </AppLayout.HeaderStart>
|
|
636
|
+
* <AppLayout.HeaderContent>
|
|
637
|
+
* <Breadcrumbs />
|
|
638
|
+
* </AppLayout.HeaderContent>
|
|
639
|
+
* <AppLayout.HeaderActions>
|
|
640
|
+
* <PageActions />
|
|
641
|
+
* </AppLayout.HeaderActions>
|
|
456
642
|
* </AppLayout.Header>
|
|
457
|
-
* <AppLayout.Body
|
|
458
|
-
* <
|
|
459
|
-
* <Outlet />
|
|
460
|
-
* </Main>
|
|
643
|
+
* <AppLayout.Body>
|
|
644
|
+
* <Outlet />
|
|
461
645
|
* </AppLayout.Body>
|
|
462
646
|
* </AppLayout.Content>
|
|
463
647
|
* </AppLayout.Workspace>
|
|
@@ -483,13 +667,18 @@ declare const AppLayout: {
|
|
|
483
667
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
484
668
|
* <AppLayout.Content>
|
|
485
669
|
* <AppLayout.Header>
|
|
486
|
-
* <
|
|
487
|
-
*
|
|
670
|
+
* <AppLayout.HeaderStart>
|
|
671
|
+
* <Sidebar.Trigger />
|
|
672
|
+
* </AppLayout.HeaderStart>
|
|
673
|
+
* <AppLayout.HeaderContent>
|
|
674
|
+
* <Breadcrumbs />
|
|
675
|
+
* </AppLayout.HeaderContent>
|
|
676
|
+
* <AppLayout.HeaderActions>
|
|
677
|
+
* <PageActions />
|
|
678
|
+
* </AppLayout.HeaderActions>
|
|
488
679
|
* </AppLayout.Header>
|
|
489
|
-
* <AppLayout.Body
|
|
490
|
-
* <
|
|
491
|
-
* <Outlet />
|
|
492
|
-
* </Main>
|
|
680
|
+
* <AppLayout.Body>
|
|
681
|
+
* <Outlet />
|
|
493
682
|
* </AppLayout.Body>
|
|
494
683
|
* </AppLayout.Content>
|
|
495
684
|
* </AppLayout.Workspace>
|
|
@@ -515,13 +704,18 @@ declare const AppLayout: {
|
|
|
515
704
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
516
705
|
* <AppLayout.Content>
|
|
517
706
|
* <AppLayout.Header>
|
|
518
|
-
* <
|
|
519
|
-
*
|
|
707
|
+
* <AppLayout.HeaderStart>
|
|
708
|
+
* <Sidebar.Trigger />
|
|
709
|
+
* </AppLayout.HeaderStart>
|
|
710
|
+
* <AppLayout.HeaderContent>
|
|
711
|
+
* <Breadcrumbs />
|
|
712
|
+
* </AppLayout.HeaderContent>
|
|
713
|
+
* <AppLayout.HeaderActions>
|
|
714
|
+
* <PageActions />
|
|
715
|
+
* </AppLayout.HeaderActions>
|
|
520
716
|
* </AppLayout.Header>
|
|
521
|
-
* <AppLayout.Body
|
|
522
|
-
* <
|
|
523
|
-
* <Outlet />
|
|
524
|
-
* </Main>
|
|
717
|
+
* <AppLayout.Body>
|
|
718
|
+
* <Outlet />
|
|
525
719
|
* </AppLayout.Body>
|
|
526
720
|
* </AppLayout.Content>
|
|
527
721
|
* </AppLayout.Workspace>
|
|
@@ -531,10 +725,119 @@ declare const AppLayout: {
|
|
|
531
725
|
*/
|
|
532
726
|
readonly Header: typeof Header;
|
|
533
727
|
/**
|
|
534
|
-
* The
|
|
535
|
-
*
|
|
536
|
-
*
|
|
537
|
-
*
|
|
728
|
+
* The header's leading slot, `shrink-0`: the home of `Sidebar.Trigger`.
|
|
729
|
+
*
|
|
730
|
+
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheaderstart
|
|
731
|
+
*
|
|
732
|
+
* @example
|
|
733
|
+
* ```tsx
|
|
734
|
+
* <Sidebar.Root>
|
|
735
|
+
* <AppLayout.Root className="fixed inset-0">
|
|
736
|
+
* <SkipToMainLink />
|
|
737
|
+
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
738
|
+
* <AppLayout.Workspace>
|
|
739
|
+
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
740
|
+
* <AppLayout.Content>
|
|
741
|
+
* <AppLayout.Header>
|
|
742
|
+
* <AppLayout.HeaderStart>
|
|
743
|
+
* <Sidebar.Trigger />
|
|
744
|
+
* </AppLayout.HeaderStart>
|
|
745
|
+
* <AppLayout.HeaderContent>
|
|
746
|
+
* <Breadcrumbs />
|
|
747
|
+
* </AppLayout.HeaderContent>
|
|
748
|
+
* <AppLayout.HeaderActions>
|
|
749
|
+
* <PageActions />
|
|
750
|
+
* </AppLayout.HeaderActions>
|
|
751
|
+
* </AppLayout.Header>
|
|
752
|
+
* <AppLayout.Body>
|
|
753
|
+
* <Outlet />
|
|
754
|
+
* </AppLayout.Body>
|
|
755
|
+
* </AppLayout.Content>
|
|
756
|
+
* </AppLayout.Workspace>
|
|
757
|
+
* </AppLayout.Root>
|
|
758
|
+
* </Sidebar.Root>
|
|
759
|
+
* ```
|
|
760
|
+
*/
|
|
761
|
+
readonly HeaderStart: typeof HeaderStart;
|
|
762
|
+
/**
|
|
763
|
+
* The header's filling slot, `min-w-0 flex-1`: the home of the
|
|
764
|
+
* `Breadcrumb` trail, whose list scrolls instead of pushing the actions
|
|
765
|
+
* off the card.
|
|
766
|
+
*
|
|
767
|
+
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheadercontent
|
|
768
|
+
*
|
|
769
|
+
* @example
|
|
770
|
+
* ```tsx
|
|
771
|
+
* <Sidebar.Root>
|
|
772
|
+
* <AppLayout.Root className="fixed inset-0">
|
|
773
|
+
* <SkipToMainLink />
|
|
774
|
+
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
775
|
+
* <AppLayout.Workspace>
|
|
776
|
+
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
777
|
+
* <AppLayout.Content>
|
|
778
|
+
* <AppLayout.Header>
|
|
779
|
+
* <AppLayout.HeaderStart>
|
|
780
|
+
* <Sidebar.Trigger />
|
|
781
|
+
* </AppLayout.HeaderStart>
|
|
782
|
+
* <AppLayout.HeaderContent>
|
|
783
|
+
* <Breadcrumbs />
|
|
784
|
+
* </AppLayout.HeaderContent>
|
|
785
|
+
* <AppLayout.HeaderActions>
|
|
786
|
+
* <PageActions />
|
|
787
|
+
* </AppLayout.HeaderActions>
|
|
788
|
+
* </AppLayout.Header>
|
|
789
|
+
* <AppLayout.Body>
|
|
790
|
+
* <Outlet />
|
|
791
|
+
* </AppLayout.Body>
|
|
792
|
+
* </AppLayout.Content>
|
|
793
|
+
* </AppLayout.Workspace>
|
|
794
|
+
* </AppLayout.Root>
|
|
795
|
+
* </Sidebar.Root>
|
|
796
|
+
* ```
|
|
797
|
+
*/
|
|
798
|
+
readonly HeaderContent: typeof HeaderContent;
|
|
799
|
+
/**
|
|
800
|
+
* The header's trailing slot, `ml-auto shrink-0`: the page's actions,
|
|
801
|
+
* aligned to the row's end. Three or fewer; collapse them into one
|
|
802
|
+
* `DropdownMenu` below the mobile breakpoint.
|
|
803
|
+
*
|
|
804
|
+
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheaderactions
|
|
805
|
+
*
|
|
806
|
+
* @example
|
|
807
|
+
* ```tsx
|
|
808
|
+
* <Sidebar.Root>
|
|
809
|
+
* <AppLayout.Root className="fixed inset-0">
|
|
810
|
+
* <SkipToMainLink />
|
|
811
|
+
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
812
|
+
* <AppLayout.Workspace>
|
|
813
|
+
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
814
|
+
* <AppLayout.Content>
|
|
815
|
+
* <AppLayout.Header>
|
|
816
|
+
* <AppLayout.HeaderStart>
|
|
817
|
+
* <Sidebar.Trigger />
|
|
818
|
+
* </AppLayout.HeaderStart>
|
|
819
|
+
* <AppLayout.HeaderContent>
|
|
820
|
+
* <Breadcrumbs />
|
|
821
|
+
* </AppLayout.HeaderContent>
|
|
822
|
+
* <AppLayout.HeaderActions>
|
|
823
|
+
* <PageActions />
|
|
824
|
+
* </AppLayout.HeaderActions>
|
|
825
|
+
* </AppLayout.Header>
|
|
826
|
+
* <AppLayout.Body>
|
|
827
|
+
* <Outlet />
|
|
828
|
+
* </AppLayout.Body>
|
|
829
|
+
* </AppLayout.Content>
|
|
830
|
+
* </AppLayout.Workspace>
|
|
831
|
+
* </AppLayout.Root>
|
|
832
|
+
* </Sidebar.Root>
|
|
833
|
+
* ```
|
|
834
|
+
*/
|
|
835
|
+
readonly HeaderActions: typeof HeaderActions;
|
|
836
|
+
/**
|
|
837
|
+
* The page region and the shell's only scroll container, rendered as the
|
|
838
|
+
* `Main` landmark. A flex item that is block inside, so `h-full` pages fit the
|
|
839
|
+
* card and `mx-auto max-w-7xl` pages still center. Pass `asChild` with a
|
|
840
|
+
* `<div>` when the document already owns a `main`.
|
|
538
841
|
*
|
|
539
842
|
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutbody
|
|
540
843
|
*
|
|
@@ -548,13 +851,18 @@ declare const AppLayout: {
|
|
|
548
851
|
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
549
852
|
* <AppLayout.Content>
|
|
550
853
|
* <AppLayout.Header>
|
|
551
|
-
* <
|
|
552
|
-
*
|
|
854
|
+
* <AppLayout.HeaderStart>
|
|
855
|
+
* <Sidebar.Trigger />
|
|
856
|
+
* </AppLayout.HeaderStart>
|
|
857
|
+
* <AppLayout.HeaderContent>
|
|
858
|
+
* <Breadcrumbs />
|
|
859
|
+
* </AppLayout.HeaderContent>
|
|
860
|
+
* <AppLayout.HeaderActions>
|
|
861
|
+
* <PageActions />
|
|
862
|
+
* </AppLayout.HeaderActions>
|
|
553
863
|
* </AppLayout.Header>
|
|
554
|
-
* <AppLayout.Body
|
|
555
|
-
* <
|
|
556
|
-
* <Outlet />
|
|
557
|
-
* </Main>
|
|
864
|
+
* <AppLayout.Body>
|
|
865
|
+
* <Outlet />
|
|
558
866
|
* </AppLayout.Body>
|
|
559
867
|
* </AppLayout.Content>
|
|
560
868
|
* </AppLayout.Workspace>
|