componentes-sinco 1.0.5 → 1.0.7

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
@@ -3,7 +3,7 @@ import React__default, { ComponentType, ReactNode } from 'react';
3
3
  import * as Muicon from '@mui/icons-material';
4
4
  import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
5
5
  import * as _mui_material from '@mui/material';
6
- import { Dayjs } from 'dayjs';
6
+ import dayjs, { Dayjs } from 'dayjs';
7
7
  import * as _mui_material_styles from '@mui/material/styles';
8
8
 
9
9
  type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
@@ -457,8 +457,28 @@ interface SCTabsProps {
457
457
  }
458
458
  declare const SCTabs: ({ options, defaultOption, typeIcon, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }: SCTabsProps) => React__default.JSX.Element;
459
459
 
460
+ type CalendarView = 'month' | 'week' | 'day';
461
+ interface CalendarEvent {
462
+ id: string;
463
+ title: string;
464
+ start: dayjs.Dayjs;
465
+ end: dayjs.Dayjs;
466
+ state: 'EnProgreso' | 'Finalizado' | 'Vencida' | 'Asignada';
467
+ }
468
+ interface CalendarProps {
469
+ events: CalendarEvent[];
470
+ view?: CalendarView;
471
+ toolbar?: React.ReactNode;
472
+ onDayClick?: (date: dayjs.Dayjs) => void;
473
+ onMoreClick?: (date: dayjs.Dayjs, events: CalendarEvent[]) => void;
474
+ onViewChange?: (view: CalendarView) => void;
475
+ onEventClick?: (event: CalendarEvent, date?: dayjs.Dayjs) => void;
476
+ }
477
+
478
+ declare const Calendar: React__default.FC<CalendarProps>;
479
+
460
480
  declare const SincoTheme: _mui_material_styles.Theme;
461
481
  declare let AdproSincoTheme: _mui_material_styles.Theme;
462
482
  declare let ADCSincoTheme: _mui_material_styles.Theme;
463
483
 
464
- export { ADCSincoTheme, AdproSincoTheme, 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, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
484
+ 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, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import React__default, { ComponentType, ReactNode } from 'react';
3
3
  import * as Muicon from '@mui/icons-material';
4
4
  import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
5
5
  import * as _mui_material from '@mui/material';
6
- import { Dayjs } from 'dayjs';
6
+ import dayjs, { Dayjs } from 'dayjs';
7
7
  import * as _mui_material_styles from '@mui/material/styles';
8
8
 
9
9
  type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
@@ -457,8 +457,28 @@ interface SCTabsProps {
457
457
  }
458
458
  declare const SCTabs: ({ options, defaultOption, typeIcon, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }: SCTabsProps) => React__default.JSX.Element;
459
459
 
460
+ type CalendarView = 'month' | 'week' | 'day';
461
+ interface CalendarEvent {
462
+ id: string;
463
+ title: string;
464
+ start: dayjs.Dayjs;
465
+ end: dayjs.Dayjs;
466
+ state: 'EnProgreso' | 'Finalizado' | 'Vencida' | 'Asignada';
467
+ }
468
+ interface CalendarProps {
469
+ events: CalendarEvent[];
470
+ view?: CalendarView;
471
+ toolbar?: React.ReactNode;
472
+ onDayClick?: (date: dayjs.Dayjs) => void;
473
+ onMoreClick?: (date: dayjs.Dayjs, events: CalendarEvent[]) => void;
474
+ onViewChange?: (view: CalendarView) => void;
475
+ onEventClick?: (event: CalendarEvent, date?: dayjs.Dayjs) => void;
476
+ }
477
+
478
+ declare const Calendar: React__default.FC<CalendarProps>;
479
+
460
480
  declare const SincoTheme: _mui_material_styles.Theme;
461
481
  declare let AdproSincoTheme: _mui_material_styles.Theme;
462
482
  declare let ADCSincoTheme: _mui_material_styles.Theme;
463
483
 
464
- export { ADCSincoTheme, AdproSincoTheme, 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, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
484
+ 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, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };