@npm_leadtech/legal-lib-components 7.79.1 → 7.79.2

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.
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { IconTextInfoSectionStyled } from './IconTextInfoSection.styled';
4
4
  export const IconTextInfoSection = ({ items, classnames = '' }) => {
5
- return (_jsx(IconTextInfoSectionStyled, { className: `icon-text-info-section bottom-side ${classnames}`, children: items.map(({ text, src }, index) => (_jsxs(React.Fragment, { children: [_jsxs("div", { className: 'box', children: [_jsx("div", { className: 'item-image', children: _jsx("img", { className: 'image', src: src, alt: text, title: text }) }), _jsx("div", { className: 'item-text', children: _jsx("p", { className: 'no-margin', children: text }) })] }), items.length - 1 !== index && _jsx("div", { className: 'icon-text-info-section__separator' })] }, `${src}-${index}`))) }));
5
+ return (_jsx(IconTextInfoSectionStyled, { className: `icon-text-info-section bottom-side ${classnames}`, children: items.map(({ text, src }, index) => (_jsxs(React.Fragment, { children: [_jsxs("div", { className: 'box', children: [_jsx("div", { className: 'item-image', children: _jsx("img", { className: 'image', src: src, alt: 'create' }) }), _jsx("div", { className: 'item-text', children: _jsx("p", { className: 'no-margin', children: text }) })] }), items.length - 1 !== index && _jsx("div", { className: 'icon-text-info-section__separator' })] }, `${src}-${index}`))) }));
6
6
  };
@@ -10,7 +10,7 @@ export const IconTextInfoSection: React.FC<IconTextInfoSectionProps> = ({ items,
10
10
  <React.Fragment key={`${src}-${index}`}>
11
11
  <div className='box'>
12
12
  <div className='item-image'>
13
- <img className='image' src={src} alt={text} title={text}></img>
13
+ <img className='image' src={src} alt='create'></img>
14
14
  </div>
15
15
  <div className='item-text'>
16
16
  <p className='no-margin'>{text}</p>
@@ -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) {
@@ -32,7 +32,7 @@ const MenuItemsDeprecated = ({ spacing, list, hasBullets = false, initialActiveC
32
32
  _jsx("li", { title: content, className: `menu-items__item ${className ?? ''}
33
33
  ${!href && onClick == null ? 'disabled' : ''}
34
34
  ${contentListElement === content ? 'active' : 'inactive'}
35
- ${isTestAB21644 ? 'menu-items__testab21644' : ''}`, onClick: () => {
35
+ ${'menu-items__list-styles'}`, onClick: () => {
36
36
  if (onClick !== undefined) {
37
37
  onClick();
38
38
  }
@@ -8,7 +8,7 @@ export const MenuItemsDeprecatedStyled = styled.ul `
8
8
  }
9
9
  }
10
10
 
11
- &__testab21644 {
11
+ &__list-styles {
12
12
  &::before {
13
13
  content: '•';
14
14
  font-size: 1.2em;
@@ -9,7 +9,7 @@ export const MenuItemsDeprecatedStyled = styled.ul`
9
9
  }
10
10
  }
11
11
 
12
- &__testab21644 {
12
+ &__list-styles {
13
13
  &::before {
14
14
  content: '•';
15
15
  font-size: 1.2em;
@@ -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)
@@ -47,7 +46,7 @@ const MenuItemsDeprecated: FC<MenuItemsDeprecatedProps> = ({
47
46
  className={`menu-items__item ${className ?? ''}
48
47
  ${!href && onClick == null ? 'disabled' : ''}
49
48
  ${contentListElement === content ? 'active' : 'inactive'}
50
- ${isTestAB21644 ? 'menu-items__testab21644' : ''}`}
49
+ ${'menu-items__list-styles'}`}
51
50
  onClick={() => {
52
51
  if (onClick !== undefined) {
53
52
  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 {
@@ -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.79.1",
3
+ "version": "7.79.2",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",