@xaui/native 0.9.1-alpha.38 → 0.9.1-alpha.39
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/dist/chunk-2EGR4LWD.js +145 -0
- package/dist/chunk-37L7YGZV.cjs +425 -0
- package/dist/chunk-64MXEVT3.js +66 -0
- package/dist/{chunk-RAWGK2XK.cjs → chunk-76XDVA24.cjs} +43 -133
- package/dist/{chunk-Q3MQ7S2D.cjs → chunk-7KLBTMXV.cjs} +6 -4
- package/dist/chunk-EKS3W46M.cjs +66 -0
- package/dist/{chunk-ZF6KIHXH.js → chunk-GJSFKH4L.js} +15 -20
- package/dist/{chunk-ZNZ7HVRW.js → chunk-JKP4TPIL.js} +51 -217
- package/dist/chunk-LUPCPLND.cjs +145 -0
- package/dist/chunk-XAFP5JLK.js +425 -0
- package/dist/components/accordion/index.cjs +3 -2
- package/dist/components/accordion/index.js +2 -1
- package/dist/components/badge/index.d.cts +1 -1
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/popover/index.cjs +37 -0
- package/dist/components/popover/index.d.cts +254 -0
- package/dist/components/popover/index.d.ts +254 -0
- package/dist/components/popover/index.js +37 -0
- package/dist/components/select/index.cjs +4 -2
- package/dist/components/select/index.d.cts +14 -25
- package/dist/components/select/index.d.ts +14 -25
- package/dist/components/select/index.js +3 -1
- package/dist/index.cjs +42 -5
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +44 -7
- package/dist/placement-DHa0Rrh1.d.cts +38 -0
- package/dist/placement-DHa0Rrh1.d.ts +38 -0
- package/dist/system/index.cjs +16 -2
- package/dist/system/index.d.cts +38 -2
- package/dist/system/index.d.ts +38 -2
- package/dist/system/index.js +15 -1
- package/package.json +11 -1
- /package/dist/{chunk-OJCCV65P.cjs → chunk-GGW43Q37.cjs} +0 -0
- /package/dist/{chunk-MESKS6AI.js → chunk-WHJTBTYM.js} +0 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { StyleProp, ViewStyle, TextStyle, PressableProps, ViewProps, TextProps, View, Text } from 'react-native';
|
|
5
|
+
import { V as ViewStyleProps, T as TextStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
6
|
+
import { R as RadiusKey } from '../../theme.type-C2gNHpEx.cjs';
|
|
7
|
+
import { P as Placement, A as Align, a as AnchoredWidth, I as Insets, b as Anchor } from '../../placement-DHa0Rrh1.cjs';
|
|
8
|
+
import { R as Recipe, a as StyleFn } from '../../create-recipe-dC7wMfnj.cjs';
|
|
9
|
+
|
|
10
|
+
type PopoverSlot = 'trigger' | 'overlay' | 'content' | 'title' | 'description';
|
|
11
|
+
type PopoverPlacement = Placement;
|
|
12
|
+
type PopoverAlign = Align;
|
|
13
|
+
type PopoverWidth = AnchoredWidth;
|
|
14
|
+
type PopoverInsets = Insets;
|
|
15
|
+
type PopoverAnchor = Anchor;
|
|
16
|
+
type PopoverOwnProps = {
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
radius?: RadiusKey;
|
|
19
|
+
/** Controlled. Leave unset and the root owns it. */
|
|
20
|
+
isOpen?: boolean;
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
23
|
+
isDisabled?: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The root renders **no node**. It is state and resolved style around a trigger and a
|
|
27
|
+
* panel, and the trigger is whatever the caller put in it — which is why `ref`, `style`
|
|
28
|
+
* and the a11y props are on `Popover.Trigger` rather than here.
|
|
29
|
+
*/
|
|
30
|
+
type PopoverProps = PopoverOwnProps;
|
|
31
|
+
type PopoverTriggerOwnProps = {
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
asChild?: boolean;
|
|
34
|
+
};
|
|
35
|
+
type PopoverTriggerProps = PopoverTriggerOwnProps & Omit<PressableProps, keyof PopoverTriggerOwnProps> & Omit<ViewStyleProps, keyof PopoverTriggerOwnProps | keyof PressableProps>;
|
|
36
|
+
type PopoverOverlayOwnProps = {
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
/** Pressing the backdrop closes the panel. Set false and only a `Close` closes it. */
|
|
39
|
+
isDismissable?: boolean;
|
|
40
|
+
};
|
|
41
|
+
type PopoverOverlayProps = PopoverOverlayOwnProps & Omit<ViewProps, keyof PopoverOverlayOwnProps> & Omit<ViewStyleProps, keyof PopoverOverlayOwnProps | keyof ViewProps>;
|
|
42
|
+
type PopoverContentOwnProps = {
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
placement?: PopoverPlacement;
|
|
45
|
+
align?: PopoverAlign;
|
|
46
|
+
width?: PopoverWidth;
|
|
47
|
+
/** Distance from the trigger, in points. */
|
|
48
|
+
offset?: number;
|
|
49
|
+
/** Shift along the alignment axis, in points. */
|
|
50
|
+
alignOffset?: number;
|
|
51
|
+
/** Flip to the opposite side when the chosen one does not fit. */
|
|
52
|
+
avoidCollisions?: boolean;
|
|
53
|
+
insets?: PopoverInsets;
|
|
54
|
+
};
|
|
55
|
+
type PopoverContentProps = PopoverContentOwnProps & Omit<ViewProps, keyof PopoverContentOwnProps> & Omit<ViewStyleProps, keyof PopoverContentOwnProps | keyof ViewProps>;
|
|
56
|
+
type PopoverTextOwnProps = {
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
};
|
|
59
|
+
type PopoverTitleProps = PopoverTextOwnProps & Omit<TextProps, keyof PopoverTextOwnProps> & Omit<TextStyleProps, keyof PopoverTextOwnProps | keyof TextProps>;
|
|
60
|
+
type PopoverDescriptionProps = PopoverTitleProps;
|
|
61
|
+
type PopoverCloseOwnProps = {
|
|
62
|
+
children?: ReactNode;
|
|
63
|
+
asChild?: boolean;
|
|
64
|
+
};
|
|
65
|
+
type PopoverCloseProps = PopoverCloseOwnProps & Omit<PressableProps, keyof PopoverCloseOwnProps> & Omit<ViewStyleProps, keyof PopoverCloseOwnProps | keyof PressableProps>;
|
|
66
|
+
/** R5 — resolved style ids and the state the slots read. */
|
|
67
|
+
type PopoverContextValue = {
|
|
68
|
+
triggerStyle: StyleProp<ViewStyle>;
|
|
69
|
+
overlayStyle: StyleProp<ViewStyle>;
|
|
70
|
+
contentStyle: StyleProp<ViewStyle>;
|
|
71
|
+
titleStyle: StyleProp<TextStyle>;
|
|
72
|
+
descriptionStyle: StyleProp<TextStyle>;
|
|
73
|
+
isOpen: boolean;
|
|
74
|
+
isDisabled: boolean;
|
|
75
|
+
open: () => void;
|
|
76
|
+
close: () => void;
|
|
77
|
+
toggle: () => void;
|
|
78
|
+
/** The trigger publishes its measured rectangle here; the content positions off it. */
|
|
79
|
+
anchor: PopoverAnchor | null;
|
|
80
|
+
setAnchor: (anchor: PopoverAnchor) => void;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* A panel anchored to whatever opened it.
|
|
85
|
+
*
|
|
86
|
+
* ```tsx
|
|
87
|
+
* <Popover>
|
|
88
|
+
* <Popover.Trigger>
|
|
89
|
+
* <Button>Détails</Button>
|
|
90
|
+
* </Popover.Trigger>
|
|
91
|
+
* <Popover.Overlay />
|
|
92
|
+
* <Popover.Content placement="top">
|
|
93
|
+
* <Popover.Title>Livraison</Popover.Title>
|
|
94
|
+
* <Popover.Description>Sous trois jours ouvrés.</Popover.Description>
|
|
95
|
+
* </Popover.Content>
|
|
96
|
+
* </Popover>
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* **The root renders no node.** It holds one piece of state and the styles the slots read.
|
|
100
|
+
* `Popover.Overlay` and `Popover.Content` render into the nearest `PortalHost` rather than
|
|
101
|
+
* where they are written, so their place in the JSX says when they exist, not where they
|
|
102
|
+
* appear.
|
|
103
|
+
*
|
|
104
|
+
* This is the component the `Select` was written before. The anchored positioning, the
|
|
105
|
+
* measuring pass and the entrance keyframes are shared between the two — `Menu`, `SubMenu`
|
|
106
|
+
* and `Tooltip` read the same three.
|
|
107
|
+
*/
|
|
108
|
+
declare function Popover$1({ children, radius, isOpen: controlledOpen, defaultOpen, onOpenChange, isDisabled, }: PopoverProps): react.JSX.Element;
|
|
109
|
+
declare namespace Popover$1 {
|
|
110
|
+
var displayName: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Anything that closes the panel. It renders no glyph of its own: a popover's dismissal is
|
|
115
|
+
* usually a `Button` saying "Compris", not a cross in a corner — the `Overlay` is what
|
|
116
|
+
* takes the press outside, and `system/close-button` is there for the cross.
|
|
117
|
+
*/
|
|
118
|
+
declare const PopoverClose: react.ForwardRefExoticComponent<{
|
|
119
|
+
children?: react.ReactNode;
|
|
120
|
+
asChild?: boolean;
|
|
121
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
122
|
+
children?: react.ReactNode;
|
|
123
|
+
asChild?: boolean;
|
|
124
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The panel. It renders into the nearest `PortalHost`, so it escapes the clipping and the
|
|
128
|
+
* stacking of whatever container held the trigger.
|
|
129
|
+
*
|
|
130
|
+
* Its width defaults to `content-fit` rather than the `Select`'s `trigger`: a select's
|
|
131
|
+
* list belongs to the field it drops out of, and a popover belongs to nothing — matching
|
|
132
|
+
* the width of a word or an icon would give it no room at all.
|
|
133
|
+
*
|
|
134
|
+
* `content-fit` stops at a **measure** rather than at the screen. A paragraph always wants
|
|
135
|
+
* more room than it has, so a panel bounded only by the edges is a full-width panel the
|
|
136
|
+
* moment it holds a sentence — and a popover is an aside, not a sheet. Say `width` to
|
|
137
|
+
* override it, in points or `'trigger'`.
|
|
138
|
+
*/
|
|
139
|
+
declare const PopoverContent: react.ForwardRefExoticComponent<{
|
|
140
|
+
children?: react.ReactNode;
|
|
141
|
+
placement?: PopoverPlacement;
|
|
142
|
+
align?: PopoverAlign;
|
|
143
|
+
width?: PopoverWidth;
|
|
144
|
+
offset?: number;
|
|
145
|
+
alignOffset?: number;
|
|
146
|
+
avoidCollisions?: boolean;
|
|
147
|
+
insets?: PopoverInsets;
|
|
148
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
149
|
+
children?: react.ReactNode;
|
|
150
|
+
placement?: PopoverPlacement;
|
|
151
|
+
align?: PopoverAlign;
|
|
152
|
+
width?: PopoverWidth;
|
|
153
|
+
offset?: number;
|
|
154
|
+
alignOffset?: number;
|
|
155
|
+
avoidCollisions?: boolean;
|
|
156
|
+
insets?: PopoverInsets;
|
|
157
|
+
}> & Omit<ViewStyleProps, "width" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "offset" | "alignOffset" | "insets" | "placement" | "avoidCollisions" | "align"> & react.RefAttributes<View>>;
|
|
158
|
+
|
|
159
|
+
/** The sentence under the heading. It wraps — that is what it exists to carry. */
|
|
160
|
+
declare const PopoverDescription: react.ForwardRefExoticComponent<{
|
|
161
|
+
children?: react.ReactNode;
|
|
162
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The backdrop, and what closes the panel on a press outside it.
|
|
166
|
+
*
|
|
167
|
+
* **Optional, and that is the point.** Written, it captures the press outside and dims
|
|
168
|
+
* nothing unless a `backgroundColor` says so; omitted, the panel has no backdrop and a
|
|
169
|
+
* `Popover.Close` or the caller's own state is what closes it.
|
|
170
|
+
*/
|
|
171
|
+
declare const PopoverOverlay: react.ForwardRefExoticComponent<{
|
|
172
|
+
children?: react.ReactNode;
|
|
173
|
+
isDismissable?: boolean;
|
|
174
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
175
|
+
children?: react.ReactNode;
|
|
176
|
+
isDismissable?: boolean;
|
|
177
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<View>>;
|
|
178
|
+
|
|
179
|
+
/** The panel's heading. A `header` for a screen reader, so the panel announces as one. */
|
|
180
|
+
declare const PopoverTitle: react.ForwardRefExoticComponent<{
|
|
181
|
+
children?: react.ReactNode;
|
|
182
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* What opens the panel, and the rectangle it is anchored to.
|
|
186
|
+
*
|
|
187
|
+
* It paints nothing of its own: a popover's trigger is usually a `Button`, an `Icon` or a
|
|
188
|
+
* word in a sentence, and giving it a surface would put a second box around one of those.
|
|
189
|
+
* `asChild` is the normal way to write it.
|
|
190
|
+
*/
|
|
191
|
+
declare const PopoverTrigger: react.ForwardRefExoticComponent<{
|
|
192
|
+
children?: react.ReactNode;
|
|
193
|
+
asChild?: boolean;
|
|
194
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
195
|
+
children?: react.ReactNode;
|
|
196
|
+
asChild?: boolean;
|
|
197
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
198
|
+
|
|
199
|
+
declare const usePopover: () => PopoverContextValue;
|
|
200
|
+
|
|
201
|
+
declare const popoverRecipe: Recipe<"title" | "overlay" | "trigger" | "content" | "description", "default", {
|
|
202
|
+
readonly radius: Record<RadiusKey, StyleFn<"content">>;
|
|
203
|
+
}>;
|
|
204
|
+
|
|
205
|
+
declare const Popover: typeof Popover$1 & {
|
|
206
|
+
Trigger: react.ForwardRefExoticComponent<{
|
|
207
|
+
children?: react.ReactNode;
|
|
208
|
+
asChild?: boolean;
|
|
209
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
210
|
+
children?: react.ReactNode;
|
|
211
|
+
asChild?: boolean;
|
|
212
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
213
|
+
Overlay: react.ForwardRefExoticComponent<{
|
|
214
|
+
children?: react.ReactNode;
|
|
215
|
+
isDismissable?: boolean;
|
|
216
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
217
|
+
children?: react.ReactNode;
|
|
218
|
+
isDismissable?: boolean;
|
|
219
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<react_native.View>>;
|
|
220
|
+
Content: react.ForwardRefExoticComponent<{
|
|
221
|
+
children?: react.ReactNode;
|
|
222
|
+
placement?: PopoverPlacement;
|
|
223
|
+
align?: PopoverAlign;
|
|
224
|
+
width?: PopoverWidth;
|
|
225
|
+
offset?: number;
|
|
226
|
+
alignOffset?: number;
|
|
227
|
+
avoidCollisions?: boolean;
|
|
228
|
+
insets?: PopoverInsets;
|
|
229
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
230
|
+
children?: react.ReactNode;
|
|
231
|
+
placement?: PopoverPlacement;
|
|
232
|
+
align?: PopoverAlign;
|
|
233
|
+
width?: PopoverWidth;
|
|
234
|
+
offset?: number;
|
|
235
|
+
alignOffset?: number;
|
|
236
|
+
avoidCollisions?: boolean;
|
|
237
|
+
insets?: PopoverInsets;
|
|
238
|
+
}> & Omit<ViewStyleProps, "width" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "offset" | "alignOffset" | "insets" | "placement" | "avoidCollisions" | "align"> & react.RefAttributes<react_native.View>>;
|
|
239
|
+
Title: react.ForwardRefExoticComponent<{
|
|
240
|
+
children?: react.ReactNode;
|
|
241
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
242
|
+
Description: react.ForwardRefExoticComponent<{
|
|
243
|
+
children?: react.ReactNode;
|
|
244
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
245
|
+
Close: react.ForwardRefExoticComponent<{
|
|
246
|
+
children?: react.ReactNode;
|
|
247
|
+
asChild?: boolean;
|
|
248
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
249
|
+
children?: react.ReactNode;
|
|
250
|
+
asChild?: boolean;
|
|
251
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export { Popover, type PopoverAlign, type PopoverAnchor, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverContextValue, PopoverDescription, type PopoverDescriptionProps, type PopoverInsets, PopoverOverlay, type PopoverOverlayProps, type PopoverPlacement, type PopoverProps, Popover$1 as PopoverRoot, type PopoverSlot, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type PopoverWidth, popoverRecipe, usePopover };
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { StyleProp, ViewStyle, TextStyle, PressableProps, ViewProps, TextProps, View, Text } from 'react-native';
|
|
5
|
+
import { V as ViewStyleProps, T as TextStyleProps } from '../../style-props.type-CfnoGEP7.js';
|
|
6
|
+
import { R as RadiusKey } from '../../theme.type-C2gNHpEx.js';
|
|
7
|
+
import { P as Placement, A as Align, a as AnchoredWidth, I as Insets, b as Anchor } from '../../placement-DHa0Rrh1.js';
|
|
8
|
+
import { R as Recipe, a as StyleFn } from '../../create-recipe-BdVd2ffi.js';
|
|
9
|
+
|
|
10
|
+
type PopoverSlot = 'trigger' | 'overlay' | 'content' | 'title' | 'description';
|
|
11
|
+
type PopoverPlacement = Placement;
|
|
12
|
+
type PopoverAlign = Align;
|
|
13
|
+
type PopoverWidth = AnchoredWidth;
|
|
14
|
+
type PopoverInsets = Insets;
|
|
15
|
+
type PopoverAnchor = Anchor;
|
|
16
|
+
type PopoverOwnProps = {
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
radius?: RadiusKey;
|
|
19
|
+
/** Controlled. Leave unset and the root owns it. */
|
|
20
|
+
isOpen?: boolean;
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
23
|
+
isDisabled?: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The root renders **no node**. It is state and resolved style around a trigger and a
|
|
27
|
+
* panel, and the trigger is whatever the caller put in it — which is why `ref`, `style`
|
|
28
|
+
* and the a11y props are on `Popover.Trigger` rather than here.
|
|
29
|
+
*/
|
|
30
|
+
type PopoverProps = PopoverOwnProps;
|
|
31
|
+
type PopoverTriggerOwnProps = {
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
asChild?: boolean;
|
|
34
|
+
};
|
|
35
|
+
type PopoverTriggerProps = PopoverTriggerOwnProps & Omit<PressableProps, keyof PopoverTriggerOwnProps> & Omit<ViewStyleProps, keyof PopoverTriggerOwnProps | keyof PressableProps>;
|
|
36
|
+
type PopoverOverlayOwnProps = {
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
/** Pressing the backdrop closes the panel. Set false and only a `Close` closes it. */
|
|
39
|
+
isDismissable?: boolean;
|
|
40
|
+
};
|
|
41
|
+
type PopoverOverlayProps = PopoverOverlayOwnProps & Omit<ViewProps, keyof PopoverOverlayOwnProps> & Omit<ViewStyleProps, keyof PopoverOverlayOwnProps | keyof ViewProps>;
|
|
42
|
+
type PopoverContentOwnProps = {
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
placement?: PopoverPlacement;
|
|
45
|
+
align?: PopoverAlign;
|
|
46
|
+
width?: PopoverWidth;
|
|
47
|
+
/** Distance from the trigger, in points. */
|
|
48
|
+
offset?: number;
|
|
49
|
+
/** Shift along the alignment axis, in points. */
|
|
50
|
+
alignOffset?: number;
|
|
51
|
+
/** Flip to the opposite side when the chosen one does not fit. */
|
|
52
|
+
avoidCollisions?: boolean;
|
|
53
|
+
insets?: PopoverInsets;
|
|
54
|
+
};
|
|
55
|
+
type PopoverContentProps = PopoverContentOwnProps & Omit<ViewProps, keyof PopoverContentOwnProps> & Omit<ViewStyleProps, keyof PopoverContentOwnProps | keyof ViewProps>;
|
|
56
|
+
type PopoverTextOwnProps = {
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
};
|
|
59
|
+
type PopoverTitleProps = PopoverTextOwnProps & Omit<TextProps, keyof PopoverTextOwnProps> & Omit<TextStyleProps, keyof PopoverTextOwnProps | keyof TextProps>;
|
|
60
|
+
type PopoverDescriptionProps = PopoverTitleProps;
|
|
61
|
+
type PopoverCloseOwnProps = {
|
|
62
|
+
children?: ReactNode;
|
|
63
|
+
asChild?: boolean;
|
|
64
|
+
};
|
|
65
|
+
type PopoverCloseProps = PopoverCloseOwnProps & Omit<PressableProps, keyof PopoverCloseOwnProps> & Omit<ViewStyleProps, keyof PopoverCloseOwnProps | keyof PressableProps>;
|
|
66
|
+
/** R5 — resolved style ids and the state the slots read. */
|
|
67
|
+
type PopoverContextValue = {
|
|
68
|
+
triggerStyle: StyleProp<ViewStyle>;
|
|
69
|
+
overlayStyle: StyleProp<ViewStyle>;
|
|
70
|
+
contentStyle: StyleProp<ViewStyle>;
|
|
71
|
+
titleStyle: StyleProp<TextStyle>;
|
|
72
|
+
descriptionStyle: StyleProp<TextStyle>;
|
|
73
|
+
isOpen: boolean;
|
|
74
|
+
isDisabled: boolean;
|
|
75
|
+
open: () => void;
|
|
76
|
+
close: () => void;
|
|
77
|
+
toggle: () => void;
|
|
78
|
+
/** The trigger publishes its measured rectangle here; the content positions off it. */
|
|
79
|
+
anchor: PopoverAnchor | null;
|
|
80
|
+
setAnchor: (anchor: PopoverAnchor) => void;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* A panel anchored to whatever opened it.
|
|
85
|
+
*
|
|
86
|
+
* ```tsx
|
|
87
|
+
* <Popover>
|
|
88
|
+
* <Popover.Trigger>
|
|
89
|
+
* <Button>Détails</Button>
|
|
90
|
+
* </Popover.Trigger>
|
|
91
|
+
* <Popover.Overlay />
|
|
92
|
+
* <Popover.Content placement="top">
|
|
93
|
+
* <Popover.Title>Livraison</Popover.Title>
|
|
94
|
+
* <Popover.Description>Sous trois jours ouvrés.</Popover.Description>
|
|
95
|
+
* </Popover.Content>
|
|
96
|
+
* </Popover>
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* **The root renders no node.** It holds one piece of state and the styles the slots read.
|
|
100
|
+
* `Popover.Overlay` and `Popover.Content` render into the nearest `PortalHost` rather than
|
|
101
|
+
* where they are written, so their place in the JSX says when they exist, not where they
|
|
102
|
+
* appear.
|
|
103
|
+
*
|
|
104
|
+
* This is the component the `Select` was written before. The anchored positioning, the
|
|
105
|
+
* measuring pass and the entrance keyframes are shared between the two — `Menu`, `SubMenu`
|
|
106
|
+
* and `Tooltip` read the same three.
|
|
107
|
+
*/
|
|
108
|
+
declare function Popover$1({ children, radius, isOpen: controlledOpen, defaultOpen, onOpenChange, isDisabled, }: PopoverProps): react.JSX.Element;
|
|
109
|
+
declare namespace Popover$1 {
|
|
110
|
+
var displayName: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Anything that closes the panel. It renders no glyph of its own: a popover's dismissal is
|
|
115
|
+
* usually a `Button` saying "Compris", not a cross in a corner — the `Overlay` is what
|
|
116
|
+
* takes the press outside, and `system/close-button` is there for the cross.
|
|
117
|
+
*/
|
|
118
|
+
declare const PopoverClose: react.ForwardRefExoticComponent<{
|
|
119
|
+
children?: react.ReactNode;
|
|
120
|
+
asChild?: boolean;
|
|
121
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
122
|
+
children?: react.ReactNode;
|
|
123
|
+
asChild?: boolean;
|
|
124
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The panel. It renders into the nearest `PortalHost`, so it escapes the clipping and the
|
|
128
|
+
* stacking of whatever container held the trigger.
|
|
129
|
+
*
|
|
130
|
+
* Its width defaults to `content-fit` rather than the `Select`'s `trigger`: a select's
|
|
131
|
+
* list belongs to the field it drops out of, and a popover belongs to nothing — matching
|
|
132
|
+
* the width of a word or an icon would give it no room at all.
|
|
133
|
+
*
|
|
134
|
+
* `content-fit` stops at a **measure** rather than at the screen. A paragraph always wants
|
|
135
|
+
* more room than it has, so a panel bounded only by the edges is a full-width panel the
|
|
136
|
+
* moment it holds a sentence — and a popover is an aside, not a sheet. Say `width` to
|
|
137
|
+
* override it, in points or `'trigger'`.
|
|
138
|
+
*/
|
|
139
|
+
declare const PopoverContent: react.ForwardRefExoticComponent<{
|
|
140
|
+
children?: react.ReactNode;
|
|
141
|
+
placement?: PopoverPlacement;
|
|
142
|
+
align?: PopoverAlign;
|
|
143
|
+
width?: PopoverWidth;
|
|
144
|
+
offset?: number;
|
|
145
|
+
alignOffset?: number;
|
|
146
|
+
avoidCollisions?: boolean;
|
|
147
|
+
insets?: PopoverInsets;
|
|
148
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
149
|
+
children?: react.ReactNode;
|
|
150
|
+
placement?: PopoverPlacement;
|
|
151
|
+
align?: PopoverAlign;
|
|
152
|
+
width?: PopoverWidth;
|
|
153
|
+
offset?: number;
|
|
154
|
+
alignOffset?: number;
|
|
155
|
+
avoidCollisions?: boolean;
|
|
156
|
+
insets?: PopoverInsets;
|
|
157
|
+
}> & Omit<ViewStyleProps, "width" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "offset" | "alignOffset" | "insets" | "placement" | "avoidCollisions" | "align"> & react.RefAttributes<View>>;
|
|
158
|
+
|
|
159
|
+
/** The sentence under the heading. It wraps — that is what it exists to carry. */
|
|
160
|
+
declare const PopoverDescription: react.ForwardRefExoticComponent<{
|
|
161
|
+
children?: react.ReactNode;
|
|
162
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The backdrop, and what closes the panel on a press outside it.
|
|
166
|
+
*
|
|
167
|
+
* **Optional, and that is the point.** Written, it captures the press outside and dims
|
|
168
|
+
* nothing unless a `backgroundColor` says so; omitted, the panel has no backdrop and a
|
|
169
|
+
* `Popover.Close` or the caller's own state is what closes it.
|
|
170
|
+
*/
|
|
171
|
+
declare const PopoverOverlay: react.ForwardRefExoticComponent<{
|
|
172
|
+
children?: react.ReactNode;
|
|
173
|
+
isDismissable?: boolean;
|
|
174
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
175
|
+
children?: react.ReactNode;
|
|
176
|
+
isDismissable?: boolean;
|
|
177
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<View>>;
|
|
178
|
+
|
|
179
|
+
/** The panel's heading. A `header` for a screen reader, so the panel announces as one. */
|
|
180
|
+
declare const PopoverTitle: react.ForwardRefExoticComponent<{
|
|
181
|
+
children?: react.ReactNode;
|
|
182
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* What opens the panel, and the rectangle it is anchored to.
|
|
186
|
+
*
|
|
187
|
+
* It paints nothing of its own: a popover's trigger is usually a `Button`, an `Icon` or a
|
|
188
|
+
* word in a sentence, and giving it a surface would put a second box around one of those.
|
|
189
|
+
* `asChild` is the normal way to write it.
|
|
190
|
+
*/
|
|
191
|
+
declare const PopoverTrigger: react.ForwardRefExoticComponent<{
|
|
192
|
+
children?: react.ReactNode;
|
|
193
|
+
asChild?: boolean;
|
|
194
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
195
|
+
children?: react.ReactNode;
|
|
196
|
+
asChild?: boolean;
|
|
197
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
198
|
+
|
|
199
|
+
declare const usePopover: () => PopoverContextValue;
|
|
200
|
+
|
|
201
|
+
declare const popoverRecipe: Recipe<"title" | "overlay" | "trigger" | "content" | "description", "default", {
|
|
202
|
+
readonly radius: Record<RadiusKey, StyleFn<"content">>;
|
|
203
|
+
}>;
|
|
204
|
+
|
|
205
|
+
declare const Popover: typeof Popover$1 & {
|
|
206
|
+
Trigger: react.ForwardRefExoticComponent<{
|
|
207
|
+
children?: react.ReactNode;
|
|
208
|
+
asChild?: boolean;
|
|
209
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
210
|
+
children?: react.ReactNode;
|
|
211
|
+
asChild?: boolean;
|
|
212
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
213
|
+
Overlay: react.ForwardRefExoticComponent<{
|
|
214
|
+
children?: react.ReactNode;
|
|
215
|
+
isDismissable?: boolean;
|
|
216
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
217
|
+
children?: react.ReactNode;
|
|
218
|
+
isDismissable?: boolean;
|
|
219
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<react_native.View>>;
|
|
220
|
+
Content: react.ForwardRefExoticComponent<{
|
|
221
|
+
children?: react.ReactNode;
|
|
222
|
+
placement?: PopoverPlacement;
|
|
223
|
+
align?: PopoverAlign;
|
|
224
|
+
width?: PopoverWidth;
|
|
225
|
+
offset?: number;
|
|
226
|
+
alignOffset?: number;
|
|
227
|
+
avoidCollisions?: boolean;
|
|
228
|
+
insets?: PopoverInsets;
|
|
229
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
230
|
+
children?: react.ReactNode;
|
|
231
|
+
placement?: PopoverPlacement;
|
|
232
|
+
align?: PopoverAlign;
|
|
233
|
+
width?: PopoverWidth;
|
|
234
|
+
offset?: number;
|
|
235
|
+
alignOffset?: number;
|
|
236
|
+
avoidCollisions?: boolean;
|
|
237
|
+
insets?: PopoverInsets;
|
|
238
|
+
}> & Omit<ViewStyleProps, "width" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "offset" | "alignOffset" | "insets" | "placement" | "avoidCollisions" | "align"> & react.RefAttributes<react_native.View>>;
|
|
239
|
+
Title: react.ForwardRefExoticComponent<{
|
|
240
|
+
children?: react.ReactNode;
|
|
241
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
242
|
+
Description: react.ForwardRefExoticComponent<{
|
|
243
|
+
children?: react.ReactNode;
|
|
244
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
245
|
+
Close: react.ForwardRefExoticComponent<{
|
|
246
|
+
children?: react.ReactNode;
|
|
247
|
+
asChild?: boolean;
|
|
248
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
249
|
+
children?: react.ReactNode;
|
|
250
|
+
asChild?: boolean;
|
|
251
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export { Popover, type PopoverAlign, type PopoverAnchor, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverContextValue, PopoverDescription, type PopoverDescriptionProps, type PopoverInsets, PopoverOverlay, type PopoverOverlayProps, type PopoverPlacement, type PopoverProps, Popover$1 as PopoverRoot, type PopoverSlot, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type PopoverWidth, popoverRecipe, usePopover };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Popover,
|
|
3
|
+
Popover2,
|
|
4
|
+
PopoverClose,
|
|
5
|
+
PopoverContent,
|
|
6
|
+
PopoverDescription,
|
|
7
|
+
PopoverOverlay,
|
|
8
|
+
PopoverTitle,
|
|
9
|
+
PopoverTrigger,
|
|
10
|
+
popoverRecipe,
|
|
11
|
+
usePopover
|
|
12
|
+
} from "../../chunk-XAFP5JLK.js";
|
|
13
|
+
import "../../chunk-2EGR4LWD.js";
|
|
14
|
+
import "../../chunk-2PMXMKS5.js";
|
|
15
|
+
import "../../chunk-64MXEVT3.js";
|
|
16
|
+
import "../../chunk-NCTOTTVW.js";
|
|
17
|
+
import "../../chunk-F6W3JQ7K.js";
|
|
18
|
+
import "../../chunk-LIUO6D3D.js";
|
|
19
|
+
import "../../chunk-423RQBOX.js";
|
|
20
|
+
import "../../chunk-EGLLDKN6.js";
|
|
21
|
+
import "../../chunk-K72UDPVN.js";
|
|
22
|
+
import "../../chunk-36PRYGAM.js";
|
|
23
|
+
import "../../chunk-4GTAZM2C.js";
|
|
24
|
+
import "../../chunk-A3EGFI6T.js";
|
|
25
|
+
import "../../chunk-M63GFNKV.js";
|
|
26
|
+
export {
|
|
27
|
+
Popover2 as Popover,
|
|
28
|
+
PopoverClose,
|
|
29
|
+
PopoverContent,
|
|
30
|
+
PopoverDescription,
|
|
31
|
+
PopoverOverlay,
|
|
32
|
+
Popover as PopoverRoot,
|
|
33
|
+
PopoverTitle,
|
|
34
|
+
PopoverTrigger,
|
|
35
|
+
popoverRecipe,
|
|
36
|
+
usePopover
|
|
37
|
+
};
|