@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.cjs
CHANGED
|
@@ -17318,103 +17318,105 @@ function EntityLockup(props) {
|
|
|
17318
17318
|
} = props;
|
|
17319
17319
|
const tid = useTestIds(props, "entityLockup");
|
|
17320
17320
|
const styles = compact ? compactStyles : defaultStyles;
|
|
17321
|
-
return
|
|
17322
|
-
|
|
17323
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ...(0, import_runtime69.trussProps)(styles.
|
|
17324
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.
|
|
17321
|
+
return (
|
|
17322
|
+
// `defaultStyles` query this container's width to switch to compact.
|
|
17323
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "w100 mw0 ctis cn_entityLockup", ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ...(0, import_runtime69.trussProps)(styles.container), children: [
|
|
17324
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { ...(0, import_runtime69.trussProps)(styles.image), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("img", { src: imgSrc, alt: title, loading: "lazy", className: "w100 h100 obf_cover db", ...tid.image }) }),
|
|
17325
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ...(0, import_runtime69.trussProps)(styles.body), children: [
|
|
17326
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ...(0, import_runtime69.trussProps)(styles.text), children: [
|
|
17327
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ...(0, import_runtime69.trussProps)(styles.heading), children: [
|
|
17328
|
+
isDefined(eyebrow) && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { ...(0, import_runtime69.trussProps)(styles.eyebrow), ...tid.eyebrow, children: eyebrow }),
|
|
17329
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { ...(0, import_runtime69.trussProps)(styles.title), ...tid.title, children: title })
|
|
17330
|
+
] }),
|
|
17331
|
+
isDefined(description) && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { ...(0, import_runtime69.trussProps)(styles.description), ...tid.description, children: description })
|
|
17328
17332
|
] }),
|
|
17329
|
-
isDefined(
|
|
17330
|
-
] })
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
] });
|
|
17333
|
+
isDefined(right) && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { ...(0, import_runtime69.trussProps)(styles.right), ...tid.right, children: right })
|
|
17334
|
+
] })
|
|
17335
|
+
] }) })
|
|
17336
|
+
);
|
|
17334
17337
|
}
|
|
17335
17338
|
var defaultStyles = {
|
|
17336
17339
|
container: {
|
|
17337
17340
|
display: "df",
|
|
17338
17341
|
alignItems: "aifs",
|
|
17339
|
-
gap: "g_2"
|
|
17342
|
+
gap: "g_2 container_entityLockup_max_width_400px_g_12px"
|
|
17340
17343
|
},
|
|
17341
17344
|
image: {
|
|
17342
17345
|
flexShrink: "fs0",
|
|
17343
|
-
height: "h_96px",
|
|
17344
|
-
width: "w_96px",
|
|
17346
|
+
height: "h_96px container_entityLockup_max_width_400px_h_62px",
|
|
17347
|
+
width: "w_96px container_entityLockup_max_width_400px_w_62px",
|
|
17345
17348
|
borderRadius: "br8",
|
|
17346
17349
|
borderStyle: "bss",
|
|
17347
17350
|
borderWidth: "bw1",
|
|
17348
|
-
borderColor: ["bc_var", {
|
|
17349
|
-
"--borderColor": "var(--b-field-border-default)"
|
|
17351
|
+
borderColor: ["bc_var container_entityLockup_max_width_400px_bc_var", {
|
|
17352
|
+
"--borderColor": "var(--b-field-border-default)",
|
|
17353
|
+
"--container_entityLockup_max_width_400px_borderColor": "var(--b-surface-separator)"
|
|
17350
17354
|
}],
|
|
17351
17355
|
overflow: "oh",
|
|
17352
17356
|
backgroundColor: ["bgColor_var", {
|
|
17353
17357
|
"--backgroundColor": "var(--b-surface-raised)"
|
|
17354
17358
|
}]
|
|
17355
17359
|
},
|
|
17356
|
-
// On small screens, `right` moves under the description so the text keeps its width.
|
|
17357
17360
|
body: {
|
|
17358
17361
|
display: "df",
|
|
17359
17362
|
flexGrow: "fg1",
|
|
17360
17363
|
minWidth: "mw0",
|
|
17361
|
-
gap: "g_2
|
|
17362
|
-
|
|
17364
|
+
gap: "g_2 container_entityLockup_max_width_400px_g_12px",
|
|
17365
|
+
alignSelf: "container_entityLockup_max_width_400px_asStretch"
|
|
17363
17366
|
},
|
|
17364
17367
|
text: {
|
|
17365
17368
|
display: "df",
|
|
17366
17369
|
flexDirection: "fdc",
|
|
17367
17370
|
minWidth: "mw0",
|
|
17368
17371
|
flexGrow: "fg1",
|
|
17369
|
-
gap: "g_1"
|
|
17372
|
+
gap: "g_1 container_entityLockup_max_width_400px_g_2px",
|
|
17373
|
+
paddingTop: "container_entityLockup_max_width_400px_pt_4px"
|
|
17370
17374
|
},
|
|
17371
17375
|
heading: {
|
|
17372
17376
|
display: "df",
|
|
17373
17377
|
flexDirection: "fdc",
|
|
17374
|
-
gap: "g_2px"
|
|
17378
|
+
gap: "g_2px container_entityLockup_max_width_400px_g_0"
|
|
17375
17379
|
},
|
|
17376
17380
|
eyebrow: {
|
|
17377
|
-
fontWeight: "fw4",
|
|
17378
|
-
fontSize: "fz_14px",
|
|
17379
|
-
lineHeight: "lh_20px",
|
|
17381
|
+
fontWeight: "fw4 container_entityLockup_max_width_400px_fw4",
|
|
17382
|
+
fontSize: "fz_14px container_entityLockup_max_width_400px_fz_12px",
|
|
17383
|
+
lineHeight: "lh_20px container_entityLockup_max_width_400px_lh_16px",
|
|
17380
17384
|
color: ["color_var", {
|
|
17381
17385
|
"--color": "var(--b-on-surface)"
|
|
17382
17386
|
}]
|
|
17383
17387
|
},
|
|
17384
17388
|
title: {
|
|
17385
|
-
fontWeight: "fw6",
|
|
17386
|
-
fontSize: "fz_14px",
|
|
17387
|
-
lineHeight: "lh_20px",
|
|
17389
|
+
fontWeight: "fw6 container_entityLockup_max_width_400px_fw6",
|
|
17390
|
+
fontSize: "fz_14px container_entityLockup_max_width_400px_fz_12px",
|
|
17391
|
+
lineHeight: "lh_20px container_entityLockup_max_width_400px_lh_16px",
|
|
17388
17392
|
color: ["color_var", {
|
|
17389
17393
|
"--color": "var(--b-on-surface)"
|
|
17390
17394
|
}]
|
|
17391
17395
|
},
|
|
17392
17396
|
description: {
|
|
17393
|
-
fontWeight: "fw4",
|
|
17394
|
-
fontSize: "fz_12px",
|
|
17395
|
-
lineHeight: "lh_16px",
|
|
17397
|
+
fontWeight: "fw4 container_entityLockup_max_width_400px_fw4",
|
|
17398
|
+
fontSize: "fz_12px container_entityLockup_max_width_400px_fz_10px",
|
|
17399
|
+
lineHeight: "lh_16px container_entityLockup_max_width_400px_lh_14px",
|
|
17396
17400
|
color: ["color_var", {
|
|
17397
17401
|
"--color": "var(--b-on-surface)"
|
|
17398
17402
|
}]
|
|
17399
17403
|
},
|
|
17400
|
-
// Capped at half the row so wide content can't squeeze the text to nothing
|
|
17401
|
-
// A lone child (fewer than two elements) stays right-aligned instead of falling to the start under `jcsb`.
|
|
17404
|
+
// Capped at half the row so wide content can't squeeze the text to nothing.
|
|
17402
17405
|
right: {
|
|
17403
17406
|
flexShrink: "fs0",
|
|
17404
|
-
maxWidth: "maxw50
|
|
17407
|
+
maxWidth: "maxw50",
|
|
17405
17408
|
display: "df",
|
|
17406
|
-
flexDirection: "fdc
|
|
17407
|
-
alignItems: "aife
|
|
17409
|
+
flexDirection: "fdc",
|
|
17410
|
+
alignItems: "aife",
|
|
17408
17411
|
gap: "g_6px",
|
|
17409
|
-
alignSelf: "asfs
|
|
17410
|
-
textAlign: "tar"
|
|
17411
|
-
justifyContent: "sm_jcsb sm_n_has_nth_child_2_jcfe"
|
|
17412
|
+
alignSelf: "asfs",
|
|
17413
|
+
textAlign: "tar"
|
|
17412
17414
|
}
|
|
17413
17415
|
};
|
|
17414
17416
|
var compactStyles = {
|
|
17415
17417
|
container: {
|
|
17416
17418
|
display: "df",
|
|
17417
|
-
alignItems: "
|
|
17419
|
+
alignItems: "aifs",
|
|
17418
17420
|
gap: "g_12px"
|
|
17419
17421
|
},
|
|
17420
17422
|
image: {
|