@cdx-ui/components 0.1.6 → 0.1.7
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/coverage.svg +1 -1
- package/lib/commonjs/components/Alert/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js +6 -4
- package/lib/commonjs/components/Avatar/index.js.map +1 -1
- package/lib/commonjs/components/Badge/index.js.map +1 -1
- package/lib/commonjs/components/Badge/styles.js +2 -2
- package/lib/commonjs/components/BottomSheet/index.js +106 -91
- package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/styles.js +1 -12
- package/lib/commonjs/components/BottomSheet/styles.js.map +1 -1
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Card/index.js.map +1 -1
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Divider/index.js.map +1 -1
- package/lib/commonjs/components/Form/styles.js +1 -1
- package/lib/commonjs/components/Form/styles.js.map +1 -1
- package/lib/commonjs/components/FullScreenDialog/animation.js +46 -0
- package/lib/commonjs/components/FullScreenDialog/animation.js.map +1 -0
- package/lib/commonjs/components/FullScreenDialog/index.js +343 -0
- package/lib/commonjs/components/FullScreenDialog/index.js.map +1 -0
- package/lib/commonjs/components/FullScreenDialog/styles.js +14 -0
- package/lib/commonjs/components/FullScreenDialog/styles.js.map +1 -0
- package/lib/commonjs/components/IconButton/styles.js +7 -5
- package/lib/commonjs/components/IconButton/styles.js.map +1 -1
- package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -1
- package/lib/commonjs/components/Link/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/index.js +2 -0
- package/lib/commonjs/components/ListItem/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/styles.js +6 -0
- package/lib/commonjs/components/ListItem/styles.js.map +1 -1
- package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/ScopedTheme/index.js +11 -3
- package/lib/commonjs/components/ScopedTheme/index.js.map +1 -1
- package/lib/commonjs/components/Skeleton/index.js.map +1 -1
- package/lib/commonjs/components/Stack/HStack.js.map +1 -1
- package/lib/commonjs/components/Stack/VStack.js.map +1 -1
- package/lib/commonjs/components/Textarea/index.js.map +1 -1
- package/lib/commonjs/components/Tile/index.js.map +1 -1
- package/lib/commonjs/components/Toast/index.js +40 -12
- package/lib/commonjs/components/Toast/index.js.map +1 -1
- package/lib/commonjs/components/Toast/styles.js +15 -4
- package/lib/commonjs/components/Toast/styles.js.map +1 -1
- package/lib/commonjs/components/index.js +12 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/picker/styles.js +6 -2
- package/lib/commonjs/components/picker/styles.js.map +1 -1
- package/lib/commonjs/components/sheet-header/index.js +97 -0
- package/lib/commonjs/components/sheet-header/index.js.map +1 -0
- package/lib/commonjs/components/sheet-header/styles.js +28 -0
- package/lib/commonjs/components/sheet-header/styles.js.map +1 -0
- package/lib/commonjs/figma/BottomSheet.figma.js +1 -1
- package/lib/commonjs/providers/toast/provider.js +44 -11
- package/lib/commonjs/providers/toast/provider.js.map +1 -1
- package/lib/module/components/Alert/index.js.map +1 -1
- package/lib/module/components/Avatar/index.js +6 -4
- package/lib/module/components/Avatar/index.js.map +1 -1
- package/lib/module/components/Badge/index.js.map +1 -1
- package/lib/module/components/Badge/styles.js +2 -2
- package/lib/module/components/BottomSheet/index.js +110 -95
- package/lib/module/components/BottomSheet/index.js.map +1 -1
- package/lib/module/components/BottomSheet/styles.js +0 -11
- package/lib/module/components/BottomSheet/styles.js.map +1 -1
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Card/index.js.map +1 -1
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Divider/index.js.map +1 -1
- package/lib/module/components/Form/styles.js +1 -1
- package/lib/module/components/Form/styles.js.map +1 -1
- package/lib/module/components/FullScreenDialog/animation.js +41 -0
- package/lib/module/components/FullScreenDialog/animation.js.map +1 -0
- package/lib/module/components/FullScreenDialog/index.js +338 -0
- package/lib/module/components/FullScreenDialog/index.js.map +1 -0
- package/lib/module/components/FullScreenDialog/styles.js +10 -0
- package/lib/module/components/FullScreenDialog/styles.js.map +1 -0
- package/lib/module/components/IconButton/styles.js +7 -4
- package/lib/module/components/IconButton/styles.js.map +1 -1
- package/lib/module/components/InsuranceDisclosure/index.js.map +1 -1
- package/lib/module/components/Link/index.js.map +1 -1
- package/lib/module/components/ListItem/index.js +2 -0
- package/lib/module/components/ListItem/index.js.map +1 -1
- package/lib/module/components/ListItem/styles.js +6 -0
- package/lib/module/components/ListItem/styles.js.map +1 -1
- package/lib/module/components/ProgressSegmented/index.js.map +1 -1
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/ScopedTheme/index.js +11 -3
- package/lib/module/components/ScopedTheme/index.js.map +1 -1
- package/lib/module/components/Skeleton/index.js.map +1 -1
- package/lib/module/components/Stack/HStack.js.map +1 -1
- package/lib/module/components/Stack/VStack.js.map +1 -1
- package/lib/module/components/Textarea/index.js.map +1 -1
- package/lib/module/components/Tile/index.js.map +1 -1
- package/lib/module/components/Toast/index.js +43 -15
- package/lib/module/components/Toast/index.js.map +1 -1
- package/lib/module/components/Toast/styles.js +14 -3
- package/lib/module/components/Toast/styles.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/picker/styles.js +6 -2
- package/lib/module/components/picker/styles.js.map +1 -1
- package/lib/module/components/sheet-header/index.js +94 -0
- package/lib/module/components/sheet-header/index.js.map +1 -0
- package/lib/module/components/sheet-header/styles.js +25 -0
- package/lib/module/components/sheet-header/styles.js.map +1 -0
- package/lib/module/figma/BottomSheet.figma.js +1 -1
- package/lib/module/providers/toast/provider.js +44 -11
- package/lib/module/providers/toast/provider.js.map +1 -1
- package/lib/typescript/components/Alert/index.d.ts +4 -1
- package/lib/typescript/components/Alert/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/index.d.ts +10 -4
- package/lib/typescript/components/Avatar/index.d.ts.map +1 -1
- package/lib/typescript/components/Badge/index.d.ts +34 -0
- package/lib/typescript/components/Badge/index.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/index.d.ts +12 -1
- package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/styles.d.ts +0 -5
- package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -1
- package/lib/typescript/components/Button/index.d.ts +9 -1
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Card/index.d.ts +14 -0
- package/lib/typescript/components/Card/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +1 -1
- package/lib/typescript/components/CurrencyInput/index.d.ts +2 -2
- package/lib/typescript/components/CurrencyInput/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/index.d.ts +10 -0
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/styles.d.ts +1 -0
- package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
- package/lib/typescript/components/Divider/index.d.ts +5 -0
- package/lib/typescript/components/Divider/index.d.ts.map +1 -1
- package/lib/typescript/components/Drawer/styles.d.ts +1 -1
- package/lib/typescript/components/Form/styles.d.ts.map +1 -1
- package/lib/typescript/components/FullScreenDialog/animation.d.ts +9 -0
- package/lib/typescript/components/FullScreenDialog/animation.d.ts.map +1 -0
- package/lib/typescript/components/FullScreenDialog/index.d.ts +85 -0
- package/lib/typescript/components/FullScreenDialog/index.d.ts.map +1 -0
- package/lib/typescript/components/FullScreenDialog/styles.d.ts +6 -0
- package/lib/typescript/components/FullScreenDialog/styles.d.ts.map +1 -0
- package/lib/typescript/components/IconButton/styles.d.ts +5 -0
- package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Input/index.d.ts +1 -1
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts +1 -0
- package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -1
- package/lib/typescript/components/Link/index.d.ts +2 -0
- package/lib/typescript/components/Link/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/index.d.ts +43 -4
- package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/styles.d.ts +2 -0
- package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
- package/lib/typescript/components/ProgressSegmented/index.d.ts +10 -3
- package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
- package/lib/typescript/components/Radio/index.d.ts +1 -0
- package/lib/typescript/components/Radio/index.d.ts.map +1 -1
- package/lib/typescript/components/ScopedTheme/index.d.ts +11 -3
- package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -1
- package/lib/typescript/components/Skeleton/index.d.ts +5 -1
- package/lib/typescript/components/Skeleton/index.d.ts.map +1 -1
- package/lib/typescript/components/Stack/HStack.d.ts +6 -0
- package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
- package/lib/typescript/components/Stack/VStack.d.ts +6 -0
- package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
- package/lib/typescript/components/Switch/index.d.ts +1 -1
- package/lib/typescript/components/Tabs/index.d.ts +2 -2
- package/lib/typescript/components/Textarea/index.d.ts +1 -0
- package/lib/typescript/components/Textarea/index.d.ts.map +1 -1
- package/lib/typescript/components/Tile/index.d.ts +49 -0
- package/lib/typescript/components/Tile/index.d.ts.map +1 -1
- package/lib/typescript/components/Toast/index.d.ts +15 -0
- package/lib/typescript/components/Toast/index.d.ts.map +1 -1
- package/lib/typescript/components/Toast/styles.d.ts +10 -0
- package/lib/typescript/components/Toast/styles.d.ts.map +1 -1
- package/lib/typescript/components/Toast/types.d.ts +9 -0
- package/lib/typescript/components/Toast/types.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/picker/styles.d.ts +5 -2
- package/lib/typescript/components/picker/styles.d.ts.map +1 -1
- package/lib/typescript/components/sheet-header/index.d.ts +24 -0
- package/lib/typescript/components/sheet-header/index.d.ts.map +1 -0
- package/lib/typescript/components/sheet-header/styles.d.ts +12 -0
- package/lib/typescript/components/sheet-header/styles.d.ts.map +1 -0
- package/lib/typescript/providers/toast/provider.d.ts +1 -1
- package/lib/typescript/providers/toast/provider.d.ts.map +1 -1
- package/lib/typescript/providers/toast/types.d.ts +16 -4
- package/lib/typescript/providers/toast/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/components/Alert/index.tsx +4 -1
- package/src/components/Avatar/index.tsx +10 -4
- package/src/components/Badge/index.tsx +34 -0
- package/src/components/Badge/styles.ts +2 -2
- package/src/components/BottomSheet/index.tsx +156 -125
- package/src/components/BottomSheet/styles.ts +1 -22
- package/src/components/Button/index.tsx +9 -1
- package/src/components/Card/index.tsx +14 -0
- package/src/components/Chip/index.tsx +1 -1
- package/src/components/CurrencyInput/index.tsx +2 -2
- package/src/components/Dialog/index.tsx +10 -0
- package/src/components/Dialog/styles.ts +1 -0
- package/src/components/Divider/index.tsx +5 -0
- package/src/components/Form/styles.ts +1 -1
- package/src/components/FullScreenDialog/animation.ts +22 -0
- package/src/components/FullScreenDialog/index.tsx +484 -0
- package/src/components/FullScreenDialog/styles.ts +23 -0
- package/src/components/IconButton/styles.ts +7 -4
- package/src/components/Input/index.tsx +1 -1
- package/src/components/InsuranceDisclosure/index.tsx +1 -0
- package/src/components/Link/index.tsx +2 -0
- package/src/components/ListItem/index.tsx +48 -4
- package/src/components/ListItem/styles.ts +7 -0
- package/src/components/ProgressSegmented/index.tsx +10 -3
- package/src/components/Radio/index.tsx +1 -0
- package/src/components/ScopedTheme/index.tsx +11 -3
- package/src/components/Skeleton/index.tsx +5 -1
- package/src/components/Stack/HStack.tsx +6 -0
- package/src/components/Stack/VStack.tsx +6 -0
- package/src/components/Switch/index.tsx +1 -1
- package/src/components/Tabs/index.tsx +2 -2
- package/src/components/Textarea/index.tsx +1 -0
- package/src/components/Tile/index.tsx +49 -0
- package/src/components/Toast/index.tsx +55 -9
- package/src/components/Toast/styles.ts +14 -3
- package/src/components/Toast/types.ts +9 -0
- package/src/components/index.ts +1 -0
- package/src/components/picker/styles.ts +6 -2
- package/src/components/sheet-header/index.tsx +148 -0
- package/src/components/sheet-header/styles.ts +28 -0
- package/src/providers/toast/provider.tsx +47 -13
- package/src/providers/toast/types.ts +16 -4
|
@@ -3,7 +3,7 @@ export declare const drawerPortalVariants: (props?: import("class-variance-autho
|
|
|
3
3
|
export declare const drawerOverlayVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
4
|
export declare const drawerPanelVariants: (props?: ({
|
|
5
5
|
size?: "small" | "default" | "large" | null | undefined;
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "modal" | "permanent" | null | undefined;
|
|
7
7
|
placement?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export declare const drawerHeaderVariants: (props?: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,oFAA+B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const FULL_SCREEN_DIALOG_ENTER_MS = 300;
|
|
2
|
+
export declare const FULL_SCREEN_DIALOG_EXIT_MS = 220;
|
|
3
|
+
export declare const WEB_TRANSITION_SAFETY_MS: number;
|
|
4
|
+
/** Native slide-up surface motion. `offscreen` is the distance below the viewport to start from. */
|
|
5
|
+
export declare function getFullScreenDialogSurfaceMotion(offscreen: number): {
|
|
6
|
+
entering: import("react-native-reanimated").ReanimatedKeyframe;
|
|
7
|
+
exiting: import("react-native-reanimated").ReanimatedKeyframe;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../src/components/FullScreenDialog/animation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,wBAAwB,QAAoC,CAAC;AAK1E,oGAAoG;AACpG,wBAAgB,gCAAgC,CAAC,SAAS,EAAE,MAAM;;;EAWjE"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { View, type ViewProps } from 'react-native';
|
|
3
|
+
import { type IDialogContentProps, type IDialogRootProps, type IDialogTriggerProps } from '@cdx-ui/primitives';
|
|
4
|
+
import { type AnimationRootDisableAll } from '../../animation';
|
|
5
|
+
export interface FullScreenDialogRootProps extends Omit<ViewProps, 'children' | 'role'>, Omit<IDialogRootProps, 'closeOnBackdropPress' | 'role' | 'onOpenChange' | 'defaultOpen' | 'closeOnEscKey' | 'children'> {
|
|
6
|
+
/**
|
|
7
|
+
* Called with the next open state. Fires `false` for the header close button, Escape, and
|
|
8
|
+
* Android back while the header has no `onBack`.
|
|
9
|
+
*/
|
|
10
|
+
onOpenChange?: (open: boolean) => void;
|
|
11
|
+
/** Initial open state when uncontrolled. @default false */
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Close when Escape is pressed. Web only. Escape never steps back; Android back is routed
|
|
15
|
+
* by the header's `onBack` independently of this prop.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
closeOnEscKey?: boolean;
|
|
19
|
+
/** `FullScreenDialog.Trigger` and `FullScreenDialog.Popup`. */
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
/** Classes for the root wrapper around the trigger. */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Pass `'disable-all'` to turn off the popup's enter and exit motion. */
|
|
24
|
+
animation?: AnimationRootDisableAll;
|
|
25
|
+
}
|
|
26
|
+
declare const FullScreenDialogRoot: import("react").ForwardRefExoticComponent<FullScreenDialogRootProps & import("react").RefAttributes<View>>;
|
|
27
|
+
export interface FullScreenDialogTriggerProps extends Omit<IDialogTriggerProps, 'asChild'> {
|
|
28
|
+
/** Render the single child as the trigger instead of a `Pressable`. */
|
|
29
|
+
asChild?: boolean;
|
|
30
|
+
/** Classes for the trigger. */
|
|
31
|
+
className?: string;
|
|
32
|
+
/** Content that opens the dialog when pressed. */
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
declare const FullScreenDialogTrigger: import("react").ForwardRefExoticComponent<FullScreenDialogTriggerProps & import("react").RefAttributes<View>>;
|
|
36
|
+
export interface FullScreenDialogPopupProps extends Omit<IDialogContentProps, 'asChild' | 'forceMount' | 'avoidKeyboard' | 'keyboardVerticalOffset'> {
|
|
37
|
+
/** Classes for the page surface, merged after the defaults. */
|
|
38
|
+
className?: string;
|
|
39
|
+
/** `FullScreenDialog.Header` and `FullScreenDialog.Content`. Bottom sheets declared here present above the page. */
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
declare const FullScreenDialogPopup: import("react").ForwardRefExoticComponent<FullScreenDialogPopupProps & import("react").RefAttributes<View>>;
|
|
43
|
+
export interface FullScreenDialogHeaderProps {
|
|
44
|
+
/** Title text. Labels the dialog. Ignored when `children` is set. */
|
|
45
|
+
title?: string;
|
|
46
|
+
/** Secondary line under the title. Has no effect without `title`, or when `children` is set. */
|
|
47
|
+
subtitle?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Custom header content. Replaces `title` and `subtitle`. The consumer then owns the
|
|
50
|
+
* dialog's accessible name and focus on step change: focus doesn't move to the header.
|
|
51
|
+
*/
|
|
52
|
+
children?: ReactNode;
|
|
53
|
+
/** Classes for the header region, which includes the top safe-area padding. */
|
|
54
|
+
className?: string;
|
|
55
|
+
/** Called by the close button. @default Closes the dialog (`onOpenChange(false)`). */
|
|
56
|
+
onClose?: () => void;
|
|
57
|
+
/** Accessible name for the close button. @default Close */
|
|
58
|
+
closeAccessibilityLabel?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Shows the back button when set. Android system back calls it too, instead of
|
|
61
|
+
* closing the dialog. Escape on web always closes.
|
|
62
|
+
*/
|
|
63
|
+
onBack?: () => void;
|
|
64
|
+
/** Accessible name for the back button. @default Go back */
|
|
65
|
+
backAccessibilityLabel?: string;
|
|
66
|
+
}
|
|
67
|
+
declare const FullScreenDialogHeader: import("react").ForwardRefExoticComponent<FullScreenDialogHeaderProps & import("react").RefAttributes<View>>;
|
|
68
|
+
export interface FullScreenDialogContentProps extends ViewProps {
|
|
69
|
+
/** Render the single child as the content region instead of a `View`. */
|
|
70
|
+
asChild?: boolean;
|
|
71
|
+
/** Classes for the content region, merged after the defaults. */
|
|
72
|
+
className?: string;
|
|
73
|
+
/** Page body. Usually a `ScrollView`. */
|
|
74
|
+
children?: ReactNode;
|
|
75
|
+
}
|
|
76
|
+
declare const FullScreenDialogContent: import("react").ForwardRefExoticComponent<FullScreenDialogContentProps & import("react").RefAttributes<View>>;
|
|
77
|
+
type FullScreenDialogCompoundComponent = typeof FullScreenDialogRoot & {
|
|
78
|
+
Trigger: typeof FullScreenDialogTrigger;
|
|
79
|
+
Popup: typeof FullScreenDialogPopup;
|
|
80
|
+
Header: typeof FullScreenDialogHeader;
|
|
81
|
+
Content: typeof FullScreenDialogContent;
|
|
82
|
+
};
|
|
83
|
+
export declare const FullScreenDialog: FullScreenDialogCompoundComponent;
|
|
84
|
+
export {};
|
|
85
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FullScre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import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const fullScreenDialogPopupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
3
|
+
/** Paints the surface behind the status bar inset above the header row. */
|
|
4
|
+
export declare const fullScreenDialogHeaderVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
|
+
export declare const fullScreenDialogContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
6
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/FullScreenDialog/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B,oFAIzC,CAAC;AAEH,eAAO,MAAM,6BAA6B,oFASxC,CAAC;AAEH,2EAA2E;AAC3E,eAAO,MAAM,8BAA8B,oFAA0C,CAAC;AAEtF,eAAO,MAAM,+BAA+B,oFAA0B,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { type VariantProps } from '@cdx-ui/utils';
|
|
2
|
+
/** Box classes per size. Shared with layout placeholders that must match an `IconButton`'s footprint. */
|
|
3
|
+
export declare const iconButtonSizeClassNames: {
|
|
4
|
+
readonly default: "h-11 w-11 min-w-11 shrink-0 p-2.5";
|
|
5
|
+
readonly small: "h-8 w-8 min-w-8 shrink-0 p-1.5";
|
|
6
|
+
};
|
|
2
7
|
export declare const iconButtonRootVariants: (props?: ({
|
|
3
8
|
variant?: "solid" | "ghost" | "subtle" | null | undefined;
|
|
4
9
|
color?: "danger" | "action" | "neutral" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MAAM,sBAAsB;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGvD,yGAAyG;AACzG,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;8EAqIlC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;8EA4BtC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/InsuranceDisclosure/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAI9D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS3D,KAAK,8BAA8B,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG;IACpE;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gFAAgF;AAChF,MAAM,WAAW,mCAAoC,SAAQ,8BAA8B;IACzF,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,mEAAmE;AACnE,MAAM,WAAW,kCAAmC,SAAQ,8BAA8B;IACxF,uEAAuE;IACvE,UAAU,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACzC,+EAA+E;IAC/E,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAChC,mCAAmC,GACnC,kCAAkC,CAAC;AAEvC,eAAO,MAAM,mBAAmB,2GAkD9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/InsuranceDisclosure/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAI9D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS3D,KAAK,8BAA8B,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG;IACpE;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gFAAgF;AAChF,MAAM,WAAW,mCAAoC,SAAQ,8BAA8B;IACzF,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,mEAAmE;AACnE,MAAM,WAAW,kCAAmC,SAAQ,8BAA8B;IACxF,uEAAuE;IACvE,UAAU,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACzC,+EAA+E;IAC/E,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAChC,mCAAmC,GACnC,kCAAkC,CAAC;AAEvC,eAAO,MAAM,mBAAmB,2GAkD9B,CAAC"}
|
|
@@ -4,12 +4,14 @@ import { type ILinkProps } from '@cdx-ui/primitives';
|
|
|
4
4
|
import { type IconProps } from '../Icon';
|
|
5
5
|
export { LinkProvider, type LinkConfig, type LinkAction } from '@cdx-ui/primitives';
|
|
6
6
|
export interface LinkProps extends ILinkProps {
|
|
7
|
+
/** Renders the consumer's child element in place of the default pressable host. */
|
|
7
8
|
asChild?: boolean;
|
|
8
9
|
className?: string;
|
|
9
10
|
children?: ReactNode;
|
|
10
11
|
}
|
|
11
12
|
declare const LinkRoot: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<View>>;
|
|
12
13
|
export interface LinkLabelProps extends TextProps {
|
|
14
|
+
/** Renders the consumer's child element in place of the default `Text` host. */
|
|
13
15
|
asChild?: boolean;
|
|
14
16
|
className?: string;
|
|
15
17
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAY,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAQ/C,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMpF,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,QAAQ,4FAcZ,CAAC;AAQH,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,SAAS,iGAwBd,CAAC;AAQF,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;CAAG;AAErE,QAAA,MAAM,QAAQ;yCAAwC,aAAa;;CAalE,CAAC;AAQF,KAAK,qBAAqB,GAAG,OAAO,QAAQ,GAAG;IAC7C,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,IAAI,EAAE,OAAO,Q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
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { Text, View, type TextProps, type ViewProps } from 'react-native';
|
|
3
3
|
import { type IListItemProps, type ListItemCrossAlign } from '@cdx-ui/primitives';
|
|
4
|
-
import { type ListItemVariantProps } from './styles';
|
|
4
|
+
import { type ListItemSectionHeaderVariantProps, type ListItemVariantProps } from './styles';
|
|
5
5
|
export interface ListItemProps extends Omit<IListItemProps, 'crossAlign'>, ListItemVariantProps {
|
|
6
|
+
/**
|
|
7
|
+
* Vertical density. `compact` reduces padding and min-height; typography stays the same.
|
|
8
|
+
* @default 'default'
|
|
9
|
+
* @remarks `'default' | 'compact'`
|
|
10
|
+
* @fumadocsType `'default' | 'compact'`
|
|
11
|
+
*/
|
|
12
|
+
size?: 'default' | 'compact' | null | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Bottom border between rows. Set `false` on the last row to avoid a trailing border.
|
|
15
|
+
* @default true
|
|
16
|
+
* @remarks `boolean`
|
|
17
|
+
* @fumadocsType `boolean`
|
|
18
|
+
*/
|
|
19
|
+
showSeparator?: boolean | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Vertical alignment of the leading, content, and trailing slots.
|
|
22
|
+
* `start` top-aligns them so trailing text lines up with the title.
|
|
23
|
+
* @default 'center'
|
|
24
|
+
* @remarks `'center' | 'start'`
|
|
25
|
+
* @fumadocsType `'center' | 'start'`
|
|
26
|
+
*/
|
|
27
|
+
crossAlign?: 'center' | 'start' | null | undefined;
|
|
6
28
|
className?: string;
|
|
7
29
|
}
|
|
8
30
|
declare const ListItemRoot: import("react").ForwardRefExoticComponent<ListItemProps & import("react").RefAttributes<View>>;
|
|
9
31
|
export interface ListItemLeadingSlotProps extends ViewProps {
|
|
32
|
+
/** Renders the consumer's child element in place of the default `View` host. */
|
|
10
33
|
asChild?: boolean;
|
|
11
34
|
className?: string;
|
|
12
35
|
/**
|
|
@@ -18,39 +41,55 @@ export interface ListItemLeadingSlotProps extends ViewProps {
|
|
|
18
41
|
}
|
|
19
42
|
declare const ListItemLeadingSlot: import("react").ForwardRefExoticComponent<ListItemLeadingSlotProps & import("react").RefAttributes<View>>;
|
|
20
43
|
export interface ListItemContentProps extends ViewProps {
|
|
44
|
+
/** Renders the consumer's child element in place of the default `View` host. */
|
|
21
45
|
asChild?: boolean;
|
|
22
46
|
className?: string;
|
|
23
47
|
}
|
|
24
48
|
declare const ListItemContent: import("react").ForwardRefExoticComponent<ListItemContentProps & import("react").RefAttributes<View>>;
|
|
25
49
|
export interface ListItemTitleProps extends TextProps {
|
|
50
|
+
/** Renders the consumer's child element in place of the default `Text` host. */
|
|
26
51
|
asChild?: boolean;
|
|
27
52
|
className?: string;
|
|
28
53
|
}
|
|
29
54
|
declare const ListItemTitle: import("react").ForwardRefExoticComponent<ListItemTitleProps & import("react").RefAttributes<Text>>;
|
|
30
55
|
export interface ListItemDescriptionProps extends TextProps {
|
|
56
|
+
/** Renders the consumer's child element in place of the default `Text` host. */
|
|
31
57
|
asChild?: boolean;
|
|
32
58
|
className?: string;
|
|
33
59
|
}
|
|
34
60
|
declare const ListItemDescription: import("react").ForwardRefExoticComponent<ListItemDescriptionProps & import("react").RefAttributes<Text>>;
|
|
35
61
|
export interface ListItemMetaProps extends TextProps {
|
|
62
|
+
/** Renders the consumer's child element in place of the default `Text` host. */
|
|
36
63
|
asChild?: boolean;
|
|
37
64
|
className?: string;
|
|
38
65
|
}
|
|
39
66
|
declare const ListItemMeta: import("react").ForwardRefExoticComponent<ListItemMetaProps & import("react").RefAttributes<Text>>;
|
|
40
67
|
export interface ListItemTrailingSlotProps extends ViewProps {
|
|
68
|
+
/** Renders the consumer's child element in place of the default `View` host. */
|
|
41
69
|
asChild?: boolean;
|
|
42
70
|
className?: string;
|
|
43
71
|
}
|
|
44
72
|
declare const ListItemTrailingSlot: import("react").ForwardRefExoticComponent<ListItemTrailingSlotProps & import("react").RefAttributes<View>>;
|
|
73
|
+
export type ListItemSectionHeaderVariant = NonNullable<ListItemSectionHeaderVariantProps['variant']>;
|
|
45
74
|
export interface ListItemSectionHeaderProps extends ViewProps {
|
|
75
|
+
/** Renders the consumer's child element in place of the default `View` host. */
|
|
46
76
|
asChild?: boolean;
|
|
47
77
|
className?: string;
|
|
48
|
-
/** Primary section label
|
|
78
|
+
/** Primary section label. String or number children are styled as an uppercase label. */
|
|
49
79
|
children: ReactNode;
|
|
50
80
|
/** Optional right-aligned adornment (e.g. section Chip). */
|
|
51
81
|
trailing?: ReactNode;
|
|
52
82
|
/**
|
|
53
|
-
*
|
|
83
|
+
* Background treatment. `ghost` has no fill and a bottom border; `subtle` adds a neutral fill
|
|
84
|
+
* (matching `subtle` on Avatar, Chip, and IconButton) and drops the bottom border.
|
|
85
|
+
* Label typography is the same for both.
|
|
86
|
+
* @default 'ghost'
|
|
87
|
+
* @remarks `'ghost' | 'subtle'`
|
|
88
|
+
* @fumadocsType `'ghost' | 'subtle'`
|
|
89
|
+
*/
|
|
90
|
+
variant?: ListItemSectionHeaderVariant;
|
|
91
|
+
/**
|
|
92
|
+
* Accent top border above the header.
|
|
54
93
|
* @default true
|
|
55
94
|
*/
|
|
56
95
|
showDivider?: boolean;
|
|
@@ -66,6 +105,6 @@ type ListItemCompound = typeof ListItemRoot & {
|
|
|
66
105
|
SectionHeader: typeof ListItemSectionHeader;
|
|
67
106
|
};
|
|
68
107
|
export declare const ListItem: ListItemCompound;
|
|
69
|
-
export type { ListItemCrossAlign, ListItemVariantProps };
|
|
108
|
+
export type { ListItemCrossAlign, ListItemSectionHeaderVariantProps, ListItemVariantProps };
|
|
70
109
|
export { listItemContentVariants, listItemDescriptionVariants, listItemLeadingSlotVariants, listItemMetaVariants, listItemRootVariants, listItemSectionHeaderLabelVariants, listItemSectionHeaderVariants, listItemTitleVariants, listItemTrailingSlotVariants, } from './styles';
|
|
71
110
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem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AAyF;IACzF,QAAQ,EAAE,SAAS,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,4BAA4B,CAAC;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,qBAAqB,6GAiC1B,CAAC;AAQF,KAAK,gBAAgB,GAAG,OAAO,YAAY,GAAG;IAC5C,WAAW,EAAE,OAAO,mBAAmB,CAAC;IACxC,OAAO,EAAE,OAAO,eAAe,CAAC;IAChC,KAAK,EAAE,OAAO,aAAa,CAAC;IAC5B,WAAW,EAAE,OAAO,mBAAmB,CAAC;IACxC,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B,YAAY,EAAE,OAAO,oBAAoB,CAAC;IAC1C,aAAa,EAAE,OAAO,qBAAqB,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAQf,gBAAgB,CAAC;AAEvB,YAAY,EAAE,kBAAkB,EAAE,iCAAiC,EAAE,oBAAoB,EAAE,CAAC;AAC5F,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,kCAAkC,EAClC,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,UAAU,CAAC"}
|
|
@@ -15,9 +15,11 @@ export declare const listItemTitleVariants: (props?: import("class-variance-auth
|
|
|
15
15
|
export declare const listItemDescriptionVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
16
16
|
export declare const listItemMetaVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
17
17
|
export declare const listItemSectionHeaderVariants: (props?: ({
|
|
18
|
+
variant?: "ghost" | "subtle" | null | undefined;
|
|
18
19
|
showDivider?: boolean | null | undefined;
|
|
19
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
21
|
/** Default section-title typography; applied by `ListItem.SectionHeader` for string/number children. Exported for rare custom composition. */
|
|
21
22
|
export declare const listItemSectionHeaderLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
22
23
|
export type ListItemVariantProps = VariantProps<typeof listItemRootVariants>;
|
|
24
|
+
export type ListItemSectionHeaderVariantProps = VariantProps<typeof listItemSectionHeaderVariants>;
|
|
23
25
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAcvD,eAAO,MAAM,oBAAoB;;;;8EA2ChC,CAAC;AAIF,eAAO,MAAM,2BAA2B,oFAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;8EAaxC,CAAC;AAIF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAIH,eAAO,MAAM,qBAAqB,oFAAkD,CAAC;AAErF,eAAO,MAAM,2BAA2B,oFAAwC,CAAC;AAEjF,eAAO,MAAM,oBAAoB,oFAAuC,CAAC;AAIzE,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAcvD,eAAO,MAAM,oBAAoB;;;;8EA2ChC,CAAC;AAIF,eAAO,MAAM,2BAA2B,oFAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;8EAaxC,CAAC;AAIF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAIH,eAAO,MAAM,qBAAqB,oFAAkD,CAAC;AAErF,eAAO,MAAM,2BAA2B,oFAAwC,CAAC;AAEjF,eAAO,MAAM,oBAAoB,oFAAuC,CAAC;AAIzE,eAAO,MAAM,6BAA6B;;;8EAsBzC,CAAC;AAEF,8IAA8I;AAC9I,eAAO,MAAM,kCAAkC,oFAE9C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC7E,MAAM,MAAM,iCAAiC,GAAG,YAAY,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { View, type ViewProps } from 'react-native';
|
|
2
2
|
import { type ProgressSegmentedVariants } from './styles';
|
|
3
3
|
export interface ProgressSegmentedProps extends ViewProps, ProgressSegmentedVariants {
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Current step (1-based index into the segment count).
|
|
6
|
+
* Clamped to `[0, segments]` (`0` leaves every segment incomplete).
|
|
7
|
+
*/
|
|
5
8
|
readonly step: number;
|
|
6
9
|
/**
|
|
7
10
|
* Number of segments in the bar. Matches the Figma `segments` variant (2–6 in the design
|
|
8
11
|
* system file); the prop accepts any positive integer for backward compatibility.
|
|
12
|
+
* @default 5
|
|
9
13
|
*/
|
|
10
14
|
readonly segments?: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* When true, the current step segment is marked as complete rather than in-progress.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
12
19
|
readonly isStepComplete?: boolean;
|
|
13
20
|
/**
|
|
14
21
|
* Returns the accessibility value text announced by screen readers. Receives the clamped
|
|
15
|
-
* step, segment count, and whether the step is complete.
|
|
22
|
+
* step, segment count, and whether the step is complete. Replaces the English default.
|
|
16
23
|
*/
|
|
17
24
|
readonly getAccessibilityText?: (step: number, segmentCount: number, isStepComplete: boolean) => string;
|
|
18
25
|
readonly className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressSegmented/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,sBAAuB,SAAQ,SAAS,EAAE,yBAAyB;IAClF
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressSegmented/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,sBAAuB,SAAQ,SAAS,EAAE,yBAAyB;IAClF;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAC9B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,OAAO,KACpB,MAAM,CAAC;IACZ,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,iBAAiB,yGA2D7B,CAAC"}
|
|
@@ -27,6 +27,7 @@ export interface RadioGroupProps extends ViewProps {
|
|
|
27
27
|
isDisabled?: boolean;
|
|
28
28
|
isInvalid?: boolean;
|
|
29
29
|
isRequired?: boolean;
|
|
30
|
+
/** Makes every radio in the group read-only. Items stay focusable, but the selection cannot be changed. */
|
|
30
31
|
isReadOnly?: boolean;
|
|
31
32
|
direction?: 'column' | 'row';
|
|
32
33
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC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K,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2GAA2G;IAC3G,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,kGA0Cf,CAAC;AAQF,KAAK,sBAAsB,GAAG,OAAO,SAAS,GAAG;IAC/C,SAAS,EAAE,OAAO,cAAc,CAAC;IACjC,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,KAAK,EAAE,OAAO,UAAU,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,KAAK,EAIZ,sBAAsB,CAAC"}
|
|
@@ -8,9 +8,17 @@ export type ScopedThemeProps = ComponentProps<typeof UniwindScopedTheme>;
|
|
|
8
8
|
*
|
|
9
9
|
* Wraps Uniwind's `ScopedTheme` to keep `uniwind` an internal implementation detail.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* On web, the consuming app's `global.css` must include
|
|
12
|
+
* `@custom-variant dark (&:where(.dark, .dark *));`. Without that directive,
|
|
13
|
+
* `theme="dark"` does not flip CSS variables. Native applies the scoped theme
|
|
14
|
+
* through React context and does not use the directive.
|
|
15
|
+
*
|
|
16
|
+
* On web, `theme="dark"` forces dark tokens inside a light app. `theme="light"`
|
|
17
|
+
* applies when no `.dark` ancestor is present; there is no `@custom-variant light`
|
|
18
|
+
* to override one. Native honors either value through context.
|
|
19
|
+
*
|
|
20
|
+
* Pass a static `theme`. Changing `theme` on an already-mounted instance can leave
|
|
21
|
+
* stale styles; remount to switch.
|
|
14
22
|
*/
|
|
15
23
|
export declare const ScopedTheme: (props: ScopedThemeProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScopedTheme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScopedTheme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAAsC,CAAC"}
|
|
@@ -2,7 +2,11 @@ import { type ViewProps } from 'react-native';
|
|
|
2
2
|
import Animated from 'react-native-reanimated';
|
|
3
3
|
export interface SkeletonProps extends ViewProps {
|
|
4
4
|
className?: string;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Half-cycle of the opacity pulse (`1` → `0.35`) in milliseconds.
|
|
7
|
+
* A full pulse takes `duration × 2`.
|
|
8
|
+
* @default 1000
|
|
9
|
+
*/
|
|
6
10
|
duration?: number;
|
|
7
11
|
}
|
|
8
12
|
export declare const Skeleton: import("react").ForwardRefExoticComponent<SkeletonProps & import("react").RefAttributes<Animated.View>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,QAMN,MAAM,yBAAyB,CAAC;AAIjC,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,QAMN,MAAM,yBAAyB,CAAC;AAIjC,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,yGAsBpB,CAAC"}
|
|
@@ -2,7 +2,13 @@ import { View, type ViewProps } from 'react-native';
|
|
|
2
2
|
import { type StackSpace } from './styles';
|
|
3
3
|
export interface HStackProps extends ViewProps {
|
|
4
4
|
className?: string;
|
|
5
|
+
/** Token-based gap between children. */
|
|
5
6
|
space?: StackSpace;
|
|
7
|
+
/**
|
|
8
|
+
* Reverses the visual order of children along the stack axis.
|
|
9
|
+
* Source order and screen-reader order stay unchanged.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
6
12
|
reversed?: boolean;
|
|
7
13
|
}
|
|
8
14
|
export declare const HStack: import("react").ForwardRefExoticComponent<HStackProps & import("react").RefAttributes<View>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HStack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/HStack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,8FAgBlB,CAAC"}
|
|
1
|
+
{"version":3,"file":"HStack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/HStack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,8FAgBlB,CAAC"}
|
|
@@ -2,7 +2,13 @@ import { View, type ViewProps } from 'react-native';
|
|
|
2
2
|
import { type StackSpace } from './styles';
|
|
3
3
|
export interface VStackProps extends ViewProps {
|
|
4
4
|
className?: string;
|
|
5
|
+
/** Token-based gap between children. */
|
|
5
6
|
space?: StackSpace;
|
|
7
|
+
/**
|
|
8
|
+
* Reverses the visual order of children along the stack axis.
|
|
9
|
+
* Source order and screen-reader order stay unchanged.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
6
12
|
reversed?: boolean;
|
|
7
13
|
}
|
|
8
14
|
export declare const VStack: import("react").ForwardRefExoticComponent<VStackProps & import("react").RefAttributes<View>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/VStack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,8FAgBlB,CAAC"}
|
|
1
|
+
{"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/VStack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,8FAgBlB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { Switch as RNSwitch, View } from 'react-native';
|
|
|
2
2
|
import { type ISwitchProps } from '@cdx-ui/primitives';
|
|
3
3
|
export interface SwitchProps extends ISwitchProps {
|
|
4
4
|
/**
|
|
5
|
-
* Track and thumb size.
|
|
5
|
+
* Track and thumb size on web. iOS and Android render the system switch, so `size` has no effect.
|
|
6
6
|
* @default 'md'
|
|
7
7
|
*/
|
|
8
8
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -14,8 +14,8 @@ export interface TabsListProps extends ITabsListProps {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
/**
|
|
16
16
|
* When `orientation="horizontal"`, scroll tab triggers if they overflow the list width.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* On native, selecting a tab scrolls it into view. On web, edge fades and paging
|
|
18
|
+
* controls appear when more tabs are off-screen. Vertical lists do not scroll.
|
|
19
19
|
* @default true
|
|
20
20
|
*/
|
|
21
21
|
scrollable?: boolean;
|
|
@@ -3,6 +3,7 @@ import { type IInputFieldProps } from '@cdx-ui/primitives';
|
|
|
3
3
|
import { type TextareaVariantProps } from './styles';
|
|
4
4
|
export type TextareaResize = 'none' | 'vertical';
|
|
5
5
|
export interface TextareaProps extends Omit<TextInputProps, 'multiline' | 'children' | 'style'>, IInputFieldProps, TextareaVariantProps {
|
|
6
|
+
/** Additional Tailwind classes, applied to the root shell rather than the inner field. */
|
|
6
7
|
className?: string;
|
|
7
8
|
placeholderTextColorClassName?: string;
|
|
8
9
|
/** Initial / minimum visible rows. Defaults to 2 on web and 8 on native. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Textarea/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,KAAK,oBAAoB,EAI1B,MAAM,UAAU,CAAC;AAelB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC;AAEjD,MAAM,WAAW,aACf,SACE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC,EACxD,gBAAgB,EAChB,oBAAoB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,QAAQ,qGAkHpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Textarea/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,KAAK,oBAAoB,EAI1B,MAAM,UAAU,CAAC;AAelB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC;AAEjD,MAAM,WAAW,aACf,SACE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC,EACxD,gBAAgB,EAChB,oBAAoB;IACtB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,QAAQ,qGAkHpB,CAAC"}
|
|
@@ -17,17 +17,60 @@ import { type TileGroupVariantProps, type TileVariantProps } from './styles';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface TileGroupSingleProps extends ITileGroupSingleProps, TileGroupVariantProps {
|
|
19
19
|
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Layout axis. `row` places tiles side by side.
|
|
22
|
+
* @default 'column'
|
|
23
|
+
* @remarks `'column' | 'row'`
|
|
24
|
+
* @fumadocsType `'column' | 'row'`
|
|
25
|
+
*/
|
|
26
|
+
direction?: 'column' | 'row' | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Gap between tiles. `none` removes it so rows touch.
|
|
29
|
+
* @default 'default'
|
|
30
|
+
* @remarks `'default' | 'none'`
|
|
31
|
+
* @fumadocsType `'default' | 'none'`
|
|
32
|
+
*/
|
|
33
|
+
spacing?: 'default' | 'none' | null | undefined;
|
|
20
34
|
/** Visual shape inherited by child `Tile`s. Per-tile `shape` overrides this. */
|
|
21
35
|
shape?: TileVariantProps['shape'];
|
|
22
36
|
}
|
|
23
37
|
export interface TileGroupMultipleProps extends ITileGroupMultipleProps, TileGroupVariantProps {
|
|
24
38
|
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Layout axis. `row` places tiles side by side.
|
|
41
|
+
* @default 'column'
|
|
42
|
+
* @remarks `'column' | 'row'`
|
|
43
|
+
* @fumadocsType `'column' | 'row'`
|
|
44
|
+
*/
|
|
45
|
+
direction?: 'column' | 'row' | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Gap between tiles. `none` removes it so rows touch.
|
|
48
|
+
* @default 'default'
|
|
49
|
+
* @remarks `'default' | 'none'`
|
|
50
|
+
* @fumadocsType `'default' | 'none'`
|
|
51
|
+
*/
|
|
52
|
+
spacing?: 'default' | 'none' | null | undefined;
|
|
25
53
|
/** Visual shape inherited by child `Tile`s. Per-tile `shape` overrides this. */
|
|
26
54
|
shape?: TileVariantProps['shape'];
|
|
27
55
|
}
|
|
28
56
|
export type TileGroupProps = TileGroupSingleProps | TileGroupMultipleProps;
|
|
29
57
|
declare const TileGroup: import("react").ForwardRefExoticComponent<TileGroupProps & import("react").RefAttributes<View>>;
|
|
30
58
|
export interface TileProps extends ITileProps, TileVariantProps {
|
|
59
|
+
/**
|
|
60
|
+
* Visual shape. Overrides the shape inherited from `Tile.Group`.
|
|
61
|
+
* `card` is a bordered surface; `flat` is a borderless row.
|
|
62
|
+
* @default 'card'
|
|
63
|
+
* @remarks `'card' | 'flat'`
|
|
64
|
+
* @fumadocsType `'card' | 'flat'`
|
|
65
|
+
*/
|
|
66
|
+
shape?: 'card' | 'flat' | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Renders a bottom border. Omit it on the last row of a tight list.
|
|
69
|
+
* @default false
|
|
70
|
+
* @remarks `boolean`
|
|
71
|
+
* @fumadocsType `boolean`
|
|
72
|
+
*/
|
|
73
|
+
showSeparator?: boolean | null | undefined;
|
|
31
74
|
className?: string;
|
|
32
75
|
}
|
|
33
76
|
declare const TileRoot: import("react").ForwardRefExoticComponent<TileProps & import("react").RefAttributes<View>>;
|
|
@@ -44,6 +87,11 @@ declare const TileContent: import("react").ForwardRefExoticComponent<TileContent
|
|
|
44
87
|
export interface TileTitleProps extends TextProps {
|
|
45
88
|
asChild?: boolean;
|
|
46
89
|
className?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Maximum lines before the title truncates.
|
|
92
|
+
* @default 1
|
|
93
|
+
*/
|
|
94
|
+
numberOfLines?: number;
|
|
47
95
|
}
|
|
48
96
|
declare const TileTitle: import("react").ForwardRefExoticComponent<TileTitleProps & import("react").RefAttributes<Text>>;
|
|
49
97
|
export interface TileDescriptionProps extends TextProps {
|
|
@@ -54,6 +102,7 @@ declare const TileDescription: import("react").ForwardRefExoticComponent<TileDes
|
|
|
54
102
|
export interface TileIndicatorProps extends ITileIndicatorProps {
|
|
55
103
|
asChild?: boolean;
|
|
56
104
|
className?: string;
|
|
105
|
+
/** Replaces the default radio or checkbox visual when provided. */
|
|
57
106
|
children?: ReactNode;
|
|
58
107
|
}
|
|
59
108
|
declare const TileIndicator: import("react").ForwardRefExoticComponent<TileIndicatorProps & import("react").RefAttributes<View>>;
|