@bison-lab/ui 0.9.0 → 0.10.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/charts.d.mts +143 -0
- package/dist/charts.d.mts.map +1 -0
- package/dist/charts.mjs +272 -0
- package/dist/charts.mjs.map +1 -0
- package/dist/index.d.mts +249 -151
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +610 -262
- package/dist/index.mjs.map +1 -1
- package/dist/utils-DPv8mMhD.mjs +11 -0
- package/dist/utils-DPv8mMhD.mjs.map +1 -0
- package/package.json +6 -2
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { ClassValue } from "clsx";
|
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { BrandColors, DensityPreset, FontWeightMap, MotionPreset, RadiusPreset, ShadowPreset } from "@bison-lab/tokens";
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
-
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1 } from "radix-ui";
|
|
6
|
+
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1 } from "radix-ui";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
8
|
import { LucideIcon } from "lucide-react";
|
|
9
9
|
import { toast } from "sonner";
|
|
@@ -38,6 +38,9 @@ declare function useScrollReveal<T extends HTMLElement = HTMLDivElement>(options
|
|
|
38
38
|
isInView: boolean;
|
|
39
39
|
};
|
|
40
40
|
//#endregion
|
|
41
|
+
//#region src/hooks/use-mobile.d.ts
|
|
42
|
+
declare function useIsMobile(): boolean;
|
|
43
|
+
//#endregion
|
|
41
44
|
//#region src/providers/bison-provider.d.ts
|
|
42
45
|
type Theme$1 = "light" | "dark" | "system";
|
|
43
46
|
interface GoogleFontConfig {
|
|
@@ -606,11 +609,11 @@ declare const PaginationEllipsis: {
|
|
|
606
609
|
//#region src/components/command.d.ts
|
|
607
610
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
608
611
|
children?: React$1.ReactNode;
|
|
609
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
612
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
610
613
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
611
614
|
} & {
|
|
612
615
|
asChild?: boolean;
|
|
613
|
-
}, "asChild" | "key"
|
|
616
|
+
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
614
617
|
label?: string;
|
|
615
618
|
shouldFilter?: boolean;
|
|
616
619
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -630,51 +633,51 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
|
|
|
630
633
|
ref?: React$1.Ref<HTMLInputElement>;
|
|
631
634
|
} & {
|
|
632
635
|
asChild?: boolean;
|
|
633
|
-
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "
|
|
636
|
+
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
634
637
|
value?: string;
|
|
635
638
|
onValueChange?: (search: string) => void;
|
|
636
639
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
637
640
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
638
641
|
children?: React$1.ReactNode;
|
|
639
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
642
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
640
643
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
641
644
|
} & {
|
|
642
645
|
asChild?: boolean;
|
|
643
|
-
}, "asChild" | "key"
|
|
646
|
+
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
644
647
|
label?: string;
|
|
645
648
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
646
649
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
647
650
|
children?: React$1.ReactNode;
|
|
648
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
651
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
649
652
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
650
653
|
} & {
|
|
651
654
|
asChild?: boolean;
|
|
652
|
-
}, "asChild" | "key"
|
|
655
|
+
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
653
656
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
654
657
|
children?: React$1.ReactNode;
|
|
655
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
658
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
656
659
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
657
660
|
} & {
|
|
658
661
|
asChild?: boolean;
|
|
659
|
-
},
|
|
662
|
+
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key">, "value" | "heading"> & {
|
|
660
663
|
heading?: React$1.ReactNode;
|
|
661
664
|
value?: string;
|
|
662
665
|
forceMount?: boolean;
|
|
663
666
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
664
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
667
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
665
668
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
666
669
|
} & {
|
|
667
670
|
asChild?: boolean;
|
|
668
|
-
}, "asChild" | "key"
|
|
671
|
+
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
669
672
|
alwaysRender?: boolean;
|
|
670
673
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
671
674
|
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
672
675
|
children?: React$1.ReactNode;
|
|
673
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
676
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
674
677
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
675
678
|
} & {
|
|
676
679
|
asChild?: boolean;
|
|
677
|
-
},
|
|
680
|
+
}, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key">, "onSelect" | "value" | "disabled"> & {
|
|
678
681
|
disabled?: boolean;
|
|
679
682
|
onSelect?: (value: string) => void;
|
|
680
683
|
value?: string;
|
|
@@ -689,143 +692,172 @@ declare const CommandShortcut: ({
|
|
|
689
692
|
//#region src/components/aspect-ratio.d.ts
|
|
690
693
|
declare const AspectRatio: React$1.ForwardRefExoticComponent<AspectRatio$1.AspectRatioProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
691
694
|
//#endregion
|
|
692
|
-
//#region src/
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
readonly md: 300;
|
|
713
|
-
readonly lg: 400;
|
|
695
|
+
//#region src/components/collapsible.d.ts
|
|
696
|
+
declare function Collapsible({
|
|
697
|
+
...props
|
|
698
|
+
}: React.ComponentProps<typeof Collapsible$1.Root>): react_jsx_runtime0.JSX.Element;
|
|
699
|
+
declare function CollapsibleTrigger({
|
|
700
|
+
...props
|
|
701
|
+
}: React.ComponentProps<typeof Collapsible$1.CollapsibleTrigger>): react_jsx_runtime0.JSX.Element;
|
|
702
|
+
declare function CollapsibleContent({
|
|
703
|
+
...props
|
|
704
|
+
}: React.ComponentProps<typeof Collapsible$1.CollapsibleContent>): react_jsx_runtime0.JSX.Element;
|
|
705
|
+
//#endregion
|
|
706
|
+
//#region src/components/sidebar.d.ts
|
|
707
|
+
type SidebarContextProps = {
|
|
708
|
+
state: "expanded" | "collapsed";
|
|
709
|
+
open: boolean;
|
|
710
|
+
setOpen: (open: boolean) => void;
|
|
711
|
+
openMobile: boolean;
|
|
712
|
+
setOpenMobile: (open: boolean) => void;
|
|
713
|
+
isMobile: boolean;
|
|
714
|
+
toggleSidebar: () => void;
|
|
714
715
|
};
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
716
|
+
declare function useSidebar(): SidebarContextProps;
|
|
717
|
+
declare function SidebarProvider({
|
|
718
|
+
defaultOpen,
|
|
719
|
+
open: openProp,
|
|
720
|
+
onOpenChange: setOpenProp,
|
|
721
|
+
className,
|
|
722
|
+
style,
|
|
723
|
+
children,
|
|
724
|
+
...props
|
|
725
|
+
}: React$1.ComponentProps<"div"> & {
|
|
726
|
+
defaultOpen?: boolean;
|
|
727
|
+
open?: boolean;
|
|
728
|
+
onOpenChange?: (open: boolean) => void;
|
|
729
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
730
|
+
declare function Sidebar({
|
|
731
|
+
side,
|
|
732
|
+
variant,
|
|
733
|
+
collapsible,
|
|
734
|
+
className,
|
|
735
|
+
children,
|
|
736
|
+
...props
|
|
737
|
+
}: React$1.ComponentProps<"div"> & {
|
|
738
|
+
side?: "left" | "right";
|
|
739
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
740
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
741
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
742
|
+
declare function SidebarTrigger({
|
|
743
|
+
className,
|
|
744
|
+
onClick,
|
|
745
|
+
...props
|
|
746
|
+
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime0.JSX.Element;
|
|
747
|
+
declare function SidebarRail({
|
|
748
|
+
className,
|
|
749
|
+
...props
|
|
750
|
+
}: React$1.ComponentProps<"button">): react_jsx_runtime0.JSX.Element;
|
|
751
|
+
declare function SidebarInset({
|
|
752
|
+
className,
|
|
753
|
+
...props
|
|
754
|
+
}: React$1.ComponentProps<"main">): react_jsx_runtime0.JSX.Element;
|
|
755
|
+
declare function SidebarInput({
|
|
756
|
+
className,
|
|
757
|
+
...props
|
|
758
|
+
}: React$1.ComponentProps<typeof Input>): react_jsx_runtime0.JSX.Element;
|
|
759
|
+
declare function SidebarHeader({
|
|
760
|
+
className,
|
|
761
|
+
...props
|
|
762
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
763
|
+
declare function SidebarFooter({
|
|
764
|
+
className,
|
|
765
|
+
...props
|
|
766
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
767
|
+
declare function SidebarSeparator({
|
|
768
|
+
className,
|
|
769
|
+
...props
|
|
770
|
+
}: React$1.ComponentProps<typeof Separator>): react_jsx_runtime0.JSX.Element;
|
|
771
|
+
declare function SidebarContent({
|
|
772
|
+
className,
|
|
773
|
+
...props
|
|
774
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
775
|
+
declare function SidebarGroup({
|
|
776
|
+
className,
|
|
777
|
+
...props
|
|
778
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
779
|
+
declare function SidebarGroupLabel({
|
|
780
|
+
className,
|
|
781
|
+
asChild,
|
|
782
|
+
...props
|
|
783
|
+
}: React$1.ComponentProps<"div"> & {
|
|
784
|
+
asChild?: boolean;
|
|
785
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
786
|
+
declare function SidebarGroupAction({
|
|
787
|
+
className,
|
|
788
|
+
asChild,
|
|
789
|
+
...props
|
|
790
|
+
}: React$1.ComponentProps<"button"> & {
|
|
791
|
+
asChild?: boolean;
|
|
792
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
793
|
+
declare function SidebarGroupContent({
|
|
794
|
+
className,
|
|
795
|
+
...props
|
|
796
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
797
|
+
declare function SidebarMenu({
|
|
798
|
+
className,
|
|
799
|
+
...props
|
|
800
|
+
}: React$1.ComponentProps<"ul">): react_jsx_runtime0.JSX.Element;
|
|
801
|
+
declare function SidebarMenuItem({
|
|
802
|
+
className,
|
|
803
|
+
...props
|
|
804
|
+
}: React$1.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
|
|
805
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
806
|
+
variant?: "default" | "outline" | null | undefined;
|
|
807
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
808
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
809
|
+
declare function SidebarMenuButton({
|
|
810
|
+
asChild,
|
|
811
|
+
isActive,
|
|
812
|
+
variant,
|
|
813
|
+
size,
|
|
814
|
+
tooltip,
|
|
815
|
+
className,
|
|
816
|
+
...props
|
|
817
|
+
}: React$1.ComponentProps<"button"> & {
|
|
818
|
+
asChild?: boolean;
|
|
819
|
+
isActive?: boolean;
|
|
820
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
821
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime0.JSX.Element;
|
|
822
|
+
declare function SidebarMenuAction({
|
|
823
|
+
className,
|
|
824
|
+
asChild,
|
|
825
|
+
showOnHover,
|
|
826
|
+
...props
|
|
827
|
+
}: React$1.ComponentProps<"button"> & {
|
|
828
|
+
asChild?: boolean;
|
|
829
|
+
showOnHover?: boolean;
|
|
830
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
831
|
+
declare function SidebarMenuBadge({
|
|
832
|
+
className,
|
|
833
|
+
...props
|
|
834
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
835
|
+
declare function SidebarMenuSkeleton({
|
|
836
|
+
className,
|
|
837
|
+
showIcon,
|
|
838
|
+
...props
|
|
839
|
+
}: React$1.ComponentProps<"div"> & {
|
|
840
|
+
showIcon?: boolean;
|
|
841
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
842
|
+
declare function SidebarMenuSub({
|
|
843
|
+
className,
|
|
844
|
+
...props
|
|
845
|
+
}: React$1.ComponentProps<"ul">): react_jsx_runtime0.JSX.Element;
|
|
846
|
+
declare function SidebarMenuSubItem({
|
|
847
|
+
className,
|
|
848
|
+
...props
|
|
849
|
+
}: React$1.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
|
|
850
|
+
declare function SidebarMenuSubButton({
|
|
851
|
+
asChild,
|
|
852
|
+
size,
|
|
853
|
+
isActive,
|
|
854
|
+
className,
|
|
855
|
+
...props
|
|
856
|
+
}: React$1.ComponentProps<"a"> & {
|
|
857
|
+
asChild?: boolean;
|
|
858
|
+
size?: "sm" | "md";
|
|
859
|
+
isActive?: boolean;
|
|
860
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
829
861
|
//#endregion
|
|
830
862
|
//#region src/blocks/auth/social-providers.d.ts
|
|
831
863
|
type SocialProvider = "google" | "github" | "apple";
|
|
@@ -1141,6 +1173,72 @@ declare function FooterBlock({
|
|
|
1141
1173
|
className
|
|
1142
1174
|
}: FooterBlockProps): react_jsx_runtime0.JSX.Element;
|
|
1143
1175
|
//#endregion
|
|
1176
|
+
//#region src/blocks/layout/app-sidebar/types.d.ts
|
|
1177
|
+
interface SidebarTeam {
|
|
1178
|
+
name: string;
|
|
1179
|
+
logo: React.ElementType;
|
|
1180
|
+
plan: string;
|
|
1181
|
+
}
|
|
1182
|
+
interface SidebarNavGroup {
|
|
1183
|
+
label?: string;
|
|
1184
|
+
items: SidebarNavItem[];
|
|
1185
|
+
}
|
|
1186
|
+
interface SidebarNavItem {
|
|
1187
|
+
title: string;
|
|
1188
|
+
url: string;
|
|
1189
|
+
icon?: LucideIcon;
|
|
1190
|
+
isActive?: boolean;
|
|
1191
|
+
onClick?: () => void;
|
|
1192
|
+
items?: SidebarNavSubItem[];
|
|
1193
|
+
}
|
|
1194
|
+
interface SidebarNavSubItem {
|
|
1195
|
+
title: string;
|
|
1196
|
+
url: string;
|
|
1197
|
+
isActive?: boolean;
|
|
1198
|
+
onClick?: () => void;
|
|
1199
|
+
}
|
|
1200
|
+
interface SidebarUser {
|
|
1201
|
+
name: string;
|
|
1202
|
+
email: string;
|
|
1203
|
+
avatar?: string;
|
|
1204
|
+
}
|
|
1205
|
+
interface SidebarUserMenuItem {
|
|
1206
|
+
label: string;
|
|
1207
|
+
icon?: LucideIcon;
|
|
1208
|
+
onClick?: () => void;
|
|
1209
|
+
}
|
|
1210
|
+
//#endregion
|
|
1211
|
+
//#region src/blocks/layout/app-sidebar/app-sidebar-block.d.ts
|
|
1212
|
+
interface AppSidebarBlockProps extends React$1.ComponentProps<typeof Sidebar> {
|
|
1213
|
+
/** One or more teams displayed in the header switcher */
|
|
1214
|
+
teams: SidebarTeam[];
|
|
1215
|
+
/** Currently active team (defaults to first team) */
|
|
1216
|
+
activeTeam?: SidebarTeam;
|
|
1217
|
+
/** Called when user switches teams */
|
|
1218
|
+
onTeamChange?: (team: SidebarTeam) => void;
|
|
1219
|
+
/** Called when "Add team" is clicked — omit to hide the button */
|
|
1220
|
+
onAddTeam?: () => void;
|
|
1221
|
+
/** Flexible navigation groups rendered in the sidebar body */
|
|
1222
|
+
navGroups?: SidebarNavGroup[];
|
|
1223
|
+
/** User info displayed in the footer */
|
|
1224
|
+
user: SidebarUser;
|
|
1225
|
+
/** Optional grouped menu items in the user dropdown (e.g. Account, Billing) */
|
|
1226
|
+
userMenuGroups?: SidebarUserMenuItem[][];
|
|
1227
|
+
/** Called on logout — always rendered */
|
|
1228
|
+
onLogout: () => void;
|
|
1229
|
+
}
|
|
1230
|
+
declare function AppSidebarBlock({
|
|
1231
|
+
teams,
|
|
1232
|
+
activeTeam,
|
|
1233
|
+
onTeamChange,
|
|
1234
|
+
onAddTeam,
|
|
1235
|
+
navGroups,
|
|
1236
|
+
user,
|
|
1237
|
+
userMenuGroups,
|
|
1238
|
+
onLogout,
|
|
1239
|
+
...sidebarProps
|
|
1240
|
+
}: AppSidebarBlockProps): react_jsx_runtime0.JSX.Element;
|
|
1241
|
+
//#endregion
|
|
1144
1242
|
//#region src/blocks/settings/profile-settings-block.d.ts
|
|
1145
1243
|
interface ProfileSettingsData {
|
|
1146
1244
|
name: string;
|
|
@@ -1218,5 +1316,5 @@ declare function NotificationSettingsBlock({
|
|
|
1218
1316
|
className
|
|
1219
1317
|
}: NotificationSettingsBlockProps): react_jsx_runtime0.JSX.Element;
|
|
1220
1318
|
//#endregion
|
|
1221
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, type AccountSettingsBlockProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger,
|
|
1319
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, type AccountSettingsBlockProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppSidebarBlock, type AppSidebarBlockProps, type SidebarUser as AppSidebarUser, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, BisonProvider, type BisonProviderProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableProps, DensityProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyStateBlock, FooterBlock, type FooterBlockProps, type FooterLink, ForgotPasswordBlock, Form, FormError, type FormErrorProps, FormField, type FormFieldProps, type FormMode, type FormProps, HeaderBlock, type HeaderBlockProps, Input, type InputProps, Label, MaintenanceBlock, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, type NotificationGroup, type NotificationSetting, NotificationSettingsBlock, type NotificationSettingsBlockProps, PageShell, type PageShellProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, ProfileSettingsBlock, type ProfileSettingsBlockProps, type ProfileSettingsData, Progress, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, ResetPasswordBlock, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBlock, type SidebarBlockProps, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, type SidebarItem, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, type SidebarNavGroup, type SidebarNavItem, type SidebarNavSubItem, SidebarProvider, SidebarRail, type SidebarSection, SidebarSeparator, type SidebarTeam, SidebarTrigger, type SidebarUserMenuItem, SignInBlock, SignUpBlock, Skeleton, Slider, SocialProviders, Spinner, type SpinnerProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeProvider, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseScrollRevealOptions, VerifyBlock, badgeVariants, buttonVariants, cn, navigationMenuTriggerStyle, progressBarVariants, spinnerVariants, toast, useDensity, useFormContext, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
1222
1320
|
//# sourceMappingURL=index.d.mts.map
|