uibee 2.7.3 → 2.7.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.
@@ -14,11 +14,11 @@ export default function Button({ text, className, icon, path, color, type, onCli
14
14
  if (disabled) {
15
15
  return (_jsxs("div", { className: `
16
16
  ${bg} cursor-not-allowed px-4 rounded-md h-8 flex
17
- justify-evenly items-center gap-2 select-none
17
+ justify-evenly items-center gap-2 select-none w-fit
18
18
  `, children: [_jsx("h1", { className: 'font-bold', children: icon || '' }), _jsx("h1", { className: 'w-fit', children: text })] }));
19
19
  }
20
20
  return (_jsxs(Link, { href: path, className: `
21
21
  ${bg} cursor-pointer px-4 rounded-md h-8 flex
22
- justify-evenly items-center gap-2 select-none
22
+ justify-evenly items-center gap-2 select-none w-fit
23
23
  `, children: [_jsx("h1", { className: 'font-bold', children: icon || '' }), _jsx("h1", { className: 'w-fit', children: text })] }));
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.7.3",
3
+ "version": "2.7.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": {
@@ -50,7 +50,7 @@ export default function Button({
50
50
  <div
51
51
  className={`
52
52
  ${bg} cursor-not-allowed px-4 rounded-md h-8 flex
53
- justify-evenly items-center gap-2 select-none
53
+ justify-evenly items-center gap-2 select-none w-fit
54
54
  `}
55
55
  >
56
56
  <h1 className='font-bold'>{icon || ''}</h1>
@@ -64,7 +64,7 @@ export default function Button({
64
64
  href={path}
65
65
  className={`
66
66
  ${bg} cursor-pointer px-4 rounded-md h-8 flex
67
- justify-evenly items-center gap-2 select-none
67
+ justify-evenly items-center gap-2 select-none w-fit
68
68
  `}
69
69
  >
70
70
  <h1 className='font-bold'>{icon || ''}</h1>