@edu-tosel/design 1.0.60 → 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 (192) 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 +11 -17
  51. package/interface/Board.d.ts +13 -14
  52. package/interface/Card.d.ts +13 -7
  53. package/interface/Color.d.ts +3 -0
  54. package/interface/Color.js +7 -0
  55. package/interface/Layout.d.ts +6 -5
  56. package/interface/Modal.d.ts +5 -4
  57. package/interface/Overlay.d.ts +3 -3
  58. package/interface/Property.d.ts +5 -4
  59. package/interface/Shelf.d.ts +4 -4
  60. package/interface/index.d.ts +2 -2
  61. package/interface/index.js +2 -2
  62. package/interface/widget/Carousel.d.ts +2 -2
  63. package/interface/widget/Switch.d.ts +2 -2
  64. package/interface/widget/index.d.ts +55 -0
  65. package/interface/widget/index.js +7 -0
  66. package/layout/design/DataField.design.d.ts +1 -1
  67. package/layout/design/DataField.design.js +7 -3
  68. package/layout/design/Row.design.d.ts +1 -1
  69. package/layout/design/Row.design.js +10 -9
  70. package/layout/design/Shelf.design.d.ts +1 -1
  71. package/layout/design/Shelf.design.js +2 -2
  72. package/layout/index.d.ts +1 -1
  73. package/layout/index.js +1 -1
  74. package/layout/template/Action.d.ts +10 -1
  75. package/layout/template/DataField.js +5 -2
  76. package/layout/template/Gallery.d.ts +4 -4
  77. package/layout/template/Gallery.js +3 -3
  78. package/layout/template/Promotion.d.ts +1 -1
  79. package/layout/template/Promotion.js +1 -1
  80. package/layout/template/Row.d.ts +3 -3
  81. package/layout/template/Row.js +8 -8
  82. package/layout/template/Shelf.d.ts +1 -1
  83. package/layout/template/Shelf.js +6 -6
  84. package/layout/template/Sign.d.ts +5 -5
  85. package/layout/template/Sign.js +5 -5
  86. package/layout/template/Tab.d.ts +2 -2
  87. package/layout/template/Tab.js +4 -4
  88. package/layout/{widget → template}/dashboard/Header.d.ts +1 -1
  89. package/layout/{widget → template}/dashboard/Header.js +3 -3
  90. package/layout/{widget → template}/dashboard/Layout.d.ts +1 -1
  91. package/layout/{widget → template}/dashboard/Layout.js +5 -5
  92. package/layout/{widget → template}/dashboard/Menu.js +2 -2
  93. package/layout/template/dashboard/Navigation.d.ts +7 -0
  94. package/layout/{widget → template}/dashboard/Navigation.js +5 -1
  95. package/layout/{widget → template}/dashboard/Notification.js +1 -1
  96. package/layout/template/dashboard/index.d.ts +28 -0
  97. package/layout/template/dashboard/index.js +18 -0
  98. package/layout/{widget → template}/dashboard/mypage/Layout.d.ts +1 -1
  99. package/layout/{widget → template}/dashboard/mypage/Layout.js +5 -5
  100. package/layout/{widget → template}/dashboard/mypage/Navigate.js +2 -2
  101. package/layout/{widget → template}/dashboard/mypage/Profile.js +4 -4
  102. package/layout/template/dashboard/style.d.ts +10 -0
  103. package/layout/template/dashboard/style.js +16 -0
  104. package/layout/template/home/Notice.d.ts +2 -2
  105. package/layout/template/home/Notice.js +2 -2
  106. package/layout/template/home/Promotion.d.ts +3 -3
  107. package/layout/template/home/Promotion.js +4 -4
  108. package/layout/template/home/Service.d.ts +1 -1
  109. package/layout/template/home/Service.js +2 -2
  110. package/layout/template/home/layout/Carousel.js +2 -2
  111. package/layout/{widget → template}/sign/WithTitle.d.ts +2 -2
  112. package/layout/{widget → template}/sign/WithTitle.js +1 -1
  113. package/modal/design/ConfirmModal.design.d.ts +1 -1
  114. package/modal/design/ConfirmModal.design.js +3 -3
  115. package/modal/design/Modal.design.d.ts +1 -1
  116. package/modal/design/Modal.design.js +3 -6
  117. package/modal/template/Alert.d.ts +1 -1
  118. package/modal/template/Alert.js +3 -3
  119. package/modal/template/Confirm/Alert.js +1 -1
  120. package/modal/template/Confirm/Confirm.js +1 -1
  121. package/modal/template/Confirm/Input.d.ts +2 -2
  122. package/modal/template/Confirm/Input.js +1 -1
  123. package/modal/template/Confirm/Tag.d.ts +1 -1
  124. package/modal/template/Confirm/Tag.js +2 -2
  125. package/modal/template/Input.d.ts +1 -1
  126. package/modal/template/Input.js +3 -3
  127. package/modal/template/Postcode.js +1 -1
  128. package/overlay/design/Overlay.design.js +1 -1
  129. package/overlay/template/Manage.js +5 -5
  130. package/package.json +1 -1
  131. package/tailwind.config.ts +1 -0
  132. package/version.txt +1 -1
  133. package/widget/design/Label.design.d.ts +2 -2
  134. package/widget/design/Label.design.js +3 -3
  135. package/widget/index.d.ts +3 -2
  136. package/widget/index.js +3 -2
  137. package/widget/template/CheckBox.d.ts +2 -0
  138. package/widget/{CheckBox.js → template/CheckBox.js} +2 -2
  139. package/widget/template/DatePicker.d.ts +3 -0
  140. package/widget/{DatePicker.js → template/DatePicker.js} +2 -2
  141. package/widget/template/EmailInput.d.ts +2 -0
  142. package/widget/{EmailInput.js → template/EmailInput.js} +4 -4
  143. package/widget/template/Input/Form.d.ts +2 -0
  144. package/widget/template/Input/Form.js +44 -0
  145. package/widget/template/Input/index.d.ts +6 -0
  146. package/widget/template/Input/index.js +34 -0
  147. package/widget/template/Label.d.ts +3 -3
  148. package/widget/template/Label.js +7 -7
  149. package/widget/{Obstacle.d.ts → template/Obstacle.d.ts} +1 -1
  150. package/widget/{Obstacle.js → template/Obstacle.js} +1 -1
  151. package/widget/template/Select/Select.LG.d.ts +2 -2
  152. package/widget/template/Select/Select.LG.js +3 -3
  153. package/widget/template/Select/Select.d.ts +2 -2
  154. package/widget/template/Select/Select.js +3 -3
  155. package/widget/template/Switch/Handle.d.ts +1 -1
  156. package/widget/template/Switch/Handle.js +2 -2
  157. package/widget/template/Switch/Switch.d.ts +2 -2
  158. package/widget/template/Switch/Switch.js +2 -2
  159. package/widget/template/Toggle.d.ts +6 -0
  160. package/widget/{Toggle.js → template/Toggle.js} +3 -3
  161. package/card/template/ProgressCard.d.ts +0 -10
  162. package/interface/HTMLElement.d.ts +0 -56
  163. package/interface/HTMLElement.js +0 -7
  164. package/layout/template/Dashboard.d.ts +0 -22
  165. package/layout/template/Dashboard.js +0 -13
  166. package/layout/widget/dashboard/Navigation.d.ts +0 -3
  167. package/widget/CheckBox.d.ts +0 -2
  168. package/widget/DatePicker.d.ts +0 -3
  169. package/widget/EmailInput.d.ts +0 -2
  170. package/widget/Toggle.d.ts +0 -6
  171. package/widget/design/Tag.design.d.ts +0 -0
  172. package/widget/design/Tag.design.js +0 -1
  173. package/widget/template/Input.d.ts +0 -6
  174. package/widget/template/Input.js +0 -68
  175. /package/layout/{widget → template}/dashboard/Menu.d.ts +0 -0
  176. /package/layout/{widget → template}/dashboard/Notification.d.ts +0 -0
  177. /package/layout/{widget → template}/dashboard/buttonClassNames.d.ts +0 -0
  178. /package/layout/{widget → template}/dashboard/buttonClassNames.js +0 -0
  179. /package/layout/{widget → template}/dashboard/mypage/Navigate.d.ts +0 -0
  180. /package/layout/{widget → template}/dashboard/mypage/Profile.d.ts +0 -0
  181. /package/layout/{widget → template}/promotion/Layout.d.ts +0 -0
  182. /package/layout/{widget → template}/promotion/Layout.js +0 -0
  183. /package/layout/{widget → template}/promotion/Thumbnail.d.ts +0 -0
  184. /package/layout/{widget → template}/promotion/Thumbnail.js +0 -0
  185. /package/layout/{widget → template}/sign/Box.d.ts +0 -0
  186. /package/layout/{widget → template}/sign/Box.js +0 -0
  187. /package/layout/{widget → template}/sign/Button.d.ts +0 -0
  188. /package/layout/{widget → template}/sign/Button.js +0 -0
  189. /package/layout/{widget → template}/sign/Check.d.ts +0 -0
  190. /package/layout/{widget → template}/sign/Check.js +0 -0
  191. /package/layout/{widget → template}/sign/Layout.d.ts +0 -0
  192. /package/layout/{widget → template}/sign/Layout.js +0 -0
@@ -1,2 +1,9 @@
1
1
  export * from "./Carousel";
2
2
  export * from "./Switch";
3
+ export const WidgetType = {
4
+ TEXT: "text",
5
+ BUTTON: "button",
6
+ INPUT: "input",
7
+ SELECT: "select",
8
+ TOGGLE: "toggle",
9
+ };
@@ -1,2 +1,2 @@
1
1
  import { DataFieldProps } from "../../interface";
2
- export default function DataFieldDesign<T extends Record<string, any>>({ id, dataField, options, }: DataFieldProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ export default function DataFieldDesign<T extends Record<string, any>>({ id, dataField, option, }: DataFieldProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,18 @@
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 { useActionStore } from "../../store";
4
- export default function DataFieldDesign({ id, dataField, options, }) {
4
+ const heightSize = {
5
+ sm: "h-10",
6
+ md: "h-13.75",
7
+ };
8
+ export default function DataFieldDesign({ id, dataField, option, }) {
5
9
  const { order, setOrder } = useActionStore();
6
- const { padding, position } = options ?? {};
10
+ const { padding, position, height } = option ?? {};
7
11
  const orders = order[id] ?? [];
8
12
  const container = {
9
13
  positions: position && position,
10
14
  displays: "flex items-center",
11
- sizes: "w-full h-13.75",
15
+ sizes: `w-full ${heightSize[height ?? "md"]}`,
12
16
  paddings: padding && padding,
13
17
  styles: "bg-white box-shadow-sm font-pretendard-bold",
14
18
  };
@@ -1,2 +1,2 @@
1
1
  import { RowProps } from "../../interface";
2
- export default function RowDesign<T>({ item, dataField, options, onClick, buttons, flag, }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ export default function RowDesign<T>({ item, dataField, option, onClick, buttons, dot, }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
+ import { ColorSet } from "../../interface";
3
4
  import { cn } from "../../util";
4
5
  import { Label } from "../../widget";
5
- export default function RowDesign({ item, dataField, options, onClick, buttons, flag, }) {
6
- const { size, padding, text, noHover, className, isPointer } = options ?? {};
6
+ export default function RowDesign({ item, dataField, option, onClick, buttons, dot, }) {
7
+ const { size, padding, text, noHover, className, isPointer } = option ?? {};
7
8
  const id = useId();
8
9
  const container = {
9
10
  positions: "relative",
@@ -18,16 +19,16 @@ export default function RowDesign({ item, dataField, options, onClick, buttons,
18
19
  styles: "truncate",
19
20
  className,
20
21
  };
21
- const flagBox = (flag) => ({
22
+ const flagBox = {
22
23
  positions: "absolute left-3.5",
23
- backgrounds: flag ? "bg-green-500" : "bg-red-500",
24
+ backgrounds: dot && ColorSet[dot],
24
25
  sizes: "w-2 h-2",
25
26
  styles: "rounded-full",
26
- });
27
- return (_jsxs("div", { className: cn(container), onClick: () => onClick?.(), children: [typeof flag !== "undefined" && _jsx("div", { className: cn(flagBox(flag)) }), dataField &&
28
- Object.keys(dataField).map((key) => (_jsx("div", { className: cn(`w-${dataField[key]?.size}/100`, itemBox), children: String(item[key]) }, id + key))), _jsx("div", { className: "absolute right-4 xl:right-8 flex gap-4", children: buttons?.map(({ title, onClick, options }) => (_jsx(Label.Button, { title: title, onClick: onClick, options: {
29
- background: options?.background ?? "bg-crimson-dark",
30
- text: options?.text ?? "text-white",
27
+ };
28
+ return (_jsxs("div", { className: cn(container), onClick: () => onClick?.(), children: [typeof dot !== "undefined" && _jsx("div", { className: cn(flagBox) }), dataField &&
29
+ Object.keys(dataField).map((key) => (_jsx("div", { className: cn(`w-${dataField[key]?.size}/100`, itemBox), children: String(item[key]) }, id + key))), _jsx("div", { className: "absolute right-4 xl:right-8 flex gap-4", children: buttons?.map(({ title, onClick, option }) => (_jsx(Label.Button, { title: title, onClick: onClick, option: {
30
+ background: option?.background ?? "bg-crimson-dark",
31
+ text: option?.text ?? "text-white",
31
32
  width: "xs",
32
33
  height: "xs",
33
34
  } }, id + title))) })] }));
@@ -1,2 +1,2 @@
1
1
  import { ShelfProps } from "../../interface";
2
- export default function Shelf<T extends string | number>({ children, className, options, titles, debug, }: ShelfProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ export default function Shelf<T extends string | number>({ children, className, option, titles, debug, }: ShelfProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { LineBreaks } from "../../text";
3
3
  import { cn, isDebug } from "../../util";
4
- export default function Shelf({ children, className, options, titles, debug, }) {
4
+ export default function Shelf({ children, className, option, titles, debug, }) {
5
5
  const { title, titleColor } = titles ?? {};
6
- const { titleSize, subtitleSize, isSize } = options ?? {};
6
+ const { titleSize, subtitleSize, isSize } = option ?? {};
7
7
  const container = {
8
8
  displays: "flex flex-col gap-6",
9
9
  sizes: isSize && "w-full h-full lg:h-auto",
package/layout/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { default as Action } from "./template/Action";
2
2
  export { default as Home } from "./template/home";
3
- export * from "./template/Dashboard";
3
+ export * from "./template/dashboard";
4
4
  export { default as Promotion } from "./template/Promotion";
5
5
  export { default as Sign } from "./template/Sign";
6
6
  export { default as DataField } from "./template/DataField";
package/layout/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { default as Action } from "./template/Action";
2
2
  export { default as Home } from "./template/home";
3
- export * from "./template/Dashboard";
3
+ export * from "./template/dashboard";
4
4
  export { default as Promotion } from "./template/Promotion";
5
5
  export { default as Sign } from "./template/Sign";
6
6
  export { default as DataField } from "./template/DataField";
@@ -1,4 +1,13 @@
1
- import { ReplaceProps, ShowProps } from "../../interface/Action";
1
+ import React from "react";
2
+ import { Replace as _Replace, Show as _Show } from "../../interface";
3
+ interface ShowProps {
4
+ actions?: _Show[];
5
+ children: React.ReactNode;
6
+ }
7
+ interface ReplaceProps {
8
+ actions?: _Replace[];
9
+ children?: React.ReactNode;
10
+ }
2
11
  declare function Show({ actions, children }: ShowProps): import("react/jsx-runtime").JSX.Element;
3
12
  declare function Replace({ actions, children }: ReplaceProps): import("react/jsx-runtime").JSX.Element;
4
13
  declare const Action: {
@@ -1,13 +1,16 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import DataFieldDesign from "../design/DataField.design";
3
3
  function Board({ id, dataField }) {
4
- return (_jsx(DataFieldDesign, { id: id, dataField: dataField, options: {
4
+ return (_jsx(DataFieldDesign, { id: id, dataField: dataField, option: {
5
5
  position: "fixed top-34 xl:top-0 left-0 xl:relative z-20",
6
6
  padding: "px-2 xs:px-4 xl:px-7.5",
7
7
  } }));
8
8
  }
9
9
  function Card({ id, dataField }) {
10
- return (_jsx(DataFieldDesign, { id: id, dataField: dataField, options: { padding: "px-2 xs:px-4 xl:px-7.5" } }));
10
+ return (_jsx(DataFieldDesign, { id: id, dataField: dataField, option: {
11
+ height: "sm",
12
+ padding: "px-2 xs:px-4 xl:px-7.5",
13
+ } }));
11
14
  }
12
15
  const DataField = {
13
16
  Board,
@@ -1,10 +1,10 @@
1
- import { Button, EventsProps } from "../../interface";
2
- export default function Gallery({ action, children, options, }: {
3
- action: EventsProps & {
1
+ import { Button, ActionProps } from "../../interface";
2
+ export default function Gallery({ action, children, option, }: {
3
+ action: ActionProps & {
4
4
  tabs?: Button[];
5
5
  };
6
6
  children: React.ReactNode;
7
- options?: {
7
+ option?: {
8
8
  tabTextColor?: string;
9
9
  };
10
10
  }): import("react/jsx-runtime").JSX.Element;
@@ -2,12 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Action from "./Action";
3
3
  import Tab from "./Tab";
4
4
  import { cn } from "../../util";
5
- export default function Gallery({ action, children, options, }) {
6
- const { tabTextColor } = options ?? {};
5
+ export default function Gallery({ action, children, option, }) {
6
+ const { tabTextColor } = option ?? {};
7
7
  const tabBox = {
8
8
  positions: "xl:absolute xl:-bottom-18 xl:left-0 z-5",
9
9
  };
10
- return (_jsxs("div", { className: "relative w-full flex", children: [_jsx(Action.Replace, { actions: action?.replaces, children: _jsx(Action.Show, { actions: action?.shows, children: children }) }), action?.tabs && (_jsx(Tab, { tabs: action?.tabs, options: {
10
+ return (_jsxs("div", { className: "relative w-full flex", children: [_jsx(Action.Replace, { actions: action?.replaces, children: _jsx(Action.Show, { actions: action?.shows, children: children }) }), action?.tabs && (_jsx(Tab, { tabs: action?.tabs, option: {
11
11
  className: cn(tabBox),
12
12
  text: tabTextColor,
13
13
  } }))] }));
@@ -1,4 +1,4 @@
1
- import Layout from "../widget/promotion/Layout";
1
+ import Layout from "./promotion/Layout";
2
2
  declare const Promotion: {
3
3
  Layout: typeof Layout;
4
4
  };
@@ -1,4 +1,4 @@
1
- import Layout from "../widget/promotion/Layout";
1
+ import Layout from "./promotion/Layout";
2
2
  const Promotion = {
3
3
  Layout,
4
4
  };
@@ -1,11 +1,11 @@
1
1
  import { RowProps } from "../../interface";
2
- declare function Row<T>({ item, dataField, onClick, buttons, flag }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ declare function Row<T>({ item, dataField, onClick, buttons, dot }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace Row {
4
- var Card: <T>({ item, dataField, onClick, buttons, height, noPadding, noHover, flag, }: Omit<RowProps<T>, "options"> & {
4
+ var Card: <T>({ item, dataField, onClick, buttons, height, noPadding, noHover, dot, }: Omit<RowProps<T>, "option"> & {
5
5
  height?: string | undefined;
6
6
  noPadding?: boolean | undefined;
7
7
  noHover?: boolean | undefined;
8
8
  }) => import("react/jsx-runtime").JSX.Element;
9
- var Board: <T>({ item, dataField, onClick, buttons, flag, options, }: RowProps<T>) => import("react/jsx-runtime").JSX.Element;
9
+ var Board: <T>({ item, dataField, onClick, buttons, dot, option, }: RowProps<T>) => import("react/jsx-runtime").JSX.Element;
10
10
  }
11
11
  export default Row;
@@ -1,27 +1,27 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
3
  import RowDesign from "../design/Row.design";
4
- function Row({ item, dataField, onClick, buttons, flag }) {
5
- return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, flag: flag, options: {
4
+ function Row({ item, dataField, onClick, buttons, dot }) {
5
+ return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot, option: {
6
6
  size: "w-full h-12",
7
7
  noHover: true,
8
8
  text: "text-xs",
9
9
  className: "text-center",
10
10
  } }));
11
11
  }
12
- function Board({ item, dataField, onClick, buttons, flag, options, }) {
12
+ function Board({ item, dataField, onClick, buttons, dot, option, }) {
13
13
  const id = useId();
14
- return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, flag: flag, options: {
15
- ...options,
14
+ return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot, option: {
15
+ ...option,
16
16
  size: "w-full h-12",
17
17
  padding: "px-2 xs:px-4 xl:px-7.5",
18
18
  text: "text-xl",
19
19
  } }, id));
20
20
  }
21
- function Card({ item, dataField, onClick, buttons, height, noPadding, noHover, flag, }) {
21
+ function Card({ item, dataField, onClick, buttons, height, noPadding, noHover, dot, }) {
22
22
  const id = useId();
23
- return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, flag: flag, options: {
24
- size: `w-full ${height ?? "h-12"}`,
23
+ return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot, option: {
24
+ size: `w-full ${height ?? "h-15"}`,
25
25
  padding: !noPadding ? "px-2 xs:px-4 xl:px-7.5" : "",
26
26
  text: "text-base",
27
27
  noHover,
@@ -1,7 +1,7 @@
1
1
  import { ShelfProps } from "../../interface/Shelf";
2
2
  declare function Shelf({ titles, debug, children }: ShelfProps<string | number>): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace Shelf {
4
- var Wrap: ({ className, titles, children, debug, options, }: ShelfProps<string | number>) => import("react/jsx-runtime").JSX.Element;
4
+ var Wrap: ({ className, titles, children, debug, option, }: ShelfProps<string | number>) => import("react/jsx-runtime").JSX.Element;
5
5
  var Row: ({ titles, children, className, debug, }: ShelfProps<string | number>) => import("react/jsx-runtime").JSX.Element;
6
6
  var Col: ({ titles, children, debug, className, }: ShelfProps<string | number>) => import("react/jsx-runtime").JSX.Element;
7
7
  }
@@ -11,17 +11,17 @@ function Shelf({ titles, debug, children }) {
11
11
  const container = {
12
12
  displays: "inline-flex flex-col gap-12",
13
13
  };
14
- return (_jsx(ShelfDesign, { titles: titles, className: cn(container), debug: debug, options: {
14
+ return (_jsx(ShelfDesign, { titles: titles, className: cn(container), debug: debug, option: {
15
15
  titleSize: "text-lg xl:text-2xl",
16
16
  }, children: children }));
17
17
  }
18
- function Wrap({ className, titles, children, debug, options, }) {
18
+ function Wrap({ className, titles, children, debug, option, }) {
19
19
  const container = {
20
20
  displays: "flex flex-row flex-wrap",
21
- gaps: gap[options?.gap ?? "xy"],
21
+ gaps: gap[option?.gap ?? "xy"],
22
22
  className,
23
23
  };
24
- return (_jsx(ShelfDesign, { titles: titles, className: cn(container), options: {
24
+ return (_jsx(ShelfDesign, { titles: titles, className: cn(container), option: {
25
25
  titleSize: "text-lg xl:text-2xl",
26
26
  subtitleSize: "text-sm",
27
27
  }, debug: debug, children: children }));
@@ -31,7 +31,7 @@ function Row({ titles, children, className, debug, }) {
31
31
  displays: "flex flex-row",
32
32
  className: className ?? "gap-x-7.5",
33
33
  };
34
- return (_jsx(ShelfDesign, { titles: titles, className: cn(container), options: {
34
+ return (_jsx(ShelfDesign, { titles: titles, className: cn(container), option: {
35
35
  titleSize: "text-lg xl:text-2xl",
36
36
  subtitleSize: "text-sm",
37
37
  isSize: true,
@@ -42,7 +42,7 @@ function Col({ titles, children, debug, className, }) {
42
42
  displays: "flex flex-col flex-wrap",
43
43
  className: className ?? "gap-y-7.5",
44
44
  };
45
- return (_jsx(ShelfDesign, { titles: titles, className: cn(container), options: {
45
+ return (_jsx(ShelfDesign, { titles: titles, className: cn(container), option: {
46
46
  titleSize: "text-lg xl:text-2xl",
47
47
  subtitleSize: "text-sm",
48
48
  }, debug: debug, children: children }));
@@ -1,8 +1,8 @@
1
- import Box from "../widget/sign/Box";
2
- import Button from "../widget/sign/Button";
3
- import Check from "../widget/sign/Check";
4
- import Layout from "../widget/sign/Layout";
5
- import WithTitle from "../widget/sign/WithTitle";
1
+ import Box from "./sign/Box";
2
+ import Button from "./sign/Button";
3
+ import Check from "./sign/Check";
4
+ import Layout from "./sign/Layout";
5
+ import WithTitle from "./sign/WithTitle";
6
6
  declare const Sign: {
7
7
  Box: typeof Box;
8
8
  Button: typeof Button;
@@ -1,8 +1,8 @@
1
- import Box from "../widget/sign/Box";
2
- import Button from "../widget/sign/Button";
3
- import Check from "../widget/sign/Check";
4
- import Layout from "../widget/sign/Layout";
5
- import WithTitle from "../widget/sign/WithTitle";
1
+ import Box from "./sign/Box";
2
+ import Button from "./sign/Button";
3
+ import Check from "./sign/Check";
4
+ import Layout from "./sign/Layout";
5
+ import WithTitle from "./sign/WithTitle";
6
6
  const Sign = {
7
7
  Box,
8
8
  Button,
@@ -6,11 +6,11 @@ interface Options {
6
6
  width?: Size;
7
7
  height?: Size;
8
8
  }
9
- export default function Tab({ tabs, options, state, }: {
9
+ export default function Tab({ tabs, option, state, }: {
10
10
  tabs: (Button & {
11
11
  isStatic?: boolean;
12
12
  })[];
13
- options?: Options;
13
+ option?: Options;
14
14
  state?: State<boolean[]>;
15
15
  }): import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -9,8 +9,8 @@ const heightSize = {
9
9
  md: "h-7.5",
10
10
  lg: "h-9",
11
11
  };
12
- export default function Tab({ tabs, options, state, }) {
13
- const { className, background, text, width, height } = options ?? {};
12
+ export default function Tab({ tabs, option, state, }) {
13
+ const { className, background, text, width, height } = option ?? {};
14
14
  const [tabsSelection, setTabsSelection] = state
15
15
  ? state
16
16
  : useState(tabs.map((_, i) => i === 0));
@@ -28,10 +28,10 @@ export default function Tab({ tabs, options, state, }) {
28
28
  sizes: `${heightSize[height ?? "lg"]} ${widthSize[width ?? "lg"]}`,
29
29
  font: text ?? "text-green-dark",
30
30
  };
31
- return (_jsx("div", { className: cn(container), children: tabs.map(({ title, onClick, isStatic, options }, index) => (_jsx("button", { onClick: () => {
31
+ return (_jsx("div", { className: cn(container), children: tabs.map(({ title, onClick, isStatic, option }, index) => (_jsx("button", { onClick: () => {
32
32
  !isStatic &&
33
33
  setTabsSelection(tabsSelection.map((_, i) => i === index));
34
34
  return onClick && onClick();
35
35
  }, className: cn(button, `${!isStatic && tabsSelection[index] && "bg-white rounded-2xl"}`, `${isStatic &&
36
- `${options?.background ?? "bg-green-dark"} ${options?.text ?? "text-white"} `}`), children: title }, title))) }));
36
+ `${option?.background ?? "bg-green-dark"} ${option?.text ?? "text-white"} `}`), children: title }, title))) }));
37
37
  }
@@ -1,2 +1,2 @@
1
1
  import { DashboardHeaderProps } from "../../../interface";
2
- export declare function Header({ title, logo, notification, menu, options, }: DashboardHeaderProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Header({ title, logo, notification, menu, option, }: DashboardHeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -6,10 +6,10 @@ import { Action } from "../..";
6
6
  import Notification from "./Notification";
7
7
  import SVG from "../../../asset/SVG";
8
8
  import { Label } from "../../../widget";
9
- export function Header({ title, logo, notification, menu, options, }) {
9
+ export function Header({ title, logo, notification, menu, option, }) {
10
10
  const { setView, setIsOwn } = useActionStore();
11
11
  const { notifications, flag, onClick, color } = notification;
12
- const { text, background, className } = options ?? {};
12
+ const { text, background, className } = option ?? {};
13
13
  const container = {
14
14
  positions: "fixed xl:static top-0 left-0 z-40",
15
15
  displays: "flex items-center justify-between ",
@@ -29,7 +29,7 @@ export function Header({ title, logo, notification, menu, options, }) {
29
29
  }, color: color }), menu?.profile ? (_jsx(SVG.Profile, { onClick: () => {
30
30
  setIsOwn(true);
31
31
  return setView("menu");
32
- }, color: color })) : (_jsx(Label.Button, { title: "\uB300\uC2DC\uBCF4\uB4DC\uB85C", onClick: menu?.onClick, options: {
32
+ }, color: color })) : (_jsx(Label.Button, { title: "\uB300\uC2DC\uBCF4\uB4DC\uB85C", onClick: menu?.onClick, option: {
33
33
  width: "sm",
34
34
  height: "xs",
35
35
  text: "text-white",
@@ -1,2 +1,2 @@
1
1
  import { DashboardProps } from "../../../interface";
2
- export default function Layout({ header, navigations, children, options, }: DashboardProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function Layout({ header, navigations, children, option, }: DashboardProps): import("react/jsx-runtime").JSX.Element;
@@ -3,11 +3,11 @@ import { Fragment, useEffect } from "react";
3
3
  import { Header } from "./Header";
4
4
  import { cn } from "../../../util";
5
5
  import { useActionStore } from "../../../store";
6
- import { NavigationContainer } from "./Navigation";
7
- export default function Layout({ header, navigations, children, options, }) {
6
+ import Navigation from "./Navigation";
7
+ export default function Layout({ header, navigations, children, option, }) {
8
8
  const { isDark, flag, setFlag, isOwn, setIsOwn, clearView } = useActionStore();
9
- const { title, options: headerOptions, logo, notification, menu } = header;
10
- const { background } = options ?? {};
9
+ const { title, option: headerOption, logo, notification, menu } = header;
10
+ const { background } = option ?? {};
11
11
  useEffect(() => {
12
12
  if (isOwn) {
13
13
  return setIsOwn(false);
@@ -25,5 +25,5 @@ export default function Layout({ header, navigations, children, options, }) {
25
25
  displays: "flex gap-12 xl:gap-7.5 ",
26
26
  paddings: "pt-15 xl:pl-2 2xl:pl-12 2xl:pr-11.25 xl:pt-7.5",
27
27
  };
28
- return (_jsxs("div", { className: cn(container), onClick: setFlag, children: [_jsx(Header, { title: title, notification: notification, menu: menu, options: headerOptions, logo: logo }), _jsxs("div", { className: cn(body), children: [_jsx(NavigationContainer, { children: navigations.map((nav, index) => (_jsx(Fragment, { children: nav }, index))) }), children] })] }));
28
+ return (_jsxs("div", { className: cn(container), onClick: setFlag, children: [_jsx(Header, { title: title, notification: notification, menu: menu, option: headerOption, logo: logo }), _jsxs("div", { className: cn(body), children: [_jsx(Navigation.Container, { children: navigations.map((nav, index) => (_jsx(Fragment, { children: nav }, index))) }), children] })] }));
29
29
  }
@@ -18,10 +18,10 @@ export default function Menu({ showAction, profile, input, onClick, }) {
18
18
  leave: { opacity: 0 },
19
19
  config: { duration: 200 },
20
20
  });
21
- return transitions((styles, item) => item && (_jsxs(animated.div, { style: styles, className: cn(container), onClick: () => setIsOwn(true), children: [_jsxs("div", { className: "h-17.75 flex gap-12 justify-center items-center text-black border-b-2 pb-2.5", children: [_jsxs("div", { children: [_jsx("div", { children: profile?.name }), _jsx("div", { className: "text-xs", children: profile?.belong })] }), _jsx("div", { className: "relative w-15 h-15 rounded-md overflow-hidden", children: _jsx("img", { className: "bg-cover rounded-md", src: profile?.image, alt: "profile-image" }) })] }), _jsxs("div", { className: "flex flex-col gap-2.5 pt-2.5", children: [_jsx("input", { className: "w-47.5 h-6.25 border-2 text-black", value: input?.password[0], onChange: (e) => input?.password[1](e.target.value), type: "password" }), _jsxs("div", { className: "flex gap-2.5", children: [_jsx(Label.Button, { title: "\uCDE8\uC18C", onClick: () => removeModal("menu"), options: {
21
+ return transitions((styles, item) => item && (_jsxs(animated.div, { style: styles, className: cn(container), onClick: () => setIsOwn(true), children: [_jsxs("div", { className: "h-17.75 flex gap-12 justify-center items-center text-black border-b-2 pb-2.5", children: [_jsxs("div", { children: [_jsx("div", { children: profile?.name }), _jsx("div", { className: "text-xs", children: profile?.belong })] }), _jsx("div", { className: "relative w-15 h-15 rounded-md overflow-hidden", children: _jsx("img", { className: "bg-cover rounded-md", src: profile?.image, alt: "profile-image" }) })] }), _jsxs("div", { className: "flex flex-col gap-2.5 pt-2.5", children: [_jsx("input", { className: "w-47.5 h-6.25 border-2 text-black", value: input?.password[0], onChange: (e) => input?.password[1](e.target.value), type: "password" }), _jsxs("div", { className: "flex gap-2.5", children: [_jsx(Label.Button, { title: "\uCDE8\uC18C", onClick: () => removeModal("menu"), option: {
22
22
  width: "sm",
23
23
  height: "xs",
24
- } }), _jsx(Label.Button, { title: "\uD655\uC778", onClick: onClick, options: {
24
+ } }), _jsx(Label.Button, { title: "\uD655\uC778", onClick: onClick, option: {
25
25
  background: gradient.bg.greenToRed,
26
26
  text: "text-white",
27
27
  width: "sm",
@@ -0,0 +1,7 @@
1
+ declare function Container({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ declare const Navigation: {
5
+ Container: typeof Container;
6
+ };
7
+ export default Navigation;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../../util";
3
- export function NavigationContainer({ children, }) {
3
+ function Container({ children }) {
4
4
  const container = {
5
5
  positions: "fixed xl:static bottom-0 left-0 z-40",
6
6
  displays: "hidden lg:flex flex-row xl:flex-col",
@@ -18,3 +18,7 @@ function Copyright() {
18
18
  const nowYear = new Date().getFullYear();
19
19
  return (_jsxs("div", { className: cn(copyrightBox), children: [_jsxs("div", { className: "leading-tight", children: ["Copyright \u00A9 2002-", nowYear] }), _jsx("div", { className: "leading-tight", children: "International TOSEL Committee." }), _jsx("div", { className: "leading-tight", children: "All Rights Reserved." })] }));
20
20
  }
21
+ const Navigation = {
22
+ Container,
23
+ };
24
+ export default Navigation;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useTransition, animated } from "react-spring";
3
3
  import { cn } from "../../../util";
4
- import Action from "../../template/Action";
4
+ import Action from "../Action";
5
5
  export default function Notification({ showAction, notifications, }) {
6
6
  const { isVisible } = showAction ?? {};
7
7
  const container = {
@@ -0,0 +1,28 @@
1
+ import Layout from "./Layout";
2
+ import MyPageLayout from "./mypage/Layout";
3
+ import Profile from "./mypage/Profile";
4
+ declare const Dashboard: {
5
+ Layout: typeof Layout;
6
+ };
7
+ declare const MyPage: {
8
+ Layout: typeof MyPageLayout;
9
+ Card: {
10
+ Profile: typeof Profile;
11
+ Navigate: {
12
+ Academy: ({ onClick }: {
13
+ onClick: import("../../../interface").OnClick;
14
+ }) => import("react/jsx-runtime").JSX.Element;
15
+ Payment: ({ onClick }: {
16
+ onClick: import("../../../interface").OnClick;
17
+ }) => import("react/jsx-runtime").JSX.Element;
18
+ };
19
+ };
20
+ };
21
+ declare const dashboardConfig: {
22
+ style: {
23
+ nav: ({ href, nowPath, background, text, }: import("./style").NavigatorStyle) => string;
24
+ };
25
+ };
26
+ export { default as buttonClassNames } from "./buttonClassNames";
27
+ export { default as Navigation } from "./Navigation";
28
+ export { Dashboard, MyPage, dashboardConfig };
@@ -0,0 +1,18 @@
1
+ import Layout from "./Layout";
2
+ import MyPageLayout from "./mypage/Layout";
3
+ import Navigate from "./mypage/Navigate";
4
+ import Profile from "./mypage/Profile";
5
+ import style from "./style";
6
+ const Dashboard = {
7
+ Layout,
8
+ };
9
+ const MyPage = {
10
+ Layout: MyPageLayout,
11
+ Card: { Profile, Navigate },
12
+ };
13
+ const dashboardConfig = {
14
+ style,
15
+ };
16
+ export { default as buttonClassNames } from "./buttonClassNames";
17
+ export { default as Navigation } from "./Navigation";
18
+ export { Dashboard, MyPage, dashboardConfig };
@@ -1,2 +1,2 @@
1
1
  import { MyPageProps } from "../../../../interface";
2
- export default function MyPageLayout({ header, profile, navigations, children, options, }: MyPageProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function MyPageLayout({ header, profile, navigations, children, option, }: MyPageProps): import("react/jsx-runtime").JSX.Element;
@@ -4,11 +4,11 @@ import { Header } from "../Header";
4
4
  import { cn } from "../../../../util";
5
5
  import { useActionStore } from "../../../../store";
6
6
  import Profile from "./Profile";
7
- import { NavigationContainer } from "../Navigation";
8
- export default function MyPageLayout({ header, profile, navigations, children, options, }) {
7
+ import Navigation from "../Navigation";
8
+ export default function MyPageLayout({ header, profile, navigations, children, option, }) {
9
9
  const { isDark, flag, setFlag, isOwn, setIsOwn, clearView } = useActionStore();
10
- const { title, options: headerOptions, logo, notification } = header;
11
- const { background } = options ?? {};
10
+ const { title, option: headerOption, logo, notification } = header;
11
+ const { background } = option ?? {};
12
12
  useEffect(() => {
13
13
  if (isOwn) {
14
14
  return setIsOwn(false);
@@ -26,5 +26,5 @@ export default function MyPageLayout({ header, profile, navigations, children, o
26
26
  sizes: "h-full ",
27
27
  paddings: "pt-15 xl:pl-2 2xl:px-12 xl:pt-7.5",
28
28
  };
29
- return (_jsxs("div", { className: cn(container), onClick: setFlag, children: [_jsx(Header, { ...header }), _jsxs("div", { className: cn(body), children: [_jsxs(NavigationContainer, { children: [_jsx(Profile.Preview, { username: profile.username, email: profile.email, image: profile.image }), navigations.map((nav, index) => (_jsx(Fragment, { children: nav }, index)))] }), children] })] }));
29
+ return (_jsxs("div", { className: cn(container), onClick: setFlag, children: [_jsx(Header, { ...header }), _jsxs("div", { className: cn(body), children: [_jsxs(Navigation.Container, { children: [_jsx(Profile.Preview, { username: profile.username, email: profile.email, image: profile.image }), navigations.map((nav, index) => (_jsx(Fragment, { children: nav }, index)))] }), children] })] }));
30
30
  }
@@ -3,7 +3,7 @@ import { useState } from "react";
3
3
  import Card from "../../../../card/design/Card.design";
4
4
  function Academy({ onClick }) {
5
5
  const [onMouse, _] = useState(false);
6
- return (_jsxs(Card, { options: {
6
+ return (_jsxs(Card, { option: {
7
7
  onClick,
8
8
  className: "pt-5 pl-5 group",
9
9
  boundary: "box-shadow shadow-green-dark",
@@ -13,7 +13,7 @@ function Academy({ onClick }) {
13
13
  }, children: [_jsx("div", { className: "text-gray-medium group-hover:text-green-dark duration-300", children: "\uB098\uC758 \uD559\uC6D0" }), _jsx("svg", { className: "absolute bottom-5 right-5 ", xmlns: "http://www.w3.org/2000/svg", width: "60", height: "60", viewBox: "0 0 60 60", fill: "none", children: _jsx("path", { className: "duration-300", d: "M9 53H52M10.9545 6H50.0455M12.9091 6V53M48.0909 6V53M22.6818 15.7917H26.5909M22.6818 23.625H26.5909M22.6818 31.4583H26.5909M34.4091 15.7917H38.3182M34.4091 23.625H38.3182M34.4091 31.4583H38.3182M22.6818 53V44.1875C22.6818 42.566 23.9953 41.25 25.6136 41.25H35.3864C37.0047 41.25 38.3182 42.566 38.3182 44.1875V53", stroke: !onMouse ? "#7F7F7F" : "#105652", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round" }) })] }));
14
14
  }
15
15
  function Payment({ onClick }) {
16
- return (_jsxs(Card, { options: {
16
+ return (_jsxs(Card, { option: {
17
17
  onClick,
18
18
  className: "pt-5 pl-5",
19
19
  background: "group bg-green-dark/10 hover:bg-green-dark/30 ",