@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
@@ -1,22 +0,0 @@
1
- import Layout from "../widget/dashboard/Layout";
2
- import MyPageLayout from "../widget/dashboard/mypage/Layout";
3
- import Profile from "../widget/dashboard/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
- export { default as buttonClassNames } from "./../widget/dashboard/buttonClassNames";
22
- export { Dashboard, MyPage };
@@ -1,13 +0,0 @@
1
- import Layout from "../widget/dashboard/Layout";
2
- import MyPageLayout from "../widget/dashboard/mypage/Layout";
3
- import Navigate from "../widget/dashboard/mypage/Navigate";
4
- import Profile from "../widget/dashboard/mypage/Profile";
5
- const Dashboard = {
6
- Layout,
7
- };
8
- const MyPage = {
9
- Layout: MyPageLayout,
10
- Card: { Profile, Navigate },
11
- };
12
- export { default as buttonClassNames } from "./../widget/dashboard/buttonClassNames";
13
- export { Dashboard, MyPage };
@@ -1,3 +0,0 @@
1
- export declare function NavigationContainer({ children, }: {
2
- children: React.ReactNode;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { CheckBoxWidget } from "../interface";
2
- export default function Checkbox({ state: [checked, setChecked], labels, options, color, }: CheckBoxWidget): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { InputWidget } from "../interface";
2
- import "react-datepicker/dist/react-datepicker.css";
3
- export default function DatePicker({ options }: InputWidget): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { InputWidget } from "../interface";
2
- export default function EmailInput({ state, placeholder, options, }: InputWidget): import("react/jsx-runtime").JSX.Element;
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,6 +0,0 @@
1
- import { InputWidget } from "../../interface";
2
- declare function Input({ state, onKeyDown, placeholder, options }: InputWidget): import("react/jsx-runtime").JSX.Element;
3
- declare namespace Input {
4
- var LG: ({ state, placeholder, flag, type, label }: InputWidget) => import("react/jsx-runtime").JSX.Element;
5
- }
6
- export default Input;
@@ -1,68 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useId, useState, useRef } from "react";
3
- import { cn, gradient } from "../../util";
4
- import Obstacle from "../Obstacle";
5
- import Label from "./Label";
6
- const widthSize = {
7
- xs: "w-28",
8
- sm: "w-48",
9
- md: "w-64",
10
- lg: "w-96",
11
- xl: "w-128",
12
- "2xl": "w-144",
13
- full: "w-full",
14
- };
15
- function Input({ state, onKeyDown, placeholder, options }) {
16
- const { width, disabled } = options ?? {};
17
- const [value, setValue] = state;
18
- const id = useId();
19
- const container = {
20
- positions: "relative",
21
- width: `${widthSize[width ?? "xs"]} h-8`,
22
- displays: "flex items-center",
23
- };
24
- const body = {
25
- styles: "rounded-md bg-slate-200 text-xs",
26
- sizes: "w-full h-full",
27
- paddings: "pl-4",
28
- pseudo: "focus:outline-none focus:bg-white focus:text-black box-shadow-focus",
29
- effect: `transition-all`,
30
- };
31
- return (_jsxs("div", { className: cn(container), children: [_jsx("input", { className: cn(body), id: id, type: "text", value: value, placeholder: placeholder ?? "입력해주세요", onKeyDown: onKeyDown, onChange: (e) => setValue(e.target.value) }), _jsx(Obstacle, { disabled: disabled })] }));
32
- }
33
- function LG({ state, placeholder, flag, type, label }) {
34
- const [value, setValue] = state;
35
- const [onFocus, setOnFocus] = useState(false);
36
- const ref = useRef(null);
37
- const container = {
38
- positions: "relative",
39
- };
40
- const placeholderBox = {
41
- positions: "absolute left-5",
42
- styles: "duration-300",
43
- fonts: "leading-none text-gray-medium",
44
- animation: value || onFocus ? "top-2.625 text-xs" : "top-4.375 text-base",
45
- };
46
- const inputBox = {
47
- sizes: "w-102.5 h-13.5",
48
- paddings: `${placeholder && "pt-3"} pl-5`,
49
- fonts: "text-sm",
50
- background: flag === true
51
- ? "bg-green-dark/10"
52
- : flag === false
53
- ? "bg-crimson-burgundy/10 text-crimson-burgundy"
54
- : "bg-gray-light",
55
- styles: "bg-gray-light rounded-md outline-none",
56
- animation: onFocus ? "border-2 border-green-dark box-shadow" : "border-0",
57
- };
58
- return (_jsxs("div", { className: cn(container), children: [_jsx("div", { onClick: () => ref.current?.focus(), className: cn(placeholderBox), children: placeholder }), _jsx("input", { ref: ref, className: cn(inputBox), value: value, onFocus: () => setOnFocus(true), onBlur: () => setOnFocus(false), onChange: (e) => setValue(e.target.value), type: type ?? "text" }), label && (_jsx(Label.Button, { title: label.title, onClick: label.onClick, options: {
59
- width: "sm",
60
- height: "xs",
61
- className: "absolute top-3.5 right-3.75",
62
- background: label.options?.background ?? gradient.bg.greenToRed,
63
- text: label.options?.text ?? "text-white",
64
- ...label.options,
65
- } }))] }));
66
- }
67
- Input.LG = LG;
68
- export default Input;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes