@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.
Files changed (106) hide show
  1. package/README.md +169 -5
  2. package/dist/components/atoms/Avatar/Avatar.cjs +1 -1
  3. package/dist/components/atoms/Avatar/Avatar.d.ts +4 -0
  4. package/dist/components/atoms/Avatar/Avatar.js +1 -1
  5. package/dist/components/atoms/AvatarStrip/AvatarStrip.cjs +1 -1
  6. package/dist/components/atoms/AvatarStrip/AvatarStrip.d.ts +10 -1
  7. package/dist/components/atoms/AvatarStrip/AvatarStrip.js +34 -30
  8. package/dist/components/atoms/Button/button-variants.cjs +1 -1
  9. package/dist/components/atoms/Button/button-variants.js +5 -3
  10. package/dist/components/atoms/Eyebrow/eyebrow-variants.cjs +1 -1
  11. package/dist/components/atoms/Eyebrow/eyebrow-variants.js +8 -4
  12. package/dist/components/atoms/MultiSelect/MultiSelect.cjs +1 -1
  13. package/dist/components/atoms/MultiSelect/MultiSelect.d.ts +3 -1
  14. package/dist/components/atoms/MultiSelect/MultiSelect.js +87 -89
  15. package/dist/components/atoms/Progress/Progress.cjs +1 -1
  16. package/dist/components/atoms/Progress/Progress.d.ts +1 -0
  17. package/dist/components/atoms/Progress/Progress.js +28 -27
  18. package/dist/components/atoms/Stat/Stat.cjs +1 -1
  19. package/dist/components/atoms/Stat/Stat.js +5 -5
  20. package/dist/components/atoms/Stat/stat-variants.cjs +1 -1
  21. package/dist/components/atoms/Stat/stat-variants.js +10 -8
  22. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.cjs +1 -1
  23. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +10 -1
  24. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +31 -29
  25. package/dist/components/molecules/CallToAction/CallToAction.cjs +1 -1
  26. package/dist/components/molecules/CallToAction/CallToAction.d.ts +8 -1
  27. package/dist/components/molecules/CallToAction/CallToAction.js +34 -29
  28. package/dist/components/molecules/Carousel/Carousel.cjs +1 -1
  29. package/dist/components/molecules/Carousel/Carousel.d.ts +7 -0
  30. package/dist/components/molecules/Carousel/Carousel.js +155 -155
  31. package/dist/components/molecules/ErrorState/ErrorState.cjs +1 -1
  32. package/dist/components/molecules/ErrorState/ErrorState.d.ts +8 -1
  33. package/dist/components/molecules/ErrorState/ErrorState.js +44 -39
  34. package/dist/components/molecules/FileUpload/FileUpload.cjs +1 -1
  35. package/dist/components/molecules/FileUpload/FileUpload.js +23 -22
  36. package/dist/components/molecules/MediaPreview/MediaPreview.cjs +1 -1
  37. package/dist/components/molecules/MediaPreview/MediaPreview.d.ts +3 -1
  38. package/dist/components/molecules/MediaPreview/MediaPreview.js +13 -12
  39. package/dist/components/molecules/Menu/Menu.cjs +1 -0
  40. package/dist/components/molecules/Menu/Menu.d.ts +169 -0
  41. package/dist/components/molecules/Menu/Menu.js +577 -0
  42. package/dist/components/molecules/Menu/menu-typeahead.cjs +1 -0
  43. package/dist/components/molecules/Menu/menu-typeahead.d.ts +7 -0
  44. package/dist/components/molecules/Menu/menu-typeahead.js +13 -0
  45. package/dist/components/molecules/Pagination/Pagination.cjs +1 -1
  46. package/dist/components/molecules/Pagination/Pagination.d.ts +1 -0
  47. package/dist/components/molecules/Pagination/Pagination.js +47 -46
  48. package/dist/components/molecules/ProgressField/ProgressField.d.ts +1 -0
  49. package/dist/components/molecules/SkeletonPresets/SkeletonPresets.cjs +1 -1
  50. package/dist/components/molecules/SkeletonPresets/SkeletonPresets.d.ts +2 -2
  51. package/dist/components/molecules/SkeletonPresets/SkeletonPresets.js +17 -17
  52. package/dist/components/molecules/StepProgress/StepProgress.cjs +1 -1
  53. package/dist/components/molecules/StepProgress/StepProgress.d.ts +1 -0
  54. package/dist/components/molecules/StepProgress/StepProgress.js +9 -8
  55. package/dist/components/organisms/Countdown/Countdown.cjs +1 -1
  56. package/dist/components/organisms/Countdown/Countdown.d.ts +13 -0
  57. package/dist/components/organisms/Countdown/Countdown.js +54 -47
  58. package/dist/components/organisms/DataTable/DataTable.cjs +1 -1
  59. package/dist/components/organisms/DataTable/DataTable.d.ts +5 -3
  60. package/dist/components/organisms/DataTable/DataTable.js +27 -26
  61. package/dist/components/organisms/Dialog/Dialog.cjs +1 -1
  62. package/dist/components/organisms/Dialog/Dialog.d.ts +8 -1
  63. package/dist/components/organisms/Dialog/Dialog.js +25 -23
  64. package/dist/components/organisms/Footer/Footer.cjs +1 -1
  65. package/dist/components/organisms/Footer/Footer.d.ts +9 -0
  66. package/dist/components/organisms/Footer/Footer.js +21 -23
  67. package/dist/components/organisms/ModerationQueue/ModerationQueue.cjs +1 -1
  68. package/dist/components/organisms/ModerationQueue/ModerationQueue.d.ts +40 -1
  69. package/dist/components/organisms/ModerationQueue/ModerationQueue.js +262 -237
  70. package/dist/components/organisms/ModerationQueue/QueueEditDialog.cjs +1 -1
  71. package/dist/components/organisms/ModerationQueue/QueueEditDialog.d.ts +1 -1
  72. package/dist/components/organisms/ModerationQueue/QueueEditDialog.js +23 -21
  73. package/dist/components/organisms/ModerationQueue/QueueEditSheet.cjs +1 -1
  74. package/dist/components/organisms/ModerationQueue/QueueEditSheet.d.ts +1 -1
  75. package/dist/components/organisms/ModerationQueue/QueueEditSheet.js +22 -20
  76. package/dist/components/organisms/ModerationQueue/queue-actions.d.ts +29 -10
  77. package/dist/components/organisms/Navbar/Navbar.cjs +1 -1
  78. package/dist/components/organisms/Navbar/Navbar.d.ts +39 -4
  79. package/dist/components/organisms/Navbar/Navbar.js +297 -301
  80. package/dist/components/organisms/Navbar/navbar-variants.cjs +1 -1
  81. package/dist/components/organisms/Navbar/navbar-variants.js +4 -2
  82. package/dist/components/organisms/Sheet/Sheet.cjs +1 -1
  83. package/dist/components/organisms/Sheet/Sheet.d.ts +8 -1
  84. package/dist/components/organisms/Sheet/Sheet.js +65 -63
  85. package/dist/index.d.ts +1 -0
  86. package/dist/lib/labels.cjs +1 -0
  87. package/dist/lib/labels.d.ts +7 -0
  88. package/dist/lib/labels.js +12 -0
  89. package/dist/meta.json +3 -3
  90. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +7 -7
  91. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +2 -2
  92. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +5 -5
  93. package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +6 -6
  94. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.cjs +1 -1
  95. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +52 -61
  96. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +6 -6
  97. package/dist/roster.cjs +1 -1
  98. package/dist/roster.css +1 -1
  99. package/dist/roster.js +127 -116
  100. package/package.json +2 -1
  101. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.cjs +0 -1
  102. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +0 -21
  103. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.cjs +0 -1
  104. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +0 -120
  105. package/dist/node_modules/@headlessui/react/dist/components/menu/menu.cjs +0 -1
  106. 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 s, Fragment as I } from "react/jsx-runtime";
3
- import Z, { Fragment as E, useEffect as H, useRef as rr } from "react";
4
- import { FontAwesomeIcon as g } from "../../../node_modules/@fortawesome/react-fontawesome/dist/index.js";
5
- import { faInbox as tr, faMoon as K, faRightFromBracket as sr, faXmark as V, faBars as er } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
6
- import { cn as a } from "../../../lib/utils.js";
7
- import { Button as u } from "../../atoms/Button/Button.js";
8
- import { Link as f } from "../../atoms/Link/Link.js";
9
- import { Badge as _ } from "../../atoms/Badge/Badge.js";
10
- import { Avatar as ar } from "../../atoms/Avatar/Avatar.js";
11
- import { switchThumbVariants as nr, switchTrackVariants as ir } from "../../atoms/Switch/switch-variants.js";
12
- import { navbarVariants as or } from "./navbar-variants.js";
13
- import { Menu as lr, MenuButton as cr, MenuItems as dr, MenuItem as A } from "../../../node_modules/@headlessui/react/dist/components/menu/menu.js";
14
- import { Popover as mr, PopoverButton as $, PopoverPanel as hr } from "../../../node_modules/@headlessui/react/dist/components/popover/popover.js";
15
- import { Transition as T } from "../../../node_modules/@headlessui/react/dist/components/transition/transition.js";
16
- function X({ on: e, size: n }) {
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: a(ir({ size: n, variant: "neutral" }), "rst:pointer-events-none"),
24
- children: /* @__PURE__ */ r("span", { className: a(nr({ size: n })) })
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 gr = (e) => {
29
- e?.setAttribute("role", "menuitemcheckbox");
30
- }, G = (e, n) => typeof e == "function" ? e({ close: n }) : e;
31
- function ur(e) {
32
- return Z.useSyncExternalStore(
33
- (n) => {
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 l = new MutationObserver(n);
37
- return l.observe(document.documentElement, {
56
+ const n = new MutationObserver(s);
57
+ return n.observe(document.documentElement, {
38
58
  attributes: !0,
39
59
  attributeFilter: ["class"]
40
- }), () => l.disconnect();
60
+ }), () => n.disconnect();
41
61
  },
42
62
  () => e && document.documentElement.classList.contains("dark"),
43
63
  () => !1
44
64
  );
45
65
  }
46
- function pr({ close: e }) {
47
- return H(() => {
48
- const n = (l) => {
49
- const x = document.querySelector("[data-roster-mobile-panel]"), v = document.querySelector("[data-roster-hamburger]"), h = l.target;
50
- !x?.contains(h) && !v?.contains(h) && e();
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", n, { capture: !0 }), () => document.removeEventListener("pointerdown", n, { capture: !0 });
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 yr({
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: n
96
+ close: s
58
97
  }) {
59
- const l = rr(e);
60
- return H(() => {
61
- l.current !== e && (l.current = e, n());
62
- }, [e, n]), null;
98
+ const n = R(e);
99
+ return z(() => {
100
+ n.current !== e && (n.current = e, s());
101
+ }, [e, s]), null;
63
102
  }
64
- const Ir = ({
103
+ const Hr = ({
65
104
  logoSrc: e,
66
- logoSize: n = "2rem",
67
- logoClassName: l,
105
+ logoSize: s = "2rem",
106
+ logoHeight: n,
107
+ logoWidth: h,
108
+ logoClassName: y,
68
109
  brandName: x,
69
- items: v,
70
- activePath: h,
71
- routerElement: p,
72
- user: i,
73
- onLogin: b,
74
- onLogout: k,
75
- onInboxClick: N,
76
- onThemeToggle: y,
77
- actions: J,
78
- brandElement: M,
79
- navActions: P,
80
- userMenuItems: w = [],
81
- className: Q,
82
- variant: m = "default",
83
- position: U = "sticky",
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
- notificationVariant: O = "error",
86
- notificationFill: L = "solid",
87
- ...W
126
+ labels: cr,
127
+ notificationVariant: P = "error",
128
+ notificationFill: V = "solid",
129
+ ...dr
88
130
  }) => {
89
- const C = (i?.notificationCount || 0) > 0, R = typeof n == "number" ? `${n}px` : n, q = { width: R, height: R }, Y = ur(B === "auto"), c = (B === "auto" ? Y ? "dark" : "light" : B ?? (m === "white" || m === "default" ? "light" : "dark")) === "dark", j = m === "slate" || m === "primary" || m === "default" && c || m === "white" && c || m === "transparent" && c, D = {
90
- brand: j ? "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",
91
- linkBase: j ? "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",
92
- linkActive: j ? "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",
93
- hamburger: j ? "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"
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
- mr,
150
+ Cr,
97
151
  {
98
152
  as: "nav",
99
- className: a("rst:z-50", or({ variant: m, position: U }), Q),
100
- ...W,
101
- children: ({ open: F, close: d }) => {
102
- const S = G(J, d), z = G(P, d);
103
- return /* @__PURE__ */ s(I, { children: [
104
- /* @__PURE__ */ s("div", { className: "rst:container rst:mx-auto rst:flex rst:items-center rst:justify-between rst:px-4 rst:h-16", children: [
105
- /* @__PURE__ */ s(
106
- f,
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: p,
162
+ as: v,
109
163
  href: "/",
110
164
  to: "/",
111
165
  variant: "neutral",
112
166
  underline: "none",
113
- className: a(
167
+ className: i(
114
168
  "rst:flex rst:items-center rst:gap-3 rst:transition-opacity",
115
- D.brand
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: q,
124
- className: a("rst:shrink-0", l ?? "rst:rounded-md")
177
+ style: X,
178
+ className: i("rst:shrink-0", J, y ?? "rst:rounded-md")
125
179
  }
126
180
  ),
127
- M ?? /* @__PURE__ */ r("span", { className: "rst:text-xl rst:font-bold rst:tracking-tight", children: x })
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__ */ s("div", { className: "rst:hidden rst:md:flex rst:items-center rst:gap-8", children: [
132
- /* @__PURE__ */ r("div", { className: "rst:flex rst:items-center rst:gap-6", children: v.map((t) => {
133
- const o = h === t.path;
134
- return /* @__PURE__ */ s(
135
- f,
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: p,
191
+ as: v,
138
192
  href: t.path,
139
193
  to: t.path,
140
194
  variant: "neutral",
141
195
  underline: "none",
142
- className: a(
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
- o ? D.linkActive : D.linkBase
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
- z,
155
- S ?? (i ? /* @__PURE__ */ s(lr, { as: "div", className: "rst:relative rst:ml-2", children: [
156
- /* @__PURE__ */ s(cr, { 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", children: [
157
- /* @__PURE__ */ r("span", { className: "rst:sr-only", children: "Open user menu" }),
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
- as: E,
183
- enter: "rst:transition rst:ease-out rst:duration-100",
184
- enterFrom: "rst:transform rst:opacity-0 rst:scale-95",
185
- enterTo: "rst:transform rst:opacity-100 rst:scale-100",
186
- leave: "rst:transition rst:ease-in rst:duration-75",
187
- leaveFrom: "rst:transform rst:opacity-100 rst:scale-100",
188
- leaveTo: "rst:transform rst:opacity-0 rst:scale-95",
189
- children: /* @__PURE__ */ s(dr, { className: "rst:absolute rst:right-0 rst:z-50 rst:mt-2 rst:w-48 rst:origin-top-right rst:rounded-md rst:bg-white rst:dark:bg-gray-800 rst:py-1 rst:elevation-anchored rst:ring rst:ring-black/5 rst:dark:ring-white/10 rst:focus:outline-hidden rst:divide-y rst:divide-gray-100 rst:dark:divide-gray-700", children: [
190
- /* @__PURE__ */ s("div", { className: "rst:py-1", children: [
191
- C && N && /* @__PURE__ */ r(A, { children: ({ focus: t }) => /* @__PURE__ */ s(
192
- u,
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
- variant: "ghost",
195
- colorScheme: "neutral",
196
- size: "sm",
197
- onClick: N,
198
- className: a(
199
- "rst:w-full rst:justify-start rst:rounded-none rst:px-4",
200
- t && "rst:bg-gray-50 rst:dark:bg-gray-700"
201
- ),
202
- startIcon: /* @__PURE__ */ r(
203
- g,
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: tr,
206
- className: "rst:text-primary-500 rst:w-4"
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
- children: [
210
- "Inbox (",
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
- w.length > 0 && /* @__PURE__ */ r("div", { className: "rst:py-1", children: w.map((t) => /* @__PURE__ */ r(A, { children: ({ focus: o }) => /* @__PURE__ */ s(
254
- f,
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
- variant: "ghost",
275
- colorScheme: "neutral",
276
- size: "sm",
277
- onClick: k,
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(u, { size: "sm", variant: "solid", colorScheme: "primary", onClick: b, children: "Log In" }))
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__ */ s(
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: a(
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
- D.hamburger
298
+ F.hamburger
303
299
  ),
304
300
  children: [
305
- /* @__PURE__ */ r("span", { className: "rst:sr-only", children: "Open main menu" }),
306
- F ? /* @__PURE__ */ r(
307
- g,
301
+ /* @__PURE__ */ r("span", { className: "rst:sr-only", children: c.openMainMenu }),
302
+ u ? /* @__PURE__ */ r(
303
+ f,
308
304
  {
309
- icon: V,
305
+ icon: Y,
310
306
  className: "rst:block rst:h-6 rst:w-6",
311
307
  "aria-hidden": "true"
312
308
  }
313
- ) : /* @__PURE__ */ s("div", { className: "rst:relative", children: [
309
+ ) : /* @__PURE__ */ a("div", { className: "rst:relative", children: [
314
310
  /* @__PURE__ */ r(
315
- g,
311
+ f,
316
312
  {
317
- icon: er,
313
+ icon: yr,
318
314
  className: "rst:block rst:h-6 rst:w-6",
319
315
  "aria-hidden": "true"
320
316
  }
321
317
  ),
322
- C && /* @__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" })
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
- F && /* @__PURE__ */ r(pr, { close: d }),
329
- F && /* @__PURE__ */ r(yr, { activePath: h, close: d }),
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
- T,
328
+ Fr,
332
329
  {
333
- as: E,
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
- hr,
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__ */ s("div", { "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: [
346
- /* @__PURE__ */ s("div", { className: "rst:px-5 rst:pt-5 rst:pb-6", children: [
347
- /* @__PURE__ */ s("div", { className: "rst:flex rst:items-center rst:justify-between", children: [
348
- /* @__PURE__ */ s("div", { className: "rst:flex rst:items-center rst:gap-3", children: [
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: q,
355
- className: a("rst:shrink-0", l ?? "rst:rounded-md")
350
+ style: X,
351
+ className: i("rst:shrink-0", J, y ?? "rst:rounded-md")
356
352
  }
357
353
  ),
358
- M ?? /* @__PURE__ */ r("span", { className: "rst:font-bold rst:text-gray-900 rst:dark:text-white", children: x })
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__ */ s($, { 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: [
361
- /* @__PURE__ */ r("span", { className: "rst:sr-only", children: "Close menu" }),
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
- g,
359
+ f,
364
360
  {
365
- icon: V,
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__ */ s("div", { className: "rst:mt-6", children: [
373
- z && /* @__PURE__ */ r("div", { className: "rst:mb-4", children: z }),
374
- /* @__PURE__ */ s("nav", { className: "rst:grid rst:gap-y-4", children: [
375
- v.map((t) => {
376
- const o = h === t.path;
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
- f,
374
+ A,
379
375
  {
380
- as: p,
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: a(
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
- o ? "rst:bg-gray-50 rst:dark:bg-gray-700" : "rst:text-gray-900 rst:dark:text-gray-100"
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__ */ s(
387
+ children: /* @__PURE__ */ a(
392
388
  "span",
393
389
  {
394
- className: a(
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
- o ? "rst:text-primary-600 rst:dark:text-primary-400 rst:font-bold" : "rst:text-gray-900 rst:dark:text-gray-100"
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
- i && w.length > 0 && /* @__PURE__ */ s(I, { children: [
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
- w.map((t) => {
411
- const o = h === t.path;
412
- return /* @__PURE__ */ s(
413
- f,
406
+ S.map((t) => {
407
+ const g = N === t.path;
408
+ return /* @__PURE__ */ a(
409
+ A,
414
410
  {
415
- as: p,
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: a(
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
- o ? "rst:bg-gray-50 rst:dark:bg-gray-700" : "rst:text-gray-900 rst:dark:text-gray-100"
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: a(
426
+ className: i(
431
427
  "rst:ml-3 rst:text-base rst:font-medium",
432
- o ? "rst:text-primary-600 rst:dark:text-primary-400 rst:font-bold" : "rst:text-gray-900 rst:dark:text-gray-100"
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
- (i || S || b) && /* @__PURE__ */ r("div", { className: "rst:py-6 rst:px-5 rst:space-y-4", children: S || (!i && b ? /* @__PURE__ */ r(
448
- u,
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
- b(), d();
450
+ w(), d();
455
451
  },
456
- children: "Log In"
452
+ children: c.logIn
457
453
  }
458
- ) : /* @__PURE__ */ s(I, { children: [
459
- C && N && /* @__PURE__ */ r(
460
- u,
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
- N?.(), d();
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: L,
467
+ fill: V,
472
468
  size: "xs",
473
469
  statusBadge: !0,
474
- variant: O,
475
- children: i?.notificationCount
470
+ variant: P,
471
+ children: o?.notificationCount
476
472
  }
477
473
  ),
478
- children: "Pending Invitations"
474
+ children: c.pendingInvitations
479
475
  }
480
476
  ),
481
- y && /* The row is the switch: one tab stop, its
477
+ p && /* The row is the switch: one tab stop, its
482
478
  state in `aria-checked`, its name from its text. */
483
- /* @__PURE__ */ s(
479
+ /* @__PURE__ */ a(
484
480
  "div",
485
481
  {
486
482
  onClick: (t) => {
487
- t.preventDefault(), y();
483
+ t.preventDefault(), p();
488
484
  },
489
485
  role: "switch",
490
- "aria-checked": c,
486
+ "aria-checked": m,
491
487
  tabIndex: 0,
492
488
  onKeyDown: (t) => {
493
- t.repeat || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), y());
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__ */ s("div", { className: "rst:flex rst:items-center rst:gap-3 rst:font-medium", children: [
493
+ /* @__PURE__ */ a("div", { className: "rst:flex rst:items-center rst:gap-3 rst:font-medium", children: [
498
494
  /* @__PURE__ */ r(
499
- g,
495
+ f,
500
496
  {
501
- icon: K,
502
- className: a(
497
+ icon: W,
498
+ className: i(
503
499
  "rst:w-5 rst:transition-colors",
504
- c ? "rst:text-amber-500" : "rst:text-gray-400"
500
+ m ? "rst:text-amber-500" : "rst:text-gray-400"
505
501
  )
506
502
  }
507
503
  ),
508
- /* @__PURE__ */ r("span", { children: "Dark Mode" })
504
+ /* @__PURE__ */ r("span", { children: c.darkMode })
509
505
  ] }),
510
- /* @__PURE__ */ r(X, { on: c, size: "sm" })
506
+ /* @__PURE__ */ r(H, { on: m, size: "sm" })
511
507
  ]
512
508
  }
513
509
  ),
514
- k && /* @__PURE__ */ r(
515
- u,
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
- k?.(), d();
517
+ M?.(), d();
522
518
  },
523
- children: "Log Out"
519
+ children: c.logOut
524
520
  }
525
521
  )
526
522
  ] })) })
@@ -535,5 +531,5 @@ const Ir = ({
535
531
  );
536
532
  };
537
533
  export {
538
- Ir as Navbar
534
+ Hr as Navbar
539
535
  };