@tamagui/alert-dialog 1.110.4 → 1.111.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/dist/cjs/AlertDialog.native.js +62 -154
- package/dist/cjs/AlertDialog.native.js.map +2 -2
- package/dist/esm/AlertDialog.native.js +62 -153
- package/dist/esm/AlertDialog.native.js.map +2 -2
- package/dist/esm/AlertDialog.native.mjs +309 -0
- package/dist/esm/AlertDialog.native.mjs.map +1 -0
- package/dist/esm/index.native.mjs +2 -0
- package/dist/esm/index.native.mjs.map +1 -0
- package/dist/jsx/AlertDialog.native.js +62 -153
- package/dist/jsx/AlertDialog.native.js.map +2 -2
- package/package.json +19 -19
|
@@ -35,145 +35,47 @@ __export(AlertDialog_exports, {
|
|
|
35
35
|
createAlertDialogScope: () => createAlertDialogScope
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(AlertDialog_exports);
|
|
38
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require("@tamagui/compose-refs"), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_create_context = require("@tamagui/create-context"), import_dialog = require("@tamagui/dialog"), import_helpers = require("@tamagui/helpers"), import_use_controllable_state = require("@tamagui/use-controllable-state"), React = __toESM(require("react")), import_react_native = require("react-native")
|
|
39
|
-
function _array_like_to_array(arr, len) {
|
|
40
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
41
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
42
|
-
return arr2;
|
|
43
|
-
}
|
|
44
|
-
function _array_with_holes(arr) {
|
|
45
|
-
if (Array.isArray(arr)) return arr;
|
|
46
|
-
}
|
|
47
|
-
function _define_property(obj, key, value) {
|
|
48
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
49
|
-
value,
|
|
50
|
-
enumerable: !0,
|
|
51
|
-
configurable: !0,
|
|
52
|
-
writable: !0
|
|
53
|
-
}) : obj[key] = value, obj;
|
|
54
|
-
}
|
|
55
|
-
function _iterable_to_array_limit(arr, i) {
|
|
56
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
57
|
-
if (_i != null) {
|
|
58
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
59
|
-
try {
|
|
60
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
61
|
-
;
|
|
62
|
-
} catch (err) {
|
|
63
|
-
_d = !0, _e = err;
|
|
64
|
-
} finally {
|
|
65
|
-
try {
|
|
66
|
-
!_n && _i.return != null && _i.return();
|
|
67
|
-
} finally {
|
|
68
|
-
if (_d) throw _e;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return _arr;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function _non_iterable_rest() {
|
|
75
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
76
|
-
}
|
|
77
|
-
function _object_spread(target) {
|
|
78
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
79
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
80
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
81
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
82
|
-
}))), ownKeys2.forEach(function(key) {
|
|
83
|
-
_define_property(target, key, source[key]);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return target;
|
|
87
|
-
}
|
|
88
|
-
function ownKeys(object, enumerableOnly) {
|
|
89
|
-
var keys = Object.keys(object);
|
|
90
|
-
if (Object.getOwnPropertySymbols) {
|
|
91
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
92
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
93
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
94
|
-
})), keys.push.apply(keys, symbols);
|
|
95
|
-
}
|
|
96
|
-
return keys;
|
|
97
|
-
}
|
|
98
|
-
function _object_spread_props(target, source) {
|
|
99
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
100
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
101
|
-
}), target;
|
|
102
|
-
}
|
|
103
|
-
function _object_without_properties(source, excluded) {
|
|
104
|
-
if (source == null) return {};
|
|
105
|
-
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
106
|
-
if (Object.getOwnPropertySymbols) {
|
|
107
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
108
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
109
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
110
|
-
}
|
|
111
|
-
return target;
|
|
112
|
-
}
|
|
113
|
-
function _object_without_properties_loose(source, excluded) {
|
|
114
|
-
if (source == null) return {};
|
|
115
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
116
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
117
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
118
|
-
return target;
|
|
119
|
-
}
|
|
120
|
-
function _sliced_to_array(arr, i) {
|
|
121
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
122
|
-
}
|
|
123
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
124
|
-
if (o) {
|
|
125
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
126
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
127
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
128
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
var ROOT_NAME = "AlertDialog", _createContextScope = _sliced_to_array((0, import_create_context.createContextScope)(ROOT_NAME, [
|
|
38
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require("@tamagui/compose-refs"), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_create_context = require("@tamagui/create-context"), import_dialog = require("@tamagui/dialog"), import_helpers = require("@tamagui/helpers"), import_use_controllable_state = require("@tamagui/use-controllable-state"), React = __toESM(require("react")), import_react_native = require("react-native"), ROOT_NAME = "AlertDialog", [createAlertDialogContext, createAlertDialogScope] = (0, import_create_context.createContextScope)(ROOT_NAME, [
|
|
132
39
|
import_dialog.createDialogScope
|
|
133
|
-
]),
|
|
40
|
+
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core.styled)(import_core.View, {
|
|
134
41
|
name: TRIGGER_NAME
|
|
135
42
|
}), AlertDialogTrigger = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
136
43
|
if (props.__native) {
|
|
137
|
-
var
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"__onPress"
|
|
141
|
-
]);
|
|
142
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeAlertDialogTriggerFrame, _object_spread_props(_object_spread({}, rest), {
|
|
44
|
+
var { __native, onPress, __onPress, ...rest } = props;
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeAlertDialogTriggerFrame, {
|
|
46
|
+
...rest,
|
|
143
47
|
onPress: (0, import_helpers.composeEventHandlers)(onPress, __onPress)
|
|
144
|
-
})
|
|
48
|
+
});
|
|
145
49
|
}
|
|
146
|
-
var __scopeAlertDialog = props
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
50
|
+
var { __scopeAlertDialog, ...triggerProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogTrigger, {
|
|
52
|
+
...dialogScope,
|
|
53
|
+
...triggerProps,
|
|
150
54
|
ref: forwardedRef
|
|
151
|
-
})
|
|
55
|
+
});
|
|
152
56
|
});
|
|
153
57
|
AlertDialogTrigger.displayName = TRIGGER_NAME;
|
|
154
58
|
var PORTAL_NAME = "AlertDialogPortal", AlertDialogPortal = function(props) {
|
|
155
|
-
var __scopeAlertDialog = props
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
59
|
+
var { __scopeAlertDialog, ...portalProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogPortal, {
|
|
61
|
+
...dialogScope,
|
|
62
|
+
...portalProps
|
|
63
|
+
});
|
|
159
64
|
};
|
|
160
65
|
AlertDialogPortal.displayName = PORTAL_NAME;
|
|
161
66
|
var OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = (0, import_core.styled)(import_dialog.DialogOverlayFrame, {
|
|
162
67
|
name: OVERLAY_NAME
|
|
163
68
|
}), AlertDialogOverlay = AlertDialogOverlayFrame.extractable(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
164
|
-
var __scopeAlertDialog = props
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
69
|
+
var { __scopeAlertDialog, ...overlayProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogOverlay, {
|
|
71
|
+
...dialogScope,
|
|
72
|
+
...overlayProps,
|
|
168
73
|
ref: forwardedRef
|
|
169
|
-
})
|
|
74
|
+
});
|
|
170
75
|
}));
|
|
171
76
|
AlertDialogOverlay.displayName = OVERLAY_NAME;
|
|
172
|
-
var CONTENT_NAME = "AlertDialogContent",
|
|
173
|
-
var __scopeAlertDialog = props
|
|
174
|
-
"__scopeAlertDialog",
|
|
175
|
-
"children"
|
|
176
|
-
]), dialogScope = useDialogScope(__scopeAlertDialog), contentRef = React.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), cancelRef = React.useRef(null);
|
|
77
|
+
var CONTENT_NAME = "AlertDialogContent", [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME), AlertDialogContent = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
78
|
+
var { __scopeAlertDialog, children, ...contentProps } = props, dialogScope = useDialogScope(__scopeAlertDialog), contentRef = React.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), cancelRef = React.useRef(null);
|
|
177
79
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogWarningProvider, {
|
|
178
80
|
contentName: CONTENT_NAME,
|
|
179
81
|
titleName: TITLE_NAME,
|
|
@@ -181,10 +83,11 @@ var CONTENT_NAME = "AlertDialogContent", _createAlertDialogContext = _sliced_to_
|
|
|
181
83
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogContentProvider, {
|
|
182
84
|
scope: __scopeAlertDialog,
|
|
183
85
|
cancelRef,
|
|
184
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogContent,
|
|
86
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogContent, {
|
|
185
87
|
// @ts-ignore
|
|
186
|
-
role: "alertdialog"
|
|
187
|
-
|
|
88
|
+
role: "alertdialog",
|
|
89
|
+
...dialogScope,
|
|
90
|
+
...contentProps,
|
|
188
91
|
ref: composedRefs,
|
|
189
92
|
onOpenAutoFocus: (0, import_helpers.composeEventHandlers)(contentProps.onOpenAutoFocus, function(event) {
|
|
190
93
|
if (event.preventDefault(), import_constants.isWeb) {
|
|
@@ -214,68 +117,71 @@ var CONTENT_NAME = "AlertDialogContent", _createAlertDialogContext = _sliced_to_
|
|
|
214
117
|
contentRef
|
|
215
118
|
})
|
|
216
119
|
]
|
|
217
|
-
})
|
|
120
|
+
})
|
|
218
121
|
})
|
|
219
122
|
});
|
|
220
123
|
});
|
|
221
124
|
AlertDialogContent.displayName = CONTENT_NAME;
|
|
222
125
|
var TITLE_NAME = "AlertDialogTitle", AlertDialogTitle = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
223
|
-
var __scopeAlertDialog = props
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
126
|
+
var { __scopeAlertDialog, ...titleProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogTitle, {
|
|
128
|
+
...dialogScope,
|
|
129
|
+
...titleProps,
|
|
227
130
|
ref: forwardedRef
|
|
228
|
-
})
|
|
131
|
+
});
|
|
229
132
|
});
|
|
230
133
|
AlertDialogTitle.displayName = TITLE_NAME;
|
|
231
134
|
var DESCRIPTION_NAME = "AlertDialogDescription", AlertDialogDescription = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
232
|
-
var __scopeAlertDialog = props
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
135
|
+
var { __scopeAlertDialog, ...descriptionProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, {
|
|
137
|
+
...dialogScope,
|
|
138
|
+
...descriptionProps,
|
|
236
139
|
ref: forwardedRef
|
|
237
|
-
})
|
|
140
|
+
});
|
|
238
141
|
});
|
|
239
142
|
AlertDialogDescription.displayName = DESCRIPTION_NAME;
|
|
240
143
|
var ACTION_NAME = "AlertDialogAction", AlertDialogAction = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
241
|
-
var __scopeAlertDialog = props
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
144
|
+
var { __scopeAlertDialog, ...actionProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogClose, {
|
|
146
|
+
...dialogScope,
|
|
147
|
+
...actionProps,
|
|
245
148
|
ref: forwardedRef
|
|
246
|
-
})
|
|
149
|
+
});
|
|
247
150
|
});
|
|
248
151
|
AlertDialogAction.displayName = ACTION_NAME;
|
|
249
152
|
var CANCEL_NAME = "AlertDialogCancel", AlertDialogCancel = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
250
|
-
var __scopeAlertDialog = props
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
153
|
+
var { __scopeAlertDialog, ...cancelProps } = props, { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog), dialogScope = useDialogScope(__scopeAlertDialog), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, cancelRef);
|
|
154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogClose, {
|
|
155
|
+
...dialogScope,
|
|
156
|
+
...cancelProps,
|
|
254
157
|
ref
|
|
255
|
-
})
|
|
158
|
+
});
|
|
256
159
|
});
|
|
257
160
|
AlertDialogCancel.displayName = CANCEL_NAME;
|
|
258
161
|
var DescriptionWarning = function(param) {
|
|
259
|
-
var contentRef = param
|
|
162
|
+
var { contentRef } = param;
|
|
260
163
|
return process.env.NODE_ENV === "development" && React.useEffect(function() {
|
|
261
164
|
var _contentRef_current;
|
|
262
165
|
if (import_constants.isWeb) {
|
|
263
166
|
var hasDescription = document.getElementById((_contentRef_current = contentRef.current) === null || _contentRef_current === void 0 ? void 0 : _contentRef_current.getAttribute("aria-describedby"));
|
|
264
|
-
hasDescription || console.warn(
|
|
167
|
+
hasDescription || console.warn(`\`${CONTENT_NAME}\` requires a description for the component to be accessible for screen reader users.
|
|
168
|
+
|
|
169
|
+
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.
|
|
170
|
+
|
|
171
|
+
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.
|
|
172
|
+
|
|
173
|
+
For more information, see https://tamagui.dev/docs/components/alert-dialog`);
|
|
265
174
|
}
|
|
266
175
|
}, [
|
|
267
176
|
contentRef
|
|
268
177
|
]), null;
|
|
269
178
|
}, AlertDialogInner = function(props) {
|
|
270
|
-
var __scopeAlertDialog = props
|
|
271
|
-
"__scopeAlertDialog",
|
|
272
|
-
"native"
|
|
273
|
-
]), dialogScope = useDialogScope(__scopeAlertDialog), _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
|
|
179
|
+
var { __scopeAlertDialog, native, ...alertDialogProps } = props, dialogScope = useDialogScope(__scopeAlertDialog), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
274
180
|
prop: props.open,
|
|
275
181
|
defaultProp: props.defaultOpen || !1,
|
|
276
182
|
onChange: props.onOpenChange,
|
|
277
183
|
transition: !0
|
|
278
|
-
}),
|
|
184
|
+
}), triggerElement = null, title = "", description = "", buttons = [];
|
|
279
185
|
return forEachChildDeep(React.Children.toArray(props.children), function(child) {
|
|
280
186
|
if (!/* @__PURE__ */ React.isValidElement(child)) return !1;
|
|
281
187
|
var name = (0, import_core.isTamaguiElement)(child) ? child.type.staticConfig.componentName : child.type.displayName;
|
|
@@ -315,9 +221,11 @@ var DescriptionWarning = function(param) {
|
|
|
315
221
|
__onPress: function() {
|
|
316
222
|
setOpen(!0);
|
|
317
223
|
}
|
|
318
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog,
|
|
224
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog, {
|
|
225
|
+
...dialogScope,
|
|
226
|
+
...alertDialogProps,
|
|
319
227
|
modal: !0
|
|
320
|
-
})
|
|
228
|
+
});
|
|
321
229
|
};
|
|
322
230
|
function forEachChildDeep(children, onChild) {
|
|
323
231
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/alert-dialog/src/AlertDialog.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;uDAGA,sBAAgC,kCAChC,mBAAiD,+BAEjD,cAA0D,0BAE1D,wBAAmC,oCAWnC,gBAYO,4BACP,iBAA2D,6BAC3D,gCAAqC,4CACrC,QAAuB,2BACvB,sBAAsB
|
|
5
|
-
"names": ["ROOT_NAME", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;uDAGA,sBAAgC,kCAChC,mBAAiD,+BAEjD,cAA0D,0BAE1D,wBAAmC,oCAWnC,gBAYO,4BACP,iBAA2D,6BAC3D,gCAAqC,4CACrC,QAAuB,2BACvB,sBAAsB,yBAMhBA,YAAY,eAGZ,CAACC,0BAA0BC,sBAAAA,QAA0BC,0CAAmBH,WAAW;EACvFI;CACD,GAEKC,qBAAiBD,iCAAAA,GAUjBE,eAAe,sBAIfC,oCAAgCC,oBAAOC,kBAAM;EACjDC,MAAMJ;AACR,CAAA,GAEMK,qBAAqBC,sBAAMC,WAC/B,SAACC,OAA6CC,cAAAA;AAC5C,MAAID,MAAM,UAAa;AACrB,QAAM,EAAEE,U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aAAaC,OAAAA;EAEpC,GAAG;IAACd;IAAQE;GAAK,GAEbF,SACKnF,sBAAM2G,aAAab,gBAAgB;IACxCxF,WAAW,WAAA;AACTgF,cAAQ,EAAA;IACV;EACF,CAAA,IAIG,uCAAA9E,KAAC4G,sBAAAA;IAAQ,GAAGxG;IAAc,GAAGwE;IAAkBiC,OAAK;;AAC7D;AAEA,SAASnB,iBACPnE,UACAuF,SAA4C;MAEvC,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,aAAK,YAAevF,SAAAA,OAAAA,QAAAA,EAAAA,GAAf,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAyB;AAAzB,UAAMsE,QAAN,MAAA;AACH,MAAKrG,sBAAMsG,eAAeD,KAAAA,KACrBiB,QAAQjB,KAAAA,KACTA,MAAMnG,MAAM6B,YACdmE,iBAAiBlG,MAAMmG,SAASC,QAAQC,MAAMnG,MAAM6B,QAAQ,GAAGuF,OAAAA;IAEnE;;AANK,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAOP;AAEA,SAASV,kBAAkBP,OAAyB;AAClD,MAAIkB,SAAS;AACbrB,0BAAiBlG,MAAMmG,SAASC,QAAQC,KAAAA,GAAQ,SAACA,QAAAA;AAC/C,WAAI,OAAOA,OAAMnG,MAAM6B,YAAa,YAClCwF,SAASlB,OAAMnG,MAAM6B,UACd,MAEF;EACT,CAAA,GACOwF;AACT;AAEA,IAAMC,kBAAcC,qCAAqBvC,kBAAkB;EACzDwC,SAAS3H;EACT4H,QAAQ1G;EACR2G,SAASrG;EACTsG,SAAS/F;EACTgG,QAAQzD;EACR0D,QAAQtD;EACRuD,OAAOnE;EACPoE,aAAahE;AACf,CAAA;AAEAuD,YAAYzG,cAAc3B;",
|
|
5
|
+
"names": ["ROOT_NAME", "createAlertDialogContext", "createAlertDialogScope", "createContextScope", "createDialogScope", "useDialogScope", "TRIGGER_NAME", "NativeAlertDialogTriggerFrame", "styled", "View", "name", "AlertDialogTrigger", "React", "forwardRef", "props", "forwardedRef", "__native", "onPress", "__onPress", "rest", "_jsx", "composeEventHandlers", "__scopeAlertDialog", "triggerProps", "dialogScope", "DialogTrigger", "ref", "displayName", "PORTAL_NAME", "AlertDialogPortal", "portalProps", "DialogPortal", "OVERLAY_NAME", "AlertDialogOverlayFrame", "DialogOverlayFrame", "AlertDialogOverlay", "extractable", "overlayProps", "DialogOverlay", "CONTENT_NAME", "AlertDialogContentProvider", "useAlertDialogContentContext", "AlertDialogContent", "children", "contentProps", "contentRef", "useRef", "composedRefs", "useComposedRefs", "cancelRef", "DialogWarningProvider", "contentName", "titleName", "TITLE_NAME", "docsSlug", "scope", "_jsxs", "DialogContent", "role", "onOpenAutoFocus", "event", "preventDefault", "isWeb", "current", "focus", "preventScroll", "onPointerDownOutside", "onInteractOutside", "Slottable", "process", "env", "NODE_ENV", "DescriptionWarning", "AlertDialogTitle", "titleProps", "DialogTitle", "DESCRIPTION_NAME", "AlertDialogDescription", "descriptionProps", "DialogDescription", "ACTION_NAME", "AlertDialogAction", "actionProps", "DialogClose", "CANCEL_NAME", "AlertDialogCancel", "cancelProps", "useEffect", "hasDescription", "document", "getElementById", "getAttribute", "console", "warn", "AlertDialogInner", "native", "alertDialogProps", "open", "setOpen", "useControllableState", "prop", "defaultProp", "defaultOpen", "onChange", "onOpenChange", "transition", "triggerElement", "title", "description", "buttons", "forEachChildDeep", "Children", "toArray", "child", "isValidElement", "isTamaguiElement", "type", "staticConfig", "componentName", "cloneElement", "getStringChildren", "style", "text", "childProps", "push", "useIsomorphicLayoutEffect", "Alert", "alert", "Dialog", "modal", "onChild", "string", "AlertDialog", "withStaticProperties", "Trigger", "Portal", "Overlay", "Content", "Action", "Cancel", "Title", "Description"]
|
|
6
6
|
}
|