@ethanhann/mantine-dataview 0.4.2 → 0.5.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.
package/dist/index.js CHANGED
@@ -523,11 +523,12 @@ function De({ colSpan: e, children: t }) {
523
523
  }) }) });
524
524
  }
525
525
  function Oe({ header: e, disabled: t }) {
526
- let { column: n } = e, r = n.columnDef.meta?.align, i = n.getIsSorted(), a = n.getSortIndex(), o = a > 0, c = e.isPlaceholder ? null : s(n.columnDef.header, e.getContext()), l = n.getCanSort() && !t;
526
+ let { column: n } = e, r = n.columnDef.meta?.align, i = n.getIsSorted(), a = n.getSortIndex(), o = a > 0, c = e.isPlaceholder ? null : s(n.columnDef.header, e.getContext()), l = n.getCanSort() && !t, u = n.columnDef.size;
527
527
  return /* @__PURE__ */ I(M.Th, {
528
528
  style: {
529
529
  ...we(n),
530
- ...r ? { textAlign: r } : void 0
530
+ ...r ? { textAlign: r } : void 0,
531
+ ...u == null ? void 0 : { width: u }
531
532
  },
532
533
  "aria-sort": i === "asc" ? "ascending" : i === "desc" ? "descending" : void 0,
533
534
  children: l ? /* @__PURE__ */ L(re, {
@@ -1193,6 +1194,7 @@ var nt = {
1193
1194
  header: i,
1194
1195
  ...n?.cell ? { cell: n.cell } : {},
1195
1196
  ...n?.enableSorting === !1 ? { enableSorting: !1 } : {},
1197
+ ...n?.width == null ? {} : { size: n.width },
1196
1198
  meta: {
1197
1199
  label: i,
1198
1200
  ...r.dataType ? { dataType: r.dataType } : {},