advi-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.
@@ -0,0 +1,17 @@
1
+ import { ChangeEvent } from 'react';
2
+ interface SearchInputProps {
3
+ value?: string;
4
+ defaultValue?: string;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ loading?: boolean;
8
+ debounce?: number;
9
+ shortcut?: string;
10
+ showButton?: boolean;
11
+ className?: string;
12
+ onSearch?: (value: string) => void;
13
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
14
+ onClear?: () => void;
15
+ }
16
+ export declare const SearchInput: ({ value: controlledValue, defaultValue, placeholder, disabled, loading, debounce: debounceMs, shortcut, showButton, className, onSearch, onChange, onClear, }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
+ declare const Table: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableElement> & import('react').RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import('react').RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import('react').RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import('react').RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & import('react').RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: import('react').ForwardRefExoticComponent<ThHTMLAttributes<HTMLTableCellElement> & import('react').RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: import('react').ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & import('react').RefAttributes<HTMLTableCellElement>>;
9
+ declare const TableCaption: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption };
@@ -14,10 +14,12 @@ export * from './components/ui/multi-select';
14
14
  export * from './components/ui/radio';
15
15
  export * from './components/ui/select';
16
16
  export * from './components/ui/switch';
17
+ export * from './components/ui/table';
17
18
  export * from './components/ui/tabs';
18
19
  export * from './components/ui/textarea';
19
20
  export * from './components/ui/toast';
20
21
  export * from './components/CircularProgressBar';
22
+ export * from './components/SearchInput';
21
23
  export * from './components/Footer';
22
24
  export * from './components/Header';
23
25
  export * from './components/HoverPopup';
@@ -1,2 +1,10 @@
1
1
  import { ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;
2
+ export declare const cn: (...inputs: ClassValue[]) => string;
3
+ export declare const round: (value: number, decimal: number) => number;
4
+ export declare const clamp: (value: number, min: number, max: number) => number;
5
+ export declare const truncate: (str: string, maxLength: number, suffix?: string) => string;
6
+ export declare const throttle: <T extends (...args: any[]) => void>(func: T, limit: number) => (...args: Parameters<T>) => void;
7
+ export declare const debounce: <T extends (...args: any[]) => void>(func: T, delay: number) => {
8
+ (...args: Parameters<T>): void;
9
+ cancel(): void;
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "advi-ui",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Personal React component library built on shadcn/ui + Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/advi-ui.cjs.js",