@npm_leadtech/legal-lib-components 7.10.0 → 7.10.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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- const CardPaneInfo = ({ description, subdescription, id, title, handleClick }) => {
3
- const paneTitle = (_jsx(_Fragment, { children: handleClick ? (_jsx("button", { onClick: handleClick, className: 'pane--title pane--title--button', children: title })) : (_jsx("div", { className: 'pane--title', children: title })) }));
2
+ const CardPaneInfo = ({ dataQA, description, subdescription, id, title, handleClick }) => {
3
+ const paneTitle = (_jsx(_Fragment, { children: handleClick ? (_jsx("button", { onClick: handleClick, "data-qa": dataQA, className: 'pane--title pane--title--button', children: title })) : (_jsx("div", { className: 'pane--title', children: title })) }));
4
4
  if (description === 'Active' || description === 'Inactive') {
5
5
  let descriptionClass;
6
6
  if (description === 'Active') {
@@ -2,11 +2,11 @@ import React, { type FC } from 'react'
2
2
 
3
3
  import { type CardPaneInfoProps } from './CardPaneProps.types'
4
4
 
5
- const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id, title, handleClick }) => {
5
+ const CardPaneInfo: FC<CardPaneInfoProps> = ({ dataQA, description, subdescription, id, title, handleClick }) => {
6
6
  const paneTitle = (
7
7
  <>
8
8
  {handleClick ? (
9
- <button onClick={handleClick} className='pane--title pane--title--button'>
9
+ <button onClick={handleClick} data-qa={dataQA} className='pane--title pane--title--button'>
10
10
  {title}
11
11
  </button>
12
12
  ) : (
@@ -6,5 +6,6 @@ export interface CardPaneInfoProps {
6
6
  id: string;
7
7
  title: string;
8
8
  subdescription?: string;
9
+ dataQA?: string;
9
10
  handleClick?: () => void;
10
11
  }
@@ -7,5 +7,6 @@ export interface CardPaneInfoProps {
7
7
  id: string
8
8
  title: string
9
9
  subdescription?: string
10
+ dataQA?: string
10
11
  handleClick?: () => void
11
12
  }
@@ -10,7 +10,7 @@ export const ContactInformation = styled.div `
10
10
  }
11
11
  .language-selector-mobile-container {
12
12
  background-color: var(--primary-main-dark-1);
13
- margin-bottom: 2rem;
13
+ margin-bottom: 1rem;
14
14
  width: 100%;
15
15
 
16
16
  @media (min-width: 768px) {
@@ -11,7 +11,7 @@ export const ContactInformation = styled.div`
11
11
  }
12
12
  .language-selector-mobile-container {
13
13
  background-color: var(--primary-main-dark-1);
14
- margin-bottom: 2rem;
14
+ margin-bottom: 1rem;
15
15
  width: 100%;
16
16
 
17
17
  @media (min-width: 768px) {
@@ -1,3 +1,3 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { FooterMenuList, FooterMenuStyled, FooterMenuTitle, FooterStyledLink } from './FooterMenu.styled';
3
- export const FooterMenu = ({ title, links }) => (_jsxs(FooterMenuStyled, { children: [_jsx(FooterMenuTitle, { className: 'sans-serif --small --bold-weight', children: title }), _jsx(FooterMenuList, { children: links.map((link) => (_jsx("li", { children: _jsx(FooterStyledLink, { href: link.url, className: 'sans-serif --extra-small', "data-qa": link.dataQa, children: link.name }) }, link.url))) })] }));
3
+ export const FooterMenu = ({ title, links }) => (_jsxs(FooterMenuStyled, { children: [_jsx(FooterMenuTitle, { className: 'sans-serif --small --bold-weight', children: title }), _jsx(FooterMenuList, { children: links.map((link) => (_jsx("li", { children: _jsx(FooterStyledLink, { href: link.url, className: `sans-serif --extra-small ${link.customClass ?? ''}`, "data-qa": link.dataQa, children: link.name }) }, link.url))) })] }));
@@ -16,4 +16,16 @@ export const FooterMenuList = styled.ul `
16
16
  export const FooterStyledLink = styled.a `
17
17
  color: var(--neutral-neutral-6);
18
18
  text-decoration: none;
19
+ &.ai-link::after {
20
+ content: 'AI';
21
+ color: var(--neutral-neutral-1);
22
+ font-weight: 600;
23
+ font-size: 0.625rem;
24
+ padding: 4px;
25
+ margin-left: 4px;
26
+ border-radius: 4px;
27
+ background-color: var(--secondary-main-light-3);
28
+ display: inline-block;
29
+ line-height: 1;
30
+ }
19
31
  `;
@@ -20,4 +20,16 @@ export const FooterMenuList = styled.ul`
20
20
  export const FooterStyledLink = styled.a`
21
21
  color: var(--neutral-neutral-6);
22
22
  text-decoration: none;
23
+ &.ai-link::after {
24
+ content: 'AI';
25
+ color: var(--neutral-neutral-1);
26
+ font-weight: 600;
27
+ font-size: 0.625rem;
28
+ padding: 4px;
29
+ margin-left: 4px;
30
+ border-radius: 4px;
31
+ background-color: var(--secondary-main-light-3);
32
+ display: inline-block;
33
+ line-height: 1;
34
+ }
23
35
  `
@@ -8,7 +8,11 @@ export const FooterMenu: React.FC<FooterMenuProps> = ({ title, links }) => (
8
8
  <FooterMenuList>
9
9
  {links.map((link) => (
10
10
  <li key={link.url}>
11
- <FooterStyledLink href={link.url} className='sans-serif --extra-small' data-qa={link.dataQa}>
11
+ <FooterStyledLink
12
+ href={link.url}
13
+ className={`sans-serif --extra-small ${link.customClass ?? ''}`}
14
+ data-qa={link.dataQa}
15
+ >
12
16
  {link.name}
13
17
  </FooterStyledLink>
14
18
  </li>
@@ -3,6 +3,7 @@ export interface Link {
3
3
  url: string;
4
4
  dataQa?: string;
5
5
  rel?: string;
6
+ customClass?: string;
6
7
  }
7
8
  export interface FooterMenuProps {
8
9
  title: string;
@@ -3,6 +3,7 @@ export interface Link {
3
3
  url: string
4
4
  dataQa?: string
5
5
  rel?: string
6
+ customClass?: string
6
7
  }
7
8
 
8
9
  export interface FooterMenuProps {
@@ -23,6 +23,7 @@ export const TopFooterStyled = styled.div `
23
23
  export const SelectorTrustpilotWrapper = styled.div `
24
24
  display: flex;
25
25
  flex-direction: column;
26
+ max-width: 138px;
26
27
  gap: 1.2rem;
27
28
  @media (max-width: 768px) {
28
29
  display: contents;
@@ -25,6 +25,7 @@ export const TopFooterStyled = styled.div`
25
25
  export const SelectorTrustpilotWrapper = styled.div`
26
26
  display: flex;
27
27
  flex-direction: column;
28
+ max-width: 138px;
28
29
  gap: 1.2rem;
29
30
  @media (max-width: 768px) {
30
31
  display: contents;
@@ -6,7 +6,7 @@ export const mockMenu = {
6
6
  title: 'SERVICES',
7
7
  links: [
8
8
  { name: 'Legal Documents and Forms', url: '#' },
9
- { name: 'LawGenius', url: '#' },
9
+ { name: 'LawGenius', url: '#', customClass: 'ai-link' },
10
10
  { name: 'eSignature', url: '#' }
11
11
  ]
12
12
  };
@@ -19,7 +19,7 @@ export const mockSocialLinks = [
19
19
  export const mockContactInfo = {
20
20
  phoneNumber: '1-800-123-4567',
21
21
  schedule: 'Contact Hours: Sun-Sat 9am - 7pm ET',
22
- languageSelector: ''
22
+ languageSelector: 'LANGUAGE SELECTOR'
23
23
  };
24
24
  export const mockTopFooterArgs = {
25
25
  menus: [
@@ -13,7 +13,7 @@ export const mockMenu: FooterMenuProps = {
13
13
  title: 'SERVICES',
14
14
  links: [
15
15
  { name: 'Legal Documents and Forms', url: '#' },
16
- { name: 'LawGenius', url: '#' },
16
+ { name: 'LawGenius', url: '#', customClass: 'ai-link' },
17
17
  { name: 'eSignature', url: '#' }
18
18
  ]
19
19
  }
@@ -28,7 +28,7 @@ export const mockSocialLinks: SocialLink[] = [
28
28
  export const mockContactInfo: ContactInfoProps = {
29
29
  phoneNumber: '1-800-123-4567',
30
30
  schedule: 'Contact Hours: Sun-Sat 9am - 7pm ET',
31
- languageSelector: ''
31
+ languageSelector: 'LANGUAGE SELECTOR'
32
32
  }
33
33
 
34
34
  export const mockTopFooterArgs: TopFooterProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.10.0",
3
+ "version": "7.10.2",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",