@caseparts-org/caseblocks 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_kwn5r_2{position:relative;display:grid;grid-template-columns:1fr 1fr;background-size:cover;background-position:center;overflow:hidden;box-sizing:border-box;align-items:center}._content_kwn5r_13{box-sizing:border-box;width:100%;padding:var(--spacing-spacing-default, 16px);display:flex;flex-direction:column;gap:var(--spacing-spacing-default, 16px)}@media (max-width: 980px){._content_kwn5r_13{grid-column:1 / -1}}._align_left_kwn5r_25 ._content_kwn5r_13{align-items:flex-start;grid-column:1 / span 1;text-align:left}@media (max-width: 980px){._align_left_kwn5r_25 ._content_kwn5r_13{grid-column:1 / -1}}._align_right_kwn5r_33 ._content_kwn5r_13{align-items:flex-end;grid-column:2 / span 1;text-align:right}@media (max-width: 980px){._align_right_kwn5r_33 ._content_kwn5r_13{grid-column:1 / -1}}._content_kwn5r_13>*{position:relative;z-index:1}._overlay_dark_kwn5r_48 ._header_kwn5r_48,._overlay_dark_kwn5r_48 ._description_kwn5r_49,._overlay_none_kwn5r_50 ._header_kwn5r_48,._overlay_none_kwn5r_50 ._description_kwn5r_49{color:var(--color-neutrals-neutral-1)}._overlay_light_kwn5r_56 ._header_kwn5r_48,._overlay_light_kwn5r_56 ._description_kwn5r_49{color:#000}._overlay_dark_kwn5r_48:before,._overlay_light_kwn5r_56:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:0}._overlay_dark_kwn5r_48:before{background:#137fb13a}._overlay_light_kwn5r_56:before{background:#ffffff73}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { jsx as e, jsxs as v } from "react/jsx-runtime";
|
|
2
|
-
import { getHideAtStyles as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { c as
|
|
5
|
-
import '../../assets/BannerCard.css';const
|
|
6
|
-
root:
|
|
7
|
-
content:
|
|
8
|
-
align_left:
|
|
9
|
-
align_right:
|
|
10
|
-
overlay_dark:
|
|
11
|
-
header:
|
|
12
|
-
description:
|
|
13
|
-
overlay_none:
|
|
14
|
-
overlay_light:
|
|
2
|
+
import { getHideAtStyles as w } from "../../atoms/HideAt.js";
|
|
3
|
+
import { Text as s } from "../../atoms/Text/Text.js";
|
|
4
|
+
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import '../../assets/BannerCard.css';const p = "_root_kwn5r_2", x = "_content_kwn5r_13", N = "_align_left_kwn5r_25", u = "_align_right_kwn5r_33", z = "_overlay_dark_kwn5r_48", S = "_header_kwn5r_48", $ = "_description_kwn5r_49", b = "_overlay_none_kwn5r_50", j = "_overlay_light_kwn5r_56", t = {
|
|
6
|
+
root: p,
|
|
7
|
+
content: x,
|
|
8
|
+
align_left: N,
|
|
9
|
+
align_right: u,
|
|
10
|
+
overlay_dark: z,
|
|
11
|
+
header: S,
|
|
12
|
+
description: $,
|
|
13
|
+
overlay_none: b,
|
|
14
|
+
overlay_light: j
|
|
15
15
|
};
|
|
16
|
-
function
|
|
17
|
-
variant:
|
|
18
|
-
overlayTheme:
|
|
19
|
-
title:
|
|
20
|
-
description:
|
|
16
|
+
function D({
|
|
17
|
+
variant: n = "hero",
|
|
18
|
+
overlayTheme: r = "none",
|
|
19
|
+
title: _,
|
|
20
|
+
description: o,
|
|
21
21
|
backgroundImage: a,
|
|
22
22
|
align: c = "left",
|
|
23
23
|
cta: l,
|
|
24
24
|
className: d,
|
|
25
|
-
hideAt:
|
|
25
|
+
hideAt: g
|
|
26
26
|
}) {
|
|
27
|
-
const
|
|
27
|
+
const h = a ? { backgroundImage: `url(${a})` } : void 0, i = n === "hero", k = i ? "6xl" : "xl", m = i ? "md" : "sm", y = r === "dark" ? t.textLight : t.textDark;
|
|
28
28
|
return /* @__PURE__ */ e(
|
|
29
29
|
"article",
|
|
30
30
|
{
|
|
31
|
-
className:
|
|
31
|
+
className: f(
|
|
32
32
|
t.root,
|
|
33
|
-
t[`variant_${
|
|
33
|
+
t[`variant_${n}`],
|
|
34
34
|
t[`align_${c}`],
|
|
35
|
-
t[`overlay_${
|
|
35
|
+
t[`overlay_${r}`],
|
|
36
36
|
y,
|
|
37
|
-
|
|
37
|
+
w(g),
|
|
38
38
|
d
|
|
39
39
|
),
|
|
40
|
-
style: { ...
|
|
40
|
+
style: { ...h },
|
|
41
41
|
children: /* @__PURE__ */ v("div", { className: t.content, children: [
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
|
|
42
|
+
/* @__PURE__ */ e(s, { variant: "display", weight: "light", size: k, className: t.header, children: _ }),
|
|
43
|
+
o && /* @__PURE__ */ e(s, { size: m, className: t.description, children: o }),
|
|
44
44
|
l && /* @__PURE__ */ e("div", { className: t.cta, children: l })
|
|
45
45
|
] })
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
D as BannerCard
|
|
51
51
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { BannerCard as
|
|
2
|
+
import { BannerCard as r } from "./BannerCard.js";
|
|
3
3
|
import { LinkButton as m } from "../../atoms/LinkButton/LinkButton.js";
|
|
4
4
|
import { Icon as d } from "../../atoms/Icon/Icon.js";
|
|
5
5
|
const v = {
|
|
6
6
|
title: "Case Parts/Molecules/BannerCard",
|
|
7
|
-
component:
|
|
7
|
+
component: r,
|
|
8
8
|
tags: ["autodocs"],
|
|
9
9
|
render: (e) => {
|
|
10
10
|
const {
|
|
11
|
-
showCta:
|
|
11
|
+
showCta: t,
|
|
12
12
|
customCtaLabel: a,
|
|
13
13
|
backgroundImageUrl: i,
|
|
14
14
|
cta: n,
|
|
15
15
|
...s
|
|
16
|
-
} = e, l =
|
|
16
|
+
} = e, l = t ? n ?? /* @__PURE__ */ c(
|
|
17
17
|
m,
|
|
18
18
|
{
|
|
19
19
|
variant: e.overlayTheme === "light" ? "primary" : "secondary-transparent",
|
|
@@ -26,7 +26,7 @@ const v = {
|
|
|
26
26
|
}
|
|
27
27
|
) : void 0;
|
|
28
28
|
return /* @__PURE__ */ o("div", { style: { maxWidth: e.variant === "hero" ? 1200 : 640 }, children: /* @__PURE__ */ o(
|
|
29
|
-
|
|
29
|
+
r,
|
|
30
30
|
{
|
|
31
31
|
...s,
|
|
32
32
|
cta: l,
|
|
@@ -41,8 +41,8 @@ const v = {
|
|
|
41
41
|
description: "We specialize in made-to-spec parts—including cutting boards, walk-in doors, wire shelving, heaters, warmer wires, gaskets and more!",
|
|
42
42
|
align: "left",
|
|
43
43
|
showCta: !0,
|
|
44
|
-
customCtaLabel: "
|
|
45
|
-
backgroundImageUrl: "
|
|
44
|
+
customCtaLabel: "Help Me Find a Part",
|
|
45
|
+
backgroundImageUrl: "assets/IMG-4-hero.png"
|
|
46
46
|
},
|
|
47
47
|
argTypes: {
|
|
48
48
|
variant: {
|
|
@@ -158,7 +158,7 @@ Layout (width/height) is consumer-controlled.`
|
|
|
158
158
|
overlayTheme: "light",
|
|
159
159
|
backgroundImageUrl: ""
|
|
160
160
|
}
|
|
161
|
-
},
|
|
161
|
+
}, I = {
|
|
162
162
|
args: {
|
|
163
163
|
variant: "promo",
|
|
164
164
|
overlayTheme: "dark",
|
|
@@ -175,7 +175,7 @@ export {
|
|
|
175
175
|
y as Playground,
|
|
176
176
|
C as PromoLight,
|
|
177
177
|
w as PromoWithDarkOverlay,
|
|
178
|
-
|
|
178
|
+
I as RightAlignedPromo,
|
|
179
179
|
T as WithoutCTA,
|
|
180
180
|
v as default
|
|
181
181
|
};
|