uibee 2.5.5 → 2.5.7

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.
@@ -9,16 +9,16 @@ export default function Button({ text, className, icon, path, color, type, onCli
9
9
  ${bg} cursor-pointer px-4 rounded-md min-h-8 h-8 flex
10
10
  justify-evenly items-center gap-2 select-none
11
11
  focus:outline-none border-0 outline w-fit ${className}
12
- `, children: [_jsx("h1", { className: 'font-bold', children: icon ? icon : '' }), _jsx("h1", { children: text })] }));
12
+ `, children: [_jsx("h1", { className: 'font-bold', children: icon || '' }), _jsx("h1", { children: text })] }));
13
13
  }
14
14
  if (disabled) {
15
15
  return (_jsxs("div", { className: `
16
16
  ${bg} cursor-not-allowed px-4 rounded-md h-8 flex
17
17
  justify-evenly items-center gap-2 select-none
18
- `, children: [_jsx("h1", { className: 'font-bold', children: icon ? `${icon}` : '' }), _jsx("h1", { className: '', children: text })] }));
18
+ `, children: [_jsx("h1", { className: 'font-bold', children: icon || '' }), _jsx("h1", { className: '', 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
22
  justify-evenly items-center gap-2 select-none
23
- `, children: [_jsx("h1", { className: 'font-bold', children: icon ? `${icon}` : '' }), _jsx("h1", { className: '', children: text })] }));
23
+ `, children: [_jsx("h1", { className: 'font-bold', children: icon || '' }), _jsx("h1", { className: '', children: text })] }));
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.5.5",
3
+ "version": "2.5.7",
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": {
@@ -36,21 +36,21 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@eslint/eslintrc": "^3.3.3",
39
- "@next/eslint-plugin-next": "16.0.7",
39
+ "@next/eslint-plugin-next": "16.1.1",
40
40
  "@stylistic/eslint-plugin": "^5.6.1",
41
- "@tailwindcss/postcss": "^4.1.17",
42
- "@types/node": "^24.10.1",
41
+ "@tailwindcss/postcss": "^4.1.18",
42
+ "@types/node": "^25.0.3",
43
43
  "@types/react": "19.2.7",
44
- "eslint": "^9.39.1",
44
+ "eslint": "^9.39.2",
45
45
  "glob": "^13.0.0",
46
46
  "postcss": "^8.5.6",
47
- "tailwindcss": "^4.1.17",
47
+ "tailwindcss": "^4.1.18",
48
48
  "ts-node": "^10.9.2",
49
49
  "typescript": "^5.9.3",
50
- "typescript-eslint": "^8.48.1"
50
+ "typescript-eslint": "^8.50.1"
51
51
  },
52
52
  "dependencies": {
53
- "lucide-react": "^0.555.0",
53
+ "lucide-react": "^0.562.0",
54
54
  "react-dom": "19.2.3"
55
55
  }
56
56
  }
@@ -39,7 +39,7 @@ export default function Button({
39
39
  focus:outline-none border-0 outline w-fit ${className}
40
40
  `}
41
41
  >
42
- <h1 className='font-bold'>{icon ? icon : ''}</h1>
42
+ <h1 className='font-bold'>{icon || ''}</h1>
43
43
  <h1>{text}</h1>
44
44
  </button>
45
45
  )
@@ -53,7 +53,7 @@ export default function Button({
53
53
  justify-evenly items-center gap-2 select-none
54
54
  `}
55
55
  >
56
- <h1 className='font-bold'>{icon ? `${icon}` : ''}</h1>
56
+ <h1 className='font-bold'>{icon || ''}</h1>
57
57
  <h1 className=''>{text}</h1>
58
58
  </div>
59
59
  )
@@ -67,7 +67,7 @@ export default function Button({
67
67
  justify-evenly items-center gap-2 select-none
68
68
  `}
69
69
  >
70
- <h1 className='font-bold'>{icon ? `${icon}` : ''}</h1>
70
+ <h1 className='font-bold'>{icon || ''}</h1>
71
71
  <h1 className=''>{text}</h1>
72
72
  </Link>
73
73
  )