@homebound/beam 3.41.0 → 3.42.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 +38 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -33
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16210,66 +16210,71 @@ function TableCardView(props) {
|
|
|
16210
16210
|
} = props;
|
|
16211
16211
|
const tid = useTestIds(props, "tableCardView");
|
|
16212
16212
|
const progressValue = useMemo26(() => progress !== void 0 ? clampProgress(progress) : 0, [progress]);
|
|
16213
|
+
const col1 = data.slice(0, Math.ceil(data.length / 2));
|
|
16214
|
+
const col2 = data.slice(Math.ceil(data.length / 2));
|
|
16213
16215
|
return /* @__PURE__ */ jsxs50("div", { ...trussProps51({
|
|
16214
16216
|
paddingTop: "pt3",
|
|
16215
16217
|
paddingBottom: "pb3",
|
|
16216
16218
|
paddingRight: "pr3",
|
|
16217
16219
|
paddingLeft: "pl3",
|
|
16218
16220
|
width: "w100",
|
|
16219
|
-
height: "
|
|
16221
|
+
height: "h_430px",
|
|
16220
16222
|
boxShadow: "bshBasic",
|
|
16221
16223
|
backgroundColor: ["bgColor_var", {
|
|
16222
16224
|
"--backgroundColor": "var(--b-surface)"
|
|
16223
16225
|
}],
|
|
16224
16226
|
display: "df",
|
|
16225
16227
|
flexDirection: "fdc",
|
|
16226
|
-
gap: "gap2"
|
|
16228
|
+
gap: "gap2",
|
|
16229
|
+
borderRadius: "br8"
|
|
16227
16230
|
}), ...tid, children: [
|
|
16228
16231
|
/* @__PURE__ */ jsxs50("div", { className: "relative", children: [
|
|
16229
16232
|
/* @__PURE__ */ jsx86("img", { className: "h_184px w100 objectFit_cover", src: imgSrc, alt: title, ...tid.image }),
|
|
16230
16233
|
status && /* @__PURE__ */ jsx86("div", { className: "absolute top1 left1", ...tid.status, children: /* @__PURE__ */ jsx86(Tag, { ...status }) })
|
|
16231
16234
|
] }),
|
|
16232
|
-
/* @__PURE__ */ jsxs50("div", { className: "df fdc gap2", children: [
|
|
16235
|
+
/* @__PURE__ */ jsxs50("div", { className: "df fdc gap2 jcsb h100", children: [
|
|
16233
16236
|
/* @__PURE__ */ jsxs50("div", { children: [
|
|
16234
16237
|
eyebrow && /* @__PURE__ */ jsx86("p", { className: "fw4 fz_14px lh_20px", ...tid.eyebrow, children: eyebrow }),
|
|
16235
16238
|
title && /* @__PURE__ */ jsxs50("div", { className: "dif w100 jcsb aic", children: [
|
|
16236
|
-
/* @__PURE__ */
|
|
16237
|
-
title,
|
|
16238
|
-
" "
|
|
16239
|
-
] }),
|
|
16239
|
+
/* @__PURE__ */ jsx86("h4", { className: "fwb fz_20px lh_28px oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", ...tid.title, children: title }),
|
|
16240
16240
|
(badge || badgeTags?.length) && /* @__PURE__ */ jsxs50("div", { className: "dif aic gap1 fs0", ...tid.badge, children: [
|
|
16241
16241
|
badge && /* @__PURE__ */ jsx86("span", { className: "fw4 fz_14px lh_20px wsnw", children: badge }),
|
|
16242
16242
|
badgeTags?.map((tag) => /* @__PURE__ */ jsx86(Tag, { ...tag }, tag.text))
|
|
16243
16243
|
] })
|
|
16244
16244
|
] })
|
|
16245
16245
|
] }),
|
|
16246
|
-
|
|
16247
|
-
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
d.label,
|
|
16255
|
-
":"
|
|
16246
|
+
/* @__PURE__ */ jsxs50("div", { className: "df fdc gap2", children: [
|
|
16247
|
+
data && data?.length > 0 && /* @__PURE__ */ jsxs50("dl", { className: "df gap2 fw4 fz_14px lh_20px", children: [
|
|
16248
|
+
/* @__PURE__ */ jsx86("div", { className: "df fdc fg1", children: col1.map((d) => /* @__PURE__ */ jsxs50("div", { className: "df gap_4px", ...tid[defaultTestId(d.label)], children: [
|
|
16249
|
+
/* @__PURE__ */ jsxs50("dt", { children: [
|
|
16250
|
+
d.label,
|
|
16251
|
+
":"
|
|
16252
|
+
] }),
|
|
16253
|
+
/* @__PURE__ */ jsx86("dd", { children: d.value })
|
|
16254
|
+
] }, d.label)) }),
|
|
16255
|
+
/* @__PURE__ */ jsx86("div", { className: "df fdc fg1", children: col2.map((d) => /* @__PURE__ */ jsxs50("div", { className: "df gap_4px", ...tid[defaultTestId(d.label)], children: [
|
|
16256
|
+
/* @__PURE__ */ jsxs50("dt", { children: [
|
|
16257
|
+
d.label,
|
|
16258
|
+
":"
|
|
16259
|
+
] }),
|
|
16260
|
+
/* @__PURE__ */ jsx86("dd", { children: d.value })
|
|
16261
|
+
] }, d.label)) })
|
|
16256
16262
|
] }),
|
|
16257
|
-
/* @__PURE__ */ jsx86("
|
|
16258
|
-
|
|
16259
|
-
|
|
16260
|
-
|
|
16261
|
-
|
|
16262
|
-
|
|
16263
|
-
|
|
16264
|
-
|
|
16265
|
-
|
|
16266
|
-
|
|
16267
|
-
|
|
16268
|
-
|
|
16269
|
-
|
|
16270
|
-
|
|
16271
|
-
|
|
16272
|
-
] }) })
|
|
16263
|
+
progress !== void 0 && /* @__PURE__ */ jsx86("div", { className: "df fdc gap1", children: /* @__PURE__ */ jsxs50("div", { className: "df aic gap1 fs_10px lh_14px", children: [
|
|
16264
|
+
/* @__PURE__ */ jsx86("div", { className: "w25 h_8px br4 bgGray200", children: /* @__PURE__ */ jsx86("div", { ...trussProps51({
|
|
16265
|
+
height: "h100",
|
|
16266
|
+
borderRadius: "br4",
|
|
16267
|
+
backgroundColor: "bgBlue500",
|
|
16268
|
+
width: ["w_var", {
|
|
16269
|
+
"--width": maybeCssVar30(__maybeInc10(`${progressValue}%`))
|
|
16270
|
+
}]
|
|
16271
|
+
}) }) }),
|
|
16272
|
+
/* @__PURE__ */ jsxs50("span", { ...tid.progressValue, children: [
|
|
16273
|
+
progressValue,
|
|
16274
|
+
"%"
|
|
16275
|
+
] })
|
|
16276
|
+
] }) })
|
|
16277
|
+
] })
|
|
16273
16278
|
] })
|
|
16274
16279
|
] });
|
|
16275
16280
|
}
|