@npm_leadtech/legal-lib-components 7.27.1 → 7.27.3

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.
Files changed (26) hide show
  1. package/dist/css/styles.css +3 -0
  2. package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.styled.js +1 -1
  3. package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.styled.ts +1 -1
  4. package/dist/src/components/molecules/TextInput/Input.d.ts +1 -0
  5. package/dist/src/components/molecules/TextInput/Input.js +4 -5
  6. package/dist/src/components/molecules/TextInput/Input.tsx +8 -7
  7. package/dist/src/components/molecules/TextInput/TextInput.js +2 -2
  8. package/dist/src/components/molecules/TextInput/TextInput.scss +4 -0
  9. package/dist/src/components/molecules/TextInput/TextInput.tsx +3 -1
  10. package/dist/src/components/molecules/TextInput/TextInputProps.types.d.ts +1 -0
  11. package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +1 -0
  12. package/dist/src/components/organisms/MenuItems/MenuItems.js +2 -2
  13. package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +280 -47
  14. package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +280 -47
  15. package/dist/src/components/organisms/MenuItems/MenuItems.tsx +5 -5
  16. package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.d.ts +1 -0
  17. package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.ts +1 -0
  18. package/dist/src/components/organisms/NavMenu/NavMenu.js +2 -2
  19. package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +4 -15
  20. package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +4 -15
  21. package/dist/src/components/organisms/NavMenu/NavMenu.tsx +3 -0
  22. package/dist/src/components/organisms/NavMenu/NavMenuProps.types.d.ts +1 -0
  23. package/dist/src/components/organisms/NavMenu/NavMenuProps.types.ts +1 -0
  24. package/dist/src/components/sections/Header/HeaderProps.types.d.ts +2 -0
  25. package/dist/src/components/sections/Header/HeaderProps.types.ts +2 -0
  26. package/package.json +1 -1
@@ -2165,6 +2165,9 @@ h2.react-datepicker__current-month {
2165
2165
  width: 50%;
2166
2166
  }
2167
2167
  }
2168
+ .e-text--has-prefix .tooltip-form {
2169
+ grid-row: 3;
2170
+ }
2168
2171
  .e-text--has-prefix .has-currency-prefix {
2169
2172
  padding-left: 2rem;
2170
2173
  grid-column: 1;
@@ -26,7 +26,7 @@ export const DialogMenuIconStyled = styled.div `
26
26
  align-items: flex-start;
27
27
  justify-content: space-between;
28
28
  position: absolute;
29
- z-index: 1;
29
+ z-index: 2;
30
30
  top: 1.5rem;
31
31
  right: -5rem;
32
32
 
@@ -27,7 +27,7 @@ export const DialogMenuIconStyled = styled.div`
27
27
  align-items: flex-start;
28
28
  justify-content: space-between;
29
29
  position: absolute;
30
- z-index: 1;
30
+ z-index: 2;
31
31
  top: 1.5rem;
32
32
  right: -5rem;
33
33
 
@@ -14,6 +14,7 @@ interface InputProps {
14
14
  onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
15
15
  onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
16
16
  country: string;
17
+ currrencySymbol?: string;
17
18
  }
18
19
  export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
19
20
  export {};
@@ -1,11 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useState } from 'react';
3
- import currencyEuro from '../../../../images/svg/currencyDE.svg';
4
- import currencyOthers from '../../../../images/svg/currencyUS.svg';
5
3
  import eyeCloseIcon from '../../../../images/svg/eye-close.svg';
6
4
  import eyeIcon from '../../../../images/svg/eye-24-px.svg';
7
5
  import percent from '../../../../images/svg/percent.svg';
8
- export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, country, prefix }, ref) => {
6
+ export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, country, prefix, currrencySymbol }, ref) => {
9
7
  const [hidden, setHidden] = useState(true);
10
8
  const showPassword = () => {
11
9
  if (value !== null)
@@ -25,12 +23,13 @@ export const Input = React.forwardRef(({ value, name, placeholder, className, on
25
23
  else if (isPercent) {
26
24
  finalClassName += ' has-percent-suffix';
27
25
  }
28
- return (_jsxs(_Fragment, { children: [isCurrency && !!prefix && otherCurrency && (_jsx("div", { className: 'input-icon-currency-prefix', children: _jsx("img", { src: currencyOthers, alt: 'currency' }) })), _jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: finalClassName, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { type: 'button', className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
26
+ return (_jsxs(_Fragment, { children: [isCurrency && !!prefix && otherCurrency && currrencySymbol && (_jsx("div", { className: 'input-icon-currency-prefix', children: _jsx("span", { children: currrencySymbol }) })), _jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: finalClassName, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { type: 'button', className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
29
27
  if (e.key === 'Enter')
30
28
  showPassword();
31
29
  }, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) })), isCurrency
32
30
  ? !!prefix &&
33
- euro && (_jsx("div", { className: 'input-icon-currency-suffix', children: _jsx("img", { src: currencyEuro, alt: 'currency' }) }))
31
+ euro &&
32
+ currrencySymbol && (_jsx("div", { className: 'input-icon-currency-suffix', children: _jsx("span", { children: currrencySymbol }) }))
34
33
  : isPercent && (_jsx("div", { className: 'input-icon-percent-suffix', children: _jsx("img", { src: percent, alt: 'percent' }) }))] }));
35
34
  });
36
35
  Input.displayName = 'Input';
@@ -1,7 +1,5 @@
1
1
  import React, { useState } from 'react'
2
2
 
3
- import currencyEuro from '../../../../images/svg/currencyDE.svg'
4
- import currencyOthers from '../../../../images/svg/currencyUS.svg'
5
3
  import eyeCloseIcon from '../../../../images/svg/eye-close.svg'
6
4
  import eyeIcon from '../../../../images/svg/eye-24-px.svg'
7
5
  import percent from '../../../../images/svg/percent.svg'
@@ -21,6 +19,7 @@ interface InputProps {
21
19
  onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void
22
20
  onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void
23
21
  country: string
22
+ currrencySymbol?: string
24
23
  }
25
24
 
26
25
  export const Input = React.forwardRef<HTMLInputElement, InputProps>(
@@ -39,7 +38,8 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
39
38
  type = 'text',
40
39
  maxLength,
41
40
  country,
42
- prefix
41
+ prefix,
42
+ currrencySymbol
43
43
  }: InputProps,
44
44
  ref
45
45
  ) => {
@@ -66,9 +66,9 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
66
66
 
67
67
  return (
68
68
  <>
69
- {isCurrency && !!prefix && otherCurrency && (
69
+ {isCurrency && !!prefix && otherCurrency && currrencySymbol && (
70
70
  <div className='input-icon-currency-prefix'>
71
- <img src={currencyOthers} alt='currency' />
71
+ <span>{currrencySymbol}</span>
72
72
  </div>
73
73
  )}
74
74
  <input
@@ -102,9 +102,10 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
102
102
  )}
103
103
  {isCurrency
104
104
  ? !!prefix &&
105
- euro && (
105
+ euro &&
106
+ currrencySymbol && (
106
107
  <div className='input-icon-currency-suffix'>
107
- <img src={currencyEuro} alt='currency' />
108
+ <span>{currrencySymbol}</span>
108
109
  </div>
109
110
  )
110
111
  : isPercent && (
@@ -6,7 +6,7 @@ import { Input } from './Input';
6
6
  import { TextInputLabel } from './TextInputLabel';
7
7
  import { TextInputMessage } from './TextInputMessage';
8
8
  import { TextInputTooltip } from './TextInputTooltip';
9
- const TextInput = React.forwardRef(({ label, value, validate = true, isValidGroup = true, format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, prefix = '', disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children, country }, ref) => {
9
+ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGroup = true, format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, prefix = '', disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children, country, currrencySymbol }, ref) => {
10
10
  const classnames = classNames('e-text', {
11
11
  [givenClass]: givenClass,
12
12
  'e-text--is-invalid': !validate,
@@ -26,7 +26,7 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
26
26
  if (Boolean(format) && type !== 'number' && type !== 'tel') {
27
27
  return (_jsx(NumericFormat, { name: name, id: name, placeholder: placeholder, className: 'e-text-input', onChange: onChange, onClick: onClick, value: value, "data-qa": name, disabled: disabled, maxLength: maxLength, onBlur: onBlur }));
28
28
  }
29
- return (_jsx(Input, { name: name ?? '', type: type, prefix: prefix, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, country: country }));
29
+ return (_jsx(Input, { name: name ?? '', type: type, prefix: prefix, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, country: country, currrencySymbol: currrencySymbol }));
30
30
  };
31
31
  return (_jsxs("div", { className: classnames, children: [Boolean(children) && _jsx("div", { className: 'e-text__children', children: children }), _jsx(TextInputTooltip, { tooltip: tooltip }), _jsx(TextInputMessage, { errorMessage: errorMessage, validate: validate }), renderInput(), _jsx(TextInputLabel, { label: label, htmlFor: name, notes: notes, dialogMenuTip: dialogMenuTip })] }));
32
32
  });
@@ -161,6 +161,10 @@
161
161
  width: 50%;
162
162
  }
163
163
 
164
+ .tooltip-form {
165
+ grid-row: 3;
166
+ }
167
+
164
168
  .has-currency-prefix {
165
169
  padding-left: 2rem;
166
170
  grid-column: 1;
@@ -33,7 +33,8 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
33
33
  tooltip = '',
34
34
  givenClass = '',
35
35
  children,
36
- country
36
+ country,
37
+ currrencySymbol
37
38
  }: TextInputProps,
38
39
  ref
39
40
  ) => {
@@ -93,6 +94,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
93
94
  onKeyDown={handleKeyDown}
94
95
  onKeyUp={handleKeyUp}
95
96
  country={country}
97
+ currrencySymbol={currrencySymbol}
96
98
  />
97
99
  )
98
100
  }
@@ -23,4 +23,5 @@ export interface TextInputProps {
23
23
  prefix?: string;
24
24
  children?: React.ReactNode;
25
25
  country: string;
26
+ currrencySymbol?: string;
26
27
  }
@@ -24,4 +24,5 @@ export interface TextInputProps {
24
24
  prefix?: string
25
25
  children?: React.ReactNode
26
26
  country: string
27
+ currrencySymbol?: string
27
28
  }
@@ -4,7 +4,7 @@ import { DocumentMainMenu } from '../../../components/organisms/DocumentMainMenu
4
4
  import { MenuItemsStyled } from './MenuItems.styled';
5
5
  import { RatafiaLandingIcon } from '../../atoms/RatafiaLandingIcon';
6
6
  import arrowDown from '../../../../images/svg/arrow-down.svg';
7
- export const MenuItems = ({ hasProducts, seeAllDocumentsText, setCookiePolicyFunc, routes, finalMenu, configVars, navMenuItems, extraMenu }) => {
8
- return (_jsxs(MenuItemsStyled, { children: [hasProducts && (_jsxs("div", { className: 'navigation-pane__products', children: [_jsxs("div", { className: 'navigation-pane__products__container', children: [_jsx("p", { className: 'navigation-pane__products__title', children: 'Documents' }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsxs("div", { className: 'products__list', children: [_jsx("div", { className: 'menu-mobile-wrapper', children: _jsx(DocumentListMenu, { routes: routes, seeAllLegalDocs: seeAllDocumentsText?.seeAllLegalDocs ?? '', seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', finalMenu: finalMenu, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, setCookiePolicyFunc: setCookiePolicyFunc }) }), _jsx("div", { className: 'menu-desktop-wrapper', children: _jsx(DocumentMainMenu, { seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', allLegalDocs: seeAllDocumentsText?.allLegalDocs ?? '', allTypeDocs: seeAllDocumentsText?.allTypeDocs ?? '', setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, finalMenu: finalMenu }) })] })] })), !!navMenuItems &&
7
+ export const MenuItems = ({ hasProducts, seeAllDocumentsText, setCookiePolicyFunc, routes, finalMenu, isMobile, configVars, navMenuItems, extraMenu }) => {
8
+ return (_jsxs(MenuItemsStyled, { className: `${isMobile ? 'navigation-pane' : 'left-nav'}`, children: [hasProducts && (_jsxs("div", { className: 'navigation-pane__products', children: [_jsxs("div", { className: 'navigation-pane__products__container', children: [_jsx("p", { className: 'navigation-pane__products__title', children: 'Documents' }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsx("div", { className: 'products__list', children: isMobile ? (_jsx(DocumentListMenu, { routes: routes, seeAllLegalDocs: seeAllDocumentsText?.seeAllLegalDocs ?? '', seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', finalMenu: finalMenu, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, setCookiePolicyFunc: setCookiePolicyFunc })) : (_jsx(DocumentMainMenu, { seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', allLegalDocs: seeAllDocumentsText?.allLegalDocs ?? '', allTypeDocs: seeAllDocumentsText?.allTypeDocs ?? '', setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, finalMenu: finalMenu })) })] })), !!navMenuItems &&
9
9
  navMenuItems.map((item) => (_jsx("div", { className: `navigation-pane__link`, children: _jsxs("a", { className: `navigation-pane__link__title`, title: item.title, "data-qa": item.dataQa, href: item.href, children: [_jsx("p", { children: item.label }), item.label === 'LawGenius' && _jsx(RatafiaLandingIcon, {})] }) }, item.title))), !!extraMenu && extraMenu?.items?.length > 0 && (_jsxs("div", { className: 'navigation-pane__resources', children: [_jsxs("div", { className: 'navigation-pane__resources__container', children: [_jsx("p", { className: 'navigation-pane__resources__title', children: extraMenu.title }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsx("ul", { className: 'resources__list', children: extraMenu.items.map((item) => (_jsx("li", { className: 'menu-items-li', children: _jsx("a", { title: item.title, "data-qa": item.dataQa, href: item.href, children: item.label }) }, item.title))) })] }))] }));
10
10
  };
@@ -6,35 +6,6 @@ export const MenuItemsStyled = styled.div `
6
6
  justify-content: flex-start;
7
7
  align-items: flex-start;
8
8
 
9
- @media (min-width: 1024px) {
10
- gap: 2rem;
11
- }
12
-
13
- @media ((min-width: ${size.tab} ) and (max-width: 1024px)) {
14
- gap: 1rem;
15
- }
16
-
17
- .menu-desktop-wrapper {
18
- display: none;
19
- }
20
- .menu-mobile-wrapper {
21
- display: block;
22
- }
23
-
24
- @media ${device.tablets} {
25
- flex-direction: row;
26
- align-items: center;
27
- position: relative;
28
- width: 100%;
29
-
30
- .menu-desktop-wrapper {
31
- display: block;
32
- }
33
- .menu-mobile-wrapper {
34
- display: none;
35
- }
36
- }
37
-
38
9
  &__wrapper {
39
10
  width: 100%;
40
11
  margin-top: 1rem;
@@ -52,11 +23,25 @@ export const MenuItemsStyled = styled.div `
52
23
  }
53
24
  }
54
25
 
26
+ .left-nav {
27
+ position: relative;
28
+ width: 100%;
29
+ display: none;
30
+ flex-flow: row wrap;
31
+ justify-content: flex-end;
32
+ }
33
+
55
34
  &__spacer {
56
35
  display: flex;
57
36
  flex: 1;
58
37
  }
59
38
 
39
+ .left-nav {
40
+ display: flex;
41
+ align-items: center;
42
+ gap: 1rem;
43
+ }
44
+
60
45
  .header-phone {
61
46
  display: flex;
62
47
  align-items: center;
@@ -85,6 +70,14 @@ export const MenuItemsStyled = styled.div `
85
70
  }
86
71
  }
87
72
 
73
+ @media ${device.tablets} {
74
+ display: flex;
75
+ align-items: center;
76
+ flex-direction: row;
77
+ flex-wrap: nowrap;
78
+ justify-content: flex-start;
79
+ }
80
+
88
81
  &.--no-products {
89
82
  justify-content: flex-end;
90
83
  align-items: center;
@@ -370,18 +363,67 @@ export const MenuItemsStyled = styled.div `
370
363
  margin-right: 1rem;
371
364
  }
372
365
 
373
- &__trigger {
374
- display: flex;
375
- align-content: center;
376
- flex-flow: row wrap;
377
- align-items: center;
378
- font-weight: bold;
379
- color: var(--button-secondary);
380
- padding: 4px 8px;
381
- border: 1px solid var(--neutral-neutral-3);
382
- border-radius: var(--s-border-radius);
383
- z-index: 200;
384
- user-select: none;
366
+ // mobile pane
367
+
368
+ .navigation-pane {
369
+ .navigation-pane.--is-mobile {
370
+ display: flex;
371
+
372
+ @media (max-width: ${size.tab}) {
373
+ display: none;
374
+ }
375
+
376
+ .navigation-pane__user-menu {
377
+ display: flex;
378
+ flex-flow: row nowrap;
379
+ justify-content: center;
380
+ margin: 0 1rem;
381
+ padding: 1.5rem 0;
382
+ }
383
+
384
+ .navigation-pane__ratafia {
385
+ padding: 1.5rem 1.5rem 0.5rem 1.5rem;
386
+
387
+ .navigation-pane__ratafia__title {
388
+ display: flex;
389
+ justify-content: start;
390
+ align-items: center;
391
+ gap: 0.25rem;
392
+ }
393
+ }
394
+
395
+ .navigation-pane__resources {
396
+ .resources__list {
397
+ @media ${device['mobile']} {
398
+ margin-bottom: 2rem;
399
+ }
400
+ }
401
+ }
402
+ }
403
+
404
+ &__trigger {
405
+ display: flex;
406
+ align-content: center;
407
+ flex-flow: row wrap;
408
+ align-items: center;
409
+ font-weight: bold;
410
+ color: var(--button-secondary);
411
+ padding: 4px 8px;
412
+ border: 1px solid var(--neutral-neutral-3);
413
+ border-radius: var(--s-border-radius);
414
+ z-index: 200;
415
+ //Prevent user from copying template
416
+ -webkit-touch-callout: none;
417
+ -moz-user-select: none;
418
+ -webkit-user-select: none;
419
+ -ms-user-select: none;
420
+ -o-user-select: none;
421
+ user-select: none;
422
+
423
+ span {
424
+ margin-right: 0.5rem;
425
+ }
426
+ }
385
427
  }
386
428
 
387
429
  .header {
@@ -392,7 +434,7 @@ export const MenuItemsStyled = styled.div `
392
434
  }
393
435
  }
394
436
 
395
- &.--is-open {
437
+ .--is-open .--is-mobile .navigation-pane {
396
438
  .navigation-pane__wrapper {
397
439
  width: 100%;
398
440
  margin-top: 1rem;
@@ -403,20 +445,204 @@ export const MenuItemsStyled = styled.div `
403
445
  overflow: auto;
404
446
  height: calc(100% - 65px);
405
447
  z-index: 100;
406
- }
407
448
 
408
- .search {
409
- padding-right: 1.5rem;
410
- padding-left: 1.5rem;
449
+ .search {
450
+ padding-right: 1.5rem;
451
+ padding-left: 1.5rem;
452
+ }
411
453
  }
412
454
 
413
- .navigation-pane__user-menu {
455
+ &__user-menu {
414
456
  display: flex;
415
457
  flex-flow: row nowrap;
416
458
  justify-content: center;
417
459
  align-content: center;
418
460
  padding: 1.5rem 0;
419
461
  margin: 0 1rem;
462
+
463
+ .log-in {
464
+ min-width: 120px;
465
+ margin-right: 0.5rem;
466
+ }
467
+ }
468
+
469
+ &__ratafia {
470
+ padding: 1.5rem 1.5rem 0.5rem 1.5rem;
471
+ &__title {
472
+ display: flex;
473
+ justify-content: start;
474
+ align-items: center;
475
+ gap: 0.25rem;
476
+ }
477
+ }
478
+
479
+ &__esignature {
480
+ padding: 0.5rem 1.5rem 0.5rem 1.5rem;
481
+ }
482
+
483
+ &__user-name {
484
+ margin-right: 1rem;
485
+ font-weight: bold;
486
+ text-overflow: ellipsis;
487
+ overflow: hidden;
488
+ white-space: nowrap;
489
+ width: 8rem;
490
+ color: var(--primary-main-light-5);
491
+ padding: 0.5rem 1rem;
492
+ border-radius: var(--s-border-radius);
493
+ background-color: var(--primary-main-light-6);
494
+ }
495
+
496
+ &__products,
497
+ &__help,
498
+ &__resources {
499
+ p {
500
+ font-weight: bold;
501
+
502
+ img {
503
+ display: none;
504
+ }
505
+ }
506
+
507
+ li {
508
+ margin-top: 1rem;
509
+
510
+ &:last-child {
511
+ margin-bottom: 1.5rem;
512
+ }
513
+ }
514
+ }
515
+
516
+ &__help {
517
+ padding: 1.5rem 0;
518
+ margin: 0 1.5rem;
519
+ border-top: 1px solid var(--neutral-neutral-4);
520
+ }
521
+
522
+ &__products__title {
523
+ display: none;
524
+ }
525
+
526
+ .navigation-pane__resources {
527
+ display: flex;
528
+ flex-direction: column;
529
+ align-items: flex-start;
530
+ padding: 1.5rem 0;
531
+ margin: 0 1.5rem 2rem 1.5rem;
532
+ border-top: 1px solid var(--neutral-neutral-4);
533
+ border-bottom: 1px solid var(--neutral-neutral-4);
534
+ }
535
+ }
536
+
537
+ .--is-open {
538
+ .--is-mobile {
539
+ .navigation-pane {
540
+ .navigation-pane__wrapper {
541
+ width: 100%;
542
+ margin-top: 1rem;
543
+ left: 0;
544
+ background: var(--others-white);
545
+ position: fixed;
546
+ box-shadow: var(--box-shadow-menu);
547
+ overflow: auto;
548
+ height: calc(100% - 65px);
549
+ z-index: 100;
550
+ }
551
+ }
552
+
553
+ .search {
554
+ padding-right: 1.5rem;
555
+ padding-left: 1.5rem;
556
+ }
557
+
558
+ .navigation-pane__user-menu {
559
+ display: flex;
560
+ flex-flow: row nowrap;
561
+ justify-content: center;
562
+ align-content: center;
563
+ padding: 1.5rem 0;
564
+ margin: 0 1rem;
565
+
566
+ .log-in {
567
+ min-width: 120px;
568
+ margin-right: 0.5rem;
569
+ }
570
+ }
571
+
572
+ .navigation-pane__ratafia {
573
+ padding: 1.5rem 1.5rem 0.5rem 1.5rem;
574
+
575
+ .navigation-pane__ratafia__title {
576
+ display: flex;
577
+ justify-content: start;
578
+ align-items: center;
579
+ gap: 0.25rem;
580
+ }
581
+ }
582
+
583
+ .navigation-pane__esignature {
584
+ padding: 0.5rem 1.5rem 0.5rem 1.5rem;
585
+ }
586
+
587
+ .navigation-pane__user-name {
588
+ margin-right: 1rem;
589
+ font-weight: bold;
590
+ text-overflow: ellipsis;
591
+ overflow: hidden;
592
+ white-space: nowrap;
593
+ width: 8rem;
594
+ color: var(--primary-main-light-5);
595
+ padding: 0.5rem 1rem;
596
+ border-radius: var(--s-border-radius);
597
+ background-color: var(--neutral-neutral-6);
598
+ }
599
+
600
+ .navigation-pane__products,
601
+ .navigation-pane__help,
602
+ .navigation-pane__resources {
603
+ p {
604
+ font-weight: bold;
605
+
606
+ img {
607
+ display: none;
608
+ }
609
+ }
610
+
611
+ li {
612
+ margin-top: 1rem;
613
+
614
+ &:last-child {
615
+ margin-bottom: 1.5rem;
616
+ }
617
+ }
618
+ }
619
+
620
+ .navigation-pane__help {
621
+ padding: 1.5rem 0;
622
+ margin: 0 1.5rem;
623
+ border-top: 1px solid var(--neutral-neutral-4);
624
+ }
625
+
626
+ .navigation-pane__products__title {
627
+ display: none;
628
+ }
629
+
630
+ .navigation-pane__resources {
631
+ display: flex;
632
+ flex-direction: column;
633
+ align-items: flex-start;
634
+ padding: 1.5rem 0 0 0;
635
+ margin: 0 1.5rem 1.5rem 1.5rem;
636
+ border-top: 1px solid var(--neutral-neutral-4);
637
+ }
638
+ }
639
+ }
640
+
641
+ .is-tablet {
642
+ display: none;
643
+
644
+ @media (min-width: ${size.tab}) and (max-width: ${size.md}) {
645
+ display: flex;
420
646
  }
421
647
  }
422
648
 
@@ -449,6 +675,13 @@ export const MenuItemsStyled = styled.div `
449
675
  }
450
676
 
451
677
  .navigation-pane__user-menu {
678
+ display: flex;
679
+ flex-flow: row nowrap;
680
+ justify-content: center;
681
+ align-content: center;
682
+ padding: 1.5rem 0;
683
+ margin: 0 1rem;
684
+
452
685
  .log-in {
453
686
  min-width: 120px;
454
687
  margin-right: 0.5rem;
@@ -7,35 +7,6 @@ export const MenuItemsStyled = styled.div`
7
7
  justify-content: flex-start;
8
8
  align-items: flex-start;
9
9
 
10
- @media (min-width: 1024px) {
11
- gap: 2rem;
12
- }
13
-
14
- @media ((min-width: ${size.tab} ) and (max-width: 1024px)) {
15
- gap: 1rem;
16
- }
17
-
18
- .menu-desktop-wrapper {
19
- display: none;
20
- }
21
- .menu-mobile-wrapper {
22
- display: block;
23
- }
24
-
25
- @media ${device.tablets} {
26
- flex-direction: row;
27
- align-items: center;
28
- position: relative;
29
- width: 100%;
30
-
31
- .menu-desktop-wrapper {
32
- display: block;
33
- }
34
- .menu-mobile-wrapper {
35
- display: none;
36
- }
37
- }
38
-
39
10
  &__wrapper {
40
11
  width: 100%;
41
12
  margin-top: 1rem;
@@ -53,11 +24,25 @@ export const MenuItemsStyled = styled.div`
53
24
  }
54
25
  }
55
26
 
27
+ .left-nav {
28
+ position: relative;
29
+ width: 100%;
30
+ display: none;
31
+ flex-flow: row wrap;
32
+ justify-content: flex-end;
33
+ }
34
+
56
35
  &__spacer {
57
36
  display: flex;
58
37
  flex: 1;
59
38
  }
60
39
 
40
+ .left-nav {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 1rem;
44
+ }
45
+
61
46
  .header-phone {
62
47
  display: flex;
63
48
  align-items: center;
@@ -86,6 +71,14 @@ export const MenuItemsStyled = styled.div`
86
71
  }
87
72
  }
88
73
 
74
+ @media ${device.tablets} {
75
+ display: flex;
76
+ align-items: center;
77
+ flex-direction: row;
78
+ flex-wrap: nowrap;
79
+ justify-content: flex-start;
80
+ }
81
+
89
82
  &.--no-products {
90
83
  justify-content: flex-end;
91
84
  align-items: center;
@@ -371,18 +364,67 @@ export const MenuItemsStyled = styled.div`
371
364
  margin-right: 1rem;
372
365
  }
373
366
 
374
- &__trigger {
375
- display: flex;
376
- align-content: center;
377
- flex-flow: row wrap;
378
- align-items: center;
379
- font-weight: bold;
380
- color: var(--button-secondary);
381
- padding: 4px 8px;
382
- border: 1px solid var(--neutral-neutral-3);
383
- border-radius: var(--s-border-radius);
384
- z-index: 200;
385
- user-select: none;
367
+ // mobile pane
368
+
369
+ .navigation-pane {
370
+ .navigation-pane.--is-mobile {
371
+ display: flex;
372
+
373
+ @media (max-width: ${size.tab}) {
374
+ display: none;
375
+ }
376
+
377
+ .navigation-pane__user-menu {
378
+ display: flex;
379
+ flex-flow: row nowrap;
380
+ justify-content: center;
381
+ margin: 0 1rem;
382
+ padding: 1.5rem 0;
383
+ }
384
+
385
+ .navigation-pane__ratafia {
386
+ padding: 1.5rem 1.5rem 0.5rem 1.5rem;
387
+
388
+ .navigation-pane__ratafia__title {
389
+ display: flex;
390
+ justify-content: start;
391
+ align-items: center;
392
+ gap: 0.25rem;
393
+ }
394
+ }
395
+
396
+ .navigation-pane__resources {
397
+ .resources__list {
398
+ @media ${device['mobile']} {
399
+ margin-bottom: 2rem;
400
+ }
401
+ }
402
+ }
403
+ }
404
+
405
+ &__trigger {
406
+ display: flex;
407
+ align-content: center;
408
+ flex-flow: row wrap;
409
+ align-items: center;
410
+ font-weight: bold;
411
+ color: var(--button-secondary);
412
+ padding: 4px 8px;
413
+ border: 1px solid var(--neutral-neutral-3);
414
+ border-radius: var(--s-border-radius);
415
+ z-index: 200;
416
+ //Prevent user from copying template
417
+ -webkit-touch-callout: none;
418
+ -moz-user-select: none;
419
+ -webkit-user-select: none;
420
+ -ms-user-select: none;
421
+ -o-user-select: none;
422
+ user-select: none;
423
+
424
+ span {
425
+ margin-right: 0.5rem;
426
+ }
427
+ }
386
428
  }
387
429
 
388
430
  .header {
@@ -393,7 +435,7 @@ export const MenuItemsStyled = styled.div`
393
435
  }
394
436
  }
395
437
 
396
- &.--is-open {
438
+ .--is-open .--is-mobile .navigation-pane {
397
439
  .navigation-pane__wrapper {
398
440
  width: 100%;
399
441
  margin-top: 1rem;
@@ -404,20 +446,204 @@ export const MenuItemsStyled = styled.div`
404
446
  overflow: auto;
405
447
  height: calc(100% - 65px);
406
448
  z-index: 100;
407
- }
408
449
 
409
- .search {
410
- padding-right: 1.5rem;
411
- padding-left: 1.5rem;
450
+ .search {
451
+ padding-right: 1.5rem;
452
+ padding-left: 1.5rem;
453
+ }
412
454
  }
413
455
 
414
- .navigation-pane__user-menu {
456
+ &__user-menu {
415
457
  display: flex;
416
458
  flex-flow: row nowrap;
417
459
  justify-content: center;
418
460
  align-content: center;
419
461
  padding: 1.5rem 0;
420
462
  margin: 0 1rem;
463
+
464
+ .log-in {
465
+ min-width: 120px;
466
+ margin-right: 0.5rem;
467
+ }
468
+ }
469
+
470
+ &__ratafia {
471
+ padding: 1.5rem 1.5rem 0.5rem 1.5rem;
472
+ &__title {
473
+ display: flex;
474
+ justify-content: start;
475
+ align-items: center;
476
+ gap: 0.25rem;
477
+ }
478
+ }
479
+
480
+ &__esignature {
481
+ padding: 0.5rem 1.5rem 0.5rem 1.5rem;
482
+ }
483
+
484
+ &__user-name {
485
+ margin-right: 1rem;
486
+ font-weight: bold;
487
+ text-overflow: ellipsis;
488
+ overflow: hidden;
489
+ white-space: nowrap;
490
+ width: 8rem;
491
+ color: var(--primary-main-light-5);
492
+ padding: 0.5rem 1rem;
493
+ border-radius: var(--s-border-radius);
494
+ background-color: var(--primary-main-light-6);
495
+ }
496
+
497
+ &__products,
498
+ &__help,
499
+ &__resources {
500
+ p {
501
+ font-weight: bold;
502
+
503
+ img {
504
+ display: none;
505
+ }
506
+ }
507
+
508
+ li {
509
+ margin-top: 1rem;
510
+
511
+ &:last-child {
512
+ margin-bottom: 1.5rem;
513
+ }
514
+ }
515
+ }
516
+
517
+ &__help {
518
+ padding: 1.5rem 0;
519
+ margin: 0 1.5rem;
520
+ border-top: 1px solid var(--neutral-neutral-4);
521
+ }
522
+
523
+ &__products__title {
524
+ display: none;
525
+ }
526
+
527
+ .navigation-pane__resources {
528
+ display: flex;
529
+ flex-direction: column;
530
+ align-items: flex-start;
531
+ padding: 1.5rem 0;
532
+ margin: 0 1.5rem 2rem 1.5rem;
533
+ border-top: 1px solid var(--neutral-neutral-4);
534
+ border-bottom: 1px solid var(--neutral-neutral-4);
535
+ }
536
+ }
537
+
538
+ .--is-open {
539
+ .--is-mobile {
540
+ .navigation-pane {
541
+ .navigation-pane__wrapper {
542
+ width: 100%;
543
+ margin-top: 1rem;
544
+ left: 0;
545
+ background: var(--others-white);
546
+ position: fixed;
547
+ box-shadow: var(--box-shadow-menu);
548
+ overflow: auto;
549
+ height: calc(100% - 65px);
550
+ z-index: 100;
551
+ }
552
+ }
553
+
554
+ .search {
555
+ padding-right: 1.5rem;
556
+ padding-left: 1.5rem;
557
+ }
558
+
559
+ .navigation-pane__user-menu {
560
+ display: flex;
561
+ flex-flow: row nowrap;
562
+ justify-content: center;
563
+ align-content: center;
564
+ padding: 1.5rem 0;
565
+ margin: 0 1rem;
566
+
567
+ .log-in {
568
+ min-width: 120px;
569
+ margin-right: 0.5rem;
570
+ }
571
+ }
572
+
573
+ .navigation-pane__ratafia {
574
+ padding: 1.5rem 1.5rem 0.5rem 1.5rem;
575
+
576
+ .navigation-pane__ratafia__title {
577
+ display: flex;
578
+ justify-content: start;
579
+ align-items: center;
580
+ gap: 0.25rem;
581
+ }
582
+ }
583
+
584
+ .navigation-pane__esignature {
585
+ padding: 0.5rem 1.5rem 0.5rem 1.5rem;
586
+ }
587
+
588
+ .navigation-pane__user-name {
589
+ margin-right: 1rem;
590
+ font-weight: bold;
591
+ text-overflow: ellipsis;
592
+ overflow: hidden;
593
+ white-space: nowrap;
594
+ width: 8rem;
595
+ color: var(--primary-main-light-5);
596
+ padding: 0.5rem 1rem;
597
+ border-radius: var(--s-border-radius);
598
+ background-color: var(--neutral-neutral-6);
599
+ }
600
+
601
+ .navigation-pane__products,
602
+ .navigation-pane__help,
603
+ .navigation-pane__resources {
604
+ p {
605
+ font-weight: bold;
606
+
607
+ img {
608
+ display: none;
609
+ }
610
+ }
611
+
612
+ li {
613
+ margin-top: 1rem;
614
+
615
+ &:last-child {
616
+ margin-bottom: 1.5rem;
617
+ }
618
+ }
619
+ }
620
+
621
+ .navigation-pane__help {
622
+ padding: 1.5rem 0;
623
+ margin: 0 1.5rem;
624
+ border-top: 1px solid var(--neutral-neutral-4);
625
+ }
626
+
627
+ .navigation-pane__products__title {
628
+ display: none;
629
+ }
630
+
631
+ .navigation-pane__resources {
632
+ display: flex;
633
+ flex-direction: column;
634
+ align-items: flex-start;
635
+ padding: 1.5rem 0 0 0;
636
+ margin: 0 1.5rem 1.5rem 1.5rem;
637
+ border-top: 1px solid var(--neutral-neutral-4);
638
+ }
639
+ }
640
+ }
641
+
642
+ .is-tablet {
643
+ display: none;
644
+
645
+ @media (min-width: ${size.tab}) and (max-width: ${size.md}) {
646
+ display: flex;
421
647
  }
422
648
  }
423
649
 
@@ -453,6 +679,13 @@ export const MenuItemsStyled = styled.div`
453
679
  }
454
680
 
455
681
  .navigation-pane__user-menu {
682
+ display: flex;
683
+ flex-flow: row nowrap;
684
+ justify-content: center;
685
+ align-content: center;
686
+ padding: 1.5rem 0;
687
+ margin: 0 1rem;
688
+
456
689
  .log-in {
457
690
  min-width: 120px;
458
691
  margin-right: 0.5rem;
@@ -13,12 +13,13 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
13
13
  setCookiePolicyFunc,
14
14
  routes,
15
15
  finalMenu,
16
+ isMobile,
16
17
  configVars,
17
18
  navMenuItems,
18
19
  extraMenu
19
20
  }) => {
20
21
  return (
21
- <MenuItemsStyled>
22
+ <MenuItemsStyled className={`${isMobile ? 'navigation-pane' : 'left-nav'}`}>
22
23
  {hasProducts && (
23
24
  <div className={'navigation-pane__products'}>
24
25
  <div className={'navigation-pane__products__container'}>
@@ -26,7 +27,7 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
26
27
  <img src={arrowDown} alt='arrow-down' />
27
28
  </div>
28
29
  <div className={'products__list'}>
29
- <div className='menu-mobile-wrapper'>
30
+ {isMobile ? (
30
31
  <DocumentListMenu
31
32
  routes={routes}
32
33
  seeAllLegalDocs={seeAllDocumentsText?.seeAllLegalDocs ?? ''}
@@ -35,8 +36,7 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
35
36
  hasSubCategoryPage={configVars.HAS_SUBCATEGORY_PAGE}
36
37
  setCookiePolicyFunc={setCookiePolicyFunc}
37
38
  ></DocumentListMenu>
38
- </div>
39
- <div className='menu-desktop-wrapper'>
39
+ ) : (
40
40
  <DocumentMainMenu
41
41
  seeAllTypeDocs={seeAllDocumentsText?.seeAllTypeDocs ?? ''}
42
42
  allLegalDocs={seeAllDocumentsText?.allLegalDocs ?? ''}
@@ -46,7 +46,7 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
46
46
  hasSubCategoryPage={configVars.HAS_SUBCATEGORY_PAGE}
47
47
  finalMenu={finalMenu}
48
48
  ></DocumentMainMenu>
49
- </div>
49
+ )}
50
50
  </div>
51
51
  </div>
52
52
  )}
@@ -12,6 +12,7 @@ export interface MenuItemsProps {
12
12
  setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void;
13
13
  routes: Routes;
14
14
  finalMenu: DocumentListMenuSectionProps[];
15
+ isMobile: boolean;
15
16
  configVars: {
16
17
  TARGET_ADDRESS: string;
17
18
  ESIGNATURE_CONFIG: {
@@ -13,6 +13,7 @@ export interface MenuItemsProps {
13
13
  setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void
14
14
  routes: Routes
15
15
  finalMenu: DocumentListMenuSectionProps[]
16
+ isMobile: boolean
16
17
  configVars: {
17
18
  TARGET_ADDRESS: string
18
19
  ESIGNATURE_CONFIG: {
@@ -5,6 +5,6 @@ import { NavMenuStyled } from './NavMenu.styled';
5
5
  import { NavMobileContactBar } from '../../molecules/NavMobileContactBar';
6
6
  import { PhoneIcon } from '../../../../images/componentsSvg/PhoneIcon';
7
7
  import { SearchBar } from '../../../components/molecules/SearchBar/SearchBar';
8
- export const NavMenu = ({ isLeftNavHidden, isHeaderProductsHidden, isSearchBarHidden, isResourcesHidden, showHeaderPhone, toggleMenuOpen, isMenuOpen, languageSelectorProps, configVars, searchableProducts, finalMenu, userActions, menuStrings, routes, searchBarTexts, sitePhone, handleResultClick, languageSelectorConfigEnabled, isJonSnow, triggerMenuClose, triggerMenuOpen, setCookiePolicyFunc, navMenuItems, extraMenu }) => {
9
- return (_jsxs(NavMenuStyled, { children: [_jsxs("nav", { itemScope: true, itemType: 'https://www.schema.org/SiteNavigationElement', className: `navigation-pane --is-mobile ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [_jsx("div", { onClick: toggleMenuOpen, onKeyDown: toggleMenuOpen, className: 'navigation-pane__trigger sans-serif --small', children: !isMenuOpen ? triggerMenuOpen : triggerMenuClose }), isMenuOpen && (_jsxs("div", { className: 'navigation-pane__wrapper', children: [userActions, !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }), !isJonSnow && _jsx(NavMobileContactBar, { phone: sitePhone })] }))] }), _jsxs("nav", { className: `navigation-pane --is-desktop ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [!isLeftNavHidden && (_jsx("div", { className: 'left-nav', children: _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }) })), _jsxs("div", { className: 'right-nav', children: [showHeaderPhone && (_jsxs("div", { className: 'header-phone', children: [_jsx(PhoneIcon, {}), _jsxs("b", { children: [sitePhone, " "] })] })), !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), languageSelectorConfigEnabled && languageSelectorProps && _jsx(LanguageSelector, { ...languageSelectorProps }), userActions] })] })] }));
8
+ export const NavMenu = ({ isLeftNavHidden, isHeaderProductsHidden, isSearchBarHidden, isResourcesHidden, showHeaderPhone, toggleMenuOpen, isMenuOpen, languageSelectorProps, configVars, searchableProducts, finalMenu, userActions, menuStrings, routes, searchBarTexts, sitePhone, handleResultClick, languageSelectorConfigEnabled, isJonSnow, isMobile, triggerMenuClose, triggerMenuOpen, setCookiePolicyFunc, navMenuItems, extraMenu }) => {
9
+ return (_jsxs(NavMenuStyled, { children: [_jsxs("nav", { itemScope: true, itemType: 'https://www.schema.org/SiteNavigationElement', className: `navigation-pane --is-mobile ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [_jsx("div", { onClick: toggleMenuOpen, onKeyDown: toggleMenuOpen, className: 'navigation-pane__trigger sans-serif --small', children: !isMenuOpen ? triggerMenuOpen : triggerMenuClose }), isMenuOpen && (_jsxs("div", { className: 'navigation-pane__wrapper', children: [userActions, !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, isMobile: isMobile, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }), !isJonSnow && _jsx(NavMobileContactBar, { phone: sitePhone })] }))] }), _jsxs("nav", { className: `navigation-pane --is-desktop ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [!isLeftNavHidden && (_jsx("div", { className: 'left-nav', children: _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, isMobile: isMobile, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }) })), _jsxs("div", { className: 'right-nav', children: [showHeaderPhone && (_jsxs("div", { className: 'header-phone', children: [_jsx(PhoneIcon, {}), _jsxs("b", { children: [sitePhone, " "] })] })), !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), languageSelectorConfigEnabled && languageSelectorProps && _jsx(LanguageSelector, { ...languageSelectorProps }), userActions] })] })] }));
10
10
  };
@@ -10,21 +10,6 @@ export const NavMenuStyled = styled.nav `
10
10
  display: flex;
11
11
  flex: 1;
12
12
  }
13
-
14
- .create-account__mobile {
15
- @media (min-width: ${size.tab}) {
16
- display: none;
17
- }
18
- display: block;
19
- }
20
-
21
- .create-account__desktop {
22
- @media (max-width: ${size.tab}) {
23
- display: none;
24
- }
25
- display: block;
26
- }
27
-
28
13
  &.--is-mobile {
29
14
  @media (min-width: ${size.tab}) {
30
15
  display: none;
@@ -42,6 +27,10 @@ export const NavMenuStyled = styled.nav `
42
27
  .left-nav {
43
28
  display: flex;
44
29
  align-items: center;
30
+ @media (max-width: 1024px) {
31
+ gap: 1rem;
32
+ }
33
+ gap: 2rem;
45
34
  }
46
35
 
47
36
  .header-phone {
@@ -11,21 +11,6 @@ export const NavMenuStyled = styled.nav`
11
11
  display: flex;
12
12
  flex: 1;
13
13
  }
14
-
15
- .create-account__mobile {
16
- @media (min-width: ${size.tab}) {
17
- display: none;
18
- }
19
- display: block;
20
- }
21
-
22
- .create-account__desktop {
23
- @media (max-width: ${size.tab}) {
24
- display: none;
25
- }
26
- display: block;
27
- }
28
-
29
14
  &.--is-mobile {
30
15
  @media (min-width: ${size.tab}) {
31
16
  display: none;
@@ -43,6 +28,10 @@ export const NavMenuStyled = styled.nav`
43
28
  .left-nav {
44
29
  display: flex;
45
30
  align-items: center;
31
+ @media (max-width: 1024px) {
32
+ gap: 1rem;
33
+ }
34
+ gap: 2rem;
46
35
  }
47
36
 
48
37
  .header-phone {
@@ -29,6 +29,7 @@ export const NavMenu: React.FC<NavMenuProps> = ({
29
29
  handleResultClick,
30
30
  languageSelectorConfigEnabled,
31
31
  isJonSnow,
32
+ isMobile,
32
33
  triggerMenuClose,
33
34
  triggerMenuOpen,
34
35
  setCookiePolicyFunc,
@@ -67,6 +68,7 @@ export const NavMenu: React.FC<NavMenuProps> = ({
67
68
  setCookiePolicyFunc={setCookiePolicyFunc}
68
69
  routes={routes}
69
70
  finalMenu={finalMenu}
71
+ isMobile={isMobile}
70
72
  configVars={configVars}
71
73
  navMenuItems={navMenuItems}
72
74
  extraMenu={extraMenu}
@@ -85,6 +87,7 @@ export const NavMenu: React.FC<NavMenuProps> = ({
85
87
  setCookiePolicyFunc={setCookiePolicyFunc}
86
88
  routes={routes}
87
89
  finalMenu={finalMenu}
90
+ isMobile={isMobile}
88
91
  configVars={configVars}
89
92
  navMenuItems={navMenuItems}
90
93
  extraMenu={extraMenu}
@@ -42,6 +42,7 @@ export interface NavMenuProps {
42
42
  isMenuOpen: boolean;
43
43
  languageSelectorConfigEnabled: boolean;
44
44
  isJonSnow: boolean;
45
+ isMobile: boolean;
45
46
  triggerMenuOpen: React.ReactNode;
46
47
  triggerMenuClose: React.ReactNode;
47
48
  toggleMenuOpen: () => void;
@@ -44,6 +44,7 @@ export interface NavMenuProps {
44
44
  isMenuOpen: boolean
45
45
  languageSelectorConfigEnabled: boolean
46
46
  isJonSnow: boolean
47
+ isMobile: boolean
47
48
  triggerMenuOpen: React.ReactNode
48
49
  triggerMenuClose: React.ReactNode
49
50
  toggleMenuOpen: () => void
@@ -27,6 +27,7 @@ export interface HeaderProps {
27
27
  siteName: string;
28
28
  };
29
29
  topBarProps: {
30
+ isMobile?: boolean;
30
31
  hide?: boolean;
31
32
  isVisible?: boolean;
32
33
  children?: React.ReactNode;
@@ -55,6 +56,7 @@ export interface HeaderProps {
55
56
  isMenuOpen: boolean;
56
57
  languageSelectorConfigEnabled: boolean;
57
58
  isJonSnow: boolean;
59
+ isMobile: boolean;
58
60
  triggerMenuOpen: React.ReactNode;
59
61
  triggerMenuClose: React.ReactNode;
60
62
  toggleMenuOpen: () => void;
@@ -32,6 +32,7 @@ export interface HeaderProps {
32
32
  siteName: string
33
33
  }
34
34
  topBarProps: {
35
+ isMobile?: boolean
35
36
  hide?: boolean
36
37
  isVisible?: boolean
37
38
  children?: React.ReactNode
@@ -60,6 +61,7 @@ export interface HeaderProps {
60
61
  isMenuOpen: boolean
61
62
  languageSelectorConfigEnabled: boolean
62
63
  isJonSnow: boolean
64
+ isMobile: boolean
63
65
  triggerMenuOpen: React.ReactNode
64
66
  triggerMenuClose: React.ReactNode
65
67
  toggleMenuOpen: () => void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.27.1",
3
+ "version": "7.27.3",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",