@multiplatform.one/components 9.12.1 → 9.13.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 (375) hide show
  1. package/dist/cjs/Lightbox/index.native.js +13 -6
  2. package/dist/cjs/Lightbox/index.native.js.map +1 -1
  3. package/dist/cjs/Lightbox/shared.cjs +20 -0
  4. package/dist/cjs/Lightbox/shared.native.js +22 -0
  5. package/dist/cjs/Lightbox/shared.native.js.map +1 -1
  6. package/dist/cjs/canvas/index.cjs +20 -0
  7. package/dist/cjs/canvas/index.native.js +23 -0
  8. package/dist/cjs/canvas/index.native.js.map +1 -0
  9. package/dist/cjs/canvas/panBounds.cjs +76 -0
  10. package/dist/cjs/canvas/panBounds.native.js +83 -0
  11. package/dist/cjs/canvas/panBounds.native.js.map +1 -0
  12. package/dist/cjs/index.cjs +1 -0
  13. package/dist/cjs/index.native.js +1 -0
  14. package/dist/cjs/index.native.js.map +1 -1
  15. package/dist/cjs/views/Calendar.cjs +281 -40
  16. package/dist/cjs/views/Calendar.native.js +291 -40
  17. package/dist/cjs/views/Calendar.native.js.map +1 -1
  18. package/dist/cjs/views/calendarMath.cjs +14 -0
  19. package/dist/cjs/views/calendarMath.native.js +14 -0
  20. package/dist/cjs/views/calendarMath.native.js.map +1 -1
  21. package/dist/esm/Lightbox/index.native.js +14 -7
  22. package/dist/esm/Lightbox/index.native.js.map +1 -1
  23. package/dist/esm/Lightbox/shared.mjs +20 -1
  24. package/dist/esm/Lightbox/shared.mjs.map +1 -1
  25. package/dist/esm/Lightbox/shared.native.js +22 -1
  26. package/dist/esm/Lightbox/shared.native.js.map +1 -1
  27. package/dist/esm/canvas/index.mjs +2 -0
  28. package/dist/esm/canvas/index.mjs.map +1 -0
  29. package/dist/esm/canvas/index.native.js +2 -0
  30. package/dist/esm/canvas/index.native.js.map +1 -0
  31. package/dist/esm/canvas/panBounds.mjs +46 -0
  32. package/dist/esm/canvas/panBounds.mjs.map +1 -0
  33. package/dist/esm/canvas/panBounds.native.js +50 -0
  34. package/dist/esm/canvas/panBounds.native.js.map +1 -0
  35. package/dist/esm/index.mjs +1 -0
  36. package/dist/esm/index.mjs.map +1 -1
  37. package/dist/esm/index.native.js +1 -0
  38. package/dist/esm/index.native.js.map +1 -1
  39. package/dist/esm/views/Calendar.mjs +283 -42
  40. package/dist/esm/views/Calendar.mjs.map +1 -1
  41. package/dist/esm/views/Calendar.native.js +293 -42
  42. package/dist/esm/views/Calendar.native.js.map +1 -1
  43. package/dist/esm/views/calendarMath.mjs +14 -1
  44. package/dist/esm/views/calendarMath.mjs.map +1 -1
  45. package/dist/esm/views/calendarMath.native.js +14 -1
  46. package/dist/esm/views/calendarMath.native.js.map +1 -1
  47. package/dist/jsx/Accordion/index.native.js +1 -1
  48. package/dist/jsx/Accordion/index.native.js.map +1 -1
  49. package/dist/jsx/Alert/index.native.js.map +1 -1
  50. package/dist/jsx/AnimateHeight/index.native.js.map +1 -1
  51. package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
  52. package/dist/jsx/Avatar/index.native.js.map +1 -1
  53. package/dist/jsx/Badge/index.native.js.map +1 -1
  54. package/dist/jsx/Button.native.js.map +1 -1
  55. package/dist/jsx/Card.native.js.map +1 -1
  56. package/dist/jsx/CardFooter.native.js.map +1 -1
  57. package/dist/jsx/CardHeader.native.js.map +1 -1
  58. package/dist/jsx/Carousel/geometry.native.js.map +1 -1
  59. package/dist/jsx/Carousel/index.native.js +2 -2
  60. package/dist/jsx/Carousel/index.native.js.map +1 -1
  61. package/dist/jsx/ChatTurn/index.native.js.map +1 -1
  62. package/dist/jsx/CheckGlyph/MenuCheckColumn.native.js.map +1 -1
  63. package/dist/jsx/CheckGlyph/index.native.js.map +1 -1
  64. package/dist/jsx/Chip/index.native.js.map +1 -1
  65. package/dist/jsx/ChoiceChips/index.native.js +1 -1
  66. package/dist/jsx/ChoiceChips/index.native.js.map +1 -1
  67. package/dist/jsx/Collapsible.native.js.map +1 -1
  68. package/dist/jsx/ContextMenu/index.native.js.map +1 -1
  69. package/dist/jsx/CopyField/CopyMenuButton.native.js +1 -1
  70. package/dist/jsx/CopyField/CopyMenuButton.native.js.map +1 -1
  71. package/dist/jsx/CopyField/index.native.js.map +1 -1
  72. package/dist/jsx/Dialog.native.js +1 -1
  73. package/dist/jsx/Dialog.native.js.map +1 -1
  74. package/dist/jsx/Diff/diff.native.js.map +1 -1
  75. package/dist/jsx/Diff/index.native.js.map +1 -1
  76. package/dist/jsx/DotIndicator/index.native.js.map +1 -1
  77. package/dist/jsx/DrillStack/DrillBar.native.js.map +1 -1
  78. package/dist/jsx/DrillStack/context.native.js.map +1 -1
  79. package/dist/jsx/DrillStack/drillMotion.native.js.map +1 -1
  80. package/dist/jsx/DropDownPanel/index.native.js.map +1 -1
  81. package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
  82. package/dist/jsx/DropdownMenu/menuSettle.native.js.map +1 -1
  83. package/dist/jsx/ElapsedProgress/index.native.js.map +1 -1
  84. package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
  85. package/dist/jsx/Heading.native.js.map +1 -1
  86. package/dist/jsx/Kbd/index.native.js.map +1 -1
  87. package/dist/jsx/Kbd/keys.native.js.map +1 -1
  88. package/dist/jsx/Lightbox/MediaControl.native.js.map +1 -1
  89. package/dist/jsx/Lightbox/index.gnome.native.js.map +1 -1
  90. package/dist/jsx/Lightbox/index.native.js +14 -7
  91. package/dist/jsx/Lightbox/index.native.js.map +1 -1
  92. package/dist/jsx/Lightbox/shared.mjs +20 -1
  93. package/dist/jsx/Lightbox/shared.mjs.map +1 -1
  94. package/dist/jsx/Lightbox/shared.native.js +22 -0
  95. package/dist/jsx/Lightbox/shared.native.js.map +1 -1
  96. package/dist/jsx/Lightbox/useLightbox.native.js.map +1 -1
  97. package/dist/jsx/MachineLiteral/index.native.js.map +1 -1
  98. package/dist/jsx/Material/index.native.js.map +1 -1
  99. package/dist/jsx/Meter/index.native.js +1 -1
  100. package/dist/jsx/Meter/index.native.js.map +1 -1
  101. package/dist/jsx/Meter/meter.native.js.map +1 -1
  102. package/dist/jsx/MiddleEllipsisText/middleSplit.native.js.map +1 -1
  103. package/dist/jsx/MiddleEllipsisText/types.native.js.map +1 -1
  104. package/dist/jsx/Pagination.native.js +1 -1
  105. package/dist/jsx/Pagination.native.js.map +1 -1
  106. package/dist/jsx/Popover.native.js +1 -1
  107. package/dist/jsx/Popover.native.js.map +1 -1
  108. package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
  109. package/dist/jsx/Quote/index.native.js.map +1 -1
  110. package/dist/jsx/SchemeToggle/index.native.js +1 -1
  111. package/dist/jsx/SchemeToggle/index.native.js.map +1 -1
  112. package/dist/jsx/ScrollView.native.js.map +1 -1
  113. package/dist/jsx/Separator/index.native.js.map +1 -1
  114. package/dist/jsx/Sheet.native.js.map +1 -1
  115. package/dist/jsx/SheetModal/SheetBodyRegion.native.js.map +1 -1
  116. package/dist/jsx/SheetModal/SheetHeader.native.js.map +1 -1
  117. package/dist/jsx/SheetModal/SheetNavigation.native.js.map +1 -1
  118. package/dist/jsx/SheetModal/detents.native.js.map +1 -1
  119. package/dist/jsx/SheetModal/useSheetFrameFocus.native.js.map +1 -1
  120. package/dist/jsx/SheetScrollView/index.native.js.map +1 -1
  121. package/dist/jsx/SheetScrollView/sheetHandoff.native.js.map +1 -1
  122. package/dist/jsx/Skeleton/index.native.js.map +1 -1
  123. package/dist/jsx/SkipLink/index.native.js.map +1 -1
  124. package/dist/jsx/SortableList/SortableHandle.native.js.map +1 -1
  125. package/dist/jsx/SortableList/index.native.js.map +1 -1
  126. package/dist/jsx/SortableList/useSortableRows.native.js.map +1 -1
  127. package/dist/jsx/SortableList/useUserOrder.native.js.map +1 -1
  128. package/dist/jsx/SwipeDismissRow/index.native.js.map +1 -1
  129. package/dist/jsx/Tabs/index.native.js.map +1 -1
  130. package/dist/jsx/Text.native.js.map +1 -1
  131. package/dist/jsx/ThemePresetPicker/index.native.js +1 -1
  132. package/dist/jsx/ThemePresetPicker/index.native.js.map +1 -1
  133. package/dist/jsx/Toast/index.native.js.map +1 -1
  134. package/dist/jsx/Toast/store.native.js.map +1 -1
  135. package/dist/jsx/Tooltip/nativePress.native.js.map +1 -1
  136. package/dist/jsx/Tooltip/tooltipShared.native.js.map +1 -1
  137. package/dist/jsx/TreeSelect/index.native.js +2 -2
  138. package/dist/jsx/TreeSelect/index.native.js.map +1 -1
  139. package/dist/jsx/TreeSelect/treeSelectModel.native.js.map +1 -1
  140. package/dist/jsx/Video/PlayerChrome.native.js.map +1 -1
  141. package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
  142. package/dist/jsx/Video/types.native.js.map +1 -1
  143. package/dist/jsx/Wheel/index.native.js.map +1 -1
  144. package/dist/jsx/Wizard/index.native.js +2 -2
  145. package/dist/jsx/Wizard/index.native.js.map +1 -1
  146. package/dist/jsx/actions/ActionBar.native.js.map +1 -1
  147. package/dist/jsx/actions/DangerSection.native.js.map +1 -1
  148. package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
  149. package/dist/jsx/actions/HeaderActions.native.js +2 -2
  150. package/dist/jsx/actions/HeaderActions.native.js.map +1 -1
  151. package/dist/jsx/actions/StandardAction.native.js +1 -1
  152. package/dist/jsx/actions/StandardAction.native.js.map +1 -1
  153. package/dist/jsx/actions/devWarn.native.js.map +1 -1
  154. package/dist/jsx/actions/index.native.js.map +1 -1
  155. package/dist/jsx/actions/severity.native.js.map +1 -1
  156. package/dist/jsx/appShell/AppShell.native.js +1 -1
  157. package/dist/jsx/appShell/AppShell.native.js.map +1 -1
  158. package/dist/jsx/appShell/BottomChromeClearance.native.js.map +1 -1
  159. package/dist/jsx/appShell/Dock.native.js.map +1 -1
  160. package/dist/jsx/appShell/MpoTabHost.native.js.map +1 -1
  161. package/dist/jsx/appShell/ScopeMenu.native.js +1 -1
  162. package/dist/jsx/appShell/ScopeMenu.native.js.map +1 -1
  163. package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
  164. package/dist/jsx/appShell/Springboard.native.js +1 -1
  165. package/dist/jsx/appShell/Springboard.native.js.map +1 -1
  166. package/dist/jsx/appShell/SystemBar.native.js +1 -1
  167. package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
  168. package/dist/jsx/appShell/TabBar.native.js +1 -1
  169. package/dist/jsx/appShell/TabBar.native.js.map +1 -1
  170. package/dist/jsx/appShell/appTile.native.js +1 -1
  171. package/dist/jsx/appShell/appTile.native.js.map +1 -1
  172. package/dist/jsx/appShell/bottomChrome.native.js.map +1 -1
  173. package/dist/jsx/appShell/index.native.js.map +1 -1
  174. package/dist/jsx/appShell/stackBack.native.js.map +1 -1
  175. package/dist/jsx/appShell/systemBarFit.native.js.map +1 -1
  176. package/dist/jsx/canvas/index.mjs +2 -0
  177. package/dist/jsx/canvas/index.mjs.map +1 -0
  178. package/dist/jsx/canvas/index.native.js +23 -0
  179. package/dist/jsx/canvas/index.native.js.map +1 -0
  180. package/dist/jsx/canvas/panBounds.mjs +46 -0
  181. package/dist/jsx/canvas/panBounds.mjs.map +1 -0
  182. package/dist/jsx/canvas/panBounds.native.js +83 -0
  183. package/dist/jsx/canvas/panBounds.native.js.map +1 -0
  184. package/dist/jsx/charts/Axis.native.js.map +1 -1
  185. package/dist/jsx/charts/BarChart.native.js.map +1 -1
  186. package/dist/jsx/charts/ChartDataView.native.js +1 -1
  187. package/dist/jsx/charts/ChartDataView.native.js.map +1 -1
  188. package/dist/jsx/charts/ChartSurface.native.js.map +1 -1
  189. package/dist/jsx/charts/LineChart.native.js.map +1 -1
  190. package/dist/jsx/charts/PieChart.native.js.map +1 -1
  191. package/dist/jsx/charts/SeriesLegend.native.js.map +1 -1
  192. package/dist/jsx/charts/Sparkline.native.js.map +1 -1
  193. package/dist/jsx/charts/accessibility.native.js.map +1 -1
  194. package/dist/jsx/charts/chartHeight.native.js.map +1 -1
  195. package/dist/jsx/charts/composeChart.native.js.map +1 -1
  196. package/dist/jsx/charts/index.native.js.map +1 -1
  197. package/dist/jsx/charts/math.native.js.map +1 -1
  198. package/dist/jsx/charts/series.native.js.map +1 -1
  199. package/dist/jsx/charts/svg.native.js.map +1 -1
  200. package/dist/jsx/charts/types.native.js.map +1 -1
  201. package/dist/jsx/charts/useChartTheme.native.js.map +1 -1
  202. package/dist/jsx/code/Code/index.native.js.map +1 -1
  203. package/dist/jsx/code/CodeBlock/index.native.js +7 -7
  204. package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
  205. package/dist/jsx/code/HighlightedCode/index.native.js.map +1 -1
  206. package/dist/jsx/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
  207. package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
  208. package/dist/jsx/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
  209. package/dist/jsx/code/HoldSelect/tapGate.native.js.map +1 -1
  210. package/dist/jsx/code/LogView.native.js.map +1 -1
  211. package/dist/jsx/code/PayloadView/index.native.js +4 -4
  212. package/dist/jsx/code/PayloadView/index.native.js.map +1 -1
  213. package/dist/jsx/code/PayloadView/payloadModel.native.js.map +1 -1
  214. package/dist/jsx/code/Pre/index.native.js.map +1 -1
  215. package/dist/jsx/code/index.native.js +7 -7
  216. package/dist/jsx/code/index.native.js.map +1 -1
  217. package/dist/jsx/componentColors.native.js.map +1 -1
  218. package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
  219. package/dist/jsx/feedback/NotifyHost.native.js +2 -2
  220. package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
  221. package/dist/jsx/feedback/copy.native.js.map +1 -1
  222. package/dist/jsx/feedback/index.native.js.map +1 -1
  223. package/dist/jsx/feedback/notify.native.js.map +1 -1
  224. package/dist/jsx/feedback/route.native.js.map +1 -1
  225. package/dist/jsx/feedback/store.native.js.map +1 -1
  226. package/dist/jsx/formLayouts/FormLayouts.native.js +1 -1
  227. package/dist/jsx/formLayouts/FormLayouts.native.js.map +1 -1
  228. package/dist/jsx/formLayouts/PreferencePanel.native.js +2 -2
  229. package/dist/jsx/formLayouts/PreferencePanel.native.js.map +1 -1
  230. package/dist/jsx/formLayouts/SingleTaskColumn.native.js.map +1 -1
  231. package/dist/jsx/formLayouts/index.native.js.map +1 -1
  232. package/dist/jsx/hooks/index.native.js +1 -1
  233. package/dist/jsx/hooks/index.native.js.map +1 -1
  234. package/dist/jsx/hooks/useClipboard.native.js.map +1 -1
  235. package/dist/jsx/hooks/useDirection.native.js.map +1 -1
  236. package/dist/jsx/hooks/useDocumentTitle.native.js.map +1 -1
  237. package/dist/jsx/icons/CheckRegular.native.js.map +1 -1
  238. package/dist/jsx/icons/MinusRegular.native.js.map +1 -1
  239. package/dist/jsx/icons/index.native.js.map +1 -1
  240. package/dist/jsx/icons/lucide.native.js.map +1 -1
  241. package/dist/jsx/icons/themed.native.js.map +1 -1
  242. package/dist/jsx/images/Image/ImageFrame.native.js +1 -1
  243. package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -1
  244. package/dist/jsx/images/Image/framing.native.js.map +1 -1
  245. package/dist/jsx/images/Image/index.native.js +1 -1
  246. package/dist/jsx/images/Image/mediaRadius.native.js.map +1 -1
  247. package/dist/jsx/images/Image/shared.native.js +1 -1
  248. package/dist/jsx/images/Image/shared.native.js.map +1 -1
  249. package/dist/jsx/images/Image/types.native.js.map +1 -1
  250. package/dist/jsx/images/RemoteArt/index.native.js +1 -1
  251. package/dist/jsx/images/RemoteArt/remoteArtCache.native.js.map +1 -1
  252. package/dist/jsx/images/RemoteArt/svgMarkup.native.js.map +1 -1
  253. package/dist/jsx/images/RemoteArt/types.native.js.map +1 -1
  254. package/dist/jsx/images/index.native.js.map +1 -1
  255. package/dist/jsx/index.gnome.native.js +22 -22
  256. package/dist/jsx/index.gnome.native.js.map +1 -1
  257. package/dist/jsx/index.js +1 -0
  258. package/dist/jsx/index.js.map +1 -1
  259. package/dist/jsx/index.mjs +1 -0
  260. package/dist/jsx/index.mjs.map +1 -1
  261. package/dist/jsx/index.native.js +46 -45
  262. package/dist/jsx/index.native.js.map +1 -1
  263. package/dist/jsx/knobImmuneExports.native.js.map +1 -1
  264. package/dist/jsx/layouts/AsyncBoundary.native.js +2 -2
  265. package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
  266. package/dist/jsx/layouts/Debug/index.native.js.map +1 -1
  267. package/dist/jsx/layouts/EmptyState.native.js +1 -1
  268. package/dist/jsx/layouts/EmptyState.native.js.map +1 -1
  269. package/dist/jsx/layouts/IdentityPlate.native.js.map +1 -1
  270. package/dist/jsx/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  271. package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
  272. package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -1
  273. package/dist/jsx/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  274. package/dist/jsx/layouts/StatusDot.native.js.map +1 -1
  275. package/dist/jsx/layouts/StatusGlyphStrip.native.js +1 -1
  276. package/dist/jsx/layouts/StatusGlyphStrip.native.js.map +1 -1
  277. package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
  278. package/dist/jsx/layouts/asyncFailure.native.js.map +1 -1
  279. package/dist/jsx/layouts/attachments.native.js +2 -2
  280. package/dist/jsx/layouts/attachments.native.js.map +1 -1
  281. package/dist/jsx/layouts/barTitleSpan.native.js.map +1 -1
  282. package/dist/jsx/layouts/bottomAccessory.native.js.map +1 -1
  283. package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
  284. package/dist/jsx/layouts/index.native.js +3 -3
  285. package/dist/jsx/layouts/index.native.js.map +1 -1
  286. package/dist/jsx/layouts/page.native.js +1 -1
  287. package/dist/jsx/layouts/page.native.js.map +1 -1
  288. package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -1
  289. package/dist/jsx/layouts/screenScroll.native.js.map +1 -1
  290. package/dist/jsx/layouts/shellSidebarSlot.native.js.map +1 -1
  291. package/dist/jsx/layouts/sidebar.native.js.map +1 -1
  292. package/dist/jsx/layouts/tags.native.js +1 -1
  293. package/dist/jsx/layouts/tags.native.js.map +1 -1
  294. package/dist/jsx/layouts/timeline.native.js +2 -2
  295. package/dist/jsx/layouts/timeline.native.js.map +1 -1
  296. package/dist/jsx/layouts/toolbar.native.js.map +1 -1
  297. package/dist/jsx/shared/actionScan.native.js.map +1 -1
  298. package/dist/jsx/shared/i18n.native.js.map +1 -1
  299. package/dist/jsx/shared/restoreRetries.native.js.map +1 -1
  300. package/dist/jsx/shared/t.native.js.map +1 -1
  301. package/dist/jsx/shared/textRidesText.native.js.map +1 -1
  302. package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -1
  303. package/dist/jsx/surfaces.native.js +1 -1
  304. package/dist/jsx/surfaces.native.js.map +1 -1
  305. package/dist/jsx/tamagui.native.js.map +1 -1
  306. package/dist/jsx/testSetup.native.js.map +1 -1
  307. package/dist/jsx/utils/unwrapText.native.js.map +1 -1
  308. package/dist/jsx/views/Calendar.mjs +283 -42
  309. package/dist/jsx/views/Calendar.mjs.map +1 -1
  310. package/dist/jsx/views/Calendar.native.js +291 -40
  311. package/dist/jsx/views/Calendar.native.js.map +1 -1
  312. package/dist/jsx/views/CardGrid.native.js.map +1 -1
  313. package/dist/jsx/views/Dashboard.native.js +1 -1
  314. package/dist/jsx/views/Dashboard.native.js.map +1 -1
  315. package/dist/jsx/views/FilePreview.native.js +2 -2
  316. package/dist/jsx/views/FilePreview.native.js.map +1 -1
  317. package/dist/jsx/views/Gantt.native.js +1 -1
  318. package/dist/jsx/views/Gantt.native.js.map +1 -1
  319. package/dist/jsx/views/GanttDateGrip.native.js.map +1 -1
  320. package/dist/jsx/views/ImageGrid.native.js +2 -2
  321. package/dist/jsx/views/ImageGrid.native.js.map +1 -1
  322. package/dist/jsx/views/List.native.js.map +1 -1
  323. package/dist/jsx/views/ListGroup.native.js +1 -1
  324. package/dist/jsx/views/ListGroup.native.js.map +1 -1
  325. package/dist/jsx/views/ListRow.native.js.map +1 -1
  326. package/dist/jsx/views/Matrix.native.js +1 -1
  327. package/dist/jsx/views/Matrix.native.js.map +1 -1
  328. package/dist/jsx/views/ReportBuilder.native.js +1 -1
  329. package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
  330. package/dist/jsx/views/ShortcutCard.native.js.map +1 -1
  331. package/dist/jsx/views/TreeView.native.js.map +1 -1
  332. package/dist/jsx/views/calendarMath.mjs +14 -1
  333. package/dist/jsx/views/calendarMath.mjs.map +1 -1
  334. package/dist/jsx/views/calendarMath.native.js +14 -0
  335. package/dist/jsx/views/calendarMath.native.js.map +1 -1
  336. package/dist/jsx/views/ganttIntervals.native.js.map +1 -1
  337. package/dist/jsx/views/ganttMath.native.js.map +1 -1
  338. package/dist/jsx/views/index.native.js +1 -1
  339. package/dist/jsx/views/index.native.js.map +1 -1
  340. package/dist/jsx/views/kanbanDnd.native.js.map +1 -1
  341. package/dist/jsx/views/matrixMath.native.js.map +1 -1
  342. package/dist/jsx/views/sameNameScope.native.js.map +1 -1
  343. package/dist/jsx/views/treeViewDnd.native.js.map +1 -1
  344. package/dist/jsx/views/treeViewLayout.native.js.map +1 -1
  345. package/dist/jsx/views/treeViewMotion.native.js.map +1 -1
  346. package/dist/jsx/views/treeViewReveal.native.js.map +1 -1
  347. package/dist/jsx/views/usePageFlowLoadMore.native.js.map +1 -1
  348. package/dist/jsx/views/widgetChrome.native.js.map +1 -1
  349. package/package.json +7 -7
  350. package/src/Lightbox/index.native.tsx +16 -5
  351. package/src/Lightbox/shared.spec.ts +39 -0
  352. package/src/Lightbox/shared.ts +23 -0
  353. package/src/canvas/index.ts +1 -0
  354. package/src/canvas/panBounds.spec.ts +95 -0
  355. package/src/canvas/panBounds.ts +84 -0
  356. package/src/index.ts +1 -0
  357. package/src/views/Calendar.eventFill.spec.tsx +118 -0
  358. package/src/views/Calendar.nativeResize.spec.tsx +233 -0
  359. package/src/views/Calendar.stories.tsx +3 -0
  360. package/src/views/Calendar.tsx +295 -33
  361. package/src/views/calendarMath.ts +21 -0
  362. package/src/views/dataIdentity.spec.tsx +4 -3
  363. package/types/Lightbox/index.native.d.ts.map +1 -1
  364. package/types/Lightbox/shared.d.ts +12 -0
  365. package/types/Lightbox/shared.d.ts.map +1 -1
  366. package/types/canvas/index.d.ts +2 -0
  367. package/types/canvas/index.d.ts.map +1 -0
  368. package/types/canvas/panBounds.d.ts +23 -0
  369. package/types/canvas/panBounds.d.ts.map +1 -0
  370. package/types/index.d.ts +1 -0
  371. package/types/index.d.ts.map +1 -1
  372. package/types/views/Calendar.d.ts +7 -2
  373. package/types/views/Calendar.d.ts.map +1 -1
  374. package/types/views/calendarMath.d.ts +13 -0
  375. package/types/views/calendarMath.d.ts.map +1 -1
@@ -3,10 +3,10 @@ import { motionSettleMs, transitionProps, formatCalendarDate, formatDayLong, for
3
3
  import { componentColors, sectionHeading } from "../componentColors.native.js";
4
4
  import { ViewSwitcher } from "../layouts/ViewSwitcher.native.js";
5
5
  import { withInterp } from "../shared/t.native.js";
6
- import { MINUTES_PER_DAY, computeResizeRange, createRangeFromDrag, eventAccessibleLabel, formatTimeRangeLabel, layoutDayBlocks, minutesOfDay, minutesToY, moveFocusDate, moveFocusSlot, moveRangeToSlot, snapMinutes, yToMinutes } from "./calendarMath.native.js";
6
+ import { MINUTES_PER_DAY, computeResizeRange, resizeGripZones, createRangeFromDrag, eventAccessibleLabel, formatTimeRangeLabel, layoutDayBlocks, minutesOfDay, minutesToY, moveFocusDate, moveFocusSlot, moveRangeToSlot, snapMinutes, yToMinutes } from "./calendarMath.native.js";
7
7
  import React, { useState, useMemo, useCallback, useEffect, useId, useRef } from "react";
8
8
  import { useTranslation } from "../shared/i18n.native.js";
9
- import { Button, FloatingPanel, Input, zIndex } from "@multiplatform.one/forms";
9
+ import { Button, FloatingPanel, Input, useHoldCue, zIndex } from "@multiplatform.one/forms";
10
10
  import { AnimatePresence, SizableText, Text as TamaguiText, XStack, YStack, isWeb, styled } from "tamagui";
11
11
  import { ScrollView } from "../ScrollView.native.js";
12
12
  import { useDirection } from "../hooks/useDirection.native.js";
@@ -194,6 +194,11 @@ var TOUCH_LONG_PRESS_MS = 300;
194
194
  var TOUCH_SLOP_PX = 8;
195
195
  var MIN_BLOCK_PX = 18;
196
196
  var RESIZE_ZONE_PX = MIN_PRESS_TARGET;
197
+ var GRIP_DOT_PX = 10;
198
+ var EVENT_TINT_OPACITY = 0.22;
199
+ var EVENT_SELECTED_TINT_OPACITY = 0.38;
200
+ var EVENT_BAR_PX = 3;
201
+ var GRIP_DOT_INSET_PX = 6;
197
202
  var MONTH_CHIP_MIN_PX = 24;
198
203
  function DayNumberDisc(param) {
199
204
  var {
@@ -468,6 +473,8 @@ function Calendar(param) {
468
473
  onEventClick,
469
474
  onEventMove,
470
475
  onEventResize,
476
+ selectedEventId,
477
+ onEventSelect,
471
478
  onEventCreate,
472
479
  enableEventDrag,
473
480
  viewType: initialViewType = "month",
@@ -526,6 +533,7 @@ function Calendar(param) {
526
533
  var webDragEnabled = dragEnabled && hasDom;
527
534
  var nativeDragEnabled = dragEnabled && !isWeb;
528
535
  var webResizeEnabled = onEventResize !== void 0 && hasDom;
536
+ var nativeResizeEnabled = onEventResize !== void 0 && !isWeb;
529
537
  var webCreateEnabled = onEventCreate !== void 0 && hasDom;
530
538
  var [dragGhost, setDragGhost] = useState(null);
531
539
  var [dropTargetKey, setDropTargetKey] = useState(null);
@@ -551,6 +559,34 @@ function Calendar(param) {
551
559
  y: 0
552
560
  });
553
561
  var nativeSessionRef = useRef(null);
562
+ var nativeResizeRef = useRef(null);
563
+ var [innerSelectedId, setInnerSelectedId] = useState(null);
564
+ var [focusedEventId, setFocusedEventId] = useState(null);
565
+ var selectedId = selectedEventId !== void 0 ? selectedEventId : innerSelectedId;
566
+ var selectedIdRef = useRef(selectedId);
567
+ selectedIdRef.current = selectedId;
568
+ var holdTimerRef = useRef(null);
569
+ var heldRef = useRef(false);
570
+ var hold = useHoldCue();
571
+ var [holdCueId, setHoldCueId] = useState(null);
572
+ var selectEvent = useCallback(function (event) {
573
+ var _ref, _ref1;
574
+ if (((_ref = event === null || event === void 0 ? void 0 : event.id) !== null && _ref !== void 0 ? _ref : null) === selectedIdRef.current) return;
575
+ setInnerSelectedId((_ref1 = event === null || event === void 0 ? void 0 : event.id) !== null && _ref1 !== void 0 ? _ref1 : null);
576
+ onEventSelect === null || onEventSelect === void 0 ? void 0 : onEventSelect(event);
577
+ }, [onEventSelect]);
578
+ var clearHoldTimer = useCallback(function () {
579
+ if (holdTimerRef.current) clearTimeout(holdTimerRef.current);
580
+ holdTimerRef.current = null;
581
+ hold.stop();
582
+ }, [hold.stop]);
583
+ var startHoldCue = useCallback(function (event) {
584
+ setHoldCueId(event.id);
585
+ hold.start();
586
+ }, [hold.start]);
587
+ useEffect(function () {
588
+ return clearHoldTimer;
589
+ }, [clearHoldTimer]);
554
590
  slotTargetRef.current = slotTarget;
555
591
  resizePreviewRef.current = resizePreview;
556
592
  editorStateRef.current = editorState;
@@ -682,6 +718,7 @@ function Calendar(param) {
682
718
  onCommit: function onCommit(pt) {
683
719
  endVisuals();
684
720
  suppressNextClick();
721
+ if (onEventResize) selectEvent(event);
685
722
  var ghostFrom = {
686
723
  x: pt.x + 12,
687
724
  y: pt.y + 12
@@ -746,7 +783,7 @@ function Calendar(param) {
746
783
  }
747
784
  });
748
785
  dragSessionCleanupRef.current = cleanup;
749
- }, [webDragEnabled, slotMinutes, hourHeight, onEventMove, commitMoveToKey, beginSettle, suppressNextClick]);
786
+ }, [webDragEnabled, slotMinutes, hourHeight, onEventMove, commitMoveToKey, beginSettle, suppressNextClick, onEventResize, selectEvent]);
750
787
  var handleResizePointerDown = useCallback(function (event, edge, e) {
751
788
  var _e_stopPropagation, _dragSessionCleanupRef_current, _handleEl_closest, _colEl_getBoundingClientRect;
752
789
  if (!webResizeEnabled) return;
@@ -815,6 +852,89 @@ function Calendar(param) {
815
852
  });
816
853
  dragSessionCleanupRef.current = cleanup;
817
854
  }, [webResizeEnabled, hourHeight, slotMinutes, onEventResize, suppressNextClick]);
855
+ var endNativeResize = useCallback(function () {
856
+ nativeResizeRef.current = null;
857
+ setResizePreview(null);
858
+ setScrollLocked(false);
859
+ }, []);
860
+ var handleNativeResizeGrant = useCallback(function (event, edge, e) {
861
+ var _ref;
862
+ var _e_nativeEvent;
863
+ if (!nativeResizeEnabled) return;
864
+ var startMin = minutesOfDay(event.start);
865
+ var endMin = event.end ? startMin + (event.end.getTime() - event.start.getTime()) / 6e4 : startMin + slotMinutes;
866
+ nativeResizeRef.current = {
867
+ event,
868
+ edge,
869
+ startY: (_ref = (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pageY) !== null && _ref !== void 0 ? _ref : 0,
870
+ edgeMin: edge === "start" ? startMin : endMin,
871
+ active: false,
872
+ range: null
873
+ };
874
+ }, [nativeResizeEnabled, slotMinutes]);
875
+ var handleNativeResizeMove = useCallback(function (e) {
876
+ var _ref;
877
+ var _e_nativeEvent;
878
+ var session = nativeResizeRef.current;
879
+ if (!session) return;
880
+ var dy = ((_ref = (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pageY) !== null && _ref !== void 0 ? _ref : 0) - session.startY;
881
+ if (!session.active) {
882
+ if (Math.abs(dy) < DRAG_THRESHOLD_PX) return;
883
+ session.active = true;
884
+ setScrollLocked(true);
885
+ }
886
+ var raw = session.edgeMin + dy / hourHeight * 60;
887
+ var range = computeResizeRange(session.event, session.edge, raw, slotMinutes);
888
+ session.range = range;
889
+ setResizePreview({
890
+ id: session.event.id,
891
+ start: range.start,
892
+ end: range.end
893
+ });
894
+ }, [hourHeight, slotMinutes]);
895
+ var handleNativeResizeRelease = useCallback(function () {
896
+ var _event_end;
897
+ var session = nativeResizeRef.current;
898
+ if (!session) return;
899
+ endNativeResize();
900
+ if (!session.active) {
901
+ onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(session.event);
902
+ return;
903
+ }
904
+ suppressNextClick();
905
+ var {
906
+ event,
907
+ range
908
+ } = session;
909
+ if (!range) return;
910
+ var prevEnd = (_event_end = event.end) !== null && _event_end !== void 0 ? _event_end : event.start;
911
+ if (range.start.getTime() !== event.start.getTime() || range.end.getTime() !== prevEnd.getTime()) {
912
+ onEventResize === null || onEventResize === void 0 ? void 0 : onEventResize(event, {
913
+ start: range.start,
914
+ end: range.end
915
+ });
916
+ }
917
+ }, [endNativeResize, onEventClick, onEventResize, suppressNextClick]);
918
+ var getNativeResizeProps = function getNativeResizeProps2(event, edge) {
919
+ return {
920
+ onStartShouldSetResponder: function onStartShouldSetResponder() {
921
+ return true;
922
+ },
923
+ onMoveShouldSetResponder: function onMoveShouldSetResponder() {
924
+ return true;
925
+ },
926
+ onResponderTerminationRequest: function onResponderTerminationRequest() {
927
+ var _nativeResizeRef_current;
928
+ return !((_nativeResizeRef_current = nativeResizeRef.current) === null || _nativeResizeRef_current === void 0 ? void 0 : _nativeResizeRef_current.active);
929
+ },
930
+ onResponderGrant: function onResponderGrant(e) {
931
+ return handleNativeResizeGrant(event, edge, e);
932
+ },
933
+ onResponderMove: handleNativeResizeMove,
934
+ onResponderRelease: handleNativeResizeRelease,
935
+ onResponderTerminate: endNativeResize
936
+ };
937
+ };
818
938
  var openEditor = useCallback(function (dayKey, range) {
819
939
  setCreateDraft(null);
820
940
  setDraftTitle("");
@@ -912,6 +1032,7 @@ function Calendar(param) {
912
1032
  setDropTargetKey(null);
913
1033
  setDraggingEventId(null);
914
1034
  if (!(session === null || session === void 0 ? void 0 : session.dragging)) return;
1035
+ if (opts.commit) selectEvent(session.event);
915
1036
  suppressClickRef.current = true;
916
1037
  setTimeout(function () {
917
1038
  suppressClickRef.current = false;
@@ -922,7 +1043,7 @@ function Calendar(param) {
922
1043
  var key = (_findDayKeyAtPoint = findDayKeyAtPoint(opts.pageX, opts.pageY, layouts)) !== null && _findDayKeyAtPoint !== void 0 ? _findDayKeyAtPoint : findDayKeyAtPoint(opts.pageX, opts.pageY, session.layouts);
923
1044
  commitMoveToKey(session.event, key);
924
1045
  });
925
- }, [commitMoveToKey]);
1046
+ }, [commitMoveToKey, selectEvent]);
926
1047
  var handleNativeGrant = useCallback(function (event, e) {
927
1048
  var _ref, _ref1;
928
1049
  var _e_nativeEvent, _e_nativeEvent1;
@@ -936,7 +1057,20 @@ function Calendar(param) {
936
1057
  dragging: false,
937
1058
  layouts: []
938
1059
  };
939
- }, [nativeDragEnabled]);
1060
+ heldRef.current = false;
1061
+ clearHoldTimer();
1062
+ if (nativeResizeEnabled) {
1063
+ startHoldCue(event);
1064
+ holdTimerRef.current = setTimeout(function () {
1065
+ var _nativeSessionRef_current;
1066
+ holdTimerRef.current = null;
1067
+ hold.stop();
1068
+ if (((_nativeSessionRef_current = nativeSessionRef.current) === null || _nativeSessionRef_current === void 0 ? void 0 : _nativeSessionRef_current.event) !== event || nativeSessionRef.current.dragging) return;
1069
+ heldRef.current = true;
1070
+ selectEvent(event);
1071
+ }, TOUCH_LONG_PRESS_MS);
1072
+ }
1073
+ }, [nativeDragEnabled, nativeResizeEnabled, clearHoldTimer, selectEvent, startHoldCue, hold.stop]);
940
1074
  var handleNativeMove = useCallback(function (e) {
941
1075
  var _ref, _ref1;
942
1076
  var _e_nativeEvent, _e_nativeEvent1;
@@ -947,6 +1081,7 @@ function Calendar(param) {
947
1081
  if (!session.dragging) {
948
1082
  if (Math.hypot(pageX - session.startX, pageY - session.startY) < DRAG_THRESHOLD_PX) return;
949
1083
  session.dragging = true;
1084
+ clearHoldTimer();
950
1085
  setScrollLocked(true);
951
1086
  setDraggingEventId(session.event.id);
952
1087
  refreshContainerOffset();
@@ -960,13 +1095,16 @@ function Calendar(param) {
960
1095
  y: pageY - containerOffsetRef.current.y + 12
961
1096
  });
962
1097
  setDropTargetKey(findDayKeyAtPoint(pageX, pageY, session.layouts));
963
- }, [refreshContainerOffset]);
1098
+ }, [refreshContainerOffset, clearHoldTimer]);
964
1099
  var handleNativeRelease = useCallback(function (e) {
965
1100
  var _e_nativeEvent, _e_nativeEvent1;
966
1101
  var session = nativeSessionRef.current;
967
1102
  if (!session) return;
1103
+ clearHoldTimer();
968
1104
  if (!session.dragging) {
969
1105
  nativeSessionRef.current = null;
1106
+ if (heldRef.current) return;
1107
+ selectEvent(null);
970
1108
  onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(session.event);
971
1109
  return;
972
1110
  }
@@ -975,12 +1113,13 @@ function Calendar(param) {
975
1113
  pageX: (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pageX,
976
1114
  pageY: (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.pageY
977
1115
  });
978
- }, [endNativeSession, onEventClick]);
1116
+ }, [endNativeSession, onEventClick, clearHoldTimer, selectEvent]);
979
1117
  var handleNativeTerminate = useCallback(function () {
1118
+ clearHoldTimer();
980
1119
  endNativeSession({
981
1120
  commit: false
982
1121
  });
983
- }, [endNativeSession]);
1122
+ }, [endNativeSession, clearHoldTimer]);
984
1123
  var getEventDragProps = useCallback(function (event) {
985
1124
  var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "day";
986
1125
  var base = {
@@ -1205,10 +1344,13 @@ function Calendar(param) {
1205
1344
  children: renderEvent(event)
1206
1345
  }, event.id);
1207
1346
  }
1208
- return /* @__PURE__ */_jsx(YStack, {
1347
+ return /* @__PURE__ */_jsxs(YStack, {
1209
1348
  ...knobProps.borderRadius,
1210
- backgroundColor: event.color || identity,
1349
+ position: "relative",
1350
+ backgroundColor: "$background",
1351
+ overflow: "hidden",
1211
1352
  padding: compact ? "$1" : "$2",
1353
+ paddingInlineStart: EVENT_BAR_PX + 4,
1212
1354
  // DG-LAY-04: month-view chips measured 23px tall — floor the visual
1213
1355
  // box at 24 and fill the rest of the 44 target with hit slop (real
1214
1356
  // 44 chips would break stacked chips inside month cells).
@@ -1232,15 +1374,38 @@ function Calendar(param) {
1232
1374
  if (suppressClickRef.current) return;
1233
1375
  onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(event);
1234
1376
  },
1235
- children: /* @__PURE__ */_jsx(TamaguiText, {
1377
+ children: [/* @__PURE__ */_jsx(YStack, {
1378
+ position: "absolute",
1379
+ top: 0,
1380
+ bottom: 0,
1381
+ left: 0,
1382
+ right: 0,
1383
+ backgroundColor: event.color || identity,
1384
+ opacity: EVENT_TINT_OPACITY,
1385
+ pointerEvents: "none",
1386
+ "data-calendar-event-tint": "true"
1387
+ }), /* @__PURE__ */_jsx(YStack, {
1388
+ position: "absolute",
1389
+ top: 0,
1390
+ bottom: 0,
1391
+ ...(isRTL ? {
1392
+ right: 0
1393
+ } : {
1394
+ left: 0
1395
+ }),
1396
+ width: EVENT_BAR_PX,
1397
+ backgroundColor: event.color || identity,
1398
+ pointerEvents: "none",
1399
+ "data-calendar-event-bar": "true"
1400
+ }), /* @__PURE__ */_jsx(TamaguiText, {
1236
1401
  ...knobProps.body,
1237
1402
  fontSize: compact ? "$1" : "$2",
1238
1403
  numberOfLines: compact ? 1 : 2,
1239
- color: eventChipTextColor(event.color, onIdentity),
1404
+ color: "$color12",
1240
1405
  children: event.title
1241
- })
1406
+ })]
1242
1407
  }, event.id);
1243
- }, [renderEvent, onEventClick, knobProps.borderRadius, dragEnabled, webDragEnabled, nativeDragEnabled, getEventDragProps, eventA11yProps, draggingEventId, onIdentity, identity]);
1408
+ }, [renderEvent, onEventClick, knobProps.borderRadius, dragEnabled, webDragEnabled, nativeDragEnabled, getEventDragProps, eventA11yProps, draggingEventId, identity, isRTL]);
1244
1409
  var MONTH_VISIBLE_EVENTS = 3;
1245
1410
  var renderMonthView = function renderMonthView2() {
1246
1411
  var monthDays = getMonthDays(currentDate, firstDayOfWeek);
@@ -1452,7 +1617,22 @@ function Calendar(param) {
1452
1617
  var leftPct = (isRTL ? layout.columns - 1 - layout.column : layout.column) * widthPct;
1453
1618
  var lifted = draggingEventId === event.id;
1454
1619
  var zoneInner = Math.min(RESIZE_ZONE_PX / 2, blockHeight / 2);
1620
+ var gripZones = resizeGripZones(blockHeight, RESIZE_ZONE_PX);
1455
1621
  var dragProps = getEventDragProps(event, "slot");
1622
+ var selected = selectedId === event.id;
1623
+ var gripsShown = selected || focusedEventId === event.id;
1624
+ var fill = event.color || identity;
1625
+ var titleInk = "$color12";
1626
+ var timeInk = "$color11";
1627
+ var gripDot = /* @__PURE__ */_jsx(YStack, {
1628
+ width: GRIP_DOT_PX,
1629
+ height: GRIP_DOT_PX,
1630
+ borderRadius: GRIP_DOT_PX / 2,
1631
+ borderWidth: 2,
1632
+ borderColor: event.color || identity,
1633
+ backgroundColor: "$background",
1634
+ "data-calendar-grip-dot": "true"
1635
+ });
1456
1636
  return /* @__PURE__ */_jsxs(YStack, {
1457
1637
  position: "absolute",
1458
1638
  top,
@@ -1466,37 +1646,93 @@ function Calendar(param) {
1466
1646
  ...knobProps.motion.slide,
1467
1647
  transition: webLayoutTransition
1468
1648
  }, ["top", "height", "left", "width"]),
1469
- children: [/* @__PURE__ */_jsx(YStack, {
1649
+ children: [/* @__PURE__ */_jsxs(YStack, {
1470
1650
  flex: 1,
1471
1651
  ...knobProps.borderRadius,
1472
- backgroundColor: event.color || identity,
1652
+ position: "relative",
1653
+ backgroundColor: "$background",
1473
1654
  padding: "$1",
1655
+ paddingInlineStart: EVENT_BAR_PX + 4,
1474
1656
  overflow: "hidden",
1475
1657
  opacity: lifted ? 0.4 : 1,
1476
- borderWidth: 1,
1477
- borderColor: "$background",
1658
+ borderWidth: selected ? 2 : 1,
1659
+ borderColor: selected ? fill : "$background",
1478
1660
  cursor: webDragEnabled ? "grab" : "pointer",
1479
1661
  ...eventA11yProps(event),
1480
1662
  ...dragProps,
1663
+ onFocus: function onFocus() {
1664
+ return setFocusedEventId(event.id);
1665
+ },
1666
+ onBlur: function onBlur() {
1667
+ return setFocusedEventId(function (id) {
1668
+ return id === event.id ? null : id;
1669
+ });
1670
+ },
1481
1671
  onPress: nativeDragEnabled ? void 0 : function (e) {
1482
1672
  var _e_stopPropagation;
1483
1673
  e === null || e === void 0 ? void 0 : (_e_stopPropagation = e.stopPropagation) === null || _e_stopPropagation === void 0 ? void 0 : _e_stopPropagation.call(e);
1484
1674
  if (suppressClickRef.current) return;
1675
+ if (heldRef.current) {
1676
+ heldRef.current = false;
1677
+ return;
1678
+ }
1679
+ if (onEventResize) selectEvent(null);
1485
1680
  onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(event);
1486
1681
  },
1487
- children: renderEvent ? renderEvent(event) : /* @__PURE__ */_jsxs(_Fragment, {
1682
+ ...(onEventResize && !nativeDragEnabled ? {
1683
+ onPressIn: function onPressIn() {
1684
+ heldRef.current = false;
1685
+ startHoldCue(event);
1686
+ },
1687
+ onPressOut: hold.stop,
1688
+ onLongPress: function onLongPress() {
1689
+ hold.stop();
1690
+ heldRef.current = true;
1691
+ selectEvent(event);
1692
+ }
1693
+ } : {}),
1694
+ ...(hold.holding && holdCueId === event.id ? {
1695
+ scale: 0.97
1696
+ } : {}),
1697
+ "data-hold": hold.holding && holdCueId === event.id ? "progress" : void 0,
1698
+ "data-calendar-selected": selected ? "true" : void 0,
1699
+ children: [/* @__PURE__ */_jsx(YStack, {
1700
+ position: "absolute",
1701
+ top: 0,
1702
+ bottom: 0,
1703
+ left: 0,
1704
+ right: 0,
1705
+ backgroundColor: fill,
1706
+ opacity: selected ? EVENT_SELECTED_TINT_OPACITY : EVENT_TINT_OPACITY,
1707
+ pointerEvents: "none",
1708
+ "data-calendar-event-tint": "true"
1709
+ }), /* @__PURE__ */_jsx(YStack, {
1710
+ position: "absolute",
1711
+ top: 0,
1712
+ bottom: 0,
1713
+ ...(isRTL ? {
1714
+ right: 0
1715
+ } : {
1716
+ left: 0
1717
+ }),
1718
+ width: EVENT_BAR_PX,
1719
+ backgroundColor: fill,
1720
+ pointerEvents: "none",
1721
+ "data-calendar-event-bar": "true"
1722
+ }), renderEvent ? renderEvent(event) : /* @__PURE__ */_jsxs(_Fragment, {
1488
1723
  children: [/* @__PURE__ */_jsx(Text, {
1489
1724
  fontSize: "$1",
1725
+ fontWeight: "600",
1490
1726
  numberOfLines: 1,
1491
- color: eventChipTextColor(event.color, onIdentity),
1727
+ color: titleInk,
1492
1728
  children: event.title
1493
1729
  }), blockHeight >= 34 && /* @__PURE__ */_jsx(Text, {
1494
1730
  fontSize: "$1",
1495
1731
  numberOfLines: 1,
1496
- color: eventChipTextColor(event.color, onIdentity),
1732
+ color: timeInk,
1497
1733
  children: formatTimeRangeLabel(start, end)
1498
1734
  })]
1499
- })
1735
+ })]
1500
1736
  }), /* Resize handles: 44px hit zones straddling each edge (Axiom 12). */
1501
1737
  webResizeEnabled && /* @__PURE__ */_jsxs(_Fragment, {
1502
1738
  children: [/* @__PURE__ */_jsx(YStack, {
@@ -1506,10 +1742,11 @@ function Calendar(param) {
1506
1742
  height: RESIZE_ZONE_PX / 2 + zoneInner,
1507
1743
  cursor: "ns-resize",
1508
1744
  zIndex: 3,
1509
- justifyContent: "flex-end",
1510
- alignItems: "center",
1511
- paddingBottom: 2,
1512
- opacity: 0,
1745
+ justifyContent: "flex-start",
1746
+ alignItems: "flex-end",
1747
+ paddingTop: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
1748
+ paddingInlineEnd: GRIP_DOT_INSET_PX,
1749
+ opacity: gripsShown ? 1 : 0,
1513
1750
  hoverStyle: {
1514
1751
  opacity: 1
1515
1752
  },
@@ -1517,12 +1754,7 @@ function Calendar(param) {
1517
1754
  return handleResizePointerDown(event, "start", e);
1518
1755
  },
1519
1756
  "data-calendar-resize": `start:${event.id}`,
1520
- children: /* @__PURE__ */_jsx(YStack, {
1521
- width: 28,
1522
- height: 3,
1523
- borderRadius: 2,
1524
- backgroundColor: "$accentColor"
1525
- })
1757
+ children: gripDot
1526
1758
  }), /* @__PURE__ */_jsx(YStack, {
1527
1759
  position: "absolute",
1528
1760
  ...overlayInset,
@@ -1530,10 +1762,11 @@ function Calendar(param) {
1530
1762
  height: RESIZE_ZONE_PX / 2 + zoneInner,
1531
1763
  cursor: "ns-resize",
1532
1764
  zIndex: 3,
1533
- justifyContent: "flex-start",
1534
- alignItems: "center",
1535
- paddingTop: 2,
1536
- opacity: 0,
1765
+ justifyContent: "flex-end",
1766
+ alignItems: "flex-start",
1767
+ paddingBottom: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
1768
+ paddingInlineStart: GRIP_DOT_INSET_PX,
1769
+ opacity: gripsShown ? 1 : 0,
1537
1770
  hoverStyle: {
1538
1771
  opacity: 1
1539
1772
  },
@@ -1541,13 +1774,31 @@ function Calendar(param) {
1541
1774
  return handleResizePointerDown(event, "end", e);
1542
1775
  },
1543
1776
  "data-calendar-resize": `end:${event.id}`,
1544
- children: /* @__PURE__ */_jsx(YStack, {
1545
- width: 28,
1546
- height: 3,
1547
- borderRadius: 2,
1548
- backgroundColor: "$accentColor"
1549
- })
1777
+ children: gripDot
1550
1778
  })]
1779
+ }), nativeResizeEnabled && selected && ["start", "end"].map(function (edge) {
1780
+ var zone = gripZones[edge];
1781
+ return /* @__PURE__ */_jsx(YStack, {
1782
+ position: "absolute",
1783
+ ...overlayInset,
1784
+ top: zone.top,
1785
+ height: zone.height,
1786
+ justifyContent: edge === "start" ? "flex-start" : "flex-end",
1787
+ ...(edge === "start" ? {
1788
+ paddingTop: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
1789
+ alignItems: "flex-end",
1790
+ paddingInlineEnd: GRIP_DOT_INSET_PX
1791
+ } : {
1792
+ paddingBottom: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
1793
+ alignItems: "flex-start",
1794
+ paddingInlineStart: GRIP_DOT_INSET_PX
1795
+ }),
1796
+ zIndex: 3,
1797
+ "aria-label": edge === "start" ? t("Resize start") : t("Resize end"),
1798
+ ...getNativeResizeProps(event, edge),
1799
+ "data-calendar-resize": `${edge}:${event.id}`,
1800
+ children: gripDot
1801
+ }, edge);
1551
1802
  }), /* Live duration label while resizing. */
1552
1803
  preview && /* @__PURE__ */_jsx(YStack, {
1553
1804
  position: "absolute",