@yuktishaalaa/yuktai 4.1.3 → 4.2.0

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
@@ -111,6 +111,20 @@ declare const voicePlugin: {
111
111
  execute(input: string): Promise<string>;
112
112
  };
113
113
 
114
+ interface YuktaiGridAIProps<T> {
115
+ data: T[];
116
+ columns: {
117
+ key: string;
118
+ label: string;
119
+ type?: "number" | "text" | "date";
120
+ }[];
121
+ onSearch: (query: string) => void;
122
+ onSort?: (key: string, dir: "asc" | "desc") => void;
123
+ theme?: "light" | "dark";
124
+ language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
125
+ }
126
+ declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
127
+
114
128
  interface GridColumn<T = Record<string, unknown>> {
115
129
  /** Unique key — must match a property in your data */
116
130
  key: keyof T & string;
@@ -227,8 +241,6 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
227
241
  className?: string;
228
242
  }
229
243
 
230
- declare function YuktaiGrid<T extends Record<string, unknown>>(props: YuktaiGridProps<T>): react_jsx_runtime.JSX.Element;
231
-
232
244
  interface UseGridOptions<T> {
233
245
  data: T[];
234
246
  columns: GridColumn<T>[];
package/dist/index.d.ts CHANGED
@@ -111,6 +111,20 @@ declare const voicePlugin: {
111
111
  execute(input: string): Promise<string>;
112
112
  };
113
113
 
114
+ interface YuktaiGridAIProps<T> {
115
+ data: T[];
116
+ columns: {
117
+ key: string;
118
+ label: string;
119
+ type?: "number" | "text" | "date";
120
+ }[];
121
+ onSearch: (query: string) => void;
122
+ onSort?: (key: string, dir: "asc" | "desc") => void;
123
+ theme?: "light" | "dark";
124
+ language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
125
+ }
126
+ declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
127
+
114
128
  interface GridColumn<T = Record<string, unknown>> {
115
129
  /** Unique key — must match a property in your data */
116
130
  key: keyof T & string;
@@ -227,8 +241,6 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
227
241
  className?: string;
228
242
  }
229
243
 
230
- declare function YuktaiGrid<T extends Record<string, unknown>>(props: YuktaiGridProps<T>): react_jsx_runtime.JSX.Element;
231
-
232
244
  interface UseGridOptions<T> {
233
245
  data: T[];
234
246
  columns: GridColumn<T>[];