@yusr_systems/ui 3.1.0 → 3.1.1

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 CHANGED
@@ -1347,6 +1347,35 @@ export declare type YusrSidBarProps = {
1347
1347
  }[];
1348
1348
  };
1349
1349
 
1350
+ /**
1351
+ * A sidebar component for Yusuf UI.
1352
+ *
1353
+ * It provides a sidebar that can be collapsed and opened with a button.
1354
+ * The sidebar can be placed on the left or right side of the page.
1355
+ * It also provides a context for the sidebar items to access the sidebar state.
1356
+ *
1357
+ * @param {React.ComponentProps<typeof Sidebar>} props The props for the sidebar.
1358
+ * @param {YusrSidBarProps} props The props for the sidebar items.
1359
+ * @param {PropsWithChildren} props The props with children for the sidebar.
1360
+ * @param {React.ReactNode} [LinkComponent="a"] The component to use for the links in the sidebar.
1361
+ * @param {React.ReactNode} [logos] The logos to display in the sidebar.
1362
+ * @param {boolean} [displayCompany] Whether to display the company information in the sidebar.
1363
+ * @param {YusrSidBarMainMenuProps["items"]} [navMain] The main navigation items for the sidebar.
1364
+ * @param {YusrSidBarMainMenuProps["items"]} [navSecondary] The secondary navigation items for the sidebar.
1365
+ * @param {React.ReactNode} [children] The children of the sidebar component.
1366
+ */
1367
+ export declare function YusrSideBar({ LinkComponent, logos, displayCompany, navMain, navSecondary, children, ...props }: React.ComponentProps<typeof Sidebar> & YusrSidBarProps & PropsWithChildren): JSX.Element;
1368
+
1369
+ export declare namespace YusrSideBar {
1370
+ var Header: () => JSX.Element;
1371
+ var Content: ({ LogoutHandler, }: {
1372
+ LogoutHandler?: () => Promise<void>;
1373
+ }) => JSX.Element;
1374
+ var Footer: ({ loggedInUser }: {
1375
+ loggedInUser: any;
1376
+ }) => JSX.Element;
1377
+ }
1378
+
1350
1379
  export declare function YusrSideBarMainMenu({ items, LinkComponent, }: {
1351
1380
  items: {
1352
1381
  title: string;
package/dist/yusr-ui.js CHANGED
@@ -5226,4 +5226,4 @@ function Sc(e, t, n, r) {
5226
5226
  };
5227
5227
  }
5228
5228
  //#endregion
5229
- export { Aa as Alert, Na as AlertAction, Ma as AlertDescription, _a as AlertDialog, Da as AlertDialogAction, Oa as AlertDialogCancel, xa as AlertDialogContent, Ea as AlertDialogDescription, Ca as AlertDialogFooter, Sa as AlertDialogHeader, wa as AlertDialogMedia, ba as AlertDialogOverlay, ya as AlertDialogPortal, Ta as AlertDialogTitle, va as AlertDialogTrigger, ja as AlertTitle, Zi as Avatar, ea as AvatarBadge, $i as AvatarFallback, ta as AvatarGroup, na as AvatarGroupCount, Qi as AvatarImage, Fa as Badge, Vt as BaseInput, Ia as Breadcrumb, Ha as BreadcrumbEllipsis, Ra as BreadcrumbItem, za as BreadcrumbLink, La as BreadcrumbList, Ba as BreadcrumbPage, Va as BreadcrumbSeparator, F as Button, kt as Calendar, At as CalendarDayButton, un as Card, mn as CardAction, hn as CardContent, pn as CardDescription, gn as CardFooter, dn as CardHeader, fn as CardTitle, yn as Carousel, bn as CarouselContent, xn as CarouselItem, Cn as CarouselNext, Sn as CarouselPrevious, gt as ChangeDialog, Ka as ChartContainer, Xa as ChartLegend, Za as ChartLegendContent, qa as ChartStyle, Ja as ChartTooltip, Ya as ChartTooltipContent, $a as Checkbox, eo as Combobox, ho as ComboboxChip, mo as ComboboxChips, go as ComboboxChipsInput, uo as ComboboxCollection, ao as ComboboxContent, fo as ComboboxEmpty, co as ComboboxGroup, io as ComboboxInput, so as ComboboxItem, lo as ComboboxLabel, oo as ComboboxList, po as ComboboxSeparator, no as ComboboxTrigger, to as ComboboxValue, Vi as Command, Hi as CommandDialog, Gi as CommandEmpty, Ki as CommandGroup, Ui as CommandInput, Ji as CommandItem, Wi as CommandList, qi as CommandSeparator, Yi as CommandShortcut, $n as ContextMenu, lr as ContextMenuCheckboxItem, ar as ContextMenuContent, tr as ContextMenuGroup, or as ContextMenuItem, dr as ContextMenuLabel, nr as ContextMenuPortal, ir as ContextMenuRadioGroup, ur as ContextMenuRadioItem, fr as ContextMenuSeparator, pr as ContextMenuShortcut, rr as ContextMenuSub, cr as ContextMenuSubContent, sr as ContextMenuSubTrigger, er as ContextMenuTrigger, Jn as CrudEmptyTablePreview, Mi as CrudPage, Qn as CrudTable, mr as CrudTableBodyRow, hr as CrudTableCard, gr as CrudTableHeader, _r as CrudTableHeaderRows, Ai as CrudTablePagination, ji as CrudTableRowActionsMenu, Bt as DateField, Rt as DateInput, Ut as DateTimeField, Ht as DateTimeInput, _t as DeleteDialog, I as Dialog, lt as DialogClose, dt as DialogContent, ht as DialogDescription, pt as DialogFooter, ft as DialogHeader, ut as DialogOverlay, ct as DialogPortal, mt as DialogTitle, st as DialogTrigger, vo as DirectionProvider, bo as Drawer, Co as DrawerClose, To as DrawerContent, ko as DrawerDescription, Do as DrawerFooter, Eo as DrawerHeader, wo as DrawerOverlay, So as DrawerPortal, Oo as DrawerTitle, xo as DrawerTrigger, Tr as DropdownMenu, Ar as DropdownMenuCheckboxItem, Or as DropdownMenuContent, kr as DropdownMenuGroup, B as DropdownMenuItem, Nr as DropdownMenuLabel, Er as DropdownMenuPortal, jr as DropdownMenuRadioGroup, Mr as DropdownMenuRadioItem, Pr as DropdownMenuSeparator, Fr as DropdownMenuShortcut, Ir as DropdownMenuSub, Rr as DropdownMenuSubContent, Lr as DropdownMenuSubTrigger, Dr as DropdownMenuTrigger, ot as DynamicListContainer, Vn as Empty, qn as EmptyContent, Kn as EmptyDescription, Hn as EmptyHeader, Wn as EmptyMedia, Gn as EmptyTitle, Po as Field, Fo as FieldContent, Ro as FieldDescription, Bo as FieldError, Mo as FieldGroup, Io as FieldLabel, jo as FieldLegend, zo as FieldSeparator, Ao as FieldSet, Lo as FieldTitle, Gt as FieldsSection, R as FormField, z as Input, Kt as InputField, Ni as InputGroup, Fi as InputGroupAddon, Li as InputGroupButton, zi as InputGroupInput, Ri as InputGroupText, Bi as InputGroupTextarea, zt as Label, An as Lightbox, ga as Loading, Jt as NumberField, qt as NumberInput, vr as Pagination, yr as PaginationContent, wr as PaginationEllipsis, br as PaginationItem, xr as PaginationLink, Cr as PaginationNext, Sr as PaginationPrevious, Yt as PasswordField, Xt as PhoneField, jt as Popover, Pt as PopoverAnchor, Nt as PopoverContent, Lt as PopoverDescription, Ft as PopoverHeader, It as PopoverTitle, Mt as PopoverTrigger, nt as ProtectedRoute, at as SaveButton, Vo as ScrollArea, Ho as ScrollBar, Mn as SearchInput, Xi as SearchableSelect, Zt as Select, tn as SelectContent, ln as SelectField, Qt as SelectGroup, cn as SelectInput, rn as SelectItem, nn as SelectLabel, sn as SelectScrollDownButton, on as SelectScrollUpButton, an as SelectSeparator, en as SelectTrigger, $t as SelectValue, L as Separator, Vr as Sheet, Ur as SheetClose, Kr as SheetContent, Xr as SheetDescription, Jr as SheetFooter, qr as SheetHeader, Yr as SheetTitle, Hr as SheetTrigger, ra as SideBarCompanyData, aa as SideBarMainMenu, ua as SideBarSecondaryMenu, da as SideBarUserData, ui as Sidebar, vi as SidebarContent, pa as SidebarContext, gi as SidebarFooter, yi as SidebarGroup, xi as SidebarGroupAction, Si as SidebarGroupContent, bi as SidebarGroupLabel, hi as SidebarHeader, mi as SidebarInput, pi as SidebarInset, ia as SidebarLogo, H as SidebarMenu, wi as SidebarMenuAction, Ti as SidebarMenuBadge, W as SidebarMenuButton, U as SidebarMenuItem, Ei as SidebarMenuSkeleton, Di as SidebarMenuSub, ki as SidebarMenuSubButton, Oi as SidebarMenuSubItem, li as SidebarProvider, fi as SidebarRail, _i as SidebarSeparator, di as SidebarTrigger, Zr as Skeleton, Tn as StorageFileField, Wo as Switch, Nn as Table, Fn as TableBody, Bn as TableCaption, zn as TableCell, In as TableFooter, Rn as TableHead, Pn as TableHeader, Ln as TableRow, Go as Tabs, Yo as TabsContent, qo as TabsList, Jo as TabsTrigger, On as TextAreaField, Dn as TextAreaInput, kn as TextField, En as Textarea, sa as ThemeProvider, la as ThemeToggle, Wt as TitleSeparator, Uo as Toaster, Zo as Toggle, $o as ToggleGroup, es as ToggleGroupItem, $r as Tooltip, ti as TooltipContent, Qr as TooltipProvider, ei as TooltipTrigger, rt as YusrBusBackground, fa as YusrSideBarMainMenu, jn as ZoomableImage, Pa as badgeVariants, it as buttonVariants, P as cn, cs as createGenericDialogSlice, Sc as createGenericEntitySlice, wn as isPDF, ss as setupAuthListeners, Ko as tabsListVariants, Xo as toggleVariants, vn as useCarousel, _o as useComboboxAnchor, ts as useDialog, yo as useDirection, ns as useDynamicList, is as useEntityForm, rs as useFormValidation, Br as useIsMobile, as as useLightBox, V as useSidebar, ma as useSidebarContext, os as useStorageFile, ca as useTheme };
5229
+ export { Aa as Alert, Na as AlertAction, Ma as AlertDescription, _a as AlertDialog, Da as AlertDialogAction, Oa as AlertDialogCancel, xa as AlertDialogContent, Ea as AlertDialogDescription, Ca as AlertDialogFooter, Sa as AlertDialogHeader, wa as AlertDialogMedia, ba as AlertDialogOverlay, ya as AlertDialogPortal, Ta as AlertDialogTitle, va as AlertDialogTrigger, ja as AlertTitle, Zi as Avatar, ea as AvatarBadge, $i as AvatarFallback, ta as AvatarGroup, na as AvatarGroupCount, Qi as AvatarImage, Fa as Badge, Vt as BaseInput, Ia as Breadcrumb, Ha as BreadcrumbEllipsis, Ra as BreadcrumbItem, za as BreadcrumbLink, La as BreadcrumbList, Ba as BreadcrumbPage, Va as BreadcrumbSeparator, F as Button, kt as Calendar, At as CalendarDayButton, un as Card, mn as CardAction, hn as CardContent, pn as CardDescription, gn as CardFooter, dn as CardHeader, fn as CardTitle, yn as Carousel, bn as CarouselContent, xn as CarouselItem, Cn as CarouselNext, Sn as CarouselPrevious, gt as ChangeDialog, Ka as ChartContainer, Xa as ChartLegend, Za as ChartLegendContent, qa as ChartStyle, Ja as ChartTooltip, Ya as ChartTooltipContent, $a as Checkbox, eo as Combobox, ho as ComboboxChip, mo as ComboboxChips, go as ComboboxChipsInput, uo as ComboboxCollection, ao as ComboboxContent, fo as ComboboxEmpty, co as ComboboxGroup, io as ComboboxInput, so as ComboboxItem, lo as ComboboxLabel, oo as ComboboxList, po as ComboboxSeparator, no as ComboboxTrigger, to as ComboboxValue, Vi as Command, Hi as CommandDialog, Gi as CommandEmpty, Ki as CommandGroup, Ui as CommandInput, Ji as CommandItem, Wi as CommandList, qi as CommandSeparator, Yi as CommandShortcut, $n as ContextMenu, lr as ContextMenuCheckboxItem, ar as ContextMenuContent, tr as ContextMenuGroup, or as ContextMenuItem, dr as ContextMenuLabel, nr as ContextMenuPortal, ir as ContextMenuRadioGroup, ur as ContextMenuRadioItem, fr as ContextMenuSeparator, pr as ContextMenuShortcut, rr as ContextMenuSub, cr as ContextMenuSubContent, sr as ContextMenuSubTrigger, er as ContextMenuTrigger, Jn as CrudEmptyTablePreview, Mi as CrudPage, Qn as CrudTable, mr as CrudTableBodyRow, hr as CrudTableCard, gr as CrudTableHeader, _r as CrudTableHeaderRows, Ai as CrudTablePagination, ji as CrudTableRowActionsMenu, Bt as DateField, Rt as DateInput, Ut as DateTimeField, Ht as DateTimeInput, _t as DeleteDialog, I as Dialog, lt as DialogClose, dt as DialogContent, ht as DialogDescription, pt as DialogFooter, ft as DialogHeader, ut as DialogOverlay, ct as DialogPortal, mt as DialogTitle, st as DialogTrigger, vo as DirectionProvider, bo as Drawer, Co as DrawerClose, To as DrawerContent, ko as DrawerDescription, Do as DrawerFooter, Eo as DrawerHeader, wo as DrawerOverlay, So as DrawerPortal, Oo as DrawerTitle, xo as DrawerTrigger, Tr as DropdownMenu, Ar as DropdownMenuCheckboxItem, Or as DropdownMenuContent, kr as DropdownMenuGroup, B as DropdownMenuItem, Nr as DropdownMenuLabel, Er as DropdownMenuPortal, jr as DropdownMenuRadioGroup, Mr as DropdownMenuRadioItem, Pr as DropdownMenuSeparator, Fr as DropdownMenuShortcut, Ir as DropdownMenuSub, Rr as DropdownMenuSubContent, Lr as DropdownMenuSubTrigger, Dr as DropdownMenuTrigger, ot as DynamicListContainer, Vn as Empty, qn as EmptyContent, Kn as EmptyDescription, Hn as EmptyHeader, Wn as EmptyMedia, Gn as EmptyTitle, Po as Field, Fo as FieldContent, Ro as FieldDescription, Bo as FieldError, Mo as FieldGroup, Io as FieldLabel, jo as FieldLegend, zo as FieldSeparator, Ao as FieldSet, Lo as FieldTitle, Gt as FieldsSection, R as FormField, z as Input, Kt as InputField, Ni as InputGroup, Fi as InputGroupAddon, Li as InputGroupButton, zi as InputGroupInput, Ri as InputGroupText, Bi as InputGroupTextarea, zt as Label, An as Lightbox, ga as Loading, Jt as NumberField, qt as NumberInput, vr as Pagination, yr as PaginationContent, wr as PaginationEllipsis, br as PaginationItem, xr as PaginationLink, Cr as PaginationNext, Sr as PaginationPrevious, Yt as PasswordField, Xt as PhoneField, jt as Popover, Pt as PopoverAnchor, Nt as PopoverContent, Lt as PopoverDescription, Ft as PopoverHeader, It as PopoverTitle, Mt as PopoverTrigger, nt as ProtectedRoute, at as SaveButton, Vo as ScrollArea, Ho as ScrollBar, Mn as SearchInput, Xi as SearchableSelect, Zt as Select, tn as SelectContent, ln as SelectField, Qt as SelectGroup, cn as SelectInput, rn as SelectItem, nn as SelectLabel, sn as SelectScrollDownButton, on as SelectScrollUpButton, an as SelectSeparator, en as SelectTrigger, $t as SelectValue, L as Separator, Vr as Sheet, Ur as SheetClose, Kr as SheetContent, Xr as SheetDescription, Jr as SheetFooter, qr as SheetHeader, Yr as SheetTitle, Hr as SheetTrigger, ra as SideBarCompanyData, aa as SideBarMainMenu, ua as SideBarSecondaryMenu, da as SideBarUserData, ui as Sidebar, vi as SidebarContent, pa as SidebarContext, gi as SidebarFooter, yi as SidebarGroup, xi as SidebarGroupAction, Si as SidebarGroupContent, bi as SidebarGroupLabel, hi as SidebarHeader, mi as SidebarInput, pi as SidebarInset, ia as SidebarLogo, H as SidebarMenu, wi as SidebarMenuAction, Ti as SidebarMenuBadge, W as SidebarMenuButton, U as SidebarMenuItem, Ei as SidebarMenuSkeleton, Di as SidebarMenuSub, ki as SidebarMenuSubButton, Oi as SidebarMenuSubItem, li as SidebarProvider, fi as SidebarRail, _i as SidebarSeparator, di as SidebarTrigger, Zr as Skeleton, Tn as StorageFileField, Wo as Switch, Nn as Table, Fn as TableBody, Bn as TableCaption, zn as TableCell, In as TableFooter, Rn as TableHead, Pn as TableHeader, Ln as TableRow, Go as Tabs, Yo as TabsContent, qo as TabsList, Jo as TabsTrigger, On as TextAreaField, Dn as TextAreaInput, kn as TextField, En as Textarea, sa as ThemeProvider, la as ThemeToggle, Wt as TitleSeparator, Uo as Toaster, Zo as Toggle, $o as ToggleGroup, es as ToggleGroupItem, $r as Tooltip, ti as TooltipContent, Qr as TooltipProvider, ei as TooltipTrigger, rt as YusrBusBackground, ha as YusrSideBar, fa as YusrSideBarMainMenu, jn as ZoomableImage, Pa as badgeVariants, it as buttonVariants, P as cn, cs as createGenericDialogSlice, Sc as createGenericEntitySlice, wn as isPDF, ss as setupAuthListeners, Ko as tabsListVariants, Xo as toggleVariants, vn as useCarousel, _o as useComboboxAnchor, ts as useDialog, yo as useDirection, ns as useDynamicList, is as useEntityForm, rs as useFormValidation, Br as useIsMobile, as as useLightBox, V as useSidebar, ma as useSidebarContext, os as useStorageFile, ca as useTheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yusr_systems/ui",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"