@caseparts-org/caseblocks 0.0.239 → 0.0.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- ._availability_kb59t_1{font-style:italic}._pointer_kb59t_5{cursor:pointer}._tooltip_kb59t_9{background-color:#fafafa}._tooltipContent_kb59t_13{max-width:370px}._tooltipContent_kb59t_13>ul{padding:0;margin:var(--spacing-spacing-2xs) 0}._tooltipContent_kb59t_13 li{list-style:none}._available_kb59t_26,._in-stock_kb59t_26{color:var(--color-alerts-success)}._limited_kb59t_29{color:var(--color-alerts-warning)}._discontinued_kb59t_32{color:var(--color-alerts-error-warning)}
1
+ ._availability_1divs_1{font-style:italic;display:flex;align-items:center;gap:var(--spacing-spacing-4xs)}._pointer_1divs_8{cursor:pointer}._tooltip_1divs_12{background-color:#fafafa}._tooltipContent_1divs_16{max-width:370px}._tooltipContent_1divs_16>ul{padding:0;margin:var(--spacing-spacing-2xs) 0}._tooltipContent_1divs_16 li{list-style:none}._available_1divs_29,._in-stock_1divs_29{color:var(--color-alerts-success)}._limited_1divs_32{color:var(--color-alerts-warning)}._discontinued_1divs_35{color:var(--color-alerts-error-warning)}
@@ -1 +1 @@
1
- ._productCard_1qkjr_3{box-sizing:border-box;position:relative;background:var(--surface-surface-primary, #FFF);display:flex;width:232px;height:296px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_1qkjr_3._sm_1qkjr_16{width:180px;height:230px}._productCard_1qkjr_3>img{object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_1qkjr_3 ._productInformation_1qkjr_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_1qkjr_3 ._purchaseInformation_1qkjr_33{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_1qkjr_3 ._addToCart_1qkjr_41,._productCard_1qkjr_3 ._addToCartButton_1qkjr_44{width:100%}._productInformation_1qkjr_26>a{font-weight:var(--font-weight-semibold);white-space:break-spaces;word-wrap:normal}._partNumber_1qkjr_54{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_1qkjr_61{color:var(--text-text-quaternary)}._productTile_1qkjr_65{box-sizing:border-box;position:relative;z-index:1;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;background:var(--surface-surface-primary, #FFF);padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_1qkjr_65>img{object-fit:contain}._productTile_1qkjr_65 ._productInformation_1qkjr_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_1qkjr_65 ._productData_1qkjr_93{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_1qkjr_65 ._purchase_1qkjr_33{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_1qkjr_65 ._purchase_1qkjr_33{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_1qkjr_65 ._purchaseInformation_1qkjr_33{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_1qkjr_65 ._purchaseInformation_1qkjr_33{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_1qkjr_65 ._attributeContainer_1qkjr_130{margin:0;padding:0;padding-top:var(--spacing-spacing-1xs);border-top:1px solid var(--border-border-primary);width:100%;list-style:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:var(--spacing-spacing-lg);row-gap:var(--spacing-spacing-3xs)}@media (max-width: 640px){._productTile_1qkjr_65 ._attributeContainer_1qkjr_130{display:none}}._productTile_1qkjr_65 ._attributeContainer_1qkjr_130 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_1qkjr_65 ._addToCart_1qkjr_41{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_1qkjr_65 ._addToCart_1qkjr_41{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_1qkjr_65 ._addToCartButton_1qkjr_44{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_1qkjr_65 ._addToCartButton_1qkjr_44{width:100%}}._elevated_1qkjr_178{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_1qkjr_184 ._productInformation_1qkjr_26{margin-top:0}._sm_1qkjr_16{padding:var(--spacing-spacing-1xs)}
1
+ ._productCard_h4utb_3{box-sizing:border-box;position:relative;background:var(--surface-surface-primary, #FFF);display:flex;width:232px;height:296px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_h4utb_3._sm_h4utb_16{width:180px;height:230px}._productCard_h4utb_3>img{object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_h4utb_3 ._productInformation_h4utb_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_h4utb_3 ._purchaseInformation_h4utb_33{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_h4utb_3 ._addToCart_h4utb_41,._productCard_h4utb_3 ._addToCartButton_h4utb_44{width:100%}._productInformation_h4utb_26>a{font-weight:var(--font-weight-semibold);white-space:break-spaces;word-wrap:normal}._partNumber_h4utb_54{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_h4utb_61{color:var(--text-text-quaternary)}._productTile_h4utb_65{box-sizing:border-box;position:relative;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;background:var(--surface-surface-primary, #FFF);padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_h4utb_65>img{object-fit:contain}._productTile_h4utb_65 ._productInformation_h4utb_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_h4utb_65 ._productData_h4utb_92{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_h4utb_65 ._purchase_h4utb_33{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_h4utb_65 ._purchase_h4utb_33{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_h4utb_65 ._purchaseInformation_h4utb_33{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_h4utb_65 ._purchaseInformation_h4utb_33{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_h4utb_65 ._attributeContainer_h4utb_129{margin:0;padding:0;padding-top:var(--spacing-spacing-1xs);border-top:1px solid var(--border-border-primary);width:100%;list-style:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:var(--spacing-spacing-lg);row-gap:var(--spacing-spacing-3xs)}@media (max-width: 640px){._productTile_h4utb_65 ._attributeContainer_h4utb_129{display:none}}._productTile_h4utb_65 ._attributeContainer_h4utb_129 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_h4utb_65 ._addToCart_h4utb_41{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_h4utb_65 ._addToCart_h4utb_41{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_h4utb_65 ._addToCartButton_h4utb_44{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_h4utb_65 ._addToCartButton_h4utb_44{width:100%}}._elevated_h4utb_177{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_h4utb_183 ._productInformation_h4utb_26{margin-top:0}._sm_h4utb_16{padding:var(--spacing-spacing-1xs)}
@@ -1 +1 @@
1
- ._suggestionDropdown_1udz7_1{display:flex;flex-direction:row;width:100%;border:1px solid;border-color:var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm);box-shadow:0 8px 24px #0f172a14;overflow:hidden}@media (max-width: 767px){._suggestionDropdown_1udz7_1{flex-direction:column}}._leftColumn_1udz7_31{display:flex;flex-direction:column;border-right:1px solid var(--border-border-primary);background:var(--color-brand-primary-primary-pale-gray);min-width:150px}@media (max-width: 767px){._leftColumn_1udz7_31{border-right:0;border-bottom:1px solid var(--border-border-primary)}}._leftColumnFullWidth_1udz7_55{flex:1}._suggestionSectionFullHeight_1udz7_63{display:flex;flex:1}._rightColumn_1udz7_73{display:flex;flex:1;flex-direction:column;gap:var(--spacing-spacing-1xs);padding:var(--spacing-spacing-default);background:var(--color-brand-primary-white);min-width:250px}._categorySection_1udz7_95{border-top:1px solid var(--border-border-primary)}._suggestions_1udz7_101,._categories_1udz7_103{display:flex;flex-direction:column;gap:0;padding:0}._suggestionsFullHeight_1udz7_117{flex:1}._suggestions_1udz7_101>:first-child,._categories_1udz7_103>:first-child{padding-top:var(--spacing-spacing-default);padding-right:var(--spacing-spacing-default);padding-left:var(--spacing-spacing-default);padding-bottom:var(--spacing-spacing-2xs)}._suggestions_1udz7_101>:last-child{padding-bottom:var(--spacing-spacing-2xs)}._suggestionLink_1udz7_147,._categoryLink_1udz7_149{display:block;box-sizing:border-box;width:100%;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default)}._activeOption_1udz7_163{background:var(--color-brand-primary-white);outline:2px solid var(--text-text-links);outline-offset:-2px}._itemList_1udz7_175{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-2xs);width:100%}._item_1udz7_175{display:flex;flex-direction:column;border:1px solid var(--border-border-primary);padding:var(--spacing-spacing-2xs);width:100%}._activeItem_1udz7_209{border-color:var(--text-text-links);box-shadow:inset 0 0 0 1px var(--text-text-links)}._item_1udz7_175 img{height:60px;width:60px}._item_1udz7_175 a{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._itemInfo_1udz7_243{display:grid;gap:var(--spacing-spacing-4xs)}._recentSearches_1udz7_253{display:flex;flex-direction:column;background:var(--color-brand-primary-white);min-width:250px}._recentSearchesHeader_1udz7_267{padding:var(--spacing-spacing-default) var(--spacing-spacing-default) var(--spacing-spacing-2xs)}._recentSearchesList_1udz7_275{display:flex;flex-direction:column;gap:0;margin:0;padding:0}._recentSearch_1udz7_253{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-spacing-2xs)}._recentSearchLink_1udz7_305{display:flex;flex:1;min-width:0;align-items:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default)}._clearRecentSearch_1udz7_321{display:flex;flex:0 0 auto;align-items:center;justify-content:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);border:0;background:transparent;color:var(--text-text-primary);cursor:pointer}
1
+ ._suggestionDropdown_2kbdw_1{display:flex;flex-direction:row;width:100%;border:1px solid;border-color:var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm);box-shadow:0 8px 24px #0f172a14;overflow:hidden}@media (max-width: 767px){._suggestionDropdown_2kbdw_1{flex-direction:column}}._leftColumn_2kbdw_31{display:flex;flex-direction:column;border-right:1px solid var(--border-border-primary);background-color:#fff;min-width:150px}@media (max-width: 767px){._leftColumn_2kbdw_31{border-right:0;border-bottom:1px solid var(--border-border-primary)}}._leftColumnFullWidth_2kbdw_55{flex:1}._suggestionSectionFullHeight_2kbdw_63{display:flex;flex:1}._rightColumn_2kbdw_73{display:flex;flex:1;flex-direction:column;gap:var(--spacing-spacing-1xs);padding:var(--spacing-spacing-default);background:var(--color-brand-primary-primary-pale-gray);min-width:250px}._categorySection_2kbdw_95{border-top:1px solid var(--border-border-primary)}._suggestions_2kbdw_101,._categories_2kbdw_103{display:flex;flex-direction:column;gap:0;padding:0}._suggestionsFullHeight_2kbdw_117{flex:1}._suggestions_2kbdw_101>:first-child,._categories_2kbdw_103>:first-child{padding-top:var(--spacing-spacing-default);padding-right:var(--spacing-spacing-default);padding-left:var(--spacing-spacing-default);padding-bottom:var(--spacing-spacing-2xs)}._suggestions_2kbdw_101>:last-child,._categories_2kbdw_103>:last-child{padding-bottom:var(--spacing-spacing-2xs)}._suggestionLink_2kbdw_149,._categoryLink_2kbdw_151{display:block;box-sizing:border-box;width:100%;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);transition:background-color .3s ease-in}._suggestionLink_2kbdw_149:hover,._categoryLink_2kbdw_151:hover{text-decoration:none;background-color:var(--color-alerts-light-teal-blue)}._activeOption_2kbdw_181{background:var(--color-alerts-light-teal-blue)}._itemList_2kbdw_189{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-2xs);width:100%}._item_2kbdw_189{display:flex;flex-direction:column;border:1px solid var(--border-border-primary);padding:var(--spacing-spacing-2xs);width:100%;background-color:#fff;transition:background-color .3s ease-in}._item_2kbdw_189:hover{background-color:var(--color-alerts-light-teal-blue)}._item_2kbdw_189>a:hover{text-decoration:none}._activeItem_2kbdw_243{border-color:var(--text-text-links);box-shadow:inset 0 0 0 1px var(--text-text-links)}._item_2kbdw_189 img{height:60px;width:60px}._item_2kbdw_189 a{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._itemInfo_2kbdw_277{display:grid;gap:var(--spacing-spacing-4xs)}._recentSearches_2kbdw_287{display:flex;flex-direction:column;background:var(--color-brand-primary-white);min-width:250px}._recentSearchesHeader_2kbdw_301{padding:var(--spacing-spacing-default) var(--spacing-spacing-default) var(--spacing-spacing-2xs)}._recentSearchesList_2kbdw_309{display:flex;flex-direction:column;gap:0;margin:0;padding:0}._recentSearch_2kbdw_287{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-spacing-2xs)}._recentSearchLink_2kbdw_339{display:flex;flex:1;min-width:0;align-items:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default)}._clearRecentSearch_2kbdw_355{display:flex;flex:0 0 auto;align-items:center;justify-content:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);border:0;background:transparent;color:var(--text-text-primary);cursor:pointer}
@@ -1,9 +1,8 @@
1
- import { TextSize } from '../Text/Text';
2
- export interface HighlightedTextProps {
1
+ import { TextProps } from '../Text/Text';
2
+ export interface HighlightedTextProps extends Omit<TextProps, "children" | "variant"> {
3
3
  text: string;
4
- size: TextSize;
5
4
  highlight: string;
6
5
  variant?: "bold" | "highlight" | "italic";
7
6
  className?: string;
8
7
  }
9
- export declare function HighlightedText({ text, size, highlight, variant, className }: HighlightedTextProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function HighlightedText({ text, highlight, variant, className, ...textProps }: HighlightedTextProps): import("react/jsx-runtime").JSX.Element;
@@ -1,23 +1,23 @@
1
1
  import { jsx as g, jsxs as x } from "react/jsx-runtime";
2
2
  import { c as T } from "../../clsx-OuTLNxxd.js";
3
- import { Text as o } from "../Text/Text.js";
4
- import '../../assets/HighlightedText.css';const a = "_highlightedText_p19vf_1", c = {
3
+ import { Text as c } from "../Text/Text.js";
4
+ import '../../assets/HighlightedText.css';const a = "_highlightedText_p19vf_1", o = {
5
5
  highlightedText: a,
6
6
  "highlightedText-bold": "_highlightedText-bold_p19vf_9",
7
7
  "highlightedText-highlight": "_highlightedText-highlight_p19vf_17",
8
8
  "highlightedText-italic": "_highlightedText-italic_p19vf_29"
9
9
  };
10
- function m({ text: t, size: i, highlight: h, variant: d = "bold", className: l }) {
11
- const e = t.toLowerCase().indexOf(h.toLowerCase());
12
- if (!h || e === -1)
13
- return /* @__PURE__ */ g(o, { size: i, className: l, children: t });
14
- const r = t.slice(0, e), s = t.slice(e, e + h.length), n = t.slice(e + h.length);
15
- return /* @__PURE__ */ x(o, { size: i, children: [
10
+ function p({ text: e, highlight: h, variant: d = "bold", className: i, ...l }) {
11
+ const t = e.toLowerCase().indexOf(h.toLowerCase());
12
+ if (!h || t === -1)
13
+ return /* @__PURE__ */ g(c, { className: i, ...l, children: e });
14
+ const r = e.slice(0, t), s = e.slice(t, t + h.length), n = e.slice(t + h.length);
15
+ return /* @__PURE__ */ x(c, { ...l, children: [
16
16
  r,
17
- /* @__PURE__ */ g("span", { className: T(c.highlightedText, c[`highlightedText-${d}`], l), children: s }),
17
+ /* @__PURE__ */ g("span", { className: T(o.highlightedText, o[`highlightedText-${d}`], i), children: s }),
18
18
  n
19
19
  ] });
20
20
  }
21
21
  export {
22
- m as HighlightedText
22
+ p as HighlightedText
23
23
  };
@@ -1,15 +1,16 @@
1
1
  import { HighlightedText as t } from "./HighlightedText.js";
2
- const i = {
2
+ const e = {
3
3
  title: "Case Parts/Atoms/HighlightedText",
4
4
  component: t,
5
5
  parameters: {
6
6
  layout: "centered"
7
7
  },
8
8
  tags: ["autodocs"]
9
- }, e = {
9
+ }, i = {
10
10
  args: {
11
11
  text: "Thermostat",
12
12
  size: "md",
13
+ weight: "regular",
13
14
  highlight: "stat",
14
15
  variant: "bold"
15
16
  }
@@ -29,8 +30,8 @@ const i = {
29
30
  }
30
31
  };
31
32
  export {
32
- e as Bold,
33
+ i as Bold,
33
34
  s as Highlight,
34
35
  h as Italic,
35
- i as default
36
+ e as default
36
37
  };
@@ -1,70 +1,74 @@
1
- import { jsx as e, jsxs as o, Fragment as m } from "react/jsx-runtime";
2
- import { c as _ } from "../../clsx-OuTLNxxd.js";
3
- import { Text as l } from "../../atoms/Text/Text.js";
4
- import { Tooltip as b } from "../../atoms/Tooltip/Tooltip.js";
5
- import '../../assets/Availability.css';const k = "_availability_kb59t_1", f = "_pointer_kb59t_5", C = "_tooltip_kb59t_9", g = "_tooltipContent_kb59t_13", w = "_available_kb59t_26", z = "_limited_kb59t_29", S = "_discontinued_kb59t_32", s = {
6
- availability: k,
7
- pointer: f,
8
- tooltip: C,
9
- tooltipContent: g,
10
- available: w,
11
- "in-stock": "_in-stock_kb59t_26",
12
- limited: z,
1
+ import { jsx as i, jsxs as o, Fragment as _ } from "react/jsx-runtime";
2
+ import { c as p } from "../../clsx-OuTLNxxd.js";
3
+ import { Text as s } from "../../atoms/Text/Text.js";
4
+ import { Tooltip as f } from "../../atoms/Tooltip/Tooltip.js";
5
+ import { Icon as b } from "../../atoms/Icon/Icon.js";
6
+ import '../../assets/Availability.css';const w = "_availability_1divs_1", C = "_pointer_1divs_8", g = "_tooltip_1divs_12", z = "_tooltipContent_1divs_16", k = "_available_1divs_29", x = "_limited_1divs_32", S = "_discontinued_1divs_35", l = {
7
+ availability: w,
8
+ pointer: C,
9
+ tooltip: g,
10
+ tooltipContent: z,
11
+ available: k,
12
+ "in-stock": "_in-stock_1divs_29",
13
+ limited: x,
13
14
  discontinued: S
14
15
  };
15
- function L({
16
- availId: i,
17
- availDescription: t,
16
+ function D({
17
+ availId: t,
18
+ availDescription: e,
18
19
  availClassName: d,
19
20
  enableTooltip: n = !1,
20
- inventory: a
21
+ inventory: c
21
22
  }) {
22
- const c = n && a && i !== "not-found", r = /* @__PURE__ */ e(l, { size: "xs", className: _(s.availability, s[i], c ? s.pointer : null, d), children: t });
23
- return c ? /* @__PURE__ */ e(
24
- b,
23
+ const a = n && c && t !== "not-found";
24
+ return a ? /* @__PURE__ */ i(
25
+ f,
25
26
  {
26
27
  closeDelay: 0,
27
28
  openDelay: 250,
28
- position: "top center",
29
- trigger: r,
30
- contentClassName: s.tooltip,
31
- children: /* @__PURE__ */ e(A, { availabilityId: i, inventory: a })
29
+ position: "bottom center",
30
+ trigger: /* @__PURE__ */ o(s, { size: "xs", className: p(l.availability, l[t], a ? l.pointer : null, d), children: [
31
+ e,
32
+ /* @__PURE__ */ i(b, { iconKey: "fa-solid fa-chevron-down", size: "3xs" })
33
+ ] }),
34
+ contentClassName: l.tooltip,
35
+ children: /* @__PURE__ */ i(T, { availabilityId: t, inventory: c })
32
36
  }
33
- ) : r;
37
+ ) : /* @__PURE__ */ i(s, { size: "xs", className: p(l.availability, l[t], a ? l.pointer : null, d), children: e });
34
38
  }
35
- function A({ availabilityId: i, inventory: t }) {
36
- var n, a, c, r, p, u;
37
- const d = (((n = t == null ? void 0 : t.MPK) == null ? void 0 : n.Unreserved) ?? 0) + (((a = t == null ? void 0 : t.SEA) == null ? void 0 : a.Unreserved) ?? 0) + (((c = t == null ? void 0 : t.STL) == null ? void 0 : c.Unreserved) ?? 0);
38
- if (i === "in-stock" || i === "limited") {
39
- const h = i === "in-stock" ? "Additional quantity will be backordered. If you need more than we have at any one warehouse, a CSR will contact you with options." : "Once our stock is depleted, this item will no longer be available.";
40
- return /* @__PURE__ */ o("div", { className: s.tooltipContent, children: [
41
- /* @__PURE__ */ o(l, { size: "sm", children: [
39
+ function T({ availabilityId: t, inventory: e }) {
40
+ var n, c, a, r, m, h;
41
+ const d = (((n = e == null ? void 0 : e.MPK) == null ? void 0 : n.Unreserved) ?? 0) + (((c = e == null ? void 0 : e.SEA) == null ? void 0 : c.Unreserved) ?? 0) + (((a = e == null ? void 0 : e.STL) == null ? void 0 : a.Unreserved) ?? 0);
42
+ if (t === "in-stock" || t === "limited") {
43
+ const u = t === "in-stock" ? "Additional quantity will be backordered. If you need more than we have at any one warehouse, a CSR will contact you with options." : "Once our stock is depleted, this item will no longer be available.";
44
+ return /* @__PURE__ */ o("div", { className: l.tooltipContent, children: [
45
+ /* @__PURE__ */ o(s, { size: "sm", children: [
42
46
  "We currently have (",
43
47
  d,
44
48
  ") in stock across our three warehouses:"
45
49
  ] }),
46
50
  /* @__PURE__ */ o("ul", { children: [
47
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(l, { size: "sm", children: [
51
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ o(s, { size: "sm", children: [
48
52
  "(",
49
- ((r = t == null ? void 0 : t.MPK) == null ? void 0 : r.Unreserved) ?? 0,
53
+ ((r = e == null ? void 0 : e.MPK) == null ? void 0 : r.Unreserved) ?? 0,
50
54
  ") Los Angeles"
51
55
  ] }) }),
52
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(l, { size: "sm", children: [
56
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ o(s, { size: "sm", children: [
53
57
  "(",
54
- ((p = t == null ? void 0 : t.STL) == null ? void 0 : p.Unreserved) ?? 0,
58
+ ((m = e == null ? void 0 : e.STL) == null ? void 0 : m.Unreserved) ?? 0,
55
59
  ") St. Louis"
56
60
  ] }) }),
57
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(l, { size: "sm", children: [
61
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ o(s, { size: "sm", children: [
58
62
  "(",
59
- ((u = t == null ? void 0 : t.SEA) == null ? void 0 : u.Unreserved) ?? 0,
63
+ ((h = e == null ? void 0 : e.SEA) == null ? void 0 : h.Unreserved) ?? 0,
60
64
  ") Seattle"
61
65
  ] }) })
62
66
  ] }),
63
- /* @__PURE__ */ e(l, { size: "sm", children: h })
67
+ /* @__PURE__ */ i(s, { size: "sm", children: u })
64
68
  ] });
65
69
  }
66
- return i === "available" ? /* @__PURE__ */ e("div", { className: s.tooltipContent, children: /* @__PURE__ */ e(l, { size: "sm", children: "While this part is not currently in stock, we will arrange to get it to you asap, and your CSR will keep you advised of the lead time." }) }) : i === "discontinued" ? /* @__PURE__ */ e("div", { className: s.tooltipContent, children: /* @__PURE__ */ e(l, { size: "sm", children: "Unfortunately, this item is no longer available to purchase." }) }) : /* @__PURE__ */ e(m, {});
70
+ return t === "available" ? /* @__PURE__ */ i("div", { className: l.tooltipContent, children: /* @__PURE__ */ i(s, { size: "sm", children: "While this part is not currently in stock, we will arrange to get it to you asap, and your CSR will keep you advised of the lead time." }) }) : t === "discontinued" ? /* @__PURE__ */ i("div", { className: l.tooltipContent, children: /* @__PURE__ */ i(s, { size: "sm", children: "Unfortunately, this item is no longer available to purchase." }) }) : /* @__PURE__ */ i(_, {});
67
71
  }
68
72
  export {
69
- L as Availability
73
+ D as Availability
70
74
  };
@@ -1,87 +1,87 @@
1
- import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
- import { Image as w } from "../../atoms/Image/Image.js";
3
- import { Link as $ } from "../../atoms/Link/Link.js";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
+ import { Image as P } from "../../atoms/Image/Image.js";
3
+ import { Link as j } from "../../atoms/Link/Link.js";
4
4
  import { Text as n } from "../../atoms/Text/Text.js";
5
- import { Availability as P } from "../../molecules/Availability/Availability.js";
6
- import { Pricing as D } from "../../molecules/Pricing/Pricing.js";
7
- import { AddToCart as V } from "../../molecules/AddToCart/AddToCart.js";
8
- import { CustomWizardBadge as k } from "../../molecules/CustomWizardBadge/CustomWizardBadge.js";
9
- import { c as E } from "../../clsx-OuTLNxxd.js";
10
- import '../../assets/Product.css';const G = "_productCard_1qkjr_3", J = "_sm_1qkjr_16", M = "_productInformation_1qkjr_26", O = "_purchaseInformation_1qkjr_33", R = "_addToCart_1qkjr_41", X = "_addToCartButton_1qkjr_44", Y = "_partNumber_1qkjr_54", Z = "_partNumberLabel_1qkjr_61", H = "_productTile_1qkjr_65", y = "_productData_1qkjr_93", L = "_purchase_1qkjr_33", K = "_attributeContainer_1qkjr_130", Q = "_elevated_1qkjr_178", S = "_noImage_1qkjr_184", r = {
11
- productCard: G,
12
- sm: J,
13
- productInformation: M,
14
- purchaseInformation: O,
15
- addToCart: R,
16
- addToCartButton: X,
17
- partNumber: Y,
18
- partNumberLabel: Z,
19
- productTile: H,
20
- productData: y,
21
- purchase: L,
22
- attributeContainer: K,
23
- elevated: Q,
24
- noImage: S
5
+ import { Availability as D } from "../../molecules/Availability/Availability.js";
6
+ import { Pricing as V } from "../../molecules/Pricing/Pricing.js";
7
+ import { AddToCart as E } from "../../molecules/AddToCart/AddToCart.js";
8
+ import { CustomWizardBadge as F } from "../../molecules/CustomWizardBadge/CustomWizardBadge.js";
9
+ import { c as G } from "../../clsx-OuTLNxxd.js";
10
+ import '../../assets/Product.css';const M = "_productCard_h4utb_3", O = "_sm_h4utb_16", R = "_productInformation_h4utb_26", X = "_purchaseInformation_h4utb_33", Y = "_addToCart_h4utb_41", Z = "_addToCartButton_h4utb_44", q = "_partNumber_h4utb_54", H = "_partNumberLabel_h4utb_61", y = "_productTile_h4utb_65", L = "_productData_h4utb_92", K = "_purchase_h4utb_33", Q = "_attributeContainer_h4utb_129", S = "_elevated_h4utb_177", U = "_noImage_h4utb_183", t = {
11
+ productCard: M,
12
+ sm: O,
13
+ productInformation: R,
14
+ purchaseInformation: X,
15
+ addToCart: Y,
16
+ addToCartButton: Z,
17
+ partNumber: q,
18
+ partNumberLabel: H,
19
+ productTile: y,
20
+ productData: L,
21
+ purchase: K,
22
+ attributeContainer: Q,
23
+ elevated: S,
24
+ noImage: U
25
25
  };
26
- function nr({
27
- productView: F,
26
+ function nt({
27
+ productView: J,
28
28
  itemKey: c,
29
29
  partNumber: s,
30
- productDescription: b,
30
+ productDescription: i,
31
31
  availDescription: f,
32
32
  availId: m,
33
33
  inventory: N,
34
34
  productHref: T,
35
- customWizardUrl: l,
36
- customWizardText: j = "Customize",
37
- customWizardColorToken: C = "secondary",
38
- priceLabel: g,
39
- price: u,
35
+ customWizardUrl: u,
36
+ customWizardText: C = "Customize",
37
+ customWizardColorToken: g = "secondary",
38
+ priceLabel: v,
39
+ price: l,
40
40
  imgSrc: o,
41
41
  attributes: _,
42
- className: q,
43
- onAddToCart: v,
44
- flat: x,
45
- size: a = "md",
46
- showQuantity: i = !0,
42
+ className: x,
43
+ onAddToCart: I,
44
+ flat: B,
45
+ size: r = "md",
46
+ showQuantity: b = !0,
47
47
  onLinkClicked: d,
48
- requiresUnitDetails: I = !1,
49
- maxQuantity: B,
50
- ...A
48
+ requiresUnitDetails: A = !1,
49
+ maxQuantity: w,
50
+ ...$
51
51
  }) {
52
- const p = a === "sm" ? "xs" : "sm";
53
- return F === "Card" ? /* @__PURE__ */ e(
52
+ const h = r === "sm" ? "xs" : "sm";
53
+ return J === "Card" ? /* @__PURE__ */ e(
54
54
  "div",
55
55
  {
56
- className: E(
57
- r.productCard,
58
- a && r[a],
59
- q,
60
- !x && r.elevated,
61
- !o && r.noImage
56
+ className: G(
57
+ t.productCard,
58
+ r && t[r],
59
+ x,
60
+ !B && t.elevated,
61
+ !o && t.noImage
62
62
  ),
63
- ...A,
63
+ ...$,
64
64
  children: [
65
- l && /* @__PURE__ */ t(k, { href: l, text: j, colorToken: C }),
66
- o && /* @__PURE__ */ t(
67
- w,
65
+ u && /* @__PURE__ */ a(F, { href: u, text: C, colorToken: g }),
66
+ o && /* @__PURE__ */ a(
67
+ P,
68
68
  {
69
69
  src: o,
70
70
  alt: `${s} product image`,
71
- height: a === "sm" ? 78 : 96,
72
- width: a === "sm" ? 78 : 96
71
+ height: r === "sm" ? 78 : 96,
72
+ width: r === "sm" ? 78 : 96
73
73
  }
74
74
  ),
75
- /* @__PURE__ */ e("div", { className: r.productInformation, children: [
76
- /* @__PURE__ */ t($, { onClick: () => d == null ? void 0 : d(c), size: a, href: T || "#", children: b }),
77
- /* @__PURE__ */ e("div", { className: r.partNumber, children: [
78
- /* @__PURE__ */ t(n, { size: p, className: r.partNumberLabel, children: "Part #" }),
79
- /* @__PURE__ */ t(n, { size: p, weight: "semibold", children: s })
75
+ /* @__PURE__ */ e("div", { className: t.productInformation, children: [
76
+ /* @__PURE__ */ a(j, { onClick: () => d == null ? void 0 : d(c), size: r, href: T || "#", children: i }),
77
+ /* @__PURE__ */ e("div", { className: t.partNumber, children: [
78
+ /* @__PURE__ */ a(n, { size: h, className: t.partNumberLabel, children: "Part #" }),
79
+ /* @__PURE__ */ a(n, { size: h, weight: "semibold", children: s })
80
80
  ] })
81
81
  ] }),
82
- /* @__PURE__ */ e("div", { className: r.purchaseInformation, children: [
83
- m && /* @__PURE__ */ t(
84
- P,
82
+ /* @__PURE__ */ e("div", { className: t.purchaseInformation, children: [
83
+ m && /* @__PURE__ */ a(
84
+ D,
85
85
  {
86
86
  availId: m,
87
87
  availDescription: f,
@@ -89,55 +89,55 @@ function nr({
89
89
  enableTooltip: !0
90
90
  }
91
91
  ),
92
- u && /* @__PURE__ */ t(D, { pricingLabel: g, price: u })
92
+ l && /* @__PURE__ */ a(V, { pricingLabel: v, price: l })
93
93
  ] }),
94
- /* @__PURE__ */ t(
95
- V,
94
+ /* @__PURE__ */ a(
95
+ E,
96
96
  {
97
97
  itemKey: c,
98
- onAdd: v,
99
- max: B,
100
- className: r.addToCart,
101
- addButtonClassName: r.addToCartButton,
102
- addButtonVariant: i ? "cta-primary" : "secondary",
103
- size: a,
98
+ onAdd: I,
99
+ max: w,
100
+ className: t.addToCart,
101
+ addButtonClassName: t.addToCartButton,
102
+ addButtonVariant: b ? "cta-primary" : "secondary",
103
+ size: r,
104
104
  buttonDoneText: "",
105
- buttonText: i ? "Add" : "Add to Cart",
106
- showQuantity: i,
107
- requiresUnitDetails: I
105
+ buttonText: b ? "Add" : "Add to Cart",
106
+ showQuantity: b,
107
+ requiresUnitDetails: A
108
108
  }
109
109
  )
110
110
  ]
111
111
  }
112
- ) : /* @__PURE__ */ e("div", { className: E(
113
- r.productTile,
114
- q,
115
- a && r[a],
116
- !x && r.elevated,
117
- !o && r.noImage
118
- ), ...A, children: [
119
- l && /* @__PURE__ */ t(k, { href: l, text: j, colorToken: C }),
120
- o && /* @__PURE__ */ t(
121
- w,
112
+ ) : /* @__PURE__ */ e("div", { className: G(
113
+ t.productTile,
114
+ x,
115
+ r && t[r],
116
+ !B && t.elevated,
117
+ !o && t.noImage
118
+ ), ...$, children: [
119
+ u && /* @__PURE__ */ a(F, { href: u, text: C, colorToken: g }),
120
+ o && /* @__PURE__ */ a(
121
+ P,
122
122
  {
123
123
  src: o,
124
124
  alt: `${s} product image`,
125
- height: a === "sm" ? 86 : 108,
126
- width: a === "sm" ? 86 : 108
125
+ height: r === "sm" ? 86 : 108,
126
+ width: r === "sm" ? 86 : 108
127
127
  }
128
128
  ),
129
- /* @__PURE__ */ e("div", { className: r.productData, children: [
130
- /* @__PURE__ */ e("div", { className: r.productInformation, children: [
131
- /* @__PURE__ */ t($, { onClick: () => d == null ? void 0 : d(c), size: a, href: T || "#", children: b }),
132
- /* @__PURE__ */ e("div", { className: r.partNumber, children: [
133
- /* @__PURE__ */ t(n, { size: p, className: r.partNumberLabel, children: "Part #" }),
134
- /* @__PURE__ */ t(n, { size: p, weight: "semibold", children: s })
129
+ /* @__PURE__ */ e("div", { className: t.productData, children: [
130
+ /* @__PURE__ */ e("div", { className: t.productInformation, children: [
131
+ /* @__PURE__ */ a(j, { onClick: () => d == null ? void 0 : d(c), size: r, href: T || "#", children: i }),
132
+ /* @__PURE__ */ e("div", { className: t.partNumber, children: [
133
+ /* @__PURE__ */ a(n, { size: h, className: t.partNumberLabel, children: "Part #" }),
134
+ /* @__PURE__ */ a(n, { size: h, weight: "semibold", children: s })
135
135
  ] })
136
136
  ] }),
137
- /* @__PURE__ */ e("div", { className: r.purchase, children: [
138
- /* @__PURE__ */ e("div", { className: r.purchaseInformation, children: [
139
- m && /* @__PURE__ */ t(
140
- P,
137
+ /* @__PURE__ */ e("div", { className: t.purchase, children: [
138
+ /* @__PURE__ */ e("div", { className: t.purchaseInformation, children: [
139
+ m && /* @__PURE__ */ a(
140
+ D,
141
141
  {
142
142
  availId: m,
143
143
  availDescription: f,
@@ -145,20 +145,20 @@ function nr({
145
145
  enableTooltip: !0
146
146
  }
147
147
  ),
148
- u && /* @__PURE__ */ t(D, { pricingLabel: g, price: u })
148
+ l && /* @__PURE__ */ a(V, { pricingLabel: v, price: l })
149
149
  ] }),
150
- /* @__PURE__ */ t(V, { size: a, itemKey: c, onAdd: v, max: B, className: r.addToCart, addButtonClassName: r.addToCartButton, requiresUnitDetails: I })
150
+ /* @__PURE__ */ a(E, { size: r, itemKey: c, onAdd: I, max: w, className: t.addToCart, addButtonClassName: t.addToCartButton, requiresUnitDetails: A })
151
151
  ] }),
152
- _ && _.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: _.map((h) => /* @__PURE__ */ e("li", { children: [
152
+ _ && _.length > 0 && /* @__PURE__ */ a("ul", { className: t.attributeContainer, children: _.map((p) => /* @__PURE__ */ e("li", { children: [
153
153
  /* @__PURE__ */ e(n, { size: "xs", weight: "light", children: [
154
- h.label,
154
+ p.label,
155
155
  ":"
156
156
  ] }),
157
- /* @__PURE__ */ t(n, { size: "xs", weight: "semibold", children: h.value })
158
- ] }, `${h.label}.${h.value}`)) })
157
+ /* @__PURE__ */ a(n, { size: "xs", weight: "semibold", children: p.value })
158
+ ] }, `${p.label}.${p.value}`)) })
159
159
  ] })
160
160
  ] });
161
161
  }
162
162
  export {
163
- nr as Product
163
+ nt as Product
164
164
  };
@@ -1,20 +1,20 @@
1
1
  import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
2
  import { Text as h } from "../../atoms/Text/Text.js";
3
- import { Link as d } from "../../atoms/Link/Link.js";
4
- import { Icon as L } from "../../atoms/Icon/Icon.js";
3
+ import { Link as m } from "../../atoms/Link/Link.js";
4
+ import { Icon as k } from "../../atoms/Icon/Icon.js";
5
5
  import { c as r } from "../../clsx-OuTLNxxd.js";
6
- import { Image as N } from "../../atoms/Image/Image.js";
7
- import '../../assets/SuggestionDropdown.css';const v = "_suggestionDropdown_1udz7_1", y = "_leftColumn_1udz7_31", F = "_leftColumnFullWidth_1udz7_55", H = "_suggestionSectionFullHeight_1udz7_63", $ = "_rightColumn_1udz7_73", D = "_categorySection_1udz7_95", w = "_suggestions_1udz7_101", b = "_categories_1udz7_103", T = "_suggestionsFullHeight_1udz7_117", k = "_suggestionLink_1udz7_147", q = "_categoryLink_1udz7_149", W = "_activeOption_1udz7_163", j = "_itemList_1udz7_175", M = "_item_1udz7_175", O = "_activeItem_1udz7_209", S = "_itemInfo_1udz7_243", K = "_recentSearches_1udz7_253", R = "_recentSearchesHeader_1udz7_267", A = "_recentSearchesList_1udz7_275", B = "_recentSearch_1udz7_253", E = "_recentSearchLink_1udz7_305", G = "_clearRecentSearch_1udz7_321", t = {
8
- suggestionDropdown: v,
9
- leftColumn: y,
10
- leftColumnFullWidth: F,
11
- suggestionSectionFullHeight: H,
12
- rightColumn: $,
13
- categorySection: D,
14
- suggestions: w,
15
- categories: b,
16
- suggestionsFullHeight: T,
17
- suggestionLink: k,
6
+ import { Image as p } from "../../atoms/Image/Image.js";
7
+ import '../../assets/SuggestionDropdown.css';const L = "_suggestionDropdown_2kbdw_1", N = "_leftColumn_2kbdw_31", v = "_leftColumnFullWidth_2kbdw_55", y = "_suggestionSectionFullHeight_2kbdw_63", F = "_rightColumn_2kbdw_73", H = "_categorySection_2kbdw_95", $ = "_suggestions_2kbdw_101", z = "_categories_2kbdw_103", D = "_suggestionsFullHeight_2kbdw_117", T = "_suggestionLink_2kbdw_149", q = "_categoryLink_2kbdw_151", W = "_activeOption_2kbdw_181", j = "_itemList_2kbdw_189", M = "_item_2kbdw_189", O = "_activeItem_2kbdw_243", S = "_itemInfo_2kbdw_277", K = "_recentSearches_2kbdw_287", R = "_recentSearchesHeader_2kbdw_301", x = "_recentSearchesList_2kbdw_309", A = "_recentSearch_2kbdw_287", B = "_recentSearchLink_2kbdw_339", E = "_clearRecentSearch_2kbdw_355", t = {
8
+ suggestionDropdown: L,
9
+ leftColumn: N,
10
+ leftColumnFullWidth: v,
11
+ suggestionSectionFullHeight: y,
12
+ rightColumn: F,
13
+ categorySection: H,
14
+ suggestions: $,
15
+ categories: z,
16
+ suggestionsFullHeight: D,
17
+ suggestionLink: T,
18
18
  categoryLink: q,
19
19
  activeOption: W,
20
20
  itemList: j,
@@ -23,43 +23,43 @@ import '../../assets/SuggestionDropdown.css';const v = "_suggestionDropdown_1udz
23
23
  itemInfo: S,
24
24
  recentSearches: K,
25
25
  recentSearchesHeader: R,
26
- recentSearchesList: A,
27
- recentSearch: B,
28
- recentSearchLink: E,
29
- clearRecentSearch: G
26
+ recentSearchesList: x,
27
+ recentSearch: A,
28
+ recentSearchLink: B,
29
+ clearRecentSearch: E
30
30
  };
31
- function Z({
31
+ function Y({
32
32
  terms: n,
33
33
  categories: c,
34
- items: m,
35
- view: p = "suggestions",
36
- recentSearches: _ = [],
34
+ items: u,
35
+ view: f = "suggestions",
36
+ recentSearches: d = [],
37
37
  onClearRecentSearch: g,
38
38
  onSuggestionClick: l,
39
39
  activeOptionIndex: a = -1,
40
- optionIdPrefix: u,
41
- onKeyDown: z,
42
- className: f
40
+ optionIdPrefix: _,
41
+ onKeyDown: w,
42
+ className: b
43
43
  }) {
44
- return p === "recent-searches" ? /* @__PURE__ */ o(
44
+ return f === "recent-searches" ? /* @__PURE__ */ o(
45
45
  "div",
46
46
  {
47
- id: u,
47
+ id: _,
48
48
  role: "listbox",
49
- className: r(t.suggestionDropdown, t.recentSearches, f),
50
- onKeyDown: z,
49
+ className: r(t.suggestionDropdown, t.recentSearches, b),
50
+ onKeyDown: w,
51
51
  onMouseDown: (e) => e.preventDefault(),
52
52
  children: [
53
53
  /* @__PURE__ */ s("div", { className: t.recentSearchesHeader, children: /* @__PURE__ */ s(h, { size: "xxs", colorToken: "quaternary", children: "Recent Searches" }) }),
54
- /* @__PURE__ */ s("ol", { className: t.recentSearchesList, children: _.map((e) => /* @__PURE__ */ o("li", { className: t.recentSearch, children: [
54
+ /* @__PURE__ */ s("ol", { className: t.recentSearchesList, children: d.map((e) => /* @__PURE__ */ o("li", { className: t.recentSearch, children: [
55
55
  /* @__PURE__ */ s(
56
- d,
56
+ m,
57
57
  {
58
58
  href: e.url,
59
- id: `${u}-${_.indexOf(e)}`,
59
+ id: `${_}-${d.indexOf(e)}`,
60
60
  role: "option",
61
- "aria-selected": a === _.indexOf(e),
62
- className: r(t.recentSearchLink, { [t.activeOption]: a === _.indexOf(e) }),
61
+ "aria-selected": a === d.indexOf(e),
62
+ className: r(t.recentSearchLink, { [t.activeOption]: a === d.indexOf(e) }),
63
63
  onClick: () => l == null ? void 0 : l(e),
64
64
  children: /* @__PURE__ */ s(h, { size: "sm", children: e.term })
65
65
  }
@@ -71,22 +71,22 @@ function Z({
71
71
  className: t.clearRecentSearch,
72
72
  "aria-label": `Clear recent search: ${e.term}`,
73
73
  onClick: () => g == null ? void 0 : g(e),
74
- children: /* @__PURE__ */ s(L, { iconKey: "fa-regular fa-xmark", size: "sm" })
74
+ children: /* @__PURE__ */ s(k, { iconKey: "fa-regular fa-xmark", size: "sm" })
75
75
  }
76
76
  )
77
77
  ] }, e.url)) })
78
78
  ]
79
79
  }
80
- ) : /* @__PURE__ */ o("div", { id: u, role: "listbox", className: r(t.suggestionDropdown, f), onKeyDown: z, onMouseDown: (e) => e.preventDefault(), children: [
81
- (n.length > 0 || c.length > 0) && /* @__PURE__ */ o("div", { className: r(t.leftColumn, { [t.leftColumnFullWidth]: m.length === 0 }), children: [
80
+ ) : /* @__PURE__ */ o("div", { id: _, role: "listbox", className: r(t.suggestionDropdown, b), onKeyDown: w, onMouseDown: (e) => e.preventDefault(), children: [
81
+ (n.length > 0 || c.length > 0) && /* @__PURE__ */ o("div", { className: r(t.leftColumn, { [t.leftColumnFullWidth]: u.length === 0 }), children: [
82
82
  n.length > 0 && /* @__PURE__ */ s("div", { className: r(t.suggestionSection, { [t.suggestionSectionFullHeight]: c.length === 0 }), children: /* @__PURE__ */ o("div", { className: r(t.suggestions, { [t.suggestionsFullHeight]: c.length === 0 }), children: [
83
83
  /* @__PURE__ */ s(h, { size: "xxs", colorToken: "quaternary", children: "Suggestions" }),
84
84
  n.map(
85
85
  (e, i) => /* @__PURE__ */ s(h, { size: "sm", children: /* @__PURE__ */ s(
86
- d,
86
+ m,
87
87
  {
88
88
  href: e.url,
89
- id: `${u}-${i}`,
89
+ id: `${_}-${i}`,
90
90
  role: "option",
91
91
  "aria-selected": a === i,
92
92
  className: r(t.suggestionLink, { [t.activeOption]: a === i }),
@@ -100,10 +100,10 @@ function Z({
100
100
  /* @__PURE__ */ s(h, { size: "xxs", colorToken: "quaternary", children: "Categories" }),
101
101
  c.map(
102
102
  (e, i) => /* @__PURE__ */ s(h, { size: "sm", children: /* @__PURE__ */ s(
103
- d,
103
+ m,
104
104
  {
105
105
  href: e.url,
106
- id: `${u}-${n.length + i}`,
106
+ id: `${_}-${n.length + i}`,
107
107
  role: "option",
108
108
  "aria-selected": a === n.length + i,
109
109
  className: r(t.categoryLink, { [t.activeOption]: a === n.length + i }),
@@ -114,20 +114,20 @@ function Z({
114
114
  )
115
115
  ] }) })
116
116
  ] }),
117
- m.length > 0 && /* @__PURE__ */ s("div", { className: t.rightColumn, children: /* @__PURE__ */ s("ol", { className: t.itemList, children: m.map(
117
+ u.length > 0 && /* @__PURE__ */ s("div", { className: t.rightColumn, children: /* @__PURE__ */ s("ol", { className: t.itemList, children: u.map(
118
118
  (e, i) => /* @__PURE__ */ s("li", { className: r(t.item, { [t.activeItem]: a === n.length + c.length + i }), children: /* @__PURE__ */ o(
119
- d,
119
+ m,
120
120
  {
121
121
  href: e.url,
122
- id: `${u}-${n.length + c.length + i}`,
122
+ id: `${_}-${n.length + c.length + i}`,
123
123
  role: "option",
124
124
  "aria-selected": a === n.length + c.length + i,
125
125
  onClick: () => l == null ? void 0 : l(),
126
126
  children: [
127
- /* @__PURE__ */ s(N, { src: e.image, alt: `${e.description} product image`, height: 72, width: 72 }),
127
+ /* @__PURE__ */ s(p, { src: e.image, alt: `${e.description} product image`, height: 72, width: 72 }),
128
128
  /* @__PURE__ */ o("div", { className: t.itemInfo, children: [
129
129
  /* @__PURE__ */ s(h, { size: "sm", children: e.description }),
130
- /* @__PURE__ */ s(h, { size: "sm", colorToken: "quaternary", children: e.itemId })
130
+ /* @__PURE__ */ s(h, { size: "xs", colorToken: "quaternary", children: e.itemId })
131
131
  ] })
132
132
  ]
133
133
  }
@@ -136,5 +136,5 @@ function Z({
136
136
  ] });
137
137
  }
138
138
  export {
139
- Z as SuggestionDropdown
139
+ Y as SuggestionDropdown
140
140
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.239",
4
+ "version": "0.0.241",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",