@phillips/seldon 1.26.1 → 1.27.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.
Files changed (58) hide show
  1. package/dist/assets/account_circle.svg.js +5 -0
  2. package/dist/assets/search.svg.js +5 -0
  3. package/dist/components/Button/Button.d.ts +2 -2
  4. package/dist/components/Button/Button.js +12 -12
  5. package/dist/components/Header/Header.d.ts +26 -9
  6. package/dist/components/Header/Header.js +70 -24
  7. package/dist/components/Link/utils.d.ts +7 -1
  8. package/dist/components/Link/utils.js +6 -6
  9. package/dist/components/Navigation/Navigation.d.ts +10 -0
  10. package/dist/components/Navigation/Navigation.js +50 -0
  11. package/dist/components/Navigation/NavigationItem/NavigationItem.d.ts +30 -0
  12. package/dist/components/Navigation/NavigationItem/NavigationItem.js +35 -0
  13. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.d.ts +9 -0
  14. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +31 -0
  15. package/dist/components/Navigation/NavigationList/NavigationList.d.ts +9 -0
  16. package/dist/components/Navigation/NavigationList/NavigationList.js +32 -0
  17. package/dist/components/Search/Search.d.ts +7 -0
  18. package/dist/components/Search/Search.js +49 -0
  19. package/dist/components/Select/Select.js +28 -27
  20. package/dist/components/UserManagement/UserManagement.d.ts +19 -0
  21. package/dist/components/UserManagement/UserManagement.js +52 -0
  22. package/dist/components/ViewingsList/ViewingsList.js +10 -10
  23. package/dist/components/ViewingsList/ViewingsListCard.d.ts +2 -2
  24. package/dist/components/ViewingsList/ViewingsListCard.js +51 -51
  25. package/dist/index.d.ts +7 -0
  26. package/dist/index.js +65 -51
  27. package/dist/pages/Page.js +38 -54
  28. package/dist/scss/_vars.scss +1 -1
  29. package/dist/scss/components/Button/_button.scss +3 -3
  30. package/dist/scss/components/DatePicker/_datePicker.scss +2 -2
  31. package/dist/scss/components/Footer/_footer.scss +4 -4
  32. package/dist/scss/components/Grid/_grid.scss +2 -2
  33. package/dist/scss/components/GridItem/_gridItem.scss +1 -1
  34. package/dist/scss/components/Header/_header.scss +144 -24
  35. package/dist/scss/components/HeroBanner/_heroBanner.scss +1 -1
  36. package/dist/scss/components/Input/_input.scss +2 -2
  37. package/dist/scss/components/Link/_link.scss +77 -3
  38. package/dist/scss/components/LinkBlock/_linkBlock.scss +2 -2
  39. package/dist/scss/components/LinkList/_linkList.scss +1 -1
  40. package/dist/scss/components/Modal/_modal.scss +2 -2
  41. package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +272 -0
  42. package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -0
  43. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +96 -0
  44. package/dist/scss/components/Navigation/_navigation.scss +114 -0
  45. package/dist/scss/components/Row/_row.scss +1 -1
  46. package/dist/scss/components/Search/_search.scss +101 -0
  47. package/dist/scss/components/Social/_social.scss +3 -3
  48. package/dist/scss/components/SplitPanel/_splitPanel.scss +2 -2
  49. package/dist/scss/components/SplitPanel/_splitPanel.stories.scss +1 -1
  50. package/dist/scss/components/Subscribe/_subscribe.scss +4 -4
  51. package/dist/scss/components/Text/_text.scss +1 -1
  52. package/dist/scss/components/Toggle/_toggle.scss +2 -2
  53. package/dist/scss/components/UserManagement/_userManagement.scss +115 -0
  54. package/dist/scss/components/ViewingsList/_viewingsList.scss +3 -3
  55. package/dist/scss/styles.scss +6 -0
  56. package/dist/types/commonTypes.d.ts +4 -0
  57. package/dist/types/commonTypes.js +4 -0
  58. package/package.json +12 -11
@@ -0,0 +1,52 @@
1
+ import { jsxs as g, jsx as a } from "react/jsx-runtime";
2
+ import { getCommonProps as x, px as j, noOp as s } from "../../utils/index.js";
3
+ import A from "../Input/Input.js";
4
+ import E from "../../assets/account_circle.svg.js";
5
+ import M from "../Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
6
+ import P from "../Navigation/NavigationList/NavigationList.js";
7
+ import S from "../Navigation/NavigationItem/NavigationItem.js";
8
+ import { SupportedLanguages as o } from "../../types/commonTypes.js";
9
+ import T from "../../node_modules/classnames/index.js";
10
+ const H = ({
11
+ accountDetailsLink: m,
12
+ children: p,
13
+ className: v,
14
+ currentLanguage: n = o.en,
15
+ languageOptions: i = [
16
+ { label: "English", value: o.en },
17
+ { label: "中文", value: o.zh }
18
+ ],
19
+ onLanguageChange: d = s,
20
+ isLoggedIn: r = !1,
21
+ onLogin: f = s,
22
+ onLogout: h = s,
23
+ loginLabel: N = "Login",
24
+ logoutLabel: _ = "Logout",
25
+ ...t
26
+ }) => {
27
+ var c, u;
28
+ const { className: l, ...b } = x(t, "UserManagement"), C = (u = (c = i.find((e) => e.value === n)) == null ? void 0 : c.label) != null ? u : "English", $ = m != null ? m : "a";
29
+ return /* @__PURE__ */ g("div", { ...b, className: T(l, v), ...t, children: [
30
+ /* @__PURE__ */ g("ul", { className: `${l}__account-wrapper`, children: [
31
+ r && /* @__PURE__ */ a($, { children: /* @__PURE__ */ a(E, { className: `${l}__account-icon` }) }),
32
+ /* @__PURE__ */ a(S, { onClick: r ? h : f, label: r ? _ : N })
33
+ ] }),
34
+ /* @__PURE__ */ a(M, { className: `${l}__language`, label: C, children: /* @__PURE__ */ a(P, { id: `${j}-langauge-selection-list`, className: `${l}__language__selections`, children: i.map((e) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
35
+ A,
36
+ {
37
+ type: "radio",
38
+ id: `radio-${e.value}`,
39
+ labelText: e.label,
40
+ value: e.value,
41
+ inline: !0,
42
+ name: "languages",
43
+ checked: e.value === n,
44
+ onChange: () => d(e.value)
45
+ }
46
+ ) }, e.value)) }) }),
47
+ p
48
+ ] });
49
+ };
50
+ export {
51
+ H as default
52
+ };
@@ -7,16 +7,16 @@ import P from "./ViewingsListCard.js";
7
7
  import R from "../Button/Button.js";
8
8
  const $ = () => Math.floor(Math.random() * 100) + Date.now(), G = ({
9
9
  cardTitle: C = "Viewing Details",
10
- className: N,
10
+ className: E,
11
11
  i18n: f = {},
12
12
  onAdd: r,
13
13
  onDelete: e,
14
- onSave: O,
15
- title: D,
14
+ onSave: N,
15
+ title: O,
16
16
  viewings: c,
17
17
  ...i
18
18
  }) => {
19
- const [a, h] = d.useState(c), [m, n] = d.useState(""), [o, u] = d.useState(), { className: p, ...E } = M(i, "ViewingsList");
19
+ const [a, h] = d.useState(c), [m, n] = d.useState(""), [s, u] = d.useState(), { className: p, ...D } = M(i, "ViewingsList");
20
20
  d.useEffect(() => {
21
21
  h(c);
22
22
  }, [c]);
@@ -26,19 +26,19 @@ const $ = () => Math.floor(Math.random() * 100) + Date.now(), G = ({
26
26
  }, V = (t) => {
27
27
  n(""), typeof e == "function" && e(t);
28
28
  }, k = (t) => {
29
- n(t), u(a == null ? void 0 : a.find((s) => s.id === t));
29
+ n(t), u(a == null ? void 0 : a.find((o) => o.id === t));
30
30
  }, x = (t) => {
31
- O(t) && n("");
31
+ N(t) && n("");
32
32
  }, B = () => {
33
- typeof o == "string" ? typeof e == "function" && e(o) : m === (o == null ? void 0 : o.id) && h((t) => t == null ? void 0 : t.map((s) => s.id === o.id ? o : s)), n("");
33
+ typeof s == "string" ? typeof e == "function" && e(s) : m === (s == null ? void 0 : s.id) && h((t) => t == null ? void 0 : t.map((o) => o.id === s.id ? s : o)), n("");
34
34
  };
35
- return /* @__PURE__ */ L("div", { ...E, className: S(p, N), key: m, ...i }, /* @__PURE__ */ l("h2", { className: S(`${p}__title`), children: D }), a == null ? void 0 : a.map((t, s) => /* @__PURE__ */ l(
35
+ return /* @__PURE__ */ L("div", { ...D, className: S(p, E), key: m, ...i }, /* @__PURE__ */ l("h2", { className: S(`${p}__title`), children: O }), a == null ? void 0 : a.map((t, o) => /* @__PURE__ */ l(
36
36
  P,
37
37
  {
38
38
  ...t,
39
39
  ...f,
40
- cardTitle: t.location ? `${C} ${s + 1}` : void 0,
41
- editState: m === t.id,
40
+ cardTitle: t.location ? `${C} ${o + 1}` : void 0,
41
+ isEditState: m === t.id,
42
42
  onCancel: B,
43
43
  onDelete: V,
44
44
  onEdit: () => k(t.id),
@@ -20,7 +20,7 @@ export interface ViewingsListCardProps extends ViewingsListCardFormProps, Record
20
20
  /**
21
21
  * Location of viewing
22
22
  */
23
- editState?: boolean;
23
+ isEditState?: boolean;
24
24
  /**
25
25
  * Default boolean to determine whether viewing is enabled on site
26
26
  */
@@ -108,5 +108,5 @@ export interface ViewingsListCardProps extends ViewingsListCardFormProps, Record
108
108
  */
109
109
  saveBtnLabel?: string;
110
110
  }
111
- declare const ViewingsListCard: ({ address1, address1Label, addressUrl, addressUrlLabel, address2, address2Label, address3, address3Label, cancelBtnLabel, cardTitle, deleteBtnLabel, editBtnLabel, editState, enableOnSite, enableOnSiteToggleLabel, email, emailLabel, emailLink, emailLinkLabel, emailOn, emailToggleLabel, id, invalidFields, location, locationLabel, onCancel, onEdit, onDelete, onSave, previewDates, previewDatesLabel, previewHours1, previewHours1Label, previewHours2, previewHours2Label, previewLabel, previewLabelValue, previewOn, previewToggleLabel, saveBtnLabel, viewingLabel, viewingLabelValue, viewingDates, viewingDatesLabel, viewingHours1, viewingHours1Label, viewingHours2, viewingHours2Label, }: ViewingsListCardProps) => import("react/jsx-runtime").JSX.Element;
111
+ declare const ViewingsListCard: ({ address1, address1Label, addressUrl, addressUrlLabel, address2, address2Label, address3, address3Label, cancelBtnLabel, cardTitle, deleteBtnLabel, editBtnLabel, isEditState: editState, enableOnSite, enableOnSiteToggleLabel, email, emailLabel, emailLink, emailLinkLabel, emailOn, emailToggleLabel, id, invalidFields, location, locationLabel, onCancel, onEdit, onDelete, onSave, previewDates, previewDatesLabel, previewHours1, previewHours1Label, previewHours2, previewHours2Label, previewLabel, previewLabelValue, previewOn, previewToggleLabel, saveBtnLabel, viewingLabel, viewingLabelValue, viewingDates, viewingDatesLabel, viewingHours1, viewingHours1Label, viewingHours2, viewingHours2Label, }: ViewingsListCardProps) => import("react/jsx-runtime").JSX.Element;
112
112
  export default ViewingsListCard;
@@ -1,13 +1,13 @@
1
- import { jsxs as a, jsx as e, Fragment as y } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as t, Fragment as y } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
- import ie from "../../node_modules/classnames/index.js";
3
+ import it from "../../node_modules/classnames/index.js";
4
4
  import { px as E } from "../../utils/index.js";
5
5
  import g from "../Input/Input.js";
6
6
  import l from "../Button/Button.js";
7
- import pe from "./ViewingsListCardForm.js";
8
- const u = `${E}-viewings-list-card`, Ee = ({
9
- address1: $,
10
- address1Label: d,
7
+ import pt from "./ViewingsListCardForm.js";
8
+ const u = `${E}-viewings-list-card`, Et = ({
9
+ address1: d,
10
+ address1Label: $,
11
11
  addressUrl: C,
12
12
  addressUrlLabel: T,
13
13
  address2: O,
@@ -18,16 +18,16 @@ const u = `${E}-viewings-list-card`, Ee = ({
18
18
  cardTitle: L = "Add New Viewing",
19
19
  deleteBtnLabel: _ = "DELETE",
20
20
  editBtnLabel: k = "EDIT",
21
- editState: o,
21
+ isEditState: o,
22
22
  enableOnSite: i = "false",
23
23
  enableOnSiteToggleLabel: I = "Enabled on website",
24
24
  email: N,
25
- emailLabel: V = "Email",
26
- emailLink: S,
25
+ emailLabel: S = "Email",
26
+ emailLink: V,
27
27
  emailLinkLabel: v = "Email Address",
28
28
  emailOn: j = "false",
29
29
  emailToggleLabel: D = "Include Email Address",
30
- id: t,
30
+ id: e,
31
31
  invalidFields: n,
32
32
  location: R,
33
33
  locationLabel: q = "Location",
@@ -49,40 +49,40 @@ const u = `${E}-viewings-list-card`, Ee = ({
49
49
  viewingLabel: Y,
50
50
  viewingLabelValue: Z,
51
51
  viewingDates: F,
52
- viewingDatesLabel: ee,
53
- viewingHours1: te,
54
- viewingHours1Label: ne,
55
- viewingHours2: oe,
56
- viewingHours2Label: se
52
+ viewingDatesLabel: tt,
53
+ viewingHours1: et,
54
+ viewingHours1Label: nt,
55
+ viewingHours2: ot,
56
+ viewingHours2Label: st
57
57
  }) => {
58
- const [ce, re] = r.useState(i === "true"), c = r.useRef(null);
58
+ const [ct, rt] = r.useState(i === "true"), c = r.useRef(null);
59
59
  r.useEffect(() => {
60
60
  o && c.current && c.current.focus();
61
61
  }, [o]), r.useEffect(() => {
62
62
  var s, b;
63
63
  n && c.current && ((b = (s = c.current.closest(".phillips-viewings-list-card")) == null ? void 0 : s.querySelector(".phillips-input--invalid input")) == null || b.focus());
64
64
  }, [n]);
65
- const le = () => {
65
+ const lt = () => {
66
66
  typeof p == "function" && p();
67
- }, ue = () => {
67
+ }, ut = () => {
68
68
  typeof m == "function" && m();
69
- }, ae = (s) => {
69
+ }, at = (s) => {
70
70
  typeof h == "function" && h(s);
71
71
  };
72
72
  return /* @__PURE__ */ a(
73
73
  "section",
74
74
  {
75
- "data-testid": `viewings-list-card-${t}`,
76
- id: t,
77
- className: ie(`${u}`, { [`${u}--edit-state`]: o }),
75
+ "data-testid": `viewings-list-card-${e}`,
76
+ id: e,
77
+ className: it(`${u}`, { [`${u}--edit-state`]: o }),
78
78
  children: [
79
- /* @__PURE__ */ e("h3", { className: `${u}__title`, children: L }),
80
- /* @__PURE__ */ e("input", { type: "hidden", name: "id", value: t }),
81
- /* @__PURE__ */ e(
79
+ /* @__PURE__ */ t("h3", { className: `${u}__title`, children: L }),
80
+ /* @__PURE__ */ t("input", { type: "hidden", name: "id", value: e }),
81
+ /* @__PURE__ */ t(
82
82
  g,
83
83
  {
84
84
  ref: c,
85
- id: `location-${t}`,
85
+ id: `location-${e}`,
86
86
  defaultValue: R,
87
87
  labelText: q,
88
88
  size: "sm",
@@ -92,11 +92,11 @@ const u = `${E}-viewings-list-card`, Ee = ({
92
92
  readOnly: !o
93
93
  }
94
94
  ),
95
- o ? /* @__PURE__ */ e(
96
- pe,
95
+ o ? /* @__PURE__ */ t(
96
+ pt,
97
97
  {
98
- address1: $,
99
- address1Label: d,
98
+ address1: d,
99
+ address1Label: $,
100
100
  addressUrl: C,
101
101
  addressUrlLabel: T,
102
102
  address2: O,
@@ -104,12 +104,12 @@ const u = `${E}-viewings-list-card`, Ee = ({
104
104
  address3: x,
105
105
  address3Label: z,
106
106
  email: N,
107
- emailLabel: V,
108
- emailLink: S,
107
+ emailLabel: S,
108
+ emailLink: V,
109
109
  emailLinkLabel: v,
110
110
  emailOn: j,
111
111
  emailToggleLabel: D,
112
- id: t,
112
+ id: e,
113
113
  invalidFields: n,
114
114
  previewDates: B,
115
115
  previewDatesLabel: G,
@@ -124,17 +124,17 @@ const u = `${E}-viewings-list-card`, Ee = ({
124
124
  viewingLabel: Y,
125
125
  viewingLabelValue: Z,
126
126
  viewingDates: F,
127
- viewingDatesLabel: ee,
128
- viewingHours1: te,
129
- viewingHours1Label: ne,
130
- viewingHours2: oe,
131
- viewingHours2Label: se
127
+ viewingDatesLabel: tt,
128
+ viewingHours1: et,
129
+ viewingHours1Label: nt,
130
+ viewingHours2: ot,
131
+ viewingHours2Label: st
132
132
  }
133
133
  ) : null,
134
- /* @__PURE__ */ e(
134
+ /* @__PURE__ */ t(
135
135
  g,
136
136
  {
137
- id: `enableOnSite-${t}`,
137
+ id: `enableOnSite-${e}`,
138
138
  type: "toggle",
139
139
  defaultChecked: i === "true",
140
140
  labelText: I,
@@ -142,25 +142,25 @@ const u = `${E}-viewings-list-card`, Ee = ({
142
142
  inline: !0,
143
143
  value: "true",
144
144
  name: "enableOnSite",
145
- onChange: () => re((s) => !s),
145
+ onChange: () => rt((s) => !s),
146
146
  readOnly: !o
147
147
  }
148
148
  ),
149
- ce ? null : /* @__PURE__ */ e("input", { type: "hidden", name: "enableOnSite", value: "false" }),
150
- /* @__PURE__ */ e("hr", {}),
151
- /* @__PURE__ */ e("div", { className: `${u}__btn-group ${E}-button__group`, children: o ? /* @__PURE__ */ a(y, { children: [
152
- /* @__PURE__ */ e(l, { id: `vlc-save-btn-${t}`, buttonType: "ghost", type: "submit", size: "sm", onClick: ae, children: X }),
153
- /* @__PURE__ */ e(l, { id: `vlc-cancel-btn-${t}`, buttonType: "ghost", type: "button", size: "sm", onClick: le, children: A })
149
+ ct ? null : /* @__PURE__ */ t("input", { type: "hidden", name: "enableOnSite", value: "false" }),
150
+ /* @__PURE__ */ t("hr", {}),
151
+ /* @__PURE__ */ t("div", { className: `${u}__btn-group ${E}-button__group`, children: o ? /* @__PURE__ */ a(y, { children: [
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
154
  ] }) : /* @__PURE__ */ a(y, { children: [
155
- /* @__PURE__ */ e(l, { id: `vlc-edit-btn-${t}`, buttonType: "ghost", type: "button", size: "sm", onClick: ue, children: k }),
156
- /* @__PURE__ */ e(
155
+ /* @__PURE__ */ t(l, { id: `vlc-edit-btn-${e}`, buttonType: "ghost", type: "button", size: "sm", onClick: ut, children: k }),
156
+ /* @__PURE__ */ t(
157
157
  l,
158
158
  {
159
- id: `vlc-delete-btn-${t}`,
159
+ id: `vlc-delete-btn-${e}`,
160
160
  buttonType: "ghost",
161
161
  type: "button",
162
162
  size: "sm",
163
- onClick: () => typeof f == "function" && f(t),
163
+ onClick: () => typeof f == "function" && f(e),
164
164
  children: _
165
165
  }
166
166
  )
@@ -170,5 +170,5 @@ const u = `${E}-viewings-list-card`, Ee = ({
170
170
  );
171
171
  };
172
172
  export {
173
- Ee as default
173
+ Et as default
174
174
  };
package/dist/index.d.ts CHANGED
@@ -6,6 +6,10 @@ export { default as ErrorBoundary, type ErrorBoundaryProps } from './components/
6
6
  export { default as Footer, type FooterProps } from './components/Footer/Footer';
7
7
  export { default as Grid, type GridProps } from './components/Grid/Grid';
8
8
  export { default as Header, type HeaderProps } from './components/Header/Header';
9
+ export { default as Navigation, type NavigationProps } from './components/Navigation/Navigation';
10
+ export { default as NavigationItem, type NavigationItemProps, } from './components/Navigation/NavigationItem/NavigationItem';
11
+ export { default as NavigationItemTrigger, type NavigationItemTriggerProps, } from './components/Navigation/NavigationItemTrigger/NavigationItemTrigger';
12
+ export { default as NavigationList, type NavigationListProps, } from './components/Navigation/NavigationList/NavigationList';
9
13
  export { default as HeroBanner, type HeroBannerProps } from './components/HeroBanner/HeroBanner';
10
14
  export { default as Input, type InputProps } from './components/Input/Input';
11
15
  export { default as Link, type LinkProps } from './components/Link/Link';
@@ -15,6 +19,7 @@ export { default as LinkList, type LinkListProps } from './components/LinkList/L
15
19
  export { default as Row, type RowProps } from './components/Row/Row';
16
20
  export { default as GridItem, type GridItemProps } from './components/GridItem/GridItem';
17
21
  export { GridItemAlign } from './components/GridItem/types';
22
+ export { default as Search, type SearchProps } from './components/Search/Search';
18
23
  export { default as Select, type SelectProps } from './components/Select/Select';
19
24
  export { default as SplitPanel, type SplitPanelProps } from './components/SplitPanel/SplitPanel';
20
25
  export { default as Subscribe, type SubscribeProps } from './components/Subscribe/Subscribe';
@@ -24,3 +29,5 @@ export { default as ViewingsList, type ViewingsListProps } from './components/Vi
24
29
  export { default as Modal, type ModalProps } from './components/Modal/Modal';
25
30
  export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './components/ViewingsList/StatefulViewingsList';
26
31
  export * from './components/Text';
32
+ export { default as UserManagement, type UserManagementProps } from './components/UserManagement/UserManagement';
33
+ export * from './types/commonTypes';
package/dist/index.js CHANGED
@@ -1,63 +1,77 @@
1
- import { PaddingTokens as t, defaultYear as r, emailValidation as a, generatePaddingClassName as f, getCommonProps as s, noOp as p, px as d, useNormalizedInputProps as l } from "./utils/index.js";
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 i } from "./components/Button/Button.js";
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 k } from "./components/Footer/Footer.js";
7
- import { Grid as B } from "./components/Grid/Grid.js";
8
- import { default as V } from "./components/Header/Header.js";
9
- import { default as w } from "./components/HeroBanner/HeroBanner.js";
10
- import { default as T } from "./components/Input/Input.js";
11
- import { default as H } from "./components/Link/Link.js";
12
- import { LinkVariants as y } from "./components/Link/utils.js";
13
- import { default as A } from "./components/LinkBlock/LinkBlock.js";
14
- import { default as F } from "./components/LinkList/LinkList.js";
15
- import { default as O } from "./components/Row/Row.js";
16
- import { default as Y } from "./components/GridItem/GridItem.js";
17
- import { GridItemAlign as j } from "./components/GridItem/types.js";
18
- import { default as v } from "./components/Select/Select.js";
19
- import { default as J } from "./components/SplitPanel/SplitPanel.js";
20
- import { default as Q } from "./components/Subscribe/Subscribe.js";
21
- import { SubscriptionState as W } from "./components/Subscribe/types.js";
22
- import { default as Z } from "./components/Social/Social.js";
23
- import { default as $ } from "./components/ViewingsList/ViewingsList.js";
24
- import { default as oe } from "./components/Modal/Modal.js";
25
- import { default as re } from "./components/ViewingsList/StatefulViewingsList.js";
26
- import { TextVariants as fe } from "./components/Text/types.js";
27
- import { default as pe } from "./components/Text/Text.js";
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
- i as Button,
36
+ x as Button,
30
37
  S as ErrorBoundary,
31
- k as Footer,
32
- B as Grid,
33
- Y as GridItem,
34
- j as GridItemAlign,
35
- V as Header,
36
- w as HeroBanner,
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
- T as Input,
39
- H as Link,
40
- A as LinkBlock,
41
- F as LinkList,
42
- y as LinkVariants,
43
- oe as Modal,
44
- t as PaddingTokens,
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
- O as Row,
47
- v as Select,
48
- Z as Social,
49
- J as SplitPanel,
50
- re as StatefulViewingsList,
51
- Q as Subscribe,
52
- W as SubscriptionState,
53
- pe as Text,
54
- fe as TextVariants,
55
- $ as ViewingsList,
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
- p as noOp,
61
- d as px,
62
- l as useNormalizedInputProps
74
+ m as noOp,
75
+ p as px,
76
+ d as useNormalizedInputProps
63
77
  };
@@ -1,58 +1,42 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import a from "../components/Header/Header.js";
4
- const h = () => {
5
- const [r, t] = n.useState();
6
- return /* @__PURE__ */ o("article", { children: [
7
- /* @__PURE__ */ e(
8
- a,
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
- user: r,
11
- onLogin: () => t({ name: "Jane Doe" }),
12
- onLogout: () => t(void 0),
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
- /* @__PURE__ */ o("section", { className: "storybook-page", children: [
17
- /* @__PURE__ */ e("h2", { children: "Pages in Storybook" }),
18
- /* @__PURE__ */ o("p", { children: [
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
- h as default
41
+ r as default
58
42
  };
@@ -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: 961px;
222
+ $breakpoint-md: 1301px;
223
223
  $breakpoint-lg: 1401px;
224
224
  $breakpoint-xl: 1801px;
225
225
 
@@ -1,6 +1,6 @@
1
- @import '../../vars';
2
- @import '../../typography';
3
- @import '../../utils';
1
+ @import '@phillips/seldon/dist/scss/vars';
2
+ @import '@phillips/seldon/dist/scss/typography';
3
+ @import '@phillips/seldon/dist/scss/utils';
4
4
 
5
5
  .#{$px}-button {
6
6
  @include bodyText;
@@ -1,7 +1,7 @@
1
1
  /* stylelint-disable selector-class-pattern */
2
2
  @import 'flatpickr/dist/flatpickr.css';
3
- @import '../../vars';
4
- @import '../../typography';
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 '../../vars';
2
- @import '../../utils';
3
- @import '../../type';
4
- @import '../../typography';
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,5 +1,5 @@
1
- @import '../../vars';
2
- @import '../../utils';
1
+ @import '@phillips/seldon/dist/scss/vars';
2
+ @import '@phillips/seldon/dist/scss/utils';
3
3
 
4
4
  .#{$px}-grid {
5
5
  @include gridContainer(false);
@@ -1,5 +1,5 @@
1
1
  @use 'sass:math';
2
- @import '../../_utils';
2
+ @import '@phillips/seldon/dist/scss/_utils';
3
3
 
4
4
  @mixin gridItemColumnSpan($span: 1, $total-cols: 12) {
5
5
  grid-column: span $span;