@react-spectrum/dialog 3.8.9 → 3.8.11

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.
Files changed (51) hide show
  1. package/dist/AlertDialog.main.js +98 -0
  2. package/dist/AlertDialog.main.js.map +1 -0
  3. package/dist/AlertDialog.mjs +93 -0
  4. package/dist/AlertDialog.module.js +93 -0
  5. package/dist/AlertDialog.module.js.map +1 -0
  6. package/dist/Dialog.main.js +135 -0
  7. package/dist/Dialog.main.js.map +1 -0
  8. package/dist/Dialog.mjs +130 -0
  9. package/dist/Dialog.module.js +130 -0
  10. package/dist/Dialog.module.js.map +1 -0
  11. package/dist/DialogContainer.main.js +63 -0
  12. package/dist/DialogContainer.main.js.map +1 -0
  13. package/dist/DialogContainer.mjs +54 -0
  14. package/dist/DialogContainer.module.js +54 -0
  15. package/dist/DialogContainer.module.js.map +1 -0
  16. package/dist/DialogTrigger.main.js +162 -0
  17. package/dist/DialogTrigger.main.js.map +1 -0
  18. package/dist/DialogTrigger.mjs +153 -0
  19. package/dist/DialogTrigger.module.js +153 -0
  20. package/dist/DialogTrigger.module.js.map +1 -0
  21. package/dist/context.main.js +27 -0
  22. package/dist/context.main.js.map +1 -0
  23. package/dist/context.mjs +18 -0
  24. package/dist/context.module.js +18 -0
  25. package/dist/context.module.js.map +1 -0
  26. package/dist/dialog_vars_css.main.js +161 -0
  27. package/dist/dialog_vars_css.main.js.map +1 -0
  28. package/dist/dialog_vars_css.mjs +163 -0
  29. package/dist/dialog_vars_css.module.js +163 -0
  30. package/dist/dialog_vars_css.module.js.map +1 -0
  31. package/dist/import.mjs +5 -692
  32. package/dist/intlStrings.main.js +108 -0
  33. package/dist/intlStrings.main.js.map +1 -0
  34. package/dist/intlStrings.mjs +110 -0
  35. package/dist/intlStrings.module.js +110 -0
  36. package/dist/intlStrings.module.js.map +1 -0
  37. package/dist/main.js +10 -693
  38. package/dist/main.js.map +1 -1
  39. package/dist/module.js +5 -692
  40. package/dist/module.js.map +1 -1
  41. package/dist/types.d.ts +3 -2
  42. package/dist/types.d.ts.map +1 -1
  43. package/dist/useDialogContainer.main.js +34 -0
  44. package/dist/useDialogContainer.main.js.map +1 -0
  45. package/dist/useDialogContainer.mjs +29 -0
  46. package/dist/useDialogContainer.module.js +29 -0
  47. package/dist/useDialogContainer.module.js.map +1 -0
  48. package/dist/{main.css → vars.6a3d7df3.css} +22 -63
  49. package/dist/vars.6a3d7df3.css.map +1 -0
  50. package/package.json +21 -21
  51. package/dist/main.css.map +0 -1
package/dist/main.js CHANGED
@@ -1,70 +1,19 @@
1
- var $a55551a02f9dcb5c$exports = require("./ar-AE.main.js");
2
- var $d9c7f58ad2bbfa4c$exports = require("./bg-BG.main.js");
3
- var $cc8c40dafb8d03b0$exports = require("./cs-CZ.main.js");
4
- var $d970ec0fa7e711e7$exports = require("./da-DK.main.js");
5
- var $c619cc654d2ca674$exports = require("./de-DE.main.js");
6
- var $2d258a772c4fa392$exports = require("./el-GR.main.js");
7
- var $88f649eb626e5bda$exports = require("./en-US.main.js");
8
- var $4cd7244dbd86e2ba$exports = require("./es-ES.main.js");
9
- var $86a88b5d274957dd$exports = require("./et-EE.main.js");
10
- var $6b6909c1e7df2772$exports = require("./fi-FI.main.js");
11
- var $c05d64ee0d510606$exports = require("./fr-FR.main.js");
12
- var $b54ffde1ebba1e69$exports = require("./he-IL.main.js");
13
- var $6d5732627fd95466$exports = require("./hr-HR.main.js");
14
- var $525291eaaaf36ab1$exports = require("./hu-HU.main.js");
15
- var $6dc44201330bcb0a$exports = require("./it-IT.main.js");
16
- var $38fba7087c48d89b$exports = require("./ja-JP.main.js");
17
- var $0d321e557ee0ff2b$exports = require("./ko-KR.main.js");
18
- var $81ef7c03f6531c38$exports = require("./lt-LT.main.js");
19
- var $dab9caf08f2773b2$exports = require("./lv-LV.main.js");
20
- var $8af697b2f49b994d$exports = require("./nb-NO.main.js");
21
- var $94b03262a47d5c5b$exports = require("./nl-NL.main.js");
22
- var $9531f14fa20d8709$exports = require("./pl-PL.main.js");
23
- var $d9e8b49831ccbf2a$exports = require("./pt-BR.main.js");
24
- var $6a11f56de734f9d5$exports = require("./pt-PT.main.js");
25
- var $e6f020c13f71513f$exports = require("./ro-RO.main.js");
26
- var $3268a43e923b3cbf$exports = require("./ru-RU.main.js");
27
- var $ff45268c9e1a78be$exports = require("./sk-SK.main.js");
28
- var $f2cb6f88707095ee$exports = require("./sl-SI.main.js");
29
- var $ece68e97a81612d8$exports = require("./sr-SP.main.js");
30
- var $cce4ae8855cd8246$exports = require("./sv-SE.main.js");
31
- var $763283ab7e680652$exports = require("./tr-TR.main.js");
32
- var $ec9a4b7a09770ea4$exports = require("./uk-UA.main.js");
33
- var $56f81c88b16f2b96$exports = require("./zh-CN.main.js");
34
- var $6fb708b0a8fb135e$exports = require("./zh-TW.main.js");
35
- require("./main.css");
36
- var $iaoFN$spectrumiconsuiAlertMedium = require("@spectrum-icons/ui/AlertMedium");
37
- var $iaoFN$reactspectrumbutton = require("@react-spectrum/button");
38
- var $iaoFN$reactspectrumbuttongroup = require("@react-spectrum/buttongroup");
39
- var $iaoFN$reactariautils = require("@react-aria/utils");
40
- var $iaoFN$reactspectrumutils = require("@react-spectrum/utils");
41
- var $iaoFN$reactspectrumview = require("@react-spectrum/view");
42
- var $iaoFN$reactspectrumdivider = require("@react-spectrum/divider");
43
- var $iaoFN$reactspectrumtext = require("@react-spectrum/text");
44
- var $iaoFN$react = require("react");
45
- var $iaoFN$reactariai18n = require("@react-aria/i18n");
46
- var $iaoFN$spectrumiconsuiCrossLarge = require("@spectrum-icons/ui/CrossLarge");
47
- var $iaoFN$reactspectrumlayout = require("@react-spectrum/layout");
48
- var $iaoFN$reactariadialog = require("@react-aria/dialog");
49
- var $iaoFN$reactspectrumoverlays = require("@react-spectrum/overlays");
50
- var $iaoFN$reactstatelyoverlays = require("@react-stately/overlays");
51
- var $iaoFN$reactariainteractions = require("@react-aria/interactions");
52
- var $iaoFN$reactariaoverlays = require("@react-aria/overlays");
1
+ var $66f8653ff750aa27$exports = require("./AlertDialog.main.js");
2
+ var $a57fc2323bf98a33$exports = require("./Dialog.main.js");
3
+ var $46e54a192dc519c9$exports = require("./DialogTrigger.main.js");
4
+ var $1b7050825e0eb5b6$exports = require("./DialogContainer.main.js");
5
+ var $1f05ce3abe26c4cc$exports = require("./useDialogContainer.main.js");
53
6
 
54
7
 
55
8
  function $parcel$export(e, n, v, s) {
56
9
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
57
10
  }
58
11
 
59
- function $parcel$interopDefault(a) {
60
- return a && a.__esModule ? a.default : a;
61
- }
62
-
63
- $parcel$export(module.exports, "AlertDialog", () => $66f8653ff750aa27$export$de466dd8317b0b75);
64
- $parcel$export(module.exports, "Dialog", () => $a57fc2323bf98a33$export$3ddf2d174ce01153);
65
- $parcel$export(module.exports, "DialogTrigger", () => $46e54a192dc519c9$export$2e1e1122cf0cba88);
66
- $parcel$export(module.exports, "DialogContainer", () => $1b7050825e0eb5b6$export$547754aada6e339f);
67
- $parcel$export(module.exports, "useDialogContainer", () => $1f05ce3abe26c4cc$export$a2f2d8fa6720dab1);
12
+ $parcel$export(module.exports, "AlertDialog", () => $66f8653ff750aa27$exports.AlertDialog);
13
+ $parcel$export(module.exports, "Dialog", () => $a57fc2323bf98a33$exports.Dialog);
14
+ $parcel$export(module.exports, "DialogTrigger", () => $46e54a192dc519c9$exports.DialogTrigger);
15
+ $parcel$export(module.exports, "DialogContainer", () => $1b7050825e0eb5b6$exports.DialogContainer);
16
+ $parcel$export(module.exports, "useDialogContainer", () => $1f05ce3abe26c4cc$exports.useDialogContainer);
68
17
  /*
69
18
  * Copyright 2020 Adobe. All rights reserved.
70
19
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -76,641 +25,9 @@ $parcel$export(module.exports, "useDialogContainer", () => $1f05ce3abe26c4cc$exp
76
25
  * OF ANY KIND, either express or implied. See the License for the specific language
77
26
  * governing permissions and limitations under the License.
78
27
  */ /// <reference types="css-module-types" />
79
- /*
80
- * Copyright 2020 Adobe. All rights reserved.
81
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
82
- * you may not use this file except in compliance with the License. You may obtain a copy
83
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
84
- *
85
- * Unless required by applicable law or agreed to in writing, software distributed under
86
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
87
- * OF ANY KIND, either express or implied. See the License for the specific language
88
- * governing permissions and limitations under the License.
89
- */
90
-
91
-
92
-
93
-
94
-
95
- /*
96
- * Copyright 2020 Adobe. All rights reserved.
97
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
98
- * you may not use this file except in compliance with the License. You may obtain a copy
99
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
100
- *
101
- * Unless required by applicable law or agreed to in writing, software distributed under
102
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
103
- * OF ANY KIND, either express or implied. See the License for the specific language
104
- * governing permissions and limitations under the License.
105
- */
106
-
107
-
108
- /*
109
- * Copyright 2020 Adobe. All rights reserved.
110
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
111
- * you may not use this file except in compliance with the License. You may obtain a copy
112
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
113
- *
114
- * Unless required by applicable law or agreed to in writing, software distributed under
115
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
116
- * OF ANY KIND, either express or implied. See the License for the specific language
117
- * governing permissions and limitations under the License.
118
- */
119
- const $0eb909ad2388d989$export$8b93a07348a7730c = (0, ($parcel$interopDefault($iaoFN$react))).createContext(null);
120
-
121
-
122
-
123
- var $7827d180f5c8b41b$exports = {};
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
28
 
156
29
 
157
30
 
158
- $7827d180f5c8b41b$exports = {
159
- "ar-AE": $a55551a02f9dcb5c$exports,
160
- "bg-BG": $d9c7f58ad2bbfa4c$exports,
161
- "cs-CZ": $cc8c40dafb8d03b0$exports,
162
- "da-DK": $d970ec0fa7e711e7$exports,
163
- "de-DE": $c619cc654d2ca674$exports,
164
- "el-GR": $2d258a772c4fa392$exports,
165
- "en-US": $88f649eb626e5bda$exports,
166
- "es-ES": $4cd7244dbd86e2ba$exports,
167
- "et-EE": $86a88b5d274957dd$exports,
168
- "fi-FI": $6b6909c1e7df2772$exports,
169
- "fr-FR": $c05d64ee0d510606$exports,
170
- "he-IL": $b54ffde1ebba1e69$exports,
171
- "hr-HR": $6d5732627fd95466$exports,
172
- "hu-HU": $525291eaaaf36ab1$exports,
173
- "it-IT": $6dc44201330bcb0a$exports,
174
- "ja-JP": $38fba7087c48d89b$exports,
175
- "ko-KR": $0d321e557ee0ff2b$exports,
176
- "lt-LT": $81ef7c03f6531c38$exports,
177
- "lv-LV": $dab9caf08f2773b2$exports,
178
- "nb-NO": $8af697b2f49b994d$exports,
179
- "nl-NL": $94b03262a47d5c5b$exports,
180
- "pl-PL": $9531f14fa20d8709$exports,
181
- "pt-BR": $d9e8b49831ccbf2a$exports,
182
- "pt-PT": $6a11f56de734f9d5$exports,
183
- "ro-RO": $e6f020c13f71513f$exports,
184
- "ru-RU": $3268a43e923b3cbf$exports,
185
- "sk-SK": $ff45268c9e1a78be$exports,
186
- "sl-SI": $f2cb6f88707095ee$exports,
187
- "sr-SP": $ece68e97a81612d8$exports,
188
- "sv-SE": $cce4ae8855cd8246$exports,
189
- "tr-TR": $763283ab7e680652$exports,
190
- "uk-UA": $ec9a4b7a09770ea4$exports,
191
- "zh-CN": $56f81c88b16f2b96$exports,
192
- "zh-TW": $6fb708b0a8fb135e$exports
193
- };
194
-
195
-
196
-
197
-
198
- var $a74c0984b1adb651$exports = {};
199
-
200
- $parcel$export($a74c0984b1adb651$exports, "buttonGroup", () => $a74c0984b1adb651$export$9c686a975407e95c, (v) => $a74c0984b1adb651$export$9c686a975407e95c = v);
201
- $parcel$export($a74c0984b1adb651$exports, "buttonGroup-end", () => $a74c0984b1adb651$export$92daf1b0113da0, (v) => $a74c0984b1adb651$export$92daf1b0113da0 = v);
202
- $parcel$export($a74c0984b1adb651$exports, "closeButton", () => $a74c0984b1adb651$export$efe229eab43a9869, (v) => $a74c0984b1adb651$export$efe229eab43a9869 = v);
203
- $parcel$export($a74c0984b1adb651$exports, "content", () => $a74c0984b1adb651$export$a7db06668cad9adb, (v) => $a74c0984b1adb651$export$a7db06668cad9adb = v);
204
- $parcel$export($a74c0984b1adb651$exports, "divider", () => $a74c0984b1adb651$export$e8c9778bf415dd08, (v) => $a74c0984b1adb651$export$e8c9778bf415dd08 = v);
205
- $parcel$export($a74c0984b1adb651$exports, "focus-ring", () => $a74c0984b1adb651$export$f39a09f249340e2a, (v) => $a74c0984b1adb651$export$f39a09f249340e2a = v);
206
- $parcel$export($a74c0984b1adb651$exports, "footer", () => $a74c0984b1adb651$export$adb608be33961c98, (v) => $a74c0984b1adb651$export$adb608be33961c98 = v);
207
- $parcel$export($a74c0984b1adb651$exports, "footer-start", () => $a74c0984b1adb651$export$ba5cbcdd7db6a805, (v) => $a74c0984b1adb651$export$ba5cbcdd7db6a805 = v);
208
- $parcel$export($a74c0984b1adb651$exports, "header", () => $a74c0984b1adb651$export$38e42c68cf43b5d4, (v) => $a74c0984b1adb651$export$38e42c68cf43b5d4 = v);
209
- $parcel$export($a74c0984b1adb651$exports, "header-end", () => $a74c0984b1adb651$export$9ff84a8ef5e6eb7e, (v) => $a74c0984b1adb651$export$9ff84a8ef5e6eb7e = v);
210
- $parcel$export($a74c0984b1adb651$exports, "header-start", () => $a74c0984b1adb651$export$6e2679145d8d7578, (v) => $a74c0984b1adb651$export$6e2679145d8d7578 = v);
211
- $parcel$export($a74c0984b1adb651$exports, "heading", () => $a74c0984b1adb651$export$46e4a324ac90507f, (v) => $a74c0984b1adb651$export$46e4a324ac90507f = v);
212
- $parcel$export($a74c0984b1adb651$exports, "heading-start", () => $a74c0984b1adb651$export$9f99175ea85abb45, (v) => $a74c0984b1adb651$export$9f99175ea85abb45 = v);
213
- $parcel$export($a74c0984b1adb651$exports, "hero", () => $a74c0984b1adb651$export$124049a9e3d0d4c3, (v) => $a74c0984b1adb651$export$124049a9e3d0d4c3 = v);
214
- $parcel$export($a74c0984b1adb651$exports, "i18nFontFamily", () => $a74c0984b1adb651$export$8c4ee2c50c22c514, (v) => $a74c0984b1adb651$export$8c4ee2c50c22c514 = v);
215
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Button", () => $a74c0984b1adb651$export$1db4cca5b4ade39a, (v) => $a74c0984b1adb651$export$1db4cca5b4ade39a = v);
216
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog", () => $a74c0984b1adb651$export$4681f3bcac39b2b1, (v) => $a74c0984b1adb651$export$4681f3bcac39b2b1 = v);
217
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--dismissable", () => $a74c0984b1adb651$export$9461b285d631d575, (v) => $a74c0984b1adb651$export$9461b285d631d575 = v);
218
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--error", () => $a74c0984b1adb651$export$6b5beff56972a3b, (v) => $a74c0984b1adb651$export$6b5beff56972a3b = v);
219
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--fullscreen", () => $a74c0984b1adb651$export$118506da5d3ee7c4, (v) => $a74c0984b1adb651$export$118506da5d3ee7c4 = v);
220
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--fullscreenTakeover", () => $a74c0984b1adb651$export$5c061b2d3664fda9, (v) => $a74c0984b1adb651$export$5c061b2d3664fda9 = v);
221
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--large", () => $a74c0984b1adb651$export$b73c0c2fca84be2b, (v) => $a74c0984b1adb651$export$b73c0c2fca84be2b = v);
222
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--medium", () => $a74c0984b1adb651$export$b9b8ef443d0a67ca, (v) => $a74c0984b1adb651$export$b9b8ef443d0a67ca = v);
223
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--noDivider", () => $a74c0984b1adb651$export$22425527a8943917, (v) => $a74c0984b1adb651$export$22425527a8943917 = v);
224
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--small", () => $a74c0984b1adb651$export$5f2d9cc47409bd63, (v) => $a74c0984b1adb651$export$5f2d9cc47409bd63 = v);
225
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog--warning", () => $a74c0984b1adb651$export$4e66396adf61534f, (v) => $a74c0984b1adb651$export$4e66396adf61534f = v);
226
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-buttonGroup", () => $a74c0984b1adb651$export$570ae852861555b7, (v) => $a74c0984b1adb651$export$570ae852861555b7 = v);
227
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-buttonGroup--noFooter", () => $a74c0984b1adb651$export$39dd75369bf2e830, (v) => $a74c0984b1adb651$export$39dd75369bf2e830 = v);
228
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-closeButton", () => $a74c0984b1adb651$export$a8494287d763a75d, (v) => $a74c0984b1adb651$export$a8494287d763a75d = v);
229
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-content", () => $a74c0984b1adb651$export$cb8eccd0f3639238, (v) => $a74c0984b1adb651$export$cb8eccd0f3639238 = v);
230
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-divider", () => $a74c0984b1adb651$export$dd7633d642d0bc1c, (v) => $a74c0984b1adb651$export$dd7633d642d0bc1c = v);
231
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-footer", () => $a74c0984b1adb651$export$3ecb5025a06fe08f, (v) => $a74c0984b1adb651$export$3ecb5025a06fe08f = v);
232
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-grid", () => $a74c0984b1adb651$export$c03cd5e23af67ff5, (v) => $a74c0984b1adb651$export$c03cd5e23af67ff5 = v);
233
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-header", () => $a74c0984b1adb651$export$1e158eaa6363e131, (v) => $a74c0984b1adb651$export$1e158eaa6363e131 = v);
234
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-header--noTypeIcon", () => $a74c0984b1adb651$export$141d8fd0950fea8b, (v) => $a74c0984b1adb651$export$141d8fd0950fea8b = v);
235
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-heading", () => $a74c0984b1adb651$export$94335d73b7b209ec, (v) => $a74c0984b1adb651$export$94335d73b7b209ec = v);
236
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-heading--noHeader", () => $a74c0984b1adb651$export$ade8307239736e89, (v) => $a74c0984b1adb651$export$ade8307239736e89 = v);
237
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-heading--noTypeIcon", () => $a74c0984b1adb651$export$c53ac004df29b46, (v) => $a74c0984b1adb651$export$c53ac004df29b46 = v);
238
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-hero", () => $a74c0984b1adb651$export$d405fb0a0231aa1a, (v) => $a74c0984b1adb651$export$d405fb0a0231aa1a = v);
239
- $parcel$export($a74c0984b1adb651$exports, "spectrum-Dialog-typeIcon", () => $a74c0984b1adb651$export$5beee9480fc6ff07, (v) => $a74c0984b1adb651$export$5beee9480fc6ff07 = v);
240
- $parcel$export($a74c0984b1adb651$exports, "spectrum-FocusRing-ring", () => $a74c0984b1adb651$export$4109102f950813a6, (v) => $a74c0984b1adb651$export$4109102f950813a6 = v);
241
- $parcel$export($a74c0984b1adb651$exports, "spectrum-FocusRing", () => $a74c0984b1adb651$export$24c7f46a6e3605dd, (v) => $a74c0984b1adb651$export$24c7f46a6e3605dd = v);
242
- $parcel$export($a74c0984b1adb651$exports, "spectrum-FocusRing--quiet", () => $a74c0984b1adb651$export$2927016961429360, (v) => $a74c0984b1adb651$export$2927016961429360 = v);
243
- $parcel$export($a74c0984b1adb651$exports, "spectrum-overlay", () => $a74c0984b1adb651$export$39eed38e2296a1d6, (v) => $a74c0984b1adb651$export$39eed38e2296a1d6 = v);
244
- $parcel$export($a74c0984b1adb651$exports, "spectrum-overlay--bottom--open", () => $a74c0984b1adb651$export$a96755f239de61ee, (v) => $a74c0984b1adb651$export$a96755f239de61ee = v);
245
- $parcel$export($a74c0984b1adb651$exports, "spectrum-overlay--left--open", () => $a74c0984b1adb651$export$a85c0c6b6cf8598c, (v) => $a74c0984b1adb651$export$a85c0c6b6cf8598c = v);
246
- $parcel$export($a74c0984b1adb651$exports, "spectrum-overlay--open", () => $a74c0984b1adb651$export$a397eb58038aa381, (v) => $a74c0984b1adb651$export$a397eb58038aa381 = v);
247
- $parcel$export($a74c0984b1adb651$exports, "spectrum-overlay--right--open", () => $a74c0984b1adb651$export$85aaa87e65e040bf, (v) => $a74c0984b1adb651$export$85aaa87e65e040bf = v);
248
- $parcel$export($a74c0984b1adb651$exports, "spectrum-overlay--top--open", () => $a74c0984b1adb651$export$b9768db7ffc1bc2, (v) => $a74c0984b1adb651$export$b9768db7ffc1bc2 = v);
249
- $parcel$export($a74c0984b1adb651$exports, "typeIcon", () => $a74c0984b1adb651$export$7c523679e5521442, (v) => $a74c0984b1adb651$export$7c523679e5521442 = v);
250
- $parcel$export($a74c0984b1adb651$exports, "typeIcon-end", () => $a74c0984b1adb651$export$b050c62b00f90727, (v) => $a74c0984b1adb651$export$b050c62b00f90727 = v);
251
- var $a74c0984b1adb651$export$9c686a975407e95c;
252
- var $a74c0984b1adb651$export$92daf1b0113da0;
253
- var $a74c0984b1adb651$export$efe229eab43a9869;
254
- var $a74c0984b1adb651$export$a7db06668cad9adb;
255
- var $a74c0984b1adb651$export$e8c9778bf415dd08;
256
- var $a74c0984b1adb651$export$f39a09f249340e2a;
257
- var $a74c0984b1adb651$export$adb608be33961c98;
258
- var $a74c0984b1adb651$export$ba5cbcdd7db6a805;
259
- var $a74c0984b1adb651$export$38e42c68cf43b5d4;
260
- var $a74c0984b1adb651$export$9ff84a8ef5e6eb7e;
261
- var $a74c0984b1adb651$export$6e2679145d8d7578;
262
- var $a74c0984b1adb651$export$46e4a324ac90507f;
263
- var $a74c0984b1adb651$export$9f99175ea85abb45;
264
- var $a74c0984b1adb651$export$124049a9e3d0d4c3;
265
- var $a74c0984b1adb651$export$8c4ee2c50c22c514;
266
- var $a74c0984b1adb651$export$1db4cca5b4ade39a;
267
- var $a74c0984b1adb651$export$4681f3bcac39b2b1;
268
- var $a74c0984b1adb651$export$9461b285d631d575;
269
- var $a74c0984b1adb651$export$6b5beff56972a3b;
270
- var $a74c0984b1adb651$export$118506da5d3ee7c4;
271
- var $a74c0984b1adb651$export$5c061b2d3664fda9;
272
- var $a74c0984b1adb651$export$b73c0c2fca84be2b;
273
- var $a74c0984b1adb651$export$b9b8ef443d0a67ca;
274
- var $a74c0984b1adb651$export$22425527a8943917;
275
- var $a74c0984b1adb651$export$5f2d9cc47409bd63;
276
- var $a74c0984b1adb651$export$4e66396adf61534f;
277
- var $a74c0984b1adb651$export$570ae852861555b7;
278
- var $a74c0984b1adb651$export$39dd75369bf2e830;
279
- var $a74c0984b1adb651$export$a8494287d763a75d;
280
- var $a74c0984b1adb651$export$cb8eccd0f3639238;
281
- var $a74c0984b1adb651$export$dd7633d642d0bc1c;
282
- var $a74c0984b1adb651$export$3ecb5025a06fe08f;
283
- var $a74c0984b1adb651$export$c03cd5e23af67ff5;
284
- var $a74c0984b1adb651$export$1e158eaa6363e131;
285
- var $a74c0984b1adb651$export$141d8fd0950fea8b;
286
- var $a74c0984b1adb651$export$94335d73b7b209ec;
287
- var $a74c0984b1adb651$export$ade8307239736e89;
288
- var $a74c0984b1adb651$export$c53ac004df29b46;
289
- var $a74c0984b1adb651$export$d405fb0a0231aa1a;
290
- var $a74c0984b1adb651$export$5beee9480fc6ff07;
291
- var $a74c0984b1adb651$export$4109102f950813a6;
292
- var $a74c0984b1adb651$export$24c7f46a6e3605dd;
293
- var $a74c0984b1adb651$export$2927016961429360;
294
- var $a74c0984b1adb651$export$39eed38e2296a1d6;
295
- var $a74c0984b1adb651$export$a96755f239de61ee;
296
- var $a74c0984b1adb651$export$a85c0c6b6cf8598c;
297
- var $a74c0984b1adb651$export$a397eb58038aa381;
298
- var $a74c0984b1adb651$export$85aaa87e65e040bf;
299
- var $a74c0984b1adb651$export$b9768db7ffc1bc2;
300
- var $a74c0984b1adb651$export$7c523679e5521442;
301
- var $a74c0984b1adb651$export$b050c62b00f90727;
302
- $a74c0984b1adb651$export$9c686a975407e95c = `h_OVWW_buttonGroup`;
303
- $a74c0984b1adb651$export$92daf1b0113da0 = `h_OVWW_buttonGroup-end`;
304
- $a74c0984b1adb651$export$efe229eab43a9869 = `h_OVWW_closeButton`;
305
- $a74c0984b1adb651$export$a7db06668cad9adb = `h_OVWW_content`;
306
- $a74c0984b1adb651$export$e8c9778bf415dd08 = `h_OVWW_divider`;
307
- $a74c0984b1adb651$export$f39a09f249340e2a = `h_OVWW_focus-ring`;
308
- $a74c0984b1adb651$export$adb608be33961c98 = `h_OVWW_footer`;
309
- $a74c0984b1adb651$export$ba5cbcdd7db6a805 = `h_OVWW_footer-start`;
310
- $a74c0984b1adb651$export$38e42c68cf43b5d4 = `h_OVWW_header`;
311
- $a74c0984b1adb651$export$9ff84a8ef5e6eb7e = `h_OVWW_header-end`;
312
- $a74c0984b1adb651$export$6e2679145d8d7578 = `h_OVWW_header-start`;
313
- $a74c0984b1adb651$export$46e4a324ac90507f = `h_OVWW_heading`;
314
- $a74c0984b1adb651$export$9f99175ea85abb45 = `h_OVWW_heading-start`;
315
- $a74c0984b1adb651$export$124049a9e3d0d4c3 = `h_OVWW_hero`;
316
- $a74c0984b1adb651$export$8c4ee2c50c22c514 = `h_OVWW_i18nFontFamily`;
317
- $a74c0984b1adb651$export$1db4cca5b4ade39a = `h_OVWW_spectrum-Button`;
318
- $a74c0984b1adb651$export$4681f3bcac39b2b1 = `h_OVWW_spectrum-Dialog`;
319
- $a74c0984b1adb651$export$9461b285d631d575 = `h_OVWW_spectrum-Dialog--dismissable`;
320
- $a74c0984b1adb651$export$6b5beff56972a3b = `h_OVWW_spectrum-Dialog--error`;
321
- $a74c0984b1adb651$export$118506da5d3ee7c4 = `h_OVWW_spectrum-Dialog--fullscreen`;
322
- $a74c0984b1adb651$export$5c061b2d3664fda9 = `h_OVWW_spectrum-Dialog--fullscreenTakeover`;
323
- $a74c0984b1adb651$export$b73c0c2fca84be2b = `h_OVWW_spectrum-Dialog--large`;
324
- $a74c0984b1adb651$export$b9b8ef443d0a67ca = `h_OVWW_spectrum-Dialog--medium`;
325
- $a74c0984b1adb651$export$22425527a8943917 = `h_OVWW_spectrum-Dialog--noDivider`;
326
- $a74c0984b1adb651$export$5f2d9cc47409bd63 = `h_OVWW_spectrum-Dialog--small`;
327
- $a74c0984b1adb651$export$4e66396adf61534f = `h_OVWW_spectrum-Dialog--warning`;
328
- $a74c0984b1adb651$export$570ae852861555b7 = `h_OVWW_spectrum-Dialog-buttonGroup`;
329
- $a74c0984b1adb651$export$39dd75369bf2e830 = `h_OVWW_spectrum-Dialog-buttonGroup--noFooter`;
330
- $a74c0984b1adb651$export$a8494287d763a75d = `h_OVWW_spectrum-Dialog-closeButton`;
331
- $a74c0984b1adb651$export$cb8eccd0f3639238 = `h_OVWW_spectrum-Dialog-content`;
332
- $a74c0984b1adb651$export$dd7633d642d0bc1c = `h_OVWW_spectrum-Dialog-divider`;
333
- $a74c0984b1adb651$export$3ecb5025a06fe08f = `h_OVWW_spectrum-Dialog-footer`;
334
- $a74c0984b1adb651$export$c03cd5e23af67ff5 = `h_OVWW_spectrum-Dialog-grid`;
335
- $a74c0984b1adb651$export$1e158eaa6363e131 = `h_OVWW_spectrum-Dialog-header`;
336
- $a74c0984b1adb651$export$141d8fd0950fea8b = `h_OVWW_spectrum-Dialog-header--noTypeIcon`;
337
- $a74c0984b1adb651$export$94335d73b7b209ec = `h_OVWW_spectrum-Dialog-heading`;
338
- $a74c0984b1adb651$export$ade8307239736e89 = `h_OVWW_spectrum-Dialog-heading--noHeader`;
339
- $a74c0984b1adb651$export$c53ac004df29b46 = `h_OVWW_spectrum-Dialog-heading--noTypeIcon`;
340
- $a74c0984b1adb651$export$d405fb0a0231aa1a = `h_OVWW_spectrum-Dialog-hero`;
341
- $a74c0984b1adb651$export$5beee9480fc6ff07 = `h_OVWW_spectrum-Dialog-typeIcon`;
342
- $a74c0984b1adb651$export$4109102f950813a6 = `h_OVWW_spectrum-FocusRing-ring`;
343
- $a74c0984b1adb651$export$24c7f46a6e3605dd = `h_OVWW_spectrum-FocusRing ${$a74c0984b1adb651$export$4109102f950813a6}`;
344
- $a74c0984b1adb651$export$2927016961429360 = `h_OVWW_spectrum-FocusRing--quiet`;
345
- $a74c0984b1adb651$export$39eed38e2296a1d6 = `h_OVWW_spectrum-overlay`;
346
- $a74c0984b1adb651$export$a96755f239de61ee = `h_OVWW_spectrum-overlay--bottom--open`;
347
- $a74c0984b1adb651$export$a85c0c6b6cf8598c = `h_OVWW_spectrum-overlay--left--open`;
348
- $a74c0984b1adb651$export$a397eb58038aa381 = `h_OVWW_spectrum-overlay--open`;
349
- $a74c0984b1adb651$export$85aaa87e65e040bf = `h_OVWW_spectrum-overlay--right--open`;
350
- $a74c0984b1adb651$export$b9768db7ffc1bc2 = `h_OVWW_spectrum-overlay--top--open`;
351
- $a74c0984b1adb651$export$7c523679e5521442 = `h_OVWW_typeIcon`;
352
- $a74c0984b1adb651$export$b050c62b00f90727 = `h_OVWW_typeIcon-end`;
353
-
354
-
355
-
356
-
357
- let $a57fc2323bf98a33$var$sizeMap = {
358
- S: "small",
359
- M: "medium",
360
- L: "large",
361
- fullscreen: "fullscreen",
362
- fullscreenTakeover: "fullscreenTakeover"
363
- };
364
- function $a57fc2323bf98a33$var$Dialog(props, ref) {
365
- props = (0, $iaoFN$reactspectrumutils.useSlotProps)(props, "dialog");
366
- let { type: type = "modal", ...contextProps } = (0, $iaoFN$react.useContext)((0, $0eb909ad2388d989$export$8b93a07348a7730c)) || {};
367
- let { children: children, isDismissable: isDismissable = contextProps.isDismissable, onDismiss: onDismiss = contextProps.onClose, size: size, ...otherProps } = props;
368
- let stringFormatter = (0, $iaoFN$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7827d180f5c8b41b$exports))), "@react-spectrum/dialog");
369
- let { styleProps: styleProps } = (0, $iaoFN$reactspectrumutils.useStyleProps)(otherProps);
370
- size = type === "popover" ? size || "S" : size || "L";
371
- let domRef = (0, $iaoFN$reactspectrumutils.useDOMRef)(ref);
372
- let gridRef = (0, $iaoFN$react.useRef)(null);
373
- let sizeVariant = $a57fc2323bf98a33$var$sizeMap[type] || $a57fc2323bf98a33$var$sizeMap[size];
374
- let { dialogProps: dialogProps, titleProps: titleProps } = (0, $iaoFN$reactariadialog.useDialog)((0, $iaoFN$reactariautils.mergeProps)(contextProps, props), domRef);
375
- let hasHeader = (0, $iaoFN$reactspectrumutils.useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-header"]}`, (0, $iaoFN$reactspectrumutils.unwrapDOMRef)(gridRef));
376
- let hasHeading = (0, $iaoFN$reactspectrumutils.useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-heading"]}`, (0, $iaoFN$reactspectrumutils.unwrapDOMRef)(gridRef));
377
- let hasFooter = (0, $iaoFN$reactspectrumutils.useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-footer"]}`, (0, $iaoFN$reactspectrumutils.unwrapDOMRef)(gridRef));
378
- let hasTypeIcon = (0, $iaoFN$reactspectrumutils.useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-typeIcon"]}`, (0, $iaoFN$reactspectrumutils.unwrapDOMRef)(gridRef));
379
- let slots = (0, $iaoFN$react.useMemo)(()=>({
380
- hero: {
381
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-hero"]
382
- },
383
- heading: {
384
- UNSAFE_className: (0, $iaoFN$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports))), "spectrum-Dialog-heading", {
385
- "spectrum-Dialog-heading--noHeader": !hasHeader,
386
- "spectrum-Dialog-heading--noTypeIcon": !hasTypeIcon
387
- }),
388
- level: 2,
389
- ...titleProps
390
- },
391
- header: {
392
- UNSAFE_className: (0, $iaoFN$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports))), "spectrum-Dialog-header", {
393
- "spectrum-Dialog-header--noHeading": !hasHeading,
394
- "spectrum-Dialog-header--noTypeIcon": !hasTypeIcon
395
- })
396
- },
397
- typeIcon: {
398
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-typeIcon"]
399
- },
400
- divider: {
401
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-divider"],
402
- size: "M"
403
- },
404
- content: {
405
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-content"]
406
- },
407
- footer: {
408
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-footer"]
409
- },
410
- buttonGroup: {
411
- UNSAFE_className: (0, $iaoFN$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports))), "spectrum-Dialog-buttonGroup", {
412
- "spectrum-Dialog-buttonGroup--noFooter": !hasFooter
413
- }),
414
- align: "end"
415
- }
416
- }), [
417
- hasFooter,
418
- hasHeader,
419
- titleProps
420
- ]);
421
- return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement("section", {
422
- ...styleProps,
423
- ...dialogProps,
424
- className: (0, $iaoFN$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports))), "spectrum-Dialog", {
425
- [`spectrum-Dialog--${sizeVariant}`]: sizeVariant,
426
- "spectrum-Dialog--dismissable": isDismissable
427
- }, styleProps.className),
428
- ref: domRef
429
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumlayout.Grid), {
430
- ref: gridRef,
431
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-grid"]
432
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumutils.SlotProvider), {
433
- slots: slots
434
- }, children), isDismissable && /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumbutton.ActionButton), {
435
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports)))["spectrum-Dialog-closeButton"],
436
- isQuiet: true,
437
- "aria-label": stringFormatter.format("dismiss"),
438
- onPress: onDismiss
439
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, ($parcel$interopDefault($iaoFN$spectrumiconsuiCrossLarge))), null))));
440
- }
441
- /**
442
- * Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.
443
- * Depending on the kind of Dialog, further interactions may be blocked until the Dialog is acknowledged.
444
- */ let $a57fc2323bf98a33$export$3ddf2d174ce01153 = /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).forwardRef($a57fc2323bf98a33$var$Dialog);
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
- /**
455
- * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
456
- */ function $66f8653ff750aa27$var$AlertDialog(props, ref) {
457
- let { onClose: onClose = ()=>{} } = (0, $iaoFN$react.useContext)((0, $0eb909ad2388d989$export$8b93a07348a7730c)) || {};
458
- let { variant: variant, children: children, primaryActionLabel: primaryActionLabel, secondaryActionLabel: secondaryActionLabel, cancelLabel: cancelLabel, autoFocusButton: autoFocusButton, title: title, isPrimaryActionDisabled: isPrimaryActionDisabled, isSecondaryActionDisabled: isSecondaryActionDisabled, onCancel: onCancel = ()=>{}, onPrimaryAction: onPrimaryAction = ()=>{}, onSecondaryAction: onSecondaryAction = ()=>{}, ...otherProps } = props;
459
- let { styleProps: styleProps } = (0, $iaoFN$reactspectrumutils.useStyleProps)(otherProps);
460
- let stringFormatter = (0, $iaoFN$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7827d180f5c8b41b$exports))), "@react-spectrum/dialog");
461
- let confirmVariant = "primary";
462
- if (variant) {
463
- if (variant === "confirmation") confirmVariant = "cta";
464
- else if (variant === "destructive") confirmVariant = "negative";
465
- }
466
- return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $a57fc2323bf98a33$export$3ddf2d174ce01153), {
467
- UNSAFE_style: styleProps.style,
468
- UNSAFE_className: (0, $iaoFN$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a74c0984b1adb651$exports))), {
469
- [`spectrum-Dialog--${variant}`]: variant
470
- }, styleProps.className),
471
- isHidden: styleProps.hidden,
472
- size: "M",
473
- role: "alertdialog",
474
- ref: ref
475
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumtext.Heading), null, title), (variant === "error" || variant === "warning") && /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, ($parcel$interopDefault($iaoFN$spectrumiconsuiAlertMedium))), {
476
- slot: "typeIcon",
477
- "aria-label": stringFormatter.format("alert")
478
- }), /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumdivider.Divider), null), /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumview.Content), null, children), /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumbuttongroup.ButtonGroup), {
479
- align: "end"
480
- }, cancelLabel && /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumbutton.Button), {
481
- variant: "secondary",
482
- onPress: ()=>(0, $iaoFN$reactariautils.chain)(onClose(), onCancel()),
483
- autoFocus: autoFocusButton === "cancel"
484
- }, cancelLabel), secondaryActionLabel && /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumbutton.Button), {
485
- variant: "secondary",
486
- onPress: ()=>(0, $iaoFN$reactariautils.chain)(onClose(), onSecondaryAction()),
487
- isDisabled: isSecondaryActionDisabled,
488
- autoFocus: autoFocusButton === "secondary"
489
- }, secondaryActionLabel), /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumbutton.Button), {
490
- variant: confirmVariant,
491
- onPress: ()=>(0, $iaoFN$reactariautils.chain)(onClose(), onPrimaryAction()),
492
- isDisabled: isPrimaryActionDisabled,
493
- autoFocus: autoFocusButton === "primary"
494
- }, primaryActionLabel)));
495
- }
496
- /**
497
- * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
498
- */ let $66f8653ff750aa27$export$de466dd8317b0b75 = /*#__PURE__*/ (0, $iaoFN$react.forwardRef)($66f8653ff750aa27$var$AlertDialog);
499
-
500
-
501
-
502
- /*
503
- * Copyright 2020 Adobe. All rights reserved.
504
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
505
- * you may not use this file except in compliance with the License. You may obtain a copy
506
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
507
- *
508
- * Unless required by applicable law or agreed to in writing, software distributed under
509
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
510
- * OF ANY KIND, either express or implied. See the License for the specific language
511
- * governing permissions and limitations under the License.
512
- */
513
-
514
-
515
-
516
-
517
-
518
-
519
- function $46e54a192dc519c9$var$DialogTrigger(props) {
520
- let { children: children, type: type = "modal", mobileType: mobileType = type === "popover" ? "modal" : type, hideArrow: hideArrow, targetRef: targetRef, isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled, ...positionProps } = props;
521
- if (!Array.isArray(children) || children.length > 2) throw new Error("DialogTrigger must have exactly 2 children");
522
- // if a function is passed as the second child, it won't appear in toArray
523
- let [trigger, content] = children;
524
- // On small devices, show a modal or tray instead of a popover.
525
- let isMobile = (0, $iaoFN$reactspectrumutils.useIsMobileDevice)();
526
- if (isMobile) {
527
- // handle cases where desktop popovers need a close button for the mobile modal view
528
- if (type !== "modal" && mobileType === "modal") isDismissable = true;
529
- type = mobileType;
530
- }
531
- let state = (0, $iaoFN$reactstatelyoverlays.useOverlayTriggerState)(props);
532
- let wasOpen = (0, $iaoFN$react.useRef)(false);
533
- (0, $iaoFN$react.useEffect)(()=>{
534
- wasOpen.current = state.isOpen;
535
- }, [
536
- state.isOpen
537
- ]);
538
- let isExiting = (0, $iaoFN$react.useRef)(false);
539
- let onExiting = ()=>isExiting.current = true;
540
- let onExited = ()=>isExiting.current = false;
541
- // eslint-disable-next-line arrow-body-style
542
- (0, $iaoFN$react.useEffect)(()=>{
543
- return ()=>{
544
- if ((wasOpen.current || isExiting.current) && type !== "popover" && type !== "tray") console.warn("A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.");
545
- };
546
- // eslint-disable-next-line react-hooks/exhaustive-deps
547
- }, []);
548
- if (type === "popover") return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement($46e54a192dc519c9$var$PopoverTrigger, {
549
- ...positionProps,
550
- state: state,
551
- targetRef: targetRef,
552
- trigger: trigger,
553
- content: content,
554
- isKeyboardDismissDisabled: isKeyboardDismissDisabled,
555
- hideArrow: hideArrow
556
- });
557
- let renderOverlay = ()=>{
558
- switch(type){
559
- case "fullscreen":
560
- case "fullscreenTakeover":
561
- case "modal":
562
- return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumoverlays.Modal), {
563
- state: state,
564
- isDismissable: type === "modal" ? isDismissable : false,
565
- type: type,
566
- isKeyboardDismissDisabled: isKeyboardDismissDisabled,
567
- onExiting: onExiting,
568
- onExited: onExited
569
- }, typeof content === "function" ? content(state.close) : content);
570
- case "tray":
571
- return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumoverlays.Tray), {
572
- state: state,
573
- isKeyboardDismissDisabled: isKeyboardDismissDisabled
574
- }, typeof content === "function" ? content(state.close) : content);
575
- }
576
- };
577
- return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement($46e54a192dc519c9$var$DialogTriggerBase, {
578
- type: type,
579
- state: state,
580
- isDismissable: isDismissable,
581
- trigger: trigger,
582
- overlay: renderOverlay()
583
- });
584
- }
585
- // Support DialogTrigger inside components using CollectionBuilder.
586
- $46e54a192dc519c9$var$DialogTrigger.getCollectionNode = function*(props) {
587
- // @ts-ignore - seems like types are wrong. Function children work fine.
588
- let [trigger] = (0, ($parcel$interopDefault($iaoFN$react))).Children.toArray(props.children);
589
- let [, content] = props.children;
590
- yield {
591
- element: trigger,
592
- wrapper: (element)=>/*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement($46e54a192dc519c9$var$DialogTrigger, {
593
- key: element.key,
594
- ...props
595
- }, element, content)
596
- };
597
- };
598
- /**
599
- * DialogTrigger serves as a wrapper around a Dialog and its associated trigger, linking the Dialog's
600
- * open state with the trigger's press state. Additionally, it allows you to customize the type and
601
- * positioning of the Dialog.
602
- */ // We don't want getCollectionNode to show up in the type definition
603
- let $46e54a192dc519c9$export$2e1e1122cf0cba88 = $46e54a192dc519c9$var$DialogTrigger;
604
- function $46e54a192dc519c9$var$PopoverTrigger({ state: state, targetRef: targetRef, trigger: trigger, content: content, hideArrow: hideArrow, ...props }) {
605
- let triggerRef = (0, $iaoFN$react.useRef)(null);
606
- let { triggerProps: triggerProps, overlayProps: overlayProps } = (0, $iaoFN$reactariaoverlays.useOverlayTrigger)({
607
- type: "dialog"
608
- }, state, triggerRef);
609
- let triggerPropsWithRef = {
610
- ...triggerProps,
611
- ref: targetRef ? undefined : triggerRef
612
- };
613
- let overlay = /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumoverlays.Popover), {
614
- ...props,
615
- hideArrow: hideArrow,
616
- triggerRef: targetRef || triggerRef,
617
- state: state
618
- }, typeof content === "function" ? content(state.close) : content);
619
- return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement($46e54a192dc519c9$var$DialogTriggerBase, {
620
- type: "popover",
621
- state: state,
622
- triggerProps: triggerPropsWithRef,
623
- dialogProps: overlayProps,
624
- trigger: trigger,
625
- overlay: overlay
626
- });
627
- }
628
- function $46e54a192dc519c9$var$DialogTriggerBase({ type: type, state: state, isDismissable: isDismissable, dialogProps: dialogProps = {}, triggerProps: triggerProps = {}, overlay: overlay, trigger: trigger }) {
629
- let context = {
630
- type: type,
631
- onClose: state.close,
632
- isDismissable: isDismissable,
633
- ...dialogProps
634
- };
635
- return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$react.Fragment), null, /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactariainteractions.PressResponder), {
636
- ...triggerProps,
637
- onPress: state.toggle,
638
- isPressed: state.isOpen && type !== "modal" && type !== "fullscreen" && type !== "fullscreenTakeover"
639
- }, trigger), /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $0eb909ad2388d989$export$8b93a07348a7730c).Provider, {
640
- value: context
641
- }, overlay));
642
- }
643
-
644
-
645
- /*
646
- * Copyright 2020 Adobe. All rights reserved.
647
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
648
- * you may not use this file except in compliance with the License. You may obtain a copy
649
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
650
- *
651
- * Unless required by applicable law or agreed to in writing, software distributed under
652
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
653
- * OF ANY KIND, either express or implied. See the License for the specific language
654
- * governing permissions and limitations under the License.
655
- */
656
-
657
-
658
-
659
- function $1b7050825e0eb5b6$export$547754aada6e339f(props) {
660
- let { children: children, type: type = "modal", onDismiss: onDismiss, isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled } = props;
661
- let childArray = (0, ($parcel$interopDefault($iaoFN$react))).Children.toArray(children);
662
- if (childArray.length > 1) throw new Error("Only a single child can be passed to DialogContainer.");
663
- let [lastChild, setLastChild] = (0, $iaoFN$react.useState)(null);
664
- // React.Children.toArray mutates the children, and we need them to be stable
665
- // between renders so that the lastChild comparison works.
666
- let child = undefined;
667
- if (Array.isArray(children)) child = children.find((0, ($parcel$interopDefault($iaoFN$react))).isValidElement);
668
- else if (/*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).isValidElement(children)) child = children;
669
- if (child && child !== lastChild) setLastChild(child);
670
- let context = {
671
- type: type,
672
- onClose: onDismiss,
673
- isDismissable: isDismissable
674
- };
675
- let state = (0, $iaoFN$reactstatelyoverlays.useOverlayTriggerState)({
676
- isOpen: !!child,
677
- onOpenChange: (isOpen)=>{
678
- if (!isOpen) onDismiss();
679
- }
680
- });
681
- return /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $iaoFN$reactspectrumoverlays.Modal), {
682
- state: state,
683
- type: type,
684
- isDismissable: isDismissable,
685
- isKeyboardDismissDisabled: isKeyboardDismissDisabled
686
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($iaoFN$react))).createElement((0, $0eb909ad2388d989$export$8b93a07348a7730c).Provider, {
687
- value: context
688
- }, lastChild));
689
- }
690
-
691
-
692
- /*
693
- * Copyright 2020 Adobe. All rights reserved.
694
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
695
- * you may not use this file except in compliance with the License. You may obtain a copy
696
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
697
- *
698
- * Unless required by applicable law or agreed to in writing, software distributed under
699
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
700
- * OF ANY KIND, either express or implied. See the License for the specific language
701
- * governing permissions and limitations under the License.
702
- */
703
-
704
- function $1f05ce3abe26c4cc$export$a2f2d8fa6720dab1() {
705
- let context = (0, $iaoFN$react.useContext)((0, $0eb909ad2388d989$export$8b93a07348a7730c));
706
- if (!context) throw new Error("Cannot call useDialogContext outside a <DialogTrigger> or <DialogContainer>.");
707
- return {
708
- type: context.type,
709
- dismiss () {
710
- context === null || context === void 0 ? void 0 : context.onClose();
711
- }
712
- };
713
- }
714
31
 
715
32
 
716
33