@kcndigitals/lib 1.0.5 → 1.0.7
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.cjs +243 -132
- package/dist/index.d.ts +41 -1
- package/dist/index.js +37306 -13560
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ export declare const AutoLogin: ({ onComplete }: {
|
|
|
40
40
|
|
|
41
41
|
declare type ButtonType = 'Save' | 'AddNew' | 'Edit' | 'Delete' | 'Refresh' | 'Display' | '';
|
|
42
42
|
|
|
43
|
+
declare type ChartDataInput = Record<string, string | number>;
|
|
44
|
+
|
|
43
45
|
export declare function clearAllCheckboxes(setters: React.Dispatch<React.SetStateAction<boolean>>[]): void;
|
|
44
46
|
|
|
45
47
|
export declare const clearAllTextFields: () => void;
|
|
@@ -177,7 +179,8 @@ export declare enum LoginTag {
|
|
|
177
179
|
Inventory = "Inventory",
|
|
178
180
|
Stock = "Stock",
|
|
179
181
|
Housing_Society = "Housing_Society",
|
|
180
|
-
Prod_Housing_Society = "PROD_Housing_Society"
|
|
182
|
+
Prod_Housing_Society = "PROD_Housing_Society",
|
|
183
|
+
Prod_Inventory = "PROD_Inventory"
|
|
181
184
|
}
|
|
182
185
|
|
|
183
186
|
export declare const MAIN_MENU_ROUTE = "/mainmenu";
|
|
@@ -215,6 +218,11 @@ export declare const monthList: {
|
|
|
215
218
|
monthName: string;
|
|
216
219
|
}[];
|
|
217
220
|
|
|
221
|
+
declare interface OptionalColumn<T> {
|
|
222
|
+
heading: string;
|
|
223
|
+
dataKey: keyof T;
|
|
224
|
+
}
|
|
225
|
+
|
|
218
226
|
export declare const postRequestOptions: () => {
|
|
219
227
|
crossDomain: boolean;
|
|
220
228
|
method: string;
|
|
@@ -228,6 +236,8 @@ export declare const printToExcel: (Heading: any[], dataToPopulate: any[], sheet
|
|
|
228
236
|
|
|
229
237
|
export declare const PROD_HS_TAG = "PROD_Housing_Society";
|
|
230
238
|
|
|
239
|
+
export declare const PROD_INVENTORY_TAG = "PROD_Inventory";
|
|
240
|
+
|
|
231
241
|
export declare const ProtectedRoute: ({ children }: ProtectedRouteProps) => JSX_2.Element;
|
|
232
242
|
|
|
233
243
|
declare interface ProtectedRouteProps {
|
|
@@ -268,6 +278,36 @@ declare interface ReInputLabelProps {
|
|
|
268
278
|
italic?: boolean;
|
|
269
279
|
}
|
|
270
280
|
|
|
281
|
+
export declare const ReLineChart: <T extends object>({ heading, height, width, data, xAxisDataKey, lineDataKey, tooltipValueFormatter, lineType, strokeColor, strokeWidth, backgroundColor }: ReLineChartProps<T>) => JSX_2.Element;
|
|
282
|
+
|
|
283
|
+
declare interface ReLineChartProps<T extends object> {
|
|
284
|
+
heading: string;
|
|
285
|
+
height: number;
|
|
286
|
+
width?: number | `${number}%`;
|
|
287
|
+
data: T[];
|
|
288
|
+
xAxisDataKey: keyof T;
|
|
289
|
+
lineDataKey: keyof T;
|
|
290
|
+
tooltipValueFormatter?: (value: number) => string;
|
|
291
|
+
lineType?: 'monotone' | 'linear' | 'step' | 'stepBefore' | 'stepAfter';
|
|
292
|
+
strokeColor?: string;
|
|
293
|
+
strokeWidth?: number;
|
|
294
|
+
backgroundColor?: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export declare const RePieChart: <T extends ChartDataInput>({ title, data, dataKey, nameKey, keyHeading, valueHeading, optionalColumn, backgroundColor, colors, }: RePieChartProps<T>) => JSX_2.Element;
|
|
298
|
+
|
|
299
|
+
declare interface RePieChartProps<T extends ChartDataInput> {
|
|
300
|
+
title: string;
|
|
301
|
+
data: T[];
|
|
302
|
+
dataKey: keyof T;
|
|
303
|
+
nameKey: keyof T;
|
|
304
|
+
backgroundColor?: string;
|
|
305
|
+
colors?: string[];
|
|
306
|
+
keyHeading: string;
|
|
307
|
+
optionalColumn?: OptionalColumn<T>;
|
|
308
|
+
valueHeading: string;
|
|
309
|
+
}
|
|
310
|
+
|
|
271
311
|
export declare function ReSelect<T>({ id, value, options, getOptionLabel, getOptionValue, onChange, width, disabled, sx, ...rest }: ReSelectProps<T>): JSX_2.Element;
|
|
272
312
|
|
|
273
313
|
declare interface ReSelectProps<T> extends Omit<SelectProps, 'value' | 'onChange' | 'children'> {
|