@caseparts-org/caseblocks 0.0.66 → 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.
- package/dist/CarouselArrowButtons-Dx_S017g.js +48 -0
- package/dist/assets/BannerCard.css +1 -1
- package/dist/assets/CarouselArrowButtons.css +1 -1
- package/dist/assets/Cart.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/ToggleView.css +1 -1
- package/dist/atoms/Icon/Icon.d.ts +3 -1
- package/dist/atoms/Icon/Icon.js +31 -23
- package/dist/atoms/Icon/Icon.stories.d.ts +29 -1
- package/dist/atoms/Icon/Icon.stories.js +72 -19
- package/dist/molecules/BannerCard/BannerCard.js +27 -27
- package/dist/molecules/BannerCard/BannerCard.stories.d.ts +5 -7
- package/dist/molecules/BannerCard/BannerCard.stories.js +118 -122
- package/dist/molecules/Cart/Cart.js +32 -32
- package/dist/molecules/ToggleView/ToggleView.js +32 -31
- package/dist/organisms/Carousel/Carousel.js +1 -1
- package/dist/organisms/Carousel/CarouselArrowButtons.js +1 -1
- package/package.json +1 -1
- package/dist/CarouselArrowButtons-Bv2242py.js +0 -48
|
@@ -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
|
-
.
|
|
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
|
-
.
|
|
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}
|
package/dist/assets/Cart.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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)}
|
package/dist/assets/Icon.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._icon-
|
|
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
|
-
.
|
|
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 {};
|
package/dist/atoms/Icon/Icon.js
CHANGED
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { getHideAtStyles as
|
|
4
|
-
import '../../assets/Icon.css';const
|
|
5
|
-
"icon-sm": "_icon-
|
|
6
|
-
"icon-md": "_icon-
|
|
7
|
-
"icon-lg": "_icon-
|
|
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
|
|
10
|
-
iconKey:
|
|
11
|
-
size:
|
|
12
|
-
hideAt:
|
|
13
|
-
className:
|
|
14
|
-
|
|
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__ */
|
|
17
|
-
"
|
|
23
|
+
return /* @__PURE__ */ r(
|
|
24
|
+
"span",
|
|
18
25
|
{
|
|
19
|
-
className:
|
|
20
|
-
o,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
className: n(
|
|
27
|
+
o.wrapper,
|
|
28
|
+
o[`icon-${i}`],
|
|
29
|
+
o[`iconColor-${s}`],
|
|
30
|
+
a(_),
|
|
31
|
+
e
|
|
25
32
|
),
|
|
26
|
-
...
|
|
33
|
+
...l,
|
|
34
|
+
children: /* @__PURE__ */ r("i", { className: n(c), "aria-hidden": "true" })
|
|
27
35
|
}
|
|
28
36
|
);
|
|
29
37
|
}
|
|
30
38
|
export {
|
|
31
|
-
|
|
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:
|
|
41
|
+
export declare const Sizes: Story;
|
|
42
|
+
export declare const Colors: Story;
|
|
@@ -1,28 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
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:
|
|
6
|
-
parameters: {
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
77
|
+
k as Colors,
|
|
78
|
+
g as Default,
|
|
79
|
+
u as Sizes,
|
|
80
|
+
y as default
|
|
28
81
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { getHideAtStyles as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { c as
|
|
5
|
-
import '../../assets/BannerCard.css';const
|
|
6
|
-
root:
|
|
7
|
-
content:
|
|
8
|
-
variant_hero:
|
|
9
|
-
align_left:
|
|
10
|
-
align_right:
|
|
11
|
-
variant_promo:
|
|
12
|
-
header:
|
|
13
|
-
description:
|
|
1
|
+
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { getHideAtStyles as f } from "../../atoms/HideAt.js";
|
|
3
|
+
import { Text as _ } from "../../atoms/Text/Text.js";
|
|
4
|
+
import { c as x } from "../../clsx-OuTLNxxd.js";
|
|
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
|
+
root: k,
|
|
7
|
+
content: N,
|
|
8
|
+
variant_hero: u,
|
|
9
|
+
align_left: z,
|
|
10
|
+
align_right: S,
|
|
11
|
+
variant_promo: $,
|
|
12
|
+
header: b,
|
|
13
|
+
description: j,
|
|
14
14
|
overlay_dark: C,
|
|
15
15
|
overlay_none: H,
|
|
16
16
|
overlay_light: w
|
|
@@ -18,32 +18,32 @@ import '../../assets/BannerCard.css';const x = "_root_1jd6g_2", k = "_content_1j
|
|
|
18
18
|
function L({
|
|
19
19
|
variant: e = "hero",
|
|
20
20
|
overlayTheme: r = "none",
|
|
21
|
-
title:
|
|
21
|
+
title: c,
|
|
22
22
|
description: n,
|
|
23
23
|
backgroundImage: a,
|
|
24
|
-
align:
|
|
25
|
-
cta:
|
|
26
|
-
className:
|
|
27
|
-
hideAt:
|
|
24
|
+
align: i = "left",
|
|
25
|
+
cta: s,
|
|
26
|
+
className: g,
|
|
27
|
+
hideAt: d
|
|
28
28
|
}) {
|
|
29
|
-
const h = a ? { backgroundImage: `url(${a})` } : void 0,
|
|
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
30
|
return /* @__PURE__ */ o(
|
|
31
31
|
"article",
|
|
32
32
|
{
|
|
33
|
-
className:
|
|
33
|
+
className: x(
|
|
34
34
|
t.root,
|
|
35
35
|
t[`variant_${e}`],
|
|
36
|
-
t[`align_${
|
|
36
|
+
t[`align_${i}`],
|
|
37
37
|
t[`overlay_${r}`],
|
|
38
38
|
y,
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
f(d),
|
|
40
|
+
g
|
|
41
41
|
),
|
|
42
42
|
style: { ...h },
|
|
43
|
-
children: /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */ o(
|
|
45
|
-
n && /* @__PURE__ */ o(
|
|
46
|
-
|
|
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
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
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:
|
|
17
|
+
component: a,
|
|
8
18
|
tags: ["autodocs"],
|
|
9
19
|
render: (e) => {
|
|
10
20
|
const {
|
|
11
|
-
showCta:
|
|
12
|
-
customCtaLabel:
|
|
13
|
-
backgroundImageUrl:
|
|
14
|
-
cta:
|
|
15
|
-
...
|
|
16
|
-
} = e,
|
|
17
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
)
|
|
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: "
|
|
41
|
-
description: "We
|
|
72
|
+
title: "Refrigeration Parts Expertise",
|
|
73
|
+
description: "We are THE commercial refrigeration parts specialists—depend 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: "
|
|
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: "
|
|
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: `
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
- overlayTheme:
|
|
99
|
-
- backgroundImage:
|
|
100
|
-
-
|
|
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
|
-
},
|
|
116
|
+
}, x = { name: "Playground" }, I = {
|
|
117
|
+
name: "Hero (Dark Overlay)",
|
|
106
118
|
args: {
|
|
107
119
|
variant: "hero",
|
|
108
120
|
overlayTheme: "dark",
|
|
109
|
-
title: "
|
|
110
|
-
description: "
|
|
111
|
-
backgroundImageUrl: "
|
|
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
|
-
},
|
|
115
|
-
name: "Hero (
|
|
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: "
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
},
|
|
137
|
+
}, T = {
|
|
138
|
+
name: "Promo (Account Setup)",
|
|
134
139
|
args: {
|
|
135
140
|
variant: "promo",
|
|
136
141
|
overlayTheme: "light",
|
|
137
|
-
title: "
|
|
138
|
-
description: "
|
|
139
|
-
backgroundImageUrl: "",
|
|
140
|
-
customCtaLabel: "
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
-
},
|
|
157
|
+
}, A = {
|
|
158
|
+
name: "Promo (Expedited Shipping)",
|
|
162
159
|
args: {
|
|
163
160
|
variant: "promo",
|
|
164
|
-
overlayTheme: "
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
customCtaLabel: "
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
|
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
|
|
5
|
-
import { Button as
|
|
6
|
-
import { Tooltip as
|
|
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
|
|
10
|
-
import '../../assets/Cart.css';const
|
|
11
|
-
cart:
|
|
12
|
-
count:
|
|
13
|
-
cartTooltip:
|
|
14
|
-
cartContainer:
|
|
15
|
-
cartItems:
|
|
16
|
-
topRow:
|
|
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:
|
|
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
|
-
...
|
|
33
|
+
..._
|
|
34
34
|
}) {
|
|
35
|
-
return
|
|
36
|
-
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
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:
|
|
57
|
-
(e) => /* @__PURE__ */
|
|
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__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */ t(a, { size: "sm", weight: "semibold", children: /* @__PURE__ */ t(
|
|
63
|
-
/* @__PURE__ */
|
|
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__ */
|
|
71
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ n("div", { className: i.itemManagement, children: [
|
|
71
|
+
/* @__PURE__ */ n("div", { className: i.purchaseInformation, children: [
|
|
72
72
|
/* @__PURE__ */ t(
|
|
73
|
-
|
|
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: (
|
|
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__ */
|
|
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(
|
|
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
|
|
3
|
-
import { Flex as
|
|
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
|
|
7
|
-
import { c as
|
|
8
|
-
import '../../assets/ToggleView.css';const
|
|
9
|
-
toggleView:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
22
|
+
function r({
|
|
22
23
|
selectedId: c,
|
|
23
24
|
onToggle: t,
|
|
24
25
|
className: n,
|
|
25
26
|
children: o,
|
|
26
27
|
hideAt: a,
|
|
27
|
-
...
|
|
28
|
+
...s
|
|
28
29
|
}) {
|
|
29
30
|
return /* @__PURE__ */ e(
|
|
30
|
-
|
|
31
|
+
p,
|
|
31
32
|
{
|
|
32
33
|
flexDirection: "row",
|
|
33
34
|
alignItems: "center",
|
|
34
|
-
className:
|
|
35
|
-
...
|
|
36
|
-
children:
|
|
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
|
-
...
|
|
51
|
+
...s
|
|
51
52
|
}) {
|
|
52
53
|
return /* @__PURE__ */ e(
|
|
53
54
|
u,
|
|
54
55
|
{
|
|
55
56
|
id: c,
|
|
56
|
-
label:
|
|
57
|
+
label: I[t],
|
|
57
58
|
icon: b[t],
|
|
58
59
|
isSelected: n,
|
|
59
60
|
onClick: o,
|
|
60
|
-
...
|
|
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:
|
|
71
|
+
className: s,
|
|
71
72
|
...i
|
|
72
73
|
}) {
|
|
73
74
|
return /* @__PURE__ */ d(
|
|
74
|
-
|
|
75
|
+
p,
|
|
75
76
|
{
|
|
76
77
|
flexDirection: "row",
|
|
77
78
|
alignItems: "center",
|
|
78
79
|
justifyContent: "center",
|
|
79
|
-
className:
|
|
80
|
-
|
|
81
|
-
o &&
|
|
82
|
-
|
|
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: "
|
|
91
|
+
/* @__PURE__ */ e(x, { size: "xs", className: g.compactText, children: t })
|
|
91
92
|
]
|
|
92
93
|
}
|
|
93
94
|
);
|
|
94
95
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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,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
|
-
};
|