hubbi-ui 1.2.0 → 1.2.2

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.
@@ -2,6 +2,7 @@ interface AccordionProps {
2
2
  title: React.ReactNode;
3
3
  borderColor?: string;
4
4
  children: React.ReactNode;
5
+ defaultOpen?: boolean;
5
6
  }
6
- export declare function Accordion({ title, borderColor, children, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Accordion({ title, borderColor, children, defaultOpen, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -7,5 +7,5 @@ interface MaskedInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "
7
7
  mask?: string;
8
8
  replacement?: Record<string, RegExp>;
9
9
  }
10
- export declare function MaskedInput({ label, placeholder, error, helperText, disabled, icon, className, mask, replacement, ...props }: MaskedInputProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function MaskedInput({ label, placeholder, error, helperText, disabled, icon, className, mask, replacement, value, ...props }: MaskedInputProps): import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -2,15 +2,16 @@ import { default as React } from 'react';
2
2
  interface SubItem {
3
3
  to: string;
4
4
  label: string;
5
- permission?: number | string;
6
5
  locked?: boolean;
6
+ hasPermission?: boolean;
7
7
  }
8
8
  interface NavItem {
9
9
  to?: string;
10
10
  label: string;
11
11
  icon: React.ElementType;
12
- permission?: number | string;
13
12
  subItems?: SubItem[];
13
+ locked?: boolean;
14
+ hasPermission?: boolean;
14
15
  }
15
16
  interface Location {
16
17
  pathname: string;
@@ -22,10 +23,9 @@ interface SidebarProps {
22
23
  navItems: NavItem[];
23
24
  logout: () => void;
24
25
  location: Location;
25
- user: any;
26
26
  lockMenu?: boolean;
27
27
  lockLink?: string;
28
28
  onNavigate: (path: string) => void;
29
29
  }
30
- export declare function Sidebar({ isOpen, onClose, navItems, logout, location, isDarkMode, user, lockMenu, lockLink, onNavigate, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
30
+ export declare function Sidebar({ isOpen, onClose, navItems, logout, location, isDarkMode, lockMenu, lockLink, onNavigate, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
31
31
  export {};