@phillips/seldon 1.213.0 → 1.214.0-beta.1

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 (158) hide show
  1. package/dist/_virtual/index4.js +2 -2
  2. package/dist/_virtual/index5.js +2 -2
  3. package/dist/_virtual/index6.js +2 -2
  4. package/dist/assets/formatted/Clock.d.ts +9 -0
  5. package/dist/assets/formatted/Clock.js +35 -0
  6. package/dist/assets/formatted/index.d.ts +1 -0
  7. package/dist/assets/formatted/index.js +14 -12
  8. package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
  9. package/dist/components/Article/Article.js +17 -17
  10. package/dist/components/Breadcrumb/BreadcrumbItem.js +13 -13
  11. package/dist/components/Button/Button.d.ts +4 -0
  12. package/dist/components/Button/Button.js +71 -53
  13. package/dist/components/Button/Button.stories.d.ts +7 -1
  14. package/dist/components/ComboBox/ComboBox.js +34 -29
  15. package/dist/components/ComposedModal/ComposedModal.js +33 -33
  16. package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
  17. package/dist/components/Countdown/Countdown.js +90 -51
  18. package/dist/components/Countdown/Duration.d.ts +3 -1
  19. package/dist/components/Countdown/Duration.js +17 -9
  20. package/dist/components/Countdown/types.d.ts +2 -1
  21. package/dist/components/Countdown/types.js +1 -1
  22. package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
  23. package/dist/components/Detail/Detail.d.ts +2 -0
  24. package/dist/components/Detail/Detail.js +26 -15
  25. package/dist/components/Detail/Detail.stories.d.ts +9 -2
  26. package/dist/components/Drawer/DrawerHeader.js +22 -20
  27. package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
  28. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
  29. package/dist/components/Filter/Filter.js +36 -34
  30. package/dist/components/Filter/FilterHeader.d.ts +4 -0
  31. package/dist/components/Filter/FilterHeader.js +30 -22
  32. package/dist/components/Input/Input.js +43 -39
  33. package/dist/components/Input/Input.stories.d.ts +16 -0
  34. package/dist/components/Link/Link.js +11 -11
  35. package/dist/components/Link/Link.stories.d.ts +17 -1
  36. package/dist/components/Link/types.d.ts +9 -4
  37. package/dist/components/Link/types.js +3 -3
  38. package/dist/components/LinkBlock/LinkBlock.js +19 -11
  39. package/dist/components/Modal/Modal.d.ts +0 -4
  40. package/dist/components/Modal/Modal.js +6 -6
  41. package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
  42. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +29 -29
  43. package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
  44. package/dist/components/Pagination/Pagination.js +22 -21
  45. package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
  46. package/dist/components/Search/Search.js +55 -53
  47. package/dist/components/Search/SearchResults/SearchResults.js +16 -16
  48. package/dist/components/Select/Select.d.ts +4 -0
  49. package/dist/components/Select/Select.js +51 -45
  50. package/dist/components/Select/Select.stories.d.ts +1 -0
  51. package/dist/components/Tabs/TabsContainer.js +1 -1
  52. package/dist/components/Tags/Tags.js +32 -30
  53. package/dist/components/Text/Text.js +17 -9
  54. package/dist/components/Text/types.d.ts +42 -1
  55. package/dist/components/Text/types.js +3 -3
  56. package/dist/components/Text/utils.js +40 -7
  57. package/dist/components/TextArea/TextArea.js +38 -34
  58. package/dist/components/Toast/Toast.js +4 -4
  59. package/dist/node_modules/ics/dist/index.js +2 -2
  60. package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
  61. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  62. package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
  63. package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
  64. package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
  65. package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +7 -1
  66. package/dist/patterns/BidSnapshot/BidSnapshot.js +84 -66
  67. package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +100 -0
  68. package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
  69. package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
  70. package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
  71. package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
  72. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
  73. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
  74. package/dist/patterns/FiltersInline/FilterButton.js +41 -25
  75. package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
  76. package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
  77. package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
  78. package/dist/patterns/LanguageSelector/LanguageSelector.js +34 -34
  79. package/dist/patterns/ObjectTile/ObjectTile.js +51 -66
  80. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
  81. package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
  82. package/dist/patterns/SaleCard/SaleCard.js +37 -45
  83. package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
  84. package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
  85. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
  86. package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
  87. package/dist/patterns/Social/Social.js +20 -20
  88. package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
  89. package/dist/patterns/TextBanner/TextBanner.js +12 -12
  90. package/dist/patterns/UserManagement/UserManagement.js +13 -13
  91. package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
  92. package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
  93. package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
  94. package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
  95. package/dist/scss/_reset.scss +4 -0
  96. package/dist/scss/_type.scss +172 -65
  97. package/dist/scss/_vars.scss +92 -197
  98. package/dist/scss/_vars.scss.js +94 -199
  99. package/dist/scss/componentStyles.scss +178 -0
  100. package/dist/scss/components/Accordion/_accordion.scss +6 -4
  101. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +8 -1
  102. package/dist/scss/components/Button/_button.scss +33 -7
  103. package/dist/scss/components/ComboBox/_combobox.scss +7 -5
  104. package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
  105. package/dist/scss/components/Countdown/_countdown.scss +8 -9
  106. package/dist/scss/components/Countdown/_duration.scss +0 -2
  107. package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
  108. package/dist/scss/components/Detail/_detail.scss +15 -6
  109. package/dist/scss/components/Divider/_divider.scss +3 -3
  110. package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
  111. package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
  112. package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
  113. package/dist/scss/components/Filter/_filter.scss +23 -8
  114. package/dist/scss/components/Icon/_icon.stories.scss +1 -1
  115. package/dist/scss/components/IconButton/_iconButton.scss +3 -5
  116. package/dist/scss/components/Input/_input.scss +22 -14
  117. package/dist/scss/components/Link/_link.scss +13 -8
  118. package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
  119. package/dist/scss/components/LinkList/_linkList.scss +8 -0
  120. package/dist/scss/components/Modal/_modal.scss +2 -2
  121. package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +33 -14
  122. package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -1
  123. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +2 -2
  124. package/dist/scss/components/NotificationBanner/_notificationBanner.scss +4 -10
  125. package/dist/scss/components/Pagination/_pagination.scss +17 -1
  126. package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
  127. package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
  128. package/dist/scss/components/Search/_search.scss +9 -10
  129. package/dist/scss/components/Search/_searchButton.scss +0 -1
  130. package/dist/scss/components/Select/_select.scss +8 -3
  131. package/dist/scss/components/Tabs/_tabs.scss +4 -5
  132. package/dist/scss/components/Tags/_tags.scss +0 -2
  133. package/dist/scss/components/TextArea/_textArea.scss +2 -4
  134. package/dist/scss/components/TextSymbol/_textSymbol.scss +2 -2
  135. package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
  136. package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +9 -10
  137. package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
  138. package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
  139. package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
  140. package/dist/scss/patterns/DetailList/_detailList.scss +4 -0
  141. package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
  142. package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
  143. package/dist/scss/patterns/FiltersInline/_filterButton.scss +11 -2
  144. package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
  145. package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
  146. package/dist/scss/patterns/HeroBanner/_heroBanner.scss +13 -6
  147. package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
  148. package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
  149. package/dist/scss/patterns/SaleCard/_saleCard.scss +13 -22
  150. package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
  151. package/dist/scss/patterns/Social/_social.scss +4 -1
  152. package/dist/scss/patterns/Subscribe/_subscribe.scss +3 -3
  153. package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
  154. package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
  155. package/dist/scss/site-furniture/Footer/_footer.scss +8 -2
  156. package/dist/scss/site-furniture/Header/_header.scss +8 -4
  157. package/dist/site-furniture/Footer/Footer.js +4 -4
  158. package/package.json +4 -3
@@ -1,31 +1,31 @@
1
- import { jsxs as s, jsx as a, Fragment as O } from "react/jsx-runtime";
2
- import { memo as z, forwardRef as F } from "react";
3
- import I from "../../node_modules/classnames/index.js";
4
- import { getCommonProps as L } from "../../utils/index.js";
1
+ import { jsxs as m, jsx as e, Fragment as V } from "react/jsx-runtime";
2
+ import { memo as k, forwardRef as z } from "react";
3
+ import F from "../../node_modules/classnames/index.js";
4
+ import { getCommonProps as I } from "../../utils/index.js";
5
5
  import { TextVariants as l } from "../../components/Text/types.js";
6
- import n from "../../components/Text/Text.js";
7
- import R from "../DetailList/DetailList.js";
8
- import V from "../../components/Detail/Detail.js";
6
+ import s from "../../components/Text/Text.js";
7
+ import L from "../DetailList/DetailList.js";
8
+ import R from "../../components/Detail/Detail.js";
9
9
  import W from "../../components/SeldonImage/SeldonImage.js";
10
- const w = z(
11
- F(
10
+ const w = k(
11
+ z(
12
12
  ({
13
- badgeText: f,
14
- className: $,
15
- children: N,
16
- element: g,
17
- estimate: i,
18
- estimateLabelText: b = "Estimate",
19
- estimateOnRequestText: m,
13
+ badgeText: N,
14
+ className: b,
15
+ children: f,
16
+ element: $,
17
+ estimate: n,
18
+ estimateLabelText: g = "Estimate",
19
+ estimateOnRequestText: i,
20
20
  badgeElement: r,
21
21
  favoriteElement: o,
22
22
  imageAlt: u = "Brought to you by Phillips",
23
23
  imageUrl: v = "",
24
- imageSrcSet: j,
25
- imageSizes: k,
26
- imageLoading: y,
27
- imageFetchPriority: P,
28
- lotNumber: S,
24
+ imageSrcSet: S,
25
+ imageSizes: j,
26
+ imageLoading: E,
27
+ imageFetchPriority: y,
28
+ lotNumber: P,
29
29
  makerText: c,
30
30
  modelText: _,
31
31
  referenceNumber: d,
@@ -33,69 +33,54 @@ const w = z(
33
33
  withdrawnText: t,
34
34
  ...p
35
35
  }, x) => {
36
- const { className: e, ...C } = L(p, "ObjectTile"), D = g ?? "a", E = i || m;
37
- return /* @__PURE__ */ s(D, { ...C, className: I(e, $), ...p, ref: x, children: [
38
- /* @__PURE__ */ a(
36
+ const { className: a, ...C } = I(p, "ObjectTile"), D = $ ?? "a", O = n || i;
37
+ return /* @__PURE__ */ m(D, { ...C, className: F(a, b), ...p, ref: x, children: [
38
+ /* @__PURE__ */ e(
39
39
  W,
40
40
  {
41
41
  alt: u,
42
42
  aspectRatio: "1/1",
43
- className: `${e}__img`,
43
+ className: `${a}__img`,
44
44
  objectFit: "contain",
45
45
  src: v,
46
- srcSet: j,
47
- sizes: k,
48
- loading: y,
49
- fetchPriority: P
46
+ srcSet: S,
47
+ sizes: j,
48
+ loading: E,
49
+ fetchPriority: y
50
50
  }
51
51
  ),
52
- t ? null : /* @__PURE__ */ a(n, { element: "span", className: `${e}__badge`, variant: l.badge, children: f }),
53
- /* @__PURE__ */ s("div", { className: `${e}__lot-number-like`, children: [
54
- /* @__PURE__ */ a(n, { element: "span", className: `${e}__lot-number`, variant: l.heading4, children: S }),
55
- r && /* @__PURE__ */ a("div", { className: `${e}__lot-badge`, children: /* @__PURE__ */ a(r, {}) }),
56
- o && /* @__PURE__ */ a(o, {})
52
+ t ? null : /* @__PURE__ */ e(s, { element: "span", className: `${a}__badge`, variant: l.labelSmall, children: N }),
53
+ /* @__PURE__ */ m("div", { className: `${a}__lot-number-like`, children: [
54
+ /* @__PURE__ */ e(s, { element: "span", className: `${a}__lot-number`, variant: l.headingSmall, children: P }),
55
+ r && /* @__PURE__ */ e("div", { className: `${a}__lot-badge`, children: /* @__PURE__ */ e(r, {}) }),
56
+ o && /* @__PURE__ */ e(o, {})
57
57
  ] }),
58
- t ? /* @__PURE__ */ a(n, { element: "span", className: `${e}__withdrawn`, variant: l.heading4, children: t }) : /* @__PURE__ */ s(O, { children: [
59
- /* @__PURE__ */ s("div", { className: `${e}__meta`, children: [
60
- c ? /* @__PURE__ */ a(n, { element: "span", className: `${e}__maker`, variant: l.heading4, children: c }) : null,
61
- h ? /* @__PURE__ */ a(
62
- n,
58
+ t ? /* @__PURE__ */ e(s, { element: "span", className: `${a}__withdrawn`, variant: l.headingSmall, children: t }) : /* @__PURE__ */ m(V, { children: [
59
+ /* @__PURE__ */ m("div", { className: `${a}__meta`, children: [
60
+ c ? /* @__PURE__ */ e(s, { element: "span", className: `${a}__maker`, variant: l.headingSmall, children: c }) : null,
61
+ h ? /* @__PURE__ */ e(s, { element: "cite", className: `${a}__title`, variant: l.headingExtraSmall, children: h }) : null,
62
+ d ? /* @__PURE__ */ e(
63
+ s,
63
64
  {
64
- className: `${e}__title ${e}__token-fix ${e}__token-fix--no-transform`,
65
- variant: l.heading4,
66
- element: "cite",
67
- children: h
68
- }
69
- ) : null,
70
- d ? /* @__PURE__ */ a(
71
- n,
72
- {
73
- className: `${e}__reference-number ${e}__token-fix`,
74
- variant: l.heading4,
65
+ className: `${a}__reference-number`,
66
+ variant: l.headingExtraSmall,
75
67
  element: "span",
76
68
  children: d
77
69
  }
78
70
  ) : null,
79
- _ ? /* @__PURE__ */ a(
80
- n,
81
- {
82
- className: `${e}__model ${e}__token-fix`,
83
- variant: l.heading4,
84
- element: "span",
85
- children: _
86
- }
87
- ) : null
71
+ _ ? /* @__PURE__ */ e(s, { className: `${a}__model`, variant: l.headingExtraSmall, element: "span", children: _ }) : null
88
72
  ] }),
89
- E ? /* @__PURE__ */ a(R, { hasSeparators: !0, className: `${e}__estimate ${e}__section`, children: /* @__PURE__ */ a(
90
- V,
73
+ O ? /* @__PURE__ */ e(L, { hasSeparators: !0, className: `${a}__estimate ${a}__section`, children: /* @__PURE__ */ e(
74
+ R,
91
75
  {
92
- className: `${e}__estimate__label`,
93
- label: b,
94
- value: i || m,
95
- hasWrap: !1
76
+ className: `${a}__estimate__label`,
77
+ label: g,
78
+ value: n || i,
79
+ hasWrap: !1,
80
+ textVariant: l.labelSmall
96
81
  }
97
82
  ) }) : null,
98
- /* @__PURE__ */ a("div", { className: `${e}__section`, children: N })
83
+ /* @__PURE__ */ e("div", { className: `${a}__section`, children: f })
99
84
  ] })
100
85
  ] });
101
86
  }
@@ -42,3 +42,39 @@ export declare const Playground: {
42
42
  };
43
43
  argTypes: {};
44
44
  };
45
+ export declare const WithCountdownTimer: {
46
+ (props: ComponentProps<typeof ObjectTile>): import("react/jsx-runtime").JSX.Element;
47
+ args: {
48
+ children: import("react/jsx-runtime").JSX.Element;
49
+ badgeText: string;
50
+ badgeElement: () => import("react/jsx-runtime").JSX.Element;
51
+ favoriteElement: () => import("react/jsx-runtime").JSX.Element;
52
+ estimate: string;
53
+ element: string;
54
+ href: string;
55
+ imageUrl: string;
56
+ lotNumber: string;
57
+ makerText: string;
58
+ titleText: string;
59
+ referenceNumber: string;
60
+ modelText: string;
61
+ };
62
+ };
63
+ export declare const SoldState: {
64
+ (props: ComponentProps<typeof ObjectTile>): import("react/jsx-runtime").JSX.Element;
65
+ args: {
66
+ children: import("react/jsx-runtime").JSX.Element;
67
+ badgeText: string;
68
+ badgeElement: () => import("react/jsx-runtime").JSX.Element;
69
+ favoriteElement: () => import("react/jsx-runtime").JSX.Element;
70
+ estimate: string;
71
+ element: string;
72
+ href: string;
73
+ imageUrl: string;
74
+ lotNumber: string;
75
+ makerText: string;
76
+ titleText: string;
77
+ referenceNumber: string;
78
+ modelText: string;
79
+ };
80
+ };
@@ -1,12 +1,12 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
- import b, { forwardRef as P } from "react";
3
- import { getCommonProps as _, px as x, useNormalizedInputProps as I } from "../../utils/index.js";
2
+ import b, { forwardRef as _ } from "react";
3
+ import { getCommonProps as P, px as x, useNormalizedInputProps as I } from "../../utils/index.js";
4
4
  import $ from "../../node_modules/classnames/index.js";
5
5
  import S from "../CountryPicker/CountryPicker.js";
6
6
  import T from "../../components/Input/Input.js";
7
7
  import { getSafeCountryCallingCode as L } from "../CountryPicker/utils.js";
8
8
  import { countries as j } from "../CountryPicker/constants.js";
9
- const k = P(
9
+ const k = _(
10
10
  ({
11
11
  className: l,
12
12
  value: s = "",
@@ -19,7 +19,7 @@ const k = P(
19
19
  disabled: y = !1,
20
20
  ...f
21
21
  }, g) => {
22
- const { className: t, ...v } = _(f, "PhoneNumberInput"), [o, C] = b.useState(c || void 0), i = j.find((d) => d.code === o), N = (d) => {
22
+ const { className: t, ...v } = P(f, "PhoneNumberInput"), [o, N] = b.useState(c || void 0), i = j.find((d) => d.code === o), C = (d) => {
23
23
  u?.(d.target.value, o || "");
24
24
  }, r = I({
25
25
  id: "phone-input",
@@ -53,19 +53,20 @@ const k = P(
53
53
  selectButtonLabel: "Select",
54
54
  isPhone: !0,
55
55
  value: i?.code,
56
- onChange: C
56
+ onChange: N
57
57
  }
58
58
  )
59
59
  ] }),
60
60
  /* @__PURE__ */ e("div", { className: `${t}__input`, children: /* @__PURE__ */ e(
61
61
  T,
62
62
  {
63
+ className: `${t}__input-phone`,
63
64
  id: "phone-input",
64
65
  type: "tel",
65
66
  labelText: `${n.replace("*", "")} phone`,
66
67
  hideLabel: !0,
67
68
  value: s,
68
- onChange: N,
69
+ onChange: C,
69
70
  required: m,
70
71
  invalid: !!a,
71
72
  disabled: y,
@@ -1,56 +1,48 @@
1
- import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import L from "../../node_modules/classnames/index.js";
3
- import { forwardRef as T } from "react";
4
- import b from "../../components/Button/Button.js";
5
- import { ButtonVariants as y } from "../../components/Button/types.js";
6
- import A from "../../components/SeldonImage/SeldonImage.js";
7
- import { TextVariants as e } from "../../components/Text/types.js";
8
- import s from "../../components/Text/Text.js";
9
- import { SSRMediaQuery as I } from "../../providers/SeldonProvider/utils.js";
1
+ import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
+ import g from "../../node_modules/classnames/index.js";
3
+ import { forwardRef as L } from "react";
4
+ import T from "../../components/Button/Button.js";
5
+ import { ButtonVariants as A } from "../../components/Button/types.js";
6
+ import I from "../../components/SeldonImage/SeldonImage.js";
7
+ import { TextVariants as l } from "../../components/Text/types.js";
8
+ import e from "../../components/Text/Text.js";
9
+ import { SSRMediaQuery as M } from "../../providers/SeldonProvider/utils.js";
10
10
  import { getCommonProps as x } from "../../utils/index.js";
11
- import { SaleCardVariants as p, SaleCardImageDisplay as P } from "./types.js";
12
- const R = T(
11
+ import { SaleCardVariants as f, SaleCardImageDisplay as P } from "./types.js";
12
+ const R = L(
13
13
  ({
14
- className: f,
15
- imageSrc: t,
16
- imageAlt: N = "Auction Image",
17
- auctionType: $,
18
- titleText: h,
19
- date: g,
20
- location: u,
14
+ className: p,
15
+ imageSrc: s,
16
+ imageAlt: h = "Auction Image",
17
+ auctionType: S,
18
+ titleText: N,
19
+ date: $,
20
+ location: v,
21
21
  badgeText: o,
22
- modalButtonOnClick: l,
23
- modalButtonText: n,
24
- variant: i = p.DEFAULT,
22
+ modalButtonOnClick: n,
23
+ modalButtonText: t,
24
+ variant: m = f.DEFAULT,
25
25
  children: c,
26
26
  imageDisplay: d = P.LEFT,
27
27
  ..._
28
- }, v) => {
29
- const { className: a, ...S } = x(_, "SaleCard"), C = L(a, f, {
30
- [`${a}--${i}`]: i,
31
- [`${a}--image-${d}`]: d
32
- }), E = { ...S, ..._ };
33
- return /* @__PURE__ */ m("article", { ...E, className: C, ref: v, children: [
34
- t ? /* @__PURE__ */ r(A, { src: t, alt: N, className: `${a}__image` }) : null,
35
- /* @__PURE__ */ m("div", { className: `${a}__details`, children: [
36
- /* @__PURE__ */ r(s, { variant: e.badge, className: `${a}__auction-type`, children: $ }),
37
- /* @__PURE__ */ r(s, { variant: e.title3, children: h }),
38
- o && /* @__PURE__ */ r(s, { variant: e.badge, className: `${a}__badge`, children: o }),
39
- /* @__PURE__ */ m("div", { className: `${a}__info`, children: [
40
- /* @__PURE__ */ r(s, { variant: e.string2, children: u }),
41
- /* @__PURE__ */ r(s, { variant: e.string2, children: g }),
42
- n && l && /* @__PURE__ */ r("div", { className: `${a}__modal-link`, children: /* @__PURE__ */ r(
43
- b,
44
- {
45
- onClick: l,
46
- variant: y.tertiary,
47
- className: `${a}__modal-link-button`,
48
- children: n
49
- }
50
- ) })
28
+ }, u) => {
29
+ const { className: r, ...C } = x(_, "SaleCard"), E = g(r, p, {
30
+ [`${r}--${m}`]: m,
31
+ [`${r}--image-${d}`]: d
32
+ }), b = { ...C, ..._ };
33
+ return /* @__PURE__ */ i("article", { ...b, className: E, ref: u, children: [
34
+ s ? /* @__PURE__ */ a(I, { src: s, alt: h, className: `${r}__image` }) : null,
35
+ /* @__PURE__ */ i("div", { className: `${r}__details`, children: [
36
+ /* @__PURE__ */ a(e, { variant: l.labelSmall, children: S }),
37
+ /* @__PURE__ */ a(e, { variant: l.headingSmall, className: `${r}__title`, children: N }),
38
+ o && /* @__PURE__ */ a(e, { variant: l.labelSmall, className: `${r}__badge`, children: o }),
39
+ /* @__PURE__ */ i("div", { className: `${r}__info`, children: [
40
+ /* @__PURE__ */ a(e, { variant: l.labelMedium, children: v }),
41
+ /* @__PURE__ */ a(e, { variant: l.labelMedium, children: $ }),
42
+ t && n && /* @__PURE__ */ a("div", { className: `${r}__modal-link`, children: /* @__PURE__ */ a(T, { onClick: n, variant: A.link, children: /* @__PURE__ */ a(e, { variant: l.labelSmall, children: t }) }) })
51
43
  ] })
52
44
  ] }),
53
- i !== p.RELATED_SALE_TILE && c && /* @__PURE__ */ r("div", { className: `${a}__ctas`, children: /* @__PURE__ */ r(I.Media, { greaterThanOrEqual: "md", children: c }) })
45
+ m !== f.RELATED_SALE_TILE && c && /* @__PURE__ */ a("div", { className: `${r}__ctas`, children: /* @__PURE__ */ a(M.Media, { greaterThanOrEqual: "md", children: c }) })
54
46
  ] });
55
47
  }
56
48
  );
@@ -18,7 +18,7 @@ export declare const SaleCardPlayground: {
18
18
  export declare const SaleCardRelated: () => import("react/jsx-runtime").JSX.Element;
19
19
  export declare const SaleCardWithPrimaryAndSecondaryCTA: () => import("react/jsx-runtime").JSX.Element;
20
20
  export declare const SaleCardWithPrimaryCTA: () => import("react/jsx-runtime").JSX.Element;
21
- export declare const SaleCardWithSecondaryCTA: () => import("react/jsx-runtime").JSX.Element;
21
+ export declare const SaleCardWithRegistrationStatus: () => import("react/jsx-runtime").JSX.Element;
22
22
  export declare const SaleCardWithDownloadLink: () => import("react/jsx-runtime").JSX.Element;
23
23
  export declare const SaleCardNoCTA: () => import("react/jsx-runtime").JSX.Element;
24
24
  export declare const SaleCardWithLink: () => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,13 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as t } from "react";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
3
  import { getCommonProps as c } from "../../utils/index.js";
4
- const i = t(({ children: a, ...o }, s) => {
5
- const { className: r, ...m } = c(o, "SaleCardActions");
6
- return /* @__PURE__ */ e("div", { className: `${r}__ctas`, ...m, ref: s, children: a });
4
+ import i from "../../components/Text/Text.js";
5
+ const l = e(({ children: o, ...a }, r) => {
6
+ const { className: s, ...m } = c(a, "SaleCardActions");
7
+ return /* @__PURE__ */ t(i, { className: `${s}__ctas`, ...m, ref: r, children: o });
7
8
  });
8
- i.displayName = "SaleCardActions";
9
+ l.displayName = "SaleCardActions";
9
10
  export {
10
- i as SaleCardActions,
11
- i as default
11
+ l as SaleCardActions,
12
+ l as default
12
13
  };
@@ -1,4 +1,4 @@
1
- import { jsxs as n, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as i, 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";
@@ -6,69 +6,69 @@ import f from "../../components/Countdown/Countdown.js";
6
6
  import O from "../../components/SeldonImage/SeldonImage.js";
7
7
  import { AuctionStatus as q } from "../../types/commonTypes.js";
8
8
  import { TextVariants as r } from "../../components/Text/types.js";
9
- import t from "../../components/Text/Text.js";
9
+ import l from "../../components/Text/Text.js";
10
10
  import z from "../../components/PageContentWrapper/PageContentWrapper.js";
11
- import { SSRMediaQuery as g } from "../../providers/SeldonProvider/utils.js";
11
+ import { SSRMediaQuery as u } from "../../providers/SeldonProvider/utils.js";
12
12
  const A = R(
13
13
  ({
14
- auctionEndTime: i,
15
- auctionTitle: o,
16
- badgeText: c,
17
- imageSrcUrl: v,
18
- imageSrcSet: N,
19
- imageSizes: u,
20
- imageLoading: S,
21
- imageFetchPriority: $,
22
- location: w,
23
- countdownTimerLabel: B,
24
- countdownFormatDuration: b,
25
- auctionState: k,
26
- occurrenceInformation: x,
14
+ auctionEndTime: s,
15
+ auctionTitle: n,
16
+ badgeText: o,
17
+ imageSrcUrl: N,
18
+ imageSrcSet: v,
19
+ imageSizes: g,
20
+ imageLoading: $,
21
+ imageFetchPriority: S,
22
+ location: b,
23
+ countdownTimerLabel: M,
24
+ countdownFormatDuration: w,
25
+ auctionState: B,
26
+ occurrenceInformation: k,
27
27
  onClick: I,
28
- children: C,
29
- className: P,
30
- footerElement: j,
31
- headerLabel: y,
32
- showTimer: l,
33
- getCurrentDateTime: H,
34
- ...s
28
+ children: x,
29
+ className: C,
30
+ footerElement: P,
31
+ headerLabel: j,
32
+ showTimer: c,
33
+ getCurrentDateTime: y,
34
+ ...t
35
35
  }, m) => {
36
- const { className: e, ...d } = D(s, "SaleHeaderBanner"), _ = k === q.live, p = {
37
- endDateTime: i,
38
- label: B,
39
- formatDurationStr: b,
40
- getCurrentDateTime: H
36
+ const { className: e, ...d } = D(t, "SaleHeaderBanner"), _ = B === q.live, h = {
37
+ endDateTime: s,
38
+ label: M,
39
+ formatDurationStr: w,
40
+ getCurrentDateTime: y
41
41
  };
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,
42
+ return /* @__PURE__ */ i("div", { ...d, className: F(e, C), ...t, ref: m, children: [
43
+ _ && s && c ? /* @__PURE__ */ a(u.Media, { lessThan: "md", children: /* @__PURE__ */ a("div", { className: `${e}__stack__countdown`, children: /* @__PURE__ */ a(f, { ...h, showBottomBorder: !1 }) }) }) : null,
44
44
  /* @__PURE__ */ a(
45
45
  O,
46
46
  {
47
47
  aspectRatio: "16/9",
48
- src: v,
49
- alt: String(o),
48
+ src: N,
49
+ alt: String(n),
50
50
  objectFit: "cover",
51
51
  className: `${e}__image`,
52
- srcSet: N,
53
- sizes: u,
54
- loading: S,
55
- fetchPriority: $
52
+ srcSet: v,
53
+ sizes: g,
54
+ loading: $,
55
+ fetchPriority: S
56
56
  }
57
57
  ),
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
- ] }, String(h))),
69
- C
58
+ /* @__PURE__ */ a(z, { className: `${e}__stack-wrapper`, ...d, ...t, ref: m, children: /* @__PURE__ */ i("div", { className: `${e}__stack`, children: [
59
+ _ && s && c ? /* @__PURE__ */ a(u.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ a("div", { className: `${e}__stack__countdown`, children: /* @__PURE__ */ a(f, { ...h }) }) }) : null,
60
+ /* @__PURE__ */ a(l, { variant: r.labelMedium, className: `${e}__header-label`, children: j }),
61
+ /* @__PURE__ */ a(l, { className: `${e}__title`, variant: r.headingLarge, children: n }),
62
+ o && /* @__PURE__ */ a(l, { variant: r.badge, className: `${e}__badge`, children: o }),
63
+ /* @__PURE__ */ a(l, { variant: r.labelMedium, className: `${e}__location`, children: b }),
64
+ /* @__PURE__ */ i("div", { className: `${e}__occurrence-details`, children: [
65
+ k.map(({ date: p, occurrenceLabel: H }) => /* @__PURE__ */ i("div", { className: `${e}__occurrence-details-text`, children: [
66
+ /* @__PURE__ */ a(l, { variant: r.labelMedium, children: H }),
67
+ /* @__PURE__ */ a(l, { variant: r.labelMedium, className: `${e}__date`, children: p })
68
+ ] }, String(p))),
69
+ x
70
70
  ] }),
71
- j
71
+ P
72
72
  ] }) })
73
73
  ] });
74
74
  }
@@ -1,20 +1,27 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import { getCommonProps as m } from "../../utils/index.js";
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { getCommonProps as i } from "../../utils/index.js";
4
4
  import { TextVariants as n } from "../../components/Text/types.js";
5
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 = i(
9
- ({ ctaText: r = "View Calendar", ctaLabel: a = "Browse Upcoming Sale", className: f, ...o }, p) => {
10
- const { className: s } = m(o, "SaleHeaderBanner");
11
- return /* @__PURE__ */ t("div", { className: `${s}__occurrence-details-text`, children: [
12
- /* @__PURE__ */ e(l, { variant: n.string2, children: a }),
13
- /* @__PURE__ */ e(c, { href: "/calendar", children: r })
14
- ] });
8
+ import d from "../../node_modules/classnames/index.js";
9
+ const f = m(
10
+ ({ ctaText: a = "View Calendar", ctaLabel: o = "Browse Upcoming Sale", className: p, ...s }, u) => {
11
+ const { className: e } = i(s, "SaleHeaderBanner");
12
+ return /* @__PURE__ */ t(
13
+ "div",
14
+ {
15
+ className: d(`${e}__occurrence-details-text`, `${e}__browse-auctions-text`),
16
+ children: [
17
+ /* @__PURE__ */ r(l, { variant: n.labelMedium, children: o }),
18
+ /* @__PURE__ */ r(c, { href: "/calendar", children: a })
19
+ ]
20
+ }
21
+ );
15
22
  }
16
23
  );
17
- d.displayName = "SaleHeaderBrowseAuctions";
24
+ f.displayName = "SaleHeaderBrowseAuctions";
18
25
  export {
19
- d as default
26
+ f as default
20
27
  };
@@ -1,25 +1,25 @@
1
- import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import f from "../../node_modules/classnames/index.js";
3
- import { getCommonProps as p } from "../../utils/index.js";
4
- import d from "../../components/Button/Button.js";
5
- import { forwardRef as N } from "react";
6
- import { ButtonVariants as u } from "../../components/Button/types.js";
7
- import { TextVariants as h } from "../../components/Text/types.js";
8
- import x from "../../components/Text/Text.js";
9
- const b = N(
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import p from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as u } from "../../utils/index.js";
4
+ import N from "../../components/Button/Button.js";
5
+ import { forwardRef as h } from "react";
6
+ import { ButtonVariants as S } from "../../components/Button/types.js";
7
+ import { TextVariants as t } from "../../components/Text/types.js";
8
+ import m from "../../components/Text/Text.js";
9
+ const b = h(
10
10
  ({
11
- className: t,
12
- children: e,
13
- titleText: m = "Never Miss A Moment",
14
- buttonText: s = "Subscribe To Our Newsletter",
15
- onSubscribeClick: i,
11
+ className: e,
12
+ children: s,
13
+ titleText: i = "Never miss a moment",
14
+ buttonText: l = "Subscribe to our newsletter",
15
+ onSubscribeClick: n,
16
16
  ...o
17
- }, n) => {
18
- const { className: r, ...c } = p(o, "Social");
19
- return /* @__PURE__ */ l("div", { ref: n, ...c, className: f(r, t), ...o, children: [
20
- /* @__PURE__ */ a(x, { variant: h.heading4, className: `${r}__header`, children: m }),
21
- /* @__PURE__ */ a(d, { onClick: i, variant: u.tertiary, className: `${r}__button`, children: s }),
22
- e
17
+ }, c) => {
18
+ const { className: a, ...f } = u(o, "Social");
19
+ return /* @__PURE__ */ d("div", { ref: c, ...f, className: p(a, e), ...o, children: [
20
+ /* @__PURE__ */ r(m, { variant: t.headingSmall, className: `${a}__header`, children: i }),
21
+ /* @__PURE__ */ r(N, { onClick: n, variant: S.tertiary, className: `${a}__button`, children: /* @__PURE__ */ r(m, { variant: t.labelSmall, children: l }) }),
22
+ s
23
23
  ] });
24
24
  }
25
25
  );
@@ -15,7 +15,6 @@ export declare const Playground: {
15
15
  blurb: string;
16
16
  subscriptionState: SubscriptionState;
17
17
  invalidText: string;
18
- warn: boolean;
19
18
  successText: string;
20
19
  };
21
20
  };
@@ -1,15 +1,15 @@
1
- import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { getCommonProps as p } from "../../utils/index.js";
4
- import n from "../../node_modules/classnames/index.js";
5
- import { TextVariants as d } from "../../components/Text/types.js";
6
- import f from "../../components/Text/Text.js";
7
- const x = c(
8
- ({ headerText: o, className: t, description: a, ...s }, m) => {
9
- const { className: e, ...i } = p(s, "TextBanner");
10
- return /* @__PURE__ */ r("header", { ...i, className: n(e, t), ref: m, ...s, children: /* @__PURE__ */ l("span", { className: n(`${e}__content-wrapper`), children: [
11
- /* @__PURE__ */ r(f, { variant: d.snwHeadingHero1, children: o }),
12
- a ? /* @__PURE__ */ r("p", { className: `${e}__text-description`, children: a }) : null
1
+ import { jsx as a, jsxs as i } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { getCommonProps as d } from "../../utils/index.js";
4
+ import s from "../../node_modules/classnames/index.js";
5
+ import { TextVariants as f } from "../../components/Text/types.js";
6
+ import t from "../../components/Text/Text.js";
7
+ const x = p(
8
+ ({ headerText: n, className: o, description: r, ...m }, l) => {
9
+ const { className: e, ...c } = d(m, "TextBanner");
10
+ return /* @__PURE__ */ a("header", { ...c, className: s(e, o), ref: l, ...m, children: /* @__PURE__ */ i("span", { className: s(`${e}__content-wrapper`), children: [
11
+ /* @__PURE__ */ a(t, { className: `${e}__header-text`, variant: f.displaySmall, children: n }),
12
+ r ? /* @__PURE__ */ a(t, { element: "p", children: r }) : null
13
13
  ] }) });
14
14
  }
15
15
  );