uibee 2.2.1 → 2.2.3
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,8 +5,8 @@ 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,
|
|
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: '
|
|
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
|
|
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' })] }) })] }));
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -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}>
|
|
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
|
}>
|
|
@@ -33,7 +33,7 @@ export default function NavItem({ href, children, external = false, target, rel,
|
|
|
33
33
|
</Link>
|
|
34
34
|
|
|
35
35
|
{/* Mobile version */}
|
|
36
|
-
<Link {...linkProps} className='
|
|
36
|
+
<Link {...linkProps} className='800px:hidden'>
|
|
37
37
|
<li className={`${commonStyling} text-2xl leading-6 overflow-hidden w-auto pl-4 rounded-[0.3rem] transition-all
|
|
38
38
|
duration-[600ms] opacity-100 h-16 py-5 group-[.dropdown]:p-0 group-[.dropdown]:text-lg group-[.dropdown]:h-auto
|
|
39
39
|
group-[.dropdown]:py-2.5 group-[.dropdown]:pl-4`
|