@rufous/ui 0.3.55 → 0.3.56

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/main.cjs CHANGED
@@ -6198,7 +6198,7 @@ function DataGrid({
6198
6198
  "td",
6199
6199
  {
6200
6200
  key: `${item.id}-${colField}`,
6201
- className: `dg-td${col.pinned === "left" ? " pinned-left" : col.pinned === "right" ? " pinned-right" : ""}${col.editable ? " dg-td--editable" : ""} ${col.cellClassName || ""}`,
6201
+ className: `dg-td${col.pinned === "left" ? " pinned-left" : col.pinned === "right" ? " pinned-right" : ""}${col.editable ? " dg-td--editable" : ""}${col.disablePadding ? " dg-td--no-padding" : ""} ${col.cellClassName || ""}`,
6202
6202
  style: { width, minWidth: width, maxWidth: width, left: leftOffset, right: rightOffset, flex: col.flex },
6203
6203
  onDoubleClick: () => onCellDoubleClick?.({ row: item, field: colField, value: item[col.field || ""] }),
6204
6204
  onClick: col.editable ? () => {
package/dist/main.css CHANGED
@@ -659,6 +659,9 @@
659
659
  white-space: nowrap;
660
660
  background: inherit;
661
661
  }
662
+ .dg-td--no-padding {
663
+ padding: 0;
664
+ }
662
665
  .dg-td--editable {
663
666
  cursor: pointer;
664
667
  }
package/dist/main.d.cts CHANGED
@@ -1295,6 +1295,12 @@ interface Column<T> {
1295
1295
  }) => void;
1296
1296
  headerClassName?: string;
1297
1297
  cellClassName?: string;
1298
+ /**
1299
+ * When true, the body cell renders with no padding so the renderer can use
1300
+ * the full column width (e.g. for clickable rows, full-bleed media, status
1301
+ * bars). Header padding is unaffected.
1302
+ */
1303
+ disablePadding?: boolean;
1298
1304
  hideable?: boolean;
1299
1305
  disableColumnMenu?: boolean;
1300
1306
  isExportable?: boolean;
package/dist/main.d.ts CHANGED
@@ -1295,6 +1295,12 @@ interface Column<T> {
1295
1295
  }) => void;
1296
1296
  headerClassName?: string;
1297
1297
  cellClassName?: string;
1298
+ /**
1299
+ * When true, the body cell renders with no padding so the renderer can use
1300
+ * the full column width (e.g. for clickable rows, full-bleed media, status
1301
+ * bars). Header padding is unaffected.
1302
+ */
1303
+ disablePadding?: boolean;
1298
1304
  hideable?: boolean;
1299
1305
  disableColumnMenu?: boolean;
1300
1306
  isExportable?: boolean;
package/dist/main.js CHANGED
@@ -5930,7 +5930,7 @@ function DataGrid({
5930
5930
  "td",
5931
5931
  {
5932
5932
  key: `${item.id}-${colField}`,
5933
- className: `dg-td${col.pinned === "left" ? " pinned-left" : col.pinned === "right" ? " pinned-right" : ""}${col.editable ? " dg-td--editable" : ""} ${col.cellClassName || ""}`,
5933
+ className: `dg-td${col.pinned === "left" ? " pinned-left" : col.pinned === "right" ? " pinned-right" : ""}${col.editable ? " dg-td--editable" : ""}${col.disablePadding ? " dg-td--no-padding" : ""} ${col.cellClassName || ""}`,
5934
5934
  style: { width, minWidth: width, maxWidth: width, left: leftOffset, right: rightOffset, flex: col.flex },
5935
5935
  onDoubleClick: () => onCellDoubleClick?.({ row: item, field: colField, value: item[col.field || ""] }),
5936
5936
  onClick: col.editable ? () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rufous/ui",
3
3
  "private": false,
4
- "version": "0.3.55",
4
+ "version": "0.3.56",
5
5
  "type": "module",
6
6
  "description": "Experimental: A lightweight React UI component library (Beta)",
7
7
  "style": "./dist/main.css",