@phillips/seldon 1.178.0 → 1.180.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/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 +2 -1
- package/dist/components/Link/types.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Text/types.d.ts +17 -0
- 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.d.ts +2 -0
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +57 -55
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.stories.d.ts +6 -0
- 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 +142 -63
- package/dist/scss/_vars.scss +74 -45
- package/dist/scss/_vars.scss.js +76 -47
- 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 +5 -0
- 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/Pagination/_pagination.scss +1 -1
- package/dist/scss/components/Search/_search.scss +1 -1
- 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 +9 -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/site-furniture/Footer/Footer.js +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ const G = C(
|
|
|
37
37
|
{
|
|
38
38
|
className: `${l}-atcb-item`,
|
|
39
39
|
onSelect: () => k(a.action, a.link),
|
|
40
|
-
children: a.action === "link" ? /* @__PURE__ */ e(d, { className: `${l}-atcb-item-link`, href: a.link, children: a.label }) : /* @__PURE__ */ e("button", { className: `${l}-atcb-item-link`, children: /* @__PURE__ */ e(O, { variant: N.
|
|
40
|
+
children: a.action === "link" ? /* @__PURE__ */ e(d, { className: `${l}-atcb-item-link`, href: a.link, children: a.label }) : /* @__PURE__ */ e("button", { className: `${l}-atcb-item-link`, children: /* @__PURE__ */ e(O, { variant: N.bodyMd, children: a.label }) })
|
|
41
41
|
},
|
|
42
42
|
a.label
|
|
43
43
|
))
|
|
@@ -14,8 +14,8 @@ const b = u(
|
|
|
14
14
|
a ? /* @__PURE__ */ l($, { aspectRatio: "16/9", src: a, alt: "bull" }) : null,
|
|
15
15
|
/* @__PURE__ */ c("div", { className: `${t}__content`, children: [
|
|
16
16
|
n ? /* @__PURE__ */ l(r, { variant: e.label, className: `${t}__content-label`, children: n }) : null,
|
|
17
|
-
o ? /* @__PURE__ */ l(r, { variant: e.
|
|
18
|
-
m ? /* @__PURE__ */ l(r, { variant: e.
|
|
17
|
+
o ? /* @__PURE__ */ l(r, { variant: e.heading2, className: `${t}__content-title`, children: o }) : null,
|
|
18
|
+
m ? /* @__PURE__ */ l(r, { variant: e.bodyMd, className: `${t}__content-description`, children: m }) : null,
|
|
19
19
|
s ? /* @__PURE__ */ l(f, { href: p, className: `${t}__content-link`, children: s }) : null
|
|
20
20
|
] })
|
|
21
21
|
] });
|
|
@@ -39,7 +39,7 @@ const L = x(
|
|
|
39
39
|
id: m,
|
|
40
40
|
ref: _,
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */ i(c, { variant: n.
|
|
42
|
+
/* @__PURE__ */ i(c, { variant: n.heading2, className: `${a}__title`, children: N }),
|
|
43
43
|
/* @__PURE__ */ i(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
@@ -54,7 +54,7 @@ const L = x(
|
|
|
54
54
|
r && /* @__PURE__ */ i(d, { id: `${m}-secondary-btn`, variant: t.secondary, onClick: r.onClick, children: r.buttonLabel }),
|
|
55
55
|
e && /* @__PURE__ */ i(d, { id: `${m}-primary-btn`, variant: t.primary, onClick: e.onClick, children: e.buttonLabel })
|
|
56
56
|
] }),
|
|
57
|
-
o && /* @__PURE__ */ i(c, { variant: n.
|
|
57
|
+
o && /* @__PURE__ */ i(c, { variant: n.heading3, className: `${a}__disclaimer`, children: o })
|
|
58
58
|
] })
|
|
59
59
|
]
|
|
60
60
|
}
|
|
@@ -36,9 +36,9 @@ const G = $(
|
|
|
36
36
|
}
|
|
37
37
|
) : null,
|
|
38
38
|
/* @__PURE__ */ p("div", { className: `${t}__content`, children: [
|
|
39
|
-
o ? /* @__PURE__ */ a(r, { variant: e.
|
|
39
|
+
o ? /* @__PURE__ */ a(r, { variant: e.bodyMd, element: "span", className: `${t}__content-label`, children: o }) : null,
|
|
40
40
|
m ? /* @__PURE__ */ a(r, { variant: e.heading1, element: "span", className: `${t}__content-title`, children: m }) : null,
|
|
41
|
-
s ? /* @__PURE__ */ a(r, { variant: e.
|
|
41
|
+
s ? /* @__PURE__ */ a(r, { variant: e.bodyMd, element: "span", className: `${t}__content-description`, children: s }) : null,
|
|
42
42
|
(l || c) && i ? /* @__PURE__ */ a(c, { href: i, children: /* @__PURE__ */ a(C, { variant: _, className: `${t}__content-link`, children: l }) }) : null
|
|
43
43
|
] })
|
|
44
44
|
] });
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v } from "react";
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
3
|
+
import { getCommonProps as b } from "../../utils/index.js";
|
|
4
|
+
import h from "../../node_modules/classnames/index.js";
|
|
5
5
|
import { TextVariants as t } from "../Text/types.js";
|
|
6
6
|
import e from "../Text/Text.js";
|
|
7
|
-
const
|
|
7
|
+
const N = v(
|
|
8
8
|
({
|
|
9
9
|
className: d,
|
|
10
10
|
actionAddText: i = "Add to",
|
|
11
11
|
actionRemoveText: m = "Remove from",
|
|
12
12
|
isLotInList: r,
|
|
13
|
-
listTitle:
|
|
13
|
+
listTitle: l,
|
|
14
14
|
numberOfObjects: c,
|
|
15
15
|
onClick: f,
|
|
16
|
-
...
|
|
16
|
+
...n
|
|
17
17
|
}, p) => {
|
|
18
|
-
const { className: a, ...u } =
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
const { className: a, ...u } = b(n, "FavoritingTileButton");
|
|
19
|
+
return /* @__PURE__ */ s(
|
|
20
20
|
"button",
|
|
21
21
|
{
|
|
22
22
|
...u,
|
|
23
|
-
className:
|
|
23
|
+
className: h(a, d, {
|
|
24
24
|
[`${a}--lot-in-list`]: r
|
|
25
25
|
}),
|
|
26
26
|
onClick: f,
|
|
27
27
|
ref: p,
|
|
28
|
-
id:
|
|
29
|
-
"aria-label": `${r ? m : i} ${
|
|
28
|
+
id: n?.id,
|
|
29
|
+
"aria-label": `${r ? m : i} ${l}`,
|
|
30
30
|
"aria-pressed": r,
|
|
31
31
|
role: "switch",
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ s("div", { className: `${a}__text`, children: [
|
|
34
34
|
/* @__PURE__ */ o(e, { variant: t.button, children: r ? m : i }),
|
|
35
|
-
/* @__PURE__ */ o(e, { variant: t.
|
|
35
|
+
/* @__PURE__ */ o(e, { variant: t.labelMd, children: l })
|
|
36
36
|
] }),
|
|
37
37
|
/* @__PURE__ */ o(e, { variant: t.button, children: c })
|
|
38
38
|
]
|
|
@@ -40,7 +40,7 @@ const g = v(
|
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
N.displayName = "FavoritingTileButton";
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
N as default
|
|
46
46
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextVariants as l } from "../Text/types.js";
|
|
2
2
|
import "../Text/Text.js";
|
|
3
|
-
var o = ((e) => (e[e.email = l.email] = "email", e[e.snwHeaderLink = l.snwHeaderLink] = "snwHeaderLink", e[e.snwFlyoutLink = l.snwFlyoutLink] = "snwFlyoutLink", e[e.link = l.link] = "link", e))(o || {});
|
|
3
|
+
var o = ((e) => (e[e.email = l.email] = "email", e[e.snwHeaderLink = l.snwHeaderLink] = "snwHeaderLink", e[e.snwFlyoutLink = l.snwFlyoutLink] = "snwFlyoutLink", e[e.link = l.link] = "link", e[e.labelLg = l.labelLg] = "labelLg", e))(o || {});
|
|
4
4
|
export {
|
|
5
5
|
o as LinkVariants
|
|
6
6
|
};
|
|
@@ -5,7 +5,7 @@ import { TextVariants as T } from "./types.js";
|
|
|
5
5
|
import { determineDefaultTextElement as C, determineTextClassName as u } from "./utils.js";
|
|
6
6
|
import r from "../../node_modules/classnames/index.js";
|
|
7
7
|
const $ = x(
|
|
8
|
-
({ children: a, className: n, element: l, variant: e = T.
|
|
8
|
+
({ children: a, className: n, element: l, variant: e = T.bodyMd, align: m, isSkeletonLoading: p, ...o }, f) => {
|
|
9
9
|
const c = l || C(e), { className: t, ...i } = d(o, "Text");
|
|
10
10
|
return /* @__PURE__ */ s(
|
|
11
11
|
c,
|
|
@@ -3,22 +3,39 @@ export declare enum TextVariants {
|
|
|
3
3
|
heading1 = "heading1",
|
|
4
4
|
heading2 = "heading2",
|
|
5
5
|
heading3 = "heading3",
|
|
6
|
+
heading3Italic = "heading3Italic",
|
|
6
7
|
heading4 = "heading4",
|
|
8
|
+
heading4Italic = "heading4Italic",
|
|
7
9
|
heading5 = "heading5",
|
|
10
|
+
eyebrowLg = "eyebrowLg",
|
|
11
|
+
eyebrowSm = "eyebrowSm",
|
|
8
12
|
title1 = "title1",
|
|
9
13
|
title2 = "title2",
|
|
10
14
|
title3 = "title3",
|
|
11
15
|
title4 = "title4",
|
|
16
|
+
bodyLg = "bodyLg",
|
|
17
|
+
bodyLgBold = "bodyLgBold",
|
|
18
|
+
bodyMd = "bodyMd",
|
|
19
|
+
bodyMdBold = "bodyMdBold",
|
|
20
|
+
bodySm = "bodySm",
|
|
21
|
+
bodySmBold = "bodySmBold",
|
|
12
22
|
body1 = "body1",
|
|
13
23
|
body2 = "body2",
|
|
14
24
|
body3 = "body3",
|
|
15
25
|
string1 = "string1",
|
|
16
26
|
string2 = "string2",
|
|
17
27
|
string3 = "string3",
|
|
28
|
+
labelLg = "labelLg",
|
|
29
|
+
labelLgBold = "labelLgBold",
|
|
30
|
+
labelMd = "labelMd",
|
|
31
|
+
labelMdBold = "labelMdBold",
|
|
32
|
+
labelSm = "labelSm",
|
|
33
|
+
labelSmBold = "labelSmBold",
|
|
18
34
|
button = "button",
|
|
19
35
|
email = "email",
|
|
20
36
|
label = "label",
|
|
21
37
|
link = "link",
|
|
38
|
+
linkBold = "linkBold",
|
|
22
39
|
badge = "badge",
|
|
23
40
|
snwFlyoutLink = "snwFlyoutLink",
|
|
24
41
|
snwHeaderLink = "snwHeaderLink",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d = /* @__PURE__ */ ((l) => (l.blockquote = "blockquote", l.heading1 = "heading1", l.heading2 = "heading2", l.heading3 = "heading3", l.heading3Italic = "heading3Italic", l.heading4 = "heading4", l.heading4Italic = "heading4Italic", l.heading5 = "heading5", l.eyebrowLg = "eyebrowLg", l.eyebrowSm = "eyebrowSm", l.title1 = "title1", l.title2 = "title2", l.title3 = "title3", l.title4 = "title4", l.bodyLg = "bodyLg", l.bodyLgBold = "bodyLgBold", l.bodyMd = "bodyMd", l.bodyMdBold = "bodyMdBold", l.bodySm = "bodySm", l.bodySmBold = "bodySmBold", l.body1 = "body1", l.body2 = "body2", l.body3 = "body3", l.string1 = "string1", l.string2 = "string2", l.string3 = "string3", l.labelLg = "labelLg", l.labelLgBold = "labelLgBold", l.labelMd = "labelMd", l.labelMdBold = "labelMdBold", l.labelSm = "labelSm", l.labelSmBold = "labelSmBold", l.button = "button", l.email = "email", l.label = "label", l.link = "link", l.linkBold = "linkBold", l.badge = "badge", l.snwFlyoutLink = "snwFlyoutLink", l.snwHeaderLink = "snwHeaderLink", l.snwHeadingHero1 = "snwHeadingHero1", l.snwHeadingHero2 = "snwHeadingHero2", l))(d || {}), o = /* @__PURE__ */ ((l) => (l.left = "left", l.center = "center", l.right = "right", l))(o || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
o as TextAlignments,
|
|
4
|
+
d as TextVariants
|
|
5
5
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { px as s } from "../../utils/index.js";
|
|
2
|
-
import { TextVariants as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
return e ===
|
|
2
|
+
import { TextVariants as r } from "./types.js";
|
|
3
|
+
const u = (e = r.bodyLg) => `${s}-text--${e.charAt(0).toLowerCase() + e.slice(1)}`, i = (e = r.bodyLg) => {
|
|
4
|
+
const t = e.toLowerCase();
|
|
5
|
+
return e === r.blockquote ? "blockquote" : e.includes("body") ? "p" : e.includes("string") || e.includes("title") || e.includes("eyebrow") ? "span" : e === r.label ? "label" : t.includes("heading") ? `h${isNaN(parseInt(e.slice(-1))) ? 3 : parseInt(e.slice(-1))}` : "span";
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
i as determineDefaultTextElement,
|
|
9
|
+
u as determineTextClassName
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as l, jsx as a, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } 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 n 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 M = g(
|
|
14
|
+
({ className: _, title: N, subtitle: t, actionButtons: o, overline: s, showDivider: v = !0, ...b }, u) => {
|
|
15
|
+
const { className: e, ...C } = P(b, "AccountPageHeader"), i = o?.find((r) => r.isPrimary), d = o?.filter((r) => !r.isPrimary), $ = () => /* @__PURE__ */ l("div", { className: `${e}__button-wrapper`, children: [
|
|
16
|
+
d && /* @__PURE__ */ a(p, { children: d.map((r) => /* @__PURE__ */ a(f, { onClick: r.onClick, "aria-label": r.ariaLabel, children: /* @__PURE__ */ a(m, { icon: r.icon, "aria-label": r.ariaLabel, title: r.ariaLabel }) }, `icon-button-${r.icon}`)) }),
|
|
17
|
+
i && /* @__PURE__ */ l(p, { children: [
|
|
18
|
+
/* @__PURE__ */ a(h.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ l(x, { variant: L.secondary, onClick: i.onClick, children: [
|
|
19
|
+
/* @__PURE__ */ a(m, { icon: i.icon }),
|
|
20
20
|
" ",
|
|
21
|
-
|
|
21
|
+
i.label
|
|
22
22
|
] }) }),
|
|
23
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ a(h.Media, { lessThan: "md", children: /* @__PURE__ */ a(f, { onClick: i.onClick, "aria-label": i.ariaLabel, children: /* @__PURE__ */ a(m, { icon: i.icon, title: i.ariaLabel }) }) })
|
|
24
24
|
] })
|
|
25
25
|
] });
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
s && /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ l("div", { ...C, className: k(e, _), ref: u, children: [
|
|
27
|
+
/* @__PURE__ */ l("div", { className: `${e}__container`, children: [
|
|
28
|
+
s && /* @__PURE__ */ a(n, { variant: c.labelMd, className: `${e}__overline`, children: s }),
|
|
29
|
+
/* @__PURE__ */ l("div", { className: `${e}__title-wrapper`, children: [
|
|
30
|
+
/* @__PURE__ */ a(n, { variant: c.title1, className: `${e}__title`, children: N }),
|
|
31
31
|
o && o.length > 0 && $()
|
|
32
32
|
] }),
|
|
33
|
-
t && /* @__PURE__ */
|
|
33
|
+
t && /* @__PURE__ */ a(n, { variant: c.labelMd, className: `${e}__subtitle`, children: t })
|
|
34
34
|
] }),
|
|
35
|
-
v && /* @__PURE__ */
|
|
35
|
+
v && /* @__PURE__ */ a(y, { className: `${e}__divider` })
|
|
36
36
|
] });
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
M.displayName = "AccountPageHeader";
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
M 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 I = ({
|
|
9
9
|
className: r,
|
|
10
|
-
hasIcon:
|
|
11
|
-
message:
|
|
10
|
+
hasIcon: a = !0,
|
|
11
|
+
message: m,
|
|
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
|
+
a ? l : null,
|
|
18
|
+
/* @__PURE__ */ e(g, { variant: h.labelMd, className: `${s}-text`, children: m })
|
|
19
19
|
] });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
I 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.bodySm, 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: l, label: m, onClick: n, isSelected: a, type: r = "ChevronDown", count: f, id: o, ariaLabel: s, isMobile: c, totalCount: i }, 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`, l, {
|
|
17
|
+
[`${t}-filter-button--selected`]: a || f > 0 || r === "Filter" && i > 0,
|
|
18
18
|
[`${t}-filter-button--filter`]: r === "Filter"
|
|
19
19
|
}),
|
|
20
|
-
"aria-label":
|
|
20
|
+
"aria-label": s,
|
|
21
21
|
variant: h.secondary,
|
|
22
|
-
"data-testid": `${
|
|
22
|
+
"data-testid": `${o}-filter-button`,
|
|
23
23
|
"data-viewport": c ? "mobile" : "desktop",
|
|
24
|
-
onClick:
|
|
24
|
+
onClick: n,
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ e(F, { variant: v.
|
|
26
|
+
/* @__PURE__ */ e(F, { variant: v.labelMd, "data-testid": `${o}-filter-label`, children: m }),
|
|
27
27
|
/* @__PURE__ */ e(x, { icon: w(r, a), height: 8, width: 8, className: `${t}__icon` }),
|
|
28
|
-
|
|
28
|
+
i > 0 && r === "Filter" && /* @__PURE__ */ e("div", { className: `${t}-filter-button--count`, "data-testid": `${o}-filter-count`, children: i })
|
|
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 t, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import a 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 d } 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 M, getFilterDimensions as S, handleInputChange as j } from "./utils.js";
|
|
12
|
+
const A = F.forwardRef(
|
|
13
13
|
({
|
|
14
14
|
className: f,
|
|
15
|
-
buttonType:
|
|
15
|
+
buttonType: l,
|
|
16
16
|
filters: _,
|
|
17
17
|
filterIndex: h,
|
|
18
18
|
onSelectFilter: b,
|
|
19
19
|
onClickClear: u,
|
|
20
|
-
onApplyFilter:
|
|
20
|
+
onApplyFilter: c,
|
|
21
21
|
resultsCount: $,
|
|
22
22
|
ariaLabels: N,
|
|
23
23
|
filterButtonLabel: x,
|
|
24
|
-
filterButtonLabelTranslated:
|
|
25
|
-
dropdownMenuTranslation:
|
|
26
|
-
},
|
|
27
|
-
const
|
|
24
|
+
filterButtonLabelTranslated: k,
|
|
25
|
+
dropdownMenuTranslation: i
|
|
26
|
+
}, w) => {
|
|
27
|
+
const o = l === "Sort", e = `${B}-filter-dropdown-menu`;
|
|
28
28
|
return /* @__PURE__ */ p(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
|
-
className: e
|
|
32
|
-
ref:
|
|
31
|
+
className: a(e, f),
|
|
32
|
+
ref: w,
|
|
33
33
|
"data-testid": "filter-dropdown-desktop",
|
|
34
|
-
"aria-label": N || `${
|
|
34
|
+
"aria-label": N || `${l} dropdown desktop`,
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ t(
|
|
37
37
|
v,
|
|
38
38
|
{
|
|
39
|
-
heading:
|
|
40
|
-
className:
|
|
39
|
+
heading: M(x, null, k || null),
|
|
40
|
+
className: a(`${e}__header`)
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ t("div", { className: a(`${e}__filters`), children: S(_, h).map((r) => /* @__PURE__ */ t(
|
|
44
44
|
D,
|
|
45
45
|
{
|
|
46
|
-
id:
|
|
47
|
-
labelText:
|
|
48
|
-
name:
|
|
49
|
-
type:
|
|
50
|
-
checked:
|
|
51
|
-
disabled:
|
|
52
|
-
onChange: (
|
|
46
|
+
id: r.label,
|
|
47
|
+
labelText: r.label,
|
|
48
|
+
name: r.label,
|
|
49
|
+
type: o ? "radio" : "checkbox",
|
|
50
|
+
checked: r.active,
|
|
51
|
+
disabled: r?.disabled,
|
|
52
|
+
onChange: (C) => j(C, l ?? "", b)
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
r.label
|
|
55
55
|
)) }),
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ t("div", { className: a(o ? `${e}__button-wrap` : `${e}__buttons-wrap`), children: o ? /* @__PURE__ */ t(
|
|
57
57
|
n,
|
|
58
58
|
{
|
|
59
|
-
className:
|
|
59
|
+
className: a(`${e}__button`),
|
|
60
60
|
variant: s.primary,
|
|
61
|
-
onClick: () =>
|
|
62
|
-
children: /* @__PURE__ */
|
|
61
|
+
onClick: () => c?.(!1),
|
|
62
|
+
children: /* @__PURE__ */ t(m, { variant: d.labelMd, className: `${e}__button-text`, children: i?.confirm || "Confirm" })
|
|
63
63
|
}
|
|
64
|
-
) : /* @__PURE__ */ p(
|
|
65
|
-
/* @__PURE__ */
|
|
64
|
+
) : /* @__PURE__ */ p(g, { children: [
|
|
65
|
+
/* @__PURE__ */ t(
|
|
66
66
|
n,
|
|
67
67
|
{
|
|
68
|
-
className:
|
|
68
|
+
className: a(`${e}__buttons`),
|
|
69
69
|
variant: s.secondary,
|
|
70
|
-
onClick: () => u?.(
|
|
71
|
-
children: /* @__PURE__ */
|
|
70
|
+
onClick: () => u?.(l ?? ""),
|
|
71
|
+
children: /* @__PURE__ */ t(m, { variant: d.labelMd, children: i?.clearAll || "Clear all" })
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ t(
|
|
75
75
|
n,
|
|
76
76
|
{
|
|
77
|
-
className:
|
|
77
|
+
className: a(`${e}__buttons`),
|
|
78
78
|
variant: s.primary,
|
|
79
|
-
onClick: () =>
|
|
80
|
-
children: /* @__PURE__ */
|
|
79
|
+
onClick: () => c?.(!1),
|
|
80
|
+
children: /* @__PURE__ */ t(m, { variant: d.labelMd, className: `${e}__button-text`, children: i?.showAuctions || `Show ${$} Auctions` })
|
|
81
81
|
}
|
|
82
82
|
)
|
|
83
83
|
] }) })
|
|
@@ -86,7 +86,7 @@ const I = F.forwardRef(
|
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
|
-
|
|
89
|
+
A.displayName = "FilterDropdownMenuDesktop";
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
A as FilterDropdownMenuDesktop
|
|
92
92
|
};
|