@team-monolith/cds 1.113.0 → 1.113.2
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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { TooltipProps as MuiTooltipProps } from "@mui/material";
|
|
2
3
|
export declare const tooltipClasses: {
|
|
3
4
|
readonly root: "Tooltip";
|
|
4
5
|
readonly title: "Tooltip-title";
|
|
5
6
|
};
|
|
6
|
-
export interface TooltipProps {
|
|
7
|
+
export interface TooltipProps extends Omit<MuiTooltipProps, "title" | "component"> {
|
|
7
8
|
className?: string;
|
|
8
9
|
/** 툴팁에 표시될 제목 텍스트 */
|
|
9
10
|
title?: string;
|
|
@@ -29,4 +30,4 @@ export interface TooltipProps {
|
|
|
29
30
|
/**
|
|
30
31
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=172-626&t=aFkKTFgWq2xFFGC5-0)
|
|
31
32
|
*/
|
|
32
|
-
export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<unknown>>;
|
|
33
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -62,12 +62,16 @@ const DropdownItem = React.forwardRef(function DropdownItem(props, ref) {
|
|
|
62
62
|
}
|
|
63
63
|
: {}), { children: _jsxs(Item, { ref: itemRef, disabled: disabled, selected: isSubMenuShowed || Boolean(active), children: [_jsxs(LeftWrapper, { children: [checkbox && (_jsx(StyledCheckboxInput, Object.assign({}, checkboxProps, { disabled: disabled, onClick: (e) => {
|
|
64
64
|
e.stopPropagation();
|
|
65
|
-
} }))), startIcon && (_jsx(IconDiv, { type: type, preserveIconColor: preserveIconColor, children: startIcon })), _jsx(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
} }))), startIcon && (_jsx(IconDiv, { type: type, preserveIconColor: preserveIconColor, children: startIcon })), _jsx(OverflowTooltip, { childrenCss: css `
|
|
66
|
+
flex: 1;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
font-family: ${theme.fontFamily.ui};
|
|
72
|
+
color: ${TYPE_TO_COLOR(theme, type)};
|
|
73
|
+
${labelCss}
|
|
74
|
+
`, text: label })] }), endIcon && (_jsx(IconDiv, { type: type, preserveIconColor: preserveIconColor, children: endIcon })), !endIcon && isSubMenuExist && (_jsx(IconDiv, { type: type, preserveIconColor: preserveIconColor, children: _jsx(ArrowRightSLineIcon, {}) }))] }) })), isSubMenuExist && (_jsx(DropdownContext.Provider, { value: {
|
|
71
75
|
open,
|
|
72
76
|
onCloseOnItemClick,
|
|
73
77
|
nestedIndex: absItemIndex,
|
|
@@ -98,15 +102,6 @@ const IconDiv = styled("div", {
|
|
|
98
102
|
`}
|
|
99
103
|
}
|
|
100
104
|
`);
|
|
101
|
-
const LabelDiv = styled.div `
|
|
102
|
-
flex: 1;
|
|
103
|
-
min-width: 0;
|
|
104
|
-
overflow: hidden;
|
|
105
|
-
font-size: 14px;
|
|
106
|
-
font-weight: 400;
|
|
107
|
-
font-family: ${({ theme }) => theme.fontFamily.ui};
|
|
108
|
-
color: ${({ theme, type }) => TYPE_TO_COLOR(theme, type)};
|
|
109
|
-
`;
|
|
110
105
|
const LeftWrapper = styled.div `
|
|
111
106
|
display: flex;
|
|
112
107
|
align-items: center;
|