@alea-design/ui 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button/Button.d.ts +3 -1
- package/dist/components/button/Button.js +64 -63
- package/dist/components/card/Card.d.ts +6 -2
- package/dist/components/card/Card.js +20 -20
- package/dist/components/combobox/Autocomplete.d.ts +4 -0
- package/dist/components/combobox/Autocomplete.js +89 -87
- package/dist/components/command/CommandPalette.d.ts +10 -0
- package/dist/components/command/CommandPalette.js +76 -52
- package/dist/components/data/Data.d.ts +6 -4
- package/dist/components/data/Data.js +66 -56
- package/dist/components/date/Date.d.ts +16 -2
- package/dist/components/date/Date.js +80 -69
- package/dist/components/display/Display.d.ts +3 -1
- package/dist/components/display/Display.js +27 -27
- package/dist/components/display/Display2.d.ts +2 -2
- package/dist/components/display/Display2.js +28 -27
- package/dist/components/feedback/Feedback.d.ts +3 -1
- package/dist/components/feedback/Feedback.js +102 -102
- package/dist/components/feedback/PageSkeleton.d.ts +19 -0
- package/dist/components/feedback/PageSkeleton.js +58 -0
- package/dist/components/field/Field.d.ts +3 -1
- package/dist/components/field/Field.js +82 -82
- package/dist/components/filter/FilterBar.d.ts +5 -2
- package/dist/components/filter/FilterBar.js +97 -66
- package/dist/components/form/Form.d.ts +8 -2
- package/dist/components/form/Form.js +53 -40
- package/dist/components/icon/icon-names.d.ts +2 -2
- package/dist/components/icon/icon-names.js +4 -2
- package/dist/components/list/List.d.ts +6 -2
- package/dist/components/list/List.js +65 -62
- package/dist/components/list/Lists2.d.ts +4 -0
- package/dist/components/list/Lists2.js +35 -35
- package/dist/components/media/Media.js +27 -27
- package/dist/components/more/More.d.ts +2 -2
- package/dist/components/more/More.js +46 -45
- package/dist/components/navigation/Navigation.d.ts +7 -5
- package/dist/components/navigation/Navigation.js +91 -74
- package/dist/components/navigation/Navigation2.d.ts +9 -3
- package/dist/components/navigation/Navigation2.js +209 -195
- package/dist/components/notification/NotificationCenter.js +70 -70
- package/dist/components/overlay/Drawer.d.ts +6 -1
- package/dist/components/overlay/Drawer.js +27 -25
- package/dist/components/overlay/Modal.d.ts +5 -0
- package/dist/components/overlay/Modal.js +16 -15
- package/dist/components/overlay/Overlay.d.ts +10 -1
- package/dist/components/overlay/Overlay.js +54 -52
- package/dist/components/overlay/Sheet.d.ts +2 -0
- package/dist/components/overlay/Sheet.js +30 -30
- package/dist/components/page/PageParts.js +20 -20
- package/dist/components/select/Select.js +75 -70
- package/dist/components/settings/Settings.d.ts +29 -0
- package/dist/components/settings/Settings.js +31 -0
- package/dist/components/shell/AccountMenu.d.ts +20 -0
- package/dist/components/shell/AccountMenu.js +32 -0
- package/dist/components/shell/AppShell.d.ts +9 -2
- package/dist/components/shell/AppShell.js +37 -37
- package/dist/components/shell/AppSidebar.d.ts +9 -3
- package/dist/components/shell/AppSidebar.js +45 -39
- package/dist/components/table/Table.d.ts +18 -4
- package/dist/components/table/Table.js +70 -46
- package/dist/components/tabs/Tabs.js +105 -94
- package/dist/components/theme/Theme.d.ts +7 -4
- package/dist/components/theme/Theme.js +127 -130
- package/dist/components/upload/Upload.js +62 -54
- package/dist/css/base.css +1 -1
- package/dist/css/button.css +1 -1
- package/dist/css/card.css +1 -1
- package/dist/css/command.css +1 -1
- package/dist/css/date.css +1 -1
- package/dist/css/display.css +1 -1
- package/dist/css/feedback.css +1 -1
- package/dist/css/field.css +1 -1
- package/dist/css/form.css +1 -1
- package/dist/css/groups.json +36 -20
- package/dist/css/list.css +1 -1
- package/dist/css/menu.css +1 -1
- package/dist/css/navigation.css +1 -1
- package/dist/css/notification.css +1 -1
- package/dist/css/overlay.css +1 -1
- package/dist/css/page.css +1 -1
- package/dist/css/select.css +1 -1
- package/dist/css/settings.css +1 -0
- package/dist/css/shell.css +1 -1
- package/dist/css/table.css +1 -1
- package/dist/css/tabs.css +1 -1
- package/dist/css/upload.css +1 -1
- package/dist/i18n/strings.d.ts +7 -0
- package/dist/i18n/strings.js +14 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +318 -306
- package/dist/styles.css +1 -1
- package/dist/utils/animateRows.d.ts +11 -0
- package/dist/utils/animateRows.js +23 -0
- package/dist/utils/decimal.d.ts +12 -0
- package/dist/utils/decimal.js +48 -0
- package/dist/utils/initialFocus.d.ts +6 -0
- package/dist/utils/initialFocus.js +24 -0
- package/dist/utils/refs.d.ts +2 -0
- package/dist/utils/refs.js +14 -6
- package/package.json +3 -3
|
@@ -13,6 +13,8 @@ export interface SheetProps {
|
|
|
13
13
|
description?: ReactNode;
|
|
14
14
|
/** Content pinned at the bottom: actions. */
|
|
15
15
|
footer?: ReactNode;
|
|
16
|
+
/** What is behind it: blur (a light blur on the dark layer, default) or dim (only the dark layer, no backdrop-filter). */
|
|
17
|
+
backdrop?: 'blur' | 'dim';
|
|
16
18
|
/** Hides the drag handle (it shows for bottom and top sheets). */
|
|
17
19
|
hideHandle?: boolean;
|
|
18
20
|
/** Name for screen readers when there is no title. */
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as l, jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { SheetTrigger as f, SheetOverlay as
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as u, useContext as y } from "react";
|
|
4
|
+
import { SheetTrigger as f, SheetOverlay as A, SheetBackdrop as T, Sheet as k, SheetContent as C, Heading as j, OverlayTriggerStateContext as B, Button as p } from "react-aria-components";
|
|
5
5
|
import { useStrings as S } from "../../i18n/strings.js";
|
|
6
6
|
import { cx as g } from "../../utils/cx.js";
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
return /* @__PURE__ */ l(
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
(
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
const D = u(function({ position: s = "bottom", snapPoints: c, preventDismissal: t, backdrop: a, title: n, description: o, footer: r, hideHandle: h, children: d, className: m, style: N, "aria-label": b }, v) {
|
|
8
|
+
const x = !h && (s === "bottom" || s === "top");
|
|
9
|
+
return /* @__PURE__ */ l(A, { position: s, snapPoints: c, preventDismissal: t, className: "alea-sheet-overlay", "data-position": s, "data-backdrop": a, children: [
|
|
10
|
+
/* @__PURE__ */ e(T, { className: "alea-sheet-backdrop" }),
|
|
11
|
+
/* @__PURE__ */ e(k, { ref: v, className: g("alea-sheet", m), style: N, "data-position": s, children: /* @__PURE__ */ l(C, { className: "alea-sheet-content", "aria-label": n ? void 0 : b, children: [
|
|
12
|
+
x && /* @__PURE__ */ e("span", { className: "alea-sheet-handle", "aria-hidden": "true" }),
|
|
13
|
+
(n || o) && /* @__PURE__ */ l("header", { className: "alea-sheet-head", children: [
|
|
14
|
+
n && /* @__PURE__ */ e(j, { slot: "title", className: "alea-sheet-title", children: n }),
|
|
15
|
+
o && /* @__PURE__ */ e("p", { className: "alea-sheet-desc", children: o })
|
|
16
16
|
] }),
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
/* @__PURE__ */ e("div", { className: "alea-sheet-body", children: d }),
|
|
18
|
+
r && /* @__PURE__ */ e("footer", { className: "alea-sheet-foot", children: r })
|
|
19
19
|
] }) })
|
|
20
20
|
] });
|
|
21
21
|
});
|
|
22
|
-
function
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
function R(i) {
|
|
23
|
+
return /* @__PURE__ */ e(f, { ...i });
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const c = S(), t =
|
|
25
|
+
function O({ actions: i, cancelLabel: s }) {
|
|
26
|
+
const c = S(), t = y(B);
|
|
27
27
|
return /* @__PURE__ */ l("div", { className: "alea-action-sheet-body", children: [
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ e("ul", { className: "alea-action-sheet-list", children: i.map((a) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ l(p, { className: "alea-action-sheet-item alea-focus-ring", "data-tone": a.tone, isDisabled: a.isDisabled, onPress: () => {
|
|
29
29
|
var n;
|
|
30
|
-
t == null || t.close(), (n =
|
|
30
|
+
t == null || t.close(), (n = a.onAction) == null || n.call(a);
|
|
31
31
|
}, children: [
|
|
32
|
-
|
|
32
|
+
a.icon && /* @__PURE__ */ e("span", { className: "alea-action-sheet-icon", "aria-hidden": "true", children: a.icon }),
|
|
33
33
|
/* @__PURE__ */ l("span", { className: "alea-action-sheet-text", children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
34
|
+
/* @__PURE__ */ e("span", { children: a.label }),
|
|
35
|
+
a.description && /* @__PURE__ */ e("span", { className: "alea-action-sheet-desc", children: a.description })
|
|
36
36
|
] })
|
|
37
|
-
] }) },
|
|
38
|
-
/* @__PURE__ */
|
|
37
|
+
] }) }, a.id)) }),
|
|
38
|
+
/* @__PURE__ */ e(p, { className: "alea-action-sheet-item alea-action-sheet-cancel alea-focus-ring", onPress: () => t == null ? void 0 : t.close(), children: s ?? c.cancel })
|
|
39
39
|
] });
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const q = u(function({ trigger: s, title: c, description: t, actions: a, cancelLabel: n, isOpen: o, onOpenChange: r, className: h, style: d }, m) {
|
|
42
42
|
const N = S();
|
|
43
43
|
return /* @__PURE__ */ l(f, { isOpen: o, onOpenChange: r, children: [
|
|
44
44
|
s,
|
|
45
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ e(D, { ref: m, style: d, title: c, description: t, "aria-label": typeof c == "string" ? void 0 : N.options, className: g("alea-action-sheet", h), children: /* @__PURE__ */ e(O, { actions: a, cancelLabel: n }) })
|
|
46
46
|
] });
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
q as ActionSheet,
|
|
50
|
+
D as Sheet,
|
|
51
|
+
R as SheetTrigger
|
|
52
52
|
};
|
|
@@ -8,8 +8,8 @@ import { Breadcrumbs as K, Breadcrumb as O } from "../navigation/Navigation.js";
|
|
|
8
8
|
import { DropdownMenu as R, MenuItem as $ } from "../menu/Menu.js";
|
|
9
9
|
import { useStrings as y } from "../../i18n/strings.js";
|
|
10
10
|
import { inertProps as q } from "../../utils/inert.js";
|
|
11
|
-
function _({ title:
|
|
12
|
-
const
|
|
11
|
+
function _({ title: u, subtitle: r, back: i, backLabel: c, breadcrumbs: l, media: v, meta: f, actions: g, secondaryActions: n, tabs: d, headingLevel: N = 1, sticky: s, compact: m, className: h }) {
|
|
12
|
+
const p = y(), b = L(null), [w, C] = I(!1);
|
|
13
13
|
x(() => {
|
|
14
14
|
const a = b.current;
|
|
15
15
|
if (!s || !a || typeof IntersectionObserver > "u") return;
|
|
@@ -25,9 +25,9 @@ function _({ title: p, subtitle: r, back: i, backLabel: c, breadcrumbs: l, media
|
|
|
25
25
|
/* @__PURE__ */ e("div", { className: "alea-page-header-more", children: /* @__PURE__ */ e(
|
|
26
26
|
R,
|
|
27
27
|
{
|
|
28
|
-
"aria-label":
|
|
28
|
+
"aria-label": p.moreActions,
|
|
29
29
|
placement: "bottom end",
|
|
30
|
-
trigger: /* @__PURE__ */ e(D, { "aria-label":
|
|
30
|
+
trigger: /* @__PURE__ */ e(D, { "aria-label": p.moreActions, size: "sm", children: /* @__PURE__ */ e(F, {}) }),
|
|
31
31
|
menuProps: { onAction: (a) => {
|
|
32
32
|
var t, z;
|
|
33
33
|
return (z = (t = n.find((P) => P.id === a)) == null ? void 0 : t.onAction) == null ? void 0 : z.call(t);
|
|
@@ -37,13 +37,13 @@ function _({ title: p, subtitle: r, back: i, backLabel: c, breadcrumbs: l, media
|
|
|
37
37
|
) })
|
|
38
38
|
] }) : null;
|
|
39
39
|
return /* @__PURE__ */ o("header", { ref: b, className: B("alea-page-header", h), "data-sticky": s || void 0, "data-stuck": w || void 0, "data-compact": m || void 0, children: [
|
|
40
|
-
l != null && l.length ? /* @__PURE__ */ e(K, { className: "alea-page-header-crumbs", children: l.map((a, t) => /* @__PURE__ */ e(O, { href: t === l.length - 1 ? void 0 : a.href, children: a.label }, t)) }) : null,
|
|
40
|
+
l != null && l.length ? /* @__PURE__ */ e("nav", { "aria-label": p.breadcrumb, children: /* @__PURE__ */ e(K, { className: "alea-page-header-crumbs", children: l.map((a, t) => /* @__PURE__ */ e(O, { href: t === l.length - 1 ? void 0 : a.href, children: a.label }, t)) }) }) : null,
|
|
41
41
|
/* @__PURE__ */ o("div", { className: "alea-page-header-main", children: [
|
|
42
|
-
i && (typeof i == "string" ? /* @__PURE__ */ e(D, { "aria-label": c ??
|
|
43
|
-
|
|
42
|
+
i && (typeof i == "string" ? /* @__PURE__ */ e(D, { "aria-label": c ?? p.back, variant: "ghost", size: "sm", href: i, className: "alea-page-header-back", children: /* @__PURE__ */ e(S, {}) }) : /* @__PURE__ */ e(D, { "aria-label": c ?? p.back, variant: "ghost", size: "sm", onPress: i, className: "alea-page-header-back", children: /* @__PURE__ */ e(S, {}) })),
|
|
43
|
+
v && /* @__PURE__ */ e("span", { className: "alea-page-header-media", children: v }),
|
|
44
44
|
/* @__PURE__ */ o("div", { className: "alea-page-header-titles", children: [
|
|
45
45
|
/* @__PURE__ */ o("div", { className: "alea-page-header-title-row", children: [
|
|
46
|
-
M(`h${N}`, { className: "alea-page-header-title" },
|
|
46
|
+
M(`h${N}`, { className: "alea-page-header-title" }, u),
|
|
47
47
|
f && /* @__PURE__ */ e("div", { className: "alea-page-header-meta", children: f })
|
|
48
48
|
] }),
|
|
49
49
|
r && /* @__PURE__ */ e("p", { className: "alea-page-header-subtitle", children: r })
|
|
@@ -56,22 +56,22 @@ function _({ title: p, subtitle: r, back: i, backLabel: c, breadcrumbs: l, media
|
|
|
56
56
|
d && /* @__PURE__ */ e("div", { className: "alea-page-header-tabs", children: d })
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
|
-
const V = T(function({ isVisible: r, message: i, onSave: c, onDiscard: l, isSaving:
|
|
60
|
-
const h = y(),
|
|
61
|
-
return
|
|
59
|
+
const V = T(function({ isVisible: r, message: i, onSave: c, onDiscard: l, isSaving: v, saveLabel: f, discardLabel: g, position: n = "top", saveShortcut: d = !0, className: N, ...s }, m) {
|
|
60
|
+
const h = y(), p = L(c);
|
|
61
|
+
return p.current = c, x(() => {
|
|
62
62
|
if (!r || !d) return;
|
|
63
63
|
const b = (w) => {
|
|
64
|
-
(w.metaKey || w.ctrlKey) && w.key.toLowerCase() === "s" && (w.preventDefault(),
|
|
64
|
+
(w.metaKey || w.ctrlKey) && w.key.toLowerCase() === "s" && (w.preventDefault(), p.current());
|
|
65
65
|
};
|
|
66
66
|
return window.addEventListener("keydown", b), () => window.removeEventListener("keydown", b);
|
|
67
67
|
}, [r, d]), /* @__PURE__ */ o("div", { ref: m, ...s, className: B("alea-savebar", N), "data-visible": r || void 0, "data-position": n, role: "region", "aria-label": s["aria-label"] ?? h.unsavedChanges, "aria-hidden": !r || void 0, ...q(!r), children: [
|
|
68
68
|
/* @__PURE__ */ e("p", { className: "alea-savebar-message", "aria-live": "polite", children: r ? i ?? h.unsavedChanges : "" }),
|
|
69
69
|
/* @__PURE__ */ o("div", { className: "alea-savebar-actions", children: [
|
|
70
|
-
l && /* @__PURE__ */ e(k, { variant: "ghost", size: "sm", onPress: l, isDisabled:
|
|
71
|
-
/* @__PURE__ */ e(k, { size: "sm", variant: "secondary", onPress: c, isLoading:
|
|
70
|
+
l && /* @__PURE__ */ e(k, { variant: "ghost", size: "sm", onPress: l, isDisabled: v, children: g ?? h.discard }),
|
|
71
|
+
/* @__PURE__ */ e(k, { size: "sm", variant: "secondary", onPress: c, isLoading: v, shortcut: d ? "⌘S" : void 0, children: f ?? h.save })
|
|
72
72
|
] })
|
|
73
73
|
] });
|
|
74
|
-
}), ee = T(function({ isLoading: r, value: i, "aria-label": c, className: l, ...
|
|
74
|
+
}), ee = T(function({ isLoading: r, value: i, "aria-label": c, className: l, ...v }, f) {
|
|
75
75
|
const g = y(), [n, d] = I(r), [N, s] = I(!1);
|
|
76
76
|
if (x(() => {
|
|
77
77
|
if (r) {
|
|
@@ -86,18 +86,18 @@ const V = T(function({ isVisible: r, message: i, onSave: c, onDiscard: l, isSavi
|
|
|
86
86
|
return () => clearTimeout(h);
|
|
87
87
|
}, [r]), !n) return null;
|
|
88
88
|
const m = N ? 100 : i;
|
|
89
|
-
return /* @__PURE__ */ e("div", { ref: f, ...
|
|
89
|
+
return /* @__PURE__ */ e("div", { ref: f, ...v, className: B("alea-top-loading", l), role: "progressbar", "aria-label": c ?? g.loading, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": m, "data-done": N || void 0, "data-indeterminate": m == null || void 0, children: /* @__PURE__ */ e("span", { className: "alea-top-loading-bar", style: m != null ? { width: `${m}%` } : void 0 }) });
|
|
90
90
|
});
|
|
91
|
-
function ae({ children:
|
|
91
|
+
function ae({ children: u, className: r }) {
|
|
92
92
|
return /* @__PURE__ */ o("p", { className: B("alea-footer-help", r), children: [
|
|
93
93
|
/* @__PURE__ */ e(j, { size: 16, "aria-hidden": "true" }),
|
|
94
|
-
/* @__PURE__ */ e("span", { children:
|
|
94
|
+
/* @__PURE__ */ e("span", { children: u })
|
|
95
95
|
] });
|
|
96
96
|
}
|
|
97
|
-
function re({ primary:
|
|
97
|
+
function re({ primary: u, secondary: r, className: i }) {
|
|
98
98
|
return /* @__PURE__ */ o("div", { className: B("alea-page-actions", i), children: [
|
|
99
99
|
/* @__PURE__ */ e("div", { className: "alea-page-actions-secondary", children: r }),
|
|
100
|
-
/* @__PURE__ */ e("div", { className: "alea-page-actions-primary", children:
|
|
100
|
+
/* @__PURE__ */ e("div", { className: "alea-page-actions-primary", children: u })
|
|
101
101
|
] });
|
|
102
102
|
}
|
|
103
103
|
export {
|
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as i, Fragment as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { ListBox as
|
|
2
|
+
import { jsx as e, jsxs as i, Fragment as U } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as F, useContext as g, useMemo as W } from "react";
|
|
4
|
+
import { ListBox as I, useFilter as Y, Select as Z, SelectValue as _, Autocomplete as ee, SearchField as ae, Input as le, ListBoxItem as te, ListBoxSection as se, Header as re, SelectStateContext as O, Button as R, Virtualizer as ie, ListLayout as ne, AutocompleteStateContext as oe, Text as ce } from "react-aria-components";
|
|
5
5
|
import { ChevronDown as de, Search as ue, Check as pe, X as he } from "lucide-react";
|
|
6
|
-
import { withBase as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import { withBase as V, cx as me } from "../../utils/cx.js";
|
|
7
|
+
import { useAriaInvalid as fe } from "../../utils/refs.js";
|
|
8
|
+
import { Label as Se, Description as be, FieldError as ye } from "../field/Field.js";
|
|
9
|
+
import { Spinner as ve } from "../feedback/Spinner.js";
|
|
10
|
+
import { useBusy as Ne, loadingAttrs as xe } from "../field/FieldLoading.js";
|
|
11
|
+
import { responsiveAttrs as ge } from "../../utils/responsive.js";
|
|
12
|
+
import { Popover as Ve } from "../overlay/Overlay.js";
|
|
13
|
+
import { useStrings as y } from "../../i18n/strings.js";
|
|
14
|
+
import { OptionMatchContext as Be, useOptionMatch as Ae, Highlight as De } from "../combobox/Highlight.js";
|
|
15
|
+
function ke({ style: r, children: l }) {
|
|
16
|
+
const t = g(oe), s = (t == null ? void 0 : t.inputValue) ?? "", a = W(() => ({ query: s, style: r ?? "tint", match: "phrase" }), [s, r]);
|
|
16
17
|
return /* @__PURE__ */ e(Be.Provider, { value: a, children: l });
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
const s =
|
|
20
|
-
return
|
|
19
|
+
const qe = F(function(l, t) {
|
|
20
|
+
const s = g(O), a = fe(!!(s != null && s.displayValidation.isInvalid), t);
|
|
21
|
+
return /* @__PURE__ */ e(R, { ...l, ref: a });
|
|
22
|
+
});
|
|
23
|
+
function ze() {
|
|
24
|
+
const r = y(), l = g(O), t = l && (Array.isArray(l.value) ? l.value.length > 0 : l.value != null);
|
|
25
|
+
return !l || !t ? null : /* @__PURE__ */ e(R, { slot: null, className: "alea-input-clear alea-select-clear alea-focus-ring", "aria-label": r.clear, onPress: () => l.setValue(l.selectionManager.selectionMode === "multiple" ? [] : null), children: /* @__PURE__ */ e(he, { size: 14 }) });
|
|
21
26
|
}
|
|
22
|
-
function
|
|
23
|
-
const m =
|
|
27
|
+
function Le({ motion: r, label: l, description: t, errorMessage: s, warningMessage: a, showOptional: n, items: p, children: o, size: h, variant: S = "outline", labelPosition: c = "top", prefix: B, isClearable: E, searchable: A, highlightMatch: M, matchStyle: P, isLoading: v, emptyText: j, footer: D, checkPosition: H = "end", maxTags: N = 2, renderValue: k, virtualized: q, className: K, placeholder: z, ...f }) {
|
|
28
|
+
const m = y();
|
|
24
29
|
z ?? (z = m.selectPlaceholder);
|
|
25
|
-
const
|
|
30
|
+
const T = Ne(v), { contains: $ } = Y({ sensitivity: "base" }), X = f.selectionMode === "multiple", L = /* @__PURE__ */ e(I, { items: p, className: "alea-listbox", "data-check": H, renderEmptyState: () => /* @__PURE__ */ e("div", { className: "alea-listbox-empty", children: j ?? m.noResults }), children: o ?? ((u) => /* @__PURE__ */ e(C, { id: u.id, textValue: u.textValue ?? (typeof u.label == "string" ? u.label : String(u.id)), isDisabled: u.isDisabled, description: u.description, icon: u.icon, children: u.label })) }), x = q ? /* @__PURE__ */ e(ie, { layout: ne, layoutOptions: { rowHeight: q }, children: L }) : L;
|
|
26
31
|
return /* @__PURE__ */ i(
|
|
27
|
-
|
|
32
|
+
Z,
|
|
28
33
|
{
|
|
29
34
|
...f,
|
|
30
35
|
placeholder: z,
|
|
31
36
|
allowsEmptyCollection: !0,
|
|
32
|
-
className:
|
|
33
|
-
...
|
|
34
|
-
"data-variant":
|
|
37
|
+
className: V("alea-field alea-select", K),
|
|
38
|
+
...ge("size", h, "md"),
|
|
39
|
+
"data-variant": S !== "outline" ? S : void 0,
|
|
35
40
|
"data-label-position": c !== "top" ? c : void 0,
|
|
36
41
|
"data-warning": a ? !0 : void 0,
|
|
37
|
-
...
|
|
42
|
+
...xe(v),
|
|
38
43
|
children: [
|
|
39
|
-
l && /* @__PURE__ */ i(
|
|
44
|
+
l && /* @__PURE__ */ i(Se, { children: [
|
|
40
45
|
l,
|
|
41
46
|
f.isRequired && /* @__PURE__ */ e("span", { className: "alea-label-required", "aria-hidden": "true", children: " *" }),
|
|
42
47
|
n && !f.isRequired && /* @__PURE__ */ i("span", { className: "alea-label-optional", children: [
|
|
@@ -46,38 +51,38 @@ function ze({ motion: s, label: l, description: t, errorMessage: r, warningMessa
|
|
|
46
51
|
] })
|
|
47
52
|
] }),
|
|
48
53
|
/* @__PURE__ */ i("div", { className: "alea-select-control", children: [
|
|
49
|
-
/* @__PURE__ */ i(
|
|
54
|
+
/* @__PURE__ */ i(qe, { ref: T, className: "alea-select-trigger alea-focus-ring", children: [
|
|
50
55
|
B && /* @__PURE__ */ e("span", { className: "alea-input-affix alea-select-prefix", "aria-hidden": "true", children: B }),
|
|
51
|
-
/* @__PURE__ */ e(
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
if (k) return k(
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
56
|
+
/* @__PURE__ */ e(_, { className: "alea-select-value", children: ({ selectedItems: u, isPlaceholder: G, defaultChildren: w }) => {
|
|
57
|
+
const b = u.filter(Boolean);
|
|
58
|
+
if (G) return w;
|
|
59
|
+
if (k) return k(b);
|
|
60
|
+
if (!X) return w;
|
|
61
|
+
const J = (d) => (d == null ? void 0 : d.textValue) ?? (typeof (d == null ? void 0 : d.label) == "string" ? d.label : String((d == null ? void 0 : d.id) ?? ""));
|
|
57
62
|
return /* @__PURE__ */ i("span", { className: "alea-select-tags", children: [
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
b.slice(0, N).map((d, Q) => /* @__PURE__ */ e("span", { className: "alea-select-tag", children: J(d) }, Q)),
|
|
64
|
+
b.length > N && /* @__PURE__ */ i("span", { className: "alea-select-tag", "data-more": !0, children: [
|
|
60
65
|
"+",
|
|
61
|
-
|
|
66
|
+
b.length - N
|
|
62
67
|
] })
|
|
63
68
|
] });
|
|
64
69
|
} }),
|
|
65
|
-
|
|
70
|
+
v ? /* @__PURE__ */ e(ve, { size: "sm", "aria-label": m.loading }) : /* @__PURE__ */ e(de, { size: 16, "aria-hidden": "true", className: "alea-select-chevron" })
|
|
66
71
|
] }),
|
|
67
|
-
|
|
72
|
+
E && !f.isDisabled && /* @__PURE__ */ e(ze, {})
|
|
68
73
|
] }),
|
|
69
74
|
(t || a) && /* @__PURE__ */ i(be, { children: [
|
|
70
75
|
t,
|
|
71
76
|
a && /* @__PURE__ */ e("span", { className: "alea-field-warning", children: a })
|
|
72
77
|
] }),
|
|
73
|
-
/* @__PURE__ */ e(ye, { children:
|
|
74
|
-
/* @__PURE__ */ i(
|
|
75
|
-
|
|
76
|
-
/* @__PURE__ */ i(
|
|
78
|
+
/* @__PURE__ */ e(ye, { children: s }),
|
|
79
|
+
/* @__PURE__ */ i(Ve, { className: "alea-popover alea-select-popover", motion: r, "data-searchable": A || void 0, children: [
|
|
80
|
+
A ? /* @__PURE__ */ i(ee, { filter: $, children: [
|
|
81
|
+
/* @__PURE__ */ i(ae, { "aria-label": m.filterOptions, autoFocus: !0, className: "alea-select-search", children: [
|
|
77
82
|
/* @__PURE__ */ e(ue, { size: 14, "aria-hidden": "true" }),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
83
|
+
/* @__PURE__ */ e(le, { className: "alea-select-search-input", placeholder: m.search })
|
|
79
84
|
] }),
|
|
80
|
-
|
|
85
|
+
M ? /* @__PURE__ */ e(ke, { style: P, children: x }) : x
|
|
81
86
|
] }) : x,
|
|
82
87
|
D && /* @__PURE__ */ e("div", { className: "alea-select-footer", children: D })
|
|
83
88
|
] })
|
|
@@ -85,46 +90,46 @@ function ze({ motion: s, label: l, description: t, errorMessage: r, warningMessa
|
|
|
85
90
|
}
|
|
86
91
|
);
|
|
87
92
|
}
|
|
88
|
-
function
|
|
89
|
-
const a =
|
|
93
|
+
function we({ label: r, description: l, matchQuery: t, matchStyle: s }) {
|
|
94
|
+
const a = Ae(), n = t ?? (a == null ? void 0 : a.query) ?? "", p = (o) => n && typeof o == "string" ? /* @__PURE__ */ e(De, { text: o, query: n, match: (a == null ? void 0 : a.match) ?? "phrase", matchStyle: s ?? (a == null ? void 0 : a.style) }) : o;
|
|
90
95
|
return /* @__PURE__ */ i(ce, { slot: "label", className: "alea-option-text", children: [
|
|
91
|
-
/* @__PURE__ */ e("span", { children: p(
|
|
96
|
+
/* @__PURE__ */ e("span", { children: p(r) }),
|
|
92
97
|
l && /* @__PURE__ */ e("span", { className: "alea-option-desc", children: p(l) })
|
|
93
98
|
] });
|
|
94
99
|
}
|
|
95
|
-
function
|
|
96
|
-
return /* @__PURE__ */ e(
|
|
100
|
+
function C({ children: r, description: l, icon: t, matchQuery: s, matchStyle: a, className: n, textValue: p, ...o }) {
|
|
101
|
+
return /* @__PURE__ */ e(te, { ...o, textValue: p ?? (typeof r == "string" || typeof r == "number" ? String(r) : void 0), className: V("alea-option", n), children: ({ isSelected: h }) => /* @__PURE__ */ i(U, { children: [
|
|
97
102
|
t && /* @__PURE__ */ e("span", { className: "alea-option-icon", "aria-hidden": "true", children: t }),
|
|
98
|
-
/* @__PURE__ */ e(
|
|
103
|
+
/* @__PURE__ */ e(we, { label: r, description: l, matchQuery: s, matchStyle: a }),
|
|
99
104
|
/* @__PURE__ */ e(pe, { size: 16, className: "alea-option-check", "aria-hidden": "true", "data-on": h || void 0 })
|
|
100
105
|
] }) });
|
|
101
106
|
}
|
|
102
|
-
const
|
|
103
|
-
return /* @__PURE__ */ i(
|
|
104
|
-
/* @__PURE__ */ e(
|
|
107
|
+
const Xe = F(function({ title: l, children: t, className: s, ...a }, n) {
|
|
108
|
+
return /* @__PURE__ */ i(se, { ...a, ref: n, className: me("alea-option-section", s), children: [
|
|
109
|
+
/* @__PURE__ */ e(re, { className: "alea-option-header", children: l }),
|
|
105
110
|
t
|
|
106
111
|
] });
|
|
107
112
|
});
|
|
108
|
-
function
|
|
109
|
-
const
|
|
113
|
+
function Ge({ items: r, children: l, emptyText: t, checkPosition: s = "end", variant: a = "card", maxHeight: n, className: p, style: o, ...h }) {
|
|
114
|
+
const S = y();
|
|
110
115
|
return /* @__PURE__ */ e(
|
|
111
|
-
|
|
116
|
+
I,
|
|
112
117
|
{
|
|
113
118
|
...h,
|
|
114
|
-
items:
|
|
115
|
-
"data-check":
|
|
119
|
+
items: r,
|
|
120
|
+
"data-check": s,
|
|
116
121
|
"data-variant": a,
|
|
117
|
-
renderEmptyState: () => /* @__PURE__ */ e("div", { className: "alea-listbox-empty", children: t ??
|
|
118
|
-
className:
|
|
122
|
+
renderEmptyState: () => /* @__PURE__ */ e("div", { className: "alea-listbox-empty", children: t ?? S.noResults }),
|
|
123
|
+
className: V("alea-listbox alea-listbox-standalone", p),
|
|
119
124
|
style: { ...n ? { maxHeight: n, overflow: "auto" } : {}, ...o },
|
|
120
|
-
children: l ?? ((c) => /* @__PURE__ */ e(
|
|
125
|
+
children: l ?? ((c) => /* @__PURE__ */ e(C, { id: c.id, textValue: c.textValue ?? (typeof c.label == "string" ? c.label : String(c.id)), isDisabled: c.isDisabled, description: c.description, icon: c.icon, children: c.label }))
|
|
121
126
|
}
|
|
122
127
|
);
|
|
123
128
|
}
|
|
124
|
-
function
|
|
125
|
-
const o =
|
|
129
|
+
function Je({ periods: r = ["24h", "7d", "30d", "12m"], value: l, defaultValue: t = "30d", onChange: s, label: a, size: n, className: p }) {
|
|
130
|
+
const o = y();
|
|
126
131
|
return /* @__PURE__ */ e(
|
|
127
|
-
|
|
132
|
+
Le,
|
|
128
133
|
{
|
|
129
134
|
"aria-label": a ? void 0 : o.period,
|
|
130
135
|
label: a,
|
|
@@ -132,15 +137,15 @@ function Xe({ periods: s = ["24h", "7d", "30d", "12m"], value: l, defaultValue:
|
|
|
132
137
|
className: p,
|
|
133
138
|
selectedKey: l,
|
|
134
139
|
defaultSelectedKey: l === void 0 ? t : void 0,
|
|
135
|
-
onSelectionChange: (h) =>
|
|
136
|
-
items:
|
|
140
|
+
onSelectionChange: (h) => s == null ? void 0 : s(h),
|
|
141
|
+
items: r.map((h) => ({ id: h, label: o.periods[h] }))
|
|
137
142
|
}
|
|
138
143
|
);
|
|
139
144
|
}
|
|
140
145
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
Ge as ListBox,
|
|
147
|
+
Je as PeriodSelect,
|
|
148
|
+
Le as Select,
|
|
149
|
+
C as SelectItem,
|
|
150
|
+
Xe as SelectSection
|
|
146
151
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export interface SettingsSectionProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
3
|
+
/** The name of the group of settings ("Notifications"). */
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
/** One line under the title that says what the group is for. */
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
/** Buttons or a menu on the right of the title. */
|
|
8
|
+
actions?: ReactNode;
|
|
9
|
+
/** card (default): the rows sit in one bordered panel. plain: no panel, only lines between rows, for settings inside a Card or a Modal. */
|
|
10
|
+
appearance?: 'card' | 'plain';
|
|
11
|
+
/** Heading level of the title. Default 2. */
|
|
12
|
+
headingLevel?: 2 | 3 | 4 | 5;
|
|
13
|
+
/** The SettingRows, or any content such as a Form. */
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/** A group on a settings page: a title, a line of help and the rows below it in one panel. The region is named by its title. Rows are SettingRow. */
|
|
17
|
+
export declare function SettingsSection({ title, description, actions, appearance, headingLevel, children, className, ...props }: SettingsSectionProps): import("react").JSX.Element;
|
|
18
|
+
export interface SettingRowProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
19
|
+
/** What the setting is ("Weekly digest"). */
|
|
20
|
+
title: ReactNode;
|
|
21
|
+
/** What it does, in a sentence. */
|
|
22
|
+
description?: ReactNode;
|
|
23
|
+
/** The id of the control, when there is one field: the title becomes its label. Leave it out for a Switch or a group and give that control its own label. */
|
|
24
|
+
htmlFor?: string;
|
|
25
|
+
/** The control: Switch, Select, Button, SegmentedControl, a field. It sits on the right and drops under the text when the section is narrow. */
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/** One setting: the name and its help on the left, the control on the right. Stacks on narrow sections. Use inside SettingsSection. */
|
|
29
|
+
export declare function SettingRow({ title, description, htmlFor, children, className, ...props }: SettingRowProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useId as o, createElement as N } from "react";
|
|
4
|
+
import { cx as g } from "../../utils/cx.js";
|
|
5
|
+
function u({ title: n, description: s, actions: t, appearance: d = "card", headingLevel: c = 2, children: r, className: e, ...i }) {
|
|
6
|
+
const m = o();
|
|
7
|
+
return /* @__PURE__ */ l("section", { ...i, "aria-labelledby": `${m}-t`, className: g("alea-settings", e), "data-appearance": d === "plain" ? "plain" : void 0, children: [
|
|
8
|
+
/* @__PURE__ */ l("div", { className: "alea-settings-head", children: [
|
|
9
|
+
/* @__PURE__ */ l("div", { className: "alea-settings-text", children: [
|
|
10
|
+
N(`h${c}`, { id: `${m}-t`, className: "alea-settings-title" }, n),
|
|
11
|
+
s && /* @__PURE__ */ a("p", { className: "alea-settings-desc", children: s })
|
|
12
|
+
] }),
|
|
13
|
+
t && /* @__PURE__ */ a("div", { className: "alea-settings-actions", children: t })
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ a("div", { className: "alea-settings-rows", children: r })
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
function $({ title: n, description: s, htmlFor: t, children: d, className: c, ...r }) {
|
|
19
|
+
const e = o(), i = !t;
|
|
20
|
+
return /* @__PURE__ */ l("div", { ...r, className: g("alea-setting", c), role: i ? "group" : void 0, "aria-labelledby": i ? `${e}-t` : void 0, "aria-describedby": i && s ? `${e}-d` : void 0, children: [
|
|
21
|
+
/* @__PURE__ */ l("div", { className: "alea-setting-text", children: [
|
|
22
|
+
t ? /* @__PURE__ */ a("label", { htmlFor: t, id: `${e}-t`, className: "alea-setting-title", children: n }) : /* @__PURE__ */ a("span", { id: `${e}-t`, className: "alea-setting-title", children: n }),
|
|
23
|
+
s && /* @__PURE__ */ a("span", { id: `${e}-d`, className: "alea-setting-desc", children: s })
|
|
24
|
+
] }),
|
|
25
|
+
d != null && /* @__PURE__ */ a("div", { className: "alea-setting-control", children: d })
|
|
26
|
+
] });
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
$ as SettingRow,
|
|
30
|
+
u as SettingsSection
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type DropdownMenuProps } from '../menu/Menu.js';
|
|
3
|
+
export interface AccountMenuProps extends Omit<DropdownMenuProps<object>, 'trigger' | 'header' | 'aria-label' | 'size'> {
|
|
4
|
+
/** The person's name: the avatar's initials and the first line of the menu header. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** A second line in the menu header: an email or a role. */
|
|
7
|
+
secondary?: ReactNode;
|
|
8
|
+
/** The photo. Initials show without it. */
|
|
9
|
+
src?: string;
|
|
10
|
+
/** Name of the menu button. Default "{name}, account menu". */
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
/** Size of the button: sm 32, md 40 (default, as the other header buttons), lg 48. */
|
|
13
|
+
size?: 'sm' | 'md' | 'lg';
|
|
14
|
+
/** Called with the menu item's id. */
|
|
15
|
+
onAction?: (key: string | number) => void;
|
|
16
|
+
/** The MenuItems, MenuSections and MenuSeparators: profile, settings, sign out. */
|
|
17
|
+
children: DropdownMenuProps<object>['children'];
|
|
18
|
+
}
|
|
19
|
+
/** The avatar button at the end of a header that opens the account menu: who is signed in on top, then profile, settings and sign out. */
|
|
20
|
+
export declare const AccountMenu: import("react").ForwardRefExoticComponent<AccountMenuProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as x } from "react";
|
|
4
|
+
import { cx as N } from "../../utils/cx.js";
|
|
5
|
+
import { Avatar as i } from "../display/Display.js";
|
|
6
|
+
import { IconButton as b } from "../button/Button.js";
|
|
7
|
+
import { DropdownMenu as g } from "../menu/Menu.js";
|
|
8
|
+
const B = x(function({ name: c, secondary: e, src: o, "aria-label": n, size: r = "md", onAction: t, menuProps: m, placement: s = "bottom end", className: u, children: d, ...p }, f) {
|
|
9
|
+
return /* @__PURE__ */ a(
|
|
10
|
+
g,
|
|
11
|
+
{
|
|
12
|
+
...p,
|
|
13
|
+
ref: f,
|
|
14
|
+
placement: s,
|
|
15
|
+
"aria-label": n ?? `${c}, account menu`,
|
|
16
|
+
className: N("alea-account-menu", u),
|
|
17
|
+
menuProps: t ? { ...m, onAction: (h) => t(h) } : m,
|
|
18
|
+
header: /* @__PURE__ */ l("div", { className: "alea-account-head", children: [
|
|
19
|
+
/* @__PURE__ */ a(i, { name: c, src: o, size: "md" }),
|
|
20
|
+
/* @__PURE__ */ l("span", { className: "alea-account-text", children: [
|
|
21
|
+
/* @__PURE__ */ a("span", { className: "alea-account-name", children: c }),
|
|
22
|
+
e && /* @__PURE__ */ a("span", { className: "alea-account-secondary", children: e })
|
|
23
|
+
] })
|
|
24
|
+
] }),
|
|
25
|
+
trigger: /* @__PURE__ */ a(b, { size: r, "aria-label": n ?? `${c}, account menu`, children: /* @__PURE__ */ a(i, { name: c, src: o, size: r === "lg" ? "md" : "sm" }) }),
|
|
26
|
+
children: d
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
B as AccountMenu
|
|
32
|
+
};
|
|
@@ -3,7 +3,7 @@ import { type LinkProps } from 'react-aria-components';
|
|
|
3
3
|
export interface AppShellProps {
|
|
4
4
|
/** Logo or product name, top left. */
|
|
5
5
|
brand?: ReactNode;
|
|
6
|
-
/** Things on the right of the header: search, theme toggle, avatar. */
|
|
6
|
+
/** Things on the right of the header: search, theme toggle, avatar. They wrap onto a second row when the width or the text size does not leave room, so the page never scrolls sideways. */
|
|
7
7
|
headerEnd?: ReactNode;
|
|
8
8
|
/** The side navigation (a SidebarNav). On small screens it moves into a drawer. */
|
|
9
9
|
sidebar?: ReactNode;
|
|
@@ -17,11 +17,18 @@ export interface AppShellProps {
|
|
|
17
17
|
/** header (default): a bar across the top, the sidebar under it. sidebar: a web app layout, the sidebar full height
|
|
18
18
|
* (put the brand in it, e.g. with AppSidebar and WorkspaceSwitcher) and the page in an inset panel whose top bar holds headerEnd. */
|
|
19
19
|
layout?: 'header' | 'sidebar';
|
|
20
|
+
/** Limits and centers the page content: sm 640, md 768, lg 1024, xl 1280 (the same widths as Container, without extra gutters) or full. Default full: the content fills the area. */
|
|
21
|
+
contentSize?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
22
|
+
/** The built-in "Skip to content" link. false removes it (the app brings its own, so there are not two); an object sets another target id (without #) and text. Default: on, to the shell's own main element. */
|
|
23
|
+
skipLink?: false | {
|
|
24
|
+
target?: string;
|
|
25
|
+
label?: ReactNode;
|
|
26
|
+
};
|
|
20
27
|
/** Extra class names for the root element. */
|
|
21
28
|
className?: string;
|
|
22
29
|
}
|
|
23
30
|
/** The app frame: sticky header, sidebar, scrollable content and a skip link. */
|
|
24
|
-
export declare function AppShell({ brand, headerEnd, sidebar, children, sidebarWidth, collapseBelow, mainAs, layout, className }: AppShellProps): import("react").JSX.Element;
|
|
31
|
+
export declare function AppShell({ brand, headerEnd, sidebar, children, sidebarWidth, collapseBelow, mainAs, layout, contentSize, skipLink, className }: AppShellProps): import("react").JSX.Element;
|
|
25
32
|
export interface SidebarNavProps {
|
|
26
33
|
children: ReactNode;
|
|
27
34
|
/** Name of the navigation. Default "Sidebar". */
|