@edu-tosel/design 1.0.61 → 1.0.63
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 +2 -1
- 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
|
@@ -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,
|
|
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"),
|
|
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,
|
|
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,
|
|
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,
|
|
3
|
-
declare function _Button({ titles, onClick,
|
|
4
|
-
declare function ButtonInLay({ titles, buttonInLay,
|
|
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;
|
package/card/template/NavCard.js
CHANGED
|
@@ -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,
|
|
4
|
-
return (_jsx(NavCardDesign, { titles: titles,
|
|
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,
|
|
7
|
-
return (_jsx(NavCardDesign, { titles: titles,
|
|
8
|
-
...
|
|
6
|
+
function _Button({ titles, onClick, option }) {
|
|
7
|
+
return (_jsx(NavCardDesign, { titles: titles, option: {
|
|
8
|
+
...option,
|
|
9
9
|
onClick,
|
|
10
|
-
width:
|
|
11
|
-
height:
|
|
10
|
+
width: option?.width ?? "xs",
|
|
11
|
+
height: option?.height ?? "sm",
|
|
12
12
|
} }));
|
|
13
13
|
}
|
|
14
|
-
function ButtonInLay({ titles, buttonInLay,
|
|
15
|
-
return (_jsx(NavCardDesign, { titles: titles,
|
|
16
|
-
...
|
|
17
|
-
width:
|
|
18
|
-
height:
|
|
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
|
-
|
|
30
|
+
option: { ...banner.option, noShadow: true },
|
|
31
31
|
};
|
|
32
32
|
const buttonInLayProps = {
|
|
33
33
|
...buttonInLay,
|
|
34
|
-
|
|
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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import SVG from "
|
|
3
|
-
import { cn } from "
|
|
4
|
-
import CardDesign from "
|
|
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
|
|
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, {
|
|
38
|
+
return (_jsxs(CardDesign, { option: {
|
|
39
39
|
width: "2xl",
|
|
40
40
|
height: "2xs",
|
|
41
|
-
}, children: [_jsx("div", { className: cn(progressBox), children: steps.map(([
|
|
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,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
|
+
}
|
|
@@ -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,
|
|
8
|
-
...props.
|
|
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.
|
|
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
|
|
package/interface/Action.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LabelWidget } from "./widget";
|
|
2
|
-
import { DataField, OnClick } from "./Property";
|
|
2
|
+
import { DataField, OnClick, Size } from "./Property";
|
|
3
3
|
import { Color } from "./Color";
|
|
4
4
|
export interface ActionEvent {
|
|
5
5
|
event: string;
|
|
@@ -15,22 +15,15 @@ export interface ShowAction {
|
|
|
15
15
|
event: string;
|
|
16
16
|
isVisible: boolean;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
export interface ReplaceProps {
|
|
23
|
-
actions?: Replace[];
|
|
24
|
-
children?: React.ReactNode;
|
|
25
|
-
}
|
|
26
|
-
export interface EventsProps {
|
|
27
|
-
replaces?: Action<boolean | string | null | undefined>[];
|
|
28
|
-
shows?: Action<boolean | string>[];
|
|
18
|
+
export interface ActionProps {
|
|
19
|
+
replaces?: Replace[];
|
|
20
|
+
shows?: Show[];
|
|
29
21
|
}
|
|
30
22
|
export interface DataFieldProps<T> {
|
|
31
23
|
id: string;
|
|
32
24
|
dataField?: DataField<T>;
|
|
33
|
-
|
|
25
|
+
option?: {
|
|
26
|
+
height?: Size;
|
|
34
27
|
position?: string;
|
|
35
28
|
padding?: string;
|
|
36
29
|
};
|
|
@@ -41,7 +34,7 @@ export interface RowProps<T> {
|
|
|
41
34
|
onClick?: OnClick<T>;
|
|
42
35
|
buttons?: LabelWidget[];
|
|
43
36
|
dot?: Color;
|
|
44
|
-
|
|
37
|
+
option?: {
|
|
45
38
|
height?: string;
|
|
46
39
|
size?: string;
|
|
47
40
|
padding?: string;
|
package/interface/Board.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { DataField, DataSet, Size, Titles } from "./Property";
|
|
2
|
-
import {
|
|
2
|
+
import { ActionProps } from "./Action";
|
|
3
3
|
import { InputWidget, LabelWidget, SelectWidget } from "./widget";
|
|
4
|
-
interface
|
|
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,8 +16,8 @@ interface OptionsProps {
|
|
|
15
16
|
export interface BoardProps<B> {
|
|
16
17
|
header?: BoardHeaderProps<B>;
|
|
17
18
|
children?: React.ReactNode;
|
|
18
|
-
action?:
|
|
19
|
-
|
|
19
|
+
action?: ActionProps;
|
|
20
|
+
option?: BoardOption;
|
|
20
21
|
debug?: string;
|
|
21
22
|
buttons?: LabelWidget[];
|
|
22
23
|
}
|
|
@@ -28,12 +29,10 @@ export interface BoardHeaderProps<B> {
|
|
|
28
29
|
selects?: SelectWidget<B>[];
|
|
29
30
|
inputs?: InputWidget[];
|
|
30
31
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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> {
|
package/interface/Card.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
81
|
+
option?: {
|
|
81
82
|
titleBorder?: string;
|
|
82
|
-
} &
|
|
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
|
-
|
|
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 {};
|
package/interface/Layout.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface DashboardHeaderProps {
|
|
|
33
33
|
logo?: ReactNode;
|
|
34
34
|
notification: NotificationProps;
|
|
35
35
|
menu?: MenuProps;
|
|
36
|
-
|
|
36
|
+
option?: {
|
|
37
37
|
background?: string;
|
|
38
38
|
text?: string;
|
|
39
39
|
className?: string;
|
|
@@ -43,7 +43,7 @@ export interface DashboardProps {
|
|
|
43
43
|
header: DashboardHeaderProps;
|
|
44
44
|
navigations: ReactNode[];
|
|
45
45
|
children: ReactNode;
|
|
46
|
-
|
|
46
|
+
option?: {
|
|
47
47
|
background?: string;
|
|
48
48
|
};
|
|
49
49
|
}
|
package/interface/Modal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Button, Scripts, Size, State, Titles } from "./Property";
|
|
3
3
|
import { ShowAction } from "./Action";
|
|
4
|
-
interface
|
|
4
|
+
interface Option {
|
|
5
5
|
width: Size;
|
|
6
6
|
height: Size;
|
|
7
7
|
padding: boolean;
|
|
@@ -16,7 +16,7 @@ interface ModalProps {
|
|
|
16
16
|
children: ReactNode;
|
|
17
17
|
showAction?: ShowAction;
|
|
18
18
|
className?: string;
|
|
19
|
-
|
|
19
|
+
option?: Partial<Option>;
|
|
20
20
|
debug?: string;
|
|
21
21
|
}
|
|
22
22
|
interface ConfirmModalProps extends ModalProps {
|
|
@@ -24,7 +24,7 @@ interface ConfirmModalProps extends ModalProps {
|
|
|
24
24
|
}
|
|
25
25
|
interface AlertModalProps extends Omit<ModalProps, "children"> {
|
|
26
26
|
scripts: Scripts;
|
|
27
|
-
|
|
27
|
+
option?: {
|
|
28
28
|
buttons?: Button[];
|
|
29
29
|
};
|
|
30
30
|
}
|
package/interface/Property.d.ts
CHANGED
|
@@ -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}
|
|
@@ -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 {};
|
package/interface/Shelf.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, Titles } from "./Property";
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
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?:
|
|
14
|
+
action?: ActionProps & {
|
|
15
15
|
tabs?: Button[];
|
|
16
16
|
};
|
|
17
17
|
titles?: Titles;
|
|
18
18
|
debug?: string;
|
|
19
19
|
className?: string;
|
|
20
|
-
|
|
20
|
+
option?: Option<T>;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Titles } from "../Property";
|
|
2
2
|
export type { CarouselContent };
|
|
3
|
-
interface
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
17
|
+
option?: Option;
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DataFieldProps } from "../../interface";
|
|
2
|
-
export default function DataFieldDesign<T extends Record<string, any>>({ id, dataField,
|
|
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
|
-
|
|
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 } =
|
|
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:
|
|
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,
|
|
2
|
+
export default function RowDesign<T>({ item, dataField, option, onClick, buttons, dot, }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,8 +3,8 @@ import { useId } from "react";
|
|
|
3
3
|
import { ColorSet } from "../../interface";
|
|
4
4
|
import { cn } from "../../util";
|
|
5
5
|
import { Label } from "../../widget";
|
|
6
|
-
export default function RowDesign({ item, dataField,
|
|
7
|
-
const { size, padding, text, noHover, className, isPointer } =
|
|
6
|
+
export default function RowDesign({ item, dataField, option, onClick, buttons, dot, }) {
|
|
7
|
+
const { size, padding, text, noHover, className, isPointer } = option ?? {};
|
|
8
8
|
const id = useId();
|
|
9
9
|
const container = {
|
|
10
10
|
positions: "relative",
|
|
@@ -26,9 +26,9 @@ export default function RowDesign({ item, dataField, options, onClick, buttons,
|
|
|
26
26
|
styles: "rounded-full",
|
|
27
27
|
};
|
|
28
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,
|
|
30
|
-
background:
|
|
31
|
-
text:
|
|
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",
|
|
32
32
|
width: "xs",
|
|
33
33
|
height: "xs",
|
|
34
34
|
} }, id + title))) })] }));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ShelfProps } from "../../interface";
|
|
2
|
-
export default function Shelf<T extends string | number>({ children, className,
|
|
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,
|
|
4
|
+
export default function Shelf({ children, className, option, titles, debug, }) {
|
|
5
5
|
const { title, titleColor } = titles ?? {};
|
|
6
|
-
const { titleSize, subtitleSize, isSize } =
|
|
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/
|
|
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/
|
|
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
|
|
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,
|
|
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,
|
|
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,
|