@npm_leadtech/legal-lib-components 7.14.0 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +1 -5
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +0 -14
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +0 -14
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +0 -9
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.d.ts → MenuItems/MenuItemProps.types.d.ts} +1 -1
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.ts → MenuItems/MenuItemProps.types.ts} +1 -1
- package/dist/src/components/atoms/MenuItems/MenuItems.d.ts +4 -0
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.js → MenuItems/MenuItems.js} +4 -4
- package/dist/src/components/{organisms → atoms}/MenuItems/MenuItems.styled.d.ts +1 -1
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.styled.js → MenuItems/MenuItems.styled.js} +1 -1
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.styled.ts → MenuItems/MenuItems.styled.ts} +1 -1
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.tsx → MenuItems/MenuItems.tsx} +6 -12
- package/dist/src/components/atoms/MenuItems/index.d.ts +2 -0
- package/dist/src/components/atoms/MenuItems/index.js +1 -0
- package/dist/src/components/atoms/MenuItems/index.ts +2 -0
- package/dist/src/components/atoms/SidemenuTab/SidemenuTab.js +2 -2
- package/dist/src/components/atoms/SidemenuTab/SidemenuTab.tsx +2 -2
- package/dist/src/components/atoms/TopBar/TopBar.styled.js +1 -48
- package/dist/src/components/atoms/TopBar/TopBar.styled.ts +1 -48
- package/dist/src/components/atoms/TopBar/TopBar.tsx +1 -1
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.d.ts +7 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.js +10 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.d.ts +1 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.js +49 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.ts +50 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.tsx +22 -0
- package/dist/src/components/atoms/TopBarMobile/index.d.ts +1 -0
- package/dist/src/components/atoms/TopBarMobile/index.js +1 -0
- package/dist/src/components/atoms/TopBarMobile/index.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +2 -2
- package/dist/src/components/atoms/index.js +2 -2
- package/dist/src/components/atoms/index.ts +2 -2
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.js +2 -2
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.tsx +2 -2
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSectionProps.types.d.ts +1 -1
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSectionProps.types.ts +1 -1
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.js +2 -2
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +2 -2
- package/dist/src/components/molecules/TooltipMenu/TooltipMenu.js +2 -2
- package/dist/src/components/molecules/TooltipMenu/TooltipMenu.tsx +2 -2
- package/dist/src/components/molecules/index.d.ts +0 -5
- package/dist/src/components/molecules/index.js +0 -5
- package/dist/src/components/molecules/index.ts +0 -5
- package/dist/src/components/organisms/index.d.ts +0 -4
- package/dist/src/components/organisms/index.js +0 -4
- package/dist/src/components/organisms/index.ts +0 -4
- package/dist/src/components/sections/index.d.ts +0 -1
- package/dist/src/components/sections/index.js +0 -1
- package/dist/src/components/sections/index.ts +0 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/images/componentsSvg/RatafiaIcon24px.d.ts +0 -6
- package/dist/images/componentsSvg/RatafiaIcon24px.js +0 -2
- package/dist/images/componentsSvg/SearchIcon.d.ts +0 -4
- package/dist/images/componentsSvg/SearchIcon.js +0 -4
- package/dist/images/componentsSvg/SearchIcon.tsx +0 -26
- package/dist/images/svg/arrow-down.svg +0 -3
- package/dist/images/svg/business-type.svg +0 -3
- package/dist/images/svg/clear-24-px.svg +0 -14
- package/dist/images/svg/men.svg +0 -5
- package/dist/src/components/atoms/DropdownInput/DropdownInput.d.ts +0 -3
- package/dist/src/components/atoms/DropdownInput/DropdownInput.js +0 -24
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.d.ts +0 -1
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.js +0 -147
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.ts +0 -149
- package/dist/src/components/atoms/DropdownInput/DropdownInput.tsx +0 -60
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.d.ts +0 -8
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.js +0 -2
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.ts +0 -10
- package/dist/src/components/atoms/DropdownInput/index.d.ts +0 -2
- package/dist/src/components/atoms/DropdownInput/index.js +0 -1
- package/dist/src/components/atoms/DropdownInput/index.ts +0 -2
- package/dist/src/components/atoms/MenuItemsDeprecated/MenuItemsDeprecated.d.ts +0 -4
- package/dist/src/components/atoms/MenuItemsDeprecated/MenuItemsDeprecated.styled.d.ts +0 -1
- package/dist/src/components/atoms/MenuItemsDeprecated/index.d.ts +0 -2
- package/dist/src/components/atoms/MenuItemsDeprecated/index.js +0 -1
- package/dist/src/components/atoms/MenuItemsDeprecated/index.ts +0 -2
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.d.ts +0 -3
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.js +0 -6
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.d.ts +0 -1
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.js +0 -18
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.ts +0 -19
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.tsx +0 -22
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.d.ts +0 -8
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.js +0 -1
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.ts +0 -9
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.d.ts +0 -2
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.js +0 -1
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.ts +0 -2
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.d.ts +0 -3
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.js +0 -7
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.d.ts +0 -1
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.js +0 -20
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.ts +0 -21
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.tsx +0 -35
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.d.ts +0 -16
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.js +0 -1
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.ts +0 -18
- package/dist/src/components/molecules/DocumentListMenuSection/index.d.ts +0 -2
- package/dist/src/components/molecules/DocumentListMenuSection/index.js +0 -1
- package/dist/src/components/molecules/DocumentListMenuSection/index.ts +0 -2
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.d.ts +0 -3
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.js +0 -5
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.d.ts +0 -1
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.js +0 -26
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.ts +0 -27
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.tsx +0 -17
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.d.ts +0 -4
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.js +0 -1
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.ts +0 -4
- package/dist/src/components/molecules/MenuSectionTitle/index.d.ts +0 -2
- package/dist/src/components/molecules/MenuSectionTitle/index.js +0 -1
- package/dist/src/components/molecules/MenuSectionTitle/index.ts +0 -2
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.d.ts +0 -4
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.js +0 -7
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.d.ts +0 -1
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.js +0 -34
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.ts +0 -35
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.tsx +0 -23
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.d.ts +0 -4
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.js +0 -1
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.ts +0 -4
- package/dist/src/components/molecules/NavMobileContactBar/index.d.ts +0 -2
- package/dist/src/components/molecules/NavMobileContactBar/index.js +0 -1
- package/dist/src/components/molecules/NavMobileContactBar/index.ts +0 -2
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.d.ts +0 -3
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.js +0 -5
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.d.ts +0 -1
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.js +0 -18
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.ts +0 -19
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.tsx +0 -25
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.d.ts +0 -8
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.js +0 -1
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.ts +0 -9
- package/dist/src/components/molecules/ProductListMenu/index.d.ts +0 -2
- package/dist/src/components/molecules/ProductListMenu/index.js +0 -1
- package/dist/src/components/molecules/ProductListMenu/index.ts +0 -2
- package/dist/src/components/molecules/SearchBar/SearchBar.d.ts +0 -3
- package/dist/src/components/molecules/SearchBar/SearchBar.js +0 -33
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.d.ts +0 -1
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.js +0 -62
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.ts +0 -63
- package/dist/src/components/molecules/SearchBar/SearchBar.tsx +0 -72
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.d.ts +0 -37
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.js +0 -1
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.ts +0 -41
- package/dist/src/components/molecules/SearchBar/index.d.ts +0 -2
- package/dist/src/components/molecules/SearchBar/index.js +0 -1
- package/dist/src/components/molecules/SearchBar/index.ts +0 -2
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.d.ts +0 -3
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.js +0 -7
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.js +0 -67
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.ts +0 -68
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.tsx +0 -47
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.d.ts +0 -21
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.js +0 -1
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.ts +0 -24
- package/dist/src/components/organisms/DocumentListMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/DocumentListMenu/index.js +0 -1
- package/dist/src/components/organisms/DocumentListMenu/index.ts +0 -2
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.d.ts +0 -3
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.js +0 -11
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.js +0 -94
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.ts +0 -95
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.tsx +0 -59
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.d.ts +0 -22
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.js +0 -1
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.ts +0 -25
- package/dist/src/components/organisms/DocumentMainMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/DocumentMainMenu/index.js +0 -1
- package/dist/src/components/organisms/DocumentMainMenu/index.ts +0 -2
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.d.ts +0 -4
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.js +0 -7
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.js +0 -27
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.ts +0 -28
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.tsx +0 -21
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.d.ts +0 -7
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.js +0 -1
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.ts +0 -8
- package/dist/src/components/organisms/DocumentSubMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/DocumentSubMenu/index.js +0 -1
- package/dist/src/components/organisms/DocumentSubMenu/index.ts +0 -2
- package/dist/src/components/organisms/MenuItems/MenuItems.d.ts +0 -3
- package/dist/src/components/organisms/MenuItems/MenuItems.js +0 -10
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +0 -719
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +0 -723
- package/dist/src/components/organisms/MenuItems/MenuItems.tsx +0 -81
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.d.ts +0 -45
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.js +0 -1
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.ts +0 -46
- package/dist/src/components/organisms/MenuItems/index.d.ts +0 -2
- package/dist/src/components/organisms/MenuItems/index.js +0 -1
- package/dist/src/components/organisms/MenuItems/index.ts +0 -2
- package/dist/src/components/organisms/NavMenu/NavMenu.d.ts +0 -3
- package/dist/src/components/organisms/NavMenu/NavMenu.js +0 -10
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +0 -644
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +0 -648
- package/dist/src/components/organisms/NavMenu/NavMenu.tsx +0 -121
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.d.ts +0 -80
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.js +0 -1
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.ts +0 -82
- package/dist/src/components/organisms/NavMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/NavMenu/index.js +0 -1
- package/dist/src/components/organisms/NavMenu/index.ts +0 -2
- package/dist/src/components/sections/Header/Header.d.ts +0 -4
- package/dist/src/components/sections/Header/Header.js +0 -11
- package/dist/src/components/sections/Header/Header.styled.d.ts +0 -1
- package/dist/src/components/sections/Header/Header.styled.js +0 -136
- package/dist/src/components/sections/Header/Header.styled.ts +0 -137
- package/dist/src/components/sections/Header/Header.tsx +0 -28
- package/dist/src/components/sections/Header/HeaderProps.types.d.ts +0 -97
- package/dist/src/components/sections/Header/HeaderProps.types.js +0 -1
- package/dist/src/components/sections/Header/HeaderProps.types.ts +0 -101
- package/dist/src/components/sections/Header/index.d.ts +0 -2
- package/dist/src/components/sections/Header/index.js +0 -1
- package/dist/src/components/sections/Header/index.ts +0 -2
- package/dist/src/hooks/useWindowSize.d.ts +0 -6
- package/dist/src/hooks/useWindowSize.js +0 -43
- package/dist/src/hooks/useWindowSize.tsx +0 -51
- /package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.js → MenuItems/MenuItemProps.types.js} +0 -0
|
@@ -2,19 +2,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { DocumentStatusStyled } from './DocumentStatus.styled';
|
|
3
3
|
import { Done24px } from '../../../../images/componentsSvg/Done24px';
|
|
4
4
|
import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p';
|
|
5
|
-
import { RatafiaIcon24px } from '../../../../images/componentsSvg/RatafiaIcon24px';
|
|
6
5
|
import { Sign24px } from '../../../../images/componentsSvg/Sign24px';
|
|
7
6
|
import { Time24px } from '../../../../images/componentsSvg/Time24px';
|
|
8
|
-
const DocumentStatus = ({ type, statusCompletedText, statusNewText, statusInProgressText,
|
|
7
|
+
const DocumentStatus = ({ type, statusCompletedText, statusNewText, statusInProgressText, statusSignedText }) => {
|
|
9
8
|
if (type === 'complete' || type === 'downloaded' || type === 'pdf_processing' || type === 'pdf_generated') {
|
|
10
9
|
return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-completed', children: [_jsx(Done24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusCompletedText })] }));
|
|
11
10
|
}
|
|
12
11
|
if (type === 'new') {
|
|
13
12
|
return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-new', children: [_jsx(NewRelease24p, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusNewText })] }));
|
|
14
13
|
}
|
|
15
|
-
if (type === 'ai_reviewed') {
|
|
16
|
-
return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-ai-reviewed', children: [_jsx(RatafiaIcon24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusAIReviewedText })] }));
|
|
17
|
-
}
|
|
18
14
|
if (type === 'signed') {
|
|
19
15
|
return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-signed', children: [_jsx(Sign24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusSignedText })] }));
|
|
20
16
|
}
|
|
@@ -62,20 +62,6 @@ export const DocumentStatusStyled = styled.div `
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
&.--is-ai-reviewed {
|
|
66
|
-
padding: 0.25rem;
|
|
67
|
-
gap: 0.25rem;
|
|
68
|
-
background-color: var(--primary-main-light-5);
|
|
69
|
-
border-color: var(--primary-main-light-3);
|
|
70
|
-
color: var(--primary-main);
|
|
71
|
-
|
|
72
|
-
svg {
|
|
73
|
-
path {
|
|
74
|
-
fill: var(--primary-main);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
65
|
&.--is-signed {
|
|
80
66
|
width: fit-content;
|
|
81
67
|
background-color: var(--primary-main-dark-2);
|
|
@@ -63,20 +63,6 @@ export const DocumentStatusStyled = styled.div`
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
&.--is-ai-reviewed {
|
|
67
|
-
padding: 0.25rem;
|
|
68
|
-
gap: 0.25rem;
|
|
69
|
-
background-color: var(--primary-main-light-5);
|
|
70
|
-
border-color: var(--primary-main-light-3);
|
|
71
|
-
color: var(--primary-main);
|
|
72
|
-
|
|
73
|
-
svg {
|
|
74
|
-
path {
|
|
75
|
-
fill: var(--primary-main);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
66
|
&.--is-signed {
|
|
81
67
|
width: fit-content;
|
|
82
68
|
background-color: var(--primary-main-dark-2);
|
|
@@ -4,7 +4,6 @@ import { type DocumentStatusProps } from './DocumentStatusProps.types'
|
|
|
4
4
|
import { DocumentStatusStyled } from './DocumentStatus.styled'
|
|
5
5
|
import { Done24px } from '../../../../images/componentsSvg/Done24px'
|
|
6
6
|
import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p'
|
|
7
|
-
import { RatafiaIcon24px } from '../../../../images/componentsSvg/RatafiaIcon24px'
|
|
8
7
|
import { Sign24px } from '../../../../images/componentsSvg/Sign24px'
|
|
9
8
|
import { Time24px } from '../../../../images/componentsSvg/Time24px'
|
|
10
9
|
|
|
@@ -13,7 +12,6 @@ const DocumentStatus: FC<DocumentStatusProps> = ({
|
|
|
13
12
|
statusCompletedText,
|
|
14
13
|
statusNewText,
|
|
15
14
|
statusInProgressText,
|
|
16
|
-
statusAIReviewedText,
|
|
17
15
|
statusSignedText
|
|
18
16
|
}) => {
|
|
19
17
|
if (type === 'complete' || type === 'downloaded' || type === 'pdf_processing' || type === 'pdf_generated') {
|
|
@@ -30,13 +28,6 @@ const DocumentStatus: FC<DocumentStatusProps> = ({
|
|
|
30
28
|
</DocumentStatusStyled>
|
|
31
29
|
)
|
|
32
30
|
}
|
|
33
|
-
if (type === 'ai_reviewed') {
|
|
34
|
-
return (
|
|
35
|
-
<DocumentStatusStyled data-testid='document-status' className={'document-status --is-ai-reviewed'}>
|
|
36
|
-
<RatafiaIcon24px className='icon' /> <span className={'sans-serif --small'}>{statusAIReviewedText}</span>
|
|
37
|
-
</DocumentStatusStyled>
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
31
|
if (type === 'signed') {
|
|
41
32
|
return (
|
|
42
33
|
<DocumentStatusStyled data-testid='document-status' className={'document-status --is-signed'}>
|
|
@@ -4,10 +4,10 @@ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-run
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import {
|
|
7
|
+
import { MenuItemsStyled } from './MenuItems.styled';
|
|
8
8
|
import { stringSlugify } from '../../../utils/stringSlugify';
|
|
9
9
|
// import './MenuItems.scss'
|
|
10
|
-
const
|
|
10
|
+
const MenuItems = ({ spacing, list, hasBullets = false, initialActiveContent = '', ...rest }) => {
|
|
11
11
|
const [contentListElement, setContentListElement] = useState(initialActiveContent);
|
|
12
12
|
const filteredList = list?.filter((item) => item.content);
|
|
13
13
|
if (filteredList.length === 0 || !filteredList[0].content) {
|
|
@@ -38,6 +38,6 @@ const MenuItemsDeprecated = ({ spacing, list, hasBullets = false, initialActiveC
|
|
|
38
38
|
initialActiveContent && handleActiveListElement(content);
|
|
39
39
|
}, ...props, children: href ? (_jsxs("a", { href: href, "data-qa": dataQA ?? slugifiedContent, children: [image, content] })) : (_jsxs(_Fragment, { children: [image, content] })) }, listKey));
|
|
40
40
|
};
|
|
41
|
-
return (_jsx(
|
|
41
|
+
return (_jsx(MenuItemsStyled, { className: classes, ...rest, children: filteredList.map((item, index) => renderItem(item, index)) }));
|
|
42
42
|
};
|
|
43
|
-
export default
|
|
43
|
+
export default MenuItems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MenuItemsStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<
|
|
1
|
+
export declare const MenuItemsStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
export const
|
|
3
|
+
export const MenuItemsStyled = styled.ul `
|
|
4
4
|
.menu-items {
|
|
5
5
|
&__spacing {
|
|
6
6
|
.menu-items__item:not(:last-child) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints'
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const MenuItemsStyled = styled.ul`
|
|
5
5
|
.menu-items {
|
|
6
6
|
&__spacing {
|
|
7
7
|
.menu-items__item:not(:last-child) {
|
|
@@ -4,18 +4,12 @@
|
|
|
4
4
|
import React, { type FC, useState } from 'react'
|
|
5
5
|
import classNames from 'classnames'
|
|
6
6
|
|
|
7
|
-
import { type
|
|
8
|
-
import {
|
|
7
|
+
import { type MenuItemProps, type MenuListItem } from './MenuItemProps.types'
|
|
8
|
+
import { MenuItemsStyled } from './MenuItems.styled'
|
|
9
9
|
import { stringSlugify } from '../../../utils/stringSlugify'
|
|
10
10
|
// import './MenuItems.scss'
|
|
11
11
|
|
|
12
|
-
const
|
|
13
|
-
spacing,
|
|
14
|
-
list,
|
|
15
|
-
hasBullets = false,
|
|
16
|
-
initialActiveContent = '',
|
|
17
|
-
...rest
|
|
18
|
-
}) => {
|
|
12
|
+
const MenuItems: FC<MenuItemProps> = ({ spacing, list, hasBullets = false, initialActiveContent = '', ...rest }) => {
|
|
19
13
|
const [contentListElement, setContentListElement] = useState(initialActiveContent)
|
|
20
14
|
const filteredList = list?.filter((item) => item.content)
|
|
21
15
|
if (filteredList.length === 0 || !filteredList[0].content) {
|
|
@@ -70,10 +64,10 @@ const MenuItemsDeprecated: FC<MenuItemsDeprecatedProps> = ({
|
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
return (
|
|
73
|
-
<
|
|
67
|
+
<MenuItemsStyled className={classes} {...rest}>
|
|
74
68
|
{filteredList.map((item, index) => renderItem(item, index))}
|
|
75
|
-
</
|
|
69
|
+
</MenuItemsStyled>
|
|
76
70
|
)
|
|
77
71
|
}
|
|
78
72
|
|
|
79
|
-
export default
|
|
73
|
+
export default MenuItems
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MenuItems } from './MenuItems';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { MenuItems } from '../MenuItems';
|
|
4
4
|
import { SidemenuTabStyled } from './SidemenuTab.styled';
|
|
5
5
|
import { Tooltip } from '../Tooltip';
|
|
6
6
|
const SidemenuTab = ({ active, mobile, menu, text, image, onClick, children }) => {
|
|
@@ -12,6 +12,6 @@ const SidemenuTab = ({ active, mobile, menu, text, image, onClick, children }) =
|
|
|
12
12
|
if (menu === undefined || menu?.lenght === 0) {
|
|
13
13
|
return renderTab();
|
|
14
14
|
}
|
|
15
|
-
return (_jsx(Tooltip, { content: _jsx(
|
|
15
|
+
return (_jsx(Tooltip, { content: _jsx(MenuItems, { list: menu }), interactive: true, trigger: 'click', children: renderTab() }));
|
|
16
16
|
};
|
|
17
17
|
export default SidemenuTab;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import classNames from 'classnames'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { MenuItems } from '../MenuItems'
|
|
5
5
|
import { type SideMenuTabProps } from './SideMenuTabProps.types'
|
|
6
6
|
import { SidemenuTabStyled } from './SidemenuTab.styled'
|
|
7
7
|
import { Tooltip } from '../Tooltip'
|
|
@@ -26,7 +26,7 @@ const SidemenuTab: React.FC<SideMenuTabProps> = ({ active, mobile, menu, text, i
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
|
-
<Tooltip content={<
|
|
29
|
+
<Tooltip content={<MenuItems list={menu} />} interactive trigger='click'>
|
|
30
30
|
{renderTab()}
|
|
31
31
|
</Tooltip>
|
|
32
32
|
)
|
|
@@ -26,7 +26,7 @@ export const TopBarStyled = styled.div `
|
|
|
26
26
|
width: 100%;
|
|
27
27
|
height: 100%;
|
|
28
28
|
justify-content: center;
|
|
29
|
-
align-items:
|
|
29
|
+
align-items: flex-end;
|
|
30
30
|
border: 1px solid var(--neutral-neutral-4);
|
|
31
31
|
|
|
32
32
|
@media ${device.mobile} {
|
|
@@ -50,53 +50,6 @@ export const TopBarStyled = styled.div `
|
|
|
50
50
|
display: inherit;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
&-mobile {
|
|
55
|
-
background-color: var(--neutral-neutral-5);
|
|
56
|
-
display: flex;
|
|
57
|
-
padding: 0.5rem 1rem;
|
|
58
|
-
justify-content: space-between;
|
|
59
|
-
align-items: center;
|
|
60
|
-
border-radius: var(--s-border-radius);
|
|
61
|
-
box-shadow: var(--box-shadow-container);
|
|
62
|
-
font-size: 14px;
|
|
63
|
-
line-height: 18px;
|
|
64
|
-
letter-spacing: -0.3px;
|
|
65
|
-
position: fixed;
|
|
66
|
-
top: 0.5rem;
|
|
67
|
-
left: 0.5rem;
|
|
68
|
-
right: 0.5rem;
|
|
69
|
-
|
|
70
|
-
&.fade-In {
|
|
71
|
-
visibility: visible;
|
|
72
|
-
opacity: 1;
|
|
73
|
-
transition:
|
|
74
|
-
visibility 0s linear 0s,
|
|
75
|
-
opacity 300ms;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.fade-Out {
|
|
79
|
-
visibility: hidden;
|
|
80
|
-
opacity: 0;
|
|
81
|
-
transition:
|
|
82
|
-
visibility 0s linear 300ms,
|
|
83
|
-
opacity 300ms;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
> b {
|
|
87
|
-
display: flex;
|
|
88
|
-
justify-content: center;
|
|
89
|
-
align-items: center;
|
|
90
|
-
|
|
91
|
-
a {
|
|
92
|
-
display: contents;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
img {
|
|
96
|
-
margin-right: 0.5rem;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
53
|
}
|
|
101
54
|
}
|
|
102
55
|
`;
|
|
@@ -27,7 +27,7 @@ export const TopBarStyled = styled.div`
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
justify-content: center;
|
|
30
|
-
align-items:
|
|
30
|
+
align-items: flex-end;
|
|
31
31
|
border: 1px solid var(--neutral-neutral-4);
|
|
32
32
|
|
|
33
33
|
@media ${device.mobile} {
|
|
@@ -51,53 +51,6 @@ export const TopBarStyled = styled.div`
|
|
|
51
51
|
display: inherit;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
&-mobile {
|
|
56
|
-
background-color: var(--neutral-neutral-5);
|
|
57
|
-
display: flex;
|
|
58
|
-
padding: 0.5rem 1rem;
|
|
59
|
-
justify-content: space-between;
|
|
60
|
-
align-items: center;
|
|
61
|
-
border-radius: var(--s-border-radius);
|
|
62
|
-
box-shadow: var(--box-shadow-container);
|
|
63
|
-
font-size: 14px;
|
|
64
|
-
line-height: 18px;
|
|
65
|
-
letter-spacing: -0.3px;
|
|
66
|
-
position: fixed;
|
|
67
|
-
top: 0.5rem;
|
|
68
|
-
left: 0.5rem;
|
|
69
|
-
right: 0.5rem;
|
|
70
|
-
|
|
71
|
-
&.fade-In {
|
|
72
|
-
visibility: visible;
|
|
73
|
-
opacity: 1;
|
|
74
|
-
transition:
|
|
75
|
-
visibility 0s linear 0s,
|
|
76
|
-
opacity 300ms;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&.fade-Out {
|
|
80
|
-
visibility: hidden;
|
|
81
|
-
opacity: 0;
|
|
82
|
-
transition:
|
|
83
|
-
visibility 0s linear 300ms,
|
|
84
|
-
opacity 300ms;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
> b {
|
|
88
|
-
display: flex;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
align-items: center;
|
|
91
|
-
|
|
92
|
-
a {
|
|
93
|
-
display: contents;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
img {
|
|
97
|
-
margin-right: 0.5rem;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
54
|
}
|
|
102
55
|
}
|
|
103
56
|
`
|
|
@@ -14,7 +14,7 @@ const TopBar: FC<TopBarProps> = ({ hide, children }) => {
|
|
|
14
14
|
return (
|
|
15
15
|
<TopBarStyled className={`top-bar-wrapper ${classnames}`}>
|
|
16
16
|
<div className={'top-bar'}>
|
|
17
|
-
<div className='top-bar-content'>{children}</div>
|
|
17
|
+
<div className={'top-bar-content'}>{children}</div>
|
|
18
18
|
</div>
|
|
19
19
|
</TopBarStyled>
|
|
20
20
|
)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { TopBarMobileStyled } from './TopBarMobile.styled';
|
|
4
|
+
export const TopBarMobile = ({ children, isVisible = false }) => {
|
|
5
|
+
const [isSSR, setIsSSR] = useState(false);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
setIsSSR(true);
|
|
8
|
+
}, []);
|
|
9
|
+
return isSSR ? (_jsx(TopBarMobileStyled, { className: `top-bar-mobile ${isVisible ? 'fade-In' : 'fade-Out'}`, children: children })) : null;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TopBarMobileStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const TopBarMobileStyled = styled.div `
|
|
3
|
+
background-color: var(--neutral-neutral-5);
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 0.5rem 1rem;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
border-radius: var(--s-border-radius);
|
|
9
|
+
box-shadow: var(--box-shadow-container);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
line-height: 18px;
|
|
12
|
+
letter-spacing: -0.3px;
|
|
13
|
+
position: fixed;
|
|
14
|
+
top: 0.5rem;
|
|
15
|
+
left: 0.5rem;
|
|
16
|
+
right: 0.5rem;
|
|
17
|
+
|
|
18
|
+
&.top-bar-mobile {
|
|
19
|
+
&.fade-In {
|
|
20
|
+
visibility: visible;
|
|
21
|
+
opacity: 1;
|
|
22
|
+
transition:
|
|
23
|
+
visibility 0s linear 0s,
|
|
24
|
+
opacity 300ms;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.fade-Out {
|
|
28
|
+
visibility: hidden;
|
|
29
|
+
opacity: 0;
|
|
30
|
+
transition:
|
|
31
|
+
visibility 0s linear 300ms,
|
|
32
|
+
opacity 300ms;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> b {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
|
|
40
|
+
a {
|
|
41
|
+
display: contents;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
img {
|
|
45
|
+
margin-right: 0.5rem;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const TopBarMobileStyled = styled.div`
|
|
4
|
+
background-color: var(--neutral-neutral-5);
|
|
5
|
+
display: flex;
|
|
6
|
+
padding: 0.5rem 1rem;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-radius: var(--s-border-radius);
|
|
10
|
+
box-shadow: var(--box-shadow-container);
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 18px;
|
|
13
|
+
letter-spacing: -0.3px;
|
|
14
|
+
position: fixed;
|
|
15
|
+
top: 0.5rem;
|
|
16
|
+
left: 0.5rem;
|
|
17
|
+
right: 0.5rem;
|
|
18
|
+
|
|
19
|
+
&.top-bar-mobile {
|
|
20
|
+
&.fade-In {
|
|
21
|
+
visibility: visible;
|
|
22
|
+
opacity: 1;
|
|
23
|
+
transition:
|
|
24
|
+
visibility 0s linear 0s,
|
|
25
|
+
opacity 300ms;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.fade-Out {
|
|
29
|
+
visibility: hidden;
|
|
30
|
+
opacity: 0;
|
|
31
|
+
transition:
|
|
32
|
+
visibility 0s linear 300ms,
|
|
33
|
+
opacity 300ms;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
> b {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
align-items: center;
|
|
40
|
+
|
|
41
|
+
a {
|
|
42
|
+
display: contents;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
img {
|
|
46
|
+
margin-right: 0.5rem;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react'
|
|
2
|
+
import { TopBarMobileStyled } from './TopBarMobile.styled'
|
|
3
|
+
|
|
4
|
+
interface TopBarMobileProps {
|
|
5
|
+
children: React.ReactNode
|
|
6
|
+
isVisible: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const TopBarMobile: React.FC<TopBarMobileProps> = ({
|
|
10
|
+
children,
|
|
11
|
+
isVisible = false
|
|
12
|
+
}): React.ReactElement | null => {
|
|
13
|
+
const [isSSR, setIsSSR] = useState(false)
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
setIsSSR(true)
|
|
16
|
+
}, [])
|
|
17
|
+
return isSSR ? (
|
|
18
|
+
<TopBarMobileStyled className={`top-bar-mobile ${isVisible ? 'fade-In' : 'fade-Out'}`}>
|
|
19
|
+
{children}
|
|
20
|
+
</TopBarMobileStyled>
|
|
21
|
+
) : null
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TopBarMobile } from './TopBarMobile';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TopBarMobile } from './TopBarMobile';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TopBarMobile } from './TopBarMobile'
|
|
@@ -16,7 +16,6 @@ export * from './DialogMenuIcon';
|
|
|
16
16
|
export * from './Disclaimer';
|
|
17
17
|
export * from './DisclaimerRatafia';
|
|
18
18
|
export * from './Divider';
|
|
19
|
-
export * from './DropdownInput';
|
|
20
19
|
export * from './DocumentStatus';
|
|
21
20
|
export * from './DocumentTag';
|
|
22
21
|
export * from './ExpertCard';
|
|
@@ -32,7 +31,7 @@ export * from './JumbotronStatic';
|
|
|
32
31
|
export * from './KeyFactRatafiaCard';
|
|
33
32
|
export * from './Logo';
|
|
34
33
|
export * from './LogoText';
|
|
35
|
-
export * from './
|
|
34
|
+
export * from './MenuItems';
|
|
36
35
|
export * from './Message';
|
|
37
36
|
export * from './MessageInformation';
|
|
38
37
|
export * from './MoreDocsItem';
|
|
@@ -62,6 +61,7 @@ export * from './TextArea';
|
|
|
62
61
|
export * from './Toggle';
|
|
63
62
|
export * from './Tooltip';
|
|
64
63
|
export * from './TopBar';
|
|
64
|
+
export * from './TopBarMobile';
|
|
65
65
|
export * from './TrustPilot';
|
|
66
66
|
export * from './Video';
|
|
67
67
|
export * from './WhyLawDistrictItems';
|
|
@@ -16,7 +16,6 @@ export * from './DialogMenuIcon';
|
|
|
16
16
|
export * from './Disclaimer';
|
|
17
17
|
export * from './DisclaimerRatafia';
|
|
18
18
|
export * from './Divider';
|
|
19
|
-
export * from './DropdownInput';
|
|
20
19
|
export * from './DocumentStatus';
|
|
21
20
|
export * from './DocumentTag';
|
|
22
21
|
export * from './ExpertCard';
|
|
@@ -32,7 +31,7 @@ export * from './JumbotronStatic';
|
|
|
32
31
|
export * from './KeyFactRatafiaCard';
|
|
33
32
|
export * from './Logo';
|
|
34
33
|
export * from './LogoText';
|
|
35
|
-
export * from './
|
|
34
|
+
export * from './MenuItems';
|
|
36
35
|
export * from './Message';
|
|
37
36
|
export * from './MessageInformation';
|
|
38
37
|
export * from './MoreDocsItem';
|
|
@@ -62,6 +61,7 @@ export * from './TextArea';
|
|
|
62
61
|
export * from './Toggle';
|
|
63
62
|
export * from './Tooltip';
|
|
64
63
|
export * from './TopBar';
|
|
64
|
+
export * from './TopBarMobile';
|
|
65
65
|
export * from './TrustPilot';
|
|
66
66
|
export * from './Video';
|
|
67
67
|
export * from './WhyLawDistrictItems';
|
|
@@ -16,7 +16,6 @@ export * from './DialogMenuIcon'
|
|
|
16
16
|
export * from './Disclaimer'
|
|
17
17
|
export * from './DisclaimerRatafia'
|
|
18
18
|
export * from './Divider'
|
|
19
|
-
export * from './DropdownInput'
|
|
20
19
|
export * from './DocumentStatus'
|
|
21
20
|
export * from './DocumentTag'
|
|
22
21
|
export * from './ExpertCard'
|
|
@@ -32,7 +31,7 @@ export * from './JumbotronStatic'
|
|
|
32
31
|
export * from './KeyFactRatafiaCard'
|
|
33
32
|
export * from './Logo'
|
|
34
33
|
export * from './LogoText'
|
|
35
|
-
export * from './
|
|
34
|
+
export * from './MenuItems'
|
|
36
35
|
export * from './Message'
|
|
37
36
|
export * from './MessageInformation'
|
|
38
37
|
export * from './MoreDocsItem'
|
|
@@ -62,6 +61,7 @@ export * from './TextArea'
|
|
|
62
61
|
export * from './Toggle'
|
|
63
62
|
export * from './Tooltip'
|
|
64
63
|
export * from './TopBar'
|
|
64
|
+
export * from './TopBarMobile'
|
|
65
65
|
export * from './TrustPilot'
|
|
66
66
|
export * from './Video'
|
|
67
67
|
export * from './WhyLawDistrictItems'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { MenuItems } from '../../atoms';
|
|
3
3
|
import { MenuItemsSectionStyled } from './MenuItemsSection.styled';
|
|
4
4
|
const MenuItemsSection = ({ icon, title, list }) => {
|
|
5
5
|
const filteredList = title !== undefined && list !== undefined ? list.filter((item) => item.content) : null;
|
|
6
6
|
if (filteredList === null || filteredList?.length === 0 || filteredList[0].content === undefined)
|
|
7
7
|
return null;
|
|
8
|
-
return (_jsxs(MenuItemsSectionStyled, { className: 'menu-items-section', children: [_jsxs("div", { className: 'menu-items-section__title-wrapper', children: [icon ?? null, _jsx("div", { className: 'menu-items-section__title-wrapper__title', children: title })] }), list && _jsx(
|
|
8
|
+
return (_jsxs(MenuItemsSectionStyled, { className: 'menu-items-section', children: [_jsxs("div", { className: 'menu-items-section__title-wrapper', children: [icon ?? null, _jsx("div", { className: 'menu-items-section__title-wrapper__title', children: title })] }), list && _jsx(MenuItems, { list: list, spacing: true })] }));
|
|
9
9
|
};
|
|
10
10
|
export default MenuItemsSection;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { MenuItems } from '../../atoms'
|
|
4
4
|
import { type MenuItemsSectionProps } from './MenuItemsSectionProps.types'
|
|
5
5
|
import { MenuItemsSectionStyled } from './MenuItemsSection.styled'
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ const MenuItemsSection: FC<MenuItemsSectionProps> = ({ icon, title, list }) => {
|
|
|
14
14
|
{icon ?? null}
|
|
15
15
|
<div className='menu-items-section__title-wrapper__title'>{title}</div>
|
|
16
16
|
</div>
|
|
17
|
-
{list && <
|
|
17
|
+
{list && <MenuItems list={list} spacing />}
|
|
18
18
|
</MenuItemsSectionStyled>
|
|
19
19
|
)
|
|
20
20
|
}
|