@npm_leadtech/legal-lib-components 7.10.1 → 7.11.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.
Files changed (21) hide show
  1. package/dist/src/components/atoms/PopularDocsItem/PopularDocsItem.styled.js +0 -9
  2. package/dist/src/components/atoms/PopularDocsItem/PopularDocsItem.styled.ts +0 -9
  3. package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.js +1 -1
  4. package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.ts +1 -1
  5. package/dist/src/components/molecules/FooterMenu/FooterMenu.js +1 -1
  6. package/dist/src/components/molecules/FooterMenu/FooterMenu.styled.js +12 -0
  7. package/dist/src/components/molecules/FooterMenu/FooterMenu.styled.ts +12 -0
  8. package/dist/src/components/molecules/FooterMenu/FooterMenu.tsx +5 -1
  9. package/dist/src/components/molecules/FooterMenu/FooterMenuProps.types.d.ts +1 -0
  10. package/dist/src/components/molecules/FooterMenu/FooterMenuProps.types.ts +1 -0
  11. package/dist/src/components/organisms/TopFooter/TopFooter.styled.js +1 -0
  12. package/dist/src/components/organisms/TopFooter/TopFooter.styled.ts +1 -0
  13. package/dist/src/components/sections/Footer/Footer.mocks.js +2 -2
  14. package/dist/src/components/sections/Footer/Footer.mocks.ts +2 -2
  15. package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.js +0 -2
  16. package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.ts +0 -2
  17. package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.styled.js +1 -1
  18. package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.styled.ts +1 -1
  19. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.js +0 -1
  20. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.ts +0 -1
  21. package/package.json +1 -1
@@ -25,10 +25,6 @@ export const PopularDocsItemStyled = styled.a `
25
25
  margin-left: 0.5rem;
26
26
  }
27
27
 
28
- @media ${device.mobile} {
29
- gap: 1rem;
30
- }
31
-
32
28
  .category-icon svg {
33
29
  fill: var(--primary-main-dark-1);
34
30
  }
@@ -49,11 +45,6 @@ export const PopularDocsItemStyled = styled.a `
49
45
  line-height: 1.33;
50
46
  margin-top: 0.3rem;
51
47
  }
52
- media ${device.mobile} {
53
- strong {
54
- font-size: 0.9rem;
55
- }
56
- }
57
48
  }
58
49
 
59
50
  .icon-left svg {
@@ -26,10 +26,6 @@ export const PopularDocsItemStyled = styled.a`
26
26
  margin-left: 0.5rem;
27
27
  }
28
28
 
29
- @media ${device.mobile} {
30
- gap: 1rem;
31
- }
32
-
33
29
  .category-icon svg {
34
30
  fill: var(--primary-main-dark-1);
35
31
  }
@@ -50,11 +46,6 @@ export const PopularDocsItemStyled = styled.a`
50
46
  line-height: 1.33;
51
47
  margin-top: 0.3rem;
52
48
  }
53
- media ${device.mobile} {
54
- strong {
55
- font-size: 0.9rem;
56
- }
57
- }
58
49
  }
59
50
 
60
51
  .icon-left svg {
@@ -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 = {
@@ -17,8 +17,6 @@ export const HowGetYourFormsSectionStyled = styled.section `
17
17
  font-family: var(--font-serif);
18
18
  text-align: center;
19
19
  padding-top: 4rem;
20
- padding-right: 1.5rem;
21
- padding-left: 1.5rem;
22
20
  @media only screen and (max-width: ${size.md}) {
23
21
  padding-top: 2.5rem;
24
22
  }
@@ -18,8 +18,6 @@ export const HowGetYourFormsSectionStyled = styled.section`
18
18
  font-family: var(--font-serif);
19
19
  text-align: center;
20
20
  padding-top: 4rem;
21
- padding-right: 1.5rem;
22
- padding-left: 1.5rem;
23
21
  @media only screen and (max-width: ${size.md}) {
24
22
  padding-top: 2.5rem;
25
23
  }
@@ -18,7 +18,7 @@ export const LearnMoreSectionStyled = styled.section `
18
18
 
19
19
  .learn-more__info {
20
20
  width: 100%;
21
- padding: 0 1.5rem;
21
+ padding: 0 1rem;
22
22
  display: flex;
23
23
  flex-flow: column wrap;
24
24
  justify-content: center;
@@ -19,7 +19,7 @@ export const LearnMoreSectionStyled = styled.section`
19
19
 
20
20
  .learn-more__info {
21
21
  width: 100%;
22
- padding: 0 1.5rem;
22
+ padding: 0 1rem;
23
23
  display: flex;
24
24
  flex-flow: column wrap;
25
25
  justify-content: center;
@@ -16,7 +16,6 @@ export const WhyLawDistrictSectionStyled = styled.section `
16
16
 
17
17
  .whyLawDistrictSection {
18
18
  &__title {
19
- padding: 0 1.5rem;
20
19
  @media ${device.laptop} {
21
20
  padding: 0;
22
21
  }
@@ -17,7 +17,6 @@ export const WhyLawDistrictSectionStyled = styled.section`
17
17
 
18
18
  .whyLawDistrictSection {
19
19
  &__title {
20
- padding: 0 1.5rem;
21
20
  @media ${device.laptop} {
22
21
  padding: 0;
23
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.10.1",
3
+ "version": "7.11.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",