componentes-sinco 1.1.30 → 1.1.31
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 +69 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +96 -78
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -26,9 +26,10 @@ interface AttachmentProps<T> {
|
|
|
26
26
|
downloadAction?: (name: string) => void;
|
|
27
27
|
deleteAction?: (name: string) => Promise<void> | void;
|
|
28
28
|
initialFiles?: UploadedFile$1[];
|
|
29
|
+
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, }: AttachmentProps<any>) => React__default.JSX.Element;
|
|
32
|
+
declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, iconFileItem, }: AttachmentProps<any>) => React__default.JSX.Element;
|
|
32
33
|
|
|
33
34
|
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
|
|
34
35
|
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
@@ -66,9 +67,10 @@ interface AttachmentMobileProps<T> {
|
|
|
66
67
|
deleteAction?: (name: string) => Promise<void> | void;
|
|
67
68
|
downloadAction?: (file: UploadedFile) => Promise<void> | void;
|
|
68
69
|
view?: 'file' | 'button';
|
|
70
|
+
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
73
|
+
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, iconFileItem, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
72
74
|
|
|
73
75
|
type CalendarView = 'month' | 'week' | 'day';
|
|
74
76
|
type EventState = 'En progreso' | 'Finalizada' | 'Vencida' | 'Asignada' | 'Aplazada' | 'Generada';
|
|
@@ -563,13 +565,14 @@ interface SCDataGridInitialProps<T> {
|
|
|
563
565
|
maxHeight?: number;
|
|
564
566
|
density?: "compact" | "standard" | "comfortable";
|
|
565
567
|
disableColumnMenu?: boolean;
|
|
568
|
+
disableHeader?: boolean;
|
|
566
569
|
disableColumnSorting?: boolean;
|
|
567
570
|
setSelectedIndex?: (index: number) => void;
|
|
568
571
|
selectedIndex?: number;
|
|
569
572
|
setSelectedRow?: (any: any) => void;
|
|
570
573
|
selectedRow?: any;
|
|
571
574
|
}
|
|
572
|
-
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
575
|
+
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableHeader, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
573
576
|
declare const SCDataGrid: React__default.MemoExoticComponent<typeof SCDataGridInitial>;
|
|
574
577
|
|
|
575
578
|
interface SCDatePickerProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -26,9 +26,10 @@ interface AttachmentProps<T> {
|
|
|
26
26
|
downloadAction?: (name: string) => void;
|
|
27
27
|
deleteAction?: (name: string) => Promise<void> | void;
|
|
28
28
|
initialFiles?: UploadedFile$1[];
|
|
29
|
+
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, }: AttachmentProps<any>) => React__default.JSX.Element;
|
|
32
|
+
declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, iconFileItem, }: AttachmentProps<any>) => React__default.JSX.Element;
|
|
32
33
|
|
|
33
34
|
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
|
|
34
35
|
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
@@ -66,9 +67,10 @@ interface AttachmentMobileProps<T> {
|
|
|
66
67
|
deleteAction?: (name: string) => Promise<void> | void;
|
|
67
68
|
downloadAction?: (file: UploadedFile) => Promise<void> | void;
|
|
68
69
|
view?: 'file' | 'button';
|
|
70
|
+
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
73
|
+
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, iconFileItem, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
72
74
|
|
|
73
75
|
type CalendarView = 'month' | 'week' | 'day';
|
|
74
76
|
type EventState = 'En progreso' | 'Finalizada' | 'Vencida' | 'Asignada' | 'Aplazada' | 'Generada';
|
|
@@ -563,13 +565,14 @@ interface SCDataGridInitialProps<T> {
|
|
|
563
565
|
maxHeight?: number;
|
|
564
566
|
density?: "compact" | "standard" | "comfortable";
|
|
565
567
|
disableColumnMenu?: boolean;
|
|
568
|
+
disableHeader?: boolean;
|
|
566
569
|
disableColumnSorting?: boolean;
|
|
567
570
|
setSelectedIndex?: (index: number) => void;
|
|
568
571
|
selectedIndex?: number;
|
|
569
572
|
setSelectedRow?: (any: any) => void;
|
|
570
573
|
selectedRow?: any;
|
|
571
574
|
}
|
|
572
|
-
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
575
|
+
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableHeader, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
573
576
|
declare const SCDataGrid: React__default.MemoExoticComponent<typeof SCDataGridInitial>;
|
|
574
577
|
|
|
575
578
|
interface SCDatePickerProps {
|