componentes-sinco 1.0.10 → 1.0.11

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
@@ -1,11 +1,32 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ComponentType, ReactNode } from 'react';
3
+ import * as _mui_material from '@mui/material';
4
+ import { SxProps } from '@mui/material';
3
5
  import * as Muicon from '@mui/icons-material';
4
6
  import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
5
- import * as _mui_material from '@mui/material';
6
7
  import dayjs, { Dayjs } from 'dayjs';
7
8
  import * as _mui_material_styles from '@mui/material/styles';
8
9
 
10
+ interface UploadedFile {
11
+ name: string;
12
+ size: number;
13
+ type: string;
14
+ progress: number;
15
+ uploadError?: boolean;
16
+ }
17
+ interface AdjuntarProps<T> {
18
+ sx?: SxProps;
19
+ files?: T[];
20
+ error?: boolean;
21
+ compact?: boolean;
22
+ maxSize?: number;
23
+ fileAccepted?: string;
24
+ onClick?: () => void;
25
+ onChange?: (archivos: UploadedFile[] | T[]) => void;
26
+ }
27
+
28
+ declare const Adjuntar: <T>({ sx, compact, error, onChange, maxSize, fileAccepted, }: AdjuntarProps<T>) => React__default.JSX.Element;
29
+
9
30
  type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
10
31
  type ReplyTextPalette = "primary" | "secondary" | "disabled";
11
32
  type ReplyVariants = "outlined" | "filled" | "standard";
@@ -525,4 +546,4 @@ declare const SincoTheme: _mui_material_styles.Theme;
525
546
  declare let AdproSincoTheme: _mui_material_styles.Theme;
526
547
  declare let ADCSincoTheme: _mui_material_styles.Theme;
527
548
 
528
- export { ADCSincoTheme, AdproSincoTheme, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, PageHeader, type PageheaderProperties, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyButtonVariants, SCAutocomplete, SCCalendarSwipeable, SCCard, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCTime, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
549
+ export { ADCSincoTheme, Adjuntar, AdproSincoTheme, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, PageHeader, type PageheaderProperties, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyButtonVariants, SCAutocomplete, SCCalendarSwipeable, SCCard, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCTime, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,32 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ComponentType, ReactNode } from 'react';
3
+ import * as _mui_material from '@mui/material';
4
+ import { SxProps } from '@mui/material';
3
5
  import * as Muicon from '@mui/icons-material';
4
6
  import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
5
- import * as _mui_material from '@mui/material';
6
7
  import dayjs, { Dayjs } from 'dayjs';
7
8
  import * as _mui_material_styles from '@mui/material/styles';
8
9
 
10
+ interface UploadedFile {
11
+ name: string;
12
+ size: number;
13
+ type: string;
14
+ progress: number;
15
+ uploadError?: boolean;
16
+ }
17
+ interface AdjuntarProps<T> {
18
+ sx?: SxProps;
19
+ files?: T[];
20
+ error?: boolean;
21
+ compact?: boolean;
22
+ maxSize?: number;
23
+ fileAccepted?: string;
24
+ onClick?: () => void;
25
+ onChange?: (archivos: UploadedFile[] | T[]) => void;
26
+ }
27
+
28
+ declare const Adjuntar: <T>({ sx, compact, error, onChange, maxSize, fileAccepted, }: AdjuntarProps<T>) => React__default.JSX.Element;
29
+
9
30
  type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
10
31
  type ReplyTextPalette = "primary" | "secondary" | "disabled";
11
32
  type ReplyVariants = "outlined" | "filled" | "standard";
@@ -525,4 +546,4 @@ declare const SincoTheme: _mui_material_styles.Theme;
525
546
  declare let AdproSincoTheme: _mui_material_styles.Theme;
526
547
  declare let ADCSincoTheme: _mui_material_styles.Theme;
527
548
 
528
- export { ADCSincoTheme, AdproSincoTheme, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, PageHeader, type PageheaderProperties, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyButtonVariants, SCAutocomplete, SCCalendarSwipeable, SCCard, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCTime, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
549
+ export { ADCSincoTheme, Adjuntar, AdproSincoTheme, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, PageHeader, type PageheaderProperties, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyButtonVariants, SCAutocomplete, SCCalendarSwipeable, SCCard, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCTime, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };