@edu-tosel/design 1.0.345 → 1.0.347
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/layout/template/home/Shortcut.js +9 -12
- package/package.json +1 -1
- package/version.txt +1 -1
|
@@ -10,10 +10,7 @@ export default function ShortcutBanner({ shortcuts, }) {
|
|
|
10
10
|
displays: "flex flex-col justify-start justify-start xs:justify-center xs:items-center",
|
|
11
11
|
spacings: "pt-10 pb-15",
|
|
12
12
|
};
|
|
13
|
-
return (
|
|
14
|
-
[true, "스크롤"],
|
|
15
|
-
[false, "그리드"],
|
|
16
|
-
] }) }), !isExpanded ? (_jsx(ScrollMode, { shortcuts: shortcuts })) : (_jsx(GridMode, { shortcuts: shortcuts }))] }));
|
|
13
|
+
return (_jsx("div", { className: cn(container), children: !isExpanded ? (_jsx(ScrollMode, { shortcuts: shortcuts })) : (_jsx(GridMode, { shortcuts: shortcuts })) }));
|
|
17
14
|
}
|
|
18
15
|
function ScrollMode({ shortcuts, }) {
|
|
19
16
|
const scrollWrapper = {
|
|
@@ -37,13 +34,13 @@ function ScrollMode({ shortcuts, }) {
|
|
|
37
34
|
};
|
|
38
35
|
const buttonSet = {
|
|
39
36
|
displays: "group flex flex-col justify-center items-center",
|
|
40
|
-
sizes: "w-
|
|
37
|
+
sizes: "w-18",
|
|
41
38
|
spacings: "gap-2",
|
|
42
39
|
};
|
|
43
40
|
const tagBox = {
|
|
44
41
|
displays: "flex justify-center items-center",
|
|
45
42
|
sizes: "w-full h-6.25 ",
|
|
46
|
-
fonts: "text-xs md:text-sm font-pretendard-var font-
|
|
43
|
+
fonts: "text-xs md:text-sm font-pretendard-var font-bold text-gray-dark group-hover:text-green-dark",
|
|
47
44
|
animation: "duration-100",
|
|
48
45
|
};
|
|
49
46
|
const iconContainer = {
|
|
@@ -52,7 +49,7 @@ function ScrollMode({ shortcuts, }) {
|
|
|
52
49
|
animation: "duration-100",
|
|
53
50
|
hoveraction: "group-hover:shadow-icon-hover group-hover:scale-103",
|
|
54
51
|
};
|
|
55
|
-
return (_jsx("div", { className: cn(scrollWrapper), children:
|
|
52
|
+
return (_jsx("div", { className: cn(scrollWrapper), children: _jsx("div", { className: cn(buttonWrapper), children: shortcuts.map((shortcut) => (_jsxs("button", { onClick: shortcut.onClick, className: cn(buttonSet), children: [_jsx("div", { className: cn(iconContainer, shortcut.background ?? "bg-gray-100"), children: _jsx("img", { src: shortcut.icon, alt: shortcut.title }) }), _jsx("div", { className: cn(tagBox), children: shortcut.title })] }, shortcut.title))) }) }));
|
|
56
53
|
}
|
|
57
54
|
function GridMode({ shortcuts, }) {
|
|
58
55
|
const container = {
|
|
@@ -73,20 +70,20 @@ function GridMode({ shortcuts, }) {
|
|
|
73
70
|
};
|
|
74
71
|
const buttonSet = {
|
|
75
72
|
displays: "group flex flex-col justify-center items-center",
|
|
76
|
-
sizes: "w-
|
|
73
|
+
sizes: "w-20",
|
|
77
74
|
spacings: "gap-2",
|
|
78
75
|
};
|
|
79
76
|
const tagBox = {
|
|
80
77
|
displays: "flex justify-center items-center",
|
|
81
|
-
sizes: "w-full h-
|
|
82
|
-
fonts: "text-
|
|
78
|
+
sizes: "w-full min-w-fit h-7 ",
|
|
79
|
+
fonts: "text-sm md:text-base font-pretendard-var font-medium text-gray-dark group-hover:text-green-dark",
|
|
83
80
|
animation: "duration-100",
|
|
84
81
|
};
|
|
85
82
|
const iconContainer = {
|
|
86
|
-
sizes: "size-
|
|
83
|
+
sizes: "size-16 xs:size-18 rounded-lg overflow-hidden",
|
|
87
84
|
shadows: "shadow-none",
|
|
88
85
|
animation: "duration-100",
|
|
89
|
-
hoveraction: "group-hover:
|
|
86
|
+
hoveraction: "group-hover:scale-103",
|
|
90
87
|
};
|
|
91
88
|
return (_jsx("div", { className: cn(container), children: _jsx("div", { className: cn(gridWrapper), children: shortcuts.map((shortcut) => (_jsxs("button", { onClick: shortcut.onClick, className: cn(buttonSet), children: [_jsx("div", { className: cn(iconContainer, shortcut.background ?? "bg-gray-100"), children: _jsx("img", { src: shortcut.icon, alt: shortcut.title }) }), _jsx("div", { className: cn(tagBox), children: shortcut.title })] }, shortcut.title))) }) }));
|
|
92
89
|
}
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.347
|