@hanzogui/alert-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/LICENSE +21 -0
- package/dist/cjs/AlertDialog.cjs +276 -0
- package/dist/cjs/AlertDialog.native.js +379 -0
- package/dist/cjs/AlertDialog.native.js.map +1 -0
- package/dist/cjs/index.cjs +18 -0
- package/dist/cjs/index.native.js +21 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/esm/AlertDialog.mjs +231 -0
- package/dist/esm/AlertDialog.mjs.map +1 -0
- package/dist/esm/AlertDialog.native.js +333 -0
- package/dist/esm/AlertDialog.native.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +2 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/jsx/AlertDialog.mjs +231 -0
- package/dist/jsx/AlertDialog.mjs.map +1 -0
- package/dist/jsx/AlertDialog.native.js +379 -0
- package/dist/jsx/AlertDialog.native.js.map +1 -0
- package/dist/jsx/index.js +2 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +2 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +21 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/package.json +66 -0
- package/src/AlertDialog.tsx +515 -0
- package/src/index.ts +1 -0
- package/types/AlertDialog.d.ts +169 -0
- package/types/index.d.ts +2 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import type { GuiElement } from '@gui/core';
|
|
2
|
+
import type { DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogOverlayExtraProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps } from '@gui/dialog';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export type AlertDialogScopes = string;
|
|
5
|
+
type ScopedProps<P> = Omit<P, 'scope'> & {
|
|
6
|
+
scope?: AlertDialogScopes;
|
|
7
|
+
};
|
|
8
|
+
type AlertDialogProps = ScopedProps<DialogProps> & {
|
|
9
|
+
native?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type AlertDialogTriggerProps = ScopedProps<DialogTriggerProps>;
|
|
12
|
+
declare const AlertDialogTrigger: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").StackNonStyleProps | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>>> & Omit<DialogTriggerProps, "scope"> & {
|
|
13
|
+
scope?: AlertDialogScopes;
|
|
14
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogTriggerProps, "scope"> & {
|
|
15
|
+
scope?: AlertDialogScopes;
|
|
16
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
17
|
+
type AlertDialogPortalProps = ScopedProps<DialogPortalProps>;
|
|
18
|
+
declare const AlertDialogPortal: React.FC<AlertDialogPortalProps>;
|
|
19
|
+
type AlertDialogOverlayExtraProps = ScopedProps<{}> & DialogOverlayExtraProps;
|
|
20
|
+
type AlertDialogOverlayProps = AlertDialogOverlayExtraProps & DialogOverlayProps;
|
|
21
|
+
declare const AlertDialogOverlay: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
|
|
22
|
+
open?: boolean | undefined;
|
|
23
|
+
unstyled?: boolean | undefined;
|
|
24
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
25
|
+
fullscreen?: boolean | undefined;
|
|
26
|
+
}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").RNGuiViewNonStyleProps | keyof import("@gui/stacks").StackVariants | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & {
|
|
27
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
28
|
+
fullscreen?: boolean | undefined;
|
|
29
|
+
} & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | "forceMount"> & Omit<{}, "scope"> & {
|
|
30
|
+
scope?: AlertDialogScopes;
|
|
31
|
+
} & {
|
|
32
|
+
forceMount?: boolean;
|
|
33
|
+
} & {
|
|
34
|
+
scope?: import("@gui/dialog").DialogScopes;
|
|
35
|
+
} & Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
|
|
36
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
37
|
+
fullscreen?: boolean | undefined;
|
|
38
|
+
}>, keyof import("@gui/stacks").StackVariants> & import("@gui/stacks").StackVariants, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<{}, "scope"> & {
|
|
39
|
+
scope?: AlertDialogScopes;
|
|
40
|
+
} & {
|
|
41
|
+
forceMount?: boolean;
|
|
42
|
+
} & {
|
|
43
|
+
scope?: import("@gui/dialog").DialogScopes;
|
|
44
|
+
} & Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
|
|
45
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
46
|
+
fullscreen?: boolean | undefined;
|
|
47
|
+
}>, keyof import("@gui/stacks").StackVariants> & import("@gui/stacks").StackVariants, import("@gui/core").StackStyleBase, {
|
|
48
|
+
open?: boolean | undefined;
|
|
49
|
+
unstyled?: boolean | undefined;
|
|
50
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
51
|
+
fullscreen?: boolean | undefined;
|
|
52
|
+
}, import("@gui/core").StaticConfigPublic>;
|
|
53
|
+
type AlertDialogContentProps = ScopedProps<Omit<DialogContentProps, 'onPointerDownOutside' | 'onInteractOutside'>>;
|
|
54
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<Omit<DialogContentProps, "onPointerDownOutside" | "onInteractOutside">, "scope"> & {
|
|
55
|
+
scope?: AlertDialogScopes;
|
|
56
|
+
} & React.RefAttributes<GuiElement>>;
|
|
57
|
+
type AlertDialogTitleProps = ScopedProps<DialogTitleProps>;
|
|
58
|
+
declare const AlertDialogTitle: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "theme" | "debug" | "scope" | "children" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "hitSlop" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "testID" | "nativeID" | "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" | "size" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "maxFontSizeMultiplier" | "minimumFontScale" | "pressRetentionOffset" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | keyof import("@gui/core").TextStylePropsBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").TextStylePropsBase> & {
|
|
59
|
+
unstyled?: boolean | undefined;
|
|
60
|
+
size?: import("@gui/core").FontSizeTokens | undefined;
|
|
61
|
+
} & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").TextStylePropsBase>>>> & Omit<DialogTitleProps, "scope"> & {
|
|
62
|
+
scope?: AlertDialogScopes;
|
|
63
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogTitleProps, "scope"> & {
|
|
64
|
+
scope?: AlertDialogScopes;
|
|
65
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
66
|
+
type AlertDialogDescriptionProps = ScopedProps<DialogDescriptionProps>;
|
|
67
|
+
declare const AlertDialogDescription: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "theme" | "debug" | "scope" | "children" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "hitSlop" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "testID" | "nativeID" | "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" | "size" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "maxFontSizeMultiplier" | "minimumFontScale" | "pressRetentionOffset" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | keyof import("@gui/core").TextStylePropsBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").TextStylePropsBase> & {
|
|
68
|
+
unstyled?: boolean | undefined;
|
|
69
|
+
size?: import("@gui/core").FontSizeTokens | undefined;
|
|
70
|
+
} & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").TextStylePropsBase>>>> & Omit<DialogDescriptionProps, "scope"> & {
|
|
71
|
+
scope?: AlertDialogScopes;
|
|
72
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogDescriptionProps, "scope"> & {
|
|
73
|
+
scope?: AlertDialogScopes;
|
|
74
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
75
|
+
type AlertDialogActionProps = ScopedProps<DialogCloseProps>;
|
|
76
|
+
declare const AlertDialogAction: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | keyof import("@gui/core").RNGuiViewNonStyleProps | "displayWhenAdapted"> & Omit<DialogCloseProps, "scope"> & {
|
|
77
|
+
scope?: AlertDialogScopes;
|
|
78
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogCloseProps, "scope"> & {
|
|
79
|
+
scope?: AlertDialogScopes;
|
|
80
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
81
|
+
type AlertDialogCancelProps = ScopedProps<DialogCloseProps>;
|
|
82
|
+
declare const AlertDialogCancel: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | keyof import("@gui/core").RNGuiViewNonStyleProps | "displayWhenAdapted"> & Omit<DialogCloseProps, "scope"> & {
|
|
83
|
+
scope?: AlertDialogScopes;
|
|
84
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogCloseProps, "scope"> & {
|
|
85
|
+
scope?: AlertDialogScopes;
|
|
86
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
87
|
+
type AlertDialogDestructiveProps = ScopedProps<DialogCloseProps>;
|
|
88
|
+
declare const AlertDialogDestructive: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | keyof import("@gui/core").RNGuiViewNonStyleProps | "displayWhenAdapted"> & Omit<DialogCloseProps, "scope"> & {
|
|
89
|
+
scope?: AlertDialogScopes;
|
|
90
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogCloseProps, "scope"> & {
|
|
91
|
+
scope?: AlertDialogScopes;
|
|
92
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
93
|
+
declare const AlertDialog: React.FC<AlertDialogProps> & {
|
|
94
|
+
Trigger: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").StackNonStyleProps | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>>> & Omit<DialogTriggerProps, "scope"> & {
|
|
95
|
+
scope?: AlertDialogScopes;
|
|
96
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogTriggerProps, "scope"> & {
|
|
97
|
+
scope?: AlertDialogScopes;
|
|
98
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
99
|
+
Portal: React.FC<AlertDialogPortalProps>;
|
|
100
|
+
Overlay: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
|
|
101
|
+
open?: boolean | undefined;
|
|
102
|
+
unstyled?: boolean | undefined;
|
|
103
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
104
|
+
fullscreen?: boolean | undefined;
|
|
105
|
+
}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").RNGuiViewNonStyleProps | keyof import("@gui/stacks").StackVariants | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & {
|
|
106
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
107
|
+
fullscreen?: boolean | undefined;
|
|
108
|
+
} & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | "forceMount"> & Omit<{}, "scope"> & {
|
|
109
|
+
scope?: AlertDialogScopes;
|
|
110
|
+
} & {
|
|
111
|
+
forceMount?: boolean;
|
|
112
|
+
} & {
|
|
113
|
+
scope?: import("@gui/dialog").DialogScopes;
|
|
114
|
+
} & Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
|
|
115
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
116
|
+
fullscreen?: boolean | undefined;
|
|
117
|
+
}>, keyof import("@gui/stacks").StackVariants> & import("@gui/stacks").StackVariants, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<{}, "scope"> & {
|
|
118
|
+
scope?: AlertDialogScopes;
|
|
119
|
+
} & {
|
|
120
|
+
forceMount?: boolean;
|
|
121
|
+
} & {
|
|
122
|
+
scope?: import("@gui/dialog").DialogScopes;
|
|
123
|
+
} & Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
|
|
124
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
125
|
+
fullscreen?: boolean | undefined;
|
|
126
|
+
}>, keyof import("@gui/stacks").StackVariants> & import("@gui/stacks").StackVariants, import("@gui/core").StackStyleBase, {
|
|
127
|
+
open?: boolean | undefined;
|
|
128
|
+
unstyled?: boolean | undefined;
|
|
129
|
+
elevation?: number | import("@gui/core").SizeTokens | undefined;
|
|
130
|
+
fullscreen?: boolean | undefined;
|
|
131
|
+
}, import("@gui/core").StaticConfigPublic>;
|
|
132
|
+
Content: React.ForwardRefExoticComponent<Omit<Omit<DialogContentProps, "onPointerDownOutside" | "onInteractOutside">, "scope"> & {
|
|
133
|
+
scope?: AlertDialogScopes;
|
|
134
|
+
} & React.RefAttributes<GuiElement>>;
|
|
135
|
+
Action: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | keyof import("@gui/core").RNGuiViewNonStyleProps | "displayWhenAdapted"> & Omit<DialogCloseProps, "scope"> & {
|
|
136
|
+
scope?: AlertDialogScopes;
|
|
137
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogCloseProps, "scope"> & {
|
|
138
|
+
scope?: AlertDialogScopes;
|
|
139
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
140
|
+
Cancel: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | keyof import("@gui/core").RNGuiViewNonStyleProps | "displayWhenAdapted"> & Omit<DialogCloseProps, "scope"> & {
|
|
141
|
+
scope?: AlertDialogScopes;
|
|
142
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogCloseProps, "scope"> & {
|
|
143
|
+
scope?: AlertDialogScopes;
|
|
144
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
145
|
+
Destructive: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "scope" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/core").StackStyleBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase> & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").StackStyleBase>>> | keyof import("@gui/core").RNGuiViewNonStyleProps | "displayWhenAdapted"> & Omit<DialogCloseProps, "scope"> & {
|
|
146
|
+
scope?: AlertDialogScopes;
|
|
147
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogCloseProps, "scope"> & {
|
|
148
|
+
scope?: AlertDialogScopes;
|
|
149
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
150
|
+
Title: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "theme" | "debug" | "scope" | "children" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "hitSlop" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "testID" | "nativeID" | "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" | "size" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "maxFontSizeMultiplier" | "minimumFontScale" | "pressRetentionOffset" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | keyof import("@gui/core").TextStylePropsBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").TextStylePropsBase> & {
|
|
151
|
+
unstyled?: boolean | undefined;
|
|
152
|
+
size?: import("@gui/core").FontSizeTokens | undefined;
|
|
153
|
+
} & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").TextStylePropsBase>>>> & Omit<DialogTitleProps, "scope"> & {
|
|
154
|
+
scope?: AlertDialogScopes;
|
|
155
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogTitleProps, "scope"> & {
|
|
156
|
+
scope?: AlertDialogScopes;
|
|
157
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
158
|
+
Description: import("@gui/core").GuiComponent<Omit<import("@gui/core").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {}>, "theme" | "debug" | "scope" | "children" | `$${string}` | `$${number}` | import("@gui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "hitSlop" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "testID" | "nativeID" | "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" | "size" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "maxFontSizeMultiplier" | "minimumFontScale" | "pressRetentionOffset" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | keyof import("@gui/core").TextStylePropsBase | keyof import("@gui/core").WithPseudoProps<import("@gui/core").WithThemeValues<import("@gui/core").TextStylePropsBase> & {
|
|
159
|
+
unstyled?: boolean | undefined;
|
|
160
|
+
size?: import("@gui/core").FontSizeTokens | undefined;
|
|
161
|
+
} & import("@gui/core").WithShorthands<import("@gui/core").WithThemeValues<import("@gui/core").TextStylePropsBase>>>> & Omit<DialogDescriptionProps, "scope"> & {
|
|
162
|
+
scope?: AlertDialogScopes;
|
|
163
|
+
}, GuiElement, import("@gui/core").RNGuiViewNonStyleProps & Omit<DialogDescriptionProps, "scope"> & {
|
|
164
|
+
scope?: AlertDialogScopes;
|
|
165
|
+
}, import("@gui/core").StackStyleBase, {}, import("@gui/core").StaticConfigPublic>;
|
|
166
|
+
};
|
|
167
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogDestructive, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
|
|
168
|
+
export type { AlertDialogActionProps, AlertDialogCancelProps, AlertDialogDestructiveProps, AlertDialogContentProps, AlertDialogDescriptionProps, AlertDialogOverlayProps, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps, };
|
|
169
|
+
//# sourceMappingURL=AlertDialog.d.ts.map
|
package/types/index.d.ts
ADDED