@npm_leadtech/legal-lib-components 4.1.14 → 4.1.16
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/DatePickerCustom/index.js +14680 -1
- package/dist/{DatePickerCustom → src/components/atoms/DatePickerCustom}/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/DatePickerCustom/index.js +0 -14680
- package/dist/images/componentsSvg/ArrowRight.js +0 -2
- package/dist/images/componentsSvg/ChevronExpandLess.js +0 -2
- package/dist/images/componentsSvg/ChevronExpandMore.js +0 -2
- package/dist/images/componentsSvg/ChevronRight.js +0 -2
- package/dist/images/componentsSvg/ChevronRight24px.js +0 -2
- package/dist/images/componentsSvg/Done24px.js +0 -2
- package/dist/images/componentsSvg/Done24pxoutlined.js +0 -4
- package/dist/images/componentsSvg/InfoError24pxOutlined.js +0 -2
- package/dist/images/componentsSvg/MailSvg.js +0 -4
- package/dist/images/componentsSvg/MenuCollapse24p.js +0 -2
- package/dist/images/componentsSvg/NewRelease24p.js +0 -2
- package/dist/images/componentsSvg/SvgProps.js +0 -1
- package/dist/images/componentsSvg/SymbolDoc.js +0 -4
- package/dist/images/componentsSvg/Time24px.js +0 -2
- package/dist/images/componentsSvg/flags/GBFlag.js +0 -4
- package/dist/images/componentsSvg/flags/USFlag.js +0 -4
- package/dist/images/componentsSvg/generalCategories/BusinessIconCategory.js +0 -4
- package/dist/images/componentsSvg/generalCategories/EmploymentIconCategory.js +0 -4
- package/dist/images/componentsSvg/generalCategories/FinanceIconCategory.js +0 -4
- package/dist/images/componentsSvg/generalCategories/PersonalFamilyIconCategory.js +0 -4
- package/dist/images/componentsSvg/generalCategories/RealEstateIconCategory.js +0 -4
- package/dist/images/componentsSvg/generalCategories/index.js +0 -5
- package/dist/src/components/atoms/ActionButtonHeaderRatafiaCard/ActionButtonHeaderRatafiaCard.js +0 -6
- package/dist/src/components/atoms/ActionButtonHeaderRatafiaCard/ActionButtonHeaderRatafiaCardProps.types.js +0 -1
- package/dist/src/components/atoms/ActionButtonHeaderRatafiaCard/index.js +0 -1
- package/dist/src/components/atoms/AddButton/AddButton.js +0 -6
- package/dist/src/components/atoms/AddButton/AddButtonProps.types.js +0 -1
- package/dist/src/components/atoms/AddButton/index.js +0 -1
- package/dist/src/components/atoms/BaseBox/BaseBox.js +0 -15
- package/dist/src/components/atoms/BaseBox/BaseBox.styled.js +0 -24
- package/dist/src/components/atoms/BaseBox/BaseBoxProps.types.js +0 -1
- package/dist/src/components/atoms/BaseBox/index.js +0 -1
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +0 -6
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCardProps.types.js +0 -1
- package/dist/src/components/atoms/BenefitRatafiaCard/index.js +0 -1
- package/dist/src/components/atoms/BillCard/BillCard.js +0 -6
- package/dist/src/components/atoms/BillCard/BillCardProps.types.js +0 -1
- package/dist/src/components/atoms/BillCard/index.js +0 -1
- package/dist/src/components/atoms/BottomOverlayMenu/BottomOverlayMenu.js +0 -7
- package/dist/src/components/atoms/BottomOverlayMenu/BottomOverlayMenuProps.types.js +0 -1
- package/dist/src/components/atoms/BottomOverlayMenu/index.js +0 -1
- package/dist/src/components/atoms/BreadcrumItem/BreadcrumItem.js +0 -7
- package/dist/src/components/atoms/BreadcrumItem/BreadcrumItemProps.types.js +0 -1
- package/dist/src/components/atoms/BreadcrumItem/index.js +0 -1
- package/dist/src/components/atoms/Button/Button.js +0 -54
- package/dist/src/components/atoms/Button/ButtonProps.types.js +0 -1
- package/dist/src/components/atoms/Button/index.js +0 -1
- package/dist/src/components/atoms/ButtonIcon/ButtonIcon.js +0 -26
- package/dist/src/components/atoms/ButtonIcon/ButtonIconProps.types.js +0 -1
- package/dist/src/components/atoms/ButtonIcon/index.js +0 -1
- package/dist/src/components/atoms/CardPane/CardPane.js +0 -9
- package/dist/src/components/atoms/CardPane/CardPaneInfo.js +0 -15
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.js +0 -1
- package/dist/src/components/atoms/CardPane/index.js +0 -1
- package/dist/src/components/atoms/Checkbox/Checkbox.js +0 -7
- package/dist/src/components/atoms/Checkbox/CheckboxProps.types.js +0 -1
- package/dist/src/components/atoms/Checkbox/index.js +0 -1
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.js +0 -79
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.js +0 -1
- package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.js +0 -53
- package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIconProps.types.js +0 -1
- package/dist/src/components/atoms/DialogMenuIcon/index.js +0 -1
- package/dist/src/components/atoms/Disclaimer/Disclaimer.js +0 -9
- package/dist/src/components/atoms/Disclaimer/DisclaimerProps.types.js +0 -1
- package/dist/src/components/atoms/Disclaimer/index.js +0 -1
- package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.js +0 -21
- package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafiaProps.js +0 -1
- package/dist/src/components/atoms/DisclaimerRatafia/index.js +0 -1
- package/dist/src/components/atoms/Divider/Divider.js +0 -8
- package/dist/src/components/atoms/Divider/DividerProps.types.js +0 -1
- package/dist/src/components/atoms/Divider/index.js +0 -1
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +0 -15
- package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.js +0 -1
- package/dist/src/components/atoms/DocumentStatus/index.js +0 -1
- package/dist/src/components/atoms/DocumentTag/DocumentTag.js +0 -7
- package/dist/src/components/atoms/DocumentTag/DocumentTagProps.js +0 -1
- package/dist/src/components/atoms/DocumentTag/index.js +0 -1
- package/dist/src/components/atoms/ExpertCard/ExpertCard.js +0 -6
- package/dist/src/components/atoms/ExpertCard/ExpertCardProps.types.js +0 -1
- package/dist/src/components/atoms/ExpertCard/index.js +0 -1
- package/dist/src/components/atoms/FeatureRatafiaCard/FeatureRatafiaCard.js +0 -6
- package/dist/src/components/atoms/FeatureRatafiaCard/FeatureRatafiaCardProps.types.js +0 -1
- package/dist/src/components/atoms/FeatureRatafiaCard/index.js +0 -1
- package/dist/src/components/atoms/FormFaq/FormFaq.js +0 -6
- package/dist/src/components/atoms/FormFaq/FormFaqProps.types.js +0 -1
- package/dist/src/components/atoms/FormFaq/index.js +0 -1
- package/dist/src/components/atoms/GoogleButton/GoogleButton.js +0 -7
- package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.js +0 -1
- package/dist/src/components/atoms/GoogleButton/index.js +0 -1
- package/dist/src/components/atoms/IconImage/IconImage.js +0 -9
- package/dist/src/components/atoms/IconImage/IconImageProps.types.js +0 -1
- package/dist/src/components/atoms/IconImage/index.js +0 -1
- package/dist/src/components/atoms/IconSvgURLWithThemeColor/IconSvgURLWithThemeColor.js +0 -15
- package/dist/src/components/atoms/IconSvgURLWithThemeColor/IconSvgURLWithThemeColorProps.types.js +0 -1
- package/dist/src/components/atoms/IconSvgURLWithThemeColor/index.js +0 -1
- package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.js +0 -6
- package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.types.js +0 -1
- package/dist/src/components/atoms/IconTextInfoSection/index.js +0 -1
- package/dist/src/components/atoms/InfoBox/InfoBox.js +0 -7
- package/dist/src/components/atoms/InfoBox/InfoBoxProps.types.js +0 -1
- package/dist/src/components/atoms/InfoBox/index.js +0 -1
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStatic.js +0 -5
- package/dist/src/components/atoms/JumbotronStatic/JumbotronStaticProps.types.js +0 -1
- package/dist/src/components/atoms/JumbotronStatic/index.js +0 -1
- package/dist/src/components/atoms/KeyFactRatafiaCard/KeyFactRatafiaCard.js +0 -6
- package/dist/src/components/atoms/KeyFactRatafiaCard/KeyFactRatafiaCardProps.types.js +0 -1
- package/dist/src/components/atoms/KeyFactRatafiaCard/index.js +0 -1
- package/dist/src/components/atoms/Logo/Logo.js +0 -48
- package/dist/src/components/atoms/Logo/LogoProps.types.js +0 -1
- package/dist/src/components/atoms/Logo/index.js +0 -1
- package/dist/src/components/atoms/LogoText/LogoText.js +0 -6
- package/dist/src/components/atoms/LogoText/LogoTextProps.types.js +0 -1
- package/dist/src/components/atoms/LogoText/index.js +0 -1
- package/dist/src/components/atoms/MenuItems/MenuItemProps.types.js +0 -1
- package/dist/src/components/atoms/MenuItems/MenuItems.js +0 -41
- package/dist/src/components/atoms/MenuItems/index.js +0 -1
- package/dist/src/components/atoms/Message/Message.js +0 -8
- package/dist/src/components/atoms/Message/MessageProps.types.js +0 -1
- package/dist/src/components/atoms/Message/index.js +0 -1
- package/dist/src/components/atoms/MessageInformation/MessageInformation.js +0 -6
- package/dist/src/components/atoms/MessageInformation/MessageInformationProps.types.js +0 -1
- package/dist/src/components/atoms/MessageInformation/index.js +0 -1
- package/dist/src/components/atoms/MoreDocsItem/MoreDocsItem.js +0 -12
- package/dist/src/components/atoms/MoreDocsItem/MoreDocsItemProps.js +0 -1
- package/dist/src/components/atoms/MoreDocsItem/index.js +0 -2
- package/dist/src/components/atoms/NavMenuItem/NavMenuItem.js +0 -8
- package/dist/src/components/atoms/NavMenuItem/NavMenuItemProps.js +0 -1
- package/dist/src/components/atoms/NavMenuItem/index.js +0 -2
- package/dist/src/components/atoms/PaypalButton/PaypalButton.js +0 -7
- package/dist/src/components/atoms/PaypalButton/PaypalButtonProps.types.js +0 -1
- package/dist/src/components/atoms/PaypalButton/index.js +0 -1
- package/dist/src/components/atoms/PopularDocsItem/PopularDocsItem.js +0 -7
- package/dist/src/components/atoms/PopularDocsItem/PopularDocsItemProps.js +0 -1
- package/dist/src/components/atoms/PopularDocsItem/index.js +0 -2
- package/dist/src/components/atoms/ProgressBar/ProgressBar.js +0 -7
- package/dist/src/components/atoms/ProgressBar/ProgressBarProps.types.js +0 -1
- package/dist/src/components/atoms/ProgressBar/index.js +0 -1
- package/dist/src/components/atoms/Radio/Radio.js +0 -20
- package/dist/src/components/atoms/Radio/RadioProps.types.js +0 -1
- package/dist/src/components/atoms/Radio/index.js +0 -1
- package/dist/src/components/atoms/RemoveButton/RemoveButton.js +0 -7
- package/dist/src/components/atoms/RemoveButton/RemoveButtonProps.types.js +0 -1
- package/dist/src/components/atoms/RemoveButton/index.js +0 -1
- package/dist/src/components/atoms/ReviewKeyFactsResultRatafia/ReviewKeyFactsResultRatafia.js +0 -6
- package/dist/src/components/atoms/ReviewKeyFactsResultRatafia/ReviewKeyFactsResultRatafiaProps.types.js +0 -1
- package/dist/src/components/atoms/ReviewKeyFactsResultRatafia/index.js +0 -1
- package/dist/src/components/atoms/RichTextInner/RichTextInner.js +0 -4
- package/dist/src/components/atoms/RichTextInner/RichTextInnerProps.types.js +0 -1
- package/dist/src/components/atoms/RichTextInner/index.js +0 -1
- package/dist/src/components/atoms/RichTextStrapi/RichTextMedia.js +0 -1
- package/dist/src/components/atoms/RichTextStrapi/RichTextStrapi.js +0 -9
- package/dist/src/components/atoms/RichTextStrapi/RichTextStrapiProps.js +0 -1
- package/dist/src/components/atoms/RichTextStrapi/index.js +0 -1
- package/dist/src/components/atoms/RichTextStrapi/useFormattedText.js +0 -24
- package/dist/src/components/atoms/SearchSelect/SearchSelect.js +0 -55
- package/dist/src/components/atoms/SearchSelect/SearchSelectProps.types.js +0 -1
- package/dist/src/components/atoms/SearchSelect/index.js +0 -1
- package/dist/src/components/atoms/ShowMoreBox/ShowMoreBox.js +0 -13
- package/dist/src/components/atoms/ShowMoreBox/ShowMoreBoxProps.js +0 -1
- package/dist/src/components/atoms/ShowMoreBox/index.js +0 -1
- package/dist/src/components/atoms/SidemenuTab/SideMenuTabProps.types.js +0 -1
- package/dist/src/components/atoms/SidemenuTab/SidemenuTab.js +0 -17
- package/dist/src/components/atoms/SidemenuTab/index.js +0 -1
- package/dist/src/components/atoms/Spinner/Spinner.js +0 -6
- package/dist/src/components/atoms/Spinner/SpinnerProps.types.js +0 -1
- package/dist/src/components/atoms/Spinner/index.js +0 -1
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.js +0 -6
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCardProps.types.js +0 -1
- package/dist/src/components/atoms/StepRatafiaCard/index.js +0 -1
- package/dist/src/components/atoms/Tag/Tag.js +0 -5
- package/dist/src/components/atoms/Tag/TagProps.js +0 -1
- package/dist/src/components/atoms/Tag/index.js +0 -2
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.js +0 -6
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItemProps.types.js +0 -1
- package/dist/src/components/atoms/TagRatafiaItem/index.js +0 -1
- package/dist/src/components/atoms/Tagline/Tagline.js +0 -5
- package/dist/src/components/atoms/Tagline/TaglineProps.types.js +0 -1
- package/dist/src/components/atoms/Tagline/index.js +0 -1
- package/dist/src/components/atoms/TestAB/TestAB.js +0 -23
- package/dist/src/components/atoms/TextArea/TextArea.js +0 -9
- package/dist/src/components/atoms/TextArea/TextAreaProps.types.js +0 -1
- package/dist/src/components/atoms/TextArea/index.js +0 -1
- package/dist/src/components/atoms/Toggle/Toggle.js +0 -6
- package/dist/src/components/atoms/Toggle/ToggleProps.types.js +0 -1
- package/dist/src/components/atoms/Toggle/index.js +0 -1
- package/dist/src/components/atoms/Tooltip/Tooltip.js +0 -14
- package/dist/src/components/atoms/Tooltip/TooltipProps.types.js +0 -1
- package/dist/src/components/atoms/Tooltip/index.js +0 -1
- package/dist/src/components/atoms/TopBar/TopBar.js +0 -12
- package/dist/src/components/atoms/TopBar/TopBarProps.types.js +0 -1
- package/dist/src/components/atoms/TopBar/index.js +0 -1
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.js +0 -9
- package/dist/src/components/atoms/TopBarMobile/index.js +0 -1
- package/dist/src/components/atoms/TrustPilot/TrustPilot.js +0 -6
- package/dist/src/components/atoms/TrustPilot/TrustPilotProps.types.js +0 -1
- package/dist/src/components/atoms/TrustPilot/index.js +0 -1
- package/dist/src/components/atoms/Video/Video.js +0 -9
- package/dist/src/components/atoms/Video/VideoProps.types.js +0 -1
- package/dist/src/components/atoms/Video/index.js +0 -1
- package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.js +0 -8
- package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItemsProps.types.js +0 -1
- package/dist/src/components/atoms/WhyLawDistrictItems/index.js +0 -1
- package/dist/src/components/atoms/WideInfoBar/WideInfoBar.js +0 -7
- package/dist/src/components/atoms/WideInfoBar/index.js +0 -1
- package/dist/src/components/atoms/index.js +0 -60
- package/dist/src/components/molecules/AccordionItem/AccordionItem.js +0 -23
- package/dist/src/components/molecules/AccordionItem/AccordionItemProps.types.js +0 -1
- package/dist/src/components/molecules/AccordionItem/index.js +0 -1
- package/dist/src/components/molecules/ActionButtonHeaderRatafiaCardList/ActionButtonHeaderRatafiaCardList.js +0 -9
- package/dist/src/components/molecules/ActionButtonHeaderRatafiaCardList/ActionButtonHeaderRatafiaCardListProps.types.js +0 -1
- package/dist/src/components/molecules/ActionButtonHeaderRatafiaCardList/index.js +0 -1
- package/dist/src/components/molecules/AlsoKnownAs/AlsoKnownAs.js +0 -10
- package/dist/src/components/molecules/AlsoKnownAs/AlsoKnownAsProps.types.js +0 -1
- package/dist/src/components/molecules/AlsoKnownAs/index.js +0 -1
- package/dist/src/components/molecules/Article/Article.js +0 -7
- package/dist/src/components/molecules/Article/ArticleProps.types.js +0 -1
- package/dist/src/components/molecules/Article/index.js +0 -1
- package/dist/src/components/molecules/BaseBoxList/BaseBoxList.js +0 -13
- package/dist/src/components/molecules/BaseBoxList/BaseBoxListProps.types.js +0 -1
- package/dist/src/components/molecules/BaseBoxList/index.js +0 -1
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.js +0 -9
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.js +0 -1
- package/dist/src/components/molecules/BenefitRatafiaCardList/index.js +0 -1
- package/dist/src/components/molecules/BottomFixedBar/BottomFixedBar.js +0 -9
- package/dist/src/components/molecules/BottomFixedBar/BottomFixedBarProps.types.js +0 -1
- package/dist/src/components/molecules/BottomFixedBar/index.js +0 -1
- package/dist/src/components/molecules/BottomOverlay/BottomOverlay.js +0 -49
- package/dist/src/components/molecules/BottomOverlay/BottomOverlayProps.types.js +0 -1
- package/dist/src/components/molecules/BottomOverlay/index.js +0 -1
- package/dist/src/components/molecules/BoxForm/BoxForm.js +0 -21
- package/dist/src/components/molecules/BoxForm/BoxFormProps.types.js +0 -1
- package/dist/src/components/molecules/BoxForm/index.js +0 -1
- package/dist/src/components/molecules/Breadcrumb/Breadcrumb.js +0 -7
- package/dist/src/components/molecules/Breadcrumb/BreadcrumbProps.types.js +0 -1
- package/dist/src/components/molecules/Breadcrumb/index.js +0 -1
- package/dist/src/components/molecules/ContactBox/ContactBox.js +0 -14
- package/dist/src/components/molecules/ContactBox/ContactBoxProps.types.js +0 -1
- package/dist/src/components/molecules/ContactBox/index.js +0 -1
- package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBanner.js +0 -13
- package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBannerProps.types.js +0 -1
- package/dist/src/components/molecules/ContinueEditingBanner/index.js +0 -1
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +0 -34
- package/dist/src/components/molecules/CountDownMessage/CountDownMessageProps.types.js +0 -1
- package/dist/src/components/molecules/CountDownMessage/index.js +0 -1
- package/dist/src/components/molecules/EmailContactBox/EmailContactBox.js +0 -6
- package/dist/src/components/molecules/EmailContactBox/EmailContactBoxProps.js +0 -1
- package/dist/src/components/molecules/EmailContactBox/index.js +0 -2
- package/dist/src/components/molecules/ExpertCardList/ExpertCardList.js +0 -10
- package/dist/src/components/molecules/ExpertCardList/ExpertCardListProps.types.js +0 -1
- package/dist/src/components/molecules/ExpertCardList/index.js +0 -1
- package/dist/src/components/molecules/FaqItem/FaqItem.js +0 -12
- package/dist/src/components/molecules/FaqItem/FaqItemProps.js +0 -1
- package/dist/src/components/molecules/FaqItem/index.js +0 -2
- package/dist/src/components/molecules/FeatureRatafiaCardList/FeatureRatafiaCardList.js +0 -9
- package/dist/src/components/molecules/FeatureRatafiaCardList/FeatureRatafiaCardListProps.types.js +0 -1
- package/dist/src/components/molecules/FeatureRatafiaCardList/index.js +0 -1
- package/dist/src/components/molecules/Feedback/Feedback.js +0 -42
- package/dist/src/components/molecules/Feedback/FeedbackProps.types.js +0 -1
- package/dist/src/components/molecules/Feedback/index.js +0 -1
- package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.js +0 -22
- package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.types.js +0 -1
- package/dist/src/components/molecules/FreeDocModalContent/index.js +0 -1
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +0 -7
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.js +0 -1
- package/dist/src/components/molecules/HeaderRatafia/index.js +0 -1
- package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.js +0 -9
- package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafiaProps.types.js +0 -1
- package/dist/src/components/molecules/KeyFactCardListRatafia/index.js +0 -1
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.js +0 -10
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSectionProps.types.js +0 -1
- package/dist/src/components/molecules/MenuItemsSection/index.js +0 -1
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +0 -7
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContentProps.types.js +0 -1
- package/dist/src/components/molecules/MidBannerRatafiaContent/index.js +0 -1
- package/dist/src/components/molecules/MidBannerRatafiaSample/MidBannerRatafiaSample.js +0 -6
- package/dist/src/components/molecules/MidBannerRatafiaSample/MidBannerRatafiaSampleProps.types.js +0 -1
- package/dist/src/components/molecules/MidBannerRatafiaSample/index.js +0 -1
- package/dist/src/components/molecules/MoreDocsDesktop/MoreDocsDesktop.js +0 -6
- package/dist/src/components/molecules/MoreDocsDesktop/MoreDocsDesktopProps.js +0 -1
- package/dist/src/components/molecules/MoreDocsDesktop/index.js +0 -2
- package/dist/src/components/molecules/MoreDocsMobile/MoreDocsMobile.js +0 -17
- package/dist/src/components/molecules/MoreDocsMobile/MoreDocsMobileProps.js +0 -1
- package/dist/src/components/molecules/MoreDocsMobile/index.js +0 -2
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.js +0 -67
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDownProps.types.js +0 -1
- package/dist/src/components/molecules/NavBarDropDown/index.js +0 -1
- package/dist/src/components/molecules/Pagination/PageStepControl.js +0 -21
- package/dist/src/components/molecules/Pagination/PageStepControlProps.types.js +0 -1
- package/dist/src/components/molecules/Pagination/PageSteps.js +0 -47
- package/dist/src/components/molecules/Pagination/Pagination.js +0 -24
- package/dist/src/components/molecules/Pagination/PaginationProps.types.js +0 -1
- package/dist/src/components/molecules/Pagination/index.js +0 -1
- package/dist/src/components/molecules/PhoneContactBoxDesktop/PhoneContactBoxDesktop.js +0 -7
- package/dist/src/components/molecules/PhoneContactBoxDesktop/PhoneContactBoxDesktopProps.types.js +0 -1
- package/dist/src/components/molecules/PhoneContactBoxDesktop/index.js +0 -1
- package/dist/src/components/molecules/PhoneContactBoxMobile/PhoneContactBoxMobile.js +0 -6
- package/dist/src/components/molecules/PhoneContactBoxMobile/PhoneContactBoxMobileProps.types.js +0 -1
- package/dist/src/components/molecules/PhoneContactBoxMobile/index.js +0 -1
- package/dist/src/components/molecules/PopularDocs/PopularDocs.js +0 -6
- package/dist/src/components/molecules/PopularDocs/PopularDocsProps.js +0 -1
- package/dist/src/components/molecules/PopularDocs/index.js +0 -2
- package/dist/src/components/molecules/PricingCard/PricingCard.js +0 -30
- package/dist/src/components/molecules/PricingCard/PricingCardProps.types.js +0 -1
- package/dist/src/components/molecules/PricingCard/index.js +0 -1
- package/dist/src/components/molecules/Snackbar/Snackbar.js +0 -42
- package/dist/src/components/molecules/Snackbar/SnackbarProps.types.js +0 -1
- package/dist/src/components/molecules/Snackbar/index.js +0 -1
- package/dist/src/components/molecules/StepGetForm/StepGetForm.js +0 -6
- package/dist/src/components/molecules/StepGetForm/StepGetFormProps.types.js +0 -1
- package/dist/src/components/molecules/StepGetForm/index.js +0 -1
- package/dist/src/components/molecules/StepRatafiaCardList/StepRatafiaCardList.js +0 -9
- package/dist/src/components/molecules/StepRatafiaCardList/StepRatafiaCardListProps.types.js +0 -1
- package/dist/src/components/molecules/StepRatafiaCardList/index.js +0 -1
- package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.js +0 -9
- package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaListProps.types.js +0 -1
- package/dist/src/components/molecules/TagsRatafiaList/index.js +0 -1
- package/dist/src/components/molecules/TextInput/Input.js +0 -15
- package/dist/src/components/molecules/TextInput/TextInput.js +0 -39
- package/dist/src/components/molecules/TextInput/TextInputLabel.js +0 -7
- package/dist/src/components/molecules/TextInput/TextInputMessage.js +0 -8
- package/dist/src/components/molecules/TextInput/TextInputProps.types.js +0 -1
- package/dist/src/components/molecules/TextInput/TextInputTooltip.js +0 -6
- package/dist/src/components/molecules/TextInput/index.js +0 -1
- package/dist/src/components/molecules/TooltipMenu/TooltipMenu.js +0 -9
- package/dist/src/components/molecules/TooltipMenu/TooltipMenuProps.types.js +0 -1
- package/dist/src/components/molecules/TooltipMenu/index.js +0 -1
- package/dist/src/components/molecules/TrustworthyWebsites/TrustworthyWebsites.js +0 -6
- package/dist/src/components/molecules/TrustworthyWebsites/TrustworthyWebsitesProps.types.js +0 -1
- package/dist/src/components/molecules/TrustworthyWebsites/index.js +0 -1
- package/dist/src/components/molecules/TypeModulesList/TypeModulesList.js +0 -7
- package/dist/src/components/molecules/TypeModulesList/TypeModulesListProps.types.js +0 -1
- package/dist/src/components/molecules/TypeModulesList/index.js +0 -1
- package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.js +0 -7
- package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZoneProps.types.js +0 -1
- package/dist/src/components/molecules/UploadRatafiaZone/index.js +0 -1
- package/dist/src/components/molecules/index.js +0 -41
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +0 -7
- package/dist/src/components/organisms/AboutUsContent/AboutUsContentProps.types.js +0 -1
- package/dist/src/components/organisms/AboutUsContent/index.js +0 -1
- package/dist/src/components/organisms/Accordion/Accordion.context.js +0 -80
- package/dist/src/components/organisms/Accordion/Accordion.js +0 -14
- package/dist/src/components/organisms/Accordion/AccordionProps.types.js +0 -1
- package/dist/src/components/organisms/Accordion/index.js +0 -2
- package/dist/src/components/organisms/ArticlesList/ArticlesList.js +0 -9
- package/dist/src/components/organisms/ArticlesList/ArticlesListProps.types.js +0 -1
- package/dist/src/components/organisms/ArticlesList/index.js +0 -1
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.js +0 -11
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContentProps.types.js +0 -1
- package/dist/src/components/organisms/AsSeeInContent/index.js +0 -1
- package/dist/src/components/organisms/CardFuncionality/CardFuncionality.js +0 -6
- package/dist/src/components/organisms/CardFuncionality/CardFuncionalityProps.js +0 -1
- package/dist/src/components/organisms/CardFuncionality/index.js +0 -2
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +0 -7
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.js +0 -1
- package/dist/src/components/organisms/ContactJumbotron/index.js +0 -1
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.js +0 -6
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBarProps.js +0 -1
- package/dist/src/components/organisms/CookiePolicyBar/index.js +0 -2
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.js +0 -5
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafiaProps.types.js +0 -1
- package/dist/src/components/organisms/ErrorContentRatafia/index.js +0 -1
- package/dist/src/components/organisms/FaqGroup/FaqGroup.js +0 -6
- package/dist/src/components/organisms/FaqGroup/FaqGroupProps.js +0 -1
- package/dist/src/components/organisms/FaqGroup/index.js +0 -2
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.js +0 -7
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContentProps.types.js +0 -1
- package/dist/src/components/organisms/FeaturesRatafiaContent/index.js +0 -1
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +0 -7
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.js +0 -1
- package/dist/src/components/organisms/GuidelinesContent/index.js +0 -1
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.js +0 -7
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContentProps.types.js +0 -1
- package/dist/src/components/organisms/JumbotronRatafiaContent/index.js +0 -1
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.js +0 -6
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafiaProps.types.js +0 -1
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/index.js +0 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +0 -8
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.js +0 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/index.js +0 -1
- package/dist/src/components/organisms/LanguageSelector/LanguageSelector.js +0 -33
- package/dist/src/components/organisms/LanguageSelector/LanguageSelectorProps.js +0 -1
- package/dist/src/components/organisms/LanguageSelector/LenguageSelectorItem.js +0 -1
- package/dist/src/components/organisms/LanguageSelector/index.js +0 -6
- package/dist/src/components/organisms/LanguageSelector/useLanguageOptions.js +0 -8
- package/dist/src/components/organisms/LanguageSelector/useLanguageSelected.js +0 -8
- package/dist/src/components/organisms/LanguageSelector/useLanguagesSelector.js +0 -24
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.js +0 -22
- package/dist/src/components/organisms/LanguageSelectorMobile/index.js +0 -1
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.js +0 -7
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafiaProps.types.js +0 -1
- package/dist/src/components/organisms/LayoutRatafia/index.js +0 -1
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.js +0 -9
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetFormProps.types.js +0 -1
- package/dist/src/components/organisms/ListStepsGetForm/index.js +0 -1
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +0 -7
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContentProps.types.js +0 -1
- package/dist/src/components/organisms/LoginRatafiaContent/index.js +0 -1
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.js +0 -22
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.js +0 -1
- package/dist/src/components/organisms/MobileBottomBar/index.js +0 -1
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.js +0 -7
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContentProps.types.js +0 -1
- package/dist/src/components/organisms/StepsRatafiaContent/index.js +0 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +0 -7
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +0 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.js +0 -1
- package/dist/src/components/organisms/index.js +0 -22
- package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +0 -5
- package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.js +0 -1
- package/dist/src/components/pages/AboutUsPage/index.js +0 -2
- package/dist/src/components/pages/ContactUsPage/ContactUsPage.js +0 -6
- package/dist/src/components/pages/ContactUsPage/ContactUsPageProps.js +0 -1
- package/dist/src/components/pages/ContactUsPage/index.js +0 -2
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.js +0 -13
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPageProps.types.js +0 -1
- package/dist/src/components/pages/ErrorRatafiaPage/index.js +0 -1
- package/dist/src/components/pages/FaqsPage/FaqsPage.js +0 -6
- package/dist/src/components/pages/FaqsPage/FaqsPageProps.js +0 -1
- package/dist/src/components/pages/FaqsPage/index.js +0 -2
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.js +0 -15
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPageProps.types.js +0 -1
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/index.js +0 -1
- package/dist/src/components/pages/LegalPage/LegalPage.js +0 -6
- package/dist/src/components/pages/LegalPage/LegalPageProps.js +0 -1
- package/dist/src/components/pages/LegalPage/index.js +0 -2
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.js +0 -12
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPageProps.js +0 -1
- package/dist/src/components/pages/LoginRatafiaPage/index.js +0 -2
- package/dist/src/components/pages/RatafiaLandingPage/RatafiaLandingPage.js +0 -5
- package/dist/src/components/pages/RatafiaLandingPage/RatafiaLandingPageProps.types.js +0 -1
- package/dist/src/components/pages/RatafiaLandingPage/index.js +0 -2
- package/dist/src/components/pages/UnsubscribePage/UnsubscribePage.js +0 -6
- package/dist/src/components/pages/UnsubscribePage/UnsubscribePageProps.js +0 -1
- package/dist/src/components/pages/UnsubscribePage/index.js +0 -2
- package/dist/src/components/pages/index.js +0 -9
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +0 -7
- package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.js +0 -1
- package/dist/src/components/sections/AboutUsSection/index.js +0 -1
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.js +0 -10
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSectionProps.types.js +0 -1
- package/dist/src/components/sections/AsSeeInSection/index.js +0 -1
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.js +0 -5
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSectionProps.js +0 -1
- package/dist/src/components/sections/AsideMenuSection/index.js +0 -2
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.js +0 -7
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.js +0 -1
- package/dist/src/components/sections/BenefitsRatafiaSection/index.js +0 -1
- package/dist/src/components/sections/BlogSection/BlogSection.js +0 -10
- package/dist/src/components/sections/BlogSection/BlogSectionProps.types.js +0 -1
- package/dist/src/components/sections/BlogSection/index.js +0 -1
- package/dist/src/components/sections/ContactSection/ContactSection.js +0 -7
- package/dist/src/components/sections/ContactSection/ContactSectionProps.js +0 -1
- package/dist/src/components/sections/ContactSection/index.js +0 -1
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.js +0 -10
- package/dist/src/components/sections/ExpertsSection/ExpertsSectionProps.types.js +0 -1
- package/dist/src/components/sections/ExpertsSection/index.js +0 -1
- package/dist/src/components/sections/FaqSection/FaqSection.js +0 -8
- package/dist/src/components/sections/FaqSection/FaqSectionProps.js +0 -1
- package/dist/src/components/sections/FaqSection/index.js +0 -2
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.js +0 -7
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSectionProps.types.js +0 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/index.js +0 -1
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.js +0 -7
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSectionProps.types.js +0 -1
- package/dist/src/components/sections/GuidelinesSection/index.js +0 -1
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.js +0 -10
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSectionProps.types.js +0 -1
- package/dist/src/components/sections/HowGetYourFormsSection/index.js +0 -1
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.js +0 -7
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSectionProps.types.js +0 -1
- package/dist/src/components/sections/JumbotronRatafiaSection/index.js +0 -1
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.js +0 -6
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSectionProps.types.js +0 -1
- package/dist/src/components/sections/JumbotronSimplifiedSection/index.js +0 -1
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.js +0 -7
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSectionProps.types.js +0 -1
- package/dist/src/components/sections/LearnMoreSection/index.js +0 -1
- package/dist/src/components/sections/LegalSection/LegalSection.js +0 -6
- package/dist/src/components/sections/LegalSection/LegalSectionProps.js +0 -1
- package/dist/src/components/sections/LegalSection/index.js +0 -2
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.js +0 -7
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSectionProps.types.js +0 -1
- package/dist/src/components/sections/MidBannerRatafiaSection/index.js +0 -1
- package/dist/src/components/sections/MoreDocsSection/MoreDocsSection.js +0 -12
- package/dist/src/components/sections/MoreDocsSection/MoreDocsSectionProps.js +0 -1
- package/dist/src/components/sections/MoreDocsSection/index.js +0 -2
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.js +0 -7
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSectionProps.types.js +0 -1
- package/dist/src/components/sections/PeopleSayAboutUsSection/index.js +0 -1
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +0 -8
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.js +0 -1
- package/dist/src/components/sections/StepsRatafiaSection/index.js +0 -1
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +0 -6
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSectionProps.types.js +0 -1
- package/dist/src/components/sections/TryItRatafiaSection/index.js +0 -1
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +0 -7
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSectionProps.types.js +0 -1
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/index.js +0 -1
- package/dist/src/components/sections/TryUsSection/TryUsSection.js +0 -6
- package/dist/src/components/sections/TryUsSection/TryUsSectionProps.js +0 -1
- package/dist/src/components/sections/TryUsSection/index.js +0 -1
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.js +0 -6
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSectionProps.js +0 -1
- package/dist/src/components/sections/UnsubscribeSection/index.js +0 -1
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.js +0 -10
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSectionProps.types.js +0 -1
- package/dist/src/components/sections/WhyLawDistrictSection/index.js +0 -1
- package/dist/src/components/sections/index.js +0 -24
- package/dist/src/hooks/index.js +0 -2
- package/dist/src/hooks/useIntersectionObserver.js +0 -22
- package/dist/src/hooks/useIsMobileOrTable.js +0 -26
- package/dist/src/index.js +0 -2
- package/dist/src/utils/ProductCategory.js +0 -8
- package/dist/src/utils/getCategoryIcons.js +0 -28
- package/dist/src/utils/getDateFormatMMMMYYYY.js +0 -3
- package/dist/src/utils/getGatsbyImageSkeleton.js +0 -4
- package/dist/src/utils/getRichTextSkeleton.js +0 -4
- package/dist/src/utils/index.js +0 -7
- package/dist/src/utils/replaceAll.js +0 -6
- package/dist/src/utils/stringSlugify.js +0 -3
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
const getPageClassName = (activePage, step, ellipsisControls) => classNames('pagination__page', {
|
|
4
|
-
'pagination__page--ellipsis': step === ellipsisControls,
|
|
5
|
-
'pagination__page--active': step === activePage
|
|
6
|
-
});
|
|
7
|
-
const PageSteps = ({ activePage, onClick, totalPages, ellipsisControls = '...', extendedMaxSteps = 5 }) => {
|
|
8
|
-
if (totalPages === undefined || totalPages < 1)
|
|
9
|
-
return null;
|
|
10
|
-
const renderStep = (className, step, key) => {
|
|
11
|
-
const onClickPage = activePage !== step ? onClick : undefined;
|
|
12
|
-
return (_jsx("span", { className: className, id: step.toString(), onClick: onClickPage, children: step }, key));
|
|
13
|
-
};
|
|
14
|
-
const renderExtendedSteps = () => {
|
|
15
|
-
return new Array(extendedMaxSteps).fill(null).map((page, index) => {
|
|
16
|
-
let firstVisibleStep = totalPages - extendedMaxSteps;
|
|
17
|
-
let step = firstVisibleStep + index + 1;
|
|
18
|
-
if (activePage <= firstVisibleStep + 1) {
|
|
19
|
-
firstVisibleStep = activePage > 1 ? activePage - 2 : 0;
|
|
20
|
-
if (index < extendedMaxSteps - 2) {
|
|
21
|
-
step = firstVisibleStep + index + 1;
|
|
22
|
-
}
|
|
23
|
-
if (index > extendedMaxSteps - 2) {
|
|
24
|
-
const reverseIndex = extendedMaxSteps - 1 - index;
|
|
25
|
-
step = totalPages - reverseIndex;
|
|
26
|
-
}
|
|
27
|
-
if (index === extendedMaxSteps - 2) {
|
|
28
|
-
step = ellipsisControls;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
const pageClassName = getPageClassName(activePage, step, ellipsisControls);
|
|
32
|
-
return renderStep(pageClassName, step, index);
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
const renderSteps = () => {
|
|
36
|
-
if (totalPages > extendedMaxSteps) {
|
|
37
|
-
return renderExtendedSteps();
|
|
38
|
-
}
|
|
39
|
-
return new Array(totalPages).fill(null).map((page, index) => {
|
|
40
|
-
const step = index + 1;
|
|
41
|
-
const pageClassName = getPageClassName(activePage, step, ellipsisControls);
|
|
42
|
-
return renderStep(pageClassName, step, step);
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
return _jsx("div", { className: 'pagination__page-wrapper', children: renderSteps() });
|
|
46
|
-
};
|
|
47
|
-
export default PageSteps;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useState } from 'react';
|
|
3
|
-
import PageStepControl from './PageStepControl';
|
|
4
|
-
import PageSteps from './PageSteps';
|
|
5
|
-
// import './Pagination.scss'
|
|
6
|
-
const Pagination = ({ activePage, totalPages, onChange, nextControl = 'next', prevControl = 'prev' }) => {
|
|
7
|
-
const [active, setActive] = useState(activePage);
|
|
8
|
-
const handleControl = useCallback((direction) => {
|
|
9
|
-
const page = direction === prevControl ? activePage - 1 : activePage + 1;
|
|
10
|
-
setActive(page);
|
|
11
|
-
onChange(page);
|
|
12
|
-
}, []);
|
|
13
|
-
const handleCurrentPage = useCallback((e) => {
|
|
14
|
-
const page = Number(e.currentTarget.id);
|
|
15
|
-
if (!Number.isNaN(page)) {
|
|
16
|
-
setActive(page);
|
|
17
|
-
onChange(page);
|
|
18
|
-
}
|
|
19
|
-
}, []);
|
|
20
|
-
if (totalPages === undefined)
|
|
21
|
-
return null;
|
|
22
|
-
return (_jsxs("div", { className: 'pagination', children: [_jsx(PageStepControl, { activePage: active, totalPages: totalPages, onClick: handleControl, direction: prevControl }), _jsx(PageSteps, { activePage: active, onClick: handleCurrentPage, totalPages: totalPages }), _jsx(PageStepControl, { activePage: active, totalPages: totalPages, onClick: handleControl, direction: nextControl })] }));
|
|
23
|
-
};
|
|
24
|
-
export default Pagination;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Pagination } from './Pagination';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import ContactPhoneIcon from '../../../../images/webp/customer-support.webp';
|
|
3
|
-
import ContactPhoneIconIE from '../../../../images/png/customer-support.png';
|
|
4
|
-
// import './PhoneContactBoxDesktop.scss'
|
|
5
|
-
export const PhoneContactBoxDesktop = ({ phones, schedule }) => {
|
|
6
|
-
return (_jsxs("div", { className: 'phone-contact-box-container', children: [_jsx("img", { src: ContactPhoneIcon, alt: 'Contact phone icon', width: '40', height: '40' }), _jsx("img", { src: ContactPhoneIconIE, className: 'onlyIE', alt: 'Contact phone icon', width: '40', height: '40' }), _jsxs("div", { className: 'phone-contact-info', children: [phones.map((phone, index) => (_jsx("p", { className: 'phone-contact-phone', children: phone }, `${phone}-${index}`))), _jsx("p", { className: 'email-contact-text', children: schedule })] })] }));
|
|
7
|
-
};
|
package/dist/src/components/molecules/PhoneContactBoxDesktop/PhoneContactBoxDesktopProps.types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PhoneContactBoxDesktop } from './PhoneContactBoxDesktop';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from '../../atoms';
|
|
3
|
-
// import './PhoneContactBoxMobile.scss'
|
|
4
|
-
export const PhoneContactBoxMobile = ({ phones, schedule }) => {
|
|
5
|
-
return (_jsxs("div", { className: 'phone-mobile-contact-box-container wrapper wrapper--responsive', children: [phones.map((phone, index) => (_jsx(Button, { centered: true, isExternal: true, link: `tel:${phone}`, gtmTag: 'clicked_phone_contactus', givenClass: 'phone-mobile-contact-button e-button e-button--link e-button--primary-1 e-button--center', label: phone, dataQa: 'phone_contact_box' }, `${phone}-${index}`))), _jsx("p", { className: 'phone-mobile-contact-text', children: schedule })] }));
|
|
6
|
-
};
|
package/dist/src/components/molecules/PhoneContactBoxMobile/PhoneContactBoxMobileProps.types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PhoneContactBoxMobile } from './PhoneContactBoxMobile';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { PopularDocsItem } from '../../atoms';
|
|
3
|
-
// import './PopularDocs.scss'
|
|
4
|
-
export const PopularDocs = ({ title, documents }) => {
|
|
5
|
-
return (_jsxs("div", { className: 'popular-docs', children: [_jsx("h2", { className: 'title', children: title }), _jsx("div", { className: 'documents', children: documents.map((document) => (_jsx(PopularDocsItem, { ...document }, document.id))) })] }));
|
|
6
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { Button, Message } from '../../atoms';
|
|
4
|
-
// import './PricingCard.scss'
|
|
5
|
-
const PricingCard = ({ order, subscriptionId, onChangeRadio, isChecked = false, planName, price, currency, underPricingText, featuresList = [], children, disclaimer, message, cardButton }) => {
|
|
6
|
-
const [cardState, setCardState] = useState({ expanded: false });
|
|
7
|
-
if (planName === undefined ||
|
|
8
|
-
(onChangeRadio != null && subscriptionId === undefined) ||
|
|
9
|
-
(featuresList?.length === 0 && children === undefined)) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
const isSelectableCard = onChangeRadio != null;
|
|
13
|
-
const selectableCardClass = isSelectableCard ? '--selectable' : '';
|
|
14
|
-
const selectedCardClass = isSelectableCard && isChecked ? '--selected' : '';
|
|
15
|
-
const expandedContentClass = cardState.expanded ? '--expanded' : '';
|
|
16
|
-
const style = {
|
|
17
|
-
order: order ?? 0
|
|
18
|
-
};
|
|
19
|
-
const toggleCardContent = () => {
|
|
20
|
-
setCardState((prevState) => {
|
|
21
|
-
prevState = { expanded: !prevState.expanded };
|
|
22
|
-
return { ...prevState };
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
const renderMoreMobileButton = (_jsx(Button, { dataQa: '', givenClass: 'see-more-button', color: 'tertiary', label: cardState.expanded ? 'See less' : 'See more', noLink: true, onClick: toggleCardContent }));
|
|
26
|
-
const renderHeaderContent = (_jsx("div", { className: 'pricing-card__header', children: _jsx("h5", { className: 'sans-serif --big pricing-card__header__text', children: _jsx("strong", { children: planName }) }) }));
|
|
27
|
-
const renderBodyContent = (_jsxs("div", { className: 'pricing-card__body', children: [Boolean(price) && (_jsxs("div", { className: 'sans-serif pricing-card__body__price', children: [_jsx("strong", { children: price }), _jsx("span", { children: currency }), Boolean(underPricingText) && _jsx("div", { className: 'pricing-card__body__text', children: underPricingText })] })), Boolean(featuresList?.length) && (_jsxs("div", { className: `pricing-card__body__features-list ${expandedContentClass}`, children: [_jsx("hr", {}), _jsx("ul", { children: featuresList?.map((feature) => (_jsx("li", { className: 'pricing-card__body__features-list__item', children: feature }, 'feature-item-' + feature))) })] })), children, featuresList != null && renderMoreMobileButton, cardButton, message != null && _jsx(Message, { ...message })] }));
|
|
28
|
-
return (_jsxs("li", { style: style, className: `pricing-card grid__column ${selectableCardClass} ${selectedCardClass}`, children: [_jsx("div", { className: 'pricing-card__wrapper', children: isSelectableCard ? (_jsxs("label", { className: 'pricing-card__radio-label', "data-qa": planName, children: [_jsx("input", { className: 'radio-input', type: 'radio', value: subscriptionId, onChange: onChangeRadio, name: 'pricing', checked: isChecked }), _jsx("span", { className: 'radio-checkbox' }), renderHeaderContent, renderBodyContent] })) : (_jsxs(_Fragment, { children: [renderHeaderContent, renderBodyContent] })) }), Boolean(disclaimer) && (_jsx("div", { className: 'pricing-card__disclaimer', children: _jsx("small", { children: disclaimer }) }))] }));
|
|
29
|
-
};
|
|
30
|
-
export default PricingCard;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PricingCard } from './PricingCard';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
|
|
3
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
4
|
-
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
|
-
import { Button } from '../../atoms';
|
|
8
|
-
// import './Snackbar.scss'
|
|
9
|
-
const Snackbar = ({ type, title, text, button, dismissTimeout = 1000, autoDismissTimeout, autoDismiss, onDismiss, onAutoDismiss }) => {
|
|
10
|
-
const [snackbarOpen, changeSnackbarOpen] = useState();
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
setTimeout(() => {
|
|
13
|
-
changeSnackbarOpen(true);
|
|
14
|
-
});
|
|
15
|
-
if (autoDismiss ?? false) {
|
|
16
|
-
setTimeout(() => {
|
|
17
|
-
if (onAutoDismiss != null)
|
|
18
|
-
onAutoDismiss();
|
|
19
|
-
closeSnackbar();
|
|
20
|
-
}, autoDismissTimeout);
|
|
21
|
-
}
|
|
22
|
-
}, []);
|
|
23
|
-
if (title === null && text === null)
|
|
24
|
-
return null;
|
|
25
|
-
const closeSnackbar = () => {
|
|
26
|
-
changeSnackbarOpen(false);
|
|
27
|
-
setTimeout(() => {
|
|
28
|
-
if (onDismiss != null)
|
|
29
|
-
onDismiss();
|
|
30
|
-
}, dismissTimeout);
|
|
31
|
-
};
|
|
32
|
-
const classes = classNames('snackbar', {
|
|
33
|
-
'snackbar--welcome': type === undefined || type === 'welcome',
|
|
34
|
-
'snackbar--success': type === 'success',
|
|
35
|
-
'snackbar--error': type === 'error',
|
|
36
|
-
'snackbar--reminder': type === 'reminder',
|
|
37
|
-
active: snackbarOpen,
|
|
38
|
-
hidden: !(snackbarOpen ?? false)
|
|
39
|
-
});
|
|
40
|
-
return (_jsxs("div", { className: classes, "aria-hidden": 'true', children: [_jsx("span", { className: 'snackbar-close-icon', onClick: closeSnackbar, tabIndex: 0, children: "\u00D7" }), _jsxs("div", { className: 'snackbar-content', children: [_jsxs("div", { className: 'snackbar-content__text-container', children: [_jsx("p", { className: 'snackbar-title', children: title ?? '' }), _jsx("p", { className: 'snackbar-text', children: text ?? '' })] }), button?.color !== null && Boolean(button?.label) && (_jsx("div", { className: 'snackbar-content__button', children: _jsx(Button, { label: button?.label ?? '', onClick: button?.onClick, color: button?.color ?? 'primary', noLink: true, functionParameters: '', dataQa: 'back' }) }))] })] }));
|
|
41
|
-
};
|
|
42
|
-
export default Snackbar;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Snackbar } from './Snackbar';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// import './StepGetForm.scss'
|
|
3
|
-
const StepGetForm = ({ description, title = '', image }) => {
|
|
4
|
-
return (_jsxs("div", { className: 'homeStepsItem', children: [image != null && _jsx("div", { className: 'step__image', children: image }), _jsxs("div", { className: 'step__information', children: [_jsx("p", { className: 'step__information__title sans-serif --big', children: title }), _jsx("small", { className: 'sans-serif --small', children: description })] })] }));
|
|
5
|
-
};
|
|
6
|
-
export default StepGetForm;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as StepGetForm } from './StepGetForm';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StepRatafiaCard } from '../../atoms';
|
|
3
|
-
// import './StepRatafiaCardList.scss'
|
|
4
|
-
const StepRatafiaCardList = ({ steps = [] }) => {
|
|
5
|
-
if (steps.length === 0)
|
|
6
|
-
return null;
|
|
7
|
-
return (_jsx("div", { className: 'step-ratafia-card-list', children: steps.map((step) => (_jsx(StepRatafiaCard, { ...step }, step.id))) }));
|
|
8
|
-
};
|
|
9
|
-
export default StepRatafiaCardList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as StepRatafiaCardList } from './StepRatafiaCardList';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { TagRatafiaItem } from '../../atoms';
|
|
3
|
-
// import './TagsRatafiaList.scss'
|
|
4
|
-
const TagsRatafiaList = ({ tags = [] }) => {
|
|
5
|
-
if (tags.length === 0)
|
|
6
|
-
return null;
|
|
7
|
-
return (_jsx("div", { className: 'tag-ratafia-list', children: tags.map((tag) => (_jsx(TagRatafiaItem, { ...tag }, tag.id))) }));
|
|
8
|
-
};
|
|
9
|
-
export default TagsRatafiaList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TagsRatafiaList } from './TagsRatafiaList';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
3
|
-
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
4
|
-
import React, { useState } from 'react';
|
|
5
|
-
import eyeCloseIcon from '../../../../images/svg/eye-close.svg';
|
|
6
|
-
import eyeIcon from '../../../../images/svg/eye-24-px.svg';
|
|
7
|
-
export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength }, ref) => {
|
|
8
|
-
const [hidden, setHidden] = useState(true);
|
|
9
|
-
const showPassword = () => {
|
|
10
|
-
if (value !== null)
|
|
11
|
-
setHidden(!hidden);
|
|
12
|
-
};
|
|
13
|
-
return (_jsxs(_Fragment, { children: [_jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: className, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("img", { className: 'input-icon-password', src: hidden ? eyeIcon : eyeCloseIcon, onClick: showPassword, alt: '' }))] }));
|
|
14
|
-
});
|
|
15
|
-
Input.displayName = 'Input';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { NumericFormat } from 'react-number-format';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
import { Input } from './Input';
|
|
6
|
-
import { TextInputLabel } from './TextInputLabel';
|
|
7
|
-
import { TextInputMessage } from './TextInputMessage';
|
|
8
|
-
import { TextInputTooltip } from './TextInputTooltip';
|
|
9
|
-
// import './TextInput.scss'
|
|
10
|
-
const TextInput = React.forwardRef(({ label, value, validate = true, isValidGroup = true, mask = ' ', format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children }, ref) => {
|
|
11
|
-
const classnames = classNames('e-text', {
|
|
12
|
-
[givenClass]: givenClass,
|
|
13
|
-
'e-text--is-invalid': !validate,
|
|
14
|
-
'e-text--group-invalid': !isValidGroup
|
|
15
|
-
});
|
|
16
|
-
const handleChange = (event) => {
|
|
17
|
-
onChange?.(event);
|
|
18
|
-
};
|
|
19
|
-
const handleKeyDown = (event) => {
|
|
20
|
-
onKeyDown?.(event);
|
|
21
|
-
};
|
|
22
|
-
const handleKeyUp = (event) => {
|
|
23
|
-
onKeyUp?.(event);
|
|
24
|
-
};
|
|
25
|
-
const renderInput = () => {
|
|
26
|
-
if (Boolean(format) && type !== 'number' && type !== 'tel') {
|
|
27
|
-
return (_jsx(NumericFormat, { name: name, id: name, placeholder: placeholder, className: 'e-text-input',
|
|
28
|
-
// mask={mask}
|
|
29
|
-
// format={format}
|
|
30
|
-
onChange: onChange, onClick: onClick,
|
|
31
|
-
// maskchar={null}
|
|
32
|
-
value: value, "data-qa": name, disabled: disabled, maxLength: maxLength, onBlur: onBlur }));
|
|
33
|
-
}
|
|
34
|
-
return (_jsx(Input, { name: name ?? '', type: type, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }));
|
|
35
|
-
};
|
|
36
|
-
return (_jsxs("div", { className: classnames, children: [children !== null && _jsx("div", { className: 'e-text__children', children: children }), _jsx(TextInputTooltip, { tooltip: tooltip }), _jsx(TextInputMessage, { errorMessage: errorMessage, validate: validate }), renderInput(), _jsx(TextInputLabel, { label: label, htmlFor: name, notes: notes, dialogMenuTip: dialogMenuTip })] }));
|
|
37
|
-
});
|
|
38
|
-
export default TextInput;
|
|
39
|
-
TextInput.displayName = 'TextInput';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { DialogMenuIcon } from '../../atoms';
|
|
3
|
-
export const TextInputLabel = ({ label, htmlFor, notes, dialogMenuTip = '' }) => {
|
|
4
|
-
if (label === undefined && notes === undefined)
|
|
5
|
-
return null;
|
|
6
|
-
return (_jsxs("div", { className: 'e-text__inner', children: [_jsxs("label", { htmlFor: htmlFor, className: dialogMenuTip.length > 0 ? 'form-group__label-icon' : 'form-group__label', children: [label, dialogMenuTip.length > 0 ? _jsx(DialogMenuIcon, { content: dialogMenuTip }) : null] }), _jsx("p", { className: 'e-text__inner__notes', children: notes })] }));
|
|
7
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import error from '../../../../images/svg/info-error_24px_outlined.svg';
|
|
3
|
-
export const TextInputMessage = ({ validate, errorMessage }) => {
|
|
4
|
-
if (errorMessage.length === 0 || (errorMessage !== '' && validate)) {
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
return (_jsxs("div", { className: 'e-text__error sans-serif --small', children: [_jsx("div", { className: 'e-text__error-icon', children: _jsx("img", { src: error, alt: errorMessage }) }), _jsx("div", { className: 'e-text__error-label', children: errorMessage })] }));
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TextInput } from './TextInput';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { MenuItems, Tooltip } from '../../atoms';
|
|
3
|
-
import { MenuCollapse24p } from '../../../../images/componentsSvg/MenuCollapse24p';
|
|
4
|
-
// import './TooltipMenu.scss'
|
|
5
|
-
const TooltipMenu = ({ options, onClick, label }) => {
|
|
6
|
-
const menu = _jsx(MenuItems, { list: options });
|
|
7
|
-
return (_jsx(Tooltip, { content: menu, allowHTML: true, interactive: true, position: 'bottom', trigger: 'click', children: _jsxs("div", { className: 'tooltip-menu__item', onClick: onClick, children: [_jsx(MenuCollapse24p, {}), _jsx("span", { className: 'actions-span sans-serif --extra-small', children: label })] }) }));
|
|
8
|
-
};
|
|
9
|
-
export default TooltipMenu;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TooltipMenu } from './TooltipMenu';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// import './TrustworthyWebsites.scss'
|
|
3
|
-
const TrustworthyWebsites = ({ images }) => {
|
|
4
|
-
return (_jsx("div", { className: 'trustworthy-websites', children: images.map((item) => (_jsx("div", { className: 'trustworthy-websites__image', children: item.src }, item.id))) }));
|
|
5
|
-
};
|
|
6
|
-
export default TrustworthyWebsites;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TrustworthyWebsites } from './TrustworthyWebsites';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, RichTextStrapi } from '../../atoms';
|
|
3
|
-
// import './TypeModulesList.scss'
|
|
4
|
-
const TypeModulesList = ({ typeModules }) => {
|
|
5
|
-
return (_jsx("div", { className: 'type-modules-list', children: typeModules.map((module) => (_jsxs("div", { className: 'module-item', children: [_jsx("div", { className: 'module-image', children: module.image }), _jsxs("div", { className: 'module-content', children: [_jsx("h2", { className: 'module-title', children: module.title }), _jsx("div", { className: 'module-description', children: _jsx(RichTextStrapi, { ...module.description }) }), _jsxs("div", { className: 'module-buttons', children: [_jsx(Button, { dataQa: '', color: 'secondary3', givenClass: 'download-icon', label: module.buttonPdfCta, link: module.buttonPdfUrl ?? undefined, isExternal: true, target: '_blank' }), _jsx(Button, { dataQa: '', color: 'secondary3', givenClass: 'download-icon', label: module.buttonWordCta, link: module.buttonWordUrl ?? undefined, isExternal: true, target: '_blank' })] })] })] }, module.id))) }));
|
|
6
|
-
};
|
|
7
|
-
export default TypeModulesList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TypeModulesList } from './TypeModulesList';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from '../../atoms';
|
|
3
|
-
// import './UploadRatafiaZone.scss'
|
|
4
|
-
const UploadRatafiaZone = ({ content, handleDragOver, handleDragOut, handleDrop, documentUploadFileDialog, ctaDataQa }) => {
|
|
5
|
-
return (_jsx("div", { className: 'upload-ratafia-zone', onDrop: handleDrop, onDragOver: handleDragOver, onDragLeave: handleDragOut, children: _jsxs("div", { className: 'upload-ratafia-zone__content', children: [_jsx("p", { className: 'sans-serif --medium upload-ratafia-zone__content__title', children: content.title }), _jsx(Button, { givenClass: 'upload-ratafia-zone__content__cta', dataQa: ctaDataQa, noLink: true, onClick: documentUploadFileDialog, color: 'primary', label: content.ctaLabel, children: content.ctaIcon != null && (_jsx("div", { className: 'upload-ratafia-zone__content__cta__icon', children: content.ctaIcon })) }), _jsx("p", { className: 'sans-serif --extra-small upload-ratafia-zone__content__description', children: content.description }), _jsx("span", { className: 'sans-serif --extra-small upload-ratafia-zone__content__service-terms', itemProp: 'text', children: content.serviceTerms })] }) }));
|
|
6
|
-
};
|
|
7
|
-
export default UploadRatafiaZone;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as UploadRatafiaZone } from './UploadRatafiaZone';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export * from './AccordionItem';
|
|
2
|
-
export * from './ActionButtonHeaderRatafiaCardList';
|
|
3
|
-
export * from './AlsoKnownAs';
|
|
4
|
-
export * from './Article';
|
|
5
|
-
export * from './BaseBoxList';
|
|
6
|
-
export * from './BenefitRatafiaCardList';
|
|
7
|
-
export * from './BottomFixedBar';
|
|
8
|
-
export * from './BottomOverlay';
|
|
9
|
-
export * from './BoxForm';
|
|
10
|
-
export * from './Breadcrumb';
|
|
11
|
-
export * from './ContactBox';
|
|
12
|
-
export * from './ContinueEditingBanner';
|
|
13
|
-
export * from './CountDownMessage';
|
|
14
|
-
export * from './EmailContactBox';
|
|
15
|
-
export * from './ExpertCardList';
|
|
16
|
-
export * from './FaqItem';
|
|
17
|
-
export * from './FeatureRatafiaCardList';
|
|
18
|
-
export * from './Feedback';
|
|
19
|
-
export * from './FreeDocModalContent';
|
|
20
|
-
export * from './HeaderRatafia';
|
|
21
|
-
export * from './KeyFactCardListRatafia';
|
|
22
|
-
export * from './MenuItemsSection';
|
|
23
|
-
export * from './MidBannerRatafiaContent';
|
|
24
|
-
export * from './MidBannerRatafiaSample';
|
|
25
|
-
export * from './MoreDocsDesktop';
|
|
26
|
-
export * from './MoreDocsMobile';
|
|
27
|
-
export * from './NavBarDropDown';
|
|
28
|
-
export * from './Pagination';
|
|
29
|
-
export * from './PhoneContactBoxDesktop';
|
|
30
|
-
export * from './PhoneContactBoxMobile';
|
|
31
|
-
export * from './PopularDocs';
|
|
32
|
-
export * from './PricingCard';
|
|
33
|
-
export * from './Snackbar';
|
|
34
|
-
export * from './StepGetForm';
|
|
35
|
-
export * from './StepRatafiaCardList';
|
|
36
|
-
export * from './TagsRatafiaList';
|
|
37
|
-
export * from './TextInput';
|
|
38
|
-
export * from './TooltipMenu';
|
|
39
|
-
export * from './TrustworthyWebsites';
|
|
40
|
-
export * from './TypeModulesList';
|
|
41
|
-
export * from './UploadRatafiaZone';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from '../../atoms';
|
|
3
|
-
// import './AboutUsContent.scss'
|
|
4
|
-
const AboutUsContent = ({ children, image, button }) => {
|
|
5
|
-
return (_jsxs("div", { className: 'about-us-content', children: [_jsx("div", { className: 'about-us-content__image', children: image }), _jsxs("div", { className: 'about-us-content__body', children: [children, button != null && (_jsx("div", { className: 'about-us-content__body__button', children: _jsx(Button, { ...button }) }))] })] }));
|
|
6
|
-
};
|
|
7
|
-
export default AboutUsContent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as AboutUsContent } from './AboutUsContent';
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
|
|
3
|
-
import React from 'react';
|
|
4
|
-
const AccordionContext = React.createContext(undefined);
|
|
5
|
-
const changeError = (state, action) => {
|
|
6
|
-
if (action.type !== 'handler')
|
|
7
|
-
return;
|
|
8
|
-
const itemsDataAccordion = state.itemsDataAccordion.map((item, index) => index === action.accordionItem ? { ...item, handler: action.handlerMessage } : item);
|
|
9
|
-
return { itemsDataAccordion };
|
|
10
|
-
};
|
|
11
|
-
const changeLoading = (state, action) => {
|
|
12
|
-
const itemsDataAccordion = state.itemsDataAccordion.map((item, index) => index === action.accordionItem ? { ...item, isLoading: !item.isLoading } : item);
|
|
13
|
-
return { itemsDataAccordion };
|
|
14
|
-
};
|
|
15
|
-
const changeLocked = (state, action) => {
|
|
16
|
-
const itemsDataAccordion = state.itemsDataAccordion.map((item, index) => index === action.accordionItem
|
|
17
|
-
? {
|
|
18
|
-
...item,
|
|
19
|
-
locked: {
|
|
20
|
-
actionType: action.resetAction ?? action.type,
|
|
21
|
-
isLocked: !action.resetAction && !item.locked.isLocked
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
: item);
|
|
25
|
-
return { itemsDataAccordion };
|
|
26
|
-
};
|
|
27
|
-
const changeMessage = (state, action) => {
|
|
28
|
-
if (action.type !== 'message')
|
|
29
|
-
return;
|
|
30
|
-
const itemsDataAccordion = state.itemsDataAccordion.map((item, index) => index === action.accordionItem ? { ...item, message: action.message } : item);
|
|
31
|
-
return { itemsDataAccordion };
|
|
32
|
-
};
|
|
33
|
-
const actions = {
|
|
34
|
-
handler: changeError,
|
|
35
|
-
loading: changeLoading,
|
|
36
|
-
locked: changeLocked,
|
|
37
|
-
message: changeMessage,
|
|
38
|
-
unlocked: changeLocked
|
|
39
|
-
};
|
|
40
|
-
function accordionDataReducer(state, action) {
|
|
41
|
-
if (actions[action.type]) {
|
|
42
|
-
return actions[action.type](state, action);
|
|
43
|
-
}
|
|
44
|
-
throw new Error(`Unhandled action type: ${action.type}`);
|
|
45
|
-
}
|
|
46
|
-
function AccordionProvider({ children, elements }) {
|
|
47
|
-
const itemsDataAccordion = {
|
|
48
|
-
itemsDataAccordion: Array.from(Array(elements).keys()).map(() => ({
|
|
49
|
-
isLoading: false,
|
|
50
|
-
message: '',
|
|
51
|
-
locked: {
|
|
52
|
-
actionType: 'default',
|
|
53
|
-
isLocked: false
|
|
54
|
-
},
|
|
55
|
-
handler: 'default'
|
|
56
|
-
}))
|
|
57
|
-
};
|
|
58
|
-
const [state, dispatch] = React.useReducer(accordionDataReducer, itemsDataAccordion);
|
|
59
|
-
const value = { state, dispatch };
|
|
60
|
-
return _jsx(AccordionContext.Provider, { value: value, children: children });
|
|
61
|
-
}
|
|
62
|
-
function useDispatchDataAccordionItem() {
|
|
63
|
-
const context = React.useContext(AccordionContext);
|
|
64
|
-
if (context === undefined) {
|
|
65
|
-
throw new Error('useAccordionLoadingItem must be used within a AccordionProvider');
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
dispatch: context.dispatch
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function useStateDataAccordionItem(accordionLoadingItem = 0) {
|
|
72
|
-
const context = React.useContext(AccordionContext);
|
|
73
|
-
if (context === undefined) {
|
|
74
|
-
throw new Error('useAccordionLoadingItem must be used within a AccordionProvider');
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
state: context.state.itemsDataAccordion[accordionLoadingItem]
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
export { AccordionProvider, useDispatchDataAccordionItem, useStateDataAccordionItem };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { AccordionItem } from '../../molecules';
|
|
4
|
-
import { AccordionProvider } from './Accordion.context';
|
|
5
|
-
// import './Accordion.scss'
|
|
6
|
-
export const Accordion = ({ data, defaultActiveIndex = 0, defaultHeightItem }) => {
|
|
7
|
-
const [activeIndex, setActiveIndex] = useState(defaultActiveIndex);
|
|
8
|
-
const handleItemClick = (index) => {
|
|
9
|
-
setActiveIndex((prevIndex) => (prevIndex === index ? -1 : index));
|
|
10
|
-
};
|
|
11
|
-
return (_jsx(AccordionProvider, { elements: data.length, children: _jsx("div", { className: 'accordion', children: data.map((item, index) => (_jsx(AccordionItem, { accordionRightContent: item?.accordionRightContent, defaultHeightItem: defaultHeightItem, index: index, isOpen: activeIndex === index, onClick: () => {
|
|
12
|
-
handleItemClick(index);
|
|
13
|
-
}, title: item.title, children: item.children }, index))) }) }));
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Article } from '../../molecules';
|
|
3
|
-
// import './ArticlesList.scss'
|
|
4
|
-
const ArticlesList = ({ articles = [] }) => {
|
|
5
|
-
if (articles?.length === 0)
|
|
6
|
-
return null;
|
|
7
|
-
return (_jsx("div", { className: 'articles_wrapper', children: articles.map((article) => (_jsx(Article, { ...article }, `article_${article?.id}`))) }));
|
|
8
|
-
};
|
|
9
|
-
export default ArticlesList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ArticlesList } from './ArticlesList';
|