@yeongseoksong/framework 1.6.1 → 1.7.0
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 +63 -1
- package/dist/platform/index.d.mts +40 -0
- package/dist/platform/index.mjs +30 -0
- package/dist/ui/index.d.mts +16 -7
- package/dist/ui/index.mjs +140 -143
- package/dist/util/index.d.mts +50 -1
- package/dist/util/index.mjs +68 -0
- package/package.json +14 -33
- package/dist/store/index.cjs +0 -393
- package/dist/store/index.d.ts +0 -237
- package/dist/types/index.cjs +0 -18
- package/dist/types/index.d.ts +0 -105
- package/dist/ui/index.cjs +0 -3141
- package/dist/ui/index.d.ts +0 -1338
- package/dist/util/index.cjs +0 -199
- package/dist/util/index.d.ts +0 -114
package/dist/ui/index.mjs
CHANGED
|
@@ -32,9 +32,8 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
// ui/atom/Logo.tsx
|
|
35
|
-
import Image from "next/image";
|
|
36
35
|
import Link from "next/link";
|
|
37
|
-
import { rem, useProps, useMantineTheme } from "@mantine/core";
|
|
36
|
+
import { Image, rem, useProps, useMantineTheme } from "@mantine/core";
|
|
38
37
|
|
|
39
38
|
// util/env.util.ts
|
|
40
39
|
var _a;
|
|
@@ -43,6 +42,8 @@ var _a2;
|
|
|
43
42
|
var LOGO_SRC = (_a2 = process.env.NEXT_PUBLIC_LOGO_SRC) != null ? _a2 : "/logo.svg";
|
|
44
43
|
var _a3;
|
|
45
44
|
var LOGO_ALT = (_a3 = process.env.NEXT_PUBLIC_LOGO_ALT) != null ? _a3 : "\uB85C\uACE0";
|
|
45
|
+
var _a4;
|
|
46
|
+
var API_BASE_URL = (_a4 = process.env.NEXT_PUBLIC_API_BASE_URL) != null ? _a4 : "";
|
|
46
47
|
|
|
47
48
|
// ui/atom/Logo.tsx
|
|
48
49
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -50,21 +51,7 @@ function Logo(_props) {
|
|
|
50
51
|
const { size } = useProps("Logo", { size: "md" }, _props);
|
|
51
52
|
const theme2 = useMantineTheme();
|
|
52
53
|
const resolved = theme2.other.logoSizes[size];
|
|
53
|
-
return /* @__PURE__ */ jsx(Link, { href: "/", style: { display: "inline-flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(
|
|
54
|
-
Image,
|
|
55
|
-
{
|
|
56
|
-
src: LOGO_SRC,
|
|
57
|
-
alt: LOGO_ALT,
|
|
58
|
-
width: resolved.width,
|
|
59
|
-
height: resolved.height,
|
|
60
|
-
style: {
|
|
61
|
-
width: rem(resolved.width),
|
|
62
|
-
height: "auto",
|
|
63
|
-
objectFit: "contain"
|
|
64
|
-
},
|
|
65
|
-
priority: true
|
|
66
|
-
}
|
|
67
|
-
) });
|
|
54
|
+
return /* @__PURE__ */ jsx(Link, { href: "/", style: { display: "inline-flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(Image, { src: LOGO_SRC, alt: LOGO_ALT, w: rem(resolved.width), h: "auto", fit: "contain", fetchPriority: "high" }) });
|
|
68
55
|
}
|
|
69
56
|
|
|
70
57
|
// ui/atom/Tabs.tsx
|
|
@@ -74,24 +61,24 @@ import { Box, Tabs } from "@mantine/core";
|
|
|
74
61
|
// ui/atom/Container.tsx
|
|
75
62
|
import { Container } from "@mantine/core";
|
|
76
63
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
77
|
-
function SdContainer(
|
|
78
|
-
var _b =
|
|
64
|
+
function SdContainer(_a5) {
|
|
65
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
79
66
|
return /* @__PURE__ */ jsx2(Container, __spreadProps(__spreadValues({ px: { base: "md", sm: "xl" } }, props), { children }));
|
|
80
67
|
}
|
|
81
68
|
|
|
82
69
|
// ui/atom/Tabs.tsx
|
|
83
70
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
84
|
-
function SdPanel(
|
|
85
|
-
var _b =
|
|
71
|
+
function SdPanel(_a5) {
|
|
72
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
86
73
|
return /* @__PURE__ */ jsx3(Tabs.Panel, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx3(SdContainer, { py: "xl", children }) }));
|
|
87
74
|
}
|
|
88
|
-
function SdScrollableList(
|
|
89
|
-
var _b =
|
|
75
|
+
function SdScrollableList(_a5) {
|
|
76
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
90
77
|
return /* @__PURE__ */ jsx3(Box, { style: { overflowX: "auto", width: "100%" }, children: /* @__PURE__ */ jsx3(Tabs.List, __spreadProps(__spreadValues({}, props), { children })) });
|
|
91
78
|
}
|
|
92
79
|
function createTabs(defaults, scrollable = false) {
|
|
93
|
-
function SdTabsRoot(
|
|
94
|
-
var _b =
|
|
80
|
+
function SdTabsRoot(_a5) {
|
|
81
|
+
var _b = _a5, { syncHash, value, onChange } = _b, props = __objRest(_b, ["syncHash", "value", "onChange"]);
|
|
95
82
|
const [hashValue, setHashValue] = useState(null);
|
|
96
83
|
useEffect(() => {
|
|
97
84
|
if (!syncHash) return;
|
|
@@ -186,8 +173,8 @@ function t(text) {
|
|
|
186
173
|
// ui/atom/Title.tsx
|
|
187
174
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
188
175
|
function createTitle(defaults) {
|
|
189
|
-
return function SdTitle2(
|
|
190
|
-
var _b =
|
|
176
|
+
return function SdTitle2(_a5) {
|
|
177
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
191
178
|
const resolved = typeof children === "string" ? t(children) : children;
|
|
192
179
|
return /* @__PURE__ */ jsx4(MantineTitle, __spreadProps(__spreadValues(__spreadValues({}, defaults), props), { children: resolved }));
|
|
193
180
|
};
|
|
@@ -241,8 +228,8 @@ var textStyles = {
|
|
|
241
228
|
// ui/atom/Text.tsx
|
|
242
229
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
243
230
|
function createText(defaults) {
|
|
244
|
-
return function SdText2(
|
|
245
|
-
var _b =
|
|
231
|
+
return function SdText2(_a5) {
|
|
232
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
246
233
|
const resolved = typeof children === "string" ? t(children) : children;
|
|
247
234
|
return /* @__PURE__ */ jsx5(MantineText, __spreadProps(__spreadValues(__spreadValues({}, defaults), props), { children: resolved }));
|
|
248
235
|
};
|
|
@@ -269,8 +256,8 @@ import { Button as MantineButton } from "@mantine/core";
|
|
|
269
256
|
import { IconDownload, IconFileSpreadsheet, IconSend, IconTrash, IconX } from "@tabler/icons-react";
|
|
270
257
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
271
258
|
function createButton(defaults, defaultLabel) {
|
|
272
|
-
return function SdButton2(
|
|
273
|
-
var _b =
|
|
259
|
+
return function SdButton2(_a5) {
|
|
260
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
274
261
|
return /* @__PURE__ */ jsx6(MantineButton, __spreadProps(__spreadValues(__spreadValues({}, defaults), props), { children: children != null ? children : defaultLabel }));
|
|
275
262
|
};
|
|
276
263
|
}
|
|
@@ -332,12 +319,12 @@ function QuoteInner({ lines, name, role }) {
|
|
|
332
319
|
] })
|
|
333
320
|
] });
|
|
334
321
|
}
|
|
335
|
-
function Plain(
|
|
336
|
-
var _b =
|
|
322
|
+
function Plain(_a5) {
|
|
323
|
+
var _b = _a5, { lines, name, role } = _b, boxProps = __objRest(_b, ["lines", "name", "role"]);
|
|
337
324
|
return /* @__PURE__ */ jsx7(Center, { children: /* @__PURE__ */ jsx7(Box2, __spreadProps(__spreadValues({ w: "fit-content" }, boxProps), { children: /* @__PURE__ */ jsx7(QuoteInner, { lines, name, role }) })) });
|
|
338
325
|
}
|
|
339
|
-
function CardQuote(
|
|
340
|
-
var _b =
|
|
326
|
+
function CardQuote(_a5) {
|
|
327
|
+
var _b = _a5, { lines, name, role } = _b, boxProps = __objRest(_b, ["lines", "name", "role"]);
|
|
341
328
|
return /* @__PURE__ */ jsx7(Center, { children: /* @__PURE__ */ jsx7(Card, __spreadProps(__spreadValues({ w: "fit-content" }, boxProps), { children: /* @__PURE__ */ jsx7(QuoteInner, { lines, name, role }) })) });
|
|
342
329
|
}
|
|
343
330
|
var SdQuote = {
|
|
@@ -370,12 +357,12 @@ var base = {
|
|
|
370
357
|
verticalSpacing: "sm",
|
|
371
358
|
horizontalSpacing: "md"
|
|
372
359
|
};
|
|
373
|
-
function SpecTh(
|
|
374
|
-
var _b =
|
|
360
|
+
function SpecTh(_a5) {
|
|
361
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
375
362
|
return /* @__PURE__ */ jsx8(Table.Th, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx8(SdText.Strong, { c: "white", children }) }));
|
|
376
363
|
}
|
|
377
|
-
function SpecTd(
|
|
378
|
-
var _b =
|
|
364
|
+
function SpecTd(_a5) {
|
|
365
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
379
366
|
return /* @__PURE__ */ jsx8(Table.Td, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx8(SdText.Body, { children }) }));
|
|
380
367
|
}
|
|
381
368
|
var Spec = createTable(__spreadProps(__spreadValues({}, base), {
|
|
@@ -416,8 +403,8 @@ var SdModal = createModal({
|
|
|
416
403
|
// ui/atom/NumberIcon.tsx
|
|
417
404
|
import { ThemeIcon } from "@mantine/core";
|
|
418
405
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
419
|
-
function SdNumberIcon(
|
|
420
|
-
var _b =
|
|
406
|
+
function SdNumberIcon(_a5) {
|
|
407
|
+
var _b = _a5, {
|
|
421
408
|
value,
|
|
422
409
|
size = 48,
|
|
423
410
|
radius = "xl",
|
|
@@ -435,8 +422,8 @@ function SdNumberIcon(_a4) {
|
|
|
435
422
|
import { Badge as MantineBadge } from "@mantine/core";
|
|
436
423
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
437
424
|
function createBadge(defaults) {
|
|
438
|
-
return function SdBadge2(
|
|
439
|
-
var _b =
|
|
425
|
+
return function SdBadge2(_a5) {
|
|
426
|
+
var _b = _a5, { children } = _b, props = __objRest(_b, ["children"]);
|
|
440
427
|
return /* @__PURE__ */ jsx11(MantineBadge, __spreadProps(__spreadValues(__spreadValues({}, defaults), props), { children }));
|
|
441
428
|
};
|
|
442
429
|
}
|
|
@@ -492,8 +479,8 @@ function createInput(Component, defaults) {
|
|
|
492
479
|
};
|
|
493
480
|
}
|
|
494
481
|
function createWrappedInput(Component, defaults) {
|
|
495
|
-
return function SdWrappedInput(
|
|
496
|
-
var _b =
|
|
482
|
+
return function SdWrappedInput(_a5) {
|
|
483
|
+
var _b = _a5, {
|
|
497
484
|
label,
|
|
498
485
|
description,
|
|
499
486
|
error,
|
|
@@ -519,8 +506,8 @@ function createWrappedInput(Component, defaults) {
|
|
|
519
506
|
);
|
|
520
507
|
};
|
|
521
508
|
}
|
|
522
|
-
function SdInputRadio(
|
|
523
|
-
var _b =
|
|
509
|
+
function SdInputRadio(_a5) {
|
|
510
|
+
var _b = _a5, { data, orientation = "horizontal" } = _b, props = __objRest(_b, ["data", "orientation"]);
|
|
524
511
|
const Layout = orientation === "vertical" ? Stack2 : Group2;
|
|
525
512
|
return /* @__PURE__ */ jsx12(Radio.Group, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx12(Layout, { gap: "sm", mt: "xs", children: data.map((item) => /* @__PURE__ */ jsx12(Radio, { value: item.value, label: item.label, disabled: item.disabled }, item.value)) }) }));
|
|
526
513
|
}
|
|
@@ -609,20 +596,20 @@ var SdInputTime = SdInput.Time;
|
|
|
609
596
|
// ui/atom/Skeleton.tsx
|
|
610
597
|
import { Box as Box3, Skeleton as MantineSkeleton, Stack as Stack3 } from "@mantine/core";
|
|
611
598
|
import { jsx as jsx13, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
612
|
-
function SkeletonText(
|
|
613
|
-
var _b =
|
|
599
|
+
function SkeletonText(_a5) {
|
|
600
|
+
var _b = _a5, { width = "100%" } = _b, props = __objRest(_b, ["width"]);
|
|
614
601
|
return /* @__PURE__ */ jsx13(MantineSkeleton, __spreadValues({ height: 14, width, radius: "sm" }, props));
|
|
615
602
|
}
|
|
616
|
-
function SkeletonTitle(
|
|
617
|
-
var _b =
|
|
603
|
+
function SkeletonTitle(_a5) {
|
|
604
|
+
var _b = _a5, { width = "60%" } = _b, props = __objRest(_b, ["width"]);
|
|
618
605
|
return /* @__PURE__ */ jsx13(MantineSkeleton, __spreadValues({ height: 20, width, radius: "sm" }, props));
|
|
619
606
|
}
|
|
620
|
-
function SkeletonImage(
|
|
621
|
-
var _b =
|
|
607
|
+
function SkeletonImage(_a5) {
|
|
608
|
+
var _b = _a5, { height = 200 } = _b, props = __objRest(_b, ["height"]);
|
|
622
609
|
return /* @__PURE__ */ jsx13(MantineSkeleton, __spreadValues({ height, radius: "md" }, props));
|
|
623
610
|
}
|
|
624
|
-
function SkeletonAvatar(
|
|
625
|
-
var _b =
|
|
611
|
+
function SkeletonAvatar(_a5) {
|
|
612
|
+
var _b = _a5, { size = 40 } = _b, props = __objRest(_b, ["size"]);
|
|
626
613
|
return /* @__PURE__ */ jsx13(MantineSkeleton, __spreadValues({ height: size, width: size, circle: true }, props));
|
|
627
614
|
}
|
|
628
615
|
function SkeletonCard({ height, lines = 3 }) {
|
|
@@ -676,10 +663,10 @@ function toCssColor(value) {
|
|
|
676
663
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
677
664
|
var HOVER_COLOR = "var(--mantine-color-primary-6)";
|
|
678
665
|
function createLink(defaults, Fallback) {
|
|
679
|
-
return function SdLink2(
|
|
680
|
-
var _b =
|
|
681
|
-
var
|
|
682
|
-
const baseColor = toCssColor((
|
|
666
|
+
return function SdLink2(_a5) {
|
|
667
|
+
var _b = _a5, { children, onMouseEnter, onMouseLeave } = _b, props = __objRest(_b, ["children", "onMouseEnter", "onMouseLeave"]);
|
|
668
|
+
var _a6;
|
|
669
|
+
const baseColor = toCssColor((_a6 = props.c) != null ? _a6 : defaults.c);
|
|
683
670
|
const resolved = typeof children === "string" ? t(children) : children;
|
|
684
671
|
if (!props.href) {
|
|
685
672
|
const _b2 = props, { href: _href, target: _target, rel: _rel } = _b2, textProps = __objRest(_b2, ["href", "target", "rel"]);
|
|
@@ -782,8 +769,8 @@ var SdToastClean = SdToast.Clean;
|
|
|
782
769
|
import { Stack as Stack4 } from "@mantine/core";
|
|
783
770
|
import { jsx as jsx16, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
784
771
|
function createTextBox(titleVariant, defaultGap = "xs", descVariant = "Body", color_ = void 0) {
|
|
785
|
-
return function SdTextBox2(
|
|
786
|
-
var _b =
|
|
772
|
+
return function SdTextBox2(_a5) {
|
|
773
|
+
var _b = _a5, {
|
|
787
774
|
label,
|
|
788
775
|
title,
|
|
789
776
|
description,
|
|
@@ -847,9 +834,9 @@ import { Group as Group3, Stack as Stack6, Timeline as MantineTimeline } from "@
|
|
|
847
834
|
import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
848
835
|
function SdTimeline({ items }) {
|
|
849
836
|
const grouped = items.filter((item) => item.isShow).sort((a, b) => b.year - a.year || b.month - a.month).reduce((acc, item) => {
|
|
850
|
-
var
|
|
837
|
+
var _a5, _b;
|
|
851
838
|
;
|
|
852
|
-
((_b = acc[
|
|
839
|
+
((_b = acc[_a5 = item.year]) != null ? _b : acc[_a5] = []).push(item);
|
|
853
840
|
return acc;
|
|
854
841
|
}, {});
|
|
855
842
|
const years = Object.keys(grouped).map(Number).sort((a, b) => b - a);
|
|
@@ -983,8 +970,8 @@ function AuthorRow({ item }) {
|
|
|
983
970
|
] })
|
|
984
971
|
] });
|
|
985
972
|
}
|
|
986
|
-
function CardTestimonial(
|
|
987
|
-
var _b =
|
|
973
|
+
function CardTestimonial(_a5) {
|
|
974
|
+
var _b = _a5, { item } = _b, boxProps = __objRest(_b, ["item"]);
|
|
988
975
|
return /* @__PURE__ */ jsx20(Card4, __spreadProps(__spreadValues({ h: "100%" }, boxProps), { children: /* @__PURE__ */ jsxs7(Stack8, { gap: "md", h: "100%", children: [
|
|
989
976
|
item.rating && /* @__PURE__ */ jsx20(Rating2, { value: item.rating, readOnly: true, size: "sm", color: "primary" }),
|
|
990
977
|
/* @__PURE__ */ jsxs7(Stack8, { gap: "xs", style: { flex: 1 }, children: [
|
|
@@ -994,8 +981,8 @@ function CardTestimonial(_a4) {
|
|
|
994
981
|
/* @__PURE__ */ jsx20(AuthorRow, { item })
|
|
995
982
|
] }) }));
|
|
996
983
|
}
|
|
997
|
-
function Strip2(
|
|
998
|
-
var _b =
|
|
984
|
+
function Strip2(_a5) {
|
|
985
|
+
var _b = _a5, { item } = _b, boxProps = __objRest(_b, ["item"]);
|
|
999
986
|
return /* @__PURE__ */ jsx20(Box5, __spreadProps(__spreadValues({}, boxProps), { children: /* @__PURE__ */ jsxs7(Stack8, { gap: "md", children: [
|
|
1000
987
|
item.rating && /* @__PURE__ */ jsx20(Rating2, { value: item.rating, readOnly: true, size: "sm", color: "primary" }),
|
|
1001
988
|
/* @__PURE__ */ jsxs7(Group5, { gap: 4, align: "flex-start", children: [
|
|
@@ -1031,9 +1018,9 @@ import {
|
|
|
1031
1018
|
} from "@mantine/core";
|
|
1032
1019
|
import { IconCheck as IconCheck2, IconX as IconX3 } from "@tabler/icons-react";
|
|
1033
1020
|
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1034
|
-
function Default(
|
|
1035
|
-
var _b =
|
|
1036
|
-
var
|
|
1021
|
+
function Default(_a5) {
|
|
1022
|
+
var _b = _a5, { item, onSelect } = _b, cardProps = __objRest(_b, ["item", "onSelect"]);
|
|
1023
|
+
var _a6;
|
|
1037
1024
|
return /* @__PURE__ */ jsx21(Card5, __spreadProps(__spreadValues({ withBorder: true, style: { position: "relative" } }, cardProps), { children: /* @__PURE__ */ jsxs8(Stack9, { gap: "xl", children: [
|
|
1038
1025
|
/* @__PURE__ */ jsxs8(Stack9, { gap: "xs", children: [
|
|
1039
1026
|
/* @__PURE__ */ jsxs8(Group6, { justify: "space-between", align: "flex-start", children: [
|
|
@@ -1063,12 +1050,12 @@ function Default(_a4) {
|
|
|
1063
1050
|
),
|
|
1064
1051
|
/* @__PURE__ */ jsx21(SdText.Body, { fz: "sm", c: f.included ? "slate.7" : "slate.4", children: f.text })
|
|
1065
1052
|
] }, i)) }),
|
|
1066
|
-
/* @__PURE__ */ jsx21(SdButton.Outline, { fullWidth: true, onClick: () => onSelect == null ? void 0 : onSelect(item), children: (
|
|
1053
|
+
/* @__PURE__ */ jsx21(SdButton.Outline, { fullWidth: true, onClick: () => onSelect == null ? void 0 : onSelect(item), children: (_a6 = item.ctaLabel) != null ? _a6 : "\uC2DC\uC791\uD558\uAE30" })
|
|
1067
1054
|
] }) }));
|
|
1068
1055
|
}
|
|
1069
|
-
function Featured(
|
|
1070
|
-
var _b =
|
|
1071
|
-
var
|
|
1056
|
+
function Featured(_a5) {
|
|
1057
|
+
var _b = _a5, { item, onSelect } = _b, cardProps = __objRest(_b, ["item", "onSelect"]);
|
|
1058
|
+
var _a6;
|
|
1072
1059
|
return /* @__PURE__ */ jsx21(Card5, __spreadProps(__spreadValues({ bg: "primary.6", style: { position: "relative" } }, cardProps), { children: /* @__PURE__ */ jsxs8(Stack9, { gap: "xl", children: [
|
|
1073
1060
|
/* @__PURE__ */ jsxs8(Stack9, { gap: "xs", children: [
|
|
1074
1061
|
/* @__PURE__ */ jsxs8(Group6, { justify: "space-between", align: "flex-start", children: [
|
|
@@ -1098,7 +1085,7 @@ function Featured(_a4) {
|
|
|
1098
1085
|
),
|
|
1099
1086
|
/* @__PURE__ */ jsx21(SdText.Body, { fz: "sm", c: f.included ? "white" : "primary.3", children: f.text })
|
|
1100
1087
|
] }, i)) }),
|
|
1101
|
-
/* @__PURE__ */ jsx21(SdButton.White, { fullWidth: true, onClick: () => onSelect == null ? void 0 : onSelect(item), children: (
|
|
1088
|
+
/* @__PURE__ */ jsx21(SdButton.White, { fullWidth: true, onClick: () => onSelect == null ? void 0 : onSelect(item), children: (_a6 = item.ctaLabel) != null ? _a6 : "\uC2DC\uC791\uD558\uAE30" })
|
|
1102
1089
|
] }) }));
|
|
1103
1090
|
}
|
|
1104
1091
|
function Grid2({ items, cols = { base: 1, sm: 2, md: 3 }, onSelect }) {
|
|
@@ -1121,22 +1108,22 @@ var SdPricingCardGrid = SdPricingCard.Grid;
|
|
|
1121
1108
|
// ui/molecule/Faq.tsx
|
|
1122
1109
|
import { Accordion, Box as Box7, Stack as Stack10 } from "@mantine/core";
|
|
1123
1110
|
import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1124
|
-
function Default2(
|
|
1125
|
-
var _b =
|
|
1111
|
+
function Default2(_a5) {
|
|
1112
|
+
var _b = _a5, { items } = _b, boxProps = __objRest(_b, ["items"]);
|
|
1126
1113
|
return /* @__PURE__ */ jsx22(Box7, __spreadProps(__spreadValues({}, boxProps), { children: /* @__PURE__ */ jsx22(Accordion, { variant: "separated", radius: "md", children: items.map((item, i) => /* @__PURE__ */ jsxs9(Accordion.Item, { value: String(i), children: [
|
|
1127
1114
|
/* @__PURE__ */ jsx22(Accordion.Control, { children: /* @__PURE__ */ jsx22(SdText.Strong, { fz: "sm", children: item.question }) }),
|
|
1128
1115
|
/* @__PURE__ */ jsx22(Accordion.Panel, { children: /* @__PURE__ */ jsx22(SdText.Body, { fz: "sm", children: item.answer }) })
|
|
1129
1116
|
] }, i)) }) }));
|
|
1130
1117
|
}
|
|
1131
|
-
function Filled(
|
|
1132
|
-
var _b =
|
|
1118
|
+
function Filled(_a5) {
|
|
1119
|
+
var _b = _a5, { items } = _b, boxProps = __objRest(_b, ["items"]);
|
|
1133
1120
|
return /* @__PURE__ */ jsx22(Box7, __spreadProps(__spreadValues({}, boxProps), { children: /* @__PURE__ */ jsx22(Accordion, { variant: "filled", radius: "md", children: items.map((item, i) => /* @__PURE__ */ jsxs9(Accordion.Item, { value: String(i), children: [
|
|
1134
1121
|
/* @__PURE__ */ jsx22(Accordion.Control, { children: /* @__PURE__ */ jsx22(SdText.Strong, { fz: "sm", children: item.question }) }),
|
|
1135
1122
|
/* @__PURE__ */ jsx22(Accordion.Panel, { children: /* @__PURE__ */ jsx22(SdText.Body, { fz: "sm", children: item.answer }) })
|
|
1136
1123
|
] }, i)) }) }));
|
|
1137
1124
|
}
|
|
1138
|
-
function WithHeader(
|
|
1139
|
-
var _b =
|
|
1125
|
+
function WithHeader(_a5) {
|
|
1126
|
+
var _b = _a5, { label, title, description, items } = _b, boxProps = __objRest(_b, ["label", "title", "description", "items"]);
|
|
1140
1127
|
return /* @__PURE__ */ jsxs9(Stack10, __spreadProps(__spreadValues({ gap: "xl" }, boxProps), { children: [
|
|
1141
1128
|
/* @__PURE__ */ jsxs9(Stack10, { gap: "xs", children: [
|
|
1142
1129
|
label && /* @__PURE__ */ jsx22(SdText.Eyebrow, { children: label }),
|
|
@@ -1161,8 +1148,8 @@ var SdFaqWithHeader = SdFaq.WithHeader;
|
|
|
1161
1148
|
// ui/molecule/Cta.tsx
|
|
1162
1149
|
import { Box as Box8, Center as Center2, Group as Group7, Stack as Stack11 } from "@mantine/core";
|
|
1163
1150
|
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1164
|
-
function Banner(
|
|
1165
|
-
var _b =
|
|
1151
|
+
function Banner(_a5) {
|
|
1152
|
+
var _b = _a5, {
|
|
1166
1153
|
label,
|
|
1167
1154
|
title,
|
|
1168
1155
|
description,
|
|
@@ -1191,8 +1178,8 @@ function Banner(_a4) {
|
|
|
1191
1178
|
] })
|
|
1192
1179
|
] }) }) }));
|
|
1193
1180
|
}
|
|
1194
|
-
function Subtle(
|
|
1195
|
-
var _b =
|
|
1181
|
+
function Subtle(_a5) {
|
|
1182
|
+
var _b = _a5, {
|
|
1196
1183
|
label,
|
|
1197
1184
|
title,
|
|
1198
1185
|
description,
|
|
@@ -1231,8 +1218,8 @@ function Subtle(_a4) {
|
|
|
1231
1218
|
})
|
|
1232
1219
|
);
|
|
1233
1220
|
}
|
|
1234
|
-
function Inline(
|
|
1235
|
-
var _b =
|
|
1221
|
+
function Inline(_a5) {
|
|
1222
|
+
var _b = _a5, {
|
|
1236
1223
|
label,
|
|
1237
1224
|
title,
|
|
1238
1225
|
description,
|
|
@@ -1294,16 +1281,16 @@ import Link3 from "next/link";
|
|
|
1294
1281
|
import { Button, Card as Card6, SimpleGrid as SimpleGrid4, Stack as Stack12 } from "@mantine/core";
|
|
1295
1282
|
import Link2 from "next/link";
|
|
1296
1283
|
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1297
|
-
function SolutionCardItem(
|
|
1298
|
-
var _b =
|
|
1299
|
-
var
|
|
1284
|
+
function SolutionCardItem(_a5) {
|
|
1285
|
+
var _b = _a5, { item, onSelect } = _b, cardProps = __objRest(_b, ["item", "onSelect"]);
|
|
1286
|
+
var _a6, _b2;
|
|
1300
1287
|
return /* @__PURE__ */ jsx24(Card6, __spreadProps(__spreadValues({ withBorder: true, h: "100%", style: { display: "flex", flexDirection: "column" } }, cardProps), { children: /* @__PURE__ */ jsxs11(Stack12, { gap: "md", style: { flex: 1 }, children: [
|
|
1301
1288
|
item.icon,
|
|
1302
1289
|
/* @__PURE__ */ jsx24(SdBadge.Primary, { children: item.category }),
|
|
1303
1290
|
/* @__PURE__ */ jsx24(SdTitle.Card, { children: item.title }),
|
|
1304
1291
|
/* @__PURE__ */ jsx24(SdText.Body, { children: item.description }),
|
|
1305
1292
|
item.href ? /* @__PURE__ */ jsxs11(Button, { variant: "subtle", color: "slate", component: Link2, href: item.href, mt: "auto", children: [
|
|
1306
|
-
(
|
|
1293
|
+
(_a6 = item.ctaLabel) != null ? _a6 : "\uC790\uC138\uD788 \uBCF4\uAE30",
|
|
1307
1294
|
" \u2192"
|
|
1308
1295
|
] }) : /* @__PURE__ */ jsxs11(SdButton.Ghost, { onClick: () => onSelect == null ? void 0 : onSelect(item), mt: "auto", children: [
|
|
1309
1296
|
(_b2 = item.ctaLabel) != null ? _b2 : "\uC790\uC138\uD788 \uBCF4\uAE30",
|
|
@@ -1336,7 +1323,7 @@ function Filtered({ items, allLabel = "\uC804\uCCB4", cols, onSelect }) {
|
|
|
1336
1323
|
}
|
|
1337
1324
|
function List({ items, onSelect }) {
|
|
1338
1325
|
return /* @__PURE__ */ jsx25(Stack13, { gap: 0, children: items.map((item, i) => {
|
|
1339
|
-
var
|
|
1326
|
+
var _a5, _b;
|
|
1340
1327
|
return /* @__PURE__ */ jsxs12("div", { children: [
|
|
1341
1328
|
i > 0 && /* @__PURE__ */ jsx25(Divider2, {}),
|
|
1342
1329
|
/* @__PURE__ */ jsxs12(Group8, { align: "flex-start", py: "lg", gap: "lg", children: [
|
|
@@ -1354,7 +1341,7 @@ function List({ items, onSelect }) {
|
|
|
1354
1341
|
href: item.href,
|
|
1355
1342
|
style: { alignSelf: "flex-start", paddingInline: 0 },
|
|
1356
1343
|
children: [
|
|
1357
|
-
(
|
|
1344
|
+
(_a5 = item.ctaLabel) != null ? _a5 : "\uC790\uC138\uD788 \uBCF4\uAE30",
|
|
1358
1345
|
" \u2192"
|
|
1359
1346
|
]
|
|
1360
1347
|
}
|
|
@@ -1497,15 +1484,15 @@ function MapFrame({ address, height }) {
|
|
|
1497
1484
|
] })
|
|
1498
1485
|
] });
|
|
1499
1486
|
}
|
|
1500
|
-
function Single(
|
|
1501
|
-
var _b =
|
|
1487
|
+
function Single(_a5) {
|
|
1488
|
+
var _b = _a5, { address, height = 400 } = _b, boxProps = __objRest(_b, ["address", "height"]);
|
|
1502
1489
|
if (!address.embbedUrl) return null;
|
|
1503
1490
|
return /* @__PURE__ */ jsx27(Box10, __spreadProps(__spreadValues({}, boxProps), { children: /* @__PURE__ */ jsx27(MapFrame, { address, height }) }));
|
|
1504
1491
|
}
|
|
1505
1492
|
function Tabs2({ addresses, height = 400 }) {
|
|
1506
|
-
var
|
|
1493
|
+
var _a5, _b, _c;
|
|
1507
1494
|
const mapped = addresses.filter((a) => a.embbedUrl);
|
|
1508
|
-
const [active, setActive] = useState3((_b = (
|
|
1495
|
+
const [active, setActive] = useState3((_b = (_a5 = mapped[0]) == null ? void 0 : _a5.label) != null ? _b : "");
|
|
1509
1496
|
if (mapped.length === 0) return null;
|
|
1510
1497
|
if (mapped.length === 1) return /* @__PURE__ */ jsx27(MapFrame, { address: mapped[0], height });
|
|
1511
1498
|
const current = (_c = mapped.find((a) => a.label === active)) != null ? _c : mapped[0];
|
|
@@ -1567,8 +1554,8 @@ function buildTrail(navItems, currentHref) {
|
|
|
1567
1554
|
}
|
|
1568
1555
|
return trail;
|
|
1569
1556
|
}
|
|
1570
|
-
function SdBreadcrumb(
|
|
1571
|
-
var _b =
|
|
1557
|
+
function SdBreadcrumb(_a5) {
|
|
1558
|
+
var _b = _a5, {
|
|
1572
1559
|
navItems: navItemsProp,
|
|
1573
1560
|
currentHref,
|
|
1574
1561
|
homeHref = "/",
|
|
@@ -1579,11 +1566,11 @@ function SdBreadcrumb(_a4) {
|
|
|
1579
1566
|
"homeHref",
|
|
1580
1567
|
"homeLabel"
|
|
1581
1568
|
]);
|
|
1582
|
-
var
|
|
1569
|
+
var _a6;
|
|
1583
1570
|
const navFromContext = useNav();
|
|
1584
1571
|
const navItems = navItemsProp != null ? navItemsProp : navFromContext;
|
|
1585
1572
|
const pathname = usePathname();
|
|
1586
|
-
const trail = buildTrail(navItems, (
|
|
1573
|
+
const trail = buildTrail(navItems, (_a6 = currentHref != null ? currentHref : pathname) != null ? _a6 : "");
|
|
1587
1574
|
if (navItems.length === 0) return;
|
|
1588
1575
|
return /* @__PURE__ */ jsx29(Box11, __spreadProps(__spreadValues({}, boxProps), { children: /* @__PURE__ */ jsxs15(
|
|
1589
1576
|
Breadcrumbs,
|
|
@@ -1621,8 +1608,8 @@ var variantMap = {
|
|
|
1621
1608
|
white: SdButton.White
|
|
1622
1609
|
};
|
|
1623
1610
|
function CtaButton({ cta }) {
|
|
1624
|
-
var
|
|
1625
|
-
const Button3 = variantMap[(
|
|
1611
|
+
var _a5;
|
|
1612
|
+
const Button3 = variantMap[(_a5 = cta.variant) != null ? _a5 : "primary"];
|
|
1626
1613
|
return /* @__PURE__ */ jsx30(Anchor2, { href: cta.href, underline: "never", children: cta.icon ? /* @__PURE__ */ jsx30(Button3, { size: "md", rightSection: /* @__PURE__ */ jsx30(IconArrowNarrowRight, {}), children: cta.label }) : /* @__PURE__ */ jsx30(Button3, { size: "md", children: cta.label }) });
|
|
1627
1614
|
}
|
|
1628
1615
|
function HeroCarousel({ slides, children }) {
|
|
@@ -1711,7 +1698,7 @@ function MobileNav({ opened, close, topItems, childrenOf, loginFlag }) {
|
|
|
1711
1698
|
loginFlag && /* @__PURE__ */ jsx31(Stack16, { gap: "xs", mt: "md", children: /* @__PURE__ */ jsx31(SdButton.Primary, { size: "xs", children: "\uB85C\uADF8\uC778" }) })
|
|
1712
1699
|
] }) });
|
|
1713
1700
|
}
|
|
1714
|
-
function MegaHeader({ navItems, loginFlag }) {
|
|
1701
|
+
function MegaHeader({ navItems, loginFlag, logoSize }) {
|
|
1715
1702
|
const [opened, { toggle, close }] = useDisclosure();
|
|
1716
1703
|
const { topItems, childrenOf, hasAnyChildren } = useNavTree(navItems);
|
|
1717
1704
|
const { hovered, ref: hoverRef } = useHover();
|
|
@@ -1731,7 +1718,7 @@ function MegaHeader({ navItems, loginFlag }) {
|
|
|
1731
1718
|
transition: "box-shadow 0.15s"
|
|
1732
1719
|
},
|
|
1733
1720
|
children: /* @__PURE__ */ jsx31(SdContainer, { children: /* @__PURE__ */ jsxs17(Group10, { justify: "space-between", align: "flex-start", wrap: "nowrap", children: [
|
|
1734
|
-
/* @__PURE__ */ jsx31(Group10, { h: BAR_HEIGHT, align: "center", children: /* @__PURE__ */ jsx31(Logo, {}) }),
|
|
1721
|
+
/* @__PURE__ */ jsx31(Group10, { h: BAR_HEIGHT, align: "center", children: /* @__PURE__ */ jsx31(Logo, { size: logoSize }) }),
|
|
1735
1722
|
/* @__PURE__ */ jsx31(Group10, { gap: "xl", align: "flex-start", wrap: "nowrap", visibleFrom: "sm", children: topItems.map((item) => {
|
|
1736
1723
|
const kids = childrenOf(item.id);
|
|
1737
1724
|
return /* @__PURE__ */ jsxs17(Stack16, { gap: 0, align: "center", children: [
|
|
@@ -1790,12 +1777,12 @@ function MegaHeader({ navItems, loginFlag }) {
|
|
|
1790
1777
|
function renderMenuLeaf(item) {
|
|
1791
1778
|
return item.href ? /* @__PURE__ */ jsx31(Menu.Item, { component: "a", href: item.href, children: item.label }, item.id) : /* @__PURE__ */ jsx31(Menu.Label, { children: item.label }, item.id);
|
|
1792
1779
|
}
|
|
1793
|
-
function SimpleHeader({ navItems, loginFlag }) {
|
|
1780
|
+
function SimpleHeader({ navItems, loginFlag, logoSize }) {
|
|
1794
1781
|
const [opened, { toggle, close }] = useDisclosure();
|
|
1795
1782
|
const { topItems, childrenOf } = useNavTree(navItems);
|
|
1796
1783
|
return /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
1797
1784
|
/* @__PURE__ */ jsx31(Box13, { bg: "var(--mantine-color-body)", children: /* @__PURE__ */ jsx31(SdContainer, { children: /* @__PURE__ */ jsxs17(Group10, { h: BAR_HEIGHT, justify: "space-between", align: "center", wrap: "nowrap", children: [
|
|
1798
|
-
/* @__PURE__ */ jsx31(Logo, {}),
|
|
1785
|
+
/* @__PURE__ */ jsx31(Logo, { size: logoSize }),
|
|
1799
1786
|
/* @__PURE__ */ jsx31(Group10, { gap: "xl", align: "center", wrap: "nowrap", visibleFrom: "sm", children: topItems.map((item) => {
|
|
1800
1787
|
const kids = childrenOf(item.id);
|
|
1801
1788
|
if (kids.length === 0) {
|
|
@@ -1856,12 +1843,12 @@ function SimpleHeader({ navItems, loginFlag }) {
|
|
|
1856
1843
|
)
|
|
1857
1844
|
] });
|
|
1858
1845
|
}
|
|
1859
|
-
function PanelHeader({ navItems, loginFlag }) {
|
|
1846
|
+
function PanelHeader({ navItems, loginFlag, logoSize }) {
|
|
1860
1847
|
const [opened, { toggle, close }] = useDisclosure();
|
|
1861
1848
|
const { topItems, childrenOf } = useNavTree(navItems);
|
|
1862
1849
|
return /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
1863
1850
|
/* @__PURE__ */ jsx31(Box13, { bg: "var(--mantine-color-body)", children: /* @__PURE__ */ jsx31(SdContainer, { children: /* @__PURE__ */ jsxs17(Group10, { h: BAR_HEIGHT, justify: "space-between", align: "center", wrap: "nowrap", children: [
|
|
1864
|
-
/* @__PURE__ */ jsx31(Logo, {}),
|
|
1851
|
+
/* @__PURE__ */ jsx31(Logo, { size: logoSize }),
|
|
1865
1852
|
/* @__PURE__ */ jsx31(Group10, { gap: "xl", align: "center", wrap: "nowrap", visibleFrom: "sm", children: topItems.map((item) => {
|
|
1866
1853
|
const kids = childrenOf(item.id);
|
|
1867
1854
|
if (kids.length === 0) {
|
|
@@ -1959,8 +1946,8 @@ var SOCIAL_ICONS = {
|
|
|
1959
1946
|
};
|
|
1960
1947
|
function FooterSocials({ items }) {
|
|
1961
1948
|
return /* @__PURE__ */ jsx32(Group11, { gap: 0, wrap: "nowrap", children: items.map((item) => {
|
|
1962
|
-
var
|
|
1963
|
-
const Icon = (
|
|
1949
|
+
var _a5, _b;
|
|
1950
|
+
const Icon = (_a5 = SOCIAL_ICONS[item.platform]) != null ? _a5 : IconWorld;
|
|
1964
1951
|
return /* @__PURE__ */ jsx32(
|
|
1965
1952
|
ActionIcon,
|
|
1966
1953
|
{
|
|
@@ -1995,11 +1982,11 @@ function FooterCompanyInfo({ company }) {
|
|
|
1995
1982
|
/* @__PURE__ */ jsx32(InfoCell, { label: "Email", children: /* @__PURE__ */ jsx32(SdLink.Sub, { href: `mailto:${company.email}`, children: company.email }) })
|
|
1996
1983
|
] });
|
|
1997
1984
|
}
|
|
1998
|
-
function SdFooter({ company, navItems, policyLinks, description }) {
|
|
1985
|
+
function SdFooter({ company, navItems, policyLinks, description, logoSize = "sm" }) {
|
|
1999
1986
|
const visibleNav = filterAndSort(navItems);
|
|
2000
1987
|
const visiblePolicy = filterAndSort(policyLinks);
|
|
2001
1988
|
return /* @__PURE__ */ jsx32(Box14, { component: "footer", children: /* @__PURE__ */ jsx32(SdContainer, { py: "lg", children: /* @__PURE__ */ jsxs18(Stack17, { children: [
|
|
2002
|
-
/* @__PURE__ */ jsx32(Logo, { size:
|
|
1989
|
+
/* @__PURE__ */ jsx32(Logo, { size: logoSize }),
|
|
2003
1990
|
description && /* @__PURE__ */ jsx32(SdText.Sub, { children: description }),
|
|
2004
1991
|
/* @__PURE__ */ jsxs18(Flex, { direction: { base: "column", md: "row" }, gap: 48, align: "flex-start", children: [
|
|
2005
1992
|
/* @__PURE__ */ jsx32(Box14, { flex: { base: "0 0 auto", md: "1 1 0" }, w: { base: "100%", md: "auto" }, children: /* @__PURE__ */ jsx32(FooterCompanyInfo, { company }) }),
|
|
@@ -2028,8 +2015,8 @@ function SdFooter({ company, navItems, policyLinks, description }) {
|
|
|
2028
2015
|
// ui/organism/FeatureSection.tsx
|
|
2029
2016
|
import { Stack as Stack18 } from "@mantine/core";
|
|
2030
2017
|
import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2031
|
-
function SdFeatureSection(
|
|
2032
|
-
var _b =
|
|
2018
|
+
function SdFeatureSection(_a5) {
|
|
2019
|
+
var _b = _a5, {
|
|
2033
2020
|
label,
|
|
2034
2021
|
title,
|
|
2035
2022
|
description,
|
|
@@ -2063,8 +2050,8 @@ function SdFeatureSection(_a4) {
|
|
|
2063
2050
|
// ui/organism/TimelineSection.tsx
|
|
2064
2051
|
import { Center as Center3, Stack as Stack19 } from "@mantine/core";
|
|
2065
2052
|
import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2066
|
-
function SdTimelineSection(
|
|
2067
|
-
var _b =
|
|
2053
|
+
function SdTimelineSection(_a5) {
|
|
2054
|
+
var _b = _a5, {
|
|
2068
2055
|
label,
|
|
2069
2056
|
title,
|
|
2070
2057
|
description,
|
|
@@ -2086,8 +2073,8 @@ function SdTimelineSection(_a4) {
|
|
|
2086
2073
|
// ui/organism/StepsSection.tsx
|
|
2087
2074
|
import { Stack as Stack20 } from "@mantine/core";
|
|
2088
2075
|
import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2089
|
-
function SdStepsSection(
|
|
2090
|
-
var _b =
|
|
2076
|
+
function SdStepsSection(_a5) {
|
|
2077
|
+
var _b = _a5, {
|
|
2091
2078
|
label,
|
|
2092
2079
|
title,
|
|
2093
2080
|
description,
|
|
@@ -2212,11 +2199,11 @@ function LoginForm({
|
|
|
2212
2199
|
children
|
|
2213
2200
|
}) {
|
|
2214
2201
|
function handleSubmit(event) {
|
|
2215
|
-
var
|
|
2202
|
+
var _a5, _b;
|
|
2216
2203
|
event.preventDefault();
|
|
2217
2204
|
const data = new FormData(event.currentTarget);
|
|
2218
2205
|
onSubmit == null ? void 0 : onSubmit({
|
|
2219
|
-
email: String((
|
|
2206
|
+
email: String((_a5 = data.get("email")) != null ? _a5 : ""),
|
|
2220
2207
|
password: String((_b = data.get("password")) != null ? _b : ""),
|
|
2221
2208
|
remember: data.get("remember") === "on"
|
|
2222
2209
|
});
|
|
@@ -2260,7 +2247,7 @@ function LoginForm({
|
|
|
2260
2247
|
socials && socials.length > 0 && /* @__PURE__ */ jsxs23(Fragment6, { children: [
|
|
2261
2248
|
/* @__PURE__ */ jsx37(Divider4, { label: "\uB610\uB294", labelPosition: "center" }),
|
|
2262
2249
|
/* @__PURE__ */ jsx37(Stack22, { gap: "xs", children: socials.map((social) => {
|
|
2263
|
-
var
|
|
2250
|
+
var _a5;
|
|
2264
2251
|
const { Icon, label } = SOCIAL_META[social.provider];
|
|
2265
2252
|
return /* @__PURE__ */ jsx37(
|
|
2266
2253
|
SdButton.Outline,
|
|
@@ -2270,7 +2257,7 @@ function LoginForm({
|
|
|
2270
2257
|
type: "button",
|
|
2271
2258
|
onClick: social.onClick,
|
|
2272
2259
|
leftSection: /* @__PURE__ */ jsx37(Icon, { size: 16 }),
|
|
2273
|
-
children: (
|
|
2260
|
+
children: (_a5 = social.label) != null ? _a5 : label
|
|
2274
2261
|
},
|
|
2275
2262
|
social.provider
|
|
2276
2263
|
);
|
|
@@ -2283,40 +2270,48 @@ function LoginForm({
|
|
|
2283
2270
|
children
|
|
2284
2271
|
] }) });
|
|
2285
2272
|
}
|
|
2286
|
-
function FormHeader({
|
|
2273
|
+
function FormHeader({
|
|
2274
|
+
title,
|
|
2275
|
+
description,
|
|
2276
|
+
logoSize = "sm"
|
|
2277
|
+
}) {
|
|
2287
2278
|
return /* @__PURE__ */ jsxs23(Stack22, { gap: "lg", children: [
|
|
2288
|
-
/* @__PURE__ */ jsx37(Logo, { size:
|
|
2279
|
+
/* @__PURE__ */ jsx37(Logo, { size: logoSize }),
|
|
2289
2280
|
/* @__PURE__ */ jsx37(SdTextBox.Card, { title, description: description != null ? description : "" })
|
|
2290
2281
|
] });
|
|
2291
2282
|
}
|
|
2292
|
-
function Card7(
|
|
2293
|
-
var _b =
|
|
2283
|
+
function Card7(_a5) {
|
|
2284
|
+
var _b = _a5, {
|
|
2294
2285
|
title = "\uB85C\uADF8\uC778",
|
|
2295
2286
|
description = "%c \uC11C\uBE44\uC2A4\uB97C \uC774\uC6A9\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD574 \uC8FC\uC138\uC694.",
|
|
2296
|
-
mih = "100svh"
|
|
2287
|
+
mih = "100svh",
|
|
2288
|
+
logoSize
|
|
2297
2289
|
} = _b, formProps = __objRest(_b, [
|
|
2298
2290
|
"title",
|
|
2299
2291
|
"description",
|
|
2300
|
-
"mih"
|
|
2292
|
+
"mih",
|
|
2293
|
+
"logoSize"
|
|
2301
2294
|
]);
|
|
2302
2295
|
return /* @__PURE__ */ jsx37(Center5, { mih, bg: "slate.0", p: "md", children: /* @__PURE__ */ jsx37(Paper, { w: "100%", maw: 420, p: { base: "lg", sm: "xl" }, radius: "lg", withBorder: true, shadow: "sm", children: /* @__PURE__ */ jsxs23(Stack22, { gap: "xl", children: [
|
|
2303
|
-
/* @__PURE__ */ jsx37(FormHeader, { title, description }),
|
|
2296
|
+
/* @__PURE__ */ jsx37(FormHeader, { title, description, logoSize }),
|
|
2304
2297
|
/* @__PURE__ */ jsx37(LoginForm, __spreadValues({}, formProps))
|
|
2305
2298
|
] }) }) });
|
|
2306
2299
|
}
|
|
2307
|
-
function Split(
|
|
2308
|
-
var _b =
|
|
2300
|
+
function Split(_a5) {
|
|
2301
|
+
var _b = _a5, {
|
|
2309
2302
|
title = "\uB85C\uADF8\uC778",
|
|
2310
2303
|
description = "\uACC4\uC815 \uC815\uBCF4\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694.",
|
|
2311
2304
|
brandTitle = "%c",
|
|
2312
2305
|
brandDescription = "\uD558\uB098\uC758 \uACC4\uC815\uC73C\uB85C \uBAA8\uB4E0 \uC11C\uBE44\uC2A4\uB97C \uC774\uC6A9\uD558\uC138\uC694.",
|
|
2313
|
-
mih = "100svh"
|
|
2306
|
+
mih = "100svh",
|
|
2307
|
+
logoSize
|
|
2314
2308
|
} = _b, formProps = __objRest(_b, [
|
|
2315
2309
|
"title",
|
|
2316
2310
|
"description",
|
|
2317
2311
|
"brandTitle",
|
|
2318
2312
|
"brandDescription",
|
|
2319
|
-
"mih"
|
|
2313
|
+
"mih",
|
|
2314
|
+
"logoSize"
|
|
2320
2315
|
]);
|
|
2321
2316
|
return /* @__PURE__ */ jsxs23(SimpleGrid7, { cols: { base: 1, md: 2 }, spacing: 0, mih, children: [
|
|
2322
2317
|
/* @__PURE__ */ jsxs23(
|
|
@@ -2342,7 +2337,7 @@ function Split(_a4) {
|
|
|
2342
2337
|
}
|
|
2343
2338
|
),
|
|
2344
2339
|
/* @__PURE__ */ jsx37(Center5, { p: { base: "md", sm: "xl" }, bg: "white", children: /* @__PURE__ */ jsxs23(Stack22, { gap: "xl", w: "100%", maw: 400, children: [
|
|
2345
|
-
/* @__PURE__ */ jsx37(FormHeader, { title, description }),
|
|
2340
|
+
/* @__PURE__ */ jsx37(FormHeader, { title, description, logoSize }),
|
|
2346
2341
|
/* @__PURE__ */ jsx37(LoginForm, __spreadValues({}, formProps))
|
|
2347
2342
|
] }) })
|
|
2348
2343
|
] });
|
|
@@ -2416,13 +2411,15 @@ function MainLayout({
|
|
|
2416
2411
|
navItems,
|
|
2417
2412
|
companyInfo,
|
|
2418
2413
|
loginFlag,
|
|
2419
|
-
headerVariant = "mega"
|
|
2414
|
+
headerVariant = "mega",
|
|
2415
|
+
headerLogoSize,
|
|
2416
|
+
footerLogoSize
|
|
2420
2417
|
}) {
|
|
2421
2418
|
const Header = headers[headerVariant];
|
|
2422
2419
|
return /* @__PURE__ */ jsxs25(AppShell, { header: { height: 60 }, children: [
|
|
2423
|
-
/* @__PURE__ */ jsx39(AppShell.Header, { children: /* @__PURE__ */ jsx39(Header, { navItems, loginFlag }) }),
|
|
2420
|
+
/* @__PURE__ */ jsx39(AppShell.Header, { children: /* @__PURE__ */ jsx39(Header, { navItems, loginFlag, logoSize: headerLogoSize }) }),
|
|
2424
2421
|
/* @__PURE__ */ jsx39(AppShell.Main, { children }),
|
|
2425
|
-
/* @__PURE__ */ jsx39(SdFooter, { company: companyInfo, navItems })
|
|
2422
|
+
/* @__PURE__ */ jsx39(SdFooter, { company: companyInfo, navItems, logoSize: footerLogoSize })
|
|
2426
2423
|
] });
|
|
2427
2424
|
}
|
|
2428
2425
|
|
|
@@ -2765,11 +2762,11 @@ var theme = createTheme({
|
|
|
2765
2762
|
},
|
|
2766
2763
|
other: {
|
|
2767
2764
|
logoSizes: {
|
|
2768
|
-
xs: { width: 72
|
|
2769
|
-
sm: { width: 96
|
|
2770
|
-
md: { width: 120
|
|
2771
|
-
lg: { width: 160
|
|
2772
|
-
xl: { width: 200
|
|
2765
|
+
xs: { width: 72 },
|
|
2766
|
+
sm: { width: 96 },
|
|
2767
|
+
md: { width: 120 },
|
|
2768
|
+
lg: { width: 160 },
|
|
2769
|
+
xl: { width: 200 }
|
|
2773
2770
|
},
|
|
2774
2771
|
surfaceSubtle: "#f8fafc",
|
|
2775
2772
|
surfaceDark: "#0f172a",
|