@uniai-fe/ui-legacy 0.1.18 → 0.1.20
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/package.json +1 -1
- package/src/form-field/select/index.tsx +2 -0
- package/src/modal/components/assets/layout/Body.tsx +5 -1
- package/src/modal/components/assets/layout/Footer.tsx +1 -1
- package/src/modal/components/assets/layout/Header.tsx +3 -1
- package/src/modal/components/basic/Container.tsx +1 -0
- package/src/tooltip/components/Help.tsx +4 -0
- package/src/tooltip/components/MessageBox.tsx +1 -0
- package/src/tooltip/components/Wrapper.tsx +4 -1
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import SelectContainer from "./components/assets/Container";
|
|
1
2
|
import SelectDefault from "./components/Default";
|
|
2
3
|
import SelectMultipleCategoryList from "./components/MultipleCategoryList";
|
|
3
4
|
import SelectMultipleDefault from "./components/MultipleDefault";
|
|
4
5
|
|
|
5
6
|
const Select = {
|
|
7
|
+
Container: SelectContainer,
|
|
6
8
|
Default: SelectDefault,
|
|
7
9
|
Multiple: {
|
|
8
10
|
Default: SelectMultipleDefault,
|
|
@@ -3,5 +3,9 @@
|
|
|
3
3
|
import StyledModalLayout from "../../../styles/styled-components/layout";
|
|
4
4
|
|
|
5
5
|
export default function ModalBody({ body }: { body: React.ReactNode }) {
|
|
6
|
-
return
|
|
6
|
+
return (
|
|
7
|
+
<StyledModalLayout.body className="modal-body">
|
|
8
|
+
{body}
|
|
9
|
+
</StyledModalLayout.body>
|
|
10
|
+
);
|
|
7
11
|
}
|
|
@@ -24,16 +24,18 @@ export default function ModalHeader({
|
|
|
24
24
|
|
|
25
25
|
return (
|
|
26
26
|
<StyledModalLayout.header.container
|
|
27
|
+
className="modal-header-container"
|
|
27
28
|
$isAlert={isAlert}
|
|
28
29
|
$isNoTitle={isNoTitle}
|
|
29
30
|
>
|
|
30
31
|
{!isAlert && (
|
|
31
|
-
<StyledModalLayout.header.title>
|
|
32
|
+
<StyledModalLayout.header.title className="modal-header-title">
|
|
32
33
|
{typeof title === "string" ? <span>{title ?? ""}</span> : title}
|
|
33
34
|
</StyledModalLayout.header.title>
|
|
34
35
|
)}
|
|
35
36
|
{isCloseBtn && (
|
|
36
37
|
<StyledModalLayout.header.closeButton
|
|
38
|
+
className="modal-header-close-button"
|
|
37
39
|
type="button"
|
|
38
40
|
onClick={() => closeModal({ stackKey })}
|
|
39
41
|
>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import clsx from "clsx";
|
|
3
4
|
import Button from "../../button";
|
|
4
5
|
import StyledTooltipHelp from "../styles/styled-components/help";
|
|
5
6
|
import TooltipWrapper from "./Wrapper";
|
|
@@ -13,17 +14,20 @@ import TooltipWrapper from "./Wrapper";
|
|
|
13
14
|
* @param {"bottom"|"top"} [props.vertical] 툴팁 세로 위치
|
|
14
15
|
*/
|
|
15
16
|
export default function TooltipHelp({
|
|
17
|
+
className,
|
|
16
18
|
children: message,
|
|
17
19
|
horizontal = "left",
|
|
18
20
|
vertical = "bottom",
|
|
19
21
|
}: {
|
|
20
22
|
children: React.ReactNode;
|
|
21
23
|
} & Partial<{
|
|
24
|
+
className: string;
|
|
22
25
|
horizontal: "left" | "right";
|
|
23
26
|
vertical: "bottom" | "top";
|
|
24
27
|
}>) {
|
|
25
28
|
return (
|
|
26
29
|
<StyledTooltipHelp.container
|
|
30
|
+
className={clsx("tooltip-container tooltip-help", className)}
|
|
27
31
|
as={TooltipWrapper}
|
|
28
32
|
message={message}
|
|
29
33
|
horizontal={horizontal}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import clsx from "clsx";
|
|
3
4
|
import StyledTooltipBase from "../styles/styled-components/base";
|
|
4
5
|
import TooltipMessageBox from "./MessageBox";
|
|
5
6
|
|
|
@@ -12,6 +13,7 @@ import TooltipMessageBox from "./MessageBox";
|
|
|
12
13
|
* @param {"bottom"|"top"} [props.vertical] 툴팁 세로 위치
|
|
13
14
|
*/
|
|
14
15
|
export default function TooltipWrapper({
|
|
16
|
+
className,
|
|
15
17
|
children,
|
|
16
18
|
message,
|
|
17
19
|
horizontal = "left",
|
|
@@ -20,11 +22,12 @@ export default function TooltipWrapper({
|
|
|
20
22
|
children: React.ReactNode;
|
|
21
23
|
message: React.ReactNode;
|
|
22
24
|
} & Partial<{
|
|
25
|
+
className: string;
|
|
23
26
|
horizontal: "left" | "right";
|
|
24
27
|
vertical: "bottom" | "top";
|
|
25
28
|
}>) {
|
|
26
29
|
return (
|
|
27
|
-
<StyledTooltipBase.parent>
|
|
30
|
+
<StyledTooltipBase.parent className={clsx("tooltip-wrapper", className)}>
|
|
28
31
|
{children}
|
|
29
32
|
<TooltipMessageBox horizontal={horizontal} vertical={vertical}>
|
|
30
33
|
{message}
|