@open-mercato/ui 0.6.7-develop.6669.1.40b669666b → 0.6.7-develop.6670.1.4efa7961c6

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.
@@ -1,3 +1,3 @@
1
- Generated lucide registry with 141 icons -> /home/runner/work/open-mercato/open-mercato/packages/ui/src/backend/icons/lucideRegistry.generated.tsx
1
+ Generated lucide registry with 145 icons -> /home/runner/work/open-mercato/open-mercato/packages/ui/src/backend/icons/lucideRegistry.generated.tsx
2
2
  [build:ui] found 393 entry points
3
3
  [build:ui] built successfully
@@ -2324,24 +2324,26 @@ function DataTable({
2324
2324
  const priority = resolvePriority(header.column);
2325
2325
  const isFirstDataColumn = headerIndex === 0;
2326
2326
  const stickyClass = stickyFirstColumn && isFirstDataColumn ? ` md:sticky md:left-0 md:z-10 md:bg-background ${STICKY_LEFT_SHADOW_CLASS}` : "";
2327
- const headerCellContent = header.isPlaceholder ? null : /* @__PURE__ */ jsxs(
2327
+ const isColumnSortable = sortable && !!header.column.getCanSort?.();
2328
+ const headerContent = header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext());
2329
+ const headerCellContent = header.isPlaceholder ? null : isColumnSortable ? /* @__PURE__ */ jsxs(
2328
2330
  Button,
2329
2331
  {
2330
2332
  variant: "ghost",
2331
2333
  type: "button",
2332
- className: `h-auto p-0 has-[>svg]:px-0 font-medium ${sortable && header.column.getCanSort?.() ? "cursor-pointer select-none" : ""}`,
2333
- onClick: () => sortable && header.column.toggleSorting?.(header.column.getIsSorted() === "asc"),
2334
+ className: "h-auto p-0 has-[>svg]:px-0 font-medium cursor-pointer select-none",
2335
+ onClick: () => header.column.toggleSorting?.(header.column.getIsSorted() === "asc"),
2334
2336
  children: [
2335
- flexRender(header.column.columnDef.header, header.getContext()),
2336
- sortable && header.column.getCanSort?.() ? (() => {
2337
+ headerContent,
2338
+ (() => {
2337
2339
  const sortState = header.column.getIsSorted();
2338
2340
  if (sortState === "asc") return /* @__PURE__ */ jsx(ChevronUp, { className: "ml-1 size-3.5 shrink-0 text-foreground", "aria-hidden": "true" });
2339
2341
  if (sortState === "desc") return /* @__PURE__ */ jsx(ChevronDown, { className: "ml-1 size-3.5 shrink-0 text-foreground", "aria-hidden": "true" });
2340
2342
  return /* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-1 size-3.5 shrink-0 text-muted-foreground/50", "aria-hidden": "true" });
2341
- })() : null
2343
+ })()
2342
2344
  ]
2343
2345
  }
2344
- );
2346
+ ) : /* @__PURE__ */ jsx("div", { className: "h-auto p-0 has-[>svg]:px-0 font-medium", children: headerContent });
2345
2347
  const columnId = header.column.id;
2346
2348
  const sizedWidth = enableColumnResize && columnId ? columnSizing[columnId] : void 0;
2347
2349
  const resizeHandle = enableColumnResize && !header.isPlaceholder && columnId ? /* @__PURE__ */ jsx(