@caffeinebounce/ui 0.62.2 → 0.62.3
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/blog.js +1 -0
- package/dist/blog.mjs +1 -0
- package/dist/chunk-33JR5SYE.js +1 -0
- package/dist/chunk-3NDB4YPC.js +1 -0
- package/dist/chunk-5RW4PYZ6.js +1 -0
- package/dist/chunk-5THF4YP6.mjs +1 -0
- package/dist/chunk-6BUBNZPG.mjs +1 -0
- package/dist/chunk-6DVWMJ3H.mjs +1 -0
- package/dist/{chunk-OZZWDIOY.js → chunk-6ZJCK6KH.js} +22 -21
- package/dist/chunk-72JGQ7IJ.mjs +1 -0
- package/dist/chunk-7DHKQODW.mjs +1 -0
- package/dist/chunk-7IKHZKAC.js +1 -0
- package/dist/chunk-BMFQG6RA.mjs +1 -0
- package/dist/chunk-C4UT5V3P.js +1 -0
- package/dist/{chunk-KRRIRS6A.mjs → chunk-DTVWRRFN.mjs} +2 -1
- package/dist/chunk-ESZ7CBA2.js +1 -0
- package/dist/chunk-FRRS2YZH.mjs +1 -0
- package/dist/chunk-G5TQWWQA.mjs +1 -0
- package/dist/chunk-GAIQJCAZ.js +1 -0
- package/dist/{chunk-E42B4GSB.js → chunk-GHOFYK2E.js} +3 -2
- package/dist/{chunk-CC4KUIKC.js → chunk-GIJQE3JR.js} +36 -35
- package/dist/chunk-GMBGWOCR.mjs +1 -0
- package/dist/chunk-J6OLBSZR.js +1 -0
- package/dist/chunk-JORVSG52.js +1 -0
- package/dist/chunk-KB7UXIQZ.mjs +1 -0
- package/dist/chunk-KGGQ5NZV.js +1 -0
- package/dist/chunk-KHCC5UKW.mjs +1 -0
- package/dist/chunk-LQCVRWVF.js +1 -0
- package/dist/chunk-MPZFPU4X.js +1 -0
- package/dist/chunk-MVYRNJA6.js +1 -0
- package/dist/chunk-N6AFNFZR.mjs +1 -0
- package/dist/{chunk-BFWX5GJZ.mjs → chunk-NXPEJ2UR.mjs} +3 -2
- package/dist/chunk-OFQLWSUR.mjs +1 -0
- package/dist/chunk-OLAAXLXY.mjs +1 -0
- package/dist/{chunk-D3QXPL47.mjs → chunk-OVNLC5RD.mjs} +2 -1
- package/dist/chunk-Q52ZEL62.mjs +1 -0
- package/dist/chunk-R26Y7LGJ.js +1 -0
- package/dist/chunk-RBUYW6QQ.js +1 -0
- package/dist/chunk-RVEFPVZF.mjs +1 -0
- package/dist/chunk-SORWLKOK.js +1 -0
- package/dist/chunk-T6ZBA6VJ.js +1 -0
- package/dist/chunk-UM7WMXIU.js +1 -0
- package/dist/chunk-WOITB4JL.js +1 -0
- package/dist/chunk-YKZEKJMZ.mjs +1 -0
- package/dist/chunk-YSLD2HLP.mjs +1 -0
- package/dist/chunk-ZFLZA7UP.mjs +1 -0
- package/dist/chunk-ZKUIUE7W.mjs +1 -0
- package/dist/chunk-ZOA7B32D.js +1 -0
- package/dist/index.js +92 -91
- package/dist/index.mjs +4 -3
- package/dist/layouts.js +24 -23
- package/dist/layouts.mjs +3 -2
- package/dist/marketing-3d.js +1 -0
- package/dist/marketing-3d.mjs +1 -0
- package/dist/marketing.js +1 -0
- package/dist/marketing.mjs +1 -0
- package/dist/media.js +1 -0
- package/dist/media.mjs +1 -0
- package/dist/navigation.js +25 -24
- package/dist/navigation.mjs +3 -2
- package/package.json +5 -4
package/dist/blog.js
CHANGED
package/dist/blog.mjs
CHANGED
package/dist/chunk-33JR5SYE.js
CHANGED
package/dist/chunk-3NDB4YPC.js
CHANGED
package/dist/chunk-5RW4PYZ6.js
CHANGED
package/dist/chunk-5THF4YP6.mjs
CHANGED
package/dist/chunk-6BUBNZPG.mjs
CHANGED
package/dist/chunk-6DVWMJ3H.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
'use strict';
|
|
2
3
|
|
|
3
4
|
var chunkR26Y7LGJ_js = require('./chunk-R26Y7LGJ.js');
|
|
4
5
|
var chunkC4UT5V3P_js = require('./chunk-C4UT5V3P.js');
|
|
5
|
-
var
|
|
6
|
+
var chunkGHOFYK2E_js = require('./chunk-GHOFYK2E.js');
|
|
6
7
|
var chunkLQCVRWVF_js = require('./chunk-LQCVRWVF.js');
|
|
7
8
|
var chunkHMAMMC72_js = require('./chunk-HMAMMC72.js');
|
|
8
9
|
var chunkRBUYW6QQ_js = require('./chunk-RBUYW6QQ.js');
|
|
@@ -188,7 +189,7 @@ function AppSwitcher({
|
|
|
188
189
|
const pathname = navigation.usePathname();
|
|
189
190
|
const router = navigation.useRouter();
|
|
190
191
|
const [open, setOpen] = react.useState(false);
|
|
191
|
-
const Shortcut = ShortcutComponent ||
|
|
192
|
+
const Shortcut = ShortcutComponent || chunkGHOFYK2E_js.KeyboardShortcut;
|
|
192
193
|
const activeApp = react.useMemo(() => {
|
|
193
194
|
if (getActiveAppId) {
|
|
194
195
|
const activeId = getActiveAppId(pathname);
|
|
@@ -225,9 +226,9 @@ function AppSwitcher({
|
|
|
225
226
|
if (!activeApp) {
|
|
226
227
|
return null;
|
|
227
228
|
}
|
|
228
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
229
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkJ6OLBSZR_js.DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
229
230
|
/* @__PURE__ */ jsxRuntime.jsx(chunkJ6OLBSZR_js.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
230
|
-
|
|
231
|
+
chunkGHOFYK2E_js.SidebarMenuButton,
|
|
231
232
|
{
|
|
232
233
|
size: "lg",
|
|
233
234
|
className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
|
|
@@ -338,7 +339,7 @@ function ComingSoonButton({
|
|
|
338
339
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "h-3.5 w-3.5 transition-transform duration-200 group-hover:scale-110 [&>svg]:h-full [&>svg]:w-full", children: icon }),
|
|
339
340
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
|
|
340
341
|
shortcutKey && /* @__PURE__ */ jsxRuntime.jsx(
|
|
341
|
-
|
|
342
|
+
chunkGHOFYK2E_js.KeyboardShortcut,
|
|
342
343
|
{
|
|
343
344
|
visible: shortcutsVisible,
|
|
344
345
|
className: "ml-0.5 hidden uppercase md:inline-flex",
|
|
@@ -383,10 +384,10 @@ function EntitySwitcher({
|
|
|
383
384
|
className,
|
|
384
385
|
ShortcutComponent
|
|
385
386
|
}) {
|
|
386
|
-
const Shortcut = ShortcutComponent ||
|
|
387
|
+
const Shortcut = ShortcutComponent || chunkGHOFYK2E_js.KeyboardShortcut;
|
|
387
388
|
const [open, setOpen] = react.useState(false);
|
|
388
389
|
const [logoHovered, setLogoHovered] = react.useState(false);
|
|
389
|
-
const { state: sidebarState } =
|
|
390
|
+
const { state: sidebarState } = chunkGHOFYK2E_js.useSidebar();
|
|
390
391
|
const isCollapsed = sidebarState === "collapsed";
|
|
391
392
|
const handleKeyDown = react.useCallback(
|
|
392
393
|
(event) => {
|
|
@@ -416,14 +417,14 @@ function EntitySwitcher({
|
|
|
416
417
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
417
418
|
}, [handleKeyDown, enableKeyboardShortcuts]);
|
|
418
419
|
if (loading) {
|
|
419
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
420
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.SidebarMenuButton, { size: "lg", disabled: true, children: [
|
|
420
421
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-8 w-8 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkHMAMMC72_js.Spinner, { size: "sm" }) }),
|
|
421
422
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid min-w-0 flex-1 text-left text-sm leading-tight group-data-[collapsible=icon]:hidden", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-muted-foreground", children: "Loading..." }) })
|
|
422
423
|
] }) }) });
|
|
423
424
|
}
|
|
424
425
|
if (!activeEntity) {
|
|
425
426
|
const gradientId = userId || "default";
|
|
426
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
427
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.SidebarMenuButton, { size: "lg", onClick: onAddNew, disabled: !onAddNew, children: [
|
|
427
428
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
428
429
|
"div",
|
|
429
430
|
{
|
|
@@ -440,9 +441,9 @@ function EntitySwitcher({
|
|
|
440
441
|
}
|
|
441
442
|
const displayName = getDisplayName(activeEntity);
|
|
442
443
|
const initials = getInitials(activeEntity);
|
|
443
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
444
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkJ6OLBSZR_js.DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
444
445
|
/* @__PURE__ */ jsxRuntime.jsx(chunkJ6OLBSZR_js.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
445
|
-
|
|
446
|
+
chunkGHOFYK2E_js.SidebarMenuButton,
|
|
446
447
|
{
|
|
447
448
|
size: "lg",
|
|
448
449
|
className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
|
|
@@ -451,7 +452,7 @@ function EntitySwitcher({
|
|
|
451
452
|
onMouseLeave: () => setLogoHovered(false),
|
|
452
453
|
children: [
|
|
453
454
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
454
|
-
|
|
455
|
+
chunkGHOFYK2E_js.Avatar,
|
|
455
456
|
{
|
|
456
457
|
className: "h-8 w-8 rounded-lg",
|
|
457
458
|
style: {
|
|
@@ -461,7 +462,7 @@ function EntitySwitcher({
|
|
|
461
462
|
},
|
|
462
463
|
children: [
|
|
463
464
|
activeEntity.logoUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
464
|
-
|
|
465
|
+
chunkGHOFYK2E_js.AvatarImage,
|
|
465
466
|
{
|
|
466
467
|
src: activeEntity.logoUrl,
|
|
467
468
|
alt: displayName,
|
|
@@ -469,7 +470,7 @@ function EntitySwitcher({
|
|
|
469
470
|
}
|
|
470
471
|
),
|
|
471
472
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
472
|
-
|
|
473
|
+
chunkGHOFYK2E_js.AvatarFallback,
|
|
473
474
|
{
|
|
474
475
|
className: "rounded-lg text-xs font-medium text-white",
|
|
475
476
|
style: chunkQ256HRYD_js.getAvatarGradient(activeEntity.id).style,
|
|
@@ -505,9 +506,9 @@ function EntitySwitcher({
|
|
|
505
506
|
onClick: () => onSelect(entity),
|
|
506
507
|
className: "gap-2 p-2",
|
|
507
508
|
children: [
|
|
508
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative h-6 w-6", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
509
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative h-6 w-6", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.Avatar, { className: "h-6 w-6 rounded-md", children: [
|
|
509
510
|
entity.logoUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
510
|
-
|
|
511
|
+
chunkGHOFYK2E_js.AvatarImage,
|
|
511
512
|
{
|
|
512
513
|
src: entity.logoUrl,
|
|
513
514
|
alt: name,
|
|
@@ -515,7 +516,7 @@ function EntitySwitcher({
|
|
|
515
516
|
}
|
|
516
517
|
),
|
|
517
518
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
518
|
-
|
|
519
|
+
chunkGHOFYK2E_js.AvatarFallback,
|
|
519
520
|
{
|
|
520
521
|
className: "rounded-md text-xs font-medium text-white",
|
|
521
522
|
style: chunkQ256HRYD_js.getAvatarGradient(entity.id).style,
|
|
@@ -1483,7 +1484,7 @@ function NavbarUserMenu({
|
|
|
1483
1484
|
const displayName = `${firstName} ${lastName}`.trim() || user.email || "User";
|
|
1484
1485
|
const initials = `${firstName?.[0] || ""}${lastName?.[0] || ""}`.toUpperCase() || "U";
|
|
1485
1486
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1486
|
-
|
|
1487
|
+
chunkGHOFYK2E_js.UserAvatarMenu,
|
|
1487
1488
|
{
|
|
1488
1489
|
user: {
|
|
1489
1490
|
id: user.id,
|
|
@@ -1503,10 +1504,10 @@ function NavbarUserMenu({
|
|
|
1503
1504
|
type: "button",
|
|
1504
1505
|
className: "inline-flex h-8 w-8 items-center justify-center rounded-full focus:outline-none overflow-hidden *:hover:brightness-110 *:transition-all",
|
|
1505
1506
|
children: [
|
|
1506
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1507
|
-
avatarUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1507
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.Avatar, { className: "h-7 w-7", children: [
|
|
1508
|
+
avatarUrl && /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.AvatarImage, { src: avatarUrl, alt: displayName }),
|
|
1508
1509
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1509
|
-
|
|
1510
|
+
chunkGHOFYK2E_js.AvatarFallback,
|
|
1510
1511
|
{
|
|
1511
1512
|
className: "text-xs font-medium text-white",
|
|
1512
1513
|
style: chunkQ256HRYD_js.getAvatarGradient(user.id).style,
|
package/dist/chunk-72JGQ7IJ.mjs
CHANGED
package/dist/chunk-7DHKQODW.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-6BUBNZPG.mjs';
|
|
2
3
|
import { Button } from './chunk-VBD4Q5LL.mjs';
|
|
3
4
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent } from './chunk-OFQLWSUR.mjs';
|
package/dist/chunk-7IKHZKAC.js
CHANGED
package/dist/chunk-BMFQG6RA.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from './chunk-5THF4YP6.mjs';
|
|
2
3
|
import { Label } from './chunk-KHCC5UKW.mjs';
|
|
3
4
|
import { Popover, PopoverTrigger, PopoverContent, useDataTableContext, buildSpreadsheetWorkbookXml, downloadExcelXml, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, getUnitDivisor } from './chunk-7DHKQODW.mjs';
|
package/dist/chunk-C4UT5V3P.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from './chunk-GMBGWOCR.mjs';
|
|
2
|
-
import { SidebarTrigger, Sidebar, SidebarHeader, SidebarContent, SidebarSeparator, SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarGroupLabel, SidebarFooter, UserAvatarMenu, Avatar, AvatarImage, AvatarFallback, SidebarRail, useSidebar, SidebarProvider, SidebarInset, KeyboardShortcut } from './chunk-
|
|
3
|
+
import { SidebarTrigger, Sidebar, SidebarHeader, SidebarContent, SidebarSeparator, SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarGroupLabel, SidebarFooter, UserAvatarMenu, Avatar, AvatarImage, AvatarFallback, SidebarRail, useSidebar, SidebarProvider, SidebarInset, KeyboardShortcut } from './chunk-NXPEJ2UR.mjs';
|
|
3
4
|
import { Spinner } from './chunk-HBLKVQIQ.mjs';
|
|
4
5
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from './chunk-OFQLWSUR.mjs';
|
|
5
6
|
import { Tooltip, TooltipTrigger, TooltipContent } from './chunk-YKZEKJMZ.mjs';
|
package/dist/chunk-ESZ7CBA2.js
CHANGED
package/dist/chunk-FRRS2YZH.mjs
CHANGED
package/dist/chunk-G5TQWWQA.mjs
CHANGED
package/dist/chunk-GAIQJCAZ.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
'use strict';
|
|
2
3
|
|
|
3
4
|
var chunkLQCVRWVF_js = require('./chunk-LQCVRWVF.js');
|
|
@@ -150,10 +151,10 @@ var SidebarProvider = React__namespace.forwardRef(
|
|
|
150
151
|
...props
|
|
151
152
|
}, ref) => {
|
|
152
153
|
const [machine, dispatch] = React__namespace.useReducer(sidebarReducer, {
|
|
153
|
-
viewportWidth:
|
|
154
|
+
viewportWidth: 1024,
|
|
154
155
|
desktopPref: toDesktopPreference(defaultOpen),
|
|
155
156
|
openMobile: false,
|
|
156
|
-
hydrated:
|
|
157
|
+
hydrated: false
|
|
157
158
|
});
|
|
158
159
|
React__namespace.useLayoutEffect(() => {
|
|
159
160
|
const syncViewport = () => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
'use strict';
|
|
2
3
|
|
|
3
4
|
var chunkMVYRNJA6_js = require('./chunk-MVYRNJA6.js');
|
|
4
|
-
var
|
|
5
|
+
var chunkGHOFYK2E_js = require('./chunk-GHOFYK2E.js');
|
|
5
6
|
var chunkHMAMMC72_js = require('./chunk-HMAMMC72.js');
|
|
6
7
|
var chunkJ6OLBSZR_js = require('./chunk-J6OLBSZR.js');
|
|
7
8
|
var chunkSORWLKOK_js = require('./chunk-SORWLKOK.js');
|
|
@@ -405,7 +406,7 @@ function ThemeToggle({
|
|
|
405
406
|
}
|
|
406
407
|
const tooltipContent = tooltip ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
407
408
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: ariaLabel }),
|
|
408
|
-
shouldShowShortcut && shortcutDisplay && /* @__PURE__ */ jsxRuntime.jsx(
|
|
409
|
+
shouldShowShortcut && shortcutDisplay && /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.KeyboardShortcut, { className: "ml-2 text-xs", children: shortcutDisplay })
|
|
409
410
|
] });
|
|
410
411
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkSORWLKOK_js.Tooltip, { children: [
|
|
411
412
|
/* @__PURE__ */ jsxRuntime.jsx(chunkSORWLKOK_js.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -469,7 +470,7 @@ function AppHeader({
|
|
|
469
470
|
className
|
|
470
471
|
),
|
|
471
472
|
children: [
|
|
472
|
-
showSidebarTrigger && /* @__PURE__ */ jsxRuntime.jsx(
|
|
473
|
+
showSidebarTrigger && /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarTrigger, { className: "-ml-1" }),
|
|
473
474
|
leadingContent,
|
|
474
475
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1" }),
|
|
475
476
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -639,12 +640,12 @@ function AppSidebar({
|
|
|
639
640
|
const renderNavItem = (item) => {
|
|
640
641
|
const isActive = getIsActive(item);
|
|
641
642
|
const Icon = item.icon;
|
|
642
|
-
const Shortcut = ShortcutComponent ||
|
|
643
|
+
const Shortcut = ShortcutComponent || chunkGHOFYK2E_js.KeyboardShortcut;
|
|
643
644
|
const iconAnimationClass = item.disabled ? "" : getIconAnimationClass(item.iconAnimation);
|
|
644
645
|
if (item.disabled) {
|
|
645
646
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkSORWLKOK_js.Tooltip, { children: [
|
|
646
647
|
/* @__PURE__ */ jsxRuntime.jsx(chunkSORWLKOK_js.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
647
|
-
|
|
648
|
+
chunkGHOFYK2E_js.SidebarMenuButton,
|
|
648
649
|
{
|
|
649
650
|
className: "cursor-not-allowed opacity-40",
|
|
650
651
|
isActive: false,
|
|
@@ -660,7 +661,7 @@ function AppSidebar({
|
|
|
660
661
|
] });
|
|
661
662
|
}
|
|
662
663
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
663
|
-
|
|
664
|
+
chunkGHOFYK2E_js.SidebarMenuButton,
|
|
664
665
|
{
|
|
665
666
|
asChild: true,
|
|
666
667
|
isActive,
|
|
@@ -674,11 +675,11 @@ function AppSidebar({
|
|
|
674
675
|
}
|
|
675
676
|
);
|
|
676
677
|
};
|
|
677
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
678
|
-
header && /* @__PURE__ */ jsxRuntime.jsx(
|
|
679
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
678
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.Sidebar, { collapsible, children: [
|
|
679
|
+
header && /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarHeader, { children: header }),
|
|
680
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarContent, { children: processedNavGroups.map((group) => {
|
|
680
681
|
if (group.type === "divider") {
|
|
681
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
682
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarSeparator, { className: "my-2" }, group.key);
|
|
682
683
|
}
|
|
683
684
|
if (group.type === "section") {
|
|
684
685
|
const section = group.section;
|
|
@@ -695,8 +696,8 @@ function AppSidebar({
|
|
|
695
696
|
[section.label]: open
|
|
696
697
|
})),
|
|
697
698
|
className: "group/collapsible",
|
|
698
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
699
|
-
SectionIcon && sectionHref && /* @__PURE__ */ jsxRuntime.jsx(
|
|
699
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.SidebarGroup, { children: [
|
|
700
|
+
SectionIcon && sectionHref && /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarGroupContent, { className: "hidden group-data-[collapsible=icon]:block", children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
700
701
|
chunkJ6OLBSZR_js.DropdownMenu,
|
|
701
702
|
{
|
|
702
703
|
onOpenChange: (open) => {
|
|
@@ -707,7 +708,7 @@ function AppSidebar({
|
|
|
707
708
|
},
|
|
708
709
|
children: [
|
|
709
710
|
/* @__PURE__ */ jsxRuntime.jsx(chunkJ6OLBSZR_js.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
710
|
-
|
|
711
|
+
chunkGHOFYK2E_js.SidebarMenuButton,
|
|
711
712
|
{
|
|
712
713
|
"aria-label": section.label,
|
|
713
714
|
tooltip: suppressSectionTooltip === section.label ? void 0 : section.label,
|
|
@@ -750,7 +751,7 @@ function AppSidebar({
|
|
|
750
751
|
) }) }) }),
|
|
751
752
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "group-data-[collapsible=icon]:hidden", children: [
|
|
752
753
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
753
|
-
|
|
754
|
+
chunkGHOFYK2E_js.SidebarGroupLabel,
|
|
754
755
|
{
|
|
755
756
|
asChild: true,
|
|
756
757
|
className: "text-xs font-medium uppercase tracking-wider text-sidebar-foreground",
|
|
@@ -763,28 +764,28 @@ function AppSidebar({
|
|
|
763
764
|
] })
|
|
764
765
|
}
|
|
765
766
|
),
|
|
766
|
-
/* @__PURE__ */ jsxRuntime.jsx(CollapsibleContent2, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
767
|
+
/* @__PURE__ */ jsxRuntime.jsx(CollapsibleContent2, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarGroupContent, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { children: section.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: renderNavItem(item) }, item.href)) }) }) })
|
|
767
768
|
] })
|
|
768
769
|
] })
|
|
769
770
|
},
|
|
770
771
|
`section-${section.label}`
|
|
771
772
|
);
|
|
772
773
|
}
|
|
773
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
774
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
775
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
774
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.SidebarGroup, { children: [
|
|
775
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarGroupLabel, { className: "text-xs font-medium uppercase tracking-wider text-sidebar-foreground", children: section.label }),
|
|
776
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarGroupContent, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { children: section.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: renderNavItem(item) }, item.href)) }) })
|
|
776
777
|
] }, `section-${section.label}`);
|
|
777
778
|
}
|
|
778
779
|
if (group.type === "plain-group") {
|
|
779
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
780
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarGroupContent, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { children: group.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: renderNavItem(item) }, item.href)) }) }) }, group.key);
|
|
780
781
|
}
|
|
781
782
|
return null;
|
|
782
783
|
}) }),
|
|
783
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
784
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarFooter, { children: userLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 px-2 py-1.5", children: [
|
|
784
785
|
/* @__PURE__ */ jsxRuntime.jsx(chunkHMAMMC72_js.Spinner, { size: "sm" }),
|
|
785
786
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: "Loading..." })
|
|
786
|
-
] }) }) }) : user ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
787
|
-
|
|
787
|
+
] }) }) }) : user ? /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
788
|
+
chunkGHOFYK2E_js.UserAvatarMenu,
|
|
788
789
|
{
|
|
789
790
|
user: {
|
|
790
791
|
id: user.id,
|
|
@@ -802,21 +803,21 @@ function AppSidebar({
|
|
|
802
803
|
LinkComponent,
|
|
803
804
|
ShortcutComponent,
|
|
804
805
|
trigger: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
805
|
-
|
|
806
|
+
chunkGHOFYK2E_js.SidebarMenuButton,
|
|
806
807
|
{
|
|
807
808
|
size: "lg",
|
|
808
809
|
className: `rounded-xl focus-visible:ring-0 ${menuOpen || isOnProfilePage ? "bg-sidebar-accent text-sidebar-accent-foreground" : ""}`,
|
|
809
810
|
children: [
|
|
810
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
811
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.Avatar, { className: "h-8 w-8 rounded-full", children: [
|
|
811
812
|
user.avatarUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
812
|
-
|
|
813
|
+
chunkGHOFYK2E_js.AvatarImage,
|
|
813
814
|
{
|
|
814
815
|
src: user.avatarUrl,
|
|
815
816
|
alt: user.name || ""
|
|
816
817
|
}
|
|
817
818
|
),
|
|
818
819
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
819
|
-
|
|
820
|
+
chunkGHOFYK2E_js.AvatarFallback,
|
|
820
821
|
{
|
|
821
822
|
className: "rounded-full text-xs font-medium text-white",
|
|
822
823
|
style: chunkQ256HRYD_js.getAvatarGradient(user.id).style,
|
|
@@ -834,11 +835,11 @@ function AppSidebar({
|
|
|
834
835
|
}
|
|
835
836
|
)
|
|
836
837
|
}
|
|
837
|
-
) }) }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
838
|
+
) }) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenu, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarMenuButton, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Link3, { href: signInHref, children: [
|
|
838
839
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, {}),
|
|
839
840
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Sign In" })
|
|
840
841
|
] }) }) }) }) }),
|
|
841
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
842
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.SidebarRail, {})
|
|
842
843
|
] });
|
|
843
844
|
}
|
|
844
845
|
function FloatingUserMenu({
|
|
@@ -850,7 +851,7 @@ function FloatingUserMenu({
|
|
|
850
851
|
profilePath = "/profile",
|
|
851
852
|
LinkComponent = "a"
|
|
852
853
|
}) {
|
|
853
|
-
const { isMobile } =
|
|
854
|
+
const { isMobile } = chunkGHOFYK2E_js.useSidebar();
|
|
854
855
|
const [open, setOpen] = React.useState(false);
|
|
855
856
|
const isOnProfilePage = pathname === profilePath || pathname.startsWith(`${profilePath}/`);
|
|
856
857
|
const allMenuItems = React.useMemo(() => {
|
|
@@ -874,7 +875,7 @@ function FloatingUserMenu({
|
|
|
874
875
|
const displayName = user.name || user.email || "User";
|
|
875
876
|
const initials = user.initials || user.name?.[0]?.toUpperCase() || "U";
|
|
876
877
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed bottom-2 left-2 z-50", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
877
|
-
|
|
878
|
+
chunkGHOFYK2E_js.UserAvatarMenu,
|
|
878
879
|
{
|
|
879
880
|
user: {
|
|
880
881
|
id: user.id,
|
|
@@ -897,10 +898,10 @@ function FloatingUserMenu({
|
|
|
897
898
|
type: "button",
|
|
898
899
|
className: `flex h-8 w-8 items-center justify-center rounded-full shadow-md border bg-background transition-all hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${open || isOnProfilePage ? "ring-2 ring-primary" : ""}`,
|
|
899
900
|
children: [
|
|
900
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
901
|
-
user.avatarUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
901
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.Avatar, { className: "h-8 w-8 rounded-full", children: [
|
|
902
|
+
user.avatarUrl && /* @__PURE__ */ jsxRuntime.jsx(chunkGHOFYK2E_js.AvatarImage, { src: user.avatarUrl, alt: displayName }),
|
|
902
903
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
903
|
-
|
|
904
|
+
chunkGHOFYK2E_js.AvatarFallback,
|
|
904
905
|
{
|
|
905
906
|
className: "rounded-full text-xs font-medium text-white",
|
|
906
907
|
style: chunkQ256HRYD_js.getAvatarGradient(user.id).style,
|
|
@@ -991,7 +992,7 @@ function AppLayout({
|
|
|
991
992
|
}
|
|
992
993
|
) : null;
|
|
993
994
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
994
|
-
|
|
995
|
+
chunkGHOFYK2E_js.SidebarProvider,
|
|
995
996
|
{
|
|
996
997
|
defaultOpen,
|
|
997
998
|
open,
|
|
@@ -999,7 +1000,7 @@ function AppLayout({
|
|
|
999
1000
|
className: chunkADIDI7AJ_js.cn("h-dvh", className),
|
|
1000
1001
|
children: [
|
|
1001
1002
|
sidebarElement,
|
|
1002
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1003
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkGHOFYK2E_js.SidebarInset, { children: [
|
|
1003
1004
|
headerElement,
|
|
1004
1005
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto overflow-x-hidden min-w-0", children })
|
|
1005
1006
|
] }),
|
package/dist/chunk-GMBGWOCR.mjs
CHANGED
package/dist/chunk-J6OLBSZR.js
CHANGED
package/dist/chunk-JORVSG52.js
CHANGED
package/dist/chunk-KB7UXIQZ.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { flattenStatementForExport, excelColumnName, buildSpreadsheetWorkbookXml, downloadExcelXml } from './chunk-7DHKQODW.mjs';
|
|
2
3
|
import { useEffect, useCallback, useMemo, useState, useRef } from 'react';
|
|
3
4
|
import { endOfMonth, parseISO, startOfMonth, format } from 'date-fns';
|
package/dist/chunk-KGGQ5NZV.js
CHANGED
package/dist/chunk-KHCC5UKW.mjs
CHANGED
package/dist/chunk-LQCVRWVF.js
CHANGED
package/dist/chunk-MPZFPU4X.js
CHANGED
package/dist/chunk-MVYRNJA6.js
CHANGED
package/dist/chunk-N6AFNFZR.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { Separator } from './chunk-ZKUIUE7W.mjs';
|
|
2
3
|
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from './chunk-FRRS2YZH.mjs';
|
|
3
4
|
import { Spinner } from './chunk-HBLKVQIQ.mjs';
|
|
@@ -127,10 +128,10 @@ var SidebarProvider = React.forwardRef(
|
|
|
127
128
|
...props
|
|
128
129
|
}, ref) => {
|
|
129
130
|
const [machine, dispatch] = React.useReducer(sidebarReducer, {
|
|
130
|
-
viewportWidth:
|
|
131
|
+
viewportWidth: 1024,
|
|
131
132
|
desktopPref: toDesktopPreference(defaultOpen),
|
|
132
133
|
openMobile: false,
|
|
133
|
-
hydrated:
|
|
134
|
+
hydrated: false
|
|
134
135
|
});
|
|
135
136
|
React.useLayoutEffect(() => {
|
|
136
137
|
const syncViewport = () => {
|
package/dist/chunk-OFQLWSUR.mjs
CHANGED
package/dist/chunk-OLAAXLXY.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { NewsletterSignup } from './chunk-ZFLZA7UP.mjs';
|
|
2
3
|
import { Container } from './chunk-RVEFPVZF.mjs';
|
|
3
|
-
import { SidebarMenu, SidebarMenuItem, SidebarMenuButton, KeyboardShortcut, useSidebar, Avatar, AvatarImage, AvatarFallback, UserAvatarMenu } from './chunk-
|
|
4
|
+
import { SidebarMenu, SidebarMenuItem, SidebarMenuButton, KeyboardShortcut, useSidebar, Avatar, AvatarImage, AvatarFallback, UserAvatarMenu } from './chunk-NXPEJ2UR.mjs';
|
|
4
5
|
import { Separator } from './chunk-ZKUIUE7W.mjs';
|
|
5
6
|
import { Spinner } from './chunk-HBLKVQIQ.mjs';
|
|
6
7
|
import { useScrollDirection } from './chunk-G5TQWWQA.mjs';
|
package/dist/chunk-Q52ZEL62.mjs
CHANGED