@edu-tosel/design 1.0.61 → 1.0.62

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.
Files changed (182) hide show
  1. package/asset/svg/Operation.js +1 -1
  2. package/asset/svg/Operation.tsx +3 -3
  3. package/board/design/Board.design.d.ts +1 -1
  4. package/board/design/Board.design.js +5 -5
  5. package/board/design/Header.design.d.ts +1 -1
  6. package/board/design/Header.design.js +6 -6
  7. package/board/template/CanvasBoard.d.ts +1 -1
  8. package/board/template/CanvasBoard.js +3 -3
  9. package/board/template/ManageBoard.d.ts +1 -1
  10. package/board/template/ManageBoard.js +5 -5
  11. package/board/template/PaperBoard.d.ts +1 -1
  12. package/board/template/PaperBoard.js +3 -3
  13. package/card/design/Card.design.d.ts +1 -1
  14. package/card/design/Card.design.js +8 -6
  15. package/card/design/InfoCard.design.d.ts +1 -1
  16. package/card/design/InfoCard.design.js +3 -3
  17. package/card/design/NavCard.design.d.ts +1 -1
  18. package/card/design/NavCard.design.js +3 -3
  19. package/card/design/RollCard.design.js +2 -2
  20. package/card/design/TableCard.design.d.ts +1 -1
  21. package/card/design/TableCard.design.js +7 -7
  22. package/card/index.d.ts +1 -0
  23. package/card/index.js +1 -0
  24. package/card/template/AddCard.d.ts +1 -1
  25. package/card/template/AddCard.js +3 -3
  26. package/card/template/ChartCard.d.ts +1 -1
  27. package/card/template/ChartCard.js +3 -3
  28. package/card/template/ConfirmCard/index.d.ts +9 -0
  29. package/card/template/ConfirmCard/index.js +19 -0
  30. package/card/template/InfoCard/Academy.js +4 -4
  31. package/card/template/InfoCard/Exam.d.ts +1 -1
  32. package/card/template/InfoCard/Exam.js +4 -4
  33. package/card/template/InfoCard/ExamData.js +2 -2
  34. package/card/template/InfoCard/Finance.js +1 -1
  35. package/card/template/InfoCard/Grade.js +2 -2
  36. package/card/template/InfoCard/Item.js +1 -1
  37. package/card/template/InfoCard/PersonalInformation.js +2 -2
  38. package/card/template/InfoCard/Product.js +2 -2
  39. package/card/template/InfoCard/Student.js +2 -2
  40. package/card/template/NavCard.d.ts +3 -3
  41. package/card/template/NavCard.js +14 -14
  42. package/card/template/ProgressCard/Large.d.ts +2 -0
  43. package/card/template/{ProgressCard.js → ProgressCard/Large.js} +6 -6
  44. package/card/template/ProgressCard/Small.d.ts +2 -0
  45. package/card/template/ProgressCard/Small.js +34 -0
  46. package/card/template/ProgressCard/index.d.ts +7 -0
  47. package/card/template/ProgressCard/index.js +7 -0
  48. package/card/template/TableCard.js +4 -3
  49. package/globals.css +4 -3
  50. package/interface/Action.d.ts +7 -14
  51. package/interface/Board.d.ts +9 -10
  52. package/interface/Card.d.ts +13 -7
  53. package/interface/Layout.d.ts +2 -2
  54. package/interface/Modal.d.ts +3 -3
  55. package/interface/Property.d.ts +3 -2
  56. package/interface/Shelf.d.ts +4 -4
  57. package/interface/widget/Carousel.d.ts +2 -2
  58. package/interface/widget/Switch.d.ts +2 -2
  59. package/interface/widget/index.d.ts +1 -1
  60. package/layout/design/DataField.design.d.ts +1 -1
  61. package/layout/design/DataField.design.js +7 -3
  62. package/layout/design/Row.design.d.ts +1 -1
  63. package/layout/design/Row.design.js +5 -5
  64. package/layout/design/Shelf.design.d.ts +1 -1
  65. package/layout/design/Shelf.design.js +2 -2
  66. package/layout/index.d.ts +1 -1
  67. package/layout/index.js +1 -1
  68. package/layout/template/Action.d.ts +10 -1
  69. package/layout/template/DataField.js +5 -2
  70. package/layout/template/Gallery.d.ts +4 -4
  71. package/layout/template/Gallery.js +3 -3
  72. package/layout/template/Promotion.d.ts +1 -1
  73. package/layout/template/Promotion.js +1 -1
  74. package/layout/template/Row.d.ts +2 -2
  75. package/layout/template/Row.js +6 -6
  76. package/layout/template/Shelf.d.ts +1 -1
  77. package/layout/template/Shelf.js +6 -6
  78. package/layout/template/Sign.d.ts +5 -5
  79. package/layout/template/Sign.js +5 -5
  80. package/layout/template/Tab.d.ts +2 -2
  81. package/layout/template/Tab.js +4 -4
  82. package/layout/{widget → template}/dashboard/Header.d.ts +1 -1
  83. package/layout/{widget → template}/dashboard/Header.js +3 -3
  84. package/layout/{widget → template}/dashboard/Layout.d.ts +1 -1
  85. package/layout/{widget → template}/dashboard/Layout.js +5 -5
  86. package/layout/{widget → template}/dashboard/Menu.js +2 -2
  87. package/layout/template/dashboard/Navigation.d.ts +7 -0
  88. package/layout/{widget → template}/dashboard/Navigation.js +5 -1
  89. package/layout/{widget → template}/dashboard/Notification.js +1 -1
  90. package/layout/template/dashboard/index.d.ts +28 -0
  91. package/layout/template/dashboard/index.js +18 -0
  92. package/layout/{widget → template}/dashboard/mypage/Layout.d.ts +1 -1
  93. package/layout/{widget → template}/dashboard/mypage/Layout.js +5 -5
  94. package/layout/{widget → template}/dashboard/mypage/Navigate.js +2 -2
  95. package/layout/{widget → template}/dashboard/mypage/Profile.js +4 -4
  96. package/layout/template/dashboard/style.d.ts +10 -0
  97. package/layout/template/dashboard/style.js +16 -0
  98. package/layout/template/home/Notice.d.ts +2 -2
  99. package/layout/template/home/Notice.js +2 -2
  100. package/layout/template/home/Promotion.d.ts +3 -3
  101. package/layout/template/home/Promotion.js +4 -4
  102. package/layout/template/home/Service.d.ts +1 -1
  103. package/layout/template/home/Service.js +2 -2
  104. package/layout/template/home/layout/Carousel.js +2 -2
  105. package/layout/{widget → template}/sign/WithTitle.js +1 -1
  106. package/modal/design/ConfirmModal.design.d.ts +1 -1
  107. package/modal/design/ConfirmModal.design.js +3 -3
  108. package/modal/design/Modal.design.d.ts +1 -1
  109. package/modal/design/Modal.design.js +3 -6
  110. package/modal/template/Alert.d.ts +1 -1
  111. package/modal/template/Alert.js +3 -3
  112. package/modal/template/Confirm/Alert.js +1 -1
  113. package/modal/template/Confirm/Confirm.js +1 -1
  114. package/modal/template/Confirm/Input.js +1 -1
  115. package/modal/template/Confirm/Tag.d.ts +1 -1
  116. package/modal/template/Confirm/Tag.js +2 -2
  117. package/modal/template/Input.d.ts +1 -1
  118. package/modal/template/Input.js +3 -3
  119. package/modal/template/Postcode.js +1 -1
  120. package/overlay/design/Overlay.design.js +1 -1
  121. package/overlay/template/Manage.js +5 -5
  122. package/package.json +1 -1
  123. package/tailwind.config.ts +1 -0
  124. package/version.txt +1 -1
  125. package/widget/design/Label.design.d.ts +1 -1
  126. package/widget/design/Label.design.js +3 -3
  127. package/widget/index.d.ts +3 -2
  128. package/widget/index.js +3 -2
  129. package/widget/template/CheckBox.d.ts +2 -0
  130. package/widget/{CheckBox.js → template/CheckBox.js} +2 -2
  131. package/widget/template/DatePicker.d.ts +3 -0
  132. package/widget/{DatePicker.js → template/DatePicker.js} +2 -2
  133. package/widget/template/EmailInput.d.ts +2 -0
  134. package/widget/{EmailInput.js → template/EmailInput.js} +4 -4
  135. package/widget/template/Input/Form.d.ts +2 -0
  136. package/widget/template/Input/Form.js +44 -0
  137. package/widget/template/Input/index.d.ts +6 -0
  138. package/widget/template/Input/index.js +34 -0
  139. package/widget/template/Label.d.ts +2 -2
  140. package/widget/template/Label.js +7 -7
  141. package/widget/{Obstacle.d.ts → template/Obstacle.d.ts} +1 -1
  142. package/widget/{Obstacle.js → template/Obstacle.js} +1 -1
  143. package/widget/template/Select/Select.LG.d.ts +1 -1
  144. package/widget/template/Select/Select.LG.js +3 -3
  145. package/widget/template/Select/Select.d.ts +1 -1
  146. package/widget/template/Select/Select.js +3 -3
  147. package/widget/template/Switch/Handle.d.ts +1 -1
  148. package/widget/template/Switch/Handle.js +2 -2
  149. package/widget/template/Switch/Switch.d.ts +1 -1
  150. package/widget/template/Switch/Switch.js +2 -2
  151. package/widget/{Toggle.d.ts → template/Toggle.d.ts} +2 -2
  152. package/widget/{Toggle.js → template/Toggle.js} +3 -3
  153. package/card/template/ProgressCard.d.ts +0 -10
  154. package/layout/template/Dashboard.d.ts +0 -22
  155. package/layout/template/Dashboard.js +0 -13
  156. package/layout/widget/dashboard/Navigation.d.ts +0 -3
  157. package/widget/CheckBox.d.ts +0 -2
  158. package/widget/DatePicker.d.ts +0 -3
  159. package/widget/EmailInput.d.ts +0 -2
  160. package/widget/design/Tag.design.d.ts +0 -0
  161. package/widget/design/Tag.design.js +0 -1
  162. package/widget/template/Input.d.ts +0 -6
  163. package/widget/template/Input.js +0 -68
  164. /package/layout/{widget → template}/dashboard/Menu.d.ts +0 -0
  165. /package/layout/{widget → template}/dashboard/Notification.d.ts +0 -0
  166. /package/layout/{widget → template}/dashboard/buttonClassNames.d.ts +0 -0
  167. /package/layout/{widget → template}/dashboard/buttonClassNames.js +0 -0
  168. /package/layout/{widget → template}/dashboard/mypage/Navigate.d.ts +0 -0
  169. /package/layout/{widget → template}/dashboard/mypage/Profile.d.ts +0 -0
  170. /package/layout/{widget → template}/promotion/Layout.d.ts +0 -0
  171. /package/layout/{widget → template}/promotion/Layout.js +0 -0
  172. /package/layout/{widget → template}/promotion/Thumbnail.d.ts +0 -0
  173. /package/layout/{widget → template}/promotion/Thumbnail.js +0 -0
  174. /package/layout/{widget → template}/sign/Box.d.ts +0 -0
  175. /package/layout/{widget → template}/sign/Box.js +0 -0
  176. /package/layout/{widget → template}/sign/Button.d.ts +0 -0
  177. /package/layout/{widget → template}/sign/Button.js +0 -0
  178. /package/layout/{widget → template}/sign/Check.d.ts +0 -0
  179. /package/layout/{widget → template}/sign/Check.js +0 -0
  180. /package/layout/{widget → template}/sign/Layout.d.ts +0 -0
  181. /package/layout/{widget → template}/sign/Layout.js +0 -0
  182. /package/layout/{widget → template}/sign/WithTitle.d.ts +0 -0
@@ -14,7 +14,7 @@ function Checked({ flag, size, theme, }) {
14
14
  green: "#105652",
15
15
  blue: "#173A8B",
16
16
  };
17
- return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: size ?? "40", height: size ?? "40", viewBox: "0 0 48 48", fill: "none", children: [_jsx("path", { d: "M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z", fill: flag ? color[theme ?? "green"] : "#F0F0F0" }), _jsx("path", { d: "M30.5 18.5L24 30.5L18 24", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })] }));
17
+ return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: size ?? "40", height: size ?? "40", viewBox: "0 0 48 48", fill: "none", children: [_jsx("path", { d: "M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z", fill: flag ? color[theme ?? "green"] : "#F0F0F0" }), _jsx("path", { d: "M30.5 18.5L24 30.5L18 24", stroke: "white", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" })] }));
18
18
  }
19
19
  function RightArrow({ onClick }) {
20
20
  return (_jsxs("svg", { className: cn(container), onClick: onClick, xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", children: [_jsx("path", { d: "M42 24C42 26.3638 41.5344 28.7044 40.6298 30.8883C39.7253 33.0722 38.3994 35.0565 36.7279 36.7279C35.0565 38.3994 33.0722 39.7253 30.8883 40.6298C28.7044 41.5344 26.3638 42 24 42C21.6362 42 19.2956 41.5344 17.1117 40.6298C14.9278 39.7253 12.9435 38.3994 11.2721 36.7279C9.60062 35.0565 8.27475 33.0722 7.37017 30.8883C6.46558 28.7044 6 26.3638 6 24C6 19.2261 7.89642 14.6477 11.2721 11.2721C14.6477 7.89642 19.2261 6 24 6C28.7739 6 33.3523 7.89642 36.7279 11.2721C40.1036 14.6477 42 19.2261 42 24Z", fill: "#105652" }), _jsx("path", { d: "M20 24H28M24 20L28 24L24 28", stroke: "white", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" })] }));
@@ -88,9 +88,9 @@ function Checked({
88
88
  <path
89
89
  d="M30.5 18.5L24 30.5L18 24"
90
90
  stroke="white"
91
- stroke-width="3"
92
- stroke-linecap="round"
93
- stroke-linejoin="round"
91
+ strokeWidth="3"
92
+ strokeLinecap="round"
93
+ strokeLinejoin="round"
94
94
  />
95
95
  </svg>
96
96
  );
@@ -1,2 +1,2 @@
1
1
  import { BoardProps } from "../../interface/Board";
2
- export declare function Board<B>({ children, action, options, debug, buttons, }: BoardProps<B>): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Board<B>({ children, action, option, debug, buttons, }: BoardProps<B>): import("react/jsx-runtime").JSX.Element;
@@ -21,9 +21,9 @@ const heightSize = {
21
21
  full: "min-h-screen h-full",
22
22
  auto: "h-auto",
23
23
  };
24
- export function Board({ children, action, options, debug, buttons, }) {
24
+ export function Board({ children, action, option, debug, buttons, }) {
25
25
  const { shows } = action ?? {};
26
- const { width, height, isRounded, className, noMobile, background, border } = options ?? {};
26
+ const { width, height, isRounded, className, noMobile, background, boundary, } = option ?? {};
27
27
  const container = {
28
28
  positions: "relative",
29
29
  width: widthSize[width ?? "full"],
@@ -34,15 +34,15 @@ export function Board({ children, action, options, debug, buttons, }) {
34
34
  positions: "relative",
35
35
  sizes: `w-full ${heightSize[height ?? "xl"]} overflow-hidden `,
36
36
  background: `${background ?? "bg-white"} dark:bg-black/80`,
37
- border: border && border,
38
37
  styles: "text-black",
39
38
  rounded: `rounded-none ${isRounded ? "xl:rounded-xl" : ""}`,
39
+ boundary,
40
40
  };
41
41
  const button = {
42
42
  positions: "fixed bottom-20 right-4 xl:absolute xl:-bottom-18.5 xl:right-0",
43
43
  };
44
- return (_jsxs("div", { className: cn(container), children: [_jsx("div", { className: cn(body), children: _jsx(Action.Show, { actions: shows, children: _jsx("div", { className: `h-full ${className}`, children: children }) }) }), _jsx("div", { className: cn(button), children: buttons?.map(({ title, onClick, options }) => (_jsx(Label.Button, { title: title, onClick: onClick, options: {
45
- ...options,
44
+ return (_jsxs("div", { className: cn(container), children: [_jsx("div", { className: cn(body), children: _jsx(Action.Show, { actions: shows, children: _jsx("div", { className: `h-full ${className}`, children: children }) }) }), _jsx("div", { className: cn(button), children: buttons?.map(({ title, onClick, option }) => (_jsx(Label.Button, { title: title, onClick: onClick, option: {
45
+ ...option,
46
46
  text: "text-white",
47
47
  background: "bg-crimson-burgundy",
48
48
  } }))) })] }));
@@ -1,2 +1,2 @@
1
1
  import { BoardHeaderProps } from "../../interface/Board";
2
- export default function BoardHeader<B>({ titles, tag, options, }: BoardHeaderProps<B>): import("react/jsx-runtime").JSX.Element;
2
+ export default function BoardHeader<B>({ titles, tag, option, }: BoardHeaderProps<B>): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +1,21 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { cn } from "../../util";
3
3
  import { Input, Select } from "../../widget";
4
- export default function BoardHeader({ titles, tag, options, }) {
4
+ export default function BoardHeader({ titles, tag, option, }) {
5
5
  const { title, icon, titleColor } = titles ?? {};
6
6
  const { selects, inputs } = tag ?? {};
7
- const { colors, titleBorder } = options ?? {};
8
- const { bgColor, textColor } = colors ?? {};
7
+ const { background, text, boundary } = option ?? {};
9
8
  const container = {
10
9
  positions: "fixed top-15 xl:top-0 left-0 z-30 xl:relative flex items-center",
11
10
  paddings: "px-7.5",
12
- styles: `${bgColor ?? "bg-white"} ${textColor ?? "text-black"}`,
11
+ backgrounds: background ?? "bg-white",
12
+ texts: text ?? "text-black",
13
13
  sizes: "w-full h-19",
14
- border: `border-b-2 ${titleBorder ?? "border-green-dark"}`,
14
+ boundary: boundary ?? "border-b-2 border-green-dark",
15
15
  };
16
16
  const block = {
17
17
  displays: "xl:hidden block ",
18
18
  sizes: "w-full h-19",
19
19
  };
20
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [icon && _jsx("img", { src: icon, className: "fill-blue-500" }), _jsx("div", { className: `text-2xl font-pretendard-bold ${titleColor}`, children: title })] }), _jsxs("div", { className: "flex items-center ml-auto gap-4", children: [selects?.map(({ selectOptions, options, state }, index) => (_jsx("div", { className: "flex items-center gap-2", children: _jsx(Select, { options: options, selectOptions: selectOptions, state: state }, title) }, index))), inputs?.map((prop, index) => (_jsx(Input, { ...prop }, index)))] })] }), _jsx("div", { className: cn(block) })] }));
20
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [icon && _jsx("img", { src: icon, className: "fill-blue-500" }), _jsx("div", { className: `text-2xl font-pretendard-bold ${titleColor}`, children: title })] }), _jsxs("div", { className: "flex items-center ml-auto gap-4", children: [selects?.map(({ selectOptions, option, state }, index) => (_jsx("div", { className: "flex items-center gap-2", children: _jsx(Select, { option: option, selectOptions: selectOptions, state: state }, title) }, index))), inputs?.map((prop, index) => (_jsx(Input, { ...prop }, index)))] })] }), _jsx("div", { className: cn(block) })] }));
21
21
  }
@@ -1,2 +1,2 @@
1
1
  import { CanvasBoardProps } from "../../interface/Board";
2
- export default function CanvasBoard<B>({ header, children, action, buttons, options, }: CanvasBoardProps<B>): import("react/jsx-runtime").JSX.Element;
2
+ export default function CanvasBoard<B>({ header, children, action, buttons, option, }: CanvasBoardProps<B>): import("react/jsx-runtime").JSX.Element;
@@ -3,13 +3,13 @@ import { Action } from "../..";
3
3
  import { cn } from "../../util";
4
4
  import { Board } from "../design/Board.design";
5
5
  import BoardHeader from "../design/Header.design";
6
- export default function CanvasBoard({ header, children, action, buttons, options, }) {
6
+ export default function CanvasBoard({ header, children, action, buttons, option, }) {
7
7
  const body = {
8
8
  displays: "flex flex-col lg:flex-row lg:flex-wrap gap-7.5",
9
9
  sizes: "h-full",
10
10
  paddings: `${header ? "pb-55 xl:pb-25" : "pb-36 xl:pb-6"} px-2 xs:px-4 xl:px-7.5 pt-2 xs:pt-4 xl:pt-7.5`,
11
11
  styles: "overflow-y-scroll",
12
- classNames: options?.className,
12
+ classNames: option?.className,
13
13
  };
14
- return (_jsxs(Board, { action: action, buttons: buttons, options: { ...options, className: "", isRounded: true }, children: [header && _jsx(BoardHeader, { ...header }), _jsx(Action.Replace, { actions: action?.replaces, children: _jsx("div", { className: cn(body), children: children }) })] }));
14
+ return (_jsxs(Board, { action: action, buttons: buttons, option: { ...option, className: "", isRounded: true }, children: [header && _jsx(BoardHeader, { ...header }), _jsx(Action.Replace, { actions: action?.replaces, children: _jsx("div", { className: cn(body), children: children }) })] }));
15
15
  }
@@ -1,4 +1,4 @@
1
1
  import { ManageBoardProps } from "../../interface/Board";
2
2
  export default function ManageBoard<B, K extends string, T extends {
3
3
  [p in K]: any;
4
- }>({ header, dataSets, dataField, action, options, buttons, }: ManageBoardProps<B, K, T>): import("react/jsx-runtime").JSX.Element;
4
+ }>({ header, dataSets, dataField, action, option, buttons, }: ManageBoardProps<B, K, T>): import("react/jsx-runtime").JSX.Element;
@@ -5,8 +5,8 @@ import BoardHeader from "../design/Header.design";
5
5
  import { cn, sortByOrder } from "../../util";
6
6
  import { useActionStore } from "../../store";
7
7
  import { useId } from "react";
8
- export default function ManageBoard({ header, dataSets, dataField, action, options, buttons, }) {
9
- const { className, noPadding } = options ?? {};
8
+ export default function ManageBoard({ header, dataSets, dataField, action, option, buttons, }) {
9
+ const { className, noPadding } = option ?? {};
10
10
  const { order } = useActionStore();
11
11
  const id = useId();
12
12
  const orders = order[id] ?? [];
@@ -16,9 +16,9 @@ export default function ManageBoard({ header, dataSets, dataField, action, optio
16
16
  paddings: `${!noPadding ? "pt-7.5 pb-60 px-2 xs:pl-4 xl:pl-7.5 xl:pb-7.5 " : ""} `,
17
17
  styles: "overflow-y-scroll",
18
18
  };
19
- return (_jsxs(Board, { action: action, buttons: buttons, options: {
20
- ...options,
19
+ return (_jsxs(Board, { action: action, buttons: buttons, option: {
20
+ ...option,
21
21
  isRounded: true,
22
- }, children: [header && _jsx(BoardHeader, { ...header }), dataField && _jsx(DataField.Board, { id: id, dataField: dataField }), _jsx("div", { className: cn(container), children: _jsx(Action.Replace, { actions: action?.replaces, children: dataSets.map(({ titles, items, renderItem, interaction }, index) => (_jsxs(Shelf.Wrap, { titles: titles, options: { gap: "x" }, className: className, children: [items &&
22
+ }, children: [header && _jsx(BoardHeader, { ...header }), dataField && _jsx(DataField.Board, { id: id, dataField: dataField }), _jsx("div", { className: cn(container), children: _jsx(Action.Replace, { actions: action?.replaces, children: dataSets.map(({ titles, items, renderItem, interaction }, index) => (_jsxs(Shelf.Wrap, { titles: titles, option: { gap: "x" }, className: className, children: [items &&
23
23
  sortByOrder({ items, orders })?.map((item) => renderItem(item)), interaction] }, id + index))) }) })] }));
24
24
  }
@@ -1,2 +1,2 @@
1
1
  import { PaperBoardProps } from "../../interface/Board";
2
- export default function PaperBoard<B>({ children, debug, options, }: PaperBoardProps<B>): import("react/jsx-runtime").JSX.Element;
2
+ export default function PaperBoard<B>({ children, debug, option, }: PaperBoardProps<B>): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../../util";
3
3
  import { Board } from "../design/Board.design";
4
- export default function PaperBoard({ children, debug, options, }) {
5
- const { className } = options ?? {};
4
+ export default function PaperBoard({ children, debug, option, }) {
5
+ const { className } = option ?? {};
6
6
  const container = {
7
7
  displays: "flex flex-col gap-7.5",
8
8
  };
9
- return (_jsx(Board, { options: { width: "full", height: "full", isRounded: false, className }, debug: debug, children: _jsx("div", { className: cn(container), children: children }) }));
9
+ return (_jsx(Board, { option: { width: "full", height: "full", isRounded: false, className }, debug: debug, children: _jsx("div", { className: cn(container), children: children }) }));
10
10
  }
@@ -1,2 +1,2 @@
1
1
  import { CardProps } from "../../interface/Card";
2
- export default function CardDesign({ header, children, options, debug, }: CardProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function CardDesign({ header, children, option, debug, }: CardProps): import("react/jsx-runtime").JSX.Element;
@@ -7,28 +7,30 @@ const widthSize = {
7
7
  "2xs": "w-53.75",
8
8
  xs: "w-full md:w-60",
9
9
  sm: "w-full md:w-90",
10
- md: "w-full md:w-112.5",
11
- lg: "w-full lg:w-127.5",
10
+ md: "w-full md:w-112.5", // 450px
11
+ lg: "w-full lg:w-127.5", // 510px
12
12
  xl: "w-full lg:w-187.5",
13
13
  "2xl": "w-full lg:w-247.5",
14
14
  full: "w-full",
15
15
  auto: "w-auto",
16
16
  };
17
17
  const heightSize = {
18
+ "4xs": "h-21",
18
19
  "3xs": "h-30",
19
20
  "2xs": "h-40",
20
21
  xs: "h-45",
21
22
  sm: "h-52.5",
22
23
  md: "h-67.5",
23
- lg: "h-67.5",
24
+ lg: "h-112.5",
24
25
  xl: "h-125.5",
25
- "2xl": "",
26
+ "2xl": "h-127.5",
27
+ "3xl": "h-138.5",
26
28
  full: "h-full",
27
29
  auto: "h-auto min-h-80",
28
30
  };
29
- export default function CardDesign({ header, children, options, debug, }) {
31
+ export default function CardDesign({ header, children, option, debug, }) {
30
32
  const { setIsOwn } = useActionStore();
31
- const { className, boundary, rounded, height, width, text, background, onClick, onMouse, overflow, } = options ?? {};
33
+ const { className, boundary, rounded, height, width, text, background, onClick, onMouse, overflow, } = option ?? {};
32
34
  const container = {
33
35
  positions: "relative",
34
36
  sizes: `${widthSize[width ?? "sm"]} ${heightSize[height ?? "xs"]}`,
@@ -1,2 +1,2 @@
1
1
  import { InfoCardProps } from "../../interface/Card";
2
- export declare function InfoCardDesign({ titles: { title, subtitle }, topRight, debug, image, options, children, }: InfoCardProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function InfoCardDesign({ titles: { title, subtitle }, topRight, debug, image, option, children, }: InfoCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../util";
3
3
  import Card from "./Card.design";
4
- export function InfoCardDesign({ titles: { title, subtitle }, topRight, debug, image, options, children, }) {
5
- const { titleBorder, text } = options ?? {};
4
+ export function InfoCardDesign({ titles: { title, subtitle }, topRight, debug, image, option, children, }) {
5
+ const { titleBorder, text } = option ?? {};
6
6
  const container = {
7
7
  displays: "flex flex-col",
8
8
  paddings: "pt-5 px-5",
@@ -20,5 +20,5 @@ export function InfoCardDesign({ titles: { title, subtitle }, topRight, debug, i
20
20
  displays: "flex flex-col-reverse",
21
21
  },
22
22
  };
23
- return (_jsxs(Card, { options: { ...options, className: cn(container) }, debug: debug, children: [_jsxs("div", { className: cn(topBox.container), children: [_jsxs("div", { className: "text-gray-dim ", children: [_jsx("div", { className: cn(topBox.titleText), children: title }), _jsx("div", { className: cn(topBox.subtitleText), children: subtitle ?? "" })] }), topRight] }), image && (_jsx("div", { className: "absolute right-5 top-5 w-22.5 h-22.5", children: _jsx("div", { className: "relative h-full w-full rounded-md overflow-hidden", children: _jsx("img", { className: "bg-cover rounded-md ", src: image }) }) })), children] }));
23
+ return (_jsxs(Card, { option: { ...option, className: cn(container) }, debug: debug, children: [_jsxs("div", { className: cn(topBox.container), children: [_jsxs("div", { className: "text-gray-dim ", children: [_jsx("div", { className: cn(topBox.titleText), children: title }), _jsx("div", { className: cn(topBox.subtitleText), children: subtitle ?? "" })] }), topRight] }), image && (_jsx("div", { className: "absolute right-5 top-5 w-22.5 h-22.5", children: _jsx("div", { className: "relative h-full w-full rounded-md overflow-hidden", children: _jsx("img", { className: "bg-cover rounded-md ", src: image }) }) })), children] }));
24
24
  }
@@ -1,2 +1,2 @@
1
1
  import { NavCardProps } from "../../interface";
2
- export default function NavCardDesign({ titles, options }: NavCardProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function NavCardDesign({ titles, option }: NavCardProps): import("react/jsx-runtime").JSX.Element;
@@ -3,9 +3,9 @@ import { Label } from "../../widget";
3
3
  import { LineBreaks } from "../../text";
4
4
  import { cn } from "../../util";
5
5
  import Card from "./Card.design";
6
- export default function NavCardDesign({ titles, options }) {
6
+ export default function NavCardDesign({ titles, option }) {
7
7
  const { title, subtitle, color, titleColor, subtitleColor } = titles;
8
- const { width, image, buttonInLay } = options ?? {};
8
+ const { width, image, buttonInLay } = option ?? {};
9
9
  const flag = !buttonInLay && width === "xl";
10
10
  const textBox = {
11
11
  container: {
@@ -28,7 +28,7 @@ export default function NavCardDesign({ titles, options }) {
28
28
  positions: image?.position ?? "bottom-0 right-0",
29
29
  sizes: image?.size,
30
30
  };
31
- return (_jsxs(Card, { options: options, children: [_jsxs("div", { className: cn(textBox.container), children: [_jsx("div", { className: cn(textBox.title), children: title }), _jsx(LineBreaks, { className: cn(textBox.subtitle), texts: subtitle ?? "" })] }), buttonInLay && (_jsx(Label.Button, { title: buttonInLay.title, onClick: buttonInLay.onClick, options: {
31
+ return (_jsxs(Card, { option: option, children: [_jsxs("div", { className: cn(textBox.container), children: [_jsx("div", { className: cn(textBox.title), children: title }), _jsx(LineBreaks, { className: cn(textBox.subtitle), texts: subtitle ?? "" })] }), buttonInLay && (_jsx(Label.Button, { title: buttonInLay.title, onClick: buttonInLay.onClick, option: {
32
32
  disabled: buttonInLay.disabled,
33
33
  className: "absolute bottom-7.5 left-7.5",
34
34
  background: buttonInLay?.background,
@@ -22,7 +22,7 @@ export default function RollCardDesign({ titles, state, disabled, isFixed, child
22
22
  sizes: "h-full",
23
23
  styles: isFixed && "hidden",
24
24
  };
25
- return (_jsxs(Card, { options: {
25
+ return (_jsxs(Card, { option: {
26
26
  width: "2xl",
27
27
  height: !isFixed && isOpen ? "xs" : "3xs",
28
28
  background: isDisabled || flag ? "bg-green-dark/10" : "bg-white",
@@ -33,7 +33,7 @@ export default function RollCardDesign({ titles, state, disabled, isFixed, child
33
33
  ? "추가됨"
34
34
  : "수정하기"
35
35
  : "접수중"
36
- : "접수 완료", options: {
36
+ : "접수 완료", option: {
37
37
  background: isDisabled || flag ? "bg-green-dark" : "bg-green-dark/10",
38
38
  text: isDisabled || flag ? "text-white" : "bg-green-dark",
39
39
  } }), _jsx(Action.Replace, { actions: [
@@ -1,2 +1,2 @@
1
1
  import { TableCardProps } from "../../interface";
2
- export default function TableCardDesign<T>({ dataSet, dataField, options, }: TableCardProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ export default function TableCardDesign<T>({ dataSet, dataField, option, }: TableCardProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -4,21 +4,21 @@ import { useActionStore } from "../../store";
4
4
  import { cn, sortByOrder } from "../../util";
5
5
  import Card from "./Card.design";
6
6
  import { DataField, Action, Row } from "../..";
7
- export default function TableCardDesign({ dataSet, dataField, options, }) {
8
- const { width, height, padding, boundary } = options ?? {};
7
+ export default function TableCardDesign({ dataSet, dataField, option, }) {
8
+ const { width, height, padding, boundary } = option ?? {};
9
9
  const { order } = useActionStore();
10
10
  const id = useId();
11
11
  const orders = order[id] ?? [];
12
12
  const container = {
13
- paddings: padding ?? "pt-4 pb-14",
14
- className: options?.className,
13
+ className: option?.className,
14
+ paddings: padding ?? "pb-10",
15
15
  };
16
- return (_jsx(Card, { header: !options?.noHeader && _jsx(DataField.Card, { id: id, dataField: dataField }), options: {
16
+ return (_jsx(Card, { header: !option?.noHeader && _jsx(DataField.Card, { id: id, dataField: dataField }), option: {
17
17
  boundary,
18
18
  className: cn(container),
19
19
  width: width ?? "lg",
20
- height: height ?? "lg",
20
+ height: height ?? "3xl",
21
21
  overflow: "overflow-y-scroll overflow-x-hidden",
22
22
  noPadding: true,
23
- }, children: _jsx(Action.Replace, { actions: dataSet?.replaces, children: sortByOrder({ items: dataSet?.items, orders }).map((item, index) => dataSet.renderItem ? (dataSet.renderItem(item)) : (_jsx(Row.Card, { item: item, onClick: () => dataSet.onClick?.(item), dataField: dataField, height: options?.rowHeight, noHover: options?.noHover, noPadding: options?.noRowPadding }, id + index))) }) }));
23
+ }, children: _jsx(Action.Replace, { actions: dataSet?.replaces, children: sortByOrder({ items: dataSet?.items, orders }).map((item, index) => dataSet.renderItem ? (dataSet.renderItem(item)) : (_jsx(Row.Card, { item: item, onClick: () => dataSet.onClick?.(item), dataField: dataField, height: option?.rowHeight, noHover: option?.noHover, noPadding: option?.noRowPadding }, id + index))) }) }));
24
24
  }
package/card/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as AddCard } from "./template/AddCard";
2
2
  export { default as ChartCard } from "./template/ChartCard";
3
+ export { default as ConfirmCard } from "./template/ConfirmCard";
3
4
  export { default as InfoCard } from "./template/InfoCard";
4
5
  export { default as NavCard } from "./template/NavCard";
5
6
  export { default as ProgressCard } from "./template/ProgressCard";
package/card/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as AddCard } from "./template/AddCard";
2
2
  export { default as ChartCard } from "./template/ChartCard";
3
+ export { default as ConfirmCard } from "./template/ConfirmCard";
3
4
  export { default as InfoCard } from "./template/InfoCard";
4
5
  export { default as NavCard } from "./template/NavCard";
5
6
  export { default as ProgressCard } from "./template/ProgressCard";
@@ -1,2 +1,2 @@
1
1
  import { AddCardProps } from "../../interface";
2
- export default function AddCard({ title, icon, onClick, options, }: AddCardProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function AddCard({ title, icon, onClick, option, }: AddCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../util";
3
3
  import Card from "../design/Card.design";
4
- export default function AddCard({ title, icon, onClick, options, }) {
5
- const { width } = options ?? {};
4
+ export default function AddCard({ title, icon, onClick, option, }) {
5
+ const { width } = option ?? {};
6
6
  const container = {
7
7
  displays: "flex flex-col justify-center items-center gap-2",
8
8
  text: "text-xs",
@@ -13,5 +13,5 @@ export default function AddCard({ title, icon, onClick, options, }) {
13
13
  sizes: "w-9 h-9",
14
14
  styles: "bg-gray-light rounded-full",
15
15
  };
16
- return (_jsxs(Card, { options: { width, className: cn(container), onClick }, children: [icon && (_jsx("div", { className: cn(iconBody), children: _jsx("img", { src: icon }) })), title && _jsx("div", { children: title })] }));
16
+ return (_jsxs(Card, { option: { width, className: cn(container), onClick }, children: [icon && (_jsx("div", { className: cn(iconBody), children: _jsx("img", { src: icon }) })), title && _jsx("div", { children: title })] }));
17
17
  }
@@ -1,2 +1,2 @@
1
1
  import { ChartCardProps } from "../../interface/Card";
2
- export default function ChartCard({ data, xAxis, yAxis, lines, bars, areas, options, average, }: ChartCardProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function ChartCard({ data, xAxis, yAxis, lines, bars, areas, option, average, }: ChartCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Area, Bar, ComposedChart, Legend, Line, ReferenceLine, ResponsiveContainer, Tooltip, XAxis, YAxis, } from "recharts";
3
3
  import Card from "../design/Card.design";
4
- export default function ChartCard({ data, xAxis, yAxis, lines, bars, areas, options, average, }) {
5
- const { width, height } = options ?? {};
6
- return (_jsxs(Card, { options: {
4
+ export default function ChartCard({ data, xAxis, yAxis, lines, bars, areas, option, average, }) {
5
+ const { width, height } = option ?? {};
6
+ return (_jsxs(Card, { option: {
7
7
  className: "pt-4 pr-4",
8
8
  width: width ?? "full",
9
9
  height: height ?? "lg",
@@ -0,0 +1,9 @@
1
+ import { ActionProps, LabelWidget, Titles } from "../../../interface";
2
+ interface ConfirmCardProps {
3
+ titles: Titles;
4
+ action?: Omit<ActionProps, "shows">;
5
+ children?: React.ReactNode;
6
+ buttons: [LabelWidget, LabelWidget];
7
+ }
8
+ export default function ConfirmCard(props: ConfirmCardProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../../util";
3
+ import { LineBreaks, Action, Label } from "../../..";
4
+ import CardDesign from "../../design/Card.design";
5
+ export default function ConfirmCard(props) {
6
+ const { action } = props ?? {};
7
+ return (_jsxs(CardDesign, { option: {
8
+ width: "md",
9
+ height: "lg",
10
+ className: "p-5",
11
+ }, children: [_jsx(Header, { titles: props.titles }), _jsx(Action.Replace, { actions: action?.replaces, children: props.children }), _jsx("div", { className: "absolute bottom-5 left-5 flex justify-between gap-2.5", children: props.buttons.map(({ title, onClick, option }) => (_jsx(Label.Button, { title: title, onClick: onClick, option: { ...option, width: "lg", height: "sm" } }, title))) })] }));
12
+ }
13
+ function Header({ titles }) {
14
+ const titleBox = {
15
+ displays: "flex flex-col items-end",
16
+ sizes: "w-full",
17
+ };
18
+ return (_jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: "text-xl leading-none font-pretendard-bold", children: titles.title }), _jsx("div", { className: "bg-gray-light w-13.75 h-2 mt-3" }), _jsx(LineBreaks, { texts: titles.subtitle, className: "mt-5 text-base leading-none text-end font-pretendard-bold" })] }));
19
+ }
@@ -3,13 +3,13 @@ import { InfoCardDesign } from "../../design/InfoCard.design";
3
3
  import SVG from "../../../asset/SVG";
4
4
  import { Label } from "../../../widget";
5
5
  function Academy({ titles, data, buttons }) {
6
- return (_jsx(InfoCardDesign, { titles: titles, options: {
6
+ return (_jsx(InfoCardDesign, { titles: titles, option: {
7
7
  titleBorder: "border-green-dark",
8
8
  background: "",
9
9
  boundary: "",
10
10
  width: "xs",
11
11
  height: "md",
12
- }, children: _jsxs("div", { className: "mt-2.5 flex flex-col gap-2.5", children: [_jsx("div", { className: "w-full", children: data.address }), _jsx("div", { className: "flex gap-2.5", children: buttons.map(({ title, onClick }, index) => (_jsx(Label.Button, { title: title, onClick: onClick, options: {
12
+ }, children: _jsxs("div", { className: "mt-2.5 flex flex-col gap-2.5", children: [_jsx("div", { className: "w-full", children: data.address }), _jsx("div", { className: "flex gap-2.5", children: buttons.map(({ title, onClick }, index) => (_jsx(Label.Button, { title: title, onClick: onClick, option: {
13
13
  background: !index ? "bg-gray-medium" : "bg-green-dark",
14
14
  text: "text-white",
15
15
  width: "sm",
@@ -17,9 +17,9 @@ function Academy({ titles, data, buttons }) {
17
17
  } }, index))) })] }) }));
18
18
  }
19
19
  function Digital({ image, data }) {
20
- return (_jsx(InfoCardDesign, { options: {
20
+ return (_jsx(InfoCardDesign, { option: {
21
21
  width: "md",
22
- height: "lg",
22
+ height: "md",
23
23
  titleBorder: "border-crimson-burgundy",
24
24
  boundary: "border-2 border-crimson-burgundy",
25
25
  }, titles: {
@@ -12,5 +12,5 @@ interface Data {
12
12
  export interface ExamProps extends Omit<InfoCardProps, "children"> {
13
13
  data: Data;
14
14
  }
15
- export default function Exam({ titles, data, options }: ExamProps): import("react/jsx-runtime").JSX.Element;
15
+ export default function Exam({ titles, data, option }: ExamProps): import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -3,19 +3,19 @@ import { Label } from "../../../widget";
3
3
  import { cn } from "../../../util";
4
4
  import { InfoCardDesign } from "../../design/InfoCard.design";
5
5
  import { label } from "./static/label";
6
- export default function Exam({ titles, data, options }) {
6
+ export default function Exam({ titles, data, option }) {
7
7
  const { button, isPublic, manager, examDate, endDate } = data;
8
- const { onClick, titleBorder } = options ?? {};
8
+ const { onClick, titleBorder } = option ?? {};
9
9
  const container = {
10
10
  positions: "relative",
11
11
  displays: "flex flex-col justify-between mt-2.5",
12
12
  sizes: "h-19.25 w-full",
13
13
  };
14
- return (_jsx(InfoCardDesign, { titles: titles, options: {
14
+ return (_jsx(InfoCardDesign, { titles: titles, option: {
15
15
  titleBorder: titleBorder ?? "border-red-crimson",
16
16
  width: "sm",
17
17
  height: "xs",
18
- }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex gap-4 font-pretendard-bold ", children: [manager, " / ", isPublic ? "공개시험" : "비공개시험"] }), _jsxs("div", { children: [_jsxs("div", { className: "text-xs", children: ["\uC811\uC218\uB9C8\uAC10: ", endDate] }), _jsxs("div", { className: "text-xs", children: ["\uC2DC\uD5D8\uC77C: ", examDate] })] })] }), _jsx(Label.Button, { title: button.title, hoverTitle: button.hoverTitle, onClick: onClick, options: {
18
+ }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex gap-4 font-pretendard-bold ", children: [manager, " / ", isPublic ? "공개시험" : "비공개시험"] }), _jsxs("div", { children: [_jsxs("div", { className: "text-xs", children: ["\uC811\uC218\uB9C8\uAC10: ", endDate] }), _jsxs("div", { className: "text-xs", children: ["\uC2DC\uD5D8\uC77C: ", examDate] })] })] }), _jsx(Label.Button, { title: button.title, hoverTitle: button.hoverTitle, onClick: onClick, option: {
19
19
  width: "sm",
20
20
  height: "xs",
21
21
  className: cn(label),
@@ -22,7 +22,7 @@ function ExamDataREG({ titles, data }) {
22
22
  "text-gray-dim border-t border-dashed border-gray-dim pt-1",
23
23
  ],
24
24
  ];
25
- return (_jsx(InfoCardDesign, { titles: titles, options: {
25
+ return (_jsx(InfoCardDesign, { titles: titles, option: {
26
26
  width: "xs",
27
27
  height: "md",
28
28
  titleBorder: "border-crimson-burgundy",
@@ -43,7 +43,7 @@ function ExamDataOLY({ titles, data }) {
43
43
  displays: "flex flex-col justify-between items-center",
44
44
  sizes: "h-20",
45
45
  };
46
- return (_jsx(InfoCardDesign, { titles: titles, options: { width: "xs", height: "md", titleBorder: "border-green-dark" }, children: _jsx(Action.Replace, { actions: [
46
+ return (_jsx(InfoCardDesign, { titles: titles, option: { width: "xs", height: "md", titleBorder: "border-green-dark" }, children: _jsx(Action.Replace, { actions: [
47
47
  [
48
48
  !data,
49
49
  _jsx(NoData.Sign, { script: "\uC774\uC804 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.", color: "#105652", className: "text-[#105652] mt-12" }),
@@ -10,7 +10,7 @@ export default function Finance({ titles, data, }) {
10
10
  return (_jsx(InfoCardDesign, { titles: {
11
11
  title: titles.title,
12
12
  subtitle: titles.subtitle,
13
- }, options: {
13
+ }, option: {
14
14
  titleBorder: "border-green-dark",
15
15
  width: "2xl",
16
16
  height: "xl",
@@ -15,11 +15,11 @@ export default function Grade({ titles, image, data }) {
15
15
  styles: "bg-white-off text-sm rounded-md",
16
16
  text: data.levelColor,
17
17
  };
18
- return (_jsx(InfoCardDesign, { titles: titles, image: image, options: {
18
+ return (_jsx(InfoCardDesign, { titles: titles, image: image, option: {
19
19
  titleBorder: "border-blue-navy",
20
20
  width: "sm",
21
21
  height: "xs",
22
- }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex items-center gap-5", children: [_jsx("div", { className: cn(levelBox), children: data.levelString }), _jsxs("span", { className: "text-sm", children: [data.position, ", ", data.age, "\uC138"] })] }), _jsxs("div", { className: "absolute bottom-0 left-0 flex items-end gap-8 text-blue-navy", children: [_jsxs("div", { className: "w-20 h-12 flex justify-end items-end", children: [_jsx("div", { className: "leading-none text-4xl font-pretendard-bold", children: data.score }), _jsx("div", { children: "\uC810" })] }), _jsxs("div", { className: "w-14 h-12 flex justify-end items-end", children: [_jsx("div", { className: "leading-none text-4xl font-pretendard-bold", children: data.grade }), _jsx("div", { children: "\uB4F1\uAE09" })] })] })] }), _jsx(Label.Button, { title: "\uC0C1\uC138\uBCF4\uAE30", onClick: () => { }, options: {
22
+ }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex items-center gap-5", children: [_jsx("div", { className: cn(levelBox), children: data.levelString }), _jsxs("span", { className: "text-sm", children: [data.position, ", ", data.age, "\uC138"] })] }), _jsxs("div", { className: "absolute bottom-0 left-0 flex items-end gap-8 text-blue-navy", children: [_jsxs("div", { className: "w-20 h-12 flex justify-end items-end", children: [_jsx("div", { className: "leading-none text-4xl font-pretendard-bold", children: data.score }), _jsx("div", { children: "\uC810" })] }), _jsxs("div", { className: "w-14 h-12 flex justify-end items-end", children: [_jsx("div", { className: "leading-none text-4xl font-pretendard-bold", children: data.grade }), _jsx("div", { children: "\uB4F1\uAE09" })] })] })] }), _jsx(Label.Button, { title: "\uC0C1\uC138\uBCF4\uAE30", onClick: () => { }, option: {
23
23
  width: "sm",
24
24
  height: "xs",
25
25
  text: "text-white hover:text-blue-navy",
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { InfoCardDesign } from "../../design/InfoCard.design";
3
3
  export default function Item({ titles, data }) {
4
4
  const { item } = data;
5
- return (_jsx(InfoCardDesign, { titles: titles, options: {
5
+ return (_jsx(InfoCardDesign, { titles: titles, option: {
6
6
  titleBorder: "border-blue-navy",
7
7
  width: "xs",
8
8
  height: "xs",
@@ -34,13 +34,13 @@ export default function PersonalInformation({ titles, theme = "red", button, dat
34
34
  fonts: "text-xs text-gray-dim",
35
35
  },
36
36
  };
37
- return (_jsx(InfoCardDesign, { titles: titles, topRight: _jsxs("div", { className: "flex items-end gap-2.5", children: [_jsx("div", { className: `text-sm underline leading-none ${color.text[theme]}`, children: "\uC218\uC815\uD558\uAE30" }), _jsxs("svg", { width: "25", height: "25", viewBox: "0 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { clipPath: "url(#clip0_3677_836)", children: [_jsx("path", { d: "M18.3495 25H1.3316C1.14591 25 1 24.8525 1 24.6647V4.61373C1 4.53326 1.03979 4.43938 1.09285 4.38573L5.33737 0.0938841C5.33737 0.0938841 5.48328 0 5.56286 0H18.3362C18.5219 0 18.6678 0.147532 18.6678 0.3353V9.2677C18.6678 9.45547 18.5219 9.603 18.3362 9.603C18.1505 9.603 18.0046 9.45547 18.0046 9.2677V0.670601H5.70877L1.66321 4.76127V24.3294H18.0179V15.8396C18.0179 15.6518 18.1638 15.5043 18.3495 15.5043C18.5352 15.5043 18.6811 15.6518 18.6811 15.8396V24.6647C18.6811 24.8525 18.5352 25 18.3495 25Z", fill: color[theme] }), _jsx("path", { d: "M1.33158 4.9489C1.252 4.9489 1.15915 4.92208 1.09283 4.85502C0.960187 4.7209 0.960187 4.50631 1.09283 4.3856L5.33735 0.0937542C5.46999 -0.040366 5.68222 -0.040366 5.80159 0.0937542C5.93424 0.227874 5.93424 0.442467 5.80159 0.563175L1.57034 4.85502C1.57034 4.85502 1.42443 4.9489 1.33158 4.9489Z", fill: color[theme] }), _jsx("path", { d: "M5.56286 4.96245H1.3316C1.14591 4.94903 1 4.8015 1 4.61373C1 4.42597 1.14591 4.27843 1.3316 4.27843H5.23126V0.3353C5.23126 0.147532 5.37716 0 5.56286 0C5.74856 0 5.89446 0.147532 5.89446 0.3353V4.62715C5.89446 4.72103 5.85467 4.8015 5.80161 4.86856C5.74856 4.93562 5.65571 4.96245 5.56286 4.96245Z", fill: color[theme] }), _jsx("path", { d: "M13.4019 18.0259C13.3091 18.0259 13.2295 17.9857 13.1632 17.932C13.0836 17.8516 13.0571 17.7443 13.0703 17.637L13.4417 15.719C13.4417 15.719 13.4815 15.5983 13.5346 15.5447L20.233 8.77162C20.233 8.77162 20.3789 8.67773 20.4717 8.67773C20.5646 8.67773 20.6442 8.71797 20.7105 8.77162L22.2491 10.3274C22.3818 10.4615 22.3818 10.6761 22.2491 10.7968L15.5507 17.5699C15.5507 17.5699 15.4446 17.6504 15.3783 17.6638L13.4815 18.0393C13.4815 18.0393 13.4417 18.0393 13.4152 18.0393L13.4019 18.0259ZM14.0784 15.9336L13.8264 17.2614L15.1395 17.0066L21.5328 10.542L20.4717 9.46904L14.0784 15.9336Z", fill: color[theme] }), _jsx("path", { d: "M22.7665 10.1129C22.6736 10.1129 22.594 10.0726 22.5277 10.019L20.9891 8.46318C20.8564 8.32906 20.8564 8.11447 20.9891 7.99376L21.891 7.08174C22.0104 6.96103 22.2359 6.96103 22.3553 7.08174L23.8939 8.63754C23.8939 8.63754 23.9868 8.78507 23.9868 8.87895C23.9868 8.97284 23.947 9.05331 23.8939 9.12037L22.992 10.0324C22.992 10.0324 22.846 10.1263 22.7532 10.1263L22.7665 10.1129ZM21.7053 8.22176L22.7665 9.29472L23.2042 8.85213L22.143 7.77917L21.7053 8.22176Z", fill: color[theme] }), _jsx("path", { d: "M18.4689 12.9026C18.3893 12.9026 18.2964 12.8757 18.2301 12.8087C18.0975 12.6745 18.0975 12.46 18.2301 12.3392L21.0023 9.53614C21.1349 9.40202 21.3472 9.40202 21.4665 9.53614C21.5992 9.67026 21.5992 9.88485 21.4665 10.0056L18.6943 12.8087C18.6943 12.8087 18.5484 12.9026 18.4556 12.9026H18.4689Z", fill: color[theme] }), _jsx("path", { d: "M15.2987 17.6504C15.2192 17.6504 15.1263 17.6235 15.06 17.5565L13.5214 16.0007C13.3887 15.8666 13.3887 15.652 13.5214 15.5313C13.654 15.3971 13.8662 15.3971 13.9856 15.5313L15.5242 17.087C15.6569 17.2212 15.6569 17.4358 15.5242 17.5565C15.4579 17.6235 15.3783 17.6504 15.2855 17.6504H15.2987Z", fill: color[theme] }), _jsx("path", { d: "M15.763 8.30244H3.90485C3.71915 8.30244 3.57324 8.1549 3.57324 7.96714C3.57324 7.77937 3.71915 7.63184 3.90485 7.63184H15.763C15.9487 7.63184 16.0946 7.77937 16.0946 7.96714C16.0946 8.1549 15.9487 8.30244 15.763 8.30244Z", fill: color[theme] }), _jsx("path", { d: "M15.763 11.32H3.90485C3.71915 11.32 3.57324 11.1725 3.57324 10.9847C3.57324 10.7969 3.71915 10.6494 3.90485 10.6494H15.763C15.9487 10.6494 16.0946 10.7969 16.0946 10.9847C16.0946 11.1725 15.9487 11.32 15.763 11.32Z", fill: color[theme] }), _jsx("path", { d: "M13.1102 14.3513H3.90485C3.71915 14.3513 3.57324 14.2037 3.57324 14.016C3.57324 13.8282 3.71915 13.6807 3.90485 13.6807H13.1102C13.2958 13.6807 13.4418 13.8282 13.4418 14.016C13.4418 14.2037 13.2958 14.3513 13.1102 14.3513Z", fill: color[theme] }), _jsx("path", { d: "M11.7837 17.3688H3.90485C3.71915 17.3688 3.57324 17.2213 3.57324 17.0335C3.57324 16.8458 3.71915 16.6982 3.90485 16.6982H11.7837C11.9694 16.6982 12.1153 16.8458 12.1153 17.0335C12.1153 17.2213 11.9694 17.3688 11.7837 17.3688Z", fill: color[theme] }), _jsx("path", { d: "M15.763 20.3864H3.90485C3.71915 20.3864 3.57324 20.2389 3.57324 20.0511C3.57324 19.8634 3.71915 19.7158 3.90485 19.7158H15.763C15.9487 19.7158 16.0946 19.8634 16.0946 20.0511C16.0946 20.2389 15.9487 20.3864 15.763 20.3864Z", fill: color[theme] })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_3677_836", children: _jsx("rect", { width: "25", height: "25", fill: "white" }) }) })] })] }), options: {
37
+ return (_jsx(InfoCardDesign, { titles: titles, topRight: _jsxs("div", { className: "flex items-end gap-2.5", children: [_jsx("div", { className: `text-sm underline leading-none ${color.text[theme]}`, children: "\uC218\uC815\uD558\uAE30" }), _jsxs("svg", { width: "25", height: "25", viewBox: "0 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { clipPath: "url(#clip0_3677_836)", children: [_jsx("path", { d: "M18.3495 25H1.3316C1.14591 25 1 24.8525 1 24.6647V4.61373C1 4.53326 1.03979 4.43938 1.09285 4.38573L5.33737 0.0938841C5.33737 0.0938841 5.48328 0 5.56286 0H18.3362C18.5219 0 18.6678 0.147532 18.6678 0.3353V9.2677C18.6678 9.45547 18.5219 9.603 18.3362 9.603C18.1505 9.603 18.0046 9.45547 18.0046 9.2677V0.670601H5.70877L1.66321 4.76127V24.3294H18.0179V15.8396C18.0179 15.6518 18.1638 15.5043 18.3495 15.5043C18.5352 15.5043 18.6811 15.6518 18.6811 15.8396V24.6647C18.6811 24.8525 18.5352 25 18.3495 25Z", fill: color[theme] }), _jsx("path", { d: "M1.33158 4.9489C1.252 4.9489 1.15915 4.92208 1.09283 4.85502C0.960187 4.7209 0.960187 4.50631 1.09283 4.3856L5.33735 0.0937542C5.46999 -0.040366 5.68222 -0.040366 5.80159 0.0937542C5.93424 0.227874 5.93424 0.442467 5.80159 0.563175L1.57034 4.85502C1.57034 4.85502 1.42443 4.9489 1.33158 4.9489Z", fill: color[theme] }), _jsx("path", { d: "M5.56286 4.96245H1.3316C1.14591 4.94903 1 4.8015 1 4.61373C1 4.42597 1.14591 4.27843 1.3316 4.27843H5.23126V0.3353C5.23126 0.147532 5.37716 0 5.56286 0C5.74856 0 5.89446 0.147532 5.89446 0.3353V4.62715C5.89446 4.72103 5.85467 4.8015 5.80161 4.86856C5.74856 4.93562 5.65571 4.96245 5.56286 4.96245Z", fill: color[theme] }), _jsx("path", { d: "M13.4019 18.0259C13.3091 18.0259 13.2295 17.9857 13.1632 17.932C13.0836 17.8516 13.0571 17.7443 13.0703 17.637L13.4417 15.719C13.4417 15.719 13.4815 15.5983 13.5346 15.5447L20.233 8.77162C20.233 8.77162 20.3789 8.67773 20.4717 8.67773C20.5646 8.67773 20.6442 8.71797 20.7105 8.77162L22.2491 10.3274C22.3818 10.4615 22.3818 10.6761 22.2491 10.7968L15.5507 17.5699C15.5507 17.5699 15.4446 17.6504 15.3783 17.6638L13.4815 18.0393C13.4815 18.0393 13.4417 18.0393 13.4152 18.0393L13.4019 18.0259ZM14.0784 15.9336L13.8264 17.2614L15.1395 17.0066L21.5328 10.542L20.4717 9.46904L14.0784 15.9336Z", fill: color[theme] }), _jsx("path", { d: "M22.7665 10.1129C22.6736 10.1129 22.594 10.0726 22.5277 10.019L20.9891 8.46318C20.8564 8.32906 20.8564 8.11447 20.9891 7.99376L21.891 7.08174C22.0104 6.96103 22.2359 6.96103 22.3553 7.08174L23.8939 8.63754C23.8939 8.63754 23.9868 8.78507 23.9868 8.87895C23.9868 8.97284 23.947 9.05331 23.8939 9.12037L22.992 10.0324C22.992 10.0324 22.846 10.1263 22.7532 10.1263L22.7665 10.1129ZM21.7053 8.22176L22.7665 9.29472L23.2042 8.85213L22.143 7.77917L21.7053 8.22176Z", fill: color[theme] }), _jsx("path", { d: "M18.4689 12.9026C18.3893 12.9026 18.2964 12.8757 18.2301 12.8087C18.0975 12.6745 18.0975 12.46 18.2301 12.3392L21.0023 9.53614C21.1349 9.40202 21.3472 9.40202 21.4665 9.53614C21.5992 9.67026 21.5992 9.88485 21.4665 10.0056L18.6943 12.8087C18.6943 12.8087 18.5484 12.9026 18.4556 12.9026H18.4689Z", fill: color[theme] }), _jsx("path", { d: "M15.2987 17.6504C15.2192 17.6504 15.1263 17.6235 15.06 17.5565L13.5214 16.0007C13.3887 15.8666 13.3887 15.652 13.5214 15.5313C13.654 15.3971 13.8662 15.3971 13.9856 15.5313L15.5242 17.087C15.6569 17.2212 15.6569 17.4358 15.5242 17.5565C15.4579 17.6235 15.3783 17.6504 15.2855 17.6504H15.2987Z", fill: color[theme] }), _jsx("path", { d: "M15.763 8.30244H3.90485C3.71915 8.30244 3.57324 8.1549 3.57324 7.96714C3.57324 7.77937 3.71915 7.63184 3.90485 7.63184H15.763C15.9487 7.63184 16.0946 7.77937 16.0946 7.96714C16.0946 8.1549 15.9487 8.30244 15.763 8.30244Z", fill: color[theme] }), _jsx("path", { d: "M15.763 11.32H3.90485C3.71915 11.32 3.57324 11.1725 3.57324 10.9847C3.57324 10.7969 3.71915 10.6494 3.90485 10.6494H15.763C15.9487 10.6494 16.0946 10.7969 16.0946 10.9847C16.0946 11.1725 15.9487 11.32 15.763 11.32Z", fill: color[theme] }), _jsx("path", { d: "M13.1102 14.3513H3.90485C3.71915 14.3513 3.57324 14.2037 3.57324 14.016C3.57324 13.8282 3.71915 13.6807 3.90485 13.6807H13.1102C13.2958 13.6807 13.4418 13.8282 13.4418 14.016C13.4418 14.2037 13.2958 14.3513 13.1102 14.3513Z", fill: color[theme] }), _jsx("path", { d: "M11.7837 17.3688H3.90485C3.71915 17.3688 3.57324 17.2213 3.57324 17.0335C3.57324 16.8458 3.71915 16.6982 3.90485 16.6982H11.7837C11.9694 16.6982 12.1153 16.8458 12.1153 17.0335C12.1153 17.2213 11.9694 17.3688 11.7837 17.3688Z", fill: color[theme] }), _jsx("path", { d: "M15.763 20.3864H3.90485C3.71915 20.3864 3.57324 20.2389 3.57324 20.0511C3.57324 19.8634 3.71915 19.7158 3.90485 19.7158H15.763C15.9487 19.7158 16.0946 19.8634 16.0946 20.0511C16.0946 20.2389 15.9487 20.3864 15.763 20.3864Z", fill: color[theme] })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_3677_836", children: _jsx("rect", { width: "25", height: "25", fill: "white" }) }) })] })] }), option: {
38
38
  titleBorder: color.border[theme],
39
39
  width: "md",
40
40
  height: "md",
41
41
  background: color.background[theme],
42
42
  boundary: `border-3 ${color.border[theme]}`,
43
- }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(body.container), children: [_jsx("div", { className: cn(body.belong), children: data.info }), _jsx("div", { className: cn(body.username), children: data.username }), _jsx("div", { className: cn(body.name), children: data.name }), _jsxs("div", { className: cn(body.subInfo), children: [_jsx("div", { children: data.email }), _jsx("div", { children: data.phone })] })] }), button && (_jsx(Label.Button, { title: button.title, onClick: button.onClick, options: {
43
+ }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(body.container), children: [_jsx("div", { className: cn(body.belong), children: data.info }), _jsx("div", { className: cn(body.username), children: data.username }), _jsx("div", { className: cn(body.name), children: data.name }), _jsxs("div", { className: cn(body.subInfo), children: [_jsx("div", { children: data.email }), _jsx("div", { children: data.phone })] })] }), button && (_jsx(Label.Button, { title: button.title, onClick: button.onClick, option: {
44
44
  width: "md",
45
45
  background: color.background.button[theme],
46
46
  text: "text-white",