widenarrow-ui 1.1.76 → 1.1.78
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/lib/components/SkeletonItem/SkeletonItem.types.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.esm.js +5 -5
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ListSkeleton/ListSkeleton.tsx +1 -2
- package/src/components/SkeletonItem/SkeletonItem.tsx +8 -9
- package/src/components/SkeletonItem/SkeletonItem.types.ts +0 -1
package/package.json
CHANGED
|
@@ -21,7 +21,6 @@ const ListSkeleton: FC<ListSkeletonProps> = ({
|
|
|
21
21
|
itemHeight = '60px',
|
|
22
22
|
marginBottom = '1',
|
|
23
23
|
padding = '1',
|
|
24
|
-
withContent,
|
|
25
24
|
borderColor,
|
|
26
25
|
border,
|
|
27
26
|
borderTop,
|
|
@@ -51,12 +50,12 @@ const ListSkeleton: FC<ListSkeletonProps> = ({
|
|
|
51
50
|
borderBottom={borderBottom}
|
|
52
51
|
borderRight={borderRight}
|
|
53
52
|
padding={padding}
|
|
54
|
-
withContent={withContent}
|
|
55
53
|
withBorderRadius={withBorderRadius}
|
|
56
54
|
backgroundColor={backgroundColor}
|
|
57
55
|
height={itemHeight}
|
|
58
56
|
width={'100%'}
|
|
59
57
|
withImage={withImage}
|
|
58
|
+
wrapperElement={'li'}
|
|
60
59
|
/>
|
|
61
60
|
))}
|
|
62
61
|
</ul>
|
|
@@ -15,13 +15,11 @@ const SkeletonItem: FC<SkeletonItemProps> = ({
|
|
|
15
15
|
className,
|
|
16
16
|
margin,
|
|
17
17
|
marginY,
|
|
18
|
-
wrapperElement = 'div',
|
|
19
18
|
marginTop,
|
|
20
19
|
marginLeft,
|
|
21
20
|
marginBottom,
|
|
22
21
|
marginRight,
|
|
23
22
|
marginX,
|
|
24
|
-
padding,
|
|
25
23
|
paddingY,
|
|
26
24
|
paddingBottom,
|
|
27
25
|
paddingTop,
|
|
@@ -30,9 +28,7 @@ const SkeletonItem: FC<SkeletonItemProps> = ({
|
|
|
30
28
|
paddingX,
|
|
31
29
|
height,
|
|
32
30
|
width,
|
|
33
|
-
withContent,
|
|
34
31
|
contentRows,
|
|
35
|
-
contentColor,
|
|
36
32
|
withImage,
|
|
37
33
|
imageColor,
|
|
38
34
|
borderColor,
|
|
@@ -41,13 +37,16 @@ const SkeletonItem: FC<SkeletonItemProps> = ({
|
|
|
41
37
|
borderLeft,
|
|
42
38
|
borderBottom,
|
|
43
39
|
borderRight,
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
contentColor,
|
|
41
|
+
wrapperElement = 'div',
|
|
42
|
+
padding = '1',
|
|
43
|
+
backgroundColor = ColorTypes.WHITE,
|
|
44
|
+
withBorderRadius = true
|
|
46
45
|
}) => {
|
|
47
46
|
const content = (
|
|
48
47
|
<Fragment>
|
|
49
|
-
{withImage ? <Box backgroundColor={imageColor} className={s('image')} style={{ width: height }} /> : null}
|
|
50
|
-
{
|
|
48
|
+
{withImage ? <Box backgroundColor={imageColor || contentColor} className={s('image')} style={{ width: height }} /> : null}
|
|
49
|
+
{contentRows ? (
|
|
51
50
|
<div className={s('content')}>
|
|
52
51
|
<span
|
|
53
52
|
className={s('heading', {
|
|
@@ -69,7 +68,7 @@ const SkeletonItem: FC<SkeletonItemProps> = ({
|
|
|
69
68
|
)
|
|
70
69
|
: null}
|
|
71
70
|
</div>
|
|
72
|
-
)}
|
|
71
|
+
) : null}
|
|
73
72
|
</Fragment>
|
|
74
73
|
);
|
|
75
74
|
|