@caseparts-org/caseblocks 0.0.274 → 0.0.276
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.
- package/dist/assets/ProgressTracker.css +1 -0
- package/dist/main-client.d.ts +2 -0
- package/dist/main-client.js +42 -40
- package/dist/molecules/Markdown/Markdown.js +661 -652
- package/dist/molecules/Pricing/Pricing.d.ts +3 -1
- package/dist/molecules/Pricing/Pricing.js +33 -31
- package/dist/molecules/ProgressTracker/ProgressTracker.d.ts +13 -0
- package/dist/molecules/ProgressTracker/ProgressTracker.js +66 -0
- package/dist/molecules/ProgressTracker/ProgressTracker.stories.d.ts +14 -0
- package/dist/molecules/ProgressTracker/ProgressTracker.stories.js +65 -0
- package/dist/organisms/Product/Product.js +90 -88
- package/package.json +1 -1
|
@@ -2,8 +2,10 @@ export interface PricingProps {
|
|
|
2
2
|
pricingLabel?: string;
|
|
3
3
|
price?: string;
|
|
4
4
|
listPrice?: string;
|
|
5
|
+
isSignedIn?: boolean;
|
|
6
|
+
customerClass?: string;
|
|
5
7
|
quantity?: number;
|
|
6
8
|
presentation?: "unit" | "total";
|
|
7
9
|
className?: string;
|
|
8
10
|
}
|
|
9
|
-
export declare function Pricing({ pricingLabel, price, listPrice, quantity, presentation, className, }: PricingProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function Pricing({ pricingLabel, price, listPrice, isSignedIn, customerClass, quantity, presentation, className, }: PricingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
import { jsx as i, jsxs as c, Fragment as
|
|
1
|
+
import { jsx as i, jsxs as c, Fragment as u } from "react/jsx-runtime";
|
|
2
2
|
import { c as m } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { Text as
|
|
4
|
-
import '../../assets/Pricing.css';const
|
|
5
|
-
pricingInformation:
|
|
6
|
-
prices:
|
|
7
|
-
priceRow:
|
|
8
|
-
discountedTotal:
|
|
9
|
-
totalPriceHidden:
|
|
3
|
+
import { Text as r } from "../../atoms/Text/Text.js";
|
|
4
|
+
import '../../assets/Pricing.css';const f = "_pricingInformation_1bvkh_1", T = "_prices_1bvkh_6", P = "_priceRow_1bvkh_15", g = "_discountedTotal_1bvkh_23", p = "_totalPriceHidden_1bvkh_28", t = {
|
|
5
|
+
pricingInformation: f,
|
|
6
|
+
prices: T,
|
|
7
|
+
priceRow: P,
|
|
8
|
+
discountedTotal: g,
|
|
9
|
+
totalPriceHidden: p
|
|
10
10
|
};
|
|
11
11
|
function s(n) {
|
|
12
12
|
const e = Number(n.replace(/[^0-9.-]/g, ""));
|
|
13
13
|
return Number.isFinite(e) ? e : void 0;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
15
|
+
function b(n, e) {
|
|
16
|
+
const o = s(n);
|
|
17
|
+
if (o !== void 0)
|
|
18
18
|
return new Intl.NumberFormat("en-US", {
|
|
19
19
|
style: "currency",
|
|
20
20
|
currency: "USD"
|
|
21
|
-
}).format(
|
|
21
|
+
}).format(o * e);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function z({
|
|
24
24
|
pricingLabel: n,
|
|
25
25
|
price: e,
|
|
26
|
-
listPrice:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
listPrice: o,
|
|
27
|
+
isSignedIn: l = !1,
|
|
28
|
+
customerClass: h,
|
|
29
|
+
quantity: a = 1,
|
|
30
|
+
presentation: v = "unit",
|
|
31
|
+
className: _
|
|
30
32
|
}) {
|
|
31
|
-
const d = e ?
|
|
32
|
-
return /* @__PURE__ */ i("div", { className: m(t.pricingInformation,
|
|
33
|
+
const d = e ? b(e, a) : void 0, x = !!(l && h !== "EndUser" && e && o && s(o) !== void 0 && s(e) !== void 0 && s(o) > s(e));
|
|
34
|
+
return /* @__PURE__ */ i("div", { className: m(t.pricingInformation, _), children: v === "unit" ? /* @__PURE__ */ c(u, { children: [
|
|
33
35
|
/* @__PURE__ */ c("div", { className: t.prices, children: [
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */ i(
|
|
36
|
-
/* @__PURE__ */ i(
|
|
36
|
+
x && /* @__PURE__ */ c("div", { className: t.priceRow, children: [
|
|
37
|
+
/* @__PURE__ */ i(r, { size: "xxs", colorToken: "quaternary", children: "List Price" }),
|
|
38
|
+
/* @__PURE__ */ i(r, { size: "xxs", colorToken: "quaternary", children: o })
|
|
37
39
|
] }),
|
|
38
40
|
/* @__PURE__ */ c("div", { className: t.priceRow, children: [
|
|
39
|
-
/* @__PURE__ */ i(
|
|
40
|
-
/* @__PURE__ */ i(
|
|
41
|
+
/* @__PURE__ */ i(r, { size: "xs", children: l ? "Your Price" : "List Price" }),
|
|
42
|
+
/* @__PURE__ */ i(r, { size: "sm", weight: "bold", children: e })
|
|
41
43
|
] })
|
|
42
44
|
] }),
|
|
43
45
|
/* @__PURE__ */ i(
|
|
44
|
-
|
|
46
|
+
r,
|
|
45
47
|
{
|
|
46
48
|
size: "xs",
|
|
47
49
|
colorToken: "quaternary",
|
|
48
50
|
className: m(
|
|
49
|
-
|
|
51
|
+
a <= 1 && t.totalPriceHidden,
|
|
50
52
|
t.discountedTotal
|
|
51
53
|
),
|
|
52
54
|
children: d ? `Total ${d}` : "Total"
|
|
53
55
|
}
|
|
54
56
|
)
|
|
55
|
-
] }) : /* @__PURE__ */ c(
|
|
56
|
-
n && /* @__PURE__ */ i(
|
|
57
|
-
/* @__PURE__ */ i(
|
|
58
|
-
/* @__PURE__ */ c(
|
|
57
|
+
] }) : /* @__PURE__ */ c(u, { children: [
|
|
58
|
+
n && /* @__PURE__ */ i(r, { size: "xxs", children: n }),
|
|
59
|
+
/* @__PURE__ */ i(r, { size: "lg", weight: "bold", children: d ?? e }),
|
|
60
|
+
/* @__PURE__ */ c(r, { size: "xs", colorToken: "quaternary", children: [
|
|
59
61
|
e,
|
|
60
62
|
" each"
|
|
61
63
|
] })
|
|
62
64
|
] }) });
|
|
63
65
|
}
|
|
64
66
|
export {
|
|
65
|
-
|
|
67
|
+
z as Pricing
|
|
66
68
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IconProps } from '../../atoms/Icon/Icon';
|
|
3
|
+
export interface Step {
|
|
4
|
+
label: string;
|
|
5
|
+
subText?: string;
|
|
6
|
+
completed: boolean;
|
|
7
|
+
iconKey?: IconProps["iconKey"];
|
|
8
|
+
tooltipContent?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface ProgressTrackerProps {
|
|
11
|
+
steps: Step[];
|
|
12
|
+
}
|
|
13
|
+
export declare function ProgressTracker({ steps }: ProgressTrackerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Fragment as m } from "react";
|
|
4
|
+
import { Icon as d } from "../../atoms/Icon/Icon.js";
|
|
5
|
+
import { Text as n } from "../../atoms/Text/Text.js";
|
|
6
|
+
import { Tooltip as u } from "../../atoms/Tooltip/Tooltip.js";
|
|
7
|
+
import '../../assets/ProgressTracker.css';const _ = "_tracker_uwyx3_1", p = "_status_uwyx3_19", x = "_bubbleContainer_uwyx3_37", y = "_details_uwyx3_53", h = "_bubble_uwyx3_37", f = "_completed_uwyx3_89", w = "_connector_uwyx3_107", N = "_label_uwyx3_131", g = "_date_uwyx3_141", e = {
|
|
8
|
+
tracker: _,
|
|
9
|
+
status: p,
|
|
10
|
+
bubbleContainer: x,
|
|
11
|
+
details: y,
|
|
12
|
+
bubble: h,
|
|
13
|
+
completed: f,
|
|
14
|
+
connector: w,
|
|
15
|
+
label: N,
|
|
16
|
+
date: g
|
|
17
|
+
};
|
|
18
|
+
function k({
|
|
19
|
+
label: s,
|
|
20
|
+
subText: c,
|
|
21
|
+
completed: o,
|
|
22
|
+
iconKey: b,
|
|
23
|
+
tooltipContent: r
|
|
24
|
+
}) {
|
|
25
|
+
const l = /* @__PURE__ */ t(
|
|
26
|
+
"span",
|
|
27
|
+
{
|
|
28
|
+
className: i(
|
|
29
|
+
e.bubble,
|
|
30
|
+
o && e.completed
|
|
31
|
+
),
|
|
32
|
+
children: o && /* @__PURE__ */ t(
|
|
33
|
+
d,
|
|
34
|
+
{
|
|
35
|
+
iconKey: b ?? "fa-solid fa-check",
|
|
36
|
+
size: "sm",
|
|
37
|
+
noPadding: !0
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
return /* @__PURE__ */ a("div", { className: e.status, children: [
|
|
43
|
+
/* @__PURE__ */ t("div", { className: e.bubbleContainer, children: r ? /* @__PURE__ */ t(u, { closeDelay: 0, openDelay: 0, trigger: l, position: "top", children: r }) : l }),
|
|
44
|
+
/* @__PURE__ */ a("div", { className: e.details, children: [
|
|
45
|
+
/* @__PURE__ */ t(n, { size: "sm", weight: "semibold", className: e.label, children: s }),
|
|
46
|
+
c && /* @__PURE__ */ t(n, { size: "xxs", colorToken: "quaternary", className: e.date, children: c })
|
|
47
|
+
] })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
function P({ steps: s }) {
|
|
51
|
+
return /* @__PURE__ */ t("div", { className: e.tracker, children: s.map((c, o) => /* @__PURE__ */ a(m, { children: [
|
|
52
|
+
/* @__PURE__ */ t(k, { ...c }),
|
|
53
|
+
o < s.length - 1 && /* @__PURE__ */ t(
|
|
54
|
+
"span",
|
|
55
|
+
{
|
|
56
|
+
className: i(
|
|
57
|
+
e.connector,
|
|
58
|
+
c.completed && e.completed
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] }, `${c.label}-${o}`)) });
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
P as ProgressTracker
|
|
66
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ProgressTracker } from './ProgressTracker';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ProgressTracker;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Shipment: Story;
|
|
14
|
+
export declare const CustomWorkflow: Story;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ProgressTracker as e } from "./ProgressTracker.js";
|
|
2
|
+
const o = {
|
|
3
|
+
title: "Case Parts/Molecules/ProgressTracker",
|
|
4
|
+
component: e,
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: "centered"
|
|
7
|
+
},
|
|
8
|
+
tags: ["autodocs"]
|
|
9
|
+
}, l = {
|
|
10
|
+
args: {
|
|
11
|
+
steps: [
|
|
12
|
+
{
|
|
13
|
+
label: "Ordered",
|
|
14
|
+
subText: "9/14 10:00 AM",
|
|
15
|
+
completed: !0,
|
|
16
|
+
tooltipContent: "Order placed"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: "Shipped",
|
|
20
|
+
subText: "9/15 2:00 PM",
|
|
21
|
+
completed: !0,
|
|
22
|
+
tooltipContent: "Shipment left the warehouse"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "In Transit",
|
|
26
|
+
subText: "9/16 8:30 AM",
|
|
27
|
+
completed: !0,
|
|
28
|
+
tooltipContent: "Shipment is on the way"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: "Delivered",
|
|
32
|
+
subText: "This is a longer message",
|
|
33
|
+
completed: !1,
|
|
34
|
+
tooltipContent: "Awaiting delivery"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}, s = {
|
|
39
|
+
args: {
|
|
40
|
+
steps: [
|
|
41
|
+
{
|
|
42
|
+
label: "Submitted",
|
|
43
|
+
subText: "Sep 14",
|
|
44
|
+
completed: !0,
|
|
45
|
+
iconKey: "fa-solid fa-paper-plane",
|
|
46
|
+
tooltipContent: "Request submitted"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "Under review",
|
|
50
|
+
completed: !1,
|
|
51
|
+
tooltipContent: "Request is awaiting review"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "Approved",
|
|
55
|
+
completed: !1,
|
|
56
|
+
tooltipContent: "Request has not been approved"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
s as CustomWorkflow,
|
|
63
|
+
l as Shipment,
|
|
64
|
+
o as default
|
|
65
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsxs as e, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Image as
|
|
4
|
-
import { Link as
|
|
5
|
-
import { Text as
|
|
6
|
-
import { Availability as
|
|
7
|
-
import { Pricing as
|
|
8
|
-
import { AddToCart as
|
|
9
|
-
import { CustomWizardBadge as
|
|
10
|
-
import { c as
|
|
11
|
-
import '../../assets/Product.css';const
|
|
12
|
-
productCard:
|
|
13
|
-
sm:
|
|
14
|
-
productInformation:
|
|
15
|
-
purchaseInformation:
|
|
16
|
-
purchaseControls:
|
|
17
|
-
addToCart:
|
|
18
|
-
addToCartButton:
|
|
19
|
-
pricing:
|
|
20
|
-
partNumber:
|
|
21
|
-
partNumberLabel:
|
|
2
|
+
import O from "react";
|
|
3
|
+
import { Image as R } from "../../atoms/Image/Image.js";
|
|
4
|
+
import { Link as V } from "../../atoms/Link/Link.js";
|
|
5
|
+
import { Text as c } from "../../atoms/Text/Text.js";
|
|
6
|
+
import { Availability as q } from "../../molecules/Availability/Availability.js";
|
|
7
|
+
import { Pricing as E } from "../../molecules/Pricing/Pricing.js";
|
|
8
|
+
import { AddToCart as F } from "../../molecules/AddToCart/AddToCart.js";
|
|
9
|
+
import { CustomWizardBadge as G } from "../../molecules/CustomWizardBadge/CustomWizardBadge.js";
|
|
10
|
+
import { c as J } from "../../clsx-OuTLNxxd.js";
|
|
11
|
+
import '../../assets/Product.css';const Q = "_productCard_ntcb7_3", X = "_sm_ntcb7_16", Y = "_productInformation_ntcb7_26", Z = "_purchaseInformation_ntcb7_33", H = "_purchaseControls_ntcb7_39", K = "_addToCart_ntcb7_46", L = "_addToCartButton_ntcb7_49", S = "_pricing_ntcb7_53", U = "_partNumber_ntcb7_64", W = "_partNumberLabel_ntcb7_71", z = "_productTile_ntcb7_75", k = "_productData_ntcb7_102", tt = "_purchase_ntcb7_33", at = "_attributeContainer_ntcb7_148", rt = "_elevated_ntcb7_196", et = "_noImage_ntcb7_202", t = {
|
|
12
|
+
productCard: Q,
|
|
13
|
+
sm: X,
|
|
14
|
+
productInformation: Y,
|
|
15
|
+
purchaseInformation: Z,
|
|
16
|
+
purchaseControls: H,
|
|
17
|
+
addToCart: K,
|
|
18
|
+
addToCartButton: L,
|
|
19
|
+
pricing: S,
|
|
20
|
+
partNumber: U,
|
|
21
|
+
partNumberLabel: W,
|
|
22
22
|
productTile: z,
|
|
23
23
|
productData: k,
|
|
24
24
|
purchase: tt,
|
|
@@ -26,50 +26,50 @@ import '../../assets/Product.css';const M = "_productCard_ntcb7_3", O = "_sm_ntc
|
|
|
26
26
|
elevated: rt,
|
|
27
27
|
noImage: et
|
|
28
28
|
};
|
|
29
|
-
function
|
|
30
|
-
productView:
|
|
29
|
+
function it({
|
|
30
|
+
productView: M,
|
|
31
31
|
itemKey: d,
|
|
32
32
|
partNumber: s,
|
|
33
|
-
productDescription:
|
|
34
|
-
availDescription:
|
|
33
|
+
productDescription: b,
|
|
34
|
+
availDescription: N,
|
|
35
35
|
availId: l,
|
|
36
|
-
inventory:
|
|
37
|
-
productHref:
|
|
36
|
+
inventory: f,
|
|
37
|
+
productHref: C,
|
|
38
38
|
customWizardUrl: m,
|
|
39
|
-
customWizardText:
|
|
40
|
-
customWizardColorToken:
|
|
41
|
-
price:
|
|
42
|
-
listPrice:
|
|
43
|
-
isSignedIn:
|
|
39
|
+
customWizardText: T = "Customize",
|
|
40
|
+
customWizardColorToken: g = "secondary",
|
|
41
|
+
price: u,
|
|
42
|
+
listPrice: v,
|
|
43
|
+
isSignedIn: x = !1,
|
|
44
44
|
customerClass: I,
|
|
45
45
|
imgSrc: o,
|
|
46
|
-
attributes:
|
|
46
|
+
attributes: i,
|
|
47
47
|
className: B,
|
|
48
|
-
onAddToCart:
|
|
49
|
-
flat:
|
|
48
|
+
onAddToCart: A,
|
|
49
|
+
flat: w,
|
|
50
50
|
size: r = "md",
|
|
51
|
-
showQuantity:
|
|
52
|
-
onLinkClicked:
|
|
53
|
-
requiresUnitDetails:
|
|
54
|
-
maxQuantity:
|
|
55
|
-
...
|
|
51
|
+
showQuantity: _ = !0,
|
|
52
|
+
onLinkClicked: n,
|
|
53
|
+
requiresUnitDetails: $ = !1,
|
|
54
|
+
maxQuantity: j,
|
|
55
|
+
...y
|
|
56
56
|
}) {
|
|
57
|
-
const [
|
|
58
|
-
return
|
|
57
|
+
const [D, P] = O.useState(1), p = r === "sm" ? "xs" : "sm";
|
|
58
|
+
return M === "Card" ? /* @__PURE__ */ e(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
|
-
className:
|
|
61
|
+
className: J(
|
|
62
62
|
t.productCard,
|
|
63
63
|
r && t[r],
|
|
64
64
|
B,
|
|
65
|
-
!
|
|
65
|
+
!w && t.elevated,
|
|
66
66
|
!o && t.noImage
|
|
67
67
|
),
|
|
68
|
-
...
|
|
68
|
+
...y,
|
|
69
69
|
children: [
|
|
70
|
-
m && /* @__PURE__ */ a(
|
|
70
|
+
m && /* @__PURE__ */ a(G, { href: m, text: T, colorToken: g }),
|
|
71
71
|
o && /* @__PURE__ */ a(
|
|
72
|
-
|
|
72
|
+
R,
|
|
73
73
|
{
|
|
74
74
|
src: o,
|
|
75
75
|
alt: `${s} product image`,
|
|
@@ -78,62 +78,63 @@ function ht({
|
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
80
|
/* @__PURE__ */ e("div", { className: t.productInformation, children: [
|
|
81
|
-
/* @__PURE__ */ a(
|
|
81
|
+
/* @__PURE__ */ a(V, { onClick: () => n == null ? void 0 : n(d), size: r, href: C || "#", children: b }),
|
|
82
82
|
/* @__PURE__ */ e("div", { className: t.partNumber, children: [
|
|
83
|
-
/* @__PURE__ */ a(
|
|
84
|
-
/* @__PURE__ */ a(
|
|
83
|
+
/* @__PURE__ */ a(c, { size: p, className: t.partNumberLabel, children: "Part #" }),
|
|
84
|
+
/* @__PURE__ */ a(c, { size: p, weight: "semibold", children: s })
|
|
85
85
|
] })
|
|
86
86
|
] }),
|
|
87
87
|
/* @__PURE__ */ a("div", { className: t.purchaseInformation, children: l && /* @__PURE__ */ a(
|
|
88
|
-
|
|
88
|
+
q,
|
|
89
89
|
{
|
|
90
90
|
availId: l,
|
|
91
|
-
availDescription:
|
|
92
|
-
inventory:
|
|
91
|
+
availDescription: N,
|
|
92
|
+
inventory: f,
|
|
93
93
|
enableTooltip: !0
|
|
94
94
|
}
|
|
95
95
|
) }),
|
|
96
96
|
/* @__PURE__ */ e("div", { className: t.purchaseControls, children: [
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
u && /* @__PURE__ */ a(
|
|
98
|
+
E,
|
|
99
99
|
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
price: u,
|
|
101
|
+
listPrice: v,
|
|
102
|
+
isSignedIn: x,
|
|
103
|
+
customerClass: I,
|
|
104
|
+
quantity: D,
|
|
104
105
|
className: t.pricing
|
|
105
106
|
}
|
|
106
107
|
),
|
|
107
108
|
/* @__PURE__ */ a(
|
|
108
|
-
|
|
109
|
+
F,
|
|
109
110
|
{
|
|
110
111
|
itemKey: d,
|
|
111
|
-
onAdd:
|
|
112
|
-
max:
|
|
112
|
+
onAdd: A,
|
|
113
|
+
max: j,
|
|
113
114
|
className: t.addToCart,
|
|
114
115
|
addButtonClassName: t.addToCartButton,
|
|
115
|
-
addButtonVariant:
|
|
116
|
+
addButtonVariant: _ ? "cta-primary" : "secondary",
|
|
116
117
|
size: r,
|
|
117
118
|
buttonDoneText: "",
|
|
118
|
-
buttonText:
|
|
119
|
-
showQuantity:
|
|
120
|
-
requiresUnitDetails:
|
|
121
|
-
onQuantityChange:
|
|
119
|
+
buttonText: _ ? "Add" : "Add to Cart",
|
|
120
|
+
showQuantity: _,
|
|
121
|
+
requiresUnitDetails: $,
|
|
122
|
+
onQuantityChange: P
|
|
122
123
|
}
|
|
123
124
|
)
|
|
124
125
|
] })
|
|
125
126
|
]
|
|
126
127
|
}
|
|
127
|
-
) : /* @__PURE__ */ e("div", { className:
|
|
128
|
+
) : /* @__PURE__ */ e("div", { className: J(
|
|
128
129
|
t.productTile,
|
|
129
130
|
B,
|
|
130
131
|
r && t[r],
|
|
131
|
-
!
|
|
132
|
+
!w && t.elevated,
|
|
132
133
|
!o && t.noImage
|
|
133
|
-
), ...
|
|
134
|
-
m && /* @__PURE__ */ a(
|
|
134
|
+
), ...y, children: [
|
|
135
|
+
m && /* @__PURE__ */ a(G, { href: m, text: T, colorToken: g }),
|
|
135
136
|
o && /* @__PURE__ */ a(
|
|
136
|
-
|
|
137
|
+
R,
|
|
137
138
|
{
|
|
138
139
|
src: o,
|
|
139
140
|
alt: `${s} product image`,
|
|
@@ -143,46 +144,47 @@ function ht({
|
|
|
143
144
|
),
|
|
144
145
|
/* @__PURE__ */ e("div", { className: t.productData, children: [
|
|
145
146
|
/* @__PURE__ */ e("div", { className: t.productInformation, children: [
|
|
146
|
-
/* @__PURE__ */ a(
|
|
147
|
+
/* @__PURE__ */ a(V, { onClick: () => n == null ? void 0 : n(d), size: r, href: C || "#", children: b }),
|
|
147
148
|
/* @__PURE__ */ e("div", { className: t.partNumber, children: [
|
|
148
|
-
/* @__PURE__ */ a(
|
|
149
|
-
/* @__PURE__ */ a(
|
|
149
|
+
/* @__PURE__ */ a(c, { size: p, className: t.partNumberLabel, children: "Part #" }),
|
|
150
|
+
/* @__PURE__ */ a(c, { size: p, weight: "semibold", children: s })
|
|
150
151
|
] })
|
|
151
152
|
] }),
|
|
152
153
|
/* @__PURE__ */ e("div", { className: t.purchase, children: [
|
|
153
154
|
/* @__PURE__ */ a("div", { className: t.purchaseInformation, children: l && /* @__PURE__ */ a(
|
|
154
|
-
|
|
155
|
+
q,
|
|
155
156
|
{
|
|
156
157
|
availId: l,
|
|
157
|
-
availDescription:
|
|
158
|
-
inventory:
|
|
158
|
+
availDescription: N,
|
|
159
|
+
inventory: f,
|
|
159
160
|
enableTooltip: !0
|
|
160
161
|
}
|
|
161
162
|
) }),
|
|
162
163
|
/* @__PURE__ */ e("div", { className: t.purchaseControls, children: [
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
u && /* @__PURE__ */ a(
|
|
165
|
+
E,
|
|
165
166
|
{
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
price: u,
|
|
168
|
+
listPrice: v,
|
|
169
|
+
isSignedIn: x,
|
|
170
|
+
customerClass: I,
|
|
171
|
+
quantity: D,
|
|
170
172
|
className: t.pricing
|
|
171
173
|
}
|
|
172
174
|
),
|
|
173
|
-
/* @__PURE__ */ a(
|
|
175
|
+
/* @__PURE__ */ a(F, { size: r, itemKey: d, onAdd: A, max: j, className: t.addToCart, addButtonClassName: t.addToCartButton, requiresUnitDetails: $, onQuantityChange: P })
|
|
174
176
|
] })
|
|
175
177
|
] }),
|
|
176
|
-
|
|
177
|
-
/* @__PURE__ */ e(
|
|
178
|
+
i && i.length > 0 && /* @__PURE__ */ a("ul", { className: t.attributeContainer, children: i.map((h) => /* @__PURE__ */ e("li", { children: [
|
|
179
|
+
/* @__PURE__ */ e(c, { size: "xs", weight: "light", children: [
|
|
178
180
|
h.label,
|
|
179
181
|
":"
|
|
180
182
|
] }),
|
|
181
|
-
/* @__PURE__ */ a(
|
|
183
|
+
/* @__PURE__ */ a(c, { size: "xs", weight: "semibold", children: h.value })
|
|
182
184
|
] }, `${h.label}.${h.value}`)) })
|
|
183
185
|
] })
|
|
184
186
|
] });
|
|
185
187
|
}
|
|
186
188
|
export {
|
|
187
|
-
|
|
189
|
+
it as Product
|
|
188
190
|
};
|