@edu-tosel/design 1.0.77 → 1.0.78

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,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { widthSizes } from "../../../asset/sizes";
2
3
  import SVG from "../../../asset/SVG";
3
4
  import { cn } from "../../../util";
4
5
  import CardDesign from "../../design/Card.design";
@@ -31,12 +32,9 @@ export default function ProgressCardLG({ titles, checks, displays, theme, }) {
31
32
  positions: "absolute top-12 right-12",
32
33
  displays: "flex flex-col items-end gap-y-3",
33
34
  };
34
- const occupied = [
35
- checks.map((value) => !!value).length,
36
- displays.length,
37
- ].join("/");
35
+ const occupied = Math.round((checks.filter((value) => !!value).length / displays.length) * 100);
38
36
  return (_jsxs(CardDesign, { option: {
39
37
  width: "2xl",
40
38
  height: "2xs",
41
- }, children: [_jsx("div", { className: cn(progressBox), children: displays.map(({ title }, index) => (_jsxs("div", { className: cn(stepBox(checks[index])), children: [_jsx("div", { children: title }), _jsx(SVG.Operation.Checked, { flag: checks[index], size: 25, theme: theme })] }, title))) }), _jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: `text-xl leading-none font-pretendard-bold ${text[theme ?? "green"]}`, children: titles.title }), _jsx("div", { className: "text-base leading-none", children: titles.subtitle })] }), _jsx("div", { className: "absolute bottom-0 left-0 bg-gray-light w-full h-2.5", children: _jsx("div", { className: `h-full w-${occupied} ${bg[theme ?? "green"]}` }) })] }));
39
+ }, children: [_jsx("div", { className: cn(progressBox), children: displays.map(({ title }, index) => (_jsxs("div", { className: cn(stepBox(checks[index])), children: [_jsx("div", { children: title }), _jsx(SVG.Operation.Checked, { flag: checks[index], size: 25, theme: theme })] }, title))) }), _jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: `text-xl leading-none font-pretendard-bold ${text[theme ?? "green"]}`, children: titles.title }), _jsx("div", { className: "text-base leading-none", children: titles.subtitle })] }), _jsx("div", { className: "absolute bottom-0 left-0 bg-gray-light w-full h-2.5", children: _jsx("div", { className: `h-full ${widthSizes[occupied]} ${bg[theme ?? "green"]}` }) })] }));
42
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
@@ -56,9 +56,10 @@ export default {
56
56
  "red-crimson": "#760023",
57
57
  "red-velvet": "#AC647A",
58
58
  "green-dark": "#105652",
59
- "green-light": "#DFE6E5",
59
+ "green-light": "#DFE5E4",
60
60
  "blue-sky": "#44C5F3",
61
61
  "blue-navy": "#173A8B",
62
+ "blue-navy-light": "#E1E4EB",
62
63
  "blue-pastel": "#CED6E6",
63
64
  "violet-light": "#9979F6",
64
65
  "gray-light": "#F0F0F0",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.77
1
+ 1.0.78