@teamturing/react-kit 2.46.0 → 2.46.1

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
- } & Pick<ImageProps, 'src' | 'alt'> & SxProp;
8
+ } & ImageProps & SxProp;
9
9
  declare const _default: import("react").ForwardRefExoticComponent<{
10
10
  size?: ResponsiveValue<AvatarSizeType> | undefined;
11
- } & Pick<ImageProps, "alt" | "src"> & SxProp & import("react").RefAttributes<HTMLImageElement>>;
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 = {} & Pick<ImgHTMLAttributes<HTMLImageElement>, 'src' | 'alt' | 'width' | 'height' | 'loading'> & SxProp & LayoutProps;
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);
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.46.0",
3
+ "version": "2.46.1",
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": "f9c7a1f18cdb104f8a5018d0abde78c034b5700b"
69
+ "gitHead": "bc2ac1fca3fc43166b5245fac1a7f78316ad39c7"
70
70
  }