@npm_leadtech/legal-lib-components 7.63.10 → 7.64.0
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/css/styles.css +18 -0
- 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/index.d.ts +0 -1
- package/dist/src/components/molecules/index.js +0 -1
- package/dist/src/components/molecules/index.ts +0 -1
- 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/src/globalStyles/themes.scss +27 -0
- 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/molecules/StickyPlanBar/StickyPlanBar.d.ts +0 -3
- package/dist/src/components/molecules/StickyPlanBar/StickyPlanBar.js +0 -5
- package/dist/src/components/molecules/StickyPlanBar/StickyPlanBar.styled.d.ts +0 -3
- package/dist/src/components/molecules/StickyPlanBar/StickyPlanBar.styled.js +0 -69
- package/dist/src/components/molecules/StickyPlanBar/StickyPlanBar.styled.ts +0 -72
- package/dist/src/components/molecules/StickyPlanBar/StickyPlanBar.tsx +0 -23
- package/dist/src/components/molecules/StickyPlanBar/StickyPlanBarProps.d.ts +0 -6
- package/dist/src/components/molecules/StickyPlanBar/StickyPlanBarProps.js +0 -1
- package/dist/src/components/molecules/StickyPlanBar/StickyPlanBarProps.ts +0 -7
- package/dist/src/components/molecules/StickyPlanBar/index.d.ts +0 -2
- package/dist/src/components/molecules/StickyPlanBar/index.js +0 -2
- package/dist/src/components/molecules/StickyPlanBar/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 -35
- package/dist/src/components/organisms/PricingPageHeader/PricingPageHeader.styled.tsx +0 -38
- 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 -58
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.styled.d.ts +0 -16
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.styled.js +0 -88
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.styled.ts +0 -107
- package/dist/src/components/pages/PricingPlansPage/PricingPlansPage.tsx +0 -128
- 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
- package/dist/src/utils/throttle.d.ts +0 -1
- package/dist/src/utils/throttle.js +0 -10
- package/dist/src/utils/throttle.ts +0 -11
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Benefit, BenefitsList, Divider, PlanCardContainer, PlanTitle, Price, PriceLabel, PricingInfo } from './PlanCard.styled';
|
|
3
|
-
import { Button } from '../Button';
|
|
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", { className: 'benefit-text', dangerouslySetInnerHTML: { __html: item?.benefit } })] }, item?.benefit))) })] }));
|
|
6
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const PlanCardContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const PlanTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
3
|
-
export declare const PricingInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export declare const Price: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
5
|
-
export declare const PriceLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
6
|
-
export declare const Divider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
|
|
7
|
-
export declare const BenefitsList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
8
|
-
export declare const Benefit: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
export const PlanCardContainer = styled.div `
|
|
3
|
-
text-align: center;
|
|
4
|
-
gap: 2rem;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
padding: 1.5rem;
|
|
11
|
-
|
|
12
|
-
.pricing-plan__button {
|
|
13
|
-
width: 100%;
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
export const PlanTitle = styled.span `
|
|
17
|
-
border-radius: 8px;
|
|
18
|
-
padding: 0.5rem 1rem;
|
|
19
|
-
background-color: var(--neutral-neutral-4);
|
|
20
|
-
font-size: large;
|
|
21
|
-
font-weight: 700;
|
|
22
|
-
&.highlight {
|
|
23
|
-
background-color: var(--primary-main-light-4);
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
export const PricingInfo = styled.div `
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
align-items: center;
|
|
30
|
-
`;
|
|
31
|
-
export const Price = styled.h4 `
|
|
32
|
-
font-size: 36px;
|
|
33
|
-
font-weight: 700;
|
|
34
|
-
margin: 0 0 -0.5rem 0;
|
|
35
|
-
`;
|
|
36
|
-
export const PriceLabel = styled.span `
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
`;
|
|
39
|
-
export const Divider = styled.hr `
|
|
40
|
-
border: 1px solid var(--neutral-neutral-4);
|
|
41
|
-
width: 100%;
|
|
42
|
-
`;
|
|
43
|
-
export const BenefitsList = styled.ul `
|
|
44
|
-
list-style: none;
|
|
45
|
-
padding: 0;
|
|
46
|
-
margin: 0;
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: column;
|
|
49
|
-
gap: 0.5rem;
|
|
50
|
-
`;
|
|
51
|
-
export const Benefit = styled.li `
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: start;
|
|
54
|
-
box-sizing: border-box;
|
|
55
|
-
padding: 0 1rem;
|
|
56
|
-
|
|
57
|
-
&.ai-benefit {
|
|
58
|
-
background-color: var(--primary-main-light-5);
|
|
59
|
-
padding: 1rem;
|
|
60
|
-
border-radius: 0.5rem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.benefit-text {
|
|
64
|
-
text-align: left;
|
|
65
|
-
font-size: 14px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
svg {
|
|
69
|
-
flex-shrink: 0;
|
|
70
|
-
width: 16px;
|
|
71
|
-
height: 16px;
|
|
72
|
-
margin-top: 0.3rem;
|
|
73
|
-
margin-right: 0.5rem;
|
|
74
|
-
}
|
|
75
|
-
`;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
export const PlanCardContainer = styled.div`
|
|
4
|
-
text-align: center;
|
|
5
|
-
gap: 2rem;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
padding: 1.5rem;
|
|
12
|
-
|
|
13
|
-
.pricing-plan__button {
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
`
|
|
17
|
-
|
|
18
|
-
export const PlanTitle = styled.span`
|
|
19
|
-
border-radius: 8px;
|
|
20
|
-
padding: 0.5rem 1rem;
|
|
21
|
-
background-color: var(--neutral-neutral-4);
|
|
22
|
-
font-size: large;
|
|
23
|
-
font-weight: 700;
|
|
24
|
-
&.highlight {
|
|
25
|
-
background-color: var(--primary-main-light-4);
|
|
26
|
-
}
|
|
27
|
-
`
|
|
28
|
-
|
|
29
|
-
export const PricingInfo = styled.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
align-items: center;
|
|
33
|
-
`
|
|
34
|
-
|
|
35
|
-
export const Price = styled.h4`
|
|
36
|
-
font-size: 36px;
|
|
37
|
-
font-weight: 700;
|
|
38
|
-
margin: 0 0 -0.5rem 0;
|
|
39
|
-
`
|
|
40
|
-
|
|
41
|
-
export const PriceLabel = styled.span`
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
`
|
|
44
|
-
|
|
45
|
-
export const Divider = styled.hr`
|
|
46
|
-
border: 1px solid var(--neutral-neutral-4);
|
|
47
|
-
width: 100%;
|
|
48
|
-
`
|
|
49
|
-
|
|
50
|
-
export const BenefitsList = styled.ul`
|
|
51
|
-
list-style: none;
|
|
52
|
-
padding: 0;
|
|
53
|
-
margin: 0;
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
gap: 0.5rem;
|
|
57
|
-
`
|
|
58
|
-
|
|
59
|
-
export const Benefit = styled.li`
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: start;
|
|
62
|
-
box-sizing: border-box;
|
|
63
|
-
padding: 0 1rem;
|
|
64
|
-
|
|
65
|
-
&.ai-benefit {
|
|
66
|
-
background-color: var(--primary-main-light-5);
|
|
67
|
-
padding: 1rem;
|
|
68
|
-
border-radius: 0.5rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.benefit-text {
|
|
72
|
-
text-align: left;
|
|
73
|
-
font-size: 14px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
svg {
|
|
77
|
-
flex-shrink: 0;
|
|
78
|
-
width: 16px;
|
|
79
|
-
height: 16px;
|
|
80
|
-
margin-top: 0.3rem;
|
|
81
|
-
margin-right: 0.5rem;
|
|
82
|
-
}
|
|
83
|
-
`
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Benefit,
|
|
3
|
-
BenefitsList,
|
|
4
|
-
Divider,
|
|
5
|
-
PlanCardContainer,
|
|
6
|
-
PlanTitle,
|
|
7
|
-
Price,
|
|
8
|
-
PriceLabel,
|
|
9
|
-
PricingInfo
|
|
10
|
-
} from './PlanCard.styled'
|
|
11
|
-
import { Button } from '../Button'
|
|
12
|
-
import { PlanCardProps } from './PlanCardProps'
|
|
13
|
-
import React from 'react'
|
|
14
|
-
|
|
15
|
-
export const PlanCard: React.FC<PlanCardProps> = ({ plan, onSelect }) => {
|
|
16
|
-
return (
|
|
17
|
-
<PlanCardContainer>
|
|
18
|
-
<PlanTitle className={plan?.highlightPlan ? 'highlight' : 'asdfasdf'}>{plan?.subscription_type?.name}</PlanTitle>
|
|
19
|
-
<PricingInfo>
|
|
20
|
-
<Price>{plan?.pricing}</Price>
|
|
21
|
-
<PriceLabel>{plan?.pricingLabel}</PriceLabel>
|
|
22
|
-
</PricingInfo>
|
|
23
|
-
<Button
|
|
24
|
-
label={plan?.buttonText ?? ''}
|
|
25
|
-
dataQa={`${plan?.subscription_type?.name.replaceAll(' ', '')}-button`}
|
|
26
|
-
noLink
|
|
27
|
-
onClick={() => onSelect?.(plan?.subscription_type?.sku ?? '')}
|
|
28
|
-
givenClass='pricing-plan__button'
|
|
29
|
-
color={plan?.highlightPlan ? 'primary' : 'transparent'}
|
|
30
|
-
/>
|
|
31
|
-
<Divider />
|
|
32
|
-
<BenefitsList>
|
|
33
|
-
{plan?.benefits?.map((item) => (
|
|
34
|
-
<Benefit key={item?.benefit} className={item?.type == 'default' ? 'default' : 'ai-benefit'}>
|
|
35
|
-
{item?.icon}
|
|
36
|
-
<p className='benefit-text' dangerouslySetInnerHTML={{ __html: item?.benefit }}></p>
|
|
37
|
-
</Benefit>
|
|
38
|
-
))}
|
|
39
|
-
</BenefitsList>
|
|
40
|
-
</PlanCardContainer>
|
|
41
|
-
)
|
|
42
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface PlanCardProps {
|
|
3
|
-
plan: SubscriptionPlan;
|
|
4
|
-
onSelect?: (sku: string) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface SubscriptionPlan {
|
|
7
|
-
benefits?: Benefit[];
|
|
8
|
-
pricing?: string;
|
|
9
|
-
pricingLabel?: string;
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
highlightPlan?: boolean;
|
|
12
|
-
subscription_type?: SubscriptionType;
|
|
13
|
-
}
|
|
14
|
-
interface Benefit {
|
|
15
|
-
type: 'default' | 'lawgenius';
|
|
16
|
-
benefit: string;
|
|
17
|
-
icon: ReactNode;
|
|
18
|
-
}
|
|
19
|
-
interface SubscriptionType {
|
|
20
|
-
name: string;
|
|
21
|
-
sku: string;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react'
|
|
2
|
-
|
|
3
|
-
export interface PlanCardProps {
|
|
4
|
-
plan: SubscriptionPlan
|
|
5
|
-
onSelect?: (sku: string) => void
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface SubscriptionPlan {
|
|
9
|
-
benefits?: Benefit[]
|
|
10
|
-
pricing?: string
|
|
11
|
-
pricingLabel?: string
|
|
12
|
-
buttonText?: string
|
|
13
|
-
highlightPlan?: boolean
|
|
14
|
-
subscription_type?: SubscriptionType
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface Benefit {
|
|
18
|
-
type: 'default' | 'lawgenius'
|
|
19
|
-
benefit: string
|
|
20
|
-
icon: ReactNode
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface SubscriptionType {
|
|
24
|
-
name: string
|
|
25
|
-
sku: string
|
|
26
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { StickyPlanBarStyled, StickyPlanContent, StickySelectButton } from './StickyPlanBar.styled';
|
|
3
|
-
export const StickyPlanBar = ({ activePlan, showStickyBar, onPlanSelect }) => {
|
|
4
|
-
return (_jsxs(StickyPlanBarStyled, { className: `sticky-plan-bar ${showStickyBar ? 'visible' : ''}`, children: [_jsxs(StickyPlanContent, { className: 'sticky-plan-info', children: [_jsx("span", { className: 'sticky-plan-name', children: activePlan.subscription_type?.name }), _jsxs("div", { className: 'sticky-plan-pricing', children: [_jsx("span", { className: 'sticky-plan-price', children: activePlan.pricing }), _jsx("span", { className: 'sticky-plan-priceLabel', children: activePlan.pricingLabel })] })] }), _jsx(StickySelectButton, { className: 'sticky-select-button', onClick: () => (onPlanSelect ? onPlanSelect(activePlan?.subscription_type?.sku ?? '') : undefined), children: "Select" })] }));
|
|
5
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const StickyPlanBarStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const StickyPlanContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const StickySelectButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { size } from '../../../globalStyles/breakpoints';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
export const StickyPlanBarStyled = styled.div `
|
|
4
|
-
position: fixed;
|
|
5
|
-
bottom: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
z-index: 100;
|
|
9
|
-
padding: 1rem;
|
|
10
|
-
gap: 1rem;
|
|
11
|
-
|
|
12
|
-
background-color: #ffffff;
|
|
13
|
-
border-radius: 1rem 1rem 0 0;
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
align-items: center;
|
|
18
|
-
|
|
19
|
-
transform: translateY(100%);
|
|
20
|
-
transition: transform 0.3s ease-in-out;
|
|
21
|
-
|
|
22
|
-
&.visible {
|
|
23
|
-
transform: translateY(0);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@media (min-width: ${size.sm}) {
|
|
27
|
-
display: none;
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
30
|
-
export const StickyPlanContent = styled.div `
|
|
31
|
-
display: flex;
|
|
32
|
-
width: 100%;
|
|
33
|
-
justify-content: space-between;
|
|
34
|
-
|
|
35
|
-
.sticky-plan-name {
|
|
36
|
-
padding: 0.25rem 0.5rem;
|
|
37
|
-
background-color: var(--primary-main-light-5);
|
|
38
|
-
color: var(--primary-main-dark-1);
|
|
39
|
-
font-size: 12px;
|
|
40
|
-
font-weight: 700;
|
|
41
|
-
border-radius: 8px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.sticky-plan-pricing {
|
|
45
|
-
display: flex;
|
|
46
|
-
gap: 4px;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.sticky-plan-price {
|
|
52
|
-
font-size: 12px;
|
|
53
|
-
font-weight: 700;
|
|
54
|
-
}
|
|
55
|
-
.sticky-plan-priceLabel {
|
|
56
|
-
font-size: 12px;
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
export const StickySelectButton = styled.button `
|
|
60
|
-
background-color: var(--primary-main-light-1);
|
|
61
|
-
color: white;
|
|
62
|
-
border: none;
|
|
63
|
-
border-radius: 4px;
|
|
64
|
-
padding: 0.68rem 1rem;
|
|
65
|
-
font-weight: 700;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
transition: background-color 0.2s;
|
|
68
|
-
width: 100%;
|
|
69
|
-
`;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { size } from '../../../globalStyles/breakpoints'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
|
|
4
|
-
export const StickyPlanBarStyled = styled.div`
|
|
5
|
-
position: fixed;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
width: 100%;
|
|
9
|
-
z-index: 100;
|
|
10
|
-
padding: 1rem;
|
|
11
|
-
gap: 1rem;
|
|
12
|
-
|
|
13
|
-
background-color: #ffffff;
|
|
14
|
-
border-radius: 1rem 1rem 0 0;
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
align-items: center;
|
|
19
|
-
|
|
20
|
-
transform: translateY(100%);
|
|
21
|
-
transition: transform 0.3s ease-in-out;
|
|
22
|
-
|
|
23
|
-
&.visible {
|
|
24
|
-
transform: translateY(0);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@media (min-width: ${size.sm}) {
|
|
28
|
-
display: none;
|
|
29
|
-
}
|
|
30
|
-
`
|
|
31
|
-
|
|
32
|
-
export const StickyPlanContent = styled.div`
|
|
33
|
-
display: flex;
|
|
34
|
-
width: 100%;
|
|
35
|
-
justify-content: space-between;
|
|
36
|
-
|
|
37
|
-
.sticky-plan-name {
|
|
38
|
-
padding: 0.25rem 0.5rem;
|
|
39
|
-
background-color: var(--primary-main-light-5);
|
|
40
|
-
color: var(--primary-main-dark-1);
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
font-weight: 700;
|
|
43
|
-
border-radius: 8px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sticky-plan-pricing {
|
|
47
|
-
display: flex;
|
|
48
|
-
gap: 4px;
|
|
49
|
-
align-items: center;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.sticky-plan-price {
|
|
54
|
-
font-size: 12px;
|
|
55
|
-
font-weight: 700;
|
|
56
|
-
}
|
|
57
|
-
.sticky-plan-priceLabel {
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
}
|
|
60
|
-
`
|
|
61
|
-
|
|
62
|
-
export const StickySelectButton = styled.button`
|
|
63
|
-
background-color: var(--primary-main-light-1);
|
|
64
|
-
color: white;
|
|
65
|
-
border: none;
|
|
66
|
-
border-radius: 4px;
|
|
67
|
-
padding: 0.68rem 1rem;
|
|
68
|
-
font-weight: 700;
|
|
69
|
-
cursor: pointer;
|
|
70
|
-
transition: background-color 0.2s;
|
|
71
|
-
width: 100%;
|
|
72
|
-
`
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { StickyPlanBarStyled, StickyPlanContent, StickySelectButton } from './StickyPlanBar.styled'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import { StickyPlanBarProps } from './StickyPlanBarProps'
|
|
4
|
-
|
|
5
|
-
export const StickyPlanBar: React.FC<StickyPlanBarProps> = ({ activePlan, showStickyBar, onPlanSelect }) => {
|
|
6
|
-
return (
|
|
7
|
-
<StickyPlanBarStyled className={`sticky-plan-bar ${showStickyBar ? 'visible' : ''}`}>
|
|
8
|
-
<StickyPlanContent className='sticky-plan-info'>
|
|
9
|
-
<span className='sticky-plan-name'>{activePlan.subscription_type?.name}</span>
|
|
10
|
-
<div className='sticky-plan-pricing'>
|
|
11
|
-
<span className='sticky-plan-price'>{activePlan.pricing}</span>
|
|
12
|
-
<span className='sticky-plan-priceLabel'>{activePlan.pricingLabel}</span>
|
|
13
|
-
</div>
|
|
14
|
-
</StickyPlanContent>
|
|
15
|
-
<StickySelectButton
|
|
16
|
-
className='sticky-select-button'
|
|
17
|
-
onClick={() => (onPlanSelect ? onPlanSelect(activePlan?.subscription_type?.sku ?? '') : undefined)}
|
|
18
|
-
>
|
|
19
|
-
Select
|
|
20
|
-
</StickySelectButton>
|
|
21
|
-
</StickyPlanBarStyled>
|
|
22
|
-
)
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { PhoneButtonStyled, PhoneNumberStyled, PricingHeaderStyled } from './PricingPageHeader.styled';
|
|
3
|
-
import { Logo } from '../../atoms';
|
|
4
|
-
import { PhoneIcon } from '../../../../images/componentsSvg/PhoneIcon';
|
|
5
|
-
export const PricingPageHeader = ({ siteName = 'Legalfinity', phoneNumber }) => {
|
|
6
|
-
return (_jsxs(PricingHeaderStyled, { children: [_jsx(Logo, { siteName: siteName, width: '150', height: '26' }), _jsxs(PhoneNumberStyled, { children: [_jsx(PhoneIcon, { width: 16, height: 16, fill: '#6d7275' }), _jsx("strong", { children: phoneNumber })] }), _jsxs(PhoneButtonStyled, { href: `tel:${phoneNumber}`, target: '__self', children: [_jsx(PhoneIcon, { width: 24, height: 24, fill: 'currentColor' }), _jsx("strong", { children: 'Call Us' })] })] }));
|
|
7
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const PricingHeaderStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
2
|
-
export declare const PhoneButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
3
|
-
export declare const PhoneNumberStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { size } from '../../../globalStyles/breakpoints';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
export const PricingHeaderStyled = styled.header `
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
align-items: center;
|
|
7
|
-
padding: 1rem 1.5rem;
|
|
8
|
-
`;
|
|
9
|
-
export const PhoneButtonStyled = styled.a `
|
|
10
|
-
display: none;
|
|
11
|
-
align-items: center;
|
|
12
|
-
gap: 0.25rem;
|
|
13
|
-
height: 2.5rem;
|
|
14
|
-
border-radius: 0.25rem;
|
|
15
|
-
padding: 0.25rem 0.5rem;
|
|
16
|
-
text-decoration: none;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
border: 1px solid var(--neutral-neutral-4);
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
color: var(--primary-main);
|
|
21
|
-
@media (max-width: ${size.tab}) {
|
|
22
|
-
display: flex;
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
export const PhoneNumberStyled = styled.div `
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
gap: 0.5rem;
|
|
29
|
-
color: var(--neutral-neutral-2);
|
|
30
|
-
height: 2.5rem;
|
|
31
|
-
|
|
32
|
-
@media (max-width: ${size.tab}) {
|
|
33
|
-
display: none;
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { size } from '../../../globalStyles/breakpoints'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
|
|
4
|
-
export const PricingHeaderStyled = styled.header`
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
align-items: center;
|
|
8
|
-
padding: 1rem 1.5rem;
|
|
9
|
-
`
|
|
10
|
-
|
|
11
|
-
export const PhoneButtonStyled = styled.a`
|
|
12
|
-
display: none;
|
|
13
|
-
align-items: center;
|
|
14
|
-
gap: 0.25rem;
|
|
15
|
-
height: 2.5rem;
|
|
16
|
-
border-radius: 0.25rem;
|
|
17
|
-
padding: 0.25rem 0.5rem;
|
|
18
|
-
text-decoration: none;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
border: 1px solid var(--neutral-neutral-4);
|
|
21
|
-
font-size: 14px;
|
|
22
|
-
color: var(--primary-main);
|
|
23
|
-
@media (max-width: ${size.tab}) {
|
|
24
|
-
display: flex;
|
|
25
|
-
}
|
|
26
|
-
`
|
|
27
|
-
|
|
28
|
-
export const PhoneNumberStyled = styled.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
gap: 0.5rem;
|
|
32
|
-
color: var(--neutral-neutral-2);
|
|
33
|
-
height: 2.5rem;
|
|
34
|
-
|
|
35
|
-
@media (max-width: ${size.tab}) {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
`
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PhoneButtonStyled, PhoneNumberStyled, PricingHeaderStyled } from './PricingPageHeader.styled'
|
|
2
|
-
import { Logo } from '../../atoms'
|
|
3
|
-
import { PhoneIcon } from '../../../../images/componentsSvg/PhoneIcon'
|
|
4
|
-
import { PricingHeaderProps } from './PricingPageHeaderProps'
|
|
5
|
-
import React from 'react'
|
|
6
|
-
|
|
7
|
-
export const PricingPageHeader: React.FC<PricingHeaderProps> = ({ siteName = 'Legalfinity', phoneNumber }) => {
|
|
8
|
-
return (
|
|
9
|
-
<PricingHeaderStyled>
|
|
10
|
-
<Logo siteName={siteName} width='150' height='26' />
|
|
11
|
-
<PhoneNumberStyled>
|
|
12
|
-
<PhoneIcon width={16} height={16} fill='#6d7275' />
|
|
13
|
-
<strong>{phoneNumber}</strong>
|
|
14
|
-
</PhoneNumberStyled>
|
|
15
|
-
<PhoneButtonStyled href={`tel:${phoneNumber}`} target='__self'>
|
|
16
|
-
<PhoneIcon width={24} height={24} fill='currentColor' />
|
|
17
|
-
<strong>{'Call Us'}</strong>
|
|
18
|
-
</PhoneButtonStyled>
|
|
19
|
-
</PricingHeaderStyled>
|
|
20
|
-
)
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|