@nextlevel_korea/design-system 2.0.3 → 2.0.5

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.
@@ -97,7 +97,9 @@ const Header = ({ logo, logoSize, sidebarLogoSize, navList, eventButton, colors,
97
97
  document.body.style.overflow = 'unset';
98
98
  };
99
99
  }, [isSidebarOpen]);
100
- return (_jsxs(_Fragment, { children: [_jsx("header", { className: `w-full ${finalColors.headerBg} ${finalColors.shadow} border-b ${finalColors.border} sticky top-0 z-99`, children: _jsxs("div", { className: "w-full max-w-[1240px] px-5 mx-auto flex items-center justify-between h-14 md:h-16", children: [_jsx("div", { className: "flex items-center space-x-4", children: logo && (_jsx(Link, { href: "/", children: _jsx(Image, { src: logo, alt: "Logo", width: finalLogoSize.width, height: finalLogoSize.height, className: finalLogoSize.className }) })) }), _jsxs("div", { className: "flex items-center space-x-6", ref: dropdownRef, children: [_jsx("nav", { className: "hidden md:flex items-center space-x-6", children: navList?.map((nav) => (_jsxs("div", { className: "relative", children: [_jsx("button", { onClick: () => nav.sub ? handleDropdownClick(nav.idx) : undefined, className: `${finalColors.navText} ${finalColors.navTextHover} transition-colors duration-200 font-medium flex items-center`, children: nav.sub ? (_jsx(_Fragment, { children: nav.name })) : (_jsx(Link, { href: nav.path, children: nav.name })) }), _jsxs("div", { className: `absolute top-[44px] min-w-[100px] w-auto ${finalColors.dropdownBg} border ${finalColors.dropdownBorder} rounded-lg shadow-lg z-50 transition-all duration-300 ease-in-out transform ${nav.idx === navList?.length
100
+ return (_jsxs(_Fragment, { children: [_jsx("header", { className: `w-full ${finalColors.headerBg} ${finalColors.shadow} border-b ${finalColors.border} sticky top-0 `, style: {
101
+ zIndex: 998,
102
+ }, children: _jsxs("div", { className: "w-full max-w-[1240px] px-5 mx-auto flex items-center justify-between h-14 md:h-16", children: [_jsx("div", { className: "flex items-center space-x-4", children: logo && (_jsx(Link, { href: "/", children: _jsx(Image, { src: logo, alt: "Logo", width: finalLogoSize.width, height: finalLogoSize.height, className: finalLogoSize.className }) })) }), _jsxs("div", { className: "flex items-center space-x-6", ref: dropdownRef, children: [_jsx("nav", { className: "hidden md:flex items-center space-x-6", children: navList?.map((nav) => (_jsxs("div", { className: "relative", children: [_jsx("button", { onClick: () => nav.sub ? handleDropdownClick(nav.idx) : undefined, className: `${finalColors.navText} ${finalColors.navTextHover} transition-colors duration-200 font-medium flex items-center`, children: nav.sub ? (_jsx(_Fragment, { children: nav.name })) : (_jsx(Link, { href: nav.path, children: nav.name })) }), _jsxs("div", { className: `absolute top-[44px] min-w-[100px] w-auto ${finalColors.dropdownBg} border ${finalColors.dropdownBorder} rounded-lg shadow-lg z-50 transition-all duration-300 ease-in-out transform ${nav.idx === navList?.length
101
103
  ? 'right-0'
102
104
  : 'left-1/2 transform -translate-x-1/2'} ${openDropdown === nav.idx
103
105
  ? 'opacity-100 translate-y-0 pointer-events-auto'
@@ -107,13 +109,13 @@ const Header = ({ logo, logoSize, sidebarLogoSize, navList, eventButton, colors,
107
109
  fill: 'white',
108
110
  filter: 'drop-shadow(0 -1px 0 #e5e7eb)',
109
111
  }, children: _jsx("path", { d: "M12 2L2 12h20L12 2z" }) }), _jsx("div", { className: "py-2", children: nav.sub?.map((subItem) => (_jsx(Link, { href: subItem.path, className: `block px-4 py-2 text-sm whitespace-nowrap ${finalColors.submenuText} hover:bg-gray-100 ${finalColors.submenuTextHover} transition-colors duration-200`, onClick: () => setOpenDropdown(null), children: subItem.name }, subItem.idx))) })] })] }, nav.idx))) }), eventButton && (_jsx("button", { onClick: eventButton.onClick, className: `hidden md:block px-4 py-2 rounded font-medium transition-all duration-200 ${eventButton.className ||
110
- 'bg-primary text-white hover:bg-primary-dark'}`, children: eventButton.text })), _jsx("button", { className: `md:hidden p-2 rounded-lg ${finalColors.navText} hover:bg-gray-100 transition-colors duration-200`, onClick: toggleSidebar, children: _jsx("svg", { className: "w-6 h-6", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 6h16M4 12h16M4 18h16" }) }) })] })] }) }), _jsx("div", { className: `fixed inset-0 ${finalColors.overlayBg} z-50 md:hidden ${isSidebarOpen
112
+ 'bg-primary text-white hover:bg-primary-dark'}`, children: eventButton.text })), _jsx("button", { className: `md:hidden p-2 rounded-lg ${finalColors.navText} hover:bg-gray-100 transition-colors duration-200`, onClick: toggleSidebar, children: _jsx("svg", { className: "w-6 h-6", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 6h16M4 12h16M4 18h16" }) }) })] })] }) }), _jsx("div", { className: `fixed inset-0 ${finalColors.overlayBg} z-[999] md:hidden ${isSidebarOpen
111
113
  ? `${finalColors.overlayOpacity} backdrop-blur-sm`
112
- : 'bg-opacity-0 backdrop-blur-none pointer-events-none'} ${isAnimating ? 'transition-all duration-300 ease-in-out' : ''}`, onClick: closeSidebarWithAnimation }), _jsx("div", { className: `fixed top-0 ${sidebarPosition === 'left' ? 'left-0' : 'right-0'} h-full w-4/5 xsm:w-80 ${finalColors.sidebarBg} ${finalColors.sidebarShadow} transform z-50 md:hidden ${isSidebarOpen
114
+ : 'bg-opacity-0 backdrop-blur-none pointer-events-none'} ${isAnimating ? 'transition-all duration-300 ease-in-out' : ''}`, onClick: closeSidebarWithAnimation }), _jsx("div", { className: `fixed top-0 ${sidebarPosition === 'left' ? 'left-0' : 'right-0'} h-full w-4/5 xsm:w-80 ${finalColors.sidebarBg} ${finalColors.sidebarShadow} transform z-[999] md:hidden ${isSidebarOpen
113
115
  ? 'translate-x-0'
114
116
  : sidebarPosition === 'left'
115
117
  ? '-translate-x-full'
116
- : 'translate-x-full'} ${isAnimating ? 'transition-all duration-300 ease-in-out' : ''}`, children: _jsxs("div", { className: `flex flex-col h-full bg-gradient-to-b ${finalColors.sidebarGradientFrom} ${finalColors.sidebarGradientTo}`, children: [_jsxs("div", { className: `flex items-center justify-between p-4 border-b ${finalColors.border} ${finalColors.sidebarBg}/80 backdrop-blur-sm`, children: [_jsxs("div", { className: "flex items-center space-x-3", children: [_jsx("div", { className: `w-2 h-8 bg-gradient-to-b ${finalColors.primary} ${finalColors.primaryDark} rounded-full` }), logo ? (_jsx(Image, { src: logo, alt: "Logo", width: finalSidebarLogoSize.width, height: finalSidebarLogoSize.height, className: finalSidebarLogoSize.className })) : (_jsx("h2", { className: `text-xl font-bold ${finalColors.sidebarTitleText}`, children: "Menu" }))] }), _jsx("button", { onClick: closeSidebarWithAnimation, className: "p-2 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-all duration-200", children: _jsx("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })] }), _jsx("nav", { className: "flex-1 overflow-y-auto", children: _jsx("ul", { className: "", children: navList?.map((nav) => (_jsx("li", { children: nav.sub ? (_jsxs("div", { className: `${finalColors.dropdownBg} ${finalColors.shadow} border-b ${finalColors.border} overflow-hidden`, children: [_jsxs("button", { onClick: () => handleSidebarDropdownClick(nav.idx), className: `w-full flex items-center justify-between p-4 text-left ${finalColors.sidebarNavText} hover:bg-gray-50 transition-all duration-200 group`, children: [_jsxs("div", { className: "flex items-center space-x-3", children: [_jsx("div", { className: `w-1.5 h-1.5 ${finalColors.accent} rounded-full opacity-60 group-hover:opacity-100 transition-opacity duration-200` }), _jsx("span", { className: `font-semibold text-gray-800 ${finalColors.sidebarNavTextHover} transition-colors duration-200`, children: nav.name })] }), _jsx("svg", { className: `shrink-0 w-4 h-4 text-gray-400 transition-all duration-200 ${openSidebarDropdown === nav.idx
118
+ : 'translate-x-full'} ${isAnimating ? 'transition-all duration-300 ease-in-out' : ''}`, children: _jsxs("div", { className: `flex flex-col h-full bg-gradient-to-b ${finalColors.sidebarGradientFrom} ${finalColors.sidebarGradientTo}`, children: [_jsxs("div", { className: `flex items-center justify-between p-4 border-b ${finalColors.border} ${finalColors.sidebarBg}/80 backdrop-blur-sm`, children: [_jsx("div", { className: "flex items-center space-x-3", children: logo ? (_jsx(Image, { src: logo, alt: "Logo", width: finalSidebarLogoSize.width, height: finalSidebarLogoSize.height, className: finalSidebarLogoSize.className })) : (_jsx("h2", { className: `text-xl font-bold ${finalColors.sidebarTitleText}`, children: "Menu" })) }), _jsx("button", { onClick: closeSidebarWithAnimation, className: "p-2 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-all duration-200", children: _jsx("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })] }), _jsx("nav", { className: "flex-1 overflow-y-auto", children: _jsx("ul", { className: "", children: navList?.map((nav) => (_jsx("li", { children: nav.sub ? (_jsxs("div", { className: `${finalColors.dropdownBg} ${finalColors.shadow} border-b ${finalColors.border} overflow-hidden`, children: [_jsxs("button", { onClick: () => handleSidebarDropdownClick(nav.idx), className: `w-full flex items-center justify-between p-4 text-left ${finalColors.sidebarNavText} hover:bg-gray-50 transition-all duration-200 group`, children: [_jsxs("div", { className: "flex items-center space-x-3", children: [_jsx("div", { className: `w-1.5 h-1.5 ${finalColors.accent} rounded-full opacity-60 group-hover:opacity-100 transition-opacity duration-200` }), _jsx("span", { className: `font-semibold text-gray-800 ${finalColors.sidebarNavTextHover} transition-colors duration-200`, children: nav.name })] }), _jsx("svg", { className: `shrink-0 w-4 h-4 text-gray-400 transition-all duration-200 ${openSidebarDropdown === nav.idx
117
119
  ? 'rotate-180 text-primary'
118
120
  : 'group-hover:text-gray-600'}`, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) })] }), _jsx("div", { className: `overflow-hidden transition-all duration-300 ease-in-out ${openSidebarDropdown === nav.idx
119
121
  ? 'max-h-96 opacity-100'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextlevel_korea/design-system",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "A modern React design system built with TypeScript and Tailwind CSS - The NextLevel Design System",
5
5
  "keywords": [
6
6
  "nextlevel"