@phillips/seldon 1.250.0 → 1.251.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/Card/Card.d.ts +41 -0
- package/dist/components/Card/Card.js +80 -0
- package/dist/components/Card/Card.stories.d.ts +63 -0
- package/dist/components/Card/Card.test.d.ts +1 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/types.d.ts +4 -0
- package/dist/components/Card/types.js +4 -0
- package/dist/components/Input/utils.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +240 -236
- package/dist/patterns/SaleCard/SaleCard.d.ts +3 -3
- package/dist/patterns/SaleCard/SaleCard.js +41 -42
- package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
- package/dist/scss/componentStyles.scss +1 -0
- package/dist/scss/components/Card/_card.scss +113 -0
- package/dist/scss/components/SeldonImage/_seldonImage.scss +16 -4
- package/dist/scss/patterns/SaleCard/_saleCard.scss +3 -66
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ComponentProps, ElementType } from 'react';
|
|
2
|
+
import { Link } from '../Link';
|
|
3
|
+
import { SeldonImage } from '../SeldonImage';
|
|
4
|
+
import { Video } from '../Video';
|
|
5
|
+
import { Text } from '../Text';
|
|
6
|
+
import { CardVariants } from './types';
|
|
7
|
+
export interface CardRootProps extends ComponentProps<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Root element for the card shell. Defaults to `div`.
|
|
10
|
+
*/
|
|
11
|
+
element?: ElementType;
|
|
12
|
+
/**
|
|
13
|
+
* Layout variant for the card.
|
|
14
|
+
*/
|
|
15
|
+
variant?: CardVariants;
|
|
16
|
+
}
|
|
17
|
+
export type CardProps = CardRootProps;
|
|
18
|
+
export type CardImageProps = Omit<ComponentProps<typeof SeldonImage>, 'className'>;
|
|
19
|
+
export type CardVideoProps = ComponentProps<typeof Video>;
|
|
20
|
+
export type CardContentProps = ComponentProps<'div'>;
|
|
21
|
+
export type CardEyebrowProps = Omit<ComponentProps<typeof Text>, 'variant'>;
|
|
22
|
+
export type CardTitleProps = Omit<ComponentProps<typeof Text>, 'variant'>;
|
|
23
|
+
export type CardDescriptionProps = Omit<ComponentProps<typeof Text>, 'variant'>;
|
|
24
|
+
export type CardBadgeProps = Omit<ComponentProps<typeof Text>, 'variant'>;
|
|
25
|
+
export type CardMetaProps = ComponentProps<'div'>;
|
|
26
|
+
export type CardMetaItemProps = Omit<ComponentProps<typeof Text>, 'variant'>;
|
|
27
|
+
export type CardCtaProps = ComponentProps<typeof Link>;
|
|
28
|
+
declare const Card: import('react').ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & import('react').RefAttributes<HTMLElement>> & {
|
|
29
|
+
Root: import('react').ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
30
|
+
Image: import('react').ForwardRefExoticComponent<Omit<CardImageProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
31
|
+
Video: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Video').VideoProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
33
|
+
Eyebrow: import('react').ForwardRefExoticComponent<Omit<CardEyebrowProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
34
|
+
Title: import('react').ForwardRefExoticComponent<Omit<CardTitleProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
35
|
+
Description: import('react').ForwardRefExoticComponent<Omit<CardDescriptionProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
36
|
+
Badge: import('react').ForwardRefExoticComponent<Omit<CardBadgeProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
37
|
+
Meta: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
38
|
+
MetaItem: import('react').ForwardRefExoticComponent<Omit<CardMetaItemProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
39
|
+
Cta: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Link').LinkProps, "ref"> & import('react').RefAttributes<HTMLAnchorElement>, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
40
|
+
};
|
|
41
|
+
export default Card;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import m from "../../_virtual/index.js";
|
|
3
|
+
import { forwardRef as s } from "react";
|
|
4
|
+
import { getCommonProps as w, px as o } from "../../utils/index.js";
|
|
5
|
+
import { LinkVariants as x } from "../Link/types.js";
|
|
6
|
+
import T from "../Link/Link.js";
|
|
7
|
+
import R from "../SeldonImage/SeldonImage.js";
|
|
8
|
+
import k from "../Video/Video.js";
|
|
9
|
+
import { TextVariants as i } from "../Text/types.js";
|
|
10
|
+
import l from "../Text/Text.js";
|
|
11
|
+
import { CardVariants as u } from "./types.js";
|
|
12
|
+
const c = s(
|
|
13
|
+
({ element: e = "div", className: r, id: a, variant: d = u.default, ...n }, S) => {
|
|
14
|
+
const { className: C, ...V } = w({ id: a, ...n }, "Card"), M = m(C, r, {
|
|
15
|
+
[`${C}--${d}`]: d
|
|
16
|
+
});
|
|
17
|
+
return /* @__PURE__ */ t(e, { className: M, id: a, ref: S, ...V, ...n });
|
|
18
|
+
}
|
|
19
|
+
), p = s(({ aspectRatio: e = "16/9", ...r }, a) => /* @__PURE__ */ t(R, { ...r, aspectRatio: e, className: `${o}-card__image`, ref: a })), N = s(({ aspectRatio: e = 16 / 9, className: r, ...a }, d) => /* @__PURE__ */ t(k, { ...a, ref: d, aspectRatio: e, className: m(`${o}-card__video`, r) })), _ = s(({ className: e, ...r }, a) => /* @__PURE__ */ t("div", { ...r, className: m(`${o}-card__details`, e), ref: a })), y = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(
|
|
20
|
+
l,
|
|
21
|
+
{
|
|
22
|
+
...r,
|
|
23
|
+
className: m(`${o}-card__eyebrow`, e),
|
|
24
|
+
ref: a,
|
|
25
|
+
variant: i.labelSmall
|
|
26
|
+
}
|
|
27
|
+
)), f = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(
|
|
28
|
+
l,
|
|
29
|
+
{
|
|
30
|
+
...r,
|
|
31
|
+
className: m(`${o}-card__title`, e),
|
|
32
|
+
ref: a,
|
|
33
|
+
variant: i.headingSmall
|
|
34
|
+
}
|
|
35
|
+
)), g = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(
|
|
36
|
+
l,
|
|
37
|
+
{
|
|
38
|
+
...r,
|
|
39
|
+
className: m(`${o}-card__description`, e),
|
|
40
|
+
ref: a,
|
|
41
|
+
variant: i.bodySmall
|
|
42
|
+
}
|
|
43
|
+
)), $ = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(l, { ...r, className: m(`${o}-card__badge`, e), ref: a, variant: i.badgeSmall })), b = s(({ className: e, ...r }, a) => /* @__PURE__ */ t("div", { ...r, className: m(`${o}-card__meta`, e), ref: a })), v = s(({ className: e, ...r }, a) => /* @__PURE__ */ t(
|
|
44
|
+
l,
|
|
45
|
+
{
|
|
46
|
+
...r,
|
|
47
|
+
className: m(`${o}-card__meta-item`, e),
|
|
48
|
+
ref: a,
|
|
49
|
+
variant: i.labelSmall
|
|
50
|
+
}
|
|
51
|
+
)), I = s(
|
|
52
|
+
({ className: e, variant: r = x.linkSmall, ...a }, d) => /* @__PURE__ */ t(T, { ...a, ref: d, className: m(`${o}-card__cta`, e), variant: r })
|
|
53
|
+
);
|
|
54
|
+
c.displayName = "Card.Root";
|
|
55
|
+
p.displayName = "Card.Image";
|
|
56
|
+
N.displayName = "Card.Video";
|
|
57
|
+
_.displayName = "Card.Content";
|
|
58
|
+
y.displayName = "Card.Eyebrow";
|
|
59
|
+
f.displayName = "Card.Title";
|
|
60
|
+
g.displayName = "Card.Description";
|
|
61
|
+
$.displayName = "Card.Badge";
|
|
62
|
+
b.displayName = "Card.Meta";
|
|
63
|
+
v.displayName = "Card.MetaItem";
|
|
64
|
+
I.displayName = "Card.Cta";
|
|
65
|
+
const F = Object.assign(c, {
|
|
66
|
+
Root: c,
|
|
67
|
+
Image: p,
|
|
68
|
+
Video: N,
|
|
69
|
+
Content: _,
|
|
70
|
+
Eyebrow: y,
|
|
71
|
+
Title: f,
|
|
72
|
+
Description: g,
|
|
73
|
+
Badge: $,
|
|
74
|
+
Meta: b,
|
|
75
|
+
MetaItem: v,
|
|
76
|
+
Cta: I
|
|
77
|
+
});
|
|
78
|
+
export {
|
|
79
|
+
F as default
|
|
80
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CardRootProps } from './Card';
|
|
2
|
+
import { CardVariants } from './types';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import('react').ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & import('react').RefAttributes<HTMLElement>> & {
|
|
6
|
+
Root: import('react').ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
7
|
+
Image: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardImageProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Video: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Video').VideoProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Eyebrow: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardEyebrowProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
11
|
+
Title: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardTitleProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
12
|
+
Description: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardDescriptionProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
13
|
+
Badge: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardBadgeProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
14
|
+
Meta: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
MetaItem: import('react').ForwardRefExoticComponent<Omit<import('./Card').CardMetaItemProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
16
|
+
Cta: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Link').LinkProps, "ref"> & import('react').RefAttributes<HTMLAnchorElement>, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
export declare const Playground: {
|
|
21
|
+
(props: CardRootProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
args: {
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
argTypes: {
|
|
26
|
+
element: {
|
|
27
|
+
control: boolean;
|
|
28
|
+
};
|
|
29
|
+
variant: {
|
|
30
|
+
options: CardVariants[];
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const ArticleCard: {
|
|
38
|
+
(props: CardRootProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
args: {
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const ArticleCardWithCta: {
|
|
44
|
+
(props: CardRootProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
storyName: string;
|
|
46
|
+
args: {
|
|
47
|
+
id: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const MediaCard: {
|
|
51
|
+
(props: CardRootProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
args: {
|
|
53
|
+
id: string;
|
|
54
|
+
variant: CardVariants;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const CardWithImagePlaceholder: {
|
|
58
|
+
(props: CardRootProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
storyName: string;
|
|
60
|
+
args: {
|
|
61
|
+
id: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { default as Card, type CardBadgeProps, type CardContentProps, type CardCtaProps, type CardDescriptionProps, type CardEyebrowProps, type CardImageProps, type CardMetaItemProps, type CardMetaProps, type CardProps, type CardRootProps, type CardTitleProps, type CardVideoProps, } from './Card';
|
|
2
|
+
export { CardVariants } from './types';
|
|
@@ -3,6 +3,7 @@ import "react/jsx-runtime";
|
|
|
3
3
|
import "../../providers/SeldonProvider/utils.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../Button/Button.js";
|
|
6
|
+
import "../Card/Card.js";
|
|
6
7
|
import "../IconButton/IconButton.js";
|
|
7
8
|
import "../Accordion/Accordion.js";
|
|
8
9
|
import "../Accordion/AccordionItem.js";
|
|
@@ -94,7 +95,7 @@ import "../../patterns/CountryPicker/CountryPicker.js";
|
|
|
94
95
|
import "../../patterns/ProgressWizard/ProgressWizard.js";
|
|
95
96
|
import "../../patterns/ProgressWizard/types.js";
|
|
96
97
|
import "../../patterns/PhoneNumberInput/PhoneNumberInput.js";
|
|
97
|
-
const
|
|
98
|
+
const Pp = () => ({
|
|
98
99
|
adornment: `${p}-input__wrapper__adornment`,
|
|
99
100
|
emptyValidation: `${p}-input__empty-validation`,
|
|
100
101
|
input: `${p}-input__input`,
|
|
@@ -106,5 +107,5 @@ const Op = () => ({
|
|
|
106
107
|
wrapperInput: `${p}-input__wrapper__input`
|
|
107
108
|
});
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
+
Pp as getInputClassNames
|
|
110
111
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './utils/hooks';
|
|
|
5
5
|
export * from './types/commonTypes';
|
|
6
6
|
export { default as Button, type ButtonProps } from './components/Button/Button';
|
|
7
7
|
export { ButtonVariants, ButtonSizes } from './components/Button/types';
|
|
8
|
+
export * from './components/Card';
|
|
8
9
|
export { default as IconButton } from './components/IconButton/IconButton';
|
|
9
10
|
export * from './components/Accordion';
|
|
10
11
|
export { Breadcrumb, type BreadcrumbProps } from './components/Breadcrumb';
|
package/dist/index.js
CHANGED
|
@@ -1,251 +1,255 @@
|
|
|
1
|
-
import { PaddingTokens as a, SpacingTokens as f, defaultYear as s, emailValidation as l, encodeURLSearchParams as d, findChildrenExcludingTypes as m, findChildrenOfType as p, focusElementById as u, generatePaddingClassName as i, getCommonProps as
|
|
1
|
+
import { PaddingTokens as a, SpacingTokens as f, defaultYear as s, emailValidation as l, encodeURLSearchParams as d, findChildrenExcludingTypes as m, findChildrenOfType as p, focusElementById as u, generatePaddingClassName as i, getCommonProps as x, noOp as n, px as g, useNormalizedInputProps as c } from "./utils/index.js";
|
|
2
2
|
import { default as C } from "./pages/Page.js";
|
|
3
3
|
import { SSRMediaQuery as T, ssrMediaQueryStyle as P } from "./providers/SeldonProvider/utils.js";
|
|
4
4
|
import { usePendingState as I } from "./utils/hooks.js";
|
|
5
|
-
import { AuctionStatus as
|
|
5
|
+
import { AuctionStatus as V, LotStatus as A, SupportedLanguages as y } from "./types/commonTypes.js";
|
|
6
6
|
import { default as v } from "./components/Button/Button.js";
|
|
7
7
|
import { ButtonSizes as h, ButtonVariants as k } from "./components/Button/types.js";
|
|
8
|
-
import { default as N } from "./components/
|
|
9
|
-
import {
|
|
10
|
-
import { default as G } from "./components/
|
|
11
|
-
import {
|
|
12
|
-
import { default as W } from "./components/
|
|
8
|
+
import { default as N } from "./components/Card/Card.js";
|
|
9
|
+
import { CardVariants as M } from "./components/Card/types.js";
|
|
10
|
+
import { default as G } from "./components/IconButton/IconButton.js";
|
|
11
|
+
import { default as z } from "./components/Accordion/Accordion.js";
|
|
12
|
+
import { default as W } from "./components/Accordion/AccordionItem.js";
|
|
13
|
+
import { AccordionVariants as Q } from "./components/Accordion/types.js";
|
|
14
|
+
import { default as Y } from "./components/Breadcrumb/Breadcrumb.js";
|
|
13
15
|
import "react/jsx-runtime";
|
|
14
16
|
import "./_virtual/index.js";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { HeightUnits as
|
|
26
|
-
import { default as
|
|
27
|
-
import { DetailVariants as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { GridItemAlign as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { LinkVariants as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { SelectVariants as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { Tag as
|
|
57
|
-
import { TextAlignments as
|
|
58
|
-
import { default as
|
|
59
|
-
import { TextSymbolVariants as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { SubscriptionState as
|
|
71
|
-
import { AuthState as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { SeldonProvider as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { DetailListAlignment as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { FilterButton as
|
|
84
|
-
import { default as
|
|
85
|
-
import { FilterButtonIconType as
|
|
86
|
-
import { default as
|
|
87
|
-
import { SaleCardActions as
|
|
88
|
-
import { SaleCardImageDisplay as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { CountdownVariants as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
108
|
-
import { ToastProvider as
|
|
109
|
-
import { useToast as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { default as
|
|
113
|
-
import { BidMessageVariants as
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
117
|
-
import { default as
|
|
118
|
-
import { ProgressWizardFooter as
|
|
119
|
-
import { useHistoryManagement as
|
|
120
|
-
import { DefaultButtonLabels as
|
|
121
|
-
import { default as
|
|
17
|
+
import { default as q } from "./components/Icon/Icon.js";
|
|
18
|
+
import { default as K } from "./components/Carousel/Carousel.js";
|
|
19
|
+
import { default as _ } from "./components/Carousel/CarouselArrows.js";
|
|
20
|
+
import { default as ee } from "./components/Carousel/CarouselContent.js";
|
|
21
|
+
import { default as oe } from "./components/Carousel/CarouselItem.js";
|
|
22
|
+
import { default as ae } from "./components/Carousel/CarouselDots.js";
|
|
23
|
+
import { default as se } from "./components/Collapsible/Collapsible.js";
|
|
24
|
+
import { default as de } from "./components/Collapsible/CollapsibleContent.js";
|
|
25
|
+
import { default as pe } from "./components/Collapsible/CollapsibleTrigger.js";
|
|
26
|
+
import { default as ie } from "./components/ContentPeek/ContentPeek.js";
|
|
27
|
+
import { HeightUnits as ne } from "./components/ContentPeek/utils.js";
|
|
28
|
+
import { default as ce } from "./components/Detail/Detail.js";
|
|
29
|
+
import { DetailVariants as Ce } from "./components/Detail/types.js";
|
|
30
|
+
import { default as Te } from "./components/Drawer/Drawer.js";
|
|
31
|
+
import { default as be } from "./components/Dropdown/Dropdown.js";
|
|
32
|
+
import { default as Le } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
33
|
+
import { default as Ae } from "./components/Grid/Grid.js";
|
|
34
|
+
import { default as De } from "./components/GridItem/GridItem.js";
|
|
35
|
+
import { GridItemAlign as Fe } from "./components/GridItem/types.js";
|
|
36
|
+
import { default as ke } from "./components/Input/Input.js";
|
|
37
|
+
import { default as Ne } from "./components/Link/Link.js";
|
|
38
|
+
import { LinkVariants as Me } from "./components/Link/types.js";
|
|
39
|
+
import { default as Ge } from "./components/LinkBlock/LinkBlock.js";
|
|
40
|
+
import { default as ze } from "./components/LinkList/LinkList.js";
|
|
41
|
+
import { default as We } from "./components/Modal/Modal.js";
|
|
42
|
+
import { default as Qe } from "./components/Navigation/Navigation.js";
|
|
43
|
+
import { default as Ye } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
44
|
+
import { default as qe } from "./components/Navigation/NavigationItemWithSubmenu/NavigationItemWithSubmenu.js";
|
|
45
|
+
import { default as Ke } from "./components/Navigation/NavigationItemWithSubmenu/NavigationDesktopSubmenu.js";
|
|
46
|
+
import { default as _e } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
47
|
+
import { default as et } from "./components/Navigation/NavigationSubmenu/NavigationSubmenu.js";
|
|
48
|
+
import { default as ot } from "./components/Pagination/Pagination.js";
|
|
49
|
+
import { default as at } from "./components/PinchZoom/PinchZoom.js";
|
|
50
|
+
import { default as st } from "./components/Row/Row.js";
|
|
51
|
+
import { default as dt } from "./components/Search/Search.js";
|
|
52
|
+
import { default as pt } from "./components/SeldonImage/SeldonImage.js";
|
|
53
|
+
import { default as it } from "./components/Select/Select.js";
|
|
54
|
+
import { SelectVariants as nt } from "./components/Select/types.js";
|
|
55
|
+
import { default as ct } from "./components/SplitPanel/SplitPanel.js";
|
|
56
|
+
import { default as Ct } from "./components/Tabs/TabsContainer.js";
|
|
57
|
+
import { default as Tt } from "./components/Tabs/TabsContent.js";
|
|
58
|
+
import { Tag as bt, default as It } from "./components/Tags/Tags.js";
|
|
59
|
+
import { TextAlignments as Vt, TextVariants as At } from "./components/Text/types.js";
|
|
60
|
+
import { default as Dt } from "./components/Text/Text.js";
|
|
61
|
+
import { TextSymbolVariants as Ft } from "./components/TextSymbol/types.js";
|
|
62
|
+
import { default as kt } from "./components/TextSymbol/TextSymbol.js";
|
|
63
|
+
import { default as Nt } from "./components/Video/Video.js";
|
|
64
|
+
import { default as Mt } from "./patterns/FavoritesCollectionTile/FavoritesCollectionTile.js";
|
|
65
|
+
import { default as Gt } from "./patterns/HeroBanner/HeroBanner.js";
|
|
66
|
+
import { default as zt } from "./patterns/TextBanner/TextBanner.js";
|
|
67
|
+
import { default as Wt } from "./patterns/LanguageSelector/LanguageSelector.js";
|
|
68
|
+
import { default as Qt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
69
|
+
import { default as Yt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
70
|
+
import { default as qt } from "./patterns/Social/Social.js";
|
|
71
|
+
import { default as Kt } from "./patterns/Subscribe/Subscribe.js";
|
|
72
|
+
import { SubscriptionState as _t } from "./patterns/Subscribe/types.js";
|
|
73
|
+
import { AuthState as eo } from "./patterns/UserManagement/types.js";
|
|
74
|
+
import { default as oo } from "./patterns/UserManagement/UserManagement.js";
|
|
75
|
+
import { default as ao } from "./patterns/ViewingsList/StatefulViewingsList.js";
|
|
76
|
+
import { default as so } from "./patterns/ViewingsList/ViewingsList.js";
|
|
77
|
+
import { SeldonProvider as mo } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
78
|
+
import { default as uo } from "./components/ComboBox/ComboBox.js";
|
|
79
|
+
import { default as xo } from "./components/ComposedModal/ComposedModal.js";
|
|
80
|
+
import { default as go } from "./components/DetailList/DetailList.js";
|
|
81
|
+
import { DetailListAlignment as So } from "./components/DetailList/types.js";
|
|
82
|
+
import { default as Bo } from "./components/ExitGateCard/ExitGateCard.js";
|
|
83
|
+
import { default as Po } from "./components/Loader/Loader.js";
|
|
84
|
+
import { default as Io } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
85
|
+
import { FilterButton as Vo } from "./patterns/FiltersInline/FilterButton.js";
|
|
86
|
+
import { default as yo } from "./patterns/FiltersInline/FiltersInline.js";
|
|
87
|
+
import { FilterButtonIconType as vo, FilterButtonType as Fo } from "./patterns/FiltersInline/types.js";
|
|
88
|
+
import { default as ko } from "./patterns/SaleCard/SaleCard.js";
|
|
89
|
+
import { SaleCardActions as No } from "./patterns/SaleCard/SaleCardActions.js";
|
|
90
|
+
import { SaleCardImageDisplay as Mo, SaleCardVariants as Eo } from "./patterns/SaleCard/types.js";
|
|
91
|
+
import { default as Ro } from "./patterns/ViewingDetails/ViewingDetails.js";
|
|
92
|
+
import { default as Uo } from "./components/ProgressIndicator/ProgressIndicator.js";
|
|
93
|
+
import { default as Oo } from "./site-furniture/Footer/Footer.js";
|
|
94
|
+
import { default as jo } from "./site-furniture/Header/Header.js";
|
|
95
|
+
import { default as Zo } from "./components/AddToCalendar/AddToCalendar.js";
|
|
96
|
+
import { default as Jo } from "./components/Article/Article.js";
|
|
97
|
+
import { default as Xo } from "./components/Countdown/Countdown.js";
|
|
98
|
+
import { CountdownVariants as $o } from "./components/Countdown/types.js";
|
|
99
|
+
import { default as tr } from "./components/DescriptiveRadioButton/DescriptiveRadioButton.js";
|
|
100
|
+
import { default as rr } from "./components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.js";
|
|
101
|
+
import { default as fr } from "./components/Divider/Divider.js";
|
|
102
|
+
import { default as lr } from "./components/FavoritingTileButton/FavoritingTileButton.js";
|
|
103
|
+
import { default as mr } from "./components/Filter/Filter.js";
|
|
104
|
+
import { default as ur } from "./components/Filter/FilterInput.js";
|
|
105
|
+
import { default as xr } from "./components/Filter/FilterHeader.js";
|
|
106
|
+
import { default as gr } from "./components/NotificationBanner/NotificationBanner.js";
|
|
107
|
+
import { default as Sr } from "./components/Pictogram/Pictogram.js";
|
|
108
|
+
import { default as Br } from "./components/TextArea/TextArea.js";
|
|
109
|
+
import { default as Pr } from "./components/Toast/Toast.js";
|
|
110
|
+
import { ToastProvider as Ir } from "./components/Toast/ToastContextProvider.js";
|
|
111
|
+
import { useToast as Vr } from "./components/Toast/useToast.js";
|
|
112
|
+
import { default as yr } from "./patterns/AccountPageHeader/AccountPageHeader.js";
|
|
113
|
+
import { default as vr } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
114
|
+
import { default as hr } from "./patterns/BidSnapshot/BidMessage.js";
|
|
115
|
+
import { BidMessageVariants as wr, BidStatusEnum as Nr } from "./patterns/BidSnapshot/types.js";
|
|
116
|
+
import { default as Mr } from "./patterns/FilterMenu/FilterMenu.js";
|
|
117
|
+
import { default as Gr } from "./patterns/ObjectTile/ObjectTile.js";
|
|
118
|
+
import { default as zr } from "./patterns/CountryPicker/CountryPicker.js";
|
|
119
|
+
import { default as Wr } from "./patterns/ProgressWizard/ProgressWizard.js";
|
|
120
|
+
import { ProgressWizardFooter as Qr } from "./patterns/ProgressWizard/components/ProgressWizardFooter.js";
|
|
121
|
+
import { useHistoryManagement as Yr } from "./patterns/ProgressWizard/hooks/useHistoryManagement.js";
|
|
122
|
+
import { DefaultButtonLabels as qr, LoadingState as Jr } from "./patterns/ProgressWizard/types.js";
|
|
123
|
+
import { default as Xr } from "./patterns/PhoneNumberInput/PhoneNumberInput.js";
|
|
122
124
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
125
|
+
z as Accordion,
|
|
126
|
+
W as AccordionItem,
|
|
127
|
+
Q as AccordionVariants,
|
|
128
|
+
yr as AccountPageHeader,
|
|
129
|
+
Zo as AddToCalendar,
|
|
130
|
+
Jo as Article,
|
|
131
|
+
V as AuctionStatus,
|
|
132
|
+
eo as AuthState,
|
|
133
|
+
hr as BidMessage,
|
|
134
|
+
wr as BidMessageVariants,
|
|
135
|
+
vr as BidSnapshot,
|
|
136
|
+
Nr as BidStatusEnum,
|
|
137
|
+
Y as Breadcrumb,
|
|
136
138
|
v as Button,
|
|
137
139
|
h as ButtonSizes,
|
|
138
140
|
k as ButtonVariants,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
K as
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
se as
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
Te as
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
Vo as
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
141
|
+
N as Card,
|
|
142
|
+
M as CardVariants,
|
|
143
|
+
K as Carousel,
|
|
144
|
+
_ as CarouselArrows,
|
|
145
|
+
ee as CarouselContent,
|
|
146
|
+
ae as CarouselDots,
|
|
147
|
+
oe as CarouselItem,
|
|
148
|
+
se as Collapsible,
|
|
149
|
+
de as CollapsibleContent,
|
|
150
|
+
pe as CollapsibleTrigger,
|
|
151
|
+
uo as ComboBox,
|
|
152
|
+
xo as ComposedModal,
|
|
153
|
+
ie as ContentPeek,
|
|
154
|
+
ne as ContentPeekHeightUnits,
|
|
155
|
+
Xo as Countdown,
|
|
156
|
+
$o as CountdownVariants,
|
|
157
|
+
zr as CountryPicker,
|
|
158
|
+
qr as DefaultButtonLabels,
|
|
159
|
+
tr as DescriptiveRadioButton,
|
|
160
|
+
rr as DescriptiveRadioButtonGroup,
|
|
161
|
+
ce as Detail,
|
|
162
|
+
go as DetailList,
|
|
163
|
+
So as DetailListAlignment,
|
|
164
|
+
Ce as DetailVariants,
|
|
165
|
+
fr as Divider,
|
|
166
|
+
Te as Drawer,
|
|
167
|
+
be as Dropdown,
|
|
168
|
+
Le as ErrorBoundary,
|
|
169
|
+
Bo as ExitGateCard,
|
|
170
|
+
Mt as FavoritesCollectionTile,
|
|
171
|
+
lr as FavoritingTileButton,
|
|
172
|
+
mr as Filter,
|
|
173
|
+
Vo as FilterButton,
|
|
174
|
+
vo as FilterButtonIconType,
|
|
175
|
+
Fo as FilterButtonType,
|
|
176
|
+
xr as FilterHeader,
|
|
177
|
+
ur as FilterInput,
|
|
178
|
+
Mr as FilterMenu,
|
|
179
|
+
yo as FiltersInline,
|
|
180
|
+
Oo as Footer,
|
|
181
|
+
Ae as Grid,
|
|
182
|
+
De as GridItem,
|
|
183
|
+
Fe as GridItemAlign,
|
|
184
|
+
jo as Header,
|
|
185
|
+
Gt as HeroBanner,
|
|
186
|
+
q as Icon,
|
|
187
|
+
G as IconButton,
|
|
188
|
+
ke as Input,
|
|
189
|
+
Wt as LanguageSelector,
|
|
190
|
+
Ne as Link,
|
|
191
|
+
Ge as LinkBlock,
|
|
192
|
+
ze as LinkList,
|
|
193
|
+
Me as LinkVariants,
|
|
194
|
+
Po as Loader,
|
|
195
|
+
Jr as LoadingState,
|
|
196
|
+
A as LotStatus,
|
|
197
|
+
We as Modal,
|
|
198
|
+
Qe as Navigation,
|
|
199
|
+
Ke as NavigationDesktopSubmenu,
|
|
200
|
+
Ye as NavigationItem,
|
|
201
|
+
qe as NavigationItemWithSubmenu,
|
|
202
|
+
_e as NavigationList,
|
|
203
|
+
et as NavigationSubmenu,
|
|
204
|
+
gr as NotificationBanner,
|
|
205
|
+
Gr as ObjectTile,
|
|
202
206
|
a as PaddingTokens,
|
|
203
207
|
C as Page,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
Io as PageContentWrapper,
|
|
209
|
+
ot as Pagination,
|
|
210
|
+
Xr as PhoneNumberInput,
|
|
211
|
+
Sr as Pictogram,
|
|
212
|
+
at as PinchZoom,
|
|
213
|
+
Uo as ProgressIndicator,
|
|
214
|
+
Wr as ProgressWizard,
|
|
215
|
+
Qr as ProgressWizardFooter,
|
|
216
|
+
st as Row,
|
|
213
217
|
T as SSRMediaQuery,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
218
|
+
ko as SaleCard,
|
|
219
|
+
No as SaleCardActions,
|
|
220
|
+
Mo as SaleCardImageDisplay,
|
|
221
|
+
Eo as SaleCardVariants,
|
|
222
|
+
Qt as SaleHeaderBanner,
|
|
223
|
+
Yt as SaleHeaderBrowseAuctions,
|
|
224
|
+
dt as Search,
|
|
225
|
+
pt as SeldonImage,
|
|
226
|
+
mo as SeldonProvider,
|
|
227
|
+
it as Select,
|
|
228
|
+
nt as SelectVariants,
|
|
229
|
+
qt as Social,
|
|
226
230
|
f as SpacingTokens,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
+
ct as SplitPanel,
|
|
232
|
+
ao as StatefulViewingsList,
|
|
233
|
+
Kt as Subscribe,
|
|
234
|
+
_t as SubscriptionState,
|
|
231
235
|
y as SupportedLanguages,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
236
|
+
Ct as TabsContainer,
|
|
237
|
+
Tt as TabsContent,
|
|
238
|
+
bt as Tag,
|
|
239
|
+
It as TagsList,
|
|
240
|
+
Dt as Text,
|
|
241
|
+
Vt as TextAlignments,
|
|
242
|
+
Br as TextArea,
|
|
243
|
+
zt as TextBanner,
|
|
244
|
+
Ft as TextSymbolVariants,
|
|
245
|
+
kt as TextSymbols,
|
|
246
|
+
At as TextVariants,
|
|
247
|
+
Pr as Toast,
|
|
248
|
+
Ir as ToastProvider,
|
|
249
|
+
oo as UserManagement,
|
|
250
|
+
Nt as Video,
|
|
251
|
+
Ro as ViewingDetails,
|
|
252
|
+
so as ViewingsList,
|
|
249
253
|
s as defaultYear,
|
|
250
254
|
l as emailValidation,
|
|
251
255
|
d as encodeURLSearchParams,
|
|
@@ -253,12 +257,12 @@ export {
|
|
|
253
257
|
p as findChildrenOfType,
|
|
254
258
|
u as focusElementById,
|
|
255
259
|
i as generatePaddingClassName,
|
|
256
|
-
|
|
257
|
-
|
|
260
|
+
x as getCommonProps,
|
|
261
|
+
n as noOp,
|
|
258
262
|
g as px,
|
|
259
263
|
P as ssrMediaQueryStyle,
|
|
260
|
-
|
|
264
|
+
Yr as useHistoryManagement,
|
|
261
265
|
c as useNormalizedInputProps,
|
|
262
266
|
I as usePendingState,
|
|
263
|
-
|
|
267
|
+
Vr as useToast
|
|
264
268
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { SaleCardActions } from './SaleCardActions';
|
|
3
|
-
import {
|
|
3
|
+
import { SaleCardImageDisplay, SaleCardVariants } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Props for the SaleCard component.
|
|
6
6
|
*/
|
|
7
|
-
export interface SaleCardProps extends ComponentProps<'
|
|
7
|
+
export interface SaleCardProps extends ComponentProps<'article'> {
|
|
8
8
|
/**
|
|
9
9
|
* The source URL of the image to be displayed.
|
|
10
10
|
* Leaving this prop undefined or falsy is the intended way to hide the image.
|
|
@@ -45,5 +45,5 @@ export interface SaleCardProps extends ComponentProps<'div'> {
|
|
|
45
45
|
*
|
|
46
46
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/patterns-salecard--overview)
|
|
47
47
|
*/
|
|
48
|
-
declare const SaleCard: import('react').ForwardRefExoticComponent<Omit<SaleCardProps, "ref"> & import('react').RefAttributes<
|
|
48
|
+
declare const SaleCard: import('react').ForwardRefExoticComponent<Omit<SaleCardProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
49
49
|
export default SaleCard;
|
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
const R = L(
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import L from "../../_virtual/index.js";
|
|
3
|
+
import { forwardRef as M } from "react";
|
|
4
|
+
import g from "../../components/Button/Button.js";
|
|
5
|
+
import a from "../../components/Card/Card.js";
|
|
6
|
+
import { CardVariants as A } from "../../components/Card/types.js";
|
|
7
|
+
import { ButtonVariants as R } from "../../components/Button/types.js";
|
|
8
|
+
import { SSRMediaQuery as T } from "../../providers/SeldonProvider/utils.js";
|
|
9
|
+
import { getCommonProps as k } from "../../utils/index.js";
|
|
10
|
+
import { SaleCardImageDisplay as w, SaleCardVariants as f } from "./types.js";
|
|
11
|
+
const y = M(
|
|
13
12
|
({
|
|
14
13
|
className: p,
|
|
15
|
-
imageSrc:
|
|
16
|
-
imageAlt:
|
|
17
|
-
auctionType:
|
|
18
|
-
titleText:
|
|
19
|
-
date:
|
|
20
|
-
location:
|
|
21
|
-
badgeText:
|
|
22
|
-
modalButtonOnClick:
|
|
14
|
+
imageSrc: l,
|
|
15
|
+
imageAlt: h = "Auction Image",
|
|
16
|
+
auctionType: C,
|
|
17
|
+
titleText: u,
|
|
18
|
+
date: E,
|
|
19
|
+
location: S,
|
|
20
|
+
badgeText: s,
|
|
21
|
+
modalButtonOnClick: i,
|
|
23
22
|
modalButtonText: t,
|
|
24
|
-
variant:
|
|
25
|
-
children:
|
|
26
|
-
imageDisplay:
|
|
27
|
-
...
|
|
28
|
-
},
|
|
29
|
-
const { className:
|
|
30
|
-
[`${
|
|
31
|
-
[`${
|
|
32
|
-
}),
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
t &&
|
|
23
|
+
variant: o = f.DEFAULT,
|
|
24
|
+
children: n,
|
|
25
|
+
imageDisplay: c = w.LEFT,
|
|
26
|
+
...d
|
|
27
|
+
}, _) => {
|
|
28
|
+
const { className: e, ...N } = k(d, "SaleCard"), $ = L(e, p, {
|
|
29
|
+
[`${e}--${o}`]: o,
|
|
30
|
+
[`${e}--image-${c}`]: c
|
|
31
|
+
}), I = { ...N, ...d };
|
|
32
|
+
return /* @__PURE__ */ m(a.Root, { ref: _, element: "article", variant: A.default, className: $, ...I, children: [
|
|
33
|
+
l ? /* @__PURE__ */ r(a.Image, { alt: h, src: l }) : null,
|
|
34
|
+
/* @__PURE__ */ m(a.Content, { children: [
|
|
35
|
+
/* @__PURE__ */ r(a.Eyebrow, { children: C }),
|
|
36
|
+
/* @__PURE__ */ r(a.Title, { children: u }),
|
|
37
|
+
s ? /* @__PURE__ */ r(a.Badge, { children: s }) : null,
|
|
38
|
+
/* @__PURE__ */ m(a.Meta, { className: `${e}__info`, children: [
|
|
39
|
+
/* @__PURE__ */ r(a.MetaItem, { children: S }),
|
|
40
|
+
/* @__PURE__ */ r(a.MetaItem, { children: E }),
|
|
41
|
+
t && i && /* @__PURE__ */ r("div", { className: `${e}__modal-link`, children: /* @__PURE__ */ r(g, { onClick: i, variant: R.link, linkSize: "sm", children: t }) })
|
|
43
42
|
] })
|
|
44
43
|
] }),
|
|
45
|
-
|
|
44
|
+
o !== f.RELATED_SALE_TILE && n && /* @__PURE__ */ r("div", { className: `${e}__ctas`, children: /* @__PURE__ */ r(T.Media, { greaterThanOrEqual: "snw-mobile", children: n }) })
|
|
46
45
|
] });
|
|
47
46
|
}
|
|
48
47
|
);
|
|
49
|
-
|
|
48
|
+
y.displayName = "SaleCard";
|
|
50
49
|
export {
|
|
51
|
-
|
|
50
|
+
y as default
|
|
52
51
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SaleCardProps } from './SaleCard';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').ForwardRefExoticComponent<Omit<SaleCardProps, "ref"> & import('react').RefAttributes<
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<Omit<SaleCardProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
5
5
|
};
|
|
6
6
|
export default meta;
|
|
7
7
|
export declare const SaleCardPlayground: {
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@use '../../allPartials' as *;
|
|
2
|
+
|
|
3
|
+
.#{$px}-card {
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: $spacing-md;
|
|
8
|
+
|
|
9
|
+
@include media($breakpoint-snw-mobile) {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--stacked {
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
|
|
17
|
+
.#{$px}-card__image,
|
|
18
|
+
.#{$px}-card__video {
|
|
19
|
+
min-width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.#{$px}-card__details {
|
|
23
|
+
align-self: stretch;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__image,
|
|
28
|
+
&__video {
|
|
29
|
+
align-items: center;
|
|
30
|
+
border-radius: $radius-xs;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex: none;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
width: 100%;
|
|
36
|
+
|
|
37
|
+
@include media($breakpoint-snw-mobile) {
|
|
38
|
+
flex: 0 0 30%;
|
|
39
|
+
min-width: auto;
|
|
40
|
+
width: auto;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__image {
|
|
45
|
+
img {
|
|
46
|
+
height: auto;
|
|
47
|
+
object-fit: cover;
|
|
48
|
+
width: 100%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__video {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__details {
|
|
57
|
+
align-items: flex-start;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
gap: $spacing-micro;
|
|
62
|
+
|
|
63
|
+
@include media($size-snw-mobile, 'max') {
|
|
64
|
+
align-self: stretch;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&__title {
|
|
69
|
+
&.#{$px}-text {
|
|
70
|
+
text-transform: uppercase;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
a {
|
|
74
|
+
color: inherit;
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
|
|
77
|
+
&:hover,
|
|
78
|
+
&:focus-visible {
|
|
79
|
+
color: inherit;
|
|
80
|
+
text-decoration: underline;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&__cta {
|
|
86
|
+
align-self: flex-start;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__description {
|
|
90
|
+
&.#{$px}-text {
|
|
91
|
+
color: $text-default;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__badge {
|
|
96
|
+
border: 1px solid $badge-blue;
|
|
97
|
+
color: $badge-blue;
|
|
98
|
+
padding: $spacing-micro 8px;
|
|
99
|
+
text-transform: unset;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&__meta {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
gap: $spacing-micro;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&__meta-item {
|
|
109
|
+
&.#{$px}-text {
|
|
110
|
+
color: $text-supporting;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -4,12 +4,24 @@
|
|
|
4
4
|
overflow: hidden;
|
|
5
5
|
position: relative;
|
|
6
6
|
|
|
7
|
-
&--aspect-ratio-16-9
|
|
8
|
-
|
|
7
|
+
&--aspect-ratio-16-9 {
|
|
8
|
+
img {
|
|
9
|
+
aspect-ratio: 16 / 9;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.#{$px}-seldon-image--error-image {
|
|
13
|
+
aspect-ratio: 16 / 9;
|
|
14
|
+
}
|
|
9
15
|
}
|
|
10
16
|
|
|
11
|
-
&--aspect-ratio-1-1
|
|
12
|
-
|
|
17
|
+
&--aspect-ratio-1-1 {
|
|
18
|
+
img {
|
|
19
|
+
aspect-ratio: 1 / 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.#{$px}-seldon-image--error-image {
|
|
23
|
+
aspect-ratio: 1 / 1;
|
|
24
|
+
}
|
|
13
25
|
}
|
|
14
26
|
|
|
15
27
|
&--error {
|
|
@@ -30,82 +30,18 @@ a:has(> .#{$px}-sale-card) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
&__title {
|
|
34
|
-
&.#{$px}-text {
|
|
35
|
-
text-transform: uppercase;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__image {
|
|
40
|
-
align-items: center;
|
|
41
|
-
aspect-ratio: 91/51;
|
|
42
|
-
border-radius: $radius-xs;
|
|
43
|
-
display: flex;
|
|
44
|
-
flex: 0 0 30%;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
min-width: 100%;
|
|
47
|
-
|
|
48
|
-
@include media($breakpoint-snw-mobile) {
|
|
49
|
-
min-width: auto;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
img {
|
|
53
|
-
height: auto;
|
|
54
|
-
object-fit: cover;
|
|
55
|
-
width: 100%;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&__details {
|
|
60
|
-
align-items: flex-start;
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
flex-grow: 1;
|
|
64
|
-
gap: $spacing-micro;
|
|
65
|
-
|
|
66
|
-
@include media($size-snw-mobile, 'max') {
|
|
67
|
-
align-self: flex-start;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
33
|
&__ctas {
|
|
72
34
|
flex: 0 0 0%;
|
|
73
35
|
|
|
74
|
-
@media
|
|
36
|
+
@include media($breakpoint-snw-mobile) {
|
|
75
37
|
flex-basis: 250px;
|
|
76
38
|
}
|
|
77
39
|
}
|
|
78
40
|
|
|
79
|
-
&__date_info {
|
|
80
|
-
display: flex;
|
|
81
|
-
flex-direction: row;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&__separator {
|
|
85
|
-
margin: 0 8px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&__info {
|
|
89
|
-
display: flex;
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
gap: $spacing-micro;
|
|
92
|
-
|
|
93
|
-
.#{$px}-text {
|
|
94
|
-
color: $text-supporting;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
41
|
&__modal-link .#{$px}-button {
|
|
99
42
|
@include text($linkSmall);
|
|
100
43
|
}
|
|
101
44
|
|
|
102
|
-
&__badge {
|
|
103
|
-
border: 1px solid $badge-blue;
|
|
104
|
-
color: $badge-blue;
|
|
105
|
-
padding: $spacing-micro 8px;
|
|
106
|
-
text-transform: unset;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
45
|
&__cta-button {
|
|
110
46
|
padding: $spacing-sm $spacing-lg;
|
|
111
47
|
white-space: nowrap;
|
|
@@ -132,12 +68,13 @@ a:has(> .#{$px}-sale-card) {
|
|
|
132
68
|
&.#{$px}-sale-card--image-left {
|
|
133
69
|
flex-direction: row;
|
|
134
70
|
}
|
|
71
|
+
|
|
135
72
|
&.#{$px}-sale-card--image-right {
|
|
136
73
|
flex-direction: row-reverse;
|
|
137
74
|
}
|
|
138
75
|
}
|
|
139
76
|
|
|
140
|
-
.#{$px}-
|
|
77
|
+
> .#{$px}-card__image {
|
|
141
78
|
max-width: $spacing-xxxl;
|
|
142
79
|
min-width: 94px;
|
|
143
80
|
|