@caseparts-org/caseblocks 0.0.61 → 0.0.63
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_6j0vh_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_6j0vh_13{box-sizing:border-box;width:100%;display:flex;flex-direction:column;gap:var(--spacing-spacing-default, 16px)}._variant_hero_6j0vh_22 ._content_6j0vh_13{grid-column:1 / span 2;padding:var(--spacing-spacing-2xl, 3rem)}._variant_promo_6j0vh_27 ._content_6j0vh_13{grid-column:1 / span 3;padding:var(--spacing-spacing-default, 1rem)}._variant_hero_6j0vh_22._align_right_6j0vh_33 ._content_6j0vh_13{grid-column:3 / span 2}._variant_promo_6j0vh_27._align_right_6j0vh_33 ._content_6j0vh_13{grid-column:2 / span 3}@media (max-width: 1280px){._variant_hero_6j0vh_22 ._content_6j0vh_13,._variant_promo_6j0vh_27 ._content_6j0vh_13,._variant_hero_6j0vh_22._align_right_6j0vh_33 ._content_6j0vh_13,._variant_promo_6j0vh_27._align_right_6j0vh_33 ._content_6j0vh_13{grid-column:1 / -1}}._align_left_6j0vh_52 ._content_6j0vh_13{align-items:flex-start;text-align:left;justify-self:start}._align_right_6j0vh_33 ._content_6j0vh_13{align-items:flex-end;text-align:right;justify-self:end}._content_6j0vh_13>*{position:relative;z-index:1}._overlay_dark_6j0vh_70 ._header_6j0vh_70,._overlay_dark_6j0vh_70 ._description_6j0vh_71,._overlay_none_6j0vh_72 ._header_6j0vh_70,._overlay_none_6j0vh_72 ._description_6j0vh_71{color:var(--color-neutrals-neutral-1)}._overlay_light_6j0vh_77 ._header_6j0vh_70{color:var(--color-brand-primary-primary-teal-blue)}._overlay_light_6j0vh_77 ._description_6j0vh_71{color:#000}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { getHideAtStyles as
|
|
1
|
+
import { jsx as o, jsxs as j } from "react/jsx-runtime";
|
|
2
|
+
import { getHideAtStyles as p } from "../../atoms/HideAt.js";
|
|
3
3
|
import { Text as s } from "../../atoms/Text/Text.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import '../../assets/BannerCard.css';const k = "
|
|
6
|
-
root:
|
|
7
|
-
content:
|
|
8
|
-
variant_hero:
|
|
9
|
-
variant_promo:
|
|
4
|
+
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import '../../assets/BannerCard.css';const x = "_root_6j0vh_2", k = "_content_6j0vh_13", N = "_variant_hero_6j0vh_22", u = "_variant_promo_6j0vh_27", z = "_align_right_6j0vh_33", S = "_align_left_6j0vh_52", $ = "_overlay_dark_6j0vh_70", b = "_header_6j0vh_70", C = "_description_6j0vh_71", H = "_overlay_none_6j0vh_72", w = "_overlay_light_6j0vh_77", t = {
|
|
6
|
+
root: x,
|
|
7
|
+
content: k,
|
|
8
|
+
variant_hero: N,
|
|
9
|
+
variant_promo: u,
|
|
10
|
+
align_right: z,
|
|
10
11
|
align_left: S,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
header: j,
|
|
12
|
+
overlay_dark: $,
|
|
13
|
+
header: b,
|
|
14
14
|
description: C,
|
|
15
15
|
overlay_none: H,
|
|
16
16
|
overlay_light: w
|
|
17
17
|
};
|
|
18
18
|
function L({
|
|
19
|
-
variant:
|
|
20
|
-
overlayTheme:
|
|
19
|
+
variant: e = "hero",
|
|
20
|
+
overlayTheme: r = "none",
|
|
21
21
|
title: l,
|
|
22
|
-
description:
|
|
23
|
-
backgroundImage:
|
|
24
|
-
align:
|
|
22
|
+
description: n,
|
|
23
|
+
backgroundImage: a,
|
|
24
|
+
align: c = "left",
|
|
25
25
|
cta: _,
|
|
26
|
-
className:
|
|
27
|
-
hideAt:
|
|
26
|
+
className: h,
|
|
27
|
+
hideAt: v
|
|
28
28
|
}) {
|
|
29
|
-
const
|
|
29
|
+
const d = a ? { backgroundImage: `url(${a})` } : void 0, i = e === "hero", g = i ? "6xl" : "xl", m = i ? "md" : "sm", y = r === "dark" ? t.textLight : t.textDark;
|
|
30
30
|
return /* @__PURE__ */ o(
|
|
31
31
|
"article",
|
|
32
32
|
{
|
|
33
|
-
className:
|
|
33
|
+
className: f(
|
|
34
34
|
t.root,
|
|
35
|
-
t[`variant_${
|
|
36
|
-
t[`align_${
|
|
37
|
-
t[`overlay_${
|
|
35
|
+
t[`variant_${e}`],
|
|
36
|
+
t[`align_${c}`],
|
|
37
|
+
t[`overlay_${r}`],
|
|
38
38
|
y,
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
p(v),
|
|
40
|
+
h
|
|
41
41
|
),
|
|
42
|
-
style: { ...
|
|
43
|
-
children: /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */ o(s, { variant: "display", weight: "light", size:
|
|
45
|
-
|
|
42
|
+
style: { ...d },
|
|
43
|
+
children: /* @__PURE__ */ j("div", { className: t.content, children: [
|
|
44
|
+
/* @__PURE__ */ o(s, { variant: "display", weight: "light", size: g, className: t.header, children: l }),
|
|
45
|
+
n && /* @__PURE__ */ o(s, { size: m, className: t.description, children: n }),
|
|
46
46
|
_ && /* @__PURE__ */ o("div", { className: t.cta, children: _ })
|
|
47
47
|
] })
|
|
48
48
|
}
|
|
@@ -93,12 +93,12 @@ const v = {
|
|
|
93
93
|
docs: {
|
|
94
94
|
description: {
|
|
95
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.`
|
|
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.`
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|