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