@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.
- package/dist/src/components/atoms/CardPane/CardPaneInfo.js +2 -2
- package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +2 -2
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.d.ts +1 -0
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.ts +1 -0
- package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.js +1 -1
- package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.ts +1 -1
- package/dist/src/components/molecules/FooterMenu/FooterMenu.js +1 -1
- package/dist/src/components/molecules/FooterMenu/FooterMenu.styled.js +12 -0
- package/dist/src/components/molecules/FooterMenu/FooterMenu.styled.ts +12 -0
- package/dist/src/components/molecules/FooterMenu/FooterMenu.tsx +5 -1
- package/dist/src/components/molecules/FooterMenu/FooterMenuProps.types.d.ts +1 -0
- package/dist/src/components/molecules/FooterMenu/FooterMenuProps.types.ts +1 -0
- package/dist/src/components/organisms/TopFooter/TopFooter.styled.js +1 -0
- package/dist/src/components/organisms/TopFooter/TopFooter.styled.ts +1 -0
- package/dist/src/components/sections/Footer/Footer.mocks.js +2 -2
- package/dist/src/components/sections/Footer/Footer.mocks.ts +2 -2
- package/package.json +1 -1
|
@@ -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
|
) : (
|
|
@@ -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:
|
|
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
|
|
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>
|
|
@@ -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 = {
|