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