@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
@@ -10,11 +10,11 @@ export default function Product({ titles, data }) {
10
10
  displays: "flex flex-col mt-2.5",
11
11
  sizes: "h-19.25 w-full",
12
12
  };
13
- return (_jsx(InfoCardDesign, { titles: titles, options: {
13
+ return (_jsx(InfoCardDesign, { titles: titles, option: {
14
14
  titleBorder: "border-jr-blue",
15
15
  width: "sm",
16
16
  height: "xs",
17
- }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "text-sm", children: ["\uC77C\uC2DC: ", date] }), _jsxs("div", { className: "text-sm", children: ["\uC694\uCCAD\uC790: ", requester ?? "No Data"] }), _jsxs("div", { className: "text-sm", children: ["\uC218\uC2E0\uC790: ", receiver ?? "No Data"] })] }), _jsx(Label.Button, { title: status ?? "", onClick: () => console.log("click"), options: {
17
+ }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "text-sm", children: ["\uC77C\uC2DC: ", date] }), _jsxs("div", { className: "text-sm", children: ["\uC694\uCCAD\uC790: ", requester ?? "No Data"] }), _jsxs("div", { className: "text-sm", children: ["\uC218\uC2E0\uC790: ", receiver ?? "No Data"] })] }), _jsx(Label.Button, { title: status ?? "", onClick: () => console.log("click"), option: {
18
18
  width: "sm",
19
19
  height: "xs",
20
20
  className: cn(label),
@@ -14,11 +14,11 @@ export default function Student({ titles, image, data, onClick }) {
14
14
  sizes: "w-22.5 h-6.4",
15
15
  styles: "bg-white-off text-sm rounded-md",
16
16
  };
17
- return (_jsx(InfoCardDesign, { titles: titles, image: image, options: {
17
+ return (_jsx(InfoCardDesign, { titles: titles, image: image, option: {
18
18
  titleBorder: "border-blue-navy",
19
19
  width: "sm",
20
20
  height: "xs",
21
- }, children: _jsxs(_Fragment, { children: [_jsx("div", { className: cn(container), children: _jsx("div", { className: "flex items-center gap-5", children: _jsx("span", { className: "text-sm", children: data.belong }) }) }), _jsx(Label.Button, { title: "\uC0C1\uC138\uBCF4\uAE30", onClick: onClick, options: {
21
+ }, children: _jsxs(_Fragment, { children: [_jsx("div", { className: cn(container), children: _jsx("div", { className: "flex items-center gap-5", children: _jsx("span", { className: "text-sm", children: data.belong }) }) }), _jsx(Label.Button, { title: "\uC0C1\uC138\uBCF4\uAE30", onClick: onClick, option: {
22
22
  width: "sm",
23
23
  height: "xs",
24
24
  text: "text-white hover:text-blue-navy",
@@ -1,7 +1,7 @@
1
1
  import { NavCardBannerProps, NavCardButtonProps, NavCardButtonInLayProps } from "../../interface";
2
- declare function Banner({ titles, options }: NavCardBannerProps): import("react/jsx-runtime").JSX.Element;
3
- declare function _Button({ titles, onClick, options }: NavCardButtonProps): import("react/jsx-runtime").JSX.Element;
4
- declare function ButtonInLay({ titles, buttonInLay, options, }: NavCardButtonInLayProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function Banner({ titles, option }: NavCardBannerProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function _Button({ titles, onClick, option }: NavCardButtonProps): import("react/jsx-runtime").JSX.Element;
4
+ declare function ButtonInLay({ titles, buttonInLay, option }: NavCardButtonInLayProps): import("react/jsx-runtime").JSX.Element;
5
5
  declare function BannerAndButtonInLay({ banner, buttonInLay, }: {
6
6
  banner: NavCardBannerProps;
7
7
  buttonInLay: NavCardButtonInLayProps;
@@ -1,21 +1,21 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import NavCardDesign from "../design/NavCard.design";
3
- function Banner({ titles, options }) {
4
- return (_jsx(NavCardDesign, { titles: titles, options: { ...options, width: options?.width ?? "xl", height: "sm" } }));
3
+ function Banner({ titles, option }) {
4
+ return (_jsx(NavCardDesign, { titles: titles, option: { ...option, width: option?.width ?? "xl", height: "sm" } }));
5
5
  }
6
- function _Button({ titles, onClick, options }) {
7
- return (_jsx(NavCardDesign, { titles: titles, options: {
8
- ...options,
6
+ function _Button({ titles, onClick, option }) {
7
+ return (_jsx(NavCardDesign, { titles: titles, option: {
8
+ ...option,
9
9
  onClick,
10
- width: options?.width ?? "xs",
11
- height: options?.height ?? "sm",
10
+ width: option?.width ?? "xs",
11
+ height: option?.height ?? "sm",
12
12
  } }));
13
13
  }
14
- function ButtonInLay({ titles, buttonInLay, options, }) {
15
- return (_jsx(NavCardDesign, { titles: titles, options: {
16
- ...options,
17
- width: options?.width ?? "xs",
18
- height: options?.height ?? "sm",
14
+ function ButtonInLay({ titles, buttonInLay, option }) {
15
+ return (_jsx(NavCardDesign, { titles: titles, option: {
16
+ ...option,
17
+ width: option?.width ?? "xs",
18
+ height: option?.height ?? "sm",
19
19
  buttonInLay: {
20
20
  disabled: buttonInLay.disabled,
21
21
  ...buttonInLay,
@@ -27,11 +27,11 @@ function ButtonInLay({ titles, buttonInLay, options, }) {
27
27
  function BannerAndButtonInLay({ banner, buttonInLay, }) {
28
28
  const bannerProps = {
29
29
  ...banner,
30
- options: { ...banner.options, noShadow: true },
30
+ option: { ...banner.option, noShadow: true },
31
31
  };
32
32
  const buttonInLayProps = {
33
33
  ...buttonInLay,
34
- options: { ...buttonInLay.options, noShadow: true },
34
+ option: { ...buttonInLay.option, noShadow: true },
35
35
  };
36
36
  return (_jsxs("div", { className: "flex w-full", children: [_jsx("div", { className: "box-shadow rounded-xl w-full", children: _jsx(Banner, { ...bannerProps }) }), _jsx("div", { className: "box-shadow rounded-xl", children: _jsx(ButtonInLay, { ...buttonInLayProps }) })] }));
37
37
  }
@@ -0,0 +1,2 @@
1
+ import { ProgressCardProps } from "../../../interface";
2
+ export default function ProgressCardLG({ titles, steps, theme, }: ProgressCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import SVG from "../../asset/SVG";
3
- import { cn } from "../../util";
4
- import CardDesign from "../design/Card.design";
2
+ import SVG from "../../../asset/SVG";
3
+ import { cn } from "../../../util";
4
+ import CardDesign from "../../design/Card.design";
5
5
  const bg = {
6
6
  green: "bg-green-dark",
7
7
  blue: "bg-blue-navy",
@@ -14,7 +14,7 @@ const text = {
14
14
  green: "text-green-dark",
15
15
  blue: "text-blue-navy",
16
16
  };
17
- export default function ProgressCard({ titles, steps, theme, }) {
17
+ export default function ProgressCardLG({ titles, steps, theme, }) {
18
18
  const progressBox = {
19
19
  positions: "absolute top-7.5 left-7.5",
20
20
  displays: "flex",
@@ -35,8 +35,8 @@ export default function ProgressCard({ titles, steps, theme, }) {
35
35
  steps.filter(([_, value]) => !!value).length,
36
36
  steps.length,
37
37
  ].join("/");
38
- return (_jsxs(CardDesign, { options: {
38
+ return (_jsxs(CardDesign, { option: {
39
39
  width: "2xl",
40
40
  height: "2xs",
41
- }, children: [_jsx("div", { className: cn(progressBox), children: steps.map(([key, value]) => (_jsxs("div", { className: cn(stepBox(value)), children: [_jsx("div", { children: key }), _jsx(SVG.Operation.Checked, { flag: value, size: 25, theme: theme })] }, key))) }), _jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: `text-xl leading-none font-pretendard-bold ${text[theme ?? "green"]}`, children: titles.title }), _jsx("div", { className: "text-base leading-none", children: titles.subtitle })] }), _jsx("div", { className: "absolute bottom-0 left-0 bg-gray-light w-full h-2.5", children: _jsx("div", { className: `h-full w-${occupied} ${bg[theme ?? "green"]}` }) })] }));
41
+ }, children: [_jsx("div", { className: cn(progressBox), children: steps.map(([{ title }, value]) => (_jsxs("div", { className: cn(stepBox(value)), children: [_jsx("div", { children: title }), _jsx(SVG.Operation.Checked, { flag: value, size: 25, theme: theme })] }, title))) }), _jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: `text-xl leading-none font-pretendard-bold ${text[theme ?? "green"]}`, children: titles.title }), _jsx("div", { className: "text-base leading-none", children: titles.subtitle })] }), _jsx("div", { className: "absolute bottom-0 left-0 bg-gray-light w-full h-2.5", children: _jsx("div", { className: `h-full w-${occupied} ${bg[theme ?? "green"]}` }) })] }));
42
42
  }
@@ -0,0 +1,2 @@
1
+ import { ProgressCardProps } from "../../../interface";
2
+ export default function ProgressCardSmall({ titles, steps, theme, }: ProgressCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import SVG from "../../../asset/SVG";
3
+ import { cn } from "../../../util";
4
+ import CardDesign from "../../design/Card.design";
5
+ const bgLight = {
6
+ green: "bg-green-dark/10",
7
+ blue: "bg-blue-navy/10",
8
+ };
9
+ const text = {
10
+ green: "text-green-dark",
11
+ blue: "text-blue-navy",
12
+ };
13
+ export default function ProgressCardSmall({ titles, steps, theme = "green", }) {
14
+ const progressBox = {
15
+ positions: "absolute top-2.5 left-2.5",
16
+ displays: "flex",
17
+ sizes: "w-75 h-16",
18
+ };
19
+ const stepBox = (flag) => ({
20
+ displays: "flex-1 flex flex-col justify-between",
21
+ sizes: "h-full",
22
+ backgrounds: flag ? bgLight[theme ?? "green"] : "bg-transparent",
23
+ boundaries: "rounded-[10px] p-2.5",
24
+ texts: flag ? "text-gray-dark" : "text-gray-medium",
25
+ });
26
+ const titleBox = {
27
+ positions: "absolute top-4.5 right-6",
28
+ displays: "flex flex-col items-end gap-y-3",
29
+ };
30
+ return (_jsxs(CardDesign, { option: {
31
+ width: "md",
32
+ height: "4xs",
33
+ }, children: [_jsx("div", { className: cn(progressBox), children: steps.map(([{ title, subtitle }, value]) => (_jsxs("div", { className: cn(stepBox(value)), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "leading-none text-[12px] font-pretendard-bold", children: title }), _jsx(SVG.Operation.Checked, { flag: value, size: 25, theme: theme })] }), _jsx("div", { className: `text-[12px] ${text[theme]}`, children: subtitle })] }, title))) }), _jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: `text-[20px] leading-none font-pretendard-bold ${text[theme]}`, children: titles.title }), _jsx("div", { className: `text-[12px] leading-none ${text[theme]}`, children: titles.subtitle })] })] }));
34
+ }
@@ -0,0 +1,7 @@
1
+ import LG from "./Large";
2
+ import SM from "./Small";
3
+ declare const ProgressCard: {
4
+ LG: typeof LG;
5
+ SM: typeof SM;
6
+ };
7
+ export default ProgressCard;
@@ -0,0 +1,7 @@
1
+ import LG from "./Large";
2
+ import SM from "./Small";
3
+ const ProgressCard = {
4
+ LG,
5
+ SM,
6
+ };
7
+ export default ProgressCard;
@@ -4,10 +4,11 @@ function TableCard(props) {
4
4
  return _jsx(TableCardDesign, { ...props });
5
5
  }
6
6
  function Log(props) {
7
- return (_jsx(TableCardDesign, { dataField: props.dataField, dataSet: props.dataSet, options: {
8
- ...props.options,
7
+ return (_jsx(TableCardDesign, { dataField: props.dataField, dataSet: props.dataSet, option: {
8
+ ...props.option,
9
+ height: "md",
9
10
  rowHeight: "h-5",
10
- onClick: props.options?.onClick,
11
+ onClick: props.option?.onClick,
11
12
  text: "text-white",
12
13
  padding: "p-7.5",
13
14
  noHeader: true,
package/globals.css CHANGED
@@ -65,11 +65,12 @@ input[type="date"]::-webkit-calendar-picker-indicator {
65
65
  .box-shadow {
66
66
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
67
67
  }
68
-
69
- .box-shadow-sm {
68
+ .box-shadow-md {
70
69
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
71
70
  }
72
-
71
+ .box-shadow-sm {
72
+ box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
73
+ }
73
74
  .border-gradient-green-to-red {
74
75
  }
75
76
 
@@ -1,5 +1,6 @@
1
- import { HTMLLabelElement } from "./HTMLElement";
2
- import { DataField, OnClick } from "./Property";
1
+ import { LabelWidget } from "./widget";
2
+ import { DataField, OnClick, Size } from "./Property";
3
+ import { Color } from "./Color";
3
4
  export interface ActionEvent {
4
5
  event: string;
5
6
  type: "view" | "modal";
@@ -14,22 +15,15 @@ export interface ShowAction {
14
15
  event: string;
15
16
  isVisible: boolean;
16
17
  }
17
- export interface ShowProps {
18
- actions?: Show[];
19
- children: React.ReactNode;
20
- }
21
- export interface ReplaceProps {
22
- actions?: Replace[];
23
- children?: React.ReactNode;
24
- }
25
- export interface EventsProps {
26
- replaces?: Action<boolean | string | null | undefined>[];
27
- shows?: Action<boolean | string>[];
18
+ export interface ActionProps {
19
+ replaces?: Replace[];
20
+ shows?: Show[];
28
21
  }
29
22
  export interface DataFieldProps<T> {
30
23
  id: string;
31
24
  dataField?: DataField<T>;
32
- options?: {
25
+ option?: {
26
+ height?: Size;
33
27
  position?: string;
34
28
  padding?: string;
35
29
  };
@@ -38,9 +32,9 @@ export interface RowProps<T> {
38
32
  item: T;
39
33
  dataField?: DataField<T>;
40
34
  onClick?: OnClick<T>;
41
- buttons?: HTMLLabelElement[];
42
- flag?: boolean;
43
- options?: {
35
+ buttons?: LabelWidget[];
36
+ dot?: Color;
37
+ option?: {
44
38
  height?: string;
45
39
  size?: string;
46
40
  padding?: string;
@@ -1,13 +1,14 @@
1
1
  import { DataField, DataSet, Size, Titles } from "./Property";
2
- import { EventsProps } from "./Action";
3
- import { HTMLInput, HTMLLabelElement, HTMLSelectElement } from "./HTMLElement";
4
- interface OptionsProps {
2
+ import { ActionProps } from "./Action";
3
+ import { InputWidget, LabelWidget, SelectWidget } from "./widget";
4
+ interface BoardOption {
5
5
  className?: string;
6
6
  width?: Size;
7
7
  height?: Size;
8
8
  color?: string;
9
9
  background?: string;
10
10
  border?: string;
11
+ boundary?: string;
11
12
  isRounded?: boolean;
12
13
  noPadding?: boolean;
13
14
  noMobile?: boolean;
@@ -15,25 +16,23 @@ interface OptionsProps {
15
16
  export interface BoardProps<B> {
16
17
  header?: BoardHeaderProps<B>;
17
18
  children?: React.ReactNode;
18
- action?: EventsProps;
19
- options?: OptionsProps;
19
+ action?: ActionProps;
20
+ option?: BoardOption;
20
21
  debug?: string;
21
- buttons?: HTMLLabelElement[];
22
+ buttons?: LabelWidget[];
22
23
  }
23
24
  export interface BoardHeaderProps<B> {
24
25
  titles?: Omit<Titles, "subtitle"> & {
25
26
  icon?: string;
26
27
  };
27
28
  tag?: {
28
- selects?: HTMLSelectElement<B>[];
29
- inputs?: HTMLInput[];
29
+ selects?: SelectWidget<B>[];
30
+ inputs?: InputWidget[];
30
31
  };
31
- options?: {
32
- titleBorder?: string;
33
- colors?: {
34
- bgColor?: string;
35
- textColor?: string;
36
- };
32
+ option?: {
33
+ background?: string;
34
+ text?: string;
35
+ boundary?: string;
37
36
  };
38
37
  }
39
38
  export interface CanvasBoardProps<B> extends BoardProps<B> {
@@ -1,6 +1,7 @@
1
- import { Button, DataField, DataSet, Disabled, OnClick, Size, State, Titles } from "./Property";
1
+ import { Button, DataField, DataSet, Disabled, OnClick, Size, State, Step, Titles } from "./Property";
2
+ import { Theme } from "./Theme";
2
3
  import { Flexify } from "./UtilityType";
3
- interface CardOptions {
4
+ interface CardOption {
4
5
  className?: string;
5
6
  boundary?: string;
6
7
  rounded?: string;
@@ -19,7 +20,7 @@ interface CardOptions {
19
20
  export interface CardProps {
20
21
  children: React.ReactNode;
21
22
  header?: React.ReactNode;
22
- options?: CardOptions;
23
+ option?: CardOption;
23
24
  debug?: string;
24
25
  }
25
26
  export interface ChartCardProps extends Omit<CardProps, "children"> {
@@ -59,7 +60,7 @@ interface NavCardImage {
59
60
  }
60
61
  export interface NavCardProps extends Omit<CardProps, "children"> {
61
62
  titles: Titles;
62
- options?: CardOptions & {
63
+ option?: CardOption & {
63
64
  buttonInLay?: ButtonInLay;
64
65
  image?: NavCardImage;
65
66
  };
@@ -77,9 +78,9 @@ export interface InfoCardProps extends CardProps {
77
78
  topRight?: React.ReactNode;
78
79
  button?: Button;
79
80
  image?: string;
80
- options?: {
81
+ option?: {
81
82
  titleBorder?: string;
82
- } & CardOptions;
83
+ } & CardOption;
83
84
  }
84
85
  export interface InfoCardExamDataREGProps extends Omit<InfoCardProps, "children"> {
85
86
  data?: {
@@ -114,7 +115,7 @@ export interface AddCardProps extends Omit<CardProps, "children"> {
114
115
  export interface TableCardProps<T> extends Omit<CardProps, "children"> {
115
116
  dataSet: Flexify<DataSet<T>, "renderItem">;
116
117
  dataField?: DataField<T>;
117
- options?: CardOptions & {
118
+ option?: CardOption & {
118
119
  className?: string;
119
120
  limit?: number;
120
121
  rowHeight?: string;
@@ -131,4 +132,9 @@ export interface RollCardProps extends CardProps {
131
132
  isFixed?: boolean;
132
133
  disabled?: [boolean, OnClick];
133
134
  }
135
+ export interface ProgressCardProps {
136
+ titles: Titles;
137
+ steps: Step[];
138
+ theme?: Theme;
139
+ }
134
140
  export {};
@@ -0,0 +1,3 @@
1
+ export type Color = "red" | "green" | "blue" | "yellow";
2
+ declare const ColorSet: Record<Color, string>;
3
+ export { ColorSet };
@@ -0,0 +1,7 @@
1
+ const ColorSet = {
2
+ red: "bg-red-500",
3
+ green: "bg-green-500",
4
+ blue: "bg-blue-500",
5
+ yellow: "bg-yellow-500",
6
+ };
7
+ export { ColorSet };
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from "react";
1
2
  import { OnClick, State } from "./Property";
2
3
  import { ShowAction } from "./Action";
3
4
  interface Notification {
@@ -29,10 +30,10 @@ export interface MenuProps {
29
30
  }
30
31
  export interface DashboardHeaderProps {
31
32
  title: string;
32
- logo?: React.ReactNode;
33
+ logo?: ReactNode;
33
34
  notification: NotificationProps;
34
35
  menu?: MenuProps;
35
- options?: {
36
+ option?: {
36
37
  background?: string;
37
38
  text?: string;
38
39
  className?: string;
@@ -40,9 +41,9 @@ export interface DashboardHeaderProps {
40
41
  }
41
42
  export interface DashboardProps {
42
43
  header: DashboardHeaderProps;
43
- navigations: React.ReactNode[];
44
- children: React.ReactNode;
45
- options?: {
44
+ navigations: ReactNode[];
45
+ children: ReactNode;
46
+ option?: {
46
47
  background?: string;
47
48
  };
48
49
  }
@@ -1,6 +1,7 @@
1
+ import { ReactNode } from "react";
1
2
  import { Button, Scripts, Size, State, Titles } from "./Property";
2
3
  import { ShowAction } from "./Action";
3
- interface Options {
4
+ interface Option {
4
5
  width: Size;
5
6
  height: Size;
6
7
  padding: boolean;
@@ -12,10 +13,10 @@ interface Options {
12
13
  }
13
14
  interface ModalProps {
14
15
  titles: Titles;
15
- children: React.ReactNode;
16
+ children: ReactNode;
16
17
  showAction?: ShowAction;
17
18
  className?: string;
18
- options?: Partial<Options>;
19
+ option?: Partial<Option>;
19
20
  debug?: string;
20
21
  }
21
22
  interface ConfirmModalProps extends ModalProps {
@@ -23,7 +24,7 @@ interface ConfirmModalProps extends ModalProps {
23
24
  }
24
25
  interface AlertModalProps extends Omit<ModalProps, "children"> {
25
26
  scripts: Scripts;
26
- options?: {
27
+ option?: {
27
28
  buttons?: Button[];
28
29
  };
29
30
  }
@@ -1,4 +1,4 @@
1
- import { HTMLElementFrame, HTMLLabelElement } from "./HTMLElement";
1
+ import { WidgetFrame, LabelWidget } from "./widget";
2
2
  import { Titles } from "./Property";
3
3
  import { ShowAction } from "./Action";
4
4
  export interface OverlayProps {
@@ -9,6 +9,6 @@ export interface OverlayProps {
9
9
  export interface InfoOverlayProps extends OverlayProps {
10
10
  }
11
11
  export interface ManageOverlayProps extends OverlayProps {
12
- elements?: HTMLElementFrame[];
13
- buttons?: HTMLLabelElement[];
12
+ elements?: WidgetFrame[];
13
+ buttons?: LabelWidget[];
14
14
  }
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, SetStateAction } from "react";
2
2
  import { Replace } from "./Action";
3
- import { HTMLLabelElement } from "./HTMLElement";
3
+ import { LabelWidget } from "./widget";
4
4
  /**
5
5
  * State type for the React component
6
6
  * @template T
@@ -27,7 +27,7 @@ export type State<T> = [T, StateAction<T>];
27
27
  * @property {"full"} full - Full size
28
28
  */
29
29
  export type ImageSize = "sub" | "full";
30
- export type Size = "4xs" | "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | "auto";
30
+ export type Size = "4xs" | "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "auto";
31
31
  /**
32
32
  * Image size type
33
33
  * @enum {string}
@@ -37,7 +37,7 @@ export type Size = "4xs" | "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2
37
37
  * @property {"full"} full - Full size
38
38
  */
39
39
  export type OnClick<Request = unknown, Response = unknown> = (prop?: Request) => Response | ((prop?: Request) => Promise<Response>);
40
- export interface Button extends HTMLLabelElement {
40
+ export interface Button extends LabelWidget {
41
41
  }
42
42
  export type FileRead = string | ArrayBuffer | null;
43
43
  export type Disabled = boolean | OnClick;
@@ -54,7 +54,7 @@ export type Titles = {
54
54
  subtitleColor?: string;
55
55
  };
56
56
  export type DataSet<T = any> = {
57
- items?: T[];
57
+ items: T[];
58
58
  renderItem: (item: T, index?: number) => React.ReactNode;
59
59
  titles?: Titles;
60
60
  interaction?: React.ReactNode;
@@ -83,4 +83,5 @@ export interface Order {
83
83
  orderBy: string;
84
84
  orderHow: "asc" | "desc" | "";
85
85
  }
86
+ export type Step = [Titles, boolean];
86
87
  export {};
@@ -1,6 +1,6 @@
1
1
  import { Button, Titles } from "./Property";
2
- import { EventsProps } from "./Action";
3
- interface Options<T> {
2
+ import { ActionProps } from "./Action";
3
+ interface Option<T> {
4
4
  titleSize?: string;
5
5
  subtitleSize?: string;
6
6
  overflowScroll?: boolean;
@@ -11,12 +11,12 @@ interface Options<T> {
11
11
  }
12
12
  export interface ShelfProps<T> {
13
13
  children: React.ReactNode;
14
- action?: EventsProps & {
14
+ action?: ActionProps & {
15
15
  tabs?: Button[];
16
16
  };
17
17
  titles?: Titles;
18
18
  debug?: string;
19
19
  className?: string;
20
- options?: Options<T>;
20
+ option?: Option<T>;
21
21
  }
22
22
  export {};
@@ -1,9 +1,9 @@
1
1
  export * from "./Action";
2
2
  export * from "./Card";
3
- export * from "./HTMLElement";
3
+ export * from "./Color";
4
+ export * from "./widget";
4
5
  export * from "./Layout";
5
6
  export * from "./Overlay";
6
7
  export * from "./Property";
7
8
  export * from "./Theme";
8
9
  export * from "./Shelf";
9
- export * from "./widget";
@@ -1,9 +1,9 @@
1
1
  export * from "./Action";
2
2
  export * from "./Card";
3
- export * from "./HTMLElement";
3
+ export * from "./Color";
4
+ export * from "./widget";
4
5
  export * from "./Layout";
5
6
  export * from "./Overlay";
6
7
  export * from "./Property";
7
8
  export * from "./Theme";
8
9
  export * from "./Shelf";
9
- export * from "./widget";
@@ -1,6 +1,6 @@
1
1
  import { Titles } from "../Property";
2
2
  export type { CarouselContent };
3
- interface Options {
3
+ interface Option {
4
4
  background: string;
5
5
  text: string;
6
6
  }
@@ -8,5 +8,5 @@ interface CarouselContent<T> {
8
8
  tag: T;
9
9
  titles: Titles;
10
10
  image?: string;
11
- options?: Partial<Options>;
11
+ option?: Partial<Option>;
12
12
  }
@@ -7,13 +7,13 @@ export type Display = Record<string, {
7
7
  title: string;
8
8
  icon?: string;
9
9
  }>;
10
- interface Options {
10
+ interface Option {
11
11
  size?: Size;
12
12
  text?: string;
13
13
  className?: string;
14
14
  }
15
15
  export interface SwitchProps<T> extends Switch<T> {
16
16
  display?: Display;
17
- options?: Options;
17
+ option?: Option;
18
18
  }
19
19
  export {};
@@ -1,2 +1,57 @@
1
+ import { Color } from "../Color";
2
+ import { Disabled, OnClick, Size, State } from "../Property";
1
3
  export * from "./Carousel";
2
4
  export * from "./Switch";
5
+ export declare const WidgetType: {
6
+ readonly TEXT: "text";
7
+ readonly BUTTON: "button";
8
+ readonly INPUT: "input";
9
+ readonly SELECT: "select";
10
+ readonly TOGGLE: "toggle";
11
+ };
12
+ export type WidgetType = (typeof WidgetType)[keyof typeof WidgetType];
13
+ export interface Widget {
14
+ option?: {
15
+ className?: string;
16
+ width?: Size;
17
+ height?: Size;
18
+ background?: string;
19
+ text?: string;
20
+ disabled?: Disabled;
21
+ rounded?: string;
22
+ };
23
+ }
24
+ export interface LabelWidget extends Widget {
25
+ title: string;
26
+ hoverState?: State<boolean>;
27
+ onClick?: OnClick;
28
+ }
29
+ export type SelectOption<T> = [T, string];
30
+ export interface SelectWidget<T> extends Widget {
31
+ state: State<T>;
32
+ selectOptions?: SelectOption<T>[];
33
+ placeholder?: string;
34
+ }
35
+ type InputType = "text" | "password" | "date" | "email" | "phone" | "number";
36
+ export interface InputWidget extends Widget {
37
+ state: State<string> | State<string | undefined>;
38
+ onKeyDown?: (e: React.KeyboardEvent) => void;
39
+ placeholder?: string;
40
+ flag?: boolean;
41
+ type?: InputType;
42
+ label?: LabelWidget;
43
+ }
44
+ export interface CheckBoxWidget extends Widget {
45
+ state: State<boolean>;
46
+ labels: string;
47
+ color: Color;
48
+ }
49
+ export interface WidgetFrame {
50
+ title: string;
51
+ type: WidgetType;
52
+ state: State<any>;
53
+ selectOptions?: SelectOption<string | number>[];
54
+ labels?: [string | boolean, string][];
55
+ disabled?: Disabled;
56
+ onClick?: OnClick;
57
+ }