@phillips/seldon 1.158.0 → 1.160.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/SaleCard/SaleCard.js +55 -55
- package/dist/components/SaleCard/SaleCard.stories.d.ts +7 -7
- package/dist/components/SaleCard/index.d.ts +1 -0
- package/dist/index.js +39 -37
- package/dist/scss/components/ComboBox/_combobox.scss +6 -1
- package/dist/scss/components/SaleCard/_saleCard.scss +6 -0
- package/package.json +1 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R } from "react";
|
|
3
|
+
import { getCommonProps as V } from "../../utils/index.js";
|
|
4
|
+
import $ from "../../node_modules/classnames/index.js";
|
|
5
5
|
import { TextVariants as i } from "../Text/types.js";
|
|
6
6
|
import e from "../Text/Text.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import j from "../SeldonImage/SeldonImage.js";
|
|
8
|
+
import t from "../Button/Button.js";
|
|
9
9
|
import { ButtonVariants as m } from "../Button/types.js";
|
|
10
|
-
import { SSRMediaQuery as
|
|
11
|
-
import { SaleCardVariants as
|
|
12
|
-
const
|
|
10
|
+
import { SSRMediaQuery as D } from "../../providers/SeldonProvider/utils.js";
|
|
11
|
+
import { SaleCardVariants as v } from "./types.js";
|
|
12
|
+
const M = R(
|
|
13
13
|
({
|
|
14
|
-
className:
|
|
15
|
-
imageSrc:
|
|
16
|
-
imageAlt:
|
|
17
|
-
auctionType:
|
|
18
|
-
titleText:
|
|
19
|
-
date:
|
|
14
|
+
className: g,
|
|
15
|
+
imageSrc: o,
|
|
16
|
+
imageAlt: b = "Auction Image",
|
|
17
|
+
auctionType: C,
|
|
18
|
+
titleText: S,
|
|
19
|
+
date: E,
|
|
20
20
|
location: k,
|
|
21
|
-
primaryButtonText:
|
|
22
|
-
primaryButtonOnClick:
|
|
23
|
-
secondaryButtonText:
|
|
24
|
-
secondaryButtonHref:
|
|
21
|
+
primaryButtonText: c,
|
|
22
|
+
primaryButtonOnClick: d,
|
|
23
|
+
secondaryButtonText: _,
|
|
24
|
+
secondaryButtonHref: s,
|
|
25
25
|
secondaryButtonOnClick: u,
|
|
26
|
-
badgeText:
|
|
27
|
-
modalButtonOnClick:
|
|
28
|
-
modalButtonText:
|
|
29
|
-
variant:
|
|
30
|
-
...
|
|
31
|
-
},
|
|
32
|
-
const { className: a, ...
|
|
33
|
-
[`${a}--${
|
|
34
|
-
}),
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */ r(e, { variant: i.badge, children:
|
|
39
|
-
/* @__PURE__ */ r(e, { variant: i.
|
|
40
|
-
|
|
41
|
-
/* @__PURE__ */
|
|
26
|
+
badgeText: h,
|
|
27
|
+
modalButtonOnClick: p,
|
|
28
|
+
modalButtonText: f,
|
|
29
|
+
variant: n = v.DEFAULT,
|
|
30
|
+
...N
|
|
31
|
+
}, A) => {
|
|
32
|
+
const { className: a, ...L } = V(N, "SaleCard"), I = $(a, g, {
|
|
33
|
+
[`${a}--${n}`]: n
|
|
34
|
+
}), P = { ...L, ...N };
|
|
35
|
+
return /* @__PURE__ */ l("div", { ...P, className: I, ref: A, children: [
|
|
36
|
+
o ? /* @__PURE__ */ r(j, { src: o, alt: b, className: `${a}__image` }) : null,
|
|
37
|
+
/* @__PURE__ */ l("div", { className: `${a}__details`, children: [
|
|
38
|
+
/* @__PURE__ */ r(e, { variant: i.badge, className: `${a}__auction-type`, children: C }),
|
|
39
|
+
/* @__PURE__ */ r(e, { variant: i.title3, children: S }),
|
|
40
|
+
h && /* @__PURE__ */ r(e, { variant: i.badge, className: `${a}__badge`, children: h }),
|
|
41
|
+
/* @__PURE__ */ l("div", { className: `${a}__info`, children: [
|
|
42
42
|
/* @__PURE__ */ r(e, { variant: i.string2, children: k }),
|
|
43
|
-
/* @__PURE__ */ r(e, { variant: i.string2, children:
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
/* @__PURE__ */ r(e, { variant: i.string2, children: E }),
|
|
44
|
+
f && p && /* @__PURE__ */ r("div", { className: `${a}__modal-link`, children: /* @__PURE__ */ r(
|
|
45
|
+
t,
|
|
46
46
|
{
|
|
47
|
-
onClick:
|
|
47
|
+
onClick: p,
|
|
48
48
|
variant: m.tertiary,
|
|
49
49
|
className: `${a}__modal-link-button`,
|
|
50
|
-
children:
|
|
50
|
+
children: f
|
|
51
51
|
}
|
|
52
52
|
) })
|
|
53
53
|
] })
|
|
54
54
|
] }),
|
|
55
|
-
/* @__PURE__ */ r(
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
n !== v.RELATED_SALE_TILE && /* @__PURE__ */ r(D.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ l("div", { className: `${a}__cta`, children: [
|
|
56
|
+
c && d && /* @__PURE__ */ r(
|
|
57
|
+
t,
|
|
58
58
|
{
|
|
59
59
|
variant: m.primary,
|
|
60
|
-
onClick:
|
|
60
|
+
onClick: d,
|
|
61
61
|
className: `${a}__cta-button`,
|
|
62
|
-
children:
|
|
62
|
+
children: c
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
_ && /* @__PURE__ */ r(
|
|
66
|
+
t,
|
|
67
67
|
{
|
|
68
|
-
variant:
|
|
69
|
-
href:
|
|
70
|
-
target:
|
|
68
|
+
variant: s ? m.tertiary : m.secondary,
|
|
69
|
+
href: s,
|
|
70
|
+
target: s ? "_blank" : void 0,
|
|
71
71
|
onClick: u,
|
|
72
|
-
className:
|
|
73
|
-
[`${a}__pdf-link`]:
|
|
72
|
+
className: $(`${a}__cta-button`, {
|
|
73
|
+
[`${a}__pdf-link`]: s
|
|
74
74
|
}),
|
|
75
|
-
children:
|
|
75
|
+
children: _
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
] }) })
|
|
79
79
|
] });
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
|
-
|
|
82
|
+
M.displayName = "SaleCard";
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
M as default
|
|
85
85
|
};
|
|
@@ -4,7 +4,7 @@ declare const meta: {
|
|
|
4
4
|
component: import('react').ForwardRefExoticComponent<Omit<SaleCardProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
5
|
};
|
|
6
6
|
export default meta;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const SaleCardPlayground: {
|
|
8
8
|
(props: SaleCardProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
args: {
|
|
10
10
|
imageSrc: string;
|
|
@@ -15,9 +15,9 @@ export declare const Playground: {
|
|
|
15
15
|
};
|
|
16
16
|
argTypes: {};
|
|
17
17
|
};
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
18
|
+
export declare const SaleCardRelated: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const SaleCardWithPrimaryAndSecondaryCTA: () => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const SaleCardWithPrimaryCTA: () => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const SaleCardWithSecondaryCTA: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const SaleCardWithDownloadLink: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const SaleCardNoCTA: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -80,38 +80,39 @@ import { default as io } from "./site-furniture/Header/Header.js";
|
|
|
80
80
|
import { default as go } from "./components/AddToCalendar/AddToCalendar.js";
|
|
81
81
|
import { default as So } from "./components/Article/Article.js";
|
|
82
82
|
import { default as To } from "./components/SaleCard/SaleCard.js";
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import { default as ho } from "./components/
|
|
87
|
-
import { default as vo } from "./components/
|
|
88
|
-
import { default as yo } from "./components/Filter/
|
|
89
|
-
import { default as Do } from "./components/Filter/
|
|
90
|
-
import { default as Mo } from "./components/
|
|
91
|
-
import { default as Eo } from "./components/
|
|
92
|
-
import { default as Go } from "./components/
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import { default as Zo } from "./patterns/
|
|
97
|
-
import { default as Jo } from "./patterns/BidSnapshot/
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import { default as or } from "./patterns/
|
|
83
|
+
import { SaleCardVariants as Bo } from "./components/SaleCard/types.js";
|
|
84
|
+
import { default as Ao } from "./components/Countdown/Countdown.js";
|
|
85
|
+
import { CountdownVariants as Io } from "./components/Countdown/types.js";
|
|
86
|
+
import { default as ho } from "./components/Divider/Divider.js";
|
|
87
|
+
import { default as vo } from "./components/FavoritingTileButton/FavoritingTileButton.js";
|
|
88
|
+
import { default as yo } from "./components/Filter/Filter.js";
|
|
89
|
+
import { default as Do } from "./components/Filter/FilterInput.js";
|
|
90
|
+
import { default as Mo } from "./components/Filter/FilterHeader.js";
|
|
91
|
+
import { default as Eo } from "./components/Pictogram/Pictogram.js";
|
|
92
|
+
import { default as Go } from "./components/TextArea/TextArea.js";
|
|
93
|
+
import { default as Ro } from "./components/Toast/Toast.js";
|
|
94
|
+
import { ToastProvider as jo } from "./components/Toast/ToastContextProvider.js";
|
|
95
|
+
import { useToast as Wo } from "./components/Toast/useToast.js";
|
|
96
|
+
import { default as Zo } from "./patterns/AccountPageHeader/AccountPageHeader.js";
|
|
97
|
+
import { default as Jo } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
98
|
+
import { default as Xo } from "./patterns/BidSnapshot/BidMessage.js";
|
|
99
|
+
import { BidMessageVariants as $o, BidStatusEnum as er } from "./patterns/BidSnapshot/types.js";
|
|
100
|
+
import { default as or } from "./patterns/FilterMenu/FilterMenu.js";
|
|
101
|
+
import { default as ar } from "./patterns/ObjectTile/ObjectTile.js";
|
|
101
102
|
export {
|
|
102
103
|
M as Accordion,
|
|
103
104
|
E as AccordionItem,
|
|
104
105
|
G as AccordionItemVariant,
|
|
105
106
|
O as AccordionVariants,
|
|
106
|
-
|
|
107
|
+
Zo as AccountPageHeader,
|
|
107
108
|
go as AddToCalendar,
|
|
108
109
|
So as Article,
|
|
109
110
|
I as AuctionStatus,
|
|
110
111
|
Yt as AuthState,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
Xo as BidMessage,
|
|
113
|
+
$o as BidMessageVariants,
|
|
114
|
+
Jo as BidSnapshot,
|
|
115
|
+
er as BidStatusEnum,
|
|
115
116
|
Q as Breadcrumb,
|
|
116
117
|
v as Button,
|
|
117
118
|
y as ButtonVariants,
|
|
@@ -126,21 +127,21 @@ export {
|
|
|
126
127
|
oo as ComboBox,
|
|
127
128
|
de as ContentPeek,
|
|
128
129
|
pe as ContentPeekHeightUnits,
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
Ao as Countdown,
|
|
131
|
+
Io as CountdownVariants,
|
|
131
132
|
xe as Detail,
|
|
132
133
|
Vt as DetailList,
|
|
133
134
|
kt as DetailListAlignment,
|
|
134
|
-
|
|
135
|
+
ho as Divider,
|
|
135
136
|
ne as Drawer,
|
|
136
137
|
ce as Dropdown,
|
|
137
138
|
Ce as ErrorBoundary,
|
|
138
139
|
wt as FavoritesCollectionTile,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
vo as FavoritingTileButton,
|
|
141
|
+
yo as Filter,
|
|
142
|
+
Mo as FilterHeader,
|
|
143
|
+
Do as FilterInput,
|
|
144
|
+
or as FilterMenu,
|
|
144
145
|
uo as Footer,
|
|
145
146
|
Pe as Grid,
|
|
146
147
|
Le as GridItem,
|
|
@@ -162,17 +163,18 @@ export {
|
|
|
162
163
|
Oe as NavigationItem,
|
|
163
164
|
Qe as NavigationItemTrigger,
|
|
164
165
|
ze as NavigationList,
|
|
165
|
-
|
|
166
|
+
ar as ObjectTile,
|
|
166
167
|
a as PaddingTokens,
|
|
167
168
|
C as Page,
|
|
168
169
|
mo as PageContentWrapper,
|
|
169
170
|
Ye as Pagination,
|
|
170
171
|
ao as PhoneNumberPicker,
|
|
171
|
-
|
|
172
|
+
Eo as Pictogram,
|
|
172
173
|
qe as PinchZoom,
|
|
173
174
|
Ke as Row,
|
|
174
175
|
P as SSRMediaQuery,
|
|
175
176
|
To as SaleCard,
|
|
177
|
+
Bo as SaleCardVariants,
|
|
176
178
|
Nt as SaleHeaderBanner,
|
|
177
179
|
Ut as SaleHeaderBrowseAuctions,
|
|
178
180
|
_e as Search,
|
|
@@ -193,12 +195,12 @@ export {
|
|
|
193
195
|
it as TagsList,
|
|
194
196
|
Ct as Text,
|
|
195
197
|
gt as TextAlignments,
|
|
196
|
-
|
|
198
|
+
Go as TextArea,
|
|
197
199
|
Pt as TextSymbolVariants,
|
|
198
200
|
Lt as TextSymbols,
|
|
199
201
|
ct as TextVariants,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
+
Ro as Toast,
|
|
203
|
+
jo as ToastProvider,
|
|
202
204
|
qt as UserManagement,
|
|
203
205
|
bt as Video,
|
|
204
206
|
_t as ViewingsList,
|
|
@@ -215,5 +217,5 @@ export {
|
|
|
215
217
|
B as ssrMediaQueryStyle,
|
|
216
218
|
c as useNormalizedInputProps,
|
|
217
219
|
A as usePendingState,
|
|
218
|
-
|
|
220
|
+
Wo as useToast
|
|
219
221
|
};
|
|
@@ -23,14 +23,19 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&__input {
|
|
26
|
+
@include text($string2);
|
|
27
|
+
|
|
26
28
|
accent-color: $soft-black;
|
|
27
29
|
border: 1px solid $keyline-gray;
|
|
28
30
|
border-radius: 0.1875rem;
|
|
31
|
+
font-variation-settings: 'wght' 600;
|
|
29
32
|
outline: none;
|
|
30
33
|
padding: $padding-xsm;
|
|
31
34
|
width: 100%;
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
&::placeholder {
|
|
37
|
+
font-variation-settings: 'wght' 400;
|
|
38
|
+
}
|
|
34
39
|
|
|
35
40
|
&:hover {
|
|
36
41
|
border: 1px solid $primary-black;
|
|
@@ -67,9 +67,14 @@
|
|
|
67
67
|
&__badge {
|
|
68
68
|
border: 1px solid $badge-blue;
|
|
69
69
|
color: $badge-blue;
|
|
70
|
+
font-size: 0.75rem;
|
|
70
71
|
padding: $spacing-micro 8px;
|
|
71
72
|
}
|
|
72
73
|
|
|
74
|
+
&__auction-type {
|
|
75
|
+
font-size: 0.75rem;
|
|
76
|
+
}
|
|
77
|
+
|
|
73
78
|
&__cta-button {
|
|
74
79
|
padding: $spacing-sm $spacing-lg;
|
|
75
80
|
white-space: nowrap;
|
|
@@ -84,6 +89,7 @@
|
|
|
84
89
|
|
|
85
90
|
&__modal-link-button {
|
|
86
91
|
padding: 0;
|
|
92
|
+
text-transform: none;
|
|
87
93
|
|
|
88
94
|
@include underline;
|
|
89
95
|
}
|