@yuktishaalaa/yuktai 4.2.0 → 4.4.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,7 +111,7 @@ declare const voicePlugin: {
111
111
  execute(input: string): Promise<string>;
112
112
  };
113
113
 
114
- interface YuktaiGridAIProps<T> {
114
+ interface YuktaiGridAIProps$1<T> {
115
115
  data: T[];
116
116
  columns: {
117
117
  key: string;
@@ -123,7 +123,7 @@ interface YuktaiGridAIProps<T> {
123
123
  theme?: "light" | "dark";
124
124
  language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
125
125
  }
126
- declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
126
+ declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps$1<T>): react_jsx_runtime.JSX.Element;
127
127
 
128
128
  interface GridColumn<T = Record<string, unknown>> {
129
129
  /** Unique key — must match a property in your data */
@@ -266,6 +266,19 @@ interface UseGridReturn<T> {
266
266
  }
267
267
  declare function useGrid<T extends Record<string, unknown>>(options: UseGridOptions<T>): UseGridReturn<T>;
268
268
 
269
+ interface YuktaiGridAIProps<T> {
270
+ data: T[];
271
+ columns: {
272
+ key: string;
273
+ label: string;
274
+ type?: "number" | "text" | "date";
275
+ }[];
276
+ onSearch: (query: string) => void;
277
+ onSort?: (key: string, dir: "asc" | "desc") => void;
278
+ theme?: "light" | "dark";
279
+ language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
280
+ }
281
+
269
282
  interface IconProps extends React.SVGAttributes<SVGSVGElement> {
270
283
  /** Size in pixels — applied to both width and height. Default: 20 */
271
284
  size?: number | string;
@@ -331,4 +344,4 @@ declare const YuktAI: {
331
344
  scan(): A11yReport;
332
345
  };
333
346
 
334
- export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, type GridTranslations, IconBase, type IconProps, type PaginationConfig, Runtime, SearchIcon, type Severity, type SortConfig, type SortDirection, SortDownIcon, SortUpIcon, type ViewMode, type VoiceFeatures, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, YuktaiGrid, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
347
+ export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, type GridTranslations, IconBase, type IconProps, type PaginationConfig, Runtime, SearchIcon, type Severity, type SortConfig, type SortDirection, SortDownIcon, SortUpIcon, type ViewMode, type VoiceFeatures, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, YuktaiGrid, type YuktaiGridAIProps, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
package/dist/index.d.ts CHANGED
@@ -111,7 +111,7 @@ declare const voicePlugin: {
111
111
  execute(input: string): Promise<string>;
112
112
  };
113
113
 
114
- interface YuktaiGridAIProps<T> {
114
+ interface YuktaiGridAIProps$1<T> {
115
115
  data: T[];
116
116
  columns: {
117
117
  key: string;
@@ -123,7 +123,7 @@ interface YuktaiGridAIProps<T> {
123
123
  theme?: "light" | "dark";
124
124
  language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
125
125
  }
126
- declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
126
+ declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps$1<T>): react_jsx_runtime.JSX.Element;
127
127
 
128
128
  interface GridColumn<T = Record<string, unknown>> {
129
129
  /** Unique key — must match a property in your data */
@@ -266,6 +266,19 @@ interface UseGridReturn<T> {
266
266
  }
267
267
  declare function useGrid<T extends Record<string, unknown>>(options: UseGridOptions<T>): UseGridReturn<T>;
268
268
 
269
+ interface YuktaiGridAIProps<T> {
270
+ data: T[];
271
+ columns: {
272
+ key: string;
273
+ label: string;
274
+ type?: "number" | "text" | "date";
275
+ }[];
276
+ onSearch: (query: string) => void;
277
+ onSort?: (key: string, dir: "asc" | "desc") => void;
278
+ theme?: "light" | "dark";
279
+ language?: "en-US" | "en-IN" | "hi-IN" | "te-IN";
280
+ }
281
+
269
282
  interface IconProps extends React.SVGAttributes<SVGSVGElement> {
270
283
  /** Size in pixels — applied to both width and height. Default: 20 */
271
284
  size?: number | string;
@@ -331,4 +344,4 @@ declare const YuktAI: {
331
344
  scan(): A11yReport;
332
345
  };
333
346
 
334
- export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, type GridTranslations, IconBase, type IconProps, type PaginationConfig, Runtime, SearchIcon, type Severity, type SortConfig, type SortDirection, SortDownIcon, SortUpIcon, type ViewMode, type VoiceFeatures, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, YuktaiGrid, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
347
+ export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, CheckIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, type GridTranslations, IconBase, type IconProps, type PaginationConfig, Runtime, SearchIcon, type Severity, type SortConfig, type SortDirection, SortDownIcon, SortUpIcon, type ViewMode, type VoiceFeatures, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, YuktaiGrid, type YuktaiGridAIProps, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuktishaalaa/yuktai",
3
- "version": "4.2.0",
3
+ "version": "4.4.0",
4
4
  "description": "Universal runtime accessibility plugin — auto-fixes WCAG 2.2 violations with on-device AI features. Zero API keys.",
5
5
  "author": "Sandeep Miriyala — Yuktishaalaa AI Lab",
6
6
  "license": "ISC",