@react-spectrum/overlays 4.1.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,579 @@
1
+ import "./main.css";
2
+ import {Provider as $fQOb3$Provider} from "@react-spectrum/provider";
3
+ import $fQOb3$react, {useState as $fQOb3$useState, useCallback as $fQOb3$useCallback, useRef as $fQOb3$useRef, forwardRef as $fQOb3$forwardRef} from "react";
4
+ import {Overlay as $fQOb3$Overlay, usePopover as $fQOb3$usePopover, DismissButton as $fQOb3$DismissButton, useModalOverlay as $fQOb3$useModalOverlay} from "@react-aria/overlays";
5
+ import {Transition as $fQOb3$Transition} from "react-transition-group";
6
+ import {useDOMRef as $fQOb3$useDOMRef, useStyleProps as $fQOb3$useStyleProps, classNames as $fQOb3$classNames} from "@react-spectrum/utils";
7
+ import {useLayoutEffect as $fQOb3$useLayoutEffect, useViewportSize as $fQOb3$useViewportSize} from "@react-aria/utils";
8
+
9
+ function $parcel$interopDefault(a) {
10
+ return a && a.__esModule ? a.default : a;
11
+ }
12
+ function $parcel$export(e, n, v, s) {
13
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
14
+ }
15
+ /*
16
+ * Copyright 2020 Adobe. All rights reserved.
17
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
+ * you may not use this file except in compliance with the License. You may obtain a copy
19
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * Unless required by applicable law or agreed to in writing, software distributed under
22
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
+ * OF ANY KIND, either express or implied. See the License for the specific language
24
+ * governing permissions and limitations under the License.
25
+ */ /// <reference types="css-module-types" />
26
+ /*
27
+ * Copyright 2020 Adobe. All rights reserved.
28
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
29
+ * you may not use this file except in compliance with the License. You may obtain a copy
30
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
31
+ *
32
+ * Unless required by applicable law or agreed to in writing, software distributed under
33
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
34
+ * OF ANY KIND, either express or implied. See the License for the specific language
35
+ * governing permissions and limitations under the License.
36
+ */ /*
37
+ * Copyright 2020 Adobe. All rights reserved.
38
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
39
+ * you may not use this file except in compliance with the License. You may obtain a copy
40
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
41
+ *
42
+ * Unless required by applicable law or agreed to in writing, software distributed under
43
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44
+ * OF ANY KIND, either express or implied. See the License for the specific language
45
+ * governing permissions and limitations under the License.
46
+ */
47
+
48
+ const $bc765a7a041310da$var$OPEN_STATES = {
49
+ entering: false,
50
+ entered: true
51
+ };
52
+ function $bc765a7a041310da$export$b847a40ee92eff38(props) {
53
+ var child;
54
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $fQOb3$Transition), {
55
+ timeout: {
56
+ enter: 0,
57
+ exit: 350
58
+ },
59
+ ...props
60
+ }, (state)=>(0, $fQOb3$react).Children.map(props.children, (child)=>child && /*#__PURE__*/ (0, $fQOb3$react).cloneElement(child, {
61
+ isOpen: !!$bc765a7a041310da$var$OPEN_STATES[state]
62
+ })));
63
+ }
64
+
65
+
66
+
67
+
68
+
69
+ function $70305dc5fb729c3b$var$Overlay(props, ref) {
70
+ let { children: children , isOpen: isOpen , container: container , onEnter: onEnter , onEntering: onEntering , onEntered: onEntered , onExit: onExit , onExiting: onExiting , onExited: onExited , nodeRef: nodeRef } = props;
71
+ let [exited, setExited] = (0, $fQOb3$useState)(!isOpen);
72
+ let handleEntered = (0, $fQOb3$useCallback)(()=>{
73
+ setExited(false);
74
+ if (onEntered) onEntered();
75
+ }, [
76
+ onEntered
77
+ ]);
78
+ let handleExited = (0, $fQOb3$useCallback)(()=>{
79
+ setExited(true);
80
+ if (onExited) onExited();
81
+ }, [
82
+ onExited
83
+ ]);
84
+ // Don't un-render the overlay while it's transitioning out.
85
+ let mountOverlay = isOpen || !exited;
86
+ if (!mountOverlay) // Don't bother showing anything if we don't have to.
87
+ return null;
88
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $fQOb3$Overlay), {
89
+ portalContainer: container
90
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $fQOb3$Provider), {
91
+ ref: ref,
92
+ UNSAFE_style: {
93
+ background: "transparent",
94
+ isolation: "isolate"
95
+ },
96
+ isDisabled: false
97
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $bc765a7a041310da$export$b847a40ee92eff38), {
98
+ in: isOpen,
99
+ appear: true,
100
+ onExit: onExit,
101
+ onExiting: onExiting,
102
+ onExited: handleExited,
103
+ onEnter: onEnter,
104
+ onEntering: onEntering,
105
+ onEntered: handleEntered,
106
+ nodeRef: nodeRef
107
+ }, children)));
108
+ }
109
+ let $70305dc5fb729c3b$export$c6fdb837b070b4ff = /*#__PURE__*/ (0, $fQOb3$react).forwardRef($70305dc5fb729c3b$var$Overlay);
110
+
111
+
112
+ /*
113
+ * Copyright 2020 Adobe. All rights reserved.
114
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
115
+ * you may not use this file except in compliance with the License. You may obtain a copy
116
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
117
+ *
118
+ * Unless required by applicable law or agreed to in writing, software distributed under
119
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
120
+ * OF ANY KIND, either express or implied. See the License for the specific language
121
+ * governing permissions and limitations under the License.
122
+ */
123
+
124
+
125
+ var $853e19557ad8790f$exports = {};
126
+
127
+ $parcel$export($853e19557ad8790f$exports, "spectrum-Popover", () => $853e19557ad8790f$export$a62dc1b6ab23a7bb, (v) => $853e19557ad8790f$export$a62dc1b6ab23a7bb = v);
128
+ $parcel$export($853e19557ad8790f$exports, "react-spectrum-Popover", () => $853e19557ad8790f$export$884f6b5065bdc41a, (v) => $853e19557ad8790f$export$884f6b5065bdc41a = v);
129
+ $parcel$export($853e19557ad8790f$exports, "spectrum-Dialog-content", () => $853e19557ad8790f$export$cb8eccd0f3639238, (v) => $853e19557ad8790f$export$cb8eccd0f3639238 = v);
130
+ $parcel$export($853e19557ad8790f$exports, "spectrum-Modal-wrapper", () => $853e19557ad8790f$export$35bea187ff802494, (v) => $853e19557ad8790f$export$35bea187ff802494 = v);
131
+ $parcel$export($853e19557ad8790f$exports, "react-spectrum-Modal-wrapper", () => $853e19557ad8790f$export$e088717c213c31d7, (v) => $853e19557ad8790f$export$e088717c213c31d7 = v);
132
+ $parcel$export($853e19557ad8790f$exports, "spectrum-Modal", () => $853e19557ad8790f$export$4c0b1e44c3834c85, (v) => $853e19557ad8790f$export$4c0b1e44c3834c85 = v);
133
+ $parcel$export($853e19557ad8790f$exports, "react-spectrum-Modal", () => $853e19557ad8790f$export$f8edeb62d7fed8c1, (v) => $853e19557ad8790f$export$f8edeb62d7fed8c1 = v);
134
+ $parcel$export($853e19557ad8790f$exports, "spectrum-Tray", () => $853e19557ad8790f$export$ce0704cd084c4f0d, (v) => $853e19557ad8790f$export$ce0704cd084c4f0d = v);
135
+ $parcel$export($853e19557ad8790f$exports, "react-spectrum-Tray", () => $853e19557ad8790f$export$69dafa24343974dd, (v) => $853e19557ad8790f$export$69dafa24343974dd = v);
136
+ var $853e19557ad8790f$export$a62dc1b6ab23a7bb;
137
+ var $853e19557ad8790f$export$884f6b5065bdc41a;
138
+ var $853e19557ad8790f$export$cb8eccd0f3639238;
139
+ var $853e19557ad8790f$export$35bea187ff802494;
140
+ var $853e19557ad8790f$export$e088717c213c31d7;
141
+ var $853e19557ad8790f$export$4c0b1e44c3834c85;
142
+ var $853e19557ad8790f$export$f8edeb62d7fed8c1;
143
+ var $853e19557ad8790f$export$ce0704cd084c4f0d;
144
+ var $853e19557ad8790f$export$69dafa24343974dd;
145
+ $853e19557ad8790f$export$a62dc1b6ab23a7bb = "spectrum-Popover_38efea";
146
+ $853e19557ad8790f$export$884f6b5065bdc41a = "react-spectrum-Popover_38efea";
147
+ $853e19557ad8790f$export$cb8eccd0f3639238 = "spectrum-Dialog-content_38efea";
148
+ $853e19557ad8790f$export$35bea187ff802494 = "spectrum-Modal-wrapper_38efea";
149
+ $853e19557ad8790f$export$e088717c213c31d7 = "react-spectrum-Modal-wrapper_38efea";
150
+ $853e19557ad8790f$export$4c0b1e44c3834c85 = "spectrum-Modal_38efea";
151
+ $853e19557ad8790f$export$f8edeb62d7fed8c1 = "react-spectrum-Modal_38efea";
152
+ $853e19557ad8790f$export$ce0704cd084c4f0d = "spectrum-Tray_38efea";
153
+ $853e19557ad8790f$export$69dafa24343974dd = "react-spectrum-Tray_38efea";
154
+
155
+
156
+
157
+ var $645594d913f34a2a$exports = {};
158
+
159
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover", () => $645594d913f34a2a$export$a62dc1b6ab23a7bb, (v) => $645594d913f34a2a$export$a62dc1b6ab23a7bb = v);
160
+ $parcel$export($645594d913f34a2a$exports, "is-open", () => $645594d913f34a2a$export$a9781837241c946d, (v) => $645594d913f34a2a$export$a9781837241c946d = v);
161
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover--bottom", () => $645594d913f34a2a$export$6a19b19b14780d4a, (v) => $645594d913f34a2a$export$6a19b19b14780d4a = v);
162
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover--top", () => $645594d913f34a2a$export$f30becfb1df0cae4, (v) => $645594d913f34a2a$export$f30becfb1df0cae4 = v);
163
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover--right", () => $645594d913f34a2a$export$5fc8b429396c9f58, (v) => $645594d913f34a2a$export$5fc8b429396c9f58 = v);
164
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover--left", () => $645594d913f34a2a$export$79cc55906ac5b00, (v) => $645594d913f34a2a$export$79cc55906ac5b00 = v);
165
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover-tip", () => $645594d913f34a2a$export$3100ec4dc1668df1, (v) => $645594d913f34a2a$export$3100ec4dc1668df1 = v);
166
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover-tip-triangle", () => $645594d913f34a2a$export$ed733fa6cf19ab80, (v) => $645594d913f34a2a$export$ed733fa6cf19ab80 = v);
167
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover--dialog", () => $645594d913f34a2a$export$cf634262e726cd19, (v) => $645594d913f34a2a$export$cf634262e726cd19 = v);
168
+ $parcel$export($645594d913f34a2a$exports, "spectrum-Popover--withTip", () => $645594d913f34a2a$export$d8b16c5377728262, (v) => $645594d913f34a2a$export$d8b16c5377728262 = v);
169
+ var $645594d913f34a2a$export$a62dc1b6ab23a7bb;
170
+ var $645594d913f34a2a$export$a9781837241c946d;
171
+ var $645594d913f34a2a$export$6a19b19b14780d4a;
172
+ var $645594d913f34a2a$export$f30becfb1df0cae4;
173
+ var $645594d913f34a2a$export$5fc8b429396c9f58;
174
+ var $645594d913f34a2a$export$79cc55906ac5b00;
175
+ var $645594d913f34a2a$export$3100ec4dc1668df1;
176
+ var $645594d913f34a2a$export$ed733fa6cf19ab80;
177
+ var $645594d913f34a2a$export$cf634262e726cd19;
178
+ var $645594d913f34a2a$export$d8b16c5377728262;
179
+ $645594d913f34a2a$export$a62dc1b6ab23a7bb = "spectrum-Popover_6115b8";
180
+ $645594d913f34a2a$export$a9781837241c946d = "is-open_6115b8";
181
+ $645594d913f34a2a$export$6a19b19b14780d4a = "spectrum-Popover--bottom_6115b8";
182
+ $645594d913f34a2a$export$f30becfb1df0cae4 = "spectrum-Popover--top_6115b8";
183
+ $645594d913f34a2a$export$5fc8b429396c9f58 = "spectrum-Popover--right_6115b8";
184
+ $645594d913f34a2a$export$79cc55906ac5b00 = "spectrum-Popover--left_6115b8";
185
+ $645594d913f34a2a$export$3100ec4dc1668df1 = "spectrum-Popover-tip_6115b8";
186
+ $645594d913f34a2a$export$ed733fa6cf19ab80 = "spectrum-Popover-tip-triangle_6115b8";
187
+ $645594d913f34a2a$export$cf634262e726cd19 = "spectrum-Popover--dialog_6115b8";
188
+ $645594d913f34a2a$export$d8b16c5377728262 = "spectrum-Popover--withTip_6115b8";
189
+
190
+
191
+ /*
192
+ * Copyright 2020 Adobe. All rights reserved.
193
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
194
+ * you may not use this file except in compliance with the License. You may obtain a copy
195
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
196
+ *
197
+ * Unless required by applicable law or agreed to in writing, software distributed under
198
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
199
+ * OF ANY KIND, either express or implied. See the License for the specific language
200
+ * governing permissions and limitations under the License.
201
+ */
202
+
203
+ var $c77d7b73b2bbd0fb$exports = {};
204
+
205
+ $parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-Underlay", () => $c77d7b73b2bbd0fb$export$74470528f463af97, (v) => $c77d7b73b2bbd0fb$export$74470528f463af97 = v);
206
+ $parcel$export($c77d7b73b2bbd0fb$exports, "is-open", () => $c77d7b73b2bbd0fb$export$a9781837241c946d, (v) => $c77d7b73b2bbd0fb$export$a9781837241c946d = v);
207
+ $parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-Underlay--transparent", () => $c77d7b73b2bbd0fb$export$8eb3860104039b44, (v) => $c77d7b73b2bbd0fb$export$8eb3860104039b44 = v);
208
+ var $c77d7b73b2bbd0fb$export$74470528f463af97;
209
+ var $c77d7b73b2bbd0fb$export$a9781837241c946d;
210
+ var $c77d7b73b2bbd0fb$export$8eb3860104039b44;
211
+ $c77d7b73b2bbd0fb$export$74470528f463af97 = "spectrum-Underlay_eb7615";
212
+ $c77d7b73b2bbd0fb$export$a9781837241c946d = "is-open_eb7615";
213
+ $c77d7b73b2bbd0fb$export$8eb3860104039b44 = "spectrum-Underlay--transparent_eb7615";
214
+
215
+
216
+ function $76a452f4e3df11be$export$f360afc887607b02({ isOpen: isOpen , isTransparent: isTransparent }) {
217
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
218
+ className: (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c77d7b73b2bbd0fb$exports))), "spectrum-Underlay", {
219
+ "is-open": isOpen,
220
+ "spectrum-Underlay--transparent": isTransparent
221
+ })
222
+ });
223
+ }
224
+
225
+
226
+
227
+ /**
228
+ * Arrow placement can be done pointing right or down because those paths start at 0, x or y. Because the
229
+ * other two don't, they start at a fractional pixel value, it introduces rounding differences between browsers and
230
+ * between display types (retina with subpixels vs not retina). By flipping them with CSS we can ensure that
231
+ * the path always starts at 0 so that it perfectly overlaps the popover's border.
232
+ * See bottom of file for more explanation.
233
+ */ let $17b503f7de08fecc$var$arrowPlacement = {
234
+ left: "right",
235
+ right: "right",
236
+ top: "bottom",
237
+ bottom: "bottom"
238
+ };
239
+ function $17b503f7de08fecc$var$Popover(props, ref) {
240
+ let { children: children , state: state , ...otherProps } = props;
241
+ let domRef = (0, $fQOb3$useDOMRef)(ref);
242
+ let wrapperRef = (0, $fQOb3$useRef)(null);
243
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $70305dc5fb729c3b$export$c6fdb837b070b4ff), {
244
+ ...otherProps,
245
+ isOpen: state.isOpen,
246
+ nodeRef: wrapperRef
247
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement($17b503f7de08fecc$var$PopoverWrapper, {
248
+ ref: domRef,
249
+ ...props,
250
+ wrapperRef: wrapperRef
251
+ }, children));
252
+ }
253
+ const $17b503f7de08fecc$var$PopoverWrapper = /*#__PURE__*/ (0, $fQOb3$forwardRef)((props, ref)=>{
254
+ let { children: children , isOpen: isOpen , hideArrow: hideArrow , isNonModal: isNonModal , state: state , wrapperRef: wrapperRef } = props;
255
+ let { styleProps: styleProps } = (0, $fQOb3$useStyleProps)(props);
256
+ let { size: size , borderWidth: borderWidth , arrowRef: arrowRef } = $17b503f7de08fecc$var$useArrowSize();
257
+ const borderRadius = $17b503f7de08fecc$var$usePopoverBorderRadius(ref);
258
+ let borderDiagonal = borderWidth * Math.SQRT2;
259
+ let primary = size + borderDiagonal;
260
+ let secondary = primary * 2;
261
+ let { popoverProps: popoverProps , arrowProps: arrowProps , underlayProps: underlayProps , placement: placement } = (0, $fQOb3$usePopover)({
262
+ ...props,
263
+ popoverRef: ref,
264
+ maxHeight: null,
265
+ arrowSize: hideArrow ? 0 : secondary,
266
+ arrowBoundaryOffset: borderRadius
267
+ }, state);
268
+ // Attach Transition's nodeRef to outermost wrapper for node.reflow: https://github.com/reactjs/react-transition-group/blob/c89f807067b32eea6f68fd6c622190d88ced82e2/src/Transition.js#L231
269
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
270
+ ref: wrapperRef
271
+ }, !isNonModal && /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $76a452f4e3df11be$export$f360afc887607b02), {
272
+ isTransparent: true,
273
+ ...underlayProps,
274
+ isOpen: isOpen
275
+ }), /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
276
+ ...styleProps,
277
+ ...popoverProps,
278
+ style: {
279
+ ...styleProps.style,
280
+ ...popoverProps.style
281
+ },
282
+ ref: ref,
283
+ className: (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($645594d913f34a2a$exports))), "spectrum-Popover", `spectrum-Popover--${placement}`, {
284
+ "spectrum-Popover--withTip": !hideArrow,
285
+ "is-open": isOpen
286
+ }, (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($853e19557ad8790f$exports))), "spectrum-Popover", "react-spectrum-Popover"), styleProps.className),
287
+ role: "presentation",
288
+ "data-testid": "popover"
289
+ }, !isNonModal && /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $fQOb3$DismissButton), {
290
+ onDismiss: state.close
291
+ }), children, hideArrow ? null : /*#__PURE__*/ (0, $fQOb3$react).createElement($17b503f7de08fecc$var$Arrow, {
292
+ arrowProps: arrowProps,
293
+ isLandscape: $17b503f7de08fecc$var$arrowPlacement[placement] === "bottom",
294
+ arrowRef: arrowRef,
295
+ primary: primary,
296
+ secondary: secondary,
297
+ borderDiagonal: borderDiagonal
298
+ }), /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $fQOb3$DismissButton), {
299
+ onDismiss: state.close
300
+ })));
301
+ });
302
+ function $17b503f7de08fecc$var$usePopoverBorderRadius(popoverRef) {
303
+ let [borderRadius, setBorderRadius] = (0, $fQOb3$useState)(0);
304
+ (0, $fQOb3$useLayoutEffect)(()=>{
305
+ if (popoverRef.current) {
306
+ let spectrumBorderRadius = window.getComputedStyle(popoverRef.current).borderRadius;
307
+ if (spectrumBorderRadius !== "") setBorderRadius(parseInt(spectrumBorderRadius, 10));
308
+ }
309
+ }, [
310
+ popoverRef
311
+ ]);
312
+ return borderRadius;
313
+ }
314
+ function $17b503f7de08fecc$var$useArrowSize() {
315
+ let [size, setSize] = (0, $fQOb3$useState)(20);
316
+ let [borderWidth, setBorderWidth] = (0, $fQOb3$useState)(1);
317
+ let arrowRef = (0, $fQOb3$useRef)(null);
318
+ // get the css value for the tip size and divide it by 2 for this arrow implementation
319
+ (0, $fQOb3$useLayoutEffect)(()=>{
320
+ if (arrowRef.current) {
321
+ let spectrumTipWidth = window.getComputedStyle(arrowRef.current).getPropertyValue("--spectrum-popover-tip-size");
322
+ if (spectrumTipWidth !== "") setSize(parseInt(spectrumTipWidth, 10) / 2);
323
+ let spectrumBorderWidth = window.getComputedStyle(arrowRef.current).getPropertyValue("--spectrum-popover-tip-borderWidth");
324
+ if (spectrumBorderWidth !== "") setBorderWidth(parseInt(spectrumBorderWidth, 10));
325
+ }
326
+ }, []);
327
+ return {
328
+ size: size,
329
+ borderWidth: borderWidth,
330
+ arrowRef: arrowRef
331
+ };
332
+ }
333
+ function $17b503f7de08fecc$var$Arrow(props) {
334
+ let { primary: primary , secondary: secondary , isLandscape: isLandscape , arrowProps: arrowProps , borderDiagonal: borderDiagonal , arrowRef: arrowRef } = props;
335
+ let halfBorderDiagonal = borderDiagonal / 2;
336
+ let primaryStart = 0;
337
+ let primaryEnd = primary - halfBorderDiagonal;
338
+ let secondaryStart = halfBorderDiagonal;
339
+ let secondaryMiddle = secondary / 2;
340
+ let secondaryEnd = secondary - halfBorderDiagonal;
341
+ let pathData = isLandscape ? [
342
+ "M",
343
+ secondaryStart,
344
+ primaryStart,
345
+ "L",
346
+ secondaryMiddle,
347
+ primaryEnd,
348
+ "L",
349
+ secondaryEnd,
350
+ primaryStart
351
+ ] : [
352
+ "M",
353
+ primaryStart,
354
+ secondaryStart,
355
+ "L",
356
+ primaryEnd,
357
+ secondaryMiddle,
358
+ "L",
359
+ primaryStart,
360
+ secondaryEnd
361
+ ];
362
+ /* use ceil because the svg needs to always accommodate the path inside it */ return /*#__PURE__*/ (0, $fQOb3$react).createElement("svg", {
363
+ xmlns: "http://www.w3.org/svg/2000",
364
+ width: Math.ceil(isLandscape ? secondary : primary),
365
+ height: Math.ceil(isLandscape ? primary : secondary),
366
+ className: (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($645594d913f34a2a$exports))), "spectrum-Popover-tip"),
367
+ ref: arrowRef,
368
+ ...arrowProps
369
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement("path", {
370
+ className: (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($645594d913f34a2a$exports))), "spectrum-Popover-tip-triangle"),
371
+ d: pathData.join(" ")
372
+ }));
373
+ }
374
+ let $17b503f7de08fecc$export$5b6b19405a83ff9d = /*#__PURE__*/ (0, $fQOb3$forwardRef)($17b503f7de08fecc$var$Popover);
375
+ /**
376
+ * More explanation on popover tips.
377
+ * - I tried changing the calculation of the popover placement in an effort to get it squarely onto the pixel grid.
378
+ * This did not work because the problem was in the svg partial pixel end of the path in the popover right and popover bottom.
379
+ * - I tried creating an extra 'bandaid' path that matched the background color and would overlap the popover border.
380
+ * This didn't work because the border on the svg triangle didn't extend all the way to match nicely with the popover border.
381
+ * - I tried getting the client bounding box and setting the svg to that partial pixel value
382
+ * This didn't work because again the issue was inside the svg
383
+ * - I didn't try drawing the svg backwards
384
+ * This could still be tried
385
+ * - I tried changing the calculation of the popover placement AND the svg height/width so that they were all rounded
386
+ * This seems to have done the trick.
387
+ */
388
+
389
+ /*
390
+ * Copyright 2020 Adobe. All rights reserved.
391
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
392
+ * you may not use this file except in compliance with the License. You may obtain a copy
393
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
394
+ *
395
+ * Unless required by applicable law or agreed to in writing, software distributed under
396
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
397
+ * OF ANY KIND, either express or implied. See the License for the specific language
398
+ * governing permissions and limitations under the License.
399
+ */
400
+
401
+ var $f7ed9f5201273840$exports = {};
402
+
403
+ $parcel$export($f7ed9f5201273840$exports, "spectrum-Modal", () => $f7ed9f5201273840$export$4c0b1e44c3834c85, (v) => $f7ed9f5201273840$export$4c0b1e44c3834c85 = v);
404
+ $parcel$export($f7ed9f5201273840$exports, "is-open", () => $f7ed9f5201273840$export$a9781837241c946d, (v) => $f7ed9f5201273840$export$a9781837241c946d = v);
405
+ $parcel$export($f7ed9f5201273840$exports, "spectrum-Modal-wrapper", () => $f7ed9f5201273840$export$35bea187ff802494, (v) => $f7ed9f5201273840$export$35bea187ff802494 = v);
406
+ $parcel$export($f7ed9f5201273840$exports, "spectrum-Modal--responsive", () => $f7ed9f5201273840$export$fd1e42aa8ea02a1, (v) => $f7ed9f5201273840$export$fd1e42aa8ea02a1 = v);
407
+ $parcel$export($f7ed9f5201273840$exports, "spectrum-Modal--fullscreen", () => $f7ed9f5201273840$export$a4423fa77727431a, (v) => $f7ed9f5201273840$export$a4423fa77727431a = v);
408
+ $parcel$export($f7ed9f5201273840$exports, "spectrum-Modal--fullscreenTakeover", () => $f7ed9f5201273840$export$175dd699720b5fb7, (v) => $f7ed9f5201273840$export$175dd699720b5fb7 = v);
409
+ var $f7ed9f5201273840$export$4c0b1e44c3834c85;
410
+ var $f7ed9f5201273840$export$a9781837241c946d;
411
+ var $f7ed9f5201273840$export$35bea187ff802494;
412
+ var $f7ed9f5201273840$export$fd1e42aa8ea02a1;
413
+ var $f7ed9f5201273840$export$a4423fa77727431a;
414
+ var $f7ed9f5201273840$export$175dd699720b5fb7;
415
+ $f7ed9f5201273840$export$4c0b1e44c3834c85 = "spectrum-Modal_f81956";
416
+ $f7ed9f5201273840$export$a9781837241c946d = "is-open_f81956";
417
+ $f7ed9f5201273840$export$35bea187ff802494 = "spectrum-Modal-wrapper_f81956";
418
+ $f7ed9f5201273840$export$fd1e42aa8ea02a1 = "spectrum-Modal--responsive_f81956";
419
+ $f7ed9f5201273840$export$a4423fa77727431a = "spectrum-Modal--fullscreen_f81956";
420
+ $f7ed9f5201273840$export$175dd699720b5fb7 = "spectrum-Modal--fullscreenTakeover_f81956";
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+ function $842084dfa182af65$var$Modal(props, ref) {
429
+ let { children: children , state: state , ...otherProps } = props;
430
+ let domRef = (0, $fQOb3$useDOMRef)(ref);
431
+ let wrapperRef = (0, $fQOb3$useRef)(null);
432
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $70305dc5fb729c3b$export$c6fdb837b070b4ff), {
433
+ ...otherProps,
434
+ isOpen: state.isOpen,
435
+ nodeRef: wrapperRef
436
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement($842084dfa182af65$var$ModalWrapper, {
437
+ ...props,
438
+ wrapperRef: wrapperRef,
439
+ ref: domRef
440
+ }, children));
441
+ }
442
+ let $842084dfa182af65$var$typeMap = {
443
+ fullscreen: "fullscreen",
444
+ fullscreenTakeover: "fullscreenTakeover"
445
+ };
446
+ let $842084dfa182af65$var$ModalWrapper = /*#__PURE__*/ (0, $fQOb3$forwardRef)(function(props, ref) {
447
+ let { type: type , children: children , state: state , isOpen: isOpen , wrapperRef: wrapperRef } = props;
448
+ let typeVariant = $842084dfa182af65$var$typeMap[type];
449
+ let { styleProps: styleProps } = (0, $fQOb3$useStyleProps)(props);
450
+ let { modalProps: modalProps , underlayProps: underlayProps } = (0, $fQOb3$useModalOverlay)(props, state, ref);
451
+ let wrapperClassName = (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f7ed9f5201273840$exports))), "spectrum-Modal-wrapper", (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($853e19557ad8790f$exports))), "spectrum-Modal-wrapper", "react-spectrum-Modal-wrapper"));
452
+ let modalClassName = (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f7ed9f5201273840$exports))), "spectrum-Modal", {
453
+ "is-open": isOpen
454
+ }, (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($853e19557ad8790f$exports))), "spectrum-Modal", "react-spectrum-Modal"), {
455
+ [`spectrum-Modal--${typeVariant}`]: typeVariant
456
+ }, styleProps.className);
457
+ let viewport = (0, $fQOb3$useViewportSize)();
458
+ let style = {
459
+ "--spectrum-visual-viewport-height": viewport.height + "px"
460
+ };
461
+ // Attach Transition's nodeRef to outer most wrapper for node.reflow: https://github.com/reactjs/react-transition-group/blob/c89f807067b32eea6f68fd6c622190d88ced82e2/src/Transition.js#L231
462
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
463
+ ref: wrapperRef
464
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $76a452f4e3df11be$export$f360afc887607b02), {
465
+ ...underlayProps,
466
+ isOpen: isOpen
467
+ }), /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
468
+ className: wrapperClassName,
469
+ style: style
470
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
471
+ ...styleProps,
472
+ ...modalProps,
473
+ ref: ref,
474
+ className: modalClassName,
475
+ "data-testid": "modal"
476
+ }, children)));
477
+ });
478
+ let $842084dfa182af65$export$2b77a92f1a5ad772 = /*#__PURE__*/ (0, $fQOb3$forwardRef)($842084dfa182af65$var$Modal);
479
+
480
+
481
+ /*
482
+ * Copyright 2020 Adobe. All rights reserved.
483
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
484
+ * you may not use this file except in compliance with the License. You may obtain a copy
485
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
486
+ *
487
+ * Unless required by applicable law or agreed to in writing, software distributed under
488
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
489
+ * OF ANY KIND, either express or implied. See the License for the specific language
490
+ * governing permissions and limitations under the License.
491
+ */
492
+
493
+
494
+
495
+
496
+ var $930b2f4095bb11d1$exports = {};
497
+
498
+ $parcel$export($930b2f4095bb11d1$exports, "spectrum-Tray", () => $930b2f4095bb11d1$export$ce0704cd084c4f0d, (v) => $930b2f4095bb11d1$export$ce0704cd084c4f0d = v);
499
+ $parcel$export($930b2f4095bb11d1$exports, "is-open", () => $930b2f4095bb11d1$export$a9781837241c946d, (v) => $930b2f4095bb11d1$export$a9781837241c946d = v);
500
+ $parcel$export($930b2f4095bb11d1$exports, "spectrum-Tray-wrapper", () => $930b2f4095bb11d1$export$641b9b70c23dce66, (v) => $930b2f4095bb11d1$export$641b9b70c23dce66 = v);
501
+ $parcel$export($930b2f4095bb11d1$exports, "spectrum-Tray--fixedHeight", () => $930b2f4095bb11d1$export$79bfb05e59a300b, (v) => $930b2f4095bb11d1$export$79bfb05e59a300b = v);
502
+ var $930b2f4095bb11d1$export$ce0704cd084c4f0d;
503
+ var $930b2f4095bb11d1$export$a9781837241c946d;
504
+ var $930b2f4095bb11d1$export$641b9b70c23dce66;
505
+ var $930b2f4095bb11d1$export$79bfb05e59a300b;
506
+ $930b2f4095bb11d1$export$ce0704cd084c4f0d = "spectrum-Tray_23bf66";
507
+ $930b2f4095bb11d1$export$a9781837241c946d = "is-open_23bf66";
508
+ $930b2f4095bb11d1$export$641b9b70c23dce66 = "spectrum-Tray-wrapper_23bf66";
509
+ $930b2f4095bb11d1$export$79bfb05e59a300b = "spectrum-Tray--fixedHeight_23bf66";
510
+
511
+
512
+
513
+
514
+ function $1afc87f3d16a5a1c$var$Tray(props, ref) {
515
+ let { children: children , state: state , ...otherProps } = props;
516
+ let domRef = (0, $fQOb3$useDOMRef)(ref);
517
+ let wrapperRef = (0, $fQOb3$useRef)(null);
518
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $70305dc5fb729c3b$export$c6fdb837b070b4ff), {
519
+ ...otherProps,
520
+ isOpen: state.isOpen,
521
+ nodeRef: wrapperRef
522
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement($1afc87f3d16a5a1c$var$TrayWrapper, {
523
+ ...props,
524
+ wrapperRef: wrapperRef,
525
+ ref: domRef
526
+ }, children));
527
+ }
528
+ let $1afc87f3d16a5a1c$var$TrayWrapper = /*#__PURE__*/ (0, $fQOb3$forwardRef)(function(props, ref) {
529
+ let { children: children , isOpen: isOpen , isFixedHeight: isFixedHeight , state: state , wrapperRef: wrapperRef } = props;
530
+ let { styleProps: styleProps } = (0, $fQOb3$useStyleProps)(props);
531
+ let { modalProps: modalProps , underlayProps: underlayProps } = (0, $fQOb3$useModalOverlay)({
532
+ ...props,
533
+ isDismissable: true
534
+ }, state, ref);
535
+ // We need to measure the window's height in JS rather than using percentages in CSS
536
+ // so that contents (e.g. menu) can inherit the max-height properly. Using percentages
537
+ // does not work properly because there is nothing to base the percentage on.
538
+ // We cannot use vh units because mobile browsers adjust the window height dynamically
539
+ // when the address bar/bottom toolbars show and hide on scroll and vh units are fixed.
540
+ // Also, the visual viewport is smaller than the layout viewport when the virtual keyboard
541
+ // is up, so use the VisualViewport API to ensure the tray is displayed above the keyboard.
542
+ let viewport = (0, $fQOb3$useViewportSize)();
543
+ let wrapperStyle = {
544
+ "--spectrum-visual-viewport-height": viewport.height + "px"
545
+ };
546
+ let wrapperClassName = (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($930b2f4095bb11d1$exports))), "spectrum-Tray-wrapper");
547
+ let className = (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($930b2f4095bb11d1$exports))), "spectrum-Tray", {
548
+ "is-open": isOpen,
549
+ "spectrum-Tray--fixedHeight": isFixedHeight
550
+ }, (0, $fQOb3$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($853e19557ad8790f$exports))), "spectrum-Tray", "react-spectrum-Tray"), styleProps.className);
551
+ // Attach Transition's nodeRef to outer most wrapper for node.reflow: https://github.com/reactjs/react-transition-group/blob/c89f807067b32eea6f68fd6c622190d88ced82e2/src/Transition.js#L231
552
+ return /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
553
+ ref: wrapperRef
554
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $76a452f4e3df11be$export$f360afc887607b02), {
555
+ ...underlayProps,
556
+ isOpen: isOpen
557
+ }), /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
558
+ className: wrapperClassName,
559
+ style: wrapperStyle
560
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement("div", {
561
+ ...styleProps,
562
+ ...modalProps,
563
+ className: className,
564
+ ref: ref,
565
+ "data-testid": "tray"
566
+ }, /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $fQOb3$DismissButton), {
567
+ onDismiss: state.close
568
+ }), children, /*#__PURE__*/ (0, $fQOb3$react).createElement((0, $fQOb3$DismissButton), {
569
+ onDismiss: state.close
570
+ }))));
571
+ });
572
+ let $1afc87f3d16a5a1c$export$4589ed81930b555c = /*#__PURE__*/ (0, $fQOb3$forwardRef)($1afc87f3d16a5a1c$var$Tray);
573
+
574
+
575
+
576
+
577
+
578
+ export {$70305dc5fb729c3b$export$c6fdb837b070b4ff as Overlay, $17b503f7de08fecc$export$5b6b19405a83ff9d as Popover, $842084dfa182af65$export$2b77a92f1a5ad772 as Modal, $1afc87f3d16a5a1c$export$4589ed81930b555c as Tray, $bc765a7a041310da$export$b847a40ee92eff38 as OpenTransition};
579
+ //# sourceMappingURL=module.js.map
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- .spectrum-Popover_38efea.react-spectrum-Popover_38efea{visibility:visible}.spectrum-Popover_38efea .spectrum-Dialog-content_38efea{max-height:initial}.spectrum-Modal-wrapper_38efea.react-spectrum-Modal-wrapper_38efea,.spectrum-Modal_38efea.react-spectrum-Modal_38efea,.spectrum-Tray_38efea.react-spectrum-Tray_38efea{visibility:visible}.spectrum-Tray_23bf66{visibility:hidden;opacity:0;transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out,visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);pointer-events:none}.spectrum-Tray_23bf66.is-open_23bf66{visibility:visible;opacity:.9999;pointer-events:auto;transition-delay:0s}[dir=ltr] .spectrum-Tray-wrapper_23bf66{left:0}[dir=rtl] .spectrum-Tray-wrapper_23bf66{right:0}.spectrum-Tray-wrapper_23bf66{width:100%;height:100vh;pointer-events:none;z-index:2;justify-content:center;display:flex;position:fixed;top:0}.spectrum-Tray_23bf66{--spectrum-tray-margin-top:64px;--spectrum-tray-max-width:450px;width:var(--spectrum-tray-width,100%);max-width:var(--spectrum-tray-max-width,375px);min-height:var(--spectrum-tray-min-height,var(--spectrum-global-dimension-static-size-800));max-height:calc(var(--spectrum-visual-viewport-height) - var(--spectrum-tray-margin-top));padding-bottom:max(calc(100vh - var(--spectrum-visual-viewport-height)),env(safe-area-inset-bottom));border-radius:var(--spectrum-tray-full-width-border-radius,var(--spectrum-alias-border-radius-regular))var(--spectrum-tray-full-width-border-radius,var(--spectrum-alias-border-radius-regular))var(--spectrum-tray-border-radius,0px)var(--spectrum-tray-border-radius,0px);transition:opacity var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100))cubic-bezier(.5,0,1,1)0s,transform var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100))cubic-bezier(.5,0,1,1)0s;outline:none;flex-direction:column;display:flex;position:absolute;bottom:0;transform:translateY(100%)}.spectrum-Tray_23bf66.is-open_23bf66{transition:transform var(--spectrum-dialog-entry-animation-duration,var(--spectrum-global-animation-duration-500))cubic-bezier(0,0,.4,1)var(--spectrum-dialog-entry-animation-delay,var(--spectrum-global-animation-duration-200)),opacity var(--spectrum-dialog-entry-animation-duration,var(--spectrum-global-animation-duration-500))cubic-bezier(0,0,.4,1)var(--spectrum-dialog-entry-animation-delay,var(--spectrum-global-animation-duration-200));transform:translateY(0)}.spectrum-Tray--fixedHeight_23bf66{height:calc(var(--spectrum-visual-viewport-height) - var(--spectrum-tray-margin-top));top:var(--spectrum-tray-margin-top)}@media (max-width:450px){.spectrum-Tray_23bf66{border-radius:var(--spectrum-tray-border-radius,0px)}}.spectrum-Tray_23bf66{background-color:var(--spectrum-tray-background-color)}.spectrum-Modal_f81956{visibility:hidden;opacity:0;transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out,visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);pointer-events:none}.spectrum-Modal_f81956.is-open_f81956{visibility:visible;opacity:.9999;pointer-events:auto;transition-delay:0s}.spectrum-Modal-wrapper_f81956{box-sizing:border-box;width:100vw;height:var(--spectrum-visual-viewport-height);visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);justify-content:center;align-items:center;display:flex;position:fixed;top:0;left:0}.spectrum-Modal-wrapper_f81956.is-open_f81956{visibility:visible}.spectrum-Modal_f81956{transform:translateY(var(--spectrum-dialog-entry-animation-distance,var(--spectrum-global-dimension-size-250)));z-index:2;max-height:calc(var(--spectrum-visual-viewport-height)*.9);max-width:90vw;min-width:var(--spectrum-dialog-min-width,var(--spectrum-global-dimension-static-size-3600));border-radius:var(--spectrum-dialog-border-radius,var(--spectrum-global-dimension-size-50));pointer-events:auto;transition:opacity var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100))cubic-bezier(.5,0,1,1)0s,visibility 0s linear calc(0s + var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100))),transform 0s linear calc(0s + var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100)));outline:none}.spectrum-Modal_f81956.is-open_f81956{transition:transform var(--spectrum-dialog-entry-animation-duration,var(--spectrum-global-animation-duration-500))cubic-bezier(0,0,.4,1)var(--spectrum-dialog-entry-animation-delay,var(--spectrum-global-animation-duration-200)),opacity var(--spectrum-dialog-entry-animation-duration,var(--spectrum-global-animation-duration-500))cubic-bezier(0,0,.4,1)var(--spectrum-dialog-entry-animation-delay,var(--spectrum-global-animation-duration-200));transform:translateY(0)}@media only screen and (max-device-width:400px),only screen and (max-device-height:350px){.spectrum-Modal--responsive_f81956{width:100%;height:100%;max-width:100%;max-height:100%;border-radius:0}.spectrum-Modal-wrapper_f81956 .spectrum-Modal--responsive_f81956{margin-top:0}}.spectrum-Modal--fullscreen_f81956{max-width:none;max-height:none;width:calc(100% - 80px);height:calc(100% - 80px);position:fixed;top:40px;bottom:40px;left:40px;right:40px}.spectrum-Modal--fullscreenTakeover_f81956{max-width:none;max-height:none;box-sizing:border-box;border:none;border-radius:0;position:fixed;top:0;bottom:0;left:0;right:0}.spectrum-Modal--fullscreenTakeover_f81956,.spectrum-Modal--fullscreenTakeover_f81956.is-open_f81956{transform:none}.spectrum-Modal_f81956{background:var(--spectrum-dialog-background-color,var(--spectrum-alias-background-color-default))}.spectrum-Underlay_eb7615{visibility:hidden;opacity:0;transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out,visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);pointer-events:none}.spectrum-Underlay_eb7615.is-open_eb7615{visibility:visible;opacity:.9999;pointer-events:auto;transition-delay:0s}.spectrum-Underlay_eb7615{z-index:1;transition:opacity var(--spectrum-dialog-background-exit-animation-duration,var(--spectrum-global-animation-duration-300))cubic-bezier(.5,0,1,1)var(--spectrum-dialog-background-exit-animation-delay,var(--spectrum-global-animation-duration-200)),visibility 0s linear calc(var(--spectrum-dialog-background-exit-animation-delay,var(--spectrum-global-animation-duration-200)) + var(--spectrum-dialog-background-exit-animation-duration,var(--spectrum-global-animation-duration-300)));position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.spectrum-Underlay_eb7615.spectrum-Underlay--transparent_eb7615{background:0 0;transition:none}.spectrum-Underlay_eb7615.is-open_eb7615{transition:opacity var(--spectrum-dialog-background-entry-animation-duration,var(--spectrum-global-animation-duration-600))cubic-bezier(0,0,.4,1)0s}.spectrum-Underlay_eb7615{background:var(--spectrum-dialog-underlay-background-color,var(--spectrum-alias-background-color-modal-overlay))}.spectrum-Popover_6115b8{visibility:hidden;opacity:0;transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out,visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);pointer-events:none}.spectrum-Popover_6115b8.is-open_6115b8{visibility:visible;opacity:.9999;pointer-events:auto;transition-delay:0s}.spectrum-Popover--bottom_6115b8.is-open_6115b8{transform:translateY(var(--spectrum-overlay-positive-transform-distance))}.spectrum-Popover--top_6115b8.is-open_6115b8{transform:translateY(var(--spectrum-overlay-negative-transform-distance))}.spectrum-Popover--right_6115b8.is-open_6115b8{transform:translateX(var(--spectrum-overlay-positive-transform-distance))}.spectrum-Popover--left_6115b8.is-open_6115b8{transform:translateX(var(--spectrum-overlay-negative-transform-distance))}.spectrum-Popover_6115b8{box-sizing:border-box;min-width:var(--spectrum-global-dimension-size-400);min-height:var(--spectrum-global-dimension-size-400);border-style:solid;border-width:var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin));border-radius:var(--spectrum-popover-border-radius,var(--spectrum-alias-border-radius-regular));outline:none;flex-direction:column;display:inline-flex;position:absolute}.spectrum-Popover-tip_6115b8{--spectrum-popover-tip-size:var(--spectrum-popover-tip-width,var(--spectrum-global-dimension-size-250));--spectrum-popover-tip-borderWidth:var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin));position:absolute;-webkit-transform:translate(0)}.spectrum-Popover-tip_6115b8 .spectrum-Popover-tip-triangle_6115b8{stroke-linecap:square;stroke-linejoin:miter;stroke-width:var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin))}.spectrum-Popover--dialog_6115b8{min-width:270px;padding:30px 29px}.spectrum-Popover--left_6115b8.spectrum-Popover--withTip_6115b8{margin-right:13px}.spectrum-Popover--left_6115b8 .spectrum-Popover-tip_6115b8{left:100%}.spectrum-Popover--right_6115b8.spectrum-Popover--withTip_6115b8{margin-left:13px}.spectrum-Popover--right_6115b8 .spectrum-Popover-tip_6115b8{right:100%;transform:scaleX(-1)}.spectrum-Popover--left_6115b8 .spectrum-Popover-tip_6115b8,.spectrum-Popover--right_6115b8 .spectrum-Popover-tip_6115b8{margin-top:calc(var(--spectrum-global-dimension-size-150)*-1);top:50%}.spectrum-Popover--bottom_6115b8.spectrum-Popover--withTip_6115b8{margin-top:13px}.spectrum-Popover--bottom_6115b8 .spectrum-Popover-tip_6115b8{bottom:100%;transform:scaleY(-1)}.spectrum-Popover--top_6115b8.spectrum-Popover--withTip_6115b8{margin-bottom:13px}.spectrum-Popover--top_6115b8 .spectrum-Popover-tip_6115b8{top:100%}.spectrum-Popover--bottom_6115b8 .spectrum-Popover-tip_6115b8,.spectrum-Popover--top_6115b8 .spectrum-Popover-tip_6115b8{margin-left:calc(var(--spectrum-global-dimension-size-150)*-1);left:50%}.spectrum-Popover_6115b8{background-color:var(--spectrum-popover-background-color,var(--spectrum-global-color-gray-50));border-color:var(--spectrum-popover-border-color,var(--spectrum-alias-border-color-dark));filter:drop-shadow(0 var(--spectrum-popover-shadow-offset-y,var(--spectrum-alias-dropshadow-offset-y))var(--spectrum-popover-shadow-blur,var(--spectrum-alias-dropshadow-blur))var(--spectrum-popover-shadow-color,var(--spectrum-alias-dropshadow-color)));-webkit-filter:drop-shadow(0 var(--spectrum-popover-shadow-offset-y,var(--spectrum-alias-dropshadow-offset-y))var(--spectrum-popover-shadow-blur,var(--spectrum-alias-dropshadow-blur))var(--spectrum-popover-shadow-color,var(--spectrum-alias-dropshadow-color)));will-change:filter;clip-path:inset(-30px)}.spectrum-Popover_6115b8 .spectrum-Popover-tip_6115b8 .spectrum-Popover-tip-triangle_6115b8{fill:var(--spectrum-popover-background-color,var(--spectrum-global-color-gray-50));stroke:var(--spectrum-popover-border-color,var(--spectrum-alias-border-color-dark))}
1
+ .spectrum-Popover_38efea.react-spectrum-Popover_38efea{visibility:visible}.spectrum-Popover_38efea .spectrum-Dialog-content_38efea{max-height:initial}.spectrum-Modal-wrapper_38efea.react-spectrum-Modal-wrapper_38efea,.spectrum-Modal_38efea.react-spectrum-Modal_38efea,.spectrum-Tray_38efea.react-spectrum-Tray_38efea{visibility:visible}:root{font-synthesis:weight}.spectrum-Tray_23bf66{visibility:hidden;opacity:0;transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out,visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);pointer-events:none}.spectrum-Tray_23bf66.is-open_23bf66{visibility:visible;opacity:.9999;pointer-events:auto;transition-delay:0s}[dir=ltr] .spectrum-Tray-wrapper_23bf66{left:0}[dir=rtl] .spectrum-Tray-wrapper_23bf66{right:0}.spectrum-Tray-wrapper_23bf66{width:100%;height:100vh;pointer-events:none;z-index:2;justify-content:center;display:flex;position:fixed;top:0}.spectrum-Tray_23bf66{--spectrum-tray-margin-top:64px;--spectrum-tray-max-width:450px;width:var(--spectrum-tray-width,100%);max-width:var(--spectrum-tray-max-width,375px);min-height:var(--spectrum-tray-min-height,var(--spectrum-global-dimension-static-size-800));max-height:calc(var(--spectrum-visual-viewport-height) - var(--spectrum-tray-margin-top));padding-bottom:max(calc(100vh - var(--spectrum-visual-viewport-height)),env(safe-area-inset-bottom));border-radius:var(--spectrum-tray-full-width-border-radius,var(--spectrum-alias-border-radius-regular))var(--spectrum-tray-full-width-border-radius,var(--spectrum-alias-border-radius-regular))var(--spectrum-tray-border-radius,0px)var(--spectrum-tray-border-radius,0px);transition:opacity var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100))cubic-bezier(.5,0,1,1)0s,transform var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100))cubic-bezier(.5,0,1,1)0s;outline:none;flex-direction:column;display:flex;position:absolute;bottom:0;transform:translateY(100%)}.spectrum-Tray_23bf66.is-open_23bf66{transition:transform var(--spectrum-dialog-entry-animation-duration,var(--spectrum-global-animation-duration-500))cubic-bezier(0,0,.4,1)var(--spectrum-dialog-entry-animation-delay,var(--spectrum-global-animation-duration-200)),opacity var(--spectrum-dialog-entry-animation-duration,var(--spectrum-global-animation-duration-500))cubic-bezier(0,0,.4,1)var(--spectrum-dialog-entry-animation-delay,var(--spectrum-global-animation-duration-200));transform:translateY(0)}.spectrum-Tray--fixedHeight_23bf66{height:calc(var(--spectrum-visual-viewport-height) - var(--spectrum-tray-margin-top));top:var(--spectrum-tray-margin-top)}@media (max-width:450px){.spectrum-Tray_23bf66{border-radius:var(--spectrum-tray-border-radius,0px)}}.spectrum-Tray_23bf66{background-color:var(--spectrum-tray-background-color)}:root{font-synthesis:weight}.spectrum-Modal_f81956{visibility:hidden;opacity:0;transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out,visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);pointer-events:none}.spectrum-Modal_f81956.is-open_f81956{visibility:visible;opacity:.9999;pointer-events:auto;transition-delay:0s}.spectrum-Modal-wrapper_f81956{box-sizing:border-box;width:100vw;height:var(--spectrum-visual-viewport-height);visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);justify-content:center;align-items:center;display:flex;position:fixed;top:0;left:0}.spectrum-Modal-wrapper_f81956.is-open_f81956{visibility:visible}.spectrum-Modal_f81956{transform:translateY(var(--spectrum-dialog-entry-animation-distance,var(--spectrum-global-dimension-size-250)));z-index:2;max-height:calc(var(--spectrum-visual-viewport-height)*.9);max-width:90vw;min-width:var(--spectrum-dialog-min-width,var(--spectrum-global-dimension-static-size-3600));border-radius:var(--spectrum-dialog-border-radius,var(--spectrum-global-dimension-size-50));pointer-events:auto;transition:opacity var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100))cubic-bezier(.5,0,1,1)0s,visibility 0s linear calc(0s + var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100))),transform 0s linear calc(0s + var(--spectrum-dialog-exit-animation-duration,var(--spectrum-global-animation-duration-100)));outline:none}.spectrum-Modal_f81956.is-open_f81956{transition:transform var(--spectrum-dialog-entry-animation-duration,var(--spectrum-global-animation-duration-500))cubic-bezier(0,0,.4,1)var(--spectrum-dialog-entry-animation-delay,var(--spectrum-global-animation-duration-200)),opacity var(--spectrum-dialog-entry-animation-duration,var(--spectrum-global-animation-duration-500))cubic-bezier(0,0,.4,1)var(--spectrum-dialog-entry-animation-delay,var(--spectrum-global-animation-duration-200));transform:translateY(0)}@media only screen and (max-device-width:400px),only screen and (max-device-height:350px){.spectrum-Modal--responsive_f81956{width:100%;height:100%;max-width:100%;max-height:100%;border-radius:0}.spectrum-Modal-wrapper_f81956 .spectrum-Modal--responsive_f81956{margin-top:0}}.spectrum-Modal--fullscreen_f81956{max-width:none;max-height:none;width:calc(100% - 80px);height:calc(100% - 80px);position:fixed;top:40px;bottom:40px;left:40px;right:40px}.spectrum-Modal--fullscreenTakeover_f81956{max-width:none;max-height:none;box-sizing:border-box;border:none;border-radius:0;position:fixed;top:0;bottom:0;left:0;right:0}.spectrum-Modal--fullscreenTakeover_f81956,.spectrum-Modal--fullscreenTakeover_f81956.is-open_f81956{transform:none}.spectrum-Modal_f81956{background:var(--spectrum-dialog-background-color,var(--spectrum-alias-background-color-default))}:root{font-synthesis:weight}.spectrum-Underlay_eb7615{visibility:hidden;opacity:0;transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out,visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);pointer-events:none}.spectrum-Underlay_eb7615.is-open_eb7615{visibility:visible;opacity:.9999;pointer-events:auto;transition-delay:0s}.spectrum-Underlay_eb7615{z-index:1;transition:opacity var(--spectrum-dialog-background-exit-animation-duration,var(--spectrum-global-animation-duration-300))cubic-bezier(.5,0,1,1)var(--spectrum-dialog-background-exit-animation-delay,var(--spectrum-global-animation-duration-200)),visibility 0s linear calc(var(--spectrum-dialog-background-exit-animation-delay,var(--spectrum-global-animation-duration-200)) + var(--spectrum-dialog-background-exit-animation-duration,var(--spectrum-global-animation-duration-300)));position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.spectrum-Underlay_eb7615.spectrum-Underlay--transparent_eb7615{background:0 0;transition:none}.spectrum-Underlay_eb7615.is-open_eb7615{transition:opacity var(--spectrum-dialog-background-entry-animation-duration,var(--spectrum-global-animation-duration-600))cubic-bezier(0,0,.4,1)0s}.spectrum-Underlay_eb7615{background:var(--spectrum-dialog-underlay-background-color,var(--spectrum-alias-background-color-modal-overlay))}:root{font-synthesis:weight}.spectrum-Popover_6115b8{visibility:hidden;opacity:0;transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out,visibility 0s linear var(--spectrum-global-animation-duration-100,.13s);pointer-events:none}.spectrum-Popover_6115b8.is-open_6115b8{visibility:visible;opacity:.9999;pointer-events:auto;transition-delay:0s}.spectrum-Popover--bottom_6115b8.is-open_6115b8{transform:translateY(var(--spectrum-overlay-positive-transform-distance))}.spectrum-Popover--top_6115b8.is-open_6115b8{transform:translateY(var(--spectrum-overlay-negative-transform-distance))}.spectrum-Popover--right_6115b8.is-open_6115b8{transform:translateX(var(--spectrum-overlay-positive-transform-distance))}.spectrum-Popover--left_6115b8.is-open_6115b8{transform:translateX(var(--spectrum-overlay-negative-transform-distance))}.spectrum-Popover_6115b8{box-sizing:border-box;min-width:var(--spectrum-global-dimension-size-400);min-height:var(--spectrum-global-dimension-size-400);border-style:solid;border-width:var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin));border-radius:var(--spectrum-popover-border-radius,var(--spectrum-alias-border-radius-regular));outline:none;flex-direction:column;display:inline-flex;position:absolute}.spectrum-Popover-tip_6115b8{--spectrum-popover-tip-size:var(--spectrum-popover-tip-width,var(--spectrum-global-dimension-size-250));--spectrum-popover-tip-borderWidth:var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin));position:absolute;-webkit-transform:translate(0)}.spectrum-Popover-tip_6115b8 .spectrum-Popover-tip-triangle_6115b8{stroke-linecap:square;stroke-linejoin:miter;stroke-width:var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin))}.spectrum-Popover--dialog_6115b8{min-width:270px;padding:30px 29px}.spectrum-Popover--left_6115b8.spectrum-Popover--withTip_6115b8{margin-right:13px}.spectrum-Popover--left_6115b8 .spectrum-Popover-tip_6115b8{left:100%}.spectrum-Popover--right_6115b8.spectrum-Popover--withTip_6115b8{margin-left:13px}.spectrum-Popover--right_6115b8 .spectrum-Popover-tip_6115b8{right:100%;transform:scaleX(-1)}.spectrum-Popover--left_6115b8 .spectrum-Popover-tip_6115b8,.spectrum-Popover--right_6115b8 .spectrum-Popover-tip_6115b8{margin-top:calc(var(--spectrum-global-dimension-size-150)*-1);top:50%}.spectrum-Popover--bottom_6115b8.spectrum-Popover--withTip_6115b8{margin-top:13px}.spectrum-Popover--bottom_6115b8 .spectrum-Popover-tip_6115b8{bottom:100%;transform:scaleY(-1)}.spectrum-Popover--top_6115b8.spectrum-Popover--withTip_6115b8{margin-bottom:13px}.spectrum-Popover--top_6115b8 .spectrum-Popover-tip_6115b8{top:100%}.spectrum-Popover--bottom_6115b8 .spectrum-Popover-tip_6115b8,.spectrum-Popover--top_6115b8 .spectrum-Popover-tip_6115b8{margin-left:calc(var(--spectrum-global-dimension-size-150)*-1);left:50%}.spectrum-Popover_6115b8{background-color:var(--spectrum-popover-background-color,var(--spectrum-global-color-gray-50));border-color:var(--spectrum-popover-border-color,var(--spectrum-alias-border-color-dark));filter:drop-shadow(0 var(--spectrum-popover-shadow-offset-y,var(--spectrum-alias-dropshadow-offset-y))var(--spectrum-popover-shadow-blur,var(--spectrum-alias-dropshadow-blur))var(--spectrum-popover-shadow-color,var(--spectrum-alias-dropshadow-color)));-webkit-filter:drop-shadow(0 var(--spectrum-popover-shadow-offset-y,var(--spectrum-alias-dropshadow-offset-y))var(--spectrum-popover-shadow-blur,var(--spectrum-alias-dropshadow-blur))var(--spectrum-popover-shadow-color,var(--spectrum-alias-dropshadow-color)));will-change:filter;clip-path:inset(-30px)}.spectrum-Popover_6115b8 .spectrum-Popover-tip_6115b8 .spectrum-Popover-tip-triangle_6115b8{fill:var(--spectrum-popover-background-color,var(--spectrum-global-color-gray-50));stroke:var(--spectrum-popover-border-color,var(--spectrum-alias-border-color-dark))}