@react-spectrum/utils 3.6.5 → 3.6.8
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/main.js +237 -237
- package/dist/module.js +227 -227
- package/package.json +5 -5
package/dist/module.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import $
|
|
2
|
-
import $
|
|
3
|
-
import {useIsSSR as $
|
|
4
|
-
import {useLocale as $
|
|
5
|
-
import {mergeProps as $
|
|
1
|
+
import $5lsDl$clsx from "clsx";
|
|
2
|
+
import $5lsDl$react, {useState as $5lsDl$useState, useEffect as $5lsDl$useEffect, useRef as $5lsDl$useRef, useImperativeHandle as $5lsDl$useImperativeHandle, useMemo as $5lsDl$useMemo, useContext as $5lsDl$useContext} from "react";
|
|
3
|
+
import {useIsSSR as $5lsDl$useIsSSR} from "@react-aria/ssr";
|
|
4
|
+
import {useLocale as $5lsDl$useLocale} from "@react-aria/i18n";
|
|
5
|
+
import {mergeProps as $5lsDl$mergeProps, useLayoutEffect as $5lsDl$useLayoutEffect, useResizeObserver as $d8f44ff5ccb41110$re_export$useResizeObserver, useValueEffect as $7d673cd851891254$re_export$useValueEffect} from "@react-aria/utils";
|
|
6
6
|
|
|
7
7
|
function $parcel$export(e, n, v, s) {
|
|
8
8
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
9
9
|
}
|
|
10
|
-
var $
|
|
10
|
+
var $fd933927dbac1f15$exports = {};
|
|
11
11
|
|
|
12
|
-
$parcel$export($
|
|
13
|
-
$parcel$export($
|
|
14
|
-
$parcel$export($
|
|
12
|
+
$parcel$export($fd933927dbac1f15$exports, "shouldKeepSpectrumClassNames", () => $fd933927dbac1f15$export$46d604dce8bf8724);
|
|
13
|
+
$parcel$export($fd933927dbac1f15$exports, "keepSpectrumClassNames", () => $fd933927dbac1f15$export$f9d3bfd10703eb31);
|
|
14
|
+
$parcel$export($fd933927dbac1f15$exports, "classNames", () => $fd933927dbac1f15$export$ce4ab0c55987d1ff);
|
|
15
15
|
|
|
16
|
-
let $
|
|
17
|
-
function $
|
|
18
|
-
$
|
|
16
|
+
let $fd933927dbac1f15$export$46d604dce8bf8724 = false;
|
|
17
|
+
function $fd933927dbac1f15$export$f9d3bfd10703eb31() {
|
|
18
|
+
$fd933927dbac1f15$export$46d604dce8bf8724 = true;
|
|
19
19
|
console.warn("Legacy spectrum-prefixed class names enabled for backward compatibility. We recommend replacing instances of CSS overrides targeting spectrum selectors in your app with custom class names of your own, and disabling this flag.");
|
|
20
20
|
}
|
|
21
|
-
function $
|
|
21
|
+
function $fd933927dbac1f15$export$ce4ab0c55987d1ff(cssModule, ...values) {
|
|
22
22
|
let classes = [];
|
|
23
23
|
for (let value of values){
|
|
24
24
|
if (typeof value === 'object' && value) {
|
|
@@ -26,40 +26,40 @@ function $368fcc465babe045$export$ce4ab0c55987d1ff(cssModule, ...values) {
|
|
|
26
26
|
};
|
|
27
27
|
for(let key in value){
|
|
28
28
|
if (cssModule[key]) mapped[cssModule[key]] = value[key];
|
|
29
|
-
if ($
|
|
29
|
+
if ($fd933927dbac1f15$export$46d604dce8bf8724 || !cssModule[key]) mapped[key] = value[key];
|
|
30
30
|
}
|
|
31
31
|
classes.push(mapped);
|
|
32
32
|
} else if (typeof value === 'string') {
|
|
33
33
|
if (cssModule[value]) classes.push(cssModule[value]);
|
|
34
|
-
if ($
|
|
34
|
+
if ($fd933927dbac1f15$export$46d604dce8bf8724 || !cssModule[value]) classes.push(value);
|
|
35
35
|
} else classes.push(value);
|
|
36
36
|
}
|
|
37
|
-
return $
|
|
37
|
+
return $5lsDl$clsx(...classes);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var $
|
|
41
|
+
var $bde65b0159e7c06e$exports = {};
|
|
42
42
|
|
|
43
|
-
$parcel$export($
|
|
43
|
+
$parcel$export($bde65b0159e7c06e$exports, "getWrappedElement", () => $bde65b0159e7c06e$export$a5f5a6912b18861c);
|
|
44
44
|
|
|
45
|
-
function $
|
|
45
|
+
function $bde65b0159e7c06e$export$a5f5a6912b18861c(children) {
|
|
46
46
|
let element;
|
|
47
|
-
if (typeof children === 'string') element = /*#__PURE__*/ $
|
|
48
|
-
else element = $
|
|
47
|
+
if (typeof children === 'string') element = /*#__PURE__*/ $5lsDl$react.createElement("span", null, children);
|
|
48
|
+
else element = $5lsDl$react.Children.only(children);
|
|
49
49
|
return element;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var $
|
|
53
|
+
var $3df547e395c4522f$exports = {};
|
|
54
54
|
|
|
55
|
-
$parcel$export($
|
|
55
|
+
$parcel$export($3df547e395c4522f$exports, "useMediaQuery", () => $3df547e395c4522f$export$32d5543ab307c01);
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
function $
|
|
58
|
+
function $3df547e395c4522f$export$32d5543ab307c01(query) {
|
|
59
59
|
let supportsMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia === 'function';
|
|
60
|
-
let [matches, setMatches] = $
|
|
60
|
+
let [matches, setMatches] = $5lsDl$useState(()=>supportsMatchMedia ? window.matchMedia(query).matches : false
|
|
61
61
|
);
|
|
62
|
-
$
|
|
62
|
+
$5lsDl$useEffect(()=>{
|
|
63
63
|
if (!supportsMatchMedia) return;
|
|
64
64
|
let mq = window.matchMedia(query);
|
|
65
65
|
let onChange = (evt)=>{
|
|
@@ -75,90 +75,90 @@ function $4b8bd32804da4aaa$export$32d5543ab307c01(query) {
|
|
|
75
75
|
]);
|
|
76
76
|
// If in SSR, the media query should never match. Once the page hydrates,
|
|
77
77
|
// this will update and the real value will be returned.
|
|
78
|
-
let isSSR = $
|
|
78
|
+
let isSSR = $5lsDl$useIsSSR();
|
|
79
79
|
return isSSR ? false : matches;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var $
|
|
83
|
+
var $98e5a8ae0e6415af$exports = {};
|
|
84
84
|
|
|
85
|
-
$parcel$export($
|
|
86
|
-
$parcel$export($
|
|
87
|
-
$parcel$export($
|
|
88
|
-
$parcel$export($
|
|
89
|
-
$parcel$export($
|
|
90
|
-
$parcel$export($
|
|
85
|
+
$parcel$export($98e5a8ae0e6415af$exports, "createDOMRef", () => $98e5a8ae0e6415af$export$a5795cc979dfae80);
|
|
86
|
+
$parcel$export($98e5a8ae0e6415af$exports, "createFocusableRef", () => $98e5a8ae0e6415af$export$79d69eee6ae4b329);
|
|
87
|
+
$parcel$export($98e5a8ae0e6415af$exports, "useDOMRef", () => $98e5a8ae0e6415af$export$c2c55ef9111cafd8);
|
|
88
|
+
$parcel$export($98e5a8ae0e6415af$exports, "useFocusableRef", () => $98e5a8ae0e6415af$export$96a734597687c040);
|
|
89
|
+
$parcel$export($98e5a8ae0e6415af$exports, "unwrapDOMRef", () => $98e5a8ae0e6415af$export$c7e28c72a4823176);
|
|
90
|
+
$parcel$export($98e5a8ae0e6415af$exports, "useUnwrapDOMRef", () => $98e5a8ae0e6415af$export$1d5cc31d9d8df817);
|
|
91
91
|
|
|
92
|
-
function $
|
|
92
|
+
function $98e5a8ae0e6415af$export$a5795cc979dfae80(ref) {
|
|
93
93
|
return {
|
|
94
94
|
UNSAFE_getDOMNode () {
|
|
95
95
|
return ref.current;
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
function $
|
|
99
|
+
function $98e5a8ae0e6415af$export$79d69eee6ae4b329(domRef, focusableRef = domRef) {
|
|
100
100
|
return {
|
|
101
|
-
...$
|
|
101
|
+
...$98e5a8ae0e6415af$export$a5795cc979dfae80(domRef),
|
|
102
102
|
focus () {
|
|
103
103
|
if (focusableRef.current) focusableRef.current.focus();
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function $
|
|
108
|
-
let domRef = $
|
|
109
|
-
$
|
|
107
|
+
function $98e5a8ae0e6415af$export$c2c55ef9111cafd8(ref) {
|
|
108
|
+
let domRef = $5lsDl$useRef(null);
|
|
109
|
+
$5lsDl$useImperativeHandle(ref, ()=>$98e5a8ae0e6415af$export$a5795cc979dfae80(domRef)
|
|
110
110
|
);
|
|
111
111
|
return domRef;
|
|
112
112
|
}
|
|
113
|
-
function $
|
|
114
|
-
let domRef = $
|
|
115
|
-
$
|
|
113
|
+
function $98e5a8ae0e6415af$export$96a734597687c040(ref, focusableRef) {
|
|
114
|
+
let domRef = $5lsDl$useRef(null);
|
|
115
|
+
$5lsDl$useImperativeHandle(ref, ()=>$98e5a8ae0e6415af$export$79d69eee6ae4b329(domRef, focusableRef)
|
|
116
116
|
);
|
|
117
117
|
return domRef;
|
|
118
118
|
}
|
|
119
|
-
function $
|
|
119
|
+
function $98e5a8ae0e6415af$export$c7e28c72a4823176(ref) {
|
|
120
120
|
return {
|
|
121
121
|
get current () {
|
|
122
122
|
return ref.current && ref.current.UNSAFE_getDOMNode();
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function $
|
|
127
|
-
return $
|
|
126
|
+
function $98e5a8ae0e6415af$export$1d5cc31d9d8df817(ref) {
|
|
127
|
+
return $5lsDl$useMemo(()=>$98e5a8ae0e6415af$export$c7e28c72a4823176(ref)
|
|
128
128
|
, [
|
|
129
129
|
ref
|
|
130
130
|
]);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
var $
|
|
134
|
+
var $380ed8f3903c3931$exports = {};
|
|
135
135
|
|
|
136
|
-
$parcel$export($
|
|
137
|
-
$parcel$export($
|
|
138
|
-
$parcel$export($
|
|
139
|
-
$parcel$export($
|
|
140
|
-
$parcel$export($
|
|
141
|
-
$parcel$export($
|
|
142
|
-
$parcel$export($
|
|
143
|
-
$parcel$export($
|
|
144
|
-
var $
|
|
136
|
+
$parcel$export($380ed8f3903c3931$exports, "baseStyleProps", () => $380ed8f3903c3931$export$fe9c6e915565b4e8);
|
|
137
|
+
$parcel$export($380ed8f3903c3931$exports, "dimensionValue", () => $380ed8f3903c3931$export$abc24f5b99744ea6);
|
|
138
|
+
$parcel$export($380ed8f3903c3931$exports, "passthroughStyle", () => $380ed8f3903c3931$export$46b6c81d11d2c30a);
|
|
139
|
+
$parcel$export($380ed8f3903c3931$exports, "viewStyleProps", () => $380ed8f3903c3931$export$e0705d1a55f297c);
|
|
140
|
+
$parcel$export($380ed8f3903c3931$exports, "responsiveDimensionValue", () => $380ed8f3903c3931$export$f348bec194f2e6b5);
|
|
141
|
+
$parcel$export($380ed8f3903c3931$exports, "getResponsiveProp", () => $380ed8f3903c3931$export$52dbfdbe1b2c3541);
|
|
142
|
+
$parcel$export($380ed8f3903c3931$exports, "convertStyleProps", () => $380ed8f3903c3931$export$f3c39bb9534218d0);
|
|
143
|
+
$parcel$export($380ed8f3903c3931$exports, "useStyleProps", () => $380ed8f3903c3931$export$b8e6fb9d2dff3f41);
|
|
144
|
+
var $1051245f87c5981d$exports = {};
|
|
145
145
|
|
|
146
|
-
$parcel$export($
|
|
147
|
-
$parcel$export($
|
|
148
|
-
$parcel$export($
|
|
146
|
+
$parcel$export($1051245f87c5981d$exports, "BreakpointProvider", () => $1051245f87c5981d$export$8214320346cf5104);
|
|
147
|
+
$parcel$export($1051245f87c5981d$exports, "useMatchedBreakpoints", () => $1051245f87c5981d$export$140ae7baa51cca23);
|
|
148
|
+
$parcel$export($1051245f87c5981d$exports, "useBreakpoint", () => $1051245f87c5981d$export$199d6754bdf4e1e3);
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
const $
|
|
152
|
-
$
|
|
153
|
-
function $
|
|
151
|
+
const $1051245f87c5981d$var$Context = /*#__PURE__*/ $5lsDl$react.createContext(null);
|
|
152
|
+
$1051245f87c5981d$var$Context.displayName = 'BreakpointContext';
|
|
153
|
+
function $1051245f87c5981d$export$8214320346cf5104(props) {
|
|
154
154
|
let { children: children , matchedBreakpoints: matchedBreakpoints } = props;
|
|
155
|
-
return(/*#__PURE__*/ $
|
|
155
|
+
return(/*#__PURE__*/ $5lsDl$react.createElement($1051245f87c5981d$var$Context.Provider, {
|
|
156
156
|
value: {
|
|
157
157
|
matchedBreakpoints: matchedBreakpoints
|
|
158
158
|
}
|
|
159
159
|
}, children));
|
|
160
160
|
}
|
|
161
|
-
function $
|
|
161
|
+
function $1051245f87c5981d$export$140ae7baa51cca23(breakpoints) {
|
|
162
162
|
let entries = Object.entries(breakpoints).sort(([, valueA], [, valueB])=>valueB - valueA
|
|
163
163
|
);
|
|
164
164
|
let breakpointQueries = entries.map(([, value])=>`(min-width: ${value}px)`
|
|
@@ -173,11 +173,11 @@ function $31dbf1c5576cf635$export$140ae7baa51cca23(breakpoints) {
|
|
|
173
173
|
matched.push('base');
|
|
174
174
|
return matched;
|
|
175
175
|
};
|
|
176
|
-
let [breakpoint1, setBreakpoint] = $
|
|
176
|
+
let [breakpoint1, setBreakpoint] = $5lsDl$useState(()=>supportsMatchMedia ? getBreakpointHandler() : [
|
|
177
177
|
'base'
|
|
178
178
|
]
|
|
179
179
|
);
|
|
180
|
-
$
|
|
180
|
+
$5lsDl$useEffect(()=>{
|
|
181
181
|
if (!supportsMatchMedia) return;
|
|
182
182
|
let onResize = ()=>{
|
|
183
183
|
const breakpointHandler = getBreakpointHandler();
|
|
@@ -198,395 +198,395 @@ function $31dbf1c5576cf635$export$140ae7baa51cca23(breakpoints) {
|
|
|
198
198
|
]);
|
|
199
199
|
// If in SSR, the media query should never match. Once the page hydrates,
|
|
200
200
|
// this will update and the real value will be returned.
|
|
201
|
-
let isSSR = $
|
|
201
|
+
let isSSR = $5lsDl$useIsSSR();
|
|
202
202
|
return isSSR ? [
|
|
203
203
|
'base'
|
|
204
204
|
] : breakpoint1;
|
|
205
205
|
}
|
|
206
|
-
function $
|
|
207
|
-
return $
|
|
206
|
+
function $1051245f87c5981d$export$199d6754bdf4e1e3() {
|
|
207
|
+
return $5lsDl$useContext($1051245f87c5981d$var$Context);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
|
|
212
|
-
const $
|
|
212
|
+
const $380ed8f3903c3931$export$fe9c6e915565b4e8 = {
|
|
213
213
|
margin: [
|
|
214
214
|
'margin',
|
|
215
|
-
$
|
|
215
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
216
216
|
],
|
|
217
217
|
marginStart: [
|
|
218
|
-
$
|
|
219
|
-
$
|
|
218
|
+
$380ed8f3903c3931$var$rtl('marginLeft', 'marginRight'),
|
|
219
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
220
220
|
],
|
|
221
221
|
marginEnd: [
|
|
222
|
-
$
|
|
223
|
-
$
|
|
222
|
+
$380ed8f3903c3931$var$rtl('marginRight', 'marginLeft'),
|
|
223
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
224
224
|
],
|
|
225
225
|
// marginLeft: ['marginLeft', dimensionValue],
|
|
226
226
|
// marginRight: ['marginRight', dimensionValue],
|
|
227
227
|
marginTop: [
|
|
228
228
|
'marginTop',
|
|
229
|
-
$
|
|
229
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
230
230
|
],
|
|
231
231
|
marginBottom: [
|
|
232
232
|
'marginBottom',
|
|
233
|
-
$
|
|
233
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
234
234
|
],
|
|
235
235
|
marginX: [
|
|
236
236
|
[
|
|
237
237
|
'marginLeft',
|
|
238
238
|
'marginRight'
|
|
239
239
|
],
|
|
240
|
-
$
|
|
240
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
241
241
|
],
|
|
242
242
|
marginY: [
|
|
243
243
|
[
|
|
244
244
|
'marginTop',
|
|
245
245
|
'marginBottom'
|
|
246
246
|
],
|
|
247
|
-
$
|
|
247
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
248
248
|
],
|
|
249
249
|
width: [
|
|
250
250
|
'width',
|
|
251
|
-
$
|
|
251
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
252
252
|
],
|
|
253
253
|
height: [
|
|
254
254
|
'height',
|
|
255
|
-
$
|
|
255
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
256
256
|
],
|
|
257
257
|
minWidth: [
|
|
258
258
|
'minWidth',
|
|
259
|
-
$
|
|
259
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
260
260
|
],
|
|
261
261
|
minHeight: [
|
|
262
262
|
'minHeight',
|
|
263
|
-
$
|
|
263
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
264
264
|
],
|
|
265
265
|
maxWidth: [
|
|
266
266
|
'maxWidth',
|
|
267
|
-
$
|
|
267
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
268
268
|
],
|
|
269
269
|
maxHeight: [
|
|
270
270
|
'maxHeight',
|
|
271
|
-
$
|
|
271
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
272
272
|
],
|
|
273
273
|
isHidden: [
|
|
274
274
|
'display',
|
|
275
|
-
$
|
|
275
|
+
$380ed8f3903c3931$var$hiddenValue
|
|
276
276
|
],
|
|
277
277
|
alignSelf: [
|
|
278
278
|
'alignSelf',
|
|
279
|
-
$
|
|
279
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
280
280
|
],
|
|
281
281
|
justifySelf: [
|
|
282
282
|
'justifySelf',
|
|
283
|
-
$
|
|
283
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
284
284
|
],
|
|
285
285
|
position: [
|
|
286
286
|
'position',
|
|
287
|
-
$
|
|
287
|
+
$380ed8f3903c3931$var$anyValue
|
|
288
288
|
],
|
|
289
289
|
zIndex: [
|
|
290
290
|
'zIndex',
|
|
291
|
-
$
|
|
291
|
+
$380ed8f3903c3931$var$anyValue
|
|
292
292
|
],
|
|
293
293
|
top: [
|
|
294
294
|
'top',
|
|
295
|
-
$
|
|
295
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
296
296
|
],
|
|
297
297
|
bottom: [
|
|
298
298
|
'bottom',
|
|
299
|
-
$
|
|
299
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
300
300
|
],
|
|
301
301
|
start: [
|
|
302
|
-
$
|
|
303
|
-
$
|
|
302
|
+
$380ed8f3903c3931$var$rtl('left', 'right'),
|
|
303
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
304
304
|
],
|
|
305
305
|
end: [
|
|
306
|
-
$
|
|
307
|
-
$
|
|
306
|
+
$380ed8f3903c3931$var$rtl('right', 'left'),
|
|
307
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
308
308
|
],
|
|
309
309
|
left: [
|
|
310
310
|
'left',
|
|
311
|
-
$
|
|
311
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
312
312
|
],
|
|
313
313
|
right: [
|
|
314
314
|
'right',
|
|
315
|
-
$
|
|
315
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
316
316
|
],
|
|
317
317
|
order: [
|
|
318
318
|
'order',
|
|
319
|
-
$
|
|
319
|
+
$380ed8f3903c3931$var$anyValue
|
|
320
320
|
],
|
|
321
321
|
flex: [
|
|
322
322
|
'flex',
|
|
323
|
-
$
|
|
323
|
+
$380ed8f3903c3931$var$flexValue
|
|
324
324
|
],
|
|
325
325
|
flexGrow: [
|
|
326
326
|
'flexGrow',
|
|
327
|
-
$
|
|
327
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
328
328
|
],
|
|
329
329
|
flexShrink: [
|
|
330
330
|
'flexShrink',
|
|
331
|
-
$
|
|
331
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
332
332
|
],
|
|
333
333
|
flexBasis: [
|
|
334
334
|
'flexBasis',
|
|
335
|
-
$
|
|
335
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
336
336
|
],
|
|
337
337
|
gridArea: [
|
|
338
338
|
'gridArea',
|
|
339
|
-
$
|
|
339
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
340
340
|
],
|
|
341
341
|
gridColumn: [
|
|
342
342
|
'gridColumn',
|
|
343
|
-
$
|
|
343
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
344
344
|
],
|
|
345
345
|
gridColumnEnd: [
|
|
346
346
|
'gridColumnEnd',
|
|
347
|
-
$
|
|
347
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
348
348
|
],
|
|
349
349
|
gridColumnStart: [
|
|
350
350
|
'gridColumnStart',
|
|
351
|
-
$
|
|
351
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
352
352
|
],
|
|
353
353
|
gridRow: [
|
|
354
354
|
'gridRow',
|
|
355
|
-
$
|
|
355
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
356
356
|
],
|
|
357
357
|
gridRowEnd: [
|
|
358
358
|
'gridRowEnd',
|
|
359
|
-
$
|
|
359
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
360
360
|
],
|
|
361
361
|
gridRowStart: [
|
|
362
362
|
'gridRowStart',
|
|
363
|
-
$
|
|
363
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
364
364
|
]
|
|
365
365
|
};
|
|
366
|
-
const $
|
|
367
|
-
...$
|
|
366
|
+
const $380ed8f3903c3931$export$e0705d1a55f297c = {
|
|
367
|
+
...$380ed8f3903c3931$export$fe9c6e915565b4e8,
|
|
368
368
|
backgroundColor: [
|
|
369
369
|
'backgroundColor',
|
|
370
|
-
$
|
|
370
|
+
$380ed8f3903c3931$var$backgroundColorValue
|
|
371
371
|
],
|
|
372
372
|
borderWidth: [
|
|
373
373
|
'borderWidth',
|
|
374
|
-
$
|
|
374
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
375
375
|
],
|
|
376
376
|
borderStartWidth: [
|
|
377
|
-
$
|
|
378
|
-
$
|
|
377
|
+
$380ed8f3903c3931$var$rtl('borderLeftWidth', 'borderRightWidth'),
|
|
378
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
379
379
|
],
|
|
380
380
|
borderEndWidth: [
|
|
381
|
-
$
|
|
382
|
-
$
|
|
381
|
+
$380ed8f3903c3931$var$rtl('borderRightWidth', 'borderLeftWidth'),
|
|
382
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
383
383
|
],
|
|
384
384
|
borderLeftWidth: [
|
|
385
385
|
'borderLeftWidth',
|
|
386
|
-
$
|
|
386
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
387
387
|
],
|
|
388
388
|
borderRightWidth: [
|
|
389
389
|
'borderRightWidth',
|
|
390
|
-
$
|
|
390
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
391
391
|
],
|
|
392
392
|
borderTopWidth: [
|
|
393
393
|
'borderTopWidth',
|
|
394
|
-
$
|
|
394
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
395
395
|
],
|
|
396
396
|
borderBottomWidth: [
|
|
397
397
|
'borderBottomWidth',
|
|
398
|
-
$
|
|
398
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
399
399
|
],
|
|
400
400
|
borderXWidth: [
|
|
401
401
|
[
|
|
402
402
|
'borderLeftWidth',
|
|
403
403
|
'borderRightWidth'
|
|
404
404
|
],
|
|
405
|
-
$
|
|
405
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
406
406
|
],
|
|
407
407
|
borderYWidth: [
|
|
408
408
|
[
|
|
409
409
|
'borderTopWidth',
|
|
410
410
|
'borderBottomWidth'
|
|
411
411
|
],
|
|
412
|
-
$
|
|
412
|
+
$380ed8f3903c3931$var$borderSizeValue
|
|
413
413
|
],
|
|
414
414
|
borderColor: [
|
|
415
415
|
'borderColor',
|
|
416
|
-
$
|
|
416
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
417
417
|
],
|
|
418
418
|
borderStartColor: [
|
|
419
|
-
$
|
|
420
|
-
$
|
|
419
|
+
$380ed8f3903c3931$var$rtl('borderLeftColor', 'borderRightColor'),
|
|
420
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
421
421
|
],
|
|
422
422
|
borderEndColor: [
|
|
423
|
-
$
|
|
424
|
-
$
|
|
423
|
+
$380ed8f3903c3931$var$rtl('borderRightColor', 'borderLeftColor'),
|
|
424
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
425
425
|
],
|
|
426
426
|
borderLeftColor: [
|
|
427
427
|
'borderLeftColor',
|
|
428
|
-
$
|
|
428
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
429
429
|
],
|
|
430
430
|
borderRightColor: [
|
|
431
431
|
'borderRightColor',
|
|
432
|
-
$
|
|
432
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
433
433
|
],
|
|
434
434
|
borderTopColor: [
|
|
435
435
|
'borderTopColor',
|
|
436
|
-
$
|
|
436
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
437
437
|
],
|
|
438
438
|
borderBottomColor: [
|
|
439
439
|
'borderBottomColor',
|
|
440
|
-
$
|
|
440
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
441
441
|
],
|
|
442
442
|
borderXColor: [
|
|
443
443
|
[
|
|
444
444
|
'borderLeftColor',
|
|
445
445
|
'borderRightColor'
|
|
446
446
|
],
|
|
447
|
-
$
|
|
447
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
448
448
|
],
|
|
449
449
|
borderYColor: [
|
|
450
450
|
[
|
|
451
451
|
'borderTopColor',
|
|
452
452
|
'borderBottomColor'
|
|
453
453
|
],
|
|
454
|
-
$
|
|
454
|
+
$380ed8f3903c3931$var$borderColorValue
|
|
455
455
|
],
|
|
456
456
|
borderRadius: [
|
|
457
457
|
'borderRadius',
|
|
458
|
-
$
|
|
458
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
459
459
|
],
|
|
460
460
|
borderTopStartRadius: [
|
|
461
|
-
$
|
|
462
|
-
$
|
|
461
|
+
$380ed8f3903c3931$var$rtl('borderTopLeftRadius', 'borderTopRightRadius'),
|
|
462
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
463
463
|
],
|
|
464
464
|
borderTopEndRadius: [
|
|
465
|
-
$
|
|
466
|
-
$
|
|
465
|
+
$380ed8f3903c3931$var$rtl('borderTopRightRadius', 'borderTopLeftRadius'),
|
|
466
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
467
467
|
],
|
|
468
468
|
borderBottomStartRadius: [
|
|
469
|
-
$
|
|
470
|
-
$
|
|
469
|
+
$380ed8f3903c3931$var$rtl('borderBottomLeftRadius', 'borderBottomRightRadius'),
|
|
470
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
471
471
|
],
|
|
472
472
|
borderBottomEndRadius: [
|
|
473
|
-
$
|
|
474
|
-
$
|
|
473
|
+
$380ed8f3903c3931$var$rtl('borderBottomRightRadius', 'borderBottomLeftRadius'),
|
|
474
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
475
475
|
],
|
|
476
476
|
borderTopLeftRadius: [
|
|
477
477
|
'borderTopLeftRadius',
|
|
478
|
-
$
|
|
478
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
479
479
|
],
|
|
480
480
|
borderTopRightRadius: [
|
|
481
481
|
'borderTopRightRadius',
|
|
482
|
-
$
|
|
482
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
483
483
|
],
|
|
484
484
|
borderBottomLeftRadius: [
|
|
485
485
|
'borderBottomLeftRadius',
|
|
486
|
-
$
|
|
486
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
487
487
|
],
|
|
488
488
|
borderBottomRightRadius: [
|
|
489
489
|
'borderBottomRightRadius',
|
|
490
|
-
$
|
|
490
|
+
$380ed8f3903c3931$var$borderRadiusValue
|
|
491
491
|
],
|
|
492
492
|
padding: [
|
|
493
493
|
'padding',
|
|
494
|
-
$
|
|
494
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
495
495
|
],
|
|
496
496
|
paddingStart: [
|
|
497
|
-
$
|
|
498
|
-
$
|
|
497
|
+
$380ed8f3903c3931$var$rtl('paddingLeft', 'paddingRight'),
|
|
498
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
499
499
|
],
|
|
500
500
|
paddingEnd: [
|
|
501
|
-
$
|
|
502
|
-
$
|
|
501
|
+
$380ed8f3903c3931$var$rtl('paddingRight', 'paddingLeft'),
|
|
502
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
503
503
|
],
|
|
504
504
|
paddingLeft: [
|
|
505
505
|
'paddingLeft',
|
|
506
|
-
$
|
|
506
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
507
507
|
],
|
|
508
508
|
paddingRight: [
|
|
509
509
|
'paddingRight',
|
|
510
|
-
$
|
|
510
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
511
511
|
],
|
|
512
512
|
paddingTop: [
|
|
513
513
|
'paddingTop',
|
|
514
|
-
$
|
|
514
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
515
515
|
],
|
|
516
516
|
paddingBottom: [
|
|
517
517
|
'paddingBottom',
|
|
518
|
-
$
|
|
518
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
519
519
|
],
|
|
520
520
|
paddingX: [
|
|
521
521
|
[
|
|
522
522
|
'paddingLeft',
|
|
523
523
|
'paddingRight'
|
|
524
524
|
],
|
|
525
|
-
$
|
|
525
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
526
526
|
],
|
|
527
527
|
paddingY: [
|
|
528
528
|
[
|
|
529
529
|
'paddingTop',
|
|
530
530
|
'paddingBottom'
|
|
531
531
|
],
|
|
532
|
-
$
|
|
532
|
+
$380ed8f3903c3931$export$abc24f5b99744ea6
|
|
533
533
|
],
|
|
534
534
|
overflow: [
|
|
535
535
|
'overflow',
|
|
536
|
-
$
|
|
536
|
+
$380ed8f3903c3931$export$46b6c81d11d2c30a
|
|
537
537
|
]
|
|
538
538
|
};
|
|
539
|
-
const $
|
|
539
|
+
const $380ed8f3903c3931$var$borderStyleProps = {
|
|
540
540
|
borderWidth: 'borderStyle',
|
|
541
541
|
borderLeftWidth: 'borderLeftStyle',
|
|
542
542
|
borderRightWidth: 'borderRightStyle',
|
|
543
543
|
borderTopWidth: 'borderTopStyle',
|
|
544
544
|
borderBottomWidth: 'borderBottomStyle'
|
|
545
545
|
};
|
|
546
|
-
function $
|
|
546
|
+
function $380ed8f3903c3931$var$rtl(ltr, rtl) {
|
|
547
547
|
return (direction)=>direction === 'rtl' ? rtl : ltr
|
|
548
548
|
;
|
|
549
549
|
}
|
|
550
|
-
const $
|
|
551
|
-
const $
|
|
552
|
-
const $
|
|
553
|
-
function $
|
|
550
|
+
const $380ed8f3903c3931$var$UNIT_RE = /(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/;
|
|
551
|
+
const $380ed8f3903c3931$var$FUNC_RE = /^\s*\w+\(/;
|
|
552
|
+
const $380ed8f3903c3931$var$SPECTRUM_VARIABLE_RE = /(static-)?size-\d+|single-line-(height|width)/g;
|
|
553
|
+
function $380ed8f3903c3931$export$abc24f5b99744ea6(value) {
|
|
554
554
|
if (typeof value === 'number') return value + 'px';
|
|
555
|
-
if ($
|
|
556
|
-
if ($
|
|
555
|
+
if ($380ed8f3903c3931$var$UNIT_RE.test(value)) return value;
|
|
556
|
+
if ($380ed8f3903c3931$var$FUNC_RE.test(value)) return value.replace($380ed8f3903c3931$var$SPECTRUM_VARIABLE_RE, 'var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))');
|
|
557
557
|
return `var(--spectrum-global-dimension-${value}, var(--spectrum-alias-${value}))`;
|
|
558
558
|
}
|
|
559
|
-
function $
|
|
560
|
-
value = $
|
|
561
|
-
return $
|
|
559
|
+
function $380ed8f3903c3931$export$f348bec194f2e6b5(value, matchedBreakpoints) {
|
|
560
|
+
value = $380ed8f3903c3931$export$52dbfdbe1b2c3541(value, matchedBreakpoints);
|
|
561
|
+
return $380ed8f3903c3931$export$abc24f5b99744ea6(value);
|
|
562
562
|
}
|
|
563
|
-
function $
|
|
563
|
+
function $380ed8f3903c3931$var$colorValue(value, type = 'default') {
|
|
564
564
|
return `var(--spectrum-global-color-${value}, var(--spectrum-semantic-${value}-color-${type}))`;
|
|
565
565
|
}
|
|
566
|
-
function $
|
|
567
|
-
return `var(--spectrum-alias-background-color-${value}, ${$
|
|
566
|
+
function $380ed8f3903c3931$var$backgroundColorValue(value) {
|
|
567
|
+
return `var(--spectrum-alias-background-color-${value}, ${$380ed8f3903c3931$var$colorValue(value, 'background')})`;
|
|
568
568
|
}
|
|
569
|
-
function $
|
|
569
|
+
function $380ed8f3903c3931$var$borderColorValue(value) {
|
|
570
570
|
if (value === 'default') return 'var(--spectrum-alias-border-color)';
|
|
571
|
-
return `var(--spectrum-alias-border-color-${value}, ${$
|
|
571
|
+
return `var(--spectrum-alias-border-color-${value}, ${$380ed8f3903c3931$var$colorValue(value, 'border')})`;
|
|
572
572
|
}
|
|
573
|
-
function $
|
|
573
|
+
function $380ed8f3903c3931$var$borderSizeValue(value) {
|
|
574
574
|
return `var(--spectrum-alias-border-size-${value})`;
|
|
575
575
|
}
|
|
576
|
-
function $
|
|
576
|
+
function $380ed8f3903c3931$var$borderRadiusValue(value) {
|
|
577
577
|
return `var(--spectrum-alias-border-radius-${value})`;
|
|
578
578
|
}
|
|
579
|
-
function $
|
|
579
|
+
function $380ed8f3903c3931$var$hiddenValue(value) {
|
|
580
580
|
return value ? 'none' : undefined;
|
|
581
581
|
}
|
|
582
|
-
function $
|
|
582
|
+
function $380ed8f3903c3931$var$anyValue(value) {
|
|
583
583
|
return value;
|
|
584
584
|
}
|
|
585
|
-
function $
|
|
585
|
+
function $380ed8f3903c3931$var$flexValue(value) {
|
|
586
586
|
if (typeof value === 'boolean') return value ? '1' : undefined;
|
|
587
587
|
return '' + value;
|
|
588
588
|
}
|
|
589
|
-
function $
|
|
589
|
+
function $380ed8f3903c3931$export$f3c39bb9534218d0(props, handlers, direction, matchedBreakpoints) {
|
|
590
590
|
let style = {
|
|
591
591
|
};
|
|
592
592
|
for(let key in props){
|
|
@@ -594,26 +594,26 @@ function $fe256ae6f45aa375$export$f3c39bb9534218d0(props, handlers, direction, m
|
|
|
594
594
|
if (!styleProp || props[key] == null) continue;
|
|
595
595
|
let [name, convert] = styleProp;
|
|
596
596
|
if (typeof name === 'function') name = name(direction);
|
|
597
|
-
let prop = $
|
|
597
|
+
let prop = $380ed8f3903c3931$export$52dbfdbe1b2c3541(props[key], matchedBreakpoints);
|
|
598
598
|
let value = convert(prop);
|
|
599
599
|
if (Array.isArray(name)) for (let k of name)style[k] = value;
|
|
600
600
|
else style[name] = value;
|
|
601
601
|
}
|
|
602
|
-
for(let prop in $
|
|
603
|
-
style[$
|
|
602
|
+
for(let prop in $380ed8f3903c3931$var$borderStyleProps)if (style[prop]) {
|
|
603
|
+
style[$380ed8f3903c3931$var$borderStyleProps[prop]] = 'solid';
|
|
604
604
|
style.boxSizing = 'border-box';
|
|
605
605
|
}
|
|
606
606
|
return style;
|
|
607
607
|
}
|
|
608
|
-
function $
|
|
608
|
+
function $380ed8f3903c3931$export$b8e6fb9d2dff3f41(props, handlers = $380ed8f3903c3931$export$fe9c6e915565b4e8, options = {
|
|
609
609
|
}) {
|
|
610
610
|
let { UNSAFE_className: UNSAFE_className , UNSAFE_style: UNSAFE_style , ...otherProps } = props;
|
|
611
|
-
let breakpointProvider = $
|
|
612
|
-
let { direction: direction } = $
|
|
611
|
+
let breakpointProvider = $1051245f87c5981d$export$199d6754bdf4e1e3();
|
|
612
|
+
let { direction: direction } = $5lsDl$useLocale();
|
|
613
613
|
let { matchedBreakpoints: matchedBreakpoints = (breakpointProvider === null || breakpointProvider === void 0 ? void 0 : breakpointProvider.matchedBreakpoints) || [
|
|
614
614
|
'base'
|
|
615
615
|
] } = options;
|
|
616
|
-
let styles = $
|
|
616
|
+
let styles = $380ed8f3903c3931$export$f3c39bb9534218d0(props, handlers, direction, matchedBreakpoints);
|
|
617
617
|
let style = {
|
|
618
618
|
...UNSAFE_style,
|
|
619
619
|
...styles
|
|
@@ -626,15 +626,15 @@ function $fe256ae6f45aa375$export$b8e6fb9d2dff3f41(props, handlers = $fe256ae6f4
|
|
|
626
626
|
style: style,
|
|
627
627
|
className: UNSAFE_className
|
|
628
628
|
};
|
|
629
|
-
if ($
|
|
629
|
+
if ($380ed8f3903c3931$export$52dbfdbe1b2c3541(props.isHidden, matchedBreakpoints)) styleProps.hidden = true;
|
|
630
630
|
return {
|
|
631
631
|
styleProps: styleProps
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function $
|
|
634
|
+
function $380ed8f3903c3931$export$46b6c81d11d2c30a(value) {
|
|
635
635
|
return value;
|
|
636
636
|
}
|
|
637
|
-
function $
|
|
637
|
+
function $380ed8f3903c3931$export$52dbfdbe1b2c3541(prop, matchedBreakpoints) {
|
|
638
638
|
if (prop && typeof prop === 'object' && !Array.isArray(prop)) {
|
|
639
639
|
for(let i = 0; i < matchedBreakpoints.length; i++){
|
|
640
640
|
let breakpoint = matchedBreakpoints[i];
|
|
@@ -646,25 +646,25 @@ function $fe256ae6f45aa375$export$52dbfdbe1b2c3541(prop, matchedBreakpoints) {
|
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
|
|
649
|
-
var $
|
|
649
|
+
var $59d09bcc83651bf9$exports = {};
|
|
650
650
|
|
|
651
|
-
$parcel$export($
|
|
652
|
-
$parcel$export($
|
|
653
|
-
$parcel$export($
|
|
654
|
-
$parcel$export($
|
|
651
|
+
$parcel$export($59d09bcc83651bf9$exports, "useSlotProps", () => $59d09bcc83651bf9$export$1e5c9e6e4e15efe3);
|
|
652
|
+
$parcel$export($59d09bcc83651bf9$exports, "cssModuleToSlots", () => $59d09bcc83651bf9$export$365cf34cda9978e2);
|
|
653
|
+
$parcel$export($59d09bcc83651bf9$exports, "SlotProvider", () => $59d09bcc83651bf9$export$8107b24b91795686);
|
|
654
|
+
$parcel$export($59d09bcc83651bf9$exports, "ClearSlots", () => $59d09bcc83651bf9$export$ceb145244332b7a2);
|
|
655
655
|
|
|
656
656
|
|
|
657
|
-
let $
|
|
658
|
-
function $
|
|
657
|
+
let $59d09bcc83651bf9$var$SlotContext = /*#__PURE__*/ $5lsDl$react.createContext(null);
|
|
658
|
+
function $59d09bcc83651bf9$export$1e5c9e6e4e15efe3(props, defaultSlot) {
|
|
659
659
|
let slot = props.slot || defaultSlot;
|
|
660
660
|
let { [slot]: slotProps = {
|
|
661
|
-
} } = $
|
|
661
|
+
} } = $5lsDl$useContext($59d09bcc83651bf9$var$SlotContext) || {
|
|
662
662
|
};
|
|
663
|
-
return $
|
|
663
|
+
return $5lsDl$mergeProps(props, $5lsDl$mergeProps(slotProps, {
|
|
664
664
|
id: props.id
|
|
665
665
|
}));
|
|
666
666
|
}
|
|
667
|
-
function $
|
|
667
|
+
function $59d09bcc83651bf9$export$365cf34cda9978e2(cssModule) {
|
|
668
668
|
return Object.keys(cssModule).reduce((acc, slot)=>{
|
|
669
669
|
acc[slot] = {
|
|
670
670
|
UNSAFE_className: cssModule[slot]
|
|
@@ -673,15 +673,15 @@ function $142bd45dbe45bbab$export$365cf34cda9978e2(cssModule) {
|
|
|
673
673
|
}, {
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
function $
|
|
677
|
-
let parentSlots = $
|
|
676
|
+
function $59d09bcc83651bf9$export$8107b24b91795686(props) {
|
|
677
|
+
let parentSlots = $5lsDl$useContext($59d09bcc83651bf9$var$SlotContext) || {
|
|
678
678
|
};
|
|
679
679
|
let { slots: slots = {
|
|
680
680
|
} , children: children } = props;
|
|
681
681
|
// Merge props for each slot from parent context and props
|
|
682
|
-
let value = $
|
|
682
|
+
let value = $5lsDl$useMemo(()=>Object.keys(parentSlots).concat(Object.keys(slots)).reduce((o, p)=>({
|
|
683
683
|
...o,
|
|
684
|
-
[p]: $
|
|
684
|
+
[p]: $5lsDl$mergeProps(parentSlots[p] || {
|
|
685
685
|
}, slots[p] || {
|
|
686
686
|
})
|
|
687
687
|
})
|
|
@@ -691,31 +691,31 @@ function $142bd45dbe45bbab$export$8107b24b91795686(props) {
|
|
|
691
691
|
parentSlots,
|
|
692
692
|
slots
|
|
693
693
|
]);
|
|
694
|
-
return(/*#__PURE__*/ $
|
|
694
|
+
return(/*#__PURE__*/ $5lsDl$react.createElement($59d09bcc83651bf9$var$SlotContext.Provider, {
|
|
695
695
|
value: value
|
|
696
696
|
}, children));
|
|
697
697
|
}
|
|
698
|
-
function $
|
|
698
|
+
function $59d09bcc83651bf9$export$ceb145244332b7a2(props) {
|
|
699
699
|
let { children: children , ...otherProps } = props;
|
|
700
700
|
let content = children;
|
|
701
|
-
if ($
|
|
702
|
-
if (typeof children === 'function') content = /*#__PURE__*/ $
|
|
701
|
+
if ($5lsDl$react.Children.toArray(children).length <= 1) {
|
|
702
|
+
if (typeof children === 'function') content = /*#__PURE__*/ $5lsDl$react.cloneElement($5lsDl$react.Children.only(children), otherProps);
|
|
703
703
|
}
|
|
704
|
-
return(/*#__PURE__*/ $
|
|
704
|
+
return(/*#__PURE__*/ $5lsDl$react.createElement($59d09bcc83651bf9$var$SlotContext.Provider, {
|
|
705
705
|
value: {
|
|
706
706
|
}
|
|
707
707
|
}, content));
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
|
|
711
|
-
var $
|
|
711
|
+
var $54cda195bd4173fb$exports = {};
|
|
712
712
|
|
|
713
|
-
$parcel$export($
|
|
713
|
+
$parcel$export($54cda195bd4173fb$exports, "useHasChild", () => $54cda195bd4173fb$export$e52e2242b6d0f1d4);
|
|
714
714
|
|
|
715
715
|
|
|
716
|
-
function $
|
|
717
|
-
let [hasChild, setHasChild] = $
|
|
718
|
-
$
|
|
716
|
+
function $54cda195bd4173fb$export$e52e2242b6d0f1d4(query, ref) {
|
|
717
|
+
let [hasChild, setHasChild] = $5lsDl$useState(true);
|
|
718
|
+
$5lsDl$useLayoutEffect(()=>{
|
|
719
719
|
setHasChild(!!(ref.current && ref.current.querySelector(query)));
|
|
720
720
|
}, [
|
|
721
721
|
setHasChild,
|
|
@@ -726,32 +726,32 @@ function $e30b74a2c392bf42$export$e52e2242b6d0f1d4(query, ref) {
|
|
|
726
726
|
}
|
|
727
727
|
|
|
728
728
|
|
|
729
|
-
var $
|
|
729
|
+
var $d8f44ff5ccb41110$exports = {};
|
|
730
730
|
|
|
731
|
-
$parcel$export($
|
|
731
|
+
$parcel$export($d8f44ff5ccb41110$exports, "useResizeObserver", () => $d8f44ff5ccb41110$re_export$useResizeObserver);
|
|
732
732
|
|
|
733
733
|
|
|
734
734
|
|
|
735
|
-
var $
|
|
735
|
+
var $fdbe26a36ce1c672$exports = {};
|
|
736
736
|
|
|
737
|
-
$parcel$export($
|
|
737
|
+
$parcel$export($fdbe26a36ce1c672$exports, "useIsMobileDevice", () => $fdbe26a36ce1c672$export$736bf165441b18c7);
|
|
738
738
|
|
|
739
|
-
const $
|
|
740
|
-
function $
|
|
741
|
-
let isSSR = $
|
|
739
|
+
const $fdbe26a36ce1c672$var$MOBILE_SCREEN_WIDTH = 700;
|
|
740
|
+
function $fdbe26a36ce1c672$export$736bf165441b18c7() {
|
|
741
|
+
let isSSR = $5lsDl$useIsSSR();
|
|
742
742
|
if (isSSR || typeof window === 'undefined') return false;
|
|
743
|
-
return window.screen.width <= $
|
|
743
|
+
return window.screen.width <= $fdbe26a36ce1c672$var$MOBILE_SCREEN_WIDTH;
|
|
744
744
|
}
|
|
745
745
|
|
|
746
746
|
|
|
747
|
-
var $
|
|
747
|
+
var $7d673cd851891254$exports = {};
|
|
748
748
|
|
|
749
|
-
$parcel$export($
|
|
749
|
+
$parcel$export($7d673cd851891254$exports, "useValueEffect", () => $7d673cd851891254$re_export$useValueEffect);
|
|
750
750
|
|
|
751
751
|
|
|
752
752
|
|
|
753
753
|
|
|
754
754
|
|
|
755
755
|
|
|
756
|
-
export {$
|
|
756
|
+
export {$fd933927dbac1f15$export$46d604dce8bf8724 as shouldKeepSpectrumClassNames, $fd933927dbac1f15$export$f9d3bfd10703eb31 as keepSpectrumClassNames, $fd933927dbac1f15$export$ce4ab0c55987d1ff as classNames, $bde65b0159e7c06e$export$a5f5a6912b18861c as getWrappedElement, $3df547e395c4522f$export$32d5543ab307c01 as useMediaQuery, $98e5a8ae0e6415af$export$a5795cc979dfae80 as createDOMRef, $98e5a8ae0e6415af$export$79d69eee6ae4b329 as createFocusableRef, $98e5a8ae0e6415af$export$c2c55ef9111cafd8 as useDOMRef, $98e5a8ae0e6415af$export$96a734597687c040 as useFocusableRef, $98e5a8ae0e6415af$export$c7e28c72a4823176 as unwrapDOMRef, $98e5a8ae0e6415af$export$1d5cc31d9d8df817 as useUnwrapDOMRef, $380ed8f3903c3931$export$fe9c6e915565b4e8 as baseStyleProps, $380ed8f3903c3931$export$abc24f5b99744ea6 as dimensionValue, $380ed8f3903c3931$export$46b6c81d11d2c30a as passthroughStyle, $380ed8f3903c3931$export$e0705d1a55f297c as viewStyleProps, $380ed8f3903c3931$export$f348bec194f2e6b5 as responsiveDimensionValue, $380ed8f3903c3931$export$52dbfdbe1b2c3541 as getResponsiveProp, $380ed8f3903c3931$export$f3c39bb9534218d0 as convertStyleProps, $380ed8f3903c3931$export$b8e6fb9d2dff3f41 as useStyleProps, $59d09bcc83651bf9$export$1e5c9e6e4e15efe3 as useSlotProps, $59d09bcc83651bf9$export$365cf34cda9978e2 as cssModuleToSlots, $59d09bcc83651bf9$export$8107b24b91795686 as SlotProvider, $59d09bcc83651bf9$export$ceb145244332b7a2 as ClearSlots, $54cda195bd4173fb$export$e52e2242b6d0f1d4 as useHasChild, $d8f44ff5ccb41110$re_export$useResizeObserver as useResizeObserver, $fdbe26a36ce1c672$export$736bf165441b18c7 as useIsMobileDevice, $7d673cd851891254$re_export$useValueEffect as useValueEffect, $1051245f87c5981d$export$8214320346cf5104 as BreakpointProvider, $1051245f87c5981d$export$140ae7baa51cca23 as useMatchedBreakpoints, $1051245f87c5981d$export$199d6754bdf4e1e3 as useBreakpoint};
|
|
757
757
|
//# sourceMappingURL=module.js.map
|