@edu-tosel/design 1.0.113 → 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.
@@ -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 left-2 md:left-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 font-pretendard-bold" })] }), children, !noClose && event && (_jsx(SVG.Close, { onClick: () => removeModal(event), className: "absolute top-1 left-1" }))] }));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.113",
3
+ "version": "1.0.114",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.113
1
+ 1.0.114