@phillips/seldon 1.108.1 → 1.108.3

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.
@@ -4,30 +4,30 @@ import { getCommonProps as v } from "../../utils/index.js";
4
4
  import x from "../../node_modules/classnames/index.js";
5
5
  import { SupportedLanguages as $ } from "../../types/commonTypes.js";
6
6
  import { CountdownVariants as i } from "./types.js";
7
- import { Duration as a } from "./Duration.js";
7
+ import { Duration as m } from "./Duration.js";
8
8
  import { zhCN as j } from "../../node_modules/date-fns/locale/zh-CN.js";
9
9
  import { enUS as z } from "../../node_modules/date-fns/locale/en-US.js";
10
10
  import { differenceInDays as P } from "../../node_modules/date-fns/differenceInDays.js";
11
- import { differenceInHours as S } from "../../node_modules/date-fns/differenceInHours.js";
12
- import { differenceInMinutes as _ } from "../../node_modules/date-fns/differenceInMinutes.js";
13
- import { differenceInSeconds as E } from "../../node_modules/date-fns/differenceInSeconds.js";
14
- const F = L(
11
+ import { differenceInHours as _ } from "../../node_modules/date-fns/differenceInHours.js";
12
+ import { differenceInMinutes as E } from "../../node_modules/date-fns/differenceInMinutes.js";
13
+ import { differenceInSeconds as F } from "../../node_modules/date-fns/differenceInSeconds.js";
14
+ const H = L(
15
15
  ({
16
16
  endDateTime: n,
17
- formatDurationStr: m,
17
+ formatDurationStr: r,
18
18
  label: l = "Lots Close in",
19
19
  intervalDescription: f,
20
20
  className: p,
21
21
  locale: h = "en",
22
22
  showBottomBorder: w = !0,
23
- variant: u = i.default,
24
- ...c
23
+ variant: c = i.default,
24
+ ...u
25
25
  }, C) => {
26
- const { className: r, ...y } = v(c, "Countdown"), [t, I] = b(/* @__PURE__ */ new Date()), s = h === $.zh ? j : z, o = {
26
+ const { className: s, ...y } = v(u, "Countdown"), [t, I] = b(/* @__PURE__ */ new Date()), a = h === $.zh ? j : z, o = {
27
27
  days: P(n, t),
28
- hours: S(n, t) % 24,
29
- minutes: _(n, t) % 60,
30
- seconds: E(n, t) % 60 % 60
28
+ hours: _(n, t) % 24,
29
+ minutes: E(n, t) % 60,
30
+ seconds: F(n, t) % 60 % 60
31
31
  };
32
32
  return g(() => {
33
33
  const N = setInterval(() => {
@@ -38,27 +38,27 @@ const F = L(
38
38
  "div",
39
39
  {
40
40
  ...y,
41
- className: x(r, p, {
42
- [`${r}--compact`]: u === i.compact,
43
- [`${r}--show-bottom-border`]: w
41
+ className: x(s, p, {
42
+ [`${s}--compact`]: c === i.compact,
43
+ [`${s}--show-bottom-border`]: w
44
44
  }),
45
- ...c,
45
+ ...u,
46
46
  ref: C,
47
47
  children: [
48
- /* @__PURE__ */ d("div", { className: `${r}__countdown-container`, role: "timer", "aria-label": l, children: [
48
+ /* @__PURE__ */ d("div", { className: `${s}__countdown-container`, role: "timer", "aria-label": l, children: [
49
49
  /* @__PURE__ */ e("span", { children: l }),
50
- o.days > 0 ? /* @__PURE__ */ e(a, { duration: o, unit: "days", locale: s, formatDurationStr: m }) : null,
51
- o.days > 0 || o.hours > 0 ? /* @__PURE__ */ e(a, { duration: o, unit: "hours", locale: s }) : null,
52
- o.days === 0 ? /* @__PURE__ */ e(a, { duration: o, unit: "minutes", locale: s, formatDurationStr: m }) : null,
53
- o.days === 0 && o.hours === 0 ? /* @__PURE__ */ e(a, { duration: o, unit: "seconds", locale: s, formatDurationStr: m }) : null
50
+ o.days > 0 ? /* @__PURE__ */ e(m, { duration: o, unit: "days", locale: a, formatDurationStr: r }) : null,
51
+ o.days > 0 || o.hours > 0 ? /* @__PURE__ */ e(m, { duration: o, unit: "hours", locale: a, formatDurationStr: r }) : null,
52
+ o.days === 0 ? /* @__PURE__ */ e(m, { duration: o, unit: "minutes", locale: a, formatDurationStr: r }) : null,
53
+ o.days === 0 && o.hours === 0 ? /* @__PURE__ */ e(m, { duration: o, unit: "seconds", locale: a, formatDurationStr: r }) : null
54
54
  ] }),
55
- u === i.default ? /* @__PURE__ */ e("span", { children: f }) : null
55
+ c === i.default ? /* @__PURE__ */ e("span", { children: f }) : null
56
56
  ]
57
57
  }
58
58
  );
59
59
  }
60
60
  );
61
- F.displayName = "Countdown";
61
+ H.displayName = "Countdown";
62
62
  export {
63
- F as default
63
+ H as default
64
64
  };
@@ -63,12 +63,12 @@
63
63
  }
64
64
 
65
65
  &:first-child {
66
- padding-right: $spacing-xsm;
66
+ padding-right: $spacing-sm;
67
67
  }
68
68
 
69
69
  &:not(:first-child) {
70
70
  border-left: 1px solid $keyline-gray;
71
- padding-left: $spacing-xsm;
71
+ padding-left: $spacing-sm;
72
72
  }
73
73
  }
74
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.108.1",
3
+ "version": "1.108.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"