@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
@@ -237,6 +237,11 @@ var TOUCH_LONG_PRESS_MS = 300;
237
237
  var TOUCH_SLOP_PX = 8;
238
238
  var MIN_BLOCK_PX = 18;
239
239
  var RESIZE_ZONE_PX = import_theme.MIN_PRESS_TARGET;
240
+ var GRIP_DOT_PX = 10;
241
+ var EVENT_TINT_OPACITY = 0.22;
242
+ var EVENT_SELECTED_TINT_OPACITY = 0.38;
243
+ var EVENT_BAR_PX = 3;
244
+ var GRIP_DOT_INSET_PX = 6;
240
245
  var MONTH_CHIP_MIN_PX = 24;
241
246
  function DayNumberDisc(param) {
242
247
  var {
@@ -511,6 +516,8 @@ function Calendar(param) {
511
516
  onEventClick,
512
517
  onEventMove,
513
518
  onEventResize,
519
+ selectedEventId,
520
+ onEventSelect,
514
521
  onEventCreate,
515
522
  enableEventDrag,
516
523
  viewType: initialViewType = "month",
@@ -569,6 +576,7 @@ function Calendar(param) {
569
576
  var webDragEnabled = dragEnabled && hasDom;
570
577
  var nativeDragEnabled = dragEnabled && !import_tamagui.isWeb;
571
578
  var webResizeEnabled = onEventResize !== void 0 && hasDom;
579
+ var nativeResizeEnabled = onEventResize !== void 0 && !import_tamagui.isWeb;
572
580
  var webCreateEnabled = onEventCreate !== void 0 && hasDom;
573
581
  var [dragGhost, setDragGhost] = (0, import_react.useState)(null);
574
582
  var [dropTargetKey, setDropTargetKey] = (0, import_react.useState)(null);
@@ -594,6 +602,34 @@ function Calendar(param) {
594
602
  y: 0
595
603
  });
596
604
  var nativeSessionRef = (0, import_react.useRef)(null);
605
+ var nativeResizeRef = (0, import_react.useRef)(null);
606
+ var [innerSelectedId, setInnerSelectedId] = (0, import_react.useState)(null);
607
+ var [focusedEventId, setFocusedEventId] = (0, import_react.useState)(null);
608
+ var selectedId = selectedEventId !== void 0 ? selectedEventId : innerSelectedId;
609
+ var selectedIdRef = (0, import_react.useRef)(selectedId);
610
+ selectedIdRef.current = selectedId;
611
+ var holdTimerRef = (0, import_react.useRef)(null);
612
+ var heldRef = (0, import_react.useRef)(false);
613
+ var hold = (0, import_forms.useHoldCue)();
614
+ var [holdCueId, setHoldCueId] = (0, import_react.useState)(null);
615
+ var selectEvent = (0, import_react.useCallback)(function (event) {
616
+ var _ref, _ref1;
617
+ if (((_ref = event === null || event === void 0 ? void 0 : event.id) !== null && _ref !== void 0 ? _ref : null) === selectedIdRef.current) return;
618
+ setInnerSelectedId((_ref1 = event === null || event === void 0 ? void 0 : event.id) !== null && _ref1 !== void 0 ? _ref1 : null);
619
+ onEventSelect === null || onEventSelect === void 0 ? void 0 : onEventSelect(event);
620
+ }, [onEventSelect]);
621
+ var clearHoldTimer = (0, import_react.useCallback)(function () {
622
+ if (holdTimerRef.current) clearTimeout(holdTimerRef.current);
623
+ holdTimerRef.current = null;
624
+ hold.stop();
625
+ }, [hold.stop]);
626
+ var startHoldCue = (0, import_react.useCallback)(function (event) {
627
+ setHoldCueId(event.id);
628
+ hold.start();
629
+ }, [hold.start]);
630
+ (0, import_react.useEffect)(function () {
631
+ return clearHoldTimer;
632
+ }, [clearHoldTimer]);
597
633
  slotTargetRef.current = slotTarget;
598
634
  resizePreviewRef.current = resizePreview;
599
635
  editorStateRef.current = editorState;
@@ -725,6 +761,7 @@ function Calendar(param) {
725
761
  onCommit: function onCommit(pt) {
726
762
  endVisuals();
727
763
  suppressNextClick();
764
+ if (onEventResize) selectEvent(event);
728
765
  var ghostFrom = {
729
766
  x: pt.x + 12,
730
767
  y: pt.y + 12
@@ -789,7 +826,7 @@ function Calendar(param) {
789
826
  }
790
827
  });
791
828
  dragSessionCleanupRef.current = cleanup;
792
- }, [webDragEnabled, slotMinutes, hourHeight, onEventMove, commitMoveToKey, beginSettle, suppressNextClick]);
829
+ }, [webDragEnabled, slotMinutes, hourHeight, onEventMove, commitMoveToKey, beginSettle, suppressNextClick, onEventResize, selectEvent]);
793
830
  var handleResizePointerDown = (0, import_react.useCallback)(function (event, edge, e) {
794
831
  var _e_stopPropagation, _dragSessionCleanupRef_current, _handleEl_closest, _colEl_getBoundingClientRect;
795
832
  if (!webResizeEnabled) return;
@@ -858,6 +895,89 @@ function Calendar(param) {
858
895
  });
859
896
  dragSessionCleanupRef.current = cleanup;
860
897
  }, [webResizeEnabled, hourHeight, slotMinutes, onEventResize, suppressNextClick]);
898
+ var endNativeResize = (0, import_react.useCallback)(function () {
899
+ nativeResizeRef.current = null;
900
+ setResizePreview(null);
901
+ setScrollLocked(false);
902
+ }, []);
903
+ var handleNativeResizeGrant = (0, import_react.useCallback)(function (event, edge, e) {
904
+ var _ref;
905
+ var _e_nativeEvent;
906
+ if (!nativeResizeEnabled) return;
907
+ var startMin = (0, import_calendarMath.minutesOfDay)(event.start);
908
+ var endMin = event.end ? startMin + (event.end.getTime() - event.start.getTime()) / 6e4 : startMin + slotMinutes;
909
+ nativeResizeRef.current = {
910
+ event,
911
+ edge,
912
+ startY: (_ref = (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pageY) !== null && _ref !== void 0 ? _ref : 0,
913
+ edgeMin: edge === "start" ? startMin : endMin,
914
+ active: false,
915
+ range: null
916
+ };
917
+ }, [nativeResizeEnabled, slotMinutes]);
918
+ var handleNativeResizeMove = (0, import_react.useCallback)(function (e) {
919
+ var _ref;
920
+ var _e_nativeEvent;
921
+ var session = nativeResizeRef.current;
922
+ if (!session) return;
923
+ 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;
924
+ if (!session.active) {
925
+ if (Math.abs(dy) < DRAG_THRESHOLD_PX) return;
926
+ session.active = true;
927
+ setScrollLocked(true);
928
+ }
929
+ var raw = session.edgeMin + dy / hourHeight * 60;
930
+ var range = (0, import_calendarMath.computeResizeRange)(session.event, session.edge, raw, slotMinutes);
931
+ session.range = range;
932
+ setResizePreview({
933
+ id: session.event.id,
934
+ start: range.start,
935
+ end: range.end
936
+ });
937
+ }, [hourHeight, slotMinutes]);
938
+ var handleNativeResizeRelease = (0, import_react.useCallback)(function () {
939
+ var _event_end;
940
+ var session = nativeResizeRef.current;
941
+ if (!session) return;
942
+ endNativeResize();
943
+ if (!session.active) {
944
+ onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(session.event);
945
+ return;
946
+ }
947
+ suppressNextClick();
948
+ var {
949
+ event,
950
+ range
951
+ } = session;
952
+ if (!range) return;
953
+ var prevEnd = (_event_end = event.end) !== null && _event_end !== void 0 ? _event_end : event.start;
954
+ if (range.start.getTime() !== event.start.getTime() || range.end.getTime() !== prevEnd.getTime()) {
955
+ onEventResize === null || onEventResize === void 0 ? void 0 : onEventResize(event, {
956
+ start: range.start,
957
+ end: range.end
958
+ });
959
+ }
960
+ }, [endNativeResize, onEventClick, onEventResize, suppressNextClick]);
961
+ var getNativeResizeProps = function getNativeResizeProps2(event, edge) {
962
+ return {
963
+ onStartShouldSetResponder: function onStartShouldSetResponder() {
964
+ return true;
965
+ },
966
+ onMoveShouldSetResponder: function onMoveShouldSetResponder() {
967
+ return true;
968
+ },
969
+ onResponderTerminationRequest: function onResponderTerminationRequest() {
970
+ var _nativeResizeRef_current;
971
+ return !((_nativeResizeRef_current = nativeResizeRef.current) === null || _nativeResizeRef_current === void 0 ? void 0 : _nativeResizeRef_current.active);
972
+ },
973
+ onResponderGrant: function onResponderGrant(e) {
974
+ return handleNativeResizeGrant(event, edge, e);
975
+ },
976
+ onResponderMove: handleNativeResizeMove,
977
+ onResponderRelease: handleNativeResizeRelease,
978
+ onResponderTerminate: endNativeResize
979
+ };
980
+ };
861
981
  var openEditor = (0, import_react.useCallback)(function (dayKey, range) {
862
982
  setCreateDraft(null);
863
983
  setDraftTitle("");
@@ -955,6 +1075,7 @@ function Calendar(param) {
955
1075
  setDropTargetKey(null);
956
1076
  setDraggingEventId(null);
957
1077
  if (!(session === null || session === void 0 ? void 0 : session.dragging)) return;
1078
+ if (opts.commit) selectEvent(session.event);
958
1079
  suppressClickRef.current = true;
959
1080
  setTimeout(function () {
960
1081
  suppressClickRef.current = false;
@@ -965,7 +1086,7 @@ function Calendar(param) {
965
1086
  var key = (_findDayKeyAtPoint = findDayKeyAtPoint(opts.pageX, opts.pageY, layouts)) !== null && _findDayKeyAtPoint !== void 0 ? _findDayKeyAtPoint : findDayKeyAtPoint(opts.pageX, opts.pageY, session.layouts);
966
1087
  commitMoveToKey(session.event, key);
967
1088
  });
968
- }, [commitMoveToKey]);
1089
+ }, [commitMoveToKey, selectEvent]);
969
1090
  var handleNativeGrant = (0, import_react.useCallback)(function (event, e) {
970
1091
  var _ref, _ref1;
971
1092
  var _e_nativeEvent, _e_nativeEvent1;
@@ -979,7 +1100,20 @@ function Calendar(param) {
979
1100
  dragging: false,
980
1101
  layouts: []
981
1102
  };
982
- }, [nativeDragEnabled]);
1103
+ heldRef.current = false;
1104
+ clearHoldTimer();
1105
+ if (nativeResizeEnabled) {
1106
+ startHoldCue(event);
1107
+ holdTimerRef.current = setTimeout(function () {
1108
+ var _nativeSessionRef_current;
1109
+ holdTimerRef.current = null;
1110
+ hold.stop();
1111
+ if (((_nativeSessionRef_current = nativeSessionRef.current) === null || _nativeSessionRef_current === void 0 ? void 0 : _nativeSessionRef_current.event) !== event || nativeSessionRef.current.dragging) return;
1112
+ heldRef.current = true;
1113
+ selectEvent(event);
1114
+ }, TOUCH_LONG_PRESS_MS);
1115
+ }
1116
+ }, [nativeDragEnabled, nativeResizeEnabled, clearHoldTimer, selectEvent, startHoldCue, hold.stop]);
983
1117
  var handleNativeMove = (0, import_react.useCallback)(function (e) {
984
1118
  var _ref, _ref1;
985
1119
  var _e_nativeEvent, _e_nativeEvent1;
@@ -990,6 +1124,7 @@ function Calendar(param) {
990
1124
  if (!session.dragging) {
991
1125
  if (Math.hypot(pageX - session.startX, pageY - session.startY) < DRAG_THRESHOLD_PX) return;
992
1126
  session.dragging = true;
1127
+ clearHoldTimer();
993
1128
  setScrollLocked(true);
994
1129
  setDraggingEventId(session.event.id);
995
1130
  refreshContainerOffset();
@@ -1003,13 +1138,16 @@ function Calendar(param) {
1003
1138
  y: pageY - containerOffsetRef.current.y + 12
1004
1139
  });
1005
1140
  setDropTargetKey(findDayKeyAtPoint(pageX, pageY, session.layouts));
1006
- }, [refreshContainerOffset]);
1141
+ }, [refreshContainerOffset, clearHoldTimer]);
1007
1142
  var handleNativeRelease = (0, import_react.useCallback)(function (e) {
1008
1143
  var _e_nativeEvent, _e_nativeEvent1;
1009
1144
  var session = nativeSessionRef.current;
1010
1145
  if (!session) return;
1146
+ clearHoldTimer();
1011
1147
  if (!session.dragging) {
1012
1148
  nativeSessionRef.current = null;
1149
+ if (heldRef.current) return;
1150
+ selectEvent(null);
1013
1151
  onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(session.event);
1014
1152
  return;
1015
1153
  }
@@ -1018,12 +1156,13 @@ function Calendar(param) {
1018
1156
  pageX: (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pageX,
1019
1157
  pageY: (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.pageY
1020
1158
  });
1021
- }, [endNativeSession, onEventClick]);
1159
+ }, [endNativeSession, onEventClick, clearHoldTimer, selectEvent]);
1022
1160
  var handleNativeTerminate = (0, import_react.useCallback)(function () {
1161
+ clearHoldTimer();
1023
1162
  endNativeSession({
1024
1163
  commit: false
1025
1164
  });
1026
- }, [endNativeSession]);
1165
+ }, [endNativeSession, clearHoldTimer]);
1027
1166
  var getEventDragProps = (0, import_react.useCallback)(function (event) {
1028
1167
  var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "day";
1029
1168
  var base = {
@@ -1248,10 +1387,13 @@ function Calendar(param) {
1248
1387
  children: renderEvent(event)
1249
1388
  }, event.id);
1250
1389
  }
1251
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1390
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
1252
1391
  ...knobProps.borderRadius,
1253
- backgroundColor: event.color || identity,
1392
+ position: "relative",
1393
+ backgroundColor: "$background",
1394
+ overflow: "hidden",
1254
1395
  padding: compact ? "$1" : "$2",
1396
+ paddingInlineStart: EVENT_BAR_PX + 4,
1255
1397
  // DG-LAY-04: month-view chips measured 23px tall — floor the visual
1256
1398
  // box at 24 and fill the rest of the 44 target with hit slop (real
1257
1399
  // 44 chips would break stacked chips inside month cells).
@@ -1275,15 +1417,38 @@ function Calendar(param) {
1275
1417
  if (suppressClickRef.current) return;
1276
1418
  onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(event);
1277
1419
  },
1278
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
1420
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1421
+ position: "absolute",
1422
+ top: 0,
1423
+ bottom: 0,
1424
+ left: 0,
1425
+ right: 0,
1426
+ backgroundColor: event.color || identity,
1427
+ opacity: EVENT_TINT_OPACITY,
1428
+ pointerEvents: "none",
1429
+ "data-calendar-event-tint": "true"
1430
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1431
+ position: "absolute",
1432
+ top: 0,
1433
+ bottom: 0,
1434
+ ...(isRTL ? {
1435
+ right: 0
1436
+ } : {
1437
+ left: 0
1438
+ }),
1439
+ width: EVENT_BAR_PX,
1440
+ backgroundColor: event.color || identity,
1441
+ pointerEvents: "none",
1442
+ "data-calendar-event-bar": "true"
1443
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
1279
1444
  ...knobProps.body,
1280
1445
  fontSize: compact ? "$1" : "$2",
1281
1446
  numberOfLines: compact ? 1 : 2,
1282
- color: eventChipTextColor(event.color, onIdentity),
1447
+ color: "$color12",
1283
1448
  children: event.title
1284
- })
1449
+ })]
1285
1450
  }, event.id);
1286
- }, [renderEvent, onEventClick, knobProps.borderRadius, dragEnabled, webDragEnabled, nativeDragEnabled, getEventDragProps, eventA11yProps, draggingEventId, onIdentity, identity]);
1451
+ }, [renderEvent, onEventClick, knobProps.borderRadius, dragEnabled, webDragEnabled, nativeDragEnabled, getEventDragProps, eventA11yProps, draggingEventId, identity, isRTL]);
1287
1452
  var MONTH_VISIBLE_EVENTS = 3;
1288
1453
  var renderMonthView = function renderMonthView2() {
1289
1454
  var monthDays = getMonthDays(currentDate, firstDayOfWeek);
@@ -1495,7 +1660,22 @@ function Calendar(param) {
1495
1660
  var leftPct = (isRTL ? layout.columns - 1 - layout.column : layout.column) * widthPct;
1496
1661
  var lifted = draggingEventId === event.id;
1497
1662
  var zoneInner = Math.min(RESIZE_ZONE_PX / 2, blockHeight / 2);
1663
+ var gripZones = (0, import_calendarMath.resizeGripZones)(blockHeight, RESIZE_ZONE_PX);
1498
1664
  var dragProps = getEventDragProps(event, "slot");
1665
+ var selected = selectedId === event.id;
1666
+ var gripsShown = selected || focusedEventId === event.id;
1667
+ var fill = event.color || identity;
1668
+ var titleInk = "$color12";
1669
+ var timeInk = "$color11";
1670
+ var gripDot = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1671
+ width: GRIP_DOT_PX,
1672
+ height: GRIP_DOT_PX,
1673
+ borderRadius: GRIP_DOT_PX / 2,
1674
+ borderWidth: 2,
1675
+ borderColor: event.color || identity,
1676
+ backgroundColor: "$background",
1677
+ "data-calendar-grip-dot": "true"
1678
+ });
1499
1679
  return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
1500
1680
  position: "absolute",
1501
1681
  top,
@@ -1509,37 +1689,93 @@ function Calendar(param) {
1509
1689
  ...knobProps.motion.slide,
1510
1690
  transition: webLayoutTransition
1511
1691
  }, ["top", "height", "left", "width"]),
1512
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1692
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
1513
1693
  flex: 1,
1514
1694
  ...knobProps.borderRadius,
1515
- backgroundColor: event.color || identity,
1695
+ position: "relative",
1696
+ backgroundColor: "$background",
1516
1697
  padding: "$1",
1698
+ paddingInlineStart: EVENT_BAR_PX + 4,
1517
1699
  overflow: "hidden",
1518
1700
  opacity: lifted ? 0.4 : 1,
1519
- borderWidth: 1,
1520
- borderColor: "$background",
1701
+ borderWidth: selected ? 2 : 1,
1702
+ borderColor: selected ? fill : "$background",
1521
1703
  cursor: webDragEnabled ? "grab" : "pointer",
1522
1704
  ...eventA11yProps(event),
1523
1705
  ...dragProps,
1706
+ onFocus: function onFocus() {
1707
+ return setFocusedEventId(event.id);
1708
+ },
1709
+ onBlur: function onBlur() {
1710
+ return setFocusedEventId(function (id) {
1711
+ return id === event.id ? null : id;
1712
+ });
1713
+ },
1524
1714
  onPress: nativeDragEnabled ? void 0 : function (e) {
1525
1715
  var _e_stopPropagation;
1526
1716
  e === null || e === void 0 ? void 0 : (_e_stopPropagation = e.stopPropagation) === null || _e_stopPropagation === void 0 ? void 0 : _e_stopPropagation.call(e);
1527
1717
  if (suppressClickRef.current) return;
1718
+ if (heldRef.current) {
1719
+ heldRef.current = false;
1720
+ return;
1721
+ }
1722
+ if (onEventResize) selectEvent(null);
1528
1723
  onEventClick === null || onEventClick === void 0 ? void 0 : onEventClick(event);
1529
1724
  },
1530
- children: renderEvent ? renderEvent(event) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
1725
+ ...(onEventResize && !nativeDragEnabled ? {
1726
+ onPressIn: function onPressIn() {
1727
+ heldRef.current = false;
1728
+ startHoldCue(event);
1729
+ },
1730
+ onPressOut: hold.stop,
1731
+ onLongPress: function onLongPress() {
1732
+ hold.stop();
1733
+ heldRef.current = true;
1734
+ selectEvent(event);
1735
+ }
1736
+ } : {}),
1737
+ ...(hold.holding && holdCueId === event.id ? {
1738
+ scale: 0.97
1739
+ } : {}),
1740
+ "data-hold": hold.holding && holdCueId === event.id ? "progress" : void 0,
1741
+ "data-calendar-selected": selected ? "true" : void 0,
1742
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1743
+ position: "absolute",
1744
+ top: 0,
1745
+ bottom: 0,
1746
+ left: 0,
1747
+ right: 0,
1748
+ backgroundColor: fill,
1749
+ opacity: selected ? EVENT_SELECTED_TINT_OPACITY : EVENT_TINT_OPACITY,
1750
+ pointerEvents: "none",
1751
+ "data-calendar-event-tint": "true"
1752
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1753
+ position: "absolute",
1754
+ top: 0,
1755
+ bottom: 0,
1756
+ ...(isRTL ? {
1757
+ right: 0
1758
+ } : {
1759
+ left: 0
1760
+ }),
1761
+ width: EVENT_BAR_PX,
1762
+ backgroundColor: fill,
1763
+ pointerEvents: "none",
1764
+ "data-calendar-event-bar": "true"
1765
+ }), renderEvent ? renderEvent(event) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
1531
1766
  children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Text.Text, {
1532
1767
  fontSize: "$1",
1768
+ fontWeight: "600",
1533
1769
  numberOfLines: 1,
1534
- color: eventChipTextColor(event.color, onIdentity),
1770
+ color: titleInk,
1535
1771
  children: event.title
1536
1772
  }), blockHeight >= 34 && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Text.Text, {
1537
1773
  fontSize: "$1",
1538
1774
  numberOfLines: 1,
1539
- color: eventChipTextColor(event.color, onIdentity),
1775
+ color: timeInk,
1540
1776
  children: (0, import_calendarMath.formatTimeRangeLabel)(start, end)
1541
1777
  })]
1542
- })
1778
+ })]
1543
1779
  }), /* Resize handles: 44px hit zones straddling each edge (Axiom 12). */
1544
1780
  webResizeEnabled && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
1545
1781
  children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
@@ -1549,10 +1785,11 @@ function Calendar(param) {
1549
1785
  height: RESIZE_ZONE_PX / 2 + zoneInner,
1550
1786
  cursor: "ns-resize",
1551
1787
  zIndex: 3,
1552
- justifyContent: "flex-end",
1553
- alignItems: "center",
1554
- paddingBottom: 2,
1555
- opacity: 0,
1788
+ justifyContent: "flex-start",
1789
+ alignItems: "flex-end",
1790
+ paddingTop: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
1791
+ paddingInlineEnd: GRIP_DOT_INSET_PX,
1792
+ opacity: gripsShown ? 1 : 0,
1556
1793
  hoverStyle: {
1557
1794
  opacity: 1
1558
1795
  },
@@ -1560,12 +1797,7 @@ function Calendar(param) {
1560
1797
  return handleResizePointerDown(event, "start", e);
1561
1798
  },
1562
1799
  "data-calendar-resize": `start:${event.id}`,
1563
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1564
- width: 28,
1565
- height: 3,
1566
- borderRadius: 2,
1567
- backgroundColor: "$accentColor"
1568
- })
1800
+ children: gripDot
1569
1801
  }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1570
1802
  position: "absolute",
1571
1803
  ...overlayInset,
@@ -1573,10 +1805,11 @@ function Calendar(param) {
1573
1805
  height: RESIZE_ZONE_PX / 2 + zoneInner,
1574
1806
  cursor: "ns-resize",
1575
1807
  zIndex: 3,
1576
- justifyContent: "flex-start",
1577
- alignItems: "center",
1578
- paddingTop: 2,
1579
- opacity: 0,
1808
+ justifyContent: "flex-end",
1809
+ alignItems: "flex-start",
1810
+ paddingBottom: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
1811
+ paddingInlineStart: GRIP_DOT_INSET_PX,
1812
+ opacity: gripsShown ? 1 : 0,
1580
1813
  hoverStyle: {
1581
1814
  opacity: 1
1582
1815
  },
@@ -1584,13 +1817,31 @@ function Calendar(param) {
1584
1817
  return handleResizePointerDown(event, "end", e);
1585
1818
  },
1586
1819
  "data-calendar-resize": `end:${event.id}`,
1587
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1588
- width: 28,
1589
- height: 3,
1590
- borderRadius: 2,
1591
- backgroundColor: "$accentColor"
1592
- })
1820
+ children: gripDot
1593
1821
  })]
1822
+ }), nativeResizeEnabled && selected && ["start", "end"].map(function (edge) {
1823
+ var zone = gripZones[edge];
1824
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1825
+ position: "absolute",
1826
+ ...overlayInset,
1827
+ top: zone.top,
1828
+ height: zone.height,
1829
+ justifyContent: edge === "start" ? "flex-start" : "flex-end",
1830
+ ...(edge === "start" ? {
1831
+ paddingTop: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
1832
+ alignItems: "flex-end",
1833
+ paddingInlineEnd: GRIP_DOT_INSET_PX
1834
+ } : {
1835
+ paddingBottom: RESIZE_ZONE_PX / 2 - GRIP_DOT_PX / 2,
1836
+ alignItems: "flex-start",
1837
+ paddingInlineStart: GRIP_DOT_INSET_PX
1838
+ }),
1839
+ zIndex: 3,
1840
+ "aria-label": edge === "start" ? t("Resize start") : t("Resize end"),
1841
+ ...getNativeResizeProps(event, edge),
1842
+ "data-calendar-resize": `${edge}:${event.id}`,
1843
+ children: gripDot
1844
+ }, edge);
1594
1845
  }), /* Live duration label while resizing. */
1595
1846
  preview && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1596
1847
  position: "absolute",