@phillips/seldon 1.79.3 → 1.81.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 (68) hide show
  1. package/dist/components/Countdown/Countdown.d.ts +36 -0
  2. package/dist/components/Countdown/Countdown.js +50 -0
  3. package/dist/components/Countdown/Countdown.stories.d.ts +19 -0
  4. package/dist/components/Countdown/Countdown.test.d.ts +1 -0
  5. package/dist/components/Countdown/Duration.d.ts +7 -0
  6. package/dist/components/Countdown/Duration.js +14 -0
  7. package/dist/components/Countdown/Duration.test.d.ts +1 -0
  8. package/dist/components/Countdown/index.d.ts +1 -0
  9. package/dist/components/Countdown/types.d.ts +4 -0
  10. package/dist/components/Countdown/types.js +4 -0
  11. package/dist/components/Text/types.d.ts +3 -1
  12. package/dist/components/Text/types.js +2 -2
  13. package/dist/components/Text/utils.js +6 -3
  14. package/dist/index.d.ts +3 -1
  15. package/dist/index.js +146 -144
  16. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  17. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +9 -0
  18. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  19. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  20. package/dist/node_modules/date-fns/constants.js +7 -0
  21. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  22. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  23. package/dist/node_modules/date-fns/differenceInDays.js +22 -0
  24. package/dist/node_modules/date-fns/differenceInHours.js +15 -0
  25. package/dist/node_modules/date-fns/differenceInMilliseconds.js +8 -0
  26. package/dist/node_modules/date-fns/differenceInMinutes.js +11 -0
  27. package/dist/node_modules/date-fns/differenceInSeconds.js +10 -0
  28. package/dist/node_modules/date-fns/formatDuration.js +23 -0
  29. package/dist/node_modules/date-fns/isSameWeek.js +14 -0
  30. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  31. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  32. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  33. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  34. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  35. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  36. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  37. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  38. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  39. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  40. package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +70 -0
  41. package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +33 -0
  42. package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +21 -0
  43. package/dist/node_modules/date-fns/locale/zh-CN/_lib/localize.js +162 -0
  44. package/dist/node_modules/date-fns/locale/zh-CN/_lib/match.js +108 -0
  45. package/dist/node_modules/date-fns/locale/zh-CN.js +21 -0
  46. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  47. package/dist/node_modules/date-fns/startOfWeek.js +11 -0
  48. package/dist/node_modules/date-fns/toDate.js +8 -0
  49. package/dist/node_modules/exenv/index.js +1 -1
  50. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  51. package/dist/patterns/HeroBanner/HeroBanner.d.ts +5 -1
  52. package/dist/patterns/HeroBanner/HeroBanner.js +24 -23
  53. package/dist/patterns/HeroBanner/HeroBanner.stories.d.ts +1 -1
  54. package/dist/patterns/SaleHeaderBanner/index.d.ts +0 -1
  55. package/dist/scss/_type.scss +12 -0
  56. package/dist/scss/_vars.scss +17 -1
  57. package/dist/scss/componentStyles.scss +2 -0
  58. package/dist/scss/components/Accordion/_accordion.scss +2 -2
  59. package/dist/scss/components/Countdown/_countdown.scss +25 -0
  60. package/dist/scss/components/Countdown/_duration.scss +13 -0
  61. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +1 -1
  62. package/dist/scss/patterns/HeroBanner/_heroBanner.scss +11 -12
  63. package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +0 -11
  64. package/dist/scss/site-furniture/Header/_header.scss +1 -6
  65. package/dist/site-furniture/Header/Header.js +4 -4
  66. package/package.json +2 -1
  67. package/dist/patterns/SaleHeaderBanner/SaleHeaderCountdown.d.ts +0 -8
  68. package/dist/patterns/SaleHeaderBanner/SaleHeaderCountdown.js +0 -35
@@ -2,7 +2,7 @@
2
2
 
3
3
  .#{$px}-hero-banner {
4
4
  align-items: center;
5
- background: linear-gradient(rgba(0, 0, 0, 60%), rgba(0, 0, 0, 60%)), var(--background);
5
+ background: var(--gradient), var(--background);
6
6
  background-position: center center;
7
7
  background-repeat: no-repeat;
8
8
  background-size: cover;
@@ -11,19 +11,21 @@
11
11
  justify-content: center;
12
12
  min-height: 25rem;
13
13
  padding: 1rem;
14
+ text-transform: uppercase;
14
15
  width: 100%;
15
16
 
16
17
  @include media($size-md, $type: 'max') {
17
18
  align-items: center;
18
19
  align-self: stretch;
19
20
  background: transparent;
21
+ background-color: $pure-black;
20
22
  flex-direction: column;
21
23
  gap: 1.875rem;
22
24
  min-height: unset;
23
- padding: 1.875rem 0 0;
25
+ padding: 1.875rem 0.9375rem;
24
26
 
25
- &::after {
26
- background: var(--background);
27
+ &::before {
28
+ background: var(--gradient), var(--background);
27
29
  background-position: center center;
28
30
  background-repeat: no-repeat;
29
31
  background-size: cover;
@@ -38,19 +40,11 @@
38
40
  margin: 0;
39
41
  }
40
42
 
41
- p {
42
- margin: 1.875rem 0;
43
- }
44
-
45
43
  h1,
46
44
  h2,
47
45
  p {
48
46
  color: $pure-white;
49
47
  text-align: center;
50
-
51
- @include media($size-md, $type: 'max') {
52
- color: $pure-black;
53
- }
54
48
  }
55
49
 
56
50
  p {
@@ -72,6 +66,7 @@
72
66
  display: flex;
73
67
  font-size: 0.75rem;
74
68
  gap: 1.875rem;
69
+ padding-bottom: 1.875rem;
75
70
 
76
71
  @include media($size-md) {
77
72
  font-size: 0.875rem;
@@ -83,4 +78,8 @@
83
78
  gap: 1rem;
84
79
  }
85
80
  }
81
+
82
+ & .#{$px}-hero-banner__after-head {
83
+ padding-top: 1.875rem;
84
+ }
86
85
  }
@@ -23,17 +23,6 @@
23
23
  padding: $spacing-md 0;
24
24
  }
25
25
 
26
- // update when adding in actual countdown timer
27
- &__countdown-container {
28
- align-items: center;
29
- border-bottom: 1px solid $light-gray;
30
- display: flex;
31
- gap: $spacing-sm;
32
- justify-content: center;
33
- margin-bottom: 1.5rem;
34
- width: 100%;
35
- }
36
-
37
26
  &__location {
38
27
  font-variation-settings: 'wght' 600;
39
28
  margin: $margin-xsm 0;
@@ -77,17 +77,12 @@
77
77
  padding-top: 6px; // small adjustment to center the logo
78
78
 
79
79
  svg {
80
- height: 24px;
80
+ height: 25.73px; // 25.73px is the height of the logo's container to make logo 20px
81
81
  width: 100%;
82
82
  }
83
83
 
84
84
  @include isHeaderDesktop {
85
85
  padding-top: 0;
86
-
87
- svg {
88
- height: 28px;
89
- width: 100%;
90
- }
91
86
  }
92
87
  }
93
88
 
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
2
  import l, { createContext as T, forwardRef as P, useState as h } from "react";
3
3
  import d from "../../node_modules/classnames/index.js";
4
- import { findChildrenOfType as s, findChildrenExcludingTypes as j, px as e } from "../../utils/index.js";
4
+ import { findChildrenOfType as i, findChildrenExcludingTypes as j, px as e } from "../../utils/index.js";
5
5
  import R from "../../assets/PhillipsLogo.svg.js";
6
6
  import p from "../../patterns/UserManagement/UserManagement.js";
7
7
  import g from "../../patterns/LanguageSelector/LanguageSelector.js";
@@ -10,7 +10,7 @@ import { defaultHeaderContext as w } from "./utils.js";
10
10
  import { SSRMediaQuery as I } from "../../providers/SeldonProvider/utils.js";
11
11
  const L = T(w), k = P(
12
12
  ({
13
- logo: i = /* @__PURE__ */ a(R, {}),
13
+ logo: s = /* @__PURE__ */ a(R, {}),
14
14
  logoHref: u = "/",
15
15
  className: _,
16
16
  children: r,
@@ -19,7 +19,7 @@ const L = T(w), k = P(
19
19
  logoText: C = "Home Page",
20
20
  ...y
21
21
  }, E) => {
22
- const M = s(r, p), m = s(r, g), [c, $] = h(!1), b = s(r, f), N = j(r, [f, p, g]), [n, S] = h(!1), H = n ? x : v, O = function() {
22
+ const M = i(r, p), m = i(r, g), [c, $] = h(!1), b = i(r, f), N = j(r, [f, p, g]), [n, S] = h(!1), H = n ? x : v, O = function() {
23
23
  S((t) => !t);
24
24
  };
25
25
  return /* @__PURE__ */ o("header", { ...y, className: d(`${e}-header`, _), ref: E, children: [
@@ -41,7 +41,7 @@ const L = T(w), k = P(
41
41
  ]
42
42
  }
43
43
  ),
44
- /* @__PURE__ */ a("h1", { "data-testid": "header-logo", className: `${e}-header__logo`, children: /* @__PURE__ */ a("a", { href: u, "aria-label": C, children: typeof i == "object" ? i : /* @__PURE__ */ a("img", { alt: "Phillips", "data-testid": "header-logo-img", src: i, height: "14" }) }) }),
44
+ /* @__PURE__ */ a("h1", { "data-testid": "header-logo", className: `${e}-header__logo`, children: /* @__PURE__ */ a("a", { href: u, "aria-label": C, children: typeof s == "object" ? s : /* @__PURE__ */ a("img", { alt: "Phillips", "data-testid": "header-logo-img", src: s }) }) }),
45
45
  M
46
46
  ] }),
47
47
  /* @__PURE__ */ a("div", { className: d(`${e}-header__nav`, { [`${e}-header__nav--closed`]: !n }), children: /* @__PURE__ */ o(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.79.3",
3
+ "version": "1.81.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -49,6 +49,7 @@
49
49
  "@types/dompurify": "^3.0.5",
50
50
  "change-case": "^5.4.4",
51
51
  "classnames": "^2.5.1",
52
+ "date-fns": "^4.1.0",
52
53
  "dompurify": "^3.1.6",
53
54
  "embla-carousel-react": "^8.3.0",
54
55
  "embla-carousel-wheel-gestures": "^8.0.1",
@@ -1,8 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- export interface SaleHeaderCountdownProps extends ComponentProps<'div'> {
3
- label?: string;
4
- daysLabel?: string;
5
- hoursLabel?: string;
6
- }
7
- declare const SaleHeaderCountdown: import('react').ForwardRefExoticComponent<Omit<SaleHeaderCountdownProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
- export default SaleHeaderCountdown;
@@ -1,35 +0,0 @@
1
- import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { getCommonProps as f } from "../../utils/index.js";
4
- import { TextVariants as e } from "../../components/Text/types.js";
5
- import r from "../../components/Text/Text.js";
6
- const h = c(
7
- ({ label: n = "Lots Close in", daysLabel: s = "Days", hoursLabel: t = "Hours", className: p, ...o }, i) => {
8
- const { className: m, ...d } = f(o, "SaleHeaderBanner");
9
- return /* @__PURE__ */ a(
10
- "div",
11
- {
12
- id: "PLACEHOLDER FOR TIMER COMPONENT",
13
- className: `${m}__countdown-container`,
14
- ...d,
15
- ...o,
16
- ref: i,
17
- children: [
18
- /* @__PURE__ */ l(r, { variant: e.heading5, children: n }),
19
- /* @__PURE__ */ a(r, { variant: e.heading5, children: [
20
- "2 ",
21
- s
22
- ] }),
23
- /* @__PURE__ */ a(r, { variant: e.heading5, children: [
24
- "17 ",
25
- t
26
- ] })
27
- ]
28
- }
29
- );
30
- }
31
- );
32
- h.displayName = "SaleHeaderCountdown";
33
- export {
34
- h as default
35
- };