uibee 2.10.2 → 2.10.4

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.
@@ -20,7 +20,7 @@ export { default as LoginPage } from './login/loginPage';
20
20
  export { default as Toaster, toast } from './toast/toaster';
21
21
  export { default as Button } from './buttons/button';
22
22
  export { default as Alert } from './alert/alert';
23
- export { default as MenuButton } from './table/menu';
23
+ export { MenuButton } from './table/menu';
24
24
  export { default as Table } from './table/table';
25
25
  export { default as Pagination } from './table/pagination';
26
26
  export { default as ConfirmPopup } from './confirm/confirmPopup';
@@ -30,7 +30,7 @@ export { default as Button } from './buttons/button';
30
30
  // Alert
31
31
  export { default as Alert } from './alert/alert';
32
32
  // Table
33
- export { default as MenuButton } from './table/menu';
33
+ export { MenuButton } from './table/menu';
34
34
  export { default as Table } from './table/table';
35
35
  export { default as Pagination } from './table/pagination';
36
36
  // Confirm
@@ -105,7 +105,7 @@ export default function Body({ list, columns, menuItems, redirectPath, variant =
105
105
  flex-1 px-6 py-4 whitespace-nowrap text-sm min-w-40 flex items-center text-login-100
106
106
  ${variant === 'minimal' ? 'py-3' : ''}
107
107
  `, children: _jsx("div", { className: 'relative', children: _jsx("h1", { className: badgeClass, children: formatValue(col.key, value) }) }) }, col.key));
108
- }), menuItems && (_jsx("td", { className: 'shrink-0 w-16 flex flex-row 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-start justify-center transition-colors ${buttonClass}`, onMouseDown: (e) => e.nativeEvent.stopImmediatePropagation(), onClick: (e) => {
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();
111
111
  const coords = { top: rect.bottom + 4, right: window.innerWidth - rect.right };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.10.2",
3
+ "version": "2.10.4",
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": {
@@ -39,7 +39,7 @@ export { default as Button } from './buttons/button'
39
39
  export { default as Alert } from './alert/alert'
40
40
 
41
41
  // Table
42
- export { default as MenuButton } from './table/menu'
42
+ export { MenuButton } from './table/menu'
43
43
  export { default as Table } from './table/table'
44
44
  export { default as Pagination } from './table/pagination'
45
45
 
@@ -144,13 +144,13 @@ export default function Body({ list, columns, menuItems, redirectPath, variant =
144
144
  })}
145
145
  {menuItems && (
146
146
  <td
147
- className='shrink-0 w-16 flex flex-row justify-end p-2 px-4
147
+ className='shrink-0 w-16 flex flex-row items-center justify-end p-2 px-4
148
148
  whitespace-nowrap text-right text-sm font-medium'
149
149
  >
150
150
  <div className='relative'>
151
151
  <button
152
152
  type='button'
153
- className={`p-1.5 rounded flex items-start justify-center transition-colors ${buttonClass}`}
153
+ className={`p-1.5 rounded flex items-center justify-center transition-colors ${buttonClass}`}
154
154
  onMouseDown={(e) => e.nativeEvent.stopImmediatePropagation()}
155
155
  onClick={(e) => {
156
156
  e.stopPropagation()