@npm_leadtech/legal-lib-components 7.43.3 → 7.44.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.
@@ -7,7 +7,7 @@ import classNames from 'classnames';
7
7
  import { MenuItemsDeprecatedStyled } from './MenuItemsDeprecated.styled';
8
8
  import { stringSlugify } from '../../../utils/stringSlugify';
9
9
  // import './MenuItems.scss'
10
- const MenuItemsDeprecated = ({ spacing, list, hasBullets = false, initialActiveContent = '', isTestAB21644 = false, ...rest }) => {
10
+ const MenuItemsDeprecated = ({ spacing, list, hasBullets = false, initialActiveContent = '', ...rest }) => {
11
11
  const [contentListElement, setContentListElement] = useState(initialActiveContent);
12
12
  const filteredList = list?.filter((item) => item.content);
13
13
  if (filteredList.length === 0 || !filteredList[0].content) {
@@ -31,8 +31,7 @@ const MenuItemsDeprecated = ({ spacing, list, hasBullets = false, initialActiveC
31
31
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
32
32
  _jsx("li", { title: content, className: `menu-items__item ${className ?? ''}
33
33
  ${!href && onClick == null ? 'disabled' : ''}
34
- ${contentListElement === content ? 'active' : 'inactive'}
35
- ${isTestAB21644 ? 'menu-items__testab21644' : ''}`, onClick: () => {
34
+ ${contentListElement === content ? 'active' : 'inactive'}`, onClick: () => {
36
35
  if (onClick !== undefined) {
37
36
  onClick();
38
37
  }
@@ -8,17 +8,6 @@ export const MenuItemsDeprecatedStyled = styled.ul `
8
8
  }
9
9
  }
10
10
 
11
- &__testab21644 {
12
- &::before {
13
- content: '•';
14
- font-size: 1.2em;
15
- margin-right: 0.5rem;
16
- }
17
- &:hover::before {
18
- color: var(--primary-main-light-1);
19
- }
20
- }
21
-
22
11
  &__bullets {
23
12
  list-style-position: inside;
24
13
  list-style-type: disc;
@@ -9,17 +9,6 @@ export const MenuItemsDeprecatedStyled = styled.ul`
9
9
  }
10
10
  }
11
11
 
12
- &__testab21644 {
13
- &::before {
14
- content: '•';
15
- font-size: 1.2em;
16
- margin-right: 0.5rem;
17
- }
18
- &:hover::before {
19
- color: var(--primary-main-light-1);
20
- }
21
- }
22
-
23
12
  &__bullets {
24
13
  list-style-position: inside;
25
14
  list-style-type: disc;
@@ -14,7 +14,6 @@ const MenuItemsDeprecated: FC<MenuItemsDeprecatedProps> = ({
14
14
  list,
15
15
  hasBullets = false,
16
16
  initialActiveContent = '',
17
- isTestAB21644 = false,
18
17
  ...rest
19
18
  }) => {
20
19
  const [contentListElement, setContentListElement] = useState(initialActiveContent)
@@ -46,8 +45,7 @@ const MenuItemsDeprecated: FC<MenuItemsDeprecatedProps> = ({
46
45
  title={content}
47
46
  className={`menu-items__item ${className ?? ''}
48
47
  ${!href && onClick == null ? 'disabled' : ''}
49
- ${contentListElement === content ? 'active' : 'inactive'}
50
- ${isTestAB21644 ? 'menu-items__testab21644' : ''}`}
48
+ ${contentListElement === content ? 'active' : 'inactive'}`}
51
49
  onClick={() => {
52
50
  if (onClick !== undefined) {
53
51
  onClick()
@@ -4,7 +4,6 @@ export interface MenuItemsDeprecatedProps {
4
4
  hasBullets?: boolean;
5
5
  initialActiveContent?: string;
6
6
  list: MenuListItem[];
7
- isTestAB21644?: boolean;
8
7
  }
9
8
  export interface MenuListItem {
10
9
  className?: string;
@@ -5,7 +5,6 @@ export interface MenuItemsDeprecatedProps {
5
5
  hasBullets?: boolean
6
6
  initialActiveContent?: string
7
7
  list: MenuListItem[]
8
- isTestAB21644?: boolean
9
8
  }
10
9
 
11
10
  export interface MenuListItem {
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { TextAreaStyled } from './TextArea.styled';
3
3
  import error from '../../../../images/svg/info-error_24px_outlined.svg';
4
- const TextArea = ({ customClass = '', disabled, errorMessage, label, name, onChange, placeholder, tooltip, validate = false, value, dataQa, maxLength }) => {
4
+ const TextArea = ({ customClass = '', disabled, errorMessage, label, name, onChange, placeholder, tooltip, validate = false, value, dataQa }) => {
5
5
  const classNames = `${validate ? 'e-textarea' : 'e-textarea --is-invalid'}
6
6
  ${customClass}`;
7
- return (_jsxs(TextAreaStyled, { className: classNames, children: [Boolean(tooltip) && _jsx("p", { className: 'tooltip-form sans-serif --small', children: tooltip }), Boolean(errorMessage) && !validate && (_jsxs("span", { className: 'e-text--error sans-serif --small', children: [_jsx("img", { src: error, alt: errorMessage }), errorMessage] })), _jsx("textarea", { id: name, name: name, placeholder: placeholder, onChange: onChange, value: value, disabled: disabled, "data-qa": dataQa, maxLength: maxLength }), Boolean(label) && (_jsx("div", { className: 'e-textarea__inner', children: _jsx("div", { className: 'inputLabel', children: label }) }))] }));
7
+ return (_jsxs(TextAreaStyled, { className: classNames, children: [Boolean(tooltip) && _jsx("p", { className: 'tooltip-form sans-serif --small', children: tooltip }), Boolean(errorMessage) && !validate && (_jsxs("span", { className: 'e-text--error sans-serif --small', children: [_jsx("img", { src: error, alt: errorMessage }), errorMessage] })), _jsx("textarea", { id: name, name: name, placeholder: placeholder, onChange: onChange, value: value, disabled: disabled, "data-qa": dataQa }), Boolean(label) && (_jsx("div", { className: 'e-textarea__inner', children: _jsx("div", { className: 'inputLabel', children: label }) }))] }));
8
8
  };
9
9
  export default TextArea;
@@ -15,8 +15,7 @@ const TextArea: FC<TextAreaProps> = ({
15
15
  tooltip,
16
16
  validate = false,
17
17
  value,
18
- dataQa,
19
- maxLength
18
+ dataQa
20
19
  }) => {
21
20
  const classNames = `${validate ? 'e-textarea' : 'e-textarea --is-invalid'}
22
21
  ${customClass}`
@@ -38,7 +37,6 @@ const TextArea: FC<TextAreaProps> = ({
38
37
  value={value}
39
38
  disabled={disabled}
40
39
  data-qa={dataQa}
41
- maxLength={maxLength}
42
40
  />
43
41
  {Boolean(label) && (
44
42
  <div className={'e-textarea__inner'}>
@@ -10,5 +10,4 @@ export interface TextAreaProps {
10
10
  validate?: boolean;
11
11
  disabled?: boolean;
12
12
  onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
13
- maxLength?: number;
14
13
  }
@@ -10,5 +10,4 @@ export interface TextAreaProps {
10
10
  validate?: boolean
11
11
  disabled?: boolean
12
12
  onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void
13
- maxLength?: number
14
13
  }
@@ -8,7 +8,7 @@ import { useIntersectionObserver } from '../../../hooks';
8
8
  let scrollPosition = 0;
9
9
  let touchStartPosY;
10
10
  let isDisabledScroll = false;
11
- export const NavBarDropDown = ({ isOpen, list, hasBullets = true, initialActiveContent, setEnableScrollbarOnClose, setIsOpen, isTestAB21644 = false }) => {
11
+ export const NavBarDropDown = ({ isOpen, list, hasBullets = true, initialActiveContent, setEnableScrollbarOnClose, setIsOpen }) => {
12
12
  const [ref, isIntersectingWithElement] = useIntersectionObserver({
13
13
  options: { threshold: 0.15 }
14
14
  });
@@ -63,5 +63,5 @@ export const NavBarDropDown = ({ isOpen, list, hasBullets = true, initialActiveC
63
63
  useEffect(() => {
64
64
  setEnableScrollbarOnClose(() => enableScrollbarOnClose);
65
65
  }, []);
66
- return (_jsx(_Fragment, { children: isOpen ? (_jsxs(NavBarDropDownStyled, { className: 'navbar-drop-down__container', children: [_jsx("div", { className: 'navbar-drop-down__container__menu_items', children: _jsx(MenuItemsDeprecated, { isTestAB21644: isTestAB21644, list: list, hasBullets: hasBullets, initialActiveContent: initialActiveContent }) }), _jsx("div", { ref: ref, className: 'navbar-drop-down__container__shadow', onClick: closeMenu })] })) : null }));
66
+ return (_jsx(_Fragment, { children: isOpen ? (_jsxs(NavBarDropDownStyled, { className: 'navbar-drop-down__container', children: [_jsx("div", { className: 'navbar-drop-down__container__menu_items', children: _jsx(MenuItemsDeprecated, { list: list, hasBullets: hasBullets, initialActiveContent: initialActiveContent }) }), _jsx("div", { ref: ref, className: 'navbar-drop-down__container__shadow', onClick: closeMenu })] })) : null }));
67
67
  };
@@ -16,8 +16,7 @@ export const NavBarDropDown: FC<NavBarDropDownProps> = ({
16
16
  hasBullets = true,
17
17
  initialActiveContent,
18
18
  setEnableScrollbarOnClose,
19
- setIsOpen,
20
- isTestAB21644 = false
19
+ setIsOpen
21
20
  }): React.ReactElement | null => {
22
21
  const [ref, isIntersectingWithElement] = useIntersectionObserver<HTMLDivElement>({
23
22
  options: { threshold: 0.15 }
@@ -88,12 +87,7 @@ export const NavBarDropDown: FC<NavBarDropDownProps> = ({
88
87
  {isOpen ? (
89
88
  <NavBarDropDownStyled className='navbar-drop-down__container'>
90
89
  <div className='navbar-drop-down__container__menu_items'>
91
- <MenuItemsDeprecated
92
- isTestAB21644={isTestAB21644}
93
- list={list}
94
- hasBullets={hasBullets}
95
- initialActiveContent={initialActiveContent}
96
- />
90
+ <MenuItemsDeprecated list={list} hasBullets={hasBullets} initialActiveContent={initialActiveContent} />
97
91
  </div>
98
92
  <div ref={ref} className='navbar-drop-down__container__shadow' onClick={closeMenu}></div>
99
93
  </NavBarDropDownStyled>
@@ -10,6 +10,5 @@ export interface NavBarDropDownProps {
10
10
  setEnableScrollbarOnClose: React.Dispatch<React.SetStateAction<(() => void) | undefined>>;
11
11
  setIsOpen: (open: boolean) => void;
12
12
  list: List[];
13
- isTestAB21644?: boolean;
14
13
  }
15
14
  export {};
@@ -10,5 +10,4 @@ export interface NavBarDropDownProps {
10
10
  setEnableScrollbarOnClose: React.Dispatch<React.SetStateAction<(() => void) | undefined>>
11
11
  setIsOpen: (open: boolean) => void
12
12
  list: List[]
13
- isTestAB21644?: boolean
14
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.43.3",
3
+ "version": "7.44.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -215,6 +215,8 @@
215
215
  "./BoxForm": "./dist/src/components/molecules/BoxForm/index.js",
216
216
  "./Breadcrumb": "./dist/src/components/molecules/Breadcrumb/index.js",
217
217
  "./ContactBox": "./dist/src/components/molecules/ContactBox/index.js",
218
+ "./ContactInfoBoxMobile": "./dist/src/components/molecules/ContactInfoBoxMobile/index.js",
219
+ "./ContactInfoCard": "./dist/src/components/molecules/ContactInfoCard/index.js",
218
220
  "./ContinueEditingBanner": "./dist/src/components/molecules/ContinueEditingBanner/index.js",
219
221
  "./CountDownMessage": "./dist/src/components/molecules/CountDownMessage/index.js",
220
222
  "./EmailContactBox": "./dist/src/components/molecules/EmailContactBox/index.js",