@npm_leadtech/legal-lib-components 7.0.8 → 7.0.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.
@@ -6,5 +6,5 @@ import { PricingPageStyled } from './PricingPage.styled';
6
6
  export const PricingPage = ({ benefitsContent, faqsContent, helpResourcesCards, pricingPlanContent, pricingSection, supportContent }) => {
7
7
  return (_jsxs(PricingPageStyled, { children: [pricingSection != null && _jsx(HeroSection, { ...pricingSection }), _jsxs("div", { className: 'pricing-plans wrapper wrapper--responsive', children: [pricingPlanContent?.title && _jsx("div", { className: 'pricing-plans__title', children: pricingPlanContent.title }), _jsx("div", { className: 'pricing-plans__cards', children: pricingPlanContent?.plans?.length > 0 &&
8
8
  pricingPlanContent?.plans?.map((plan) => _jsx(PlanBoxPricingSubscriptionCard, { ...plan }, plan?.id)) })] }), _jsx(CardBoxMinimalSection, { cards: helpResourcesCards }), _jsxs("div", { className: 'benefits wrapper wrapper--responsive', children: [benefitsContent?.title && _jsx("div", { className: 'benefits__title', children: benefitsContent.title }), _jsx("div", { className: 'benefits__cards', children: benefitsContent?.benefitsList?.length > 0 &&
9
- benefitsContent?.benefitsList?.map((card) => _jsx(BenefitCard, { hasShadow: false, ...card }, card?.id)) })] }), _jsxs("div", { className: 'support-section', children: [supportContent?.title && (_jsxs("div", { className: 'support-section__content', children: [_jsx("h2", { children: supportContent.title }), supportContent.description] })), _jsx(CardBoxFeaturedSection, { cards: supportContent.benefitsList })] }), _jsx("div", { className: 'faqs-section', children: _jsx(FaqSection, { groups: faqsContent?.faqItems, givenClass: 'faqs-section__content wrapper wrapper--responsive' }) })] }));
9
+ benefitsContent?.benefitsList?.map((card) => _jsx(BenefitCard, { hasShadow: false, ...card }, card?.id)) })] }), _jsxs("div", { className: 'support-section', children: [supportContent?.title && (_jsxs("div", { className: 'support-section__content', children: [_jsx("h2", { children: supportContent.title }), supportContent.description] })), _jsx(CardBoxFeaturedSection, { cards: supportContent?.benefitsList })] }), _jsx("div", { className: 'faqs-section', children: _jsx(FaqSection, { groups: faqsContent?.faqItems, givenClass: 'faqs-section__content wrapper wrapper--responsive' }) })] }));
10
10
  };
@@ -39,7 +39,7 @@ export const PricingPage: React.FC<PricingPageProps> = ({
39
39
  {supportContent.description}
40
40
  </div>
41
41
  )}
42
- <CardBoxFeaturedSection cards={supportContent.benefitsList} />
42
+ <CardBoxFeaturedSection cards={supportContent?.benefitsList} />
43
43
  </div>
44
44
  <div className='faqs-section'>
45
45
  <FaqSection groups={faqsContent?.faqItems} givenClass='faqs-section__content wrapper wrapper--responsive' />
@@ -2,28 +2,27 @@ import { BenefitCardProps, CardBoxProps } from 'src/components/atoms';
2
2
  import { FaqGroupProps } from 'src/components/organisms';
3
3
  import { HeroSectionProps } from 'src/components/sections';
4
4
  import { PlanBoxPricingSubscriptionCardProps } from 'src/components/molecules';
5
- interface BenefitContent {
5
+ export interface BenefitContentProps {
6
6
  title: string;
7
7
  benefitsList: BenefitCardProps[];
8
8
  }
9
- interface FaqsContent {
9
+ export interface FaqsContentProps {
10
10
  faqItems: FaqGroupProps[];
11
11
  }
12
- interface PricingPlanContent {
12
+ export interface PricingPlanContentProps {
13
13
  title: string;
14
14
  plans: PlanBoxPricingSubscriptionCardProps[];
15
15
  }
16
- interface SupportContent {
16
+ export interface SupportContentProps {
17
17
  title: string;
18
18
  description: string;
19
19
  benefitsList: CardBoxProps[];
20
20
  }
21
21
  export interface PricingPageProps {
22
- benefitsContent: BenefitContent;
23
- faqsContent: FaqsContent;
22
+ benefitsContent: BenefitContentProps;
23
+ faqsContent: FaqsContentProps;
24
24
  helpResourcesCards: CardBoxProps[];
25
- supportContent: SupportContent;
26
- pricingPlanContent: PricingPlanContent;
25
+ supportContent: SupportContentProps;
26
+ pricingPlanContent: PricingPlanContentProps;
27
27
  pricingSection: HeroSectionProps;
28
28
  }
29
- export {};
@@ -3,31 +3,31 @@ import { FaqGroupProps } from 'src/components/organisms'
3
3
  import { HeroSectionProps } from 'src/components/sections'
4
4
  import { PlanBoxPricingSubscriptionCardProps } from 'src/components/molecules'
5
5
 
6
- interface BenefitContent {
6
+ export interface BenefitContentProps {
7
7
  title: string
8
8
  benefitsList: BenefitCardProps[]
9
9
  }
10
10
 
11
- interface FaqsContent {
11
+ export interface FaqsContentProps {
12
12
  faqItems: FaqGroupProps[]
13
13
  }
14
14
 
15
- interface PricingPlanContent {
15
+ export interface PricingPlanContentProps {
16
16
  title: string
17
17
  plans: PlanBoxPricingSubscriptionCardProps[]
18
18
  }
19
19
 
20
- interface SupportContent {
20
+ export interface SupportContentProps {
21
21
  title: string
22
22
  description: string
23
23
  benefitsList: CardBoxProps[]
24
24
  }
25
25
 
26
26
  export interface PricingPageProps {
27
- benefitsContent: BenefitContent
28
- faqsContent: FaqsContent
27
+ benefitsContent: BenefitContentProps
28
+ faqsContent: FaqsContentProps
29
29
  helpResourcesCards: CardBoxProps[]
30
- supportContent: SupportContent
31
- pricingPlanContent: PricingPlanContent
30
+ supportContent: SupportContentProps
31
+ pricingPlanContent: PricingPlanContentProps
32
32
  pricingSection: HeroSectionProps
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.0.8",
3
+ "version": "7.0.9",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",