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,250 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DayPager = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
+ var _reactNativeWorklets = require("react-native-worklets");
11
+ var _CalendarContext = require("../core/CalendarContext.js");
12
+ var _dateKey = require("../core/dateKey.js");
13
+ var _DayColumn = require("./DayColumn.js");
14
+ var _GridLines = require("./GridLines.js");
15
+ var _NowIndicator = require("./NowIndicator.js");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
18
+ /**
19
+ * Day columns, paged horizontally across the SELECTABLE days (the range is padded to whole weeks;
20
+ * a swipe must not land on padding). Column `i` sits at `(i − minIndex) · width`; only the centre
21
+ * and its neighbours are mounted. Content stacking is the library's: bands → lines → events.
22
+ *
23
+ * The doctor's swipe commits at MOMENTUM END as `origin: 'timeline'`, which this pager ignores.
24
+ * Any other move animates to a mounted neighbour, or mounts the destination first (keeping the
25
+ * current columns), jumps once it exists, and releases the old columns on the first scroll there.
26
+ *
27
+ * `contentOffset` is read once: the native ScrollView re-applies it whenever its value changes, so
28
+ * a width-derived offset per render would throw the pager back to the day it opened on.
29
+ */
30
+
31
+ const offsetOfIndex = (idx, minIndex, width) => {
32
+ 'worklet';
33
+
34
+ return (idx - minIndex) * width;
35
+ };
36
+ const indexAtOffset = (x, minIndex, width) => {
37
+ 'worklet';
38
+
39
+ return minIndex + Math.round(x / width);
40
+ };
41
+ const DayPagerInner = ({
42
+ left,
43
+ width,
44
+ height,
45
+ events,
46
+ availableHoursFor,
47
+ bandColor,
48
+ hourHeight,
49
+ overlapEventsSpacing,
50
+ rightEdgeSpacing,
51
+ renderEvent,
52
+ onEventPress,
53
+ showNowIndicator
54
+ }) => {
55
+ const {
56
+ range,
57
+ store,
58
+ dateRef,
59
+ commitDate
60
+ } = (0, _CalendarContext.useCalendarContext)();
61
+ const listRef = (0, _reactNativeReanimated.useAnimatedRef)();
62
+
63
+ // Plain numbers for the worklets: a captured `range` would be frozen in dev.
64
+ const {
65
+ minIndex,
66
+ maxIndex,
67
+ todayIndex
68
+ } = range;
69
+ const pageCount = maxIndex - minIndex + 1;
70
+ const todayPage = todayIndex >= minIndex && todayIndex <= maxIndex ? todayIndex - minIndex : -1;
71
+ const showNow = showNowIndicator && todayPage >= 0;
72
+ const nowMinutes = (0, _NowIndicator.useNowMinutesSV)(showNow);
73
+ const [initialCenter] = (0, _react.useState)(() => (0, _dateKey.clampIndex)(range, (0, _dateKey.dayIndexOf)(range, dateRef.current)));
74
+ const [initialOffset] = (0, _react.useState)(() => ({
75
+ x: offsetOfIndex(initialCenter, minIndex, width),
76
+ y: 0
77
+ }));
78
+ const [center, setCenter] = (0, _react.useState)(initialCenter);
79
+ const [jumpFrom, setJumpFrom] = (0, _react.useState)(null);
80
+ const pendingX = (0, _react.useRef)(null);
81
+ const centerSV = (0, _reactNativeReanimated.useSharedValue)(initialCenter);
82
+ const widthSV = (0, _reactNativeReanimated.useSharedValue)(width);
83
+ const scrollX = (0, _reactNativeReanimated.useSharedValue)(initialOffset.x);
84
+ const userDriven = (0, _reactNativeReanimated.useSharedValue)(0);
85
+ const ready = (0, _reactNativeReanimated.useSharedValue)(0);
86
+ const releaseAtX = (0, _reactNativeReanimated.useSharedValue)(-1);
87
+
88
+ // Every column just moved: land back on the day that was showing.
89
+ (0, _react.useEffect)(() => {
90
+ (0, _reactNativeWorklets.scheduleOnUI)(() => {
91
+ 'worklet';
92
+
93
+ if (widthSV.value === width) return;
94
+ widthSV.value = width;
95
+ const x = offsetOfIndex(centerSV.value, minIndex, width);
96
+ scrollX.value = x;
97
+ (0, _reactNativeReanimated.scrollTo)(listRef, x, 0, false);
98
+ });
99
+ }, [centerSV, listRef, minIndex, scrollX, width, widthSV]);
100
+
101
+ /** The doctor's swipe settled on a new day. */
102
+ const onSwipeSettled = (0, _react.useCallback)(idx => {
103
+ setCenter(idx);
104
+ commitDate(idx, 'listDrag', 'timeline');
105
+ }, [commitDate]);
106
+ const prepareJump = (0, _react.useCallback)((idx, x) => {
107
+ pendingX.current = x;
108
+ setJumpFrom(centerSV.value);
109
+ setCenter(idx);
110
+ }, [centerSV]);
111
+ const releaseJump = (0, _react.useCallback)(() => setJumpFrom(null), []);
112
+
113
+ // The destination columns are committed: land on them.
114
+ (0, _react.useLayoutEffect)(() => {
115
+ const x = pendingX.current;
116
+ if (x === null) return;
117
+ pendingX.current = null;
118
+ centerSV.value = center;
119
+ (0, _reactNativeWorklets.scheduleOnUI)(() => {
120
+ 'worklet';
121
+
122
+ releaseAtX.value = x;
123
+ userDriven.value = 0;
124
+ scrollX.value = x;
125
+ (0, _reactNativeReanimated.scrollTo)(listRef, x, 0, false);
126
+ });
127
+ }, [center, centerSV, listRef, releaseAtX, scrollX, userDriven]);
128
+ (0, _reactNativeReanimated.useAnimatedReaction)(() => store.move.value, (m, prev) => {
129
+ if (!prev || m.seq === prev.seq || m.origin === 'timeline') return;
130
+ if (ready.value === 0) return;
131
+ const idx = m.idx < minIndex ? minIndex : m.idx > maxIndex ? maxIndex : m.idx;
132
+ const x = offsetOfIndex(idx, minIndex, widthSV.value);
133
+ userDriven.value = 0;
134
+ if (Math.abs(idx - centerSV.value) <= 1) {
135
+ (0, _reactNativeReanimated.scrollTo)(listRef, x, 0, m.animated);
136
+ if (idx !== centerSV.value) {
137
+ centerSV.value = idx;
138
+ (0, _reactNativeWorklets.runOnJS)(setCenter)(idx);
139
+ }
140
+ return;
141
+ }
142
+ (0, _reactNativeWorklets.runOnJS)(prepareJump)(idx, x);
143
+ });
144
+ const onScroll = (0, _reactNativeReanimated.useAnimatedScrollHandler)({
145
+ onScroll: e => {
146
+ scrollX.value = e.contentOffset.x;
147
+ if (releaseAtX.value >= 0 && Math.abs(e.contentOffset.x - releaseAtX.value) < 1) {
148
+ releaseAtX.value = -1;
149
+ (0, _reactNativeWorklets.runOnJS)(releaseJump)();
150
+ }
151
+ },
152
+ onBeginDrag: () => {
153
+ userDriven.value = 1;
154
+ },
155
+ onMomentumEnd: e => {
156
+ const idx = indexAtOffset(e.contentOffset.x, minIndex, widthSV.value);
157
+ const wasUser = userDriven.value === 1;
158
+ userDriven.value = 0;
159
+ if (!wasUser || idx === centerSV.value) return;
160
+ // This pager owns the position while the doctor swipes it, so it writes
161
+ // the UI-thread date itself; `commitDate` deliberately does not.
162
+ store.dayIndex.value = idx;
163
+ centerSV.value = idx;
164
+ (0, _reactNativeWorklets.runOnJS)(onSwipeSettled)(idx);
165
+ }
166
+ });
167
+ const onLayout = (0, _react.useCallback)(() => {
168
+ ready.value = 1;
169
+ }, [ready]);
170
+ const layers = (0, _react.useMemo)(() => {
171
+ const bands = [];
172
+ const dayEvents = [];
173
+ const lo = jumpFrom === null || center <= jumpFrom ? center : jumpFrom;
174
+ const hi = jumpFrom === null || center >= jumpFrom ? center : jumpFrom;
175
+ let last = minIndex - 1;
176
+ // Two ascending 3-day windows; starting past `last` skips the days they share.
177
+ for (let pass = 0; pass < 2; pass += 1) {
178
+ const c = pass === 0 ? lo : hi;
179
+ for (let i = Math.max(c - 1, last + 1); i <= c + 1 && i <= maxIndex; i += 1) {
180
+ last = i;
181
+ const ymd = (0, _dateKey.ymdAt)(range, i);
182
+ const colLeft = offsetOfIndex(i, minIndex, width);
183
+ bands.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_DayColumn.DayBands, {
184
+ left: colLeft,
185
+ width: width,
186
+ availableHours: availableHoursFor(ymd),
187
+ color: bandColor,
188
+ hourHeight: hourHeight
189
+ }, ymd));
190
+ dayEvents.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_DayColumn.DayEvents, {
191
+ left: colLeft,
192
+ width: width,
193
+ events: events[ymd],
194
+ hourHeight: hourHeight,
195
+ overlapEventsSpacing: overlapEventsSpacing,
196
+ rightEdgeSpacing: rightEdgeSpacing,
197
+ renderEvent: renderEvent,
198
+ onEventPress: onEventPress,
199
+ nowMinutes: showNow && i === todayIndex ? nowMinutes : undefined
200
+ }, ymd));
201
+ }
202
+ }
203
+ return {
204
+ bands,
205
+ dayEvents
206
+ };
207
+ }, [availableHoursFor, bandColor, center, events, hourHeight, jumpFrom, maxIndex, minIndex, nowMinutes, onEventPress, overlapEventsSpacing, range, renderEvent, rightEdgeSpacing, showNow, todayIndex, width]);
208
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
209
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.ScrollView, {
210
+ ref: listRef,
211
+ horizontal: true,
212
+ pagingEnabled: true,
213
+ nestedScrollEnabled: true,
214
+ showsHorizontalScrollIndicator: false,
215
+ onScroll: onScroll,
216
+ scrollEventThrottle: 16,
217
+ contentOffset: initialOffset,
218
+ onLayout: onLayout,
219
+ style: [styles.pager, {
220
+ left,
221
+ width,
222
+ height
223
+ }],
224
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
225
+ style: {
226
+ width: pageCount * width,
227
+ height
228
+ },
229
+ children: [layers.bands, /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridLines.ColumnLines, {
230
+ hourHeight: hourHeight
231
+ }), layers.dayEvents]
232
+ })
233
+ }), showNow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_NowIndicator.NowKnob, {
234
+ left: left,
235
+ hourHeight: hourHeight,
236
+ minutes: nowMinutes,
237
+ page: todayPage,
238
+ pageWidth: widthSV,
239
+ scrollX: scrollX
240
+ }) : null]
241
+ });
242
+ };
243
+ const DayPager = exports.DayPager = /*#__PURE__*/(0, _react.memo)(DayPagerInner);
244
+ const styles = _reactNative.StyleSheet.create({
245
+ pager: {
246
+ position: 'absolute',
247
+ top: 0
248
+ }
249
+ });
250
+ //# sourceMappingURL=DayPager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeWorklets","_CalendarContext","_dateKey","_DayColumn","_GridLines","_NowIndicator","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","offsetOfIndex","idx","minIndex","width","indexAtOffset","x","Math","round","DayPagerInner","left","height","events","availableHoursFor","bandColor","hourHeight","overlapEventsSpacing","rightEdgeSpacing","renderEvent","onEventPress","showNowIndicator","range","store","dateRef","commitDate","useCalendarContext","listRef","useAnimatedRef","maxIndex","todayIndex","pageCount","todayPage","showNow","nowMinutes","useNowMinutesSV","initialCenter","useState","clampIndex","dayIndexOf","current","initialOffset","y","center","setCenter","jumpFrom","setJumpFrom","pendingX","useRef","centerSV","useSharedValue","widthSV","scrollX","userDriven","ready","releaseAtX","useEffect","scheduleOnUI","value","scrollTo","onSwipeSettled","useCallback","prepareJump","releaseJump","useLayoutEffect","useAnimatedReaction","move","m","prev","seq","origin","abs","animated","runOnJS","onScroll","useAnimatedScrollHandler","contentOffset","onBeginDrag","onMomentumEnd","wasUser","dayIndex","onLayout","layers","useMemo","bands","dayEvents","lo","hi","last","pass","c","max","ymd","ymdAt","colLeft","push","jsx","DayBands","availableHours","color","DayEvents","undefined","jsxs","Fragment","children","ScrollView","ref","horizontal","pagingEnabled","nestedScrollEnabled","showsHorizontalScrollIndicator","scrollEventThrottle","style","styles","pager","View","ColumnLines","NowKnob","minutes","page","pageWidth","DayPager","exports","memo","StyleSheet","create","position","top"],"sourceRoot":"../../../src","sources":["timeline/DayPager.tsx"],"mappings":";;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAOA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAEA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AAA0D,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAG,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA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AAE,UAAU;IAAEC,GAAG,EAAE;EAAE;AACxC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EventBlock = void 0;
7
+ var _index = require("../theme/index.js");
8
+ var _tokens = require("../theme/tokens.js");
9
+ var _react = require("react");
10
+ var _reactNative = require("react-native");
11
+ var _KitText = require("../core/KitText.js");
12
+ var _timelineGeometry = require("./timelineGeometry.js");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ /**
15
+ * One packed event: the library's `EventBlock` container (absolute, `minHeight: 25`, padding 4/5,
16
+ * 0.9 opacity when pressed) around the caller's `renderEvent`. The fill is the event's own colour,
17
+ * else the soft accent token; the hairline ring gives a pastel block an edge on the dark palette
18
+ *.
19
+ */
20
+
21
+ const EventBlockInner = ({
22
+ event,
23
+ renderEvent,
24
+ onPress
25
+ }) => {
26
+ const styles = (0, _index.useKitStyles)(makeStyles);
27
+ const handlePress = (0, _react.useCallback)(() => onPress?.(event), [event, onPress]);
28
+ const {
29
+ color,
30
+ left,
31
+ top,
32
+ width,
33
+ height
34
+ } = event;
35
+ const blockStyle = (0, _react.useMemo)(() => {
36
+ const rest = [styles.block, color ? {
37
+ backgroundColor: color
38
+ } : styles.blockDefault, {
39
+ left,
40
+ top,
41
+ width,
42
+ height
43
+ }];
44
+ const pressed = [rest, styles.pressed];
45
+ return {
46
+ rest,
47
+ pressed
48
+ };
49
+ }, [color, height, left, styles, top, width]);
50
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
51
+ onPress: handlePress,
52
+ style: ({
53
+ pressed
54
+ }) => pressed ? blockStyle.pressed : blockStyle.rest,
55
+ children: renderEvent ? renderEvent(event) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_KitText.KitText, {
56
+ style: styles.title,
57
+ numberOfLines: 1,
58
+ children: event.title
59
+ })
60
+ });
61
+ };
62
+ const EventBlock = exports.EventBlock = /*#__PURE__*/(0, _react.memo)(EventBlockInner);
63
+ const makeStyles = ({
64
+ colors,
65
+ fonts
66
+ }) => _reactNative.StyleSheet.create({
67
+ block: {
68
+ position: 'absolute',
69
+ minHeight: _timelineGeometry.EVENT_MIN_HEIGHT,
70
+ paddingLeft: 4,
71
+ paddingTop: 5,
72
+ flexDirection: 'column',
73
+ alignItems: 'flex-start',
74
+ overflow: 'hidden',
75
+ borderRadius: _tokens.RADIUS.inner,
76
+ borderWidth: _reactNative.StyleSheet.hairlineWidth,
77
+ borderColor: colors.border
78
+ },
79
+ blockDefault: {
80
+ backgroundColor: colors.accentSoft
81
+ },
82
+ pressed: {
83
+ opacity: 0.9
84
+ },
85
+ title: {
86
+ fontFamily: fonts.semiBold,
87
+ fontSize: _tokens.FONT_SIZE.xs,
88
+ color: colors.text
89
+ }
90
+ });
91
+ //# sourceMappingURL=EventBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","_tokens","_react","_reactNative","_KitText","_timelineGeometry","_jsxRuntime","EventBlockInner","event","renderEvent","onPress","styles","useKitStyles","makeStyles","handlePress","useCallback","color","left","top","width","height","blockStyle","useMemo","rest","block","backgroundColor","blockDefault","pressed","jsx","Pressable","style","children","KitText","title","numberOfLines","EventBlock","exports","memo","colors","fonts","StyleSheet","create","position","minHeight","EVENT_MIN_HEIGHT","paddingLeft","paddingTop","flexDirection","alignItems","overflow","borderRadius","RADIUS","inner","borderWidth","hairlineWidth","borderColor","border","accentSoft","opacity","fontFamily","semiBold","fontSize","FONT_SIZE","xs","text"],"sourceRoot":"../../../src","sources":["timeline/EventBlock.tsx"],"mappings":";;;;;;AAOA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,iBAAA,GAAAL,OAAA;AAAsD,IA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AACF,KAAK,EAAEnB,MAAM,CAACsB,KAAM;MAACC,aAAa,EAAE,CAAE;MAAAH,QAAA,EAC5CvB,KAAK,CAACyB;IAAK,CACL;EACV,CACQ,CAAC;AAEhB,CAAC;AAEM,MAAME,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBAAG,IAAAE,WAAI,EAAC9B,eAAe,CAA2B;AAEzE,MAAMM,UAAU,GAAGA,CAAC;EAAEyB,MAAM;EAAEC;AAAoB,CAAC,KACjDC,uBAAU,CAACC,MAAM,CAAC;EAChBjB,KAAK,EAAE;IACLkB,QAAQ,EAAE,UAAU;IACpBC,SAAS,EAAEC,kCAAgB;IAC3BC,WAAW,EAAE,CAAC;IACdC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE,QAAQ;IACvBC,UAAU,EAAE,YAAY;IACxBC,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAEC,cAAM,CAACC,KAAK;IAC1BC,WAAW,EAAEb,uBAAU,CAACc,aAAa;IACrCC,WAAW,EAAEjB,MAAM,CAACkB;EACtB,CAAC;EACD9B,YAAY,EAAE;IAAED,eAAe,EAAEa,MAAM,CAACmB;EAAW,CAAC;EACpD9B,OAAO,EAAE;IAAE+B,OAAO,EAAE;EAAI,CAAC;EACzBzB,KAAK,EAAE;IACL0B,UAAU,EAAEpB,KAAK,CAACqB,QAAQ;IAC1BC,QAAQ,EAAEC,iBAAS,CAACC,EAAE;IACtB/C,KAAK,EAAEsB,MAAM,CAAC0B;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ColumnLines = void 0;
7
+ var _index = require("../theme/index.js");
8
+ var _react = require("react");
9
+ var _reactNative = require("react-native");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ /** The half-hour and hour lines: ONE layer across the pager's whole content, between bands and events. */
12
+
13
+ const ColumnLinesInner = ({
14
+ hourHeight
15
+ }) => {
16
+ const styles = (0, _index.useKitStyles)(makeStyles);
17
+ const lines = (0, _react.useMemo)(() => {
18
+ const out = [];
19
+ for (let half = 1; half <= 48; half += 1) {
20
+ out.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
21
+ style: [styles.line, {
22
+ top: hourHeight * half / 2
23
+ }]
24
+ }, half));
25
+ }
26
+ return out;
27
+ }, [hourHeight, styles.line]);
28
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
29
+ pointerEvents: "none",
30
+ style: _reactNative.StyleSheet.absoluteFill,
31
+ children: lines
32
+ });
33
+ };
34
+ const ColumnLines = exports.ColumnLines = /*#__PURE__*/(0, _react.memo)(ColumnLinesInner);
35
+ ColumnLines.displayName = 'ColumnLines';
36
+ const makeStyles = ({
37
+ colors
38
+ }) => _reactNative.StyleSheet.create({
39
+ line: {
40
+ position: 'absolute',
41
+ left: 0,
42
+ right: 0,
43
+ height: 1,
44
+ backgroundColor: colors.border
45
+ }
46
+ });
47
+ //# sourceMappingURL=GridLines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","_react","_reactNative","_jsxRuntime","ColumnLinesInner","hourHeight","styles","useKitStyles","makeStyles","lines","useMemo","out","half","push","jsx","View","style","line","top","pointerEvents","StyleSheet","absoluteFill","children","ColumnLines","exports","memo","displayName","colors","create","position","left","right","height","backgroundColor","border"],"sourceRoot":"../../../src","sources":["timeline/GridLines.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAAgD,IAAAG,WAAA,GAAAH,OAAA;AAJhD;;AAMA,MAAMI,gBAAgB,GAAGA,CAAC;EAAEC;AAAmC,CAAC,KAAK;EACnE,MAAMC,MAAM,GAAG,IAAAC,mBAAY,EAACC,UAAU,CAAC;EACvC,MAAMC,KAAK,GAAG,IAAAC,cAAO,EAAC,MAAM;IAC1B,MAAMC,GAAmB,GAAG,EAAE;IAC9B,KAAK,IAAIC,IAAI,GAAG,CAAC,EAAEA,IAAI,IAAI,EAAE,EAAEA,IAAI,IAAI,CAAC,EAAE;MACxCD,GAAG,CAACE,IAAI,cAAC,IAAAV,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAa,IAAI;QAAYC,KAAK,EAAE,CAACV,MAAM,CAACW,IAAI,EAAE;UAAEC,GAAG,EAAGb,UAAU,GAAGO,IAAI,GAAI;QAAE,CAAC;MAAE,GAA7DA,IAA+D,CAAC,CAAC;IACvF;IACA,OAAOD,GAAG;EACZ,CAAC,EAAE,CAACN,UAAU,EAAEC,MAAM,CAACW,IAAI,CAAC,CAAC;EAE7B,oBACE,IAAAd,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAa,IAAI;IAACI,aAAa,EAAC,MAAM;IAACH,KAAK,EAAEI,uBAAU,CAACC,YAAa;IAAAC,QAAA,EACvDb;EAAK,CACF,CAAC;AAEX,CAAC;AAEM,MAAMc,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,WAAI,EAACrB,gBAAgB,CAAC;AACjDmB,WAAW,CAACG,WAAW,GAAG,aAAa;AAEvC,MAAMlB,UAAU,GAAGA,CAAC;EAAEmB;AAAqB,CAAC,KAC1CP,uBAAU,CAACQ,MAAM,CAAC;EAChBX,IAAI,EAAE;IACJY,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,eAAe,EAAEN,MAAM,CAACO;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HourGrid = void 0;
7
+ var _index = require("../theme/index.js");
8
+ var _react = require("react");
9
+ var _reactNative = require("react-native");
10
+ var _KitText = require("../core/KitText.js");
11
+ var _timelineGeometry = require("./timelineGeometry.js");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ /**
14
+ * The time gutter: hour labels, the gutter's edge, and each line's 16 px stub into the gutter
15
+ * (`TimelineHours.js` starts lines at `timelineLeftInset − 16`). The stubs stay here because the
16
+ * pager starts at `GUTTER` and clips, so its shared line layer cannot reach into the gutter.
17
+ */
18
+
19
+ /** `TimelineHours.js`: no label at 0, "23:59" at 24, no zero padding. */const hourLabel = (i, format24h) => {
20
+ if (i < 12) return format24h ? `${i}:00` : `${i} AM`;
21
+ if (i === 12) return format24h ? `${i}:00` : `${i} PM`;
22
+ if (i === 24) return format24h ? '23:59' : '12 AM';
23
+ return format24h ? `${i}:00` : `${i - 12} PM`;
24
+ };
25
+ const HourGridInner = ({
26
+ hourHeight,
27
+ format24h
28
+ }) => {
29
+ const styles = (0, _index.useKitStyles)(makeStyles);
30
+ const nodes = (0, _react.useMemo)(() => {
31
+ const out = [];
32
+ for (let i = 0; i < 24; i += 1) {
33
+ const hourTop = hourHeight * (i + 1);
34
+ out.push(/*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
35
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
36
+ style: [styles.stub, {
37
+ top: hourHeight * (i + 0.5)
38
+ }]
39
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
40
+ style: [styles.stub, {
41
+ top: hourTop
42
+ }]
43
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_KitText.KitText, {
44
+ style: [styles.label, {
45
+ top: hourTop + _timelineGeometry.LABEL_OFFSET_Y
46
+ }],
47
+ children: hourLabel(i + 1, format24h)
48
+ })]
49
+ }, i));
50
+ }
51
+ out.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
52
+ style: [styles.edge, {
53
+ height: (0, _timelineGeometry.gridHeight)(hourHeight) + _timelineGeometry.CONTENT_BOTTOM_PAD
54
+ }]
55
+ }, "edge"));
56
+ return out;
57
+ }, [format24h, hourHeight, styles.edge, styles.label, styles.stub]);
58
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
59
+ pointerEvents: "none",
60
+ style: _reactNative.StyleSheet.absoluteFill,
61
+ children: nodes
62
+ });
63
+ };
64
+ const HourGrid = exports.HourGrid = /*#__PURE__*/(0, _react.memo)(HourGridInner);
65
+ HourGrid.displayName = 'HourGrid';
66
+ const makeStyles = ({
67
+ colors,
68
+ fonts
69
+ }) => _reactNative.StyleSheet.create({
70
+ label: {
71
+ position: 'absolute',
72
+ left: 0,
73
+ width: _timelineGeometry.GUTTER - _timelineGeometry.LINE_GUTTER_OVERHANG,
74
+ paddingLeft: _timelineGeometry.LABEL_PADDING_LEFT,
75
+ textAlign: 'center',
76
+ fontFamily: fonts.medium,
77
+ fontSize: 10,
78
+ color: colors.textMuted
79
+ },
80
+ stub: {
81
+ position: 'absolute',
82
+ left: _timelineGeometry.GUTTER - _timelineGeometry.LINE_GUTTER_OVERHANG,
83
+ width: _timelineGeometry.LINE_GUTTER_OVERHANG,
84
+ height: 1,
85
+ backgroundColor: colors.border
86
+ },
87
+ // The last gutter pixel (`TimelineHours.js`: `right: width`); at `GUTTER` the bands painted over it.
88
+ edge: {
89
+ position: 'absolute',
90
+ top: 0,
91
+ left: _timelineGeometry.GUTTER - 1,
92
+ width: 1,
93
+ backgroundColor: colors.border
94
+ }
95
+ });
96
+ //# sourceMappingURL=HourGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","_react","_reactNative","_KitText","_timelineGeometry","_jsxRuntime","hourLabel","i","format24h","HourGridInner","hourHeight","styles","useKitStyles","makeStyles","nodes","useMemo","out","hourTop","push","jsxs","Fragment","children","jsx","View","style","stub","top","KitText","label","LABEL_OFFSET_Y","edge","height","gridHeight","CONTENT_BOTTOM_PAD","pointerEvents","StyleSheet","absoluteFill","HourGrid","exports","memo","displayName","colors","fonts","create","position","left","width","GUTTER","LINE_GUTTER_OVERHANG","paddingLeft","LABEL_PADDING_LEFT","textAlign","fontFamily","medium","fontSize","color","textMuted","backgroundColor","border"],"sourceRoot":"../../../src","sources":["timeline/HourGrid.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAO4B,IAAAK,WAAA,GAAAL,OAAA;AAjB5B;AACA;AACA;AACA;AACA;;AAeA,yEACA,MAAMM,SAAS,GAAGA,CAACC,CAAS,EAAEC,SAAkB,KAAa;EAC3D,IAAID,CAAC,GAAG,EAAE,EAAE,OAAOC,SAAS,GAAG,GAAGD,CAAC,KAAK,GAAG,GAAGA,CAAC,KAAK;EACpD,IAAIA,CAAC,KAAK,EAAE,EAAE,OAAOC,SAAS,GAAG,GAAGD,CAAC,KAAK,GAAG,GAAGA,CAAC,KAAK;EACtD,IAAIA,CAAC,KAAK,EAAE,EAAE,OAAOC,SAAS,GAAG,OAAO,GAAG,OAAO;EAClD,OAAOA,SAAS,GAAG,GAAGD,CAAC,KAAK,GAAG,GAAGA,CAAC,GAAG,EAAE,KAAK;AAC/C,CAAC;AAID,MAAME,aAAa,GAAGA,CAAC;EAAEC,UAAU;EAAEF;AAAiB,CAAC,KAAK;EAC1D,MAAMG,MAAM,GAAG,IAAAC,mBAAY,EAACC,UAAU,CAAC;EAEvC,MAAMC,KAAK,GAAG,IAAAC,cAAO,EAAC,MAAM;IAC1B,MAAMC,GAAmB,GAAG,EAAE;IAC9B,KAAK,IAAIT,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,EAAE,EAAEA,CAAC,IAAI,CAAC,EAAE;MAC9B,MAAMU,OAAO,GAAGP,UAAU,IAAIH,CAAC,GAAG,CAAC,CAAC;MACpCS,GAAG,CAACE,IAAI,cACN,IAAAb,WAAA,CAAAc,IAAA,EAAClB,MAAA,CAAAmB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AAEM,MAAMuB,QAAQ,GAAAC,OAAA,CAAAD,QAAA,gBAAG,IAAAE,WAAI,EAAC9B,aAAa,CAAC;AAC3C4B,QAAQ,CAACG,WAAW,GAAG,UAAU;AAEjC,MAAM3B,UAAU,GAAGA,CAAC;EAAE4B,MAAM;EAAEC;AAAoB,CAAC,KACjDP,uBAAU,CAACQ,MAAM,CAAC;EAChBf,KAAK,EAAE;IACLgB,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAEC,wBAAM,GAAGC,sCAAoB;IACpCC,WAAW,EAAEC,oCAAkB;IAC/BC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAEV,KAAK,CAACW,MAAM;IACxBC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEd,MAAM,CAACe;EAChB,CAAC;EACD/B,IAAI,EAAE;IACJmB,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAEE,wBAAM,GAAGC,sCAAoB;IACnCF,KAAK,EAAEE,sCAAoB;IAC3BjB,MAAM,EAAE,CAAC;IACT0B,eAAe,EAAEhB,MAAM,CAACiB;EAC1B,CAAC;EACD;EACA5B,IAAI,EAAE;IACJc,QAAQ,EAAE,UAAU;IACpBlB,GAAG,EAAE,CAAC;IACNmB,IAAI,EAAEE,wBAAM,GAAG,CAAC;IAChBD,KAAK,EAAE,CAAC;IACRW,eAAe,EAAEhB,MAAM,CAACiB;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useNowMinutesSV = exports.NowKnob = exports.NowIndicator = void 0;
7
+ var _index = require("../theme/index.js");
8
+ var _tokens = require("../theme/tokens.js");
9
+ var _react = require("react");
10
+ var _reactNative = require("react-native");
11
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
12
+ var _timelineGeometry = require("./timelineGeometry.js");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ /**
16
+ * The now-line. The minute lives in a SharedValue re-read just past each minute boundary (a bare
17
+ * 60 s interval started mid-minute runs late for the life of the screen) and on foreground; the
18
+ * line and knob move through animated styles, so a tick is zero React commits. No spring: a line
19
+ * that overshoots claims a time that is not now. The pager clips at the gutter, so `NowKnob` draws
20
+ * the whole dot above it at rest and hides mid-swipe — a worklet-driven knob trails by a frame.
21
+ */
22
+
23
+ const KNOB_HANG = Math.floor(_timelineGeometry.NOW_KNOB / 2);
24
+ const SHOWN = {
25
+ opacity: 1
26
+ };
27
+ const HIDDEN = {
28
+ opacity: 0
29
+ };
30
+ const minutesAt = d => d.getHours() * 60 + d.getMinutes();
31
+
32
+ /** Minutes since local midnight, shared by the line and the knob. Disabled means no timer. */
33
+ const useNowMinutesSV = enabled => {
34
+ const minutes = (0, _reactNativeReanimated.useSharedValue)(minutesAt(new Date()));
35
+ (0, _react.useEffect)(() => {
36
+ if (!enabled) return;
37
+ let timer;
38
+ const tick = () => {
39
+ const now = new Date();
40
+ minutes.value = minutesAt(now);
41
+ // 50 ms past the boundary so the re-read lands in the new minute.
42
+ timer = setTimeout(tick, (60 - now.getSeconds()) * 1000 - now.getMilliseconds() + 50);
43
+ };
44
+ tick();
45
+ const sub = _reactNative.AppState.addEventListener('change', state => {
46
+ if (state !== 'active') return;
47
+ clearTimeout(timer);
48
+ tick();
49
+ });
50
+ return () => {
51
+ clearTimeout(timer);
52
+ sub.remove();
53
+ };
54
+ }, [enabled, minutes]);
55
+ return minutes;
56
+ };
57
+ exports.useNowMinutesSV = useNowMinutesSV;
58
+ const NowIndicatorInner = ({
59
+ hourHeight,
60
+ minutes
61
+ }) => {
62
+ const styles = (0, _index.useKitStyles)(makeStyles);
63
+ const position = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
64
+ top: minutes.value / 60 * hourHeight
65
+ }));
66
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
67
+ pointerEvents: "none",
68
+ style: [styles.root, position],
69
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
70
+ style: styles.line
71
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
72
+ style: styles.knob
73
+ })]
74
+ });
75
+ };
76
+ const NowIndicator = exports.NowIndicator = /*#__PURE__*/(0, _react.memo)(NowIndicatorInner);
77
+ NowIndicator.displayName = 'NowIndicator';
78
+ const NowKnobInner = ({
79
+ left,
80
+ hourHeight,
81
+ minutes,
82
+ page,
83
+ pageWidth,
84
+ scrollX
85
+ }) => {
86
+ const styles = (0, _index.useKitStyles)(makeStyles);
87
+ const position = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
88
+ top: minutes.value / 60 * hourHeight - KNOB_HANG
89
+ }));
90
+ // Runs every scroll frame: return the constants by reference, never a fresh object.
91
+ const atRest = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
92
+ const dx = page * pageWidth.value - scrollX.value;
93
+ return dx > -1 && dx < 1 ? SHOWN : HIDDEN;
94
+ });
95
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
96
+ pointerEvents: "none",
97
+ style: [styles.knob, {
98
+ left: left - KNOB_HANG
99
+ }, position, atRest]
100
+ });
101
+ };
102
+ const NowKnob = exports.NowKnob = /*#__PURE__*/(0, _react.memo)(NowKnobInner);
103
+ NowKnob.displayName = 'NowKnob';
104
+ const makeStyles = ({
105
+ colors
106
+ }) => _reactNative.StyleSheet.create({
107
+ root: {
108
+ position: 'absolute',
109
+ left: 0,
110
+ right: 0,
111
+ height: 0
112
+ },
113
+ // The now-line carries information (this minute), so a status colour may appear.
114
+ line: {
115
+ position: 'absolute',
116
+ left: 0,
117
+ right: 0,
118
+ top: 0,
119
+ height: 1,
120
+ backgroundColor: colors.nowIndicator
121
+ },
122
+ knob: {
123
+ position: 'absolute',
124
+ left: -KNOB_HANG,
125
+ top: -KNOB_HANG,
126
+ width: _timelineGeometry.NOW_KNOB,
127
+ height: _timelineGeometry.NOW_KNOB,
128
+ borderRadius: _tokens.RADIUS.full,
129
+ backgroundColor: colors.nowIndicator
130
+ }
131
+ });
132
+ //# sourceMappingURL=NowIndicator.js.map