@yuktishaalaa/yuktai 4.0.1 → 4.1.2

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
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
2
+ import React, { ReactNode } from 'react';
3
3
 
4
4
  interface Plugin {
5
5
  name: string;
@@ -254,6 +254,38 @@ interface UseGridReturn<T> {
254
254
  }
255
255
  declare function useGrid<T extends Record<string, unknown>>(options: UseGridOptions<T>): UseGridReturn<T>;
256
256
 
257
+ interface IconProps extends React.SVGAttributes<SVGSVGElement> {
258
+ /** Size in pixels — applied to both width and height. Default: 20 */
259
+ size?: number | string;
260
+ /** Stroke color — defaults to currentColor (inherits from parent) */
261
+ color?: string;
262
+ /** Stroke width override — default: 2.5 */
263
+ strokeWidth?: number;
264
+ /** Accessible label — if provided, icon becomes non-decorative */
265
+ label?: string;
266
+ }
267
+ /**
268
+ * Shared base for all yuktai icons.
269
+ * Children should be SVG path/circle/rect elements.
270
+ */
271
+ declare function IconBase({ size, color, strokeWidth, label, children, ...rest }: IconProps & {
272
+ children: React.ReactNode;
273
+ }): react_jsx_runtime.JSX.Element;
274
+
275
+ declare function SearchIcon(props: IconProps): react_jsx_runtime.JSX.Element;
276
+
277
+ declare function SortUpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
278
+
279
+ declare function SortDownIcon(props: IconProps): react_jsx_runtime.JSX.Element;
280
+
281
+ declare function ChevronLeftIcon(props: IconProps): react_jsx_runtime.JSX.Element;
282
+
283
+ declare function ChevronRightIcon(props: IconProps): react_jsx_runtime.JSX.Element;
284
+
285
+ declare function CheckIcon(props: IconProps): react_jsx_runtime.JSX.Element;
286
+
287
+ declare function CloseIcon(props: IconProps): react_jsx_runtime.JSX.Element;
288
+
257
289
  declare global {
258
290
  var __yuktai_runtime__: Runtime | undefined;
259
291
  }
@@ -287,4 +319,4 @@ declare const YuktAI: {
287
319
  scan(): A11yReport;
288
320
  };
289
321
 
290
- export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, type GridTranslations, type PaginationConfig, Runtime, type Severity, type SortConfig, type SortDirection, type ViewMode, type VoiceFeatures, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, YuktaiGrid, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
322
+ 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 };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
2
+ import React, { ReactNode } from 'react';
3
3
 
4
4
  interface Plugin {
5
5
  name: string;
@@ -254,6 +254,38 @@ interface UseGridReturn<T> {
254
254
  }
255
255
  declare function useGrid<T extends Record<string, unknown>>(options: UseGridOptions<T>): UseGridReturn<T>;
256
256
 
257
+ interface IconProps extends React.SVGAttributes<SVGSVGElement> {
258
+ /** Size in pixels — applied to both width and height. Default: 20 */
259
+ size?: number | string;
260
+ /** Stroke color — defaults to currentColor (inherits from parent) */
261
+ color?: string;
262
+ /** Stroke width override — default: 2.5 */
263
+ strokeWidth?: number;
264
+ /** Accessible label — if provided, icon becomes non-decorative */
265
+ label?: string;
266
+ }
267
+ /**
268
+ * Shared base for all yuktai icons.
269
+ * Children should be SVG path/circle/rect elements.
270
+ */
271
+ declare function IconBase({ size, color, strokeWidth, label, children, ...rest }: IconProps & {
272
+ children: React.ReactNode;
273
+ }): react_jsx_runtime.JSX.Element;
274
+
275
+ declare function SearchIcon(props: IconProps): react_jsx_runtime.JSX.Element;
276
+
277
+ declare function SortUpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
278
+
279
+ declare function SortDownIcon(props: IconProps): react_jsx_runtime.JSX.Element;
280
+
281
+ declare function ChevronLeftIcon(props: IconProps): react_jsx_runtime.JSX.Element;
282
+
283
+ declare function ChevronRightIcon(props: IconProps): react_jsx_runtime.JSX.Element;
284
+
285
+ declare function CheckIcon(props: IconProps): react_jsx_runtime.JSX.Element;
286
+
287
+ declare function CloseIcon(props: IconProps): react_jsx_runtime.JSX.Element;
288
+
257
289
  declare global {
258
290
  var __yuktai_runtime__: Runtime | undefined;
259
291
  }
@@ -287,4 +319,4 @@ declare const YuktAI: {
287
319
  scan(): A11yReport;
288
320
  };
289
321
 
290
- export { type A11yConfig, type A11yFix, type A11yReport, type AIFeatures, type ColorBlindMode, type FilterConfig, type FilterOperator, type GridColumn, type GridLocale, type GridTheme, type GridTranslations, type PaginationConfig, Runtime, type Severity, type SortConfig, type SortDirection, type ViewMode, type VoiceFeatures, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, YuktaiGrid, type YuktaiGridProps, aiPlugin, YuktAIWrapper as default, useGrid, voicePlugin, wcagPlugin as wcag, wcagPlugin };
322
+ 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 };