@paubox/ui 0.8.5 → 0.8.6

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.
Files changed (2) hide show
  1. package/index.esm.js +12 -11
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -31670,14 +31670,15 @@ var TableHeader = function(param) {
31670
31670
  'row-select',
31671
31671
  'context'
31672
31672
  ];
31673
- var autoWidth = !!(header === null || header === void 0 ? void 0 : (_header_column = header.column) === null || _header_column === void 0 ? void 0 : _header_column.columnDef).autoWidth;
31673
+ var columnDef = header === null || header === void 0 ? void 0 : (_header_column = header.column) === null || _header_column === void 0 ? void 0 : _header_column.columnDef;
31674
+ var autoWidth = !!columnDef.autoWidth;
31674
31675
  return /*#__PURE__*/ jsxs(Th, {
31675
31676
  variant: "paragraph200Semibold",
31676
31677
  as: "th",
31677
31678
  style: {
31678
- width: header.getSize() && !autoWidth ? "".concat(header.getSize(), "px") : 'auto',
31679
- minWidth: header.getSize() && !autoWidth ? "".concat(header.getSize(), "px") : 'auto',
31680
- maxWidth: header.getSize() && !autoWidth ? "".concat(header.getSize(), "px") : 'auto',
31679
+ width: columnDef.width && !autoWidth ? "".concat(columnDef.width, "px") : "".concat(!autoWidth ? "".concat(header.getSize(), "px") : 'auto'),
31680
+ minWidth: columnDef.minSize && !autoWidth ? "".concat(columnDef.minSize, "px") : "auto",
31681
+ maxWidth: columnDef.maxSize && !autoWidth ? "".concat(columnDef.maxSize, "px") : 'auto',
31681
31682
  padding: dense ? "".concat(spacing(1), "px ").concat(spacing(header.id === 'row-select' ? 1 : 1.5), "px") : "".concat(spacing(1.5), "px ").concat(spacing(header.id === 'row-select' ? 1 : 1.5), "px")
31682
31683
  },
31683
31684
  children: [
@@ -32041,9 +32042,9 @@ var Table = function(param) {
32041
32042
  if (enableRowSelection) {
32042
32043
  cols.unshift({
32043
32044
  id: 'row-select',
32044
- size: 22,
32045
- minSize: 22,
32046
- maxSize: 22,
32045
+ size: 32,
32046
+ minSize: 32,
32047
+ maxSize: 32,
32047
32048
  header: function(param) {
32048
32049
  var table = param.table;
32049
32050
  return /*#__PURE__*/ jsx(Checkbox, {
@@ -32072,9 +32073,9 @@ var Table = function(param) {
32072
32073
  if (contextMenuActions === null || contextMenuActions === void 0 ? void 0 : contextMenuActions.length) {
32073
32074
  cols.push({
32074
32075
  id: 'context',
32075
- size: 22,
32076
- minSize: 22,
32077
- maxSize: 22,
32076
+ size: 32,
32077
+ minSize: 32,
32078
+ maxSize: 32,
32078
32079
  header: '',
32079
32080
  cell: function(param) {
32080
32081
  var row = param.row;
@@ -32117,7 +32118,7 @@ var Table = function(param) {
32117
32118
  columns: allColumns,
32118
32119
  getRowId: getRowId,
32119
32120
  defaultColumn: {
32120
- minSize: 50,
32121
+ minSize: 100,
32121
32122
  maxSize: 500,
32122
32123
  size: 200
32123
32124
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "0.8.5",
5
+ "version": "0.8.6",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {