react-native-agenda-kit 0.1.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 (403) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +364 -0
  3. package/lib/commonjs/agenda/AgendaBackdrop.js +68 -0
  4. package/lib/commonjs/agenda/AgendaBackdrop.js.map +1 -0
  5. package/lib/commonjs/agenda/AgendaList.js +354 -0
  6. package/lib/commonjs/agenda/AgendaList.js.map +1 -0
  7. package/lib/commonjs/agenda/AgendaSlot.js +88 -0
  8. package/lib/commonjs/agenda/AgendaSlot.js.map +1 -0
  9. package/lib/commonjs/agenda/AgendaWindow.js +171 -0
  10. package/lib/commonjs/agenda/AgendaWindow.js.map +1 -0
  11. package/lib/commonjs/agenda/StickyHeaderOverlay.js +125 -0
  12. package/lib/commonjs/agenda/StickyHeaderOverlay.js.map +1 -0
  13. package/lib/commonjs/agenda/buildAgendaLayout.js +100 -0
  14. package/lib/commonjs/agenda/buildAgendaLayout.js.map +1 -0
  15. package/lib/commonjs/agenda/constants.js +29 -0
  16. package/lib/commonjs/agenda/constants.js.map +1 -0
  17. package/lib/commonjs/agenda/heights.js +49 -0
  18. package/lib/commonjs/agenda/heights.js.map +1 -0
  19. package/lib/commonjs/agenda/useAgendaScrollSync.js +204 -0
  20. package/lib/commonjs/agenda/useAgendaScrollSync.js.map +1 -0
  21. package/lib/commonjs/core/ArrowGlyph.js +65 -0
  22. package/lib/commonjs/core/ArrowGlyph.js.map +1 -0
  23. package/lib/commonjs/core/CalendarContext.js +32 -0
  24. package/lib/commonjs/core/CalendarContext.js.map +1 -0
  25. package/lib/commonjs/core/CalendarProvider.js +141 -0
  26. package/lib/commonjs/core/CalendarProvider.js.map +1 -0
  27. package/lib/commonjs/core/CalendarStore.js +70 -0
  28. package/lib/commonjs/core/CalendarStore.js.map +1 -0
  29. package/lib/commonjs/core/KitText.js +23 -0
  30. package/lib/commonjs/core/KitText.js.map +1 -0
  31. package/lib/commonjs/core/TodayButton.js +136 -0
  32. package/lib/commonjs/core/TodayButton.js.map +1 -0
  33. package/lib/commonjs/core/civil.js +101 -0
  34. package/lib/commonjs/core/civil.js.map +1 -0
  35. package/lib/commonjs/core/dateKey.js +56 -0
  36. package/lib/commonjs/core/dateKey.js.map +1 -0
  37. package/lib/commonjs/core/motion.js +56 -0
  38. package/lib/commonjs/core/motion.js.map +1 -0
  39. package/lib/commonjs/core/worklets.js +44 -0
  40. package/lib/commonjs/core/worklets.js.map +1 -0
  41. package/lib/commonjs/expandable/DayCell.js +120 -0
  42. package/lib/commonjs/expandable/DayCell.js.map +1 -0
  43. package/lib/commonjs/expandable/ExpandableCalendar.js +280 -0
  44. package/lib/commonjs/expandable/ExpandableCalendar.js.map +1 -0
  45. package/lib/commonjs/expandable/Knob.js +72 -0
  46. package/lib/commonjs/expandable/Knob.js.map +1 -0
  47. package/lib/commonjs/expandable/MonthPager.js +180 -0
  48. package/lib/commonjs/expandable/MonthPager.js.map +1 -0
  49. package/lib/commonjs/expandable/WeekStrip.js +451 -0
  50. package/lib/commonjs/expandable/WeekStrip.js.map +1 -0
  51. package/lib/commonjs/expandable/calendarCells.js +152 -0
  52. package/lib/commonjs/expandable/calendarCells.js.map +1 -0
  53. package/lib/commonjs/expandable/geometry.js +62 -0
  54. package/lib/commonjs/expandable/geometry.js.map +1 -0
  55. package/lib/commonjs/expandable/useExpandGesture.js +124 -0
  56. package/lib/commonjs/expandable/useExpandGesture.js.map +1 -0
  57. package/lib/commonjs/expandable/useHorizontalPager.js +97 -0
  58. package/lib/commonjs/expandable/useHorizontalPager.js.map +1 -0
  59. package/lib/commonjs/index.js +167 -0
  60. package/lib/commonjs/index.js.map +1 -0
  61. package/lib/commonjs/package.json +1 -0
  62. package/lib/commonjs/theme/ThemeProvider.js +73 -0
  63. package/lib/commonjs/theme/ThemeProvider.js.map +1 -0
  64. package/lib/commonjs/theme/index.js +75 -0
  65. package/lib/commonjs/theme/index.js.map +1 -0
  66. package/lib/commonjs/theme/theme.js +79 -0
  67. package/lib/commonjs/theme/theme.js.map +1 -0
  68. package/lib/commonjs/theme/tokens.js +54 -0
  69. package/lib/commonjs/theme/tokens.js.map +1 -0
  70. package/lib/commonjs/timeline/DayColumn.js +95 -0
  71. package/lib/commonjs/timeline/DayColumn.js.map +1 -0
  72. package/lib/commonjs/timeline/DayPager.js +250 -0
  73. package/lib/commonjs/timeline/DayPager.js.map +1 -0
  74. package/lib/commonjs/timeline/EventBlock.js +91 -0
  75. package/lib/commonjs/timeline/EventBlock.js.map +1 -0
  76. package/lib/commonjs/timeline/GridLines.js +47 -0
  77. package/lib/commonjs/timeline/GridLines.js.map +1 -0
  78. package/lib/commonjs/timeline/HourGrid.js +96 -0
  79. package/lib/commonjs/timeline/HourGrid.js.map +1 -0
  80. package/lib/commonjs/timeline/NowIndicator.js +132 -0
  81. package/lib/commonjs/timeline/NowIndicator.js.map +1 -0
  82. package/lib/commonjs/timeline/TimelineDay.js +126 -0
  83. package/lib/commonjs/timeline/TimelineDay.js.map +1 -0
  84. package/lib/commonjs/timeline/packEvents.js +102 -0
  85. package/lib/commonjs/timeline/packEvents.js.map +1 -0
  86. package/lib/commonjs/timeline/timelineGeometry.js +27 -0
  87. package/lib/commonjs/timeline/timelineGeometry.js.map +1 -0
  88. package/lib/commonjs/timeline/timelineMath.js +82 -0
  89. package/lib/commonjs/timeline/timelineMath.js.map +1 -0
  90. package/lib/commonjs/types.js +71 -0
  91. package/lib/commonjs/types.js.map +1 -0
  92. package/lib/module/agenda/AgendaBackdrop.js +63 -0
  93. package/lib/module/agenda/AgendaBackdrop.js.map +1 -0
  94. package/lib/module/agenda/AgendaList.js +349 -0
  95. package/lib/module/agenda/AgendaList.js.map +1 -0
  96. package/lib/module/agenda/AgendaSlot.js +84 -0
  97. package/lib/module/agenda/AgendaSlot.js.map +1 -0
  98. package/lib/module/agenda/AgendaWindow.js +167 -0
  99. package/lib/module/agenda/AgendaWindow.js.map +1 -0
  100. package/lib/module/agenda/StickyHeaderOverlay.js +120 -0
  101. package/lib/module/agenda/StickyHeaderOverlay.js.map +1 -0
  102. package/lib/module/agenda/buildAgendaLayout.js +95 -0
  103. package/lib/module/agenda/buildAgendaLayout.js.map +1 -0
  104. package/lib/module/agenda/constants.js +25 -0
  105. package/lib/module/agenda/constants.js.map +1 -0
  106. package/lib/module/agenda/heights.js +42 -0
  107. package/lib/module/agenda/heights.js.map +1 -0
  108. package/lib/module/agenda/useAgendaScrollSync.js +200 -0
  109. package/lib/module/agenda/useAgendaScrollSync.js.map +1 -0
  110. package/lib/module/core/ArrowGlyph.js +60 -0
  111. package/lib/module/core/ArrowGlyph.js.map +1 -0
  112. package/lib/module/core/CalendarContext.js +26 -0
  113. package/lib/module/core/CalendarContext.js.map +1 -0
  114. package/lib/module/core/CalendarProvider.js +136 -0
  115. package/lib/module/core/CalendarProvider.js.map +1 -0
  116. package/lib/module/core/CalendarStore.js +66 -0
  117. package/lib/module/core/CalendarStore.js.map +1 -0
  118. package/lib/module/core/KitText.js +19 -0
  119. package/lib/module/core/KitText.js.map +1 -0
  120. package/lib/module/core/TodayButton.js +133 -0
  121. package/lib/module/core/TodayButton.js.map +1 -0
  122. package/lib/module/core/civil.js +88 -0
  123. package/lib/module/core/civil.js.map +1 -0
  124. package/lib/module/core/dateKey.js +47 -0
  125. package/lib/module/core/dateKey.js.map +1 -0
  126. package/lib/module/core/motion.js +49 -0
  127. package/lib/module/core/motion.js.map +1 -0
  128. package/lib/module/core/worklets.js +38 -0
  129. package/lib/module/core/worklets.js.map +1 -0
  130. package/lib/module/expandable/DayCell.js +116 -0
  131. package/lib/module/expandable/DayCell.js.map +1 -0
  132. package/lib/module/expandable/ExpandableCalendar.js +275 -0
  133. package/lib/module/expandable/ExpandableCalendar.js.map +1 -0
  134. package/lib/module/expandable/Knob.js +67 -0
  135. package/lib/module/expandable/Knob.js.map +1 -0
  136. package/lib/module/expandable/MonthPager.js +175 -0
  137. package/lib/module/expandable/MonthPager.js.map +1 -0
  138. package/lib/module/expandable/WeekStrip.js +446 -0
  139. package/lib/module/expandable/WeekStrip.js.map +1 -0
  140. package/lib/module/expandable/calendarCells.js +142 -0
  141. package/lib/module/expandable/calendarCells.js.map +1 -0
  142. package/lib/module/expandable/geometry.js +58 -0
  143. package/lib/module/expandable/geometry.js.map +1 -0
  144. package/lib/module/expandable/useExpandGesture.js +118 -0
  145. package/lib/module/expandable/useExpandGesture.js.map +1 -0
  146. package/lib/module/expandable/useHorizontalPager.js +92 -0
  147. package/lib/module/expandable/useHorizontalPager.js.map +1 -0
  148. package/lib/module/index.js +35 -0
  149. package/lib/module/index.js.map +1 -0
  150. package/lib/module/package.json +1 -0
  151. package/lib/module/theme/ThemeProvider.js +65 -0
  152. package/lib/module/theme/ThemeProvider.js.map +1 -0
  153. package/lib/module/theme/index.js +6 -0
  154. package/lib/module/theme/index.js.map +1 -0
  155. package/lib/module/theme/theme.js +74 -0
  156. package/lib/module/theme/theme.js.map +1 -0
  157. package/lib/module/theme/tokens.js +50 -0
  158. package/lib/module/theme/tokens.js.map +1 -0
  159. package/lib/module/timeline/DayColumn.js +91 -0
  160. package/lib/module/timeline/DayColumn.js.map +1 -0
  161. package/lib/module/timeline/DayPager.js +245 -0
  162. package/lib/module/timeline/DayPager.js.map +1 -0
  163. package/lib/module/timeline/EventBlock.js +87 -0
  164. package/lib/module/timeline/EventBlock.js.map +1 -0
  165. package/lib/module/timeline/GridLines.js +43 -0
  166. package/lib/module/timeline/GridLines.js.map +1 -0
  167. package/lib/module/timeline/HourGrid.js +94 -0
  168. package/lib/module/timeline/HourGrid.js.map +1 -0
  169. package/lib/module/timeline/NowIndicator.js +126 -0
  170. package/lib/module/timeline/NowIndicator.js.map +1 -0
  171. package/lib/module/timeline/TimelineDay.js +122 -0
  172. package/lib/module/timeline/TimelineDay.js.map +1 -0
  173. package/lib/module/timeline/packEvents.js +97 -0
  174. package/lib/module/timeline/packEvents.js.map +1 -0
  175. package/lib/module/timeline/timelineGeometry.js +22 -0
  176. package/lib/module/timeline/timelineGeometry.js.map +1 -0
  177. package/lib/module/timeline/timelineMath.js +75 -0
  178. package/lib/module/timeline/timelineMath.js.map +1 -0
  179. package/lib/module/types.js +67 -0
  180. package/lib/module/types.js.map +1 -0
  181. package/lib/typescript/commonjs/agenda/AgendaBackdrop.d.ts +20 -0
  182. package/lib/typescript/commonjs/agenda/AgendaBackdrop.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/agenda/AgendaList.d.ts +12 -0
  184. package/lib/typescript/commonjs/agenda/AgendaList.d.ts.map +1 -0
  185. package/lib/typescript/commonjs/agenda/AgendaSlot.d.ts +45 -0
  186. package/lib/typescript/commonjs/agenda/AgendaSlot.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/agenda/AgendaWindow.d.ts +49 -0
  188. package/lib/typescript/commonjs/agenda/AgendaWindow.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/agenda/StickyHeaderOverlay.d.ts +39 -0
  190. package/lib/typescript/commonjs/agenda/StickyHeaderOverlay.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/agenda/buildAgendaLayout.d.ts +57 -0
  192. package/lib/typescript/commonjs/agenda/buildAgendaLayout.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/agenda/constants.d.ts +19 -0
  194. package/lib/typescript/commonjs/agenda/constants.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/agenda/heights.d.ts +20 -0
  196. package/lib/typescript/commonjs/agenda/heights.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/agenda/useAgendaScrollSync.d.ts +44 -0
  198. package/lib/typescript/commonjs/agenda/useAgendaScrollSync.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/core/ArrowGlyph.d.ts +14 -0
  200. package/lib/typescript/commonjs/core/ArrowGlyph.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/core/CalendarContext.d.ts +35 -0
  202. package/lib/typescript/commonjs/core/CalendarContext.d.ts.map +1 -0
  203. package/lib/typescript/commonjs/core/CalendarProvider.d.ts +41 -0
  204. package/lib/typescript/commonjs/core/CalendarProvider.d.ts.map +1 -0
  205. package/lib/typescript/commonjs/core/CalendarStore.d.ts +28 -0
  206. package/lib/typescript/commonjs/core/CalendarStore.d.ts.map +1 -0
  207. package/lib/typescript/commonjs/core/KitText.d.ts +10 -0
  208. package/lib/typescript/commonjs/core/KitText.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/core/TodayButton.d.ts +18 -0
  210. package/lib/typescript/commonjs/core/TodayButton.d.ts.map +1 -0
  211. package/lib/typescript/commonjs/core/civil.d.ts +26 -0
  212. package/lib/typescript/commonjs/core/civil.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/core/dateKey.d.ts +21 -0
  214. package/lib/typescript/commonjs/core/dateKey.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/core/motion.d.ts +18 -0
  216. package/lib/typescript/commonjs/core/motion.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/core/worklets.d.ts +12 -0
  218. package/lib/typescript/commonjs/core/worklets.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/expandable/DayCell.d.ts +22 -0
  220. package/lib/typescript/commonjs/expandable/DayCell.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/expandable/ExpandableCalendar.d.ts +40 -0
  222. package/lib/typescript/commonjs/expandable/ExpandableCalendar.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/expandable/Knob.d.ts +19 -0
  224. package/lib/typescript/commonjs/expandable/Knob.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/expandable/MonthPager.d.ts +35 -0
  226. package/lib/typescript/commonjs/expandable/MonthPager.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/expandable/WeekStrip.d.ts +34 -0
  228. package/lib/typescript/commonjs/expandable/WeekStrip.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/expandable/calendarCells.d.ts +52 -0
  230. package/lib/typescript/commonjs/expandable/calendarCells.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/expandable/geometry.d.ts +43 -0
  232. package/lib/typescript/commonjs/expandable/geometry.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/expandable/useExpandGesture.d.ts +35 -0
  234. package/lib/typescript/commonjs/expandable/useExpandGesture.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/expandable/useHorizontalPager.d.ts +35 -0
  236. package/lib/typescript/commonjs/expandable/useHorizontalPager.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/index.d.ts +26 -0
  238. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  239. package/lib/typescript/commonjs/package.json +1 -0
  240. package/lib/typescript/commonjs/theme/ThemeProvider.d.ts +27 -0
  241. package/lib/typescript/commonjs/theme/ThemeProvider.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/theme/index.d.ts +4 -0
  243. package/lib/typescript/commonjs/theme/index.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/theme/theme.d.ts +62 -0
  245. package/lib/typescript/commonjs/theme/theme.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/theme/tokens.d.ts +46 -0
  247. package/lib/typescript/commonjs/theme/tokens.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/timeline/DayColumn.d.ts +32 -0
  249. package/lib/typescript/commonjs/timeline/DayColumn.d.ts.map +1 -0
  250. package/lib/typescript/commonjs/timeline/DayPager.d.ts +32 -0
  251. package/lib/typescript/commonjs/timeline/DayPager.d.ts.map +1 -0
  252. package/lib/typescript/commonjs/timeline/EventBlock.d.ts +17 -0
  253. package/lib/typescript/commonjs/timeline/EventBlock.d.ts.map +1 -0
  254. package/lib/typescript/commonjs/timeline/GridLines.d.ts +5 -0
  255. package/lib/typescript/commonjs/timeline/GridLines.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/timeline/HourGrid.d.ts +12 -0
  257. package/lib/typescript/commonjs/timeline/HourGrid.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/timeline/NowIndicator.d.ts +28 -0
  259. package/lib/typescript/commonjs/timeline/NowIndicator.d.ts.map +1 -0
  260. package/lib/typescript/commonjs/timeline/TimelineDay.d.ts +14 -0
  261. package/lib/typescript/commonjs/timeline/TimelineDay.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/timeline/packEvents.d.ts +25 -0
  263. package/lib/typescript/commonjs/timeline/packEvents.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/timeline/timelineGeometry.d.ts +14 -0
  265. package/lib/typescript/commonjs/timeline/timelineGeometry.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/timeline/timelineMath.d.ts +32 -0
  267. package/lib/typescript/commonjs/timeline/timelineMath.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/types.d.ts +237 -0
  269. package/lib/typescript/commonjs/types.d.ts.map +1 -0
  270. package/lib/typescript/module/agenda/AgendaBackdrop.d.ts +20 -0
  271. package/lib/typescript/module/agenda/AgendaBackdrop.d.ts.map +1 -0
  272. package/lib/typescript/module/agenda/AgendaList.d.ts +12 -0
  273. package/lib/typescript/module/agenda/AgendaList.d.ts.map +1 -0
  274. package/lib/typescript/module/agenda/AgendaSlot.d.ts +45 -0
  275. package/lib/typescript/module/agenda/AgendaSlot.d.ts.map +1 -0
  276. package/lib/typescript/module/agenda/AgendaWindow.d.ts +49 -0
  277. package/lib/typescript/module/agenda/AgendaWindow.d.ts.map +1 -0
  278. package/lib/typescript/module/agenda/StickyHeaderOverlay.d.ts +39 -0
  279. package/lib/typescript/module/agenda/StickyHeaderOverlay.d.ts.map +1 -0
  280. package/lib/typescript/module/agenda/buildAgendaLayout.d.ts +57 -0
  281. package/lib/typescript/module/agenda/buildAgendaLayout.d.ts.map +1 -0
  282. package/lib/typescript/module/agenda/constants.d.ts +19 -0
  283. package/lib/typescript/module/agenda/constants.d.ts.map +1 -0
  284. package/lib/typescript/module/agenda/heights.d.ts +20 -0
  285. package/lib/typescript/module/agenda/heights.d.ts.map +1 -0
  286. package/lib/typescript/module/agenda/useAgendaScrollSync.d.ts +44 -0
  287. package/lib/typescript/module/agenda/useAgendaScrollSync.d.ts.map +1 -0
  288. package/lib/typescript/module/core/ArrowGlyph.d.ts +14 -0
  289. package/lib/typescript/module/core/ArrowGlyph.d.ts.map +1 -0
  290. package/lib/typescript/module/core/CalendarContext.d.ts +35 -0
  291. package/lib/typescript/module/core/CalendarContext.d.ts.map +1 -0
  292. package/lib/typescript/module/core/CalendarProvider.d.ts +41 -0
  293. package/lib/typescript/module/core/CalendarProvider.d.ts.map +1 -0
  294. package/lib/typescript/module/core/CalendarStore.d.ts +28 -0
  295. package/lib/typescript/module/core/CalendarStore.d.ts.map +1 -0
  296. package/lib/typescript/module/core/KitText.d.ts +10 -0
  297. package/lib/typescript/module/core/KitText.d.ts.map +1 -0
  298. package/lib/typescript/module/core/TodayButton.d.ts +18 -0
  299. package/lib/typescript/module/core/TodayButton.d.ts.map +1 -0
  300. package/lib/typescript/module/core/civil.d.ts +26 -0
  301. package/lib/typescript/module/core/civil.d.ts.map +1 -0
  302. package/lib/typescript/module/core/dateKey.d.ts +21 -0
  303. package/lib/typescript/module/core/dateKey.d.ts.map +1 -0
  304. package/lib/typescript/module/core/motion.d.ts +18 -0
  305. package/lib/typescript/module/core/motion.d.ts.map +1 -0
  306. package/lib/typescript/module/core/worklets.d.ts +12 -0
  307. package/lib/typescript/module/core/worklets.d.ts.map +1 -0
  308. package/lib/typescript/module/expandable/DayCell.d.ts +22 -0
  309. package/lib/typescript/module/expandable/DayCell.d.ts.map +1 -0
  310. package/lib/typescript/module/expandable/ExpandableCalendar.d.ts +40 -0
  311. package/lib/typescript/module/expandable/ExpandableCalendar.d.ts.map +1 -0
  312. package/lib/typescript/module/expandable/Knob.d.ts +19 -0
  313. package/lib/typescript/module/expandable/Knob.d.ts.map +1 -0
  314. package/lib/typescript/module/expandable/MonthPager.d.ts +35 -0
  315. package/lib/typescript/module/expandable/MonthPager.d.ts.map +1 -0
  316. package/lib/typescript/module/expandable/WeekStrip.d.ts +34 -0
  317. package/lib/typescript/module/expandable/WeekStrip.d.ts.map +1 -0
  318. package/lib/typescript/module/expandable/calendarCells.d.ts +52 -0
  319. package/lib/typescript/module/expandable/calendarCells.d.ts.map +1 -0
  320. package/lib/typescript/module/expandable/geometry.d.ts +43 -0
  321. package/lib/typescript/module/expandable/geometry.d.ts.map +1 -0
  322. package/lib/typescript/module/expandable/useExpandGesture.d.ts +35 -0
  323. package/lib/typescript/module/expandable/useExpandGesture.d.ts.map +1 -0
  324. package/lib/typescript/module/expandable/useHorizontalPager.d.ts +35 -0
  325. package/lib/typescript/module/expandable/useHorizontalPager.d.ts.map +1 -0
  326. package/lib/typescript/module/index.d.ts +26 -0
  327. package/lib/typescript/module/index.d.ts.map +1 -0
  328. package/lib/typescript/module/package.json +1 -0
  329. package/lib/typescript/module/theme/ThemeProvider.d.ts +27 -0
  330. package/lib/typescript/module/theme/ThemeProvider.d.ts.map +1 -0
  331. package/lib/typescript/module/theme/index.d.ts +4 -0
  332. package/lib/typescript/module/theme/index.d.ts.map +1 -0
  333. package/lib/typescript/module/theme/theme.d.ts +62 -0
  334. package/lib/typescript/module/theme/theme.d.ts.map +1 -0
  335. package/lib/typescript/module/theme/tokens.d.ts +46 -0
  336. package/lib/typescript/module/theme/tokens.d.ts.map +1 -0
  337. package/lib/typescript/module/timeline/DayColumn.d.ts +32 -0
  338. package/lib/typescript/module/timeline/DayColumn.d.ts.map +1 -0
  339. package/lib/typescript/module/timeline/DayPager.d.ts +32 -0
  340. package/lib/typescript/module/timeline/DayPager.d.ts.map +1 -0
  341. package/lib/typescript/module/timeline/EventBlock.d.ts +17 -0
  342. package/lib/typescript/module/timeline/EventBlock.d.ts.map +1 -0
  343. package/lib/typescript/module/timeline/GridLines.d.ts +5 -0
  344. package/lib/typescript/module/timeline/GridLines.d.ts.map +1 -0
  345. package/lib/typescript/module/timeline/HourGrid.d.ts +12 -0
  346. package/lib/typescript/module/timeline/HourGrid.d.ts.map +1 -0
  347. package/lib/typescript/module/timeline/NowIndicator.d.ts +28 -0
  348. package/lib/typescript/module/timeline/NowIndicator.d.ts.map +1 -0
  349. package/lib/typescript/module/timeline/TimelineDay.d.ts +14 -0
  350. package/lib/typescript/module/timeline/TimelineDay.d.ts.map +1 -0
  351. package/lib/typescript/module/timeline/packEvents.d.ts +25 -0
  352. package/lib/typescript/module/timeline/packEvents.d.ts.map +1 -0
  353. package/lib/typescript/module/timeline/timelineGeometry.d.ts +14 -0
  354. package/lib/typescript/module/timeline/timelineGeometry.d.ts.map +1 -0
  355. package/lib/typescript/module/timeline/timelineMath.d.ts +32 -0
  356. package/lib/typescript/module/timeline/timelineMath.d.ts.map +1 -0
  357. package/lib/typescript/module/types.d.ts +237 -0
  358. package/lib/typescript/module/types.d.ts.map +1 -0
  359. package/package.json +105 -0
  360. package/src/agenda/AgendaBackdrop.tsx +55 -0
  361. package/src/agenda/AgendaList.tsx +370 -0
  362. package/src/agenda/AgendaSlot.tsx +88 -0
  363. package/src/agenda/AgendaWindow.tsx +183 -0
  364. package/src/agenda/StickyHeaderOverlay.tsx +126 -0
  365. package/src/agenda/buildAgendaLayout.ts +110 -0
  366. package/src/agenda/constants.ts +22 -0
  367. package/src/agenda/heights.ts +44 -0
  368. package/src/agenda/useAgendaScrollSync.ts +251 -0
  369. package/src/core/ArrowGlyph.tsx +53 -0
  370. package/src/core/CalendarContext.ts +47 -0
  371. package/src/core/CalendarProvider.tsx +165 -0
  372. package/src/core/CalendarStore.ts +64 -0
  373. package/src/core/KitText.tsx +10 -0
  374. package/src/core/TodayButton.tsx +121 -0
  375. package/src/core/civil.ts +92 -0
  376. package/src/core/dateKey.ts +52 -0
  377. package/src/core/motion.ts +51 -0
  378. package/src/core/worklets.ts +37 -0
  379. package/src/expandable/DayCell.tsx +97 -0
  380. package/src/expandable/ExpandableCalendar.tsx +278 -0
  381. package/src/expandable/Knob.tsx +67 -0
  382. package/src/expandable/MonthPager.tsx +208 -0
  383. package/src/expandable/WeekStrip.tsx +439 -0
  384. package/src/expandable/calendarCells.ts +155 -0
  385. package/src/expandable/geometry.ts +51 -0
  386. package/src/expandable/useExpandGesture.ts +147 -0
  387. package/src/expandable/useHorizontalPager.ts +116 -0
  388. package/src/index.ts +62 -0
  389. package/src/theme/ThemeProvider.tsx +85 -0
  390. package/src/theme/index.ts +18 -0
  391. package/src/theme/theme.ts +110 -0
  392. package/src/theme/tokens.ts +50 -0
  393. package/src/timeline/DayColumn.tsx +84 -0
  394. package/src/timeline/DayPager.tsx +295 -0
  395. package/src/timeline/EventBlock.tsx +76 -0
  396. package/src/timeline/GridLines.tsx +36 -0
  397. package/src/timeline/HourGrid.tsx +90 -0
  398. package/src/timeline/NowIndicator.tsx +123 -0
  399. package/src/timeline/TimelineDay.tsx +112 -0
  400. package/src/timeline/packEvents.ts +118 -0
  401. package/src/timeline/timelineGeometry.ts +23 -0
  402. package/src/timeline/timelineMath.ts +86 -0
  403. package/src/types.ts +252 -0
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ANIMATION", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _tokens.ANIMATION;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "AgendaKitThemeProvider", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _index.AgendaKitThemeProvider;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "AgendaList", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _AgendaList.AgendaList;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "CalendarProvider", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _CalendarProvider.CalendarProvider;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "EASING", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _tokens.EASING;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "ExpandableCalendar", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _ExpandableCalendar.ExpandableCalendar;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "FONT_SIZE", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _tokens.FONT_SIZE;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "KitText", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _KitText.KitText;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "RADIUS", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _tokens.RADIUS;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "SPACING", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _tokens.SPACING;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "TimelineList", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _TimelineDay.TimelineList;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "UpdateSources", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _types.UpdateSources;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "buildRange", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _dateKey.buildRange;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "clampIndex", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _dateKey.clampIndex;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "darkTheme", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _index.darkTheme;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "dayIndexOf", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _dateKey.dayIndexOf;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "epochDayOfYmd", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _civil.epochDayOfYmd;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "lightTheme", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _index.lightTheme;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "resolveTheme", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _index.resolveTheme;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "todayEpochDay", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _civil.todayEpochDay;
124
+ }
125
+ });
126
+ Object.defineProperty(exports, "todayIndexOf", {
127
+ enumerable: true,
128
+ get: function () {
129
+ return _dateKey.todayIndexOf;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "useCalendarDate", {
133
+ enumerable: true,
134
+ get: function () {
135
+ return _CalendarContext.useCalendarDate;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "useKitTheme", {
139
+ enumerable: true,
140
+ get: function () {
141
+ return _index.useKitTheme;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "ymdAt", {
145
+ enumerable: true,
146
+ get: function () {
147
+ return _dateKey.ymdAt;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "ymdOfEpochDay", {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _civil.ymdOfEpochDay;
154
+ }
155
+ });
156
+ var _AgendaList = require("./agenda/AgendaList.js");
157
+ var _CalendarProvider = require("./core/CalendarProvider.js");
158
+ var _ExpandableCalendar = require("./expandable/ExpandableCalendar.js");
159
+ var _TimelineDay = require("./timeline/TimelineDay.js");
160
+ var _KitText = require("./core/KitText.js");
161
+ var _dateKey = require("./core/dateKey.js");
162
+ var _CalendarContext = require("./core/CalendarContext.js");
163
+ var _civil = require("./core/civil.js");
164
+ var _index = require("./theme/index.js");
165
+ var _tokens = require("./theme/tokens.js");
166
+ var _types = require("./types.js");
167
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_AgendaList","require","_CalendarProvider","_ExpandableCalendar","_TimelineDay","_KitText","_dateKey","_CalendarContext","_civil","_index","_tokens","_types"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAGA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAGA,IAAAQ,MAAA,GAAAR,OAAA;AAaA,IAAAS,OAAA,GAAAT,OAAA;AAGA,IAAAU,MAAA,GAAAV,OAAA","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.AgendaKitThemeProvider = void 0;
7
+ exports.useKitStyles = useKitStyles;
8
+ exports.useKitTheme = void 0;
9
+ var _react = require("react");
10
+ var _theme = require("./theme.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ /**
13
+ * Theme plumbing. Two exports matter to a consumer: `AgendaKitThemeProvider`
14
+ * and `useKitTheme`. Everything else is how the kit builds stylesheets.
15
+ *
16
+ * A theme is optional — with no provider above it the kit renders `lightTheme`,
17
+ * so a consumer can drop `<ExpandableCalendar />` in and see something correct
18
+ * before deciding on colours.
19
+ */
20
+
21
+ const ThemeContext = /*#__PURE__*/(0, _react.createContext)(_theme.lightTheme);
22
+ const AgendaKitThemeProvider = ({
23
+ theme,
24
+ base = _theme.lightTheme,
25
+ children
26
+ }) => {
27
+ // The resolved object's IDENTITY is the stylesheet cache key, so it must be
28
+ // stable across renders — a consumer passing an inline literal would
29
+ // otherwise rebuild every sheet in the tree on every render.
30
+ const value = (0, _react.useMemo)(() => (0, _theme.resolveTheme)(base, theme), [base, theme]);
31
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ThemeContext.Provider, {
32
+ value: value,
33
+ children: children
34
+ });
35
+ };
36
+ exports.AgendaKitThemeProvider = AgendaKitThemeProvider;
37
+ const useKitTheme = () => (0, _react.useContext)(ThemeContext);
38
+ exports.useKitTheme = useKitTheme;
39
+ /**
40
+ * The ONE way a kit component builds a StyleSheet.
41
+ *
42
+ * const makeStyles = ({ colors }: KitStyleArgs) => StyleSheet.create({ ... });
43
+ * const styles = useKitStyles(makeStyles);
44
+ *
45
+ * A module-scope `StyleSheet.create` is built once and can never follow the
46
+ * theme. This builds it through a factory instead, and caches one sheet per
47
+ * (factory, theme) for the life of the process — so a list with three hundred
48
+ * rows calling this from its row component shares one object, and memoised
49
+ * rows still compare equal.
50
+ *
51
+ * The factory MUST be a module-scope constant depending only on its arguments:
52
+ * it is half the cache key.
53
+ */
54
+ const cache = new WeakMap();
55
+ function useKitStyles(factory) {
56
+ const theme = useKitTheme();
57
+ let byTheme = cache.get(factory);
58
+ if (!byTheme) {
59
+ byTheme = new WeakMap();
60
+ cache.set(factory, byTheme);
61
+ }
62
+ let built = byTheme.get(theme);
63
+ if (!built) {
64
+ built = factory({
65
+ colors: theme.colors,
66
+ fonts: theme.fonts,
67
+ dark: theme.dark
68
+ });
69
+ byTheme.set(theme, built);
70
+ }
71
+ return built;
72
+ }
73
+ //# sourceMappingURL=ThemeProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_theme","_jsxRuntime","ThemeContext","createContext","lightTheme","AgendaKitThemeProvider","theme","base","children","value","useMemo","resolveTheme","jsx","Provider","exports","useKitTheme","useContext","cache","WeakMap","useKitStyles","factory","byTheme","get","set","built","colors","fonts","dark"],"sourceRoot":"../../../src","sources":["theme/ThemeProvider.tsx"],"mappings":";;;;;;;;AASA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAKiB,IAAAE,WAAA,GAAAF,OAAA;AAfjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,MAAMG,YAAY,gBAAG,IAAAC,oBAAa,EAAiBC,iBAAU,CAAC;AAUvD,MAAMC,sBAAsB,GAAGA,CAAC;EACrCC,KAAK;EACLC,IAAI,GAAGH,iBAAU;EACjBI;AAC2B,CAAC,KAAK;EACjC;EACA;EACA;EACA,MAAMC,KAAK,GAAG,IAAAC,cAAO,EACnB,MAAM,IAAAC,mBAAY,EAACJ,IAAI,EAAED,KAA0C,CAAC,EACpE,CAACC,IAAI,EAAED,KAAK,CACd,CAAC;EACD,oBAAO,IAAAL,WAAA,CAAAW,GAAA,EAACV,YAAY,CAACW,QAAQ;IAACJ,KAAK,EAAEA,KAAM;IAAAD,QAAA,EAAEA;EAAQ,CAAwB,CAAC;AAChF,CAAC;AAACM,OAAA,CAAAT,sBAAA,GAAAA,sBAAA;AAEK,MAAMU,WAAW,GAAGA,CAAA,KAAsB,IAAAC,iBAAU,EAACd,YAAY,CAAC;AAACY,OAAA,CAAAC,WAAA,GAAAA,WAAA;AAU1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAME,KAAK,GAAG,IAAIC,OAAO,CAAyD,CAAC;AAE5E,SAASC,YAAYA,CAAIC,OAA2B,EAAK;EAC9D,MAAMd,KAAK,GAAGS,WAAW,CAAC,CAAC;EAE3B,IAAIM,OAAO,GAAGJ,KAAK,CAACK,GAAG,CAACF,OAAO,CAAC;EAChC,IAAI,CAACC,OAAO,EAAE;IACZA,OAAO,GAAG,IAAIH,OAAO,CAAC,CAAC;IACvBD,KAAK,CAACM,GAAG,CAACH,OAAO,EAAEC,OAAO,CAAC;EAC7B;EAEA,IAAIG,KAAK,GAAGH,OAAO,CAACC,GAAG,CAAChB,KAAK,CAAkB;EAC/C,IAAI,CAACkB,KAAK,EAAE;IACVA,KAAK,GAAGJ,OAAO,CAAC;MAAEK,MAAM,EAAEnB,KAAK,CAACmB,MAAM;MAAEC,KAAK,EAAEpB,KAAK,CAACoB,KAAK;MAAEC,IAAI,EAAErB,KAAK,CAACqB;IAAK,CAAC,CAAC;IAC/EN,OAAO,CAACE,GAAG,CAACjB,KAAK,EAAEkB,KAAK,CAAC;EAC3B;EACA,OAAOA,KAAK;AACd","ignoreList":[]}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ANIMATION", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _tokens.ANIMATION;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "AgendaKitThemeProvider", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _ThemeProvider.AgendaKitThemeProvider;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "EASING", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _tokens.EASING;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "FONT_SIZE", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _tokens.FONT_SIZE;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "RADIUS", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _tokens.RADIUS;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "SPACING", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _tokens.SPACING;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "darkTheme", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _theme.darkTheme;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "lightTheme", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _theme.lightTheme;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "resolveTheme", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _theme.resolveTheme;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "useKitStyles", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _ThemeProvider.useKitStyles;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "useKitTheme", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _ThemeProvider.useKitTheme;
70
+ }
71
+ });
72
+ var _ThemeProvider = require("./ThemeProvider.js");
73
+ var _theme = require("./theme.js");
74
+ var _tokens = require("./tokens.js");
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_ThemeProvider","require","_theme","_tokens"],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAQA,IAAAC,MAAA,GAAAD,OAAA;AASA,IAAAE,OAAA,GAAAF,OAAA","ignoreList":[]}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.resolveTheme = exports.lightTheme = exports.darkTheme = void 0;
7
+ /**
8
+ * The kit's entire visual surface: eleven colours and three font families.
9
+ *
10
+ * It is deliberately flat and deliberately small. Every name says what the
11
+ * value PAINTS, not where it came from in some design system — so a consumer
12
+ * can map their own tokens onto it in one object literal and know nothing was
13
+ * missed. If a colour is not in this list, the kit does not draw it.
14
+ */
15
+
16
+ /**
17
+ * Font families by weight. `undefined` means the platform default — the kit
18
+ * ships no fonts and never assumes one is loaded.
19
+ */
20
+
21
+ /** True-neutral greys (R=G=B) so the accent carries all the colour. */
22
+ const lightTheme = exports.lightTheme = {
23
+ colors: {
24
+ surface: '#FFFFFF',
25
+ canvas: '#F4F4F4',
26
+ border: '#DDDDDD',
27
+ accent: '#5B6FAE',
28
+ accentFill: '#5B6FAE',
29
+ onAccentFill: '#FFFFFF',
30
+ accentSoft: '#E8EBF4',
31
+ accentSubtle: '#F7F8FB',
32
+ text: '#1F1F1F',
33
+ textMuted: '#6F6F6F',
34
+ nowIndicator: '#EF4444'
35
+ },
36
+ fonts: {},
37
+ dark: false
38
+ };
39
+
40
+ /**
41
+ * `text` is #CCCCCC, not white: a bold stroke at 14:1 on a dark surface blooms
42
+ * optically and reads as glowing. The accent FILL does not lift (white on the
43
+ * lighter #818CF8 is only 2.99:1) — only the INK does.
44
+ */
45
+ const darkTheme = exports.darkTheme = {
46
+ colors: {
47
+ surface: '#181818',
48
+ canvas: '#121212',
49
+ border: '#3A3A3A',
50
+ accent: '#818CF8',
51
+ accentFill: '#5B6FAE',
52
+ onAccentFill: '#FFFFFF',
53
+ accentSoft: '#212123',
54
+ accentSubtle: '#1C1C1E',
55
+ text: '#CCCCCC',
56
+ textMuted: '#8C8C8C',
57
+ nowIndicator: '#F87171'
58
+ },
59
+ fonts: {},
60
+ dark: true
61
+ };
62
+
63
+ /** Shallow-merges each group. Called once per distinct input, in the provider. */
64
+ const resolveTheme = (base, overrides) => {
65
+ if (!overrides) return base;
66
+ return {
67
+ colors: {
68
+ ...base.colors,
69
+ ...overrides.colors
70
+ },
71
+ fonts: {
72
+ ...base.fonts,
73
+ ...overrides.fonts
74
+ },
75
+ dark: overrides.dark ?? base.dark
76
+ };
77
+ };
78
+ exports.resolveTheme = resolveTheme;
79
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["lightTheme","exports","colors","surface","canvas","border","accent","accentFill","onAccentFill","accentSoft","accentSubtle","text","textMuted","nowIndicator","fonts","dark","darkTheme","resolveTheme","base","overrides"],"sourceRoot":"../../../src","sources":["theme/theme.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2BA;AACA;AACA;AACA;;AAmBA;AACO,MAAMA,UAA0B,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxCE,MAAM,EAAE;IACNC,OAAO,EAAE,SAAS;IAClBC,MAAM,EAAE,SAAS;IACjBC,MAAM,EAAE,SAAS;IACjBC,MAAM,EAAE,SAAS;IACjBC,UAAU,EAAE,SAAS;IACrBC,YAAY,EAAE,SAAS;IACvBC,UAAU,EAAE,SAAS;IACrBC,YAAY,EAAE,SAAS;IACvBC,IAAI,EAAE,SAAS;IACfC,SAAS,EAAE,SAAS;IACpBC,YAAY,EAAE;EAChB,CAAC;EACDC,KAAK,EAAE,CAAC,CAAC;EACTC,IAAI,EAAE;AACR,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,MAAMC,SAAyB,GAAAf,OAAA,CAAAe,SAAA,GAAG;EACvCd,MAAM,EAAE;IACNC,OAAO,EAAE,SAAS;IAClBC,MAAM,EAAE,SAAS;IACjBC,MAAM,EAAE,SAAS;IACjBC,MAAM,EAAE,SAAS;IACjBC,UAAU,EAAE,SAAS;IACrBC,YAAY,EAAE,SAAS;IACvBC,UAAU,EAAE,SAAS;IACrBC,YAAY,EAAE,SAAS;IACvBC,IAAI,EAAE,SAAS;IACfC,SAAS,EAAE,SAAS;IACpBC,YAAY,EAAE;EAChB,CAAC;EACDC,KAAK,EAAE,CAAC,CAAC;EACTC,IAAI,EAAE;AACR,CAAC;;AAED;AACO,MAAME,YAAY,GAAGA,CAC1BC,IAAoB,EACpBC,SAAiC,KACd;EACnB,IAAI,CAACA,SAAS,EAAE,OAAOD,IAAI;EAC3B,OAAO;IACLhB,MAAM,EAAE;MAAE,GAAGgB,IAAI,CAAChB,MAAM;MAAE,GAAGiB,SAAS,CAACjB;IAAO,CAAC;IAC/CY,KAAK,EAAE;MAAE,GAAGI,IAAI,CAACJ,KAAK;MAAE,GAAGK,SAAS,CAACL;IAAM,CAAC;IAC5CC,IAAI,EAAEI,SAAS,CAACJ,IAAI,IAAIG,IAAI,CAACH;EAC/B,CAAC;AACH,CAAC;AAACd,OAAA,CAAAgB,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SPACING = exports.RADIUS = exports.FONT_SIZE = exports.EASING = exports.ANIMATION = void 0;
7
+ /**
8
+ * Static metrics. NOT themeable, on purpose.
9
+ *
10
+ * Row heights, week-strip geometry and the packer all read these at module
11
+ * scope — `expandable/geometry.ts` computes line heights from `FONT_SIZE`
12
+ * before any React tree exists. A themeable font size would mean measuring at
13
+ * runtime, which is exactly what this kit refuses to do (declared heights are
14
+ * why a fling never shifts the list).
15
+ *
16
+ * Motion is here for the same reason: `KIT_EASING` is captured by worklets at
17
+ * module scope, so it cannot depend on a React context.
18
+ *
19
+ * Colours and font FAMILIES are themeable — see `theme.ts`.
20
+ */
21
+
22
+ const SPACING = exports.SPACING = {
23
+ 0: 0,
24
+ 1: 4,
25
+ 2: 8,
26
+ 3: 12,
27
+ 4: 16,
28
+ 5: 20,
29
+ 6: 24,
30
+ 8: 32
31
+ };
32
+ const FONT_SIZE = exports.FONT_SIZE = {
33
+ xxs: 11,
34
+ xs: 12,
35
+ sm: 14,
36
+ base: 16
37
+ };
38
+ const RADIUS = exports.RADIUS = {
39
+ none: 0,
40
+ card: 8,
41
+ inner: 6,
42
+ full: 9999
43
+ };
44
+
45
+ /** Milliseconds. Short on purpose: a calendar that animates slowly feels broken. */
46
+ const ANIMATION = exports.ANIMATION = {
47
+ fast: 80,
48
+ base: 120,
49
+ slow: 180
50
+ };
51
+ const EASING = exports.EASING = {
52
+ bezier: [0.2, 0, 0, 1]
53
+ };
54
+ //# sourceMappingURL=tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SPACING","exports","FONT_SIZE","xxs","xs","sm","base","RADIUS","none","card","inner","full","ANIMATION","fast","slow","EASING","bezier"],"sourceRoot":"../../../src","sources":["theme/tokens.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG;EACrB,CAAC,EAAE,CAAC;EACJ,CAAC,EAAE,CAAC;EACJ,CAAC,EAAE,CAAC;EACJ,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE;AACL,CAAU;AAEH,MAAME,SAAS,GAAAD,OAAA,CAAAC,SAAA,GAAG;EACvBC,GAAG,EAAE,EAAE;EACPC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,IAAI,EAAE;AACR,CAAU;AAEH,MAAMC,MAAM,GAAAN,OAAA,CAAAM,MAAA,GAAG;EACpBC,IAAI,EAAE,CAAC;EACPC,IAAI,EAAE,CAAC;EACPC,KAAK,EAAE,CAAC;EACRC,IAAI,EAAE;AACR,CAAU;;AAEV;AACO,MAAMC,SAAS,GAAAX,OAAA,CAAAW,SAAA,GAAG;EACvBC,IAAI,EAAE,EAAE;EACRP,IAAI,EAAE,GAAG;EACTQ,IAAI,EAAE;AACR,CAAU;AAEH,MAAMC,MAAM,GAAAd,OAAA,CAAAc,MAAA,GAAG;EACpBC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACvB,CAAU","ignoreList":[]}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DayEvents = exports.DayBands = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _EventBlock = require("./EventBlock.js");
10
+ var _NowIndicator = require("./NowIndicator.js");
11
+ var _packEvents = require("./packEvents.js");
12
+ var _timelineMath = require("./timelineMath.js");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ /**
15
+ * One day as two absolute layers, so the pager can slot the shared hour lines between them:
16
+ * `DayBands` (availability) under the lines, `DayEvents` (packed blocks, then the now-line) above.
17
+ * Packing is memoised on the day's own event array: mounting a neighbour packs one day.
18
+ */
19
+
20
+ const DayBandsInner = ({
21
+ left,
22
+ width,
23
+ availableHours,
24
+ color,
25
+ hourHeight
26
+ }) => {
27
+ const bands = (0, _react.useMemo)(() => (0, _timelineMath.buildBands)(availableHours, hourHeight), [availableHours, hourHeight]);
28
+ const fill = (0, _react.useMemo)(() => ({
29
+ backgroundColor: color
30
+ }), [color]);
31
+ if (!bands.length) return null;
32
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
33
+ pointerEvents: "none",
34
+ style: [styles.column, {
35
+ left,
36
+ width
37
+ }],
38
+ children: bands.map((band, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
39
+ style: [styles.band, fill, {
40
+ top: band.top,
41
+ height: band.height
42
+ }]
43
+ }, i))
44
+ });
45
+ };
46
+ const DayBands = exports.DayBands = /*#__PURE__*/(0, _react.memo)(DayBandsInner);
47
+ DayBands.displayName = 'DayBands';
48
+ const DayEventsInner = ({
49
+ left,
50
+ width,
51
+ events,
52
+ hourHeight,
53
+ overlapEventsSpacing,
54
+ rightEdgeSpacing,
55
+ renderEvent,
56
+ onEventPress,
57
+ nowMinutes
58
+ }) => {
59
+ const packed = (0, _react.useMemo)(() => (0, _packEvents.packEvents)(events, {
60
+ colW: width,
61
+ hourHeight,
62
+ overlapEventsSpacing,
63
+ rightEdgeSpacing
64
+ }), [events, hourHeight, overlapEventsSpacing, rightEdgeSpacing, width]);
65
+ if (!packed.length && !nowMinutes) return null;
66
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
67
+ pointerEvents: "box-none",
68
+ style: [styles.column, {
69
+ left,
70
+ width
71
+ }],
72
+ children: [packed.map(event => /*#__PURE__*/(0, _jsxRuntime.jsx)(_EventBlock.EventBlock, {
73
+ event: event,
74
+ renderEvent: renderEvent,
75
+ onPress: onEventPress
76
+ }, event.id)), nowMinutes ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_NowIndicator.NowIndicator, {
77
+ hourHeight: hourHeight,
78
+ minutes: nowMinutes
79
+ }) : null]
80
+ });
81
+ };
82
+ const DayEvents = exports.DayEvents = /*#__PURE__*/(0, _react.memo)(DayEventsInner);
83
+ const styles = _reactNative.StyleSheet.create({
84
+ column: {
85
+ position: 'absolute',
86
+ top: 0,
87
+ bottom: 0
88
+ },
89
+ band: {
90
+ position: 'absolute',
91
+ left: 0,
92
+ right: 0
93
+ }
94
+ });
95
+ //# sourceMappingURL=DayColumn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_EventBlock","_NowIndicator","_packEvents","_timelineMath","_jsxRuntime","DayBandsInner","left","width","availableHours","color","hourHeight","bands","useMemo","buildBands","fill","backgroundColor","length","jsx","View","pointerEvents","style","styles","column","children","map","band","i","top","height","DayBands","exports","memo","displayName","DayEventsInner","events","overlapEventsSpacing","rightEdgeSpacing","renderEvent","onEventPress","nowMinutes","packed","packEvents","colW","jsxs","event","EventBlock","onPress","id","NowIndicator","minutes","DayEvents","StyleSheet","create","position","bottom","right"],"sourceRoot":"../../../src","sources":["timeline/DayColumn.tsx"],"mappings":"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","ignoreList":[]}