@phillips/seldon 1.148.0 → 1.149.1
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/pictograms/formatted/Chat.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Chat.js +44 -0
- package/dist/assets/pictograms/formatted/CreditCard.d.ts +9 -0
- package/dist/assets/pictograms/formatted/CreditCard.js +31 -0
- package/dist/assets/pictograms/formatted/Form.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Form.js +31 -0
- package/dist/assets/pictograms/formatted/Live.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Live.js +35 -0
- package/dist/assets/pictograms/formatted/MobilePhone.d.ts +9 -0
- package/dist/assets/pictograms/formatted/MobilePhone.js +30 -0
- package/dist/assets/pictograms/formatted/Notification.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Notification.js +45 -0
- package/dist/assets/pictograms/formatted/Phone.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Phone.js +56 -0
- package/dist/assets/pictograms/formatted/Photos.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Photos.js +39 -0
- package/dist/assets/pictograms/formatted/Search.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Search.js +44 -0
- package/dist/assets/pictograms/formatted/Shipping.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Shipping.js +37 -0
- package/dist/assets/pictograms/formatted/Sign.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Sign.js +37 -0
- package/dist/assets/pictograms/formatted/Submit.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Submit.js +38 -0
- package/dist/assets/pictograms/formatted/Timer.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Timer.js +39 -0
- package/dist/assets/pictograms/formatted/Verification.d.ts +9 -0
- package/dist/assets/pictograms/formatted/Verification.js +39 -0
- package/dist/assets/pictograms/formatted/index.d.ts +14 -0
- package/dist/assets/pictograms/formatted/index.js +30 -0
- package/dist/components/Countdown/Countdown.d.ts +2 -2
- package/dist/components/Countdown/Countdown.js +56 -53
- package/dist/components/Countdown/Countdown.stories.d.ts +3 -0
- package/dist/components/Icon/Icon.d.ts +7 -1
- package/dist/components/Icon/Icon.js +17 -16
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Pictogram/Pictogram.d.ts +29 -0
- package/dist/components/Pictogram/Pictogram.js +25 -0
- package/dist/components/Pictogram/Pictogram.stories.d.ts +21 -0
- package/dist/components/Pictogram/Pictogram.test.d.ts +1 -0
- package/dist/components/Pictogram/index.d.ts +1 -0
- package/dist/design/icons/PictogramGrid.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -15
- package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +2 -2
- package/dist/patterns/BidSnapshot/BidSnapshot.js +43 -43
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.d.ts +2 -2
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +2 -2
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.stories.d.ts +22 -1
- package/package.json +3 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as m, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as n, forwardRef as a } from "react";
|
|
3
|
+
import { kebabCase as f } from "../../../node_modules/change-case/dist/index.js";
|
|
4
|
+
const w = n(
|
|
5
|
+
a((i, r) => {
|
|
6
|
+
const { color: e, height: d, width: h, title: t, titleId: s } = i, o = s || f(t || "");
|
|
7
|
+
return /* @__PURE__ */ m(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 64 64",
|
|
13
|
+
height: d,
|
|
14
|
+
width: h,
|
|
15
|
+
role: "img",
|
|
16
|
+
ref: r,
|
|
17
|
+
"aria-labelledby": o,
|
|
18
|
+
...i,
|
|
19
|
+
children: [
|
|
20
|
+
t ? /* @__PURE__ */ l("title", { id: o, children: t }) : null,
|
|
21
|
+
/* @__PURE__ */ l("path", { fill: e, d: "M33.5 23h-3v9H29v6h6v-1.5h13v-3H35V32h-1.5z" }),
|
|
22
|
+
/* @__PURE__ */ l(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
fill: e,
|
|
26
|
+
fillRule: "evenodd",
|
|
27
|
+
d: "M57 35c0 13.807-11.193 25-25 25S7 48.807 7 35s11.193-25 25-25 25 11.193 25 25m-3 0c0 12.15-9.85 22-22 22s-22-9.85-22-22 9.85-22 22-22 22 9.85 22 22",
|
|
28
|
+
clipRule: "evenodd"
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ l("path", { fill: e, d: "M25 4h14v3h-5.5v1.667h-3V7H25zM16.364 13.121 14.243 11 10 15.243l2.121 2.121z" })
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
export {
|
|
38
|
+
w as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface VerificationProps extends React.HTMLAttributes<SVGSVGElement> {
|
|
2
|
+
color?: string;
|
|
3
|
+
height?: number | string;
|
|
4
|
+
width?: number | string;
|
|
5
|
+
title?: string;
|
|
6
|
+
titleId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Verification: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<VerificationProps & import('react').RefAttributes<SVGSVGElement>>>;
|
|
9
|
+
export default Verification;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as a, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as f, forwardRef as v } from "react";
|
|
3
|
+
import { kebabCase as m } from "../../../node_modules/change-case/dist/index.js";
|
|
4
|
+
const u = f(
|
|
5
|
+
v((t, d) => {
|
|
6
|
+
const { color: e, height: r, width: h, title: i, titleId: n } = t, o = n || m(i || "");
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 64 64",
|
|
13
|
+
height: r,
|
|
14
|
+
width: h,
|
|
15
|
+
role: "img",
|
|
16
|
+
ref: d,
|
|
17
|
+
"aria-labelledby": o,
|
|
18
|
+
...t,
|
|
19
|
+
children: [
|
|
20
|
+
i ? /* @__PURE__ */ l("title", { id: o, children: i }) : null,
|
|
21
|
+
/* @__PURE__ */ l("path", { fill: e, fillRule: "evenodd", d: "M10 29V17h12v12zm3-9h6v6h-6z", clipRule: "evenodd" }),
|
|
22
|
+
/* @__PURE__ */ l("path", { fill: e, d: "M26 18h19v3H26zM26 24h19v3H26zM55.121 37.5 46 46.621 40.879 41.5 43 39.379l3 3 7-7z" }),
|
|
23
|
+
/* @__PURE__ */ l(
|
|
24
|
+
"path",
|
|
25
|
+
{
|
|
26
|
+
fill: e,
|
|
27
|
+
fillRule: "evenodd",
|
|
28
|
+
d: "M4 43h32.166c.952 5.675 5.888 10 11.834 10 6.627 0 12-5.373 12-12 0-4.843-2.869-9.016-7-10.912V11H4zm46-13.834V14H7v20h31.252c2.178-3.028 5.733-5 9.748-5q1.023.001 2 .166M36.683 37H7v3h29.041a12 12 0 0 1 .642-3M48 50a9 9 0 1 0 0-18 9 9 0 0 0 0 18",
|
|
29
|
+
clipRule: "evenodd"
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
export {
|
|
38
|
+
u as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { default as Chat } from './Chat';
|
|
2
|
+
export { default as CreditCard } from './CreditCard';
|
|
3
|
+
export { default as Form } from './Form';
|
|
4
|
+
export { default as Live } from './Live';
|
|
5
|
+
export { default as MobilePhone } from './MobilePhone';
|
|
6
|
+
export { default as Notification } from './Notification';
|
|
7
|
+
export { default as Phone } from './Phone';
|
|
8
|
+
export { default as Photos } from './Photos';
|
|
9
|
+
export { default as Search } from './Search';
|
|
10
|
+
export { default as Shipping } from './Shipping';
|
|
11
|
+
export { default as Sign } from './Sign';
|
|
12
|
+
export { default as Submit } from './Submit';
|
|
13
|
+
export { default as Timer } from './Timer';
|
|
14
|
+
export { default as Verification } from './Verification';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as t } from "./Chat.js";
|
|
2
|
+
import { default as a } from "./CreditCard.js";
|
|
3
|
+
import { default as m } from "./Form.js";
|
|
4
|
+
import { default as p } from "./Live.js";
|
|
5
|
+
import { default as s } from "./MobilePhone.js";
|
|
6
|
+
import { default as i } from "./Notification.js";
|
|
7
|
+
import { default as h } from "./Phone.js";
|
|
8
|
+
import { default as S } from "./Photos.js";
|
|
9
|
+
import { default as C } from "./Search.js";
|
|
10
|
+
import { default as b } from "./Shipping.js";
|
|
11
|
+
import { default as v } from "./Sign.js";
|
|
12
|
+
import { default as L } from "./Submit.js";
|
|
13
|
+
import { default as N } from "./Timer.js";
|
|
14
|
+
import { default as V } from "./Verification.js";
|
|
15
|
+
export {
|
|
16
|
+
t as Chat,
|
|
17
|
+
a as CreditCard,
|
|
18
|
+
m as Form,
|
|
19
|
+
p as Live,
|
|
20
|
+
s as MobilePhone,
|
|
21
|
+
i as Notification,
|
|
22
|
+
h as Phone,
|
|
23
|
+
S as Photos,
|
|
24
|
+
C as Search,
|
|
25
|
+
b as Shipping,
|
|
26
|
+
v as Sign,
|
|
27
|
+
L as Submit,
|
|
28
|
+
N as Timer,
|
|
29
|
+
V as Verification
|
|
30
|
+
};
|
|
@@ -31,9 +31,9 @@ export interface CountdownProps extends ComponentProps<'div'> {
|
|
|
31
31
|
*/
|
|
32
32
|
variant?: CountdownVariants;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Function to get the current date time
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
getCurrentDateTime?: () => Date | null;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* ## Overview
|
|
@@ -1,69 +1,72 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import { SupportedLanguages as
|
|
6
|
-
import { CountdownVariants as
|
|
7
|
-
import { Duration as
|
|
8
|
-
import { zhCN as
|
|
9
|
-
import { enUS as
|
|
10
|
-
import { differenceInDays as
|
|
11
|
-
import { differenceInHours as
|
|
12
|
-
import { differenceInMinutes as
|
|
13
|
-
import { differenceInSeconds as
|
|
14
|
-
import { differenceInMilliseconds as
|
|
15
|
-
const
|
|
1
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useState as j, useEffect as z, useMemo as P } from "react";
|
|
3
|
+
import { getCommonProps as E } from "../../utils/index.js";
|
|
4
|
+
import F from "../../node_modules/classnames/index.js";
|
|
5
|
+
import { SupportedLanguages as H } from "../../types/commonTypes.js";
|
|
6
|
+
import { CountdownVariants as m } from "./types.js";
|
|
7
|
+
import { Duration as i } from "./Duration.js";
|
|
8
|
+
import { zhCN as R } from "../../node_modules/date-fns/locale/zh-CN.js";
|
|
9
|
+
import { enUS as S } from "../../node_modules/date-fns/locale/en-US.js";
|
|
10
|
+
import { differenceInDays as h } from "../../node_modules/date-fns/differenceInDays.js";
|
|
11
|
+
import { differenceInHours as w } from "../../node_modules/date-fns/differenceInHours.js";
|
|
12
|
+
import { differenceInMinutes as y } from "../../node_modules/date-fns/differenceInMinutes.js";
|
|
13
|
+
import { differenceInSeconds as I } from "../../node_modules/date-fns/differenceInSeconds.js";
|
|
14
|
+
import { differenceInMilliseconds as U } from "../../node_modules/date-fns/differenceInMilliseconds.js";
|
|
15
|
+
const V = M(
|
|
16
16
|
({
|
|
17
17
|
endDateTime: o,
|
|
18
|
-
formatDurationStr:
|
|
19
|
-
label:
|
|
20
|
-
intervalDescription:
|
|
21
|
-
className:
|
|
22
|
-
locale:
|
|
23
|
-
showBottomBorder:
|
|
24
|
-
variant:
|
|
25
|
-
|
|
26
|
-
...
|
|
27
|
-
},
|
|
28
|
-
const { className: r, ...
|
|
29
|
-
days:
|
|
30
|
-
hours:
|
|
31
|
-
minutes:
|
|
32
|
-
seconds: (
|
|
18
|
+
formatDurationStr: l,
|
|
19
|
+
label: u = "Lots Close in",
|
|
20
|
+
intervalDescription: N,
|
|
21
|
+
className: C,
|
|
22
|
+
locale: $ = "en",
|
|
23
|
+
showBottomBorder: b = !0,
|
|
24
|
+
variant: f = m.default,
|
|
25
|
+
getCurrentDateTime: t = () => /* @__PURE__ */ new Date(),
|
|
26
|
+
...d
|
|
27
|
+
}, g) => {
|
|
28
|
+
const { className: r, ...L } = E(d, "Countdown"), [n, _] = j(t() || /* @__PURE__ */ new Date()), c = $ === H.zh ? R : S, s = {
|
|
29
|
+
days: h(o, n) > 0 ? h(o, n) : 0,
|
|
30
|
+
hours: w(o, n) > 0 ? w(o, n) % 24 : 0,
|
|
31
|
+
minutes: y(o, n) > 0 ? y(o, n) % 60 : 0,
|
|
32
|
+
seconds: (I(o, n) > 0 ? I(o, n) % 60 : 0) % 60
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
34
|
+
z(() => {
|
|
35
|
+
const a = setInterval(() => {
|
|
36
|
+
_(t() || /* @__PURE__ */ new Date());
|
|
37
37
|
}, 1e3);
|
|
38
|
-
return () => clearInterval(
|
|
39
|
-
}, [o,
|
|
40
|
-
const
|
|
41
|
-
|
|
38
|
+
return () => clearInterval(a);
|
|
39
|
+
}, [o, t]);
|
|
40
|
+
const v = P(() => {
|
|
41
|
+
const a = t();
|
|
42
|
+
return !!a && new Date(o).getTime() > a.getTime();
|
|
43
|
+
}, [o, t]), x = U(o, n) <= 3 * 60 * 1e3;
|
|
44
|
+
return v ? /* @__PURE__ */ p(
|
|
42
45
|
"div",
|
|
43
46
|
{
|
|
44
|
-
...
|
|
45
|
-
className:
|
|
46
|
-
[`${r}--compact`]:
|
|
47
|
-
[`${r}--show-bottom-border`]:
|
|
48
|
-
[`${r}--closing-lot`]:
|
|
47
|
+
...L,
|
|
48
|
+
className: F(r, C, {
|
|
49
|
+
[`${r}--compact`]: f === m.compact,
|
|
50
|
+
[`${r}--show-bottom-border`]: b,
|
|
51
|
+
[`${r}--closing-lot`]: x
|
|
49
52
|
}),
|
|
50
|
-
...
|
|
51
|
-
ref:
|
|
53
|
+
...d,
|
|
54
|
+
ref: g,
|
|
52
55
|
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */ e("span", { className: `${r}__label`, children:
|
|
55
|
-
s.days > 0 ? /* @__PURE__ */ e(
|
|
56
|
-
s.days > 0 || s.hours > 0 ? /* @__PURE__ */ e(
|
|
57
|
-
s.days === 0 ? /* @__PURE__ */ e(
|
|
58
|
-
s.days === 0 && s.hours === 0 ? /* @__PURE__ */ e(
|
|
56
|
+
/* @__PURE__ */ p("div", { className: `${r}__countdown-container`, role: "timer", "aria-label": u, children: [
|
|
57
|
+
/* @__PURE__ */ e("span", { className: `${r}__label`, children: u }),
|
|
58
|
+
s.days > 0 ? /* @__PURE__ */ e(i, { duration: s, unit: "days", locale: c, formatDurationStr: l }) : null,
|
|
59
|
+
s.days > 0 || s.hours > 0 ? /* @__PURE__ */ e(i, { duration: s, unit: "hours", locale: c, formatDurationStr: l }) : null,
|
|
60
|
+
s.days === 0 ? /* @__PURE__ */ e(i, { duration: s, unit: "minutes", locale: c, formatDurationStr: l }) : null,
|
|
61
|
+
s.days === 0 && s.hours === 0 ? /* @__PURE__ */ e(i, { duration: s, unit: "seconds", locale: c, formatDurationStr: l }) : null
|
|
59
62
|
] }),
|
|
60
|
-
|
|
63
|
+
f === m.default ? /* @__PURE__ */ e("span", { children: N }) : null
|
|
61
64
|
]
|
|
62
65
|
}
|
|
63
66
|
) : null;
|
|
64
67
|
}
|
|
65
68
|
);
|
|
66
|
-
|
|
69
|
+
V.displayName = "Countdown";
|
|
67
70
|
export {
|
|
68
|
-
|
|
71
|
+
V as default
|
|
69
72
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import * as iconComponents from '../../assets/formatted';
|
|
3
|
+
import * as pictogramComponents from '../../assets/pictograms/formatted';
|
|
3
4
|
export type IconName = keyof typeof iconComponents;
|
|
5
|
+
export type PictogramName = keyof typeof pictogramComponents;
|
|
4
6
|
export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
7
|
/**
|
|
6
8
|
* Height of the icon in px (number) or as a string with units (e.g. '1em')
|
|
@@ -17,7 +19,11 @@ export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
17
19
|
/**
|
|
18
20
|
* Name of Icon to render
|
|
19
21
|
*/
|
|
20
|
-
icon: IconName;
|
|
22
|
+
icon: IconName | PictogramName;
|
|
23
|
+
/**
|
|
24
|
+
* Tells the Icon component that the icon prop refers to the name of a pictogram. This is only needed when rendering a pictogram that has the same name of an existing icon.
|
|
25
|
+
*/
|
|
26
|
+
isPictogram?: boolean;
|
|
21
27
|
}
|
|
22
28
|
/**
|
|
23
29
|
* ## Overview
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
5
|
-
import { getScssVar as
|
|
6
|
-
import * as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
...m ? {
|
|
13
|
-
...
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import x from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as C, px as N } from "../../utils/index.js";
|
|
5
|
+
import { getScssVar as $ } from "../../utils/scssUtils.js";
|
|
6
|
+
import * as I from "../../assets/formatted/index.js";
|
|
7
|
+
import * as n from "../../assets/pictograms/formatted/index.js";
|
|
8
|
+
const P = u(
|
|
9
|
+
({ className: t, height: m, width: s, color: r, icon: o, isPictogram: p, ...c }, f) => {
|
|
10
|
+
const { className: l, ...i } = C(c, `Icon-${o}`), a = p ? n[o] : I[o] || n[o], d = {
|
|
11
|
+
color: r === "currentColor" ? r : $(r ?? "", "$pure-black"),
|
|
12
|
+
...m ? { height: m } : {},
|
|
13
|
+
...s ? { width: s } : {},
|
|
14
|
+
...i
|
|
14
15
|
};
|
|
15
|
-
return
|
|
16
|
+
return a ? /* @__PURE__ */ e("div", { className: x(`${N}-icon`, l, t), ref: f, children: /* @__PURE__ */ e(a, { ...d }) }) : null;
|
|
16
17
|
}
|
|
17
18
|
);
|
|
18
|
-
|
|
19
|
+
P.displayName = "Icon";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
P as default
|
|
21
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Icon, type IconProps, type IconName } from './Icon';
|
|
1
|
+
export { default as Icon, type IconProps, type IconName, type PictogramName } from './Icon';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { PictogramName } from '../Icon';
|
|
3
|
+
export interface PictogramProps extends ComponentProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Name of Pictogram to render
|
|
6
|
+
*/
|
|
7
|
+
pictogram: PictogramName;
|
|
8
|
+
/**
|
|
9
|
+
* Size of the Pictogram
|
|
10
|
+
*/
|
|
11
|
+
size: string;
|
|
12
|
+
/**
|
|
13
|
+
* Color of the Pictogram
|
|
14
|
+
*/
|
|
15
|
+
color: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* ## Overview
|
|
19
|
+
*
|
|
20
|
+
* Component for rendering pictograms. Accepts a pictogram name and renders the corresponding SVG icon at the size specified. Also accepts a color parameter to change the fill color of the pictogram.
|
|
21
|
+
*
|
|
22
|
+
* Overview of this widget
|
|
23
|
+
*
|
|
24
|
+
* [Figma Link](https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/RW-Design-System?node-id=22564-5919&m=dev)
|
|
25
|
+
*
|
|
26
|
+
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-pictogram--overview)
|
|
27
|
+
*/
|
|
28
|
+
declare const Pictogram: import('react').ForwardRefExoticComponent<Omit<PictogramProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export default Pictogram;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { getCommonProps as f } from "../../utils/index.js";
|
|
4
|
+
import P from "../../node_modules/classnames/index.js";
|
|
5
|
+
import g from "../Icon/Icon.js";
|
|
6
|
+
const l = p(({ className: r, pictogram: t, size: o, color: a, ...m }, s) => {
|
|
7
|
+
const { className: c, ...e } = f(m, "Pictogram"), i = { ...e, ...m };
|
|
8
|
+
return /* @__PURE__ */ n(
|
|
9
|
+
g,
|
|
10
|
+
{
|
|
11
|
+
...i,
|
|
12
|
+
className: P(c, r),
|
|
13
|
+
icon: t,
|
|
14
|
+
height: o,
|
|
15
|
+
width: o,
|
|
16
|
+
color: a,
|
|
17
|
+
isPictogram: !0,
|
|
18
|
+
ref: s
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
l.displayName = "Pictogram";
|
|
23
|
+
export {
|
|
24
|
+
l as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PictogramProps } from './Pictogram';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<Omit<PictogramProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Playground: {
|
|
8
|
+
(props: PictogramProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
args: {
|
|
10
|
+
pictogram: string;
|
|
11
|
+
size: string;
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
argTypes: {
|
|
15
|
+
pictogram: string[];
|
|
16
|
+
color: {
|
|
17
|
+
control: string;
|
|
18
|
+
options: string[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Pictogram, type PictogramProps } from './Pictogram';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import { SSRMediaQuery as
|
|
3
|
+
import { SSRMediaQuery as P, ssrMediaQueryStyle as A } from "./providers/SeldonProvider/utils.js";
|
|
4
4
|
import { usePendingState as L } from "./utils/hooks.js";
|
|
5
5
|
import { AuctionStatus as b, LotStatus as V, SupportedLanguages as h } from "./types/commonTypes.js";
|
|
6
6
|
import { default as v } from "./components/Button/Button.js";
|
|
@@ -27,8 +27,8 @@ import { default as ie } from "./components/Detail/Detail.js";
|
|
|
27
27
|
import { default as ne } from "./components/Drawer/Drawer.js";
|
|
28
28
|
import { default as ce } from "./components/Dropdown/Dropdown.js";
|
|
29
29
|
import { default as Ce } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
30
|
-
import { Grid as
|
|
31
|
-
import { default as
|
|
30
|
+
import { Grid as Pe } from "./components/Grid/Grid.js";
|
|
31
|
+
import { default as Be } from "./components/GridItem/GridItem.js";
|
|
32
32
|
import { GridItemAlign as Ie } from "./components/GridItem/types.js";
|
|
33
33
|
import { default as Ve } from "./components/Input/Input.js";
|
|
34
34
|
import { default as ke } from "./components/Link/Link.js";
|
|
@@ -53,8 +53,8 @@ import { default as pt } from "./components/Tabs/TabsContent.js";
|
|
|
53
53
|
import { Tag as it, default as xt } from "./components/Tags/Tags.js";
|
|
54
54
|
import { TextAlignments as gt, TextVariants as ct } from "./components/Text/types.js";
|
|
55
55
|
import { default as Ct } from "./components/Text/Text.js";
|
|
56
|
-
import { TextSymbolVariants as
|
|
57
|
-
import { default as
|
|
56
|
+
import { TextSymbolVariants as Pt } from "./components/TextSymbol/types.js";
|
|
57
|
+
import { default as Bt } from "./components/TextSymbol/TextSymbol.js";
|
|
58
58
|
import { default as It } from "./components/Video/Video.js";
|
|
59
59
|
import { default as Vt } from "./patterns/DetailList/DetailList.js";
|
|
60
60
|
import { DetailListAlignment as kt } from "./patterns/DetailList/types.js";
|
|
@@ -80,7 +80,7 @@ import { default as xo } from "./components/Countdown/Countdown.js";
|
|
|
80
80
|
import { CountdownVariants as go } from "./components/Countdown/types.js";
|
|
81
81
|
import { default as So } from "./components/Divider/Divider.js";
|
|
82
82
|
import { default as To } from "./components/FavoritingTileButton/FavoritingTileButton.js";
|
|
83
|
-
import { default as
|
|
83
|
+
import { default as Ao } from "./components/Filter/Filter.js";
|
|
84
84
|
import { default as Lo } from "./components/Filter/FilterInput.js";
|
|
85
85
|
import { default as bo } from "./components/Filter/FilterHeader.js";
|
|
86
86
|
import { default as ho } from "./components/TextArea/TextArea.js";
|
|
@@ -94,7 +94,8 @@ import { default as Ro } from "./patterns/BidSnapshot/BidMessage.js";
|
|
|
94
94
|
import { BidMessageVariants as jo, BidStatusEnum as zo } from "./patterns/BidSnapshot/types.js";
|
|
95
95
|
import { default as Yo } from "./patterns/FilterMenu/FilterMenu.js";
|
|
96
96
|
import { default as qo } from "./patterns/ObjectTile/ObjectTile.js";
|
|
97
|
-
import { default as Ko } from "./components/
|
|
97
|
+
import { default as Ko } from "./components/Pictogram/Pictogram.js";
|
|
98
|
+
import { default as _o } from "./components/AuctionTile/AuctionTile.js";
|
|
98
99
|
export {
|
|
99
100
|
M as Accordion,
|
|
100
101
|
E as AccordionItem,
|
|
@@ -104,7 +105,7 @@ export {
|
|
|
104
105
|
Mo as AddToCalendar,
|
|
105
106
|
uo as Article,
|
|
106
107
|
b as AuctionStatus,
|
|
107
|
-
|
|
108
|
+
_o as AuctionTile,
|
|
108
109
|
Yt as AuthState,
|
|
109
110
|
Ro as BidMessage,
|
|
110
111
|
jo as BidMessageVariants,
|
|
@@ -135,13 +136,13 @@ export {
|
|
|
135
136
|
Ce as ErrorBoundary,
|
|
136
137
|
wt as FavoritesCollectionTile,
|
|
137
138
|
To as FavoritingTileButton,
|
|
138
|
-
|
|
139
|
+
Ao as Filter,
|
|
139
140
|
bo as FilterHeader,
|
|
140
141
|
Lo as FilterInput,
|
|
141
142
|
Yo as FilterMenu,
|
|
142
143
|
so as Footer,
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
Pe as Grid,
|
|
145
|
+
Be as GridItem,
|
|
145
146
|
Ie as GridItemAlign,
|
|
146
147
|
mo as Header,
|
|
147
148
|
Ht as HeroBanner,
|
|
@@ -164,9 +165,10 @@ export {
|
|
|
164
165
|
C as Page,
|
|
165
166
|
ao as PageContentWrapper,
|
|
166
167
|
Ye as Pagination,
|
|
168
|
+
Ko as Pictogram,
|
|
167
169
|
qe as PinchZoom,
|
|
168
170
|
Ke as Row,
|
|
169
|
-
|
|
171
|
+
P as SSRMediaQuery,
|
|
170
172
|
Nt as SaleHeaderBanner,
|
|
171
173
|
Ut as SaleHeaderBrowseAuctions,
|
|
172
174
|
_e as Search,
|
|
@@ -188,8 +190,8 @@ export {
|
|
|
188
190
|
Ct as Text,
|
|
189
191
|
gt as TextAlignments,
|
|
190
192
|
ho as TextArea,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
Pt as TextSymbolVariants,
|
|
194
|
+
Bt as TextSymbols,
|
|
193
195
|
ct as TextVariants,
|
|
194
196
|
vo as Toast,
|
|
195
197
|
yo as ToastProvider,
|
|
@@ -206,7 +208,7 @@ export {
|
|
|
206
208
|
x as getCommonProps,
|
|
207
209
|
n as noOp,
|
|
208
210
|
g as px,
|
|
209
|
-
|
|
211
|
+
A as ssrMediaQueryStyle,
|
|
210
212
|
c as useNormalizedInputProps,
|
|
211
213
|
L as usePendingState,
|
|
212
214
|
Do as useToast
|
|
@@ -71,9 +71,9 @@ export interface BidSnapshotProps extends ComponentProps<'div'> {
|
|
|
71
71
|
*/
|
|
72
72
|
wonForText?: string;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Function to get the current date time
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
getCurrentDateTime?: () => Date | null;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* ## Overview
|