@teamturing/react-kit 2.19.36 → 2.19.37
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/dist/core/Tooltip/index.d.ts +14 -3
- package/dist/index.js +5 -3
- package/esm/core/Tooltip/index.js +5 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { SxProp } from '../../utils/styled-system';
|
|
3
3
|
type Props = {
|
|
4
4
|
/**
|
|
@@ -10,6 +10,17 @@ type Props = {
|
|
|
10
10
|
*/
|
|
11
11
|
text?: string;
|
|
12
12
|
} & SxProp & Pick<HTMLAttributes<HTMLSpanElement>, 'className'>;
|
|
13
|
-
declare const
|
|
14
|
-
|
|
13
|
+
declare const _default: import("react").ForwardRefExoticComponent<{
|
|
14
|
+
/**
|
|
15
|
+
* children 컴포넌트 기준으로 Tooltip의 위치를 정의합니다.
|
|
16
|
+
*/
|
|
17
|
+
direction?: "left" | "right" | "top-center" | "top-right" | "bottom-right" | "bottom-center" | "bottom-left" | "top-left" | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Tooltip의 텍스트를 정의합니다.
|
|
20
|
+
*/
|
|
21
|
+
text?: string | undefined;
|
|
22
|
+
} & SxProp & Pick<HTMLAttributes<HTMLSpanElement>, "className"> & {
|
|
23
|
+
children?: import("react").ReactNode;
|
|
24
|
+
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
25
|
+
export default _default;
|
|
15
26
|
export type { Props as TooptipProps };
|
package/dist/index.js
CHANGED
|
@@ -16694,9 +16694,10 @@ const Tooltip = ({
|
|
|
16694
16694
|
text,
|
|
16695
16695
|
className: propClassName,
|
|
16696
16696
|
sx
|
|
16697
|
-
}) => {
|
|
16697
|
+
}, ref) => {
|
|
16698
16698
|
const className = [propClassName, `tooltip-direction-${direction}`].join(' ');
|
|
16699
16699
|
return /*#__PURE__*/jsxRuntimeExports.jsx(BaseTooltip, {
|
|
16700
|
+
ref: ref,
|
|
16700
16701
|
role: 'tooltip',
|
|
16701
16702
|
"aria-label": text,
|
|
16702
16703
|
className: className,
|
|
@@ -16942,6 +16943,7 @@ const BaseTooltip = styled__default.default.span`
|
|
|
16942
16943
|
|
|
16943
16944
|
${sx}
|
|
16944
16945
|
`;
|
|
16946
|
+
var Tooltip$1 = /*#__PURE__*/React.forwardRef(Tooltip);
|
|
16945
16947
|
|
|
16946
16948
|
const BreadcrumbsItem = ({
|
|
16947
16949
|
text,
|
|
@@ -16965,7 +16967,7 @@ const BreadcrumbsItem = ({
|
|
|
16965
16967
|
...props,
|
|
16966
16968
|
children: text
|
|
16967
16969
|
});
|
|
16968
|
-
return isOverflow ? /*#__PURE__*/jsxRuntimeExports.jsx(Tooltip, {
|
|
16970
|
+
return isOverflow ? /*#__PURE__*/jsxRuntimeExports.jsx(Tooltip$1, {
|
|
16969
16971
|
text: text,
|
|
16970
16972
|
direction: 'bottom-center',
|
|
16971
16973
|
sx: {
|
|
@@ -25616,7 +25618,7 @@ exports.TextInput = TextInput$1;
|
|
|
25616
25618
|
exports.Textarea = Textarea;
|
|
25617
25619
|
exports.ThemeProvider = ThemeProvider;
|
|
25618
25620
|
exports.Toast = Toast;
|
|
25619
|
-
exports.Tooltip = Tooltip;
|
|
25621
|
+
exports.Tooltip = Tooltip$1;
|
|
25620
25622
|
exports.UnstyledButton = UnstyledButton;
|
|
25621
25623
|
exports.View = View;
|
|
25622
25624
|
exports.lineClamp = lineClamp;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
2
3
|
import styled, { keyframes } from 'styled-components';
|
|
3
4
|
import { sx } from '../../utils/styled-system/index.js';
|
|
4
5
|
import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
|
|
@@ -9,9 +10,10 @@ const Tooltip = ({
|
|
|
9
10
|
text,
|
|
10
11
|
className: propClassName,
|
|
11
12
|
sx
|
|
12
|
-
}) => {
|
|
13
|
+
}, ref) => {
|
|
13
14
|
const className = [propClassName, `tooltip-direction-${direction}`].join(' ');
|
|
14
15
|
return /*#__PURE__*/jsxRuntimeExports.jsx(BaseTooltip, {
|
|
16
|
+
ref: ref,
|
|
15
17
|
role: 'tooltip',
|
|
16
18
|
"aria-label": text,
|
|
17
19
|
className: className,
|
|
@@ -257,5 +259,6 @@ const BaseTooltip = styled.span`
|
|
|
257
259
|
|
|
258
260
|
${sx}
|
|
259
261
|
`;
|
|
262
|
+
var Tooltip$1 = /*#__PURE__*/forwardRef(Tooltip);
|
|
260
263
|
|
|
261
|
-
export { Tooltip as default };
|
|
264
|
+
export { Tooltip$1 as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.37",
|
|
4
4
|
"description": "React components, hooks for create teamturing web application",
|
|
5
5
|
"author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
|
|
6
6
|
"homepage": "https://github.com/weareteamturing/bombe#readme",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"react-textarea-autosize": "^8.5.3",
|
|
66
66
|
"styled-system": "^5.1.5"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "73945734bdadf5722fb5450dc467d0d267e88540"
|
|
69
69
|
}
|