@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.
@@ -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
- ._admonition_7cwow_1{display:grid;grid-template-columns:.5rem minmax(0,1fr);gap:0;margin:var(--spacing-spacing-2xs) 0}._admonitionBorderLeft_7cwow_8{border-radius:var(--border-radius-sm) 0 0 var(--border-radius-sm);background-color:var(--border-border-primary)}._admonitionPanel_7cwow_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_7cwow_13{padding:var(--spacing-spacing-2xs)}}._admonitionWithIcon_7cwow_25{grid-template-columns:auto minmax(0,1fr)}._admonitionIcon_7cwow_29{color:var(--icons-icon-default)}._admonitionContent_7cwow_33{min-width:0;display:grid;gap:var(--spacing-spacing-3xs)}._admonitionHeader_7cwow_39{display:flex;align-items:center;gap:var(--spacing-spacing-3xs)}._admonitionTitle_7cwow_45{line-height:1.2}@media (max-width:767px){._admonitionTitle_7cwow_45{font-size:var(--font-size-sm)}}._admonitionBody_7cwow_52{font-size:var(--font-size-sm)}@media (max-width:767px){._admonitionBody_7cwow_52{font-size:var(--font-size-xs)}}._admonitionBody_7cwow_52>:first-child{margin-top:0}._admonitionBody_7cwow_52>:last-child{margin-bottom:0}._admonitionNote_7cwow_67 ._admonitionPanel_7cwow_13{border-color:var(--border-border-note-medium)}._admonitionTip_7cwow_73 ._admonitionBorderLeft_7cwow_8{background-color:var(--border-border-success)}._admonitionTip_7cwow_73 ._admonitionPanel_7cwow_13{border-color:var(--border-border-tip-medium);background-color:var(--surface-surface-tip)}._admonitionTip_7cwow_73 ._admonitionIcon_7cwow_29{color:var(--icons-icon-success)}._admonitionAttention_7cwow_88 ._admonitionBorderLeft_7cwow_8{background-color:var(--border-border-help)}._admonitionAttention_7cwow_88 ._admonitionPanel_7cwow_13{border-color:var(--border-border-attention-medium);background-color:var(--surface-surface-attention)}._admonitionAttention_7cwow_88 ._admonitionIcon_7cwow_29{color:var(--icons-icon-caution-tips)}._admonitionCaution_7cwow_103 ._admonitionBorderLeft_7cwow_8{background-color:var(--border-border-warning)}._admonitionCaution_7cwow_103 ._admonitionPanel_7cwow_13{border-color:var(--border-border-caution-medium);background-color:var(--surface-surface-caution)}._admonitionCaution_7cwow_103 ._admonitionIcon_7cwow_29{color:var(--icons-icon-warning)}._admonitionWarning_7cwow_118 ._admonitionBorderLeft_7cwow_8{background-color:var(--border-border-error-warning)}._admonitionWarning_7cwow_118 ._admonitionPanel_7cwow_13{border-color:var(--border-border-warning-medium);background-color:var(--surface-surface-warning)}._admonitionWarning_7cwow_118 ._admonitionIcon_7cwow_29{color:var(--icons-icon-error-warning)}._admonitionNeutral_7cwow_133 ._admonitionPanel_7cwow_13{border-color:var(--border-border-note-medium)}
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)}
@@ -1 +1 @@
1
- ._cartIconButton_bq84n_2{position:relative;border:none;padding:0;margin:0;background-color:transparent;cursor:pointer;color:#000;transition:color .3s ease,transform .3s ease}._cartIconButton_bq84n_2:hover{color:var(--color-brand-primary-primary-teal-blue)}._count_bq84n_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_bq84n_30{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_bq84n_41{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._headerWrapper_bq84n_41>button{padding:0;margin:0;background-color:transparent;border:none}._header_bq84n_41{display:flex;flex-direction:column;align-items:flex-start;width:100%}._cartItems_bq84n_59{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_bq84n_59 ul{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-1xs)}._cartItem_bq84n_59{border:1px solid var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm)}._cartItemContent_bq84n_76{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_bq84n_88{width:100%;border-bottom:1px solid var(--border-border-primary)}._itemContainer_bq84n_92{display:grid;gap:var(--spacing-spacing-3xs)}._topRow_bq84n_96{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:var(--spacing-spacing-4xs)}._itemInfo_bq84n_103{display:flex;flex-direction:column;align-items:flex-start}._editUnit_bq84n_108{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_bq84n_124{display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-spacing-3xs)}._availabilitySlot_bq84n_130{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}._itemManagement_bq84n_139{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}._cartItem_bq84n_59 p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._itemImage_bq84n_152{object-fit:contain}._removeItem_bq84n_155{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;width:min-content;height:min-content}._cartItemAdmonitionsPanel_bq84n_164{padding:var(--spacing-spacing-2xs);display:grid;gap:var(--spacing-spacing-2xs)}._admonitionsPanelCollapsed_bq84n_169{padding-block:var(--spacing-spacing-3xs);gap:0}._cartItemAdmonitionsTrigger_bq84n_174{border:none;background-color:transparent;outline:none;margin:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:space-between}._cartItemAdmonitionHeader_bq84n_186{display:inline-flex;align-items:center;gap:var(--spacing-spacing-4xs)}._admonitionsReveal_bq84n_191{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease-in}._admonitionsRevealExpanded_bq84n_196{grid-template-rows:1fr}._admonitionsReveal_bq84n_191>._cartItemAdmonitions_bq84n_164{overflow:hidden}._admonitionTriggerIconExpanded_bq84n_202{transform:rotate(180deg)}._admonitionTriggerIcon_bq84n_202{transition:transform .2s ease-in}._cartItemAdmonitions_bq84n_164{list-style:none;margin:0;padding:0}._noItems_bq84n_221{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_bq84n_228{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}._checkoutButton_bq84n_235{width:100%;height:fit-content;display:inline-flex;gap:var(--spacing-spacing-2xs)}
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: SelectOption[];
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 u, jsx as a } from "react/jsx-runtime";
2
- import w, { useState as E } from "react";
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 M } from "../HideAt.js";
5
- import { Icon as F } from "../Icon/Icon.js";
6
- import '../../assets/Select.css';const V = "_select_kfi8n_1", j = "_icon_kfi8n_29", I = "_selectError_kfi8n_59", L = "_label_kfi8n_63", P = "_labelPlaceholder_kfi8n_78", R = "_labelDisabled_kfi8n_99", z = "_errorMessage_kfi8n_103", e = {
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: V,
9
- icon: j,
10
- selectError: I,
11
- label: L,
12
- labelPlaceholder: P,
13
- labelDisabled: R,
14
- errorMessage: z
15
- }, A = w.forwardRef(
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: o,
19
- options: k,
20
- value: m,
21
- defaultValue: i,
22
- hideAt: g,
23
- className: D,
24
- error: t,
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: d,
27
- ...c
28
- }, N) => {
29
- const [S, b] = E(!1), x = !!c.disabled, n = m !== void 0, v = n ? String(m ?? "") : void 0, h = !n && i !== void 0 && i !== null ? String(i) : "", _ = !!s && (S || (n ? v !== "" : h !== "")), y = !!o && !_, p = s ? "" : o ?? "";
30
- return /* @__PURE__ */ u("div", { className: f(e["select-container"], M(g)), children: [
31
- (s || y) && /* @__PURE__ */ a(
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: c.name,
35
+ htmlFor: o.name,
35
36
  className: f(
36
- _ ? e.label : e.labelPlaceholder,
37
- x ? e.labelDisabled : void 0
37
+ b ? l.label : l.labelPlaceholder,
38
+ E ? l.labelDisabled : void 0
38
39
  ),
39
- children: _ ? s : o ?? s
40
+ children: b ? s : c ?? s
40
41
  }
41
42
  ),
42
- /* @__PURE__ */ u(
43
+ /* @__PURE__ */ D(
43
44
  "select",
44
45
  {
45
- ...c,
46
- ref: N,
47
- id: c.name,
48
- value: v,
49
- defaultValue: n ? void 0 : h,
50
- className: f(e.select, t ? e.selectError : void 0, D),
51
- onFocus: (l) => {
52
- b(!0), r == null || r(l);
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: (l) => {
55
- b(!1), d == null || d(l);
55
+ onBlur: (e) => {
56
+ h(!1), _ == null || _(e);
56
57
  },
57
58
  children: [
58
- o ? /* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !!s, children: p }) : null,
59
- k.map((l) => /* @__PURE__ */ a("option", { value: l.value, children: l.label }, l.value))
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
- F,
66
+ p,
65
67
  {
66
- className: e.icon,
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
- t ? /* @__PURE__ */ a("div", { className: e.errorMessage, children: t }) : null
74
+ d ? /* @__PURE__ */ a("div", { className: l.errorMessage, children: d }) : null
73
75
  ] });
74
76
  }
75
77
  );
76
- A.displayName = "Select";
78
+ C.displayName = "Select";
77
79
  export {
78
- A as Select
80
+ C as Select
79
81
  };
@@ -5,4 +5,5 @@ export default meta;
5
5
  type Story = StoryObj<typeof Select>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithSelectedValue: Story;
8
+ export declare const WithOptionGroups: Story;
8
9
  export declare const ErrorState: Story;
@@ -1,10 +1,22 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { useState as c } from "react";
2
+ import { useState as s } from "react";
3
3
  import { Select as n } from "./Select.js";
4
- const i = [
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: i
27
+ options: o
16
28
  },
17
29
  parameters: {
18
30
  layout: "centered"
19
31
  }
20
32
  };
21
33
  function a(e) {
22
- const [o, u] = c(String(e.value ?? ""));
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: o,
39
+ value: u,
28
40
  onChange: (r) => {
29
41
  var l;
30
- u(r.target.value), (l = e.onChange) == null || l.call(e, r);
42
+ i(r.target.value), (l = e.onChange) == null || l.call(e, r);
31
43
  }
32
44
  }
33
45
  ) });
34
46
  }
35
- const v = {
47
+ const g = {
36
48
  render: (e) => /* @__PURE__ */ t(a, { ...e })
37
- }, g = {
49
+ }, b = {
38
50
  args: {
39
51
  value: "US"
40
52
  },
41
53
  render: (e) => /* @__PURE__ */ t(a, { ...e })
42
- }, C = {
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
- v as Default,
51
- C as ErrorState,
52
- g as WithSelectedValue,
68
+ g as Default,
69
+ y as ErrorState,
70
+ h as WithOptionGroups,
71
+ b as WithSelectedValue,
53
72
  S as default
54
73
  };
@@ -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 a } from "react/jsx-runtime";
2
- import { Icon as N } from "../../atoms/Icon/Icon.js";
3
- import { Text as u } from "../../atoms/Text/Text.js";
4
- import { c } from "../../clsx-OuTLNxxd.js";
5
- import { ADMONITION_DEFAULT_ICONS as p, ADMONITION_ICON_COLOR_TOKENS as C } from "./admonitionTokens.js";
6
- import '../../assets/Admonition.css';const I = "_admonition_7cwow_1", T = "_admonitionBorderLeft_7cwow_8", f = "_admonitionPanel_7cwow_13", h = "_admonitionWithIcon_7cwow_25", A = "_admonitionIcon_7cwow_29", g = "_admonitionContent_7cwow_33", B = "_admonitionHeader_7cwow_39", L = "_admonitionTitle_7cwow_45", O = "_admonitionBody_7cwow_52", W = "_admonitionNote_7cwow_67", x = "_admonitionTip_7cwow_73", P = "_admonitionAttention_7cwow_88", y = "_admonitionCaution_7cwow_103", E = "_admonitionWarning_7cwow_118", H = "_admonitionNeutral_7cwow_133", o = {
7
- admonition: I,
8
- admonitionBorderLeft: T,
9
- admonitionPanel: f,
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: x,
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
- }, z = (n) => {
29
- const t = n.trim().replace(/[_-]+/g, " ");
30
- return t ? t.split(/\s+/).map((i) => `${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()}`).join(" ") : "Admonition";
31
- }, D = (n) => n === "note" ? o.admonitionNote : n === "tip" ? o.admonitionTip : n === "attention" ? o.admonitionAttention : n === "caution" ? o.admonitionCaution : n === "warning" ? o.admonitionWarning : o.admonitionNeutral;
32
- function $({
33
- admonitionType: n,
34
- variant: t,
35
- icon: i,
36
- title: s,
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: m,
39
- ..._
40
+ children: s,
41
+ ...c
40
42
  }) {
41
- const l = s ?? j[n] ?? z(n), w = D(t), d = i === !1 ? void 0 : (i == null ? void 0 : i.trim()) || p[t];
42
- return /* @__PURE__ */ e("aside", { ..._, className: c(o.admonition, w, r), "data-admonition": n, children: [
43
- /* @__PURE__ */ a("span", { className: o.admonitionBorderLeft, "aria-hidden": "true" }),
44
- /* @__PURE__ */ e("div", { className: c(o.admonitionPanel, d && o.admonitionWithIcon), children: [
45
- d ? /* @__PURE__ */ a("span", { className: o.admonitionIcon, "aria-hidden": "true", children: /* @__PURE__ */ a(
46
- N,
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: d,
50
+ iconKey: m,
49
51
  size: "md",
50
- colorToken: C[t] ?? "default"
52
+ colorToken: C[i] ?? "default"
51
53
  },
52
- d
54
+ m
53
55
  ) }) : null,
54
- /* @__PURE__ */ e("div", { className: o.admonitionContent, children: [
55
- /* @__PURE__ */ a("div", { className: o.admonitionHeader, children: /* @__PURE__ */ a(u, { size: "md", weight: "semibold", className: o.admonitionTitle, children: l }) }),
56
- m != null ? /* @__PURE__ */ a("div", { className: o.admonitionBody, children: m }) : null
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
- $ as Admonition
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-BIEAjANw.js";
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 l, jsx as r } from "react/jsx-runtime";
2
- import q, { useState as B, useId as V } from "react";
3
- import { Link as G } from "../../atoms/Link/Link.js";
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 H } from "../../atoms/Image/Image.js";
6
- import { Availability as J } from "../Availability/Availability.js";
7
- import { Pricing as Q } from "../Pricing/Pricing.js";
8
- import { QuantityInput as U } from "../QuantityInput/QuantityInput.js";
9
- import { Icon as s } from "../../atoms/Icon/Icon.js";
10
- import { Pill as W } from "../../atoms/Pill/Pill.js";
11
- import { Tooltip as X } from "../../atoms/Tooltip/Tooltip.js";
12
- import { c as o } from "../../clsx-OuTLNxxd.js";
13
- import { s as e } from "../../Cart.module-BIEAjANw.js";
14
- import { ADMONITION_ICON_COLOR_TOKENS as Y } from "../Admonition/admonitionTokens.js";
15
- import { Admonition as Z } from "../Admonition/Admonition.js";
16
- function he({
17
- imageUrl: x,
18
- imageAlt: C = "Product image",
19
- title: h,
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: m,
22
- partNumber: g,
23
- unit: K,
24
- make: P,
25
- model: A,
26
- serial: S,
21
+ onTitleNavigate: f,
22
+ partNumber: I,
23
+ unit: _,
24
+ make: E,
25
+ model: M,
26
+ serial: R,
27
27
  custom: w,
28
- availabilityId: O,
29
- availability: I,
30
- inventory: R,
31
- source: c = "none",
32
- priceLabel: _ = "List Price",
33
- price: y,
34
- quantity: N,
35
- maxQuantity: d,
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: k,
38
- onUnitEditClick: f,
39
- requiresUnitDetails: E = !1,
40
- className: M,
41
- admonitions: i,
42
- ...L
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 z, v;
45
- const [n, j] = B(!1), T = V();
46
- function D(a) {
47
- a.defaultPrevented || a.button === 0 && (a.metaKey || a.altKey || a.ctrlKey || a.shiftKey || a.currentTarget.target && a.currentTarget.target !== "_self" || m == null || m(a));
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 = K || [P, A, S].filter(Boolean).join(" / "), F = typeof d == "number" && Number.isFinite(d) ? d : void 0;
50
- return /* @__PURE__ */ l("li", { className: o(e.cartItem, M), ...L, children: [
51
- /* @__PURE__ */ l("div", { className: e.cartItemContent, children: [
52
- /* @__PURE__ */ r(H, { height: 50, width: 50, src: x || "", alt: C, className: e.itemImage }),
53
- /* @__PURE__ */ l("div", { className: e.itemContainer, children: [
54
- /* @__PURE__ */ l("div", { className: e.topRow, children: [
55
- /* @__PURE__ */ l("div", { className: e.itemInfo, children: [
56
- /* @__PURE__ */ r(t, { size: "sm", weight: "semibold", children: u ? /* @__PURE__ */ r(G, { href: u, onClick: D, children: h }) : h }),
57
- g != null && /* @__PURE__ */ l(t, { size: "sm", children: [
58
- /* @__PURE__ */ r(t, { colorToken: "quaternary", size: "xs", children: w ? "Specs " : "Part # " }),
59
- g
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 && f && (E ? /* @__PURE__ */ r(
62
- X,
62
+ p && o && (F ? /* @__PURE__ */ l(
63
+ re,
63
64
  {
64
- trigger: /* @__PURE__ */ l(
65
+ trigger: /* @__PURE__ */ c(
65
66
  "button",
66
67
  {
67
- onClick: f,
68
- className: e.editUnit,
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__ */ r(s, { iconKey: "fa-light fa-file-pen", size: "sm" }),
73
+ /* @__PURE__ */ l(m, { iconKey: "fa-light fa-file-pen", size: "sm" }),
73
74
  p
74
75
  ]
75
76
  }
76
77
  ),
77
- children: /* @__PURE__ */ r(t, { size: "sm", children: "Requires Make, Model, and Serial" })
78
+ children: /* @__PURE__ */ l(t, { size: "sm", children: "Requires Make, Model, and Serial" })
78
79
  }
79
- ) : /* @__PURE__ */ l(
80
+ ) : /* @__PURE__ */ c(
80
81
  "button",
81
82
  {
82
- onClick: f,
83
- className: e.editUnit,
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__ */ r(s, { iconKey: "fa-light fa-file-pen", size: "sm" }),
88
- /* @__PURE__ */ r(t, { size: "sm", children: p })
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
- k && /* @__PURE__ */ r("button", { onClick: k, className: e.removeItem, "aria-label": "Remove item", type: "button", children: /* @__PURE__ */ r(s, { iconKey: "fa-regular fa-trash", size: "sm" }) })
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__ */ l("div", { className: e.itemManagement, children: [
96
- /* @__PURE__ */ l("div", { className: e.availabilitySlot, children: [
97
- I && /* @__PURE__ */ r(
98
- J,
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: O || "not-found",
101
- availDescription: I,
101
+ availId: L || "not-found",
102
+ availDescription: g,
102
103
  enableTooltip: !0,
103
- inventory: R
104
+ inventory: D
104
105
  }
105
106
  ),
106
- c !== "none" && /* @__PURE__ */ r(
107
- W,
107
+ i !== "none" && /* @__PURE__ */ l(
108
+ ee,
108
109
  {
109
- colorToken: c === "cart" ? "neutral" : "success",
110
+ colorToken: i === "cart" ? "neutral" : "success",
110
111
  uppercase: !0,
111
- iconColorToken: c === "cart" ? "default" : "success",
112
- iconKey: c === "cart" ? "fa-light fa-cart-shopping" : "fa-light fa-file-lines",
113
- children: c === "cart" ? "Cart" : "Quote"
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__ */ l("div", { className: e.purchaseInformation, children: [
118
- /* @__PURE__ */ r("div", { className: e.priceSlot, children: y && /* @__PURE__ */ r(Q, { pricingLabel: _, price: y }) }),
119
- typeof N == "number" && b && /* @__PURE__ */ r(
120
- U,
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: N,
123
+ quantity: y,
123
124
  onQuantityChange: b,
124
- max: F,
125
+ max: H,
125
126
  size: "sm"
126
127
  }
127
128
  )
@@ -129,50 +130,55 @@ function he({
129
130
  ] })
130
131
  ] })
131
132
  ] }),
132
- ((i == null ? void 0 : i.length) ?? 0) > 0 && /* @__PURE__ */ l(q.Fragment, { children: [
133
- /* @__PURE__ */ r("div", { className: e.carItemSeparator }),
134
- /* @__PURE__ */ l("div", { className: o(e.cartItemAdmonitionsPanel, !n && e.admonitionsPanelCollapsed), children: [
135
- /* @__PURE__ */ l(
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: e.cartItemAdmonitionsTrigger,
139
- onClick: () => j(!n),
139
+ className: r.cartItemAdmonitionsTrigger,
140
+ onClick: () => U(!s),
140
141
  type: "button",
141
- "aria-expanded": n,
142
- "aria-controls": T,
142
+ "aria-expanded": s,
143
+ "aria-controls": z,
143
144
  children: [
144
- /* @__PURE__ */ l("div", { className: e.cartItemAdmonitionHeader, children: [
145
- /* @__PURE__ */ r(
146
- s,
145
+ /* @__PURE__ */ c("div", { className: r.cartItemAdmonitionHeader, children: [
146
+ /* @__PURE__ */ l(
147
+ m,
147
148
  {
148
- iconKey: ((z = i == null ? void 0 : i[0]) == null ? void 0 : z.icon) ?? "fa-regular fa-info-circle",
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: Y[((v = i == null ? void 0 : i[0]) == null ? void 0 : v.variant) ?? "unknown"] ?? "default"
151
+ colorToken: le[((A = e == null ? void 0 : e[0]) == null ? void 0 : A.variant) ?? "unknown"] ?? "default"
151
152
  }
152
153
  ),
153
- /* @__PURE__ */ l(t, { size: "sm", children: [
154
- "View (",
155
- i == null ? void 0 : i.length,
156
- ") item notes"
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__ */ r(s, { className: o(e.admonitionTriggerIcon, n ? e.admonitionTriggerIconExpanded : e.admonitionTriggerIconCollapsed), iconKey: "fa-regular fa-chevron-down", size: "xs", colorToken: "secondary" })
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__ */ r(
168
+ /* @__PURE__ */ l(
164
169
  "div",
165
170
  {
166
- className: o(e.admonitionsReveal, n && e.admonitionsRevealExpanded),
167
- id: T,
168
- children: /* @__PURE__ */ r("ol", { className: e.cartItemAdmonitions, children: i == null ? void 0 : i.map((a) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
169
- Z,
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
- he as CartPart
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 v } from "../../atoms/SlideInPanel/SlideInPanel.js";
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 x } from "./CartPart.js";
7
- import { s as t } from "../../Cart.module-BIEAjANw.js";
8
- function S({
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: n,
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: d,
17
- onItemNavigate: m,
16
+ onUnitEditClick: o,
17
+ onItemNavigate: n,
18
18
  requiresUnitDetails: b = !1,
19
- onCheckout: o
19
+ onCheckout: d,
20
+ AdmonitionContent: k
20
21
  }) {
21
22
  var c;
22
23
  return a = a || { items: [] }, /* @__PURE__ */ i(
23
- v,
24
+ x,
24
25
  {
25
26
  side: "right",
26
27
  open: p,
27
- onClose: n,
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: n, children: /* @__PURE__ */ i(u, { iconKey: "fa-regular fa-xmark", size: "md" }) })
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: o,
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
- x,
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: () => m == null ? void 0 : m(e),
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: (k) => f(e, k),
75
+ onQuantityChange: (v) => f(e, v),
75
76
  onRemove: () => g(e),
76
- onUnitEditClick: d ? () => d(e) : void 0,
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: o,
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
- S as CartSlideInPanel
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 u = e ?? "", { output: s } = Pi(
8699
- u,
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 (!u) return null;
8707
- const f = r || i ? {
8708
- a: ({ node: h, ...d }) => /* @__PURE__ */ De("a", { ...d, target: "_blank", rel: "noopener noreferrer" })
8709
- } : {}, c = t ? `${or.markdown} ${t}` : or.markdown, p = { ...If, ...f, ...n };
8710
- return /* @__PURE__ */ De("div", { className: c, children: /* @__PURE__ */ De(
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: p,
8715
- children: s
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 N, useRef as L, useEffect as I, useMemo as x } from "react";
2
- const H = /\[(.+?)\](?!\()/g, p = /\[([^\]]+?)\]\((\/[^)\s]*)\)/g, W = (e, n) => typeof e == "function" ? e(n) : e, X = (e, n) => typeof e == "function" ? e(n) : `${e}${n}`, E = (e, n) => {
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 j(e, n, a, l, w = !1, y) {
9
- const [q, S] = N(e ?? ""), [v, m] = N(!1), o = L(/* @__PURE__ */ new Map()), O = L(l), M = L(
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
- I(() => {
13
- O.current = l, M.current = y;
12
+ v(() => {
13
+ M.current = l, T.current = y;
14
14
  }, [l, y]);
15
- const d = x(() => H, []), h = x(() => {
15
+ const d = L(() => b, []), h = L(() => {
16
16
  if (!e || !n) return [];
17
17
  const f = Array.from(e.matchAll(d)).filter(
18
- (u) => typeof u.index == "number" ? !E(e, u.index) : !0
19
- ).map((u) => u[1]);
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]), T = x(() => {
21
+ }, [e, d, n]), _ = L(() => {
22
22
  if (!e || !a) return [];
23
- const f = Array.from(e.matchAll(p)).filter(
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]), _ = (f) => {
27
+ }, [e, a]), K = (f) => {
28
28
  const t = f.split(/\r?\n/);
29
29
  if (t.length === 0) return f;
30
- const u = t[0];
31
- return /^\s*#\s/.test(u) || (t[0] = `# ${u.trim()}`), t.join(`
30
+ const i = t[0];
31
+ return /^\s*#\s/.test(i) || (t[0] = `# ${i.trim()}`), t.join(`
32
32
  `);
33
33
  };
34
- return I(() => {
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 && !T.length) {
44
- S(_(e)), m(!1);
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((g) => !o.current.has(g));
49
+ const t = h.filter((A) => !o.current.has(A));
50
50
  return (async () => {
51
51
  if (t.length) {
52
- const r = M.current, c = O.current;
52
+ const r = T.current, c = M.current;
53
53
  if (r)
54
54
  try {
55
- const s = await r(t), i = s instanceof Set ? s : new Set(s);
55
+ const s = await r(t), u = s instanceof Set ? s : new Set(s);
56
56
  t.forEach((R) => {
57
- o.current.set(R, i.has(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 (i) => {
65
+ t.map(async (u) => {
66
66
  try {
67
- await c(i), o.current.set(i, !0);
67
+ await c(u), o.current.set(u, !0);
68
68
  } catch {
69
- o.current.set(i, !1);
69
+ o.current.set(u, !1);
70
70
  }
71
71
  })
72
- )).forEach((i, R) => {
73
- const K = t[R];
74
- o.current.has(K) || o.current.set(K, i.status === "fulfilled");
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 g = new Set(
79
+ const A = new Set(
80
80
  h.filter((r) => o.current.get(r) === !0)
81
- ), C = new Set(
81
+ ), W = new Set(
82
82
  h.filter((r) => o.current.get(r) === !1)
83
- ), A = e.replace(d, (r, c, s) => E(e, s) ? r : g.has(c) && n ? `**[${c}](${W(n, c)})**` : r), $ = a ? A.replace(
84
- p,
85
- (r, c, s, i) => E(A, i) ? r : `[${c}](${X(a, s)})`
86
- ) : A, D = w ? $.replace(d, (r, c, s) => E($, s) ? r : C.has(c) ? `[${c}]⚠️` : r) : $, G = _(D);
87
- f || (S(G), m(!1));
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, T, w, n, a, d]), { output: q, loading: v, tokens: h };
91
+ }, [e, h, _, w, n, a, d, g]), { output: D, loading: G, tokens: h };
92
92
  }
93
93
  export {
94
- j as usePreprocessedMarkdown
94
+ B as usePreprocessedMarkdown
95
95
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.261",
4
+ "version": "0.0.263",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -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
- };