ikon-react-components-lib 1.0.2 → 1.0.4

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.ts CHANGED
@@ -2,6 +2,7 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
3
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
4
4
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
+ import { AxiosInstance } from 'axios';
5
6
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
6
7
  import { ClassProp } from 'class-variance-authority/types';
7
8
  import { ClassValue } from 'clsx';
@@ -184,6 +185,8 @@ export declare function AvatarGroupCount({ className, ...props }: React_2.Compon
184
185
 
185
186
  export declare function AvatarImage({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Image>): JSX.Element;
186
187
 
188
+ export declare const axiosInstance: AxiosInstance;
189
+
187
190
  export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
188
191
  asChild?: boolean;
189
192
  }): JSX.Element;
@@ -306,6 +309,13 @@ export declare function CollapsibleContent({ ...props }: React.ComponentProps<ty
306
309
 
307
310
  export declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): JSX.Element;
308
311
 
312
+ export declare type ColumnsProps<TData, TValue = unknown> = ColumnDef<TData, TValue> & {
313
+ header: string | (() => React.ReactNode);
314
+ accessorKey?: keyof TData;
315
+ cell?: (row: TData) => React.ReactNode;
316
+ footer?: (row: TData) => React.ReactNode;
317
+ };
318
+
309
319
  export declare function ComboboxInput({ placeholder, items, disabled, onSelect, defaultValue }: ComboBoxInputProps): JSX.Element;
310
320
 
311
321
  export declare interface ComboBoxInputProps {
@@ -432,6 +442,24 @@ export declare interface DataTableFilterProps<TData> {
432
442
  table: Table_2<TData>;
433
443
  }
434
444
 
445
+ export declare function DataTableLayout<T>({ data, columns, totalPages, actionNode, toggleViewMode, gridComponent, isLoading, onReload, filterComponent, hiddenColumns }: DataTableLayoutProps<T>): JSX.Element;
446
+
447
+ export declare interface DataTableLayoutProps<T> {
448
+ data: T[];
449
+ columns: ColumnsProps<T, unknown>[];
450
+ totalPages: number;
451
+ toggleViewMode?: boolean;
452
+ hiddenColumns?: string[];
453
+ filterComponent?: React.ReactNode;
454
+ actionNode?: React.ReactNode;
455
+ onRowClick?: (row: T) => void;
456
+ gridComponent?: (data: T[]) => React.ReactNode;
457
+ isLoading?: boolean;
458
+ onReload?: () => void;
459
+ showFooter?: boolean;
460
+ footerLabel?: string;
461
+ }
462
+
435
463
  export declare function DataTablePagination<TData>({ table, extraParams, }: DataTablePaginationProps<TData>): JSX.Element;
436
464
 
437
465
  export declare interface DataTablePaginationProps<TData> {
@@ -1066,10 +1094,24 @@ declare interface RefreshContextType {
1066
1094
  refreshCounter: number;
1067
1095
  }
1068
1096
 
1097
+ export declare function Reload({ isLoading, onReload, errorMessage, }: ReloadProps): JSX.Element | null;
1098
+
1099
+ declare interface ReloadProps {
1100
+ isLoading: boolean;
1101
+ onReload?: () => void;
1102
+ errorMessage?: string;
1103
+ }
1104
+
1069
1105
  export declare function RenderAppBreadcrumb({ breadcrumb, }: {
1070
1106
  breadcrumb: BreadcrumbItemProps;
1071
1107
  }): JSX.Element;
1072
1108
 
1109
+ export declare function RenderSidebarNav({ items, sidebarHeader, sidebarFooter, }: {
1110
+ items: SidebarNavItem[];
1111
+ sidebarHeader?: ReactNode;
1112
+ sidebarFooter?: ReactNode;
1113
+ }): null;
1114
+
1073
1115
  export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
1074
1116
 
1075
1117
  export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ikon-react-components-lib",
3
3
  "private": false,
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "type": "module",
6
6
  "main": "./dist/ikon-react-components-lib.cjs.js",
7
7
  "module": "./dist/ikon-react-components-lib.es.js",
@@ -73,11 +73,13 @@
73
73
  "react-dom": "^19.2.0",
74
74
  "react-hook-form": "^7.71.1",
75
75
  "react-resizable-panels": "^4.6.4",
76
- "react-router-dom": "^7.13.0",
76
+ "react-router": "^7.13.1",
77
+ "react-router-dom": "^7.13.2",
77
78
  "recharts": "^2.15.4",
78
79
  "remark-gfm": "^4.0.1",
79
80
  "sonner": "^2.0.7",
80
81
  "tailwind-merge": "^3.5.0",
82
+ "use-debounce": "^10.1.1",
81
83
  "uuid": "^13.0.0",
82
84
  "vaul": "^1.1.2",
83
85
  "zod": "^4.3.6",