ikon-react-components-lib 1.0.3 → 1.0.5
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,15 @@ 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
|
+
filterFns?: string | "multiSelect";
|
|
318
|
+
draggable?: boolean | undefined;
|
|
319
|
+
};
|
|
320
|
+
|
|
312
321
|
export declare function ComboboxInput({ placeholder, items, disabled, onSelect, defaultValue }: ComboBoxInputProps): JSX.Element;
|
|
313
322
|
|
|
314
323
|
export declare interface ComboBoxInputProps {
|
|
@@ -435,6 +444,14 @@ export declare interface DataTableFilterProps<TData> {
|
|
|
435
444
|
table: Table_2<TData>;
|
|
436
445
|
}
|
|
437
446
|
|
|
447
|
+
export declare function DataTableLayout<T>({ data, columns, extraTools }: DataTableLayoutProps<T>): JSX.Element;
|
|
448
|
+
|
|
449
|
+
export declare interface DataTableLayoutProps<T> {
|
|
450
|
+
data: T[];
|
|
451
|
+
columns: ColumnsProps<T, unknown>[];
|
|
452
|
+
extraTools?: ExtraPrams<T>;
|
|
453
|
+
}
|
|
454
|
+
|
|
438
455
|
export declare function DataTablePagination<TData>({ table, extraParams, }: DataTablePaginationProps<TData>): JSX.Element;
|
|
439
456
|
|
|
440
457
|
export declare interface DataTablePaginationProps<TData> {
|
|
@@ -617,6 +634,19 @@ export declare interface ExtraParamsEvent {
|
|
|
617
634
|
margin?: string;
|
|
618
635
|
}
|
|
619
636
|
|
|
637
|
+
export declare type ExtraPrams<T> = {
|
|
638
|
+
totalPages: number;
|
|
639
|
+
toggleViewMode?: boolean;
|
|
640
|
+
hiddenColumns?: string[];
|
|
641
|
+
actionNode?: React.ReactNode;
|
|
642
|
+
gridComponent?: (data: T[]) => React.ReactNode;
|
|
643
|
+
isLoading?: boolean;
|
|
644
|
+
onReload?: () => void;
|
|
645
|
+
showFooter?: boolean;
|
|
646
|
+
footerLabel?: string;
|
|
647
|
+
fileName?: string;
|
|
648
|
+
};
|
|
649
|
+
|
|
620
650
|
declare interface FileinfoProps {
|
|
621
651
|
resourceId: string;
|
|
622
652
|
resourceName?: string;
|
|
@@ -1069,6 +1099,14 @@ declare interface RefreshContextType {
|
|
|
1069
1099
|
refreshCounter: number;
|
|
1070
1100
|
}
|
|
1071
1101
|
|
|
1102
|
+
export declare function Reload({ isLoading, onReload, errorMessage, }: ReloadProps): JSX.Element | null;
|
|
1103
|
+
|
|
1104
|
+
export declare interface ReloadProps {
|
|
1105
|
+
isLoading: boolean | undefined;
|
|
1106
|
+
onReload?: () => void;
|
|
1107
|
+
errorMessage?: string;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1072
1110
|
export declare function RenderAppBreadcrumb({ breadcrumb, }: {
|
|
1073
1111
|
breadcrumb: BreadcrumbItemProps;
|
|
1074
1112
|
}): 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.5",
|
|
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,12 +74,15 @@
|
|
|
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",
|
|
85
|
+
"xlsx": "^0.18.5",
|
|
83
86
|
"zod": "^4.3.6",
|
|
84
87
|
"zxcvbn": "^4.4.2"
|
|
85
88
|
},
|