@phillips/seldon 1.26.2 → 1.28.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/assets/account_circle.svg.js +5 -0
- package/dist/assets/search.svg.js +5 -0
- package/dist/components/Header/Header.d.ts +26 -9
- package/dist/components/Header/Header.js +70 -24
- package/dist/components/Link/utils.d.ts +7 -1
- package/dist/components/Link/utils.js +6 -6
- package/dist/components/Navigation/Navigation.d.ts +10 -0
- package/dist/components/Navigation/Navigation.js +50 -0
- package/dist/components/Navigation/NavigationItem/NavigationItem.d.ts +30 -0
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +35 -0
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.d.ts +9 -0
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +31 -0
- package/dist/components/Navigation/NavigationList/NavigationList.d.ts +9 -0
- package/dist/components/Navigation/NavigationList/NavigationList.js +32 -0
- package/dist/components/Search/Search.d.ts +7 -0
- package/dist/components/Search/Search.js +49 -0
- package/dist/components/UserManagement/UserManagement.d.ts +19 -0
- package/dist/components/UserManagement/UserManagement.js +52 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +65 -51
- package/dist/pages/Page.js +38 -54
- package/dist/scss/_vars.scss +1 -1
- package/dist/scss/components/Button/_button.scss +3 -3
- package/dist/scss/components/DatePicker/_datePicker.scss +2 -2
- package/dist/scss/components/Footer/_footer.scss +4 -4
- package/dist/scss/components/Grid/_grid.scss +2 -2
- package/dist/scss/components/GridItem/_gridItem.scss +1 -1
- package/dist/scss/components/Header/_header.scss +144 -24
- package/dist/scss/components/HeroBanner/_heroBanner.scss +2 -2
- package/dist/scss/components/Input/_input.scss +2 -2
- package/dist/scss/components/Link/_link.scss +77 -3
- package/dist/scss/components/LinkBlock/_linkBlock.scss +2 -2
- package/dist/scss/components/LinkList/_linkList.scss +1 -1
- package/dist/scss/components/Modal/_modal.scss +2 -2
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +272 -0
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -0
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +96 -0
- package/dist/scss/components/Navigation/_navigation.scss +114 -0
- package/dist/scss/components/Row/_row.scss +1 -1
- package/dist/scss/components/Search/_search.scss +101 -0
- package/dist/scss/components/Social/_social.scss +3 -3
- package/dist/scss/components/SplitPanel/_splitPanel.scss +2 -2
- package/dist/scss/components/SplitPanel/_splitPanel.stories.scss +1 -1
- package/dist/scss/components/Subscribe/_subscribe.scss +4 -4
- package/dist/scss/components/Text/_text.scss +1 -1
- package/dist/scss/components/Toggle/_toggle.scss +2 -2
- package/dist/scss/components/UserManagement/_userManagement.scss +115 -0
- package/dist/scss/components/ViewingsList/_viewingsList.scss +3 -3
- package/dist/scss/styles.scss +6 -0
- package/dist/types/commonTypes.d.ts +4 -0
- package/dist/types/commonTypes.js +4 -0
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -1,63 +1,77 @@
|
|
|
1
|
-
import { PaddingTokens as
|
|
1
|
+
import { PaddingTokens as o, defaultYear as r, emailValidation as a, generatePaddingClassName as f, getCommonProps as s, noOp as m, px as p, useNormalizedInputProps as d } from "./utils/index.js";
|
|
2
2
|
import { default as u } from "./pages/Page.js";
|
|
3
|
-
import { default as
|
|
3
|
+
import { default as x } from "./components/Button/Button.js";
|
|
4
4
|
import { default as g } from "./components/IconButton/IconButton.js";
|
|
5
5
|
import { default as S } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
6
|
-
import { default as
|
|
7
|
-
import { Grid as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import {
|
|
22
|
-
import { default as Z } from "./components/
|
|
23
|
-
import { default as $ } from "./components/
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as re } from "./components/
|
|
26
|
-
import {
|
|
27
|
-
import { default as
|
|
6
|
+
import { default as I } from "./components/Footer/Footer.js";
|
|
7
|
+
import { Grid as N } from "./components/Grid/Grid.js";
|
|
8
|
+
import { default as B } from "./components/Header/Header.js";
|
|
9
|
+
import { default as v } from "./components/Navigation/Navigation.js";
|
|
10
|
+
import { default as b } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
11
|
+
import { default as G } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
12
|
+
import { default as H } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
13
|
+
import { default as h } from "./components/HeroBanner/HeroBanner.js";
|
|
14
|
+
import { default as z } from "./components/Input/Input.js";
|
|
15
|
+
import { default as E } from "./components/Link/Link.js";
|
|
16
|
+
import { LinkVariants as O } from "./components/Link/utils.js";
|
|
17
|
+
import { default as U } from "./components/LinkBlock/LinkBlock.js";
|
|
18
|
+
import { default as j } from "./components/LinkList/LinkList.js";
|
|
19
|
+
import { default as D } from "./components/Row/Row.js";
|
|
20
|
+
import { default as K } from "./components/GridItem/GridItem.js";
|
|
21
|
+
import { GridItemAlign as W } from "./components/GridItem/types.js";
|
|
22
|
+
import { default as Z } from "./components/Search/Search.js";
|
|
23
|
+
import { default as $ } from "./components/Select/Select.js";
|
|
24
|
+
import { default as te } from "./components/SplitPanel/SplitPanel.js";
|
|
25
|
+
import { default as re } from "./components/Subscribe/Subscribe.js";
|
|
26
|
+
import { SubscriptionState as fe } from "./components/Subscribe/types.js";
|
|
27
|
+
import { default as me } from "./components/Social/Social.js";
|
|
28
|
+
import { default as de } from "./components/ViewingsList/ViewingsList.js";
|
|
29
|
+
import { default as ue } from "./components/Modal/Modal.js";
|
|
30
|
+
import { default as xe } from "./components/ViewingsList/StatefulViewingsList.js";
|
|
31
|
+
import { TextVariants as ge } from "./components/Text/types.js";
|
|
32
|
+
import { default as Se } from "./components/Text/Text.js";
|
|
33
|
+
import { default as Ie } from "./components/UserManagement/UserManagement.js";
|
|
34
|
+
import { SupportedLanguages as Ne } from "./types/commonTypes.js";
|
|
28
35
|
export {
|
|
29
|
-
|
|
36
|
+
x as Button,
|
|
30
37
|
S as ErrorBoundary,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
I as Footer,
|
|
39
|
+
N as Grid,
|
|
40
|
+
K as GridItem,
|
|
41
|
+
W as GridItemAlign,
|
|
42
|
+
B as Header,
|
|
43
|
+
h as HeroBanner,
|
|
37
44
|
g as IconButton,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
z as Input,
|
|
46
|
+
E as Link,
|
|
47
|
+
U as LinkBlock,
|
|
48
|
+
j as LinkList,
|
|
49
|
+
O as LinkVariants,
|
|
50
|
+
ue as Modal,
|
|
51
|
+
v as Navigation,
|
|
52
|
+
b as NavigationItem,
|
|
53
|
+
G as NavigationItemTrigger,
|
|
54
|
+
H as NavigationList,
|
|
55
|
+
o as PaddingTokens,
|
|
45
56
|
u as Page,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
D as Row,
|
|
58
|
+
Z as Search,
|
|
59
|
+
$ as Select,
|
|
60
|
+
me as Social,
|
|
61
|
+
te as SplitPanel,
|
|
62
|
+
xe as StatefulViewingsList,
|
|
63
|
+
re as Subscribe,
|
|
64
|
+
fe as SubscriptionState,
|
|
65
|
+
Ne as SupportedLanguages,
|
|
66
|
+
Se as Text,
|
|
67
|
+
ge as TextVariants,
|
|
68
|
+
Ie as UserManagement,
|
|
69
|
+
de as ViewingsList,
|
|
56
70
|
r as defaultYear,
|
|
57
71
|
a as emailValidation,
|
|
58
72
|
f as generatePaddingClassName,
|
|
59
73
|
s as getCommonProps,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
74
|
+
m as noOp,
|
|
75
|
+
p as px,
|
|
76
|
+
d as useNormalizedInputProps
|
|
63
77
|
};
|
package/dist/pages/Page.js
CHANGED
|
@@ -1,58 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/* @__PURE__ */ e(
|
|
8
|
-
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
const r = () => /* @__PURE__ */ e("article", { children: /* @__PURE__ */ o("section", { className: "storybook-page", children: [
|
|
3
|
+
/* @__PURE__ */ e("h2", { children: "Pages in Storybook" }),
|
|
4
|
+
/* @__PURE__ */ o("p", { children: [
|
|
5
|
+
"We recommend building UIs with a",
|
|
6
|
+
" ",
|
|
7
|
+
/* @__PURE__ */ e("a", { href: "https://componentdriven.org", target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e("strong", { children: "component-driven" }) }),
|
|
8
|
+
" ",
|
|
9
|
+
"process starting with atomic components and ending with pages."
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ e("p", { children: "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:" }),
|
|
12
|
+
/* @__PURE__ */ o("ul", { children: [
|
|
13
|
+
/* @__PURE__ */ e("li", { children: 'Use a higher-level connected component. Storybook helps you compose such data from the "args" of child component stories' }),
|
|
14
|
+
/* @__PURE__ */ e("li", { children: "Assemble data in the page component from your services. You can mock these services out using Storybook." })
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ o("p", { children: [
|
|
17
|
+
"Get a guided tutorial on component-driven development at",
|
|
18
|
+
" ",
|
|
19
|
+
/* @__PURE__ */ e("a", { href: "https://storybook.js.org/tutorials/", target: "_blank", rel: "noopener noreferrer", children: "Storybook tutorials" }),
|
|
20
|
+
". Read more in the",
|
|
21
|
+
" ",
|
|
22
|
+
/* @__PURE__ */ e("a", { href: "https://storybook.js.org/docs", target: "_blank", rel: "noopener noreferrer", children: "docs" }),
|
|
23
|
+
"."
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ o("div", { className: "tip-wrapper", children: [
|
|
26
|
+
/* @__PURE__ */ e("span", { className: "tip", children: "Tip" }),
|
|
27
|
+
" Adjust the width of the canvas with the",
|
|
28
|
+
" ",
|
|
29
|
+
/* @__PURE__ */ e("svg", { width: "10", height: "10", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ e(
|
|
30
|
+
"path",
|
|
9
31
|
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onCreateAccount: () => t({ name: "Jane Doe" })
|
|
32
|
+
d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z",
|
|
33
|
+
id: "a",
|
|
34
|
+
fill: "#999"
|
|
14
35
|
}
|
|
15
|
-
),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"We recommend building UIs with a",
|
|
20
|
-
" ",
|
|
21
|
-
/* @__PURE__ */ e("a", { href: "https://componentdriven.org", target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e("strong", { children: "component-driven" }) }),
|
|
22
|
-
" ",
|
|
23
|
-
"process starting with atomic components and ending with pages."
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ e("p", { children: "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:" }),
|
|
26
|
-
/* @__PURE__ */ o("ul", { children: [
|
|
27
|
-
/* @__PURE__ */ e("li", { children: 'Use a higher-level connected component. Storybook helps you compose such data from the "args" of child component stories' }),
|
|
28
|
-
/* @__PURE__ */ e("li", { children: "Assemble data in the page component from your services. You can mock these services out using Storybook." })
|
|
29
|
-
] }),
|
|
30
|
-
/* @__PURE__ */ o("p", { children: [
|
|
31
|
-
"Get a guided tutorial on component-driven development at",
|
|
32
|
-
" ",
|
|
33
|
-
/* @__PURE__ */ e("a", { href: "https://storybook.js.org/tutorials/", target: "_blank", rel: "noopener noreferrer", children: "Storybook tutorials" }),
|
|
34
|
-
". Read more in the",
|
|
35
|
-
" ",
|
|
36
|
-
/* @__PURE__ */ e("a", { href: "https://storybook.js.org/docs", target: "_blank", rel: "noopener noreferrer", children: "docs" }),
|
|
37
|
-
"."
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ o("div", { className: "tip-wrapper", children: [
|
|
40
|
-
/* @__PURE__ */ e("span", { className: "tip", children: "Tip" }),
|
|
41
|
-
" Adjust the width of the canvas with the",
|
|
42
|
-
" ",
|
|
43
|
-
/* @__PURE__ */ e("svg", { width: "10", height: "10", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ e(
|
|
44
|
-
"path",
|
|
45
|
-
{
|
|
46
|
-
d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z",
|
|
47
|
-
id: "a",
|
|
48
|
-
fill: "#999"
|
|
49
|
-
}
|
|
50
|
-
) }) }),
|
|
51
|
-
"Viewports addon in the toolbar"
|
|
52
|
-
] })
|
|
53
|
-
] })
|
|
54
|
-
] });
|
|
55
|
-
};
|
|
36
|
+
) }) }),
|
|
37
|
+
"Viewports addon in the toolbar"
|
|
38
|
+
] })
|
|
39
|
+
] }) });
|
|
56
40
|
export {
|
|
57
|
-
|
|
41
|
+
r as default
|
|
58
42
|
};
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -219,7 +219,7 @@ $margin-xl: var(--spacing-xl);
|
|
|
219
219
|
/// Breakpoint TOKENS that map to minimum pixels
|
|
220
220
|
///////////////////////
|
|
221
221
|
$breakpoint-sm: 461px;
|
|
222
|
-
$breakpoint-md:
|
|
222
|
+
$breakpoint-md: 1301px;
|
|
223
223
|
$breakpoint-lg: 1401px;
|
|
224
224
|
$breakpoint-xl: 1801px;
|
|
225
225
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* stylelint-disable selector-class-pattern */
|
|
2
2
|
@import 'flatpickr/dist/flatpickr.css';
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
3
|
+
@import '@phillips/seldon/dist/scss/vars';
|
|
4
|
+
@import '@phillips/seldon/dist/scss/typography';
|
|
5
5
|
|
|
6
6
|
.flatpickr-calendar {
|
|
7
7
|
@include DistinctText;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
1
|
+
@import '@phillips/seldon/dist/scss/vars';
|
|
2
|
+
@import '@phillips/seldon/dist/scss/utils';
|
|
3
|
+
@import '@phillips/seldon/dist/scss/type';
|
|
4
|
+
@import '@phillips/seldon/dist/scss/typography';
|
|
5
5
|
|
|
6
6
|
.#{$px}-footer {
|
|
7
7
|
background-color: $off-white;
|
|
@@ -1,32 +1,152 @@
|
|
|
1
|
-
|
|
1
|
+
@import '@phillips/seldon/dist/scss/vars';
|
|
2
|
+
|
|
3
|
+
.#{$px}-header {
|
|
2
4
|
align-items: center;
|
|
5
|
+
background-color: $white;
|
|
3
6
|
border-bottom: 1px solid rgba(0, 0, 0, 10%);
|
|
4
7
|
display: flex;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
height: 60px;
|
|
9
|
+
padding: 0 $spacing-md;
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: 30px;
|
|
12
|
+
width: 100vw;
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
+
@media (max-width: #{$breakpoint-md - 1}) {
|
|
15
|
+
top: 0;
|
|
16
|
+
}
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
&__toggle-btn {
|
|
19
|
+
align-items: center;
|
|
20
|
+
appearance: none;
|
|
21
|
+
background: none;
|
|
22
|
+
border: none;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
display: flex;
|
|
25
|
+
height: 60px;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
left: 0;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
transition: background-color 0.25s;
|
|
32
|
+
width: 60px;
|
|
33
|
+
z-index: 1;
|
|
23
34
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
35
|
+
@media (min-width: $breakpoint-md) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
span {
|
|
40
|
+
background-color: $dark-gray;
|
|
41
|
+
color: transparent;
|
|
42
|
+
display: block;
|
|
43
|
+
height: 2px;
|
|
44
|
+
position: relative;
|
|
45
|
+
transition: background-color 0.25s ease 0.5s;
|
|
46
|
+
width: 1.65rem;
|
|
47
|
+
|
|
48
|
+
&::before,
|
|
49
|
+
&::after {
|
|
50
|
+
background-color: $dark-gray;
|
|
51
|
+
content: '';
|
|
52
|
+
display: block;
|
|
53
|
+
height: 2px;
|
|
54
|
+
left: 0;
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 0;
|
|
57
|
+
transition: transform 0.25s ease 0.25s;
|
|
58
|
+
width: 1.65rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&::before {
|
|
62
|
+
transform: translateY(-8px);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&::after {
|
|
66
|
+
transform: translateY(8px);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.#{$px}-header__toggle-btn--open span {
|
|
71
|
+
background: transparent;
|
|
72
|
+
transition: background-color 0.25s ease 0.1s;
|
|
73
|
+
|
|
74
|
+
&::before {
|
|
75
|
+
transform: rotate(45deg);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&::after {
|
|
79
|
+
transform: rotate(-45deg);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
background-color: $off-white;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__logo {
|
|
89
|
+
margin: auto;
|
|
90
|
+
|
|
91
|
+
@media (min-width: $breakpoint-md) {
|
|
92
|
+
margin: unset;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__overlay {
|
|
97
|
+
background-color: rgba(0, 0, 0, 50%);
|
|
98
|
+
height: 0;
|
|
99
|
+
inset: 0;
|
|
100
|
+
opacity: 0;
|
|
101
|
+
position: fixed;
|
|
102
|
+
transition: opacity 0.5s ease-in-out;
|
|
103
|
+
width: 100%;
|
|
104
|
+
z-index: -1;
|
|
105
|
+
|
|
106
|
+
&--active {
|
|
107
|
+
display: block;
|
|
108
|
+
height: 100%;
|
|
109
|
+
opacity: 1;
|
|
110
|
+
|
|
111
|
+
@media (min-width: #{$breakpoint-md - 1}) {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
& ~ .#{$px}-header__nav {
|
|
116
|
+
z-index: 1;
|
|
117
|
+
}
|
|
118
|
+
& ~ .#{$px}-header__toggle-btn {
|
|
119
|
+
z-index: 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
& ~ .#{$px}-search {
|
|
123
|
+
.#{$px}-search__button {
|
|
124
|
+
z-index: -1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&__nav {
|
|
131
|
+
height: 100%;
|
|
132
|
+
left: 0;
|
|
133
|
+
position: fixed;
|
|
134
|
+
top: 0;
|
|
135
|
+
transform: translateX(-100%);
|
|
136
|
+
|
|
137
|
+
@media (min-width: $breakpoint-md) {
|
|
138
|
+
height: 60px;
|
|
139
|
+
position: relative;
|
|
140
|
+
transform: unset;
|
|
141
|
+
width: 100%;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.#{$px}-header__nav--open {
|
|
145
|
+
transform: translateX(0);
|
|
27
146
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
147
|
+
@media (min-width: $breakpoint-md) {
|
|
148
|
+
transform: unset;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
32
152
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import '@phillips/seldon/dist/scss/vars';
|
|
2
2
|
|
|
3
3
|
.#{$px}-hero-banner {
|
|
4
4
|
align-items: center;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
gap: 1.875rem;
|
|
23
23
|
padding: 1.875rem 0.9375rem;
|
|
24
24
|
|
|
25
|
-
&::
|
|
25
|
+
&::after {
|
|
26
26
|
background: var(--background);
|
|
27
27
|
background-position: center center;
|
|
28
28
|
background-repeat: no-repeat;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import '@phillips/seldon/dist/scss/type';
|
|
2
2
|
|
|
3
3
|
.#{$px}-link {
|
|
4
4
|
color: $cta-blue;
|
|
5
5
|
text-decoration: none;
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
|
|
8
|
-
&:hover:not(&--list),
|
|
9
|
-
&:focus:not(&--list) {
|
|
8
|
+
&:hover:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm),
|
|
9
|
+
&:focus:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm) {
|
|
10
10
|
@include underline;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -25,4 +25,78 @@
|
|
|
25
25
|
&--list {
|
|
26
26
|
color: $soft-black;
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
&--email {
|
|
30
|
+
@include text($email);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--navMain {
|
|
34
|
+
.#{$px}-nav__item--label {
|
|
35
|
+
color: $soft-black;
|
|
36
|
+
text-align: center;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--navLinkSm {
|
|
41
|
+
color: $soft-black;
|
|
42
|
+
justify-content: flex-end;
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
.#{$px}-nav__item--label {
|
|
46
|
+
color: $cta-blue;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.#{$px}-nav__item--label {
|
|
51
|
+
/* TODO: Create token to handle these styles dynamically */
|
|
52
|
+
font-size: 0.8125rem;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
letter-spacing: 0.125rem;
|
|
55
|
+
line-height: 0.8125rem;
|
|
56
|
+
text-align: right;
|
|
57
|
+
text-transform: uppercase;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&--navLinkLg {
|
|
62
|
+
color: $soft-black;
|
|
63
|
+
display: flex;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
width: 100%;
|
|
66
|
+
|
|
67
|
+
> span {
|
|
68
|
+
display: flex;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.#{$px}-nav__item--label {
|
|
73
|
+
/* TODO: Create token to handle these styles dynamically */
|
|
74
|
+
@include pText(1.0625rem);
|
|
75
|
+
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
text-transform: capitalize;
|
|
80
|
+
text-wrap: nowrap;
|
|
81
|
+
width: 100%;
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
color: $cta-blue;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (max-width: #{$breakpoint-md - 1}) {
|
|
88
|
+
/* TODO: Create token to handle these styles dynamically */
|
|
89
|
+
font-size: 0.8rem;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
text-overflow: unset;
|
|
92
|
+
text-wrap: wrap;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.#{$px}-link--navLinkSm {
|
|
97
|
+
.#{$px}-nav__item--label {
|
|
98
|
+
color: $cta-blue;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
28
102
|
}
|