@rokoyfa/calendar 0.0.0-stage → 1.0.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.
Files changed (259) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/LICENSE +21 -0
  3. package/README.md +159 -3
  4. package/api/openapi.yaml +919 -0
  5. package/dist-lib/cdn/calendar-widget.js +14 -0
  6. package/dist-lib/cdn/calendar-widget.js.map +1 -0
  7. package/dist-lib/cdn/de-BPZBZXaZ.js +2 -0
  8. package/dist-lib/cdn/de-BPZBZXaZ.js.map +1 -0
  9. package/dist-lib/cdn/es-DsIckdik.js +2 -0
  10. package/dist-lib/cdn/es-DsIckdik.js.map +1 -0
  11. package/dist-lib/cdn/fr-DWAs3O6J.js +2 -0
  12. package/dist-lib/cdn/fr-DWAs3O6J.js.map +1 -0
  13. package/dist-lib/cdn/it-CbhjxqIb.js +2 -0
  14. package/dist-lib/cdn/it-CbhjxqIb.js.map +1 -0
  15. package/dist-lib/cdn/nl-mjTHznX5.js +2 -0
  16. package/dist-lib/cdn/nl-mjTHznX5.js.map +1 -0
  17. package/dist-lib/cdn/pl-CXT0jb2D.js +2 -0
  18. package/dist-lib/cdn/pl-CXT0jb2D.js.map +1 -0
  19. package/dist-lib/cdn/pt-D0oXlVdU.js +2 -0
  20. package/dist-lib/cdn/pt-D0oXlVdU.js.map +1 -0
  21. package/dist-lib/npm/de-CCzGjeTd.js +573 -0
  22. package/dist-lib/npm/de-CCzGjeTd.js.map +1 -0
  23. package/dist-lib/npm/es-Ciaf66rH.js +559 -0
  24. package/dist-lib/npm/es-Ciaf66rH.js.map +1 -0
  25. package/dist-lib/npm/fr-CAqNm10Z.js +559 -0
  26. package/dist-lib/npm/fr-CAqNm10Z.js.map +1 -0
  27. package/dist-lib/npm/index.d.ts +1 -0
  28. package/dist-lib/npm/index.js +13277 -0
  29. package/dist-lib/npm/index.js.map +1 -0
  30. package/dist-lib/npm/it-Cqqdu2ua.js +565 -0
  31. package/dist-lib/npm/it-Cqqdu2ua.js.map +1 -0
  32. package/dist-lib/npm/nl-CkchSA8q.js +559 -0
  33. package/dist-lib/npm/nl-CkchSA8q.js.map +1 -0
  34. package/dist-lib/npm/pl-CCBDUr8k.js +565 -0
  35. package/dist-lib/npm/pl-CCBDUr8k.js.map +1 -0
  36. package/dist-lib/npm/pt-DucaCaoY.js +566 -0
  37. package/dist-lib/npm/pt-DucaCaoY.js.map +1 -0
  38. package/dist-lib/npm/types/components/Button.d.ts +17 -0
  39. package/dist-lib/npm/types/components/ChoiceChip.d.ts +13 -0
  40. package/dist-lib/npm/types/components/ConfirmModal.d.ts +11 -0
  41. package/dist-lib/npm/types/components/DateTimeField.d.ts +15 -0
  42. package/dist-lib/npm/types/components/Form.d.ts +8 -0
  43. package/dist-lib/npm/types/components/FormField.d.ts +10 -0
  44. package/dist-lib/npm/types/components/IconButton.d.ts +11 -0
  45. package/dist-lib/npm/types/components/Icons.d.ts +10 -0
  46. package/dist-lib/npm/types/components/Modal.d.ts +10 -0
  47. package/dist-lib/npm/types/components/NumberField.d.ts +12 -0
  48. package/dist-lib/npm/types/components/PageLayout.d.ts +13 -0
  49. package/dist-lib/npm/types/components/PageSection.d.ts +10 -0
  50. package/dist-lib/npm/types/components/PasswordField.d.ts +4 -0
  51. package/dist-lib/npm/types/components/SegmentedControl.d.ts +11 -0
  52. package/dist-lib/npm/types/components/SegmentedField.d.ts +11 -0
  53. package/dist-lib/npm/types/components/SelectField.d.ts +13 -0
  54. package/dist-lib/npm/types/components/StatusMessage.d.ts +13 -0
  55. package/dist-lib/npm/types/components/Stepper.d.ts +9 -0
  56. package/dist-lib/npm/types/components/Switch.d.ts +8 -0
  57. package/dist-lib/npm/types/components/Tabs.d.ts +14 -0
  58. package/dist-lib/npm/types/components/TeamsGate.d.ts +4 -0
  59. package/dist-lib/npm/types/components/TextField.d.ts +9 -0
  60. package/dist-lib/npm/types/config/calendars.d.ts +1 -0
  61. package/dist-lib/npm/types/config/routes.d.ts +18 -0
  62. package/dist-lib/npm/types/context/HostContext.d.ts +11 -0
  63. package/dist-lib/npm/types/context/RootElementContext.d.ts +2 -0
  64. package/dist-lib/npm/types/data/index.d.ts +4 -0
  65. package/dist-lib/npm/types/data/localDataSource.d.ts +3 -0
  66. package/dist-lib/npm/types/data/restDataSource.d.ts +11 -0
  67. package/dist-lib/npm/types/data/tenantDataSource.d.ts +10 -0
  68. package/dist-lib/npm/types/data/types.d.ts +21 -0
  69. package/dist-lib/npm/types/features/authorization/components/AccountMenu.d.ts +6 -0
  70. package/dist-lib/npm/types/features/authorization/components/AuthFields.d.ts +26 -0
  71. package/dist-lib/npm/types/features/authorization/components/AuthGate.d.ts +7 -0
  72. package/dist-lib/npm/types/features/authorization/components/ContinueLink.d.ts +1 -0
  73. package/dist-lib/npm/types/features/authorization/components/EmailVerificationBanner.d.ts +1 -0
  74. package/dist-lib/npm/types/features/authorization/components/ForgotPasswordPage.d.ts +1 -0
  75. package/dist-lib/npm/types/features/authorization/components/LoginPage.d.ts +1 -0
  76. package/dist-lib/npm/types/features/authorization/components/RegisterPage.d.ts +1 -0
  77. package/dist-lib/npm/types/features/authorization/components/ResendVerificationButton.d.ts +4 -0
  78. package/dist-lib/npm/types/features/authorization/components/ResetPasswordPage.d.ts +1 -0
  79. package/dist-lib/npm/types/features/authorization/components/VerifyEmailPage.d.ts +1 -0
  80. package/dist-lib/npm/types/features/authorization/components/account/AccountSettings.d.ts +1 -0
  81. package/dist-lib/npm/types/features/authorization/components/account/DeleteAccountSection.d.ts +1 -0
  82. package/dist-lib/npm/types/features/authorization/components/account/EmailSection.d.ts +4 -0
  83. package/dist-lib/npm/types/features/authorization/components/account/PasswordSection.d.ts +1 -0
  84. package/dist-lib/npm/types/features/authorization/components/account/ProfileSection.d.ts +4 -0
  85. package/dist-lib/npm/types/features/authorization/context/AuthContext.d.ts +2 -0
  86. package/dist-lib/npm/types/features/authorization/context/AuthProvider.d.ts +8 -0
  87. package/dist-lib/npm/types/features/authorization/hooks/useAuth.d.ts +18 -0
  88. package/dist-lib/npm/types/features/authorization/index.d.ts +14 -0
  89. package/dist-lib/npm/types/features/authorization/repositories/HostTokenAuthRepository.d.ts +18 -0
  90. package/dist-lib/npm/types/features/authorization/repositories/RemoteAuthRepository.d.ts +18 -0
  91. package/dist-lib/npm/types/features/authorization/types/auth.d.ts +52 -0
  92. package/dist-lib/npm/types/features/authorization/utils/validation.d.ts +22 -0
  93. package/dist-lib/npm/types/features/calendar/components/Calendar.d.ts +14 -0
  94. package/dist-lib/npm/types/features/calendar/components/CalendarHeader.d.ts +16 -0
  95. package/dist-lib/npm/types/features/calendar/components/DayColumn.d.ts +21 -0
  96. package/dist-lib/npm/types/features/calendar/components/EventBlock.d.ts +10 -0
  97. package/dist-lib/npm/types/features/calendar/components/EventChip.d.ts +10 -0
  98. package/dist-lib/npm/types/features/calendar/components/EventTitle.d.ts +8 -0
  99. package/dist-lib/npm/types/features/calendar/components/MiniMonth.d.ts +9 -0
  100. package/dist-lib/npm/types/features/calendar/components/MonthGrid.d.ts +8 -0
  101. package/dist-lib/npm/types/features/calendar/components/MonthView.d.ts +2 -0
  102. package/dist-lib/npm/types/features/calendar/components/NowIndicator.d.ts +6 -0
  103. package/dist-lib/npm/types/features/calendar/components/TimeColumn.d.ts +1 -0
  104. package/dist-lib/npm/types/features/calendar/components/TimeGridView.d.ts +2 -0
  105. package/dist-lib/npm/types/features/calendar/components/YearView.d.ts +2 -0
  106. package/dist-lib/npm/types/features/calendar/constants/grid.d.ts +4 -0
  107. package/dist-lib/npm/types/features/calendar/constants/views.d.ts +7 -0
  108. package/dist-lib/npm/types/features/calendar/context/DragContext.d.ts +2 -0
  109. package/dist-lib/npm/types/features/calendar/context/EventSourcesContext.d.ts +3 -0
  110. package/dist-lib/npm/types/features/calendar/hooks/useCalendarView.d.ts +19 -0
  111. package/dist-lib/npm/types/features/calendar/hooks/useEventDrag.d.ts +15 -0
  112. package/dist-lib/npm/types/features/calendar/hooks/useEventSource.d.ts +2 -0
  113. package/dist-lib/npm/types/features/calendar/hooks/useNow.d.ts +1 -0
  114. package/dist-lib/npm/types/features/calendar/hooks/useSlotSelection.d.ts +6 -0
  115. package/dist-lib/npm/types/features/calendar/index.d.ts +4 -0
  116. package/dist-lib/npm/types/features/calendar/types/editor.d.ts +5 -0
  117. package/dist-lib/npm/types/features/calendar/types/eventLayout.d.ts +14 -0
  118. package/dist-lib/npm/types/features/calendar/types/eventSource.d.ts +6 -0
  119. package/dist-lib/npm/types/features/calendar/types/view.d.ts +27 -0
  120. package/dist-lib/npm/types/features/calendar/utils/allDay.d.ts +12 -0
  121. package/dist-lib/npm/types/features/calendar/utils/eventDrag.d.ts +12 -0
  122. package/dist-lib/npm/types/features/calendar/utils/eventGeometry.d.ts +3 -0
  123. package/dist-lib/npm/types/features/calendar/utils/eventLabels.d.ts +16 -0
  124. package/dist-lib/npm/types/features/calendar/utils/layoutEvents.d.ts +3 -0
  125. package/dist-lib/npm/types/features/calendar/utils/segmentEvents.d.ts +5 -0
  126. package/dist-lib/npm/types/features/calendar/utils/slotSelection.d.ts +17 -0
  127. package/dist-lib/npm/types/features/calendars/components/ActiveCalendarIndicator.d.ts +1 -0
  128. package/dist-lib/npm/types/features/calendars/components/CalendarPreview.d.ts +4 -0
  129. package/dist-lib/npm/types/features/calendars/components/CalendarSettings.d.ts +1 -0
  130. package/dist-lib/npm/types/features/calendars/components/CalendarSwitcher.d.ts +1 -0
  131. package/dist-lib/npm/types/features/calendars/components/InvitationList.d.ts +1 -0
  132. package/dist-lib/npm/types/features/calendars/components/create/ColorStep.d.ts +7 -0
  133. package/dist-lib/npm/types/features/calendars/components/create/CreateCalendarPage.d.ts +1 -0
  134. package/dist-lib/npm/types/features/calendars/components/create/DetailsStep.d.ts +12 -0
  135. package/dist-lib/npm/types/features/calendars/components/create/MembersStep.d.ts +8 -0
  136. package/dist-lib/npm/types/features/calendars/components/create/ReviewStep.d.ts +4 -0
  137. package/dist-lib/npm/types/features/calendars/components/settings/CalendarSettingsPage.d.ts +1 -0
  138. package/dist-lib/npm/types/features/calendars/components/settings/DangerSection.d.ts +9 -0
  139. package/dist-lib/npm/types/features/calendars/components/settings/GeneralSection.d.ts +4 -0
  140. package/dist-lib/npm/types/features/calendars/components/settings/MembersSection.d.ts +11 -0
  141. package/dist-lib/npm/types/features/calendars/components/settings/RoleOverview.d.ts +1 -0
  142. package/dist-lib/npm/types/features/calendars/components/settings/TeamInvitationsSection.d.ts +12 -0
  143. package/dist-lib/npm/types/features/calendars/components/settings/TransferOwnershipModal.d.ts +8 -0
  144. package/dist-lib/npm/types/features/calendars/constants/calendars.d.ts +9 -0
  145. package/dist-lib/npm/types/features/calendars/context/CalendarsContext.d.ts +2 -0
  146. package/dist-lib/npm/types/features/calendars/context/CalendarsProvider.d.ts +8 -0
  147. package/dist-lib/npm/types/features/calendars/hooks/useCalendars.d.ts +1 -0
  148. package/dist-lib/npm/types/features/calendars/hooks/useTeam.d.ts +12 -0
  149. package/dist-lib/npm/types/features/calendars/index.d.ts +12 -0
  150. package/dist-lib/npm/types/features/calendars/repositories/LocalCalendarRepository.d.ts +20 -0
  151. package/dist-lib/npm/types/features/calendars/repositories/RemoteCalendarRepository.d.ts +23 -0
  152. package/dist-lib/npm/types/features/calendars/types/calendar.d.ts +91 -0
  153. package/dist-lib/npm/types/features/calendars/utils/draft.d.ts +7 -0
  154. package/dist-lib/npm/types/features/calendars/utils/permissions.d.ts +13 -0
  155. package/dist-lib/npm/types/features/events/components/ColorPicker.d.ts +7 -0
  156. package/dist-lib/npm/types/features/events/components/CustomColorSettings.d.ts +1 -0
  157. package/dist-lib/npm/types/features/events/components/DeleteEventModal.d.ts +8 -0
  158. package/dist-lib/npm/types/features/events/components/EventModal.d.ts +11 -0
  159. package/dist-lib/npm/types/features/events/components/RecurrenceFields.d.ts +9 -0
  160. package/dist-lib/npm/types/features/events/components/RecurrenceScopeModal.d.ts +8 -0
  161. package/dist-lib/npm/types/features/events/components/ScopeButtons.d.ts +10 -0
  162. package/dist-lib/npm/types/features/events/components/TimeZoneField.d.ts +6 -0
  163. package/dist-lib/npm/types/features/events/constants/colors.d.ts +3 -0
  164. package/dist-lib/npm/types/features/events/hooks/useCustomColors.d.ts +8 -0
  165. package/dist-lib/npm/types/features/events/hooks/useEvents.d.ts +15 -0
  166. package/dist-lib/npm/types/features/events/index.d.ts +7 -0
  167. package/dist-lib/npm/types/features/events/types/eventModal.d.ts +1 -0
  168. package/dist-lib/npm/types/features/events/utils/scopeOptions.d.ts +3 -0
  169. package/dist-lib/npm/types/features/events/utils/seriesActions.d.ts +4 -0
  170. package/dist-lib/npm/types/features/preferences/components/PreferencesSettings.d.ts +1 -0
  171. package/dist-lib/npm/types/features/preferences/context/PreferencesContext.d.ts +6 -0
  172. package/dist-lib/npm/types/features/preferences/context/PreferencesProvider.d.ts +4 -0
  173. package/dist-lib/npm/types/features/preferences/hooks/usePreferences.d.ts +1 -0
  174. package/dist-lib/npm/types/features/preferences/index.d.ts +3 -0
  175. package/dist-lib/npm/types/features/storage/components/LocalImportPrompt.d.ts +5 -0
  176. package/dist-lib/npm/types/features/storage/context/StorageContext.d.ts +2 -0
  177. package/dist-lib/npm/types/features/storage/context/StorageProvider.d.ts +8 -0
  178. package/dist-lib/npm/types/features/storage/hooks/useStorage.d.ts +7 -0
  179. package/dist-lib/npm/types/features/storage/index.d.ts +10 -0
  180. package/dist-lib/npm/types/features/storage/repositories/LocalColorRepository.d.ts +9 -0
  181. package/dist-lib/npm/types/features/storage/repositories/LocalEventRepository.d.ts +13 -0
  182. package/dist-lib/npm/types/features/storage/repositories/LocalPreferencesRepository.d.ts +8 -0
  183. package/dist-lib/npm/types/features/storage/repositories/RemoteColorRepository.d.ts +10 -0
  184. package/dist-lib/npm/types/features/storage/repositories/RemoteEventRepository.d.ts +12 -0
  185. package/dist-lib/npm/types/features/storage/repositories/RemotePreferencesRepository.d.ts +9 -0
  186. package/dist-lib/npm/types/features/storage/types/storage.d.ts +35 -0
  187. package/dist-lib/npm/types/features/storage/utils/copyEvents.d.ts +3 -0
  188. package/dist-lib/npm/types/features/storage/utils/localStorageList.d.ts +5 -0
  189. package/dist-lib/npm/types/features/storage/utils/localStorageValue.d.ts +9 -0
  190. package/dist-lib/npm/types/hooks/useArrowKeyNavigation.d.ts +6 -0
  191. package/dist-lib/npm/types/hooks/useAsyncAction.d.ts +6 -0
  192. package/dist-lib/npm/types/hooks/useAsyncResource.d.ts +9 -0
  193. package/dist-lib/npm/types/hooks/useForm.d.ts +21 -0
  194. package/dist-lib/npm/types/hooks/useFormState.d.ts +8 -0
  195. package/dist-lib/npm/types/hooks/useRequiredContext.d.ts +2 -0
  196. package/dist-lib/npm/types/hooks/useTabParam.d.ts +3 -0
  197. package/dist-lib/npm/types/i18n/I18nContext.d.ts +16 -0
  198. package/dist-lib/npm/types/i18n/I18nProvider.d.ts +9 -0
  199. package/dist-lib/npm/types/i18n/errorMessage.d.ts +2 -0
  200. package/dist-lib/npm/types/i18n/format.d.ts +28 -0
  201. package/dist-lib/npm/types/i18n/index.d.ts +8 -0
  202. package/dist-lib/npm/types/i18n/locale.d.ts +21 -0
  203. package/dist-lib/npm/types/i18n/messages/de/auth.d.ts +2 -0
  204. package/dist-lib/npm/types/i18n/messages/de/calendar.d.ts +3 -0
  205. package/dist-lib/npm/types/i18n/messages/de/calendars.d.ts +2 -0
  206. package/dist-lib/npm/types/i18n/messages/de/core.d.ts +7 -0
  207. package/dist-lib/npm/types/i18n/messages/de/events.d.ts +2 -0
  208. package/dist-lib/npm/types/i18n/messages/de/index.d.ts +2 -0
  209. package/dist-lib/npm/types/i18n/messages/de/settings.d.ts +2 -0
  210. package/dist-lib/npm/types/i18n/messages/de/storage.d.ts +2 -0
  211. package/dist-lib/npm/types/i18n/messages/en/auth.d.ts +97 -0
  212. package/dist-lib/npm/types/i18n/messages/en/calendar.d.ts +34 -0
  213. package/dist-lib/npm/types/i18n/messages/en/calendars.d.ts +179 -0
  214. package/dist-lib/npm/types/i18n/messages/en/core.d.ts +86 -0
  215. package/dist-lib/npm/types/i18n/messages/en/events.d.ts +46 -0
  216. package/dist-lib/npm/types/i18n/messages/en/index.d.ts +468 -0
  217. package/dist-lib/npm/types/i18n/messages/en/settings.d.ts +19 -0
  218. package/dist-lib/npm/types/i18n/messages/en/storage.d.ts +7 -0
  219. package/dist-lib/npm/types/i18n/messages/es/index.d.ts +2 -0
  220. package/dist-lib/npm/types/i18n/messages/fr/index.d.ts +2 -0
  221. package/dist-lib/npm/types/i18n/messages/index.d.ts +473 -0
  222. package/dist-lib/npm/types/i18n/messages/it/index.d.ts +2 -0
  223. package/dist-lib/npm/types/i18n/messages/nl/index.d.ts +2 -0
  224. package/dist-lib/npm/types/i18n/messages/pl/index.d.ts +2 -0
  225. package/dist-lib/npm/types/i18n/messages/pt/index.d.ts +2 -0
  226. package/dist-lib/npm/types/i18n/messages/types.d.ts +7 -0
  227. package/dist-lib/npm/types/i18n/useI18n.d.ts +3 -0
  228. package/dist-lib/npm/types/i18n/useLocaleGetter.d.ts +1 -0
  229. package/dist-lib/npm/types/i18n/weekInfo.d.ts +5 -0
  230. package/dist-lib/npm/types/lib/CalendarApp.d.ts +14 -0
  231. package/dist-lib/npm/types/lib/CalendarWidget.d.ts +2 -0
  232. package/dist-lib/npm/types/lib/IsolatedRoot.d.ts +9 -0
  233. package/dist-lib/npm/types/lib/config.d.ts +31 -0
  234. package/dist-lib/npm/types/lib/defaults.d.ts +13 -0
  235. package/dist-lib/npm/types/lib/element.d.ts +19 -0
  236. package/dist-lib/npm/types/lib/eventCallbacks.d.ts +11 -0
  237. package/dist-lib/npm/types/lib/index.d.ts +17 -0
  238. package/dist-lib/npm/types/lib/linkParam.d.ts +2 -0
  239. package/dist-lib/npm/types/lib/version.d.ts +1 -0
  240. package/dist-lib/npm/types/pages/CalendarPage.d.ts +1 -0
  241. package/dist-lib/npm/types/pages/SettingsPage.d.ts +1 -0
  242. package/dist-lib/npm/types/router.d.ts +7 -0
  243. package/dist-lib/npm/types/utils/api.d.ts +32 -0
  244. package/dist-lib/npm/types/utils/apiError.d.ts +26 -0
  245. package/dist-lib/npm/types/utils/appError.d.ts +10 -0
  246. package/dist-lib/npm/types/utils/calendarView.d.ts +3 -0
  247. package/dist-lib/npm/types/utils/classNames.d.ts +2 -0
  248. package/dist-lib/npm/types/utils/color.d.ts +5 -0
  249. package/dist-lib/npm/types/utils/date.d.ts +44 -0
  250. package/dist-lib/npm/types/utils/dom.d.ts +3 -0
  251. package/dist-lib/npm/types/utils/event.d.ts +86 -0
  252. package/dist-lib/npm/types/utils/number.d.ts +1 -0
  253. package/dist-lib/npm/types/utils/object.d.ts +3 -0
  254. package/dist-lib/npm/types/utils/preferences.d.ts +14 -0
  255. package/dist-lib/npm/types/utils/recurrence.d.ts +33 -0
  256. package/dist-lib/npm/types/utils/series.d.ts +9 -0
  257. package/dist-lib/npm/types/utils/timeZone.d.ts +11 -0
  258. package/dist-lib/npm/types/utils/validation.d.ts +6 -0
  259. package/package.json +88 -6
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ type ConfirmModalProps = {
3
+ title: string;
4
+ confirmLabel: string;
5
+ pendingLabel: string;
6
+ onConfirm: () => Promise<void>;
7
+ onClose: () => void;
8
+ children: ReactNode;
9
+ };
10
+ export declare function ConfirmModal({ title, confirmLabel, pendingLabel, onConfirm, onClose, children }: ConfirmModalProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ type DateTimeFieldProps = {
2
+ name: string;
3
+ dateLabel: string;
4
+ timeLabel: string;
5
+ date: string;
6
+ time: string;
7
+ minDate?: string;
8
+ showTime?: boolean;
9
+ dateError?: string;
10
+ timeError?: string;
11
+ onDateChange: (date: string) => void;
12
+ onTimeChange: (time: string) => void;
13
+ };
14
+ export declare function DateTimeField({ name, dateLabel, timeLabel, date, time, minDate, showTime, dateError, timeError, onDateChange, onTimeChange, }: DateTimeFieldProps): import("react").JSX.Element;
15
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ReactNode, SubmitEventHandler } from 'react';
2
+ type FormProps = {
3
+ onSubmit: SubmitEventHandler<HTMLFormElement>;
4
+ className?: string;
5
+ children: ReactNode;
6
+ };
7
+ export declare function Form({ onSubmit, className, children }: FormProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from 'react';
2
+ type FormFieldProps = {
3
+ label: string;
4
+ error?: string;
5
+ as?: 'label' | 'fieldset';
6
+ className?: string;
7
+ children: ReactNode;
8
+ };
9
+ export declare function FormField({ label, error, as: Element, className, children }: FormFieldProps): import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ type IconButtonProps = {
3
+ label: string;
4
+ title?: string;
5
+ plain?: boolean;
6
+ disabled?: boolean;
7
+ onClick: () => void;
8
+ children: ReactNode;
9
+ };
10
+ export declare function IconButton({ label, title, plain, disabled, onClick, children }: IconButtonProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ type IconProps = {
2
+ size?: number;
3
+ };
4
+ export declare const ChevronLeftIcon: (props: IconProps) => import("react").JSX.Element;
5
+ export declare const ChevronRightIcon: (props: IconProps) => import("react").JSX.Element;
6
+ export declare const TeamIcon: (props: IconProps) => import("react").JSX.Element;
7
+ export declare const PlusIcon: (props: IconProps) => import("react").JSX.Element;
8
+ export declare const RepeatIcon: (props: IconProps) => import("react").JSX.Element;
9
+ export declare const SettingsIcon: (props: IconProps) => import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { type ReactNode } from 'react';
2
+ type ModalProps = {
3
+ title: string;
4
+ onClose: () => void;
5
+ children: ReactNode;
6
+ variant?: 'default' | 'danger';
7
+ size?: 'default' | 'large';
8
+ };
9
+ export declare function Modal({ title, onClose, children, variant, size }: ModalProps): import("react").ReactPortal;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ type NumberFieldProps = {
2
+ label: string;
3
+ name: string;
4
+ value: number | null;
5
+ min: number;
6
+ max: number;
7
+ unit?: string;
8
+ error?: string;
9
+ onChange: (value: number) => void;
10
+ };
11
+ export declare function NumberField({ label, name, value, min, max, unit, error, onChange }: NumberFieldProps): import("react").JSX.Element;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from 'react';
2
+ type PageLayoutProps = {
3
+ title: string;
4
+ back?: {
5
+ to: string;
6
+ label: string;
7
+ };
8
+ variant?: 'card' | 'full';
9
+ footer?: ReactNode;
10
+ children: ReactNode;
11
+ };
12
+ export declare function PageLayout({ title, back, variant, footer, children }: PageLayoutProps): import("react").JSX.Element;
13
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from 'react';
2
+ type PageSectionProps = {
3
+ title: string;
4
+ description?: ReactNode;
5
+ aside?: ReactNode;
6
+ tone?: 'default' | 'danger';
7
+ children: ReactNode;
8
+ };
9
+ export declare function PageSection({ title, description, aside, tone, children }: PageSectionProps): import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ import { type TextFieldProps } from './TextField.js';
2
+ type PasswordFieldProps = Omit<TextFieldProps, 'type' | 'addon'>;
3
+ export declare function PasswordField(props: PasswordFieldProps): import("react").JSX.Element;
4
+ export {};
@@ -0,0 +1,11 @@
1
+ type SegmentedControlProps<T extends string> = {
2
+ label: string;
3
+ value: T;
4
+ options: readonly {
5
+ value: T;
6
+ label: string;
7
+ }[];
8
+ onChange: (value: T) => void;
9
+ };
10
+ export declare function SegmentedControl<T extends string>({ label, value, options, onChange }: SegmentedControlProps<T>): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ type SegmentedFieldProps<T extends string> = {
2
+ label: string;
3
+ value: T;
4
+ options: readonly {
5
+ value: T;
6
+ label: string;
7
+ }[];
8
+ onChange: (value: T) => void;
9
+ };
10
+ export declare function SegmentedField<T extends string>({ label, ...controlProps }: SegmentedFieldProps<T>): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,13 @@
1
+ export type SelectOption<T extends string> = {
2
+ value: T;
3
+ label: string;
4
+ };
5
+ type SelectFieldProps<T extends string> = {
6
+ label: string;
7
+ name: string;
8
+ value: T;
9
+ options: readonly SelectOption<T>[];
10
+ onChange: (value: T) => void;
11
+ };
12
+ export declare function SelectField<T extends string>({ label, name, value, options, onChange }: SelectFieldProps<T>): import("react").JSX.Element;
13
+ export {};
@@ -0,0 +1,13 @@
1
+ type StatusMessageProps = {
2
+ message: string | false | null | undefined;
3
+ tone?: 'error' | 'success';
4
+ className?: string;
5
+ };
6
+ export declare function StatusMessage({ message, tone, className }: StatusMessageProps): import("react").JSX.Element | null;
7
+ export declare function ErrorMessage(props: Omit<StatusMessageProps, 'tone'>): import("react").JSX.Element;
8
+ type ActionFeedbackProps = {
9
+ error: string | null | undefined;
10
+ success?: string | false | null;
11
+ };
12
+ export declare function ActionFeedback({ error, success }: ActionFeedbackProps): import("react").JSX.Element;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ type StepperProps = {
2
+ steps: readonly {
3
+ label: string;
4
+ }[];
5
+ current: number;
6
+ onSelect?: (index: number) => void;
7
+ };
8
+ export declare function Stepper({ steps, current, onSelect }: StepperProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ type SwitchProps = {
2
+ label: string;
3
+ checked: boolean;
4
+ disabled?: boolean;
5
+ onChange: (checked: boolean) => void;
6
+ };
7
+ export declare function Switch({ label, checked, disabled, onChange }: SwitchProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,14 @@
1
+ import { type ReactNode } from 'react';
2
+ export type TabDefinition<T extends string> = {
3
+ value: T;
4
+ label: string;
5
+ content: ReactNode;
6
+ };
7
+ type TabsProps<T extends string> = {
8
+ label: string;
9
+ tabs: readonly TabDefinition<T>[];
10
+ value: T;
11
+ onChange: (value: T) => void;
12
+ };
13
+ export declare function Tabs<T extends string>({ label, tabs, value, onChange }: TabsProps<T>): import("react").JSX.Element;
14
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function TeamsGate({ children }: {
3
+ children: ReactNode;
4
+ }): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
@@ -0,0 +1,9 @@
1
+ import type { InputHTMLAttributes, ReactNode } from 'react';
2
+ export type TextFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> & {
3
+ label: string;
4
+ value: string;
5
+ error?: string;
6
+ addon?: ReactNode;
7
+ onChange: (value: string) => void;
8
+ };
9
+ export declare function TextField({ label, error, addon, onChange, className, ...inputProps }: TextFieldProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PERSONAL_CALENDAR_ID = "personal";
@@ -0,0 +1,18 @@
1
+ export declare const ROUTES: {
2
+ readonly calendar: "/";
3
+ readonly login: "/login";
4
+ readonly register: "/register";
5
+ readonly forgotPassword: "/forgot-password";
6
+ readonly resetPassword: "/reset-password";
7
+ readonly verifyEmail: "/verify-email";
8
+ readonly settings: "/settings";
9
+ readonly createCalendar: "/calendars/new";
10
+ readonly calendarSettings: "/calendars/:calendarId/settings";
11
+ };
12
+ export declare const calendarSettingsPath: (calendarId: string) => string;
13
+ export declare const SETTINGS_CALENDARS_PATH: string;
14
+ export declare const SETTINGS_INVITATIONS_PATH: string;
15
+ export declare const TOKEN_PARAM = "token";
16
+ export declare const isSafeRedirect: (path: string | null) => path is string;
17
+ export declare const getRedirectTarget: (searchParams: URLSearchParams) => string;
18
+ export declare const withRedirect: (route: string, redirectTo: string | null) => string;
@@ -0,0 +1,11 @@
1
+ import type { CalendarView } from '../utils/calendarView.js';
2
+ export type HostTheme = 'light' | 'dark';
3
+ export type HostOptions = {
4
+ teams: boolean;
5
+ theme?: HostTheme;
6
+ initialView?: CalendarView;
7
+ timeZone?: string;
8
+ };
9
+ export declare const HostContext: import("react").Context<HostOptions>;
10
+ export declare const useHost: () => HostOptions;
11
+ export declare const useViewerTimeZone: () => string;
@@ -0,0 +1,2 @@
1
+ export declare const RootElementContext: import("react").Context<HTMLElement | null>;
2
+ export declare function useRootElement(): HTMLElement;
@@ -0,0 +1,4 @@
1
+ export { localDataSource } from './localDataSource.js';
2
+ export { restDataSource, type RestDataSourceOptions } from './restDataSource.js';
3
+ export { TENANT_HEADER, tenantDataSource, type TenantDataSourceOptions } from './tenantDataSource.js';
4
+ export type { CalendarDataSource, DataRepositories, DataSession, DataSourceContext } from './types.js';
@@ -0,0 +1,3 @@
1
+ import type { CalendarDataSource, DataRepositories } from './types.js';
2
+ export declare const createLocalRepositories: () => DataRepositories;
3
+ export declare const localDataSource: () => CalendarDataSource;
@@ -0,0 +1,11 @@
1
+ import { type UserTokenProvider } from '../features/authorization/index.js';
2
+ import type { CalendarDataSource } from './types.js';
3
+ export type RestDataSourceOptions = {
4
+ baseUrl: string;
5
+ timeoutMs?: number;
6
+ auth?: boolean;
7
+ headers?: HeadersInit;
8
+ getAccessToken?: () => string | null;
9
+ getUserToken?: UserTokenProvider;
10
+ };
11
+ export declare function restDataSource({ baseUrl, timeoutMs, auth, headers, getAccessToken, getUserToken, }: RestDataSourceOptions): CalendarDataSource;
@@ -0,0 +1,10 @@
1
+ import type { UserTokenProvider } from '../features/authorization/index.js';
2
+ import type { CalendarDataSource } from './types.js';
3
+ export declare const TENANT_HEADER = "X-Calendar-Tenant";
4
+ export type TenantDataSourceOptions = {
5
+ tenant: string;
6
+ baseUrl: string;
7
+ timeoutMs?: number;
8
+ getUserToken?: UserTokenProvider;
9
+ };
10
+ export declare const tenantDataSource: ({ tenant, baseUrl, timeoutMs, getUserToken }: TenantDataSourceOptions) => CalendarDataSource;
@@ -0,0 +1,21 @@
1
+ import type { AuthRepository } from '../features/authorization/index.js';
2
+ import type { CalendarRepository } from '../features/calendars/index.js';
3
+ import type { ColorRepository, EventRepository, PreferencesRepository, StorageMode } from '../features/storage/index.js';
4
+ export type DataRepositories = {
5
+ mode: StorageMode;
6
+ events: EventRepository;
7
+ calendars: CalendarRepository;
8
+ colors: ColorRepository;
9
+ preferences: PreferencesRepository;
10
+ };
11
+ export type DataSourceContext = {
12
+ getLanguage: () => string | null;
13
+ onUnauthorized: () => void;
14
+ };
15
+ export type DataSession = {
16
+ isAuthenticated: boolean;
17
+ };
18
+ export interface CalendarDataSource {
19
+ createAuthRepository?: (context: Pick<DataSourceContext, 'getLanguage'>) => AuthRepository;
20
+ connect: (session: DataSession, context: DataSourceContext) => DataRepositories;
21
+ }
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ type AccountMenuProps = {
3
+ menuItems?: ReactNode;
4
+ };
5
+ export declare function AccountMenu({ menuItems }: AccountMenuProps): import("react").JSX.Element | null;
6
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { FieldErrors } from '../../../utils/validation.js';
2
+ import { type NewPasswordValues } from '../utils/validation.js';
3
+ type FieldProps = {
4
+ value: string;
5
+ error?: string;
6
+ onChange: (value: string) => void;
7
+ autoFocus?: boolean;
8
+ };
9
+ export declare function NameField(props: FieldProps): import("react").JSX.Element;
10
+ export declare function EmailField({ isNewAccount, ...props }: FieldProps & {
11
+ isNewAccount?: boolean;
12
+ }): import("react").JSX.Element;
13
+ type CurrentPasswordFieldProps = FieldProps & {
14
+ label?: string;
15
+ name?: string;
16
+ 'data-autofocus'?: boolean;
17
+ };
18
+ export declare function CurrentPasswordField({ label, name, ...props }: CurrentPasswordFieldProps): import("react").JSX.Element;
19
+ type NewPasswordFieldsProps = {
20
+ values: NewPasswordValues;
21
+ errors: FieldErrors<NewPasswordValues>;
22
+ label?: string;
23
+ onChange: (field: keyof NewPasswordValues, value: string) => void;
24
+ };
25
+ export declare function NewPasswordFields({ values, errors, label, onChange }: NewPasswordFieldsProps): import("react").JSX.Element;
26
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from 'react';
2
+ type AuthGateProps = {
3
+ access: 'guest' | 'any' | 'user' | 'account';
4
+ children: ReactNode;
5
+ };
6
+ export declare function AuthGate({ access, children }: AuthGateProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function ContinueLink(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function EmailVerificationBanner(): import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function ForgotPasswordPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function LoginPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function RegisterPage(): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function ResendVerificationButton({ label, className }: {
2
+ label: string;
3
+ className?: string;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ResetPasswordPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function VerifyEmailPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function AccountSettings(): import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function DeleteAccountSection(): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { User } from '../../types/auth.js';
2
+ export declare function EmailSection({ user }: {
3
+ user: User;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function PasswordSection(): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { User } from '../../types/auth.js';
2
+ export declare function ProfileSection({ user }: {
3
+ user: User;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { AuthContextValue } from '../types/auth.js';
2
+ export declare const AuthContext: import("react").Context<AuthContextValue | null>;
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { AuthRepository } from '../types/auth.js';
3
+ type AuthProviderProps = {
4
+ repository: AuthRepository | null;
5
+ children: ReactNode;
6
+ };
7
+ export declare function AuthProvider({ repository: configuredRepository, children }: AuthProviderProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,18 @@
1
+ export declare const useAuth: () => {
2
+ login: (input: import("../types/auth.ts").LoginInput) => Promise<import("../index.ts").User>;
3
+ register: (input: import("../types/auth.ts").RegisterInput) => Promise<import("../index.ts").User>;
4
+ logout: () => Promise<void>;
5
+ updateProfile: (input: import("../types/auth.ts").ProfileInput) => Promise<import("../index.ts").User>;
6
+ changePassword: (input: import("../types/auth.ts").PasswordChangeInput) => Promise<void>;
7
+ deleteAccount: (input: import("../types/auth.ts").AccountDeletionInput) => Promise<void>;
8
+ requestPasswordReset: (input: import("../types/auth.ts").PasswordResetRequestInput) => Promise<void>;
9
+ resetPassword: (input: import("../types/auth.ts").PasswordResetInput) => Promise<void>;
10
+ verifyEmail: (token: string) => Promise<void>;
11
+ resendVerificationEmail: () => Promise<void>;
12
+ } & {
13
+ enabled: boolean;
14
+ method: import("../index.ts").AuthMethod;
15
+ status: import("../index.ts").AuthStatus;
16
+ user: import("../index.ts").User | null;
17
+ expireSession: () => void;
18
+ };
@@ -0,0 +1,14 @@
1
+ export { AuthProvider } from './context/AuthProvider.js';
2
+ export { useAuth } from './hooks/useAuth.js';
3
+ export { HostTokenAuthRepository } from './repositories/HostTokenAuthRepository.js';
4
+ export { RemoteAuthRepository } from './repositories/RemoteAuthRepository.js';
5
+ export { AccountMenu } from './components/AccountMenu.js';
6
+ export { AccountSettings } from './components/account/AccountSettings.js';
7
+ export { AuthGate } from './components/AuthGate.js';
8
+ export { EmailVerificationBanner } from './components/EmailVerificationBanner.js';
9
+ export { ForgotPasswordPage } from './components/ForgotPasswordPage.js';
10
+ export { LoginPage } from './components/LoginPage.js';
11
+ export { RegisterPage } from './components/RegisterPage.js';
12
+ export { ResetPasswordPage } from './components/ResetPasswordPage.js';
13
+ export { VerifyEmailPage } from './components/VerifyEmailPage.js';
14
+ export type { AuthMethod, AuthRepository, AuthStatus, User, UserTokenProvider } from './types/auth.js';
@@ -0,0 +1,18 @@
1
+ import type { ApiClient } from '../../../utils/api.js';
2
+ import type { AuthRepository, User, UserTokenProvider } from '../types/auth.js';
3
+ export declare class HostTokenAuthRepository implements AuthRepository {
4
+ #private;
5
+ readonly method = "hostToken";
6
+ constructor(api: ApiClient, getUserToken: UserTokenProvider);
7
+ getCurrentUser(): Promise<User | null>;
8
+ logout(): Promise<void>;
9
+ login: () => Promise<never>;
10
+ register: () => Promise<never>;
11
+ updateProfile: () => Promise<never>;
12
+ changePassword: () => Promise<never>;
13
+ deleteAccount: () => Promise<never>;
14
+ requestPasswordReset: () => Promise<never>;
15
+ resetPassword: () => Promise<never>;
16
+ verifyEmail: () => Promise<never>;
17
+ resendVerificationEmail: () => Promise<never>;
18
+ }
@@ -0,0 +1,18 @@
1
+ import type { ApiClient } from '../../../utils/api.js';
2
+ import type { AccountDeletionInput, AuthRepository, LoginInput, PasswordChangeInput, PasswordResetInput, PasswordResetRequestInput, ProfileInput, RegisterInput, User } from '../types/auth.js';
3
+ export declare class RemoteAuthRepository implements AuthRepository {
4
+ #private;
5
+ readonly method = "password";
6
+ constructor(api: ApiClient);
7
+ getCurrentUser(): Promise<User | null>;
8
+ login(input: LoginInput): Promise<User>;
9
+ register(input: RegisterInput): Promise<User>;
10
+ logout(): Promise<void>;
11
+ updateProfile(input: ProfileInput): Promise<User>;
12
+ changePassword(input: PasswordChangeInput): Promise<void>;
13
+ deleteAccount(input: AccountDeletionInput): Promise<void>;
14
+ requestPasswordReset(input: PasswordResetRequestInput): Promise<void>;
15
+ resetPassword(input: PasswordResetInput): Promise<void>;
16
+ verifyEmail(token: string): Promise<void>;
17
+ resendVerificationEmail(): Promise<void>;
18
+ }
@@ -0,0 +1,52 @@
1
+ export type User = {
2
+ id: string;
3
+ email: string;
4
+ name: string;
5
+ emailVerified: boolean;
6
+ };
7
+ export type LoginInput = {
8
+ email: string;
9
+ password: string;
10
+ };
11
+ export type RegisterInput = LoginInput & {
12
+ name: string;
13
+ };
14
+ export type ProfileInput = Pick<User, 'name'>;
15
+ export type PasswordChangeInput = {
16
+ currentPassword: string;
17
+ newPassword: string;
18
+ };
19
+ export type PasswordResetRequestInput = Pick<User, 'email'>;
20
+ export type PasswordResetInput = {
21
+ token: string;
22
+ password: string;
23
+ };
24
+ export type AccountDeletionInput = {
25
+ password: string;
26
+ };
27
+ export type AuthStatus = 'loading' | 'authenticated' | 'anonymous';
28
+ export type AuthMethod = 'password' | 'hostToken';
29
+ export type UserTokenProvider = () => string | null | Promise<string | null>;
30
+ export interface AuthRepository {
31
+ readonly method?: AuthMethod;
32
+ getCurrentUser(): Promise<User | null>;
33
+ login(input: LoginInput): Promise<User>;
34
+ register(input: RegisterInput): Promise<User>;
35
+ logout(): Promise<void>;
36
+ updateProfile(input: ProfileInput): Promise<User>;
37
+ changePassword(input: PasswordChangeInput): Promise<void>;
38
+ deleteAccount(input: AccountDeletionInput): Promise<void>;
39
+ requestPasswordReset(input: PasswordResetRequestInput): Promise<void>;
40
+ resetPassword(input: PasswordResetInput): Promise<void>;
41
+ verifyEmail(token: string): Promise<void>;
42
+ resendVerificationEmail(): Promise<void>;
43
+ }
44
+ type AccountActions = Pick<AuthRepository, 'login' | 'register' | 'logout' | 'updateProfile' | 'changePassword' | 'deleteAccount' | 'requestPasswordReset' | 'resetPassword' | 'verifyEmail' | 'resendVerificationEmail'>;
45
+ export type AuthContextValue = AccountActions & {
46
+ enabled: boolean;
47
+ method: AuthMethod;
48
+ status: AuthStatus;
49
+ user: User | null;
50
+ expireSession: () => void;
51
+ };
52
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { Messages } from '../../../i18n/index.js';
2
+ import { type FieldErrors } from '../../../utils/validation.js';
3
+ import type { AccountDeletionInput, LoginInput, PasswordResetRequestInput, ProfileInput, RegisterInput } from '../types/auth.js';
4
+ export { EMAIL_MAX_LENGTH, normalizeEmail } from '../../../utils/validation.js';
5
+ export declare const NAME_MAX_LENGTH = 80;
6
+ export declare const PASSWORD_MIN_LENGTH = 8;
7
+ export declare const PASSWORD_MAX_LENGTH = 128;
8
+ export type NewPasswordValues = {
9
+ password: string;
10
+ passwordConfirmation: string;
11
+ };
12
+ export type RegisterFormValues = RegisterInput & NewPasswordValues;
13
+ export type PasswordChangeFormValues = NewPasswordValues & {
14
+ currentPassword: string;
15
+ };
16
+ export declare const validateLogin: ({ email, password }: LoginInput, m: Messages) => FieldErrors<LoginInput>;
17
+ export declare const validateRegister: (values: RegisterFormValues, m: Messages) => FieldErrors<RegisterFormValues>;
18
+ export declare const validateProfile: ({ name }: ProfileInput, m: Messages) => FieldErrors<ProfileInput>;
19
+ export declare const validatePasswordResetRequest: ({ email }: PasswordResetRequestInput, m: Messages) => FieldErrors<PasswordResetRequestInput>;
20
+ export declare const validatePasswordReset: ({ password, passwordConfirmation }: NewPasswordValues, m: Messages) => FieldErrors<NewPasswordValues>;
21
+ export declare const validatePasswordChange: (values: PasswordChangeFormValues, m: Messages) => FieldErrors<PasswordChangeFormValues>;
22
+ export declare const validateAccountDeletion: ({ password }: AccountDeletionInput, m: Messages) => FieldErrors<AccountDeletionInput>;
@@ -0,0 +1,14 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { EventSources } from '../types/eventSource.js';
3
+ import type { CalendarView } from '../types/view.js';
4
+ type CalendarProps = {
5
+ calendarIds: readonly string[];
6
+ targetCalendarId: string;
7
+ canCreate?: boolean;
8
+ eventSources?: EventSources;
9
+ initialView?: CalendarView;
10
+ headerContext?: ReactNode;
11
+ headerAccessory?: ReactNode;
12
+ };
13
+ export declare function Calendar({ calendarIds, targetCalendarId, canCreate, eventSources, initialView, headerContext, headerAccessory, }: CalendarProps): import("react").JSX.Element;
14
+ export {};