@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.
- package/dist/assets/search.svg.js +2 -2
- 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/HeroBanner/HeroBanner.d.ts +1 -5
- package/dist/patterns/HeroBanner/HeroBanner.js +19 -20
- package/dist/patterns/HeroBanner/HeroBanner.stories.d.ts +1 -1
- package/dist/patterns/SaleHeaderBanner/index.d.ts +0 -1
- package/dist/scss/_vars.scss +8 -3
- 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/HeroBanner/_heroBanner.scss +7 -2
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +0 -11
- package/dist/scss/patterns/UserManagement/_userManagement.scss +2 -2
- package/dist/scss/site-furniture/Header/_header.scss +15 -6
- package/package.json +2 -1
- package/dist/patterns/SaleHeaderBanner/SaleHeaderCountdown.d.ts +0 -8
- package/dist/patterns/SaleHeaderBanner/SaleHeaderCountdown.js +0 -35
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
height: 2px;
|
|
34
34
|
position: relative;
|
|
35
35
|
transition: background-color 0.25s ease 0.25s;
|
|
36
|
-
width:
|
|
36
|
+
width: 1rem;
|
|
37
37
|
|
|
38
38
|
&::before,
|
|
39
39
|
&::after {
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
position: absolute;
|
|
46
46
|
top: 0;
|
|
47
47
|
transition: transform 0.25s ease;
|
|
48
|
-
width:
|
|
48
|
+
width: 1rem;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&::before {
|
|
52
|
-
transform: translateY(-
|
|
52
|
+
transform: translateY(-6px);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&::after {
|
|
56
|
-
transform: translateY(
|
|
56
|
+
transform: translateY(6px);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -77,12 +77,17 @@
|
|
|
77
77
|
padding-top: 6px; // small adjustment to center the logo
|
|
78
78
|
|
|
79
79
|
svg {
|
|
80
|
-
height:
|
|
80
|
+
height: 20.58px; // 20.58px is the height of the logo's container to make logo 16px
|
|
81
81
|
width: 100%;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
@include isHeaderDesktop {
|
|
85
85
|
padding-top: 0;
|
|
86
|
+
|
|
87
|
+
svg {
|
|
88
|
+
height: 25.73px; // 25.73px is the height of the logo's container to make logo 20px
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
86
91
|
}
|
|
87
92
|
}
|
|
88
93
|
|
|
@@ -90,8 +95,12 @@
|
|
|
90
95
|
align-items: center;
|
|
91
96
|
display: flex;
|
|
92
97
|
justify-content: space-between;
|
|
93
|
-
padding:
|
|
98
|
+
padding: 3px $spacing-md;
|
|
94
99
|
width: 100%;
|
|
100
|
+
|
|
101
|
+
@include isHeaderDesktop {
|
|
102
|
+
padding: $padding-sm $spacing-md;
|
|
103
|
+
}
|
|
95
104
|
}
|
|
96
105
|
|
|
97
106
|
&__nav {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.82.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
|
-
};
|