@phillips/seldon 1.181.0 → 1.182.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/AddToCalendar/AddToCalendar.js +1 -1
- package/dist/components/Article/Article.js +2 -2
- package/dist/components/ComboBox/ComboBox.js +115 -116
- package/dist/components/ComposedModal/ComposedModal.js +2 -2
- package/dist/components/ExitGateCard/ExitGateCard.js +2 -2
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +15 -15
- package/dist/components/Filter/FilterHeader.js +1 -1
- package/dist/components/Link/types.d.ts +1 -2
- package/dist/components/Link/types.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Text/types.d.ts +0 -17
- package/dist/components/Text/types.js +3 -3
- package/dist/components/Text/utils.js +6 -6
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +21 -21
- package/dist/patterns/BidSnapshot/BidMessage.js +6 -6
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +1 -1
- package/dist/patterns/FiltersInline/FilterButton.js +8 -8
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +41 -41
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +38 -38
- package/dist/patterns/SaleCard/SaleCard.js +25 -25
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +45 -45
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +7 -7
- package/dist/patterns/UserManagement/UserManagement.js +10 -10
- package/dist/patterns/ViewingDetails/ViewingDetails.js +12 -12
- package/dist/scss/_type.scss +63 -142
- package/dist/scss/_vars.scss +45 -74
- package/dist/scss/_vars.scss.js +47 -76
- package/dist/scss/components/Accordion/_accordion.scss +4 -4
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +2 -2
- package/dist/scss/components/Article/_article.scss +0 -5
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -1
- package/dist/scss/components/Button/_button.scss +1 -1
- package/dist/scss/components/ComboBox/_combobox.scss +4 -4
- package/dist/scss/components/Countdown/_countdown.scss +2 -2
- package/dist/scss/components/Countdown/_duration.scss +1 -1
- package/dist/scss/components/Detail/_detail.scss +1 -1
- package/dist/scss/components/Drawer/_drawerHeader.scss +2 -2
- package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
- package/dist/scss/components/Filter/_filter.scss +3 -3
- package/dist/scss/components/Icon/_icon.stories.scss +1 -1
- package/dist/scss/components/Input/_input.scss +3 -3
- package/dist/scss/components/Link/_link.scss +4 -4
- package/dist/scss/components/Navigation/_navigation.scss +4 -1
- package/dist/scss/components/Pagination/_pagination.scss +1 -1
- package/dist/scss/components/Search/_search.scss +5 -10
- package/dist/scss/components/Tabs/_tabs.scss +1 -1
- package/dist/scss/components/Tags/_tags.scss +1 -1
- package/dist/scss/components/TextArea/_textArea.scss +2 -2
- package/dist/scss/components/TextSymbol/_textSymbol.scss +2 -2
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +1 -1
- package/dist/scss/patterns/Social/_social.scss +1 -1
- package/dist/scss/patterns/Subscribe/_subscribe.scss +3 -3
- package/dist/scss/site-furniture/Footer/_footer.scss +2 -2
- package/dist/scss/site-furniture/Header/_header.scss +5 -1
- package/dist/site-furniture/Footer/Footer.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as n, jsx as r, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b } from "react";
|
|
3
3
|
import { getCommonProps as P } from "../../utils/index.js";
|
|
4
4
|
import k from "../../node_modules/classnames/index.js";
|
|
5
|
-
import
|
|
5
|
+
import l from "../../components/Text/Text.js";
|
|
6
6
|
import { TextVariants as c } from "../../components/Text/types.js";
|
|
7
7
|
import y from "../../components/Divider/Divider.js";
|
|
8
8
|
import x from "../../components/Button/Button.js";
|
|
@@ -10,33 +10,33 @@ import { ButtonVariants as L } from "../../components/Button/types.js";
|
|
|
10
10
|
import m from "../../components/Icon/Icon.js";
|
|
11
11
|
import f from "../../components/IconButton/IconButton.js";
|
|
12
12
|
import { SSRMediaQuery as h } from "../../providers/SeldonProvider/utils.js";
|
|
13
|
-
const
|
|
14
|
-
({ className: _, title: N, subtitle: t, actionButtons: o, overline: s, showDivider: v = !0, ...
|
|
15
|
-
const { className:
|
|
16
|
-
d && /* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
13
|
+
const T = b(
|
|
14
|
+
({ className: _, title: N, subtitle: t, actionButtons: o, overline: s, showDivider: v = !0, ...g }, u) => {
|
|
15
|
+
const { className: i, ...C } = P(g, "AccountPageHeader"), e = o?.find((a) => a.isPrimary), d = o?.filter((a) => !a.isPrimary), $ = () => /* @__PURE__ */ n("div", { className: `${i}__button-wrapper`, children: [
|
|
16
|
+
d && /* @__PURE__ */ r(p, { children: d.map((a) => /* @__PURE__ */ r(f, { onClick: a.onClick, "aria-label": a.ariaLabel, children: /* @__PURE__ */ r(m, { icon: a.icon, "aria-label": a.ariaLabel, title: a.ariaLabel }) }, `icon-button-${a.icon}`)) }),
|
|
17
|
+
e && /* @__PURE__ */ n(p, { children: [
|
|
18
|
+
/* @__PURE__ */ r(h.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ n(x, { variant: L.secondary, onClick: e.onClick, children: [
|
|
19
|
+
/* @__PURE__ */ r(m, { icon: e.icon }),
|
|
20
20
|
" ",
|
|
21
|
-
|
|
21
|
+
e.label
|
|
22
22
|
] }) }),
|
|
23
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ r(h.Media, { lessThan: "md", children: /* @__PURE__ */ r(f, { onClick: e.onClick, "aria-label": e.ariaLabel, children: /* @__PURE__ */ r(m, { icon: e.icon, title: e.ariaLabel }) }) })
|
|
24
24
|
] })
|
|
25
25
|
] });
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
s && /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ n("div", { ...C, className: k(i, _), ref: u, children: [
|
|
27
|
+
/* @__PURE__ */ n("div", { className: `${i}__container`, children: [
|
|
28
|
+
s && /* @__PURE__ */ r(l, { variant: c.string2, className: `${i}__overline`, children: s }),
|
|
29
|
+
/* @__PURE__ */ n("div", { className: `${i}__title-wrapper`, children: [
|
|
30
|
+
/* @__PURE__ */ r(l, { variant: c.title1, className: `${i}__title`, children: N }),
|
|
31
31
|
o && o.length > 0 && $()
|
|
32
32
|
] }),
|
|
33
|
-
t && /* @__PURE__ */
|
|
33
|
+
t && /* @__PURE__ */ r(l, { variant: c.string2, className: `${i}__subtitle`, children: t })
|
|
34
34
|
] }),
|
|
35
|
-
v && /* @__PURE__ */
|
|
35
|
+
v && /* @__PURE__ */ r(y, { className: `${i}__divider` })
|
|
36
36
|
] });
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
T.displayName = "AccountPageHeader";
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
T as default
|
|
42
42
|
};
|
|
@@ -5,19 +5,19 @@ import { TextVariants as h } from "../../components/Text/types.js";
|
|
|
5
5
|
import g from "../../components/Text/Text.js";
|
|
6
6
|
import { BidMessageVariants as i } from "./types.js";
|
|
7
7
|
import t from "../../components/Icon/Icon.js";
|
|
8
|
-
const
|
|
8
|
+
const M = ({
|
|
9
9
|
className: r,
|
|
10
|
-
hasIcon:
|
|
11
|
-
message:
|
|
10
|
+
hasIcon: m = !0,
|
|
11
|
+
message: a,
|
|
12
12
|
variant: n = i.positive,
|
|
13
13
|
...o
|
|
14
14
|
}) => {
|
|
15
15
|
const { className: s, ...c } = f(o, "BidMessage"), l = n === i.positive ? /* @__PURE__ */ e(t, { icon: "IconGreenCircle", height: 8, width: 8 }) : /* @__PURE__ */ e(t, { icon: "IconRedCircle", height: 8, width: 8 });
|
|
16
16
|
return /* @__PURE__ */ d("div", { ...c, className: p(s, r), ...o, children: [
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */ e(g, { variant: h.
|
|
17
|
+
m ? l : null,
|
|
18
|
+
/* @__PURE__ */ e(g, { variant: h.string2, className: `${s}-text`, children: a })
|
|
19
19
|
] });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
M as default
|
|
23
23
|
};
|
|
@@ -156,7 +156,7 @@ const S = ({
|
|
|
156
156
|
return /* @__PURE__ */ t("div", { ...p, className: l(i, o), ref: O, id: e, children: /* @__PURE__ */ c("div", { className: `${i}__content`, children: [
|
|
157
157
|
/* @__PURE__ */ c("div", { className: `${i}__header`, children: [
|
|
158
158
|
/* @__PURE__ */ c("div", { className: `${i}__info`, children: [
|
|
159
|
-
m && /* @__PURE__ */ t(v, { element: "span", className: `${i}__count`, variant: g.
|
|
159
|
+
m && /* @__PURE__ */ t(v, { element: "span", className: `${i}__count`, variant: g.body3, children: u && m && u(a) }),
|
|
160
160
|
r && /* @__PURE__ */ t(v, { element: "h3", className: `${i}__title`, variant: g.heading5, children: r })
|
|
161
161
|
] }),
|
|
162
162
|
m && f && /* @__PURE__ */ c(q, { children: [
|
|
@@ -9,23 +9,23 @@ import F from "../../components/Text/Text.js";
|
|
|
9
9
|
import { px as t } from "../../utils/index.js";
|
|
10
10
|
import { getIcon as w } from "./utils.js";
|
|
11
11
|
const B = b.forwardRef(
|
|
12
|
-
({ className:
|
|
12
|
+
({ className: m, label: n, onClick: l, isSelected: a, type: r = "ChevronDown", count: s, id: i, ariaLabel: f, isMobile: c, totalCount: o }, d) => /* @__PURE__ */ p(
|
|
13
13
|
$,
|
|
14
14
|
{
|
|
15
15
|
ref: d,
|
|
16
|
-
className: u(`${t}-filter-button`,
|
|
17
|
-
[`${t}-filter-button--selected`]: a ||
|
|
16
|
+
className: u(`${t}-filter-button`, m, {
|
|
17
|
+
[`${t}-filter-button--selected`]: a || s > 0 || r === "Filter" && o > 0,
|
|
18
18
|
[`${t}-filter-button--filter`]: r === "Filter"
|
|
19
19
|
}),
|
|
20
|
-
"aria-label":
|
|
20
|
+
"aria-label": f,
|
|
21
21
|
variant: h.secondary,
|
|
22
|
-
"data-testid": `${
|
|
22
|
+
"data-testid": `${i}-filter-button`,
|
|
23
23
|
"data-viewport": c ? "mobile" : "desktop",
|
|
24
|
-
onClick:
|
|
24
|
+
onClick: l,
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ e(F, { variant: v.
|
|
26
|
+
/* @__PURE__ */ e(F, { variant: v.string2, "data-testid": `${i}-filter-label`, children: n }),
|
|
27
27
|
/* @__PURE__ */ e(x, { icon: w(r, a), height: 8, width: 8, className: `${t}__icon` }),
|
|
28
|
-
|
|
28
|
+
o > 0 && r === "Filter" && /* @__PURE__ */ e("div", { className: `${t}-filter-button--count`, "data-testid": `${i}-filter-count`, children: o })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
)
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as p, jsx as r, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import e from "../../node_modules/classnames/index.js";
|
|
3
3
|
import F from "react";
|
|
4
4
|
import n from "../../components/Button/Button.js";
|
|
5
5
|
import { ButtonVariants as s } from "../../components/Button/types.js";
|
|
6
6
|
import v from "../../components/Filter/FilterHeader.js";
|
|
7
7
|
import D from "../../components/Filter/FilterInput.js";
|
|
8
8
|
import m from "../../components/Text/Text.js";
|
|
9
|
-
import { TextVariants as
|
|
9
|
+
import { TextVariants as c } from "../../components/Text/types.js";
|
|
10
10
|
import { px as B } from "../../utils/index.js";
|
|
11
|
-
import { getFilterButtonLabel as
|
|
12
|
-
const
|
|
11
|
+
import { getFilterButtonLabel as S, getFilterDimensions as j, handleInputChange as A } from "./utils.js";
|
|
12
|
+
const I = F.forwardRef(
|
|
13
13
|
({
|
|
14
14
|
className: f,
|
|
15
|
-
buttonType:
|
|
15
|
+
buttonType: i,
|
|
16
16
|
filters: _,
|
|
17
17
|
filterIndex: h,
|
|
18
18
|
onSelectFilter: b,
|
|
19
19
|
onClickClear: u,
|
|
20
|
-
onApplyFilter:
|
|
20
|
+
onApplyFilter: d,
|
|
21
21
|
resultsCount: $,
|
|
22
22
|
ariaLabels: N,
|
|
23
23
|
filterButtonLabel: x,
|
|
24
|
-
filterButtonLabelTranslated:
|
|
25
|
-
dropdownMenuTranslation:
|
|
26
|
-
},
|
|
27
|
-
const
|
|
24
|
+
filterButtonLabelTranslated: g,
|
|
25
|
+
dropdownMenuTranslation: o
|
|
26
|
+
}, k) => {
|
|
27
|
+
const l = i === "Sort", t = `${B}-filter-dropdown-menu`;
|
|
28
28
|
return /* @__PURE__ */ p(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
|
-
className:
|
|
32
|
-
ref:
|
|
31
|
+
className: e(t, f),
|
|
32
|
+
ref: k,
|
|
33
33
|
"data-testid": "filter-dropdown-desktop",
|
|
34
|
-
"aria-label": N || `${
|
|
34
|
+
"aria-label": N || `${i} dropdown desktop`,
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ r(
|
|
37
37
|
v,
|
|
38
38
|
{
|
|
39
|
-
heading:
|
|
40
|
-
className:
|
|
39
|
+
heading: S(x, null, g || null),
|
|
40
|
+
className: e(`${t}__header`)
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ r("div", { className: e(`${t}__filters`), children: j(_, h).map((a) => /* @__PURE__ */ r(
|
|
44
44
|
D,
|
|
45
45
|
{
|
|
46
|
-
id:
|
|
47
|
-
labelText:
|
|
48
|
-
name:
|
|
49
|
-
type:
|
|
50
|
-
checked:
|
|
51
|
-
disabled:
|
|
52
|
-
onChange: (
|
|
46
|
+
id: a.label,
|
|
47
|
+
labelText: a.label,
|
|
48
|
+
name: a.label,
|
|
49
|
+
type: l ? "radio" : "checkbox",
|
|
50
|
+
checked: a.active,
|
|
51
|
+
disabled: a?.disabled,
|
|
52
|
+
onChange: (w) => A(w, i ?? "", b)
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
a.label
|
|
55
55
|
)) }),
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ r("div", { className: e(l ? `${t}__button-wrap` : `${t}__buttons-wrap`), children: l ? /* @__PURE__ */ r(
|
|
57
57
|
n,
|
|
58
58
|
{
|
|
59
|
-
className:
|
|
59
|
+
className: e(`${t}__button`),
|
|
60
60
|
variant: s.primary,
|
|
61
|
-
onClick: () =>
|
|
62
|
-
children: /* @__PURE__ */
|
|
61
|
+
onClick: () => d?.(!1),
|
|
62
|
+
children: /* @__PURE__ */ r(m, { variant: c.string2, className: `${t}__button-text`, children: o?.confirm || "Confirm" })
|
|
63
63
|
}
|
|
64
|
-
) : /* @__PURE__ */ p(
|
|
65
|
-
/* @__PURE__ */
|
|
64
|
+
) : /* @__PURE__ */ p(C, { children: [
|
|
65
|
+
/* @__PURE__ */ r(
|
|
66
66
|
n,
|
|
67
67
|
{
|
|
68
|
-
className:
|
|
68
|
+
className: e(`${t}__buttons`),
|
|
69
69
|
variant: s.secondary,
|
|
70
|
-
onClick: () => u?.(
|
|
71
|
-
children: /* @__PURE__ */
|
|
70
|
+
onClick: () => u?.(i ?? ""),
|
|
71
|
+
children: /* @__PURE__ */ r(m, { variant: c.string2, children: o?.clearAll || "Clear all" })
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ r(
|
|
75
75
|
n,
|
|
76
76
|
{
|
|
77
|
-
className:
|
|
77
|
+
className: e(`${t}__buttons`),
|
|
78
78
|
variant: s.primary,
|
|
79
|
-
onClick: () =>
|
|
80
|
-
children: /* @__PURE__ */
|
|
79
|
+
onClick: () => d?.(!1),
|
|
80
|
+
children: /* @__PURE__ */ r(m, { variant: c.string2, className: `${t}__button-text`, children: o?.showAuctions || `Show ${$} Auctions` })
|
|
81
81
|
}
|
|
82
82
|
)
|
|
83
83
|
] }) })
|
|
@@ -86,7 +86,7 @@ const A = F.forwardRef(
|
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
|
-
|
|
89
|
+
I.displayName = "FilterDropdownMenuDesktop";
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
I as FilterDropdownMenuDesktop
|
|
92
92
|
};
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as d, jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import e from "../../node_modules/classnames/index.js";
|
|
3
|
+
import C from "react";
|
|
4
4
|
import n from "../../components/Button/Button.js";
|
|
5
5
|
import { ButtonVariants as s } from "../../components/Button/types.js";
|
|
6
6
|
import k from "../../components/Filter/FilterInput.js";
|
|
7
7
|
import m from "../../components/Text/Text.js";
|
|
8
8
|
import { TextVariants as c } from "../../components/Text/types.js";
|
|
9
9
|
import { px as v } from "../../utils/index.js";
|
|
10
|
-
import { getFilterDimensions as F, handleInputChange as
|
|
11
|
-
const
|
|
10
|
+
import { getFilterDimensions as F, handleInputChange as B } from "./utils.js";
|
|
11
|
+
const D = C.forwardRef(
|
|
12
12
|
({
|
|
13
|
-
className:
|
|
14
|
-
buttonType:
|
|
13
|
+
className: b,
|
|
14
|
+
buttonType: o,
|
|
15
15
|
filters: f,
|
|
16
16
|
filterIndex: p,
|
|
17
|
-
onApplyFilter:
|
|
17
|
+
onApplyFilter: _,
|
|
18
18
|
onClickClear: $,
|
|
19
19
|
onSelectFilter: h,
|
|
20
20
|
resultsCount: u,
|
|
21
21
|
ariaLabels: x,
|
|
22
|
-
dropdownMenuTranslation:
|
|
22
|
+
dropdownMenuTranslation: a
|
|
23
23
|
}, N) => {
|
|
24
|
-
const l =
|
|
25
|
-
return /* @__PURE__ */
|
|
24
|
+
const l = o === "Sort", t = `${v}-filter-dropdown-menu`;
|
|
25
|
+
return /* @__PURE__ */ d(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
|
-
className:
|
|
28
|
+
className: e(`${t}`, b, `${t}--mobile`),
|
|
29
29
|
ref: N,
|
|
30
30
|
"data-testid": "filter-dropdown-mobile",
|
|
31
|
-
"aria-label": x || `${
|
|
31
|
+
"aria-label": x || `${o} dropdown mobile`,
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ r("div", { className: e(`${t}__filters`, `${t}__filters--mobile`), children: F(f, p).map((i) => /* @__PURE__ */ r(
|
|
34
34
|
k,
|
|
35
35
|
{
|
|
36
|
-
id:
|
|
37
|
-
labelText:
|
|
38
|
-
name:
|
|
36
|
+
id: i.label,
|
|
37
|
+
labelText: i.label,
|
|
38
|
+
name: i.label,
|
|
39
39
|
type: l ? "radio" : "checkbox",
|
|
40
|
-
checked:
|
|
41
|
-
disabled:
|
|
42
|
-
onChange: (w) =>
|
|
40
|
+
checked: i.active,
|
|
41
|
+
disabled: i?.disabled,
|
|
42
|
+
onChange: (w) => B(w, o ?? "", h)
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
i.label
|
|
45
45
|
)) }),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ r(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
|
-
className:
|
|
49
|
+
className: e(
|
|
50
50
|
l ? `${t}__button-wrap` : `${t}__buttons-wrap`,
|
|
51
51
|
`${t}__mobile-wrap`
|
|
52
52
|
),
|
|
53
|
-
children: l ? /* @__PURE__ */
|
|
53
|
+
children: l ? /* @__PURE__ */ r(
|
|
54
54
|
n,
|
|
55
55
|
{
|
|
56
|
-
className:
|
|
56
|
+
className: e(`${t}__button`, `${t}__button--mobile`),
|
|
57
57
|
variant: s.primary,
|
|
58
|
-
onClick: () =>
|
|
59
|
-
children: /* @__PURE__ */
|
|
58
|
+
onClick: () => _?.(!1),
|
|
59
|
+
children: /* @__PURE__ */ r(m, { variant: c.string1, className: `${t}__button-text`, children: a?.confirm || "Confirm" })
|
|
60
60
|
}
|
|
61
|
-
) : /* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
) : /* @__PURE__ */ d(g, { children: [
|
|
62
|
+
/* @__PURE__ */ r(
|
|
63
63
|
n,
|
|
64
64
|
{
|
|
65
|
-
className:
|
|
65
|
+
className: e(
|
|
66
66
|
`${t}__buttons`,
|
|
67
67
|
`${t}__buttons--mobile`,
|
|
68
68
|
`${t}__buttons--left`
|
|
69
69
|
),
|
|
70
70
|
variant: s.secondary,
|
|
71
|
-
onClick: () => $?.(
|
|
72
|
-
children: /* @__PURE__ */
|
|
71
|
+
onClick: () => $?.(o ?? ""),
|
|
72
|
+
children: /* @__PURE__ */ r(m, { variant: c.string2, children: a?.clearAll || "Clear all" })
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ r(
|
|
76
76
|
n,
|
|
77
77
|
{
|
|
78
|
-
className:
|
|
78
|
+
className: e(
|
|
79
79
|
`${t}__buttons`,
|
|
80
80
|
`${t}__buttons--mobile`,
|
|
81
81
|
`${t}__buttons--right`
|
|
82
82
|
),
|
|
83
83
|
variant: s.primary,
|
|
84
|
-
onClick: () =>
|
|
85
|
-
children: /* @__PURE__ */
|
|
84
|
+
onClick: () => _?.(!1),
|
|
85
|
+
children: /* @__PURE__ */ r(m, { variant: c.string2, className: `${t}__button-text`, children: a?.showAuctions || `Show ${u} Auctions` })
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
] })
|
|
@@ -93,7 +93,7 @@ const B = g.forwardRef(
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
|
-
|
|
96
|
+
D.displayName = "FilterDropdownMenuMobile";
|
|
97
97
|
export {
|
|
98
|
-
|
|
98
|
+
D as FilterDropdownMenuMobile
|
|
99
99
|
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import E from "../../node_modules/classnames/index.js";
|
|
3
|
+
import { forwardRef as b } from "react";
|
|
4
4
|
import y from "../../components/Button/Button.js";
|
|
5
5
|
import { ButtonVariants as A } from "../../components/Button/types.js";
|
|
6
6
|
import L from "../../components/SeldonImage/SeldonImage.js";
|
|
7
7
|
import { TextVariants as e } from "../../components/Text/types.js";
|
|
8
8
|
import i from "../../components/Text/Text.js";
|
|
9
|
-
import { SSRMediaQuery as
|
|
10
|
-
import { getCommonProps as
|
|
9
|
+
import { SSRMediaQuery as T } from "../../providers/SeldonProvider/utils.js";
|
|
10
|
+
import { getCommonProps as x } from "../../utils/index.js";
|
|
11
11
|
import { SaleCardVariants as d } from "./types.js";
|
|
12
|
-
const
|
|
12
|
+
const I = b(
|
|
13
13
|
({
|
|
14
14
|
className: p,
|
|
15
|
-
imageSrc:
|
|
15
|
+
imageSrc: o,
|
|
16
16
|
imageAlt: _ = "Auction Image",
|
|
17
17
|
auctionType: f,
|
|
18
18
|
titleText: h,
|
|
19
19
|
date: N,
|
|
20
20
|
location: $,
|
|
21
|
-
badgeText:
|
|
22
|
-
modalButtonOnClick:
|
|
21
|
+
badgeText: t,
|
|
22
|
+
modalButtonOnClick: l,
|
|
23
23
|
modalButtonText: n,
|
|
24
24
|
variant: s = d.DEFAULT,
|
|
25
|
-
children:
|
|
25
|
+
children: g,
|
|
26
26
|
...c
|
|
27
|
-
},
|
|
28
|
-
const { className: a, ...
|
|
27
|
+
}, u) => {
|
|
28
|
+
const { className: a, ...v } = x(c, "SaleCard"), S = E(a, p, {
|
|
29
29
|
[`${a}--${s}`]: s
|
|
30
|
-
}),
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */
|
|
30
|
+
}), C = { ...v, ...c };
|
|
31
|
+
return /* @__PURE__ */ m("article", { ...C, className: S, ref: u, children: [
|
|
32
|
+
o ? /* @__PURE__ */ r(L, { src: o, alt: _, className: `${a}__image` }) : null,
|
|
33
|
+
/* @__PURE__ */ m("div", { className: `${a}__details`, children: [
|
|
34
34
|
/* @__PURE__ */ r(i, { variant: e.badge, className: `${a}__auction-type`, children: f }),
|
|
35
35
|
/* @__PURE__ */ r(i, { variant: e.title3, children: h }),
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */ r(i, { variant: e.
|
|
39
|
-
/* @__PURE__ */ r(i, { variant: e.
|
|
40
|
-
n &&
|
|
36
|
+
t && /* @__PURE__ */ r(i, { variant: e.badge, className: `${a}__badge`, children: t }),
|
|
37
|
+
/* @__PURE__ */ m("div", { className: `${a}__info`, children: [
|
|
38
|
+
/* @__PURE__ */ r(i, { variant: e.string2, children: $ }),
|
|
39
|
+
/* @__PURE__ */ r(i, { variant: e.string2, children: N }),
|
|
40
|
+
n && l && /* @__PURE__ */ r("div", { className: `${a}__modal-link`, children: /* @__PURE__ */ r(
|
|
41
41
|
y,
|
|
42
42
|
{
|
|
43
|
-
onClick:
|
|
43
|
+
onClick: l,
|
|
44
44
|
variant: A.tertiary,
|
|
45
45
|
className: `${a}__modal-link-button`,
|
|
46
46
|
children: n
|
|
@@ -48,11 +48,11 @@ const x = E(
|
|
|
48
48
|
) })
|
|
49
49
|
] })
|
|
50
50
|
] }),
|
|
51
|
-
s !== d.RELATED_SALE_TILE && /* @__PURE__ */ r(
|
|
51
|
+
s !== d.RELATED_SALE_TILE && /* @__PURE__ */ r(T.Media, { greaterThanOrEqual: "md", children: g })
|
|
52
52
|
] });
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
|
-
|
|
55
|
+
I.displayName = "SaleCard";
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
I as default
|
|
58
58
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as R } from "react";
|
|
3
3
|
import { getCommonProps as D } from "../../utils/index.js";
|
|
4
4
|
import F from "../../node_modules/classnames/index.js";
|
|
@@ -8,67 +8,67 @@ import { AuctionStatus as q } from "../../types/commonTypes.js";
|
|
|
8
8
|
import { TextVariants as r } from "../../components/Text/types.js";
|
|
9
9
|
import t from "../../components/Text/Text.js";
|
|
10
10
|
import z from "../../components/PageContentWrapper/PageContentWrapper.js";
|
|
11
|
-
import { SSRMediaQuery as
|
|
11
|
+
import { SSRMediaQuery as g } from "../../providers/SeldonProvider/utils.js";
|
|
12
12
|
const A = R(
|
|
13
13
|
({
|
|
14
|
-
auctionEndTime:
|
|
15
|
-
auctionTitle:
|
|
16
|
-
badgeText:
|
|
17
|
-
imageSrcUrl:
|
|
18
|
-
imageSrcSet:
|
|
14
|
+
auctionEndTime: i,
|
|
15
|
+
auctionTitle: o,
|
|
16
|
+
badgeText: c,
|
|
17
|
+
imageSrcUrl: v,
|
|
18
|
+
imageSrcSet: N,
|
|
19
19
|
imageSizes: u,
|
|
20
|
-
imageLoading:
|
|
21
|
-
imageFetchPriority:
|
|
22
|
-
location:
|
|
23
|
-
countdownTimerLabel:
|
|
24
|
-
countdownFormatDuration:
|
|
25
|
-
auctionState:
|
|
26
|
-
occurrenceInformation:
|
|
20
|
+
imageLoading: S,
|
|
21
|
+
imageFetchPriority: $,
|
|
22
|
+
location: w,
|
|
23
|
+
countdownTimerLabel: B,
|
|
24
|
+
countdownFormatDuration: b,
|
|
25
|
+
auctionState: k,
|
|
26
|
+
occurrenceInformation: x,
|
|
27
27
|
onClick: I,
|
|
28
|
-
children:
|
|
29
|
-
className:
|
|
30
|
-
footerElement:
|
|
31
|
-
headerLabel:
|
|
32
|
-
showTimer:
|
|
33
|
-
getCurrentDateTime:
|
|
34
|
-
...
|
|
28
|
+
children: C,
|
|
29
|
+
className: P,
|
|
30
|
+
footerElement: j,
|
|
31
|
+
headerLabel: y,
|
|
32
|
+
showTimer: l,
|
|
33
|
+
getCurrentDateTime: H,
|
|
34
|
+
...s
|
|
35
35
|
}, m) => {
|
|
36
|
-
const { className: e, ...d } = D(
|
|
37
|
-
endDateTime:
|
|
38
|
-
label:
|
|
39
|
-
formatDurationStr:
|
|
40
|
-
getCurrentDateTime:
|
|
36
|
+
const { className: e, ...d } = D(s, "SaleHeaderBanner"), _ = k === q.live, p = {
|
|
37
|
+
endDateTime: i,
|
|
38
|
+
label: B,
|
|
39
|
+
formatDurationStr: b,
|
|
40
|
+
getCurrentDateTime: H
|
|
41
41
|
};
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
_ &&
|
|
42
|
+
return /* @__PURE__ */ n("div", { ...d, className: F(e, P), ...s, ref: m, children: [
|
|
43
|
+
_ && i && l ? /* @__PURE__ */ a(g.Media, { lessThan: "md", children: /* @__PURE__ */ a("div", { className: `${e}__stack__countdown`, children: /* @__PURE__ */ a(f, { ...p, showBottomBorder: !1 }) }) }) : null,
|
|
44
44
|
/* @__PURE__ */ a(
|
|
45
45
|
O,
|
|
46
46
|
{
|
|
47
47
|
aspectRatio: "16/9",
|
|
48
|
-
src:
|
|
49
|
-
alt: String(
|
|
48
|
+
src: v,
|
|
49
|
+
alt: String(o),
|
|
50
50
|
objectFit: "cover",
|
|
51
51
|
className: `${e}__image`,
|
|
52
|
-
srcSet:
|
|
52
|
+
srcSet: N,
|
|
53
53
|
sizes: u,
|
|
54
|
-
loading:
|
|
55
|
-
fetchPriority:
|
|
54
|
+
loading: S,
|
|
55
|
+
fetchPriority: $
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
|
-
/* @__PURE__ */ a(z, { className: `${e}__stack-wrapper`, ...d, ...
|
|
59
|
-
_ &&
|
|
60
|
-
/* @__PURE__ */ a(t, { variant: r.
|
|
61
|
-
/* @__PURE__ */ a(t, { variant: r.title1, children:
|
|
62
|
-
|
|
63
|
-
/* @__PURE__ */ a(t, { variant: r.
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */ a(t, { variant: r.
|
|
67
|
-
/* @__PURE__ */ a(t, { variant: r.
|
|
58
|
+
/* @__PURE__ */ a(z, { className: `${e}__stack-wrapper`, ...d, ...s, ref: m, children: /* @__PURE__ */ n("div", { className: `${e}__stack`, children: [
|
|
59
|
+
_ && i && l ? /* @__PURE__ */ a(g.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ a("div", { className: `${e}__stack__countdown`, children: /* @__PURE__ */ a(f, { ...p }) }) }) : null,
|
|
60
|
+
/* @__PURE__ */ a(t, { variant: r.badge, children: y }),
|
|
61
|
+
/* @__PURE__ */ a(t, { variant: r.title1, children: o }),
|
|
62
|
+
c && /* @__PURE__ */ a(t, { variant: r.badge, className: `${e}__badge`, children: c }),
|
|
63
|
+
/* @__PURE__ */ a(t, { variant: r.string2, className: `${e}__location`, children: w }),
|
|
64
|
+
/* @__PURE__ */ n("div", { className: `${e}__occurrence-details`, children: [
|
|
65
|
+
x.map(({ date: h, occurrenceLabel: M }) => /* @__PURE__ */ n("div", { className: `${e}__occurrence-details-text`, children: [
|
|
66
|
+
/* @__PURE__ */ a(t, { variant: r.string2, children: M }),
|
|
67
|
+
/* @__PURE__ */ a(t, { variant: r.string2, className: `${e}__date`, children: h })
|
|
68
68
|
] }, String(h))),
|
|
69
|
-
|
|
69
|
+
C
|
|
70
70
|
] }),
|
|
71
|
-
|
|
71
|
+
j
|
|
72
72
|
] }) })
|
|
73
73
|
] });
|
|
74
74
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import { TextVariants as
|
|
5
|
-
import
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { getCommonProps as m } from "../../utils/index.js";
|
|
4
|
+
import { TextVariants as n } from "../../components/Text/types.js";
|
|
5
|
+
import l from "../../components/Text/Text.js";
|
|
6
6
|
import "../../components/Link/types.js";
|
|
7
7
|
import c from "../../components/Link/Link.js";
|
|
8
|
-
const d =
|
|
8
|
+
const d = i(
|
|
9
9
|
({ ctaText: r = "View Calendar", ctaLabel: a = "Browse Upcoming Sale", className: f, ...o }, p) => {
|
|
10
|
-
const { className: s } =
|
|
10
|
+
const { className: s } = m(o, "SaleHeaderBanner");
|
|
11
11
|
return /* @__PURE__ */ t("div", { className: `${s}__occurrence-details-text`, children: [
|
|
12
|
-
/* @__PURE__ */ e(
|
|
12
|
+
/* @__PURE__ */ e(l, { variant: n.string2, children: a }),
|
|
13
13
|
/* @__PURE__ */ e(c, { href: "/calendar", children: r })
|
|
14
14
|
] });
|
|
15
15
|
}
|