@fullcalendar/mui 7.0.0-beta.6 → 7.0.0-beta.8
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/README.md +5 -14
- package/{esm/forma → breezy}/EventCalendar.d.ts +1 -1
- package/{esm/breezy → breezy}/EventCalendar.js +5 -18
- package/{esm/breezy → breezy}/EventCalendarToolbar.d.ts +1 -1
- package/{esm/monarch → breezy}/EventCalendarToolbar.js +3 -5
- package/{esm/breezy → breezy}/EventCalendarViews.d.ts +7 -7
- package/{esm/breezy → breezy}/EventCalendarViews.js +1 -6
- package/{esm/forma → breezy}/ResourceTimeGrid.d.ts +1 -1
- package/{esm/forma → breezy}/ResourceTimeGrid.js +4 -18
- package/{esm/breezy → breezy}/ResourceTimeline.d.ts +1 -1
- package/{esm/forma → breezy}/ResourceTimeline.js +3 -17
- package/{esm/breezy → breezy}/SchedulerViews.js +1 -7
- package/{esm/breezy → breezy}/icons.js +1 -1
- package/breezy/theme.css +3 -14
- package/{esm/classic → classic}/EventCalendar.d.ts +1 -1
- package/{esm/pulse → classic}/EventCalendar.js +5 -18
- package/{esm/pulse → classic}/EventCalendarToolbar.d.ts +1 -1
- package/{esm/pulse → classic}/EventCalendarToolbar.js +0 -5
- package/{esm/classic → classic}/EventCalendarViews.d.ts +6 -6
- package/{esm/classic → classic}/EventCalendarViews.js +1 -6
- package/{esm/classic → classic}/ResourceTimeGrid.d.ts +1 -1
- package/{esm/pulse → classic}/ResourceTimeGrid.js +4 -18
- package/{esm/forma → classic}/ResourceTimeline.d.ts +1 -1
- package/{esm/classic → classic}/ResourceTimeline.js +3 -17
- package/{esm/classic → classic}/SchedulerViews.js +1 -7
- package/{esm/classic → classic}/icons.js +1 -1
- package/classic/theme.css +3 -14
- package/{esm/breezy → forma}/EventCalendar.d.ts +1 -1
- package/{esm/monarch → forma}/EventCalendar.js +5 -18
- package/{esm/forma → forma}/EventCalendarToolbar.d.ts +1 -1
- package/{esm/forma → forma}/EventCalendarToolbar.js +0 -5
- package/{esm/forma → forma}/EventCalendarViews.d.ts +7 -7
- package/{esm/forma → forma}/EventCalendarViews.js +1 -6
- package/{esm/monarch → forma}/ResourceTimeGrid.d.ts +1 -1
- package/{esm/breezy → forma}/ResourceTimeGrid.js +4 -18
- package/{esm/classic → forma}/ResourceTimeline.d.ts +1 -1
- package/{esm/breezy → forma}/ResourceTimeline.js +3 -17
- package/{esm/forma → forma}/SchedulerViews.js +1 -7
- package/{esm/forma → forma}/icons.js +1 -1
- package/forma/theme.css +3 -14
- package/{esm/monarch → monarch}/EventCalendar.d.ts +1 -1
- package/{esm/forma → monarch}/EventCalendar.js +5 -18
- package/{esm/monarch → monarch}/EventCalendarToolbar.d.ts +1 -1
- package/monarch/EventCalendarToolbar.js +43 -0
- package/monarch/EventCalendarViews.d.ts +27 -0
- package/{esm/monarch → monarch}/EventCalendarViews.js +1 -6
- package/{esm/breezy → monarch}/ResourceTimeGrid.d.ts +1 -1
- package/{esm/monarch → monarch}/ResourceTimeGrid.js +4 -18
- package/{esm/monarch → monarch}/ResourceTimeline.d.ts +1 -1
- package/{esm/monarch → monarch}/ResourceTimeline.js +3 -17
- package/{esm/monarch → monarch}/SchedulerViews.js +1 -7
- package/{esm/monarch → monarch}/icons.js +1 -1
- package/monarch/theme.css +3 -14
- package/package.json +90 -251
- package/pulse/EventCalendar.d.ts +15 -0
- package/{esm/classic → pulse}/EventCalendar.js +5 -18
- package/{esm/classic → pulse}/EventCalendarToolbar.d.ts +1 -1
- package/{esm/classic → pulse}/EventCalendarToolbar.js +0 -5
- package/{esm/pulse → pulse}/EventCalendarViews.d.ts +8 -8
- package/{esm/pulse → pulse}/EventCalendarViews.js +1 -6
- package/pulse/ResourceTimeGrid.d.ts +15 -0
- package/{esm/classic → pulse}/ResourceTimeGrid.js +4 -18
- package/pulse/ResourceTimeline.d.ts +15 -0
- package/{esm/pulse → pulse}/ResourceTimeline.js +3 -17
- package/{esm/pulse → pulse}/SchedulerViews.js +1 -7
- package/{esm/pulse → pulse}/icons.js +1 -1
- package/pulse/theme.css +3 -14
- package/cjs/breezy/EventCalendar.cjs +0 -62
- package/cjs/breezy/EventCalendarContainer.cjs +0 -35
- package/cjs/breezy/EventCalendarToolbar.cjs +0 -65
- package/cjs/breezy/EventCalendarViews.cjs +0 -283
- package/cjs/breezy/ResourceTimeGrid.cjs +0 -57
- package/cjs/breezy/ResourceTimeline.cjs +0 -54
- package/cjs/breezy/SchedulerViews.cjs +0 -70
- package/cjs/breezy/icons.cjs +0 -37
- package/cjs/classic/EventCalendar.cjs +0 -62
- package/cjs/classic/EventCalendarContainer.cjs +0 -22
- package/cjs/classic/EventCalendarToolbar.cjs +0 -62
- package/cjs/classic/EventCalendarViews.cjs +0 -230
- package/cjs/classic/ResourceTimeGrid.cjs +0 -57
- package/cjs/classic/ResourceTimeline.cjs +0 -54
- package/cjs/classic/SchedulerViews.cjs +0 -74
- package/cjs/classic/icons.cjs +0 -37
- package/cjs/forma/EventCalendar.cjs +0 -62
- package/cjs/forma/EventCalendarContainer.cjs +0 -35
- package/cjs/forma/EventCalendarToolbar.cjs +0 -64
- package/cjs/forma/EventCalendarViews.cjs +0 -251
- package/cjs/forma/ResourceTimeGrid.cjs +0 -57
- package/cjs/forma/ResourceTimeline.cjs +0 -54
- package/cjs/forma/SchedulerViews.cjs +0 -62
- package/cjs/forma/icons.cjs +0 -37
- package/cjs/monarch/EventCalendar.cjs +0 -62
- package/cjs/monarch/EventCalendarContainer.cjs +0 -35
- package/cjs/monarch/EventCalendarToolbar.cjs +0 -62
- package/cjs/monarch/EventCalendarViews.cjs +0 -252
- package/cjs/monarch/ResourceTimeGrid.cjs +0 -57
- package/cjs/monarch/ResourceTimeline.cjs +0 -54
- package/cjs/monarch/SchedulerViews.cjs +0 -83
- package/cjs/monarch/icons.cjs +0 -37
- package/cjs/pulse/EventCalendar.cjs +0 -62
- package/cjs/pulse/EventCalendarContainer.cjs +0 -22
- package/cjs/pulse/EventCalendarToolbar.cjs +0 -62
- package/cjs/pulse/EventCalendarViews.cjs +0 -268
- package/cjs/pulse/ResourceTimeGrid.cjs +0 -57
- package/cjs/pulse/ResourceTimeline.cjs +0 -54
- package/cjs/pulse/SchedulerViews.cjs +0 -58
- package/cjs/pulse/icons.cjs +0 -37
- package/esm/breezy/EventCalendarToolbar.js +0 -51
- package/esm/monarch/EventCalendarViews.d.ts +0 -27
- package/esm/pulse/EventCalendar.d.ts +0 -15
- package/esm/pulse/ResourceTimeGrid.d.ts +0 -15
- package/esm/pulse/ResourceTimeline.d.ts +0 -15
- /package/{esm/breezy → breezy}/EventCalendarContainer.d.ts +0 -0
- /package/{esm/breezy → breezy}/EventCalendarContainer.js +0 -0
- /package/{esm/breezy → breezy}/SchedulerViews.d.ts +0 -0
- /package/{esm/breezy → breezy}/icons.d.ts +0 -0
- /package/{esm/classic → classic}/EventCalendarContainer.d.ts +0 -0
- /package/{esm/classic → classic}/EventCalendarContainer.js +0 -0
- /package/{esm/classic → classic}/SchedulerViews.d.ts +0 -0
- /package/{esm/classic → classic}/icons.d.ts +0 -0
- /package/{esm/forma → forma}/EventCalendarContainer.d.ts +0 -0
- /package/{esm/forma → forma}/EventCalendarContainer.js +0 -0
- /package/{esm/forma → forma}/SchedulerViews.d.ts +0 -0
- /package/{esm/forma → forma}/icons.d.ts +0 -0
- /package/{esm/monarch → monarch}/EventCalendarContainer.d.ts +0 -0
- /package/{esm/monarch → monarch}/EventCalendarContainer.js +0 -0
- /package/{esm/monarch → monarch}/SchedulerViews.d.ts +0 -0
- /package/{esm/monarch → monarch}/icons.d.ts +0 -0
- /package/{esm/pulse → pulse}/EventCalendarContainer.d.ts +0 -0
- /package/{esm/pulse → pulse}/EventCalendarContainer.js +0 -0
- /package/{esm/pulse → pulse}/SchedulerViews.d.ts +0 -0
- /package/{esm/pulse → pulse}/icons.d.ts +0 -0
package/README.md
CHANGED
|
@@ -5,17 +5,8 @@ Display an event calendar that inherits from your [@mui/material](https://www.np
|
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
8
|
-
First, ensure you have all React and MUI-related packages already installed.
|
|
9
|
-
Then install FullCalendar and a select set of plugins:
|
|
10
|
-
|
|
11
8
|
```sh
|
|
12
|
-
npm install
|
|
13
|
-
@fullcalendar/core \
|
|
14
|
-
@fullcalendar/mui \
|
|
15
|
-
@fullcalendar/daygrid \
|
|
16
|
-
@fullcalendar/timegrid \
|
|
17
|
-
@fullcalendar/interaction \
|
|
18
|
-
@fullcalendar/multimonth
|
|
9
|
+
npm install @fullcalendar/react @fullcalendar/mui
|
|
19
10
|
```
|
|
20
11
|
|
|
21
12
|
## Usage
|
|
@@ -29,8 +20,8 @@ Next, decide whether you're using FullCalendar "standard" (aka "EventCalendar")
|
|
|
29
20
|
```jsx
|
|
30
21
|
import EventCalendar from '@fullcalendar/mui/monarch/EventCalendar'
|
|
31
22
|
|
|
32
|
-
import '@fullcalendar/
|
|
33
|
-
import '@fullcalendar/mui/monarch/
|
|
23
|
+
import '@fullcalendar/react/skeleton.css'
|
|
24
|
+
import '@fullcalendar/mui/monarch/theme.css'
|
|
34
25
|
|
|
35
26
|
<EventCalendar
|
|
36
27
|
addButton={{
|
|
@@ -61,8 +52,8 @@ Then write your component code:
|
|
|
61
52
|
```jsx
|
|
62
53
|
import Scheduler from '@fullcalendar/mui/monarch/Scheduler'
|
|
63
54
|
|
|
64
|
-
import '@fullcalendar/
|
|
65
|
-
import '@fullcalendar/mui/monarch/
|
|
55
|
+
import '@fullcalendar/react/skeleton.css'
|
|
56
|
+
import '@fullcalendar/mui/monarch/theme.css'
|
|
66
57
|
|
|
67
58
|
<EventCalendar
|
|
68
59
|
addButton={{
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useCalendarController } from '@fullcalendar/react';
|
|
3
|
-
import dayGridPlugin from '@fullcalendar/daygrid';
|
|
4
|
-
import timeGridPlugin from '@fullcalendar/timegrid';
|
|
5
|
-
import listPlugin from '@fullcalendar/list';
|
|
6
|
-
import interactionPlugin from '@fullcalendar/interaction';
|
|
7
|
-
import multiMonthPlugin from '@fullcalendar/multimonth';
|
|
3
|
+
import dayGridPlugin from '@fullcalendar/react/daygrid';
|
|
4
|
+
import timeGridPlugin from '@fullcalendar/react/timegrid';
|
|
5
|
+
import listPlugin from '@fullcalendar/react/list';
|
|
6
|
+
import interactionPlugin from '@fullcalendar/react/interaction';
|
|
7
|
+
import multiMonthPlugin from '@fullcalendar/react/multimonth';
|
|
8
8
|
import EventCalendarToolbar from './EventCalendarToolbar.js';
|
|
9
9
|
import EventCalendarViews from './EventCalendarViews.js';
|
|
10
10
|
import EventCalendarContainer from './EventCalendarContainer.js';
|
|
11
|
-
import '@mui/material/Box';
|
|
12
|
-
import '@mui/material/Button';
|
|
13
|
-
import '@mui/material/IconButton';
|
|
14
|
-
import '@mui/material/Typography';
|
|
15
|
-
import '@mui/material/ToggleButtonGroup';
|
|
16
|
-
import '@mui/material/ToggleButton';
|
|
17
|
-
import './icons.js';
|
|
18
|
-
import '@fullcalendar/core';
|
|
19
|
-
import '@mui/icons-material/ChevronLeft';
|
|
20
|
-
import '@mui/icons-material/ChevronRight';
|
|
21
|
-
import '@mui/icons-material/Close';
|
|
22
|
-
import '@mui/icons-material/ExpandMore';
|
|
23
|
-
import '@mui/material';
|
|
24
11
|
|
|
25
12
|
const plugins = [
|
|
26
13
|
dayGridPlugin,
|
|
@@ -6,11 +6,6 @@ import Typography from '@mui/material/Typography';
|
|
|
6
6
|
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
|
|
7
7
|
import ToggleButton from '@mui/material/ToggleButton';
|
|
8
8
|
import { EventCalendarPrevIcon, EventCalendarNextIcon } from './icons.js';
|
|
9
|
-
import '@fullcalendar/core';
|
|
10
|
-
import '@mui/icons-material/ChevronLeft';
|
|
11
|
-
import '@mui/icons-material/ChevronRight';
|
|
12
|
-
import '@mui/icons-material/Close';
|
|
13
|
-
import '@mui/icons-material/ExpandMore';
|
|
14
9
|
|
|
15
10
|
function EventCalendarToolbar({ controller, availableViews, addButton, }) {
|
|
16
11
|
const buttons = controller.getButtonState();
|
|
@@ -21,6 +16,9 @@ function EventCalendarToolbar({ controller, availableViews, addButton, }) {
|
|
|
21
16
|
justifyContent: 'space-between',
|
|
22
17
|
gap: 1,
|
|
23
18
|
padding: 2,
|
|
19
|
+
bgcolor: 'action.hover', // low-contrast grey
|
|
20
|
+
borderBottom: '1px solid',
|
|
21
|
+
borderColor: 'divider',
|
|
24
22
|
} },
|
|
25
23
|
React.createElement(Box, { sx: {
|
|
26
24
|
display: 'flex',
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DayHeaderData, DayCellData, CalendarOptions } from '@fullcalendar/
|
|
2
|
+
import { DayHeaderData, DayCellData, CalendarOptions } from '@fullcalendar/react';
|
|
3
3
|
|
|
4
4
|
declare const outlineWidthClass = "outline-3";
|
|
5
5
|
declare const outlineWidthFocusClass = "focus-visible:outline-3";
|
|
6
6
|
declare const outlineWidthGroupFocusClass = "group-focus-visible:outline-3";
|
|
7
7
|
declare const outlineOffsetClass = "outline-offset-1";
|
|
8
8
|
declare const primaryOutlineColorClass = "outline-(--mui-palette-primary-main)";
|
|
9
|
-
declare const strongSolidPressableClass:
|
|
9
|
+
declare const strongSolidPressableClass = "bg-[color-mix(in_oklab,var(--mui-palette-text-primary)_16%,var(--mui-palette-background-paper))] hover:bg-[color-mix(in_oklab,var(--mui-palette-text-primary)_20%,var(--mui-palette-background-paper))] active:bg-[color-mix(in_oklab,var(--mui-palette-text-primary)_25%,var(--mui-palette-background-paper))]";
|
|
10
10
|
declare const mutedBgClass = "bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.08)]";
|
|
11
|
-
declare const mutedHoverPressableClass:
|
|
11
|
+
declare const mutedHoverPressableClass = "hover:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.08)] focus-visible:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.16)] active:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.16)]";
|
|
12
12
|
declare const faintBgClass = "bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.04)]";
|
|
13
13
|
declare const primaryClass = "bg-(--mui-palette-primary-main) text-(--mui-palette-primary-contrastText)";
|
|
14
|
-
declare const primaryPressableClass:
|
|
15
|
-
declare const primaryPressableGroupClass:
|
|
14
|
+
declare const primaryPressableClass = "bg-(--mui-palette-primary-main) text-(--mui-palette-primary-contrastText) hover:bg-[rgba(var(--mui-palette-primary-mainChannel)_/_0.9)] active:bg-[rgba(var(--mui-palette-primary-mainChannel)_/_0.8)]";
|
|
15
|
+
declare const primaryPressableGroupClass = "bg-(--mui-palette-primary-main) text-(--mui-palette-primary-contrastText) group-hover:bg-[rgba(var(--mui-palette-primary-mainChannel)_/_0.9)] group-active:bg-[rgba(var(--mui-palette-primary-mainChannel)_/_0.8)]";
|
|
16
16
|
declare const eventMutedFgClass = "text-[color-mix(in_oklab,var(--fc-event-color)_50%,var(--mui-palette-text-primary))]";
|
|
17
17
|
declare const eventFaintBgClass = "bg-[color-mix(in_oklab,var(--fc-event-color)_20%,var(--mui-palette-background-paper))]";
|
|
18
18
|
declare const eventFaintPressableClass: string;
|
|
19
|
-
declare const rowPointerResizerClass:
|
|
20
|
-
declare const rowTouchResizerClass
|
|
19
|
+
declare const rowPointerResizerClass = "absolute hidden group-hover:block inset-y-0 w-2";
|
|
20
|
+
declare const rowTouchResizerClass = "absolute size-2 border border-(--fc-event-color) bg-(--mui-palette-background-paper) rounded-full top-1/2 -mt-1";
|
|
21
21
|
declare const getNormalDayHeaderBorderClass: (data: DayHeaderData) => string;
|
|
22
22
|
declare const getMutedDayHeaderBorderClass: (data: DayHeaderData) => string;
|
|
23
23
|
declare const getNormalDayCellBorderColorClass: (data: DayCellData) => "border-[rgba(var(--mui-palette-text-primaryChannel)_/_0.2)]" | "border-(--mui-palette-divider)";
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { joinClassNames } from '@fullcalendar/
|
|
3
|
-
import FullCalendar from '@fullcalendar/react';
|
|
2
|
+
import FullCalendar, { joinClassNames } from '@fullcalendar/react';
|
|
4
3
|
import { Box } from '@mui/material';
|
|
5
4
|
import { EventCalendarCloseIcon } from './icons.js';
|
|
6
|
-
import '@mui/icons-material/ChevronLeft';
|
|
7
|
-
import '@mui/icons-material/ChevronRight';
|
|
8
|
-
import '@mui/icons-material/Close';
|
|
9
|
-
import '@mui/icons-material/ExpandMore';
|
|
10
5
|
|
|
11
6
|
// outline
|
|
12
7
|
const outlineWidthClass = "fc-breezy-bAU";
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useCalendarController } from '@fullcalendar/react';
|
|
3
|
-
import adaptivePlugin from '@fullcalendar/adaptive';
|
|
4
|
-
import interactionPlugin from '@fullcalendar/interaction';
|
|
5
|
-
import scrollGridPlugin from '@fullcalendar/scrollgrid';
|
|
6
|
-
import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid';
|
|
3
|
+
import adaptivePlugin from '@fullcalendar/react-scheduler/adaptive';
|
|
4
|
+
import interactionPlugin from '@fullcalendar/react/interaction';
|
|
5
|
+
import scrollGridPlugin from '@fullcalendar/react-scheduler/scrollgrid';
|
|
6
|
+
import resourceTimeGridPlugin from '@fullcalendar/react-scheduler/resource-timegrid';
|
|
7
7
|
import EventCalendarToolbar from './EventCalendarToolbar.js';
|
|
8
8
|
import SchedulerViews from './SchedulerViews.js';
|
|
9
9
|
import EventCalendarContainer from './EventCalendarContainer.js';
|
|
10
|
-
import '@mui/material/Box';
|
|
11
|
-
import '@mui/material/Button';
|
|
12
|
-
import '@mui/material/IconButton';
|
|
13
|
-
import '@mui/material/Typography';
|
|
14
|
-
import '@mui/material/ToggleButtonGroup';
|
|
15
|
-
import '@mui/material/ToggleButton';
|
|
16
|
-
import './icons.js';
|
|
17
|
-
import '@fullcalendar/core';
|
|
18
|
-
import '@mui/icons-material/ChevronLeft';
|
|
19
|
-
import '@mui/icons-material/ChevronRight';
|
|
20
|
-
import '@mui/icons-material/Close';
|
|
21
|
-
import '@mui/icons-material/ExpandMore';
|
|
22
|
-
import './EventCalendarViews.js';
|
|
23
|
-
import '@mui/material';
|
|
24
10
|
|
|
25
11
|
const plugins = [
|
|
26
12
|
adaptivePlugin,
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useCalendarController } from '@fullcalendar/react';
|
|
3
|
-
import adaptivePlugin from '@fullcalendar/adaptive';
|
|
4
|
-
import resourceTimelinePlugin from '@fullcalendar/resource-timeline';
|
|
5
|
-
import interactionPlugin from '@fullcalendar/interaction';
|
|
3
|
+
import adaptivePlugin from '@fullcalendar/react-scheduler/adaptive';
|
|
4
|
+
import resourceTimelinePlugin from '@fullcalendar/react-scheduler/resource-timeline';
|
|
5
|
+
import interactionPlugin from '@fullcalendar/react/interaction';
|
|
6
6
|
import EventCalendarToolbar from './EventCalendarToolbar.js';
|
|
7
7
|
import SchedulerViews from './SchedulerViews.js';
|
|
8
8
|
import EventCalendarContainer from './EventCalendarContainer.js';
|
|
9
|
-
import '@mui/material/Box';
|
|
10
|
-
import '@mui/material/Button';
|
|
11
|
-
import '@mui/material/IconButton';
|
|
12
|
-
import '@mui/material/Typography';
|
|
13
|
-
import '@mui/material/ToggleButtonGroup';
|
|
14
|
-
import '@mui/material/ToggleButton';
|
|
15
|
-
import './icons.js';
|
|
16
|
-
import '@fullcalendar/core';
|
|
17
|
-
import '@mui/icons-material/ChevronLeft';
|
|
18
|
-
import '@mui/icons-material/ChevronRight';
|
|
19
|
-
import '@mui/icons-material/Close';
|
|
20
|
-
import '@mui/icons-material/ExpandMore';
|
|
21
|
-
import './EventCalendarViews.js';
|
|
22
|
-
import '@mui/material';
|
|
23
9
|
|
|
24
10
|
const plugins = [
|
|
25
11
|
adaptivePlugin,
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { joinClassNames } from '@fullcalendar/
|
|
2
|
+
import { joinClassNames } from '@fullcalendar/react';
|
|
3
3
|
import EventCalendarViews, { mutedBgClass, mutedHoverPressableClass, outlineWidthFocusClass, primaryOutlineColorClass, strongSolidPressableClass } from './EventCalendarViews.js';
|
|
4
4
|
import { EventCalendarExpanderIcon } from './icons.js';
|
|
5
|
-
import '@fullcalendar/react';
|
|
6
|
-
import '@mui/material';
|
|
7
|
-
import '@mui/icons-material/ChevronLeft';
|
|
8
|
-
import '@mui/icons-material/ChevronRight';
|
|
9
|
-
import '@mui/icons-material/Close';
|
|
10
|
-
import '@mui/icons-material/ExpandMore';
|
|
11
5
|
|
|
12
6
|
function SchedulerViews({ views: userViews, ...restOptions }) {
|
|
13
7
|
return (React.createElement(EventCalendarViews
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { joinClassNames } from '@fullcalendar/
|
|
2
|
+
import { joinClassNames } from '@fullcalendar/react';
|
|
3
3
|
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
|
|
4
4
|
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
5
5
|
import CloseIcon from '@mui/icons-material/Close';
|
package/breezy/theme.css
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
/*
|
|
3
|
-
NOTE: apply this to calendar root AND popover
|
|
4
|
-
*/
|
|
5
2
|
.fc-breezy-ND7 {
|
|
6
3
|
line-height: 1.5;
|
|
7
4
|
--fc-breezy-border-style: solid;
|
|
8
5
|
}
|
|
9
6
|
|
|
10
|
-
/*
|
|
11
|
-
NOTE: apply this to buttonClass and popoverCloseClass
|
|
12
|
-
*/
|
|
13
7
|
.fc-breezy-om0 {
|
|
14
|
-
|
|
15
|
-
-moz-appearance: button;
|
|
16
|
-
appearance: button;
|
|
8
|
+
appearance: button;
|
|
17
9
|
font: inherit;
|
|
18
10
|
font-feature-settings: inherit;
|
|
19
11
|
font-variation-settings: inherit;
|
|
@@ -22,7 +14,6 @@ NOTE: apply this to buttonClass and popoverCloseClass
|
|
|
22
14
|
opacity: 1;
|
|
23
15
|
background-color: #0000;
|
|
24
16
|
border-radius: 0;
|
|
25
|
-
/* originally provided on border-box reset */
|
|
26
17
|
margin: 0;
|
|
27
18
|
border: 0;
|
|
28
19
|
padding: 0
|
|
@@ -858,8 +849,7 @@ NOTE: apply this to buttonClass and popoverCloseClass
|
|
|
858
849
|
}
|
|
859
850
|
|
|
860
851
|
.fc-breezy-YdZ:is(:where(.fc-breezy-ytQ):hover *) {
|
|
861
|
-
|
|
862
|
-
text-decoration-line: underline
|
|
852
|
+
text-decoration-line: underline
|
|
863
853
|
}
|
|
864
854
|
}
|
|
865
855
|
|
|
@@ -914,8 +904,7 @@ NOTE: apply this to buttonClass and popoverCloseClass
|
|
|
914
904
|
}
|
|
915
905
|
|
|
916
906
|
.fc-breezy-jaW:hover {
|
|
917
|
-
|
|
918
|
-
text-decoration-line: underline
|
|
907
|
+
text-decoration-line: underline
|
|
919
908
|
}
|
|
920
909
|
}
|
|
921
910
|
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useCalendarController } from '@fullcalendar/react';
|
|
3
|
-
import dayGridPlugin from '@fullcalendar/daygrid';
|
|
4
|
-
import timeGridPlugin from '@fullcalendar/timegrid';
|
|
5
|
-
import listPlugin from '@fullcalendar/list';
|
|
6
|
-
import interactionPlugin from '@fullcalendar/interaction';
|
|
7
|
-
import multiMonthPlugin from '@fullcalendar/multimonth';
|
|
3
|
+
import dayGridPlugin from '@fullcalendar/react/daygrid';
|
|
4
|
+
import timeGridPlugin from '@fullcalendar/react/timegrid';
|
|
5
|
+
import listPlugin from '@fullcalendar/react/list';
|
|
6
|
+
import interactionPlugin from '@fullcalendar/react/interaction';
|
|
7
|
+
import multiMonthPlugin from '@fullcalendar/react/multimonth';
|
|
8
8
|
import EventCalendarToolbar from './EventCalendarToolbar.js';
|
|
9
9
|
import EventCalendarViews from './EventCalendarViews.js';
|
|
10
10
|
import EventCalendarContainer from './EventCalendarContainer.js';
|
|
11
|
-
import '@mui/material/Box';
|
|
12
|
-
import '@mui/material/Button';
|
|
13
|
-
import '@mui/material/IconButton';
|
|
14
|
-
import '@mui/material/Typography';
|
|
15
|
-
import '@mui/material/ToggleButtonGroup';
|
|
16
|
-
import '@mui/material/ToggleButton';
|
|
17
|
-
import './icons.js';
|
|
18
|
-
import '@fullcalendar/core';
|
|
19
|
-
import '@mui/icons-material/ChevronLeft';
|
|
20
|
-
import '@mui/icons-material/ChevronRight';
|
|
21
|
-
import '@mui/icons-material/Close';
|
|
22
|
-
import '@mui/icons-material/ExpandMore';
|
|
23
|
-
import '@mui/material';
|
|
24
11
|
|
|
25
12
|
const plugins = [
|
|
26
13
|
dayGridPlugin,
|
|
@@ -6,11 +6,6 @@ import Typography from '@mui/material/Typography';
|
|
|
6
6
|
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
|
|
7
7
|
import ToggleButton from '@mui/material/ToggleButton';
|
|
8
8
|
import { EventCalendarPrevIcon, EventCalendarNextIcon } from './icons.js';
|
|
9
|
-
import '@fullcalendar/core';
|
|
10
|
-
import '@mui/icons-material/ChevronLeft';
|
|
11
|
-
import '@mui/icons-material/ChevronRight';
|
|
12
|
-
import '@mui/icons-material/Close';
|
|
13
|
-
import '@mui/icons-material/ExpandMore';
|
|
14
9
|
|
|
15
10
|
function EventCalendarToolbar({ controller, availableViews, addButton, borderlessX, }) {
|
|
16
11
|
const buttons = controller.getButtonState();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CalendarOptions } from '@fullcalendar/
|
|
2
|
+
import { CalendarOptions } from '@fullcalendar/react';
|
|
3
3
|
|
|
4
4
|
declare const outlineWidthClass = "outline-3";
|
|
5
5
|
declare const outlineWidthFocusClass = "focus-visible:outline-3";
|
|
6
6
|
declare const outlineOffsetClass = "outline-offset-1";
|
|
7
7
|
declare const outlineInsetClass = "-outline-offset-3";
|
|
8
8
|
declare const primaryOutlineColorClass = "outline-[rgba(var(--mui-palette-primary-mainChannel)_/_0.5)]";
|
|
9
|
-
declare const strongSolidPressableClass:
|
|
9
|
+
declare const strongSolidPressableClass = "bg-[color-mix(in_oklab,var(--mui-palette-text-primary)_16%,var(--mui-palette-background-paper))] hover:bg-[color-mix(in_oklab,var(--mui-palette-text-primary)_20%,var(--mui-palette-background-paper))] active:bg-[color-mix(in_oklab,var(--mui-palette-text-primary)_25%,var(--mui-palette-background-paper))]";
|
|
10
10
|
declare const mutedBgClass = "bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.08)]";
|
|
11
11
|
declare const mutedSolidBgClass = "[background:linear-gradient(rgba(var(--mui-palette-text-primaryChannel)_/_0.08),rgba(var(--mui-palette-text-primaryChannel)_/_0.08))_var(--mui-palette-background-paper)]";
|
|
12
|
-
declare const mutedHoverPressableClass:
|
|
12
|
+
declare const mutedHoverPressableClass = "hover:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.08)] focus-visible:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.08)] active:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.08)]";
|
|
13
13
|
declare const faintBgClass = "bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.04)]";
|
|
14
|
-
declare const faintHoverPressableClass:
|
|
15
|
-
declare const rowPointerResizerClass:
|
|
16
|
-
declare const rowTouchResizerClass
|
|
14
|
+
declare const faintHoverPressableClass = "hover:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.04)] focus-visible:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.04)] active:bg-[rgba(var(--mui-palette-text-primaryChannel)_/_0.08)]";
|
|
15
|
+
declare const rowPointerResizerClass = "absolute hidden group-hover:block inset-y-0 w-2";
|
|
16
|
+
declare const rowTouchResizerClass = "absolute size-2 border border-(--fc-event-color) bg-(--mui-palette-background-paper) rounded-full top-1/2 -mt-1";
|
|
17
17
|
declare const getDayClass: (data: {
|
|
18
18
|
isMajor: boolean;
|
|
19
19
|
isToday: boolean;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import FullCalendar from '@fullcalendar/react';
|
|
3
|
-
import { joinClassNames } from '@fullcalendar/core';
|
|
2
|
+
import FullCalendar, { joinClassNames } from '@fullcalendar/react';
|
|
4
3
|
import { Box } from '@mui/material';
|
|
5
4
|
import { EventCalendarCloseIcon } from './icons.js';
|
|
6
|
-
import '@mui/icons-material/ChevronLeft';
|
|
7
|
-
import '@mui/icons-material/ChevronRight';
|
|
8
|
-
import '@mui/icons-material/Close';
|
|
9
|
-
import '@mui/icons-material/ExpandMore';
|
|
10
5
|
|
|
11
6
|
// outline
|
|
12
7
|
const outlineWidthClass = "fc-classic-bAU";
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useCalendarController } from '@fullcalendar/react';
|
|
3
|
-
import adaptivePlugin from '@fullcalendar/adaptive';
|
|
4
|
-
import interactionPlugin from '@fullcalendar/interaction';
|
|
5
|
-
import scrollGridPlugin from '@fullcalendar/scrollgrid';
|
|
6
|
-
import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid';
|
|
3
|
+
import adaptivePlugin from '@fullcalendar/react-scheduler/adaptive';
|
|
4
|
+
import interactionPlugin from '@fullcalendar/react/interaction';
|
|
5
|
+
import scrollGridPlugin from '@fullcalendar/react-scheduler/scrollgrid';
|
|
6
|
+
import resourceTimeGridPlugin from '@fullcalendar/react-scheduler/resource-timegrid';
|
|
7
7
|
import EventCalendarToolbar from './EventCalendarToolbar.js';
|
|
8
8
|
import SchedulerViews from './SchedulerViews.js';
|
|
9
9
|
import EventCalendarContainer from './EventCalendarContainer.js';
|
|
10
|
-
import '@mui/material/Box';
|
|
11
|
-
import '@mui/material/Button';
|
|
12
|
-
import '@mui/material/IconButton';
|
|
13
|
-
import '@mui/material/Typography';
|
|
14
|
-
import '@mui/material/ToggleButtonGroup';
|
|
15
|
-
import '@mui/material/ToggleButton';
|
|
16
|
-
import './icons.js';
|
|
17
|
-
import '@fullcalendar/core';
|
|
18
|
-
import '@mui/icons-material/ChevronLeft';
|
|
19
|
-
import '@mui/icons-material/ChevronRight';
|
|
20
|
-
import '@mui/icons-material/Close';
|
|
21
|
-
import '@mui/icons-material/ExpandMore';
|
|
22
|
-
import './EventCalendarViews.js';
|
|
23
|
-
import '@mui/material';
|
|
24
10
|
|
|
25
11
|
const plugins = [
|
|
26
12
|
adaptivePlugin,
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useCalendarController } from '@fullcalendar/react';
|
|
3
|
-
import adaptivePlugin from '@fullcalendar/adaptive';
|
|
4
|
-
import resourceTimelinePlugin from '@fullcalendar/resource-timeline';
|
|
5
|
-
import interactionPlugin from '@fullcalendar/interaction';
|
|
3
|
+
import adaptivePlugin from '@fullcalendar/react-scheduler/adaptive';
|
|
4
|
+
import resourceTimelinePlugin from '@fullcalendar/react-scheduler/resource-timeline';
|
|
5
|
+
import interactionPlugin from '@fullcalendar/react/interaction';
|
|
6
6
|
import EventCalendarToolbar from './EventCalendarToolbar.js';
|
|
7
7
|
import SchedulerViews from './SchedulerViews.js';
|
|
8
8
|
import EventCalendarContainer from './EventCalendarContainer.js';
|
|
9
|
-
import '@mui/material/Box';
|
|
10
|
-
import '@mui/material/Button';
|
|
11
|
-
import '@mui/material/IconButton';
|
|
12
|
-
import '@mui/material/Typography';
|
|
13
|
-
import '@mui/material/ToggleButtonGroup';
|
|
14
|
-
import '@mui/material/ToggleButton';
|
|
15
|
-
import './icons.js';
|
|
16
|
-
import '@fullcalendar/core';
|
|
17
|
-
import '@mui/icons-material/ChevronLeft';
|
|
18
|
-
import '@mui/icons-material/ChevronRight';
|
|
19
|
-
import '@mui/icons-material/Close';
|
|
20
|
-
import '@mui/icons-material/ExpandMore';
|
|
21
|
-
import './EventCalendarViews.js';
|
|
22
|
-
import '@mui/material';
|
|
23
9
|
|
|
24
10
|
const plugins = [
|
|
25
11
|
adaptivePlugin,
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { joinClassNames } from '@fullcalendar/
|
|
2
|
+
import { joinClassNames } from '@fullcalendar/react';
|
|
3
3
|
import EventCalendarViews, { mutedBgClass, outlineWidthFocusClass, primaryOutlineColorClass, rowTouchResizerClass, rowPointerResizerClass, strongSolidPressableClass } from './EventCalendarViews.js';
|
|
4
4
|
import { EventCalendarExpanderIcon } from './icons.js';
|
|
5
|
-
import '@fullcalendar/react';
|
|
6
|
-
import '@mui/material';
|
|
7
|
-
import '@mui/icons-material/ChevronLeft';
|
|
8
|
-
import '@mui/icons-material/ChevronRight';
|
|
9
|
-
import '@mui/icons-material/Close';
|
|
10
|
-
import '@mui/icons-material/ExpandMore';
|
|
11
5
|
|
|
12
6
|
const xxsTextClass = "fc-classic-HRt";
|
|
13
7
|
const continuationArrowClass = "fc-classic-MOr fc-classic-ARL fc-classic-DGs fc-classic-F6C";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { joinClassNames } from '@fullcalendar/
|
|
2
|
+
import { joinClassNames } from '@fullcalendar/react';
|
|
3
3
|
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
|
|
4
4
|
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
5
5
|
import CloseIcon from '@mui/icons-material/Close';
|
package/classic/theme.css
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
/*
|
|
3
|
-
NOTE: apply this to calendar root AND popover
|
|
4
|
-
*/
|
|
5
2
|
.fc-classic-ND7 {
|
|
6
3
|
line-height: 1.5;
|
|
7
4
|
--fc-classic-border-style: solid;
|
|
8
5
|
}
|
|
9
6
|
|
|
10
|
-
/*
|
|
11
|
-
NOTE: apply this to buttonClass and popoverCloseClass
|
|
12
|
-
*/
|
|
13
7
|
.fc-classic-om0 {
|
|
14
|
-
|
|
15
|
-
-moz-appearance: button;
|
|
16
|
-
appearance: button;
|
|
8
|
+
appearance: button;
|
|
17
9
|
font: inherit;
|
|
18
10
|
font-feature-settings: inherit;
|
|
19
11
|
font-variation-settings: inherit;
|
|
@@ -22,7 +14,6 @@ NOTE: apply this to buttonClass and popoverCloseClass
|
|
|
22
14
|
opacity: 1;
|
|
23
15
|
background-color: #0000;
|
|
24
16
|
border-radius: 0;
|
|
25
|
-
/* originally provided on border-box reset */
|
|
26
17
|
margin: 0;
|
|
27
18
|
border: 0;
|
|
28
19
|
padding: 0
|
|
@@ -723,8 +714,7 @@ NOTE: apply this to buttonClass and popoverCloseClass
|
|
|
723
714
|
}
|
|
724
715
|
|
|
725
716
|
.fc-classic-YdZ:is(:where(.fc-classic-ytQ):hover *) {
|
|
726
|
-
|
|
727
|
-
text-decoration-line: underline
|
|
717
|
+
text-decoration-line: underline
|
|
728
718
|
}
|
|
729
719
|
}
|
|
730
720
|
|
|
@@ -752,8 +742,7 @@ NOTE: apply this to buttonClass and popoverCloseClass
|
|
|
752
742
|
}
|
|
753
743
|
|
|
754
744
|
.fc-classic-jaW:hover {
|
|
755
|
-
|
|
756
|
-
text-decoration-line: underline
|
|
745
|
+
text-decoration-line: underline
|
|
757
746
|
}
|
|
758
747
|
}
|
|
759
748
|
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useCalendarController } from '@fullcalendar/react';
|
|
3
|
-
import dayGridPlugin from '@fullcalendar/daygrid';
|
|
4
|
-
import timeGridPlugin from '@fullcalendar/timegrid';
|
|
5
|
-
import listPlugin from '@fullcalendar/list';
|
|
6
|
-
import interactionPlugin from '@fullcalendar/interaction';
|
|
7
|
-
import multiMonthPlugin from '@fullcalendar/multimonth';
|
|
3
|
+
import dayGridPlugin from '@fullcalendar/react/daygrid';
|
|
4
|
+
import timeGridPlugin from '@fullcalendar/react/timegrid';
|
|
5
|
+
import listPlugin from '@fullcalendar/react/list';
|
|
6
|
+
import interactionPlugin from '@fullcalendar/react/interaction';
|
|
7
|
+
import multiMonthPlugin from '@fullcalendar/react/multimonth';
|
|
8
8
|
import EventCalendarToolbar from './EventCalendarToolbar.js';
|
|
9
9
|
import EventCalendarViews from './EventCalendarViews.js';
|
|
10
10
|
import EventCalendarContainer from './EventCalendarContainer.js';
|
|
11
|
-
import '@mui/material/Box';
|
|
12
|
-
import '@mui/material/Button';
|
|
13
|
-
import '@mui/material/IconButton';
|
|
14
|
-
import '@mui/material/Typography';
|
|
15
|
-
import '@mui/material/ToggleButtonGroup';
|
|
16
|
-
import '@mui/material/ToggleButton';
|
|
17
|
-
import './icons.js';
|
|
18
|
-
import '@fullcalendar/core';
|
|
19
|
-
import '@mui/icons-material/ChevronLeft';
|
|
20
|
-
import '@mui/icons-material/ChevronRight';
|
|
21
|
-
import '@mui/icons-material/Close';
|
|
22
|
-
import '@mui/icons-material/ExpandMore';
|
|
23
|
-
import '@mui/material';
|
|
24
11
|
|
|
25
12
|
const plugins = [
|
|
26
13
|
dayGridPlugin,
|
|
@@ -6,11 +6,6 @@ import Typography from '@mui/material/Typography';
|
|
|
6
6
|
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
|
|
7
7
|
import ToggleButton from '@mui/material/ToggleButton';
|
|
8
8
|
import { EventCalendarPrevIcon, EventCalendarNextIcon } from './icons.js';
|
|
9
|
-
import '@fullcalendar/core';
|
|
10
|
-
import '@mui/icons-material/ChevronLeft';
|
|
11
|
-
import '@mui/icons-material/ChevronRight';
|
|
12
|
-
import '@mui/icons-material/Close';
|
|
13
|
-
import '@mui/icons-material/ExpandMore';
|
|
14
9
|
|
|
15
10
|
function EventCalendarToolbar({ controller, availableViews, addButton, }) {
|
|
16
11
|
const buttons = controller.getButtonState();
|