@blakesteve/roster 5.7.0 → 5.9.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/README.md +169 -5
- package/dist/components/atoms/Avatar/Avatar.cjs +1 -1
- package/dist/components/atoms/Avatar/Avatar.d.ts +4 -0
- package/dist/components/atoms/Avatar/Avatar.js +1 -1
- package/dist/components/atoms/AvatarStrip/AvatarStrip.cjs +1 -1
- package/dist/components/atoms/AvatarStrip/AvatarStrip.d.ts +10 -1
- package/dist/components/atoms/AvatarStrip/AvatarStrip.js +34 -30
- package/dist/components/atoms/Button/button-variants.cjs +1 -1
- package/dist/components/atoms/Button/button-variants.js +5 -3
- package/dist/components/atoms/Eyebrow/eyebrow-variants.cjs +1 -1
- package/dist/components/atoms/Eyebrow/eyebrow-variants.js +8 -4
- package/dist/components/atoms/MultiSelect/MultiSelect.cjs +1 -1
- package/dist/components/atoms/MultiSelect/MultiSelect.d.ts +3 -1
- package/dist/components/atoms/MultiSelect/MultiSelect.js +87 -89
- package/dist/components/atoms/Progress/Progress.cjs +1 -1
- package/dist/components/atoms/Progress/Progress.d.ts +1 -0
- package/dist/components/atoms/Progress/Progress.js +28 -27
- package/dist/components/atoms/Stat/Stat.cjs +1 -1
- package/dist/components/atoms/Stat/Stat.js +5 -5
- package/dist/components/atoms/Stat/stat-variants.cjs +1 -1
- package/dist/components/atoms/Stat/stat-variants.js +10 -8
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +10 -1
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +31 -29
- package/dist/components/molecules/CallToAction/CallToAction.cjs +1 -1
- package/dist/components/molecules/CallToAction/CallToAction.d.ts +8 -1
- package/dist/components/molecules/CallToAction/CallToAction.js +34 -29
- package/dist/components/molecules/Carousel/Carousel.cjs +1 -1
- package/dist/components/molecules/Carousel/Carousel.d.ts +7 -0
- package/dist/components/molecules/Carousel/Carousel.js +155 -155
- package/dist/components/molecules/ErrorState/ErrorState.cjs +1 -1
- package/dist/components/molecules/ErrorState/ErrorState.d.ts +8 -1
- package/dist/components/molecules/ErrorState/ErrorState.js +44 -39
- package/dist/components/molecules/FileUpload/FileUpload.cjs +1 -1
- package/dist/components/molecules/FileUpload/FileUpload.js +23 -22
- package/dist/components/molecules/MediaPreview/MediaPreview.cjs +1 -1
- package/dist/components/molecules/MediaPreview/MediaPreview.d.ts +3 -1
- package/dist/components/molecules/MediaPreview/MediaPreview.js +13 -12
- package/dist/components/molecules/Menu/Menu.cjs +1 -0
- package/dist/components/molecules/Menu/Menu.d.ts +169 -0
- package/dist/components/molecules/Menu/Menu.js +577 -0
- package/dist/components/molecules/Menu/menu-typeahead.cjs +1 -0
- package/dist/components/molecules/Menu/menu-typeahead.d.ts +7 -0
- package/dist/components/molecules/Menu/menu-typeahead.js +13 -0
- package/dist/components/molecules/Pagination/Pagination.cjs +1 -1
- package/dist/components/molecules/Pagination/Pagination.d.ts +1 -0
- package/dist/components/molecules/Pagination/Pagination.js +47 -46
- package/dist/components/molecules/ProgressField/ProgressField.d.ts +1 -0
- package/dist/components/molecules/SkeletonPresets/SkeletonPresets.cjs +1 -1
- package/dist/components/molecules/SkeletonPresets/SkeletonPresets.d.ts +2 -2
- package/dist/components/molecules/SkeletonPresets/SkeletonPresets.js +17 -17
- package/dist/components/molecules/StepProgress/StepProgress.cjs +1 -1
- package/dist/components/molecules/StepProgress/StepProgress.d.ts +1 -0
- package/dist/components/molecules/StepProgress/StepProgress.js +9 -8
- package/dist/components/organisms/Countdown/Countdown.cjs +1 -1
- package/dist/components/organisms/Countdown/Countdown.d.ts +13 -0
- package/dist/components/organisms/Countdown/Countdown.js +54 -47
- package/dist/components/organisms/DataTable/DataTable.cjs +1 -1
- package/dist/components/organisms/DataTable/DataTable.d.ts +5 -3
- package/dist/components/organisms/DataTable/DataTable.js +27 -26
- package/dist/components/organisms/Dialog/Dialog.cjs +1 -1
- package/dist/components/organisms/Dialog/Dialog.d.ts +8 -1
- package/dist/components/organisms/Dialog/Dialog.js +25 -23
- package/dist/components/organisms/Footer/Footer.cjs +1 -1
- package/dist/components/organisms/Footer/Footer.d.ts +9 -0
- package/dist/components/organisms/Footer/Footer.js +21 -23
- package/dist/components/organisms/ModerationQueue/ModerationQueue.cjs +1 -1
- package/dist/components/organisms/ModerationQueue/ModerationQueue.d.ts +40 -1
- package/dist/components/organisms/ModerationQueue/ModerationQueue.js +262 -237
- package/dist/components/organisms/ModerationQueue/QueueEditDialog.cjs +1 -1
- package/dist/components/organisms/ModerationQueue/QueueEditDialog.d.ts +1 -1
- package/dist/components/organisms/ModerationQueue/QueueEditDialog.js +23 -21
- package/dist/components/organisms/ModerationQueue/QueueEditSheet.cjs +1 -1
- package/dist/components/organisms/ModerationQueue/QueueEditSheet.d.ts +1 -1
- package/dist/components/organisms/ModerationQueue/QueueEditSheet.js +22 -20
- package/dist/components/organisms/ModerationQueue/queue-actions.d.ts +29 -10
- package/dist/components/organisms/Navbar/Navbar.cjs +1 -1
- package/dist/components/organisms/Navbar/Navbar.d.ts +39 -4
- package/dist/components/organisms/Navbar/Navbar.js +297 -301
- package/dist/components/organisms/Navbar/navbar-variants.cjs +1 -1
- package/dist/components/organisms/Navbar/navbar-variants.js +4 -2
- package/dist/components/organisms/Sheet/Sheet.cjs +1 -1
- package/dist/components/organisms/Sheet/Sheet.d.ts +8 -1
- package/dist/components/organisms/Sheet/Sheet.js +65 -63
- package/dist/index.d.ts +1 -0
- package/dist/lib/labels.cjs +1 -0
- package/dist/lib/labels.d.ts +7 -0
- package/dist/lib/labels.js +12 -0
- package/dist/meta.json +3 -3
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +7 -7
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +2 -2
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +5 -5
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +6 -6
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.cjs +1 -1
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +52 -61
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +6 -6
- package/dist/roster.cjs +1 -1
- package/dist/roster.css +1 -1
- package/dist/roster.js +127 -116
- package/package.json +2 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.cjs +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +0 -21
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.cjs +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +0 -120
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.cjs +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js +0 -197
|
@@ -1,118 +1,172 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as r, jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { FontAwesomeIcon as
|
|
5
|
-
import { faInbox as
|
|
6
|
-
import { cn as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { Menu as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
2
|
+
import { jsx as r, jsxs as a, Fragment as U } from "react/jsx-runtime";
|
|
3
|
+
import hr, { useRef as R, Fragment as ur, useEffect as z } from "react";
|
|
4
|
+
import { FontAwesomeIcon as f } from "../../../node_modules/@fortawesome/react-fontawesome/dist/index.js";
|
|
5
|
+
import { faInbox as gr, faMoon as W, faRightFromBracket as fr, faXmark as Y, faBars as yr } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
6
|
+
import { cn as i } from "../../../lib/utils.js";
|
|
7
|
+
import { withLabels as pr } from "../../../lib/labels.js";
|
|
8
|
+
import { Button as j } from "../../atoms/Button/Button.js";
|
|
9
|
+
import { Link as A } from "../../atoms/Link/Link.js";
|
|
10
|
+
import { Badge as Z } from "../../atoms/Badge/Badge.js";
|
|
11
|
+
import { Avatar as xr } from "../../atoms/Avatar/Avatar.js";
|
|
12
|
+
import { switchThumbVariants as vr, switchTrackVariants as br } from "../../atoms/Switch/switch-variants.js";
|
|
13
|
+
import { Menu as kr, MenuButton as Nr, MenuItems as wr, MenuGroup as D, MenuItem as _, MenuCheckboxItem as Mr } from "../../molecules/Menu/Menu.js";
|
|
14
|
+
import { navbarVariants as Sr } from "./navbar-variants.js";
|
|
15
|
+
import { Popover as Cr, PopoverButton as T, PopoverPanel as Er } from "../../../node_modules/@headlessui/react/dist/components/popover/popover.js";
|
|
16
|
+
import { Transition as Fr } from "../../../node_modules/@headlessui/react/dist/components/transition/transition.js";
|
|
17
|
+
function H({ on: e, size: s }) {
|
|
17
18
|
return /* @__PURE__ */ r(
|
|
18
19
|
"span",
|
|
19
20
|
{
|
|
20
21
|
"aria-hidden": "true",
|
|
21
22
|
"data-testid": "navbar-theme-track",
|
|
22
23
|
"data-checked": e ? "" : void 0,
|
|
23
|
-
className:
|
|
24
|
-
children: /* @__PURE__ */ r("span", { className:
|
|
24
|
+
className: i(br({ size: s, variant: "neutral" }), "rst:pointer-events-none"),
|
|
25
|
+
children: /* @__PURE__ */ r("span", { className: i(vr({ size: s })) })
|
|
25
26
|
}
|
|
26
27
|
);
|
|
27
28
|
}
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
const K = "rst:gap-2 rst:px-4 rst:[&>[data-menu-lead]]:w-auto rst:text-gray-700 rst:dark:text-gray-200 rst:focus:bg-gray-50 rst:focus:text-gray-700 rst:dark:focus:bg-gray-700 rst:dark:focus:text-gray-200", Or = /* @__PURE__ */ i(
|
|
30
|
+
K,
|
|
31
|
+
"rst:font-semibold rst:rounded-sm rst:hover:text-gray-900 rst:dark:hover:text-gray-100 rst:hover:focus:text-gray-900 rst:dark:hover:focus:text-gray-100"
|
|
32
|
+
), rr = /* @__PURE__ */ new WeakMap();
|
|
33
|
+
function jr(e) {
|
|
34
|
+
if (!e || typeof e == "string") return;
|
|
35
|
+
let s = rr.get(e);
|
|
36
|
+
return s || (s = (n) => /* @__PURE__ */ r(e, { ...n }), rr.set(e, s)), s;
|
|
37
|
+
}
|
|
38
|
+
const tr = /* @__PURE__ */ i(
|
|
39
|
+
K,
|
|
40
|
+
"rst:border rst:border-transparent rst:font-medium rst:text-gray-600 rst:dark:text-gray-400 rst:focus:text-gray-600 rst:dark:focus:text-gray-400 rst:hover:bg-gray-500/10 rst:dark:hover:bg-gray-400/15 rst:hover:focus:bg-gray-500/10 rst:dark:hover:focus:bg-gray-400/15"
|
|
41
|
+
), er = (e, s) => typeof e == "function" ? e({ close: s }) : e, Ar = {
|
|
42
|
+
openMainMenu: "Open main menu",
|
|
43
|
+
closeMainMenu: "Close menu",
|
|
44
|
+
openUserMenu: "Open user menu",
|
|
45
|
+
logIn: "Log In",
|
|
46
|
+
logOut: "Log Out",
|
|
47
|
+
darkMode: "Dark Mode",
|
|
48
|
+
pendingInvitations: "Pending Invitations",
|
|
49
|
+
inbox: (e) => `Inbox (${e})`
|
|
50
|
+
};
|
|
51
|
+
function Br(e) {
|
|
52
|
+
return hr.useSyncExternalStore(
|
|
53
|
+
(s) => {
|
|
34
54
|
if (!e || typeof document > "u") return () => {
|
|
35
55
|
};
|
|
36
|
-
const
|
|
37
|
-
return
|
|
56
|
+
const n = new MutationObserver(s);
|
|
57
|
+
return n.observe(document.documentElement, {
|
|
38
58
|
attributes: !0,
|
|
39
59
|
attributeFilter: ["class"]
|
|
40
|
-
}), () =>
|
|
60
|
+
}), () => n.disconnect();
|
|
41
61
|
},
|
|
42
62
|
() => e && document.documentElement.classList.contains("dark"),
|
|
43
63
|
() => !1
|
|
44
64
|
);
|
|
45
65
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
function sr(e, s) {
|
|
67
|
+
if (!s || !e) return !1;
|
|
68
|
+
if (e.contains(s)) return !0;
|
|
69
|
+
const n = s.closest?.("[data-menu-panel]")?.getAttribute("data-menu-tree");
|
|
70
|
+
return !!n && !!e.querySelector(`[data-menu-tree="${CSS.escape(n)}"]`);
|
|
71
|
+
}
|
|
72
|
+
const Ir = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
73
|
+
function Lr({ close: e, panel: s, hamburger: n }) {
|
|
74
|
+
return z(() => {
|
|
75
|
+
const h = (y) => {
|
|
76
|
+
const x = y.target;
|
|
77
|
+
!sr(s.current, x) && !n.current?.contains(x) && e();
|
|
51
78
|
};
|
|
52
|
-
return document.addEventListener("pointerdown",
|
|
53
|
-
}, [e]), null;
|
|
79
|
+
return document.addEventListener("pointerdown", h, { capture: !0 }), () => document.removeEventListener("pointerdown", h, { capture: !0 });
|
|
80
|
+
}, [e, s, n]), null;
|
|
54
81
|
}
|
|
55
|
-
function
|
|
82
|
+
function Ur({ close: e, panel: s }) {
|
|
83
|
+
return z(() => {
|
|
84
|
+
const n = (y) => {
|
|
85
|
+
sr(s.current, y.target) || e();
|
|
86
|
+
}, h = requestAnimationFrame(() => {
|
|
87
|
+
s.current?.querySelector(Ir)?.focus(), document.addEventListener("focusin", n);
|
|
88
|
+
});
|
|
89
|
+
return () => {
|
|
90
|
+
cancelAnimationFrame(h), document.removeEventListener("focusin", n);
|
|
91
|
+
};
|
|
92
|
+
}, [e, s]), null;
|
|
93
|
+
}
|
|
94
|
+
function Dr({
|
|
56
95
|
activePath: e,
|
|
57
|
-
close:
|
|
96
|
+
close: s
|
|
58
97
|
}) {
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
}, [e,
|
|
98
|
+
const n = R(e);
|
|
99
|
+
return z(() => {
|
|
100
|
+
n.current !== e && (n.current = e, s());
|
|
101
|
+
}, [e, s]), null;
|
|
63
102
|
}
|
|
64
|
-
const
|
|
103
|
+
const Hr = ({
|
|
65
104
|
logoSrc: e,
|
|
66
|
-
logoSize:
|
|
67
|
-
|
|
105
|
+
logoSize: s = "2rem",
|
|
106
|
+
logoHeight: n,
|
|
107
|
+
logoWidth: h,
|
|
108
|
+
logoClassName: y,
|
|
68
109
|
brandName: x,
|
|
69
|
-
items:
|
|
70
|
-
activePath:
|
|
71
|
-
routerElement:
|
|
72
|
-
user:
|
|
73
|
-
onLogin:
|
|
74
|
-
onLogout:
|
|
75
|
-
onInboxClick:
|
|
76
|
-
onThemeToggle:
|
|
77
|
-
actions:
|
|
78
|
-
brandElement:
|
|
79
|
-
navActions:
|
|
80
|
-
userMenuItems:
|
|
81
|
-
className:
|
|
82
|
-
variant:
|
|
83
|
-
position:
|
|
110
|
+
items: $,
|
|
111
|
+
activePath: N,
|
|
112
|
+
routerElement: v,
|
|
113
|
+
user: o,
|
|
114
|
+
onLogin: w,
|
|
115
|
+
onLogout: M,
|
|
116
|
+
onInboxClick: b,
|
|
117
|
+
onThemeToggle: p,
|
|
118
|
+
actions: ar,
|
|
119
|
+
brandElement: q,
|
|
120
|
+
navActions: nr,
|
|
121
|
+
userMenuItems: S = [],
|
|
122
|
+
className: ir,
|
|
123
|
+
variant: l = "default",
|
|
124
|
+
position: or = "sticky",
|
|
84
125
|
themeMode: B,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
126
|
+
labels: cr,
|
|
127
|
+
notificationVariant: P = "error",
|
|
128
|
+
notificationFill: V = "solid",
|
|
129
|
+
...dr
|
|
88
130
|
}) => {
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
131
|
+
const c = pr(Ar, cr), lr = jr(v), k = (o?.notificationCount || 0) > 0, C = (u) => typeof u == "number" ? `${u}px` : u, G = n !== void 0 || h !== void 0, X = G ? {
|
|
132
|
+
width: h === void 0 ? "auto" : C(h),
|
|
133
|
+
height: n === void 0 ? "auto" : C(n)
|
|
134
|
+
} : { width: C(s), height: C(s) }, J = G && "rst:object-contain rst:object-left rst:rtl:object-right", mr = Br(B === "auto"), m = (B === "auto" ? mr ? "dark" : "light" : B ?? (l === "white" || l === "default" ? "light" : "dark")) === "dark", E = l === "slate" || l === "primary" || l === "default" && m || l === "white" && m || l === "transparent" && m, F = l === "primary" ? {
|
|
135
|
+
// On primary-700, text is that fill's ink (the dimmer links at 80%),
|
|
136
|
+
// so a light primary gets dark text. The dark fill is primary-950,
|
|
137
|
+
// which the ink doesn't describe: there it stays the dark surface's
|
|
138
|
+
// white and grays.
|
|
139
|
+
brand: "rst:text-primary-700-ink rst:hover:text-primary-700-ink/80 rst:dark:text-white rst:dark:hover:text-gray-200",
|
|
140
|
+
linkBase: "rst:text-primary-700-ink/80 rst:hover:text-primary-700-ink rst:dark:text-gray-300 rst:dark:hover:text-white",
|
|
141
|
+
linkActive: "rst:text-primary-700-ink rst:font-semibold rst:hover:text-primary-700-ink/80 rst:dark:text-primary-400 rst:dark:hover:text-primary-300",
|
|
142
|
+
hamburger: "rst:text-primary-700-ink/80 rst:hover:bg-primary-700-ink/10 rst:hover:text-primary-700-ink rst:dark:text-gray-300 rst:dark:hover:bg-white/10 rst:dark:hover:text-white"
|
|
143
|
+
} : {
|
|
144
|
+
brand: E ? "rst:text-white rst:dark:text-white rst:hover:text-gray-200 rst:dark:hover:text-gray-200" : "rst:text-gray-900 rst:dark:text-gray-900 rst:hover:text-gray-600 rst:dark:hover:text-gray-600",
|
|
145
|
+
linkBase: E ? "rst:text-gray-300 rst:dark:text-gray-300 rst:hover:text-white rst:dark:hover:text-white" : "rst:text-gray-600 rst:dark:text-gray-600 rst:hover:text-gray-900 rst:dark:hover:text-gray-900",
|
|
146
|
+
linkActive: E ? "rst:text-primary-400 rst:dark:text-primary-400 rst:font-semibold rst:hover:text-primary-300 rst:dark:hover:text-primary-300" : "rst:text-primary-600 rst:dark:text-primary-600 rst:font-semibold rst:hover:text-primary-700 rst:dark:hover:text-primary-700",
|
|
147
|
+
hamburger: E ? "rst:text-gray-300 rst:dark:text-gray-300 rst:hover:bg-white/10 rst:dark:hover:bg-white/10 rst:hover:text-white rst:dark:hover:text-white" : "rst:text-gray-500 rst:dark:text-gray-500 rst:hover:bg-gray-100 rst:dark:hover:bg-gray-100 rst:hover:text-gray-700 rst:dark:hover:text-gray-700"
|
|
148
|
+
}, I = R(null), Q = R(null);
|
|
95
149
|
return /* @__PURE__ */ r(
|
|
96
|
-
|
|
150
|
+
Cr,
|
|
97
151
|
{
|
|
98
152
|
as: "nav",
|
|
99
|
-
className:
|
|
100
|
-
...
|
|
101
|
-
children: ({ open:
|
|
102
|
-
const
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
153
|
+
className: i("rst:z-50", Sr({ variant: l, position: or }), ir),
|
|
154
|
+
...dr,
|
|
155
|
+
children: ({ open: u, close: d }) => {
|
|
156
|
+
const O = er(ar, d), L = er(nr, d);
|
|
157
|
+
return /* @__PURE__ */ a(U, { children: [
|
|
158
|
+
/* @__PURE__ */ a("div", { className: "rst:container rst:mx-auto rst:flex rst:items-center rst:justify-between rst:px-4 rst:h-16", children: [
|
|
159
|
+
/* @__PURE__ */ a(
|
|
160
|
+
A,
|
|
107
161
|
{
|
|
108
|
-
as:
|
|
162
|
+
as: v,
|
|
109
163
|
href: "/",
|
|
110
164
|
to: "/",
|
|
111
165
|
variant: "neutral",
|
|
112
166
|
underline: "none",
|
|
113
|
-
className:
|
|
167
|
+
className: i(
|
|
114
168
|
"rst:flex rst:items-center rst:gap-3 rst:transition-opacity",
|
|
115
|
-
|
|
169
|
+
F.brand
|
|
116
170
|
),
|
|
117
171
|
children: [
|
|
118
172
|
/* @__PURE__ */ r(
|
|
@@ -120,28 +174,28 @@ const Ir = ({
|
|
|
120
174
|
{
|
|
121
175
|
src: e,
|
|
122
176
|
alt: "",
|
|
123
|
-
style:
|
|
124
|
-
className:
|
|
177
|
+
style: X,
|
|
178
|
+
className: i("rst:shrink-0", J, y ?? "rst:rounded-md")
|
|
125
179
|
}
|
|
126
180
|
),
|
|
127
|
-
|
|
181
|
+
q ?? /* @__PURE__ */ r("span", { className: "rst:text-xl rst:font-bold rst:tracking-tight", children: x })
|
|
128
182
|
]
|
|
129
183
|
}
|
|
130
184
|
),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */ r("div", { className: "rst:flex rst:items-center rst:gap-6", children:
|
|
133
|
-
const
|
|
134
|
-
return /* @__PURE__ */
|
|
135
|
-
|
|
185
|
+
/* @__PURE__ */ a("div", { className: "rst:hidden rst:md:flex rst:items-center rst:gap-8", children: [
|
|
186
|
+
/* @__PURE__ */ r("div", { className: "rst:flex rst:items-center rst:gap-6", children: $.map((t) => {
|
|
187
|
+
const g = N === t.path;
|
|
188
|
+
return /* @__PURE__ */ a(
|
|
189
|
+
A,
|
|
136
190
|
{
|
|
137
|
-
as:
|
|
191
|
+
as: v,
|
|
138
192
|
href: t.path,
|
|
139
193
|
to: t.path,
|
|
140
194
|
variant: "neutral",
|
|
141
195
|
underline: "none",
|
|
142
|
-
className:
|
|
196
|
+
className: i(
|
|
143
197
|
"rst:inline-flex rst:items-center rst:gap-1.5 rst:text-sm rst:transition-colors rst:duration-200",
|
|
144
|
-
|
|
198
|
+
g ? F.linkActive : F.linkBase
|
|
145
199
|
),
|
|
146
200
|
children: [
|
|
147
201
|
t.label,
|
|
@@ -151,186 +205,129 @@ const Ir = ({
|
|
|
151
205
|
t.path
|
|
152
206
|
);
|
|
153
207
|
}) }),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
|
|
158
|
-
/* @__PURE__ */ r(
|
|
159
|
-
ar,
|
|
160
|
-
{
|
|
161
|
-
initials: i.initials,
|
|
162
|
-
src: i.avatarSrc,
|
|
163
|
-
size: "sm",
|
|
164
|
-
shape: "circle",
|
|
165
|
-
colorScheme: i.avatarColor ?? "primary"
|
|
166
|
-
}
|
|
167
|
-
),
|
|
168
|
-
C && /* @__PURE__ */ r("div", { className: "rst:absolute rst:-top-1 rst:-right-2", children: /* @__PURE__ */ r(
|
|
169
|
-
_,
|
|
170
|
-
{
|
|
171
|
-
fill: L,
|
|
172
|
-
size: "xs",
|
|
173
|
-
statusBadge: !0,
|
|
174
|
-
variant: O,
|
|
175
|
-
children: i.notificationCount
|
|
176
|
-
}
|
|
177
|
-
) })
|
|
178
|
-
] }),
|
|
179
|
-
/* @__PURE__ */ r(
|
|
180
|
-
T,
|
|
208
|
+
L,
|
|
209
|
+
O ?? (o ? /* @__PURE__ */ r("div", { className: "rst:relative rst:ml-2", children: /* @__PURE__ */ a(kr, { linkComponent: lr, children: [
|
|
210
|
+
/* @__PURE__ */ a(
|
|
211
|
+
Nr,
|
|
181
212
|
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
213
|
+
plain: !0,
|
|
214
|
+
className: "rst:relative rst:flex rst:rounded-full rst:text-sm rst:focus-visible:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:focus-visible:ring-offset-2 rst:ring-offset-background rst:before:absolute rst:before:-inset-1.5 rst:before:content-['']",
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ r("span", { className: "rst:sr-only", children: c.openUserMenu }),
|
|
217
|
+
/* @__PURE__ */ r(
|
|
218
|
+
xr,
|
|
219
|
+
{
|
|
220
|
+
"aria-hidden": "true",
|
|
221
|
+
alt: "",
|
|
222
|
+
initials: o.initials,
|
|
223
|
+
src: o.avatarSrc,
|
|
224
|
+
size: "sm",
|
|
225
|
+
shape: "circle",
|
|
226
|
+
colorScheme: o.avatarColor ?? "primary"
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
k && /* @__PURE__ */ r("div", { className: "rst:absolute rst:-top-1 rst:-right-2", children: /* @__PURE__ */ r(
|
|
230
|
+
Z,
|
|
231
|
+
{
|
|
232
|
+
fill: V,
|
|
233
|
+
size: "xs",
|
|
234
|
+
statusBadge: !0,
|
|
235
|
+
variant: P,
|
|
236
|
+
children: o.notificationCount
|
|
237
|
+
}
|
|
238
|
+
) })
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
),
|
|
242
|
+
/* @__PURE__ */ a(
|
|
243
|
+
wr,
|
|
244
|
+
{
|
|
245
|
+
align: "end",
|
|
246
|
+
offset: 8,
|
|
247
|
+
className: "rst:w-48 rst:min-w-0 rst:bg-white rst:dark:bg-gray-800 rst:ring-black/5 rst:dark:ring-white/10 rst:divide-y rst:divide-gray-100 rst:dark:divide-gray-700",
|
|
248
|
+
children: [
|
|
249
|
+
(k && b || p) && /* @__PURE__ */ a(D, { className: "rst:py-1", children: [
|
|
250
|
+
k && b && /* @__PURE__ */ r(
|
|
251
|
+
_,
|
|
193
252
|
{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
253
|
+
onSelect: b,
|
|
254
|
+
className: tr,
|
|
255
|
+
icon: /* @__PURE__ */ r(f, { icon: gr, className: "rst:text-primary-500 rst:w-4" }),
|
|
256
|
+
children: c.inbox(o.notificationCount ?? 0)
|
|
257
|
+
}
|
|
258
|
+
),
|
|
259
|
+
p && /* @__PURE__ */ r(
|
|
260
|
+
Mr,
|
|
261
|
+
{
|
|
262
|
+
checked: m,
|
|
263
|
+
onCheckedChange: () => p(),
|
|
264
|
+
closeOnSelect: !1,
|
|
265
|
+
className: K,
|
|
266
|
+
icon: /* @__PURE__ */ r(
|
|
267
|
+
f,
|
|
204
268
|
{
|
|
205
|
-
icon:
|
|
206
|
-
className: "rst:text-
|
|
269
|
+
icon: W,
|
|
270
|
+
className: i("rst:w-4 rst:transition-colors", m ? "rst:text-amber-500" : "rst:text-gray-400")
|
|
207
271
|
}
|
|
208
272
|
),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
i.notificationCount,
|
|
212
|
-
")"
|
|
213
|
-
]
|
|
273
|
+
indicator: /* @__PURE__ */ r(H, { on: m, size: "xs" }),
|
|
274
|
+
children: /* @__PURE__ */ r("span", { className: "rst:font-medium", children: c.darkMode })
|
|
214
275
|
}
|
|
215
|
-
)
|
|
216
|
-
y && /* @__PURE__ */ r(A, { children: ({ focus: t }) => (
|
|
217
|
-
/* The row is the control. Headless UI keeps
|
|
218
|
-
focus on the menu and clicks the active item
|
|
219
|
-
on Enter or Space, so the row needs no key
|
|
220
|
-
handler of its own. */
|
|
221
|
-
/* @__PURE__ */ s(
|
|
222
|
-
"div",
|
|
223
|
-
{
|
|
224
|
-
ref: gr,
|
|
225
|
-
"aria-checked": c,
|
|
226
|
-
onClick: (o) => {
|
|
227
|
-
o.preventDefault(), y();
|
|
228
|
-
},
|
|
229
|
-
className: a(
|
|
230
|
-
"rst:flex rst:w-full rst:items-center rst:justify-between rst:px-4 rst:py-2 rst:text-sm rst:text-gray-700 rst:dark:text-gray-200 rst:cursor-pointer rst:transition-colors",
|
|
231
|
-
t && "rst:bg-gray-50 rst:dark:bg-gray-700"
|
|
232
|
-
),
|
|
233
|
-
children: [
|
|
234
|
-
/* @__PURE__ */ s("div", { className: "rst:flex rst:items-center rst:gap-2", children: [
|
|
235
|
-
/* @__PURE__ */ r(
|
|
236
|
-
g,
|
|
237
|
-
{
|
|
238
|
-
icon: K,
|
|
239
|
-
className: a(
|
|
240
|
-
"rst:w-4 rst:transition-colors",
|
|
241
|
-
c ? "rst:text-amber-500" : "rst:text-gray-400"
|
|
242
|
-
)
|
|
243
|
-
}
|
|
244
|
-
),
|
|
245
|
-
/* @__PURE__ */ r("span", { className: "rst:font-medium", children: "Dark Mode" })
|
|
246
|
-
] }),
|
|
247
|
-
/* @__PURE__ */ r(X, { on: c, size: "xs" })
|
|
248
|
-
]
|
|
249
|
-
}
|
|
250
|
-
)
|
|
251
|
-
) })
|
|
276
|
+
)
|
|
252
277
|
] }),
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
as: p,
|
|
257
|
-
href: t.path,
|
|
258
|
-
to: t.path,
|
|
259
|
-
variant: "neutral",
|
|
260
|
-
underline: "none",
|
|
261
|
-
className: a(
|
|
262
|
-
"rst:flex rst:w-full rst:items-center rst:justify-between rst:gap-2 rst:px-4 rst:py-2 rst:text-sm rst:text-gray-700 rst:dark:text-gray-200 rst:transition-colors",
|
|
263
|
-
o && "rst:bg-gray-50 rst:dark:bg-gray-700"
|
|
264
|
-
),
|
|
265
|
-
children: [
|
|
266
|
-
t.label,
|
|
267
|
-
t.badge && /* @__PURE__ */ r("span", { className: "rst:inline-flex", children: t.badge })
|
|
268
|
-
]
|
|
269
|
-
}
|
|
270
|
-
) }, t.path)) }),
|
|
271
|
-
k && /* @__PURE__ */ r("div", { className: "rst:py-1", children: /* @__PURE__ */ r(A, { children: ({ focus: t }) => /* @__PURE__ */ r(
|
|
272
|
-
u,
|
|
278
|
+
S.length > 0 && /* @__PURE__ */ r(D, { className: "rst:py-1", children: S.map((t) => /* @__PURE__ */ r(_, { href: t.path, badge: t.badge, className: Or, children: t.label }, t.path)) }),
|
|
279
|
+
M && /* @__PURE__ */ r(D, { className: "rst:py-1", children: /* @__PURE__ */ r(
|
|
280
|
+
_,
|
|
273
281
|
{
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
className: a(
|
|
279
|
-
"rst:w-full rst:justify-start rst:rounded-none rst:px-4",
|
|
280
|
-
t && "rst:bg-gray-50 rst:dark:bg-gray-700"
|
|
281
|
-
),
|
|
282
|
-
startIcon: /* @__PURE__ */ r(
|
|
283
|
-
g,
|
|
284
|
-
{
|
|
285
|
-
icon: sr,
|
|
286
|
-
className: "rst:text-gray-400 rst:dark:text-gray-500 rst:w-4"
|
|
287
|
-
}
|
|
288
|
-
),
|
|
289
|
-
children: "Log Out"
|
|
282
|
+
onSelect: M,
|
|
283
|
+
className: tr,
|
|
284
|
+
icon: /* @__PURE__ */ r(f, { icon: fr, className: "rst:text-gray-400 rst:dark:text-gray-500 rst:w-4" }),
|
|
285
|
+
children: c.logOut
|
|
290
286
|
}
|
|
291
|
-
) })
|
|
292
|
-
]
|
|
287
|
+
) })
|
|
288
|
+
]
|
|
293
289
|
}
|
|
294
290
|
)
|
|
295
|
-
] }) : /* @__PURE__ */ r(
|
|
291
|
+
] }) }) : /* @__PURE__ */ r(j, { size: "sm", variant: "solid", colorScheme: "primary", onClick: w, children: c.logIn }))
|
|
296
292
|
] }),
|
|
297
|
-
/* @__PURE__ */ r("div", { "data-roster-hamburger": !0, className: "rst:flex rst:md:hidden", children: /* @__PURE__ */
|
|
298
|
-
|
|
293
|
+
/* @__PURE__ */ r("div", { ref: Q, "data-roster-hamburger": !0, className: "rst:flex rst:md:hidden", children: /* @__PURE__ */ a(
|
|
294
|
+
T,
|
|
299
295
|
{
|
|
300
|
-
className:
|
|
296
|
+
className: i(
|
|
301
297
|
"rst:inline-flex rst:items-center rst:justify-center rst:rounded-md rst:p-2 rst:focus-visible:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:focus-visible:ring-offset-2 rst:ring-offset-background",
|
|
302
|
-
|
|
298
|
+
F.hamburger
|
|
303
299
|
),
|
|
304
300
|
children: [
|
|
305
|
-
/* @__PURE__ */ r("span", { className: "rst:sr-only", children:
|
|
306
|
-
|
|
307
|
-
|
|
301
|
+
/* @__PURE__ */ r("span", { className: "rst:sr-only", children: c.openMainMenu }),
|
|
302
|
+
u ? /* @__PURE__ */ r(
|
|
303
|
+
f,
|
|
308
304
|
{
|
|
309
|
-
icon:
|
|
305
|
+
icon: Y,
|
|
310
306
|
className: "rst:block rst:h-6 rst:w-6",
|
|
311
307
|
"aria-hidden": "true"
|
|
312
308
|
}
|
|
313
|
-
) : /* @__PURE__ */
|
|
309
|
+
) : /* @__PURE__ */ a("div", { className: "rst:relative", children: [
|
|
314
310
|
/* @__PURE__ */ r(
|
|
315
|
-
|
|
311
|
+
f,
|
|
316
312
|
{
|
|
317
|
-
icon:
|
|
313
|
+
icon: yr,
|
|
318
314
|
className: "rst:block rst:h-6 rst:w-6",
|
|
319
315
|
"aria-hidden": "true"
|
|
320
316
|
}
|
|
321
317
|
),
|
|
322
|
-
|
|
318
|
+
k && /* @__PURE__ */ r("span", { className: "rst:absolute rst:top-0 rst:right-0 rst:block rst:h-2.5 rst:w-2.5 rst:rounded-full rst:bg-error-500 rst:ring-2 rst:ring-transparent rst:transform rst:translate-x-1/4 rst:-translate-y-1/4" })
|
|
323
319
|
] })
|
|
324
320
|
]
|
|
325
321
|
}
|
|
326
322
|
) })
|
|
327
323
|
] }),
|
|
328
|
-
|
|
329
|
-
|
|
324
|
+
u && /* @__PURE__ */ r(Lr, { close: d, panel: I, hamburger: Q }),
|
|
325
|
+
u && /* @__PURE__ */ r(Ur, { close: d, panel: I }),
|
|
326
|
+
u && /* @__PURE__ */ r(Dr, { activePath: N, close: d }),
|
|
330
327
|
/* @__PURE__ */ r(
|
|
331
|
-
|
|
328
|
+
Fr,
|
|
332
329
|
{
|
|
333
|
-
as:
|
|
330
|
+
as: ur,
|
|
334
331
|
enter: "rst:duration-200 rst:ease-out",
|
|
335
332
|
enterFrom: "rst:opacity-0 rst:scale-95",
|
|
336
333
|
enterTo: "rst:opacity-100 rst:scale-100",
|
|
@@ -338,62 +335,61 @@ const Ir = ({
|
|
|
338
335
|
leaveFrom: "rst:opacity-100 rst:scale-100",
|
|
339
336
|
leaveTo: "rst:opacity-0 rst:scale-95",
|
|
340
337
|
children: /* @__PURE__ */ r(
|
|
341
|
-
|
|
338
|
+
Er,
|
|
342
339
|
{
|
|
343
|
-
focus: !0,
|
|
344
340
|
className: "rst:absolute rst:top-0 rst:inset-x-0 rst:z-50 rst:origin-top-right rst:transform rst:p-2 rst:transition rst:md:hidden",
|
|
345
|
-
children: /* @__PURE__ */
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
/* @__PURE__ */
|
|
348
|
-
/* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ a("div", { ref: I, "data-roster-mobile-panel": !0, className: "rst:rounded-lg rst:elevation-anchored rst:ring rst:ring-black/5 rst:dark:ring-white/10 rst:divide-y rst:divide-gray-100 rst:dark:divide-gray-700 rst:bg-white rst:dark:bg-gray-800", children: [
|
|
342
|
+
/* @__PURE__ */ a("div", { className: "rst:px-5 rst:pt-5 rst:pb-6", children: [
|
|
343
|
+
/* @__PURE__ */ a("div", { className: "rst:flex rst:items-center rst:justify-between", children: [
|
|
344
|
+
/* @__PURE__ */ a("div", { className: "rst:flex rst:items-center rst:gap-3", children: [
|
|
349
345
|
/* @__PURE__ */ r(
|
|
350
346
|
"img",
|
|
351
347
|
{
|
|
352
348
|
src: e,
|
|
353
349
|
alt: "",
|
|
354
|
-
style:
|
|
355
|
-
className:
|
|
350
|
+
style: X,
|
|
351
|
+
className: i("rst:shrink-0", J, y ?? "rst:rounded-md")
|
|
356
352
|
}
|
|
357
353
|
),
|
|
358
|
-
|
|
354
|
+
q ?? /* @__PURE__ */ r("span", { className: "rst:font-bold rst:text-gray-900 rst:dark:text-white", children: x })
|
|
359
355
|
] }),
|
|
360
|
-
/* @__PURE__ */ r("div", { className: "rst:-mr-2", children: /* @__PURE__ */
|
|
361
|
-
/* @__PURE__ */ r("span", { className: "rst:sr-only", children:
|
|
356
|
+
/* @__PURE__ */ r("div", { className: "rst:-mr-2", children: /* @__PURE__ */ a(T, { className: "rst:inline-flex rst:items-center rst:justify-center rst:rounded-md rst:p-2 rst:text-gray-400 rst:hover:bg-gray-100 rst:dark:hover:bg-gray-700 rst:hover:text-gray-500 rst:dark:hover:text-white rst:focus:outline-hidden", children: [
|
|
357
|
+
/* @__PURE__ */ r("span", { className: "rst:sr-only", children: c.closeMainMenu }),
|
|
362
358
|
/* @__PURE__ */ r(
|
|
363
|
-
|
|
359
|
+
f,
|
|
364
360
|
{
|
|
365
|
-
icon:
|
|
361
|
+
icon: Y,
|
|
366
362
|
className: "rst:h-6 rst:w-6",
|
|
367
363
|
"aria-hidden": "true"
|
|
368
364
|
}
|
|
369
365
|
)
|
|
370
366
|
] }) })
|
|
371
367
|
] }),
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
-
|
|
376
|
-
const
|
|
368
|
+
/* @__PURE__ */ a("div", { className: "rst:mt-6", children: [
|
|
369
|
+
L && /* @__PURE__ */ r("div", { className: "rst:mb-4", children: L }),
|
|
370
|
+
/* @__PURE__ */ a("nav", { className: "rst:grid rst:gap-y-4", children: [
|
|
371
|
+
$.map((t) => {
|
|
372
|
+
const g = N === t.path;
|
|
377
373
|
return /* @__PURE__ */ r(
|
|
378
|
-
|
|
374
|
+
A,
|
|
379
375
|
{
|
|
380
|
-
as:
|
|
376
|
+
as: v,
|
|
381
377
|
href: t.path,
|
|
382
378
|
to: t.path,
|
|
383
379
|
onClick: () => d(),
|
|
384
380
|
variant: "neutral",
|
|
385
381
|
underline: "none",
|
|
386
|
-
className:
|
|
382
|
+
className: i(
|
|
387
383
|
"rst:-m-3 rst:flex rst:items-center rst:rounded-md rst:p-3 rst:transition-colors",
|
|
388
384
|
"rst:hover:bg-gray-50 rst:dark:hover:bg-gray-700",
|
|
389
|
-
|
|
385
|
+
g ? "rst:bg-gray-50 rst:dark:bg-gray-700" : "rst:text-gray-900 rst:dark:text-gray-100"
|
|
390
386
|
),
|
|
391
|
-
children: /* @__PURE__ */
|
|
387
|
+
children: /* @__PURE__ */ a(
|
|
392
388
|
"span",
|
|
393
389
|
{
|
|
394
|
-
className:
|
|
390
|
+
className: i(
|
|
395
391
|
"rst:ml-3 rst:inline-flex rst:items-center rst:gap-1.5 rst:text-base rst:font-medium",
|
|
396
|
-
|
|
392
|
+
g ? "rst:text-primary-600 rst:dark:text-primary-400 rst:font-bold" : "rst:text-gray-900 rst:dark:text-gray-100"
|
|
397
393
|
),
|
|
398
394
|
children: [
|
|
399
395
|
t.label,
|
|
@@ -405,31 +401,31 @@ const Ir = ({
|
|
|
405
401
|
t.path
|
|
406
402
|
);
|
|
407
403
|
}),
|
|
408
|
-
|
|
404
|
+
o && S.length > 0 && /* @__PURE__ */ a(U, { children: [
|
|
409
405
|
/* @__PURE__ */ r("hr", { className: "rst:border-gray-100 rst:dark:border-gray-700" }),
|
|
410
|
-
|
|
411
|
-
const
|
|
412
|
-
return /* @__PURE__ */
|
|
413
|
-
|
|
406
|
+
S.map((t) => {
|
|
407
|
+
const g = N === t.path;
|
|
408
|
+
return /* @__PURE__ */ a(
|
|
409
|
+
A,
|
|
414
410
|
{
|
|
415
|
-
as:
|
|
411
|
+
as: v,
|
|
416
412
|
href: t.path,
|
|
417
413
|
to: t.path,
|
|
418
414
|
onClick: () => d(),
|
|
419
415
|
variant: "neutral",
|
|
420
416
|
underline: "none",
|
|
421
|
-
className:
|
|
417
|
+
className: i(
|
|
422
418
|
"rst:-m-3 rst:flex rst:items-center rst:rounded-md rst:p-3 rst:transition-colors",
|
|
423
419
|
"rst:hover:bg-gray-50 rst:dark:hover:bg-gray-700",
|
|
424
|
-
|
|
420
|
+
g ? "rst:bg-gray-50 rst:dark:bg-gray-700" : "rst:text-gray-900 rst:dark:text-gray-100"
|
|
425
421
|
),
|
|
426
422
|
children: [
|
|
427
423
|
/* @__PURE__ */ r(
|
|
428
424
|
"span",
|
|
429
425
|
{
|
|
430
|
-
className:
|
|
426
|
+
className: i(
|
|
431
427
|
"rst:ml-3 rst:text-base rst:font-medium",
|
|
432
|
-
|
|
428
|
+
g ? "rst:text-primary-600 rst:dark:text-primary-400 rst:font-bold" : "rst:text-gray-900 rst:dark:text-gray-100"
|
|
433
429
|
),
|
|
434
430
|
children: t.label
|
|
435
431
|
}
|
|
@@ -444,83 +440,83 @@ const Ir = ({
|
|
|
444
440
|
] })
|
|
445
441
|
] })
|
|
446
442
|
] }),
|
|
447
|
-
(
|
|
448
|
-
|
|
443
|
+
(o || O || w) && /* @__PURE__ */ r("div", { className: "rst:py-6 rst:px-5 rst:space-y-4", children: O || (!o && w ? /* @__PURE__ */ r(
|
|
444
|
+
j,
|
|
449
445
|
{
|
|
450
446
|
variant: "solid",
|
|
451
447
|
colorScheme: "primary",
|
|
452
448
|
className: "rst:w-full rst:justify-center",
|
|
453
449
|
onClick: () => {
|
|
454
|
-
|
|
450
|
+
w(), d();
|
|
455
451
|
},
|
|
456
|
-
children:
|
|
452
|
+
children: c.logIn
|
|
457
453
|
}
|
|
458
|
-
) : /* @__PURE__ */
|
|
459
|
-
|
|
460
|
-
|
|
454
|
+
) : /* @__PURE__ */ a(U, { children: [
|
|
455
|
+
k && b && /* @__PURE__ */ r(
|
|
456
|
+
j,
|
|
461
457
|
{
|
|
462
458
|
variant: "ghost",
|
|
463
459
|
colorScheme: "neutral",
|
|
464
460
|
onClick: () => {
|
|
465
|
-
|
|
461
|
+
b?.(), d();
|
|
466
462
|
},
|
|
467
463
|
className: "rst:w-full rst:justify-between rst:px-4 rst:text-base rst:font-medium rst:hover:bg-gray-50 rst:dark:hover:bg-gray-700 rst:text-gray-900 rst:dark:text-gray-100",
|
|
468
464
|
endIcon: /* @__PURE__ */ r(
|
|
469
|
-
|
|
465
|
+
Z,
|
|
470
466
|
{
|
|
471
|
-
fill:
|
|
467
|
+
fill: V,
|
|
472
468
|
size: "xs",
|
|
473
469
|
statusBadge: !0,
|
|
474
|
-
variant:
|
|
475
|
-
children:
|
|
470
|
+
variant: P,
|
|
471
|
+
children: o?.notificationCount
|
|
476
472
|
}
|
|
477
473
|
),
|
|
478
|
-
children:
|
|
474
|
+
children: c.pendingInvitations
|
|
479
475
|
}
|
|
480
476
|
),
|
|
481
|
-
|
|
477
|
+
p && /* The row is the switch: one tab stop, its
|
|
482
478
|
state in `aria-checked`, its name from its text. */
|
|
483
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ a(
|
|
484
480
|
"div",
|
|
485
481
|
{
|
|
486
482
|
onClick: (t) => {
|
|
487
|
-
t.preventDefault(),
|
|
483
|
+
t.preventDefault(), p();
|
|
488
484
|
},
|
|
489
485
|
role: "switch",
|
|
490
|
-
"aria-checked":
|
|
486
|
+
"aria-checked": m,
|
|
491
487
|
tabIndex: 0,
|
|
492
488
|
onKeyDown: (t) => {
|
|
493
|
-
t.repeat || (t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
489
|
+
t.repeat || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), p());
|
|
494
490
|
},
|
|
495
491
|
className: "rst:flex rst:w-full rst:items-center rst:justify-between rst:rounded-md rst:px-4 rst:py-2 rst:text-base rst:transition-colors rst:cursor-pointer rst:hover:bg-gray-50 rst:dark:hover:bg-gray-700 rst:text-gray-900 rst:dark:text-gray-100",
|
|
496
492
|
children: [
|
|
497
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ a("div", { className: "rst:flex rst:items-center rst:gap-3 rst:font-medium", children: [
|
|
498
494
|
/* @__PURE__ */ r(
|
|
499
|
-
|
|
495
|
+
f,
|
|
500
496
|
{
|
|
501
|
-
icon:
|
|
502
|
-
className:
|
|
497
|
+
icon: W,
|
|
498
|
+
className: i(
|
|
503
499
|
"rst:w-5 rst:transition-colors",
|
|
504
|
-
|
|
500
|
+
m ? "rst:text-amber-500" : "rst:text-gray-400"
|
|
505
501
|
)
|
|
506
502
|
}
|
|
507
503
|
),
|
|
508
|
-
/* @__PURE__ */ r("span", { children:
|
|
504
|
+
/* @__PURE__ */ r("span", { children: c.darkMode })
|
|
509
505
|
] }),
|
|
510
|
-
/* @__PURE__ */ r(
|
|
506
|
+
/* @__PURE__ */ r(H, { on: m, size: "sm" })
|
|
511
507
|
]
|
|
512
508
|
}
|
|
513
509
|
),
|
|
514
|
-
|
|
515
|
-
|
|
510
|
+
M && /* @__PURE__ */ r(
|
|
511
|
+
j,
|
|
516
512
|
{
|
|
517
513
|
variant: "outline",
|
|
518
514
|
colorScheme: "error",
|
|
519
515
|
className: "rst:w-full rst:justify-center",
|
|
520
516
|
onClick: () => {
|
|
521
|
-
|
|
517
|
+
M?.(), d();
|
|
522
518
|
},
|
|
523
|
-
children:
|
|
519
|
+
children: c.logOut
|
|
524
520
|
}
|
|
525
521
|
)
|
|
526
522
|
] })) })
|
|
@@ -535,5 +531,5 @@ const Ir = ({
|
|
|
535
531
|
);
|
|
536
532
|
};
|
|
537
533
|
export {
|
|
538
|
-
|
|
534
|
+
Hr as Navbar
|
|
539
535
|
};
|