@bitrise/bitkit 13.157.0 → 13.158.0
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/package.json
CHANGED
|
@@ -8,6 +8,7 @@ import SkeletonBox from '../Skeleton/SkeletonBox';
|
|
|
8
8
|
|
|
9
9
|
type DataOrPlaceholder = { placeholder: string; data?: never } | { data: string; placeholder?: never };
|
|
10
10
|
export type LabeledDataProps = BoxProps & {
|
|
11
|
+
skeletonVariant?: 'single' | 'double';
|
|
11
12
|
as?: 'div' | 'dl';
|
|
12
13
|
isLoading?: boolean;
|
|
13
14
|
label: string;
|
|
@@ -22,6 +23,7 @@ export type LabeledDataProps = BoxProps & {
|
|
|
22
23
|
|
|
23
24
|
const LabeledData = ({
|
|
24
25
|
as = 'div',
|
|
26
|
+
skeletonVariant = 'double',
|
|
25
27
|
data,
|
|
26
28
|
placeholder,
|
|
27
29
|
isLoading = false,
|
|
@@ -97,7 +99,7 @@ const LabeledData = ({
|
|
|
97
99
|
{isLoading ? (
|
|
98
100
|
<Skeleton isActive display="flex" flexDirection="column" gap="4">
|
|
99
101
|
<SkeletonBox height={dataSkeletonHeight} width="120px" marginY={dataSkeletonPaddingY} />
|
|
100
|
-
<SkeletonBox height="14" width="120px" marginY="3" />
|
|
102
|
+
{skeletonVariant === 'double' && <SkeletonBox height="14" width="120px" marginY="3" />}
|
|
101
103
|
</Skeleton>
|
|
102
104
|
) : (
|
|
103
105
|
<>
|