@phillips/seldon 1.58.0 → 1.58.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.
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { getCommonProps as d, noOp as p } from "../../utils/index.js";
|
|
3
|
-
import
|
|
4
|
-
import { Root as f, Portal as C, Overlay as h, Content as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import o from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { Root as f, Portal as C, Overlay as h, Content as u, Title as v, Description as N, Close as w } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
5
|
+
import y from "../../assets/close.svg.js";
|
|
6
|
+
import _ from "../IconButton/IconButton.js";
|
|
7
|
+
import { ButtonVariants as g } from "../Button/types.js";
|
|
8
|
+
const B = ({ className: i, isOpen: l = !1, onClose: a = p, children: m, ...t }) => {
|
|
9
|
+
const { className: e, ...n } = d(t, "Drawer");
|
|
10
|
+
return /* @__PURE__ */ r(
|
|
10
11
|
f,
|
|
11
12
|
{
|
|
12
|
-
open:
|
|
13
|
+
open: l,
|
|
13
14
|
onOpenChange: (c) => {
|
|
14
|
-
c ||
|
|
15
|
+
c || a();
|
|
15
16
|
},
|
|
16
|
-
children: /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ s(C, { children: [
|
|
18
|
+
/* @__PURE__ */ r(
|
|
18
19
|
h,
|
|
19
20
|
{
|
|
20
|
-
onClick:
|
|
21
|
-
className:
|
|
21
|
+
onClick: a,
|
|
22
|
+
className: o(`${e}__overlay`),
|
|
22
23
|
"data-testid": "drawer-overlay"
|
|
23
24
|
}
|
|
24
25
|
),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
26
|
+
/* @__PURE__ */ s(u, { className: o(e, i), id: t.id, ...n, children: [
|
|
27
|
+
/* @__PURE__ */ r(v, {}),
|
|
28
|
+
/* @__PURE__ */ r(N, {}),
|
|
29
|
+
/* @__PURE__ */ r(w, { asChild: !0, children: /* @__PURE__ */ r(
|
|
30
|
+
_,
|
|
30
31
|
{
|
|
31
|
-
onClick:
|
|
32
|
-
className:
|
|
32
|
+
onClick: a,
|
|
33
|
+
className: o(`${e}__close`),
|
|
33
34
|
"aria-label": "Close",
|
|
34
35
|
"data-testid": "drawer-close",
|
|
35
|
-
|
|
36
|
+
variant: g.tertiary,
|
|
37
|
+
children: /* @__PURE__ */ r(y, {})
|
|
36
38
|
}
|
|
37
39
|
) }),
|
|
38
40
|
m
|
|
@@ -42,5 +44,5 @@ const j = ({ className: l, isOpen: i = !1, onClose: r = p, children: m, ...s })
|
|
|
42
44
|
);
|
|
43
45
|
};
|
|
44
46
|
export {
|
|
45
|
-
|
|
47
|
+
B as default
|
|
46
48
|
};
|
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import t from "../../node_modules/classnames/index.js";
|
|
3
3
|
import { getCommonProps as f, noOp as u } from "../../utils/index.js";
|
|
4
4
|
import C from "../../assets/close.svg.js";
|
|
5
5
|
import m from "../../node_modules/react-modal/lib/index.js";
|
|
6
6
|
import N from "../IconButton/IconButton.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import { ButtonVariants as v } from "../Button/types.js";
|
|
8
|
+
const j = ({
|
|
9
|
+
children: l,
|
|
10
|
+
className: i,
|
|
10
11
|
isOpen: o = !1,
|
|
11
|
-
onClose:
|
|
12
|
-
appElementSelector:
|
|
13
|
-
...
|
|
12
|
+
onClose: r = u,
|
|
13
|
+
appElementSelector: n = "main",
|
|
14
|
+
...e
|
|
14
15
|
}) => {
|
|
15
16
|
if (!o)
|
|
16
17
|
return null;
|
|
17
|
-
const { className: a, "data-testid": c, ...d } = f(
|
|
18
|
-
return m.setAppElement(
|
|
18
|
+
const { className: a, "data-testid": c, ...d } = f(e, "Modal");
|
|
19
|
+
return m.setAppElement(n), /* @__PURE__ */ p(
|
|
19
20
|
m,
|
|
20
21
|
{
|
|
21
22
|
...d,
|
|
22
23
|
isOpen: o,
|
|
23
|
-
onRequestClose:
|
|
24
|
-
className:
|
|
25
|
-
overlayClassName:
|
|
24
|
+
onRequestClose: r,
|
|
25
|
+
className: t(a, i),
|
|
26
|
+
overlayClassName: t(`${a}__overlay`),
|
|
26
27
|
ariaHideApp: o,
|
|
27
28
|
testId: c,
|
|
28
|
-
...
|
|
29
|
+
...e,
|
|
29
30
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ s(
|
|
31
32
|
N,
|
|
32
33
|
{
|
|
33
34
|
id: "modal-button",
|
|
34
|
-
onClick:
|
|
35
|
+
onClick: r,
|
|
35
36
|
"aria-label": "Close Modal",
|
|
36
|
-
className:
|
|
37
|
-
|
|
37
|
+
className: t(`${a}__close`),
|
|
38
|
+
variant: v.tertiary,
|
|
39
|
+
children: /* @__PURE__ */ s(C, {})
|
|
38
40
|
}
|
|
39
41
|
),
|
|
40
|
-
|
|
42
|
+
l
|
|
41
43
|
]
|
|
42
44
|
}
|
|
43
45
|
);
|
|
44
46
|
};
|
|
45
47
|
export {
|
|
46
|
-
|
|
48
|
+
j as default
|
|
47
49
|
};
|
|
@@ -1,62 +1,65 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import s from "../../node_modules/classnames/index.js";
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
3
|
+
import { getCommonProps as P, px as i } from "../../utils/index.js";
|
|
4
|
+
import C from "../Select/Select.js";
|
|
5
5
|
import d from "../../assets/chevronRight.svg.js";
|
|
6
6
|
import u from "../IconButton/IconButton.js";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { ButtonVariants as f } from "../Button/types.js";
|
|
8
|
+
const B = ({
|
|
9
|
+
className: g,
|
|
9
10
|
onChange: n,
|
|
10
|
-
variant:
|
|
11
|
+
variant: p = "inline",
|
|
11
12
|
options: t = [],
|
|
12
|
-
value:
|
|
13
|
-
isDisabled:
|
|
13
|
+
value: e,
|
|
14
|
+
isDisabled: o,
|
|
14
15
|
previousLabel: $ = "Previous",
|
|
15
16
|
nextLabel: b = "Next",
|
|
16
|
-
selectLabel:
|
|
17
|
-
...
|
|
17
|
+
selectLabel: h = "Select",
|
|
18
|
+
...l
|
|
18
19
|
}) => {
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
const x = "pagination", { className: c, ...N } = P(l, "Pagination"), { id: m } = l;
|
|
21
|
+
return /* @__PURE__ */ _(
|
|
21
22
|
"div",
|
|
22
23
|
{
|
|
23
|
-
className: s(`${i}-${
|
|
24
|
-
...
|
|
25
|
-
...
|
|
24
|
+
className: s(`${i}-${x}`, { [`${c}__wrapper`]: c }, g),
|
|
25
|
+
...N,
|
|
26
|
+
...l,
|
|
26
27
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ r(
|
|
28
29
|
u,
|
|
29
30
|
{
|
|
30
31
|
className: s(`${i}__pagination-button`, `${i}-left-arrow`),
|
|
31
|
-
onClick: () => n(t.at(t.findIndex((a) => a ===
|
|
32
|
+
onClick: () => n(t.at(t.findIndex((a) => a === e) - 1) || ""),
|
|
32
33
|
"data-testid": `${m}-previous-button`,
|
|
33
|
-
isDisabled:
|
|
34
|
+
isDisabled: o,
|
|
34
35
|
"aria-label": $,
|
|
35
|
-
|
|
36
|
+
variant: f.tertiary,
|
|
37
|
+
children: /* @__PURE__ */ r(d, {})
|
|
36
38
|
}
|
|
37
39
|
),
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
40
|
+
/* @__PURE__ */ r(
|
|
41
|
+
C,
|
|
40
42
|
{
|
|
41
|
-
className:
|
|
42
|
-
"aria-label":
|
|
43
|
-
value:
|
|
43
|
+
className: p === "inline" && `${i}--inline-pagination`,
|
|
44
|
+
"aria-label": h,
|
|
45
|
+
value: e,
|
|
44
46
|
onChange: (a) => n(a == null ? void 0 : a.currentTarget.value, a),
|
|
45
47
|
"data-testid": `${m}-select-button`,
|
|
46
48
|
hideLabel: !0,
|
|
47
|
-
disabled:
|
|
48
|
-
children: t.map((a) => /* @__PURE__ */
|
|
49
|
+
disabled: o,
|
|
50
|
+
children: t.map((a) => /* @__PURE__ */ r("option", { value: a, children: a }, a))
|
|
49
51
|
}
|
|
50
52
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ r(
|
|
52
54
|
u,
|
|
53
55
|
{
|
|
54
56
|
className: `${i}__pagination-button`,
|
|
55
|
-
onClick: () => n(t[(t.findIndex((a) => a ===
|
|
57
|
+
onClick: () => n(t[(t.findIndex((a) => a === e) + 1) % t.length] || ""),
|
|
56
58
|
"data-testid": `${m}-next-button`,
|
|
57
|
-
isDisabled:
|
|
59
|
+
isDisabled: o,
|
|
58
60
|
"aria-label": b,
|
|
59
|
-
|
|
61
|
+
variant: f.tertiary,
|
|
62
|
+
children: /* @__PURE__ */ r(d, {})
|
|
60
63
|
}
|
|
61
64
|
)
|
|
62
65
|
]
|
|
@@ -64,5 +67,5 @@ const y = ({
|
|
|
64
67
|
);
|
|
65
68
|
};
|
|
66
69
|
export {
|
|
67
|
-
|
|
70
|
+
B as default
|
|
68
71
|
};
|
|
@@ -5,21 +5,21 @@ import p from "../../components/Button/Button.js";
|
|
|
5
5
|
import { ButtonVariants as d } from "../../components/Button/types.js";
|
|
6
6
|
import { TextVariants as u } from "../../components/Text/types.js";
|
|
7
7
|
import N from "../../components/Text/Text.js";
|
|
8
|
-
const
|
|
9
|
-
className:
|
|
10
|
-
children:
|
|
11
|
-
titleText:
|
|
8
|
+
const T = ({
|
|
9
|
+
className: a,
|
|
10
|
+
children: e,
|
|
11
|
+
titleText: s = "Never Miss A Moment",
|
|
12
12
|
buttonText: m = "Subscribe To Our Newsletter",
|
|
13
13
|
onSubscribeClick: i,
|
|
14
|
-
...
|
|
14
|
+
...o
|
|
15
15
|
}) => {
|
|
16
|
-
const { className:
|
|
17
|
-
return /* @__PURE__ */ c("div", { ...n, className: l(
|
|
18
|
-
/* @__PURE__ */ t(N, { variant: u.heading4, className: `${
|
|
19
|
-
/* @__PURE__ */ t(p, { onClick: i, variant: d.
|
|
20
|
-
|
|
16
|
+
const { className: r, ...n } = f(o, "Social");
|
|
17
|
+
return /* @__PURE__ */ c("div", { ...n, className: l(r, a), ...o, children: [
|
|
18
|
+
/* @__PURE__ */ t(N, { variant: u.heading4, className: `${r}__header`, children: s }),
|
|
19
|
+
/* @__PURE__ */ t(p, { onClick: i, variant: d.tertiary, className: `${r}__button`, children: m }),
|
|
20
|
+
e
|
|
21
21
|
] });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
T as default
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.58.
|
|
3
|
+
"version": "1.58.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"classnames": "^2.5.1",
|
|
51
51
|
"dompurify": "^3.1.6",
|
|
52
52
|
"flatpickr": "^4.6.13",
|
|
53
|
-
"fresnel": "^1.1.1",
|
|
54
53
|
"html-react-parser": "^5.1.12",
|
|
55
54
|
"react-modal": "^3.16.1",
|
|
56
55
|
"react-transition-group": "^4.4.5",
|