@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.
@@ -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 l from "../../node_modules/classnames/index.js";
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: o,
13
+ iconSize: r,
14
14
  createFirstListText: a,
15
- onClick: r
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(), r?.(n);
24
+ n.stopPropagation(), o?.(n);
25
25
  },
26
- children: /* @__PURE__ */ t("span", { className: l(`${e}__empty`, `${e}__empty--create-list`), children: /* @__PURE__ */ c("span", { className: `${e}__empty__content`, children: [
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: o,
32
- height: o,
33
- color: "$dark-gray",
34
- className: l(`${e}__icon`, `${e}__icon-circle`),
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: o,
43
+ iconSize: r,
44
44
  text: a,
45
- ariaLabel: r,
45
+ ariaLabel: o,
46
46
  dataTestId: n
47
- }) => /* @__PURE__ */ t("div", { className: `${e}__media-container`, "data-testid": n, "aria-label": r, role: "region", children: /* @__PURE__ */ t("div", { className: l(`${e}__empty`, `${e}__empty--bg`), children: /* @__PURE__ */ c("div", { className: `${e}__empty__content`, children: [
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: o,
53
- height: o,
54
- color: "$dark-gray",
55
- className: l(`${e}__icon`),
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: o,
62
+ imageRef: r,
63
63
  listAriaLabel: a,
64
- name: r,
64
+ name: o,
65
65
  imageSrc: n
66
66
  }) => /* @__PURE__ */ t(
67
67
  "div",
68
68
  {
69
69
  className: `${e}__media-container`,
70
- ref: o,
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: r,
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
- ), lt = J(
88
+ ), dt = J(
89
89
  Q(
90
90
  ({
91
91
  id: e,
92
- className: o,
92
+ className: r,
93
93
  count: a,
94
- name: r,
94
+ name: o,
95
95
  imageSrc: n,
96
96
  variant: _,
97
97
  element: L = W,
98
- href: k,
99
- emptyFavoritesText: w = "You have not added any objects to your Favorites yet.",
100
- emptyListsText: b = "You have not added any objects to your List yet.",
101
- createFirstListText: x = "Create your first List.",
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: d = 22,
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 = r && a !== null && a !== void 0, h = a === 0, f = _ === "lists", A = _ === "create", M = _ === "favorites" && h, Y = m && h && f, K = () => A ? /* @__PURE__ */ t(
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: d,
120
- createFirstListText: x,
119
+ iconSize: l,
120
+ createFirstListText: k,
121
121
  onClick: y.onClick
122
122
  }
123
- ) : /* @__PURE__ */ c(L, { href: k, className: l(`${i}__media-link`, P), tabIndex: 0, children: [
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: d,
129
- text: w,
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: d,
139
- text: b,
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: r,
150
+ name: o,
151
151
  imageSrc: n,
152
- iconSize: d
152
+ iconSize: l
153
153
  }
154
154
  )
155
155
  ] });
156
- return /* @__PURE__ */ t("div", { ...p, className: l(i, o), ref: O, id: e, children: /* @__PURE__ */ c("div", { className: `${i}__content`, children: [
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
- r && /* @__PURE__ */ t(v, { element: "h3", className: `${i}__title`, variant: g.heading5, children: r })
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: d,
180
- height: d,
181
- color: "$dark-gray",
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
- lt as default
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;
@@ -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' {
@@ -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);
@@ -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: $padding-xsm $padding-xsm $padding-sm;
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-md) {
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-md) {
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-md, 'max') {
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-md) {
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-md, 'max') {
119
+ @include media($size-snw-mobile, 'max') {
120
120
  flex-direction: row;
121
121
  }
122
122
 
@@ -8,7 +8,7 @@
8
8
  gap: $spacing-md;
9
9
  justify-content: center;
10
10
  max-width: none;
11
- padding: $spacing-lg $spacing-md;
11
+ padding: $spacing-lg 0;
12
12
 
13
13
  h1 {
14
14
  white-space: nowrap;
@@ -5,5 +5,6 @@ export declare const BREAKPOINTS: {
5
5
  md: number;
6
6
  lg: number;
7
7
  xl: number;
8
+ "snw-mobile": number;
8
9
  };
9
10
  export declare const DEFAULT_REM_SIZE = 16;
@@ -3,9 +3,11 @@ const s = {
3
3
  sm: 361,
4
4
  md: 961,
5
5
  lg: 1401,
6
- xl: 1801
7
- }, E = 16;
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
- E as DEFAULT_REM_SIZE
12
+ m as DEFAULT_REM_SIZE
11
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.195.1",
3
+ "version": "1.196.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"