@caseparts-org/caseblocks 0.0.67 → 0.0.68

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,48 @@
1
+ import { jsxs as e, jsx as c } from "react/jsx-runtime";
2
+ import { Icon as s } from "./atoms/Icon/Icon.js";
3
+ import { c as r } from "./clsx-OuTLNxxd.js";
4
+ import './assets/CarouselArrowButtons.css';const _ = "_main_184c0_1", a = "_viewport_184c0_4", u = "_track_184c0_8", i = "_slide_184c0_12", d = "_button_184c0_17", l = "_prevButton_184c0_33", p = "_nextButton_184c0_36", m = "_carouselDots_184c0_39", f = "_dot_184c0_47", v = "_dotSelected_184c0_55", t = {
5
+ main: _,
6
+ viewport: a,
7
+ track: u,
8
+ slide: i,
9
+ button: d,
10
+ prevButton: l,
11
+ nextButton: p,
12
+ carouselDots: m,
13
+ dot: f,
14
+ dotSelected: v
15
+ }, h = ({
16
+ children: o,
17
+ ...n
18
+ }) => /* @__PURE__ */ e(
19
+ "button",
20
+ {
21
+ className: r(t.button, t.prevButton),
22
+ type: "button",
23
+ ...n,
24
+ children: [
25
+ /* @__PURE__ */ c(s, { iconKey: "fa-sharp fa-solid fa-chevron-left", size: "md" }),
26
+ o
27
+ ]
28
+ }
29
+ ), y = ({
30
+ children: o,
31
+ ...n
32
+ }) => /* @__PURE__ */ e(
33
+ "button",
34
+ {
35
+ className: r(t.button, t.nextButton),
36
+ type: "button",
37
+ ...n,
38
+ children: [
39
+ /* @__PURE__ */ c(s, { iconKey: "fa-sharp fa-solid fa-chevron-right", size: "md" }),
40
+ o
41
+ ]
42
+ }
43
+ );
44
+ export {
45
+ y as N,
46
+ h as P,
47
+ t as s
48
+ };
@@ -1 +1 @@
1
- ._root_1o5so_2{position:relative;display:grid;grid-template-columns:repeat(4,1fr);background-size:cover;background-position:center;overflow:hidden;box-sizing:border-box;align-items:center}._content_1o5so_13{box-sizing:border-box;width:100%;display:flex;flex-direction:column;gap:var(--spacing-spacing-default, 16px)}._variant_hero_1o5so_22._align_left_1o5so_22 ._content_1o5so_13{grid-column:1 / span 2;padding:var(--spacing-spacing-2xl, 3rem)}@media (max-width: 1280px){._variant_hero_1o5so_22._align_left_1o5so_22 ._content_1o5so_13{grid-column:1 / span 3}}._variant_hero_1o5so_22._align_right_1o5so_29 ._content_1o5so_13{grid-column:3 / span 2;padding:var(--spacing-spacing-2xl, 3rem)}@media (max-width: 1280px){._variant_hero_1o5so_22._align_right_1o5so_29 ._content_1o5so_13{grid-column:3 / span 3}}._variant_promo_1o5so_37._align_left_1o5so_22 ._content_1o5so_13{grid-column:1 / span 3;padding:var(--spacing-spacing-default, 1rem)}._variant_promo_1o5so_37._align_right_1o5so_29 ._content_1o5so_13{grid-column:2 / span 3;padding:var(--spacing-spacing-default, 1rem)}@media (max-width: 1280px){._variant_hero_1o5so_22 ._header_1o5so_49{font-size:var(--font-size-4xl);line-height:var(--line-height-4xl)}._variant_hero_1o5so_22 ._description_1o5so_53{font-size:var(--font-size-sm);line-height:var(--line-height-sm);margin-top:-12px}}@media (max-width: 768px){._variant_hero_1o5so_22._align_left_1o5so_22 ._content_1o5so_13,._variant_hero_1o5so_22._align_right_1o5so_29 ._content_1o5so_13{padding:var(--spacing-spacing-default)}._content_1o5so_13{gap:var(--spacing-spacing-3xs)}._variant_hero_1o5so_22 ._header_1o5so_49{font-size:var(--font-size-md);line-height:var(--line-height-md)}._variant_hero_1o5so_22 ._description_1o5so_53{font-size:var(--font-size-xs);line-height:var(--line-height-xs);margin-top:0}}._align_left_1o5so_22 ._content_1o5so_13{align-items:flex-start;text-align:left;justify-self:start}._align_right_1o5so_29 ._content_1o5so_13{align-items:flex-end;text-align:right;justify-self:end}._content_1o5so_13>*{position:relative;z-index:1}._overlay_dark_1o5so_99 ._header_1o5so_49,._overlay_dark_1o5so_99 ._description_1o5so_53,._overlay_none_1o5so_101 ._header_1o5so_49,._overlay_none_1o5so_101 ._description_1o5so_53{color:var(--color-neutrals-neutral-1)}._overlay_light_1o5so_106 ._header_1o5so_49{color:var(--color-brand-primary-primary-teal-blue)}._overlay_light_1o5so_106 ._description_1o5so_53{color:#000}
1
+ ._root_sclg6_2{position:relative;display:grid;grid-template-columns:repeat(4,1fr);background-size:cover;background-position:center;overflow:hidden;box-sizing:border-box;align-items:center}._content_sclg6_13{box-sizing:border-box;width:100%;display:flex;flex-direction:column;gap:var(--spacing-spacing-default, 16px)}@media (max-width: 768px){._content_sclg6_13{gap:var(--spacing-spacing-3xs)}}._variant_hero_sclg6_26._align_left_sclg6_26 ._content_sclg6_13{grid-column:1 / span 2;padding:var(--spacing-spacing-2xl, 3rem)}@media (max-width: 1280px){._variant_hero_sclg6_26._align_left_sclg6_26 ._content_sclg6_13{grid-column:1 / span 3}}@media (max-width: 768px){._variant_hero_sclg6_26._align_left_sclg6_26 ._content_sclg6_13{padding:var(--spacing-spacing-default)}}._variant_hero_sclg6_26._align_right_sclg6_37 ._content_sclg6_13{grid-column:3 / span 2;padding:var(--spacing-spacing-2xl, 3rem)}@media (max-width: 1280px){._variant_hero_sclg6_26._align_right_sclg6_37 ._content_sclg6_13{grid-column:2 / span 3}}@media (max-width: 768px){._variant_hero_sclg6_26._align_right_sclg6_37 ._content_sclg6_13{padding:var(--spacing-spacing-default)}}._variant_promo_sclg6_48._align_left_sclg6_26 ._content_sclg6_13{grid-column:1 / span 3;padding:var(--spacing-spacing-default, 1rem)}._variant_promo_sclg6_48._align_right_sclg6_37 ._content_sclg6_13{grid-column:2 / span 3;padding:var(--spacing-spacing-default, 1rem)}@media (max-width: 1280px){._variant_hero_sclg6_26 ._header_sclg6_59{font-size:var(--font-size-4xl);line-height:var(--line-height-4xl)}}@media (max-width: 768px){._variant_hero_sclg6_26 ._header_sclg6_59{font-size:var(--font-size-xl);line-height:var(--line-height-xl)}}@media (max-width: 1280px){._variant_hero_sclg6_26 ._description_sclg6_70{font-size:var(--font-size-sm);line-height:var(--line-height-sm);margin-top:-12px}}@media (max-width: 768px){._variant_hero_sclg6_26 ._description_sclg6_70{font-size:var(--font-size-xxs);line-height:var(--line-height-xxs);margin-top:0}}._align_left_sclg6_26 ._content_sclg6_13{align-items:flex-start;text-align:left;justify-self:start}._align_right_sclg6_37 ._content_sclg6_13{align-items:flex-end;text-align:right;justify-self:end}._content_sclg6_13>*{position:relative;z-index:1}._overlay_dark_sclg6_102 ._header_sclg6_59,._overlay_dark_sclg6_102 ._description_sclg6_70,._overlay_none_sclg6_104 ._header_sclg6_59,._overlay_none_sclg6_104 ._description_sclg6_70{color:var(--color-neutrals-neutral-1)}._overlay_light_sclg6_109 ._header_sclg6_59{color:var(--color-brand-primary-primary-teal-blue)}._overlay_light_sclg6_109 ._description_sclg6_70{color:#000}
@@ -1 +1 @@
1
- ._main_1st4s_1{position:relative}._viewport_1st4s_4{overflow:hidden;width:100%}._track_1st4s_8{display:flex;touch-action:pan-y}._slide_1st4s_12{flex:0 0 100%;min-width:0}._button_1st4s_17{position:absolute;top:50%;transform:translateY(-50%);background-color:transparent;padding:0;margin:0;border:none}._button_1st4s_17 path{fill:var(--color-neutrals-neutral-1);opacity:.6}._button_1st4s_17:disabled path{opacity:.2}._prevButton_1st4s_33{left:0}._nextButton_1st4s_36{right:0}._carouselDots_1st4s_39{position:absolute;bottom:var(--spacing-spacing-default);left:50%;transform:translate(-50%);display:flex;gap:var(--spacing-spacing-2xs)}._dot_1st4s_47{width:40px;height:2px;background:var(--color-neutrals-neutral-1);border:none;cursor:pointer;opacity:.5}._dotSelected_1st4s_55{opacity:1;width:80px}
1
+ ._main_184c0_1{position:relative}._viewport_184c0_4{overflow:hidden;width:100%}._track_184c0_8{display:flex;touch-action:pan-y}._slide_184c0_12{flex:0 0 100%;min-width:0}._button_184c0_17{position:absolute;top:50%;transform:translateY(-50%);background-color:transparent;padding:0;margin:0;border:none}._button_184c0_17 path{fill:var(--color-neutrals-neutral-1);opacity:.6}._button_184c0_17:disabled path{opacity:.2}._prevButton_184c0_33{left:var(--spacing-0-25)}._nextButton_184c0_36{right:var(--spacing-0-25)}._carouselDots_184c0_39{position:absolute;bottom:var(--spacing-spacing-default);left:50%;transform:translate(-50%);display:flex;gap:var(--spacing-spacing-2xs)}._dot_184c0_47{width:40px;height:2px;background:var(--color-neutrals-neutral-1);border:none;cursor:pointer;opacity:.5}._dotSelected_184c0_55{opacity:1;width:80px}
@@ -1 +1 @@
1
- ._cart_1uglw_2{position:relative;border:none;padding:0;margin:0;background-color:transparent}._count_1uglw_9{position:absolute;top:4px;left:17px;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)}._cartTooltip_1uglw_24{padding:var(--spacing-1)}._cartContainer_1uglw_27{height:calc(100vh - 120px);width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto auto;gap:var(--spacing-1)}._cartItems_1uglw_35{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_1uglw_35 ul{margin:0;padding:0}._cartItems_1uglw_35 li{display:grid;grid-template-columns:auto 1fr;gap:var(--spacing-0-5);align-items:center;box-sizing:border-box;position:relative;list-style:none;margin:0;padding:var(--spacing-0-5);width:100%;border-bottom:1px solid var(--color-neutrals-neutral-2)}._topRow_1uglw_57{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}._itemInfo_1uglw_63{display:flex;flex-direction:column;align-items:flex-start}._purchaseInformation_1uglw_68{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._itemManagement_1uglw_75{display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-spacing-3xs)}._cartItems_1uglw_35 li p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._cartItems_1uglw_35 img{height:40px;width:40px;object-fit:contain}._removeItem_1uglw_93{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer}._noItems_1uglw_101{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_1uglw_108{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}
1
+ ._cart_11wxn_2{position:relative;border:none;padding:0;margin:0;background-color:transparent}._count_11wxn_9{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)}._cartTooltip_11wxn_24{padding:var(--spacing-1)}._cartContainer_11wxn_27{height:calc(100vh - 120px);width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto auto;gap:var(--spacing-1)}._cartItems_11wxn_35{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_11wxn_35 ul{margin:0;padding:0}._cartItems_11wxn_35 li{display:grid;grid-template-columns:auto 1fr;gap:var(--spacing-0-5);align-items:center;box-sizing:border-box;position:relative;list-style:none;margin:0;padding:var(--spacing-0-5);width:100%;border-bottom:1px solid var(--color-neutrals-neutral-2)}._topRow_11wxn_57{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}._itemInfo_11wxn_63{display:flex;flex-direction:column;align-items:flex-start}._purchaseInformation_11wxn_68{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._itemManagement_11wxn_75{display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-spacing-3xs)}._cartItems_11wxn_35 li p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._cartItems_11wxn_35 img{height:40px;width:40px;object-fit:contain}._removeItem_11wxn_93{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer}._noItems_11wxn_101{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_11wxn_108{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}
@@ -1 +1 @@
1
- ._icon-sm_nwr4s_1{font-size:var(--font-size-md);padding:calc(var(--font-size-md) / 4)}._icon-md_nwr4s_6{font-size:var(--font-size-2xl);padding:calc(var(--font-size-2xl) / 4)}._icon-lg_nwr4s_11{font-size:var(--font-size-3xl);padding:calc(var(--font-size-3xl) / 4)}._icon-sm_nwr4s_1,._icon-md_nwr4s_6,._icon-lg_nwr4s_11{display:inline-flex;align-items:center;justify-content:center;aspect-ratio:1 / 1}
1
+ ._icon-sm_7w9u2_1{--icon-size: var(--font-size-md);--icon-padding: calc(var(--font-size-md) / 4)}._icon-md_7w9u2_5{--icon-size: var(--font-size-2xl);--icon-padding: calc(var(--font-size-md) / 4)}._icon-lg_7w9u2_9{--icon-size: var(--font-size-3xl);--icon-padding: calc(var(--font-size-lg) / 4)}._wrapper_7w9u2_15{display:inline-flex;width:var(--icon-size);height:var(--icon-size);aspect-ratio:1 / 1;align-items:center;justify-content:center;line-height:1;padding:var(--icon-padding)}._wrapper_7w9u2_15>i,._wrapper_7w9u2_15>svg{font-size:var(--icon-size);width:100%;height:100%;max-width:100%;max-height:100%}._iconColor-default_7w9u2_37{color:var(--icons-icon-default)}._iconColor-secondary_7w9u2_38{color:var(--icons-icon-secondary)}._iconColor-warning_7w9u2_39{color:var(--icons-icon-warning)}._iconColor-error-warning_7w9u2_40{color:var(--icons-icon-error-warning)}._iconColor-success_7w9u2_41{color:var(--icons-icon-success)}
@@ -1 +1 @@
1
- ._toggleView_1voum_1{flex-wrap:wrap}._toggleOption_1voum_5{border:none;padding:var(--spacing-0-125) var(--spacing-0-5);gap:var(--spacing-0-125);cursor:pointer;border-top:1px solid var(--border-border-primary);border-bottom:1px solid var(--border-border-primary)}._toggleOption_1voum_5._selected_1voum_15{color:var(--text-text-invert);border-color:var(--color-brand-primary-primary-teal-blue);background-color:var(--color-brand-primary-primary-teal-blue)}._toggleOption_1voum_5._selected_1voum_15 path{fill:var(--icons-icon-invert)}._toggleOption_1voum_5:first-child{border-left:1px solid var(--border-border-primary);border-radius:2px 0 0 2px}._toggleOption_1voum_5:last-child{border-right:1px solid var(--border-border-primary);border-radius:0 2px 2px 0}._toggleOption_1voum_5:not(:last-child){border-right:1px solid var(--border-border-primary)}._toggleOption_1voum_5._selected_1voum_15+._toggleOption_1voum_5{border-left:none}
1
+ ._toggleView_1u0oz_1{flex-wrap:wrap}._compactText_1u0oz_5{line-height:1;display:inline-flex;align-items:center;padding:0;margin:0}._toggleOption_1u0oz_12{border:none;padding:var(--spacing-0-125) var(--spacing-0-75);gap:var(--spacing-0-125);cursor:pointer;border-top:1px solid var(--border-border-primary);border-bottom:1px solid var(--border-border-primary)}._toggleOption_1u0oz_12._selected_1u0oz_22{color:var(--text-text-invert);border-color:var(--color-brand-primary-primary-teal-blue);background-color:var(--color-brand-primary-primary-teal-blue)}._toggleOption_1u0oz_12._selected_1u0oz_22 path{fill:var(--icons-icon-invert)}._toggleOption_1u0oz_12:first-child{border-left:1px solid var(--border-border-primary);border-radius:2px 0 0 2px}._toggleOption_1u0oz_12:last-child{border-right:1px solid var(--border-border-primary);border-radius:0 2px 2px 0}._toggleOption_1u0oz_12:not(:last-child){border-right:1px solid var(--border-border-primary)}._toggleOption_1u0oz_12._selected_1u0oz_22+._toggleOption_1u0oz_12{border-left:none}
@@ -1,9 +1,11 @@
1
1
  import { HideAtProps } from '../HideAt';
2
2
  type IconSet = "fa-kit" | "fa-solid" | "fa-regular" | "fa-light" | "fa-thin" | "fa-brands";
3
3
  type IconVariant = "fa-sharp" | "fa-duotone" | "fa-sharp-duotone";
4
+ type IconColorToken = "default" | "secondary" | "warning" | "error-warning" | "success";
4
5
  interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, HideAtProps {
5
6
  iconKey: `${IconSet} ${string}` | `${IconVariant} ${IconSet} ${string}`;
6
7
  size?: "sm" | "md" | "lg";
8
+ colorToken?: IconColorToken;
7
9
  }
8
- export declare function Icon({ iconKey, size, hideAt, className, ...otherProps }: IconProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function Icon({ iconKey, size, hideAt, className, colorToken, ...otherProps }: IconProps): import("react/jsx-runtime").JSX.Element;
9
11
  export {};
@@ -1,32 +1,40 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { c as r } from "../../clsx-OuTLNxxd.js";
3
- import { getHideAtStyles as t } from "../HideAt.js";
4
- import '../../assets/Icon.css';const _ = {
5
- "icon-sm": "_icon-sm_nwr4s_1",
6
- "icon-md": "_icon-md_nwr4s_6",
7
- "icon-lg": "_icon-lg_nwr4s_11"
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as n } from "../../clsx-OuTLNxxd.js";
3
+ import { getHideAtStyles as a } from "../HideAt.js";
4
+ import '../../assets/Icon.css';const u = "_wrapper_7w9u2_15", o = {
5
+ "icon-sm": "_icon-sm_7w9u2_1",
6
+ "icon-md": "_icon-md_7w9u2_5",
7
+ "icon-lg": "_icon-lg_7w9u2_9",
8
+ wrapper: u,
9
+ "iconColor-default": "_iconColor-default_7w9u2_37",
10
+ "iconColor-secondary": "_iconColor-secondary_7w9u2_38",
11
+ "iconColor-warning": "_iconColor-warning_7w9u2_39",
12
+ "iconColor-error-warning": "_iconColor-error-warning_7w9u2_40",
13
+ "iconColor-success": "_iconColor-success_7w9u2_41"
8
14
  };
9
- function f({
10
- iconKey: o,
11
- size: n = "md",
12
- hideAt: s,
13
- className: c,
14
- ...i
15
+ function p({
16
+ iconKey: c,
17
+ size: i = "md",
18
+ hideAt: _,
19
+ className: e,
20
+ colorToken: s = "default",
21
+ ...l
15
22
  }) {
16
- return /* @__PURE__ */ m(
17
- "i",
23
+ return /* @__PURE__ */ r(
24
+ "span",
18
25
  {
19
- className: r(
20
- o,
21
- // can contain 2 or 3 (or more) Font Awesome classes
22
- _[`icon-${n}`],
23
- t(s),
24
- c
26
+ className: n(
27
+ o.wrapper,
28
+ o[`icon-${i}`],
29
+ o[`iconColor-${s}`],
30
+ a(_),
31
+ e
25
32
  ),
26
- ...i
33
+ ...l,
34
+ children: /* @__PURE__ */ r("i", { className: n(c), "aria-hidden": "true" })
27
35
  }
28
36
  );
29
37
  }
30
38
  export {
31
- f as Icon
39
+ p as Icon
32
40
  };
@@ -7,8 +7,36 @@ declare const meta: {
7
7
  layout: string;
8
8
  };
9
9
  tags: string[];
10
+ argTypes: {
11
+ iconKey: {
12
+ control: {
13
+ type: "select";
14
+ };
15
+ options: readonly ["fa-kit fa-chat", "fa-solid fa-user", "fa-regular fa-bell", "fa-solid fa-gear", "fa-solid fa-circle-info", "fa-solid fa-triangle-exclamation"];
16
+ };
17
+ size: {
18
+ control: {
19
+ type: "radio";
20
+ };
21
+ options: string[];
22
+ };
23
+ colorToken: {
24
+ name: string;
25
+ control: {
26
+ type: "select";
27
+ };
28
+ options: string[];
29
+ };
30
+ };
31
+ args: {
32
+ iconKey: "fa-kit fa-chat";
33
+ size: "md";
34
+ colorToken: "default";
35
+ title: string;
36
+ };
10
37
  };
11
38
  export default meta;
12
39
  type Story = StoryObj<typeof meta>;
13
40
  export declare const Default: Story;
14
- export declare const Sizes: StoryObj<typeof Icon>;
41
+ export declare const Sizes: Story;
42
+ export declare const Colors: Story;
@@ -1,28 +1,81 @@
1
- import { jsxs as a, Fragment as i, jsx as e } from "react/jsx-runtime";
2
- import { Icon as t } from "./Icon.js";
3
- const c = {
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useEffect as c, createElement as i } from "react";
3
+ import { Icon as l } from "./Icon.js";
4
+ const f = [
5
+ "fa-kit fa-chat",
6
+ "fa-solid fa-user",
7
+ "fa-regular fa-bell",
8
+ "fa-solid fa-gear",
9
+ "fa-solid fa-circle-info",
10
+ "fa-solid fa-triangle-exclamation"
11
+ ], y = {
4
12
  title: "Case Parts/Atoms/Icon",
5
- component: t,
6
- parameters: {
7
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
8
- layout: "centered"
13
+ component: l,
14
+ parameters: { layout: "centered" },
15
+ tags: ["autodocs"],
16
+ argTypes: {
17
+ iconKey: {
18
+ control: { type: "select" },
19
+ options: f
20
+ },
21
+ size: {
22
+ control: { type: "radio" },
23
+ options: ["sm", "md", "lg"]
24
+ },
25
+ colorToken: {
26
+ name: "color",
27
+ control: { type: "select" },
28
+ options: ["default", "secondary", "warning", "error-warning", "success"]
29
+ }
9
30
  },
10
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
11
- tags: ["autodocs"]
12
- }, n = {
13
31
  args: {
14
32
  iconKey: "fa-kit fa-chat",
33
+ size: "md",
34
+ colorToken: "default",
15
35
  title: "Live Chat"
16
36
  }
17
- }, r = {
18
- render: () => /* @__PURE__ */ a(i, { children: [
19
- /* @__PURE__ */ e(t, { iconKey: "fa-kit fa-chat", size: "sm", title: "Live Chat" }),
20
- /* @__PURE__ */ e(t, { iconKey: "fa-kit fa-chat", size: "md", title: "Live Chat" }),
21
- /* @__PURE__ */ e(t, { iconKey: "fa-kit fa-chat", size: "lg", title: "Live Chat" })
22
- ] })
37
+ }, a = (e) => {
38
+ const { iconKey: t } = e;
39
+ return c(() => {
40
+ var o, n, s;
41
+ try {
42
+ (s = (n = (o = window == null ? void 0 : window.FontAwesome) == null ? void 0 : o.dom) == null ? void 0 : n.i2svg) == null || s.call(n);
43
+ } catch {
44
+ console.log();
45
+ }
46
+ }, [t]), /* @__PURE__ */ i(
47
+ l,
48
+ {
49
+ ...e,
50
+ key: `${t}-${e.size}-${e.colorToken}`
51
+ }
52
+ );
53
+ }, g = {
54
+ render: (e) => /* @__PURE__ */ r(a, { ...e })
55
+ }, u = {
56
+ render: (e) => /* @__PURE__ */ r("div", { style: { display: "flex", gap: "0.75rem", alignItems: "center" }, children: ["sm", "md", "lg"].map((t) => /* @__PURE__ */ r(a, { ...e, size: t }, t)) })
57
+ }, k = {
58
+ args: { iconKey: "fa-solid fa-circle-info" },
59
+ render: (e) => /* @__PURE__ */ r("div", { style: { display: "flex", gap: "1rem", alignItems: "center" }, children: [
60
+ "default",
61
+ "secondary",
62
+ "warning",
63
+ "error-warning",
64
+ "success"
65
+ ].map((o) => /* @__PURE__ */ r(
66
+ a,
67
+ {
68
+ ...e,
69
+ colorToken: o,
70
+ title: o,
71
+ "aria-label": o
72
+ },
73
+ o
74
+ )) })
23
75
  };
24
76
  export {
25
- n as Default,
26
- r as Sizes,
27
- c as default
77
+ k as Colors,
78
+ g as Default,
79
+ u as Sizes,
80
+ y as default
28
81
  };
@@ -1,8 +1,8 @@
1
- import { jsx as t, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
2
  import { getHideAtStyles as f } from "../../atoms/HideAt.js";
3
- import { Text as i } from "../../atoms/Text/Text.js";
3
+ import { Text as _ } from "../../atoms/Text/Text.js";
4
4
  import { c as x } from "../../clsx-OuTLNxxd.js";
5
- import '../../assets/BannerCard.css';const k = "_root_1o5so_2", N = "_content_1o5so_13", u = "_variant_hero_1o5so_22", z = "_align_left_1o5so_22", S = "_align_right_1o5so_29", $ = "_variant_promo_1o5so_37", b = "_header_1o5so_49", j = "_description_1o5so_53", C = "_overlay_dark_1o5so_99", H = "_overlay_none_1o5so_101", w = "_overlay_light_1o5so_106", o = {
5
+ import '../../assets/BannerCard.css';const k = "_root_sclg6_2", N = "_content_sclg6_13", u = "_variant_hero_sclg6_26", z = "_align_left_sclg6_26", S = "_align_right_sclg6_37", $ = "_variant_promo_sclg6_48", b = "_header_sclg6_59", j = "_description_sclg6_70", C = "_overlay_dark_sclg6_102", H = "_overlay_none_sclg6_104", w = "_overlay_light_sclg6_109", t = {
6
6
  root: k,
7
7
  content: N,
8
8
  variant_hero: u,
@@ -18,32 +18,32 @@ import '../../assets/BannerCard.css';const k = "_root_1o5so_2", N = "_content_1o
18
18
  function L({
19
19
  variant: e = "hero",
20
20
  overlayTheme: r = "none",
21
- title: l,
21
+ title: c,
22
22
  description: n,
23
23
  backgroundImage: a,
24
- align: c = "left",
24
+ align: i = "left",
25
25
  cta: s,
26
- className: d,
27
- hideAt: h
26
+ className: g,
27
+ hideAt: d
28
28
  }) {
29
- const g = a ? { backgroundImage: `url(${a})` } : void 0, _ = e === "hero", v = _ ? "6xl" : "xl", m = _ ? "md" : "sm", y = r === "dark" ? o.textLight : o.textDark;
30
- return /* @__PURE__ */ t(
29
+ const h = a ? { backgroundImage: `url(${a})` } : void 0, l = e === "hero", v = l ? "6xl" : "xl", m = l ? "md" : "sm", y = r === "dark" ? t.textLight : t.textDark;
30
+ return /* @__PURE__ */ o(
31
31
  "article",
32
32
  {
33
33
  className: x(
34
- o.root,
35
- o[`variant_${e}`],
36
- o[`align_${c}`],
37
- o[`overlay_${r}`],
34
+ t.root,
35
+ t[`variant_${e}`],
36
+ t[`align_${i}`],
37
+ t[`overlay_${r}`],
38
38
  y,
39
- f(h),
40
- d
39
+ f(d),
40
+ g
41
41
  ),
42
- style: { ...g },
43
- children: /* @__PURE__ */ p("div", { className: o.content, children: [
44
- /* @__PURE__ */ t(i, { variant: "display", weight: "light", size: v, className: o.header, children: l }),
45
- n && /* @__PURE__ */ t(i, { size: m, className: o.description, children: n }),
46
- s && /* @__PURE__ */ t("div", { className: o.cta, children: s })
42
+ style: { ...h },
43
+ children: /* @__PURE__ */ p("div", { className: t.content, children: [
44
+ /* @__PURE__ */ o(_, { variant: "display", weight: "light", size: v, className: t.header, children: c }),
45
+ n && /* @__PURE__ */ o(_, { size: m, className: t.description, children: n }),
46
+ s && /* @__PURE__ */ o("div", { className: t.cta, children: s })
47
47
  ] })
48
48
  }
49
49
  );
@@ -10,10 +10,8 @@ declare const meta: Meta<AllArgs>;
10
10
  export default meta;
11
11
  type Story = StoryObj<AllArgs>;
12
12
  export declare const Playground: Story;
13
- export declare const Hero: Story;
14
- export declare const HeroLightOverlay: Story;
15
- export declare const HeroNoOverlay: Story;
16
- export declare const PromoLight: Story;
17
- export declare const PromoWithDarkOverlay: Story;
18
- export declare const WithoutCTA: Story;
19
- export declare const RightAlignedPromo: Story;
13
+ export declare const HeroDark: Story;
14
+ export declare const HeroRightAligned: Story;
15
+ export declare const PromoAccount: Story;
16
+ export declare const PromoQuote: Story;
17
+ export declare const PromoShipping: Story;
@@ -1,44 +1,76 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import { BannerCard as r } from "./BannerCard.js";
3
- import { LinkButton as m } from "../../atoms/LinkButton/LinkButton.js";
4
- import { Icon as d } from "../../atoms/Icon/Icon.js";
5
- const v = {
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import p from "react";
3
+ import { BannerCard as a } from "./BannerCard.js";
4
+ import { LinkButton as g } from "../../atoms/LinkButton/LinkButton.js";
5
+ import { Link as h } from "../../atoms/Link/Link.js";
6
+ import { Icon as i } from "../../atoms/Icon/Icon.js";
7
+ if (typeof document < "u" && !document.getElementById("bannercard-hero-heights")) {
8
+ const e = document.createElement("style");
9
+ e.id = "bannercard-hero-heights", e.innerHTML = `
10
+ .heroHeightConstraint { height:400px; }
11
+ @media (max-width:1279px){ .heroHeightConstraint { height:300px; } }
12
+ @media (max-width:767px){ .heroHeightConstraint { height:100px; } }
13
+ `, document.head.appendChild(e);
14
+ }
15
+ const k = {
6
16
  title: "Case Parts/Molecules/BannerCard",
7
- component: r,
17
+ component: a,
8
18
  tags: ["autodocs"],
9
19
  render: (e) => {
10
20
  const {
11
- showCta: t,
12
- customCtaLabel: a,
13
- backgroundImageUrl: i,
14
- cta: n,
15
- ...s
16
- } = e, l = t ? n ?? /* @__PURE__ */ c(
17
- m,
21
+ showCta: n,
22
+ customCtaLabel: t,
23
+ backgroundImageUrl: s,
24
+ cta: l,
25
+ ...c
26
+ } = e, m = n ? l ?? /* @__PURE__ */ r(p.Fragment, { children: [
27
+ /* @__PURE__ */ r(
28
+ g,
29
+ {
30
+ variant: e.overlayTheme === "light" ? "primary" : "secondary-transparent",
31
+ size: "md",
32
+ href: "#",
33
+ hideAt: ["sm"],
34
+ children: [
35
+ t || "Learn More",
36
+ /* @__PURE__ */ o(i, { iconKey: "fa-solid fa-arrow-right", size: "sm" })
37
+ ]
38
+ }
39
+ ),
40
+ /* @__PURE__ */ r(
41
+ h,
42
+ {
43
+ style: { boxSizing: "border-box", color: e.overlayTheme === "light" ? "#1380B1" : "white", fontWeight: "var(--font-weight-semibold)" },
44
+ href: "#",
45
+ hideAt: ["md", "lg"],
46
+ children: [
47
+ (t == null ? void 0 : t.toUpperCase()) || "LEARN MORE",
48
+ /* @__PURE__ */ o(i, { style: { marginBottom: "-6px" }, iconKey: "fa-solid fa-arrow-right", size: "sm" })
49
+ ]
50
+ }
51
+ )
52
+ ] }) : void 0, d = e.variant === "hero" ? "heroHeightConstraint" : void 0;
53
+ return /* @__PURE__ */ o(
54
+ "div",
18
55
  {
19
- variant: e.overlayTheme === "light" ? "primary" : "secondary-transparent",
20
- size: "md",
21
- href: "#",
22
- children: [
23
- a || "Learn More",
24
- /* @__PURE__ */ o(d, { iconKey: "fa-solid fa-arrow-right", size: "sm" })
25
- ]
56
+ className: d,
57
+ style: { maxWidth: e.variant === "hero" ? 1200 : 640 },
58
+ children: /* @__PURE__ */ o(
59
+ a,
60
+ {
61
+ ...c,
62
+ cta: m,
63
+ backgroundImage: s
64
+ }
65
+ )
26
66
  }
27
- ) : void 0;
28
- return /* @__PURE__ */ o("div", { style: { maxWidth: e.variant === "hero" ? 1200 : 640 }, children: /* @__PURE__ */ o(
29
- r,
30
- {
31
- ...s,
32
- cta: l,
33
- backgroundImage: i
34
- }
35
- ) });
67
+ );
36
68
  },
37
69
  args: {
38
70
  variant: "hero",
39
71
  overlayTheme: "none",
40
- title: "Made-to-Spec Custom Parts",
41
- description: "We specialize in made-to-spec parts—including cutting boards, walk-in doors, wire shelving, heaters, warmer wires, gaskets and more!",
72
+ title: "Refrigeration Parts Expertise",
73
+ description: "We are THE commercial refrigeration parts specialistsdepend on us to source or fabricate the right part at a competitive price.",
42
74
  align: "left",
43
75
  showCta: !0,
44
76
  customCtaLabel: "Help Me Find a Part",
@@ -53,129 +85,93 @@ const v = {
53
85
  overlayTheme: {
54
86
  control: { type: "inline-radio" },
55
87
  options: ["none", "dark", "light"],
56
- description: "Applies optional contrast overlay + text color."
57
- },
58
- title: {
59
- control: "text"
60
- },
61
- description: {
62
- control: "text"
63
- },
64
- align: {
65
- control: { type: "inline-radio" },
66
- options: ["left", "right"]
88
+ description: "Overlay + contrast."
67
89
  },
90
+ title: { control: "text" },
91
+ description: { control: "text" },
92
+ align: { control: { type: "inline-radio" }, options: ["left", "right"] },
68
93
  backgroundImageUrl: {
69
94
  name: "backgroundImage",
70
95
  control: "text",
71
- description: "Image URL. Leave empty for no background image."
72
- },
73
- showCta: {
74
- control: "boolean",
75
- description: "Toggle the CTA rendering."
76
- },
77
- customCtaLabel: {
78
- control: "text",
79
- if: { arg: "showCta" },
80
- description: "Text for generated CTA link."
81
- },
82
- cta: {
83
- table: { disable: !0 },
84
- description: "Custom CTA node overrides generated link."
85
- },
86
- hideAt: {
87
- control: "object",
88
- description: "Responsive visibility props (HideAtProps)."
96
+ description: "Local asset path."
89
97
  },
98
+ showCta: { control: "boolean" },
99
+ customCtaLabel: { control: "text", if: { arg: "showCta" } },
100
+ cta: { table: { disable: !0 } },
101
+ hideAt: { control: "object" },
90
102
  className: { control: "text" }
91
103
  },
92
104
  parameters: {
93
105
  docs: {
94
106
  description: {
95
- component: `Structure helper for promotional / hero banners.
96
- Responsibilities:
97
- - variant: only size / typography (hero vs promo)
98
- - overlayTheme: controls contrast + optional semi‑transparent overlay (dark/light/none)
99
- - backgroundImage: applied as CSS background-image
100
- - align: which grid column & text alignment
101
- Layout (width/height) is consumer-controlled.`
107
+ component: `Promotional / hero banner wrapper.
108
+ - variant: typography scale (hero | promo)
109
+ - align: grid positioning (left/right) with responsive full-width <980px
110
+ - overlayTheme: optional contrast theme
111
+ - backgroundImage: applies CSS background-image
112
+ Height is consumer-controlled; stories simulate production hero height constraints.`
102
113
  }
103
114
  }
104
115
  }
105
- }, y = { name: "Playground" }, f = {
116
+ }, x = { name: "Playground" }, I = {
117
+ name: "Hero (Dark Overlay)",
106
118
  args: {
107
119
  variant: "hero",
108
120
  overlayTheme: "dark",
109
- title: "Elevate Your Workflow",
110
- description: "Tools engineered for performance in every scenario.",
111
- backgroundImageUrl: "https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1400&q=60",
121
+ title: "Custom Refrigeration Solutions",
122
+ description: "Custom walk‑in doors, gaskets, heaters & more—precision-built refrigeration parts delivered fast.",
123
+ backgroundImageUrl: "assets/IMG-1-hero.png",
112
124
  align: "left"
113
125
  }
114
- }, b = {
115
- name: "Hero (Light Overlay)",
116
- args: {
117
- variant: "hero",
118
- overlayTheme: "light",
119
- title: "Bright Hero",
120
- description: "Light overlay for darker images.",
121
- backgroundImageUrl: "https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1400&q=60",
122
- customCtaLabel: "Get Started"
123
- }
124
- }, k = {
125
- name: "Hero (No Overlay)",
126
+ }, w = {
127
+ name: "Hero (Right Aligned)",
126
128
  args: {
127
129
  variant: "hero",
128
- overlayTheme: "none",
129
- title: "Raw Image Hero",
130
- description: "No overlay applied—ensure image has built-in contrast.",
131
- backgroundImageUrl: "https://images.unsplash.com/photo-1522199710521-72d69614c702?auto=format&fit=crop&w=1400&q=60"
130
+ overlayTheme: "dark",
131
+ align: "right",
132
+ title: "First-Time Accurate Identification",
133
+ description: "Decades of refrigeration expertise—lean on us for correct parts identification the first time.",
134
+ backgroundImageUrl: "assets/IMG-4-hero.png",
135
+ customCtaLabel: "Talk To A Specialist"
132
136
  }
133
- }, C = {
137
+ }, T = {
138
+ name: "Promo (Account Setup)",
134
139
  args: {
135
140
  variant: "promo",
136
141
  overlayTheme: "light",
137
- title: "Free Shipping",
138
- description: "Orders over $50 ship free in the continental US.",
139
- backgroundImageUrl: "",
140
- customCtaLabel: "Details"
141
- }
142
- }, w = {
143
- name: "Promo (Dark Overlay)",
144
- args: {
145
- variant: "promo",
146
- overlayTheme: "dark",
147
- title: "Night Promo",
148
- description: "Promo banner with dark overlay.",
149
- backgroundImageUrl: "https://images.unsplash.com/photo-1553456558-aff63285bdd1?auto=format&fit=crop&w=1200&q=60",
150
- customCtaLabel: "Browse"
142
+ title: "Create Your Account",
143
+ description: "Setting up an online account is easy—track orders, invoices and account status anytime.",
144
+ backgroundImageUrl: "assets/IMG-2-small.png",
145
+ customCtaLabel: "Set Up Account"
151
146
  }
152
- }, T = {
147
+ }, P = {
148
+ name: "Promo (Custom Quote)",
153
149
  args: {
154
- showCta: !1,
155
- title: "Informational Banner",
156
- description: "No actionable CTA needed here.",
157
150
  variant: "promo",
158
151
  overlayTheme: "light",
159
- backgroundImageUrl: ""
152
+ title: "Need A Custom Part?",
153
+ description: "Request a custom refrigeration part—fast turnaround and engineered fit.",
154
+ backgroundImageUrl: "assets/IMG-3-small.png",
155
+ customCtaLabel: "Request Quote"
160
156
  }
161
- }, I = {
157
+ }, A = {
158
+ name: "Promo (Expedited Shipping)",
162
159
  args: {
163
160
  variant: "promo",
164
- overlayTheme: "dark",
165
- align: "right",
166
- title: "Limited Offer",
167
- description: "Ends this Friday — don’t miss out!",
168
- customCtaLabel: "Redeem"
161
+ overlayTheme: "light",
162
+ title: "Minimize Downtime",
163
+ description: "Priority shipping options available—get critical parts when you need them.",
164
+ backgroundImageUrl: "assets/IMG-4-small.png",
165
+ customCtaLabel: "See Options",
166
+ align: "right"
169
167
  }
170
168
  };
171
169
  export {
172
- f as Hero,
173
- b as HeroLightOverlay,
174
- k as HeroNoOverlay,
175
- y as Playground,
176
- C as PromoLight,
177
- w as PromoWithDarkOverlay,
178
- I as RightAlignedPromo,
179
- T as WithoutCTA,
180
- v as default
170
+ I as HeroDark,
171
+ w as HeroRightAligned,
172
+ x as Playground,
173
+ T as PromoAccount,
174
+ P as PromoQuote,
175
+ A as PromoShipping,
176
+ k as default
181
177
  };
@@ -1,19 +1,19 @@
1
- import { jsx as t, jsxs as o } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
2
  import { Icon as s } from "../../atoms/Icon/Icon.js";
3
3
  import { Text as a } from "../../atoms/Text/Text.js";
4
- import { Link as _ } from "../../atoms/Link/Link.js";
5
- import { Button as I } from "../../atoms/Button/Button.js";
6
- import { Tooltip as f } from "../Tooltip/Tooltip.js";
4
+ import { Link as u } from "../../atoms/Link/Link.js";
5
+ import { Button as f } from "../../atoms/Button/Button.js";
6
+ import { Tooltip as g } from "../Tooltip/Tooltip.js";
7
7
  import { Pricing as v } from "../Pricing/Pricing.js";
8
8
  import { QuantityInput as w } from "../QuantityInput/QuantityInput.js";
9
- import { Availability as b } from "../Availability/Availability.js";
10
- import '../../assets/Cart.css';const y = "_cart_1uglw_2", N = "_count_1uglw_9", z = "_cartTooltip_1uglw_24", C = "_cartContainer_1uglw_27", k = "_cartItems_1uglw_35", x = "_topRow_1uglw_57", T = "_itemInfo_1uglw_63", R = "_purchaseInformation_1uglw_68", L = "_itemManagement_1uglw_75", M = "_removeItem_1uglw_93", P = "_noItems_1uglw_101", S = "_subtotal_1uglw_108", i = {
11
- cart: y,
12
- count: N,
13
- cartTooltip: z,
14
- cartContainer: C,
15
- cartItems: k,
16
- topRow: x,
9
+ import { Availability as x } from "../Availability/Availability.js";
10
+ import '../../assets/Cart.css';const b = "_cart_11wxn_2", y = "_count_11wxn_9", N = "_cartTooltip_11wxn_24", z = "_cartContainer_11wxn_27", C = "_cartItems_11wxn_35", k = "_topRow_11wxn_57", T = "_itemInfo_11wxn_63", R = "_purchaseInformation_11wxn_68", L = "_itemManagement_11wxn_75", M = "_removeItem_11wxn_93", P = "_noItems_11wxn_101", S = "_subtotal_11wxn_108", i = {
11
+ cart: b,
12
+ count: y,
13
+ cartTooltip: N,
14
+ cartContainer: z,
15
+ cartItems: C,
16
+ topRow: k,
17
17
  itemInfo: T,
18
18
  purchaseInformation: R,
19
19
  itemManagement: L,
@@ -22,7 +22,7 @@ import '../../assets/Cart.css';const y = "_cart_1uglw_2", N = "_count_1uglw_9",
22
22
  subtotal: S
23
23
  };
24
24
  function O({
25
- cart: n,
25
+ cart: o,
26
26
  onItemQtyChange: m,
27
27
  onItemDelete: c,
28
28
  onCheckout: l,
@@ -30,15 +30,15 @@ function O({
30
30
  contactHref: d,
31
31
  contactLinkBehavior: p,
32
32
  itemPriceLabel: h,
33
- ...u
33
+ ..._
34
34
  }) {
35
- return n = n || { items: [] }, /* @__PURE__ */ t(
36
- f,
35
+ return o = o || { items: [] }, /* @__PURE__ */ t(
36
+ g,
37
37
  {
38
38
  tooltipClassName: i.cartTooltip,
39
39
  repositionOnResize: !0,
40
40
  keepTooltipInside: !0,
41
- trigger: /* @__PURE__ */ o("button", { className: i.cart, tabIndex: 0, ...u, children: [
41
+ trigger: /* @__PURE__ */ n("button", { className: i.cart, tabIndex: 0, ..._, children: [
42
42
  /* @__PURE__ */ t(
43
43
  s,
44
44
  {
@@ -47,30 +47,30 @@ function O({
47
47
  size: "lg"
48
48
  }
49
49
  ),
50
- n.items.length > 0 && /* @__PURE__ */ t("div", { className: i.count, children: /* @__PURE__ */ t(a, { size: "xxs", children: n.items.length }) })
50
+ o.items.length > 0 && /* @__PURE__ */ t("div", { className: i.count, children: /* @__PURE__ */ t(a, { size: "xxs", children: o.items.length }) })
51
51
  ] }),
52
52
  position: "bottom left",
53
53
  on: "click",
54
- children: /* @__PURE__ */ o("div", { className: i.cartContainer, children: [
54
+ children: /* @__PURE__ */ n("div", { className: i.cartContainer, children: [
55
55
  /* @__PURE__ */ t(a, { size: "2xl", children: "Cart" }),
56
- /* @__PURE__ */ t("div", { className: i.cartItems, children: n.items.length > 0 ? /* @__PURE__ */ t("ul", { children: n.items.map(
57
- (e) => /* @__PURE__ */ o("li", { className: i.cartItem, children: [
56
+ /* @__PURE__ */ t("div", { className: i.cartItems, children: o.items.length > 0 ? /* @__PURE__ */ t("ul", { children: o.items.map(
57
+ (e) => /* @__PURE__ */ n("li", { className: i.cartItem, children: [
58
58
  /* @__PURE__ */ t("img", { src: e.imageUrl, alt: `${e.itemId} product image` }),
59
- /* @__PURE__ */ o("div", { children: [
60
- /* @__PURE__ */ o("div", { className: i.topRow, children: [
61
- /* @__PURE__ */ o("div", { className: i.itemInfo, children: [
62
- /* @__PURE__ */ t(a, { size: "sm", weight: "semibold", children: /* @__PURE__ */ t(_, { href: e.itemHref || `/part/${e.itemId}`, children: e.description }) }),
63
- /* @__PURE__ */ o(a, { size: "sm", children: [
59
+ /* @__PURE__ */ n("div", { children: [
60
+ /* @__PURE__ */ n("div", { className: i.topRow, children: [
61
+ /* @__PURE__ */ n("div", { className: i.itemInfo, children: [
62
+ /* @__PURE__ */ t(a, { size: "sm", weight: "semibold", children: /* @__PURE__ */ t(u, { href: e.itemHref || `/part/${e.itemId}`, children: e.description }) }),
63
+ /* @__PURE__ */ n(a, { size: "sm", children: [
64
64
  "Part # ",
65
65
  e.itemId
66
66
  ] })
67
67
  ] }),
68
68
  /* @__PURE__ */ t("button", { onClick: () => c(e), className: i.removeItem, children: /* @__PURE__ */ t(s, { iconKey: "fa-regular fa-trash", size: "sm" }) })
69
69
  ] }),
70
- /* @__PURE__ */ o("div", { className: i.itemManagement, children: [
71
- /* @__PURE__ */ o("div", { className: i.purchaseInformation, children: [
70
+ /* @__PURE__ */ n("div", { className: i.itemManagement, children: [
71
+ /* @__PURE__ */ n("div", { className: i.purchaseInformation, children: [
72
72
  /* @__PURE__ */ t(
73
- b,
73
+ x,
74
74
  {
75
75
  availId: e.availabilityId || "",
76
76
  availDescription: e.availability || "",
@@ -80,16 +80,16 @@ function O({
80
80
  ),
81
81
  /* @__PURE__ */ t(v, { pricingLabel: h || "List Price", price: e.price })
82
82
  ] }),
83
- /* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (g) => m(e, g), size: "sm" })
83
+ /* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (I) => m(e, I), size: "sm" })
84
84
  ] })
85
85
  ] })
86
86
  ] }, e.id)
87
87
  ) }) : /* @__PURE__ */ t("div", { className: i.noItems, children: /* @__PURE__ */ t(a, { as: "p", size: "sm", children: "No items in your cart yet" }) }) }),
88
- r && /* @__PURE__ */ o("div", { className: i.subtotal, children: [
88
+ r && /* @__PURE__ */ n("div", { className: i.subtotal, children: [
89
89
  /* @__PURE__ */ t(a, { size: "md", weight: "semibold", children: "Subtotal" }),
90
90
  /* @__PURE__ */ t(a, { size: "md", weight: "semibold", children: r })
91
91
  ] }),
92
- /* @__PURE__ */ t(I, { disabled: n.items.length === 0, onClick: l, variant: "cta-primary", size: "md", children: "Checkout" })
92
+ /* @__PURE__ */ t(f, { disabled: o.items.length === 0, onClick: l, variant: "cta-primary", size: "md", children: "Checkout" })
93
93
  ] })
94
94
  }
95
95
  );
@@ -1,15 +1,16 @@
1
1
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import g from "react";
3
- import { Flex as f } from "../../atoms/Flex/Flex.js";
2
+ import m from "react";
3
+ import { Flex as p } from "../../atoms/Flex/Flex.js";
4
4
  import { Icon as l } from "../../atoms/Icon/Icon.js";
5
5
  import { Text as x } from "../../atoms/Text/Text.js";
6
- import { getHideAtStyles as O } from "../../atoms/HideAt.js";
7
- import { c as p } from "../../clsx-OuTLNxxd.js";
8
- import '../../assets/ToggleView.css';const y = "_toggleView_1voum_1", I = "_toggleOption_1voum_5", _ = "_selected_1voum_15", m = {
9
- toggleView: y,
10
- toggleOption: I,
11
- selected: _
12
- }, T = {
6
+ import { getHideAtStyles as T } from "../../atoms/HideAt.js";
7
+ import { c as f } from "../../clsx-OuTLNxxd.js";
8
+ import '../../assets/ToggleView.css';const _ = "_toggleView_1u0oz_1", z = "_compactText_1u0oz_5", O = "_toggleOption_1u0oz_12", y = "_selected_1u0oz_22", g = {
9
+ toggleView: _,
10
+ compactText: z,
11
+ toggleOption: O,
12
+ selected: y
13
+ }, I = {
13
14
  grid: "GRID",
14
15
  list: "LIST",
15
16
  table: "TABLE"
@@ -18,22 +19,22 @@ import '../../assets/ToggleView.css';const y = "_toggleView_1voum_1", I = "_togg
18
19
  list: /* @__PURE__ */ e(l, { iconKey: "fa-regular fa-list-ul", size: "sm" }),
19
20
  table: /* @__PURE__ */ e(l, { iconKey: "fa-regular fa-table-cells", size: "sm" })
20
21
  };
21
- function s({
22
+ function r({
22
23
  selectedId: c,
23
24
  onToggle: t,
24
25
  className: n,
25
26
  children: o,
26
27
  hideAt: a,
27
- ...r
28
+ ...s
28
29
  }) {
29
30
  return /* @__PURE__ */ e(
30
- f,
31
+ p,
31
32
  {
32
33
  flexDirection: "row",
33
34
  alignItems: "center",
34
- className: p(m.toggleView, O(a), n),
35
- ...r,
36
- children: g.Children.map(o, (i) => g.isValidElement(i) ? g.cloneElement(i, {
35
+ className: f(g.toggleView, T(a), n),
36
+ ...s,
37
+ children: m.Children.map(o, (i) => m.isValidElement(i) ? m.cloneElement(i, {
37
38
  isSelected: i.props.id === c,
38
39
  onClick: () => t(i.props.id)
39
40
  }) : null)
@@ -47,17 +48,17 @@ function w({
47
48
  isSelected: n,
48
49
  onClick: o,
49
50
  className: a,
50
- ...r
51
+ ...s
51
52
  }) {
52
53
  return /* @__PURE__ */ e(
53
54
  u,
54
55
  {
55
56
  id: c,
56
- label: T[t],
57
+ label: I[t],
57
58
  icon: b[t],
58
59
  isSelected: n,
59
60
  onClick: o,
60
- ...r
61
+ ...s
61
62
  }
62
63
  );
63
64
  }
@@ -67,19 +68,19 @@ function u({
67
68
  icon: n,
68
69
  isSelected: o,
69
70
  onClick: a,
70
- className: r,
71
+ className: s,
71
72
  ...i
72
73
  }) {
73
74
  return /* @__PURE__ */ d(
74
- f,
75
+ p,
75
76
  {
76
77
  flexDirection: "row",
77
78
  alignItems: "center",
78
79
  justifyContent: "center",
79
- className: p(
80
- m.toggleOption,
81
- o && m.selected,
82
- r
80
+ className: f(
81
+ g.toggleOption,
82
+ o && g.selected,
83
+ s
83
84
  ),
84
85
  role: "button",
85
86
  "aria-selected": o,
@@ -87,16 +88,16 @@ function u({
87
88
  ...i,
88
89
  children: [
89
90
  n,
90
- /* @__PURE__ */ e(x, { size: "xxs", children: t })
91
+ /* @__PURE__ */ e(x, { size: "xs", className: g.compactText, children: t })
91
92
  ]
92
93
  }
93
94
  );
94
95
  }
95
- s.OptionBase = u;
96
- s.Option = w;
97
- s.GridIcon = /* @__PURE__ */ e(l, { iconKey: "fa-regular fa-grid-2", size: "sm" });
98
- s.ListIcon = /* @__PURE__ */ e(l, { iconKey: "fa-regular fa-list-ul", size: "sm" });
99
- s.TableIcon = /* @__PURE__ */ e(l, { iconKey: "fa-regular fa-table-cells", size: "sm" });
96
+ r.OptionBase = u;
97
+ r.Option = w;
98
+ r.GridIcon = /* @__PURE__ */ e(l, { iconKey: "fa-regular fa-grid-2", size: "sm" });
99
+ r.ListIcon = /* @__PURE__ */ e(l, { iconKey: "fa-regular fa-list-ul", size: "sm" });
100
+ r.TableIcon = /* @__PURE__ */ e(l, { iconKey: "fa-regular fa-table-cells", size: "sm" });
100
101
  export {
101
- s as ToggleView
102
+ r as ToggleView
102
103
  };
@@ -2,7 +2,7 @@ import { jsxs as fn, jsx as ot } from "react/jsx-runtime";
2
2
  import vt, { useRef as Ut, useState as $t, useCallback as ln, useEffect as Ot } from "react";
3
3
  import { getHideAtStyles as dn } from "../../atoms/HideAt.js";
4
4
  import { c as qt } from "../../clsx-OuTLNxxd.js";
5
- import { s as rt, P as pn, N as mn } from "../../CarouselArrowButtons-Bv2242py.js";
5
+ import { s as rt, P as pn, N as mn } from "../../CarouselArrowButtons-Dx_S017g.js";
6
6
  import { useDotButton as gn, DotButton as hn } from "./CarouselDotButton.js";
7
7
  import { usePrevNextButtons as yn } from "./usePrevNextButtons.js";
8
8
  function Sn(t) {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../atoms/Icon/Icon.js";
3
- import { N as e, P as i } from "../../CarouselArrowButtons-Bv2242py.js";
3
+ import { N as e, P as i } from "../../CarouselArrowButtons-Dx_S017g.js";
4
4
  import "../../clsx-OuTLNxxd.js";
5
5
  export {
6
6
  e as NextButton,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.67",
4
+ "version": "0.0.68",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1,48 +0,0 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { Icon as c } from "./atoms/Icon/Icon.js";
3
- import { c as r } from "./clsx-OuTLNxxd.js";
4
- import './assets/CarouselArrowButtons.css';const _ = "_main_1st4s_1", a = "_viewport_1st4s_4", u = "_track_1st4s_8", i = "_slide_1st4s_12", d = "_button_1st4s_17", l = "_prevButton_1st4s_33", p = "_nextButton_1st4s_36", m = "_carouselDots_1st4s_39", f = "_dot_1st4s_47", v = "_dotSelected_1st4s_55", t = {
5
- main: _,
6
- viewport: a,
7
- track: u,
8
- slide: i,
9
- button: d,
10
- prevButton: l,
11
- nextButton: p,
12
- carouselDots: m,
13
- dot: f,
14
- dotSelected: v
15
- }, h = ({
16
- children: s,
17
- ...o
18
- }) => /* @__PURE__ */ n(
19
- "button",
20
- {
21
- className: r(t.button, t.prevButton),
22
- type: "button",
23
- ...o,
24
- children: [
25
- /* @__PURE__ */ e(c, { iconKey: "fa-sharp fa-solid fa-chevron-left", size: "md" }),
26
- s
27
- ]
28
- }
29
- ), y = ({
30
- children: s,
31
- ...o
32
- }) => /* @__PURE__ */ n(
33
- "button",
34
- {
35
- className: r(t.button, t.nextButton),
36
- type: "button",
37
- ...o,
38
- children: [
39
- /* @__PURE__ */ e(c, { iconKey: "fa-sharp fa-solid fa-chevron-right", size: "md" }),
40
- s
41
- ]
42
- }
43
- );
44
- export {
45
- y as N,
46
- h as P,
47
- t as s
48
- };