@npm_leadtech/legal-lib-components 7.25.4 → 7.25.6
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/DropdownInput/DropdownInput.styled.js +7 -7
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.ts +7 -7
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.js +1 -1
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.ts +1 -1
- package/dist/src/components/atoms/Logo/Logo.js +2 -2
- package/dist/src/components/atoms/Logo/Logo.tsx +1 -3
- package/dist/src/components/atoms/Logo/LogoProps.types.d.ts +0 -1
- package/dist/src/components/atoms/Logo/LogoProps.types.ts +0 -1
- package/dist/src/components/atoms/RatafiaLandingIcon/RatafiaLandingIcon.scss +2 -1
- package/dist/src/components/atoms/SearchSelect/SearchSelect.js +3 -3
- package/dist/src/components/atoms/SearchSelect/SearchSelect.tsx +3 -3
- package/dist/src/components/atoms/TopBar/TopBar.styled.js +1 -1
- package/dist/src/components/atoms/TopBar/TopBar.styled.ts +1 -1
- package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.js +1 -1
- package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.ts +1 -1
- package/dist/src/components/molecules/DesktopSearchBar/DesktopSearchBar.styled.js +1 -1
- package/dist/src/components/molecules/DesktopSearchBar/DesktopSearchBar.styled.ts +1 -1
- package/dist/src/components/molecules/MobileSearchBar/MobileSearchBar.styled.js +1 -1
- package/dist/src/components/molecules/MobileSearchBar/MobileSearchBar.styled.ts +1 -1
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.js +1 -1
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.ts +1 -1
- package/dist/src/components/organisms/BottomFooter/BottomFooter.js +1 -1
- package/dist/src/components/organisms/BottomFooter/BottomFooter.tsx +1 -8
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.js +3 -3
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.ts +3 -3
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +13 -11
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +13 -11
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +27 -10
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +27 -10
- package/dist/src/components/sections/Header/Header.js +1 -1
- package/dist/src/components/sections/Header/Header.styled.js +14 -8
- package/dist/src/components/sections/Header/Header.styled.ts +14 -8
- package/dist/src/components/sections/Header/Header.tsx +1 -1
- package/dist/src/globalStyles/breakpoints.d.ts +2 -0
- package/dist/src/globalStyles/breakpoints.js +2 -0
- package/dist/src/globalStyles/breakpoints.ts +3 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export const DropdownInputStyled = styled.div `
|
|
|
4
4
|
position: relative;
|
|
5
5
|
padding: 1.5rem;
|
|
6
6
|
|
|
7
|
-
@media ${device
|
|
7
|
+
@media ${device.tablets} {
|
|
8
8
|
padding: 16px 24px;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ export const DropdownInputStyled = styled.div `
|
|
|
18
18
|
transition: all 0.25s;
|
|
19
19
|
border-bottom: 1px solid var(--neutral-neutral-4);
|
|
20
20
|
|
|
21
|
-
@media ${device
|
|
21
|
+
@media ${device.tablets} {
|
|
22
22
|
border-top: 2px solid transparent;
|
|
23
23
|
border-bottom: none;
|
|
24
24
|
}
|
|
@@ -26,7 +26,7 @@ export const DropdownInputStyled = styled.div `
|
|
|
26
26
|
&:focus-within {
|
|
27
27
|
border-bottom: 2px var(--neutral-neutral-4) solid;
|
|
28
28
|
|
|
29
|
-
@media ${device
|
|
29
|
+
@media ${device.tablets} {
|
|
30
30
|
border-bottom: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -69,7 +69,7 @@ export const DropdownInputStyled = styled.div `
|
|
|
69
69
|
color: var(--neutral-neutral-3);
|
|
70
70
|
fill: var(--neutral-neutral-3);
|
|
71
71
|
|
|
72
|
-
@media ${device
|
|
72
|
+
@media ${device.tablets} {
|
|
73
73
|
cursor: pointer;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -97,7 +97,7 @@ export const DropdownInputStyled = styled.div `
|
|
|
97
97
|
.dropdown_input__container__icon__main {
|
|
98
98
|
display: none;
|
|
99
99
|
|
|
100
|
-
@media ${device
|
|
100
|
+
@media ${device.tablets} {
|
|
101
101
|
display: block;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -105,7 +105,7 @@ export const DropdownInputStyled = styled.div `
|
|
|
105
105
|
.dropdown_input__container__icon__clear {
|
|
106
106
|
opacity: 1;
|
|
107
107
|
|
|
108
|
-
@media ${device
|
|
108
|
+
@media ${device.tablets} {
|
|
109
109
|
display: none;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -134,7 +134,7 @@ export const DropdownInputStyled = styled.div `
|
|
|
134
134
|
border-top: none;
|
|
135
135
|
padding: 1rem 2rem;
|
|
136
136
|
|
|
137
|
-
@media ${device
|
|
137
|
+
@media ${device.tablets} {
|
|
138
138
|
opacity: 1;
|
|
139
139
|
left: 0;
|
|
140
140
|
top: 100%;
|
|
@@ -5,7 +5,7 @@ export const DropdownInputStyled = styled.div`
|
|
|
5
5
|
position: relative;
|
|
6
6
|
padding: 1.5rem;
|
|
7
7
|
|
|
8
|
-
@media ${device
|
|
8
|
+
@media ${device.tablets} {
|
|
9
9
|
padding: 16px 24px;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ export const DropdownInputStyled = styled.div`
|
|
|
19
19
|
transition: all 0.25s;
|
|
20
20
|
border-bottom: 1px solid var(--neutral-neutral-4);
|
|
21
21
|
|
|
22
|
-
@media ${device
|
|
22
|
+
@media ${device.tablets} {
|
|
23
23
|
border-top: 2px solid transparent;
|
|
24
24
|
border-bottom: none;
|
|
25
25
|
}
|
|
@@ -27,7 +27,7 @@ export const DropdownInputStyled = styled.div`
|
|
|
27
27
|
&:focus-within {
|
|
28
28
|
border-bottom: 2px var(--neutral-neutral-4) solid;
|
|
29
29
|
|
|
30
|
-
@media ${device
|
|
30
|
+
@media ${device.tablets} {
|
|
31
31
|
border-bottom: none;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -70,7 +70,7 @@ export const DropdownInputStyled = styled.div`
|
|
|
70
70
|
color: var(--neutral-neutral-3);
|
|
71
71
|
fill: var(--neutral-neutral-3);
|
|
72
72
|
|
|
73
|
-
@media ${device
|
|
73
|
+
@media ${device.tablets} {
|
|
74
74
|
cursor: pointer;
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -98,7 +98,7 @@ export const DropdownInputStyled = styled.div`
|
|
|
98
98
|
.dropdown_input__container__icon__main {
|
|
99
99
|
display: none;
|
|
100
100
|
|
|
101
|
-
@media ${device
|
|
101
|
+
@media ${device.tablets} {
|
|
102
102
|
display: block;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -106,7 +106,7 @@ export const DropdownInputStyled = styled.div`
|
|
|
106
106
|
.dropdown_input__container__icon__clear {
|
|
107
107
|
opacity: 1;
|
|
108
108
|
|
|
109
|
-
@media ${device
|
|
109
|
+
@media ${device.tablets} {
|
|
110
110
|
display: none;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -135,7 +135,7 @@ export const DropdownInputStyled = styled.div`
|
|
|
135
135
|
border-top: none;
|
|
136
136
|
padding: 1rem 2rem;
|
|
137
137
|
|
|
138
|
-
@media ${device
|
|
138
|
+
@media ${device.tablets} {
|
|
139
139
|
opacity: 1;
|
|
140
140
|
left: 0;
|
|
141
141
|
top: 100%;
|
|
@@ -43,6 +43,6 @@ const LOGOS = {
|
|
|
43
43
|
white: lawdistrictonlineWhite
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
export const Logo = ({ className, siteName = 'lawdistrict', type = 'default', width, height
|
|
47
|
-
return (_jsx("img", { className: className, src: LOGOS[siteName.toLowerCase()][type], alt: `${siteName} logo`, width: width, height: height
|
|
46
|
+
export const Logo = ({ className, siteName = 'lawdistrict', type = 'default', width, height }) => {
|
|
47
|
+
return (_jsx("img", { className: className, src: LOGOS[siteName.toLowerCase()][type], alt: `${siteName} logo`, width: width, height: height }));
|
|
48
48
|
};
|
|
@@ -55,8 +55,7 @@ export const Logo: FC<LogoProps> = ({
|
|
|
55
55
|
siteName = 'lawdistrict',
|
|
56
56
|
type = 'default',
|
|
57
57
|
width,
|
|
58
|
-
height
|
|
59
|
-
isLoadingLazy = false
|
|
58
|
+
height
|
|
60
59
|
}): React.ReactElement => {
|
|
61
60
|
return (
|
|
62
61
|
<img
|
|
@@ -65,7 +64,6 @@ export const Logo: FC<LogoProps> = ({
|
|
|
65
64
|
alt={`${siteName} logo`}
|
|
66
65
|
width={width}
|
|
67
66
|
height={height}
|
|
68
|
-
loading={isLoadingLazy ? 'lazy' : 'eager'}
|
|
69
67
|
/>
|
|
70
68
|
)
|
|
71
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
-
import
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
4
|
import Select from 'react-select';
|
|
5
5
|
import { SearchSelectStyled } from './SearchSelect.styled';
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -25,7 +25,7 @@ const getSortedItems = (items, isSortAlphabetically = false) => {
|
|
|
25
25
|
};
|
|
26
26
|
const SearchSelect = (props) => {
|
|
27
27
|
const { customClass = '', menuPlacement = MenuPlacement.bottom } = props;
|
|
28
|
-
const [menuPortalTarget, setMenuPortalTarget] =
|
|
28
|
+
const [menuPortalTarget, setMenuPortalTarget] = useState();
|
|
29
29
|
const sortedItems = getSortedItems(props.items, props.isSortAlphabetically);
|
|
30
30
|
const defaultValue = props.defaultValue;
|
|
31
31
|
const classnames = classNames({
|
|
@@ -34,7 +34,7 @@ const SearchSelect = (props) => {
|
|
|
34
34
|
[customClass]: props.customClass,
|
|
35
35
|
'--group-invalid': !props.isValidGroup
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
useEffect(() => {
|
|
38
38
|
setMenuPortalTarget(document.body);
|
|
39
39
|
}, []);
|
|
40
40
|
const handleChange = (selectedOption) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
|
|
3
|
-
import React, { type FC } from 'react'
|
|
3
|
+
import React, { type FC, useEffect, useState } from 'react'
|
|
4
4
|
import Select from 'react-select'
|
|
5
5
|
|
|
6
6
|
import { type SearchSelectProps } from './SearchSelectProps.types'
|
|
@@ -28,7 +28,7 @@ const getSortedItems = (items: any, isSortAlphabetically: boolean | undefined =
|
|
|
28
28
|
|
|
29
29
|
const SearchSelect: FC<SearchSelectProps> = (props) => {
|
|
30
30
|
const { customClass = '', menuPlacement = MenuPlacement.bottom } = props
|
|
31
|
-
const [menuPortalTarget, setMenuPortalTarget] =
|
|
31
|
+
const [menuPortalTarget, setMenuPortalTarget] = useState<HTMLElement | undefined>()
|
|
32
32
|
const sortedItems = getSortedItems(props.items, props.isSortAlphabetically)
|
|
33
33
|
const defaultValue = props.defaultValue as unknown as string
|
|
34
34
|
|
|
@@ -39,7 +39,7 @@ const SearchSelect: FC<SearchSelectProps> = (props) => {
|
|
|
39
39
|
'--group-invalid': !props.isValidGroup
|
|
40
40
|
})
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
useEffect(() => {
|
|
43
43
|
setMenuPortalTarget(document.body)
|
|
44
44
|
}, [])
|
|
45
45
|
|
|
@@ -3,5 +3,5 @@ import { BottomFooterStyled, BottomFooterText, BottomFooterWrapper, CompanyLink,
|
|
|
3
3
|
import { Logo } from '../../atoms/Logo/Logo';
|
|
4
4
|
import { SocialLinks } from '../../molecules/SocialLinks';
|
|
5
5
|
export const BottomFooter = ({ siteName, companyLinks, socialLinks, disclaimerText, copyrightText }) => {
|
|
6
|
-
return (_jsx(BottomFooterWrapper, { children: _jsxs(BottomFooterStyled, { children: [_jsxs(LogoSocialsWrapper, { className: 'footer__logo', children: [_jsx(Logo, { className: 'footer__lawdistrict', siteName: siteName, width: '138', height: '24', type: 'white'
|
|
6
|
+
return (_jsx(BottomFooterWrapper, { children: _jsxs(BottomFooterStyled, { children: [_jsxs(LogoSocialsWrapper, { className: 'footer__logo', children: [_jsx(Logo, { className: 'footer__lawdistrict', siteName: siteName, width: '138', height: '24', type: 'white' }), socialLinks && _jsx(SocialLinks, { links: socialLinks })] }), _jsx("div", { children: _jsx(CompanyList, { children: companyLinks?.map((link) => (_jsx("li", { children: _jsx(CompanyLink, { href: link.url, className: 'sans-serif --extra-small', "data-qa": link.dataQa, rel: link.rel, children: link.name }) }, link.url))) }) }), _jsx(BottomFooterText, { className: 'sans-serif --extra-small', children: disclaimerText }), _jsx(BottomFooterText, { className: 'sans-serif --extra-small', children: copyrightText })] }) }));
|
|
7
7
|
};
|
|
@@ -22,14 +22,7 @@ export const BottomFooter: React.FC<BottomFooterProps> = ({
|
|
|
22
22
|
<BottomFooterWrapper>
|
|
23
23
|
<BottomFooterStyled>
|
|
24
24
|
<LogoSocialsWrapper className={'footer__logo'}>
|
|
25
|
-
<Logo
|
|
26
|
-
className='footer__lawdistrict'
|
|
27
|
-
siteName={siteName}
|
|
28
|
-
width='138'
|
|
29
|
-
height='24'
|
|
30
|
-
type='white'
|
|
31
|
-
isLoadingLazy
|
|
32
|
-
/>
|
|
25
|
+
<Logo className='footer__lawdistrict' siteName={siteName} width='138' height='24' type='white' />
|
|
33
26
|
{socialLinks && <SocialLinks links={socialLinks} />}
|
|
34
27
|
</LogoSocialsWrapper>
|
|
35
28
|
<div>
|
|
@@ -7,7 +7,7 @@ export const DocumentListMenuStyled = styled.div `
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
padding: 1rem 0;
|
|
9
9
|
|
|
10
|
-
@media ${device
|
|
10
|
+
@media ${device.tablets} {
|
|
11
11
|
display: none;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ export const DocumentListMenuStyled = styled.div `
|
|
|
17
17
|
align-items: flex-start;
|
|
18
18
|
margin: auto;
|
|
19
19
|
|
|
20
|
-
@media ${device
|
|
20
|
+
@media ${device.tablets} {
|
|
21
21
|
width: 696px;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -33,7 +33,7 @@ export const DocumentListMenuStyled = styled.div `
|
|
|
33
33
|
text-align: left;
|
|
34
34
|
width: 100%;
|
|
35
35
|
|
|
36
|
-
@media ${device
|
|
36
|
+
@media ${device.tablets} {
|
|
37
37
|
width: 33%;
|
|
38
38
|
padding-right: 1rem;
|
|
39
39
|
&:nth-child(3) {
|
|
@@ -8,7 +8,7 @@ export const DocumentListMenuStyled = styled.div`
|
|
|
8
8
|
width: 100%;
|
|
9
9
|
padding: 1rem 0;
|
|
10
10
|
|
|
11
|
-
@media ${device
|
|
11
|
+
@media ${device.tablets} {
|
|
12
12
|
display: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -18,7 +18,7 @@ export const DocumentListMenuStyled = styled.div`
|
|
|
18
18
|
align-items: flex-start;
|
|
19
19
|
margin: auto;
|
|
20
20
|
|
|
21
|
-
@media ${device
|
|
21
|
+
@media ${device.tablets} {
|
|
22
22
|
width: 696px;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ export const DocumentListMenuStyled = styled.div`
|
|
|
34
34
|
text-align: left;
|
|
35
35
|
width: 100%;
|
|
36
36
|
|
|
37
|
-
@media ${device
|
|
37
|
+
@media ${device.tablets} {
|
|
38
38
|
width: 33%;
|
|
39
39
|
padding-right: 1rem;
|
|
40
40
|
&:nth-child(3) {
|
|
@@ -39,6 +39,7 @@ export const MenuItemsStyled = styled.div `
|
|
|
39
39
|
.left-nav {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
|
+
gap: 1rem;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.header-phone {
|
|
@@ -69,7 +70,7 @@ export const MenuItemsStyled = styled.div `
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
@media ${device
|
|
73
|
+
@media ${device.tablets} {
|
|
73
74
|
display: flex;
|
|
74
75
|
align-items: center;
|
|
75
76
|
flex-direction: row;
|
|
@@ -87,10 +88,9 @@ export const MenuItemsStyled = styled.div `
|
|
|
87
88
|
.navigation-pane__products__container,
|
|
88
89
|
.navigation-pane__resources__container {
|
|
89
90
|
display: flex;
|
|
90
|
-
gap: 0.5rem;
|
|
91
91
|
display: none;
|
|
92
92
|
|
|
93
|
-
@media ${device
|
|
93
|
+
@media ${device.tablets} {
|
|
94
94
|
display: flex;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -103,12 +103,10 @@ export const MenuItemsStyled = styled.div `
|
|
|
103
103
|
.navigation-pane__resources,
|
|
104
104
|
.navigation-pane__help {
|
|
105
105
|
position: relative;
|
|
106
|
-
margin-left: 0.5rem;
|
|
107
106
|
padding: 0.75rem 0;
|
|
108
107
|
cursor: pointer;
|
|
109
108
|
|
|
110
109
|
@media ${device['portrait-tablets']} {
|
|
111
|
-
margin-right: 1.5rem;
|
|
112
110
|
padding-bottom: 0.5rem;
|
|
113
111
|
}
|
|
114
112
|
|
|
@@ -137,7 +135,7 @@ export const MenuItemsStyled = styled.div `
|
|
|
137
135
|
.products__list,
|
|
138
136
|
.help__list,
|
|
139
137
|
.resources__list {
|
|
140
|
-
@media (min-width:
|
|
138
|
+
@media (min-width: ${size.tab}) {
|
|
141
139
|
border-radius: var(--s-border-radius);
|
|
142
140
|
padding: 0.75rem 1rem;
|
|
143
141
|
display: flex;
|
|
@@ -255,7 +253,7 @@ export const MenuItemsStyled = styled.div `
|
|
|
255
253
|
width: 100%;
|
|
256
254
|
}
|
|
257
255
|
|
|
258
|
-
@media (min-width: ${size.
|
|
256
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.md}) {
|
|
259
257
|
display: none;
|
|
260
258
|
}
|
|
261
259
|
|
|
@@ -339,7 +337,11 @@ export const MenuItemsStyled = styled.div `
|
|
|
339
337
|
align-items: center;
|
|
340
338
|
min-width: 18rem;
|
|
341
339
|
|
|
342
|
-
@media (
|
|
340
|
+
@media (max-width: 1024px) {
|
|
341
|
+
gap: 1rem;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.lg}) {
|
|
343
345
|
min-width: 12rem;
|
|
344
346
|
}
|
|
345
347
|
|
|
@@ -367,7 +369,7 @@ export const MenuItemsStyled = styled.div `
|
|
|
367
369
|
.navigation-pane.--is-mobile {
|
|
368
370
|
display: flex;
|
|
369
371
|
|
|
370
|
-
@media ${
|
|
372
|
+
@media (max-width: ${size.tab}) {
|
|
371
373
|
display: none;
|
|
372
374
|
}
|
|
373
375
|
|
|
@@ -639,12 +641,12 @@ export const MenuItemsStyled = styled.div `
|
|
|
639
641
|
.is-tablet {
|
|
640
642
|
display: none;
|
|
641
643
|
|
|
642
|
-
@media (min-width: ${size.
|
|
644
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.md}) {
|
|
643
645
|
display: flex;
|
|
644
646
|
}
|
|
645
647
|
}
|
|
646
648
|
|
|
647
|
-
@media (min-width: ${size.xxs}) and (max-width: ${size.
|
|
649
|
+
@media (min-width: ${size.xxs}) and (max-width: ${size.tab}) {
|
|
648
650
|
.navigation-pane__wrapper {
|
|
649
651
|
display: flex;
|
|
650
652
|
flex-direction: column;
|
|
@@ -40,6 +40,7 @@ export const MenuItemsStyled = styled.div`
|
|
|
40
40
|
.left-nav {
|
|
41
41
|
display: flex;
|
|
42
42
|
align-items: center;
|
|
43
|
+
gap: 1rem;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
.header-phone {
|
|
@@ -70,7 +71,7 @@ export const MenuItemsStyled = styled.div`
|
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
@media ${device
|
|
74
|
+
@media ${device.tablets} {
|
|
74
75
|
display: flex;
|
|
75
76
|
align-items: center;
|
|
76
77
|
flex-direction: row;
|
|
@@ -88,10 +89,9 @@ export const MenuItemsStyled = styled.div`
|
|
|
88
89
|
.navigation-pane__products__container,
|
|
89
90
|
.navigation-pane__resources__container {
|
|
90
91
|
display: flex;
|
|
91
|
-
gap: 0.5rem;
|
|
92
92
|
display: none;
|
|
93
93
|
|
|
94
|
-
@media ${device
|
|
94
|
+
@media ${device.tablets} {
|
|
95
95
|
display: flex;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -104,12 +104,10 @@ export const MenuItemsStyled = styled.div`
|
|
|
104
104
|
.navigation-pane__resources,
|
|
105
105
|
.navigation-pane__help {
|
|
106
106
|
position: relative;
|
|
107
|
-
margin-left: 0.5rem;
|
|
108
107
|
padding: 0.75rem 0;
|
|
109
108
|
cursor: pointer;
|
|
110
109
|
|
|
111
110
|
@media ${device['portrait-tablets']} {
|
|
112
|
-
margin-right: 1.5rem;
|
|
113
111
|
padding-bottom: 0.5rem;
|
|
114
112
|
}
|
|
115
113
|
|
|
@@ -138,7 +136,7 @@ export const MenuItemsStyled = styled.div`
|
|
|
138
136
|
.products__list,
|
|
139
137
|
.help__list,
|
|
140
138
|
.resources__list {
|
|
141
|
-
@media (min-width:
|
|
139
|
+
@media (min-width: ${size.tab}) {
|
|
142
140
|
border-radius: var(--s-border-radius);
|
|
143
141
|
padding: 0.75rem 1rem;
|
|
144
142
|
display: flex;
|
|
@@ -256,7 +254,7 @@ export const MenuItemsStyled = styled.div`
|
|
|
256
254
|
width: 100%;
|
|
257
255
|
}
|
|
258
256
|
|
|
259
|
-
@media (min-width: ${size.
|
|
257
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.md}) {
|
|
260
258
|
display: none;
|
|
261
259
|
}
|
|
262
260
|
|
|
@@ -340,7 +338,11 @@ export const MenuItemsStyled = styled.div`
|
|
|
340
338
|
align-items: center;
|
|
341
339
|
min-width: 18rem;
|
|
342
340
|
|
|
343
|
-
@media (
|
|
341
|
+
@media (max-width: 1024px) {
|
|
342
|
+
gap: 1rem;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.lg}) {
|
|
344
346
|
min-width: 12rem;
|
|
345
347
|
}
|
|
346
348
|
|
|
@@ -368,7 +370,7 @@ export const MenuItemsStyled = styled.div`
|
|
|
368
370
|
.navigation-pane.--is-mobile {
|
|
369
371
|
display: flex;
|
|
370
372
|
|
|
371
|
-
@media ${
|
|
373
|
+
@media (max-width: ${size.tab}) {
|
|
372
374
|
display: none;
|
|
373
375
|
}
|
|
374
376
|
|
|
@@ -640,12 +642,12 @@ export const MenuItemsStyled = styled.div`
|
|
|
640
642
|
.is-tablet {
|
|
641
643
|
display: none;
|
|
642
644
|
|
|
643
|
-
@media (min-width: ${size.
|
|
645
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.md}) {
|
|
644
646
|
display: flex;
|
|
645
647
|
}
|
|
646
648
|
}
|
|
647
649
|
|
|
648
|
-
@media (min-width: ${size.xxs}) and (max-width: ${size.
|
|
650
|
+
@media (min-width: ${size.xxs}) and (max-width: ${size.tab}) {
|
|
649
651
|
.navigation-pane__wrapper {
|
|
650
652
|
display: flex;
|
|
651
653
|
flex-direction: column;
|
|
@@ -11,7 +11,7 @@ export const NavMenuStyled = styled.nav `
|
|
|
11
11
|
flex: 1;
|
|
12
12
|
}
|
|
13
13
|
&.--is-mobile {
|
|
14
|
-
@media (min-width: ${size.
|
|
14
|
+
@media (min-width: ${size.tab}) {
|
|
15
15
|
display: none;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -27,6 +27,10 @@ export const NavMenuStyled = styled.nav `
|
|
|
27
27
|
.left-nav {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
|
+
@media (max-width: 1024px) {
|
|
31
|
+
gap: 1rem;
|
|
32
|
+
}
|
|
33
|
+
gap: 2rem;
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
.header-phone {
|
|
@@ -49,7 +53,17 @@ export const NavMenuStyled = styled.nav `
|
|
|
49
53
|
flex-flow: row nowrap;
|
|
50
54
|
align-items: center;
|
|
51
55
|
justify-content: flex-end;
|
|
52
|
-
gap:
|
|
56
|
+
gap: 2rem;
|
|
57
|
+
|
|
58
|
+
@media (max-width: 1024px) {
|
|
59
|
+
gap: 1rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nav-menu-item {
|
|
63
|
+
@media (max-width: 1024px) {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
53
67
|
|
|
54
68
|
.search {
|
|
55
69
|
width: 100%;
|
|
@@ -57,7 +71,7 @@ export const NavMenuStyled = styled.nav `
|
|
|
57
71
|
}
|
|
58
72
|
}
|
|
59
73
|
|
|
60
|
-
@media ${
|
|
74
|
+
@media (min-width: ${size.tab}) {
|
|
61
75
|
display: flex;
|
|
62
76
|
align-items: center;
|
|
63
77
|
flex-direction: row;
|
|
@@ -76,12 +90,10 @@ export const NavMenuStyled = styled.nav `
|
|
|
76
90
|
.navigation-pane__help,
|
|
77
91
|
.navigation-pane__resources {
|
|
78
92
|
position: relative;
|
|
79
|
-
margin-left: 0.5rem;
|
|
80
93
|
padding: 0.75rem 0;
|
|
81
94
|
cursor: pointer;
|
|
82
95
|
|
|
83
96
|
@media ${device['portrait-tablets']} {
|
|
84
|
-
margin-right: 1.5rem;
|
|
85
97
|
padding-bottom: 0.5rem;
|
|
86
98
|
}
|
|
87
99
|
|
|
@@ -218,7 +230,7 @@ export const NavMenuStyled = styled.nav `
|
|
|
218
230
|
width: 100%;
|
|
219
231
|
}
|
|
220
232
|
|
|
221
|
-
@media (min-width: ${size.
|
|
233
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.md}) {
|
|
222
234
|
display: none;
|
|
223
235
|
}
|
|
224
236
|
|
|
@@ -300,8 +312,13 @@ export const NavMenuStyled = styled.nav `
|
|
|
300
312
|
display: flex;
|
|
301
313
|
align-items: center;
|
|
302
314
|
min-width: 18rem;
|
|
315
|
+
gap: 2rem;
|
|
316
|
+
|
|
317
|
+
@media (max-width: 1024px) {
|
|
318
|
+
gap: 1rem;
|
|
319
|
+
}
|
|
303
320
|
|
|
304
|
-
@media (min-width: ${size.
|
|
321
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.lg}) {
|
|
305
322
|
min-width: 12rem;
|
|
306
323
|
}
|
|
307
324
|
|
|
@@ -332,7 +349,7 @@ export const NavMenuStyled = styled.nav `
|
|
|
332
349
|
display: flex;
|
|
333
350
|
flex-direction: column;
|
|
334
351
|
|
|
335
|
-
@media ${
|
|
352
|
+
@media (max-width: ${size.tab}) {
|
|
336
353
|
display: none;
|
|
337
354
|
}
|
|
338
355
|
.navigation-pane__user-menu {
|
|
@@ -579,12 +596,12 @@ export const NavMenuStyled = styled.nav `
|
|
|
579
596
|
.is-tablet {
|
|
580
597
|
display: none;
|
|
581
598
|
|
|
582
|
-
@media (min-width: ${size.
|
|
599
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.md}) {
|
|
583
600
|
display: flex;
|
|
584
601
|
}
|
|
585
602
|
}
|
|
586
603
|
|
|
587
|
-
@media (min-width: ${size.xxs}) and (max-width: ${size.
|
|
604
|
+
@media (min-width: ${size.xxs}) and (max-width: ${size.tab}) {
|
|
588
605
|
.navigation-pane__wrapper {
|
|
589
606
|
display: flex;
|
|
590
607
|
flex-direction: column;
|
|
@@ -12,7 +12,7 @@ export const NavMenuStyled = styled.nav`
|
|
|
12
12
|
flex: 1;
|
|
13
13
|
}
|
|
14
14
|
&.--is-mobile {
|
|
15
|
-
@media (min-width: ${size.
|
|
15
|
+
@media (min-width: ${size.tab}) {
|
|
16
16
|
display: none;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -28,6 +28,10 @@ export const NavMenuStyled = styled.nav`
|
|
|
28
28
|
.left-nav {
|
|
29
29
|
display: flex;
|
|
30
30
|
align-items: center;
|
|
31
|
+
@media (max-width: 1024px) {
|
|
32
|
+
gap: 1rem;
|
|
33
|
+
}
|
|
34
|
+
gap: 2rem;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
.header-phone {
|
|
@@ -50,7 +54,17 @@ export const NavMenuStyled = styled.nav`
|
|
|
50
54
|
flex-flow: row nowrap;
|
|
51
55
|
align-items: center;
|
|
52
56
|
justify-content: flex-end;
|
|
53
|
-
gap:
|
|
57
|
+
gap: 2rem;
|
|
58
|
+
|
|
59
|
+
@media (max-width: 1024px) {
|
|
60
|
+
gap: 1rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nav-menu-item {
|
|
64
|
+
@media (max-width: 1024px) {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
54
68
|
|
|
55
69
|
.search {
|
|
56
70
|
width: 100%;
|
|
@@ -58,7 +72,7 @@ export const NavMenuStyled = styled.nav`
|
|
|
58
72
|
}
|
|
59
73
|
}
|
|
60
74
|
|
|
61
|
-
@media ${
|
|
75
|
+
@media (min-width: ${size.tab}) {
|
|
62
76
|
display: flex;
|
|
63
77
|
align-items: center;
|
|
64
78
|
flex-direction: row;
|
|
@@ -77,12 +91,10 @@ export const NavMenuStyled = styled.nav`
|
|
|
77
91
|
.navigation-pane__help,
|
|
78
92
|
.navigation-pane__resources {
|
|
79
93
|
position: relative;
|
|
80
|
-
margin-left: 0.5rem;
|
|
81
94
|
padding: 0.75rem 0;
|
|
82
95
|
cursor: pointer;
|
|
83
96
|
|
|
84
97
|
@media ${device['portrait-tablets']} {
|
|
85
|
-
margin-right: 1.5rem;
|
|
86
98
|
padding-bottom: 0.5rem;
|
|
87
99
|
}
|
|
88
100
|
|
|
@@ -219,7 +231,7 @@ export const NavMenuStyled = styled.nav`
|
|
|
219
231
|
width: 100%;
|
|
220
232
|
}
|
|
221
233
|
|
|
222
|
-
@media (min-width: ${size.
|
|
234
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.md}) {
|
|
223
235
|
display: none;
|
|
224
236
|
}
|
|
225
237
|
|
|
@@ -301,8 +313,13 @@ export const NavMenuStyled = styled.nav`
|
|
|
301
313
|
display: flex;
|
|
302
314
|
align-items: center;
|
|
303
315
|
min-width: 18rem;
|
|
316
|
+
gap: 2rem;
|
|
317
|
+
|
|
318
|
+
@media (max-width: 1024px) {
|
|
319
|
+
gap: 1rem;
|
|
320
|
+
}
|
|
304
321
|
|
|
305
|
-
@media (min-width: ${size.
|
|
322
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.lg}) {
|
|
306
323
|
min-width: 12rem;
|
|
307
324
|
}
|
|
308
325
|
|
|
@@ -333,7 +350,7 @@ export const NavMenuStyled = styled.nav`
|
|
|
333
350
|
display: flex;
|
|
334
351
|
flex-direction: column;
|
|
335
352
|
|
|
336
|
-
@media ${
|
|
353
|
+
@media (max-width: ${size.tab}) {
|
|
337
354
|
display: none;
|
|
338
355
|
}
|
|
339
356
|
.navigation-pane__user-menu {
|
|
@@ -580,12 +597,12 @@ export const NavMenuStyled = styled.nav`
|
|
|
580
597
|
.is-tablet {
|
|
581
598
|
display: none;
|
|
582
599
|
|
|
583
|
-
@media (min-width: ${size.
|
|
600
|
+
@media (min-width: ${size.tab}) and (max-width: ${size.md}) {
|
|
584
601
|
display: flex;
|
|
585
602
|
}
|
|
586
603
|
}
|
|
587
604
|
|
|
588
|
-
@media (min-width: ${size.xxs}) and (max-width: ${size.
|
|
605
|
+
@media (min-width: ${size.xxs}) and (max-width: ${size.tab}) {
|
|
589
606
|
.navigation-pane__wrapper {
|
|
590
607
|
display: flex;
|
|
591
608
|
flex-direction: column;
|
|
@@ -5,7 +5,7 @@ import { HeaderStyled } from './Header.styled';
|
|
|
5
5
|
import { NavMenu } from '../../organisms/NavMenu';
|
|
6
6
|
const Header = forwardRef(({ mainHeaderProps, topBarProps, navMenuProps }, ref) => {
|
|
7
7
|
const { classnames, siteName } = mainHeaderProps;
|
|
8
|
-
return (_jsxs(HeaderStyled, { className: `header ${classnames}`, ref: ref, id: 'header', children: [_jsx(TopBar, { ...topBarProps }), _jsxs("span", { itemScope: true, itemType: 'https://www.schema.org/Brand', className: '
|
|
8
|
+
return (_jsxs(HeaderStyled, { className: `header ${classnames}`, ref: ref, id: 'header', children: [_jsx(TopBar, { ...topBarProps }), _jsxs("span", { itemScope: true, itemType: 'https://www.schema.org/Brand', className: 'flex header__inner', children: [_jsx("a", { "data-qa": 'Header_Logo', className: 'header__logo', href: '/', children: _jsx(Logo, { siteName: siteName, width: '188', height: '32' }) }), _jsx(NavMenu, { ...navMenuProps })] })] }));
|
|
9
9
|
});
|
|
10
10
|
Header.displayName = 'Header';
|
|
11
11
|
export default Header;
|
|
@@ -6,7 +6,7 @@ export const HeaderStyled = styled.header `
|
|
|
6
6
|
transition: all 0.3s ease;
|
|
7
7
|
z-index: 1000;
|
|
8
8
|
|
|
9
|
-
@media (max-width: ${size.
|
|
9
|
+
@media (max-width: ${size.tab}) {
|
|
10
10
|
position: sticky;
|
|
11
11
|
top: 0;
|
|
12
12
|
width: 100%;
|
|
@@ -24,11 +24,10 @@ export const HeaderStyled = styled.header `
|
|
|
24
24
|
.header__inner {
|
|
25
25
|
align-items: center;
|
|
26
26
|
justify-content: space-between;
|
|
27
|
-
max-width: 1200px;
|
|
28
27
|
padding: 1rem 1.5rem;
|
|
29
28
|
|
|
30
|
-
@media (min-width: ${size.
|
|
31
|
-
padding: 1rem 1rem
|
|
29
|
+
@media (min-width: ${size.tab}) {
|
|
30
|
+
padding: 1rem 2rem 1rem 2rem;
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -39,7 +38,7 @@ export const HeaderStyled = styled.header `
|
|
|
39
38
|
|
|
40
39
|
.top-bar-wrapper {
|
|
41
40
|
.top-bar {
|
|
42
|
-
@media (max-width: ${size.
|
|
41
|
+
@media (max-width: ${size.tab}) {
|
|
43
42
|
font-size: 0.78rem;
|
|
44
43
|
letter-spacing: -0.5px;
|
|
45
44
|
}
|
|
@@ -49,7 +48,7 @@ export const HeaderStyled = styled.header `
|
|
|
49
48
|
width: 100%;
|
|
50
49
|
display: flex;
|
|
51
50
|
justify-content: space-around;
|
|
52
|
-
@media ${device
|
|
51
|
+
@media ${device.tablets} {
|
|
53
52
|
justify-content: center;
|
|
54
53
|
width: auto;
|
|
55
54
|
}
|
|
@@ -72,7 +71,7 @@ export const HeaderStyled = styled.header `
|
|
|
72
71
|
&.hide-header-in-mobile {
|
|
73
72
|
position: relative;
|
|
74
73
|
|
|
75
|
-
@media ${device
|
|
74
|
+
@media ${device.tablets} {
|
|
76
75
|
position: sticky;
|
|
77
76
|
}
|
|
78
77
|
}
|
|
@@ -83,7 +82,7 @@ export const HeaderStyled = styled.header `
|
|
|
83
82
|
align-items: center;
|
|
84
83
|
justify-content: space-between;
|
|
85
84
|
|
|
86
|
-
@media (min-width: ${size.
|
|
85
|
+
@media (min-width: ${size.tab}) {
|
|
87
86
|
padding: 1rem;
|
|
88
87
|
}
|
|
89
88
|
}
|
|
@@ -91,6 +90,13 @@ export const HeaderStyled = styled.header `
|
|
|
91
90
|
.header__logo {
|
|
92
91
|
z-index: 200;
|
|
93
92
|
min-width: max-content;
|
|
93
|
+
|
|
94
|
+
img {
|
|
95
|
+
@media (max-width: 1024px) {
|
|
96
|
+
width: 141px;
|
|
97
|
+
height: auto;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
&.product-header-background {
|
|
@@ -7,7 +7,7 @@ export const HeaderStyled = styled.header`
|
|
|
7
7
|
transition: all 0.3s ease;
|
|
8
8
|
z-index: 1000;
|
|
9
9
|
|
|
10
|
-
@media (max-width: ${size.
|
|
10
|
+
@media (max-width: ${size.tab}) {
|
|
11
11
|
position: sticky;
|
|
12
12
|
top: 0;
|
|
13
13
|
width: 100%;
|
|
@@ -25,11 +25,10 @@ export const HeaderStyled = styled.header`
|
|
|
25
25
|
.header__inner {
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: space-between;
|
|
28
|
-
max-width: 1200px;
|
|
29
28
|
padding: 1rem 1.5rem;
|
|
30
29
|
|
|
31
|
-
@media (min-width: ${size.
|
|
32
|
-
padding: 1rem 1rem
|
|
30
|
+
@media (min-width: ${size.tab}) {
|
|
31
|
+
padding: 1rem 2rem 1rem 2rem;
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -40,7 +39,7 @@ export const HeaderStyled = styled.header`
|
|
|
40
39
|
|
|
41
40
|
.top-bar-wrapper {
|
|
42
41
|
.top-bar {
|
|
43
|
-
@media (max-width: ${size.
|
|
42
|
+
@media (max-width: ${size.tab}) {
|
|
44
43
|
font-size: 0.78rem;
|
|
45
44
|
letter-spacing: -0.5px;
|
|
46
45
|
}
|
|
@@ -50,7 +49,7 @@ export const HeaderStyled = styled.header`
|
|
|
50
49
|
width: 100%;
|
|
51
50
|
display: flex;
|
|
52
51
|
justify-content: space-around;
|
|
53
|
-
@media ${device
|
|
52
|
+
@media ${device.tablets} {
|
|
54
53
|
justify-content: center;
|
|
55
54
|
width: auto;
|
|
56
55
|
}
|
|
@@ -73,7 +72,7 @@ export const HeaderStyled = styled.header`
|
|
|
73
72
|
&.hide-header-in-mobile {
|
|
74
73
|
position: relative;
|
|
75
74
|
|
|
76
|
-
@media ${device
|
|
75
|
+
@media ${device.tablets} {
|
|
77
76
|
position: sticky;
|
|
78
77
|
}
|
|
79
78
|
}
|
|
@@ -84,7 +83,7 @@ export const HeaderStyled = styled.header`
|
|
|
84
83
|
align-items: center;
|
|
85
84
|
justify-content: space-between;
|
|
86
85
|
|
|
87
|
-
@media (min-width: ${size.
|
|
86
|
+
@media (min-width: ${size.tab}) {
|
|
88
87
|
padding: 1rem;
|
|
89
88
|
}
|
|
90
89
|
}
|
|
@@ -92,6 +91,13 @@ export const HeaderStyled = styled.header`
|
|
|
92
91
|
.header__logo {
|
|
93
92
|
z-index: 200;
|
|
94
93
|
min-width: max-content;
|
|
94
|
+
|
|
95
|
+
img {
|
|
96
|
+
@media (max-width: 1024px) {
|
|
97
|
+
width: 141px;
|
|
98
|
+
height: auto;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
&.product-header-background {
|
|
@@ -12,7 +12,7 @@ const Header = forwardRef<HTMLDivElement, HeaderProps>(
|
|
|
12
12
|
return (
|
|
13
13
|
<HeaderStyled className={`header ${classnames}`} ref={ref} id='header'>
|
|
14
14
|
<TopBar {...topBarProps} />
|
|
15
|
-
<span itemScope itemType='https://www.schema.org/Brand' className={'
|
|
15
|
+
<span itemScope itemType='https://www.schema.org/Brand' className={'flex header__inner'}>
|
|
16
16
|
<a data-qa={'Header_Logo'} className='header__logo' href='/'>
|
|
17
17
|
<Logo siteName={siteName} width='188' height='32' />
|
|
18
18
|
</a>
|
|
@@ -2,6 +2,7 @@ interface Size {
|
|
|
2
2
|
xxs: string;
|
|
3
3
|
xs: string;
|
|
4
4
|
sm: string;
|
|
5
|
+
tab: string;
|
|
5
6
|
md: string;
|
|
6
7
|
lg: string;
|
|
7
8
|
xl: string;
|
|
@@ -12,6 +13,7 @@ export declare const device: {
|
|
|
12
13
|
mobile: string;
|
|
13
14
|
'portrait-tablets': string;
|
|
14
15
|
'landscape-tablets': string;
|
|
16
|
+
tablets: string;
|
|
15
17
|
laptop: string;
|
|
16
18
|
desktop: string;
|
|
17
19
|
'desktop-xl': string;
|
|
@@ -2,6 +2,7 @@ export const size = {
|
|
|
2
2
|
xxs: '328px', // for very small screen mobile
|
|
3
3
|
xs: '575px', // for small screen mobile
|
|
4
4
|
sm: '720px', // for mobile screen
|
|
5
|
+
tab: '768px', // for tablets in portrait
|
|
5
6
|
md: '960px', // for tablets
|
|
6
7
|
lg: '1200px', // for laptops
|
|
7
8
|
xl: '1600px', // for desktop / monitors
|
|
@@ -11,6 +12,7 @@ export const device = {
|
|
|
11
12
|
mobile: `(max-width: ${size.xs})`,
|
|
12
13
|
'portrait-tablets': `(min-width: ${size.xs})`,
|
|
13
14
|
'landscape-tablets': `(min-width: ${size.sm})`,
|
|
15
|
+
tablets: `(min-width: ${size.tab})`,
|
|
14
16
|
laptop: `(min-width: ${size.md})`,
|
|
15
17
|
desktop: `(min-width: ${size.lg})`,
|
|
16
18
|
'desktop-xl': `(min-width: ${size.xl})`
|
|
@@ -2,6 +2,7 @@ interface Size {
|
|
|
2
2
|
xxs: string
|
|
3
3
|
xs: string
|
|
4
4
|
sm: string
|
|
5
|
+
tab: string
|
|
5
6
|
md: string
|
|
6
7
|
lg: string
|
|
7
8
|
xl: string
|
|
@@ -12,6 +13,7 @@ export const size: Size = {
|
|
|
12
13
|
xxs: '328px', // for very small screen mobile
|
|
13
14
|
xs: '575px', // for small screen mobile
|
|
14
15
|
sm: '720px', // for mobile screen
|
|
16
|
+
tab: '768px', // for tablets in portrait
|
|
15
17
|
md: '960px', // for tablets
|
|
16
18
|
lg: '1200px', // for laptops
|
|
17
19
|
xl: '1600px', // for desktop / monitors
|
|
@@ -22,6 +24,7 @@ export const device = {
|
|
|
22
24
|
mobile: `(max-width: ${size.xs})`,
|
|
23
25
|
'portrait-tablets': `(min-width: ${size.xs})`,
|
|
24
26
|
'landscape-tablets': `(min-width: ${size.sm})`,
|
|
27
|
+
tablets: `(min-width: ${size.tab})`,
|
|
25
28
|
laptop: `(min-width: ${size.md})`,
|
|
26
29
|
desktop: `(min-width: ${size.lg})`,
|
|
27
30
|
'desktop-xl': `(min-width: ${size.xl})`
|