@multiplatform.one/components 10.1.2 → 10.1.4

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 (102) hide show
  1. package/dist/cjs/layouts/timeline.cjs +0 -1
  2. package/dist/cjs/layouts/timeline.native.cjs +0 -1
  3. package/dist/cjs/layouts/timeline.native.js +0 -1
  4. package/dist/cjs/layouts/timeline.native.js.map +1 -1
  5. package/dist/cjs/views/Calendar.cjs +54 -76
  6. package/dist/cjs/views/Calendar.native.cjs +54 -76
  7. package/dist/cjs/views/Calendar.native.js +54 -76
  8. package/dist/cjs/views/Calendar.native.js.map +1 -1
  9. package/dist/cjs/views/Gantt.cjs +185 -69
  10. package/dist/cjs/views/Gantt.native.cjs +190 -72
  11. package/dist/cjs/views/Gantt.native.js +190 -72
  12. package/dist/cjs/views/Gantt.native.js.map +1 -1
  13. package/dist/cjs/views/GanttDateGrip.cjs +20 -14
  14. package/dist/cjs/views/GanttDateGrip.native.cjs +24 -14
  15. package/dist/cjs/views/GanttDateGrip.native.js +24 -14
  16. package/dist/cjs/views/GanttDateGrip.native.js.map +1 -1
  17. package/dist/cjs/views/GanttGripDot.cjs +43 -0
  18. package/dist/cjs/views/GanttGripDot.native.cjs +46 -0
  19. package/dist/cjs/views/GanttGripDot.native.js +48 -0
  20. package/dist/cjs/views/GanttGripDot.native.js.map +1 -0
  21. package/dist/cjs/views/eventTint.cjs +242 -0
  22. package/dist/cjs/views/eventTint.native.cjs +346 -0
  23. package/dist/cjs/views/eventTint.native.js +348 -0
  24. package/dist/cjs/views/eventTint.native.js.map +1 -0
  25. package/dist/esm/layouts/timeline.mjs +0 -1
  26. package/dist/esm/layouts/timeline.mjs.map +1 -1
  27. package/dist/esm/layouts/timeline.native.js +0 -1
  28. package/dist/esm/layouts/timeline.native.js.map +1 -1
  29. package/dist/esm/views/Calendar.mjs +53 -75
  30. package/dist/esm/views/Calendar.mjs.map +1 -1
  31. package/dist/esm/views/Calendar.native.js +53 -75
  32. package/dist/esm/views/Calendar.native.js.map +1 -1
  33. package/dist/esm/views/Gantt.mjs +186 -70
  34. package/dist/esm/views/Gantt.mjs.map +1 -1
  35. package/dist/esm/views/Gantt.native.js +191 -73
  36. package/dist/esm/views/Gantt.native.js.map +1 -1
  37. package/dist/esm/views/GanttDateGrip.mjs +21 -15
  38. package/dist/esm/views/GanttDateGrip.mjs.map +1 -1
  39. package/dist/esm/views/GanttDateGrip.native.js +25 -15
  40. package/dist/esm/views/GanttDateGrip.native.js.map +1 -1
  41. package/dist/esm/views/GanttGripDot.mjs +24 -0
  42. package/dist/esm/views/GanttGripDot.mjs.map +1 -0
  43. package/dist/esm/views/GanttGripDot.native.js +25 -0
  44. package/dist/esm/views/GanttGripDot.native.js.map +1 -0
  45. package/dist/esm/views/eventTint.mjs +196 -0
  46. package/dist/esm/views/eventTint.mjs.map +1 -0
  47. package/dist/esm/views/eventTint.native.js +298 -0
  48. package/dist/esm/views/eventTint.native.js.map +1 -0
  49. package/dist/jsx/layouts/timeline.mjs +0 -1
  50. package/dist/jsx/layouts/timeline.mjs.map +1 -1
  51. package/dist/jsx/layouts/timeline.native.cjs +0 -1
  52. package/dist/jsx/layouts/timeline.native.js +0 -1
  53. package/dist/jsx/layouts/timeline.native.js.map +1 -1
  54. package/dist/jsx/views/Calendar.mjs +53 -75
  55. package/dist/jsx/views/Calendar.mjs.map +1 -1
  56. package/dist/jsx/views/Calendar.native.cjs +54 -76
  57. package/dist/jsx/views/Calendar.native.js +54 -76
  58. package/dist/jsx/views/Calendar.native.js.map +1 -1
  59. package/dist/jsx/views/Gantt.mjs +186 -70
  60. package/dist/jsx/views/Gantt.mjs.map +1 -1
  61. package/dist/jsx/views/Gantt.native.cjs +190 -72
  62. package/dist/jsx/views/Gantt.native.js +190 -72
  63. package/dist/jsx/views/Gantt.native.js.map +1 -1
  64. package/dist/jsx/views/GanttDateGrip.mjs +21 -15
  65. package/dist/jsx/views/GanttDateGrip.mjs.map +1 -1
  66. package/dist/jsx/views/GanttDateGrip.native.cjs +24 -14
  67. package/dist/jsx/views/GanttDateGrip.native.js +24 -14
  68. package/dist/jsx/views/GanttDateGrip.native.js.map +1 -1
  69. package/dist/jsx/views/GanttGripDot.mjs +24 -0
  70. package/dist/jsx/views/GanttGripDot.mjs.map +1 -0
  71. package/dist/jsx/views/GanttGripDot.native.cjs +46 -0
  72. package/dist/jsx/views/GanttGripDot.native.js +48 -0
  73. package/dist/jsx/views/GanttGripDot.native.js.map +1 -0
  74. package/dist/jsx/views/eventTint.mjs +196 -0
  75. package/dist/jsx/views/eventTint.mjs.map +1 -0
  76. package/dist/jsx/views/eventTint.native.cjs +346 -0
  77. package/dist/jsx/views/eventTint.native.js +348 -0
  78. package/dist/jsx/views/eventTint.native.js.map +1 -0
  79. package/package.json +7 -7
  80. package/src/hoverTouchPath.coarse.spec.tsx +28 -4
  81. package/src/layouts/timeline.replyInset.spec.tsx +72 -22
  82. package/src/layouts/timeline.tsx +0 -1
  83. package/src/views/Calendar.eventFill.spec.tsx +44 -9
  84. package/src/views/Calendar.tsx +23 -31
  85. package/src/views/Gantt.barInk.spec.tsx +257 -0
  86. package/src/views/Gantt.grips.spec.tsx +226 -0
  87. package/src/views/Gantt.tint.palette.spec.ts +288 -0
  88. package/src/views/Gantt.tsx +224 -65
  89. package/src/views/GanttDateGrip.native.spec.tsx +8 -0
  90. package/src/views/GanttDateGrip.tsx +28 -17
  91. package/src/views/GanttGripDot.tsx +36 -0
  92. package/src/views/dataIdentity.spec.tsx +29 -13
  93. package/src/views/eventTint.ts +305 -0
  94. package/types/layouts/timeline.d.ts.map +1 -1
  95. package/types/views/Calendar.d.ts.map +1 -1
  96. package/types/views/Gantt.d.ts.map +1 -1
  97. package/types/views/GanttDateGrip.d.ts +7 -0
  98. package/types/views/GanttDateGrip.d.ts.map +1 -1
  99. package/types/views/GanttGripDot.d.ts +9 -0
  100. package/types/views/GanttGripDot.d.ts.map +1 -0
  101. package/types/views/eventTint.d.ts +72 -0
  102. package/types/views/eventTint.d.ts.map +1 -0
@@ -38,6 +38,8 @@ var import_linear_gradient = require("tamagui/linear-gradient");
38
38
  var import_core = require("@tamagui/core");
39
39
  var import_tamagui2 = require("tamagui");
40
40
  var import_GanttDateGrip = require("./GanttDateGrip.cjs");
41
+ var import_GanttGripDot = require("./GanttGripDot.cjs");
42
+ var import_eventTint = require("./eventTint.cjs");
41
43
  var import_ganttIntervals = require("./ganttIntervals.cjs");
42
44
  var import_ganttMath = require("./ganttMath.cjs");
43
45
  var import_Text = require("../Text.cjs");
@@ -188,29 +190,55 @@ function BarIntentWrap({ intent, children }) {
188
190
  children
189
191
  });
190
192
  }
191
- function GanttBarLabel({ title, fill }) {
193
+ const STRIP_INSET_PX = 4;
194
+ const STRIP_BOTTOM_PX = 2;
195
+ const STRIP_TRACK_OPACITY = .3;
196
+ function GanttBarLabel({ title, fill, state, surface, dark }) {
192
197
  const { knobProps } = (0, import_theme.useResolvedKnobs)();
193
- const ink = (0, import_theme.useReadableTextOn)(fill);
198
+ const theme = (0, import_tamagui2.useTheme)();
199
+ const solid = dark || state === "ghost" ? null : (0, import_eventTint.eventSolid)(theme, fill, state);
200
+ const ink = solid?.ink ?? (0, import_eventTint.eventLabelInk)(theme, fill, [(0, import_eventTint.eventPaint)(theme, fill, state, {
201
+ dark,
202
+ surface
203
+ })], dark, state === "ghost" ? "secondary" : "primary");
194
204
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Text, {
195
- color: ink ?? "$color-1",
205
+ color: ink,
196
206
  ...knobProps.label,
197
207
  numberOfLines: 1,
198
208
  paddingHorizontal: knobProps.control.paddingHorizontal,
199
209
  pointerEvents: "none",
200
210
  zIndex: 1,
201
211
  "aria-hidden": true,
212
+ ...{
213
+ "data-gantt-bar-ink": ink,
214
+ "data-gantt-ghost-label": state === "ghost" ? "true" : void 0
215
+ },
202
216
  children: `${title}\u200B`
203
217
  });
204
218
  }
205
- function GanttIntervalFill({ fill, openStart, openEnd, width, rtl, ghost }) {
219
+ function GanttIntervalFill({ fill, surface, openStart, openEnd, width, rtl, state, dark, progress, lead }) {
206
220
  const { knobProps } = (0, import_theme.useResolvedKnobs)();
207
221
  const theme = (0, import_tamagui2.useTheme)();
222
+ const values = theme;
208
223
  const fillKey = fill.startsWith("$") ? fill.slice(1) : fill;
209
- const color = theme[fillKey]?.val ?? (0, import_tamagui2.getTokenValue)(fillKey, "color") ?? fill;
210
- const clear = (0, import_core.normalizeColor)(String(color), 0) ?? "transparent";
224
+ const color = String(theme[fillKey]?.val ?? (0, import_tamagui2.getTokenValue)(fillKey, "color") ?? fill);
225
+ const solid = dark || state === "ghost" ? null : (0, import_eventTint.eventSolid)(values, fill, state);
226
+ const paint = solid?.paint ?? (0, import_eventTint.eventPaint)(values, fill, state, {
227
+ dark,
228
+ surface
229
+ });
230
+ const body = paint ?? color;
231
+ const strip = solid ? solid.ink : paint ? (0, import_eventTint.eventStripPaint)(values, fill, {
232
+ dark,
233
+ surface
234
+ }) : null;
235
+ const leading = lead && !solid;
236
+ const clear = (0, import_core.normalizeColor)(body, 0) ?? "transparent";
211
237
  const fadeWidth = Math.min(Number(knobProps.control.height), width / 2);
212
238
  const leftOpen = rtl ? openEnd : openStart;
213
239
  const rightOpen = rtl ? openStart : openEnd;
240
+ const stripStart = (leading ? import_eventTint.EVENT_BAR_PX : 0) + STRIP_INSET_PX;
241
+ const stripWidth = progress != null ? Math.max(0, width - stripStart - STRIP_INSET_PX) * progress / 100 : 0;
214
242
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
215
243
  position: "absolute",
216
244
  top: 0,
@@ -218,34 +246,75 @@ function GanttIntervalFill({ fill, openStart, openEnd, width, rtl, ghost }) {
218
246
  left: 0,
219
247
  right: 0,
220
248
  pointerEvents: "none",
221
- opacity: ghost ? .25 : 1,
222
249
  overflow: "hidden",
223
250
  ...knobProps.borderRadius,
224
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
225
- position: "absolute",
226
- top: 0,
227
- bottom: 0,
228
- left: leftOpen ? fadeWidth : 0,
229
- right: rightOpen ? fadeWidth : 0,
230
- backgroundColor: fill
231
- }), ["start", "end"].map((edge) => {
232
- if (edge === "start" ? !openStart : !openEnd) return null;
233
- const left = edge === "start" !== rtl;
234
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_linear_gradient.LinearGradient, {
251
+ borderWidth: 0,
252
+ ...{
253
+ "data-gantt-bar-state": state,
254
+ "data-gantt-bar-paint": paint ?? void 0
255
+ },
256
+ children: [
257
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
235
258
  position: "absolute",
236
259
  top: 0,
237
260
  bottom: 0,
238
- ...left ? { left: 0 } : { right: 0 },
239
- width: fadeWidth,
240
- colors: left ? [clear, String(color)] : [String(color), clear],
241
- start: [0, 0],
242
- end: [1, 0],
261
+ left: leftOpen ? fadeWidth : 0,
262
+ right: rightOpen ? fadeWidth : 0,
263
+ backgroundColor: body,
264
+ ...{ "data-gantt-bar-fill": fill }
265
+ }),
266
+ ["start", "end"].map((edge) => {
267
+ if (edge === "start" ? !openStart : !openEnd) return null;
268
+ const left = edge === "start" !== rtl;
269
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_linear_gradient.LinearGradient, {
270
+ position: "absolute",
271
+ top: 0,
272
+ bottom: 0,
273
+ ...left ? { left: 0 } : { right: 0 },
274
+ width: fadeWidth,
275
+ colors: left ? [clear, body] : [body, clear],
276
+ start: [0, 0],
277
+ end: [1, 0],
278
+ ...{
279
+ "data-gantt-open-fade": edge,
280
+ [`data-gantt-open-${edge}`]: "true"
281
+ }
282
+ }, edge);
283
+ }),
284
+ solid && progress != null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
285
+ position: "absolute",
286
+ bottom: STRIP_BOTTOM_PX,
287
+ height: import_eventTint.EVENT_BAR_PX,
288
+ ...rtl ? { right: stripStart } : { left: stripStart },
289
+ width: Math.max(0, width - stripStart - STRIP_INSET_PX),
290
+ borderRadius: import_eventTint.EVENT_BAR_PX / 2,
291
+ backgroundColor: solid.ink,
292
+ opacity: STRIP_TRACK_OPACITY,
293
+ ...{ "data-gantt-progress-track": solid.ink }
294
+ }),
295
+ stripWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
296
+ position: "absolute",
297
+ bottom: STRIP_BOTTOM_PX,
298
+ height: import_eventTint.EVENT_BAR_PX,
299
+ ...rtl ? { right: stripStart } : { left: stripStart },
300
+ width: stripWidth,
301
+ borderRadius: import_eventTint.EVENT_BAR_PX / 2,
302
+ backgroundColor: strip ?? color,
243
303
  ...{
244
- "data-gantt-open-fade": edge,
245
- [`data-gantt-open-${edge}`]: "true"
304
+ "data-gantt-progress": String(progress),
305
+ "data-gantt-progress-paint": strip
246
306
  }
247
- }, edge);
248
- })]
307
+ }),
308
+ leading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
309
+ position: "absolute",
310
+ top: 0,
311
+ bottom: 0,
312
+ ...rtl ? { right: 0 } : { left: 0 },
313
+ width: import_eventTint.EVENT_BAR_PX,
314
+ backgroundColor: color,
315
+ ...{ "data-gantt-bar-lead": "true" }
316
+ })
317
+ ]
249
318
  });
250
319
  }
251
320
  function GanttTaskName({ title, selected, body }) {
@@ -258,6 +327,10 @@ function GanttTaskName({ title, selected, body }) {
258
327
  }
259
328
  function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPress, onItemMove, enableItemDrag, onIntervalChange, snapUnit = "day", isLoading = false, error = null, onRetry, emptyTitle, emptyDescription, height: heightProp, labelWidth = 180, showToday = true, showNavigation = true, showZoomSwitcher = true, firstDayOfWeek = 0, initialDate, markerDate, onMarkerDateChange, enableMarkerDrag, markerLabel, ...stackProps }) {
260
329
  const identity = (0, import_theme.useChartPalette)().single;
330
+ const canvasTheme = (0, import_tamagui2.useTheme)();
331
+ const canvasBackground = canvasTheme.background?.val;
332
+ const canvasGround = typeof canvasBackground === "string" ? canvasBackground : void 0;
333
+ const dark = (0, import_eventTint.useEventDark)();
261
334
  const { t } = (0, import_i18n.useTranslation)();
262
335
  const { knobProps } = (0, import_theme.useResolvedKnobs)();
263
336
  const [zoom, setZoom] = (0, import_react.useState)(initialZoom);
@@ -579,6 +652,8 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
579
652
  if (!session) return;
580
653
  if (session.liftTimer) clearTimeout(session.liftTimer);
581
654
  if (!session.dragging) {
655
+ setFocusedBarId(session.ref.key);
656
+ setBarKeyboardRing(false);
582
657
  onItemPress?.(session.task);
583
658
  return;
584
659
  }
@@ -881,11 +956,19 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
881
956
  const fill = barColor ?? (barIntent && barIntent !== "accent" ? "$color-9" : identity);
882
957
  const progress = bounded && !ghost ? clampProgress(span.progress ?? task.progress) : null;
883
958
  const showLabel = !geom.eternal && liveWidth >= 44;
959
+ const labelOutside = !showLabel && !geom.eternal && !ghost && resolveSpans(task).length === 1;
884
960
  const isBarFocused = focusedBarId === barKey;
885
961
  const showHandles = hoveredId === task.id || sessionLive || isBarFocused;
962
+ const barState = ghost ? "ghost" : showHandles || geom.eternal ? "selected" : "rest";
886
963
  const handleWidth = bounded ? geom.width >= 24 ? 8 : geom.width >= 12 ? 4 : 0 : 0;
887
964
  const physicalLeftEdge = rtl ? "end" : "start";
888
965
  const physicalRightEdge = rtl ? "start" : "end";
966
+ const logicalLeft = geom.x + liveTransformX * dirSign;
967
+ const gripShift = (edge) => {
968
+ const at = edge === "start" ? logicalLeft : logicalLeft + liveWidth;
969
+ const inside = Math.max(visibleWindow.start + import_eventTint.EVENT_GRIP_DOT_PX / 2, Math.min(at, visibleWindow.end - import_eventTint.EVENT_GRIP_DOT_PX / 2));
970
+ return (inside - at) * dirSign;
971
+ };
889
972
  const squareStart = rtl ? {
890
973
  borderTopRightRadius: 0,
891
974
  borderBottomRightRadius: 0
@@ -934,8 +1017,8 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
934
1017
  borderStyle: "dashed",
935
1018
  borderWidth: import_theme.hairlineWidth,
936
1019
  borderColor: fill
937
- } : {},
938
- opacity: `${sessionLive ? .85 : geom.eternal ? .55 : 1} hover:${sessionLive ? .85 : geom.eternal ? .7 : .9} press:0.8`,
1020
+ } : { borderWidth: 0 },
1021
+ opacity: `${sessionLive ? .85 : 1} press:0.8`,
939
1022
  cursor: bounded && webDragEnabled ? "grab" : onItemPress ? "pointer" : void 0,
940
1023
  justifyContent: "center",
941
1024
  ...(0, import_theme.transitionProps)({
@@ -983,38 +1066,47 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
983
1066
  onPress: nativeDragEnabled && bounded ? void 0 : (e) => {
984
1067
  e?.stopPropagation?.();
985
1068
  if (suppressClickRef.current) return;
1069
+ setFocusedBarId(barKey);
986
1070
  onItemPress?.(task);
987
1071
  },
988
1072
  children: [
989
1073
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GanttIntervalFill, {
990
1074
  fill,
1075
+ surface: canvasGround,
991
1076
  openStart: geom.openStart,
992
1077
  openEnd: geom.openEnd,
993
1078
  width: liveWidth,
994
1079
  rtl,
995
- ghost
1080
+ state: barState,
1081
+ dark,
1082
+ progress,
1083
+ lead: !ghost && !geom.openStart
1084
+ }),
1085
+ showLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GanttBarLabel, {
1086
+ title: barTitle,
1087
+ fill,
1088
+ state: barState,
1089
+ surface: canvasGround,
1090
+ dark
996
1091
  }),
997
- progress != null && progress > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1092
+ labelOutside && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
998
1093
  position: "absolute",
999
1094
  top: 0,
1000
1095
  bottom: 0,
1001
- ...rtl ? { right: 0 } : { left: 0 },
1002
- width: `${progress}%`,
1003
- backgroundColor: "color-12",
1004
- opacity: .22,
1096
+ ...rtl ? { right: liveWidth } : { left: liveWidth },
1097
+ width: Math.max(0, chartWidth - geom.x - liveWidth),
1098
+ justifyContent: "center",
1005
1099
  pointerEvents: "none",
1006
- "data-gantt-progress": String(progress)
1100
+ ...{ "data-gantt-bar-outside-label": "true" },
1101
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Text, {
1102
+ ...knobProps.label,
1103
+ color: "$color",
1104
+ numberOfLines: 1,
1105
+ paddingHorizontal: knobProps.control.paddingHorizontal,
1106
+ "aria-hidden": true,
1107
+ children: barTitle
1108
+ })
1007
1109
  }),
1008
- showLabel && (ghost ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.Text, {
1009
- ...knobProps.label,
1010
- color: "$color",
1011
- numberOfLines: 1,
1012
- pointerEvents: "none",
1013
- children: barTitle
1014
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GanttBarLabel, {
1015
- title: barTitle,
1016
- fill
1017
- })),
1018
1110
  previewSpan && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
1019
1111
  position: "absolute",
1020
1112
  top: -(axisHeight - 6),
@@ -1041,10 +1133,15 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
1041
1133
  bottom: 0,
1042
1134
  width: handleWidth,
1043
1135
  cursor: "ew-resize",
1044
- backgroundColor: `${showHandles ? "color-12" : "transparent"}`,
1045
- opacity: showHandles ? .28 : 0,
1046
- "data-gantt-resize-handle": physicalLeftEdge,
1047
- onPointerDown: (e) => handleResizePointerDown(task, ref, physicalLeftEdge, e)
1136
+ onPointerDown: (e) => handleResizePointerDown(task, ref, physicalLeftEdge, e),
1137
+ ...{ "data-gantt-resize-handle": physicalLeftEdge },
1138
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GanttGripDot.GanttGripDot, {
1139
+ left: gripShift(physicalLeftEdge) - import_eventTint.EVENT_GRIP_DOT_PX / 2,
1140
+ top: (physicalLeftEdge === "start" ? height2 : 0) - import_eventTint.EVENT_GRIP_DOT_PX / 2,
1141
+ color: fill,
1142
+ shown: showHandles,
1143
+ edge: physicalLeftEdge
1144
+ })
1048
1145
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1049
1146
  position: "absolute",
1050
1147
  right: 0,
@@ -1052,10 +1149,15 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
1052
1149
  bottom: 0,
1053
1150
  width: handleWidth,
1054
1151
  cursor: "ew-resize",
1055
- backgroundColor: `${showHandles ? "color-12" : "transparent"}`,
1056
- opacity: showHandles ? .28 : 0,
1057
- "data-gantt-resize-handle": physicalRightEdge,
1058
- onPointerDown: (e) => handleResizePointerDown(task, ref, physicalRightEdge, e)
1152
+ onPointerDown: (e) => handleResizePointerDown(task, ref, physicalRightEdge, e),
1153
+ ...{ "data-gantt-resize-handle": physicalRightEdge },
1154
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GanttGripDot.GanttGripDot, {
1155
+ left: handleWidth + gripShift(physicalRightEdge) - import_eventTint.EVENT_GRIP_DOT_PX / 2,
1156
+ top: (physicalRightEdge === "start" ? height2 : 0) - import_eventTint.EVENT_GRIP_DOT_PX / 2,
1157
+ color: fill,
1158
+ shown: showHandles,
1159
+ edge: physicalRightEdge
1160
+ })
1059
1161
  })] }),
1060
1162
  nativeDragEnabled && bounded && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1061
1163
  position: "absolute",
@@ -1084,6 +1186,13 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
1084
1186
  snapUnit,
1085
1187
  firstDayOfWeek,
1086
1188
  label: `${barTitle}: ${edge === "start" ? t("Start") : t("End")}`,
1189
+ barWidth: liveWidth,
1190
+ barTop: barInset + (barHeight - height2) / 2,
1191
+ barBottom: barInset + (barHeight + height2) / 2,
1192
+ color: fill,
1193
+ shown: showHandles || activeInterval,
1194
+ gripOf: barKey,
1195
+ onHoverChange: (hovered) => setHoveredId((id) => hovered ? task.id : id === task.id ? null : id),
1087
1196
  valueText: span[edge] ? (0, import_theme.formatAbsoluteDate)(span[edge]) : edge === "start" ? t("No start") : t("No end"),
1088
1197
  onPreview: (next) => setIntervalPreview((previous) => next ? {
1089
1198
  key: ref.key,
@@ -1359,6 +1468,16 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
1359
1468
  position: "relative",
1360
1469
  ...{ "data-gantt-body": "true" },
1361
1470
  children: [
1471
+ tasks.map((task, index) => hoveredId === task.id || resolveSpans(task).some((ref) => ref.key === focusedBarId) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1472
+ position: "absolute",
1473
+ left: 0,
1474
+ right: 0,
1475
+ top: index * rowHeight,
1476
+ height: rowHeight,
1477
+ backgroundColor: import_componentColors.componentColors.interactive.background,
1478
+ pointerEvents: "none",
1479
+ ...{ "data-gantt-row-band": task.id }
1480
+ }, `row-band-${task.id}`) : null),
1362
1481
  weekends.map((col) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1363
1482
  position: "absolute",
1364
1483
  ...canvasPos(col.x),
@@ -1390,17 +1509,26 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
1390
1509
  backgroundColor: tick.major ? majorGridColor : minorGridColor,
1391
1510
  pointerEvents: "none"
1392
1511
  }, tick.date.toISOString())),
1512
+ todayX !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1513
+ position: "absolute",
1514
+ ...canvasPos(todayX - 1),
1515
+ top: 0,
1516
+ bottom: 0,
1517
+ width: 2,
1518
+ backgroundColor: import_componentColors.componentColors.indicator.mark,
1519
+ opacity: .9,
1520
+ pointerEvents: "none",
1521
+ ...{ "data-gantt-today": "true" }
1522
+ }),
1393
1523
  tasks.map((task, index) => {
1394
1524
  const refs = resolveSpans(task);
1395
- const selected = refs.some((ref) => ref.key === focusedBarId);
1396
- const hovered = hoveredId === task.id;
1397
1525
  const last = index === tasks.length - 1;
1398
1526
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
1399
1527
  height: rowHeight,
1400
1528
  position: "relative",
1401
1529
  ...last ? null : import_theme.hairline.bottom,
1402
1530
  borderColor: minorGridColor,
1403
- backgroundColor: selected || hovered ? import_componentColors.componentColors.interactive.background : "transparent",
1531
+ backgroundColor: "transparent",
1404
1532
  ...{
1405
1533
  onHoverIn: () => setHoveredId(task.id),
1406
1534
  onHoverOut: () => setHoveredId((id) => id === task.id ? null : id)
@@ -1420,18 +1548,6 @@ function GanttView({ tasks, zoom: initialZoom = "week", onZoomChange, onItemPres
1420
1548
  pointerEvents: "none",
1421
1549
  zIndex: 2,
1422
1550
  "data-gantt-marker": "true"
1423
- }),
1424
- todayX !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
1425
- position: "absolute",
1426
- ...canvasPos(todayX - 1),
1427
- top: 0,
1428
- bottom: 0,
1429
- width: 2,
1430
- backgroundColor: import_componentColors.componentColors.indicator.mark,
1431
- opacity: .9,
1432
- pointerEvents: "none",
1433
- zIndex: 2,
1434
- ...{ "data-gantt-today": "true" }
1435
1551
  })
1436
1552
  ]
1437
1553
  })