@teamturing/react-kit 2.46.0 → 2.46.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.
|
@@ -5,9 +5,9 @@ import { ImageProps } from '../Image';
|
|
|
5
5
|
type AvatarSizeType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
6
6
|
type Props = {
|
|
7
7
|
size?: ResponsiveValue<AvatarSizeType>;
|
|
8
|
-
} &
|
|
8
|
+
} & ImageProps & SxProp;
|
|
9
9
|
declare const _default: import("react").ForwardRefExoticComponent<{
|
|
10
10
|
size?: ResponsiveValue<AvatarSizeType> | undefined;
|
|
11
|
-
} &
|
|
11
|
+
} & import("react").ImgHTMLAttributes<HTMLImageElement> & SxProp & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("react").RefAttributes<HTMLImageElement>>;
|
|
12
12
|
export default _default;
|
|
13
13
|
export type { Props as AvatarProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImgHTMLAttributes } from 'react';
|
|
2
2
|
import { LayoutProps } from 'styled-system';
|
|
3
3
|
import { SxProp } from '../../utils/styled-system';
|
|
4
|
-
type Props = {} &
|
|
4
|
+
type Props = {} & ImgHTMLAttributes<HTMLImageElement> & SxProp & LayoutProps;
|
|
5
5
|
declare const Image: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, Props>>;
|
|
6
6
|
export default Image;
|
|
7
7
|
export type { Props as ImageProps };
|
package/dist/index.js
CHANGED
|
@@ -16797,13 +16797,15 @@ const Avatar = ({
|
|
|
16797
16797
|
src,
|
|
16798
16798
|
alt = '',
|
|
16799
16799
|
size = 'm',
|
|
16800
|
-
sx
|
|
16800
|
+
sx,
|
|
16801
|
+
...props
|
|
16801
16802
|
}, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseAvatar, {
|
|
16802
16803
|
ref: ref,
|
|
16803
16804
|
src: src,
|
|
16804
16805
|
alt: alt,
|
|
16805
16806
|
sx: sx,
|
|
16806
|
-
size: size
|
|
16807
|
+
size: size,
|
|
16808
|
+
...props
|
|
16807
16809
|
});
|
|
16808
16810
|
const BaseAvatar = styled__default.default(Image)`
|
|
16809
16811
|
border-radius: ${({
|
|
@@ -16847,6 +16849,7 @@ const BaseAvatar = styled__default.default(Image)`
|
|
|
16847
16849
|
}
|
|
16848
16850
|
}
|
|
16849
16851
|
})}
|
|
16852
|
+
|
|
16850
16853
|
${sx}
|
|
16851
16854
|
`;
|
|
16852
16855
|
var index$e = /*#__PURE__*/React.forwardRef(Avatar);
|
|
@@ -34304,8 +34307,10 @@ const Tooltip = ({
|
|
|
34304
34307
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(BaseTooltip, {
|
|
34305
34308
|
placement: directionToPlacement,
|
|
34306
34309
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(BaseTooltipTrigger, {
|
|
34310
|
+
className: 'tooltip__tooltip_trigger',
|
|
34307
34311
|
children: children
|
|
34308
34312
|
}), /*#__PURE__*/jsxRuntimeExports.jsx(BaseTooltipContent, {
|
|
34313
|
+
className: 'tooltip__tooltip_content',
|
|
34309
34314
|
children: text
|
|
34310
34315
|
})]
|
|
34311
34316
|
});
|
package/esm/core/Avatar/index.js
CHANGED
|
@@ -11,13 +11,15 @@ const Avatar = ({
|
|
|
11
11
|
src,
|
|
12
12
|
alt = '',
|
|
13
13
|
size = 'm',
|
|
14
|
-
sx
|
|
14
|
+
sx,
|
|
15
|
+
...props
|
|
15
16
|
}, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseAvatar, {
|
|
16
17
|
ref: ref,
|
|
17
18
|
src: src,
|
|
18
19
|
alt: alt,
|
|
19
20
|
sx: sx,
|
|
20
|
-
size: size
|
|
21
|
+
size: size,
|
|
22
|
+
...props
|
|
21
23
|
});
|
|
22
24
|
const BaseAvatar = styled(Image)`
|
|
23
25
|
border-radius: ${({
|
|
@@ -61,6 +63,7 @@ const BaseAvatar = styled(Image)`
|
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
})}
|
|
66
|
+
|
|
64
67
|
${sx}
|
|
65
68
|
`;
|
|
66
69
|
var index = /*#__PURE__*/forwardRef(Avatar);
|
|
@@ -19,8 +19,10 @@ const Tooltip = ({
|
|
|
19
19
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(BaseTooltip, {
|
|
20
20
|
placement: directionToPlacement,
|
|
21
21
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(BaseTooltipTrigger, {
|
|
22
|
+
className: 'tooltip__tooltip_trigger',
|
|
22
23
|
children: children
|
|
23
24
|
}), /*#__PURE__*/jsxRuntimeExports.jsx(BaseTooltipContent, {
|
|
25
|
+
className: 'tooltip__tooltip_content',
|
|
24
26
|
children: text
|
|
25
27
|
})]
|
|
26
28
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.46.
|
|
3
|
+
"version": "2.46.2",
|
|
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",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-textarea-autosize": "^8.5.3",
|
|
67
67
|
"styled-system": "^5.1.5"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "356cb9e393d0969affa112f95ba5508c40d7390a"
|
|
70
70
|
}
|