@homebound/beam 4.30.0 → 4.31.0
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/index.cjs +31 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +31 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8179,6 +8179,8 @@ type EntityLockupProps = {
|
|
|
8179
8179
|
/** Thumbnail image URL. */
|
|
8180
8180
|
imgSrc: string;
|
|
8181
8181
|
title: string;
|
|
8182
|
+
/** Short line above the title, e.g. a brand. */
|
|
8183
|
+
eyebrow?: ReactNode;
|
|
8182
8184
|
/** Secondary content under the title; can include extra rows like a status. */
|
|
8183
8185
|
description?: ReactNode;
|
|
8184
8186
|
/** Trailing content aligned to the right, e.g. a Tag and price. */
|
package/dist/index.d.ts
CHANGED
|
@@ -8179,6 +8179,8 @@ type EntityLockupProps = {
|
|
|
8179
8179
|
/** Thumbnail image URL. */
|
|
8180
8180
|
imgSrc: string;
|
|
8181
8181
|
title: string;
|
|
8182
|
+
/** Short line above the title, e.g. a brand. */
|
|
8183
|
+
eyebrow?: ReactNode;
|
|
8182
8184
|
/** Secondary content under the title; can include extra rows like a status. */
|
|
8183
8185
|
description?: ReactNode;
|
|
8184
8186
|
/** Trailing content aligned to the right, e.g. a Tag and price. */
|
package/dist/index.js
CHANGED
|
@@ -16819,6 +16819,7 @@ function EntityLockup(props) {
|
|
|
16819
16819
|
const {
|
|
16820
16820
|
imgSrc,
|
|
16821
16821
|
title,
|
|
16822
|
+
eyebrow,
|
|
16822
16823
|
description,
|
|
16823
16824
|
right,
|
|
16824
16825
|
compact = false
|
|
@@ -16826,10 +16827,13 @@ function EntityLockup(props) {
|
|
|
16826
16827
|
const tid = useTestIds(props, "entityLockup");
|
|
16827
16828
|
const styles = compact ? compactStyles : defaultStyles;
|
|
16828
16829
|
return /* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.container), ...tid, children: [
|
|
16829
|
-
/* @__PURE__ */ jsx92("div", { ...trussProps59(styles.image), children: /* @__PURE__ */ jsx92("img", { src: imgSrc, alt:
|
|
16830
|
+
/* @__PURE__ */ jsx92("div", { ...trussProps59(styles.image), children: /* @__PURE__ */ jsx92("img", { src: imgSrc, alt: title, loading: "lazy", className: "w100 h100 obf_cover db", ...tid.image }) }),
|
|
16830
16831
|
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.body), children: [
|
|
16831
16832
|
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.text), children: [
|
|
16832
|
-
/* @__PURE__ */
|
|
16833
|
+
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.heading), children: [
|
|
16834
|
+
isDefined(eyebrow) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.eyebrow), ...tid.eyebrow, children: eyebrow }),
|
|
16835
|
+
/* @__PURE__ */ jsx92("div", { ...trussProps59(styles.title), ...tid.title, children: title })
|
|
16836
|
+
] }),
|
|
16833
16837
|
isDefined(description) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.description), ...tid.description, children: description })
|
|
16834
16838
|
] }),
|
|
16835
16839
|
isDefined(right) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.right), ...tid.right, children: right })
|
|
@@ -16872,6 +16876,19 @@ var defaultStyles = {
|
|
|
16872
16876
|
flexGrow: "fg1",
|
|
16873
16877
|
gap: "g_1"
|
|
16874
16878
|
},
|
|
16879
|
+
heading: {
|
|
16880
|
+
display: "df",
|
|
16881
|
+
flexDirection: "fdc",
|
|
16882
|
+
gap: "g_2px"
|
|
16883
|
+
},
|
|
16884
|
+
eyebrow: {
|
|
16885
|
+
fontWeight: "fw4",
|
|
16886
|
+
fontSize: "fz_14px",
|
|
16887
|
+
lineHeight: "lh_20px",
|
|
16888
|
+
color: ["color_var", {
|
|
16889
|
+
"--color": "var(--b-on-surface)"
|
|
16890
|
+
}]
|
|
16891
|
+
},
|
|
16875
16892
|
title: {
|
|
16876
16893
|
fontWeight: "fw6",
|
|
16877
16894
|
fontSize: "fz_14px",
|
|
@@ -16939,6 +16956,18 @@ var compactStyles = {
|
|
|
16939
16956
|
gap: "g_2px",
|
|
16940
16957
|
paddingTop: "pt_4px"
|
|
16941
16958
|
},
|
|
16959
|
+
heading: {
|
|
16960
|
+
display: "df",
|
|
16961
|
+
flexDirection: "fdc"
|
|
16962
|
+
},
|
|
16963
|
+
eyebrow: {
|
|
16964
|
+
fontWeight: "fw4",
|
|
16965
|
+
fontSize: "fz_12px",
|
|
16966
|
+
lineHeight: "lh_16px",
|
|
16967
|
+
color: ["color_var", {
|
|
16968
|
+
"--color": "var(--b-on-surface)"
|
|
16969
|
+
}]
|
|
16970
|
+
},
|
|
16942
16971
|
title: {
|
|
16943
16972
|
fontWeight: "fw6",
|
|
16944
16973
|
fontSize: "fz_12px",
|