componentes-sinco 1.2.6 → 1.2.8

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.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';
@@ -215,6 +216,7 @@ interface DrawerProps<T> {
215
216
  heightDrawer?: number;
216
217
  filterSideCard?: any;
217
218
  onChipDelete?: (element: any) => void;
219
+ type?: "Drawer" | "Sidecar" | "Swipeable";
218
220
  }
219
221
 
220
222
  type ToastType = 'success' | 'error' | 'warning' | 'info';
@@ -241,7 +243,7 @@ declare const ToastProgress: (timeProgress: number) => {
241
243
  progressToast: number;
242
244
  };
243
245
 
244
- declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, setOpen, chipFilters, heightDrawer, filterSideCard, onChipDelete, }: DrawerProps<T>): React__default.JSX.Element;
246
+ declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, setOpen, chipFilters, heightDrawer, filterSideCard, type, onChipDelete, }: DrawerProps<T>): React__default.JSX.Element;
245
247
 
246
248
  type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
247
249
  type EmptyStateSize = 'small' | 'large';
@@ -455,7 +457,7 @@ interface SCTextFieldProps {
455
457
  declare const SCTextField: ({ title, iconTitle, infoTitle, label, placeholder, infoElement, iconInputStart, iconInputEnd, maxLength, variant, format, disabled, required, size, width, color, background, setState, state, onChange, onBlur, onKeyDown, }: SCTextFieldProps) => React__default.JSX.Element;
456
458
 
457
459
  interface SCAccordionProps {
458
- title?: string;
460
+ title?: string | React__default.ReactNode;
459
461
  actions?: React__default.ReactNode;
460
462
  children?: any;
461
463
  }
@@ -546,21 +548,15 @@ interface SCCardProps {
546
548
  title?: string;
547
549
  subtitle?: string;
548
550
  iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
549
- actionsTitle?: any;
551
+ actionsTitle?: any | "expand";
552
+ dividerHeader?: boolean;
550
553
  image?: any;
551
554
  content?: any;
552
- actions?: {
553
- text?: string;
554
- fn: () => void;
555
- disabled?: boolean;
556
- }[];
557
- expand?: {
558
- type?: 'icon' | 'text';
559
- position?: 'top' | 'bottom';
560
- content?: string;
561
- };
555
+ actions?: any;
556
+ dividerActions?: boolean;
557
+ contentExpand?: any;
562
558
  }
563
- declare const SCCard: ({ width, title, image, iconTitle, actionsTitle, subtitle, content, actions, expand }: SCCardProps) => React__default.JSX.Element;
559
+ declare const SCCard: ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerHeader, content, actions, dividerActions, contentExpand }: SCCardProps) => React__default.JSX.Element;
564
560
 
565
561
  interface SCDataGridInitialProps<T> {
566
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';
@@ -215,6 +216,7 @@ interface DrawerProps<T> {
215
216
  heightDrawer?: number;
216
217
  filterSideCard?: any;
217
218
  onChipDelete?: (element: any) => void;
219
+ type?: "Drawer" | "Sidecar" | "Swipeable";
218
220
  }
219
221
 
220
222
  type ToastType = 'success' | 'error' | 'warning' | 'info';
@@ -241,7 +243,7 @@ declare const ToastProgress: (timeProgress: number) => {
241
243
  progressToast: number;
242
244
  };
243
245
 
244
- declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, setOpen, chipFilters, heightDrawer, filterSideCard, onChipDelete, }: DrawerProps<T>): React__default.JSX.Element;
246
+ declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, setOpen, chipFilters, heightDrawer, filterSideCard, type, onChipDelete, }: DrawerProps<T>): React__default.JSX.Element;
245
247
 
246
248
  type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
247
249
  type EmptyStateSize = 'small' | 'large';
@@ -455,7 +457,7 @@ interface SCTextFieldProps {
455
457
  declare const SCTextField: ({ title, iconTitle, infoTitle, label, placeholder, infoElement, iconInputStart, iconInputEnd, maxLength, variant, format, disabled, required, size, width, color, background, setState, state, onChange, onBlur, onKeyDown, }: SCTextFieldProps) => React__default.JSX.Element;
456
458
 
457
459
  interface SCAccordionProps {
458
- title?: string;
460
+ title?: string | React__default.ReactNode;
459
461
  actions?: React__default.ReactNode;
460
462
  children?: any;
461
463
  }
@@ -546,21 +548,15 @@ interface SCCardProps {
546
548
  title?: string;
547
549
  subtitle?: string;
548
550
  iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
549
- actionsTitle?: any;
551
+ actionsTitle?: any | "expand";
552
+ dividerHeader?: boolean;
550
553
  image?: any;
551
554
  content?: any;
552
- actions?: {
553
- text?: string;
554
- fn: () => void;
555
- disabled?: boolean;
556
- }[];
557
- expand?: {
558
- type?: 'icon' | 'text';
559
- position?: 'top' | 'bottom';
560
- content?: string;
561
- };
555
+ actions?: any;
556
+ dividerActions?: boolean;
557
+ contentExpand?: any;
562
558
  }
563
- declare const SCCard: ({ width, title, image, iconTitle, actionsTitle, subtitle, content, actions, expand }: SCCardProps) => React__default.JSX.Element;
559
+ declare const SCCard: ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerHeader, content, actions, dividerActions, contentExpand }: SCCardProps) => React__default.JSX.Element;
564
560
 
565
561
  interface SCDataGridInitialProps<T> {
566
562
  data: T[];