componentes-sinco 1.0.11 → 1.0.13
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 +419 -346
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +392 -319
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -21,11 +21,13 @@ interface AdjuntarProps<T> {
|
|
|
21
21
|
compact?: boolean;
|
|
22
22
|
maxSize?: number;
|
|
23
23
|
fileAccepted?: string;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
onChange?: (archivos: UploadedFile[] | File[]) => void;
|
|
25
|
+
onLoading?: boolean;
|
|
26
|
+
downloadAction?: () => void;
|
|
27
|
+
initialFiles?: UploadedFile[];
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
declare const
|
|
30
|
+
declare const Attachment: <T>({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, initialFiles }: AdjuntarProps<T>) => React__default.JSX.Element;
|
|
29
31
|
|
|
30
32
|
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
|
|
31
33
|
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
@@ -187,7 +189,9 @@ declare const getIconComponent: (iconName?: string) => React.ElementType;
|
|
|
187
189
|
declare const getModalColor: (state: string) => string;
|
|
188
190
|
declare const getButtonColor: (state: string) => 'inherit' | 'info' | 'error' | 'warning';
|
|
189
191
|
|
|
190
|
-
declare const SCModal: ({ buttonModal, state, open, title, description, action, }: ModalProps
|
|
192
|
+
declare const SCModal: ({ buttonModal, state, open, setOpen, title, description, action, }: ModalProps & {
|
|
193
|
+
setOpen?: React__default.Dispatch<React__default.SetStateAction<boolean>> | undefined;
|
|
194
|
+
}) => React__default.JSX.Element;
|
|
191
195
|
|
|
192
196
|
interface MultiSelectProps<T> {
|
|
193
197
|
textButton?: string;
|
|
@@ -546,4 +550,4 @@ declare const SincoTheme: _mui_material_styles.Theme;
|
|
|
546
550
|
declare let AdproSincoTheme: _mui_material_styles.Theme;
|
|
547
551
|
declare let ADCSincoTheme: _mui_material_styles.Theme;
|
|
548
552
|
|
|
549
|
-
export { ADCSincoTheme,
|
|
553
|
+
export { ADCSincoTheme, AdproSincoTheme, Attachment, 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
|
@@ -21,11 +21,13 @@ interface AdjuntarProps<T> {
|
|
|
21
21
|
compact?: boolean;
|
|
22
22
|
maxSize?: number;
|
|
23
23
|
fileAccepted?: string;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
onChange?: (archivos: UploadedFile[] | File[]) => void;
|
|
25
|
+
onLoading?: boolean;
|
|
26
|
+
downloadAction?: () => void;
|
|
27
|
+
initialFiles?: UploadedFile[];
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
declare const
|
|
30
|
+
declare const Attachment: <T>({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, initialFiles }: AdjuntarProps<T>) => React__default.JSX.Element;
|
|
29
31
|
|
|
30
32
|
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
|
|
31
33
|
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
@@ -187,7 +189,9 @@ declare const getIconComponent: (iconName?: string) => React.ElementType;
|
|
|
187
189
|
declare const getModalColor: (state: string) => string;
|
|
188
190
|
declare const getButtonColor: (state: string) => 'inherit' | 'info' | 'error' | 'warning';
|
|
189
191
|
|
|
190
|
-
declare const SCModal: ({ buttonModal, state, open, title, description, action, }: ModalProps
|
|
192
|
+
declare const SCModal: ({ buttonModal, state, open, setOpen, title, description, action, }: ModalProps & {
|
|
193
|
+
setOpen?: React__default.Dispatch<React__default.SetStateAction<boolean>> | undefined;
|
|
194
|
+
}) => React__default.JSX.Element;
|
|
191
195
|
|
|
192
196
|
interface MultiSelectProps<T> {
|
|
193
197
|
textButton?: string;
|
|
@@ -546,4 +550,4 @@ declare const SincoTheme: _mui_material_styles.Theme;
|
|
|
546
550
|
declare let AdproSincoTheme: _mui_material_styles.Theme;
|
|
547
551
|
declare let ADCSincoTheme: _mui_material_styles.Theme;
|
|
548
552
|
|
|
549
|
-
export { ADCSincoTheme,
|
|
553
|
+
export { ADCSincoTheme, AdproSincoTheme, Attachment, 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 };
|