@phillips/seldon 1.195.0 → 1.195.2

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
  };
@@ -505,3 +505,8 @@ $mobile-minimum-clickable-area: 44px;
505
505
  ///
506
506
  $search-size: var(--search-size);
507
507
  $header-height: var(--header-height);
508
+
509
+ /// Drawer min height Token
510
+ /// Used to ensure the drawer button area is always at least the minimum height
511
+ /// This is calculated as the (button label height) + (Drawer panel padding) + (Button's internal padding)
512
+ $drawer-button-area-min-height: calc($button-label-line-height + $spacing-md * 2 + $spacing-sm * 2);
@@ -505,6 +505,11 @@ $mobile-minimum-clickable-area: 44px;
505
505
  ///
506
506
  $search-size: var(--search-size);
507
507
  $header-height: var(--header-height);
508
+
509
+ /// Drawer min height Token
510
+ /// Used to ensure the drawer button area is always at least the minimum height
511
+ /// This is calculated as the (button label height) + (Drawer panel padding) + (Button's internal padding)
512
+ $drawer-button-area-min-height: calc($button-label-line-height + $spacing-md * 2 + $spacing-sm * 2);
508
513
  `;
509
514
  export {
510
515
  e as default
@@ -36,6 +36,10 @@
36
36
  padding: $spacing-md;
37
37
  width: 100%;
38
38
 
39
+ @media (min-width: $breakpoint-md) {
40
+ min-height: $drawer-button-area-min-height;
41
+ }
42
+
39
43
  @media (min-width: $breakpoint-xl) {
40
44
  gap: 0;
41
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.195.0",
3
+ "version": "1.195.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"