uibee 2.2.3 → 2.2.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.
@@ -5,7 +5,7 @@ import Link from 'next/link';
5
5
  const commonStyling = 'list-none flex no-underline items-center gap-2 whitespace-nowrap cursor-pointer';
6
6
  export default function NavItem({ href, children, external = false, target, rel, title, icon }) {
7
7
  const linkProps = { href, target, rel, title };
8
- return (_jsxs(_Fragment, { children: [_jsx(Link, { ...linkProps, children: _jsxs("li", { className: `${commonStyling} text-base leading-4 p-3 font-bold transition-colors link-corner-hover
8
+ return (_jsxs(_Fragment, { children: [_jsx(Link, { ...linkProps, className: 'hidden 800px:flex', children: _jsxs("li", { className: `${commonStyling} text-base leading-4 p-3 font-bold transition-colors link-corner-hover
9
9
  group-[.dropdown]:p-2.5 group-[.dropdown]:pr-3 group-[.dropdown]:pl-1`, children: [icon, children, external && _jsx(ArrowUpRight, { className: 'w-6 h-6 stroke-login' })] }) }), _jsx(Link, { ...linkProps, className: '800px:hidden', children: _jsxs("li", { className: `${commonStyling} text-2xl leading-6 overflow-hidden w-auto pl-4 rounded-[0.3rem] transition-all
10
10
  duration-[600ms] opacity-100 h-16 py-5 group-[.dropdown]:p-0 group-[.dropdown]:text-lg group-[.dropdown]:h-auto
11
11
  group-[.dropdown]:py-2.5 group-[.dropdown]:pl-4`, children: [children, external && _jsx(ArrowUpRight, { className: 'w-6 h-6 stroke-login' })] }) })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.2.3",
3
+ "version": "2.2.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": {
@@ -22,7 +22,7 @@ export default function NavItem({ href, children, external = false, target, rel,
22
22
  return (
23
23
  <>
24
24
  {/* Desktop version */}
25
- <Link {...linkProps}>
25
+ <Link {...linkProps} className='hidden 800px:flex'>
26
26
  <li className={`${commonStyling} text-base leading-4 p-3 font-bold transition-colors link-corner-hover
27
27
  group-[.dropdown]:p-2.5 group-[.dropdown]:pr-3 group-[.dropdown]:pl-1`
28
28
  }>