@edu-tosel/design 1.0.76 → 1.0.77
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ProgressCardProps } from "../../../interface";
|
|
2
|
-
export default function ProgressCardSmall({ titles, displays, checks, theme, }: ProgressCardProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function ProgressCardSmall({ titles, displays, checks, nowFocus, theme, }: ProgressCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,7 +10,7 @@ const text = {
|
|
|
10
10
|
green: "text-green-dark",
|
|
11
11
|
blue: "text-blue-navy",
|
|
12
12
|
};
|
|
13
|
-
export default function ProgressCardSmall({ titles, displays, checks, theme = "green", }) {
|
|
13
|
+
export default function ProgressCardSmall({ titles, displays, checks, nowFocus, theme = "green", }) {
|
|
14
14
|
const progressBox = {
|
|
15
15
|
positions: "absolute top-2.5 left-2.5",
|
|
16
16
|
displays: "flex",
|
|
@@ -24,11 +24,14 @@ export default function ProgressCardSmall({ titles, displays, checks, theme = "g
|
|
|
24
24
|
texts: flag ? "text-gray-dark" : "text-gray-medium",
|
|
25
25
|
});
|
|
26
26
|
const titleBox = {
|
|
27
|
-
positions: "absolute top-
|
|
27
|
+
positions: "absolute top-2.5 right-2.5",
|
|
28
|
+
sizes: "max-w-32.5 w-full h-16",
|
|
28
29
|
displays: "flex flex-col items-end gap-y-3",
|
|
30
|
+
backgrounds: nowFocus === true ? bgLight[theme ?? "green"] : "bg-transparent",
|
|
31
|
+
boundaries: "rounded-[10px] pt-2 pr-3.5",
|
|
29
32
|
};
|
|
30
33
|
return (_jsxs(CardDesign, { option: {
|
|
31
34
|
width: "md",
|
|
32
35
|
height: "5xs",
|
|
33
|
-
}, children: [_jsx("div", { className: cn(progressBox), children: displays.map(({ title, subtitle }, index) => (_jsxs("div", { className: cn(stepBox(
|
|
36
|
+
}, children: [_jsx("div", { className: cn(progressBox), children: displays.map(({ title, subtitle }, index) => (_jsxs("div", { className: cn(stepBox(index === nowFocus)), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "leading-none text-[12px] font-pretendard-bold", children: title }), _jsx(SVG.Operation.Checked, { flag: checks[index], size: 25, theme: "green" })] }), _jsx("div", { className: `text-[12px] ${text[theme]}`, children: subtitle })] }, title))) }), _jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: `text-[20px] leading-none font-pretendard-bold ${text[theme]}`, children: titles.title }), _jsx("div", { className: `text-[12px] leading-none ${text[theme]}`, children: titles.subtitle })] })] }));
|
|
34
37
|
}
|
package/interface/Card.d.ts
CHANGED
package/package.json
CHANGED
package/tailwind.config.ts
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.77
|