@dayflow/core 2.0.4 → 2.0.6

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.
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { CalendarRegistry } from '../../core/calendarRegistry';
3
+ export interface CalendarOption {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export interface CalendarPickerProps {
8
+ options: CalendarOption[];
9
+ value: string;
10
+ onChange: (value: string) => void;
11
+ registry?: CalendarRegistry;
12
+ variant?: 'desktop' | 'mobile';
13
+ }
14
+ /**
15
+ * CalendarPicker Component
16
+ * Used to select which calendar an event belongs to
17
+ */
18
+ export declare const CalendarPicker: React.FC<CalendarPickerProps>;
19
+ export default CalendarPicker;
@@ -6,7 +6,7 @@ interface ContextMenuProps {
6
6
  children: React.ReactNode;
7
7
  className?: string;
8
8
  }
9
- declare const ContextMenu: React.FC<ContextMenuProps>;
9
+ declare const ContextMenu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<HTMLDivElement>>;
10
10
  export declare const ContextMenuItem: React.FC<{
11
11
  onClick: () => void;
12
12
  children: React.ReactNode;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { CalendarType } from '../../../types';
3
+ interface ImportCalendarDialogProps {
4
+ calendars: CalendarType[];
5
+ filename: string;
6
+ onConfirm: (targetCalendarId: string) => void;
7
+ onCancel: () => void;
8
+ }
9
+ export declare const NEW_CALENDAR_ID = "new-calendar";
10
+ export declare const ImportCalendarDialog: React.FC<ImportCalendarDialogProps>;
11
+ export {};
@@ -12,8 +12,7 @@ interface AllDayRowProps {
12
12
  isToday: boolean;
13
13
  }>;
14
14
  currentWeekStart: Date;
15
- timeGridWidth: number;
16
- sidebarWidth: number;
15
+ gridWidth: string;
17
16
  allDayAreaHeight: number;
18
17
  organizedAllDaySegments: any[];
19
18
  allDayLabelText: string;
package/dist/index.d.ts CHANGED
@@ -21,8 +21,8 @@ export { default as DefaultEventDetailDialog } from './components/common/Default
21
21
  export { default as EventDetailPanelWithContent } from './components/common/EventDetailPanelWithContent';
22
22
  export { default as ViewHeader } from './components/common/ViewHeader';
23
23
  export type { ViewHeaderType, ViewSwitcherMode, } from './components/common/ViewHeader';
24
- export { default as ColorPicker } from './components/common/ColorPicker';
25
- export type { ColorOption, ColorPickerProps, } from './components/common/ColorPicker';
24
+ export { default as CalendarPicker } from './components/common/CalendarPicker';
25
+ export type { CalendarOption, CalendarPickerProps, } from './components/common/CalendarPicker';
26
26
  export { EventLayoutCalculator } from './components/eventLayout';
27
27
  export * from './utils';
28
28
  export * from './locale';