@stealthscale/component-screen 0.0.0-stage → 0.0.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.
@@ -0,0 +1,2412 @@
1
+ import { ButtonProps, IconButtonProps } from "@stealthscale/component-actions";
2
+ import { RecipeProps } from "@stealthscale/theme/authoring";
3
+ import { PresenceOptions } from "@stealthscale/hooks";
4
+ import { RovingFocus } from "@stealthscale/component-a11y";
5
+ import { ComponentProps, ElementType, MouseEvent, MouseEventHandler, ReactElement, ReactNode } from "react";
6
+ import { ScrollArea } from "@stealthscale/component-primitives";
7
+ import { Breakpoint } from "@stealthscale/provider-viewport";
8
+ import * as floatingPanel from "@zag-js/floating-panel";
9
+ import { AnchorPositionDetails, OpenChangeDetails, Point, PositionChangeDetails, ResizeTriggerAxis, ResizeTriggerAxis as ResizeTriggerAxis$1, Size, SizeChangeDetails, Stage, Stage as Stage$1, StageChangeDetails } from "@zag-js/floating-panel";
10
+ import { Menu, Tabs } from "@stealthscale/component-disclosure";
11
+ import { SearchInputProps } from "@stealthscale/component-forms";
12
+ import { Divider } from "@stealthscale/component-layout";
13
+ import * as splitter$1 from "@zag-js/splitter";
14
+ import { ExpandCollapseDetails, PanelData, PanelSize, ResizeDetails, ResizeEndDetails } from "@zag-js/splitter";
15
+ //#region src/toolbar/item.d.ts
16
+ /**
17
+ * Describes the roving focus item's props without the element it renders.
18
+ */
19
+ type Roving = Omit<ComponentProps<typeof RovingFocus.Item>, "as" | "ref">;
20
+ /**
21
+ * Describes the props of a control: the item's props and the props of the element or component it
22
+ * renders as.
23
+ *
24
+ * @typeParam Drawn - The element or component the control renders as.
25
+ */
26
+ type ItemProps<Drawn extends ElementType = "button"> = {
27
+ /**
28
+ * The element or component the control renders as: a `button`, or an `a` when `href` is set.
29
+ */
30
+ readonly as?: Drawn | undefined;
31
+ /**
32
+ * The link's target, which renders the control as an `a`.
33
+ */
34
+ readonly href?: string | undefined;
35
+ } & Omit<ComponentProps<Drawn>, keyof Roving> & Roving;
36
+ /**
37
+ * Renders the control as a roving focus item.
38
+ *
39
+ * @param props - The element or component it renders as, the link's target and the item's props.
40
+ * @returns The control element.
41
+ */
42
+ declare function Item<Drawn extends ElementType = "button">({ as, href, ...rest }: ItemProps<Drawn>): ReactElement;
43
+ //#endregion
44
+ //#region src/action-bar/close-trigger.d.ts
45
+ /**
46
+ * Renders the icon button with the action bar's close trigger class, ghost unless the caller sets a
47
+ * variant.
48
+ */
49
+ declare const Drawn$15: (props: IconButtonProps) => ReactElement;
50
+ /**
51
+ * Describes the props of the close trigger: the props of the icon button, as a toolbar item.
52
+ */
53
+ type CloseTriggerProps$1 = Omit<ItemProps<typeof Drawn$15>, "as">;
54
+ /**
55
+ * Renders the close trigger, which asks the root to close after the caller's handler.
56
+ *
57
+ * @param props - The accessible name, the glyph and the props of the icon button.
58
+ * @returns The toolbar item.
59
+ */
60
+ declare function CloseTrigger$1({ onClick, ...props }: CloseTriggerProps$1): ReactElement;
61
+ //#endregion
62
+ //#region src/action-bar/content.d.ts
63
+ /**
64
+ * Renders the `div` with the action bar's content class.
65
+ */
66
+ declare const Drawn$14: import("@stealthscale/theme").StyledComponent<"div", {}>;
67
+ /**
68
+ * Describes the props of a `div` without `ref`, which the bar's presence sets.
69
+ */
70
+ type ContentProps$2 = Omit<ComponentProps<typeof Drawn$14>, "ref">;
71
+ /**
72
+ * Renders the bar with its presence props, its Escape handler and the caller's props.
73
+ *
74
+ * @param props - The props of a `div`.
75
+ * @returns The `div` element.
76
+ */
77
+ declare function Content$4({ onKeyDown, ...props }: ContentProps$2): ReactElement;
78
+ //#endregion
79
+ //#region src/action-bar/positioner.d.ts
80
+ /**
81
+ * Renders the `div` with the action bar's positioner class.
82
+ */
83
+ declare const Drawn$13: import("@stealthscale/theme").StyledComponent<"div", {}>;
84
+ /**
85
+ * Describes the props of the positioner: the props of a `div`.
86
+ */
87
+ type PositionerProps$1 = ComponentProps<typeof Drawn$13>;
88
+ /**
89
+ * Renders the positioner while the bar is in the document.
90
+ *
91
+ * @param props - The props of a `div`.
92
+ * @returns The `div` element, or nothing while the bar is out of the document.
93
+ */
94
+ declare function Positioner$1(props: PositionerProps$1): null | ReactElement;
95
+ //#endregion
96
+ //#region src/action-bar/root.d.ts
97
+ /**
98
+ * Renders the `div` that provides the recipe's variants.
99
+ */
100
+ declare const Framed$2: import("@stealthscale/theme").StyledComponent<"div", {
101
+ readonly placement?: "bottom" | "bottom-end" | "bottom-start";
102
+ }>;
103
+ /**
104
+ * Describes the details `onOpenChange` receives.
105
+ */
106
+ interface OpenChangeDetails$1 {
107
+ /**
108
+ * Whether the bar asks to be open, false for Escape and the close trigger.
109
+ */
110
+ readonly open: boolean;
111
+ }
112
+ /**
113
+ * Describes the props of the root: whether the bar is open, how it asks to close, its announcement,
114
+ * the presence options, the recipe's variants and the props of a `div`.
115
+ *
116
+ * @remarks
117
+ * `lazyMount` and `unmountOnExit` are true by default.
118
+ */
119
+ interface RootProps$8 extends ComponentProps<typeof Framed$2>, Omit<PresenceOptions, "present"> {
120
+ /**
121
+ * Words a screen reader hears as the bar opens. Defaults to `Actions available`.
122
+ */
123
+ readonly announcement?: string | undefined;
124
+ /**
125
+ * Whether Escape inside the bar asks to close it. True by default.
126
+ */
127
+ readonly closeOnEscape?: boolean | undefined;
128
+ /**
129
+ * Called when the bar asks to close. The caller clears the selection, which closes the bar.
130
+ */
131
+ readonly onOpenChange?: ((details: OpenChangeDetails$1) => void) | undefined;
132
+ /**
133
+ * Whether the bar is open, usually while anything is selected.
134
+ */
135
+ readonly open: boolean;
136
+ }
137
+ /**
138
+ * Renders the root and provides the bar's state and presence to the parts.
139
+ *
140
+ * @param props - Whether the bar is open, how it asks to close, its announcement, the presence
141
+ * options, the recipe's variants and the props of a `div`.
142
+ * @returns The `div` element inside the providers.
143
+ */
144
+ declare function Root$8({ announcement, closeOnEscape, lazyMount, onExitComplete, onOpenChange, open, skipAnimationOnMount, unmountOnExit, ...props }: RootProps$8): ReactElement;
145
+ declare namespace index_d_exports {
146
+ export { CloseTrigger$1 as CloseTrigger, CloseTriggerProps$1 as CloseTriggerProps, Content$4 as Content, ContentProps$2 as ContentProps, OpenChangeDetails$1 as OpenChangeDetails, Positioner$1 as Positioner, PositionerProps$1 as PositionerProps, Root$8 as Root, RootProps$8 as RootProps };
147
+ }
148
+ //#endregion
149
+ //#region src/app-shell/panels.d.ts
150
+ /**
151
+ * Describes the state one panel publishes.
152
+ */
153
+ interface Panel$1 {
154
+ /**
155
+ * Result of closing the panel in the body: `hide` hides it, and `icons` leaves a rail.
156
+ */
157
+ readonly collapse: Collapse;
158
+ /**
159
+ * Identifier of the panel's element, which a trigger's `aria-controls` points at.
160
+ */
161
+ readonly id: string;
162
+ /**
163
+ * Whether the panel is shown: open in the body, or open over the page.
164
+ */
165
+ readonly open: boolean;
166
+ /**
167
+ * Whether the shell is too narrow for the panel and the panel is over the page.
168
+ */
169
+ readonly overlaid: boolean;
170
+ /**
171
+ * Shows or hides the panel.
172
+ */
173
+ readonly setOpen: (open: boolean) => void;
174
+ /**
175
+ * Whether the shell is too narrow for the panel and the panel has dropped under the page.
176
+ */
177
+ readonly stacked: boolean;
178
+ }
179
+ //#endregion
180
+ //#region src/app-shell/state.d.ts
181
+ /**
182
+ * Selects the side of the page a panel is on.
183
+ */
184
+ type Side = "end" | "start";
185
+ /**
186
+ * Selects what closing a panel in the body leaves: nothing, or a rail wide enough for its icons.
187
+ */
188
+ type Collapse = "hide" | "icons";
189
+ /**
190
+ * Every `Collapse` value.
191
+ */
192
+ declare const COLLAPSES: readonly Collapse[];
193
+ /**
194
+ * Selects where a panel goes when the shell is too narrow to fit it beside the page.
195
+ *
196
+ * @remarks
197
+ * `over` lays it over the page behind a backdrop, the usual navigation on a phone. `under` drops
198
+ * it under the page as a block that is always shown, the usual detail panel on a phone.
199
+ */
200
+ type Fold = "over" | "under";
201
+ /**
202
+ * Every `Fold` value.
203
+ */
204
+ declare const FOLDS: readonly Fold[];
205
+ /**
206
+ * Selects the widths of the shell a bar renders at: below the width the navigation folds at, or
207
+ * from it.
208
+ */
209
+ type ShellWidth = "narrow" | "wide";
210
+ /**
211
+ * Provides a panel's state to its content and reads it, throwing outside a panel or returning
212
+ * `undefined` there.
213
+ */
214
+ declare const PanelProvider: import("react").FunctionComponent<import("@stealthscale/hooks").ProvidedProps<Panel$1>>, useNearestPanel: () => Panel$1, useEnclosingPanel: () => Panel$1 | undefined;
215
+ /**
216
+ * Reads one panel of the shell by name.
217
+ *
218
+ * @remarks
219
+ * An application uses it to close its navigation when a destination is pressed. It returns
220
+ * `undefined` when no panel has the name, and on a panel's first render, because a panel
221
+ * publishes itself in a layout effect.
222
+ * @param name - The `name` the panel was rendered with, `navbar` or `aside` by default.
223
+ * @returns The panel's state, or `undefined`.
224
+ */
225
+ declare function useAppShellPanel(name: string): Panel$1 | undefined;
226
+ /**
227
+ * Returns the panels that are open over the page, which the backdrop and every inert part read.
228
+ *
229
+ * @returns The open panels over the page, or an empty array.
230
+ */
231
+ declare function useOverlaid(): readonly Panel$1[];
232
+ //#endregion
233
+ //#region src/app-shell/use-panel.d.ts
234
+ /**
235
+ * Describes the options of a panel.
236
+ */
237
+ interface PanelOptions {
238
+ /**
239
+ * Result of closing the panel in the body: `hide` hides it, and `icons` leaves a rail wide
240
+ * enough for its icons. Defaults to `hide`.
241
+ */
242
+ readonly collapse?: Collapse | undefined;
243
+ /**
244
+ * Whether the panel starts open when the caller does not control it. Defaults to `true`.
245
+ */
246
+ readonly defaultOpen?: boolean | undefined;
247
+ /**
248
+ * Where the panel goes when the shell is too narrow for it: over the page behind a backdrop, or
249
+ * under the page as a block. Defaults to `over`.
250
+ */
251
+ readonly folds?: Fold | undefined;
252
+ /**
253
+ * Breakpoint below which the panel folds, or `never` for a panel in the body at every width.
254
+ * Defaults to `md` on the start side and `lg` on the end side.
255
+ */
256
+ readonly foldsBelow?: "never" | Breakpoint | undefined;
257
+ /**
258
+ * Name a trigger uses to find the panel. Defaults to `navbar` on the start side and `aside` on
259
+ * the end side.
260
+ */
261
+ readonly name?: string | undefined;
262
+ /**
263
+ * Called with the new state when the panel opens or closes.
264
+ */
265
+ readonly onOpenChange?: ((open: boolean) => void) | undefined;
266
+ /**
267
+ * Whether the panel is open, when the application controls it.
268
+ */
269
+ readonly open?: boolean | undefined;
270
+ /**
271
+ * Key that toggles the panel with the platform's modifier held: `b` for ⌘B and Ctrl+B. No
272
+ * shortcut by default.
273
+ */
274
+ readonly shortcut?: string | undefined;
275
+ }
276
+ //#endregion
277
+ //#region src/app-shell/panel.d.ts
278
+ /**
279
+ * Renders the content wrapper at the panel's open width, the scroll area's root.
280
+ */
281
+ declare const Held: import("@stealthscale/theme").StyledComponent<"div", {}>;
282
+ /**
283
+ * Describes the props of `Panel`.
284
+ */
285
+ interface PanelProps$1 extends Omit<ComponentProps<typeof Held>, "id" | "width" | keyof PanelOptions>, PanelOptions {
286
+ /**
287
+ * Width the panel closes to when `collapse` is `icons`, as a CSS length. The theme's
288
+ * `sizes.rail` when absent.
289
+ */
290
+ readonly railWidth?: string | undefined;
291
+ /**
292
+ * Side of the page the panel is on.
293
+ */
294
+ readonly side: Side;
295
+ /**
296
+ * Width the panel opens to, as a CSS length. The theme's `sizes.sidebar` on the start side and
297
+ * `sizes.aside` on the end side when absent.
298
+ */
299
+ readonly width?: string | undefined;
300
+ }
301
+ //#endregion
302
+ //#region src/app-shell/aside.d.ts
303
+ /**
304
+ * Describes the props of `Aside`: a panel's props without `side`.
305
+ */
306
+ type AsideProps$1 = Omit<PanelProps$1, "side">;
307
+ /**
308
+ * Renders a panel on the end side.
309
+ *
310
+ * @param props - How the panel folds and closes, and its content.
311
+ * @returns The panel.
312
+ */
313
+ declare function Aside$1(props: AsideProps$1): ReactElement;
314
+ //#endregion
315
+ //#region src/app-shell/body.d.ts
316
+ /**
317
+ * Describes the props of `Body`: the props of the row, without `as`, because the row is the scroll
318
+ * area's content and another element in its place would drop the content's part.
319
+ */
320
+ type BodyProps$3 = Omit<ScrollArea.ContentProps, "as">;
321
+ /**
322
+ * Renders the body as a scroll area around the row, which ends with the backdrop.
323
+ *
324
+ * @param props - The panels, the main region and the row's props.
325
+ * @returns The scroll area's root around the row.
326
+ */
327
+ declare function Body$3({ children, ...rest }: BodyProps$3): ReactElement;
328
+ //#endregion
329
+ //#region src/app-shell/footer.d.ts
330
+ /**
331
+ * Renders the bar `footer`.
332
+ */
333
+ declare const Barred$2: import("@stealthscale/theme").StyledComponent<"footer", {}>;
334
+ /**
335
+ * Describes the props of `Footer`.
336
+ */
337
+ interface FooterProps$3 extends ComponentProps<typeof Barred$2> {
338
+ /**
339
+ * Whether the bar pins to the bottom of the window while the window scrolls.
340
+ */
341
+ readonly sticky?: boolean | undefined;
342
+ /**
343
+ * Width of the shell the bar renders at: `narrow` below the `md` breakpoint, `wide` from it.
344
+ * Every width when absent.
345
+ */
346
+ readonly when?: ShellWidth | undefined;
347
+ }
348
+ /**
349
+ * Renders a bar across the bottom.
350
+ *
351
+ * @param props - `sticky`, `when` and the `footer` element's props.
352
+ * @returns The bar, inert while a panel is over the page, or nothing at a width `when` excludes.
353
+ */
354
+ declare function Footer$3({ sticky, when, ...rest }: FooterProps$3): null | ReactElement;
355
+ //#endregion
356
+ //#region src/app-shell/header.d.ts
357
+ /**
358
+ * Renders the bar `header`.
359
+ */
360
+ declare const Barred$1: import("@stealthscale/theme").StyledComponent<"header", {}>;
361
+ /**
362
+ * Describes the props of `Header`.
363
+ */
364
+ interface HeaderProps$4 extends ComponentProps<typeof Barred$1> {
365
+ /**
366
+ * Whether the bar pins to the top of the window while the window scrolls.
367
+ */
368
+ readonly sticky?: boolean | undefined;
369
+ }
370
+ /**
371
+ * Renders a bar across the top.
372
+ *
373
+ * @param props - `sticky` and the `header` element's props.
374
+ * @returns The bar, inert while a panel is over the page.
375
+ */
376
+ declare function Header$4({ sticky, ...rest }: HeaderProps$4): ReactElement;
377
+ //#endregion
378
+ //#region src/app-shell/main.d.ts
379
+ /**
380
+ * Describes the props of `Main`: the props of the `main` element.
381
+ */
382
+ type MainProps = Omit<ScrollArea.ViewportProps, "as" | "focusable">;
383
+ /**
384
+ * Renders the main region in the space the panels leave, scrolling when the page scrolls.
385
+ *
386
+ * @param props - The `main` element's props, the page among its children.
387
+ * @returns The main region, inert while a panel is over the page.
388
+ */
389
+ declare function Main({ children, ...props }: MainProps): ReactElement;
390
+ //#endregion
391
+ //#region src/app-shell/metrics.d.ts
392
+ /**
393
+ * Custom property an ancestor sets to the height of the shell's window.
394
+ *
395
+ * @remarks
396
+ * A box that stages a shell at a fixed height sets it, and also contains the shell's fixed
397
+ * parts with `contain: layout`. Unset, the window is the viewport.
398
+ */
399
+ declare const WINDOW_HEIGHT = "--app-shell-window-height";
400
+ //#endregion
401
+ //#region src/app-shell/navbar.d.ts
402
+ /**
403
+ * Describes the props of `Navbar`: a panel's props without `side`.
404
+ */
405
+ type NavbarProps = Omit<PanelProps$1, "side">;
406
+ /**
407
+ * Renders a panel on the start side.
408
+ *
409
+ * @param props - How the panel folds and closes, and its content.
410
+ * @returns The panel.
411
+ */
412
+ declare function Navbar(props: NavbarProps): ReactElement;
413
+ //#endregion
414
+ //#region src/app-shell/rail.d.ts
415
+ /**
416
+ * Renders the rail `button`, typed `button` so it submits no form.
417
+ */
418
+ declare const Pressable$1: import("@stealthscale/theme").StyledComponent<"button", {}>;
419
+ /**
420
+ * Describes the props of `Rail`.
421
+ */
422
+ interface RailProps extends Omit<ComponentProps<typeof Pressable$1>, "aria-controls"> {
423
+ /**
424
+ * Accessible name of the rail while its panel is open. Defaults to `Close`.
425
+ */
426
+ readonly closeLabel?: string | undefined;
427
+ /**
428
+ * Accessible name of the rail while its panel is closed. Defaults to `Open`.
429
+ */
430
+ readonly openLabel?: string | undefined;
431
+ /**
432
+ * Name of the panel the rail controls. Defaults to `navbar`.
433
+ */
434
+ readonly panel?: string | undefined;
435
+ }
436
+ /**
437
+ * Renders the strip that toggles one panel.
438
+ *
439
+ * @param props - The labels, the panel's name and the `button` element's props.
440
+ * @returns The strip, or `null` while its panel is not in the body.
441
+ */
442
+ declare function Rail({ closeLabel, onClick, openLabel, panel, ...rest }: RailProps): null | ReactElement;
443
+ //#endregion
444
+ //#region src/app-shell/root.d.ts
445
+ /**
446
+ * Renders the column and provides the variants to every part below it.
447
+ */
448
+ declare const Columned$2: import("@stealthscale/theme").StyledComponent<"div", {
449
+ readonly divided?: boolean;
450
+ readonly scroll?: "page" | "window";
451
+ readonly variant?: "floating" | "inset" | "plain";
452
+ }>;
453
+ /**
454
+ * Describes the props of `Root`.
455
+ */
456
+ type RootProps$7 = ComponentProps<typeof Columned$2>;
457
+ /**
458
+ * Renders the shell: bars across the top and the bottom, and a body between them with a panel on
459
+ * either side of the page.
460
+ *
461
+ * @param props - The recipe's variants and the `div` element's props.
462
+ * @returns The column, with the shell's state in context.
463
+ */
464
+ declare function Root$7({ scroll, ...rest }: RootProps$7): ReactElement;
465
+ //#endregion
466
+ //#region src/app-shell/section.d.ts
467
+ /**
468
+ * Renders the section `div`.
469
+ */
470
+ declare const Banded$4: import("@stealthscale/theme").StyledComponent<"div", {}>;
471
+ /**
472
+ * Describes the props of `Section`.
473
+ */
474
+ interface SectionProps extends ComponentProps<typeof Banded$4> {
475
+ /**
476
+ * Whether the section takes the room its siblings leave.
477
+ */
478
+ readonly grows?: boolean | undefined;
479
+ /**
480
+ * Whether the section scrolls its own content.
481
+ */
482
+ readonly scrolls?: boolean | undefined;
483
+ }
484
+ /**
485
+ * Renders the band, inside a scroll area when it scrolls.
486
+ *
487
+ * @param props - `grows`, `scrolls` and the `div` element's props.
488
+ * @returns The `div` element, or the scroll area's root around it.
489
+ */
490
+ declare function Section({ grows, scrolls, ...rest }: SectionProps): ReactElement;
491
+ //#endregion
492
+ //#region src/app-shell/status.d.ts
493
+ /**
494
+ * Renders the bar `div`.
495
+ */
496
+ declare const Barred: import("@stealthscale/theme").StyledComponent<"div", {}>;
497
+ /**
498
+ * Describes the props of `Status`.
499
+ */
500
+ type StatusProps = ComponentProps<typeof Barred>;
501
+ /**
502
+ * Renders the status bar.
503
+ *
504
+ * @param props - The `div` element's props.
505
+ * @returns The bar, inert while a panel is over the page.
506
+ */
507
+ declare function Status(props: StatusProps): ReactElement;
508
+ //#endregion
509
+ //#region src/app-shell/trigger.d.ts
510
+ /**
511
+ * Renders the library's button as a neutral ghost, typed `button` so it submits no form.
512
+ */
513
+ declare const Pressable: import("@stealthscale/theme").StyledComponent<import("@stealthscale/theme").StyledComponent<"button", {
514
+ readonly effect?: "glow" | "pulse";
515
+ readonly elevation?: import("@stealthscale/theme/authoring").Lift;
516
+ readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning";
517
+ readonly shape?: "square";
518
+ readonly size?: import("@stealthscale/theme/authoring").Scale;
519
+ readonly variant?: "ghost" | "glass" | "outline" | "plain" | "solid" | "subtle" | "surface";
520
+ }>, {}>;
521
+ /**
522
+ * Describes the props of `Trigger`.
523
+ */
524
+ interface TriggerProps$2 extends Omit<ComponentProps<typeof Pressable>, "aria-controls"> {
525
+ /**
526
+ * Name of the panel the control opens. Defaults to `navbar`.
527
+ */
528
+ readonly panel?: string | undefined;
529
+ }
530
+ /**
531
+ * Renders the control that toggles one panel.
532
+ *
533
+ * @param props - `panel` and the button's props.
534
+ * @returns The control, or `null` while its panel has dropped under the page.
535
+ */
536
+ declare function Trigger$2({ onClick, panel, ...rest }: TriggerProps$2): null | ReactElement;
537
+ declare namespace index_d_exports$1 {
538
+ export { Aside$1 as Aside, AsideProps$1 as AsideProps, Body$3 as Body, BodyProps$3 as BodyProps, COLLAPSES, Collapse, FOLDS, Fold, Footer$3 as Footer, FooterProps$3 as FooterProps, Header$4 as Header, HeaderProps$4 as HeaderProps, Main, MainProps, Navbar, NavbarProps, Panel$1 as Panel, PanelOptions, Rail, RailProps, Root$7 as Root, RootProps$7 as RootProps, Section, SectionProps, ShellWidth, Side, Status, StatusProps, Trigger$2 as Trigger, TriggerProps$2 as TriggerProps, WINDOW_HEIGHT, useAppShellPanel, useNearestPanel, useOverlaid };
539
+ }
540
+ //#endregion
541
+ //#region src/floating-panel/body.d.ts
542
+ /**
543
+ * Renders the `div` with the floating panel's body class.
544
+ */
545
+ declare const Drawn$12: import("@stealthscale/theme").StyledComponent<"div", {}>;
546
+ /**
547
+ * Describes the props of the body: the props of a `div`.
548
+ */
549
+ type BodyProps$2 = ComponentProps<typeof Drawn$12>;
550
+ /**
551
+ * Renders the body inside a scroll area with a vertical bar, hidden while the panel is minimized.
552
+ *
553
+ * @param props - The props of a `div`.
554
+ * @returns The scroll area's root.
555
+ */
556
+ declare function Body$2(props: BodyProps$2): ReactElement;
557
+ //#endregion
558
+ //#region src/floating-panel/close-trigger.d.ts
559
+ /**
560
+ * Describes the props of the close trigger: the name and the props of the icon button.
561
+ */
562
+ interface CloseTriggerProps extends Omit<ButtonProps, "aria-label" | "aria-labelledby" | "ref"> {
563
+ /**
564
+ * Accessible name of the button. Defaults to "Close".
565
+ */
566
+ readonly label?: string | undefined;
567
+ }
568
+ /**
569
+ * Renders the close trigger with the machine's close trigger props and its name merged under the
570
+ * caller's.
571
+ *
572
+ * @param props - The name, the glyph and the props of the icon button.
573
+ * @returns The `button` element.
574
+ */
575
+ declare function CloseTrigger({ label, ...props }: CloseTriggerProps): ReactElement;
576
+ //#endregion
577
+ //#region src/floating-panel/content.d.ts
578
+ /**
579
+ * Renders the `div` with the floating panel's content class.
580
+ */
581
+ declare const Drawn$11: import("@stealthscale/theme").StyledComponent<"div", {}>;
582
+ /**
583
+ * Describes the props of the content: the props of a `div`, without `ref`, which the presence
584
+ * takes.
585
+ */
586
+ type ContentProps$1 = Omit<ComponentProps<typeof Drawn$11>, "ref">;
587
+ /**
588
+ * Renders the panel with the machine's content props, the presence props and the keys merged under
589
+ * the caller's, and moves Tab between the panel and the trigger while the panel is open.
590
+ *
591
+ * @param props - The parts of the panel and the props of a `div`.
592
+ * @returns The `div` element.
593
+ */
594
+ declare function Content$3(props: ContentProps$1): ReactElement;
595
+ //#endregion
596
+ //#region src/floating-panel/control.d.ts
597
+ /**
598
+ * Renders the `div` with the floating panel's control class.
599
+ */
600
+ declare const Drawn$10: import("@stealthscale/theme").StyledComponent<"div", {}>;
601
+ /**
602
+ * Describes the props of the control: the props of a `div`.
603
+ */
604
+ type ControlProps = ComponentProps<typeof Drawn$10>;
605
+ /**
606
+ * Renders the control with the machine's control props merged under the caller's.
607
+ *
608
+ * @param props - The triggers and the props of a `div`.
609
+ * @returns The `div` element.
610
+ */
611
+ declare function Control(props: ControlProps): ReactElement;
612
+ //#endregion
613
+ //#region src/floating-panel/drag-trigger.d.ts
614
+ /**
615
+ * Renders the `div` with the floating panel's drag trigger class.
616
+ */
617
+ declare const Drawn$9: import("@stealthscale/theme").StyledComponent<"div", {}>;
618
+ /**
619
+ * Describes the props of the drag trigger: the props of a `div`.
620
+ */
621
+ type DragTriggerProps = ComponentProps<typeof Drawn$9>;
622
+ /**
623
+ * Renders the drag trigger with the machine's drag trigger props, but their inline style, merged
624
+ * under the caller's.
625
+ *
626
+ * @param props - The title, a grip glyph and the props of a `div`.
627
+ * @returns The `div` element.
628
+ */
629
+ declare function DragTrigger(props: DragTriggerProps): ReactElement;
630
+ //#endregion
631
+ //#region src/floating-panel/header.d.ts
632
+ /**
633
+ * Renders the `div` with the floating panel's header class.
634
+ */
635
+ declare const Drawn$8: import("@stealthscale/theme").StyledComponent<"div", {}>;
636
+ /**
637
+ * Describes the props of the header: the props of a `div`.
638
+ */
639
+ type HeaderProps$3 = ComponentProps<typeof Drawn$8>;
640
+ /**
641
+ * Renders the header with the machine's header props merged under the caller's.
642
+ *
643
+ * @param props - The props of a `div`.
644
+ * @returns The `div` element.
645
+ */
646
+ declare function Header$3(props: HeaderProps$3): ReactElement;
647
+ //#endregion
648
+ //#region src/floating-panel/positioner.d.ts
649
+ /**
650
+ * Renders the `div` with the floating panel's positioner class.
651
+ */
652
+ declare const Drawn$7: import("@stealthscale/theme").StyledComponent<"div", {}>;
653
+ /**
654
+ * Describes the props of the positioner: the props of a `div`.
655
+ */
656
+ type PositionerProps = ComponentProps<typeof Drawn$7>;
657
+ /**
658
+ * Renders the positioner with the machine's positioner props, but its inline `z-index`, merged
659
+ * under the caller's.
660
+ *
661
+ * @param props - The props of a `div`.
662
+ * @returns The `div` element, or nothing while the panel is out of the document.
663
+ */
664
+ declare function Positioner(props: PositionerProps): null | ReactElement;
665
+ //#endregion
666
+ //#region src/floating-panel/resize-trigger.d.ts
667
+ /**
668
+ * Renders the `div` with the floating panel's resize trigger class.
669
+ */
670
+ declare const Drawn$6: import("@stealthscale/theme").StyledComponent<"div", {}>;
671
+ /**
672
+ * Describes the props of a resize trigger: the axis and the props of a `div`.
673
+ */
674
+ interface ResizeTriggerProps$1 extends ComponentProps<typeof Drawn$6> {
675
+ /**
676
+ * Edge or corner the trigger resizes from: `n`, `e`, `s` or `w`, or `ne`, `nw`, `se` or `sw`.
677
+ */
678
+ readonly axis: ResizeTriggerAxis;
679
+ }
680
+ /**
681
+ * Renders the trigger with the machine's resize trigger props merged under the caller's.
682
+ *
683
+ * @param props - The axis and the props of a `div`.
684
+ * @returns The `div` element.
685
+ */
686
+ declare function ResizeTrigger$1({ axis, ...props }: ResizeTriggerProps$1): ReactElement;
687
+ //#endregion
688
+ //#region src/floating-panel/resize-triggers.d.ts
689
+ /**
690
+ * Describes the props of the triggers: the axes and the props every trigger receives.
691
+ */
692
+ interface ResizeTriggersProps extends Omit<ResizeTriggerProps$1, "axis"> {
693
+ /**
694
+ * Edges and corners to render a trigger for. Defaults to all eight.
695
+ */
696
+ readonly axes?: readonly ResizeTriggerAxis[] | undefined;
697
+ }
698
+ /**
699
+ * Renders one resize trigger per axis.
700
+ *
701
+ * @param props - The axes and the props of a `div`.
702
+ * @returns A fragment with one trigger per axis.
703
+ */
704
+ declare function ResizeTriggers({ axes, ...props }: ResizeTriggersProps): ReactElement;
705
+ //#endregion
706
+ //#region src/floating-panel/machine.d.ts
707
+ /**
708
+ * Describes the machine settings a caller can pass to the root, all optional.
709
+ *
710
+ * @remarks
711
+ * `strategy` is left out: the machine computes the place in window coordinates, which only a
712
+ * panel fixed to the window reads correctly. `translations` is left out for the stage triggers'
713
+ * `label`.
714
+ */
715
+ type FloatingPanelOptions = Partial<Omit<floatingPanel.Props, "strategy" | "translations">>;
716
+ //#endregion
717
+ //#region src/floating-panel/root.d.ts
718
+ /**
719
+ * Renders the `div` that provides the recipe to the parts.
720
+ */
721
+ declare const Framed$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
722
+ /**
723
+ * Describes the props of the root: the machine's options, the presence of the panel and the props
724
+ * of a `div`.
725
+ *
726
+ * @remarks
727
+ * The element's `id`, `dir`, `draggable` and `position` are left out, because the machine takes
728
+ * all four. It derives every part's id from `id` and writes `dir` on every part. It reads
729
+ * `draggable` as whether a person can move the panel, and `position` as the panel's place.
730
+ * `lazyMount` and `unmountOnExit` are true by default.
731
+ */
732
+ interface RootProps$6 extends FloatingPanelOptions, Omit<ComponentProps<typeof Framed$1>, "dir" | "draggable" | "id" | "position">, Omit<PresenceOptions, "present"> {}
733
+ /**
734
+ * Renders the root and provides the machine and the panel's presence to the parts.
735
+ *
736
+ * @param props - The machine's options, the presence options and the props of a `div`.
737
+ * @returns The `div` element inside the providers.
738
+ */
739
+ declare function Root$6({ lazyMount, onExitComplete, skipAnimationOnMount, unmountOnExit, ...props }: RootProps$6): ReactElement;
740
+ //#endregion
741
+ //#region src/floating-panel/stage-trigger.d.ts
742
+ /**
743
+ * Describes the props of a stage trigger: the stage, the name and the props of the icon button.
744
+ */
745
+ interface StageTriggerProps extends Omit<ButtonProps, "aria-label" | "aria-labelledby" | "ref"> {
746
+ /**
747
+ * Accessible name of the button. Defaults to "Minimize", "Maximize" or "Restore" by `stage`.
748
+ */
749
+ readonly label?: string | undefined;
750
+ /**
751
+ * Stage a press sets: `minimized`, `maximized`, or `default`, which restores the panel.
752
+ */
753
+ readonly stage: Stage;
754
+ }
755
+ /**
756
+ * Renders the trigger with the machine's stage trigger props, its name and its focus records
757
+ * merged under the caller's.
758
+ *
759
+ * @param props - The stage, the name, the glyph and the props of the icon button.
760
+ * @returns The `button` element.
761
+ */
762
+ declare function StageTrigger({ label, stage, ...props }: StageTriggerProps): ReactElement;
763
+ //#endregion
764
+ //#region src/floating-panel/title.d.ts
765
+ /**
766
+ * Renders the `h2` with the floating panel's title class.
767
+ */
768
+ declare const Drawn$5: import("@stealthscale/theme").StyledComponent<"h2", {}>;
769
+ /**
770
+ * Describes the props of the title: the props of an `h2`.
771
+ */
772
+ type TitleProps$2 = ComponentProps<typeof Drawn$5>;
773
+ /**
774
+ * Renders the title with the machine's title props merged under the caller's.
775
+ *
776
+ * @param props - The props of an `h2`.
777
+ * @returns The heading element.
778
+ */
779
+ declare function Title$2(props: TitleProps$2): ReactElement;
780
+ //#endregion
781
+ //#region src/floating-panel/trigger.d.ts
782
+ /**
783
+ * Renders the `button` with the floating panel's trigger class.
784
+ */
785
+ declare const Drawn$4: import("@stealthscale/theme").StyledComponent<"button", {}>;
786
+ /**
787
+ * Describes the props of the trigger: the props of a `button`.
788
+ */
789
+ type TriggerProps$1 = ComponentProps<typeof Drawn$4>;
790
+ /**
791
+ * Renders the trigger with the machine's trigger props and the panel's state merged under the
792
+ * caller's props.
793
+ *
794
+ * @param props - The props of a `button`.
795
+ * @returns The `button` element.
796
+ */
797
+ declare function Trigger$1(props: TriggerProps$1): ReactElement;
798
+ declare namespace index_d_exports$2 {
799
+ export { AnchorPositionDetails, Body$2 as Body, BodyProps$2 as BodyProps, CloseTrigger, CloseTriggerProps, Content$3 as Content, ContentProps$1 as ContentProps, Control, ControlProps, DragTrigger, DragTriggerProps, Header$3 as Header, HeaderProps$3 as HeaderProps, OpenChangeDetails, Point, PositionChangeDetails, Positioner, PositionerProps, ResizeTrigger$1 as ResizeTrigger, ResizeTriggerAxis$1 as ResizeTriggerAxis, ResizeTriggerProps$1 as ResizeTriggerProps, ResizeTriggers, ResizeTriggersProps, Root$6 as Root, RootProps$6 as RootProps, Size, SizeChangeDetails, Stage$1 as Stage, StageChangeDetails, StageTrigger, StageTriggerProps, Title$2 as Title, TitleProps$2 as TitleProps, Trigger$1 as Trigger, TriggerProps$1 as TriggerProps };
800
+ }
801
+ //#endregion
802
+ //#region src/folding/priority.d.ts
803
+ /**
804
+ * Types the priority that decides how an action folds as its row narrows, and derives it from the
805
+ * props a caller sets.
806
+ *
807
+ * @remarks
808
+ * A narrow row keeps a primary action whole, renders a secondary action as its icon alone, and
809
+ * moves a tertiary action into the row's menu.
810
+ */
811
+ /**
812
+ * Priority of an action, which decides what a narrow row does with it.
813
+ */
814
+ type Priority = "primary" | "secondary" | "tertiary";
815
+ //#endregion
816
+ //#region src/page/state.d.ts
817
+ /**
818
+ * Provides the page's size and measured width to its parts and to the sections in it.
819
+ *
820
+ * @remarks
821
+ * A section in a page reads its size from here, so one size on `Page.Root` sets every section.
822
+ * A part rendered at one width reads the page's measured width from here.
823
+ */
824
+ /**
825
+ * Size of a page.
826
+ */
827
+ type PageSize = "lg" | "md" | "sm";
828
+ /**
829
+ * Width at which a part renders.
830
+ */
831
+ type PageWidth = "narrow" | "wide";
832
+ /**
833
+ * Describes the props of a part rendered at one width.
834
+ */
835
+ interface WhenProps {
836
+ /**
837
+ * Width at which the part renders. `narrow` renders it on a folded page alone, and `wide` on an
838
+ * unfolded page alone, which swaps a full trail for a single link back. Without it, the part
839
+ * renders at every width.
840
+ */
841
+ readonly when?: PageWidth | undefined;
842
+ }
843
+ //#endregion
844
+ //#region src/page/action.d.ts
845
+ /**
846
+ * Renders the library's button with the recipe's action class.
847
+ */
848
+ declare const Acted$2: import("@stealthscale/theme").StyledComponent<import("@stealthscale/theme").StyledComponent<"button", {
849
+ readonly effect?: "glow" | "pulse";
850
+ readonly elevation?: import("@stealthscale/theme/authoring").Lift;
851
+ readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning";
852
+ readonly shape?: "square";
853
+ readonly size?: import("@stealthscale/theme/authoring").Scale;
854
+ readonly variant?: "ghost" | "glass" | "outline" | "plain" | "solid" | "subtle" | "surface";
855
+ }>, {}>;
856
+ /**
857
+ * Describes the props of an action: its icon, whether it is primary, its priority, `when` and the
858
+ * props of the library's button.
859
+ */
860
+ interface ActionProps$3 extends Omit<ComponentProps<typeof Acted$2>, "onClick">, WhenProps {
861
+ /**
862
+ * Icon before the words, which a narrow page shows alone.
863
+ */
864
+ readonly icon?: ReactNode | undefined;
865
+ /**
866
+ * Handler the button or the menu row calls when a reader presses it.
867
+ */
868
+ readonly onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined;
869
+ /**
870
+ * Whether the action is the page's primary action, which renders solid and keeps its words.
871
+ */
872
+ readonly primary?: boolean | undefined;
873
+ /**
874
+ * Priority that decides how a narrow page folds the action, in place of the one `icon` and
875
+ * `primary` imply.
876
+ */
877
+ readonly priority?: Priority | undefined;
878
+ }
879
+ /**
880
+ * Renders the action, or nothing while the page folds it into the menu or `when` hides it.
881
+ *
882
+ * @param props - The icon, the primary flag, the priority, the width and the props of the
883
+ * library's button.
884
+ * @returns The `button` element, or nothing on a narrow page that folds it and at the other width.
885
+ */
886
+ declare function Action$3({ as, children, disabled, icon, onClick, primary, priority, when, ...rest }: ActionProps$3): null | ReactElement;
887
+ //#endregion
888
+ //#region src/page/actions.d.ts
889
+ /**
890
+ * Renders the `div` with the recipe's actions class.
891
+ */
892
+ declare const Row$3: import("@stealthscale/theme").StyledComponent<"div", {}>;
893
+ /**
894
+ * Describes the props of the actions row: the menu's words and mark, `when` and the props of a
895
+ * `div`.
896
+ */
897
+ interface ActionsProps$1 extends ComponentProps<typeof Row$3>, WhenProps {
898
+ /**
899
+ * Words that name the menu of folded actions. Defaults to `More actions`.
900
+ */
901
+ readonly more?: string | undefined;
902
+ /**
903
+ * Mark the menu's trigger shows in place of its words.
904
+ */
905
+ readonly moreIcon?: ReactNode | undefined;
906
+ }
907
+ /**
908
+ * Renders the row at the width `when` names, with the menu at its end while an action is folded.
909
+ *
910
+ * @param props - The menu's words and mark, the width and the props of a `div`.
911
+ * @returns The `div` element, or nothing at the other width.
912
+ */
913
+ declare function Actions$1({ children, more, moreIcon, when, ...rest }: ActionsProps$1): null | ReactElement;
914
+ //#endregion
915
+ //#region src/page/sticky.d.ts
916
+ /**
917
+ * Types the `sticky` prop of a band and converts it to the attribute the recipe reads.
918
+ */
919
+ /**
920
+ * Describes the prop of a band that can stick to the top of the page.
921
+ */
922
+ interface StickyProps {
923
+ /**
924
+ * Whether the band remains at the top while the page scrolls under it.
925
+ */
926
+ readonly sticky?: boolean | undefined;
927
+ }
928
+ //#endregion
929
+ //#region src/page/aside.d.ts
930
+ /**
931
+ * Renders the `aside` with the recipe's aside class.
932
+ */
933
+ declare const Beside: import("@stealthscale/theme").StyledComponent<"aside", {}>;
934
+ /**
935
+ * Behaviour of the aside below the `lg` breakpoint.
936
+ */
937
+ type AsideFold = "hide" | "under";
938
+ /**
939
+ * Describes the props of the aside: how it folds, `sticky` and the props of an `aside`.
940
+ */
941
+ interface AsideProps extends ComponentProps<typeof Beside>, StickyProps {
942
+ /**
943
+ * Whether the aside stacks under the body or leaves the page below the `lg` breakpoint. It
944
+ * stacks under the body by default.
945
+ */
946
+ readonly folds?: AsideFold | undefined;
947
+ }
948
+ /**
949
+ * Renders the aside with `data-folds`, and, when it sticks, `data-sticky` and its content in a
950
+ * scroll area.
951
+ *
952
+ * @param props - How it folds, whether it sticks, and the props of an `aside`.
953
+ * @returns The `aside` element.
954
+ */
955
+ declare function Aside({ children, folds, sticky, ...rest }: AsideProps): ReactElement;
956
+ //#endregion
957
+ //#region src/page/banner.d.ts
958
+ /**
959
+ * Renders the `div` with the recipe's banner class.
960
+ */
961
+ declare const Banner: import("@stealthscale/theme").StyledComponent<"div", {}>;
962
+ /**
963
+ * Describes the props of the banner: the props of a `div`.
964
+ */
965
+ type BannerProps = ComponentProps<typeof Banner>;
966
+ //#endregion
967
+ //#region src/page/body.d.ts
968
+ /**
969
+ * Renders the `div` with the recipe's body class.
970
+ */
971
+ declare const Content$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
972
+ /**
973
+ * Describes the props of the body: the props of a `div`.
974
+ */
975
+ type BodyProps$1 = ComponentProps<typeof Content$2>;
976
+ /**
977
+ * Renders the body, as the selected tab's panel while a strip of tabs renders.
978
+ *
979
+ * @param props - The props of a `div`.
980
+ * @returns The `div` element.
981
+ */
982
+ declare function Body$1(props: BodyProps$1): ReactElement;
983
+ //#endregion
984
+ //#region src/page/breadcrumbs.d.ts
985
+ /**
986
+ * Describes one page above this one.
987
+ */
988
+ interface Crumb {
989
+ /**
990
+ * Address of the page.
991
+ */
992
+ readonly href: string;
993
+ /**
994
+ * Words that name the page.
995
+ */
996
+ readonly label: string;
997
+ /**
998
+ * Handler the link calls when a reader presses it, for a router that handles the navigation.
999
+ */
1000
+ readonly onClick?: ((event: MouseEvent<HTMLAnchorElement>) => void) | undefined;
1001
+ }
1002
+ /**
1003
+ * Describes the props of the breadcrumbs: the pages above this one, the trail's name and the marks.
1004
+ */
1005
+ interface BreadcrumbsProps {
1006
+ /**
1007
+ * Mark before the words of the narrow page's link back, such as an arrow.
1008
+ */
1009
+ readonly backIcon?: ReactNode | undefined;
1010
+ /**
1011
+ * Pages above this one, the nearest last.
1012
+ */
1013
+ readonly items: readonly Crumb[];
1014
+ /**
1015
+ * Accessible name of the trail's navigation landmark. Defaults to `Breadcrumb`.
1016
+ */
1017
+ readonly label?: string | undefined;
1018
+ /**
1019
+ * Content of the separator between two items. Defaults to `/`.
1020
+ */
1021
+ readonly separator?: ReactNode | undefined;
1022
+ }
1023
+ /**
1024
+ * Renders the trail, or the link back on a narrow page.
1025
+ *
1026
+ * @param props - The pages above this one, the trail's name and the marks.
1027
+ * @returns The context row with the trail, the link back, or nothing without an item.
1028
+ */
1029
+ declare function Breadcrumbs({ backIcon, items, label, separator }: BreadcrumbsProps): null | ReactElement;
1030
+ //#endregion
1031
+ //#region src/page/context-band.d.ts
1032
+ /**
1033
+ * Renders the `div` with the recipe's context class.
1034
+ */
1035
+ declare const Row$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
1036
+ /**
1037
+ * Describes the props of the context row: `when` and the props of a `div`.
1038
+ */
1039
+ interface ContextProps extends ComponentProps<typeof Row$2>, WhenProps {}
1040
+ /**
1041
+ * Renders the context row at the width `when` names.
1042
+ *
1043
+ * @param props - The width and the props of a `div`.
1044
+ * @returns The `div` element, or nothing at the other width.
1045
+ */
1046
+ declare function Context({ when, ...rest }: ContextProps): null | ReactElement;
1047
+ //#endregion
1048
+ //#region src/page/description.d.ts
1049
+ /**
1050
+ * Renders the `p` with the recipe's description class.
1051
+ */
1052
+ declare const Description$1: import("@stealthscale/theme").StyledComponent<"p", {}>;
1053
+ /**
1054
+ * Describes the props of the description: the props of a `p`.
1055
+ */
1056
+ type DescriptionProps$1 = ComponentProps<typeof Description$1>;
1057
+ //#endregion
1058
+ //#region src/page/footer.d.ts
1059
+ /**
1060
+ * Renders the `footer` with the recipe's footer class.
1061
+ */
1062
+ declare const Banded$3: import("@stealthscale/theme").StyledComponent<"footer", {}>;
1063
+ /**
1064
+ * Describes the props of the footer: `sticky`, `when` and the props of a `footer`.
1065
+ */
1066
+ interface FooterProps$2 extends ComponentProps<typeof Banded$3>, StickyProps, WhenProps {}
1067
+ /**
1068
+ * Renders the footer at the width `when` names, with `data-sticky` when it sticks to the bottom.
1069
+ *
1070
+ * @param props - Whether it sticks, the width and the props of a `footer`.
1071
+ * @returns The `footer` element, or nothing at the other width.
1072
+ */
1073
+ declare function Footer$2({ sticky, when, ...rest }: FooterProps$2): null | ReactElement;
1074
+ //#endregion
1075
+ //#region src/page/header.d.ts
1076
+ /**
1077
+ * Renders the `header` with the recipe's header class.
1078
+ */
1079
+ declare const Banded$2: import("@stealthscale/theme").StyledComponent<"header", {}>;
1080
+ /**
1081
+ * Describes the props of the header: `sticky` and the props of a `header`.
1082
+ */
1083
+ interface HeaderProps$2 extends ComponentProps<typeof Banded$2>, StickyProps {}
1084
+ /**
1085
+ * Renders the header, with `data-sticky` when it sticks.
1086
+ *
1087
+ * @param props - Whether it sticks, and the props of a `header`.
1088
+ * @returns The `header` element.
1089
+ */
1090
+ declare function Header$2({ sticky, ...rest }: HeaderProps$2): ReactElement;
1091
+ //#endregion
1092
+ //#region src/page/leading.d.ts
1093
+ /**
1094
+ * Renders the `div` with the recipe's leading class.
1095
+ */
1096
+ declare const Mark$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
1097
+ /**
1098
+ * Describes the props of the leading mark: `when` and the props of a `div`.
1099
+ */
1100
+ interface LeadingProps extends ComponentProps<typeof Mark$1>, WhenProps {}
1101
+ /**
1102
+ * Renders the leading mark at the width `when` names.
1103
+ *
1104
+ * @param props - The width and the props of a `div`.
1105
+ * @returns The `div` element, or nothing at the other width.
1106
+ */
1107
+ declare function Leading({ when, ...rest }: LeadingProps): null | ReactElement;
1108
+ //#endregion
1109
+ //#region src/page/meta.d.ts
1110
+ /**
1111
+ * Renders the `div` with the recipe's meta class.
1112
+ */
1113
+ declare const Row$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
1114
+ /**
1115
+ * Describes the props of the meta row: `when` and the props of a `div`.
1116
+ */
1117
+ interface MetaProps extends ComponentProps<typeof Row$1>, WhenProps {}
1118
+ /**
1119
+ * Renders the meta row at the width `when` names.
1120
+ *
1121
+ * @param props - The width and the props of a `div`.
1122
+ * @returns The `div` element, or nothing at the other width.
1123
+ */
1124
+ declare function Meta({ when, ...rest }: MetaProps): null | ReactElement;
1125
+ //#endregion
1126
+ //#region src/page/nav.d.ts
1127
+ /**
1128
+ * Renders the `nav` with the recipe's nav class.
1129
+ */
1130
+ declare const Banded$1: import("@stealthscale/theme").StyledComponent<"nav", {}>;
1131
+ /**
1132
+ * Describes the props of the navigation: `sticky`, `when` and the props of a `nav`.
1133
+ */
1134
+ interface NavProps$1 extends ComponentProps<typeof Banded$1>, StickyProps, WhenProps {}
1135
+ /**
1136
+ * Renders the navigation at the width `when` names, with `data-sticky` when it sticks.
1137
+ *
1138
+ * @param props - Whether it sticks, the width and the props of a `nav`.
1139
+ * @returns The `nav` element, or nothing at the other width.
1140
+ */
1141
+ declare function Nav$1({ sticky, when, ...rest }: NavProps$1): null | ReactElement;
1142
+ //#endregion
1143
+ //#region src/page/palette.d.ts
1144
+ /**
1145
+ * Renders the `div` with the recipe's palette class.
1146
+ */
1147
+ declare const Palette: import("@stealthscale/theme").StyledComponent<"div", {}>;
1148
+ /**
1149
+ * Describes the props of the panel: the props of a `div`.
1150
+ */
1151
+ type PaletteProps = ComponentProps<typeof Palette>;
1152
+ //#endregion
1153
+ //#region src/page/picker.d.ts
1154
+ /**
1155
+ * Renders the library's button with the recipe's picker class.
1156
+ */
1157
+ declare const Picker: import("@stealthscale/theme").StyledComponent<import("@stealthscale/theme").StyledComponent<"button", {
1158
+ readonly effect?: "glow" | "pulse";
1159
+ readonly elevation?: import("@stealthscale/theme/authoring").Lift;
1160
+ readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning";
1161
+ readonly shape?: "square";
1162
+ readonly size?: import("@stealthscale/theme/authoring").Scale;
1163
+ readonly variant?: "ghost" | "glass" | "outline" | "plain" | "solid" | "subtle" | "surface";
1164
+ }>, {}>;
1165
+ /**
1166
+ * Describes the props of the picker: the props of the library's button.
1167
+ */
1168
+ type PickerProps = ComponentProps<typeof Picker>;
1169
+ //#endregion
1170
+ //#region src/page/root.d.ts
1171
+ /**
1172
+ * Renders the `div` with the recipe's root class, which provides the variants to the bands.
1173
+ */
1174
+ declare const Columned$1: import("@stealthscale/theme").StyledComponent<"div", {
1175
+ readonly align?: "center" | "start";
1176
+ readonly divided?: boolean;
1177
+ readonly gutter?: import("@stealthscale/theme/authoring").Scale;
1178
+ readonly measure?: "full" | "narrow" | "wide";
1179
+ readonly folded?: boolean;
1180
+ readonly size?: "lg" | "md" | "sm";
1181
+ }>;
1182
+ /**
1183
+ * Describes the props of the page: its size, the recipe's variants without `folded`, which the
1184
+ * page measures, and the props of a `div`.
1185
+ */
1186
+ interface RootProps$5 extends Omit<ComponentProps<typeof Columned$1>, "folded" | "size"> {
1187
+ /**
1188
+ * Size of the page, which a section in it reads too.
1189
+ */
1190
+ readonly size?: PageSize | undefined;
1191
+ }
1192
+ /**
1193
+ * Renders the page with its measured width and provides its state to the parts.
1194
+ *
1195
+ * @param props - The size, the recipe's variants and the props of a `div`.
1196
+ * @returns The `div` element, with `folded` and `data-narrow` while it is narrow.
1197
+ */
1198
+ declare function Root$5({ size, ...rest }: RootProps$5): ReactElement;
1199
+ //#endregion
1200
+ //#region src/page/tab-list.d.ts
1201
+ /**
1202
+ * Describes the props of the tab list: its name, its value and the words and mark of the picker.
1203
+ */
1204
+ interface TabListProps {
1205
+ /**
1206
+ * Accessible name of the tabs and of the picker's list. Defaults to `Sections`.
1207
+ */
1208
+ readonly "aria-label"?: string | undefined;
1209
+ /**
1210
+ * The page's tabs.
1211
+ */
1212
+ readonly children?: ReactNode | undefined;
1213
+ /**
1214
+ * Value of the tab selected at first, while the caller does not pass `value`.
1215
+ */
1216
+ readonly defaultValue?: string | undefined;
1217
+ /**
1218
+ * Words the picker's list shows while no tab matches the filter. Defaults to `No tab matches`.
1219
+ */
1220
+ readonly emptyLabel?: string | undefined;
1221
+ /**
1222
+ * Words the picker's empty filter field shows. Defaults to `Filter tabs`.
1223
+ */
1224
+ readonly filterLabel?: string | undefined;
1225
+ /**
1226
+ * Called with the value of the tab a reader selects.
1227
+ */
1228
+ readonly onValueChange?: ((value: string) => void) | undefined;
1229
+ /**
1230
+ * Mark at the end of the picker's button, such as a chevron.
1231
+ */
1232
+ readonly pickerIcon?: ReactNode | undefined;
1233
+ /**
1234
+ * Value of the selected tab, when the caller controls it.
1235
+ */
1236
+ readonly value?: string | undefined;
1237
+ }
1238
+ /**
1239
+ * Renders the strip of tabs or the picker, and lists the tabs for the picker.
1240
+ *
1241
+ * @param props - The name, the value and the picker's words and mark.
1242
+ * @returns The tabs, or the picker on a narrow page.
1243
+ */
1244
+ declare function TabList({ "aria-label": label, children, defaultValue, emptyLabel, filterLabel, onValueChange, pickerIcon, value }: TabListProps): ReactElement;
1245
+ //#endregion
1246
+ //#region src/page/tab.d.ts
1247
+ /**
1248
+ * Describes the props of a tab: its words, its count and the props of the disclosure package's
1249
+ * tab trigger.
1250
+ */
1251
+ interface TabProps extends Omit<Tabs.TriggerProps, "children"> {
1252
+ /**
1253
+ * Words of the tab.
1254
+ */
1255
+ readonly children: string;
1256
+ /**
1257
+ * Number the tab's badge shows, such as the rows the tab's view contains.
1258
+ */
1259
+ readonly count?: number | undefined;
1260
+ }
1261
+ /**
1262
+ * Renders the tab, or nothing on a narrow page, and lists it with its tab list.
1263
+ *
1264
+ * @param props - The words, the count and the trigger's props.
1265
+ * @returns The `button` element, or nothing on a narrow page.
1266
+ */
1267
+ declare function Tab({ children, count, disabled, value, ...rest }: TabProps): null | ReactElement;
1268
+ //#endregion
1269
+ //#region src/page/tabs.d.ts
1270
+ /**
1271
+ * Renders the `div` with the recipe's tabs class.
1272
+ */
1273
+ declare const Tabs$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
1274
+ /**
1275
+ * Describes the props of the tab strip: the props of a `div`.
1276
+ */
1277
+ type TabsProps = ComponentProps<typeof Tabs$1>;
1278
+ //#endregion
1279
+ //#region src/page/title.d.ts
1280
+ /**
1281
+ * Renders the `h1` with the recipe's title class.
1282
+ */
1283
+ declare const Title$1: import("@stealthscale/theme").StyledComponent<"h1", {}>;
1284
+ /**
1285
+ * Describes the props of the title: the props of a heading.
1286
+ */
1287
+ type TitleProps$1 = ComponentProps<typeof Title$1>;
1288
+ //#endregion
1289
+ //#region src/page/toolbar.d.ts
1290
+ /**
1291
+ * Renders the `div` with the recipe's toolbar class.
1292
+ */
1293
+ declare const Banded: import("@stealthscale/theme").StyledComponent<"div", {}>;
1294
+ /**
1295
+ * Describes the props of the toolbar band: `sticky` and the props of a `div`.
1296
+ */
1297
+ interface ToolbarProps extends ComponentProps<typeof Banded>, StickyProps {}
1298
+ /**
1299
+ * Renders the toolbar band, with `data-sticky` when it sticks.
1300
+ *
1301
+ * @param props - Whether it sticks, and the props of a `div`.
1302
+ * @returns The `div` element.
1303
+ */
1304
+ declare function Toolbar({ sticky, ...rest }: ToolbarProps): ReactElement;
1305
+ //#endregion
1306
+ //#region src/page/trail.d.ts
1307
+ /**
1308
+ * Renders the `a` with the recipe's trail class.
1309
+ */
1310
+ declare const Trail: import("@stealthscale/theme").StyledComponent<"a", {}>;
1311
+ /**
1312
+ * Describes the props of the link back: the props of an `a`.
1313
+ */
1314
+ type TrailProps = ComponentProps<typeof Trail>;
1315
+ //#endregion
1316
+ //#region src/page/when.d.ts
1317
+ /**
1318
+ * Describes the props of the switch: the width and the parts that render at it.
1319
+ */
1320
+ interface WhenComponentProps extends WhenProps {
1321
+ /**
1322
+ * The parts that render at the width.
1323
+ */
1324
+ readonly children?: ReactNode | undefined;
1325
+ }
1326
+ /**
1327
+ * Renders its children at the width it names, and nothing at the other.
1328
+ *
1329
+ * @param props - The width, and the parts that render at it.
1330
+ * @returns The children, or `null`.
1331
+ */
1332
+ declare function When({ children, when }: WhenComponentProps): ReactNode;
1333
+ declare namespace index_d_exports$3 {
1334
+ export { Action$3 as Action, ActionProps$3 as ActionProps, Actions$1 as Actions, ActionsProps$1 as ActionsProps, Aside, AsideFold, AsideProps, Banner, BannerProps, Body$1 as Body, BodyProps$1 as BodyProps, Breadcrumbs, BreadcrumbsProps, Context, ContextProps, Crumb, Description$1 as Description, DescriptionProps$1 as DescriptionProps, Footer$2 as Footer, FooterProps$2 as FooterProps, Header$2 as Header, HeaderProps$2 as HeaderProps, Leading, LeadingProps, Meta, MetaProps, Nav$1 as Nav, NavProps$1 as NavProps, Palette, PaletteProps, Picker, PickerProps, Root$5 as Root, RootProps$5 as RootProps, Tab, TabList, TabListProps, TabProps, Tabs$1 as Tabs, TabsProps, Title$1 as Title, TitleProps$1 as TitleProps, Toolbar, ToolbarProps, Trail, TrailProps, When, WhenComponentProps };
1335
+ }
1336
+ //#endregion
1337
+ //#region src/section/action.d.ts
1338
+ /**
1339
+ * Renders the library's button with the recipe's action class.
1340
+ */
1341
+ declare const Acted$1: import("@stealthscale/theme").StyledComponent<import("@stealthscale/theme").StyledComponent<"button", {
1342
+ readonly effect?: "glow" | "pulse";
1343
+ readonly elevation?: import("@stealthscale/theme/authoring").Lift;
1344
+ readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning";
1345
+ readonly shape?: "square";
1346
+ readonly size?: import("@stealthscale/theme/authoring").Scale;
1347
+ readonly variant?: "ghost" | "glass" | "outline" | "plain" | "solid" | "subtle" | "surface";
1348
+ }>, {}>;
1349
+ /**
1350
+ * Describes the props of an action: its icon, whether it is primary, its priority and the props of
1351
+ * the library's button.
1352
+ */
1353
+ interface ActionProps$2 extends Omit<ComponentProps<typeof Acted$1>, "onClick"> {
1354
+ /**
1355
+ * Icon before the words, which a narrow section shows alone.
1356
+ */
1357
+ readonly icon?: ReactNode | undefined;
1358
+ /**
1359
+ * Handler the button or the menu row calls when a reader presses it.
1360
+ */
1361
+ readonly onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined;
1362
+ /**
1363
+ * Whether the action is the section's primary action, which renders solid and keeps its words.
1364
+ */
1365
+ readonly primary?: boolean | undefined;
1366
+ /**
1367
+ * Priority that decides how a narrow section folds the action, in place of the one `icon` and
1368
+ * `primary` imply.
1369
+ */
1370
+ readonly priority?: Priority | undefined;
1371
+ }
1372
+ /**
1373
+ * Renders the action, or nothing while the section folds it into the menu.
1374
+ *
1375
+ * @param props - The icon, the primary flag, the priority and the props of the library's button.
1376
+ * @returns The `button` element, or nothing on a narrow section that folds it.
1377
+ */
1378
+ declare function Action$2({ as, children, disabled, icon, onClick, primary, priority, ...rest }: ActionProps$2): null | ReactElement;
1379
+ //#endregion
1380
+ //#region src/section/actions.d.ts
1381
+ /**
1382
+ * Renders the `div` with the recipe's actions class.
1383
+ */
1384
+ declare const Row: import("@stealthscale/theme").StyledComponent<"div", {}>;
1385
+ /**
1386
+ * Describes the props of the actions row: the menu's words and mark, and the props of a `div`.
1387
+ */
1388
+ interface ActionsProps extends ComponentProps<typeof Row> {
1389
+ /**
1390
+ * Words that name the menu of folded actions. Defaults to `More actions`.
1391
+ */
1392
+ readonly more?: string | undefined;
1393
+ /**
1394
+ * Mark the menu's trigger shows in place of its words.
1395
+ */
1396
+ readonly moreIcon?: ReactNode | undefined;
1397
+ }
1398
+ /**
1399
+ * Renders the row, with the menu at its end while an action is folded.
1400
+ *
1401
+ * @param props - The menu's words and mark, and the props of a `div`.
1402
+ * @returns The `div` element.
1403
+ */
1404
+ declare function Actions({ children, more, moreIcon, ...rest }: ActionsProps): ReactElement;
1405
+ //#endregion
1406
+ //#region src/section/body.d.ts
1407
+ /**
1408
+ * Renders the `div` with the recipe's body class.
1409
+ */
1410
+ declare const Content$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
1411
+ /**
1412
+ * Describes the props of the body: whether it runs to the card's edges, and the props of a `div`.
1413
+ */
1414
+ interface BodyProps extends ComponentProps<typeof Content$1> {
1415
+ /**
1416
+ * Whether the body drops its padding and runs to the card's edges.
1417
+ */
1418
+ readonly bleed?: boolean | undefined;
1419
+ }
1420
+ /**
1421
+ * Renders the body, with `data-bleed` while it runs to the card's edges.
1422
+ *
1423
+ * @param props - Whether the body bleeds, and the props of a `div`.
1424
+ * @returns The `div` element.
1425
+ */
1426
+ declare function Body({ bleed, ...rest }: BodyProps): ReactElement;
1427
+ //#endregion
1428
+ //#region src/section/description.d.ts
1429
+ /**
1430
+ * Renders the `p` with the recipe's description class.
1431
+ */
1432
+ declare const Description: import("@stealthscale/theme").StyledComponent<"p", {}>;
1433
+ /**
1434
+ * Describes the props of the description: the props of a `p`.
1435
+ */
1436
+ type DescriptionProps = ComponentProps<typeof Description>;
1437
+ //#endregion
1438
+ //#region src/section/footer.d.ts
1439
+ /**
1440
+ * Renders the `footer` with the recipe's footer class.
1441
+ */
1442
+ declare const Footer$1: import("@stealthscale/theme").StyledComponent<"footer", {}>;
1443
+ /**
1444
+ * Describes the props of the footer: the props of a `footer`.
1445
+ */
1446
+ type FooterProps$1 = ComponentProps<typeof Footer$1>;
1447
+ //#endregion
1448
+ //#region src/section/header.d.ts
1449
+ /**
1450
+ * Renders the `header` with the recipe's header class.
1451
+ */
1452
+ declare const Header$1: import("@stealthscale/theme").StyledComponent<"header", {}>;
1453
+ /**
1454
+ * Describes the props of the header: the props of a `header`.
1455
+ */
1456
+ type HeaderProps$1 = ComponentProps<typeof Header$1>;
1457
+ //#endregion
1458
+ //#region src/section/root.d.ts
1459
+ /**
1460
+ * Renders the `section` with the recipe's root class, which provides the variants to the parts.
1461
+ */
1462
+ declare const Block: import("@stealthscale/theme").StyledComponent<"section", {
1463
+ readonly annotated?: boolean;
1464
+ readonly size?: "lg" | "md" | "sm";
1465
+ readonly variant?: "plain" | "surface";
1466
+ }>;
1467
+ /**
1468
+ * Describes the props of the section: the recipe's variants and the props of a `section`, without
1469
+ * `aria-labelledby`, which the root sets.
1470
+ */
1471
+ type RootProps$4 = Omit<ComponentProps<typeof Block>, "aria-labelledby">;
1472
+ /**
1473
+ * Renders the section with its title's id and its measured width.
1474
+ *
1475
+ * @param props - The recipe's variants and the props of a `section`.
1476
+ * @returns The `section` element, with `data-narrow` while it is narrow.
1477
+ */
1478
+ declare function Root$4({ size, ...rest }: RootProps$4): ReactElement;
1479
+ //#endregion
1480
+ //#region src/section/title.d.ts
1481
+ /**
1482
+ * Renders the `h2` with the recipe's title class.
1483
+ */
1484
+ declare const Named: import("@stealthscale/theme").StyledComponent<"h2", {}>;
1485
+ /**
1486
+ * Describes the props of the title: the props of a heading without `id`, which the section sets.
1487
+ */
1488
+ type TitleProps = Omit<ComponentProps<typeof Named>, "id">;
1489
+ /**
1490
+ * Renders the heading with the section's title id.
1491
+ *
1492
+ * @param props - The props of a heading, without `id`.
1493
+ * @returns The heading element.
1494
+ */
1495
+ declare function Title(props: TitleProps): ReactElement;
1496
+ declare namespace index_d_exports$4 {
1497
+ export { Action$2 as Action, ActionProps$2 as ActionProps, Actions, ActionsProps, Body, BodyProps, Description, DescriptionProps, Footer$1 as Footer, FooterProps$1 as FooterProps, Header$1 as Header, HeaderProps$1 as HeaderProps, Root$4 as Root, RootProps$4 as RootProps, Title, TitleProps };
1498
+ }
1499
+ //#endregion
1500
+ //#region src/sidebar/content.d.ts
1501
+ /**
1502
+ * Describes the props of `Content`: the props of the scroll area's content, without `as`, because
1503
+ * another element in its place would drop the content's part.
1504
+ */
1505
+ type ContentProps = Omit<ScrollArea.ContentProps, "as">;
1506
+ /**
1507
+ * Renders the blocks inside a scroll area with a vertical bar.
1508
+ *
1509
+ * @param props - The props of the scroll area's content, the blocks among its children.
1510
+ * @returns The scroll area's root.
1511
+ */
1512
+ declare function Content(props: ContentProps): ReactElement;
1513
+ //#endregion
1514
+ //#region src/sidebar/empty.d.ts
1515
+ /**
1516
+ * Renders the message `p` at the sidebar's size.
1517
+ */
1518
+ declare const Noted: import("@stealthscale/theme").StyledComponent<"p", {}>;
1519
+ /**
1520
+ * Describes the props of `Empty`.
1521
+ */
1522
+ type EmptyProps = ComponentProps<typeof Noted>;
1523
+ /**
1524
+ * Renders the message while the scope keeps no row, and announces it while a query is active.
1525
+ *
1526
+ * @param props - The `p` element's props.
1527
+ * @returns The `p` element, or nothing while the scope keeps a row.
1528
+ */
1529
+ declare function Empty(props: EmptyProps): null | ReactElement;
1530
+ //#endregion
1531
+ //#region src/sidebar/footer.d.ts
1532
+ /**
1533
+ * Renders the footer `div` at the sidebar's size.
1534
+ */
1535
+ declare const Footer: import("@stealthscale/theme").StyledComponent<"div", {}>;
1536
+ /**
1537
+ * Describes the props of `Footer`.
1538
+ */
1539
+ type FooterProps = ComponentProps<typeof Footer>;
1540
+ //#endregion
1541
+ //#region src/sidebar/header.d.ts
1542
+ /**
1543
+ * Renders the header `div` at the sidebar's size.
1544
+ */
1545
+ declare const Header: import("@stealthscale/theme").StyledComponent<"div", {}>;
1546
+ /**
1547
+ * Describes the props of `Header`.
1548
+ */
1549
+ type HeaderProps = ComponentProps<typeof Header>;
1550
+ //#endregion
1551
+ //#region src/sidebar/nav-action.d.ts
1552
+ /**
1553
+ * Renders the control `button` at the sidebar's size, typed `button` so it submits no form.
1554
+ */
1555
+ declare const NavAction: import("@stealthscale/theme").StyledComponent<"button", {}>;
1556
+ /**
1557
+ * Describes the props of `NavAction`.
1558
+ */
1559
+ type NavActionProps = ComponentProps<typeof NavAction>;
1560
+ //#endregion
1561
+ //#region src/sidebar/nav-heading.d.ts
1562
+ /**
1563
+ * Renders the heading `h2` at the sidebar's size.
1564
+ */
1565
+ declare const Headed$1: import("@stealthscale/theme").StyledComponent<"h2", {}>;
1566
+ /**
1567
+ * Describes the props of `NavHeading`, `id` among them.
1568
+ */
1569
+ type NavHeadingProps = ComponentProps<typeof Headed$1>;
1570
+ /**
1571
+ * Renders a heading over one list of destinations.
1572
+ *
1573
+ * @param props - The `h2` element's props, `id` among them.
1574
+ * @returns The `h2` element with the caller's `id`, at the sidebar's size.
1575
+ */
1576
+ declare function NavHeading(props: NavHeadingProps): ReactElement;
1577
+ //#endregion
1578
+ //#region src/sidebar/nav-label.d.ts
1579
+ /**
1580
+ * Renders the heading `h2` at the sidebar's size.
1581
+ */
1582
+ declare const Headed: import("@stealthscale/theme").StyledComponent<"h2", {}>;
1583
+ /**
1584
+ * Describes the props of `NavLabel`, less the `id` the block sets.
1585
+ */
1586
+ type NavLabelProps = Omit<ComponentProps<typeof Headed>, "id">;
1587
+ /**
1588
+ * Renders the label of a nav block.
1589
+ *
1590
+ * @param props - The `h2` element's props, less `id`.
1591
+ * @returns The heading, with the identifier the block's `aria-labelledby` points at.
1592
+ */
1593
+ declare function NavLabel(props: NavLabelProps): ReactElement;
1594
+ //#endregion
1595
+ //#region src/sidebar/nav.d.ts
1596
+ /**
1597
+ * Renders the block `nav` at the sidebar's size.
1598
+ */
1599
+ declare const Blocked: import("@stealthscale/theme").StyledComponent<"nav", {}>;
1600
+ /**
1601
+ * Describes the props of `Nav`, less the `aria-labelledby` the block sets.
1602
+ */
1603
+ type NavProps = Omit<ComponentProps<typeof Blocked>, "aria-labelledby">;
1604
+ /**
1605
+ * Renders a block of destinations named by its label or by `aria-label`.
1606
+ *
1607
+ * @param props - The `nav` element's props, less `aria-labelledby`.
1608
+ * @returns The block, with `aria-labelledby` unless `aria-label` is passed.
1609
+ */
1610
+ declare function Nav(props: NavProps): ReactElement;
1611
+ //#endregion
1612
+ //#region src/sidebar/root.d.ts
1613
+ /**
1614
+ * Renders the column and provides the variants to every part below it.
1615
+ */
1616
+ declare const Columned: import("@stealthscale/theme").StyledComponent<"div", {
1617
+ readonly size?: "lg" | "md" | "sm";
1618
+ readonly variant?: "outline" | "plain" | "subtle" | "surface";
1619
+ }>;
1620
+ /**
1621
+ * Describes the props of `Root`.
1622
+ */
1623
+ interface RootProps$3 extends ComponentProps<typeof Columned> {
1624
+ /**
1625
+ * Whether the sidebar is a rail of icons, in place of the one its panel implies.
1626
+ */
1627
+ readonly iconic?: boolean | undefined;
1628
+ }
1629
+ /**
1630
+ * Renders the sidebar's column.
1631
+ *
1632
+ * @param props - `iconic`, the recipe's variants and the `div` element's props.
1633
+ * @returns The column, with `data-iconic` on a rail.
1634
+ */
1635
+ declare function Root$3({ iconic, onClick, size, ...rest }: RootProps$3): ReactElement;
1636
+ //#endregion
1637
+ //#region src/sidebar/search.d.ts
1638
+ /**
1639
+ * Describes the props of `Search`: the props of the forms package's search input and the shortcut.
1640
+ */
1641
+ interface SearchProps$1 extends SearchInputProps {
1642
+ /**
1643
+ * Key that moves focus to the field with the platform's modifier held: `k` for ⌘K and Ctrl+K.
1644
+ */
1645
+ readonly shortcut?: string | undefined;
1646
+ }
1647
+ /**
1648
+ * Renders the field that filters the scope, the rail's button, or the caller's field.
1649
+ *
1650
+ * @param props - The props of the search input and the shortcut.
1651
+ * @returns The `div` element, or nothing on a rail it cannot open.
1652
+ */
1653
+ declare function Search$1({ "aria-label": named, children, defaultValue, onKeyDown, onValueChange, searchIndicator, shortcut, value: driven, ...rest }: SearchProps$1): null | ReactElement;
1654
+ //#endregion
1655
+ //#region src/sidebar/separator.d.ts
1656
+ /**
1657
+ * Renders the divider at the sidebar's size.
1658
+ */
1659
+ declare const Separator$1: import("@stealthscale/theme").StyledComponent<typeof Divider, {}>;
1660
+ /**
1661
+ * Describes the props of `Separator`.
1662
+ */
1663
+ type SeparatorProps$1 = ComponentProps<typeof Separator$1>;
1664
+ declare namespace index_d_exports$5 {
1665
+ export { Content, ContentProps, Empty, EmptyProps, Footer, FooterProps, Header, HeaderProps, Nav, NavAction, NavActionProps, NavHeading, NavHeadingProps, NavLabel, NavLabelProps, NavProps, Root$3 as Root, RootProps$3 as RootProps, Search$1 as Search, SearchProps$1 as SearchProps, Separator$1 as Separator, SeparatorProps$1 as SeparatorProps };
1666
+ }
1667
+ //#endregion
1668
+ //#region src/splitter/machine.d.ts
1669
+ /**
1670
+ * Describes the api `useSplitter` returns: the sizes, the methods that change them and a prop
1671
+ * getter per part.
1672
+ *
1673
+ * @remarks
1674
+ * The type is the return type of `connect`, so it follows the installed machine version. That
1675
+ * type references `@zag-js/types`, so the package declares that package as a dependency.
1676
+ */
1677
+ type SplitterApi = ReturnType<typeof splitter$1.connect>;
1678
+ /**
1679
+ * Describes the machine settings a caller passes to `useSplitter`: the panels, their sizes and the
1680
+ * callbacks.
1681
+ */
1682
+ interface SplitterOptions extends Omit<splitter$1.Props, "id" | "ids"> {
1683
+ /**
1684
+ * Base of the ids of the root, the panels and the triggers. A generated id is used when absent.
1685
+ */
1686
+ readonly id?: string | undefined;
1687
+ }
1688
+ /**
1689
+ * Starts the splitter machine and returns its connected api.
1690
+ *
1691
+ * @param options - The machine settings. A generated id is used when `id` is absent.
1692
+ * @returns The api the root provides to its parts.
1693
+ */
1694
+ declare function useSplitter(options: SplitterOptions): SplitterApi;
1695
+ //#endregion
1696
+ //#region src/splitter/panel.d.ts
1697
+ /**
1698
+ * Renders the `div` with the recipe's panel class.
1699
+ */
1700
+ declare const Drawn$3: import("@stealthscale/theme").StyledComponent<"div", {}>;
1701
+ /**
1702
+ * Describes the props of a panel: its id among the machine's panels and the props of a `div`.
1703
+ */
1704
+ interface PanelProps extends Omit<ComponentProps<typeof Drawn$3>, "id"> {
1705
+ /**
1706
+ * Id of the panel in the `panels` passed to `useSplitter`. The machine derives the element's id
1707
+ * from it.
1708
+ */
1709
+ readonly id: string;
1710
+ }
1711
+ /**
1712
+ * Renders the panel with the machine's panel props merged under the caller's.
1713
+ *
1714
+ * @param props - The panel's id and the props of a `div`.
1715
+ * @returns The `div` element.
1716
+ */
1717
+ declare function Panel({ id, ...props }: PanelProps): ReactElement;
1718
+ //#endregion
1719
+ //#region src/splitter/resize-trigger-indicator.d.ts
1720
+ /**
1721
+ * Renders the `div` with the recipe's indicator class.
1722
+ */
1723
+ declare const Drawn$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
1724
+ /**
1725
+ * Describes the props of the pill: the props of a `div`.
1726
+ */
1727
+ type ResizeTriggerIndicatorProps = ComponentProps<typeof Drawn$2>;
1728
+ /**
1729
+ * Renders the pill with the machine's indicator props for its trigger merged under the caller's.
1730
+ *
1731
+ * @param props - The props of a `div`.
1732
+ * @returns The `div` element.
1733
+ */
1734
+ declare function ResizeTriggerIndicator(props: ResizeTriggerIndicatorProps): ReactElement;
1735
+ //#endregion
1736
+ //#region src/splitter/resize-trigger-separator.d.ts
1737
+ /**
1738
+ * Renders the `div` with the recipe's separator class.
1739
+ */
1740
+ declare const Drawn$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
1741
+ /**
1742
+ * Describes the props of the line: the props of a `div`.
1743
+ */
1744
+ type ResizeTriggerSeparatorProps = ComponentProps<typeof Drawn$1>;
1745
+ /**
1746
+ * Renders the line with the splitter's orientation, which decides which way it runs.
1747
+ *
1748
+ * @param props - The props of a `div`.
1749
+ * @returns The `div` element.
1750
+ */
1751
+ declare function ResizeTriggerSeparator(props: ResizeTriggerSeparatorProps): ReactElement;
1752
+ //#endregion
1753
+ //#region src/splitter/resize-trigger.d.ts
1754
+ /**
1755
+ * Renders the `div` with the recipe's resize trigger class.
1756
+ */
1757
+ declare const Drawn: import("@stealthscale/theme").StyledComponent<"div", {}>;
1758
+ /**
1759
+ * Describes the props of a trigger: the panels it sits between, whether it is disabled, its name
1760
+ * and the props of a `div`.
1761
+ */
1762
+ interface ResizeTriggerProps extends Omit<ComponentProps<typeof Drawn>, "id"> {
1763
+ /**
1764
+ * Whether the trigger ignores the pointer and the keys. A disabled trigger leaves the tab order.
1765
+ */
1766
+ readonly disabled?: boolean | undefined;
1767
+ /**
1768
+ * Ids of the panels before and after the trigger, joined by a colon, such as `files:editor`.
1769
+ */
1770
+ readonly id: `${string}:${string}`;
1771
+ /**
1772
+ * Accessible name of the trigger. Defaults to "Resize".
1773
+ */
1774
+ readonly label?: string | undefined;
1775
+ }
1776
+ /**
1777
+ * Renders the trigger with the machine's trigger props, its name, its line's orientation and its
1778
+ * primary pane merged under the caller's.
1779
+ *
1780
+ * @param props - The panels, the disabled state, the name and the props of a `div`.
1781
+ * @returns The `div` element.
1782
+ */
1783
+ declare function ResizeTrigger({ children, disabled, id, label, ...props }: ResizeTriggerProps): ReactElement;
1784
+ //#endregion
1785
+ //#region src/splitter/root.d.ts
1786
+ /**
1787
+ * Renders the `div` that provides the recipe's variants.
1788
+ */
1789
+ declare const Framed: import("@stealthscale/theme").StyledComponent<"div", {
1790
+ readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning";
1791
+ }>;
1792
+ /**
1793
+ * Describes the props of the root: the api, the recipe's variants and the props of a `div`.
1794
+ */
1795
+ interface RootProps$2 extends ComponentProps<typeof Framed> {
1796
+ /**
1797
+ * Api `useSplitter` returns, which every part reads.
1798
+ */
1799
+ readonly splitter: SplitterApi;
1800
+ }
1801
+ /**
1802
+ * Renders the root with the machine's root props but its inline layout, and provides the api to
1803
+ * the parts.
1804
+ *
1805
+ * @param props - The api, the recipe's variants and the props of a `div`.
1806
+ * @returns The `div` element inside the api provider.
1807
+ */
1808
+ declare function Root$2({ splitter, ...props }: RootProps$2): ReactElement;
1809
+ declare namespace index_d_exports$6 {
1810
+ export { ExpandCollapseDetails, Panel, PanelData, PanelProps, PanelSize, ResizeDetails, ResizeEndDetails, ResizeTrigger, ResizeTriggerIndicator, ResizeTriggerIndicatorProps, ResizeTriggerProps, ResizeTriggerSeparator, ResizeTriggerSeparatorProps, Root$2 as Root, RootProps$2 as RootProps, SplitterApi, SplitterOptions, useSplitter };
1811
+ }
1812
+ //#endregion
1813
+ //#region src/switcher/action.d.ts
1814
+ /**
1815
+ * Describes the props of `Action`: its icon, an optional value and the menu item's props.
1816
+ */
1817
+ interface ActionProps$1 extends Omit<ComponentProps<typeof Menu.Item>, "value"> {
1818
+ /**
1819
+ * Mark before the words.
1820
+ */
1821
+ readonly icon?: ReactNode | undefined;
1822
+ /**
1823
+ * Value the menu identifies the row by. A generated one when absent.
1824
+ */
1825
+ readonly value?: string | undefined;
1826
+ }
1827
+ /**
1828
+ * Renders the row with its icon before its words.
1829
+ *
1830
+ * @param props - The icon, the value and the menu item's props.
1831
+ * @returns The menu item.
1832
+ */
1833
+ declare function Action$1({ children, icon, value, ...rest }: ActionProps$1): ReactElement;
1834
+ //#endregion
1835
+ //#region src/switcher/choice.d.ts
1836
+ /**
1837
+ * Describes one workspace, project or tenant a switcher lists.
1838
+ */
1839
+ interface Choice {
1840
+ /**
1841
+ * Plan, role or region, rendered under the name in a sidebar and in the menu's row.
1842
+ */
1843
+ readonly detail?: string | undefined;
1844
+ /**
1845
+ * Whether the reader cannot switch to the choice.
1846
+ */
1847
+ readonly disabled?: boolean | undefined;
1848
+ /**
1849
+ * Address of the choice's own page, which renders its row as a link.
1850
+ */
1851
+ readonly href?: string | undefined;
1852
+ /**
1853
+ * Name of the choice.
1854
+ */
1855
+ readonly label: string;
1856
+ /**
1857
+ * Logo or avatar. The mark shows the name's initials without one.
1858
+ */
1859
+ readonly mark?: ReactNode | undefined;
1860
+ /**
1861
+ * Value the application knows the choice by.
1862
+ */
1863
+ readonly value: string;
1864
+ }
1865
+ //#endregion
1866
+ //#region src/switcher/detail.d.ts
1867
+ /**
1868
+ * Renders the detail `span` at the switcher's size.
1869
+ */
1870
+ declare const Detail: import("@stealthscale/theme").StyledComponent<"span", {}>;
1871
+ /**
1872
+ * Describes the props of `Detail`.
1873
+ */
1874
+ type DetailProps = ComponentProps<typeof Detail>;
1875
+ //#endregion
1876
+ //#region src/switcher/indicator.d.ts
1877
+ /**
1878
+ * Renders the menu's indicator with the indicator slot's class.
1879
+ */
1880
+ declare const Indicator: import("@stealthscale/theme").StyledComponent<typeof Menu.Indicator, {}>;
1881
+ /**
1882
+ * Describes the props of `Indicator`.
1883
+ */
1884
+ type IndicatorProps = ComponentProps<typeof Indicator>;
1885
+ //#endregion
1886
+ //#region src/switcher/label.d.ts
1887
+ /**
1888
+ * Renders the label `span` at the switcher's size.
1889
+ */
1890
+ declare const Label: import("@stealthscale/theme").StyledComponent<"span", {}>;
1891
+ /**
1892
+ * Describes the props of `Label`.
1893
+ */
1894
+ type LabelProps = ComponentProps<typeof Label>;
1895
+ //#endregion
1896
+ //#region src/switcher/mark.d.ts
1897
+ /**
1898
+ * Renders the mark `span` at the switcher's size, hidden from the accessibility tree.
1899
+ */
1900
+ declare const Mark: import("@stealthscale/theme").StyledComponent<"span", {}>;
1901
+ /**
1902
+ * Describes the props of `Mark`.
1903
+ */
1904
+ type MarkProps = ComponentProps<typeof Mark>;
1905
+ //#endregion
1906
+ //#region src/switcher/name.d.ts
1907
+ /**
1908
+ * Renders the name `span` at the switcher's size.
1909
+ */
1910
+ declare const Name: import("@stealthscale/theme").StyledComponent<"span", {}>;
1911
+ /**
1912
+ * Describes the props of `Name`.
1913
+ */
1914
+ type NameProps = ComponentProps<typeof Name>;
1915
+ //#endregion
1916
+ //#region src/switcher/recipe.d.ts
1917
+ /**
1918
+ * Declares the switcher's slot recipe, which styles the control that shows the current workspace,
1919
+ * project or environment and opens the menu of the others.
1920
+ *
1921
+ * @remarks
1922
+ * The recipe has six slots. The root slot is the trigger, and the mark, the label, the name, the
1923
+ * detail and the indicator are inside it. `Switcher.Root` is the disclosure package's menu, so
1924
+ * the menu's recipe styles the panel and its rows. The trigger takes the button's looks and
1925
+ * palettes from the same layer styles, so an outlined switcher has the button's light edge. The
1926
+ * mark is a square in the palette's muted fill for an initial, an icon or an avatar. The name and
1927
+ * the detail truncate to keep the control at one height. A pair of chevrons marks a control that
1928
+ * switches and not a direction, so the indicator does not rotate while the menu is open. In a
1929
+ * sidebar closed to icons the control is its mark alone, square, and in a narrow toolbar a
1930
+ * switcher with a mark hides its name. The words remain in the accessible name in both.
1931
+ */
1932
+ /**
1933
+ * Styles a ghost switcher at the middle size, alone.
1934
+ */
1935
+ declare const recipe: import("@stealthscale/theme/authoring").SlotRecipe<"detail" | "indicator" | "label" | "mark" | "name" | "root", {
1936
+ /**
1937
+ * The palette of the look and the mark.
1938
+ */
1939
+ readonly palette: {
1940
+ accent: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
1941
+ error: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
1942
+ info: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
1943
+ neutral: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
1944
+ primary: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
1945
+ secondary: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
1946
+ success: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
1947
+ warning: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
1948
+ };
1949
+ /**
1950
+ * Where the control is placed, which sets its width and its lines.
1951
+ *
1952
+ * @remarks
1953
+ * `Switcher.Root` reads the placement from the sidebar or the toolbar around it unless a
1954
+ * caller states one. The `marked` compound sizes the mark to `icon.lg` on one line, because
1955
+ * the size axis sizes it for a sidebar and a compound applies over an axis.
1956
+ */
1957
+ readonly placement: {
1958
+ alone: {
1959
+ detail: {
1960
+ display: string;
1961
+ };
1962
+ root: {
1963
+ inlineSize: string;
1964
+ minBlockSize: string;
1965
+ };
1966
+ };
1967
+ sidebar: {
1968
+ root: {
1969
+ "&[data-iconic]": {
1970
+ alignSelf: string;
1971
+ aspectRatio: string;
1972
+ borderWidth: string;
1973
+ inlineSize: string;
1974
+ justifyContent: string;
1975
+ padding: string;
1976
+ };
1977
+ inlineSize: string;
1978
+ };
1979
+ };
1980
+ toolbar: {
1981
+ detail: {
1982
+ display: string;
1983
+ };
1984
+ root: {
1985
+ inlineSize: string;
1986
+ minBlockSize: string;
1987
+ };
1988
+ };
1989
+ };
1990
+ readonly size: {
1991
+ lg: Partial<Record<"indicator" | "mark" | "name" | "root", import("@stealthscale/theme").SystemStyleObject>>;
1992
+ md: Partial<Record<"indicator" | "mark" | "name" | "root", import("@stealthscale/theme").SystemStyleObject>>;
1993
+ sm: Partial<Record<"indicator" | "mark" | "name" | "root", import("@stealthscale/theme").SystemStyleObject>>;
1994
+ };
1995
+ /**
1996
+ * The button's six looks, each one of the theme's layer styles.
1997
+ *
1998
+ * @remarks
1999
+ * `ghost`, the default, has no fill at rest, so a switcher at the head of a sidebar shows the
2000
+ * sidebar's own ground and fills under a pointer.
2001
+ */
2002
+ readonly variant: {
2003
+ ghost: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2004
+ outline: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2005
+ plain: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2006
+ solid: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2007
+ subtle: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2008
+ surface: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2009
+ };
2010
+ }>;
2011
+ //#endregion
2012
+ //#region src/switcher/sized.d.ts
2013
+ /**
2014
+ * Selects one of the sizes the menu renders at, which are the switcher's sizes.
2015
+ */
2016
+ type Step = "lg" | "md" | "sm";
2017
+ /**
2018
+ * Describes the props of `Sized`: the menu's props and the step.
2019
+ */
2020
+ interface SizedProps extends Omit<ComponentProps<typeof Menu.Root>, "size"> {
2021
+ /**
2022
+ * Size the switcher renders at.
2023
+ */
2024
+ readonly step: Step;
2025
+ }
2026
+ /**
2027
+ * Renders the menu at the step.
2028
+ *
2029
+ * @param props - The step and the menu's props.
2030
+ * @returns The menu at that size.
2031
+ */
2032
+ declare function Sized({ step, ...rest }: SizedProps): ReactElement;
2033
+ //#endregion
2034
+ //#region src/switcher/state.d.ts
2035
+ /**
2036
+ * Derives where a switcher renders from the sidebar or the toolbar around it, and provides it to
2037
+ * the switcher's parts.
2038
+ *
2039
+ * @remarks
2040
+ * A switcher in a sidebar is a row at the sidebar's size, and its mark alone while the sidebar
2041
+ * is a rail. A switcher in a toolbar is one of the row's controls at the toolbar's size, and a
2042
+ * switcher with a mark hides its name while the toolbar is narrow. Anywhere else it is one line
2043
+ * at its own size. A caller's `placement` or `size` applies over the derived one.
2044
+ */
2045
+ /**
2046
+ * Selects where a switcher renders.
2047
+ */
2048
+ type Placement = "alone" | "sidebar" | "toolbar";
2049
+ /**
2050
+ * Selects the size of a switcher.
2051
+ */
2052
+ type SwitcherSize = "lg" | "md" | "sm";
2053
+ //#endregion
2054
+ //#region src/switcher/root.d.ts
2055
+ /**
2056
+ * Binds the sized menu as the root that provides the variants.
2057
+ */
2058
+ declare const Bound: import("@stealthscale/theme").RootProvider<typeof Sized, {
2059
+ readonly palette: {
2060
+ accent: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2061
+ error: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2062
+ info: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2063
+ neutral: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2064
+ primary: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2065
+ secondary: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2066
+ success: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2067
+ warning: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2068
+ };
2069
+ readonly placement: {
2070
+ alone: {
2071
+ detail: {
2072
+ display: string;
2073
+ };
2074
+ root: {
2075
+ inlineSize: string;
2076
+ minBlockSize: string;
2077
+ };
2078
+ };
2079
+ sidebar: {
2080
+ root: {
2081
+ "&[data-iconic]": {
2082
+ alignSelf: string;
2083
+ aspectRatio: string;
2084
+ borderWidth: string;
2085
+ inlineSize: string;
2086
+ justifyContent: string;
2087
+ padding: string;
2088
+ };
2089
+ inlineSize: string;
2090
+ };
2091
+ };
2092
+ toolbar: {
2093
+ detail: {
2094
+ display: string;
2095
+ };
2096
+ root: {
2097
+ inlineSize: string;
2098
+ minBlockSize: string;
2099
+ };
2100
+ };
2101
+ };
2102
+ readonly size: {
2103
+ lg: Partial<Record<"indicator" | "mark" | "name" | "root", import("@stealthscale/theme").SystemStyleObject>>;
2104
+ md: Partial<Record<"indicator" | "mark" | "name" | "root", import("@stealthscale/theme").SystemStyleObject>>;
2105
+ sm: Partial<Record<"indicator" | "mark" | "name" | "root", import("@stealthscale/theme").SystemStyleObject>>;
2106
+ };
2107
+ readonly variant: {
2108
+ ghost: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2109
+ outline: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2110
+ plain: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2111
+ solid: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2112
+ subtle: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2113
+ surface: Record<"root", import("@stealthscale/theme").SystemStyleObject>;
2114
+ };
2115
+ }>;
2116
+ /**
2117
+ * Variant props of the switcher's recipe.
2118
+ */
2119
+ type Variants = RecipeProps<typeof recipe>;
2120
+ /**
2121
+ * Props of the binding, with the variants typed as the recipe types them.
2122
+ */
2123
+ type ProvidedProps = Omit<ComponentProps<typeof Bound>, keyof Variants> & Variants;
2124
+ /**
2125
+ * Describes the props of `Root`: the choices and their glyphs, the switcher's variants and the
2126
+ * menu's props.
2127
+ *
2128
+ * @remarks
2129
+ * The menu's recipe also offers `size` and `variant`. Over the menu's root the two `variant` axes
2130
+ * intersect to a type no value satisfies, so the switcher's axes replace the menu's here. The
2131
+ * menu's size is the switcher's `size`, so `step` is omitted.
2132
+ */
2133
+ interface RootProps$1 extends Omit<ProvidedProps, "placement" | "size" | "step"> {
2134
+ /**
2135
+ * Glyph that marks the current choice's row in the menu.
2136
+ */
2137
+ readonly checkIcon?: ReactNode | undefined;
2138
+ /**
2139
+ * Value of the choice that is current at first, when the caller does not control it. Defaults to
2140
+ * the first choice.
2141
+ */
2142
+ readonly defaultValue?: string | undefined;
2143
+ /**
2144
+ * Glyph at the end of the trigger.
2145
+ */
2146
+ readonly indicator?: ReactNode | undefined;
2147
+ /**
2148
+ * The choices. With them the root renders the trigger and the menu.
2149
+ */
2150
+ readonly items?: readonly Choice[] | undefined;
2151
+ /**
2152
+ * Kind of thing the switcher switches, which a screen reader announces before the current name.
2153
+ * Used with `items`.
2154
+ */
2155
+ readonly label?: string | undefined;
2156
+ /**
2157
+ * Called with the value of the choice the reader switches to.
2158
+ */
2159
+ readonly onValueChange?: ((value: string) => void) | undefined;
2160
+ /**
2161
+ * Where the switcher renders. Read from the sidebar or the toolbar around it when absent.
2162
+ */
2163
+ readonly placement?: Placement | undefined;
2164
+ /**
2165
+ * Size of the switcher. The sidebar's or the toolbar's size when absent, and `md` alone.
2166
+ */
2167
+ readonly size?: SwitcherSize | undefined;
2168
+ /**
2169
+ * Value of the current choice, when the caller controls it.
2170
+ */
2171
+ readonly value?: string | undefined;
2172
+ }
2173
+ /**
2174
+ * Renders the menu with the switcher's variants, at the switcher's size.
2175
+ *
2176
+ * @remarks
2177
+ * A caller's `positioning` applies over the placement's, and a caller's `ids` over the trigger id
2178
+ * the root shares with the rail's tooltip.
2179
+ * @param props - The choices, the glyphs, the switcher's variants and the menu's props.
2180
+ * @returns The menu, providing the variants and the placement.
2181
+ */
2182
+ declare function Root$1({ checkIcon, children, defaultValue, indicator, items, label, onValueChange, placement, positioning, size, value, ...rest }: RootProps$1): ReactElement;
2183
+ //#endregion
2184
+ //#region src/switcher/trigger.d.ts
2185
+ /**
2186
+ * Renders the menu's trigger with the root slot's class.
2187
+ */
2188
+ declare const Pressed: import("@stealthscale/theme").StyledComponent<typeof Menu.Trigger, {}>;
2189
+ /**
2190
+ * Describes the props of `Trigger`.
2191
+ */
2192
+ interface TriggerProps extends ComponentProps<typeof Pressed> {
2193
+ /**
2194
+ * Kind of thing the control switches: `Workspace`, `Project`, `Environment`. A screen reader
2195
+ * announces it before the current name.
2196
+ */
2197
+ readonly label: string;
2198
+ }
2199
+ /**
2200
+ * Renders the control with its label before its children.
2201
+ *
2202
+ * @param props - `label` and the menu trigger's props.
2203
+ * @returns The menu's trigger with the hidden label before the children.
2204
+ */
2205
+ declare function Trigger({ children, label, ...rest }: TriggerProps): ReactElement;
2206
+ declare namespace index_d_exports$7 {
2207
+ export { Action$1 as Action, ActionProps$1 as ActionProps, Choice, Detail, DetailProps, Indicator, IndicatorProps, Label, LabelProps, Mark, MarkProps, Name, NameProps, Placement, Root$1 as Root, RootProps$1 as RootProps, SwitcherSize, Trigger, TriggerProps };
2208
+ }
2209
+ //#endregion
2210
+ //#region src/toolbar/action.d.ts
2211
+ /**
2212
+ * Renders the library's button with the recipe's action class.
2213
+ */
2214
+ declare const Acted: import("@stealthscale/theme").StyledComponent<import("@stealthscale/theme").StyledComponent<"button", {
2215
+ readonly effect?: "glow" | "pulse";
2216
+ readonly elevation?: import("@stealthscale/theme/authoring").Lift;
2217
+ readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning";
2218
+ readonly shape?: "square";
2219
+ readonly size?: import("@stealthscale/theme/authoring").Scale;
2220
+ readonly variant?: "ghost" | "glass" | "outline" | "plain" | "solid" | "subtle" | "surface";
2221
+ }>, {}>;
2222
+ /**
2223
+ * Describes the props of an action: its icon, whether it is primary, its priority and the props of
2224
+ * the library's button.
2225
+ */
2226
+ interface ActionProps extends Omit<ItemProps<typeof Acted>, "as" | "href" | "onClick"> {
2227
+ /**
2228
+ * Icon before the words, which a narrow row shows alone.
2229
+ */
2230
+ readonly icon?: ReactNode | undefined;
2231
+ /**
2232
+ * Handler the button or the menu row calls when a reader presses it.
2233
+ */
2234
+ readonly onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined;
2235
+ /**
2236
+ * Whether the action is the row's primary action, which renders solid and keeps its words.
2237
+ */
2238
+ readonly primary?: boolean | undefined;
2239
+ /**
2240
+ * Priority that decides how a narrow row folds the action, in place of the one `icon` and
2241
+ * `primary` imply.
2242
+ */
2243
+ readonly priority?: Priority | undefined;
2244
+ }
2245
+ /**
2246
+ * Renders the action, or nothing while the row folds it into its menu.
2247
+ *
2248
+ * @param props - The icon, the primary flag, the priority and the props of the library's button.
2249
+ * @returns The `button` element, or nothing on a narrow row that folds it.
2250
+ */
2251
+ declare function Action({ children, disabled, icon, onClick, primary, priority, ...rest }: ActionProps): null | ReactElement;
2252
+ //#endregion
2253
+ //#region src/toolbar/center.d.ts
2254
+ /**
2255
+ * Renders the `div` with the recipe's center class.
2256
+ */
2257
+ declare const Center: import("@stealthscale/theme").StyledComponent<"div", {}>;
2258
+ /**
2259
+ * Describes the props of the centre band: the props of a `div`.
2260
+ */
2261
+ type CenterProps = ComponentProps<typeof Center>;
2262
+ //#endregion
2263
+ //#region src/toolbar/end.d.ts
2264
+ /**
2265
+ * Renders the `div` with the recipe's end class.
2266
+ */
2267
+ declare const End: import("@stealthscale/theme").StyledComponent<"div", {}>;
2268
+ /**
2269
+ * Describes the props of the end band: the props of a `div`.
2270
+ */
2271
+ type EndProps = ComponentProps<typeof End>;
2272
+ //#endregion
2273
+ //#region src/toolbar/group.d.ts
2274
+ /**
2275
+ * Renders the layout package's group, attached, with the recipe's group class.
2276
+ */
2277
+ declare const Group: import("@stealthscale/theme").StyledComponent<import("@stealthscale/theme").StyledComponent<"div", {
2278
+ readonly align?: import("@stealthscale/theme/authoring").Align;
2279
+ readonly dim?: boolean;
2280
+ readonly attached?: boolean;
2281
+ readonly gap?: "lg" | "md" | "sm" | "xl" | "xs";
2282
+ readonly grow?: boolean;
2283
+ readonly justify?: import("@stealthscale/theme/authoring").Justify;
2284
+ readonly orientation?: "horizontal" | "vertical";
2285
+ }>, {}>;
2286
+ /**
2287
+ * Describes the props of the group: the props of the layout package's group.
2288
+ */
2289
+ type GroupProps = ComponentProps<typeof Group>;
2290
+ //#endregion
2291
+ //#region src/toolbar/anchor.d.ts
2292
+ /**
2293
+ * Renders an `a` element with the classes of the library's button.
2294
+ *
2295
+ * @param props - The props of the library's button and the anchor's target.
2296
+ * @returns The `a` element.
2297
+ */
2298
+ declare function Anchor(props: ButtonProps): ReactElement;
2299
+ //#endregion
2300
+ //#region src/toolbar/link.d.ts
2301
+ /**
2302
+ * Renders the anchor with the recipe's action class.
2303
+ */
2304
+ declare const Linked: import("@stealthscale/theme").StyledComponent<typeof Anchor, {}>;
2305
+ /**
2306
+ * Describes the props of a link: its target, whether it is the current page, its icon, its
2307
+ * priority and the props of the library's button.
2308
+ */
2309
+ interface LinkProps extends Omit<ItemProps<typeof Linked>, "as" | "href" | "onClick"> {
2310
+ /**
2311
+ * Whether the link is the reader's current page.
2312
+ */
2313
+ readonly current?: boolean | undefined;
2314
+ /**
2315
+ * Target of the link.
2316
+ */
2317
+ readonly href: string;
2318
+ /**
2319
+ * Icon before the words, which a narrow row shows alone.
2320
+ */
2321
+ readonly icon?: ReactNode | undefined;
2322
+ /**
2323
+ * Handler the link or the menu row calls when a reader presses it. React's handler type accepts
2324
+ * a router's anchor handler.
2325
+ */
2326
+ readonly onClick?: MouseEventHandler<HTMLElement> | undefined;
2327
+ /**
2328
+ * Priority that decides how a narrow row folds the link, in place of the one `icon` implies.
2329
+ */
2330
+ readonly priority?: Priority | undefined;
2331
+ }
2332
+ /**
2333
+ * Renders the link, or nothing while the row folds it into its menu.
2334
+ *
2335
+ * @param props - The target, the current flag, the icon, the priority and the button's props.
2336
+ * @returns The `a` element, or nothing on a narrow row that folds it.
2337
+ */
2338
+ declare function Link({ children, current, href, icon, onClick, priority, ...rest }: LinkProps): null | ReactElement;
2339
+ //#endregion
2340
+ //#region src/toolbar/root.d.ts
2341
+ /**
2342
+ * Renders the roving focus root with the recipe's root class.
2343
+ */
2344
+ declare const Rowed: import("@stealthscale/theme").StyledComponent<typeof RovingFocus.Root, {
2345
+ readonly radius?: "l1" | "l2" | "l3";
2346
+ readonly size?: import("@stealthscale/theme/authoring").Scale;
2347
+ readonly variant?: "outline" | "plain" | "surface";
2348
+ }>;
2349
+ /**
2350
+ * Describes the props of the toolbar: its accessible name, the menu's words and mark, the recipe's
2351
+ * variants, the roving focus options and the props of a `div`.
2352
+ */
2353
+ interface RootProps extends ComponentProps<typeof Rowed> {
2354
+ /**
2355
+ * The accessible name of the row.
2356
+ */
2357
+ readonly "aria-label": string;
2358
+ /**
2359
+ * Words that name the menu of folded actions. Defaults to `More actions`.
2360
+ */
2361
+ readonly more?: string | undefined;
2362
+ /**
2363
+ * Mark the menu's trigger shows in place of its words.
2364
+ */
2365
+ readonly moreIcon?: ReactNode | undefined;
2366
+ }
2367
+ /**
2368
+ * Renders the row with its measured width, and the menu while an action is folded.
2369
+ *
2370
+ * @param props - The name, the menu's words and mark, the variants, the roving focus options and
2371
+ * the props of a `div`.
2372
+ * @returns The `div` element with `role="toolbar"`.
2373
+ */
2374
+ declare function Root({ children, more, moreIcon, size, wrap, ...rest }: RootProps): ReactElement;
2375
+ //#endregion
2376
+ //#region src/toolbar/search.d.ts
2377
+ /**
2378
+ * Describes the props of the search: the props of the forms package's search input.
2379
+ */
2380
+ type SearchProps = SearchInputProps;
2381
+ /**
2382
+ * Renders the field, and on a narrow row the button it folds to.
2383
+ *
2384
+ * @param props - The props of the search input.
2385
+ * @returns The field, the folded button, or both while the search is open.
2386
+ */
2387
+ declare function Search({ "aria-label": named, searchIndicator, size, ...rest }: SearchProps): ReactElement;
2388
+ //#endregion
2389
+ //#region src/toolbar/separator.d.ts
2390
+ /**
2391
+ * Renders the vertical divider with the recipe's separator class.
2392
+ */
2393
+ declare const Separator: import("@stealthscale/theme").StyledComponent<typeof Divider, {}>;
2394
+ /**
2395
+ * Describes the props of the separator: the props of a divider.
2396
+ */
2397
+ type SeparatorProps = ComponentProps<typeof Separator>;
2398
+ //#endregion
2399
+ //#region src/toolbar/start.d.ts
2400
+ /**
2401
+ * Renders the `div` with the recipe's start class.
2402
+ */
2403
+ declare const Start: import("@stealthscale/theme").StyledComponent<"div", {}>;
2404
+ /**
2405
+ * Describes the props of the start band: the props of a `div`.
2406
+ */
2407
+ type StartProps = ComponentProps<typeof Start>;
2408
+ declare namespace index_d_exports$8 {
2409
+ export { Action, ActionProps, Center, CenterProps, End, EndProps, Group, GroupProps, Item, ItemProps, Link, LinkProps, Root, RootProps, Search, SearchProps, Separator, SeparatorProps, Start, StartProps };
2410
+ }
2411
+ //#endregion
2412
+ export { index_d_exports as ActionBar, index_d_exports$1 as AppShell, index_d_exports$2 as FloatingPanel, index_d_exports$3 as Page, index_d_exports$4 as Section, index_d_exports$5 as Sidebar, index_d_exports$6 as Splitter, index_d_exports$7 as Switcher, index_d_exports$8 as Toolbar };