@npm_leadtech/legal-lib-components 7.106.1 → 7.106.3

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 (97) hide show
  1. package/dist/images/BenefitsCheckout/benefits-ai.svg +3 -0
  2. package/dist/images/BenefitsCheckout/benefits-check.svg +3 -0
  3. package/dist/images/CheckoutSummary/checkout-summary-document-56586a.png +0 -0
  4. package/dist/images/SocialProofBar/social-proof-avatar-01-avatar-1.png +0 -0
  5. package/dist/images/SocialProofBar/social-proof-avatar-02-avatar-2.png +0 -0
  6. package/dist/images/SocialProofBar/social-proof-avatar-03-avatar-3.png +0 -0
  7. package/dist/images/SocialProofBar/social-proof-avatar-04-avatar-4.png +0 -0
  8. package/dist/images/SocialProofBar/social-proof-avatar-05-avatar-5.png +0 -0
  9. package/dist/images/SocialProofBar/social-proof-star.svg +3 -0
  10. package/dist/images/componentsSvg/__tests__/ArrowRight.test.tsx +25 -0
  11. package/dist/images/componentsSvg/__tests__/Balance.test.tsx +24 -0
  12. package/dist/images/componentsSvg/__tests__/ChevronExpandLess.test.tsx +18 -0
  13. package/dist/images/componentsSvg/__tests__/ChevronExpandMore.test.tsx +23 -0
  14. package/dist/images/componentsSvg/__tests__/ChevronRight.test.tsx +18 -0
  15. package/dist/images/componentsSvg/__tests__/ChevronRight24px.test.tsx +26 -0
  16. package/dist/images/componentsSvg/__tests__/CloseIcon.test.tsx +23 -0
  17. package/dist/images/componentsSvg/__tests__/Delete24p.test.tsx +25 -0
  18. package/dist/images/componentsSvg/__tests__/Done24px.test.tsx +24 -0
  19. package/dist/images/componentsSvg/__tests__/Done24pxoutlined.test.tsx +25 -0
  20. package/dist/images/componentsSvg/__tests__/Edit24p.test.tsx +25 -0
  21. package/dist/images/componentsSvg/__tests__/EditText24px.test.tsx +25 -0
  22. package/dist/images/componentsSvg/__tests__/EmploymentIcon.test.tsx +19 -0
  23. package/dist/images/componentsSvg/__tests__/Eye24pxOptimized.test.tsx +26 -0
  24. package/dist/images/componentsSvg/__tests__/GdprLockSvg.test.tsx +31 -0
  25. package/dist/images/componentsSvg/__tests__/IconDuplicate24px.test.tsx +25 -0
  26. package/dist/images/componentsSvg/__tests__/IconWeb.test.tsx +25 -0
  27. package/dist/images/componentsSvg/__tests__/InfoError24pxOutlined.test.tsx +28 -0
  28. package/dist/images/componentsSvg/__tests__/InfoLocationSvg.test.tsx +19 -0
  29. package/dist/images/componentsSvg/__tests__/InfoMailSvg.test.tsx +18 -0
  30. package/dist/images/componentsSvg/__tests__/InfoPhoneSvg.test.tsx +18 -0
  31. package/dist/images/componentsSvg/__tests__/LogoutSvg.test.tsx +25 -0
  32. package/dist/images/componentsSvg/__tests__/MailSvg.test.tsx +25 -0
  33. package/dist/images/componentsSvg/__tests__/MenuCollapse24p.test.tsx +28 -0
  34. package/dist/images/componentsSvg/__tests__/NewDocumentSvg.test.tsx +25 -0
  35. package/dist/images/componentsSvg/__tests__/NewRelease24p.test.tsx +24 -0
  36. package/dist/images/componentsSvg/__tests__/PhoneIcon.test.tsx +28 -0
  37. package/dist/images/componentsSvg/__tests__/PhoneIcon24px.test.tsx +29 -0
  38. package/dist/images/componentsSvg/__tests__/RatafiaIcon24px.test.tsx +24 -0
  39. package/dist/images/componentsSvg/__tests__/SearchIcon.test.tsx +25 -0
  40. package/dist/images/componentsSvg/__tests__/Sign24px.test.tsx +24 -0
  41. package/dist/images/componentsSvg/__tests__/SslShieldSvg.test.tsx +25 -0
  42. package/dist/images/componentsSvg/__tests__/SymbolDoc.test.tsx +28 -0
  43. package/dist/images/componentsSvg/__tests__/Time24px.test.tsx +24 -0
  44. package/dist/images/componentsSvg/flags/__tests__/CAFlag.test.tsx +26 -0
  45. package/dist/images/componentsSvg/flags/__tests__/DEFlag.test.tsx +30 -0
  46. package/dist/images/componentsSvg/flags/__tests__/GBFlag.test.tsx +28 -0
  47. package/dist/images/componentsSvg/flags/__tests__/USFlag.test.tsx +27 -0
  48. package/dist/images/componentsSvg/generalCategories/__tests__/BusinessIconCategory.test.tsx +25 -0
  49. package/dist/images/componentsSvg/generalCategories/__tests__/EmploymentIconCategory.test.tsx +24 -0
  50. package/dist/images/componentsSvg/generalCategories/__tests__/FinanceIconCategory.test.tsx +25 -0
  51. package/dist/images/componentsSvg/generalCategories/__tests__/PersonalFamilyIconCategory.test.tsx +26 -0
  52. package/dist/images/componentsSvg/generalCategories/__tests__/RealEstateIconCategory.test.tsx +25 -0
  53. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckout.d.ts +3 -0
  54. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckout.js +13 -0
  55. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckout.styled.d.ts +1 -0
  56. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckout.styled.js +56 -0
  57. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckout.styled.ts +58 -0
  58. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckout.tsx +34 -0
  59. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckoutProps.types.d.ts +10 -0
  60. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckoutProps.types.js +1 -0
  61. package/dist/src/components/molecules/BenefitsCheckout/BenefitsCheckoutProps.types.ts +12 -0
  62. package/dist/src/components/molecules/BenefitsCheckout/index.d.ts +2 -0
  63. package/dist/src/components/molecules/BenefitsCheckout/index.js +1 -0
  64. package/dist/src/components/molecules/BenefitsCheckout/index.ts +6 -0
  65. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummary.d.ts +3 -0
  66. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummary.js +24 -0
  67. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummary.styled.d.ts +1 -0
  68. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummary.styled.js +194 -0
  69. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummary.styled.ts +198 -0
  70. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummary.tsx +76 -0
  71. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummaryProps.types.d.ts +10 -0
  72. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummaryProps.types.js +1 -0
  73. package/dist/src/components/molecules/CheckoutSummary/CheckoutSummaryProps.types.ts +11 -0
  74. package/dist/src/components/molecules/CheckoutSummary/index.d.ts +2 -0
  75. package/dist/src/components/molecules/CheckoutSummary/index.js +1 -0
  76. package/dist/src/components/molecules/CheckoutSummary/index.ts +2 -0
  77. package/dist/src/components/molecules/SocialProofBar/SocialProofBar.d.ts +3 -0
  78. package/dist/src/components/molecules/SocialProofBar/SocialProofBar.js +11 -0
  79. package/dist/src/components/molecules/SocialProofBar/SocialProofBar.styled.d.ts +1 -0
  80. package/dist/src/components/molecules/SocialProofBar/SocialProofBar.styled.js +115 -0
  81. package/dist/src/components/molecules/SocialProofBar/SocialProofBar.styled.ts +117 -0
  82. package/dist/src/components/molecules/SocialProofBar/SocialProofBar.tsx +43 -0
  83. package/dist/src/components/molecules/SocialProofBar/SocialProofBarProps.types.d.ts +8 -0
  84. package/dist/src/components/molecules/SocialProofBar/SocialProofBarProps.types.js +1 -0
  85. package/dist/src/components/molecules/SocialProofBar/SocialProofBarProps.types.ts +8 -0
  86. package/dist/src/components/molecules/SocialProofBar/index.d.ts +2 -0
  87. package/dist/src/components/molecules/SocialProofBar/index.js +1 -0
  88. package/dist/src/components/molecules/SocialProofBar/index.ts +2 -0
  89. package/dist/src/components/molecules/index.d.ts +3 -0
  90. package/dist/src/components/molecules/index.js +3 -0
  91. package/dist/src/components/molecules/index.ts +3 -0
  92. package/dist/src/components/sections/AppHeader/AppHeader.styled.js +8 -0
  93. package/dist/src/components/sections/AppHeader/AppHeader.styled.ts +8 -0
  94. package/dist/src/components/sections/Header/Header.styled.js +0 -2
  95. package/dist/src/components/sections/Header/Header.styled.ts +0 -2
  96. package/dist/tsconfig.build.tsbuildinfo +1 -1
  97. package/package.json +4 -1
@@ -0,0 +1,115 @@
1
+ import styled from 'styled-components';
2
+ import { size } from '../../../globalStyles/breakpoints';
3
+ export const SocialProofBarStyled = styled.div `
4
+ box-sizing: border-box;
5
+ display: flex;
6
+ width: 100%;
7
+ align-items: center;
8
+ gap: 1rem;
9
+ padding: 1rem 1.5rem;
10
+ border-radius: 1rem;
11
+ background: var(--neutral-neutral-6);
12
+ font-family: var(--font-main);
13
+
14
+ .social-proof-bar {
15
+ &__avatars {
16
+ display: flex;
17
+ flex: 0 0 auto;
18
+ align-items: center;
19
+
20
+ img {
21
+ box-sizing: border-box;
22
+ display: block;
23
+ width: 2rem;
24
+ height: 2rem;
25
+ border: 1px solid var(--others-white);
26
+ border-radius: 50%;
27
+ object-fit: cover;
28
+
29
+ & + img {
30
+ margin-left: -0.75rem;
31
+ }
32
+ }
33
+ }
34
+
35
+ &__content {
36
+ display: flex;
37
+ min-width: 0;
38
+ flex: 1;
39
+ flex-direction: column;
40
+ justify-content: center;
41
+ }
42
+
43
+ &__header {
44
+ display: flex;
45
+ align-items: center;
46
+ gap: 0.5rem;
47
+ }
48
+
49
+ &__title {
50
+ color: var(--neutral-neutral-1);
51
+ font-size: 0.875rem;
52
+ font-weight: 700;
53
+ line-height: 1.125rem;
54
+ letter-spacing: -0.0214em;
55
+ }
56
+
57
+ &__rating {
58
+ display: inline-flex;
59
+ flex: 0 0 auto;
60
+ align-items: center;
61
+
62
+ img {
63
+ display: block;
64
+ width: 1.25rem;
65
+ height: 1.25rem;
66
+ }
67
+ }
68
+
69
+ &__activity {
70
+ margin: 0;
71
+ color: var(--neutral-neutral-2);
72
+ font-size: 0.75rem;
73
+ font-weight: 400;
74
+ line-height: 1rem;
75
+ letter-spacing: -0.025em;
76
+
77
+ strong {
78
+ font-weight: 700;
79
+ }
80
+ }
81
+ }
82
+
83
+ @media (max-width: ${size.tab}) {
84
+ gap: 0.5rem;
85
+ padding: 0.5rem;
86
+
87
+ .social-proof-bar {
88
+ &__avatars img {
89
+ width: 1.5rem;
90
+ height: 1.5rem;
91
+ }
92
+
93
+ &__header {
94
+ flex-wrap: wrap;
95
+ }
96
+
97
+ &__title {
98
+ font-size: 0.75rem;
99
+ line-height: 1rem;
100
+ letter-spacing: -0.025em;
101
+ }
102
+
103
+ &__rating img {
104
+ width: 1rem;
105
+ height: 1rem;
106
+ }
107
+
108
+ &__activity {
109
+ font-size: 0.625rem;
110
+ line-height: 0.875rem;
111
+ letter-spacing: -0.03em;
112
+ }
113
+ }
114
+ }
115
+ `;
@@ -0,0 +1,117 @@
1
+ import styled from 'styled-components'
2
+
3
+ import { size } from '../../../globalStyles/breakpoints'
4
+
5
+ export const SocialProofBarStyled = styled.div`
6
+ box-sizing: border-box;
7
+ display: flex;
8
+ width: 100%;
9
+ align-items: center;
10
+ gap: 1rem;
11
+ padding: 1rem 1.5rem;
12
+ border-radius: 1rem;
13
+ background: var(--neutral-neutral-6);
14
+ font-family: var(--font-main);
15
+
16
+ .social-proof-bar {
17
+ &__avatars {
18
+ display: flex;
19
+ flex: 0 0 auto;
20
+ align-items: center;
21
+
22
+ img {
23
+ box-sizing: border-box;
24
+ display: block;
25
+ width: 2rem;
26
+ height: 2rem;
27
+ border: 1px solid var(--others-white);
28
+ border-radius: 50%;
29
+ object-fit: cover;
30
+
31
+ & + img {
32
+ margin-left: -0.75rem;
33
+ }
34
+ }
35
+ }
36
+
37
+ &__content {
38
+ display: flex;
39
+ min-width: 0;
40
+ flex: 1;
41
+ flex-direction: column;
42
+ justify-content: center;
43
+ }
44
+
45
+ &__header {
46
+ display: flex;
47
+ align-items: center;
48
+ gap: 0.5rem;
49
+ }
50
+
51
+ &__title {
52
+ color: var(--neutral-neutral-1);
53
+ font-size: 0.875rem;
54
+ font-weight: 700;
55
+ line-height: 1.125rem;
56
+ letter-spacing: -0.0214em;
57
+ }
58
+
59
+ &__rating {
60
+ display: inline-flex;
61
+ flex: 0 0 auto;
62
+ align-items: center;
63
+
64
+ img {
65
+ display: block;
66
+ width: 1.25rem;
67
+ height: 1.25rem;
68
+ }
69
+ }
70
+
71
+ &__activity {
72
+ margin: 0;
73
+ color: var(--neutral-neutral-2);
74
+ font-size: 0.75rem;
75
+ font-weight: 400;
76
+ line-height: 1rem;
77
+ letter-spacing: -0.025em;
78
+
79
+ strong {
80
+ font-weight: 700;
81
+ }
82
+ }
83
+ }
84
+
85
+ @media (max-width: ${size.tab}) {
86
+ gap: 0.5rem;
87
+ padding: 0.5rem;
88
+
89
+ .social-proof-bar {
90
+ &__avatars img {
91
+ width: 1.5rem;
92
+ height: 1.5rem;
93
+ }
94
+
95
+ &__header {
96
+ flex-wrap: wrap;
97
+ }
98
+
99
+ &__title {
100
+ font-size: 0.75rem;
101
+ line-height: 1rem;
102
+ letter-spacing: -0.025em;
103
+ }
104
+
105
+ &__rating img {
106
+ width: 1rem;
107
+ height: 1rem;
108
+ }
109
+
110
+ &__activity {
111
+ font-size: 0.625rem;
112
+ line-height: 0.875rem;
113
+ letter-spacing: -0.03em;
114
+ }
115
+ }
116
+ }
117
+ `
@@ -0,0 +1,43 @@
1
+ import React, { type FC } from 'react'
2
+
3
+ import { type SocialProofBarProps } from './SocialProofBarProps.types'
4
+ import { SocialProofBarStyled } from './SocialProofBar.styled'
5
+ import avatar01 from '../../../../images/SocialProofBar/social-proof-avatar-01-avatar-1.png'
6
+ import avatar02 from '../../../../images/SocialProofBar/social-proof-avatar-02-avatar-2.png'
7
+ import avatar03 from '../../../../images/SocialProofBar/social-proof-avatar-03-avatar-3.png'
8
+ import avatar04 from '../../../../images/SocialProofBar/social-proof-avatar-04-avatar-4.png'
9
+ import avatar05 from '../../../../images/SocialProofBar/social-proof-avatar-05-avatar-5.png'
10
+ import ratingStar from '../../../../images/SocialProofBar/social-proof-star.svg'
11
+
12
+ const defaultAvatarImages = [avatar01, avatar02, avatar03, avatar04, avatar05]
13
+ const ratingStarIndices = [0, 1, 2, 3, 4]
14
+
15
+ export const SocialProofBar: FC<SocialProofBarProps> = ({
16
+ title,
17
+ documentCount,
18
+ activityText,
19
+ ratingLabel,
20
+ avatarImages = defaultAvatarImages,
21
+ className
22
+ }) => (
23
+ <SocialProofBarStyled className={['social-proof-bar', className].filter(Boolean).join(' ')}>
24
+ <div className='social-proof-bar__avatars' aria-hidden='true'>
25
+ {avatarImages.slice(0, 5).map((avatar, index) => (
26
+ <img key={`${index}-${avatar}`} src={avatar} alt='' />
27
+ ))}
28
+ </div>
29
+ <div className='social-proof-bar__content'>
30
+ <div className='social-proof-bar__header'>
31
+ <span className='social-proof-bar__title'>{title}</span>
32
+ <span className='social-proof-bar__rating' role='img' aria-label={ratingLabel}>
33
+ {ratingStarIndices.map((index) => (
34
+ <img key={index} src={ratingStar} alt='' />
35
+ ))}
36
+ </span>
37
+ </div>
38
+ <p className='social-proof-bar__activity'>
39
+ <strong>{documentCount}</strong> {activityText}
40
+ </p>
41
+ </div>
42
+ </SocialProofBarStyled>
43
+ )
@@ -0,0 +1,8 @@
1
+ export interface SocialProofBarProps {
2
+ title: string;
3
+ documentCount: string;
4
+ activityText: string;
5
+ ratingLabel: string;
6
+ avatarImages?: readonly string[];
7
+ className?: string;
8
+ }
@@ -0,0 +1,8 @@
1
+ export interface SocialProofBarProps {
2
+ title: string
3
+ documentCount: string
4
+ activityText: string
5
+ ratingLabel: string
6
+ avatarImages?: readonly string[]
7
+ className?: string
8
+ }
@@ -0,0 +1,2 @@
1
+ export { SocialProofBar } from './SocialProofBar';
2
+ export { type SocialProofBarProps } from './SocialProofBarProps.types';
@@ -0,0 +1 @@
1
+ export { SocialProofBar } from './SocialProofBar';
@@ -0,0 +1,2 @@
1
+ export { SocialProofBar } from './SocialProofBar'
2
+ export { type SocialProofBarProps } from './SocialProofBarProps.types'
@@ -5,11 +5,13 @@ export * from './AllTypeDocumentsItemMenu';
5
5
  export * from './Article';
6
6
  export * from './BaseBoxList';
7
7
  export * from './BenefitRatafiaCardList';
8
+ export * from './BenefitsCheckout';
8
9
  export * from './BottomFixedBar';
9
10
  export * from './BottomOverlay';
10
11
  export * from './BoxForm';
11
12
  export * from './Breadcrumb';
12
13
  export * from './ContactBox';
14
+ export * from './CheckoutSummary';
13
15
  export * from './ContactCardList';
14
16
  export * from './ContactInfo';
15
17
  export * from './ContactInfoBox';
@@ -47,6 +49,7 @@ export * from './SubscriptionCard';
47
49
  export * from './SignersStatusTooltipContent';
48
50
  export * from './Snackbar';
49
51
  export * from './SearchBar';
52
+ export * from './SocialProofBar';
50
53
  export * from './StepGetForm';
51
54
  export * from './StepRatafiaCardList';
52
55
  export * from './SubtypeDocumentCard';
@@ -5,11 +5,13 @@ export * from './AllTypeDocumentsItemMenu';
5
5
  export * from './Article';
6
6
  export * from './BaseBoxList';
7
7
  export * from './BenefitRatafiaCardList';
8
+ export * from './BenefitsCheckout';
8
9
  export * from './BottomFixedBar';
9
10
  export * from './BottomOverlay';
10
11
  export * from './BoxForm';
11
12
  export * from './Breadcrumb';
12
13
  export * from './ContactBox';
14
+ export * from './CheckoutSummary';
13
15
  export * from './ContactCardList';
14
16
  export * from './ContactInfo';
15
17
  export * from './ContactInfoBox';
@@ -47,6 +49,7 @@ export * from './SubscriptionCard';
47
49
  export * from './SignersStatusTooltipContent';
48
50
  export * from './Snackbar';
49
51
  export * from './SearchBar';
52
+ export * from './SocialProofBar';
50
53
  export * from './StepGetForm';
51
54
  export * from './StepRatafiaCardList';
52
55
  export * from './SubtypeDocumentCard';
@@ -5,11 +5,13 @@ export * from './AllTypeDocumentsItemMenu'
5
5
  export * from './Article'
6
6
  export * from './BaseBoxList'
7
7
  export * from './BenefitRatafiaCardList'
8
+ export * from './BenefitsCheckout'
8
9
  export * from './BottomFixedBar'
9
10
  export * from './BottomOverlay'
10
11
  export * from './BoxForm'
11
12
  export * from './Breadcrumb'
12
13
  export * from './ContactBox'
14
+ export * from './CheckoutSummary'
13
15
  export * from './ContactCardList'
14
16
  export * from './ContactInfo'
15
17
  export * from './ContactInfoBox'
@@ -47,6 +49,7 @@ export * from './SubscriptionCard'
47
49
  export * from './SignersStatusTooltipContent'
48
50
  export * from './Snackbar'
49
51
  export * from './SearchBar'
52
+ export * from './SocialProofBar'
50
53
  export * from './StepGetForm'
51
54
  export * from './StepRatafiaCardList'
52
55
  export * from './SubtypeDocumentCard'
@@ -32,4 +32,12 @@ export const AppHeaderWrapper = styled.span `
32
32
  justify-content: space-between;
33
33
  align-items: center;
34
34
  padding: 1rem 1.5rem 1rem 1.5rem;
35
+
36
+ .header__logo {
37
+ height: 1.375rem;
38
+
39
+ img {
40
+ height: 1.375rem;
41
+ }
42
+ }
35
43
  `;
@@ -33,4 +33,12 @@ export const AppHeaderWrapper = styled.span`
33
33
  justify-content: space-between;
34
34
  align-items: center;
35
35
  padding: 1rem 1.5rem 1rem 1.5rem;
36
+
37
+ .header__logo {
38
+ height: 1.375rem;
39
+
40
+ img {
41
+ height: 1.375rem;
42
+ }
43
+ }
36
44
  `
@@ -90,10 +90,8 @@ export const HeaderStyled = styled.header `
90
90
  .header__logo {
91
91
  z-index: 200;
92
92
  min-width: max-content;
93
- height: 1.375rem;
94
93
 
95
94
  img {
96
- height: 1.375rem;
97
95
  @media (max-width: 1024px) {
98
96
  width: 141px;
99
97
  height: auto;
@@ -91,10 +91,8 @@ export const HeaderStyled = styled.header`
91
91
  .header__logo {
92
92
  z-index: 200;
93
93
  min-width: max-content;
94
- height: 1.375rem;
95
94
 
96
95
  img {
97
- height: 1.375rem;
98
96
  @media (max-width: 1024px) {
99
97
  width: 141px;
100
98
  height: auto;