@tamagui/alert-dialog 1.46.2 → 1.47.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/alert-dialog",
3
- "version": "1.46.2",
3
+ "version": "1.47.0",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -29,28 +29,28 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@tamagui/animate-presence": "1.46.2",
33
- "@tamagui/aria-hidden": "1.46.2",
34
- "@tamagui/compose-refs": "1.46.2",
35
- "@tamagui/core": "1.46.2",
36
- "@tamagui/create-context": "1.46.2",
37
- "@tamagui/dialog": "1.46.2",
38
- "@tamagui/dismissable": "1.46.2",
39
- "@tamagui/focus-scope": "1.46.2",
40
- "@tamagui/polyfill-dev": "1.46.2",
41
- "@tamagui/popper": "1.46.2",
42
- "@tamagui/portal": "1.46.2",
43
- "@tamagui/remove-scroll": "1.46.2",
44
- "@tamagui/stacks": "1.46.2",
45
- "@tamagui/text": "1.46.2",
46
- "@tamagui/use-controllable-state": "1.46.2"
32
+ "@tamagui/animate-presence": "1.47.0",
33
+ "@tamagui/aria-hidden": "1.47.0",
34
+ "@tamagui/compose-refs": "1.47.0",
35
+ "@tamagui/core": "1.47.0",
36
+ "@tamagui/create-context": "1.47.0",
37
+ "@tamagui/dialog": "1.47.0",
38
+ "@tamagui/dismissable": "1.47.0",
39
+ "@tamagui/focus-scope": "1.47.0",
40
+ "@tamagui/polyfill-dev": "1.47.0",
41
+ "@tamagui/popper": "1.47.0",
42
+ "@tamagui/portal": "1.47.0",
43
+ "@tamagui/remove-scroll": "1.47.0",
44
+ "@tamagui/stacks": "1.47.0",
45
+ "@tamagui/text": "1.47.0",
46
+ "@tamagui/use-controllable-state": "1.47.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": "*",
50
50
  "react-native": "*"
51
51
  },
52
52
  "devDependencies": {
53
- "@tamagui/build": "1.46.2",
53
+ "@tamagui/build": "1.47.0",
54
54
  "react": "^18.2.0",
55
55
  "react-native": "^0.72.1"
56
56
  },
@@ -1,294 +0,0 @@
1
- import { useComposedRefs } from "@tamagui/compose-refs";
2
- import {
3
- Slottable,
4
- View,
5
- composeEventHandlers,
6
- isTamaguiElement,
7
- isWeb,
8
- styled,
9
- useIsomorphicLayoutEffect,
10
- withStaticProperties
11
- } from "@tamagui/core";
12
- import { createContextScope } from "@tamagui/create-context";
13
- import {
14
- Dialog,
15
- DialogClose,
16
- DialogContent,
17
- DialogDescription,
18
- DialogOverlay,
19
- DialogOverlayFrame,
20
- DialogPortal,
21
- DialogTitle,
22
- DialogTrigger,
23
- DialogWarningProvider,
24
- createDialogScope
25
- } from "@tamagui/dialog";
26
- import { useControllableState } from "@tamagui/use-controllable-state";
27
- import * as React from "react";
28
- import { Alert } from "react-native";
29
- const ROOT_NAME = "AlertDialog";
30
- const [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [
31
- createDialogScope
32
- ]);
33
- const useDialogScope = createDialogScope();
34
- const TRIGGER_NAME = "AlertDialogTrigger";
35
- const NativeAlertDialogTriggerFrame = styled(View, {
36
- name: TRIGGER_NAME
37
- });
38
- const AlertDialogTrigger = React.forwardRef(
39
- (props, forwardedRef) => {
40
- if (props["__native"]) {
41
- const { __native, onPress, __onPress, ...rest } = props;
42
- return <NativeAlertDialogTriggerFrame
43
- {...rest}
44
- onPress={composeEventHandlers(onPress, __onPress)}
45
- />;
46
- }
47
- const { __scopeAlertDialog, ...triggerProps } = props;
48
- const dialogScope = useDialogScope(__scopeAlertDialog);
49
- return <DialogTrigger {...dialogScope} {...triggerProps} ref={forwardedRef} />;
50
- }
51
- );
52
- AlertDialogTrigger.displayName = TRIGGER_NAME;
53
- const PORTAL_NAME = "AlertDialogPortal";
54
- const AlertDialogPortal = (props) => {
55
- const { __scopeAlertDialog, ...portalProps } = props;
56
- const dialogScope = useDialogScope(__scopeAlertDialog);
57
- return <DialogPortal {...dialogScope} {...portalProps} />;
58
- };
59
- AlertDialogPortal.displayName = PORTAL_NAME;
60
- const OVERLAY_NAME = "AlertDialogOverlay";
61
- const AlertDialogOverlayFrame = styled(DialogOverlayFrame, {
62
- name: OVERLAY_NAME
63
- });
64
- const AlertDialogOverlay = AlertDialogOverlayFrame.extractable(
65
- React.forwardRef(
66
- (props, forwardedRef) => {
67
- const { __scopeAlertDialog, ...overlayProps } = props;
68
- const dialogScope = useDialogScope(__scopeAlertDialog);
69
- return <DialogOverlay {...dialogScope} {...overlayProps} ref={forwardedRef} />;
70
- }
71
- )
72
- );
73
- AlertDialogOverlay.displayName = OVERLAY_NAME;
74
- const CONTENT_NAME = "AlertDialogContent";
75
- const [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);
76
- const AlertDialogContent = React.forwardRef(
77
- (props, forwardedRef) => {
78
- const { __scopeAlertDialog, children, ...contentProps } = props;
79
- const dialogScope = useDialogScope(__scopeAlertDialog);
80
- const contentRef = React.useRef(null);
81
- const composedRefs = useComposedRefs(forwardedRef, contentRef);
82
- const cancelRef = React.useRef(null);
83
- return <DialogWarningProvider
84
- contentName={CONTENT_NAME}
85
- titleName={TITLE_NAME}
86
- docsSlug="alert-dialog"
87
- ><AlertDialogContentProvider scope={__scopeAlertDialog} cancelRef={cancelRef}><DialogContent
88
- role="alertdialog"
89
- {...dialogScope}
90
- {...contentProps}
91
- ref={composedRefs}
92
- onOpenAutoFocus={composeEventHandlers(
93
- contentProps.onOpenAutoFocus,
94
- (event) => {
95
- event.preventDefault();
96
- if (isWeb) {
97
- cancelRef.current?.focus({ preventScroll: true });
98
- }
99
- }
100
- )}
101
- onPointerDownOutside={(event) => event.preventDefault()}
102
- onInteractOutside={(event) => event.preventDefault()}
103
- >
104
- {
105
- /**
106
- * We have to use `Slottable` here as we cannot wrap the `AlertDialogContentProvider`
107
- * around everything, otherwise the `DescriptionWarning` would be rendered straight away.
108
- * This is because we want the accessibility checks to run only once the content is actually
109
- * open and that behaviour is already encapsulated in `DialogContent`.
110
- */
111
- }
112
- <Slottable>{children}</Slottable>
113
- {process.env.NODE_ENV === "development" && <DescriptionWarning contentRef={contentRef} />}
114
- </DialogContent></AlertDialogContentProvider></DialogWarningProvider>;
115
- }
116
- );
117
- AlertDialogContent.displayName = CONTENT_NAME;
118
- const TITLE_NAME = "AlertDialogTitle";
119
- const AlertDialogTitle = React.forwardRef(
120
- (props, forwardedRef) => {
121
- const { __scopeAlertDialog, ...titleProps } = props;
122
- const dialogScope = useDialogScope(__scopeAlertDialog);
123
- return <DialogTitle {...dialogScope} {...titleProps} ref={forwardedRef} />;
124
- }
125
- );
126
- AlertDialogTitle.displayName = TITLE_NAME;
127
- const DESCRIPTION_NAME = "AlertDialogDescription";
128
- const AlertDialogDescription = React.forwardRef((props, forwardedRef) => {
129
- const { __scopeAlertDialog, ...descriptionProps } = props;
130
- const dialogScope = useDialogScope(__scopeAlertDialog);
131
- return <DialogDescription {...dialogScope} {...descriptionProps} ref={forwardedRef} />;
132
- });
133
- AlertDialogDescription.displayName = DESCRIPTION_NAME;
134
- const ACTION_NAME = "AlertDialogAction";
135
- const AlertDialogAction = React.forwardRef(
136
- (props, forwardedRef) => {
137
- const { __scopeAlertDialog, ...actionProps } = props;
138
- const dialogScope = useDialogScope(__scopeAlertDialog);
139
- return <DialogClose {...dialogScope} {...actionProps} ref={forwardedRef} />;
140
- }
141
- );
142
- AlertDialogAction.displayName = ACTION_NAME;
143
- const CANCEL_NAME = "AlertDialogCancel";
144
- const AlertDialogCancel = React.forwardRef(
145
- (props, forwardedRef) => {
146
- const { __scopeAlertDialog, ...cancelProps } = props;
147
- const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);
148
- const dialogScope = useDialogScope(__scopeAlertDialog);
149
- const ref = useComposedRefs(forwardedRef, cancelRef);
150
- return <DialogClose {...dialogScope} {...cancelProps} ref={ref} />;
151
- }
152
- );
153
- AlertDialogCancel.displayName = CANCEL_NAME;
154
- const DescriptionWarning = ({ contentRef }) => {
155
- if (process.env.NODE_ENV === "development") {
156
- React.useEffect(() => {
157
- if (!isWeb)
158
- return;
159
- const hasDescription = document.getElementById(
160
- // @ts-ignore
161
- // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
162
- contentRef.current?.getAttribute("aria-describedby")
163
- );
164
- if (!hasDescription) {
165
- console.warn(`\`${CONTENT_NAME}\` requires a description for the component to be accessible for screen reader users.
166
-
167
- 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.
168
-
169
- 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.
170
-
171
- For more information, see https://tamagui.dev/docs/components/alert-dialog`);
172
- }
173
- }, [contentRef]);
174
- }
175
- return null;
176
- };
177
- const AlertDialogInner = (props) => {
178
- const { __scopeAlertDialog, native, ...alertDialogProps } = props;
179
- const dialogScope = useDialogScope(__scopeAlertDialog);
180
- if (process.env.TAMAGUI_TARGET === "native") {
181
- const [open, setOpen] = useControllableState({
182
- prop: props.open,
183
- defaultProp: props.defaultOpen || false,
184
- onChange: props.onOpenChange,
185
- transition: true
186
- });
187
- let triggerElement = null;
188
- let title = "";
189
- let description = "";
190
- const buttons = [];
191
- forEachChildDeep(React.Children.toArray(props.children), (child) => {
192
- if (!React.isValidElement(child))
193
- return false;
194
- const name = isTamaguiElement(child) ? child.type.staticConfig.componentName : child.type["displayName"];
195
- switch (name) {
196
- case TRIGGER_NAME: {
197
- triggerElement = React.cloneElement(child, {
198
- __native: true
199
- });
200
- return false;
201
- }
202
- case TITLE_NAME: {
203
- title = getStringChildren(child);
204
- return false;
205
- }
206
- case DESCRIPTION_NAME: {
207
- description = getStringChildren(child);
208
- return false;
209
- }
210
- case ACTION_NAME:
211
- case CANCEL_NAME: {
212
- const style = name === ACTION_NAME ? "default" : "cancel";
213
- const text = getStringChildren(child);
214
- const onPress = () => {
215
- const childProps = child.props;
216
- childProps?.onPress?.({ native: true });
217
- setOpen(false);
218
- };
219
- buttons.push({
220
- style,
221
- text,
222
- // @ts-ignore
223
- onPress
224
- });
225
- return false;
226
- }
227
- default: {
228
- return true;
229
- }
230
- }
231
- });
232
- useIsomorphicLayoutEffect(() => {
233
- if (!open || !native)
234
- return;
235
- if (title || description) {
236
- Alert.alert(title, description, buttons);
237
- }
238
- }, [native, open]);
239
- if (native) {
240
- return React.cloneElement(triggerElement, {
241
- __onPress: () => {
242
- setOpen(true);
243
- }
244
- });
245
- }
246
- }
247
- return <Dialog {...dialogScope} {...alertDialogProps} modal />;
248
- };
249
- function forEachChildDeep(children, onChild) {
250
- for (const child of children) {
251
- if (!React.isValidElement(child))
252
- continue;
253
- if (!onChild(child))
254
- continue;
255
- if (child.props.children) {
256
- forEachChildDeep(React.Children.toArray(child.props.children), onChild);
257
- }
258
- }
259
- }
260
- function getStringChildren(child) {
261
- let string = "";
262
- forEachChildDeep(React.Children.toArray(child), (child2) => {
263
- if (typeof child2.props.children === "string") {
264
- string = child2.props.children;
265
- return false;
266
- }
267
- return true;
268
- });
269
- return string;
270
- }
271
- const AlertDialog = withStaticProperties(AlertDialogInner, {
272
- Trigger: AlertDialogTrigger,
273
- Portal: AlertDialogPortal,
274
- Overlay: AlertDialogOverlay,
275
- Content: AlertDialogContent,
276
- Action: AlertDialogAction,
277
- Cancel: AlertDialogCancel,
278
- Title: AlertDialogTitle,
279
- Description: AlertDialogDescription
280
- });
281
- AlertDialog.displayName = ROOT_NAME;
282
- export {
283
- AlertDialog,
284
- AlertDialogAction,
285
- AlertDialogCancel,
286
- AlertDialogContent,
287
- AlertDialogDescription,
288
- AlertDialogOverlay,
289
- AlertDialogPortal,
290
- AlertDialogTitle,
291
- AlertDialogTrigger,
292
- createAlertDialogScope
293
- };
294
- //# sourceMappingURL=AlertDialog.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/AlertDialog.tsx"],
4
- "mappings": "AAGA,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,0BAA0B;AAC1C;AAAA,EACE;AAAA,EACA;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,EACA;AAAA,EAEA;AAAA,EAGA;AAAA,EAEA;AAAA,EAEA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,4BAA4B;AACrC,YAAY,WAAW;AACvB,SAAS,aAAa;AAMtB,MAAM,YAAY;AAGlB,MAAM,CAAC,0BAA0B,sBAAsB,IAAI,mBAAmB,WAAW;AAAA,EACvF;AACF,CAAC;AAED,MAAM,iBAAiB,kBAAkB;AAUzC,MAAM,eAAe;AAIrB,MAAM,gCAAgC,OAAO,MAAM;AAAA,EACjD,MAAM;AACR,CAAC;AAED,MAAM,qBAAqB,MAAM;AAAA,EAC/B,CAAC,OAA6C,iBAAiB;AAC7D,QAAI,MAAM,UAAU,GAAG;AACrB,YAAM,EAAE,UAAU,SAAS,WAAW,GAAG,KAAK,IAAI;AAClD,aACE,CAAC;AAAA,YACK;AAAA,QACJ,SAAS,qBAAqB,SAAS,SAAS;AAAA,MAClD;AAAA,IAEJ;AAEA,UAAM,EAAE,oBAAoB,GAAG,aAAa,IAAI;AAChD,UAAM,cAAc,eAAe,kBAAkB;AACrD,WAAO,CAAC,kBAAkB,iBAAiB,cAAc,KAAK,cAAc;AAAA,EAC9E;AACF;AAEA,mBAAmB,cAAc;AAMjC,MAAM,cAAc;AAIpB,MAAM,oBAAsD,CAC1D,UACG;AACH,QAAM,EAAE,oBAAoB,GAAG,YAAY,IAAI;AAC/C,QAAM,cAAc,eAAe,k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BAAiB,MAAM,SAAS,QAAQ,KAAK,GAAG,CAACA,WAAU;AACzD,QAAI,OAAOA,OAAM,MAAM,aAAa,UAAU;AAC5C,eAASA,OAAM,MAAM;AACrB,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT,CAAC;AACD,SAAO;AACT;AAEA,MAAM,cAAc,qBAAqB,kBAAkB;AAAA,EACzD,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,aAAa;AACf,CAAC;AAED,YAAY,cAAc;",
5
- "names": ["child"]
6
- }
@@ -1,2 +0,0 @@
1
- export * from "./AlertDialog";
2
- //# sourceMappingURL=index.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;",
5
- "names": []
6
- }