@phillips/seldon 1.80.0 → 1.82.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 (63) hide show
  1. package/dist/assets/search.svg.js +2 -2
  2. package/dist/components/Countdown/Countdown.d.ts +36 -0
  3. package/dist/components/Countdown/Countdown.js +50 -0
  4. package/dist/components/Countdown/Countdown.stories.d.ts +19 -0
  5. package/dist/components/Countdown/Countdown.test.d.ts +1 -0
  6. package/dist/components/Countdown/Duration.d.ts +7 -0
  7. package/dist/components/Countdown/Duration.js +14 -0
  8. package/dist/components/Countdown/Duration.test.d.ts +1 -0
  9. package/dist/components/Countdown/index.d.ts +1 -0
  10. package/dist/components/Countdown/types.d.ts +4 -0
  11. package/dist/components/Countdown/types.js +4 -0
  12. package/dist/index.d.ts +3 -1
  13. package/dist/index.js +146 -144
  14. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  15. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +9 -0
  16. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  17. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  18. package/dist/node_modules/date-fns/constants.js +7 -0
  19. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  20. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  21. package/dist/node_modules/date-fns/differenceInDays.js +22 -0
  22. package/dist/node_modules/date-fns/differenceInHours.js +15 -0
  23. package/dist/node_modules/date-fns/differenceInMilliseconds.js +8 -0
  24. package/dist/node_modules/date-fns/differenceInMinutes.js +11 -0
  25. package/dist/node_modules/date-fns/differenceInSeconds.js +10 -0
  26. package/dist/node_modules/date-fns/formatDuration.js +23 -0
  27. package/dist/node_modules/date-fns/isSameWeek.js +14 -0
  28. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  29. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  30. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  31. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  32. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  33. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  34. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  35. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  36. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  37. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  38. package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +70 -0
  39. package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +33 -0
  40. package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +21 -0
  41. package/dist/node_modules/date-fns/locale/zh-CN/_lib/localize.js +162 -0
  42. package/dist/node_modules/date-fns/locale/zh-CN/_lib/match.js +108 -0
  43. package/dist/node_modules/date-fns/locale/zh-CN.js +21 -0
  44. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  45. package/dist/node_modules/date-fns/startOfWeek.js +11 -0
  46. package/dist/node_modules/date-fns/toDate.js +8 -0
  47. package/dist/node_modules/exenv/index.js +1 -1
  48. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  49. package/dist/patterns/HeroBanner/HeroBanner.d.ts +1 -5
  50. package/dist/patterns/HeroBanner/HeroBanner.js +19 -20
  51. package/dist/patterns/HeroBanner/HeroBanner.stories.d.ts +1 -1
  52. package/dist/patterns/SaleHeaderBanner/index.d.ts +0 -1
  53. package/dist/scss/_vars.scss +8 -3
  54. package/dist/scss/componentStyles.scss +2 -0
  55. package/dist/scss/components/Countdown/_countdown.scss +25 -0
  56. package/dist/scss/components/Countdown/_duration.scss +13 -0
  57. package/dist/scss/patterns/HeroBanner/_heroBanner.scss +7 -2
  58. package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +0 -11
  59. package/dist/scss/patterns/UserManagement/_userManagement.scss +2 -2
  60. package/dist/scss/site-furniture/Header/_header.scss +15 -6
  61. package/package.json +2 -1
  62. package/dist/patterns/SaleHeaderBanner/SaleHeaderCountdown.d.ts +0 -8
  63. package/dist/patterns/SaleHeaderBanner/SaleHeaderCountdown.js +0 -35
@@ -1,5 +1,5 @@
1
1
  import * as e from "react";
2
- const a = (t) => /* @__PURE__ */ e.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { id: "Search" }, /* @__PURE__ */ e.createElement("path", { id: "Vector", d: "M12.0209 10.9563H11.4603L11.2616 10.7647C12.1131 9.77122 12.5531 8.41582 12.3118 6.97527C11.9783 5.00249 10.3319 3.4271 8.34498 3.18583C5.34323 2.81682 2.81694 5.34311 3.18595 8.34486C3.42723 10.3318 5.00261 11.9782 6.97539 12.3117C8.41594 12.553 9.77134 12.113 10.7648 11.2614L10.9564 11.4601V12.0208L13.9724 15.0367C14.2633 15.3276 14.7388 15.3276 15.0297 15.0367C15.3207 14.7457 15.3207 14.2703 15.0297 13.9793L12.0209 10.9563ZM7.76308 10.9563C5.99609 10.9563 4.56973 9.52994 4.56973 7.76296C4.56973 5.99597 5.99609 4.56961 7.76308 4.56961C9.53006 4.56961 10.9564 5.99597 10.9564 7.76296C10.9564 9.52994 9.53006 10.9563 7.76308 10.9563Z", fill: "black" })));
2
+ const t = (l) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", ...l }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.7601 17.618C22.5903 14.0843 22.3676 8.91176 19.0919 5.63604C15.5771 2.12132 9.87866 2.12132 6.36394 5.63604C2.84923 9.15076 2.84923 14.8492 6.36394 18.364C9.63965 21.6397 14.8122 21.8624 18.3459 19.0322L19.7989 20.4853C19.4085 20.8758 19.4085 21.509 19.799 21.8995L23.3345 25.435C24.1156 26.2161 25.3819 26.2161 26.1629 25.435C26.944 24.654 26.944 23.3876 26.1629 22.6066L22.6274 19.0711C22.2369 18.6805 21.6037 18.6805 21.2132 19.0711L19.7601 17.618ZM17.6777 16.9497C20.4113 14.2161 20.4113 9.78392 17.6777 7.05025C14.944 4.31658 10.5118 4.31658 7.77816 7.05025C5.04449 9.78392 5.04449 14.2161 7.77816 16.9497C10.5118 19.6834 14.944 19.6834 17.6777 16.9497Z", fill: "black" }));
3
3
  export {
4
- a as default
4
+ t as default
5
5
  };
@@ -0,0 +1,36 @@
1
+ import { ComponentProps } from 'react';
2
+ import { SupportedLanguages } from '../../types/commonTypes';
3
+ import { CountdownVariants } from './types';
4
+ export interface CountdownProps extends ComponentProps<'div'> {
5
+ /**
6
+ * The date the countdown should end
7
+ */
8
+ endDateTime: Date;
9
+ /**
10
+ * Any descriptor to appear below the coundown
11
+ */
12
+ intervalDescription?: string;
13
+ /**
14
+ * Text translation for what the countdown is for
15
+ */
16
+ label?: string;
17
+ /**
18
+ * Locale to use to format date strings
19
+ */
20
+ locale?: SupportedLanguages;
21
+ /**
22
+ * Variant of the countdown
23
+ */
24
+ variant?: CountdownVariants;
25
+ }
26
+ /**
27
+ * ## Overview
28
+ *
29
+ * Overview of this widget
30
+ *
31
+ * [Figma Link](https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/EASEL-Compendium%3A-Tokens%2C-Components-%26-Patterns?node-id=10850-35410&m=dev)
32
+ *
33
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-countdown--overview)
34
+ */
35
+ declare const Countdown: import('react').ForwardRefExoticComponent<Omit<CountdownProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
36
+ export default Countdown;
@@ -0,0 +1,50 @@
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as y, useState as I, useEffect as N } from "react";
3
+ import { getCommonProps as L } from "../../utils/index.js";
4
+ import S from "../../node_modules/classnames/index.js";
5
+ import { SupportedLanguages as g } from "../../types/commonTypes.js";
6
+ import { CountdownVariants as u } from "./types.js";
7
+ import { Duration as s } from "./Duration.js";
8
+ import { zhCN as x } from "../../node_modules/date-fns/locale/zh-CN.js";
9
+ import { enUS as j } from "../../node_modules/date-fns/locale/en-US.js";
10
+ import { differenceInDays as z } from "../../node_modules/date-fns/differenceInDays.js";
11
+ import { differenceInHours as D } from "../../node_modules/date-fns/differenceInHours.js";
12
+ import { differenceInMinutes as P } from "../../node_modules/date-fns/differenceInMinutes.js";
13
+ import { differenceInSeconds as _ } from "../../node_modules/date-fns/differenceInSeconds.js";
14
+ const b = y(
15
+ ({
16
+ endDateTime: e,
17
+ label: a = "Lots Close in",
18
+ intervalDescription: c = "Lots Close in 1-minute intervals",
19
+ className: f,
20
+ locale: l = "en",
21
+ variant: p = u.default,
22
+ ...i
23
+ }, h) => {
24
+ const { className: m, ...v } = L(i, "Countdown"), [t, C] = I(/* @__PURE__ */ new Date()), n = l === g.zh ? x : j, o = {
25
+ days: z(e, t),
26
+ hours: D(e, t) % 24,
27
+ minutes: P(e, t) % 60,
28
+ seconds: _(e, t) % 60 % 60
29
+ };
30
+ return N(() => {
31
+ const w = setInterval(() => {
32
+ C(/* @__PURE__ */ new Date());
33
+ }, 1e3);
34
+ return () => clearInterval(w);
35
+ }, [e]), /* @__PURE__ */ d("div", { ...v, className: S(m, f), ...i, ref: h, children: [
36
+ /* @__PURE__ */ d("div", { className: `${m}__countdown-container`, role: "timer", "aria-label": a, children: [
37
+ /* @__PURE__ */ r("span", { children: a }),
38
+ o.days > 0 ? /* @__PURE__ */ r(s, { duration: o, unit: "days", locale: n }) : void 0,
39
+ o.days > 0 || o.hours > 0 ? /* @__PURE__ */ r(s, { duration: o, unit: "hours", locale: n }) : void 0,
40
+ o.days === 0 ? /* @__PURE__ */ r(s, { duration: o, unit: "minutes", locale: n }) : void 0,
41
+ o.days === 0 && o.hours === 0 ? /* @__PURE__ */ r(s, { duration: o, unit: "seconds", locale: n }) : void 0
42
+ ] }),
43
+ p === u.default ? /* @__PURE__ */ r("span", { children: c }) : void 0
44
+ ] });
45
+ }
46
+ );
47
+ b.displayName = "Countdown";
48
+ export {
49
+ b as default
50
+ };
@@ -0,0 +1,19 @@
1
+ import { CountdownProps } from './Countdown';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').ForwardRefExoticComponent<Omit<CountdownProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
5
+ };
6
+ export default meta;
7
+ export declare const Playground: {
8
+ (props: CountdownProps): import("react/jsx-runtime").JSX.Element;
9
+ argTypes: {
10
+ locale: {
11
+ type: string;
12
+ options: string[];
13
+ };
14
+ };
15
+ };
16
+ export declare const Days: (props: CountdownProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const Hours: (props: CountdownProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Minutes: (props: CountdownProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const Compact: (props: CountdownProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Duration as DurationValue, DurationUnit, Locale } from 'date-fns';
2
+ export interface DurationProps {
3
+ duration: DurationValue;
4
+ unit: DurationUnit;
5
+ locale: Locale;
6
+ }
7
+ export declare const Duration: ({ duration, unit, locale }: DurationProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import { px as m } from "../../utils/index.js";
3
+ import n from "../../node_modules/classnames/index.js";
4
+ import { formatDuration as c } from "../../node_modules/date-fns/formatDuration.js";
5
+ const u = ({ duration: t, unit: r, locale: e }) => {
6
+ const s = `${m}-duration`, a = c(t, { format: [r], zero: !0, locale: e }).split(" ");
7
+ return /* @__PURE__ */ i("div", { className: s, children: [
8
+ /* @__PURE__ */ o("span", { className: n(r === "seconds" && `${s}--fixed-width`), children: a[0].padStart(2, "0") }),
9
+ /* @__PURE__ */ o("span", { children: a[1] })
10
+ ] });
11
+ };
12
+ export {
13
+ u as Duration
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default as Countdown, type CountdownProps } from './Countdown';
@@ -0,0 +1,4 @@
1
+ export declare enum CountdownVariants {
2
+ default = "default",
3
+ compact = "compact"
4
+ }
@@ -0,0 +1,4 @@
1
+ var e = /* @__PURE__ */ ((c) => (c.default = "default", c.compact = "compact", c))(e || {});
2
+ export {
3
+ e as CountdownVariants
4
+ };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './utils';
2
2
  export * from './assets/icons';
3
3
  export { default as Page } from './pages/Page';
4
+ export * from './utils/hooks';
4
5
  export { default as Button, type ButtonProps } from './components/Button/Button';
5
6
  export { ButtonVariants } from './components/Button/types';
6
7
  export { default as IconButton } from './components/IconButton/IconButton';
@@ -53,4 +54,5 @@ export * from './components/PinchZoom';
53
54
  export * from './components/Tabs';
54
55
  export * from './components/SeldonImage';
55
56
  export * from './patterns/SaleHeaderBanner';
56
- export * from './utils/hooks';
57
+ export * from './components/Countdown';
58
+ export * from './components/Countdown/types';
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { PaddingTokens as f, SpacingTokens as l, defaultYear as s, emailValidation as m, encodeURLSearchParams as d, findChildrenExcludingTypes as p, findChildrenOfType as u, generatePaddingClassName as x, getCommonProps as n, noOp as i, px as g, useNormalizedInputProps as c } from "./utils/index.js";
1
+ import { PaddingTokens as f, SpacingTokens as l, defaultYear as s, emailValidation as m, encodeURLSearchParams as p, findChildrenExcludingTypes as d, findChildrenOfType as u, generatePaddingClassName as x, getCommonProps as n, noOp as i, px as g, useNormalizedInputProps as c } from "./utils/index.js";
2
2
  import { default as S } from "./assets/account_circle.svg.js";
3
3
  import { default as P } from "./assets/arrowPrev.svg.js";
4
4
  import { default as I } from "./assets/calendar.svg.js";
5
5
  import { default as T } from "./assets/chevronDown.svg.js";
6
6
  import { default as A } from "./assets/chevronNext.svg.js";
7
- import { default as V } from "./assets/chevronRight.svg.js";
7
+ import { default as v } from "./assets/chevronRight.svg.js";
8
8
  import { default as B } from "./assets/close.svg.js";
9
9
  import { default as N } from "./assets/favoriteOutline.svg.js";
10
10
  import { default as F } from "./assets/icon-footer-facebook.svg.js";
11
- import { default as R } from "./assets/icon-footer-instagram.svg.js";
11
+ import { default as H } from "./assets/icon-footer-instagram.svg.js";
12
12
  import { default as M } from "./assets/icon-footer-linkedin.svg.js";
13
13
  import { default as W } from "./assets/icon-footer-red.svg.js";
14
14
  import { default as U } from "./assets/icon-footer-wechat.svg.js";
@@ -23,179 +23,181 @@ import { default as te } from "./assets/share.svg.js";
23
23
  import { default as ae } from "./assets/spotify.svg.js";
24
24
  import { default as le } from "./assets/wechat.svg.js";
25
25
  import { default as me } from "./assets/youtube.svg.js";
26
- import { default as pe } from "./pages/Page.js";
27
- import { default as xe } from "./components/Button/Button.js";
28
- import { ButtonVariants as ie } from "./components/Button/types.js";
29
- import { default as ce } from "./components/IconButton/IconButton.js";
30
- import { default as Se } from "./components/ErrorBoundary/ErrorBoundary.js";
31
- import { default as Pe } from "./site-furniture/Footer/Footer.js";
32
- import { Grid as Ie } from "./components/Grid/Grid.js";
33
- import { default as Te } from "./site-furniture/Header/Header.js";
34
- import { default as Ae } from "./components/Navigation/Navigation.js";
35
- import { default as Ve } from "./components/Navigation/NavigationItem/NavigationItem.js";
36
- import { default as Be } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
37
- import { default as Ne } from "./components/Navigation/NavigationList/NavigationList.js";
38
- import { default as Fe } from "./patterns/HeroBanner/HeroBanner.js";
39
- import { default as Re } from "./components/Input/Input.js";
40
- import { default as Me } from "./components/Link/Link.js";
41
- import { LinkVariants as We } from "./components/Link/types.js";
42
- import { default as Ue } from "./components/LinkBlock/LinkBlock.js";
43
- import { default as ze } from "./components/LinkList/LinkList.js";
44
- import { default as je } from "./components/Row/Row.js";
45
- import { default as Je } from "./components/GridItem/GridItem.js";
46
- import { GridItemAlign as Qe } from "./components/GridItem/types.js";
47
- import { default as _e } from "./components/Search/Search.js";
48
- import { default as eo } from "./components/Select/Select.js";
49
- import { default as to } from "./components/SplitPanel/SplitPanel.js";
50
- import { default as ao } from "./patterns/Subscribe/Subscribe.js";
51
- import { SubscriptionState as lo } from "./patterns/Subscribe/types.js";
52
- import { default as mo } from "./patterns/Social/Social.js";
53
- import { default as uo } from "./patterns/ViewingsList/ViewingsList.js";
54
- import { default as no } from "./components/Modal/Modal.js";
55
- import { default as go } from "./components/Drawer/Drawer.js";
56
- import { default as Co } from "./components/Pagination/Pagination.js";
57
- import { default as Lo } from "./patterns/ViewingsList/StatefulViewingsList.js";
58
- import { TextVariants as ho } from "./components/Text/types.js";
59
- import { default as bo } from "./components/Text/Text.js";
60
- import { TextSymbolVariants as ko } from "./components/TextSymbol/types.js";
61
- import { default as vo } from "./components/TextSymbol/TextSymbol.js";
62
- import { default as wo } from "./components/Accordion/Accordion.js";
63
- import { default as Do } from "./components/Accordion/AccordionItem.js";
64
- import { AccordionItemVariant as yo, AccordionVariants as Fo } from "./components/Accordion/types.js";
65
- import { default as Ro } from "./patterns/UserManagement/UserManagement.js";
66
- import { AuthState as Mo } from "./patterns/UserManagement/types.js";
67
- import { SupportedLanguages as Wo } from "./types/commonTypes.js";
68
- import { default as Uo } from "./components/Breadcrumb/Breadcrumb.js";
26
+ import { default as de } from "./pages/Page.js";
27
+ import { usePendingState as xe } from "./utils/hooks.js";
28
+ import { default as ie } from "./components/Button/Button.js";
29
+ import { ButtonVariants as ce } from "./components/Button/types.js";
30
+ import { default as Se } from "./components/IconButton/IconButton.js";
31
+ import { default as Pe } from "./components/ErrorBoundary/ErrorBoundary.js";
32
+ import { default as Ie } from "./site-furniture/Footer/Footer.js";
33
+ import { Grid as Te } from "./components/Grid/Grid.js";
34
+ import { default as Ae } from "./site-furniture/Header/Header.js";
35
+ import { default as ve } from "./components/Navigation/Navigation.js";
36
+ import { default as Be } from "./components/Navigation/NavigationItem/NavigationItem.js";
37
+ import { default as Ne } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
38
+ import { default as Fe } from "./components/Navigation/NavigationList/NavigationList.js";
39
+ import { default as He } from "./patterns/HeroBanner/HeroBanner.js";
40
+ import { default as Me } from "./components/Input/Input.js";
41
+ import { default as We } from "./components/Link/Link.js";
42
+ import { LinkVariants as Ue } from "./components/Link/types.js";
43
+ import { default as ze } from "./components/LinkBlock/LinkBlock.js";
44
+ import { default as je } from "./components/LinkList/LinkList.js";
45
+ import { default as Je } from "./components/Row/Row.js";
46
+ import { default as Qe } from "./components/GridItem/GridItem.js";
47
+ import { GridItemAlign as _e } from "./components/GridItem/types.js";
48
+ import { default as eo } from "./components/Search/Search.js";
49
+ import { default as to } from "./components/Select/Select.js";
50
+ import { default as ao } from "./components/SplitPanel/SplitPanel.js";
51
+ import { default as lo } from "./patterns/Subscribe/Subscribe.js";
52
+ import { SubscriptionState as mo } from "./patterns/Subscribe/types.js";
53
+ import { default as uo } from "./patterns/Social/Social.js";
54
+ import { default as no } from "./patterns/ViewingsList/ViewingsList.js";
55
+ import { default as go } from "./components/Modal/Modal.js";
56
+ import { default as Co } from "./components/Drawer/Drawer.js";
57
+ import { default as Lo } from "./components/Pagination/Pagination.js";
58
+ import { default as ho } from "./patterns/ViewingsList/StatefulViewingsList.js";
59
+ import { TextVariants as bo } from "./components/Text/types.js";
60
+ import { default as ko } from "./components/Text/Text.js";
61
+ import { TextSymbolVariants as Vo } from "./components/TextSymbol/types.js";
62
+ import { default as wo } from "./components/TextSymbol/TextSymbol.js";
63
+ import { default as Do } from "./components/Accordion/Accordion.js";
64
+ import { default as yo } from "./components/Accordion/AccordionItem.js";
65
+ import { AccordionItemVariant as Ro, AccordionVariants as Ho } from "./components/Accordion/types.js";
66
+ import { default as Mo } from "./patterns/UserManagement/UserManagement.js";
67
+ import { AuthState as Wo } from "./patterns/UserManagement/types.js";
68
+ import { SupportedLanguages as Uo } from "./types/commonTypes.js";
69
+ import { default as zo } from "./components/Breadcrumb/Breadcrumb.js";
69
70
  import "react/jsx-runtime";
70
71
  import "./node_modules/classnames/index.js";
71
- import { default as zo } from "./components/Dropdown/Dropdown.js";
72
- import { default as jo } from "./components/Video/Video.js";
73
- import { default as Jo } from "./patterns/LanguageSelector/LanguageSelector.js";
74
- import { default as Qo } from "./components/ContentPeek/ContentPeek.js";
75
- import { default as _o } from "./components/Collapsible/Collapsible.js";
76
- import { default as et } from "./components/Collapsible/CollapsibleContent.js";
77
- import { default as tt } from "./components/Collapsible/CollapsibleTrigger.js";
78
- import { SeldonProvider as at } from "./providers/SeldonProvider/SeldonProvider.js";
79
- import { default as lt } from "./components/PageContentWrapper/PageContentWrapper.js";
80
- import { default as mt } from "./components/Carousel/Carousel.js";
81
- import { default as pt } from "./components/Carousel/CarouselContent.js";
82
- import { default as xt } from "./components/Carousel/CarouselItem.js";
83
- import { default as it } from "./components/Carousel/CarouselDots.js";
84
- import { default as ct } from "./components/Detail/Detail.js";
85
- import { default as St } from "./patterns/DetailList/DetailList.js";
86
- import { DetailListAlignment as Pt } from "./patterns/DetailList/types.js";
87
- import { default as It } from "./components/PinchZoom/PinchZoom.js";
88
- import { default as Tt } from "./components/Tabs/TabsContainer.js";
89
- import { default as At } from "./components/Tabs/TabsContent.js";
90
- import { default as Vt } from "./components/SeldonImage/SeldonImage.js";
91
- import { default as Bt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
92
- import { default as Nt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
93
- import { default as Ft } from "./patterns/SaleHeaderBanner/SaleHeaderCountdown.js";
94
- import { AuctionState as Rt } from "./patterns/SaleHeaderBanner/types.js";
95
- import { usePendingState as Mt } from "./utils/hooks.js";
72
+ import { default as jo } from "./components/Dropdown/Dropdown.js";
73
+ import { default as Jo } from "./components/Video/Video.js";
74
+ import { default as Qo } from "./patterns/LanguageSelector/LanguageSelector.js";
75
+ import { default as _o } from "./components/ContentPeek/ContentPeek.js";
76
+ import { default as et } from "./components/Collapsible/Collapsible.js";
77
+ import { default as tt } from "./components/Collapsible/CollapsibleContent.js";
78
+ import { default as at } from "./components/Collapsible/CollapsibleTrigger.js";
79
+ import { SeldonProvider as lt } from "./providers/SeldonProvider/SeldonProvider.js";
80
+ import { default as mt } from "./components/PageContentWrapper/PageContentWrapper.js";
81
+ import { default as dt } from "./components/Carousel/Carousel.js";
82
+ import { default as xt } from "./components/Carousel/CarouselContent.js";
83
+ import { default as it } from "./components/Carousel/CarouselItem.js";
84
+ import { default as ct } from "./components/Carousel/CarouselDots.js";
85
+ import { default as St } from "./components/Detail/Detail.js";
86
+ import { default as Pt } from "./patterns/DetailList/DetailList.js";
87
+ import { DetailListAlignment as It } from "./patterns/DetailList/types.js";
88
+ import { default as Tt } from "./components/PinchZoom/PinchZoom.js";
89
+ import { default as At } from "./components/Tabs/TabsContainer.js";
90
+ import { default as vt } from "./components/Tabs/TabsContent.js";
91
+ import { default as Bt } from "./components/SeldonImage/SeldonImage.js";
92
+ import { default as Nt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
93
+ import { default as Ft } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
94
+ import { AuctionState as Ht } from "./patterns/SaleHeaderBanner/types.js";
95
+ import { default as Mt } from "./components/Countdown/Countdown.js";
96
+ import { CountdownVariants as Wt } from "./components/Countdown/types.js";
96
97
  export {
97
- wo as Accordion,
98
- Do as AccordionItem,
99
- yo as AccordionItemVariant,
100
- Fo as AccordionVariants,
98
+ Do as Accordion,
99
+ yo as AccordionItem,
100
+ Ro as AccordionItemVariant,
101
+ Ho as AccordionVariants,
101
102
  S as AccountCircle,
102
103
  P as ArrowPrev,
103
- Rt as AuctionState,
104
- Mo as AuthState,
105
- Uo as Breadcrumb,
106
- xe as Button,
107
- ie as ButtonVariants,
104
+ Ht as AuctionState,
105
+ Wo as AuthState,
106
+ zo as Breadcrumb,
107
+ ie as Button,
108
+ ce as ButtonVariants,
108
109
  I as Calendar,
109
- mt as Carousel,
110
- pt as CarouselContent,
111
- it as CarouselDots,
112
- xt as CarouselItem,
110
+ dt as Carousel,
111
+ xt as CarouselContent,
112
+ ct as CarouselDots,
113
+ it as CarouselItem,
113
114
  T as ChevronDown,
114
115
  A as ChevronNext,
115
- V as ChevronRight,
116
+ v as ChevronRight,
116
117
  B as Close,
117
- _o as Collapsible,
118
- et as CollapsibleContent,
119
- tt as CollapsibleTrigger,
120
- Qo as ContentPeek,
121
- ct as Detail,
122
- St as DetailList,
123
- Pt as DetailListAlignment,
124
- go as Drawer,
125
- zo as Dropdown,
126
- Se as ErrorBoundary,
118
+ et as Collapsible,
119
+ tt as CollapsibleContent,
120
+ at as CollapsibleTrigger,
121
+ _o as ContentPeek,
122
+ Mt as Countdown,
123
+ Wt as CountdownVariants,
124
+ St as Detail,
125
+ Pt as DetailList,
126
+ It as DetailListAlignment,
127
+ Co as Drawer,
128
+ jo as Dropdown,
129
+ Pe as ErrorBoundary,
127
130
  F as Facebook,
128
131
  N as FavoriteOutline,
129
- Pe as Footer,
130
- R as FooterInstagram,
132
+ Ie as Footer,
133
+ H as FooterInstagram,
131
134
  U as FooterWeChat,
132
- Ie as Grid,
133
- Je as GridItem,
134
- Qe as GridItemAlign,
135
- Te as Header,
136
- Fe as HeroBanner,
137
- ce as IconButton,
138
- Re as Input,
135
+ Te as Grid,
136
+ Qe as GridItem,
137
+ _e as GridItemAlign,
138
+ Ae as Header,
139
+ He as HeroBanner,
140
+ Se as IconButton,
141
+ Me as Input,
139
142
  z as Instagram,
140
- Jo as LanguageSelector,
141
- Me as Link,
142
- Ue as LinkBlock,
143
- ze as LinkList,
144
- We as LinkVariants,
143
+ Qo as LanguageSelector,
144
+ We as Link,
145
+ ze as LinkBlock,
146
+ je as LinkList,
147
+ Ue as LinkVariants,
145
148
  M as LinkedIn,
146
149
  j as Lock,
147
150
  J as Minus,
148
- no as Modal,
149
- Ae as Navigation,
150
- Ve as NavigationItem,
151
- Be as NavigationItemTrigger,
152
- Ne as NavigationList,
151
+ go as Modal,
152
+ ve as Navigation,
153
+ Be as NavigationItem,
154
+ Ne as NavigationItemTrigger,
155
+ Fe as NavigationList,
153
156
  f as PaddingTokens,
154
- pe as Page,
155
- lt as PageContentWrapper,
156
- Co as Pagination,
157
+ de as Page,
158
+ mt as PageContentWrapper,
159
+ Lo as Pagination,
157
160
  Q as PhillipsLogo,
158
- It as PinchZoom,
161
+ Tt as PinchZoom,
159
162
  _ as Plus,
160
163
  ee as React,
161
164
  W as Reddit,
162
- je as Row,
163
- Bt as SaleHeaderBanner,
164
- Nt as SaleHeaderBrowseAuctions,
165
- Ft as SaleHeaderCountdown,
166
- _e as Search,
167
- Vt as SeldonImage,
168
- at as SeldonProvider,
169
- eo as Select,
165
+ Je as Row,
166
+ Nt as SaleHeaderBanner,
167
+ Ft as SaleHeaderBrowseAuctions,
168
+ eo as Search,
169
+ Bt as SeldonImage,
170
+ lt as SeldonProvider,
171
+ to as Select,
170
172
  te as Share,
171
- mo as Social,
173
+ uo as Social,
172
174
  l as SpacingTokens,
173
- to as SplitPanel,
175
+ ao as SplitPanel,
174
176
  ae as Spotify,
175
- Lo as StatefulViewingsList,
176
- ao as Subscribe,
177
- lo as SubscriptionState,
178
- Wo as SupportedLanguages,
179
- Tt as TabsContainer,
180
- At as TabsContent,
181
- bo as Text,
182
- ko as TextSymbolVariants,
183
- vo as TextSymbols,
184
- ho as TextVariants,
185
- Ro as UserManagement,
186
- jo as Video,
187
- uo as ViewingsList,
177
+ ho as StatefulViewingsList,
178
+ lo as Subscribe,
179
+ mo as SubscriptionState,
180
+ Uo as SupportedLanguages,
181
+ At as TabsContainer,
182
+ vt as TabsContent,
183
+ ko as Text,
184
+ Vo as TextSymbolVariants,
185
+ wo as TextSymbols,
186
+ bo as TextVariants,
187
+ Mo as UserManagement,
188
+ Jo as Video,
189
+ no as ViewingsList,
188
190
  le as WeChat,
189
191
  me as Youtube,
190
192
  s as defaultYear,
191
193
  m as emailValidation,
192
- d as encodeURLSearchParams,
193
- p as findChildrenExcludingTypes,
194
+ p as encodeURLSearchParams,
195
+ d as findChildrenExcludingTypes,
194
196
  u as findChildrenOfType,
195
197
  x as generatePaddingClassName,
196
198
  n as getCommonProps,
197
199
  i as noOp,
198
200
  g as px,
199
201
  c as useNormalizedInputProps,
200
- Mt as usePendingState
202
+ xe as usePendingState
201
203
  };
@@ -0,0 +1,7 @@
1
+ let t = {};
2
+ function e() {
3
+ return t;
4
+ }
5
+ export {
6
+ e as getDefaultOptions
7
+ };
@@ -0,0 +1,9 @@
1
+ function o(n) {
2
+ return (r) => {
3
+ const t = (n ? Math[n] : Math.trunc)(r);
4
+ return t === 0 ? 0 : t;
5
+ };
6
+ }
7
+ export {
8
+ o as getRoundingMethod
9
+ };
@@ -0,0 +1,18 @@
1
+ import { toDate as o } from "../toDate.js";
2
+ function l(t) {
3
+ const e = o(t), n = new Date(
4
+ Date.UTC(
5
+ e.getFullYear(),
6
+ e.getMonth(),
7
+ e.getDate(),
8
+ e.getHours(),
9
+ e.getMinutes(),
10
+ e.getSeconds(),
11
+ e.getMilliseconds()
12
+ )
13
+ );
14
+ return n.setUTCFullYear(e.getFullYear()), +t - +n;
15
+ }
16
+ export {
17
+ l as getTimezoneOffsetInMilliseconds
18
+ };
@@ -0,0 +1,11 @@
1
+ import { constructFrom as e } from "../constructFrom.js";
2
+ function m(n, ...o) {
3
+ const r = e.bind(
4
+ null,
5
+ n || o.find((t) => typeof t == "object")
6
+ );
7
+ return o.map(r);
8
+ }
9
+ export {
10
+ m as normalizeDates
11
+ };
@@ -0,0 +1,7 @@
1
+ const o = 864e5, n = 6e4, s = 36e5, c = Symbol.for("constructDateFrom");
2
+ export {
3
+ c as constructFromSymbol,
4
+ o as millisecondsInDay,
5
+ s as millisecondsInHour,
6
+ n as millisecondsInMinute
7
+ };
@@ -0,0 +1,8 @@
1
+ import { constructFromSymbol as o } from "./constants.js";
2
+ function c(r, n) {
3
+ return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
4
+ }
5
+ export {
6
+ c as constructFrom,
7
+ c as default
8
+ };
@@ -0,0 +1,16 @@
1
+ import { getTimezoneOffsetInMilliseconds as a } from "./_lib/getTimezoneOffsetInMilliseconds.js";
2
+ import { normalizeDates as c } from "./_lib/normalizeDates.js";
3
+ import { millisecondsInDay as D } from "./constants.js";
4
+ import { startOfDay as m } from "./startOfDay.js";
5
+ function p(n, i, e) {
6
+ const [f, l] = c(
7
+ e == null ? void 0 : e.in,
8
+ n,
9
+ i
10
+ ), r = m(f), t = m(l), o = +r - a(r), s = +t - a(t);
11
+ return Math.round((o - s) / D);
12
+ }
13
+ export {
14
+ p as default,
15
+ p as differenceInCalendarDays
16
+ };