@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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Button,
|
|
2
|
-
export default function Gallery({ action, children,
|
|
3
|
-
action:
|
|
1
|
+
import { Button, ActionProps } from "../../interface";
|
|
2
|
+
export default function Gallery({ action, children, option, }: {
|
|
3
|
+
action: ActionProps & {
|
|
4
4
|
tabs?: Button[];
|
|
5
5
|
};
|
|
6
6
|
children: React.ReactNode;
|
|
7
|
-
|
|
7
|
+
option?: {
|
|
8
8
|
tabTextColor?: string;
|
|
9
9
|
};
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,12 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import Action from "./Action";
|
|
3
3
|
import Tab from "./Tab";
|
|
4
4
|
import { cn } from "../../util";
|
|
5
|
-
export default function Gallery({ action, children,
|
|
6
|
-
const { tabTextColor } =
|
|
5
|
+
export default function Gallery({ action, children, option, }) {
|
|
6
|
+
const { tabTextColor } = option ?? {};
|
|
7
7
|
const tabBox = {
|
|
8
8
|
positions: "xl:absolute xl:-bottom-18 xl:left-0 z-5",
|
|
9
9
|
};
|
|
10
|
-
return (_jsxs("div", { className: "relative w-full flex", children: [_jsx(Action.Replace, { actions: action?.replaces, children: _jsx(Action.Show, { actions: action?.shows, children: children }) }), action?.tabs && (_jsx(Tab, { tabs: action?.tabs,
|
|
10
|
+
return (_jsxs("div", { className: "relative w-full flex", children: [_jsx(Action.Replace, { actions: action?.replaces, children: _jsx(Action.Show, { actions: action?.shows, children: children }) }), action?.tabs && (_jsx(Tab, { tabs: action?.tabs, option: {
|
|
11
11
|
className: cn(tabBox),
|
|
12
12
|
text: tabTextColor,
|
|
13
13
|
} }))] }));
|
package/layout/template/Row.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RowProps } from "../../interface";
|
|
2
2
|
declare function Row<T>({ item, dataField, onClick, buttons, dot }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace Row {
|
|
4
|
-
var Card: <T>({ item, dataField, onClick, buttons, height, noPadding, noHover, dot, }: Omit<RowProps<T>, "
|
|
4
|
+
var Card: <T>({ item, dataField, onClick, buttons, height, noPadding, noHover, dot, }: Omit<RowProps<T>, "option"> & {
|
|
5
5
|
height?: string | undefined;
|
|
6
6
|
noPadding?: boolean | undefined;
|
|
7
7
|
noHover?: boolean | undefined;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
var Board: <T>({ item, dataField, onClick, buttons, dot,
|
|
9
|
+
var Board: <T>({ item, dataField, onClick, buttons, dot, option, }: RowProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
}
|
|
11
11
|
export default Row;
|
package/layout/template/Row.js
CHANGED
|
@@ -2,17 +2,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId } from "react";
|
|
3
3
|
import RowDesign from "../design/Row.design";
|
|
4
4
|
function Row({ item, dataField, onClick, buttons, dot }) {
|
|
5
|
-
return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot,
|
|
5
|
+
return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot, option: {
|
|
6
6
|
size: "w-full h-12",
|
|
7
7
|
noHover: true,
|
|
8
8
|
text: "text-xs",
|
|
9
9
|
className: "text-center",
|
|
10
10
|
} }));
|
|
11
11
|
}
|
|
12
|
-
function Board({ item, dataField, onClick, buttons, dot,
|
|
12
|
+
function Board({ item, dataField, onClick, buttons, dot, option, }) {
|
|
13
13
|
const id = useId();
|
|
14
|
-
return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot,
|
|
15
|
-
...
|
|
14
|
+
return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot, option: {
|
|
15
|
+
...option,
|
|
16
16
|
size: "w-full h-12",
|
|
17
17
|
padding: "px-2 xs:px-4 xl:px-7.5",
|
|
18
18
|
text: "text-xl",
|
|
@@ -20,8 +20,8 @@ function Board({ item, dataField, onClick, buttons, dot, options, }) {
|
|
|
20
20
|
}
|
|
21
21
|
function Card({ item, dataField, onClick, buttons, height, noPadding, noHover, dot, }) {
|
|
22
22
|
const id = useId();
|
|
23
|
-
return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot,
|
|
24
|
-
size: `w-full ${height ?? "h-
|
|
23
|
+
return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, dot: dot, option: {
|
|
24
|
+
size: `w-full ${height ?? "h-15"}`,
|
|
25
25
|
padding: !noPadding ? "px-2 xs:px-4 xl:px-7.5" : "",
|
|
26
26
|
text: "text-base",
|
|
27
27
|
noHover,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ShelfProps } from "../../interface/Shelf";
|
|
2
2
|
declare function Shelf({ titles, debug, children }: ShelfProps<string | number>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace Shelf {
|
|
4
|
-
var Wrap: ({ className, titles, children, debug,
|
|
4
|
+
var Wrap: ({ className, titles, children, debug, option, }: ShelfProps<string | number>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
var Row: ({ titles, children, className, debug, }: ShelfProps<string | number>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
var Col: ({ titles, children, debug, className, }: ShelfProps<string | number>) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
}
|
package/layout/template/Shelf.js
CHANGED
|
@@ -11,17 +11,17 @@ function Shelf({ titles, debug, children }) {
|
|
|
11
11
|
const container = {
|
|
12
12
|
displays: "inline-flex flex-col gap-12",
|
|
13
13
|
};
|
|
14
|
-
return (_jsx(ShelfDesign, { titles: titles, className: cn(container), debug: debug,
|
|
14
|
+
return (_jsx(ShelfDesign, { titles: titles, className: cn(container), debug: debug, option: {
|
|
15
15
|
titleSize: "text-lg xl:text-2xl",
|
|
16
16
|
}, children: children }));
|
|
17
17
|
}
|
|
18
|
-
function Wrap({ className, titles, children, debug,
|
|
18
|
+
function Wrap({ className, titles, children, debug, option, }) {
|
|
19
19
|
const container = {
|
|
20
20
|
displays: "flex flex-row flex-wrap",
|
|
21
|
-
gaps: gap[
|
|
21
|
+
gaps: gap[option?.gap ?? "xy"],
|
|
22
22
|
className,
|
|
23
23
|
};
|
|
24
|
-
return (_jsx(ShelfDesign, { titles: titles, className: cn(container),
|
|
24
|
+
return (_jsx(ShelfDesign, { titles: titles, className: cn(container), option: {
|
|
25
25
|
titleSize: "text-lg xl:text-2xl",
|
|
26
26
|
subtitleSize: "text-sm",
|
|
27
27
|
}, debug: debug, children: children }));
|
|
@@ -31,7 +31,7 @@ function Row({ titles, children, className, debug, }) {
|
|
|
31
31
|
displays: "flex flex-row",
|
|
32
32
|
className: className ?? "gap-x-7.5",
|
|
33
33
|
};
|
|
34
|
-
return (_jsx(ShelfDesign, { titles: titles, className: cn(container),
|
|
34
|
+
return (_jsx(ShelfDesign, { titles: titles, className: cn(container), option: {
|
|
35
35
|
titleSize: "text-lg xl:text-2xl",
|
|
36
36
|
subtitleSize: "text-sm",
|
|
37
37
|
isSize: true,
|
|
@@ -42,7 +42,7 @@ function Col({ titles, children, debug, className, }) {
|
|
|
42
42
|
displays: "flex flex-col flex-wrap",
|
|
43
43
|
className: className ?? "gap-y-7.5",
|
|
44
44
|
};
|
|
45
|
-
return (_jsx(ShelfDesign, { titles: titles, className: cn(container),
|
|
45
|
+
return (_jsx(ShelfDesign, { titles: titles, className: cn(container), option: {
|
|
46
46
|
titleSize: "text-lg xl:text-2xl",
|
|
47
47
|
subtitleSize: "text-sm",
|
|
48
48
|
}, debug: debug, children: children }));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Box from "
|
|
2
|
-
import Button from "
|
|
3
|
-
import Check from "
|
|
4
|
-
import Layout from "
|
|
5
|
-
import WithTitle from "
|
|
1
|
+
import Box from "./sign/Box";
|
|
2
|
+
import Button from "./sign/Button";
|
|
3
|
+
import Check from "./sign/Check";
|
|
4
|
+
import Layout from "./sign/Layout";
|
|
5
|
+
import WithTitle from "./sign/WithTitle";
|
|
6
6
|
declare const Sign: {
|
|
7
7
|
Box: typeof Box;
|
|
8
8
|
Button: typeof Button;
|
package/layout/template/Sign.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Box from "
|
|
2
|
-
import Button from "
|
|
3
|
-
import Check from "
|
|
4
|
-
import Layout from "
|
|
5
|
-
import WithTitle from "
|
|
1
|
+
import Box from "./sign/Box";
|
|
2
|
+
import Button from "./sign/Button";
|
|
3
|
+
import Check from "./sign/Check";
|
|
4
|
+
import Layout from "./sign/Layout";
|
|
5
|
+
import WithTitle from "./sign/WithTitle";
|
|
6
6
|
const Sign = {
|
|
7
7
|
Box,
|
|
8
8
|
Button,
|
package/layout/template/Tab.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ interface Options {
|
|
|
6
6
|
width?: Size;
|
|
7
7
|
height?: Size;
|
|
8
8
|
}
|
|
9
|
-
export default function Tab({ tabs,
|
|
9
|
+
export default function Tab({ tabs, option, state, }: {
|
|
10
10
|
tabs: (Button & {
|
|
11
11
|
isStatic?: boolean;
|
|
12
12
|
})[];
|
|
13
|
-
|
|
13
|
+
option?: Options;
|
|
14
14
|
state?: State<boolean[]>;
|
|
15
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
package/layout/template/Tab.js
CHANGED
|
@@ -9,8 +9,8 @@ const heightSize = {
|
|
|
9
9
|
md: "h-7.5",
|
|
10
10
|
lg: "h-9",
|
|
11
11
|
};
|
|
12
|
-
export default function Tab({ tabs,
|
|
13
|
-
const { className, background, text, width, height } =
|
|
12
|
+
export default function Tab({ tabs, option, state, }) {
|
|
13
|
+
const { className, background, text, width, height } = option ?? {};
|
|
14
14
|
const [tabsSelection, setTabsSelection] = state
|
|
15
15
|
? state
|
|
16
16
|
: useState(tabs.map((_, i) => i === 0));
|
|
@@ -28,10 +28,10 @@ export default function Tab({ tabs, options, state, }) {
|
|
|
28
28
|
sizes: `${heightSize[height ?? "lg"]} ${widthSize[width ?? "lg"]}`,
|
|
29
29
|
font: text ?? "text-green-dark",
|
|
30
30
|
};
|
|
31
|
-
return (_jsx("div", { className: cn(container), children: tabs.map(({ title, onClick, isStatic,
|
|
31
|
+
return (_jsx("div", { className: cn(container), children: tabs.map(({ title, onClick, isStatic, option }, index) => (_jsx("button", { onClick: () => {
|
|
32
32
|
!isStatic &&
|
|
33
33
|
setTabsSelection(tabsSelection.map((_, i) => i === index));
|
|
34
34
|
return onClick && onClick();
|
|
35
35
|
}, className: cn(button, `${!isStatic && tabsSelection[index] && "bg-white rounded-2xl"}`, `${isStatic &&
|
|
36
|
-
`${
|
|
36
|
+
`${option?.background ?? "bg-green-dark"} ${option?.text ?? "text-white"} `}`), children: title }, title))) }));
|
|
37
37
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DashboardHeaderProps } from "../../../interface";
|
|
2
|
-
export declare function Header({ title, logo, notification, menu,
|
|
2
|
+
export declare function Header({ title, logo, notification, menu, option, }: DashboardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,10 +6,10 @@ import { Action } from "../..";
|
|
|
6
6
|
import Notification from "./Notification";
|
|
7
7
|
import SVG from "../../../asset/SVG";
|
|
8
8
|
import { Label } from "../../../widget";
|
|
9
|
-
export function Header({ title, logo, notification, menu,
|
|
9
|
+
export function Header({ title, logo, notification, menu, option, }) {
|
|
10
10
|
const { setView, setIsOwn } = useActionStore();
|
|
11
11
|
const { notifications, flag, onClick, color } = notification;
|
|
12
|
-
const { text, background, className } =
|
|
12
|
+
const { text, background, className } = option ?? {};
|
|
13
13
|
const container = {
|
|
14
14
|
positions: "fixed xl:static top-0 left-0 z-40",
|
|
15
15
|
displays: "flex items-center justify-between ",
|
|
@@ -29,7 +29,7 @@ export function Header({ title, logo, notification, menu, options, }) {
|
|
|
29
29
|
}, color: color }), menu?.profile ? (_jsx(SVG.Profile, { onClick: () => {
|
|
30
30
|
setIsOwn(true);
|
|
31
31
|
return setView("menu");
|
|
32
|
-
}, color: color })) : (_jsx(Label.Button, { title: "\uB300\uC2DC\uBCF4\uB4DC\uB85C", onClick: menu?.onClick,
|
|
32
|
+
}, color: color })) : (_jsx(Label.Button, { title: "\uB300\uC2DC\uBCF4\uB4DC\uB85C", onClick: menu?.onClick, option: {
|
|
33
33
|
width: "sm",
|
|
34
34
|
height: "xs",
|
|
35
35
|
text: "text-white",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DashboardProps } from "../../../interface";
|
|
2
|
-
export default function Layout({ header, navigations, children,
|
|
2
|
+
export default function Layout({ header, navigations, children, option, }: DashboardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,11 +3,11 @@ import { Fragment, useEffect } from "react";
|
|
|
3
3
|
import { Header } from "./Header";
|
|
4
4
|
import { cn } from "../../../util";
|
|
5
5
|
import { useActionStore } from "../../../store";
|
|
6
|
-
import
|
|
7
|
-
export default function Layout({ header, navigations, children,
|
|
6
|
+
import Navigation from "./Navigation";
|
|
7
|
+
export default function Layout({ header, navigations, children, option, }) {
|
|
8
8
|
const { isDark, flag, setFlag, isOwn, setIsOwn, clearView } = useActionStore();
|
|
9
|
-
const { title,
|
|
10
|
-
const { background } =
|
|
9
|
+
const { title, option: headerOption, logo, notification, menu } = header;
|
|
10
|
+
const { background } = option ?? {};
|
|
11
11
|
useEffect(() => {
|
|
12
12
|
if (isOwn) {
|
|
13
13
|
return setIsOwn(false);
|
|
@@ -25,5 +25,5 @@ export default function Layout({ header, navigations, children, options, }) {
|
|
|
25
25
|
displays: "flex gap-12 xl:gap-7.5 ",
|
|
26
26
|
paddings: "pt-15 xl:pl-2 2xl:pl-12 2xl:pr-11.25 xl:pt-7.5",
|
|
27
27
|
};
|
|
28
|
-
return (_jsxs("div", { className: cn(container), onClick: setFlag, children: [_jsx(Header, { title: title, notification: notification, menu: menu,
|
|
28
|
+
return (_jsxs("div", { className: cn(container), onClick: setFlag, children: [_jsx(Header, { title: title, notification: notification, menu: menu, option: headerOption, logo: logo }), _jsxs("div", { className: cn(body), children: [_jsx(Navigation.Container, { children: navigations.map((nav, index) => (_jsx(Fragment, { children: nav }, index))) }), children] })] }));
|
|
29
29
|
}
|
|
@@ -18,10 +18,10 @@ export default function Menu({ showAction, profile, input, onClick, }) {
|
|
|
18
18
|
leave: { opacity: 0 },
|
|
19
19
|
config: { duration: 200 },
|
|
20
20
|
});
|
|
21
|
-
return transitions((styles, item) => item && (_jsxs(animated.div, { style: styles, className: cn(container), onClick: () => setIsOwn(true), children: [_jsxs("div", { className: "h-17.75 flex gap-12 justify-center items-center text-black border-b-2 pb-2.5", children: [_jsxs("div", { children: [_jsx("div", { children: profile?.name }), _jsx("div", { className: "text-xs", children: profile?.belong })] }), _jsx("div", { className: "relative w-15 h-15 rounded-md overflow-hidden", children: _jsx("img", { className: "bg-cover rounded-md", src: profile?.image, alt: "profile-image" }) })] }), _jsxs("div", { className: "flex flex-col gap-2.5 pt-2.5", children: [_jsx("input", { className: "w-47.5 h-6.25 border-2 text-black", value: input?.password[0], onChange: (e) => input?.password[1](e.target.value), type: "password" }), _jsxs("div", { className: "flex gap-2.5", children: [_jsx(Label.Button, { title: "\uCDE8\uC18C", onClick: () => removeModal("menu"),
|
|
21
|
+
return transitions((styles, item) => item && (_jsxs(animated.div, { style: styles, className: cn(container), onClick: () => setIsOwn(true), children: [_jsxs("div", { className: "h-17.75 flex gap-12 justify-center items-center text-black border-b-2 pb-2.5", children: [_jsxs("div", { children: [_jsx("div", { children: profile?.name }), _jsx("div", { className: "text-xs", children: profile?.belong })] }), _jsx("div", { className: "relative w-15 h-15 rounded-md overflow-hidden", children: _jsx("img", { className: "bg-cover rounded-md", src: profile?.image, alt: "profile-image" }) })] }), _jsxs("div", { className: "flex flex-col gap-2.5 pt-2.5", children: [_jsx("input", { className: "w-47.5 h-6.25 border-2 text-black", value: input?.password[0], onChange: (e) => input?.password[1](e.target.value), type: "password" }), _jsxs("div", { className: "flex gap-2.5", children: [_jsx(Label.Button, { title: "\uCDE8\uC18C", onClick: () => removeModal("menu"), option: {
|
|
22
22
|
width: "sm",
|
|
23
23
|
height: "xs",
|
|
24
|
-
} }), _jsx(Label.Button, { title: "\uD655\uC778", onClick: onClick,
|
|
24
|
+
} }), _jsx(Label.Button, { title: "\uD655\uC778", onClick: onClick, option: {
|
|
25
25
|
background: gradient.bg.greenToRed,
|
|
26
26
|
text: "text-white",
|
|
27
27
|
width: "sm",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../../util";
|
|
3
|
-
|
|
3
|
+
function Container({ children }) {
|
|
4
4
|
const container = {
|
|
5
5
|
positions: "fixed xl:static bottom-0 left-0 z-40",
|
|
6
6
|
displays: "hidden lg:flex flex-row xl:flex-col",
|
|
@@ -18,3 +18,7 @@ function Copyright() {
|
|
|
18
18
|
const nowYear = new Date().getFullYear();
|
|
19
19
|
return (_jsxs("div", { className: cn(copyrightBox), children: [_jsxs("div", { className: "leading-tight", children: ["Copyright \u00A9 2002-", nowYear] }), _jsx("div", { className: "leading-tight", children: "International TOSEL Committee." }), _jsx("div", { className: "leading-tight", children: "All Rights Reserved." })] }));
|
|
20
20
|
}
|
|
21
|
+
const Navigation = {
|
|
22
|
+
Container,
|
|
23
|
+
};
|
|
24
|
+
export default Navigation;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useTransition, animated } from "react-spring";
|
|
3
3
|
import { cn } from "../../../util";
|
|
4
|
-
import Action from "
|
|
4
|
+
import Action from "../Action";
|
|
5
5
|
export default function Notification({ showAction, notifications, }) {
|
|
6
6
|
const { isVisible } = showAction ?? {};
|
|
7
7
|
const container = {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Layout from "./Layout";
|
|
2
|
+
import MyPageLayout from "./mypage/Layout";
|
|
3
|
+
import Profile from "./mypage/Profile";
|
|
4
|
+
declare const Dashboard: {
|
|
5
|
+
Layout: typeof Layout;
|
|
6
|
+
};
|
|
7
|
+
declare const MyPage: {
|
|
8
|
+
Layout: typeof MyPageLayout;
|
|
9
|
+
Card: {
|
|
10
|
+
Profile: typeof Profile;
|
|
11
|
+
Navigate: {
|
|
12
|
+
Academy: ({ onClick }: {
|
|
13
|
+
onClick: import("../../../interface").OnClick;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
Payment: ({ onClick }: {
|
|
16
|
+
onClick: import("../../../interface").OnClick;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
declare const dashboardConfig: {
|
|
22
|
+
style: {
|
|
23
|
+
nav: ({ href, nowPath, background, text, }: import("./style").NavigatorStyle) => string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export { default as buttonClassNames } from "./buttonClassNames";
|
|
27
|
+
export { default as Navigation } from "./Navigation";
|
|
28
|
+
export { Dashboard, MyPage, dashboardConfig };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Layout from "./Layout";
|
|
2
|
+
import MyPageLayout from "./mypage/Layout";
|
|
3
|
+
import Navigate from "./mypage/Navigate";
|
|
4
|
+
import Profile from "./mypage/Profile";
|
|
5
|
+
import style from "./style";
|
|
6
|
+
const Dashboard = {
|
|
7
|
+
Layout,
|
|
8
|
+
};
|
|
9
|
+
const MyPage = {
|
|
10
|
+
Layout: MyPageLayout,
|
|
11
|
+
Card: { Profile, Navigate },
|
|
12
|
+
};
|
|
13
|
+
const dashboardConfig = {
|
|
14
|
+
style,
|
|
15
|
+
};
|
|
16
|
+
export { default as buttonClassNames } from "./buttonClassNames";
|
|
17
|
+
export { default as Navigation } from "./Navigation";
|
|
18
|
+
export { Dashboard, MyPage, dashboardConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MyPageProps } from "../../../../interface";
|
|
2
|
-
export default function MyPageLayout({ header, profile, navigations, children,
|
|
2
|
+
export default function MyPageLayout({ header, profile, navigations, children, option, }: MyPageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,11 @@ import { Header } from "../Header";
|
|
|
4
4
|
import { cn } from "../../../../util";
|
|
5
5
|
import { useActionStore } from "../../../../store";
|
|
6
6
|
import Profile from "./Profile";
|
|
7
|
-
import
|
|
8
|
-
export default function MyPageLayout({ header, profile, navigations, children,
|
|
7
|
+
import Navigation from "../Navigation";
|
|
8
|
+
export default function MyPageLayout({ header, profile, navigations, children, option, }) {
|
|
9
9
|
const { isDark, flag, setFlag, isOwn, setIsOwn, clearView } = useActionStore();
|
|
10
|
-
const { title,
|
|
11
|
-
const { background } =
|
|
10
|
+
const { title, option: headerOption, logo, notification } = header;
|
|
11
|
+
const { background } = option ?? {};
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
if (isOwn) {
|
|
14
14
|
return setIsOwn(false);
|
|
@@ -26,5 +26,5 @@ export default function MyPageLayout({ header, profile, navigations, children, o
|
|
|
26
26
|
sizes: "h-full ",
|
|
27
27
|
paddings: "pt-15 xl:pl-2 2xl:px-12 xl:pt-7.5",
|
|
28
28
|
};
|
|
29
|
-
return (_jsxs("div", { className: cn(container), onClick: setFlag, children: [_jsx(Header, { ...header }), _jsxs("div", { className: cn(body), children: [_jsxs(
|
|
29
|
+
return (_jsxs("div", { className: cn(container), onClick: setFlag, children: [_jsx(Header, { ...header }), _jsxs("div", { className: cn(body), children: [_jsxs(Navigation.Container, { children: [_jsx(Profile.Preview, { username: profile.username, email: profile.email, image: profile.image }), navigations.map((nav, index) => (_jsx(Fragment, { children: nav }, index)))] }), children] })] }));
|
|
30
30
|
}
|
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
|
3
3
|
import Card from "../../../../card/design/Card.design";
|
|
4
4
|
function Academy({ onClick }) {
|
|
5
5
|
const [onMouse, _] = useState(false);
|
|
6
|
-
return (_jsxs(Card, {
|
|
6
|
+
return (_jsxs(Card, { option: {
|
|
7
7
|
onClick,
|
|
8
8
|
className: "pt-5 pl-5 group",
|
|
9
9
|
boundary: "box-shadow shadow-green-dark",
|
|
@@ -13,7 +13,7 @@ function Academy({ onClick }) {
|
|
|
13
13
|
}, children: [_jsx("div", { className: "text-gray-medium group-hover:text-green-dark duration-300", children: "\uB098\uC758 \uD559\uC6D0" }), _jsx("svg", { className: "absolute bottom-5 right-5 ", xmlns: "http://www.w3.org/2000/svg", width: "60", height: "60", viewBox: "0 0 60 60", fill: "none", children: _jsx("path", { className: "duration-300", d: "M9 53H52M10.9545 6H50.0455M12.9091 6V53M48.0909 6V53M22.6818 15.7917H26.5909M22.6818 23.625H26.5909M22.6818 31.4583H26.5909M34.4091 15.7917H38.3182M34.4091 23.625H38.3182M34.4091 31.4583H38.3182M22.6818 53V44.1875C22.6818 42.566 23.9953 41.25 25.6136 41.25H35.3864C37.0047 41.25 38.3182 42.566 38.3182 44.1875V53", stroke: !onMouse ? "#7F7F7F" : "#105652", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round" }) })] }));
|
|
14
14
|
}
|
|
15
15
|
function Payment({ onClick }) {
|
|
16
|
-
return (_jsxs(Card, {
|
|
16
|
+
return (_jsxs(Card, { option: {
|
|
17
17
|
onClick,
|
|
18
18
|
className: "pt-5 pl-5",
|
|
19
19
|
background: "group bg-green-dark/10 hover:bg-green-dark/30 ",
|
|
@@ -19,12 +19,12 @@ function Profile({ name, birthday, image, modify }) {
|
|
|
19
19
|
leave: { opacity: 0 },
|
|
20
20
|
config: { duration: 250 },
|
|
21
21
|
});
|
|
22
|
-
return (_jsxs(Card, {
|
|
22
|
+
return (_jsxs(Card, { option: {
|
|
23
23
|
className: "flex gap-x-7.5 items-center pl-5",
|
|
24
24
|
width: "md",
|
|
25
25
|
height: "3xs",
|
|
26
26
|
boundary: "border-1 border-black",
|
|
27
|
-
}, children: [_jsxs("button", { onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), onClick: modify.image, className: "w-20 h-20 overflow-hidden rounded-md relative", children: [_jsx("img", { src: image, alt: "profile-image", className: "bg-cover" }), transitions((styles, item) => item && (_jsxs(animated.div, { style: styles, className: cn(hoverBox), children: [_jsx(SVG.Image, {}), _jsx("div", { className: "text-white text-xs leading-none", children: "\uC0AC\uC9C4 \uBC14\uAFB8\uAE30" })] })))] }), _jsxs("div", { className: "flex flex-col h-20", children: [_jsx("div", { className: "text-xl leading-none font-pretendard-bold text-gray-dark", children: name }), _jsx("div", { className: "leading-none text-gray-medium mt-1.25", children: birthday }), _jsxs("div", { className: "flex gap-3 mt-auto", children: [_jsx(Label.Button, { title: "\uC2E4\uBA85 \uC218\uC815",
|
|
27
|
+
}, children: [_jsxs("button", { onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), onClick: modify.image, className: "w-20 h-20 overflow-hidden rounded-md relative", children: [_jsx("img", { src: image, alt: "profile-image", className: "bg-cover" }), transitions((styles, item) => item && (_jsxs(animated.div, { style: styles, className: cn(hoverBox), children: [_jsx(SVG.Image, {}), _jsx("div", { className: "text-white text-xs leading-none", children: "\uC0AC\uC9C4 \uBC14\uAFB8\uAE30" })] })))] }), _jsxs("div", { className: "flex flex-col h-20", children: [_jsx("div", { className: "text-xl leading-none font-pretendard-bold text-gray-dark", children: name }), _jsx("div", { className: "leading-none text-gray-medium mt-1.25", children: birthday }), _jsxs("div", { className: "flex gap-3 mt-auto", children: [_jsx(Label.Button, { title: "\uC2E4\uBA85 \uC218\uC815", option: { width: "sm", height: "xs" }, onClick: modify.name }), _jsx(Label.Button, { title: "\uC0DD\uC77C \uC218\uC815", option: { width: "sm", height: "xs" }, onClick: modify.birthday })] })] })] }));
|
|
28
28
|
}
|
|
29
29
|
function Detail({ titles, infos, toggle, }) {
|
|
30
30
|
const infoBox = {
|
|
@@ -33,13 +33,13 @@ function Detail({ titles, infos, toggle, }) {
|
|
|
33
33
|
styles: "text-green-dark",
|
|
34
34
|
};
|
|
35
35
|
const id = useId();
|
|
36
|
-
return (_jsxs(Card, {
|
|
36
|
+
return (_jsxs(Card, { option: {
|
|
37
37
|
className: "pt-5 px-5",
|
|
38
38
|
width: "md",
|
|
39
39
|
height: "xs",
|
|
40
40
|
background: gradient.bg.greenToRedSoft,
|
|
41
41
|
boundary: "",
|
|
42
|
-
}, children: [_jsxs("div", { className: "h-13.25 flex flex-col text-gray-dark border-b-1 border-crimson-burgundy", children: [_jsx("div", { className: "text-xl font-pretendard-bold h-6 leading-none", children: titles.title }), _jsx("div", { className: "h-4.75 leading-none", children: titles.subtitle })] }), _jsx("div", { className: "mt-4.25 flex flex-col gap-2.5 ", children: infos?.map(({ title, content, button }, index) => (_jsxs("div", { className: cn(infoBox), children: [title === "phone" ? (_jsx(SVG.Phone, {})) : title === "email" ? (_jsx(SVG.Email, {})) : (_jsx("div", { className: "font-pretendard-bold mr-5 w-7", children: title })), _jsx("div", { className: "leading-none flex items-center w-60", children: content }), _jsx(Label.Button, { title: button.title, onClick: button.onClick,
|
|
42
|
+
}, children: [_jsxs("div", { className: "h-13.25 flex flex-col text-gray-dark border-b-1 border-crimson-burgundy", children: [_jsx("div", { className: "text-xl font-pretendard-bold h-6 leading-none", children: titles.title }), _jsx("div", { className: "h-4.75 leading-none", children: titles.subtitle })] }), _jsx("div", { className: "mt-4.25 flex flex-col gap-2.5 ", children: infos?.map(({ title, content, button }, index) => (_jsxs("div", { className: cn(infoBox), children: [title === "phone" ? (_jsx(SVG.Phone, {})) : title === "email" ? (_jsx(SVG.Email, {})) : (_jsx("div", { className: "font-pretendard-bold mr-5 w-7", children: title })), _jsx("div", { className: "leading-none flex items-center w-60", children: content }), _jsx(Label.Button, { title: button.title, onClick: button.onClick, option: {
|
|
43
43
|
className: "ml-auto",
|
|
44
44
|
background: gradient.bg.greenToRed,
|
|
45
45
|
text: "text-white",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { checkPathMatch, cn } from "../../../util";
|
|
2
|
+
const navigatorStyle = ({ href, nowPath, background = "bg-white", text = "text-white", }) => {
|
|
3
|
+
const style = {
|
|
4
|
+
displays: "flex flex-row items-center justify-center xl:justify-start gap-2.5",
|
|
5
|
+
sizes: " w-full xl:w-51 h-11 ",
|
|
6
|
+
styles: "xl:rounded-lg xl:pl-5 font-pretendard-bold",
|
|
7
|
+
texts: checkPathMatch(href, nowPath)
|
|
8
|
+
? [background, text].join(" ")
|
|
9
|
+
: [text, "opacity-50 hover:opacity-100"].join(" "),
|
|
10
|
+
};
|
|
11
|
+
return cn(style);
|
|
12
|
+
};
|
|
13
|
+
const style = {
|
|
14
|
+
nav: navigatorStyle,
|
|
15
|
+
};
|
|
16
|
+
export default style;
|
|
@@ -2,9 +2,9 @@ import { Titles } from "../../../interface";
|
|
|
2
2
|
interface NoticeOptions {
|
|
3
3
|
className: string;
|
|
4
4
|
}
|
|
5
|
-
export default function Notice({ banners,
|
|
5
|
+
export default function Notice({ banners, option, }: {
|
|
6
6
|
banners: BannerProps[];
|
|
7
|
-
|
|
7
|
+
option?: Partial<NoticeOptions>;
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
type Tag = "REG" | "OLY";
|
|
10
10
|
interface BannerProps {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import SVG from "../../../asset/SVG";
|
|
3
3
|
import { cn } from "../../../util";
|
|
4
|
-
export default function Notice({ banners,
|
|
5
|
-
const { className } =
|
|
4
|
+
export default function Notice({ banners, option, }) {
|
|
5
|
+
const { className } = option ?? {};
|
|
6
6
|
const container = {
|
|
7
7
|
positions: "relative",
|
|
8
8
|
backgrounds: "bg-[#F7F7F7]",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
interface PromotionOptions {
|
|
2
2
|
className: string;
|
|
3
3
|
}
|
|
4
|
-
export default function Promotion({ banners,
|
|
4
|
+
export default function Promotion({ banners, option, }: {
|
|
5
5
|
banners: BannerProps[];
|
|
6
|
-
|
|
6
|
+
option?: Partial<PromotionOptions>;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
interface BannerProps {
|
|
9
9
|
image: {
|
|
10
10
|
src: string;
|
|
11
11
|
location?: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
option?: {
|
|
14
14
|
background?: string;
|
|
15
15
|
boundary?: string;
|
|
16
16
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import SVG from "../../../asset/SVG";
|
|
3
3
|
import { cn, gradient } from "../../../util";
|
|
4
|
-
export default function Promotion({ banners,
|
|
5
|
-
const { className } =
|
|
4
|
+
export default function Promotion({ banners, option, }) {
|
|
5
|
+
const { className } = option ?? {};
|
|
6
6
|
const container = {
|
|
7
7
|
positions: "relative",
|
|
8
8
|
displays: "flex flex-col",
|
|
@@ -24,8 +24,8 @@ export default function Promotion({ banners, options, }) {
|
|
|
24
24
|
};
|
|
25
25
|
return (_jsxs("div", { className: cn(container), children: [_jsx("div", { className: "font-pretendard-bold text-green-dark text-3xl", children: "\uD504\uB85C\uBAA8\uC158" }), _jsx("div", { className: cn(body), children: banners.map((banner) => (_jsx(Banner, { ...banner }, banner.image.src))) }), _jsxs("div", { className: cn(buttonBox), children: [_jsx(SVG.Symbol.LessThan, { onClick: () => { } }), _jsx(SVG.Symbol.GreaterThan, { onClick: () => { } })] })] }));
|
|
26
26
|
}
|
|
27
|
-
function Banner({ image,
|
|
28
|
-
const { background, boundary } =
|
|
27
|
+
function Banner({ image, option }) {
|
|
28
|
+
const { background, boundary } = option ?? {};
|
|
29
29
|
const container = {
|
|
30
30
|
positions: "relative",
|
|
31
31
|
sizes: "w-260 h-125",
|
|
@@ -22,8 +22,8 @@ export default function Service({ banners }) {
|
|
|
22
22
|
};
|
|
23
23
|
return (_jsxs("div", { className: cn(container), children: [_jsx("div", { className: "font-pretendard-bold text-green-dark text-3xl", children: "\uD1A0\uC140\uC758 \uCC28\uBCC4\uD654\uB41C \uC11C\uBE44\uC2A4" }), _jsx("div", { className: cn(body), children: banners.map((banner) => (_jsx(Banner, { ...banner }, banner.titles.title))) }), _jsxs("div", { className: cn(buttonBox), children: [_jsx(SVG.Symbol.LessThan, { onClick: () => { } }), _jsx(SVG.Symbol.GreaterThan, { onClick: () => { } })] })] }));
|
|
24
24
|
}
|
|
25
|
-
function Banner({ titles, image,
|
|
26
|
-
const { background } =
|
|
25
|
+
function Banner({ titles, image, option }) {
|
|
26
|
+
const { background } = option ?? {};
|
|
27
27
|
const container = {
|
|
28
28
|
positions: "relative",
|
|
29
29
|
displays: "flex flex-col",
|
|
@@ -13,8 +13,8 @@ export default function Carousel({ contents, }) {
|
|
|
13
13
|
// setIndex((index + 1) % contents.length);
|
|
14
14
|
// }
|
|
15
15
|
// }, [flag]);
|
|
16
|
-
const { tag, titles, image,
|
|
17
|
-
const { text, background } =
|
|
16
|
+
const { tag, titles, image, option } = contents[index];
|
|
17
|
+
const { text, background } = option ?? {};
|
|
18
18
|
const container = {
|
|
19
19
|
displays: "flex justify-center items-center",
|
|
20
20
|
sizes: "w-full h-100",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Input } from "../../../widget";
|
|
3
3
|
function WithTitle({ title, placeholder, state, flag, type, }) {
|
|
4
|
-
return (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("div", { className: "leading-none", children: title }), _jsx(Input.
|
|
4
|
+
return (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("div", { className: "leading-none", children: title }), _jsx(Input.Form, { placeholder: placeholder, state: state, flag: flag, type: type })] }));
|
|
5
5
|
}
|
|
6
6
|
export default WithTitle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ConfirmModalProps } from "../../interface/Modal";
|
|
2
|
-
export default function ConfirmModalDesign({ titles, showAction, buttons, children,
|
|
2
|
+
export default function ConfirmModalDesign({ titles, showAction, buttons, children, option, }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
|