@phillips/seldon 1.254.0 → 1.255.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/_virtual/index10.cjs +1 -1
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/_virtual/index7.js +3 -2
- package/dist/_virtual/index8.cjs +1 -1
- package/dist/_virtual/index8.js +2 -3
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/AddToCalendar/calendarLinks.cjs +1 -1
- package/dist/components/AddToCalendar/calendarLinks.js +1 -1
- package/dist/components/Countdown/Countdown.cjs +1 -1
- package/dist/components/Countdown/Countdown.js +90 -84
- package/dist/node_modules/ics/dist/index.cjs +1 -1
- package/dist/node_modules/ics/dist/index.js +1 -1
- package/dist/node_modules/prop-types/index.cjs +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.cjs +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/scss/components/Countdown/_countdown.scss +38 -16
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/_virtual/index10.js
CHANGED
package/dist/_virtual/index7.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../node_modules/ics/dist/index.cjs");var r=e.__require();exports.distExports=r;
|
package/dist/_virtual/index7.js
CHANGED
package/dist/_virtual/index8.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/_virtual/index8.js
CHANGED
package/dist/_virtual/index9.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/_virtual/index9.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../_virtual/index7.cjs"),H=require("../../node_modules/date-fns/isValid.cjs"),m=require("../../node_modules/date-fns-tz/dist/esm/toZonedTime/index.cjs"),c=require("../../node_modules/date-fns/addHours.cjs"),a=require("../../node_modules/date-fns/format.cjs"),d={google:"https://calendar.google.com/calendar/u/0/r/eventedit",outlook:"https://outlook.office.com/calendar/0/deeplink/compose",yahoo:"https://calendar.yahoo.com/"},M=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return console.warn("Unable to determine user's timezone. Using UTC as a fallback."),"UTC"}},y=o=>new URLSearchParams(o),l=(o,t)=>{if(!t.start||!H.isValid(t.start))return console.error("Invalid event start date:",t),"#";const e=M(),n=m.toZonedTime(t.start,o==="google"?t.timezone:e),r=t.end?m.toZonedTime(t.end,o==="google"?t.timezone:e):null;switch(o){case"google":return h(n,r,t);case"outlook":return k(n,r,t);case"yahoo":return f(n,r,t);default:return console.error("Invalid calendar type:",o),"#"}},h=(o,t,e)=>{const n=y({text:e.title,dates:t?`${a.format(o,"yyyyMMdd'T'HHmmss")}/${a.format(t,"yyyyMMdd'T'HHmmss")}`:`${a.format(o,"yyyyMMdd'T'HHmmss")}/${a.format(c.addHours(o,1),"yyyyMMdd'T'HHmmss")}`,ctz:e.timezone,details:e.description,location:e.location}),r=new URL(d.google);return r.search=n.toString(),r.toString()},k=(o,t,e)=>{const n=y({path:"/calendar/action/compose",rru:"addevent",subject:e.title,startdt:a.format(o,"yyyy-MM-dd'T'HH:mm:ssXXX"),enddt:t?a.format(t,"yyyy-MM-dd'T'HH:mm:ssXXX"):a.format(c.addHours(o,1),"yyyy-MM-dd'T'HH:mm:ssXXX"),body:e.description,location:e.location,allday:"false"}),r=new URL(d.outlook);return r.search=n.toString(),r.toString()},f=(o,t,e)=>{const n=encodeURIComponent(e.title),r=encodeURIComponent(e.description),i=encodeURIComponent(e.location),s=a.format(o,"yyyyMMdd'T'HHmmss"),u=t?a.format(t,"yyyyMMdd'T'HHmmss"):a.format(c.addHours(o,1),"yyyyMMdd'T'HHmmss");return`${d.yahoo}?v=60&view=d&type=20&title=${n}&st=${s}&et=${u}&desc=${r}&in_loc=${i}`},p=o=>l("google",o),L=o=>l("outlook",o),C=o=>l("yahoo",o),U=o=>{if(!o.start){console.error("Invalid event start date:",o);return}const t=o.end?o.end:c.addHours(o.start,1);g.distExports.createEvent({title:o.title,description:o.description,start:[o.start.getFullYear(),o.start.getMonth()+1,o.start.getDate(),o.start.getHours(),o.start.getMinutes()],end:[t.getFullYear(),t.getMonth()+1,t.getDate(),t.getHours(),t.getMinutes()],location:o.location},(e,n)=>{if(e)console.error("Error creating iCalendar event:",e);else{const r=new File([n],`${o.title}.ics`,{type:"text/calendar"}),i=URL.createObjectURL(r),s=document.createElement("a");s.href=i,s.download=r.name,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)}})};exports.generateCalendarFile=U;exports.generateGoogleCalendarLink=p;exports.generateOutlookOnlineLink=L;exports.generateYahooCalendarLink=C;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as u } from "../../_virtual/
|
|
1
|
+
import { d as u } from "../../_virtual/index7.js";
|
|
2
2
|
import { isValid as p } from "../../node_modules/date-fns/isValid.js";
|
|
3
3
|
import { toZonedTime as m } from "../../node_modules/date-fns-tz/dist/esm/toZonedTime/index.js";
|
|
4
4
|
import { addHours as i } from "../../node_modules/date-fns/addHours.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),f=require("react"),L=require("../../utils/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),f=require("react"),L=require("../../utils/index.cjs"),z=require("../../_virtual/index.cjs"),H=require("../../types/commonTypes.cjs"),i=require("./types.cjs"),m=require("./Duration.cjs"),x=require("../Text/types.cjs"),P=require("../Text/Text.cjs"),R=require("../../node_modules/date-fns/locale/zh-CN.cjs"),U=require("../../node_modules/date-fns/locale/en-US.cjs"),I=require("../../node_modules/date-fns/differenceInSeconds.cjs"),y=require("../../node_modules/date-fns/differenceInMinutes.cjs"),p=require("../../node_modules/date-fns/differenceInHours.cjs"),C=require("../../node_modules/date-fns/differenceInDays.cjs"),E=require("../../node_modules/date-fns/differenceInMilliseconds.cjs"),j=f.forwardRef(({endDateTime:e,formatDurationStr:a,label:h="Lots Close in",intervalDescription:g,className:M,locale:N="en",showBottomBorder:V=!0,variant:l=i.CountdownVariants.default,getCurrentDateTime:u=()=>new Date,...q},$)=>{const{className:r,...b}=L.getCommonProps(q,"Countdown"),[s,S]=f.useState(u()||new Date),d=N===H.SupportedLanguages.zh?R.zhCN:U.enUS,n={days:C.differenceInDays(e,s)>0?C.differenceInDays(e,s):0,hours:p.differenceInHours(e,s)>0?p.differenceInHours(e,s)%24:0,minutes:y.differenceInMinutes(e,s)>0?y.differenceInMinutes(e,s)%60:0,seconds:(I.differenceInSeconds(e,s)>0?I.differenceInSeconds(e,s)%60:0)%60};f.useEffect(()=>{const t=setInterval(()=>{S(u()||new Date)},1e3);return()=>clearInterval(t)},[e,u]);const _=f.useMemo(()=>{const t=u();return!!t&&new Date(e).getTime()>t.getTime()},[e,u]),v=E.differenceInMilliseconds(e,s)<=180*1e3,c=l===i.CountdownVariants.sm?x.TextVariants.labelSmall:x.TextVariants.labelMedium,w=[n.days>0?o.jsx(m.Duration,{duration:n,unit:"days",locale:d,formatDurationStr:a,textVariant:c},"days"):null,n.days>0||n.hours>0?o.jsx(m.Duration,{duration:n,unit:"hours",locale:d,formatDurationStr:a,textVariant:c},"hours"):null,n.days===0?o.jsx(m.Duration,{duration:n,unit:"minutes",locale:d,formatDurationStr:a,textVariant:c},"minutes"):null,n.days===0&&n.hours===0?o.jsx(m.Duration,{duration:n,unit:"seconds",locale:d,formatDurationStr:a,textVariant:c},"seconds"):null].filter(t=>t!=null);return _?o.jsxs("div",{"data-chromatic":"ignore",...b,className:z.default(r,M,{[`${r}--compact`]:l===i.CountdownVariants.compact,[`${r}--sm`]:l===i.CountdownVariants.sm,[`${r}--show-bottom-border`]:V,[`${r}--closing-lot`]:v}),...q,ref:$,children:[o.jsxs("div",{className:`${r}__countdown-container`,role:"timer","aria-label":h,children:[o.jsx(P.default,{variant:c,children:h}),w.length>0?o.jsx("div",{className:`${r}__duration-group`,children:w}):null]}),l===i.CountdownVariants.default?o.jsx("span",{children:g}):null]}):null});j.displayName="Countdown";exports.default=j;
|
|
@@ -1,106 +1,112 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as z, useState as P, useEffect as S, useMemo as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useState as P, useEffect as S, useMemo as E } from "react";
|
|
3
|
+
import { getCommonProps as F } from "../../utils/index.js";
|
|
4
|
+
import G from "../../_virtual/index.js";
|
|
5
5
|
import { SupportedLanguages as H } from "../../types/commonTypes.js";
|
|
6
|
-
import { CountdownVariants as
|
|
7
|
-
import { Duration as
|
|
8
|
-
import { TextVariants as
|
|
6
|
+
import { CountdownVariants as i } from "./types.js";
|
|
7
|
+
import { Duration as d } from "./Duration.js";
|
|
8
|
+
import { TextVariants as y } from "../Text/types.js";
|
|
9
9
|
import R from "../Text/Text.js";
|
|
10
10
|
import { zhCN as U } from "../../node_modules/date-fns/locale/zh-CN.js";
|
|
11
11
|
import { enUS as k } from "../../node_modules/date-fns/locale/en-US.js";
|
|
12
|
-
import { differenceInSeconds as
|
|
13
|
-
import { differenceInMinutes as
|
|
14
|
-
import { differenceInHours as
|
|
15
|
-
import { differenceInDays as
|
|
12
|
+
import { differenceInSeconds as g } from "../../node_modules/date-fns/differenceInSeconds.js";
|
|
13
|
+
import { differenceInMinutes as C } from "../../node_modules/date-fns/differenceInMinutes.js";
|
|
14
|
+
import { differenceInHours as I } from "../../node_modules/date-fns/differenceInHours.js";
|
|
15
|
+
import { differenceInDays as N } from "../../node_modules/date-fns/differenceInDays.js";
|
|
16
16
|
import { differenceInMilliseconds as q } from "../../node_modules/date-fns/differenceInMilliseconds.js";
|
|
17
17
|
const A = z(
|
|
18
18
|
({
|
|
19
19
|
endDateTime: o,
|
|
20
|
-
formatDurationStr:
|
|
21
|
-
label:
|
|
22
|
-
intervalDescription:
|
|
23
|
-
className:
|
|
24
|
-
locale:
|
|
25
|
-
showBottomBorder:
|
|
26
|
-
variant:
|
|
27
|
-
getCurrentDateTime:
|
|
20
|
+
formatDurationStr: a,
|
|
21
|
+
label: f = "Lots Close in",
|
|
22
|
+
intervalDescription: x,
|
|
23
|
+
className: $,
|
|
24
|
+
locale: b = "en",
|
|
25
|
+
showBottomBorder: L = !0,
|
|
26
|
+
variant: m = i.default,
|
|
27
|
+
getCurrentDateTime: l = () => /* @__PURE__ */ new Date(),
|
|
28
28
|
...p
|
|
29
|
-
},
|
|
30
|
-
const { className:
|
|
31
|
-
days:
|
|
32
|
-
hours:
|
|
33
|
-
minutes:
|
|
34
|
-
seconds: (
|
|
29
|
+
}, M) => {
|
|
30
|
+
const { className: r, ..._ } = F(p, "Countdown"), [n, v] = P(l() || /* @__PURE__ */ new Date()), u = b === H.zh ? U : k, s = {
|
|
31
|
+
days: N(o, n) > 0 ? N(o, n) : 0,
|
|
32
|
+
hours: I(o, n) > 0 ? I(o, n) % 24 : 0,
|
|
33
|
+
minutes: C(o, n) > 0 ? C(o, n) % 60 : 0,
|
|
34
|
+
seconds: (g(o, n) > 0 ? g(o, n) % 60 : 0) % 60
|
|
35
35
|
};
|
|
36
36
|
S(() => {
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
const e = setInterval(() => {
|
|
38
|
+
v(l() || /* @__PURE__ */ new Date());
|
|
39
39
|
}, 1e3);
|
|
40
|
-
return () => clearInterval(
|
|
41
|
-
}, [o,
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
return !!
|
|
45
|
-
}, [o,
|
|
46
|
-
|
|
40
|
+
return () => clearInterval(e);
|
|
41
|
+
}, [o, l]);
|
|
42
|
+
const V = E(() => {
|
|
43
|
+
const e = l();
|
|
44
|
+
return !!e && new Date(o).getTime() > e.getTime();
|
|
45
|
+
}, [o, l]), j = q(o, n) <= 180 * 1e3, c = m === i.sm ? y.labelSmall : y.labelMedium, h = [
|
|
46
|
+
s.days > 0 ? /* @__PURE__ */ t(
|
|
47
|
+
d,
|
|
48
|
+
{
|
|
49
|
+
duration: s,
|
|
50
|
+
unit: "days",
|
|
51
|
+
locale: u,
|
|
52
|
+
formatDurationStr: a,
|
|
53
|
+
textVariant: c
|
|
54
|
+
},
|
|
55
|
+
"days"
|
|
56
|
+
) : null,
|
|
57
|
+
s.days > 0 || s.hours > 0 ? /* @__PURE__ */ t(
|
|
58
|
+
d,
|
|
59
|
+
{
|
|
60
|
+
duration: s,
|
|
61
|
+
unit: "hours",
|
|
62
|
+
locale: u,
|
|
63
|
+
formatDurationStr: a,
|
|
64
|
+
textVariant: c
|
|
65
|
+
},
|
|
66
|
+
"hours"
|
|
67
|
+
) : null,
|
|
68
|
+
s.days === 0 ? /* @__PURE__ */ t(
|
|
69
|
+
d,
|
|
70
|
+
{
|
|
71
|
+
duration: s,
|
|
72
|
+
unit: "minutes",
|
|
73
|
+
locale: u,
|
|
74
|
+
formatDurationStr: a,
|
|
75
|
+
textVariant: c
|
|
76
|
+
},
|
|
77
|
+
"minutes"
|
|
78
|
+
) : null,
|
|
79
|
+
s.days === 0 && s.hours === 0 ? /* @__PURE__ */ t(
|
|
80
|
+
d,
|
|
81
|
+
{
|
|
82
|
+
duration: s,
|
|
83
|
+
unit: "seconds",
|
|
84
|
+
locale: u,
|
|
85
|
+
formatDurationStr: a,
|
|
86
|
+
textVariant: c
|
|
87
|
+
},
|
|
88
|
+
"seconds"
|
|
89
|
+
) : null
|
|
90
|
+
].filter((e) => e != null);
|
|
91
|
+
return V ? /* @__PURE__ */ w(
|
|
47
92
|
"div",
|
|
48
93
|
{
|
|
49
94
|
"data-chromatic": "ignore",
|
|
50
|
-
...
|
|
51
|
-
className:
|
|
52
|
-
[`${
|
|
53
|
-
[`${
|
|
54
|
-
[`${
|
|
55
|
-
[`${
|
|
95
|
+
..._,
|
|
96
|
+
className: G(r, $, {
|
|
97
|
+
[`${r}--compact`]: m === i.compact,
|
|
98
|
+
[`${r}--sm`]: m === i.sm,
|
|
99
|
+
[`${r}--show-bottom-border`]: L,
|
|
100
|
+
[`${r}--closing-lot`]: j
|
|
56
101
|
}),
|
|
57
102
|
...p,
|
|
58
|
-
ref:
|
|
103
|
+
ref: M,
|
|
59
104
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */ t(R, { variant:
|
|
62
|
-
|
|
63
|
-
f,
|
|
64
|
-
{
|
|
65
|
-
duration: s,
|
|
66
|
-
unit: "days",
|
|
67
|
-
locale: i,
|
|
68
|
-
formatDurationStr: m,
|
|
69
|
-
textVariant: l
|
|
70
|
-
}
|
|
71
|
-
) : null,
|
|
72
|
-
s.days > 0 || s.hours > 0 ? /* @__PURE__ */ t(
|
|
73
|
-
f,
|
|
74
|
-
{
|
|
75
|
-
duration: s,
|
|
76
|
-
unit: "hours",
|
|
77
|
-
locale: i,
|
|
78
|
-
formatDurationStr: m,
|
|
79
|
-
textVariant: l
|
|
80
|
-
}
|
|
81
|
-
) : null,
|
|
82
|
-
s.days === 0 ? /* @__PURE__ */ t(
|
|
83
|
-
f,
|
|
84
|
-
{
|
|
85
|
-
duration: s,
|
|
86
|
-
unit: "minutes",
|
|
87
|
-
locale: i,
|
|
88
|
-
formatDurationStr: m,
|
|
89
|
-
textVariant: l
|
|
90
|
-
}
|
|
91
|
-
) : null,
|
|
92
|
-
s.days === 0 && s.hours === 0 ? /* @__PURE__ */ t(
|
|
93
|
-
f,
|
|
94
|
-
{
|
|
95
|
-
duration: s,
|
|
96
|
-
unit: "seconds",
|
|
97
|
-
locale: i,
|
|
98
|
-
formatDurationStr: m,
|
|
99
|
-
textVariant: l
|
|
100
|
-
}
|
|
101
|
-
) : null
|
|
105
|
+
/* @__PURE__ */ w("div", { className: `${r}__countdown-container`, role: "timer", "aria-label": f, children: [
|
|
106
|
+
/* @__PURE__ */ t(R, { variant: c, children: f }),
|
|
107
|
+
h.length > 0 ? /* @__PURE__ */ t("div", { className: `${r}__duration-group`, children: h }) : null
|
|
102
108
|
] }),
|
|
103
|
-
|
|
109
|
+
m === i.default ? /* @__PURE__ */ t("span", { children: x }) : null
|
|
104
110
|
]
|
|
105
111
|
}
|
|
106
112
|
) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../_virtual/index9.cjs"),q=require("./pipeline/index.cjs");var h;function U(){if(h)return o.__exports;h=1,Object.defineProperty(o.__exports,"__esModule",{value:!0}),o.__exports.convertTimestampToArray=T,o.__exports.createEvent=E,o.__exports.createEvents=d,o.__exports.isValidURL=j;var u=q.__require();function a(e){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},a(e)}function s(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,t)}return n}function i(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?s(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,r,n){return r=P(r),r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function P(e){var r=S(e,"string");return a(r)==="symbol"?r:String(r)}function S(e,r){if(a(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var t=n.call(e,r);if(a(t)!=="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function w(e){return(0,u.validateHeader)((0,u.buildHeader)(e))}function v(e){return(0,u.validateHeaderAndEvent)(i(i({},(0,u.buildHeader)(e)),(0,u.buildEvent)(e)))}function T(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"local",n=[],t=new Date(e);return n.push(r==="local"?t.getFullYear():t.getUTCFullYear()),n.push((r==="local"?t.getMonth():t.getUTCMonth())+1),n.push(r==="local"?t.getDate():t.getUTCDate()),n.push(r==="local"?t.getHours():t.getUTCHours()),n.push(r==="local"?t.getMinutes():t.getUTCMinutes()),n}function E(e,r){return d([e],r)}function d(e,r,n){var t=a(r)==="object"?r:{},c=arguments.length===3?n:typeof r=="function"?r:null,x=function(){if(!e)return{error:new Error("one argument is required"),value:null};var g=e.length===0?w(t):v(i(i({},e[0]),t)),m=g.error,D=g.value;if(m)return{error:m,value:null};var f="";f+=(0,u.formatHeader)(D);for(var p=0;p<e.length;p++){var b=v(e[p]),_=b.error,H=b.value;if(_)return{error:_,value:null};f+=(0,u.formatEvent)(H)}return f+=(0,u.formatFooter)(),{error:null,value:f}},l;try{l=x()}catch(y){l={error:y,value:null}}return c?c(l.error,l.value):l}function j(e){return u.urlRegex.test(e)}return o.__exports}exports.__require=U;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/index8.cjs"),t=require("./node_modules/react-is/index.cjs"),u=require("./factoryWithTypeCheckers.cjs"),s=require("./factoryWithThrowingShims.cjs");var r;function _(){if(r)return e.__module.exports;if(r=1,process.env.NODE_ENV!=="production"){var o=t.__require(),i=!0;e.__module.exports=u.__require()(o.isElement,i)}else e.__module.exports=s.__require()();return e.__module.exports}exports.__require=_;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index8.js";
|
|
2
2
|
import { __require as s } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as t } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as p } from "./factoryWithThrowingShims.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/index10.cjs"),t=require("./cjs/react-is.production.min.cjs"),o=require("./cjs/react-is.development.cjs");var r;function u(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=o.__require()),e.__module.exports}exports.__require=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index10.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
4
|
var r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../../allPartials' as *;
|
|
2
2
|
|
|
3
3
|
.#{$px}-countdown {
|
|
4
|
-
align-items:
|
|
4
|
+
align-items: stretch;
|
|
5
5
|
border-bottom: none;
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
@@ -10,38 +10,60 @@
|
|
|
10
10
|
padding-bottom: $spacing-sm;
|
|
11
11
|
width: 100%;
|
|
12
12
|
|
|
13
|
+
&--closing-lot {
|
|
14
|
+
.#{$px}-duration,
|
|
15
|
+
.#{$px}-duration .#{$px}-text {
|
|
16
|
+
color: $warning-default;
|
|
17
|
+
font-variation-settings: 'wght' 600;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
&--show-bottom-border {
|
|
14
22
|
border-bottom: 1px solid $light-gray;
|
|
15
23
|
margin-bottom: 1.5rem;
|
|
16
24
|
}
|
|
17
25
|
|
|
18
26
|
&__countdown-container {
|
|
19
|
-
align-items:
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
column-gap: $spacing-sm;
|
|
20
29
|
display: flex;
|
|
21
|
-
flex-
|
|
22
|
-
|
|
23
|
-
justify-content:
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
row-gap: $spacing-micro;
|
|
24
34
|
text-transform: inherit;
|
|
35
|
+
width: 100%;
|
|
25
36
|
|
|
26
|
-
.#{$px}-text {
|
|
27
|
-
|
|
37
|
+
> .#{$px}-text {
|
|
38
|
+
flex-shrink: 0;
|
|
28
39
|
}
|
|
40
|
+
}
|
|
29
41
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
42
|
+
&__duration-group {
|
|
43
|
+
align-items: center;
|
|
44
|
+
column-gap: $spacing-sm;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
justify-content: flex-start;
|
|
49
|
+
row-gap: 0;
|
|
33
50
|
}
|
|
34
51
|
|
|
35
52
|
&--compact {
|
|
36
53
|
.#{$px}-countdown__countdown-container {
|
|
37
|
-
gap: $spacing-xsm;
|
|
54
|
+
column-gap: $spacing-xsm;
|
|
38
55
|
}
|
|
39
|
-
}
|
|
40
56
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
.#{$px}-countdown__duration-group {
|
|
58
|
+
column-gap: $spacing-xsm;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&--closing-lot {
|
|
62
|
+
.#{$px}-duration,
|
|
63
|
+
.#{$px}-duration .#{$px}-text {
|
|
64
|
+
color: $warning-default;
|
|
65
|
+
font-variation-settings: 'wght' 600;
|
|
66
|
+
}
|
|
45
67
|
}
|
|
46
68
|
}
|
|
47
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.255.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
"vitest": "^4.1.0"
|
|
158
158
|
},
|
|
159
159
|
"peerDependencies": {
|
|
160
|
-
"react": "^18.3.1",
|
|
161
|
-
"react-dom": "^18.2.0"
|
|
160
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
161
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
162
162
|
},
|
|
163
163
|
"optionalDependencies": {
|
|
164
164
|
"@rollup/rollup-android-arm-eabi": "^4.59.0",
|