@npm_leadtech/legal-lib-components 7.63.6 → 7.63.8
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.
- package/dist/src/components/atoms/Logo/Logo.js +2 -4
- package/dist/src/components/atoms/Logo/Logo.tsx +2 -4
- package/dist/src/components/atoms/index.d.ts +0 -2
- package/dist/src/components/atoms/index.js +0 -2
- package/dist/src/components/atoms/index.ts +0 -2
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.js +6 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.ts +6 -1
- package/dist/src/components/molecules/BoxForm/BoxForm.styled.js +2 -8
- package/dist/src/components/molecules/BoxForm/BoxForm.styled.ts +2 -8
- package/dist/src/components/organisms/index.d.ts +0 -1
- package/dist/src/components/organisms/index.js +0 -1
- package/dist/src/components/organisms/index.ts +0 -1
- package/dist/src/components/pages/index.d.ts +0 -1
- package/dist/src/components/pages/index.js +0 -1
- package/dist/src/components/pages/index.ts +0 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/dist/src/components/atoms/FeatureItem/FeatureItem.d.ts +0 -3
- package/dist/src/components/atoms/FeatureItem/FeatureItem.js +0 -5
- package/dist/src/components/atoms/FeatureItem/FeatureItem.styled.d.ts +0 -1
- package/dist/src/components/atoms/FeatureItem/FeatureItem.styled.js +0 -18
- package/dist/src/components/atoms/FeatureItem/FeatureItem.styled.ts +0 -19
- package/dist/src/components/atoms/FeatureItem/FeatureItem.tsx +0 -12
- package/dist/src/components/atoms/FeatureItem/FeatureItemProps.d.ts +0 -9
- package/dist/src/components/atoms/FeatureItem/FeatureItemProps.js +0 -1
- package/dist/src/components/atoms/FeatureItem/FeatureItemProps.ts +0 -10
- package/dist/src/components/atoms/FeatureItem/index.d.ts +0 -2
- package/dist/src/components/atoms/FeatureItem/index.js +0 -2
- package/dist/src/components/atoms/FeatureItem/index.ts +0 -2
- package/dist/src/components/atoms/Logo/svg/legalfinity-logo.svg +0 -15
- package/dist/src/components/atoms/Logo/svg/legalfinity-white-logo.svg +0 -15
- package/dist/src/components/atoms/PlanCard/PlanCard.d.ts +0 -3
- package/dist/src/components/atoms/PlanCard/PlanCard.js +0 -6
- package/dist/src/components/atoms/PlanCard/PlanCard.styled.d.ts +0 -8
- package/dist/src/components/atoms/PlanCard/PlanCard.styled.js +0 -75
- package/dist/src/components/atoms/PlanCard/PlanCard.styled.ts +0 -83
- package/dist/src/components/atoms/PlanCard/PlanCard.tsx +0 -42
- package/dist/src/components/atoms/PlanCard/PlanCardProps.d.ts +0 -23
- package/dist/src/components/atoms/PlanCard/PlanCardProps.js +0 -1
- package/dist/src/components/atoms/PlanCard/PlanCardProps.ts +0 -26
- package/dist/src/components/atoms/PlanCard/index.d.ts +0 -2
- package/dist/src/components/atoms/PlanCard/index.js +0 -2
- package/dist/src/components/atoms/PlanCard/index.ts +0 -2
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeader.d.ts +0 -3
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeader.js +0 -7
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeader.styled.d.ts +0 -3
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeader.styled.js +0 -34
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeader.styled.tsx +0 -37
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeader.tsx +0 -21
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeaderProps.d.ts +0 -4
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeaderProps.js +0 -1
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeaderProps.ts +0 -4
- package/dist/src/components/organisms/PricingPageHeader/index.d.ts +0 -2
- package/dist/src/components/organisms/PricingPageHeader/index.js +0 -2
- package/dist/src/components/organisms/PricingPageHeader/index.ts +0 -2
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.d.ts +0 -3
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.js +0 -9
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.styled.d.ts +0 -16
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.styled.js +0 -87
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.styled.ts +0 -106
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.tsx +0 -68
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPageProps.d.ts +0 -9
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPageProps.js +0 -1
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPageProps.ts +0 -10
- package/dist/src/components/pages/PricingPlansPage/index.d.ts +0 -2
- package/dist/src/components/pages/PricingPlansPage/index.js +0 -2
- package/dist/src/components/pages/PricingPlansPage/index.ts +0 -2
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { FeatureItem, PlanCard } from '../../atoms'
|
|
2
|
-
import {
|
|
3
|
-
FeaturesGrid,
|
|
4
|
-
FeaturesSection,
|
|
5
|
-
PlanSelector,
|
|
6
|
-
PlanWrapper,
|
|
7
|
-
PlansWrapper,
|
|
8
|
-
PricingContainerStyled,
|
|
9
|
-
SelectorButton
|
|
10
|
-
} from './PricingPlansPage.styled'
|
|
11
|
-
import { PricingPageHeader } from '../../organisms'
|
|
12
|
-
import { PricingPlansPageProps } from './PricingPlansPageProps'
|
|
13
|
-
import React from 'react'
|
|
14
|
-
|
|
15
|
-
export const PricingPlansPage: React.FC<PricingPlansPageProps> = ({
|
|
16
|
-
subscriptionPlans,
|
|
17
|
-
features,
|
|
18
|
-
onPlanSelect,
|
|
19
|
-
headerDivider,
|
|
20
|
-
siteName = 'Legalfinity',
|
|
21
|
-
phoneNumber
|
|
22
|
-
}) => {
|
|
23
|
-
const [activePlanIndex, setActivePlanIndex] = React.useState(0)
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<>
|
|
27
|
-
<PricingPageHeader siteName={siteName} phoneNumber={phoneNumber} />
|
|
28
|
-
{headerDivider}
|
|
29
|
-
{subscriptionPlans?.length > 0 && (
|
|
30
|
-
<PricingContainerStyled>
|
|
31
|
-
<PlanSelector>
|
|
32
|
-
{subscriptionPlans.map((plan, index) => (
|
|
33
|
-
<SelectorButton
|
|
34
|
-
key={`selector-${plan?.pricingLabel}`}
|
|
35
|
-
isActive={index === activePlanIndex}
|
|
36
|
-
onClick={() => setActivePlanIndex(index)}
|
|
37
|
-
dataQa={`selector-${plan.subscription_type?.name.replaceAll(' ', '')}`}
|
|
38
|
-
>
|
|
39
|
-
{plan?.subscription_type?.name}
|
|
40
|
-
</SelectorButton>
|
|
41
|
-
))}
|
|
42
|
-
</PlanSelector>
|
|
43
|
-
<PlansWrapper>
|
|
44
|
-
{subscriptionPlans.map((plan, index) => (
|
|
45
|
-
<PlanWrapper
|
|
46
|
-
key={plan.pricingLabel}
|
|
47
|
-
isHighlighted={plan.highlightPlan}
|
|
48
|
-
isActive={index === activePlanIndex}
|
|
49
|
-
className={`pricing-plan__element-container ${plan?.highlightPlan ? 'highlight' : ''} ${index === activePlanIndex ? 'active' : ''}`}
|
|
50
|
-
>
|
|
51
|
-
<PlanCard onSelect={onPlanSelect ?? (() => {})} plan={plan} />
|
|
52
|
-
</PlanWrapper>
|
|
53
|
-
))}
|
|
54
|
-
</PlansWrapper>
|
|
55
|
-
{features && features.length > 0 && (
|
|
56
|
-
<FeaturesSection>
|
|
57
|
-
<FeaturesGrid>
|
|
58
|
-
{features.map((feature) => (
|
|
59
|
-
<FeatureItem feature={feature} key={feature.description} />
|
|
60
|
-
))}
|
|
61
|
-
</FeaturesGrid>
|
|
62
|
-
</FeaturesSection>
|
|
63
|
-
)}
|
|
64
|
-
</PricingContainerStyled>
|
|
65
|
-
)}
|
|
66
|
-
</>
|
|
67
|
-
)
|
|
68
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FeatureItemProp, SubscriptionPlan } from '../../atoms';
|
|
2
|
-
export interface PricingPlansPageProps {
|
|
3
|
-
subscriptionPlans: SubscriptionPlan[];
|
|
4
|
-
features?: FeatureItemProp[];
|
|
5
|
-
onPlanSelect?: (sku: string) => void;
|
|
6
|
-
headerDivider?: React.ReactNode;
|
|
7
|
-
siteName?: string;
|
|
8
|
-
phoneNumber?: string;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FeatureItemProp, SubscriptionPlan } from '../../atoms'
|
|
2
|
-
|
|
3
|
-
export interface PricingPlansPageProps {
|
|
4
|
-
subscriptionPlans: SubscriptionPlan[]
|
|
5
|
-
features?: FeatureItemProp[]
|
|
6
|
-
onPlanSelect?: (sku: string) => void
|
|
7
|
-
headerDivider?: React.ReactNode
|
|
8
|
-
siteName?: string
|
|
9
|
-
phoneNumber?: string
|
|
10
|
-
}
|