@homebound/beam 4.32.0 → 4.33.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 +42 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -40
- package/dist/index.js.map +1 -1
- package/dist/truss.css +32 -14
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8185,7 +8185,7 @@ type EntityLockupProps = {
|
|
|
8185
8185
|
description?: ReactNode;
|
|
8186
8186
|
/** Trailing content aligned to the right, e.g. a Tag and price. */
|
|
8187
8187
|
right?: ReactNode;
|
|
8188
|
-
/**
|
|
8188
|
+
/** Forces the compact layout at any width, e.g. in sidebars. It applies anyway when the lockup is 400px wide or less. */
|
|
8189
8189
|
compact?: boolean;
|
|
8190
8190
|
};
|
|
8191
8191
|
/** Image thumbnail beside a title and description, identifying an entity such as a product or option. */
|
package/dist/index.d.ts
CHANGED
|
@@ -8185,7 +8185,7 @@ type EntityLockupProps = {
|
|
|
8185
8185
|
description?: ReactNode;
|
|
8186
8186
|
/** Trailing content aligned to the right, e.g. a Tag and price. */
|
|
8187
8187
|
right?: ReactNode;
|
|
8188
|
-
/**
|
|
8188
|
+
/** Forces the compact layout at any width, e.g. in sidebars. It applies anyway when the lockup is 400px wide or less. */
|
|
8189
8189
|
compact?: boolean;
|
|
8190
8190
|
};
|
|
8191
8191
|
/** Image thumbnail beside a title and description, identifying an entity such as a product or option. */
|
package/dist/index.js
CHANGED
|
@@ -16826,103 +16826,105 @@ function EntityLockup(props) {
|
|
|
16826
16826
|
} = props;
|
|
16827
16827
|
const tid = useTestIds(props, "entityLockup");
|
|
16828
16828
|
const styles = compact ? compactStyles : defaultStyles;
|
|
16829
|
-
return
|
|
16830
|
-
|
|
16831
|
-
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.
|
|
16832
|
-
/* @__PURE__ */
|
|
16833
|
-
|
|
16834
|
-
|
|
16835
|
-
/* @__PURE__ */
|
|
16829
|
+
return (
|
|
16830
|
+
// `defaultStyles` query this container's width to switch to compact.
|
|
16831
|
+
/* @__PURE__ */ jsx92("div", { className: "w100 mw0 ctis cn_entityLockup", ...tid, children: /* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.container), children: [
|
|
16832
|
+
/* @__PURE__ */ jsx92("div", { ...trussProps59(styles.image), children: /* @__PURE__ */ jsx92("img", { src: imgSrc, alt: title, loading: "lazy", className: "w100 h100 obf_cover db", ...tid.image }) }),
|
|
16833
|
+
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.body), children: [
|
|
16834
|
+
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.text), children: [
|
|
16835
|
+
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.heading), children: [
|
|
16836
|
+
isDefined(eyebrow) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.eyebrow), ...tid.eyebrow, children: eyebrow }),
|
|
16837
|
+
/* @__PURE__ */ jsx92("div", { ...trussProps59(styles.title), ...tid.title, children: title })
|
|
16838
|
+
] }),
|
|
16839
|
+
isDefined(description) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.description), ...tid.description, children: description })
|
|
16836
16840
|
] }),
|
|
16837
|
-
isDefined(
|
|
16838
|
-
] })
|
|
16839
|
-
|
|
16840
|
-
|
|
16841
|
-
] });
|
|
16841
|
+
isDefined(right) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.right), ...tid.right, children: right })
|
|
16842
|
+
] })
|
|
16843
|
+
] }) })
|
|
16844
|
+
);
|
|
16842
16845
|
}
|
|
16843
16846
|
var defaultStyles = {
|
|
16844
16847
|
container: {
|
|
16845
16848
|
display: "df",
|
|
16846
16849
|
alignItems: "aifs",
|
|
16847
|
-
gap: "g_2"
|
|
16850
|
+
gap: "g_2 container_entityLockup_max_width_400px_g_12px"
|
|
16848
16851
|
},
|
|
16849
16852
|
image: {
|
|
16850
16853
|
flexShrink: "fs0",
|
|
16851
|
-
height: "h_96px",
|
|
16852
|
-
width: "w_96px",
|
|
16854
|
+
height: "h_96px container_entityLockup_max_width_400px_h_62px",
|
|
16855
|
+
width: "w_96px container_entityLockup_max_width_400px_w_62px",
|
|
16853
16856
|
borderRadius: "br8",
|
|
16854
16857
|
borderStyle: "bss",
|
|
16855
16858
|
borderWidth: "bw1",
|
|
16856
|
-
borderColor: ["bc_var", {
|
|
16857
|
-
"--borderColor": "var(--b-field-border-default)"
|
|
16859
|
+
borderColor: ["bc_var container_entityLockup_max_width_400px_bc_var", {
|
|
16860
|
+
"--borderColor": "var(--b-field-border-default)",
|
|
16861
|
+
"--container_entityLockup_max_width_400px_borderColor": "var(--b-surface-separator)"
|
|
16858
16862
|
}],
|
|
16859
16863
|
overflow: "oh",
|
|
16860
16864
|
backgroundColor: ["bgColor_var", {
|
|
16861
16865
|
"--backgroundColor": "var(--b-surface-raised)"
|
|
16862
16866
|
}]
|
|
16863
16867
|
},
|
|
16864
|
-
// On small screens, `right` moves under the description so the text keeps its width.
|
|
16865
16868
|
body: {
|
|
16866
16869
|
display: "df",
|
|
16867
16870
|
flexGrow: "fg1",
|
|
16868
16871
|
minWidth: "mw0",
|
|
16869
|
-
gap: "g_2
|
|
16870
|
-
|
|
16872
|
+
gap: "g_2 container_entityLockup_max_width_400px_g_12px",
|
|
16873
|
+
alignSelf: "container_entityLockup_max_width_400px_asStretch"
|
|
16871
16874
|
},
|
|
16872
16875
|
text: {
|
|
16873
16876
|
display: "df",
|
|
16874
16877
|
flexDirection: "fdc",
|
|
16875
16878
|
minWidth: "mw0",
|
|
16876
16879
|
flexGrow: "fg1",
|
|
16877
|
-
gap: "g_1"
|
|
16880
|
+
gap: "g_1 container_entityLockup_max_width_400px_g_2px",
|
|
16881
|
+
paddingTop: "container_entityLockup_max_width_400px_pt_4px"
|
|
16878
16882
|
},
|
|
16879
16883
|
heading: {
|
|
16880
16884
|
display: "df",
|
|
16881
16885
|
flexDirection: "fdc",
|
|
16882
|
-
gap: "g_2px"
|
|
16886
|
+
gap: "g_2px container_entityLockup_max_width_400px_g_0"
|
|
16883
16887
|
},
|
|
16884
16888
|
eyebrow: {
|
|
16885
|
-
fontWeight: "fw4",
|
|
16886
|
-
fontSize: "fz_14px",
|
|
16887
|
-
lineHeight: "lh_20px",
|
|
16889
|
+
fontWeight: "fw4 container_entityLockup_max_width_400px_fw4",
|
|
16890
|
+
fontSize: "fz_14px container_entityLockup_max_width_400px_fz_12px",
|
|
16891
|
+
lineHeight: "lh_20px container_entityLockup_max_width_400px_lh_16px",
|
|
16888
16892
|
color: ["color_var", {
|
|
16889
16893
|
"--color": "var(--b-on-surface)"
|
|
16890
16894
|
}]
|
|
16891
16895
|
},
|
|
16892
16896
|
title: {
|
|
16893
|
-
fontWeight: "fw6",
|
|
16894
|
-
fontSize: "fz_14px",
|
|
16895
|
-
lineHeight: "lh_20px",
|
|
16897
|
+
fontWeight: "fw6 container_entityLockup_max_width_400px_fw6",
|
|
16898
|
+
fontSize: "fz_14px container_entityLockup_max_width_400px_fz_12px",
|
|
16899
|
+
lineHeight: "lh_20px container_entityLockup_max_width_400px_lh_16px",
|
|
16896
16900
|
color: ["color_var", {
|
|
16897
16901
|
"--color": "var(--b-on-surface)"
|
|
16898
16902
|
}]
|
|
16899
16903
|
},
|
|
16900
16904
|
description: {
|
|
16901
|
-
fontWeight: "fw4",
|
|
16902
|
-
fontSize: "fz_12px",
|
|
16903
|
-
lineHeight: "lh_16px",
|
|
16905
|
+
fontWeight: "fw4 container_entityLockup_max_width_400px_fw4",
|
|
16906
|
+
fontSize: "fz_12px container_entityLockup_max_width_400px_fz_10px",
|
|
16907
|
+
lineHeight: "lh_16px container_entityLockup_max_width_400px_lh_14px",
|
|
16904
16908
|
color: ["color_var", {
|
|
16905
16909
|
"--color": "var(--b-on-surface)"
|
|
16906
16910
|
}]
|
|
16907
16911
|
},
|
|
16908
|
-
// Capped at half the row so wide content can't squeeze the text to nothing
|
|
16909
|
-
// A lone child (fewer than two elements) stays right-aligned instead of falling to the start under `jcsb`.
|
|
16912
|
+
// Capped at half the row so wide content can't squeeze the text to nothing.
|
|
16910
16913
|
right: {
|
|
16911
16914
|
flexShrink: "fs0",
|
|
16912
|
-
maxWidth: "maxw50
|
|
16915
|
+
maxWidth: "maxw50",
|
|
16913
16916
|
display: "df",
|
|
16914
|
-
flexDirection: "fdc
|
|
16915
|
-
alignItems: "aife
|
|
16917
|
+
flexDirection: "fdc",
|
|
16918
|
+
alignItems: "aife",
|
|
16916
16919
|
gap: "g_6px",
|
|
16917
|
-
alignSelf: "asfs
|
|
16918
|
-
textAlign: "tar"
|
|
16919
|
-
justifyContent: "sm_jcsb sm_n_has_nth_child_2_jcfe"
|
|
16920
|
+
alignSelf: "asfs",
|
|
16921
|
+
textAlign: "tar"
|
|
16920
16922
|
}
|
|
16921
16923
|
};
|
|
16922
16924
|
var compactStyles = {
|
|
16923
16925
|
container: {
|
|
16924
16926
|
display: "df",
|
|
16925
|
-
alignItems: "
|
|
16927
|
+
alignItems: "aifs",
|
|
16926
16928
|
gap: "g_12px"
|
|
16927
16929
|
},
|
|
16928
16930
|
image: {
|