@prediktif/ui 0.1.8 → 0.1.9

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.mts CHANGED
@@ -1,34 +1,45 @@
1
- import * as React$1 from 'react';
2
- import { ComponentProps } from 'react';
3
- import * as class_variance_authority_types from 'class-variance-authority/types';
4
- import { useRender } from '@base-ui/react/use-render';
5
- import { VariantProps } from 'class-variance-authority';
6
- import { Tooltip } from '@base-ui/react/tooltip';
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
7
3
 
8
- interface HeaderTitleProps {
9
- title: React.ReactNode;
10
- subtitle: React.ReactNode;
11
- children?: React.ReactNode;
4
+ interface NavItem {
5
+ title: string;
6
+ url: string;
7
+ icon: React.ComponentType<{
8
+ className?: string;
9
+ }>;
10
+ locked?: boolean;
12
11
  }
13
- declare const HeaderTitle: React$1.NamedExoticComponent<HeaderTitleProps>;
14
-
15
- declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
16
-
17
- declare const sidebarMenuButtonVariants: (props?: ({
18
- variant?: "default" | "outline" | null | undefined;
19
- size?: "default" | "sm" | "lg" | null | undefined;
20
- } & class_variance_authority_types.ClassProp) | undefined) => string;
21
- declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button"> & {
22
- isActive?: boolean;
23
- tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
24
- } & VariantProps<typeof sidebarMenuButtonVariants>): React$1.JSX.Element;
25
-
26
- interface NavUserProps {
12
+ interface OrganizationItem {
13
+ name: string;
14
+ logo?: React.ComponentType<{
15
+ className?: string;
16
+ }>;
17
+ plan?: string;
18
+ }
19
+ interface AppSidebarProps {
27
20
  name: string;
28
21
  email: string;
22
+ orgRole: string;
23
+ brand: string;
24
+ href: string;
25
+ confirmDialog?: boolean;
26
+ headerDropdown?: boolean;
29
27
  image?: string | null;
30
- render?: ComponentProps<typeof SidebarMenuButton>["render"];
28
+ defaultOpen?: boolean;
29
+ navMainItems: NavItem[];
30
+ navSecondaryItems?: NavItem[];
31
+ organizations?: OrganizationItem[];
32
+ activeOrg?: OrganizationItem;
33
+ setActiveOrg?: (org: OrganizationItem) => void;
34
+ children?: ReactNode;
35
+ }
36
+ declare const AppSidebar: react.NamedExoticComponent<AppSidebarProps>;
37
+
38
+ interface HeaderTitleProps {
39
+ title: React.ReactNode;
40
+ subtitle: React.ReactNode;
41
+ children?: React.ReactNode;
31
42
  }
32
- declare const NavUser: React$1.NamedExoticComponent<NavUserProps>;
43
+ declare const HeaderTitle: react.NamedExoticComponent<HeaderTitleProps>;
33
44
 
34
- export { HeaderTitle, type HeaderTitleProps, NavUser, type NavUserProps };
45
+ export { AppSidebar, type AppSidebarProps, HeaderTitle, type HeaderTitleProps, type NavItem, type OrganizationItem };
package/dist/index.d.ts CHANGED
@@ -1,34 +1,45 @@
1
- import * as React$1 from 'react';
2
- import { ComponentProps } from 'react';
3
- import * as class_variance_authority_types from 'class-variance-authority/types';
4
- import { useRender } from '@base-ui/react/use-render';
5
- import { VariantProps } from 'class-variance-authority';
6
- import { Tooltip } from '@base-ui/react/tooltip';
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
7
3
 
8
- interface HeaderTitleProps {
9
- title: React.ReactNode;
10
- subtitle: React.ReactNode;
11
- children?: React.ReactNode;
4
+ interface NavItem {
5
+ title: string;
6
+ url: string;
7
+ icon: React.ComponentType<{
8
+ className?: string;
9
+ }>;
10
+ locked?: boolean;
12
11
  }
13
- declare const HeaderTitle: React$1.NamedExoticComponent<HeaderTitleProps>;
14
-
15
- declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
16
-
17
- declare const sidebarMenuButtonVariants: (props?: ({
18
- variant?: "default" | "outline" | null | undefined;
19
- size?: "default" | "sm" | "lg" | null | undefined;
20
- } & class_variance_authority_types.ClassProp) | undefined) => string;
21
- declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button"> & {
22
- isActive?: boolean;
23
- tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
24
- } & VariantProps<typeof sidebarMenuButtonVariants>): React$1.JSX.Element;
25
-
26
- interface NavUserProps {
12
+ interface OrganizationItem {
13
+ name: string;
14
+ logo?: React.ComponentType<{
15
+ className?: string;
16
+ }>;
17
+ plan?: string;
18
+ }
19
+ interface AppSidebarProps {
27
20
  name: string;
28
21
  email: string;
22
+ orgRole: string;
23
+ brand: string;
24
+ href: string;
25
+ confirmDialog?: boolean;
26
+ headerDropdown?: boolean;
29
27
  image?: string | null;
30
- render?: ComponentProps<typeof SidebarMenuButton>["render"];
28
+ defaultOpen?: boolean;
29
+ navMainItems: NavItem[];
30
+ navSecondaryItems?: NavItem[];
31
+ organizations?: OrganizationItem[];
32
+ activeOrg?: OrganizationItem;
33
+ setActiveOrg?: (org: OrganizationItem) => void;
34
+ children?: ReactNode;
35
+ }
36
+ declare const AppSidebar: react.NamedExoticComponent<AppSidebarProps>;
37
+
38
+ interface HeaderTitleProps {
39
+ title: React.ReactNode;
40
+ subtitle: React.ReactNode;
41
+ children?: React.ReactNode;
31
42
  }
32
- declare const NavUser: React$1.NamedExoticComponent<NavUserProps>;
43
+ declare const HeaderTitle: react.NamedExoticComponent<HeaderTitleProps>;
33
44
 
34
- export { HeaderTitle, type HeaderTitleProps, NavUser, type NavUserProps };
45
+ export { AppSidebar, type AppSidebarProps, HeaderTitle, type HeaderTitleProps, type NavItem, type OrganizationItem };