componentes-sinco 1.2.7 → 1.2.9
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 +2515 -2453
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -13
- package/dist/index.d.ts +8 -13
- package/dist/index.js +1611 -1549
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -69,9 +69,10 @@ interface AttachmentMobileProps<T> {
|
|
|
69
69
|
downloadAction?: (file: UploadedFile) => Promise<void> | void;
|
|
70
70
|
view?: 'file' | 'button';
|
|
71
71
|
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
72
|
+
onFileClick?: (file: UploadedFile) => void;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, iconFileItem, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
75
|
+
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, iconFileItem, onFileClick, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
75
76
|
|
|
76
77
|
type CalendarView = 'month' | 'week' | 'day';
|
|
77
78
|
type EventState = 'En progreso' | 'Finalizada' | 'Vencida' | 'Asignada' | 'Aplazada' | 'Generada';
|
|
@@ -547,21 +548,15 @@ interface SCCardProps {
|
|
|
547
548
|
title?: string;
|
|
548
549
|
subtitle?: string;
|
|
549
550
|
iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
|
|
550
|
-
actionsTitle?: any;
|
|
551
|
+
actionsTitle?: any | "expand";
|
|
552
|
+
dividerHeader?: boolean;
|
|
551
553
|
image?: any;
|
|
552
554
|
content?: any;
|
|
553
|
-
actions?:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
disabled?: boolean;
|
|
557
|
-
}[];
|
|
558
|
-
expand?: {
|
|
559
|
-
type?: 'icon' | 'text';
|
|
560
|
-
position?: 'top' | 'bottom';
|
|
561
|
-
content?: string;
|
|
562
|
-
};
|
|
555
|
+
actions?: any;
|
|
556
|
+
dividerActions?: boolean;
|
|
557
|
+
contentExpand?: any;
|
|
563
558
|
}
|
|
564
|
-
declare const SCCard: ({ width, title, image, iconTitle, actionsTitle, subtitle, content, actions,
|
|
559
|
+
declare const SCCard: ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerHeader, content, actions, dividerActions, contentExpand }: SCCardProps) => React__default.JSX.Element;
|
|
565
560
|
|
|
566
561
|
interface SCDataGridInitialProps<T> {
|
|
567
562
|
data: T[];
|
package/dist/index.d.ts
CHANGED
|
@@ -69,9 +69,10 @@ interface AttachmentMobileProps<T> {
|
|
|
69
69
|
downloadAction?: (file: UploadedFile) => Promise<void> | void;
|
|
70
70
|
view?: 'file' | 'button';
|
|
71
71
|
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
72
|
+
onFileClick?: (file: UploadedFile) => void;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, iconFileItem, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
75
|
+
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, iconFileItem, onFileClick, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
75
76
|
|
|
76
77
|
type CalendarView = 'month' | 'week' | 'day';
|
|
77
78
|
type EventState = 'En progreso' | 'Finalizada' | 'Vencida' | 'Asignada' | 'Aplazada' | 'Generada';
|
|
@@ -547,21 +548,15 @@ interface SCCardProps {
|
|
|
547
548
|
title?: string;
|
|
548
549
|
subtitle?: string;
|
|
549
550
|
iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
|
|
550
|
-
actionsTitle?: any;
|
|
551
|
+
actionsTitle?: any | "expand";
|
|
552
|
+
dividerHeader?: boolean;
|
|
551
553
|
image?: any;
|
|
552
554
|
content?: any;
|
|
553
|
-
actions?:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
disabled?: boolean;
|
|
557
|
-
}[];
|
|
558
|
-
expand?: {
|
|
559
|
-
type?: 'icon' | 'text';
|
|
560
|
-
position?: 'top' | 'bottom';
|
|
561
|
-
content?: string;
|
|
562
|
-
};
|
|
555
|
+
actions?: any;
|
|
556
|
+
dividerActions?: boolean;
|
|
557
|
+
contentExpand?: any;
|
|
563
558
|
}
|
|
564
|
-
declare const SCCard: ({ width, title, image, iconTitle, actionsTitle, subtitle, content, actions,
|
|
559
|
+
declare const SCCard: ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerHeader, content, actions, dividerActions, contentExpand }: SCCardProps) => React__default.JSX.Element;
|
|
565
560
|
|
|
566
561
|
interface SCDataGridInitialProps<T> {
|
|
567
562
|
data: T[];
|