calendarkit-pro 1.1.0 → 1.2.0

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/index.d.mts CHANGED
@@ -2,6 +2,76 @@ import React$1 from 'react';
2
2
  import { Locale } from 'date-fns';
3
3
  import { ClassValue } from 'clsx';
4
4
 
5
+ declare const en: {
6
+ today: string;
7
+ month: string;
8
+ week: string;
9
+ day: string;
10
+ agenda: string;
11
+ resource: string;
12
+ createEvent: string;
13
+ editEvent: string;
14
+ delete: string;
15
+ save: string;
16
+ cancel: string;
17
+ title: string;
18
+ start: string;
19
+ end: string;
20
+ allDay: string;
21
+ description: string;
22
+ repeat: string;
23
+ noRepeat: string;
24
+ selectCalendar: string;
25
+ selectType: string;
26
+ daily: string;
27
+ weekly: string;
28
+ monthly: string;
29
+ yearly: string;
30
+ search: string;
31
+ allTypes: string;
32
+ timezone: string;
33
+ localTime: string;
34
+ create: string;
35
+ calendars: string;
36
+ event: string;
37
+ task: string;
38
+ appointmentSchedule: string;
39
+ new: string;
40
+ dateAndTime: string;
41
+ whosJoining: string;
42
+ suggestedTimes: string;
43
+ viewSuggestions: string;
44
+ whereWillItBe: string;
45
+ location: string;
46
+ descriptionAndAttachments: string;
47
+ dragAndDrop: string;
48
+ guests: string;
49
+ addGuests: string;
50
+ addAttachment: string;
51
+ moreOptions: string;
52
+ doesNotRepeat: string;
53
+ locationHelpText: string;
54
+ notes: string;
55
+ guestCount: string;
56
+ guestsCount: string;
57
+ repeatFor: string;
58
+ times: string;
59
+ until: string;
60
+ endRepeat: string;
61
+ never: string;
62
+ afterOccurrences: string;
63
+ onDate: string;
64
+ tomorrow: string;
65
+ edit: string;
66
+ duplicate: string;
67
+ eventSingular: string;
68
+ eventPlural: string;
69
+ allCaughtUp: string;
70
+ noEventsScheduled: string;
71
+ noUpcoming: string;
72
+ noUpcomingHint: string;
73
+ };
74
+
5
75
  type ViewType = 'month' | 'week' | 'day' | 'agenda' | 'resource';
6
76
  interface EventAttachment {
7
77
  id: string;
@@ -28,6 +98,10 @@ interface CalendarEvent {
28
98
  resourceId?: string;
29
99
  type?: string;
30
100
  icon?: string;
101
+ /** Set to false to disable drag for this event. Default: true. */
102
+ draggable?: boolean;
103
+ /** Set to false to disable resize for this event. Defaults to the value of `draggable`. */
104
+ resizable?: boolean;
31
105
  attachments?: EventAttachment[];
32
106
  guests?: string[];
33
107
  reminders?: EventReminder[];
@@ -66,50 +140,7 @@ interface CalendarTheme {
66
140
  fontFamily?: string;
67
141
  borderRadius?: string;
68
142
  }
69
- interface CalendarTranslations {
70
- today: string;
71
- month: string;
72
- week: string;
73
- day: string;
74
- agenda: string;
75
- resource: string;
76
- createEvent: string;
77
- editEvent: string;
78
- delete: string;
79
- save: string;
80
- cancel: string;
81
- title: string;
82
- start: string;
83
- end: string;
84
- allDay: string;
85
- description: string;
86
- repeat: string;
87
- noRepeat: string;
88
- selectCalendar: string;
89
- selectType: string;
90
- daily: string;
91
- weekly: string;
92
- monthly: string;
93
- yearly: string;
94
- event: string;
95
- task: string;
96
- appointmentSchedule: string;
97
- new: string;
98
- dateAndTime: string;
99
- timezone: string;
100
- whosJoining: string;
101
- suggestedTimes: string;
102
- viewSuggestions: string;
103
- whereWillItBe: string;
104
- location: string;
105
- descriptionAndAttachments: string;
106
- dragAndDrop: string;
107
- guests: string;
108
- addAttachment: string;
109
- moreOptions: string;
110
- doesNotRepeat: string;
111
- locationHelpText: string;
112
- }
143
+ type CalendarTranslations = typeof en;
113
144
  interface CalendarProps {
114
145
  events?: CalendarEvent[];
115
146
  translations?: Partial<CalendarTranslations>;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,76 @@ import React$1 from 'react';
2
2
  import { Locale } from 'date-fns';
3
3
  import { ClassValue } from 'clsx';
4
4
 
5
+ declare const en: {
6
+ today: string;
7
+ month: string;
8
+ week: string;
9
+ day: string;
10
+ agenda: string;
11
+ resource: string;
12
+ createEvent: string;
13
+ editEvent: string;
14
+ delete: string;
15
+ save: string;
16
+ cancel: string;
17
+ title: string;
18
+ start: string;
19
+ end: string;
20
+ allDay: string;
21
+ description: string;
22
+ repeat: string;
23
+ noRepeat: string;
24
+ selectCalendar: string;
25
+ selectType: string;
26
+ daily: string;
27
+ weekly: string;
28
+ monthly: string;
29
+ yearly: string;
30
+ search: string;
31
+ allTypes: string;
32
+ timezone: string;
33
+ localTime: string;
34
+ create: string;
35
+ calendars: string;
36
+ event: string;
37
+ task: string;
38
+ appointmentSchedule: string;
39
+ new: string;
40
+ dateAndTime: string;
41
+ whosJoining: string;
42
+ suggestedTimes: string;
43
+ viewSuggestions: string;
44
+ whereWillItBe: string;
45
+ location: string;
46
+ descriptionAndAttachments: string;
47
+ dragAndDrop: string;
48
+ guests: string;
49
+ addGuests: string;
50
+ addAttachment: string;
51
+ moreOptions: string;
52
+ doesNotRepeat: string;
53
+ locationHelpText: string;
54
+ notes: string;
55
+ guestCount: string;
56
+ guestsCount: string;
57
+ repeatFor: string;
58
+ times: string;
59
+ until: string;
60
+ endRepeat: string;
61
+ never: string;
62
+ afterOccurrences: string;
63
+ onDate: string;
64
+ tomorrow: string;
65
+ edit: string;
66
+ duplicate: string;
67
+ eventSingular: string;
68
+ eventPlural: string;
69
+ allCaughtUp: string;
70
+ noEventsScheduled: string;
71
+ noUpcoming: string;
72
+ noUpcomingHint: string;
73
+ };
74
+
5
75
  type ViewType = 'month' | 'week' | 'day' | 'agenda' | 'resource';
6
76
  interface EventAttachment {
7
77
  id: string;
@@ -28,6 +98,10 @@ interface CalendarEvent {
28
98
  resourceId?: string;
29
99
  type?: string;
30
100
  icon?: string;
101
+ /** Set to false to disable drag for this event. Default: true. */
102
+ draggable?: boolean;
103
+ /** Set to false to disable resize for this event. Defaults to the value of `draggable`. */
104
+ resizable?: boolean;
31
105
  attachments?: EventAttachment[];
32
106
  guests?: string[];
33
107
  reminders?: EventReminder[];
@@ -66,50 +140,7 @@ interface CalendarTheme {
66
140
  fontFamily?: string;
67
141
  borderRadius?: string;
68
142
  }
69
- interface CalendarTranslations {
70
- today: string;
71
- month: string;
72
- week: string;
73
- day: string;
74
- agenda: string;
75
- resource: string;
76
- createEvent: string;
77
- editEvent: string;
78
- delete: string;
79
- save: string;
80
- cancel: string;
81
- title: string;
82
- start: string;
83
- end: string;
84
- allDay: string;
85
- description: string;
86
- repeat: string;
87
- noRepeat: string;
88
- selectCalendar: string;
89
- selectType: string;
90
- daily: string;
91
- weekly: string;
92
- monthly: string;
93
- yearly: string;
94
- event: string;
95
- task: string;
96
- appointmentSchedule: string;
97
- new: string;
98
- dateAndTime: string;
99
- timezone: string;
100
- whosJoining: string;
101
- suggestedTimes: string;
102
- viewSuggestions: string;
103
- whereWillItBe: string;
104
- location: string;
105
- descriptionAndAttachments: string;
106
- dragAndDrop: string;
107
- guests: string;
108
- addAttachment: string;
109
- moreOptions: string;
110
- doesNotRepeat: string;
111
- locationHelpText: string;
112
- }
143
+ type CalendarTranslations = typeof en;
113
144
  interface CalendarProps {
114
145
  events?: CalendarEvent[];
115
146
  translations?: Partial<CalendarTranslations>;