levannta-ui 1.0.49-react18 → 1.0.50-react18

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.
@@ -1,5 +1,6 @@
1
+ import { default as React } from 'react';
1
2
 
2
- export interface CardProps {
3
+ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
4
  children: React.ReactNode;
4
5
  }
5
- export declare const Card: ({ children }: CardProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
 
3
- export interface CardCTAProps {
3
+ export interface CardCTAProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  title: string;
5
5
  subtitle?: string;
6
6
  buttonText?: string;
@@ -9,7 +9,6 @@ export interface CardCTAProps {
9
9
  image?: string;
10
10
  icon: ReactNode;
11
11
  disabled?: boolean;
12
- className?: string;
13
12
  size?: "sm" | "md" | "lg";
14
13
  }
15
- export declare const CardCTA: React.FC<CardCTAProps>;
14
+ export declare const CardCTA: React.ForwardRefExoticComponent<CardCTAProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,10 +1,10 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
 
3
- export interface CollapsibleProps {
3
+ export interface CollapsibleProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  isOpen: boolean;
5
5
  onToggle: () => void;
6
6
  title: string;
7
7
  subtitle?: string;
8
8
  children?: ReactNode;
9
9
  }
10
- export declare const Collapsible: React.FC<CollapsibleProps>;
10
+ export declare const Collapsible: React.ForwardRefExoticComponent<CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
 
3
- export interface DrawerProps {
3
+ export interface DrawerProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
6
6
  title?: string;
@@ -9,4 +9,4 @@ export interface DrawerProps {
9
9
  size?: 'small' | 'medium' | 'large';
10
10
  enableSwipeToClose?: boolean;
11
11
  }
12
- export declare const Drawer: React.FC<DrawerProps>;
12
+ export declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
@@ -7,4 +7,4 @@ export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  showLogo?: boolean;
8
8
  logoProps?: React.ComponentProps<typeof Logo>;
9
9
  }
10
- export declare const Header: React.FC<HeaderProps>;
10
+ export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>>;
@@ -14,6 +14,7 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
14
14
  hintText?: string;
15
15
  onClear?: () => void;
16
16
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
17
+ ref?: React.Ref<HTMLInputElement>;
17
18
  }
18
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
19
+ declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
19
20
  export { Input, inputVariants };
@@ -4,11 +4,11 @@ import { VariantProps } from 'class-variance-authority';
4
4
  declare const modalVariants: (props?: ({
5
5
  size?: "s" | "m" | "l" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- export interface ModalProps extends VariantProps<typeof modalVariants> {
7
+ export interface ModalProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof modalVariants> {
8
8
  title: string;
9
9
  children?: React.ReactNode;
10
10
  active: boolean;
11
11
  onClose: () => void;
12
12
  }
13
- export declare const Modal: React.FC<ModalProps>;
13
+ export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
14
14
  export default Modal;
@@ -10,7 +10,7 @@ export interface SidebarItemProps {
10
10
  label: string;
11
11
  }[];
12
12
  }
13
- export interface SidebarProps {
13
+ export interface SidebarProps extends React.HTMLAttributes<HTMLDivElement> {
14
14
  logo?: React.ReactNode;
15
15
  logoCollapsed?: React.ReactNode;
16
16
  items: SidebarItemProps[];
@@ -22,5 +22,5 @@ export interface SidebarProps {
22
22
  activePath?: string;
23
23
  onActiveChange?: (url: string) => void;
24
24
  }
25
- export declare const Sidebar: React.FC<SidebarProps>;
25
+ export declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLDivElement>>;
26
26
  export default Sidebar;
@@ -1,14 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export interface TabGroupProps {
3
+ export interface TabGroupProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  children: React.ReactNode;
5
5
  defaultActiveIndex?: number;
6
6
  activeIndex?: number;
7
7
  onTabChange?: (index: number) => void;
8
- className?: string;
9
8
  variant?: 'default' | 'pills' | 'underline';
10
9
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
11
10
  outline?: boolean;
12
11
  }
13
- export declare const TabGroup: React.FC<TabGroupProps>;
12
+ export declare const TabGroup: React.ForwardRefExoticComponent<TabGroupProps & React.RefAttributes<HTMLDivElement>>;
14
13
  export default TabGroup;
@@ -1,9 +1,10 @@
1
+ import { default as React } from 'react';
1
2
 
2
- export interface ToggleButtonProps {
3
+ export interface ToggleButtonProps extends React.HTMLAttributes<HTMLDivElement> {
3
4
  buttonsData: {
4
5
  label: string;
5
6
  onClick: () => void;
6
7
  }[];
7
8
  size?: "xs" | "sm" | "md";
8
9
  }
9
- export declare const ToggleButton: ({ buttonsData, size }: ToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ToggleButton: React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<HTMLDivElement>>;