@npm_leadtech/legal-lib-components 7.0.9 → 7.0.11

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,6 +1,7 @@
1
1
  export interface CardBoxProps {
2
2
  text: string;
3
3
  icon: string;
4
+ id?: string;
4
5
  borderRadius?: string;
5
6
  padding?: string;
6
7
  gap?: string;
@@ -1,6 +1,7 @@
1
1
  export interface CardBoxProps {
2
2
  text: string
3
3
  icon: string
4
+ id?: string
4
5
  borderRadius?: string
5
6
  padding?: string
6
7
  gap?: string
@@ -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((benefit) => (_jsx(BenefitCard, { hasShadow: false, ...benefit }, benefit?.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
  };
@@ -29,7 +29,9 @@ export const PricingPage: React.FC<PricingPageProps> = ({
29
29
  {benefitsContent?.title && <div className='benefits__title'>{benefitsContent.title}</div>}
30
30
  <div className='benefits__cards'>
31
31
  {benefitsContent?.benefitsList?.length > 0 &&
32
- benefitsContent?.benefitsList?.map((card) => <BenefitCard hasShadow={false} key={card?.id} {...card} />)}
32
+ benefitsContent?.benefitsList?.map((benefit) => (
33
+ <BenefitCard hasShadow={false} key={benefit?.id} {...benefit} />
34
+ ))}
33
35
  </div>
34
36
  </div>
35
37
  <div className='support-section'>
@@ -1 +1,2 @@
1
1
  export { PricingPage } from './PricingPage';
2
+ export * from './PricingPageProps';
@@ -1 +1,2 @@
1
1
  export { PricingPage } from './PricingPage';
2
+ export * from './PricingPageProps';
@@ -1 +1,2 @@
1
1
  export { PricingPage } from './PricingPage'
2
+ export * from './PricingPageProps'
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { CardBoxFeaturedSectionStyled, CardBoxMinimalSectionStyled } from './CardBoxSection.styled';
3
3
  import { CardBox } from '../../atoms';
4
4
  export const CardBoxMinimalSection = ({ cards }) => {
5
- return (_jsx(CardBoxMinimalSectionStyled, { children: cards?.map(({ text, icon }, index) => _jsx(CardBox, { text: text, icon: icon }, `${index}-${text}`)) }));
5
+ return (_jsx(CardBoxMinimalSectionStyled, { children: cards?.map(({ text, icon, id }) => _jsx(CardBox, { text: text, icon: icon }, id)) }));
6
6
  };
7
7
  export const CardBoxFeaturedSection = ({ cards }) => {
8
- return (_jsx(CardBoxFeaturedSectionStyled, { children: cards?.map(({ text, icon }, index) => (_jsx(CardBox, { text: text, icon: icon, padding: '16px', gap: '0.5rem', borderRadius: '8px' }, `${index}-${text}`))) }));
8
+ return (_jsx(CardBoxFeaturedSectionStyled, { children: cards?.map(({ text, icon, id }) => (_jsx(CardBox, { text: text, icon: icon, padding: '16px', gap: '0.5rem', borderRadius: '8px' }, id))) }));
9
9
  };
@@ -7,7 +7,7 @@ import { type CardBoxSectionProps } from './CardBoxSectionProps'
7
7
  export const CardBoxMinimalSection: React.FC<CardBoxSectionProps> = ({ cards }) => {
8
8
  return (
9
9
  <CardBoxMinimalSectionStyled>
10
- {cards?.map(({ text, icon }, index) => <CardBox key={`${index}-${text}`} text={text} icon={icon} />)}
10
+ {cards?.map(({ text, icon, id }) => <CardBox key={id} text={text} icon={icon} />)}
11
11
  </CardBoxMinimalSectionStyled>
12
12
  )
13
13
  }
@@ -15,8 +15,8 @@ export const CardBoxMinimalSection: React.FC<CardBoxSectionProps> = ({ cards })
15
15
  export const CardBoxFeaturedSection: React.FC<CardBoxSectionProps> = ({ cards }) => {
16
16
  return (
17
17
  <CardBoxFeaturedSectionStyled>
18
- {cards?.map(({ text, icon }, index) => (
19
- <CardBox key={`${index}-${text}`} text={text} icon={icon} padding='16px' gap='0.5rem' borderRadius='8px' />
18
+ {cards?.map(({ text, icon, id }) => (
19
+ <CardBox key={id} text={text} icon={icon} padding='16px' gap='0.5rem' borderRadius='8px' />
20
20
  ))}
21
21
  </CardBoxFeaturedSectionStyled>
22
22
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.0.9",
3
+ "version": "7.0.11",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",