@webority-technologies/mobile 0.0.15 → 0.0.20
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/commonjs/components/Accordion/Accordion.js +60 -19
- package/lib/commonjs/components/AppBar/AppBar.js +29 -20
- package/lib/commonjs/components/Avatar/Avatar.js +38 -8
- package/lib/commonjs/components/Badge/Badge.js +66 -4
- package/lib/commonjs/components/Banner/Banner.js +146 -66
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +37 -15
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +78 -53
- package/lib/commonjs/components/Button/Button.js +12 -5
- package/lib/commonjs/components/Card/Card.js +106 -16
- package/lib/commonjs/components/Carousel/Carousel.js +66 -12
- package/lib/commonjs/components/Checkbox/Checkbox.js +11 -7
- package/lib/commonjs/components/Chip/Chip.js +44 -12
- package/lib/commonjs/components/DatePicker/DatePicker.js +185 -76
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +133 -59
- package/lib/commonjs/components/Dialog/Dialog.js +16 -10
- package/lib/commonjs/components/Drawer/Drawer.js +13 -10
- package/lib/commonjs/components/FieldBase/FieldBase.js +306 -0
- package/lib/commonjs/components/FieldBase/index.js +32 -0
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +69 -44
- package/lib/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.js +8 -2
- package/lib/commonjs/components/FormField/FormField.js +3 -2
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +132 -44
- package/lib/commonjs/components/Input/Input.js +144 -181
- package/lib/commonjs/components/ListItem/ListItem.js +90 -11
- package/lib/commonjs/components/Modal/Modal.js +55 -27
- package/lib/commonjs/components/NumberInput/NumberInput.js +60 -106
- package/lib/commonjs/components/OTPInput/OTPInput.js +65 -58
- package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +185 -0
- package/lib/commonjs/components/{AppIcon → PickerTrigger}/index.js +4 -4
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +19 -11
- package/lib/commonjs/components/Radio/Radio.js +11 -6
- package/lib/commonjs/components/Rating/Rating.js +85 -19
- package/lib/commonjs/components/SearchBar/SearchBar.js +84 -107
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +22 -11
- package/lib/commonjs/components/Select/Select.js +62 -91
- package/lib/commonjs/components/Skeleton/Skeleton.js +131 -174
- package/lib/commonjs/components/Skeleton/SkeletonClock.js +117 -0
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +164 -81
- package/lib/commonjs/components/Skeleton/SkeletonProvider.js +72 -10
- package/lib/commonjs/components/Skeleton/index.js +17 -16
- package/lib/commonjs/components/Slider/Slider.js +44 -25
- package/lib/commonjs/components/Stepper/Stepper.js +199 -29
- package/lib/commonjs/components/Swipeable/Swipeable.js +36 -19
- package/lib/commonjs/components/Switch/Switch.js +9 -2
- package/lib/commonjs/components/Tabs/Tabs.js +84 -21
- package/lib/commonjs/components/TimePicker/TimePicker.js +123 -45
- package/lib/commonjs/components/Toast/Toast.js +27 -16
- package/lib/commonjs/components/Tooltip/Tooltip.js +56 -32
- package/lib/commonjs/components/index.js +37 -37
- package/lib/commonjs/theme/tokens.js +55 -7
- package/lib/module/components/Accordion/Accordion.js +61 -20
- package/lib/module/components/AppBar/AppBar.js +29 -20
- package/lib/module/components/Avatar/Avatar.js +39 -9
- package/lib/module/components/Badge/Badge.js +67 -5
- package/lib/module/components/Banner/Banner.js +147 -67
- package/lib/module/components/BottomNavigation/BottomNavigation.js +37 -15
- package/lib/module/components/BottomSheet/BottomSheet.js +80 -55
- package/lib/module/components/Button/Button.js +12 -5
- package/lib/module/components/Card/Card.js +107 -17
- package/lib/module/components/Carousel/Carousel.js +67 -13
- package/lib/module/components/Checkbox/Checkbox.js +11 -7
- package/lib/module/components/Chip/Chip.js +45 -13
- package/lib/module/components/DatePicker/DatePicker.js +185 -76
- package/lib/module/components/DateRangePicker/DateRangePicker.js +134 -60
- package/lib/module/components/Dialog/Dialog.js +16 -10
- package/lib/module/components/Drawer/Drawer.js +13 -10
- package/lib/module/components/FieldBase/FieldBase.js +297 -0
- package/lib/module/components/FieldBase/index.js +4 -0
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +69 -44
- package/lib/module/components/ForceUpdateDialog/ForceUpdateDialog.js +8 -2
- package/lib/module/components/FormField/FormField.js +3 -2
- package/lib/module/components/ImageGallery/ImageGallery.js +128 -40
- package/lib/module/components/Input/Input.js +144 -179
- package/lib/module/components/ListItem/ListItem.js +91 -12
- package/lib/module/components/Modal/Modal.js +55 -27
- package/lib/module/components/NumberInput/NumberInput.js +60 -106
- package/lib/module/components/OTPInput/OTPInput.js +65 -58
- package/lib/module/components/PickerTrigger/PickerTrigger.js +181 -0
- package/lib/module/components/PickerTrigger/index.js +4 -0
- package/lib/module/components/ProgressBar/ProgressBar.js +19 -11
- package/lib/module/components/Radio/Radio.js +11 -6
- package/lib/module/components/Rating/Rating.js +86 -20
- package/lib/module/components/SearchBar/SearchBar.js +84 -107
- package/lib/module/components/SegmentedControl/SegmentedControl.js +22 -11
- package/lib/module/components/Select/Select.js +62 -91
- package/lib/module/components/Skeleton/Skeleton.js +135 -175
- package/lib/module/components/Skeleton/SkeletonClock.js +110 -0
- package/lib/module/components/Skeleton/SkeletonContent.js +167 -84
- package/lib/module/components/Skeleton/SkeletonProvider.js +71 -10
- package/lib/module/components/Skeleton/index.js +3 -2
- package/lib/module/components/Slider/Slider.js +44 -25
- package/lib/module/components/Stepper/Stepper.js +201 -31
- package/lib/module/components/Swipeable/Swipeable.js +36 -19
- package/lib/module/components/Switch/Switch.js +9 -2
- package/lib/module/components/Tabs/Tabs.js +84 -21
- package/lib/module/components/TimePicker/TimePicker.js +123 -45
- package/lib/module/components/Toast/Toast.js +27 -16
- package/lib/module/components/Tooltip/Tooltip.js +56 -32
- package/lib/module/components/index.js +2 -2
- package/lib/module/theme/tokens.js +55 -7
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +10 -5
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +8 -0
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +12 -6
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +7 -6
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +17 -6
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +7 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts +17 -6
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +7 -6
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +9 -1
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +13 -6
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +38 -3
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +36 -3
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +13 -1
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +141 -0
- package/lib/typescript/commonjs/components/FieldBase/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +8 -6
- package/lib/typescript/commonjs/components/FloatingActionButton/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +7 -0
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +7 -0
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +6 -4
- package/lib/typescript/commonjs/components/Input/Input.d.ts +6 -0
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +13 -6
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +3 -0
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +57 -0
- package/lib/typescript/commonjs/components/PickerTrigger/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +2 -0
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +3 -0
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +9 -6
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -0
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +49 -20
- package/lib/typescript/commonjs/components/Skeleton/SkeletonClock.d.ts +60 -0
- package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +80 -19
- package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +39 -5
- package/lib/typescript/commonjs/components/Skeleton/index.d.ts +6 -4
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +12 -1
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +18 -6
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +2 -0
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +1 -0
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +26 -2
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +36 -3
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +8 -0
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +7 -1
- package/lib/typescript/commonjs/components/index.d.ts +5 -5
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.d.ts +1 -1
- package/lib/typescript/commonjs/theme/types.d.ts +553 -11
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +10 -5
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +8 -0
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +12 -6
- package/lib/typescript/module/components/Badge/Badge.d.ts +7 -6
- package/lib/typescript/module/components/Banner/Banner.d.ts +17 -6
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +7 -0
- package/lib/typescript/module/components/Card/Card.d.ts +17 -6
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +7 -6
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +9 -1
- package/lib/typescript/module/components/Chip/Chip.d.ts +13 -6
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +38 -3
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +36 -3
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +13 -1
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +141 -0
- package/lib/typescript/module/components/FieldBase/index.d.ts +3 -0
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +8 -6
- package/lib/typescript/module/components/FloatingActionButton/index.d.ts +1 -1
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +7 -0
- package/lib/typescript/module/components/FormField/FormField.d.ts +7 -0
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +6 -4
- package/lib/typescript/module/components/Input/Input.d.ts +6 -0
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +13 -6
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +3 -0
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +57 -0
- package/lib/typescript/module/components/PickerTrigger/index.d.ts +3 -0
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +2 -0
- package/lib/typescript/module/components/Radio/Radio.d.ts +3 -0
- package/lib/typescript/module/components/Rating/Rating.d.ts +9 -6
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -0
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +49 -20
- package/lib/typescript/module/components/Skeleton/SkeletonClock.d.ts +60 -0
- package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +80 -19
- package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +39 -5
- package/lib/typescript/module/components/Skeleton/index.d.ts +6 -4
- package/lib/typescript/module/components/Slider/Slider.d.ts +12 -1
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +18 -6
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +2 -0
- package/lib/typescript/module/components/Switch/Switch.d.ts +1 -0
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +26 -2
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +36 -3
- package/lib/typescript/module/components/Toast/Toast.d.ts +8 -0
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +7 -1
- package/lib/typescript/module/components/index.d.ts +5 -5
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/theme/index.d.ts +1 -1
- package/lib/typescript/module/theme/types.d.ts +553 -11
- package/package.json +2 -6
- package/lib/commonjs/components/AppIcon/AppIcon.js +0 -120
- package/lib/commonjs/types/vector-icons.d.js +0 -2
- package/lib/module/components/AppIcon/AppIcon.js +0 -111
- package/lib/module/components/AppIcon/index.js +0 -4
- package/lib/module/types/vector-icons.d.js +0 -2
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +0 -20
- package/lib/typescript/commonjs/components/AppIcon/index.d.ts +0 -3
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +0 -20
- package/lib/typescript/module/components/AppIcon/index.d.ts +0 -3
|
@@ -28,6 +28,14 @@ export interface AppBarProps {
|
|
|
28
28
|
*/
|
|
29
29
|
scrollY?: Animated.Value | Animated.AnimatedInterpolation<number>;
|
|
30
30
|
style?: StyleProp<ViewStyle>;
|
|
31
|
+
/** Alias for `style` applied to the outer container (animated when collapsing). */
|
|
32
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
33
|
+
/** Style applied to the title Animated.Text. */
|
|
34
|
+
titleStyle?: StyleProp<ViewStyle>;
|
|
35
|
+
/** Style applied to the subtitle Animated.Text. */
|
|
36
|
+
subtitleStyle?: StyleProp<ViewStyle>;
|
|
37
|
+
/** Style applied to the right-action badge bubble. */
|
|
38
|
+
badgeStyle?: StyleProp<ViewStyle>;
|
|
31
39
|
testID?: string;
|
|
32
40
|
}
|
|
33
41
|
declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<View>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { ImageSourcePropType, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { ImageSourcePropType, StyleProp, TextStyle, View as RNView, ViewStyle } from 'react-native';
|
|
4
3
|
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
5
4
|
export type AvatarShape = 'circle' | 'square' | 'rounded';
|
|
6
5
|
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away' | null;
|
|
@@ -15,9 +14,14 @@ export interface AvatarProps {
|
|
|
15
14
|
backgroundColor?: string;
|
|
16
15
|
color?: string;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
|
|
17
|
+
* Per-instance initials font size in pixels. Wins over theme tokens
|
|
18
|
+
* (`avatar.fontSize` and `avatar.fontSizeRatio`) and the size-derived default.
|
|
19
|
+
*/
|
|
20
|
+
fontSize?: number;
|
|
21
|
+
/**
|
|
22
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
23
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
24
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
21
25
|
*/
|
|
22
26
|
loading?: boolean;
|
|
23
27
|
accessibilityLabel?: string;
|
|
@@ -25,7 +29,9 @@ export interface AvatarProps {
|
|
|
25
29
|
textStyle?: StyleProp<TextStyle>;
|
|
26
30
|
testID?: string;
|
|
27
31
|
}
|
|
28
|
-
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<
|
|
32
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<RNView>> & {
|
|
33
|
+
Skeleton: React.FC<AvatarProps>;
|
|
34
|
+
};
|
|
29
35
|
export type AvatarGroupSpacing = 'tight' | 'normal' | 'loose';
|
|
30
36
|
export type AvatarGroupOverflowVariant = 'count' | 'plus';
|
|
31
37
|
export interface AvatarGroupProps {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { StyleProp, TextStyle, View as RNView, ViewStyle } from 'react-native';
|
|
4
3
|
export type BadgeVariant = 'standard' | 'dot';
|
|
5
4
|
export type BadgeTone = 'primary' | 'success' | 'warning' | 'error' | 'neutral' | 'info';
|
|
6
5
|
export type BadgeSize = 'sm' | 'md';
|
|
@@ -13,9 +12,9 @@ export interface BadgeProps {
|
|
|
13
12
|
size?: BadgeSize;
|
|
14
13
|
invisible?: boolean;
|
|
15
14
|
/**
|
|
16
|
-
* When true, renders the component as
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
16
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
17
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
19
18
|
*/
|
|
20
19
|
loading?: boolean;
|
|
21
20
|
children?: React.ReactNode;
|
|
@@ -27,7 +26,9 @@ export interface BadgeProps {
|
|
|
27
26
|
textStyle?: StyleProp<TextStyle>;
|
|
28
27
|
testID?: string;
|
|
29
28
|
}
|
|
30
|
-
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<
|
|
29
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<RNView>> & {
|
|
30
|
+
Skeleton: React.FC<BadgeProps>;
|
|
31
|
+
};
|
|
31
32
|
export { Badge };
|
|
32
33
|
export default Badge;
|
|
33
34
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { StyleProp, View as RNView, ViewStyle } from 'react-native';
|
|
4
3
|
export type BannerVariant = 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
5
4
|
export interface BannerAction {
|
|
6
5
|
label: string;
|
|
@@ -18,16 +17,28 @@ export interface BannerProps {
|
|
|
18
17
|
visible?: boolean;
|
|
19
18
|
animateMount?: boolean;
|
|
20
19
|
/**
|
|
21
|
-
* When true, renders the component as
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
21
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
22
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
24
23
|
*/
|
|
25
24
|
loading?: boolean;
|
|
26
25
|
accessibilityLabel?: string;
|
|
27
26
|
style?: StyleProp<ViewStyle>;
|
|
27
|
+
/** Alias for `style` — applied to the outer animated container. */
|
|
28
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
29
|
+
/** Style applied to the auto-rendered icon circle (when no custom `icon` is provided). */
|
|
30
|
+
iconCircleStyle?: StyleProp<ViewStyle>;
|
|
31
|
+
/** Style applied to the leading tint bar. */
|
|
32
|
+
tintBarStyle?: StyleProp<ViewStyle>;
|
|
33
|
+
/** Style applied to the dismiss/close button. */
|
|
34
|
+
closeButtonStyle?: StyleProp<ViewStyle>;
|
|
35
|
+
/** Style applied to each action button (Pressable). */
|
|
36
|
+
actionButtonStyle?: StyleProp<ViewStyle>;
|
|
28
37
|
testID?: string;
|
|
29
38
|
}
|
|
30
|
-
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<
|
|
39
|
+
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<RNView>> & {
|
|
40
|
+
Skeleton: React.FC<BannerProps>;
|
|
41
|
+
};
|
|
31
42
|
export { Banner };
|
|
32
43
|
export default Banner;
|
|
33
44
|
//# sourceMappingURL=Banner.d.ts.map
|
|
@@ -28,6 +28,13 @@ export interface BottomSheetProps {
|
|
|
28
28
|
onAnimate?: (from: number, to: number) => void;
|
|
29
29
|
enablePanDownToClose?: boolean;
|
|
30
30
|
enableBackdropPress?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Backdrop opacity is now controlled by the theme token
|
|
33
|
+
* `colors.background.overlay` (alpha baked into the rgba value). Animated
|
|
34
|
+
* opacity on the backdrop was unreliable under Fabric view-flattening, so
|
|
35
|
+
* the scrim is now a static plain View. To tune dim level, override
|
|
36
|
+
* `theme.colors.background.overlay` in your theme bridge.
|
|
37
|
+
*/
|
|
31
38
|
backdropOpacity?: number;
|
|
32
39
|
/**
|
|
33
40
|
* How the sheet reacts to the soft keyboard.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { GestureResponderEvent, ImageSourcePropType, PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { GestureResponderEvent, ImageSourcePropType, PressableProps, StyleProp, View as RNView, ViewStyle } from 'react-native';
|
|
4
3
|
import type { GradientDefinition } from '../../theme/types';
|
|
5
4
|
export type CardVariant = 'elevated' | 'outlined' | 'filled';
|
|
6
5
|
export type CardElevation = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
@@ -20,9 +19,9 @@ export interface CardProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
|
20
19
|
imageAspectRatio?: number;
|
|
21
20
|
imageOverlay?: React.ReactNode;
|
|
22
21
|
/**
|
|
23
|
-
* When true, renders the component as
|
|
24
|
-
*
|
|
25
|
-
*
|
|
22
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
23
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
24
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
26
25
|
*/
|
|
27
26
|
loading?: boolean;
|
|
28
27
|
/**
|
|
@@ -35,9 +34,21 @@ export interface CardProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
|
35
34
|
onPress?: (event: GestureResponderEvent) => void;
|
|
36
35
|
accessibilityLabel?: string;
|
|
37
36
|
style?: StyleProp<ViewStyle>;
|
|
37
|
+
/** Alias for `style` — applied to the outer card element. */
|
|
38
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
39
|
+
/** Style applied to the header wrapper View. */
|
|
40
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
41
|
+
/** Style applied to the body wrapper View (only present when header or footer is provided). */
|
|
42
|
+
bodyStyle?: StyleProp<ViewStyle>;
|
|
43
|
+
/** Style applied to the footer wrapper View. */
|
|
44
|
+
footerStyle?: StyleProp<ViewStyle>;
|
|
45
|
+
/** Per-instance override of the corner radius. Wins over the `radius` token. */
|
|
46
|
+
borderRadius?: number;
|
|
38
47
|
testID?: string;
|
|
39
48
|
}
|
|
40
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<
|
|
49
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<RNView>> & {
|
|
50
|
+
Skeleton: React.FC<CardProps>;
|
|
51
|
+
};
|
|
41
52
|
export { Card };
|
|
42
53
|
export default Card;
|
|
43
54
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -53,10 +53,9 @@ export interface CarouselProps<T = unknown> {
|
|
|
53
53
|
*/
|
|
54
54
|
renderThumbnail?: (item: T, index: number) => React.ReactNode;
|
|
55
55
|
/**
|
|
56
|
-
* When true, renders the carousel as
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* driving the carousel is still being fetched.
|
|
56
|
+
* When true, renders the carousel as its authored skeleton placeholder
|
|
57
|
+
* shape: a single slide block plus pagination dots. Footprint matches the
|
|
58
|
+
* loaded carousel so the layout doesn't shift when data arrives.
|
|
60
59
|
*/
|
|
61
60
|
loading?: boolean;
|
|
62
61
|
}
|
|
@@ -65,9 +64,11 @@ export interface CarouselRef {
|
|
|
65
64
|
next: () => void;
|
|
66
65
|
prev: () => void;
|
|
67
66
|
}
|
|
68
|
-
declare const Carousel: <T = unknown>(props: CarouselProps<T> & {
|
|
67
|
+
declare const Carousel: (<T = unknown>(props: CarouselProps<T> & {
|
|
69
68
|
ref?: React.Ref<CarouselRef>;
|
|
70
|
-
}) => React.ReactElement | null
|
|
69
|
+
}) => React.ReactElement | null) & {
|
|
70
|
+
Skeleton: React.FC<CarouselProps<unknown>>;
|
|
71
|
+
};
|
|
71
72
|
export { Carousel };
|
|
72
73
|
export default Carousel;
|
|
73
74
|
//# sourceMappingURL=Carousel.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import type { PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
4
4
|
import type { HapticType } from '../../utils/hapticUtils';
|
|
5
5
|
export type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
6
6
|
export type CheckboxTone = 'primary' | 'success' | 'warning' | 'error';
|
|
@@ -16,6 +16,14 @@ export interface CheckboxProps extends Omit<PressableProps, 'style' | 'children'
|
|
|
16
16
|
haptic?: HapticType | false;
|
|
17
17
|
style?: StyleProp<ViewStyle>;
|
|
18
18
|
boxStyle?: StyleProp<ViewStyle>;
|
|
19
|
+
/** Style override for the check glyph (✓) inside the box. */
|
|
20
|
+
checkIconStyle?: StyleProp<TextStyle>;
|
|
21
|
+
/** Style override for the indeterminate bar inside the box. */
|
|
22
|
+
indeterminateBarStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
/** Style override for the outer row container. */
|
|
24
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
/** Style override for the label text. */
|
|
26
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
19
27
|
testID?: string;
|
|
20
28
|
}
|
|
21
29
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<View>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { StyleProp, TextStyle, View as RNView, ViewStyle } from 'react-native';
|
|
4
3
|
export type ChipVariant = 'filled' | 'outlined';
|
|
5
4
|
export type ChipTone = 'primary' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
|
|
6
5
|
export type ChipSize = 'sm' | 'md';
|
|
@@ -15,17 +14,25 @@ export interface ChipProps {
|
|
|
15
14
|
size?: ChipSize;
|
|
16
15
|
disabled?: boolean;
|
|
17
16
|
/**
|
|
18
|
-
* When true, renders the component as
|
|
19
|
-
*
|
|
20
|
-
*
|
|
17
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
18
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
19
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
21
20
|
*/
|
|
22
21
|
loading?: boolean;
|
|
23
22
|
accessibilityLabel?: string;
|
|
24
23
|
style?: StyleProp<ViewStyle>;
|
|
25
24
|
textStyle?: StyleProp<TextStyle>;
|
|
25
|
+
/** Style override for the chip outer container (alias to style, applied after). */
|
|
26
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
27
|
+
/** Style override for the close (×) button pressable. */
|
|
28
|
+
closeButtonStyle?: StyleProp<ViewStyle>;
|
|
29
|
+
/** Style override for the close (×) glyph text. */
|
|
30
|
+
closeIconStyle?: StyleProp<TextStyle>;
|
|
26
31
|
testID?: string;
|
|
27
32
|
}
|
|
28
|
-
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<
|
|
33
|
+
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<RNView>> & {
|
|
34
|
+
Skeleton: React.FC<ChipProps>;
|
|
35
|
+
};
|
|
29
36
|
export { Chip };
|
|
30
37
|
export default Chip;
|
|
31
38
|
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { PickerTriggerSize, PickerTriggerVariant } from '../PickerTrigger';
|
|
3
4
|
export type DatePickerMode = 'modal' | 'inline';
|
|
4
5
|
export type WeekStart = 0 | 1 | 6;
|
|
6
|
+
/**
|
|
7
|
+
* DatePicker operates in two modes:
|
|
8
|
+
*
|
|
9
|
+
* 1. **Controlled-modal mode** — pass `visible` (plus `onSelect` / `onClose`)
|
|
10
|
+
* and own the open state externally. The component renders only the modal.
|
|
11
|
+
* 2. **Trigger mode** — omit `visible`. The component renders a built-in
|
|
12
|
+
* PickerTrigger field (label / value / placeholder / chevron / clear /
|
|
13
|
+
* helper / error / size / variant) and manages its own open state. The
|
|
14
|
+
* field opens the modal on press and closes it on confirm/cancel.
|
|
15
|
+
*
|
|
16
|
+
* `onSelect` / `onClose` are typed optional to support trigger-only usage
|
|
17
|
+
* where the consumer may not need either callback. In controlled-modal mode
|
|
18
|
+
* they remain semantically required.
|
|
19
|
+
*/
|
|
5
20
|
export interface DatePickerProps {
|
|
6
|
-
visible
|
|
21
|
+
visible?: boolean;
|
|
7
22
|
value?: Date | null;
|
|
8
|
-
onSelect
|
|
9
|
-
onClose
|
|
23
|
+
onSelect?: (date: Date) => void;
|
|
24
|
+
onClose?: () => void;
|
|
10
25
|
minDate?: Date;
|
|
11
26
|
maxDate?: Date;
|
|
12
27
|
disabledDates?: Date[];
|
|
@@ -17,7 +32,27 @@ export interface DatePickerProps {
|
|
|
17
32
|
confirmLabel?: string;
|
|
18
33
|
cancelLabel?: string;
|
|
19
34
|
style?: StyleProp<ViewStyle>;
|
|
35
|
+
/** Outer container style applied to the calendar card. */
|
|
36
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
37
|
+
/** Style override for the header label text wrapper (month/year). */
|
|
38
|
+
headerLabelStyle?: StyleProp<ViewStyle>;
|
|
39
|
+
/** Style override for the previous/next navigation buttons. */
|
|
40
|
+
navButtonStyle?: StyleProp<ViewStyle>;
|
|
41
|
+
/** Style override for the cancel/confirm footer buttons. */
|
|
42
|
+
footerButtonStyle?: StyleProp<ViewStyle>;
|
|
20
43
|
testID?: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
helperText?: string;
|
|
47
|
+
error?: string;
|
|
48
|
+
required?: boolean;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
size?: PickerTriggerSize;
|
|
51
|
+
variant?: PickerTriggerVariant;
|
|
52
|
+
clearable?: boolean;
|
|
53
|
+
onClear?: () => void;
|
|
54
|
+
formatValue?: (date: Date) => string;
|
|
55
|
+
triggerStyle?: StyleProp<ViewStyle>;
|
|
21
56
|
}
|
|
22
57
|
declare const DatePicker: React.FC<DatePickerProps>;
|
|
23
58
|
export { DatePicker };
|
|
@@ -1,19 +1,44 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { PickerTriggerSize, PickerTriggerVariant } from '../PickerTrigger';
|
|
4
5
|
export type WeekStart = 0 | 1 | 6;
|
|
5
6
|
export interface DateRange {
|
|
6
7
|
start: Date | null;
|
|
7
8
|
end: Date | null;
|
|
8
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* DateRangePicker — supports two usage modes:
|
|
12
|
+
*
|
|
13
|
+
* 1. Controlled-modal mode (pass `visible` + `onClose`): renders only the
|
|
14
|
+
* modal; parent owns open/close state.
|
|
15
|
+
* 2. Trigger mode (omit `visible`): renders a built-in `PickerTrigger`
|
|
16
|
+
* field that opens an internally-managed modal on tap. Confirm fires
|
|
17
|
+
* `onChange?.(...)` and closes.
|
|
18
|
+
*/
|
|
9
19
|
export interface DateRangePickerProps {
|
|
10
|
-
visible
|
|
20
|
+
visible?: boolean;
|
|
11
21
|
value: DateRange;
|
|
12
|
-
onChange
|
|
22
|
+
onChange?: (range: {
|
|
13
23
|
start: Date;
|
|
14
24
|
end: Date;
|
|
15
25
|
}) => void;
|
|
16
|
-
onClose
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
label?: string;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
helperText?: string;
|
|
30
|
+
error?: string;
|
|
31
|
+
required?: boolean;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
size?: PickerTriggerSize;
|
|
34
|
+
variant?: PickerTriggerVariant;
|
|
35
|
+
clearable?: boolean;
|
|
36
|
+
onClear?: () => void;
|
|
37
|
+
formatValue?: (range: {
|
|
38
|
+
start: Date;
|
|
39
|
+
end: Date;
|
|
40
|
+
}) => string;
|
|
41
|
+
triggerStyle?: StyleProp<ViewStyle>;
|
|
17
42
|
minDate?: Date;
|
|
18
43
|
maxDate?: Date;
|
|
19
44
|
disabledDates?: Date[];
|
|
@@ -24,6 +49,14 @@ export interface DateRangePickerProps {
|
|
|
24
49
|
cancelLabel?: string;
|
|
25
50
|
maxRange?: number;
|
|
26
51
|
style?: StyleProp<ViewStyle>;
|
|
52
|
+
/** Outer container style applied to the calendar card. */
|
|
53
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
54
|
+
/** Style override for the header label (month/year) wrapper. */
|
|
55
|
+
headerLabelStyle?: StyleProp<ViewStyle>;
|
|
56
|
+
/** Style override for the previous/next navigation buttons. */
|
|
57
|
+
navButtonStyle?: StyleProp<ViewStyle>;
|
|
58
|
+
/** Style override for the cancel/confirm footer buttons. */
|
|
59
|
+
footerButtonStyle?: StyleProp<ViewStyle>;
|
|
27
60
|
testID?: string;
|
|
28
61
|
}
|
|
29
62
|
declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<View>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
export type DialogVariant = 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
4
|
export type DialogActionTone = 'primary' | 'neutral' | 'danger';
|
|
5
5
|
export interface DialogAction {
|
|
@@ -22,6 +22,18 @@ export interface DialogProps {
|
|
|
22
22
|
contentStyle?: StyleProp<ViewStyle>;
|
|
23
23
|
/** Style applied to the dialog inner container (above icon/title/message). */
|
|
24
24
|
containerStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
/** Style override for the title text. */
|
|
26
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
27
|
+
/** Style override for the message text (only applied when message is a string). */
|
|
28
|
+
messageStyle?: StyleProp<TextStyle>;
|
|
29
|
+
/** Style override for the icon wrapper view. */
|
|
30
|
+
iconWrapperStyle?: StyleProp<ViewStyle>;
|
|
31
|
+
/** Style override for the actions row container. */
|
|
32
|
+
actionsRowStyle?: StyleProp<ViewStyle>;
|
|
33
|
+
/** Style override applied to every action button pressable. */
|
|
34
|
+
actionButtonStyle?: StyleProp<ViewStyle>;
|
|
35
|
+
/** Style override applied to every action button label text. */
|
|
36
|
+
actionTextStyle?: StyleProp<TextStyle>;
|
|
25
37
|
testID?: string;
|
|
26
38
|
}
|
|
27
39
|
declare const Dialog: React.FC<DialogProps>;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FieldBase — the unified field-box primitive.
|
|
3
|
+
*
|
|
4
|
+
* Every input-like control in the library (Input, Select, SearchBar,
|
|
5
|
+
* NumberInput, OTPInput cell, PickerTrigger) composes FieldBase so the
|
|
6
|
+
* height / radius / padding / border / fill / focus + disabled + error
|
|
7
|
+
* states stay identical across the library. Differences (pill SearchBar,
|
|
8
|
+
* OTP underline, NumberInput steppers) become explicit overrides via
|
|
9
|
+
* props or via theme tokens — never accidental drift.
|
|
10
|
+
*
|
|
11
|
+
* Responsibilities:
|
|
12
|
+
* - Resolve size / variant dimensions from `theme.components.field`.
|
|
13
|
+
* - Animate the border + background between idle / focused / error.
|
|
14
|
+
* - Render leading + trailing slots either side of `children`.
|
|
15
|
+
* - Become Pressable when `onPress` is set (Select, PickerTrigger).
|
|
16
|
+
* - Apply disabled fill + cursor semantics.
|
|
17
|
+
*
|
|
18
|
+
* Non-responsibilities (the parent owns these):
|
|
19
|
+
* - The actual TextInput / Text / nested editor.
|
|
20
|
+
* - Floating / static labels rendered above the field.
|
|
21
|
+
* - Helper / error / counter text rendered below the field.
|
|
22
|
+
* - Shake-on-error or any cross-field animation.
|
|
23
|
+
*/
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import type { AccessibilityRole, AccessibilityState, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
26
|
+
import type { FieldSizeTokens, FieldVariantTokens, Theme } from '../../theme/types';
|
|
27
|
+
export type FieldBaseSize = 'sm' | 'md' | 'lg';
|
|
28
|
+
export type FieldBaseVariant = 'outlined' | 'filled';
|
|
29
|
+
export interface FieldBaseProps {
|
|
30
|
+
/** Resolves to dimension tokens at `theme.components.field[size]`. Default `'md'`. */
|
|
31
|
+
size?: FieldBaseSize;
|
|
32
|
+
/**
|
|
33
|
+
* Controls the resting fill + border treatment. Override the theme default
|
|
34
|
+
* (`theme.components.field.defaultVariant`) via this prop. Default `'outlined'`.
|
|
35
|
+
*/
|
|
36
|
+
variant?: FieldBaseVariant;
|
|
37
|
+
/** Parent-controlled focus state — drives the border + fill animation. */
|
|
38
|
+
focused?: boolean;
|
|
39
|
+
/** Disabled state — wins over `focused` / `error`. */
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/** Error state — visually wins over `focused`. */
|
|
42
|
+
error?: boolean;
|
|
43
|
+
/** Whether the field currently holds a value. Affects idle-empty vs idle-filled fill. */
|
|
44
|
+
filled?: boolean;
|
|
45
|
+
/** Slot to the left of `children`. Rendered inside the padded row. */
|
|
46
|
+
leading?: React.ReactNode;
|
|
47
|
+
/** Slot to the right of `children`. Rendered inside the padded row. */
|
|
48
|
+
trailing?: React.ReactNode;
|
|
49
|
+
/** The editable / displayed content. TextInput, Text, OTP, anything. */
|
|
50
|
+
children?: React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* When provided, the entire field becomes Pressable. Use for Select /
|
|
53
|
+
* PickerTrigger / any non-text-input field. Disabled when `disabled` is true.
|
|
54
|
+
*/
|
|
55
|
+
onPress?: () => void;
|
|
56
|
+
/** Override `minHeight` (multiline Input). */
|
|
57
|
+
minHeight?: number;
|
|
58
|
+
/** Override `maxHeight` (rarely needed). */
|
|
59
|
+
maxHeight?: number;
|
|
60
|
+
/** Fixed pixel width — used by OTP cells. Suppresses default `flex: 1`. */
|
|
61
|
+
width?: number;
|
|
62
|
+
/** Fixed pixel height — used by OTP cells. Wins over `minHeight`. */
|
|
63
|
+
height?: number;
|
|
64
|
+
/** Override horizontal padding. */
|
|
65
|
+
paddingHorizontal?: number;
|
|
66
|
+
/** Override vertical padding (single-line). Multiline parents usually leave this default. */
|
|
67
|
+
paddingVertical?: number;
|
|
68
|
+
/** Override corner radius. SearchBar pill uses this to apply `radius.full`. */
|
|
69
|
+
borderRadius?: number;
|
|
70
|
+
/** Override border width. OTP uses 1.5; everything else inherits `colors.border.width`. */
|
|
71
|
+
borderWidth?: number;
|
|
72
|
+
/** Gap between leading / children / trailing. Defaults to `theme.spacing.sm`. */
|
|
73
|
+
gap?: number;
|
|
74
|
+
fillOverrides?: Partial<FieldVariantTokens>;
|
|
75
|
+
style?: StyleProp<ViewStyle>;
|
|
76
|
+
testID?: string;
|
|
77
|
+
accessibilityRole?: AccessibilityRole;
|
|
78
|
+
accessibilityLabel?: string;
|
|
79
|
+
accessibilityState?: AccessibilityState;
|
|
80
|
+
accessibilityHint?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Resolved text styling for the editable / displayed content inside a field.
|
|
84
|
+
* Single source of truth so every field component (Input, NumberInput,
|
|
85
|
+
* Select, SearchBar, PickerTrigger) renders identical colour + weight +
|
|
86
|
+
* fontFamily for value text — and reads the placeholder colour from the
|
|
87
|
+
* same place. OTPInput intentionally overrides this with its own semibold
|
|
88
|
+
* display weight.
|
|
89
|
+
*/
|
|
90
|
+
export interface FieldTextStyleResolverOptions {
|
|
91
|
+
/** When true, returns the disabled foreground colour. */
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface FieldTextStyle {
|
|
95
|
+
/** Foreground colour for the value text. */
|
|
96
|
+
color: string;
|
|
97
|
+
/** Placeholder foreground colour (TextInput's `placeholderTextColor` prop). */
|
|
98
|
+
placeholderColor: string;
|
|
99
|
+
/** `fontFamily` (when a brand font is registered) or `fontWeight` (otherwise). */
|
|
100
|
+
weightStyle: Pick<TextStyle, 'fontFamily' | 'fontWeight'>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Resolve the canonical text style chunk for a field's value. Reads from
|
|
104
|
+
* `theme.components.field.{textColor,disabledTextColor,placeholderColor,fontWeight}`
|
|
105
|
+
* with library-default fallbacks; brand fonts wired via `typography.fontFamily`
|
|
106
|
+
* apply via the shared `fontFor` helper.
|
|
107
|
+
*/
|
|
108
|
+
export declare const resolveFieldTextStyle: (theme: Theme, options?: FieldTextStyleResolverOptions) => FieldTextStyle;
|
|
109
|
+
/**
|
|
110
|
+
* Public re-export of the resolved size tokens — components that need to
|
|
111
|
+
* compute their own padding adjustments (e.g. multiline Input, icon-slot
|
|
112
|
+
* sizing) read from this rather than re-hardcoding the size table.
|
|
113
|
+
*/
|
|
114
|
+
export declare const resolveFieldSize: (theme: Theme, size: FieldBaseSize) => FieldSizeTokens;
|
|
115
|
+
/**
|
|
116
|
+
* Strict, fully-resolved colour set used internally. Mirrors `FieldVariantTokens`
|
|
117
|
+
* but every field is non-optional — every state has a concrete colour by the
|
|
118
|
+
* time the box renders, so downstream code can rely on string-typed fills.
|
|
119
|
+
*/
|
|
120
|
+
interface ResolvedFieldColors {
|
|
121
|
+
backgroundIdleEmpty: string;
|
|
122
|
+
backgroundIdleFilled: string;
|
|
123
|
+
/** Optional override fill while focused — when undefined, focus animates from idle to idle (no fill change). */
|
|
124
|
+
backgroundFocused: string | undefined;
|
|
125
|
+
/** Optional override fill while in error — when undefined, error animates from idle to idle. */
|
|
126
|
+
backgroundError: string | undefined;
|
|
127
|
+
backgroundDisabled: string;
|
|
128
|
+
borderIdle: string;
|
|
129
|
+
borderFocused: string;
|
|
130
|
+
borderError: string;
|
|
131
|
+
borderDisabled: string;
|
|
132
|
+
borderWidth: number;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Resolve the full set of state-aware fill + border colours for a given
|
|
136
|
+
* variant. Order: explicit override → theme token → library default.
|
|
137
|
+
*/
|
|
138
|
+
export declare const resolveVariantColors: (theme: Theme, variant: FieldBaseVariant, override?: Partial<FieldVariantTokens>) => ResolvedFieldColors;
|
|
139
|
+
export declare const FieldBase: React.FC<FieldBaseProps>;
|
|
140
|
+
export default FieldBase;
|
|
141
|
+
//# sourceMappingURL=FieldBase.d.ts.map
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
-
import type { IconFamily } from '../AppIcon';
|
|
5
4
|
export type FloatingActionButtonSize = 'sm' | 'md' | 'lg';
|
|
6
5
|
export type FloatingActionButtonTone = 'primary' | 'success' | 'warning' | 'error' | 'neutral';
|
|
7
6
|
export type FloatingActionButtonPosition = 'bottomRight' | 'bottomLeft' | 'bottomCenter';
|
|
8
|
-
export interface FloatingActionButtonIconConfig {
|
|
9
|
-
name: string;
|
|
10
|
-
family?: IconFamily;
|
|
11
|
-
}
|
|
12
7
|
export interface FloatingActionButtonProps {
|
|
13
|
-
icon
|
|
8
|
+
/** JSX element for the icon. The FAB sizes it via the `size` prop's iconSize token. */
|
|
9
|
+
icon: React.ReactNode;
|
|
14
10
|
onPress: () => void;
|
|
15
11
|
label?: string;
|
|
16
12
|
size?: FloatingActionButtonSize;
|
|
@@ -23,6 +19,8 @@ export interface FloatingActionButtonProps {
|
|
|
23
19
|
accessibilityLabel: string;
|
|
24
20
|
accessibilityHint?: string;
|
|
25
21
|
style?: StyleProp<ViewStyle>;
|
|
22
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
labelStyle?: StyleProp<ViewStyle>;
|
|
26
24
|
testID?: string;
|
|
27
25
|
}
|
|
28
26
|
declare const FloatingActionButton: React.ForwardRefExoticComponent<FloatingActionButtonProps & React.RefAttributes<View>>;
|
|
@@ -45,6 +43,10 @@ export interface FloatingActionButtonGroupProps {
|
|
|
45
43
|
bottomOffset?: number;
|
|
46
44
|
size?: FloatingActionButtonSize;
|
|
47
45
|
accessibilityLabel?: string;
|
|
46
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
47
|
+
secondaryActionStyle?: StyleProp<ViewStyle>;
|
|
48
|
+
labelPillStyle?: StyleProp<ViewStyle>;
|
|
49
|
+
labelStyle?: StyleProp<ViewStyle>;
|
|
48
50
|
testID?: string;
|
|
49
51
|
}
|
|
50
52
|
declare const FloatingActionButtonGroup: React.FC<FloatingActionButtonGroupProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { FloatingActionButton, FloatingActionButtonGroup, default } from './FloatingActionButton';
|
|
2
|
-
export type { FloatingActionButtonProps, FloatingActionButtonSize, FloatingActionButtonTone, FloatingActionButtonPosition,
|
|
2
|
+
export type { FloatingActionButtonProps, FloatingActionButtonSize, FloatingActionButtonTone, FloatingActionButtonPosition, FloatingActionButtonGroupProps, FloatingActionButtonGroupAction } from './FloatingActionButton';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
3
|
export interface ForceUpdateDialogProps {
|
|
3
4
|
/** Whether the dialog is visible. */
|
|
4
5
|
visible: boolean;
|
|
@@ -19,6 +20,12 @@ export interface ForceUpdateDialogProps {
|
|
|
19
20
|
updateLabel?: string;
|
|
20
21
|
/** Custom label for the dismiss action. Hidden when `mandatory`. */
|
|
21
22
|
laterLabel?: string;
|
|
23
|
+
/** Forwarded to the underlying Dialog container. */
|
|
24
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
/** Forwarded to the underlying Dialog title Text. */
|
|
26
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
27
|
+
/** Forwarded to the underlying Dialog message Text. */
|
|
28
|
+
messageStyle?: StyleProp<TextStyle>;
|
|
22
29
|
}
|
|
23
30
|
/**
|
|
24
31
|
* Drop-in update prompt that opens the App Store / Play Store on tap.
|
|
@@ -19,6 +19,13 @@ export interface FormFieldProps {
|
|
|
19
19
|
helperStyle?: StyleProp<TextStyle>;
|
|
20
20
|
errorStyle?: StyleProp<TextStyle>;
|
|
21
21
|
containerStyle?: StyleProp<ViewStyle>;
|
|
22
|
+
/**
|
|
23
|
+
* Style override for the wrapper View that hosts `children` (the input slot).
|
|
24
|
+
* Useful for the `inline` layout when callers need to tweak the right-hand
|
|
25
|
+
* column (e.g., set a max width, align differently). Additive only — the
|
|
26
|
+
* library's base style still applies underneath.
|
|
27
|
+
*/
|
|
28
|
+
inputContainerStyle?: StyleProp<ViewStyle>;
|
|
22
29
|
accessibilityLabel?: string;
|
|
23
30
|
testID?: string;
|
|
24
31
|
}
|