@umituz/web-design-system 4.30.1 → 4.30.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-design-system",
3
- "version": "4.30.1",
3
+ "version": "4.30.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Web Design System - Tailwind v4 authored, precompiled CSS shipped. Atomic Design components (Atoms, Molecules, Organisms, Templates) for React applications.",
@@ -57,7 +57,8 @@ export interface Column<T> {
57
57
  sortable?: boolean;
58
58
  align?: ColumnAlign;
59
59
  hideBelow?: ColumnHideBelow;
60
- width?: string;
60
+ /** Pixels when numeric. */
61
+ width?: string | number;
61
62
  className?: string;
62
63
  /** Hidden until the reader enables it from the built-in columns menu. */
63
64
  optional?: boolean;
@@ -471,7 +472,7 @@ export function DataTable<T>({
471
472
  return (
472
473
  <TableHead
473
474
  key={column.id}
474
- style={column.width ? { width: column.width } : undefined}
475
+ style={column.width ? { width: typeof column.width === 'number' ? `${column.width}px` : column.width } : undefined}
475
476
  className={cn(
476
477
  sizeStyles[size],
477
478
  pxStyles[size],