@royaloperahouse/harmonic 0.5.1-a → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -343,325 +343,6 @@
343
343
  font-display: swap;
344
344
  }
345
345
 
346
- /* ~~~~~ General Styling Classes ~~~~~ */
347
- .typography_color-primary__LOfDi {
348
- color: var(--color-primary);
349
- }
350
-
351
- .typography_color-black__6MHRL {
352
- color: var(--color-base-black);
353
- }
354
-
355
- .typography_color-white__PfW5s {
356
- color: var(--color-base-white);
357
- }
358
-
359
- .typography_color-red__iPlbG {
360
- color: var(--color-primary-red);
361
- }
362
-
363
- .typography_color-grey__GA1c2 {
364
- color: var(--color-base-dark-grey);
365
- }
366
-
367
- .typography_color-inherit__RDd0Y {
368
- color: inherit;
369
- }
370
-
371
- .typography_em__E6tX- {
372
- font-style: italic;
373
- }
374
- /* ~~~ */
375
-
376
- /* Display Headers */
377
- .typography_display__-F3p4 {
378
- margin: 0;
379
- font-family: var(--font-family-sans);
380
- line-height: 100%;
381
-
382
- &.typography_large__uq0zC {
383
- font-size: 96px;
384
- font-weight: 700;
385
- letter-spacing: -5px;
386
- }
387
-
388
- &.typography_small__wfQ0K {
389
- font-size: 68px;
390
- font-weight: 500;
391
- letter-spacing: -3px;
392
- }
393
-
394
- /* Serif and Italic styles */
395
- &.typography_serif__VSO38,
396
- &.typography_em__E6tX- {
397
- font-family: var(--font-family-serif);
398
- font-weight: 500;
399
- }
400
-
401
- /* Serif and Italic adjustments */
402
- &.typography_large__uq0zC.typography_serif__VSO38,
403
- &.typography_large__uq0zC.typography_em__E6tX- {
404
- letter-spacing: -3px;
405
- }
406
-
407
- &.typography_small__wfQ0K.typography_serif__VSO38,
408
- &.typography_small__wfQ0K.typography_em__E6tX- {
409
- letter-spacing: -2px;
410
- }
411
-
412
- @media (max-width: 699px) {
413
- &.typography_large__uq0zC {
414
- font-size: 38px;
415
- letter-spacing: -1.5px;
416
- }
417
-
418
- &.typography_small__wfQ0K {
419
- font-size: 32px;
420
- letter-spacing: -1.5px;
421
- }
422
-
423
- &.typography_large__uq0zC.typography_serif__VSO38,
424
- &.typography_large__uq0zC.typography_em__E6tX-,
425
- &.typography_small__wfQ0K.typography_serif__VSO38,
426
- &.typography_small__wfQ0K.typography_em__E6tX- {
427
- letter-spacing: -0.5px;
428
- }
429
- }
430
- }
431
-
432
- /* Headers */
433
- .typography_header__BexiD {
434
- margin: 0;
435
- font-family: var(--font-family-sans);
436
- font-weight: 500;
437
-
438
- &.typography_large__uq0zC {
439
- font-size: 44px;
440
- line-height: 48px;
441
- letter-spacing: -1.5px;
442
- }
443
-
444
- &.typography_medium__K0uZD {
445
- font-size: 34px;
446
- line-height: 40px;
447
- letter-spacing: -1px;
448
- }
449
-
450
- &.typography_small__wfQ0K {
451
- font-size: 26px;
452
- line-height: 32px;
453
- letter-spacing: -0.5px;
454
- }
455
-
456
- /* Serif and Italic styles */
457
- &.typography_serif__VSO38,
458
- &.typography_em__E6tX- {
459
- font-family: var(--font-family-serif);
460
- }
461
-
462
- /* Serif and Italic letter-spacing overrides */
463
- &.typography_large__uq0zC.typography_serif__VSO38,
464
- &.typography_large__uq0zC.typography_em__E6tX- {
465
- letter-spacing: -0.5px;
466
- }
467
-
468
- &.typography_medium__K0uZD.typography_serif__VSO38,
469
- &.typography_medium__K0uZD.typography_em__E6tX- {
470
- letter-spacing: -0.5px;
471
- }
472
-
473
- &.typography_small__wfQ0K.typography_serif__VSO38,
474
- &.typography_small__wfQ0K.typography_em__E6tX- {
475
- letter-spacing: -0.5px;
476
- }
477
-
478
- @media (max-width: 699px) {
479
- &.typography_large__uq0zC {
480
- font-size: 28px;
481
- line-height: 34px;
482
- letter-spacing: -1.5px;
483
- }
484
-
485
- &.typography_medium__K0uZD {
486
- font-size: 24px;
487
- line-height: 28px;
488
- letter-spacing: -1px;
489
- }
490
-
491
- &.typography_small__wfQ0K {
492
- font-size: 20px;
493
- line-height: 26px;
494
- letter-spacing: -0.75px;
495
- }
496
-
497
- /* Mobile overrides for serif/italic letter-spacing */
498
- &.typography_large__uq0zC.typography_serif__VSO38,
499
- &.typography_large__uq0zC.typography_em__E6tX-,
500
- &.typography_medium__K0uZD.typography_serif__VSO38,
501
- &.typography_medium__K0uZD.typography_em__E6tX-,
502
- &.typography_small__wfQ0K.typography_serif__VSO38,
503
- &.typography_small__wfQ0K.typography_em__E6tX- {
504
- letter-spacing: -0.5px;
505
- }
506
- }
507
- }
508
-
509
- /* Subtitle */
510
- .typography_subtitle__aoFTV {
511
- margin: 0;
512
- font-family: var(--font-family-sans);
513
- font-weight: 500;
514
-
515
- &.typography_large__uq0zC {
516
- font-size: 19px;
517
- line-height: 26px;
518
- letter-spacing: -0.5px;
519
- }
520
-
521
- &.typography_small__wfQ0K {
522
- font-size: 17px;
523
- line-height: 24px;
524
- letter-spacing: -0.5px;
525
- }
526
-
527
- @media (max-width: 699px) {
528
- &.typography_large__uq0zC {
529
- font-size: 17px;
530
- line-height: 24px;
531
- letter-spacing: -0.5px;
532
- }
533
-
534
- &.typography_small__wfQ0K {
535
- font-size: 14px;
536
- line-height: 20px;
537
- letter-spacing: -0.2px;
538
- }
539
- }
540
- }
541
-
542
- /* Body Copy */
543
- .typography_bodycopy__vYtQ8 {
544
- margin: 0;
545
- font-family: var(--font-family-sans);
546
- font-weight: 400;
547
-
548
- &.typography_large__uq0zC {
549
- font-size: 19px;
550
- line-height: 26px;
551
- letter-spacing: -0.5px;
552
- }
553
-
554
- &.typography_medium__K0uZD {
555
- font-size: 17px;
556
- line-height: 24px;
557
- letter-spacing: -0.5px;
558
- }
559
-
560
- &.typography_small__wfQ0K {
561
- font-size: 14px;
562
- line-height: 20px;
563
- letter-spacing: -0.5px;
564
- }
565
-
566
- @media (max-width: 699px) {
567
- &.typography_large__uq0zC {
568
- font-size: 17px;
569
- line-height: 24px;
570
- letter-spacing: -0.5px;
571
- }
572
-
573
- &.typography_medium__K0uZD {
574
- font-size: 14px;
575
- line-height: 20px;
576
- letter-spacing: -0.2px;
577
- }
578
-
579
- &.typography_small__wfQ0K {
580
- font-size: 11px;
581
- line-height: 16px;
582
- letter-spacing: -0.2px;
583
- }
584
- }
585
- }
586
-
587
- /* Overline */
588
- .typography_overline__EnUK3 {
589
- margin: 0;
590
- font-family: var(--font-family-sans);
591
- font-weight: 500;
592
- text-transform: uppercase;
593
-
594
- &.typography_large__uq0zC {
595
- font-size: 14px;
596
- line-height: 18px;
597
- letter-spacing: 0.3px;
598
- }
599
-
600
- &.typography_small__wfQ0K {
601
- font-size: 12px;
602
- line-height: 14px;
603
- letter-spacing: 0.2px;
604
- }
605
-
606
- @media (max-width: 699px) {
607
- &.typography_large__uq0zC {
608
- line-height: 17px;
609
- letter-spacing: 0.3px; /* Added to ensure it stays */
610
- }
611
-
612
- &.typography_small__wfQ0K {
613
- line-height: 14px;
614
- letter-spacing: 0.3px;
615
- }
616
- }
617
- }
618
-
619
- /* Button Text */
620
- .typography_buttontext__vcxNi {
621
- margin: 0;
622
- font-family: var(--font-family-sans);
623
- font-size: 17px;
624
- line-height: 20px;
625
- letter-spacing: -0.5px;
626
- font-weight: 400;
627
-
628
- @media (max-width: 699px) {
629
- font-weight: 500;
630
- line-height: 17px;
631
- }
632
- }
633
-
634
- /* Caption Text */
635
- .typography_captiontext__91UFb {
636
- margin: 0;
637
- font-family: var(--font-family-sans);
638
- font-weight: 400;
639
- font-size: 17px;
640
- line-height: 24px;
641
- letter-spacing: -0.5px;
642
-
643
- @media (max-width: 699px) {
644
- font-size: 14px;
645
- line-height: 20px;
646
- letter-spacing: -0.2px;
647
- }
648
- }
649
-
650
- /* Navigation Text */
651
- .typography_navigationtext__YfGf7 {
652
- margin: 0;
653
- font-family: var(--font-family-sans);
654
- font-size: 19px;
655
- line-height: 19px;
656
- letter-spacing: 0.4px;
657
- font-weight: 500;
658
-
659
- @media (max-width: 699px) {
660
- font-size: 17px;
661
- line-height: 17px;
662
- }
663
- }
664
-
665
346
  .core-theme-module_coreTheme__pWxYB {
666
347
  /* RBO Red */
667
348
  /* Primary Palette */
@@ -2939,7 +2939,7 @@ var OptionsContainer = /*#__PURE__*/styled__default.div(_templateObject3 || (_te
2939
2939
 
2940
2940
  var _templateObject$7, _templateObject2$5, _templateObject3$1, _templateObject4;
2941
2941
  var ControlledDropdownWrapper = /*#__PURE__*/styled__default.div(_templateObject$7 || (_templateObject$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: fit-content;\n"])));
2942
- var ControlledDropdownHeaderContainer = /*#__PURE__*/styled__default.button(_templateObject2$5 || (_templateObject2$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n all: unset;\n\n display: flex;\n gap: 6px;\n border-bottom: 1px solid transparent;\n height: 24px;\n line-height: 24px;\n font-size: var(--harmonic-font-size-navigation);\n font-family: var(--font-family-sans);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--harmonic-letter-spacing-navigation);\n color: var(--color-primary-black);\n text-decoration: none;\n cursor: pointer;\n width: max-content;\n\n &:focus {\n outline: 2px solid var(--color-primary-black);\n outline-offset: 2px;\n }\n\n ", "\n"])), function (_ref) {
2942
+ var ControlledDropdownHeaderContainer = /*#__PURE__*/styled__default.span(_templateObject2$5 || (_templateObject2$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n border-bottom: 1px solid transparent;\n height: 24px;\n line-height: 24px;\n font-size: var(--harmonic-font-size-navigation);\n font-family: var(--font-family-sans);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--harmonic-letter-spacing-navigation);\n color: var(--color-primary-black);\n text-decoration: none;\n cursor: pointer;\n width: max-content;\n\n ", "\n"])), function (_ref) {
2943
2943
  var active = _ref.active;
2944
2944
  if (active) {
2945
2945
  return "\n & {\n color: var(--color-primary-red);\n }\n && svg path {\n fill: var(--color-primary-red);\n } \n ";
@@ -2947,12 +2947,12 @@ var ControlledDropdownHeaderContainer = /*#__PURE__*/styled__default.button(_tem
2947
2947
  return '';
2948
2948
  });
2949
2949
  var ControlledDropdownHeaderContainerLink = /*#__PURE__*/styled__default(ControlledDropdownHeaderContainer).attrs({
2950
- as: 'button'
2950
+ as: 'a'
2951
2951
  })(_templateObject3$1 || (_templateObject3$1 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2952
2952
  var IconWrapper = /*#__PURE__*/styled__default.span(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 24px;\n height: 24px;\n\n span > svg path {\n fill: var(--color-primary-black);\n }\n"])));
2953
2953
 
2954
2954
  /* eslint-disable no-useless-return */
2955
- var ControlledDropdown = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
2955
+ var ControlledDropdown = function ControlledDropdown(_ref) {
2956
2956
  var text = _ref.text,
2957
2957
  options = _ref.options,
2958
2958
  active = _ref.active,
@@ -2960,22 +2960,32 @@ var ControlledDropdown = /*#__PURE__*/React__default.forwardRef(function (_ref,
2960
2960
  onOptionClick = _ref.onOptionClick,
2961
2961
  _onMouseEnter = _ref.onMouseEnter,
2962
2962
  _onMouseLeave = _ref.onMouseLeave,
2963
- _onFocusLeave = _ref.onFocusLeave,
2964
2963
  onReset = _ref.onReset,
2965
2964
  _onFocus = _ref.onFocus,
2966
2965
  _onBlur = _ref.onBlur,
2967
2966
  className = _ref.className;
2968
- ControlledDropdown.displayName = 'ControlledDropdown';
2969
- var internalRef = React.useRef(null);
2970
- React.useImperativeHandle(ref, function () {
2971
- return internalRef.current;
2972
- });
2973
- var resetHandler = function resetHandler() {
2967
+ var ref = React.useRef();
2968
+ var resetHandler = React.useCallback(function () {
2974
2969
  return onReset == null ? void 0 : onReset();
2975
- };
2976
- var isDropdown = React.useMemo(function () {
2977
- return !!(options != null && options.length);
2978
- }, [options]);
2970
+ }, []);
2971
+ React.useEffect(function () {
2972
+ if (window.innerWidth > breakpoints.sm) {
2973
+ var mouseClickHandler = function mouseClickHandler(e) {
2974
+ var _ref$current;
2975
+ if (ref != null && (_ref$current = ref.current) != null && _ref$current.contains(e.target)) {
2976
+ return;
2977
+ } else if (active) {
2978
+ resetHandler();
2979
+ }
2980
+ };
2981
+ document.addEventListener('click', mouseClickHandler);
2982
+ return function () {
2983
+ document.removeEventListener('click', mouseClickHandler);
2984
+ };
2985
+ }
2986
+ // eslint-disable-next-line consistent-return
2987
+ return;
2988
+ }, [ref, resetHandler, active]);
2979
2989
  var handleOptionKeyDown = function handleOptionKeyDown(e, link) {
2980
2990
  if (e.key === 'Enter') {
2981
2991
  onOptionClick == null || onOptionClick(link);
@@ -2995,15 +3005,13 @@ var ControlledDropdown = /*#__PURE__*/React__default.forwardRef(function (_ref,
2995
3005
  _onBlur == null || _onBlur();
2996
3006
  }
2997
3007
  };
3008
+ var isDropdown = !!(options != null && options.length);
2998
3009
  var wrapperEvents = {
2999
3010
  onMouseEnter: function onMouseEnter() {
3000
3011
  return _onMouseEnter == null ? void 0 : _onMouseEnter();
3001
3012
  },
3002
3013
  onMouseLeave: function onMouseLeave() {
3003
3014
  return _onMouseLeave == null ? void 0 : _onMouseLeave();
3004
- },
3005
- onFocusLeave: function onFocusLeave() {
3006
- return _onFocusLeave == null ? void 0 : _onFocusLeave();
3007
3015
  }
3008
3016
  };
3009
3017
  var headerEvents = {
@@ -3019,51 +3027,21 @@ var ControlledDropdown = /*#__PURE__*/React__default.forwardRef(function (_ref,
3019
3027
  },
3020
3028
  onKeyDown: handleHeaderKeyDown
3021
3029
  };
3022
- React.useEffect(function () {
3023
- var mouseEvent = function mouseEvent(e) {
3024
- var _internalRef$current;
3025
- if (internalRef != null && (_internalRef$current = internalRef.current) != null && _internalRef$current.contains(e.target)) return;
3026
- if (active) resetHandler();
3027
- };
3028
- if (window.innerWidth > breakpoints.sm) {
3029
- document.addEventListener('click', mouseEvent);
3030
- }
3031
- return function () {
3032
- document.removeEventListener('click', mouseEvent);
3033
- };
3034
- }, [resetHandler, active]);
3035
- React.useEffect(function () {
3036
- var handleFocusOut = function handleFocusOut(e) {
3037
- if (internalRef.current && !internalRef.current.contains(e.relatedTarget)) {
3038
- _onFocusLeave == null || _onFocusLeave();
3039
- }
3040
- };
3041
- var node = internalRef.current;
3042
- if (node) node.addEventListener('focusout', handleFocusOut);
3043
- return function () {
3044
- return node == null ? void 0 : node.removeEventListener('focusout', handleFocusOut);
3045
- };
3046
- }, [_onFocusLeave]);
3047
3030
  return /*#__PURE__*/React__default.createElement(ControlledDropdownWrapper, Object.assign({
3048
- ref: internalRef
3031
+ ref: ref
3049
3032
  }, wrapperEvents, {
3050
3033
  className: className
3051
3034
  }), isDropdown ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ControlledDropdownHeaderContainer, Object.assign({
3052
3035
  active: active
3053
3036
  }, headerEvents, {
3054
- "data-testid": "span-container",
3055
- role: "menuitem",
3056
- "aria-controls": "dropdown-menu",
3057
- "aria-haspopup": "menu",
3058
- "aria-expanded": active
3037
+ tabIndex: 0,
3038
+ "data-testid": "span-container"
3059
3039
  }), text, /*#__PURE__*/React__default.createElement(IconWrapper, {
3060
3040
  "data-testid": "dropdown-icon"
3061
3041
  }, /*#__PURE__*/React__default.createElement(Icon, {
3062
3042
  iconName: "DropdownArrow"
3063
3043
  }))), active && options ? (/*#__PURE__*/React__default.createElement(OptionsContainer, {
3064
- withOptionsInMobile: true,
3065
- role: "menu",
3066
- id: "dropdown-menu"
3044
+ withOptionsInMobile: true
3067
3045
  }, options.map(function (optionItem, index) {
3068
3046
  return /*#__PURE__*/React__default.createElement(OptionItem, {
3069
3047
  key: "key-" + index + "-" + optionItem.option,
@@ -3077,17 +3055,15 @@ var ControlledDropdown = /*#__PURE__*/React__default.forwardRef(function (_ref,
3077
3055
  onBlur: function onBlur() {
3078
3056
  return handleOptionBlur(index);
3079
3057
  },
3080
- href: optionItem.optionLink,
3081
- role: "menuitem"
3058
+ href: optionItem.optionLink
3082
3059
  }, optionItem.option);
3083
3060
  }))) : null)) : (/*#__PURE__*/React__default.createElement(ControlledDropdownHeaderContainerLink, Object.assign({
3084
3061
  active: active
3085
3062
  }, headerEvents, {
3086
3063
  "data-testid": "link-container",
3087
- role: "menuitem",
3088
3064
  tabIndex: 0
3089
3065
  }), text)));
3090
- });
3066
+ };
3091
3067
 
3092
3068
  var _templateObject$8;
3093
3069
  var Grid = /*#__PURE__*/styled__default.div(_templateObject$8 || (_templateObject$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: var(--grid-template-columns);\n grid-template-rows: max-content;\n gap: var(--grid-column-gap);\n margin: 0;\n"])));
@@ -3771,7 +3747,6 @@ var Tab = function Tab(_ref) {
3771
3747
  className = _ref.className,
3772
3748
  role = _ref.role,
3773
3749
  ariaLabel = _ref.ariaLabel,
3774
- tabLinkId = _ref.tabLinkId,
3775
3750
  color = _ref.color;
3776
3751
  var clickHandler = function clickHandler() {
3777
3752
  if (onClick) {
@@ -3802,9 +3777,8 @@ var Tab = function Tab(_ref) {
3802
3777
  tabIndex: 0,
3803
3778
  className: className
3804
3779
  }, /*#__PURE__*/React__default.createElement(TabText, {
3805
- id: tabLinkId,
3806
- trimText: trimText,
3807
3780
  color: color,
3781
+ trimText: trimText,
3808
3782
  withTextInMobile: withTextInMobile,
3809
3783
  "aria-hidden": "true"
3810
3784
  }, title), withIcon !== 'none' && /*#__PURE__*/React__default.createElement(Icon, {
@@ -5367,7 +5341,6 @@ var Dropdown = function Dropdown(_ref) {
5367
5341
  className = _ref.className,
5368
5342
  role = _ref.role,
5369
5343
  ariaLabel = _ref.ariaLabel,
5370
- tabLinkId = _ref.tabLinkId,
5371
5344
  trimTabText = _ref.trimTabText;
5372
5345
  var node = React.useRef();
5373
5346
  var _useState = React.useState(false),
@@ -5464,7 +5437,6 @@ var Dropdown = function Dropdown(_ref) {
5464
5437
  };
5465
5438
  var renderTab = function renderTab() {
5466
5439
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tab, {
5467
- tabLinkId: tabLinkId,
5468
5440
  trimText: trimTabText,
5469
5441
  title: title,
5470
5442
  titleLink: titleLink,
@@ -5544,8 +5516,7 @@ var Account = function Account(_ref) {
5544
5516
  iconName: iconName,
5545
5517
  withOptionsInMobile: false,
5546
5518
  withIcon: "left",
5547
- className: className,
5548
- tabLinkId: "account-link"
5519
+ className: className
5549
5520
  });
5550
5521
  };
5551
5522
 
@@ -5614,7 +5585,6 @@ var Tabs = function Tabs(_ref) {
5614
5585
  var _useState3 = React.useState(-1),
5615
5586
  hoverOverDropdown = _useState3[0],
5616
5587
  setHoverOverDropdown = _useState3[1];
5617
- var dropdownRefs = React.useRef([]);
5618
5588
  var onClickHandler = function onClickHandler(value) {
5619
5589
  setOpenMenu(value);
5620
5590
  if (onShowMenu) {
@@ -5654,25 +5624,23 @@ var Tabs = function Tabs(_ref) {
5654
5624
  setHoverOverDropdown(-1);
5655
5625
  }
5656
5626
  };
5657
- var onDropdownFocusLeave = function onDropdownFocusLeave() {
5658
- onResetActive();
5627
+ var _onFocus = function onFocus(i) {
5628
+ return setActiveDropdown(i);
5659
5629
  };
5660
- var handleBlur = function handleBlur(index) {
5661
- var currentDropdown = dropdownRefs.current[index];
5662
- var active = document.activeElement;
5663
- if (currentDropdown && (!active || !currentDropdown.contains(active))) {
5630
+ var _onBlur = function onBlur(i) {
5631
+ var _items$length;
5632
+ if (i === ((_items$length = items == null ? void 0 : items.length) != null ? _items$length : 0) - 1) {
5664
5633
  onResetActive();
5665
5634
  }
5666
5635
  };
5667
5636
  return /*#__PURE__*/React__default.createElement(TabsContainer, {
5668
- role: "menubar",
5669
5637
  className: className
5670
5638
  }, /*#__PURE__*/React__default.createElement(ItemsContainer, {
5671
5639
  showMenu: showMenu
5672
5640
  }, items.map(function (item, index) {
5673
5641
  return /*#__PURE__*/React__default.createElement(ControlledDropdown, {
5674
5642
  key: "key-" + item.title,
5675
- text: item.title || '',
5643
+ text: item.title,
5676
5644
  options: item.options,
5677
5645
  onClick: function onClick() {
5678
5646
  return onDropdownClick(index, item.titleLink);
@@ -5684,17 +5652,14 @@ var Tabs = function Tabs(_ref) {
5684
5652
  onMouseLeave: function onMouseLeave() {
5685
5653
  return onDropdownMouseLeave();
5686
5654
  },
5687
- onFocusLeave: function onFocusLeave() {
5688
- return onDropdownFocusLeave();
5655
+ onFocus: function onFocus() {
5656
+ return _onFocus(index);
5689
5657
  },
5690
5658
  onBlur: function onBlur() {
5691
- return handleBlur(index);
5659
+ return _onBlur(index);
5692
5660
  },
5693
5661
  onReset: onResetActive,
5694
- active: isActiveDropdown(index),
5695
- ref: function ref(el) {
5696
- dropdownRefs.current[index] = el;
5697
- }
5662
+ active: isActiveDropdown(index)
5698
5663
  });
5699
5664
  })), !showMenu && (/*#__PURE__*/React__default.createElement(MenuContainer$1, null, openMenu ? (/*#__PURE__*/React__default.createElement("a", {
5700
5665
  "data-testid": "mobile-menu-close",