@tamagui/alert-dialog 2.0.0-rc.8 → 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.
@@ -8,304 +8,295 @@ import { useControllableState } from "@tamagui/use-controllable-state";
8
8
  import * as React from "react";
9
9
  import { Alert } from "react-native";
10
10
  var getAlertDialogScope = function (scope) {
11
- return scope;
12
- },
13
- ROOT_NAME = "AlertDialog",
14
- TRIGGER_NAME = "AlertDialogTrigger",
15
- NativeAlertDialogTriggerFrame = styled(View, {
16
- name: TRIGGER_NAME
17
- }),
18
- AlertDialogTrigger = NativeAlertDialogTriggerFrame.styleable(function (props, forwardedRef) {
19
- if (props.__native) {
20
- var {
21
- __native,
22
- onPress,
23
- __onPress,
24
- ...rest
25
- } = props;
26
- return /* @__PURE__ */_jsx(NativeAlertDialogTriggerFrame, {
27
- ...rest,
28
- onPress: composeEventHandlers(onPress, __onPress)
29
- });
30
- }
11
+ return scope;
12
+ };
13
+ var ROOT_NAME = "AlertDialog";
14
+ var TRIGGER_NAME = "AlertDialogTrigger";
15
+ var NativeAlertDialogTriggerFrame = styled(View, {
16
+ name: TRIGGER_NAME
17
+ });
18
+ var AlertDialogTrigger = NativeAlertDialogTriggerFrame.styleable(function AlertDialogTrigger2(props, forwardedRef) {
19
+ if (props["__native"]) {
31
20
  var {
32
- scope,
33
- ...triggerProps
21
+ __native,
22
+ onPress,
23
+ __onPress,
24
+ ...rest
34
25
  } = props;
35
- return /* @__PURE__ */_jsx(DialogTrigger, {
36
- scope: getAlertDialogScope(scope),
37
- ...triggerProps,
38
- ref: forwardedRef
26
+ return /* @__PURE__ */_jsx(NativeAlertDialogTriggerFrame, {
27
+ ...rest,
28
+ onPress: composeEventHandlers(onPress, __onPress)
39
29
  });
30
+ }
31
+ var {
32
+ scope,
33
+ ...triggerProps
34
+ } = props;
35
+ return /* @__PURE__ */_jsx(DialogTrigger, {
36
+ scope: getAlertDialogScope(scope),
37
+ ...triggerProps,
38
+ ref: forwardedRef
40
39
  });
41
- var AlertDialogPortal = function (props) {
42
- var {
43
- scope,
44
- ...portalProps
45
- } = props;
46
- return /* @__PURE__ */_jsx(DialogPortal, {
47
- scope: getAlertDialogScope(scope),
48
- ...portalProps
49
- });
50
- },
51
- OVERLAY_NAME = "AlertDialogOverlay",
52
- AlertDialogOverlayFrame = styled(DialogOverlayFrame, {
53
- name: OVERLAY_NAME
54
- }),
55
- AlertDialogOverlay = AlertDialogOverlayFrame.styleable(function (props, forwardedRef) {
56
- var {
40
+ });
41
+ var AlertDialogPortal = function AlertDialogPortal2(props) {
42
+ var {
43
+ scope,
44
+ ...portalProps
45
+ } = props;
46
+ return /* @__PURE__ */_jsx(DialogPortal, {
47
+ scope: getAlertDialogScope(scope),
48
+ ...portalProps
49
+ });
50
+ };
51
+ var AlertDialogOverlay = styled(DialogOverlayFrame, {
52
+ name: "AlertDialogOverlay"
53
+ }).styleable(function AlertDialogOverlay2(props, forwardedRef) {
54
+ var {
55
+ scope,
56
+ ...overlayProps
57
+ } = props;
58
+ return /* @__PURE__ */_jsx(DialogOverlay, {
59
+ scope: getAlertDialogScope(scope),
60
+ ...overlayProps,
61
+ ref: forwardedRef
62
+ });
63
+ });
64
+ var CONTENT_NAME = "AlertDialogContent";
65
+ var {
66
+ Provider: AlertDialogContextProvider,
67
+ useStyledContext: useAlertDialogContentContext
68
+ } = createStyledContext({}, "AlertDialogContext");
69
+ var AlertDialogContent = /* @__PURE__ */React.forwardRef(function AlertDialogContent2(props, forwardedRef) {
70
+ var {
71
+ scope,
72
+ children,
73
+ ...contentProps
74
+ } = props;
75
+ var dialogScope = getAlertDialogScope(scope);
76
+ var contentRef = React.useRef(null);
77
+ var composedRefs = useComposedRefs(forwardedRef, contentRef);
78
+ var cancelRef = React.useRef(null);
79
+ return /* @__PURE__ */_jsx(DialogWarningProvider, {
80
+ contentName: CONTENT_NAME,
81
+ titleName: TITLE_NAME,
82
+ docsSlug: "alert-dialog",
83
+ children: /* @__PURE__ */_jsx(AlertDialogContextProvider, {
57
84
  scope,
58
- ...overlayProps
59
- } = props;
60
- return /* @__PURE__ */_jsx(DialogOverlay, {
61
- scope: getAlertDialogScope(scope),
62
- ...overlayProps,
63
- ref: forwardedRef
64
- });
65
- }),
66
- CONTENT_NAME = "AlertDialogContent",
67
- {
68
- Provider: AlertDialogContextProvider,
69
- useStyledContext: useAlertDialogContentContext
70
- } = createStyledContext({}, "AlertDialogContext"),
71
- AlertDialogContent = /* @__PURE__ */React.forwardRef(function (props, forwardedRef) {
72
- var {
73
- scope,
74
- children,
75
- ...contentProps
76
- } = props,
77
- dialogScope = getAlertDialogScope(scope),
78
- contentRef = React.useRef(null),
79
- composedRefs = useComposedRefs(forwardedRef, contentRef),
80
- cancelRef = React.useRef(null),
81
- destructiveRef = React.useRef(null);
82
- return /* @__PURE__ */_jsx(DialogWarningProvider, {
83
- contentName: CONTENT_NAME,
84
- titleName: TITLE_NAME,
85
- docsSlug: "alert-dialog",
86
- children: /* @__PURE__ */_jsx(AlertDialogContextProvider, {
87
- scope,
88
- cancelRef,
89
- destructiveRef,
90
- children: /* @__PURE__ */_jsxs(DialogContent, {
91
- role: "alertdialog",
92
- "aria-modal": !0,
93
- scope: dialogScope,
94
- ...contentProps,
95
- ref: composedRefs,
96
- onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, function (event) {
97
- if (event.preventDefault(), isWeb) {
98
- var _cancelRef_current;
99
- (_cancelRef_current = cancelRef.current) === null || _cancelRef_current === void 0 || _cancelRef_current.focus({
100
- preventScroll: !0
101
- });
102
- }
103
- }),
104
- onPointerDownOutside: function (event) {
105
- return event.preventDefault();
106
- },
107
- onInteractOutside: function (event) {
108
- return event.preventDefault();
109
- },
110
- children: [
111
- /**
112
- * We have to use `Slottable` here as we cannot wrap the `AlertDialogContentProvider`
113
- * around everything, otherwise the `DescriptionWarning` would be rendered straight away.
114
- * This is because we want the accessibility checks to run only once the content is actually
115
- * open and that behaviour is already encapsulated in `DialogContent`.
116
- */
117
- /* @__PURE__ */
118
- _jsx(Slottable, {
119
- children
120
- }), process.env.NODE_ENV === "development" && /* @__PURE__ */_jsx(DescriptionWarning, {
121
- contentRef
122
- })]
123
- })
85
+ cancelRef,
86
+ destructiveRef: React.useRef(null),
87
+ children: /* @__PURE__ */_jsxs(DialogContent, {
88
+ role: "alertdialog",
89
+ "aria-modal": true,
90
+ scope: dialogScope,
91
+ ...contentProps,
92
+ ref: composedRefs,
93
+ onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, function (event) {
94
+ event.preventDefault();
95
+ if (isWeb) {
96
+ var _cancelRef_current;
97
+ (_cancelRef_current = cancelRef.current) === null || _cancelRef_current === void 0 || _cancelRef_current.focus({
98
+ preventScroll: true
99
+ });
100
+ }
101
+ }),
102
+ onPointerDownOutside: function (event) {
103
+ return event.preventDefault();
104
+ },
105
+ onInteractOutside: function (event) {
106
+ return event.preventDefault();
107
+ },
108
+ children: [/* @__PURE__ */_jsx(Slottable, {
109
+ children
110
+ }), process.env.NODE_ENV === "development" && /* @__PURE__ */_jsx(DescriptionWarning, {
111
+ contentRef
112
+ })]
124
113
  })
125
- });
126
- }),
127
- TITLE_NAME = "AlertDialogTitle",
128
- AlertDialogTitleFrame = styled(View, {
129
- name: TITLE_NAME
130
- }),
131
- AlertDialogTitle = AlertDialogTitleFrame.styleable(function (props, forwardedRef) {
132
- var {
133
- scope,
134
- ...titleProps
135
- } = props;
136
- return /* @__PURE__ */_jsx(DialogTitle, {
137
- scope: getAlertDialogScope(scope),
138
- ...titleProps,
139
- ref: forwardedRef
140
- });
141
- }),
142
- DESCRIPTION_NAME = "AlertDialogDescription",
143
- AlertDialogDescriptionFrame = styled(View, {
144
- name: DESCRIPTION_NAME
145
- }),
146
- AlertDialogDescription = AlertDialogDescriptionFrame.styleable(function (props, forwardedRef) {
147
- var {
148
- scope,
149
- ...descriptionProps
150
- } = props;
151
- return /* @__PURE__ */_jsx(DialogDescription, {
152
- scope: getAlertDialogScope(scope),
153
- ...descriptionProps,
154
- ref: forwardedRef
155
- });
156
- }),
157
- ACTION_NAME = "AlertDialogAction",
158
- AlertDialogActionFrame = styled(View, {
159
- name: ACTION_NAME
160
- }),
161
- AlertDialogAction = AlertDialogActionFrame.styleable(function (props, forwardedRef) {
162
- var {
163
- scope,
164
- ...actionProps
165
- } = props;
166
- return /* @__PURE__ */_jsx(DialogClose, {
167
- scope: getAlertDialogScope(scope),
168
- ...actionProps,
169
- ref: forwardedRef
170
- });
171
- }),
172
- CANCEL_NAME = "AlertDialogCancel",
173
- AlertDialogCancelFrame = styled(View, {
174
- name: CANCEL_NAME
175
- }),
176
- AlertDialogCancel = AlertDialogCancelFrame.styleable(function (props, forwardedRef) {
177
- var {
178
- scope,
179
- ...cancelProps
180
- } = props,
181
- {
182
- cancelRef
183
- } = useAlertDialogContentContext(scope),
184
- ref = useComposedRefs(forwardedRef, cancelRef);
185
- return /* @__PURE__ */_jsx(DialogClose, {
186
- scope: getAlertDialogScope(scope),
187
- ...cancelProps,
188
- ref
189
- });
190
- }),
191
- DESTRUCTIVE_NAME = "AlertDialogDestructive",
192
- AlertDialogDestructiveFrame = styled(View, {
193
- name: DESTRUCTIVE_NAME
194
- }),
195
- AlertDialogDestructive = AlertDialogDestructiveFrame.styleable(function (props, forwardedRef) {
196
- var {
197
- scope,
198
- ...destructiveProps
199
- } = props,
200
- {
201
- destructiveRef
202
- } = useAlertDialogContentContext(scope),
203
- ref = useComposedRefs(forwardedRef, destructiveRef);
204
- return /* @__PURE__ */_jsx(DialogClose, {
205
- scope: getAlertDialogScope(scope),
206
- ...destructiveProps,
207
- ref
208
- });
209
- }),
210
- DescriptionWarning = function (param) {
211
- var {
212
- contentRef
213
- } = param;
214
- return process.env.NODE_ENV === "development" && React.useEffect(function () {
215
- var _contentRef_current;
216
- if (isWeb) {
217
- var hasDescription = document.getElementById((_contentRef_current = contentRef.current) === null || _contentRef_current === void 0 ? void 0 : _contentRef_current.getAttribute("aria-describedby"));
218
- hasDescription || console.warn(`\`${CONTENT_NAME}\` requires a description for the component to be accessible for screen reader users.
114
+ })
115
+ });
116
+ });
117
+ var TITLE_NAME = "AlertDialogTitle";
118
+ var AlertDialogTitle = styled(View, {
119
+ name: TITLE_NAME
120
+ }).styleable(function AlertDialogTitle2(props, forwardedRef) {
121
+ var {
122
+ scope,
123
+ ...titleProps
124
+ } = props;
125
+ return /* @__PURE__ */_jsx(DialogTitle, {
126
+ scope: getAlertDialogScope(scope),
127
+ ...titleProps,
128
+ ref: forwardedRef
129
+ });
130
+ });
131
+ var DESCRIPTION_NAME = "AlertDialogDescription";
132
+ var AlertDialogDescription = styled(View, {
133
+ name: DESCRIPTION_NAME
134
+ }).styleable(function AlertDialogDescription2(props, forwardedRef) {
135
+ var {
136
+ scope,
137
+ ...descriptionProps
138
+ } = props;
139
+ return /* @__PURE__ */_jsx(DialogDescription, {
140
+ scope: getAlertDialogScope(scope),
141
+ ...descriptionProps,
142
+ ref: forwardedRef
143
+ });
144
+ });
145
+ var ACTION_NAME = "AlertDialogAction";
146
+ var AlertDialogAction = styled(View, {
147
+ name: ACTION_NAME
148
+ }).styleable(function AlertDialogAction2(props, forwardedRef) {
149
+ var {
150
+ scope,
151
+ ...actionProps
152
+ } = props;
153
+ return /* @__PURE__ */_jsx(DialogClose, {
154
+ scope: getAlertDialogScope(scope),
155
+ ...actionProps,
156
+ ref: forwardedRef
157
+ });
158
+ });
159
+ var CANCEL_NAME = "AlertDialogCancel";
160
+ var AlertDialogCancel = styled(View, {
161
+ name: CANCEL_NAME
162
+ }).styleable(function AlertDialogCancel2(props, forwardedRef) {
163
+ var {
164
+ scope,
165
+ ...cancelProps
166
+ } = props;
167
+ var {
168
+ cancelRef
169
+ } = useAlertDialogContentContext(scope);
170
+ var ref = useComposedRefs(forwardedRef, cancelRef);
171
+ return /* @__PURE__ */_jsx(DialogClose, {
172
+ scope: getAlertDialogScope(scope),
173
+ ...cancelProps,
174
+ ref
175
+ });
176
+ });
177
+ var DESTRUCTIVE_NAME = "AlertDialogDestructive";
178
+ var AlertDialogDestructive = styled(View, {
179
+ name: DESTRUCTIVE_NAME
180
+ }).styleable(function AlertDialogDestructive2(props, forwardedRef) {
181
+ var {
182
+ scope,
183
+ ...destructiveProps
184
+ } = props;
185
+ var {
186
+ destructiveRef
187
+ } = useAlertDialogContentContext(scope);
188
+ var ref = useComposedRefs(forwardedRef, destructiveRef);
189
+ return /* @__PURE__ */_jsx(DialogClose, {
190
+ scope: getAlertDialogScope(scope),
191
+ ...destructiveProps,
192
+ ref
193
+ });
194
+ });
195
+ var DescriptionWarning = function (param) {
196
+ var {
197
+ contentRef
198
+ } = param;
199
+ if (process.env.NODE_ENV === "development") React.useEffect(function () {
200
+ var _contentRef_current;
201
+ if (!isWeb) return;
202
+ if (!document.getElementById((_contentRef_current = contentRef.current) === null || _contentRef_current === void 0 ? void 0 : _contentRef_current.getAttribute("aria-describedby"))) console.warn(`\`${CONTENT_NAME}\` requires a description for the component to be accessible for screen reader users.
219
203
 
220
204
  You can add a description to the \`${CONTENT_NAME}\` by passing a \`${DESCRIPTION_NAME}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
221
205
 
222
206
  Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${CONTENT_NAME}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
223
207
 
224
208
  For more information, see https://tamagui.dev/docs/components/alert-dialog`);
225
- }
226
- }, [contentRef]), null;
227
- },
228
- AlertDialogInner = function (props) {
229
- var {
230
- scope,
231
- native,
232
- ...alertDialogProps
233
- } = props,
234
- dialogScope = getAlertDialogScope(scope),
235
- [open, setOpen] = useControllableState({
236
- prop: props.open,
237
- defaultProp: props.defaultOpen || !1,
238
- onChange: props.onOpenChange,
239
- transition: !0
240
- }),
241
- triggerElement = null,
242
- title = "",
243
- description = "",
244
- buttons = [];
245
- return forEachChildDeep(React.Children.toArray(props.children), function (child) {
246
- if (! /* @__PURE__ */React.isValidElement(child)) return !1;
247
- var name = isTamaguiElement(child) ? child.type.staticConfig.componentName : child.type.displayName;
248
- switch (name) {
249
- case TRIGGER_NAME:
250
- return triggerElement = /* @__PURE__ */React.cloneElement(child, {
251
- __native: !0
252
- }), !1;
253
- case TITLE_NAME:
254
- return title = getStringChildren(child), !1;
255
- case DESCRIPTION_NAME:
256
- return description = getStringChildren(child), !1;
257
- case ACTION_NAME:
258
- case DESTRUCTIVE_NAME:
259
- case CANCEL_NAME:
260
- {
261
- var style = name === ACTION_NAME ? "default" : name === DESTRUCTIVE_NAME ? "destructive" : "cancel",
262
- text = getStringChildren(child),
263
- onPress = function () {
264
- var _childProps_onPress,
265
- childProps = child.props;
266
- childProps == null || (_childProps_onPress = childProps.onPress) === null || _childProps_onPress === void 0 || _childProps_onPress.call(childProps, {
267
- native: !0
268
- }), setOpen(!1);
269
- };
270
- return buttons.push({
271
- style,
272
- text,
273
- // @ts-ignore
274
- onPress
275
- }), !1;
276
- }
277
- default:
278
- return !0;
279
- }
280
- }), useIsomorphicLayoutEffect(function () {
281
- !open || !native || (title || description) && Alert.alert(title, description, buttons);
282
- }, [native, open]), native ? /* @__PURE__ */React.cloneElement(triggerElement, {
283
- __onPress: function () {
284
- setOpen(!0);
285
- }
286
- }) : /* @__PURE__ */_jsx(Dialog, {
287
- scope: dialogScope,
288
- ...alertDialogProps,
289
- modal: !0
290
- });
291
- };
209
+ }, [contentRef]);
210
+ return null;
211
+ };
212
+ var AlertDialogInner = function (props) {
213
+ var {
214
+ scope,
215
+ native,
216
+ ...alertDialogProps
217
+ } = props;
218
+ var dialogScope = getAlertDialogScope(scope);
219
+ var [open, setOpen] = useControllableState({
220
+ prop: props.open,
221
+ defaultProp: props.defaultOpen || false,
222
+ onChange: props.onOpenChange,
223
+ transition: true
224
+ });
225
+ var triggerElement = null;
226
+ var title = "";
227
+ var description = "";
228
+ var buttons = [];
229
+ forEachChildDeep(React.Children.toArray(props.children), function (child) {
230
+ if (! /* @__PURE__ */React.isValidElement(child)) return false;
231
+ var name = isTamaguiElement(child) ? child.type.staticConfig.componentName : child.type["displayName"];
232
+ switch (name) {
233
+ case TRIGGER_NAME:
234
+ triggerElement = /* @__PURE__ */React.cloneElement(child, {
235
+ __native: true
236
+ });
237
+ return false;
238
+ case TITLE_NAME:
239
+ title = getStringChildren(child);
240
+ return false;
241
+ case DESCRIPTION_NAME:
242
+ description = getStringChildren(child);
243
+ return false;
244
+ case ACTION_NAME:
245
+ case DESTRUCTIVE_NAME:
246
+ case CANCEL_NAME:
247
+ var style = name === ACTION_NAME ? "default" : name === DESTRUCTIVE_NAME ? "destructive" : "cancel";
248
+ var text = getStringChildren(child);
249
+ var onPress = function () {
250
+ var _childProps_onPress;
251
+ var childProps = child.props;
252
+ childProps === null || childProps === void 0 || (_childProps_onPress = childProps.onPress) == null || _childProps_onPress.call(childProps, {
253
+ native: true
254
+ });
255
+ setOpen(false);
256
+ };
257
+ buttons.push({
258
+ style,
259
+ text,
260
+ onPress
261
+ });
262
+ return false;
263
+ default:
264
+ return true;
265
+ }
266
+ });
267
+ useIsomorphicLayoutEffect(function () {
268
+ if (!open || !native) return;
269
+ if (title || description) Alert.alert(title, description, buttons);
270
+ }, [native, open]);
271
+ if (native) return /* @__PURE__ */React.cloneElement(triggerElement, {
272
+ __onPress: function () {
273
+ setOpen(true);
274
+ }
275
+ });
276
+ return /* @__PURE__ */_jsx(Dialog, {
277
+ scope: dialogScope,
278
+ ...alertDialogProps,
279
+ modal: true
280
+ });
281
+ };
292
282
  function forEachChildDeep(children, onChild) {
293
- var _iteratorNormalCompletion = !0,
294
- _didIteratorError = !1,
283
+ var _iteratorNormalCompletion = true,
284
+ _didIteratorError = false,
295
285
  _iteratorError = void 0;
296
286
  try {
297
- for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
287
+ for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
298
288
  var child = _step.value;
299
- if (/* @__PURE__ */React.isValidElement(child) && onChild(child)) {
300
- var childProps = child.props;
301
- childProps.children && forEachChildDeep(React.Children.toArray(childProps.children), onChild);
302
- }
289
+ if (! /* @__PURE__ */React.isValidElement(child)) continue;
290
+ if (!onChild(child)) continue;
291
+ var childProps = child.props;
292
+ if (childProps.children) forEachChildDeep(React.Children.toArray(childProps.children), onChild);
303
293
  }
304
294
  } catch (err) {
305
- _didIteratorError = !0, _iteratorError = err;
295
+ _didIteratorError = true;
296
+ _iteratorError = err;
306
297
  } finally {
307
298
  try {
308
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
299
+ if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
309
300
  } finally {
310
301
  if (_didIteratorError) throw _iteratorError;
311
302
  }
@@ -313,9 +304,14 @@ function forEachChildDeep(children, onChild) {
313
304
  }
314
305
  function getStringChildren(child) {
315
306
  var string = "";
316
- return forEachChildDeep(React.Children.toArray(child), function (child2) {
317
- return typeof child2.props.children == "string" ? (string = child2.props.children, !1) : !0;
318
- }), string;
307
+ forEachChildDeep(React.Children.toArray(child), function (child2) {
308
+ if (typeof child2.props.children === "string") {
309
+ string = child2.props.children;
310
+ return false;
311
+ }
312
+ return true;
313
+ });
314
+ return string;
319
315
  }
320
316
  var AlertDialog = withStaticProperties(AlertDialogInner, {
321
317
  Trigger: AlertDialogTrigger,
@@ -1 +1 @@
1
- {"version":3,"names":["jsx","_jsx","jsxs","_jsxs","useComposedRefs","isWeb","useIsomorphicLayoutEffect","Slottable","View","createStyledContext","isTamaguiElement","styled","Dialog","DialogClose","DialogContent","DialogDescription","DialogOverlay","DialogOverlayFrame","DialogPortal","DialogTitle","DialogTrigger","DialogWarningProvider","composeEventHandlers","withStaticProperties","useControllableState","React","Alert","getAlertDialogScope","scope","ROOT_NAME","TRIGGER_NAME","NativeAlertDialogTriggerFrame","name","AlertDialogTrigger","styleable","props","forwardedRef","__native","onPress","__onPress","rest","triggerProps","ref","AlertDialogPortal","portalProps","OVERLAY_NAME","AlertDialogOverlayFrame","AlertDialogOverlay","overlayProps","CONTENT_NAME","Provider","AlertDialogContextProvider","useStyledContext","useAlertDialogContentContext","AlertDialogContent","forwardRef","children","contentProps","dialogScope","contentRef","useRef","composedRefs","cancelRef","destructiveRef","contentName","titleName","TITLE_NAME","docsSlug","role","onOpenAutoFocus","event","preventDefault","_cancelRef_current","current","focus","preventScroll","onPointerDownOutside","onInteractOutside","process","env","NODE_ENV","DescriptionWarning","AlertDialogTitleFrame","AlertDialogTitle","titleProps","DESCRIPTION_NAME","AlertDialogDescriptionFrame","AlertDialogDescription","descriptionProps","ACTION_NAME","AlertDialogActionFrame","AlertDialogAction","actionProps","CANCEL_NAME","AlertDialogCancelFrame","AlertDialogCancel","cancelProps","DESTRUCTIVE_NAME","AlertDialogDestructiveFrame","AlertDialogDestructive","destructiveProps","param","useEffect","_contentRef_current","hasDescription","document","getElementById","getAttribute","console","warn","AlertDialogInner","native","alertDialogProps","open","setOpen","prop","defaultProp","defaultOpen","onChange","onOpenChange","transition","triggerElement","title","description","buttons","forEachChildDeep","Children","toArray","child","isValidElement","type","staticConfig","componentName","displayName","cloneElement","getStringChildren","style","text","_childProps_onPress","childProps","call","push","alert"],"sources":["../../src/AlertDialog.tsx"],"sourcesContent":[null],"mappings":"AAGA,SAASA,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAuB;AAChC,SAASC,eAAwC;AAEjD,SAAAC,KAAA,EAAAC,yBAAA;AAAA,SACEC,SAAA,EAAAC,IAAA,EAAAC,mBAAA,EAAAC,gBAAA,EAAAC,MAAA;AAAA,SACAC,MAAA,EAAAC,WAAA,EAAAC,aAAA,EAAAC,iBAAA,EAAAC,aAAA,EAAAC,kBAAA,EAAAC,YAAA,EAAAC,WAAA,EAAAC,aAAA,EAAAC,qBAAA;AAAA,SACAC,oBAAA,EAAAC,oBAAA;AAAA,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ACtB,KAEEJ,WAAa;UAAA;YAAiB,IAAA2C,KAAA,GAAAxG,IAAA,KAAAyD,WAAA,eAAAzD,IAAA,KAAAiE,gBAAA;cAAAwC,IAAA,GAAAF,iBAAA,CAAAP,KAAA;cAAA1F,OAAA,YAAAA,CAAA;gBAAA,IAAAoG,mBAAA;kBAAAC,UAEO,GAAAX,KAAA,CAAA7F,KAAY;gBAAqCwG,UAAA,aAAAD,mBAAA,GAAAC,UAAA,CAAArG,OAAA,cAAAoG,mBAAA,eAAAA,mBAAA,CAAAE,IAAA,CAAAD,UAAA;kBAAA5B,MAAA;gBAEkF,IAAAG,OAAA;cAAA;YAIxK,OAAWU,OAGV,CAAAiB,IAGH;cACIL,KAAA;cAqFDC,IAAA;cACT;cA6BMnG;YACJ,IAAS;UACT;QACA;UACA,OAAS;MACT;IACA,IAAAhC,yBAAQ;MACR,CAAA2G,IAAA,KAAAF,MAAa,KAAAW,KAAA,IAAAC,WAAA,KAAAjG,KAAA,CAAAoH,KAAA,CAAApB,KAAA,EAAAC,WAAA,EAAAC,OAAA;IACb,IACAb,MAAA,EACDE,IAAA,CAED,GAAAF,MAAY,kBAActF,KAAA,CAAA6G,YAAA,CAAAb,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["jsx","_jsx","jsxs","_jsxs","useComposedRefs","isWeb","useIsomorphicLayoutEffect","Slottable","View","createStyledContext","isTamaguiElement","styled","Dialog","DialogClose","DialogContent","DialogDescription","DialogOverlay","DialogOverlayFrame","DialogPortal","DialogTitle","DialogTrigger","DialogWarningProvider","composeEventHandlers","withStaticProperties","useControllableState","React","Alert","getAlertDialogScope","scope","ROOT_NAME","TRIGGER_NAME","NativeAlertDialogTriggerFrame","name","AlertDialogTrigger","styleable","AlertDialogTrigger2","props","forwardedRef","__native","onPress","__onPress","rest","triggerProps","ref","AlertDialogPortal","AlertDialogPortal2","portalProps","AlertDialogOverlay","AlertDialogOverlay2","overlayProps","CONTENT_NAME","Provider","AlertDialogContextProvider","useStyledContext","useAlertDialogContentContext","AlertDialogContent","forwardRef","AlertDialogContent2","children","contentProps","dialogScope","contentRef","useRef","composedRefs","cancelRef","contentName","titleName","TITLE_NAME","docsSlug","destructiveRef","role","onOpenAutoFocus","event","preventDefault","_cancelRef_current","current","focus","preventScroll","onPointerDownOutside","onInteractOutside","process","env","NODE_ENV","DescriptionWarning","AlertDialogTitle","AlertDialogTitle2","titleProps","DESCRIPTION_NAME","AlertDialogDescription","AlertDialogDescription2","descriptionProps","ACTION_NAME","AlertDialogAction","AlertDialogAction2","actionProps","CANCEL_NAME","AlertDialogCancel","AlertDialogCancel2","cancelProps","DESTRUCTIVE_NAME","AlertDialogDestructive","AlertDialogDestructive2","destructiveProps","param","useEffect","_contentRef_current","document","getElementById","getAttribute","console","warn","AlertDialogInner","native","alertDialogProps","open","setOpen","prop","defaultProp","defaultOpen","onChange","onOpenChange","transition","triggerElement","title","description","buttons","forEachChildDeep","Children","toArray","child","isValidElement","type","staticConfig","componentName","cloneElement","getStringChildren","style","text","_childProps_onPress","childProps","call","push","alert","modal","onChild","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","value","err","return","string","child2","AlertDialog","Trigger","Portal","Overlay","Content","Action","Cancel","Destructive","Title","Description","displayName"],"sources":["../../src/AlertDialog.tsx"],"sourcesContent":[null],"mappings":"AAGA,SAASA,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAuB;AAChC,SAASC,eAAO,+BAAiC;AAEjD,SAAAC,KAAA,EAAAC,yBAAA;AAAA,SACEC,SAAA,EAAAC,IAAA,EAAAC,mBAAA,EAAAC,gBAAA,EAAAC,MAAA;AAAA,SACAC,MAAA,EAAAC,WAAA,EAAAC,aAAA,EAAAC,iBAAA,EAAAC,aAAA,EAAAC,kBAAA,EAAAC,YAAA,EAAAC,WAAA,EAAAC,aAAA,EAAAC,qBAAA;AAAA,SACAC,oBAAA,EAAAC,oBAAA;AAAA,SACAC,oBAAA;AAAA,OACA,K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