@caseparts-org/caseblocks 0.0.215 → 0.0.217

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
- ._productCard_nx8r7_3{box-sizing:border-box;background:var(--surface-surface-primary, #FFF);display:flex;width:232px;height:296px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_nx8r7_3._sm_nx8r7_15{width:180px;height:230px}._productCard_nx8r7_3>img{object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_nx8r7_3 ._productInformation_nx8r7_25{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_nx8r7_3 ._purchaseInformation_nx8r7_32{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_nx8r7_3 ._addToCart_nx8r7_40,._productCard_nx8r7_3 ._addToCartButton_nx8r7_43{width:100%}._productInformation_nx8r7_25>a{font-weight:var(--font-weight-semibold);white-space:break-spaces;word-wrap:normal}._partNumber_nx8r7_53{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_nx8r7_60{color:var(--text-text-quaternary)}._productTile_nx8r7_64{box-sizing:border-box;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;background:var(--surface-surface-primary, #FFF);padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_nx8r7_64>img{object-fit:contain}._productTile_nx8r7_64 ._topRow_nx8r7_83{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_nx8r7_64 ._topRow_nx8r7_83 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_nx8r7_64 ._topRow_nx8r7_83 path{fill:var(--icons-icon-search)}._productTile_nx8r7_64 ._topRow_nx8r7_83 svg{padding:0}._productTile_nx8r7_64 ._productInformation_nx8r7_25{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_nx8r7_64 ._productData_nx8r7_114{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_nx8r7_64 ._purchase_nx8r7_32{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_nx8r7_64 ._purchase_nx8r7_32{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_nx8r7_64 ._purchaseInformation_nx8r7_32{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_nx8r7_64 ._purchaseInformation_nx8r7_32{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_nx8r7_64 ._attributeContainer_nx8r7_151{margin:0;padding:0;padding-top:var(--spacing-spacing-1xs);border-top:1px solid var(--border-border-primary);width:100%;list-style:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:var(--spacing-spacing-lg);row-gap:var(--spacing-spacing-3xs)}@media (max-width: 640px){._productTile_nx8r7_64 ._attributeContainer_nx8r7_151{display:none}}._productTile_nx8r7_64 ._attributeContainer_nx8r7_151 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_nx8r7_64 ._addToCart_nx8r7_40{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_nx8r7_64 ._addToCart_nx8r7_40{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_nx8r7_64 ._addToCartButton_nx8r7_43{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_nx8r7_64 ._addToCartButton_nx8r7_43{width:100%}}._elevated_nx8r7_199{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_nx8r7_205 ._productInformation_nx8r7_25{margin-top:0}._sm_nx8r7_15{padding:var(--spacing-spacing-1xs)}
1
+ ._productCard_sx511_3{box-sizing:border-box;position:relative;background:var(--surface-surface-primary, #FFF);display:flex;width:232px;height:296px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_sx511_3._sm_sx511_16{width:180px;height:230px}._productCard_sx511_3>img{object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_sx511_3 ._productInformation_sx511_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_sx511_3 ._purchaseInformation_sx511_33{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_sx511_3 ._addToCart_sx511_41,._productCard_sx511_3 ._addToCartButton_sx511_44{width:100%}._productInformation_sx511_26>a{font-weight:var(--font-weight-semibold);white-space:break-spaces;word-wrap:normal}._partNumber_sx511_54{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_sx511_61{color:var(--text-text-quaternary)}._productTile_sx511_65{box-sizing:border-box;position:relative;z-index:1;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;background:var(--surface-surface-primary, #FFF);padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_sx511_65>img{object-fit:contain}._productTile_sx511_65 ._productInformation_sx511_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_sx511_65 ._productData_sx511_93{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_sx511_65 ._purchase_sx511_33{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_sx511_65 ._purchase_sx511_33{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_sx511_65 ._purchaseInformation_sx511_33{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_sx511_65 ._purchaseInformation_sx511_33{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_sx511_65 ._attributeContainer_sx511_130{margin:0;padding:0;padding-top:var(--spacing-spacing-1xs);border-top:1px solid var(--border-border-primary);width:100%;list-style:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:var(--spacing-spacing-lg);row-gap:var(--spacing-spacing-3xs)}@media (max-width: 640px){._productTile_sx511_65 ._attributeContainer_sx511_130{display:none}}._productTile_sx511_65 ._attributeContainer_sx511_130 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_sx511_65 ._addToCart_sx511_41{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_sx511_65 ._addToCart_sx511_41{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_sx511_65 ._addToCartButton_sx511_44{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_sx511_65 ._addToCartButton_sx511_44{width:100%}}._customWizardBadge_sx511_177{position:absolute;top:0;right:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:var(--spacing-spacing-4xs);max-width:70%;overflow:hidden;padding:var(--spacing-spacing-3xs) var(--spacing-spacing-3xs);border-radius:0 0 0 12px;background-color:var(--color-brand-primary-primary-tangerine);text-align:center;text-decoration:none;white-space:nowrap}@media (max-width: 768px){._customWizardBadge_sx511_177{padding:var(--spacing-spacing-3xs);border-radius:0 0 0 10px}}._customWizardBadgeText_sx511_200{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-size-xs);line-height:var(--font-line-height-xs)}@media (max-width: 768px){._customWizardBadgeText_sx511_200{font-size:var(--font-size-xxs);line-height:var(--font-line-height-xxs)}}._elevated_sx511_213{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_sx511_219 ._productInformation_sx511_26{margin-top:0}._sm_sx511_16{padding:var(--spacing-spacing-1xs)}
@@ -1,3 +1,4 @@
1
+ import { IconProps } from '../../atoms/Icon/Icon';
1
2
  import { AvailabilityProps } from '../../molecules/Availability/Availability';
2
3
  export type ProductView = "Card" | "Tile";
3
4
  export type Size = "md" | "sm";
@@ -5,6 +6,9 @@ export interface ProductProps extends AvailabilityProps {
5
6
  productView: ProductView;
6
7
  productDescription: string;
7
8
  availDescription: string;
9
+ customWizardUrl?: string;
10
+ customWizardText?: string;
11
+ customWizardIconKey?: IconProps['iconKey'] | null;
8
12
  productHref?: string;
9
13
  itemKey: number;
10
14
  partNumber: string;
@@ -17,7 +21,6 @@ export interface ProductProps extends AvailabilityProps {
17
21
  }[];
18
22
  className?: string;
19
23
  onAddToCart: (_itemKey: number, _quantity: number) => void;
20
- onClose?: (_itemKey: number) => void;
21
24
  flat?: boolean;
22
25
  size?: Size;
23
26
  showQuantity?: boolean;
@@ -25,4 +28,4 @@ export interface ProductProps extends AvailabilityProps {
25
28
  requiresUnitDetails?: boolean;
26
29
  maxQuantity?: number;
27
30
  }
28
- export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, inventory, productHref, priceLabel, price, imgSrc, attributes, className, onAddToCart, onClose, flat, size, showQuantity, onLinkClicked, requiresUnitDetails, maxQuantity, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
31
+ export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, inventory, productHref, customWizardUrl, customWizardText, customWizardIconKey, priceLabel, price, imgSrc, attributes, className, onAddToCart, flat, size, showQuantity, onLinkClicked, requiresUnitDetails, maxQuantity, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
@@ -1,164 +1,172 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { Image as A } from "../../atoms/Image/Image.js";
3
- import { Link as R } from "../../atoms/Link/Link.js";
4
- import { Text as d } from "../../atoms/Text/Text.js";
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", H = "_productData_nx8r7_114", U = "_purchase_nx8r7_32", L = "_attributeContainer_nx8r7_151", y = "_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,
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { Image as P } from "../../atoms/Image/Image.js";
3
+ import { Icon as W } from "../../atoms/Icon/Icon.js";
4
+ import { Link as p } from "../../atoms/Link/Link.js";
5
+ import { Text as o } from "../../atoms/Text/Text.js";
6
+ import { Availability as j } from "../../molecules/Availability/Availability.js";
7
+ import { Pricing as D } from "../../molecules/Pricing/Pricing.js";
8
+ import { AddToCart as V } from "../../molecules/AddToCart/AddToCart.js";
9
+ import { c as E } from "../../clsx-OuTLNxxd.js";
10
+ import '../../assets/Product.css';const G = "_productCard_sx511_3", J = "_sm_sx511_16", M = "_productInformation_sx511_26", O = "_purchaseInformation_sx511_33", R = "_addToCart_sx511_41", X = "_addToCartButton_sx511_44", Y = "_partNumber_sx511_54", Z = "_partNumberLabel_sx511_61", q = "_productTile_sx511_65", H = "_productData_sx511_93", y = "_purchase_sx511_33", L = "_attributeContainer_sx511_130", Q = "_customWizardBadge_sx511_177", K = "_customWizardBadgeText_sx511_200", S = "_elevated_sx511_213", U = "_noImage_sx511_219", a = {
11
+ productCard: G,
12
+ sm: J,
13
+ productInformation: M,
14
+ purchaseInformation: O,
15
+ addToCart: R,
16
+ addToCartButton: X,
17
+ partNumber: Y,
18
+ partNumberLabel: Z,
19
+ productTile: q,
21
20
  productData: H,
22
- purchase: U,
21
+ purchase: y,
23
22
  attributeContainer: L,
24
- elevated: y,
25
- noImage: K
23
+ customWizardBadge: Q,
24
+ customWizardBadgeText: K,
25
+ elevated: S,
26
+ noImage: U
26
27
  };
27
- function nr({
28
- productView: V,
28
+ function na({
29
+ productView: F,
29
30
  itemKey: c,
30
- partNumber: s,
31
- productDescription: h,
32
- availDescription: x,
33
- availId: m,
34
- inventory: b,
35
- productHref: N,
36
- priceLabel: f,
37
- price: l,
38
- imgSrc: e,
39
- attributes: p,
40
- className: T,
41
- onAddToCart: g,
42
- onClose: C,
43
- flat: v,
44
- size: a = "md",
45
- showQuantity: _ = !0,
46
- onLinkClicked: n,
47
- requiresUnitDetails: I = !1,
48
- maxQuantity: w,
49
- ...B
31
+ partNumber: n,
32
+ productDescription: g,
33
+ availDescription: N,
34
+ availId: l,
35
+ inventory: T,
36
+ productHref: b,
37
+ customWizardUrl: m,
38
+ customWizardText: B = "Customize",
39
+ customWizardIconKey: u,
40
+ priceLabel: v,
41
+ price: i,
42
+ imgSrc: d,
43
+ attributes: x,
44
+ className: C,
45
+ onAddToCart: I,
46
+ flat: w,
47
+ size: r = "md",
48
+ showQuantity: f = !0,
49
+ onLinkClicked: s,
50
+ requiresUnitDetails: A = !1,
51
+ maxQuantity: $,
52
+ ...z
50
53
  }) {
51
- const u = a === "sm" ? "xs" : "sm";
52
- return V === "Card" ? /* @__PURE__ */ o(
54
+ const h = r === "sm" ? "xs" : "sm";
55
+ return F === "Card" ? /* @__PURE__ */ e(
53
56
  "div",
54
57
  {
55
- className: D(
56
- r.productCard,
57
- a && r[a],
58
- T,
59
- !v && r.elevated,
60
- !e && r.noImage
58
+ className: E(
59
+ a.productCard,
60
+ r && a[r],
61
+ C,
62
+ !w && a.elevated,
63
+ !d && a.noImage
61
64
  ),
62
- ...B,
65
+ ...z,
63
66
  children: [
64
- e && /* @__PURE__ */ t(
65
- A,
67
+ m && /* @__PURE__ */ e(p, { href: m, unstyled: !0, className: a.customWizardBadge, children: [
68
+ u && /* @__PURE__ */ t(W, { iconKey: u, size: "3xs", colorToken: "default-inverted" }),
69
+ /* @__PURE__ */ t(o, { size: "xs", weight: "regular", colorToken: "default-inverted", className: a.customWizardBadgeText, children: B })
70
+ ] }),
71
+ d && /* @__PURE__ */ t(
72
+ P,
66
73
  {
67
- src: e,
68
- alt: `${s} product image`,
69
- height: a === "sm" ? 78 : 96,
70
- width: a === "sm" ? 78 : 96
74
+ src: d,
75
+ alt: `${n} product image`,
76
+ height: r === "sm" ? 78 : 96,
77
+ width: r === "sm" ? 78 : 96
71
78
  }
72
79
  ),
73
- /* @__PURE__ */ o("div", { className: r.productInformation, children: [
74
- /* @__PURE__ */ t(R, { onClick: () => n == null ? void 0 : n(c), size: a, href: N || "#", children: h }),
75
- /* @__PURE__ */ o("div", { className: r.partNumber, children: [
76
- /* @__PURE__ */ t(d, { size: u, className: r.partNumberLabel, children: "Part #" }),
77
- /* @__PURE__ */ t(d, { size: u, weight: "semibold", children: s })
80
+ /* @__PURE__ */ e("div", { className: a.productInformation, children: [
81
+ /* @__PURE__ */ t(p, { onClick: () => s == null ? void 0 : s(c), size: r, href: b || "#", children: g }),
82
+ /* @__PURE__ */ e("div", { className: a.partNumber, children: [
83
+ /* @__PURE__ */ t(o, { size: h, className: a.partNumberLabel, children: "Part #" }),
84
+ /* @__PURE__ */ t(o, { size: h, weight: "semibold", children: n })
78
85
  ] })
79
86
  ] }),
80
- /* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
81
- m && /* @__PURE__ */ t(
82
- $,
87
+ /* @__PURE__ */ e("div", { className: a.purchaseInformation, children: [
88
+ l && /* @__PURE__ */ t(
89
+ j,
83
90
  {
84
- availId: m,
85
- availDescription: x,
86
- inventory: b,
91
+ availId: l,
92
+ availDescription: N,
93
+ inventory: T,
87
94
  enableTooltip: !0
88
95
  }
89
96
  ),
90
- l && /* @__PURE__ */ t(P, { pricingLabel: f, price: l })
97
+ i && /* @__PURE__ */ t(D, { pricingLabel: v, price: i })
91
98
  ] }),
92
99
  /* @__PURE__ */ t(
93
- j,
100
+ V,
94
101
  {
95
102
  itemKey: c,
96
- onAdd: g,
97
- max: w,
98
- className: r.addToCart,
99
- addButtonClassName: r.addToCartButton,
100
- addButtonVariant: _ ? "cta-primary" : "secondary",
101
- size: a,
103
+ onAdd: I,
104
+ max: $,
105
+ className: a.addToCart,
106
+ addButtonClassName: a.addToCartButton,
107
+ addButtonVariant: f ? "cta-primary" : "secondary",
108
+ size: r,
102
109
  buttonDoneText: "",
103
- buttonText: _ ? "Add" : "Add to Cart",
104
- showQuantity: _,
105
- requiresUnitDetails: I
110
+ buttonText: f ? "Add" : "Add to Cart",
111
+ showQuantity: f,
112
+ requiresUnitDetails: A
106
113
  }
107
114
  )
108
115
  ]
109
116
  }
110
- ) : /* @__PURE__ */ o("div", { className: D(
111
- r.productTile,
112
- T,
113
- a && r[a],
114
- !v && r.elevated,
115
- !e && r.noImage
116
- ), ...B, children: [
117
- e && /* @__PURE__ */ t(
118
- A,
117
+ ) : /* @__PURE__ */ e("div", { className: E(
118
+ a.productTile,
119
+ C,
120
+ r && a[r],
121
+ !w && a.elevated,
122
+ !d && a.noImage
123
+ ), ...z, children: [
124
+ m && /* @__PURE__ */ e(p, { href: m, unstyled: !0, className: a.customWizardBadge, children: [
125
+ u && /* @__PURE__ */ t(W, { iconKey: u, size: "3xs", colorToken: "default-inverted" }),
126
+ /* @__PURE__ */ t(o, { size: "xs", weight: "regular", colorToken: "default-inverted", className: a.customWizardBadgeText, children: B })
127
+ ] }),
128
+ d && /* @__PURE__ */ t(
129
+ P,
119
130
  {
120
- src: e,
121
- alt: `${s} product image`,
122
- height: a === "sm" ? 86 : 108,
123
- width: a === "sm" ? 86 : 108
131
+ src: d,
132
+ alt: `${n} product image`,
133
+ height: r === "sm" ? 86 : 108,
134
+ width: r === "sm" ? 86 : 108
124
135
  }
125
136
  ),
126
- /* @__PURE__ */ o("div", { className: r.productData, children: [
127
- /* @__PURE__ */ o("div", { className: r.topRow, children: [
128
- /* @__PURE__ */ o("div", { className: r.productInformation, children: [
129
- /* @__PURE__ */ t(R, { onClick: () => n == null ? void 0 : n(c), size: a, href: N || "#", children: h }),
130
- /* @__PURE__ */ o("div", { className: r.partNumber, children: [
131
- /* @__PURE__ */ t(d, { size: u, className: r.partNumberLabel, children: "Part #" }),
132
- /* @__PURE__ */ t(d, { size: u, weight: "semibold", children: s })
133
- ] })
134
- ] }),
135
- C && /* @__PURE__ */ t("button", { onClick: () => C(c), children: /* @__PURE__ */ t(E, { size: "sm", iconKey: "fa-light fa-xmark" }) })
137
+ /* @__PURE__ */ e("div", { className: a.productData, children: [
138
+ /* @__PURE__ */ e("div", { className: a.productInformation, children: [
139
+ /* @__PURE__ */ t(p, { onClick: () => s == null ? void 0 : s(c), size: r, href: b || "#", children: g }),
140
+ /* @__PURE__ */ e("div", { className: a.partNumber, children: [
141
+ /* @__PURE__ */ t(o, { size: h, className: a.partNumberLabel, children: "Part #" }),
142
+ /* @__PURE__ */ t(o, { size: h, weight: "semibold", children: n })
143
+ ] })
136
144
  ] }),
137
- /* @__PURE__ */ o("div", { className: r.purchase, children: [
138
- /* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
139
- m && /* @__PURE__ */ t(
140
- $,
145
+ /* @__PURE__ */ e("div", { className: a.purchase, children: [
146
+ /* @__PURE__ */ e("div", { className: a.purchaseInformation, children: [
147
+ l && /* @__PURE__ */ t(
148
+ j,
141
149
  {
142
- availId: m,
143
- availDescription: x,
144
- inventory: b,
150
+ availId: l,
151
+ availDescription: N,
152
+ inventory: T,
145
153
  enableTooltip: !0
146
154
  }
147
155
  ),
148
- l && /* @__PURE__ */ t(P, { pricingLabel: f, price: l })
156
+ i && /* @__PURE__ */ t(D, { pricingLabel: v, price: i })
149
157
  ] }),
150
- /* @__PURE__ */ t(j, { size: a, itemKey: c, onAdd: g, max: w, className: r.addToCart, addButtonClassName: r.addToCartButton, requiresUnitDetails: I })
158
+ /* @__PURE__ */ t(V, { size: r, itemKey: c, onAdd: I, max: $, className: a.addToCart, addButtonClassName: a.addToCartButton, requiresUnitDetails: A })
151
159
  ] }),
152
- p && p.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: p.map((i) => /* @__PURE__ */ o("li", { children: [
153
- /* @__PURE__ */ o(d, { size: "xs", weight: "light", children: [
154
- i.label,
160
+ x && x.length > 0 && /* @__PURE__ */ t("ul", { className: a.attributeContainer, children: x.map((_) => /* @__PURE__ */ e("li", { children: [
161
+ /* @__PURE__ */ e(o, { size: "xs", weight: "light", children: [
162
+ _.label,
155
163
  ":"
156
164
  ] }),
157
- /* @__PURE__ */ t(d, { size: "xs", weight: "semibold", children: i.value })
158
- ] }, `${i.label}.${i.value}`)) })
165
+ /* @__PURE__ */ t(o, { size: "xs", weight: "semibold", children: _.value })
166
+ ] }, `${_.label}.${_.value}`)) })
159
167
  ] })
160
168
  ] });
161
169
  }
162
170
  export {
163
- nr as Product
171
+ na as Product
164
172
  };
@@ -32,6 +32,12 @@ declare const meta: {
32
32
  productDescription: {
33
33
  control: "text";
34
34
  };
35
+ customWizardUrl: {
36
+ control: "text";
37
+ };
38
+ customWizardText: {
39
+ control: "text";
40
+ };
35
41
  productHref: {
36
42
  control: "text";
37
43
  };
@@ -1,5 +1,5 @@
1
- import { Product as e } from "./Product.js";
2
- const i = [
1
+ import { Product as i } from "./Product.js";
2
+ const e = [
3
3
  { label: "Color", value: "Gray" },
4
4
  { label: "Brand", value: "Kason" },
5
5
  { label: "Finish", value: "Chrome" },
@@ -13,7 +13,7 @@ const i = [
13
13
  { label: "Attribute", value: "Placeholder" }
14
14
  ], r = {
15
15
  title: "Case Parts/Organisms/Product",
16
- component: e,
16
+ component: i,
17
17
  parameters: { layout: "centered" },
18
18
  argTypes: {
19
19
  productView: {
@@ -31,6 +31,8 @@ const i = [
31
31
  description: "Availability text"
32
32
  },
33
33
  productDescription: { control: "text" },
34
+ customWizardUrl: { control: "text" },
35
+ customWizardText: { control: "text" },
34
36
  productHref: { control: "text" },
35
37
  partNumber: { control: "text" },
36
38
  priceLabel: { control: "text" },
@@ -52,6 +54,8 @@ const i = [
52
54
  itemKey: 101,
53
55
  partNumber: "PN-44567",
54
56
  productDescription: "Example Replacement Part Long Description",
57
+ customWizardUrl: void 0,
58
+ customWizardText: "Customize",
55
59
  // productHref: 'https://dev.caseparts.com/graphics/photos/R-23_IMG_2009.png',
56
60
  productHref: "https://mobiledev.caseparts.com/part/1092-01/Kason-1092-Hydraulic-Door-Closer",
57
61
  availId: "available",
@@ -60,13 +64,10 @@ const i = [
60
64
  price: "$129.99",
61
65
  imgSrc: "https://dev.caseparts.com/graphics/photos/R-23_IMG_2009.png",
62
66
  // imgSrc: 'https://www.caseparts.com/Ortery/360/Optimized/1092-01_/1092-01_04.webp',
63
- attributes: i,
67
+ attributes: e,
64
68
  onAddToCart: (t, a) => {
65
69
  alert(`Add to cart (story) ${JSON.stringify({ itemKey: t, quantity: a })}`);
66
70
  },
67
- onClose: (t) => {
68
- alert(`On close clicked ${t}`);
69
- },
70
71
  flat: !1,
71
72
  size: "md",
72
73
  showQuantity: !0,
@@ -95,12 +96,12 @@ const i = [
95
96
  productView: "Tile",
96
97
  productDescription: "Tile View Product"
97
98
  }
98
- }, p = {
99
+ }, u = {
99
100
  args: {
100
101
  priceLabel: "Member",
101
102
  price: "$118.49"
102
103
  }
103
- }, u = {
104
+ }, p = {
104
105
  args: {
105
106
  productView: "Card",
106
107
  imgSrc: void 0
@@ -134,12 +135,12 @@ const i = [
134
135
  export {
135
136
  c as ContactForAvailability,
136
137
  l as Default,
137
- p as DifferentPriceLabel,
138
+ u as DifferentPriceLabel,
138
139
  m as FlatTile,
139
140
  n as LimitedStock,
140
141
  b as MaxQuantityCard,
141
142
  y as MaxQuantityTile,
142
- u as NoImageCard,
143
+ p as NoImageCard,
143
144
  v as NoImageFlatCard,
144
145
  d as TileView,
145
146
  s as Unavailable,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.215",
4
+ "version": "0.0.217",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",