@nextlevel_korea/design-system 1.1.6 → 2.0.1
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.
- package/README.md +128 -556
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/Footer.js +45 -0
- package/dist/components/Header/Header.d.ts.map +1 -1
- package/dist/components/Header/Header.js +106 -0
- package/dist/index.css +3 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -735
- package/package.json +18 -14
package/dist/index.js
CHANGED
@@ -1,735 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
/**
|
4
|
-
* @license React
|
5
|
-
* react-jsx-runtime.production.js
|
6
|
-
*
|
7
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
8
|
-
*
|
9
|
-
* This source code is licensed under the MIT license found in the
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
11
|
-
*/
|
12
|
-
var Z;
|
13
|
-
function oe() {
|
14
|
-
if (Z) return $;
|
15
|
-
Z = 1;
|
16
|
-
var m = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
17
|
-
function i(p, n, u) {
|
18
|
-
var h = null;
|
19
|
-
if (u !== void 0 && (h = "" + u), n.key !== void 0 && (h = "" + n.key), "key" in n) {
|
20
|
-
u = {};
|
21
|
-
for (var x in n)
|
22
|
-
x !== "key" && (u[x] = n[x]);
|
23
|
-
} else u = n;
|
24
|
-
return n = u.ref, {
|
25
|
-
$$typeof: m,
|
26
|
-
type: p,
|
27
|
-
key: h,
|
28
|
-
ref: n !== void 0 ? n : null,
|
29
|
-
props: u
|
30
|
-
};
|
31
|
-
}
|
32
|
-
return $.Fragment = s, $.jsx = i, $.jsxs = i, $;
|
33
|
-
}
|
34
|
-
var E = {};
|
35
|
-
/**
|
36
|
-
* @license React
|
37
|
-
* react-jsx-runtime.development.js
|
38
|
-
*
|
39
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
40
|
-
*
|
41
|
-
* This source code is licensed under the MIT license found in the
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
43
|
-
*/
|
44
|
-
var I;
|
45
|
-
function se() {
|
46
|
-
return I || (I = 1, process.env.NODE_ENV !== "production" && function() {
|
47
|
-
function m(e) {
|
48
|
-
if (e == null) return null;
|
49
|
-
if (typeof e == "function")
|
50
|
-
return e.$$typeof === K ? null : e.displayName || e.name || null;
|
51
|
-
if (typeof e == "string") return e;
|
52
|
-
switch (e) {
|
53
|
-
case t:
|
54
|
-
return "Fragment";
|
55
|
-
case A:
|
56
|
-
return "Profiler";
|
57
|
-
case O:
|
58
|
-
return "StrictMode";
|
59
|
-
case o:
|
60
|
-
return "Suspense";
|
61
|
-
case f:
|
62
|
-
return "SuspenseList";
|
63
|
-
case Q:
|
64
|
-
return "Activity";
|
65
|
-
}
|
66
|
-
if (typeof e == "object")
|
67
|
-
switch (typeof e.tag == "number" && console.error(
|
68
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
69
|
-
), e.$$typeof) {
|
70
|
-
case z:
|
71
|
-
return "Portal";
|
72
|
-
case _:
|
73
|
-
return (e.displayName || "Context") + ".Provider";
|
74
|
-
case P:
|
75
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
76
|
-
case S:
|
77
|
-
var a = e.render;
|
78
|
-
return e = e.displayName, e || (e = a.displayName || a.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
79
|
-
case T:
|
80
|
-
return a = e.displayName || null, a !== null ? a : m(e.type) || "Memo";
|
81
|
-
case G:
|
82
|
-
a = e._payload, e = e._init;
|
83
|
-
try {
|
84
|
-
return m(e(a));
|
85
|
-
} catch {
|
86
|
-
}
|
87
|
-
}
|
88
|
-
return null;
|
89
|
-
}
|
90
|
-
function s(e) {
|
91
|
-
return "" + e;
|
92
|
-
}
|
93
|
-
function i(e) {
|
94
|
-
try {
|
95
|
-
s(e);
|
96
|
-
var a = !1;
|
97
|
-
} catch {
|
98
|
-
a = !0;
|
99
|
-
}
|
100
|
-
if (a) {
|
101
|
-
a = console;
|
102
|
-
var l = a.error, c = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
103
|
-
return l.call(
|
104
|
-
a,
|
105
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
106
|
-
c
|
107
|
-
), s(e);
|
108
|
-
}
|
109
|
-
}
|
110
|
-
function p(e) {
|
111
|
-
if (e === t) return "<>";
|
112
|
-
if (typeof e == "object" && e !== null && e.$$typeof === G)
|
113
|
-
return "<...>";
|
114
|
-
try {
|
115
|
-
var a = m(e);
|
116
|
-
return a ? "<" + a + ">" : "<...>";
|
117
|
-
} catch {
|
118
|
-
return "<...>";
|
119
|
-
}
|
120
|
-
}
|
121
|
-
function n() {
|
122
|
-
var e = D.A;
|
123
|
-
return e === null ? null : e.getOwner();
|
124
|
-
}
|
125
|
-
function u() {
|
126
|
-
return Error("react-stack-top-frame");
|
127
|
-
}
|
128
|
-
function h(e) {
|
129
|
-
if (H.call(e, "key")) {
|
130
|
-
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
131
|
-
if (a && a.isReactWarning) return !1;
|
132
|
-
}
|
133
|
-
return e.key !== void 0;
|
134
|
-
}
|
135
|
-
function x(e, a) {
|
136
|
-
function l() {
|
137
|
-
U || (U = !0, console.error(
|
138
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
139
|
-
a
|
140
|
-
));
|
141
|
-
}
|
142
|
-
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
143
|
-
get: l,
|
144
|
-
configurable: !0
|
145
|
-
});
|
146
|
-
}
|
147
|
-
function y() {
|
148
|
-
var e = m(this.type);
|
149
|
-
return L[e] || (L[e] = !0, console.error(
|
150
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
151
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
152
|
-
}
|
153
|
-
function k(e, a, l, c, v, b, M, Y) {
|
154
|
-
return l = b.ref, e = {
|
155
|
-
$$typeof: j,
|
156
|
-
type: e,
|
157
|
-
key: a,
|
158
|
-
props: b,
|
159
|
-
_owner: v
|
160
|
-
}, (l !== void 0 ? l : null) !== null ? Object.defineProperty(e, "ref", {
|
161
|
-
enumerable: !1,
|
162
|
-
get: y
|
163
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
164
|
-
configurable: !1,
|
165
|
-
enumerable: !1,
|
166
|
-
writable: !0,
|
167
|
-
value: 0
|
168
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
169
|
-
configurable: !1,
|
170
|
-
enumerable: !1,
|
171
|
-
writable: !0,
|
172
|
-
value: null
|
173
|
-
}), Object.defineProperty(e, "_debugStack", {
|
174
|
-
configurable: !1,
|
175
|
-
enumerable: !1,
|
176
|
-
writable: !0,
|
177
|
-
value: M
|
178
|
-
}), Object.defineProperty(e, "_debugTask", {
|
179
|
-
configurable: !1,
|
180
|
-
enumerable: !1,
|
181
|
-
writable: !0,
|
182
|
-
value: Y
|
183
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
184
|
-
}
|
185
|
-
function R(e, a, l, c, v, b, M, Y) {
|
186
|
-
var d = a.children;
|
187
|
-
if (d !== void 0)
|
188
|
-
if (c)
|
189
|
-
if (ee(d)) {
|
190
|
-
for (c = 0; c < d.length; c++)
|
191
|
-
N(d[c]);
|
192
|
-
Object.freeze && Object.freeze(d);
|
193
|
-
} else
|
194
|
-
console.error(
|
195
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
196
|
-
);
|
197
|
-
else N(d);
|
198
|
-
if (H.call(a, "key")) {
|
199
|
-
d = m(e);
|
200
|
-
var w = Object.keys(a).filter(function(re) {
|
201
|
-
return re !== "key";
|
202
|
-
});
|
203
|
-
c = 0 < w.length ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}", J[d + c] || (w = 0 < w.length ? "{" + w.join(": ..., ") + ": ...}" : "{}", console.error(
|
204
|
-
`A props object containing a "key" prop is being spread into JSX:
|
205
|
-
let props = %s;
|
206
|
-
<%s {...props} />
|
207
|
-
React keys must be passed directly to JSX without using spread:
|
208
|
-
let props = %s;
|
209
|
-
<%s key={someKey} {...props} />`,
|
210
|
-
c,
|
211
|
-
d,
|
212
|
-
w,
|
213
|
-
d
|
214
|
-
), J[d + c] = !0);
|
215
|
-
}
|
216
|
-
if (d = null, l !== void 0 && (i(l), d = "" + l), h(a) && (i(a.key), d = "" + a.key), "key" in a) {
|
217
|
-
l = {};
|
218
|
-
for (var B in a)
|
219
|
-
B !== "key" && (l[B] = a[B]);
|
220
|
-
} else l = a;
|
221
|
-
return d && x(
|
222
|
-
l,
|
223
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
224
|
-
), k(
|
225
|
-
e,
|
226
|
-
d,
|
227
|
-
b,
|
228
|
-
v,
|
229
|
-
n(),
|
230
|
-
l,
|
231
|
-
M,
|
232
|
-
Y
|
233
|
-
);
|
234
|
-
}
|
235
|
-
function N(e) {
|
236
|
-
typeof e == "object" && e !== null && e.$$typeof === j && e._store && (e._store.validated = 1);
|
237
|
-
}
|
238
|
-
var g = te, j = Symbol.for("react.transitional.element"), z = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), Q = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), D = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, ee = Array.isArray, F = console.createTask ? console.createTask : function() {
|
239
|
-
return null;
|
240
|
-
};
|
241
|
-
g = {
|
242
|
-
"react-stack-bottom-frame": function(e) {
|
243
|
-
return e();
|
244
|
-
}
|
245
|
-
};
|
246
|
-
var U, L = {}, V = g["react-stack-bottom-frame"].bind(
|
247
|
-
g,
|
248
|
-
u
|
249
|
-
)(), q = F(p(u)), J = {};
|
250
|
-
E.Fragment = t, E.jsx = function(e, a, l, c, v) {
|
251
|
-
var b = 1e4 > D.recentlyCreatedOwnerStacks++;
|
252
|
-
return R(
|
253
|
-
e,
|
254
|
-
a,
|
255
|
-
l,
|
256
|
-
!1,
|
257
|
-
c,
|
258
|
-
v,
|
259
|
-
b ? Error("react-stack-top-frame") : V,
|
260
|
-
b ? F(p(e)) : q
|
261
|
-
);
|
262
|
-
}, E.jsxs = function(e, a, l, c, v) {
|
263
|
-
var b = 1e4 > D.recentlyCreatedOwnerStacks++;
|
264
|
-
return R(
|
265
|
-
e,
|
266
|
-
a,
|
267
|
-
l,
|
268
|
-
!0,
|
269
|
-
c,
|
270
|
-
v,
|
271
|
-
b ? Error("react-stack-top-frame") : V,
|
272
|
-
b ? F(p(e)) : q
|
273
|
-
);
|
274
|
-
};
|
275
|
-
}()), E;
|
276
|
-
}
|
277
|
-
process.env.NODE_ENV === "production" ? W.exports = oe() : W.exports = se();
|
278
|
-
var r = W.exports;
|
279
|
-
const le = ({
|
280
|
-
logo: m,
|
281
|
-
navList: s,
|
282
|
-
eventButton: i,
|
283
|
-
colors: p,
|
284
|
-
sidebarPosition: n = "left"
|
285
|
-
}) => {
|
286
|
-
const [u, h] = C(null), [x, y] = C(!1), [k, R] = C(
|
287
|
-
null
|
288
|
-
), [N, g] = C(!1), j = ae(null), t = { ...{
|
289
|
-
headerBg: "bg-white",
|
290
|
-
sidebarBg: "bg-white",
|
291
|
-
sidebarGradientFrom: "from-white",
|
292
|
-
sidebarGradientTo: "to-gray-50",
|
293
|
-
dropdownBg: "bg-white",
|
294
|
-
submenuBg: "bg-gray-50/50",
|
295
|
-
titleText: "bg-gradient-to-r from-primary to-primary-dark bg-clip-text text-transparent",
|
296
|
-
navText: "text-gray-600",
|
297
|
-
navTextHover: "hover:text-primary",
|
298
|
-
sidebarTitleText: "bg-gradient-to-r from-gray-800 to-gray-600 bg-clip-text text-transparent",
|
299
|
-
sidebarNavText: "text-gray-700",
|
300
|
-
sidebarNavTextHover: "hover:text-primary",
|
301
|
-
submenuText: "text-gray-600",
|
302
|
-
submenuTextHover: "hover:text-primary",
|
303
|
-
primary: "bg-primary",
|
304
|
-
primaryDark: "bg-primary-dark",
|
305
|
-
accent: "bg-primary",
|
306
|
-
border: "border-gray-100",
|
307
|
-
dropdownBorder: "border-gray-200",
|
308
|
-
shadow: "shadow-sm",
|
309
|
-
sidebarShadow: "shadow-2xl",
|
310
|
-
overlayBg: "bg-black",
|
311
|
-
overlayOpacity: "bg-opacity-50"
|
312
|
-
}, ...p || {} }, O = (o) => {
|
313
|
-
h(u === o ? null : o);
|
314
|
-
}, A = (o) => {
|
315
|
-
R(k === o ? null : o);
|
316
|
-
}, P = () => {
|
317
|
-
g(!0), y(!x);
|
318
|
-
}, _ = () => {
|
319
|
-
g(!0), y(!1);
|
320
|
-
}, S = () => {
|
321
|
-
g(!1), y(!1);
|
322
|
-
};
|
323
|
-
return X(() => {
|
324
|
-
const o = (f) => {
|
325
|
-
j.current && !j.current.contains(f.target) && h(null);
|
326
|
-
};
|
327
|
-
return document.addEventListener("mousedown", o), () => {
|
328
|
-
document.removeEventListener("mousedown", o);
|
329
|
-
};
|
330
|
-
}, []), X(() => (x ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
331
|
-
document.body.style.overflow = "unset";
|
332
|
-
}), [x]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
333
|
-
/* @__PURE__ */ r.jsx(
|
334
|
-
"header",
|
335
|
-
{
|
336
|
-
className: `w-full ${t.headerBg} ${t.shadow} border-b ${t.border} sticky top-0 z-99`,
|
337
|
-
children: /* @__PURE__ */ r.jsxs("div", { className: "w-full max-w-[1240px] px-5 mx-auto flex items-center justify-between h-14 md:h-16", children: [
|
338
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex items-center space-x-4", children: m && /* @__PURE__ */ r.jsx("a", { href: "/", children: /* @__PURE__ */ r.jsx(
|
339
|
-
"img",
|
340
|
-
{
|
341
|
-
src: m,
|
342
|
-
alt: "Logo",
|
343
|
-
className: "h-7 w-auto object-contain md:h-8 cursor-pointer"
|
344
|
-
}
|
345
|
-
) }) }),
|
346
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center space-x-6", ref: j, children: [
|
347
|
-
/* @__PURE__ */ r.jsx("nav", { className: "hidden md:flex items-center space-x-6", children: s == null ? void 0 : s.map((o) => {
|
348
|
-
var f;
|
349
|
-
return /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
350
|
-
/* @__PURE__ */ r.jsx(
|
351
|
-
"button",
|
352
|
-
{
|
353
|
-
onClick: () => o.sub ? O(o.idx) : void 0,
|
354
|
-
className: `${t.navText} ${t.navTextHover} transition-colors duration-200 font-medium flex items-center`,
|
355
|
-
children: o.sub ? /* @__PURE__ */ r.jsx(r.Fragment, { children: o.name }) : /* @__PURE__ */ r.jsx("a", { href: o.path, children: o.name })
|
356
|
-
}
|
357
|
-
),
|
358
|
-
/* @__PURE__ */ r.jsxs(
|
359
|
-
"div",
|
360
|
-
{
|
361
|
-
className: `absolute top-[44px] min-w-[100px] w-auto ${t.dropdownBg} border ${t.dropdownBorder} rounded-lg shadow-lg z-50 transition-all duration-300 ease-in-out transform ${o.idx === (s == null ? void 0 : s.length) ? "right-0" : "left-1/2 transform -translate-x-1/2"} ${u === o.idx ? "opacity-100 translate-y-0 pointer-events-auto" : "opacity-0 -translate-y-2 pointer-events-none"}`,
|
362
|
-
children: [
|
363
|
-
/* @__PURE__ */ r.jsx(
|
364
|
-
"svg",
|
365
|
-
{
|
366
|
-
className: `absolute -top-2 w-4 h-4 ${o.idx === (s == null ? void 0 : s.length) ? "right-4" : "left-1/2 -translate-x-1/2"}`,
|
367
|
-
viewBox: "0 0 24 24",
|
368
|
-
style: {
|
369
|
-
fill: "white",
|
370
|
-
filter: "drop-shadow(0 -1px 0 #e5e7eb)"
|
371
|
-
},
|
372
|
-
children: /* @__PURE__ */ r.jsx("path", { d: "M12 2L2 12h20L12 2z" })
|
373
|
-
}
|
374
|
-
),
|
375
|
-
/* @__PURE__ */ r.jsx("div", { className: "py-2", children: (f = o.sub) == null ? void 0 : f.map((T) => /* @__PURE__ */ r.jsx(
|
376
|
-
"a",
|
377
|
-
{
|
378
|
-
href: T.path,
|
379
|
-
className: `block px-4 py-2 text-sm whitespace-nowrap ${t.submenuText} hover:bg-gray-100 ${t.submenuTextHover} transition-colors duration-200`,
|
380
|
-
onClick: () => h(null),
|
381
|
-
children: T.name
|
382
|
-
},
|
383
|
-
T.idx
|
384
|
-
)) })
|
385
|
-
]
|
386
|
-
}
|
387
|
-
)
|
388
|
-
] }, o.idx);
|
389
|
-
}) }),
|
390
|
-
i && /* @__PURE__ */ r.jsx(
|
391
|
-
"button",
|
392
|
-
{
|
393
|
-
onClick: i.onClick,
|
394
|
-
className: `hidden md:block px-4 py-2 rounded font-medium transition-all duration-200 ${i.className || "bg-primary text-white hover:bg-primary-dark"}`,
|
395
|
-
children: i.text
|
396
|
-
}
|
397
|
-
),
|
398
|
-
/* @__PURE__ */ r.jsx(
|
399
|
-
"button",
|
400
|
-
{
|
401
|
-
className: `md:hidden p-2 rounded-lg ${t.navText} hover:bg-gray-100 transition-colors duration-200`,
|
402
|
-
onClick: P,
|
403
|
-
children: /* @__PURE__ */ r.jsx(
|
404
|
-
"svg",
|
405
|
-
{
|
406
|
-
className: "w-6 h-6",
|
407
|
-
fill: "none",
|
408
|
-
stroke: "currentColor",
|
409
|
-
viewBox: "0 0 24 24",
|
410
|
-
children: /* @__PURE__ */ r.jsx(
|
411
|
-
"path",
|
412
|
-
{
|
413
|
-
strokeLinecap: "round",
|
414
|
-
strokeLinejoin: "round",
|
415
|
-
strokeWidth: 2,
|
416
|
-
d: "M4 6h16M4 12h16M4 18h16"
|
417
|
-
}
|
418
|
-
)
|
419
|
-
}
|
420
|
-
)
|
421
|
-
}
|
422
|
-
)
|
423
|
-
] })
|
424
|
-
] })
|
425
|
-
}
|
426
|
-
),
|
427
|
-
/* @__PURE__ */ r.jsx(
|
428
|
-
"div",
|
429
|
-
{
|
430
|
-
className: `fixed inset-0 ${t.overlayBg} z-50 md:hidden ${x ? `${t.overlayOpacity} backdrop-blur-sm` : "bg-opacity-0 backdrop-blur-none pointer-events-none"} ${N ? "transition-all duration-300 ease-in-out" : ""}`,
|
431
|
-
onClick: _
|
432
|
-
}
|
433
|
-
),
|
434
|
-
/* @__PURE__ */ r.jsx(
|
435
|
-
"div",
|
436
|
-
{
|
437
|
-
className: `fixed top-0 ${n === "left" ? "left-0" : "right-0"} h-full w-4/5 xsm:w-80 ${t.sidebarBg} ${t.sidebarShadow} transform z-50 md:hidden ${x ? "translate-x-0" : n === "left" ? "-translate-x-full" : "translate-x-full"} ${N ? "transition-all duration-300 ease-in-out" : ""}`,
|
438
|
-
children: /* @__PURE__ */ r.jsxs(
|
439
|
-
"div",
|
440
|
-
{
|
441
|
-
className: `flex flex-col h-full bg-gradient-to-b ${t.sidebarGradientFrom} ${t.sidebarGradientTo}`,
|
442
|
-
children: [
|
443
|
-
/* @__PURE__ */ r.jsxs(
|
444
|
-
"div",
|
445
|
-
{
|
446
|
-
className: `flex items-center justify-between p-4 border-b ${t.border} ${t.sidebarBg}/80 backdrop-blur-sm`,
|
447
|
-
children: [
|
448
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center space-x-3", children: [
|
449
|
-
/* @__PURE__ */ r.jsx(
|
450
|
-
"div",
|
451
|
-
{
|
452
|
-
className: `w-2 h-8 bg-gradient-to-b ${t.primary} ${t.primaryDark} rounded-full`
|
453
|
-
}
|
454
|
-
),
|
455
|
-
/* @__PURE__ */ r.jsx(
|
456
|
-
"h2",
|
457
|
-
{
|
458
|
-
className: `text-xl font-bold ${t.sidebarTitleText}`,
|
459
|
-
children: "Menu"
|
460
|
-
}
|
461
|
-
)
|
462
|
-
] }),
|
463
|
-
/* @__PURE__ */ r.jsx(
|
464
|
-
"button",
|
465
|
-
{
|
466
|
-
onClick: _,
|
467
|
-
className: "p-2 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-all duration-200",
|
468
|
-
children: /* @__PURE__ */ r.jsx(
|
469
|
-
"svg",
|
470
|
-
{
|
471
|
-
className: "w-5 h-5",
|
472
|
-
fill: "none",
|
473
|
-
stroke: "currentColor",
|
474
|
-
viewBox: "0 0 24 24",
|
475
|
-
children: /* @__PURE__ */ r.jsx(
|
476
|
-
"path",
|
477
|
-
{
|
478
|
-
strokeLinecap: "round",
|
479
|
-
strokeLinejoin: "round",
|
480
|
-
strokeWidth: 2,
|
481
|
-
d: "M6 18L18 6M6 6l12 12"
|
482
|
-
}
|
483
|
-
)
|
484
|
-
}
|
485
|
-
)
|
486
|
-
}
|
487
|
-
)
|
488
|
-
]
|
489
|
-
}
|
490
|
-
),
|
491
|
-
/* @__PURE__ */ r.jsx("nav", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ r.jsx("ul", { className: "", children: s == null ? void 0 : s.map((o) => /* @__PURE__ */ r.jsx("li", { children: o.sub ? /* @__PURE__ */ r.jsxs(
|
492
|
-
"div",
|
493
|
-
{
|
494
|
-
className: `${t.dropdownBg} ${t.shadow} border-b ${t.border} overflow-hidden`,
|
495
|
-
children: [
|
496
|
-
/* @__PURE__ */ r.jsxs(
|
497
|
-
"button",
|
498
|
-
{
|
499
|
-
onClick: () => A(o.idx),
|
500
|
-
className: `w-full flex items-center justify-between p-4 text-left ${t.sidebarNavText} hover:bg-gray-50 transition-all duration-200 group`,
|
501
|
-
children: [
|
502
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center space-x-3", children: [
|
503
|
-
/* @__PURE__ */ r.jsx(
|
504
|
-
"div",
|
505
|
-
{
|
506
|
-
className: `w-1.5 h-1.5 ${t.accent} rounded-full opacity-60 group-hover:opacity-100 transition-opacity duration-200`
|
507
|
-
}
|
508
|
-
),
|
509
|
-
/* @__PURE__ */ r.jsx(
|
510
|
-
"span",
|
511
|
-
{
|
512
|
-
className: `font-semibold text-gray-800 ${t.sidebarNavTextHover} transition-colors duration-200`,
|
513
|
-
children: o.name
|
514
|
-
}
|
515
|
-
)
|
516
|
-
] }),
|
517
|
-
/* @__PURE__ */ r.jsx(
|
518
|
-
"svg",
|
519
|
-
{
|
520
|
-
className: `shrink-0 w-4 h-4 text-gray-400 transition-all duration-200 ${k === o.idx ? "rotate-180 text-primary" : "group-hover:text-gray-600"}`,
|
521
|
-
fill: "none",
|
522
|
-
stroke: "currentColor",
|
523
|
-
viewBox: "0 0 24 24",
|
524
|
-
children: /* @__PURE__ */ r.jsx(
|
525
|
-
"path",
|
526
|
-
{
|
527
|
-
strokeLinecap: "round",
|
528
|
-
strokeLinejoin: "round",
|
529
|
-
strokeWidth: 2,
|
530
|
-
d: "M19 9l-7 7-7-7"
|
531
|
-
}
|
532
|
-
)
|
533
|
-
}
|
534
|
-
)
|
535
|
-
]
|
536
|
-
}
|
537
|
-
),
|
538
|
-
/* @__PURE__ */ r.jsx(
|
539
|
-
"div",
|
540
|
-
{
|
541
|
-
className: `overflow-hidden transition-all duration-300 ease-in-out ${k === o.idx ? "max-h-96 opacity-100" : "max-h-0 opacity-0"}`,
|
542
|
-
children: /* @__PURE__ */ r.jsx(
|
543
|
-
"div",
|
544
|
-
{
|
545
|
-
className: `${t.submenuBg} border-t ${t.border}`,
|
546
|
-
children: /* @__PURE__ */ r.jsx("ul", { className: "py-2", children: o.sub.map((f) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
547
|
-
"a",
|
548
|
-
{
|
549
|
-
href: f.path,
|
550
|
-
className: `px-6 py-3 text-sm ${t.submenuText} hover:bg-white ${t.submenuTextHover} transition-all duration-200 flex items-center space-x-2 group`,
|
551
|
-
onClick: S,
|
552
|
-
children: [
|
553
|
-
/* @__PURE__ */ r.jsx("div", { className: "w-1 h-1 bg-gray-300 rounded-full group-hover:bg-primary transition-colors duration-200" }),
|
554
|
-
/* @__PURE__ */ r.jsx("span", { children: f.name })
|
555
|
-
]
|
556
|
-
}
|
557
|
-
) }, f.idx)) })
|
558
|
-
}
|
559
|
-
)
|
560
|
-
}
|
561
|
-
)
|
562
|
-
]
|
563
|
-
}
|
564
|
-
) : /* @__PURE__ */ r.jsx(
|
565
|
-
"a",
|
566
|
-
{
|
567
|
-
href: o.path,
|
568
|
-
className: `block p-4 ${t.sidebarNavText} hover:bg-white ${t.sidebarNavTextHover} transition-all duration-200 font-semibold ${t.dropdownBg} ${t.shadow} border-b ${t.border} group`,
|
569
|
-
onClick: S,
|
570
|
-
children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center space-x-3", children: [
|
571
|
-
/* @__PURE__ */ r.jsx(
|
572
|
-
"div",
|
573
|
-
{
|
574
|
-
className: `w-1.5 h-1.5 ${t.accent} rounded-full opacity-60 group-hover:opacity-100 transition-opacity duration-200`
|
575
|
-
}
|
576
|
-
),
|
577
|
-
/* @__PURE__ */ r.jsx(
|
578
|
-
"span",
|
579
|
-
{
|
580
|
-
className: `text-gray-800 ${t.sidebarNavTextHover} transition-colors duration-200`,
|
581
|
-
children: o.name
|
582
|
-
}
|
583
|
-
)
|
584
|
-
] })
|
585
|
-
}
|
586
|
-
) }, o.idx)) }) }),
|
587
|
-
i && /* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 p-4 border-t border-gray-200 bg-white/95 backdrop-blur-sm", children: /* @__PURE__ */ r.jsx(
|
588
|
-
"button",
|
589
|
-
{
|
590
|
-
onClick: i.onClick,
|
591
|
-
className: `w-full px-4 py-3 rounded font-medium transition-all duration-200 ${i.className || "bg-primary text-white hover:bg-primary-dark"}`,
|
592
|
-
children: i.text
|
593
|
-
}
|
594
|
-
) })
|
595
|
-
]
|
596
|
-
}
|
597
|
-
)
|
598
|
-
}
|
599
|
-
)
|
600
|
-
] });
|
601
|
-
}, ie = ({ logo: m, companyInfo: s, colors: i }) => {
|
602
|
-
const n = { ...{
|
603
|
-
footerBg: "bg-gray-900",
|
604
|
-
footerGradientFrom: "from-gray-900",
|
605
|
-
footerGradientTo: "to-gray-800",
|
606
|
-
titleText: "text-white",
|
607
|
-
linkText: "text-gray-300",
|
608
|
-
linkTextHover: "hover:text-white",
|
609
|
-
copyrightText: "text-gray-400",
|
610
|
-
primary: "bg-primary",
|
611
|
-
primaryDark: "bg-primary-dark",
|
612
|
-
accent: "bg-primary",
|
613
|
-
border: "border-gray-700",
|
614
|
-
shadow: "shadow-lg"
|
615
|
-
}, ...i || {} }, u = () => {
|
616
|
-
window.scrollTo({
|
617
|
-
top: 0,
|
618
|
-
behavior: "smooth"
|
619
|
-
});
|
620
|
-
};
|
621
|
-
return /* @__PURE__ */ r.jsxs(
|
622
|
-
"footer",
|
623
|
-
{
|
624
|
-
className: `w-full ${n.footerBg} ${n.shadow} relative`,
|
625
|
-
children: [
|
626
|
-
/* @__PURE__ */ r.jsx("div", { className: "max-w-[1240px] mx-auto px-5 relative", children: /* @__PURE__ */ r.jsx("div", { className: "absolute -top-6 right-5 z-20", children: /* @__PURE__ */ r.jsx(
|
627
|
-
"button",
|
628
|
-
{
|
629
|
-
onClick: u,
|
630
|
-
className: `p-3 rounded-full ${n.linkText} ${n.linkTextHover} transition-all duration-300 hover:scale-110 bg-gray-800/80 backdrop-blur-md border border-gray-600/50 shadow-lg`,
|
631
|
-
"aria-label": "맨 위로 이동",
|
632
|
-
children: /* @__PURE__ */ r.jsx(
|
633
|
-
"svg",
|
634
|
-
{
|
635
|
-
className: "w-5 h-5",
|
636
|
-
fill: "none",
|
637
|
-
stroke: "currentColor",
|
638
|
-
viewBox: "0 0 24 24",
|
639
|
-
children: /* @__PURE__ */ r.jsx(
|
640
|
-
"path",
|
641
|
-
{
|
642
|
-
strokeLinecap: "round",
|
643
|
-
strokeLinejoin: "round",
|
644
|
-
strokeWidth: 2,
|
645
|
-
d: "M5 10l7-7m0 0l7 7m-7-7v18"
|
646
|
-
}
|
647
|
-
)
|
648
|
-
}
|
649
|
-
)
|
650
|
-
}
|
651
|
-
) }) }),
|
652
|
-
/* @__PURE__ */ r.jsxs(
|
653
|
-
"div",
|
654
|
-
{
|
655
|
-
className: `bg-gradient-to-b ${n.footerGradientFrom} ${n.footerGradientTo} relative overflow-hidden`,
|
656
|
-
children: [
|
657
|
-
/* @__PURE__ */ r.jsx(
|
658
|
-
"div",
|
659
|
-
{
|
660
|
-
className: "absolute inset-0 pointer-events-none",
|
661
|
-
style: {
|
662
|
-
background: "radial-gradient(ellipse 600px 300px at center top, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.01) 70%, transparent 85%)"
|
663
|
-
}
|
664
|
-
}
|
665
|
-
),
|
666
|
-
/* @__PURE__ */ r.jsxs("div", { className: "max-w-[1240px] mx-auto px-5 pt-12 pb-4 relative z-10", children: [
|
667
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col lg:flex-row justify-between items-start gap-8 mb-8", children: [
|
668
|
-
/* @__PURE__ */ r.jsxs("div", { className: "flex-1 max-w-md", children: [
|
669
|
-
m && /* @__PURE__ */ r.jsx("div", { className: "mb-4", children: /* @__PURE__ */ r.jsx(
|
670
|
-
"img",
|
671
|
-
{
|
672
|
-
src: m,
|
673
|
-
alt: "Logo",
|
674
|
-
className: "h-12 w-auto object-contain"
|
675
|
-
}
|
676
|
-
) }),
|
677
|
-
s && /* @__PURE__ */ r.jsxs("div", { className: "mb-4 break-all", children: [
|
678
|
-
/* @__PURE__ */ r.jsx("p", { className: `text-sm ${n.linkText} mb-2`, children: [
|
679
|
-
s.name && `회사명: ${s.name}`,
|
680
|
-
s.ceo && `대표자: ${s.ceo}`,
|
681
|
-
s.businessNumber && `사업자등록번호: ${s.businessNumber}`
|
682
|
-
].filter(Boolean).join(" | ") }),
|
683
|
-
/* @__PURE__ */ r.jsx("p", { className: `text-sm ${n.linkText} mb-2`, children: [
|
684
|
-
s.phone && `연락처: ${s.phone}`,
|
685
|
-
s.email && `이메일: ${s.email}`
|
686
|
-
].filter(Boolean).join(" | ") }),
|
687
|
-
s.address && /* @__PURE__ */ r.jsxs("p", { className: `text-sm ${n.linkText} mb-2`, children: [
|
688
|
-
"주소: ",
|
689
|
-
s.address
|
690
|
-
] })
|
691
|
-
] })
|
692
|
-
] }),
|
693
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex-1" })
|
694
|
-
] }),
|
695
|
-
/* @__PURE__ */ r.jsx("div", { className: `border-t ${n.border} pt-4`, children: /* @__PURE__ */ r.jsx("div", { className: "text-center", children: /* @__PURE__ */ r.jsxs(
|
696
|
-
"p",
|
697
|
-
{
|
698
|
-
className: `text-sm ${n.copyrightText} flex flex-col sm:flex-row items-center justify-center space-y-1 sm:space-y-0 sm:space-x-1`,
|
699
|
-
children: [
|
700
|
-
/* @__PURE__ */ r.jsx("span", { children: "© 2025 NextLevel, all rights reserved —" }),
|
701
|
-
/* @__PURE__ */ r.jsxs("span", { className: "flex items-center space-x-1", children: [
|
702
|
-
/* @__PURE__ */ r.jsx("span", { children: "A product by team" }),
|
703
|
-
/* @__PURE__ */ r.jsx(
|
704
|
-
"a",
|
705
|
-
{
|
706
|
-
href: "https://prosite.ai.kr/",
|
707
|
-
target: "_blank",
|
708
|
-
rel: "noopener noreferrer",
|
709
|
-
className: "pl-1 cursor-pointer hover:scale-105 transition-transform duration-300",
|
710
|
-
children: /* @__PURE__ */ r.jsx(
|
711
|
-
"img",
|
712
|
-
{
|
713
|
-
src: "/images/prosite-logo.png",
|
714
|
-
alt: "ProSite",
|
715
|
-
className: "h-4 w-auto object-contain"
|
716
|
-
}
|
717
|
-
)
|
718
|
-
}
|
719
|
-
)
|
720
|
-
] })
|
721
|
-
]
|
722
|
-
}
|
723
|
-
) }) })
|
724
|
-
] })
|
725
|
-
]
|
726
|
-
}
|
727
|
-
)
|
728
|
-
]
|
729
|
-
}
|
730
|
-
);
|
731
|
-
};
|
732
|
-
export {
|
733
|
-
ie as Footer,
|
734
|
-
le as Header
|
735
|
-
};
|
1
|
+
export { default as Header } from './components/Header/Header';
|
2
|
+
export { default as Footer } from './components/Footer/Footer';
|