@phillips/seldon 1.195.1 → 1.196.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/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +44 -44
- package/dist/providers/SeldonProvider/utils.d.ts +1 -1
- package/dist/scss/_utils.scss +14 -0
- package/dist/scss/_vars.scss +4 -0
- package/dist/scss/_vars.scss.js +4 -0
- package/dist/scss/components/Tabs/_tabs.scss +3 -2
- package/dist/scss/patterns/SaleCard/_saleCard.scss +5 -5
- package/dist/scss/patterns/TextBanner/_textBanner.scss +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +5 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { Root as q, Trigger as B, Portal as G, Content as H } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
3
|
-
import
|
|
3
|
+
import d from "../../node_modules/classnames/index.js";
|
|
4
4
|
import { memo as J, forwardRef as Q, useRef as U } from "react";
|
|
5
5
|
import $ from "../../components/Icon/Icon.js";
|
|
6
6
|
import W from "../../components/Link/Link.js";
|
|
@@ -10,9 +10,9 @@ import v from "../../components/Text/Text.js";
|
|
|
10
10
|
import { getCommonProps as Z } from "../../utils/index.js";
|
|
11
11
|
const S = ({
|
|
12
12
|
baseClassName: e,
|
|
13
|
-
iconSize:
|
|
13
|
+
iconSize: r,
|
|
14
14
|
createFirstListText: a,
|
|
15
|
-
onClick:
|
|
15
|
+
onClick: o
|
|
16
16
|
}) => /* @__PURE__ */ t(
|
|
17
17
|
"button",
|
|
18
18
|
{
|
|
@@ -21,17 +21,17 @@ const S = ({
|
|
|
21
21
|
"data-testid": "create-list",
|
|
22
22
|
"aria-label": a,
|
|
23
23
|
onClick: (n) => {
|
|
24
|
-
n.stopPropagation(),
|
|
24
|
+
n.stopPropagation(), o?.(n);
|
|
25
25
|
},
|
|
26
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
26
|
+
children: /* @__PURE__ */ t("span", { className: d(`${e}__empty`, `${e}__empty--create-list`), children: /* @__PURE__ */ c("span", { className: `${e}__empty__content`, children: [
|
|
27
27
|
/* @__PURE__ */ t(
|
|
28
28
|
$,
|
|
29
29
|
{
|
|
30
30
|
icon: "Add",
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
33
|
-
color: "$
|
|
34
|
-
className:
|
|
31
|
+
width: r,
|
|
32
|
+
height: r,
|
|
33
|
+
color: "$gray-75",
|
|
34
|
+
className: d(`${e}__icon`, `${e}__icon-circle`),
|
|
35
35
|
"aria-hidden": "true"
|
|
36
36
|
}
|
|
37
37
|
),
|
|
@@ -40,41 +40,41 @@ const S = ({
|
|
|
40
40
|
}
|
|
41
41
|
), N = ({
|
|
42
42
|
baseClassName: e,
|
|
43
|
-
iconSize:
|
|
43
|
+
iconSize: r,
|
|
44
44
|
text: a,
|
|
45
|
-
ariaLabel:
|
|
45
|
+
ariaLabel: o,
|
|
46
46
|
dataTestId: n
|
|
47
|
-
}) => /* @__PURE__ */ t("div", { className: `${e}__media-container`, "data-testid": n, "aria-label":
|
|
47
|
+
}) => /* @__PURE__ */ t("div", { className: `${e}__media-container`, "data-testid": n, "aria-label": o, role: "region", children: /* @__PURE__ */ t("div", { className: d(`${e}__empty`, `${e}__empty--bg`), children: /* @__PURE__ */ c("div", { className: `${e}__empty__content`, children: [
|
|
48
48
|
/* @__PURE__ */ t(
|
|
49
49
|
$,
|
|
50
50
|
{
|
|
51
51
|
icon: "Favorite",
|
|
52
|
-
width:
|
|
53
|
-
height:
|
|
54
|
-
color: "$
|
|
55
|
-
className:
|
|
52
|
+
width: r,
|
|
53
|
+
height: r,
|
|
54
|
+
color: "$gray-75",
|
|
55
|
+
className: d(`${e}__icon`),
|
|
56
56
|
"aria-hidden": "true"
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
59
|
/* @__PURE__ */ t("div", { className: `${e}__text`, children: a })
|
|
60
60
|
] }) }) }), z = ({
|
|
61
61
|
baseClassName: e,
|
|
62
|
-
imageRef:
|
|
62
|
+
imageRef: r,
|
|
63
63
|
listAriaLabel: a,
|
|
64
|
-
name:
|
|
64
|
+
name: o,
|
|
65
65
|
imageSrc: n
|
|
66
66
|
}) => /* @__PURE__ */ t(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
className: `${e}__media-container`,
|
|
70
|
-
ref:
|
|
70
|
+
ref: r,
|
|
71
71
|
"aria-label": a,
|
|
72
72
|
"data-testid": "list",
|
|
73
73
|
role: "region",
|
|
74
74
|
children: /* @__PURE__ */ t(
|
|
75
75
|
X,
|
|
76
76
|
{
|
|
77
|
-
alt:
|
|
77
|
+
alt: o,
|
|
78
78
|
aspectRatio: "1/1",
|
|
79
79
|
className: `${e}__media`,
|
|
80
80
|
objectFit: "contain",
|
|
@@ -85,48 +85,48 @@ const S = ({
|
|
|
85
85
|
}
|
|
86
86
|
)
|
|
87
87
|
}
|
|
88
|
-
),
|
|
88
|
+
), dt = J(
|
|
89
89
|
Q(
|
|
90
90
|
({
|
|
91
91
|
id: e,
|
|
92
|
-
className:
|
|
92
|
+
className: r,
|
|
93
93
|
count: a,
|
|
94
|
-
name:
|
|
94
|
+
name: o,
|
|
95
95
|
imageSrc: n,
|
|
96
96
|
variant: _,
|
|
97
97
|
element: L = W,
|
|
98
|
-
href:
|
|
99
|
-
emptyFavoritesText:
|
|
100
|
-
emptyListsText:
|
|
101
|
-
createFirstListText:
|
|
98
|
+
href: w,
|
|
99
|
+
emptyFavoritesText: b = "You have not added any objects to your Favorites yet.",
|
|
100
|
+
emptyListsText: x = "You have not added any objects to your List yet.",
|
|
101
|
+
createFirstListText: k = "Create your first List.",
|
|
102
102
|
editListText: I = "Edit List",
|
|
103
103
|
deleteListText: T = "Delete List",
|
|
104
104
|
onEdit: E,
|
|
105
105
|
onDelete: F,
|
|
106
106
|
formatlotStr: u = (i, p = i === 1 ? "LOT" : "LOTS") => `${i} ${p}`,
|
|
107
107
|
linkClassName: P,
|
|
108
|
-
iconSize:
|
|
108
|
+
iconSize: l = 22,
|
|
109
109
|
menuAriaLabel: R = "Manage List",
|
|
110
110
|
favoritesAriaLabel: V = "Favorites",
|
|
111
111
|
emptyListAriaLabel: j = "Empty List",
|
|
112
112
|
listAriaLabel: C = "List",
|
|
113
113
|
...y
|
|
114
114
|
}, O) => {
|
|
115
|
-
const { className: i, ...p } = Z({ id: e, ...y }, "FavoritesCollectionTile"), D = U(null), m =
|
|
115
|
+
const { className: i, ...p } = Z({ id: e, ...y }, "FavoritesCollectionTile"), D = U(null), m = o && a !== null && a !== void 0, h = a === 0, f = _ === "lists", A = _ === "create", M = _ === "favorites" && h, Y = m && h && f, K = () => A ? /* @__PURE__ */ t(
|
|
116
116
|
S,
|
|
117
117
|
{
|
|
118
118
|
baseClassName: i,
|
|
119
|
-
iconSize:
|
|
120
|
-
createFirstListText:
|
|
119
|
+
iconSize: l,
|
|
120
|
+
createFirstListText: k,
|
|
121
121
|
onClick: y.onClick
|
|
122
122
|
}
|
|
123
|
-
) : /* @__PURE__ */ c(L, { href:
|
|
123
|
+
) : /* @__PURE__ */ c(L, { href: w, className: d(`${i}__media-link`, P), tabIndex: 0, children: [
|
|
124
124
|
M && /* @__PURE__ */ t(
|
|
125
125
|
N,
|
|
126
126
|
{
|
|
127
127
|
baseClassName: i,
|
|
128
|
-
iconSize:
|
|
129
|
-
text:
|
|
128
|
+
iconSize: l,
|
|
129
|
+
text: b,
|
|
130
130
|
ariaLabel: V,
|
|
131
131
|
dataTestId: "favorites"
|
|
132
132
|
}
|
|
@@ -135,8 +135,8 @@ const S = ({
|
|
|
135
135
|
N,
|
|
136
136
|
{
|
|
137
137
|
baseClassName: i,
|
|
138
|
-
iconSize:
|
|
139
|
-
text:
|
|
138
|
+
iconSize: l,
|
|
139
|
+
text: x,
|
|
140
140
|
ariaLabel: j,
|
|
141
141
|
dataTestId: "empty-list"
|
|
142
142
|
}
|
|
@@ -147,17 +147,17 @@ const S = ({
|
|
|
147
147
|
baseClassName: i,
|
|
148
148
|
imageRef: D,
|
|
149
149
|
listAriaLabel: C,
|
|
150
|
-
name:
|
|
150
|
+
name: o,
|
|
151
151
|
imageSrc: n,
|
|
152
|
-
iconSize:
|
|
152
|
+
iconSize: l
|
|
153
153
|
}
|
|
154
154
|
)
|
|
155
155
|
] });
|
|
156
|
-
return /* @__PURE__ */ t("div", { ...p, className:
|
|
156
|
+
return /* @__PURE__ */ t("div", { ...p, className: d(i, r), ref: O, id: e, children: /* @__PURE__ */ c("div", { className: `${i}__content`, children: [
|
|
157
157
|
/* @__PURE__ */ c("div", { className: `${i}__header`, children: [
|
|
158
158
|
/* @__PURE__ */ c("div", { className: `${i}__info`, children: [
|
|
159
159
|
m && /* @__PURE__ */ t(v, { element: "span", className: `${i}__count`, variant: g.body3, children: u && m && u(a) }),
|
|
160
|
-
|
|
160
|
+
o && /* @__PURE__ */ t(v, { element: "h3", className: `${i}__title`, variant: g.heading5, children: o })
|
|
161
161
|
] }),
|
|
162
162
|
m && f && /* @__PURE__ */ c(q, { children: [
|
|
163
163
|
/* @__PURE__ */ t(B, { asChild: !0, children: /* @__PURE__ */ t(
|
|
@@ -176,9 +176,9 @@ const S = ({
|
|
|
176
176
|
$,
|
|
177
177
|
{
|
|
178
178
|
icon: "Icon",
|
|
179
|
-
width:
|
|
180
|
-
height:
|
|
181
|
-
color: "$
|
|
179
|
+
width: l,
|
|
180
|
+
height: l,
|
|
181
|
+
color: "$gray-75",
|
|
182
182
|
className: `${i}__icon-button`,
|
|
183
183
|
"aria-hidden": "true"
|
|
184
184
|
}
|
|
@@ -224,5 +224,5 @@ const S = ({
|
|
|
224
224
|
)
|
|
225
225
|
);
|
|
226
226
|
export {
|
|
227
|
-
|
|
227
|
+
dt as default
|
|
228
228
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Used to hide or show components based on the current breakpoint in a SSR friendly way
|
|
3
3
|
*/
|
|
4
|
-
export declare const SSRMediaQuery: import('@artsy/fresnel/dist/Media').CreateMediaResults<"sm" | "md" | "lg" | "xl" | "xsm", never>;
|
|
4
|
+
export declare const SSRMediaQuery: import('@artsy/fresnel/dist/Media').CreateMediaResults<"sm" | "md" | "lg" | "xl" | "snw-mobile" | "xsm", never>;
|
|
5
5
|
export declare const ssrMediaQueryStyle: string;
|
package/dist/scss/_utils.scss
CHANGED
|
@@ -101,6 +101,20 @@
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
@if $breakpoint == $size-snw-mobile or $breakpoint == $breakpoint-snw-mobile {
|
|
105
|
+
@if $type == 'min' {
|
|
106
|
+
@media (min-width: $breakpoint-snw-mobile) {
|
|
107
|
+
@content;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@if $type == 'max' {
|
|
112
|
+
@media (max-width: calc($breakpoint-snw-mobile - 1px)) {
|
|
113
|
+
@content;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
104
118
|
@if $breakpoint == $size-md or $breakpoint == $breakpoint-md {
|
|
105
119
|
// $breakpoint-md: 961px;
|
|
106
120
|
@if $type == 'min' {
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -180,6 +180,9 @@ $breakpoint-md: 961px;
|
|
|
180
180
|
$breakpoint-lg: 1401px;
|
|
181
181
|
$breakpoint-xl: 1801px;
|
|
182
182
|
|
|
183
|
+
// Temporary token for mobile breakpoint added to support [L3-7681](https://phillipsauctions.atlassian.net/browse/L3-7681)
|
|
184
|
+
$breakpoint-snw-mobile: 768px;
|
|
185
|
+
|
|
183
186
|
////////////////////////
|
|
184
187
|
/// FONT SIZE TOKENS:
|
|
185
188
|
///////////////////////
|
|
@@ -491,6 +494,7 @@ $size-md: 'md';
|
|
|
491
494
|
$size-lg: 'lg';
|
|
492
495
|
$size-xl: 'xl';
|
|
493
496
|
$size-xxl: 'xxl';
|
|
497
|
+
$size-snw-mobile: 'snw-mobile';
|
|
494
498
|
$default-transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
495
499
|
$drawer-content-transition: 350ms cubic-bezier(0, 0, 0.2, 1);
|
|
496
500
|
$default-overlay-transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
|
package/dist/scss/_vars.scss.js
CHANGED
|
@@ -180,6 +180,9 @@ $breakpoint-md: 961px;
|
|
|
180
180
|
$breakpoint-lg: 1401px;
|
|
181
181
|
$breakpoint-xl: 1801px;
|
|
182
182
|
|
|
183
|
+
// Temporary token for mobile breakpoint added to support [L3-7681](https://phillipsauctions.atlassian.net/browse/L3-7681)
|
|
184
|
+
$breakpoint-snw-mobile: 768px;
|
|
185
|
+
|
|
183
186
|
////////////////////////
|
|
184
187
|
/// FONT SIZE TOKENS:
|
|
185
188
|
///////////////////////
|
|
@@ -491,6 +494,7 @@ $size-md: 'md';
|
|
|
491
494
|
$size-lg: 'lg';
|
|
492
495
|
$size-xl: 'xl';
|
|
493
496
|
$size-xxl: 'xxl';
|
|
497
|
+
$size-snw-mobile: 'snw-mobile';
|
|
494
498
|
$default-transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
495
499
|
$drawer-content-transition: 350ms cubic-bezier(0, 0, 0.2, 1);
|
|
496
500
|
$default-overlay-transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
display: flex;
|
|
10
10
|
gap: 1rem;
|
|
11
11
|
overflow: hidden; /* Prevent overflow */
|
|
12
|
-
padding: 0 $padding-md;
|
|
13
12
|
position: relative;
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -17,7 +16,8 @@
|
|
|
17
16
|
background: none;
|
|
18
17
|
border: none;
|
|
19
18
|
border-bottom: 2px solid transparent;
|
|
20
|
-
padding: $
|
|
19
|
+
padding-bottom: $snowflake-menu-padding;
|
|
20
|
+
padding-inline: 0;
|
|
21
21
|
transition:
|
|
22
22
|
background 0.2s ease,
|
|
23
23
|
font-weight 0.2s ease-out,
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
cursor: pointer;
|
|
34
34
|
font-size: $body-size2;
|
|
35
35
|
font-variation-settings: 'wght' 600;
|
|
36
|
+
letter-spacing: normal;
|
|
36
37
|
line-height: $body-line-height-size2;
|
|
37
38
|
|
|
38
39
|
&:hover {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
gap: $spacing-md;
|
|
8
8
|
|
|
9
|
-
@include media($breakpoint-
|
|
9
|
+
@include media($breakpoint-snw-mobile) {
|
|
10
10
|
flex-direction: row;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
justify-content: center;
|
|
20
20
|
min-width: 100%;
|
|
21
21
|
|
|
22
|
-
@include media($breakpoint-
|
|
22
|
+
@include media($breakpoint-snw-mobile) {
|
|
23
23
|
min-width: auto;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
flex-grow: 1;
|
|
38
38
|
gap: $spacing-micro;
|
|
39
39
|
|
|
40
|
-
@include media($size-
|
|
40
|
+
@include media($size-snw-mobile, 'max') {
|
|
41
41
|
align-self: flex-start;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
&__ctas {
|
|
46
46
|
flex: 0 0 0%;
|
|
47
47
|
|
|
48
|
-
@include media($breakpoint-
|
|
48
|
+
@include media($breakpoint-snw-mobile) {
|
|
49
49
|
flex-basis: 191px;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
align-items: flex-start;
|
|
117
117
|
gap: $spacing-sm;
|
|
118
118
|
|
|
119
|
-
@include media($size-
|
|
119
|
+
@include media($size-snw-mobile, 'max') {
|
|
120
120
|
flex-direction: row;
|
|
121
121
|
}
|
|
122
122
|
|
package/dist/utils/constants.js
CHANGED
|
@@ -3,9 +3,11 @@ const s = {
|
|
|
3
3
|
sm: 361,
|
|
4
4
|
md: 961,
|
|
5
5
|
lg: 1401,
|
|
6
|
-
xl: 1801
|
|
7
|
-
|
|
6
|
+
xl: 1801,
|
|
7
|
+
// Temporary token for mobile breakpoint added to support [L3-7681](https://phillipsauctions.atlassian.net/browse/L3-7681)
|
|
8
|
+
"snw-mobile": 768
|
|
9
|
+
}, m = 16;
|
|
8
10
|
export {
|
|
9
11
|
s as BREAKPOINTS,
|
|
10
|
-
|
|
12
|
+
m as DEFAULT_REM_SIZE
|
|
11
13
|
};
|