@uniai-fe/ui-legacy 0.1.19 → 0.1.21

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.19",
3
+ "version": "0.1.21",
4
4
  "description": "Legacy UI Toolkit for UNIAI FE Projects",
5
5
  "type": "module",
6
6
  "private": false,
@@ -17,6 +17,7 @@ export default function ButtonTooltip({
17
17
  }>) {
18
18
  return (
19
19
  <StyledButtonBase.tooltip
20
+ className="button-tooltip"
20
21
  type="button"
21
22
  $priority={priorityType}
22
23
  $fill={fillType}
@@ -25,9 +26,9 @@ export default function ButtonTooltip({
25
26
  >
26
27
  <figure>
27
28
  {fillType === "solid" ? (
28
- <Icon.Tooltip.Solid />
29
+ <Icon.Tooltip.Solid size={size} />
29
30
  ) : (
30
- <Icon.Tooltip.Outline />
31
+ <Icon.Tooltip.Outline size={size} />
31
32
  )}
32
33
  </figure>
33
34
  </StyledButtonBase.tooltip>
@@ -2,6 +2,8 @@
2
2
 
3
3
  import IconOutline from "../../svg/tooltip/outline.svg";
4
4
 
5
- export default function IconTooltipOutline() {
6
- return <IconOutline viewBox="0 0 24 24" />;
5
+ export default function IconTooltipOutline({ size = 24 }: { size?: number }) {
6
+ return (
7
+ <IconOutline viewBox={`0 0 ${size} ${size}`} width={size} height={size} />
8
+ );
7
9
  }
@@ -2,6 +2,8 @@
2
2
 
3
3
  import IconSolid from "../../svg/tooltip/solid.svg";
4
4
 
5
- export default function IconTooltipSolid() {
6
- return <IconSolid viewBox="0 0 24 24" />;
5
+ export default function IconTooltipSolid({ size = 24 }: { size?: number }) {
6
+ return (
7
+ <IconSolid viewBox={`0 0 ${size} ${size}`} width={size} height={size} />
8
+ );
7
9
  }
@@ -1,8 +1,10 @@
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";
7
+ import type { ButtonFillType, ButtonPriorityType } from "../../types";
6
8
 
7
9
  /**
8
10
  * 툴팁; 도움말 컴포넌트
@@ -13,23 +15,33 @@ import TooltipWrapper from "./Wrapper";
13
15
  * @param {"bottom"|"top"} [props.vertical] 툴팁 세로 위치
14
16
  */
15
17
  export default function TooltipHelp({
18
+ className,
16
19
  children: message,
17
20
  horizontal = "left",
18
21
  vertical = "bottom",
22
+ buttonOptions,
19
23
  }: {
20
24
  children: React.ReactNode;
21
25
  } & Partial<{
26
+ className: string;
22
27
  horizontal: "left" | "right";
23
28
  vertical: "bottom" | "top";
29
+ buttonOptions: {
30
+ size: number;
31
+ priorityType: ButtonPriorityType;
32
+ fillType: ButtonFillType;
33
+ clickEvent: () => void;
34
+ };
24
35
  }>) {
25
36
  return (
26
37
  <StyledTooltipHelp.container
38
+ className={clsx("tooltip-container tooltip-help", className)}
27
39
  as={TooltipWrapper}
28
40
  message={message}
29
41
  horizontal={horizontal}
30
42
  vertical={vertical}
31
43
  >
32
- <Button.Tooltip />
44
+ <Button.Tooltip {...buttonOptions} />
33
45
  {/* <TooltipMessageBox horizontal={horizontal} vertical={vertical}>
34
46
  {message}
35
47
  </TooltipMessageBox> */}
@@ -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}