@teamturing/react-kit 2.6.0 → 2.6.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ImgHTMLAttributes } from 'react';
|
|
1
2
|
import { ChipProps, StackProps, TextProps, SpaceProps } from '../..';
|
|
2
3
|
/**
|
|
3
4
|
* View Related Model
|
|
@@ -6,12 +7,7 @@ export type TextView = {
|
|
|
6
7
|
text: string;
|
|
7
8
|
textProps?: TextProps;
|
|
8
9
|
};
|
|
9
|
-
export type ImageView =
|
|
10
|
-
src: string;
|
|
11
|
-
alt: string;
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
};
|
|
10
|
+
export type ImageView = Pick<ImgHTMLAttributes<HTMLImageElement>, 'src' | 'alt' | 'width' | 'height' | 'loading'>;
|
|
15
11
|
export type ChipGroupView = {
|
|
16
12
|
size: ChipProps['size'];
|
|
17
13
|
gapX: StackProps['gapX'];
|
package/dist/index.js
CHANGED
|
@@ -14250,6 +14250,7 @@ const ImageView = ({
|
|
|
14250
14250
|
}
|
|
14251
14251
|
}) => /*#__PURE__*/jsxRuntimeExports.jsx(Image, {
|
|
14252
14252
|
loading: 'lazy',
|
|
14253
|
+
display: 'block',
|
|
14253
14254
|
...props
|
|
14254
14255
|
});
|
|
14255
14256
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.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",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"react-is": "^18.2.0",
|
|
58
58
|
"styled-system": "^5.1.5"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "08ae127eb69df6ebdff8fa3ba84a8506ab8b8f6a"
|
|
61
61
|
}
|