@kivacore/ui-pro-shared 0.0.9 → 0.0.10
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/package.json +187 -21
- package/src/.kiva/config.json +27 -0
- package/src/components/avatar-group.tsx +222 -0
- package/src/components/kiva/bulk-update-dialog/bulk-update-dialog.tsx +240 -0
- package/src/components/kiva/bulk-update-dialog/index.tsx +6 -0
- package/src/components/kiva/bulk-update-dialog/types.ts +33 -0
- package/src/components/kiva/calendar/animations.ts +40 -0
- package/src/components/kiva/calendar/calendar-body.tsx +106 -0
- package/src/components/kiva/calendar/calendar-sidebar.tsx +103 -0
- package/src/components/kiva/calendar/calendar.tsx +243 -0
- package/src/components/kiva/calendar/constants.ts +12 -0
- package/src/components/kiva/calendar/contexts/calendar-context.tsx +696 -0
- package/src/components/kiva/calendar/contexts/dnd-context.tsx +173 -0
- package/src/components/kiva/calendar/dialogs/add-edit-event-dialog.tsx +287 -0
- package/src/components/kiva/calendar/dialogs/delete-event-dialog.tsx +73 -0
- package/src/components/kiva/calendar/dialogs/event-details-dialog.tsx +163 -0
- package/src/components/kiva/calendar/dialogs/events-list-dialog.tsx +122 -0
- package/src/components/kiva/calendar/dnd/draggable-event.tsx +66 -0
- package/src/components/kiva/calendar/dnd/droppable-area.tsx +53 -0
- package/src/components/kiva/calendar/dnd/resizable-event.tsx +190 -0
- package/src/components/kiva/calendar/header/calendar-header.tsx +84 -0
- package/src/components/kiva/calendar/header/date-navigator.tsx +188 -0
- package/src/components/kiva/calendar/header/filter.tsx +80 -0
- package/src/components/kiva/calendar/header/today-button.tsx +49 -0
- package/src/components/kiva/calendar/header/user-select.tsx +111 -0
- package/src/components/kiva/calendar/header/view-tabs.tsx +144 -0
- package/src/components/kiva/calendar/helpers.ts +617 -0
- package/src/components/kiva/calendar/hooks/use-disclosure.ts +19 -0
- package/src/components/kiva/calendar/hooks/use-local-storage.ts +40 -0
- package/src/components/kiva/calendar/hooks/use-media-query.ts +25 -0
- package/src/components/kiva/calendar/hooks.ts +5 -0
- package/src/components/kiva/calendar/index.tsx +27 -0
- package/src/components/kiva/calendar/interfaces.ts +35 -0
- package/src/components/kiva/calendar/schemas.ts +20 -0
- package/src/components/kiva/calendar/settings/settings.tsx +116 -0
- package/src/components/kiva/calendar/skeletons/calendar-header-skeleton.tsx +27 -0
- package/src/components/kiva/calendar/skeletons/calendar-skeleton.tsx +19 -0
- package/src/components/kiva/calendar/skeletons/day-view-skeleton.tsx +40 -0
- package/src/components/kiva/calendar/skeletons/month-view-skeleton.tsx +36 -0
- package/src/components/kiva/calendar/skeletons/week-view-skeleton.tsx +48 -0
- package/src/components/kiva/calendar/skeletons/year-view-skeleton.tsx +42 -0
- package/src/components/kiva/calendar/types.ts +25 -0
- package/src/components/kiva/calendar/views/agenda-view/agenda-events.tsx +150 -0
- package/src/components/kiva/calendar/views/month-view/calendar-month-view.tsx +82 -0
- package/src/components/kiva/calendar/views/month-view/day-cell.tsx +218 -0
- package/src/components/kiva/calendar/views/month-view/event-bullet.tsx +46 -0
- package/src/components/kiva/calendar/views/month-view/month-event-badge.tsx +154 -0
- package/src/components/kiva/calendar/views/timeline/calendar-timeline-view.tsx +100 -0
- package/src/components/kiva/calendar/views/timeline/lib/timeline-layout.ts +130 -0
- package/src/components/kiva/calendar/views/timeline/lib/timeline-model.ts +504 -0
- package/src/components/kiva/calendar/views/timeline/timeline-event-bar.tsx +68 -0
- package/src/components/kiva/calendar/views/timeline/timeline-grid-header.tsx +125 -0
- package/src/components/kiva/calendar/views/timeline/timeline-row.tsx +159 -0
- package/src/components/kiva/calendar/views/timeline/timeline-section.tsx +61 -0
- package/src/components/kiva/calendar/views/timeline/use-timeline-sections.ts +278 -0
- package/src/components/kiva/calendar/views/week-and-day-view/calendar-day-view.tsx +277 -0
- package/src/components/kiva/calendar/views/week-and-day-view/calendar-time-line.tsx +47 -0
- package/src/components/kiva/calendar/views/week-and-day-view/calendar-week-view.tsx +229 -0
- package/src/components/kiva/calendar/views/week-and-day-view/day-view-multi-day-events-row.tsx +79 -0
- package/src/components/kiva/calendar/views/week-and-day-view/event-block.tsx +116 -0
- package/src/components/kiva/calendar/views/week-and-day-view/render-grouped-events.tsx +54 -0
- package/src/components/kiva/calendar/views/week-and-day-view/week-view-multi-day-events-row.tsx +159 -0
- package/src/components/kiva/calendar/views/year-view/calendar-year-view.tsx +159 -0
- package/src/components/kiva/data-table-side-filters/components/side-filter-active-chips.tsx +137 -0
- package/src/components/kiva/data-table-side-filters/components/side-filter-clear.tsx +34 -0
- package/src/components/kiva/data-table-side-filters/components/side-filter-search.tsx +67 -0
- package/src/components/kiva/data-table-side-filters/components/side-filter-section.tsx +77 -0
- package/src/components/kiva/data-table-side-filters/controllers/side-filter-async-options.tsx +354 -0
- package/src/components/kiva/data-table-side-filters/controllers/side-filter-boolean.tsx +66 -0
- package/src/components/kiva/data-table-side-filters/controllers/side-filter-checkbox-list.tsx +137 -0
- package/src/components/kiva/data-table-side-filters/controllers/side-filter-date-range.tsx +204 -0
- package/src/components/kiva/data-table-side-filters/controllers/side-filter-numeric-range.tsx +162 -0
- package/src/components/kiva/data-table-side-filters/controllers/side-filter-options-dropdown.tsx +191 -0
- package/src/components/kiva/data-table-side-filters/controllers/side-filter-text.tsx +53 -0
- package/src/components/kiva/data-table-side-filters/core/query-translator.ts +367 -0
- package/src/components/kiva/data-table-side-filters/core/types.ts +81 -0
- package/src/components/kiva/data-table-side-filters/data-table-side-filters.tsx +483 -0
- package/src/components/kiva/data-table-side-filters/hooks/use-data-table-side-filters.tsx +160 -0
- package/src/components/kiva/data-table-side-filters/hooks/use-show-more.tsx +62 -0
- package/src/components/kiva/data-table-side-filters/index.tsx +44 -0
- package/src/components/kiva/data-table-side-filters/lib/render-mode.ts +62 -0
- package/src/components/kiva/date-time-picker.tsx +163 -0
- package/src/components/kiva/editable-record-detail.tsx +809 -0
- package/src/components/kiva/enum-option-editor/enum-option-editor.tsx +891 -0
- package/src/components/kiva/enum-option-editor/index.tsx +26 -0
- package/src/components/kiva/enum-option-editor/kiva-enum-option-editor.tsx +320 -0
- package/src/components/kiva/enum-option-editor/types.ts +90 -0
- package/src/components/kiva/kanban.tsx +1376 -0
- package/src/components/kiva/kiva-data-export-menu.tsx +543 -0
- package/src/components/kiva/map.tsx +1631 -0
- package/src/components/kiva/pivot-calendar/components/group-sidebar.tsx +95 -0
- package/src/components/kiva/pivot-calendar/components/pivot-calendar-toolbar.tsx +113 -0
- package/src/components/kiva/pivot-calendar/components/stats-cell.tsx +126 -0
- package/src/components/kiva/pivot-calendar/helpers.ts +374 -0
- package/src/components/kiva/pivot-calendar/hooks/use-pivot-calendar.ts +222 -0
- package/src/components/kiva/pivot-calendar/index.tsx +32 -0
- package/src/components/kiva/pivot-calendar/pivot-calendar.tsx +107 -0
- package/src/components/kiva/pivot-calendar/types.ts +154 -0
- package/src/components/kiva/pivot-calendar/views/days-of-month-view.tsx +37 -0
- package/src/components/kiva/pivot-calendar/views/days-of-week-view.tsx +37 -0
- package/src/components/kiva/pivot-calendar/views/month-calendar-view.tsx +154 -0
- package/src/components/kiva/pivot-calendar/views/months-of-year-view.tsx +40 -0
- package/src/components/kiva/pivot-calendar/views/pivot-grid-view.tsx +251 -0
- package/src/components/kiva/pivot-filter/index.tsx +9 -0
- package/src/components/kiva/pivot-filter/pivot-filter-item.tsx +159 -0
- package/src/components/kiva/pivot-filter/pivot-filter-settings.tsx +161 -0
- package/src/components/kiva/pivot-filter/pivot-filter.tsx +187 -0
- package/src/components/kiva/pivot-filter/types.ts +82 -0
- package/src/components/kiva/pivot-grid/hooks/use-pivot-grid.ts +683 -0
- package/src/components/kiva/pivot-grid/index.tsx +23 -0
- package/src/components/kiva/pivot-grid/lib/pivot-grid-color-rules.ts +98 -0
- package/src/components/kiva/pivot-grid/lib/pivot-grid-export.ts +265 -0
- package/src/components/kiva/pivot-grid/lib/pivot-grid-model.ts +1110 -0
- package/src/components/kiva/pivot-grid/pivot-grid-demo-data.ts +200 -0
- package/src/components/kiva/pivot-grid/pivot-grid-export-menu.tsx +66 -0
- package/src/components/kiva/pivot-grid/pivot-grid-toolbar.tsx +85 -0
- package/src/components/kiva/pivot-grid/pivot-grid.tsx +601 -0
- package/src/components/kiva/pivot-grid/types.ts +195 -0
- package/src/components/kiva/place-autocomplete.tsx +484 -0
- package/src/components/kiva/record-delete-confirm-dialog/index.tsx +10 -0
- package/src/components/kiva/record-delete-confirm-dialog/record-delete-confirm-dialog.tsx +266 -0
- package/src/components/kiva/record-delete-confirm-dialog/types.ts +25 -0
- package/src/hooks/kiva/_internal/autonumber-setting.ts +112 -0
- package/src/hooks/kiva/_internal/form-layout-to-view.ts +665 -0
- package/src/hooks/kiva/_internal/kiva-hook-utils.ts +143 -0
- package/src/hooks/kiva/_internal/use-computed-field-evaluator.tsx +310 -0
- package/src/hooks/kiva/_internal/use-field-actions-evaluator.tsx +398 -0
- package/src/hooks/kiva/_internal/use-form-actions-evaluator.tsx +363 -0
- package/src/hooks/kiva/_internal/use-form-view-engine.tsx +2200 -0
- package/src/hooks/kiva/_internal/use-kiva-form-view-fields.tsx +190 -0
- package/src/hooks/kiva/_internal/use-kiva-kanban-cards.tsx +311 -0
- package/src/hooks/kiva/use-data-export.tsx +265 -0
- package/src/hooks/kiva/use-kiva-calendar.tsx +992 -0
- package/src/hooks/kiva/use-kiva-data-export.tsx +173 -0
- package/src/hooks/kiva/use-kiva-data-grid.tsx +4750 -0
- package/src/hooks/kiva/use-kiva-data-view-select.tsx +1273 -0
- package/src/hooks/kiva/use-kiva-form-view.tsx +1581 -0
- package/src/hooks/kiva/use-kiva-inventory.tsx +184 -0
- package/src/hooks/kiva/use-kiva-kanban.tsx +1750 -0
- package/src/hooks/kiva/use-kiva-map-view.tsx +2255 -0
- package/src/hooks/kiva/use-kiva-pivot-calendar.tsx +759 -0
- package/src/hooks/kiva/use-kiva-pivot-filter.tsx +1523 -0
- package/src/hooks/kiva/use-kiva-pivot-grid.tsx +543 -0
- package/src/hooks/kiva/use-kiva-tenant.tsx +313 -0
- package/src/hooks/kiva/use-parameter-persistence.ts +191 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export { Calendar } from './calendar';
|
|
6
|
+
export type { CalendarProps } from './calendar';
|
|
7
|
+
export { CalendarProvider } from './contexts/calendar-context';
|
|
8
|
+
export { CalendarSidebar } from './calendar-sidebar';
|
|
9
|
+
export type { CalendarProviderProps } from './contexts/calendar-context';
|
|
10
|
+
export type {
|
|
11
|
+
TCalendarView,
|
|
12
|
+
TEventColor,
|
|
13
|
+
TTimelineNavigationMode,
|
|
14
|
+
TTimelineView,
|
|
15
|
+
TWeekStartsOn
|
|
16
|
+
} from './types';
|
|
17
|
+
export type {
|
|
18
|
+
IEvent, IUser, ICalendarCell, CalendarFilterItem, TEventId
|
|
19
|
+
} from './interfaces';
|
|
20
|
+
export { CalendarTimelineView } from './views/timeline/calendar-timeline-view';
|
|
21
|
+
export type {
|
|
22
|
+
TimelineColumn,
|
|
23
|
+
TimelineColumnGroup,
|
|
24
|
+
TimelineRow,
|
|
25
|
+
TimelineSection,
|
|
26
|
+
TimelineVariant
|
|
27
|
+
} from './views/timeline/lib/timeline-model';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { type TEventColor } from './types';
|
|
4
|
+
|
|
5
|
+
export interface IUser {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
picturePath: string | null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Records are keyed by UUID in some back ends and by number in others. */
|
|
12
|
+
export type TEventId = number | string;
|
|
13
|
+
|
|
14
|
+
export interface IEvent {
|
|
15
|
+
id: TEventId;
|
|
16
|
+
startDate: string;
|
|
17
|
+
endDate: string;
|
|
18
|
+
title: string;
|
|
19
|
+
color: TEventColor;
|
|
20
|
+
description: string;
|
|
21
|
+
user: IUser;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ICalendarCell {
|
|
25
|
+
day: number;
|
|
26
|
+
currentMonth: boolean;
|
|
27
|
+
date: Date;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Generic filter item for the header filter select dropdown. */
|
|
31
|
+
export interface CalendarFilterItem {
|
|
32
|
+
id: string;
|
|
33
|
+
label: string;
|
|
34
|
+
image?: string | null;
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
export const eventSchema = z.object({
|
|
6
|
+
title: z.string().min(1, 'Title is required'),
|
|
7
|
+
description: z.string(),
|
|
8
|
+
startDate: z.date({ message: 'Start date is required' }),
|
|
9
|
+
endDate: z.date({ message: 'End date is required' }),
|
|
10
|
+
color: z.enum([
|
|
11
|
+
'blue',
|
|
12
|
+
'green',
|
|
13
|
+
'red',
|
|
14
|
+
'yellow',
|
|
15
|
+
'purple',
|
|
16
|
+
'orange'
|
|
17
|
+
])
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export type TEventFormData = z.infer<typeof eventSchema>;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { SettingsIcon } from 'lucide-react';
|
|
6
|
+
|
|
7
|
+
import { Button } from '@kivacore/ui-pro-shared/components/button';
|
|
8
|
+
import {
|
|
9
|
+
DropdownMenu,
|
|
10
|
+
DropdownMenuContent,
|
|
11
|
+
DropdownMenuGroup,
|
|
12
|
+
DropdownMenuItem,
|
|
13
|
+
DropdownMenuLabel,
|
|
14
|
+
DropdownMenuRadioGroup,
|
|
15
|
+
DropdownMenuRadioItem,
|
|
16
|
+
DropdownMenuSeparator,
|
|
17
|
+
DropdownMenuShortcut,
|
|
18
|
+
DropdownMenuTrigger
|
|
19
|
+
} from '@kivacore/ui-pro-shared/components/dropdown-menu';
|
|
20
|
+
import { Switch } from '@kivacore/ui-pro-shared/components/switch';
|
|
21
|
+
|
|
22
|
+
import { useUiTranslation } from '@kivacore/ui-pro-shared/hooks/kiva/use-ui-translation';
|
|
23
|
+
|
|
24
|
+
import { type TTimelineNavigationMode } from '../types';
|
|
25
|
+
import { useCalendar } from '../contexts/calendar-context';
|
|
26
|
+
|
|
27
|
+
export function Settings() {
|
|
28
|
+
const {
|
|
29
|
+
badgeVariant,
|
|
30
|
+
setBadgeVariant,
|
|
31
|
+
use24HourFormat,
|
|
32
|
+
toggleTimeFormat,
|
|
33
|
+
agendaModeGroupBy,
|
|
34
|
+
setAgendaModeGroupBy,
|
|
35
|
+
yearTimelineMode,
|
|
36
|
+
setYearTimelineMode,
|
|
37
|
+
quarterMode,
|
|
38
|
+
setQuarterMode
|
|
39
|
+
} = useCalendar();
|
|
40
|
+
const { t } = useUiTranslation();
|
|
41
|
+
const isDotVariant = badgeVariant === 'dot';
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<DropdownMenu>
|
|
45
|
+
<DropdownMenuTrigger asChild>
|
|
46
|
+
<Button variant="outline" size="icon">
|
|
47
|
+
<SettingsIcon />
|
|
48
|
+
</Button>
|
|
49
|
+
</DropdownMenuTrigger>
|
|
50
|
+
<DropdownMenuContent className="w-56">
|
|
51
|
+
<DropdownMenuLabel>{t('ui.calendar.settings', 'Settings')}</DropdownMenuLabel>
|
|
52
|
+
<DropdownMenuSeparator />
|
|
53
|
+
<DropdownMenuGroup>
|
|
54
|
+
<DropdownMenuItem>
|
|
55
|
+
{t('ui.calendar.dotBadge', 'Dot Badge')}
|
|
56
|
+
<DropdownMenuShortcut>
|
|
57
|
+
<Switch
|
|
58
|
+
checked={isDotVariant}
|
|
59
|
+
onCheckedChange={checked => setBadgeVariant(checked ? 'dot' : 'colored')} />
|
|
60
|
+
</DropdownMenuShortcut>
|
|
61
|
+
</DropdownMenuItem>
|
|
62
|
+
<DropdownMenuItem>
|
|
63
|
+
{t('ui.calendar.24HourFormat', '24-Hour Format')}
|
|
64
|
+
<DropdownMenuShortcut>
|
|
65
|
+
<Switch
|
|
66
|
+
checked={use24HourFormat}
|
|
67
|
+
onCheckedChange={toggleTimeFormat} />
|
|
68
|
+
</DropdownMenuShortcut>
|
|
69
|
+
</DropdownMenuItem>
|
|
70
|
+
</DropdownMenuGroup>
|
|
71
|
+
<DropdownMenuSeparator />
|
|
72
|
+
<DropdownMenuGroup>
|
|
73
|
+
<DropdownMenuLabel>{t('ui.calendar.agendaGroupBy', 'Agenda Group By')}</DropdownMenuLabel>
|
|
74
|
+
<DropdownMenuRadioGroup
|
|
75
|
+
value={agendaModeGroupBy}
|
|
76
|
+
onValueChange={value => setAgendaModeGroupBy(value as 'date' | 'color')}>
|
|
77
|
+
<DropdownMenuRadioItem value="date">{t('ui.calendar.date', 'Date')}</DropdownMenuRadioItem>
|
|
78
|
+
<DropdownMenuRadioItem value="color">{t('ui.calendar.color', 'Color')}</DropdownMenuRadioItem>
|
|
79
|
+
</DropdownMenuRadioGroup>
|
|
80
|
+
</DropdownMenuGroup>
|
|
81
|
+
<DropdownMenuSeparator />
|
|
82
|
+
<DropdownMenuGroup>
|
|
83
|
+
<DropdownMenuLabel>
|
|
84
|
+
{t('ui.calendar.yearTimelineDisplay', 'Year Timeline Display')}
|
|
85
|
+
</DropdownMenuLabel>
|
|
86
|
+
<DropdownMenuRadioGroup
|
|
87
|
+
value={yearTimelineMode}
|
|
88
|
+
onValueChange={value => setYearTimelineMode(value as TTimelineNavigationMode)}>
|
|
89
|
+
<DropdownMenuRadioItem value="continuous">
|
|
90
|
+
{t('ui.calendar.continuous', 'Continuous')}
|
|
91
|
+
</DropdownMenuRadioItem>
|
|
92
|
+
<DropdownMenuRadioItem value="single">
|
|
93
|
+
{t('ui.calendar.singleYear', 'Single year')}
|
|
94
|
+
</DropdownMenuRadioItem>
|
|
95
|
+
</DropdownMenuRadioGroup>
|
|
96
|
+
</DropdownMenuGroup>
|
|
97
|
+
<DropdownMenuSeparator />
|
|
98
|
+
<DropdownMenuGroup>
|
|
99
|
+
<DropdownMenuLabel>
|
|
100
|
+
{t('ui.calendar.quarterDisplay', 'Quarter Display')}
|
|
101
|
+
</DropdownMenuLabel>
|
|
102
|
+
<DropdownMenuRadioGroup
|
|
103
|
+
value={quarterMode}
|
|
104
|
+
onValueChange={value => setQuarterMode(value as TTimelineNavigationMode)}>
|
|
105
|
+
<DropdownMenuRadioItem value="continuous">
|
|
106
|
+
{t('ui.calendar.continuous', 'Continuous')}
|
|
107
|
+
</DropdownMenuRadioItem>
|
|
108
|
+
<DropdownMenuRadioItem value="single">
|
|
109
|
+
{t('ui.calendar.singleQuarter', 'Single quarter')}
|
|
110
|
+
</DropdownMenuRadioItem>
|
|
111
|
+
</DropdownMenuRadioGroup>
|
|
112
|
+
</DropdownMenuGroup>
|
|
113
|
+
</DropdownMenuContent>
|
|
114
|
+
</DropdownMenu>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { Skeleton } from '@kivacore/ui-pro-shared/components/skeleton';
|
|
6
|
+
|
|
7
|
+
export function CalendarHeaderSkeleton() {
|
|
8
|
+
return (
|
|
9
|
+
<div className="flex items-center justify-between border-b px-4 py-2">
|
|
10
|
+
<div className="flex items-center gap-2">
|
|
11
|
+
<Skeleton className="size-8" />
|
|
12
|
+
<Skeleton className="h-8 w-32" />
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div className="flex items-center gap-2">
|
|
16
|
+
<Skeleton className="h-8 w-24" />
|
|
17
|
+
<div className="flex gap-1">
|
|
18
|
+
<Skeleton className="size-8" />
|
|
19
|
+
<Skeleton className="size-8" />
|
|
20
|
+
<Skeleton className="size-8" />
|
|
21
|
+
</div>
|
|
22
|
+
<Skeleton className="h-8 w-24" />
|
|
23
|
+
<Skeleton className="size-8" />
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { CalendarHeaderSkeleton } from './calendar-header-skeleton';
|
|
6
|
+
import { MonthViewSkeleton } from './month-view-skeleton';
|
|
7
|
+
|
|
8
|
+
export function CalendarSkeleton() {
|
|
9
|
+
return (
|
|
10
|
+
<div className="container mx-auto">
|
|
11
|
+
<div className="flex h-screen flex-col">
|
|
12
|
+
<CalendarHeaderSkeleton />
|
|
13
|
+
<div className="flex-1">
|
|
14
|
+
<MonthViewSkeleton />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { Skeleton } from '@kivacore/ui-pro-shared/components/skeleton';
|
|
6
|
+
|
|
7
|
+
const HOUR_LABEL_KEYS = Array.from({ length: 12 }, (_, i) => `hour-label-${i}`);
|
|
8
|
+
const HOUR_SLOT_KEYS = Array.from({ length: 12 }, (_, i) => `hour-slot-${i}`);
|
|
9
|
+
|
|
10
|
+
export function DayViewSkeleton() {
|
|
11
|
+
return (
|
|
12
|
+
<div className="flex h-full flex-col">
|
|
13
|
+
<div className="grid grid-cols-2 border-b">
|
|
14
|
+
<div className="w-18" />
|
|
15
|
+
<div className="flex flex-col items-center justify-center py-2">
|
|
16
|
+
<Skeleton className="h-6 w-24 rounded-full" />
|
|
17
|
+
<Skeleton className="mt-1 h-4 w-16" />
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div className="flex flex-1 overflow-y-auto">
|
|
22
|
+
<div className="w-18 shrink-0">
|
|
23
|
+
{HOUR_LABEL_KEYS.map(key => (
|
|
24
|
+
<div key={key} className="relative h-12 border-b pr-2 text-right">
|
|
25
|
+
<Skeleton className="absolute -top-3 right-2 h-4 w-10" />
|
|
26
|
+
</div>
|
|
27
|
+
))}
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div className="flex-1">
|
|
31
|
+
<div className="relative">
|
|
32
|
+
{HOUR_SLOT_KEYS.map(key => (
|
|
33
|
+
<div key={key} className="h-12 border-b" />
|
|
34
|
+
))}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { Skeleton } from '@kivacore/ui-pro-shared/components/skeleton';
|
|
6
|
+
|
|
7
|
+
const WEEKDAY_KEYS = Array.from({ length: 7 }, (_, i) => `weekday-${i}`);
|
|
8
|
+
const CELL_KEYS = Array.from({ length: 42 }, (_, i) => `cell-${i}`);
|
|
9
|
+
const EVENT_KEYS = Array.from({ length: 3 }, (_, i) => `event-${i}`);
|
|
10
|
+
|
|
11
|
+
export function MonthViewSkeleton() {
|
|
12
|
+
return (
|
|
13
|
+
<div className="flex h-full flex-col">
|
|
14
|
+
<div className="grid grid-cols-7 border-b py-2">
|
|
15
|
+
{WEEKDAY_KEYS.map(key => (
|
|
16
|
+
<div key={key} className="flex justify-center">
|
|
17
|
+
<Skeleton className="h-6 w-12" />
|
|
18
|
+
</div>
|
|
19
|
+
))}
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div className="grid flex-1 grid-cols-7 grid-rows-6">
|
|
23
|
+
{CELL_KEYS.map(cellKey => (
|
|
24
|
+
<div key={cellKey} className="border-b border-r p-1">
|
|
25
|
+
<Skeleton className="mb-1 size-6 rounded-full" />
|
|
26
|
+
<div className="mt-1 space-y-1">
|
|
27
|
+
{EVENT_KEYS.slice(0, Math.floor(Math.random() * 3)).map(eventKey => (
|
|
28
|
+
<Skeleton key={`${cellKey}-${eventKey}`} className="h-5 w-full" />
|
|
29
|
+
))}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
))}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { Skeleton } from '@kivacore/ui-pro-shared/components/skeleton';
|
|
6
|
+
|
|
7
|
+
const DAY_HEADER_KEYS = Array.from({ length: 7 }, (_, i) => `day-header-${i}`);
|
|
8
|
+
const HOUR_LABEL_KEYS = Array.from({ length: 12 }, (_, i) => `hour-label-${i}`);
|
|
9
|
+
const DAY_COL_KEYS = Array.from({ length: 7 }, (_, i) => `day-col-${i}`);
|
|
10
|
+
const SLOT_KEYS = Array.from({ length: 12 }, (_, i) => `slot-${i}`);
|
|
11
|
+
|
|
12
|
+
export function WeekViewSkeleton() {
|
|
13
|
+
return (
|
|
14
|
+
<div className="flex h-full flex-col">
|
|
15
|
+
<div className="grid grid-cols-8 border-b">
|
|
16
|
+
<div className="w-18" />
|
|
17
|
+
{DAY_HEADER_KEYS.map(key => (
|
|
18
|
+
<div
|
|
19
|
+
key={key}
|
|
20
|
+
className="flex flex-col items-center justify-center py-2">
|
|
21
|
+
<Skeleton className="h-6 w-10 rounded-full" />
|
|
22
|
+
<Skeleton className="mt-1 h-4 w-6" />
|
|
23
|
+
</div>
|
|
24
|
+
))}
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div className="flex flex-1 overflow-y-auto">
|
|
28
|
+
<div className="w-18 shrink-0">
|
|
29
|
+
{HOUR_LABEL_KEYS.map(key => (
|
|
30
|
+
<div key={key} className="relative h-12 border-b pr-2 text-right">
|
|
31
|
+
<Skeleton className="absolute -top-3 right-2 h-4 w-10" />
|
|
32
|
+
</div>
|
|
33
|
+
))}
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div className="grid flex-1 grid-cols-7 divide-x">
|
|
37
|
+
{DAY_COL_KEYS.map(colKey => (
|
|
38
|
+
<div key={colKey} className="relative">
|
|
39
|
+
{SLOT_KEYS.map(slotKey => (
|
|
40
|
+
<div key={`${colKey}-${slotKey}`} className="h-12 border-b" />
|
|
41
|
+
))}
|
|
42
|
+
</div>
|
|
43
|
+
))}
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { Skeleton } from '@kivacore/ui-pro-shared/components/skeleton';
|
|
6
|
+
|
|
7
|
+
const MONTH_KEYS = Array.from({ length: 12 }, (_, i) => `month-${i}`);
|
|
8
|
+
const WEEKDAY_KEYS = Array.from({ length: 7 }, (_, i) => `weekday-${i}`);
|
|
9
|
+
const CELL_KEYS = Array.from({ length: 42 }, (_, i) => `cell-${i}`);
|
|
10
|
+
|
|
11
|
+
export function YearViewSkeleton() {
|
|
12
|
+
return (
|
|
13
|
+
<div className="hidden sm:grid grid-cols-3 gap-4 grow overflow-hidden auto-rows-fr lg:grid-cols-4">
|
|
14
|
+
{MONTH_KEYS.map(monthKey => (
|
|
15
|
+
<div
|
|
16
|
+
key={monthKey}
|
|
17
|
+
className="flex flex-col border rounded-md overflow-hidden h-full animate-pulse">
|
|
18
|
+
<div className="bg-primary/5 px-1 py-2 text-center">
|
|
19
|
+
<Skeleton className="h-4 w-24 mx-auto" />
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div className="grid grid-cols-7 text-center text-xs py-2 px-1">
|
|
23
|
+
{WEEKDAY_KEYS.map(weekdayKey => (
|
|
24
|
+
<Skeleton key={`${monthKey}-${weekdayKey}`} className="size-3 mx-auto" />
|
|
25
|
+
))}
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div className="grid grid-cols-7 gap-0 p-1 grow">
|
|
29
|
+
{CELL_KEYS.map(cellKey => (
|
|
30
|
+
<div
|
|
31
|
+
key={`${monthKey}-${cellKey}`}
|
|
32
|
+
className="flex flex-col items-center justify-center p-1">
|
|
33
|
+
<Skeleton className="size-4 rounded-full" />
|
|
34
|
+
<Skeleton className="h-1.5 w-3 mt-1" />
|
|
35
|
+
</div>
|
|
36
|
+
))}
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
))}
|
|
40
|
+
</div>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* Keep the unions on one line — the registry doc generator only parses inline unions. */
|
|
4
|
+
export type TCalendarView = 'day' | 'week' | 'month' | 'year' | 'agenda' | 'year-timeline' | 'quarter' | '13weeks';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Views rendered by the shared period-timeline engine: a stack of period rows
|
|
8
|
+
* (quarter / month / week) whose bars span the columns their date range covers.
|
|
9
|
+
*/
|
|
10
|
+
export type TTimelineView = 'year-timeline' | 'quarter' | '13weeks';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* How a timeline view paginates its periods.
|
|
14
|
+
* `continuous` stacks periods vertically and appends more as the user scrolls,
|
|
15
|
+
* `single` renders exactly one period and moves with the prev/next controls.
|
|
16
|
+
*/
|
|
17
|
+
export type TTimelineNavigationMode = 'continuous' | 'single';
|
|
18
|
+
|
|
19
|
+
export type TEventColor = 'blue' | 'green' | 'red' | 'yellow' | 'purple' | 'orange';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Day index for `weekStartsOn`, matching date-fns:
|
|
23
|
+
* 0 = Sunday, 1 = Monday, ..., 6 = Saturday.
|
|
24
|
+
*/
|
|
25
|
+
export type TWeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { type FC } from 'react';
|
|
6
|
+
|
|
7
|
+
import { format, parseISO } from 'date-fns';
|
|
8
|
+
|
|
9
|
+
import { Avatar, AvatarFallback, AvatarImage } from '@kivacore/ui-pro-shared/components/avatar';
|
|
10
|
+
import {
|
|
11
|
+
Command,
|
|
12
|
+
CommandEmpty,
|
|
13
|
+
CommandGroup,
|
|
14
|
+
CommandInput,
|
|
15
|
+
CommandItem,
|
|
16
|
+
CommandList
|
|
17
|
+
} from '@kivacore/ui-pro-shared/components/command';
|
|
18
|
+
import { cn } from '@kivacore/ui-pro-shared/lib/utils';
|
|
19
|
+
|
|
20
|
+
import { useUiTranslation } from '@kivacore/ui-pro-shared/hooks/kiva/use-ui-translation';
|
|
21
|
+
import { useDateFormat } from '@kivacore/ui-pro-shared/hooks/kiva/use-date-format';
|
|
22
|
+
|
|
23
|
+
import { useCalendar } from '../../contexts/calendar-context';
|
|
24
|
+
import { EventDetailsDialog } from '../../dialogs/event-details-dialog';
|
|
25
|
+
import {
|
|
26
|
+
formatTime,
|
|
27
|
+
getBgColor,
|
|
28
|
+
getColorClass,
|
|
29
|
+
getEventsForMonth,
|
|
30
|
+
getFirstLetters,
|
|
31
|
+
toCapitalize
|
|
32
|
+
} from '../../helpers';
|
|
33
|
+
import { EventBullet } from '../month-view/event-bullet';
|
|
34
|
+
|
|
35
|
+
export const AgendaEvents: FC = () => {
|
|
36
|
+
const {
|
|
37
|
+
events,
|
|
38
|
+
use24HourFormat,
|
|
39
|
+
badgeVariant,
|
|
40
|
+
agendaModeGroupBy,
|
|
41
|
+
selectedDate,
|
|
42
|
+
searchPlaceholder
|
|
43
|
+
} = useCalendar();
|
|
44
|
+
const { t } = useUiTranslation();
|
|
45
|
+
const { formatDate } = useDateFormat();
|
|
46
|
+
|
|
47
|
+
const monthEvents = getEventsForMonth(events, selectedDate);
|
|
48
|
+
|
|
49
|
+
const agendaEvents: Record<string, Array<(typeof monthEvents)[number]>> = {};
|
|
50
|
+
|
|
51
|
+
for (const event of monthEvents) {
|
|
52
|
+
const key
|
|
53
|
+
= agendaModeGroupBy === 'date' ? format(parseISO(event.startDate), 'yyyy-MM-dd') : event.color;
|
|
54
|
+
const group = agendaEvents[key] as
|
|
55
|
+
| Array<(typeof monthEvents)[number]>
|
|
56
|
+
| undefined;
|
|
57
|
+
|
|
58
|
+
if (group) {
|
|
59
|
+
group.push(event);
|
|
60
|
+
} else {
|
|
61
|
+
agendaEvents[key] = [event];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const groupedAndSortedEvents = Object.entries(agendaEvents).sort(
|
|
66
|
+
(a, b) => new Date(a[0]).getTime() - new Date(b[0]).getTime()
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<Command className="py-4 h-[80vh] bg-transparent">
|
|
71
|
+
<div className="mb-4 mx-4">
|
|
72
|
+
<CommandInput placeholder={searchPlaceholder ?? t('ui.calendar.searchPlaceholder', 'Search events...')} />
|
|
73
|
+
</div>
|
|
74
|
+
<CommandList className="max-h-max px-3 border-t">
|
|
75
|
+
{groupedAndSortedEvents.map(([date, groupedEvents]) => (
|
|
76
|
+
<CommandGroup
|
|
77
|
+
key={date}
|
|
78
|
+
heading={agendaModeGroupBy === 'date' ? formatDate(parseISO(date)) : toCapitalize(groupedEvents[0]?.color ?? '')}>
|
|
79
|
+
{groupedEvents.map(event => (
|
|
80
|
+
<CommandItem
|
|
81
|
+
key={event.id}
|
|
82
|
+
className={cn(
|
|
83
|
+
'mb-2 p-4 border rounded-md data-[selected=true]:bg-background transition-all data-[selected=true]:text-foreground hover:cursor-pointer',
|
|
84
|
+
{
|
|
85
|
+
[getColorClass(event.color)]: badgeVariant === 'colored',
|
|
86
|
+
'hover:bg-zinc-200 dark:hover:bg-gray-900':
|
|
87
|
+
badgeVariant === 'dot',
|
|
88
|
+
'hover:opacity-60': badgeVariant === 'colored'
|
|
89
|
+
}
|
|
90
|
+
)}>
|
|
91
|
+
<EventDetailsDialog event={event}>
|
|
92
|
+
<div className="w-full flex items-center justify-between gap-4">
|
|
93
|
+
<div className="flex items-center gap-2">
|
|
94
|
+
{badgeVariant === 'dot' ? (
|
|
95
|
+
<EventBullet color={event.color} />
|
|
96
|
+
) : (
|
|
97
|
+
<Avatar>
|
|
98
|
+
<AvatarImage src="" alt="@shadcn" />
|
|
99
|
+
<AvatarFallback className={getBgColor(event.color)}>
|
|
100
|
+
{getFirstLetters(event.title)}
|
|
101
|
+
</AvatarFallback>
|
|
102
|
+
</Avatar>
|
|
103
|
+
)}
|
|
104
|
+
<div className="flex flex-col">
|
|
105
|
+
<p
|
|
106
|
+
className={cn({
|
|
107
|
+
'font-medium': badgeVariant === 'dot',
|
|
108
|
+
'text-foreground': badgeVariant === 'dot'
|
|
109
|
+
})}>
|
|
110
|
+
{event.title}
|
|
111
|
+
</p>
|
|
112
|
+
<p className="text-muted-foreground text-sm line-clamp-1 text-ellipsis md:text-clip w-1/3">
|
|
113
|
+
{event.description}
|
|
114
|
+
</p>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div className="w-40 flex justify-center items-center gap-1">
|
|
118
|
+
{agendaModeGroupBy === 'date' ? (
|
|
119
|
+
<>
|
|
120
|
+
<p className="text-sm">
|
|
121
|
+
{formatTime(event.startDate, use24HourFormat)}
|
|
122
|
+
</p>
|
|
123
|
+
<span className="text-muted-foreground">-</span>
|
|
124
|
+
<p className="text-sm">
|
|
125
|
+
{formatTime(event.endDate, use24HourFormat)}
|
|
126
|
+
</p>
|
|
127
|
+
</>
|
|
128
|
+
) : (
|
|
129
|
+
<>
|
|
130
|
+
<p className="text-sm">
|
|
131
|
+
{formatDate(parseISO(event.startDate))}
|
|
132
|
+
</p>
|
|
133
|
+
<span className="text-sm">{t('ui.calendar.at', 'at')}</span>
|
|
134
|
+
<p className="text-sm">
|
|
135
|
+
{formatTime(event.startDate, use24HourFormat)}
|
|
136
|
+
</p>
|
|
137
|
+
</>
|
|
138
|
+
)}
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</EventDetailsDialog>
|
|
142
|
+
</CommandItem>
|
|
143
|
+
))}
|
|
144
|
+
</CommandGroup>
|
|
145
|
+
))}
|
|
146
|
+
<CommandEmpty>{t('ui.calendar.noResults', 'No results found.')}</CommandEmpty>
|
|
147
|
+
</CommandList>
|
|
148
|
+
</Command>
|
|
149
|
+
);
|
|
150
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import { useMemo } from 'react';
|
|
6
|
+
|
|
7
|
+
import { addDays, startOfWeek } from 'date-fns';
|
|
8
|
+
import { motion } from 'motion/react';
|
|
9
|
+
|
|
10
|
+
import { type IEvent } from '../../interfaces';
|
|
11
|
+
|
|
12
|
+
import { staggerContainer, transition } from '../../animations';
|
|
13
|
+
import { useCalendar } from '../../contexts/calendar-context';
|
|
14
|
+
|
|
15
|
+
import {
|
|
16
|
+
calculateMonthEventPositions,
|
|
17
|
+
getCalendarCells
|
|
18
|
+
} from '../../helpers';
|
|
19
|
+
|
|
20
|
+
import { DayCell } from './day-cell';
|
|
21
|
+
|
|
22
|
+
interface IProps {
|
|
23
|
+
singleDayEvents: Array<IEvent>;
|
|
24
|
+
multiDayEvents: Array<IEvent>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const weekdayShortFormatter = new Intl.DateTimeFormat(undefined, { weekday: 'short' });
|
|
28
|
+
|
|
29
|
+
export function CalendarMonthView({ singleDayEvents, multiDayEvents }: IProps) {
|
|
30
|
+
const { selectedDate, weekStartsOn } = useCalendar();
|
|
31
|
+
|
|
32
|
+
const allEvents = [...multiDayEvents, ...singleDayEvents];
|
|
33
|
+
|
|
34
|
+
const weekDays = useMemo(() => {
|
|
35
|
+
const reference = startOfWeek(new Date(), { weekStartsOn });
|
|
36
|
+
|
|
37
|
+
return Array.from({ length: 7 }, (_, i) => weekdayShortFormatter.format(addDays(reference, i)));
|
|
38
|
+
}, [weekStartsOn]);
|
|
39
|
+
|
|
40
|
+
const cells = useMemo(
|
|
41
|
+
() => getCalendarCells(selectedDate, weekStartsOn),
|
|
42
|
+
[selectedDate, weekStartsOn]
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
const eventPositions = useMemo(
|
|
46
|
+
() => calculateMonthEventPositions(
|
|
47
|
+
multiDayEvents,
|
|
48
|
+
singleDayEvents,
|
|
49
|
+
selectedDate
|
|
50
|
+
),
|
|
51
|
+
[multiDayEvents, singleDayEvents, selectedDate]
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<motion.div initial="initial" animate="animate" variants={staggerContainer}>
|
|
56
|
+
<div className="grid grid-cols-7">
|
|
57
|
+
{weekDays.map((day, index) => (
|
|
58
|
+
<motion.div
|
|
59
|
+
key={day}
|
|
60
|
+
className="flex items-center justify-center py-2"
|
|
61
|
+
initial={{ opacity: 0, y: -10 }}
|
|
62
|
+
animate={{ opacity: 1, y: 0 }}
|
|
63
|
+
transition={{ delay: index * 0.05, ...transition }}>
|
|
64
|
+
<span className="text-xs font-medium text-muted-foreground">
|
|
65
|
+
{day}
|
|
66
|
+
</span>
|
|
67
|
+
</motion.div>
|
|
68
|
+
))}
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<div className="grid grid-cols-7 overflow-hidden">
|
|
72
|
+
{cells.map(cell => (
|
|
73
|
+
<DayCell
|
|
74
|
+
key={cell.date.toISOString()}
|
|
75
|
+
cell={cell}
|
|
76
|
+
events={allEvents}
|
|
77
|
+
eventPositions={eventPositions} />
|
|
78
|
+
))}
|
|
79
|
+
</div>
|
|
80
|
+
</motion.div>
|
|
81
|
+
);
|
|
82
|
+
}
|