@flamingo-stack/openframe-frontend-core 0.0.192 → 0.0.193

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.
@@ -32657,7 +32657,6 @@ function WaitlistForm({
32657
32657
  }
32658
32658
 
32659
32659
  // src/components/features/board/board.tsx
32660
- init_cn();
32661
32660
  import * as React102 from "react";
32662
32661
  import {
32663
32662
  DndContext,
@@ -32671,6 +32670,7 @@ import {
32671
32670
  useSensors
32672
32671
  } from "@dnd-kit/core";
32673
32672
  import { arrayMove, sortableKeyboardCoordinates } from "@dnd-kit/sortable";
32673
+ init_cn();
32674
32674
 
32675
32675
  // src/components/features/board/board-column.tsx
32676
32676
  import { useDroppable } from "@dnd-kit/core";
@@ -33110,6 +33110,18 @@ function Board({
33110
33110
  className
33111
33111
  }) {
33112
33112
  const { collapsed, toggle } = useBoardCollapse(collapseStorageKey);
33113
+ const {
33114
+ scrollRef,
33115
+ trackRef,
33116
+ thumbRef,
33117
+ thumbRatio,
33118
+ onScroll,
33119
+ onTrackClick,
33120
+ onTrackWheel,
33121
+ onThumbPointerDown,
33122
+ onThumbPointerMove,
33123
+ onThumbPointerUp
33124
+ } = useHorizontalScrollbar();
33113
33125
  const [items, setItems] = React102.useState(columns);
33114
33126
  const isDraggingRef = React102.useRef(false);
33115
33127
  React102.useEffect(() => {
@@ -33262,31 +33274,62 @@ function Board({
33262
33274
  onDragEnd: handleDragEnd,
33263
33275
  onDragCancel: handleDragCancel,
33264
33276
  children: [
33265
- /* @__PURE__ */ jsx299("div", { className: cn("flex h-full overflow-x-auto", className), children: items.map((column, i) => {
33266
- const prev = items[i - 1];
33267
- const next = items[i + 1];
33268
- const joinLeft = !!(column.system && prev?.system);
33269
- const joinRight = !!(column.system && next?.system);
33270
- const showGap = i > 0 && !joinLeft;
33271
- return /* @__PURE__ */ jsxs246(React102.Fragment, { children: [
33272
- showGap && /* @__PURE__ */ jsx299("div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
33273
- /* @__PURE__ */ jsx299(
33274
- BoardColumn,
33275
- {
33276
- column,
33277
- collapsed: !!collapsed[column.id],
33278
- onToggleCollapse: () => toggle(column.id),
33279
- onAddTicket,
33280
- getTicketHref,
33281
- renderAssignSlot,
33282
- onLoadMore,
33283
- loadMoreRootMargin,
33284
- joinLeft,
33285
- joinRight
33286
- }
33287
- )
33288
- ] }, column.id);
33289
- }) }),
33277
+ /* @__PURE__ */ jsxs246("div", { className: cn("flex flex-col h-full", className), children: [
33278
+ /* @__PURE__ */ jsx299(
33279
+ "div",
33280
+ {
33281
+ ref: scrollRef,
33282
+ onScroll,
33283
+ className: "flex flex-1 min-h-0 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
33284
+ children: items.map((column, i) => {
33285
+ const prev = items[i - 1];
33286
+ const next = items[i + 1];
33287
+ const joinLeft = !!(column.system && prev?.system);
33288
+ const joinRight = !!(column.system && next?.system);
33289
+ const showGap = i > 0 && !joinLeft;
33290
+ return /* @__PURE__ */ jsxs246(React102.Fragment, { children: [
33291
+ showGap && /* @__PURE__ */ jsx299("div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
33292
+ /* @__PURE__ */ jsx299(
33293
+ BoardColumn,
33294
+ {
33295
+ column,
33296
+ collapsed: !!collapsed[column.id],
33297
+ onToggleCollapse: () => toggle(column.id),
33298
+ onAddTicket,
33299
+ getTicketHref,
33300
+ renderAssignSlot,
33301
+ onLoadMore,
33302
+ loadMoreRootMargin,
33303
+ joinLeft,
33304
+ joinRight
33305
+ }
33306
+ )
33307
+ ] }, column.id);
33308
+ })
33309
+ }
33310
+ ),
33311
+ thumbRatio > 0 && /* @__PURE__ */ jsx299(
33312
+ "div",
33313
+ {
33314
+ ref: trackRef,
33315
+ onClick: onTrackClick,
33316
+ onWheel: onTrackWheel,
33317
+ className: "relative h-2 mt-[var(--spacing-system-mf)] rounded-full bg-ods-border cursor-pointer shrink-0",
33318
+ children: /* @__PURE__ */ jsx299(
33319
+ "div",
33320
+ {
33321
+ ref: thumbRef,
33322
+ "data-scrollbar-thumb": true,
33323
+ className: "absolute top-0 h-full rounded-full bg-ods-text-secondary transition-colors",
33324
+ style: { width: `${thumbRatio * 100}%`, cursor: "grab" },
33325
+ onPointerDown: onThumbPointerDown,
33326
+ onPointerMove: onThumbPointerMove,
33327
+ onPointerUp: onThumbPointerUp
33328
+ }
33329
+ )
33330
+ }
33331
+ )
33332
+ ] }),
33290
33333
  /* @__PURE__ */ jsx299(DragOverlay, { dropAnimation: null, children: activeTicket ? /* @__PURE__ */ jsx299(TicketCard, { ticket: activeTicket.ticket, columnId: activeTicket.columnId, isOverlay: true }) : null })
33291
33334
  ]
33292
33335
  }
@@ -33965,4 +34008,4 @@ export {
33965
34008
  TMCG_SOCIAL_PLATFORMS,
33966
34009
  assets
33967
34010
  };
33968
- //# sourceMappingURL=chunk-CDR4RZ5N.js.map
34011
+ //# sourceMappingURL=chunk-E6VCRL42.js.map