uibee 2.13.1 → 2.13.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.
@@ -102,9 +102,9 @@ export default function Body({ list, columns, menuItems, redirectPath, variant =
102
102
  }
103
103
  }
104
104
  return (_jsx("td", { className: `
105
- flex-1 px-6 py-4 whitespace-nowrap text-sm min-w-40 flex items-center text-login-100
105
+ flex-1 min-w-0 px-6 py-4 whitespace-nowrap text-sm flex items-center text-login-100
106
106
  ${variant === 'minimal' ? 'px-4! py-2!' : ''}
107
- `, children: _jsx("div", { className: 'relative', children: _jsx("h1", { className: badgeClass, children: formatValue(col.key, value) }) }) }, col.key));
107
+ `, children: _jsx("div", { className: 'relative w-full min-w-0', children: _jsx("h1", { className: `block max-w-full truncate ${badgeClass}`, children: formatValue(col.key, value) }) }) }, col.key));
108
108
  }), menuItems && (_jsx("td", { className: 'shrink-0 w-16 flex flex-row items-center justify-end p-2 px-4\n whitespace-nowrap text-right text-sm font-medium', children: _jsxs("div", { className: 'relative', children: [_jsx("button", { type: 'button', className: `p-1.5 rounded flex items-center justify-center transition-colors ${buttonClass}`, onMouseDown: (e) => e.nativeEvent.stopImmediatePropagation(), onClick: (e) => {
109
109
  e.stopPropagation();
110
110
  const rect = e.currentTarget.getBoundingClientRect();
@@ -33,9 +33,9 @@ export default function Header({ columns, hideMenu, variant = 'default' }) {
33
33
  .slice(1)
34
34
  .replaceAll('_', ' ')}`);
35
35
  return (_jsx("th", { className: `
36
- flex-1 px-6 py-3 text-xs font-medium uppercase tracking-wider text-left
36
+ flex-1 min-w-0 px-6 py-3 text-xs font-medium uppercase tracking-wider text-left
37
37
  ${variant === 'default' ? 'text-login-200' : 'text-login-100'}
38
- ${variant === 'minimal' ? 'px-4!!' : ''}
39
- `, children: _jsxs("button", { className: 'flex flex-row items-center gap-2 group uppercase', onClick: () => handleChange(key), children: [value, _jsx("span", { className: 'flex flex-col', children: column === key ? (order === 'asc' ? (_jsx(ChevronUp, { className: 'h-4 w-4' })) : (_jsx(ChevronDown, { className: 'h-4 w-4' }))) : (_jsx(ChevronUp, { className: 'h-4 w-4 stroke-login-200 opacity-0 group-hover:opacity-100' })) })] }) }, key));
38
+ ${variant === 'minimal' ? 'px-4!' : ''}
39
+ `, children: _jsxs("button", { className: 'flex w-full min-w-0 flex-row items-center gap-2 group uppercase whitespace-nowrap', onClick: () => handleChange(key), children: [_jsx("span", { className: 'min-w-0 truncate', children: value }), _jsx("span", { className: 'flex flex-col', children: column === key ? (order === 'asc' ? (_jsx(ChevronUp, { className: 'h-4 w-4' })) : (_jsx(ChevronDown, { className: 'h-4 w-4' }))) : (_jsx(ChevronUp, { className: 'h-4 w-4 stroke-login-200 opacity-0 group-hover:opacity-100' })) })] }) }, key));
40
40
  }), !hideMenu && _jsx("th", { className: 'shrink-0 w-16 px-6 py-3' })] }) }));
41
41
  }
@@ -7,7 +7,7 @@ export default function Table({ data, columns, menuItems, redirectPath, variant
7
7
  return _jsx("div", { className: 'p-4 text-center text-login-200', children: "No data found" });
8
8
  }
9
9
  return (_jsx("div", { className: `
10
- flex-1 flex flex-col min-h-0 overflow-x-auto h-full w-full
10
+ flex-1 flex flex-col min-h-0 overflow-x-auto overflow-y-hidden h-full w-full
11
11
  ${variant === 'default' ? 'bg-login-500/50 rounded-lg shadow border border-login-600' : ''}
12
12
  ${variant === 'minimal' ? 'bg-transparent' : ''}
13
13
  `, children: _jsxs("table", { className: 'min-w-full w-max divide-y divide-login-600 flex flex-col flex-1 min-h-0', children: [_jsx(Header, { columns: columns, hideMenu: !menuItems, variant: variant }), _jsx(Body, { list: data, columns: columns, menuItems: menuItems, redirectPath: redirectPath, variant: variant, idKey: idKey })] }) }));
@@ -1236,6 +1236,9 @@
1236
1236
  .max-w-200 {
1237
1237
  max-width: calc(var(--spacing) * 200);
1238
1238
  }
1239
+ .max-w-full {
1240
+ max-width: 100%;
1241
+ }
1239
1242
  .max-w-md {
1240
1243
  max-width: var(--container-md);
1241
1244
  }
@@ -1257,9 +1260,6 @@
1257
1260
  .min-w-30 {
1258
1261
  min-width: calc(var(--spacing) * 30);
1259
1262
  }
1260
- .min-w-40 {
1261
- min-width: calc(var(--spacing) * 40);
1262
- }
1263
1263
  .min-w-70 {
1264
1264
  min-width: calc(var(--spacing) * 70);
1265
1265
  }
@@ -1451,6 +1451,9 @@
1451
1451
  .overflow-y-auto {
1452
1452
  overflow-y: auto;
1453
1453
  }
1454
+ .overflow-y-hidden {
1455
+ overflow-y: hidden;
1456
+ }
1454
1457
  .rounded {
1455
1458
  border-radius: 0.25rem;
1456
1459
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.13.1",
3
+ "version": "2.13.2",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {