@yuktishaalaa/yuktai 4.1.4 → 4.3.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 +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +59 -54
- package/dist/index.mjs +33 -28
- package/package.json +1 -1
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>[];
|