@caseparts-org/caseblocks 0.0.269 → 0.0.270

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.
@@ -127,7 +127,7 @@ const U = ({
127
127
  top: (w == null ? void 0 : w.top) ?? 0,
128
128
  left: (w == null ? void 0 : w.left) ?? 0,
129
129
  visibility: w ? "visible" : "hidden",
130
- zIndex: 10
130
+ zIndex: 1001
131
131
  },
132
132
  onPointerEnter: () => {
133
133
  E.current = !0, u(L), u(y);
@@ -5,13 +5,13 @@ import { Tooltip as k } from "../../atoms/Tooltip/Tooltip.js";
5
5
  import { Icon as l } from "../../atoms/Icon/Icon.js";
6
6
  import { Disclaimer as n } from "../Disclaimer/Disclaimer.js";
7
7
  import { Pill as w } from "../../atoms/Pill/Pill.js";
8
- import '../../assets/Availability.css';const x = "_availability_4sun9_1", g = "_pointer_4sun9_8", y = "_tooltip_4sun9_12", b = "_tooltipContent_4sun9_20", T = "_tooltipHeader_4sun9_24", v = "_tooltipInfo_4sun9_33", z = "_tooltipTitle_4sun9_38", C = "_tooltipHeaderIcon_4sun9_42", H = "_tooltipHeaderAlert_4sun9_53", A = "_warehouseList_4sun9_67", K = "_warehouseName_4sun9_82", L = "_fulfillmentNotice_4sun9_93", S = "_available_4sun9_98", D = "_limited_4sun9_101", I = "_discontinued_4sun9_104", o = {
8
+ import '../../assets/Availability.css';const x = "_availability_4sun9_1", g = "_pointer_4sun9_8", b = "_tooltip_4sun9_12", y = "_tooltipContent_4sun9_20", v = "_tooltipHeader_4sun9_24", T = "_tooltipInfo_4sun9_33", z = "_tooltipTitle_4sun9_38", C = "_tooltipHeaderIcon_4sun9_42", H = "_tooltipHeaderAlert_4sun9_53", A = "_warehouseList_4sun9_67", K = "_warehouseName_4sun9_82", L = "_fulfillmentNotice_4sun9_93", S = "_available_4sun9_98", D = "_limited_4sun9_101", I = "_discontinued_4sun9_104", o = {
9
9
  availability: x,
10
10
  pointer: g,
11
- tooltip: y,
12
- tooltipContent: b,
13
- tooltipHeader: T,
14
- tooltipInfo: v,
11
+ tooltip: b,
12
+ tooltipContent: y,
13
+ tooltipHeader: v,
14
+ tooltipInfo: T,
15
15
  tooltipTitle: z,
16
16
  tooltipHeaderIcon: C,
17
17
  tooltipHeaderAlert: H,
@@ -26,29 +26,29 @@ import '../../assets/Availability.css';const x = "_availability_4sun9_1", g = "_
26
26
  function F({
27
27
  availId: i,
28
28
  availDescription: r,
29
- availClassName: c,
29
+ availClassName: a,
30
30
  enableTooltip: m = !1,
31
- inventory: d
31
+ inventory: c
32
32
  }) {
33
- const a = m && d && i !== "not-found";
34
- return a ? /* @__PURE__ */ e(
33
+ const d = m && c && i !== "not-found";
34
+ return d ? /* @__PURE__ */ e(
35
35
  k,
36
36
  {
37
37
  closeDelay: 0,
38
38
  openDelay: 250,
39
39
  position: "bottom center",
40
- trigger: /* @__PURE__ */ t(s, { size: "xs", className: f(o.availability, o[i], a ? o.pointer : null, c), children: [
40
+ trigger: /* @__PURE__ */ t(s, { size: "xs", className: f(o.availability, o[i], d ? o.pointer : null, a), children: [
41
41
  r,
42
42
  /* @__PURE__ */ e(l, { iconKey: "fa-solid fa-chevron-down", size: "3xs" })
43
43
  ] }),
44
44
  contentClassName: o.tooltip,
45
- children: /* @__PURE__ */ e(P, { availabilityId: i, inventory: d })
45
+ children: /* @__PURE__ */ e(P, { availabilityId: i, inventory: c })
46
46
  }
47
- ) : /* @__PURE__ */ e(s, { size: "xs", className: f(o.availability, o[i], a ? o.pointer : null, c), children: r });
47
+ ) : /* @__PURE__ */ e(s, { size: "xs", className: f(o.availability, o[i], d ? o.pointer : null, a), children: r });
48
48
  }
49
49
  function P({ availabilityId: i, inventory: r }) {
50
50
  var u, h, p;
51
- const c = Math.max(0, ((u = r.MPK) == null ? void 0 : u.Unreserved) ?? 0), m = Math.max(0, ((h = r.SEA) == null ? void 0 : h.Unreserved) ?? 0), d = Math.max(0, ((p = r.STL) == null ? void 0 : p.Unreserved) ?? 0), a = c + m + d;
51
+ const a = Math.max(0, ((u = r.MPK) == null ? void 0 : u.Unreserved) ?? 0), m = Math.max(0, ((h = r.SEA) == null ? void 0 : h.Unreserved) ?? 0), c = Math.max(0, ((p = r.STL) == null ? void 0 : p.Unreserved) ?? 0), d = a + m + c;
52
52
  if (i === "in-stock" || i === "limited") {
53
53
  const _ = i === "in-stock" ? "Additional quantity will be backordered. A customer service representative will contact you if fulfillment requires multiple warehouses." : "Once our stock is depleted, this item will no longer be available.";
54
54
  return /* @__PURE__ */ t("div", { className: o.tooltipContent, children: [
@@ -56,7 +56,7 @@ function P({ availabilityId: i, inventory: r }) {
56
56
  /* @__PURE__ */ e("span", { className: o.tooltipHeaderIcon, children: /* @__PURE__ */ e(l, { colorToken: i === "in-stock" ? "success" : "warning", iconKey: i === "in-stock" ? "fa-solid fa-box" : "fa-solid fa-triangle-exclamation", size: "xs" }) }),
57
57
  /* @__PURE__ */ e("div", { className: o.tooltipTitle, children: /* @__PURE__ */ e(s, { size: "sm", weight: "semibold", children: i === "limited" ? "Limited stock across 3 warehouses" : "Available across 3 warehouses" }) }),
58
58
  /* @__PURE__ */ t(w, { colorToken: i === "limited" ? "warning" : "success", weight: "semibold", children: [
59
- a,
59
+ d,
60
60
  " total"
61
61
  ] })
62
62
  ] }),
@@ -66,14 +66,14 @@ function P({ availabilityId: i, inventory: r }) {
66
66
  /* @__PURE__ */ e(l, { iconKey: "fa-solid fa-box", size: "xs" }),
67
67
  "Los Angeles"
68
68
  ] }),
69
- /* @__PURE__ */ e(s, { size: "sm", weight: "semibold", children: c })
69
+ /* @__PURE__ */ e(s, { size: "sm", weight: "semibold", children: a })
70
70
  ] }),
71
71
  /* @__PURE__ */ t("li", { children: [
72
72
  /* @__PURE__ */ t(s, { size: "sm", className: o.warehouseName, children: [
73
73
  /* @__PURE__ */ e(l, { iconKey: "fa-solid fa-box", size: "xs" }),
74
74
  "St. Louis"
75
75
  ] }),
76
- /* @__PURE__ */ e(s, { size: "sm", weight: "semibold", children: d })
76
+ /* @__PURE__ */ e(s, { size: "sm", weight: "semibold", children: c })
77
77
  ] }),
78
78
  /* @__PURE__ */ t("li", { children: [
79
79
  /* @__PURE__ */ t(s, { size: "sm", className: o.warehouseName, children: [
@@ -85,7 +85,7 @@ function P({ availabilityId: i, inventory: r }) {
85
85
  ] }),
86
86
  /* @__PURE__ */ e(n, { backgroundColorToken: i === "in-stock" ? "neutral" : "warning", layout: "stacked", className: o.fulfillmentNotice, children: /* @__PURE__ */ t(n.Content, { children: [
87
87
  /* @__PURE__ */ e(n.Icon, { icon: i === "in-stock" ? "info" : "warning", size: "xs", colorToken: i === "in-stock" ? "secondary" : "warning" }),
88
- /* @__PURE__ */ e(n.Primary, { children: i === "limited" ? "Available while supplies last" : `Need more than ${a}?` }),
88
+ /* @__PURE__ */ e(n.Primary, { children: i === "limited" ? "Available while supplies last" : "Need more than what's available?" }),
89
89
  /* @__PURE__ */ e(n.Subtext, { children: _ })
90
90
  ] }) })
91
91
  ] });
@@ -156,11 +156,11 @@ function R(e) {
156
156
  0
157
157
  ).toFixed(2)}`;
158
158
  }
159
- const u = /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: 8, minWidth: 220 }, children: [
159
+ const d = /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: 8, minWidth: 220 }, children: [
160
160
  /* @__PURE__ */ i(h, { size: "sm", weight: "semibold", children: "Account" }),
161
161
  /* @__PURE__ */ i(h, { size: "xs", children: "Signed in as Ringo" }),
162
162
  /* @__PURE__ */ i(y, { href: "/account", "data-popover-close": "true", children: "View Account" }),
163
- /* @__PURE__ */ i(y, { href: "/orders", "data-popover-close": "true", children: "Order History" }),
163
+ /* @__PURE__ */ i(y, { href: "/orders", "data-popover-close": "true", children: "Quotes & Orders" }),
164
164
  /* @__PURE__ */ i(S, { size: "sm", variant: "secondary", "data-popover-close": "true", onClick: () => alert("Sign out"), children: "Sign Out" })
165
165
  ] }), m = (e) => {
166
166
  const [o, t] = g(!1);
@@ -200,14 +200,14 @@ const u = /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "c
200
200
  searchSuggestions: o ? I : void 0,
201
201
  recentSearches: r,
202
202
  onClearRecentSearch: (l) => {
203
- k((n) => n.filter((d) => d.url !== l.url));
203
+ k((n) => n.filter((u) => u.url !== l.url));
204
204
  },
205
205
  searchInputProps: {
206
206
  ...e.searchInputProps,
207
207
  value: o,
208
208
  onChange: (l) => {
209
- var n, d;
210
- (d = (n = e.searchInputProps) == null ? void 0 : n.onChange) == null || d.call(n, l), t(l.target.value);
209
+ var n, u;
210
+ (u = (n = e.searchInputProps) == null ? void 0 : n.onChange) == null || u.call(n, l), t(l.target.value);
211
211
  }
212
212
  }
213
213
  }
@@ -234,7 +234,7 @@ const u = /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "c
234
234
  },
235
235
  // placeholder required by component
236
236
  categories: c,
237
- accountPopoverContent: u
237
+ accountPopoverContent: d
238
238
  },
239
239
  render: m
240
240
  }, A = {
@@ -258,7 +258,7 @@ const u = /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "c
258
258
  onCartClick: () => {
259
259
  },
260
260
  categories: c,
261
- accountPopoverContent: u
261
+ accountPopoverContent: d
262
262
  },
263
263
  render: m
264
264
  }, F = {
@@ -282,7 +282,7 @@ const u = /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "c
282
282
  onCartClick: () => {
283
283
  },
284
284
  categories: c,
285
- accountPopoverContent: u
285
+ accountPopoverContent: d
286
286
  },
287
287
  render: G
288
288
  }, w = {
@@ -328,7 +328,7 @@ const u = /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "c
328
328
  onCartClick: () => {
329
329
  },
330
330
  categories: c,
331
- accountPopoverContent: u,
331
+ accountPopoverContent: d,
332
332
  isAccountLoading: !0,
333
333
  isCategoriesLoading: !0
334
334
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.269",
4
+ "version": "0.0.270",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",