@caseparts-org/caseblocks 0.0.261 → 0.0.263
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/Cart.module-BCmEDBeq.js +37 -0
- package/dist/assets/Admonition.css +1 -1
- package/dist/assets/Cart.css +1 -1
- package/dist/atoms/Select/Select.d.ts +6 -1
- package/dist/atoms/Select/Select.js +50 -48
- package/dist/atoms/Select/Select.stories.d.ts +1 -0
- package/dist/atoms/Select/Select.stories.js +31 -12
- package/dist/main-client.d.ts +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/molecules/Admonition/Admonition.d.ts +2 -1
- package/dist/molecules/Admonition/Admonition.js +36 -34
- package/dist/molecules/Cart/Cart.d.ts +2 -0
- package/dist/molecules/Cart/Cart.js +1 -1
- package/dist/molecules/Cart/CartPart.d.ts +5 -1
- package/dist/molecules/Cart/CartPart.js +116 -110
- package/dist/molecules/Cart/CartSlideInPanel.d.ts +6 -1
- package/dist/molecules/Cart/CartSlideInPanel.js +22 -19
- package/dist/molecules/Markdown/Markdown.d.ts +2 -1
- package/dist/molecules/Markdown/Markdown.js +13 -11
- package/dist/molecules/Markdown/usePreprocessedMarkdown.d.ts +1 -1
- package/dist/molecules/Markdown/usePreprocessedMarkdown.js +36 -36
- package/package.json +1 -1
- package/dist/Cart.module-BIEAjANw.js +0 -36
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import './assets/Cart.css';const t = "_cartIconButton_bxnb6_2", n = "_count_bxnb6_15", o = "_cartContainer_bxnb6_30", e = "_headerWrapper_bxnb6_42", a = "_header_bxnb6_42", i = "_cartItems_bxnb6_60", _ = "_cartItem_bxnb6_60", r = "_cartItemContent_bxnb6_78", c = "_carItemSeparator_bxnb6_90", m = "_itemContainer_bxnb6_94", b = "_topRow_bxnb6_98", s = "_itemInfo_bxnb6_105", d = "_editUnit_bxnb6_110", I = "_purchaseInformation_bxnb6_126", x = "_availabilitySlot_bxnb6_132", l = "_priceSlot_bxnb6_139", p = "_itemManagement_bxnb6_141", g = "_itemImage_bxnb6_154", u = "_removeItem_bxnb6_157", A = "_cartItemAdmonitionsPanel_bxnb6_166", C = "_admonitionsPanelCollapsed_bxnb6_171", h = "_cartItemAdmonitionsTrigger_bxnb6_176", v = "_cartItemAdmonitionHeader_bxnb6_188", R = "_admonitionsReveal_bxnb6_196", S = "_admonitionsRevealExpanded_bxnb6_201", T = "_cartItemAdmonitions_bxnb6_166", f = "_admonitionTriggerIconExpanded_bxnb6_207", B = "_admonitionTriggerIcon_bxnb6_207", E = "_cartItemAdmonitionContent_bxnb6_220", P = "_noItems_bxnb6_230", y = "_subtotal_bxnb6_237", k = "_checkoutButton_bxnb6_244", w = {
|
|
2
|
+
cartIconButton: t,
|
|
3
|
+
count: n,
|
|
4
|
+
cartContainer: o,
|
|
5
|
+
headerWrapper: e,
|
|
6
|
+
header: a,
|
|
7
|
+
cartItems: i,
|
|
8
|
+
cartItem: _,
|
|
9
|
+
cartItemContent: r,
|
|
10
|
+
carItemSeparator: c,
|
|
11
|
+
itemContainer: m,
|
|
12
|
+
topRow: b,
|
|
13
|
+
itemInfo: s,
|
|
14
|
+
editUnit: d,
|
|
15
|
+
purchaseInformation: I,
|
|
16
|
+
availabilitySlot: x,
|
|
17
|
+
priceSlot: l,
|
|
18
|
+
itemManagement: p,
|
|
19
|
+
itemImage: g,
|
|
20
|
+
removeItem: u,
|
|
21
|
+
cartItemAdmonitionsPanel: A,
|
|
22
|
+
admonitionsPanelCollapsed: C,
|
|
23
|
+
cartItemAdmonitionsTrigger: h,
|
|
24
|
+
cartItemAdmonitionHeader: v,
|
|
25
|
+
admonitionsReveal: R,
|
|
26
|
+
admonitionsRevealExpanded: S,
|
|
27
|
+
cartItemAdmonitions: T,
|
|
28
|
+
admonitionTriggerIconExpanded: f,
|
|
29
|
+
admonitionTriggerIcon: B,
|
|
30
|
+
cartItemAdmonitionContent: E,
|
|
31
|
+
noItems: P,
|
|
32
|
+
subtotal: y,
|
|
33
|
+
checkoutButton: k
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
w as s
|
|
37
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._admonition_ukq7x_1{display:grid;grid-template-columns:.5rem minmax(0,1fr);gap:0;margin:var(--spacing-spacing-2xs) 0}._admonitionBorderLeft_ukq7x_8{border-radius:var(--border-radius-sm) 0 0 var(--border-radius-sm);background-color:var(--border-border-primary)}._admonitionPanel_ukq7x_13{display:grid;gap:var(--spacing-spacing-default);border:1px solid var(--border-border-note-medium);border-radius:0 var(--border-radius-sm) var(--border-radius-sm) 0;background:var(--surface-surface-note);padding:var(--spacing-spacing-1xs)}@media (max-width:767px){._admonitionPanel_ukq7x_13{padding:var(--spacing-spacing-2xs)}}._admonitionSmall_ukq7x_25 ._admonitionPanel_ukq7x_13{padding:var(--spacing-spacing-2xs)}._admonitionWithIcon_ukq7x_29{grid-template-columns:auto minmax(0,1fr)}._admonitionIcon_ukq7x_33{color:var(--icons-icon-default)}._admonitionContent_ukq7x_37{min-width:0;display:grid;gap:var(--spacing-spacing-3xs)}._admonitionHeader_ukq7x_43{display:flex;align-items:center;gap:var(--spacing-spacing-3xs)}._admonitionTitle_ukq7x_49{line-height:1.2}@media (max-width:767px){._admonitionTitle_ukq7x_49{font-size:var(--font-size-sm)}}._admonitionSmall_ukq7x_25 ._admonitionTitle_ukq7x_49,._admonitionBody_ukq7x_60{font-size:var(--font-size-sm)}@media (max-width:767px){._admonitionBody_ukq7x_60{font-size:var(--font-size-xs)}}._admonitionSmall_ukq7x_25 ._admonitionBody_ukq7x_60{font-size:var(--font-size-xs)}._admonitionBody_ukq7x_60>:first-child{margin-top:0}._admonitionBody_ukq7x_60>:last-child{margin-bottom:0}._admonitionNote_ukq7x_79 ._admonitionPanel_ukq7x_13{border-color:var(--border-border-note-medium)}._admonitionTip_ukq7x_85 ._admonitionBorderLeft_ukq7x_8{background-color:var(--border-border-success)}._admonitionTip_ukq7x_85 ._admonitionPanel_ukq7x_13{border-color:var(--border-border-tip-medium);background-color:var(--surface-surface-tip)}._admonitionTip_ukq7x_85 ._admonitionIcon_ukq7x_33{color:var(--icons-icon-success)}._admonitionAttention_ukq7x_100 ._admonitionBorderLeft_ukq7x_8{background-color:var(--border-border-help)}._admonitionAttention_ukq7x_100 ._admonitionPanel_ukq7x_13{border-color:var(--border-border-attention-medium);background-color:var(--surface-surface-attention)}._admonitionAttention_ukq7x_100 ._admonitionIcon_ukq7x_33{color:var(--icons-icon-caution-tips)}._admonitionCaution_ukq7x_115 ._admonitionBorderLeft_ukq7x_8{background-color:var(--border-border-warning)}._admonitionCaution_ukq7x_115 ._admonitionPanel_ukq7x_13{border-color:var(--border-border-caution-medium);background-color:var(--surface-surface-caution)}._admonitionCaution_ukq7x_115 ._admonitionIcon_ukq7x_33{color:var(--icons-icon-warning)}._admonitionWarning_ukq7x_130 ._admonitionBorderLeft_ukq7x_8{background-color:var(--border-border-error-warning)}._admonitionWarning_ukq7x_130 ._admonitionPanel_ukq7x_13{border-color:var(--border-border-warning-medium);background-color:var(--surface-surface-warning)}._admonitionWarning_ukq7x_130 ._admonitionIcon_ukq7x_33{color:var(--icons-icon-error-warning)}._admonitionNeutral_ukq7x_145 ._admonitionPanel_ukq7x_13{border-color:var(--border-border-note-medium)}
|
package/dist/assets/Cart.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._cartIconButton_bxnb6_2{position:relative;border:none;padding:0;margin:0;background-color:transparent;cursor:pointer;color:#000;transition:color .3s ease,transform .3s ease}._cartIconButton_bxnb6_2:hover{color:var(--color-brand-primary-primary-teal-blue)}._count_bxnb6_15{position:absolute;top:0;left:14px;border-radius:50%;width:18px;height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:var(--color-brand-primary-primary-tangerine);color:var(--color-neutrals-neutral-1);font-weight:var(--font-weight-semibold)}._cartContainer_bxnb6_30{background-color:#f9f9f9;height:100vh;width:100%;min-width:320px;max-width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto auto 1fr auto auto;gap:var(--spacing-1);padding:var(--spacing-1)}._headerWrapper_bxnb6_42{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._headerWrapper_bxnb6_42>button{padding:0;margin:0;background-color:transparent;border:none}._header_bxnb6_42{display:flex;flex-direction:column;align-items:flex-start;width:100%}._cartItems_bxnb6_60{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_bxnb6_60 ul{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-1xs)}._cartItem_bxnb6_60{background-color:#fff;border:1px solid var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm)}._cartItemContent_bxnb6_78{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--spacing-spacing-2xs);align-items:start;box-sizing:border-box;position:relative;list-style:none;margin:0;padding:var(--spacing-spacing-2xs);width:100%}._carItemSeparator_bxnb6_90{width:100%;border-bottom:1px solid var(--border-border-primary)}._itemContainer_bxnb6_94{display:grid;gap:var(--spacing-spacing-3xs)}._topRow_bxnb6_98{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:var(--spacing-spacing-4xs)}._itemInfo_bxnb6_105{display:flex;flex-direction:column;align-items:flex-start}._editUnit_bxnb6_110{display:flex;align-items:center;text-align:start;gap:var(--spacing-spacing-3xs);border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;color:var(--text-text-links);word-wrap:break-word;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold)}._purchaseInformation_bxnb6_126{display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-spacing-3xs)}._availabilitySlot_bxnb6_132{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}._itemManagement_bxnb6_141{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}._cartItem_bxnb6_60 p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._itemImage_bxnb6_154{object-fit:contain}._removeItem_bxnb6_157{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;width:min-content;height:min-content}._cartItemAdmonitionsPanel_bxnb6_166{padding:var(--spacing-spacing-2xs);display:grid;gap:var(--spacing-spacing-2xs)}._admonitionsPanelCollapsed_bxnb6_171{padding-block:var(--spacing-spacing-3xs);gap:0}._cartItemAdmonitionsTrigger_bxnb6_176{border:none;background-color:transparent;outline:none;margin:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:space-between}._cartItemAdmonitionHeader_bxnb6_188{display:inline-flex;align-items:center;gap:var(--spacing-spacing-4xs)}._cartItemAdmonitionHeader_bxnb6_188>span{text-align:start}._admonitionsReveal_bxnb6_196{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease-in}._admonitionsRevealExpanded_bxnb6_201{grid-template-rows:1fr}._admonitionsReveal_bxnb6_196>._cartItemAdmonitions_bxnb6_166{overflow:hidden}._admonitionTriggerIconExpanded_bxnb6_207{transform:rotate(180deg)}._admonitionTriggerIcon_bxnb6_207{transition:transform .2s ease-in}._cartItemAdmonitions_bxnb6_166{list-style:none;margin:0;padding:0}._cartItemAdmonitionContent_bxnb6_220{font-size:var(--font-size-xs)}._noItems_bxnb6_230{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_bxnb6_237{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}._checkoutButton_bxnb6_244{width:100%;height:fit-content;display:inline-flex;gap:var(--spacing-spacing-2xs)}
|
|
@@ -4,10 +4,15 @@ export interface SelectOption {
|
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
7
|
+
export interface SelectOptionGroup {
|
|
8
|
+
label: string;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
}
|
|
7
11
|
export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children">, HideAtProps {
|
|
8
12
|
label: string | null;
|
|
9
13
|
placeholder?: string;
|
|
10
|
-
options
|
|
14
|
+
options?: SelectOption[];
|
|
15
|
+
groups?: SelectOptionGroup[];
|
|
11
16
|
error?: string | null;
|
|
12
17
|
}
|
|
13
18
|
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,79 +1,81 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as D, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import F, { useState as V } from "react";
|
|
3
3
|
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { getHideAtStyles as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import '../../assets/Select.css';const
|
|
4
|
+
import { getHideAtStyles as j } from "../HideAt.js";
|
|
5
|
+
import { Icon as p } from "../Icon/Icon.js";
|
|
6
|
+
import '../../assets/Select.css';const I = "_select_kfi8n_1", L = "_icon_kfi8n_29", P = "_selectError_kfi8n_59", R = "_label_kfi8n_63", z = "_labelPlaceholder_kfi8n_78", A = "_labelDisabled_kfi8n_99", B = "_errorMessage_kfi8n_103", l = {
|
|
7
7
|
"select-container": "_select-container_kfi8n_1",
|
|
8
|
-
select:
|
|
9
|
-
icon:
|
|
10
|
-
selectError:
|
|
11
|
-
label:
|
|
12
|
-
labelPlaceholder:
|
|
13
|
-
labelDisabled:
|
|
14
|
-
errorMessage:
|
|
15
|
-
},
|
|
8
|
+
select: I,
|
|
9
|
+
icon: L,
|
|
10
|
+
selectError: P,
|
|
11
|
+
label: R,
|
|
12
|
+
labelPlaceholder: z,
|
|
13
|
+
labelDisabled: A,
|
|
14
|
+
errorMessage: B
|
|
15
|
+
}, C = F.forwardRef(
|
|
16
16
|
({
|
|
17
17
|
label: s,
|
|
18
|
-
placeholder:
|
|
19
|
-
options:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
placeholder: c,
|
|
19
|
+
options: N = [],
|
|
20
|
+
groups: i,
|
|
21
|
+
value: v,
|
|
22
|
+
defaultValue: t,
|
|
23
|
+
hideAt: S,
|
|
24
|
+
className: x,
|
|
25
|
+
error: d,
|
|
25
26
|
onFocus: r,
|
|
26
|
-
onBlur:
|
|
27
|
-
...
|
|
28
|
-
},
|
|
29
|
-
const [
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
(s ||
|
|
27
|
+
onBlur: _,
|
|
28
|
+
...o
|
|
29
|
+
}, y) => {
|
|
30
|
+
const [w, h] = V(!1), E = !!o.disabled, n = v !== void 0, k = n ? String(v ?? "") : void 0, u = !n && t !== void 0 && t !== null ? String(t) : "", b = !!s && (w || (n ? k !== "" : u !== "")), M = !!c && !b, g = s ? "" : c ?? "";
|
|
31
|
+
return /* @__PURE__ */ D("div", { className: f(l["select-container"], j(S)), children: [
|
|
32
|
+
(s || M) && /* @__PURE__ */ a(
|
|
32
33
|
"label",
|
|
33
34
|
{
|
|
34
|
-
htmlFor:
|
|
35
|
+
htmlFor: o.name,
|
|
35
36
|
className: f(
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
b ? l.label : l.labelPlaceholder,
|
|
38
|
+
E ? l.labelDisabled : void 0
|
|
38
39
|
),
|
|
39
|
-
children:
|
|
40
|
+
children: b ? s : c ?? s
|
|
40
41
|
}
|
|
41
42
|
),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ D(
|
|
43
44
|
"select",
|
|
44
45
|
{
|
|
45
|
-
...
|
|
46
|
-
ref:
|
|
47
|
-
id:
|
|
48
|
-
value:
|
|
49
|
-
defaultValue: n ? void 0 :
|
|
50
|
-
className: f(
|
|
51
|
-
onFocus: (
|
|
52
|
-
|
|
46
|
+
...o,
|
|
47
|
+
ref: y,
|
|
48
|
+
id: o.name,
|
|
49
|
+
value: k,
|
|
50
|
+
defaultValue: n ? void 0 : u,
|
|
51
|
+
className: f(l.select, d ? l.selectError : void 0, x),
|
|
52
|
+
onFocus: (e) => {
|
|
53
|
+
h(!0), r == null || r(e);
|
|
53
54
|
},
|
|
54
|
-
onBlur: (
|
|
55
|
-
|
|
55
|
+
onBlur: (e) => {
|
|
56
|
+
h(!1), _ == null || _(e);
|
|
56
57
|
},
|
|
57
58
|
children: [
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
c ? /* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !!s, children: g }) : null,
|
|
60
|
+
N.map((e) => /* @__PURE__ */ a("option", { value: e.value, children: e.label }, e.value)),
|
|
61
|
+
i == null ? void 0 : i.map((e) => /* @__PURE__ */ a("optgroup", { label: e.label, children: e.options.map((m) => /* @__PURE__ */ a("option", { value: m.value, children: m.label }, m.value)) }, e.label))
|
|
60
62
|
]
|
|
61
63
|
}
|
|
62
64
|
),
|
|
63
65
|
/* @__PURE__ */ a(
|
|
64
|
-
|
|
66
|
+
p,
|
|
65
67
|
{
|
|
66
|
-
className:
|
|
68
|
+
className: l.icon,
|
|
67
69
|
iconKey: "fa-solid fa-chevron-down",
|
|
68
70
|
size: "3xs",
|
|
69
71
|
colorToken: "secondary"
|
|
70
72
|
}
|
|
71
73
|
),
|
|
72
|
-
|
|
74
|
+
d ? /* @__PURE__ */ a("div", { className: l.errorMessage, children: d }) : null
|
|
73
75
|
] });
|
|
74
76
|
}
|
|
75
77
|
);
|
|
76
|
-
|
|
78
|
+
C.displayName = "Select";
|
|
77
79
|
export {
|
|
78
|
-
|
|
80
|
+
C as Select
|
|
79
81
|
};
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as s } from "react";
|
|
3
3
|
import { Select as n } from "./Select.js";
|
|
4
|
-
const
|
|
4
|
+
const o = [
|
|
5
5
|
{ value: "US", label: "United States" },
|
|
6
6
|
{ value: "CA", label: "Canada" },
|
|
7
7
|
{ value: "MX", label: "Mexico" }
|
|
8
|
+
], c = [
|
|
9
|
+
{
|
|
10
|
+
label: "North America",
|
|
11
|
+
options: o
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: "Europe",
|
|
15
|
+
options: [
|
|
16
|
+
{ value: "DE", label: "Germany" },
|
|
17
|
+
{ value: "GB", label: "United Kingdom" }
|
|
18
|
+
]
|
|
19
|
+
}
|
|
8
20
|
], S = {
|
|
9
21
|
title: "Case Parts/Atoms/Select",
|
|
10
22
|
component: n,
|
|
@@ -12,34 +24,40 @@ const i = [
|
|
|
12
24
|
name: "country",
|
|
13
25
|
label: "Country",
|
|
14
26
|
placeholder: "Select country",
|
|
15
|
-
options:
|
|
27
|
+
options: o
|
|
16
28
|
},
|
|
17
29
|
parameters: {
|
|
18
30
|
layout: "centered"
|
|
19
31
|
}
|
|
20
32
|
};
|
|
21
33
|
function a(e) {
|
|
22
|
-
const [
|
|
34
|
+
const [u, i] = s(String(e.value ?? ""));
|
|
23
35
|
return /* @__PURE__ */ t("div", { style: { width: 320 }, children: /* @__PURE__ */ t(
|
|
24
36
|
n,
|
|
25
37
|
{
|
|
26
38
|
...e,
|
|
27
|
-
value:
|
|
39
|
+
value: u,
|
|
28
40
|
onChange: (r) => {
|
|
29
41
|
var l;
|
|
30
|
-
|
|
42
|
+
i(r.target.value), (l = e.onChange) == null || l.call(e, r);
|
|
31
43
|
}
|
|
32
44
|
}
|
|
33
45
|
) });
|
|
34
46
|
}
|
|
35
|
-
const
|
|
47
|
+
const g = {
|
|
36
48
|
render: (e) => /* @__PURE__ */ t(a, { ...e })
|
|
37
|
-
},
|
|
49
|
+
}, b = {
|
|
38
50
|
args: {
|
|
39
51
|
value: "US"
|
|
40
52
|
},
|
|
41
53
|
render: (e) => /* @__PURE__ */ t(a, { ...e })
|
|
42
|
-
},
|
|
54
|
+
}, h = {
|
|
55
|
+
args: {
|
|
56
|
+
options: void 0,
|
|
57
|
+
groups: c
|
|
58
|
+
},
|
|
59
|
+
render: (e) => /* @__PURE__ */ t(a, { ...e })
|
|
60
|
+
}, y = {
|
|
43
61
|
args: {
|
|
44
62
|
value: "",
|
|
45
63
|
error: "Country is required"
|
|
@@ -47,8 +65,9 @@ const v = {
|
|
|
47
65
|
render: (e) => /* @__PURE__ */ t(a, { ...e })
|
|
48
66
|
};
|
|
49
67
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
68
|
+
g as Default,
|
|
69
|
+
y as ErrorState,
|
|
70
|
+
h as WithOptionGroups,
|
|
71
|
+
b as WithSelectedValue,
|
|
53
72
|
S as default
|
|
54
73
|
};
|
package/dist/main-client.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type { InputProps } from './atoms/Input/Input';
|
|
|
10
10
|
export { InputEndAdornmentButton } from './atoms/InputEndAdornmentButton/InputEndAdornmentButton';
|
|
11
11
|
export type { InputEndAdornmentButtonProps } from './atoms/InputEndAdornmentButton/InputEndAdornmentButton';
|
|
12
12
|
export { Select } from './atoms/Select/Select';
|
|
13
|
-
export type { SelectProps, SelectOption } from './atoms/Select/Select';
|
|
13
|
+
export type { SelectProps, SelectOption, SelectOptionGroup } from './atoms/Select/Select';
|
|
14
14
|
export { Tooltip } from './atoms/Tooltip/Tooltip';
|
|
15
15
|
export { Popover } from './atoms/Popover/Popover';
|
|
16
16
|
export type { PopoverProps } from './atoms/Popover/Popover';
|
package/dist/main.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type { InputProps } from './atoms/Input/Input';
|
|
|
16
16
|
export { InputEndAdornmentButton } from './atoms/InputEndAdornmentButton/InputEndAdornmentButton';
|
|
17
17
|
export type { InputEndAdornmentButtonProps } from './atoms/InputEndAdornmentButton/InputEndAdornmentButton';
|
|
18
18
|
export { Select } from './atoms/Select/Select';
|
|
19
|
-
export type { SelectProps } from './atoms/Select/Select';
|
|
19
|
+
export type { SelectProps, SelectOption, SelectOptionGroup } from './atoms/Select/Select';
|
|
20
20
|
export { Account } from './molecules/Account/Account';
|
|
21
21
|
export type { AccountProps } from './molecules/Account/Account';
|
|
22
22
|
export { Avatar } from './molecules/Avatar/Avatar';
|
|
@@ -3,8 +3,9 @@ export type AdmonitionVariant = "note" | "tip" | "attention" | "caution" | "warn
|
|
|
3
3
|
export type AdmonitionProps = ComponentPropsWithoutRef<"aside"> & {
|
|
4
4
|
admonitionType: string;
|
|
5
5
|
variant: AdmonitionVariant | string;
|
|
6
|
+
size?: "sm" | "md";
|
|
6
7
|
icon?: string | false;
|
|
7
8
|
title?: string;
|
|
8
9
|
children?: ReactNode;
|
|
9
10
|
};
|
|
10
|
-
export declare function Admonition({ admonitionType, variant, icon, title, className, children, ...props }: AdmonitionProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function Admonition({ admonitionType, variant, size, icon, title, className, children, ...props }: AdmonitionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { c } from "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import { ADMONITION_DEFAULT_ICONS as
|
|
6
|
-
import '../../assets/Admonition.css';const I = "
|
|
7
|
-
admonition:
|
|
8
|
-
admonitionBorderLeft:
|
|
9
|
-
admonitionPanel:
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as x } from "../../atoms/Icon/Icon.js";
|
|
3
|
+
import { Text as p } from "../../atoms/Text/Text.js";
|
|
4
|
+
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { ADMONITION_DEFAULT_ICONS as k, ADMONITION_ICON_COLOR_TOKENS as C } from "./admonitionTokens.js";
|
|
6
|
+
import '../../assets/Admonition.css';const q = "_admonition_ukq7x_1", I = "_admonitionBorderLeft_ukq7x_8", T = "_admonitionPanel_ukq7x_13", f = "_admonitionSmall_ukq7x_25", h = "_admonitionWithIcon_ukq7x_29", A = "_admonitionIcon_ukq7x_33", g = "_admonitionContent_ukq7x_37", B = "_admonitionHeader_ukq7x_43", L = "_admonitionTitle_ukq7x_49", O = "_admonitionBody_ukq7x_60", W = "_admonitionNote_ukq7x_79", S = "_admonitionTip_ukq7x_85", P = "_admonitionAttention_ukq7x_100", y = "_admonitionCaution_ukq7x_115", E = "_admonitionWarning_ukq7x_130", H = "_admonitionNeutral_ukq7x_145", n = {
|
|
7
|
+
admonition: q,
|
|
8
|
+
admonitionBorderLeft: I,
|
|
9
|
+
admonitionPanel: T,
|
|
10
|
+
admonitionSmall: f,
|
|
10
11
|
admonitionWithIcon: h,
|
|
11
12
|
admonitionIcon: A,
|
|
12
13
|
admonitionContent: g,
|
|
@@ -14,7 +15,7 @@ import '../../assets/Admonition.css';const I = "_admonition_7cwow_1", T = "_admo
|
|
|
14
15
|
admonitionTitle: L,
|
|
15
16
|
admonitionBody: O,
|
|
16
17
|
admonitionNote: W,
|
|
17
|
-
admonitionTip:
|
|
18
|
+
admonitionTip: S,
|
|
18
19
|
admonitionAttention: P,
|
|
19
20
|
admonitionCaution: y,
|
|
20
21
|
admonitionWarning: E,
|
|
@@ -25,39 +26,40 @@ import '../../assets/Admonition.css';const I = "_admonition_7cwow_1", T = "_admo
|
|
|
25
26
|
attention: "Attention",
|
|
26
27
|
caution: "Caution",
|
|
27
28
|
warning: "Warning"
|
|
28
|
-
},
|
|
29
|
-
const
|
|
30
|
-
return
|
|
31
|
-
}, D = (
|
|
32
|
-
function
|
|
33
|
-
admonitionType:
|
|
34
|
-
variant:
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
}, w = (o) => {
|
|
30
|
+
const i = o.trim().replace(/[_-]+/g, " ");
|
|
31
|
+
return i ? i.split(/\s+/).map((a) => `${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()}`).join(" ") : "Admonition";
|
|
32
|
+
}, D = (o) => o === "note" ? n.admonitionNote : o === "tip" ? n.admonitionTip : o === "attention" ? n.admonitionAttention : o === "caution" ? n.admonitionCaution : o === "warning" ? n.admonitionWarning : n.admonitionNeutral;
|
|
33
|
+
function v({
|
|
34
|
+
admonitionType: o,
|
|
35
|
+
variant: i,
|
|
36
|
+
size: a = "md",
|
|
37
|
+
icon: d,
|
|
38
|
+
title: _,
|
|
37
39
|
className: r,
|
|
38
|
-
children:
|
|
39
|
-
...
|
|
40
|
+
children: s,
|
|
41
|
+
...c
|
|
40
42
|
}) {
|
|
41
|
-
const
|
|
42
|
-
return /* @__PURE__ */ e("aside", { ...
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */ e("div", { className:
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
const u = _ ?? j[o] ?? w(o), N = D(i), m = d === !1 ? void 0 : (d == null ? void 0 : d.trim()) || k[i];
|
|
44
|
+
return /* @__PURE__ */ e("aside", { ...c, className: l(n.admonition, N, a === "sm" && n.admonitionSmall, r), "data-admonition": o, children: [
|
|
45
|
+
/* @__PURE__ */ t("span", { className: n.admonitionBorderLeft, "aria-hidden": "true" }),
|
|
46
|
+
/* @__PURE__ */ e("div", { className: l(n.admonitionPanel, m && n.admonitionWithIcon), children: [
|
|
47
|
+
m ? /* @__PURE__ */ t("span", { className: n.admonitionIcon, "aria-hidden": "true", children: /* @__PURE__ */ t(
|
|
48
|
+
x,
|
|
47
49
|
{
|
|
48
|
-
iconKey:
|
|
50
|
+
iconKey: m,
|
|
49
51
|
size: "md",
|
|
50
|
-
colorToken: C[
|
|
52
|
+
colorToken: C[i] ?? "default"
|
|
51
53
|
},
|
|
52
|
-
|
|
54
|
+
m
|
|
53
55
|
) }) : null,
|
|
54
|
-
/* @__PURE__ */ e("div", { className:
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
56
|
+
/* @__PURE__ */ e("div", { className: n.admonitionContent, children: [
|
|
57
|
+
/* @__PURE__ */ t("div", { className: n.admonitionHeader, children: /* @__PURE__ */ t(p, { size: a, weight: "semibold", className: n.admonitionTitle, children: u }) }),
|
|
58
|
+
s != null ? /* @__PURE__ */ t("div", { className: n.admonitionBody, children: s }) : null
|
|
57
59
|
] })
|
|
58
60
|
] })
|
|
59
61
|
] });
|
|
60
62
|
}
|
|
61
63
|
export {
|
|
62
|
-
|
|
64
|
+
v as Admonition
|
|
63
65
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { AvailabilityId } from '../Availability/Availability';
|
|
3
|
+
import { MarkdownAdmonition } from '../Markdown/remarkAdmonition';
|
|
3
4
|
export interface CartItem {
|
|
4
5
|
id: string | number;
|
|
5
6
|
itemId: string | undefined;
|
|
@@ -16,6 +17,7 @@ export interface CartItem {
|
|
|
16
17
|
availability?: string;
|
|
17
18
|
availabilityId?: AvailabilityId;
|
|
18
19
|
custom?: string;
|
|
20
|
+
admonitions?: MarkdownAdmonition[];
|
|
19
21
|
[key: string]: any;
|
|
20
22
|
}
|
|
21
23
|
export interface ShoppingCart {
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { Icon as g } from "../../atoms/Icon/Icon.js";
|
|
4
4
|
import { Text as p } from "../../atoms/Text/Text.js";
|
|
5
|
-
import { s as m } from "../../Cart.module-
|
|
5
|
+
import { s as m } from "../../Cart.module-BCmEDBeq.js";
|
|
6
6
|
const S = l.forwardRef(function({
|
|
7
7
|
cart: i,
|
|
8
8
|
open: t = !1,
|
|
@@ -26,5 +26,9 @@ export interface CartPartProps extends Omit<React.LiHTMLAttributes<HTMLLIElement
|
|
|
26
26
|
onUnitEditClick?: () => void;
|
|
27
27
|
requiresUnitDetails?: boolean;
|
|
28
28
|
admonitions?: MarkdownAdmonition[];
|
|
29
|
+
AdmonitionContent?: React.ComponentType<{
|
|
30
|
+
admonition: MarkdownAdmonition;
|
|
31
|
+
className?: string;
|
|
32
|
+
}>;
|
|
29
33
|
}
|
|
30
|
-
export declare function CartPart({ imageUrl, imageAlt, title, titleHref, onTitleNavigate, partNumber, unit, make, model, serial, custom, availabilityId, availability, inventory, source, priceLabel, price, quantity, maxQuantity, onQuantityChange, onRemove, onUnitEditClick, requiresUnitDetails, className, admonitions, ...otherProps }: CartPartProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare function CartPart({ imageUrl, imageAlt, title, titleHref, onTitleNavigate, partNumber, unit, make, model, serial, custom, availabilityId, availability, inventory, source, priceLabel, price, quantity, maxQuantity, onQuantityChange, onRemove, onUnitEditClick, requiresUnitDetails, className, admonitions, AdmonitionContent, ...otherProps }: CartPartProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,127 +1,128 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Link as
|
|
1
|
+
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import J, { useState as Q, useId as V } from "react";
|
|
3
|
+
import { Link as W } from "../../atoms/Link/Link.js";
|
|
4
4
|
import { Text as t } from "../../atoms/Text/Text.js";
|
|
5
|
-
import { Image as
|
|
6
|
-
import { Availability as
|
|
7
|
-
import { Pricing as
|
|
8
|
-
import { QuantityInput as
|
|
9
|
-
import { Icon as
|
|
10
|
-
import { Pill as
|
|
11
|
-
import { Tooltip as
|
|
12
|
-
import { c as
|
|
13
|
-
import { s as
|
|
14
|
-
import { ADMONITION_ICON_COLOR_TOKENS as
|
|
15
|
-
import { Admonition as
|
|
16
|
-
function
|
|
17
|
-
imageUrl:
|
|
18
|
-
imageAlt:
|
|
19
|
-
title:
|
|
5
|
+
import { Image as X } from "../../atoms/Image/Image.js";
|
|
6
|
+
import { Availability as Y } from "../Availability/Availability.js";
|
|
7
|
+
import { Pricing as Z } from "../Pricing/Pricing.js";
|
|
8
|
+
import { QuantityInput as $ } from "../QuantityInput/QuantityInput.js";
|
|
9
|
+
import { Icon as m } from "../../atoms/Icon/Icon.js";
|
|
10
|
+
import { Pill as ee } from "../../atoms/Pill/Pill.js";
|
|
11
|
+
import { Tooltip as re } from "../../atoms/Tooltip/Tooltip.js";
|
|
12
|
+
import { c as n } from "../../clsx-OuTLNxxd.js";
|
|
13
|
+
import { s as r } from "../../Cart.module-BCmEDBeq.js";
|
|
14
|
+
import { ADMONITION_ICON_COLOR_TOKENS as le, ADMONITION_DEFAULT_ICONS as ae } from "../Admonition/admonitionTokens.js";
|
|
15
|
+
import { Admonition as ce } from "../Admonition/Admonition.js";
|
|
16
|
+
function be({
|
|
17
|
+
imageUrl: O,
|
|
18
|
+
imageAlt: S = "Product image",
|
|
19
|
+
title: d,
|
|
20
20
|
titleHref: u,
|
|
21
|
-
onTitleNavigate:
|
|
22
|
-
partNumber:
|
|
23
|
-
unit:
|
|
24
|
-
make:
|
|
25
|
-
model:
|
|
26
|
-
serial:
|
|
21
|
+
onTitleNavigate: f,
|
|
22
|
+
partNumber: I,
|
|
23
|
+
unit: _,
|
|
24
|
+
make: E,
|
|
25
|
+
model: M,
|
|
26
|
+
serial: R,
|
|
27
27
|
custom: w,
|
|
28
|
-
availabilityId:
|
|
29
|
-
availability:
|
|
30
|
-
inventory:
|
|
31
|
-
source:
|
|
32
|
-
priceLabel:
|
|
33
|
-
price:
|
|
34
|
-
quantity:
|
|
35
|
-
maxQuantity:
|
|
28
|
+
availabilityId: L,
|
|
29
|
+
availability: g,
|
|
30
|
+
inventory: D,
|
|
31
|
+
source: i = "none",
|
|
32
|
+
priceLabel: j = "List Price",
|
|
33
|
+
price: N,
|
|
34
|
+
quantity: y,
|
|
35
|
+
maxQuantity: h,
|
|
36
36
|
onQuantityChange: b,
|
|
37
|
-
onRemove:
|
|
38
|
-
onUnitEditClick:
|
|
39
|
-
requiresUnitDetails:
|
|
40
|
-
className:
|
|
41
|
-
admonitions:
|
|
42
|
-
|
|
37
|
+
onRemove: T,
|
|
38
|
+
onUnitEditClick: o,
|
|
39
|
+
requiresUnitDetails: F = !1,
|
|
40
|
+
className: q,
|
|
41
|
+
admonitions: e,
|
|
42
|
+
AdmonitionContent: k,
|
|
43
|
+
...B
|
|
43
44
|
}) {
|
|
44
|
-
var
|
|
45
|
-
const [
|
|
46
|
-
function
|
|
47
|
-
a.defaultPrevented || a.button === 0 && (a.metaKey || a.altKey || a.ctrlKey || a.shiftKey || a.currentTarget.target && a.currentTarget.target !== "_self" ||
|
|
45
|
+
var v, x, C, A, K, P;
|
|
46
|
+
const [s, U] = Q(!1), z = V();
|
|
47
|
+
function G(a) {
|
|
48
|
+
a.defaultPrevented || a.button === 0 && (a.metaKey || a.altKey || a.ctrlKey || a.shiftKey || a.currentTarget.target && a.currentTarget.target !== "_self" || f == null || f(a));
|
|
48
49
|
}
|
|
49
|
-
const p =
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
50
|
+
const p = _ || [E, M, R].filter(Boolean).join(" / "), H = typeof h == "number" && Number.isFinite(h) ? h : void 0;
|
|
51
|
+
return /* @__PURE__ */ c("li", { className: n(r.cartItem, q), ...B, children: [
|
|
52
|
+
/* @__PURE__ */ c("div", { className: r.cartItemContent, children: [
|
|
53
|
+
/* @__PURE__ */ l(X, { height: 50, width: 50, src: O || "", alt: S, className: r.itemImage }),
|
|
54
|
+
/* @__PURE__ */ c("div", { className: r.itemContainer, children: [
|
|
55
|
+
/* @__PURE__ */ c("div", { className: r.topRow, children: [
|
|
56
|
+
/* @__PURE__ */ c("div", { className: r.itemInfo, children: [
|
|
57
|
+
/* @__PURE__ */ l(t, { size: "sm", weight: "semibold", children: u ? /* @__PURE__ */ l(W, { href: u, onClick: G, children: d }) : d }),
|
|
58
|
+
I != null && /* @__PURE__ */ c(t, { size: "sm", children: [
|
|
59
|
+
/* @__PURE__ */ l(t, { colorToken: "quaternary", size: "xs", children: w ? "Specs " : "Part # " }),
|
|
60
|
+
I
|
|
60
61
|
] }),
|
|
61
|
-
p &&
|
|
62
|
-
|
|
62
|
+
p && o && (F ? /* @__PURE__ */ l(
|
|
63
|
+
re,
|
|
63
64
|
{
|
|
64
|
-
trigger: /* @__PURE__ */
|
|
65
|
+
trigger: /* @__PURE__ */ c(
|
|
65
66
|
"button",
|
|
66
67
|
{
|
|
67
|
-
onClick:
|
|
68
|
-
className:
|
|
68
|
+
onClick: o,
|
|
69
|
+
className: r.editUnit,
|
|
69
70
|
"aria-label": "Edit make, model, and serial",
|
|
70
71
|
type: "button",
|
|
71
72
|
children: [
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ l(m, { iconKey: "fa-light fa-file-pen", size: "sm" }),
|
|
73
74
|
p
|
|
74
75
|
]
|
|
75
76
|
}
|
|
76
77
|
),
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ l(t, { size: "sm", children: "Requires Make, Model, and Serial" })
|
|
78
79
|
}
|
|
79
|
-
) : /* @__PURE__ */
|
|
80
|
+
) : /* @__PURE__ */ c(
|
|
80
81
|
"button",
|
|
81
82
|
{
|
|
82
|
-
onClick:
|
|
83
|
-
className:
|
|
83
|
+
onClick: o,
|
|
84
|
+
className: r.editUnit,
|
|
84
85
|
"aria-label": "Edit make, model, and serial",
|
|
85
86
|
type: "button",
|
|
86
87
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ l(m, { iconKey: "fa-light fa-file-pen", size: "sm" }),
|
|
89
|
+
/* @__PURE__ */ l(t, { size: "sm", children: p })
|
|
89
90
|
]
|
|
90
91
|
}
|
|
91
92
|
))
|
|
92
93
|
] }),
|
|
93
|
-
|
|
94
|
+
T && /* @__PURE__ */ l("button", { onClick: T, className: r.removeItem, "aria-label": "Remove item", type: "button", children: /* @__PURE__ */ l(m, { iconKey: "fa-regular fa-trash", size: "sm" }) })
|
|
94
95
|
] }),
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
/* @__PURE__ */ c("div", { className: r.itemManagement, children: [
|
|
97
|
+
/* @__PURE__ */ c("div", { className: r.availabilitySlot, children: [
|
|
98
|
+
g && /* @__PURE__ */ l(
|
|
99
|
+
Y,
|
|
99
100
|
{
|
|
100
|
-
availId:
|
|
101
|
-
availDescription:
|
|
101
|
+
availId: L || "not-found",
|
|
102
|
+
availDescription: g,
|
|
102
103
|
enableTooltip: !0,
|
|
103
|
-
inventory:
|
|
104
|
+
inventory: D
|
|
104
105
|
}
|
|
105
106
|
),
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
i !== "none" && /* @__PURE__ */ l(
|
|
108
|
+
ee,
|
|
108
109
|
{
|
|
109
|
-
colorToken:
|
|
110
|
+
colorToken: i === "cart" ? "neutral" : "success",
|
|
110
111
|
uppercase: !0,
|
|
111
|
-
iconColorToken:
|
|
112
|
-
iconKey:
|
|
113
|
-
children:
|
|
112
|
+
iconColorToken: i === "cart" ? "default" : "success",
|
|
113
|
+
iconKey: i === "cart" ? "fa-light fa-cart-shopping" : "fa-light fa-file-lines",
|
|
114
|
+
children: i === "cart" ? "Cart" : "Quote"
|
|
114
115
|
}
|
|
115
116
|
)
|
|
116
117
|
] }),
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
typeof
|
|
120
|
-
|
|
118
|
+
/* @__PURE__ */ c("div", { className: r.purchaseInformation, children: [
|
|
119
|
+
/* @__PURE__ */ l("div", { className: r.priceSlot, children: N && /* @__PURE__ */ l(Z, { pricingLabel: j, price: N }) }),
|
|
120
|
+
typeof y == "number" && b && /* @__PURE__ */ l(
|
|
121
|
+
$,
|
|
121
122
|
{
|
|
122
|
-
quantity:
|
|
123
|
+
quantity: y,
|
|
123
124
|
onQuantityChange: b,
|
|
124
|
-
max:
|
|
125
|
+
max: H,
|
|
125
126
|
size: "sm"
|
|
126
127
|
}
|
|
127
128
|
)
|
|
@@ -129,50 +130,55 @@ function he({
|
|
|
129
130
|
] })
|
|
130
131
|
] })
|
|
131
132
|
] }),
|
|
132
|
-
((
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
133
|
+
((e == null ? void 0 : e.length) ?? 0) > 0 && /* @__PURE__ */ c(J.Fragment, { children: [
|
|
134
|
+
/* @__PURE__ */ l("div", { className: r.carItemSeparator }),
|
|
135
|
+
/* @__PURE__ */ c("div", { className: n(r.cartItemAdmonitionsPanel, !s && r.admonitionsPanelCollapsed), children: [
|
|
136
|
+
/* @__PURE__ */ c(
|
|
136
137
|
"button",
|
|
137
138
|
{
|
|
138
|
-
className:
|
|
139
|
-
onClick: () =>
|
|
139
|
+
className: r.cartItemAdmonitionsTrigger,
|
|
140
|
+
onClick: () => U(!s),
|
|
140
141
|
type: "button",
|
|
141
|
-
"aria-expanded":
|
|
142
|
-
"aria-controls":
|
|
142
|
+
"aria-expanded": s,
|
|
143
|
+
"aria-controls": z,
|
|
143
144
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
|
|
145
|
+
/* @__PURE__ */ c("div", { className: r.cartItemAdmonitionHeader, children: [
|
|
146
|
+
/* @__PURE__ */ l(
|
|
147
|
+
m,
|
|
147
148
|
{
|
|
148
|
-
iconKey: ((
|
|
149
|
+
iconKey: ((x = (v = e == null ? void 0 : e[0]) == null ? void 0 : v.icon) == null ? void 0 : x.trim()) || ae[(C = e == null ? void 0 : e[0]) == null ? void 0 : C.variant],
|
|
149
150
|
size: "sm",
|
|
150
|
-
colorToken:
|
|
151
|
+
colorToken: le[((A = e == null ? void 0 : e[0]) == null ? void 0 : A.variant) ?? "unknown"] ?? "default"
|
|
151
152
|
}
|
|
152
153
|
),
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
/* @__PURE__ */ c(t, { size: "sm", children: [
|
|
155
|
+
((K = e == null ? void 0 : e[0]) == null ? void 0 : K.title) ?? ((P = e == null ? void 0 : e[0]) == null ? void 0 : P.variant) ?? "Item",
|
|
156
|
+
/* @__PURE__ */ c(t, { size: "xs", colorToken: "quaternary", children: [
|
|
157
|
+
" · ",
|
|
158
|
+
e == null ? void 0 : e.length,
|
|
159
|
+
" item ",
|
|
160
|
+
(e == null ? void 0 : e.length) === 1 ? "note" : "notes"
|
|
161
|
+
] })
|
|
157
162
|
] })
|
|
158
163
|
] }),
|
|
159
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ l(m, { className: n(r.admonitionTriggerIcon, s ? r.admonitionTriggerIconExpanded : r.admonitionTriggerIconCollapsed), iconKey: "fa-regular fa-chevron-down", size: "xs", colorToken: "secondary" })
|
|
160
165
|
]
|
|
161
166
|
}
|
|
162
167
|
),
|
|
163
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ l(
|
|
164
169
|
"div",
|
|
165
170
|
{
|
|
166
|
-
className:
|
|
167
|
-
id:
|
|
168
|
-
children: /* @__PURE__ */
|
|
169
|
-
|
|
171
|
+
className: n(r.admonitionsReveal, s && r.admonitionsRevealExpanded),
|
|
172
|
+
id: z,
|
|
173
|
+
children: /* @__PURE__ */ l("ol", { className: r.cartItemAdmonitions, children: e == null ? void 0 : e.map((a) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
|
|
174
|
+
ce,
|
|
170
175
|
{
|
|
171
176
|
admonitionType: a.type,
|
|
172
177
|
variant: a.type,
|
|
178
|
+
size: "sm",
|
|
173
179
|
icon: a.icon,
|
|
174
180
|
title: a.title,
|
|
175
|
-
children: a.content
|
|
181
|
+
children: k ? /* @__PURE__ */ l(k, { admonition: a, className: r.cartItemAdmonitionContent }) : a.content
|
|
176
182
|
}
|
|
177
183
|
) }, a.variant)) })
|
|
178
184
|
}
|
|
@@ -182,5 +188,5 @@ function he({
|
|
|
182
188
|
] });
|
|
183
189
|
}
|
|
184
190
|
export {
|
|
185
|
-
|
|
191
|
+
be as CartPart
|
|
186
192
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CartItem, ShoppingCart } from './Cart';
|
|
2
|
+
import { MarkdownAdmonition } from '../Markdown/remarkAdmonition';
|
|
2
3
|
export interface CartSlideInPanelProps {
|
|
3
4
|
open: boolean;
|
|
4
5
|
onClose: () => void;
|
|
@@ -11,5 +12,9 @@ export interface CartSlideInPanelProps {
|
|
|
11
12
|
onItemNavigate?: (_item: CartItem) => void;
|
|
12
13
|
requiresUnitDetails?: boolean;
|
|
13
14
|
onCheckout: () => void;
|
|
15
|
+
AdmonitionContent?: React.ComponentType<{
|
|
16
|
+
admonition: MarkdownAdmonition;
|
|
17
|
+
className?: string;
|
|
18
|
+
}>;
|
|
14
19
|
}
|
|
15
|
-
export declare function CartSlideInPanel({ open, onClose, cart, subtotal, itemPriceLabel, onItemQtyChange, onItemDelete, onUnitEditClick, onItemNavigate, requiresUnitDetails, onCheckout }: CartSlideInPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function CartSlideInPanel({ open, onClose, cart, subtotal, itemPriceLabel, onItemQtyChange, onItemDelete, onUnitEditClick, onItemNavigate, requiresUnitDetails, onCheckout, AdmonitionContent }: CartSlideInPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { jsx as i, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { SlideInPanel as
|
|
2
|
+
import { SlideInPanel as x } from "../../atoms/SlideInPanel/SlideInPanel.js";
|
|
3
3
|
import { Text as l } from "../../atoms/Text/Text.js";
|
|
4
4
|
import { Button as h } from "../../atoms/Button/Button.js";
|
|
5
5
|
import { Icon as u } from "../../atoms/Icon/Icon.js";
|
|
6
|
-
import { CartPart as
|
|
7
|
-
import { s as t } from "../../Cart.module-
|
|
8
|
-
function
|
|
6
|
+
import { CartPart as z } from "./CartPart.js";
|
|
7
|
+
import { s as t } from "../../Cart.module-BCmEDBeq.js";
|
|
8
|
+
function q({
|
|
9
9
|
open: p,
|
|
10
|
-
onClose:
|
|
10
|
+
onClose: m,
|
|
11
11
|
cart: a,
|
|
12
12
|
subtotal: s,
|
|
13
13
|
itemPriceLabel: y,
|
|
14
14
|
onItemQtyChange: f,
|
|
15
15
|
onItemDelete: g,
|
|
16
|
-
onUnitEditClick:
|
|
17
|
-
onItemNavigate:
|
|
16
|
+
onUnitEditClick: o,
|
|
17
|
+
onItemNavigate: n,
|
|
18
18
|
requiresUnitDetails: b = !1,
|
|
19
|
-
onCheckout:
|
|
19
|
+
onCheckout: d,
|
|
20
|
+
AdmonitionContent: k
|
|
20
21
|
}) {
|
|
21
22
|
var c;
|
|
22
23
|
return a = a || { items: [] }, /* @__PURE__ */ i(
|
|
23
|
-
|
|
24
|
+
x,
|
|
24
25
|
{
|
|
25
26
|
side: "right",
|
|
26
27
|
open: p,
|
|
27
|
-
onClose:
|
|
28
|
+
onClose: m,
|
|
28
29
|
ariaLabel: "Shopping Cart",
|
|
29
30
|
children: /* @__PURE__ */ r("div", { id: "cart-panel", className: t.cartContainer, children: [
|
|
30
31
|
/* @__PURE__ */ r("div", { className: t.headerWrapper, children: [
|
|
@@ -35,13 +36,13 @@ function S({
|
|
|
35
36
|
" items in your cart"
|
|
36
37
|
] })
|
|
37
38
|
] }),
|
|
38
|
-
/* @__PURE__ */ i("button", { onClick:
|
|
39
|
+
/* @__PURE__ */ i("button", { onClick: m, children: /* @__PURE__ */ i(u, { iconKey: "fa-regular fa-xmark", size: "md" }) })
|
|
39
40
|
] }),
|
|
40
41
|
/* @__PURE__ */ r(
|
|
41
42
|
h,
|
|
42
43
|
{
|
|
43
44
|
disabled: a.items.length === 0,
|
|
44
|
-
onClick:
|
|
45
|
+
onClick: d,
|
|
45
46
|
variant: "secondary",
|
|
46
47
|
size: "md",
|
|
47
48
|
className: t.checkoutButton,
|
|
@@ -52,13 +53,13 @@ function S({
|
|
|
52
53
|
}
|
|
53
54
|
),
|
|
54
55
|
/* @__PURE__ */ i("div", { className: t.cartItems, children: a.items.length > 0 ? /* @__PURE__ */ i("ul", { children: a.items.map((e) => /* @__PURE__ */ i(
|
|
55
|
-
|
|
56
|
+
z,
|
|
56
57
|
{
|
|
57
58
|
imageUrl: e.imageUrl,
|
|
58
59
|
imageAlt: `${e.itemId} product image`,
|
|
59
60
|
title: e.description,
|
|
60
61
|
titleHref: e.itemHref || `/part/${e.itemId}`,
|
|
61
|
-
onTitleNavigate: () =>
|
|
62
|
+
onTitleNavigate: () => n == null ? void 0 : n(e),
|
|
62
63
|
partNumber: e.itemId,
|
|
63
64
|
unit: e.unit,
|
|
64
65
|
make: e.make,
|
|
@@ -71,10 +72,12 @@ function S({
|
|
|
71
72
|
priceLabel: y || "List Price",
|
|
72
73
|
quantity: e.quantity,
|
|
73
74
|
maxQuantity: e.maxQuantity,
|
|
74
|
-
onQuantityChange: (
|
|
75
|
+
onQuantityChange: (v) => f(e, v),
|
|
75
76
|
onRemove: () => g(e),
|
|
76
|
-
onUnitEditClick:
|
|
77
|
-
requiresUnitDetails: b
|
|
77
|
+
onUnitEditClick: o ? () => o(e) : void 0,
|
|
78
|
+
requiresUnitDetails: b,
|
|
79
|
+
admonitions: e.admonitions,
|
|
80
|
+
AdmonitionContent: k
|
|
78
81
|
},
|
|
79
82
|
`${e.id}-${e.make ?? ""}-${e.model ?? ""}-${e.serial ?? ""}`
|
|
80
83
|
)) }) : /* @__PURE__ */ i("div", { className: t.noItems, children: /* @__PURE__ */ i(l, { as: "p", size: "sm", children: "No items in your cart yet" }) }) }),
|
|
@@ -86,7 +89,7 @@ function S({
|
|
|
86
89
|
h,
|
|
87
90
|
{
|
|
88
91
|
disabled: a.items.length === 0,
|
|
89
|
-
onClick:
|
|
92
|
+
onClick: d,
|
|
90
93
|
variant: "cta-primary",
|
|
91
94
|
size: "md",
|
|
92
95
|
className: t.checkoutButton,
|
|
@@ -98,5 +101,5 @@ function S({
|
|
|
98
101
|
);
|
|
99
102
|
}
|
|
100
103
|
export {
|
|
101
|
-
|
|
104
|
+
q as CartSlideInPanel
|
|
102
105
|
};
|
|
@@ -9,5 +9,6 @@ export type MarkdownProps = {
|
|
|
9
9
|
validate?: ValidateToken;
|
|
10
10
|
batchValidate?: BatchValidateTokens;
|
|
11
11
|
debug?: boolean;
|
|
12
|
+
firstLineHeader?: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare function Markdown({ children, className, components, partUrl, relativePathUrl, validate, batchValidate, debug, }: MarkdownProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export declare function Markdown({ children, className, components, partUrl, relativePathUrl, validate, batchValidate, debug, firstLineHeader, }: MarkdownProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -8693,26 +8693,28 @@ function Lf({
|
|
|
8693
8693
|
relativePathUrl: i,
|
|
8694
8694
|
validate: o,
|
|
8695
8695
|
batchValidate: l,
|
|
8696
|
-
debug: a = !1
|
|
8696
|
+
debug: a = !1,
|
|
8697
|
+
firstLineHeader: u = !0
|
|
8697
8698
|
}) {
|
|
8698
|
-
const
|
|
8699
|
-
|
|
8699
|
+
const s = e ?? "", { output: f } = Pi(
|
|
8700
|
+
s,
|
|
8700
8701
|
r,
|
|
8701
8702
|
i,
|
|
8702
8703
|
o,
|
|
8703
8704
|
a,
|
|
8704
|
-
l
|
|
8705
|
+
l,
|
|
8706
|
+
u
|
|
8705
8707
|
);
|
|
8706
|
-
if (!
|
|
8707
|
-
const
|
|
8708
|
-
a: ({ node:
|
|
8709
|
-
} : {},
|
|
8710
|
-
return /* @__PURE__ */ De("div", { className:
|
|
8708
|
+
if (!s) return null;
|
|
8709
|
+
const c = r || i ? {
|
|
8710
|
+
a: ({ node: d, ...x }) => /* @__PURE__ */ De("a", { ...x, target: "_blank", rel: "noopener noreferrer" })
|
|
8711
|
+
} : {}, p = t ? `${or.markdown} ${t}` : or.markdown, h = { ...If, ...c, ...n };
|
|
8712
|
+
return /* @__PURE__ */ De("div", { className: p, children: /* @__PURE__ */ De(
|
|
8711
8713
|
as,
|
|
8712
8714
|
{
|
|
8713
8715
|
remarkPlugins: [bf, Cf, Ii],
|
|
8714
|
-
components:
|
|
8715
|
-
children:
|
|
8716
|
+
components: h,
|
|
8717
|
+
children: f
|
|
8716
8718
|
}
|
|
8717
8719
|
) });
|
|
8718
8720
|
}
|
|
@@ -10,4 +10,4 @@ export type PreprocessedMarkdownResult = {
|
|
|
10
10
|
* Validates bare bracketed part tokens and rewrites relative markdown links using
|
|
11
11
|
* the configured URL targets.
|
|
12
12
|
*/
|
|
13
|
-
export declare function usePreprocessedMarkdown(input: string | null | undefined, partUrl?: LinkTarget, relativePathUrl?: LinkTarget, validate?: ValidateToken, debug?: boolean, batchValidate?: BatchValidateTokens): PreprocessedMarkdownResult;
|
|
13
|
+
export declare function usePreprocessedMarkdown(input: string | null | undefined, partUrl?: LinkTarget, relativePathUrl?: LinkTarget, validate?: ValidateToken, debug?: boolean, batchValidate?: BatchValidateTokens, firstLineHeader?: boolean): PreprocessedMarkdownResult;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
const
|
|
1
|
+
import { useState as q, useRef as O, useEffect as v, useMemo as L } from "react";
|
|
2
|
+
const b = /\[(.+?)\](?!\()/g, C = /\[([^\]]+?)\]\((\/[^)\s]*)\)/g, j = (e, n) => typeof e == "function" ? e(n) : e, k = (e, n) => typeof e == "function" ? e(n) : `${e}${n}`, E = (e, n) => {
|
|
3
3
|
const a = e.lastIndexOf(`
|
|
4
4
|
`, Math.max(0, n - 1)) + 1, l = e.indexOf(`
|
|
5
5
|
`, n), w = l === -1 ? e.length : l;
|
|
6
6
|
return e.slice(a, w).trimStart().startsWith(":::");
|
|
7
7
|
};
|
|
8
|
-
function
|
|
9
|
-
const [
|
|
8
|
+
function B(e, n, a, l, w = !1, y, g = !0) {
|
|
9
|
+
const [D, S] = q(e ?? ""), [G, m] = q(!1), o = O(/* @__PURE__ */ new Map()), M = O(l), T = O(
|
|
10
10
|
y
|
|
11
11
|
);
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
v(() => {
|
|
13
|
+
M.current = l, T.current = y;
|
|
14
14
|
}, [l, y]);
|
|
15
|
-
const d =
|
|
15
|
+
const d = L(() => b, []), h = L(() => {
|
|
16
16
|
if (!e || !n) return [];
|
|
17
17
|
const f = Array.from(e.matchAll(d)).filter(
|
|
18
|
-
(
|
|
19
|
-
).map((
|
|
18
|
+
(i) => typeof i.index == "number" ? !E(e, i.index) : !0
|
|
19
|
+
).map((i) => i[1]);
|
|
20
20
|
return Array.from(new Set(f));
|
|
21
|
-
}, [e, d, n]),
|
|
21
|
+
}, [e, d, n]), _ = L(() => {
|
|
22
22
|
if (!e || !a) return [];
|
|
23
|
-
const f = Array.from(e.matchAll(
|
|
23
|
+
const f = Array.from(e.matchAll(C)).filter(
|
|
24
24
|
(t) => typeof t.index == "number" ? !E(e, t.index) : !0
|
|
25
25
|
).map((t) => t[0]);
|
|
26
26
|
return Array.from(new Set(f));
|
|
27
|
-
}, [e, a]),
|
|
27
|
+
}, [e, a]), K = (f) => {
|
|
28
28
|
const t = f.split(/\r?\n/);
|
|
29
29
|
if (t.length === 0) return f;
|
|
30
|
-
const
|
|
31
|
-
return /^\s*#\s/.test(
|
|
30
|
+
const i = t[0];
|
|
31
|
+
return /^\s*#\s/.test(i) || (t[0] = `# ${i.trim()}`), t.join(`
|
|
32
32
|
`);
|
|
33
33
|
};
|
|
34
|
-
return
|
|
34
|
+
return v(() => {
|
|
35
35
|
if (!e) {
|
|
36
36
|
S(""), m(!1);
|
|
37
37
|
return;
|
|
@@ -40,21 +40,21 @@ function j(e, n, a, l, w = !1, y) {
|
|
|
40
40
|
S(e), m(!1);
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
if (!h.length && !
|
|
44
|
-
S(
|
|
43
|
+
if (!h.length && !_.length) {
|
|
44
|
+
S(g ? K(e) : e), m(!1);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
let f = !1;
|
|
48
48
|
m(!0);
|
|
49
|
-
const t = h.filter((
|
|
49
|
+
const t = h.filter((A) => !o.current.has(A));
|
|
50
50
|
return (async () => {
|
|
51
51
|
if (t.length) {
|
|
52
|
-
const r =
|
|
52
|
+
const r = T.current, c = M.current;
|
|
53
53
|
if (r)
|
|
54
54
|
try {
|
|
55
|
-
const s = await r(t),
|
|
55
|
+
const s = await r(t), u = s instanceof Set ? s : new Set(s);
|
|
56
56
|
t.forEach((R) => {
|
|
57
|
-
o.current.set(R,
|
|
57
|
+
o.current.set(R, u.has(R));
|
|
58
58
|
});
|
|
59
59
|
} catch {
|
|
60
60
|
t.forEach((s) => {
|
|
@@ -62,34 +62,34 @@ function j(e, n, a, l, w = !1, y) {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
else c ? (await Promise.allSettled(
|
|
65
|
-
t.map(async (
|
|
65
|
+
t.map(async (u) => {
|
|
66
66
|
try {
|
|
67
|
-
await c(
|
|
67
|
+
await c(u), o.current.set(u, !0);
|
|
68
68
|
} catch {
|
|
69
|
-
o.current.set(
|
|
69
|
+
o.current.set(u, !1);
|
|
70
70
|
}
|
|
71
71
|
})
|
|
72
|
-
)).forEach((
|
|
73
|
-
const
|
|
74
|
-
o.current.has(
|
|
72
|
+
)).forEach((u, R) => {
|
|
73
|
+
const I = t[R];
|
|
74
|
+
o.current.has(I) || o.current.set(I, u.status === "fulfilled");
|
|
75
75
|
}) : t.forEach((s) => {
|
|
76
76
|
o.current.set(s, !0);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const A = new Set(
|
|
80
80
|
h.filter((r) => o.current.get(r) === !0)
|
|
81
|
-
),
|
|
81
|
+
), W = new Set(
|
|
82
82
|
h.filter((r) => o.current.get(r) === !1)
|
|
83
|
-
),
|
|
84
|
-
|
|
85
|
-
(r, c, s,
|
|
86
|
-
) :
|
|
87
|
-
f || (S(
|
|
83
|
+
), $ = e.replace(d, (r, c, s) => E(e, s) ? r : A.has(c) && n ? `**[${c}](${j(n, c)})**` : r), x = a ? $.replace(
|
|
84
|
+
C,
|
|
85
|
+
(r, c, s, u) => E($, u) ? r : `[${c}](${k(a, s)})`
|
|
86
|
+
) : $, N = w ? x.replace(d, (r, c, s) => E(x, s) ? r : W.has(c) ? `[${c}]⚠️` : r) : x, X = g ? K(N) : N;
|
|
87
|
+
f || (S(X), m(!1));
|
|
88
88
|
})(), () => {
|
|
89
89
|
f = !0;
|
|
90
90
|
};
|
|
91
|
-
}, [e, h,
|
|
91
|
+
}, [e, h, _, w, n, a, d, g]), { output: D, loading: G, tokens: h };
|
|
92
92
|
}
|
|
93
93
|
export {
|
|
94
|
-
|
|
94
|
+
B as usePreprocessedMarkdown
|
|
95
95
|
};
|
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import './assets/Cart.css';const t = "_cartIconButton_bq84n_2", n = "_count_bq84n_15", o = "_cartContainer_bq84n_30", e = "_headerWrapper_bq84n_41", a = "_header_bq84n_41", i = "_cartItems_bq84n_59", _ = "_cartItem_bq84n_59", r = "_cartItemContent_bq84n_76", c = "_carItemSeparator_bq84n_88", m = "_itemContainer_bq84n_92", s = "_topRow_bq84n_96", d = "_itemInfo_bq84n_103", I = "_editUnit_bq84n_108", b = "_purchaseInformation_bq84n_124", l = "_availabilitySlot_bq84n_130", q = "_priceSlot_bq84n_137", p = "_itemManagement_bq84n_139", g = "_itemImage_bq84n_152", u = "_removeItem_bq84n_155", h = "_cartItemAdmonitionsPanel_bq84n_164", v = "_admonitionsPanelCollapsed_bq84n_169", A = "_cartItemAdmonitionsTrigger_bq84n_174", C = "_cartItemAdmonitionHeader_bq84n_186", R = "_admonitionsReveal_bq84n_191", S = "_admonitionsRevealExpanded_bq84n_196", T = "_cartItemAdmonitions_bq84n_164", x = "_admonitionTriggerIconExpanded_bq84n_202", f = "_admonitionTriggerIcon_bq84n_202", B = "_noItems_bq84n_221", E = "_subtotal_bq84n_228", P = "_checkoutButton_bq84n_235", y = {
|
|
2
|
-
cartIconButton: t,
|
|
3
|
-
count: n,
|
|
4
|
-
cartContainer: o,
|
|
5
|
-
headerWrapper: e,
|
|
6
|
-
header: a,
|
|
7
|
-
cartItems: i,
|
|
8
|
-
cartItem: _,
|
|
9
|
-
cartItemContent: r,
|
|
10
|
-
carItemSeparator: c,
|
|
11
|
-
itemContainer: m,
|
|
12
|
-
topRow: s,
|
|
13
|
-
itemInfo: d,
|
|
14
|
-
editUnit: I,
|
|
15
|
-
purchaseInformation: b,
|
|
16
|
-
availabilitySlot: l,
|
|
17
|
-
priceSlot: q,
|
|
18
|
-
itemManagement: p,
|
|
19
|
-
itemImage: g,
|
|
20
|
-
removeItem: u,
|
|
21
|
-
cartItemAdmonitionsPanel: h,
|
|
22
|
-
admonitionsPanelCollapsed: v,
|
|
23
|
-
cartItemAdmonitionsTrigger: A,
|
|
24
|
-
cartItemAdmonitionHeader: C,
|
|
25
|
-
admonitionsReveal: R,
|
|
26
|
-
admonitionsRevealExpanded: S,
|
|
27
|
-
cartItemAdmonitions: T,
|
|
28
|
-
admonitionTriggerIconExpanded: x,
|
|
29
|
-
admonitionTriggerIcon: f,
|
|
30
|
-
noItems: B,
|
|
31
|
-
subtotal: E,
|
|
32
|
-
checkoutButton: P
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
y as s
|
|
36
|
-
};
|