@tamagui/alert-dialog 1.26.0 → 1.27.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.26.0",
3
+ "version": "1.27.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.26.0",
33
- "@tamagui/aria-hidden": "1.26.0",
34
- "@tamagui/compose-refs": "1.26.0",
35
- "@tamagui/core": "1.26.0",
36
- "@tamagui/create-context": "1.26.0",
37
- "@tamagui/dialog": "1.26.0",
38
- "@tamagui/dismissable": "1.26.0",
39
- "@tamagui/focus-scope": "1.26.0",
40
- "@tamagui/polyfill-dev": "1.26.0",
41
- "@tamagui/popper": "1.26.0",
42
- "@tamagui/portal": "1.26.0",
43
- "@tamagui/remove-scroll": "1.26.0",
44
- "@tamagui/stacks": "1.26.0",
45
- "@tamagui/text": "1.26.0",
46
- "@tamagui/use-controllable-state": "1.26.0"
32
+ "@tamagui/animate-presence": "1.27.0",
33
+ "@tamagui/aria-hidden": "1.27.0",
34
+ "@tamagui/compose-refs": "1.27.0",
35
+ "@tamagui/core": "1.27.0",
36
+ "@tamagui/create-context": "1.27.0",
37
+ "@tamagui/dialog": "1.27.0",
38
+ "@tamagui/dismissable": "1.27.0",
39
+ "@tamagui/focus-scope": "1.27.0",
40
+ "@tamagui/polyfill-dev": "1.27.0",
41
+ "@tamagui/popper": "1.27.0",
42
+ "@tamagui/portal": "1.27.0",
43
+ "@tamagui/remove-scroll": "1.27.0",
44
+ "@tamagui/stacks": "1.27.0",
45
+ "@tamagui/text": "1.27.0",
46
+ "@tamagui/use-controllable-state": "1.27.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": "*",
50
50
  "react-native": "*"
51
51
  },
52
52
  "devDependencies": {
53
- "@tamagui/build": "1.26.0",
53
+ "@tamagui/build": "1.27.0",
54
54
  "react": "^18.2.0",
55
55
  "react-native": "^0.71.7"
56
56
  },
@@ -1,301 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { useComposedRefs } from "@tamagui/compose-refs";
3
- import {
4
- Slottable,
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 { YStack } from "@tamagui/stacks";
27
- import { useControllableState } from "@tamagui/use-controllable-state";
28
- import * as React from "react";
29
- import { Alert } from "react-native";
30
- const ROOT_NAME = "AlertDialog";
31
- const [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [
32
- createDialogScope
33
- ]);
34
- const useDialogScope = createDialogScope();
35
- const TRIGGER_NAME = "AlertDialogTrigger";
36
- const NativeAlertDialogTriggerFrame = styled(YStack, {
37
- name: "DialogTrigger"
38
- });
39
- const AlertDialogTrigger = React.forwardRef(
40
- (props, forwardedRef) => {
41
- if (props["__native"]) {
42
- const { __native, onPress, __onPress, ...rest } = props;
43
- return /* @__PURE__ */ jsx(
44
- NativeAlertDialogTriggerFrame,
45
- {
46
- ...rest,
47
- onPress: composeEventHandlers(onPress, __onPress)
48
- }
49
- );
50
- }
51
- const { __scopeAlertDialog, ...triggerProps } = props;
52
- const dialogScope = useDialogScope(__scopeAlertDialog);
53
- return /* @__PURE__ */ jsx(DialogTrigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });
54
- }
55
- );
56
- AlertDialogTrigger.displayName = TRIGGER_NAME;
57
- const PORTAL_NAME = "AlertDialogPortal";
58
- const AlertDialogPortal = (props) => {
59
- const { __scopeAlertDialog, ...portalProps } = props;
60
- const dialogScope = useDialogScope(__scopeAlertDialog);
61
- return /* @__PURE__ */ jsx(DialogPortal, { ...dialogScope, ...portalProps });
62
- };
63
- AlertDialogPortal.displayName = PORTAL_NAME;
64
- const OVERLAY_NAME = "AlertDialogOverlay";
65
- const AlertDialogOverlayFrame = styled(DialogOverlayFrame, {
66
- name: OVERLAY_NAME
67
- });
68
- const AlertDialogOverlay = AlertDialogOverlayFrame.extractable(
69
- React.forwardRef(
70
- (props, forwardedRef) => {
71
- const { __scopeAlertDialog, ...overlayProps } = props;
72
- const dialogScope = useDialogScope(__scopeAlertDialog);
73
- return /* @__PURE__ */ jsx(DialogOverlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });
74
- }
75
- )
76
- );
77
- AlertDialogOverlay.displayName = OVERLAY_NAME;
78
- const CONTENT_NAME = "AlertDialogContent";
79
- const [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);
80
- const AlertDialogContent = React.forwardRef(
81
- (props, forwardedRef) => {
82
- const { __scopeAlertDialog, children, ...contentProps } = props;
83
- const dialogScope = useDialogScope(__scopeAlertDialog);
84
- const contentRef = React.useRef(null);
85
- const composedRefs = useComposedRefs(forwardedRef, contentRef);
86
- const cancelRef = React.useRef(null);
87
- return /* @__PURE__ */ jsx(
88
- DialogWarningProvider,
89
- {
90
- contentName: CONTENT_NAME,
91
- titleName: TITLE_NAME,
92
- docsSlug: "alert-dialog",
93
- children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(
94
- DialogContent,
95
- {
96
- role: "alertdialog",
97
- ...dialogScope,
98
- ...contentProps,
99
- ref: composedRefs,
100
- onOpenAutoFocus: composeEventHandlers(
101
- contentProps.onOpenAutoFocus,
102
- (event) => {
103
- var _a;
104
- event.preventDefault();
105
- if (isWeb) {
106
- (_a = cancelRef.current) == null ? void 0 : _a.focus({ preventScroll: true });
107
- }
108
- }
109
- ),
110
- onPointerDownOutside: (event) => event.preventDefault(),
111
- onInteractOutside: (event) => event.preventDefault(),
112
- children: [
113
- /* @__PURE__ */ jsx(Slottable, { children }),
114
- process.env.NODE_ENV === "development" && /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })
115
- ]
116
- }
117
- ) })
118
- }
119
- );
120
- }
121
- );
122
- AlertDialogContent.displayName = CONTENT_NAME;
123
- const TITLE_NAME = "AlertDialogTitle";
124
- const AlertDialogTitle = React.forwardRef(
125
- (props, forwardedRef) => {
126
- const { __scopeAlertDialog, ...titleProps } = props;
127
- const dialogScope = useDialogScope(__scopeAlertDialog);
128
- return /* @__PURE__ */ jsx(DialogTitle, { ...dialogScope, ...titleProps, ref: forwardedRef });
129
- }
130
- );
131
- AlertDialogTitle.displayName = TITLE_NAME;
132
- const DESCRIPTION_NAME = "AlertDialogDescription";
133
- const AlertDialogDescription = React.forwardRef((props, forwardedRef) => {
134
- const { __scopeAlertDialog, ...descriptionProps } = props;
135
- const dialogScope = useDialogScope(__scopeAlertDialog);
136
- return /* @__PURE__ */ jsx(DialogDescription, { ...dialogScope, ...descriptionProps, ref: forwardedRef });
137
- });
138
- AlertDialogDescription.displayName = DESCRIPTION_NAME;
139
- const ACTION_NAME = "AlertDialogAction";
140
- const AlertDialogAction = React.forwardRef(
141
- (props, forwardedRef) => {
142
- const { __scopeAlertDialog, ...actionProps } = props;
143
- const dialogScope = useDialogScope(__scopeAlertDialog);
144
- return /* @__PURE__ */ jsx(DialogClose, { ...dialogScope, ...actionProps, ref: forwardedRef });
145
- }
146
- );
147
- AlertDialogAction.displayName = ACTION_NAME;
148
- const CANCEL_NAME = "AlertDialogCancel";
149
- const AlertDialogCancel = React.forwardRef(
150
- (props, forwardedRef) => {
151
- const { __scopeAlertDialog, ...cancelProps } = props;
152
- const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);
153
- const dialogScope = useDialogScope(__scopeAlertDialog);
154
- const ref = useComposedRefs(forwardedRef, cancelRef);
155
- return /* @__PURE__ */ jsx(DialogClose, { ...dialogScope, ...cancelProps, ref });
156
- }
157
- );
158
- AlertDialogCancel.displayName = CANCEL_NAME;
159
- const DescriptionWarning = ({ contentRef }) => {
160
- if (process.env.NODE_ENV === "development") {
161
- React.useEffect(() => {
162
- var _a;
163
- if (!isWeb)
164
- return;
165
- const hasDescription = document.getElementById(
166
- // @ts-ignore
167
- // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
168
- (_a = contentRef.current) == null ? void 0 : _a.getAttribute("aria-describedby")
169
- );
170
- if (!hasDescription) {
171
- console.warn(`\`${CONTENT_NAME}\` requires a description for the component to be accessible for screen reader users.
172
-
173
- 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.
174
-
175
- 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.
176
-
177
- For more information, see https://tamagui.dev/docs/components/alert-dialog`);
178
- }
179
- }, [contentRef]);
180
- }
181
- return null;
182
- };
183
- const AlertDialogInner = (props) => {
184
- const { __scopeAlertDialog, native, ...alertDialogProps } = props;
185
- const dialogScope = useDialogScope(__scopeAlertDialog);
186
- if (process.env.TAMAGUI_TARGET === "native") {
187
- const [open, setOpen] = useControllableState({
188
- prop: props.open,
189
- defaultProp: props.defaultOpen || false,
190
- onChange: props.onOpenChange,
191
- transition: true
192
- });
193
- let triggerElement = null;
194
- let title = "";
195
- let description = "";
196
- const buttons = [];
197
- forEachChildDeep(React.Children.toArray(props.children), (child) => {
198
- if (!React.isValidElement(child))
199
- return false;
200
- const name = isTamaguiElement(child) ? child.type.staticConfig.componentName : child.type["displayName"];
201
- switch (name) {
202
- case TRIGGER_NAME: {
203
- triggerElement = React.cloneElement(child, {
204
- __native: true
205
- });
206
- return false;
207
- }
208
- case TITLE_NAME: {
209
- title = getStringChildren(child);
210
- return false;
211
- }
212
- case DESCRIPTION_NAME: {
213
- description = getStringChildren(child);
214
- return false;
215
- }
216
- case ACTION_NAME:
217
- case CANCEL_NAME: {
218
- const style = name === ACTION_NAME ? "default" : "cancel";
219
- const text = getStringChildren(child);
220
- const onPress = () => {
221
- var _a;
222
- const childProps = child.props;
223
- (_a = childProps == null ? void 0 : childProps.onPress) == null ? void 0 : _a.call(childProps, { native: true });
224
- setOpen(false);
225
- };
226
- buttons.push({
227
- style,
228
- text,
229
- // @ts-ignore
230
- onPress
231
- });
232
- return false;
233
- }
234
- default: {
235
- return true;
236
- }
237
- }
238
- });
239
- useIsomorphicLayoutEffect(() => {
240
- if (!open || !native)
241
- return;
242
- if (title || description) {
243
- Alert.alert(title, description, buttons);
244
- }
245
- }, [native, open]);
246
- if (native) {
247
- return React.cloneElement(triggerElement, {
248
- __onPress: () => {
249
- setOpen(true);
250
- }
251
- });
252
- }
253
- }
254
- return /* @__PURE__ */ jsx(Dialog, { ...dialogScope, ...alertDialogProps, modal: true });
255
- };
256
- function forEachChildDeep(children, onChild) {
257
- for (const child of children) {
258
- if (!React.isValidElement(child))
259
- continue;
260
- if (!onChild(child))
261
- continue;
262
- if (child.props.children) {
263
- forEachChildDeep(React.Children.toArray(child.props.children), onChild);
264
- }
265
- }
266
- }
267
- function getStringChildren(child) {
268
- let string = "";
269
- forEachChildDeep(React.Children.toArray(child), (child2) => {
270
- if (typeof child2.props.children === "string") {
271
- string = child2.props.children;
272
- return false;
273
- }
274
- return true;
275
- });
276
- return string;
277
- }
278
- const AlertDialog = withStaticProperties(AlertDialogInner, {
279
- Trigger: AlertDialogTrigger,
280
- Portal: AlertDialogPortal,
281
- Overlay: AlertDialogOverlay,
282
- Content: AlertDialogContent,
283
- Action: AlertDialogAction,
284
- Cancel: AlertDialogCancel,
285
- Title: AlertDialogTitle,
286
- Description: AlertDialogDescription
287
- });
288
- AlertDialog.displayName = ROOT_NAME;
289
- export {
290
- AlertDialog,
291
- AlertDialogAction,
292
- AlertDialogCancel,
293
- AlertDialogContent,
294
- AlertDialogDescription,
295
- AlertDialogOverlay,
296
- AlertDialogPortal,
297
- AlertDialogTitle,
298
- AlertDialogTrigger,
299
- createAlertDialogScope
300
- };
301
- //# sourceMappingURL=AlertDialog.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/AlertDialog.tsx"],
4
- "mappings": "AA2EQ,cAwFE,YAxFF;AAxER,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAEA;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;AACP,SAAS,cAAc;AACvB,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,QAAQ;AAAA,EACnD,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;AAAA,QAAC;AAAA;AAAA,UACE,GAAG;AAAA,UACJ,SAAS,qBAAqB,SAAS,SAAS;AAAA;AAAA,MAClD;AAAA,IAEJ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AA,EACF;AAEA,SAAO,oBAAC,UAAQ,GAAG,aAAc,GAAG,kBAAkB,OAAK,MAAC;AAC9D;AAEA,SAAS,iBACP,UACA,SACA;AACA,aAAW,SAAS,UAAU;AAC5B,QAAI,CAAC,MAAM,eAAe,KAAK;AAAG;AAClC,QAAI,CAAC,QAAQ,KAAK;AAAG;AACrB,QAAI,MAAM,MAAM,UAAU;AACxB,uBAAiB,MAAM,SAAS,QAAQ,MAAM,MAAM,QAAQ,GAAG,OAAO;AAAA,IACxE;AAAA,EACF;AACF;AAEA,SAAS,kBAAkB,OAA2B;AACpD,MAAI,SAAS;AACb,mBAAiB,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
- }