@phillips/seldon 1.7.1 → 1.8.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 (33) hide show
  1. package/dist/components/Button/Button.d.ts +13 -19
  2. package/dist/components/Button/Button.js +12 -18
  3. package/dist/components/Header/Header.js +15 -33
  4. package/dist/components/HeroBanner/HeroBanner.d.ts +6 -6
  5. package/dist/components/HeroBanner/HeroBanner.js +1 -9
  6. package/dist/components/Input/Input.js +59 -60
  7. package/dist/components/Select/Select.js +45 -48
  8. package/dist/components/ViewingsList/StatefulViewingsList.d.ts +27 -0
  9. package/dist/components/ViewingsList/StatefulViewingsList.js +33 -0
  10. package/dist/components/ViewingsList/ViewingsList.d.ts +60 -0
  11. package/dist/components/ViewingsList/ViewingsList.js +54 -0
  12. package/dist/components/ViewingsList/ViewingsListCard.d.ts +85 -0
  13. package/dist/components/ViewingsList/ViewingsListCard.js +162 -0
  14. package/dist/components/ViewingsList/ViewingsListCardForm.d.ts +131 -0
  15. package/dist/components/ViewingsList/ViewingsListCardForm.js +218 -0
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.js +17 -13
  18. package/dist/scss/_reset.scss +20 -5
  19. package/dist/scss/_typography.scss +22 -12
  20. package/dist/scss/_utils.scss +2 -2
  21. package/dist/scss/_vars.scss +1 -4
  22. package/dist/scss/components/Button/_button.scss +48 -6
  23. package/dist/scss/components/DatePicker/_datePicker.scss +3 -4
  24. package/dist/scss/components/Header/_header.scss +1 -1
  25. package/dist/scss/components/HeroBanner/_heroBanner.scss +81 -81
  26. package/dist/scss/components/Input/_input.scss +17 -5
  27. package/dist/scss/components/Toggle/_toggle.scss +26 -13
  28. package/dist/scss/components/ViewingsList/_viewingsList.scss +55 -0
  29. package/dist/scss/pages/_page.scss +1 -1
  30. package/dist/scss/styles.scss +2 -1
  31. package/dist/utils/index.d.ts +11 -1
  32. package/dist/utils/index.js +1 -15
  33. package/package.json +7 -4
@@ -0,0 +1,85 @@
1
+ import * as React from 'react';
2
+ import { ViewingsListCardFormProps } from './ViewingsListCardForm';
3
+ export interface ViewingsListCardProps extends ViewingsListCardFormProps, Record<string, unknown> {
4
+ /**
5
+ * Title of card
6
+ */
7
+ cardTitle?: string;
8
+ /**
9
+ * Optional string to pass for cancel button
10
+ */
11
+ cancelBtnLabel?: string;
12
+ /**
13
+ * Optional string to pass for delete button
14
+ */
15
+ deleteBtnLabel?: string;
16
+ /**
17
+ * Optional string to pass for edit button
18
+ */
19
+ editBtnLabel?: string;
20
+ /**
21
+ * Location of viewing
22
+ */
23
+ editState?: boolean;
24
+ /**
25
+ * Default boolean to determine whether viewing is enabled on site
26
+ */
27
+ enableOnSite?: string;
28
+ /**
29
+ * Label for enable on site toggle
30
+ */
31
+ enableOnSiteToggleLabel?: string;
32
+ /**
33
+ * Location of viewing
34
+ */
35
+ location?: string;
36
+ /**
37
+ * Location of viewing
38
+ */
39
+ locationLabel?: string;
40
+ /**
41
+ * Unique id for component
42
+ */
43
+ id: string;
44
+ /**
45
+ * Validation error message object
46
+ */
47
+ invalidFields?: {
48
+ address1?: string | undefined;
49
+ address1Url?: string | undefined;
50
+ address2?: string | undefined;
51
+ address3?: string | undefined;
52
+ location?: string | undefined;
53
+ previewDates?: string | undefined;
54
+ previewHours1?: string | undefined;
55
+ previewHours2?: string | undefined;
56
+ previewLabelValue?: string | undefined;
57
+ previewOn?: string | undefined;
58
+ viewingLabelValue?: string | undefined;
59
+ viewingDates?: string | undefined;
60
+ viewingHours1?: string | undefined;
61
+ viewingHours2?: string | undefined;
62
+ };
63
+ /**
64
+ * Callback for when Viewings edits are cancelled
65
+ */
66
+ onCancel?: () => void | unknown;
67
+ /**
68
+ * Callback for when Viewings item is deleted
69
+ */
70
+ onDelete?: (id: string) => void | unknown;
71
+ /**
72
+ * Callback for when Viewings item is placed in an editable mode
73
+ */
74
+ onEdit?: () => void | unknown;
75
+ /**
76
+ * Callback for when form is saved/submitted
77
+ */
78
+ onSave?: (e: React.MouseEvent<HTMLElement>) => void | unknown;
79
+ /**
80
+ * Optional string to pass for edit button
81
+ */
82
+ saveBtnLabel?: string;
83
+ }
84
+ declare const ViewingsListCard: ({ address1, address1Label, addressUrl, addressUrlLabel, address2, address2Label, address3, address3Label, cancelBtnLabel, cardTitle, deleteBtnLabel, editBtnLabel, editState, enableOnSite, enableOnSiteToggleLabel, 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;
85
+ export default ViewingsListCard;
@@ -0,0 +1,162 @@
1
+ import { jsxs as a, jsx as t, Fragment as y } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import st from "../../node_modules/classnames/index.js";
4
+ import { px as $ } from "../../utils/index.js";
5
+ import g from "../Input/Input.js";
6
+ import u from "../Button/Button.js";
7
+ import ct from "./ViewingsListCardForm.js";
8
+ const l = `${$}-viewings-list-card`, ft = ({
9
+ address1: C,
10
+ address1Label: E,
11
+ addressUrl: T,
12
+ addressUrlLabel: O,
13
+ address2: w,
14
+ address2Label: d,
15
+ address3: x,
16
+ address3Label: z,
17
+ cancelBtnLabel: L = "CANCEL",
18
+ cardTitle: _ = "Add New Viewing",
19
+ deleteBtnLabel: k = "DELETE",
20
+ editBtnLabel: N = "EDIT",
21
+ editState: o,
22
+ enableOnSite: i = "false",
23
+ enableOnSiteToggleLabel: V = "Enabled on website",
24
+ id: e,
25
+ invalidFields: n,
26
+ location: A,
27
+ locationLabel: I = "Location",
28
+ onCancel: p,
29
+ onEdit: f,
30
+ onDelete: m,
31
+ onSave: h,
32
+ previewDates: S,
33
+ previewDatesLabel: v,
34
+ previewHours1: j,
35
+ previewHours1Label: D,
36
+ previewHours2: R,
37
+ previewHours2Label: q,
38
+ previewLabel: B,
39
+ previewLabelValue: G,
40
+ previewOn: H,
41
+ previewToggleLabel: J,
42
+ saveBtnLabel: K = "SAVE DETAILS",
43
+ viewingLabel: M,
44
+ viewingLabelValue: P,
45
+ viewingDates: Q,
46
+ viewingDatesLabel: U,
47
+ viewingHours1: W,
48
+ viewingHours1Label: X,
49
+ viewingHours2: Y,
50
+ viewingHours2Label: Z
51
+ }) => {
52
+ const [F, tt] = r.useState(i === "true"), c = r.useRef(null);
53
+ r.useEffect(() => {
54
+ o && c.current && c.current.focus();
55
+ }, [o]), r.useEffect(() => {
56
+ var s, b;
57
+ n && c.current && ((b = (s = c.current.closest(".phillips-viewings-list-card")) == null ? void 0 : s.querySelector(".phillips-input--invalid input")) == null || b.focus());
58
+ }, [n]);
59
+ const et = () => {
60
+ typeof p == "function" && p();
61
+ }, nt = () => {
62
+ typeof f == "function" && f();
63
+ }, ot = (s) => {
64
+ typeof h == "function" && h(s);
65
+ };
66
+ return /* @__PURE__ */ a(
67
+ "section",
68
+ {
69
+ "data-testid": `viewings-list-card-${e}`,
70
+ id: e,
71
+ className: st(`${l}`, { [`${l}--edit-state`]: o }),
72
+ children: [
73
+ /* @__PURE__ */ t("h3", { className: `${l}__title`, children: _ }),
74
+ /* @__PURE__ */ t("input", { type: "hidden", name: "id", value: e }),
75
+ /* @__PURE__ */ t(
76
+ g,
77
+ {
78
+ ref: c,
79
+ id: `location-${e}`,
80
+ defaultValue: A,
81
+ labelText: I,
82
+ size: "sm",
83
+ name: "location",
84
+ invalid: n == null ? void 0 : n.location,
85
+ invalidText: n == null ? void 0 : n.location,
86
+ readOnly: !o
87
+ }
88
+ ),
89
+ o ? /* @__PURE__ */ t(
90
+ ct,
91
+ {
92
+ address1: C,
93
+ address1Label: E,
94
+ addressUrl: T,
95
+ addressUrlLabel: O,
96
+ address2: w,
97
+ address2Label: d,
98
+ address3: x,
99
+ address3Label: z,
100
+ id: e,
101
+ invalidFields: n,
102
+ previewDates: S,
103
+ previewDatesLabel: v,
104
+ previewHours1: j,
105
+ previewHours1Label: D,
106
+ previewHours2: R,
107
+ previewHours2Label: q,
108
+ previewLabel: B,
109
+ previewLabelValue: G,
110
+ previewOn: H,
111
+ previewToggleLabel: J,
112
+ viewingLabel: M,
113
+ viewingLabelValue: P,
114
+ viewingDates: Q,
115
+ viewingDatesLabel: U,
116
+ viewingHours1: W,
117
+ viewingHours1Label: X,
118
+ viewingHours2: Y,
119
+ viewingHours2Label: Z
120
+ }
121
+ ) : null,
122
+ /* @__PURE__ */ t(
123
+ g,
124
+ {
125
+ id: `enableOnSite-${e}`,
126
+ type: "toggle",
127
+ defaultChecked: i === "true",
128
+ labelText: V,
129
+ size: "md",
130
+ inline: !0,
131
+ value: "true",
132
+ name: "enableOnSite",
133
+ onChange: () => tt((s) => !s),
134
+ readOnly: !o
135
+ }
136
+ ),
137
+ F ? null : /* @__PURE__ */ t("input", { type: "hidden", name: "enableOnSite", value: "false" }),
138
+ /* @__PURE__ */ t("hr", {}),
139
+ /* @__PURE__ */ t("div", { className: `${l}__btn-group ${$}-button__group`, children: o ? /* @__PURE__ */ a(y, { children: [
140
+ /* @__PURE__ */ t(u, { id: `vlc-save-btn-${e}`, buttonType: "ghost", type: "submit", size: "sm", onClick: ot, children: K }),
141
+ /* @__PURE__ */ t(u, { id: `vlc-cancel-btn-${e}`, buttonType: "ghost", type: "button", size: "sm", onClick: et, children: L })
142
+ ] }) : /* @__PURE__ */ a(y, { children: [
143
+ /* @__PURE__ */ t(u, { id: `vlc-edit-btn-${e}`, buttonType: "ghost", type: "button", size: "sm", onClick: nt, children: N }),
144
+ /* @__PURE__ */ t(
145
+ u,
146
+ {
147
+ id: `vlc-delete-btn-${e}`,
148
+ buttonType: "ghost",
149
+ type: "button",
150
+ size: "sm",
151
+ onClick: () => typeof m == "function" && m(e),
152
+ children: k
153
+ }
154
+ )
155
+ ] }) })
156
+ ]
157
+ }
158
+ );
159
+ };
160
+ export {
161
+ ft as default
162
+ };
@@ -0,0 +1,131 @@
1
+ export interface ViewingsListCardFormProps {
2
+ /**
3
+ * Address1 of viewing
4
+ */
5
+ address1?: string;
6
+ /**
7
+ * Label for address1 input
8
+ */
9
+ address1Label?: string;
10
+ /**
11
+ * URL for a map link to address1
12
+ */
13
+ addressUrl?: string;
14
+ /**
15
+ * Label for address1 url input
16
+ */
17
+ addressUrlLabel?: string;
18
+ /**
19
+ * Address2 of viewing
20
+ */
21
+ address2?: string;
22
+ /**
23
+ * Label for address2 input
24
+ */
25
+ address2Label?: string;
26
+ /**
27
+ * Address3 of viewing
28
+ */
29
+ address3?: string;
30
+ /**
31
+ * Label for address3 input
32
+ */
33
+ address3Label?: string;
34
+ /**
35
+ * Unique id for ViewingListCard component
36
+ */
37
+ id: string;
38
+ /**
39
+ * Validation error message object
40
+ */
41
+ invalidFields?: {
42
+ address1?: string | undefined;
43
+ addressUrl?: string | undefined;
44
+ address2?: string | undefined;
45
+ address3?: string | undefined;
46
+ location?: string | undefined;
47
+ previewDates?: string | undefined;
48
+ previewHours1?: string | undefined;
49
+ previewHours2?: string | undefined;
50
+ previewLabelValue?: string | undefined;
51
+ previewOn?: string | undefined;
52
+ viewingLabelValue?: string | undefined;
53
+ viewingDates?: string | undefined;
54
+ viewingHours1?: string | undefined;
55
+ viewingHours2?: string | undefined;
56
+ };
57
+ /**
58
+ * Label for preview label input
59
+ */
60
+ previewLabel?: string;
61
+ /**
62
+ * Value for preview label input
63
+ */
64
+ previewLabelValue?: string;
65
+ /**
66
+ * How large should the button be?
67
+ */
68
+ previewDates?: string;
69
+ /**
70
+ * Label for preview date input
71
+ */
72
+ previewDatesLabel?: string;
73
+ /**
74
+ * Default value for preview hours input
75
+ */
76
+ previewHours1?: string;
77
+ /**
78
+ * Label for preview Hours1 input
79
+ */
80
+ previewHours1Label?: string;
81
+ /**
82
+ * Default value for preview hours 2 input
83
+ */
84
+ previewHours2?: string;
85
+ /**
86
+ * Label for preview Hours1 input
87
+ */
88
+ previewHours2Label?: string;
89
+ /**
90
+ * How large should the button be?
91
+ */
92
+ previewOn?: string;
93
+ /**
94
+ * Label for preview sectioin toggle
95
+ */
96
+ previewToggleLabel?: string;
97
+ /**
98
+ * Label for viewing label input
99
+ */
100
+ viewingLabel?: string;
101
+ /**
102
+ * Value for viewing label input
103
+ */
104
+ viewingLabelValue?: string;
105
+ /**
106
+ * How large should the button be?
107
+ */
108
+ viewingDates?: string;
109
+ /**
110
+ * Label for viewing date input
111
+ */
112
+ viewingDatesLabel?: string;
113
+ /**
114
+ * Default value for viewing hours input
115
+ */
116
+ viewingHours1?: string;
117
+ /**
118
+ * Label for viewing Hours1 input
119
+ */
120
+ viewingHours1Label?: string;
121
+ /**
122
+ * Default value for viewing hours 2 input
123
+ */
124
+ viewingHours2?: string;
125
+ /**
126
+ * Label for viewing Hours1 input
127
+ */
128
+ viewingHours2Label?: string;
129
+ }
130
+ declare const ViewingsListCardForm: ({ address1, address1Label, addressUrl, addressUrlLabel, address2, address2Label, address3, address3Label, id, invalidFields, previewDates, previewDatesLabel, previewHours1, previewHours1Label, previewHours2, previewHours2Label, previewLabel, previewLabelValue, previewOn, previewToggleLabel, viewingLabel, viewingLabelValue, viewingDates, viewingDatesLabel, viewingHours1, viewingHours1Label, viewingHours2, viewingHours2Label, }: ViewingsListCardFormProps) => import("react/jsx-runtime").JSX.Element;
131
+ export default ViewingsListCardForm;
@@ -0,0 +1,218 @@
1
+ import { jsxs as p, Fragment as Y, jsx as t } from "react/jsx-runtime";
2
+ import Z from "../../node_modules/classnames/index.js";
3
+ import * as x from "react";
4
+ import { px as q } from "../../utils/index.js";
5
+ import u from "../Input/Input.js";
6
+ const T = `${q}-viewings-list-card-form`, M = ({
7
+ address1: b,
8
+ address1Label: f = "Address ('432 Park Ave', ETC)",
9
+ addressUrl: g,
10
+ addressUrlLabel: H = "URL for map link ('http://www.website.com')",
11
+ address2: V,
12
+ address2Label: a = "City, State, Zip ('New York, NY 10019')",
13
+ address3: $,
14
+ address3Label: c = "Country (United States)",
15
+ id: r,
16
+ invalidFields: e,
17
+ previewDates: z,
18
+ previewDatesLabel: h = "Date(s)",
19
+ previewHours1: L,
20
+ previewHours1Label: D = "Hours1",
21
+ previewHours2: C,
22
+ previewHours2Label: O = "Hours2",
23
+ previewLabel: U = "Label ('Preview', 'Opening NIght', etc)",
24
+ previewLabelValue: y,
25
+ previewOn: m = "false",
26
+ previewToggleLabel: S = "Preview/ Reception",
27
+ viewingLabel: k = "Label ('Open to public')",
28
+ viewingLabelValue: N,
29
+ viewingDates: P,
30
+ viewingDatesLabel: _ = "Date(s)",
31
+ viewingHours1: R,
32
+ viewingHours1Label: j = "Hours1",
33
+ viewingHours2: A,
34
+ viewingHours2Label: E = "Hours2"
35
+ }) => {
36
+ const [w, o] = x.useState(m === "true");
37
+ return x.useEffect(() => {
38
+ o(m === "true");
39
+ }, [m]), /* @__PURE__ */ p(Y, { children: [
40
+ /* @__PURE__ */ t(
41
+ u,
42
+ {
43
+ id: `previewOn-${r}`,
44
+ type: "toggle",
45
+ labelText: S,
46
+ size: "md",
47
+ defaultChecked: w,
48
+ inline: !0,
49
+ invalid: e == null ? void 0 : e.previewOn,
50
+ invalidText: e == null ? void 0 : e.previewOn,
51
+ value: !0,
52
+ name: "previewOn",
53
+ onChange: () => o((I) => !I)
54
+ }
55
+ ),
56
+ w ? null : /* @__PURE__ */ t("input", { type: "hidden", name: "previewOn", value: "false" }),
57
+ /* @__PURE__ */ p(
58
+ "div",
59
+ {
60
+ className: Z(`${T}__preview-set`, { [`${T}__preview-set--hidden`]: !w }),
61
+ children: [
62
+ /* @__PURE__ */ t(
63
+ u,
64
+ {
65
+ id: `previewLabel-${r}`,
66
+ name: "previewLabelValue",
67
+ defaultValue: y,
68
+ labelText: U,
69
+ size: "sm",
70
+ invalid: e == null ? void 0 : e.previewLabelValue,
71
+ invalidText: e == null ? void 0 : e.previewLabelValue,
72
+ hidden: !w
73
+ }
74
+ ),
75
+ /* @__PURE__ */ t(
76
+ u,
77
+ {
78
+ id: `previewDates-${r}`,
79
+ name: "previewDates",
80
+ defaultValue: z,
81
+ labelText: h,
82
+ size: "sm",
83
+ invalid: e == null ? void 0 : e.previewDates,
84
+ invalidText: e == null ? void 0 : e.previewDates,
85
+ hidden: !w
86
+ }
87
+ ),
88
+ /* @__PURE__ */ t(
89
+ u,
90
+ {
91
+ id: `previewHours1-${r}`,
92
+ name: "previewHours1",
93
+ defaultValue: L,
94
+ labelText: D,
95
+ size: "sm",
96
+ invalid: e == null ? void 0 : e.previewHours1,
97
+ invalidText: e == null ? void 0 : e.previewHours1,
98
+ hidden: !w
99
+ }
100
+ ),
101
+ /* @__PURE__ */ t(
102
+ u,
103
+ {
104
+ id: `previewHours2-${r}`,
105
+ name: "previewHours2",
106
+ defaultValue: C,
107
+ labelText: O,
108
+ size: "sm",
109
+ invalid: e == null ? void 0 : e.previewHours2,
110
+ invalidText: e == null ? void 0 : e.previewHours2,
111
+ hidden: !w
112
+ }
113
+ )
114
+ ]
115
+ }
116
+ ),
117
+ /* @__PURE__ */ t(
118
+ u,
119
+ {
120
+ id: `viewingLabel-${r}`,
121
+ name: "viewingLabelValue",
122
+ defaultValue: N,
123
+ labelText: k,
124
+ size: "sm",
125
+ invalid: e == null ? void 0 : e.viewingLabelValue,
126
+ invalidText: e == null ? void 0 : e.viewingLabelValue
127
+ }
128
+ ),
129
+ /* @__PURE__ */ t(
130
+ u,
131
+ {
132
+ id: `viewingDates-${r}`,
133
+ name: "viewingDates",
134
+ defaultValue: P,
135
+ labelText: _,
136
+ size: "sm",
137
+ invalid: e == null ? void 0 : e.viewingDates,
138
+ invalidText: e == null ? void 0 : e.viewingDates
139
+ }
140
+ ),
141
+ /* @__PURE__ */ t(
142
+ u,
143
+ {
144
+ id: `viewingHours1-${r}`,
145
+ name: "viewingHours1",
146
+ defaultValue: R,
147
+ labelText: j,
148
+ size: "sm",
149
+ invalid: e == null ? void 0 : e.viewingHours1,
150
+ invalidText: e == null ? void 0 : e.viewingHours1
151
+ }
152
+ ),
153
+ /* @__PURE__ */ t(
154
+ u,
155
+ {
156
+ id: `viewingHours2-${r}`,
157
+ name: "viewingHours2",
158
+ defaultValue: A,
159
+ labelText: E,
160
+ size: "sm",
161
+ invalid: e == null ? void 0 : e.viewingHours2,
162
+ invalidText: e == null ? void 0 : e.viewingHours2
163
+ }
164
+ ),
165
+ /* @__PURE__ */ t(
166
+ u,
167
+ {
168
+ id: `address1-${r}`,
169
+ name: "address1",
170
+ defaultValue: b,
171
+ labelText: f,
172
+ size: "sm",
173
+ invalid: e == null ? void 0 : e.address1,
174
+ invalidText: e == null ? void 0 : e.address1
175
+ }
176
+ ),
177
+ /* @__PURE__ */ t(
178
+ u,
179
+ {
180
+ id: `address2-${r}`,
181
+ name: "address2",
182
+ defaultValue: V,
183
+ labelText: a,
184
+ size: "sm",
185
+ invalid: e == null ? void 0 : e.address2,
186
+ invalidText: e == null ? void 0 : e.address2
187
+ }
188
+ ),
189
+ /* @__PURE__ */ t(
190
+ u,
191
+ {
192
+ id: `address3-${r}`,
193
+ name: "address3",
194
+ defaultValue: $,
195
+ labelText: c,
196
+ size: "sm",
197
+ invalid: e == null ? void 0 : e.address3,
198
+ invalidText: e == null ? void 0 : e.address3
199
+ }
200
+ ),
201
+ /* @__PURE__ */ t(
202
+ u,
203
+ {
204
+ id: `addressUrl-${r}`,
205
+ name: "addressUrl",
206
+ defaultValue: g,
207
+ labelText: H,
208
+ size: "sm",
209
+ type: "url",
210
+ invalid: e == null ? void 0 : e.addressUrl,
211
+ invalidText: e == null ? void 0 : e.addressUrl
212
+ }
213
+ )
214
+ ] });
215
+ };
216
+ export {
217
+ M as default
218
+ };
package/dist/index.d.ts CHANGED
@@ -4,4 +4,6 @@ export { default as Header } from './components/Header/Header';
4
4
  export { default as HeroBanner } from './components/HeroBanner/HeroBanner';
5
5
  export { default as Input } from './components/Input/Input';
6
6
  export { default as Select } from './components/Select/Select';
7
+ export { default as ViewingsList } from './components/ViewingsList/ViewingsList';
8
+ export { default as StatefulViewingsList } from './components/ViewingsList/StatefulViewingsList';
7
9
  export { default as Page } from './pages/Page';
package/dist/index.js CHANGED
@@ -1,16 +1,20 @@
1
- import { default as a } from "./components/Button/Button.js";
2
- import { default as t } from "./components/ErrorBoundary/ErrorBoundary.js";
3
- import { default as u } from "./components/Header/Header.js";
4
- import { default as l } from "./components/HeroBanner/HeroBanner.js";
5
- import { default as m } from "./components/Input/Input.js";
1
+ import { default as r } from "./components/Button/Button.js";
2
+ import { default as o } from "./components/ErrorBoundary/ErrorBoundary.js";
3
+ import { default as s } from "./components/Header/Header.js";
4
+ import { default as d } from "./components/HeroBanner/HeroBanner.js";
5
+ import { default as p } from "./components/Input/Input.js";
6
6
  import { default as x } from "./components/Select/Select.js";
7
- import { default as B } from "./pages/Page.js";
7
+ import { default as i } from "./components/ViewingsList/ViewingsList.js";
8
+ import { default as B } from "./components/ViewingsList/StatefulViewingsList.js";
9
+ import { default as H } from "./pages/Page.js";
8
10
  export {
9
- a as Button,
10
- t as ErrorBoundary,
11
- u as Header,
12
- l as HeroBanner,
13
- m as Input,
14
- B as Page,
15
- x as Select
11
+ r as Button,
12
+ o as ErrorBoundary,
13
+ s as Header,
14
+ d as HeroBanner,
15
+ p as Input,
16
+ H as Page,
17
+ x as Select,
18
+ B as StatefulViewingsList,
19
+ i as ViewingsList
16
20
  };
@@ -1,4 +1,6 @@
1
- *, *::before, *::after {
1
+ *,
2
+ *::before,
3
+ *::after {
2
4
  box-sizing: border-box;
3
5
  }
4
6
 
@@ -11,19 +13,32 @@ body {
11
13
  -webkit-font-smoothing: antialiased;
12
14
  }
13
15
 
14
- img, picture, video, canvas, svg {
16
+ img,
17
+ picture,
18
+ video,
19
+ canvas,
20
+ svg {
15
21
  display: block;
16
22
  max-width: 100%;
17
23
  }
18
24
 
19
- input, button, textarea, select {
25
+ input,
26
+ button,
27
+ textarea,
28
+ select {
20
29
  font: inherit;
21
30
  }
22
31
 
23
- p, h1, h2, h3, h4, h5, h6 {
32
+ p,
33
+ h1,
34
+ h2,
35
+ h3,
36
+ h4,
37
+ h5,
38
+ h6 {
24
39
  overflow-wrap: break-word;
25
40
  }
26
41
 
27
42
  #root {
28
43
  isolation: isolate;
29
- }
44
+ }