@lotte-innovate/ui-component-test 0.1.69-beta.7 → 0.1.69-beta.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{cva as
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{cva as n}from"class-variance-authority";import{usePathname as a}from"next/navigation";import{GnbContext as i}from"./GnbRoot.mjs";import{cn as o}from"../../utils/utils.mjs";import s from"next/link";var l=function(){return l=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var a in e=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},l.apply(this,arguments)},m=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(r[n[a]]=t[n[a]])}return r},c=n("mr-4 hidden md:flex",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),f=e((function(e,n){e.children;var f=e.className,p=e.menuList,u=m(e,["children","className","menuList"]),h=r(i).size,d=a();return t("div",l({className:o(c({size:h}),f)},u,{children:t("nav",{className:"flex items-center gap-4 lg:gap-6",children:p.map((function(e,r){return t(s,{href:e.href,className:o("hover:text-slate-11",e.href.startsWith(d)?"text-slate-12":"text-slate-10"),children:e.title},r)}))})}))}));f.displayName="Gnb.Menu";export{f as GnbMenu};
|
2
2
|
//# sourceMappingURL=GnbMenu.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GnbMenu.mjs","sources":["../../../../../lib/components/Gnb/GnbMenu.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useContext } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { usePathname } from 'next/navigation';\nimport { GnbContext } from './GnbRoot';\nimport { cn } from '../../../lib/utils/utils';\nimport Link from 'next/link';\nvar gnbMenuVariants = cva('mr-4 hidden md:flex', {\n variants: {\n size: {\n small: 'text-xs',\n medium: 'text-sm',\n large: 'text-base',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var GnbMenu = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, menuList = _a.menuList, props = __rest(_a, [\"children\", \"className\", \"menuList\"]);\n var size = useContext(GnbContext).size;\n var pathname = usePathname();\n return (_jsx(\"div\", __assign({ className: cn(gnbMenuVariants({ size: size }), className) }, props, { children: _jsx(\"nav\", { className: \"flex items-center gap-4 lg:gap-6\", children: menuList.map(function (menu, index) { return (_jsx(Link, { href: menu.href, className: cn('hover:text-slate-11', menu.href.startsWith(pathname) ? 'text-slate-12' : 'text-slate-10'), children: menu.title }, index)); }) }) })));\n});\nGnbMenu.displayName = 'Gnb.Menu';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","gnbMenuVariants","cva","variants","size","small","medium","large","defaultVariants","GnbMenu","forwardRef","_a","ref","children","className","menuList","props","useContext","GnbContext","pathname","usePathname","_jsx","cn","map","menu","index","Link","href","startsWith","title","displayName"],"mappings":"
|
1
|
+
{"version":3,"file":"GnbMenu.mjs","sources":["../../../../../lib/components/Gnb/GnbMenu.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useContext } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { usePathname } from 'next/navigation';\nimport { GnbContext } from './GnbRoot';\nimport { cn } from '../../../lib/utils/utils';\nimport Link from 'next/link';\nvar gnbMenuVariants = cva('mr-4 hidden md:flex', {\n variants: {\n size: {\n small: 'text-xs',\n medium: 'text-sm',\n large: 'text-base',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var GnbMenu = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, menuList = _a.menuList, props = __rest(_a, [\"children\", \"className\", \"menuList\"]);\n var size = useContext(GnbContext).size;\n var pathname = usePathname();\n return (_jsx(\"div\", __assign({ className: cn(gnbMenuVariants({ size: size }), className) }, props, { children: _jsx(\"nav\", { className: \"flex items-center gap-4 lg:gap-6\", children: menuList.map(function (menu, index) { return (_jsx(Link, { href: menu.href, className: cn('hover:text-slate-11', menu.href.startsWith(pathname) ? 'text-slate-12' : 'text-slate-10'), children: menu.title }, index)); }) }) })));\n});\nGnbMenu.displayName = 'Gnb.Menu';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","gnbMenuVariants","cva","variants","size","small","medium","large","defaultVariants","GnbMenu","forwardRef","_a","ref","children","className","menuList","props","useContext","GnbContext","pathname","usePathname","_jsx","cn","map","menu","index","Link","href","startsWith","title","displayName"],"mappings":"uSAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAkBC,EAAI,sBAAuB,CAC7CC,SAAU,CACNC,KAAM,CACFC,MAAO,UACPC,OAAQ,UACRC,MAAO,cAGfC,gBA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