@phillips/seldon 1.80.0 → 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.
- package/dist/components/Countdown/Countdown.d.ts +36 -0
- package/dist/components/Countdown/Countdown.js +50 -0
- package/dist/components/Countdown/Countdown.stories.d.ts +19 -0
- package/dist/components/Countdown/Countdown.test.d.ts +1 -0
- package/dist/components/Countdown/Duration.d.ts +7 -0
- package/dist/components/Countdown/Duration.js +14 -0
- package/dist/components/Countdown/Duration.test.d.ts +1 -0
- package/dist/components/Countdown/index.d.ts +1 -0
- package/dist/components/Countdown/types.d.ts +4 -0
- package/dist/components/Countdown/types.js +4 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +146 -144
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +9 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/constants.js +7 -0
- package/dist/node_modules/date-fns/constructFrom.js +8 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
- package/dist/node_modules/date-fns/differenceInDays.js +22 -0
- package/dist/node_modules/date-fns/differenceInHours.js +15 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +8 -0
- package/dist/node_modules/date-fns/differenceInMinutes.js +11 -0
- package/dist/node_modules/date-fns/differenceInSeconds.js +10 -0
- package/dist/node_modules/date-fns/formatDuration.js +23 -0
- package/dist/node_modules/date-fns/isSameWeek.js +14 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +21 -0
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/localize.js +162 -0
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/match.js +108 -0
- package/dist/node_modules/date-fns/locale/zh-CN.js +21 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/node_modules/date-fns/toDate.js +8 -0
- package/dist/node_modules/exenv/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/patterns/SaleHeaderBanner/index.d.ts +0 -1
- package/dist/scss/componentStyles.scss +2 -0
- package/dist/scss/components/Countdown/_countdown.scss +25 -0
- package/dist/scss/components/Countdown/_duration.scss +13 -0
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +0 -11
- package/package.json +2 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderCountdown.d.ts +0 -8
- package/dist/patterns/SaleHeaderBanner/SaleHeaderCountdown.js +0 -35
|
@@ -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';
|
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 './
|
|
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
|
|
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
|
|
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
|
|
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
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { default as Se } from "./components/
|
|
31
|
-
import { default as Pe } from "./
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { default as Ae } from "./
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as Be } from "./components/Navigation/
|
|
37
|
-
import { default as Ne } from "./components/Navigation/
|
|
38
|
-
import { default as Fe } from "./
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as Me } from "./components/
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { default as ze } from "./components/
|
|
44
|
-
import { default as je } from "./components/
|
|
45
|
-
import { default as Je } from "./components/
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import { default as eo } from "./components/
|
|
49
|
-
import { default as to } from "./components/
|
|
50
|
-
import { default as ao } from "./
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import { default as uo } from "./patterns/
|
|
54
|
-
import { default as no } from "./
|
|
55
|
-
import { default as go } from "./components/
|
|
56
|
-
import { default as Co } from "./components/
|
|
57
|
-
import { default as Lo } from "./
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import { default as wo } from "./components/
|
|
63
|
-
import { default as Do } from "./components/Accordion/
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
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
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { SeldonProvider as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { DetailListAlignment as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
116
|
+
v as ChevronRight,
|
|
116
117
|
B as Close,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
130
|
-
|
|
132
|
+
Ie as Footer,
|
|
133
|
+
H as FooterInstagram,
|
|
131
134
|
U as FooterWeChat,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
de as Page,
|
|
158
|
+
mt as PageContentWrapper,
|
|
159
|
+
Lo as Pagination,
|
|
157
160
|
Q as PhillipsLogo,
|
|
158
|
-
|
|
161
|
+
Tt as PinchZoom,
|
|
159
162
|
_ as Plus,
|
|
160
163
|
ee as React,
|
|
161
164
|
W as Reddit,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
173
|
+
uo as Social,
|
|
172
174
|
l as SpacingTokens,
|
|
173
|
-
|
|
175
|
+
ao as SplitPanel,
|
|
174
176
|
ae as Spotify,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
193
|
-
|
|
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
|
-
|
|
202
|
+
xe as usePendingState
|
|
201
203
|
};
|
|
@@ -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,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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { normalizeDates as d } from "./_lib/normalizeDates.js";
|
|
2
|
+
import { differenceInCalendarDays as r } from "./differenceInCalendarDays.js";
|
|
3
|
+
function l(n, t, e) {
|
|
4
|
+
const [s, c] = d(
|
|
5
|
+
e == null ? void 0 : e.in,
|
|
6
|
+
n,
|
|
7
|
+
t
|
|
8
|
+
), o = f(s, c), g = Math.abs(
|
|
9
|
+
r(s, c)
|
|
10
|
+
);
|
|
11
|
+
s.setDate(s.getDate() - o * g);
|
|
12
|
+
const i = +(f(s, c) === -o), u = o * (g - i);
|
|
13
|
+
return u === 0 ? 0 : u;
|
|
14
|
+
}
|
|
15
|
+
function f(n, t) {
|
|
16
|
+
const e = n.getFullYear() - t.getFullYear() || n.getMonth() - t.getMonth() || n.getDate() - t.getDate() || n.getHours() - t.getHours() || n.getMinutes() - t.getMinutes() || n.getSeconds() - t.getSeconds() || n.getMilliseconds() - t.getMilliseconds();
|
|
17
|
+
return e < 0 ? -1 : e > 0 ? 1 : e;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
l as default,
|
|
21
|
+
l as differenceInDays
|
|
22
|
+
};
|