@npm_leadtech/legal-lib-components 7.17.22 → 7.18.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 (66) hide show
  1. package/dist/images/componentsSvg/InfoLocationSvg.d.ts +2 -0
  2. package/dist/images/componentsSvg/InfoLocationSvg.js +4 -0
  3. package/dist/images/componentsSvg/InfoLocationSvg.tsx +14 -0
  4. package/dist/images/componentsSvg/InfoMailSvg.d.ts +2 -0
  5. package/dist/images/componentsSvg/InfoMailSvg.js +4 -0
  6. package/dist/images/componentsSvg/InfoMailSvg.tsx +12 -0
  7. package/dist/images/componentsSvg/InfoPhoneSvg.d.ts +2 -0
  8. package/dist/images/componentsSvg/InfoPhoneSvg.js +4 -0
  9. package/dist/images/componentsSvg/InfoPhoneSvg.tsx +12 -0
  10. package/dist/src/components/atoms/CardPane/CardPane.styled.js +1 -1
  11. package/dist/src/components/atoms/CardPane/CardPane.styled.ts +1 -1
  12. package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.js +1 -1
  13. package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.ts +1 -1
  14. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.d.ts +3 -0
  15. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.js +6 -0
  16. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.d.ts +1 -0
  17. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.js +23 -0
  18. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.ts +24 -0
  19. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.tsx +15 -0
  20. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.d.ts +4 -0
  21. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.js +1 -0
  22. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.ts +4 -0
  23. package/dist/src/components/molecules/ContactInfoBox/index.d.ts +2 -0
  24. package/dist/src/components/molecules/ContactInfoBox/index.js +1 -0
  25. package/dist/src/components/molecules/ContactInfoBox/index.ts +2 -0
  26. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.d.ts +3 -0
  27. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.js +6 -0
  28. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.d.ts +1 -0
  29. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.js +23 -0
  30. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.ts +24 -0
  31. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.tsx +15 -0
  32. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.d.ts +4 -0
  33. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.js +1 -0
  34. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.ts +4 -0
  35. package/dist/src/components/molecules/ContactInfoBoxMobile/index.d.ts +2 -0
  36. package/dist/src/components/molecules/ContactInfoBoxMobile/index.js +1 -0
  37. package/dist/src/components/molecules/ContactInfoBoxMobile/index.ts +2 -0
  38. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.d.ts +3 -0
  39. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.js +19 -0
  40. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.d.ts +1 -0
  41. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.js +77 -0
  42. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.ts +78 -0
  43. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.tsx +58 -0
  44. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.d.ts +7 -0
  45. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.js +1 -0
  46. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.ts +8 -0
  47. package/dist/src/components/molecules/ContactInfoCard/index.d.ts +2 -0
  48. package/dist/src/components/molecules/ContactInfoCard/index.js +2 -0
  49. package/dist/src/components/molecules/ContactInfoCard/index.ts +2 -0
  50. package/dist/src/components/molecules/index.d.ts +2 -0
  51. package/dist/src/components/molecules/index.js +2 -0
  52. package/dist/src/components/molecules/index.ts +2 -0
  53. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +3 -3
  54. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.js +0 -1
  55. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.ts +0 -1
  56. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +4 -6
  57. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.d.ts +2 -3
  58. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.ts +2 -4
  59. package/dist/src/components/pages/ContactUsPage/ContactUsPage.js +3 -3
  60. package/dist/src/components/pages/ContactUsPage/ContactUsPage.tsx +3 -3
  61. package/dist/src/components/pages/ContactUsPage/ContactUsPageProps.d.ts +2 -2
  62. package/dist/src/components/pages/ContactUsPage/ContactUsPageProps.ts +2 -2
  63. package/dist/src/components/sections/ContactSection/ContactSection.styled.js +2 -0
  64. package/dist/src/components/sections/ContactSection/ContactSection.styled.ts +2 -0
  65. package/dist/tsconfig.build.tsbuildinfo +1 -1
  66. package/package.json +1 -1
@@ -12,6 +12,8 @@ export * from './Breadcrumb';
12
12
  export * from './ContactBox';
13
13
  export * from './ContactCardList';
14
14
  export * from './ContactInfo';
15
+ export * from './ContactInfoBox';
16
+ export * from './ContactInfoBoxMobile';
15
17
  export * from './ContinueEditingBanner';
16
18
  export * from './CountDownMessage';
17
19
  export * from './DocumentListMenuSection';
@@ -12,6 +12,8 @@ export * from './Breadcrumb';
12
12
  export * from './ContactBox';
13
13
  export * from './ContactCardList';
14
14
  export * from './ContactInfo';
15
+ export * from './ContactInfoBox';
16
+ export * from './ContactInfoBoxMobile';
15
17
  export * from './ContinueEditingBanner';
16
18
  export * from './CountDownMessage';
17
19
  export * from './DocumentListMenuSection';
@@ -12,6 +12,8 @@ export * from './Breadcrumb'
12
12
  export * from './ContactBox'
13
13
  export * from './ContactCardList'
14
14
  export * from './ContactInfo'
15
+ export * from './ContactInfoBox'
16
+ export * from './ContactInfoBoxMobile'
15
17
  export * from './ContinueEditingBanner'
16
18
  export * from './CountDownMessage'
17
19
  export * from './DocumentListMenuSection'
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { EmailContactBox, PhoneContactBoxDesktop } from '../../molecules';
3
2
  import { Button } from '../../atoms';
3
+ import { ContactInfoBox } from '../../molecules/ContactInfoBox';
4
4
  import { ContactJumbotronStyled } from './ContactJumbotron.styled';
5
- export const ContactJumbotron = ({ phoneBoxDesktopProps, emailContactBoxProps, faqsTitle, visitFaqPageLabel, children, isJonSnow = false }) => {
6
- return (_jsxs(ContactJumbotronStyled, { children: [!isJonSnow && _jsx(PhoneContactBoxDesktop, { ...phoneBoxDesktopProps }), _jsx("h2", { className: 'contact__text__title sans-serif', children: faqsTitle }), _jsx("div", { className: 'contact__text__subtitle sans-serif', children: children }), !isJonSnow && (_jsx(Button, { givenClass: 'faq-button', color: 'secondary', label: visitFaqPageLabel, link: '/faqs/', dataQa: 'visitFaq' })), _jsx(EmailContactBox, { ...emailContactBoxProps })] }));
5
+ export const ContactJumbotron = ({ faqsTitle, visitFaqPageLabel, children, isJonSnow = false, items }) => {
6
+ return (_jsxs(ContactJumbotronStyled, { children: [_jsx(ContactInfoBox, { items: items }), _jsx("h2", { className: 'contact__text__title sans-serif', children: faqsTitle }), _jsx("div", { className: 'contact__text__subtitle sans-serif', children: children }), !isJonSnow && (_jsx(Button, { givenClass: 'faq-button', color: 'secondary', label: visitFaqPageLabel, link: '/faqs/', dataQa: 'visitFaq' }))] }));
7
7
  };
@@ -35,7 +35,6 @@ export const ContactJumbotronStyled = styled.article `
35
35
  .faq-button {
36
36
  display: inline-block;
37
37
  margin-top: 1rem;
38
- width: 100%;
39
38
  @media ${device['portrait-tablets']} {
40
39
  width: 10rem;
41
40
  }
@@ -36,7 +36,6 @@ export const ContactJumbotronStyled = styled.article`
36
36
  .faq-button {
37
37
  display: inline-block;
38
38
  margin-top: 1rem;
39
- width: 100%;
40
39
  @media ${device['portrait-tablets']} {
41
40
  width: 10rem;
42
41
  }
@@ -1,21 +1,20 @@
1
1
  import React from 'react'
2
2
 
3
- import { EmailContactBox, PhoneContactBoxDesktop } from '../../molecules'
4
3
  import { Button } from '../../atoms'
4
+ import { ContactInfoBox } from '../../molecules/ContactInfoBox'
5
5
  import { type ContactJumbotronProps } from './ContactJumbotronProps.types'
6
6
  import { ContactJumbotronStyled } from './ContactJumbotron.styled'
7
7
 
8
8
  export const ContactJumbotron: React.FC<ContactJumbotronProps> = ({
9
- phoneBoxDesktopProps,
10
- emailContactBoxProps,
11
9
  faqsTitle,
12
10
  visitFaqPageLabel,
13
11
  children,
14
- isJonSnow = false
12
+ isJonSnow = false,
13
+ items
15
14
  }) => {
16
15
  return (
17
16
  <ContactJumbotronStyled>
18
- {!isJonSnow && <PhoneContactBoxDesktop {...phoneBoxDesktopProps} />}
17
+ <ContactInfoBox items={items} />
19
18
  <h2 className='contact__text__title sans-serif'>{faqsTitle}</h2>
20
19
  <div className='contact__text__subtitle sans-serif'>{children}</div>
21
20
  {!isJonSnow && (
@@ -27,7 +26,6 @@ export const ContactJumbotron: React.FC<ContactJumbotronProps> = ({
27
26
  dataQa={'visitFaq'}
28
27
  />
29
28
  )}
30
- <EmailContactBox {...emailContactBoxProps} />
31
29
  </ContactJumbotronStyled>
32
30
  )
33
31
  }
@@ -1,10 +1,9 @@
1
+ import { ContactInfoCardProps } from 'src/components/molecules/ContactInfoCard';
1
2
  import type React from 'react';
2
- import { type EmailContactBoxProps, type PhoneContactBoxDesktopProps } from '../../molecules';
3
3
  export interface ContactJumbotronProps {
4
- phoneBoxDesktopProps: PhoneContactBoxDesktopProps;
5
- emailContactBoxProps: EmailContactBoxProps;
6
4
  faqsTitle: string;
7
5
  visitFaqPageLabel: string;
8
6
  children: React.ReactNode;
9
7
  isJonSnow?: boolean;
8
+ items: ContactInfoCardProps[];
10
9
  }
@@ -1,12 +1,10 @@
1
+ import { ContactInfoCardProps } from 'src/components/molecules/ContactInfoCard'
1
2
  import type React from 'react'
2
3
 
3
- import { type EmailContactBoxProps, type PhoneContactBoxDesktopProps } from '../../molecules'
4
-
5
4
  export interface ContactJumbotronProps {
6
- phoneBoxDesktopProps: PhoneContactBoxDesktopProps
7
- emailContactBoxProps: EmailContactBoxProps
8
5
  faqsTitle: string
9
6
  visitFaqPageLabel: string
10
7
  children: React.ReactNode
11
8
  isJonSnow?: boolean
9
+ items: ContactInfoCardProps[]
12
10
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ContactSection, JumbotronSimplifiedSection } from '../../sections';
3
- import { PhoneContactBoxMobile } from '../../molecules';
4
- export const ContactUsPage = ({ jumbotronSimplifiedSectionProps, phoneContactBox, contactProps, isJonSnow = false }) => {
5
- return (_jsxs(_Fragment, { children: [_jsx(JumbotronSimplifiedSection, { ...jumbotronSimplifiedSectionProps }), !isJonSnow && _jsx(PhoneContactBoxMobile, { ...phoneContactBox }), _jsx(ContactSection, { ...contactProps })] }));
3
+ import { ContactInfoBoxMobile } from '../../molecules';
4
+ export const ContactUsPage = ({ jumbotronSimplifiedSectionProps, contactInfoBoxMobileProps, contactProps, isJonSnow = false }) => {
5
+ return (_jsxs(_Fragment, { children: [_jsx(JumbotronSimplifiedSection, { ...jumbotronSimplifiedSectionProps }), !isJonSnow && _jsx(ContactInfoBoxMobile, { ...contactInfoBoxMobileProps }), _jsx(ContactSection, { ...contactProps })] }));
6
6
  };
@@ -1,19 +1,19 @@
1
1
  import React from 'react'
2
2
 
3
3
  import { ContactSection, JumbotronSimplifiedSection } from '../../sections'
4
+ import { ContactInfoBoxMobile } from '../../molecules'
4
5
  import { type ContactUsPageProps } from './ContactUsPageProps'
5
- import { PhoneContactBoxMobile } from '../../molecules'
6
6
 
7
7
  export const ContactUsPage: React.FC<ContactUsPageProps> = ({
8
8
  jumbotronSimplifiedSectionProps,
9
- phoneContactBox,
9
+ contactInfoBoxMobileProps,
10
10
  contactProps,
11
11
  isJonSnow = false
12
12
  }) => {
13
13
  return (
14
14
  <>
15
15
  <JumbotronSimplifiedSection {...jumbotronSimplifiedSectionProps} />
16
- {!isJonSnow && <PhoneContactBoxMobile {...phoneContactBox} />}
16
+ {!isJonSnow && <ContactInfoBoxMobile {...contactInfoBoxMobileProps} />}
17
17
  <ContactSection {...contactProps} />
18
18
  </>
19
19
  )
@@ -1,8 +1,8 @@
1
1
  import { type ContactSectionProps, type JumbotronSimplifiedSectionProps } from '../../sections';
2
- import { type PhoneContactBoxMobileProps } from '../../molecules';
2
+ import { ContactInfoBoxMobileProps } from 'src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types';
3
3
  export interface ContactUsPageProps {
4
4
  jumbotronSimplifiedSectionProps: JumbotronSimplifiedSectionProps;
5
- phoneContactBox: PhoneContactBoxMobileProps;
5
+ contactInfoBoxMobileProps: ContactInfoBoxMobileProps;
6
6
  contactProps: ContactSectionProps;
7
7
  isJonSnow?: boolean;
8
8
  }
@@ -1,9 +1,9 @@
1
1
  import { type ContactSectionProps, type JumbotronSimplifiedSectionProps } from '../../sections'
2
- import { type PhoneContactBoxMobileProps } from '../../molecules'
2
+ import { ContactInfoBoxMobileProps } from 'src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types'
3
3
 
4
4
  export interface ContactUsPageProps {
5
5
  jumbotronSimplifiedSectionProps: JumbotronSimplifiedSectionProps
6
- phoneContactBox: PhoneContactBoxMobileProps
6
+ contactInfoBoxMobileProps: ContactInfoBoxMobileProps
7
7
  contactProps: ContactSectionProps
8
8
  isJonSnow?: boolean
9
9
  }
@@ -30,10 +30,12 @@ export const ContactSectionStyled = styled.section `
30
30
  .contact-left-container {
31
31
  padding-left: 1.5rem;
32
32
  padding-right: 1.5rem;
33
+ margin-bottom: 2.5rem;
33
34
 
34
35
  @media ${device['portrait-tablets']} {
35
36
  padding-left: 0;
36
37
  padding-right: 0;
38
+ margin-bottom: 1.5rem;
37
39
  width: 45%;
38
40
  }
39
41
  }
@@ -31,10 +31,12 @@ export const ContactSectionStyled = styled.section`
31
31
  .contact-left-container {
32
32
  padding-left: 1.5rem;
33
33
  padding-right: 1.5rem;
34
+ margin-bottom: 2.5rem;
34
35
 
35
36
  @media ${device['portrait-tablets']} {
36
37
  padding-left: 0;
37
38
  padding-right: 0;
39
+ margin-bottom: 1.5rem;
38
40
  width: 45%;
39
41
  }
40
42
  }