@phillips/seldon 1.26.0 → 1.26.2
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 -2
- package/dist/components/Button/Button.js +33 -32
- package/dist/components/Grid/Grid.d.ts +2 -2
- package/dist/components/Grid/Grid.js +8 -16
- package/dist/components/GridItem/GridItem.d.ts +1 -1
- package/dist/components/GridItem/GridItem.js +21 -22
- package/dist/components/HeroBanner/HeroBanner.d.ts +3 -2
- package/dist/components/HeroBanner/HeroBanner.js +36 -23
- package/dist/components/IconButton/IconButton.js +18 -14
- package/dist/components/Link/Link.d.ts +2 -2
- package/dist/components/Link/Link.js +21 -23
- package/dist/components/Link/utils.d.ts +1 -1
- package/dist/components/Link/utils.js +6 -6
- package/dist/components/LinkBlock/LinkBlock.d.ts +1 -1
- package/dist/components/LinkBlock/LinkBlock.js +10 -10
- package/dist/components/LinkList/LinkList.d.ts +1 -1
- package/dist/components/LinkList/LinkList.js +11 -10
- package/dist/components/Modal/Modal.js +43 -36
- package/dist/components/Row/Row.d.ts +1 -1
- package/dist/components/Row/Row.js +21 -23
- package/dist/components/Select/Select.js +28 -27
- package/dist/components/Social/Social.d.ts +2 -2
- package/dist/components/Social/Social.js +11 -8
- package/dist/components/SplitPanel/SplitPanel.d.ts +1 -1
- package/dist/components/SplitPanel/SplitPanel.js +22 -21
- package/dist/components/Subscribe/Subscribe.d.ts +1 -1
- package/dist/components/Subscribe/Subscribe.js +41 -52
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.js +12 -20
- package/dist/components/ViewingsList/ViewingsList.d.ts +2 -2
- package/dist/components/ViewingsList/ViewingsList.js +43 -45
- package/dist/components/ViewingsList/ViewingsListCard.d.ts +2 -2
- package/dist/components/ViewingsList/ViewingsListCard.js +51 -51
- package/dist/index.d.ts +2 -2
- package/dist/index.js +61 -60
- package/dist/node_modules/change-case/dist/index.js +64 -0
- package/dist/scss/components/Grid/_grid.scss +2 -4
- package/dist/scss/styles.scss +3 -5
- package/dist/utils/index.d.ts +9 -10
- package/dist/utils/index.js +38 -29
- package/package.json +10 -7
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { px as t, useNormalizedInputProps as
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as P, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as R from "react";
|
|
3
|
+
import n from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { px as t, useNormalizedInputProps as S } from "../../utils/index.js";
|
|
5
|
+
const z = R.forwardRef(
|
|
6
6
|
({
|
|
7
7
|
children: r,
|
|
8
|
-
className:
|
|
9
|
-
defaultValue:
|
|
10
|
-
disabled:
|
|
8
|
+
className: a,
|
|
9
|
+
defaultValue: d,
|
|
10
|
+
disabled: o,
|
|
11
11
|
hideLabel: u,
|
|
12
|
-
id:
|
|
12
|
+
id: i,
|
|
13
13
|
inline: m,
|
|
14
14
|
invalid: $,
|
|
15
15
|
invalidText: c,
|
|
@@ -21,38 +21,39 @@ const S = y.forwardRef(
|
|
|
21
21
|
value: h,
|
|
22
22
|
warn: v,
|
|
23
23
|
warnText: x,
|
|
24
|
-
...
|
|
25
|
-
},
|
|
26
|
-
const s = "select",
|
|
24
|
+
...N
|
|
25
|
+
}, j) => {
|
|
26
|
+
const s = "select", e = S({ disabled: o, id: i, invalid: $, invalidText: c, readOnly: p, type: s, warn: v, warnText: x }), y = n(`${t}-${s}-input`, `${t}-input`, `${t}-input--${w}`, {
|
|
27
27
|
[`${t}-input--inline`]: m,
|
|
28
28
|
[`${t}-input--readonly`]: p,
|
|
29
|
-
[`${t}-input--disabled`]:
|
|
30
|
-
[`${t}-input--invalid`]:
|
|
31
|
-
[`${t}-input--warn`]:
|
|
32
|
-
[`${
|
|
29
|
+
[`${t}-input--disabled`]: e.disabled,
|
|
30
|
+
[`${t}-input--invalid`]: e.invalid,
|
|
31
|
+
[`${t}-input--warn`]: e.warn,
|
|
32
|
+
[`${a}__wrapper`]: a
|
|
33
33
|
});
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */ l("label", { htmlFor:
|
|
34
|
+
return /* @__PURE__ */ P("div", { className: y, children: [
|
|
35
|
+
/* @__PURE__ */ l("label", { htmlFor: i, className: n(`${t}-input__label`, { [`${t}-input__label--hidden`]: u }), children: _ }),
|
|
36
36
|
/* @__PURE__ */ l(
|
|
37
37
|
"select",
|
|
38
38
|
{
|
|
39
|
-
className:
|
|
40
|
-
"data-testid":
|
|
41
|
-
defaultValue:
|
|
42
|
-
disabled:
|
|
43
|
-
id:
|
|
39
|
+
className: n(`${t}-input__input`, { className: a }),
|
|
40
|
+
"data-testid": i,
|
|
41
|
+
defaultValue: d,
|
|
42
|
+
disabled: e.disabled,
|
|
43
|
+
id: i,
|
|
44
44
|
onChange: b,
|
|
45
45
|
onClick: f,
|
|
46
|
-
ref:
|
|
46
|
+
ref: j,
|
|
47
47
|
value: h,
|
|
48
|
-
...
|
|
48
|
+
...N,
|
|
49
49
|
children: r
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
|
|
52
|
+
e.validation
|
|
53
53
|
] });
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
|
+
z.displayName = "Select";
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
z as default
|
|
58
59
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface SocialProps extends React.HTMLAttributes<
|
|
1
|
+
export interface SocialProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
2
|
/**
|
|
3
3
|
* Title text for the social section
|
|
4
4
|
*/
|
|
@@ -13,5 +13,5 @@ export interface SocialProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
13
13
|
*
|
|
14
14
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-social--overview)
|
|
15
15
|
*/
|
|
16
|
-
declare const Social: ({ className, children,
|
|
16
|
+
declare const Social: ({ className, children, titleText, ...props }: SocialProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default Social;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
l
|
|
7
|
-
|
|
1
|
+
import { jsxs as r, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import i from "../../node_modules/classnames/index.js";
|
|
3
|
+
import { getCommonProps as n } from "../../utils/index.js";
|
|
4
|
+
const h = ({ className: a, children: m, titleText: e = "Follow on Social", ...o }) => {
|
|
5
|
+
const { className: s, ...l } = n(o, "Social");
|
|
6
|
+
return /* @__PURE__ */ r("div", { ...l, className: i(s, a), ...o, children: [
|
|
7
|
+
/* @__PURE__ */ c("h3", { className: `${s}__header`, children: e }),
|
|
8
|
+
m
|
|
9
|
+
] });
|
|
10
|
+
};
|
|
8
11
|
export {
|
|
9
|
-
|
|
12
|
+
h as default
|
|
10
13
|
};
|
|
@@ -15,5 +15,5 @@ export interface SplitPanelProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
15
15
|
*
|
|
16
16
|
* [Figma Link](https://www.figma.com/file/Hp2FyltbOmRxTuw9kSwBAd/EPIC-About-Us?type=design&node-id=635-34713&mode=design&t=wKZW1vKP8WePUjrH-0)
|
|
17
17
|
*/
|
|
18
|
-
declare const SplitPanel: ({ children, className, element: Element, hasBorder,
|
|
18
|
+
declare const SplitPanel: ({ children, className, element: Element, hasBorder, ...props }: SplitPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default SplitPanel;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
children:
|
|
6
|
-
className:
|
|
7
|
-
element:
|
|
8
|
-
hasBorder:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
);
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import n from "../../node_modules/classnames/index.js";
|
|
3
|
+
import { getCommonProps as c } from "../../utils/index.js";
|
|
4
|
+
const P = ({
|
|
5
|
+
children: o,
|
|
6
|
+
className: m,
|
|
7
|
+
element: t = "section",
|
|
8
|
+
hasBorder: a = !0,
|
|
9
|
+
...e
|
|
10
|
+
}) => {
|
|
11
|
+
const { className: s, ...r } = c(e, "SplitPanel");
|
|
12
|
+
return /* @__PURE__ */ l(
|
|
13
|
+
t,
|
|
14
|
+
{
|
|
15
|
+
...r,
|
|
16
|
+
className: n(s, m, { [`${s}--borderless`]: !a }),
|
|
17
|
+
...e,
|
|
18
|
+
children: o
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
P as default
|
|
23
24
|
};
|
|
@@ -55,5 +55,5 @@ export interface SubscribeProps extends React.HTMLAttributes<HTMLFormElement> {
|
|
|
55
55
|
*
|
|
56
56
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-subscribe--overview)
|
|
57
57
|
*/
|
|
58
|
-
declare const Subscribe: ({ blurb, buttonText, buttonProps, className, element: Element,
|
|
58
|
+
declare const Subscribe: ({ blurb, buttonText, buttonProps, className, element: Element, inputLabelText, inputPlaceholder, title, loadingText, invalidText, successText, subscriptionState, ...props }: SubscribeProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
59
|
export default Subscribe;
|
|
@@ -1,60 +1,49 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as $, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import y from "../../node_modules/classnames/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { getCommonProps as C } from "../../utils/index.js";
|
|
4
4
|
import v from "../Input/Input.js";
|
|
5
5
|
import w from "../Button/Button.js";
|
|
6
|
-
import { SubscriptionState as
|
|
6
|
+
import { SubscriptionState as S } from "./types.js";
|
|
7
7
|
const D = ({
|
|
8
|
-
blurb:
|
|
9
|
-
buttonText:
|
|
10
|
-
buttonProps:
|
|
11
|
-
className:
|
|
12
|
-
element:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...f
|
|
8
|
+
blurb: t,
|
|
9
|
+
buttonText: i = "Sign Up",
|
|
10
|
+
buttonProps: m,
|
|
11
|
+
className: n,
|
|
12
|
+
element: r = "form",
|
|
13
|
+
inputLabelText: c = "Email*",
|
|
14
|
+
inputPlaceholder: d = "example@email.com",
|
|
15
|
+
title: u = "Subscribe to Newsletter",
|
|
16
|
+
loadingText: p = "Loading...",
|
|
17
|
+
invalidText: a = "",
|
|
18
|
+
successText: f,
|
|
19
|
+
subscriptionState: e = S.Default,
|
|
20
|
+
...l
|
|
22
21
|
}) => {
|
|
23
|
-
const
|
|
24
|
-
invalid:
|
|
25
|
-
success:
|
|
26
|
-
loading:
|
|
27
|
-
}[e] : "",
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
invalidText: n,
|
|
49
|
-
warn: g,
|
|
50
|
-
warnText: $,
|
|
51
|
-
required: !0
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
/* @__PURE__ */ t(w, { className: `${s}-subscribe__button ${r}`, buttonType: "secondary", type: "submit", ...l, children: a })
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
);
|
|
22
|
+
const { className: s, ...b } = C(l, "Subscribe"), _ = e === "invalid", x = e === "loading", N = e === "success", g = e !== "default" ? {
|
|
23
|
+
invalid: a,
|
|
24
|
+
success: f,
|
|
25
|
+
loading: p
|
|
26
|
+
}[e] : "", h = N || x;
|
|
27
|
+
return /* @__PURE__ */ $(r, { ...b, className: y(s, n), noValidate: !0, ...l, children: [
|
|
28
|
+
/* @__PURE__ */ o("h3", { className: `${s}__title`, children: u }),
|
|
29
|
+
t ? /* @__PURE__ */ o("p", { className: `${s}__blurb`, children: t }) : null,
|
|
30
|
+
/* @__PURE__ */ o(
|
|
31
|
+
v,
|
|
32
|
+
{
|
|
33
|
+
className: `${s}__input`,
|
|
34
|
+
type: "email",
|
|
35
|
+
name: "email",
|
|
36
|
+
placeholder: d,
|
|
37
|
+
labelText: c,
|
|
38
|
+
invalid: _,
|
|
39
|
+
invalidText: a,
|
|
40
|
+
warn: h,
|
|
41
|
+
warnText: g,
|
|
42
|
+
required: !0
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ o(w, { className: `${s}__button ${n}`, buttonType: "secondary", type: "submit", ...m, children: i })
|
|
46
|
+
] });
|
|
58
47
|
};
|
|
59
48
|
export {
|
|
60
49
|
D as default
|
|
@@ -19,5 +19,5 @@ export interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
19
19
|
*
|
|
20
20
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-text--overview)
|
|
21
21
|
*/
|
|
22
|
-
declare const Text: ({ children,
|
|
22
|
+
declare const Text: ({ children, className, element: CustomElement, variant, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default Text;
|
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import f from "
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
id: t,
|
|
9
|
-
element: s,
|
|
10
|
-
variant: e = c.body2,
|
|
11
|
-
className: o,
|
|
12
|
-
...a
|
|
13
|
-
}) => {
|
|
14
|
-
const r = t ? `text-${t}` : "text", n = `${p}-text`, x = s || d(e);
|
|
2
|
+
import { getCommonProps as c } from "../../utils/index.js";
|
|
3
|
+
import { TextVariants as f } from "./types.js";
|
|
4
|
+
import { determineDefaultTextElement as i, determineTextClassName as p } from "./utils.js";
|
|
5
|
+
import x from "../../node_modules/classnames/index.js";
|
|
6
|
+
const b = ({ children: t, className: o, element: s, variant: e = f.body2, ...m }) => {
|
|
7
|
+
const r = s || i(e), { className: a, ...n } = c(m, "Text");
|
|
15
8
|
return /* @__PURE__ */ l(
|
|
16
|
-
|
|
9
|
+
r,
|
|
17
10
|
{
|
|
18
|
-
...
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
children: m
|
|
11
|
+
...n,
|
|
12
|
+
className: x(a, o, p(e)),
|
|
13
|
+
...m,
|
|
14
|
+
children: t
|
|
23
15
|
}
|
|
24
16
|
);
|
|
25
17
|
};
|
|
26
18
|
export {
|
|
27
|
-
|
|
19
|
+
b as default
|
|
28
20
|
};
|
|
@@ -26,7 +26,7 @@ export interface I18nObject {
|
|
|
26
26
|
viewingHours1Label?: string;
|
|
27
27
|
viewingHours2Label?: string;
|
|
28
28
|
}
|
|
29
|
-
export interface ViewingsListProps {
|
|
29
|
+
export interface ViewingsListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
30
30
|
/**
|
|
31
31
|
* String for Viewing cards that gets nuber appended. EX: 'Title {x}`
|
|
32
32
|
*/
|
|
@@ -60,5 +60,5 @@ export interface ViewingsListProps {
|
|
|
60
60
|
*/
|
|
61
61
|
onSave: (e: React.MouseEvent<HTMLElement>) => boolean;
|
|
62
62
|
}
|
|
63
|
-
declare const ViewingsList: ({ cardTitle,
|
|
63
|
+
declare const ViewingsList: ({ cardTitle, className, i18n, onAdd, onDelete, onSave, title, viewings, ...props }: ViewingsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
64
|
export default ViewingsList;
|
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import M from "
|
|
3
|
+
import { createElement as L } from "react";
|
|
4
|
+
import S from "../../node_modules/classnames/index.js";
|
|
5
|
+
import { getCommonProps as M } from "../../utils/index.js";
|
|
6
|
+
import P from "./ViewingsListCard.js";
|
|
6
7
|
import R from "../Button/Button.js";
|
|
7
|
-
const
|
|
8
|
-
cardTitle:
|
|
9
|
-
|
|
10
|
-
i18n:
|
|
11
|
-
onAdd:
|
|
8
|
+
const $ = () => Math.floor(Math.random() * 100) + Date.now(), G = ({
|
|
9
|
+
cardTitle: C = "Viewing Details",
|
|
10
|
+
className: E,
|
|
11
|
+
i18n: f = {},
|
|
12
|
+
onAdd: r,
|
|
12
13
|
onDelete: e,
|
|
13
|
-
onSave:
|
|
14
|
-
title:
|
|
15
|
-
viewings:
|
|
14
|
+
onSave: N,
|
|
15
|
+
title: O,
|
|
16
|
+
viewings: c,
|
|
17
|
+
...i
|
|
16
18
|
}) => {
|
|
17
|
-
const [a, h] = d.useState(
|
|
19
|
+
const [a, h] = d.useState(c), [m, n] = d.useState(""), [s, u] = d.useState(), { className: p, ...D } = M(i, "ViewingsList");
|
|
18
20
|
d.useEffect(() => {
|
|
19
|
-
h(
|
|
20
|
-
}, [
|
|
21
|
-
const { addViewingsBtnLabel:
|
|
22
|
-
const t = `${
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
typeof s == "string" ? typeof e == "function" && e(s) :
|
|
21
|
+
h(c);
|
|
22
|
+
}, [c]);
|
|
23
|
+
const { addViewingsBtnLabel: y = "ADD VIEWINGS" } = f, b = () => {
|
|
24
|
+
const t = `${$()}${a ? "-" + a.length : ""}`;
|
|
25
|
+
n(t), u(t), r && r(t);
|
|
26
|
+
}, V = (t) => {
|
|
27
|
+
n(""), typeof e == "function" && e(t);
|
|
28
|
+
}, k = (t) => {
|
|
29
|
+
n(t), u(a == null ? void 0 : a.find((o) => o.id === t));
|
|
30
|
+
}, x = (t) => {
|
|
31
|
+
N(t) && n("");
|
|
32
|
+
}, B = () => {
|
|
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("");
|
|
32
34
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`${t.id}`
|
|
48
|
-
)),
|
|
49
|
-
/* @__PURE__ */ l(R, { id: `viewings-list-add-btn-${f || S()}`, size: "sm", onClick: E, children: C })
|
|
50
|
-
] }, c);
|
|
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
|
+
P,
|
|
37
|
+
{
|
|
38
|
+
...t,
|
|
39
|
+
...f,
|
|
40
|
+
cardTitle: t.location ? `${C} ${o + 1}` : void 0,
|
|
41
|
+
isEditState: m === t.id,
|
|
42
|
+
onCancel: B,
|
|
43
|
+
onDelete: V,
|
|
44
|
+
onEdit: () => k(t.id),
|
|
45
|
+
onSave: x
|
|
46
|
+
},
|
|
47
|
+
`${t.id}`
|
|
48
|
+
)), /* @__PURE__ */ l(R, { id: `viewings-list-add-btn-${i.id || $()}`, size: "sm", onClick: b, children: y }));
|
|
51
49
|
};
|
|
52
50
|
export {
|
|
53
|
-
|
|
51
|
+
G as default
|
|
54
52
|
};
|
|
@@ -20,7 +20,7 @@ export interface ViewingsListCardProps extends ViewingsListCardFormProps, Record
|
|
|
20
20
|
/**
|
|
21
21
|
* Location of viewing
|
|
22
22
|
*/
|
|
23
|
-
|
|
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;
|