@hanzogui/dialog 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './Dialog'
@@ -0,0 +1,409 @@
1
+ import type { GetProps, GuiElement, ViewProps } from '@gui/core';
2
+ import type { DismissableProps } from '@gui/dismissable';
3
+ import type { FocusScopeProps } from '@gui/focus-scope';
4
+ import type { YStackProps } from '@gui/stacks';
5
+ import * as React from 'react';
6
+ export type DialogScopes = string;
7
+ type ScopedProps<P> = P & {
8
+ scope?: DialogScopes;
9
+ };
10
+ type DialogProps = ScopedProps<{
11
+ children?: React.ReactNode;
12
+ open?: boolean;
13
+ defaultOpen?: boolean;
14
+ /**
15
+ * When true, children never un-mount, otherwise they mount on open.
16
+ *
17
+ * @default false
18
+ */
19
+ keepChildrenMounted?: boolean;
20
+ onOpenChange?(open: boolean): void;
21
+ modal?: boolean;
22
+ /**
23
+ * Used to disable the remove scroll functionality when open
24
+ */
25
+ disableRemoveScroll?: boolean;
26
+ /**
27
+ * Called when the dialog open/close animation completes.
28
+ */
29
+ onAnimationComplete?: (info: {
30
+ open: boolean;
31
+ }) => void;
32
+ }>;
33
+ type NonNull<A> = Exclude<A, void | null>;
34
+ type DialogContextValue = {
35
+ forceMount?: boolean;
36
+ keepChildrenMounted?: boolean;
37
+ disableRemoveScroll?: boolean;
38
+ triggerRef: React.RefObject<GuiElement | null>;
39
+ contentRef: React.RefObject<GuiElement | null>;
40
+ contentId: string;
41
+ titleId: string;
42
+ descriptionId: string;
43
+ onOpenToggle(): void;
44
+ open: NonNull<DialogProps['open']>;
45
+ onOpenChange: NonNull<DialogProps['onOpenChange']>;
46
+ modal: NonNull<DialogProps['modal']>;
47
+ dialogScope: DialogScopes;
48
+ adaptScope: string;
49
+ onAnimationComplete?: DialogProps['onAnimationComplete'];
50
+ };
51
+ export declare const DialogContext: import("@gui/core").StyledContext<DialogContextValue>;
52
+ export declare const useDialogContext: (scope?: string) => DialogContextValue, DialogProvider: React.Provider<DialogContextValue> & React.ProviderExoticComponent<Partial<DialogContextValue> & {
53
+ children?: React.ReactNode;
54
+ scope?: string;
55
+ }>;
56
+ type DialogTriggerProps = ScopedProps<ViewProps>;
57
+ declare const DialogTrigger: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope"> & {
58
+ scope?: DialogScopes;
59
+ }, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & {
60
+ scope?: DialogScopes;
61
+ }, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
62
+ type DialogPortalProps = ScopedProps<YStackProps & {
63
+ /**
64
+ * Used to force mounting when more control is needed. Useful when
65
+ * controlling animation with React animation libraries.
66
+ */
67
+ forceMount?: boolean;
68
+ }>;
69
+ export declare const DialogPortalFrame: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
70
+ unstyled?: boolean | undefined;
71
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
72
+ fullscreen?: boolean | undefined;
73
+ }, import("@gui/core").StaticConfigPublic>;
74
+ declare const DialogPortal: React.ForwardRefExoticComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
75
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
76
+ fullscreen?: boolean | undefined;
77
+ }>, keyof import("@gui/stacks").StackVariants> & import("@gui/stacks").StackVariants & {
78
+ /**
79
+ * Used to force mounting when more control is needed. Useful when
80
+ * controlling animation with React animation libraries.
81
+ */
82
+ forceMount?: boolean;
83
+ } & {
84
+ scope?: DialogScopes;
85
+ } & React.RefAttributes<GuiElement>>;
86
+ /**
87
+ * exported for internal use with extractable()
88
+ */
89
+ export declare const DialogOverlayFrame: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
90
+ open?: boolean | undefined;
91
+ unstyled?: boolean | undefined;
92
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
93
+ fullscreen?: boolean | undefined;
94
+ }, import("@gui/core").StaticConfigPublic>;
95
+ export type DialogOverlayExtraProps = ScopedProps<{
96
+ /**
97
+ * Used to force mounting when more control is needed. Useful when
98
+ * controlling animation with React animation libraries.
99
+ */
100
+ forceMount?: boolean;
101
+ }>;
102
+ type DialogOverlayProps = YStackProps & DialogOverlayExtraProps;
103
+ declare const DialogOverlay: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
104
+ open?: boolean | undefined;
105
+ unstyled?: boolean | undefined;
106
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
107
+ fullscreen?: boolean | undefined;
108
+ }>, "scope" | "forceMount"> & {
109
+ /**
110
+ * Used to force mounting when more control is needed. Useful when
111
+ * controlling animation with React animation libraries.
112
+ */
113
+ forceMount?: boolean;
114
+ } & {
115
+ scope?: DialogScopes;
116
+ }, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & {
117
+ /**
118
+ * Used to force mounting when more control is needed. Useful when
119
+ * controlling animation with React animation libraries.
120
+ */
121
+ forceMount?: boolean;
122
+ } & {
123
+ scope?: DialogScopes;
124
+ }, import("@gui/core").StackStyleBase, {
125
+ open?: boolean | undefined;
126
+ unstyled?: boolean | undefined;
127
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
128
+ fullscreen?: boolean | undefined;
129
+ }, import("@gui/core").StaticConfigPublic>;
130
+ declare const DialogContentFrame: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
131
+ unstyled?: boolean | undefined;
132
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
133
+ fullscreen?: boolean | undefined;
134
+ transparent?: boolean | undefined;
135
+ size?: import("@gui/core").SizeTokens | undefined;
136
+ circular?: boolean | undefined;
137
+ elevate?: boolean | undefined;
138
+ bordered?: boolean | undefined;
139
+ chromeless?: boolean | "all" | undefined;
140
+ }, import("@gui/core").StaticConfigPublic>;
141
+ type DialogContentFrameProps = GetProps<typeof DialogContentFrame>;
142
+ type DialogContentExtraProps = ScopedProps<Omit<DialogContentTypeProps, 'context' | 'onPointerDownCapture'>>;
143
+ type DialogContentProps = DialogContentFrameProps & DialogContentExtraProps;
144
+ declare const DialogContent: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
145
+ unstyled?: boolean | undefined;
146
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
147
+ fullscreen?: boolean | undefined;
148
+ transparent?: boolean | undefined;
149
+ size?: import("@gui/core").SizeTokens | undefined;
150
+ circular?: boolean | undefined;
151
+ elevate?: boolean | undefined;
152
+ bordered?: boolean | undefined;
153
+ chromeless?: boolean | "all" | undefined;
154
+ }>, "theme" | "debug" | "children" | "id" | "style" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "hitSlop" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "elevationAndroid" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "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" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "elevation" | keyof import("@gui/core").StackStyleBase | "scope" | "fullscreen" | "transparent" | "size" | "circular" | "elevate" | "bordered" | "chromeless" | "disableOutsidePointerEvents" | "branches" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "forceUnmount" | "onBlurCapture" | "onFocusCapture" | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & {
155
+ unstyled?: boolean | undefined;
156
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
157
+ fullscreen?: boolean | undefined;
158
+ transparent?: boolean | undefined;
159
+ size?: import("@gui/core").SizeTokens | undefined;
160
+ circular?: boolean | undefined;
161
+ elevate?: boolean | undefined;
162
+ bordered?: boolean | undefined;
163
+ chromeless?: boolean | "all" | undefined;
164
+ } & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | "trapFocus" | "onOpenAutoFocus" | "onCloseAutoFocus"> & Omit<DialogContentTypeProps, "onPointerDownCapture" | "context"> & {
165
+ scope?: DialogScopes;
166
+ }, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogContentTypeProps, "onPointerDownCapture" | "context"> & {
167
+ scope?: DialogScopes;
168
+ }, import("@gui/core").StackStyleBase, {
169
+ unstyled?: boolean | undefined;
170
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
171
+ fullscreen?: boolean | undefined;
172
+ transparent?: boolean | undefined;
173
+ size?: import("@gui/core").SizeTokens | undefined;
174
+ circular?: boolean | undefined;
175
+ elevate?: boolean | undefined;
176
+ bordered?: boolean | undefined;
177
+ chromeless?: boolean | "all" | undefined;
178
+ }, import("@gui/core").StaticConfigPublic>;
179
+ type DialogContentTypeProps = DialogContentImplProps & {
180
+ context: DialogContextValue;
181
+ };
182
+ type DialogContentImplExtraProps = Omit<DismissableProps, 'onDismiss'> & {
183
+ /**
184
+ * When `true`, focus cannot escape the `Content` via keyboard,
185
+ * pointer, or a programmatic focus.
186
+ * @defaultValue false
187
+ */
188
+ trapFocus?: FocusScopeProps['trapped'];
189
+ /**
190
+ * Event handler called when auto-focusing on open.
191
+ * Can be prevented.
192
+ */
193
+ onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
194
+ /**
195
+ * Event handler called when auto-focusing on close.
196
+ * Can be prevented.
197
+ */
198
+ onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
199
+ context: DialogContextValue;
200
+ };
201
+ type DialogContentImplProps = DialogContentFrameProps & DialogContentImplExtraProps;
202
+ declare const DialogTitleFrame: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, import("@gui/core").GuiTextElement, import("@gui/core").TextNonStyleProps, import("@gui/core").TextStylePropsBase, {
203
+ unstyled?: boolean | undefined;
204
+ size?: import("@gui/core").FontSizeTokens | undefined;
205
+ }, import("@gui/core").StaticConfigPublic>;
206
+ type DialogTitleExtraProps = ScopedProps<{}>;
207
+ type DialogTitleProps = DialogTitleExtraProps & GetProps<typeof DialogTitleFrame>;
208
+ declare const DialogTitle: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").TextNonStyleProps, import("@gui/core").TextStylePropsBase, {
209
+ unstyled?: boolean | undefined;
210
+ size?: import("@gui/core").FontSizeTokens | undefined;
211
+ }>, "scope"> & {
212
+ scope?: DialogScopes;
213
+ }, import("@gui/core").GuiTextElement, import("@gui/core").TextNonStyleProps & {
214
+ scope?: DialogScopes;
215
+ }, import("@gui/core").TextStylePropsBase, {
216
+ unstyled?: boolean | undefined;
217
+ size?: import("@gui/core").FontSizeTokens | undefined;
218
+ }, import("@gui/core").StaticConfigPublic>;
219
+ declare const DialogDescriptionFrame: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, import("@gui/core").GuiTextElement, import("@gui/core").TextNonStyleProps, import("@gui/core").TextStylePropsBase, {
220
+ unstyled?: boolean | undefined;
221
+ size?: import("@gui/core").FontSizeTokens | undefined;
222
+ }, import("@gui/core").StaticConfigPublic>;
223
+ type DialogDescriptionExtraProps = ScopedProps<{}>;
224
+ type DialogDescriptionProps = DialogDescriptionExtraProps & GetProps<typeof DialogDescriptionFrame>;
225
+ declare const DialogDescription: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").TextNonStyleProps, import("@gui/core").TextStylePropsBase, {
226
+ unstyled?: boolean | undefined;
227
+ size?: import("@gui/core").FontSizeTokens | undefined;
228
+ }>, "scope"> & {
229
+ scope?: DialogScopes;
230
+ }, import("@gui/core").GuiTextElement, import("@gui/core").TextNonStyleProps & {
231
+ scope?: DialogScopes;
232
+ }, import("@gui/core").TextStylePropsBase, {
233
+ unstyled?: boolean | undefined;
234
+ size?: import("@gui/core").FontSizeTokens | undefined;
235
+ }, import("@gui/core").StaticConfigPublic>;
236
+ declare const DialogCloseFrame: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
237
+ export type DialogCloseExtraProps = ScopedProps<{
238
+ displayWhenAdapted?: boolean;
239
+ }>;
240
+ type DialogCloseProps = GetProps<typeof DialogCloseFrame> & DialogCloseExtraProps;
241
+ declare const DialogClose: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
242
+ displayWhenAdapted?: boolean;
243
+ } & {
244
+ scope?: DialogScopes;
245
+ }, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & {
246
+ displayWhenAdapted?: boolean;
247
+ } & {
248
+ scope?: DialogScopes;
249
+ }, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
250
+ declare const DialogWarningProvider: (props: {
251
+ contentName: string;
252
+ titleName: string;
253
+ docsSlug: string;
254
+ } & {
255
+ children: React.ReactNode;
256
+ }) => React.JSX.Element;
257
+ export type DialogHandle = {
258
+ open: (val: boolean) => void;
259
+ };
260
+ declare const Dialog: React.ForwardRefExoticComponent<{
261
+ children?: React.ReactNode;
262
+ open?: boolean;
263
+ defaultOpen?: boolean;
264
+ /**
265
+ * When true, children never un-mount, otherwise they mount on open.
266
+ *
267
+ * @default false
268
+ */
269
+ keepChildrenMounted?: boolean;
270
+ onOpenChange?(open: boolean): void;
271
+ modal?: boolean;
272
+ /**
273
+ * Used to disable the remove scroll functionality when open
274
+ */
275
+ disableRemoveScroll?: boolean;
276
+ /**
277
+ * Called when the dialog open/close animation completes.
278
+ */
279
+ onAnimationComplete?: (info: {
280
+ open: boolean;
281
+ }) => void;
282
+ } & {
283
+ scope?: DialogScopes;
284
+ } & React.RefAttributes<{
285
+ open: (val: boolean) => void;
286
+ }>> & {
287
+ Trigger: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope"> & {
288
+ scope?: DialogScopes;
289
+ }, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & {
290
+ scope?: DialogScopes;
291
+ }, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
292
+ Portal: React.ForwardRefExoticComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
293
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
294
+ fullscreen?: boolean | undefined;
295
+ }>, keyof import("@gui/stacks").StackVariants> & import("@gui/stacks").StackVariants & {
296
+ /**
297
+ * Used to force mounting when more control is needed. Useful when
298
+ * controlling animation with React animation libraries.
299
+ */
300
+ forceMount?: boolean;
301
+ } & {
302
+ scope?: DialogScopes;
303
+ } & React.RefAttributes<GuiElement>>;
304
+ Overlay: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
305
+ open?: boolean | undefined;
306
+ unstyled?: boolean | undefined;
307
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
308
+ fullscreen?: boolean | undefined;
309
+ }>, "scope" | "forceMount"> & {
310
+ /**
311
+ * Used to force mounting when more control is needed. Useful when
312
+ * controlling animation with React animation libraries.
313
+ */
314
+ forceMount?: boolean;
315
+ } & {
316
+ scope?: DialogScopes;
317
+ }, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & {
318
+ /**
319
+ * Used to force mounting when more control is needed. Useful when
320
+ * controlling animation with React animation libraries.
321
+ */
322
+ forceMount?: boolean;
323
+ } & {
324
+ scope?: DialogScopes;
325
+ }, import("@gui/core").StackStyleBase, {
326
+ open?: boolean | undefined;
327
+ unstyled?: boolean | undefined;
328
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
329
+ fullscreen?: boolean | undefined;
330
+ }, import("@gui/core").StaticConfigPublic>;
331
+ Content: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
332
+ unstyled?: boolean | undefined;
333
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
334
+ fullscreen?: boolean | undefined;
335
+ transparent?: boolean | undefined;
336
+ size?: import("@gui/core").SizeTokens | undefined;
337
+ circular?: boolean | undefined;
338
+ elevate?: boolean | undefined;
339
+ bordered?: boolean | undefined;
340
+ chromeless?: boolean | "all" | undefined;
341
+ }>, "theme" | "debug" | "children" | "id" | "style" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "hitSlop" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "elevationAndroid" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "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" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "elevation" | keyof import("@gui/core").StackStyleBase | "scope" | "fullscreen" | "transparent" | "size" | "circular" | "elevate" | "bordered" | "chromeless" | "disableOutsidePointerEvents" | "branches" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "forceUnmount" | "onBlurCapture" | "onFocusCapture" | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & {
342
+ unstyled?: boolean | undefined;
343
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
344
+ fullscreen?: boolean | undefined;
345
+ transparent?: boolean | undefined;
346
+ size?: import("@gui/core").SizeTokens | undefined;
347
+ circular?: boolean | undefined;
348
+ elevate?: boolean | undefined;
349
+ bordered?: boolean | undefined;
350
+ chromeless?: boolean | "all" | undefined;
351
+ } & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | "trapFocus" | "onOpenAutoFocus" | "onCloseAutoFocus"> & Omit<DialogContentTypeProps, "onPointerDownCapture" | "context"> & {
352
+ scope?: DialogScopes;
353
+ }, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogContentTypeProps, "onPointerDownCapture" | "context"> & {
354
+ scope?: DialogScopes;
355
+ }, import("@gui/core").StackStyleBase, {
356
+ unstyled?: boolean | undefined;
357
+ elevation?: number | import("@gui/core").SizeTokens | undefined;
358
+ fullscreen?: boolean | undefined;
359
+ transparent?: boolean | undefined;
360
+ size?: import("@gui/core").SizeTokens | undefined;
361
+ circular?: boolean | undefined;
362
+ elevate?: boolean | undefined;
363
+ bordered?: boolean | undefined;
364
+ chromeless?: boolean | "all" | undefined;
365
+ }, import("@gui/core").StaticConfigPublic>;
366
+ Title: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").TextNonStyleProps, import("@gui/core").TextStylePropsBase, {
367
+ unstyled?: boolean | undefined;
368
+ size?: import("@gui/core").FontSizeTokens | undefined;
369
+ }>, "scope"> & {
370
+ scope?: DialogScopes;
371
+ }, import("@gui/core").GuiTextElement, import("@gui/core").TextNonStyleProps & {
372
+ scope?: DialogScopes;
373
+ }, import("@gui/core").TextStylePropsBase, {
374
+ unstyled?: boolean | undefined;
375
+ size?: import("@gui/core").FontSizeTokens | undefined;
376
+ }, import("@gui/core").StaticConfigPublic>;
377
+ Description: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").TextNonStyleProps, import("@gui/core").TextStylePropsBase, {
378
+ unstyled?: boolean | undefined;
379
+ size?: import("@gui/core").FontSizeTokens | undefined;
380
+ }>, "scope"> & {
381
+ scope?: DialogScopes;
382
+ }, import("@gui/core").GuiTextElement, import("@gui/core").TextNonStyleProps & {
383
+ scope?: DialogScopes;
384
+ }, import("@gui/core").TextStylePropsBase, {
385
+ unstyled?: boolean | undefined;
386
+ size?: import("@gui/core").FontSizeTokens | undefined;
387
+ }, import("@gui/core").StaticConfigPublic>;
388
+ Close: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
389
+ displayWhenAdapted?: boolean;
390
+ } & {
391
+ scope?: DialogScopes;
392
+ }, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & {
393
+ displayWhenAdapted?: boolean;
394
+ } & {
395
+ scope?: DialogScopes;
396
+ }, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
397
+ FocusScope: (props: import("@gui/focus-scope/types/types").ScopedProps<import("@gui/focus-scope").FocusScopeControllerProps>) => import("react/jsx-runtime").JSX.Element;
398
+ Adapt: ((props: import("@gui/adapt").AdaptProps) => import("react/jsx-runtime").JSX.Element) & {
399
+ Contents: {
400
+ ({ scope, ...rest }: {
401
+ scope?: string;
402
+ }): React.FunctionComponentElement<any>;
403
+ shouldForwardSpace: boolean;
404
+ };
405
+ };
406
+ };
407
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWarningProvider, };
408
+ export type { DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, };
409
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './Dialog';
2
+ //# sourceMappingURL=index.d.ts.map