@webority-technologies/mobile 0.0.4 → 0.0.6
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/README.md +72 -0
- package/lib/commonjs/components/Accordion/Accordion.js +20 -1
- package/lib/commonjs/components/Avatar/Avatar.js +12 -2
- package/lib/commonjs/components/Badge/Badge.js +17 -10
- package/lib/commonjs/components/Banner/Banner.js +17 -5
- package/lib/commonjs/components/Button/Button.js +5 -2
- package/lib/commonjs/components/Card/Card.js +22 -10
- package/lib/commonjs/components/Carousel/Carousel.js +18 -1
- package/lib/commonjs/components/Chip/Chip.js +27 -15
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +19 -9
- package/lib/commonjs/components/ListItem/ListItem.js +15 -8
- package/lib/commonjs/components/Rating/Rating.js +11 -1
- package/lib/commonjs/components/Stepper/Stepper.js +13 -3
- package/lib/module/components/Accordion/Accordion.js +20 -1
- package/lib/module/components/Avatar/Avatar.js +12 -2
- package/lib/module/components/Badge/Badge.js +17 -10
- package/lib/module/components/Banner/Banner.js +17 -5
- package/lib/module/components/Button/Button.js +6 -3
- package/lib/module/components/Card/Card.js +22 -10
- package/lib/module/components/Carousel/Carousel.js +18 -1
- package/lib/module/components/Chip/Chip.js +27 -15
- package/lib/module/components/ImageGallery/ImageGallery.js +11 -1
- package/lib/module/components/ListItem/ListItem.js +15 -8
- package/lib/module/components/Rating/Rating.js +11 -1
- package/lib/module/components/Stepper/Stepper.js +13 -3
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +7 -0
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +6 -0
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +6 -0
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +6 -0
- package/lib/typescript/commonjs/components/Button/Button.d.ts +5 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts +6 -0
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +7 -0
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +6 -0
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +6 -0
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +6 -0
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +6 -0
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +6 -0
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +7 -0
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +6 -0
- package/lib/typescript/module/components/Badge/Badge.d.ts +6 -0
- package/lib/typescript/module/components/Banner/Banner.d.ts +6 -0
- package/lib/typescript/module/components/Button/Button.d.ts +5 -0
- package/lib/typescript/module/components/Card/Card.d.ts +6 -0
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +7 -0
- package/lib/typescript/module/components/Chip/Chip.d.ts +6 -0
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +6 -0
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +6 -0
- package/lib/typescript/module/components/Rating/Rating.d.ts +6 -0
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +6 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import React, { forwardRef, useEffect, useMemo, useRef } from 'react';
|
|
|
4
4
|
import { Animated, Easing, Pressable, StyleSheet, Text, View } from 'react-native';
|
|
5
5
|
import { useTheme } from "../../theme/index.js";
|
|
6
6
|
import { triggerHaptic } from "../../utils/hapticUtils.js";
|
|
7
|
+
import { SkeletonContent } from "../Skeleton/index.js";
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
const CIRCLE_SIZE = 24;
|
|
9
10
|
const PULSE_SIZE = 32;
|
|
@@ -159,6 +160,7 @@ const Stepper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
159
160
|
onStepPress,
|
|
160
161
|
variant = 'horizontal',
|
|
161
162
|
tone = 'primary',
|
|
163
|
+
loading = false,
|
|
162
164
|
accessibilityLabel,
|
|
163
165
|
style,
|
|
164
166
|
testID
|
|
@@ -233,7 +235,7 @@ const Stepper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
233
235
|
fontSize: theme.typography.fontSize.xs
|
|
234
236
|
}],
|
|
235
237
|
numberOfLines: 1,
|
|
236
|
-
children: step
|
|
238
|
+
children: step?.label ?? ' '
|
|
237
239
|
})]
|
|
238
240
|
}, step.key);
|
|
239
241
|
})]
|
|
@@ -281,7 +283,7 @@ const Stepper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
281
283
|
fontWeight: theme.typography.fontWeight.semibold
|
|
282
284
|
}],
|
|
283
285
|
numberOfLines: 1,
|
|
284
|
-
children: step
|
|
286
|
+
children: step?.label ?? ' '
|
|
285
287
|
}), step.description ? /*#__PURE__*/_jsx(Text, {
|
|
286
288
|
style: [styles.vDescription, {
|
|
287
289
|
color: theme.colors.text.secondary,
|
|
@@ -294,7 +296,7 @@ const Stepper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
294
296
|
}, step.key);
|
|
295
297
|
})
|
|
296
298
|
});
|
|
297
|
-
|
|
299
|
+
const rendered = /*#__PURE__*/_jsx(View, {
|
|
298
300
|
ref: ref,
|
|
299
301
|
style: [styles.container, style],
|
|
300
302
|
testID: testID,
|
|
@@ -307,6 +309,14 @@ const Stepper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
307
309
|
},
|
|
308
310
|
children: variant === 'horizontal' ? renderHorizontal() : renderVertical()
|
|
309
311
|
});
|
|
312
|
+
if (loading) {
|
|
313
|
+
return /*#__PURE__*/_jsx(SkeletonContent, {
|
|
314
|
+
loading: true,
|
|
315
|
+
mode: "auto",
|
|
316
|
+
children: rendered
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
return rendered;
|
|
310
320
|
});
|
|
311
321
|
Stepper.displayName = 'Stepper';
|
|
312
322
|
const buildStyles = theme => StyleSheet.create({
|
|
@@ -16,6 +16,13 @@ export interface AccordionProps {
|
|
|
16
16
|
headerStyle?: StyleProp<ViewStyle>;
|
|
17
17
|
contentStyle?: StyleProp<ViewStyle>;
|
|
18
18
|
testID?: string;
|
|
19
|
+
/**
|
|
20
|
+
* When true, renders the accordion as a skeleton placeholder via
|
|
21
|
+
* SkeletonContent's auto walker. The header title and any sized content
|
|
22
|
+
* leaves are replaced with shimmer blocks. Use this when the data driving
|
|
23
|
+
* the accordion is still being fetched.
|
|
24
|
+
*/
|
|
25
|
+
loading?: boolean;
|
|
19
26
|
}
|
|
20
27
|
export interface AccordionGroupProps {
|
|
21
28
|
children: React.ReactNode;
|
|
@@ -14,6 +14,12 @@ export interface AvatarProps {
|
|
|
14
14
|
statusPosition?: AvatarStatusPosition;
|
|
15
15
|
backgroundColor?: string;
|
|
16
16
|
color?: string;
|
|
17
|
+
/**
|
|
18
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
19
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
20
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
21
|
+
*/
|
|
22
|
+
loading?: boolean;
|
|
17
23
|
accessibilityLabel?: string;
|
|
18
24
|
style?: StyleProp<ViewStyle>;
|
|
19
25
|
textStyle?: StyleProp<TextStyle>;
|
|
@@ -12,6 +12,12 @@ export interface BadgeProps {
|
|
|
12
12
|
tone?: BadgeTone;
|
|
13
13
|
size?: BadgeSize;
|
|
14
14
|
invisible?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
17
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
18
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
19
|
+
*/
|
|
20
|
+
loading?: boolean;
|
|
15
21
|
children?: React.ReactNode;
|
|
16
22
|
anchor?: BadgeAnchor;
|
|
17
23
|
pulse?: boolean;
|
|
@@ -17,6 +17,12 @@ export interface BannerProps {
|
|
|
17
17
|
onDismiss?: () => void;
|
|
18
18
|
visible?: boolean;
|
|
19
19
|
animateMount?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
22
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
23
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
24
|
+
*/
|
|
25
|
+
loading?: boolean;
|
|
20
26
|
accessibilityLabel?: string;
|
|
21
27
|
style?: StyleProp<ViewStyle>;
|
|
22
28
|
testID?: string;
|
|
@@ -11,6 +11,11 @@ export interface ButtonProps extends Omit<PressableProps, 'style' | 'children'>
|
|
|
11
11
|
variant?: ButtonVariant;
|
|
12
12
|
tone?: ButtonTone;
|
|
13
13
|
size?: ButtonSize;
|
|
14
|
+
/**
|
|
15
|
+
* When true, the button is disabled and renders a Spinner in place of the title (icons hidden).
|
|
16
|
+
* Use for in-flight submissions. This is **not** SkeletonContent — interactive controls signal
|
|
17
|
+
* pending action with an inline spinner, not a placeholder shimmer.
|
|
18
|
+
*/
|
|
14
19
|
loading?: boolean;
|
|
15
20
|
disabled?: boolean;
|
|
16
21
|
fullWidth?: boolean;
|
|
@@ -18,6 +18,12 @@ export interface CardProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
|
18
18
|
imageHeight?: number;
|
|
19
19
|
imageAspectRatio?: number;
|
|
20
20
|
imageOverlay?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
23
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
24
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
25
|
+
*/
|
|
26
|
+
loading?: boolean;
|
|
21
27
|
onPress?: (event: GestureResponderEvent) => void;
|
|
22
28
|
accessibilityLabel?: string;
|
|
23
29
|
style?: StyleProp<ViewStyle>;
|
|
@@ -52,6 +52,13 @@ export interface CarouselProps<T = unknown> {
|
|
|
52
52
|
* shape is `{ uri: string }`, otherwise a numbered placeholder.
|
|
53
53
|
*/
|
|
54
54
|
renderThumbnail?: (item: T, index: number) => React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* When true, renders the carousel as a skeleton placeholder via
|
|
57
|
+
* SkeletonContent's auto walker. The walker replaces Text/Image/sized View
|
|
58
|
+
* leaves in the rendered slides with shimmer blocks. Use this when the data
|
|
59
|
+
* driving the carousel is still being fetched.
|
|
60
|
+
*/
|
|
61
|
+
loading?: boolean;
|
|
55
62
|
}
|
|
56
63
|
export interface CarouselRef {
|
|
57
64
|
scrollTo: (index: number, animated?: boolean) => void;
|
|
@@ -14,6 +14,12 @@ export interface ChipProps {
|
|
|
14
14
|
tone?: ChipTone;
|
|
15
15
|
size?: ChipSize;
|
|
16
16
|
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
19
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
20
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
21
|
+
*/
|
|
22
|
+
loading?: boolean;
|
|
17
23
|
accessibilityLabel?: string;
|
|
18
24
|
style?: StyleProp<ViewStyle>;
|
|
19
25
|
textStyle?: StyleProp<TextStyle>;
|
|
@@ -31,6 +31,12 @@ export interface ImageGalleryProps {
|
|
|
31
31
|
enableLightbox?: boolean;
|
|
32
32
|
enablePinchZoom?: boolean;
|
|
33
33
|
onIndexChange?: (idx: number) => void;
|
|
34
|
+
/**
|
|
35
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
36
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
37
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
38
|
+
*/
|
|
39
|
+
loading?: boolean;
|
|
34
40
|
accessibilityLabel?: string;
|
|
35
41
|
containerStyle?: StyleProp<ViewStyle>;
|
|
36
42
|
testID?: string;
|
|
@@ -5,6 +5,12 @@ import type { SwipeableAction } from '../Swipeable';
|
|
|
5
5
|
export type ListItemSize = 'sm' | 'md' | 'lg';
|
|
6
6
|
export interface ListItemProps {
|
|
7
7
|
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
10
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
11
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
12
|
+
*/
|
|
13
|
+
loading?: boolean;
|
|
8
14
|
subtitle?: string;
|
|
9
15
|
description?: string;
|
|
10
16
|
left?: React.ReactNode;
|
|
@@ -12,6 +12,12 @@ export interface RatingProps {
|
|
|
12
12
|
size?: RatingSize;
|
|
13
13
|
tone?: RatingTone;
|
|
14
14
|
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
17
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
18
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
19
|
+
*/
|
|
20
|
+
loading?: boolean;
|
|
15
21
|
accessibilityLabel?: string;
|
|
16
22
|
style?: StyleProp<ViewStyle>;
|
|
17
23
|
testID?: string;
|
|
@@ -15,6 +15,12 @@ export interface StepperProps {
|
|
|
15
15
|
onStepPress?: (index: number) => void;
|
|
16
16
|
variant?: StepperVariant;
|
|
17
17
|
tone?: StepperTone;
|
|
18
|
+
/**
|
|
19
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
20
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
21
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
22
|
+
*/
|
|
23
|
+
loading?: boolean;
|
|
18
24
|
accessibilityLabel?: string;
|
|
19
25
|
style?: StyleProp<ViewStyle>;
|
|
20
26
|
testID?: string;
|
|
@@ -16,6 +16,13 @@ export interface AccordionProps {
|
|
|
16
16
|
headerStyle?: StyleProp<ViewStyle>;
|
|
17
17
|
contentStyle?: StyleProp<ViewStyle>;
|
|
18
18
|
testID?: string;
|
|
19
|
+
/**
|
|
20
|
+
* When true, renders the accordion as a skeleton placeholder via
|
|
21
|
+
* SkeletonContent's auto walker. The header title and any sized content
|
|
22
|
+
* leaves are replaced with shimmer blocks. Use this when the data driving
|
|
23
|
+
* the accordion is still being fetched.
|
|
24
|
+
*/
|
|
25
|
+
loading?: boolean;
|
|
19
26
|
}
|
|
20
27
|
export interface AccordionGroupProps {
|
|
21
28
|
children: React.ReactNode;
|
|
@@ -14,6 +14,12 @@ export interface AvatarProps {
|
|
|
14
14
|
statusPosition?: AvatarStatusPosition;
|
|
15
15
|
backgroundColor?: string;
|
|
16
16
|
color?: string;
|
|
17
|
+
/**
|
|
18
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
19
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
20
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
21
|
+
*/
|
|
22
|
+
loading?: boolean;
|
|
17
23
|
accessibilityLabel?: string;
|
|
18
24
|
style?: StyleProp<ViewStyle>;
|
|
19
25
|
textStyle?: StyleProp<TextStyle>;
|
|
@@ -12,6 +12,12 @@ export interface BadgeProps {
|
|
|
12
12
|
tone?: BadgeTone;
|
|
13
13
|
size?: BadgeSize;
|
|
14
14
|
invisible?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
17
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
18
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
19
|
+
*/
|
|
20
|
+
loading?: boolean;
|
|
15
21
|
children?: React.ReactNode;
|
|
16
22
|
anchor?: BadgeAnchor;
|
|
17
23
|
pulse?: boolean;
|
|
@@ -17,6 +17,12 @@ export interface BannerProps {
|
|
|
17
17
|
onDismiss?: () => void;
|
|
18
18
|
visible?: boolean;
|
|
19
19
|
animateMount?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
22
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
23
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
24
|
+
*/
|
|
25
|
+
loading?: boolean;
|
|
20
26
|
accessibilityLabel?: string;
|
|
21
27
|
style?: StyleProp<ViewStyle>;
|
|
22
28
|
testID?: string;
|
|
@@ -11,6 +11,11 @@ export interface ButtonProps extends Omit<PressableProps, 'style' | 'children'>
|
|
|
11
11
|
variant?: ButtonVariant;
|
|
12
12
|
tone?: ButtonTone;
|
|
13
13
|
size?: ButtonSize;
|
|
14
|
+
/**
|
|
15
|
+
* When true, the button is disabled and renders a Spinner in place of the title (icons hidden).
|
|
16
|
+
* Use for in-flight submissions. This is **not** SkeletonContent — interactive controls signal
|
|
17
|
+
* pending action with an inline spinner, not a placeholder shimmer.
|
|
18
|
+
*/
|
|
14
19
|
loading?: boolean;
|
|
15
20
|
disabled?: boolean;
|
|
16
21
|
fullWidth?: boolean;
|
|
@@ -18,6 +18,12 @@ export interface CardProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
|
18
18
|
imageHeight?: number;
|
|
19
19
|
imageAspectRatio?: number;
|
|
20
20
|
imageOverlay?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
23
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
24
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
25
|
+
*/
|
|
26
|
+
loading?: boolean;
|
|
21
27
|
onPress?: (event: GestureResponderEvent) => void;
|
|
22
28
|
accessibilityLabel?: string;
|
|
23
29
|
style?: StyleProp<ViewStyle>;
|
|
@@ -52,6 +52,13 @@ export interface CarouselProps<T = unknown> {
|
|
|
52
52
|
* shape is `{ uri: string }`, otherwise a numbered placeholder.
|
|
53
53
|
*/
|
|
54
54
|
renderThumbnail?: (item: T, index: number) => React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* When true, renders the carousel as a skeleton placeholder via
|
|
57
|
+
* SkeletonContent's auto walker. The walker replaces Text/Image/sized View
|
|
58
|
+
* leaves in the rendered slides with shimmer blocks. Use this when the data
|
|
59
|
+
* driving the carousel is still being fetched.
|
|
60
|
+
*/
|
|
61
|
+
loading?: boolean;
|
|
55
62
|
}
|
|
56
63
|
export interface CarouselRef {
|
|
57
64
|
scrollTo: (index: number, animated?: boolean) => void;
|
|
@@ -14,6 +14,12 @@ export interface ChipProps {
|
|
|
14
14
|
tone?: ChipTone;
|
|
15
15
|
size?: ChipSize;
|
|
16
16
|
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
19
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
20
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
21
|
+
*/
|
|
22
|
+
loading?: boolean;
|
|
17
23
|
accessibilityLabel?: string;
|
|
18
24
|
style?: StyleProp<ViewStyle>;
|
|
19
25
|
textStyle?: StyleProp<TextStyle>;
|
|
@@ -31,6 +31,12 @@ export interface ImageGalleryProps {
|
|
|
31
31
|
enableLightbox?: boolean;
|
|
32
32
|
enablePinchZoom?: boolean;
|
|
33
33
|
onIndexChange?: (idx: number) => void;
|
|
34
|
+
/**
|
|
35
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
36
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
37
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
38
|
+
*/
|
|
39
|
+
loading?: boolean;
|
|
34
40
|
accessibilityLabel?: string;
|
|
35
41
|
containerStyle?: StyleProp<ViewStyle>;
|
|
36
42
|
testID?: string;
|
|
@@ -5,6 +5,12 @@ import type { SwipeableAction } from '../Swipeable';
|
|
|
5
5
|
export type ListItemSize = 'sm' | 'md' | 'lg';
|
|
6
6
|
export interface ListItemProps {
|
|
7
7
|
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
10
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
11
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
12
|
+
*/
|
|
13
|
+
loading?: boolean;
|
|
8
14
|
subtitle?: string;
|
|
9
15
|
description?: string;
|
|
10
16
|
left?: React.ReactNode;
|
|
@@ -12,6 +12,12 @@ export interface RatingProps {
|
|
|
12
12
|
size?: RatingSize;
|
|
13
13
|
tone?: RatingTone;
|
|
14
14
|
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
17
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
18
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
19
|
+
*/
|
|
20
|
+
loading?: boolean;
|
|
15
21
|
accessibilityLabel?: string;
|
|
16
22
|
style?: StyleProp<ViewStyle>;
|
|
17
23
|
testID?: string;
|
|
@@ -15,6 +15,12 @@ export interface StepperProps {
|
|
|
15
15
|
onStepPress?: (index: number) => void;
|
|
16
16
|
variant?: StepperVariant;
|
|
17
17
|
tone?: StepperTone;
|
|
18
|
+
/**
|
|
19
|
+
* When true, renders the component as a skeleton placeholder via SkeletonContent's auto walker.
|
|
20
|
+
* Component still renders its normal layout — the walker replaces Text/Image/sized View leaves
|
|
21
|
+
* with shimmer blocks. Use this when the data driving the component is still being fetched.
|
|
22
|
+
*/
|
|
23
|
+
loading?: boolean;
|
|
18
24
|
accessibilityLabel?: string;
|
|
19
25
|
style?: StyleProp<ViewStyle>;
|
|
20
26
|
testID?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority-technologies/mobile",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Beautiful, animated, accessible React Native components plus API/auth/logging/network/storage utilities for Webority projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|