@logickernel/bridge 0.17.2 → 0.17.5

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.
@@ -1,3 +1,4 @@
1
+ import { ThemeProvider } from 'next-themes';
1
2
  import * as React2 from 'react';
2
3
  import { useState, useEffect } from 'react';
3
4
  import { Slot } from '@radix-ui/react-slot';
@@ -15,7 +16,7 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
15
16
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
16
17
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
17
18
 
18
- // src/next/components/ui/sidebar.tsx
19
+ // src/next/components/app-layout.tsx
19
20
  var MOBILE_BREAKPOINT = 768;
20
21
  function useIsMobile() {
21
22
  const [isMobile, setIsMobile] = React2.useState(void 0);
@@ -712,7 +713,8 @@ var ICON_MAP = {
712
713
  ChevronsUpDown: LucideIcons.ChevronsUpDown,
713
714
  ChevronRight: LucideIcons.ChevronRight,
714
715
  BadgeCheck: LucideIcons.BadgeCheck,
715
- LogOut: LucideIcons.LogOut
716
+ LogOut: LucideIcons.LogOut,
717
+ PieChart: LucideIcons.PieChart
716
718
  // Add more icons as needed
717
719
  };
718
720
  function getIconComponent(icon) {
@@ -1325,17 +1327,26 @@ function AppLayout({
1325
1327
  apiBaseUrl,
1326
1328
  children
1327
1329
  }) {
1328
- return /* @__PURE__ */ jsxs(SidebarProvider, { children: [
1329
- /* @__PURE__ */ jsx(
1330
- AppSidebar,
1331
- {
1332
- user,
1333
- organizationId,
1334
- apiBaseUrl
1335
- }
1336
- ),
1337
- /* @__PURE__ */ jsx(SidebarInset, { children: /* @__PURE__ */ jsx(SidebarContent2, { children }) })
1338
- ] });
1330
+ return /* @__PURE__ */ jsx(
1331
+ ThemeProvider,
1332
+ {
1333
+ attribute: "class",
1334
+ defaultTheme: "system",
1335
+ enableSystem: true,
1336
+ disableTransitionOnChange: true,
1337
+ children: /* @__PURE__ */ jsxs(SidebarProvider, { children: [
1338
+ /* @__PURE__ */ jsx(
1339
+ AppSidebar,
1340
+ {
1341
+ user,
1342
+ organizationId,
1343
+ apiBaseUrl
1344
+ }
1345
+ ),
1346
+ /* @__PURE__ */ jsx(SidebarInset, { children: /* @__PURE__ */ jsx(SidebarContent2, { children }) })
1347
+ ] })
1348
+ }
1349
+ );
1339
1350
  }
1340
1351
 
1341
1352
  export { AppLayout, AppSidebar, NavMain, NavUser, TeamSwitcher, getIconComponent, useNavigation };