@edu-tosel/design 1.0.112 → 1.0.114
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/interface/Modal.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ interface ModalProps {
|
|
|
22
22
|
debug?: string;
|
|
23
23
|
}
|
|
24
24
|
interface ConfirmModalProps<T = any> extends ModalProps {
|
|
25
|
-
buttons: [Button, Button];
|
|
25
|
+
buttons: [Button] | [Button, Button];
|
|
26
26
|
widgets?: ConfirmModalWidget<T>[];
|
|
27
27
|
}
|
|
28
28
|
type ConfirmModalWidget<T = string> = ConfirmModalSelectSwitchProps<T> | ConfirmModalSelectHandleProps<T> | ConfirmModalSelectTagProps<T> | ConfirmModalPaginationProps<T> | ConfirmModalInputFormProps | ConfirmModalNodeProps;
|
|
@@ -7,7 +7,7 @@ export default function ConfirmModalDesign({ titles, showAction, buttons, childr
|
|
|
7
7
|
displays: "flex flex-col",
|
|
8
8
|
};
|
|
9
9
|
const buttonBox = {
|
|
10
|
-
positions: "absolute bottom-4 md:bottom-5
|
|
10
|
+
positions: "absolute bottom-4 md:bottom-5 right-2 md:right-5",
|
|
11
11
|
displays: "flex gap-1 md:gap-2.5",
|
|
12
12
|
};
|
|
13
13
|
return (_jsx(ModalDesign, { titles: titles, showAction: showAction, option: option, children: _jsxs("div", { className: cn(container), children: [children, _jsx("div", { className: cn(buttonBox), children: buttons.map(({ title, onClick, option }) => (_jsx(Label.Button, { title: title, onClick: onClick, option: {
|
|
@@ -69,5 +69,5 @@ function ModalDesign({ titles, showAction, children, option, debug, }) {
|
|
|
69
69
|
displays: "flex flex-col items-end",
|
|
70
70
|
sizes: "w-full min-h-[83px]",
|
|
71
71
|
};
|
|
72
|
-
return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: "text-xl leading-none font-pretendard-bold", children: titles.title }), _jsx("div", { className: "bg-gray-light w-13.75 h-2 mt-3" }), _jsx(LineBreaks, { texts: titles.subtitle, className: "mt-5 text-base leading-none text-end
|
|
72
|
+
return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: "text-xl leading-none font-pretendard-bold", children: titles.title }), _jsx("div", { className: "bg-gray-light w-13.75 h-2 mt-3" }), _jsx(LineBreaks, { texts: titles.subtitle, className: "mt-5 text-base leading-none text-end " })] }), _jsx("div", { className: "overflow-hidden", children: children }), !noClose && event && (_jsx(SVG.Close, { onClick: () => removeModal(event), className: "absolute top-2.5 left-2.5 md:top-5 md:left-5" }))] }));
|
|
73
73
|
}
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.114
|