@phillips/seldon 1.34.0 → 1.35.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/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.js +17 -16
- package/dist/components/Button/types.d.ts +5 -0
- package/dist/components/Button/types.js +4 -0
- package/dist/components/Header/Header.js +34 -34
- package/dist/components/IconButton/IconButton.js +13 -12
- package/dist/components/Search/Search.d.ts +44 -3
- package/dist/components/Search/Search.js +113 -43
- package/dist/components/Search/SearchResults/SearchResults.d.ts +13 -0
- package/dist/components/Search/SearchResults/SearchResults.js +16 -0
- package/dist/components/Social/Social.js +14 -13
- package/dist/components/Subscribe/Subscribe.js +37 -27
- package/dist/components/ViewingsList/ViewingsListCard.js +145 -114
- package/dist/index.d.ts +1 -0
- package/dist/index.js +84 -80
- package/dist/scss/components/Input/_input.scss +2 -1
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +2 -2
- package/dist/scss/components/Search/_search.scss +54 -5
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.js +40 -31
- package/package.json +2 -2
|
@@ -1,87 +1,88 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { px as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { jsxs as u, jsx as t, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import mt from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { px as d } from "../../utils/index.js";
|
|
5
|
+
import y from "../Input/Input.js";
|
|
6
|
+
import c from "../Button/Button.js";
|
|
7
|
+
import { ButtonVariants as l } from "../Button/types.js";
|
|
8
|
+
import ft from "./ViewingsListCardForm.js";
|
|
9
|
+
const i = `${d}-viewings-list-card`, $t = ({
|
|
10
|
+
address1: $,
|
|
11
|
+
address1Label: C,
|
|
12
|
+
addressUrl: O,
|
|
13
|
+
addressUrlLabel: w,
|
|
14
|
+
address2: v,
|
|
15
|
+
address2Label: x,
|
|
16
|
+
address3: z,
|
|
17
|
+
address3Label: A,
|
|
18
|
+
cancelBtnLabel: L = "CANCEL",
|
|
19
|
+
cardTitle: T = "Add New Viewing",
|
|
20
|
+
deleteBtnLabel: V = "DELETE",
|
|
21
|
+
editBtnLabel: _ = "EDIT",
|
|
22
|
+
isEditState: s,
|
|
23
|
+
enableOnSite: m = "false",
|
|
24
|
+
enableOnSiteToggleLabel: k = "Enabled on website",
|
|
25
|
+
email: I,
|
|
26
|
+
emailLabel: N = "Email",
|
|
27
|
+
emailLink: S,
|
|
28
|
+
emailLinkLabel: j = "Email Address",
|
|
29
|
+
emailOn: B = "false",
|
|
29
30
|
emailToggleLabel: D = "Include Email Address",
|
|
30
31
|
id: e,
|
|
31
32
|
invalidFields: n,
|
|
32
33
|
location: R,
|
|
33
34
|
locationLabel: q = "Location",
|
|
34
|
-
onCancel:
|
|
35
|
-
onEdit:
|
|
36
|
-
onDelete:
|
|
37
|
-
onSave:
|
|
38
|
-
previewDates:
|
|
39
|
-
previewDatesLabel:
|
|
40
|
-
previewHours1:
|
|
41
|
-
previewHours1Label:
|
|
42
|
-
previewHours2:
|
|
43
|
-
previewHours2Label:
|
|
44
|
-
previewLabel:
|
|
45
|
-
previewLabelValue:
|
|
46
|
-
previewOn:
|
|
47
|
-
previewToggleLabel:
|
|
48
|
-
saveBtnLabel:
|
|
49
|
-
viewingLabel:
|
|
50
|
-
viewingLabelValue:
|
|
51
|
-
viewingDates:
|
|
52
|
-
viewingDatesLabel:
|
|
53
|
-
viewingHours1:
|
|
54
|
-
viewingHours1Label:
|
|
35
|
+
onCancel: f,
|
|
36
|
+
onEdit: p,
|
|
37
|
+
onDelete: h,
|
|
38
|
+
onSave: b,
|
|
39
|
+
previewDates: G,
|
|
40
|
+
previewDatesLabel: H,
|
|
41
|
+
previewHours1: J,
|
|
42
|
+
previewHours1Label: K,
|
|
43
|
+
previewHours2: M,
|
|
44
|
+
previewHours2Label: P,
|
|
45
|
+
previewLabel: Q,
|
|
46
|
+
previewLabelValue: U,
|
|
47
|
+
previewOn: W,
|
|
48
|
+
previewToggleLabel: X,
|
|
49
|
+
saveBtnLabel: Y = "SAVE DETAILS",
|
|
50
|
+
viewingLabel: Z,
|
|
51
|
+
viewingLabelValue: F,
|
|
52
|
+
viewingDates: tt,
|
|
53
|
+
viewingDatesLabel: et,
|
|
54
|
+
viewingHours1: nt,
|
|
55
|
+
viewingHours1Label: st,
|
|
55
56
|
viewingHours2: ot,
|
|
56
|
-
viewingHours2Label:
|
|
57
|
+
viewingHours2Label: rt
|
|
57
58
|
}) => {
|
|
58
|
-
const [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
var
|
|
63
|
-
n &&
|
|
59
|
+
const [at, ct] = a.useState(m === "true"), r = a.useRef(null);
|
|
60
|
+
a.useEffect(() => {
|
|
61
|
+
s && r.current && r.current.focus();
|
|
62
|
+
}, [s]), a.useEffect(() => {
|
|
63
|
+
var o, g;
|
|
64
|
+
n && r.current && ((g = (o = r.current.closest(".phillips-viewings-list-card")) == null ? void 0 : o.querySelector(".phillips-input--invalid input")) == null || g.focus());
|
|
64
65
|
}, [n]);
|
|
65
66
|
const lt = () => {
|
|
67
|
+
typeof f == "function" && f();
|
|
68
|
+
}, it = () => {
|
|
66
69
|
typeof p == "function" && p();
|
|
67
|
-
}, ut = () => {
|
|
68
|
-
typeof
|
|
69
|
-
}, at = (s) => {
|
|
70
|
-
typeof h == "function" && h(s);
|
|
70
|
+
}, ut = (o) => {
|
|
71
|
+
typeof b == "function" && b(o);
|
|
71
72
|
};
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ u(
|
|
73
74
|
"section",
|
|
74
75
|
{
|
|
75
76
|
"data-testid": `viewings-list-card-${e}`,
|
|
76
77
|
id: e,
|
|
77
|
-
className:
|
|
78
|
+
className: mt(`${i}`, { [`${i}--edit-state`]: s }),
|
|
78
79
|
children: [
|
|
79
|
-
/* @__PURE__ */ t("h3", { className: `${
|
|
80
|
+
/* @__PURE__ */ t("h3", { className: `${i}__title`, children: T }),
|
|
80
81
|
/* @__PURE__ */ t("input", { type: "hidden", name: "id", value: e }),
|
|
81
82
|
/* @__PURE__ */ t(
|
|
82
|
-
|
|
83
|
+
y,
|
|
83
84
|
{
|
|
84
|
-
ref:
|
|
85
|
+
ref: r,
|
|
85
86
|
id: `location-${e}`,
|
|
86
87
|
defaultValue: R,
|
|
87
88
|
labelText: q,
|
|
@@ -89,80 +90,110 @@ const u = `${E}-viewings-list-card`, Et = ({
|
|
|
89
90
|
name: "location",
|
|
90
91
|
invalid: n == null ? void 0 : n.location,
|
|
91
92
|
invalidText: n == null ? void 0 : n.location,
|
|
92
|
-
readOnly: !
|
|
93
|
+
readOnly: !s
|
|
93
94
|
}
|
|
94
95
|
),
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
s ? /* @__PURE__ */ t(
|
|
97
|
+
ft,
|
|
97
98
|
{
|
|
98
|
-
address1:
|
|
99
|
-
address1Label:
|
|
100
|
-
addressUrl:
|
|
101
|
-
addressUrlLabel:
|
|
102
|
-
address2:
|
|
103
|
-
address2Label:
|
|
104
|
-
address3:
|
|
105
|
-
address3Label:
|
|
106
|
-
email:
|
|
107
|
-
emailLabel:
|
|
108
|
-
emailLink:
|
|
109
|
-
emailLinkLabel:
|
|
110
|
-
emailOn:
|
|
99
|
+
address1: $,
|
|
100
|
+
address1Label: C,
|
|
101
|
+
addressUrl: O,
|
|
102
|
+
addressUrlLabel: w,
|
|
103
|
+
address2: v,
|
|
104
|
+
address2Label: x,
|
|
105
|
+
address3: z,
|
|
106
|
+
address3Label: A,
|
|
107
|
+
email: I,
|
|
108
|
+
emailLabel: N,
|
|
109
|
+
emailLink: S,
|
|
110
|
+
emailLinkLabel: j,
|
|
111
|
+
emailOn: B,
|
|
111
112
|
emailToggleLabel: D,
|
|
112
113
|
id: e,
|
|
113
114
|
invalidFields: n,
|
|
114
|
-
previewDates:
|
|
115
|
-
previewDatesLabel:
|
|
116
|
-
previewHours1:
|
|
117
|
-
previewHours1Label:
|
|
118
|
-
previewHours2:
|
|
119
|
-
previewHours2Label:
|
|
120
|
-
previewLabel:
|
|
121
|
-
previewLabelValue:
|
|
122
|
-
previewOn:
|
|
123
|
-
previewToggleLabel:
|
|
124
|
-
viewingLabel:
|
|
125
|
-
viewingLabelValue:
|
|
126
|
-
viewingDates:
|
|
127
|
-
viewingDatesLabel:
|
|
128
|
-
viewingHours1:
|
|
129
|
-
viewingHours1Label:
|
|
115
|
+
previewDates: G,
|
|
116
|
+
previewDatesLabel: H,
|
|
117
|
+
previewHours1: J,
|
|
118
|
+
previewHours1Label: K,
|
|
119
|
+
previewHours2: M,
|
|
120
|
+
previewHours2Label: P,
|
|
121
|
+
previewLabel: Q,
|
|
122
|
+
previewLabelValue: U,
|
|
123
|
+
previewOn: W,
|
|
124
|
+
previewToggleLabel: X,
|
|
125
|
+
viewingLabel: Z,
|
|
126
|
+
viewingLabelValue: F,
|
|
127
|
+
viewingDates: tt,
|
|
128
|
+
viewingDatesLabel: et,
|
|
129
|
+
viewingHours1: nt,
|
|
130
|
+
viewingHours1Label: st,
|
|
130
131
|
viewingHours2: ot,
|
|
131
|
-
viewingHours2Label:
|
|
132
|
+
viewingHours2Label: rt
|
|
132
133
|
}
|
|
133
134
|
) : null,
|
|
134
135
|
/* @__PURE__ */ t(
|
|
135
|
-
|
|
136
|
+
y,
|
|
136
137
|
{
|
|
137
138
|
id: `enableOnSite-${e}`,
|
|
138
139
|
type: "toggle",
|
|
139
|
-
defaultChecked:
|
|
140
|
-
labelText:
|
|
140
|
+
defaultChecked: m === "true",
|
|
141
|
+
labelText: k,
|
|
141
142
|
size: "md",
|
|
142
143
|
inline: !0,
|
|
143
144
|
value: "true",
|
|
144
145
|
name: "enableOnSite",
|
|
145
|
-
onChange: () =>
|
|
146
|
-
readOnly: !
|
|
146
|
+
onChange: () => ct((o) => !o),
|
|
147
|
+
readOnly: !s
|
|
147
148
|
}
|
|
148
149
|
),
|
|
149
|
-
|
|
150
|
+
at ? null : /* @__PURE__ */ t("input", { type: "hidden", name: "enableOnSite", value: "false" }),
|
|
150
151
|
/* @__PURE__ */ t("hr", {}),
|
|
151
|
-
/* @__PURE__ */ t("div", { className: `${
|
|
152
|
-
/* @__PURE__ */ t(l, { id: `vlc-save-btn-${e}`, buttonType: "ghost", type: "submit", size: "sm", onClick: at, children: X }),
|
|
153
|
-
/* @__PURE__ */ t(l, { id: `vlc-cancel-btn-${e}`, buttonType: "ghost", type: "button", size: "sm", onClick: lt, children: A })
|
|
154
|
-
] }) : /* @__PURE__ */ a(y, { children: [
|
|
155
|
-
/* @__PURE__ */ t(l, { id: `vlc-edit-btn-${e}`, buttonType: "ghost", type: "button", size: "sm", onClick: ut, children: k }),
|
|
152
|
+
/* @__PURE__ */ t("div", { className: `${i}__btn-group ${d}-button__group`, children: s ? /* @__PURE__ */ u(E, { children: [
|
|
156
153
|
/* @__PURE__ */ t(
|
|
157
|
-
|
|
154
|
+
c,
|
|
158
155
|
{
|
|
159
|
-
id: `vlc-
|
|
160
|
-
|
|
156
|
+
id: `vlc-save-btn-${e}`,
|
|
157
|
+
variant: l.ghost,
|
|
158
|
+
type: "submit",
|
|
159
|
+
size: "sm",
|
|
160
|
+
onClick: ut,
|
|
161
|
+
children: Y
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ t(
|
|
165
|
+
c,
|
|
166
|
+
{
|
|
167
|
+
id: `vlc-cancel-btn-${e}`,
|
|
168
|
+
variant: l.ghost,
|
|
161
169
|
type: "button",
|
|
162
170
|
size: "sm",
|
|
163
|
-
onClick:
|
|
171
|
+
onClick: lt,
|
|
172
|
+
children: L
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
] }) : /* @__PURE__ */ u(E, { children: [
|
|
176
|
+
/* @__PURE__ */ t(
|
|
177
|
+
c,
|
|
178
|
+
{
|
|
179
|
+
id: `vlc-edit-btn-${e}`,
|
|
180
|
+
variant: l.ghost,
|
|
181
|
+
type: "button",
|
|
182
|
+
size: "sm",
|
|
183
|
+
onClick: it,
|
|
164
184
|
children: _
|
|
165
185
|
}
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ t(
|
|
188
|
+
c,
|
|
189
|
+
{
|
|
190
|
+
id: `vlc-delete-btn-${e}`,
|
|
191
|
+
variant: l.ghost,
|
|
192
|
+
type: "button",
|
|
193
|
+
size: "sm",
|
|
194
|
+
onClick: () => typeof h == "function" && h(e),
|
|
195
|
+
children: V
|
|
196
|
+
}
|
|
166
197
|
)
|
|
167
198
|
] }) })
|
|
168
199
|
]
|
|
@@ -170,5 +201,5 @@ const u = `${E}-viewings-list-card`, Et = ({
|
|
|
170
201
|
);
|
|
171
202
|
};
|
|
172
203
|
export {
|
|
173
|
-
|
|
204
|
+
$t as default
|
|
174
205
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './utils';
|
|
2
2
|
export { default as Page } from './pages/Page';
|
|
3
3
|
export { default as Button, type ButtonProps } from './components/Button/Button';
|
|
4
|
+
export { ButtonVariants } from './components/Button/types';
|
|
4
5
|
export { default as IconButton } from './components/IconButton/IconButton';
|
|
5
6
|
export { default as ErrorBoundary, type ErrorBoundaryProps } from './components/ErrorBoundary/ErrorBoundary';
|
|
6
7
|
export { default as Footer, type FooterProps } from './components/Footer/Footer';
|
package/dist/index.js
CHANGED
|
@@ -1,87 +1,91 @@
|
|
|
1
|
-
import { PaddingTokens as a, defaultYear as f, emailValidation as m,
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import {
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as M } from "./components/Navigation/
|
|
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 {
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
1
|
+
import { PaddingTokens as a, defaultYear as f, emailValidation as m, encodeURLSearchParams as p, findChildrenOfType as d, generatePaddingClassName as s, getCommonProps as i, noOp as l, px as u, useNormalizedInputProps as x } from "./utils/index.js";
|
|
2
|
+
import { default as g } from "./pages/Page.js";
|
|
3
|
+
import { default as L } from "./components/Button/Button.js";
|
|
4
|
+
import { ButtonVariants as I } from "./components/Button/types.js";
|
|
5
|
+
import { default as P } from "./components/IconButton/IconButton.js";
|
|
6
|
+
import { default as N } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
7
|
+
import { default as T } from "./components/Footer/Footer.js";
|
|
8
|
+
import { Grid as v } from "./components/Grid/Grid.js";
|
|
9
|
+
import { default as h } from "./components/Header/Header.js";
|
|
10
|
+
import { default as C } from "./components/Navigation/Navigation.js";
|
|
11
|
+
import { default as y } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
12
|
+
import { default as M } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
13
|
+
import { default as R } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
14
|
+
import { default as z } from "./components/HeroBanner/HeroBanner.js";
|
|
15
|
+
import { default as E } from "./components/Input/Input.js";
|
|
16
|
+
import { default as Y } from "./components/Link/Link.js";
|
|
17
|
+
import { LinkVariants as q } from "./components/Link/utils.js";
|
|
18
|
+
import { default as K } from "./components/LinkBlock/LinkBlock.js";
|
|
19
|
+
import { default as W } from "./components/LinkList/LinkList.js";
|
|
20
|
+
import { default as Z } from "./components/Row/Row.js";
|
|
21
|
+
import { default as $ } from "./components/GridItem/GridItem.js";
|
|
22
|
+
import { GridItemAlign as re } from "./components/GridItem/types.js";
|
|
23
|
+
import { default as te } from "./components/Search/Search.js";
|
|
24
|
+
import { default as fe } from "./components/Select/Select.js";
|
|
25
|
+
import { default as pe } from "./components/SplitPanel/SplitPanel.js";
|
|
26
|
+
import { default as se } from "./components/Subscribe/Subscribe.js";
|
|
27
|
+
import { SubscriptionState as le } from "./components/Subscribe/types.js";
|
|
28
|
+
import { default as xe } from "./components/Social/Social.js";
|
|
29
|
+
import { default as ge } from "./components/ViewingsList/ViewingsList.js";
|
|
30
|
+
import { default as Le } from "./components/Modal/Modal.js";
|
|
31
|
+
import { default as Ie } from "./components/Drawer/Drawer.js";
|
|
32
|
+
import { default as Pe } from "./components/ViewingsList/StatefulViewingsList.js";
|
|
33
|
+
import { TextVariants as Ne } from "./components/Text/types.js";
|
|
34
|
+
import { default as Te } from "./components/Text/Text.js";
|
|
35
|
+
import { default as ve } from "./components/Accordion/Accordion.js";
|
|
36
|
+
import { default as he } from "./components/Accordion/AccordionItem.js";
|
|
37
|
+
import { default as Ce } from "./components/UserManagement/UserManagement.js";
|
|
38
|
+
import { SupportedLanguages as ye } from "./types/commonTypes.js";
|
|
39
|
+
import { default as Me } from "./components/Breadcrumb/Breadcrumb.js";
|
|
39
40
|
import "react/jsx-runtime";
|
|
40
41
|
import "./node_modules/classnames/index.js";
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Y as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
M as
|
|
43
|
+
ve as Accordion,
|
|
44
|
+
he as AccordionItem,
|
|
45
|
+
Me as Breadcrumb,
|
|
46
|
+
L as Button,
|
|
47
|
+
I as ButtonVariants,
|
|
48
|
+
Ie as Drawer,
|
|
49
|
+
N as ErrorBoundary,
|
|
50
|
+
T as Footer,
|
|
51
|
+
v as Grid,
|
|
52
|
+
$ as GridItem,
|
|
53
|
+
re as GridItemAlign,
|
|
54
|
+
h as Header,
|
|
55
|
+
z as HeroBanner,
|
|
56
|
+
P as IconButton,
|
|
57
|
+
E as Input,
|
|
58
|
+
Y as Link,
|
|
59
|
+
K as LinkBlock,
|
|
60
|
+
W as LinkList,
|
|
61
|
+
q as LinkVariants,
|
|
62
|
+
Le as Modal,
|
|
63
|
+
C as Navigation,
|
|
64
|
+
y as NavigationItem,
|
|
65
|
+
M as NavigationItemTrigger,
|
|
66
|
+
R as NavigationList,
|
|
65
67
|
a as PaddingTokens,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
g as Page,
|
|
69
|
+
Z as Row,
|
|
70
|
+
te as Search,
|
|
71
|
+
fe as Select,
|
|
72
|
+
xe as Social,
|
|
73
|
+
pe as SplitPanel,
|
|
74
|
+
Pe as StatefulViewingsList,
|
|
75
|
+
se as Subscribe,
|
|
76
|
+
le as SubscriptionState,
|
|
77
|
+
ye as SupportedLanguages,
|
|
78
|
+
Te as Text,
|
|
79
|
+
Ne as TextVariants,
|
|
80
|
+
Ce as UserManagement,
|
|
81
|
+
ge as ViewingsList,
|
|
80
82
|
f as defaultYear,
|
|
81
83
|
m as emailValidation,
|
|
82
|
-
p as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
p as encodeURLSearchParams,
|
|
85
|
+
d as findChildrenOfType,
|
|
86
|
+
s as generatePaddingClassName,
|
|
87
|
+
i as getCommonProps,
|
|
88
|
+
l as noOp,
|
|
89
|
+
u as px,
|
|
90
|
+
x as useNormalizedInputProps
|
|
87
91
|
};
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
right: 0;
|
|
61
61
|
top: 0;
|
|
62
62
|
width: 307px;
|
|
63
|
-
z-index: -
|
|
63
|
+
z-index: -1;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@include isHeaderDesktop {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
overflow: hidden;
|
|
75
75
|
position: fixed;
|
|
76
76
|
top: 90px;
|
|
77
|
-
width:
|
|
77
|
+
width: 100%;
|
|
78
78
|
z-index: -1;
|
|
79
79
|
|
|
80
80
|
li {
|
|
@@ -50,11 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
&
|
|
54
|
-
background: #323232;
|
|
55
|
-
color: $white;
|
|
56
|
-
display: flex;
|
|
57
|
-
height: 100px;
|
|
53
|
+
&__form {
|
|
58
54
|
overflow: hidden;
|
|
59
55
|
position: absolute;
|
|
60
56
|
right: 0;
|
|
@@ -68,13 +64,28 @@
|
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
&--active {
|
|
67
|
+
overflow: visible;
|
|
71
68
|
width: 50%;
|
|
72
69
|
|
|
73
70
|
@include isHeaderMobile {
|
|
74
71
|
top: $header-height;
|
|
75
72
|
width: 100%;
|
|
76
73
|
}
|
|
74
|
+
|
|
75
|
+
.#{$px}-search__results {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
}
|
|
77
79
|
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__input-wrapper {
|
|
83
|
+
background: #323232;
|
|
84
|
+
color: $white;
|
|
85
|
+
display: flex;
|
|
86
|
+
height: 100px;
|
|
87
|
+
position: relative;
|
|
88
|
+
z-index: 3;
|
|
78
89
|
|
|
79
90
|
&__icon {
|
|
80
91
|
height: 24px;
|
|
@@ -99,4 +110,42 @@
|
|
|
99
110
|
padding: 1rem 2rem;
|
|
100
111
|
}
|
|
101
112
|
}
|
|
113
|
+
|
|
114
|
+
&__results {
|
|
115
|
+
background: $soft-black;
|
|
116
|
+
display: none;
|
|
117
|
+
padding: 1rem 2rem;
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 100px;
|
|
120
|
+
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&__result {
|
|
124
|
+
border-bottom: 1px solid $white;
|
|
125
|
+
display: flex;
|
|
126
|
+
padding: 0.625rem 0;
|
|
127
|
+
|
|
128
|
+
&:last-child {
|
|
129
|
+
border-bottom: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.phillips-link {
|
|
133
|
+
&:hover {
|
|
134
|
+
border-bottom: none;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
p {
|
|
139
|
+
@include text($body3);
|
|
140
|
+
|
|
141
|
+
color: $white;
|
|
142
|
+
text-transform: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&:hover {
|
|
146
|
+
p {
|
|
147
|
+
color: $cta-blue;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
102
151
|
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -81,4 +81,14 @@ export declare const generatePaddingClassName: (padding: PaddingTokens, side?: '
|
|
|
81
81
|
|
|
82
82
|
*/
|
|
83
83
|
export declare const emailValidation: (email: string) => boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Return array of children of a specific type
|
|
86
|
+
*
|
|
87
|
+
* @param children - React children
|
|
88
|
+
* @param componentType - React component type
|
|
89
|
+
* @param inverse - Return children that are not of the specified type
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
export declare const findChildrenOfType: (children: React.ReactNode, componentType?: React.ElementType, inverse?: boolean) => (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[] | null;
|
|
93
|
+
export declare const encodeURLSearchParams: (url: string) => string;
|
|
84
94
|
export {};
|