ikon-react-components-lib 1.0.3 → 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
|
@@ -309,6 +309,13 @@ export declare function CollapsibleContent({ ...props }: React.ComponentProps<ty
|
|
|
309
309
|
|
|
310
310
|
export declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): JSX.Element;
|
|
311
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
|
+
|
|
312
319
|
export declare function ComboboxInput({ placeholder, items, disabled, onSelect, defaultValue }: ComboBoxInputProps): JSX.Element;
|
|
313
320
|
|
|
314
321
|
export declare interface ComboBoxInputProps {
|
|
@@ -435,6 +442,24 @@ export declare interface DataTableFilterProps<TData> {
|
|
|
435
442
|
table: Table_2<TData>;
|
|
436
443
|
}
|
|
437
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
|
+
|
|
438
463
|
export declare function DataTablePagination<TData>({ table, extraParams, }: DataTablePaginationProps<TData>): JSX.Element;
|
|
439
464
|
|
|
440
465
|
export declare interface DataTablePaginationProps<TData> {
|
|
@@ -1069,6 +1094,14 @@ declare interface RefreshContextType {
|
|
|
1069
1094
|
refreshCounter: number;
|
|
1070
1095
|
}
|
|
1071
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
|
+
|
|
1072
1105
|
export declare function RenderAppBreadcrumb({ breadcrumb, }: {
|
|
1073
1106
|
breadcrumb: BreadcrumbItemProps;
|
|
1074
1107
|
}): 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.
|
|
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",
|
|
@@ -74,10 +74,12 @@
|
|
|
74
74
|
"react-hook-form": "^7.71.1",
|
|
75
75
|
"react-resizable-panels": "^4.6.4",
|
|
76
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",
|