@npm_leadtech/legal-lib-components 7.101.0 → 7.102.1
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 +0 -16
- package/dist/images/componentsSvg/ArrowRight.js +1 -1
- package/dist/images/componentsSvg/ArrowRight.tsx +1 -1
- package/dist/images/componentsSvg/CloseIcon.js +1 -1
- package/dist/images/componentsSvg/CloseIcon.tsx +6 -3
- package/dist/images/componentsSvg/Delete24p.tsx +2 -1
- package/dist/images/componentsSvg/Done24px.d.ts +1 -1
- package/dist/images/componentsSvg/Done24px.js +1 -1
- package/dist/images/componentsSvg/Done24px.tsx +7 -4
- package/dist/images/componentsSvg/Edit24p.tsx +1 -1
- package/dist/images/componentsSvg/EditText24px.tsx +1 -1
- package/dist/images/componentsSvg/Eye24pxOptimized.tsx +1 -1
- package/dist/images/componentsSvg/IconDuplicate24px.tsx +1 -1
- package/dist/images/componentsSvg/InfoError24pxOutlined.js +1 -1
- package/dist/images/componentsSvg/InfoError24pxOutlined.tsx +1 -1
- package/dist/images/componentsSvg/MenuCollapse24p.js +1 -1
- package/dist/images/componentsSvg/MenuCollapse24p.tsx +1 -1
- package/dist/images/componentsSvg/NewRelease24p.d.ts +1 -1
- package/dist/images/componentsSvg/NewRelease24p.js +2 -2
- package/dist/images/componentsSvg/NewRelease24p.tsx +19 -4
- package/dist/images/componentsSvg/RatafiaIcon24px.tsx +3 -3
- package/dist/images/componentsSvg/Sign24px.d.ts +2 -2
- package/dist/images/componentsSvg/Sign24px.js +1 -1
- package/dist/images/componentsSvg/Sign24px.tsx +6 -7
- package/dist/images/componentsSvg/Time24px.d.ts +1 -1
- package/dist/images/componentsSvg/Time24px.js +2 -2
- package/dist/images/componentsSvg/Time24px.tsx +26 -8
- package/dist/src/components/atoms/Button/Button.js +1 -1
- package/dist/src/components/atoms/Button/Button.scss +0 -19
- package/dist/src/components/atoms/Button/Button.tsx +1 -1
- package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -1
- package/dist/src/components/atoms/Button/ButtonProps.types.ts +0 -1
- package/dist/src/components/atoms/DatePickerCustom/DatepickerPlugin.scss +20 -20
- package/dist/src/components/atoms/DatePickerCustom/index.js.map +4 -4
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +15 -5
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +40 -41
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +40 -41
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +35 -7
- package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.d.ts +6 -4
- package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.ts +6 -5
- package/dist/src/components/atoms/MessageInformation/MessageInformation.js +2 -4
- package/dist/src/components/atoms/MessageInformation/MessageInformation.styled.js +0 -1
- package/dist/src/components/atoms/MessageInformation/MessageInformation.styled.ts +0 -1
- package/dist/src/components/atoms/MessageInformation/MessageInformation.tsx +4 -17
- package/dist/src/components/atoms/MessageInformation/MessageInformationProps.types.d.ts +0 -1
- package/dist/src/components/atoms/MessageInformation/MessageInformationProps.types.ts +0 -1
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.js +2 -3
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.js +6 -12
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.ts +6 -12
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.tsx +2 -4
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.d.ts +0 -1
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.ts +0 -1
- package/dist/src/components/atoms/PreFooter/PreFooter.js +3 -3
- package/dist/src/components/atoms/PreFooter/PreFooter.tsx +2 -2
- package/dist/src/components/atoms/PreFooter/PreFooterProps.d.ts +1 -1
- package/dist/src/components/atoms/PreFooter/PreFooterProps.ts +1 -1
- package/dist/src/components/atoms/TestAB/TestAB.d.ts +4 -3
- package/dist/src/components/atoms/Tooltip/Tooltip.js +2 -0
- package/dist/src/components/atoms/Tooltip/Tooltip.tsx +2 -0
- package/dist/src/components/atoms/Video/Video.js +2 -2
- package/dist/src/components/atoms/Video/Video.tsx +1 -2
- package/dist/src/components/molecules/AccordionItem/AccordionItem.d.ts +1 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItem.js +3 -6
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.js +0 -4
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.ts +0 -4
- package/dist/src/components/molecules/AccordionItem/AccordionItem.tsx +2 -8
- package/dist/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +0 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItemProps.types.ts +0 -1
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +2 -2
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +2 -10
- package/dist/src/components/molecules/CountDownMessage/CountDownMessageProps.types.d.ts +0 -1
- package/dist/src/components/molecules/CountDownMessage/CountDownMessageProps.types.ts +0 -1
- package/dist/src/components/molecules/InfoBarFooter/InfoBarFooter.js +1 -1
- package/dist/src/components/molecules/InfoBarFooter/InfoBarFooter.tsx +4 -8
- package/dist/src/components/molecules/InfoBarFooter/InfoBarFooterProps.types.d.ts +2 -2
- package/dist/src/components/molecules/InfoBarFooter/InfoBarFooterProps.types.ts +2 -2
- package/dist/src/components/molecules/StepRatafiaCardList/StepRatafiaCardList.styled.js +2 -2
- package/dist/src/components/molecules/StepRatafiaCardList/StepRatafiaCardList.styled.ts +2 -2
- package/dist/src/components/molecules/TextInput/tests/Input.test.tsx +18 -29
- package/dist/src/components/molecules/TextInput/tests/TextInput.test.tsx +9 -16
- package/dist/src/components/molecules/TextInput/tests/TextInputMessage.test.tsx +2 -2
- package/dist/src/components/molecules/TextInput/tests/TextInputTooltip.test.tsx +1 -1
- package/dist/src/components/molecules/index.d.ts +0 -3
- package/dist/src/components/molecules/index.js +0 -3
- package/dist/src/components/molecules/index.ts +0 -3
- package/dist/src/components/organisms/Accordion/Accordion.js +1 -1
- package/dist/src/components/organisms/Accordion/Accordion.tsx +0 -1
- package/dist/src/components/organisms/Accordion/AccordionProps.types.d.ts +0 -1
- package/dist/src/components/organisms/Accordion/AccordionProps.types.ts +0 -1
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.js +2 -2
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.tsx +2 -8
- package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.d.ts +0 -1
- package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.ts +0 -1
- package/dist/src/components/organisms/TopFooter/TopFooter.js +1 -1
- package/dist/src/components/organisms/TopFooter/TopFooter.tsx +1 -3
- package/dist/src/components/organisms/Wizard/Wizard.js +1 -8
- package/dist/src/components/organisms/Wizard/Wizard.tsx +2 -9
- package/dist/src/components/organisms/Wizard/context/WizardContext.d.ts +0 -1
- package/dist/src/components/organisms/Wizard/context/WizardContext.js +1 -2
- package/dist/src/components/organisms/Wizard/context/WizardContext.tsx +1 -3
- package/dist/src/components/sections/AppHeader/AppHeader.js +2 -2
- package/dist/src/components/sections/AppHeader/AppHeader.tsx +1 -8
- package/dist/src/components/sections/AppHeader/AppHeaderProps.d.ts +0 -1
- package/dist/src/components/sections/AppHeader/AppHeaderProps.ts +0 -1
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +1 -1
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +1 -3
- package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
- package/dist/src/components/sections/FaqSection/FaqSection.tsx +1 -3
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +2 -2
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.js +7 -7
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.ts +7 -7
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.tsx +2 -3
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.d.ts +0 -1
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.ts +0 -1
- package/dist/src/globalStyles/animations.scss +5 -2
- package/dist/src/globalStyles/variables.scss +12 -31
- package/dist/src/globalStyles/variablesCss.scss +0 -10
- package/dist/src/hooks/useIntersectionObserver.d.ts +2 -2
- package/dist/src/hooks/useIntersectionObserver.js +1 -1
- package/dist/src/hooks/useIntersectionObserver.tsx +4 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +16 -13
- package/dist/images/componentsSvg/Balance.d.ts +0 -7
- package/dist/images/componentsSvg/Balance.js +0 -2
- package/dist/images/componentsSvg/Balance.tsx +0 -16
- package/dist/images/componentsSvg/GdprLockSvg.d.ts +0 -8
- package/dist/images/componentsSvg/GdprLockSvg.js +0 -2
- package/dist/images/componentsSvg/GdprLockSvg.tsx +0 -21
- package/dist/images/componentsSvg/SslShieldSvg.d.ts +0 -7
- package/dist/images/componentsSvg/SslShieldSvg.js +0 -2
- package/dist/images/componentsSvg/SslShieldSvg.tsx +0 -18
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.d.ts +0 -3
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.js +0 -16
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.d.ts +0 -1
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.js +0 -60
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.styled.ts +0 -61
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItem.tsx +0 -28
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.d.ts +0 -6
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.js +0 -1
- package/dist/src/components/atoms/SignerStatusItem/SignerStatusItemProps.types.ts +0 -7
- package/dist/src/components/atoms/SignerStatusItem/index.d.ts +0 -2
- package/dist/src/components/atoms/SignerStatusItem/index.js +0 -1
- package/dist/src/components/atoms/SignerStatusItem/index.ts +0 -2
- package/dist/src/components/molecules/ComplianceBox/ComplianceBox.d.ts +0 -4
- package/dist/src/components/molecules/ComplianceBox/ComplianceBox.js +0 -8
- package/dist/src/components/molecules/ComplianceBox/ComplianceBox.styled.d.ts +0 -1
- package/dist/src/components/molecules/ComplianceBox/ComplianceBox.styled.js +0 -113
- package/dist/src/components/molecules/ComplianceBox/ComplianceBox.styled.ts +0 -114
- package/dist/src/components/molecules/ComplianceBox/ComplianceBox.tsx +0 -44
- package/dist/src/components/molecules/ComplianceBox/ComplianceBoxProps.types.d.ts +0 -11
- package/dist/src/components/molecules/ComplianceBox/ComplianceBoxProps.types.js +0 -1
- package/dist/src/components/molecules/ComplianceBox/ComplianceBoxProps.types.ts +0 -11
- package/dist/src/components/molecules/ComplianceBox/index.d.ts +0 -2
- package/dist/src/components/molecules/ComplianceBox/index.js +0 -1
- package/dist/src/components/molecules/ComplianceBox/index.ts +0 -2
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.d.ts +0 -3
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.js +0 -9
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.d.ts +0 -1
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.js +0 -22
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.styled.ts +0 -23
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContent.tsx +0 -42
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.d.ts +0 -9
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.js +0 -1
- package/dist/src/components/molecules/SignersStatusTooltipContent/SignersStatusTooltipContentProps.types.ts +0 -10
- package/dist/src/components/molecules/SignersStatusTooltipContent/index.d.ts +0 -2
- package/dist/src/components/molecules/SignersStatusTooltipContent/index.js +0 -1
- package/dist/src/components/molecules/SignersStatusTooltipContent/index.ts +0 -2
- package/dist/src/components/molecules/TrustBanner/TrustBanner.d.ts +0 -4
- package/dist/src/components/molecules/TrustBanner/TrustBanner.js +0 -7
- package/dist/src/components/molecules/TrustBanner/TrustBanner.styled.d.ts +0 -1
- package/dist/src/components/molecules/TrustBanner/TrustBanner.styled.js +0 -43
- package/dist/src/components/molecules/TrustBanner/TrustBanner.styled.ts +0 -44
- package/dist/src/components/molecules/TrustBanner/TrustBanner.tsx +0 -19
- package/dist/src/components/molecules/TrustBanner/TrustBannerProps.types.d.ts +0 -5
- package/dist/src/components/molecules/TrustBanner/TrustBannerProps.types.js +0 -1
- package/dist/src/components/molecules/TrustBanner/TrustBannerProps.types.ts +0 -5
- package/dist/src/components/molecules/TrustBanner/index.d.ts +0 -2
- package/dist/src/components/molecules/TrustBanner/index.js +0 -1
- package/dist/src/components/molecules/TrustBanner/index.ts +0 -2
|
@@ -7,9 +7,7 @@ import { TopFooterProps } from './TopFooterProps.types'
|
|
|
7
7
|
export const TopFooter: React.FC<TopFooterProps> = ({ menus, contactInfo, trustPilotWidget }) => {
|
|
8
8
|
return (
|
|
9
9
|
<TopFooterStyled className='footer__wrapper'>
|
|
10
|
-
{menus?.map((menu) =>
|
|
11
|
-
<FooterMenu key={menu.title} {...menu} />
|
|
12
|
-
))}
|
|
10
|
+
{menus?.map((menu) => <FooterMenu key={menu.title} {...menu} />)}
|
|
13
11
|
|
|
14
12
|
{(contactInfo || Boolean(trustPilotWidget)) && (
|
|
15
13
|
<SelectorTrustpilotWrapper>
|
|
@@ -36,13 +36,6 @@ export const Wizard = ({ children, isHashEnabled = false, classNames }) => {
|
|
|
36
36
|
};
|
|
37
37
|
const footer = getSpecificComponentByDisplayName(FOOTER);
|
|
38
38
|
const header = getSpecificComponentByDisplayName(HEADER);
|
|
39
|
-
const memoizedNavigationControls = useMemo(() => ({
|
|
40
|
-
goToStepByIndex,
|
|
41
|
-
nextStep,
|
|
42
|
-
previousStep,
|
|
43
|
-
setStepByHash,
|
|
44
|
-
currentStep: step,
|
|
45
|
-
totalSteps: filteredChilds.length
|
|
46
|
-
}), [goToStepByIndex, nextStep, previousStep, setStepByHash, step, filteredChilds.length]);
|
|
39
|
+
const memoizedNavigationControls = useMemo(() => ({ goToStepByIndex, nextStep, previousStep, setStepByHash, currentStep: step }), [goToStepByIndex, nextStep, previousStep, setStepByHash, step]);
|
|
47
40
|
return (_jsxs(WizardContext.Provider, { value: memoizedNavigationControls, children: [header, _jsxs("div", { className: classNames, children: [currentStep, footer] })] }));
|
|
48
41
|
};
|
|
@@ -48,15 +48,8 @@ export const Wizard: React.FC<WizardProps> = ({ children, isHashEnabled = false,
|
|
|
48
48
|
const header = getSpecificComponentByDisplayName(HEADER)
|
|
49
49
|
|
|
50
50
|
const memoizedNavigationControls = useMemo(
|
|
51
|
-
() => ({
|
|
52
|
-
|
|
53
|
-
nextStep,
|
|
54
|
-
previousStep,
|
|
55
|
-
setStepByHash,
|
|
56
|
-
currentStep: step,
|
|
57
|
-
totalSteps: filteredChilds.length
|
|
58
|
-
}),
|
|
59
|
-
[goToStepByIndex, nextStep, previousStep, setStepByHash, step, filteredChilds.length]
|
|
51
|
+
() => ({ goToStepByIndex, nextStep, previousStep, setStepByHash, currentStep: step }),
|
|
52
|
+
[goToStepByIndex, nextStep, previousStep, setStepByHash, step]
|
|
60
53
|
)
|
|
61
54
|
|
|
62
55
|
return (
|
|
@@ -6,7 +6,6 @@ interface WizardContextInterFace {
|
|
|
6
6
|
goToStepByIndex: (step: number) => void
|
|
7
7
|
setStepByHash: (hash: string) => void
|
|
8
8
|
currentStep: number
|
|
9
|
-
totalSteps: number
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
export const WizardContext = createContext<WizardContextInterFace>({
|
|
@@ -14,6 +13,5 @@ export const WizardContext = createContext<WizardContextInterFace>({
|
|
|
14
13
|
nextStep: () => {},
|
|
15
14
|
goToStepByIndex: () => {},
|
|
16
15
|
setStepByHash: () => {},
|
|
17
|
-
currentStep: 0
|
|
18
|
-
totalSteps: 0
|
|
16
|
+
currentStep: 0
|
|
19
17
|
})
|
|
@@ -3,6 +3,6 @@ import { AppHeaderStyled, AppHeaderWrapper } from './AppHeader.styled';
|
|
|
3
3
|
import { DesktopMenu, MobileMenu } from '../../organisms';
|
|
4
4
|
import { Logo } from '../../atoms';
|
|
5
5
|
import './AppHeader.scss';
|
|
6
|
-
export const AppHeader = ({ siteName = 'LawDistrict', homeUrl = '/', sitePhone,
|
|
7
|
-
return (_jsx(AppHeaderStyled, { className: headerClassnames, children: _jsxs(AppHeaderWrapper, { itemScope: true, itemType: 'https://schema.org/Brand', className: `${headerFullWidth ? '--no-grid' : 'wrapper'}`, children: [_jsx("a", { className: 'header__logo', onClick: (event) => handleClickLogo(event, homeUrl), href: homeUrl, children: _jsx(Logo, { siteName: siteName, width: '188', height: '32' }) }), _jsx(DesktopMenu, { phoneNumber: sitePhone,
|
|
6
|
+
export const AppHeader = ({ siteName = 'LawDistrict', homeUrl = '/', sitePhone, scheduleText, headerFullWidth, menuList, toggleMenuHelpOpen, toggleMenuPersonalOpen, isHelpActive, isPersonalActive, userActions, helpTriggerImage, userTriggerImage, handleClickLogo, headerClassnames, closeText = 'Close', showTopBar }) => {
|
|
7
|
+
return (_jsx(AppHeaderStyled, { className: headerClassnames, children: _jsxs(AppHeaderWrapper, { itemScope: true, itemType: 'https://schema.org/Brand', className: `${headerFullWidth ? '--no-grid' : 'wrapper'}`, children: [_jsx("a", { className: 'header__logo', onClick: (event) => handleClickLogo(event, homeUrl), href: homeUrl, children: _jsx(Logo, { siteName: siteName, width: '188', height: '32' }) }), _jsx(DesktopMenu, { phoneNumber: sitePhone, menuList: menuList, userActions: userActions, homeUrl: homeUrl }), _jsx(MobileMenu, { closeText: closeText, helpTriggerImage: helpTriggerImage, isHelpActive: isHelpActive, isPersonalActive: isPersonalActive, toggleMenuHelpOpen: toggleMenuHelpOpen, toggleMenuPersonalOpen: toggleMenuPersonalOpen, userTriggerImage: userTriggerImage, homeUrl: homeUrl, menuList: menuList, scheduleText: scheduleText, sitePhone: sitePhone, userActions: userActions, showTopBar: showTopBar })] }) }));
|
|
8
8
|
};
|
|
@@ -9,7 +9,6 @@ export const AppHeader: React.FC<AppHeaderProps> = ({
|
|
|
9
9
|
siteName = 'LawDistrict',
|
|
10
10
|
homeUrl = '/',
|
|
11
11
|
sitePhone,
|
|
12
|
-
sitePhoneBorder,
|
|
13
12
|
scheduleText,
|
|
14
13
|
headerFullWidth,
|
|
15
14
|
menuList,
|
|
@@ -36,13 +35,7 @@ export const AppHeader: React.FC<AppHeaderProps> = ({
|
|
|
36
35
|
<Logo siteName={siteName} width='188' height='32' />
|
|
37
36
|
</a>
|
|
38
37
|
|
|
39
|
-
<DesktopMenu
|
|
40
|
-
phoneNumber={sitePhone}
|
|
41
|
-
phoneNumberBorder={sitePhoneBorder}
|
|
42
|
-
menuList={menuList}
|
|
43
|
-
userActions={userActions}
|
|
44
|
-
homeUrl={homeUrl}
|
|
45
|
-
/>
|
|
38
|
+
<DesktopMenu phoneNumber={sitePhone} menuList={menuList} userActions={userActions} homeUrl={homeUrl} />
|
|
46
39
|
|
|
47
40
|
<MobileMenu
|
|
48
41
|
closeText={closeText}
|
|
@@ -2,7 +2,7 @@ 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, id }) =>
|
|
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
8
|
return (_jsx(CardBoxFeaturedSectionStyled, { children: cards?.map(({ text, icon, id }) => (_jsx(CardBox, { text: text, icon: icon, padding: '16px', gap: '0.5rem', borderRadius: '8px' }, id))) }));
|
|
@@ -7,9 +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, id }) =>
|
|
11
|
-
<CardBox key={id} text={text} icon={icon} />
|
|
12
|
-
))}
|
|
10
|
+
{cards?.map(({ text, icon, id }) => <CardBox key={id} text={text} icon={icon} />)}
|
|
13
11
|
</CardBoxMinimalSectionStyled>
|
|
14
12
|
)
|
|
15
13
|
}
|
|
@@ -6,5 +6,5 @@ export const FaqSection = ({ groups, givenClass }) => {
|
|
|
6
6
|
if (!groups?.length)
|
|
7
7
|
return null;
|
|
8
8
|
const classnames = classNames(`faqSection ${givenClass ?? ''}`);
|
|
9
|
-
return (_jsx(FaqSectionStyled, { className: classnames, itemScope: true, itemType: 'https://www.schema.org/FAQPage', children: groups?.map((group) =>
|
|
9
|
+
return (_jsx(FaqSectionStyled, { className: classnames, itemScope: true, itemType: 'https://www.schema.org/FAQPage', children: groups?.map((group) => _jsx(FaqGroup, { ...group }, group.id)) }));
|
|
10
10
|
};
|
|
@@ -11,9 +11,7 @@ export const FaqSection: React.FC<FaqSectionProps> = ({ groups, givenClass }) =>
|
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<FaqSectionStyled className={classnames} itemScope itemType='https://www.schema.org/FAQPage'>
|
|
14
|
-
{groups?.map((group) =>
|
|
15
|
-
<FaqGroup key={group.id} {...group} />
|
|
16
|
-
))}
|
|
14
|
+
{groups?.map((group) => <FaqGroup key={group.id} {...group} />)}
|
|
17
15
|
</FaqSectionStyled>
|
|
18
16
|
)
|
|
19
17
|
}
|
|
@@ -3,11 +3,11 @@ import { StepsRatafiaContent } from '../../organisms';
|
|
|
3
3
|
import { StepsRatafiaSectionStyled } from './StepsRatafiaSection.styled';
|
|
4
4
|
import { Video } from '../../atoms';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
const StepsRatafiaSection = ({ title, steps, videoUrl, mainImage, description, videoPosterUrl
|
|
6
|
+
const StepsRatafiaSection = ({ title, steps, videoUrl, mainImage, description, videoPosterUrl }) => {
|
|
7
7
|
const isEsignatureLanding = !videoUrl;
|
|
8
8
|
const classnames = classNames({
|
|
9
9
|
'--is-esignature': isEsignatureLanding
|
|
10
10
|
});
|
|
11
|
-
return (_jsx(StepsRatafiaSectionStyled, { className: 'steps-ratafia-section', children: _jsxs("div", { className: `steps-ratafia-section__wrapper ${classnames}`, children: [!isEsignatureLanding ? (_jsx("div", { className: 'steps-ratafia-section__wrapper__video', children: _jsx(Video, { videoSrcURL: videoUrl, preload: 'none', poster: videoPosterUrl
|
|
11
|
+
return (_jsx(StepsRatafiaSectionStyled, { className: 'steps-ratafia-section', children: _jsxs("div", { className: `steps-ratafia-section__wrapper ${classnames}`, children: [!isEsignatureLanding ? (_jsx("div", { className: 'steps-ratafia-section__wrapper__video', children: _jsx(Video, { videoSrcURL: videoUrl, preload: 'none', poster: videoPosterUrl }) })) : (_jsx("div", { className: 'steps-ratafia-section__wrapper__image', children: mainImage })), _jsx("div", { className: 'steps-ratafia-section__wrapper__content', children: _jsx(StepsRatafiaContent, { title: title, steps: steps, description: description }) })] }) }));
|
|
12
12
|
};
|
|
13
13
|
export default StepsRatafiaSection;
|
|
@@ -25,7 +25,7 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
25
25
|
@media ${device.desktop} {
|
|
26
26
|
padding: 3rem 0 3rem 0;
|
|
27
27
|
}
|
|
28
|
-
@media ${device['desktop']} {
|
|
28
|
+
@media ${device['desktop-xl']} {
|
|
29
29
|
flex-direction: row;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
align-items: center;
|
|
@@ -36,7 +36,7 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
36
36
|
justify-content: center;
|
|
37
37
|
align-items: center;
|
|
38
38
|
max-width: 1024px;
|
|
39
|
-
@media ${device['desktop']} {
|
|
39
|
+
@media ${device['desktop-xl']} {
|
|
40
40
|
max-width: 720px;
|
|
41
41
|
}
|
|
42
42
|
img {
|
|
@@ -51,7 +51,7 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
51
51
|
justify-content: center;
|
|
52
52
|
|
|
53
53
|
max-width: 1024px;
|
|
54
|
-
@media ${device['desktop']} {
|
|
54
|
+
@media ${device['desktop-xl']} {
|
|
55
55
|
max-width: 720px;
|
|
56
56
|
}
|
|
57
57
|
video {
|
|
@@ -74,7 +74,7 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
74
74
|
@media ${device.desktop} {
|
|
75
75
|
padding: 3rem 0 3rem 0;
|
|
76
76
|
}
|
|
77
|
-
@media ${device['desktop']} {
|
|
77
|
+
@media ${device['desktop-xl']} {
|
|
78
78
|
flex-direction: row;
|
|
79
79
|
justify-content: center;
|
|
80
80
|
align-items: center;
|
|
@@ -94,10 +94,10 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
94
94
|
|
|
95
95
|
.step-ratafia-card-list {
|
|
96
96
|
flex-direction: column;
|
|
97
|
-
@media ${device['
|
|
97
|
+
@media ${device['laptop']} {
|
|
98
98
|
flex-direction: row;
|
|
99
99
|
}
|
|
100
|
-
@media ${device['desktop']} {
|
|
100
|
+
@media ${device['desktop-xl']} {
|
|
101
101
|
flex-direction: column;
|
|
102
102
|
justify-content: center;
|
|
103
103
|
align-items: center;
|
|
@@ -109,7 +109,7 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
109
109
|
@media ${device['laptop']} {
|
|
110
110
|
width: 33%;
|
|
111
111
|
}
|
|
112
|
-
@media ${device['desktop']} {
|
|
112
|
+
@media ${device['desktop-xl']} {
|
|
113
113
|
width: 100%;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -26,7 +26,7 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
26
26
|
@media ${device.desktop} {
|
|
27
27
|
padding: 3rem 0 3rem 0;
|
|
28
28
|
}
|
|
29
|
-
@media ${device['desktop']} {
|
|
29
|
+
@media ${device['desktop-xl']} {
|
|
30
30
|
flex-direction: row;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
@@ -37,7 +37,7 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
37
37
|
justify-content: center;
|
|
38
38
|
align-items: center;
|
|
39
39
|
max-width: 1024px;
|
|
40
|
-
@media ${device['desktop']} {
|
|
40
|
+
@media ${device['desktop-xl']} {
|
|
41
41
|
max-width: 720px;
|
|
42
42
|
}
|
|
43
43
|
img {
|
|
@@ -52,7 +52,7 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
52
52
|
justify-content: center;
|
|
53
53
|
|
|
54
54
|
max-width: 1024px;
|
|
55
|
-
@media ${device['desktop']} {
|
|
55
|
+
@media ${device['desktop-xl']} {
|
|
56
56
|
max-width: 720px;
|
|
57
57
|
}
|
|
58
58
|
video {
|
|
@@ -75,7 +75,7 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
75
75
|
@media ${device.desktop} {
|
|
76
76
|
padding: 3rem 0 3rem 0;
|
|
77
77
|
}
|
|
78
|
-
@media ${device['desktop']} {
|
|
78
|
+
@media ${device['desktop-xl']} {
|
|
79
79
|
flex-direction: row;
|
|
80
80
|
justify-content: center;
|
|
81
81
|
align-items: center;
|
|
@@ -95,10 +95,10 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
95
95
|
|
|
96
96
|
.step-ratafia-card-list {
|
|
97
97
|
flex-direction: column;
|
|
98
|
-
@media ${device['
|
|
98
|
+
@media ${device['laptop']} {
|
|
99
99
|
flex-direction: row;
|
|
100
100
|
}
|
|
101
|
-
@media ${device['desktop']} {
|
|
101
|
+
@media ${device['desktop-xl']} {
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
justify-content: center;
|
|
104
104
|
align-items: center;
|
|
@@ -110,7 +110,7 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
110
110
|
@media ${device['laptop']} {
|
|
111
111
|
width: 33%;
|
|
112
112
|
}
|
|
113
|
-
@media ${device['desktop']} {
|
|
113
|
+
@media ${device['desktop-xl']} {
|
|
114
114
|
width: 100%;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -12,8 +12,7 @@ const StepsRatafiaSection: FC<StepsRatafiaSectionProps> = ({
|
|
|
12
12
|
videoUrl,
|
|
13
13
|
mainImage,
|
|
14
14
|
description,
|
|
15
|
-
videoPosterUrl
|
|
16
|
-
videoMimeType
|
|
15
|
+
videoPosterUrl
|
|
17
16
|
}) => {
|
|
18
17
|
const isEsignatureLanding = !videoUrl
|
|
19
18
|
const classnames = classNames({
|
|
@@ -25,7 +24,7 @@ const StepsRatafiaSection: FC<StepsRatafiaSectionProps> = ({
|
|
|
25
24
|
<div className={`steps-ratafia-section__wrapper ${classnames}`}>
|
|
26
25
|
{!isEsignatureLanding ? (
|
|
27
26
|
<div className='steps-ratafia-section__wrapper__video'>
|
|
28
|
-
<Video videoSrcURL={videoUrl} preload='none' poster={videoPosterUrl}
|
|
27
|
+
<Video videoSrcURL={videoUrl} preload='none' poster={videoPosterUrl} />
|
|
29
28
|
</div>
|
|
30
29
|
) : (
|
|
31
30
|
<div className='steps-ratafia-section__wrapper__image'>{mainImage}</div>
|
|
@@ -55,8 +55,11 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.background-ratafia-animation {
|
|
58
|
-
background:
|
|
59
|
-
|
|
58
|
+
background: radial-gradient(
|
|
59
|
+
90.31% 103.09% at 74.2% -62.04%,
|
|
60
|
+
var(--primary-main-dark-2) 0%,
|
|
61
|
+
var(--primary-main-dark-1) 100%
|
|
62
|
+
),
|
|
60
63
|
radial-gradient(80.63% 44.37% at 73.54% 70.76%, var(--primary-main) 0%, var(--primary-main-dark-2) 100%),
|
|
61
64
|
radial-gradient(92.19% 33.51% at 0% 0%, var(--primary-main) 0%, var(--primary-main-dark-1) 100%),
|
|
62
65
|
var(--primary-main-dark-2);
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
// Figma tokens reference: figma-tokens/
|
|
5
|
-
// =============================================================================
|
|
6
|
-
|
|
7
|
-
// Breakpoints (relate to figma-tokens/grids/Mode 1.tokens.json: grid-xl, grid-l, grid-m, grid-s)
|
|
3
|
+
// Breakpoints
|
|
8
4
|
$xl: 1600px;
|
|
9
5
|
$lg: 1200px;
|
|
10
6
|
$md: 960px;
|
|
@@ -12,63 +8,48 @@ $sm: 720px;
|
|
|
12
8
|
$xs: 575px;
|
|
13
9
|
$xxs: 328px;
|
|
14
10
|
|
|
15
|
-
// Colors
|
|
16
|
-
// primary.* ↔ primary/50 … primary/900 | secondary.* ↔ secondary/50 … secondary/700
|
|
17
|
-
// neutral.* ↔ neutral/25, 50, 200, 400, 600, 800, 900, white | error.* ↔ error/20, 200, 500
|
|
18
|
-
// others.* ↔ others/black, others/disabled
|
|
11
|
+
// Colors
|
|
19
12
|
$colors: (
|
|
20
13
|
primary: (
|
|
21
14
|
main-light-6: var(--primary-main-light-6),
|
|
22
|
-
// ~ primary/50–100
|
|
23
15
|
main-light-5: var(--primary-main-light-5),
|
|
24
16
|
main-light-4: var(--primary-main-light-4),
|
|
25
17
|
main-light-3: var(--primary-main-light-3),
|
|
26
18
|
main-light-2: var(--primary-main-light-2),
|
|
27
19
|
main-light-1: var(--primary-main-light-1),
|
|
28
20
|
main: var(--primary-main),
|
|
29
|
-
// ~ primary/500
|
|
30
21
|
main-dark-1: var(--primary-main-dark-1),
|
|
31
22
|
main-dark-1-rgb: var(--primary-main-dark-1-rgb),
|
|
32
|
-
main-dark-2: var(--primary-main-dark-2)
|
|
23
|
+
main-dark-2: var(--primary-main-dark-2)
|
|
33
24
|
),
|
|
34
25
|
secondary: (
|
|
35
26
|
main-light-5: var(--secondary-main-light-5),
|
|
36
|
-
// ~ secondary/50–100
|
|
37
27
|
main-light-4: var(--secondary-main-light-4),
|
|
38
28
|
main-light-3: var(--secondary-main-light-3),
|
|
39
29
|
main-light-2: var(--secondary-main-light-2),
|
|
40
30
|
main-light-1: var(--secondary-main-light-1),
|
|
41
31
|
main: var(--secondary-main),
|
|
42
|
-
// ~ secondary/400–500
|
|
43
32
|
main-dark-1: var(--secondary-main-dark-1),
|
|
44
|
-
main-dark-2: var(--secondary-main-dark-2)
|
|
33
|
+
main-dark-2: var(--secondary-main-dark-2)
|
|
45
34
|
),
|
|
46
35
|
neutral: (
|
|
47
36
|
main: var(--neutral-main),
|
|
48
|
-
// ~ neutral/600–800
|
|
49
37
|
neutral-1: var(--neutral-neutral-1),
|
|
50
|
-
// ~ neutral/25
|
|
51
38
|
neutral-2: var(--neutral-neutral-2),
|
|
52
|
-
// ~ neutral/50–200
|
|
53
39
|
neutral-3: var(--neutral-neutral-3),
|
|
54
40
|
neutral-4: var(--neutral-neutral-4),
|
|
55
|
-
// ~ neutral/400
|
|
56
41
|
neutral-5: var(--neutral-neutral-5),
|
|
57
|
-
neutral-6: var(--neutral-neutral-6)
|
|
42
|
+
neutral-6: var(--neutral-neutral-6)
|
|
58
43
|
),
|
|
59
44
|
error: (
|
|
60
45
|
main: var(--error-main),
|
|
61
|
-
// ~ error/500
|
|
62
46
|
error-2: var(--error-error-2),
|
|
63
|
-
// ~ error/200
|
|
64
47
|
error-3: var(--error-error-3)
|
|
65
48
|
),
|
|
66
49
|
others: (
|
|
67
50
|
white: var(--others-white),
|
|
68
|
-
// ~ neutral/white
|
|
69
51
|
disabled: var(--others-disabled),
|
|
70
|
-
|
|
71
|
-
black: var(--others-black) // others/black
|
|
52
|
+
black: var(--others-black)
|
|
72
53
|
)
|
|
73
54
|
);
|
|
74
55
|
|
|
@@ -77,19 +58,19 @@ $colors: (
|
|
|
77
58
|
@return $color;
|
|
78
59
|
}
|
|
79
60
|
|
|
80
|
-
// Box shadow
|
|
61
|
+
// Box shadow
|
|
81
62
|
$box-shadow-small: var(--box-shadow-small);
|
|
82
63
|
$box-shadow-medium: var(--box-shadow-medium);
|
|
83
64
|
$box-shadow-menu: var(--box-shadow-menu);
|
|
84
65
|
$box-shadow-tippy-box: var(--box-shadow-tippy-box);
|
|
85
66
|
$box-shadow-container: var(--box-shadow-container);
|
|
86
67
|
|
|
87
|
-
// Fonts
|
|
88
|
-
$font-sans: 'Inter', sans-serif;
|
|
89
|
-
$font-serif: 'Lora', serif;
|
|
68
|
+
// Fonts
|
|
69
|
+
$font-sans: 'Inter', sans-serif;
|
|
70
|
+
$font-serif: 'Lora', serif;
|
|
90
71
|
|
|
91
|
-
// Layout
|
|
72
|
+
// Layout
|
|
92
73
|
$max-width: $lg;
|
|
93
74
|
|
|
94
|
-
//
|
|
75
|
+
//menu
|
|
95
76
|
$menu-height-mobile: 3.25rem;
|
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
// =============================================================================
|
|
2
|
-
// Figma tokens reference: figma-tokens/
|
|
3
|
-
// =============================================================================
|
|
4
|
-
|
|
5
1
|
html {
|
|
6
|
-
// figma-tokens/font: font-family/primary, font-family/secondary (Lawdistrict: Inter, Lora)
|
|
7
2
|
--font-sans: 'Inter', sans-serif;
|
|
8
3
|
--font-serif: 'Lora', serif;
|
|
9
4
|
|
|
10
|
-
// figma-tokens/border-and-spacing/Mode 1.tokens.json: border-radius/sm (4px), border-radius/md (8px), border-radius/l (16px)
|
|
11
5
|
--s-border-radius: 0.25rem;
|
|
12
6
|
--m-border-radius: 0.5rem;
|
|
13
7
|
--l-border-radius: 1rem;
|
|
14
8
|
|
|
15
|
-
// figma-tokens/box-shadow/value.tokens.json:
|
|
16
|
-
// small, medium (color uses primary dark; menu/tippy/container are variants)
|
|
17
9
|
--box-shadow-small: 0 0.125rem 0.375rem 0 rgba(var(--primary-main-dark-1-rgb), 0.25);
|
|
18
10
|
--box-shadow-medium: 0 0.25rem 0.5rem 0 rgba(var(--primary-main-dark-1-rgb), 0.2);
|
|
19
11
|
--box-shadow-menu: 0 0.25rem 0.5rem -0.5rem rgba(var(--primary-main-dark-1-rgb), 0.2);
|
|
20
12
|
--box-shadow-tippy-box: 0 0.25rem 0.5rem 0.25rem rgba(var(--primary-main-dark-1-rgb), 0.2);
|
|
21
13
|
--box-shadow-container: 0px 2px 6px 0px rgba(var(--primary-main-dark-1-rgb), 0.25);
|
|
22
14
|
|
|
23
|
-
// figma-tokens/border-and-spacing/Mode 1.tokens.json: spacing scale (e.g. spacing/sm 16px → 1rem)
|
|
24
15
|
--global-gap: 1rem;
|
|
25
16
|
}
|
|
26
17
|
|
|
27
|
-
// Theme: Legalfinity — figma-tokens/font/Legalfinity.tokens.json (font-family/primary, secondary → Poppins)
|
|
28
18
|
html[data-theme='primaryblue'] {
|
|
29
19
|
--font-sans: 'Poppins', sans-serif;
|
|
30
20
|
--font-serif: 'Poppins', serif;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
interface UseIntersectionObserverParams {
|
|
3
3
|
options?: IntersectionObserverInit;
|
|
4
4
|
defaultIntersecting?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare function useIntersectionObserver<T extends HTMLElement>({ options, defaultIntersecting }?: UseIntersectionObserverParams): [RefObject<T>, boolean];
|
|
6
|
+
export declare function useIntersectionObserver<T extends HTMLElement>({ options, defaultIntersecting }?: UseIntersectionObserverParams): [RefObject<T | null>, boolean];
|
|
7
7
|
export {};
|
|
@@ -4,7 +4,7 @@ export function useIntersectionObserver({ options = {}, defaultIntersecting = fa
|
|
|
4
4
|
const elementRef = useRef(null);
|
|
5
5
|
useEffect(() => {
|
|
6
6
|
const currentElement = elementRef.current;
|
|
7
|
-
if (currentElement
|
|
7
|
+
if (!currentElement)
|
|
8
8
|
return;
|
|
9
9
|
const observer = new IntersectionObserver((entries) => {
|
|
10
10
|
entries.forEach((entry) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefObject, useEffect, useRef, useState } from 'react'
|
|
2
2
|
|
|
3
3
|
interface UseIntersectionObserverParams {
|
|
4
4
|
options?: IntersectionObserverInit
|
|
@@ -8,13 +8,13 @@ interface UseIntersectionObserverParams {
|
|
|
8
8
|
export function useIntersectionObserver<T extends HTMLElement>({
|
|
9
9
|
options = {},
|
|
10
10
|
defaultIntersecting = false
|
|
11
|
-
}: UseIntersectionObserverParams = {}): [RefObject<T>, boolean] {
|
|
11
|
+
}: UseIntersectionObserverParams = {}): [RefObject<T | null>, boolean] {
|
|
12
12
|
const [isIntersecting, setIsIntersecting] = useState(defaultIntersecting)
|
|
13
|
-
const elementRef = useRef<T>(null)
|
|
13
|
+
const elementRef = useRef<T>(null)
|
|
14
14
|
|
|
15
15
|
useEffect(() => {
|
|
16
16
|
const currentElement = elementRef.current
|
|
17
|
-
if (currentElement
|
|
17
|
+
if (!currentElement) return
|
|
18
18
|
|
|
19
19
|
const observer = new IntersectionObserver((entries) => {
|
|
20
20
|
entries.forEach((entry) => {
|