@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.
- package/dist/components/common/CalendarPicker.d.ts +19 -0
- package/dist/components/common/ContextMenu.d.ts +1 -1
- package/dist/components/sidebar/components/ImportCalendarDialog.d.ts +11 -0
- package/dist/components/weekView/AllDayRow.d.ts +1 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/locale/types.d.ts +1 -1
- package/dist/styles/classNames.d.ts +2 -2
- package/dist/styles.css +30 -0
- package/dist/types/core.d.ts +4 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -1
- package/dist/components/EventLayout.d.ts +0 -133
- package/dist/components/common/MobileEventDrawer.d.ts +0 -12
- package/dist/components/common/MobileSearchDialog.d.ts +0 -14
- package/dist/components/common/RangePicker.d.ts +0 -26
- package/dist/components/common/SearchDrawer.d.ts +0 -13
- package/dist/components/common/SearchResultsList.d.ts +0 -11
- package/dist/components/weekView/CalendarEvent.d.ts +0 -50
- package/dist/components/yearView/YearWeekComponent.d.ts +0 -29
- package/dist/utils/locale.d.ts +0 -21
|
@@ -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.
|
|
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 {};
|
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
|
|
25
|
-
export type {
|
|
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';
|