@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.
- package/asset/svg/Operation.js +1 -1
- package/asset/svg/Operation.tsx +3 -3
- package/board/design/Board.design.d.ts +1 -1
- package/board/design/Board.design.js +5 -5
- package/board/design/Header.design.d.ts +1 -1
- package/board/design/Header.design.js +6 -6
- package/board/template/CanvasBoard.d.ts +1 -1
- package/board/template/CanvasBoard.js +3 -3
- package/board/template/ManageBoard.d.ts +1 -1
- package/board/template/ManageBoard.js +5 -5
- package/board/template/PaperBoard.d.ts +1 -1
- package/board/template/PaperBoard.js +3 -3
- package/card/design/Card.design.d.ts +1 -1
- package/card/design/Card.design.js +8 -6
- package/card/design/InfoCard.design.d.ts +1 -1
- package/card/design/InfoCard.design.js +3 -3
- package/card/design/NavCard.design.d.ts +1 -1
- package/card/design/NavCard.design.js +3 -3
- package/card/design/RollCard.design.js +2 -2
- package/card/design/TableCard.design.d.ts +1 -1
- package/card/design/TableCard.design.js +7 -7
- package/card/index.d.ts +1 -0
- package/card/index.js +1 -0
- package/card/template/AddCard.d.ts +1 -1
- package/card/template/AddCard.js +3 -3
- package/card/template/ChartCard.d.ts +1 -1
- package/card/template/ChartCard.js +3 -3
- package/card/template/ConfirmCard/index.d.ts +9 -0
- package/card/template/ConfirmCard/index.js +19 -0
- package/card/template/InfoCard/Academy.js +4 -4
- package/card/template/InfoCard/Exam.d.ts +1 -1
- package/card/template/InfoCard/Exam.js +4 -4
- package/card/template/InfoCard/ExamData.js +2 -2
- package/card/template/InfoCard/Finance.js +1 -1
- package/card/template/InfoCard/Grade.js +2 -2
- package/card/template/InfoCard/Item.js +1 -1
- package/card/template/InfoCard/PersonalInformation.js +2 -2
- package/card/template/InfoCard/Product.js +2 -2
- package/card/template/InfoCard/Student.js +2 -2
- package/card/template/NavCard.d.ts +3 -3
- package/card/template/NavCard.js +14 -14
- package/card/template/ProgressCard/Large.d.ts +2 -0
- package/card/template/{ProgressCard.js → ProgressCard/Large.js} +6 -6
- package/card/template/ProgressCard/Small.d.ts +2 -0
- package/card/template/ProgressCard/Small.js +34 -0
- package/card/template/ProgressCard/index.d.ts +7 -0
- package/card/template/ProgressCard/index.js +7 -0
- package/card/template/TableCard.js +4 -3
- package/globals.css +4 -3
- package/interface/Action.d.ts +7 -14
- package/interface/Board.d.ts +9 -10
- package/interface/Card.d.ts +13 -7
- package/interface/Layout.d.ts +2 -2
- package/interface/Modal.d.ts +3 -3
- package/interface/Property.d.ts +3 -2
- package/interface/Shelf.d.ts +4 -4
- package/interface/widget/Carousel.d.ts +2 -2
- package/interface/widget/Switch.d.ts +2 -2
- package/interface/widget/index.d.ts +1 -1
- package/layout/design/DataField.design.d.ts +1 -1
- package/layout/design/DataField.design.js +7 -3
- package/layout/design/Row.design.d.ts +1 -1
- package/layout/design/Row.design.js +5 -5
- package/layout/design/Shelf.design.d.ts +1 -1
- package/layout/design/Shelf.design.js +2 -2
- package/layout/index.d.ts +1 -1
- package/layout/index.js +1 -1
- package/layout/template/Action.d.ts +10 -1
- package/layout/template/DataField.js +5 -2
- package/layout/template/Gallery.d.ts +4 -4
- package/layout/template/Gallery.js +3 -3
- package/layout/template/Promotion.d.ts +1 -1
- package/layout/template/Promotion.js +1 -1
- package/layout/template/Row.d.ts +2 -2
- package/layout/template/Row.js +6 -6
- package/layout/template/Shelf.d.ts +1 -1
- package/layout/template/Shelf.js +6 -6
- package/layout/template/Sign.d.ts +5 -5
- package/layout/template/Sign.js +5 -5
- package/layout/template/Tab.d.ts +2 -2
- package/layout/template/Tab.js +4 -4
- package/layout/{widget → template}/dashboard/Header.d.ts +1 -1
- package/layout/{widget → template}/dashboard/Header.js +3 -3
- package/layout/{widget → template}/dashboard/Layout.d.ts +1 -1
- package/layout/{widget → template}/dashboard/Layout.js +5 -5
- package/layout/{widget → template}/dashboard/Menu.js +2 -2
- package/layout/template/dashboard/Navigation.d.ts +7 -0
- package/layout/{widget → template}/dashboard/Navigation.js +5 -1
- package/layout/{widget → template}/dashboard/Notification.js +1 -1
- package/layout/template/dashboard/index.d.ts +28 -0
- package/layout/template/dashboard/index.js +18 -0
- package/layout/{widget → template}/dashboard/mypage/Layout.d.ts +1 -1
- package/layout/{widget → template}/dashboard/mypage/Layout.js +5 -5
- package/layout/{widget → template}/dashboard/mypage/Navigate.js +2 -2
- package/layout/{widget → template}/dashboard/mypage/Profile.js +4 -4
- package/layout/template/dashboard/style.d.ts +10 -0
- package/layout/template/dashboard/style.js +16 -0
- package/layout/template/home/Notice.d.ts +2 -2
- package/layout/template/home/Notice.js +2 -2
- package/layout/template/home/Promotion.d.ts +3 -3
- package/layout/template/home/Promotion.js +4 -4
- package/layout/template/home/Service.d.ts +1 -1
- package/layout/template/home/Service.js +2 -2
- package/layout/template/home/layout/Carousel.js +2 -2
- package/layout/{widget → template}/sign/WithTitle.js +1 -1
- package/modal/design/ConfirmModal.design.d.ts +1 -1
- package/modal/design/ConfirmModal.design.js +3 -3
- package/modal/design/Modal.design.d.ts +1 -1
- package/modal/design/Modal.design.js +3 -6
- package/modal/template/Alert.d.ts +1 -1
- package/modal/template/Alert.js +3 -3
- package/modal/template/Confirm/Alert.js +1 -1
- package/modal/template/Confirm/Confirm.js +1 -1
- package/modal/template/Confirm/Input.js +1 -1
- package/modal/template/Confirm/Tag.d.ts +1 -1
- package/modal/template/Confirm/Tag.js +2 -2
- package/modal/template/Input.d.ts +1 -1
- package/modal/template/Input.js +3 -3
- package/modal/template/Postcode.js +1 -1
- package/overlay/design/Overlay.design.js +1 -1
- package/overlay/template/Manage.js +5 -5
- package/package.json +1 -1
- package/tailwind.config.ts +1 -0
- package/version.txt +1 -1
- package/widget/design/Label.design.d.ts +1 -1
- package/widget/design/Label.design.js +3 -3
- package/widget/index.d.ts +3 -2
- package/widget/index.js +3 -2
- package/widget/template/CheckBox.d.ts +2 -0
- package/widget/{CheckBox.js → template/CheckBox.js} +2 -2
- package/widget/template/DatePicker.d.ts +3 -0
- package/widget/{DatePicker.js → template/DatePicker.js} +2 -2
- package/widget/template/EmailInput.d.ts +2 -0
- package/widget/{EmailInput.js → template/EmailInput.js} +4 -4
- package/widget/template/Input/Form.d.ts +2 -0
- package/widget/template/Input/Form.js +44 -0
- package/widget/template/Input/index.d.ts +6 -0
- package/widget/template/Input/index.js +34 -0
- package/widget/template/Label.d.ts +2 -2
- package/widget/template/Label.js +7 -7
- package/widget/{Obstacle.d.ts → template/Obstacle.d.ts} +1 -1
- package/widget/{Obstacle.js → template/Obstacle.js} +1 -1
- package/widget/template/Select/Select.LG.d.ts +1 -1
- package/widget/template/Select/Select.LG.js +3 -3
- package/widget/template/Select/Select.d.ts +1 -1
- package/widget/template/Select/Select.js +3 -3
- package/widget/template/Switch/Handle.d.ts +1 -1
- package/widget/template/Switch/Handle.js +2 -2
- package/widget/template/Switch/Switch.d.ts +1 -1
- package/widget/template/Switch/Switch.js +2 -2
- package/widget/{Toggle.d.ts → template/Toggle.d.ts} +2 -2
- package/widget/{Toggle.js → template/Toggle.js} +3 -3
- package/card/template/ProgressCard.d.ts +0 -10
- package/layout/template/Dashboard.d.ts +0 -22
- package/layout/template/Dashboard.js +0 -13
- package/layout/widget/dashboard/Navigation.d.ts +0 -3
- package/widget/CheckBox.d.ts +0 -2
- package/widget/DatePicker.d.ts +0 -3
- package/widget/EmailInput.d.ts +0 -2
- package/widget/design/Tag.design.d.ts +0 -0
- package/widget/design/Tag.design.js +0 -1
- package/widget/template/Input.d.ts +0 -6
- package/widget/template/Input.js +0 -68
- /package/layout/{widget → template}/dashboard/Menu.d.ts +0 -0
- /package/layout/{widget → template}/dashboard/Notification.d.ts +0 -0
- /package/layout/{widget → template}/dashboard/buttonClassNames.d.ts +0 -0
- /package/layout/{widget → template}/dashboard/buttonClassNames.js +0 -0
- /package/layout/{widget → template}/dashboard/mypage/Navigate.d.ts +0 -0
- /package/layout/{widget → template}/dashboard/mypage/Profile.d.ts +0 -0
- /package/layout/{widget → template}/promotion/Layout.d.ts +0 -0
- /package/layout/{widget → template}/promotion/Layout.js +0 -0
- /package/layout/{widget → template}/promotion/Thumbnail.d.ts +0 -0
- /package/layout/{widget → template}/promotion/Thumbnail.js +0 -0
- /package/layout/{widget → template}/sign/Box.d.ts +0 -0
- /package/layout/{widget → template}/sign/Box.js +0 -0
- /package/layout/{widget → template}/sign/Button.d.ts +0 -0
- /package/layout/{widget → template}/sign/Button.js +0 -0
- /package/layout/{widget → template}/sign/Check.d.ts +0 -0
- /package/layout/{widget → template}/sign/Check.js +0 -0
- /package/layout/{widget → template}/sign/Layout.d.ts +0 -0
- /package/layout/{widget → template}/sign/Layout.js +0 -0
- /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 };
|
package/widget/CheckBox.d.ts
DELETED
package/widget/DatePicker.d.ts
DELETED
package/widget/EmailInput.d.ts
DELETED
|
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;
|
package/widget/template/Input.js
DELETED
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|