@edu-tosel/design 1.0.56 → 1.0.58

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/globals.css CHANGED
@@ -1,226 +1,226 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @font-face {
6
- font-family: "Pretendard-Medium";
7
- src: url("./asset/fonts/Pretendard-Medium.otf") format("opentype");
8
- }
9
-
10
- @font-face {
11
- font-family: "Pretendard-Bold";
12
- src: url("./asset/fonts/Pretendard-Bold.otf") format("opentype");
13
- }
14
-
15
- @font-face {
16
- font-family: "Pretendard-Light";
17
- src: url("./asset/fonts/Pretendard-Light.otf") format("opentype");
18
- }
19
-
20
- @font-face {
21
- font-family: "Kostar";
22
- src: url("./asset/fonts/Kostar.ttf") format("truetype");
23
- }
24
-
25
- @font-face {
26
- font-family: "NicoMoji";
27
- src: url("./asset/fonts/NicoMoji.ttf") format("truetype");
28
- }
29
-
30
- @font-face {
31
- font-family: "Megrim";
32
- src: url("./asset/fonts/Megrim.ttf") format("truetype");
33
- }
34
-
35
- @font-face {
36
- font-family: "Times-Newer-Roman-Bold";
37
- src: url("./asset/fonts/TimesNewerRoman-Bold.otf") format("opentype");
38
- }
39
-
40
- @font-face {
41
- font-family: "Times-Newer-Roman-BoldItalic";
42
- src: url("./asset/fonts/TimesNewerRoman-BoldItalic.otf") format("opentype");
43
- }
44
-
45
- input[type="date"]::-webkit-inner-spin-button,
46
- input[type="date"]::-webkit-calendar-picker-indicator {
47
- display: none;
48
- -webkit-appearance: none;
49
- }
50
-
51
- ::-webkit-scrollbar {
52
- width: 3px;
53
- padding-right: 10px;
54
- }
55
-
56
- ::-webkit-scrollbar-track {
57
- background-color: transparent;
58
- }
59
- ::-webkit-scrollbar-thumb {
60
- background-color: #808080;
61
- opacity: 0.5;
62
- border-radius: 10px;
63
- }
64
-
65
- .box-shadow {
66
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
67
- }
68
-
69
- .box-shadow-sm {
70
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
71
- }
72
-
73
- .border-gradient-green-to-red {
74
- }
75
-
76
- .x-shape {
77
- position: relative;
78
- width: 0.83625rem;
79
- height: 0.83625rem;
80
- }
81
-
82
- .x-shape::before,
83
- .x-shape::after {
84
- content: "";
85
- position: absolute;
86
- top: 50%;
87
- left: 50%;
88
- width: 2.5px;
89
- border-radius: 2px;
90
- height: 100%;
91
- background-color: white;
92
- transform-origin: center;
93
- }
94
-
95
- .x-shape::before {
96
- transform: translate(-50%, -50%) rotate(45deg);
97
- }
98
-
99
- .x-shape::after {
100
- transform: translate(-50%, -50%) rotate(-45deg);
101
- }
102
-
103
- .border-inner {
104
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
105
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
106
- }
107
- .box-shadow-focus:focus {
108
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
109
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
110
- }
111
- .box-shadow-focus-red:focus {
112
- box-shadow: 0px 0px 10px 0px #ff8383;
113
- }
114
- .box-green {
115
- background: rgba(16, 86, 82, 0.1);
116
- color: #105652;
117
- }
118
- .box-green-focus:focus {
119
- background: white;
120
- color: black;
121
- box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
122
- }
123
- /* box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38); */
124
- .box-inner-shadow:hover {
125
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
126
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
127
- }
128
- /* Date Picker Css */
129
- .react-datepicker__day--selected {
130
- background-color: #105652 !important;
131
- }
132
- .react-datepicker__header {
133
- background: white !important;
134
- border: none !important;
135
- }
136
- .react-datepicker {
137
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
138
- border-radius: 0.375rem !important;
139
- border: none !important;
140
- }
141
- .react-datepicker__day--keyboard-selected {
142
- background-color: white !important;
143
- color: black !important;
144
- }
145
- .react-datepicker__day--outside-month {
146
- color: rgb(161 161 170) !important;
147
- }
148
- .react-datepicker__month-container {
149
- padding-top: 1rem;
150
- padding-left: 1rem;
151
- padding-right: 1rem;
152
- padding-bottom: 0.5rem;
153
- }
154
- .react-datepicker-popper {
155
- transform: translate(0px 295px) !important;
156
- }
157
- .react-datepicker__input-container {
158
- text-align: center !important;
159
- border-radius: 0.375rem !important;
160
- transition: all 0.3s;
161
- }
162
- .react-datepicker__input-container > input {
163
- cursor: pointer !important;
164
- }
165
- .react-datepicker__input-container:hover {
166
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
167
- }
168
- .react-datepicker__navigation {
169
- top: 18px !important;
170
- }
171
- .react-datepicker__navigation--next {
172
- right: 20px !important;
173
- }
174
- .react-datepicker__navigation--previous {
175
- left: 182px !important;
176
- }
177
- .react-datepicker__current-month {
178
- text-align: left !important;
179
- margin-left: 16px !important;
180
- }
181
- .react-datepicker__triangle {
182
- display: none !important;
183
- }
184
- .react-datepicker__children-container {
185
- width: 16rem !important;
186
- }
187
- /* toggle button */
188
- .toggle[type="checkbox"]::before {
189
- content: "";
190
- position: absolute;
191
- left: 1px;
192
- top: 1px;
193
- width: 1.1rem;
194
- height: 1.1rem;
195
- border-radius: 50%;
196
- transform: scale(0.9);
197
- background-color: white;
198
- transition: left 100ms linear;
199
- }
200
- .toggle[type="checkbox"]:checked::before {
201
- background-color: white;
202
- left: 1.32rem;
203
- }
204
- .toggle[type="checkbox"]:checked {
205
- background-color: #105652;
206
- }
207
- .toggle[type="checkbox"]:disabled {
208
- opacity: 0.3;
209
- cursor: not-allowed;
210
- }
211
- .toggle[type="checkbox"]:disabled + span {
212
- opacity: 0.3;
213
- cursor: not-allowed;
214
- }
215
-
216
- /* checkbox */
217
- .check-box[type="checkbox"]:checked {
218
- border-color: transparent;
219
- background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
220
- background-size: 150%;
221
- background-position: 50%;
222
- background-repeat: no-repeat;
223
- }
224
- .check-box[type="checkbox"]:disabled {
225
- background-color: #7f7f7f;
226
- }
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @font-face {
6
+ font-family: "Pretendard-Medium";
7
+ src: url("./asset/fonts/Pretendard-Medium.otf") format("opentype");
8
+ }
9
+
10
+ @font-face {
11
+ font-family: "Pretendard-Bold";
12
+ src: url("./asset/fonts/Pretendard-Bold.otf") format("opentype");
13
+ }
14
+
15
+ @font-face {
16
+ font-family: "Pretendard-Light";
17
+ src: url("./asset/fonts/Pretendard-Light.otf") format("opentype");
18
+ }
19
+
20
+ @font-face {
21
+ font-family: "Kostar";
22
+ src: url("./asset/fonts/Kostar.ttf") format("truetype");
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "NicoMoji";
27
+ src: url("./asset/fonts/NicoMoji.ttf") format("truetype");
28
+ }
29
+
30
+ @font-face {
31
+ font-family: "Megrim";
32
+ src: url("./asset/fonts/Megrim.ttf") format("truetype");
33
+ }
34
+
35
+ @font-face {
36
+ font-family: "Times-Newer-Roman-Bold";
37
+ src: url("./asset/fonts/TimesNewerRoman-Bold.otf") format("opentype");
38
+ }
39
+
40
+ @font-face {
41
+ font-family: "Times-Newer-Roman-BoldItalic";
42
+ src: url("./asset/fonts/TimesNewerRoman-BoldItalic.otf") format("opentype");
43
+ }
44
+
45
+ input[type="date"]::-webkit-inner-spin-button,
46
+ input[type="date"]::-webkit-calendar-picker-indicator {
47
+ display: none;
48
+ -webkit-appearance: none;
49
+ }
50
+
51
+ ::-webkit-scrollbar {
52
+ width: 3px;
53
+ padding-right: 10px;
54
+ }
55
+
56
+ ::-webkit-scrollbar-track {
57
+ background-color: transparent;
58
+ }
59
+ ::-webkit-scrollbar-thumb {
60
+ background-color: #808080;
61
+ opacity: 0.5;
62
+ border-radius: 10px;
63
+ }
64
+
65
+ .box-shadow {
66
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
67
+ }
68
+
69
+ .box-shadow-sm {
70
+ box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
71
+ }
72
+
73
+ .border-gradient-green-to-red {
74
+ }
75
+
76
+ .x-shape {
77
+ position: relative;
78
+ width: 0.83625rem;
79
+ height: 0.83625rem;
80
+ }
81
+
82
+ .x-shape::before,
83
+ .x-shape::after {
84
+ content: "";
85
+ position: absolute;
86
+ top: 50%;
87
+ left: 50%;
88
+ width: 2.5px;
89
+ border-radius: 2px;
90
+ height: 100%;
91
+ background-color: white;
92
+ transform-origin: center;
93
+ }
94
+
95
+ .x-shape::before {
96
+ transform: translate(-50%, -50%) rotate(45deg);
97
+ }
98
+
99
+ .x-shape::after {
100
+ transform: translate(-50%, -50%) rotate(-45deg);
101
+ }
102
+
103
+ .border-inner {
104
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
105
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
106
+ }
107
+ .box-shadow-focus:focus {
108
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
109
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
110
+ }
111
+ .box-shadow-focus-red:focus {
112
+ box-shadow: 0px 0px 10px 0px #ff8383;
113
+ }
114
+ .box-green {
115
+ background: rgba(16, 86, 82, 0.1);
116
+ color: #105652;
117
+ }
118
+ .box-green-focus:focus {
119
+ background: white;
120
+ color: black;
121
+ box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
122
+ }
123
+ /* box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38); */
124
+ .box-inner-shadow:hover {
125
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
126
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
127
+ }
128
+ /* Date Picker Css */
129
+ .react-datepicker__day--selected {
130
+ background-color: #105652 !important;
131
+ }
132
+ .react-datepicker__header {
133
+ background: white !important;
134
+ border: none !important;
135
+ }
136
+ .react-datepicker {
137
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
138
+ border-radius: 0.375rem !important;
139
+ border: none !important;
140
+ }
141
+ .react-datepicker__day--keyboard-selected {
142
+ background-color: white !important;
143
+ color: black !important;
144
+ }
145
+ .react-datepicker__day--outside-month {
146
+ color: rgb(161 161 170) !important;
147
+ }
148
+ .react-datepicker__month-container {
149
+ padding-top: 1rem;
150
+ padding-left: 1rem;
151
+ padding-right: 1rem;
152
+ padding-bottom: 0.5rem;
153
+ }
154
+ .react-datepicker-popper {
155
+ transform: translate(0px 295px) !important;
156
+ }
157
+ .react-datepicker__input-container {
158
+ text-align: center !important;
159
+ border-radius: 0.375rem !important;
160
+ transition: all 0.3s;
161
+ }
162
+ .react-datepicker__input-container > input {
163
+ cursor: pointer !important;
164
+ }
165
+ .react-datepicker__input-container:hover {
166
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
167
+ }
168
+ .react-datepicker__navigation {
169
+ top: 18px !important;
170
+ }
171
+ .react-datepicker__navigation--next {
172
+ right: 20px !important;
173
+ }
174
+ .react-datepicker__navigation--previous {
175
+ left: 182px !important;
176
+ }
177
+ .react-datepicker__current-month {
178
+ text-align: left !important;
179
+ margin-left: 16px !important;
180
+ }
181
+ .react-datepicker__triangle {
182
+ display: none !important;
183
+ }
184
+ .react-datepicker__children-container {
185
+ width: 16rem !important;
186
+ }
187
+ /* toggle button */
188
+ .toggle[type="checkbox"]::before {
189
+ content: "";
190
+ position: absolute;
191
+ left: 1px;
192
+ top: 1px;
193
+ width: 1.1rem;
194
+ height: 1.1rem;
195
+ border-radius: 50%;
196
+ transform: scale(0.9);
197
+ background-color: white;
198
+ transition: left 100ms linear;
199
+ }
200
+ .toggle[type="checkbox"]:checked::before {
201
+ background-color: white;
202
+ left: 1.32rem;
203
+ }
204
+ .toggle[type="checkbox"]:checked {
205
+ background-color: #105652;
206
+ }
207
+ .toggle[type="checkbox"]:disabled {
208
+ opacity: 0.3;
209
+ cursor: not-allowed;
210
+ }
211
+ .toggle[type="checkbox"]:disabled + span {
212
+ opacity: 0.3;
213
+ cursor: not-allowed;
214
+ }
215
+
216
+ /* checkbox */
217
+ .check-box[type="checkbox"]:checked {
218
+ border-color: transparent;
219
+ background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
220
+ background-size: 150%;
221
+ background-position: 50%;
222
+ background-repeat: no-repeat;
223
+ }
224
+ .check-box[type="checkbox"]:disabled {
225
+ background-color: #7f7f7f;
226
+ }
@@ -39,6 +39,7 @@ export interface RowProps<T> {
39
39
  dataField?: DataField<T>;
40
40
  onClick?: OnClick<T>;
41
41
  buttons?: HTMLLabelElement[];
42
+ flag?: boolean;
42
43
  options?: {
43
44
  height?: string;
44
45
  size?: string;
@@ -1,2 +1,2 @@
1
1
  import { RowProps } from "../../interface";
2
- export default function RowDesign<T>({ item, dataField, options, onClick, buttons, }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ export default function RowDesign<T>({ item, dataField, options, onClick, buttons, flag, }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
3
  import { cn } from "../../util";
4
4
  import { Label } from "../../widget";
5
- export default function RowDesign({ item, dataField, options, onClick, buttons, }) {
5
+ export default function RowDesign({ item, dataField, options, onClick, buttons, flag, }) {
6
6
  const { size, padding, text, noHover, className, isPointer } = options ?? {};
7
7
  const id = useId();
8
8
  const container = {
@@ -18,7 +18,13 @@ export default function RowDesign({ item, dataField, options, onClick, buttons,
18
18
  styles: "truncate",
19
19
  className,
20
20
  };
21
- return (_jsxs("div", { className: cn(container), onClick: () => onClick?.(), children: [dataField &&
21
+ const flagBox = (flag) => ({
22
+ positions: "absolute left-3.5",
23
+ backgrounds: flag ? "bg-green-500" : "bg-red-500",
24
+ sizes: "w-2 h-2",
25
+ styles: "rounded-full",
26
+ });
27
+ return (_jsxs("div", { className: cn(container), onClick: () => onClick?.(), children: [typeof flag !== "undefined" && _jsx("div", { className: cn(flagBox(flag)) }), dataField &&
22
28
  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, options }) => (_jsx(Label.Button, { title: title, onClick: onClick, options: {
23
29
  background: options?.background ?? "bg-crimson-dark",
24
30
  text: options?.text ?? "text-white",
@@ -1,11 +1,11 @@
1
1
  import { RowProps } from "../../interface";
2
- declare function Row<T>({ item, dataField, onClick, buttons }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
2
+ declare function Row<T>({ item, dataField, onClick, buttons, flag }: RowProps<T>): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace Row {
4
- var Card: <T>({ item, dataField, onClick, buttons, height, noPadding, noHover, }: Omit<RowProps<T>, "options"> & {
4
+ var Card: <T>({ item, dataField, onClick, buttons, height, noPadding, noHover, flag, }: Omit<RowProps<T>, "options"> & {
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, options }: RowProps<T>) => import("react/jsx-runtime").JSX.Element;
9
+ var Board: <T>({ item, dataField, onClick, buttons, flag, options, }: RowProps<T>) => import("react/jsx-runtime").JSX.Element;
10
10
  }
11
11
  export default Row;
@@ -1,26 +1,26 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
3
  import RowDesign from "../design/Row.design";
4
- function Row({ item, dataField, onClick, buttons }) {
5
- return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, options: {
4
+ function Row({ item, dataField, onClick, buttons, flag }) {
5
+ return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, flag: flag, options: {
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, options }) {
12
+ function Board({ item, dataField, onClick, buttons, flag, options, }) {
13
13
  const id = useId();
14
- return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, options: {
14
+ return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, flag: flag, options: {
15
15
  ...options,
16
16
  size: "w-full h-12",
17
17
  padding: "px-2 xs:px-4 xl:px-7.5",
18
18
  text: "text-xl",
19
19
  } }, id));
20
20
  }
21
- function Card({ item, dataField, onClick, buttons, height, noPadding, noHover, }) {
21
+ function Card({ item, dataField, onClick, buttons, height, noPadding, noHover, flag, }) {
22
22
  const id = useId();
23
- return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, options: {
23
+ return (_jsx(RowDesign, { onClick: onClick, item: item, dataField: dataField, buttons: buttons, flag: flag, options: {
24
24
  size: `w-full ${height ?? "h-12"}`,
25
25
  padding: !noPadding ? "px-2 xs:px-4 xl:px-7.5" : "",
26
26
  text: "text-base",
@@ -0,0 +1,9 @@
1
+ import { Scripts } from "../../../interface";
2
+ import { ConfirmModalProps } from "../../../interface/Modal";
3
+ interface AlertProps extends Omit<ConfirmModalProps, "children"> {
4
+ scripts: Scripts & {
5
+ alert?: string;
6
+ };
7
+ }
8
+ export type { AlertProps };
9
+ export default function Alert(props: AlertProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { LineBreaks } from "../../../text";
3
+ import { cn } from "../../../util";
4
+ import ConfirmModalDesign from "../../design/ConfirmModal.design";
5
+ export default function Alert(props) {
6
+ const container = {
7
+ displays: "flex flex-col gap-3 justify-center items-center",
8
+ margins: "mt-2.5",
9
+ sizes: "w-full h-60",
10
+ };
11
+ return (_jsx(ConfirmModalDesign, { ...props, children: _jsxs("div", { className: cn(container), children: [_jsx("div", { className: "leading-none text-xl font-pretendard-bold", children: props.scripts.script }), _jsx(LineBreaks, { className: "text-center", texts: props.scripts.subscript }), _jsx("div", { className: "leading-none font-pretendard-bold text-crimson-burgundy", children: props.scripts.alert })] }), options: {
12
+ width: "md",
13
+ height: "lg",
14
+ } }));
15
+ }
@@ -1,9 +1,2 @@
1
- import { Scripts } from "../../../interface";
2
1
  import { ConfirmModalProps } from "../../../interface/Modal";
3
- interface ConfirmProps extends Omit<ConfirmModalProps, "children"> {
4
- scripts: Scripts & {
5
- alert?: string;
6
- };
7
- }
8
- export type { ConfirmProps };
9
- export default function Confirm(props: ConfirmProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function Confirm(props: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,13 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LineBreaks } from "../../../text";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { cn } from "../../../util";
4
3
  import ConfirmModalDesign from "../../design/ConfirmModal.design";
5
4
  export default function Confirm(props) {
6
5
  const container = {
7
- displays: "flex flex-col gap-3 justify-center items-center",
6
+ displays: "flex flex-col",
8
7
  margins: "mt-2.5",
9
8
  sizes: "w-full h-60",
10
9
  };
11
- return (_jsx(ConfirmModalDesign, { ...props, children: _jsxs("div", { className: cn(container), children: [_jsx("div", { className: "leading-none text-xl font-pretendard-bold", children: props.scripts.script }), _jsx(LineBreaks, { className: "text-center", texts: props.scripts.subscript }), _jsx("div", { className: "leading-none font-pretendard-bold text-crimson-burgundy", children: props.scripts.alert })] }), options: {
10
+ return (_jsx(ConfirmModalDesign, { ...props, children: _jsx("div", { className: cn(container), children: props.children }), options: {
12
11
  width: "md",
13
12
  height: "lg",
14
13
  } }));
@@ -1,6 +1,7 @@
1
- import { ConfirmProps } from "./Confirm";
2
- declare function ConfirmModal(props: ConfirmProps): import("react/jsx-runtime").JSX.Element;
1
+ import { ConfirmModalProps } from "../../../interface/Modal";
2
+ declare function ConfirmModal(props: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace ConfirmModal {
4
+ var Alert: typeof import("./Alert").default;
4
5
  var Input: typeof import("./Input").default;
5
6
  var Reimage: typeof import("./Reimage").default;
6
7
  var Switch: typeof import("./Switch").default;
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import Confirm from "./Confirm";
3
+ import Alert from "./Alert";
3
4
  import Input from "./Input";
4
5
  import Reimage from "./Reimage";
5
6
  import Tag from "./Tag";
@@ -7,6 +8,7 @@ import Switch from "./Switch";
7
8
  function ConfirmModal(props) {
8
9
  return _jsx(Confirm, { ...props });
9
10
  }
11
+ ConfirmModal.Alert = Alert;
10
12
  ConfirmModal.Input = Input;
11
13
  ConfirmModal.Reimage = Reimage;
12
14
  ConfirmModal.Switch = Switch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",