@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.
Files changed (55) hide show
  1. package/dist/components/AddToCalendar/AddToCalendar.js +1 -1
  2. package/dist/components/Article/Article.js +2 -2
  3. package/dist/components/ComposedModal/ComposedModal.js +2 -2
  4. package/dist/components/ExitGateCard/ExitGateCard.js +2 -2
  5. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +15 -15
  6. package/dist/components/Filter/FilterHeader.js +1 -1
  7. package/dist/components/Link/types.d.ts +2 -1
  8. package/dist/components/Link/types.js +1 -1
  9. package/dist/components/Text/Text.js +1 -1
  10. package/dist/components/Text/types.d.ts +17 -0
  11. package/dist/components/Text/types.js +3 -3
  12. package/dist/components/Text/utils.js +6 -6
  13. package/dist/patterns/AccountPageHeader/AccountPageHeader.js +21 -21
  14. package/dist/patterns/BidSnapshot/BidMessage.js +6 -6
  15. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +1 -1
  16. package/dist/patterns/FiltersInline/FilterButton.js +8 -8
  17. package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +41 -41
  18. package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +38 -38
  19. package/dist/patterns/SaleCard/SaleCard.js +25 -25
  20. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.d.ts +2 -0
  21. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +57 -55
  22. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.stories.d.ts +6 -0
  23. package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +7 -7
  24. package/dist/patterns/UserManagement/UserManagement.js +10 -10
  25. package/dist/patterns/ViewingDetails/ViewingDetails.js +12 -12
  26. package/dist/scss/_type.scss +142 -63
  27. package/dist/scss/_vars.scss +74 -45
  28. package/dist/scss/_vars.scss.js +76 -47
  29. package/dist/scss/components/Accordion/_accordion.scss +4 -4
  30. package/dist/scss/components/AddToCalendar/_addToCalendar.scss +2 -2
  31. package/dist/scss/components/Article/_article.scss +5 -0
  32. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -1
  33. package/dist/scss/components/Button/_button.scss +1 -1
  34. package/dist/scss/components/ComboBox/_combobox.scss +4 -4
  35. package/dist/scss/components/Countdown/_countdown.scss +2 -2
  36. package/dist/scss/components/Countdown/_duration.scss +1 -1
  37. package/dist/scss/components/Detail/_detail.scss +1 -1
  38. package/dist/scss/components/Drawer/_drawerHeader.scss +2 -2
  39. package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
  40. package/dist/scss/components/Filter/_filter.scss +3 -3
  41. package/dist/scss/components/Icon/_icon.stories.scss +1 -1
  42. package/dist/scss/components/Input/_input.scss +3 -3
  43. package/dist/scss/components/Link/_link.scss +4 -4
  44. package/dist/scss/components/Pagination/_pagination.scss +1 -1
  45. package/dist/scss/components/Search/_search.scss +1 -1
  46. package/dist/scss/components/Tabs/_tabs.scss +1 -1
  47. package/dist/scss/components/Tags/_tags.scss +1 -1
  48. package/dist/scss/components/TextArea/_textArea.scss +2 -2
  49. package/dist/scss/components/TextSymbol/_textSymbol.scss +2 -2
  50. package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +9 -1
  51. package/dist/scss/patterns/Social/_social.scss +1 -1
  52. package/dist/scss/patterns/Subscribe/_subscribe.scss +3 -3
  53. package/dist/scss/site-furniture/Footer/_footer.scss +2 -2
  54. package/dist/site-furniture/Footer/Footer.js +1 -1
  55. 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.body2, children: a.label }) })
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.heading3, className: `${t}__content-title`, children: o }) : null,
18
- m ? /* @__PURE__ */ l(r, { variant: e.body2, className: `${t}__content-description`, children: m }) : null,
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.heading3, className: `${a}__title`, children: 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.heading5, className: `${a}__disclaimer`, children: o })
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.body2, element: "span", className: `${t}__content-label`, children: o }) : null,
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.body2, element: "span", className: `${t}__content-description`, children: s }) : null,
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 l, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as v } from "react";
3
- import { getCommonProps as h } from "../../utils/index.js";
4
- import b from "../../node_modules/classnames/index.js";
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 g = v(
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: n,
13
+ listTitle: l,
14
14
  numberOfObjects: c,
15
15
  onClick: f,
16
- ...s
16
+ ...n
17
17
  }, p) => {
18
- const { className: a, ...u } = h(s, "FavoritingTileButton");
19
- return /* @__PURE__ */ l(
18
+ const { className: a, ...u } = b(n, "FavoritingTileButton");
19
+ return /* @__PURE__ */ s(
20
20
  "button",
21
21
  {
22
22
  ...u,
23
- className: b(a, d, {
23
+ className: h(a, d, {
24
24
  [`${a}--lot-in-list`]: r
25
25
  }),
26
26
  onClick: f,
27
27
  ref: p,
28
- id: s?.id,
29
- "aria-label": `${r ? m : i} ${n}`,
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__ */ l("div", { className: `${a}__text`, children: [
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.string2, children: n })
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
- g.displayName = "FavoritingTileButton";
43
+ N.displayName = "FavoritingTileButton";
44
44
  export {
45
- g as default
45
+ N as default
46
46
  };
@@ -18,7 +18,7 @@ const g = p(
18
18
  /* @__PURE__ */ r(
19
19
  x,
20
20
  {
21
- variant: N.heading4,
21
+ variant: N.heading3,
22
22
  className: `${e}__heading`,
23
23
  element: (d) => /* @__PURE__ */ r("legend", { ...d, children: i })
24
24
  }
@@ -5,5 +5,6 @@ export declare enum LinkVariants {
5
5
  /** link is being rendered in a footer|header */
6
6
  snwFlyoutLink = "snwFlyoutLink",
7
7
  /** standard link */
8
- link = "link"
8
+ link = "link",
9
+ labelLg = "labelLg"
9
10
  }
@@ -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.body2, align: m, isSkeletonLoading: p, ...o }, f) => {
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 g = /* @__PURE__ */ ((d) => (d.blockquote = "blockquote", d.heading1 = "heading1", d.heading2 = "heading2", d.heading3 = "heading3", d.heading4 = "heading4", d.heading5 = "heading5", d.title1 = "title1", d.title2 = "title2", d.title3 = "title3", d.title4 = "title4", d.body1 = "body1", d.body2 = "body2", d.body3 = "body3", d.string1 = "string1", d.string2 = "string2", d.string3 = "string3", d.button = "button", d.email = "email", d.label = "label", d.link = "link", d.badge = "badge", d.snwFlyoutLink = "snwFlyoutLink", d.snwHeaderLink = "snwHeaderLink", d.snwHeadingHero1 = "snwHeadingHero1", d.snwHeadingHero2 = "snwHeadingHero2", d))(g || {}), l = /* @__PURE__ */ ((d) => (d.left = "left", d.center = "center", d.right = "right", d))(l || {});
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
- l as TextAlignments,
4
- g as TextVariants
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 t } from "./types.js";
3
- const i = (e = t.body1) => `${s}-text--${e.charAt(0).toLowerCase() + e.slice(1)}`, u = (e = t.body1) => {
4
- const r = e.toLowerCase();
5
- return e === t.blockquote ? "blockquote" : e.includes("body") ? "p" : e.includes("string") || e.includes("title") ? "span" : e === t.label ? "label" : r.includes("heading") ? `h${isNaN(parseInt(e.slice(-1))) ? 3 : parseInt(e.slice(-1))}` : "span";
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
- u as determineDefaultTextElement,
9
- i as determineTextClassName
8
+ i as determineDefaultTextElement,
9
+ u as determineTextClassName
10
10
  };
@@ -1,8 +1,8 @@
1
- import { jsxs as n, jsx as r, Fragment as p } from "react/jsx-runtime";
2
- import { forwardRef as b } from "react";
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 l from "../../components/Text/Text.js";
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 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 }),
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
- e.label
21
+ i.label
22
22
  ] }) }),
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 }) }) })
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__ */ 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 }),
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__ */ r(l, { variant: c.string2, className: `${i}__subtitle`, children: t })
33
+ t && /* @__PURE__ */ a(n, { variant: c.labelMd, className: `${e}__subtitle`, children: t })
34
34
  ] }),
35
- v && /* @__PURE__ */ r(y, { className: `${i}__divider` })
35
+ v && /* @__PURE__ */ a(y, { className: `${e}__divider` })
36
36
  ] });
37
37
  }
38
38
  );
39
- T.displayName = "AccountPageHeader";
39
+ M.displayName = "AccountPageHeader";
40
40
  export {
41
- T as default
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 M = ({
8
+ const I = ({
9
9
  className: r,
10
- hasIcon: m = !0,
11
- message: a,
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
- m ? l : null,
18
- /* @__PURE__ */ e(g, { variant: h.string2, className: `${s}-text`, children: a })
17
+ a ? l : null,
18
+ /* @__PURE__ */ e(g, { variant: h.labelMd, className: `${s}-text`, children: m })
19
19
  ] });
20
20
  };
21
21
  export {
22
- M as default
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.body3, children: u && m && u(a) }),
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: m, label: n, onClick: l, isSelected: a, type: r = "ChevronDown", count: s, id: i, ariaLabel: f, isMobile: c, totalCount: o }, d) => /* @__PURE__ */ p(
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`, m, {
17
- [`${t}-filter-button--selected`]: a || s > 0 || r === "Filter" && o > 0,
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": f,
20
+ "aria-label": s,
21
21
  variant: h.secondary,
22
- "data-testid": `${i}-filter-button`,
22
+ "data-testid": `${o}-filter-button`,
23
23
  "data-viewport": c ? "mobile" : "desktop",
24
- onClick: l,
24
+ onClick: n,
25
25
  children: [
26
- /* @__PURE__ */ e(F, { variant: v.string2, "data-testid": `${i}-filter-label`, children: n }),
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
- o > 0 && r === "Filter" && /* @__PURE__ */ e("div", { className: `${t}-filter-button--count`, "data-testid": `${i}-filter-count`, children: o })
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 r, Fragment as C } from "react/jsx-runtime";
2
- import e from "../../node_modules/classnames/index.js";
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 c } from "../../components/Text/types.js";
9
+ import { TextVariants as d } from "../../components/Text/types.js";
10
10
  import { px as B } from "../../utils/index.js";
11
- import { getFilterButtonLabel as S, getFilterDimensions as j, handleInputChange as A } from "./utils.js";
12
- const I = F.forwardRef(
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: i,
15
+ buttonType: l,
16
16
  filters: _,
17
17
  filterIndex: h,
18
18
  onSelectFilter: b,
19
19
  onClickClear: u,
20
- onApplyFilter: d,
20
+ onApplyFilter: c,
21
21
  resultsCount: $,
22
22
  ariaLabels: N,
23
23
  filterButtonLabel: x,
24
- filterButtonLabelTranslated: g,
25
- dropdownMenuTranslation: o
26
- }, k) => {
27
- const l = i === "Sort", t = `${B}-filter-dropdown-menu`;
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(t, f),
32
- ref: k,
31
+ className: a(e, f),
32
+ ref: w,
33
33
  "data-testid": "filter-dropdown-desktop",
34
- "aria-label": N || `${i} dropdown desktop`,
34
+ "aria-label": N || `${l} dropdown desktop`,
35
35
  children: [
36
- /* @__PURE__ */ r(
36
+ /* @__PURE__ */ t(
37
37
  v,
38
38
  {
39
- heading: S(x, null, g || null),
40
- className: e(`${t}__header`)
39
+ heading: M(x, null, k || null),
40
+ className: a(`${e}__header`)
41
41
  }
42
42
  ),
43
- /* @__PURE__ */ r("div", { className: e(`${t}__filters`), children: j(_, h).map((a) => /* @__PURE__ */ r(
43
+ /* @__PURE__ */ t("div", { className: a(`${e}__filters`), children: S(_, h).map((r) => /* @__PURE__ */ t(
44
44
  D,
45
45
  {
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)
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
- a.label
54
+ r.label
55
55
  )) }),
56
- /* @__PURE__ */ r("div", { className: e(l ? `${t}__button-wrap` : `${t}__buttons-wrap`), children: l ? /* @__PURE__ */ r(
56
+ /* @__PURE__ */ t("div", { className: a(o ? `${e}__button-wrap` : `${e}__buttons-wrap`), children: o ? /* @__PURE__ */ t(
57
57
  n,
58
58
  {
59
- className: e(`${t}__button`),
59
+ className: a(`${e}__button`),
60
60
  variant: s.primary,
61
- onClick: () => d?.(!1),
62
- children: /* @__PURE__ */ r(m, { variant: c.string2, className: `${t}__button-text`, children: o?.confirm || "Confirm" })
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(C, { children: [
65
- /* @__PURE__ */ r(
64
+ ) : /* @__PURE__ */ p(g, { children: [
65
+ /* @__PURE__ */ t(
66
66
  n,
67
67
  {
68
- className: e(`${t}__buttons`),
68
+ className: a(`${e}__buttons`),
69
69
  variant: s.secondary,
70
- onClick: () => u?.(i ?? ""),
71
- children: /* @__PURE__ */ r(m, { variant: c.string2, children: o?.clearAll || "Clear all" })
70
+ onClick: () => u?.(l ?? ""),
71
+ children: /* @__PURE__ */ t(m, { variant: d.labelMd, children: i?.clearAll || "Clear all" })
72
72
  }
73
73
  ),
74
- /* @__PURE__ */ r(
74
+ /* @__PURE__ */ t(
75
75
  n,
76
76
  {
77
- className: e(`${t}__buttons`),
77
+ className: a(`${e}__buttons`),
78
78
  variant: s.primary,
79
- onClick: () => d?.(!1),
80
- children: /* @__PURE__ */ r(m, { variant: c.string2, className: `${t}__button-text`, children: o?.showAuctions || `Show ${$} Auctions` })
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
- I.displayName = "FilterDropdownMenuDesktop";
89
+ A.displayName = "FilterDropdownMenuDesktop";
90
90
  export {
91
- I as FilterDropdownMenuDesktop
91
+ A as FilterDropdownMenuDesktop
92
92
  };