@esperanca-ui/componentes 2.14.22 → 2.14.23

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.
@@ -35,6 +35,15 @@ export interface GanttChartGroup {
35
35
  meta?: React.ReactNode;
36
36
  color?: string;
37
37
  }
38
+ export interface GanttChartDayHighlight {
39
+ date: GanttChartDateValue;
40
+ endDate?: GanttChartDateValue;
41
+ color: string;
42
+ label?: React.ReactNode;
43
+ background?: string;
44
+ borderColor?: string;
45
+ textColor?: string;
46
+ }
38
47
  export interface GanttChartRenderContext {
39
48
  view: GanttChartView;
40
49
  anchorDate: Date;
@@ -53,6 +62,7 @@ export interface GanttChartProps extends Omit<CardProps, 'children'> {
53
62
  heading?: React.ReactNode;
54
63
  description?: React.ReactNode;
55
64
  emptyLabel?: React.ReactNode;
65
+ dayHighlights?: GanttChartDayHighlight[];
56
66
  showViewSwitcher?: boolean;
57
67
  views?: GanttChartView[];
58
68
  leftColumnWidth?: number;
@@ -28,6 +28,15 @@ export interface TaskCalendarItem {
28
28
  monthAssignee?: React.ReactNode;
29
29
  monthProject?: React.ReactNode;
30
30
  }
31
+ export interface TaskCalendarDayHighlight {
32
+ date: TaskCalendarDateValue;
33
+ endDate?: TaskCalendarDateValue;
34
+ color: string;
35
+ label?: React.ReactNode;
36
+ background?: string;
37
+ borderColor?: string;
38
+ textColor?: string;
39
+ }
31
40
  export interface TaskCalendarRenderContext {
32
41
  date: Date;
33
42
  isOutsideMonth: boolean;
@@ -54,6 +63,7 @@ export interface TaskCalendarProps extends Omit<CardProps, 'children'> {
54
63
  heading?: React.ReactNode;
55
64
  description?: React.ReactNode;
56
65
  emptyLabel?: React.ReactNode;
66
+ dayHighlights?: TaskCalendarDayHighlight[];
57
67
  renderTask?: (task: TaskCalendarItem, context: TaskCalendarRenderContext) => React.ReactNode;
58
68
  showViewSwitcher?: boolean;
59
69
  views?: TaskCalendarView[];
package/dist/index.d.ts CHANGED
@@ -54,8 +54,8 @@ export type { ChartBaseProps, ChartCurve, ChartDatum, ChartDisplayPreferences, C
54
54
  export type { TaskStatusBadgeProps, TaskStatus } from './components/TaskStatusBadge/TaskStatusBadge';
55
55
  export type { TaskPriorityBadgeProps, TaskPriority } from './components/TaskPriorityBadge/TaskPriorityBadge';
56
56
  export type { TaskCardProps } from './components/TaskCard/TaskCard';
57
- export type { TaskCalendarProps, TaskCalendarItem, TaskCalendarDateValue, TaskCalendarView, TaskCalendarRenderContext, } from './components/TaskCalendar/TaskCalendar';
58
- export type { GanttChartProps, GanttChartGroup, GanttChartItem, GanttChartDateValue, GanttChartView, GanttChartRenderContext, } from './components/GanttChart/GanttChart';
57
+ export type { TaskCalendarProps, TaskCalendarDayHighlight, TaskCalendarItem, TaskCalendarDateValue, TaskCalendarView, TaskCalendarRenderContext, } from './components/TaskCalendar/TaskCalendar';
58
+ export type { GanttChartProps, GanttChartDayHighlight, GanttChartGroup, GanttChartItem, GanttChartDateValue, GanttChartView, GanttChartRenderContext, } from './components/GanttChart/GanttChart';
59
59
  export type { BackgroundProps } from './components/Background/Background';
60
60
  export type { ThemeProviderProps, Theme } from './components/ThemeProvider/ThemeProvider';
61
61
  export type { GridProps } from './components/Grid/Grid';