@contentful/f36-menu 4.0.1-beta.2590 → 4.0.1-beta.2705
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 +85 -117
- package/dist/main.js.map +1 -1
- package/dist/module.js +54 -86
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +0 -0
- package/dist/types.d.ts.map +0 -0
- package/package.json +8 -8
package/dist/main.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
var $6ZrLO$react = require("react");
|
|
2
2
|
var $6ZrLO$contentfulf36core = require("@contentful/f36-core");
|
|
3
3
|
var $6ZrLO$contentfulf36popover = require("@contentful/f36-popover");
|
|
4
|
-
var $6ZrLO$reactjsxruntime = require("react/jsx-runtime");
|
|
5
4
|
var $6ZrLO$emotion = require("emotion");
|
|
6
5
|
var $6ZrLO$contentfulf36tokens = require("@contentful/f36-tokens");
|
|
7
6
|
var $6ZrLO$contentfulf36typography = require("@contentful/f36-typography");
|
|
@@ -25,7 +24,6 @@ $parcel$export(module.exports, "SubmenuTrigger", () => $68e427819b978177$export$
|
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
|
|
28
|
-
|
|
29
27
|
const $9abfe5cafeb7e9d3$var$ARROW_KEY_TYPES = {
|
|
30
28
|
vertical: {
|
|
31
29
|
prev: 'ArrowUp',
|
|
@@ -81,9 +79,9 @@ const $9abfe5cafeb7e9d3$export$e8d01079a7f85a7 = ({ itemsContainerRef: itemsCont
|
|
|
81
79
|
|
|
82
80
|
|
|
83
81
|
|
|
84
|
-
const $31bc1b2a74a830dc$var$MenuContext = $parcel$interopDefault($6ZrLO$react).createContext(undefined);
|
|
82
|
+
const $31bc1b2a74a830dc$var$MenuContext = ($parcel$interopDefault($6ZrLO$react)).createContext(undefined);
|
|
85
83
|
const $31bc1b2a74a830dc$export$21c7ab35b39f78ec = ()=>{
|
|
86
|
-
const context = $parcel$interopDefault($6ZrLO$react).useContext($31bc1b2a74a830dc$var$MenuContext);
|
|
84
|
+
const context = ($parcel$interopDefault($6ZrLO$react)).useContext($31bc1b2a74a830dc$var$MenuContext);
|
|
87
85
|
if (context === undefined) throw new Error('useMenuContext must be used within a MenuContextProvider');
|
|
88
86
|
return context;
|
|
89
87
|
};
|
|
@@ -231,19 +229,17 @@ function $453ff7c40e833219$export$d9b273488cd8ce6f(props) {
|
|
|
231
229
|
isControlled,
|
|
232
230
|
onOpen
|
|
233
231
|
]);
|
|
234
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
235
|
-
value: contextValue
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
})
|
|
246
|
-
}));
|
|
232
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($31bc1b2a74a830dc$export$2cad3fd48ac06579, {
|
|
233
|
+
value: contextValue
|
|
234
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($6ZrLO$contentfulf36popover.Popover, {
|
|
235
|
+
...otherProps,
|
|
236
|
+
isOpen: isOpen,
|
|
237
|
+
onClose: handleClose,
|
|
238
|
+
id: menuId,
|
|
239
|
+
closeOnEsc: closeOnEsc,
|
|
240
|
+
autoFocus: false,
|
|
241
|
+
closeOnBlur: false
|
|
242
|
+
}, children)));
|
|
247
243
|
}
|
|
248
244
|
const $453ff7c40e833219$var$useMenuOpenState = (props)=>{
|
|
249
245
|
const { isOpen: isOpen , defaultIsOpen: defaultIsOpen , onOpen: onOpen , onClose: onClose } = props;
|
|
@@ -277,10 +273,9 @@ const $453ff7c40e833219$var$useMenuOpenState = (props)=>{
|
|
|
277
273
|
|
|
278
274
|
|
|
279
275
|
|
|
280
|
-
|
|
281
|
-
const $62b35dc82bb7def8$var$SubmenuContext = $parcel$interopDefault($6ZrLO$react).createContext(undefined);
|
|
276
|
+
const $62b35dc82bb7def8$var$SubmenuContext = ($parcel$interopDefault($6ZrLO$react)).createContext(undefined);
|
|
282
277
|
const $62b35dc82bb7def8$export$958673a266cbe049 = ()=>{
|
|
283
|
-
const context = $parcel$interopDefault($6ZrLO$react).useContext($62b35dc82bb7def8$var$SubmenuContext);
|
|
278
|
+
const context = ($parcel$interopDefault($6ZrLO$react)).useContext($62b35dc82bb7def8$var$SubmenuContext);
|
|
284
279
|
return context;
|
|
285
280
|
};
|
|
286
281
|
const $62b35dc82bb7def8$export$81b3dbd1f003f0c7 = $62b35dc82bb7def8$var$SubmenuContext.Provider;
|
|
@@ -294,9 +289,9 @@ const $ce9788dc1cd48a1b$export$396ce14bde1b7929 = ()=>{
|
|
|
294
289
|
position: 'sticky',
|
|
295
290
|
top: 0,
|
|
296
291
|
left: 0,
|
|
297
|
-
backgroundColor: $parcel$interopDefault($6ZrLO$contentfulf36tokens).colorWhite,
|
|
298
|
-
borderBottom: `1px solid ${$parcel$interopDefault($6ZrLO$contentfulf36tokens).gray300}`,
|
|
299
|
-
padding: `${$parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingXs} 0`,
|
|
292
|
+
backgroundColor: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).colorWhite,
|
|
293
|
+
borderBottom: `1px solid ${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).gray300}`,
|
|
294
|
+
padding: `${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingXs} 0`,
|
|
300
295
|
zIndex: 1001
|
|
301
296
|
}));
|
|
302
297
|
};
|
|
@@ -305,9 +300,9 @@ const $ce9788dc1cd48a1b$export$fd3dbc8a890448f = ()=>{
|
|
|
305
300
|
position: 'sticky',
|
|
306
301
|
bottom: 0,
|
|
307
302
|
left: 0,
|
|
308
|
-
backgroundColor: $parcel$interopDefault($6ZrLO$contentfulf36tokens).colorWhite,
|
|
309
|
-
borderTop: `1px solid ${$parcel$interopDefault($6ZrLO$contentfulf36tokens).gray300}`,
|
|
310
|
-
padding: `${$parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingXs} 0`,
|
|
303
|
+
backgroundColor: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).colorWhite,
|
|
304
|
+
borderTop: `1px solid ${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).gray300}`,
|
|
305
|
+
padding: `${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingXs} 0`,
|
|
311
306
|
zIndex: 1001
|
|
312
307
|
}));
|
|
313
308
|
};
|
|
@@ -316,8 +311,8 @@ const $ce9788dc1cd48a1b$export$10ce7613b0465b57 = (props)=>({
|
|
|
316
311
|
overflowY: 'auto',
|
|
317
312
|
position: 'relative',
|
|
318
313
|
padding: 0,
|
|
319
|
-
paddingTop: props.hasStickyHeader ? 0 : $parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingXs,
|
|
320
|
-
paddingBottom: props.hasStickyFooter ? 0 : $parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingXs
|
|
314
|
+
paddingTop: props.hasStickyHeader ? 0 : ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingXs,
|
|
315
|
+
paddingBottom: props.hasStickyFooter ? 0 : ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingXs
|
|
321
316
|
})
|
|
322
317
|
})
|
|
323
318
|
;
|
|
@@ -326,16 +321,14 @@ const $ce9788dc1cd48a1b$export$10ce7613b0465b57 = (props)=>({
|
|
|
326
321
|
|
|
327
322
|
|
|
328
323
|
|
|
329
|
-
|
|
330
324
|
const $77fa76994469c42b$export$77451990ddb9d17c = (props)=>{
|
|
331
325
|
const { children: children , testId: testId = 'cf-ui-menu-list-header' , className: className , ...otherProps } = props;
|
|
332
326
|
const styles = $ce9788dc1cd48a1b$export$396ce14bde1b7929();
|
|
333
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
327
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement("div", {
|
|
334
328
|
"data-test-id": testId,
|
|
335
329
|
className: $6ZrLO$emotion.cx(styles, className),
|
|
336
|
-
...otherProps
|
|
337
|
-
|
|
338
|
-
}));
|
|
330
|
+
...otherProps
|
|
331
|
+
}, children));
|
|
339
332
|
};
|
|
340
333
|
$77fa76994469c42b$export$77451990ddb9d17c.displayName = 'MenuListHeader';
|
|
341
334
|
|
|
@@ -343,16 +336,14 @@ $77fa76994469c42b$export$77451990ddb9d17c.displayName = 'MenuListHeader';
|
|
|
343
336
|
|
|
344
337
|
|
|
345
338
|
|
|
346
|
-
|
|
347
339
|
const $56409107038e75ac$export$3e8a81e7ad0650f4 = (props)=>{
|
|
348
340
|
const { children: children , testId: testId = 'cf-ui-menu-list-footer' , className: className , ...otherProps } = props;
|
|
349
341
|
const styles = $ce9788dc1cd48a1b$export$fd3dbc8a890448f();
|
|
350
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
342
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement("div", {
|
|
351
343
|
"data-test-id": testId,
|
|
352
344
|
className: $6ZrLO$emotion.cx(styles, className),
|
|
353
|
-
...otherProps
|
|
354
|
-
|
|
355
|
-
}));
|
|
345
|
+
...otherProps
|
|
346
|
+
}, children));
|
|
356
347
|
};
|
|
357
348
|
$56409107038e75ac$export$3e8a81e7ad0650f4.displayName = 'MenuListFooter';
|
|
358
349
|
|
|
@@ -368,7 +359,7 @@ const $c5bfee6901fd5b47$var$_MenuList = (props, ref)=>{
|
|
|
368
359
|
let header = null;
|
|
369
360
|
let footer = null;
|
|
370
361
|
const items = [];
|
|
371
|
-
$parcel$interopDefault($6ZrLO$react).Children.forEach(children, (child)=>{
|
|
362
|
+
($parcel$interopDefault($6ZrLO$react)).Children.forEach(children, (child)=>{
|
|
372
363
|
let appendChild = true;
|
|
373
364
|
if ($c5bfee6901fd5b47$var$assertChild(child)) {
|
|
374
365
|
if (child.type.displayName === $77fa76994469c42b$export$77451990ddb9d17c.displayName) {
|
|
@@ -386,21 +377,15 @@ const $c5bfee6901fd5b47$var$_MenuList = (props, ref)=>{
|
|
|
386
377
|
hasStickyFooter: Boolean(footer)
|
|
387
378
|
});
|
|
388
379
|
const extendedOtherProps = submenuContext ? submenuContext.getSubmenuListProps(otherProps) : otherProps;
|
|
389
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
380
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($6ZrLO$contentfulf36popover.Popover.Content, {
|
|
390
381
|
role: "menu",
|
|
391
382
|
...extendedOtherProps,
|
|
392
383
|
...getMenuListProps(extendedOtherProps, ref),
|
|
393
384
|
className: $6ZrLO$emotion.cx(styles.container, className),
|
|
394
|
-
testId: testId
|
|
395
|
-
|
|
396
|
-
header,
|
|
397
|
-
items,
|
|
398
|
-
footer
|
|
399
|
-
]
|
|
400
|
-
}));
|
|
385
|
+
testId: testId
|
|
386
|
+
}, header, items, footer));
|
|
401
387
|
};
|
|
402
|
-
const $c5bfee6901fd5b47$export$d4c4e98c5044dc8 = /*#__PURE__*/ $parcel$interopDefault($6ZrLO$react).forwardRef($c5bfee6901fd5b47$var$_MenuList);
|
|
403
|
-
|
|
388
|
+
const $c5bfee6901fd5b47$export$d4c4e98c5044dc8 = /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).forwardRef($c5bfee6901fd5b47$var$_MenuList);
|
|
404
389
|
|
|
405
390
|
|
|
406
391
|
|
|
@@ -421,24 +406,24 @@ const $f099c69f76c1082f$export$adaad53e003c74d0 = ()=>{
|
|
|
421
406
|
border: 0,
|
|
422
407
|
margin: 0,
|
|
423
408
|
outline: 'none',
|
|
424
|
-
fontSize: $parcel$interopDefault($6ZrLO$contentfulf36tokens).fontSizeM,
|
|
425
|
-
lineHeight: $parcel$interopDefault($6ZrLO$contentfulf36tokens).lineHeightM,
|
|
426
|
-
fontWeight: $parcel$interopDefault($6ZrLO$contentfulf36tokens).fontWeightNormal,
|
|
409
|
+
fontSize: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).fontSizeM,
|
|
410
|
+
lineHeight: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).lineHeightM,
|
|
411
|
+
fontWeight: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).fontWeightNormal,
|
|
427
412
|
position: 'relative',
|
|
428
413
|
textAlign: 'left',
|
|
429
|
-
padding: `${$parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingXs} ${$parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingM}`,
|
|
414
|
+
padding: `${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingXs} ${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingM}`,
|
|
430
415
|
wordBreak: 'break-word',
|
|
431
416
|
whiteSpace: 'break-spaces',
|
|
432
417
|
cursor: 'pointer',
|
|
433
418
|
hyphens: 'auto',
|
|
434
419
|
minWidth: '150px',
|
|
435
420
|
textDecoration: 'none',
|
|
436
|
-
color: $parcel$interopDefault($6ZrLO$contentfulf36tokens).gray800,
|
|
421
|
+
color: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).gray800,
|
|
437
422
|
'&:focus, &:hover': {
|
|
438
|
-
backgroundColor: $parcel$interopDefault($6ZrLO$contentfulf36tokens).gray100
|
|
423
|
+
backgroundColor: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).gray100
|
|
439
424
|
},
|
|
440
425
|
'&:active': {
|
|
441
|
-
backgroundColor: $parcel$interopDefault($6ZrLO$contentfulf36tokens).gray200
|
|
426
|
+
backgroundColor: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).gray200
|
|
442
427
|
},
|
|
443
428
|
'&:disabled': {
|
|
444
429
|
opacity: 0.5,
|
|
@@ -464,33 +449,29 @@ function $01d29448a29c05b3$var$_MenuItem(props, ref) {
|
|
|
464
449
|
focusMenuItem
|
|
465
450
|
]);
|
|
466
451
|
const Element = as !== null && as !== void 0 ? as : $01d29448a29c05b3$var$MENU_ITEM_DEFAULT_TAG;
|
|
467
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
452
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement(Element, {
|
|
468
453
|
role: "menuitem",
|
|
469
454
|
...otherProps,
|
|
470
455
|
...getMenuItemProps(otherProps),
|
|
471
456
|
className: $6ZrLO$emotion.cx(styles.root, className),
|
|
472
457
|
"data-test-id": itemTestId,
|
|
473
458
|
ref: $6ZrLO$contentfulf36core.mergeRefs(itemRef, ref),
|
|
474
|
-
tabIndex: -1
|
|
475
|
-
|
|
476
|
-
}));
|
|
459
|
+
tabIndex: -1
|
|
460
|
+
}, props.children));
|
|
477
461
|
}
|
|
478
|
-
const $01d29448a29c05b3$export$2ce376c2cc3355c8 = /*#__PURE__*/ $parcel$interopDefault($6ZrLO$react).forwardRef($01d29448a29c05b3$var$_MenuItem);
|
|
479
|
-
|
|
462
|
+
const $01d29448a29c05b3$export$2ce376c2cc3355c8 = /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).forwardRef($01d29448a29c05b3$var$_MenuItem);
|
|
480
463
|
|
|
481
464
|
|
|
482
465
|
|
|
483
466
|
|
|
484
467
|
|
|
485
468
|
const $57a0b88402c05a1e$export$27d2ad3c5815583e = (props)=>{
|
|
486
|
-
const child = $parcel$interopDefault($6ZrLO$react).Children.only(props.children);
|
|
469
|
+
const child = ($parcel$interopDefault($6ZrLO$react)).Children.only(props.children);
|
|
487
470
|
const { getTriggerProps: getTriggerProps } = $31bc1b2a74a830dc$export$21c7ab35b39f78ec();
|
|
488
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
})
|
|
493
|
-
}));
|
|
471
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($6ZrLO$contentfulf36popover.Popover.Trigger, null, /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).cloneElement(child, {
|
|
472
|
+
...getTriggerProps(child.props, child.ref),
|
|
473
|
+
['aria-haspopup']: 'menu'
|
|
474
|
+
})));
|
|
494
475
|
};
|
|
495
476
|
|
|
496
477
|
|
|
@@ -498,13 +479,12 @@ const $57a0b88402c05a1e$export$27d2ad3c5815583e = (props)=>{
|
|
|
498
479
|
|
|
499
480
|
|
|
500
481
|
|
|
501
|
-
|
|
502
482
|
const $f85a558bae23a8bd$export$4605da6f9a8ef405 = ()=>/*#__PURE__*/ $6ZrLO$emotion.css({
|
|
503
483
|
border: 'none',
|
|
504
484
|
width: '100%',
|
|
505
485
|
height: '1px',
|
|
506
|
-
background: $parcel$interopDefault($6ZrLO$contentfulf36tokens).gray300,
|
|
507
|
-
margin: `${$parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingXs} 0`
|
|
486
|
+
background: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).gray300,
|
|
487
|
+
margin: `${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingXs} 0`
|
|
508
488
|
})
|
|
509
489
|
;
|
|
510
490
|
|
|
@@ -512,7 +492,7 @@ const $f85a558bae23a8bd$export$4605da6f9a8ef405 = ()=>/*#__PURE__*/ $6ZrLO$emoti
|
|
|
512
492
|
const $a8d7f8a94ad9b120$export$acb07b4664ac227c = (props)=>{
|
|
513
493
|
const { children: children , testId: testId = 'cf-ui-menu-divider' , className: className , ...otherProps } = props;
|
|
514
494
|
const styles = $f85a558bae23a8bd$export$4605da6f9a8ef405();
|
|
515
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
495
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement("hr", {
|
|
516
496
|
"aria-orientation": "horizontal",
|
|
517
497
|
"data-test-id": testId,
|
|
518
498
|
className: $6ZrLO$emotion.cx(styles, className),
|
|
@@ -525,11 +505,10 @@ const $a8d7f8a94ad9b120$export$acb07b4664ac227c = (props)=>{
|
|
|
525
505
|
|
|
526
506
|
|
|
527
507
|
|
|
528
|
-
|
|
529
508
|
const $80d81cb0da14b65a$export$2698fa8b3a0a79e6 = ()=>/*#__PURE__*/ $6ZrLO$emotion.css({
|
|
530
509
|
textAlign: 'left',
|
|
531
|
-
padding: `${$parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingXs} ${$parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingM}`,
|
|
532
|
-
lineHeight: $parcel$interopDefault($6ZrLO$contentfulf36tokens).lineHeightM,
|
|
510
|
+
padding: `${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingXs} ${($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingM}`,
|
|
511
|
+
lineHeight: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).lineHeightM,
|
|
533
512
|
'hr + &': {
|
|
534
513
|
marginTop: '-8px'
|
|
535
514
|
}
|
|
@@ -541,7 +520,7 @@ const $80d81cb0da14b65a$export$2698fa8b3a0a79e6 = ()=>/*#__PURE__*/ $6ZrLO$emoti
|
|
|
541
520
|
const $a9e47e1a6fcc6dbc$export$5d1e6c648985631e = (props)=>{
|
|
542
521
|
const { children: children , testId: testId = 'cf-ui-menu-section-title' , className: className , ...otherProps } = props;
|
|
543
522
|
const styles = $80d81cb0da14b65a$export$2698fa8b3a0a79e6();
|
|
544
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
523
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($6ZrLO$contentfulf36typography.SectionHeading // Techincally, menus cannot contain headings according to ARIA.
|
|
545
524
|
, {
|
|
546
525
|
// We hide the heading from assistive technology, and only use it
|
|
547
526
|
// as a label
|
|
@@ -549,9 +528,8 @@ const $a9e47e1a6fcc6dbc$export$5d1e6c648985631e = (props)=>{
|
|
|
549
528
|
testId: testId,
|
|
550
529
|
className: $6ZrLO$emotion.cx(styles, className),
|
|
551
530
|
marginBottom: "none",
|
|
552
|
-
...otherProps
|
|
553
|
-
|
|
554
|
-
}));
|
|
531
|
+
...otherProps
|
|
532
|
+
}, children));
|
|
555
533
|
};
|
|
556
534
|
|
|
557
535
|
|
|
@@ -560,7 +538,6 @@ const $a9e47e1a6fcc6dbc$export$5d1e6c648985631e = (props)=>{
|
|
|
560
538
|
|
|
561
539
|
|
|
562
540
|
|
|
563
|
-
|
|
564
541
|
const $d1c454a08dd2b04a$var$SUBMENU_OFFSET = [
|
|
565
542
|
-8,
|
|
566
543
|
2
|
|
@@ -648,19 +625,18 @@ const $d1c454a08dd2b04a$export$49229ebf838c159b = (props)=>{
|
|
|
648
625
|
handleOpen,
|
|
649
626
|
closeAndFocusTrigger
|
|
650
627
|
]);
|
|
651
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
652
|
-
value: contextValue
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}));
|
|
628
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($62b35dc82bb7def8$export$81b3dbd1f003f0c7, {
|
|
629
|
+
value: contextValue
|
|
630
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($453ff7c40e833219$export$d9b273488cd8ce6f, {
|
|
631
|
+
...propsToPropagateToSubmenus,
|
|
632
|
+
...otherProps,
|
|
633
|
+
isOpen: isOpen,
|
|
634
|
+
onClose: handleClose,
|
|
635
|
+
onOpen: handleOpen,
|
|
636
|
+
placement: "right-start",
|
|
637
|
+
offset: $d1c454a08dd2b04a$var$SUBMENU_OFFSET,
|
|
638
|
+
isAutoalignmentEnabled: false
|
|
639
|
+
})));
|
|
664
640
|
};
|
|
665
641
|
|
|
666
642
|
|
|
@@ -672,21 +648,20 @@ const $d1c454a08dd2b04a$export$49229ebf838c159b = (props)=>{
|
|
|
672
648
|
|
|
673
649
|
|
|
674
650
|
|
|
675
|
-
|
|
676
651
|
const $440a5860c5fbe4e7$export$ce276565acbba1c9 = ()=>{
|
|
677
652
|
return {
|
|
678
653
|
root: ({ isActive: isActive })=>/*#__PURE__*/ $6ZrLO$emotion.css({
|
|
679
654
|
display: 'flex',
|
|
680
655
|
alignItems: 'center',
|
|
681
|
-
paddingRight: $parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingXs,
|
|
656
|
+
paddingRight: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingXs,
|
|
682
657
|
...isActive ? {
|
|
683
|
-
backgroundColor: $parcel$interopDefault($6ZrLO$contentfulf36tokens).gray100
|
|
658
|
+
backgroundColor: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).gray100
|
|
684
659
|
} : {
|
|
685
660
|
}
|
|
686
661
|
})
|
|
687
662
|
,
|
|
688
663
|
content: /*#__PURE__*/ $6ZrLO$emotion.css({
|
|
689
|
-
marginRight: $parcel$interopDefault($6ZrLO$contentfulf36tokens).spacingM
|
|
664
|
+
marginRight: ($parcel$interopDefault($6ZrLO$contentfulf36tokens)).spacingM
|
|
690
665
|
}),
|
|
691
666
|
icon: /*#__PURE__*/ $6ZrLO$emotion.css({
|
|
692
667
|
name: "1hapt0s",
|
|
@@ -700,26 +675,19 @@ const $68e427819b978177$var$_SubmenuTrigger = (props, ref)=>{
|
|
|
700
675
|
const { className: className , children: children } = props;
|
|
701
676
|
const { getSubmenuTriggerProps: getSubmenuTriggerProps , isOpen: isOpen } = $62b35dc82bb7def8$export$958673a266cbe049();
|
|
702
677
|
const styles = $440a5860c5fbe4e7$export$ce276565acbba1c9();
|
|
703
|
-
return(/*#__PURE__*/ $6ZrLO$
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}),
|
|
715
|
-
/*#__PURE__*/ $6ZrLO$reactjsxruntime.jsx($6ZrLO$contentfulf36icons.ChevronRightIcon, {
|
|
716
|
-
className: styles.icon
|
|
717
|
-
})
|
|
718
|
-
]
|
|
719
|
-
})
|
|
720
|
-
}));
|
|
678
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($57a0b88402c05a1e$export$27d2ad3c5815583e, null, /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($01d29448a29c05b3$export$2ce376c2cc3355c8, {
|
|
679
|
+
...props,
|
|
680
|
+
...getSubmenuTriggerProps(props, ref),
|
|
681
|
+
className: $6ZrLO$emotion.cx(styles.root({
|
|
682
|
+
isActive: isOpen
|
|
683
|
+
}), className)
|
|
684
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement("span", {
|
|
685
|
+
className: styles.content
|
|
686
|
+
}, children), /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).createElement($6ZrLO$contentfulf36icons.ChevronRightIcon, {
|
|
687
|
+
className: styles.icon
|
|
688
|
+
}))));
|
|
721
689
|
};
|
|
722
|
-
const $68e427819b978177$export$ecabc99eeffab7ca = /*#__PURE__*/ $parcel$interopDefault($6ZrLO$react).forwardRef($68e427819b978177$var$_SubmenuTrigger);
|
|
690
|
+
const $68e427819b978177$export$ecabc99eeffab7ca = /*#__PURE__*/ ($parcel$interopDefault($6ZrLO$react)).forwardRef($68e427819b978177$var$_SubmenuTrigger);
|
|
723
691
|
|
|
724
692
|
|
|
725
693
|
const $c2cdaffe72abf66f$export$d9b273488cd8ce6f = $453ff7c40e833219$export$d9b273488cd8ce6f;
|