@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/ui-legacy",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Legacy UI Toolkit for UNIAI FE Projects",
5
5
  "type": "module",
6
6
  "private": false,
@@ -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 <StyledModalLayout.body>{body}</StyledModalLayout.body>;
6
+ return (
7
+ <StyledModalLayout.body className="modal-body">
8
+ {body}
9
+ </StyledModalLayout.body>
10
+ );
7
11
  }
@@ -10,7 +10,7 @@ export default function ModalFooter({
10
10
  btns: (ModalFooterButtonType | null)[];
11
11
  }) {
12
12
  return (
13
- <StyledModalLayout.footer>
13
+ <StyledModalLayout.footer className="modal-footer">
14
14
  {btns.map(
15
15
  (btn, index) =>
16
16
  btn !== null && (
@@ -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
  >
@@ -30,6 +30,7 @@ export default function ModalBasicContainer({
30
30
 
31
31
  return (
32
32
  <StyledModalBasic.container
33
+ className="modal-basic-container"
33
34
  $width={width}
34
35
  $layout={layoutType}
35
36
  $isFooter={typeof data?.footerBtns !== "undefined"}
@@ -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}
@@ -16,6 +16,7 @@ export default function TooltipMessageBox({
16
16
  }>) {
17
17
  return (
18
18
  <StyledTooltipMessageBox.container
19
+ className="tooltip-message-box"
19
20
  $horizontal={horizontal}
20
21
  $vertical={vertical}
21
22
  $bgColor={bgColor}
@@ -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}