@yusr_systems/ui 2.4.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/yusr-ui.js +8 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1090,7 +1090,7 @@ export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenCha
|
|
|
1090
1090
|
|
|
1091
1091
|
export declare function SidebarRail({ className, ...props }: React_2.ComponentProps<"button">): JSX.Element;
|
|
1092
1092
|
|
|
1093
|
-
export declare function SideBarSecondaryMenu({ items, onLogout, ...props }: SideBarSecondaryMenuProps): JSX.Element;
|
|
1093
|
+
export declare function SideBarSecondaryMenu({ items, onLogout, LinkComponent, ...props }: SideBarSecondaryMenuProps): JSX.Element;
|
|
1094
1094
|
|
|
1095
1095
|
export declare interface SideBarSecondaryMenuProps extends React_2.ComponentPropsWithoutRef<typeof SidebarGroup> {
|
|
1096
1096
|
items: {
|
|
@@ -1099,6 +1099,7 @@ export declare interface SideBarSecondaryMenuProps extends React_2.ComponentProp
|
|
|
1099
1099
|
icon: React_2.ReactNode;
|
|
1100
1100
|
}[];
|
|
1101
1101
|
onLogout: () => void;
|
|
1102
|
+
LinkComponent?: React_2.ElementType;
|
|
1102
1103
|
}
|
|
1103
1104
|
|
|
1104
1105
|
export declare function SidebarSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
|
package/dist/yusr-ui.js
CHANGED
|
@@ -3455,28 +3455,28 @@ function la({ variant: e = "icon" }) {
|
|
|
3455
3455
|
}
|
|
3456
3456
|
//#endregion
|
|
3457
3457
|
//#region src/components/custom/sideBar/sideBarSecondaryMenu.tsx
|
|
3458
|
-
function ua({ items:
|
|
3458
|
+
function ua({ items: e, onLogout: t, LinkComponent: n = "a", ...r }) {
|
|
3459
3459
|
return /* @__PURE__ */ a(yi, {
|
|
3460
3460
|
...r,
|
|
3461
3461
|
children: /* @__PURE__ */ a(Si, { children: /* @__PURE__ */ o(H, { children: [
|
|
3462
|
-
|
|
3462
|
+
e.map((e) => /* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(W, {
|
|
3463
3463
|
asChild: !0,
|
|
3464
|
-
children: /* @__PURE__ */ o(
|
|
3465
|
-
|
|
3464
|
+
children: /* @__PURE__ */ o(n, {
|
|
3465
|
+
href: e.url,
|
|
3466
3466
|
className: "flex items-center justify-start gap-3 w-full px-3",
|
|
3467
3467
|
children: [/* @__PURE__ */ a("span", {
|
|
3468
3468
|
className: "flex items-center justify-center shrink-0 size-4",
|
|
3469
|
-
children:
|
|
3469
|
+
children: e.icon
|
|
3470
3470
|
}), /* @__PURE__ */ a("span", {
|
|
3471
3471
|
className: "font-medium truncate",
|
|
3472
|
-
children:
|
|
3472
|
+
children: e.title
|
|
3473
3473
|
})]
|
|
3474
3474
|
})
|
|
3475
|
-
}) },
|
|
3475
|
+
}) }, e.title)),
|
|
3476
3476
|
/* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(la, { variant: "sidebar" }) }),
|
|
3477
3477
|
/* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(W, {
|
|
3478
3478
|
asChild: !0,
|
|
3479
|
-
onClick:
|
|
3479
|
+
onClick: t,
|
|
3480
3480
|
children: /* @__PURE__ */ o("div", {
|
|
3481
3481
|
className: "flex items-center justify-start gap-3 w-full px-3 text-destructive cursor-pointer",
|
|
3482
3482
|
children: [/* @__PURE__ */ a("span", {
|