@caseparts-org/caseblocks 0.0.185 → 0.0.187

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 +1 @@
1
- ._container_1xk40_1{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:var(--spacing-0-5)}
1
+ ._container_12mfp_1{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:var(--spacing-0-5)}._tooltipContent_12mfp_9{display:inline-flex;align-items:center;gap:var(--spacing-spacing-3xs)}
@@ -1 +1 @@
1
- ._root_12lt6_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;pointer-events:none}._overlay_12lt6_8{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:auto}._panel_12lt6_16{position:absolute;background:#fff;box-shadow:0 4px 18px #00000040;display:flex;flex-direction:column;overflow:auto;pointer-events:auto;transition:transform .28s cubic-bezier(.28,.8,.32,1),opacity .28s;will-change:transform}._panel-left_12lt6_29{top:0;left:0;height:100%;max-width:100%;transform:translate(-100%)}._panel-right_12lt6_36{top:0;right:0;height:100%;max-width:100%;transform:translate(100%)}._panel-bottom_12lt6_43{left:0;bottom:0;width:100%;max-height:100%;transform:translateY(100%)}._active_12lt6_52._from-left_12lt6_52 ._panel-left_12lt6_29,._active_12lt6_52._from-right_12lt6_53 ._panel-right_12lt6_36{transform:translate(0)}._active_12lt6_52._from-bottom_12lt6_54 ._panel-bottom_12lt6_43{transform:translateY(0)}
1
+ ._root_ncbhm_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;pointer-events:none}._overlay_ncbhm_8{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:auto}._panel_ncbhm_16{position:absolute;background:#fff;box-shadow:0 4px 18px #00000040;display:flex;flex-direction:column;overflow:auto;pointer-events:auto;transition:transform .28s cubic-bezier(.28,.8,.32,1),opacity .28s;will-change:transform}._panel-left_ncbhm_29{top:0;left:0;height:100dvh;max-width:100%;transform:translate(-100%)}._panel-right_ncbhm_36{top:0;right:0;height:100dvh;max-width:100%;transform:translate(100%)}._panel-bottom_ncbhm_43{left:0;bottom:0;width:100%;max-height:100%;transform:translateY(100%)}._active_ncbhm_52._from-left_ncbhm_52 ._panel-left_ncbhm_29,._active_ncbhm_52._from-right_ncbhm_53 ._panel-right_ncbhm_36{transform:translate(0)}._active_ncbhm_52._from-bottom_ncbhm_54 ._panel-bottom_ncbhm_43{transform:translateY(0)}
@@ -1,89 +1,89 @@
1
1
  import { jsxs as k, jsx as u } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
3
  import { r as A } from "../../index-BkF-BQ3Q.js";
4
- import { c } from "../../clsx-OuTLNxxd.js";
4
+ import { c as m } from "../../clsx-OuTLNxxd.js";
5
5
  import { getHideAtStyles as N } from "../HideAt.js";
6
- import '../../assets/SlideInPanel.css';const q = "_root_12lt6_1", P = "_overlay_12lt6_8", R = "_panel_12lt6_16", j = "_active_12lt6_52", o = {
6
+ import '../../assets/SlideInPanel.css';const q = "_root_ncbhm_1", P = "_overlay_ncbhm_8", R = "_panel_ncbhm_16", j = "_active_ncbhm_52", o = {
7
7
  root: q,
8
8
  overlay: P,
9
9
  panel: R,
10
- "panel-left": "_panel-left_12lt6_29",
11
- "panel-right": "_panel-right_12lt6_36",
12
- "panel-bottom": "_panel-bottom_12lt6_43",
10
+ "panel-left": "_panel-left_ncbhm_29",
11
+ "panel-right": "_panel-right_ncbhm_36",
12
+ "panel-bottom": "_panel-bottom_ncbhm_43",
13
13
  active: j,
14
- "from-left": "_from-left_12lt6_52",
15
- "from-right": "_from-right_12lt6_53",
16
- "from-bottom": "_from-bottom_12lt6_54"
14
+ "from-left": "_from-left_ncbhm_52",
15
+ "from-right": "_from-right_ncbhm_53",
16
+ "from-bottom": "_from-bottom_ncbhm_54"
17
17
  }, D = ({
18
- side: a,
19
- open: t,
20
- onClose: l,
18
+ side: n,
19
+ open: e,
20
+ onClose: a,
21
21
  children: d,
22
- width: v = 375,
23
- height: p = "50%",
24
- className: y,
25
- overlayClassName: b,
26
- panelClassName: h,
22
+ width: b = 375,
23
+ height: h = "50%",
24
+ className: v,
25
+ overlayClassName: p,
26
+ panelClassName: y,
27
27
  closeOnOverlayClick: x = !0,
28
- disableEsc: m = !1,
28
+ disableEsc: f = !1,
29
29
  hideAt: E,
30
30
  ariaLabel: g = "Panel"
31
31
  }) => {
32
- const [n, _] = r.useState(t), [s, i] = r.useState(!1);
32
+ const [c, _] = r.useState(e), [l, s] = r.useState(!1);
33
33
  r.useEffect(() => {
34
- t ? (n || _(!0), i(!1), requestAnimationFrame(() => {
35
- requestAnimationFrame(() => i(!0));
36
- })) : i(!1);
37
- }, [t, n]), r.useEffect(() => {
38
- if (!t || m) return;
39
- const e = (S) => {
40
- S.key === "Escape" && l();
34
+ e ? (c || _(!0), s(!1), requestAnimationFrame(() => {
35
+ requestAnimationFrame(() => s(!0));
36
+ })) : s(!1);
37
+ }, [e, c]), r.useEffect(() => {
38
+ if (!e || f) return;
39
+ const t = (S) => {
40
+ S.key === "Escape" && a();
41
41
  };
42
- return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
43
- }, [t, m, l]);
44
- const f = r.useRef(null);
42
+ return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
43
+ }, [e, f, a]);
44
+ const i = r.useRef(null);
45
45
  if (r.useEffect(() => {
46
- if (t && s && f.current) {
47
- const e = f.current.querySelector(
46
+ if (e && l && i.current) {
47
+ const t = i.current.querySelector(
48
48
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
49
49
  );
50
- e == null || e.focus();
50
+ t == null || t.focus();
51
51
  }
52
- }, [t, s]), !n || typeof document > "u") return null;
53
- const w = a === "bottom" ? { height: p } : { width: v };
52
+ }, [e, l]), !c || typeof document > "u") return null;
53
+ const w = n === "bottom" ? { height: h } : { width: b };
54
54
  return A.createPortal(
55
55
  /* @__PURE__ */ k(
56
56
  "div",
57
57
  {
58
- className: c(
58
+ className: m(
59
59
  o.root,
60
- o[`from-${a}`],
61
- s && o.active,
60
+ o[`from-${n}`],
61
+ l && o.active,
62
62
  N(E),
63
- y
63
+ v
64
64
  ),
65
- "aria-hidden": !t,
65
+ "aria-hidden": !e,
66
66
  children: [
67
67
  /* @__PURE__ */ u(
68
68
  "div",
69
69
  {
70
- className: c(o.overlay, b),
70
+ className: m(o.overlay, p),
71
71
  onClick: () => {
72
- t && x && l();
72
+ e && x && a();
73
73
  }
74
74
  }
75
75
  ),
76
76
  /* @__PURE__ */ u(
77
77
  "div",
78
78
  {
79
- ref: f,
79
+ ref: i,
80
80
  role: "dialog",
81
81
  "aria-modal": "true",
82
82
  "aria-label": g,
83
- className: c(o.panel, o[`panel-${a}`], h),
83
+ className: m(o.panel, o[`panel-${n}`], y),
84
84
  style: w,
85
- onTransitionEnd: (e) => {
86
- e.propertyName === "transform" && !t && _(!1);
85
+ onTransitionEnd: (t) => {
86
+ t.propertyName === "transform" && !e && _(!1);
87
87
  },
88
88
  children: d
89
89
  }
@@ -16,5 +16,6 @@ export interface AddToCartProps {
16
16
  buttonText?: string;
17
17
  buttonDoneText?: string;
18
18
  size?: "sm" | "md";
19
+ requiresUnitDetails?: boolean;
19
20
  }
20
- export declare function AddToCart({ itemKey, disableButton, initialQuantity, min, max, onQuantityChange, onAdd, autoHideDelayMs, showQuantity, className, addButtonClassName, addButtonVariant, buttonText, buttonDoneText, size }: AddToCartProps): React.ReactElement | null;
21
+ export declare function AddToCart({ itemKey, disableButton, initialQuantity, min, max, onQuantityChange, onAdd, autoHideDelayMs, showQuantity, className, addButtonClassName, addButtonVariant, buttonText, buttonDoneText, size, requiresUnitDetails }: AddToCartProps): React.ReactElement | null;
@@ -1,66 +1,74 @@
1
- import { jsxs as v, jsx as d } from "react/jsx-runtime";
2
- import r from "react";
3
- import { c as q } from "../../clsx-OuTLNxxd.js";
4
- import { StatefulButton as w } from "../StatefulButton/StatefulButton.js";
1
+ import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
+ import o from "react";
3
+ import { c as j } from "../../clsx-OuTLNxxd.js";
4
+ import { StatefulButton as q } from "../StatefulButton/StatefulButton.js";
5
5
  import { QuantityInput as y } from "../QuantityInput/QuantityInput.js";
6
- import '../../assets/AddToCart.css';const z = "_container_1xk40_1", B = {
7
- container: z
6
+ import { Tooltip as B } from "../../atoms/Tooltip/Tooltip.js";
7
+ import { Text as I } from "../../atoms/Text/Text.js";
8
+ import { Icon as M } from "../../atoms/Icon/Icon.js";
9
+ import '../../assets/AddToCart.css';const w = "_container_12mfp_1", E = "_tooltipContent_12mfp_9", m = {
10
+ container: w,
11
+ tooltipContent: E
8
12
  };
9
- function H({
10
- itemKey: s,
11
- disableButton: i,
12
- initialQuantity: l = 1,
13
- min: o = 1,
14
- max: m,
15
- onQuantityChange: c,
16
- onAdd: f,
17
- autoHideDelayMs: p = 3e3,
18
- showQuantity: x = !0,
19
- className: T,
20
- addButtonClassName: _,
21
- addButtonVariant: b,
22
- buttonText: k,
23
- buttonDoneText: A,
24
- size: a
13
+ function V({
14
+ itemKey: c,
15
+ disableButton: f,
16
+ initialQuantity: p = 1,
17
+ min: s = 1,
18
+ max: _,
19
+ onQuantityChange: n,
20
+ onAdd: x,
21
+ autoHideDelayMs: T = 3e3,
22
+ showQuantity: b = !0,
23
+ className: A,
24
+ addButtonClassName: N,
25
+ addButtonVariant: R,
26
+ buttonText: S,
27
+ buttonDoneText: k,
28
+ size: a,
29
+ requiresUnitDetails: v = !1
25
30
  }) {
26
- const [u, N] = r.useState(() => {
27
- const e = Number(l) || 1;
28
- return e < o ? o : e;
29
- }), [R, n] = r.useState(!1), t = r.useRef(null);
30
- r.useEffect(() => () => {
31
+ const [i, z] = o.useState(() => {
32
+ const e = Number(p) || 1;
33
+ return e < s ? s : e;
34
+ }), [C, d] = o.useState(!1), t = o.useRef(null);
35
+ o.useEffect(() => () => {
31
36
  t.current && clearTimeout(t.current);
32
37
  }, []);
33
- const S = r.useCallback((e) => {
34
- N(e), c == null || c(e);
35
- }, [c]), j = async () => {
36
- s && (await f(s, u), n(!0), t.current && clearTimeout(t.current), t.current = setTimeout(() => n(!1), p));
37
- };
38
- return /* @__PURE__ */ v("div", { className: q(B.container, T), children: [
39
- x && /* @__PURE__ */ d(
38
+ const h = o.useCallback((e) => {
39
+ z(e), n == null || n(e);
40
+ }, [n]), l = /* @__PURE__ */ r(
41
+ q,
42
+ {
43
+ size: a || "md",
44
+ variant: R || "cta-primary",
45
+ completed: C,
46
+ onClick: async () => {
47
+ c && (await x(c, i), d(!0), t.current && clearTimeout(t.current), t.current = setTimeout(() => d(!1), T));
48
+ },
49
+ text: S,
50
+ completedText: k,
51
+ disabled: !c || f,
52
+ className: N
53
+ }
54
+ );
55
+ return /* @__PURE__ */ u("div", { className: j(m.container, A), children: [
56
+ b && /* @__PURE__ */ r(
40
57
  y,
41
58
  {
42
- quantity: u,
43
- onQuantityChange: S,
44
- min: o,
45
- max: m,
59
+ quantity: i,
60
+ onQuantityChange: h,
61
+ min: s,
62
+ max: _,
46
63
  size: a || "md"
47
64
  }
48
65
  ),
49
- /* @__PURE__ */ d(
50
- w,
51
- {
52
- size: a || "md",
53
- variant: b || "cta-primary",
54
- completed: R,
55
- onClick: j,
56
- text: k,
57
- completedText: A,
58
- disabled: !s || i,
59
- className: _
60
- }
61
- )
66
+ v ? /* @__PURE__ */ r(B, { trigger: l, children: /* @__PURE__ */ u("div", { className: m.tooltipContent, children: [
67
+ /* @__PURE__ */ r(M, { iconKey: "fa-regular fa-barcode-read", size: "sm" }),
68
+ /* @__PURE__ */ r(I, { size: "sm", children: "Requires Make, Model, and Serial" })
69
+ ] }) }) : l
62
70
  ] });
63
71
  }
64
72
  export {
65
- H as AddToCart
73
+ V as AddToCart
66
74
  };
@@ -54,6 +54,10 @@ declare const meta: {
54
54
  control: "text";
55
55
  description: string;
56
56
  };
57
+ requiresUnitDetails: {
58
+ control: "boolean";
59
+ description: string;
60
+ };
57
61
  className: {
58
62
  control: "text";
59
63
  };
@@ -1,7 +1,7 @@
1
- import { AddToCart as o } from "./AddToCart.js";
2
- const i = {
1
+ import { AddToCart as n } from "./AddToCart.js";
2
+ const a = {
3
3
  title: "Case Parts/Molecules/AddToCart",
4
- component: o,
4
+ component: n,
5
5
  parameters: { layout: "centered" },
6
6
  argTypes: {
7
7
  itemKey: {
@@ -43,6 +43,10 @@ const i = {
43
43
  control: "text",
44
44
  description: "Label after add completes"
45
45
  },
46
+ requiresUnitDetails: {
47
+ control: "boolean",
48
+ description: "Shows a tooltip on the add button when unit details are required"
49
+ },
46
50
  className: { control: "text" },
47
51
  addButtonClassName: { control: "text" }
48
52
  },
@@ -53,10 +57,11 @@ const i = {
53
57
  max: void 0,
54
58
  autoHideDelayMs: 2500,
55
59
  showQuantity: !0,
60
+ requiresUnitDetails: !1,
56
61
  buttonText: "Add",
57
62
  buttonDoneText: "Added!",
58
63
  onAdd: async (t, e) => {
59
- await new Promise((n) => setTimeout(n, 600)), alert(`Added (story default):${JSON.stringify({ itemKey: t, quantity: e })}`);
64
+ await new Promise((o) => setTimeout(o, 600)), alert(`Added (story default):${JSON.stringify({ itemKey: t, quantity: e })}`);
60
65
  }
61
66
  },
62
67
  tags: ["autodocs"]
@@ -76,11 +81,11 @@ const i = {
76
81
  buttonText: "Add to Cart",
77
82
  buttonDoneText: "In Cart"
78
83
  }
79
- }, c = {
84
+ }, l = {
80
85
  name: "Async (Simulated Slow)",
81
86
  args: {
82
87
  onAdd: async (t, e) => {
83
- await new Promise((n) => setTimeout(n, 1800)), console.log("Slow add complete:", { itemKey: t, quantity: e });
88
+ await new Promise((o) => setTimeout(o, 1800)), console.log("Slow add complete:", { itemKey: t, quantity: e });
84
89
  }
85
90
  },
86
91
  parameters: {
@@ -90,17 +95,17 @@ const i = {
90
95
  }
91
96
  }
92
97
  }
93
- }, l = {
98
+ }, c = {
94
99
  args: {
95
100
  autoHideDelayMs: 5e3
96
101
  }
97
102
  };
98
103
  export {
99
- c as AsyncSlowAdd,
100
- l as CustomAutoHideDelay,
104
+ l as AsyncSlowAdd,
105
+ c as CustomAutoHideDelay,
101
106
  u as CustomTexts,
102
107
  s as Default,
103
108
  d as HiddenQuantity,
104
109
  r as WithMaxConstraint,
105
- i as default
110
+ a as default
106
111
  };
@@ -22,5 +22,6 @@ export interface CartPartProps extends Omit<React.LiHTMLAttributes<HTMLLIElement
22
22
  onQuantityChange?: (_quantity: number) => void;
23
23
  onRemove?: () => void;
24
24
  onUnitEditClick?: () => void;
25
+ requiresUnitDetails?: boolean;
25
26
  }
26
- export declare function CartPart({ imageUrl, imageAlt, title, titleHref, onTitleNavigate, partNumber, unit, make, model, serial, custom, availabilityId, availability, contactHref, contactLinkBehavior, priceLabel, price, quantity, onQuantityChange, onRemove, onUnitEditClick, className, ...otherProps }: CartPartProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function CartPart({ imageUrl, imageAlt, title, titleHref, onTitleNavigate, partNumber, unit, make, model, serial, custom, availabilityId, availability, contactHref, contactLinkBehavior, priceLabel, price, quantity, onQuantityChange, onRemove, onUnitEditClick, requiresUnitDetails, className, ...otherProps }: CartPartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,86 +1,106 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { Link as q } from "../../atoms/Link/Link.js";
3
- import { Text as l } from "../../atoms/Text/Text.js";
4
- import { Image as v } from "../../atoms/Image/Image.js";
5
- import { Availability as A } from "../Availability/Availability.js";
6
- import { Pricing as B } from "../Pricing/Pricing.js";
7
- import { QuantityInput as D } from "../QuantityInput/QuantityInput.js";
8
- import { Icon as y } from "../../atoms/Icon/Icon.js";
9
- import { c as M } from "../../clsx-OuTLNxxd.js";
3
+ import { Text as m } from "../../atoms/Text/Text.js";
4
+ import { Image as R } from "../../atoms/Image/Image.js";
5
+ import { Availability as T } from "../Availability/Availability.js";
6
+ import { Pricing as v } from "../Pricing/Pricing.js";
7
+ import { QuantityInput as A } from "../QuantityInput/QuantityInput.js";
8
+ import { Icon as o } from "../../atoms/Icon/Icon.js";
9
+ import { Tooltip as B } from "../../atoms/Tooltip/Tooltip.js";
10
+ import { c as D } from "../../clsx-OuTLNxxd.js";
10
11
  import { s as i } from "../../Cart.module-B0W9CeI5.js";
11
- function U({
12
+ function X({
12
13
  imageUrl: b,
13
14
  imageAlt: g = "Product image",
14
- title: m,
15
- titleHref: s,
15
+ title: c,
16
+ titleHref: n,
16
17
  onTitleNavigate: t,
17
- partNumber: c,
18
+ partNumber: d,
18
19
  unit: I,
19
20
  make: k,
20
- model: x,
21
- serial: z,
22
- custom: K,
23
- availabilityId: N,
24
- availability: o,
21
+ model: z,
22
+ serial: K,
23
+ custom: N,
24
+ availabilityId: x,
25
+ availability: f,
25
26
  contactHref: P,
26
27
  contactLinkBehavior: S = "new-tab",
27
28
  priceLabel: w = "List Price",
28
- price: n,
29
- quantity: d,
30
- onQuantityChange: f,
31
- onRemove: h,
32
- onUnitEditClick: u,
33
- className: j,
34
- ...C
29
+ price: h,
30
+ quantity: u,
31
+ onQuantityChange: p,
32
+ onRemove: y,
33
+ onUnitEditClick: l,
34
+ requiresUnitDetails: j = !1,
35
+ className: C,
36
+ ...L
35
37
  }) {
36
- function L(e) {
37
- e.defaultPrevented || e.button === 0 && (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey || e.currentTarget.target && e.currentTarget.target !== "_self" || t == null || t(e));
38
+ function M(r) {
39
+ r.defaultPrevented || r.button === 0 && (r.metaKey || r.altKey || r.ctrlKey || r.shiftKey || r.currentTarget.target && r.currentTarget.target !== "_self" || t == null || t(r));
38
40
  }
39
- const p = I || [k, x, z].filter(Boolean).join(" / ");
40
- return /* @__PURE__ */ a("li", { className: M(i.cartItem, j), ...C, children: [
41
- /* @__PURE__ */ r(v, { height: 50, width: 50, src: b || "", alt: g, className: i.itemImage }),
41
+ const s = I || [k, z, K].filter(Boolean).join(" / ");
42
+ return /* @__PURE__ */ a("li", { className: D(i.cartItem, C), ...L, children: [
43
+ /* @__PURE__ */ e(R, { height: 50, width: 50, src: b || "", alt: g, className: i.itemImage }),
42
44
  /* @__PURE__ */ a("div", { children: [
43
45
  /* @__PURE__ */ a("div", { className: i.topRow, children: [
44
46
  /* @__PURE__ */ a("div", { className: i.itemInfo, children: [
45
- /* @__PURE__ */ r(l, { size: "sm", weight: "semibold", children: s ? /* @__PURE__ */ r(q, { href: s, onClick: L, children: m }) : m }),
46
- c != null && /* @__PURE__ */ a(l, { size: "sm", children: [
47
- /* @__PURE__ */ r(l, { colorToken: "quaternary", size: "xs", children: K ? "Specs " : "Part # " }),
48
- c
47
+ /* @__PURE__ */ e(m, { size: "sm", weight: "semibold", children: n ? /* @__PURE__ */ e(q, { href: n, onClick: M, children: c }) : c }),
48
+ d != null && /* @__PURE__ */ a(m, { size: "sm", children: [
49
+ /* @__PURE__ */ e(m, { colorToken: "quaternary", size: "xs", children: N ? "Specs " : "Part # " }),
50
+ d
49
51
  ] }),
50
- p && u && /* @__PURE__ */ a(
52
+ s && l && (j ? /* @__PURE__ */ e(
53
+ B,
54
+ {
55
+ trigger: /* @__PURE__ */ a(
56
+ "button",
57
+ {
58
+ onClick: l,
59
+ className: i.editUnit,
60
+ "aria-label": "Edit make, model, and serial",
61
+ type: "button",
62
+ children: [
63
+ /* @__PURE__ */ e(o, { iconKey: "fa-light fa-file-pen", size: "sm" }),
64
+ s
65
+ ]
66
+ }
67
+ ),
68
+ children: "Requires Make, Model, and Serial"
69
+ }
70
+ ) : /* @__PURE__ */ a(
51
71
  "button",
52
72
  {
53
- onClick: u,
73
+ onClick: l,
54
74
  className: i.editUnit,
55
75
  "aria-label": "Edit make, model, and serial",
56
76
  type: "button",
57
77
  children: [
58
- /* @__PURE__ */ r(y, { iconKey: "fa-light fa-file-pen", size: "sm" }),
59
- p
78
+ /* @__PURE__ */ e(o, { iconKey: "fa-light fa-file-pen", size: "sm" }),
79
+ s
60
80
  ]
61
81
  }
62
- )
82
+ ))
63
83
  ] }),
64
- h && /* @__PURE__ */ r("button", { onClick: h, className: i.removeItem, "aria-label": "Remove item", type: "button", children: /* @__PURE__ */ r(y, { iconKey: "fa-regular fa-trash", size: "sm" }) })
84
+ y && /* @__PURE__ */ e("button", { onClick: y, className: i.removeItem, "aria-label": "Remove item", type: "button", children: /* @__PURE__ */ e(o, { iconKey: "fa-regular fa-trash", size: "sm" }) })
65
85
  ] }),
66
86
  /* @__PURE__ */ a("div", { className: i.itemManagement, children: [
67
87
  /* @__PURE__ */ a("div", { className: i.purchaseInformation, children: [
68
- /* @__PURE__ */ r("div", { className: i.availabilitySlot, children: o && /* @__PURE__ */ r(
69
- A,
88
+ /* @__PURE__ */ e("div", { className: i.availabilitySlot, children: f && /* @__PURE__ */ e(
89
+ T,
70
90
  {
71
- availId: N || "",
72
- availDescription: o,
91
+ availId: x || "",
92
+ availDescription: f,
73
93
  contactHref: P || "",
74
94
  contactLinkBehavior: S
75
95
  }
76
96
  ) }),
77
- /* @__PURE__ */ r("div", { className: i.priceSlot, children: n && /* @__PURE__ */ r(B, { pricingLabel: w, price: n }) })
97
+ /* @__PURE__ */ e("div", { className: i.priceSlot, children: h && /* @__PURE__ */ e(v, { pricingLabel: w, price: h }) })
78
98
  ] }),
79
- typeof d == "number" && f && /* @__PURE__ */ r("div", { className: i.quantitySlot, children: /* @__PURE__ */ r(
80
- D,
99
+ typeof u == "number" && p && /* @__PURE__ */ e("div", { className: i.quantitySlot, children: /* @__PURE__ */ e(
100
+ A,
81
101
  {
82
- quantity: d,
83
- onQuantityChange: f,
102
+ quantity: u,
103
+ onQuantityChange: p,
84
104
  size: "sm"
85
105
  }
86
106
  ) })
@@ -89,5 +109,5 @@ function U({
89
109
  ] });
90
110
  }
91
111
  export {
92
- U as CartPart
112
+ X as CartPart
93
113
  };
@@ -25,6 +25,7 @@ declare const meta: {
25
25
  priceLabel: string;
26
26
  price: string;
27
27
  quantity: number;
28
+ requiresUnitDetails: false;
28
29
  onQuantityChange: () => void;
29
30
  onRemove: () => void;
30
31
  onUnitEditClick: () => void;
@@ -25,6 +25,7 @@ const l = {
25
25
  priceLabel: "List Price",
26
26
  price: "$99.99",
27
27
  quantity: 1,
28
+ requiresUnitDetails: !1,
28
29
  onQuantityChange: () => {
29
30
  },
30
31
  onRemove: () => {
@@ -12,6 +12,7 @@ export interface CartSlideInPanelProps {
12
12
  onItemDelete: (_item: CartItem) => void;
13
13
  onUnitEditClick?: (_item: CartItem) => void;
14
14
  onItemNavigate?: (_item: CartItem) => void;
15
+ requiresUnitDetails?: boolean;
15
16
  onCheckout: () => void;
16
17
  }
17
- export declare function CartSlideInPanel({ open, onClose, cart, subtotal, itemPriceLabel, contactHref, contactLinkBehavior, onItemQtyChange, onItemDelete, onUnitEditClick, onItemNavigate, onCheckout }: CartSlideInPanelProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function CartSlideInPanel({ open, onClose, cart, subtotal, itemPriceLabel, contactHref, contactLinkBehavior, onItemQtyChange, onItemDelete, onUnitEditClick, onItemNavigate, requiresUnitDetails, onCheckout }: CartSlideInPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -1,44 +1,56 @@
1
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
2
- import { SlideInPanel as v } from "../../atoms/SlideInPanel/SlideInPanel.js";
3
- import { Text as l } from "../../atoms/Text/Text.js";
4
- import { Button as k } from "../../atoms/Button/Button.js";
5
- import { Icon as C } from "../../atoms/Icon/Icon.js";
1
+ import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
+ import { SlideInPanel as C } from "../../atoms/SlideInPanel/SlideInPanel.js";
3
+ import { Text as r } from "../../atoms/Text/Text.js";
4
+ import { Button as h } from "../../atoms/Button/Button.js";
5
+ import { Icon as z } from "../../atoms/Icon/Icon.js";
6
6
  import { CartPart as x } from "./CartPart.js";
7
7
  import { s as t } from "../../Cart.module-B0W9CeI5.js";
8
8
  function L({
9
- open: c,
9
+ open: u,
10
10
  onClose: s,
11
- cart: r,
11
+ cart: a,
12
12
  subtotal: n,
13
- itemPriceLabel: h,
14
- contactHref: p,
15
- contactLinkBehavior: u,
16
- onItemQtyChange: y,
17
- onItemDelete: b,
13
+ itemPriceLabel: p,
14
+ contactHref: y,
15
+ contactLinkBehavior: b,
16
+ onItemQtyChange: f,
17
+ onItemDelete: g,
18
18
  onUnitEditClick: d,
19
19
  onItemNavigate: m,
20
- onCheckout: f
20
+ requiresUnitDetails: k = !1,
21
+ onCheckout: o
21
22
  }) {
22
- var o;
23
- return r = r || { items: [] }, /* @__PURE__ */ i(
24
- v,
23
+ var c;
24
+ return a = a || { items: [] }, /* @__PURE__ */ i(
25
+ C,
25
26
  {
26
27
  side: "right",
27
- open: c,
28
+ open: u,
28
29
  onClose: s,
29
30
  ariaLabel: "Shopping Cart",
30
- children: /* @__PURE__ */ a("div", { id: "cart-panel", className: t.cartContainer, children: [
31
- /* @__PURE__ */ a("div", { className: t.headerWrapper, children: [
32
- /* @__PURE__ */ a("div", { className: t.header, children: [
33
- /* @__PURE__ */ i(l, { size: "2xl", children: "Cart" }),
34
- /* @__PURE__ */ a(l, { size: "xs", colorToken: "quaternary", children: [
35
- (o = r == null ? void 0 : r.items) == null ? void 0 : o.length,
31
+ children: /* @__PURE__ */ l("div", { id: "cart-panel", className: t.cartContainer, children: [
32
+ /* @__PURE__ */ l("div", { className: t.headerWrapper, children: [
33
+ /* @__PURE__ */ l("div", { className: t.header, children: [
34
+ /* @__PURE__ */ i(r, { size: "2xl", children: "Cart" }),
35
+ /* @__PURE__ */ l(r, { size: "xs", colorToken: "quaternary", children: [
36
+ (c = a == null ? void 0 : a.items) == null ? void 0 : c.length,
36
37
  " items in your cart"
37
38
  ] })
38
39
  ] }),
39
- /* @__PURE__ */ i("button", { onClick: s, children: /* @__PURE__ */ i(C, { iconKey: "fa-regular fa-xmark", size: "md" }) })
40
+ /* @__PURE__ */ i("button", { onClick: s, children: /* @__PURE__ */ i(z, { iconKey: "fa-regular fa-xmark", size: "md" }) })
40
41
  ] }),
41
- /* @__PURE__ */ i("div", { className: t.cartItems, children: r.items.length > 0 ? /* @__PURE__ */ i("ul", { children: r.items.map((e) => /* @__PURE__ */ i(
42
+ /* @__PURE__ */ i(
43
+ h,
44
+ {
45
+ disabled: a.items.length === 0,
46
+ onClick: o,
47
+ variant: "secondary",
48
+ size: "md",
49
+ className: t.checkoutButton,
50
+ children: "Checkout"
51
+ }
52
+ ),
53
+ /* @__PURE__ */ i("div", { className: t.cartItems, children: a.items.length > 0 ? /* @__PURE__ */ i("ul", { children: a.items.map((e) => /* @__PURE__ */ i(
42
54
  x,
43
55
  {
44
56
  imageUrl: e.imageUrl,
@@ -54,26 +66,27 @@ function L({
54
66
  custom: !!e.custom,
55
67
  availabilityId: e.availabilityId,
56
68
  availability: e.availability,
57
- contactHref: p,
58
- contactLinkBehavior: u,
69
+ contactHref: y,
70
+ contactLinkBehavior: b,
59
71
  price: e.price,
60
- priceLabel: h || "List Price",
72
+ priceLabel: p || "List Price",
61
73
  quantity: e.quantity,
62
- onQuantityChange: (g) => y(e, g),
63
- onRemove: () => b(e),
64
- onUnitEditClick: d ? () => d(e) : void 0
74
+ onQuantityChange: (v) => f(e, v),
75
+ onRemove: () => g(e),
76
+ onUnitEditClick: d ? () => d(e) : void 0,
77
+ requiresUnitDetails: k
65
78
  },
66
- e.id
67
- )) }) : /* @__PURE__ */ i("div", { className: t.noItems, children: /* @__PURE__ */ i(l, { as: "p", size: "sm", children: "No items in your cart yet" }) }) }),
68
- n && /* @__PURE__ */ a("div", { className: t.subtotal, children: [
69
- /* @__PURE__ */ i(l, { size: "md", weight: "semibold", children: "Subtotal" }),
70
- /* @__PURE__ */ i(l, { size: "md", weight: "semibold", children: n })
79
+ `${e.id}-${e.make ?? ""}-${e.model ?? ""}-${e.serial ?? ""}`
80
+ )) }) : /* @__PURE__ */ i("div", { className: t.noItems, children: /* @__PURE__ */ i(r, { as: "p", size: "sm", children: "No items in your cart yet" }) }) }),
81
+ n && /* @__PURE__ */ l("div", { className: t.subtotal, children: [
82
+ /* @__PURE__ */ i(r, { size: "md", weight: "semibold", children: "Subtotal" }),
83
+ /* @__PURE__ */ i(r, { size: "md", weight: "semibold", children: n })
71
84
  ] }),
72
85
  /* @__PURE__ */ i(
73
- k,
86
+ h,
74
87
  {
75
- disabled: r.items.length === 0,
76
- onClick: f,
88
+ disabled: a.items.length === 0,
89
+ onClick: o,
77
90
  variant: "cta-primary",
78
91
  size: "md",
79
92
  className: t.checkoutButton,
@@ -22,5 +22,6 @@ export interface ProductProps extends AvailabilityProps {
22
22
  size?: Size;
23
23
  showQuantity?: boolean;
24
24
  onLinkClicked?: (_itemKey: number) => void;
25
+ requiresUnitDetails?: boolean;
25
26
  }
26
- export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, contactHref, contactLinkBehavior, productHref, priceLabel, price, imgSrc, attributes, className, onAddToCart, onClose, flat, size, showQuantity, onLinkClicked, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, contactHref, contactLinkBehavior, productHref, priceLabel, price, imgSrc, attributes, className, onAddToCart, onClose, flat, size, showQuantity, onLinkClicked, requiresUnitDetails, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
@@ -1,33 +1,33 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { Image as B } from "../../atoms/Image/Image.js";
3
- import { Link as A } from "../../atoms/Link/Link.js";
2
+ import { Image as A } from "../../atoms/Image/Image.js";
3
+ import { Link as R } from "../../atoms/Link/Link.js";
4
4
  import { Text as n } from "../../atoms/Text/Text.js";
5
- import { Availability as R } from "../../molecules/Availability/Availability.js";
6
- import { Pricing as $ } from "../../molecules/Pricing/Pricing.js";
7
- import { AddToCart as D } from "../../molecules/AddToCart/AddToCart.js";
8
- import { Icon as V } from "../../atoms/Icon/Icon.js";
9
- import { c as P } from "../../clsx-OuTLNxxd.js";
10
- import '../../assets/Product.css';const q = "_productCard_nx8r7_3", E = "_sm_nx8r7_15", F = "_productInformation_nx8r7_25", G = "_purchaseInformation_nx8r7_32", J = "_addToCart_nx8r7_40", M = "_addToCartButton_nx8r7_43", O = "_partNumber_nx8r7_53", U = "_partNumberLabel_nx8r7_60", W = "_productTile_nx8r7_64", X = "_topRow_nx8r7_83", Y = "_productData_nx8r7_114", Z = "_purchase_nx8r7_32", y = "_attributeContainer_nx8r7_151", H = "_elevated_nx8r7_199", Q = "_noImage_nx8r7_205", r = {
11
- productCard: q,
12
- sm: E,
13
- productInformation: F,
14
- purchaseInformation: G,
15
- addToCart: J,
16
- addToCartButton: M,
17
- partNumber: O,
18
- partNumberLabel: U,
19
- productTile: W,
20
- topRow: X,
21
- productData: Y,
22
- purchase: Z,
23
- attributeContainer: y,
24
- elevated: H,
25
- noImage: Q
5
+ import { Availability as $ } from "../../molecules/Availability/Availability.js";
6
+ import { Pricing as P } from "../../molecules/Pricing/Pricing.js";
7
+ import { AddToCart as j } from "../../molecules/AddToCart/AddToCart.js";
8
+ import { Icon as E } from "../../atoms/Icon/Icon.js";
9
+ import { c as D } from "../../clsx-OuTLNxxd.js";
10
+ import '../../assets/Product.css';const F = "_productCard_nx8r7_3", G = "_sm_nx8r7_15", J = "_productInformation_nx8r7_25", M = "_purchaseInformation_nx8r7_32", O = "_addToCart_nx8r7_40", W = "_addToCartButton_nx8r7_43", X = "_partNumber_nx8r7_53", Y = "_partNumberLabel_nx8r7_60", Z = "_productTile_nx8r7_64", q = "_topRow_nx8r7_83", y = "_productData_nx8r7_114", U = "_purchase_nx8r7_32", H = "_attributeContainer_nx8r7_151", Q = "_elevated_nx8r7_199", K = "_noImage_nx8r7_205", r = {
11
+ productCard: F,
12
+ sm: G,
13
+ productInformation: J,
14
+ purchaseInformation: M,
15
+ addToCart: O,
16
+ addToCartButton: W,
17
+ partNumber: X,
18
+ partNumberLabel: Y,
19
+ productTile: Z,
20
+ topRow: q,
21
+ productData: y,
22
+ purchase: U,
23
+ attributeContainer: H,
24
+ elevated: Q,
25
+ noImage: K
26
26
  };
27
27
  function er({
28
- productView: j,
29
- itemKey: s,
30
- partNumber: c,
28
+ productView: V,
29
+ itemKey: c,
30
+ partNumber: s,
31
31
  productDescription: h,
32
32
  availDescription: x,
33
33
  availId: m,
@@ -36,7 +36,7 @@ function er({
36
36
  productHref: f,
37
37
  priceLabel: T,
38
38
  price: l,
39
- imgSrc: e,
39
+ imgSrc: d,
40
40
  attributes: p,
41
41
  className: g,
42
42
  onAddToCart: C,
@@ -44,41 +44,42 @@ function er({
44
44
  flat: I,
45
45
  size: a = "md",
46
46
  showQuantity: _ = !0,
47
- onLinkClicked: d,
48
- ...w
47
+ onLinkClicked: e,
48
+ requiresUnitDetails: w = !1,
49
+ ...B
49
50
  }) {
50
51
  const u = a === "sm" ? "xs" : "sm";
51
- return j === "Card" ? /* @__PURE__ */ o(
52
+ return V === "Card" ? /* @__PURE__ */ o(
52
53
  "div",
53
54
  {
54
- className: P(
55
+ className: D(
55
56
  r.productCard,
56
57
  a && r[a],
57
58
  g,
58
59
  !I && r.elevated,
59
- !e && r.noImage
60
+ !d && r.noImage
60
61
  ),
61
- ...w,
62
+ ...B,
62
63
  children: [
63
- e && /* @__PURE__ */ t(
64
- B,
64
+ d && /* @__PURE__ */ t(
65
+ A,
65
66
  {
66
- src: e,
67
- alt: `${c} product image`,
67
+ src: d,
68
+ alt: `${s} product image`,
68
69
  height: a === "sm" ? 78 : 96,
69
70
  width: a === "sm" ? 78 : 96
70
71
  }
71
72
  ),
72
73
  /* @__PURE__ */ o("div", { className: r.productInformation, children: [
73
- /* @__PURE__ */ t(A, { onClick: () => d == null ? void 0 : d(s), size: a, href: f || "#", children: h }),
74
+ /* @__PURE__ */ t(R, { onClick: () => e == null ? void 0 : e(c), size: a, href: f || "#", children: h }),
74
75
  /* @__PURE__ */ o("div", { className: r.partNumber, children: [
75
76
  /* @__PURE__ */ t(n, { size: u, className: r.partNumberLabel, children: "Part #" }),
76
- /* @__PURE__ */ t(n, { size: u, weight: "semibold", children: c })
77
+ /* @__PURE__ */ t(n, { size: u, weight: "semibold", children: s })
77
78
  ] })
78
79
  ] }),
79
80
  /* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
80
81
  m && /* @__PURE__ */ t(
81
- R,
82
+ $,
82
83
  {
83
84
  availId: m,
84
85
  availDescription: x,
@@ -86,12 +87,12 @@ function er({
86
87
  contactLinkBehavior: N
87
88
  }
88
89
  ),
89
- l && /* @__PURE__ */ t($, { pricingLabel: T, price: l })
90
+ l && /* @__PURE__ */ t(P, { pricingLabel: T, price: l })
90
91
  ] }),
91
92
  /* @__PURE__ */ t(
92
- D,
93
+ j,
93
94
  {
94
- itemKey: s,
95
+ itemKey: c,
95
96
  onAdd: C,
96
97
  className: r.addToCart,
97
98
  addButtonClassName: r.addToCartButton,
@@ -99,23 +100,24 @@ function er({
99
100
  size: a,
100
101
  buttonDoneText: "",
101
102
  buttonText: _ ? "Add" : "Add to Cart",
102
- showQuantity: _
103
+ showQuantity: _,
104
+ requiresUnitDetails: w
103
105
  }
104
106
  )
105
107
  ]
106
108
  }
107
- ) : /* @__PURE__ */ o("div", { className: P(
109
+ ) : /* @__PURE__ */ o("div", { className: D(
108
110
  r.productTile,
109
111
  g,
110
112
  a && r[a],
111
113
  !I && r.elevated,
112
- !e && r.noImage
113
- ), ...w, children: [
114
- e && /* @__PURE__ */ t(
115
- B,
114
+ !d && r.noImage
115
+ ), ...B, children: [
116
+ d && /* @__PURE__ */ t(
117
+ A,
116
118
  {
117
- src: e,
118
- alt: `${c} product image`,
119
+ src: d,
120
+ alt: `${s} product image`,
119
121
  height: a === "sm" ? 86 : 108,
120
122
  width: a === "sm" ? 86 : 108
121
123
  }
@@ -123,18 +125,18 @@ function er({
123
125
  /* @__PURE__ */ o("div", { className: r.productData, children: [
124
126
  /* @__PURE__ */ o("div", { className: r.topRow, children: [
125
127
  /* @__PURE__ */ o("div", { className: r.productInformation, children: [
126
- /* @__PURE__ */ t(A, { onClick: () => d == null ? void 0 : d(s), size: a, href: f || "#", children: h }),
128
+ /* @__PURE__ */ t(R, { onClick: () => e == null ? void 0 : e(c), size: a, href: f || "#", children: h }),
127
129
  /* @__PURE__ */ o("div", { className: r.partNumber, children: [
128
130
  /* @__PURE__ */ t(n, { size: u, className: r.partNumberLabel, children: "Part #" }),
129
- /* @__PURE__ */ t(n, { size: u, weight: "semibold", children: c })
131
+ /* @__PURE__ */ t(n, { size: u, weight: "semibold", children: s })
130
132
  ] })
131
133
  ] }),
132
- v && /* @__PURE__ */ t("button", { onClick: () => v(s), children: /* @__PURE__ */ t(V, { size: "sm", iconKey: "fa-light fa-xmark" }) })
134
+ v && /* @__PURE__ */ t("button", { onClick: () => v(c), children: /* @__PURE__ */ t(E, { size: "sm", iconKey: "fa-light fa-xmark" }) })
133
135
  ] }),
134
136
  /* @__PURE__ */ o("div", { className: r.purchase, children: [
135
137
  /* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
136
138
  m && /* @__PURE__ */ t(
137
- R,
139
+ $,
138
140
  {
139
141
  availId: m,
140
142
  availDescription: x,
@@ -142,9 +144,9 @@ function er({
142
144
  contactLinkBehavior: N
143
145
  }
144
146
  ),
145
- l && /* @__PURE__ */ t($, { pricingLabel: T, price: l })
147
+ l && /* @__PURE__ */ t(P, { pricingLabel: T, price: l })
146
148
  ] }),
147
- /* @__PURE__ */ t(D, { size: a, itemKey: s, onAdd: C, className: r.addToCart, addButtonClassName: r.addToCartButton })
149
+ /* @__PURE__ */ t(j, { size: a, itemKey: c, onAdd: C, className: r.addToCart, addButtonClassName: r.addToCartButton, requiresUnitDetails: w })
148
150
  ] }),
149
151
  p && p.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: p.map((i) => /* @__PURE__ */ o("li", { children: [
150
152
  /* @__PURE__ */ o(n, { size: "xs", weight: "light", children: [
@@ -79,6 +79,10 @@ declare const meta: {
79
79
  control: "boolean";
80
80
  description: string;
81
81
  };
82
+ requiresUnitDetails: {
83
+ control: "boolean";
84
+ description: string;
85
+ };
82
86
  };
83
87
  args: ProductProps;
84
88
  tags: string[];
@@ -1,4 +1,4 @@
1
- import { Product as e } from "./Product.js";
1
+ import { Product as a } from "./Product.js";
2
2
  const o = [
3
3
  { label: "Color", value: "Gray" },
4
4
  { label: "Brand", value: "Kason" },
@@ -13,7 +13,7 @@ const o = [
13
13
  { label: "Attribute", value: "Placeholder" }
14
14
  ], r = {
15
15
  title: "Case Parts/Organisms/Product",
16
- component: e,
16
+ component: a,
17
17
  parameters: { layout: "centered" },
18
18
  argTypes: {
19
19
  productView: {
@@ -52,7 +52,8 @@ const o = [
52
52
  control: { type: "select" },
53
53
  options: ["md", "sm"]
54
54
  },
55
- showQuantity: { control: "boolean", description: "Shows/Hides add to cart quantity" }
55
+ showQuantity: { control: "boolean", description: "Shows/Hides add to cart quantity" },
56
+ requiresUnitDetails: { control: "boolean", description: "Shows unit details tooltip on add button" }
56
57
  },
57
58
  args: {
58
59
  productView: "Card",
@@ -70,15 +71,16 @@ const o = [
70
71
  imgSrc: "https://dev.caseparts.com/graphics/photos/R-23_IMG_2009.png",
71
72
  // imgSrc: 'https://www.caseparts.com/Ortery/360/Optimized/1092-01_/1092-01_04.webp',
72
73
  attributes: o,
73
- onAddToCart: (t, a) => {
74
- alert(`Add to cart (story) ${JSON.stringify({ itemKey: t, quantity: a })}`);
74
+ onAddToCart: (t, e) => {
75
+ alert(`Add to cart (story) ${JSON.stringify({ itemKey: t, quantity: e })}`);
75
76
  },
76
77
  onClose: (t) => {
77
78
  alert(`On close clicked ${t}`);
78
79
  },
79
80
  flat: !1,
80
81
  size: "md",
81
- showQuantity: !0
82
+ showQuantity: !0,
83
+ requiresUnitDetails: !1
82
84
  },
83
85
  tags: ["autodocs"]
84
86
  }, l = {}, c = {
@@ -114,12 +116,12 @@ const o = [
114
116
  productView: "Card",
115
117
  imgSrc: void 0
116
118
  }
117
- }, v = {
119
+ }, b = {
118
120
  args: {
119
121
  productView: "Tile",
120
122
  flat: !0
121
123
  }
122
- }, b = {
124
+ }, v = {
123
125
  args: {
124
126
  productView: "Card",
125
127
  imgSrc: void 0,
@@ -130,10 +132,10 @@ export {
130
132
  s as ContactForAvailability,
131
133
  l as Default,
132
134
  p as DifferentPriceLabel,
133
- v as FlatTile,
135
+ b as FlatTile,
134
136
  c as LimitedStock,
135
137
  u as NoImageCard,
136
- b as NoImageFlatCard,
138
+ v as NoImageFlatCard,
137
139
  d as TileView,
138
140
  n as Unavailable,
139
141
  r as default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.185",
4
+ "version": "0.0.187",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",