@npm_leadtech/legal-lib-components 7.63.6 → 7.63.9

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,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { FeatureCard } from './FeatureItem.styled';
3
3
  export const FeatureItem = ({ feature }) => {
4
- return (_jsxs(FeatureCard, { children: [_jsx("img", { src: feature?.icon?.url, alt: 'Feature Icon', width: 16, height: 16 }), _jsx("span", { children: feature?.description })] }));
4
+ return (_jsxs(FeatureCard, { children: [_jsx("img", { className: 'feature-icon', src: feature?.icon?.url, alt: 'Feature Icon', width: 16, height: 16 }), _jsx("span", { className: 'feature-description', children: feature?.description })] }));
5
5
  };
@@ -7,11 +7,11 @@ export const FeatureCard = styled.li `
7
7
  border-radius: 1rem;
8
8
  background-color: white;
9
9
 
10
- img {
10
+ .feature-icon {
11
11
  margin-bottom: 0.5rem;
12
12
  }
13
13
 
14
- span {
14
+ .feature-description {
15
15
  font-size: 14px;
16
16
  font-weight: 400;
17
17
  }
@@ -8,11 +8,11 @@ export const FeatureCard = styled.li`
8
8
  border-radius: 1rem;
9
9
  background-color: white;
10
10
 
11
- img {
11
+ .feature-icon {
12
12
  margin-bottom: 0.5rem;
13
13
  }
14
14
 
15
- span {
15
+ .feature-description {
16
16
  font-size: 14px;
17
17
  font-weight: 400;
18
18
  }
@@ -5,8 +5,8 @@ import React from 'react'
5
5
  export const FeatureItem: React.FC<FeatureItemProps> = ({ feature }) => {
6
6
  return (
7
7
  <FeatureCard>
8
- <img src={feature?.icon?.url} alt='Feature Icon' width={16} height={16} />
9
- <span>{feature?.description}</span>
8
+ <img className='feature-icon' src={feature?.icon?.url} alt='Feature Icon' width={16} height={16} />
9
+ <span className='feature-description'>{feature?.description}</span>
10
10
  </FeatureCard>
11
11
  )
12
12
  }
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Benefit, BenefitsList, Divider, PlanCardContainer, PlanTitle, Price, PriceLabel, PricingInfo } from './PlanCard.styled';
3
3
  import { Button } from '../Button';
4
4
  export const PlanCard = ({ plan, onSelect }) => {
5
- return (_jsxs(PlanCardContainer, { children: [_jsx(PlanTitle, { className: plan?.highlightPlan ? 'highlight' : 'asdfasdf', children: plan?.subscription_type?.name }), _jsxs(PricingInfo, { children: [_jsx(Price, { children: plan?.pricing }), _jsx(PriceLabel, { children: plan?.pricingLabel })] }), _jsx(Button, { label: plan?.buttonText ?? '', dataQa: `${plan?.subscription_type?.name.replaceAll(' ', '')}-button`, noLink: true, onClick: () => onSelect?.(plan?.subscription_type?.sku ?? ''), givenClass: 'pricing-plan__button', color: plan?.highlightPlan ? 'primary' : 'transparent' }), _jsx(Divider, {}), _jsx(BenefitsList, { children: plan?.benefits?.map((item) => (_jsxs(Benefit, { className: item?.type == 'default' ? 'default' : 'ai-benefit', children: [item?.icon, _jsx("p", { dangerouslySetInnerHTML: { __html: item?.benefit } })] }, item?.benefit))) })] }));
5
+ return (_jsxs(PlanCardContainer, { children: [_jsx(PlanTitle, { className: plan?.highlightPlan ? 'highlight' : 'asdfasdf', children: plan?.subscription_type?.name }), _jsxs(PricingInfo, { children: [_jsx(Price, { children: plan?.pricing }), _jsx(PriceLabel, { children: plan?.pricingLabel })] }), _jsx(Button, { label: plan?.buttonText ?? '', dataQa: `${plan?.subscription_type?.name.replaceAll(' ', '')}-button`, noLink: true, onClick: () => onSelect?.(plan?.subscription_type?.sku ?? ''), givenClass: 'pricing-plan__button', color: plan?.highlightPlan ? 'primary' : 'transparent' }), _jsx(Divider, {}), _jsx(BenefitsList, { children: plan?.benefits?.map((item) => (_jsxs(Benefit, { className: item?.type == 'default' ? 'default' : 'ai-benefit', children: [item?.icon, _jsx("p", { className: 'benefit-text', dangerouslySetInnerHTML: { __html: item?.benefit } })] }, item?.benefit))) })] }));
6
6
  };
@@ -60,7 +60,7 @@ export const Benefit = styled.li `
60
60
  border-radius: 0.5rem;
61
61
  }
62
62
 
63
- p {
63
+ .benefit-text {
64
64
  text-align: left;
65
65
  font-size: 14px;
66
66
  }
@@ -68,7 +68,7 @@ export const Benefit = styled.li`
68
68
  border-radius: 0.5rem;
69
69
  }
70
70
 
71
- p {
71
+ .benefit-text {
72
72
  text-align: left;
73
73
  font-size: 14px;
74
74
  }
@@ -33,7 +33,7 @@ export const PlanCard: React.FC<PlanCardProps> = ({ plan, onSelect }) => {
33
33
  {plan?.benefits?.map((item) => (
34
34
  <Benefit key={item?.benefit} className={item?.type == 'default' ? 'default' : 'ai-benefit'}>
35
35
  {item?.icon}
36
- <p dangerouslySetInnerHTML={{ __html: item?.benefit }}></p>
36
+ <p className='benefit-text' dangerouslySetInnerHTML={{ __html: item?.benefit }}></p>
37
37
  </Benefit>
38
38
  ))}
39
39
  </BenefitsList>
@@ -1,3 +1,4 @@
1
+ import { size } from '../../../globalStyles/breakpoints';
1
2
  import styled from 'styled-components';
2
3
  export const PricingHeaderStyled = styled.header `
3
4
  display: flex;
@@ -17,7 +18,7 @@ export const PhoneButtonStyled = styled.a `
17
18
  border: 1px solid var(--neutral-neutral-4);
18
19
  font-size: 14px;
19
20
  color: var(--primary-main);
20
- @media (max-width: 768px) {
21
+ @media (max-width: ${size.tab}) {
21
22
  display: flex;
22
23
  }
23
24
  `;
@@ -28,7 +29,7 @@ export const PhoneNumberStyled = styled.div `
28
29
  color: var(--neutral-neutral-2);
29
30
  height: 2.5rem;
30
31
 
31
- @media (max-width: 768px) {
32
+ @media (max-width: ${size.tab}) {
32
33
  display: none;
33
34
  }
34
35
  `;
@@ -1,3 +1,4 @@
1
+ import { size } from '../../../globalStyles/breakpoints'
1
2
  import styled from 'styled-components'
2
3
 
3
4
  export const PricingHeaderStyled = styled.header`
@@ -19,7 +20,7 @@ export const PhoneButtonStyled = styled.a`
19
20
  border: 1px solid var(--neutral-neutral-4);
20
21
  font-size: 14px;
21
22
  color: var(--primary-main);
22
- @media (max-width: 768px) {
23
+ @media (max-width: ${size.tab}) {
23
24
  display: flex;
24
25
  }
25
26
  `
@@ -31,7 +32,7 @@ export const PhoneNumberStyled = styled.div`
31
32
  color: var(--neutral-neutral-2);
32
33
  height: 2.5rem;
33
34
 
34
- @media (max-width: 768px) {
35
+ @media (max-width: ${size.tab}) {
35
36
  display: none;
36
37
  }
37
38
  `
@@ -1,4 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
+ import { size } from '../../../globalStyles/breakpoints';
2
3
  export const PricingContainerStyled = styled.section `
3
4
  margin: 0 auto 0 auto;
4
5
  display: flex;
@@ -17,7 +18,7 @@ export const PlanSelector = styled.div `
17
18
  border-radius: 1rem;
18
19
  padding: 0.5rem;
19
20
 
20
- @media (min-width: 768px) {
21
+ @media (min-width: ${size.tab}) {
21
22
  display: none;
22
23
  }
23
24
  `;
@@ -47,7 +48,7 @@ export const PlansWrapper = styled.div `
47
48
  width: 100%;
48
49
  max-width: 327px;
49
50
 
50
- @media (min-width: 768px) {
51
+ @media (min-width: ${size.tab}) {
51
52
  max-width: none;
52
53
  gap: 20px;
53
54
  }
@@ -64,7 +65,7 @@ export const PlanWrapper = styled.div `
64
65
  border: 2px solid var(--primary-main);
65
66
  `}
66
67
 
67
- @media (min-width: 768px) {
68
+ @media (min-width: ${size.tab}) {
68
69
  display: block;
69
70
  max-width: none;
70
71
  }
@@ -80,7 +81,7 @@ export const FeaturesGrid = styled.ul `
80
81
  padding: 0;
81
82
  margin: 0;
82
83
 
83
- @media (min-width: 768px) {
84
+ @media (min-width: ${size.tab}) {
84
85
  display: flex;
85
86
  justify-content: center;
86
87
  }
@@ -1,4 +1,5 @@
1
1
  import styled, { css } from 'styled-components'
2
+ import { size } from '../../../globalStyles/breakpoints'
2
3
 
3
4
  type PlanWrapperProps = {
4
5
  isActive: boolean
@@ -29,7 +30,7 @@ export const PlanSelector = styled.div`
29
30
  border-radius: 1rem;
30
31
  padding: 0.5rem;
31
32
 
32
- @media (min-width: 768px) {
33
+ @media (min-width: ${size.tab}) {
33
34
  display: none;
34
35
  }
35
36
  `
@@ -62,7 +63,7 @@ export const PlansWrapper = styled.div`
62
63
  width: 100%;
63
64
  max-width: 327px;
64
65
 
65
- @media (min-width: 768px) {
66
+ @media (min-width: ${size.tab}) {
66
67
  max-width: none;
67
68
  gap: 20px;
68
69
  }
@@ -81,7 +82,7 @@ export const PlanWrapper = styled.div<PlanWrapperProps>`
81
82
  border: 2px solid var(--primary-main);
82
83
  `}
83
84
 
84
- @media (min-width: 768px) {
85
+ @media (min-width: ${size.tab}) {
85
86
  display: block;
86
87
  max-width: none;
87
88
  }
@@ -99,7 +100,7 @@ export const FeaturesGrid = styled.ul`
99
100
  padding: 0;
100
101
  margin: 0;
101
102
 
102
- @media (min-width: 768px) {
103
+ @media (min-width: ${size.tab}) {
103
104
  display: flex;
104
105
  justify-content: center;
105
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.63.6",
3
+ "version": "7.63.9",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",